@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
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, expect, it } from '@effect/vitest';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
import * as Exit from 'effect/Exit';
|
|
8
|
+
|
|
9
|
+
import { MemoizedAiService } from '@dxos/ai/testing';
|
|
10
|
+
import { AiSession } from '@dxos/assistant';
|
|
11
|
+
import { AssistantTestLayerWithTriggers } from '@dxos/assistant/testing';
|
|
12
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
13
|
+
import { SpaceProperties } from '@dxos/client-protocol';
|
|
14
|
+
import { Database, Feed, Obj, Ref } from '@dxos/echo';
|
|
15
|
+
import { Collection } from '@dxos/echo';
|
|
16
|
+
import { acquireReleaseResource } from '@dxos/effect';
|
|
17
|
+
import { TestHelpers } from '@dxos/effect/testing';
|
|
18
|
+
import { QueueService, Trigger } from '@dxos/functions';
|
|
19
|
+
import { TriggerDispatcher } from '@dxos/functions-runtime';
|
|
20
|
+
import { invariant } from '@dxos/invariant';
|
|
21
|
+
import { ObjectId } from '@dxos/keys';
|
|
22
|
+
import { Operation, OperationHandlerSet } from '@dxos/operation';
|
|
23
|
+
import { WithProperties } from '@dxos/plugin-markdown/testing';
|
|
24
|
+
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
25
|
+
import { Text } from '@dxos/schema';
|
|
26
|
+
import { Message } from '@dxos/types';
|
|
27
|
+
import { trim } from '@dxos/util';
|
|
28
|
+
|
|
29
|
+
import { Chat, Plan, Agent } from '../../types';
|
|
30
|
+
import { MarkdownBlueprint, MarkdownHandlers } from '../markdown';
|
|
31
|
+
import { PlanningBlueprint, PlanningHandlers } from '../planning';
|
|
32
|
+
import AgentBlueprintDef from './blueprint';
|
|
33
|
+
import { AgentWorker, AgentBlueprintHandlers } from './functions';
|
|
34
|
+
|
|
35
|
+
ObjectId.dangerouslyDisableRandomness();
|
|
36
|
+
|
|
37
|
+
const TestLayer = AssistantTestLayerWithTriggers({
|
|
38
|
+
aiServicePreset: 'edge-remote',
|
|
39
|
+
operationHandlers: OperationHandlerSet.merge(AgentBlueprintHandlers, MarkdownHandlers, PlanningHandlers),
|
|
40
|
+
types: [
|
|
41
|
+
Agent.Agent,
|
|
42
|
+
Plan.Plan,
|
|
43
|
+
Chat.CompanionTo,
|
|
44
|
+
Chat.Chat,
|
|
45
|
+
SpaceProperties,
|
|
46
|
+
Blueprint.Blueprint,
|
|
47
|
+
Trigger.Trigger,
|
|
48
|
+
Text.Text,
|
|
49
|
+
Markdown.Document,
|
|
50
|
+
Collection.Collection,
|
|
51
|
+
],
|
|
52
|
+
tracing: 'pretty',
|
|
53
|
+
});
|
|
54
|
+
|
|
55
|
+
const SYSTEM = trim`
|
|
56
|
+
You are a helpful assistant that can help with tasks in the outside world.
|
|
57
|
+
Be transparent about what you are doing and what you are not doing.
|
|
58
|
+
If you do not have tools to complete the task, inform the user.
|
|
59
|
+
DO NOT PRETEND TO DO SOMETHING YOU CAN'T DO.
|
|
60
|
+
`;
|
|
61
|
+
|
|
62
|
+
describe('Agent', () => {
|
|
63
|
+
const blueprint = AgentBlueprintDef.make();
|
|
64
|
+
|
|
65
|
+
it.scoped(
|
|
66
|
+
'agent adds artifact to agent',
|
|
67
|
+
Effect.fnUntraced(
|
|
68
|
+
function* (_) {
|
|
69
|
+
const agent = yield* Agent.makeInitialized(
|
|
70
|
+
{
|
|
71
|
+
name: 'Test Project',
|
|
72
|
+
instructions: 'A test project for adding artifacts.',
|
|
73
|
+
blueprints: [Ref.make(MarkdownBlueprint.make())],
|
|
74
|
+
},
|
|
75
|
+
blueprint,
|
|
76
|
+
);
|
|
77
|
+
yield* Database.flush();
|
|
78
|
+
|
|
79
|
+
const document = yield* Database.add(
|
|
80
|
+
Obj.make(Markdown.Document, {
|
|
81
|
+
name: 'Test Document',
|
|
82
|
+
content: Ref.make(Text.make('This is a test document with some content.')),
|
|
83
|
+
}),
|
|
84
|
+
);
|
|
85
|
+
yield* Database.flush();
|
|
86
|
+
|
|
87
|
+
expect(agent.artifacts).toHaveLength(0);
|
|
88
|
+
|
|
89
|
+
const chatFeed = agent.chat?.target?.feed?.target;
|
|
90
|
+
invariant(chatFeed, 'Agent chat feed not found.');
|
|
91
|
+
const runtime = yield* Effect.runtime<Feed.FeedService>();
|
|
92
|
+
const session = yield* acquireReleaseResource(() => new AiSession({ feed: chatFeed, runtime }));
|
|
93
|
+
yield* Effect.promise(() => session.context.open());
|
|
94
|
+
|
|
95
|
+
const documentDxn = Obj.getDXN(document);
|
|
96
|
+
yield* session
|
|
97
|
+
.createRequest({
|
|
98
|
+
system: SYSTEM,
|
|
99
|
+
prompt: `Please add the document ${documentDxn} as an artifact named "My Test Document" to this agent.`,
|
|
100
|
+
})
|
|
101
|
+
.pipe(Effect.provide(session.makeToolExecutionServices()));
|
|
102
|
+
|
|
103
|
+
expect(agent.artifacts).toHaveLength(1);
|
|
104
|
+
expect(agent.artifacts[0].name).toBe('My Test Document');
|
|
105
|
+
const artifactData = yield* agent.artifacts[0].data.pipe(Database.load);
|
|
106
|
+
expect(Obj.instanceOf(Markdown.Document, artifactData)).toBe(true);
|
|
107
|
+
},
|
|
108
|
+
Effect.provide(TestLayer),
|
|
109
|
+
TestHelpers.provideTestContext,
|
|
110
|
+
),
|
|
111
|
+
MemoizedAiService.isGenerationEnabled() ? 240_000 : 30_000,
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
it.scoped(
|
|
115
|
+
'shopping list',
|
|
116
|
+
Effect.fnUntraced(
|
|
117
|
+
function* (_) {
|
|
118
|
+
const agent = yield* Agent.makeInitialized(
|
|
119
|
+
{
|
|
120
|
+
name: 'Shopping list',
|
|
121
|
+
instructions: 'Keep a shopping list of items to buy.',
|
|
122
|
+
blueprints: [Ref.make(MarkdownBlueprint.make())],
|
|
123
|
+
},
|
|
124
|
+
blueprint,
|
|
125
|
+
);
|
|
126
|
+
const chatFeed = agent.chat?.target?.feed?.target;
|
|
127
|
+
invariant(chatFeed, 'Agent chat feed not found.');
|
|
128
|
+
yield* Database.flush();
|
|
129
|
+
const runtime = yield* Effect.runtime<Feed.FeedService>();
|
|
130
|
+
const session = yield* acquireReleaseResource(() => new AiSession({ feed: chatFeed, runtime }));
|
|
131
|
+
yield* Effect.promise(() => session.context.open());
|
|
132
|
+
|
|
133
|
+
yield* session
|
|
134
|
+
.createRequest({
|
|
135
|
+
system: SYSTEM,
|
|
136
|
+
prompt: `List ingredients for a scrambled eggs on a toast breakfast.`,
|
|
137
|
+
})
|
|
138
|
+
.pipe(Effect.provide(session.makeToolExecutionServices()));
|
|
139
|
+
|
|
140
|
+
console.log(yield* Effect.promise(() => dumpAgent(agent)));
|
|
141
|
+
},
|
|
142
|
+
Effect.provide(TestLayer),
|
|
143
|
+
TestHelpers.provideTestContext,
|
|
144
|
+
),
|
|
145
|
+
MemoizedAiService.isGenerationEnabled() ? 240_000 : 30_000,
|
|
146
|
+
);
|
|
147
|
+
|
|
148
|
+
it.scoped(
|
|
149
|
+
'expense tracking list',
|
|
150
|
+
Effect.fnUntraced(
|
|
151
|
+
function* (_) {
|
|
152
|
+
const agent = yield* Agent.makeInitialized(
|
|
153
|
+
{
|
|
154
|
+
name: 'Expense tracking',
|
|
155
|
+
instructions: trim`
|
|
156
|
+
Keep a list of expenses in a markdown document (create artifact "Expenses").
|
|
157
|
+
Process incoming emails, add the relevant ones to the list.
|
|
158
|
+
|
|
159
|
+
Format:
|
|
160
|
+
|
|
161
|
+
## Expenses
|
|
162
|
+
- Flight to London (2026-02-01): £100
|
|
163
|
+
- Hotel in London (2026-02-01): £100
|
|
164
|
+
`,
|
|
165
|
+
blueprints: [Ref.make(MarkdownBlueprint.make())],
|
|
166
|
+
},
|
|
167
|
+
blueprint,
|
|
168
|
+
);
|
|
169
|
+
yield* Database.flush();
|
|
170
|
+
|
|
171
|
+
const inboxQueue = yield* QueueService.createQueue();
|
|
172
|
+
yield* Database.add(
|
|
173
|
+
Trigger.make({
|
|
174
|
+
enabled: true,
|
|
175
|
+
spec: Trigger.specQueue(inboxQueue.dxn.toString()),
|
|
176
|
+
function: Ref.make(Operation.serialize(AgentWorker)),
|
|
177
|
+
input: {
|
|
178
|
+
agent: Ref.make(agent),
|
|
179
|
+
event: '{{event}}',
|
|
180
|
+
},
|
|
181
|
+
}),
|
|
182
|
+
);
|
|
183
|
+
|
|
184
|
+
yield* QueueService.append(
|
|
185
|
+
inboxQueue,
|
|
186
|
+
TEST_MESSAGES.map((message) => Obj.clone(message)),
|
|
187
|
+
);
|
|
188
|
+
|
|
189
|
+
const dispatcher = yield* TriggerDispatcher;
|
|
190
|
+
const invocations = yield* dispatcher.invokeScheduledTriggers({ kinds: ['queue'], untilExhausted: true });
|
|
191
|
+
expect(invocations.every((invocation) => Exit.isSuccess(invocation.result))).toBe(true);
|
|
192
|
+
|
|
193
|
+
console.log(yield* Effect.promise(() => dumpAgent(agent)));
|
|
194
|
+
},
|
|
195
|
+
WithProperties,
|
|
196
|
+
Effect.provide(TestLayer),
|
|
197
|
+
TestHelpers.provideTestContext,
|
|
198
|
+
),
|
|
199
|
+
MemoizedAiService.isGenerationEnabled() ? 240_000 : 30_000,
|
|
200
|
+
);
|
|
201
|
+
|
|
202
|
+
it.scoped(
|
|
203
|
+
'planning',
|
|
204
|
+
Effect.fnUntraced(
|
|
205
|
+
function* (_) {
|
|
206
|
+
const agent = yield* Agent.makeInitialized(
|
|
207
|
+
{
|
|
208
|
+
name: 'Egg making',
|
|
209
|
+
instructions: trim`
|
|
210
|
+
I'm testing how planning (task management) works.
|
|
211
|
+
Create tasks to make scrambled eggs.
|
|
212
|
+
|
|
213
|
+
Then simulate this plan execution in a markdown document.
|
|
214
|
+
The document should reflect the state of all objects involved in the cooking process.
|
|
215
|
+
The document should also have the log of actions taken.
|
|
216
|
+
|
|
217
|
+
Important: simualte actions one by one, in the order they are listed.
|
|
218
|
+
Simlate by updating the local document.
|
|
219
|
+
|
|
220
|
+
<example>
|
|
221
|
+
# State
|
|
222
|
+
|
|
223
|
+
- 2 raw eggs
|
|
224
|
+
- 1 frying pan
|
|
225
|
+
|
|
226
|
+
# Action log
|
|
227
|
+
|
|
228
|
+
- Taken 2 raw eggs out of the fridge.
|
|
229
|
+
</example>
|
|
230
|
+
`,
|
|
231
|
+
blueprints: [Ref.make(MarkdownBlueprint.make()), Ref.make(Obj.clone(PlanningBlueprint.make()))],
|
|
232
|
+
},
|
|
233
|
+
blueprint,
|
|
234
|
+
);
|
|
235
|
+
yield* Database.flush();
|
|
236
|
+
|
|
237
|
+
const chatFeed = agent.chat?.target?.feed?.target;
|
|
238
|
+
invariant(chatFeed, 'Agent chat feed not found.');
|
|
239
|
+
yield* Database.flush();
|
|
240
|
+
const runtime = yield* Effect.runtime<Feed.FeedService>();
|
|
241
|
+
const session = yield* acquireReleaseResource(() => new AiSession({ feed: chatFeed, runtime }));
|
|
242
|
+
yield* Effect.promise(() => session.context.open());
|
|
243
|
+
|
|
244
|
+
yield* session
|
|
245
|
+
.createRequest({
|
|
246
|
+
system: SYSTEM,
|
|
247
|
+
prompt: `Go`,
|
|
248
|
+
})
|
|
249
|
+
.pipe(Effect.provide(session.makeToolExecutionServices()));
|
|
250
|
+
|
|
251
|
+
console.log(yield* Effect.promise(() => dumpAgent(agent)));
|
|
252
|
+
},
|
|
253
|
+
WithProperties,
|
|
254
|
+
Effect.provide(TestLayer),
|
|
255
|
+
TestHelpers.provideTestContext,
|
|
256
|
+
),
|
|
257
|
+
MemoizedAiService.isGenerationEnabled() ? 240_000 : 30_000,
|
|
258
|
+
);
|
|
259
|
+
});
|
|
260
|
+
|
|
261
|
+
const dumpAgent = async (agent: Agent.Agent) => {
|
|
262
|
+
let text = '';
|
|
263
|
+
text += `============== Agent: ${agent.name} ==============\n\n`;
|
|
264
|
+
text += `============== Instructions ==============\n\n`;
|
|
265
|
+
text += `${await agent.instructions.load().then((_) => _.content)}\n`;
|
|
266
|
+
text += `============== Plan ==============\n\n`;
|
|
267
|
+
text += `${await agent.plan?.load().then((_) => Plan.formatPlan(_))}\n`;
|
|
268
|
+
text += `============== Artifacts ==============\n\n`;
|
|
269
|
+
for (const artifact of agent.artifacts) {
|
|
270
|
+
const data = await artifact.data.load();
|
|
271
|
+
text += `============== ${artifact.name} (${Obj.getTypename(data)}) ==============\n`;
|
|
272
|
+
if (Obj.instanceOf(Markdown.Document, data)) {
|
|
273
|
+
text += `# ${Obj.getLabel(data)}\n\n${await data.content.load().then((_) => _.content)}\n`;
|
|
274
|
+
} else {
|
|
275
|
+
text += ` ${JSON.stringify(data, null, 2)}\n`;
|
|
276
|
+
}
|
|
277
|
+
text += '\n';
|
|
278
|
+
}
|
|
279
|
+
return text;
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
const TEST_MESSAGES = [
|
|
283
|
+
// Expense-related emails
|
|
284
|
+
Obj.make(Message.Message, {
|
|
285
|
+
created: new Date('2026-01-28T10:15:00Z').toISOString(),
|
|
286
|
+
sender: { email: 'receipts@britishairways.com' },
|
|
287
|
+
blocks: [
|
|
288
|
+
{
|
|
289
|
+
_tag: 'text',
|
|
290
|
+
text: trim`
|
|
291
|
+
From: receipts@britishairways.com
|
|
292
|
+
Subject: Your British Airways booking confirmation - BA287
|
|
293
|
+
|
|
294
|
+
Dear Mr. Smith,
|
|
295
|
+
|
|
296
|
+
Thank you for booking with British Airways. Your flight reservation is confirmed.
|
|
297
|
+
|
|
298
|
+
BOOKING REFERENCE: XK7M2P
|
|
299
|
+
|
|
300
|
+
FLIGHT DETAILS
|
|
301
|
+
─────────────────────────────────────
|
|
302
|
+
Flight: BA287
|
|
303
|
+
Date: 15 February 2026
|
|
304
|
+
Route: San Francisco (SFO) → London Heathrow (LHR)
|
|
305
|
+
Departure: 17:45 PST
|
|
306
|
+
Arrival: 12:15 GMT (+1 day)
|
|
307
|
+
Class: Economy
|
|
308
|
+
|
|
309
|
+
PASSENGER
|
|
310
|
+
─────────────────────────────────────
|
|
311
|
+
John Smith
|
|
312
|
+
|
|
313
|
+
PAYMENT SUMMARY
|
|
314
|
+
─────────────────────────────────────
|
|
315
|
+
Base fare: £485.00
|
|
316
|
+
Taxes and fees: £127.50
|
|
317
|
+
─────────────────────────────────────
|
|
318
|
+
TOTAL PAID: £612.50
|
|
319
|
+
|
|
320
|
+
Payment method: Visa ending in 4521
|
|
321
|
+
Transaction date: 28 January 2026
|
|
322
|
+
|
|
323
|
+
Please keep this email for your records.
|
|
324
|
+
|
|
325
|
+
Kind regards,
|
|
326
|
+
British Airways
|
|
327
|
+
`,
|
|
328
|
+
},
|
|
329
|
+
],
|
|
330
|
+
}),
|
|
331
|
+
Obj.make(Message.Message, {
|
|
332
|
+
created: new Date('2026-01-29T14:30:00Z').toISOString(),
|
|
333
|
+
sender: { email: 'noreply@booking.com' },
|
|
334
|
+
blocks: [
|
|
335
|
+
{
|
|
336
|
+
_tag: 'text',
|
|
337
|
+
text: trim`
|
|
338
|
+
From: noreply@booking.com
|
|
339
|
+
Subject: Booking Confirmation - The Savoy London
|
|
340
|
+
|
|
341
|
+
Booking Confirmation
|
|
342
|
+
|
|
343
|
+
Dear John Smith,
|
|
344
|
+
|
|
345
|
+
Your booking is confirmed!
|
|
346
|
+
|
|
347
|
+
Hotel: The Savoy London
|
|
348
|
+
Address: Strand, London WC2R 0EU, United Kingdom
|
|
349
|
+
Check-in: 15 February 2026, 15:00
|
|
350
|
+
Check-out: 18 February 2026, 11:00
|
|
351
|
+
Guests: 1 adult
|
|
352
|
+
Room: Deluxe King Room
|
|
353
|
+
|
|
354
|
+
Total amount: £450.00
|
|
355
|
+
Payment: Paid via credit card ending in 4521
|
|
356
|
+
Booking reference: BK-789456123
|
|
357
|
+
|
|
358
|
+
We look forward to welcoming you!
|
|
359
|
+
|
|
360
|
+
Best regards,
|
|
361
|
+
Booking.com
|
|
362
|
+
`,
|
|
363
|
+
},
|
|
364
|
+
],
|
|
365
|
+
}),
|
|
366
|
+
Obj.make(Message.Message, {
|
|
367
|
+
created: new Date('2026-02-15T19:45:00Z').toISOString(),
|
|
368
|
+
sender: { email: 'receipt@uber.com' },
|
|
369
|
+
blocks: [
|
|
370
|
+
{
|
|
371
|
+
_tag: 'text',
|
|
372
|
+
text: trim`
|
|
373
|
+
From: receipt@uber.com
|
|
374
|
+
Subject: Your trip receipt
|
|
375
|
+
|
|
376
|
+
Trip Receipt
|
|
377
|
+
|
|
378
|
+
Trip Date: February 15, 2026 at 7:30 PM
|
|
379
|
+
Trip ID: 1A2B3C4D5E
|
|
380
|
+
|
|
381
|
+
Route: London Heathrow Airport → The Savoy London
|
|
382
|
+
Distance: 18.2 miles
|
|
383
|
+
Duration: 45 minutes
|
|
384
|
+
|
|
385
|
+
Fare breakdown:
|
|
386
|
+
Base fare: £12.50
|
|
387
|
+
Distance: £18.20
|
|
388
|
+
Time: £11.25
|
|
389
|
+
Booking fee: £2.50
|
|
390
|
+
─────────────────────────────────────
|
|
391
|
+
Subtotal: £44.45
|
|
392
|
+
VAT (20%): £8.89
|
|
393
|
+
─────────────────────────────────────
|
|
394
|
+
Total: £53.34
|
|
395
|
+
|
|
396
|
+
Payment method: Visa •••• 4521
|
|
397
|
+
|
|
398
|
+
Thank you for riding with Uber!
|
|
399
|
+
`,
|
|
400
|
+
},
|
|
401
|
+
],
|
|
402
|
+
}),
|
|
403
|
+
Obj.make(Message.Message, {
|
|
404
|
+
created: new Date('2026-02-16T20:15:00Z').toISOString(),
|
|
405
|
+
sender: { email: 'receipts@opentable.com' },
|
|
406
|
+
blocks: [
|
|
407
|
+
{
|
|
408
|
+
_tag: 'text',
|
|
409
|
+
text: trim`
|
|
410
|
+
From: receipts@opentable.com
|
|
411
|
+
Subject: Your receipt from The Ivy
|
|
412
|
+
|
|
413
|
+
Receipt
|
|
414
|
+
|
|
415
|
+
Restaurant: The Ivy
|
|
416
|
+
Address: 1-5 West Street, London WC2H 9NQ
|
|
417
|
+
Date: February 16, 2026
|
|
418
|
+
Time: 8:00 PM
|
|
419
|
+
Table: 12
|
|
420
|
+
Guests: 2
|
|
421
|
+
|
|
422
|
+
Order Summary:
|
|
423
|
+
─────────────────────────────────────
|
|
424
|
+
Starter - Scallops £18.00
|
|
425
|
+
Main - Ribeye Steak £32.00
|
|
426
|
+
Main - Sea Bass £28.00
|
|
427
|
+
Side - Truffle Fries £8.50
|
|
428
|
+
Wine - Chardonnay (bottle) £45.00
|
|
429
|
+
Dessert - Chocolate Soufflé £12.00
|
|
430
|
+
─────────────────────────────────────
|
|
431
|
+
Subtotal: £143.50
|
|
432
|
+
Service charge (12.5%): £17.94
|
|
433
|
+
─────────────────────────────────────
|
|
434
|
+
Total: £161.44
|
|
435
|
+
|
|
436
|
+
Payment: Card ending in 4521
|
|
437
|
+
Reservation ID: OT-987654321
|
|
438
|
+
|
|
439
|
+
Thank you for dining with us!
|
|
440
|
+
`,
|
|
441
|
+
},
|
|
442
|
+
],
|
|
443
|
+
}),
|
|
444
|
+
Obj.make(Message.Message, {
|
|
445
|
+
created: new Date('2026-02-17T09:00:00Z').toISOString(),
|
|
446
|
+
sender: { email: 'receipts@amazon.co.uk' },
|
|
447
|
+
blocks: [
|
|
448
|
+
{
|
|
449
|
+
_tag: 'text',
|
|
450
|
+
text: trim`
|
|
451
|
+
From: receipts@amazon.co.uk
|
|
452
|
+
Subject: Your Amazon.co.uk order #123-4567890-1234567
|
|
453
|
+
|
|
454
|
+
Order Confirmation
|
|
455
|
+
|
|
456
|
+
Hello John Smith,
|
|
457
|
+
|
|
458
|
+
We've received your order and will send a confirmation when it ships.
|
|
459
|
+
|
|
460
|
+
Order #123-4567890-1234567
|
|
461
|
+
Order Date: February 17, 2026
|
|
462
|
+
|
|
463
|
+
Items Ordered:
|
|
464
|
+
─────────────────────────────────────
|
|
465
|
+
1x London Travel Guide 2026 £12.99
|
|
466
|
+
1x Universal Travel Adapter £8.50
|
|
467
|
+
─────────────────────────────────────
|
|
468
|
+
Items: £21.49
|
|
469
|
+
Shipping & Handling: £4.99
|
|
470
|
+
─────────────────────────────────────
|
|
471
|
+
Order Total: £26.48
|
|
472
|
+
|
|
473
|
+
Payment method: Visa ending in 4521
|
|
474
|
+
Shipping to: The Savoy London, Strand, London WC2R 0EU
|
|
475
|
+
|
|
476
|
+
Estimated delivery: February 18, 2026
|
|
477
|
+
|
|
478
|
+
Thank you for your order!
|
|
479
|
+
`,
|
|
480
|
+
},
|
|
481
|
+
],
|
|
482
|
+
}),
|
|
483
|
+
// Unrelated emails
|
|
484
|
+
Obj.make(Message.Message, {
|
|
485
|
+
created: new Date('2026-01-30T08:00:00Z').toISOString(),
|
|
486
|
+
sender: { email: 'newsletter@techcrunch.com' },
|
|
487
|
+
blocks: [
|
|
488
|
+
{
|
|
489
|
+
_tag: 'text',
|
|
490
|
+
text: trim`
|
|
491
|
+
From: newsletter@techcrunch.com
|
|
492
|
+
Subject: Weekly Tech Roundup - AI Breakthroughs & Startup News
|
|
493
|
+
|
|
494
|
+
TechCrunch Weekly Newsletter
|
|
495
|
+
|
|
496
|
+
This week in tech:
|
|
497
|
+
|
|
498
|
+
• OpenAI announces GPT-5 with enhanced reasoning capabilities
|
|
499
|
+
• New quantum computing milestone achieved by IBM
|
|
500
|
+
• 5 startups that raised over $100M this week
|
|
501
|
+
• The future of autonomous vehicles: what's next?
|
|
502
|
+
|
|
503
|
+
Read the full stories: https://techcrunch.com/weekly
|
|
504
|
+
|
|
505
|
+
Unsubscribe | Manage preferences
|
|
506
|
+
`,
|
|
507
|
+
},
|
|
508
|
+
],
|
|
509
|
+
}),
|
|
510
|
+
Obj.make(Message.Message, {
|
|
511
|
+
created: new Date('2026-02-01T12:00:00Z').toISOString(),
|
|
512
|
+
sender: { email: 'sarah.johnson@gmail.com' },
|
|
513
|
+
blocks: [
|
|
514
|
+
{
|
|
515
|
+
_tag: 'text',
|
|
516
|
+
text: trim`
|
|
517
|
+
From: sarah.johnson@gmail.com
|
|
518
|
+
Subject: Re: Coffee next week?
|
|
519
|
+
|
|
520
|
+
Hey John,
|
|
521
|
+
|
|
522
|
+
Sounds great! How about Tuesday at 2pm? The usual place?
|
|
523
|
+
|
|
524
|
+
Let me know if that works for you.
|
|
525
|
+
|
|
526
|
+
Cheers,
|
|
527
|
+
Sarah
|
|
528
|
+
`,
|
|
529
|
+
},
|
|
530
|
+
],
|
|
531
|
+
}),
|
|
532
|
+
Obj.make(Message.Message, {
|
|
533
|
+
created: new Date('2026-02-10T10:30:00Z').toISOString(),
|
|
534
|
+
sender: { email: 'promotions@nike.com' },
|
|
535
|
+
blocks: [
|
|
536
|
+
{
|
|
537
|
+
_tag: 'text',
|
|
538
|
+
text: trim`
|
|
539
|
+
From: promotions@nike.com
|
|
540
|
+
Subject: 🏃♂️ 30% Off Running Shoes - Limited Time!
|
|
541
|
+
|
|
542
|
+
Don't miss out!
|
|
543
|
+
|
|
544
|
+
Get 30% off all running shoes this week only. Use code RUN30 at checkout.
|
|
545
|
+
|
|
546
|
+
Shop now: https://nike.com/sale
|
|
547
|
+
|
|
548
|
+
Valid until February 17, 2026.
|
|
549
|
+
|
|
550
|
+
Unsubscribe | View in browser
|
|
551
|
+
`,
|
|
552
|
+
},
|
|
553
|
+
],
|
|
554
|
+
}),
|
|
555
|
+
Obj.make(Message.Message, {
|
|
556
|
+
created: new Date('2026-02-14T16:20:00Z').toISOString(),
|
|
557
|
+
sender: { email: 'notifications@github.com' },
|
|
558
|
+
blocks: [
|
|
559
|
+
{
|
|
560
|
+
_tag: 'text',
|
|
561
|
+
text: trim`
|
|
562
|
+
From: notifications@github.com
|
|
563
|
+
Subject: [dxos/dxos] New pull request: feat: add expense tracking
|
|
564
|
+
|
|
565
|
+
johnsmith opened a pull request in dxos/dxos
|
|
566
|
+
|
|
567
|
+
Title: feat: add expense tracking
|
|
568
|
+
Branch: feature/expense-tracking → main
|
|
569
|
+
|
|
570
|
+
This PR adds a new expense tracking feature to the assistant toolkit.
|
|
571
|
+
|
|
572
|
+
Review it here: https://github.com/dxos/dxos/pull/1234
|
|
573
|
+
|
|
574
|
+
You're receiving this because you're watching this repository.
|
|
575
|
+
`,
|
|
576
|
+
},
|
|
577
|
+
],
|
|
578
|
+
}),
|
|
579
|
+
Obj.make(Message.Message, {
|
|
580
|
+
created: new Date('2026-02-18T11:00:00Z').toISOString(),
|
|
581
|
+
sender: { email: 'receipts@britishairways.com' },
|
|
582
|
+
blocks: [
|
|
583
|
+
{
|
|
584
|
+
_tag: 'text',
|
|
585
|
+
text: trim`
|
|
586
|
+
From: receipts@britishairways.com
|
|
587
|
+
Subject: Your British Airways booking confirmation - BA288
|
|
588
|
+
|
|
589
|
+
Dear Mr. Smith,
|
|
590
|
+
|
|
591
|
+
Thank you for booking with British Airways. Your return flight reservation is confirmed.
|
|
592
|
+
|
|
593
|
+
BOOKING REFERENCE: YK8N3Q
|
|
594
|
+
|
|
595
|
+
FLIGHT DETAILS
|
|
596
|
+
─────────────────────────────────────
|
|
597
|
+
Flight: BA288
|
|
598
|
+
Date: 20 February 2026
|
|
599
|
+
Route: London Heathrow (LHR) → San Francisco (SFO)
|
|
600
|
+
Departure: 10:30 GMT
|
|
601
|
+
Arrival: 13:15 PST
|
|
602
|
+
Class: Economy
|
|
603
|
+
|
|
604
|
+
PASSENGER
|
|
605
|
+
─────────────────────────────────────
|
|
606
|
+
John Smith
|
|
607
|
+
|
|
608
|
+
PAYMENT SUMMARY
|
|
609
|
+
─────────────────────────────────────
|
|
610
|
+
Base fare: £520.00
|
|
611
|
+
Taxes and fees: £135.00
|
|
612
|
+
─────────────────────────────────────
|
|
613
|
+
TOTAL PAID: £655.00
|
|
614
|
+
|
|
615
|
+
Payment method: Visa ending in 4521
|
|
616
|
+
Transaction date: 18 February 2026
|
|
617
|
+
|
|
618
|
+
Please keep this email for your records.
|
|
619
|
+
|
|
620
|
+
Kind regards,
|
|
621
|
+
British Airways
|
|
622
|
+
`,
|
|
623
|
+
},
|
|
624
|
+
],
|
|
625
|
+
}),
|
|
626
|
+
];
|
|
@@ -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.agent';
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Creates the Agent blueprint. This is a function to avoid circular dependency issues.
|
|
15
|
+
*/
|
|
16
|
+
// TODO(dmaretskyi): Combine with Agent Wizard.
|
|
17
|
+
const make = () =>
|
|
18
|
+
Blueprint.make({
|
|
19
|
+
key: BLUEPRINT_KEY,
|
|
20
|
+
name: 'Agent blueprint',
|
|
21
|
+
instructions: Template.make({
|
|
22
|
+
source: trim`
|
|
23
|
+
You work on an agent. Each agent has instructions - the goal of the agent.
|
|
24
|
+
The agent plan shows the current progress of the agent.
|
|
25
|
+
Agent has a number of associated artifacts you can read/write.
|
|
26
|
+
You can edit them if necessary.
|
|
27
|
+
|
|
28
|
+
IMPORTANT: When creating a new artifact, always add it to the agent using the add-artifact function.
|
|
29
|
+
|
|
30
|
+
{{#with agent}}
|
|
31
|
+
<agent id="{{id}}" name="{{name}}">
|
|
32
|
+
<instructions>
|
|
33
|
+
{{instructions}}
|
|
34
|
+
</instructions>
|
|
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
|
+
</agent>
|
|
47
|
+
{{/with}}
|
|
48
|
+
`,
|
|
49
|
+
inputs: [
|
|
50
|
+
{
|
|
51
|
+
name: 'agent',
|
|
52
|
+
kind: 'function',
|
|
53
|
+
function: 'org.dxos.function.agent.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;
|