@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,5 +1,85 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export declare const AgentFunctions: {
|
|
2
|
+
Prompt: import("@dxos/functions").FunctionDefinition<{
|
|
3
|
+
readonly prompt: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
4
|
+
readonly description?: string | undefined;
|
|
5
|
+
readonly name?: string | undefined;
|
|
6
|
+
readonly context: readonly any[];
|
|
7
|
+
readonly instructions: {
|
|
8
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
9
|
+
readonly content: string;
|
|
10
|
+
}>;
|
|
11
|
+
readonly inputs?: readonly {
|
|
12
|
+
readonly function?: string | undefined;
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
15
|
+
readonly default?: any;
|
|
16
|
+
}[] | undefined;
|
|
17
|
+
};
|
|
18
|
+
readonly input: import("@dxos/echo/internal").JsonSchemaType;
|
|
19
|
+
readonly output: import("@dxos/echo/internal").JsonSchemaType;
|
|
20
|
+
readonly blueprints: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
21
|
+
readonly description?: string | undefined;
|
|
22
|
+
readonly name: string;
|
|
23
|
+
readonly key: string;
|
|
24
|
+
readonly instructions: {
|
|
25
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
26
|
+
readonly content: string;
|
|
27
|
+
}>;
|
|
28
|
+
readonly inputs?: readonly {
|
|
29
|
+
readonly function?: string | undefined;
|
|
30
|
+
readonly name: string;
|
|
31
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
32
|
+
readonly default?: any;
|
|
33
|
+
}[] | undefined;
|
|
34
|
+
};
|
|
35
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
36
|
+
readonly mcpServers?: readonly {
|
|
37
|
+
readonly url: string;
|
|
38
|
+
readonly protocol: "sse" | "http";
|
|
39
|
+
}[] | undefined;
|
|
40
|
+
}>[];
|
|
41
|
+
}>;
|
|
42
|
+
readonly model?: "@anthropic/claude-3-5-haiku-latest" | "@anthropic/claude-3-5-haiku-20241022" | "@anthropic/claude-3-5-sonnet-20241022" | "@anthropic/claude-haiku-4-5" | "@anthropic/claude-sonnet-4-0" | "@anthropic/claude-sonnet-4-5" | "@anthropic/claude-opus-4-0" | "@anthropic/claude-opus-4-5" | "@anthropic/claude-opus-4-6" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@hf/nousresearch/hermes-2-pro-mistral-7b" | "@ollama/llama-3-1-nemotron-70b-instruct" | "@ollama/llama-3-1-nemotron-mini-4b-instruct" | "@ollama/llama-3-2-3b" | "@google/gemma-3-27b" | "@meta/llama-3.1-8b-instruct" | "@meta/llama-3.2-3b-instruct" | "ministral-3-14b-reasoning" | "openai/gpt-oss-20b" | "qwen2.5:14b" | "llama3.2:1b" | "llama3:70b" | "deepseek-r1:latest" | "@openai/gpt-4o" | "@openai/gpt-4o-mini" | "@openai/o1" | "@openai/o3" | "@openai/o3-mini" | undefined;
|
|
43
|
+
readonly input: any;
|
|
44
|
+
readonly systemPrompt?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
45
|
+
readonly description?: string | undefined;
|
|
46
|
+
readonly name?: string | undefined;
|
|
47
|
+
readonly context: readonly any[];
|
|
48
|
+
readonly instructions: {
|
|
49
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
50
|
+
readonly content: string;
|
|
51
|
+
}>;
|
|
52
|
+
readonly inputs?: readonly {
|
|
53
|
+
readonly function?: string | undefined;
|
|
54
|
+
readonly name: string;
|
|
55
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
56
|
+
readonly default?: any;
|
|
57
|
+
}[] | undefined;
|
|
58
|
+
};
|
|
59
|
+
readonly input: import("@dxos/echo/internal").JsonSchemaType;
|
|
60
|
+
readonly output: import("@dxos/echo/internal").JsonSchemaType;
|
|
61
|
+
readonly blueprints: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
62
|
+
readonly description?: string | undefined;
|
|
63
|
+
readonly name: string;
|
|
64
|
+
readonly key: string;
|
|
65
|
+
readonly instructions: {
|
|
66
|
+
readonly source: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
67
|
+
readonly content: string;
|
|
68
|
+
}>;
|
|
69
|
+
readonly inputs?: readonly {
|
|
70
|
+
readonly function?: string | undefined;
|
|
71
|
+
readonly name: string;
|
|
72
|
+
readonly kind?: "function" | "value" | "pass-through" | "retriever" | "query" | "resolver" | "context" | "schema" | undefined;
|
|
73
|
+
readonly default?: any;
|
|
74
|
+
}[] | undefined;
|
|
75
|
+
};
|
|
76
|
+
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
77
|
+
readonly mcpServers?: readonly {
|
|
78
|
+
readonly url: string;
|
|
79
|
+
readonly protocol: "sse" | "http";
|
|
80
|
+
}[] | undefined;
|
|
81
|
+
}>[];
|
|
82
|
+
}> | undefined;
|
|
83
|
+
}, any, import("@dxos/functions").FunctionServices>;
|
|
84
|
+
};
|
|
5
85
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc;;;;;;;;;;+BAGkf,CAAC;qCAA0C,CAAC;;iCAAkF,CAAC;oCAA6I,CAAC;;;;;;oCAAoW,CAAC;;;;;;;mCAAgW,CAAC;yCAA8C,CAAC;;qCAA0F,CAAC;wCAAiJ,CAAC;;;;mCAAgK,CAAC;;;;;;;;;;;;;;;;+BAAh5C,CAAC;qCAA0C,CAAC;;iCAAkF,CAAC;oCAA6I,CAAC;;;;;;oCAAoW,CAAC;;;;;;;mCAAgW,CAAC;yCAA8C,CAAC;;qCAA0F,CAAC;wCAAiJ,CAAC;;;;mCAAgK,CAAC;;;;;;;CAD55D,CAAC"}
|
|
@@ -32,8 +32,13 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
32
32
|
}[] | undefined;
|
|
33
33
|
};
|
|
34
34
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
35
|
+
readonly mcpServers?: readonly {
|
|
36
|
+
readonly url: string;
|
|
37
|
+
readonly protocol: "sse" | "http";
|
|
38
|
+
}[] | undefined;
|
|
35
39
|
}>[];
|
|
36
40
|
}>;
|
|
41
|
+
readonly model?: "@anthropic/claude-3-5-haiku-latest" | "@anthropic/claude-3-5-haiku-20241022" | "@anthropic/claude-3-5-sonnet-20241022" | "@anthropic/claude-haiku-4-5" | "@anthropic/claude-sonnet-4-0" | "@anthropic/claude-sonnet-4-5" | "@anthropic/claude-opus-4-0" | "@anthropic/claude-opus-4-5" | "@anthropic/claude-opus-4-6" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@hf/nousresearch/hermes-2-pro-mistral-7b" | "@ollama/llama-3-1-nemotron-70b-instruct" | "@ollama/llama-3-1-nemotron-mini-4b-instruct" | "@ollama/llama-3-2-3b" | "@google/gemma-3-27b" | "@meta/llama-3.1-8b-instruct" | "@meta/llama-3.2-3b-instruct" | "ministral-3-14b-reasoning" | "openai/gpt-oss-20b" | "qwen2.5:14b" | "llama3.2:1b" | "llama3:70b" | "deepseek-r1:latest" | "@openai/gpt-4o" | "@openai/gpt-4o-mini" | "@openai/o1" | "@openai/o3" | "@openai/o3-mini" | undefined;
|
|
37
42
|
readonly input: any;
|
|
38
43
|
readonly systemPrompt?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
39
44
|
readonly description?: string | undefined;
|
|
@@ -68,9 +73,12 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
68
73
|
}[] | undefined;
|
|
69
74
|
};
|
|
70
75
|
readonly tools: readonly (string & import("effect/Brand").Brand<"ToolId">)[];
|
|
76
|
+
readonly mcpServers?: readonly {
|
|
77
|
+
readonly url: string;
|
|
78
|
+
readonly protocol: "sse" | "http";
|
|
79
|
+
}[] | undefined;
|
|
71
80
|
}>[];
|
|
72
81
|
}> | undefined;
|
|
73
|
-
readonly model?: "@anthropic/claude-3-5-haiku-latest" | "@anthropic/claude-3-5-haiku-20241022" | "@anthropic/claude-3-5-sonnet-20241022" | "@anthropic/claude-opus-4-0" | "@anthropic/claude-haiku-4-5" | "@anthropic/claude-sonnet-4-0" | "@anthropic/claude-sonnet-4-5" | "@cf/deepseek-ai/deepseek-r1-distill-qwen-32b" | "@hf/nousresearch/hermes-2-pro-mistral-7b" | "@ollama/llama-3-1-nemotron-70b-instruct" | "@ollama/llama-3-1-nemotron-mini-4b-instruct" | "@ollama/llama-3-2-3b" | "@google/gemma-3-27b" | "@meta/llama-3.1-8b-instruct" | "@meta/llama-3.2-3b-instruct" | "ministral-3-14b-reasoning" | "openai/gpt-oss-20b" | "qwen2.5:14b" | "llama3.2:1b" | "llama3:70b" | "deepseek-r1:latest" | "@openai/gpt-4o" | "@openai/gpt-4o-mini" | "@openai/o1" | "@openai/o3" | "@openai/o3-mini" | undefined;
|
|
74
82
|
}, any, import("@dxos/functions").FunctionServices>;
|
|
75
83
|
export default _default;
|
|
76
84
|
//# sourceMappingURL=prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/prompt.ts"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../../../src/functions/agent/prompt.ts"],"names":[],"mappings":";;;;;;;;;2BAiB+C,CAAC;iCAEtB,CAAC;;6BAGF,CAAC;gCAGnB,CAAC;;;;;;gCAYe,CAAC;;;;;;;+BAOG,CAAC;qCASxB,CAPF;;iCACmC,CAAC;oCAOhC,CAAC;;;;+BAIc,CAAC;;;;;;;;;;;;;;;;2BAzCyB,CAAC;iCAEtB,CAAC;;6BAGF,CAAC;gCAGnB,CAAC;;;;;;gCAYe,CAAC;;;;;;;+BAOG,CAAC;qCASxB,CAPF;;iCACmC,CAAC;oCAOhC,CAAC;;;;+BAIc,CAAC;;;;;;;AAvCtB,wBAwFG"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Obj } from '@dxos/echo';
|
|
1
2
|
declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
2
3
|
readonly instructions?: string | undefined;
|
|
3
4
|
readonly source: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
@@ -95,7 +96,7 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
95
96
|
} | {
|
|
96
97
|
readonly pending?: boolean | undefined;
|
|
97
98
|
readonly mimeType?: string | undefined;
|
|
98
|
-
readonly _tag: "
|
|
99
|
+
readonly _tag: "stats";
|
|
99
100
|
readonly message?: string | undefined;
|
|
100
101
|
readonly model?: string | undefined;
|
|
101
102
|
readonly usage?: {
|
|
@@ -127,7 +128,7 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
127
128
|
} | {
|
|
128
129
|
readonly pending?: boolean | undefined;
|
|
129
130
|
readonly _tag: "reference";
|
|
130
|
-
readonly reference: import("@dxos/echo/internal").Ref<
|
|
131
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
131
132
|
} | {
|
|
132
133
|
readonly pending?: boolean | undefined;
|
|
133
134
|
readonly text: string;
|
|
@@ -154,6 +155,10 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
154
155
|
readonly pending?: boolean | undefined;
|
|
155
156
|
readonly text: string;
|
|
156
157
|
readonly _tag: "proposal";
|
|
158
|
+
} | {
|
|
159
|
+
readonly pending?: boolean | undefined;
|
|
160
|
+
readonly _tag: "summary";
|
|
161
|
+
readonly content: string;
|
|
157
162
|
} | {
|
|
158
163
|
readonly pending?: boolean | undefined;
|
|
159
164
|
readonly _tag: "toolkit";
|
|
@@ -168,7 +173,7 @@ declare const _default: import("@dxos/functions").FunctionDefinition<{
|
|
|
168
173
|
} | undefined;
|
|
169
174
|
};
|
|
170
175
|
}, {
|
|
171
|
-
readonly entities?: readonly
|
|
176
|
+
readonly entities?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown)[] | undefined;
|
|
172
177
|
}, import("@dxos/functions").FunctionServices>;
|
|
173
178
|
export default _default;
|
|
174
179
|
//# sourceMappingURL=entity-extraction.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/entity-extraction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"entity-extraction.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/entity-extraction.ts"],"names":[],"mappings":"AAYA,OAAO,EAAoB,GAAG,EAAO,MAAM,YAAY,CAAC;;;;;;;;yBAA7B,CAAC;yBACd,CAAC;4BACmB,CAAC;8BAGR,CAAC;iCAAmD,CAAC;sCAGzE,CAAC;iCACC,CAAC;qCAAuD,CAAC;wCAK1B,CAAC;iCACd,CAAC;mCAEpB,CAAC;kCAG0B,CAAC;oCACxB,CAAC;;qCACU,CAAC;;iCAKX,CAAC;mCACO,CAAC;8BAInB,CAAC;+BACmB,CAAC;;kCACqB,CAAC;;mCAEhC,CAAC;;kCAEiB,CAAC;;qCAEG,CAAC;;kCAG7B,CAAN;;+BACQ,CAAT;;;qCAGS,CAAH;;kCAAiF,CAAC;;uCAK7E,CAAZ;yCAA2D,CAAC;yCACpC,CAAC;uCACb,CAAV;2CAA6D,CAAC;oDAEvC,CAAC;wCAElB,CAAN;;kCAGwB,CAAC;;6BAEjB,CAAV;;kCAAmF,CAAC;;iCAEvD,CAAC;;iCAER,CAAC;;gCAGkB,CAAC;gCAKpC,CAAA;0BAC6B,CAAC;;;4BAIzB,CAAC;;6BACyD,CAAC;gCAEhE,CAAH;;;4BAEkD,CAAC;;kCACkB,CAAC;iCAItE,CAAC;8BAGsC,CAAC;;;4BACvB,CAAC;;;;;;;4BASd,CAAC;;;;2BAEK,CAAC;0BAA4C,CAAC;;4BACL,CAAC;6BAGhC,CAAC;;4BAEf,CAAC;0BAGW,CAAC;0BACH,CAAC;oCAAoC,CAAC;qCAGzC,CAAC;oCAGI,CAAC;;8BAKF,CAAA;2BACb,CAAC;6BACyB,CAAC;;2BACjB,CAAC;;;;;;;;uBAOD,CAAC;4BAGR,CAAP;;;yBACS,CAAJ;4BACoB,CAAC;;8BAEuC,CAAC;;;4BAGhD,CAAC;;;;4BAShB,CAAA;;;;;4BAOuB,CAAC;;;;4BAOO,CAAC;;;;4BAA6H,CAAC;;;;;4BAAiK,CAAC;;;;4BAA6H,CAAC;;;;4BAA2H,CAAC;;;;4BAA6H,CAAC;;;4BAA2F,CAAC;gCAAmD,CAAC;;;;;;;;;;;AA9J90B,wBAgFG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare
|
|
2
|
-
|
|
1
|
+
export declare const EntityExtractionFunctions: {
|
|
2
|
+
Extract: import("@dxos/functions").FunctionDefinition<{
|
|
3
3
|
readonly instructions?: string | undefined;
|
|
4
4
|
readonly source: import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
5
5
|
readonly id: string;
|
|
@@ -96,7 +96,7 @@ export declare namespace EntityExtraction {
|
|
|
96
96
|
} | {
|
|
97
97
|
readonly pending?: boolean | undefined;
|
|
98
98
|
readonly mimeType?: string | undefined;
|
|
99
|
-
readonly _tag: "
|
|
99
|
+
readonly _tag: "stats";
|
|
100
100
|
readonly message?: string | undefined;
|
|
101
101
|
readonly model?: string | undefined;
|
|
102
102
|
readonly usage?: {
|
|
@@ -128,7 +128,7 @@ export declare namespace EntityExtraction {
|
|
|
128
128
|
} | {
|
|
129
129
|
readonly pending?: boolean | undefined;
|
|
130
130
|
readonly _tag: "reference";
|
|
131
|
-
readonly reference: import("@dxos/echo/internal").Ref<
|
|
131
|
+
readonly reference: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
132
132
|
} | {
|
|
133
133
|
readonly pending?: boolean | undefined;
|
|
134
134
|
readonly text: string;
|
|
@@ -155,6 +155,10 @@ export declare namespace EntityExtraction {
|
|
|
155
155
|
readonly pending?: boolean | undefined;
|
|
156
156
|
readonly text: string;
|
|
157
157
|
readonly _tag: "proposal";
|
|
158
|
+
} | {
|
|
159
|
+
readonly pending?: boolean | undefined;
|
|
160
|
+
readonly _tag: "summary";
|
|
161
|
+
readonly content: string;
|
|
158
162
|
} | {
|
|
159
163
|
readonly pending?: boolean | undefined;
|
|
160
164
|
readonly _tag: "toolkit";
|
|
@@ -169,7 +173,7 @@ export declare namespace EntityExtraction {
|
|
|
169
173
|
} | undefined;
|
|
170
174
|
};
|
|
171
175
|
}, {
|
|
172
|
-
readonly entities?: readonly
|
|
176
|
+
readonly entities?: readonly (import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown)[] | undefined;
|
|
173
177
|
}, import("@dxos/functions").FunctionServices>;
|
|
174
|
-
}
|
|
178
|
+
};
|
|
175
179
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/index.ts"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/entity-extraction/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB;;;;;;;;6BAG8M,CAAC;6BAA2C,CAAC;gCAAqE,CAAC;kCAAsJ,CAAC;qCAAmD,CAAC;0CAAwD,CAAC;qCAAmD,CAAC;yCAAuD,CAAC;4CAAgK,CAAC;qCAAmD,CAAC;uCAAqD,CAAC;sCAAuG,CAAC;wCAAsD,CAAC;;yCAAyE,CAAC;;qCAAyH,CAAC;uCAAqD,CAAC;kCAAgD,CAAC;mCAAiD,CAAC;;sCAAmF,CAAC;;uCAAkF,CAAC;;sCAAmF,CAAC;;yCAAoF,CAAC;;sCAAmF,CAAC;;mCAA8E,CAAC;;;yCAA8H,CAAC;;sCAAiF,CAAC;;2CAAkF,CAAC;6CAA2D,CAAC;6CAA2D,CAAC;2CAAyD,CAAC;+CAA6D,CAAC;wDAAsE,CAAC;4CAA0D,CAAC;;sCAAuE,CAAC;;iCAA4E,CAAC;;sCAAmF,CAAC;;qCAAgF,CAAC;;qCAAiE,CAAC;;oCAAoH,CAAC;oCAAkD,CAAC;8BAA4C,CAAC;;;gCAAsF,CAAC;;iCAA+E,CAAC;oCAAkD,CAAC;;;gCAAuF,CAAC;;sCAAyF,CAAC;qCAAmD,CAAC;kCAAgD,CAAC;;;gCAAuF,CAAC;;;;;;;gCAA4O,CAAC;;;;+BAAoK,CAAC;8BAA4C,CAAC;;gCAAwD,CAAC;iCAAgD,CAAC;;gCAA8E,CAAC;8BAA4C,CAAC;8BAA4C,CAAC;wCAAoC,CAAC;yCAAuD,CAAC;wCAAsD,CAAC;;kCAAuE,CAAC;+BAA6C,CAAC;iCAA+C,CAAC;;+BAAuD,CAAC;;;;;;;;2BAAiP,CAAC;gCAA8C,CAAC;;;6BAAsF,CAAC;gCAA8C,CAAC;;kCAAgF,CAAC;;;gCAAsF,CAAC;;;;gCAA+P,CAAC;;;;;gCAA+J,CAAC;;;;gCAA+H,CAAC;;;;gCAA6H,CAAC;;;;;gCAAiK,CAAC;;;;gCAA6H,CAAC;;;;gCAA2H,CAAC;;;;gCAA6H,CAAC;;;gCAA2F,CAAC;oCAAmD,CAAC;;;;;;;;;;;CAD3tN,CAAC"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
1
|
+
export declare const ExaFunctions: {
|
|
2
|
+
Search: import("@dxos/functions").FunctionDefinition<{
|
|
3
|
+
readonly query: string;
|
|
4
|
+
}, unknown, import("@dxos/functions").FunctionServices>;
|
|
5
|
+
Mock: import("@dxos/functions").FunctionDefinition<{
|
|
6
|
+
readonly query: string;
|
|
7
|
+
}, unknown, import("@dxos/functions").FunctionServices>;
|
|
8
|
+
};
|
|
3
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/exa/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/functions/exa/index.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,YAAY;;;;;;;CAGxB,CAAC"}
|
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
export * from './agent';
|
|
2
|
-
export * from './discord';
|
|
3
|
-
export * from './document';
|
|
4
2
|
export * from './entity-extraction';
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './research';
|
|
7
|
-
export * from './tasks';
|
|
3
|
+
export * from './exa';
|
|
8
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/functions/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,OAAO,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/testing/plugins.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,
|
|
1
|
+
{"version":3,"file":"plugins.d.ts","sourceRoot":"","sources":["../../../../src/testing/plugins.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,OAAO,EAAgB,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE/D,OAAO,EAAU,KAAK,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIpD,eAAO,MAAM,SAAS;;wBAOrB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,SAAS,CAAC,CAAC;AAG7D,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,GAAG,CAAC,OAAO,EAAE,CAAC;IAClC,WAAW,EAAE,CAAC,QAAQ,EAAE,GAAG,CAAC,OAAO,KAAK,IAAI,CAAC;CAC9C,CAAC;AAEF,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,CAAC,EAAE,gBAAgB,CAAC;KAC9B;CACF;AAKD,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,GAAG,EA+BxC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as Tool from '@effect/ai/Tool';
|
|
2
|
+
import * as Toolkit from '@effect/ai/Toolkit';
|
|
3
|
+
import * as Schema from 'effect/Schema';
|
|
4
|
+
export declare const WebToolkit: Toolkit.Toolkit<{
|
|
5
|
+
readonly AnthropicWebSearch: Tool.ProviderDefined<"AnthropicWebSearch", {
|
|
6
|
+
readonly args: Schema.Struct<{
|
|
7
|
+
readonly cache_control: Schema.optionalWith<typeof import("@effect/ai-anthropic/Generated").CacheControlEphemeral, {
|
|
8
|
+
nullable: true;
|
|
9
|
+
}>;
|
|
10
|
+
readonly allowed_domains: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
11
|
+
nullable: true;
|
|
12
|
+
}>;
|
|
13
|
+
readonly blocked_domains: Schema.optionalWith<Schema.Array$<typeof Schema.String>, {
|
|
14
|
+
nullable: true;
|
|
15
|
+
}>;
|
|
16
|
+
readonly max_uses: Schema.optionalWith<Schema.filter<typeof Schema.Int>, {
|
|
17
|
+
nullable: true;
|
|
18
|
+
}>;
|
|
19
|
+
readonly user_location: Schema.optionalWith<typeof import("@effect/ai-anthropic/Generated").UserLocation, {
|
|
20
|
+
nullable: true;
|
|
21
|
+
}>;
|
|
22
|
+
}>;
|
|
23
|
+
readonly parameters: Schema.Struct<{}>;
|
|
24
|
+
readonly success: Schema.Array$<typeof import("@effect/ai-anthropic/Generated").RequestWebSearchResultBlock>;
|
|
25
|
+
readonly failure: typeof import("@effect/ai-anthropic/Generated").ResponseWebSearchToolResultError;
|
|
26
|
+
readonly failureMode: "error";
|
|
27
|
+
}, false>;
|
|
28
|
+
readonly WebFetch: Tool.Tool<"WebFetch", {
|
|
29
|
+
readonly parameters: Schema.Struct<{
|
|
30
|
+
url: typeof Schema.String;
|
|
31
|
+
}>;
|
|
32
|
+
readonly success: typeof Schema.String;
|
|
33
|
+
readonly failure: typeof Schema.Never;
|
|
34
|
+
readonly failureMode: "error";
|
|
35
|
+
}, never>;
|
|
36
|
+
}>;
|
|
37
|
+
export declare const layer: import("effect/Layer").Layer<Tool.Handler<"WebFetch">, never, never>;
|
|
38
|
+
//# sourceMappingURL=WebToolkit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WebToolkit.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/WebToolkit.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,iBAAiB,CAAC;AACxC,OAAO,KAAK,OAAO,MAAM,oBAAoB,CAAC;AAG9C,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAGxC,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActB,CAAC;AAEF,eAAO,MAAM,KAAK,sEAKhB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/toolkits/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, Type } from '@dxos/echo';
|
|
3
|
+
import { Queue } from '@dxos/echo-db';
|
|
4
|
+
/**
|
|
5
|
+
* AI chat.
|
|
6
|
+
*/
|
|
7
|
+
export declare const Chat: Type.Obj<{
|
|
8
|
+
readonly name?: string | undefined;
|
|
9
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
10
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
11
|
+
}, Schema.Struct.Fields>;
|
|
12
|
+
export interface Chat extends Schema.Schema.Type<typeof Chat> {
|
|
13
|
+
}
|
|
14
|
+
export declare const make: (props: Obj.MakeProps<typeof Chat>) => Obj.OfShape<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
15
|
+
readonly name?: string | undefined;
|
|
16
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
17
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
18
|
+
}>;
|
|
19
|
+
/**
|
|
20
|
+
* Relation between a Chat and companion objects (e.g., artifacts).
|
|
21
|
+
*/
|
|
22
|
+
export declare const CompanionTo: Type.Relation<{
|
|
23
|
+
readonly id: string;
|
|
24
|
+
}, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
25
|
+
readonly name?: string | undefined;
|
|
26
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
27
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
28
|
+
}, import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown, Schema.Struct.Fields>;
|
|
29
|
+
export interface CompanionTo extends Schema.Schema.Type<typeof CompanionTo> {
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=Chat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Chat.d.ts","sourceRoot":"","sources":["../../../../src/types/Chat.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAc,GAAG,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAExD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;;GAEG;AACH,eAAO,MAAM,IAAI;;;;wBAehB,CAAC;AAEF,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE,eAAO,MAAM,IAAI,GAAI,OAAO,GAAG,CAAC,SAAS,CAAC,OAAO,IAAI,CAAC;;;;EAA0B,CAAC;AAEjF;;GAEG;AACH,eAAO,MAAM,WAAW;;;;;;2HASvB,CAAC;AAEF,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC;CAAG"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as Schema from 'effect/Schema';
|
|
2
|
+
import { Obj, Ref, Type } from '@dxos/echo';
|
|
3
|
+
export declare const TaskId: Schema.brand<typeof Schema.String, "@dxos/assistant-toolkit/TaskId">;
|
|
4
|
+
export type TaskId = Schema.Schema.Type<typeof TaskId>;
|
|
5
|
+
export declare const Task: Schema.Struct<{
|
|
6
|
+
/**
|
|
7
|
+
* Short task ID unique within the plan.
|
|
8
|
+
*/
|
|
9
|
+
id: Schema.brand<typeof Schema.String, "@dxos/assistant-toolkit/TaskId">;
|
|
10
|
+
title: Schema.SchemaClass<string, string, never>;
|
|
11
|
+
status: Schema.Literal<["todo", "in-progress", "done"]>;
|
|
12
|
+
/**
|
|
13
|
+
* Parent task ID.
|
|
14
|
+
*/
|
|
15
|
+
parent: Schema.optional<Schema.brand<typeof Schema.String, "@dxos/assistant-toolkit/TaskId">>;
|
|
16
|
+
/**
|
|
17
|
+
* Chat object that this task is associated with.
|
|
18
|
+
*/
|
|
19
|
+
chat: Schema.optional<Ref.RefSchema<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
20
|
+
readonly name?: string | undefined;
|
|
21
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
22
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
}>;
|
|
25
|
+
export interface Task extends Schema.Schema.Type<typeof Task> {
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Hierarchical collection of tasks for humans and agents to track progress.
|
|
29
|
+
*/
|
|
30
|
+
export declare const Plan: Type.Obj<{
|
|
31
|
+
readonly tasks: readonly {
|
|
32
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
33
|
+
readonly status: "done" | "todo" | "in-progress";
|
|
34
|
+
readonly title: string;
|
|
35
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
36
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
37
|
+
readonly name?: string | undefined;
|
|
38
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
39
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
40
|
+
}> | undefined;
|
|
41
|
+
}[];
|
|
42
|
+
}, Schema.Struct.Fields>;
|
|
43
|
+
export interface Plan extends Schema.Schema.Type<typeof Plan> {
|
|
44
|
+
}
|
|
45
|
+
export declare const generateTaskId: (plan: Plan) => TaskId;
|
|
46
|
+
/**
|
|
47
|
+
* Add new tasks to a plan, generating IDs for new tasks.
|
|
48
|
+
* Use inside an `Obj.change` callback.
|
|
49
|
+
*/
|
|
50
|
+
export declare const addTasks: (plan: Obj.Mutable<Plan>, tasks: (Pick<Task, "title"> & Partial<Pick<Task, "status" | "parent" | "chat">>)[]) => {
|
|
51
|
+
id: import("@dxos/keys").ObjectId;
|
|
52
|
+
"~@dxos/echo/Kind": import("@dxos/echo/internal").EntityKind.Object;
|
|
53
|
+
tasks: {
|
|
54
|
+
id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
55
|
+
status: "done" | "todo" | "in-progress";
|
|
56
|
+
title: string;
|
|
57
|
+
parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
58
|
+
chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
59
|
+
readonly name?: string | undefined;
|
|
60
|
+
readonly queue: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
61
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<import("@dxos/echo-db").Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
62
|
+
}> | undefined;
|
|
63
|
+
}[];
|
|
64
|
+
};
|
|
65
|
+
interface MakePlanProps {
|
|
66
|
+
tasks: {
|
|
67
|
+
title: string;
|
|
68
|
+
status?: 'todo' | 'in-progress' | 'done';
|
|
69
|
+
}[];
|
|
70
|
+
}
|
|
71
|
+
export declare const makePlan: (props: MakePlanProps) => Plan;
|
|
72
|
+
/**
|
|
73
|
+
* Formats plan to markdown format.
|
|
74
|
+
*/
|
|
75
|
+
export declare const formatPlan: (plan: Plan) => string;
|
|
76
|
+
export {};
|
|
77
|
+
//# sourceMappingURL=Plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Plan.d.ts","sourceRoot":"","sources":["../../../../src/types/Plan.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAI5C,eAAO,MAAM,MAAM,sEAAqE,CAAC;AACzF,MAAM,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,MAAM,CAAC,CAAC;AAEvD,eAAO,MAAM,IAAI;IACf;;OAEG;;;;IASH;;OAEG;;IAKH;;OAEG;;;;;;EAEH,CAAC;AACH,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE;;GAEG;AACH,eAAO,MAAM,IAAI;;;;;;;;;;;;wBAOhB,CAAC;AACF,MAAM,WAAW,IAAK,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,IAAI,CAAC;CAAG;AAEhE,eAAO,MAAM,cAAc,GAAI,MAAM,IAAI,KAAG,MAe3C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,QAAQ,GACnB,MAAM,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,EACvB,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE;;;;;;;;;;;;;;CAOnF,CAAC;AAEF,UAAU,aAAa;IACrB,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,MAAM,CAAC;KAC1C,EAAE,CAAC;CACL;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,aAAa,KAAG,IAM/C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,KAAG,MAIvC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import * as Effect from 'effect/Effect';
|
|
2
|
+
import * as Schema from 'effect/Schema';
|
|
3
|
+
import { AiContextService } from '@dxos/assistant';
|
|
4
|
+
import { type Blueprint } from '@dxos/blueprints';
|
|
5
|
+
import { Type } from '@dxos/echo';
|
|
6
|
+
import { Database, Obj, Ref } from '@dxos/echo';
|
|
7
|
+
import { type ObjectNotFoundError } from '@dxos/echo/Err';
|
|
8
|
+
import { Queue } from '@dxos/echo-db';
|
|
9
|
+
import { QueueService } from '@dxos/functions';
|
|
10
|
+
/**
|
|
11
|
+
* Project schema definition.
|
|
12
|
+
*/
|
|
13
|
+
export declare const Project: Type.Obj<{
|
|
14
|
+
readonly name: string;
|
|
15
|
+
readonly queue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
16
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
17
|
+
readonly name?: string | undefined;
|
|
18
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
19
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
20
|
+
}> | undefined;
|
|
21
|
+
readonly spec: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
22
|
+
readonly content: string;
|
|
23
|
+
}>;
|
|
24
|
+
readonly plan: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
25
|
+
readonly tasks: readonly {
|
|
26
|
+
readonly id: string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">;
|
|
27
|
+
readonly status: "done" | "todo" | "in-progress";
|
|
28
|
+
readonly title: string;
|
|
29
|
+
readonly parent?: (string & import("effect/Brand").Brand<"@dxos/assistant-toolkit/TaskId">) | undefined;
|
|
30
|
+
readonly chat?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & {
|
|
31
|
+
readonly name?: string | undefined;
|
|
32
|
+
readonly queue: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>>;
|
|
33
|
+
readonly traceQueue?: import("@dxos/echo/internal").Ref<Queue<import("@dxos/echo/Entity").Unknown>> | undefined;
|
|
34
|
+
}> | undefined;
|
|
35
|
+
}[];
|
|
36
|
+
}>;
|
|
37
|
+
readonly artifacts: readonly {
|
|
38
|
+
readonly name: string;
|
|
39
|
+
readonly data: import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
40
|
+
}[];
|
|
41
|
+
readonly subscriptions: readonly import("@dxos/echo/internal").Ref<import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>[];
|
|
42
|
+
readonly useQualifyingAgent?: boolean | undefined;
|
|
43
|
+
}, Schema.Struct.Fields>;
|
|
44
|
+
export interface Project extends Schema.Schema.Type<typeof Project> {
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Creates a fully initialized Project with chat, queue, and context bindings.
|
|
48
|
+
*
|
|
49
|
+
* @param props - Project properties including spec, plan, blueprints, and context objects.
|
|
50
|
+
* @param blueprint - The blueprint to use for the project context.
|
|
51
|
+
* @returns An Effect that yields the initialized Project.
|
|
52
|
+
*/
|
|
53
|
+
export declare const makeInitialized: (props: Omit<Obj.MakeProps<typeof Project>, "spec" | "plan" | "artifacts" | "subscriptions" | "chat"> & Partial<Pick<Obj.MakeProps<typeof Project>, "artifacts" | "subscriptions">> & {
|
|
54
|
+
spec: string;
|
|
55
|
+
blueprints?: Ref.Ref<Blueprint.Blueprint>[];
|
|
56
|
+
contextObjects?: Ref.Ref<Obj.Any>[];
|
|
57
|
+
}, blueprint: Blueprint.Blueprint) => Effect.Effect<Project, never, QueueService | Database.Service>;
|
|
58
|
+
/**
|
|
59
|
+
* Resets the project chat history by rebuilding the chat context.
|
|
60
|
+
* Preserves the existing blueprints and objects from the current chat context.
|
|
61
|
+
*
|
|
62
|
+
* @param project - The project whose chat history should be reset. Must have an existing chat.
|
|
63
|
+
* @returns An Effect that resets the chat history.
|
|
64
|
+
*/
|
|
65
|
+
export declare const resetChatHistory: (project: Project) => Effect.Effect<void, ObjectNotFoundError, QueueService | Database.Service>;
|
|
66
|
+
export declare const getFromChatContext: Effect.Effect<Project, never, AiContextService>;
|
|
67
|
+
//# sourceMappingURL=Project.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Project.d.ts","sourceRoot":"","sources":["../../../../src/types/Project.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAExC,OAAO,EAAmB,gBAAgB,EAAuB,MAAM,iBAAiB,CAAC;AACzF,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAc,IAAI,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAY,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAQ/C;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA6CnB,CAAC;AAEF,MAAM,WAAW,OAAQ,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,OAAO,CAAC;CAAG;AAEtE;;;;;;GAMG;AAEH,eAAO,MAAM,eAAe,GAC1B,OAAO,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,WAAW,GAAG,eAAe,GAAG,MAAM,CAAC,GAClG,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,OAAO,OAAO,CAAC,EAAE,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG;IAC5E,IAAI,EAAE,MAAM,CAAC;IACb,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,EACH,WAAW,SAAS,CAAC,SAAS,KAC7B,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CA0C5D,CAAC;AAEL;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAC3B,SAAS,OAAO,KACf,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,YAAY,GAAG,QAAQ,CAAC,OAAO,CAyCnD,CAAC;AAEzB,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,EAAE,gBAAgB,CAO7E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/types/index.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAC/B,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC"}
|