@dxos/assistant-toolkit 0.8.4-main.bc674ce → 0.8.4-main.c85a9c8dae
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/{browser → neutral}/index.mjs +3244 -2496
- package/dist/lib/neutral/index.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/testing/index.mjs +81 -0
- package/dist/lib/neutral/testing/index.mjs.map +7 -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 +6 -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 +6 -0
- package/dist/types/src/blueprints/database/functions/context-remove.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts +57 -0
- package/dist/types/src/blueprints/database/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/database/functions/load.d.ts +6 -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 +6 -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 +6 -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 +9 -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 +9 -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 +9 -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 +6 -0
- package/dist/types/src/blueprints/database/functions/relation-delete.d.ts.map +1 -0
- package/dist/types/src/{initiative/functions/update.d.ts → blueprints/database/functions/schema-add.d.ts} +3 -3
- 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 +5 -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 +7 -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 +7 -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/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/{functions/discord → blueprints/discord/functions}/index.d.ts +3 -3
- package/dist/types/src/blueprints/discord/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/discord/index.d.ts +1 -2
- package/dist/types/src/blueprints/discord/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/github/functions/fetch-prs.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts +7 -0
- package/dist/types/src/blueprints/github/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/github/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/index.d.ts +10 -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/{functions/linear → blueprints/linear/functions}/index.d.ts +3 -3
- 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.map +1 -0
- package/dist/types/src/blueprints/linear/index.d.ts +1 -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/{functions/document/update.d.ts → blueprints/markdown/functions/create.d.ts} +2 -2
- package/dist/types/src/blueprints/markdown/functions/create.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts +30 -0
- package/dist/types/src/blueprints/markdown/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts +14 -0
- package/dist/types/src/blueprints/markdown/functions/read.d.ts.map +1 -0
- package/dist/types/src/blueprints/markdown/functions/update.d.ts +13 -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/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 +10 -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 +9 -0
- package/dist/types/src/blueprints/planning/functions/update-tasks.d.ts.map +1 -0
- package/dist/types/src/blueprints/planning/index.d.ts +1 -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/index.d.ts +29 -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 +14 -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 +16 -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 +2 -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 +7 -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 +62 -0
- package/dist/types/src/blueprints/project/functions/agent.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/get-context.d.ts +13 -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 +133 -0
- package/dist/types/src/blueprints/project/functions/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/project/functions/qualifier.d.ts +60 -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/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/{functions/research → blueprints/research/functions}/document-create.d.ts +2 -1
- package/dist/types/src/blueprints/research/functions/document-create.d.ts.map +1 -0
- package/dist/types/src/{functions/research → blueprints/research/functions}/index.d.ts +6 -8
- package/dist/types/src/blueprints/research/functions/index.d.ts.map +1 -0
- package/dist/types/src/{functions/research → blueprints/research/functions}/research.d.ts +1 -1
- 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 +2 -2
- package/dist/types/src/blueprints/research/index.d.ts.map +1 -1
- package/dist/types/src/{functions/research/research-graph.d.ts → blueprints/research/types/ResearchGraph.d.ts} +5 -6
- package/dist/types/src/blueprints/research/types/ResearchGraph.d.ts.map +1 -0
- package/dist/types/src/blueprints/research/types/index.d.ts +7 -0
- package/dist/types/src/blueprints/research/types/index.d.ts.map +1 -0
- package/dist/types/src/blueprints/testing.d.ts +17 -3
- 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/index.d.ts +2 -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} +1 -1
- package/dist/types/src/blueprints/websearch/toolkit.d.ts.map +1 -0
- package/dist/types/src/crud/graph.d.ts +6 -6
- package/dist/types/src/crud/graph.d.ts.map +1 -1
- package/dist/types/src/functions/agent/index.d.ts +84 -4
- package/dist/types/src/functions/agent/index.d.ts.map +1 -1
- package/dist/types/src/functions/agent/prompt.d.ts +9 -1
- package/dist/types/src/functions/agent/prompt.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts +8 -3
- package/dist/types/src/functions/entity-extraction/entity-extraction.d.ts.map +1 -1
- package/dist/types/src/functions/entity-extraction/index.d.ts +10 -6
- package/dist/types/src/functions/entity-extraction/index.d.ts.map +1 -1
- package/dist/types/src/functions/exa/index.d.ts +8 -2
- package/dist/types/src/functions/exa/index.d.ts.map +1 -1
- package/dist/types/src/functions/index.d.ts +1 -5
- package/dist/types/src/functions/index.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/testing/index.d.ts +1 -0
- package/dist/types/src/testing/index.d.ts.map +1 -1
- package/dist/types/src/testing/plugins.d.ts.map +1 -1
- package/dist/types/src/toolkits/WebToolkit.d.ts +38 -0
- package/dist/types/src/toolkits/WebToolkit.d.ts.map +1 -0
- package/dist/types/src/toolkits/index.d.ts +1 -2
- package/dist/types/src/toolkits/index.d.ts.map +1 -1
- package/dist/types/src/types/Chat.d.ts +31 -0
- package/dist/types/src/types/Chat.d.ts.map +1 -0
- package/dist/types/src/types/Plan.d.ts +77 -0
- package/dist/types/src/types/Plan.d.ts.map +1 -0
- package/dist/types/src/types/Project.d.ts +67 -0
- package/dist/types/src/types/Project.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +4 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +38 -43
- package/src/blueprints/browser/blueprint.conversations.json +1 -0
- package/src/blueprints/browser/blueprint.test.ts +70 -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 +321 -0
- package/src/blueprints/database/blueprint.ts +39 -0
- package/src/blueprints/database/functions/context-add.ts +35 -0
- package/src/blueprints/database/functions/context-remove.ts +35 -0
- package/src/blueprints/database/functions/index.ts +33 -0
- package/src/blueprints/database/functions/load.ts +31 -0
- package/src/blueprints/database/functions/object-create.ts +35 -0
- package/src/blueprints/database/functions/object-delete.ts +27 -0
- package/src/blueprints/database/functions/object-update.ts +32 -0
- package/src/blueprints/database/functions/query.ts +126 -0
- package/src/blueprints/database/functions/relation-create.ts +47 -0
- package/src/blueprints/database/functions/relation-delete.ts +28 -0
- package/src/blueprints/database/functions/schema-add.ts +40 -0
- package/src/blueprints/database/functions/schema-list.ts +34 -0
- package/src/blueprints/database/functions/tag-add.ts +31 -0
- package/src/blueprints/database/functions/tag-remove.ts +30 -0
- package/src/blueprints/database/index.ts +6 -0
- package/src/blueprints/design/{design-blueprint.test.ts → blueprint.test.ts} +12 -21
- package/src/blueprints/design/{design-blueprint.ts → blueprint.ts} +25 -10
- package/src/blueprints/design/index.ts +1 -3
- package/src/blueprints/discord/blueprint.ts +46 -0
- package/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.ts +4 -7
- package/src/blueprints/discord/functions/index.ts +9 -0
- package/src/blueprints/discord/index.ts +1 -3
- package/src/blueprints/github/functions/index.ts +9 -0
- package/src/blueprints/index.ts +10 -6
- package/src/blueprints/linear/blueprint.ts +47 -0
- package/src/blueprints/linear/functions/index.ts +9 -0
- package/src/blueprints/linear/functions/linear.test.ts +58 -0
- package/src/{functions/linear → blueprints/linear/functions}/sync-issues.ts +6 -6
- package/src/blueprints/linear/index.ts +1 -3
- package/src/blueprints/markdown/blueprint.ts +38 -0
- package/src/blueprints/markdown/functions/create.ts +29 -0
- package/src/blueprints/markdown/functions/index.ts +13 -0
- package/src/blueprints/markdown/functions/read.ts +32 -0
- package/src/{functions/document → blueprints/markdown/functions}/update.ts +5 -6
- package/src/blueprints/markdown/index.ts +6 -0
- package/src/blueprints/planning/blueprint.ts +28 -0
- package/src/blueprints/planning/functions/index.ts +9 -0
- package/src/blueprints/planning/functions/update-tasks.ts +168 -0
- package/src/blueprints/planning/index.ts +2 -4
- package/src/blueprints/{planning/planning-blueprint.test.ts → planning-old/blueprint.test.ts} +12 -16
- package/src/blueprints/{planning/planning-blueprint.ts → planning-old/blueprint.ts} +24 -10
- package/src/blueprints/planning-old/functions/index.ts +11 -0
- package/src/{functions/tasks → blueprints/planning-old/functions}/read.ts +5 -6
- package/src/{functions/tasks → blueprints/planning-old/functions}/update.ts +5 -6
- package/src/blueprints/planning-old/index.ts +5 -0
- package/src/{initiative/initiative.test.ts → blueprints/project/blueprint.test.ts} +138 -44
- package/src/blueprints/project/blueprint.ts +68 -0
- package/src/blueprints/project/functions/add-artifact.ts +41 -0
- package/src/blueprints/project/functions/agent.ts +72 -0
- package/src/blueprints/project/functions/get-context.ts +63 -0
- package/src/blueprints/project/functions/index.ts +15 -0
- package/src/blueprints/project/functions/qualifier.ts +96 -0
- package/src/blueprints/project/index.ts +6 -0
- package/src/blueprints/research/{research-blueprint.ts → blueprint.ts} +25 -11
- package/src/{functions/research → blueprints/research/functions}/document-create.ts +8 -11
- package/src/blueprints/research/functions/index.ts +11 -0
- package/src/blueprints/research/functions/research.conversations.json +1 -0
- package/src/{functions/research → blueprints/research/functions}/research.test.ts +33 -55
- package/src/{functions/research → blueprints/research/functions}/research.ts +13 -27
- package/src/blueprints/research/index.ts +2 -3
- package/src/blueprints/research/types/ResearchGraph.ts +49 -0
- package/src/{functions/research/types.ts → blueprints/research/types/index.ts} +12 -6
- package/src/blueprints/testing.ts +35 -4
- package/src/blueprints/websearch/blueprint.ts +32 -0
- package/src/blueprints/websearch/index.ts +2 -5
- package/src/crud/graph.test.ts +2 -2
- package/src/crud/graph.ts +9 -9
- package/src/functions/READ_THIS.md +5 -0
- package/src/functions/agent/index.ts +4 -6
- package/src/functions/agent/prompt.ts +15 -25
- package/src/functions/entity-extraction/entity-extraction.conversations.json +1 -6597
- package/src/functions/entity-extraction/entity-extraction.test.ts +11 -30
- package/src/functions/entity-extraction/entity-extraction.ts +12 -14
- package/src/functions/entity-extraction/index.ts +4 -4
- package/src/functions/exa/exa.ts +2 -2
- package/src/functions/exa/index.ts +7 -2
- package/src/functions/index.ts +1 -5
- package/src/index.ts +2 -1
- package/src/sync/sync.ts +2 -2
- package/src/testing/index.ts +1 -0
- package/src/testing/plugins.tsx +21 -17
- package/src/toolkits/WebToolkit.ts +33 -0
- package/src/toolkits/index.ts +1 -2
- package/src/types/Chat.ts +49 -0
- package/src/types/Plan.ts +107 -0
- package/src/types/Project.ts +196 -0
- package/src/types/index.ts +7 -0
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/testing/index.mjs +0 -43
- package/dist/lib/browser/testing/index.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs +0 -11
- package/dist/lib/node-esm/chunk-HSLMI22Q.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -2881
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/testing/index.mjs +0 -44
- package/dist/lib/node-esm/testing/index.mjs.map +0 -7
- package/dist/types/src/blueprints/design/design-blueprint.d.ts +0 -18
- 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 -18
- 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 -18
- 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 -18
- 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.map +0 -1
- package/dist/types/src/functions/document/index.d.ts +0 -13
- package/dist/types/src/functions/document/index.d.ts.map +0 -1
- package/dist/types/src/functions/document/read.d.ts +0 -7
- package/dist/types/src/functions/document/read.d.ts.map +0 -1
- package/dist/types/src/functions/document/update.d.ts.map +0 -1
- package/dist/types/src/functions/github/fetch-prs.d.ts.map +0 -1
- 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.map +0 -1
- package/dist/types/src/functions/research/document-create.d.ts.map +0 -1
- package/dist/types/src/functions/research/index.d.ts.map +0 -1
- package/dist/types/src/functions/research/research-graph.d.ts.map +0 -1
- package/dist/types/src/functions/research/research.d.ts.map +0 -1
- package/dist/types/src/functions/research/research.test.d.ts.map +0 -1
- package/dist/types/src/functions/research/types.d.ts +0 -6
- package/dist/types/src/functions/research/types.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/index.d.ts +0 -15
- package/dist/types/src/functions/tasks/index.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/read.d.ts +0 -7
- package/dist/types/src/functions/tasks/read.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/task-list.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/task-list.test.d.ts.map +0 -1
- package/dist/types/src/functions/tasks/update.d.ts +0 -9
- package/dist/types/src/functions/tasks/update.d.ts.map +0 -1
- package/dist/types/src/initiative/Initiative.d.ts +0 -84
- package/dist/types/src/initiative/Initiative.d.ts.map +0 -1
- package/dist/types/src/initiative/InitiativeSchema.d.ts +0 -19
- package/dist/types/src/initiative/InitiativeSchema.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/agent.d.ts +0 -37
- package/dist/types/src/initiative/functions/agent.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/getContext.d.ts +0 -17
- package/dist/types/src/initiative/functions/getContext.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/index.d.ts +0 -4
- package/dist/types/src/initiative/functions/index.d.ts.map +0 -1
- package/dist/types/src/initiative/functions/update.d.ts.map +0 -1
- package/dist/types/src/initiative/index.d.ts.map +0 -1
- package/dist/types/src/initiative/initiative.test.d.ts +0 -2
- package/dist/types/src/initiative/initiative.test.d.ts.map +0 -1
- package/dist/types/src/toolkits/AssistantToolkit.d.ts +0 -43
- package/dist/types/src/toolkits/AssistantToolkit.d.ts.map +0 -1
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts +0 -2
- package/dist/types/src/toolkits/AssistantToolkit.test.d.ts.map +0 -1
- package/dist/types/src/toolkits/SystemToolkit.d.ts +0 -99
- package/dist/types/src/toolkits/SystemToolkit.d.ts.map +0 -1
- package/src/blueprints/discord/discord-blueprint.ts +0 -32
- package/src/blueprints/linear/linear-blueprint.ts +0 -33
- package/src/blueprints/websearch/websearch-blueprint.ts +0 -18
- package/src/experimental/feed.test.ts +0 -111
- package/src/functions/discord/index.ts +0 -9
- package/src/functions/document/index.ts +0 -12
- package/src/functions/document/read.ts +0 -30
- package/src/functions/linear/index.ts +0 -9
- package/src/functions/linear/linear.test.ts +0 -84
- package/src/functions/research/index.ts +0 -14
- package/src/functions/research/research-graph.ts +0 -49
- package/src/functions/research/research.conversations.json +0 -1
- package/src/functions/tasks/index.ts +0 -11
- package/src/initiative/Initiative.ts +0 -99
- package/src/initiative/InitiativeSchema.ts +0 -37
- package/src/initiative/functions/agent.ts +0 -57
- package/src/initiative/functions/getContext.ts +0 -74
- package/src/initiative/functions/index.ts +0 -7
- package/src/initiative/functions/update.ts +0 -63
- package/src/initiative/initiative.conversations.json +0 -1
- package/src/toolkits/AssistantToolkit.conversations.json +0 -1
- package/src/toolkits/AssistantToolkit.test.ts +0 -94
- package/src/toolkits/AssistantToolkit.ts +0 -70
- package/src/toolkits/SystemToolkit.ts +0 -299
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs +0 -0
- /package/dist/lib/{browser → neutral}/chunk-J5LGTIGS.mjs.map +0 -0
- /package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.d.ts +0 -0
- /package/dist/types/src/{functions/discord → blueprints/discord/functions}/fetch-messages.test.d.ts +0 -0
- /package/dist/types/src/{functions/github → blueprints/github/functions}/fetch-prs.d.ts +0 -0
- /package/dist/types/src/{initiative → blueprints/github}/index.d.ts +0 -0
- /package/dist/types/src/{functions/linear → blueprints/linear/functions}/linear.test.d.ts +0 -0
- /package/dist/types/src/{functions/linear → blueprints/linear/functions}/sync-issues.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/src/{functions/discord → blueprints/discord/functions}/fetch-messages.ts +0 -0
- /package/src/{functions/github → blueprints/github/functions}/fetch-prs.ts +0 -0
- /package/src/{initiative → blueprints/github}/index.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/{functions/research → blueprints/research/functions}/research-instructions.tpl +0 -0
- /package/src/blueprints/websearch/{websearch-toolkit.ts → toolkit.ts} +0 -0
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import * as Effect from 'effect/Effect';
|
|
2
|
-
import { Blueprint } from '@dxos/blueprints';
|
|
3
|
-
import { Database, Obj, Ref } from '@dxos/echo';
|
|
4
|
-
import { QueueService } from '@dxos/functions';
|
|
5
|
-
import { Initiative } from './InitiativeSchema';
|
|
6
|
-
export { Initiative, PLAN_ARTIFACT_NAME, SPEC_ARTIFACT_NAME } from './InitiativeSchema';
|
|
7
|
-
export type { Initiative as InitiativeType } from './InitiativeSchema';
|
|
8
|
-
export declare const make: (props: Omit<Obj.MakeProps<typeof Initiative>, "artifacts" | "chat"> & Partial<Pick<Obj.MakeProps<typeof Initiative>, "artifacts">> & {
|
|
9
|
-
spec: string;
|
|
10
|
-
plan?: string;
|
|
11
|
-
blueprints?: Ref.Ref<Blueprint.Blueprint>[];
|
|
12
|
-
contextObjects?: Ref.Ref<Obj.Any>[];
|
|
13
|
-
}) => Effect.Effect<Initiative, never, QueueService | Database.Service>;
|
|
14
|
-
export declare const functions: (import("@dxos/functions").FunctionDefinition<{}, {
|
|
15
|
-
readonly spec: {
|
|
16
|
-
readonly content: string;
|
|
17
|
-
readonly dxn: string;
|
|
18
|
-
};
|
|
19
|
-
readonly artifacts: readonly {
|
|
20
|
-
readonly name: string;
|
|
21
|
-
readonly type: string;
|
|
22
|
-
readonly dxn: string;
|
|
23
|
-
}[];
|
|
24
|
-
readonly plan: {
|
|
25
|
-
readonly content: string;
|
|
26
|
-
readonly dxn: string;
|
|
27
|
-
};
|
|
28
|
-
}, import("@dxos/functions").FunctionServices> | import("@dxos/functions").FunctionDefinition<{
|
|
29
|
-
readonly name: string;
|
|
30
|
-
readonly content: string;
|
|
31
|
-
readonly create?: boolean | undefined;
|
|
32
|
-
}, void, import("@dxos/functions").FunctionServices> | import("@dxos/functions").FunctionDefinition<{
|
|
33
|
-
readonly prompt?: string | undefined;
|
|
34
|
-
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
35
|
-
readonly name: string;
|
|
36
|
-
readonly artifacts: readonly {
|
|
37
|
-
readonly name: string;
|
|
38
|
-
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
39
|
-
}[];
|
|
40
|
-
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
41
|
-
}>;
|
|
42
|
-
readonly event?: {
|
|
43
|
-
readonly from: string;
|
|
44
|
-
readonly to: string;
|
|
45
|
-
readonly body: string;
|
|
46
|
-
readonly created: string;
|
|
47
|
-
readonly subject: string;
|
|
48
|
-
} | {
|
|
49
|
-
readonly queue: string;
|
|
50
|
-
readonly item: any;
|
|
51
|
-
readonly cursor: string;
|
|
52
|
-
} | {
|
|
53
|
-
readonly type: string;
|
|
54
|
-
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
55
|
-
readonly changedObjectId?: string | undefined;
|
|
56
|
-
} | {
|
|
57
|
-
readonly tick: number;
|
|
58
|
-
} | {
|
|
59
|
-
readonly url: string;
|
|
60
|
-
readonly method: "GET" | "POST";
|
|
61
|
-
readonly headers: {
|
|
62
|
-
readonly [x: string]: string;
|
|
63
|
-
};
|
|
64
|
-
readonly bodyText: string;
|
|
65
|
-
} | undefined;
|
|
66
|
-
}, void, import("@dxos/functions").FunctionServices>)[];
|
|
67
|
-
export declare const InitiativeBlueprint: Obj.Obj<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
68
|
-
readonly description?: string | undefined;
|
|
69
|
-
readonly name: string;
|
|
70
|
-
readonly key: string;
|
|
71
|
-
readonly instructions: {
|
|
72
|
-
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
73
|
-
readonly content: string;
|
|
74
|
-
}>;
|
|
75
|
-
readonly inputs?: readonly {
|
|
76
|
-
readonly function?: string | undefined;
|
|
77
|
-
readonly name: string;
|
|
78
|
-
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
79
|
-
readonly default?: any;
|
|
80
|
-
}[] | undefined;
|
|
81
|
-
};
|
|
82
|
-
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
83
|
-
}>;
|
|
84
|
-
//# sourceMappingURL=Initiative.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Initiative.d.ts","sourceRoot":"","sources":["../../../../src/initiative/Initiative.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAE,SAAS,EAAY,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAM/C,OAAO,EAAE,UAAU,EAA0C,MAAM,oBAAoB,CAAC;AAExF,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxF,YAAY,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEvE,eAAO,MAAM,IAAI,GACf,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,GAAG,MAAM,CAAC,GACjE,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,UAAU,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC;IAC5C,cAAc,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC;CACrC,KACF,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CA+B/D,CAAC;AAEL,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uDAA8B,CAAC;AAErD,eAAO,MAAM,mBAAmB;;;;;;;;uBAZF,CAAC;6BACzB,CAAN;;yBAGoB,CAAC;4BAQD,CAAC;;;;EAmCnB,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as Schema from 'effect/Schema';
|
|
2
|
-
import { Type } from '@dxos/echo';
|
|
3
|
-
import { Queue } from '@dxos/echo-db';
|
|
4
|
-
/**
|
|
5
|
-
* Initiative schema definition.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Initiative: Type.Obj<{
|
|
8
|
-
readonly name: string;
|
|
9
|
-
readonly artifacts: readonly {
|
|
10
|
-
readonly name: string;
|
|
11
|
-
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
12
|
-
}[];
|
|
13
|
-
readonly chat?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
14
|
-
}, Schema.Struct.Fields>;
|
|
15
|
-
export interface Initiative extends Schema.Schema.Type<typeof Initiative> {
|
|
16
|
-
}
|
|
17
|
-
export declare const SPEC_ARTIFACT_NAME = "Spec";
|
|
18
|
-
export declare const PLAN_ARTIFACT_NAME = "Plan";
|
|
19
|
-
//# sourceMappingURL=InitiativeSchema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InitiativeSchema.d.ts","sourceRoot":"","sources":["../../../../src/initiative/InitiativeSchema.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;wBAmBtB,CAAC;AACF,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC;CAAG;AAE5E,eAAO,MAAM,kBAAkB,SAAS,CAAC;AAEzC,eAAO,MAAM,kBAAkB,SAAS,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
|
-
readonly prompt?: string | undefined;
|
|
3
|
-
readonly initiative: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
4
|
-
readonly name: string;
|
|
5
|
-
readonly artifacts: readonly {
|
|
6
|
-
readonly name: string;
|
|
7
|
-
readonly data: import("@dxos/echo/internal").Ref<any>;
|
|
8
|
-
}[];
|
|
9
|
-
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
10
|
-
}>;
|
|
11
|
-
readonly event?: {
|
|
12
|
-
readonly from: string;
|
|
13
|
-
readonly to: string;
|
|
14
|
-
readonly body: string;
|
|
15
|
-
readonly created: string;
|
|
16
|
-
readonly subject: string;
|
|
17
|
-
} | {
|
|
18
|
-
readonly queue: string;
|
|
19
|
-
readonly item: any;
|
|
20
|
-
readonly cursor: string;
|
|
21
|
-
} | {
|
|
22
|
-
readonly type: string;
|
|
23
|
-
readonly subject: import("@dxos/echo/internal").Ref<any>;
|
|
24
|
-
readonly changedObjectId?: string | undefined;
|
|
25
|
-
} | {
|
|
26
|
-
readonly tick: number;
|
|
27
|
-
} | {
|
|
28
|
-
readonly url: string;
|
|
29
|
-
readonly method: "GET" | "POST";
|
|
30
|
-
readonly headers: {
|
|
31
|
-
readonly [x: string]: string;
|
|
32
|
-
};
|
|
33
|
-
readonly bodyText: string;
|
|
34
|
-
} | undefined;
|
|
35
|
-
}, void, import("@dxos/functions").FunctionServices>;
|
|
36
|
-
export default _default;
|
|
37
|
-
//# sourceMappingURL=agent.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agent.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/agent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,wBAyCG"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
declare const _default: import("@dxos/functions").FunctionDefinition<{}, {
|
|
2
|
-
readonly spec: {
|
|
3
|
-
readonly content: string;
|
|
4
|
-
readonly dxn: string;
|
|
5
|
-
};
|
|
6
|
-
readonly artifacts: readonly {
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly type: string;
|
|
9
|
-
readonly dxn: string;
|
|
10
|
-
}[];
|
|
11
|
-
readonly plan: {
|
|
12
|
-
readonly content: string;
|
|
13
|
-
readonly dxn: string;
|
|
14
|
-
};
|
|
15
|
-
}, import("@dxos/functions").FunctionServices>;
|
|
16
|
-
export default _default;
|
|
17
|
-
//# sourceMappingURL=getContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getContext.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/getContext.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAcA,wBA2DG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../../../../src/initiative/functions/update.ts"],"names":[],"mappings":";;;;;AAcA,wBAgDG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/initiative/index.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initiative.test.d.ts","sourceRoot":"","sources":["../../../../src/initiative/initiative.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import * as Tool from '@effect/ai/Tool';
|
|
2
|
-
import * as Toolkit from '@effect/ai/Toolkit';
|
|
3
|
-
import * as Schema from 'effect/Schema';
|
|
4
|
-
import { AiContextService } from '@dxos/assistant';
|
|
5
|
-
import { Database } from '@dxos/echo';
|
|
6
|
-
export declare const AssistantToolkit: Toolkit.Toolkit<{
|
|
7
|
-
readonly "context-add": Tool.Tool<"context-add", {
|
|
8
|
-
readonly parameters: Schema.Struct<{
|
|
9
|
-
id: Schema.Schema<string, string, never>;
|
|
10
|
-
}>;
|
|
11
|
-
readonly success: typeof Schema.Void;
|
|
12
|
-
readonly failure: typeof Schema.Never;
|
|
13
|
-
readonly failureMode: "error";
|
|
14
|
-
}, Database.Service | AiContextService>;
|
|
15
|
-
readonly "context-remove": Tool.Tool<"context-remove", {
|
|
16
|
-
readonly parameters: Schema.Struct<{
|
|
17
|
-
id: Schema.Schema<string, string, never>;
|
|
18
|
-
}>;
|
|
19
|
-
readonly success: typeof Schema.Void;
|
|
20
|
-
readonly failure: typeof Schema.Never;
|
|
21
|
-
readonly failureMode: "error";
|
|
22
|
-
}, Database.Service | AiContextService>;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const tools: ("context-add" | "context-remove")[];
|
|
25
|
-
export declare const layer: () => import("effect/Layer").Layer<Tool.HandlersFor<{
|
|
26
|
-
readonly "context-add": Tool.Tool<"context-add", {
|
|
27
|
-
readonly parameters: Schema.Struct<{
|
|
28
|
-
id: Schema.Schema<string, string, never>;
|
|
29
|
-
}>;
|
|
30
|
-
readonly success: typeof Schema.Void;
|
|
31
|
-
readonly failure: typeof Schema.Never;
|
|
32
|
-
readonly failureMode: "error";
|
|
33
|
-
}, Database.Service | AiContextService>;
|
|
34
|
-
readonly "context-remove": Tool.Tool<"context-remove", {
|
|
35
|
-
readonly parameters: Schema.Struct<{
|
|
36
|
-
id: Schema.Schema<string, string, never>;
|
|
37
|
-
}>;
|
|
38
|
-
readonly success: typeof Schema.Void;
|
|
39
|
-
readonly failure: typeof Schema.Never;
|
|
40
|
-
readonly failureMode: "error";
|
|
41
|
-
}, Database.Service | AiContextService>;
|
|
42
|
-
}>, never, never>;
|
|
43
|
-
//# sourceMappingURL=AssistantToolkit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,gBAAgB,EAAc,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAY,MAAM,YAAY,CAAC;AAGhD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;EA2B5B,CAAC;AAEF,eAAO,MAAM,KAAK,sCAAsC,CAAC;AAEzD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;iBAwBd,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AssistantToolkit.test.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/AssistantToolkit.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import * as Tool from '@effect/ai/Tool';
|
|
2
|
-
import * as Toolkit from '@effect/ai/Toolkit';
|
|
3
|
-
import type * as Layer from 'effect/Layer';
|
|
4
|
-
import * as Schema from 'effect/Schema';
|
|
5
|
-
import { Database } from '@dxos/echo';
|
|
6
|
-
export declare const SystemToolkit: Toolkit.Toolkit<{
|
|
7
|
-
readonly "schema-list": Tool.Tool<"schema-list", {
|
|
8
|
-
readonly parameters: Schema.Struct<{
|
|
9
|
-
limit: typeof Schema.Number;
|
|
10
|
-
}>;
|
|
11
|
-
readonly success: typeof Schema.Any;
|
|
12
|
-
readonly failure: typeof Schema.Never;
|
|
13
|
-
readonly failureMode: "error";
|
|
14
|
-
}, Database.Service>;
|
|
15
|
-
readonly "schema-add": Tool.Tool<"schema-add", {
|
|
16
|
-
readonly parameters: Schema.Struct<{
|
|
17
|
-
name: typeof Schema.String;
|
|
18
|
-
typename: typeof Schema.String;
|
|
19
|
-
jsonSchema: typeof Schema.Any;
|
|
20
|
-
}>;
|
|
21
|
-
readonly success: typeof Schema.Any;
|
|
22
|
-
readonly failure: typeof Schema.Never;
|
|
23
|
-
readonly failureMode: "error";
|
|
24
|
-
}, Database.Service>;
|
|
25
|
-
readonly query: Tool.Tool<"query", {
|
|
26
|
-
readonly parameters: Schema.Struct<{
|
|
27
|
-
typename: typeof Schema.String;
|
|
28
|
-
}>;
|
|
29
|
-
readonly success: typeof Schema.Any;
|
|
30
|
-
readonly failure: typeof Schema.Never;
|
|
31
|
-
readonly failureMode: "error";
|
|
32
|
-
}, Database.Service>;
|
|
33
|
-
readonly "object-create": Tool.Tool<"object-create", {
|
|
34
|
-
readonly parameters: Schema.Struct<{
|
|
35
|
-
typename: typeof Schema.String;
|
|
36
|
-
data: typeof Schema.Any;
|
|
37
|
-
}>;
|
|
38
|
-
readonly success: typeof Schema.Any;
|
|
39
|
-
readonly failure: typeof Schema.Never;
|
|
40
|
-
readonly failureMode: "error";
|
|
41
|
-
}, Database.Service>;
|
|
42
|
-
readonly "object-delete": Tool.Tool<"object-delete", {
|
|
43
|
-
readonly parameters: Schema.Struct<{
|
|
44
|
-
id: Schema.Schema<string, string, never>;
|
|
45
|
-
}>;
|
|
46
|
-
readonly success: typeof Schema.Any;
|
|
47
|
-
readonly failure: typeof Schema.Never;
|
|
48
|
-
readonly failureMode: "error";
|
|
49
|
-
}, Database.Service>;
|
|
50
|
-
readonly "object-update": Tool.Tool<"object-update", {
|
|
51
|
-
readonly parameters: Schema.Struct<{
|
|
52
|
-
id: Schema.Schema<string, string, never>;
|
|
53
|
-
properties: Schema.Record$<typeof Schema.String, typeof Schema.Any>;
|
|
54
|
-
}>;
|
|
55
|
-
readonly success: typeof Schema.Any;
|
|
56
|
-
readonly failure: typeof Schema.Never;
|
|
57
|
-
readonly failureMode: "error";
|
|
58
|
-
}, Database.Service>;
|
|
59
|
-
readonly "relation-create": Tool.Tool<"relation-create", {
|
|
60
|
-
readonly parameters: Schema.Struct<{
|
|
61
|
-
typename: typeof Schema.String;
|
|
62
|
-
source: Schema.Schema<string, string, never>;
|
|
63
|
-
target: Schema.Schema<string, string, never>;
|
|
64
|
-
data: Schema.SchemaClass<any, any, never>;
|
|
65
|
-
}>;
|
|
66
|
-
readonly success: typeof Schema.Any;
|
|
67
|
-
readonly failure: typeof Schema.Never;
|
|
68
|
-
readonly failureMode: "error";
|
|
69
|
-
}, Database.Service>;
|
|
70
|
-
readonly "relation-delete": Tool.Tool<"relation-delete", {
|
|
71
|
-
readonly parameters: Schema.Struct<{
|
|
72
|
-
id: Schema.Schema<string, string, never>;
|
|
73
|
-
}>;
|
|
74
|
-
readonly success: typeof Schema.Any;
|
|
75
|
-
readonly failure: typeof Schema.Never;
|
|
76
|
-
readonly failureMode: "error";
|
|
77
|
-
}, Database.Service>;
|
|
78
|
-
readonly "tag-add": Tool.Tool<"tag-add", {
|
|
79
|
-
readonly parameters: Schema.Struct<{
|
|
80
|
-
tagId: Schema.Schema<string, string, never>;
|
|
81
|
-
objectId: Schema.Schema<string, string, never>;
|
|
82
|
-
}>;
|
|
83
|
-
readonly success: typeof Schema.Any;
|
|
84
|
-
readonly failure: typeof Schema.Never;
|
|
85
|
-
readonly failureMode: "error";
|
|
86
|
-
}, Database.Service>;
|
|
87
|
-
readonly "tag-remove": Tool.Tool<"tag-remove", {
|
|
88
|
-
readonly parameters: Schema.Struct<{
|
|
89
|
-
tagId: Schema.Schema<string, string, never>;
|
|
90
|
-
objectId: Schema.Schema<string, string, never>;
|
|
91
|
-
}>;
|
|
92
|
-
readonly success: typeof Schema.Any;
|
|
93
|
-
readonly failure: typeof Schema.Never;
|
|
94
|
-
readonly failureMode: "error";
|
|
95
|
-
}, Database.Service>;
|
|
96
|
-
}>;
|
|
97
|
-
export declare const tools: ("query" | "schema-list" | "schema-add" | "object-create" | "object-delete" | "object-update" | "relation-create" | "relation-delete" | "tag-add" | "tag-remove")[];
|
|
98
|
-
export declare const layer: () => Layer.Layer<Tool.Handler<any>, never, never>;
|
|
99
|
-
//# sourceMappingURL=SystemToolkit.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SystemToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/SystemToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAE9C,OAAO,KAAK,KAAK,KAAK,MAAM,cAAc,CAAC;AAE3C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAO,QAAQ,EAA4C,MAAM,YAAY,CAAC;AAIrF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkLzB,CAAC;AAEF,eAAO,MAAM,KAAK,qKAAmC,CAAC;AAEtD,eAAO,MAAM,KAAK,QAAO,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,KAAK,CAoGhE,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { ToolId } from '@dxos/ai';
|
|
6
|
-
import { Blueprint } from '@dxos/blueprints';
|
|
7
|
-
import { Ref } from '@dxos/echo';
|
|
8
|
-
import { Text } from '@dxos/schema';
|
|
9
|
-
import { trim } from '@dxos/util';
|
|
10
|
-
|
|
11
|
-
import { Discord } from '../../functions';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Agent prompt instructions for managing hierarchical task lists.
|
|
15
|
-
*/
|
|
16
|
-
const instructions = trim`
|
|
17
|
-
You are able to fetch messages from Discord servers.
|
|
18
|
-
|
|
19
|
-
Known servers:
|
|
20
|
-
|
|
21
|
-
DXOS serverId: 837138313172353095
|
|
22
|
-
`;
|
|
23
|
-
|
|
24
|
-
export const blueprint = Blueprint.make({
|
|
25
|
-
key: 'dxos.org/blueprint/discord',
|
|
26
|
-
name: 'Discord',
|
|
27
|
-
description: 'Discord integration.',
|
|
28
|
-
instructions: {
|
|
29
|
-
source: Ref.make(Text.make(instructions)),
|
|
30
|
-
},
|
|
31
|
-
tools: [ToolId.make(Discord.fetch.key)],
|
|
32
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { ToolId } from '@dxos/ai';
|
|
6
|
-
import { Blueprint } from '@dxos/blueprints';
|
|
7
|
-
import { Ref } from '@dxos/echo';
|
|
8
|
-
import { Text } from '@dxos/schema';
|
|
9
|
-
import { trim } from '@dxos/util';
|
|
10
|
-
|
|
11
|
-
import { Linear } from '../../functions';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Agent prompt instructions for managing hierarchical task lists.
|
|
15
|
-
*/
|
|
16
|
-
const instructions = trim`
|
|
17
|
-
You are able to sync Linear workspaces.
|
|
18
|
-
Sometimes sync does not complete in one go and you need to call the function again.
|
|
19
|
-
|
|
20
|
-
Known workspaces:
|
|
21
|
-
|
|
22
|
-
DXOS teamId: 1127c63a-6f77-4725-9229-50f6cd47321c
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
export const blueprint = Blueprint.make({
|
|
26
|
-
key: 'dxos.org/blueprint/linear',
|
|
27
|
-
name: 'Linear',
|
|
28
|
-
description: 'Syncs Linear workspaces.',
|
|
29
|
-
instructions: {
|
|
30
|
-
source: Ref.make(Text.make(instructions)),
|
|
31
|
-
},
|
|
32
|
-
tools: [Linear.sync].map((tool) => ToolId.make(tool.key)),
|
|
33
|
-
});
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import { ToolId } from '@dxos/ai';
|
|
6
|
-
import { Blueprint } from '@dxos/blueprints';
|
|
7
|
-
import { Ref } from '@dxos/echo';
|
|
8
|
-
import { Text } from '@dxos/schema';
|
|
9
|
-
|
|
10
|
-
export const blueprint = Blueprint.make({
|
|
11
|
-
key: 'dxos.org/blueprint/web-search',
|
|
12
|
-
name: 'Web Search',
|
|
13
|
-
description: 'Search the web.',
|
|
14
|
-
instructions: {
|
|
15
|
-
source: Ref.make(Text.make()),
|
|
16
|
-
},
|
|
17
|
-
tools: [ToolId.make('AnthropicWebSearch')],
|
|
18
|
-
});
|
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Toolkit from '@effect/ai/Toolkit';
|
|
6
|
-
import * as FetchHttpClient from '@effect/platform/FetchHttpClient';
|
|
7
|
-
import { describe, it } from '@effect/vitest';
|
|
8
|
-
import * as Config from 'effect/Config';
|
|
9
|
-
import * as Effect from 'effect/Effect';
|
|
10
|
-
import * as Layer from 'effect/Layer';
|
|
11
|
-
import * as Redacted from 'effect/Redacted';
|
|
12
|
-
|
|
13
|
-
import { AiService } from '@dxos/ai';
|
|
14
|
-
import { AiServiceTestingPreset, EXA_API_KEY } from '@dxos/ai/testing';
|
|
15
|
-
import { makeToolExecutionServiceFromFunctions, makeToolResolverFromFunctions } from '@dxos/assistant';
|
|
16
|
-
import { TestHelpers } from '@dxos/effect/testing';
|
|
17
|
-
import { CredentialsService, FunctionInvocationService } from '@dxos/functions';
|
|
18
|
-
import { TracingServiceExt } from '@dxos/functions-runtime';
|
|
19
|
-
import {
|
|
20
|
-
FunctionInvocationServiceLayerTestMocked,
|
|
21
|
-
TestDatabaseLayer,
|
|
22
|
-
testStoragePath,
|
|
23
|
-
} from '@dxos/functions-runtime/testing';
|
|
24
|
-
|
|
25
|
-
import { Discord, Linear } from '../functions';
|
|
26
|
-
|
|
27
|
-
const TestLayer = Layer.mergeAll(
|
|
28
|
-
AiService.model('@anthropic/claude-opus-4-0'),
|
|
29
|
-
makeToolResolverFromFunctions([], Toolkit.make()),
|
|
30
|
-
makeToolExecutionServiceFromFunctions(Toolkit.make() as any, Layer.empty as any),
|
|
31
|
-
).pipe(
|
|
32
|
-
Layer.provideMerge(
|
|
33
|
-
Layer.mergeAll(
|
|
34
|
-
AiServiceTestingPreset('direct'),
|
|
35
|
-
TestDatabaseLayer({
|
|
36
|
-
indexing: { vector: true },
|
|
37
|
-
types: [],
|
|
38
|
-
storagePath: testStoragePath({ name: 'feed-test' }),
|
|
39
|
-
}),
|
|
40
|
-
CredentialsService.layerConfig([
|
|
41
|
-
{ service: 'exa.ai', apiKey: Config.succeed(Redacted.make(EXA_API_KEY)) },
|
|
42
|
-
{ service: 'discord.com', apiKey: Config.redacted('DISCORD_TOKEN') },
|
|
43
|
-
{ service: 'linear.app', apiKey: Config.redacted('LINEAR_API_KEY') },
|
|
44
|
-
]),
|
|
45
|
-
FunctionInvocationServiceLayerTestMocked({ functions: [Linear.sync, Discord.fetch] }).pipe(
|
|
46
|
-
Layer.provideMerge(TracingServiceExt.layerLogInfo()),
|
|
47
|
-
),
|
|
48
|
-
FetchHttpClient.layer,
|
|
49
|
-
),
|
|
50
|
-
),
|
|
51
|
-
);
|
|
52
|
-
|
|
53
|
-
describe('Feed', { timeout: 600_000 }, () => {
|
|
54
|
-
it.effect(
|
|
55
|
-
'fetch discord messages',
|
|
56
|
-
Effect.fnUntraced(
|
|
57
|
-
function* (_) {
|
|
58
|
-
// const messages = yield* LocalFunctionExecutionService.invokeFunction(fetchDiscordMessages, {
|
|
59
|
-
// serverId: '837138313172353095',
|
|
60
|
-
// // channelId: '1404487604761526423',
|
|
61
|
-
// after: Date.now() / 1000 - 128 * 3600,
|
|
62
|
-
// });
|
|
63
|
-
// for (const message of messages) {
|
|
64
|
-
// console.log(message.sender.name, message.blocks.find((block) => block._tag === 'text')?.text);
|
|
65
|
-
// }
|
|
66
|
-
// console.log(`Fetched ${messages.length} messages`);
|
|
67
|
-
|
|
68
|
-
// const result = yield* AiSession.run({
|
|
69
|
-
// history: [
|
|
70
|
-
// Obj.make(Message.Message, {
|
|
71
|
-
// created: new Date().toISOString(),
|
|
72
|
-
// sender: { role: 'user' },
|
|
73
|
-
// blocks: messages
|
|
74
|
-
// .map(
|
|
75
|
-
// (message) =>
|
|
76
|
-
// ({
|
|
77
|
-
// _tag: 'text',
|
|
78
|
-
// text: message.sender.name + ': ' + message.blocks.find((block) => block._tag === 'text')?.text,
|
|
79
|
-
// }) as const,
|
|
80
|
-
// )
|
|
81
|
-
// .filter((block) => block._tag === 'text' && block.text.trim().length > 0),
|
|
82
|
-
// }),
|
|
83
|
-
// ],
|
|
84
|
-
// prompt: 'Summarize the messages.',
|
|
85
|
-
// system: 'Summarize the messages.',
|
|
86
|
-
// }).pipe(Effect.provide(AiService.model('@anthropic/claude-3-5-haiku-latest')));
|
|
87
|
-
// console.log(result);
|
|
88
|
-
|
|
89
|
-
const linearIssues = yield* FunctionInvocationService.invokeFunction(Linear.sync, {
|
|
90
|
-
team: '1127c63a-6f77-4725-9229-50f6cd47321c',
|
|
91
|
-
});
|
|
92
|
-
console.log(linearIssues);
|
|
93
|
-
|
|
94
|
-
// const result = yield* AiSession.run({
|
|
95
|
-
// history: [
|
|
96
|
-
// Obj.make(Message.Message, {
|
|
97
|
-
// created: new Date().toISOString(),
|
|
98
|
-
// sender: { role: 'user' },
|
|
99
|
-
// blocks: [{ _tag: 'text', text: JSON.stringify(linearIssues) }],
|
|
100
|
-
// }),
|
|
101
|
-
// ],
|
|
102
|
-
// prompt: 'Summarize the whats new.',
|
|
103
|
-
// system: 'Summarize the whats new. Reference specific people by name.',
|
|
104
|
-
// }).pipe(Effect.provide(AiService.model('@anthropic/claude-sonnet-4-0')));
|
|
105
|
-
// console.log(result.at(-1)?.blocks.find((block) => block._tag === 'text')?.text);
|
|
106
|
-
},
|
|
107
|
-
Effect.provide(TestLayer),
|
|
108
|
-
TestHelpers.taggedTest('llm'),
|
|
109
|
-
),
|
|
110
|
-
);
|
|
111
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//
|
|
2
|
-
// Copyright 2025 DXOS.org
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
import * as Effect from 'effect/Effect';
|
|
6
|
-
import * as Schema from 'effect/Schema';
|
|
7
|
-
|
|
8
|
-
import { ArtifactId } from '@dxos/assistant';
|
|
9
|
-
import { Database } from '@dxos/echo';
|
|
10
|
-
import { defineFunction } from '@dxos/functions';
|
|
11
|
-
import { Markdown } from '@dxos/plugin-markdown/types';
|
|
12
|
-
|
|
13
|
-
export default defineFunction({
|
|
14
|
-
key: 'dxos.org/function/markdown/read',
|
|
15
|
-
name: 'Read markdown document',
|
|
16
|
-
description: 'Read markdown document.',
|
|
17
|
-
inputSchema: Schema.Struct({
|
|
18
|
-
id: ArtifactId.annotations({
|
|
19
|
-
description: 'The ID of the document to read.',
|
|
20
|
-
}),
|
|
21
|
-
}),
|
|
22
|
-
outputSchema: Schema.Struct({
|
|
23
|
-
content: Schema.String,
|
|
24
|
-
}),
|
|
25
|
-
handler: Effect.fn(function* ({ data: { id } }) {
|
|
26
|
-
const doc = yield* Database.Service.resolve(ArtifactId.toDXN(id), Markdown.Document);
|
|
27
|
-
const { content } = yield* Database.Service.load(doc.content);
|
|
28
|
-
return { content };
|
|
29
|
-
}),
|
|
30
|
-
});
|