@dxos/assistant-toolkit 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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-OBP4D5RN.mjs +30 -0
- package/dist/lib/neutral/add-artifact-OBP4D5RN.mjs.map +7 -0
- package/dist/lib/neutral/agent-27Z7BESA.mjs +95 -0
- package/dist/lib/neutral/agent-27Z7BESA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-2NKPVOXM.mjs +267 -0
- package/dist/lib/neutral/chunk-2NKPVOXM.mjs.map +7 -0
- package/dist/lib/neutral/chunk-3ZUJIEFV.mjs +184 -0
- package/dist/lib/neutral/chunk-3ZUJIEFV.mjs.map +7 -0
- package/dist/lib/neutral/chunk-4QGZEDWS.mjs +140 -0
- package/dist/lib/neutral/chunk-4QGZEDWS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-6FL4C6KD.mjs +86 -0
- package/dist/lib/neutral/chunk-6FL4C6KD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-6IAJ2JI5.mjs +54 -0
- package/dist/lib/neutral/chunk-6IAJ2JI5.mjs.map +7 -0
- package/dist/lib/neutral/chunk-AGG6OZNB.mjs +74 -0
- package/dist/lib/neutral/chunk-AGG6OZNB.mjs.map +7 -0
- package/dist/lib/neutral/chunk-AKMBURAD.mjs +320 -0
- package/dist/lib/neutral/chunk-AKMBURAD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-BO4ZVH7M.mjs +73 -0
- package/dist/lib/neutral/chunk-BO4ZVH7M.mjs.map +7 -0
- package/dist/lib/neutral/chunk-CJUCONUJ.mjs +99 -0
- package/dist/lib/neutral/chunk-CJUCONUJ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GAJ6MKJX.mjs +363 -0
- package/dist/lib/neutral/chunk-GAJ6MKJX.mjs.map +7 -0
- package/dist/lib/neutral/chunk-HEFG73F2.mjs +53 -0
- package/dist/lib/neutral/chunk-HEFG73F2.mjs.map +7 -0
- package/dist/lib/neutral/chunk-HZM3HNAS.mjs +78 -0
- package/dist/lib/neutral/chunk-HZM3HNAS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ILZ2ODWC.mjs +95 -0
- package/dist/lib/neutral/chunk-ILZ2ODWC.mjs.map +7 -0
- package/dist/lib/neutral/chunk-IQNOIB23.mjs +58 -0
- package/dist/lib/neutral/chunk-IQNOIB23.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KWZG4QBN.mjs +685 -0
- package/dist/lib/neutral/chunk-KWZG4QBN.mjs.map +7 -0
- package/dist/lib/neutral/chunk-LI6VMCJW.mjs +27 -0
- package/dist/lib/neutral/chunk-LI6VMCJW.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MEZ4UFR6.mjs +25 -0
- package/dist/lib/neutral/chunk-MEZ4UFR6.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VBSCQN37.mjs +52 -0
- package/dist/lib/neutral/chunk-VBSCQN37.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VDEDVOS6.mjs +39 -0
- package/dist/lib/neutral/chunk-VDEDVOS6.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YBTLIXQK.mjs +29 -0
- package/dist/lib/neutral/chunk-YBTLIXQK.mjs.map +7 -0
- package/dist/lib/neutral/context-add-U5LSEQLG.mjs +22 -0
- package/dist/lib/neutral/context-add-U5LSEQLG.mjs.map +7 -0
- package/dist/lib/neutral/context-remove-3YGXLVRA.mjs +22 -0
- package/dist/lib/neutral/context-remove-3YGXLVRA.mjs.map +7 -0
- package/dist/lib/neutral/create-P6I22VS5.mjs +23 -0
- package/dist/lib/neutral/create-P6I22VS5.mjs.map +7 -0
- package/dist/lib/neutral/create-project-YEDZU75J.mjs +34 -0
- package/dist/lib/neutral/create-project-YEDZU75J.mjs.map +7 -0
- package/dist/lib/neutral/delete-LHMZDJFA.mjs +19 -0
- package/dist/lib/neutral/delete-LHMZDJFA.mjs.map +7 -0
- package/dist/lib/neutral/document-create-53ZVNGFR.mjs +57 -0
- package/dist/lib/neutral/document-create-53ZVNGFR.mjs.map +7 -0
- package/dist/lib/neutral/enable-blueprints-Q5NXGX2G.mjs +48 -0
- package/dist/lib/neutral/enable-blueprints-Q5NXGX2G.mjs.map +7 -0
- package/dist/lib/neutral/entity-extraction-CFXRZWZK.mjs +196 -0
- package/dist/lib/neutral/entity-extraction-CFXRZWZK.mjs.map +7 -0
- package/dist/lib/neutral/exa-P4G3DCYB.mjs +28 -0
- package/dist/lib/neutral/exa-P4G3DCYB.mjs.map +7 -0
- package/dist/lib/neutral/fetch-TLKREIZA.mjs +16 -0
- package/dist/lib/neutral/fetch-TLKREIZA.mjs.map +7 -0
- package/dist/lib/neutral/fetch-messages-AFX7ZAVE.mjs +154 -0
- package/dist/lib/neutral/fetch-messages-AFX7ZAVE.mjs.map +7 -0
- package/dist/lib/neutral/get-context-MKM4CEGH.mjs +35 -0
- package/dist/lib/neutral/get-context-MKM4CEGH.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +248 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/load-KHLICMGJ.mjs +17 -0
- package/dist/lib/neutral/load-KHLICMGJ.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/{browser/index.mjs → neutral/mock-JSY4GY77.mjs} +23 -2347
- package/dist/lib/neutral/mock-JSY4GY77.mjs.map +7 -0
- package/dist/lib/neutral/object-create-7J7D53FT.mjs +43 -0
- package/dist/lib/neutral/object-create-7J7D53FT.mjs.map +7 -0
- package/dist/lib/neutral/object-delete-QFXUHJ2D.mjs +18 -0
- package/dist/lib/neutral/object-delete-QFXUHJ2D.mjs.map +7 -0
- package/dist/lib/neutral/object-update-C73HRM5F.mjs +28 -0
- package/dist/lib/neutral/object-update-C73HRM5F.mjs.map +7 -0
- package/dist/lib/neutral/project-rules-ZVV4TFOQ.mjs +77 -0
- package/dist/lib/neutral/project-rules-ZVV4TFOQ.mjs.map +7 -0
- package/dist/lib/neutral/prompt-J2XSDAWH.mjs +138 -0
- package/dist/lib/neutral/prompt-J2XSDAWH.mjs.map +7 -0
- package/dist/lib/neutral/qualifier-WRYRVSET.mjs +104 -0
- package/dist/lib/neutral/qualifier-WRYRVSET.mjs.map +7 -0
- package/dist/lib/neutral/query-FUFKLAN2.mjs +66 -0
- package/dist/lib/neutral/query-FUFKLAN2.mjs.map +7 -0
- package/dist/lib/neutral/query-U4LWIBNG.mjs +32 -0
- package/dist/lib/neutral/query-U4LWIBNG.mjs.map +7 -0
- package/dist/lib/neutral/query-blueprints-Y5CXJLCT.mjs +17 -0
- package/dist/lib/neutral/query-blueprints-Y5CXJLCT.mjs.map +7 -0
- package/dist/lib/neutral/read-JJN7YXHI.mjs +19 -0
- package/dist/lib/neutral/read-JJN7YXHI.mjs.map +7 -0
- package/dist/lib/neutral/relation-create-YWV2TUKS.mjs +42 -0
- package/dist/lib/neutral/relation-create-YWV2TUKS.mjs.map +7 -0
- package/dist/lib/neutral/relation-delete-JGGA4CYQ.mjs +18 -0
- package/dist/lib/neutral/relation-delete-JGGA4CYQ.mjs.map +7 -0
- package/dist/lib/neutral/research-UBK6ZGX7.mjs +109 -0
- package/dist/lib/neutral/research-UBK6ZGX7.mjs.map +7 -0
- package/dist/lib/neutral/save-JZ73KUMA.mjs +23 -0
- package/dist/lib/neutral/save-JZ73KUMA.mjs.map +7 -0
- package/dist/lib/neutral/schema-add-7WKPPKW4.mjs +24 -0
- package/dist/lib/neutral/schema-add-7WKPPKW4.mjs.map +7 -0
- package/dist/lib/neutral/schema-list-MIAIKERK.mjs +30 -0
- package/dist/lib/neutral/schema-list-MIAIKERK.mjs.map +7 -0
- package/dist/lib/neutral/sync-issues-FIRE3XR6.mjs +179 -0
- package/dist/lib/neutral/sync-issues-FIRE3XR6.mjs.map +7 -0
- package/dist/lib/neutral/tag-add-IKD4ADDM.mjs +19 -0
- package/dist/lib/neutral/tag-add-IKD4ADDM.mjs.map +7 -0
- package/dist/lib/neutral/tag-remove-PCSKCFT2.mjs +19 -0
- package/dist/lib/neutral/tag-remove-PCSKCFT2.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +81 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/update-HZ7A3ZA5.mjs +20 -0
- package/dist/lib/neutral/update-HZ7A3ZA5.mjs.map +7 -0
- package/dist/lib/neutral/update-tasks-TZ65WZ44.mjs +46 -0
- package/dist/lib/neutral/update-tasks-TZ65WZ44.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 +59 -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/{design/design-blueprint.d.ts → blueprint-manager/functions/query-blueprints.d.ts} +13 -4
- package/dist/types/src/blueprints/blueprint-manager/functions/query-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 +58 -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 +11 -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/design/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/design/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/design/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/index.d.ts +1 -2
- package/dist/types/src/blueprints/design/index.d.ts.map +1 -1
- 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 +14 -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/markdown/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/markdown/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/create.d.ts +8 -0
- package/dist/types/src/blueprints/markdown/functions/create.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/definitions.d.ts +45 -0
- package/dist/types/src/blueprints/markdown/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts +17 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/update.d.ts +16 -0
- package/dist/types/src/blueprints/markdown/functions/update.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/index.d.ts +3 -0
- package/dist/types/src/blueprints/markdown/index.d.ts.map +1 -0
- 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/planning-old/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/definitions.d.ts +31 -0
- package/dist/types/src/blueprints/planning-old/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts +17 -0
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/task-list.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/task-list.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts +19 -0
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/index.d.ts +3 -0
- package/dist/types/src/blueprints/planning-old/index.d.ts.map +1 -0
- 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 +150 -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 +69 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/index.d.ts +4 -0
- package/dist/types/src/blueprints/project/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/sync-triggers.d.ts +11 -0
- package/dist/types/src/blueprints/project/sync-triggers.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 +48 -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 +49 -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/index.d.ts +3 -0
- package/dist/types/src/blueprints/project-wizard/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/research/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/research/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/definitions.d.ts +21 -0
- package/dist/types/src/blueprints/research/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/document-create.d.ts +12 -0
- package/dist/types/src/blueprints/research/functions/document-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/research/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/research.d.ts +18 -0
- package/dist/types/src/blueprints/research/functions/research.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/research.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/index.d.ts +3 -2
- package/dist/types/src/blueprints/research/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts +24 -0
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/types/index.d.ts +7 -0
- package/dist/types/src/blueprints/research/types/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/testing.d.ts +16 -4
- 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 +6 -6
- package/dist/types/src/crud/graph.d.ts.map +1 -1
- package/dist/types/src/functions/agent/definitions.d.ts +101 -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 +34 -8
- 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/entity-extraction/definitions.d.ts +182 -0
- package/dist/types/src/functions/entity-extraction/definitions.d.ts.map +1 -0
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +2 -172
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +3 -174
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
- package/dist/types/src/functions/exa/definitions.d.ts +9 -0
- package/dist/types/src/functions/exa/definitions.d.ts.map +1 -0
- package/dist/types/src/functions/exa/exa.d.ts +4 -2
- package/dist/types/src/functions/exa/exa.d.ts.map +1 -1
- package/dist/types/src/functions/exa/index.d.ts +3 -2
- package/dist/types/src/functions/exa/index.d.ts.map +1 -1
- package/dist/types/src/functions/exa/mock.d.ts +3 -2
- package/dist/types/src/functions/exa/mock.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +1 -5
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/plugins.d.ts.map +1 -1
- 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/Chat.d.ts +52 -0
- package/dist/types/src/types/Chat.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 +86 -0
- package/dist/types/src/types/Plan.d.ts.map +1 -0
- package/dist/types/src/types/Project.d.ts +73 -0
- package/dist/types/src/types/Project.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +5 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -43
- package/src/blueprints/automation/blueprint.ts +109 -0
- package/src/blueprints/automation/index.ts +5 -0
- package/src/blueprints/blueprint-manager/blueprint.test.ts +130 -0
- package/src/blueprints/blueprint-manager/blueprint.ts +49 -0
- package/src/blueprints/blueprint-manager/functions/definitions.ts +46 -0
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +44 -0
- package/src/blueprints/blueprint-manager/functions/index.ts +12 -0
- package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +19 -0
- package/src/blueprints/blueprint-manager/index.ts +6 -0
- package/src/blueprints/browser/blueprint.conversations.json +1 -0
- package/src/blueprints/browser/blueprint.test.ts +64 -0
- package/src/blueprints/browser/blueprint.ts +41 -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 +343 -0
- package/src/blueprints/database/blueprint.ts +67 -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 +301 -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 +56 -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 +27 -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/design/{design-blueprint.test.ts → blueprint.test.ts} +14 -22
- package/src/blueprints/design/{design-blueprint.ts → blueprint.ts} +21 -11
- package/src/blueprints/design/index.ts +1 -3
- package/src/blueprints/discord/blueprint.ts +42 -0
- package/src/blueprints/discord/functions/definitions.ts +71 -0
- package/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.ts +6 -8
- 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 +14 -6
- package/src/blueprints/linear/blueprint.ts +43 -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 +60 -0
- package/src/{functions/linear → blueprints/linear/functions}/sync-issues.ts +37 -45
- package/src/blueprints/linear/index.ts +2 -3
- package/src/blueprints/markdown/blueprint.ts +36 -0
- package/src/blueprints/markdown/functions/create.ts +20 -0
- package/src/blueprints/markdown/functions/definitions.ts +80 -0
- package/src/blueprints/markdown/functions/index.ts +13 -0
- package/src/blueprints/markdown/functions/read.ts +22 -0
- package/src/blueprints/markdown/functions/update.ts +22 -0
- package/src/blueprints/markdown/index.ts +11 -0
- package/src/blueprints/memory/blueprint.conversations.json +1 -0
- package/src/blueprints/memory/blueprint.test.ts +139 -0
- package/src/blueprints/memory/blueprint.ts +42 -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 +25 -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/{planning/planning-blueprint.test.ts → planning-old/blueprint.test.ts} +14 -18
- package/src/blueprints/{planning/planning-blueprint.ts → planning-old/blueprint.ts} +21 -11
- package/src/blueprints/planning-old/functions/definitions.ts +53 -0
- package/src/blueprints/planning-old/functions/index.ts +12 -0
- package/src/blueprints/planning-old/functions/read.ts +24 -0
- package/src/blueprints/planning-old/functions/update.ts +31 -0
- package/src/blueprints/planning-old/index.ts +6 -0
- package/src/blueprints/project/blueprint.conversations.json +1 -0
- package/src/{initiative/initiative.test.ts → blueprints/project/blueprint.test.ts} +149 -47
- package/src/blueprints/project/blueprint.ts +65 -0
- package/src/blueprints/project/functions/add-artifact.ts +30 -0
- package/src/blueprints/project/functions/agent.ts +75 -0
- package/src/blueprints/project/functions/definitions.ts +91 -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 +7 -0
- package/src/blueprints/project/sync-triggers.ts +149 -0
- package/src/blueprints/project-wizard/blueprint.ts +43 -0
- package/src/blueprints/project-wizard/functions/create-project.ts +33 -0
- package/src/blueprints/project-wizard/functions/definitions.ts +48 -0
- package/src/blueprints/project-wizard/functions/index.ts +12 -0
- package/src/blueprints/project-wizard/functions/project-rules.ts +76 -0
- package/src/blueprints/project-wizard/index.ts +6 -0
- package/src/blueprints/research/{research-blueprint.ts → blueprint.ts} +22 -12
- package/src/blueprints/research/functions/definitions.ts +87 -0
- package/src/blueprints/research/functions/document-create.ts +50 -0
- package/src/blueprints/research/functions/index.ts +12 -0
- package/src/{functions/research → blueprints/research/functions}/research-instructions.tpl +5 -5
- package/src/blueprints/research/functions/research.conversations.json +1 -0
- package/src/blueprints/research/functions/research.test.ts +152 -0
- package/src/blueprints/research/functions/research.ts +138 -0
- package/src/blueprints/research/index.ts +3 -3
- package/src/blueprints/research/types/ResearchGraph.ts +62 -0
- package/src/{functions/research/types.ts → blueprints/research/types/index.ts} +12 -6
- package/src/blueprints/testing.ts +34 -5
- package/src/blueprints/websearch/blueprint.conversations.json +1 -0
- package/src/blueprints/websearch/blueprint.test.ts +39 -0
- package/src/blueprints/websearch/blueprint.ts +31 -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 -5
- package/src/blueprints/websearch/{websearch-toolkit.ts → toolkit.ts} +4 -0
- package/src/crud/graph.test.ts +2 -2
- package/src/crud/graph.ts +9 -9
- 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.test.ts +144 -0
- package/src/functions/agent/prompt.ts +122 -104
- package/src/functions/entity-extraction/definitions.ts +44 -0
- package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -6597
- package/src/functions/entity-extraction/entity-extraction.test.ts +13 -30
- package/src/functions/entity-extraction/entity-extraction.ts +68 -92
- package/src/functions/entity-extraction/index.ts +4 -4
- package/src/functions/exa/definitions.ts +37 -0
- package/src/functions/exa/exa.ts +22 -27
- package/src/functions/exa/index.ts +8 -2
- package/src/functions/exa/mock.ts +28 -37
- package/src/functions/index.ts +1 -5
- package/src/index.ts +2 -1
- package/src/sync/sync.ts +2 -2
- package/src/testing/index.ts +1 -0
- package/src/testing/plugins.tsx +28 -19
- package/src/toolkits/WebToolkit.ts +33 -0
- package/src/toolkits/index.ts +1 -2
- package/src/types/Chat.ts +62 -0
- package/src/types/Memory.ts +23 -0
- package/src/types/Plan.ts +110 -0
- package/src/types/Project.ts +208 -0
- package/src/types/index.ts +8 -0
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs +0 -43
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -2881
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -44
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- 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/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 -18
- 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/research-blueprint.d.ts +0 -18
- 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 -18
- 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/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 -19
- 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.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.map +0 -1
- 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/initiative/Initiative.d.ts +0 -84
- package/dist/types/src/initiative/Initiative.d.ts.map +0 -1
- package/dist/types/src/initiative/InitiativeSchema.d.ts +0 -19
- package/dist/types/src/initiative/InitiativeSchema.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/agent.d.ts +0 -37
- package/dist/types/src/initiative/functions/agent.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/getContext.d.ts +0 -17
- package/dist/types/src/initiative/functions/getContext.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/index.d.ts +0 -4
- package/dist/types/src/initiative/functions/index.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/update.d.ts +0 -7
- package/dist/types/src/initiative/functions/update.d.ts.map +0 -1
- package/dist/types/src/initiative/index.d.ts +0 -1
- package/dist/types/src/initiative/index.d.ts.map +0 -1
- package/dist/types/src/initiative/initiative.test.d.ts +0 -2
- package/dist/types/src/initiative/initiative.test.d.ts.map +0 -1
- package/dist/types/src/toolkits/AssistantToolkit.d.ts +0 -43
- 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 -99
- package/dist/types/src/toolkits/SystemToolkit.d.ts.map +0 -1
- package/src/blueprints/discord/discord-blueprint.ts +0 -32
- package/src/blueprints/linear/linear-blueprint.ts +0 -33
- package/src/blueprints/websearch/websearch-blueprint.ts +0 -18
- package/src/experimental/feed.test.ts +0 -111
- 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 -30
- package/src/functions/document/update.ts +0 -33
- package/src/functions/github/fetch-prs.ts +0 -31
- package/src/functions/linear/index.ts +0 -9
- package/src/functions/linear/linear.test.ts +0 -84
- package/src/functions/research/document-create.ts +0 -76
- package/src/functions/research/index.ts +0 -14
- package/src/functions/research/research-graph.ts +0 -49
- package/src/functions/research/research.conversations.json +0 -1
- package/src/functions/research/research.test.ts +0 -171
- package/src/functions/research/research.ts +0 -189
- package/src/functions/tasks/index.ts +0 -11
- package/src/functions/tasks/read.ts +0 -35
- package/src/functions/tasks/update.ts +0 -53
- package/src/initiative/Initiative.ts +0 -99
- package/src/initiative/InitiativeSchema.ts +0 -37
- package/src/initiative/functions/agent.ts +0 -57
- package/src/initiative/functions/getContext.ts +0 -74
- package/src/initiative/functions/index.ts +0 -7
- package/src/initiative/functions/update.ts +0 -63
- package/src/initiative/index.ts +0 -3
- package/src/initiative/initiative.conversations.json +0 -1
- package/src/toolkits/AssistantToolkit.conversations.json +0 -1
- package/src/toolkits/AssistantToolkit.test.ts +0 -94
- package/src/toolkits/AssistantToolkit.ts +0 -70
- package/src/toolkits/SystemToolkit.ts +0 -299
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /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
- /package/dist/types/src/{functions/tasks → blueprints/planning-old/functions}/task-list.d.ts +0 -0
- /package/dist/types/src/{functions/tasks → blueprints/planning-old/functions}/task-list.test.d.ts +0 -0
- /package/dist/types/src/{functions/research → blueprints/research/functions}/research.test.d.ts +0 -0
- /package/src/{functions/tasks → blueprints/planning-old/functions}/task-list.test.ts +0 -0
- /package/src/{functions/tasks → blueprints/planning-old/functions}/task-list.ts +0 -0
- /package/src/blueprints/research/{research-blueprint.test.ts → blueprint.test.ts} +0 -0
|
@@ -2,56 +2,88 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { describe, it } from '@effect/vitest';
|
|
5
|
+
import { describe, expect, it } from '@effect/vitest';
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
|
+
import * as Exit from 'effect/Exit';
|
|
7
8
|
|
|
8
9
|
import { MemoizedAiService } from '@dxos/ai/testing';
|
|
9
|
-
import { AiConversation } from '@dxos/assistant';
|
|
10
|
+
import { AiConversation, type ContextBinding } from '@dxos/assistant';
|
|
10
11
|
import { AssistantTestLayerWithTriggers } from '@dxos/assistant/testing';
|
|
11
12
|
import { Blueprint } from '@dxos/blueprints';
|
|
12
|
-
import {
|
|
13
|
+
import { SpaceProperties } from '@dxos/client-protocol';
|
|
14
|
+
import { Database, Feed, Obj, Ref } from '@dxos/echo';
|
|
15
|
+
import { Collection } from '@dxos/echo';
|
|
13
16
|
import { acquireReleaseResource } from '@dxos/effect';
|
|
14
17
|
import { TestHelpers } from '@dxos/effect/testing';
|
|
15
|
-
import {
|
|
18
|
+
import { QueueService, Trigger } from '@dxos/functions';
|
|
16
19
|
import { TriggerDispatcher } from '@dxos/functions-runtime';
|
|
17
20
|
import { invariant } from '@dxos/invariant';
|
|
18
21
|
import { ObjectId } from '@dxos/keys';
|
|
22
|
+
import { Operation, OperationHandlerSet } from '@dxos/operation';
|
|
23
|
+
import { MarkdownBlueprint } from '@dxos/plugin-markdown/blueprints';
|
|
24
|
+
import { WithProperties } from '@dxos/plugin-markdown/testing';
|
|
25
|
+
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
19
26
|
import { Text } from '@dxos/schema';
|
|
20
27
|
import { Message } from '@dxos/types';
|
|
21
28
|
import { trim } from '@dxos/util';
|
|
22
29
|
|
|
23
|
-
import {
|
|
24
|
-
import
|
|
30
|
+
import { Chat, Plan, Project } from '../../types';
|
|
31
|
+
import { PlanningBlueprint, PlanningHandlers } from '../planning';
|
|
32
|
+
import { MarkdownHandlers } from '../markdown';
|
|
33
|
+
|
|
34
|
+
import ProjectBlueprintDef from './blueprint';
|
|
35
|
+
import { Agent, ProjectHandlers } from './functions';
|
|
25
36
|
|
|
26
37
|
ObjectId.dangerouslyDisableRandomness();
|
|
27
38
|
|
|
28
39
|
const TestLayer = AssistantTestLayerWithTriggers({
|
|
29
40
|
aiServicePreset: 'edge-remote',
|
|
30
|
-
|
|
31
|
-
types: [
|
|
41
|
+
operationHandlers: OperationHandlerSet.merge(ProjectHandlers, MarkdownHandlers, PlanningHandlers),
|
|
42
|
+
types: [
|
|
43
|
+
Project.Project,
|
|
44
|
+
Plan.Plan,
|
|
45
|
+
Chat.CompanionTo,
|
|
46
|
+
Chat.Chat,
|
|
47
|
+
SpaceProperties,
|
|
48
|
+
Blueprint.Blueprint,
|
|
49
|
+
Trigger.Trigger,
|
|
50
|
+
Text.Text,
|
|
51
|
+
Markdown.Document,
|
|
52
|
+
Collection.Collection,
|
|
53
|
+
],
|
|
32
54
|
tracing: 'pretty',
|
|
33
55
|
});
|
|
34
56
|
|
|
35
57
|
const SYSTEM = trim`
|
|
36
|
-
|
|
58
|
+
You are a helpful assistant that can help with tasks in the outside world.
|
|
59
|
+
Be transparent about what you are doing and what you are not doing.
|
|
60
|
+
If you do not have tools to complete the task, inform the user.
|
|
61
|
+
DO NOT PRETEND TO DO SOMETHING YOU CAN'T DO.
|
|
37
62
|
`;
|
|
38
63
|
|
|
39
|
-
describe('
|
|
64
|
+
describe.runIf(TestHelpers.tagEnabled('flaky'))('Project', () => {
|
|
65
|
+
const blueprint = ProjectBlueprintDef.make();
|
|
40
66
|
it.scoped(
|
|
41
67
|
'shopping list',
|
|
42
68
|
Effect.fnUntraced(
|
|
43
69
|
function* (_) {
|
|
44
|
-
const
|
|
45
|
-
yield*
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
() => new AiConversation({ queue: initiative.chat?.target as any }),
|
|
70
|
+
const project = yield* Database.add(
|
|
71
|
+
yield* Project.makeInitialized(
|
|
72
|
+
{
|
|
73
|
+
name: 'Shopping list',
|
|
74
|
+
spec: 'Keep a shopping list of items to buy.',
|
|
75
|
+
blueprints: [Ref.make(MarkdownBlueprint.make())],
|
|
76
|
+
},
|
|
77
|
+
blueprint,
|
|
78
|
+
),
|
|
54
79
|
);
|
|
80
|
+
const chatFeed = project.chat?.target?.feed?.target;
|
|
81
|
+
invariant(chatFeed, 'Project chat feed not found.');
|
|
82
|
+
const chatQueueDxn = Feed.getQueueDxn(chatFeed);
|
|
83
|
+
invariant(chatQueueDxn, 'Feed queue DXN not found.');
|
|
84
|
+
const chatQueue = yield* QueueService.getQueue<Message.Message | ContextBinding>(chatQueueDxn);
|
|
85
|
+
yield* Database.flush();
|
|
86
|
+
const conversation = yield* acquireReleaseResource(() => new AiConversation({ queue: chatQueue }));
|
|
55
87
|
yield* Effect.promise(() => conversation.context.open());
|
|
56
88
|
|
|
57
89
|
yield* conversation.createRequest({
|
|
@@ -59,7 +91,7 @@ describe('Initiative', () => {
|
|
|
59
91
|
prompt: `List ingredients for a scrambled eggs on a toast breakfast.`,
|
|
60
92
|
});
|
|
61
93
|
|
|
62
|
-
console.log(yield* Effect.promise(() =>
|
|
94
|
+
console.log(yield* Effect.promise(() => dumpProject(project)));
|
|
63
95
|
},
|
|
64
96
|
Effect.provide(TestLayer),
|
|
65
97
|
TestHelpers.provideTestContext,
|
|
@@ -71,35 +103,38 @@ describe('Initiative', () => {
|
|
|
71
103
|
'expense tracking list',
|
|
72
104
|
Effect.fnUntraced(
|
|
73
105
|
function* (_) {
|
|
74
|
-
const
|
|
75
|
-
yield*
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
106
|
+
const project = yield* Database.add(
|
|
107
|
+
yield* Project.makeInitialized(
|
|
108
|
+
{
|
|
109
|
+
name: 'Expense tracking',
|
|
110
|
+
spec: trim`
|
|
111
|
+
Keep a list of expenses in a markdown document (create artifact "Expenses").
|
|
112
|
+
Process incoming emails, add the relevant ones to the list.
|
|
113
|
+
|
|
114
|
+
Format:
|
|
115
|
+
|
|
116
|
+
## Expenses
|
|
117
|
+
- Flight to London (2026-02-01): £100
|
|
118
|
+
- Hotel in London (2026-02-01): £100
|
|
119
|
+
`,
|
|
120
|
+
blueprints: [Ref.make(MarkdownBlueprint.make())],
|
|
121
|
+
},
|
|
122
|
+
blueprint,
|
|
123
|
+
),
|
|
89
124
|
);
|
|
90
|
-
yield* Database.
|
|
125
|
+
yield* Database.flush();
|
|
91
126
|
|
|
92
127
|
const inboxQueue = yield* QueueService.createQueue();
|
|
93
|
-
yield* Database.
|
|
128
|
+
yield* Database.add(
|
|
94
129
|
Trigger.make({
|
|
95
130
|
enabled: true,
|
|
96
131
|
spec: {
|
|
97
132
|
kind: 'queue',
|
|
98
133
|
queue: inboxQueue.dxn.toString(),
|
|
99
134
|
},
|
|
100
|
-
function: Ref.make(
|
|
135
|
+
function: Ref.make(Operation.serialize(Agent)),
|
|
101
136
|
input: {
|
|
102
|
-
|
|
137
|
+
project: Ref.make(project),
|
|
103
138
|
event: '{{event}}',
|
|
104
139
|
},
|
|
105
140
|
}),
|
|
@@ -111,10 +146,72 @@ describe('Initiative', () => {
|
|
|
111
146
|
);
|
|
112
147
|
|
|
113
148
|
const dispatcher = yield* TriggerDispatcher;
|
|
114
|
-
yield* dispatcher.invokeScheduledTriggers({ kinds: ['queue'], untilExhausted: true });
|
|
149
|
+
const invocations = yield* dispatcher.invokeScheduledTriggers({ kinds: ['queue'], untilExhausted: true });
|
|
150
|
+
expect(invocations.every((invocation) => Exit.isSuccess(invocation.result))).toBe(true);
|
|
151
|
+
|
|
152
|
+
console.log(yield* Effect.promise(() => dumpProject(project)));
|
|
153
|
+
},
|
|
154
|
+
WithProperties,
|
|
155
|
+
Effect.provide(TestLayer),
|
|
156
|
+
TestHelpers.provideTestContext,
|
|
157
|
+
),
|
|
158
|
+
MemoizedAiService.isGenerationEnabled() ? 240_000 : 30_000,
|
|
159
|
+
);
|
|
160
|
+
|
|
161
|
+
it.scoped(
|
|
162
|
+
'planning',
|
|
163
|
+
Effect.fnUntraced(
|
|
164
|
+
function* (_) {
|
|
165
|
+
const project = yield* Database.add(
|
|
166
|
+
yield* Project.makeInitialized(
|
|
167
|
+
{
|
|
168
|
+
name: 'Egg making',
|
|
169
|
+
spec: trim`
|
|
170
|
+
I'm testing how planning (task management) works.
|
|
171
|
+
Create tasks to make scrambled eggs.
|
|
172
|
+
|
|
173
|
+
Then simulate this plan execution in a markdown document.
|
|
174
|
+
The document should reflect the state of all objects involved in the cooking process.
|
|
175
|
+
The document should also have the log of actions taken.
|
|
176
|
+
|
|
177
|
+
Important: simualte actions one by one, in the order they are listed.
|
|
178
|
+
Simlate by updating the local document.
|
|
179
|
+
|
|
180
|
+
<example>
|
|
181
|
+
# State
|
|
182
|
+
|
|
183
|
+
- 2 raw eggs
|
|
184
|
+
- 1 frying pan
|
|
185
|
+
|
|
186
|
+
# Action log
|
|
187
|
+
|
|
188
|
+
- Taken 2 raw eggs out of the fridge.
|
|
189
|
+
</example>
|
|
190
|
+
`,
|
|
191
|
+
blueprints: [Ref.make(MarkdownBlueprint.make()), Ref.make(Obj.clone(PlanningBlueprint.make()))],
|
|
192
|
+
},
|
|
193
|
+
blueprint,
|
|
194
|
+
),
|
|
195
|
+
);
|
|
196
|
+
yield* Database.flush();
|
|
197
|
+
|
|
198
|
+
const chatFeed = project.chat?.target?.feed?.target;
|
|
199
|
+
invariant(chatFeed, 'Project chat feed not found.');
|
|
200
|
+
const chatQueueDxn = Feed.getQueueDxn(chatFeed);
|
|
201
|
+
invariant(chatQueueDxn, 'Feed queue DXN not found.');
|
|
202
|
+
const chatQueue = yield* QueueService.getQueue<Message.Message | ContextBinding>(chatQueueDxn);
|
|
203
|
+
yield* Database.flush();
|
|
204
|
+
const conversation = yield* acquireReleaseResource(() => new AiConversation({ queue: chatQueue }));
|
|
205
|
+
yield* Effect.promise(() => conversation.context.open());
|
|
206
|
+
|
|
207
|
+
yield* conversation.createRequest({
|
|
208
|
+
system: SYSTEM,
|
|
209
|
+
prompt: `Go`,
|
|
210
|
+
});
|
|
115
211
|
|
|
116
|
-
console.log(yield* Effect.promise(() =>
|
|
212
|
+
console.log(yield* Effect.promise(() => dumpProject(project)));
|
|
117
213
|
},
|
|
214
|
+
WithProperties,
|
|
118
215
|
Effect.provide(TestLayer),
|
|
119
216
|
TestHelpers.provideTestContext,
|
|
120
217
|
),
|
|
@@ -122,14 +219,19 @@ describe('Initiative', () => {
|
|
|
122
219
|
);
|
|
123
220
|
});
|
|
124
221
|
|
|
125
|
-
const
|
|
222
|
+
const dumpProject = async (project: Project.Project) => {
|
|
126
223
|
let text = '';
|
|
127
|
-
text += `==============
|
|
128
|
-
|
|
224
|
+
text += `============== Project: ${project.name} ==============\n\n`;
|
|
225
|
+
text += `============== Spec ==============\n\n`;
|
|
226
|
+
text += `${await project.spec.load().then((_) => _.content)}\n`;
|
|
227
|
+
text += `============== Plan ==============\n\n`;
|
|
228
|
+
text += `${await project.plan?.load().then((_) => Plan.formatPlan(_))}\n`;
|
|
229
|
+
text += `============== Artifacts ==============\n\n`;
|
|
230
|
+
for (const artifact of project.artifacts) {
|
|
129
231
|
const data = await artifact.data.load();
|
|
130
232
|
text += `============== ${artifact.name} (${Obj.getTypename(data)}) ==============\n`;
|
|
131
|
-
if (Obj.instanceOf(
|
|
132
|
-
text +=
|
|
233
|
+
if (Obj.instanceOf(Markdown.Document, data)) {
|
|
234
|
+
text += `# ${Obj.getLabel(data)}\n\n${await data.content.load().then((_) => _.content)}\n`;
|
|
133
235
|
} else {
|
|
134
236
|
text += ` ${JSON.stringify(data, null, 2)}\n`;
|
|
135
237
|
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
6
|
+
import { Blueprint, Template } from '@dxos/blueprints';
|
|
7
|
+
import { trim } from '@dxos/util';
|
|
8
|
+
|
|
9
|
+
import { AddArtifact } from './functions';
|
|
10
|
+
|
|
11
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.project';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Creates the Project blueprint. This is a function to avoid circular dependency issues.
|
|
15
|
+
*/
|
|
16
|
+
const make = () =>
|
|
17
|
+
Blueprint.make({
|
|
18
|
+
key: BLUEPRINT_KEY,
|
|
19
|
+
name: 'Project blueprint',
|
|
20
|
+
instructions: Template.make({
|
|
21
|
+
source: trim`
|
|
22
|
+
You work on an project. Each project has a spec - the goal of the project.
|
|
23
|
+
The project plan shows the current progress of the project.
|
|
24
|
+
Project has an number of associated artifacts you can read/write.
|
|
25
|
+
Spec and plan are also artifacts.
|
|
26
|
+
You can edit them if necessary.
|
|
27
|
+
|
|
28
|
+
IMPORTANT: When create a new artifact, always add it to the project using the add-artifact function.
|
|
29
|
+
|
|
30
|
+
{{#with project}}
|
|
31
|
+
<project id="{{id}}" name="{{name}}">
|
|
32
|
+
<spec>
|
|
33
|
+
{{spec}}
|
|
34
|
+
</spec>
|
|
35
|
+
<plan>
|
|
36
|
+
{{plan}}
|
|
37
|
+
</plan>
|
|
38
|
+
|
|
39
|
+
<artifacts>
|
|
40
|
+
{{#each artifacts}}
|
|
41
|
+
<artifact type="{{type}}" dxn="{{dxn}}">
|
|
42
|
+
{{name}}
|
|
43
|
+
</artifact>
|
|
44
|
+
{{/each}}
|
|
45
|
+
</artifacts>
|
|
46
|
+
</project>
|
|
47
|
+
{{/with}}
|
|
48
|
+
`,
|
|
49
|
+
inputs: [
|
|
50
|
+
{
|
|
51
|
+
name: 'project',
|
|
52
|
+
kind: 'function',
|
|
53
|
+
function: 'org.dxos.function.project.get-context',
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
}),
|
|
57
|
+
tools: Blueprint.toolDefinitions({ operations: [AddArtifact] }),
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
61
|
+
key: BLUEPRINT_KEY,
|
|
62
|
+
make,
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export default blueprint;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Database, Obj } from '@dxos/echo';
|
|
8
|
+
import { Operation } from '@dxos/operation';
|
|
9
|
+
|
|
10
|
+
import { AddArtifact } from './definitions';
|
|
11
|
+
import { Project } from '../../../types';
|
|
12
|
+
|
|
13
|
+
export default AddArtifact.pipe(
|
|
14
|
+
Operation.withHandler(
|
|
15
|
+
Effect.fnUntraced(function* ({ name, artifact }) {
|
|
16
|
+
if (!(yield* Database.load(artifact))) {
|
|
17
|
+
throw new Error('Artifact not found.');
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
const project = yield* Project.getFromChatContext;
|
|
21
|
+
|
|
22
|
+
Obj.change(project, (project) => {
|
|
23
|
+
project.artifacts.push({
|
|
24
|
+
name,
|
|
25
|
+
data: artifact,
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
}) as any,
|
|
29
|
+
),
|
|
30
|
+
);
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
import * as Layer from 'effect/Layer';
|
|
7
|
+
|
|
8
|
+
import { AiService } from '@dxos/ai';
|
|
9
|
+
import {
|
|
10
|
+
AiConversation,
|
|
11
|
+
functionInvocationServiceFromOperations,
|
|
12
|
+
ToolExecutionServices,
|
|
13
|
+
type ContextBinding,
|
|
14
|
+
} from '@dxos/assistant';
|
|
15
|
+
import { Database, Feed, Obj } from '@dxos/echo';
|
|
16
|
+
import { acquireReleaseResource } from '@dxos/effect';
|
|
17
|
+
import { QueueService } from '@dxos/functions';
|
|
18
|
+
import { invariant } from '@dxos/invariant';
|
|
19
|
+
import { Operation } from '@dxos/operation';
|
|
20
|
+
import { type Message } from '@dxos/types';
|
|
21
|
+
|
|
22
|
+
import { Project } from '../../../types';
|
|
23
|
+
import { Agent } from './definitions';
|
|
24
|
+
|
|
25
|
+
export default Agent.pipe(
|
|
26
|
+
Operation.withHandler(
|
|
27
|
+
Effect.fnUntraced(
|
|
28
|
+
function* ({ project: projectRef, prompt, event }) {
|
|
29
|
+
const project = yield* Database.load(projectRef);
|
|
30
|
+
invariant(Obj.instanceOf(Project.Project, project));
|
|
31
|
+
invariant(project.chat, 'Project has no chat.');
|
|
32
|
+
|
|
33
|
+
const chatFeed = yield* project.chat.pipe(
|
|
34
|
+
Database.load,
|
|
35
|
+
Effect.flatMap((chat) => Database.load(chat.feed)),
|
|
36
|
+
);
|
|
37
|
+
invariant(chatFeed, 'Project chat feed not found.');
|
|
38
|
+
const queueDxn = Feed.getQueueDxn(chatFeed);
|
|
39
|
+
invariant(queueDxn, 'Feed queue DXN not found.');
|
|
40
|
+
const chatQueue = yield* QueueService.getQueue<Message.Message | ContextBinding>(queueDxn);
|
|
41
|
+
const conversation = yield* acquireReleaseResource(() => new AiConversation({ queue: chatQueue }));
|
|
42
|
+
|
|
43
|
+
const iniativesInContext = conversation.context.getObjects().filter(Obj.instanceOf(Project.Project));
|
|
44
|
+
if (iniativesInContext.length !== 1) {
|
|
45
|
+
throw new Error('There should be exactly one project in context. Got: ' + iniativesInContext.length);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
if (!prompt && !event) {
|
|
49
|
+
throw new Error('Either prompt or event must be provided.');
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
let input = '';
|
|
53
|
+
if (prompt) {
|
|
54
|
+
input += `${prompt}\n\n`;
|
|
55
|
+
}
|
|
56
|
+
if (event) {
|
|
57
|
+
input += `<event>\n${JSON.stringify(event, null, 2)}\n</event>\n\n`;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
yield* conversation
|
|
61
|
+
.createRequest({
|
|
62
|
+
prompt: input,
|
|
63
|
+
})
|
|
64
|
+
.pipe(Effect.retry({ times: 2 }));
|
|
65
|
+
},
|
|
66
|
+
Effect.scoped,
|
|
67
|
+
Effect.provide(
|
|
68
|
+
Layer.mergeAll(AiService.model('@anthropic/claude-opus-4-6'), ToolExecutionServices).pipe(
|
|
69
|
+
Layer.provide(functionInvocationServiceFromOperations),
|
|
70
|
+
),
|
|
71
|
+
),
|
|
72
|
+
),
|
|
73
|
+
),
|
|
74
|
+
Operation.opaqueHandler,
|
|
75
|
+
);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { AiService, GenericToolkit } from '@dxos/ai';
|
|
8
|
+
import { AiContextService } from '@dxos/assistant';
|
|
9
|
+
import { Database, Obj, Ref } from '@dxos/echo';
|
|
10
|
+
import { QueueService, TracingService, TriggerEvent } from '@dxos/functions';
|
|
11
|
+
import { Operation } from '@dxos/operation';
|
|
12
|
+
|
|
13
|
+
import { Project } from '../../../types';
|
|
14
|
+
|
|
15
|
+
export const Agent = Operation.make({
|
|
16
|
+
meta: {
|
|
17
|
+
key: 'org.dxos.function.project.agent',
|
|
18
|
+
name: 'Project Agent',
|
|
19
|
+
description: 'Agentic worker that drives the project autonomously.',
|
|
20
|
+
},
|
|
21
|
+
input: Schema.Struct({
|
|
22
|
+
project: Schema.suspend(() => Ref.Ref(Project.Project)),
|
|
23
|
+
prompt: Schema.optional(Schema.String),
|
|
24
|
+
event: Schema.optional(TriggerEvent.TriggerEvent),
|
|
25
|
+
}),
|
|
26
|
+
output: Schema.Void,
|
|
27
|
+
services: [
|
|
28
|
+
AiService.AiService,
|
|
29
|
+
Database.Service,
|
|
30
|
+
QueueService,
|
|
31
|
+
// @deprecated TracingService kept for backward compat with tool handlers.
|
|
32
|
+
TracingService,
|
|
33
|
+
GenericToolkit.GenericToolkitProvider,
|
|
34
|
+
],
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const Qualifier = Operation.make({
|
|
38
|
+
meta: {
|
|
39
|
+
key: 'org.dxos.function.project.qualifier',
|
|
40
|
+
name: 'Project Qualifier',
|
|
41
|
+
description:
|
|
42
|
+
'Qualifier that determines if the event is relevant to the project. Puts the data into the input queue of the project.',
|
|
43
|
+
},
|
|
44
|
+
input: Schema.Struct({
|
|
45
|
+
project: Schema.suspend(() => Ref.Ref(Project.Project)),
|
|
46
|
+
event: TriggerEvent.TriggerEvent,
|
|
47
|
+
}),
|
|
48
|
+
output: Schema.Void,
|
|
49
|
+
services: [AiService.AiService, Database.Service],
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export const GetContext = Operation.make({
|
|
53
|
+
meta: {
|
|
54
|
+
key: 'org.dxos.function.project.get-context',
|
|
55
|
+
name: 'Get Project Context',
|
|
56
|
+
description: 'Get the context of an project.',
|
|
57
|
+
},
|
|
58
|
+
input: Schema.Struct({}),
|
|
59
|
+
output: Schema.Struct({
|
|
60
|
+
id: Schema.String,
|
|
61
|
+
name: Schema.String,
|
|
62
|
+
spec: Schema.String,
|
|
63
|
+
plan: Schema.String,
|
|
64
|
+
artifacts: Schema.Array(
|
|
65
|
+
Schema.Struct({
|
|
66
|
+
name: Schema.String,
|
|
67
|
+
type: Schema.optional(Schema.String),
|
|
68
|
+
dxn: Schema.optional(Schema.String),
|
|
69
|
+
}),
|
|
70
|
+
),
|
|
71
|
+
}),
|
|
72
|
+
services: [AiContextService, Database.Service],
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
export const AddArtifact = Operation.make({
|
|
76
|
+
meta: {
|
|
77
|
+
key: 'org.dxos.function.project.add-artifact',
|
|
78
|
+
name: 'Add artifact',
|
|
79
|
+
description: 'Adds a new artifact.',
|
|
80
|
+
},
|
|
81
|
+
input: Schema.Struct({
|
|
82
|
+
name: Schema.String.annotations({
|
|
83
|
+
description: 'The name of the artifact to add.',
|
|
84
|
+
}),
|
|
85
|
+
artifact: Ref.Ref(Obj.Unknown).annotations({
|
|
86
|
+
description: 'The artifact to add. Do NOT guess or try to generate the ID.',
|
|
87
|
+
}),
|
|
88
|
+
}),
|
|
89
|
+
output: Schema.Void,
|
|
90
|
+
services: [AiContextService, Database.Service],
|
|
91
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Database, Obj } from '@dxos/echo';
|
|
8
|
+
import { Operation } from '@dxos/operation';
|
|
9
|
+
|
|
10
|
+
import { GetContext } from './definitions';
|
|
11
|
+
import { Plan, Project } from '../../../types';
|
|
12
|
+
|
|
13
|
+
export default GetContext.pipe(
|
|
14
|
+
Operation.withHandler(
|
|
15
|
+
Effect.fnUntraced(function* () {
|
|
16
|
+
const project = yield* Project.getFromChatContext;
|
|
17
|
+
|
|
18
|
+
return {
|
|
19
|
+
id: project.id,
|
|
20
|
+
name: project.name,
|
|
21
|
+
spec: yield* project.spec.pipe(Database.load).pipe(
|
|
22
|
+
Effect.map((_) => _.content),
|
|
23
|
+
Effect.catchTag('ObjectNotFoundError', () => Effect.succeed('No spec found.')),
|
|
24
|
+
),
|
|
25
|
+
plan: yield* (
|
|
26
|
+
project.plan?.pipe(Database.load).pipe(
|
|
27
|
+
Effect.map(Plan.formatPlan),
|
|
28
|
+
Effect.catchTag('ObjectNotFoundError', () => Effect.succeed('No plan found.')),
|
|
29
|
+
) ?? Effect.succeed('No plan found.')
|
|
30
|
+
),
|
|
31
|
+
artifacts: yield* Effect.forEach(project.artifacts, (artifact) =>
|
|
32
|
+
Effect.gen(function* () {
|
|
33
|
+
return {
|
|
34
|
+
name: artifact.name,
|
|
35
|
+
type: yield* Database.load(artifact.data).pipe(
|
|
36
|
+
Effect.map(Obj.getTypename),
|
|
37
|
+
Effect.catchTag('ObjectNotFoundError', () => Effect.succeed('Artifact not found.')),
|
|
38
|
+
),
|
|
39
|
+
dxn: artifact.data.dxn.toString(),
|
|
40
|
+
};
|
|
41
|
+
}),
|
|
42
|
+
),
|
|
43
|
+
};
|
|
44
|
+
}) as any,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
6
|
+
|
|
7
|
+
export * from './definitions';
|
|
8
|
+
|
|
9
|
+
export const ProjectHandlers = OperationHandlerSet.lazy(
|
|
10
|
+
() => import('./add-artifact'),
|
|
11
|
+
() => import('./agent'),
|
|
12
|
+
() => import('./get-context'),
|
|
13
|
+
() => import('./qualifier'),
|
|
14
|
+
);
|