@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
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as FetchHttpClient from '@effect/platform/FetchHttpClient';
|
|
6
|
-
import { DiscordConfig, DiscordREST, DiscordRESTMemoryLive } from 'dfx';
|
|
7
|
-
import type {
|
|
8
|
-
GuildChannelResponse,
|
|
9
|
-
MessageResponse,
|
|
10
|
-
PrivateChannelResponse,
|
|
11
|
-
PrivateGroupChannelResponse,
|
|
12
|
-
ThreadResponse,
|
|
13
|
-
} from 'dfx/types';
|
|
14
|
-
import * as Array from 'effect/Array';
|
|
15
|
-
import * as Effect from 'effect/Effect';
|
|
16
|
-
import * as Function from 'effect/Function';
|
|
17
|
-
import * as Layer from 'effect/Layer';
|
|
18
|
-
import * as Option from 'effect/Option';
|
|
19
|
-
import * as Schema from 'effect/Schema';
|
|
20
|
-
|
|
21
|
-
import { Obj } from '@dxos/echo';
|
|
22
|
-
import { CredentialsService, TracingService, defineFunction } from '@dxos/functions';
|
|
23
|
-
import { log } from '@dxos/log';
|
|
24
|
-
import { Message } from '@dxos/types';
|
|
25
|
-
|
|
26
|
-
// TODO(dmaretskyi): Extract.
|
|
27
|
-
const TimeRange = class extends Schema.String.pipe(Schema.pattern(/\d+(s|m|h|d)/)).annotations({
|
|
28
|
-
description: 'Time range. 1d - 1 day, 2h - 2 hours, 30m - 30 minutes, 15s - 15 seconds.',
|
|
29
|
-
examples: ['1d', '2h', '30m', '15s'],
|
|
30
|
-
}) {
|
|
31
|
-
static toSeconds(timeRange: Schema.Schema.Type<typeof TimeRange>) {
|
|
32
|
-
const match = timeRange.match(/(\d+)(s|m|h|d)/);
|
|
33
|
-
if (!match) {
|
|
34
|
-
throw new Error(`Invalid time range: ${timeRange}`);
|
|
35
|
-
}
|
|
36
|
-
const [_, amount, unit] = match;
|
|
37
|
-
switch (unit) {
|
|
38
|
-
case 's':
|
|
39
|
-
return Number(amount);
|
|
40
|
-
case 'm':
|
|
41
|
-
return Number(amount) * 60;
|
|
42
|
-
case 'h':
|
|
43
|
-
return Number(amount) * 60 * 60;
|
|
44
|
-
case 'd':
|
|
45
|
-
return Number(amount) * 24 * 60 * 60;
|
|
46
|
-
default:
|
|
47
|
-
throw new Error(`Invalid time range unit: ${unit}`);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
type TimeRange = Schema.Schema.Type<typeof TimeRange>;
|
|
52
|
-
|
|
53
|
-
const DiscordConfigFromCredential = Layer.unwrapEffect(
|
|
54
|
-
Effect.gen(function* () {
|
|
55
|
-
return DiscordConfig.layer({
|
|
56
|
-
token: yield* CredentialsService.getApiKey({ service: 'discord.com' }),
|
|
57
|
-
rest: {
|
|
58
|
-
baseUrl: 'https://api-proxy.dxos.workers.dev/discord.com/api/v10',
|
|
59
|
-
},
|
|
60
|
-
});
|
|
61
|
-
}),
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
type DiscordChannel = GuildChannelResponse | PrivateChannelResponse | PrivateGroupChannelResponse | ThreadResponse;
|
|
65
|
-
|
|
66
|
-
const DEFAULT_AFTER = 1704067200; // 2024-01-01
|
|
67
|
-
const DEFAULT_LIMIT = 500;
|
|
68
|
-
const DEFAULT_IGNORE_USERNAMES = ['GitHub', 'Needle'];
|
|
69
|
-
|
|
70
|
-
// TODO(dmaretskyi): Align with standard thread type.
|
|
71
|
-
type Thread = {
|
|
72
|
-
discordChannelId: string;
|
|
73
|
-
name?: string;
|
|
74
|
-
messages: Message.Message[];
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export default defineFunction({
|
|
78
|
-
key: 'dxos.org/function/fetch-discord-messages',
|
|
79
|
-
name: 'Sync Discord messages',
|
|
80
|
-
inputSchema: Schema.Struct({
|
|
81
|
-
serverId: Schema.String.annotations({
|
|
82
|
-
description: 'The ID of the server to fetch messages from.',
|
|
83
|
-
}),
|
|
84
|
-
channelId: Schema.optional(Schema.String).annotations({
|
|
85
|
-
description:
|
|
86
|
-
'The ID of the channel to fetch messages from. Will crawl all channels from the server if not specified.',
|
|
87
|
-
}),
|
|
88
|
-
after: Schema.optional(Schema.Number).annotations({
|
|
89
|
-
description:
|
|
90
|
-
'Fetch messages that were sent after a given date. Unix timestamp in seconds. Exclusive with `last`.',
|
|
91
|
-
}),
|
|
92
|
-
last: TimeRange.annotations({
|
|
93
|
-
description:
|
|
94
|
-
'Time range to fetch most recent messages. Specifies the range in the past, from now. "1d" would fetch messages from the last 24 hours.',
|
|
95
|
-
}),
|
|
96
|
-
limit: Schema.optional(Schema.Number).annotations({
|
|
97
|
-
description: 'The maximum number of messages to fetch.',
|
|
98
|
-
}),
|
|
99
|
-
pageSize: Schema.optional(Schema.Number).annotations({
|
|
100
|
-
description: 'The number of messages to fetch per page.',
|
|
101
|
-
}),
|
|
102
|
-
ignoreUsernames: Schema.optional(Schema.Array(Schema.String)).annotations({
|
|
103
|
-
description: 'Exclude messages from these usernames.',
|
|
104
|
-
}),
|
|
105
|
-
}),
|
|
106
|
-
handler: Effect.fnUntraced(
|
|
107
|
-
function* ({
|
|
108
|
-
data: {
|
|
109
|
-
serverId,
|
|
110
|
-
channelId,
|
|
111
|
-
after,
|
|
112
|
-
last,
|
|
113
|
-
pageSize = 100,
|
|
114
|
-
limit = DEFAULT_LIMIT,
|
|
115
|
-
ignoreUsernames = DEFAULT_IGNORE_USERNAMES,
|
|
116
|
-
},
|
|
117
|
-
}) {
|
|
118
|
-
if (!after && !last) {
|
|
119
|
-
throw new Error('cannot specify both `after` and `last`');
|
|
120
|
-
}
|
|
121
|
-
const afterTs = last ? Date.now() / 1000 - TimeRange.toSeconds(last) : (after ?? DEFAULT_AFTER);
|
|
122
|
-
|
|
123
|
-
const rest = yield* DiscordREST;
|
|
124
|
-
|
|
125
|
-
let channels: DiscordChannel[] = [];
|
|
126
|
-
channels.push(...(yield* rest.listGuildChannels(serverId)));
|
|
127
|
-
const { threads: guildThreads } = yield* rest.getActiveGuildThreads(serverId);
|
|
128
|
-
channels.push(...guildThreads);
|
|
129
|
-
if (channelId) {
|
|
130
|
-
channels = channels.filter((channel) => channel.id === channelId);
|
|
131
|
-
}
|
|
132
|
-
if (channels.length === 0) {
|
|
133
|
-
throw new Error('no channels found');
|
|
134
|
-
}
|
|
135
|
-
for (const channel of channels) {
|
|
136
|
-
console.log(channel.id, 'name' in channel ? channel.name : undefined);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
yield* TracingService.emitStatus({ message: `Will fetch from channels: ${channels.length}` });
|
|
140
|
-
|
|
141
|
-
const threads = yield* Effect.forEach(
|
|
142
|
-
channels,
|
|
143
|
-
Effect.fnUntraced(function* (channel) {
|
|
144
|
-
const allMessages: Message.Message[] = [];
|
|
145
|
-
|
|
146
|
-
let lastMessage: Option.Option<Message.Message> = Option.none();
|
|
147
|
-
while (true) {
|
|
148
|
-
const { id: lastId = undefined } = Function.pipe(
|
|
149
|
-
lastMessage,
|
|
150
|
-
Option.map(Obj.getKeys('discord.com')),
|
|
151
|
-
Option.flatMap(Option.fromIterable),
|
|
152
|
-
Option.getOrElse(() => ({ id: undefined })),
|
|
153
|
-
);
|
|
154
|
-
|
|
155
|
-
const options = {
|
|
156
|
-
after: !lastId ? `${generateSnowflake(afterTs)}` : lastId,
|
|
157
|
-
limit: pageSize,
|
|
158
|
-
};
|
|
159
|
-
log.info('fetching messages', {
|
|
160
|
-
lastId,
|
|
161
|
-
afterTs,
|
|
162
|
-
afterSnowflake: options.after,
|
|
163
|
-
after: parseSnowflake(options.after),
|
|
164
|
-
limit: options.limit,
|
|
165
|
-
});
|
|
166
|
-
const messages = yield* rest.listMessages(channel.id, options).pipe(
|
|
167
|
-
Effect.map(Array.map(makeMessage)),
|
|
168
|
-
Effect.map(Array.reverse),
|
|
169
|
-
Effect.catchTag('ErrorResponse', (err) =>
|
|
170
|
-
err.cause.code === 50001 ? Effect.succeed([]) : Effect.fail(err),
|
|
171
|
-
),
|
|
172
|
-
);
|
|
173
|
-
if (messages.length > 0) {
|
|
174
|
-
lastMessage = Option.fromNullable(messages.at(-1));
|
|
175
|
-
allMessages.push(...messages);
|
|
176
|
-
} else {
|
|
177
|
-
break;
|
|
178
|
-
}
|
|
179
|
-
yield* TracingService.emitStatus({ message: `Fetched messages: ${allMessages.length}` });
|
|
180
|
-
if (allMessages.length >= limit) {
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
return {
|
|
186
|
-
discordChannelId: channel.id,
|
|
187
|
-
name: 'name' in channel ? (channel.name ?? undefined) : undefined,
|
|
188
|
-
messages: allMessages
|
|
189
|
-
.filter((message) => !message.sender.name || !ignoreUsernames.includes(message.sender.name))
|
|
190
|
-
.filter((message) =>
|
|
191
|
-
message.blocks.some((block: any) => block._tag === 'text' && block.text.trim().length > 0),
|
|
192
|
-
),
|
|
193
|
-
} satisfies Thread;
|
|
194
|
-
}),
|
|
195
|
-
{ concurrency: 10 },
|
|
196
|
-
);
|
|
197
|
-
|
|
198
|
-
return threads
|
|
199
|
-
.filter((thread) => thread.messages.length > 0)
|
|
200
|
-
.map(serializeThread)
|
|
201
|
-
.join('\n');
|
|
202
|
-
},
|
|
203
|
-
Effect.provide(
|
|
204
|
-
DiscordRESTMemoryLive.pipe(Layer.provideMerge(DiscordConfigFromCredential)).pipe(
|
|
205
|
-
Layer.provide(FetchHttpClient.layer),
|
|
206
|
-
),
|
|
207
|
-
),
|
|
208
|
-
Effect.orDie,
|
|
209
|
-
),
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* @param unixTimestamp in seconds
|
|
214
|
-
*/
|
|
215
|
-
const generateSnowflake = (unixTimestamp: number): bigint => {
|
|
216
|
-
const discordEpoch = 1420070400000n; // Discord Epoch (ms)
|
|
217
|
-
return (BigInt(unixTimestamp * 1000) - discordEpoch) << 22n;
|
|
218
|
-
};
|
|
219
|
-
|
|
220
|
-
const parseSnowflake = (snowflake: string): Date => {
|
|
221
|
-
const discordEpoch = 1420070400000n; // Discord Epoch (ms)
|
|
222
|
-
return new Date(Number((BigInt(snowflake) >> 22n) + discordEpoch));
|
|
223
|
-
};
|
|
224
|
-
|
|
225
|
-
// TODO(burdon): Move to @dxos/types.
|
|
226
|
-
const makeMessage = (message: MessageResponse): Message.Message =>
|
|
227
|
-
Obj.make(Message.Message, {
|
|
228
|
-
[Obj.Meta]: {
|
|
229
|
-
keys: [
|
|
230
|
-
{ id: message.id, source: 'discord.com' },
|
|
231
|
-
{ id: message.channel_id, source: 'discord.com/thread' },
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
sender: { name: message.author.username },
|
|
235
|
-
created: message.timestamp,
|
|
236
|
-
blocks: [{ _tag: 'text', text: message.content }],
|
|
237
|
-
});
|
|
238
|
-
|
|
239
|
-
/**
|
|
240
|
-
* Standard JSON serialization is to verbose for large amounts of data.
|
|
241
|
-
*/
|
|
242
|
-
const serializeThread = (thread: Thread): string => {
|
|
243
|
-
return `<thread id=${thread.discordChannelId} name=${thread.name ?? ''}>\n${thread.messages
|
|
244
|
-
.map(
|
|
245
|
-
(message) =>
|
|
246
|
-
` ${message.sender.name}: ${message.blocks
|
|
247
|
-
.filter((block: any) => block._tag === 'text')
|
|
248
|
-
.map((block: any) => block.text)
|
|
249
|
-
.join(' ')}`,
|
|
250
|
-
)
|
|
251
|
-
.join('\n')}\n</thread>`;
|
|
252
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Schema from 'effect/Schema';
|
|
7
|
-
|
|
8
|
-
import { ArtifactId } from '@dxos/assistant';
|
|
9
|
-
import { DatabaseService, defineFunction } from '@dxos/functions';
|
|
10
|
-
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
11
|
-
|
|
12
|
-
export default defineFunction({
|
|
13
|
-
key: 'dxos.org/function/markdown/read',
|
|
14
|
-
name: 'Read markdown document',
|
|
15
|
-
description: 'Read markdown document.',
|
|
16
|
-
inputSchema: Schema.Struct({
|
|
17
|
-
id: ArtifactId.annotations({
|
|
18
|
-
description: 'The ID of the document to read.',
|
|
19
|
-
}),
|
|
20
|
-
}),
|
|
21
|
-
outputSchema: Schema.Struct({
|
|
22
|
-
content: Schema.String,
|
|
23
|
-
}),
|
|
24
|
-
handler: Effect.fn(function* ({ data: { id } }) {
|
|
25
|
-
const doc = yield* DatabaseService.resolve(ArtifactId.toDXN(id), Markdown.Document);
|
|
26
|
-
const { content } = yield* DatabaseService.load(doc.content);
|
|
27
|
-
return { content };
|
|
28
|
-
}),
|
|
29
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Schema from 'effect/Schema';
|
|
7
|
-
|
|
8
|
-
import { ArtifactId } from '@dxos/assistant';
|
|
9
|
-
import { DatabaseService, defineFunction } from '@dxos/functions';
|
|
10
|
-
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
11
|
-
|
|
12
|
-
export default defineFunction({
|
|
13
|
-
key: 'dxos.org/function/markdown/update',
|
|
14
|
-
name: 'Update markdown',
|
|
15
|
-
description: 'Updates the entire contents of the markdown document.',
|
|
16
|
-
inputSchema: Schema.Struct({
|
|
17
|
-
id: ArtifactId.annotations({
|
|
18
|
-
description: 'The ID of the document to write.',
|
|
19
|
-
}),
|
|
20
|
-
content: Schema.String.annotations({
|
|
21
|
-
description: 'New content to write to the document.',
|
|
22
|
-
}),
|
|
23
|
-
}),
|
|
24
|
-
outputSchema: Schema.Void,
|
|
25
|
-
handler: Effect.fn(function* ({ data: { id, content } }) {
|
|
26
|
-
const doc = yield* DatabaseService.resolve(ArtifactId.toDXN(id), Markdown.Document);
|
|
27
|
-
const text = yield* DatabaseService.load(doc.content);
|
|
28
|
-
text.content = content;
|
|
29
|
-
}),
|
|
30
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as HttpClient from '@effect/platform/HttpClient';
|
|
6
|
-
import * as Effect from 'effect/Effect';
|
|
7
|
-
import * as Schema from 'effect/Schema';
|
|
8
|
-
|
|
9
|
-
import { defineFunction, withAuthorization } from '@dxos/functions';
|
|
10
|
-
|
|
11
|
-
export default defineFunction({
|
|
12
|
-
key: 'dxos.org/function/github/fetch-prs',
|
|
13
|
-
name: 'Fetch PRs',
|
|
14
|
-
description: 'Fetches PRs from GitHub.',
|
|
15
|
-
inputSchema: Schema.Struct({
|
|
16
|
-
owner: Schema.String.annotations({
|
|
17
|
-
description: 'GitHub owner.',
|
|
18
|
-
}),
|
|
19
|
-
repo: Schema.String.annotations({
|
|
20
|
-
description: 'GitHub repository.',
|
|
21
|
-
}),
|
|
22
|
-
}),
|
|
23
|
-
handler: Effect.fnUntraced(function* ({ data }) {
|
|
24
|
-
const client = yield* HttpClient.HttpClient.pipe(Effect.map(withAuthorization({ service: 'github.com' })));
|
|
25
|
-
|
|
26
|
-
const response = yield* client.get(`https://api.github.com/repos/${data.owner}/${data.repo}/pulls`);
|
|
27
|
-
const json: any = yield* response.json;
|
|
28
|
-
return json;
|
|
29
|
-
}),
|
|
30
|
-
});
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Toolkit from '@effect/ai/Toolkit';
|
|
6
|
-
import * as FetchHttpClient from '@effect/platform/FetchHttpClient';
|
|
7
|
-
import { describe, it } from '@effect/vitest';
|
|
8
|
-
import * as Config from 'effect/Config';
|
|
9
|
-
import * as Effect from 'effect/Effect';
|
|
10
|
-
import * as Layer from 'effect/Layer';
|
|
11
|
-
|
|
12
|
-
import { AiService } from '@dxos/ai';
|
|
13
|
-
import { AiServiceTestingPreset } from '@dxos/ai/testing';
|
|
14
|
-
import { makeToolExecutionServiceFromFunctions, makeToolResolverFromFunctions } from '@dxos/assistant';
|
|
15
|
-
import { Obj, Query } from '@dxos/echo';
|
|
16
|
-
import { TestHelpers } from '@dxos/effect';
|
|
17
|
-
import { CredentialsService, DatabaseService, FunctionInvocationService } from '@dxos/functions';
|
|
18
|
-
import { TracingServiceExt } from '@dxos/functions-runtime';
|
|
19
|
-
import {
|
|
20
|
-
FunctionInvocationServiceLayerTestMocked,
|
|
21
|
-
TestDatabaseLayer,
|
|
22
|
-
testStoragePath,
|
|
23
|
-
} from '@dxos/functions-runtime/testing';
|
|
24
|
-
import { Person, Project, Task } from '@dxos/types';
|
|
25
|
-
|
|
26
|
-
import { LINEAR_ID_KEY, default as fetchLinearIssues } from './sync-issues';
|
|
27
|
-
|
|
28
|
-
const TestLayer = Layer.mergeAll(
|
|
29
|
-
AiService.model('@anthropic/claude-opus-4-0'),
|
|
30
|
-
makeToolResolverFromFunctions([], Toolkit.make()),
|
|
31
|
-
makeToolExecutionServiceFromFunctions(Toolkit.make() as any, Layer.empty as any),
|
|
32
|
-
).pipe(
|
|
33
|
-
Layer.provideMerge(
|
|
34
|
-
Layer.mergeAll(
|
|
35
|
-
AiServiceTestingPreset('direct'),
|
|
36
|
-
TestDatabaseLayer({
|
|
37
|
-
// indexing: { vector: true },
|
|
38
|
-
types: [Task.Task, Person.Person, Project.Project],
|
|
39
|
-
storagePath: testStoragePath({ name: 'feed-test-13' }),
|
|
40
|
-
}),
|
|
41
|
-
CredentialsService.layerConfig([{ service: 'linear.app', apiKey: Config.redacted('LINEAR_API_KEY') }]),
|
|
42
|
-
FunctionInvocationServiceLayerTestMocked({ functions: [fetchLinearIssues] }).pipe(
|
|
43
|
-
Layer.provideMerge(TracingServiceExt.layerLogInfo()),
|
|
44
|
-
),
|
|
45
|
-
FetchHttpClient.layer,
|
|
46
|
-
),
|
|
47
|
-
),
|
|
48
|
-
);
|
|
49
|
-
|
|
50
|
-
describe('Linear', { timeout: 600_000 }, () => {
|
|
51
|
-
it.effect(
|
|
52
|
-
'sync',
|
|
53
|
-
Effect.fnUntraced(
|
|
54
|
-
function* (_) {
|
|
55
|
-
yield* DatabaseService.flush({ indexes: true });
|
|
56
|
-
|
|
57
|
-
yield* FunctionInvocationService.invokeFunction(fetchLinearIssues, {
|
|
58
|
-
team: '1127c63a-6f77-4725-9229-50f6cd47321c',
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
const { objects: persons } = yield* DatabaseService.runQuery(Query.type(Person.Person));
|
|
62
|
-
console.log('people', {
|
|
63
|
-
count: persons.length,
|
|
64
|
-
people: persons.map((_) => `(${_.id}) ${Obj.getLabel(_)} [${Obj.getKeys(_, LINEAR_ID_KEY)[0]?.id}]`),
|
|
65
|
-
});
|
|
66
|
-
const { objects: projects } = yield* DatabaseService.runQuery(Query.type(Project.Project));
|
|
67
|
-
console.log('projects', {
|
|
68
|
-
count: projects.length,
|
|
69
|
-
projects: projects.map((_) => `(${_.id}) ${Obj.getLabel(_)} [${Obj.getKeys(_, LINEAR_ID_KEY)[0]?.id}]`),
|
|
70
|
-
});
|
|
71
|
-
const { objects: tasks } = yield* DatabaseService.runQuery(Query.type(Task.Task));
|
|
72
|
-
console.log('tasks', {
|
|
73
|
-
count: tasks.length,
|
|
74
|
-
tasks: tasks.map((_) => `(${_.id}) ${Obj.getLabel(_)} [${Obj.getKeys(_, LINEAR_ID_KEY)[0]?.id}]`),
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
yield* DatabaseService.flush({ indexes: true });
|
|
78
|
-
},
|
|
79
|
-
Effect.provide(TestLayer),
|
|
80
|
-
TestHelpers.taggedTest('sync'),
|
|
81
|
-
),
|
|
82
|
-
);
|
|
83
|
-
});
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Schema from 'effect/Schema';
|
|
7
|
-
|
|
8
|
-
import { ArtifactId } from '@dxos/assistant';
|
|
9
|
-
import { Obj, Relation } from '@dxos/echo';
|
|
10
|
-
import { DatabaseService, TracingService, defineFunction } from '@dxos/functions';
|
|
11
|
-
import { log } from '@dxos/log';
|
|
12
|
-
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
13
|
-
import { HasSubject } from '@dxos/types';
|
|
14
|
-
import { trim } from '@dxos/util';
|
|
15
|
-
|
|
16
|
-
export default defineFunction({
|
|
17
|
-
key: 'dxos.org/function/research/document-create',
|
|
18
|
-
name: 'Create research document',
|
|
19
|
-
description: 'Creates a note summarizing the research.',
|
|
20
|
-
inputSchema: Schema.Struct({
|
|
21
|
-
subject: ArtifactId.annotations({
|
|
22
|
-
description: trim`
|
|
23
|
-
ID of the object (organization, contact, etc.) for which the research was performed.
|
|
24
|
-
`,
|
|
25
|
-
}),
|
|
26
|
-
name: Schema.String.annotations({
|
|
27
|
-
description: 'Name of the document.',
|
|
28
|
-
}),
|
|
29
|
-
content: Schema.String.annotations({
|
|
30
|
-
description: trim`
|
|
31
|
-
Content of the note.
|
|
32
|
-
Supports (and are prefered) references to research objects using @ syntax and <object> tags (refer to research blueprint instructions).
|
|
33
|
-
`,
|
|
34
|
-
}),
|
|
35
|
-
}),
|
|
36
|
-
outputSchema: Schema.Struct({
|
|
37
|
-
document: ArtifactId.annotations({
|
|
38
|
-
description: 'DXN of the created document.',
|
|
39
|
-
}),
|
|
40
|
-
}),
|
|
41
|
-
handler: Effect.fnUntraced(function* ({ data: { subject, name, content } }) {
|
|
42
|
-
log.info('Creating research document', { subject, name, content });
|
|
43
|
-
|
|
44
|
-
// TODO(burdon): Auto flush before and after calling function?
|
|
45
|
-
yield* DatabaseService.flush({ indexes: true });
|
|
46
|
-
yield* TracingService.emitStatus({ message: 'Creating research document...' });
|
|
47
|
-
|
|
48
|
-
// TODO(burdon): Type check.
|
|
49
|
-
const target = (yield* DatabaseService.resolve(ArtifactId.toDXN(subject))) as Obj.Any;
|
|
50
|
-
|
|
51
|
-
// Create document.
|
|
52
|
-
const object = yield* DatabaseService.add(
|
|
53
|
-
Markdown.make({
|
|
54
|
-
name,
|
|
55
|
-
content,
|
|
56
|
-
}),
|
|
57
|
-
);
|
|
58
|
-
|
|
59
|
-
// Create relation.
|
|
60
|
-
yield* DatabaseService.add(
|
|
61
|
-
Relation.make(HasSubject.HasSubject, {
|
|
62
|
-
[Relation.Source]: object,
|
|
63
|
-
[Relation.Target]: target,
|
|
64
|
-
completedAt: new Date().toISOString(),
|
|
65
|
-
}),
|
|
66
|
-
);
|
|
67
|
-
|
|
68
|
-
yield* DatabaseService.flush({ indexes: true });
|
|
69
|
-
log.info('Created research document', { subject, object });
|
|
70
|
-
|
|
71
|
-
return {
|
|
72
|
-
document: Obj.getDXN(object).toString(),
|
|
73
|
-
};
|
|
74
|
-
}),
|
|
75
|
-
});
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { default as create$ } from './document-create';
|
|
6
|
-
import { default as research$ } from './research';
|
|
7
|
-
|
|
8
|
-
export * from './research-graph';
|
|
9
|
-
export * from './types';
|
|
10
|
-
|
|
11
|
-
export namespace Research {
|
|
12
|
-
export const create = create$;
|
|
13
|
-
export const research = research$;
|
|
14
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Layer from 'effect/Layer';
|
|
7
|
-
import * as Schema from 'effect/Schema';
|
|
8
|
-
|
|
9
|
-
import { Obj, Query, Ref, Type } from '@dxos/echo';
|
|
10
|
-
import { Queue } from '@dxos/echo-db';
|
|
11
|
-
import { ContextQueueService, DatabaseService, QueueService } from '@dxos/functions';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Container for a set of ephemeral research results.
|
|
15
|
-
*/
|
|
16
|
-
export const ResearchGraph = Schema.Struct({
|
|
17
|
-
queue: Type.Ref(Queue),
|
|
18
|
-
}).pipe(
|
|
19
|
-
Type.Obj({
|
|
20
|
-
typename: 'dxos.org/type/ResearchGraph',
|
|
21
|
-
version: '0.1.0',
|
|
22
|
-
}),
|
|
23
|
-
);
|
|
24
|
-
|
|
25
|
-
export interface ResearchGraph extends Schema.Schema.Type<typeof ResearchGraph> {}
|
|
26
|
-
|
|
27
|
-
export const queryResearchGraph: () => Effect.Effect<ResearchGraph | undefined, never, DatabaseService> = Effect.fn(
|
|
28
|
-
'queryResearchGraph',
|
|
29
|
-
)(function* () {
|
|
30
|
-
const { objects } = yield* DatabaseService.runQuery(Query.type(ResearchGraph));
|
|
31
|
-
return objects.at(0);
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export const createResearchGraph: () => Effect.Effect<ResearchGraph, never, DatabaseService | QueueService> = Effect.fn(
|
|
35
|
-
'createResearchGraph',
|
|
36
|
-
)(function* () {
|
|
37
|
-
const queue = yield* QueueService.createQueue();
|
|
38
|
-
return yield* DatabaseService.add(Obj.make(ResearchGraph, { queue: Ref.fromDXN(queue.dxn) }));
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
export const contextQueueLayerFromResearchGraph = Layer.unwrapEffect(
|
|
42
|
-
Effect.gen(function* () {
|
|
43
|
-
const researchGraph = (yield* queryResearchGraph()) ?? (yield* createResearchGraph());
|
|
44
|
-
const researchQueue = yield* DatabaseService.load(researchGraph.queue);
|
|
45
|
-
return ContextQueueService.layer(researchQueue);
|
|
46
|
-
}),
|
|
47
|
-
);
|