fix(FN-2036): wire agent reflections runtime and UI dependencies
- Add a reusable .btn-secondary style (including light-theme hover/focus states) for reflections tab actions - Initialize ReflectionStore in reflection API routes before reading or writing reflections - Create AgentStore and ReflectionStore during in-process runtime startup and wire AgentReflectionService into TaskExecutor - Reuse the initialized AgentStore for HeartbeatMonitor and trigger scheduler setup with non-fatal guards
This commit is contained in:
@@ -13016,6 +13016,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const agentStore = new AgentStore({ rootDir: scopedStore.getFusionDir() });
|
||||
const reflectionStore = new ReflectionStore({ rootDir: scopedStore.getFusionDir() });
|
||||
await agentStore.init();
|
||||
await reflectionStore.init();
|
||||
|
||||
const agentId = Array.isArray(req.params.id) ? req.params.id[0] : req.params.id;
|
||||
if (!agentId) {
|
||||
@@ -13056,6 +13057,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const agentStore = new AgentStore({ rootDir: scopedStore.getFusionDir() });
|
||||
const reflectionStore = new ReflectionStore({ rootDir: scopedStore.getFusionDir() });
|
||||
await agentStore.init();
|
||||
await reflectionStore.init();
|
||||
|
||||
const agentId = Array.isArray(req.params.id) ? req.params.id[0] : req.params.id;
|
||||
if (!agentId) {
|
||||
@@ -13097,6 +13099,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const agentStore = new AgentStore({ rootDir: taskStore.getRootDir() });
|
||||
const reflectionStore = new ReflectionStore({ rootDir: taskStore.getRootDir() });
|
||||
await agentStore.init();
|
||||
await reflectionStore.init();
|
||||
|
||||
const agentId = Array.isArray(req.params.id) ? req.params.id[0] : req.params.id;
|
||||
if (!agentId) {
|
||||
@@ -13142,6 +13145,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const agentStore = new AgentStore({ rootDir: scopedStore.getFusionDir() });
|
||||
const reflectionStore = new ReflectionStore({ rootDir: scopedStore.getFusionDir() });
|
||||
await agentStore.init();
|
||||
await reflectionStore.init();
|
||||
|
||||
const agentId = Array.isArray(req.params.id) ? req.params.id[0] : req.params.id;
|
||||
if (!agentId) {
|
||||
@@ -13182,6 +13186,7 @@ export function createApiRoutes(store: TaskStore, options?: ServerOptions): Rout
|
||||
const agentStore = new AgentStore({ rootDir: taskStore.getRootDir() });
|
||||
const reflectionStore = new ReflectionStore({ rootDir: taskStore.getRootDir() });
|
||||
await agentStore.init();
|
||||
await reflectionStore.init();
|
||||
|
||||
const agentId = Array.isArray(req.params.id) ? req.params.id[0] : req.params.id;
|
||||
if (!agentId) {
|
||||
|
||||
Reference in New Issue
Block a user