@dxos/assistant-toolkit 0.8.4-main.abd8ff62ef → 0.8.4-main.bc2380dfbc
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.
- package/LICENSE +102 -5
- package/dist/lib/neutral/{add-artifact-BA5WQRDU.mjs → add-artifact-4IVGW6CI.mjs} +4 -4
- package/dist/lib/neutral/{add-artifact-BA5WQRDU.mjs.map → add-artifact-4IVGW6CI.mjs.map} +3 -3
- package/dist/lib/neutral/{agent-M2EW5M36.mjs → agent-F4L7UXME.mjs} +5 -5
- package/dist/lib/neutral/{agent-M2EW5M36.mjs.map → agent-F4L7UXME.mjs.map} +2 -2
- package/dist/lib/neutral/{chunk-CLHVRIYF.mjs → chunk-5GPL2WXU.mjs} +35 -36
- package/dist/lib/neutral/chunk-5GPL2WXU.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-CVUA23QI.mjs → chunk-7UCYAP3T.mjs} +17 -17
- package/dist/lib/neutral/chunk-7UCYAP3T.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-TO5IX24K.mjs → chunk-ANSF2BHN.mjs} +3 -3
- package/dist/lib/neutral/chunk-ANSF2BHN.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-D5MG5OKX.mjs → chunk-BCT55UTL.mjs} +2 -2
- package/dist/lib/neutral/{chunk-J37DYY7A.mjs → chunk-COL54UJ3.mjs} +12 -3
- package/dist/lib/neutral/chunk-COL54UJ3.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-E2XRNXWP.mjs → chunk-KS3IA6FQ.mjs} +11 -10
- package/dist/lib/neutral/chunk-KS3IA6FQ.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-KY2TIPJ5.mjs → chunk-MMQ7HFL4.mjs} +4 -5
- package/dist/lib/neutral/chunk-MMQ7HFL4.mjs.map +7 -0
- package/dist/lib/neutral/chunk-PLGEBNTO.mjs +65 -0
- package/dist/lib/neutral/chunk-PLGEBNTO.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-JCYLFOFK.mjs → chunk-W2722TC5.mjs} +5 -5
- package/dist/lib/neutral/{chunk-JCYLFOFK.mjs.map → chunk-W2722TC5.mjs.map} +3 -3
- package/dist/lib/neutral/{context-add-IIDPRRVB.mjs → context-add-S5MBW2NA.mjs} +4 -4
- package/dist/lib/neutral/context-add-S5MBW2NA.mjs.map +7 -0
- package/dist/lib/neutral/{context-remove-RDYV4PD4.mjs → context-remove-35O5T5N5.mjs} +4 -4
- package/dist/lib/neutral/context-remove-35O5T5N5.mjs.map +7 -0
- package/dist/lib/neutral/{create-project-GLDEAWTT.mjs → create-project-3AGXJ4TD.mjs} +5 -5
- package/dist/lib/neutral/{enable-blueprints-LBDZH2CY.mjs → enable-blueprints-IVKST3WH.mjs} +4 -4
- package/dist/lib/neutral/enable-blueprints-IVKST3WH.mjs.map +7 -0
- package/dist/lib/neutral/{fetch-messages-PWGUG5G3.mjs → fetch-messages-QOBBCTGC.mjs} +2 -2
- package/dist/lib/neutral/{get-context-B55SX5Y4.mjs → get-context-FBYWIP72.mjs} +4 -4
- package/dist/lib/neutral/{get-context-B55SX5Y4.mjs.map → get-context-FBYWIP72.mjs.map} +3 -3
- package/dist/lib/neutral/index.mjs +67 -57
- package/dist/lib/neutral/index.mjs.map +3 -3
- package/dist/lib/neutral/{load-LI7HHVD6.mjs → load-GAT3T2AD.mjs} +2 -2
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{object-create-52Z7YKIA.mjs → object-create-PL3WRP74.mjs} +3 -3
- package/dist/lib/neutral/{object-delete-I266YAXI.mjs → object-delete-PZJQN5KW.mjs} +2 -2
- package/dist/lib/neutral/{object-update-HY4GI7LA.mjs → object-update-R43N3VJX.mjs} +2 -2
- package/dist/lib/neutral/{project-2YBPW5N7.mjs → project-VVXXUMAI.mjs} +4 -4
- package/dist/lib/neutral/{project-rules-XUBEPDP6.mjs → project-rules-KSVSOZJV.mjs} +3 -3
- package/dist/lib/neutral/{prompt-2WZQERT4.mjs → prompt-INL55Q2B.mjs} +10 -7
- package/dist/lib/neutral/{prompt-2WZQERT4.mjs.map → prompt-INL55Q2B.mjs.map} +3 -3
- package/dist/lib/neutral/{qualifier-2AC2ICOB.mjs → qualifier-DAF4H7V3.mjs} +11 -11
- package/dist/lib/neutral/qualifier-DAF4H7V3.mjs.map +7 -0
- package/dist/lib/neutral/{query-B3NOYFCK.mjs → query-MP5NSQKO.mjs} +3 -4
- package/dist/lib/neutral/query-MP5NSQKO.mjs.map +7 -0
- package/dist/lib/neutral/{query-blueprints-KXADGHSA.mjs → query-blueprints-PLWYVOI3.mjs} +2 -2
- package/dist/lib/neutral/{relation-create-Z3NGW4VU.mjs → relation-create-YAAAFTR2.mjs} +3 -3
- package/dist/lib/neutral/{relation-delete-LXY7W2YO.mjs → relation-delete-IEPKERFR.mjs} +2 -2
- package/dist/lib/neutral/{schema-add-4TXJO2V7.mjs → schema-add-5BNIINRS.mjs} +2 -2
- package/dist/lib/neutral/{schema-list-PJS5AFZ3.mjs → schema-list-54UK7S4R.mjs} +2 -2
- package/dist/lib/neutral/{sync-issues-LOLHZNFL.mjs → sync-issues-DWY76B3M.mjs} +6 -7
- package/dist/lib/neutral/sync-issues-DWY76B3M.mjs.map +7 -0
- package/dist/lib/neutral/{sync-triggers-EYJM4QWR.mjs → sync-triggers-NOIQLELD.mjs} +8 -9
- package/dist/lib/neutral/{sync-triggers-EYJM4QWR.mjs.map → sync-triggers-NOIQLELD.mjs.map} +3 -3
- package/dist/lib/neutral/{tag-add-5NOHUTIE.mjs → tag-add-NLVRGTC6.mjs} +2 -2
- package/dist/lib/neutral/{tag-remove-QTKYDJAW.mjs → tag-remove-N4HFBIA2.mjs} +2 -2
- package/dist/lib/neutral/testing/index.mjs +3 -3
- package/dist/lib/neutral/testing/index.mjs.map +3 -3
- package/dist/lib/neutral/{update-blueprints-N2AK2VUR.mjs → update-blueprints-2SNK6HLG.mjs} +2 -2
- package/dist/lib/neutral/update-tasks-QQUR53RN.mjs +13 -0
- package/dist/lib/neutral/update-tasks-QQUR53RN.mjs.map +7 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +10 -8
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts +6 -5
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts.map +1 -1
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts +4 -3
- package/dist/types/src/blueprints/database/functions/context-add.d.ts +2 -2
- package/dist/types/src/blueprints/database/functions/context-add.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts +2 -2
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/definitions.d.ts +3 -3
- package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/query.d.ts +1 -2
- package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/index.d.ts +1 -1
- package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +14 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.test.d.ts +2 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +1 -5
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/definitions.d.ts +16 -8
- package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/get-context.d.ts +1 -12
- package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +8 -4
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +6 -2
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +12 -4
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts +6 -2
- package/dist/types/src/blueprints/testing.d.ts +4 -4
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/crud/graph.d.ts +5 -7
- package/dist/types/src/crud/graph.d.ts.map +1 -1
- package/dist/types/src/functions/agent/definitions.d.ts +6 -5
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -1
- package/dist/types/src/sync/sync.d.ts +1 -2
- package/dist/types/src/sync/sync.d.ts.map +1 -1
- package/dist/types/src/types/Agent.d.ts +9 -7
- package/dist/types/src/types/Agent.d.ts.map +1 -1
- package/dist/types/src/types/McpServer.d.ts +4 -1
- package/dist/types/src/types/McpServer.d.ts.map +1 -1
- package/dist/types/src/types/Plan.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +26 -26
- package/src/blueprints/automation/blueprint.ts +1 -1
- package/src/blueprints/blueprint-manager/blueprint.conversations.json +1 -1
- package/src/blueprints/blueprint-manager/blueprint.test.ts +21 -17
- package/src/blueprints/blueprint-manager/blueprint.ts +2 -2
- package/src/blueprints/blueprint-manager/functions/definitions.ts +2 -2
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +2 -2
- package/src/blueprints/browser/blueprint.test.ts +3 -3
- package/src/blueprints/browser/blueprint.ts +1 -1
- package/src/blueprints/database/blueprint.conversations.json +1 -1
- package/src/blueprints/database/blueprint.test.ts +6 -6
- package/src/blueprints/database/blueprint.ts +1 -1
- package/src/blueprints/database/functions/context-add.ts +2 -2
- package/src/blueprints/database/functions/context-remove.ts +2 -2
- package/src/blueprints/database/functions/definitions.ts +16 -16
- package/src/blueprints/database/functions/query.ts +2 -3
- package/src/blueprints/discord/blueprint.ts +1 -1
- package/src/blueprints/discord/functions/fetch-messages.test.ts +7 -2
- package/src/blueprints/linear/blueprint.ts +1 -1
- package/src/blueprints/linear/functions/linear.test.ts +1 -2
- package/src/blueprints/linear/functions/sync-issues.ts +1 -2
- package/src/blueprints/memory/blueprint.conversations.json +1 -1
- package/src/blueprints/memory/blueprint.ts +1 -1
- package/src/blueprints/planning/blueprint.ts +1 -1
- package/src/blueprints/planning/functions/index.ts +1 -1
- package/src/blueprints/planning/functions/{definitions.ts → update-tasks.md} +29 -50
- package/src/blueprints/planning/functions/update-tasks.test.ts +55 -0
- package/src/blueprints/planning/functions/update-tasks.ts +25 -3
- package/src/blueprints/project/blueprint.conversations.json +1 -1
- package/src/blueprints/project/blueprint.test.ts +15 -17
- package/src/blueprints/project/blueprint.ts +2 -2
- package/src/blueprints/project/functions/add-artifact.ts +1 -0
- package/src/blueprints/project/functions/agent.ts +1 -1
- package/src/blueprints/project/functions/definitions.ts +8 -8
- package/src/blueprints/project/functions/get-context.ts +1 -0
- package/src/blueprints/project/functions/qualifier.ts +5 -5
- package/src/blueprints/project-wizard/functions/sync-triggers.ts +4 -9
- package/src/blueprints/testing.ts +10 -4
- package/src/blueprints/websearch/blueprint.conversations.json +1 -1
- package/src/crud/graph.test.ts +1 -1
- package/src/crud/graph.ts +125 -127
- package/src/functions/agent/definitions.ts +8 -3
- package/src/functions/agent/prompt.conversations.json +1 -1
- package/src/functions/agent/prompt.test.ts +8 -11
- package/src/functions/agent/prompt.ts +5 -2
- package/src/sync/sync.ts +1 -2
- package/src/types/Agent.ts +28 -29
- package/src/types/McpServer.ts +5 -5
- package/src/types/Plan.ts +1 -0
- package/dist/lib/neutral/chunk-CLHVRIYF.mjs.map +0 -7
- package/dist/lib/neutral/chunk-CVUA23QI.mjs.map +0 -7
- package/dist/lib/neutral/chunk-E2XRNXWP.mjs.map +0 -7
- package/dist/lib/neutral/chunk-J37DYY7A.mjs.map +0 -7
- package/dist/lib/neutral/chunk-KY2TIPJ5.mjs.map +0 -7
- package/dist/lib/neutral/chunk-MMTKJBB5.mjs +0 -140
- package/dist/lib/neutral/chunk-MMTKJBB5.mjs.map +0 -7
- package/dist/lib/neutral/chunk-TO5IX24K.mjs.map +0 -7
- package/dist/lib/neutral/context-add-IIDPRRVB.mjs.map +0 -7
- package/dist/lib/neutral/context-remove-RDYV4PD4.mjs.map +0 -7
- package/dist/lib/neutral/enable-blueprints-LBDZH2CY.mjs.map +0 -7
- package/dist/lib/neutral/qualifier-2AC2ICOB.mjs.map +0 -7
- package/dist/lib/neutral/query-B3NOYFCK.mjs.map +0 -7
- package/dist/lib/neutral/sync-issues-LOLHZNFL.mjs.map +0 -7
- package/dist/lib/neutral/update-tasks-ML2FCYU5.mjs +0 -46
- package/dist/lib/neutral/update-tasks-ML2FCYU5.mjs.map +0 -7
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts +0 -11
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts.map +0 -1
- /package/dist/lib/neutral/{chunk-D5MG5OKX.mjs.map → chunk-BCT55UTL.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-project-GLDEAWTT.mjs.map → create-project-3AGXJ4TD.mjs.map} +0 -0
- /package/dist/lib/neutral/{fetch-messages-PWGUG5G3.mjs.map → fetch-messages-QOBBCTGC.mjs.map} +0 -0
- /package/dist/lib/neutral/{load-LI7HHVD6.mjs.map → load-GAT3T2AD.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-create-52Z7YKIA.mjs.map → object-create-PL3WRP74.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-delete-I266YAXI.mjs.map → object-delete-PZJQN5KW.mjs.map} +0 -0
- /package/dist/lib/neutral/{object-update-HY4GI7LA.mjs.map → object-update-R43N3VJX.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-2YBPW5N7.mjs.map → project-VVXXUMAI.mjs.map} +0 -0
- /package/dist/lib/neutral/{project-rules-XUBEPDP6.mjs.map → project-rules-KSVSOZJV.mjs.map} +0 -0
- /package/dist/lib/neutral/{query-blueprints-KXADGHSA.mjs.map → query-blueprints-PLWYVOI3.mjs.map} +0 -0
- /package/dist/lib/neutral/{relation-create-Z3NGW4VU.mjs.map → relation-create-YAAAFTR2.mjs.map} +0 -0
- /package/dist/lib/neutral/{relation-delete-LXY7W2YO.mjs.map → relation-delete-IEPKERFR.mjs.map} +0 -0
- /package/dist/lib/neutral/{schema-add-4TXJO2V7.mjs.map → schema-add-5BNIINRS.mjs.map} +0 -0
- /package/dist/lib/neutral/{schema-list-PJS5AFZ3.mjs.map → schema-list-54UK7S4R.mjs.map} +0 -0
- /package/dist/lib/neutral/{tag-add-5NOHUTIE.mjs.map → tag-add-NLVRGTC6.mjs.map} +0 -0
- /package/dist/lib/neutral/{tag-remove-QTKYDJAW.mjs.map → tag-remove-N4HFBIA2.mjs.map} +0 -0
- /package/dist/lib/neutral/{update-blueprints-N2AK2VUR.mjs.map → update-blueprints-2SNK6HLG.mjs.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/blueprints/project-wizard/functions/sync-triggers.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Trigger, Operation } from '@dxos/compute';\nimport { Database, Feed, Filter, Obj, Ref } from '@dxos/echo';\nimport { FeedAnnotation } from '@dxos/schema';\n\nimport { Agent } from '../../../types';\nimport { SyncTriggers } from './definitions';\n\nexport default SyncTriggers.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ agent: agentRef }) {\n const agent = yield* Database.load(agentRef);\n yield* syncAgentTriggers(agent);\n }),\n ),\n);\n\n/**\n * Foreign key {@link AGENT_TRIGGER_EXTENSION_KEY} => <agent id : ObjectId>.\n */\nconst AGENT_TRIGGER_EXTENSION_KEY = 'org.dxos.extension.AgentTrigger';\n\n/**\n * Foreign key {@link AGENT_TRIGGER_TARGET_EXTENSION_KEY} => <dxn string of subscription target>.\n */\nconst AGENT_TRIGGER_TARGET_EXTENSION_KEY = 'org.dxos.extension.AgentTriggerTarget';\n\n/** Checks if an object's schema has the FeedAnnotation. */\nconst hasFeedAnnotation = (obj: Obj.Unknown): boolean => {\n const schema = Obj.getSchema(obj);\n if (!schema) {\n return false;\n }\n const annotation = FeedAnnotation.get(schema);\n return Option.isSome(annotation) && annotation.value === true;\n};\n\n/**\n * Syncs triggers in the database with the agent subscriptions.\n */\nconst syncAgentTriggers = (agent: Agent.Agent): Effect.Effect<void, never, Database.Service> =>\n Effect.gen(function* () {\n const triggers = yield* Database.runQuery(\n Filter.foreignKeys(Trigger.Trigger, [{ source: AGENT_TRIGGER_EXTENSION_KEY, id: agent.id }]),\n );\n\n // Remove all existing triggers — they will be recreated with the current config.\n // This ensures operation, concurrency, and enabled stay in sync when agent fields change.\n for (const trigger of triggers) {\n yield* Database.remove(trigger);\n }\n\n const triggersEnabled = agent.enabled ?? true;\n\n // Lazy import to avoid circular dependency issues.\n const { Qualifier, AgentWorker } = yield* Effect.promise(() => import('../../project'));\n\n for (const subscription of agent.subscriptions) {\n const targetOption = yield* Database.loadOption(subscription);\n if (Option.isNone(targetOption)) {\n continue;\n }\n const target = targetOption.value;\n\n let feedObj: Feed.Feed | undefined;\n if (Obj.instanceOf(Feed.Feed, target)) {\n feedObj = target;\n } else if (hasFeedAnnotation(target)) {\n const feedRef = (target as Obj.Unknown & { feed?: Ref.Ref<Feed.Feed> }).feed;\n feedObj = feedRef ? Option.getOrUndefined(yield* Database.loadOption(feedRef)) : undefined;\n }\n\n
|
|
5
|
-
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,SAASC,iBAAiB;AACnC,SAASC,UAAUC,MAAMC,QAAQC,KAAKC,WAAW;AACjD,SAASC,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;IACnF;AAEA,
|
|
6
|
-
"names": ["Effect", "Option", "Trigger", "Operation", "Database", "Feed", "Filter", "Obj", "Ref", "FeedAnnotation", "SyncTriggers", "pipe", "Operation", "withHandler", "fn", "agent", "agentRef", "Database", "load", "syncAgentTriggers", "AGENT_TRIGGER_EXTENSION_KEY", "AGENT_TRIGGER_TARGET_EXTENSION_KEY", "hasFeedAnnotation", "obj", "schema", "Obj", "getSchema", "annotation", "FeedAnnotation", "get", "isSome", "value", "gen", "triggers", "runQuery", "Filter", "foreignKeys", "Trigger", "source", "id", "trigger", "remove", "triggersEnabled", "enabled", "Qualifier", "AgentWorker", "promise", "subscription", "subscriptions", "targetOption", "loadOption", "isNone", "target", "feedObj", "instanceOf", "Feed", "feedRef", "feed", "getOrUndefined", "undefined", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Trigger, Operation } from '@dxos/compute';\nimport { Database, Feed, Filter, Obj, Ref } from '@dxos/echo';\nimport { FeedAnnotation } from '@dxos/schema';\n\nimport { Agent } from '../../../types';\nimport { SyncTriggers } from './definitions';\n\nexport default SyncTriggers.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ agent: agentRef }) {\n const agent = yield* Database.load(agentRef);\n yield* syncAgentTriggers(agent);\n }),\n ),\n);\n\n/**\n * Foreign key {@link AGENT_TRIGGER_EXTENSION_KEY} => <agent id : ObjectId>.\n */\nconst AGENT_TRIGGER_EXTENSION_KEY = 'org.dxos.extension.AgentTrigger';\n\n/**\n * Foreign key {@link AGENT_TRIGGER_TARGET_EXTENSION_KEY} => <dxn string of subscription target>.\n */\nconst AGENT_TRIGGER_TARGET_EXTENSION_KEY = 'org.dxos.extension.AgentTriggerTarget';\n\n/** Checks if an object's schema has the FeedAnnotation. */\nconst hasFeedAnnotation = (obj: Obj.Unknown): boolean => {\n const schema = Obj.getSchema(obj);\n if (!schema) {\n return false;\n }\n const annotation = FeedAnnotation.get(schema);\n return Option.isSome(annotation) && annotation.value === true;\n};\n\n/**\n * Syncs triggers in the database with the agent subscriptions.\n */\nconst syncAgentTriggers = (agent: Agent.Agent): Effect.Effect<void, never, Database.Service> =>\n Effect.gen(function* () {\n const triggers = yield* Database.runQuery(\n Filter.foreignKeys(Trigger.Trigger, [{ source: AGENT_TRIGGER_EXTENSION_KEY, id: agent.id }]),\n );\n\n // Remove all existing triggers — they will be recreated with the current config.\n // This ensures operation, concurrency, and enabled stay in sync when agent fields change.\n for (const trigger of triggers) {\n yield* Database.remove(trigger);\n }\n\n const triggersEnabled = agent.enabled ?? true;\n\n // Lazy import to avoid circular dependency issues.\n const { Qualifier, AgentWorker } = yield* Effect.promise(() => import('../../project'));\n\n for (const subscription of agent.subscriptions) {\n const targetOption = yield* Database.loadOption(subscription);\n if (Option.isNone(targetOption)) {\n continue;\n }\n const target = targetOption.value;\n\n let feedObj: Feed.Feed | undefined;\n if (Obj.instanceOf(Feed.Feed, target)) {\n feedObj = target;\n } else if (hasFeedAnnotation(target)) {\n const feedRef = (target as Obj.Unknown & { feed?: Ref.Ref<Feed.Feed> }).feed;\n feedObj = feedRef ? Option.getOrUndefined(yield* Database.loadOption(feedRef)) : undefined;\n }\n\n if (!feedObj || !Obj.instanceOf(Feed.Feed, feedObj) || !Feed.getQueueDxn(feedObj)) {\n continue;\n }\n\n const filterEvents = agent.filterEvents ?? true;\n\n yield* Database.add(\n Trigger.make({\n [Obj.Parent]: agent,\n [Obj.Meta]: {\n keys: [\n { source: AGENT_TRIGGER_EXTENSION_KEY, id: agent.id },\n { source: AGENT_TRIGGER_TARGET_EXTENSION_KEY, id: subscription.dxn.toString() },\n ],\n },\n enabled: triggersEnabled,\n spec: Trigger.specFeed(feedObj),\n function: Ref.make(Operation.serialize(filterEvents ? Qualifier : AgentWorker)),\n input: {\n agent: Ref.make(agent),\n event: '{{event}}',\n },\n concurrency: filterEvents ? 5 : undefined,\n }),\n );\n }\n\n if ((agent.filterEvents ?? true) && agent.feed) {\n yield* Database.add(\n Trigger.make({\n [Obj.Parent]: agent,\n [Obj.Meta]: {\n keys: [\n { source: AGENT_TRIGGER_EXTENSION_KEY, id: agent.id },\n {\n source: AGENT_TRIGGER_TARGET_EXTENSION_KEY,\n id: Obj.getDXN(agent)?.toString() ?? '',\n },\n ],\n },\n function: Ref.make(Operation.serialize(AgentWorker)),\n enabled: triggersEnabled,\n spec: Trigger.specQueue(agent.feed.dxn.toString()),\n input: {\n agent: Ref.make(agent),\n event: '{{event}}',\n },\n }),\n );\n }\n\n // Timer trigger bypasses the qualifier and invokes the agent worker directly on a schedule.\n if (agent.cron) {\n yield* Database.add(\n Trigger.make({\n [Obj.Parent]: agent,\n [Obj.Meta]: {\n keys: [\n { source: AGENT_TRIGGER_EXTENSION_KEY, id: agent.id },\n { source: AGENT_TRIGGER_TARGET_EXTENSION_KEY, id: `timer:${agent.cron}` },\n ],\n },\n enabled: triggersEnabled,\n spec: Trigger.specTimer(agent.cron),\n function: Ref.make(Operation.serialize(AgentWorker)),\n input: {\n agent: Ref.make(agent),\n event: '{{event}}',\n },\n }),\n );\n }\n\n yield* Database.flush();\n });\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,SAASC,iBAAiB;AACnC,SAASC,UAAUC,MAAMC,QAAQC,KAAKC,WAAW;AACjD,SAASC,sBAAsB;AAK/B,IAAA,wBAAeC,aAAaC,KAC1BC,UAAUC,YACDC,UAAG,WAAW,EAAEC,OAAOC,SAAQ,GAAE;AACtC,QAAMD,QAAQ,OAAOE,SAASC,KAAKF,QAAAA;AACnC,SAAOG,kBAAkBJ,KAAAA;AAC3B,CAAA,CAAA,CAAA;AAOJ,IAAMK,8BAA8B;AAKpC,IAAMC,qCAAqC;AAG3C,IAAMC,oBAAoB,CAACC,QAAAA;AACzB,QAAMC,SAASC,IAAIC,UAAUH,GAAAA;AAC7B,MAAI,CAACC,QAAQ;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R,UAAUC,IAAIT,KAAKnD,UAAU6D,UAAU5B,WAAAA,CAAAA;MACvC6B,OAAO;QACL3D,OAAOyD,IAAIT,KAAKhD,KAAAA;QAChB4D,OAAO;MACT;IACF,CAAA,CAAA;EAEJ;AAEA,SAAO1D,SAASgE,MAAK;AACvB,CAAA;",
|
|
6
|
+
"names": ["Effect", "Option", "Trigger", "Operation", "Database", "Feed", "Filter", "Obj", "Ref", "FeedAnnotation", "SyncTriggers", "pipe", "Operation", "withHandler", "fn", "agent", "agentRef", "Database", "load", "syncAgentTriggers", "AGENT_TRIGGER_EXTENSION_KEY", "AGENT_TRIGGER_TARGET_EXTENSION_KEY", "hasFeedAnnotation", "obj", "schema", "Obj", "getSchema", "annotation", "FeedAnnotation", "get", "isSome", "value", "gen", "triggers", "runQuery", "Filter", "foreignKeys", "Trigger", "source", "id", "trigger", "remove", "triggersEnabled", "enabled", "Qualifier", "AgentWorker", "promise", "subscription", "subscriptions", "targetOption", "loadOption", "isNone", "target", "feedObj", "instanceOf", "Feed", "feedRef", "feed", "getOrUndefined", "undefined", "getQueueDxn", "filterEvents", "add", "make", "Parent", "Meta", "keys", "dxn", "toString", "spec", "specFeed", "function", "Ref", "serialize", "input", "event", "concurrency", "getDXN", "specQueue", "cron", "specTimer", "flush"]
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagAdd
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7UCYAP3T.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/tag-add.ts
|
|
@@ -16,4 +16,4 @@ var tag_add_default = TagAdd.pipe(Operation.withHandler(Effect.fn(function* ({ t
|
|
|
16
16
|
export {
|
|
17
17
|
tag_add_default as default
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=tag-add-
|
|
19
|
+
//# sourceMappingURL=tag-add-NLVRGTC6.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TagRemove
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7UCYAP3T.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/database/functions/tag-remove.ts
|
|
@@ -16,4 +16,4 @@ var tag_remove_default = TagRemove.pipe(Operation.withHandler(Effect.fn(function
|
|
|
16
16
|
export {
|
|
17
17
|
tag_remove_default as default
|
|
18
18
|
};
|
|
19
|
-
//# sourceMappingURL=tag-remove-
|
|
19
|
+
//# sourceMappingURL=tag-remove-N4HFBIA2.mjs.map
|
|
@@ -5,10 +5,10 @@ import * as Arr from "effect/Array";
|
|
|
5
5
|
import * as Effect from "effect/Effect";
|
|
6
6
|
import { pipe } from "effect/Function";
|
|
7
7
|
import { ConsolePrinter } from "@dxos/ai";
|
|
8
|
-
import {
|
|
8
|
+
import { AiContext, GenerationObserver } from "@dxos/assistant";
|
|
9
9
|
import { Database, Ref } from "@dxos/echo";
|
|
10
10
|
import { log } from "@dxos/log";
|
|
11
|
-
var __dxlog_file = "/__w/dxos/dxos/packages/core/assistant-toolkit/src/blueprints/testing.ts";
|
|
11
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/assistant-toolkit/src/blueprints/testing.ts";
|
|
12
12
|
var runSteps = Effect.fn(function* (session, steps) {
|
|
13
13
|
for (const { test, ...props } of steps) {
|
|
14
14
|
yield* session.createRequest({
|
|
@@ -27,7 +27,7 @@ var runSteps = Effect.fn(function* (session, steps) {
|
|
|
27
27
|
}
|
|
28
28
|
});
|
|
29
29
|
var addBlueprints = Effect.fnUntraced(function* (blueprints) {
|
|
30
|
-
yield*
|
|
30
|
+
yield* AiContext.Service.bindContext({
|
|
31
31
|
blueprints: yield* pipe(blueprints, Arr.map((blueprint) => blueprint.make()), Effect.forEach(Database.add), Effect.map(Arr.map(Ref.make)))
|
|
32
32
|
});
|
|
33
33
|
});
|
|
@@ -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 {
|
|
5
|
-
"mappings": ";;;AAIA,YAAYA,SAAS;AACrB,YAAYC,YAAY;AACxB,SAASC,YAAY;AAErB,SAASC,sBAAsB;AAC/B,SAASC,
|
|
6
|
-
"names": ["Arr", "Effect", "pipe", "ConsolePrinter", "
|
|
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 { 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(\n Type.object({\n typename: 'com.example.type.map',\n version: '0.1.0',\n }),\n);\n\nexport type MapSchema = Schema.Schema.Type<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: 'plugin-image',\n role: 'card--content',\n filter: (data: any): data is any => isImage(data.value),\n component: ({ data }) => (\n <Card.Content>\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.Content>\n ),\n }),\n ),\n Capability.contributes(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'plugin-default',\n role: 'card--content',\n position: 'fallback',\n component: ({ data }) => (\n <Card.Content>\n <Syntax.Root data={data}>\n <Syntax.Content>\n <Syntax.Filter />\n <Syntax.Viewport>\n <Syntax.Code />\n </Syntax.Viewport>\n </Synt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cACbjB,QAAQkB,OAAO;IACbC,IAAI;IACJC,MAAM;IACNC,QAAQ,CAACP,SAA2BD,QAAQC,KAAKQ,KAAK;IACtDC,WAAW,CAAC,EAAET,KAAI,MAChB,sBAAA,cAACX,KAAKqB,SAAO,MACX,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,cAACX,KAAKqB,SAAO,MACX,sBAAA,cAACpB,OAAO4B,MAAI;MAAClB;OACX,sBAAA,cAACV,OAAOoB,SAAO,MACb,sBAAA,cAACpB,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", "Format", "Type", "Card", "Syntax", "MapSchema", "Struct", "coordinates", "GeoPoint", "pipe", "object", "typename", "version", "isImage", "data", "capabilities", "contributes", "ReactSurface", "create", "id", "role", "filter", "value", "component", "Content", "img", "className", "src", "source", "alt", "prompt", "position", "Root", "Filter", "Viewport", "Code"]
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UpdateBlueprints
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ANSF2BHN.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/blueprint-manager/functions/update-blueprints.ts
|
|
@@ -13,4 +13,4 @@ var update_blueprints_default = UpdateBlueprints.pipe(Operation.withHandler(Effe
|
|
|
13
13
|
export {
|
|
14
14
|
update_blueprints_default as default
|
|
15
15
|
};
|
|
16
|
-
//# sourceMappingURL=update-blueprints-
|
|
16
|
+
//# sourceMappingURL=update-blueprints-2SNK6HLG.mjs.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UpdateTasks,
|
|
3
|
+
update_tasks_default
|
|
4
|
+
} from "./chunk-PLGEBNTO.mjs";
|
|
5
|
+
import "./chunk-5GPL2WXU.mjs";
|
|
6
|
+
import "./chunk-NR3GTWRC.mjs";
|
|
7
|
+
import "./chunk-KGU725LW.mjs";
|
|
8
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
9
|
+
export {
|
|
10
|
+
UpdateTasks,
|
|
11
|
+
update_tasks_default as default
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=update-tasks-QQUR53RN.mjs.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiContext } from '@dxos/assistant';
|
|
2
2
|
import { Blueprint, Operation } from '@dxos/compute';
|
|
3
3
|
import { Database } from '@dxos/echo';
|
|
4
4
|
export declare const QueryBlueprints: Operation.Definition<{}, readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
5
|
-
readonly key: string;
|
|
6
5
|
readonly name: string;
|
|
7
6
|
readonly description?: string | undefined;
|
|
8
7
|
readonly instructions: {
|
|
@@ -12,23 +11,24 @@ export declare const QueryBlueprints: Operation.Definition<{}, readonly (import(
|
|
|
12
11
|
}>;
|
|
13
12
|
readonly inputs?: readonly {
|
|
14
13
|
readonly name: string;
|
|
15
|
-
readonly kind
|
|
14
|
+
readonly kind: "operation" | "value";
|
|
16
15
|
readonly default?: any;
|
|
17
|
-
readonly
|
|
16
|
+
readonly operation?: string | undefined;
|
|
18
17
|
}[] | undefined;
|
|
19
18
|
};
|
|
20
19
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
21
20
|
readonly agentCanEnable?: boolean | undefined;
|
|
22
21
|
readonly mcpServers?: readonly {
|
|
22
|
+
readonly name?: string | undefined;
|
|
23
23
|
readonly url: string;
|
|
24
24
|
readonly protocol: "http" | "sse";
|
|
25
|
+
readonly apiKey?: string | undefined;
|
|
25
26
|
}[] | undefined;
|
|
26
27
|
})[], Blueprint.RegistryService>;
|
|
27
28
|
export declare const EnableBlueprints: Operation.Definition<{
|
|
28
29
|
readonly keys: readonly string[];
|
|
29
30
|
}, {
|
|
30
31
|
readonly enabled: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
31
|
-
readonly key: string;
|
|
32
32
|
readonly name: string;
|
|
33
33
|
readonly description?: string | undefined;
|
|
34
34
|
readonly instructions: {
|
|
@@ -38,22 +38,24 @@ export declare const EnableBlueprints: Operation.Definition<{
|
|
|
38
38
|
}>;
|
|
39
39
|
readonly inputs?: readonly {
|
|
40
40
|
readonly name: string;
|
|
41
|
-
readonly kind
|
|
41
|
+
readonly kind: "operation" | "value";
|
|
42
42
|
readonly default?: any;
|
|
43
|
-
readonly
|
|
43
|
+
readonly operation?: string | undefined;
|
|
44
44
|
}[] | undefined;
|
|
45
45
|
};
|
|
46
46
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
47
47
|
readonly agentCanEnable?: boolean | undefined;
|
|
48
48
|
readonly mcpServers?: readonly {
|
|
49
|
+
readonly name?: string | undefined;
|
|
49
50
|
readonly url: string;
|
|
50
51
|
readonly protocol: "http" | "sse";
|
|
52
|
+
readonly apiKey?: string | undefined;
|
|
51
53
|
}[] | undefined;
|
|
52
54
|
})[];
|
|
53
55
|
readonly rejected: readonly {
|
|
54
56
|
readonly key: string;
|
|
55
57
|
readonly reason: string;
|
|
56
58
|
}[];
|
|
57
|
-
},
|
|
59
|
+
}, Blueprint.RegistryService | Database.Service | AiContext.Service>;
|
|
58
60
|
export declare const UpdateBlueprints: Operation.Definition<{}, void, Blueprint.RegistryService | Database.Service>;
|
|
59
61
|
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;gCAS1B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oEAuB3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,8EAU3B,CAAC"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiContext } from '@dxos/assistant';
|
|
2
2
|
import { Blueprint, Operation } from '@dxos/compute';
|
|
3
3
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
4
|
readonly keys: readonly string[];
|
|
5
5
|
}, {
|
|
6
6
|
readonly enabled: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
7
|
-
readonly key: string;
|
|
8
7
|
readonly name: string;
|
|
9
8
|
readonly description?: string | undefined;
|
|
10
9
|
readonly instructions: {
|
|
@@ -14,22 +13,24 @@ declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
|
14
13
|
}>;
|
|
15
14
|
readonly inputs?: readonly {
|
|
16
15
|
readonly name: string;
|
|
17
|
-
readonly kind
|
|
16
|
+
readonly kind: "operation" | "value";
|
|
18
17
|
readonly default?: any;
|
|
19
|
-
readonly
|
|
18
|
+
readonly operation?: string | undefined;
|
|
20
19
|
}[] | undefined;
|
|
21
20
|
};
|
|
22
21
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
23
22
|
readonly agentCanEnable?: boolean | undefined;
|
|
24
23
|
readonly mcpServers?: readonly {
|
|
24
|
+
readonly name?: string | undefined;
|
|
25
25
|
readonly url: string;
|
|
26
26
|
readonly protocol: "http" | "sse";
|
|
27
|
+
readonly apiKey?: string | undefined;
|
|
27
28
|
}[] | undefined;
|
|
28
29
|
})[];
|
|
29
30
|
readonly rejected: readonly {
|
|
30
31
|
readonly key: string;
|
|
31
32
|
readonly reason: string;
|
|
32
33
|
}[];
|
|
33
|
-
},
|
|
34
|
+
}, Blueprint.RegistryService | import("@dxos/echo/Database").Service | AiContext.Service>>;
|
|
34
35
|
export default _default;
|
|
35
36
|
//# sourceMappingURL=enable-blueprints.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enable-blueprints.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/enable-blueprints.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"enable-blueprints.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/enable-blueprints.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Blueprint, Operation } from '@dxos/compute';
|
|
2
2
|
declare const _default: Operation.WithHandler<Operation.Definition<{}, readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
3
|
-
readonly key: string;
|
|
4
3
|
readonly name: string;
|
|
5
4
|
readonly description?: string | undefined;
|
|
6
5
|
readonly instructions: {
|
|
@@ -10,16 +9,18 @@ declare const _default: Operation.WithHandler<Operation.Definition<{}, readonly
|
|
|
10
9
|
}>;
|
|
11
10
|
readonly inputs?: readonly {
|
|
12
11
|
readonly name: string;
|
|
13
|
-
readonly kind
|
|
12
|
+
readonly kind: "operation" | "value";
|
|
14
13
|
readonly default?: any;
|
|
15
|
-
readonly
|
|
14
|
+
readonly operation?: string | undefined;
|
|
16
15
|
}[] | undefined;
|
|
17
16
|
};
|
|
18
17
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
19
18
|
readonly agentCanEnable?: boolean | undefined;
|
|
20
19
|
readonly mcpServers?: readonly {
|
|
20
|
+
readonly name?: string | undefined;
|
|
21
21
|
readonly url: string;
|
|
22
22
|
readonly protocol: "http" | "sse";
|
|
23
|
+
readonly apiKey?: string | undefined;
|
|
23
24
|
}[] | undefined;
|
|
24
25
|
})[], Blueprint.RegistryService>>;
|
|
25
26
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiContext } from '@dxos/assistant';
|
|
2
2
|
import { Operation } from '@dxos/compute';
|
|
3
3
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
4
|
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
5
|
-
}, void,
|
|
5
|
+
}, void, AiContext.Service>>;
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=context-add.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-add.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/context-add.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"context-add.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/context-add.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiContext } from '@dxos/assistant';
|
|
2
2
|
import { Operation } from '@dxos/compute';
|
|
3
3
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
4
|
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
5
|
-
}, void,
|
|
5
|
+
}, void, AiContext.Service>>;
|
|
6
6
|
export default _default;
|
|
7
7
|
//# sourceMappingURL=context-remove.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-remove.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/context-remove.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"context-remove.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/context-remove.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AiContext } from '@dxos/assistant';
|
|
2
2
|
import { Operation } from '@dxos/compute';
|
|
3
3
|
import { Database, Obj, Relation } from '@dxos/echo';
|
|
4
4
|
export declare const Query: Operation.Definition<{
|
|
@@ -35,10 +35,10 @@ export declare const SchemaList: Operation.Definition<{
|
|
|
35
35
|
}, readonly unknown[], Database.Service>;
|
|
36
36
|
export declare const ContextAdd: Operation.Definition<{
|
|
37
37
|
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
38
|
-
}, void,
|
|
38
|
+
}, void, AiContext.Service>;
|
|
39
39
|
export declare const ContextRemove: Operation.Definition<{
|
|
40
40
|
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
41
|
-
}, void,
|
|
41
|
+
}, void, AiContext.Service>;
|
|
42
42
|
export declare const RelationCreate: Operation.Definition<{
|
|
43
43
|
readonly typename: string;
|
|
44
44
|
readonly source: import("@dxos/echo/internal").Ref<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/database/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAO,QAAQ,EAAO,MAAM,YAAY,CAAC;AAG/D,eAAO,MAAM,KAAK;;;;;;;wCA4FU,CAAC;AAE7B,eAAO,MAAM,IAAI;;6BAkBW,CAAC;AAE7B,eAAO,MAAM,YAAY;;;6BAiBG,CAAC;AAE7B,eAAO,MAAM,YAAY;;;;;6BAgBG,CAAC;AAE7B,eAAO,MAAM,YAAY;;0BAaG,CAAC;AAE7B,eAAO,MAAM,SAAS;;;;0BAkBM,CAAC;AAE7B,eAAO,MAAM,UAAU;;wCAaK,CAAC;AAE7B,eAAO,MAAM,UAAU;;2BAgBK,CAAC;AAE7B,eAAO,MAAM,aAAa;;2BAgBE,CAAC;AAE7B,eAAO,MAAM,cAAc;;;;;6BAmBC,CAAC;AAE7B,eAAO,MAAM,cAAc;;0BAaC,CAAC;AAE7B,eAAO,MAAM,MAAM;;;6BAgBS,CAAC;AAE7B,eAAO,MAAM,SAAS;;;6BAeM,CAAC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
|
-
import { Entity, Obj } from '@dxos/echo';
|
|
3
|
-
import { Database } from '@dxos/echo';
|
|
2
|
+
import { Database, Entity, Obj } from '@dxos/echo';
|
|
4
3
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
5
4
|
readonly in?: readonly import("@dxos/echo/internal").Ref<Entity.OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[] | undefined;
|
|
6
5
|
readonly typename?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/query.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAU,GAAG,EAAsB,MAAM,YAAY,CAAC
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/query.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAU,GAAG,EAAsB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sync-issues.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/linear/functions/sync-issues.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sync-issues.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/linear/functions/sync-issues.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAsC,MAAM,YAAY,CAAC;AA8D1E,eAAO,MAAM,aAAa,kBAAkB,CAAC;AAC7C,eAAO,MAAM,kBAAkB,sBAAsB,CAAC;AACtD,eAAO,MAAM,qBAAqB,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/planning/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/planning/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,cAAc,gBAAgB,CAAC;AAE/B,eAAO,MAAM,gBAAgB,yCAA2D,CAAC"}
|
|
@@ -1,11 +1,24 @@
|
|
|
1
|
+
import { AiContext } from '@dxos/assistant';
|
|
1
2
|
import { Operation } from '@dxos/compute';
|
|
2
3
|
import { Database } from '@dxos/echo';
|
|
4
|
+
export declare const UpdateTasks: Operation.Definition<{
|
|
5
|
+
readonly tasks: readonly {
|
|
6
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
7
|
+
readonly title: string;
|
|
8
|
+
readonly status: "done" | "in-progress" | "todo";
|
|
9
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
10
|
+
}[];
|
|
11
|
+
}, any, Database.Service | AiContext.Service>;
|
|
12
|
+
/**
|
|
13
|
+
* Updates the planning document (Agent.plan) with the given tasks.
|
|
14
|
+
*/
|
|
3
15
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
16
|
readonly tasks: readonly {
|
|
5
17
|
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
6
18
|
readonly title: string;
|
|
7
19
|
readonly status: "done" | "in-progress" | "todo";
|
|
20
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
8
21
|
}[];
|
|
9
|
-
}, any,
|
|
22
|
+
}, any, Database.Service | AiContext.Service>>;
|
|
10
23
|
export default _default;
|
|
11
24
|
//# sourceMappingURL=update-tasks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/planning/functions/update-tasks.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"update-tasks.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/planning/functions/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;AAQ3C,eAAO,MAAM,WAAW;;;;;;;6CAWtB,CAAC;AAEH;;GAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-tasks.test.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/planning/functions/update-tasks.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
|
-
|
|
3
|
-
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly artifact: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
6
|
-
}, void, import("@dxos/assistant").AiContextService | Database.Service>>;
|
|
2
|
+
declare const _default: Operation.WithHandler<Operation.Definition.Any>;
|
|
7
3
|
export default _default;
|
|
8
4
|
//# sourceMappingURL=add-artifact.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-artifact.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/add-artifact.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"add-artifact.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/add-artifact.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AiService, OpaqueToolkit } from '@dxos/ai';
|
|
2
|
-
import {
|
|
2
|
+
import { AiContext } from '@dxos/assistant';
|
|
3
3
|
import { Trace, Operation, OperationRegistry } from '@dxos/compute';
|
|
4
4
|
import { Database, Feed, Obj } from '@dxos/echo';
|
|
5
5
|
import { QueueService } from '@dxos/functions';
|
|
@@ -41,10 +41,14 @@ export declare const AgentWorker: Operation.Definition<{
|
|
|
41
41
|
readonly name: string;
|
|
42
42
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
43
43
|
}[];
|
|
44
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
45
44
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
46
|
-
readonly filterEvents?: boolean | undefined;
|
|
47
45
|
readonly cron?: string | undefined;
|
|
46
|
+
readonly filterEvents?: boolean | undefined;
|
|
47
|
+
readonly feed?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
48
|
+
readonly name?: string | undefined;
|
|
49
|
+
readonly kind?: string | undefined;
|
|
50
|
+
readonly namespace?: "data" | "trace" | undefined;
|
|
51
|
+
}> | undefined;
|
|
48
52
|
}>;
|
|
49
53
|
readonly prompt?: string | undefined;
|
|
50
54
|
readonly event?: {
|
|
@@ -110,10 +114,14 @@ export declare const Qualifier: Operation.Definition<{
|
|
|
110
114
|
readonly name: string;
|
|
111
115
|
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
112
116
|
}[];
|
|
113
|
-
readonly queue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
114
117
|
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
115
|
-
readonly filterEvents?: boolean | undefined;
|
|
116
118
|
readonly cron?: string | undefined;
|
|
119
|
+
readonly filterEvents?: boolean | undefined;
|
|
120
|
+
readonly feed?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
121
|
+
readonly name?: string | undefined;
|
|
122
|
+
readonly kind?: string | undefined;
|
|
123
|
+
readonly namespace?: "data" | "trace" | undefined;
|
|
124
|
+
}> | undefined;
|
|
117
125
|
}>;
|
|
118
126
|
readonly event: {
|
|
119
127
|
readonly from: string;
|
|
@@ -139,7 +147,7 @@ export declare const Qualifier: Operation.Definition<{
|
|
|
139
147
|
};
|
|
140
148
|
readonly bodyText: string;
|
|
141
149
|
};
|
|
142
|
-
}, void, AiService.AiService | Database.Service>;
|
|
150
|
+
}, void, AiService.AiService | Feed.FeedService | Database.Service>;
|
|
143
151
|
export declare const GetContext: Operation.Definition<{}, {
|
|
144
152
|
readonly id: string;
|
|
145
153
|
readonly name: string;
|
|
@@ -150,9 +158,9 @@ export declare const GetContext: Operation.Definition<{}, {
|
|
|
150
158
|
readonly type?: string | undefined;
|
|
151
159
|
readonly dxn?: string | undefined;
|
|
152
160
|
}[];
|
|
153
|
-
},
|
|
161
|
+
}, Database.Service | AiContext.Service>;
|
|
154
162
|
export declare const AddArtifact: Operation.Definition<{
|
|
155
163
|
readonly name: string;
|
|
156
164
|
readonly artifact: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
157
|
-
}, void,
|
|
165
|
+
}, void, Database.Service | AiContext.Service>;
|
|
158
166
|
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACpD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/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,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,EAAO,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yKAqBI,CAAC;AAE7B,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAaM,CAAC;AAE7B,eAAO,MAAM,UAAU;;;;;;;;;;wCAqBK,CAAC;AAE7B,eAAO,MAAM,WAAW;;;8CAgBI,CAAC"}
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
|
-
|
|
3
|
-
declare const _default: Operation.WithHandler<Operation.Definition<{}, {
|
|
4
|
-
readonly id: string;
|
|
5
|
-
readonly name: string;
|
|
6
|
-
readonly instructions: string;
|
|
7
|
-
readonly plan: string;
|
|
8
|
-
readonly artifacts: readonly {
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly type?: string | undefined;
|
|
11
|
-
readonly dxn?: string | undefined;
|
|
12
|
-
}[];
|
|
13
|
-
}, import("@dxos/assistant").AiContextService | Database.Service>>;
|
|
2
|
+
declare const _default: Operation.WithHandler<Operation.Definition.Any>;
|
|
14
3
|
export default _default;
|
|
15
4
|
//# sourceMappingURL=get-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-context.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/get-context.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"get-context.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/project/functions/get-context.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|