Add Experience V1 schema migration and agent-run completion extractor.
Extend h5_experience with structured fields, wire mindspace-agent-runner and agent-run-gateway to persist task_outcome records with provenance, and add local migration and verification scripts. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -142,6 +142,7 @@ export function bootstrapPortalGatewayServices({
|
||||
chatIntentRouter,
|
||||
syncUserGeneratedPages,
|
||||
isSessionPageDeliveryActive,
|
||||
experienceService = null,
|
||||
createTkmindProxyFn = createTkmindProxy,
|
||||
createToolGatewayFn = createToolGateway,
|
||||
createAgentRunGatewayFn = createAgentRunGateway,
|
||||
@@ -254,6 +255,7 @@ export function bootstrapPortalGatewayServices({
|
||||
sessionSnapshotService,
|
||||
conversationMemoryService,
|
||||
goalRunService,
|
||||
experienceService,
|
||||
observeWorkflowRun: workflowShadowObserver,
|
||||
observeWorkflowValidation:
|
||||
workflowShadowObserver?.observeValidation ?? null,
|
||||
|
||||
@@ -263,6 +263,15 @@ test('preserves local asset reads and optional asset absence', async () => {
|
||||
);
|
||||
});
|
||||
|
||||
test('passes experienceService into agent run gateway', () => {
|
||||
const setup = createSetup({
|
||||
experienceService: { id: 'experience' },
|
||||
});
|
||||
bootstrapPortalGatewayServices(setup.options);
|
||||
const { agentOptions } = setup.getCaptured();
|
||||
assert.equal(agentOptions.experienceService.id, 'experience');
|
||||
});
|
||||
|
||||
test('preserves memory, page sync, and busy callbacks', async () => {
|
||||
const setup = createSetup();
|
||||
bootstrapPortalGatewayServices(setup.options);
|
||||
|
||||
Reference in New Issue
Block a user