@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,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/markdown/functions/index.ts", "../../../src/blueprints/markdown/blueprint.ts", "../../../src/blueprints/design/blueprint.ts", "../../../src/blueprints/discord/functions/index.ts", "../../../src/blueprints/discord/blueprint.ts", "../../../src/blueprints/linear/functions/index.ts", "../../../src/blueprints/linear/blueprint.ts", "../../../src/blueprints/planning/functions/index.ts", "../../../src/blueprints/planning/blueprint.ts", "../../../src/blueprints/research/functions/index.ts", "../../../src/blueprints/research/blueprint.ts", "../../../src/blueprints/websearch/functions/index.ts", "../../../src/blueprints/websearch/blueprint.ts", "../../../src/blueprints/websearch/toolkit.ts", "../../../src/blueprints/browser/blueprint.ts", "../../../src/blueprints/database/functions/index.ts", "../../../src/blueprints/database/blueprint.ts", "../../../src/blueprints/memory/functions/index.ts", "../../../src/blueprints/memory/blueprint.ts", "../../../src/blueprints/automation/blueprint.ts", "../../../src/blueprints/blueprint-manager/functions/index.ts", "../../../src/blueprints/blueprint-manager/blueprint.ts", "../../../src/blueprints/project-wizard/functions/index.ts", "../../../src/blueprints/project-wizard/blueprint.ts", "../../../src/functions/entity-extraction/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const MarkdownHandlers = OperationHandlerSet.lazy(\n () => import('./create'),\n () => import('./read'),\n () => import('./update'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { Create, Read, Update } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.markdown';\n\nconst instructions = trim`\n You read, write & create markdown documents.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Markdown',\n description: 'Work with markdown documents.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [Create, Read, Update] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { MarkdownCreate, MarkdownRead, MarkdownUpdate } from '../markdown';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.design';\n\nconst instructions = trim`\n You manage a design spec based on the conversation.\n The design spec is a markdown document that is used to record the tasks.\n The design spec document follows a hierarchical structure, with nested markdown bulleted sections.\n Use the appropriate tools to read and write the design spec document.\n Maintain the document so that it can convey all relevant points from the conversation.\n When replying to the user, be terse with your comments about design doc handling.\n Do not announce when you read or write the design spec document.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Design Spec',\n description: 'Preserve the conversation in the design spec.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [MarkdownCreate, MarkdownRead, MarkdownUpdate] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const DiscordHandlers = OperationHandlerSet.lazy(() => import('./fetch-messages'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { FetchMessages } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.discord';\n\n/**\n * Agent prompt instructions for managing hierarchical task lists.\n */\nconst instructions = trim`\n You are able to fetch messages from Discord servers.\n\n Known servers:\n\n DXOS serverId: 837138313172353095\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Discord',\n description: 'Discord integration.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [FetchMessages] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const LinearHandlers = OperationHandlerSet.lazy(() => import('./sync-issues'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { SyncIssues } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.linear';\n\n/**\n * Agent prompt instructions for managing hierarchical task lists.\n */\nconst instructions = trim`\n You are able to sync Linear workspaces.\n Sometimes sync does not complete in one go and you need to call the function again.\n\n Known workspaces:\n\n DXOS teamId: 1127c63a-6f77-4725-9229-50f6cd47321c\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Linear',\n description: 'Syncs Linear workspaces.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [SyncIssues] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const PlanningHandlers = OperationHandlerSet.lazy(() => import('./update-tasks'));\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\n\nimport { UpdateTasks } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.planning';\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Planning',\n description: 'Plans and tracks complex tasks with artifact management.',\n tools: Blueprint.toolDefinitions({ operations: [UpdateTasks] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const ResearchHandlers = OperationHandlerSet.lazy(\n () => import('./document-create'),\n () => import('./research'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { Research, DocumentCreate } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.research';\n\n/**\n * Agent prompt instructions for managing hierarchical task lists.\n */\nconst instructions = trim`\n {{! Research }}\n\n You are an analyst that does research tasks using tools that scrape the web and create structured data.\n Structured data extraction is an experimental feature -- only enable it if the user explicitly requests it in the prompt.\n Prefer updating existing notes instead of creating new ones.\n\n <structured_mode>\n When you are done, reply with the created objects.\n Do not print the data, instead reply with inline references to the created objects.\n Those will be later substituted with the pills representing the created objects.\n Print the rest of the created objects as block references after the main note.\n\n <example>\n Based on my research, Google was founded by @dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK464FSCKVQJAB2H662M and @dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK46K31DDW62PBW9H2ZQ\n\n <object><dxn>dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK464FSCKVQJAB2H662M</dxn></object>\n <object><dxn>dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK46K31DDW62PBW9H2ZQ</dxn></object>\n <object><dxn>dxn:queue:data:B6INSIBY3CBEF4M5VZRYBCMAHQMPYK5AJ:01K24XMVHSZHS97SG1VTVQDM5Z:01K24XPK46K31DDW62PBW92333</dxn></object>\n </example>\n </structured_mode>\n\n <unstructured_mode>\n Reply normally with the text mode of the result of your research.\n </unstructured_mode>\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Research',\n description: 'Researches the web and creates structured data.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [DocumentCreate, Research] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const WebSearchHandlers = OperationHandlerSet.lazy(() => import('./fetch'));\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\n\nimport { Fetch } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.web-search';\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Web Search',\n description: 'Search the web.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make()),\n },\n tools: Blueprint.toolDefinitions({ operations: [Fetch], tools: ['AnthropicWebSearch'] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as AnthropicTool from '@effect/ai-anthropic/AnthropicTool';\nimport * as Toolkit from '@effect/ai/Toolkit';\nimport * as Layer from 'effect/Layer';\n\nimport { OpaqueToolkit } from '@dxos/ai';\n\nexport const WebSearchToolkit = Toolkit.make(AnthropicTool.WebSearch_20250305({}));\n\nexport const WebSearchToolkitOpaque = OpaqueToolkit.make(WebSearchToolkit, Layer.empty);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.browser';\n\nconst instructions = trim`\n You are able to connect and use a virtual browser with persistent session.\n Browser tools are provided via MCP.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Browser',\n description: 'Access to a real isolated browser.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n mcpServers: [\n {\n // https://dash.cloudflare.com/950816f3f59b079880a1ae33fb0ec320/workers/services/view/playwright-mcp-example/production\n url: 'https://playwright-mcp-example.dxos.workers.dev/sse',\n protocol: 'sse',\n },\n ],\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const DatabaseHandlers = OperationHandlerSet.lazy(\n () => import('./context-add'),\n () => import('./context-remove'),\n () => import('./load'),\n () => import('./object-create'),\n () => import('./object-delete'),\n () => import('./object-update'),\n () => import('./query'),\n () => import('./relation-create'),\n () => import('./relation-delete'),\n () => import('./schema-add'),\n () => import('./schema-list'),\n () => import('./tag-add'),\n () => import('./tag-remove'),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport {\n Query,\n Load,\n ObjectCreate,\n ObjectUpdate,\n ObjectDelete,\n SchemaAdd,\n SchemaList,\n ContextAdd,\n ContextRemove,\n RelationCreate,\n RelationDelete,\n TagAdd,\n TagRemove,\n} from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.database';\n\nconst instructions = trim`\n You can query, create, update, and delete objects in ECHO.\n You can manage schemas, relations, tags, and add objects to the chat context.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Database',\n description: 'Query and manipulate objects in the ECHO database.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({\n operations: [\n ContextAdd,\n ContextRemove,\n Load,\n ObjectCreate,\n ObjectDelete,\n ObjectUpdate,\n Query,\n RelationCreate,\n RelationDelete,\n SchemaAdd,\n SchemaList,\n TagAdd,\n TagRemove,\n ],\n }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const MemoryHandlers = OperationHandlerSet.lazy(\n () => import('./save'),\n () => import('./query'),\n () => import('./delete'),\n);\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nimport { QueryMemories, SaveMemory, DeleteMemory } from './functions';\n\nconst BLUEPRINT_KEY = 'dxos.org/blueprint/memory';\n\nconst instructions = trim`\n You have the ability to save and recall memories.\n Memories are persistent knowledge units stored in the database.\n Use memories to remember facts, user preferences, decisions, and any knowledge that should persist across conversations.\n\n When the user asks you to remember something, save it as a memory with a descriptive title.\n When the user asks about something you might have stored, query your memories first.\n You can also delete outdated or incorrect memories.\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Memory',\n description: 'Persistent memory storage and retrieval.',\n agentCanEnable: true,\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n tools: Blueprint.toolDefinitions({ operations: [SaveMemory, QueryMemories, DeleteMemory] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint } from '@dxos/blueprints';\nimport { Ref } from '@dxos/echo';\nimport { Trigger } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\nimport { Text } from '@dxos/schema';\nimport { trim } from '@dxos/util';\n\nconst BLUEPRINT_KEY = 'dxos.org/blueprint/automation';\n\nconst instructions = trim`\n Automation allows you to automatically initiate actions based on events.\n Automations are configured by creating a trigger that references a function.\n Whenever event that matches the trigger occurs, the function is invoked.\n\n ## Configuration\n\n Triggers are configured by the properties of the Trigger object.\n - enabled: Must be true for trigger to run.\n - spec: Events that the trigger matches.\n - 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.\n - input: The spec of the input data that will be passed to the function.\n\n ## Input patterns\n\n Input to the invoked function is defined by the input property of the Trigger object.\n It's an object that supports constants or template strings.\n\n Example:\n\n {\n item: '{{event.item}}',\n instructions: 'Summarize and perform entity-extraction'\n mailbox: { '/': 'dxn:echo:AAA:ZZZ' }\n }\n\n ## Trigger kinds\n\n - Timer: Triggered by a cron schedule.\n - Queue: Subscribes and processes items begginging to end.\n Note: queues are the same as feeds. The queue DXN should be of form: dxn:queue:data:<space-id>:<queue-id>.\n - Subscription: Subscribes and processes database items based on a query.\n\n Avoid: email and webhook triggers.\n\n ## Editing triggers\n\n Triggers are represented as objects of type ${Trigger.Trigger.typename}.\n You need access to the Database blueprint to manipulate triggers.\n Read trigger schema before manipulating triggers.\n Having a Trigger object in the database is enough to setup an automation. \n\n ## Examples\n\n Timer:\n\n {\n \"function\": { \"/\": \"dxn:echo:AAA:ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"timer\",\n \"cron\": \"*/5 * * * *\"\n }\n }\n\n Queue:\n\n {\n \"function\": { \"/\": \"dxn:echo:AAA:ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"queue\",\n \"queue\": \"dxn:queue:data:XXX:YYY\"\n }\n }\n\n Subscription:\n\n {\n \"function\": { \"/\": \"dxn:echo:AAA:ZZZ\" },\n \"enabled\": true,\n \"spec\": {\n \"kind\": \"subscription\",\n \"query\": { \"ast\": { \"type\": \"select\", \"filter\": { \"type\": \"object\", \"typename\": \"dxn:type:org.dxos.type.person\" } } }\n }\n }\n`;\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Triggers',\n description: 'Trigger management and automation.',\n instructions: {\n source: Ref.make(Text.make(instructions)),\n },\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const BlueprintManagerHandlers = OperationHandlerSet.lazy(\n () => import('./query-blueprints'),\n () => import('./enable-blueprints'),\n () => import('./update-blueprints'),\n);\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint, Template } from '@dxos/blueprints';\nimport { trim } from '@dxos/util';\n\nimport { EnableBlueprints, QueryBlueprints, UpdateBlueprints } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.blueprint-manager';\n\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Blueprint Manager',\n description: 'Query and enable blueprints in the current conversation.',\n instructions: Template.make({\n source: trim`\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 {{#each blueprints}}\n - {{key}} \"{{name}}\"{{#if description}} -- {{description}}{{/if}}{{#if agentCanEnable}} [agent-can-enable]{{/if}}\n {{/each}}\n </available_blueprints>\n\n NOTE: You must enable the blueprint to use it, only then the tools from that blueprint will appear.\n `,\n inputs: [\n {\n name: 'blueprints',\n kind: 'function',\n function: QueryBlueprints.meta.key,\n },\n ],\n }),\n tools: Blueprint.toolDefinitions({ operations: [QueryBlueprints, EnableBlueprints, UpdateBlueprints] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { OperationHandlerSet } from '@dxos/operation';\n\nexport * from './definitions';\n\nexport const AgentWizardHandlers = OperationHandlerSet.lazy(\n () => import('./create-project'),\n () => import('./project-rules'),\n () => import('./sync-triggers'),\n);\n", "//\n// Copyright 2026 DXOS.org\n//\n\nimport { type AppCapabilities } from '@dxos/app-toolkit';\nimport { Blueprint, Template } from '@dxos/blueprints';\nimport { trim } from '@dxos/util';\n\nimport { AgentRules, CreateAgent, SyncTriggers } from './functions';\n\nconst BLUEPRINT_KEY = 'org.dxos.blueprint.agent-wizard';\n\n/**\n * Creates the Agent Wizard blueprint. This is a function to avoid circular dependency issues.\n */\n// TODO(dmaretskyi): Combine with Agent Blueprint.\nconst make = () =>\n Blueprint.make({\n key: BLUEPRINT_KEY,\n name: 'Agent Wizard',\n description: 'Help the user create a new agent.',\n agentCanEnable: true,\n instructions: Template.make({\n source: trim`\n You are a wizard that helps the user create a new agent.\n\n Agents are goal oriented and autonomously driven.\n Each agent has instructions - the goal of the agent.\n The instructions also typically describe what actions to perform in reaction to events (emails).\n The agent has a number of associated artifacts to work with.\n Agents can subscribe to emails.\n\n The agent itself is an ECHO object and can be edited like any other object using the database blueprint.\n You can edit the agent's instructions, name, and other properties directly.\n If you edit the agent's subscriptions array, you MUST call the sync-triggers function afterward to synchronize the triggers.\n\n IMPORTANT: Before attempting to create an agent call the [agent-rules] tool to get the rules for creating an agent.\n `,\n }),\n tools: Blueprint.toolDefinitions({ operations: [AgentRules, CreateAgent, SyncTriggers] }),\n });\n\nconst blueprint: AppCapabilities.BlueprintDefinition = {\n key: BLUEPRINT_KEY,\n make,\n};\n\nexport default blueprint;\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService } from '@dxos/ai';\nimport { Database, Obj } from '@dxos/echo';\nimport { QueueService, Trace } from '@dxos/functions';\nimport { Operation, OperationRegistry } from '@dxos/operation';\nimport { Message } from '@dxos/types';\n\nexport const EntityExtraction = Operation.make({\n meta: {\n key: 'org.dxos.functions.entity-extraction',\n name: 'Entity Extraction',\n description: 'Extracts entities from emails and transcripts.',\n },\n input: Schema.Struct({\n source: Message.Message.annotations({\n description: 'Email or transcript to extract entities from.',\n }),\n // TODO(dmaretskyi): Consider making this an array of blueprints instead.\n instructions: Schema.optional(Schema.String).annotations({\n description: 'Instructions extraction process.',\n }),\n }),\n output: Schema.Struct({\n entities: Schema.optional(\n Schema.Array(Obj.Unknown).annotations({\n description: 'Extracted entities.',\n }),\n ),\n }),\n services: [AiService.AiService, Database.Service, QueueService, Trace.TraceService, OperationRegistry.Service],\n});\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["OperationHandlerSet", "MarkdownHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "Create", "Read", "Update", "blueprint", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "MarkdownCreate", "MarkdownRead", "MarkdownUpdate", "blueprint", "blueprint_default", "OperationHandlerSet", "DiscordHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "FetchMessages", "blueprint", "blueprint_default", "OperationHandlerSet", "LinearHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "SyncIssues", "blueprint", "blueprint_default", "OperationHandlerSet", "PlanningHandlers", "OperationHandlerSet", "lazy", "Blueprint", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "tools", "toolDefinitions", "operations", "UpdateTasks", "blueprint", "blueprint_default", "OperationHandlerSet", "ResearchHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "DocumentCreate", "Research", "blueprint", "blueprint_default", "OperationHandlerSet", "WebSearchHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "instructions", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "Fetch", "blueprint", "blueprint_default", "AnthropicTool", "Toolkit", "Layer", "OpaqueToolkit", "WebSearchToolkit", "make", "WebSearch_20250305", "WebSearchToolkitOpaque", "OpaqueToolkit", "empty", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "mcpServers", "url", "protocol", "blueprint", "blueprint_default", "OperationHandlerSet", "DatabaseHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "ContextAdd", "ContextRemove", "Load", "ObjectCreate", "ObjectDelete", "ObjectUpdate", "Query", "RelationCreate", "RelationDelete", "SchemaAdd", "SchemaList", "TagAdd", "TagRemove", "blueprint", "blueprint_default", "OperationHandlerSet", "MemoryHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Ref", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "source", "Ref", "Text", "tools", "toolDefinitions", "operations", "SaveMemory", "QueryMemories", "DeleteMemory", "blueprint", "blueprint_default", "Blueprint", "Ref", "Trigger", "Operation", "Text", "trim", "BLUEPRINT_KEY", "instructions", "trim", "Operation", "PersistentOperation", "typename", "Trigger", "make", "Blueprint", "key", "name", "description", "source", "Ref", "Text", "blueprint", "blueprint_default", "OperationHandlerSet", "BlueprintManagerHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Template", "trim", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "instructions", "Template", "source", "trim", "inputs", "kind", "function", "QueryBlueprints", "meta", "tools", "toolDefinitions", "operations", "EnableBlueprints", "UpdateBlueprints", "blueprint", "blueprint_default", "OperationHandlerSet", "AgentWizardHandlers", "OperationHandlerSet", "lazy", "Blueprint", "Template", "trim", "BLUEPRINT_KEY", "make", "Blueprint", "key", "name", "description", "agentCanEnable", "instructions", "Template", "source", "trim", "tools", "toolDefinitions", "operations", "AgentRules", "CreateAgent", "SyncTriggers", "blueprint", "blueprint_default", "Schema", "AiService", "Database", "Obj", "QueueService", "Trace", "Operation", "OperationRegistry", "Message", "EntityExtraction", "Operation", "make", "meta", "key", "name", "description", "input", "Struct", "source", "Message", "annotations", "instructions", "optional", "String", "output", "entities", "Array", "Obj", "Unknown", "services", "AiService", "Database", "Service", "QueueService", "Trace", "TraceService", "OperationRegistry"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
// src/blueprints/research/functions/definitions.ts
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { AiService } from "@dxos/ai";
|
|
4
|
+
import { Database, Obj, Ref } from "@dxos/echo";
|
|
5
|
+
import { Trace } from "@dxos/functions";
|
|
6
|
+
import { Operation, OperationRegistry } from "@dxos/operation";
|
|
7
|
+
import { trim } from "@dxos/util";
|
|
8
|
+
var Research = Operation.make({
|
|
9
|
+
meta: {
|
|
10
|
+
key: "org.dxos.function.research",
|
|
11
|
+
name: "Research",
|
|
12
|
+
description: trim`
|
|
13
|
+
Search the web to research information about the given subject.
|
|
14
|
+
Inserts structured data into the research graph.
|
|
15
|
+
Creates a research summary and returns the objects created.
|
|
16
|
+
`
|
|
17
|
+
},
|
|
18
|
+
input: Schema.Struct({
|
|
19
|
+
query: Schema.String.annotations({
|
|
20
|
+
description: trim`
|
|
21
|
+
The search query.
|
|
22
|
+
If doing research on an object then load it first and pass it as JSON.
|
|
23
|
+
`
|
|
24
|
+
}),
|
|
25
|
+
instructions: Schema.optional(Schema.String).annotations({
|
|
26
|
+
description: trim`
|
|
27
|
+
The instructions for the research agent.
|
|
28
|
+
`
|
|
29
|
+
}),
|
|
30
|
+
// TOOD(burdon): Move to context.
|
|
31
|
+
mockSearch: Schema.optional(Schema.Boolean).annotations({
|
|
32
|
+
description: "Whether to use the mock search tool.",
|
|
33
|
+
default: false
|
|
34
|
+
}),
|
|
35
|
+
entityExtraction: Schema.optional(Schema.Boolean).annotations({
|
|
36
|
+
description: trim`
|
|
37
|
+
Whether to extract structured entities from the research.
|
|
38
|
+
Experimental feature only enable if user explicitly requests it.
|
|
39
|
+
`,
|
|
40
|
+
default: false
|
|
41
|
+
})
|
|
42
|
+
}),
|
|
43
|
+
output: Schema.Struct({
|
|
44
|
+
document: Schema.optional(Schema.String).annotations({
|
|
45
|
+
description: "The generated research document."
|
|
46
|
+
}),
|
|
47
|
+
objects: Schema.Array(Schema.Unknown).annotations({
|
|
48
|
+
description: "Structured objects created during the research process."
|
|
49
|
+
})
|
|
50
|
+
}),
|
|
51
|
+
services: [
|
|
52
|
+
AiService.AiService,
|
|
53
|
+
Database.Service,
|
|
54
|
+
OperationRegistry.Service,
|
|
55
|
+
Trace.TraceService
|
|
56
|
+
]
|
|
57
|
+
});
|
|
58
|
+
var DocumentCreate = Operation.make({
|
|
59
|
+
meta: {
|
|
60
|
+
key: "org.dxos.function.research.document-create",
|
|
61
|
+
name: "Create research document",
|
|
62
|
+
description: "Creates a note summarizing the research."
|
|
63
|
+
},
|
|
64
|
+
input: Schema.Struct({
|
|
65
|
+
subject: Ref.Ref(Obj.Unknown).annotations({
|
|
66
|
+
description: trim`
|
|
67
|
+
ID of the object (organization, contact, etc.) for which the research was performed.
|
|
68
|
+
`
|
|
69
|
+
}),
|
|
70
|
+
name: Schema.String.annotations({
|
|
71
|
+
description: "Name of the document."
|
|
72
|
+
}),
|
|
73
|
+
content: Schema.String.annotations({
|
|
74
|
+
description: trim`
|
|
75
|
+
Content of the note.
|
|
76
|
+
Supports (and are prefered) references to research objects using @ syntax and <object> tags (refer to research blueprint instructions).
|
|
77
|
+
`
|
|
78
|
+
})
|
|
79
|
+
}),
|
|
80
|
+
output: Schema.Struct({
|
|
81
|
+
document: Schema.String.annotations({
|
|
82
|
+
description: "DXN of the created document."
|
|
83
|
+
})
|
|
84
|
+
}),
|
|
85
|
+
services: [
|
|
86
|
+
Database.Service,
|
|
87
|
+
Trace.TraceService
|
|
88
|
+
]
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export {
|
|
92
|
+
Research,
|
|
93
|
+
DocumentCreate
|
|
94
|
+
};
|
|
95
|
+
//# sourceMappingURL=chunk-7WUXG23R.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/research/functions/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiService } from '@dxos/ai';\nimport { Database, Obj, Ref } from '@dxos/echo';\nimport { Trace } from '@dxos/functions';\nimport { Operation, OperationRegistry } from '@dxos/operation';\nimport { trim } from '@dxos/util';\n\nexport const Research = Operation.make({\n meta: {\n key: 'org.dxos.function.research',\n name: 'Research',\n description: trim`\n Search the web to research information about the given subject.\n Inserts structured data into the research graph. \n Creates a research summary and returns the objects created.\n `,\n },\n input: Schema.Struct({\n query: Schema.String.annotations({\n description: trim`\n The search query.\n If doing research on an object then load it first and pass it as JSON.\n `,\n }),\n instructions: Schema.optional(Schema.String).annotations({\n description: trim`\n The instructions for the research agent. \n `,\n }),\n // TOOD(burdon): Move to context.\n mockSearch: Schema.optional(Schema.Boolean).annotations({\n description: 'Whether to use the mock search tool.',\n default: false,\n }),\n entityExtraction: Schema.optional(Schema.Boolean).annotations({\n description: trim`\n Whether to extract structured entities from the research. \n Experimental feature only enable if user explicitly requests it.\n `,\n default: false,\n }),\n }),\n output: Schema.Struct({\n document: Schema.optional(Schema.String).annotations({\n description: 'The generated research document.',\n }),\n objects: Schema.Array(Schema.Unknown).annotations({\n description: 'Structured objects created during the research process.',\n }),\n }),\n services: [AiService.AiService, Database.Service, OperationRegistry.Service, Trace.TraceService],\n});\n\nexport const DocumentCreate = Operation.make({\n meta: {\n key: 'org.dxos.function.research.document-create',\n name: 'Create research document',\n description: 'Creates a note summarizing the research.',\n },\n input: Schema.Struct({\n subject: Ref.Ref(Obj.Unknown).annotations({\n description: trim`\n ID of the object (organization, contact, etc.) for which the research was performed. \n `,\n }),\n name: Schema.String.annotations({\n description: 'Name of the document.',\n }),\n content: Schema.String.annotations({\n description: trim`\n Content of the note. \n Supports (and are prefered) references to research objects using @ syntax and <object> tags (refer to research blueprint instructions).\n `,\n }),\n }),\n output: Schema.Struct({\n document: Schema.String.annotations({\n description: 'DXN of the created document.',\n }),\n }),\n services: [Database.Service, Trace.TraceService],\n});\n"],
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,KAAKC,WAAW;AACnC,SAASC,aAAa;AACtB,SAASC,WAAWC,yBAAyB;AAC7C,SAASC,YAAY;AAEd,IAAMC,WAAWC,UAAUC,KAAK;EACrCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAaC;;;;;EAKf;EACAC,OAAcC,cAAO;IACnBC,OAAcC,cAAOC,YAAY;MAC/BN,aAAaC;;;;IAIf,CAAA;IACAM,cAAqBC,gBAAgBH,aAAM,EAAEC,YAAY;MACvDN,aAAaC;;;IAGf,CAAA;;IAEAQ,YAAmBD,gBAAgBE,cAAO,EAAEJ,YAAY;MACtDN,aAAa;MACbW,SAAS;IACX,CAAA;IACAC,kBAAyBJ,gBAAgBE,cAAO,EAAEJ,YAAY;MAC5DN,aAAaC;;;;MAIbU,SAAS;IACX,CAAA;EACF,CAAA;EACAE,QAAeV,cAAO;IACpBW,UAAiBN,gBAAgBH,aAAM,EAAEC,YAAY;MACnDN,aAAa;IACf,CAAA;IACAe,SAAgBC,aAAaC,cAAO,EAAEX,YAAY;MAChDN,aAAa;IACf,CAAA;EACF,CAAA;EACAkB,UAAU;IAACC,UAAUA;IAAWC,SAASC;IAASC,kBAAkBD;IAASE,MAAMC;;AACrF,CAAA;AAEO,IAAMC,iBAAiB9B,UAAUC,KAAK;EAC3CC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAa;EACf;EACAE,OAAcC,cAAO;IACnBuB,SAASC,IAAIA,IAAIC,IAAIX,OAAO,EAAEX,YAAY;MACxCN,aAAaC;;;IAGf,CAAA;IACAF,MAAaM,cAAOC,YAAY;MAC9BN,aAAa;IACf,CAAA;IACA6B,SAAgBxB,cAAOC,YAAY;MACjCN,aAAaC;;;;IAIf,CAAA;EACF,CAAA;EACAY,QAAeV,cAAO;IACpBW,UAAiBT,cAAOC,YAAY;MAClCN,aAAa;IACf,CAAA;EACF,CAAA;EACAkB,UAAU;IAACE,SAASC;IAASE,MAAMC;;AACrC,CAAA;",
|
|
6
|
+
"names": ["Schema", "AiService", "Database", "Obj", "Ref", "Trace", "Operation", "OperationRegistry", "trim", "Research", "Operation", "make", "meta", "key", "name", "description", "trim", "input", "Struct", "query", "String", "annotations", "instructions", "optional", "mockSearch", "Boolean", "default", "entityExtraction", "output", "document", "objects", "Array", "Unknown", "services", "AiService", "Database", "Service", "OperationRegistry", "Trace", "TraceService", "DocumentCreate", "subject", "Ref", "Obj", "content"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./chunk-J5LGTIGS.mjs";
|
|
4
|
+
|
|
5
|
+
// src/types/Chat.ts
|
|
6
|
+
var Chat_exports = {};
|
|
7
|
+
__export(Chat_exports, {
|
|
8
|
+
Chat: () => Chat,
|
|
9
|
+
CompanionTo: () => CompanionTo,
|
|
10
|
+
LegacyCompanionTo: () => LegacyCompanionTo,
|
|
11
|
+
make: () => make
|
|
12
|
+
});
|
|
13
|
+
import * as Schema from "effect/Schema";
|
|
14
|
+
import { Annotation, Feed, Obj, Ref, Type } from "@dxos/echo";
|
|
15
|
+
import { FormInputAnnotation, LabelAnnotation } from "@dxos/echo/internal";
|
|
16
|
+
var Chat = Schema.Struct({
|
|
17
|
+
name: Schema.String.pipe(Schema.optional),
|
|
18
|
+
feed: Ref.Ref(Feed.Feed).pipe(FormInputAnnotation.set(false))
|
|
19
|
+
}).pipe(Type.object({
|
|
20
|
+
typename: "org.dxos.type.assistant.chat",
|
|
21
|
+
version: "0.1.0"
|
|
22
|
+
}), LabelAnnotation.set([
|
|
23
|
+
"name"
|
|
24
|
+
]), Annotation.IconAnnotation.set({
|
|
25
|
+
icon: "ph--sparkle--regular",
|
|
26
|
+
hue: "sky"
|
|
27
|
+
}));
|
|
28
|
+
var make = (props) => Obj.make(Chat, props);
|
|
29
|
+
var LegacyCompanionTo = Schema.Struct({
|
|
30
|
+
id: Obj.ID
|
|
31
|
+
}).pipe(Type.relation({
|
|
32
|
+
typename: "org.dxos.relation.assistant.companion-to",
|
|
33
|
+
version: "0.1.0",
|
|
34
|
+
source: Chat,
|
|
35
|
+
target: Obj.Unknown
|
|
36
|
+
}));
|
|
37
|
+
var CompanionTo = Schema.Struct({
|
|
38
|
+
id: Obj.ID
|
|
39
|
+
}).pipe(Type.relation({
|
|
40
|
+
typename: "org.dxos.relation.assistant.companionTo",
|
|
41
|
+
version: "0.1.0",
|
|
42
|
+
source: Chat,
|
|
43
|
+
target: Obj.Unknown
|
|
44
|
+
}));
|
|
45
|
+
|
|
46
|
+
export {
|
|
47
|
+
Chat,
|
|
48
|
+
make,
|
|
49
|
+
CompanionTo,
|
|
50
|
+
Chat_exports
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=chunk-DV5DCOUE.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/types/Chat.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\n// @import-as-namespace\n\nimport * as Schema from 'effect/Schema';\n\nimport { Annotation, Feed, Obj, Ref, Type } from '@dxos/echo';\nimport { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/internal';\n\n/**\n * AI chat.\n */\nexport const Chat = Schema.Struct({\n name: Schema.String.pipe(Schema.optional),\n feed: Ref.Ref(Feed.Feed).pipe(FormInputAnnotation.set(false)),\n}).pipe(\n Type.object({\n typename: 'org.dxos.type.assistant.chat',\n version: '0.1.0',\n }),\n LabelAnnotation.set(['name']),\n Annotation.IconAnnotation.set({\n icon: 'ph--sparkle--regular',\n hue: 'sky',\n }),\n);\n\nexport interface Chat extends Schema.Schema.Type<typeof Chat> {}\n\nexport const make = (props: Obj.MakeProps<typeof Chat>) => Obj.make(Chat, props);\n\n/** @deprecated Use CompanionTo instead. */\nexport const LegacyCompanionTo = Schema.Struct({\n id: Obj.ID,\n}).pipe(\n Type.relation({\n typename: 'org.dxos.relation.assistant.companion-to',\n version: '0.1.0',\n source: Chat,\n target: Obj.Unknown,\n }),\n);\n\nexport interface LegacyCompanionTo extends Schema.Schema.Type<typeof LegacyCompanionTo> {}\n\n/**\n * Relation between a Chat and companion objects (e.g., artifacts).\n */\nexport const CompanionTo = Schema.Struct({\n id: Obj.ID,\n}).pipe(\n Type.relation({\n typename: 'org.dxos.relation.assistant.companionTo',\n version: '0.1.0',\n source: Chat,\n target: Obj.Unknown,\n }),\n);\n\nexport interface CompanionTo extends Schema.Schema.Type<typeof CompanionTo> {}\n"],
|
|
5
|
+
"mappings": ";;;;;AAAA;;;;;;;AAMA,YAAYA,YAAY;AAExB,SAASC,YAAYC,MAAMC,KAAKC,KAAKC,YAAY;AACjD,SAASC,qBAAqBC,uBAAuB;AAK9C,IAAMC,OAAcC,cAAO;EAChCC,MAAaC,cAAOC,KAAYC,eAAQ;EACxCC,MAAMC,IAAIA,IAAIC,KAAKA,IAAI,EAAEJ,KAAKK,oBAAoBC,IAAI,KAAA,CAAA;AACxD,CAAA,EAAGN,KACDO,KAAKC,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,GACAC,gBAAgBL,IAAI;EAAC;CAAO,GAC5BM,WAAWC,eAAeP,IAAI;EAC5BQ,MAAM;EACNC,KAAK;AACP,CAAA,CAAA;AAKK,IAAMC,OAAO,CAACC,UAAsCC,IAAIF,KAAKpB,MAAMqB,KAAAA;AAGnE,IAAME,oBAA2BtB,cAAO;EAC7CuB,IAAIF,IAAIG;AACV,CAAA,EAAGrB,KACDO,KAAKe,SAAS;EACZb,UAAU;EACVC,SAAS;EACTa,QAAQ3B;EACR4B,QAAQN,IAAIO;AACd,CAAA,CAAA;AAQK,IAAMC,cAAqB7B,cAAO;EACvCuB,IAAIF,IAAIG;AACV,CAAA,EAAGrB,KACDO,KAAKe,SAAS;EACZb,UAAU;EACVC,SAAS;EACTa,QAAQ3B;EACR4B,QAAQN,IAAIO;AACd,CAAA,CAAA;",
|
|
6
|
+
"names": ["Schema", "Annotation", "Feed", "Obj", "Ref", "Type", "FormInputAnnotation", "LabelAnnotation", "Chat", "Struct", "name", "String", "pipe", "optional", "feed", "Ref", "Feed", "FormInputAnnotation", "set", "Type", "object", "typename", "version", "LabelAnnotation", "Annotation", "IconAnnotation", "icon", "hue", "make", "props", "Obj", "LegacyCompanionTo", "id", "ID", "relation", "source", "target", "Unknown", "CompanionTo"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Plan_exports
|
|
3
|
+
} from "./chunk-VUGCOWRW.mjs";
|
|
4
|
+
|
|
5
|
+
// src/blueprints/planning/functions/definitions.ts
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
|
+
import { AiContextService } from "@dxos/assistant";
|
|
8
|
+
import { Database } from "@dxos/echo";
|
|
9
|
+
import { Operation } from "@dxos/operation";
|
|
10
|
+
import { trim } from "@dxos/util";
|
|
11
|
+
var INSTRUCTIONS = trim`
|
|
12
|
+
TASK MANAGEMENT TOOL - USAGE GUIDELINES
|
|
13
|
+
|
|
14
|
+
This tool maintains an organized task list during work sessions to track progress, break down objectives, and ensure thoroughness. After creating initial tasks, update them silently without announcing changes to the user.
|
|
15
|
+
|
|
16
|
+
=== CORE USAGE PRINCIPLES ===
|
|
17
|
+
|
|
18
|
+
Create and manage tasks for: multi-step objectives requiring 3+ distinct actions, complex projects needing careful sequencing, user requests for task organization, multiple deliverables provided together, new instructions (capture as tasks immediately with new IDs), completed work (mark done and add follow-ups), and active work (mark as 'in-progress', limit one at a time).
|
|
19
|
+
|
|
20
|
+
Skip task management for: single straightforward actions, simple requests achievable in 1-2 steps, informational queries, quick lookups or clarifications, and avoid creating verification tasks unless requested.
|
|
21
|
+
|
|
22
|
+
=== TOOL SPECIFICATION ===
|
|
23
|
+
|
|
24
|
+
update-tasks requires an array of task objects. Each task object contains:
|
|
25
|
+
- id (string, required): unique identifier like "task_1" or "research_sources"
|
|
26
|
+
- title (string, optional): update to clarify or refine task description
|
|
27
|
+
- status (string, optional): 'todo' | 'in-progress' | 'done'
|
|
28
|
+
|
|
29
|
+
Task status meanings: 'todo' means not yet started, 'in-progress' means currently being worked on, 'done' means completed successfully.
|
|
30
|
+
|
|
31
|
+
=== OPERATIONAL GUIDELINES ===
|
|
32
|
+
|
|
33
|
+
Update tasks in real-time as work progresses. Mark tasks 'done' immediately upon completion. Maintain only ONE task with 'in-progress' status at a time. Complete current tasks before starting new ones. Use specific, actionable task titles. Break complex work into manageable logical pieces. Batch task updates with other actions when possible for efficiency.
|
|
34
|
+
|
|
35
|
+
=== USAGE EXAMPLES ===
|
|
36
|
+
|
|
37
|
+
<example type="research_project">
|
|
38
|
+
<user_message>I need to research sustainable packaging options and write a report comparing costs and environmental impact.</user_message>
|
|
39
|
+
<assistant_action>
|
|
40
|
+
Creates tasks:
|
|
41
|
+
1. {id: "research_materials", title: "Research sustainable packaging materials", status: "in-progress"}
|
|
42
|
+
2. {id: "compare_costs", title: "Compile cost comparison data", status: "todo"}
|
|
43
|
+
3. {id: "assess_impact", title: "Evaluate environmental impact metrics", status: "todo"}
|
|
44
|
+
4. {id: "draft_report", title: "Write comparative analysis report", status: "todo"}
|
|
45
|
+
|
|
46
|
+
Begins research work immediately in same response.
|
|
47
|
+
</assistant_action>
|
|
48
|
+
<reasoning>Multi-phase project requiring systematic tracking across research, analysis, and writing stages.</reasoning>
|
|
49
|
+
</example>
|
|
50
|
+
|
|
51
|
+
<example type="event_planning">
|
|
52
|
+
<user_message>Help me plan a team retreat - venue, agenda, catering, and send invitations.</user_message>
|
|
53
|
+
<assistant_action>
|
|
54
|
+
Creates tasks:
|
|
55
|
+
1. {id: "venue_options", title: "Research and recommend venues", status: "in-progress"}
|
|
56
|
+
2. {id: "draft_agenda", title: "Create retreat agenda", status: "todo"}
|
|
57
|
+
3. {id: "arrange_catering", title: "Coordinate catering options", status: "todo"}
|
|
58
|
+
4. {id: "send_invites", title: "Draft and send invitations", status: "todo"}
|
|
59
|
+
</assistant_action>
|
|
60
|
+
<reasoning>Multiple distinct deliverables with dependencies requiring organized tracking.</reasoning>
|
|
61
|
+
</example>
|
|
62
|
+
|
|
63
|
+
<example type="document_analysis">
|
|
64
|
+
<user_message>Review this 30-page contract for key terms, risks, and negotiation points.</user_message>
|
|
65
|
+
<assistant_action>
|
|
66
|
+
Creates tasks:
|
|
67
|
+
1. {id: "extract_key_terms", title: "Identify key contractual terms", status: "in-progress"}
|
|
68
|
+
2. {id: "flag_risks", title: "Flag potential risks and liabilities", status: "todo"}
|
|
69
|
+
3. {id: "negotiation_points", title: "Compile negotiation recommendations", status: "todo"}
|
|
70
|
+
4. {id: "summary_doc", title: "Prepare executive summary", status: "todo"}
|
|
71
|
+
</assistant_action>
|
|
72
|
+
<reasoning>Substantial analysis work requiring methodical breakdown and systematic review.</reasoning>
|
|
73
|
+
</example>
|
|
74
|
+
|
|
75
|
+
<example type="multiple_deliverables">
|
|
76
|
+
<user_message>I need: 1) competitor analysis for three companies, 2) SWOT analysis, 3) market positioning recommendations.</user_message>
|
|
77
|
+
<assistant_action>
|
|
78
|
+
Creates tasks:
|
|
79
|
+
1. {id: "competitor_research", title: "Research three competitor companies", status: "in-progress"}
|
|
80
|
+
2. {id: "swot_analysis", title: "Develop SWOT analysis", status: "todo"}
|
|
81
|
+
3. {id: "positioning_recs", title: "Create market positioning recommendations", status: "todo"}
|
|
82
|
+
</assistant_action>
|
|
83
|
+
<reasoning>User provided numbered list of distinct deliverables requiring separate effort.</reasoning>
|
|
84
|
+
</example>
|
|
85
|
+
|
|
86
|
+
<example type="skip_simple_question">
|
|
87
|
+
<user_message>What's the difference between renewable and sustainable energy?</user_message>
|
|
88
|
+
<assistant_action>Provides explanation directly without creating tasks.</assistant_action>
|
|
89
|
+
<reasoning>Informational request with no actionable work to complete or track.</reasoning>
|
|
90
|
+
</example>
|
|
91
|
+
|
|
92
|
+
<example type="skip_quick_lookup">
|
|
93
|
+
<user_message>Find the population of Tokyo.</user_message>
|
|
94
|
+
<assistant_action>Searches and provides answer without task tracking.</assistant_action>
|
|
95
|
+
<reasoning>Single straightforward lookup completable immediately.</reasoning>
|
|
96
|
+
</example>
|
|
97
|
+
|
|
98
|
+
<example type="skip_trivial_task">
|
|
99
|
+
<user_message>Summarize this 2-paragraph email.</user_message>
|
|
100
|
+
<assistant_action>Provides summary directly without creating tasks.</assistant_action>
|
|
101
|
+
<reasoning>Single simple action requiring no breakdown or progress tracking.</reasoning>
|
|
102
|
+
</example>
|
|
103
|
+
|
|
104
|
+
<example type="skip_single_action">
|
|
105
|
+
<user_message>Check if my flight is on time.</user_message>
|
|
106
|
+
<assistant_action>Performs lookup and reports status without task management.</assistant_action>
|
|
107
|
+
<reasoning>One-step action with immediate completion, no organizational benefit from tasks.</reasoning>
|
|
108
|
+
</example>
|
|
109
|
+
|
|
110
|
+
=== BEST PRACTICES ===
|
|
111
|
+
|
|
112
|
+
For task creation: use descriptive unique IDs reflecting the work, start first task as 'in-progress', batch initial creation with beginning work. For progress tracking: update status immediately upon completion, keep only one 'in-progress' task unless parallel work is natural, add follow-up tasks as they emerge. For task breakdown: aim for reasonably-scoped tasks, group related small actions into logical units, split tasks requiring different approaches.
|
|
113
|
+
|
|
114
|
+
When uncertain whether to use task management, err on the side of creating tasks. Proactive organization demonstrates thoroughness and ensures comprehensive work completion.
|
|
115
|
+
`;
|
|
116
|
+
var TaskProps = Schema.Struct({
|
|
117
|
+
id: Plan_exports.TaskId,
|
|
118
|
+
title: Schema.String,
|
|
119
|
+
status: Schema.Literal("todo", "in-progress", "done")
|
|
120
|
+
});
|
|
121
|
+
var UpdateTasks = Operation.make({
|
|
122
|
+
meta: {
|
|
123
|
+
key: "org.dxos.function.planning.update-tasks",
|
|
124
|
+
name: "Update tasks",
|
|
125
|
+
description: INSTRUCTIONS
|
|
126
|
+
},
|
|
127
|
+
input: Schema.Struct({
|
|
128
|
+
tasks: Schema.Array(TaskProps)
|
|
129
|
+
}),
|
|
130
|
+
output: Schema.Any,
|
|
131
|
+
services: [
|
|
132
|
+
AiContextService,
|
|
133
|
+
Database.Service
|
|
134
|
+
]
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
export {
|
|
138
|
+
UpdateTasks
|
|
139
|
+
};
|
|
140
|
+
//# sourceMappingURL=chunk-FKGWM6KF.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/planning/functions/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { AiContextService } from '@dxos/assistant';\nimport { Database } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { trim } from '@dxos/util';\n\nimport { Plan } from '../../../types';\n\nconst INSTRUCTIONS = trim`\nTASK MANAGEMENT TOOL - USAGE GUIDELINES\n\nThis tool maintains an organized task list during work sessions to track progress, break down objectives, and ensure thoroughness. After creating initial tasks, update them silently without announcing changes to the user.\n\n=== CORE USAGE PRINCIPLES ===\n\nCreate and manage tasks for: multi-step objectives requiring 3+ distinct actions, complex projects needing careful sequencing, user requests for task organization, multiple deliverables provided together, new instructions (capture as tasks immediately with new IDs), completed work (mark done and add follow-ups), and active work (mark as 'in-progress', limit one at a time).\n\nSkip task management for: single straightforward actions, simple requests achievable in 1-2 steps, informational queries, quick lookups or clarifications, and avoid creating verification tasks unless requested.\n\n=== TOOL SPECIFICATION ===\n\nupdate-tasks requires an array of task objects. Each task object contains:\n- id (string, required): unique identifier like \"task_1\" or \"research_sources\"\n- title (string, optional): update to clarify or refine task description\n- status (string, optional): 'todo' | 'in-progress' | 'done'\n\nTask status meanings: 'todo' means not yet started, 'in-progress' means currently being worked on, 'done' means completed successfully.\n\n=== OPERATIONAL GUIDELINES ===\n\nUpdate tasks in real-time as work progresses. Mark tasks 'done' immediately upon completion. Maintain only ONE task with 'in-progress' status at a time. Complete current tasks before starting new ones. Use specific, actionable task titles. Break complex work into manageable logical pieces. Batch task updates with other actions when possible for efficiency.\n\n=== USAGE EXAMPLES ===\n\n<example type=\"research_project\">\n<user_message>I need to research sustainable packaging options and write a report comparing costs and environmental impact.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"research_materials\", title: \"Research sustainable packaging materials\", status: \"in-progress\"}\n2. {id: \"compare_costs\", title: \"Compile cost comparison data\", status: \"todo\"}\n3. {id: \"assess_impact\", title: \"Evaluate environmental impact metrics\", status: \"todo\"}\n4. {id: \"draft_report\", title: \"Write comparative analysis report\", status: \"todo\"}\n\nBegins research work immediately in same response.\n</assistant_action>\n<reasoning>Multi-phase project requiring systematic tracking across research, analysis, and writing stages.</reasoning>\n</example>\n\n<example type=\"event_planning\">\n<user_message>Help me plan a team retreat - venue, agenda, catering, and send invitations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"venue_options\", title: \"Research and recommend venues\", status: \"in-progress\"}\n2. {id: \"draft_agenda\", title: \"Create retreat agenda\", status: \"todo\"}\n3. {id: \"arrange_catering\", title: \"Coordinate catering options\", status: \"todo\"}\n4. {id: \"send_invites\", title: \"Draft and send invitations\", status: \"todo\"}\n</assistant_action>\n<reasoning>Multiple distinct deliverables with dependencies requiring organized tracking.</reasoning>\n</example>\n\n<example type=\"document_analysis\">\n<user_message>Review this 30-page contract for key terms, risks, and negotiation points.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"extract_key_terms\", title: \"Identify key contractual terms\", status: \"in-progress\"}\n2. {id: \"flag_risks\", title: \"Flag potential risks and liabilities\", status: \"todo\"}\n3. {id: \"negotiation_points\", title: \"Compile negotiation recommendations\", status: \"todo\"}\n4. {id: \"summary_doc\", title: \"Prepare executive summary\", status: \"todo\"}\n</assistant_action>\n<reasoning>Substantial analysis work requiring methodical breakdown and systematic review.</reasoning>\n</example>\n\n<example type=\"multiple_deliverables\">\n<user_message>I need: 1) competitor analysis for three companies, 2) SWOT analysis, 3) market positioning recommendations.</user_message>\n<assistant_action>\nCreates tasks:\n1. {id: \"competitor_research\", title: \"Research three competitor companies\", status: \"in-progress\"}\n2. {id: \"swot_analysis\", title: \"Develop SWOT analysis\", status: \"todo\"}\n3. {id: \"positioning_recs\", title: \"Create market positioning recommendations\", status: \"todo\"}\n</assistant_action>\n<reasoning>User provided numbered list of distinct deliverables requiring separate effort.</reasoning>\n</example>\n\n<example type=\"skip_simple_question\">\n<user_message>What's the difference between renewable and sustainable energy?</user_message>\n<assistant_action>Provides explanation directly without creating tasks.</assistant_action>\n<reasoning>Informational request with no actionable work to complete or track.</reasoning>\n</example>\n\n<example type=\"skip_quick_lookup\">\n<user_message>Find the population of Tokyo.</user_message>\n<assistant_action>Searches and provides answer without task tracking.</assistant_action>\n<reasoning>Single straightforward lookup completable immediately.</reasoning>\n</example>\n\n<example type=\"skip_trivial_task\">\n<user_message>Summarize this 2-paragraph email.</user_message>\n<assistant_action>Provides summary directly without creating tasks.</assistant_action>\n<reasoning>Single simple action requiring no breakdown or progress tracking.</reasoning>\n</example>\n\n<example type=\"skip_single_action\">\n<user_message>Check if my flight is on time.</user_message>\n<assistant_action>Performs lookup and reports status without task management.</assistant_action>\n<reasoning>One-step action with immediate completion, no organizational benefit from tasks.</reasoning>\n</example>\n\n=== BEST PRACTICES ===\n\nFor task creation: use descriptive unique IDs reflecting the work, start first task as 'in-progress', batch initial creation with beginning work. For progress tracking: update status immediately upon completion, keep only one 'in-progress' task unless parallel work is natural, add follow-up tasks as they emerge. For task breakdown: aim for reasonably-scoped tasks, group related small actions into logical units, split tasks requiring different approaches.\n\nWhen uncertain whether to use task management, err on the side of creating tasks. Proactive organization demonstrates thoroughness and ensures comprehensive work completion.\n`;\n\nconst TaskProps = Schema.Struct({\n id: Plan.TaskId,\n title: Schema.String,\n status: Schema.Literal('todo', 'in-progress', 'done'),\n});\n\nexport const UpdateTasks = Operation.make({\n meta: {\n key: 'org.dxos.function.planning.update-tasks',\n name: 'Update tasks',\n description: INSTRUCTIONS,\n },\n input: Schema.Struct({\n tasks: Schema.Array(TaskProps),\n }),\n output: Schema.Any,\n services: [AiContextService, Database.Service],\n});\n"],
|
|
5
|
+
"mappings": ";;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,wBAAwB;AACjC,SAASC,gBAAgB;AACzB,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AAIrB,IAAMC,eAAeC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0GrB,IAAMC,YAAmBC,cAAO;EAC9BC,IAAIC,aAAKC;EACTC,OAAcC;EACdC,QAAeC,eAAQ,QAAQ,eAAe,MAAA;AAChD,CAAA;AAEO,IAAMC,cAAcC,UAAUC,KAAK;EACxCC,MAAM;IACJC,KAAK;IACLC,MAAM;IACNC,aAAajB;EACf;EACAkB,OAAcf,cAAO;IACnBgB,OAAcC,aAAMlB,SAAAA;EACtB,CAAA;EACAmB,QAAeC;EACfC,UAAU;IAACC;IAAkBC,SAASC;;AACxC,CAAA;",
|
|
6
|
+
"names": ["Schema", "AiContextService", "Database", "Operation", "trim", "INSTRUCTIONS", "trim", "TaskProps", "Struct", "id", "Plan", "TaskId", "title", "String", "status", "Literal", "UpdateTasks", "Operation", "make", "meta", "key", "name", "description", "input", "tasks", "Array", "output", "Any", "services", "AiContextService", "Database", "Service"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
// src/blueprints/discord/functions/definitions.ts
|
|
2
|
+
import * as Schema from "effect/Schema";
|
|
3
|
+
import { CredentialsService, Trace } from "@dxos/functions";
|
|
4
|
+
import { Operation } from "@dxos/operation";
|
|
5
|
+
var TimeRangeSchema = Schema.String.pipe(Schema.pattern(/\d+(s|m|h|d)/)).annotations({
|
|
6
|
+
description: "Time range. 1d - 1 day, 2h - 2 hours, 30m - 30 minutes, 15s - 15 seconds.",
|
|
7
|
+
examples: [
|
|
8
|
+
"1d",
|
|
9
|
+
"2h",
|
|
10
|
+
"30m",
|
|
11
|
+
"15s"
|
|
12
|
+
]
|
|
13
|
+
});
|
|
14
|
+
var TimeRange = Object.assign(TimeRangeSchema, {
|
|
15
|
+
toSeconds(timeRange) {
|
|
16
|
+
const match = timeRange.match(/(\d+)(s|m|h|d)/);
|
|
17
|
+
if (!match) {
|
|
18
|
+
throw new Error(`Invalid time range: ${timeRange}`);
|
|
19
|
+
}
|
|
20
|
+
const [_, amount, unit] = match;
|
|
21
|
+
switch (unit) {
|
|
22
|
+
case "s":
|
|
23
|
+
return Number(amount);
|
|
24
|
+
case "m":
|
|
25
|
+
return Number(amount) * 60;
|
|
26
|
+
case "h":
|
|
27
|
+
return Number(amount) * 60 * 60;
|
|
28
|
+
case "d":
|
|
29
|
+
return Number(amount) * 24 * 60 * 60;
|
|
30
|
+
default:
|
|
31
|
+
throw new Error(`Invalid time range unit: ${unit}`);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
var FetchMessages = Operation.make({
|
|
36
|
+
meta: {
|
|
37
|
+
key: "org.dxos.function.fetch-discord-messages",
|
|
38
|
+
name: "Sync Discord messages"
|
|
39
|
+
},
|
|
40
|
+
input: Schema.Struct({
|
|
41
|
+
serverId: Schema.String.annotations({
|
|
42
|
+
description: "The ID of the server to fetch messages from."
|
|
43
|
+
}),
|
|
44
|
+
channelId: Schema.optional(Schema.String).annotations({
|
|
45
|
+
description: "The ID of the channel to fetch messages from. Will crawl all channels from the server if not specified."
|
|
46
|
+
}),
|
|
47
|
+
after: Schema.optional(Schema.Number).annotations({
|
|
48
|
+
description: "Fetch messages that were sent after a given date. Unix timestamp in seconds. Exclusive with `last`."
|
|
49
|
+
}),
|
|
50
|
+
last: TimeRange.annotations({
|
|
51
|
+
description: 'Time range to fetch most recent messages. Specifies the range in the past, from now. "1d" would fetch messages from the last 24 hours.'
|
|
52
|
+
}),
|
|
53
|
+
limit: Schema.optional(Schema.Number).annotations({
|
|
54
|
+
description: "The maximum number of messages to fetch."
|
|
55
|
+
}),
|
|
56
|
+
pageSize: Schema.optional(Schema.Number).annotations({
|
|
57
|
+
description: "The number of messages to fetch per page."
|
|
58
|
+
}),
|
|
59
|
+
ignoreUsernames: Schema.optional(Schema.Array(Schema.String)).annotations({
|
|
60
|
+
description: "Exclude messages from these usernames."
|
|
61
|
+
})
|
|
62
|
+
}),
|
|
63
|
+
output: Schema.Any,
|
|
64
|
+
services: [
|
|
65
|
+
CredentialsService,
|
|
66
|
+
Trace.TraceService
|
|
67
|
+
]
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
export {
|
|
71
|
+
TimeRange,
|
|
72
|
+
FetchMessages
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=chunk-HCS67KNS.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/discord/functions/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { CredentialsService, Trace } from '@dxos/functions';\nimport { Operation } from '@dxos/operation';\n\n// TODO(dmaretskyi): Extract.\nconst TimeRangeSchema = Schema.String.pipe(Schema.pattern(/\\d+(s|m|h|d)/)).annotations({\n description: 'Time range. 1d - 1 day, 2h - 2 hours, 30m - 30 minutes, 15s - 15 seconds.',\n examples: ['1d', '2h', '30m', '15s'],\n});\n\nexport const TimeRange = Object.assign(TimeRangeSchema, {\n toSeconds(timeRange: string) {\n const match = timeRange.match(/(\\d+)(s|m|h|d)/);\n if (!match) {\n throw new Error(`Invalid time range: ${timeRange}`);\n }\n const [_, amount, unit] = match;\n switch (unit) {\n case 's':\n return Number(amount);\n case 'm':\n return Number(amount) * 60;\n case 'h':\n return Number(amount) * 60 * 60;\n case 'd':\n return Number(amount) * 24 * 60 * 60;\n default:\n throw new Error(`Invalid time range unit: ${unit}`);\n }\n },\n});\n\nexport const FetchMessages = Operation.make({\n meta: {\n key: 'org.dxos.function.fetch-discord-messages',\n name: 'Sync Discord messages',\n },\n input: Schema.Struct({\n serverId: Schema.String.annotations({\n description: 'The ID of the server to fetch messages from.',\n }),\n channelId: Schema.optional(Schema.String).annotations({\n description:\n 'The ID of the channel to fetch messages from. Will crawl all channels from the server if not specified.',\n }),\n after: Schema.optional(Schema.Number).annotations({\n description:\n 'Fetch messages that were sent after a given date. Unix timestamp in seconds. Exclusive with `last`.',\n }),\n last: TimeRange.annotations({\n description:\n 'Time range to fetch most recent messages. Specifies the range in the past, from now. \"1d\" would fetch messages from the last 24 hours.',\n }),\n limit: Schema.optional(Schema.Number).annotations({\n description: 'The maximum number of messages to fetch.',\n }),\n pageSize: Schema.optional(Schema.Number).annotations({\n description: 'The number of messages to fetch per page.',\n }),\n ignoreUsernames: Schema.optional(Schema.Array(Schema.String)).annotations({\n description: 'Exclude messages from these usernames.',\n }),\n }),\n output: Schema.Any,\n services: [CredentialsService, Trace.TraceService],\n});\n"],
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,oBAAoBC,aAAa;AAC1C,SAASC,iBAAiB;AAG1B,IAAMC,kBAAyBC,cAAOC,KAAYC,eAAQ,cAAA,CAAA,EAAiBC,YAAY;EACrFC,aAAa;EACbC,UAAU;IAAC;IAAM;IAAM;IAAO;;AAChC,CAAA;AAEO,IAAMC,YAAYC,OAAOC,OAAOT,iBAAiB;EACtDU,UAAUC,WAAiB;AACzB,UAAMC,QAAQD,UAAUC,MAAM,gBAAA;AAC9B,QAAI,CAACA,OAAO;AACV,YAAM,IAAIC,MAAM,uBAAuBF,SAAAA,EAAW;IACpD;AACA,UAAM,CAACG,GAAGC,QAAQC,IAAAA,IAAQJ;AAC1B,YAAQI,MAAAA;MACN,KAAK;AACH,eAAOC,OAAOF,MAAAA;MAChB,KAAK;AACH,eAAOE,OAAOF,MAAAA,IAAU;MAC1B,KAAK;AACH,eAAOE,OAAOF,MAAAA,IAAU,KAAK;MAC/B,KAAK;AACH,eAAOE,OAAOF,MAAAA,IAAU,KAAK,KAAK;MACpC;AACE,cAAM,IAAIF,MAAM,4BAA4BG,IAAAA,EAAM;IACtD;EACF;AACF,CAAA;AAEO,IAAME,gBAAgBC,UAAUC,KAAK;EAC1CC,MAAM;IACJC,KAAK;IACLC,MAAM;EACR;EACAC,OAAcC,cAAO;IACnBC,UAAiBzB,cAAOG,YAAY;MAClCC,aAAa;IACf,CAAA;IACAsB,WAAkBC,gBAAgB3B,aAAM,EAAEG,YAAY;MACpDC,aACE;IACJ,CAAA;IACAwB,OAAcD,gBAAgBX,aAAM,EAAEb,YAAY;MAChDC,aACE;IACJ,CAAA;IACAyB,MAAMvB,UAAUH,YAAY;MAC1BC,aACE;IACJ,CAAA;IACA0B,OAAcH,gBAAgBX,aAAM,EAAEb,YAAY;MAChDC,aAAa;IACf,CAAA;IACA2B,UAAiBJ,gBAAgBX,aAAM,EAAEb,YAAY;MACnDC,aAAa;IACf,CAAA;IACA4B,iBAAwBL,gBAAgBM,aAAajC,aAAM,CAAA,EAAGG,YAAY;MACxEC,aAAa;IACf,CAAA;EACF,CAAA;EACA8B,QAAeC;EACfC,UAAU;IAACC;IAAoBC,MAAMC;;AACvC,CAAA;",
|
|
6
|
+
"names": ["Schema", "CredentialsService", "Trace", "Operation", "TimeRangeSchema", "String", "pipe", "pattern", "annotations", "description", "examples", "TimeRange", "Object", "assign", "toSeconds", "timeRange", "match", "Error", "_", "amount", "unit", "Number", "FetchMessages", "Operation", "make", "meta", "key", "name", "input", "Struct", "serverId", "channelId", "optional", "after", "last", "limit", "pageSize", "ignoreUsernames", "Array", "output", "Any", "services", "CredentialsService", "Trace", "TraceService"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Agent_exports
|
|
3
|
+
} from "./chunk-VUGCOWRW.mjs";
|
|
4
|
+
|
|
5
|
+
// src/blueprints/project-wizard/functions/definitions.ts
|
|
6
|
+
import * as Schema from "effect/Schema";
|
|
7
|
+
import { Blueprint } from "@dxos/blueprints";
|
|
8
|
+
import { Database, Feed, Obj, Ref } from "@dxos/echo";
|
|
9
|
+
import { QueueService } from "@dxos/functions";
|
|
10
|
+
import { Operation } from "@dxos/operation";
|
|
11
|
+
var AgentRules = Operation.make({
|
|
12
|
+
meta: {
|
|
13
|
+
key: "org.dxos.function.agent-wizard.agent-rules",
|
|
14
|
+
name: "Agent rules",
|
|
15
|
+
description: "Gets the rules for creating an agent."
|
|
16
|
+
},
|
|
17
|
+
input: Schema.Struct({}),
|
|
18
|
+
output: Schema.String
|
|
19
|
+
});
|
|
20
|
+
var CreateAgent = Operation.make({
|
|
21
|
+
meta: {
|
|
22
|
+
key: "org.dxos.function.agent-wizard.create-agent",
|
|
23
|
+
name: "Create agent",
|
|
24
|
+
description: "Creates a new agent."
|
|
25
|
+
},
|
|
26
|
+
input: Schema.Struct({
|
|
27
|
+
name: Schema.String.annotations({
|
|
28
|
+
description: "The name of the agent to create."
|
|
29
|
+
}),
|
|
30
|
+
instructions: Schema.String.annotations({
|
|
31
|
+
description: "The goal of the agent. Be specific but not too verbose. The agent will use this as a core objective and set of rules to follow."
|
|
32
|
+
}),
|
|
33
|
+
blueprints: Schema.Array(Schema.String).annotations({
|
|
34
|
+
description: "The blueprint keys to use for the agent.",
|
|
35
|
+
examples: [
|
|
36
|
+
[
|
|
37
|
+
"org.dxos.blueprint.markdown",
|
|
38
|
+
"org.dxos.blueprint.database"
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
}),
|
|
42
|
+
subscriptions: Schema.Array(Ref.Ref(Obj.Unknown)).annotations({
|
|
43
|
+
description: "The objects to subscribe to for the agent. Can be references to mailboxes."
|
|
44
|
+
})
|
|
45
|
+
}),
|
|
46
|
+
output: Agent_exports.Agent,
|
|
47
|
+
services: [
|
|
48
|
+
Blueprint.RegistryService,
|
|
49
|
+
Database.Service,
|
|
50
|
+
QueueService,
|
|
51
|
+
Feed.FeedService
|
|
52
|
+
]
|
|
53
|
+
});
|
|
54
|
+
var SyncTriggers = Operation.make({
|
|
55
|
+
meta: {
|
|
56
|
+
key: "org.dxos.function.agent.sync-triggers",
|
|
57
|
+
name: "Sync triggers",
|
|
58
|
+
description: "Synchronizes triggers in the database with the agent subscriptions. Call this after editing the subscriptions array."
|
|
59
|
+
},
|
|
60
|
+
input: Schema.Struct({
|
|
61
|
+
agent: Ref.Ref(Agent_exports.Agent).annotations({
|
|
62
|
+
description: "The agent whose triggers should be synced."
|
|
63
|
+
})
|
|
64
|
+
}),
|
|
65
|
+
output: Schema.Void,
|
|
66
|
+
services: [
|
|
67
|
+
Database.Service
|
|
68
|
+
]
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
export {
|
|
72
|
+
AgentRules,
|
|
73
|
+
CreateAgent,
|
|
74
|
+
SyncTriggers
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=chunk-I2YSCI65.mjs.map
|