@dxos/assistant-toolkit 0.8.4-main.e8ec1fe → 0.8.4-main.fcc0d83b33
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-XDFUXRY5.mjs +30 -0
- package/dist/lib/neutral/add-artifact-XDFUXRY5.mjs.map +7 -0
- package/dist/lib/neutral/agent-6OHUAIA2.mjs +65 -0
- package/dist/lib/neutral/agent-6OHUAIA2.mjs.map +7 -0
- package/dist/lib/neutral/chunk-4T3LJGXI.mjs +76 -0
- package/dist/lib/neutral/chunk-4T3LJGXI.mjs.map +7 -0
- package/dist/lib/neutral/chunk-CVUA23QI.mjs +332 -0
- package/dist/lib/neutral/chunk-CVUA23QI.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-GSG4JGIY.mjs +100 -0
- package/dist/lib/neutral/chunk-GSG4JGIY.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-JN4GARRQ.mjs +53 -0
- package/dist/lib/neutral/chunk-JN4GARRQ.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-P5LAPHCG.mjs +140 -0
- package/dist/lib/neutral/chunk-P5LAPHCG.mjs.map +7 -0
- package/dist/lib/neutral/chunk-SVI25Z2Y.mjs +293 -0
- package/dist/lib/neutral/chunk-SVI25Z2Y.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VSDP6SRY.mjs +74 -0
- package/dist/lib/neutral/chunk-VSDP6SRY.mjs.map +7 -0
- package/dist/lib/neutral/chunk-WIV7ZVRS.mjs +109 -0
- package/dist/lib/neutral/chunk-WIV7ZVRS.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-YSYNXOZA.mjs +68 -0
- package/dist/lib/neutral/chunk-YSYNXOZA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YXOVSRFU.mjs +70 -0
- package/dist/lib/neutral/chunk-YXOVSRFU.mjs.map +7 -0
- package/dist/lib/neutral/context-add-IIDPRRVB.mjs +22 -0
- package/dist/lib/neutral/context-add-IIDPRRVB.mjs.map +7 -0
- package/dist/lib/neutral/context-remove-RDYV4PD4.mjs +22 -0
- package/dist/lib/neutral/context-remove-RDYV4PD4.mjs.map +7 -0
- package/dist/lib/neutral/create-project-MPAMKQ3T.mjs +36 -0
- package/dist/lib/neutral/create-project-MPAMKQ3T.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-LELPQHY5.mjs +48 -0
- package/dist/lib/neutral/enable-blueprints-LELPQHY5.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-OS74FP76.mjs +140 -0
- package/dist/lib/neutral/fetch-messages-OS74FP76.mjs.map +7 -0
- package/dist/lib/neutral/get-context-JRTOOA5O.mjs +35 -0
- package/dist/lib/neutral/get-context-JRTOOA5O.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +906 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/load-LI7HHVD6.mjs +17 -0
- package/dist/lib/neutral/load-LI7HHVD6.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/object-create-52Z7YKIA.mjs +35 -0
- package/dist/lib/neutral/object-create-52Z7YKIA.mjs.map +7 -0
- package/dist/lib/neutral/object-delete-I266YAXI.mjs +18 -0
- package/dist/lib/neutral/object-delete-I266YAXI.mjs.map +7 -0
- package/dist/lib/neutral/object-update-HY4GI7LA.mjs +28 -0
- package/dist/lib/neutral/object-update-HY4GI7LA.mjs.map +7 -0
- package/dist/lib/neutral/project-JAU3A7AX.mjs +23 -0
- package/dist/lib/neutral/project-JAU3A7AX.mjs.map +7 -0
- package/dist/lib/neutral/project-rules-FLUQQRPB.mjs +78 -0
- package/dist/lib/neutral/project-rules-FLUQQRPB.mjs.map +7 -0
- package/dist/lib/neutral/prompt-4UMXX6QU.mjs +169 -0
- package/dist/lib/neutral/prompt-4UMXX6QU.mjs.map +7 -0
- package/dist/lib/neutral/qualifier-7BUCOEKK.mjs +88 -0
- package/dist/lib/neutral/qualifier-7BUCOEKK.mjs.map +7 -0
- package/dist/lib/neutral/query-B3NOYFCK.mjs +70 -0
- package/dist/lib/neutral/query-B3NOYFCK.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-Z576ABT5.mjs +17 -0
- package/dist/lib/neutral/query-blueprints-Z576ABT5.mjs.map +7 -0
- package/dist/lib/neutral/relation-create-Z3NGW4VU.mjs +34 -0
- package/dist/lib/neutral/relation-create-Z3NGW4VU.mjs.map +7 -0
- package/dist/lib/neutral/relation-delete-LXY7W2YO.mjs +18 -0
- package/dist/lib/neutral/relation-delete-LXY7W2YO.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-4TXJO2V7.mjs +24 -0
- package/dist/lib/neutral/schema-add-4TXJO2V7.mjs.map +7 -0
- package/dist/lib/neutral/schema-list-Q7HRRKGR.mjs +39 -0
- package/dist/lib/neutral/schema-list-Q7HRRKGR.mjs.map +7 -0
- package/dist/lib/neutral/sync-issues-A2RJNPEF.mjs +167 -0
- package/dist/lib/neutral/sync-issues-A2RJNPEF.mjs.map +7 -0
- package/dist/lib/neutral/sync-triggers-NV4JCRN5.mjs +137 -0
- package/dist/lib/neutral/sync-triggers-NV4JCRN5.mjs.map +7 -0
- package/dist/lib/neutral/tag-add-5NOHUTIE.mjs +19 -0
- package/dist/lib/neutral/tag-add-5NOHUTIE.mjs.map +7 -0
- package/dist/lib/neutral/tag-remove-QTKYDJAW.mjs +19 -0
- package/dist/lib/neutral/tag-remove-QTKYDJAW.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +76 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/update-blueprints-K7A5SHBZ.mjs +17 -0
- package/dist/lib/neutral/update-blueprints-K7A5SHBZ.mjs.map +7 -0
- package/dist/lib/neutral/update-tasks-UGGHWXT5.mjs +46 -0
- package/dist/lib/neutral/update-tasks-UGGHWXT5.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 +2 -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 +60 -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 +36 -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 +27 -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 +5 -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 +4 -0
- package/dist/types/src/blueprints/browser/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/browser/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/index.d.ts +2 -0
- package/dist/types/src/blueprints/browser/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/database/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/database/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/context-add.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/context-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -0
- 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 +4 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/load.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-create.d.ts +8 -0
- package/dist/types/src/blueprints/database/functions/object-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-update.d.ts +10 -0
- package/dist/types/src/blueprints/database/functions/object-update.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/query.d.ts +13 -0
- package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts +10 -0
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts +9 -0
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts +8 -0
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts +8 -0
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/index.d.ts +3 -0
- package/dist/types/src/blueprints/database/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/discord/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts +16 -0
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.d.ts +4 -2
- package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/fetch-messages.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/discord/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/index.d.ts +2 -2
- package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/definitions.d.ts +8 -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 +9 -0
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/index.d.ts +2 -0
- package/dist/types/src/blueprints/github/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +11 -6
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/linear/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts +7 -0
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/linear/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/linear.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts +11 -0
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/index.d.ts +2 -2
- 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 +2 -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 +4 -0
- package/dist/types/src/blueprints/planning/blueprint.d.ts.map +1 -0
- 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 +4 -0
- package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +11 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/index.d.ts +2 -2
- package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/project/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/project/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/project/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +8 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/agent.d.ts +4 -0
- package/dist/types/src/blueprints/project/functions/agent.d.ts.map +1 -0
- 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 +15 -0
- package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/project/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +73 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/index.d.ts +3 -0
- package/dist/types/src/blueprints/project/index.d.ts.map +1 -0
- 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 +52 -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 +97 -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 +9 -5
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/websearch/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/blueprint.test.d.ts +2 -0
- 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 +3 -3
- package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/{websearch-toolkit.d.ts → toolkit.d.ts} +3 -1
- package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -0
- package/dist/types/src/crud/graph.d.ts +14 -11
- 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 +61 -0
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -0
- package/dist/types/src/functions/agent/index.d.ts +3 -4
- package/dist/types/src/functions/agent/index.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts +2 -7
- 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 -6
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/sync/sync.d.ts +3 -3
- package/dist/types/src/sync/sync.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +2 -1
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/plugins.d.ts +19 -0
- package/dist/types/src/testing/plugins.d.ts.map +1 -0
- package/dist/types/src/toolkits/WebToolkit.d.ts +38 -0
- package/dist/types/src/toolkits/WebToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/index.d.ts +1 -2
- package/dist/types/src/toolkits/index.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 +56 -0
- package/dist/types/src/types/Chat.d.ts.map +1 -0
- package/dist/types/src/types/McpServer.d.ts +18 -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 +89 -0
- package/dist/types/src/types/Plan.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +6 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/src/util/graphql.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +44 -40
- package/src/blueprints/automation/blueprint.ts +107 -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 +199 -0
- package/src/blueprints/blueprint-manager/blueprint.ts +49 -0
- package/src/blueprints/blueprint-manager/functions/definitions.ts +58 -0
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +44 -0
- package/src/blueprints/blueprint-manager/functions/index.ts +13 -0
- package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +19 -0
- package/src/blueprints/blueprint-manager/functions/update-blueprints.ts +19 -0
- package/src/blueprints/blueprint-manager/index.ts +6 -0
- package/src/blueprints/browser/blueprint.test.ts +62 -0
- package/src/blueprints/browser/blueprint.ts +40 -0
- package/src/blueprints/browser/index.ts +5 -0
- package/src/blueprints/database/blueprint.conversations.json +1 -0
- package/src/blueprints/database/blueprint.test.ts +532 -0
- package/src/blueprints/database/blueprint.ts +66 -0
- package/src/blueprints/database/functions/context-add.ts +24 -0
- package/src/blueprints/database/functions/context-remove.ts +24 -0
- package/src/blueprints/database/functions/definitions.ts +318 -0
- package/src/blueprints/database/functions/index.ts +23 -0
- package/src/blueprints/database/functions/load.ts +19 -0
- package/src/blueprints/database/functions/object-create.ts +38 -0
- package/src/blueprints/database/functions/object-delete.ts +20 -0
- package/src/blueprints/database/functions/object-update.ts +30 -0
- package/src/blueprints/database/functions/query.ts +64 -0
- package/src/blueprints/database/functions/relation-create.ts +34 -0
- package/src/blueprints/database/functions/relation-delete.ts +21 -0
- package/src/blueprints/database/functions/schema-add.ts +28 -0
- package/src/blueprints/database/functions/schema-list.ts +34 -0
- package/src/blueprints/database/functions/tag-add.ts +21 -0
- package/src/blueprints/database/functions/tag-remove.ts +21 -0
- package/src/blueprints/database/index.ts +21 -0
- package/src/blueprints/discord/blueprint.ts +41 -0
- package/src/blueprints/discord/functions/definitions.ts +71 -0
- package/src/blueprints/discord/functions/fetch-messages.test.ts +45 -0
- package/src/blueprints/discord/functions/fetch-messages.ts +199 -0
- package/src/blueprints/discord/functions/index.ts +9 -0
- package/src/blueprints/discord/index.ts +2 -3
- package/src/blueprints/github/functions/definitions.ts +27 -0
- package/src/blueprints/github/functions/fetch-prs.ts +24 -0
- package/src/blueprints/github/functions/index.ts +9 -0
- package/src/blueprints/github/index.ts +5 -0
- package/src/blueprints/index.ts +11 -6
- package/src/blueprints/linear/blueprint.ts +42 -0
- package/src/blueprints/linear/functions/definitions.ts +24 -0
- package/src/blueprints/linear/functions/index.ts +9 -0
- package/src/blueprints/linear/functions/linear.test.ts +59 -0
- package/src/{functions/linear → blueprints/linear/functions}/sync-issues.ts +40 -46
- package/src/blueprints/linear/index.ts +2 -3
- 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 +24 -0
- package/src/blueprints/planning/functions/definitions.ts +137 -0
- package/src/blueprints/planning/functions/index.ts +9 -0
- package/src/blueprints/planning/functions/update-tasks.ts +45 -0
- package/src/blueprints/planning/index.ts +3 -4
- package/src/blueprints/project/blueprint.conversations.json +1 -0
- package/src/blueprints/project/blueprint.test.ts +715 -0
- package/src/blueprints/project/blueprint.ts +64 -0
- package/src/blueprints/project/functions/add-artifact.ts +30 -0
- package/src/blueprints/project/functions/agent.ts +69 -0
- package/src/blueprints/project/functions/definitions.ts +92 -0
- package/src/blueprints/project/functions/get-context.ts +46 -0
- package/src/blueprints/project/functions/index.ts +14 -0
- package/src/blueprints/project/functions/qualifier.ts +90 -0
- package/src/blueprints/project/index.ts +6 -0
- package/src/blueprints/project-wizard/blueprint.ts +52 -0
- package/src/blueprints/project-wizard/functions/create-project.ts +33 -0
- package/src/blueprints/project-wizard/functions/definitions.ts +64 -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 +159 -0
- package/src/blueprints/project-wizard/index.ts +6 -0
- package/src/blueprints/testing.ts +23 -8
- package/src/blueprints/websearch/blueprint.conversations.json +1 -0
- package/src/blueprints/websearch/blueprint.test.ts +39 -0
- package/src/blueprints/websearch/blueprint.ts +30 -0
- 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 +3 -4
- package/src/blueprints/websearch/{websearch-toolkit.ts → toolkit.ts} +6 -1
- package/src/crud/graph.test.ts +13 -38
- package/src/crud/graph.ts +33 -41
- package/src/errors.ts +25 -0
- package/src/functions/READ_THIS.md +5 -0
- package/src/functions/agent/definitions.ts +53 -0
- package/src/functions/agent/index.ts +3 -5
- package/src/functions/agent/prompt.conversations.json +1 -0
- package/src/functions/agent/prompt.test.ts +83 -0
- package/src/functions/agent/prompt.ts +211 -102
- package/src/functions/index.ts +0 -6
- package/src/index.ts +2 -2
- package/src/sync/sync.ts +52 -33
- package/src/testing/index.ts +2 -1
- package/src/testing/plugins.tsx +79 -0
- package/src/toolkits/WebToolkit.ts +33 -0
- package/src/toolkits/index.ts +1 -2
- package/src/types/Agent.ts +239 -0
- package/src/types/Chat.ts +63 -0
- package/src/types/McpServer.ts +37 -0
- package/src/types/Memory.ts +24 -0
- package/src/types/Plan.ts +110 -0
- package/src/types/index.ts +9 -0
- package/dist/lib/browser/index.mjs +0 -2777
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -2778
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/types/src/blueprints/design/design-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/design/design-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/design/design-blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/design/design-blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/design/index.d.ts +0 -3
- package/dist/types/src/blueprints/design/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts +0 -18
- package/dist/types/src/blueprints/discord/discord-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts +0 -18
- package/dist/types/src/blueprints/linear/linear-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/planning/planning-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/planning/planning-blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/planning/planning-blueprint.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/research-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/research/research-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/research/research-blueprint.test.d.ts +0 -2
- package/dist/types/src/blueprints/research/research-blueprint.test.d.ts.map +0 -1
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/websearch/websearch-blueprint.d.ts.map +0 -1
- package/dist/types/src/blueprints/websearch/websearch-toolkit.d.ts.map +0 -1
- package/dist/types/src/experimental/feed.test.d.ts +0 -2
- package/dist/types/src/experimental/feed.test.d.ts.map +0 -1
- package/dist/types/src/functions/discord/fetch-messages.d.ts.map +0 -1
- package/dist/types/src/functions/discord/fetch-messages.test.d.ts.map +0 -1
- package/dist/types/src/functions/discord/index.d.ts +0 -12
- package/dist/types/src/functions/discord/index.d.ts.map +0 -1
- package/dist/types/src/functions/document/index.d.ts +0 -13
- package/dist/types/src/functions/document/index.d.ts.map +0 -1
- package/dist/types/src/functions/document/read.d.ts +0 -7
- package/dist/types/src/functions/document/read.d.ts.map +0 -1
- package/dist/types/src/functions/document/update.d.ts +0 -6
- package/dist/types/src/functions/document/update.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +0 -173
- 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 -174
- package/dist/types/src/functions/entity-extraction/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 -3
- 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/functions/github/fetch-prs.d.ts +0 -6
- package/dist/types/src/functions/github/fetch-prs.d.ts.map +0 -1
- package/dist/types/src/functions/linear/index.d.ts +0 -9
- package/dist/types/src/functions/linear/index.d.ts.map +0 -1
- package/dist/types/src/functions/linear/linear.test.d.ts.map +0 -1
- package/dist/types/src/functions/linear/sync-issues.d.ts +0 -12
- package/dist/types/src/functions/linear/sync-issues.d.ts.map +0 -1
- package/dist/types/src/functions/research/document-create.d.ts +0 -9
- package/dist/types/src/functions/research/document-create.d.ts.map +0 -1
- package/dist/types/src/functions/research/index.d.ts +0 -21
- package/dist/types/src/functions/research/index.d.ts.map +0 -1
- package/dist/types/src/functions/research/research-graph.d.ts +0 -18
- package/dist/types/src/functions/research/research-graph.d.ts.map +0 -1
- package/dist/types/src/functions/research/research.d.ts +0 -14
- package/dist/types/src/functions/research/research.d.ts.map +0 -1
- package/dist/types/src/functions/research/research.test.d.ts +0 -2
- package/dist/types/src/functions/research/research.test.d.ts.map +0 -1
- package/dist/types/src/functions/research/types.d.ts +0 -6
- package/dist/types/src/functions/research/types.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/index.d.ts +0 -15
- package/dist/types/src/functions/tasks/index.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/read.d.ts +0 -7
- package/dist/types/src/functions/tasks/read.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/task-list.d.ts +0 -74
- package/dist/types/src/functions/tasks/task-list.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/task-list.test.d.ts +0 -2
- package/dist/types/src/functions/tasks/task-list.test.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/update.d.ts +0 -9
- package/dist/types/src/functions/tasks/update.d.ts.map +0 -1
- package/dist/types/src/plugins.d.ts +0 -19
- package/dist/types/src/plugins.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337321991.d.ts +0 -38
- package/dist/types/src/testing/data/exa-search-1748337321991.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337331526.d.ts +0 -37
- package/dist/types/src/testing/data/exa-search-1748337331526.d.ts.map +0 -1
- package/dist/types/src/testing/data/exa-search-1748337344119.d.ts +0 -58
- package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/testing/data/index.d.ts +0 -3
- package/dist/types/src/testing/data/index.d.ts.map +0 -1
- package/dist/types/src/toolkits/AssistantToolkit.d.ts +0 -17
- package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +0 -1
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +0 -2
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +0 -1
- package/dist/types/src/toolkits/SystemToolkit.d.ts +0 -67
- package/dist/types/src/toolkits/SystemToolkit.d.ts.map +0 -1
- package/src/blueprints/design/design-blueprint.test.ts +0 -103
- package/src/blueprints/design/design-blueprint.ts +0 -33
- package/src/blueprints/design/index.ts +0 -7
- package/src/blueprints/discord/discord-blueprint.ts +0 -34
- package/src/blueprints/linear/linear-blueprint.ts +0 -35
- package/src/blueprints/planning/planning-blueprint.test.ts +0 -124
- package/src/blueprints/planning/planning-blueprint.ts +0 -98
- package/src/blueprints/research/index.ts +0 -7
- package/src/blueprints/research/research-blueprint.test.ts +0 -7
- package/src/blueprints/research/research-blueprint.ts +0 -53
- package/src/blueprints/websearch/websearch-blueprint.ts +0 -20
- package/src/experimental/feed.test.ts +0 -111
- package/src/functions/discord/fetch-messages.test.ts +0 -58
- package/src/functions/discord/fetch-messages.ts +0 -252
- package/src/functions/discord/index.ts +0 -9
- package/src/functions/document/index.ts +0 -12
- package/src/functions/document/read.ts +0 -29
- package/src/functions/document/update.ts +0 -30
- package/src/functions/entity-extraction/entity-extraction.conversations.json +0 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +0 -92
- package/src/functions/entity-extraction/entity-extraction.ts +0 -165
- package/src/functions/entity-extraction/index.ts +0 -9
- package/src/functions/exa/exa.ts +0 -37
- package/src/functions/exa/index.ts +0 -6
- package/src/functions/exa/mock.ts +0 -71
- package/src/functions/github/fetch-prs.ts +0 -30
- package/src/functions/linear/index.ts +0 -9
- package/src/functions/linear/linear.test.ts +0 -83
- package/src/functions/research/document-create.ts +0 -75
- package/src/functions/research/index.ts +0 -14
- package/src/functions/research/research-graph.ts +0 -47
- package/src/functions/research/research-instructions.tpl +0 -106
- package/src/functions/research/research.conversations.json +0 -1
- package/src/functions/research/research.test.ts +0 -179
- package/src/functions/research/research.ts +0 -190
- package/src/functions/research/types.ts +0 -26
- package/src/functions/tasks/index.ts +0 -11
- package/src/functions/tasks/read.ts +0 -34
- package/src/functions/tasks/task-list.test.ts +0 -99
- package/src/functions/tasks/task-list.ts +0 -165
- package/src/functions/tasks/update.ts +0 -52
- package/src/plugins.tsx +0 -68
- package/src/testing/data/exa-search-1748337321991.ts +0 -131
- package/src/testing/data/exa-search-1748337331526.ts +0 -144
- package/src/testing/data/exa-search-1748337344119.ts +0 -133
- package/src/testing/data/index.ts +0 -11
- package/src/toolkits/AssistantToolkit.conversations.json +0 -1
- package/src/toolkits/AssistantToolkit.test.ts +0 -88
- package/src/toolkits/AssistantToolkit.ts +0 -47
- package/src/toolkits/SystemToolkit.ts +0 -231
- /package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.d.ts +0 -0
- /package/dist/types/src/{functions/linear → blueprints/linear/functions}/linear.test.d.ts +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TagRemove
|
|
3
|
+
} from "./chunk-CVUA23QI.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-QTKYDJAW.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
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/blueprints/testing.ts
|
|
4
|
+
import * as Arr from "effect/Array";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import { pipe } from "effect/Function";
|
|
7
|
+
import { ConsolePrinter } from "@dxos/ai";
|
|
8
|
+
import { AiContextService, GenerationObserver } from "@dxos/assistant";
|
|
9
|
+
import { Database, Ref } from "@dxos/echo";
|
|
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* (session, steps) {
|
|
13
|
+
for (const { test, ...props } of steps) {
|
|
14
|
+
yield* session.createRequest({
|
|
15
|
+
...props,
|
|
16
|
+
observer: GenerationObserver.fromPrinter(new ConsolePrinter({
|
|
17
|
+
mode: "json"
|
|
18
|
+
}))
|
|
19
|
+
});
|
|
20
|
+
const messages = yield* Effect.promise(() => session.getHistory());
|
|
21
|
+
log.info("conversation", {
|
|
22
|
+
messages
|
|
23
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 22, S: this });
|
|
24
|
+
if (test) {
|
|
25
|
+
yield* Effect.promise(() => test());
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
var addBlueprints = Effect.fnUntraced(function* (blueprints) {
|
|
30
|
+
yield* AiContextService.bindContext({
|
|
31
|
+
blueprints: yield* pipe(blueprints, Arr.map((blueprint) => blueprint.make()), Effect.forEach(Database.add), Effect.map(Arr.map(Ref.make)))
|
|
32
|
+
});
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
// src/testing/plugins.tsx
|
|
36
|
+
import * as Schema from "effect/Schema";
|
|
37
|
+
import React from "react";
|
|
38
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
39
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
40
|
+
import { Format, Type } from "@dxos/echo";
|
|
41
|
+
import { Card } from "@dxos/react-ui";
|
|
42
|
+
import { Syntax } from "@dxos/react-ui-syntax-highlighter";
|
|
43
|
+
var MapSchema = Schema.Struct({
|
|
44
|
+
coordinates: Format.GeoPoint
|
|
45
|
+
}).pipe(Type.object({
|
|
46
|
+
typename: "com.example.type.map",
|
|
47
|
+
version: "0.1.0"
|
|
48
|
+
}));
|
|
49
|
+
var isImage = (data) => false;
|
|
50
|
+
var capabilities = [
|
|
51
|
+
Capability.contributes(Capabilities.ReactSurface, Surface.create({
|
|
52
|
+
id: "plugin-image",
|
|
53
|
+
role: "card--content",
|
|
54
|
+
filter: (data) => isImage(data.value),
|
|
55
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement("img", {
|
|
56
|
+
className: "grow object-cover",
|
|
57
|
+
src: `data:image/jpeg;base64,${data.value.source.data}`,
|
|
58
|
+
alt: data.value.prompt ?? `Generated image [id=${data.value.id}]`
|
|
59
|
+
}))
|
|
60
|
+
})),
|
|
61
|
+
Capability.contributes(Capabilities.ReactSurface, Surface.create({
|
|
62
|
+
id: "plugin-default",
|
|
63
|
+
role: "card--content",
|
|
64
|
+
position: "fallback",
|
|
65
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement(Syntax.Root, {
|
|
66
|
+
data
|
|
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)))))
|
|
68
|
+
}))
|
|
69
|
+
];
|
|
70
|
+
export {
|
|
71
|
+
MapSchema,
|
|
72
|
+
addBlueprints,
|
|
73
|
+
capabilities,
|
|
74
|
+
runSteps
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 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 { AiContextService, type AiSession, type AiSessionRunProps, GenerationObserver } from '@dxos/assistant';\nimport type { Definition } 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: 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
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UpdateBlueprints
|
|
3
|
+
} from "./chunk-YSYNXOZA.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 } from "@dxos/compute";
|
|
9
|
+
import { Operation } from "@dxos/compute";
|
|
10
|
+
var update_blueprints_default = UpdateBlueprints.pipe(Operation.withHandler(Effect.fnUntraced(function* () {
|
|
11
|
+
const registry = yield* Blueprint.RegistryService;
|
|
12
|
+
yield* registry.updateBlueprints();
|
|
13
|
+
})));
|
|
14
|
+
export {
|
|
15
|
+
update_blueprints_default as default
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=update-blueprints-K7A5SHBZ.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 } from '@dxos/compute';\nimport { 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,iBAAiB;AAC1B,SAASC,iBAAiB;AAI1B,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-P5LAPHCG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Agent_exports,
|
|
6
|
+
Plan_exports
|
|
7
|
+
} from "./chunk-SVI25Z2Y.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-UGGHWXT5.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,EAAE,MAAM,eAAe,CAAC;AAiG1C,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,60 @@
|
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Blueprint } from '@dxos/compute';
|
|
3
|
+
import { Operation } from '@dxos/compute';
|
|
4
|
+
import { Database } from '@dxos/echo';
|
|
5
|
+
export declare const QueryBlueprints: Operation.Definition<{}, readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
6
|
+
readonly key: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly description?: string | undefined;
|
|
9
|
+
readonly instructions: {
|
|
10
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
readonly content: string;
|
|
13
|
+
}>;
|
|
14
|
+
readonly inputs?: readonly {
|
|
15
|
+
readonly name: string;
|
|
16
|
+
readonly kind?: "context" | "function" | "pass-through" | "query" | "resolver" | "retriever" | "schema" | "value" | undefined;
|
|
17
|
+
readonly default?: any;
|
|
18
|
+
readonly function?: string | undefined;
|
|
19
|
+
}[] | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
22
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
23
|
+
readonly mcpServers?: readonly {
|
|
24
|
+
readonly url: string;
|
|
25
|
+
readonly protocol: "http" | "sse";
|
|
26
|
+
}[] | undefined;
|
|
27
|
+
})[], Blueprint.RegistryService>;
|
|
28
|
+
export declare const EnableBlueprints: Operation.Definition<{
|
|
29
|
+
readonly keys: readonly string[];
|
|
30
|
+
}, {
|
|
31
|
+
readonly enabled: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
32
|
+
readonly key: string;
|
|
33
|
+
readonly name: string;
|
|
34
|
+
readonly description?: string | undefined;
|
|
35
|
+
readonly instructions: {
|
|
36
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
37
|
+
readonly name?: string | undefined;
|
|
38
|
+
readonly content: string;
|
|
39
|
+
}>;
|
|
40
|
+
readonly inputs?: readonly {
|
|
41
|
+
readonly name: string;
|
|
42
|
+
readonly kind?: "context" | "function" | "pass-through" | "query" | "resolver" | "retriever" | "schema" | "value" | undefined;
|
|
43
|
+
readonly default?: any;
|
|
44
|
+
readonly function?: string | undefined;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
};
|
|
47
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
48
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
49
|
+
readonly mcpServers?: readonly {
|
|
50
|
+
readonly url: string;
|
|
51
|
+
readonly protocol: "http" | "sse";
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
})[];
|
|
54
|
+
readonly rejected: readonly {
|
|
55
|
+
readonly key: string;
|
|
56
|
+
readonly reason: string;
|
|
57
|
+
}[];
|
|
58
|
+
}, AiContextService | Blueprint.RegistryService | Database.Service>;
|
|
59
|
+
export declare const UpdateBlueprints: Operation.Definition<{}, void, Blueprint.RegistryService | Database.Service>;
|
|
60
|
+
//# 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,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,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,36 @@
|
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Blueprint } from '@dxos/compute';
|
|
3
|
+
import { Operation } from '@dxos/compute';
|
|
4
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
5
|
+
readonly keys: readonly string[];
|
|
6
|
+
}, {
|
|
7
|
+
readonly enabled: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
8
|
+
readonly key: string;
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly description?: string | undefined;
|
|
11
|
+
readonly instructions: {
|
|
12
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
13
|
+
readonly name?: string | undefined;
|
|
14
|
+
readonly content: string;
|
|
15
|
+
}>;
|
|
16
|
+
readonly inputs?: readonly {
|
|
17
|
+
readonly name: string;
|
|
18
|
+
readonly kind?: "context" | "function" | "pass-through" | "query" | "resolver" | "retriever" | "schema" | "value" | undefined;
|
|
19
|
+
readonly default?: any;
|
|
20
|
+
readonly function?: string | undefined;
|
|
21
|
+
}[] | undefined;
|
|
22
|
+
};
|
|
23
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
24
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
25
|
+
readonly mcpServers?: readonly {
|
|
26
|
+
readonly url: string;
|
|
27
|
+
readonly protocol: "http" | "sse";
|
|
28
|
+
}[] | undefined;
|
|
29
|
+
})[];
|
|
30
|
+
readonly rejected: readonly {
|
|
31
|
+
readonly key: string;
|
|
32
|
+
readonly reason: string;
|
|
33
|
+
}[];
|
|
34
|
+
}, AiContextService | Blueprint.RegistryService | import("@dxos/echo/Database").Service>>;
|
|
35
|
+
export default _default;
|
|
36
|
+
//# 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,MAAM,eAAe,CAAC;AAC1C,OAAO,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,27 @@
|
|
|
1
|
+
import { Blueprint } from '@dxos/compute';
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{}, readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
4
|
+
readonly key: string;
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly description?: string | undefined;
|
|
7
|
+
readonly instructions: {
|
|
8
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
9
|
+
readonly name?: string | undefined;
|
|
10
|
+
readonly content: string;
|
|
11
|
+
}>;
|
|
12
|
+
readonly inputs?: readonly {
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly kind?: "context" | "function" | "pass-through" | "query" | "resolver" | "retriever" | "schema" | "value" | undefined;
|
|
15
|
+
readonly default?: any;
|
|
16
|
+
readonly function?: string | undefined;
|
|
17
|
+
}[] | undefined;
|
|
18
|
+
};
|
|
19
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
20
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
21
|
+
readonly mcpServers?: readonly {
|
|
22
|
+
readonly url: string;
|
|
23
|
+
readonly protocol: "http" | "sse";
|
|
24
|
+
}[] | undefined;
|
|
25
|
+
})[], Blueprint.RegistryService>>;
|
|
26
|
+
export default _default;
|
|
27
|
+
//# 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,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Blueprint } from '@dxos/compute';
|
|
2
|
+
import { Operation } from '@dxos/compute';
|
|
3
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{}, void, Blueprint.RegistryService | import("@dxos/echo/Database").Service>>;
|
|
4
|
+
export default _default;
|
|
5
|
+
//# 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,MAAM,eAAe,CAAC;AAC1C,OAAO,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"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.test.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/browser/blueprint.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/browser/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.test.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/database/blueprint.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
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>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=context-add.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
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>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=context-remove.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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;;;;;;;wCA4FhB,CAAC;AAEH,eAAO,MAAM,IAAI;;6BAkBf,CAAC;AAEH,eAAO,MAAM,YAAY;;;6BAiBvB,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;6BAgBvB,CAAC;AAEH,eAAO,MAAM,YAAY;;0BAavB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;0BAkBpB,CAAC;AAEH,eAAO,MAAM,UAAU;;wCAarB,CAAC;AAEH,eAAO,MAAM,UAAU;;0BAgBrB,CAAC;AAEH,eAAO,MAAM,aAAa;;0BAgBxB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;6BAmBzB,CAAC;AAEH,eAAO,MAAM,cAAc;;0BAazB,CAAC;AAEH,eAAO,MAAM,MAAM;;;6BAgBjB,CAAC;AAEH,eAAO,MAAM,SAAS;;;6BAepB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AAEpD,cAAc,eAAe,CAAC;AAE9B,eAAO,MAAM,gBAAgB,yCAc5B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Operation } from '@dxos/compute';
|
|
2
|
+
import { Database, Entity } from '@dxos/echo';
|
|
3
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
|
+
readonly refs: readonly import("@dxos/echo/internal").Ref<Entity.OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>[];
|
|
5
|
+
}, unknown, Database.Service>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=load.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/load.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Operation } from '@dxos/compute';
|
|
2
|
+
import { Database } from '@dxos/echo';
|
|
3
|
+
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
|
+
readonly typename: string;
|
|
5
|
+
readonly data: any;
|
|
6
|
+
}, unknown, Database.Service>>;
|
|
7
|
+
export default _default;
|
|
8
|
+
//# sourceMappingURL=object-create.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-create.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/object-create.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAqB,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Operation } from '@dxos/compute';
|
|
2
|
+
import { Database } from '@dxos/echo';
|
|
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, Database.Service>>;
|
|
6
|
+
export default _default;
|
|
7
|
+
//# sourceMappingURL=object-delete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"object-delete.d.ts","sourceRoot":"","sources":["../../../../../../src/blueprints/database/functions/object-delete.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
|