@dxos/assistant-toolkit 0.8.4-main.e8ec1fe → 0.8.4-main.fcfe5033a5
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-IGKQVEIL.mjs +30 -0
- package/dist/lib/neutral/add-artifact-IGKQVEIL.mjs.map +7 -0
- package/dist/lib/neutral/agent-3MJJ36QG.mjs +87 -0
- package/dist/lib/neutral/agent-3MJJ36QG.mjs.map +7 -0
- package/dist/lib/neutral/chunk-4BWLYLTR.mjs +29 -0
- package/dist/lib/neutral/chunk-4BWLYLTR.mjs.map +7 -0
- package/dist/lib/neutral/chunk-6DPL2YY5.mjs +68 -0
- package/dist/lib/neutral/chunk-6DPL2YY5.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-7VH5RFBT.mjs +392 -0
- package/dist/lib/neutral/chunk-7VH5RFBT.mjs.map +7 -0
- package/dist/lib/neutral/chunk-7WHAIX7N.mjs +692 -0
- package/dist/lib/neutral/chunk-7WHAIX7N.mjs.map +7 -0
- package/dist/lib/neutral/chunk-7WUXG23R.mjs +95 -0
- package/dist/lib/neutral/chunk-7WUXG23R.mjs.map +7 -0
- package/dist/lib/neutral/chunk-DV5DCOUE.mjs +52 -0
- package/dist/lib/neutral/chunk-DV5DCOUE.mjs.map +7 -0
- package/dist/lib/neutral/chunk-FKGWM6KF.mjs +140 -0
- package/dist/lib/neutral/chunk-FKGWM6KF.mjs.map +7 -0
- package/dist/lib/neutral/chunk-HCS67KNS.mjs +74 -0
- package/dist/lib/neutral/chunk-HCS67KNS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-I2YSCI65.mjs +76 -0
- package/dist/lib/neutral/chunk-I2YSCI65.mjs.map +7 -0
- package/dist/lib/neutral/chunk-IVXBQQDJ.mjs +332 -0
- package/dist/lib/neutral/chunk-IVXBQQDJ.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-JEQB7H27.mjs +70 -0
- package/dist/lib/neutral/chunk-JEQB7H27.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-RXITNKBD.mjs +73 -0
- package/dist/lib/neutral/chunk-RXITNKBD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-RZYPNKOB.mjs +53 -0
- package/dist/lib/neutral/chunk-RZYPNKOB.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VD2WAUU2.mjs +78 -0
- package/dist/lib/neutral/chunk-VD2WAUU2.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-VUGCOWRW.mjs +283 -0
- package/dist/lib/neutral/chunk-VUGCOWRW.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YPECGXN2.mjs +100 -0
- package/dist/lib/neutral/chunk-YPECGXN2.mjs.map +7 -0
- package/dist/lib/neutral/context-add-QAHU6I24.mjs +22 -0
- package/dist/lib/neutral/context-add-QAHU6I24.mjs.map +7 -0
- package/dist/lib/neutral/context-remove-VMZPMZ4E.mjs +22 -0
- package/dist/lib/neutral/context-remove-VMZPMZ4E.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-JBCPS6OC.mjs +36 -0
- package/dist/lib/neutral/create-project-JBCPS6OC.mjs.map +7 -0
- package/dist/lib/neutral/delete-7PDHEV4U.mjs +19 -0
- package/dist/lib/neutral/delete-7PDHEV4U.mjs.map +7 -0
- package/dist/lib/neutral/document-create-GKW354LS.mjs +55 -0
- package/dist/lib/neutral/document-create-GKW354LS.mjs.map +7 -0
- package/dist/lib/neutral/enable-blueprints-4UMPKGUD.mjs +48 -0
- package/dist/lib/neutral/enable-blueprints-4UMPKGUD.mjs.map +7 -0
- package/dist/lib/neutral/entity-extraction-T2M7C3WU.mjs +194 -0
- package/dist/lib/neutral/entity-extraction-T2M7C3WU.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-UKDOTMLZ.mjs +150 -0
- package/dist/lib/neutral/fetch-messages-UKDOTMLZ.mjs.map +7 -0
- package/dist/lib/neutral/get-context-TJOY4S33.mjs +35 -0
- package/dist/lib/neutral/get-context-TJOY4S33.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +250 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/load-ZTOGVHWP.mjs +17 -0
- package/dist/lib/neutral/load-ZTOGVHWP.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/{browser/index.mjs → neutral/mock-2ARYZ54S.mjs} +28 -2249
- package/dist/lib/neutral/mock-2ARYZ54S.mjs.map +7 -0
- package/dist/lib/neutral/object-create-7QCGL56E.mjs +43 -0
- package/dist/lib/neutral/object-create-7QCGL56E.mjs.map +7 -0
- package/dist/lib/neutral/object-delete-KXBWC4Q4.mjs +18 -0
- package/dist/lib/neutral/object-delete-KXBWC4Q4.mjs.map +7 -0
- package/dist/lib/neutral/object-update-B7RDX3JC.mjs +28 -0
- package/dist/lib/neutral/object-update-B7RDX3JC.mjs.map +7 -0
- package/dist/lib/neutral/project-4YLFG5BQ.mjs +23 -0
- package/dist/lib/neutral/project-4YLFG5BQ.mjs.map +7 -0
- package/dist/lib/neutral/project-rules-R5EYMWD3.mjs +78 -0
- package/dist/lib/neutral/project-rules-R5EYMWD3.mjs.map +7 -0
- package/dist/lib/neutral/prompt-4NEDW6FG.mjs +197 -0
- package/dist/lib/neutral/prompt-4NEDW6FG.mjs.map +7 -0
- package/dist/lib/neutral/qualifier-RKTN2QK4.mjs +104 -0
- package/dist/lib/neutral/qualifier-RKTN2QK4.mjs.map +7 -0
- package/dist/lib/neutral/query-BPDND25Q.mjs +32 -0
- package/dist/lib/neutral/query-BPDND25Q.mjs.map +7 -0
- package/dist/lib/neutral/query-V2ZWVVYP.mjs +70 -0
- package/dist/lib/neutral/query-V2ZWVVYP.mjs.map +7 -0
- package/dist/lib/neutral/query-blueprints-EKHEZAGD.mjs +17 -0
- package/dist/lib/neutral/query-blueprints-EKHEZAGD.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-FSHBM5CJ.mjs +42 -0
- package/dist/lib/neutral/relation-create-FSHBM5CJ.mjs.map +7 -0
- package/dist/lib/neutral/relation-delete-CYYQUIZY.mjs +18 -0
- package/dist/lib/neutral/relation-delete-CYYQUIZY.mjs.map +7 -0
- package/dist/lib/neutral/research-DZPSEZZC.mjs +106 -0
- package/dist/lib/neutral/research-DZPSEZZC.mjs.map +7 -0
- package/dist/lib/neutral/save-M4KRWV4W.mjs +23 -0
- package/dist/lib/neutral/save-M4KRWV4W.mjs.map +7 -0
- package/dist/lib/neutral/schema-add-RVV364G6.mjs +24 -0
- package/dist/lib/neutral/schema-add-RVV364G6.mjs.map +7 -0
- package/dist/lib/neutral/schema-list-4IYBLXFN.mjs +39 -0
- package/dist/lib/neutral/schema-list-4IYBLXFN.mjs.map +7 -0
- package/dist/lib/neutral/sync-issues-BBAMXSZN.mjs +179 -0
- package/dist/lib/neutral/sync-issues-BBAMXSZN.mjs.map +7 -0
- package/dist/lib/neutral/sync-triggers-56ELUXSO.mjs +112 -0
- package/dist/lib/neutral/sync-triggers-56ELUXSO.mjs.map +7 -0
- package/dist/lib/neutral/tag-add-OUDUBR3E.mjs +19 -0
- package/dist/lib/neutral/tag-add-OUDUBR3E.mjs.map +7 -0
- package/dist/lib/neutral/tag-remove-DI3ZSLFK.mjs +19 -0
- package/dist/lib/neutral/tag-remove-DI3ZSLFK.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-J64AYUS5.mjs +20 -0
- package/dist/lib/neutral/update-J64AYUS5.mjs.map +7 -0
- package/dist/lib/neutral/update-blueprints-ZNWR7BBN.mjs +17 -0
- package/dist/lib/neutral/update-blueprints-ZNWR7BBN.mjs.map +7 -0
- package/dist/lib/neutral/update-tasks-EH7MOB5X.mjs +46 -0
- package/dist/lib/neutral/update-tasks-EH7MOB5X.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/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 +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 +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 +89 -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 +44 -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/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 +7 -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 +35 -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 +17 -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 +60 -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/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 -171
- 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 -173
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
- package/dist/types/src/functions/exa/data/exa-search-1748337321991.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/exa-search-1748337331526.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/exa-search-1748337344119.d.ts.map +1 -0
- package/dist/types/src/functions/exa/data/index.d.ts.map +1 -0
- 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 -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 +73 -0
- package/dist/types/src/types/Agent.d.ts.map +1 -0
- 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/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 +86 -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/tsconfig.tsbuildinfo +1 -1
- package/package.json +50 -40
- package/src/blueprints/automation/blueprint.ts +108 -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 +50 -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.conversations.json +1 -0
- package/src/blueprints/browser/blueprint.test.ts +63 -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 +532 -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 +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/design/blueprint.test.ts +77 -0
- package/src/blueprints/design/{design-blueprint.ts → blueprint.ts} +20 -12
- 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/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 +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 +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/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} +23 -40
- package/src/blueprints/{planning/planning-blueprint.ts → planning-old/blueprint.ts} +20 -12
- 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/blueprints/project/blueprint.test.ts +626 -0
- 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 +68 -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 +48 -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 +135 -0
- package/src/blueprints/project-wizard/index.ts +6 -0
- package/src/blueprints/research/{research-blueprint.ts → blueprint.ts} +21 -13
- 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 +149 -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 +96 -0
- package/src/{functions/research/types.ts → blueprints/research/types/index.ts} +12 -6
- package/src/blueprints/testing.ts +32 -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 +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 -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/entity-extraction/definitions.ts +36 -0
- package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +15 -33
- package/src/functions/entity-extraction/entity-extraction.ts +81 -90
- 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 +26 -35
- package/src/functions/index.ts +1 -5
- package/src/index.ts +2 -2
- package/src/sync/sync.ts +38 -30
- package/src/testing/index.ts +2 -1
- package/src/testing/plugins.tsx +77 -0
- package/src/toolkits/WebToolkit.ts +33 -0
- package/src/toolkits/index.ts +1 -2
- package/src/types/Agent.ts +219 -0
- package/src/types/Chat.ts +62 -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.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/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/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/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.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/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.map +0 -1
- 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.map +0 -1
- 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/discord/discord-blueprint.ts +0 -34
- package/src/blueprints/linear/linear-blueprint.ts +0 -35
- 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/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.conversations.json +0 -1
- package/src/functions/research/research.test.ts +0 -179
- package/src/functions/research/research.ts +0 -190
- package/src/functions/tasks/index.ts +0 -11
- package/src/functions/tasks/read.ts +0 -34
- package/src/functions/tasks/update.ts +0 -52
- package/src/plugins.tsx +0 -68
- 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
- /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/dist/types/src/{testing → functions/exa}/data/exa-search-1748337321991.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337331526.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/exa-search-1748337344119.d.ts +0 -0
- /package/dist/types/src/{testing → functions/exa}/data/index.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
- /package/src/{testing → functions/exa}/data/exa-search-1748337321991.ts +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337331526.ts +0 -0
- /package/src/{testing → functions/exa}/data/exa-search-1748337344119.ts +0 -0
- /package/src/{testing → functions/exa}/data/index.ts +0 -0
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/assistant-toolkit",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.fcfe5033a5",
|
|
4
4
|
"description": "Assistant toolkit, definitions, and utilities.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/dxos/dxos"
|
|
10
|
+
},
|
|
7
11
|
"license": "MIT",
|
|
8
12
|
"author": "DXOS.org",
|
|
9
13
|
"type": "module",
|
|
@@ -11,57 +15,63 @@
|
|
|
11
15
|
".": {
|
|
12
16
|
"source": "./src/index.ts",
|
|
13
17
|
"types": "./dist/types/src/index.d.ts",
|
|
14
|
-
"
|
|
15
|
-
|
|
18
|
+
"default": "./dist/lib/neutral/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"./testing": {
|
|
21
|
+
"source": "./src/testing/index.ts",
|
|
22
|
+
"types": "./dist/types/src/testing/index.d.ts",
|
|
23
|
+
"default": "./dist/lib/neutral/testing/index.mjs"
|
|
16
24
|
}
|
|
17
25
|
},
|
|
18
|
-
"types": "dist/types/src/index.d.ts",
|
|
19
|
-
"typesVersions": {
|
|
20
|
-
"*": {}
|
|
21
|
-
},
|
|
22
26
|
"files": [
|
|
23
27
|
"dist",
|
|
24
28
|
"src"
|
|
25
29
|
],
|
|
26
30
|
"dependencies": {
|
|
27
|
-
"@effect/ai": "0.
|
|
28
|
-
"@effect/ai-anthropic": "0.
|
|
29
|
-
"@effect/experimental": "0.
|
|
30
|
-
"@effect/platform": "
|
|
31
|
-
"dfx": "^0.
|
|
31
|
+
"@effect/ai": "0.33.2",
|
|
32
|
+
"@effect/ai-anthropic": "0.23.0",
|
|
33
|
+
"@effect/experimental": "0.58.0",
|
|
34
|
+
"@effect/platform": "0.94.4",
|
|
35
|
+
"dfx": "^0.127.0",
|
|
32
36
|
"exa-js": "^1.5.12",
|
|
33
|
-
"@dxos/ai": "0.8.4-main.
|
|
34
|
-
"@dxos/
|
|
35
|
-
"@dxos/
|
|
36
|
-
"@dxos/
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/echo
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/effect": "0.8.4-main.
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/errors": "0.8.4-main.
|
|
45
|
-
"@dxos/
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
37
|
+
"@dxos/ai": "0.8.4-main.fcfe5033a5",
|
|
38
|
+
"@dxos/app-framework": "0.8.4-main.fcfe5033a5",
|
|
39
|
+
"@dxos/assistant": "0.8.4-main.fcfe5033a5",
|
|
40
|
+
"@dxos/blueprints": "0.8.4-main.fcfe5033a5",
|
|
41
|
+
"@dxos/client-protocol": "0.8.4-main.fcfe5033a5",
|
|
42
|
+
"@dxos/conductor": "0.8.4-main.fcfe5033a5",
|
|
43
|
+
"@dxos/context": "0.8.4-main.fcfe5033a5",
|
|
44
|
+
"@dxos/echo": "0.8.4-main.fcfe5033a5",
|
|
45
|
+
"@dxos/echo-db": "0.8.4-main.fcfe5033a5",
|
|
46
|
+
"@dxos/effect": "0.8.4-main.fcfe5033a5",
|
|
47
|
+
"@dxos/edge-client": "0.8.4-main.fcfe5033a5",
|
|
48
|
+
"@dxos/errors": "0.8.4-main.fcfe5033a5",
|
|
49
|
+
"@dxos/echo-protocol": "0.8.4-main.fcfe5033a5",
|
|
50
|
+
"@dxos/functions": "0.8.4-main.fcfe5033a5",
|
|
51
|
+
"@dxos/invariant": "0.8.4-main.fcfe5033a5",
|
|
52
|
+
"@dxos/functions-runtime": "0.8.4-main.fcfe5033a5",
|
|
53
|
+
"@dxos/log": "0.8.4-main.fcfe5033a5",
|
|
54
|
+
"@dxos/react-ui": "0.8.4-main.fcfe5033a5",
|
|
55
|
+
"@dxos/plugin-markdown": "0.8.4-main.fcfe5033a5",
|
|
56
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.fcfe5033a5",
|
|
57
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.fcfe5033a5",
|
|
58
|
+
"@dxos/schema": "0.8.4-main.fcfe5033a5",
|
|
59
|
+
"@dxos/util": "0.8.4-main.fcfe5033a5",
|
|
60
|
+
"@dxos/types": "0.8.4-main.fcfe5033a5",
|
|
61
|
+
"@dxos/keys": "0.8.4-main.fcfe5033a5",
|
|
62
|
+
"@dxos/operation": "0.8.4-main.fcfe5033a5"
|
|
55
63
|
},
|
|
56
64
|
"devDependencies": {
|
|
57
|
-
"effect": "3.
|
|
58
|
-
"react": "~19.2.
|
|
59
|
-
"react-dom": "~19.2.
|
|
65
|
+
"effect": "3.20.0",
|
|
66
|
+
"react": "~19.2.3",
|
|
67
|
+
"react-dom": "~19.2.3",
|
|
68
|
+
"@dxos/ui-theme": "0.8.4-main.fcfe5033a5"
|
|
60
69
|
},
|
|
61
70
|
"peerDependencies": {
|
|
62
|
-
"effect": "
|
|
63
|
-
"react": "
|
|
64
|
-
"react-dom": "
|
|
71
|
+
"effect": "3.20.0",
|
|
72
|
+
"react": "~19.2.3",
|
|
73
|
+
"react-dom": "~19.2.3",
|
|
74
|
+
"@dxos/ui-theme": "0.8.4-main.fcfe5033a5"
|
|
65
75
|
},
|
|
66
76
|
"publishConfig": {
|
|
67
77
|
"access": "public"
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
6
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
7
|
+
import { Ref } from '@dxos/echo';
|
|
8
|
+
import { Trigger } from '@dxos/functions';
|
|
9
|
+
import { Operation } from '@dxos/operation';
|
|
10
|
+
import { Text } from '@dxos/schema';
|
|
11
|
+
import { trim } from '@dxos/util';
|
|
12
|
+
|
|
13
|
+
const BLUEPRINT_KEY = 'dxos.org/blueprint/automation';
|
|
14
|
+
|
|
15
|
+
const instructions = trim`
|
|
16
|
+
Automation allows you to automatically initiate actions based on events.
|
|
17
|
+
Automations are configured by creating a trigger that references a function.
|
|
18
|
+
Whenever event that matches the trigger occurs, the function is invoked.
|
|
19
|
+
|
|
20
|
+
## Configuration
|
|
21
|
+
|
|
22
|
+
Triggers are configured by the properties of the Trigger object.
|
|
23
|
+
- enabled: Must be true for trigger to run.
|
|
24
|
+
- spec: Events that the trigger matches.
|
|
25
|
+
- 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.
|
|
26
|
+
- input: The spec of the input data that will be passed to the function.
|
|
27
|
+
|
|
28
|
+
## Input patterns
|
|
29
|
+
|
|
30
|
+
Input to the invoked function is defined by the input property of the Trigger object.
|
|
31
|
+
It's an object that supports constants or template strings.
|
|
32
|
+
|
|
33
|
+
Example:
|
|
34
|
+
|
|
35
|
+
{
|
|
36
|
+
item: '{{event.item}}',
|
|
37
|
+
instructions: 'Summarize and perform entity-extraction'
|
|
38
|
+
mailbox: { '/': 'dxn:echo:AAA:ZZZ' }
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
## Trigger kinds
|
|
42
|
+
|
|
43
|
+
- Timer: Triggered by a cron schedule.
|
|
44
|
+
- Queue: Subscribes and processes items begginging to end.
|
|
45
|
+
Note: queues are the same as feeds. The queue DXN should be of form: dxn:queue:data:<space-id>:<queue-id>.
|
|
46
|
+
- Subscription: Subscribes and processes database items based on a query.
|
|
47
|
+
|
|
48
|
+
Avoid: email and webhook triggers.
|
|
49
|
+
|
|
50
|
+
## Editing triggers
|
|
51
|
+
|
|
52
|
+
Triggers are represented as objects of type ${Trigger.Trigger.typename}.
|
|
53
|
+
You need access to the Database blueprint to manipulate triggers.
|
|
54
|
+
Read trigger schema before manipulating triggers.
|
|
55
|
+
Having a Trigger object in the database is enough to setup an automation.
|
|
56
|
+
|
|
57
|
+
## Examples
|
|
58
|
+
|
|
59
|
+
Timer:
|
|
60
|
+
|
|
61
|
+
{
|
|
62
|
+
"function": { "/": "dxn:echo:AAA:ZZZ" },
|
|
63
|
+
"enabled": true,
|
|
64
|
+
"spec": {
|
|
65
|
+
"kind": "timer",
|
|
66
|
+
"cron": "*/5 * * * *"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
Queue:
|
|
71
|
+
|
|
72
|
+
{
|
|
73
|
+
"function": { "/": "dxn:echo:AAA:ZZZ" },
|
|
74
|
+
"enabled": true,
|
|
75
|
+
"spec": {
|
|
76
|
+
"kind": "queue",
|
|
77
|
+
"queue": "dxn:queue:data:XXX:YYY"
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
Subscription:
|
|
82
|
+
|
|
83
|
+
{
|
|
84
|
+
"function": { "/": "dxn:echo:AAA:ZZZ" },
|
|
85
|
+
"enabled": true,
|
|
86
|
+
"spec": {
|
|
87
|
+
"kind": "subscription",
|
|
88
|
+
"query": { "ast": { "type": "select", "filter": { "type": "object", "typename": "dxn:type:org.dxos.type.person" } } }
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
|
|
93
|
+
const make = () =>
|
|
94
|
+
Blueprint.make({
|
|
95
|
+
key: BLUEPRINT_KEY,
|
|
96
|
+
name: 'Triggers',
|
|
97
|
+
description: 'Trigger management and automation.',
|
|
98
|
+
instructions: {
|
|
99
|
+
source: Ref.make(Text.make(instructions)),
|
|
100
|
+
},
|
|
101
|
+
});
|
|
102
|
+
|
|
103
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
104
|
+
key: BLUEPRINT_KEY,
|
|
105
|
+
make,
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export default blueprint;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"conversations":[{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"query-blueprints","description":"Queries available blueprints.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"enable-blueprints","description":"Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.","inputSchema":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The keys of the blueprints to enable.","examples":[["org.dxos.blueprint.markdown","org.dxos.blueprint.database"]]}},"additionalProperties":false}},{"name":"refresh-blueprints","description":"Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You can call blueprint manager tools. When asked to refresh or sync blueprints from the registry,\ncall the refresh blueprints tool once and then stop.\n\n## Blueprints Definitions\n\n<blueprint>\n You can query available blueprints and enable them in the current conversation.\n Use [query-blueprints] to refresh the list of available blueprints.\n Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.\n Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.\n Only blueprints with agentCanEnable=true can be enabled by the agent.\n \n <available_blueprints>\n - org.dxos.blueprint.database \"Database\" -- Query and manipulate objects in the ECHO database. [agent-can-enable]\n - org.dxos.blueprint.markdown \"Markdown\" -- Work with markdown documents. [agent-can-enable]\n - org.dxos.blueprint.research \"Research\" -- Researches the web and creates structured data.\n </available_blueprints>\n \n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n</blueprint>","options":{}},{"role":"user","content":"Refresh blueprints from the registry so database copies match the built-in definitions.","options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01TBTMGS3U1dSyujvADu5sV7","modelId":"claude-opus-4-6","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"reasoning-start","id":"0","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"The user wants to refresh blueprints","metadata":{}},{"type":"reasoning-delta","id":"0","delta":" from the registry.","metadata":{}},{"type":"reasoning-delta","id":"0","delta":"","metadata":{"anthropic":{"type":"thinking","signature":"EvIBClkIDBgCKkB80YOcko364VSaulfRzM8X76fyNXMnETkUUFoQcYpg3o7JCxnTb9ja4DC5rFEIzSicbmTYjXBq1JLzZZkSAcy9Mg9jbGF1ZGUtb3B1cy00LTY4ABIMfcn16jEiZ4g9FNh8GgwaXU83DG0p7kZNgmoiMHkhZF/0sINKrWl2dk944tPJZcL7iozZSBbyoSljWkuwPm2wyoCoyEnQq8Fh/oTVKipHb5R/moX69znTniGyL9IWD/+E1gsQlBRU0HASMJDBrG0q1xUUV//caZbNPboZrFdCXnjSb7DZJMZRwLeqrS4mIIJlPs/SkKUYAQ=="}}},{"type":"reasoning-end","id":"0","metadata":{}},{"type":"text-start","id":"1","metadata":{}},{"type":"text-delta","id":"1","delta":"I'll refresh the blueprints from the registry now to ensure the database copies are up to date.","metadata":{}},{"type":"text-end","id":"1","metadata":{}},{"type":"tool-params-start","id":"toolu_015Euwfup8HAM1CjYav9Tubf","name":"refresh-blueprints","providerExecuted":false,"metadata":{}},{"type":"tool-params-delta","id":"toolu_015Euwfup8HAM1CjYav9Tubf","delta":"","metadata":{}},{"type":"tool-params-end","id":"toolu_015Euwfup8HAM1CjYav9Tubf","metadata":{}},{"type":"finish","reason":"tool-calls","usage":{"inputTokens":1144,"outputTokens":80,"totalTokens":1224},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1144,"output_tokens":8,"server_tool_use":null,"service_tier":"standard"}}}}]},{"parameters":{"model":"@anthropic/claude-opus-4-6","stream":true,"tools":[{"name":"query-blueprints","description":"Queries available blueprints.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}},{"name":"enable-blueprints","description":"Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.","inputSchema":{"type":"object","required":["keys"],"properties":{"keys":{"type":"array","items":{"type":"string"},"description":"The keys of the blueprints to enable.","examples":[["org.dxos.blueprint.markdown","org.dxos.blueprint.database"]]}},"additionalProperties":false}},{"name":"refresh-blueprints","description":"Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.","inputSchema":{"type":"object","properties":{},"required":[],"additionalProperties":false}}]},"prompt":{"content":[{"role":"system","content":"You can call blueprint manager tools. When asked to refresh or sync blueprints from the registry,\ncall the refresh blueprints tool once and then stop.\n\n## Blueprints Definitions\n\n<blueprint>\n You can query available blueprints and enable them in the current conversation.\n Use [query-blueprints] to refresh the list of available blueprints.\n Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.\n Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.\n Only blueprints with agentCanEnable=true can be enabled by the agent.\n \n <available_blueprints>\n - org.dxos.blueprint.database \"Database\" -- Query and manipulate objects in the ECHO database. [agent-can-enable]\n - org.dxos.blueprint.markdown \"Markdown\" -- Work with markdown documents. [agent-can-enable]\n - org.dxos.blueprint.research \"Research\" -- Researches the web and creates structured data.\n </available_blueprints>\n \n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n</blueprint>","options":{}},{"role":"user","content":"Refresh blueprints from the registry so database copies match the built-in definitions.","options":{}},{"role":"assistant","content":[{"type":"reasoning","text":"The user wants to refresh blueprints from the registry.","options":{}},{"type":"text","text":"I'll refresh the blueprints from the registry now to ensure the database copies are up to date.","options":{}},{"type":"tool-call","id":"toolu_015Euwfup8HAM1CjYav9Tubf","name":"refresh-blueprints","params":{},"providerExecuted":false,"options":{}}],"options":{}},{"role":"tool","content":[{"type":"tool-result","id":"toolu_015Euwfup8HAM1CjYav9Tubf","name":"refresh-blueprints","isFailure":false,"result":{},"providerExecuted":false,"options":{}}],"options":{"anthropic":{"cacheControl":{"ttl":"5m","type":"ephemeral"}}}}]},"response":[{"type":"response-metadata","id":"msg_01SR6yhAEXWUYe4x4rQj1C7s","modelId":"claude-opus-4-6","timestamp":"1970-01-01T00:00:00.000Z","metadata":{}},{"type":"text-start","id":"0","metadata":{}},{"type":"text-delta","id":"0","delta":"The blueprints stored","metadata":{}},{"type":"text-delta","id":"0","delta":" in the database have been updated to match the latest built-in registry definitions. Everything should now be in sync.","metadata":{}},{"type":"text-end","id":"0","metadata":{}},{"type":"finish","reason":"stop","usage":{"inputTokens":1187,"outputTokens":31,"totalTokens":1218},"metadata":{"anthropic":{"usage":{"cache_creation":{"ephemeral_1h_input_tokens":0,"ephemeral_5m_input_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"input_tokens":1187,"output_tokens":5,"server_tool_use":null,"service_tier":"standard"}}}}]}]}
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, expect, it } from '@effect/vitest';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
import * as Layer from 'effect/Layer';
|
|
8
|
+
|
|
9
|
+
import { MemoizedAiService } from '@dxos/ai/testing';
|
|
10
|
+
import { AiContextService, AiSessionService } from '@dxos/assistant';
|
|
11
|
+
import { AssistantTestLayer } from '@dxos/assistant/testing';
|
|
12
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
13
|
+
import { Database, DXN, Obj, Ref } from '@dxos/echo';
|
|
14
|
+
import { TestHelpers } from '@dxos/effect/testing';
|
|
15
|
+
import { ObjectId } from '@dxos/keys';
|
|
16
|
+
import { Operation } from '@dxos/operation';
|
|
17
|
+
import { trim } from '@dxos/util';
|
|
18
|
+
|
|
19
|
+
import DatabaseBlueprint from '../database/blueprint';
|
|
20
|
+
import MarkdownBlueprint from '../markdown/blueprint';
|
|
21
|
+
import ResearchBlueprint from '../research/blueprint';
|
|
22
|
+
import BlueprintManagerDefinition from './blueprint';
|
|
23
|
+
import { BlueprintManagerHandlers, EnableBlueprints, QueryBlueprints } from './functions';
|
|
24
|
+
|
|
25
|
+
ObjectId.dangerouslyDisableRandomness();
|
|
26
|
+
|
|
27
|
+
const TestLayer = AssistantTestLayer({
|
|
28
|
+
aiServicePreset: 'edge-remote',
|
|
29
|
+
operationHandlers: BlueprintManagerHandlers,
|
|
30
|
+
types: [Blueprint.Blueprint],
|
|
31
|
+
blueprints: [DatabaseBlueprint.make(), MarkdownBlueprint.make(), ResearchBlueprint.make()],
|
|
32
|
+
tracing: 'pretty',
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const provideTestLayers = Effect.provide(AiSessionService.layerNewFeed().pipe(Layer.provideMerge(TestLayer)));
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Gets the conversation DXN for passing to Operation.invoke options.
|
|
39
|
+
*/
|
|
40
|
+
const getConversationDxn = Effect.gen(function* () {
|
|
41
|
+
const session = yield* AiSessionService;
|
|
42
|
+
return Obj.getDXN(session.feed).toString() as DXN.String;
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
describe('Blueprint Manager', () => {
|
|
46
|
+
it.effect(
|
|
47
|
+
'query-blueprints: returns all registered blueprints',
|
|
48
|
+
Effect.fnUntraced(
|
|
49
|
+
function* (_) {
|
|
50
|
+
const conversation = yield* getConversationDxn;
|
|
51
|
+
const result = yield* Operation.invoke(QueryBlueprints, {}, { conversation });
|
|
52
|
+
expect(result).toHaveLength(3);
|
|
53
|
+
const keys = result.map((blueprint: Blueprint.Blueprint) => blueprint.key);
|
|
54
|
+
expect(keys).toContain('org.dxos.blueprint.database');
|
|
55
|
+
expect(keys).toContain('org.dxos.blueprint.markdown');
|
|
56
|
+
expect(keys).toContain('org.dxos.blueprint.research');
|
|
57
|
+
},
|
|
58
|
+
provideTestLayers,
|
|
59
|
+
TestHelpers.provideTestContext,
|
|
60
|
+
),
|
|
61
|
+
{ timeout: 30_000 },
|
|
62
|
+
);
|
|
63
|
+
|
|
64
|
+
it.effect(
|
|
65
|
+
'enable-blueprints: enables blueprints with agentCanEnable=true',
|
|
66
|
+
Effect.fnUntraced(
|
|
67
|
+
function* (_) {
|
|
68
|
+
const conversation = yield* getConversationDxn;
|
|
69
|
+
const { enabled, rejected } = yield* Operation.invoke(
|
|
70
|
+
EnableBlueprints,
|
|
71
|
+
{ keys: ['org.dxos.blueprint.database'] },
|
|
72
|
+
{ conversation },
|
|
73
|
+
);
|
|
74
|
+
expect(enabled).toHaveLength(1);
|
|
75
|
+
expect(enabled[0].key).toBe('org.dxos.blueprint.database');
|
|
76
|
+
expect(rejected).toHaveLength(0);
|
|
77
|
+
|
|
78
|
+
const { binder } = yield* AiContextService;
|
|
79
|
+
const bound = binder.getBlueprints();
|
|
80
|
+
expect(bound.some((bp: Blueprint.Blueprint) => bp.key === 'org.dxos.blueprint.database')).toBe(true);
|
|
81
|
+
},
|
|
82
|
+
provideTestLayers,
|
|
83
|
+
TestHelpers.provideTestContext,
|
|
84
|
+
),
|
|
85
|
+
{ timeout: 30_000 },
|
|
86
|
+
);
|
|
87
|
+
|
|
88
|
+
it.effect(
|
|
89
|
+
'enable-blueprints: rejects blueprints without agentCanEnable',
|
|
90
|
+
Effect.fnUntraced(
|
|
91
|
+
function* (_) {
|
|
92
|
+
const conversation = yield* getConversationDxn;
|
|
93
|
+
const { enabled, rejected } = yield* Operation.invoke(
|
|
94
|
+
EnableBlueprints,
|
|
95
|
+
{ keys: ['org.dxos.blueprint.research'] },
|
|
96
|
+
{ conversation },
|
|
97
|
+
);
|
|
98
|
+
expect(enabled).toHaveLength(0);
|
|
99
|
+
expect(rejected).toHaveLength(1);
|
|
100
|
+
expect(rejected[0].key).toBe('org.dxos.blueprint.research');
|
|
101
|
+
|
|
102
|
+
const { binder } = yield* AiContextService;
|
|
103
|
+
const bound = binder.getBlueprints();
|
|
104
|
+
expect(bound.some((bp: Blueprint.Blueprint) => bp.key === 'org.dxos.blueprint.research')).toBe(false);
|
|
105
|
+
},
|
|
106
|
+
provideTestLayers,
|
|
107
|
+
TestHelpers.provideTestContext,
|
|
108
|
+
),
|
|
109
|
+
{ timeout: 30_000 },
|
|
110
|
+
);
|
|
111
|
+
|
|
112
|
+
it.effect(
|
|
113
|
+
'enable-blueprints: mixed keys enables only allowed ones',
|
|
114
|
+
Effect.fnUntraced(
|
|
115
|
+
function* (_) {
|
|
116
|
+
const conversation = yield* getConversationDxn;
|
|
117
|
+
const { enabled, rejected } = yield* Operation.invoke(
|
|
118
|
+
EnableBlueprints,
|
|
119
|
+
{ keys: ['org.dxos.blueprint.database', 'org.dxos.blueprint.markdown', 'org.dxos.blueprint.research'] },
|
|
120
|
+
{ conversation },
|
|
121
|
+
);
|
|
122
|
+
expect(enabled).toHaveLength(2);
|
|
123
|
+
const enabledKeys = enabled.map((bp: Blueprint.Blueprint) => bp.key);
|
|
124
|
+
expect(enabledKeys).toContain('org.dxos.blueprint.database');
|
|
125
|
+
expect(enabledKeys).toContain('org.dxos.blueprint.markdown');
|
|
126
|
+
expect(rejected).toHaveLength(1);
|
|
127
|
+
expect(rejected[0].key).toBe('org.dxos.blueprint.research');
|
|
128
|
+
},
|
|
129
|
+
provideTestLayers,
|
|
130
|
+
TestHelpers.provideTestContext,
|
|
131
|
+
),
|
|
132
|
+
{ timeout: 30_000 },
|
|
133
|
+
);
|
|
134
|
+
|
|
135
|
+
it.effect(
|
|
136
|
+
'enable-blueprints: unknown keys are rejected with reason',
|
|
137
|
+
Effect.fnUntraced(
|
|
138
|
+
function* (_) {
|
|
139
|
+
const conversation = yield* getConversationDxn;
|
|
140
|
+
const { enabled, rejected } = yield* Operation.invoke(
|
|
141
|
+
EnableBlueprints,
|
|
142
|
+
{ keys: ['org.dxos.blueprint.nonexistent'] },
|
|
143
|
+
{ conversation },
|
|
144
|
+
);
|
|
145
|
+
expect(enabled).toHaveLength(0);
|
|
146
|
+
expect(rejected).toHaveLength(1);
|
|
147
|
+
expect(rejected[0].key).toBe('org.dxos.blueprint.nonexistent');
|
|
148
|
+
expect(rejected[0].reason).toContain('not found');
|
|
149
|
+
},
|
|
150
|
+
provideTestLayers,
|
|
151
|
+
TestHelpers.provideTestContext,
|
|
152
|
+
),
|
|
153
|
+
{ timeout: 30_000 },
|
|
154
|
+
);
|
|
155
|
+
|
|
156
|
+
it.scoped(
|
|
157
|
+
'refresh-blueprints: agent syncs a mutated database blueprint from the registry',
|
|
158
|
+
Effect.fnUntraced(
|
|
159
|
+
function* (_) {
|
|
160
|
+
const registry = yield* Blueprint.RegistryService;
|
|
161
|
+
const canonical = registry.getByKey('org.dxos.blueprint.database');
|
|
162
|
+
expect(canonical).toBeDefined();
|
|
163
|
+
|
|
164
|
+
const stored = yield* Blueprint.upsert('org.dxos.blueprint.database');
|
|
165
|
+
const originalName = stored.name;
|
|
166
|
+
Obj.change(stored, (stored) => {
|
|
167
|
+
stored.name = '___TEST_MUTATED_BLUEPRINT_NAME___';
|
|
168
|
+
});
|
|
169
|
+
yield* Database.flush();
|
|
170
|
+
expect(stored.name).toBe('___TEST_MUTATED_BLUEPRINT_NAME___');
|
|
171
|
+
|
|
172
|
+
const session = yield* AiSessionService;
|
|
173
|
+
yield* Effect.promise(() => session.context.open());
|
|
174
|
+
yield* Effect.promise(() =>
|
|
175
|
+
session.context.bind({
|
|
176
|
+
blueprints: [Ref.make(BlueprintManagerDefinition.make())],
|
|
177
|
+
}),
|
|
178
|
+
);
|
|
179
|
+
|
|
180
|
+
yield* session
|
|
181
|
+
.createRequest({
|
|
182
|
+
system: trim`
|
|
183
|
+
You can call blueprint manager tools. When asked to refresh or sync blueprints from the registry,
|
|
184
|
+
call the refresh blueprints tool once and then stop.
|
|
185
|
+
`,
|
|
186
|
+
prompt: trim`
|
|
187
|
+
Refresh blueprints from the registry so database copies match the built-in definitions.
|
|
188
|
+
`,
|
|
189
|
+
})
|
|
190
|
+
.pipe(Effect.provide(session.makeToolExecutionServices()));
|
|
191
|
+
|
|
192
|
+
expect(stored.name).toBe(originalName);
|
|
193
|
+
},
|
|
194
|
+
provideTestLayers,
|
|
195
|
+
TestHelpers.provideTestContext,
|
|
196
|
+
),
|
|
197
|
+
MemoizedAiService.isGenerationEnabled() ? 240_000 : 60_000,
|
|
198
|
+
);
|
|
199
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { EnableBlueprints, QueryBlueprints, UpdateBlueprints } from './functions';
|
|
10
|
+
|
|
11
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.blueprint-manager';
|
|
12
|
+
|
|
13
|
+
const make = () =>
|
|
14
|
+
Blueprint.make({
|
|
15
|
+
key: BLUEPRINT_KEY,
|
|
16
|
+
name: 'Blueprint Manager',
|
|
17
|
+
description: 'Query and enable blueprints in the current conversation.',
|
|
18
|
+
instructions: Template.make({
|
|
19
|
+
source: trim`
|
|
20
|
+
You can query available blueprints and enable them in the current conversation.
|
|
21
|
+
Use [query-blueprints] to refresh the list of available blueprints.
|
|
22
|
+
Use [refresh-blueprints] to update blueprint objects stored in the database from the built-in registry when they have drifted.
|
|
23
|
+
Use [enable-blueprints] to enable blueprints by their keys. Always call [query-blueprints] first.
|
|
24
|
+
Only blueprints with agentCanEnable=true can be enabled by the agent.
|
|
25
|
+
|
|
26
|
+
<available_blueprints>
|
|
27
|
+
{{#each blueprints}}
|
|
28
|
+
- {{key}} "{{name}}"{{#if description}} -- {{description}}{{/if}}{{#if agentCanEnable}} [agent-can-enable]{{/if}}
|
|
29
|
+
{{/each}}
|
|
30
|
+
</available_blueprints>
|
|
31
|
+
|
|
32
|
+
NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.
|
|
33
|
+
`,
|
|
34
|
+
inputs: [
|
|
35
|
+
{
|
|
36
|
+
name: 'blueprints',
|
|
37
|
+
kind: 'function',
|
|
38
|
+
function: QueryBlueprints.meta.key,
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
}),
|
|
42
|
+
tools: Blueprint.toolDefinitions({ operations: [QueryBlueprints, EnableBlueprints, UpdateBlueprints] }),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
46
|
+
key: BLUEPRINT_KEY,
|
|
47
|
+
make,
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
export default blueprint;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { AiContextService } from '@dxos/assistant';
|
|
8
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
9
|
+
import { Database } from '@dxos/echo';
|
|
10
|
+
import { Operation } from '@dxos/operation';
|
|
11
|
+
|
|
12
|
+
export const QueryBlueprints = Operation.make({
|
|
13
|
+
meta: {
|
|
14
|
+
key: 'org.dxos.function.blueprint-manager.query-blueprints',
|
|
15
|
+
name: 'Query blueprints',
|
|
16
|
+
description: 'Queries available blueprints.',
|
|
17
|
+
},
|
|
18
|
+
input: Schema.Struct({}),
|
|
19
|
+
output: Schema.Array(Blueprint.Blueprint),
|
|
20
|
+
services: [Blueprint.RegistryService],
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
export const EnableBlueprints = Operation.make({
|
|
24
|
+
meta: {
|
|
25
|
+
key: 'org.dxos.function.blueprint-manager.enable-blueprints',
|
|
26
|
+
name: 'Enable blueprints',
|
|
27
|
+
description:
|
|
28
|
+
'Enables blueprints in the current conversation by their keys. Only blueprints with agentCanEnable=true can be enabled. Always call [query-blueprints] first to discover available blueprint keys.',
|
|
29
|
+
},
|
|
30
|
+
input: Schema.Struct({
|
|
31
|
+
keys: Schema.Array(Schema.String).annotations({
|
|
32
|
+
description: 'The keys of the blueprints to enable.',
|
|
33
|
+
examples: [['org.dxos.blueprint.markdown', 'org.dxos.blueprint.database']],
|
|
34
|
+
}),
|
|
35
|
+
}),
|
|
36
|
+
output: Schema.Struct({
|
|
37
|
+
enabled: Schema.Array(Blueprint.Blueprint),
|
|
38
|
+
rejected: Schema.Array(
|
|
39
|
+
Schema.Struct({
|
|
40
|
+
key: Schema.String,
|
|
41
|
+
reason: Schema.String,
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
}),
|
|
45
|
+
services: [Blueprint.RegistryService, Database.Service, AiContextService],
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export const UpdateBlueprints = Operation.make({
|
|
49
|
+
meta: {
|
|
50
|
+
key: 'org.dxos.function.blueprint-manager.refresh-blueprints',
|
|
51
|
+
name: 'Refresh blueprints',
|
|
52
|
+
description:
|
|
53
|
+
'Updates the blueprints saved to the database with the latest version from the registry. Sometimes blueprints in the database can become outdated. Use this function to pull in the latest versions.',
|
|
54
|
+
},
|
|
55
|
+
input: Schema.Struct({}),
|
|
56
|
+
output: Schema.Void,
|
|
57
|
+
services: [Blueprint.RegistryService, Database.Service],
|
|
58
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { AiContextService } from '@dxos/assistant';
|
|
8
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
9
|
+
import { Ref } from '@dxos/echo';
|
|
10
|
+
import { Operation } from '@dxos/operation';
|
|
11
|
+
|
|
12
|
+
import { EnableBlueprints } from './definitions';
|
|
13
|
+
|
|
14
|
+
export default EnableBlueprints.pipe(
|
|
15
|
+
Operation.withHandler(
|
|
16
|
+
Effect.fnUntraced(function* ({ keys }) {
|
|
17
|
+
const registry = yield* Blueprint.RegistryService;
|
|
18
|
+
const enabled: Blueprint.Blueprint[] = [];
|
|
19
|
+
const rejected: { key: string; reason: string }[] = [];
|
|
20
|
+
|
|
21
|
+
for (const key of keys) {
|
|
22
|
+
const blueprint = registry.getByKey(key);
|
|
23
|
+
if (!blueprint) {
|
|
24
|
+
rejected.push({ key, reason: 'Blueprint not found in registry.' });
|
|
25
|
+
continue;
|
|
26
|
+
}
|
|
27
|
+
if (!blueprint.agentCanEnable) {
|
|
28
|
+
rejected.push({ key, reason: 'Blueprint does not allow agent auto-enable (agentCanEnable is not set).' });
|
|
29
|
+
continue;
|
|
30
|
+
}
|
|
31
|
+
const dbBlueprint = yield* Blueprint.upsert(key).pipe(Effect.orDie);
|
|
32
|
+
enabled.push(dbBlueprint);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
if (enabled.length > 0) {
|
|
36
|
+
yield* AiContextService.bindContext({
|
|
37
|
+
blueprints: enabled.map(Ref.make),
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return { enabled, rejected };
|
|
42
|
+
}),
|
|
43
|
+
),
|
|
44
|
+
);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { OperationHandlerSet } from '@dxos/operation';
|
|
6
|
+
|
|
7
|
+
export * from './definitions';
|
|
8
|
+
|
|
9
|
+
export const BlueprintManagerHandlers = OperationHandlerSet.lazy(
|
|
10
|
+
() => import('./query-blueprints'),
|
|
11
|
+
() => import('./enable-blueprints'),
|
|
12
|
+
() => import('./update-blueprints'),
|
|
13
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
8
|
+
import { Operation } from '@dxos/operation';
|
|
9
|
+
|
|
10
|
+
import { QueryBlueprints } from './definitions';
|
|
11
|
+
|
|
12
|
+
export default QueryBlueprints.pipe(
|
|
13
|
+
Operation.withHandler(
|
|
14
|
+
Effect.fnUntraced(function* () {
|
|
15
|
+
const registry = yield* Blueprint.RegistryService;
|
|
16
|
+
return registry.query();
|
|
17
|
+
}),
|
|
18
|
+
),
|
|
19
|
+
);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2026 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
8
|
+
import { Operation } from '@dxos/operation';
|
|
9
|
+
|
|
10
|
+
import { UpdateBlueprints } from './definitions';
|
|
11
|
+
|
|
12
|
+
export default UpdateBlueprints.pipe(
|
|
13
|
+
Operation.withHandler(
|
|
14
|
+
Effect.fnUntraced(function* () {
|
|
15
|
+
const registry = yield* Blueprint.RegistryService;
|
|
16
|
+
yield* registry.updateBlueprints();
|
|
17
|
+
}),
|
|
18
|
+
),
|
|
19
|
+
);
|