@dxos/assistant-toolkit 0.8.4-main.ae835ea → 0.8.4-main.bcb3aa67d6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/neutral/add-artifact-OBP4D5RN.mjs +30 -0
- package/dist/lib/neutral/add-artifact-OBP4D5RN.mjs.map +7 -0
- package/dist/lib/neutral/agent-27Z7BESA.mjs +95 -0
- package/dist/lib/neutral/agent-27Z7BESA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-2NKPVOXM.mjs +267 -0
- package/dist/lib/neutral/chunk-2NKPVOXM.mjs.map +7 -0
- package/dist/lib/neutral/chunk-3ZUJIEFV.mjs +184 -0
- package/dist/lib/neutral/chunk-3ZUJIEFV.mjs.map +7 -0
- package/dist/lib/neutral/chunk-4QGZEDWS.mjs +140 -0
- package/dist/lib/neutral/chunk-4QGZEDWS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-6FL4C6KD.mjs +86 -0
- package/dist/lib/neutral/chunk-6FL4C6KD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-6IAJ2JI5.mjs +54 -0
- package/dist/lib/neutral/chunk-6IAJ2JI5.mjs.map +7 -0
- package/dist/lib/neutral/chunk-AGG6OZNB.mjs +74 -0
- package/dist/lib/neutral/chunk-AGG6OZNB.mjs.map +7 -0
- package/dist/lib/neutral/chunk-AKMBURAD.mjs +320 -0
- package/dist/lib/neutral/chunk-AKMBURAD.mjs.map +7 -0
- package/dist/lib/neutral/chunk-BO4ZVH7M.mjs +73 -0
- package/dist/lib/neutral/chunk-BO4ZVH7M.mjs.map +7 -0
- package/dist/lib/neutral/chunk-CJUCONUJ.mjs +99 -0
- package/dist/lib/neutral/chunk-CJUCONUJ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-GAJ6MKJX.mjs +363 -0
- package/dist/lib/neutral/chunk-GAJ6MKJX.mjs.map +7 -0
- package/dist/lib/neutral/chunk-HEFG73F2.mjs +53 -0
- package/dist/lib/neutral/chunk-HEFG73F2.mjs.map +7 -0
- package/dist/lib/neutral/chunk-HZM3HNAS.mjs +78 -0
- package/dist/lib/neutral/chunk-HZM3HNAS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ILZ2ODWC.mjs +95 -0
- package/dist/lib/neutral/chunk-ILZ2ODWC.mjs.map +7 -0
- package/dist/lib/neutral/chunk-IQNOIB23.mjs +58 -0
- package/dist/lib/neutral/chunk-IQNOIB23.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KWZG4QBN.mjs +685 -0
- package/dist/lib/neutral/chunk-KWZG4QBN.mjs.map +7 -0
- package/dist/lib/neutral/chunk-LI6VMCJW.mjs +27 -0
- package/dist/lib/neutral/chunk-LI6VMCJW.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MEZ4UFR6.mjs +25 -0
- package/dist/lib/neutral/chunk-MEZ4UFR6.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VBSCQN37.mjs +52 -0
- package/dist/lib/neutral/chunk-VBSCQN37.mjs.map +7 -0
- package/dist/lib/neutral/chunk-VDEDVOS6.mjs +39 -0
- package/dist/lib/neutral/chunk-VDEDVOS6.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YBTLIXQK.mjs +29 -0
- package/dist/lib/neutral/chunk-YBTLIXQK.mjs.map +7 -0
- package/dist/lib/neutral/context-add-U5LSEQLG.mjs +22 -0
- package/dist/lib/neutral/context-add-U5LSEQLG.mjs.map +7 -0
- package/dist/lib/neutral/context-remove-3YGXLVRA.mjs +22 -0
- package/dist/lib/neutral/context-remove-3YGXLVRA.mjs.map +7 -0
- package/dist/lib/neutral/create-P6I22VS5.mjs +23 -0
- package/dist/lib/neutral/create-P6I22VS5.mjs.map +7 -0
- package/dist/lib/neutral/create-project-YEDZU75J.mjs +34 -0
- package/dist/lib/neutral/create-project-YEDZU75J.mjs.map +7 -0
- package/dist/lib/neutral/delete-LHMZDJFA.mjs +19 -0
- package/dist/lib/neutral/delete-LHMZDJFA.mjs.map +7 -0
- package/dist/lib/neutral/document-create-53ZVNGFR.mjs +57 -0
- package/dist/lib/neutral/document-create-53ZVNGFR.mjs.map +7 -0
- package/dist/lib/neutral/enable-blueprints-Q5NXGX2G.mjs +48 -0
- package/dist/lib/neutral/enable-blueprints-Q5NXGX2G.mjs.map +7 -0
- package/dist/lib/neutral/entity-extraction-CFXRZWZK.mjs +196 -0
- package/dist/lib/neutral/entity-extraction-CFXRZWZK.mjs.map +7 -0
- package/dist/lib/neutral/exa-P4G3DCYB.mjs +28 -0
- package/dist/lib/neutral/exa-P4G3DCYB.mjs.map +7 -0
- package/dist/lib/neutral/fetch-TLKREIZA.mjs +16 -0
- package/dist/lib/neutral/fetch-TLKREIZA.mjs.map +7 -0
- package/dist/lib/neutral/fetch-messages-AFX7ZAVE.mjs +154 -0
- package/dist/lib/neutral/fetch-messages-AFX7ZAVE.mjs.map +7 -0
- package/dist/lib/neutral/get-context-MKM4CEGH.mjs +35 -0
- package/dist/lib/neutral/get-context-MKM4CEGH.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +248 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/load-KHLICMGJ.mjs +17 -0
- package/dist/lib/neutral/load-KHLICMGJ.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/{browser/index.mjs → neutral/mock-JSY4GY77.mjs} +28 -1953
- package/dist/lib/neutral/mock-JSY4GY77.mjs.map +7 -0
- package/dist/lib/neutral/object-create-7J7D53FT.mjs +43 -0
- package/dist/lib/neutral/object-create-7J7D53FT.mjs.map +7 -0
- package/dist/lib/neutral/object-delete-QFXUHJ2D.mjs +18 -0
- package/dist/lib/neutral/object-delete-QFXUHJ2D.mjs.map +7 -0
- package/dist/lib/neutral/object-update-C73HRM5F.mjs +28 -0
- package/dist/lib/neutral/object-update-C73HRM5F.mjs.map +7 -0
- package/dist/lib/neutral/project-rules-ZVV4TFOQ.mjs +77 -0
- package/dist/lib/neutral/project-rules-ZVV4TFOQ.mjs.map +7 -0
- package/dist/lib/neutral/prompt-J2XSDAWH.mjs +138 -0
- package/dist/lib/neutral/prompt-J2XSDAWH.mjs.map +7 -0
- package/dist/lib/neutral/qualifier-WRYRVSET.mjs +104 -0
- package/dist/lib/neutral/qualifier-WRYRVSET.mjs.map +7 -0
- package/dist/lib/neutral/query-FUFKLAN2.mjs +66 -0
- package/dist/lib/neutral/query-FUFKLAN2.mjs.map +7 -0
- package/dist/lib/neutral/query-U4LWIBNG.mjs +32 -0
- package/dist/lib/neutral/query-U4LWIBNG.mjs.map +7 -0
- package/dist/lib/neutral/query-blueprints-Y5CXJLCT.mjs +17 -0
- package/dist/lib/neutral/query-blueprints-Y5CXJLCT.mjs.map +7 -0
- package/dist/lib/neutral/read-JJN7YXHI.mjs +19 -0
- package/dist/lib/neutral/read-JJN7YXHI.mjs.map +7 -0
- package/dist/lib/neutral/relation-create-YWV2TUKS.mjs +42 -0
- package/dist/lib/neutral/relation-create-YWV2TUKS.mjs.map +7 -0
- package/dist/lib/neutral/relation-delete-JGGA4CYQ.mjs +18 -0
- package/dist/lib/neutral/relation-delete-JGGA4CYQ.mjs.map +7 -0
- package/dist/lib/neutral/research-UBK6ZGX7.mjs +109 -0
- package/dist/lib/neutral/research-UBK6ZGX7.mjs.map +7 -0
- package/dist/lib/neutral/save-JZ73KUMA.mjs +23 -0
- package/dist/lib/neutral/save-JZ73KUMA.mjs.map +7 -0
- package/dist/lib/neutral/schema-add-7WKPPKW4.mjs +24 -0
- package/dist/lib/neutral/schema-add-7WKPPKW4.mjs.map +7 -0
- package/dist/lib/neutral/schema-list-MIAIKERK.mjs +30 -0
- package/dist/lib/neutral/schema-list-MIAIKERK.mjs.map +7 -0
- package/dist/lib/neutral/sync-issues-FIRE3XR6.mjs +179 -0
- package/dist/lib/neutral/sync-issues-FIRE3XR6.mjs.map +7 -0
- package/dist/lib/neutral/tag-add-IKD4ADDM.mjs +19 -0
- package/dist/lib/neutral/tag-add-IKD4ADDM.mjs.map +7 -0
- package/dist/lib/neutral/tag-remove-PCSKCFT2.mjs +19 -0
- package/dist/lib/neutral/tag-remove-PCSKCFT2.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +81 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/update-HZ7A3ZA5.mjs +20 -0
- package/dist/lib/neutral/update-HZ7A3ZA5.mjs.map +7 -0
- package/dist/lib/neutral/update-tasks-TZ65WZ44.mjs +46 -0
- package/dist/lib/neutral/update-tasks-TZ65WZ44.mjs.map +7 -0
- package/dist/types/src/blueprints/automation/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/automation/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/automation/index.d.ts +2 -0
- package/dist/types/src/blueprints/automation/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/blueprint-manager/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/blueprint-manager/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts +59 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts +36 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/enable-blueprints.d.ts.map +1 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/blueprint-manager/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/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/index.d.ts +3 -0
- package/dist/types/src/blueprints/blueprint-manager/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/browser/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/browser/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/browser/index.d.ts +2 -0
- package/dist/types/src/blueprints/browser/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/database/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/database/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/context-add.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/context-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/definitions.d.ts +58 -0
- package/dist/types/src/blueprints/database/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/load.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/load.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-create.d.ts +8 -0
- package/dist/types/src/blueprints/database/functions/object-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/object-delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/object-update.d.ts +10 -0
- package/dist/types/src/blueprints/database/functions/object-update.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/query.d.ts +11 -0
- package/dist/types/src/blueprints/database/functions/query.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts +10 -0
- package/dist/types/src/blueprints/database/functions/relation-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts +9 -0
- package/dist/types/src/blueprints/database/functions/schema-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts +7 -0
- package/dist/types/src/blueprints/database/functions/schema-list.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts +8 -0
- package/dist/types/src/blueprints/database/functions/tag-add.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts +8 -0
- package/dist/types/src/blueprints/database/functions/tag-remove.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/index.d.ts +3 -0
- package/dist/types/src/blueprints/database/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/design/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/design/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/design/index.d.ts +1 -2
- package/dist/types/src/blueprints/design/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/discord/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/discord/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts +16 -0
- package/dist/types/src/blueprints/discord/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.d.ts +4 -2
- package/dist/types/src/blueprints/discord/functions/fetch-messages.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/fetch-messages.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/discord/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/index.d.ts +2 -2
- package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/definitions.d.ts +8 -0
- package/dist/types/src/blueprints/github/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts +9 -0
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/index.d.ts +2 -0
- package/dist/types/src/blueprints/github/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +14 -6
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/linear/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/linear/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts +7 -0
- package/dist/types/src/blueprints/linear/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/linear/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/linear.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts +11 -0
- package/dist/types/src/blueprints/linear/functions/sync-issues.d.ts.map +1 -0
- package/dist/types/src/blueprints/linear/index.d.ts +2 -2
- package/dist/types/src/blueprints/linear/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/markdown/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/markdown/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/create.d.ts +8 -0
- package/dist/types/src/blueprints/markdown/functions/create.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/definitions.d.ts +45 -0
- package/dist/types/src/blueprints/markdown/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts +17 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/update.d.ts +16 -0
- package/dist/types/src/blueprints/markdown/functions/update.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/index.d.ts +3 -0
- package/dist/types/src/blueprints/markdown/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/memory/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/memory/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/definitions.d.ts +17 -0
- package/dist/types/src/blueprints/memory/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/delete.d.ts +10 -0
- package/dist/types/src/blueprints/memory/functions/delete.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/memory/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/query.d.ts +8 -0
- package/dist/types/src/blueprints/memory/functions/query.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/functions/save.d.ts +8 -0
- package/dist/types/src/blueprints/memory/functions/save.d.ts.map +1 -0
- package/dist/types/src/blueprints/memory/index.d.ts +3 -0
- package/dist/types/src/blueprints/memory/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/planning/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts +11 -0
- package/dist/types/src/blueprints/planning/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/planning/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts +11 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/index.d.ts +2 -2
- package/dist/types/src/blueprints/planning/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/planning-old/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/planning-old/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/definitions.d.ts +31 -0
- package/dist/types/src/blueprints/planning-old/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/planning-old/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts +17 -0
- package/dist/types/src/blueprints/planning-old/functions/read.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/task-list.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/task-list.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts +19 -0
- package/dist/types/src/blueprints/planning-old/functions/update.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning-old/index.d.ts +3 -0
- package/dist/types/src/blueprints/planning-old/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/project/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/project/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts +8 -0
- package/dist/types/src/blueprints/project/functions/add-artifact.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/agent.d.ts +4 -0
- package/dist/types/src/blueprints/project/functions/agent.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/definitions.d.ts +150 -0
- package/dist/types/src/blueprints/project/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/get-context.d.ts +15 -0
- package/dist/types/src/blueprints/project/functions/get-context.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/project/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +69 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/index.d.ts +4 -0
- package/dist/types/src/blueprints/project/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/sync-triggers.d.ts +11 -0
- package/dist/types/src/blueprints/project/sync-triggers.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/project-wizard/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts +48 -0
- package/dist/types/src/blueprints/project-wizard/functions/create-project.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts +49 -0
- package/dist/types/src/blueprints/project-wizard/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/project-wizard/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts +4 -0
- package/dist/types/src/blueprints/project-wizard/functions/project-rules.d.ts.map +1 -0
- package/dist/types/src/blueprints/project-wizard/index.d.ts +3 -0
- package/dist/types/src/blueprints/project-wizard/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/research/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/research/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/definitions.d.ts +21 -0
- package/dist/types/src/blueprints/research/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/document-create.d.ts +12 -0
- package/dist/types/src/blueprints/research/functions/document-create.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/research/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/research.d.ts +18 -0
- package/dist/types/src/blueprints/research/functions/research.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/functions/research.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/index.d.ts +3 -2
- package/dist/types/src/blueprints/research/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts +24 -0
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/types/index.d.ts +7 -0
- package/dist/types/src/blueprints/research/types/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/testing.d.ts +16 -4
- package/dist/types/src/blueprints/testing.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/blueprint.d.ts +4 -0
- package/dist/types/src/blueprints/websearch/blueprint.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/blueprint.test.d.ts +2 -0
- package/dist/types/src/blueprints/websearch/blueprint.test.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/functions/definitions.d.ts +5 -0
- package/dist/types/src/blueprints/websearch/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/functions/fetch.d.ts +6 -0
- package/dist/types/src/blueprints/websearch/functions/fetch.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/functions/index.d.ts +4 -0
- package/dist/types/src/blueprints/websearch/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/websearch/index.d.ts +3 -3
- package/dist/types/src/blueprints/websearch/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/websearch/{websearch-toolkit.d.ts → toolkit.d.ts} +4 -1
- package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -0
- package/dist/types/src/{functions/research → crud}/graph.d.ts +14 -11
- package/dist/types/src/crud/graph.d.ts.map +1 -0
- package/dist/types/src/crud/graph.test.d.ts.map +1 -0
- package/dist/types/src/crud/index.d.ts +2 -0
- package/dist/types/src/crud/index.d.ts.map +1 -0
- package/dist/types/src/functions/agent/definitions.d.ts +101 -0
- package/dist/types/src/functions/agent/definitions.d.ts.map +1 -0
- package/dist/types/src/functions/agent/index.d.ts +3 -4
- package/dist/types/src/functions/agent/index.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts +100 -9
- 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 +3 -1
- 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 +2 -0
- package/dist/types/src/toolkits/index.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/Memory.d.ts +12 -0
- package/dist/types/src/types/Memory.d.ts.map +1 -0
- package/dist/types/src/types/Plan.d.ts +86 -0
- package/dist/types/src/types/Plan.d.ts.map +1 -0
- package/dist/types/src/types/Project.d.ts +73 -0
- package/dist/types/src/types/Project.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +5 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +50 -38
- package/src/blueprints/automation/blueprint.ts +109 -0
- package/src/blueprints/automation/index.ts +5 -0
- package/src/blueprints/blueprint-manager/blueprint.test.ts +130 -0
- package/src/blueprints/blueprint-manager/blueprint.ts +49 -0
- package/src/blueprints/blueprint-manager/functions/definitions.ts +46 -0
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +44 -0
- package/src/blueprints/blueprint-manager/functions/index.ts +12 -0
- package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +19 -0
- package/src/blueprints/blueprint-manager/index.ts +6 -0
- package/src/blueprints/browser/blueprint.conversations.json +1 -0
- package/src/blueprints/browser/blueprint.test.ts +64 -0
- package/src/blueprints/browser/blueprint.ts +41 -0
- package/src/blueprints/browser/index.ts +5 -0
- package/src/blueprints/database/blueprint.conversations.json +1 -0
- package/src/blueprints/database/blueprint.test.ts +343 -0
- package/src/blueprints/database/blueprint.ts +67 -0
- package/src/blueprints/database/functions/context-add.ts +24 -0
- package/src/blueprints/database/functions/context-remove.ts +24 -0
- package/src/blueprints/database/functions/definitions.ts +301 -0
- package/src/blueprints/database/functions/index.ts +23 -0
- package/src/blueprints/database/functions/load.ts +19 -0
- package/src/blueprints/database/functions/object-create.ts +38 -0
- package/src/blueprints/database/functions/object-delete.ts +20 -0
- package/src/blueprints/database/functions/object-update.ts +30 -0
- package/src/blueprints/database/functions/query.ts +56 -0
- package/src/blueprints/database/functions/relation-create.ts +34 -0
- package/src/blueprints/database/functions/relation-delete.ts +21 -0
- package/src/blueprints/database/functions/schema-add.ts +28 -0
- package/src/blueprints/database/functions/schema-list.ts +27 -0
- package/src/blueprints/database/functions/tag-add.ts +21 -0
- package/src/blueprints/database/functions/tag-remove.ts +21 -0
- package/src/blueprints/database/index.ts +21 -0
- package/src/blueprints/design/{design-blueprint.test.ts → blueprint.test.ts} +26 -37
- package/src/blueprints/design/{design-blueprint.ts → blueprint.ts} +21 -13
- package/src/blueprints/design/index.ts +1 -3
- package/src/blueprints/discord/blueprint.ts +42 -0
- package/src/blueprints/discord/functions/definitions.ts +71 -0
- package/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.ts +11 -14
- package/src/blueprints/discord/functions/fetch-messages.ts +199 -0
- package/src/blueprints/discord/functions/index.ts +9 -0
- package/src/blueprints/discord/index.ts +2 -3
- package/src/blueprints/github/functions/definitions.ts +27 -0
- package/src/blueprints/github/functions/fetch-prs.ts +24 -0
- package/src/blueprints/github/functions/index.ts +9 -0
- package/src/blueprints/github/index.ts +5 -0
- package/src/blueprints/index.ts +14 -6
- package/src/blueprints/linear/blueprint.ts +43 -0
- package/src/blueprints/linear/functions/definitions.ts +24 -0
- package/src/blueprints/linear/functions/index.ts +9 -0
- package/src/blueprints/linear/functions/linear.test.ts +60 -0
- package/src/{functions/linear → blueprints/linear/functions}/sync-issues.ts +44 -50
- 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} +26 -33
- package/src/blueprints/{planning/planning-blueprint.ts → planning-old/blueprint.ts} +21 -13
- 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 +587 -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 +75 -0
- package/src/blueprints/project/functions/definitions.ts +91 -0
- package/src/blueprints/project/functions/get-context.ts +46 -0
- package/src/blueprints/project/functions/index.ts +14 -0
- package/src/blueprints/project/functions/qualifier.ts +90 -0
- package/src/blueprints/project/index.ts +7 -0
- package/src/blueprints/project/sync-triggers.ts +149 -0
- package/src/blueprints/project-wizard/blueprint.ts +43 -0
- package/src/blueprints/project-wizard/functions/create-project.ts +33 -0
- package/src/blueprints/project-wizard/functions/definitions.ts +48 -0
- package/src/blueprints/project-wizard/functions/index.ts +12 -0
- package/src/blueprints/project-wizard/functions/project-rules.ts +76 -0
- package/src/blueprints/project-wizard/index.ts +6 -0
- package/src/blueprints/research/blueprint.ts +61 -0
- 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/instructions-research.tpl → blueprints/research/functions/research-instructions.tpl} +19 -11
- package/src/blueprints/research/functions/research.conversations.json +1 -0
- package/src/blueprints/research/functions/research.test.ts +152 -0
- package/src/blueprints/research/functions/research.ts +138 -0
- package/src/blueprints/research/index.ts +3 -3
- package/src/blueprints/research/types/ResearchGraph.ts +62 -0
- package/src/blueprints/research/types/index.ts +32 -0
- package/src/blueprints/testing.ts +34 -5
- package/src/blueprints/websearch/blueprint.conversations.json +1 -0
- package/src/blueprints/websearch/blueprint.test.ts +39 -0
- package/src/blueprints/websearch/blueprint.ts +31 -0
- package/src/blueprints/websearch/functions/definitions.ts +25 -0
- package/src/blueprints/websearch/functions/fetch.ts +18 -0
- package/src/blueprints/websearch/functions/index.ts +9 -0
- package/src/blueprints/websearch/index.ts +3 -4
- package/src/blueprints/websearch/{websearch-toolkit.ts → toolkit.ts} +4 -0
- package/src/crud/graph.test.ts +46 -0
- package/src/{functions/research → crud}/graph.ts +32 -40
- package/src/crud/index.ts +5 -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.test.ts +144 -0
- package/src/functions/agent/prompt.ts +120 -85
- package/src/functions/entity-extraction/definitions.ts +44 -0
- package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +19 -43
- package/src/functions/entity-extraction/entity-extraction.ts +84 -88
- 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 +3 -1
- 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 +5 -0
- package/src/types/Chat.ts +62 -0
- package/src/types/Memory.ts +23 -0
- package/src/types/Plan.ts +110 -0
- package/src/types/Project.ts +208 -0
- package/src/types/index.ts +8 -0
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/node-esm/index.mjs +0 -2483
- 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 -12
- 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/create-document.d.ts +0 -7
- package/dist/types/src/functions/research/create-document.d.ts.map +0 -1
- package/dist/types/src/functions/research/graph.d.ts.map +0 -1
- package/dist/types/src/functions/research/graph.test.d.ts.map +0 -1
- package/dist/types/src/functions/research/index.d.ts +0 -19
- 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 -13
- 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 -384
- 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/src/blueprints/discord/discord-blueprint.ts +0 -34
- package/src/blueprints/linear/linear-blueprint.ts +0 -35
- package/src/blueprints/research/research-blueprint.ts +0 -45
- package/src/blueprints/websearch/websearch-blueprint.ts +0 -20
- package/src/experimental/feed.test.ts +0 -108
- package/src/functions/discord/fetch-messages.ts +0 -251
- package/src/functions/discord/index.ts +0 -9
- package/src/functions/document/index.ts +0 -11
- 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 -86
- package/src/functions/research/create-document.ts +0 -69
- package/src/functions/research/graph.test.ts +0 -69
- package/src/functions/research/index.ts +0 -15
- package/src/functions/research/research-graph.ts +0 -47
- package/src/functions/research/research.conversations.json +0 -10714
- package/src/functions/research/research.test.ts +0 -240
- package/src/functions/research/research.ts +0 -155
- package/src/functions/research/types.ts +0 -24
- 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/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/{functions/research → crud}/graph.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,24 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SchemaAdd
|
|
3
|
+
} from "./chunk-AKMBURAD.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/database/functions/schema-add.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Database } from "@dxos/echo";
|
|
9
|
+
import { Operation } from "@dxos/operation";
|
|
10
|
+
var schema_add_default = SchemaAdd.pipe(Operation.withHandler(Effect.fn(function* ({ name, typename, jsonSchema }) {
|
|
11
|
+
const { db } = yield* Database.Service;
|
|
12
|
+
yield* Effect.promise(() => db.schemaRegistry.register([
|
|
13
|
+
{
|
|
14
|
+
typename,
|
|
15
|
+
version: "0.1.0",
|
|
16
|
+
jsonSchema,
|
|
17
|
+
name
|
|
18
|
+
}
|
|
19
|
+
]));
|
|
20
|
+
})));
|
|
21
|
+
export {
|
|
22
|
+
schema_add_default as default
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=schema-add-7WKPPKW4.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/database/functions/schema-add.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Database } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { SchemaAdd } from './definitions';\n\nexport default SchemaAdd.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ name, typename, jsonSchema }) {\n const { db } = yield* Database.Service;\n yield* Effect.promise(() =>\n db.schemaRegistry.register([\n {\n typename,\n version: '0.1.0',\n jsonSchema,\n name,\n },\n ]),\n );\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,gBAAgB;AACzB,SAASC,iBAAiB;AAI1B,IAAA,qBAAeC,UAAUC,KACvBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,MAAMC,UAAUC,WAAU,GAAE;AACjD,QAAM,EAAEC,GAAE,IAAK,OAAOC,SAASC;AAC/B,SAAcC,eAAQ,MACpBH,GAAGI,eAAeC,SAAS;IACzB;MACEP;MACAQ,SAAS;MACTP;MACAF;IACF;GACD,CAAA;AAEL,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Database", "Operation", "SchemaAdd", "pipe", "Operation", "withHandler", "fn", "name", "typename", "jsonSchema", "db", "Database", "Service", "promise", "schemaRegistry", "register", "version"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SchemaList
|
|
3
|
+
} from "./chunk-AKMBURAD.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/database/functions/schema-list.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Database, JsonSchema, Type } from "@dxos/echo";
|
|
9
|
+
import { Operation } from "@dxos/operation";
|
|
10
|
+
var schema_list_default = SchemaList.pipe(Operation.withHandler(Effect.fn(function* () {
|
|
11
|
+
const { db } = yield* Database.Service;
|
|
12
|
+
const schema = yield* Effect.promise(() => db.schemaRegistry.query({
|
|
13
|
+
location: [
|
|
14
|
+
"database",
|
|
15
|
+
"runtime"
|
|
16
|
+
]
|
|
17
|
+
}).run());
|
|
18
|
+
return schema.map((schema2) => {
|
|
19
|
+
const meta = Type.getMeta(schema2);
|
|
20
|
+
return {
|
|
21
|
+
typename: Type.getTypename(schema2),
|
|
22
|
+
jsonSchema: JsonSchema.toJsonSchema(schema2),
|
|
23
|
+
kind: meta?.sourceSchema ? "relation" : "record"
|
|
24
|
+
};
|
|
25
|
+
});
|
|
26
|
+
})));
|
|
27
|
+
export {
|
|
28
|
+
schema_list_default as default
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=schema-list-MIAIKERK.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/database/functions/schema-list.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Database, JsonSchema, Type } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { SchemaList } from './definitions';\n\nexport default SchemaList.pipe(\n Operation.withHandler(\n Effect.fn(function* () {\n const { db } = yield* Database.Service;\n const schema = yield* Effect.promise(() => db.schemaRegistry.query({ location: ['database', 'runtime'] }).run());\n return schema.map((schema) => {\n const meta = Type.getMeta(schema);\n return {\n typename: Type.getTypename(schema),\n jsonSchema: JsonSchema.toJsonSchema(schema),\n kind: meta?.sourceSchema ? 'relation' : 'record',\n };\n });\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,UAAUC,YAAYC,YAAY;AAC3C,SAASC,iBAAiB;AAI1B,IAAA,sBAAeC,WAAWC,KACxBC,UAAUC,YACDC,UAAG,aAAA;AACR,QAAM,EAAEC,GAAE,IAAK,OAAOC,SAASC;AAC/B,QAAMC,SAAS,OAAcC,eAAQ,MAAMJ,GAAGK,eAAeC,MAAM;IAAEC,UAAU;MAAC;MAAY;;EAAW,CAAA,EAAGC,IAAG,CAAA;AAC7G,SAAOL,OAAOM,IAAI,CAACN,YAAAA;AACjB,UAAMO,OAAOC,KAAKC,QAAQT,OAAAA;AAC1B,WAAO;MACLU,UAAUF,KAAKG,YAAYX,OAAAA;MAC3BY,YAAYC,WAAWC,aAAad,OAAAA;MACpCe,MAAMR,MAAMS,eAAe,aAAa;IAC1C;EACF,CAAA;AACF,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Database", "JsonSchema", "Type", "Operation", "SchemaList", "pipe", "Operation", "withHandler", "fn", "db", "Database", "Service", "schema", "promise", "schemaRegistry", "query", "location", "run", "map", "meta", "Type", "getMeta", "typename", "getTypename", "jsonSchema", "JsonSchema", "toJsonSchema", "kind", "sourceSchema"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import {
|
|
2
|
+
syncObjects
|
|
3
|
+
} from "./chunk-HZM3HNAS.mjs";
|
|
4
|
+
import {
|
|
5
|
+
SyncIssues
|
|
6
|
+
} from "./chunk-LI6VMCJW.mjs";
|
|
7
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
8
|
+
|
|
9
|
+
// src/blueprints/linear/functions/sync-issues.ts
|
|
10
|
+
import * as FetchHttpClient from "@effect/platform/FetchHttpClient";
|
|
11
|
+
import * as HttpClient from "@effect/platform/HttpClient";
|
|
12
|
+
import * as Array from "effect/Array";
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import * as Function from "effect/Function";
|
|
15
|
+
import { Filter, Obj, Query, Ref } from "@dxos/echo";
|
|
16
|
+
import { Database } from "@dxos/echo";
|
|
17
|
+
import { CredentialsService, withAuthorization } from "@dxos/functions";
|
|
18
|
+
import { log } from "@dxos/log";
|
|
19
|
+
import { Operation } from "@dxos/operation";
|
|
20
|
+
import { Person, Pipeline, Task } from "@dxos/types";
|
|
21
|
+
|
|
22
|
+
// src/util/graphql.ts
|
|
23
|
+
import * as HttpBody from "@effect/platform/HttpBody";
|
|
24
|
+
var graphqlRequestBody = (query, variables = {}) => HttpBody.json({
|
|
25
|
+
query,
|
|
26
|
+
variables
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
// src/blueprints/linear/functions/sync-issues.ts
|
|
30
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/assistant-toolkit/src/blueprints/linear/functions/sync-issues.ts";
|
|
31
|
+
var queryIssues = `
|
|
32
|
+
query Issues($teamId: String!, $after: DateTimeOrDuration!) {
|
|
33
|
+
team(id: $teamId) {
|
|
34
|
+
id
|
|
35
|
+
name
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
issues(last: 150, orderBy: updatedAt, filter: {
|
|
39
|
+
updatedAt: { gt: $after }
|
|
40
|
+
}) {
|
|
41
|
+
edges {
|
|
42
|
+
node {
|
|
43
|
+
id
|
|
44
|
+
title
|
|
45
|
+
createdAt
|
|
46
|
+
updatedAt
|
|
47
|
+
description
|
|
48
|
+
assignee { id, name }
|
|
49
|
+
state {
|
|
50
|
+
name
|
|
51
|
+
}
|
|
52
|
+
project {
|
|
53
|
+
id
|
|
54
|
+
name
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
cursor
|
|
58
|
+
}
|
|
59
|
+
pageInfo {
|
|
60
|
+
hasNextPage
|
|
61
|
+
endCursor
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
`;
|
|
67
|
+
var LINEAR_ID_KEY = "linear.app/id";
|
|
68
|
+
var LINEAR_TEAM_ID_KEY = "linear.app/teamId";
|
|
69
|
+
var LINEAR_UPDATED_AT_KEY = "linear.app/updatedAt";
|
|
70
|
+
var sync_issues_default = SyncIssues.pipe(Operation.withHandler(Effect.fnUntraced(function* ({ team }) {
|
|
71
|
+
const credential = yield* CredentialsService.getCredential({
|
|
72
|
+
service: "linear.app"
|
|
73
|
+
});
|
|
74
|
+
const client = yield* HttpClient.HttpClient.pipe(Effect.map(withAuthorization(credential.apiKey)));
|
|
75
|
+
const after = yield* getLatestUpdateTimestamp(team, Task.Task);
|
|
76
|
+
log.info("will fetch", {
|
|
77
|
+
after
|
|
78
|
+
}, {
|
|
79
|
+
F: __dxlog_file,
|
|
80
|
+
L: 86,
|
|
81
|
+
S: this,
|
|
82
|
+
C: (f, a) => f(...a)
|
|
83
|
+
});
|
|
84
|
+
const response = yield* client.post("https://api.linear.app/graphql", {
|
|
85
|
+
body: yield* graphqlRequestBody(queryIssues, {
|
|
86
|
+
teamId: team,
|
|
87
|
+
after
|
|
88
|
+
})
|
|
89
|
+
});
|
|
90
|
+
const json2 = yield* response.json;
|
|
91
|
+
const tasks = json2.data.team.issues.edges.map((edge) => mapLinearIssue(edge.node, {
|
|
92
|
+
teamId: team
|
|
93
|
+
}));
|
|
94
|
+
log.info("Fetched tasks", {
|
|
95
|
+
count: tasks.length
|
|
96
|
+
}, {
|
|
97
|
+
F: __dxlog_file,
|
|
98
|
+
L: 98,
|
|
99
|
+
S: this,
|
|
100
|
+
C: (f, a) => f(...a)
|
|
101
|
+
});
|
|
102
|
+
return {
|
|
103
|
+
objects: yield* syncObjects(tasks, {
|
|
104
|
+
foreignKeyId: LINEAR_ID_KEY
|
|
105
|
+
}),
|
|
106
|
+
syncComplete: tasks.length < 150
|
|
107
|
+
};
|
|
108
|
+
}, Effect.provide(FetchHttpClient.layer))));
|
|
109
|
+
var getLatestUpdateTimestamp = Effect.fnUntraced(function* (teamId, dataType) {
|
|
110
|
+
const existingTasks = yield* Database.runQuery(Query.type(dataType).select(Filter.foreignKeys(dataType, [
|
|
111
|
+
{
|
|
112
|
+
source: LINEAR_TEAM_ID_KEY,
|
|
113
|
+
id: teamId
|
|
114
|
+
}
|
|
115
|
+
])));
|
|
116
|
+
return Function.pipe(existingTasks, Array.map((task) => Obj.getKeys(task, LINEAR_UPDATED_AT_KEY).at(0)?.id), Array.filter((x) => x !== void 0), Array.reduce("2025-01-01T00:00:00.000Z", (acc, x) => x > acc ? x : acc));
|
|
117
|
+
});
|
|
118
|
+
var mapLinearPerson = (person, { teamId }) => Obj.make(Person.Person, {
|
|
119
|
+
[Obj.Meta]: {
|
|
120
|
+
keys: [
|
|
121
|
+
{
|
|
122
|
+
id: person.id,
|
|
123
|
+
source: LINEAR_ID_KEY
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
id: teamId,
|
|
127
|
+
source: LINEAR_TEAM_ID_KEY
|
|
128
|
+
}
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
nickname: person.name
|
|
132
|
+
});
|
|
133
|
+
var mapLinearIssue = (issue, { teamId }) => Obj.make(Task.Task, {
|
|
134
|
+
[Obj.Meta]: {
|
|
135
|
+
keys: [
|
|
136
|
+
{
|
|
137
|
+
id: issue.id,
|
|
138
|
+
source: LINEAR_ID_KEY
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
id: issue.updatedAt,
|
|
142
|
+
source: LINEAR_UPDATED_AT_KEY
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
id: teamId,
|
|
146
|
+
source: LINEAR_TEAM_ID_KEY
|
|
147
|
+
}
|
|
148
|
+
]
|
|
149
|
+
},
|
|
150
|
+
title: issue.title ?? void 0,
|
|
151
|
+
description: issue.description ?? void 0,
|
|
152
|
+
assigned: !issue.assignee ? void 0 : Ref.make(mapLinearPerson(issue.assignee, {
|
|
153
|
+
teamId
|
|
154
|
+
})),
|
|
155
|
+
// TODO(dmaretskyi): Sync those (+ linear team as org?).
|
|
156
|
+
// state: issue.state.name,
|
|
157
|
+
project: !issue.project ? void 0 : Ref.make(Pipeline.make({
|
|
158
|
+
[Obj.Meta]: {
|
|
159
|
+
keys: [
|
|
160
|
+
{
|
|
161
|
+
id: issue.project.id,
|
|
162
|
+
source: LINEAR_ID_KEY
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
id: teamId,
|
|
166
|
+
source: LINEAR_TEAM_ID_KEY
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
name: issue.project.name
|
|
171
|
+
}))
|
|
172
|
+
});
|
|
173
|
+
export {
|
|
174
|
+
LINEAR_ID_KEY,
|
|
175
|
+
LINEAR_TEAM_ID_KEY,
|
|
176
|
+
LINEAR_UPDATED_AT_KEY,
|
|
177
|
+
sync_issues_default as default
|
|
178
|
+
};
|
|
179
|
+
//# sourceMappingURL=sync-issues-FIRE3XR6.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/linear/functions/sync-issues.ts", "../../../src/util/graphql.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as FetchHttpClient from '@effect/platform/FetchHttpClient';\nimport * as HttpClient from '@effect/platform/HttpClient';\nimport * as Array from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport * as Function from 'effect/Function';\n\nimport { Filter, Obj, Query, Ref, type Type } from '@dxos/echo';\nimport { Database } from '@dxos/echo';\nimport { CredentialsService, withAuthorization } from '@dxos/functions';\nimport { log } from '@dxos/log';\nimport { Operation } from '@dxos/operation';\nimport { Person, Pipeline, Task } from '@dxos/types';\n\nimport { SyncIssues } from './definitions';\nimport { syncObjects } from '../../../sync';\nimport { graphqlRequestBody } from '../../../util';\n\nconst queryIssues = `\nquery Issues($teamId: String!, $after: DateTimeOrDuration!) {\n team(id: $teamId) {\n id\n name\n\n\n issues(last: 150, orderBy: updatedAt, filter: {\n updatedAt: { gt: $after }\n }) {\n edges {\n node {\n id\n title\n createdAt\n updatedAt\n description\n assignee { id, name }\n state {\n name\n }\n project {\n id\n name\n }\n }\n cursor\n }\n pageInfo {\n hasNextPage\n endCursor\n }\n }\n }\n}\n`;\n\ntype LinearIssue = {\n id: string;\n title: string;\n createdAt: string;\n updatedAt: string;\n description: string;\n assignee: LinearPerson;\n state: { name: string };\n project: { id: string; name: string };\n};\n\ntype LinearPerson = {\n id: string;\n name: string;\n};\n\nexport const LINEAR_ID_KEY = 'linear.app/id';\nexport const LINEAR_TEAM_ID_KEY = 'linear.app/teamId';\nexport const LINEAR_UPDATED_AT_KEY = 'linear.app/updatedAt';\n\nexport default SyncIssues.pipe(\n Operation.withHandler(\n Effect.fnUntraced(function* ({ team }) {\n const credential = yield* CredentialsService.getCredential({ service: 'linear.app' });\n const client = yield* HttpClient.HttpClient.pipe(Effect.map(withAuthorization(credential.apiKey!)));\n\n const after = yield* getLatestUpdateTimestamp(team, Task.Task);\n log.info('will fetch', { after });\n\n const response = yield* client.post('https://api.linear.app/graphql', {\n body: yield* graphqlRequestBody(queryIssues, {\n teamId: team,\n after,\n }),\n });\n const json: any = yield* response.json;\n const tasks = (json.data.team.issues.edges as any[]).map((edge: any) =>\n mapLinearIssue(edge.node as LinearIssue, { teamId: team }),\n );\n log.info('Fetched tasks', { count: tasks.length });\n\n return {\n objects: yield* syncObjects(tasks, { foreignKeyId: LINEAR_ID_KEY }),\n syncComplete: tasks.length < 150,\n };\n }, Effect.provide(FetchHttpClient.layer)),\n ),\n);\n\nconst getLatestUpdateTimestamp: (\n teamId: string,\n dataType: Type.AnyObj,\n) => Effect.Effect<string, never, Database.Service> = Effect.fnUntraced(function* (teamId, dataType) {\n const existingTasks = yield* Database.runQuery(\n Query.type(dataType).select(Filter.foreignKeys(dataType, [{ source: LINEAR_TEAM_ID_KEY, id: teamId }])),\n );\n return Function.pipe(\n existingTasks,\n Array.map((task) => Obj.getKeys(task, LINEAR_UPDATED_AT_KEY).at(0)?.id),\n Array.filter((x) => x !== undefined),\n Array.reduce('2025-01-01T00:00:00.000Z', (acc: string, x: string) => (x > acc ? x : acc)),\n );\n});\n\nconst mapLinearPerson = (person: LinearPerson, { teamId }: { teamId: string }): Person.Person =>\n Obj.make(Person.Person, {\n [Obj.Meta]: {\n keys: [\n {\n id: person.id,\n source: LINEAR_ID_KEY,\n },\n {\n id: teamId,\n source: LINEAR_TEAM_ID_KEY,\n },\n ],\n },\n nickname: person.name,\n });\n\nconst mapLinearIssue = (issue: LinearIssue, { teamId }: { teamId: string }): Task.Task =>\n Obj.make(Task.Task, {\n [Obj.Meta]: {\n keys: [\n {\n id: issue.id,\n source: LINEAR_ID_KEY,\n },\n {\n id: issue.updatedAt,\n source: LINEAR_UPDATED_AT_KEY,\n },\n {\n id: teamId,\n source: LINEAR_TEAM_ID_KEY,\n },\n ],\n },\n title: issue.title ?? undefined,\n description: issue.description ?? undefined,\n assigned: !issue.assignee ? undefined : Ref.make(mapLinearPerson(issue.assignee, { teamId })),\n // TODO(dmaretskyi): Sync those (+ linear team as org?).\n // state: issue.state.name,\n\n project: !issue.project\n ? undefined\n : Ref.make(\n Pipeline.make({\n [Obj.Meta]: {\n keys: [\n {\n id: issue.project.id,\n source: LINEAR_ID_KEY,\n },\n {\n id: teamId,\n source: LINEAR_TEAM_ID_KEY,\n },\n ],\n },\n name: issue.project.name,\n }),\n ),\n });\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as HttpBody from '@effect/platform/HttpBody';\n\n/**\n * Template tag literal to get syntax highlighting for the query.\n *\n * @example\n * ```ts\n * const query = gql`\n * query Team($teamId: String!) {\n * team(id: $teamId) {\n * id\n * name\n * }\n * }\n * `;\n * ```\n */\nexport const gql = (query: string) => query;\n\n/**\n * @returns JSON body for the graphql request.\n */\nexport const graphqlRequestBody = (query: string, variables: Record<string, any> = {}) =>\n HttpBody.json({\n query,\n variables,\n });\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;AAIA,YAAYA,qBAAqB;AACjC,YAAYC,gBAAgB;AAC5B,YAAYC,WAAW;AACvB,YAAYC,YAAY;AACxB,YAAYC,cAAc;AAE1B,SAASC,QAAQC,KAAKC,OAAOC,WAAsB;AACnD,SAASC,gBAAgB;AACzB,SAASC,oBAAoBC,yBAAyB;AACtD,SAASC,WAAW;AACpB,SAASC,iBAAiB;AAC1B,SAASC,QAAQC,UAAUC,YAAY;;;ACXvC,YAAYC,cAAc;AAsBnB,IAAMC,qBAAqB,CAACC,OAAeC,YAAiC,CAAC,MACzEC,cAAK;EACZF;EACAC;AACF,CAAA;;;;ADTF,IAAME,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDb,IAAMC,gBAAgB;AACtB,IAAMC,qBAAqB;AAC3B,IAAMC,wBAAwB;AAErC,IAAA,sBAAeC,WAAWC,KACxBC,UAAUC,YACDC,kBAAW,WAAW,EAAEC,KAAI,GAAE;AACnC,QAAMC,aAAa,OAAOC,mBAAmBC,cAAc;IAAEC,SAAS;EAAa,CAAA;AACnF,QAAMC,SAAS,OAAkBC,sBAAWV,KAAYW,WAAIC,kBAAkBP,WAAWQ,MAAM,CAAA,CAAA;AAE/F,QAAMC,QAAQ,OAAOC,yBAAyBX,MAAMY,KAAKA,IAAI;AAC7DC,MAAIC,KAAK,cAAc;IAAEJ;EAAM,GAAA;;;;;;AAE/B,QAAMK,WAAW,OAAOV,OAAOW,KAAK,kCAAkC;IACpEC,MAAM,OAAOC,mBAAmB3B,aAAa;MAC3C4B,QAAQnB;MACRU;IACF,CAAA;EACF,CAAA;AACA,QAAMU,QAAY,OAAOL,SAASK;AAClC,QAAMC,QAASD,MAAKE,KAAKtB,KAAKuB,OAAOC,MAAgBjB,IAAI,CAACkB,SACxDC,eAAeD,KAAKE,MAAqB;IAAER,QAAQnB;EAAK,CAAA,CAAA;AAE1Da,MAAIC,KAAK,iBAAiB;IAAEc,OAAOP,MAAMQ;EAAO,GAAA;;;;;;AAEhD,SAAO;IACLC,SAAS,OAAOC,YAAYV,OAAO;MAAEW,cAAcxC;IAAc,CAAA;IACjEyC,cAAcZ,MAAMQ,SAAS;EAC/B;AACF,GAAUK,eAAwBC,qBAAK,CAAA,CAAA,CAAA;AAI3C,IAAMxB,2BAGuDZ,kBAAW,WAAWoB,QAAQiB,UAAQ;AACjG,QAAMC,gBAAgB,OAAOC,SAASC,SACpCC,MAAMC,KAAKL,QAAAA,EAAUM,OAAOC,OAAOC,YAAYR,UAAU;IAAC;MAAES,QAAQpD;MAAoBqD,IAAI3B;IAAO;GAAE,CAAA,CAAA;AAEvG,SAAgBvB,cACdyC,eACM9B,UAAI,CAACwC,SAASC,IAAIC,QAAQF,MAAMrD,qBAAAA,EAAuBwD,GAAG,CAAA,GAAIJ,EAAAA,GAC9DK,aAAO,CAACC,MAAMA,MAAMC,MAAAA,GACpBC,aAAO,4BAA4B,CAACC,KAAaH,MAAeA,IAAIG,MAAMH,IAAIG,GAAAA,CAAAA;AAExF,CAAA;AAEA,IAAMC,kBAAkB,CAACC,QAAsB,EAAEtC,OAAM,MACrD6B,IAAIU,KAAKC,OAAOA,QAAQ;EACtB,CAACX,IAAIY,IAAI,GAAG;IACVC,MAAM;MACJ;QACEf,IAAIW,OAAOX;QACXD,QAAQrD;MACV;MACA;QACEsD,IAAI3B;QACJ0B,QAAQpD;MACV;;EAEJ;EACAqE,UAAUL,OAAOM;AACnB,CAAA;AAEF,IAAMrC,iBAAiB,CAACsC,OAAoB,EAAE7C,OAAM,MAClD6B,IAAIU,KAAK9C,KAAKA,MAAM;EAClB,CAACoC,IAAIY,IAAI,GAAG;IACVC,MAAM;MACJ;QACEf,IAAIkB,MAAMlB;QACVD,QAAQrD;MACV;MACA;QACEsD,IAAIkB,MAAMC;QACVpB,QAAQnD;MACV;MACA;QACEoD,IAAI3B;QACJ0B,QAAQpD;MACV;;EAEJ;EACAyE,OAAOF,MAAME,SAASb;EACtBc,aAAaH,MAAMG,eAAed;EAClCe,UAAU,CAACJ,MAAMK,WAAWhB,SAAYiB,IAAIZ,KAAKF,gBAAgBQ,MAAMK,UAAU;IAAElD;EAAO,CAAA,CAAA;;;EAI1FoD,SAAS,CAACP,MAAMO,UACZlB,SACAiB,IAAIZ,KACFc,SAASd,KAAK;IACZ,CAACV,IAAIY,IAAI,GAAG;MACVC,MAAM;QACJ;UACEf,IAAIkB,MAAMO,QAAQzB;UAClBD,QAAQrD;QACV;QACA;UACEsD,IAAI3B;UACJ0B,QAAQpD;QACV;;IAEJ;IACAsE,MAAMC,MAAMO,QAAQR;EACtB,CAAA,CAAA;AAER,CAAA;",
|
|
6
|
+
"names": ["FetchHttpClient", "HttpClient", "Array", "Effect", "Function", "Filter", "Obj", "Query", "Ref", "Database", "CredentialsService", "withAuthorization", "log", "Operation", "Person", "Pipeline", "Task", "HttpBody", "graphqlRequestBody", "query", "variables", "json", "queryIssues", "LINEAR_ID_KEY", "LINEAR_TEAM_ID_KEY", "LINEAR_UPDATED_AT_KEY", "SyncIssues", "pipe", "Operation", "withHandler", "fnUntraced", "team", "credential", "CredentialsService", "getCredential", "service", "client", "HttpClient", "map", "withAuthorization", "apiKey", "after", "getLatestUpdateTimestamp", "Task", "log", "info", "response", "post", "body", "graphqlRequestBody", "teamId", "json", "tasks", "data", "issues", "edges", "edge", "mapLinearIssue", "node", "count", "length", "objects", "syncObjects", "foreignKeyId", "syncComplete", "provide", "layer", "dataType", "existingTasks", "Database", "runQuery", "Query", "type", "select", "Filter", "foreignKeys", "source", "id", "task", "Obj", "getKeys", "at", "filter", "x", "undefined", "reduce", "acc", "mapLinearPerson", "person", "make", "Person", "Meta", "keys", "nickname", "name", "issue", "updatedAt", "title", "description", "assigned", "assignee", "Ref", "project", "Pipeline"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TagAdd
|
|
3
|
+
} from "./chunk-AKMBURAD.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/database/functions/tag-add.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Database, Entity, Obj } from "@dxos/echo";
|
|
9
|
+
import { Operation } from "@dxos/operation";
|
|
10
|
+
var tag_add_default = TagAdd.pipe(Operation.withHandler(Effect.fn(function* ({ tag, obj }) {
|
|
11
|
+
const object = yield* Database.load(obj);
|
|
12
|
+
const tagObj = yield* Database.load(tag);
|
|
13
|
+
Entity.change(object, (obj2) => Entity.addTag(obj2, Obj.getDXN(tagObj).toString()));
|
|
14
|
+
return Entity.toJSON(object);
|
|
15
|
+
})));
|
|
16
|
+
export {
|
|
17
|
+
tag_add_default as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=tag-add-IKD4ADDM.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/database/functions/tag-add.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Database, Entity, Obj } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { TagAdd } from './definitions';\n\nexport default TagAdd.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ tag, obj }) {\n const object = yield* Database.load(obj);\n const tagObj = yield* Database.load(tag);\n Entity.change(object, (obj) => Entity.addTag(obj, Obj.getDXN(tagObj).toString()));\n return Entity.toJSON(object);\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,UAAUC,QAAQC,WAAW;AACtC,SAASC,iBAAiB;AAI1B,IAAA,kBAAeC,OAAOC,KACpBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,KAAKC,IAAG,GAAE;AAC/B,QAAMC,SAAS,OAAOC,SAASC,KAAKH,GAAAA;AACpC,QAAMI,SAAS,OAAOF,SAASC,KAAKJ,GAAAA;AACpCM,SAAOC,OAAOL,QAAQ,CAACD,SAAQK,OAAOE,OAAOP,MAAKQ,IAAIC,OAAOL,MAAAA,EAAQM,SAAQ,CAAA,CAAA;AAC7E,SAAOL,OAAOM,OAAOV,MAAAA;AACvB,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Database", "Entity", "Obj", "Operation", "TagAdd", "pipe", "Operation", "withHandler", "fn", "tag", "obj", "object", "Database", "load", "tagObj", "Entity", "change", "addTag", "Obj", "getDXN", "toString", "toJSON"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import {
|
|
2
|
+
TagRemove
|
|
3
|
+
} from "./chunk-AKMBURAD.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/database/functions/tag-remove.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Database, Entity, Obj } from "@dxos/echo";
|
|
9
|
+
import { Operation } from "@dxos/operation";
|
|
10
|
+
var tag_remove_default = TagRemove.pipe(Operation.withHandler(Effect.fn(function* ({ tag, obj }) {
|
|
11
|
+
const object = yield* Database.load(obj);
|
|
12
|
+
const tagObj = yield* Database.load(tag);
|
|
13
|
+
Entity.change(object, (obj2) => Entity.removeTag(obj2, Obj.getDXN(tagObj).toString()));
|
|
14
|
+
return Entity.toJSON(object);
|
|
15
|
+
})));
|
|
16
|
+
export {
|
|
17
|
+
tag_remove_default as default
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=tag-remove-PCSKCFT2.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/database/functions/tag-remove.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Database, Entity, Obj } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { TagRemove } from './definitions';\n\nexport default TagRemove.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ tag, obj }) {\n const object = yield* Database.load(obj);\n const tagObj = yield* Database.load(tag);\n Entity.change(object, (obj) => Entity.removeTag(obj, Obj.getDXN(tagObj).toString()));\n return Entity.toJSON(object);\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,UAAUC,QAAQC,WAAW;AACtC,SAASC,iBAAiB;AAI1B,IAAA,qBAAeC,UAAUC,KACvBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,KAAKC,IAAG,GAAE;AAC/B,QAAMC,SAAS,OAAOC,SAASC,KAAKH,GAAAA;AACpC,QAAMI,SAAS,OAAOF,SAASC,KAAKJ,GAAAA;AACpCM,SAAOC,OAAOL,QAAQ,CAACD,SAAQK,OAAOE,UAAUP,MAAKQ,IAAIC,OAAOL,MAAAA,EAAQM,SAAQ,CAAA,CAAA;AAChF,SAAOL,OAAOM,OAAOV,MAAAA;AACvB,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Database", "Entity", "Obj", "Operation", "TagRemove", "pipe", "Operation", "withHandler", "fn", "tag", "obj", "object", "Database", "load", "tagObj", "Entity", "change", "removeTag", "Obj", "getDXN", "toString", "toJSON"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import "../chunk-J5LGTIGS.mjs";
|
|
2
|
+
|
|
3
|
+
// src/blueprints/testing.ts
|
|
4
|
+
import * as Arr from "effect/Array";
|
|
5
|
+
import * as Effect from "effect/Effect";
|
|
6
|
+
import { pipe } from "effect/Function";
|
|
7
|
+
import { ConsolePrinter } from "@dxos/ai";
|
|
8
|
+
import { AiContextService, GenerationObserver } from "@dxos/assistant";
|
|
9
|
+
import { Database, Ref } from "@dxos/echo";
|
|
10
|
+
import { log } from "@dxos/log";
|
|
11
|
+
var __dxlog_file = "/__w/dxos/dxos/packages/core/assistant-toolkit/src/blueprints/testing.ts";
|
|
12
|
+
var runSteps = Effect.fn(function* (conversation, steps) {
|
|
13
|
+
for (const { test, ...props } of steps) {
|
|
14
|
+
yield* conversation.createRequest({
|
|
15
|
+
...props,
|
|
16
|
+
observer: GenerationObserver.fromPrinter(new ConsolePrinter({
|
|
17
|
+
mode: "json"
|
|
18
|
+
}))
|
|
19
|
+
});
|
|
20
|
+
const messages = yield* Effect.promise(() => conversation.getHistory());
|
|
21
|
+
log.info("conversation", {
|
|
22
|
+
messages
|
|
23
|
+
}, {
|
|
24
|
+
F: __dxlog_file,
|
|
25
|
+
L: 43,
|
|
26
|
+
S: this,
|
|
27
|
+
C: (f, a) => f(...a)
|
|
28
|
+
});
|
|
29
|
+
if (test) {
|
|
30
|
+
yield* Effect.promise(() => test());
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
var addBlueprints = Effect.fnUntraced(function* (blueprints) {
|
|
35
|
+
yield* AiContextService.bindContext({
|
|
36
|
+
blueprints: yield* pipe(blueprints, Arr.map((blueprint) => blueprint.make()), Effect.forEach(Database.add), Effect.map(Arr.map(Ref.make)))
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// src/testing/plugins.tsx
|
|
41
|
+
import * as Schema from "effect/Schema";
|
|
42
|
+
import React from "react";
|
|
43
|
+
import { Capabilities, Capability } from "@dxos/app-framework";
|
|
44
|
+
import { Surface } from "@dxos/app-framework/ui";
|
|
45
|
+
import { Format, Type } from "@dxos/echo";
|
|
46
|
+
import { Card } from "@dxos/react-ui";
|
|
47
|
+
import { Json } from "@dxos/react-ui-syntax-highlighter";
|
|
48
|
+
var MapSchema = Schema.Struct({
|
|
49
|
+
coordinates: Format.GeoPoint
|
|
50
|
+
}).pipe(Type.object({
|
|
51
|
+
typename: "com.example.type.map",
|
|
52
|
+
version: "0.1.0"
|
|
53
|
+
}));
|
|
54
|
+
var isImage = (data) => false;
|
|
55
|
+
var capabilities = [
|
|
56
|
+
Capability.contributes(Capabilities.ReactSurface, Surface.create({
|
|
57
|
+
id: "plugin-image",
|
|
58
|
+
role: "card--content",
|
|
59
|
+
filter: (data) => isImage(data.value),
|
|
60
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement("img", {
|
|
61
|
+
className: "grow object-cover",
|
|
62
|
+
src: `data:image/jpeg;base64,${data.value.source.data}`,
|
|
63
|
+
alt: data.value.prompt ?? `Generated image [id=${data.value.id}]`
|
|
64
|
+
}))
|
|
65
|
+
})),
|
|
66
|
+
Capability.contributes(Capabilities.ReactSurface, Surface.create({
|
|
67
|
+
id: "plugin-default",
|
|
68
|
+
role: "card--content",
|
|
69
|
+
position: "fallback",
|
|
70
|
+
component: ({ data }) => /* @__PURE__ */ React.createElement(Card.Content, null, /* @__PURE__ */ React.createElement(Json.Root, {
|
|
71
|
+
data
|
|
72
|
+
}, /* @__PURE__ */ React.createElement(Json.Content, null, /* @__PURE__ */ React.createElement(Json.Filter, null), /* @__PURE__ */ React.createElement(Json.Data, null))))
|
|
73
|
+
}))
|
|
74
|
+
];
|
|
75
|
+
export {
|
|
76
|
+
MapSchema,
|
|
77
|
+
addBlueprints,
|
|
78
|
+
capabilities,
|
|
79
|
+
runSteps
|
|
80
|
+
};
|
|
81
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../src/blueprints/testing.ts", "../../../../src/testing/plugins.tsx"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Arr from 'effect/Array';\nimport * as Effect from 'effect/Effect';\nimport { pipe } from 'effect/Function';\n\nimport { ConsolePrinter } from '@dxos/ai';\nimport {\n AiContextService,\n type AiConversation,\n type AiConversationRunProps,\n GenerationObserver,\n} from '@dxos/assistant';\nimport type { Blueprint } from '@dxos/blueprints';\nimport { Database, Ref } from '@dxos/echo';\nimport { log } from '@dxos/log';\n\nexport type TestStep = Pick<AiConversationRunProps<{}>, 'prompt' | 'system'> & {\n test?: () => Promise<void>;\n};\n\n/**\n * Blueprint definition type for testing.\n * Mirrors AppCapabilities.BlueprintDefinition to avoid circular dependency with app-toolkit.\n */\nexport interface BlueprintDefinition {\n key: string;\n make: () => Blueprint.Blueprint;\n}\n\n/**\n * Runs the prompt steps, calling the test function after each step.\n */\nexport const runSteps = Effect.fn(function* (conversation: AiConversation, steps: TestStep[]) {\n for (const { test, ...props } of steps) {\n yield* conversation.createRequest({\n ...props,\n observer: GenerationObserver.fromPrinter(new ConsolePrinter({ mode: 'json' })),\n });\n const messages = yield* Effect.promise(() => conversation.getHistory());\n log.info('conversation', { messages });\n if (test) {\n yield* Effect.promise(() => test());\n }\n }\n});\n\n/**\n * Binds blueprints from the blueprint definitions.\n */\n// TODO(dmaretskyi): Potentially the agent will auto-bind the blueprints.\nexport const addBlueprints = Effect.fnUntraced(function* (blueprints: BlueprintDefinition[]) {\n yield* AiContextService.bindContext({\n blueprints: yield* pipe(\n blueprints,\n Arr.map((blueprint) => blueprint.make()),\n Effect.forEach(Database.add),\n Effect.map(Arr.map(Ref.make)),\n ),\n });\n});\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport React from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface } from '@dxos/app-framework/ui';\nimport { Format, type Obj, Type } from '@dxos/echo';\nimport { Card } from '@dxos/react-ui';\nimport { Json } from '@dxos/react-ui-syntax-highlighter';\n\nexport const MapSchema = Schema.Struct({\n coordinates: Format.GeoPoint,\n}).pipe(\n Type.object({\n typename: 'com.example.type.map',\n version: '0.1.0',\n }),\n);\n\nexport type MapSchema = Schema.Schema.Type<typeof MapSchema>;\n\n// TODO(burdon): Move to ECHO def.\nexport type ArtifactsContext = {\n items: Obj.Unknown[];\n getArtifacts: () => Obj.Unknown[];\n addArtifact: (artifact: Obj.Unknown) => void;\n};\n\ndeclare global {\n interface ToolContextExtensions {\n artifacts?: ArtifactsContext;\n }\n}\n\n// TODO(dmaretskyi): Removed images from conductor GPT implementation.\nconst isImage = (data: any): data is any => false;\n\nexport const capabilities: Capability.Any[] = [\n Capability.contributes(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'plugin-image',\n role: 'card--content',\n filter: (data: any): data is any => isImage(data.value),\n component: ({ data }) => (\n <Card.Content>\n <img\n className='grow object-cover'\n src={`data:image/jpeg;base64,${data.value.source.data}`}\n alt={data.value.prompt ?? `Generated image [id=${data.value.id}]`}\n />\n </Card.Content>\n ),\n }),\n ),\n Capability.contributes(\n Capabilities.ReactSurface,\n Surface.create({\n id: 'plugin-default',\n role: 'card--content',\n position: 'fallback',\n component: ({ data }) => (\n <Card.Content>\n <Json.Root data={data}>\n <Json.Content>\n <Json.Filter />\n <Json.Data />\n </Json.Content>\n </Json.Root>\n </Card.Content>\n ),\n }),\n ),\n];\n"],
|
|
5
|
+
"mappings": ";;;AAIA,YAAYA,SAAS;AACrB,YAAYC,YAAY;AACxB,SAASC,YAAY;AAErB,SAASC,sBAAsB;AAC/B,SACEC,kBAGAC,0BACK;AAEP,SAASC,UAAUC,WAAW;AAC9B,SAASC,WAAW;;AAkBb,IAAMC,WAAkBC,UAAG,WAAWC,cAA8BC,OAAiB;AAC1F,aAAW,EAAEC,MAAM,GAAGC,MAAAA,KAAWF,OAAO;AACtC,WAAOD,aAAaI,cAAc;MAChC,GAAGD;MACHE,UAAUX,mBAAmBY,YAAY,IAAId,eAAe;QAAEe,MAAM;MAAO,CAAA,CAAA;IAC7E,CAAA;AACA,UAAMC,WAAW,OAAcC,eAAQ,MAAMT,aAAaU,WAAU,CAAA;AACpEb,QAAIc,KAAK,gBAAgB;MAAEH;IAAS,GAAA;;;;;;AACpC,QAAIN,MAAM;AACR,aAAcO,eAAQ,MAAMP,KAAAA,CAAAA;IAC9B;EACF;AACF,CAAA;AAMO,IAAMU,gBAAuBC,kBAAW,WAAWC,YAAiC;AACzF,SAAOrB,iBAAiBsB,YAAY;IAClCD,YAAY,OAAOvB,KACjBuB,YACIE,QAAI,CAACC,cAAcA,UAAUC,KAAI,CAAA,GAC9BC,eAAQxB,SAASyB,GAAG,GACpBJ,WAAQA,QAAIpB,IAAIsB,IAAI,CAAA,CAAA;EAE/B,CAAA;AACF,CAAA;;;AC1DA,YAAYG,YAAY;AACxB,OAAOC,WAAW;AAElB,SAASC,cAAcC,kBAAkB;AACzC,SAASC,eAAe;AACxB,SAASC,QAAkBC,YAAY;AACvC,SAASC,YAAY;AACrB,SAASC,YAAY;AAEd,IAAMC,YAAmBC,cAAO;EACrCC,aAAaC,OAAOC;AACtB,CAAA,EAAGC,KACDC,KAAKC,OAAO;EACVC,UAAU;EACVC,SAAS;AACX,CAAA,CAAA;AAmBF,IAAMC,UAAU,CAACC,SAA2B;AAErC,IAAMC,eAAiC;EAC5CC,WAAWC,YACTC,aAAaC,cACbC,QAAQC,OAAO;IACbC,IAAI;IACJC,MAAM;IACNC,QAAQ,CAACV,SAA2BD,QAAQC,KAAKW,KAAK;IACtDC,WAAW,CAAC,EAAEZ,KAAI,MAChB,sBAAA,cAACa,KAAKC,SAAO,MACX,sBAAA,cAACC,OAAAA;MACCC,WAAU;MACVC,KAAK,0BAA0BjB,KAAKW,MAAMO,OAAOlB,IAAI;MACrDmB,KAAKnB,KAAKW,MAAMS,UAAU,uBAAuBpB,KAAKW,MAAMH,EAAE;;EAItE,CAAA,CAAA;EAEFN,WAAWC,YACTC,aAAaC,cACbC,QAAQC,OAAO;IACbC,IAAI;IACJC,MAAM;IACNY,UAAU;IACVT,WAAW,CAAC,EAAEZ,KAAI,MAChB,sBAAA,cAACa,KAAKC,SAAO,MACX,sBAAA,cAACQ,KAAKC,MAAI;MAACvB;OACT,sBAAA,cAACsB,KAAKR,SAAO,MACX,sBAAA,cAACQ,KAAKE,QAAM,IAAA,GACZ,sBAAA,cAACF,KAAKG,MAAI,IAAA,CAAA,CAAA,CAAA;EAKpB,CAAA,CAAA;;",
|
|
6
|
+
"names": ["Arr", "Effect", "pipe", "ConsolePrinter", "AiContextService", "GenerationObserver", "Database", "Ref", "log", "runSteps", "fn", "conversation", "steps", "test", "props", "createRequest", "observer", "fromPrinter", "mode", "messages", "promise", "getHistory", "info", "addBlueprints", "fnUntraced", "blueprints", "bindContext", "map", "blueprint", "make", "forEach", "add", "Schema", "React", "Capabilities", "Capability", "Surface", "Format", "Type", "Card", "Json", "MapSchema", "Struct", "coordinates", "Format", "GeoPoint", "pipe", "Type", "object", "typename", "version", "isImage", "data", "capabilities", "Capability", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "role", "filter", "value", "component", "Card", "Content", "img", "className", "src", "source", "alt", "prompt", "position", "Json", "Root", "Filter", "Data"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Update
|
|
3
|
+
} from "./chunk-6FL4C6KD.mjs";
|
|
4
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
5
|
+
|
|
6
|
+
// src/blueprints/markdown/functions/update.ts
|
|
7
|
+
import * as Effect from "effect/Effect";
|
|
8
|
+
import { Database, Obj } from "@dxos/echo";
|
|
9
|
+
import { Operation } from "@dxos/operation";
|
|
10
|
+
var update_default = Update.pipe(Operation.withHandler(Effect.fn(function* ({ doc, content }) {
|
|
11
|
+
const document = yield* Database.load(doc);
|
|
12
|
+
const text = yield* Database.load(document.content);
|
|
13
|
+
Obj.change(text, (obj) => {
|
|
14
|
+
obj.content = content;
|
|
15
|
+
});
|
|
16
|
+
})));
|
|
17
|
+
export {
|
|
18
|
+
update_default as default
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=update-HZ7A3ZA5.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/markdown/functions/update.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Database, Obj } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\n\nimport { Update } from './definitions';\n\nexport default Update.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ doc, content }) {\n const document = yield* Database.load(doc);\n const text = yield* Database.load(document.content);\n Obj.change(text, (obj) => {\n obj.content = content;\n });\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,UAAUC,WAAW;AAC9B,SAASC,iBAAiB;AAI1B,IAAA,iBAAeC,OAAOC,KACpBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,KAAKC,QAAO,GAAE;AACnC,QAAMC,WAAW,OAAOC,SAASC,KAAKJ,GAAAA;AACtC,QAAMK,OAAO,OAAOF,SAASC,KAAKF,SAASD,OAAO;AAClDK,MAAIC,OAAOF,MAAM,CAACG,QAAAA;AAChBA,QAAIP,UAAUA;EAChB,CAAA;AACF,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Database", "Obj", "Operation", "Update", "pipe", "Operation", "withHandler", "fn", "doc", "content", "document", "Database", "load", "text", "Obj", "change", "obj"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UpdateTasks
|
|
3
|
+
} from "./chunk-4QGZEDWS.mjs";
|
|
4
|
+
import {
|
|
5
|
+
Plan_exports,
|
|
6
|
+
Project_exports
|
|
7
|
+
} from "./chunk-2NKPVOXM.mjs";
|
|
8
|
+
import "./chunk-VBSCQN37.mjs";
|
|
9
|
+
import "./chunk-YBTLIXQK.mjs";
|
|
10
|
+
import "./chunk-J5LGTIGS.mjs";
|
|
11
|
+
|
|
12
|
+
// src/blueprints/planning/functions/update-tasks.ts
|
|
13
|
+
import * as Effect from "effect/Effect";
|
|
14
|
+
import { Database, Obj } from "@dxos/echo";
|
|
15
|
+
import { Operation } from "@dxos/operation";
|
|
16
|
+
import { trim } from "@dxos/util";
|
|
17
|
+
var update_tasks_default = UpdateTasks.pipe(Operation.withHandler(Effect.fn(function* ({ tasks: newTasks }) {
|
|
18
|
+
const project = yield* Project_exports.getFromChatContext;
|
|
19
|
+
const plan = yield* Database.load(project.plan);
|
|
20
|
+
Obj.change(plan, (plan2) => {
|
|
21
|
+
for (const task of newTasks) {
|
|
22
|
+
const existingTask = plan2.tasks.find((t) => t.id === task.id);
|
|
23
|
+
if (existingTask) {
|
|
24
|
+
existingTask.title = task.title;
|
|
25
|
+
existingTask.status = task.status;
|
|
26
|
+
} else {
|
|
27
|
+
plan2.tasks.push({
|
|
28
|
+
id: task.id,
|
|
29
|
+
title: task.title,
|
|
30
|
+
status: task.status
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
return trim`
|
|
36
|
+
Tasks updated. Don't forget to mark tasks as done when you're done with them or update their status to 'in-progress' when you start working on them.
|
|
37
|
+
Current plan:
|
|
38
|
+
<plan>
|
|
39
|
+
${Plan_exports.formatPlan(plan)}
|
|
40
|
+
</plan>
|
|
41
|
+
`;
|
|
42
|
+
})));
|
|
43
|
+
export {
|
|
44
|
+
update_tasks_default as default
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=update-tasks-TZ65WZ44.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/planning/functions/update-tasks.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { Database, Obj } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { trim } from '@dxos/util';\n\nimport { UpdateTasks } from './definitions';\nimport { Plan, Project } from '../../../types';\n\nexport default UpdateTasks.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ tasks: newTasks }) {\n const project = yield* Project.getFromChatContext;\n const plan = yield* Database.load(project.plan);\n\n Obj.change(plan, (plan) => {\n for (const task of newTasks) {\n const existingTask = plan.tasks.find((t) => t.id === task.id);\n if (existingTask) {\n existingTask.title = task.title;\n existingTask.status = task.status;\n } else {\n plan.tasks.push({\n id: task.id,\n title: task.title,\n status: task.status,\n });\n }\n }\n });\n\n return trim`\n Tasks updated. Don't forget to mark tasks as done when you're done with them or update their status to 'in-progress' when you start working on them.\n Current plan:\n <plan>\n ${Plan.formatPlan(plan)}\n </plan>\n `;\n }) as any,\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,UAAUC,WAAW;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,YAAY;AAKrB,IAAA,uBAAeC,YAAYC,KACzBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,OAAOC,SAAQ,GAAE;AACtC,QAAMC,UAAU,OAAOC,gBAAQC;AAC/B,QAAMC,OAAO,OAAOC,SAASC,KAAKL,QAAQG,IAAI;AAE9CG,MAAIC,OAAOJ,MAAM,CAACA,UAAAA;AAChB,eAAWK,QAAQT,UAAU;AAC3B,YAAMU,eAAeN,MAAKL,MAAMY,KAAK,CAACC,MAAMA,EAAEC,OAAOJ,KAAKI,EAAE;AAC5D,UAAIH,cAAc;AAChBA,qBAAaI,QAAQL,KAAKK;AAC1BJ,qBAAaK,SAASN,KAAKM;MAC7B,OAAO;AACLX,QAAAA,MAAKL,MAAMiB,KAAK;UACdH,IAAIJ,KAAKI;UACTC,OAAOL,KAAKK;UACZC,QAAQN,KAAKM;QACf,CAAA;MACF;IACF;EACF,CAAA;AAEA,SAAOE;;;;YAIDC,aAAKC,WAAWf,IAAAA,CAAAA;;;AAGxB,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["Effect", "Database", "Obj", "Operation", "trim", "UpdateTasks", "pipe", "Operation", "withHandler", "fn", "tasks", "newTasks", "project", "Project", "getFromChatContext", "plan", "Database", "load", "Obj", "change", "task", "existingTask", "find", "t", "id", "title", "status", "push", "trim", "Plan", "formatPlan"]
|
|
7
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/automation/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAmGzD,QAAA,MAAM,SAAS,EAAE,eAAe,CAAC,mBAGhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/automation/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/blueprint-manager/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAuCzD,QAAA,MAAM,SAAS,EAAE,eAAe,CAAC,mBAGhC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.test.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/blueprint-manager/blueprint.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { AiContextService } from '@dxos/assistant';
|
|
2
|
+
import { Blueprint } from '@dxos/blueprints';
|
|
3
|
+
import { Database } from '@dxos/echo';
|
|
4
|
+
import { Operation } from '@dxos/operation';
|
|
5
|
+
export declare const QueryBlueprints: Operation.Definition<{}, readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly description?: string | undefined;
|
|
8
|
+
readonly key: string;
|
|
9
|
+
readonly instructions: {
|
|
10
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
11
|
+
readonly name?: string | undefined;
|
|
12
|
+
readonly content: string;
|
|
13
|
+
}>;
|
|
14
|
+
readonly inputs?: readonly {
|
|
15
|
+
readonly function?: string | undefined;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
18
|
+
readonly default?: any;
|
|
19
|
+
}[] | undefined;
|
|
20
|
+
};
|
|
21
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
22
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
23
|
+
readonly mcpServers?: readonly {
|
|
24
|
+
readonly url: string;
|
|
25
|
+
readonly protocol: "sse" | "http";
|
|
26
|
+
}[] | undefined;
|
|
27
|
+
})[], Blueprint.RegistryService>;
|
|
28
|
+
export declare const EnableBlueprints: Operation.Definition<{
|
|
29
|
+
readonly keys: readonly string[];
|
|
30
|
+
}, {
|
|
31
|
+
readonly enabled: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
32
|
+
readonly name: string;
|
|
33
|
+
readonly description?: string | undefined;
|
|
34
|
+
readonly key: string;
|
|
35
|
+
readonly instructions: {
|
|
36
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
37
|
+
readonly name?: string | undefined;
|
|
38
|
+
readonly content: string;
|
|
39
|
+
}>;
|
|
40
|
+
readonly inputs?: readonly {
|
|
41
|
+
readonly function?: string | undefined;
|
|
42
|
+
readonly name: string;
|
|
43
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
44
|
+
readonly default?: any;
|
|
45
|
+
}[] | undefined;
|
|
46
|
+
};
|
|
47
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
48
|
+
readonly agentCanEnable?: boolean | undefined;
|
|
49
|
+
readonly mcpServers?: readonly {
|
|
50
|
+
readonly url: string;
|
|
51
|
+
readonly protocol: "sse" | "http";
|
|
52
|
+
}[] | undefined;
|
|
53
|
+
})[];
|
|
54
|
+
readonly rejected: readonly {
|
|
55
|
+
readonly key: string;
|
|
56
|
+
readonly reason: string;
|
|
57
|
+
}[];
|
|
58
|
+
}, Database.Service | AiContextService | Blueprint.RegistryService>;
|
|
59
|
+
//# sourceMappingURL=definitions.d.ts.map
|