@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,906 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentPrompt
|
|
3
|
+
} from "./chunk-JN4GARRQ.mjs";
|
|
4
|
+
import {
|
|
5
|
+
DeleteMemory,
|
|
6
|
+
QueryMemories,
|
|
7
|
+
SaveMemory
|
|
8
|
+
} from "./chunk-EJAQUAKM.mjs";
|
|
9
|
+
import {
|
|
10
|
+
EnableBlueprints,
|
|
11
|
+
QueryBlueprints,
|
|
12
|
+
UpdateBlueprints
|
|
13
|
+
} from "./chunk-YSYNXOZA.mjs";
|
|
14
|
+
import {
|
|
15
|
+
AgentRules,
|
|
16
|
+
CreateAgent,
|
|
17
|
+
SyncTriggers
|
|
18
|
+
} from "./chunk-4T3LJGXI.mjs";
|
|
19
|
+
import {
|
|
20
|
+
SyncIssues,
|
|
21
|
+
syncObjects
|
|
22
|
+
} from "./chunk-WIV7ZVRS.mjs";
|
|
23
|
+
import {
|
|
24
|
+
UpdateTasks
|
|
25
|
+
} from "./chunk-P5LAPHCG.mjs";
|
|
26
|
+
import {
|
|
27
|
+
Fetch
|
|
28
|
+
} from "./chunk-WLR3BGO4.mjs";
|
|
29
|
+
import {
|
|
30
|
+
ContextAdd,
|
|
31
|
+
ContextRemove,
|
|
32
|
+
Load,
|
|
33
|
+
ObjectCreate,
|
|
34
|
+
ObjectDelete,
|
|
35
|
+
ObjectUpdate,
|
|
36
|
+
Query,
|
|
37
|
+
RelationCreate,
|
|
38
|
+
RelationDelete,
|
|
39
|
+
SchemaAdd,
|
|
40
|
+
SchemaList,
|
|
41
|
+
TagAdd,
|
|
42
|
+
TagRemove
|
|
43
|
+
} from "./chunk-CVUA23QI.mjs";
|
|
44
|
+
import {
|
|
45
|
+
FetchMessages
|
|
46
|
+
} from "./chunk-VSDP6SRY.mjs";
|
|
47
|
+
import {
|
|
48
|
+
AgentBlueprintHandlers,
|
|
49
|
+
blueprint_default
|
|
50
|
+
} from "./chunk-YXOVSRFU.mjs";
|
|
51
|
+
import {
|
|
52
|
+
AddArtifact,
|
|
53
|
+
AgentWorker,
|
|
54
|
+
GetContext,
|
|
55
|
+
Qualifier
|
|
56
|
+
} from "./chunk-GSG4JGIY.mjs";
|
|
57
|
+
import {
|
|
58
|
+
Agent_exports,
|
|
59
|
+
McpServer_exports,
|
|
60
|
+
Plan_exports
|
|
61
|
+
} from "./chunk-SVI25Z2Y.mjs";
|
|
62
|
+
import {
|
|
63
|
+
Chat_exports
|
|
64
|
+
} from "./chunk-NR3GTWRC.mjs";
|
|
65
|
+
import {
|
|
66
|
+
Memory_exports
|
|
67
|
+
} from "./chunk-KGU725LW.mjs";
|
|
68
|
+
import {
|
|
69
|
+
__export
|
|
70
|
+
} from "./chunk-J5LGTIGS.mjs";
|
|
71
|
+
|
|
72
|
+
// src/blueprints/discord/blueprint.ts
|
|
73
|
+
import { Blueprint } from "@dxos/compute";
|
|
74
|
+
import { Ref } from "@dxos/echo";
|
|
75
|
+
import { Text } from "@dxos/schema";
|
|
76
|
+
import { trim } from "@dxos/util";
|
|
77
|
+
|
|
78
|
+
// src/blueprints/discord/functions/index.ts
|
|
79
|
+
import { OperationHandlerSet } from "@dxos/compute";
|
|
80
|
+
var DiscordHandlers = OperationHandlerSet.lazy(() => import("./fetch-messages-OS74FP76.mjs"));
|
|
81
|
+
|
|
82
|
+
// src/blueprints/discord/blueprint.ts
|
|
83
|
+
var BLUEPRINT_KEY = "org.dxos.blueprint.discord";
|
|
84
|
+
var instructions = trim`
|
|
85
|
+
You are able to fetch messages from Discord servers.
|
|
86
|
+
|
|
87
|
+
Known servers:
|
|
88
|
+
|
|
89
|
+
DXOS serverId: 837138313172353095
|
|
90
|
+
`;
|
|
91
|
+
var make = () => Blueprint.make({
|
|
92
|
+
key: BLUEPRINT_KEY,
|
|
93
|
+
name: "Discord",
|
|
94
|
+
description: "Discord integration.",
|
|
95
|
+
instructions: {
|
|
96
|
+
source: Ref.make(Text.make(instructions))
|
|
97
|
+
},
|
|
98
|
+
tools: Blueprint.toolDefinitions({
|
|
99
|
+
operations: [
|
|
100
|
+
FetchMessages
|
|
101
|
+
]
|
|
102
|
+
})
|
|
103
|
+
});
|
|
104
|
+
var blueprint = {
|
|
105
|
+
key: BLUEPRINT_KEY,
|
|
106
|
+
make
|
|
107
|
+
};
|
|
108
|
+
var blueprint_default2 = blueprint;
|
|
109
|
+
|
|
110
|
+
// src/blueprints/linear/blueprint.ts
|
|
111
|
+
import { Blueprint as Blueprint2 } from "@dxos/compute";
|
|
112
|
+
import { Ref as Ref2 } from "@dxos/echo";
|
|
113
|
+
import { Text as Text2 } from "@dxos/schema";
|
|
114
|
+
import { trim as trim2 } from "@dxos/util";
|
|
115
|
+
|
|
116
|
+
// src/blueprints/linear/functions/index.ts
|
|
117
|
+
import { OperationHandlerSet as OperationHandlerSet2 } from "@dxos/compute";
|
|
118
|
+
var LinearHandlers = OperationHandlerSet2.lazy(() => import("./sync-issues-A2RJNPEF.mjs"));
|
|
119
|
+
|
|
120
|
+
// src/blueprints/linear/blueprint.ts
|
|
121
|
+
var BLUEPRINT_KEY2 = "org.dxos.blueprint.linear";
|
|
122
|
+
var instructions2 = trim2`
|
|
123
|
+
You are able to sync Linear workspaces.
|
|
124
|
+
Sometimes sync does not complete in one go and you need to call the function again.
|
|
125
|
+
|
|
126
|
+
Known workspaces:
|
|
127
|
+
|
|
128
|
+
DXOS teamId: 1127c63a-6f77-4725-9229-50f6cd47321c
|
|
129
|
+
`;
|
|
130
|
+
var make2 = () => Blueprint2.make({
|
|
131
|
+
key: BLUEPRINT_KEY2,
|
|
132
|
+
name: "Linear",
|
|
133
|
+
description: "Syncs Linear workspaces.",
|
|
134
|
+
instructions: {
|
|
135
|
+
source: Ref2.make(Text2.make(instructions2))
|
|
136
|
+
},
|
|
137
|
+
tools: Blueprint2.toolDefinitions({
|
|
138
|
+
operations: [
|
|
139
|
+
SyncIssues
|
|
140
|
+
]
|
|
141
|
+
})
|
|
142
|
+
});
|
|
143
|
+
var blueprint2 = {
|
|
144
|
+
key: BLUEPRINT_KEY2,
|
|
145
|
+
make: make2
|
|
146
|
+
};
|
|
147
|
+
var blueprint_default3 = blueprint2;
|
|
148
|
+
|
|
149
|
+
// src/blueprints/planning/blueprint.ts
|
|
150
|
+
import { Blueprint as Blueprint3 } from "@dxos/compute";
|
|
151
|
+
|
|
152
|
+
// src/blueprints/planning/functions/index.ts
|
|
153
|
+
import { OperationHandlerSet as OperationHandlerSet3 } from "@dxos/compute";
|
|
154
|
+
var PlanningHandlers = OperationHandlerSet3.lazy(() => import("./update-tasks-UGGHWXT5.mjs"));
|
|
155
|
+
|
|
156
|
+
// src/blueprints/planning/blueprint.ts
|
|
157
|
+
var BLUEPRINT_KEY3 = "org.dxos.blueprint.planning";
|
|
158
|
+
var make3 = () => Blueprint3.make({
|
|
159
|
+
key: BLUEPRINT_KEY3,
|
|
160
|
+
name: "Planning",
|
|
161
|
+
description: "Plans and tracks complex tasks with artifact management.",
|
|
162
|
+
tools: Blueprint3.toolDefinitions({
|
|
163
|
+
operations: [
|
|
164
|
+
UpdateTasks
|
|
165
|
+
]
|
|
166
|
+
})
|
|
167
|
+
});
|
|
168
|
+
var blueprint3 = {
|
|
169
|
+
key: BLUEPRINT_KEY3,
|
|
170
|
+
make: make3
|
|
171
|
+
};
|
|
172
|
+
var blueprint_default4 = blueprint3;
|
|
173
|
+
|
|
174
|
+
// src/blueprints/websearch/blueprint.ts
|
|
175
|
+
import { Blueprint as Blueprint4 } from "@dxos/compute";
|
|
176
|
+
import { Ref as Ref3 } from "@dxos/echo";
|
|
177
|
+
import { Text as Text3 } from "@dxos/schema";
|
|
178
|
+
|
|
179
|
+
// src/blueprints/websearch/functions/index.ts
|
|
180
|
+
import { OperationHandlerSet as OperationHandlerSet4 } from "@dxos/compute";
|
|
181
|
+
var WebSearchHandlers = OperationHandlerSet4.lazy(() => import("./fetch-KHMHV7JR.mjs"));
|
|
182
|
+
|
|
183
|
+
// src/blueprints/websearch/blueprint.ts
|
|
184
|
+
var BLUEPRINT_KEY4 = "org.dxos.blueprint.web-search";
|
|
185
|
+
var make4 = () => Blueprint4.make({
|
|
186
|
+
key: BLUEPRINT_KEY4,
|
|
187
|
+
name: "Web Search",
|
|
188
|
+
description: "Search the web.",
|
|
189
|
+
agentCanEnable: true,
|
|
190
|
+
instructions: {
|
|
191
|
+
source: Ref3.make(Text3.make())
|
|
192
|
+
},
|
|
193
|
+
tools: Blueprint4.toolDefinitions({
|
|
194
|
+
operations: [
|
|
195
|
+
Fetch
|
|
196
|
+
],
|
|
197
|
+
tools: [
|
|
198
|
+
"AnthropicWebSearch"
|
|
199
|
+
]
|
|
200
|
+
})
|
|
201
|
+
});
|
|
202
|
+
var blueprint4 = {
|
|
203
|
+
key: BLUEPRINT_KEY4,
|
|
204
|
+
make: make4
|
|
205
|
+
};
|
|
206
|
+
var blueprint_default5 = blueprint4;
|
|
207
|
+
|
|
208
|
+
// src/blueprints/websearch/toolkit.ts
|
|
209
|
+
import * as AnthropicTool from "@effect/ai-anthropic/AnthropicTool";
|
|
210
|
+
import * as Toolkit from "@effect/ai/Toolkit";
|
|
211
|
+
import * as Layer from "effect/Layer";
|
|
212
|
+
import { OpaqueToolkit } from "@dxos/ai";
|
|
213
|
+
var WebSearchToolkit = Toolkit.make(AnthropicTool.WebSearch_20250305({}));
|
|
214
|
+
var WebSearchToolkitOpaque = OpaqueToolkit.make(WebSearchToolkit, Layer.empty);
|
|
215
|
+
|
|
216
|
+
// src/blueprints/browser/blueprint.ts
|
|
217
|
+
import { Blueprint as Blueprint5 } from "@dxos/compute";
|
|
218
|
+
import { Ref as Ref4 } from "@dxos/echo";
|
|
219
|
+
import { Text as Text4 } from "@dxos/schema";
|
|
220
|
+
import { trim as trim3 } from "@dxos/util";
|
|
221
|
+
var BLUEPRINT_KEY5 = "org.dxos.blueprint.browser";
|
|
222
|
+
var instructions3 = trim3`
|
|
223
|
+
You are able to connect and use a virtual browser with persistent session.
|
|
224
|
+
Browser tools are provided via MCP.
|
|
225
|
+
`;
|
|
226
|
+
var make6 = () => Blueprint5.make({
|
|
227
|
+
key: BLUEPRINT_KEY5,
|
|
228
|
+
name: "Browser",
|
|
229
|
+
description: "Access to a real isolated browser.",
|
|
230
|
+
agentCanEnable: true,
|
|
231
|
+
instructions: {
|
|
232
|
+
source: Ref4.make(Text4.make(instructions3))
|
|
233
|
+
},
|
|
234
|
+
mcpServers: [
|
|
235
|
+
{
|
|
236
|
+
// https://dash.cloudflare.com/950816f3f59b079880a1ae33fb0ec320/workers/services/view/playwright-mcp-example/production
|
|
237
|
+
url: "https://playwright-mcp-example.dxos.workers.dev/sse",
|
|
238
|
+
protocol: "sse"
|
|
239
|
+
}
|
|
240
|
+
]
|
|
241
|
+
});
|
|
242
|
+
var blueprint5 = {
|
|
243
|
+
key: BLUEPRINT_KEY5,
|
|
244
|
+
make: make6
|
|
245
|
+
};
|
|
246
|
+
var blueprint_default6 = blueprint5;
|
|
247
|
+
|
|
248
|
+
// src/blueprints/database/blueprint.ts
|
|
249
|
+
import { Blueprint as Blueprint6 } from "@dxos/compute";
|
|
250
|
+
import { Ref as Ref5 } from "@dxos/echo";
|
|
251
|
+
import { Text as Text5 } from "@dxos/schema";
|
|
252
|
+
import { trim as trim4 } from "@dxos/util";
|
|
253
|
+
|
|
254
|
+
// src/blueprints/database/functions/index.ts
|
|
255
|
+
import { OperationHandlerSet as OperationHandlerSet5 } from "@dxos/compute";
|
|
256
|
+
var DatabaseHandlers = OperationHandlerSet5.lazy(() => import("./context-add-IIDPRRVB.mjs"), () => import("./context-remove-RDYV4PD4.mjs"), () => import("./load-LI7HHVD6.mjs"), () => import("./object-create-52Z7YKIA.mjs"), () => import("./object-delete-I266YAXI.mjs"), () => import("./object-update-HY4GI7LA.mjs"), () => import("./query-B3NOYFCK.mjs"), () => import("./relation-create-Z3NGW4VU.mjs"), () => import("./relation-delete-LXY7W2YO.mjs"), () => import("./schema-add-4TXJO2V7.mjs"), () => import("./schema-list-Q7HRRKGR.mjs"), () => import("./tag-add-5NOHUTIE.mjs"), () => import("./tag-remove-QTKYDJAW.mjs"));
|
|
257
|
+
|
|
258
|
+
// src/blueprints/database/blueprint.ts
|
|
259
|
+
var BLUEPRINT_KEY6 = "org.dxos.blueprint.database";
|
|
260
|
+
var instructions4 = trim4`
|
|
261
|
+
You can query, create, update, and delete objects in ECHO.
|
|
262
|
+
You can manage schemas, relations, tags, and add objects to the chat context.
|
|
263
|
+
`;
|
|
264
|
+
var make7 = () => Blueprint6.make({
|
|
265
|
+
key: BLUEPRINT_KEY6,
|
|
266
|
+
name: "Database",
|
|
267
|
+
description: "Query and manipulate objects in the ECHO database.",
|
|
268
|
+
agentCanEnable: true,
|
|
269
|
+
instructions: {
|
|
270
|
+
source: Ref5.make(Text5.make(instructions4))
|
|
271
|
+
},
|
|
272
|
+
tools: Blueprint6.toolDefinitions({
|
|
273
|
+
operations: [
|
|
274
|
+
ContextAdd,
|
|
275
|
+
ContextRemove,
|
|
276
|
+
Load,
|
|
277
|
+
ObjectCreate,
|
|
278
|
+
ObjectDelete,
|
|
279
|
+
ObjectUpdate,
|
|
280
|
+
Query,
|
|
281
|
+
RelationCreate,
|
|
282
|
+
RelationDelete,
|
|
283
|
+
SchemaAdd,
|
|
284
|
+
SchemaList,
|
|
285
|
+
TagAdd,
|
|
286
|
+
TagRemove
|
|
287
|
+
]
|
|
288
|
+
})
|
|
289
|
+
});
|
|
290
|
+
var blueprint6 = {
|
|
291
|
+
key: BLUEPRINT_KEY6,
|
|
292
|
+
make: make7
|
|
293
|
+
};
|
|
294
|
+
var blueprint_default7 = blueprint6;
|
|
295
|
+
|
|
296
|
+
// src/blueprints/memory/blueprint.ts
|
|
297
|
+
import { Blueprint as Blueprint7 } from "@dxos/compute";
|
|
298
|
+
import { Ref as Ref6 } from "@dxos/echo";
|
|
299
|
+
import { Text as Text6 } from "@dxos/schema";
|
|
300
|
+
import { trim as trim5 } from "@dxos/util";
|
|
301
|
+
|
|
302
|
+
// src/blueprints/memory/functions/index.ts
|
|
303
|
+
import { OperationHandlerSet as OperationHandlerSet6 } from "@dxos/compute";
|
|
304
|
+
var MemoryHandlers = OperationHandlerSet6.lazy(() => import("./save-GWAPLT3Z.mjs"), () => import("./query-U56GNEV6.mjs"), () => import("./delete-J3PMWP7Z.mjs"));
|
|
305
|
+
|
|
306
|
+
// src/blueprints/memory/blueprint.ts
|
|
307
|
+
var BLUEPRINT_KEY7 = "org.dxos.blueprint.memory";
|
|
308
|
+
var instructions5 = trim5`
|
|
309
|
+
You have the ability to save and recall memories.
|
|
310
|
+
Memories are persistent knowledge units stored in the database.
|
|
311
|
+
Use memories to remember facts, user preferences, decisions, and any knowledge that should persist across conversations.
|
|
312
|
+
|
|
313
|
+
When the user asks you to remember something, save it as a memory with a descriptive title.
|
|
314
|
+
When the user asks about something you might have stored, query your memories first.
|
|
315
|
+
You can also delete outdated or incorrect memories.
|
|
316
|
+
`;
|
|
317
|
+
var make8 = () => Blueprint7.make({
|
|
318
|
+
key: BLUEPRINT_KEY7,
|
|
319
|
+
name: "Memory",
|
|
320
|
+
description: "Persistent memory storage and retrieval.",
|
|
321
|
+
agentCanEnable: true,
|
|
322
|
+
instructions: {
|
|
323
|
+
source: Ref6.make(Text6.make(instructions5))
|
|
324
|
+
},
|
|
325
|
+
tools: Blueprint7.toolDefinitions({
|
|
326
|
+
operations: [
|
|
327
|
+
SaveMemory,
|
|
328
|
+
QueryMemories,
|
|
329
|
+
DeleteMemory
|
|
330
|
+
]
|
|
331
|
+
})
|
|
332
|
+
});
|
|
333
|
+
var blueprint7 = {
|
|
334
|
+
key: BLUEPRINT_KEY7,
|
|
335
|
+
make: make8
|
|
336
|
+
};
|
|
337
|
+
var blueprint_default8 = blueprint7;
|
|
338
|
+
|
|
339
|
+
// src/blueprints/automation/blueprint.ts
|
|
340
|
+
import { Blueprint as Blueprint8 } from "@dxos/compute";
|
|
341
|
+
import { Trigger } from "@dxos/compute";
|
|
342
|
+
import { Operation } from "@dxos/compute";
|
|
343
|
+
import { Ref as Ref7 } from "@dxos/echo";
|
|
344
|
+
import { Text as Text7 } from "@dxos/schema";
|
|
345
|
+
import { trim as trim6 } from "@dxos/util";
|
|
346
|
+
var BLUEPRINT_KEY8 = "dxos.org/blueprint/automation";
|
|
347
|
+
var instructions6 = trim6`
|
|
348
|
+
Automation allows you to automatically initiate actions based on events.
|
|
349
|
+
Automations are configured by creating a trigger that references a function.
|
|
350
|
+
Whenever event that matches the trigger occurs, the function is invoked.
|
|
351
|
+
|
|
352
|
+
## Configuration
|
|
353
|
+
|
|
354
|
+
Triggers are configured by the properties of the Trigger object.
|
|
355
|
+
- enabled: Must be true for trigger to run.
|
|
356
|
+
- spec: Events that the trigger matches.
|
|
357
|
+
- function: Ref to a ${Operation.PersistentOperation.typename} object that will be invoked. Query the functions present in the space first, and reference them in the trigger.
|
|
358
|
+
- input: The spec of the input data that will be passed to the function.
|
|
359
|
+
|
|
360
|
+
## Input patterns
|
|
361
|
+
|
|
362
|
+
Input to the invoked function is defined by the input property of the Trigger object.
|
|
363
|
+
It's an object that supports constants or template strings.
|
|
364
|
+
|
|
365
|
+
Example:
|
|
366
|
+
|
|
367
|
+
{
|
|
368
|
+
item: '{{event.item}}',
|
|
369
|
+
instructions: 'Summarize and perform entity-extraction'
|
|
370
|
+
mailbox: { '/': 'dxn:echo:AAA:ZZZ' }
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
## Trigger kinds
|
|
374
|
+
|
|
375
|
+
- Timer: Triggered by a cron schedule.
|
|
376
|
+
- Queue: Subscribes and processes items begginging to end.
|
|
377
|
+
Note: queues are the same as feeds. The queue DXN should be of form: dxn:queue:data:<space-id>:<queue-id>.
|
|
378
|
+
- Subscription: Subscribes and processes database items based on a query.
|
|
379
|
+
|
|
380
|
+
Avoid: email and webhook triggers.
|
|
381
|
+
|
|
382
|
+
## Editing triggers
|
|
383
|
+
|
|
384
|
+
Triggers are represented as objects of type ${Trigger.Trigger.typename}.
|
|
385
|
+
You need access to the Database blueprint to manipulate triggers.
|
|
386
|
+
Read trigger schema before manipulating triggers.
|
|
387
|
+
Having a Trigger object in the database is enough to setup an automation.
|
|
388
|
+
|
|
389
|
+
## Examples
|
|
390
|
+
|
|
391
|
+
Timer:
|
|
392
|
+
|
|
393
|
+
{
|
|
394
|
+
"function": { "/": "dxn:echo:AAA:ZZZ" },
|
|
395
|
+
"enabled": true,
|
|
396
|
+
"spec": {
|
|
397
|
+
"kind": "timer",
|
|
398
|
+
"cron": "*/5 * * * *"
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
Queue:
|
|
403
|
+
|
|
404
|
+
{
|
|
405
|
+
"function": { "/": "dxn:echo:AAA:ZZZ" },
|
|
406
|
+
"enabled": true,
|
|
407
|
+
"spec": {
|
|
408
|
+
"kind": "queue",
|
|
409
|
+
"queue": "dxn:queue:data:XXX:YYY"
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
Subscription:
|
|
414
|
+
|
|
415
|
+
{
|
|
416
|
+
"function": { "/": "dxn:echo:AAA:ZZZ" },
|
|
417
|
+
"enabled": true,
|
|
418
|
+
"spec": {
|
|
419
|
+
"kind": "subscription",
|
|
420
|
+
"query": { "ast": { "type": "select", "filter": { "type": "object", "typename": "dxn:type:org.dxos.type.person" } } }
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
`;
|
|
424
|
+
var make9 = () => Blueprint8.make({
|
|
425
|
+
key: BLUEPRINT_KEY8,
|
|
426
|
+
name: "Triggers",
|
|
427
|
+
description: "Trigger management and automation.",
|
|
428
|
+
instructions: {
|
|
429
|
+
source: Ref7.make(Text7.make(instructions6))
|
|
430
|
+
}
|
|
431
|
+
});
|
|
432
|
+
var blueprint8 = {
|
|
433
|
+
key: BLUEPRINT_KEY8,
|
|
434
|
+
make: make9
|
|
435
|
+
};
|
|
436
|
+
var blueprint_default9 = blueprint8;
|
|
437
|
+
|
|
438
|
+
// src/blueprints/blueprint-manager/blueprint.ts
|
|
439
|
+
import { Blueprint as Blueprint9, Template } from "@dxos/compute";
|
|
440
|
+
import { trim as trim7 } from "@dxos/util";
|
|
441
|
+
|
|
442
|
+
// src/blueprints/blueprint-manager/functions/index.ts
|
|
443
|
+
import { OperationHandlerSet as OperationHandlerSet7 } from "@dxos/compute";
|
|
444
|
+
var BlueprintManagerHandlers = OperationHandlerSet7.lazy(() => import("./query-blueprints-Z576ABT5.mjs"), () => import("./enable-blueprints-LELPQHY5.mjs"), () => import("./update-blueprints-K7A5SHBZ.mjs"));
|
|
445
|
+
|
|
446
|
+
// src/blueprints/blueprint-manager/blueprint.ts
|
|
447
|
+
var BLUEPRINT_KEY9 = "org.dxos.blueprint.blueprint-manager";
|
|
448
|
+
var make10 = () => Blueprint9.make({
|
|
449
|
+
key: BLUEPRINT_KEY9,
|
|
450
|
+
name: "Blueprint Manager",
|
|
451
|
+
description: "Query and enable blueprints in the current conversation.",
|
|
452
|
+
instructions: Template.make({
|
|
453
|
+
source: trim7`
|
|
454
|
+
You can query available blueprints and enable them in the current conversation.
|
|
455
|
+
Use [query-blueprints] to refresh the list of available blueprints.
|
|
456
|
+
Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.
|
|
457
|
+
Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.
|
|
458
|
+
Only blueprints with agentCanEnable=true can be enabled by the agent.
|
|
459
|
+
|
|
460
|
+
<available_blueprints>
|
|
461
|
+
{{#each blueprints}}
|
|
462
|
+
- {{key}} "{{name}}"{{#if description}} -- {{description}}{{/if}}{{#if agentCanEnable}} [agent-can-enable]{{/if}}
|
|
463
|
+
{{/each}}
|
|
464
|
+
</available_blueprints>
|
|
465
|
+
|
|
466
|
+
NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.
|
|
467
|
+
`,
|
|
468
|
+
inputs: [
|
|
469
|
+
{
|
|
470
|
+
name: "blueprints",
|
|
471
|
+
kind: "function",
|
|
472
|
+
function: QueryBlueprints.meta.key
|
|
473
|
+
}
|
|
474
|
+
]
|
|
475
|
+
}),
|
|
476
|
+
tools: Blueprint9.toolDefinitions({
|
|
477
|
+
operations: [
|
|
478
|
+
QueryBlueprints,
|
|
479
|
+
EnableBlueprints,
|
|
480
|
+
UpdateBlueprints
|
|
481
|
+
]
|
|
482
|
+
})
|
|
483
|
+
});
|
|
484
|
+
var blueprint9 = {
|
|
485
|
+
key: BLUEPRINT_KEY9,
|
|
486
|
+
make: make10
|
|
487
|
+
};
|
|
488
|
+
var blueprint_default10 = blueprint9;
|
|
489
|
+
|
|
490
|
+
// src/blueprints/project-wizard/blueprint.ts
|
|
491
|
+
import { Blueprint as Blueprint10, Template as Template2 } from "@dxos/compute";
|
|
492
|
+
import { trim as trim8 } from "@dxos/util";
|
|
493
|
+
|
|
494
|
+
// src/blueprints/project-wizard/functions/index.ts
|
|
495
|
+
import { OperationHandlerSet as OperationHandlerSet8 } from "@dxos/compute";
|
|
496
|
+
var AgentWizardHandlers = OperationHandlerSet8.lazy(() => import("./create-project-MPAMKQ3T.mjs"), () => import("./project-rules-FLUQQRPB.mjs"), () => import("./sync-triggers-NV4JCRN5.mjs"));
|
|
497
|
+
|
|
498
|
+
// src/blueprints/project-wizard/blueprint.ts
|
|
499
|
+
var BLUEPRINT_KEY10 = "org.dxos.blueprint.agent-wizard";
|
|
500
|
+
var make11 = () => Blueprint10.make({
|
|
501
|
+
key: BLUEPRINT_KEY10,
|
|
502
|
+
name: "Agent Wizard",
|
|
503
|
+
description: "Help the user create a new agent (subscriptions, optional cron timer, sync-triggers after edits).",
|
|
504
|
+
agentCanEnable: true,
|
|
505
|
+
instructions: Template2.make({
|
|
506
|
+
source: trim8`
|
|
507
|
+
You are a wizard that helps the user create a new agent.
|
|
508
|
+
|
|
509
|
+
Agents are goal oriented and autonomously driven.
|
|
510
|
+
Each agent has instructions - the goal of the agent.
|
|
511
|
+
The instructions also typically describe what actions to perform in reaction to events (emails).
|
|
512
|
+
The agent has a number of associated artifacts to work with.
|
|
513
|
+
Agents can subscribe to emails.
|
|
514
|
+
|
|
515
|
+
Agents have a \`cron\` field: when set, the agent runs on a timer on that schedule (standard cron syntax).
|
|
516
|
+
Use \`cron\` when the user wants the agent to run periodically (e.g. "every morning", "once a day", "every 5 minutes").
|
|
517
|
+
Examples: \`0 9 * * *\` for daily at 09:00, or \`*/5 * * * *\` for every 5 minutes.
|
|
518
|
+
Timer triggers bypass the qualifier and invoke the agent worker directly on the schedule.
|
|
519
|
+
|
|
520
|
+
The agent itself is an ECHO object and can be edited like any other object using the database blueprint.
|
|
521
|
+
You can edit the agent's instructions, name, and other properties directly.
|
|
522
|
+
If you edit the agent's \`enabled\` field, \`filterEvents\` field, subscriptions array, or \`cron\` field, you MUST call the sync-triggers function afterward to synchronize the triggers (\`enabled\` is applied to all triggers).
|
|
523
|
+
|
|
524
|
+
IMPORTANT: Before attempting to create an agent call the [agent-rules] tool to get the rules for creating an agent.
|
|
525
|
+
`
|
|
526
|
+
}),
|
|
527
|
+
tools: Blueprint10.toolDefinitions({
|
|
528
|
+
operations: [
|
|
529
|
+
AgentRules,
|
|
530
|
+
CreateAgent,
|
|
531
|
+
SyncTriggers
|
|
532
|
+
]
|
|
533
|
+
})
|
|
534
|
+
});
|
|
535
|
+
var blueprint10 = {
|
|
536
|
+
key: BLUEPRINT_KEY10,
|
|
537
|
+
make: make11
|
|
538
|
+
};
|
|
539
|
+
var blueprint_default11 = blueprint10;
|
|
540
|
+
|
|
541
|
+
// src/crud/graph.ts
|
|
542
|
+
import * as Tool from "@effect/ai/Tool";
|
|
543
|
+
import * as Toolkit2 from "@effect/ai/Toolkit";
|
|
544
|
+
import * as Context from "effect/Context";
|
|
545
|
+
import * as Effect from "effect/Effect";
|
|
546
|
+
import * as Function from "effect/Function";
|
|
547
|
+
import * as Option from "effect/Option";
|
|
548
|
+
import * as Schema from "effect/Schema";
|
|
549
|
+
import * as SchemaAST from "effect/SchemaAST";
|
|
550
|
+
import { ContextQueueService } from "@dxos/compute";
|
|
551
|
+
import { Entity, Filter, Obj, Query as Query2, Type } from "@dxos/echo";
|
|
552
|
+
import { Database } from "@dxos/echo";
|
|
553
|
+
import { isEncodedReference } from "@dxos/echo-protocol";
|
|
554
|
+
import { ReferenceAnnotationId, RelationSourceDXNId, RelationSourceId, RelationTargetDXNId, RelationTargetId, createObject, getTypeAnnotation, getTypeIdentifierAnnotation } from "@dxos/echo/internal";
|
|
555
|
+
import { mapAst } from "@dxos/effect";
|
|
556
|
+
import { DXN, ObjectId } from "@dxos/keys";
|
|
557
|
+
import { log } from "@dxos/log";
|
|
558
|
+
import { deepMapValues, isNonNullable, trim as trim9 } from "@dxos/util";
|
|
559
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/assistant-toolkit/src/crud/graph.ts";
|
|
560
|
+
var Subgraph = Schema.Struct({
|
|
561
|
+
/** Objects and relations. */
|
|
562
|
+
objects: Schema.Array(Schema.Any)
|
|
563
|
+
});
|
|
564
|
+
var findRelatedSchema = async (db, anchor) => {
|
|
565
|
+
const allSchemas = await db.graph.schemaRegistry.query().run();
|
|
566
|
+
return allSchemas.filter((schema) => {
|
|
567
|
+
if (getTypeAnnotation(schema)?.kind !== Entity.Kind.Relation) {
|
|
568
|
+
return false;
|
|
569
|
+
}
|
|
570
|
+
return isSchemaAddressableByDxn(anchor, DXN.parse(getTypeAnnotation(schema).sourceSchema)) || isSchemaAddressableByDxn(anchor, DXN.parse(getTypeAnnotation(schema).targetSchema));
|
|
571
|
+
}).map((schema) => ({
|
|
572
|
+
kind: "relation",
|
|
573
|
+
schema
|
|
574
|
+
}));
|
|
575
|
+
};
|
|
576
|
+
var isSchemaAddressableByDxn = (schema, dxn) => {
|
|
577
|
+
if (getTypeIdentifierAnnotation(schema) === dxn.toString()) {
|
|
578
|
+
return true;
|
|
579
|
+
}
|
|
580
|
+
const t = dxn.asTypeDXN();
|
|
581
|
+
if (t) {
|
|
582
|
+
return t.type === Type.getTypename(schema);
|
|
583
|
+
}
|
|
584
|
+
return false;
|
|
585
|
+
};
|
|
586
|
+
var LocalSearchToolkit = Toolkit2.make(Tool.make("search_local_search", {
|
|
587
|
+
description: "Search the local database for information using a vector index",
|
|
588
|
+
parameters: {
|
|
589
|
+
query: Schema.String.annotations({
|
|
590
|
+
description: "The query to search for. Could be a question or a topic or a set of keywords."
|
|
591
|
+
})
|
|
592
|
+
},
|
|
593
|
+
success: Schema.Unknown,
|
|
594
|
+
failure: Schema.Never,
|
|
595
|
+
dependencies: [
|
|
596
|
+
Database.Service
|
|
597
|
+
]
|
|
598
|
+
}));
|
|
599
|
+
var LocalSearchHandler = LocalSearchToolkit.toLayer({
|
|
600
|
+
search_local_search: Effect.fn(function* ({ query }) {
|
|
601
|
+
const objects = yield* Database.runQuery(Query2.select(Filter.text(query, {
|
|
602
|
+
type: "vector"
|
|
603
|
+
})));
|
|
604
|
+
const results = [
|
|
605
|
+
...objects
|
|
606
|
+
];
|
|
607
|
+
const option = yield* Effect.serviceOption(ContextQueueService);
|
|
608
|
+
if (Option.isSome(option)) {
|
|
609
|
+
const queueObjects = yield* Effect.promise(() => option.value.queue.queryObjects());
|
|
610
|
+
results.push(...queueObjects);
|
|
611
|
+
}
|
|
612
|
+
return trim9`
|
|
613
|
+
<local_context>
|
|
614
|
+
${JSON.stringify(results, null, 2)}
|
|
615
|
+
</local_context>
|
|
616
|
+
`;
|
|
617
|
+
})
|
|
618
|
+
});
|
|
619
|
+
var GraphWriterSchema = class extends Context.Tag("@dxos/assistant/GraphWriterSchema")() {
|
|
620
|
+
};
|
|
621
|
+
var makeGraphWriterToolkit = ({ schema }) => {
|
|
622
|
+
return Toolkit2.make(Tool.make("graph_writer", {
|
|
623
|
+
description: "Write to the local graph database",
|
|
624
|
+
parameters: createExtractionSchema(schema).fields,
|
|
625
|
+
success: Schema.Unknown,
|
|
626
|
+
failure: Schema.Never,
|
|
627
|
+
dependencies: [
|
|
628
|
+
Database.Service,
|
|
629
|
+
ContextQueueService
|
|
630
|
+
]
|
|
631
|
+
}).annotateContext(Context.make(GraphWriterSchema, {
|
|
632
|
+
schema
|
|
633
|
+
})));
|
|
634
|
+
};
|
|
635
|
+
var makeGraphWriterHandler = (toolkit, { onAppend } = {}) => {
|
|
636
|
+
const { schema } = Context.get(toolkit.tools.graph_writer.annotations, GraphWriterSchema);
|
|
637
|
+
return toolkit.toLayer({
|
|
638
|
+
graph_writer: Effect.fn(function* (input) {
|
|
639
|
+
const { db } = yield* Database.Service;
|
|
640
|
+
const { queue } = yield* ContextQueueService;
|
|
641
|
+
const data = yield* Effect.promise(() => sanitizeObjects(schema, input, db, queue));
|
|
642
|
+
yield* Effect.promise(() => queue.append(data));
|
|
643
|
+
const dxns = data.map((obj) => Obj.getDXN(obj));
|
|
644
|
+
onAppend?.(dxns);
|
|
645
|
+
return dxns;
|
|
646
|
+
})
|
|
647
|
+
});
|
|
648
|
+
};
|
|
649
|
+
var createExtractionSchema = (types) => {
|
|
650
|
+
return Schema.Struct({
|
|
651
|
+
...Object.fromEntries(types.map(preprocessSchema).map((schema, index) => [
|
|
652
|
+
`objects_${getSanitizedSchemaName(types[index])}`,
|
|
653
|
+
Schema.optional(Schema.Array(schema)).annotations({
|
|
654
|
+
description: `The objects of type: ${Type.getDXN(types[index])?.asTypeDXN().type}. ${SchemaAST.getDescriptionAnnotation(types[index].ast).pipe(Option.getOrElse(() => ""))}`
|
|
655
|
+
})
|
|
656
|
+
]))
|
|
657
|
+
});
|
|
658
|
+
};
|
|
659
|
+
var getSanitizedSchemaName = (schema) => {
|
|
660
|
+
return Type.getDXN(schema).asTypeDXN().type.replaceAll(/[^a-zA-Z0-9]+/g, "_");
|
|
661
|
+
};
|
|
662
|
+
var sanitizeObjects = async (types, data, db, queue) => {
|
|
663
|
+
const entries = types.map((type) => data[`objects_${getSanitizedSchemaName(type)}`]?.map((object) => ({
|
|
664
|
+
data: object,
|
|
665
|
+
schema: type
|
|
666
|
+
})) ?? []).flat();
|
|
667
|
+
const idMap = /* @__PURE__ */ new Map();
|
|
668
|
+
const existingIds = /* @__PURE__ */ new Set();
|
|
669
|
+
const enitties = /* @__PURE__ */ new Map();
|
|
670
|
+
const resolveId = (id) => {
|
|
671
|
+
if (ObjectId.isValid(id)) {
|
|
672
|
+
existingIds.add(id);
|
|
673
|
+
return DXN.fromLocalObjectId(id);
|
|
674
|
+
}
|
|
675
|
+
const mappedId = idMap.get(id);
|
|
676
|
+
if (mappedId) {
|
|
677
|
+
return DXN.fromLocalObjectId(mappedId);
|
|
678
|
+
}
|
|
679
|
+
return void 0;
|
|
680
|
+
};
|
|
681
|
+
const res = entries.map((entry) => {
|
|
682
|
+
if (ObjectId.isValid(entry.data.id)) {
|
|
683
|
+
return entry;
|
|
684
|
+
}
|
|
685
|
+
idMap.set(entry.data.id, ObjectId.random());
|
|
686
|
+
entry.data.id = idMap.get(entry.data.id);
|
|
687
|
+
return entry;
|
|
688
|
+
}).map((entry) => {
|
|
689
|
+
const data2 = deepMapValues(entry.data, (value, recurse) => {
|
|
690
|
+
if (isEncodedReference(value)) {
|
|
691
|
+
const ref = value["/"];
|
|
692
|
+
const id = resolveId(ref);
|
|
693
|
+
if (id) {
|
|
694
|
+
return {
|
|
695
|
+
"/": id.toString()
|
|
696
|
+
};
|
|
697
|
+
} else {
|
|
698
|
+
return {
|
|
699
|
+
"/": `search:?q=${encodeURIComponent(ref)}`
|
|
700
|
+
};
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
return recurse(value);
|
|
704
|
+
});
|
|
705
|
+
if (Entity.getKind(entry.schema) === "relation") {
|
|
706
|
+
const sourceDxn = resolveId(data2.source);
|
|
707
|
+
if (!sourceDxn) {
|
|
708
|
+
log.warn("source not found", {
|
|
709
|
+
source: data2.source
|
|
710
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 193, S: void 0 });
|
|
711
|
+
}
|
|
712
|
+
const targetDxn = resolveId(data2.target);
|
|
713
|
+
if (!targetDxn) {
|
|
714
|
+
log.warn("target not found", {
|
|
715
|
+
target: data2.target
|
|
716
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 199, S: void 0 });
|
|
717
|
+
}
|
|
718
|
+
delete data2.source;
|
|
719
|
+
delete data2.target;
|
|
720
|
+
data2[RelationSourceDXNId] = sourceDxn;
|
|
721
|
+
data2[RelationTargetDXNId] = targetDxn;
|
|
722
|
+
}
|
|
723
|
+
return {
|
|
724
|
+
data: data2,
|
|
725
|
+
schema: entry.schema
|
|
726
|
+
};
|
|
727
|
+
}).filter((object) => !existingIds.has(object.data.id));
|
|
728
|
+
const dbObjects = await db.query(Query2.select(Filter.id(...existingIds))).run();
|
|
729
|
+
const queueObjects = await queue?.getObjectsById([
|
|
730
|
+
...existingIds
|
|
731
|
+
]) ?? [];
|
|
732
|
+
const objects = [
|
|
733
|
+
...dbObjects,
|
|
734
|
+
...queueObjects
|
|
735
|
+
].filter(isNonNullable);
|
|
736
|
+
log.info("objects", {
|
|
737
|
+
dbObjects,
|
|
738
|
+
queueObjects,
|
|
739
|
+
existingIds
|
|
740
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 223, S: void 0 });
|
|
741
|
+
const missing = Array.from(existingIds).filter((id) => !objects.some((object) => object.id === id));
|
|
742
|
+
if (missing.length > 0) {
|
|
743
|
+
throw new Error(`Object IDs do not point to existing objects: ${missing.join(", ")}`);
|
|
744
|
+
}
|
|
745
|
+
return res.flatMap(({ data: data2, schema }) => {
|
|
746
|
+
let skip = false;
|
|
747
|
+
if (RelationSourceDXNId in data2) {
|
|
748
|
+
const id = data2[RelationSourceDXNId].asEchoDXN()?.echoId;
|
|
749
|
+
const obj = objects.find((object) => object.id === id) ?? enitties.get(id);
|
|
750
|
+
if (obj) {
|
|
751
|
+
delete data2[RelationSourceDXNId];
|
|
752
|
+
data2[RelationSourceId] = obj;
|
|
753
|
+
} else {
|
|
754
|
+
skip = true;
|
|
755
|
+
}
|
|
756
|
+
}
|
|
757
|
+
if (RelationTargetDXNId in data2) {
|
|
758
|
+
const id = data2[RelationTargetDXNId].asEchoDXN()?.echoId;
|
|
759
|
+
const obj = objects.find((object) => object.id === id) ?? enitties.get(id);
|
|
760
|
+
if (obj) {
|
|
761
|
+
delete data2[RelationTargetDXNId];
|
|
762
|
+
data2[RelationTargetId] = obj;
|
|
763
|
+
} else {
|
|
764
|
+
skip = true;
|
|
765
|
+
}
|
|
766
|
+
}
|
|
767
|
+
if (!skip) {
|
|
768
|
+
const obj = createObject(schema, data2);
|
|
769
|
+
enitties.set(obj.id, obj);
|
|
770
|
+
return [
|
|
771
|
+
obj
|
|
772
|
+
];
|
|
773
|
+
}
|
|
774
|
+
return [];
|
|
775
|
+
});
|
|
776
|
+
};
|
|
777
|
+
var SoftRef = Schema.Struct({
|
|
778
|
+
"/": Schema.String
|
|
779
|
+
}).annotations({
|
|
780
|
+
description: "Reference to another object."
|
|
781
|
+
});
|
|
782
|
+
var preprocessSchema = (schema) => {
|
|
783
|
+
const isRelationSchema = Entity.getKind(schema) === "relation";
|
|
784
|
+
const go = (ast, visited = /* @__PURE__ */ new Set()) => {
|
|
785
|
+
if (visited.has(ast)) {
|
|
786
|
+
return ast;
|
|
787
|
+
}
|
|
788
|
+
visited.add(ast);
|
|
789
|
+
if (SchemaAST.getAnnotation(ast, ReferenceAnnotationId).pipe(Option.isSome)) {
|
|
790
|
+
return SoftRef.ast;
|
|
791
|
+
}
|
|
792
|
+
return mapAst(ast, (child) => go(child, visited));
|
|
793
|
+
};
|
|
794
|
+
return Schema.make(mapAst(schema.ast, (ast) => go(ast))).pipe(Schema.omit("id"), Schema.extend(Schema.Struct({
|
|
795
|
+
id: Schema.String.annotations({
|
|
796
|
+
description: "The id of this object. Come up with a unique id based on your judgement."
|
|
797
|
+
})
|
|
798
|
+
})), isRelationSchema ? Schema.extend(Schema.Struct({
|
|
799
|
+
source: Schema.String.annotations({
|
|
800
|
+
description: "The id of the source object for this relation."
|
|
801
|
+
}),
|
|
802
|
+
target: Schema.String.annotations({
|
|
803
|
+
description: "The id of the target object for this relation."
|
|
804
|
+
})
|
|
805
|
+
})) : Function.identity);
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
// src/functions/agent/index.ts
|
|
809
|
+
import { OperationHandlerSet as OperationHandlerSet9 } from "@dxos/compute";
|
|
810
|
+
var AgentHandlers = OperationHandlerSet9.lazy(() => import("./prompt-4UMXX6QU.mjs"));
|
|
811
|
+
|
|
812
|
+
// src/toolkits/WebToolkit.ts
|
|
813
|
+
var WebToolkit_exports = {};
|
|
814
|
+
__export(WebToolkit_exports, {
|
|
815
|
+
WebToolkit: () => WebToolkit,
|
|
816
|
+
layer: () => layer
|
|
817
|
+
});
|
|
818
|
+
import * as AnthropicTool2 from "@effect/ai-anthropic/AnthropicTool";
|
|
819
|
+
import * as Tool2 from "@effect/ai/Tool";
|
|
820
|
+
import * as Toolkit3 from "@effect/ai/Toolkit";
|
|
821
|
+
import * as Effect2 from "effect/Effect";
|
|
822
|
+
import * as Schema2 from "effect/Schema";
|
|
823
|
+
var WebToolkit = Toolkit3.make(AnthropicTool2.WebSearch_20250305({}).pipe(), Tool2.make("WebFetch", {
|
|
824
|
+
parameters: {
|
|
825
|
+
url: Schema2.String
|
|
826
|
+
},
|
|
827
|
+
success: Schema2.String
|
|
828
|
+
}));
|
|
829
|
+
var layer = WebToolkit.toLayer({
|
|
830
|
+
WebFetch: Effect2.fnUntraced(function* ({ url }) {
|
|
831
|
+
const response = yield* Effect2.promise(() => fetch(url).then((response2) => response2.text()));
|
|
832
|
+
return response;
|
|
833
|
+
})
|
|
834
|
+
});
|
|
835
|
+
export {
|
|
836
|
+
AddArtifact,
|
|
837
|
+
Agent_exports as Agent,
|
|
838
|
+
blueprint_default as AgentBlueprint,
|
|
839
|
+
AgentBlueprintHandlers,
|
|
840
|
+
AgentHandlers,
|
|
841
|
+
AgentPrompt,
|
|
842
|
+
AgentRules,
|
|
843
|
+
blueprint_default11 as AgentWizardBlueprint,
|
|
844
|
+
AgentWizardHandlers,
|
|
845
|
+
AgentWorker,
|
|
846
|
+
blueprint_default9 as AutomationBlueprint,
|
|
847
|
+
blueprint_default10 as BlueprintManagerBlueprint,
|
|
848
|
+
BlueprintManagerHandlers,
|
|
849
|
+
blueprint_default6 as BrowserBlueprint,
|
|
850
|
+
Chat_exports as Chat,
|
|
851
|
+
ContextAdd,
|
|
852
|
+
ContextRemove,
|
|
853
|
+
CreateAgent,
|
|
854
|
+
blueprint_default7 as DatabaseBlueprint,
|
|
855
|
+
DatabaseHandlers,
|
|
856
|
+
Load as DatabaseLoad,
|
|
857
|
+
Query as DatabaseQuery,
|
|
858
|
+
DeleteMemory,
|
|
859
|
+
blueprint_default2 as DiscordBlueprint,
|
|
860
|
+
DiscordHandlers,
|
|
861
|
+
EnableBlueprints,
|
|
862
|
+
FetchMessages,
|
|
863
|
+
GetContext,
|
|
864
|
+
blueprint_default3 as LinearBlueprint,
|
|
865
|
+
LinearHandlers,
|
|
866
|
+
LocalSearchHandler,
|
|
867
|
+
LocalSearchToolkit,
|
|
868
|
+
McpServer_exports as McpServer,
|
|
869
|
+
Memory_exports as Memory,
|
|
870
|
+
blueprint_default8 as MemoryBlueprint,
|
|
871
|
+
MemoryHandlers,
|
|
872
|
+
ObjectCreate,
|
|
873
|
+
ObjectDelete,
|
|
874
|
+
ObjectUpdate,
|
|
875
|
+
Plan_exports as Plan,
|
|
876
|
+
blueprint_default4 as PlanningBlueprint,
|
|
877
|
+
PlanningHandlers,
|
|
878
|
+
UpdateTasks as PlanningUpdateTasks,
|
|
879
|
+
Qualifier,
|
|
880
|
+
QueryBlueprints,
|
|
881
|
+
QueryMemories,
|
|
882
|
+
RelationCreate,
|
|
883
|
+
RelationDelete,
|
|
884
|
+
SaveMemory,
|
|
885
|
+
SchemaAdd,
|
|
886
|
+
SchemaList,
|
|
887
|
+
Subgraph,
|
|
888
|
+
SyncIssues,
|
|
889
|
+
SyncTriggers,
|
|
890
|
+
TagAdd,
|
|
891
|
+
TagRemove,
|
|
892
|
+
blueprint_default5 as WebSearchBlueprint,
|
|
893
|
+
Fetch as WebSearchFetch,
|
|
894
|
+
WebSearchHandlers,
|
|
895
|
+
WebSearchToolkit,
|
|
896
|
+
WebSearchToolkitOpaque,
|
|
897
|
+
WebToolkit_exports as WebToolkit,
|
|
898
|
+
createExtractionSchema,
|
|
899
|
+
findRelatedSchema,
|
|
900
|
+
getSanitizedSchemaName,
|
|
901
|
+
makeGraphWriterHandler,
|
|
902
|
+
makeGraphWriterToolkit,
|
|
903
|
+
sanitizeObjects,
|
|
904
|
+
syncObjects
|
|
905
|
+
};
|
|
906
|
+
//# sourceMappingURL=index.mjs.map
|