@dxos/assistant-toolkit 0.8.4-main.c85a9c8dae → 0.8.4-main.dfabb4ec29
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/dist/lib/neutral/add-artifact-ZUJ5DMSY.mjs +30 -0
- package/dist/lib/neutral/add-artifact-ZUJ5DMSY.mjs.map +7 -0
- package/dist/lib/neutral/agent-5NIKAYUK.mjs +65 -0
- package/dist/lib/neutral/agent-5NIKAYUK.mjs.map +7 -0
- package/dist/lib/neutral/chunk-246ACKSH.mjs +100 -0
- package/dist/lib/neutral/chunk-246ACKSH.mjs.map +7 -0
- package/dist/lib/neutral/chunk-EJAQUAKM.mjs +73 -0
- package/dist/lib/neutral/chunk-EJAQUAKM.mjs.map +7 -0
- package/dist/lib/neutral/chunk-FIGO6CA6.mjs +140 -0
- package/dist/lib/neutral/chunk-FIGO6CA6.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GV66MKAQ.mjs +60 -0
- package/dist/lib/neutral/chunk-GV66MKAQ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-IKBIORQX.mjs +332 -0
- package/dist/lib/neutral/chunk-IKBIORQX.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KGU725LW.mjs +29 -0
- package/dist/lib/neutral/chunk-KGU725LW.mjs.map +7 -0
- package/dist/lib/neutral/chunk-NR3GTWRC.mjs +53 -0
- package/dist/lib/neutral/chunk-NR3GTWRC.mjs.map +7 -0
- package/dist/lib/neutral/chunk-P4ZMYO4K.mjs +294 -0
- package/dist/lib/neutral/chunk-P4ZMYO4K.mjs.map +7 -0
- package/dist/lib/neutral/chunk-QO5SU37C.mjs +70 -0
- package/dist/lib/neutral/chunk-QO5SU37C.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ROMZO4CB.mjs +108 -0
- package/dist/lib/neutral/chunk-ROMZO4CB.mjs.map +7 -0
- package/dist/lib/neutral/chunk-TO5IX24K.mjs +67 -0
- package/dist/lib/neutral/chunk-TO5IX24K.mjs.map +7 -0
- package/dist/lib/neutral/chunk-WLR3BGO4.mjs +25 -0
- package/dist/lib/neutral/chunk-WLR3BGO4.mjs.map +7 -0
- package/dist/lib/neutral/chunk-XUF53B6B.mjs +75 -0
- package/dist/lib/neutral/chunk-XUF53B6B.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ZFXLTBZG.mjs +73 -0
- package/dist/lib/neutral/chunk-ZFXLTBZG.mjs.map +7 -0
- package/dist/lib/neutral/context-add-VB7AOY3G.mjs +22 -0
- package/dist/lib/neutral/context-add-VB7AOY3G.mjs.map +7 -0
- package/dist/lib/neutral/context-remove-VCM3VPSO.mjs +22 -0
- package/dist/lib/neutral/context-remove-VCM3VPSO.mjs.map +7 -0
- package/dist/lib/neutral/create-project-EIF4OJMY.mjs +35 -0
- package/dist/lib/neutral/create-project-EIF4OJMY.mjs.map +7 -0
- package/dist/lib/neutral/delete-J3PMWP7Z.mjs +19 -0
- package/dist/lib/neutral/delete-J3PMWP7Z.mjs.map +7 -0
- package/dist/lib/neutral/enable-blueprints-LBDZH2CY.mjs +47 -0
- package/dist/lib/neutral/enable-blueprints-LBDZH2CY.mjs.map +7 -0
- package/dist/lib/neutral/fetch-KHMHV7JR.mjs +16 -0
- package/dist/lib/neutral/fetch-KHMHV7JR.mjs.map +7 -0
- package/dist/lib/neutral/fetch-messages-QOBBCTGC.mjs +139 -0
- package/dist/lib/neutral/fetch-messages-QOBBCTGC.mjs.map +7 -0
- package/dist/lib/neutral/get-context-TN7X7U2H.mjs +35 -0
- package/dist/lib/neutral/get-context-TN7X7U2H.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +581 -3293
- package/dist/lib/neutral/index.mjs.map +4 -4
- package/dist/lib/neutral/load-ALP3TK2E.mjs +17 -0
- package/dist/lib/neutral/load-ALP3TK2E.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/object-create-Z57Y3X6Y.mjs +35 -0
- package/dist/lib/neutral/object-create-Z57Y3X6Y.mjs.map +7 -0
- package/dist/lib/neutral/object-delete-X53LS37B.mjs +18 -0
- package/dist/lib/neutral/object-delete-X53LS37B.mjs.map +7 -0
- package/dist/lib/neutral/object-update-GVKSBR7T.mjs +28 -0
- package/dist/lib/neutral/object-update-GVKSBR7T.mjs.map +7 -0
- package/dist/lib/neutral/project-HPHTZ2CI.mjs +23 -0
- package/dist/lib/neutral/project-HPHTZ2CI.mjs.map +7 -0
- package/dist/lib/neutral/project-rules-IVDHKSKI.mjs +78 -0
- package/dist/lib/neutral/project-rules-IVDHKSKI.mjs.map +7 -0
- package/dist/lib/neutral/prompt-Y7NN7M5D.mjs +170 -0
- package/dist/lib/neutral/prompt-Y7NN7M5D.mjs.map +7 -0
- package/dist/lib/neutral/qualifier-VDOY5CWU.mjs +88 -0
- package/dist/lib/neutral/qualifier-VDOY5CWU.mjs.map +7 -0
- package/dist/lib/neutral/query-PPJU5622.mjs +70 -0
- package/dist/lib/neutral/query-PPJU5622.mjs.map +7 -0
- package/dist/lib/neutral/query-U56GNEV6.mjs +32 -0
- package/dist/lib/neutral/query-U56GNEV6.mjs.map +7 -0
- package/dist/lib/neutral/query-blueprints-KXADGHSA.mjs +16 -0
- package/dist/lib/neutral/query-blueprints-KXADGHSA.mjs.map +7 -0
- package/dist/lib/neutral/relation-create-XJ2IX6X3.mjs +34 -0
- package/dist/lib/neutral/relation-create-XJ2IX6X3.mjs.map +7 -0
- package/dist/lib/neutral/relation-delete-EP4KXAFL.mjs +18 -0
- package/dist/lib/neutral/relation-delete-EP4KXAFL.mjs.map +7 -0
- package/dist/lib/neutral/save-GWAPLT3Z.mjs +23 -0
- package/dist/lib/neutral/save-GWAPLT3Z.mjs.map +7 -0
- package/dist/lib/neutral/schema-add-Z5CY6P24.mjs +24 -0
- package/dist/lib/neutral/schema-add-Z5CY6P24.mjs.map +7 -0
- package/dist/lib/neutral/schema-list-W326VPVX.mjs +38 -0
- package/dist/lib/neutral/schema-list-W326VPVX.mjs.map +7 -0
- package/dist/lib/neutral/sync-issues-4YE5XAK5.mjs +167 -0
- package/dist/lib/neutral/sync-issues-4YE5XAK5.mjs.map +7 -0
- package/dist/lib/neutral/sync-triggers-CDMJVW6E.mjs +136 -0
- package/dist/lib/neutral/sync-triggers-CDMJVW6E.mjs.map +7 -0
- package/dist/lib/neutral/tag-add-VNIIOVJA.mjs +19 -0
- package/dist/lib/neutral/tag-add-VNIIOVJA.mjs.map +7 -0
- package/dist/lib/neutral/tag-remove-6R2R27W3.mjs +19 -0
- package/dist/lib/neutral/tag-remove-6R2R27W3.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +9 -14
- package/dist/lib/neutral/testing/index.mjs.map +3 -3
- package/dist/lib/neutral/update-blueprints-N2AK2VUR.mjs +16 -0
- package/dist/lib/neutral/update-blueprints-N2AK2VUR.mjs.map +7 -0
- package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs +46 -0
- package/dist/lib/neutral/update-tasks-H7SWIFQL.mjs.map +7 -0
- package/dist/types/src/blueprints/automation/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/automation/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/automation/index.d.ts +2 -0
- package/dist/types/src/blueprints/automation/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +63 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts +37 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts +28 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/query-blueprints.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts +4 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/update-blueprints.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/index.d.ts +3 -0
- package/dist/types/src/blueprints/blueprint-manager/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/browser/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/database/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/context-add.d.ts +5 -4
- 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 +5 -4
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/definitions.d.ts +59 -0
- package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts +3 -56
- package/dist/types/src/blueprints/database/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/load.d.ts +5 -4
- package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/object-create.d.ts +5 -3
- package/dist/types/src/blueprints/database/functions/object-create.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts +5 -4
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/object-update.d.ts +5 -4
- package/dist/types/src/blueprints/database/functions/object-update.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/query.d.ts +7 -3
- package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts +6 -5
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts +5 -4
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts +4 -2
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts +4 -2
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts +4 -3
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts +4 -3
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -1
- package/dist/types/src/blueprints/database/index.d.ts +1 -1
- package/dist/types/src/blueprints/database/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/discord/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts +15 -0
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts +3 -2
- package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/functions/index.d.ts +3 -11
- package/dist/types/src/blueprints/discord/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/index.d.ts +1 -0
- package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/definitions.d.ts +7 -0
- package/dist/types/src/blueprints/github/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts +4 -2
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/index.d.ts +3 -6
- package/dist/types/src/blueprints/github/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/index.d.ts +1 -0
- package/dist/types/src/blueprints/github/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +4 -3
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/linear/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts +6 -0
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/index.d.ts +3 -8
- package/dist/types/src/blueprints/linear/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts +4 -6
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/index.d.ts +1 -0
- package/dist/types/src/blueprints/linear/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/memory/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/memory/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/definitions.d.ts +17 -0
- package/dist/types/src/blueprints/memory/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/delete.d.ts +10 -0
- package/dist/types/src/blueprints/memory/functions/delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/memory/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/query.d.ts +8 -0
- package/dist/types/src/blueprints/memory/functions/query.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/save.d.ts +8 -0
- package/dist/types/src/blueprints/memory/functions/save.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/index.d.ts +3 -0
- package/dist/types/src/blueprints/memory/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/planning/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts +11 -0
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/index.d.ts +3 -9
- package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +5 -3
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning/index.d.ts +1 -0
- package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/project/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +4 -3
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/agent.d.ts +2 -60
- package/dist/types/src/blueprints/project/functions/agent.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/definitions.d.ts +158 -0
- package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/get-context.d.ts +6 -4
- package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/index.d.ts +3 -132
- package/dist/types/src/blueprints/project/functions/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +30 -17
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/index.d.ts +2 -2
- package/dist/types/src/blueprints/project/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/project-wizard/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/project-wizard/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +51 -0
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +96 -0
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/project-wizard/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts +4 -0
- package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts +48 -0
- package/dist/types/src/blueprints/project-wizard/functions/sync-triggers.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/index.d.ts +3 -0
- package/dist/types/src/blueprints/project-wizard/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/testing.d.ts +5 -15
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/blueprint.d.ts +2 -2
- package/dist/types/src/blueprints/websearch/blueprint.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/functions/definitions.d.ts +5 -0
- package/dist/types/src/blueprints/websearch/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/functions/fetch.d.ts +6 -0
- package/dist/types/src/blueprints/websearch/functions/fetch.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/websearch/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/index.d.ts +2 -1
- package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/toolkit.d.ts +2 -0
- package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -1
- package/dist/types/src/crud/graph.d.ts +1 -1
- package/dist/types/src/crud/graph.d.ts.map +1 -1
- package/dist/types/src/errors.d.ts +41 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/functions/agent/definitions.d.ts +62 -0
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -0
- package/dist/types/src/functions/agent/index.d.ts +3 -84
- package/dist/types/src/functions/agent/index.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts +2 -82
- package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.test.d.ts +2 -0
- package/dist/types/src/functions/agent/prompt.test.d.ts.map +1 -0
- package/dist/types/src/functions/index.d.ts +0 -2
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/sync/sync.d.ts.map +1 -1
- package/dist/types/src/testing/plugins.d.ts.map +1 -1
- package/dist/types/src/toolkits/WebToolkit.d.ts.map +1 -1
- package/dist/types/src/types/Agent.d.ts +77 -0
- package/dist/types/src/types/Agent.d.ts.map +1 -0
- package/dist/types/src/types/Chat.d.ts +32 -7
- package/dist/types/src/types/Chat.d.ts.map +1 -1
- package/dist/types/src/types/McpServer.d.ts +21 -0
- package/dist/types/src/types/McpServer.d.ts.map +1 -0
- package/dist/types/src/types/Memory.d.ts +12 -0
- package/dist/types/src/types/Memory.d.ts.map +1 -0
- package/dist/types/src/types/Plan.d.ts +23 -11
- package/dist/types/src/types/Plan.d.ts.map +1 -1
- package/dist/types/src/types/index.d.ts +3 -1
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/util/graphql.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +27 -31
- package/src/blueprints/automation/blueprint.ts +105 -0
- package/src/blueprints/automation/index.ts +5 -0
- package/src/blueprints/blueprint-manager/blueprint.conversations.json +1 -0
- package/src/blueprints/blueprint-manager/blueprint.test.ts +198 -0
- package/src/blueprints/blueprint-manager/blueprint.ts +49 -0
- package/src/blueprints/blueprint-manager/functions/definitions.ts +57 -0
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +43 -0
- package/src/blueprints/blueprint-manager/functions/index.ts +13 -0
- package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +18 -0
- package/src/blueprints/blueprint-manager/functions/update-blueprints.ts +18 -0
- package/src/blueprints/blueprint-manager/index.ts +6 -0
- package/src/blueprints/browser/blueprint.test.ts +23 -32
- package/src/blueprints/browser/blueprint.ts +5 -6
- package/src/blueprints/database/blueprint.conversations.json +1 -1
- package/src/blueprints/database/blueprint.test.ts +308 -98
- package/src/blueprints/database/blueprint.ts +37 -10
- package/src/blueprints/database/functions/context-add.ts +15 -26
- package/src/blueprints/database/functions/context-remove.ts +16 -27
- package/src/blueprints/database/functions/definitions.ts +318 -0
- package/src/blueprints/database/functions/index.ts +18 -28
- package/src/blueprints/database/functions/load.ts +11 -23
- package/src/blueprints/database/functions/object-create.ts +28 -25
- package/src/blueprints/database/functions/object-delete.ts +13 -20
- package/src/blueprints/database/functions/object-update.ts +23 -25
- package/src/blueprints/database/functions/query.ts +48 -110
- package/src/blueprints/database/functions/relation-create.ts +25 -38
- package/src/blueprints/database/functions/relation-delete.ts +14 -21
- package/src/blueprints/database/functions/schema-add.ts +19 -31
- package/src/blueprints/database/functions/schema-list.ts +26 -27
- package/src/blueprints/database/functions/tag-add.ts +14 -24
- package/src/blueprints/database/functions/tag-remove.ts +14 -23
- package/src/blueprints/database/index.ts +16 -1
- package/src/blueprints/discord/blueprint.ts +6 -11
- package/src/blueprints/discord/functions/definitions.ts +70 -0
- package/src/blueprints/discord/functions/fetch-messages.test.ts +15 -25
- package/src/blueprints/discord/functions/fetch-messages.ts +98 -152
- package/src/blueprints/discord/functions/index.ts +4 -4
- package/src/blueprints/discord/index.ts +1 -0
- package/src/blueprints/github/functions/definitions.ts +26 -0
- package/src/blueprints/github/functions/fetch-prs.ts +15 -22
- package/src/blueprints/github/functions/index.ts +4 -4
- package/src/blueprints/github/index.ts +2 -0
- package/src/blueprints/index.ts +4 -3
- package/src/blueprints/linear/blueprint.ts +6 -11
- package/src/blueprints/linear/functions/definitions.ts +23 -0
- package/src/blueprints/linear/functions/index.ts +4 -4
- package/src/blueprints/linear/functions/linear.test.ts +7 -7
- package/src/blueprints/linear/functions/sync-issues.ts +31 -39
- package/src/blueprints/linear/index.ts +1 -0
- package/src/blueprints/memory/blueprint.conversations.json +1 -0
- package/src/blueprints/memory/blueprint.test.ts +139 -0
- package/src/blueprints/memory/blueprint.ts +41 -0
- package/src/blueprints/memory/functions/definitions.ts +68 -0
- package/src/blueprints/memory/functions/delete.ts +20 -0
- package/src/blueprints/memory/functions/index.ts +13 -0
- package/src/blueprints/memory/functions/query.ts +32 -0
- package/src/blueprints/memory/functions/save.ts +20 -0
- package/src/blueprints/memory/index.ts +6 -0
- package/src/blueprints/planning/blueprint.ts +5 -9
- package/src/blueprints/planning/functions/definitions.ts +137 -0
- package/src/blueprints/planning/functions/index.ts +4 -4
- package/src/blueprints/planning/functions/update-tasks.ts +35 -158
- package/src/blueprints/planning/index.ts +1 -0
- package/src/blueprints/project/blueprint.conversations.json +1 -0
- package/src/blueprints/project/blueprint.test.ts +246 -111
- package/src/blueprints/project/blueprint.ts +21 -25
- package/src/blueprints/project/functions/add-artifact.ts +19 -30
- package/src/blueprints/project/functions/agent.ts +43 -46
- package/src/blueprints/project/functions/definitions.ts +92 -0
- package/src/blueprints/project/functions/get-context.ts +36 -53
- package/src/blueprints/project/functions/index.ts +9 -10
- package/src/blueprints/project/functions/qualifier.ts +66 -72
- package/src/blueprints/project/index.ts +2 -2
- package/src/blueprints/project-wizard/blueprint.ts +52 -0
- package/src/blueprints/project-wizard/functions/create-project.ts +32 -0
- package/src/blueprints/project-wizard/functions/definitions.ts +63 -0
- package/src/blueprints/project-wizard/functions/index.ts +13 -0
- package/src/blueprints/project-wizard/functions/project-rules.ts +77 -0
- package/src/blueprints/project-wizard/functions/sync-triggers.ts +158 -0
- package/src/blueprints/project-wizard/index.ts +6 -0
- package/src/blueprints/testing.ts +7 -23
- package/src/blueprints/websearch/blueprint.conversations.json +1 -0
- package/src/blueprints/websearch/blueprint.test.ts +39 -0
- package/src/blueprints/websearch/blueprint.ts +6 -8
- package/src/blueprints/websearch/functions/definitions.ts +25 -0
- package/src/blueprints/websearch/functions/fetch.ts +18 -0
- package/src/blueprints/websearch/functions/index.ts +9 -0
- package/src/blueprints/websearch/index.ts +2 -1
- package/src/blueprints/websearch/toolkit.ts +6 -1
- package/src/crud/graph.test.ts +10 -12
- package/src/crud/graph.ts +2 -2
- package/src/errors.ts +25 -0
- package/src/functions/agent/definitions.ts +56 -0
- package/src/functions/agent/index.ts +4 -4
- package/src/functions/agent/prompt.conversations.json +1 -0
- package/src/functions/agent/prompt.test.ts +81 -0
- package/src/functions/agent/prompt.ts +212 -96
- package/src/functions/index.ts +0 -2
- package/src/sync/sync.ts +23 -12
- package/src/testing/plugins.tsx +10 -3
- package/src/toolkits/WebToolkit.ts +1 -1
- package/src/types/Agent.ts +240 -0
- package/src/types/Chat.ts +24 -10
- package/src/types/McpServer.ts +37 -0
- package/src/types/Memory.ts +24 -0
- package/src/types/Plan.ts +7 -4
- package/src/types/index.ts +3 -1
- package/dist/types/src/blueprints/design/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/design/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/design/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/design/index.d.ts +0 -2
- package/dist/types/src/blueprints/design/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/markdown/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/create.d.ts +0 -6
- package/dist/types/src/blueprints/markdown/functions/create.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/index.d.ts +0 -30
- package/dist/types/src/blueprints/markdown/functions/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/read.d.ts +0 -14
- package/dist/types/src/blueprints/markdown/functions/read.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/functions/update.d.ts +0 -13
- package/dist/types/src/blueprints/markdown/functions/update.d.ts.map +0 -1
- package/dist/types/src/blueprints/markdown/index.d.ts +0 -3
- package/dist/types/src/blueprints/markdown/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts +0 -29
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts +0 -14
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/task-list.d.ts +0 -74
- package/dist/types/src/blueprints/planning-old/functions/task-list.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/task-list.test.d.ts +0 -2
- package/dist/types/src/blueprints/planning-old/functions/task-list.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts +0 -16
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning-old/index.d.ts +0 -2
- package/dist/types/src/blueprints/planning-old/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/research/blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/document-create.d.ts +0 -10
- package/dist/types/src/blueprints/research/functions/document-create.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/index.d.ts +0 -19
- package/dist/types/src/blueprints/research/functions/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/research.d.ts +0 -14
- package/dist/types/src/blueprints/research/functions/research.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/functions/research.test.d.ts +0 -2
- package/dist/types/src/blueprints/research/functions/research.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/index.d.ts +0 -3
- package/dist/types/src/blueprints/research/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts +0 -18
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/types/index.d.ts +0 -7
- package/dist/types/src/blueprints/research/types/index.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +0 -179
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts +0 -2
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +0 -179
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts +0 -38
- package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts +0 -37
- package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts +0 -58
- package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/functions/exa/data/index.d.ts +0 -3
- package/dist/types/src/functions/exa/data/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/exa.d.ts +0 -5
- package/dist/types/src/functions/exa/exa.d.ts.map +0 -1
- package/dist/types/src/functions/exa/index.d.ts +0 -9
- package/dist/types/src/functions/exa/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/mock.d.ts +0 -5
- package/dist/types/src/functions/exa/mock.d.ts.map +0 -1
- package/dist/types/src/types/Project.d.ts +0 -67
- package/dist/types/src/types/Project.d.ts.map +0 -1
- package/src/blueprints/browser/blueprint.conversations.json +0 -1
- package/src/blueprints/design/blueprint.test.ts +0 -96
- package/src/blueprints/design/blueprint.ts +0 -46
- package/src/blueprints/design/index.ts +0 -5
- package/src/blueprints/markdown/blueprint.ts +0 -38
- package/src/blueprints/markdown/functions/create.ts +0 -29
- package/src/blueprints/markdown/functions/index.ts +0 -13
- package/src/blueprints/markdown/functions/read.ts +0 -32
- package/src/blueprints/markdown/functions/update.ts +0 -32
- package/src/blueprints/markdown/index.ts +0 -6
- package/src/blueprints/planning-old/blueprint.test.ts +0 -122
- package/src/blueprints/planning-old/blueprint.ts +0 -110
- package/src/blueprints/planning-old/functions/index.ts +0 -11
- package/src/blueprints/planning-old/functions/read.ts +0 -34
- package/src/blueprints/planning-old/functions/task-list.test.ts +0 -99
- package/src/blueprints/planning-old/functions/task-list.ts +0 -165
- package/src/blueprints/planning-old/functions/update.ts +0 -52
- package/src/blueprints/planning-old/index.ts +0 -5
- package/src/blueprints/research/blueprint.test.ts +0 -7
- package/src/blueprints/research/blueprint.ts +0 -65
- package/src/blueprints/research/functions/document-create.ts +0 -73
- package/src/blueprints/research/functions/index.ts +0 -11
- package/src/blueprints/research/functions/research-instructions.tpl +0 -106
- package/src/blueprints/research/functions/research.conversations.json +0 -1
- package/src/blueprints/research/functions/research.test.ts +0 -149
- package/src/blueprints/research/functions/research.ts +0 -175
- package/src/blueprints/research/index.ts +0 -6
- package/src/blueprints/research/types/ResearchGraph.ts +0 -49
- package/src/blueprints/research/types/index.ts +0 -32
- package/src/functions/entity-extraction/entity-extraction.conversations.json +0 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +0 -74
- package/src/functions/entity-extraction/entity-extraction.ts +0 -181
- package/src/functions/entity-extraction/index.ts +0 -9
- package/src/functions/exa/data/exa-search-1748337321991.ts +0 -131
- package/src/functions/exa/data/exa-search-1748337331526.ts +0 -144
- package/src/functions/exa/data/exa-search-1748337344119.ts +0 -133
- package/src/functions/exa/data/index.ts +0 -11
- package/src/functions/exa/exa.ts +0 -37
- package/src/functions/exa/index.ts +0 -11
- package/src/functions/exa/mock.ts +0 -71
- package/src/types/Project.ts +0 -196
- /package/dist/types/src/blueprints/{design → blueprint-manager}/blueprint.test.d.ts +0 -0
- /package/dist/types/src/blueprints/{planning-old → memory}/blueprint.test.d.ts +0 -0
- /package/dist/types/src/blueprints/{research → websearch}/blueprint.test.d.ts +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TagAdd
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/database/functions/tag-add.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Operation } from "@dxos/compute";
|
|
9
|
+
import { Database, Entity, Obj } from "@dxos/echo";
|
|
10
|
+
var tag_add_default = TagAdd.pipe(Operation.withHandler(Effect.fn(function* ({ tag, obj }) {
|
|
11
|
+
const object = yield* Database.load(obj);
|
|
12
|
+
const tagObj = yield* Database.load(tag);
|
|
13
|
+
Entity.update(object, (object2) => Entity.addTag(object2, Obj.getDXN(tagObj).toString()));
|
|
14
|
+
return Entity.toJSON(object);
|
|
15
|
+
})));
|
|
16
|
+
export {
|
|
17
|
+
tag_add_default as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=tag-add-VNIIOVJA.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/database/functions/tag-add.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Entity, Obj } from '@dxos/echo';\n\nimport { TagAdd } from './definitions';\n\nexport default TagAdd.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ tag, obj }) {\n const object = yield* Database.load(obj);\n const tagObj = yield* Database.load(tag);\n Entity.update(object, (object) => Entity.addTag(object, Obj.getDXN(tagObj).toString()));\n return Entity.toJSON(object);\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,QAAQC,WAAW;AAItC,IAAA,kBAAeC,OAAOC,KACpBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,KAAKC,IAAG,GAAE;AAC/B,QAAMC,SAAS,OAAOC,SAASC,KAAKH,GAAAA;AACpC,QAAMI,SAAS,OAAOF,SAASC,KAAKJ,GAAAA;AACpCM,SAAOC,OAAOL,QAAQ,CAACA,YAAWI,OAAOE,OAAON,SAAQO,IAAIC,OAAOL,MAAAA,EAAQM,SAAQ,CAAA,CAAA;AACnF,SAAOL,OAAOM,OAAOV,MAAAA;AACvB,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Operation", "Database", "Entity", "Obj", "TagAdd", "pipe", "Operation", "withHandler", "fn", "tag", "obj", "object", "Database", "load", "tagObj", "Entity", "update", "addTag", "Obj", "getDXN", "toString", "toJSON"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TagRemove
|
|
3
|
+
} from "./chunk-IKBIORQX.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/database/functions/tag-remove.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Operation } from "@dxos/compute";
|
|
9
|
+
import { Database, Entity, Obj } from "@dxos/echo";
|
|
10
|
+
var tag_remove_default = TagRemove.pipe(Operation.withHandler(Effect.fn(function* ({ tag, obj }) {
|
|
11
|
+
const object = yield* Database.load(obj);
|
|
12
|
+
const tagObj = yield* Database.load(tag);
|
|
13
|
+
Entity.update(object, (object2) => Entity.removeTag(object2, Obj.getDXN(tagObj).toString()));
|
|
14
|
+
return Entity.toJSON(object);
|
|
15
|
+
})));
|
|
16
|
+
export {
|
|
17
|
+
tag_remove_default as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=tag-remove-6R2R27W3.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/database/functions/tag-remove.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Entity, Obj } from '@dxos/echo';\n\nimport { TagRemove } from './definitions';\n\nexport default TagRemove.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ tag, obj }) {\n const object = yield* Database.load(obj);\n const tagObj = yield* Database.load(tag);\n Entity.update(object, (object) => Entity.removeTag(object, Obj.getDXN(tagObj).toString()));\n return Entity.toJSON(object);\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,QAAQC,WAAW;AAItC,IAAA,qBAAeC,UAAUC,KACvBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,KAAKC,IAAG,GAAE;AAC/B,QAAMC,SAAS,OAAOC,SAASC,KAAKH,GAAAA;AACpC,QAAMI,SAAS,OAAOF,SAASC,KAAKJ,GAAAA;AACpCM,SAAOC,OAAOL,QAAQ,CAACA,YAAWI,OAAOE,UAAUN,SAAQO,IAAIC,OAAOL,MAAAA,EAAQM,SAAQ,CAAA,CAAA;AACtF,SAAOL,OAAOM,OAAOV,MAAAA;AACvB,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Operation", "Database", "Entity", "Obj", "TagRemove", "pipe", "Operation", "withHandler", "fn", "tag", "obj", "object", "Database", "load", "tagObj", "Entity", "update", "removeTag", "Obj", "getDXN", "toString", "toJSON"]
|
|
7
|
+
}
|
|
@@ -8,24 +8,19 @@ import { ConsolePrinter } from "@dxos/ai";
|
|
|
8
8
|
import { AiContextService, 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";
|
|
12
|
-
var runSteps = Effect.fn(function* (
|
|
11
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/compute/assistant-toolkit/src/blueprints/testing.ts";
|
|
12
|
+
var runSteps = Effect.fn(function* (session, steps) {
|
|
13
13
|
for (const { test, ...props } of steps) {
|
|
14
|
-
yield*
|
|
14
|
+
yield* session.createRequest({
|
|
15
15
|
...props,
|
|
16
16
|
observer: GenerationObserver.fromPrinter(new ConsolePrinter({
|
|
17
17
|
mode: "json"
|
|
18
18
|
}))
|
|
19
19
|
});
|
|
20
|
-
const messages = yield* Effect.promise(() =>
|
|
20
|
+
const messages = yield* Effect.promise(() => session.getHistory());
|
|
21
21
|
log.info("conversation", {
|
|
22
22
|
messages
|
|
23
|
-
}, {
|
|
24
|
-
F: __dxlog_file,
|
|
25
|
-
L: 45,
|
|
26
|
-
S: this,
|
|
27
|
-
C: (f, a) => f(...a)
|
|
28
|
-
});
|
|
23
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 22, S: this });
|
|
29
24
|
if (test) {
|
|
30
25
|
yield* Effect.promise(() => test());
|
|
31
26
|
}
|
|
@@ -44,11 +39,11 @@ import { Capabilities, Capability } from "@dxos/app-framework";
|
|
|
44
39
|
import { Surface } from "@dxos/app-framework/ui";
|
|
45
40
|
import { Format, Type } from "@dxos/echo";
|
|
46
41
|
import { Card } from "@dxos/react-ui";
|
|
47
|
-
import {
|
|
42
|
+
import { Syntax } from "@dxos/react-ui-syntax-highlighter";
|
|
48
43
|
var MapSchema = Schema.Struct({
|
|
49
44
|
coordinates: Format.GeoPoint
|
|
50
45
|
}).pipe(Type.object({
|
|
51
|
-
typename: "example.
|
|
46
|
+
typename: "com.example.type.map",
|
|
52
47
|
version: "0.1.0"
|
|
53
48
|
}));
|
|
54
49
|
var isImage = (data) => false;
|
|
@@ -67,9 +62,9 @@ var capabilities = [
|
|
|
67
62
|
id: "plugin-default",
|
|
68
63
|
role: "card--content",
|
|
69
64
|
position: "fallback",
|
|
70
|
-
component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement(
|
|
65
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement(Syntax.Root, {
|
|
71
66
|
data
|
|
72
|
-
}))
|
|
67
|
+
}, /* @__PURE__ */ React.createElement(Syntax.Content, null, /* @__PURE__ */ React.createElement(Syntax.Filter, null), /* @__PURE__ */ React.createElement(Syntax.Viewport, null, /* @__PURE__ */ React.createElement(Syntax.Code, null)))))
|
|
73
68
|
}))
|
|
74
69
|
];
|
|
75
70
|
export {
|
|
@@ -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,
|
|
6
|
-
"names": ["Arr", "Effect", "pipe", "ConsolePrinter", "AiContextService", "GenerationObserver", "Database", "Ref", "log", "
|
|
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 { AiContextService, type AiSession, type AiSessionRunProps, 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<AiSessionRunProps, '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 = Effect.fn(function* (session: AiSession, steps: TestStep[]) {\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* AiContextService.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 </Syntax.Content>\n </Syntax.Root>\n </Card.Content>\n ),\n }),\n ),\n];\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,SAAS;AACrB,YAAYC,YAAY;AACxB,SAASC,YAAY;AAErB,SAASC,sBAAsB;AAC/B,SAASC,kBAA0DC,0BAA0B;AAE7F,SAASC,UAAUC,WAAW;AAC9B,SAASC,WAAW;AAMpB,IAAA,eAAA;AAKI,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,iBAAA,YAAA;IACC,YAAA,OAAA,KAAA,YAAA,QAAA,CAAA,cAAA,UAAA,KAAA,CAAA,GAAA,eAAA,SAAA,GAAA,GAAA,WAAA,QAAA,IAAA,IAAA,CAAA,CAAA;;;;;AC5CH,YAAYC,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,QAAkBC,YAAY;AACvC,SAASC,YAAY;AACrB,SAASC,cAAc;AAEhB,IAAMC,YAAmBC,cAAO;EACrCC,aAAaN,OAAOO;AACtB,CAAA,EAAGC,KACDP,KAAKQ,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;AAmBF,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,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", "AiContextService", "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
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UpdateBlueprints
|
|
3
|
+
} from "./chunk-TO5IX24K.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/blueprint-manager/functions/update-blueprints.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Blueprint, Operation } from "@dxos/compute";
|
|
9
|
+
var update_blueprints_default = UpdateBlueprints.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
10
|
+
const registry = yield* Blueprint.RegistryService;
|
|
11
|
+
yield* registry.updateBlueprints();
|
|
12
|
+
})));
|
|
13
|
+
export {
|
|
14
|
+
update_blueprints_default as default
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=update-blueprints-N2AK2VUR.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/blueprint-manager/functions/update-blueprints.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Blueprint, Operation } from '@dxos/compute';\n\nimport { UpdateBlueprints } from './definitions';\n\nexport default UpdateBlueprints.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* () {\n const registry = yield* Blueprint.RegistryService;\n yield* registry.updateBlueprints();\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,WAAWC,iBAAiB;AAIrC,IAAA,4BAAeC,iBAAiBC,KAC9BC,UAAUC,YACDC,kBAAW,aAAA;AAChB,QAAMC,WAAW,OAAOC,UAAUC;AAClC,SAAOF,SAASG,iBAAgB;AAClC,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Blueprint", "Operation", "UpdateBlueprints", "pipe", "Operation", "withHandler", "fnUntraced", "registry", "Blueprint", "RegistryService", "updateBlueprints"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UpdateTasks
|
|
3
|
+
} from "./chunk-FIGO6CA6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Agent_exports,
|
|
6
|
+
Plan_exports
|
|
7
|
+
} from "./chunk-P4ZMYO4K.mjs";
|
|
8
|
+
import "./chunk-NR3GTWRC.mjs";
|
|
9
|
+
import "./chunk-KGU725LW.mjs";
|
|
10
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
11
|
+
|
|
12
|
+
// src/blueprints/planning/functions/update-tasks.ts
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import { Operation } from "@dxos/compute";
|
|
15
|
+
import { Database, Obj } from "@dxos/echo";
|
|
16
|
+
import { trim } from "@dxos/util";
|
|
17
|
+
var update_tasks_default = UpdateTasks.pipe(Operation.withHandler(Effect.fn(function* ({ tasks: newTasks }) {
|
|
18
|
+
const agent = yield* Agent_exports.getFromChatContext;
|
|
19
|
+
const plan = yield* Database.load(agent.plan);
|
|
20
|
+
Obj.update(plan, (plan2) => {
|
|
21
|
+
for (const task of newTasks) {
|
|
22
|
+
const existingTask = plan2.tasks.find((t) => t.id === task.id);
|
|
23
|
+
if (existingTask) {
|
|
24
|
+
existingTask.title = task.title;
|
|
25
|
+
existingTask.status = task.status;
|
|
26
|
+
} else {
|
|
27
|
+
plan2.tasks.push({
|
|
28
|
+
id: task.id,
|
|
29
|
+
title: task.title,
|
|
30
|
+
status: task.status
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return trim`
|
|
36
|
+
Tasks updated. Don't forget to mark tasks as done when you're done with them or update their status to 'in-progress' when you start working on them.
|
|
37
|
+
Current plan:
|
|
38
|
+
<plan>
|
|
39
|
+
${Plan_exports.formatPlan(plan)}
|
|
40
|
+
</plan>
|
|
41
|
+
`;
|
|
42
|
+
})));
|
|
43
|
+
export {
|
|
44
|
+
update_tasks_default as default
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=update-tasks-H7SWIFQL.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/planning/functions/update-tasks.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Operation } from '@dxos/compute';\nimport { Database, Obj } from '@dxos/echo';\nimport { trim } from '@dxos/util';\n\nimport { Plan, Agent } from '../../../types';\nimport { UpdateTasks } from './definitions';\n\nexport default UpdateTasks.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ tasks: newTasks }) {\n const agent = yield* Agent.getFromChatContext;\n const plan = yield* Database.load(agent.plan);\n\n Obj.update(plan, (plan) => {\n for (const task of newTasks) {\n const existingTask = plan.tasks.find((t) => t.id === task.id);\n if (existingTask) {\n existingTask.title = task.title;\n existingTask.status = task.status;\n } else {\n plan.tasks.push({\n id: task.id,\n title: task.title,\n status: task.status,\n });\n }\n }\n });\n\n return trim`\n Tasks updated. Don't forget to mark tasks as done when you're done with them or update their status to 'in-progress' when you start working on them.\n Current plan:\n <plan>\n ${Plan.formatPlan(plan)}\n </plan>\n `;\n }) as any,\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,WAAW;AAC9B,SAASC,YAAY;AAKrB,IAAA,uBAAeC,YAAYC,KACzBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,OAAOC,SAAQ,GAAE;AACtC,QAAMC,QAAQ,OAAOC,cAAMC;AAC3B,QAAMC,OAAO,OAAOC,SAASC,KAAKL,MAAMG,IAAI;AAE5CG,MAAIC,OAAOJ,MAAM,CAACA,UAAAA;AAChB,eAAWK,QAAQT,UAAU;AAC3B,YAAMU,eAAeN,MAAKL,MAAMY,KAAK,CAACC,MAAMA,EAAEC,OAAOJ,KAAKI,EAAE;AAC5D,UAAIH,cAAc;AAChBA,qBAAaI,QAAQL,KAAKK;AAC1BJ,qBAAaK,SAASN,KAAKM;MAC7B,OAAO;AACLX,QAAAA,MAAKL,MAAMiB,KAAK;UACdH,IAAIJ,KAAKI;UACTC,OAAOL,KAAKK;UACZC,QAAQN,KAAKM;QACf,CAAA;MACF;IACF;EACF,CAAA;AAEA,SAAOE;;;;YAIDC,aAAKC,WAAWf,IAAAA,CAAAA;;;AAGxB,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Operation", "Database", "Obj", "trim", "UpdateTasks", "pipe", "Operation", "withHandler", "fn", "tasks", "newTasks", "agent", "Agent", "getFromChatContext", "plan", "Database", "load", "Obj", "update", "task", "existingTask", "find", "t", "id", "title", "status", "push", "trim", "Plan", "formatPlan"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/automation/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAsB,MAAM,eAAe,CAAC;AA+F9D,QAAA,MAAM,SAAS,EAAE,SAAS,CAAC,UAG1B,CAAC;eAEa,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/automation/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/blueprint-manager/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAY,MAAM,eAAe,CAAC;AAuCpD,QAAA,MAAM,SAAS,EAAE,SAAS,CAAC,UAG1B,CAAC;eAEa,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.test.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/blueprint-manager/blueprint.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Blueprint, Operation } from '@dxos/compute';
|
|
3
|
+
import { Database } from '@dxos/echo';
|
|
4
|
+
export declare const QueryBlueprints: Operation.Definition<{}, readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
5
|
+
readonly key: string;
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly description?: string | undefined;
|
|
8
|
+
readonly instructions: {
|
|
9
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
10
|
+
readonly name?: string | undefined;
|
|
11
|
+
readonly content: string;
|
|
12
|
+
}>;
|
|
13
|
+
readonly inputs?: readonly {
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly kind: "operation" | "value";
|
|
16
|
+
readonly default?: any;
|
|
17
|
+
readonly operation?: string | undefined;
|
|
18
|
+
}[] | undefined;
|
|
19
|
+
};
|
|
20
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
21
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
22
|
+
readonly mcpServers?: readonly {
|
|
23
|
+
readonly name?: string | undefined;
|
|
24
|
+
readonly url: string;
|
|
25
|
+
readonly protocol: "http" | "sse";
|
|
26
|
+
readonly apiKey?: string | undefined;
|
|
27
|
+
}[] | undefined;
|
|
28
|
+
})[], Blueprint.RegistryService>;
|
|
29
|
+
export declare const EnableBlueprints: Operation.Definition<{
|
|
30
|
+
readonly keys: readonly string[];
|
|
31
|
+
}, {
|
|
32
|
+
readonly enabled: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
33
|
+
readonly key: string;
|
|
34
|
+
readonly name: string;
|
|
35
|
+
readonly description?: string | undefined;
|
|
36
|
+
readonly instructions: {
|
|
37
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
38
|
+
readonly name?: string | undefined;
|
|
39
|
+
readonly content: string;
|
|
40
|
+
}>;
|
|
41
|
+
readonly inputs?: readonly {
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly kind: "operation" | "value";
|
|
44
|
+
readonly default?: any;
|
|
45
|
+
readonly operation?: string | undefined;
|
|
46
|
+
}[] | undefined;
|
|
47
|
+
};
|
|
48
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
49
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
50
|
+
readonly mcpServers?: readonly {
|
|
51
|
+
readonly name?: string | undefined;
|
|
52
|
+
readonly url: string;
|
|
53
|
+
readonly protocol: "http" | "sse";
|
|
54
|
+
readonly apiKey?: string | undefined;
|
|
55
|
+
}[] | undefined;
|
|
56
|
+
})[];
|
|
57
|
+
readonly rejected: readonly {
|
|
58
|
+
readonly key: string;
|
|
59
|
+
readonly reason: string;
|
|
60
|
+
}[];
|
|
61
|
+
}, AiContextService | Blueprint.RegistryService | Database.Service>;
|
|
62
|
+
export declare const UpdateBlueprints: Operation.Definition<{}, void, Blueprint.RegistryService | Database.Service>;
|
|
63
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mEAuB3B,CAAC;AAEH,eAAO,MAAM,gBAAgB,8EAU3B,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Blueprint, Operation } from '@dxos/compute';
|
|
3
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
|
+
readonly keys: readonly string[];
|
|
5
|
+
}, {
|
|
6
|
+
readonly enabled: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
7
|
+
readonly key: string;
|
|
8
|
+
readonly name: string;
|
|
9
|
+
readonly description?: string | undefined;
|
|
10
|
+
readonly instructions: {
|
|
11
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
12
|
+
readonly name?: string | undefined;
|
|
13
|
+
readonly content: string;
|
|
14
|
+
}>;
|
|
15
|
+
readonly inputs?: readonly {
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly kind: "operation" | "value";
|
|
18
|
+
readonly default?: any;
|
|
19
|
+
readonly operation?: string | undefined;
|
|
20
|
+
}[] | undefined;
|
|
21
|
+
};
|
|
22
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
23
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
24
|
+
readonly mcpServers?: readonly {
|
|
25
|
+
readonly name?: string | undefined;
|
|
26
|
+
readonly url: string;
|
|
27
|
+
readonly protocol: "http" | "sse";
|
|
28
|
+
readonly apiKey?: string | undefined;
|
|
29
|
+
}[] | undefined;
|
|
30
|
+
})[];
|
|
31
|
+
readonly rejected: readonly {
|
|
32
|
+
readonly key: string;
|
|
33
|
+
readonly reason: string;
|
|
34
|
+
}[];
|
|
35
|
+
}, AiContextService | Blueprint.RegistryService | import("@dxos/echo/Database").Service>>;
|
|
36
|
+
export default _default;
|
|
37
|
+
//# sourceMappingURL=enable-blueprints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enable-blueprints.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/enable-blueprints.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,cAAc,eAAe,CAAC;AAE9B,eAAO,MAAM,wBAAwB,yCAIpC,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Blueprint, Operation } from '@dxos/compute';
|
|
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
|
+
readonly name: string;
|
|
5
|
+
readonly description?: string | undefined;
|
|
6
|
+
readonly instructions: {
|
|
7
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly content: string;
|
|
10
|
+
}>;
|
|
11
|
+
readonly inputs?: readonly {
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly kind: "operation" | "value";
|
|
14
|
+
readonly default?: any;
|
|
15
|
+
readonly operation?: string | undefined;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
};
|
|
18
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
19
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
20
|
+
readonly mcpServers?: readonly {
|
|
21
|
+
readonly name?: string | undefined;
|
|
22
|
+
readonly url: string;
|
|
23
|
+
readonly protocol: "http" | "sse";
|
|
24
|
+
readonly apiKey?: string | undefined;
|
|
25
|
+
}[] | undefined;
|
|
26
|
+
})[], Blueprint.RegistryService>>;
|
|
27
|
+
export default _default;
|
|
28
|
+
//# sourceMappingURL=query-blueprints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query-blueprints.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/query-blueprints.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { Blueprint, Operation } from '@dxos/compute';
|
|
2
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{}, void, Blueprint.RegistryService | import("@dxos/echo/Database").Service>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
//# sourceMappingURL=update-blueprints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-blueprints.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/blueprint-manager/functions/update-blueprints.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/blueprint-manager/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const blueprint:
|
|
1
|
+
import { Blueprint } from '@dxos/compute';
|
|
2
|
+
declare const blueprint: Blueprint.Definition;
|
|
3
3
|
export default blueprint;
|
|
4
4
|
//# sourceMappingURL=blueprint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/browser/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/browser/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AA8B1C,QAAA,MAAM,SAAS,EAAE,SAAS,CAAC,UAG1B,CAAC;eAEa,SAAS"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const blueprint:
|
|
1
|
+
import { Blueprint } from '@dxos/compute';
|
|
2
|
+
declare const blueprint: Blueprint.Definition;
|
|
3
3
|
export default blueprint;
|
|
4
4
|
//# sourceMappingURL=blueprint.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/database/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/database/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAwD1C,QAAA,MAAM,SAAS,EAAE,SAAS,CAAC,UAG1B,CAAC;eAEa,SAAS"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
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, AiContextService>>;
|
|
5
6
|
export default _default;
|
|
6
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":"
|
|
1
|
+
{"version":3,"file":"context-add.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/context-add.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
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, AiContextService>>;
|
|
5
6
|
export default _default;
|
|
6
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":"
|
|
1
|
+
{"version":3,"file":"context-remove.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/context-remove.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
import { Database, Obj, Relation } from '@dxos/echo';
|
|
4
|
+
export declare const Query: Operation.Definition<{
|
|
5
|
+
readonly in?: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[] | undefined;
|
|
6
|
+
readonly typename?: string | undefined;
|
|
7
|
+
readonly text?: string | undefined;
|
|
8
|
+
readonly includeContent?: boolean | undefined;
|
|
9
|
+
readonly limit?: number | undefined;
|
|
10
|
+
readonly includeQueues?: boolean | undefined;
|
|
11
|
+
}, readonly unknown[], Database.Service>;
|
|
12
|
+
export declare const Load: Operation.Definition<{
|
|
13
|
+
readonly refs: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
14
|
+
}, unknown, Database.Service>;
|
|
15
|
+
export declare const ObjectCreate: Operation.Definition<{
|
|
16
|
+
readonly typename: string;
|
|
17
|
+
readonly data: any;
|
|
18
|
+
}, unknown, Database.Service>;
|
|
19
|
+
export declare const ObjectUpdate: Operation.Definition<{
|
|
20
|
+
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
21
|
+
readonly properties: {
|
|
22
|
+
readonly [x: string]: any;
|
|
23
|
+
};
|
|
24
|
+
}, unknown, Database.Service>;
|
|
25
|
+
export declare const ObjectDelete: Operation.Definition<{
|
|
26
|
+
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
27
|
+
}, void, Database.Service>;
|
|
28
|
+
export declare const SchemaAdd: Operation.Definition<{
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly typename: string;
|
|
31
|
+
readonly jsonSchema: any;
|
|
32
|
+
}, void, Database.Service>;
|
|
33
|
+
export declare const SchemaList: Operation.Definition<{
|
|
34
|
+
readonly limit?: number | undefined;
|
|
35
|
+
}, readonly unknown[], Database.Service>;
|
|
36
|
+
export declare const ContextAdd: Operation.Definition<{
|
|
37
|
+
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
38
|
+
}, void, AiContextService>;
|
|
39
|
+
export declare const ContextRemove: Operation.Definition<{
|
|
40
|
+
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
41
|
+
}, void, AiContextService>;
|
|
42
|
+
export declare const RelationCreate: Operation.Definition<{
|
|
43
|
+
readonly typename: string;
|
|
44
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
45
|
+
readonly target: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
46
|
+
readonly properties: any;
|
|
47
|
+
}, unknown, Database.Service>;
|
|
48
|
+
export declare const RelationDelete: Operation.Definition<{
|
|
49
|
+
readonly rel: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Relation> & Relation.Endpoints<Obj.Any, Obj.Any> & Relation.Unknown>;
|
|
50
|
+
}, void, Database.Service>;
|
|
51
|
+
export declare const TagAdd: Operation.Definition<{
|
|
52
|
+
readonly tag: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
53
|
+
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
54
|
+
}, unknown, Database.Service>;
|
|
55
|
+
export declare const TagRemove: Operation.Definition<{
|
|
56
|
+
readonly tag: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
57
|
+
readonly obj: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
58
|
+
}, unknown, Database.Service>;
|
|
59
|
+
//# sourceMappingURL=definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,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;;0BAgBK,CAAC;AAE7B,eAAO,MAAM,aAAa;;0BAgBE,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"}
|