@dxos/assistant-toolkit 0.8.4-staging.60fe92afc8 → 0.9.1-main.c7dcc2e112

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (89) hide show
  1. package/dist/lib/neutral/{add-artifact-54DVWE53.mjs → add-artifact-QEQP6T7Z.mjs} +4 -4
  2. package/dist/lib/neutral/{agent-LCBDWP74.mjs → agent-BU6PB7J6.mjs} +4 -4
  3. package/dist/lib/neutral/{agent-rules-3TBAIVTS.mjs → agent-rules-L3AHRSR4.mjs} +4 -4
  4. package/dist/lib/neutral/{chunk-URUJQGI6.mjs → chunk-5HANNHZZ.mjs} +11 -2
  5. package/dist/lib/neutral/chunk-5HANNHZZ.mjs.map +7 -0
  6. package/dist/lib/neutral/{chunk-KC2LPECT.mjs → chunk-ABOAU3NN.mjs} +4 -4
  7. package/dist/lib/neutral/chunk-ABOAU3NN.mjs.map +7 -0
  8. package/dist/lib/neutral/{chunk-RNIUE4LK.mjs → chunk-CUT6GB2W.mjs} +2 -2
  9. package/dist/lib/neutral/{chunk-Z3KITY4U.mjs → chunk-JZHXJBSM.mjs} +2 -2
  10. package/dist/lib/neutral/chunk-JZHXJBSM.mjs.map +7 -0
  11. package/dist/lib/neutral/{chunk-3YH7MWSD.mjs → chunk-KZDQGI3S.mjs} +2 -2
  12. package/dist/lib/neutral/{chunk-JRUTUKPS.mjs → chunk-OK3P6URP.mjs} +3 -3
  13. package/dist/lib/neutral/{chunk-BOB6M2YM.mjs → chunk-WTUY5UCA.mjs} +3 -3
  14. package/dist/lib/neutral/{chunk-BOB6M2YM.mjs.map → chunk-WTUY5UCA.mjs.map} +1 -1
  15. package/dist/lib/neutral/chunk-ZA5WZL4H.mjs +97 -0
  16. package/dist/lib/neutral/chunk-ZA5WZL4H.mjs.map +7 -0
  17. package/dist/lib/neutral/{create-agent-KUTBEXLJ.mjs → create-agent-7PBQFYHF.mjs} +6 -6
  18. package/dist/lib/neutral/{definitions-6HU2P7R7.mjs → definitions-BHRGH45G.mjs} +4 -4
  19. package/dist/lib/neutral/{delegate-task-E7WLHT6S.mjs → delegate-task-IQJSRLN3.mjs} +4 -4
  20. package/dist/lib/neutral/{get-context-X4FCUMLK.mjs → get-context-6SZ7HOV4.mjs} +4 -4
  21. package/dist/lib/neutral/index.mjs +61 -18
  22. package/dist/lib/neutral/index.mjs.map +4 -4
  23. package/dist/lib/neutral/meta.json +1 -1
  24. package/dist/lib/neutral/{prompt-QL7TTLM3.mjs → prompt-37GJGKNM.mjs} +4 -4
  25. package/dist/lib/neutral/{prompt-QL7TTLM3.mjs.map → prompt-37GJGKNM.mjs.map} +1 -1
  26. package/dist/lib/neutral/{qualifier-QAW6LSYF.mjs → qualifier-DHPHY3YH.mjs} +4 -4
  27. package/dist/lib/neutral/{sync-triggers-JEVTYIGU.mjs → sync-triggers-CI6ECSZX.mjs} +5 -5
  28. package/dist/lib/neutral/testing/index.mjs +2 -12
  29. package/dist/lib/neutral/testing/index.mjs.map +3 -3
  30. package/dist/lib/neutral/{update-tasks-N65UQUHS.mjs → update-tasks-R5YXESZ6.mjs} +4 -4
  31. package/dist/types/src/blueprints/agent/operations/definitions.d.ts +6 -4
  32. package/dist/types/src/blueprints/agent/operations/definitions.d.ts.map +1 -1
  33. package/dist/types/src/blueprints/agent-wizard/operations/create-agent.d.ts +3 -2
  34. package/dist/types/src/blueprints/agent-wizard/operations/definitions.d.ts +6 -4
  35. package/dist/types/src/blueprints/agent-wizard/operations/definitions.d.ts.map +1 -1
  36. package/dist/types/src/blueprints/agent-wizard/operations/sync-triggers.d.ts +3 -2
  37. package/dist/types/src/blueprints/delegation/operations/delegate-task.d.ts +4 -2
  38. package/dist/types/src/blueprints/delegation/operations/delegate-task.d.ts.map +1 -1
  39. package/dist/types/src/blueprints/planning/operations/update-tasks.d.ts.map +1 -1
  40. package/dist/types/src/functions/agent/definitions.d.ts +2 -2
  41. package/dist/types/src/supervisor/delegation-strategy.d.ts.map +1 -1
  42. package/dist/types/src/supervisor/index.d.ts +1 -0
  43. package/dist/types/src/supervisor/index.d.ts.map +1 -1
  44. package/dist/types/src/supervisor/plan-completion-guard.d.ts +6 -0
  45. package/dist/types/src/supervisor/plan-completion-guard.d.ts.map +1 -0
  46. package/dist/types/src/testing/plugins.d.ts.map +1 -1
  47. package/dist/types/src/types/Agent.d.ts +3 -2
  48. package/dist/types/src/types/Agent.d.ts.map +1 -1
  49. package/dist/types/src/types/Chat.d.ts +4 -4
  50. package/dist/types/src/types/Plan.d.ts +14 -3
  51. package/dist/types/src/types/Plan.d.ts.map +1 -1
  52. package/dist/types/tsconfig.tsbuildinfo +1 -1
  53. package/package.json +27 -26
  54. package/src/blueprints/agent/blueprint.conversations.json +1 -1
  55. package/src/blueprints/database/blueprint.conversations.json +1 -1
  56. package/src/blueprints/delegation/operations/delegate-task.test.ts +68 -4
  57. package/src/blueprints/delegation/operations/delegate-task.ts +47 -11
  58. package/src/blueprints/memory/blueprint.conversations.json +1 -1
  59. package/src/blueprints/planning/operations/update-tasks.ts +4 -3
  60. package/src/functions/agent/definitions.ts +1 -1
  61. package/src/functions/agent/prompt.conversations.json +1 -1
  62. package/src/functions/agent/prompt.ts +1 -1
  63. package/src/supervisor/delegation-strategy.ts +8 -1
  64. package/src/supervisor/index.ts +1 -0
  65. package/src/supervisor/plan-completion-guard.ts +50 -0
  66. package/src/testing/plugins.tsx +2 -21
  67. package/src/types/Chat.ts +1 -1
  68. package/src/types/Plan.ts +14 -0
  69. package/dist/lib/neutral/chunk-KC2LPECT.mjs.map +0 -7
  70. package/dist/lib/neutral/chunk-U5FCQXA2.mjs +0 -69
  71. package/dist/lib/neutral/chunk-U5FCQXA2.mjs.map +0 -7
  72. package/dist/lib/neutral/chunk-URUJQGI6.mjs.map +0 -7
  73. package/dist/lib/neutral/chunk-Z3KITY4U.mjs.map +0 -7
  74. package/src/blueprints/blueprint-manager/blueprint.conversations.json +0 -1
  75. package/src/blueprints/browser/blueprint.conversations.json +0 -1
  76. package/src/blueprints/websearch/blueprint.conversations.json +0 -1
  77. /package/dist/lib/neutral/{add-artifact-54DVWE53.mjs.map → add-artifact-QEQP6T7Z.mjs.map} +0 -0
  78. /package/dist/lib/neutral/{agent-LCBDWP74.mjs.map → agent-BU6PB7J6.mjs.map} +0 -0
  79. /package/dist/lib/neutral/{agent-rules-3TBAIVTS.mjs.map → agent-rules-L3AHRSR4.mjs.map} +0 -0
  80. /package/dist/lib/neutral/{chunk-RNIUE4LK.mjs.map → chunk-CUT6GB2W.mjs.map} +0 -0
  81. /package/dist/lib/neutral/{chunk-3YH7MWSD.mjs.map → chunk-KZDQGI3S.mjs.map} +0 -0
  82. /package/dist/lib/neutral/{chunk-JRUTUKPS.mjs.map → chunk-OK3P6URP.mjs.map} +0 -0
  83. /package/dist/lib/neutral/{create-agent-KUTBEXLJ.mjs.map → create-agent-7PBQFYHF.mjs.map} +0 -0
  84. /package/dist/lib/neutral/{definitions-6HU2P7R7.mjs.map → definitions-BHRGH45G.mjs.map} +0 -0
  85. /package/dist/lib/neutral/{delegate-task-E7WLHT6S.mjs.map → delegate-task-IQJSRLN3.mjs.map} +0 -0
  86. /package/dist/lib/neutral/{get-context-X4FCUMLK.mjs.map → get-context-6SZ7HOV4.mjs.map} +0 -0
  87. /package/dist/lib/neutral/{qualifier-QAW6LSYF.mjs.map → qualifier-DHPHY3YH.mjs.map} +0 -0
  88. /package/dist/lib/neutral/{sync-triggers-JEVTYIGU.mjs.map → sync-triggers-CI6ECSZX.mjs.map} +0 -0
  89. /package/dist/lib/neutral/{update-tasks-N65UQUHS.mjs.map → update-tasks-R5YXESZ6.mjs.map} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  AgentPrompt
3
- } from "./chunk-BOB6M2YM.mjs";
3
+ } from "./chunk-WTUY5UCA.mjs";
4
4
  import {
5
5
  Chat
6
- } from "./chunk-Z3KITY4U.mjs";
6
+ } from "./chunk-JZHXJBSM.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
9
9
  // src/functions/agent/prompt.ts
@@ -36,7 +36,7 @@ var PromptError = class extends BaseError.extend("PromptError") {
36
36
 
37
37
  // src/functions/agent/prompt.ts
38
38
  var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/assistant-toolkit/src/functions/agent/prompt.ts";
39
- var DEFAULT_MODEL = "ai.claude.model.claude-opus-4-6";
39
+ var DEFAULT_MODEL = "ai.claude.model.claude-opus-4-8";
40
40
  var prompt_default = AgentPrompt.pipe(Operation.withHandler(Effect.fnUntraced(function* (data) {
41
41
  log.info("processing input", {
42
42
  input: data.input
@@ -164,4 +164,4 @@ var ToolExecutionService = ({ feed }) => Layer.unwrapEffect(Effect.gen(function*
164
164
  export {
165
165
  prompt_default as default
166
166
  };
167
- //# sourceMappingURL=prompt-QL7TTLM3.mjs.map
167
+ //# sourceMappingURL=prompt-37GJGKNM.mjs.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src/functions/agent/prompt.ts", "../../../src/errors.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Tool from '@effect/ai/Tool';\nimport * as Toolkit from '@effect/ai/Toolkit';\nimport * as Deferred from 'effect/Deferred';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\nimport * as Option from 'effect/Option';\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, OpaqueToolkit, ModelName } from '@dxos/ai';\nimport {\n AiSession,\n getOperationFromTool,\n makeToolExecutionService,\n makeToolResolverFromOperations,\n} from '@dxos/assistant';\nimport { Template, Trace, Operation } from '@dxos/compute';\nimport { Database, Feed, Obj, Ref } from '@dxos/echo';\nimport { EffectEx } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\nimport { trim } from '@dxos/util';\n\nimport { PromptError } from '../../errors';\nimport * as Chat from '../../types/Chat';\nimport { AgentPrompt } from './definitions';\n\nconst DEFAULT_MODEL: ModelName = 'ai.claude.model.claude-opus-4-6';\n\nexport default AgentPrompt.pipe(\n Operation.withHandler(\n Effect.fnUntraced(\n function* (data) {\n log.info('processing input', { input: data.input });\n\n const input = yield* Ref.isRef(data.input)\n ? Database.load(data.input).pipe(Effect.map(Obj.toJSON))\n : Effect.succeed(data.input);\n\n yield* Database.flush();\n const prompt = yield* Database.load(data.prompt);\n yield* Trace.emitStatus(`Running ${prompt.id}`);\n\n log.info('starting agent', { prompt: prompt.id, input });\n\n // Bind the routine's own refs, dropping any that no longer resolve. The refs must be\n // bound as-is (not re-wrapped via `Ref.make`) to preserve their registry DXN: bindings\n // are persisted to the conversation feed, and registry-only blueprints have no space-DB\n // identity, so an EID ref would not resolve when the binding is re-read.\n const blueprintRefs = yield* Effect.filter(prompt.blueprints, (ref) =>\n Database.load(ref).pipe(\n Effect.as(true),\n Effect.catchTag('EntityNotFoundError', () => Effect.succeed(false)),\n ),\n );\n\n const objectRefs = yield* Effect.filter(prompt.context, (ref) =>\n Database.load(ref).pipe(\n Effect.as(true),\n Effect.catchTag('EntityNotFoundError', () => Effect.succeed(false)),\n ),\n );\n\n const promptInstructions = yield* Database.load(prompt.instructions);\n let promptText = Template.process(promptInstructions.content, input);\n\n if (input !== undefined) {\n promptText += `\\n<input>${JSON.stringify(input)}</input>`;\n }\n\n let systemText = trim`\n You are an agent running in the non-interactive mode.\n The user is unable to see what you are doing, and cannot answer any questions.\n Do not ask questions.\n Complete the task before you, and at the end call [completeJob] with the output.\n If you are unable to complete the task, call [completeJob] with the failure reason.\n If no output is required, call [completeJob] with an empty object: {}\n Do not stop until you call [completeJob].\n `;\n if (data.systemInstructions) {\n systemText += `\\n${data.systemInstructions}`;\n }\n\n const modelLayer = AiService.model(data.model ?? DEFAULT_MODEL);\n\n let feed: Feed.Feed;\n if (data.chat) {\n const chat = yield* Database.load(data.chat);\n invariant(Obj.instanceOf(Chat.Chat, chat), 'Expected Chat object.');\n feed = yield* Database.load(chat.feed);\n } else {\n feed = yield* Database.add(Feed.make());\n }\n\n const resultSink = yield* Deferred.make<unknown, PromptError>();\n const promptToolkit = makePromptAgentToolkit({\n output: Schema.Any, // TODO(dmaretskyi): Use prompt's output schema.\n resultSink,\n });\n\n const runtime = yield* Effect.runtime<Feed.FeedService>();\n const session = yield* EffectEx.acquireReleaseResource(() => new AiSession.Session({ feed, runtime }));\n\n yield* Effect.promise(() =>\n session.context.bind({\n blueprints: blueprintRefs,\n objects: objectRefs,\n }),\n );\n\n yield* session\n .createRequest({\n prompt: promptText,\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.gen(function* () {\n yield* session\n .createRequest({\n prompt: 'You must signal task completion by calling [completeJob] with the output or failure reason.',\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.fail(new PromptError('Agent did not signal task completion.', {})),\n ),\n );\n }),\n ),\n );\n },\n Effect.tapBoth({\n onSuccess: () => Database.flush(),\n onFailure: () => Database.flush(),\n }),\n Effect.scoped,\n ),\n ),\n Operation.opaqueHandler,\n);\n\nconst makePromptAgentToolkit = (options: {\n output: Schema.Schema.Any;\n resultSink: Deferred.Deferred<unknown, PromptError>;\n}) => {\n class PromptAgentToolkit extends Toolkit.make(\n Tool.make('completeJob', {\n parameters: {\n success: Schema.optional(Schema.Any), // TODO(dmaretskyi): Pipe output schema here.\n failure: Schema.optional(\n Schema.Struct({\n message: Schema.String.annotations({\n description: 'Short message describing the error.',\n }),\n description: Schema.optional(Schema.String).annotations({\n description: 'Optional longer message describing in detail what went wrong',\n }),\n }),\n ),\n },\n }),\n ) {}\n const layer = PromptAgentToolkit.toLayer({\n completeJob: Effect.fnUntraced(function* (result) {\n if (result.failure) {\n yield* Deferred.fail(\n options.resultSink,\n new PromptError(result.failure.message, {\n description: result.failure.description,\n }),\n );\n } else {\n yield* Deferred.succeed(options.resultSink, result.success);\n }\n }),\n });\n\n return OpaqueToolkit.make(PromptAgentToolkit, layer);\n};\n\ninterface ToolExecutionServiceOptions {\n feed: Feed.Feed;\n}\n\nconst ToolExecutionService = ({ feed }: ToolExecutionServiceOptions) =>\n Layer.unwrapEffect(\n Effect.gen(function* () {\n const operationInvoker = yield* Operation.Service;\n return makeToolExecutionService({\n invoke: (tool, input) =>\n Effect.gen(function* () {\n const operationDef = getOperationFromTool(tool).pipe(Option.getOrThrow);\n log('invoking operation', { operationDef, input });\n const result = yield* operationInvoker\n .invoke(operationDef, input, {\n conversation: Obj.getURI(feed),\n })\n .pipe(Effect.orDie);\n log('result', { result });\n return result;\n }),\n });\n }),\n );\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { BaseError } from '@dxos/errors';\nimport { type EID } from '@dxos/keys';\n\n/**\n * Agent could not execute prompt.\n */\nexport class PromptError extends BaseError.extend('PromptError') {\n constructor(\n message: string,\n context: {\n description?: string;\n prompt?: EID.EID;\n chat?: EID.EID;\n },\n ) {\n super({\n message,\n context,\n });\n }\n}\n"],
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Tool from '@effect/ai/Tool';\nimport * as Toolkit from '@effect/ai/Toolkit';\nimport * as Deferred from 'effect/Deferred';\nimport * as Effect from 'effect/Effect';\nimport * as Layer from 'effect/Layer';\nimport * as Option from 'effect/Option';\nimport * as Schema from 'effect/Schema';\n\nimport { AiService, OpaqueToolkit, ModelName } from '@dxos/ai';\nimport {\n AiSession,\n getOperationFromTool,\n makeToolExecutionService,\n makeToolResolverFromOperations,\n} from '@dxos/assistant';\nimport { Template, Trace, Operation } from '@dxos/compute';\nimport { Database, Feed, Obj, Ref } from '@dxos/echo';\nimport { EffectEx } from '@dxos/effect';\nimport { invariant } from '@dxos/invariant';\nimport { log } from '@dxos/log';\nimport { trim } from '@dxos/util';\n\nimport { PromptError } from '../../errors';\nimport * as Chat from '../../types/Chat';\nimport { AgentPrompt } from './definitions';\n\nconst DEFAULT_MODEL: ModelName = 'ai.claude.model.claude-opus-4-8';\n\nexport default AgentPrompt.pipe(\n Operation.withHandler(\n Effect.fnUntraced(\n function* (data) {\n log.info('processing input', { input: data.input });\n\n const input = yield* Ref.isRef(data.input)\n ? Database.load(data.input).pipe(Effect.map(Obj.toJSON))\n : Effect.succeed(data.input);\n\n yield* Database.flush();\n const prompt = yield* Database.load(data.prompt);\n yield* Trace.emitStatus(`Running ${prompt.id}`);\n\n log.info('starting agent', { prompt: prompt.id, input });\n\n // Bind the routine's own refs, dropping any that no longer resolve. The refs must be\n // bound as-is (not re-wrapped via `Ref.make`) to preserve their registry DXN: bindings\n // are persisted to the conversation feed, and registry-only blueprints have no space-DB\n // identity, so an EID ref would not resolve when the binding is re-read.\n const blueprintRefs = yield* Effect.filter(prompt.blueprints, (ref) =>\n Database.load(ref).pipe(\n Effect.as(true),\n Effect.catchTag('EntityNotFoundError', () => Effect.succeed(false)),\n ),\n );\n\n const objectRefs = yield* Effect.filter(prompt.context, (ref) =>\n Database.load(ref).pipe(\n Effect.as(true),\n Effect.catchTag('EntityNotFoundError', () => Effect.succeed(false)),\n ),\n );\n\n const promptInstructions = yield* Database.load(prompt.instructions);\n let promptText = Template.process(promptInstructions.content, input);\n\n if (input !== undefined) {\n promptText += `\\n<input>${JSON.stringify(input)}</input>`;\n }\n\n let systemText = trim`\n You are an agent running in the non-interactive mode.\n The user is unable to see what you are doing, and cannot answer any questions.\n Do not ask questions.\n Complete the task before you, and at the end call [completeJob] with the output.\n If you are unable to complete the task, call [completeJob] with the failure reason.\n If no output is required, call [completeJob] with an empty object: {}\n Do not stop until you call [completeJob].\n `;\n if (data.systemInstructions) {\n systemText += `\\n${data.systemInstructions}`;\n }\n\n const modelLayer = AiService.model(data.model ?? DEFAULT_MODEL);\n\n let feed: Feed.Feed;\n if (data.chat) {\n const chat = yield* Database.load(data.chat);\n invariant(Obj.instanceOf(Chat.Chat, chat), 'Expected Chat object.');\n feed = yield* Database.load(chat.feed);\n } else {\n feed = yield* Database.add(Feed.make());\n }\n\n const resultSink = yield* Deferred.make<unknown, PromptError>();\n const promptToolkit = makePromptAgentToolkit({\n output: Schema.Any, // TODO(dmaretskyi): Use prompt's output schema.\n resultSink,\n });\n\n const runtime = yield* Effect.runtime<Feed.FeedService>();\n const session = yield* EffectEx.acquireReleaseResource(() => new AiSession.Session({ feed, runtime }));\n\n yield* Effect.promise(() =>\n session.context.bind({\n blueprints: blueprintRefs,\n objects: objectRefs,\n }),\n );\n\n yield* session\n .createRequest({\n prompt: promptText,\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.gen(function* () {\n yield* session\n .createRequest({\n prompt: 'You must signal task completion by calling [completeJob] with the output or failure reason.',\n system: systemText,\n toolkit: promptToolkit,\n })\n .pipe(\n Effect.provide(\n Layer.mergeAll(modelLayer, ToolExecutionService({ feed }), makeToolResolverFromOperations()),\n ),\n );\n\n return yield* Deferred.poll(resultSink).pipe(\n Effect.flatten,\n Effect.flatten,\n Effect.catchTag('NoSuchElementException', () =>\n Effect.fail(new PromptError('Agent did not signal task completion.', {})),\n ),\n );\n }),\n ),\n );\n },\n Effect.tapBoth({\n onSuccess: () => Database.flush(),\n onFailure: () => Database.flush(),\n }),\n Effect.scoped,\n ),\n ),\n Operation.opaqueHandler,\n);\n\nconst makePromptAgentToolkit = (options: {\n output: Schema.Schema.Any;\n resultSink: Deferred.Deferred<unknown, PromptError>;\n}) => {\n class PromptAgentToolkit extends Toolkit.make(\n Tool.make('completeJob', {\n parameters: {\n success: Schema.optional(Schema.Any), // TODO(dmaretskyi): Pipe output schema here.\n failure: Schema.optional(\n Schema.Struct({\n message: Schema.String.annotations({\n description: 'Short message describing the error.',\n }),\n description: Schema.optional(Schema.String).annotations({\n description: 'Optional longer message describing in detail what went wrong',\n }),\n }),\n ),\n },\n }),\n ) {}\n const layer = PromptAgentToolkit.toLayer({\n completeJob: Effect.fnUntraced(function* (result) {\n if (result.failure) {\n yield* Deferred.fail(\n options.resultSink,\n new PromptError(result.failure.message, {\n description: result.failure.description,\n }),\n );\n } else {\n yield* Deferred.succeed(options.resultSink, result.success);\n }\n }),\n });\n\n return OpaqueToolkit.make(PromptAgentToolkit, layer);\n};\n\ninterface ToolExecutionServiceOptions {\n feed: Feed.Feed;\n}\n\nconst ToolExecutionService = ({ feed }: ToolExecutionServiceOptions) =>\n Layer.unwrapEffect(\n Effect.gen(function* () {\n const operationInvoker = yield* Operation.Service;\n return makeToolExecutionService({\n invoke: (tool, input) =>\n Effect.gen(function* () {\n const operationDef = getOperationFromTool(tool).pipe(Option.getOrThrow);\n log('invoking operation', { operationDef, input });\n const result = yield* operationInvoker\n .invoke(operationDef, input, {\n conversation: Obj.getURI(feed),\n })\n .pipe(Effect.orDie);\n log('result', { result });\n return result;\n }),\n });\n }),\n );\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { BaseError } from '@dxos/errors';\nimport { type EID } from '@dxos/keys';\n\n/**\n * Agent could not execute prompt.\n */\nexport class PromptError extends BaseError.extend('PromptError') {\n constructor(\n message: string,\n context: {\n description?: string;\n prompt?: EID.EID;\n chat?: EID.EID;\n },\n ) {\n super({\n message,\n context,\n });\n }\n}\n"],
5
5
  "mappings": ";;;;;;;;;AAIA,YAAYA,UAAU;AACtB,YAAYC,aAAa;AACzB,YAAYC,cAAc;AAC1B,YAAYC,YAAY;AACxB,YAAYC,WAAW;AAC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czD,sBAAAA;QAAM;QAChD;uBAEI0D,YAAkBC,GAAAA,cAAOxC,GAAAA,KAAAA,GAAAA,KAAAA,CAAAA;AAC3B,YACCiB,SAAYwB,OAAK,iBAAA,OAAA,cAAA,OAAA;QAChB,cAAU,IAAA,OAAA,IAAA;cAAER,YAAAA;AAAO,UAAA,UAAA;QACvB;MACF,GAAA,EAAA,YAAA,YAAA,GAAA,cAAA,GAAA,KAAA,GAAA,KAAA,CAAA;AACJ,aAAA;IACF,CAAA;;;",
6
6
  "names": ["Tool", "Toolkit", "Deferred", "Effect", "Layer", "Option", "Schema", "AiService", "OpaqueToolkit", "AiSession", "getOperationFromTool", "makeToolExecutionService", "makeToolResolverFromOperations", "Template", "Trace", "Operation", "Database", "Feed", "Obj", "Ref", "EffectEx", "invariant", "log", "trim", "BaseError", "PromptError", "extend", "message", "context", "DEFAULT_MODEL", "log", "data", "input", "Database", "prompt", "load", "Trace", "emitStatus", "info", "promptInstructions", "instructions", "promptText", "Template", "content", "JSON", "systemText", "trim", "modelLayer", "AiService", "invariant", "Obj", "feed", "chat", "add", "Feed", "make", "resultSink", "Deferred", "output", "Any", "runtime", "Effect", "objects", "objectRefs", "session", "createRequest", "system", "toolkit", "pipe", "makeToolResolverFromOperations", "tapBoth", "onSuccess", "onFailure", "scoped", "Operation", "opaqueHandler", "makePromptAgentToolkit", "options", "PromptAgentToolkit", "Toolkit", "failure", "Schema", "annotations", "description", "result", "ToolExecutionService", "unwrapEffect", "makeToolExecutionService", "invoke", "operationDef", "conversation", "getURI", "orDie"]
7
7
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  Qualifier
3
- } from "./chunk-RNIUE4LK.mjs";
3
+ } from "./chunk-CUT6GB2W.mjs";
4
4
  import {
5
5
  Agent_exports,
6
6
  Plan_exports
7
- } from "./chunk-URUJQGI6.mjs";
8
- import "./chunk-Z3KITY4U.mjs";
7
+ } from "./chunk-5HANNHZZ.mjs";
8
+ import "./chunk-JZHXJBSM.mjs";
9
9
  import "./chunk-SYUTQPSB.mjs";
10
10
  import "./chunk-J5LGTIGS.mjs";
11
11
 
@@ -86,4 +86,4 @@ var qualifier_default = handler;
86
86
  export {
87
87
  qualifier_default as default
88
88
  };
89
- //# sourceMappingURL=qualifier-QAW6LSYF.mjs.map
89
+ //# sourceMappingURL=qualifier-DHPHY3YH.mjs.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  SyncTriggers
3
- } from "./chunk-3YH7MWSD.mjs";
4
- import "./chunk-URUJQGI6.mjs";
5
- import "./chunk-Z3KITY4U.mjs";
3
+ } from "./chunk-KZDQGI3S.mjs";
4
+ import "./chunk-5HANNHZZ.mjs";
5
+ import "./chunk-JZHXJBSM.mjs";
6
6
  import "./chunk-SYUTQPSB.mjs";
7
7
  import "./chunk-J5LGTIGS.mjs";
8
8
 
@@ -37,7 +37,7 @@ var syncAgentTriggers = (agent) => Effect.gen(function* () {
37
37
  yield* Database.remove(trigger);
38
38
  }
39
39
  const triggersEnabled = agent.enabled ?? true;
40
- const { Qualifier, AgentWorker } = yield* Effect.promise(() => import("./definitions-6HU2P7R7.mjs"));
40
+ const { Qualifier, AgentWorker } = yield* Effect.promise(() => import("./definitions-BHRGH45G.mjs"));
41
41
  for (const subscription of agent.subscriptions) {
42
42
  const targetOption = yield* Database.load(subscription).pipe(Effect.map(Option.some), Effect.catchTag("EntityNotFoundError", () => Effect.succeed(Option.none())));
43
43
  if (Option.isNone(targetOption)) {
@@ -135,4 +135,4 @@ var syncAgentTriggers = (agent) => Effect.gen(function* () {
135
135
  export {
136
136
  sync_triggers_default as default
137
137
  };
138
- //# sourceMappingURL=sync-triggers-JEVTYIGU.mjs.map
138
+ //# sourceMappingURL=sync-triggers-CI6ECSZX.mjs.map
@@ -37,27 +37,17 @@ import * as Schema from "effect/Schema";
37
37
  import React from "react";
38
38
  import { Capabilities, Capability } from "@dxos/app-framework";
39
39
  import { Surface } from "@dxos/app-framework/ui";
40
+ import { AppSurface } from "@dxos/app-toolkit/ui";
40
41
  import { DXN, Format, Type } from "@dxos/echo";
41
42
  import { Card } from "@dxos/react-ui";
42
43
  import { Syntax } from "@dxos/react-ui-syntax-highlighter";
43
44
  var MapSchema = Schema.Struct({
44
45
  coordinates: Format.GeoPoint
45
46
  }).pipe(Type.makeObject(DXN.make("com.example.type.map", "0.1.0")));
46
- var isImage = (data) => false;
47
47
  var capabilities = [
48
- Capability.contributes(Capabilities.ReactSurface, Surface.create({
49
- id: "pluginImage",
50
- role: "card--content",
51
- filter: (data) => isImage(data.value),
52
- component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Body, null, /* @__PURE__ */ React.createElement("img", {
53
- className: "grow object-cover",
54
- src: `data:image/jpeg;base64,${data.value.source.data}`,
55
- alt: data.value.prompt ?? `Generated image [id=${data.value.id}]`
56
- }))
57
- })),
58
48
  Capability.contributes(Capabilities.ReactSurface, Surface.create({
59
49
  id: "pluginDefault",
60
- role: "card--content",
50
+ filter: Surface.makeFilter(AppSurface.CardContent),
61
51
  position: "last",
62
52
  component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Body, null, /* @__PURE__ */ React.createElement(Syntax.Root, {
63
53
  data
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../../src/blueprints/testing.ts", "../../../../src/testing/plugins.tsx"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Arr from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport { pipe } from 'effect/Function';\n\nimport { ConsolePrinter } from '@dxos/ai';\nimport { AiContext, AiRequest, AiSession, GenerationObserver } from '@dxos/assistant';\nimport type { Blueprint } from '@dxos/compute';\nimport { Database, Ref } from '@dxos/echo';\nimport { log } from '@dxos/log';\n\nexport type TestStep = Pick<AiSession.RunProps, 'prompt' | 'system'> & {\n test?: () => Promise<void>;\n};\n\n/**\n * Runs the prompt steps, calling the test function after each step.\n */\nexport const runSteps: (\n session: AiSession.Session,\n steps: TestStep[],\n) => Effect.Effect<void, AiRequest.RunError, AiRequest.RunRequirements> = Effect.fn(function* (\n session: AiSession.Session,\n steps: TestStep[],\n) {\n for (const { test, ...props } of steps) {\n yield* session.createRequest({\n ...props,\n observer: GenerationObserver.fromPrinter(new ConsolePrinter({ mode: 'json' })),\n });\n const messages = yield* Effect.promise(() => session.getHistory());\n log.info('conversation', { messages });\n if (test) {\n yield* Effect.promise(() => test());\n }\n }\n});\n\n/**\n * Binds blueprints from the blueprint definitions.\n */\n// TODO(dmaretskyi): Potentially the agent will auto-bind the blueprints.\nexport const addBlueprints = Effect.fnUntraced(function* (blueprints: Blueprint.Definition[]) {\n yield* AiContext.Service.bindContext({\n blueprints: yield* pipe(\n blueprints,\n Arr.map((blueprint) => blueprint.make()),\n Effect.forEach(Database.add),\n Effect.map(Arr.map(Ref.make)),\n ),\n });\n});\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { DXN, Format, type Obj, Type } from '@dxos/echo';\nimport { Card } from '@dxos/react-ui';\nimport { Syntax } from '@dxos/react-ui-syntax-highlighter';\n\nexport const MapSchema = Schema.Struct({\n coordinates: Format.GeoPoint,\n}).pipe(Type.makeObject(DXN.make('com.example.type.map', '0.1.0')));\n\nexport type MapSchema = Type.InstanceType<typeof MapSchema>;\n\n// TODO(burdon): Move to ECHO def.\nexport type ArtifactsContext = {\n items: Obj.Unknown[];\n getArtifacts: () => Obj.Unknown[];\n addArtifact: (artifact: Obj.Unknown) => void;\n};\n\ndeclare global {\n interface ToolContextExtensions {\n artifacts?: ArtifactsContext;\n }\n}\n\n// TODO(dmaretskyi): Removed images from conductor GPT implementation.\nconst isImage = (data: any): data is any => false;\n\nexport const capabilities: Capability.Any[] = [\n Capability.contributes(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'pluginImage',\n role: 'card--content',\n filter: (data: any): data is any => isImage(data.value),\n component: ({ data }) => (\n <Card.Body>\n <img\n className='grow object-cover'\n src={`data:image/jpeg;base64,${data.value.source.data}`}\n alt={data.value.prompt ?? `Generated image [id=${data.value.id}]`}\n />\n </Card.Body>\n ),\n }),\n ),\n Capability.contributes(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'pluginDefault',\n role: 'card--content',\n position: 'last',\n component: ({ data }) => (\n <Card.Body>\n <Syntax.Root data={data}>\n <Syntax.Content>\n <Syntax.Filter />\n <Syntax.Viewport>\n <Syntax.Code />\n </Syntax.Viewport>\n </Syntax.Content>\n </Syntax.Root>\n </Card.Body>\n ),\n }),\n ),\n];\n"],
5
- "mappings": ";;;AAIA,YAAYA,SAAS;AACrB,YAAYC,YAAY;AACxB,SAASC,YAAY;AAErB,SAASC,sBAAsB;AAC/B,SAASC,WAAiCC,0BAA0B;AAEpE,SAASC,UAAUC,WAAW;AAC9B,SAASC,WAAW;AAMpB,IAAA,eAAA;AAWI,IAAOC,WAAQC,UAAc,WAAA,SAAA,OAAA;aACxBC,EAAAA,MAAK,GAAA,MAAA,KAAA,OAAA;WACRC,QAAUP,cAAAA;;MAAiE,UAAA,mBAAA,YAAA,IAAA,eAAA;QAC7E,MAAA;MACA,CAAA,CAAMQ;IACNL,CAAAA;UAA2BK,WAAAA,OAAAA,eAAAA,MAAAA,QAAAA,WAAAA,CAAAA;AAAS,QAAA,KAAA,gBAAA;MAChCC;qBACKb,YAAc,GAAC,cAAMa,GAAAA,IAAAA,GAAAA,KAAAA,CAAAA;AAC9B,QAAA,MAAA;AACF,aAAA,eAAA,MAAA,KAAA,CAAA;IACC;EAEH;;IAMIC,gBACEA,kBACAf,WAASgB,YAAcA;AAI3B,SAAA,UAAA,QAAA,YAAA;IACC,YAAA,OAAA,KAAA,YAAA,QAAA,CAAA,cAAA,UAAA,KAAA,CAAA,GAAA,eAAA,SAAA,GAAA,GAAA,WAAA,QAAA,IAAA,IAAA,CAAA,CAAA;;;;;AClDH,YAAYC,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,KAAKC,QAAkBC,YAAY;AAC5C,SAASC,YAAY;AACrB,SAASC,cAAc;AAEhB,IAAMC,YAAmBC,cAAO;EACrCC,aAAaN,OAAOO;AACtB,CAAA,EAAGC,KAAKP,KAAKQ,WAAWV,IAAIW,KAAK,wBAAwB,OAAA,CAAA,CAAA;AAkBzD,IAAMC,UAAU,CAACC,SAA2B;AAErC,IAAMC,eAAiC;EAC5ChB,WAAWiB,YACTlB,aAAamB,cACbjB,QAAQkB,OAAO;IACbC,IAAI;IACJC,MAAM;IACNC,QAAQ,CAACP,SAA2BD,QAAQC,KAAKQ,KAAK;IACtDC,WAAW,CAAC,EAAET,KAAI,MAChB,sBAAA,cAACV,KAAKoB,MAAI,MACR,sBAAA,cAACC,OAAAA;MACCC,WAAU;MACVC,KAAK,0BAA0Bb,KAAKQ,MAAMM,OAAOd,IAAI;MACrDe,KAAKf,KAAKQ,MAAMQ,UAAU,uBAAuBhB,KAAKQ,MAAMH,EAAE;;EAItE,CAAA,CAAA;EAEFpB,WAAWiB,YACTlB,aAAamB,cACbjB,QAAQkB,OAAO;IACbC,IAAI;IACJC,MAAM;IACNW,UAAU;IACVR,WAAW,CAAC,EAAET,KAAI,MAChB,sBAAA,cAACV,KAAKoB,MAAI,MACR,sBAAA,cAACnB,OAAO2B,MAAI;MAAClB;OACX,sBAAA,cAACT,OAAO4B,SAAO,MACb,sBAAA,cAAC5B,OAAO6B,QAAM,IAAA,GACd,sBAAA,cAAC7B,OAAO8B,UAAQ,MACd,sBAAA,cAAC9B,OAAO+B,MAAI,IAAA,CAAA,CAAA,CAAA,CAAA;EAMxB,CAAA,CAAA;;",
6
- "names": ["Arr", "Effect", "pipe", "ConsolePrinter", "AiContext", "GenerationObserver", "Database", "Ref", "log", "session", "createRequest", "props", "observer", "messages", "test", "blueprints", "blueprint", "Schema", "React", "Capabilities", "Capability", "Surface", "DXN", "Format", "Type", "Card", "Syntax", "MapSchema", "Struct", "coordinates", "GeoPoint", "pipe", "makeObject", "make", "isImage", "data", "capabilities", "contributes", "ReactSurface", "create", "id", "role", "filter", "value", "component", "Body", "img", "className", "src", "source", "alt", "prompt", "position", "Root", "Content", "Filter", "Viewport", "Code"]
4
+ "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Arr from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport { pipe } from 'effect/Function';\n\nimport { ConsolePrinter } from '@dxos/ai';\nimport { AiContext, AiRequest, AiSession, GenerationObserver } from '@dxos/assistant';\nimport type { Blueprint } from '@dxos/compute';\nimport { Database, Ref } from '@dxos/echo';\nimport { log } from '@dxos/log';\n\nexport type TestStep = Pick<AiSession.RunProps, 'prompt' | 'system'> & {\n test?: () => Promise<void>;\n};\n\n/**\n * Runs the prompt steps, calling the test function after each step.\n */\nexport const runSteps: (\n session: AiSession.Session,\n steps: TestStep[],\n) => Effect.Effect<void, AiRequest.RunError, AiRequest.RunRequirements> = Effect.fn(function* (\n session: AiSession.Session,\n steps: TestStep[],\n) {\n for (const { test, ...props } of steps) {\n yield* session.createRequest({\n ...props,\n observer: GenerationObserver.fromPrinter(new ConsolePrinter({ mode: 'json' })),\n });\n const messages = yield* Effect.promise(() => session.getHistory());\n log.info('conversation', { messages });\n if (test) {\n yield* Effect.promise(() => test());\n }\n }\n});\n\n/**\n * Binds blueprints from the blueprint definitions.\n */\n// TODO(dmaretskyi): Potentially the agent will auto-bind the blueprints.\nexport const addBlueprints = Effect.fnUntraced(function* (blueprints: Blueprint.Definition[]) {\n yield* AiContext.Service.bindContext({\n blueprints: yield* pipe(\n blueprints,\n Arr.map((blueprint) => blueprint.make()),\n Effect.forEach(Database.add),\n Effect.map(Arr.map(Ref.make)),\n ),\n });\n});\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\nimport { DXN, Format, type Obj, Type } from '@dxos/echo';\nimport { Card } from '@dxos/react-ui';\nimport { Syntax } from '@dxos/react-ui-syntax-highlighter';\n\nexport const MapSchema = Schema.Struct({\n coordinates: Format.GeoPoint,\n}).pipe(Type.makeObject(DXN.make('com.example.type.map', '0.1.0')));\n\nexport type MapSchema = Type.InstanceType<typeof MapSchema>;\n\n// TODO(burdon): Move to ECHO def.\nexport type ArtifactsContext = {\n items: Obj.Unknown[];\n getArtifacts: () => Obj.Unknown[];\n addArtifact: (artifact: Obj.Unknown) => void;\n};\n\ndeclare global {\n interface ToolContextExtensions {\n artifacts?: ArtifactsContext;\n }\n}\n\nexport const capabilities: Capability.Any[] = [\n Capability.contributes(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'pluginDefault',\n filter: Surface.makeFilter(AppSurface.CardContent),\n position: 'last',\n component: ({ data }) => (\n <Card.Body>\n <Syntax.Root data={data}>\n <Syntax.Content>\n <Syntax.Filter />\n <Syntax.Viewport>\n <Syntax.Code />\n </Syntax.Viewport>\n </Syntax.Content>\n </Syntax.Root>\n </Card.Body>\n ),\n }),\n ),\n];\n"],
5
+ "mappings": ";;;AAIA,YAAYA,SAAS;AACrB,YAAYC,YAAY;AACxB,SAASC,YAAY;AAErB,SAASC,sBAAsB;AAC/B,SAASC,WAAiCC,0BAA0B;AAEpE,SAASC,UAAUC,WAAW;AAC9B,SAASC,WAAW;AAMpB,IAAA,eAAA;AAWI,IAAOC,WAAQC,UAAc,WAAA,SAAA,OAAA;aACxBC,EAAAA,MAAK,GAAA,MAAA,KAAA,OAAA;WACRC,QAAUP,cAAAA;;MAAiE,UAAA,mBAAA,YAAA,IAAA,eAAA;QAC7E,MAAA;MACA,CAAA,CAAMQ;IACNL,CAAAA;UAA2BK,WAAAA,OAAAA,eAAAA,MAAAA,QAAAA,WAAAA,CAAAA;AAAS,QAAA,KAAA,gBAAA;MAChCC;qBACKb,YAAc,GAAC,cAAMa,GAAAA,IAAAA,GAAAA,KAAAA,CAAAA;AAC9B,QAAA,MAAA;AACF,aAAA,eAAA,MAAA,KAAA,CAAA;IACC;EAEH;;IAMIC,gBACEA,kBACAf,WAASgB,YAAcA;AAI3B,SAAA,UAAA,QAAA,YAAA;IACC,YAAA,OAAA,KAAA,YAAA,QAAA,CAAA,cAAA,UAAA,KAAA,CAAA,GAAA,eAAA,SAAA,GAAA,GAAA,WAAA,QAAA,IAAA,IAAA,CAAA,CAAA;;;;;AClDH,YAAYC,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,kBAAkB;AAC3B,SAASC,KAAKC,QAAkBC,YAAY;AAC5C,SAASC,YAAY;AACrB,SAASC,cAAc;AAEhB,IAAMC,YAAmBC,cAAO;EACrCC,aAAaN,OAAOO;AACtB,CAAA,EAAGC,KAAKP,KAAKQ,WAAWV,IAAIW,KAAK,wBAAwB,OAAA,CAAA,CAAA;AAiBlD,IAAMC,eAAiC;EAC5Cf,WAAWgB,YACTjB,aAAakB,cACbhB,QAAQiB,OAAO;IACbC,IAAI;IACJC,QAAQnB,QAAQoB,WAAWnB,WAAWoB,WAAW;IACjDC,UAAU;IACVC,WAAW,CAAC,EAAEC,KAAI,MAChB,sBAAA,cAACnB,KAAKoB,MAAI,MACR,sBAAA,cAACnB,OAAOoB,MAAI;MAACF;OACX,sBAAA,cAAClB,OAAOqB,SAAO,MACb,sBAAA,cAACrB,OAAOsB,QAAM,IAAA,GACd,sBAAA,cAACtB,OAAOuB,UAAQ,MACd,sBAAA,cAACvB,OAAOwB,MAAI,IAAA,CAAA,CAAA,CAAA,CAAA;EAMxB,CAAA,CAAA;;",
6
+ "names": ["Arr", "Effect", "pipe", "ConsolePrinter", "AiContext", "GenerationObserver", "Database", "Ref", "log", "session", "createRequest", "props", "observer", "messages", "test", "blueprints", "blueprint", "Schema", "React", "Capabilities", "Capability", "Surface", "AppSurface", "DXN", "Format", "Type", "Card", "Syntax", "MapSchema", "Struct", "coordinates", "GeoPoint", "pipe", "makeObject", "make", "capabilities", "contributes", "ReactSurface", "create", "id", "filter", "makeFilter", "CardContent", "position", "component", "data", "Body", "Root", "Content", "Filter", "Viewport", "Code"]
7
7
  }
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  UpdateTasks,
3
3
  update_tasks_default
4
- } from "./chunk-KC2LPECT.mjs";
5
- import "./chunk-URUJQGI6.mjs";
6
- import "./chunk-Z3KITY4U.mjs";
4
+ } from "./chunk-ABOAU3NN.mjs";
5
+ import "./chunk-5HANNHZZ.mjs";
6
+ import "./chunk-JZHXJBSM.mjs";
7
7
  import "./chunk-SYUTQPSB.mjs";
8
8
  import "./chunk-J5LGTIGS.mjs";
9
9
  export {
10
10
  UpdateTasks,
11
11
  update_tasks_default as default
12
12
  };
13
- //# sourceMappingURL=update-tasks-N65UQUHS.mjs.map
13
+ //# sourceMappingURL=update-tasks-R5YXESZ6.mjs.map
@@ -17,7 +17,7 @@ export declare const AgentWorker: Operation.Definition<{
17
17
  readonly kind?: string | undefined;
18
18
  readonly namespace?: "data" | "trace" | undefined;
19
19
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
20
- readonly view?: string | undefined;
20
+ readonly viewType?: string | undefined;
21
21
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
22
22
  readonly plan: import("@dxos/echo/internal").Ref<{
23
23
  readonly tasks: readonly {
@@ -25,6 +25,7 @@ export declare const AgentWorker: Operation.Definition<{
25
25
  readonly title: string;
26
26
  readonly status: "done" | "failed" | "in-progress" | "todo";
27
27
  readonly delegated?: boolean | undefined;
28
+ readonly agentPid?: (string & import("effect/Brand").Brand<"ProcessId">) | undefined;
28
29
  readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
29
30
  readonly chat?: import("@dxos/echo/internal").Ref<{
30
31
  readonly name?: string | undefined;
@@ -33,7 +34,7 @@ export declare const AgentWorker: Operation.Definition<{
33
34
  readonly kind?: string | undefined;
34
35
  readonly namespace?: "data" | "trace" | undefined;
35
36
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
36
- readonly view?: string | undefined;
37
+ readonly viewType?: string | undefined;
37
38
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
38
39
  }[];
39
40
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
@@ -95,7 +96,7 @@ export declare const Qualifier: Operation.Definition<{
95
96
  readonly kind?: string | undefined;
96
97
  readonly namespace?: "data" | "trace" | undefined;
97
98
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
98
- readonly view?: string | undefined;
99
+ readonly viewType?: string | undefined;
99
100
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
100
101
  readonly plan: import("@dxos/echo/internal").Ref<{
101
102
  readonly tasks: readonly {
@@ -103,6 +104,7 @@ export declare const Qualifier: Operation.Definition<{
103
104
  readonly title: string;
104
105
  readonly status: "done" | "failed" | "in-progress" | "todo";
105
106
  readonly delegated?: boolean | undefined;
107
+ readonly agentPid?: (string & import("effect/Brand").Brand<"ProcessId">) | undefined;
106
108
  readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
107
109
  readonly chat?: import("@dxos/echo/internal").Ref<{
108
110
  readonly name?: string | undefined;
@@ -111,7 +113,7 @@ export declare const Qualifier: Operation.Definition<{
111
113
  readonly kind?: string | undefined;
112
114
  readonly namespace?: "data" | "trace" | undefined;
113
115
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
114
- readonly view?: string | undefined;
116
+ readonly viewType?: string | undefined;
115
117
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
116
118
  }[];
117
119
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/agent/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAO,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iJAqBtB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAcpB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;wCAsBrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;8CAkBtB,CAAC"}
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/agent/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAgB,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAO,QAAQ,EAAE,MAAM,YAAY,CAAC;AAK3D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iJAqBtB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAcpB,CAAC;AAEH,eAAO,MAAM,UAAU;;;;;;;;;;wCAsBrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;8CAkBtB,CAAC"}
@@ -19,7 +19,7 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
19
19
  readonly kind?: string | undefined;
20
20
  readonly namespace?: "data" | "trace" | undefined;
21
21
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
22
- readonly view?: string | undefined;
22
+ readonly viewType?: string | undefined;
23
23
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
24
24
  readonly plan: import("@dxos/echo/internal").Ref<{
25
25
  readonly tasks: readonly {
@@ -27,6 +27,7 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
27
27
  readonly title: string;
28
28
  readonly status: "done" | "failed" | "in-progress" | "todo";
29
29
  readonly delegated?: boolean | undefined;
30
+ readonly agentPid?: (string & import("effect/Brand").Brand<"ProcessId">) | undefined;
30
31
  readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
31
32
  readonly chat?: import("@dxos/echo/internal").Ref<{
32
33
  readonly name?: string | undefined;
@@ -35,7 +36,7 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
35
36
  readonly kind?: string | undefined;
36
37
  readonly namespace?: "data" | "trace" | undefined;
37
38
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
38
- readonly view?: string | undefined;
39
+ readonly viewType?: string | undefined;
39
40
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
40
41
  }[];
41
42
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
@@ -20,7 +20,7 @@ export declare const CreateAgent: Operation.Definition<{
20
20
  readonly kind?: string | undefined;
21
21
  readonly namespace?: "data" | "trace" | undefined;
22
22
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
23
- readonly view?: string | undefined;
23
+ readonly viewType?: string | undefined;
24
24
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
25
25
  readonly plan: import("@dxos/echo/internal").Ref<{
26
26
  readonly tasks: readonly {
@@ -28,6 +28,7 @@ export declare const CreateAgent: Operation.Definition<{
28
28
  readonly title: string;
29
29
  readonly status: "done" | "failed" | "in-progress" | "todo";
30
30
  readonly delegated?: boolean | undefined;
31
+ readonly agentPid?: (string & import("effect/Brand").Brand<"ProcessId">) | undefined;
31
32
  readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
32
33
  readonly chat?: import("@dxos/echo/internal").Ref<{
33
34
  readonly name?: string | undefined;
@@ -36,7 +37,7 @@ export declare const CreateAgent: Operation.Definition<{
36
37
  readonly kind?: string | undefined;
37
38
  readonly namespace?: "data" | "trace" | undefined;
38
39
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
39
- readonly view?: string | undefined;
40
+ readonly viewType?: string | undefined;
40
41
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
41
42
  }[];
42
43
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
@@ -68,7 +69,7 @@ export declare const SyncTriggers: Operation.Definition<{
68
69
  readonly kind?: string | undefined;
69
70
  readonly namespace?: "data" | "trace" | undefined;
70
71
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
71
- readonly view?: string | undefined;
72
+ readonly viewType?: string | undefined;
72
73
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
73
74
  readonly plan: import("@dxos/echo/internal").Ref<{
74
75
  readonly tasks: readonly {
@@ -76,6 +77,7 @@ export declare const SyncTriggers: Operation.Definition<{
76
77
  readonly title: string;
77
78
  readonly status: "done" | "failed" | "in-progress" | "todo";
78
79
  readonly delegated?: boolean | undefined;
80
+ readonly agentPid?: (string & import("effect/Brand").Brand<"ProcessId">) | undefined;
79
81
  readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
80
82
  readonly chat?: import("@dxos/echo/internal").Ref<{
81
83
  readonly name?: string | undefined;
@@ -84,7 +86,7 @@ export declare const SyncTriggers: Operation.Definition<{
84
86
  readonly kind?: string | undefined;
85
87
  readonly namespace?: "data" | "trace" | undefined;
86
88
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
87
- readonly view?: string | undefined;
89
+ readonly viewType?: string | undefined;
88
90
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
89
91
  }[];
90
92
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/agent-wizard/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAO,QAAQ,EAAQ,MAAM,YAAY,CAAC;AAKtE,eAAO,MAAM,UAAU,yCASrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gJAyBtB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAevB,CAAC"}
1
+ {"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/agent-wizard/operations/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAO,QAAQ,EAAQ,MAAM,YAAY,CAAC;AAKtE,eAAO,MAAM,UAAU,yCASrB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gJAyBtB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;0BAevB,CAAC"}
@@ -15,7 +15,7 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
15
15
  readonly kind?: string | undefined;
16
16
  readonly namespace?: "data" | "trace" | undefined;
17
17
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
18
- readonly view?: string | undefined;
18
+ readonly viewType?: string | undefined;
19
19
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
20
20
  readonly plan: import("@dxos/echo/internal").Ref<{
21
21
  readonly tasks: readonly {
@@ -23,6 +23,7 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
23
23
  readonly title: string;
24
24
  readonly status: "done" | "failed" | "in-progress" | "todo";
25
25
  readonly delegated?: boolean | undefined;
26
+ readonly agentPid?: (string & import("effect/Brand").Brand<"ProcessId">) | undefined;
26
27
  readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
27
28
  readonly chat?: import("@dxos/echo/internal").Ref<{
28
29
  readonly name?: string | undefined;
@@ -31,7 +32,7 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
31
32
  readonly kind?: string | undefined;
32
33
  readonly namespace?: "data" | "trace" | undefined;
33
34
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
34
- readonly view?: string | undefined;
35
+ readonly viewType?: string | undefined;
35
36
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
36
37
  }[];
37
38
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
@@ -2,13 +2,15 @@ import { AiContext } from '@dxos/assistant';
2
2
  import { Operation } from '@dxos/compute';
3
3
  import { Database } from '@dxos/echo';
4
4
  export declare const DelegateTask: Operation.Definition<{
5
- readonly title: string;
5
+ readonly id?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
6
+ readonly title?: string | undefined;
6
7
  }, any, Database.Service | AiContext.Service>;
7
8
  /**
8
9
  * Records delegated work as an in-progress task on the current agent's plan.
9
10
  */
10
11
  declare const _default: Operation.WithHandler<Operation.Definition<{
11
- readonly title: string;
12
+ readonly id?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
13
+ readonly title?: string | undefined;
12
14
  }, any, Database.Service | AiContext.Service>>;
13
15
  export default _default;
14
16
  //# sourceMappingURL=delegate-task.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"delegate-task.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/delegation/operations/delegate-task.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAO,MAAM,YAAY,CAAC;AAM3C,eAAO,MAAM,YAAY;;6CAkBvB,CAAC;AAEH;;GAEG"}
1
+ {"version":3,"file":"delegate-task.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/delegation/operations/delegate-task.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAO,MAAM,YAAY,CAAC;AAM3C,eAAO,MAAM,YAAY;;;6CAqBvB,CAAC;AAEH;;GAEG"}
@@ -1 +1 @@
1
- {"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/planning/operations/update-tasks.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAO,MAAM,YAAY,CAAC;AAW3C,eAAO,MAAM,WAAW;;;;;;;6CAYtB,CAAC;AAEH;;GAEG"}
1
+ {"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/planning/operations/update-tasks.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAO,MAAM,YAAY,CAAC;AAY3C,eAAO,MAAM,WAAW;;;;;;;6CAYtB,CAAC;AAEH;;GAEG"}
@@ -44,9 +44,9 @@ export declare const AgentPrompt: Operation.Definition<{
44
44
  readonly kind?: string | undefined;
45
45
  readonly namespace?: "data" | "trace" | undefined;
46
46
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
47
- readonly view?: string | undefined;
47
+ readonly viewType?: string | undefined;
48
48
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown> | undefined;
49
- readonly model?: "ai.claude.model.claude-3-5-haiku-20241022" | "ai.claude.model.claude-3-5-haiku-latest" | "ai.claude.model.claude-3-5-sonnet-20241022" | "ai.claude.model.claude-haiku-4-5" | "ai.claude.model.claude-opus-4-0" | "ai.claude.model.claude-opus-4-5" | "ai.claude.model.claude-opus-4-6" | "ai.claude.model.claude-opus-4-8" | "ai.claude.model.claude-sonnet-4-0" | "ai.claude.model.claude-sonnet-4-5" | "ai.claude.model.claude-sonnet-4-6" | "ai.google.model.gemma-3-27b" | "ai.meta.model.llama-3.1-8b-instruct" | "ai.meta.model.llama-3.2-3b-instruct" | "ai.mistral.model.ministral-3-14b-reasoning" | "ai.ollama.model.deepseek-r1:latest" | "ai.ollama.model.gemma4:latest" | "ai.ollama.model.gpt-oss:20b" | "ai.ollama.model.llama3.2:1b" | "ai.ollama.model.llama3:70b" | "ai.ollama.model.qwen2.5:14b" | "ai.openai.model.gpt-4o" | "ai.openai.model.gpt-4o-mini" | "ai.openai.model.gpt-oss-20b" | "ai.openai.model.o1" | "ai.openai.model.o3" | "ai.openai.model.o3-mini" | undefined;
49
+ readonly model?: "ai.claude.model.claude-3-5-haiku-20241022" | "ai.claude.model.claude-3-5-haiku-latest" | "ai.claude.model.claude-3-5-sonnet-20241022" | "ai.claude.model.claude-haiku-4-5" | "ai.claude.model.claude-opus-4-0" | "ai.claude.model.claude-opus-4-5" | "ai.claude.model.claude-opus-4-6" | "ai.claude.model.claude-opus-4-8" | "ai.claude.model.claude-sonnet-4-5" | "ai.claude.model.claude-sonnet-4-6" | "ai.google.model.gemma-3-27b" | "ai.meta.model.llama-3.1-8b-instruct" | "ai.meta.model.llama-3.2-3b-instruct" | "ai.mistral.model.ministral-3-14b-reasoning" | "ai.ollama.model.deepseek-r1:latest" | "ai.ollama.model.gemma4:latest" | "ai.ollama.model.gpt-oss:20b" | "ai.ollama.model.llama3.2:1b" | "ai.ollama.model.llama3:70b" | "ai.ollama.model.qwen2.5:14b" | "ai.openai.model.gpt-4o" | "ai.openai.model.gpt-4o-mini" | "ai.openai.model.gpt-oss-20b" | "ai.openai.model.o1" | "ai.openai.model.o3" | "ai.openai.model.o3-mini" | undefined;
50
50
  readonly input: any;
51
51
  readonly systemInstructions?: string | undefined;
52
52
  }, any, AiService.AiService | Feed.FeedService | OpaqueToolkit.OpaqueToolkitProvider | Registry.Service | Database.Service | Trace.TraceService>;
@@ -1 +1 @@
1
- {"version":3,"file":"delegation-strategy.d.ts","sourceRoot":"","sources":["../../../../src/supervisor/delegation-strategy.ts"],"names":[],"mappings":"AAaA,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAuDnF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QAAO,kBAiHxC,CAAC"}
1
+ {"version":3,"file":"delegation-strategy.d.ts","sourceRoot":"","sources":["../../../../src/supervisor/delegation-strategy.ts"],"names":[],"mappings":"AAaA,OAAO,EAAmB,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAuDnF;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,QAAO,kBAwHxC,CAAC"}
@@ -1,2 +1,3 @@
1
1
  export * from './delegation-strategy';
2
+ export * from './plan-completion-guard';
2
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/supervisor/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/supervisor/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { type CompletionGuard } from '@dxos/functions-runtime';
2
+ /**
3
+ * Returns a markdown plan summary when the conversation's agent still has open plan tasks.
4
+ */
5
+ export declare const makePlanCompletionGuard: () => CompletionGuard;
6
+ //# sourceMappingURL=plan-completion-guard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plan-completion-guard.d.ts","sourceRoot":"","sources":["../../../../src/supervisor/plan-completion-guard.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,yBAAyB,CAAC;AA0B/D;;GAEG;AACH,eAAO,MAAM,uBAAuB,QAAO,eAazC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/testing/plugins.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAe,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIzD,eAAO,MAAM,SAAS;;wBAE6C,CAAC;AAEpE,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC;AAG5D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC;IAClC,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,qBAAqB;QAC7B,SAAS,CAAC,EAAE,gBAAgB,CAAC;KAC9B;CACF;AAKD,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,GAAG,EAsCxC,CAAC"}
1
+ {"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/testing/plugins.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAG/D,OAAO,EAAe,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIzD,eAAO,MAAM,SAAS;;wBAE6C,CAAC;AAEpE,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,SAAS,CAAC,CAAC;AAG5D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC;IAClC,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC,CAAC;IACd,UAAU,qBAAqB;QAC7B,SAAS,CAAC,EAAE,gBAAgB,CAAC;KAC9B;CACF;AAED,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,GAAG,EAqBxC,CAAC"}
@@ -21,7 +21,7 @@ export declare const Agent: Type.Obj<{
21
21
  readonly kind?: string | undefined;
22
22
  readonly namespace?: "data" | "trace" | undefined;
23
23
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
24
- readonly view?: string | undefined;
24
+ readonly viewType?: string | undefined;
25
25
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
26
26
  readonly plan: import("@dxos/echo/internal").Ref<{
27
27
  readonly tasks: readonly {
@@ -29,6 +29,7 @@ export declare const Agent: Type.Obj<{
29
29
  readonly title: string;
30
30
  readonly status: "done" | "failed" | "in-progress" | "todo";
31
31
  readonly delegated?: boolean | undefined;
32
+ readonly agentPid?: (string & import("effect/Brand").Brand<"ProcessId">) | undefined;
32
33
  readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
33
34
  readonly chat?: import("@dxos/echo/internal").Ref<{
34
35
  readonly name?: string | undefined;
@@ -37,7 +38,7 @@ export declare const Agent: Type.Obj<{
37
38
  readonly kind?: string | undefined;
38
39
  readonly namespace?: "data" | "trace" | undefined;
39
40
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
40
- readonly view?: string | undefined;
41
+ readonly viewType?: string | undefined;
41
42
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown> | undefined;
42
43
  }[];
43
44
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
@@ -1 +1 @@
1
- {"version":3,"file":"Agent.d.ts","sourceRoot":"","sources":["../../../../src/types/Agent.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAC/C,OAAO,EAAmB,QAAQ,EAAE,IAAI,EAAU,GAAG,EAAE,GAAG,EAAY,IAAI,EAAE,MAAM,YAAY,CAAC;AAE/F,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAS1D;;GAEG;AACH,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA6EjB,CAAC;AAEF,MAAM,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG,IAAI,CAC1B,GAAG,CAAC,SAAS,CAAC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gBAAgB,UACpB,KAAK,KACX,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,IAAI,CAAC,WAAW,GAAG,QAAQ,CAAC,OAAO,CA4CvD,CAAC;AAEzB,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,SAAS,CAAC,OAAO,CAQ5E,CAAC;AAEH;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,UACf,KAAK,gBACE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,KACzC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,OAAO,CAmB1D,CAAC"}
@@ -10,7 +10,7 @@ export declare const Chat: Type.Obj<{
10
10
  readonly kind?: string | undefined;
11
11
  readonly namespace?: "data" | "trace" | undefined;
12
12
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
13
- readonly view?: string | undefined;
13
+ readonly viewType?: string | undefined;
14
14
  }, Schema.Struct.Fields>;
15
15
  export type Chat = Type.InstanceType<typeof Chat>;
16
16
  export declare const make: (props: Obj.MakeProps<typeof Chat>) => Obj.OfShape<{
@@ -20,7 +20,7 @@ export declare const make: (props: Obj.MakeProps<typeof Chat>) => Obj.OfShape<{
20
20
  readonly kind?: string | undefined;
21
21
  readonly namespace?: "data" | "trace" | undefined;
22
22
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
23
- readonly view?: string | undefined;
23
+ readonly viewType?: string | undefined;
24
24
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>>;
25
25
  /** @deprecated Use CompanionTo instead. */
26
26
  export declare const LegacyCompanionTo: Type.Relation<{
@@ -32,7 +32,7 @@ export declare const LegacyCompanionTo: Type.Relation<{
32
32
  readonly kind?: string | undefined;
33
33
  readonly namespace?: "data" | "trace" | undefined;
34
34
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
35
- readonly view?: string | undefined;
35
+ readonly viewType?: string | undefined;
36
36
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, Obj.Unknown & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, Schema.Struct.Fields>;
37
37
  export type LegacyCompanionTo = Type.InstanceType<typeof LegacyCompanionTo>;
38
38
  /**
@@ -47,7 +47,7 @@ export declare const CompanionTo: Type.Relation<{
47
47
  readonly kind?: string | undefined;
48
48
  readonly namespace?: "data" | "trace" | undefined;
49
49
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
50
- readonly view?: string | undefined;
50
+ readonly viewType?: string | undefined;
51
51
  } & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, Obj.Unknown & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object>, Schema.Struct.Fields>;
52
52
  export type CompanionTo = Type.InstanceType<typeof CompanionTo>;
53
53
  //# sourceMappingURL=Chat.d.ts.map