@dxos/assistant-toolkit 0.8.4-main.ae835ea → 0.8.4-main.bc2380dfbc
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/LICENSE +102 -5
- package/dist/lib/neutral/add-artifact-4IVGW6CI.mjs +30 -0
- package/dist/lib/neutral/add-artifact-4IVGW6CI.mjs.map +7 -0
- package/dist/lib/neutral/agent-F4L7UXME.mjs +65 -0
- package/dist/lib/neutral/agent-F4L7UXME.mjs.map +7 -0
- package/dist/lib/neutral/chunk-5GPL2WXU.mjs +292 -0
- package/dist/lib/neutral/chunk-5GPL2WXU.mjs.map +7 -0
- package/dist/lib/neutral/chunk-7UCYAP3T.mjs +332 -0
- package/dist/lib/neutral/chunk-7UCYAP3T.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ANSF2BHN.mjs +67 -0
- package/dist/lib/neutral/chunk-ANSF2BHN.mjs.map +7 -0
- package/dist/lib/neutral/chunk-BCT55UTL.mjs +75 -0
- package/dist/lib/neutral/chunk-BCT55UTL.mjs.map +7 -0
- package/dist/lib/neutral/chunk-COL54UJ3.mjs +60 -0
- package/dist/lib/neutral/chunk-COL54UJ3.mjs.map +7 -0
- package/dist/lib/neutral/chunk-EJAQUAKM.mjs +73 -0
- package/dist/lib/neutral/chunk-EJAQUAKM.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-KGU725LW.mjs +29 -0
- package/dist/lib/neutral/chunk-KGU725LW.mjs.map +7 -0
- package/dist/lib/neutral/chunk-KS3IA6FQ.mjs +101 -0
- package/dist/lib/neutral/chunk-KS3IA6FQ.mjs.map +7 -0
- package/dist/lib/neutral/chunk-MMQ7HFL4.mjs +107 -0
- package/dist/lib/neutral/chunk-MMQ7HFL4.mjs.map +7 -0
- package/dist/lib/neutral/chunk-NR3GTWRC.mjs +53 -0
- package/dist/lib/neutral/chunk-NR3GTWRC.mjs.map +7 -0
- package/dist/lib/neutral/chunk-PLGEBNTO.mjs +65 -0
- package/dist/lib/neutral/chunk-PLGEBNTO.mjs.map +7 -0
- package/dist/lib/neutral/chunk-W2722TC5.mjs +70 -0
- package/dist/lib/neutral/chunk-W2722TC5.mjs.map +7 -0
- package/dist/lib/neutral/chunk-WLR3BGO4.mjs +25 -0
- package/dist/lib/neutral/chunk-WLR3BGO4.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ZFXLTBZG.mjs +73 -0
- package/dist/lib/neutral/chunk-ZFXLTBZG.mjs.map +7 -0
- package/dist/lib/neutral/context-add-S5MBW2NA.mjs +22 -0
- package/dist/lib/neutral/context-add-S5MBW2NA.mjs.map +7 -0
- package/dist/lib/neutral/context-remove-35O5T5N5.mjs +22 -0
- package/dist/lib/neutral/context-remove-35O5T5N5.mjs.map +7 -0
- package/dist/lib/neutral/create-project-3AGXJ4TD.mjs +35 -0
- package/dist/lib/neutral/create-project-3AGXJ4TD.mjs.map +7 -0
- package/dist/lib/neutral/delete-J3PMWP7Z.mjs +19 -0
- package/dist/lib/neutral/delete-J3PMWP7Z.mjs.map +7 -0
- package/dist/lib/neutral/enable-blueprints-IVKST3WH.mjs +47 -0
- package/dist/lib/neutral/enable-blueprints-IVKST3WH.mjs.map +7 -0
- package/dist/lib/neutral/fetch-KHMHV7JR.mjs +16 -0
- package/dist/lib/neutral/fetch-KHMHV7JR.mjs.map +7 -0
- package/dist/lib/neutral/fetch-messages-QOBBCTGC.mjs +139 -0
- package/dist/lib/neutral/fetch-messages-QOBBCTGC.mjs.map +7 -0
- package/dist/lib/neutral/get-context-FBYWIP72.mjs +35 -0
- package/dist/lib/neutral/get-context-FBYWIP72.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +914 -0
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/load-GAT3T2AD.mjs +17 -0
- package/dist/lib/neutral/load-GAT3T2AD.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/object-create-PL3WRP74.mjs +35 -0
- package/dist/lib/neutral/object-create-PL3WRP74.mjs.map +7 -0
- package/dist/lib/neutral/object-delete-PZJQN5KW.mjs +18 -0
- package/dist/lib/neutral/object-delete-PZJQN5KW.mjs.map +7 -0
- package/dist/lib/neutral/object-update-R43N3VJX.mjs +28 -0
- package/dist/lib/neutral/object-update-R43N3VJX.mjs.map +7 -0
- package/dist/lib/neutral/project-VVXXUMAI.mjs +23 -0
- package/dist/lib/neutral/project-VVXXUMAI.mjs.map +7 -0
- package/dist/lib/neutral/project-rules-KSVSOZJV.mjs +78 -0
- package/dist/lib/neutral/project-rules-KSVSOZJV.mjs.map +7 -0
- package/dist/lib/neutral/prompt-INL55Q2B.mjs +170 -0
- package/dist/lib/neutral/prompt-INL55Q2B.mjs.map +7 -0
- package/dist/lib/neutral/qualifier-DAF4H7V3.mjs +88 -0
- package/dist/lib/neutral/qualifier-DAF4H7V3.mjs.map +7 -0
- package/dist/lib/neutral/query-MP5NSQKO.mjs +69 -0
- package/dist/lib/neutral/query-MP5NSQKO.mjs.map +7 -0
- package/dist/lib/neutral/query-U56GNEV6.mjs +32 -0
- package/dist/lib/neutral/query-U56GNEV6.mjs.map +7 -0
- package/dist/lib/neutral/query-blueprints-PLWYVOI3.mjs +16 -0
- package/dist/lib/neutral/query-blueprints-PLWYVOI3.mjs.map +7 -0
- package/dist/lib/neutral/relation-create-YAAAFTR2.mjs +34 -0
- package/dist/lib/neutral/relation-create-YAAAFTR2.mjs.map +7 -0
- package/dist/lib/neutral/relation-delete-IEPKERFR.mjs +18 -0
- package/dist/lib/neutral/relation-delete-IEPKERFR.mjs.map +7 -0
- package/dist/lib/neutral/save-GWAPLT3Z.mjs +23 -0
- package/dist/lib/neutral/save-GWAPLT3Z.mjs.map +7 -0
- package/dist/lib/neutral/schema-add-5BNIINRS.mjs +24 -0
- package/dist/lib/neutral/schema-add-5BNIINRS.mjs.map +7 -0
- package/dist/lib/neutral/schema-list-54UK7S4R.mjs +38 -0
- package/dist/lib/neutral/schema-list-54UK7S4R.mjs.map +7 -0
- package/dist/lib/neutral/sync-issues-DWY76B3M.mjs +166 -0
- package/dist/lib/neutral/sync-issues-DWY76B3M.mjs.map +7 -0
- package/dist/lib/neutral/sync-triggers-NOIQLELD.mjs +135 -0
- package/dist/lib/neutral/sync-triggers-NOIQLELD.mjs.map +7 -0
- package/dist/lib/neutral/tag-add-NLVRGTC6.mjs +19 -0
- package/dist/lib/neutral/tag-add-NLVRGTC6.mjs.map +7 -0
- package/dist/lib/neutral/tag-remove-N4HFBIA2.mjs +19 -0
- package/dist/lib/neutral/tag-remove-N4HFBIA2.mjs.map +7 -0
- package/dist/lib/neutral/testing/index.mjs +76 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -0
- package/dist/lib/neutral/update-blueprints-2SNK6HLG.mjs +16 -0
- package/dist/lib/neutral/update-blueprints-2SNK6HLG.mjs.map +7 -0
- package/dist/lib/neutral/update-tasks-QQUR53RN.mjs +13 -0
- package/dist/lib/neutral/update-tasks-QQUR53RN.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 +61 -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 +4 -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 +12 -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/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 +15 -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 +3 -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 +7 -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 +8 -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 +11 -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 +6 -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 +10 -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/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/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 +24 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.test.d.ts +2 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.test.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/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 +4 -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 +166 -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 +4 -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 +77 -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 +55 -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 +104 -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 +52 -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/testing.d.ts +9 -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} +4 -1
- package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -0
- package/dist/types/src/{functions/research → crud}/graph.d.ts +12 -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/errors.d.ts +41 -0
- package/dist/types/src/errors.d.ts.map +1 -0
- package/dist/types/src/functions/agent/definitions.d.ts +61 -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 -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/index.d.ts +0 -6
- 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 -4
- 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/Agent.d.ts +79 -0
- package/dist/types/src/types/Agent.d.ts.map +1 -0
- package/dist/types/src/types/Chat.d.ts +56 -0
- package/dist/types/src/types/Chat.d.ts.map +1 -0
- package/dist/types/src/types/McpServer.d.ts +21 -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 +89 -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/src/util/graphql.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +46 -39
- package/src/blueprints/automation/blueprint.ts +105 -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 +202 -0
- package/src/blueprints/blueprint-manager/blueprint.ts +49 -0
- package/src/blueprints/blueprint-manager/functions/definitions.ts +57 -0
- package/src/blueprints/blueprint-manager/functions/enable-blueprints.ts +43 -0
- package/src/blueprints/blueprint-manager/functions/index.ts +13 -0
- package/src/blueprints/blueprint-manager/functions/query-blueprints.ts +18 -0
- package/src/blueprints/blueprint-manager/functions/update-blueprints.ts +18 -0
- package/src/blueprints/blueprint-manager/index.ts +6 -0
- package/src/blueprints/browser/blueprint.test.ts +61 -0
- package/src/blueprints/browser/blueprint.ts +40 -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 +531 -0
- package/src/blueprints/database/blueprint.ts +66 -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 +63 -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 +33 -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/discord/blueprint.ts +41 -0
- package/src/blueprints/discord/functions/definitions.ts +70 -0
- package/src/blueprints/discord/functions/fetch-messages.test.ts +50 -0
- package/src/blueprints/discord/functions/fetch-messages.ts +198 -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 +26 -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 +11 -6
- package/src/blueprints/linear/blueprint.ts +42 -0
- package/src/blueprints/linear/functions/definitions.ts +23 -0
- package/src/blueprints/linear/functions/index.ts +9 -0
- package/src/blueprints/linear/functions/linear.test.ts +57 -0
- package/src/{functions/linear → blueprints/linear/functions}/sync-issues.ts +44 -51
- package/src/blueprints/linear/index.ts +2 -3
- package/src/blueprints/memory/blueprint.conversations.json +1 -0
- package/src/blueprints/memory/blueprint.test.ts +139 -0
- package/src/blueprints/memory/blueprint.ts +41 -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 +24 -0
- package/src/blueprints/planning/functions/index.ts +9 -0
- package/src/blueprints/planning/functions/update-tasks.md +116 -0
- package/src/blueprints/planning/functions/update-tasks.test.ts +55 -0
- package/src/blueprints/planning/functions/update-tasks.ts +67 -0
- package/src/blueprints/planning/index.ts +3 -4
- package/src/blueprints/project/blueprint.conversations.json +1 -0
- package/src/blueprints/project/blueprint.test.ts +712 -0
- package/src/blueprints/project/blueprint.ts +64 -0
- package/src/blueprints/project/functions/add-artifact.ts +31 -0
- package/src/blueprints/project/functions/agent.ts +69 -0
- package/src/blueprints/project/functions/definitions.ts +92 -0
- package/src/blueprints/project/functions/get-context.ts +47 -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 +52 -0
- package/src/blueprints/project-wizard/functions/create-project.ts +32 -0
- package/src/blueprints/project-wizard/functions/definitions.ts +63 -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 +153 -0
- package/src/blueprints/project-wizard/index.ts +6 -0
- package/src/blueprints/testing.ts +29 -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 +30 -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 +44 -0
- package/src/crud/graph.ts +378 -0
- package/src/crud/index.ts +5 -0
- package/src/errors.ts +25 -0
- package/src/functions/READ_THIS.md +5 -0
- package/src/functions/agent/definitions.ts +56 -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 +78 -0
- package/src/functions/agent/prompt.ts +210 -87
- package/src/functions/index.ts +0 -6
- package/src/index.ts +3 -1
- package/src/sync/sync.ts +52 -34
- package/src/testing/index.ts +2 -1
- package/src/testing/plugins.tsx +79 -0
- package/src/toolkits/WebToolkit.ts +33 -0
- package/src/toolkits/index.ts +5 -0
- package/src/types/Agent.ts +238 -0
- package/src/types/Chat.ts +63 -0
- package/src/types/McpServer.ts +37 -0
- package/src/types/Memory.ts +24 -0
- package/src/types/Plan.ts +111 -0
- package/src/types/index.ts +9 -0
- package/dist/lib/browser/index.mjs +0 -2481
- 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/design/index.d.ts +0 -3
- package/dist/types/src/blueprints/design/index.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/index.d.ts +0 -3
- package/dist/types/src/blueprints/research/index.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/entity-extraction/entity-extraction.d.ts +0 -173
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts +0 -2
- package/dist/types/src/functions/entity-extraction/entity-extraction.test.d.ts.map +0 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +0 -174
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/exa.d.ts +0 -5
- package/dist/types/src/functions/exa/exa.d.ts.map +0 -1
- package/dist/types/src/functions/exa/index.d.ts +0 -3
- package/dist/types/src/functions/exa/index.d.ts.map +0 -1
- package/dist/types/src/functions/exa/mock.d.ts +0 -5
- package/dist/types/src/functions/exa/mock.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 +0 -2
- 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 +0 -74
- package/dist/types/src/functions/tasks/task-list.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/task-list.test.d.ts +0 -2
- 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 +0 -38
- 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 +0 -37
- 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 +0 -58
- package/dist/types/src/testing/data/exa-search-1748337344119.d.ts.map +0 -1
- package/dist/types/src/testing/data/index.d.ts +0 -3
- package/dist/types/src/testing/data/index.d.ts.map +0 -1
- package/src/blueprints/design/design-blueprint.test.ts +0 -108
- package/src/blueprints/design/design-blueprint.ts +0 -33
- package/src/blueprints/design/index.ts +0 -7
- package/src/blueprints/discord/discord-blueprint.ts +0 -34
- package/src/blueprints/linear/linear-blueprint.ts +0 -35
- package/src/blueprints/planning/planning-blueprint.test.ts +0 -129
- package/src/blueprints/planning/planning-blueprint.ts +0 -98
- package/src/blueprints/research/index.ts +0 -7
- package/src/blueprints/research/research-blueprint.test.ts +0 -7
- 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.test.ts +0 -59
- 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/entity-extraction/entity-extraction.conversations.json +0 -1
- package/src/functions/entity-extraction/entity-extraction.test.ts +0 -100
- package/src/functions/entity-extraction/entity-extraction.ts +0 -163
- package/src/functions/entity-extraction/index.ts +0 -9
- package/src/functions/exa/exa.ts +0 -37
- package/src/functions/exa/index.ts +0 -6
- package/src/functions/exa/mock.ts +0 -71
- 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/graph.ts +0 -388
- package/src/functions/research/index.ts +0 -15
- package/src/functions/research/instructions-research.tpl +0 -98
- 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/task-list.test.ts +0 -99
- package/src/functions/tasks/task-list.ts +0 -165
- package/src/functions/tasks/update.ts +0 -52
- package/src/plugins.tsx +0 -68
- package/src/testing/data/exa-search-1748337321991.ts +0 -131
- package/src/testing/data/exa-search-1748337331526.ts +0 -144
- package/src/testing/data/exa-search-1748337344119.ts +0 -133
- package/src/testing/data/index.ts +0 -11
- /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/research → crud}/graph.test.d.ts +0 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
export { default as DatabaseBlueprint } from './blueprint';
|
|
6
|
+
export {
|
|
7
|
+
Query as DatabaseQuery,
|
|
8
|
+
Load as DatabaseLoad,
|
|
9
|
+
ObjectCreate,
|
|
10
|
+
ObjectUpdate,
|
|
11
|
+
ObjectDelete,
|
|
12
|
+
SchemaAdd,
|
|
13
|
+
SchemaList,
|
|
14
|
+
ContextAdd,
|
|
15
|
+
ContextRemove,
|
|
16
|
+
RelationCreate,
|
|
17
|
+
RelationDelete,
|
|
18
|
+
TagAdd,
|
|
19
|
+
TagRemove,
|
|
20
|
+
DatabaseHandlers,
|
|
21
|
+
} from './functions';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Blueprint } from '@dxos/compute';
|
|
6
|
+
import { Ref } from '@dxos/echo';
|
|
7
|
+
import { Text } from '@dxos/schema';
|
|
8
|
+
import { trim } from '@dxos/util';
|
|
9
|
+
|
|
10
|
+
import { FetchMessages } from './functions';
|
|
11
|
+
|
|
12
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.discord';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Agent prompt instructions for managing hierarchical task lists.
|
|
16
|
+
*/
|
|
17
|
+
const instructions = trim`
|
|
18
|
+
You are able to fetch messages from Discord servers.
|
|
19
|
+
|
|
20
|
+
Known servers:
|
|
21
|
+
|
|
22
|
+
DXOS serverId: 837138313172353095
|
|
23
|
+
`;
|
|
24
|
+
|
|
25
|
+
const make = () =>
|
|
26
|
+
Blueprint.make({
|
|
27
|
+
key: BLUEPRINT_KEY,
|
|
28
|
+
name: 'Discord',
|
|
29
|
+
description: 'Discord integration.',
|
|
30
|
+
instructions: {
|
|
31
|
+
source: Ref.make(Text.make({ content: instructions })),
|
|
32
|
+
},
|
|
33
|
+
tools: Blueprint.toolDefinitions({ operations: [FetchMessages] }),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
const blueprint: Blueprint.Definition = {
|
|
37
|
+
key: BLUEPRINT_KEY,
|
|
38
|
+
make,
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export default blueprint;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { Credential, Trace, Operation } from '@dxos/compute';
|
|
8
|
+
|
|
9
|
+
// TODO(dmaretskyi): Extract.
|
|
10
|
+
const TimeRangeSchema = Schema.String.pipe(Schema.pattern(/\d+(s|m|h|d)/)).annotations({
|
|
11
|
+
description: 'Time range. 1d - 1 day, 2h - 2 hours, 30m - 30 minutes, 15s - 15 seconds.',
|
|
12
|
+
examples: ['1d', '2h', '30m', '15s'],
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export const TimeRange = Object.assign(TimeRangeSchema, {
|
|
16
|
+
toSeconds(timeRange: string) {
|
|
17
|
+
const match = timeRange.match(/(\d+)(s|m|h|d)/);
|
|
18
|
+
if (!match) {
|
|
19
|
+
throw new Error(`Invalid time range: ${timeRange}`);
|
|
20
|
+
}
|
|
21
|
+
const [_, amount, unit] = match;
|
|
22
|
+
switch (unit) {
|
|
23
|
+
case 's':
|
|
24
|
+
return Number(amount);
|
|
25
|
+
case 'm':
|
|
26
|
+
return Number(amount) * 60;
|
|
27
|
+
case 'h':
|
|
28
|
+
return Number(amount) * 60 * 60;
|
|
29
|
+
case 'd':
|
|
30
|
+
return Number(amount) * 24 * 60 * 60;
|
|
31
|
+
default:
|
|
32
|
+
throw new Error(`Invalid time range unit: ${unit}`);
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
export const FetchMessages = Operation.make({
|
|
38
|
+
meta: {
|
|
39
|
+
key: 'org.dxos.function.fetch-discord-messages',
|
|
40
|
+
name: 'Sync Discord messages',
|
|
41
|
+
},
|
|
42
|
+
input: Schema.Struct({
|
|
43
|
+
serverId: Schema.String.annotations({
|
|
44
|
+
description: 'The ID of the server to fetch messages from.',
|
|
45
|
+
}),
|
|
46
|
+
channelId: Schema.optional(Schema.String).annotations({
|
|
47
|
+
description:
|
|
48
|
+
'The ID of the channel to fetch messages from. Will crawl all channels from the server if not specified.',
|
|
49
|
+
}),
|
|
50
|
+
after: Schema.optional(Schema.Number).annotations({
|
|
51
|
+
description:
|
|
52
|
+
'Fetch messages that were sent after a given date. Unix timestamp in seconds. Exclusive with `last`.',
|
|
53
|
+
}),
|
|
54
|
+
last: TimeRange.annotations({
|
|
55
|
+
description:
|
|
56
|
+
'Time range to fetch most recent messages. Specifies the range in the past, from now. "1d" would fetch messages from the last 24 hours.',
|
|
57
|
+
}),
|
|
58
|
+
limit: Schema.optional(Schema.Number).annotations({
|
|
59
|
+
description: 'The maximum number of messages to fetch.',
|
|
60
|
+
}),
|
|
61
|
+
pageSize: Schema.optional(Schema.Number).annotations({
|
|
62
|
+
description: 'The number of messages to fetch per page.',
|
|
63
|
+
}),
|
|
64
|
+
ignoreUsernames: Schema.optional(Schema.Array(Schema.String)).annotations({
|
|
65
|
+
description: 'Exclude messages from these usernames.',
|
|
66
|
+
}),
|
|
67
|
+
}),
|
|
68
|
+
output: Schema.Any,
|
|
69
|
+
services: [Credential.CredentialsService, Trace.TraceService],
|
|
70
|
+
});
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as FetchHttpClient from '@effect/platform/FetchHttpClient';
|
|
6
|
+
import { describe, it } from '@effect/vitest';
|
|
7
|
+
import * as Config from 'effect/Config';
|
|
8
|
+
import * as Effect from 'effect/Effect';
|
|
9
|
+
import * as Layer from 'effect/Layer';
|
|
10
|
+
|
|
11
|
+
import { Operation, OperationHandlerSet } from '@dxos/compute';
|
|
12
|
+
import { TestHelpers } from '@dxos/effect/testing';
|
|
13
|
+
import { credentialsLayerConfig } from '@dxos/functions';
|
|
14
|
+
import { AssistantTestLayer } from '@dxos/functions-runtime/testing';
|
|
15
|
+
|
|
16
|
+
import { default as fetchMessages } from './fetch-messages';
|
|
17
|
+
|
|
18
|
+
const TestLayer = AssistantTestLayer({
|
|
19
|
+
operationHandlers: OperationHandlerSet.make(fetchMessages),
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
const TestLayerWithCredentials = Layer.mergeAll(
|
|
23
|
+
credentialsLayerConfig([
|
|
24
|
+
{
|
|
25
|
+
service: 'discord.com',
|
|
26
|
+
apiKey: Config.redacted('DISCORD_TOKEN'),
|
|
27
|
+
},
|
|
28
|
+
]),
|
|
29
|
+
FetchHttpClient.layer,
|
|
30
|
+
).pipe(Layer.provideMerge(TestLayer));
|
|
31
|
+
|
|
32
|
+
const DXOS_SERVER_ID = '837138313172353095';
|
|
33
|
+
|
|
34
|
+
describe.skipIf(!process.env.DISCORD_TOKEN)('Feed', { timeout: 600_000 }, () => {
|
|
35
|
+
it.effect(
|
|
36
|
+
'fetch discord messages',
|
|
37
|
+
Effect.fnUntraced(
|
|
38
|
+
function* (_) {
|
|
39
|
+
const messages = yield* Operation.invoke(fetchMessages, {
|
|
40
|
+
serverId: DXOS_SERVER_ID,
|
|
41
|
+
last: '7d',
|
|
42
|
+
}).pipe(Effect.orDie);
|
|
43
|
+
console.log(messages);
|
|
44
|
+
},
|
|
45
|
+
Effect.provide(TestLayerWithCredentials),
|
|
46
|
+
TestHelpers.provideTestContext,
|
|
47
|
+
),
|
|
48
|
+
{ tags: ['sync'] },
|
|
49
|
+
);
|
|
50
|
+
});
|
|
@@ -0,0 +1,198 @@
|
|
|
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
|
+
|
|
20
|
+
import { Credential, Trace, Operation } from '@dxos/compute';
|
|
21
|
+
import { Obj } from '@dxos/echo';
|
|
22
|
+
import { log } from '@dxos/log';
|
|
23
|
+
import { Message } from '@dxos/types';
|
|
24
|
+
|
|
25
|
+
import { FetchMessages, TimeRange } from './definitions';
|
|
26
|
+
|
|
27
|
+
const DiscordConfigFromCredential = Layer.unwrapEffect(
|
|
28
|
+
Effect.gen(function* () {
|
|
29
|
+
return DiscordConfig.layer({
|
|
30
|
+
token: yield* Credential.CredentialsService.getApiKey({ service: 'discord.com' }),
|
|
31
|
+
rest: {
|
|
32
|
+
baseUrl: 'https://api-proxy.dxos.workers.dev/discord.com/api/v10',
|
|
33
|
+
},
|
|
34
|
+
});
|
|
35
|
+
}),
|
|
36
|
+
);
|
|
37
|
+
|
|
38
|
+
type DiscordChannel = GuildChannelResponse | PrivateChannelResponse | PrivateGroupChannelResponse | ThreadResponse;
|
|
39
|
+
|
|
40
|
+
const DEFAULT_AFTER = 1704067200; // 2024-01-01
|
|
41
|
+
const DEFAULT_LIMIT = 500;
|
|
42
|
+
const DEFAULT_IGNORE_USERNAMES = ['GitHub', 'Needle'];
|
|
43
|
+
|
|
44
|
+
// TODO(dmaretskyi): Align with standard thread type.
|
|
45
|
+
type Thread = {
|
|
46
|
+
discordChannelId: string;
|
|
47
|
+
name?: string;
|
|
48
|
+
messages: Message.Message[];
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export default FetchMessages.pipe(
|
|
52
|
+
Operation.withHandler(
|
|
53
|
+
Effect.fnUntraced(
|
|
54
|
+
function* ({
|
|
55
|
+
serverId,
|
|
56
|
+
channelId,
|
|
57
|
+
after,
|
|
58
|
+
last,
|
|
59
|
+
pageSize = 100,
|
|
60
|
+
limit = DEFAULT_LIMIT,
|
|
61
|
+
ignoreUsernames = DEFAULT_IGNORE_USERNAMES,
|
|
62
|
+
}) {
|
|
63
|
+
if (!after && !last) {
|
|
64
|
+
throw new Error('cannot specify both `after` and `last`');
|
|
65
|
+
}
|
|
66
|
+
const afterTs = last ? Date.now() / 1000 - TimeRange.toSeconds(last) : (after ?? DEFAULT_AFTER);
|
|
67
|
+
|
|
68
|
+
const rest = yield* DiscordREST;
|
|
69
|
+
|
|
70
|
+
let channels: DiscordChannel[] = [];
|
|
71
|
+
channels.push(...(yield* rest.listGuildChannels(serverId)));
|
|
72
|
+
const { threads: guildThreads } = yield* rest.getActiveGuildThreads(serverId);
|
|
73
|
+
channels.push(...guildThreads);
|
|
74
|
+
if (channelId) {
|
|
75
|
+
channels = channels.filter((channel) => channel.id === channelId);
|
|
76
|
+
}
|
|
77
|
+
if (channels.length === 0) {
|
|
78
|
+
throw new Error('no channels found');
|
|
79
|
+
}
|
|
80
|
+
for (const channel of channels) {
|
|
81
|
+
log.info('channel', { id: channel.id, name: 'name' in channel ? channel.name : undefined });
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
yield* Trace.emitStatus(`Will fetch from channels: ${channels.length}`);
|
|
85
|
+
|
|
86
|
+
const threads = yield* Effect.forEach(
|
|
87
|
+
channels,
|
|
88
|
+
Effect.fnUntraced(function* (channel) {
|
|
89
|
+
const allMessages: Message.Message[] = [];
|
|
90
|
+
|
|
91
|
+
let lastMessage: Option.Option<Message.Message> = Option.none();
|
|
92
|
+
while (true) {
|
|
93
|
+
const { id: lastId = undefined } = Function.pipe(
|
|
94
|
+
lastMessage,
|
|
95
|
+
Option.map(Obj.getKeys('discord.com')),
|
|
96
|
+
Option.flatMap(Option.fromIterable),
|
|
97
|
+
Option.getOrElse(() => ({ id: undefined })),
|
|
98
|
+
);
|
|
99
|
+
|
|
100
|
+
const options = {
|
|
101
|
+
after: !lastId ? `${generateSnowflake(afterTs)}` : lastId,
|
|
102
|
+
limit: pageSize,
|
|
103
|
+
};
|
|
104
|
+
log.info('fetching messages', {
|
|
105
|
+
lastId,
|
|
106
|
+
afterTs,
|
|
107
|
+
afterSnowflake: options.after,
|
|
108
|
+
after: parseSnowflake(options.after),
|
|
109
|
+
limit: options.limit,
|
|
110
|
+
});
|
|
111
|
+
const messages = yield* rest.listMessages(channel.id, options).pipe(
|
|
112
|
+
Effect.map(Array.map(makeMessage)),
|
|
113
|
+
Effect.map(Array.reverse),
|
|
114
|
+
Effect.catchTag('ErrorResponse', (err) =>
|
|
115
|
+
err.cause.code === 50001 ? Effect.succeed([]) : Effect.fail(err),
|
|
116
|
+
),
|
|
117
|
+
);
|
|
118
|
+
if (messages.length > 0) {
|
|
119
|
+
lastMessage = Option.fromNullable(messages.at(-1));
|
|
120
|
+
allMessages.push(...messages);
|
|
121
|
+
} else {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
yield* Trace.emitStatus(`Fetched messages: ${allMessages.length}`);
|
|
125
|
+
if (allMessages.length >= limit) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
discordChannelId: channel.id,
|
|
132
|
+
name: 'name' in channel ? (channel.name ?? undefined) : undefined,
|
|
133
|
+
messages: allMessages
|
|
134
|
+
.filter((message) => !message.sender.name || !ignoreUsernames.includes(message.sender.name))
|
|
135
|
+
.filter((message) =>
|
|
136
|
+
message.blocks.some((block: any) => block._tag === 'text' && block.text.trim().length > 0),
|
|
137
|
+
),
|
|
138
|
+
} satisfies Thread;
|
|
139
|
+
}),
|
|
140
|
+
{ concurrency: 10 },
|
|
141
|
+
);
|
|
142
|
+
|
|
143
|
+
return threads
|
|
144
|
+
.filter((thread) => thread.messages.length > 0)
|
|
145
|
+
.map(serializeThread)
|
|
146
|
+
.join('\n');
|
|
147
|
+
},
|
|
148
|
+
Effect.provide(
|
|
149
|
+
DiscordRESTMemoryLive.pipe(Layer.provideMerge(DiscordConfigFromCredential)).pipe(
|
|
150
|
+
Layer.provide(FetchHttpClient.layer),
|
|
151
|
+
),
|
|
152
|
+
),
|
|
153
|
+
Effect.orDie,
|
|
154
|
+
),
|
|
155
|
+
),
|
|
156
|
+
);
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* @param unixTimestamp in seconds
|
|
160
|
+
*/
|
|
161
|
+
const generateSnowflake = (unixTimestamp: number): bigint => {
|
|
162
|
+
const discordEpoch = 1420070400000n; // Discord Epoch (ms)
|
|
163
|
+
return (BigInt(unixTimestamp * 1000) - discordEpoch) << 22n;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const parseSnowflake = (snowflake: string): Date => {
|
|
167
|
+
const discordEpoch = 1420070400000n; // Discord Epoch (ms)
|
|
168
|
+
return new Date(Number((BigInt(snowflake) >> 22n) + discordEpoch));
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
// TODO(burdon): Move to @dxos/types.
|
|
172
|
+
const makeMessage = (message: MessageResponse): Message.Message =>
|
|
173
|
+
Obj.make(Message.Message, {
|
|
174
|
+
[Obj.Meta]: {
|
|
175
|
+
keys: [
|
|
176
|
+
{ id: message.id, source: 'discord.com' },
|
|
177
|
+
{ id: message.channel_id, source: 'discord.com/thread' },
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
sender: { name: message.author.username },
|
|
181
|
+
created: message.timestamp,
|
|
182
|
+
blocks: [{ _tag: 'text', text: message.content }],
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Standard JSON serialization is to verbose for large amounts of data.
|
|
187
|
+
*/
|
|
188
|
+
const serializeThread = (thread: Thread): string => {
|
|
189
|
+
return `<thread id=${thread.discordChannelId} name=${thread.name ?? ''}>\n${thread.messages
|
|
190
|
+
.map(
|
|
191
|
+
(message) =>
|
|
192
|
+
` ${message.sender.name}: ${message.blocks
|
|
193
|
+
.filter((block: any) => block._tag === 'text')
|
|
194
|
+
.map((block: any) => block.text)
|
|
195
|
+
.join(' ')}`,
|
|
196
|
+
)
|
|
197
|
+
.join('\n')}\n</thread>`;
|
|
198
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as HttpClient from '@effect/platform/HttpClient';
|
|
6
|
+
import * as Schema from 'effect/Schema';
|
|
7
|
+
|
|
8
|
+
import { Credential, Operation } from '@dxos/compute';
|
|
9
|
+
|
|
10
|
+
export const FetchPrs = Operation.make({
|
|
11
|
+
meta: {
|
|
12
|
+
key: 'org.dxos.function.github.fetch-prs',
|
|
13
|
+
name: 'Fetch PRs',
|
|
14
|
+
description: 'Fetches PRs from GitHub.',
|
|
15
|
+
},
|
|
16
|
+
input: Schema.Struct({
|
|
17
|
+
owner: Schema.String.annotations({
|
|
18
|
+
description: 'GitHub owner.',
|
|
19
|
+
}),
|
|
20
|
+
repo: Schema.String.annotations({
|
|
21
|
+
description: 'GitHub repository.',
|
|
22
|
+
}),
|
|
23
|
+
}),
|
|
24
|
+
output: Schema.Any,
|
|
25
|
+
services: [Credential.CredentialsService, HttpClient.HttpClient],
|
|
26
|
+
});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as HttpClient from '@effect/platform/HttpClient';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
|
|
8
|
+
import { Credential, Operation } from '@dxos/compute';
|
|
9
|
+
import { withAuthorization } from '@dxos/functions';
|
|
10
|
+
|
|
11
|
+
import { FetchPrs } from './definitions';
|
|
12
|
+
|
|
13
|
+
export default FetchPrs.pipe(
|
|
14
|
+
Operation.withHandler(
|
|
15
|
+
Effect.fnUntraced(function* ({ owner, repo }) {
|
|
16
|
+
const credential = yield* Credential.CredentialsService.getCredential({ service: 'github.com' });
|
|
17
|
+
const client = yield* HttpClient.HttpClient.pipe(Effect.map(withAuthorization(credential.apiKey!)));
|
|
18
|
+
|
|
19
|
+
const response = yield* client.get(`https://api.github.com/repos/${owner}/${repo}/pulls`);
|
|
20
|
+
const json: any = yield* response.json;
|
|
21
|
+
return json;
|
|
22
|
+
}),
|
|
23
|
+
),
|
|
24
|
+
);
|
package/src/blueprints/index.ts
CHANGED
|
@@ -2,9 +2,14 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export
|
|
5
|
+
export * from './discord';
|
|
6
|
+
export * from './project';
|
|
7
|
+
export * from './linear';
|
|
8
|
+
export * from './planning';
|
|
9
|
+
export * from './websearch';
|
|
10
|
+
export * from './browser';
|
|
11
|
+
export * from './database';
|
|
12
|
+
export * from './memory';
|
|
13
|
+
export * from './automation';
|
|
14
|
+
export * from './blueprint-manager';
|
|
15
|
+
export * from './project-wizard';
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { Blueprint } from '@dxos/compute';
|
|
6
|
+
import { Ref } from '@dxos/echo';
|
|
7
|
+
import { Text } from '@dxos/schema';
|
|
8
|
+
import { trim } from '@dxos/util';
|
|
9
|
+
|
|
10
|
+
import { SyncIssues } from './functions';
|
|
11
|
+
|
|
12
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.linear';
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Agent prompt instructions for managing hierarchical task lists.
|
|
16
|
+
*/
|
|
17
|
+
const instructions = trim`
|
|
18
|
+
You are able to sync Linear workspaces.
|
|
19
|
+
Sometimes sync does not complete in one go and you need to call the function again.
|
|
20
|
+
|
|
21
|
+
Known workspaces:
|
|
22
|
+
|
|
23
|
+
DXOS teamId: 1127c63a-6f77-4725-9229-50f6cd47321c
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
const make = () =>
|
|
27
|
+
Blueprint.make({
|
|
28
|
+
key: BLUEPRINT_KEY,
|
|
29
|
+
name: 'Linear',
|
|
30
|
+
description: 'Syncs Linear workspaces.',
|
|
31
|
+
instructions: {
|
|
32
|
+
source: Ref.make(Text.make({ content: instructions })),
|
|
33
|
+
},
|
|
34
|
+
tools: Blueprint.toolDefinitions({ operations: [SyncIssues] }),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const blueprint: Blueprint.Definition = {
|
|
38
|
+
key: BLUEPRINT_KEY,
|
|
39
|
+
make,
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
export default blueprint;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { Credential, Operation } from '@dxos/compute';
|
|
8
|
+
import { Database } from '@dxos/echo';
|
|
9
|
+
|
|
10
|
+
export const SyncIssues = Operation.make({
|
|
11
|
+
meta: {
|
|
12
|
+
key: 'org.dxos.function.linear.sync-issues',
|
|
13
|
+
name: 'Linear',
|
|
14
|
+
description: 'Sync issues from Linear.',
|
|
15
|
+
},
|
|
16
|
+
input: Schema.Struct({
|
|
17
|
+
team: Schema.String.annotations({
|
|
18
|
+
description: 'Linear team id.',
|
|
19
|
+
}),
|
|
20
|
+
}),
|
|
21
|
+
output: Schema.Any,
|
|
22
|
+
services: [Credential.CredentialsService, Database.Service],
|
|
23
|
+
});
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import { describe, it } from '@effect/vitest';
|
|
6
|
+
import * as Effect from 'effect/Effect';
|
|
7
|
+
|
|
8
|
+
import { Operation, OperationHandlerSet } from '@dxos/compute';
|
|
9
|
+
import { Database, Obj, Query } from '@dxos/echo';
|
|
10
|
+
import { TestHelpers } from '@dxos/effect/testing';
|
|
11
|
+
import { AssistantTestLayer } from '@dxos/functions-runtime/testing';
|
|
12
|
+
import { Person, Pipeline, Task } from '@dxos/types';
|
|
13
|
+
|
|
14
|
+
import { LINEAR_ID_KEY, default as fetchLinearIssues } from './sync-issues';
|
|
15
|
+
|
|
16
|
+
const TestLayer = AssistantTestLayer({
|
|
17
|
+
operationHandlers: OperationHandlerSet.make(fetchLinearIssues),
|
|
18
|
+
types: [Task.Task, Person.Person, Pipeline.Pipeline],
|
|
19
|
+
credentials: [{ service: 'linear.app', apiKey: process.env.LINEAR_API_KEY }],
|
|
20
|
+
tracing: 'pretty',
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
describe.skip('Linear', { timeout: 600_000 }, () => {
|
|
24
|
+
it.effect(
|
|
25
|
+
'sync',
|
|
26
|
+
Effect.fnUntraced(
|
|
27
|
+
function* (_) {
|
|
28
|
+
yield* Database.flush();
|
|
29
|
+
|
|
30
|
+
yield* Operation.invoke(fetchLinearIssues, {
|
|
31
|
+
team: '1127c63a-6f77-4725-9229-50f6cd47321c',
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
const persons = yield* Database.runQuery(Query.type(Person.Person));
|
|
35
|
+
console.log('people', {
|
|
36
|
+
count: persons.length,
|
|
37
|
+
people: persons.map((_) => `(${_.id}) ${Obj.getLabel(_)} [${Obj.getKeys(_, LINEAR_ID_KEY)[0]?.id}]`),
|
|
38
|
+
});
|
|
39
|
+
const projects = yield* Database.runQuery(Query.type(Pipeline.Pipeline));
|
|
40
|
+
console.log('projects', {
|
|
41
|
+
count: projects.length,
|
|
42
|
+
projects: projects.map((_) => `(${_.id}) ${Obj.getLabel(_)} [${Obj.getKeys(_, LINEAR_ID_KEY)[0]?.id}]`),
|
|
43
|
+
});
|
|
44
|
+
const tasks = yield* Database.runQuery(Query.type(Task.Task));
|
|
45
|
+
console.log('tasks', {
|
|
46
|
+
count: tasks.length,
|
|
47
|
+
tasks: tasks.map((_) => `(${_.id}) ${Obj.getLabel(_)} [${Obj.getKeys(_, LINEAR_ID_KEY)[0]?.id}]`),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
yield* Database.flush();
|
|
51
|
+
},
|
|
52
|
+
Effect.provide(TestLayer),
|
|
53
|
+
TestHelpers.provideTestContext,
|
|
54
|
+
),
|
|
55
|
+
{ tags: ['sync'] },
|
|
56
|
+
);
|
|
57
|
+
});
|