@dxos/plugin-assistant 0.8.2-main.f11618f → 0.8.2-staging.42af850
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/AssistantDialog-K6POM23O.mjs +46 -0
- package/dist/lib/browser/AssistantDialog-K6POM23O.mjs.map +7 -0
- package/dist/lib/browser/ChatContainer-QTO4LE2C.mjs +39 -0
- package/dist/lib/{node-esm/ChatContainer-XPNXNPSW.mjs.map → browser/ChatContainer-QTO4LE2C.mjs.map} +1 -1
- package/dist/lib/browser/TemplateContainer-AKUYL4AV.mjs +28 -0
- package/dist/lib/{node-esm/TemplateContainer-3LEBT5ZC.mjs.map → browser/TemplateContainer-AKUYL4AV.mjs.map} +1 -1
- package/dist/lib/browser/{ai-client-OK5SMYJC.mjs → ai-client-COXVUC6V.mjs} +6 -6
- package/dist/lib/browser/ai-client-COXVUC6V.mjs.map +7 -0
- package/dist/lib/browser/app-graph-builder-YH4EGNBC.mjs +206 -0
- package/dist/lib/browser/app-graph-builder-YH4EGNBC.mjs.map +7 -0
- package/dist/lib/browser/{chunk-TXJWGWJ7.mjs → chunk-3F44MBHU.mjs} +3 -3
- package/dist/lib/browser/chunk-3F44MBHU.mjs.map +7 -0
- package/dist/lib/browser/chunk-IHEBFO5O.mjs +205 -0
- package/dist/lib/browser/chunk-IHEBFO5O.mjs.map +7 -0
- package/dist/lib/browser/chunk-JQFUME3B.mjs +87 -0
- package/dist/lib/{node-esm/chunk-PBZA7XJR.mjs.map → browser/chunk-JQFUME3B.mjs.map} +1 -1
- package/dist/lib/browser/chunk-Q6UZ4F3H.mjs +96 -0
- package/dist/lib/browser/chunk-Q6UZ4F3H.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7CAHKTZQ.mjs → chunk-QTW7KVDO.mjs} +1665 -1547
- package/dist/lib/browser/chunk-QTW7KVDO.mjs.map +7 -0
- package/dist/lib/browser/chunk-USJBRB3H.mjs +155 -0
- package/dist/lib/browser/chunk-USJBRB3H.mjs.map +7 -0
- package/dist/lib/browser/{chunk-3HCI5FIL.mjs → chunk-XOZ7YMO3.mjs} +3 -3
- package/dist/lib/browser/{chunk-3HCI5FIL.mjs.map → chunk-XOZ7YMO3.mjs.map} +1 -1
- package/dist/lib/browser/index.mjs +24 -10
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-W6XREK5F.mjs → intent-resolver-63EAHENI.mjs} +7 -11
- package/dist/lib/browser/intent-resolver-63EAHENI.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-XCV6NR75.mjs +131 -0
- package/dist/lib/browser/react-surface-XCV6NR75.mjs.map +7 -0
- package/dist/lib/browser/{settings-LAJZQI4H.mjs → settings-SHNQ4XXP.mjs} +3 -3
- package/dist/lib/browser/types/index.mjs +4 -2
- package/dist/lib/node/AssistantDialog-FDATKYE5.cjs +72 -0
- package/dist/lib/node/AssistantDialog-FDATKYE5.cjs.map +7 -0
- package/dist/lib/node/{ChatContainer-U6AVMAHY.cjs → ChatContainer-5CLHJOIQ.cjs} +25 -19
- package/dist/lib/node/{ChatContainer-U6AVMAHY.cjs.map → ChatContainer-5CLHJOIQ.cjs.map} +1 -1
- package/dist/lib/node/{TemplateContainer-EQXKHWTF.cjs → TemplateContainer-CTG2MB4W.cjs} +18 -12
- package/dist/lib/node/{TemplateContainer-EQXKHWTF.cjs.map → TemplateContainer-CTG2MB4W.cjs.map} +1 -1
- package/dist/lib/node/{ai-client-3EVTLXTT.cjs → ai-client-R2CGEYZW.cjs} +13 -13
- package/dist/lib/node/ai-client-R2CGEYZW.cjs.map +7 -0
- package/dist/lib/node/app-graph-builder-PSHIOW3Q.cjs +216 -0
- package/dist/lib/node/app-graph-builder-PSHIOW3Q.cjs.map +7 -0
- package/dist/lib/node/{chunk-XI2ARIEO.cjs → chunk-4EEWTDQK.cjs} +45 -39
- package/dist/lib/node/{chunk-XI2ARIEO.cjs.map → chunk-4EEWTDQK.cjs.map} +1 -1
- package/dist/lib/node/chunk-FLJWJ35M.cjs +181 -0
- package/dist/lib/node/chunk-FLJWJ35M.cjs.map +7 -0
- package/dist/lib/node/{chunk-CWHFK36A.cjs → chunk-H4A42LNR.cjs} +1154 -1030
- package/dist/lib/node/chunk-H4A42LNR.cjs.map +7 -0
- package/dist/lib/node/chunk-HRNIUYVQ.cjs +128 -0
- package/dist/lib/node/chunk-HRNIUYVQ.cjs.map +7 -0
- package/dist/lib/node/{chunk-Q5XWEMHB.cjs → chunk-P74TWGMG.cjs} +6 -6
- package/dist/lib/node/{chunk-Q5XWEMHB.cjs.map → chunk-P74TWGMG.cjs.map} +1 -1
- package/dist/lib/node/chunk-RXPA2C2A.cjs +230 -0
- package/dist/lib/node/chunk-RXPA2C2A.cjs.map +7 -0
- package/dist/lib/node/{chunk-GBUNQ257.cjs → chunk-TS3H5OSX.cjs} +7 -7
- package/dist/lib/node/chunk-TS3H5OSX.cjs.map +7 -0
- package/dist/lib/node/index.cjs +72 -59
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-MUJMV7II.cjs → intent-resolver-66F7WLW6.cjs} +13 -17
- package/dist/lib/node/intent-resolver-66F7WLW6.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react-surface-TASAPRPQ.cjs +145 -0
- package/dist/lib/node/react-surface-TASAPRPQ.cjs.map +7 -0
- package/dist/lib/node/{settings-NPXTE6ND.cjs → settings-ERKLO6IO.cjs} +8 -8
- package/dist/lib/node/types/index.cjs +16 -14
- package/dist/lib/node/types/index.cjs.map +2 -2
- package/dist/lib/node-esm/AssistantDialog-PIMYK774.mjs +47 -0
- package/dist/lib/node-esm/AssistantDialog-PIMYK774.mjs.map +7 -0
- package/dist/lib/node-esm/ChatContainer-QTC5NYE2.mjs +40 -0
- package/dist/lib/{browser/ChatContainer-GAYN3FEF.mjs.map → node-esm/ChatContainer-QTC5NYE2.mjs.map} +1 -1
- package/dist/lib/node-esm/TemplateContainer-IVDQ4XQG.mjs +29 -0
- package/dist/lib/{browser/TemplateContainer-WKU5XFSO.mjs.map → node-esm/TemplateContainer-IVDQ4XQG.mjs.map} +1 -1
- package/dist/lib/node-esm/{ai-client-LYCBXZI7.mjs → ai-client-I5LXHMOZ.mjs} +6 -6
- package/dist/lib/node-esm/ai-client-I5LXHMOZ.mjs.map +7 -0
- package/dist/lib/node-esm/app-graph-builder-Z3GMMJMD.mjs +207 -0
- package/dist/lib/node-esm/app-graph-builder-Z3GMMJMD.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-ECRK6TUQ.mjs → chunk-BB2TAT4P.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-ECRK6TUQ.mjs.map → chunk-BB2TAT4P.mjs.map} +1 -1
- package/dist/lib/node-esm/chunk-CDAILLCU.mjs +98 -0
- package/dist/lib/node-esm/chunk-CDAILLCU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-6JK5HEUQ.mjs → chunk-HLPGKJ7N.mjs} +3 -3
- package/dist/lib/node-esm/chunk-HLPGKJ7N.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-PBZA7XJR.mjs → chunk-OYN6HLXZ.mjs} +42 -36
- package/dist/lib/{browser/chunk-NFUHCW2J.mjs.map → node-esm/chunk-OYN6HLXZ.mjs.map} +1 -1
- package/dist/lib/node-esm/chunk-QU626JMR.mjs +156 -0
- package/dist/lib/node-esm/chunk-QU626JMR.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-XFUXN5QU.mjs → chunk-SI5LOQEO.mjs} +1665 -1547
- package/dist/lib/node-esm/chunk-SI5LOQEO.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-ZKBACPIW.mjs +206 -0
- package/dist/lib/node-esm/chunk-ZKBACPIW.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +24 -10
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-DZY2O2DG.mjs → intent-resolver-X3PWH7KM.mjs} +7 -11
- package/dist/lib/node-esm/intent-resolver-X3PWH7KM.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-QMIQCXUM.mjs +132 -0
- package/dist/lib/node-esm/react-surface-QMIQCXUM.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-K3JDH2I5.mjs → settings-IVQRZUCU.mjs} +3 -3
- package/dist/lib/node-esm/types/index.mjs +4 -2
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-client.d.ts +3 -3
- package/dist/types/src/capabilities/ai-client.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts +2 -179
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +2 -178
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/AmbientDialog/AmbientDialog.d.ts +3 -1
- package/dist/types/src/components/AmbientDialog/AmbientDialog.d.ts.map +1 -1
- package/dist/types/src/components/AssistantSettings/AssistantSettings.d.ts.map +1 -1
- package/dist/types/src/components/BlueprintEditor/BlueprintEditor.d.ts +8 -0
- package/dist/types/src/components/BlueprintEditor/BlueprintEditor.d.ts.map +1 -0
- package/dist/types/src/components/BlueprintEditor/BlueprintEditor.stories.d.ts +8 -0
- package/dist/types/src/components/BlueprintEditor/BlueprintEditor.stories.d.ts.map +1 -0
- package/dist/types/src/components/BlueprintEditor/index.d.ts +2 -0
- package/dist/types/src/components/BlueprintEditor/index.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/Prompt.d.ts +5 -2
- package/dist/types/src/components/Prompt/Prompt.d.ts.map +1 -1
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts +6 -3
- package/dist/types/src/components/Prompt/Prompt.stories.d.ts.map +1 -1
- package/dist/types/src/components/Prompt/PromptBar.d.ts +9 -4
- package/dist/types/src/components/Prompt/PromptBar.d.ts.map +1 -1
- package/dist/types/src/components/Prompt/PromptBar.stories.d.ts +9 -0
- package/dist/types/src/components/Prompt/PromptBar.stories.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/autocomplete.d.ts +5 -1
- package/dist/types/src/components/Prompt/autocomplete.d.ts.map +1 -1
- package/dist/types/src/components/Prompt/references.d.ts.map +1 -1
- package/dist/types/src/components/PromptSettings.d.ts.map +1 -1
- package/dist/types/src/components/TemplateContainer.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts +2 -2
- package/dist/types/src/components/TemplateEditor/TemplateForm.d.ts.map +1 -1
- package/dist/types/src/components/Thread/Thread.d.ts +2 -2
- package/dist/types/src/components/Thread/Thread.d.ts.map +1 -1
- package/dist/types/src/components/Thread/Thread.stories.d.ts.map +1 -1
- package/dist/types/src/components/Thread/ThreadContainer.d.ts +1 -1
- package/dist/types/src/components/Thread/ThreadContainer.d.ts.map +1 -1
- package/dist/types/src/components/Thread/ThreadContainer.stories.d.ts +2 -2
- package/dist/types/src/components/Thread/ThreadContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/Thread/ThreadMessage.d.ts +4 -2
- package/dist/types/src/components/Thread/ThreadMessage.d.ts.map +1 -1
- package/dist/types/src/components/Thread/ToolInvocations.d.ts +1 -1
- package/dist/types/src/components/Thread/ToolInvocations.d.ts.map +1 -1
- package/dist/types/src/components/Thread/reducer.d.ts +1 -1
- package/dist/types/src/components/Thread/reducer.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.d.ts +3 -2
- package/dist/types/src/components/Toolbox/Toolbox.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +2 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/experimental/transcription/index.d.ts +1 -0
- package/dist/types/src/experimental/transcription/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +0 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/processor.d.ts +6 -5
- package/dist/types/src/hooks/processor.d.ts.map +1 -1
- package/dist/types/src/hooks/useChatProcessor.d.ts.map +1 -1
- package/dist/types/src/hooks/useContextProvider.d.ts +1 -1
- package/dist/types/src/hooks/useContextProvider.d.ts.map +1 -1
- package/dist/types/src/hooks/useMessageQueue.d.ts +11 -7
- package/dist/types/src/hooks/useMessageQueue.d.ts.map +1 -1
- package/dist/types/src/hooks/useServices.d.ts.map +1 -1
- package/dist/types/src/hooks/useTextInputEvents.d.ts.map +1 -1
- package/dist/types/src/parser/filter-generator.d.ts +4 -0
- package/dist/types/src/parser/filter-generator.d.ts.map +1 -0
- package/dist/types/src/parser/filter-generator.test.d.ts +2 -0
- package/dist/types/src/parser/filter-generator.test.d.ts.map +1 -0
- package/dist/types/src/parser/index.d.ts +4 -0
- package/dist/types/src/parser/index.d.ts.map +1 -0
- package/dist/types/src/parser/query-parser.d.ts +15 -0
- package/dist/types/src/parser/query-parser.d.ts.map +1 -0
- package/dist/types/src/parser/query-parser.test.d.ts +2 -0
- package/dist/types/src/parser/query-parser.test.d.ts.map +1 -0
- package/dist/types/src/parser/types.d.ts +24 -0
- package/dist/types/src/parser/types.d.ts.map +1 -0
- package/dist/types/src/stories/Prompt.stories.d.ts +8 -0
- package/dist/types/src/stories/Prompt.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Query.stories.d.ts +19 -0
- package/dist/types/src/stories/Query.stories.d.ts.map +1 -0
- package/dist/types/src/stories/Research.stories.d.ts +15 -0
- package/dist/types/src/stories/Research.stories.d.ts.map +1 -0
- package/dist/types/src/stories/test-data.d.ts +3 -0
- package/dist/types/src/stories/test-data.d.ts.map +1 -0
- package/dist/types/src/stories/testing.d.ts +12 -0
- package/dist/types/src/stories/testing.d.ts.map +1 -0
- package/dist/types/src/testing/blueprint.d.ts +7 -0
- package/dist/types/src/testing/blueprint.d.ts.map +1 -0
- 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/test-functions.d.ts +1 -1
- package/dist/types/src/testing/test-functions.d.ts.map +1 -1
- package/dist/types/src/tools/function.d.ts +4 -4
- package/dist/types/src/tools/function.d.ts.map +1 -1
- package/dist/types/src/tools/openapi.d.ts +3 -3
- package/dist/types/src/tools/openapi.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/chat.d.ts +18 -8
- package/dist/types/src/types/chat.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +96 -95
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/src/types/template.d.ts +52 -52
- package/dist/types/src/types/template.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +24 -21
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +79 -61
- package/src/AssistantPlugin.tsx +5 -4
- package/src/capabilities/ai-client.ts +5 -5
- package/src/capabilities/app-graph-builder.ts +179 -109
- package/src/capabilities/capabilities.ts +1 -1
- package/src/capabilities/intent-resolver.ts +4 -6
- package/src/capabilities/react-surface.tsx +58 -13
- package/src/components/AmbientDialog/AmbientDialog.stories.tsx +2 -2
- package/src/components/AmbientDialog/AmbientDialog.tsx +27 -13
- package/src/components/AssistantDialog.tsx +1 -1
- package/src/components/AssistantSettings/AssistantSettings.tsx +1 -1
- package/src/components/BlueprintEditor/BlueprintEditor.stories.tsx +32 -0
- package/src/components/BlueprintEditor/BlueprintEditor.tsx +41 -0
- package/src/components/BlueprintEditor/index.ts +5 -0
- package/src/components/Prompt/Prompt.stories.tsx +59 -52
- package/src/components/Prompt/Prompt.tsx +24 -10
- package/src/components/Prompt/PromptBar.stories.tsx +68 -0
- package/src/components/Prompt/PromptBar.tsx +82 -88
- package/src/components/Prompt/autocomplete.ts +14 -8
- package/src/components/Prompt/references.ts +3 -3
- package/src/components/PromptSettings.tsx +2 -2
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +2 -2
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +1 -1
- package/src/components/TemplateEditor/TemplateForm.tsx +2 -2
- package/src/components/Thread/Thread.stories.tsx +14 -17
- package/src/components/Thread/Thread.tsx +2 -2
- package/src/components/Thread/ThreadContainer.stories.tsx +79 -49
- package/src/components/Thread/ThreadContainer.tsx +8 -9
- package/src/components/Thread/ThreadMessage.tsx +44 -9
- package/src/components/Thread/ToolInvocations.tsx +9 -7
- package/src/components/Thread/reducer.ts +1 -1
- package/src/components/Toolbox/Toolbox.stories.tsx +3 -3
- package/src/components/Toolbox/Toolbox.tsx +5 -4
- package/src/components/index.ts +2 -0
- package/src/experimental/transcription/index.ts +3 -0
- package/src/hooks/index.ts +0 -1
- package/src/hooks/processor.ts +65 -27
- package/src/hooks/useChatProcessor.tsx +9 -9
- package/src/hooks/useContextProvider.ts +21 -17
- package/src/hooks/useMessageQueue.ts +5 -5
- package/src/meta.ts +2 -2
- package/src/parser/filter-generator.test.ts +32 -0
- package/src/parser/filter-generator.ts +81 -0
- package/src/parser/index.ts +7 -0
- package/src/parser/query-parser.test.ts +139 -0
- package/src/parser/query-parser.ts +199 -0
- package/src/parser/types.ts +34 -0
- package/src/shims.d.ts +8 -0
- package/src/stories/Prompt.stories.tsx +59 -0
- package/src/stories/Query.stories.tsx +448 -0
- package/src/stories/Research.stories.tsx +495 -0
- package/src/stories/test-data.ts +128 -0
- package/src/stories/testing.ts +64 -0
- package/src/testing/blueprint.ts +47 -0
- package/src/testing/index.ts +1 -0
- package/src/testing/test-functions.ts +1 -1
- package/src/tools/function.ts +11 -12
- package/src/tools/openapi.test.ts +18 -19
- package/src/tools/openapi.ts +24 -17
- package/src/translations.ts +4 -2
- package/src/types/chat.ts +27 -4
- package/src/types/service.ts +39 -37
- package/src/types/template.ts +27 -25
- package/src/types/types.ts +20 -18
- package/dist/lib/browser/AssistantDialog-I47GUXWR.mjs +0 -117
- package/dist/lib/browser/AssistantDialog-I47GUXWR.mjs.map +0 -7
- package/dist/lib/browser/ChatContainer-GAYN3FEF.mjs +0 -33
- package/dist/lib/browser/TemplateContainer-WKU5XFSO.mjs +0 -22
- package/dist/lib/browser/ai-client-OK5SMYJC.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-ZXKGE3H5.mjs +0 -179
- package/dist/lib/browser/app-graph-builder-ZXKGE3H5.mjs.map +0 -7
- package/dist/lib/browser/chunk-7CAHKTZQ.mjs.map +0 -7
- package/dist/lib/browser/chunk-BGMQ2YYP.mjs +0 -143
- package/dist/lib/browser/chunk-BGMQ2YYP.mjs.map +0 -7
- package/dist/lib/browser/chunk-E7BN4QKP.mjs +0 -190
- package/dist/lib/browser/chunk-E7BN4QKP.mjs.map +0 -7
- package/dist/lib/browser/chunk-NFUHCW2J.mjs +0 -81
- package/dist/lib/browser/chunk-TXJWGWJ7.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-W6XREK5F.mjs.map +0 -7
- package/dist/lib/browser/react-surface-QMI5KG4H.mjs +0 -90
- package/dist/lib/browser/react-surface-QMI5KG4H.mjs.map +0 -7
- package/dist/lib/node/AssistantDialog-SDS2TE5L.cjs +0 -141
- package/dist/lib/node/AssistantDialog-SDS2TE5L.cjs.map +0 -7
- package/dist/lib/node/ai-client-3EVTLXTT.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-TXHPXIIC.cjs +0 -190
- package/dist/lib/node/app-graph-builder-TXHPXIIC.cjs.map +0 -7
- package/dist/lib/node/chunk-5UELRDHQ.cjs +0 -214
- package/dist/lib/node/chunk-5UELRDHQ.cjs.map +0 -7
- package/dist/lib/node/chunk-CWHFK36A.cjs.map +0 -7
- package/dist/lib/node/chunk-GBUNQ257.cjs.map +0 -7
- package/dist/lib/node/chunk-XBJO453B.cjs +0 -169
- package/dist/lib/node/chunk-XBJO453B.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-MUJMV7II.cjs.map +0 -7
- package/dist/lib/node/react-surface-SAJF4XBB.cjs +0 -106
- package/dist/lib/node/react-surface-SAJF4XBB.cjs.map +0 -7
- package/dist/lib/node-esm/AssistantDialog-KGA5HBFO.mjs +0 -118
- package/dist/lib/node-esm/AssistantDialog-KGA5HBFO.mjs.map +0 -7
- package/dist/lib/node-esm/ChatContainer-XPNXNPSW.mjs +0 -34
- package/dist/lib/node-esm/TemplateContainer-3LEBT5ZC.mjs +0 -23
- package/dist/lib/node-esm/ai-client-LYCBXZI7.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-SV4WC2E2.mjs +0 -180
- package/dist/lib/node-esm/app-graph-builder-SV4WC2E2.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6JK5HEUQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ECYNZYEG.mjs +0 -191
- package/dist/lib/node-esm/chunk-ECYNZYEG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-R7Q3OHWG.mjs +0 -144
- package/dist/lib/node-esm/chunk-R7Q3OHWG.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-XFUXN5QU.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-DZY2O2DG.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-R43NHNMC.mjs +0 -91
- package/dist/lib/node-esm/react-surface-R43NHNMC.mjs.map +0 -7
- package/dist/types/src/hooks/invocation-handler.d.ts +0 -5
- package/dist/types/src/hooks/invocation-handler.d.ts.map +0 -1
- package/dist/types/src/hooks/useLocalTriggerManager.d.ts +0 -3
- package/dist/types/src/hooks/useLocalTriggerManager.d.ts.map +0 -1
- package/src/hooks/invocation-handler.ts +0 -107
- package/src/hooks/useLocalTriggerManager.ts +0 -82
- /package/dist/lib/browser/{settings-LAJZQI4H.mjs.map → settings-SHNQ4XXP.mjs.map} +0 -0
- /package/dist/lib/node/{settings-NPXTE6ND.cjs.map → settings-ERKLO6IO.cjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-K3JDH2I5.mjs.map → settings-IVQRZUCU.mjs.map} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type Schema } from 'effect';
|
|
3
|
+
import { type ConfigProto } from '@dxos/config';
|
|
4
|
+
import { type IndexConfig } from '@dxos/protocols/proto/dxos/echo/indexing';
|
|
5
|
+
type TestPluginsOptions = {
|
|
6
|
+
config?: ConfigProto;
|
|
7
|
+
types?: Schema.Schema.AnyNoContext[];
|
|
8
|
+
indexConfig?: IndexConfig;
|
|
9
|
+
};
|
|
10
|
+
export declare const testPlugins: ({ config, types, indexConfig }?: TestPluginsOptions) => import("@dxos/app-framework").Plugin[];
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../src/stories/testing.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIrC,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAQhD,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,0CAA0C,CAAC;AAI5E,KAAK,kBAAkB,GAAG;IACxB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,YAAY,EAAE,CAAC;IACrC,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,WAAW,GAAI,iCAA4C,kBAAuB,2CAmC9F,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ExecutableTool } from '@dxos/ai';
|
|
2
|
+
import { type BlueprintParser } from '@dxos/assistant';
|
|
3
|
+
import { type Space } from '@dxos/client/echo';
|
|
4
|
+
import { type DXN } from '@dxos/keys';
|
|
5
|
+
export declare const createTools: (space: Space, queueDxn?: DXN) => ExecutableTool[];
|
|
6
|
+
export declare const RESEARCH_BLUEPRINT: BlueprintParser.DSL;
|
|
7
|
+
//# sourceMappingURL=blueprint.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blueprint.d.ts","sourceRoot":"","sources":["../../../../src/testing/blueprint.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,OAAO,EAAE,KAAK,eAAe,EAA+D,MAAM,iBAAiB,CAAC;AACpH,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,GAAG,EAAE,MAAM,YAAY,CAAC;AAMtC,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,EAAE,WAAW,GAAG,KAAG,cAAc,EAcxE,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,eAAe,CAAC,GAgBhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/testing/index.ts"],"names":[],"mappings":"AAIA,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type GenerateRequest } from '@dxos/
|
|
1
|
+
import { type GenerateRequest } from '@dxos/ai';
|
|
2
2
|
export declare const createProcessorOptions: (artifacts: string[]) => Pick<GenerateRequest, "model" | "systemPrompt">;
|
|
3
3
|
//# sourceMappingURL=test-functions.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-functions.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"test-functions.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-functions.ts"],"names":[],"mappings":"AAIA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAGpE,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,EAAE,KAAG,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,cAAc,CAGzG,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type
|
|
3
|
-
import type
|
|
4
|
-
export declare const
|
|
1
|
+
import { type ExecutableTool } from '@dxos/ai';
|
|
2
|
+
import { type FunctionType } from '@dxos/functions';
|
|
3
|
+
import { type SpaceId } from '@dxos/react-client/echo';
|
|
4
|
+
export declare const convertFunctionToTool: (fn: FunctionType, edgeUrl: string, spaceId?: SpaceId | undefined) => ExecutableTool | undefined;
|
|
5
5
|
//# sourceMappingURL=function.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../src/tools/function.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../src/tools/function.ts"],"names":[],"mappings":"AAIA,OAAO,EAAc,KAAK,cAAc,EAAc,MAAM,UAAU,CAAC;AAGvE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAIvD,eAAO,MAAM,qBAAqB,GAChC,IAAI,YAAY,EAChB,SAAS,MAAM,EACf,UAAU,OAAO,GAAG,SAAS,KAC5B,cAAc,GAAG,SA4BnB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ExecutableTool } from '@dxos/ai';
|
|
2
2
|
import type { ApiAuthorization, ServiceType } from '../types';
|
|
3
3
|
export type CreateToolsFromApiOptions = {
|
|
4
4
|
authorization?: ApiAuthorization;
|
|
5
5
|
instructions?: string;
|
|
6
6
|
};
|
|
7
|
-
export declare const createToolsFromService: (service: ServiceType) => Promise<
|
|
8
|
-
export declare const createToolsFromApi: (url: string, options?: CreateToolsFromApiOptions) => Promise<
|
|
7
|
+
export declare const createToolsFromService: (service: ServiceType) => Promise<ExecutableTool[]>;
|
|
8
|
+
export declare const createToolsFromApi: (url: string, options?: CreateToolsFromApiOptions) => Promise<ExecutableTool[]>;
|
|
9
9
|
export declare const resolveAuthorization: (authorization: ApiAuthorization) => Promise<string>;
|
|
10
10
|
//# sourceMappingURL=openapi.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../../src/tools/openapi.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../../src/tools/openapi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,KAAK,cAAc,EAA6B,MAAM,UAAU,CAAC;AAM1E,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE9D,MAAM,MAAM,yBAAyB,GAAG;IACtC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAU,SAAS,WAAW,KAAG,OAAO,CAAC,cAAc,EAAE,CAM3F,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,KAAK,MAAM,EACX,UAAU,yBAAyB,KAClC,OAAO,CAAC,cAAc,EAAE,CAwF1B,CAAC;AA2KF,eAAO,MAAM,oBAAoB,GAAU,eAAe,gBAAgB,KAAG,OAAO,CAAC,MAAM,CAqB1F,CAAC"}
|
|
@@ -21,6 +21,7 @@ declare const _default: {
|
|
|
21
21
|
'service registry label'?: undefined;
|
|
22
22
|
'assistant dialog title'?: undefined;
|
|
23
23
|
'open assistant label'?: undefined;
|
|
24
|
+
'search input placeholder'?: undefined;
|
|
24
25
|
'chat input placeholder'?: undefined;
|
|
25
26
|
'chat stop'?: undefined;
|
|
26
27
|
'prompt placeholder'?: undefined;
|
|
@@ -50,6 +51,7 @@ declare const _default: {
|
|
|
50
51
|
'service registry label': string;
|
|
51
52
|
'assistant dialog title': string;
|
|
52
53
|
'open assistant label': string;
|
|
54
|
+
'search input placeholder': string;
|
|
53
55
|
'chat input placeholder': string;
|
|
54
56
|
'chat stop': string;
|
|
55
57
|
'prompt placeholder': string;
|
|
@@ -82,6 +84,7 @@ declare const _default: {
|
|
|
82
84
|
'service registry label': string;
|
|
83
85
|
'assistant dialog title': string;
|
|
84
86
|
'open assistant label': string;
|
|
87
|
+
'search input placeholder': string;
|
|
85
88
|
'chat input placeholder': string;
|
|
86
89
|
'chat stop': string;
|
|
87
90
|
'prompt placeholder': string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/translations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,wBAgDE"}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
|
+
import { Type } from '@dxos/echo';
|
|
3
|
+
import { Ref } from '@dxos/echo-schema';
|
|
4
|
+
export declare const AIChatType: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
|
|
5
|
+
id: import("@dxos/keys").ObjectIdClass;
|
|
6
|
+
name: Schema.optional<typeof Schema.String>;
|
|
7
|
+
queue: import("@dxos/echo-schema").Ref$<Type.Expando>;
|
|
8
|
+
}>, {}>;
|
|
9
|
+
export interface AIChatType extends Schema.Schema.Type<typeof AIChatType> {
|
|
10
|
+
}
|
|
11
|
+
export declare const CompanionTo: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
|
|
12
|
+
id: import("@dxos/keys").ObjectIdClass;
|
|
13
|
+
}>, import("@dxos/echo-schema").RelationSourceTargetRefs<{
|
|
14
|
+
readonly id: string;
|
|
15
|
+
name?: string | undefined;
|
|
16
|
+
queue: Ref<Type.Expando>;
|
|
17
|
+
}, Type.Expando>>;
|
|
18
|
+
export interface CompanionTo extends Schema.Schema.Type<typeof CompanionTo> {
|
|
8
19
|
}
|
|
9
|
-
export {};
|
|
10
20
|
//# sourceMappingURL=chat.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../src/types/chat.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../../../src/types/chat.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAW,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEjD,eAAO,MAAM,UAAU;;;;OAUtB,CAAC;AACF,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC;CAAG;AAE5E,eAAO,MAAM,WAAW;;;;;;iBASvB,CAAC;AACF,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC;CAAG"}
|
|
@@ -1,148 +1,149 @@
|
|
|
1
|
+
import { Schema } from 'effect';
|
|
1
2
|
import { ComputeGraph } from '@dxos/conductor';
|
|
2
|
-
import {
|
|
3
|
-
import { FunctionType } from '@dxos/functions
|
|
4
|
-
export declare const ApiAuthorization:
|
|
5
|
-
type:
|
|
6
|
-
key: typeof
|
|
7
|
-
placement:
|
|
8
|
-
type:
|
|
9
|
-
}>,
|
|
10
|
-
type:
|
|
11
|
-
name: typeof
|
|
3
|
+
import { type Ref$ } from '@dxos/echo-schema';
|
|
4
|
+
import { FunctionType } from '@dxos/functions';
|
|
5
|
+
export declare const ApiAuthorization: Schema.Union<[Schema.Struct<{
|
|
6
|
+
type: Schema.Literal<["api-key"]>;
|
|
7
|
+
key: typeof Schema.String;
|
|
8
|
+
placement: Schema.Union<[Schema.Struct<{
|
|
9
|
+
type: Schema.Literal<["authorization-header"]>;
|
|
10
|
+
}>, Schema.Struct<{
|
|
11
|
+
type: Schema.Literal<["query"]>;
|
|
12
|
+
name: typeof Schema.String;
|
|
12
13
|
}>]>;
|
|
13
|
-
}>,
|
|
14
|
-
type:
|
|
15
|
-
clientId: typeof
|
|
16
|
-
clientSecret: typeof
|
|
17
|
-
tokenUrl: typeof
|
|
18
|
-
grantType: typeof
|
|
14
|
+
}>, Schema.Struct<{
|
|
15
|
+
type: Schema.Literal<["oauth"]>;
|
|
16
|
+
clientId: typeof Schema.String;
|
|
17
|
+
clientSecret: typeof Schema.String;
|
|
18
|
+
tokenUrl: typeof Schema.String;
|
|
19
|
+
grantType: typeof Schema.String;
|
|
19
20
|
}>]>;
|
|
20
|
-
export type ApiAuthorization =
|
|
21
|
-
declare const ServiceInterface:
|
|
22
|
-
kind:
|
|
21
|
+
export type ApiAuthorization = Schema.Schema.Type<typeof ApiAuthorization>;
|
|
22
|
+
declare const ServiceInterface: Schema.Union<[Schema.Struct<{
|
|
23
|
+
kind: Schema.Literal<["function"]>;
|
|
23
24
|
fn: Ref$<FunctionType>;
|
|
24
|
-
}>,
|
|
25
|
-
kind:
|
|
25
|
+
}>, Schema.Struct<{
|
|
26
|
+
kind: Schema.Literal<["workflow"]>;
|
|
26
27
|
workflow: Ref$<ComputeGraph>;
|
|
27
|
-
}>,
|
|
28
|
-
kind:
|
|
28
|
+
}>, Schema.Struct<{
|
|
29
|
+
kind: Schema.Literal<["api"]>;
|
|
29
30
|
/**
|
|
30
31
|
* URL to fetch the openapi schema.
|
|
31
32
|
*/
|
|
32
|
-
schemaUrl:
|
|
33
|
+
schemaUrl: Schema.optional<typeof Schema.String>;
|
|
33
34
|
/**
|
|
34
35
|
* Inlined openapi schema.
|
|
35
36
|
*/
|
|
36
|
-
schema:
|
|
37
|
+
schema: Schema.optional<typeof Schema.Any>;
|
|
37
38
|
/**
|
|
38
39
|
* Authorization configuration if required.
|
|
39
40
|
*/
|
|
40
|
-
authorization:
|
|
41
|
-
type:
|
|
42
|
-
key: typeof
|
|
43
|
-
placement:
|
|
44
|
-
type:
|
|
45
|
-
}>,
|
|
46
|
-
type:
|
|
47
|
-
name: typeof
|
|
41
|
+
authorization: Schema.optional<Schema.Union<[Schema.Struct<{
|
|
42
|
+
type: Schema.Literal<["api-key"]>;
|
|
43
|
+
key: typeof Schema.String;
|
|
44
|
+
placement: Schema.Union<[Schema.Struct<{
|
|
45
|
+
type: Schema.Literal<["authorization-header"]>;
|
|
46
|
+
}>, Schema.Struct<{
|
|
47
|
+
type: Schema.Literal<["query"]>;
|
|
48
|
+
name: typeof Schema.String;
|
|
48
49
|
}>]>;
|
|
49
|
-
}>,
|
|
50
|
-
type:
|
|
51
|
-
clientId: typeof
|
|
52
|
-
clientSecret: typeof
|
|
53
|
-
tokenUrl: typeof
|
|
54
|
-
grantType: typeof
|
|
50
|
+
}>, Schema.Struct<{
|
|
51
|
+
type: Schema.Literal<["oauth"]>;
|
|
52
|
+
clientId: typeof Schema.String;
|
|
53
|
+
clientSecret: typeof Schema.String;
|
|
54
|
+
tokenUrl: typeof Schema.String;
|
|
55
|
+
grantType: typeof Schema.String;
|
|
55
56
|
}>]>>;
|
|
56
57
|
}>]>;
|
|
57
|
-
export type ServiceInterface =
|
|
58
|
+
export type ServiceInterface = Schema.Schema.Type<typeof ServiceInterface>;
|
|
58
59
|
declare const ServiceType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
59
|
-
serviceId: typeof
|
|
60
|
-
name:
|
|
61
|
-
description:
|
|
62
|
-
category:
|
|
63
|
-
enabled:
|
|
60
|
+
serviceId: typeof Schema.String;
|
|
61
|
+
name: Schema.optional<typeof Schema.String>;
|
|
62
|
+
description: Schema.optional<typeof Schema.String>;
|
|
63
|
+
category: Schema.optional<typeof Schema.String>;
|
|
64
|
+
enabled: Schema.optional<typeof Schema.Boolean>;
|
|
64
65
|
/**
|
|
65
66
|
* Entries exposed: functions, workflows, and APIs.
|
|
66
67
|
*/
|
|
67
|
-
interfaces:
|
|
68
|
-
kind:
|
|
68
|
+
interfaces: Schema.optional<Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
69
|
+
kind: Schema.Literal<["function"]>;
|
|
69
70
|
fn: Ref$<FunctionType>;
|
|
70
|
-
}>,
|
|
71
|
-
kind:
|
|
71
|
+
}>, Schema.Struct<{
|
|
72
|
+
kind: Schema.Literal<["workflow"]>;
|
|
72
73
|
workflow: Ref$<ComputeGraph>;
|
|
73
|
-
}>,
|
|
74
|
-
kind:
|
|
74
|
+
}>, Schema.Struct<{
|
|
75
|
+
kind: Schema.Literal<["api"]>;
|
|
75
76
|
/**
|
|
76
77
|
* URL to fetch the openapi schema.
|
|
77
78
|
*/
|
|
78
|
-
schemaUrl:
|
|
79
|
+
schemaUrl: Schema.optional<typeof Schema.String>;
|
|
79
80
|
/**
|
|
80
81
|
* Inlined openapi schema.
|
|
81
82
|
*/
|
|
82
|
-
schema:
|
|
83
|
+
schema: Schema.optional<typeof Schema.Any>;
|
|
83
84
|
/**
|
|
84
85
|
* Authorization configuration if required.
|
|
85
86
|
*/
|
|
86
|
-
authorization:
|
|
87
|
-
type:
|
|
88
|
-
key: typeof
|
|
89
|
-
placement:
|
|
90
|
-
type:
|
|
91
|
-
}>,
|
|
92
|
-
type:
|
|
93
|
-
name: typeof
|
|
87
|
+
authorization: Schema.optional<Schema.Union<[Schema.Struct<{
|
|
88
|
+
type: Schema.Literal<["api-key"]>;
|
|
89
|
+
key: typeof Schema.String;
|
|
90
|
+
placement: Schema.Union<[Schema.Struct<{
|
|
91
|
+
type: Schema.Literal<["authorization-header"]>;
|
|
92
|
+
}>, Schema.Struct<{
|
|
93
|
+
type: Schema.Literal<["query"]>;
|
|
94
|
+
name: typeof Schema.String;
|
|
94
95
|
}>]>;
|
|
95
|
-
}>,
|
|
96
|
-
type:
|
|
97
|
-
clientId: typeof
|
|
98
|
-
clientSecret: typeof
|
|
99
|
-
tokenUrl: typeof
|
|
100
|
-
grantType: typeof
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
type: Schema.Literal<["oauth"]>;
|
|
98
|
+
clientId: typeof Schema.String;
|
|
99
|
+
clientSecret: typeof Schema.String;
|
|
100
|
+
tokenUrl: typeof Schema.String;
|
|
101
|
+
grantType: typeof Schema.String;
|
|
101
102
|
}>]>>;
|
|
102
103
|
}>]>>>;
|
|
103
|
-
}, import("@dxos/echo-schema").TypedObjectOptions>,
|
|
104
|
-
serviceId: typeof
|
|
105
|
-
name:
|
|
106
|
-
description:
|
|
107
|
-
category:
|
|
108
|
-
enabled:
|
|
104
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, Schema.Struct.Encoded<{
|
|
105
|
+
serviceId: typeof Schema.String;
|
|
106
|
+
name: Schema.optional<typeof Schema.String>;
|
|
107
|
+
description: Schema.optional<typeof Schema.String>;
|
|
108
|
+
category: Schema.optional<typeof Schema.String>;
|
|
109
|
+
enabled: Schema.optional<typeof Schema.Boolean>;
|
|
109
110
|
/**
|
|
110
111
|
* Entries exposed: functions, workflows, and APIs.
|
|
111
112
|
*/
|
|
112
|
-
interfaces:
|
|
113
|
-
kind:
|
|
113
|
+
interfaces: Schema.optional<Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
114
|
+
kind: Schema.Literal<["function"]>;
|
|
114
115
|
fn: Ref$<FunctionType>;
|
|
115
|
-
}>,
|
|
116
|
-
kind:
|
|
116
|
+
}>, Schema.Struct<{
|
|
117
|
+
kind: Schema.Literal<["workflow"]>;
|
|
117
118
|
workflow: Ref$<ComputeGraph>;
|
|
118
|
-
}>,
|
|
119
|
-
kind:
|
|
119
|
+
}>, Schema.Struct<{
|
|
120
|
+
kind: Schema.Literal<["api"]>;
|
|
120
121
|
/**
|
|
121
122
|
* URL to fetch the openapi schema.
|
|
122
123
|
*/
|
|
123
|
-
schemaUrl:
|
|
124
|
+
schemaUrl: Schema.optional<typeof Schema.String>;
|
|
124
125
|
/**
|
|
125
126
|
* Inlined openapi schema.
|
|
126
127
|
*/
|
|
127
|
-
schema:
|
|
128
|
+
schema: Schema.optional<typeof Schema.Any>;
|
|
128
129
|
/**
|
|
129
130
|
* Authorization configuration if required.
|
|
130
131
|
*/
|
|
131
|
-
authorization:
|
|
132
|
-
type:
|
|
133
|
-
key: typeof
|
|
134
|
-
placement:
|
|
135
|
-
type:
|
|
136
|
-
}>,
|
|
137
|
-
type:
|
|
138
|
-
name: typeof
|
|
132
|
+
authorization: Schema.optional<Schema.Union<[Schema.Struct<{
|
|
133
|
+
type: Schema.Literal<["api-key"]>;
|
|
134
|
+
key: typeof Schema.String;
|
|
135
|
+
placement: Schema.Union<[Schema.Struct<{
|
|
136
|
+
type: Schema.Literal<["authorization-header"]>;
|
|
137
|
+
}>, Schema.Struct<{
|
|
138
|
+
type: Schema.Literal<["query"]>;
|
|
139
|
+
name: typeof Schema.String;
|
|
139
140
|
}>]>;
|
|
140
|
-
}>,
|
|
141
|
-
type:
|
|
142
|
-
clientId: typeof
|
|
143
|
-
clientSecret: typeof
|
|
144
|
-
tokenUrl: typeof
|
|
145
|
-
grantType: typeof
|
|
141
|
+
}>, Schema.Struct<{
|
|
142
|
+
type: Schema.Literal<["oauth"]>;
|
|
143
|
+
clientId: typeof Schema.String;
|
|
144
|
+
clientSecret: typeof Schema.String;
|
|
145
|
+
tokenUrl: typeof Schema.String;
|
|
146
|
+
grantType: typeof Schema.String;
|
|
146
147
|
}>]>>;
|
|
147
148
|
}>]>>>;
|
|
148
149
|
}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/types/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/types/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAoB,KAAK,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAwB/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;IAA2D,CAAC;AACzF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;AA+B3E,QAAA,MAAM,gBAAgB;;QA3BK,IAAI,CAAC,YAAY,CAAC;;;cAKZ,IAAI,CAAC,YAAY,CAAC;;;IAMjD;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;IAIyG,CAAC;AAC/G,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;;;;;;;IASzE;;OAEG;;;YAvCsB,IAAI,CAAC,YAAY,CAAC;;;kBAKZ,IAAI,CAAC,YAAY,CAAC;;;QAMjD;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;IAcH;;OAEG;;;YAvCsB,IAAI,CAAC,YAAY,CAAC;;;kBAKZ,IAAI,CAAC,YAAY,CAAC;;;QAMjD;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;;;;;;;;;;;;;;;;AAOL,qBAAa,WAAY,SAAQ,gBAW/B;CAAG;AAML,MAAM,MAAM,YAAY,GAAG;IACzB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,WAAW,mBAAmB;IAClC,aAAa,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;CAC7D;AAED,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAUvC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Schema } from 'effect';
|
|
2
2
|
export declare enum TemplateInputType {
|
|
3
3
|
VALUE = 0,
|
|
4
4
|
PASS_THROUGH = 1,
|
|
@@ -9,66 +9,66 @@ export declare enum TemplateInputType {
|
|
|
9
9
|
CONTEXT = 6,
|
|
10
10
|
SCHEMA = 7
|
|
11
11
|
}
|
|
12
|
-
export declare const TemplateInputSchema:
|
|
13
|
-
name: typeof
|
|
14
|
-
type:
|
|
15
|
-
value:
|
|
12
|
+
export declare const TemplateInputSchema: Schema.mutable<Schema.Struct<{
|
|
13
|
+
name: typeof Schema.String;
|
|
14
|
+
type: Schema.optional<Schema.Enums<typeof TemplateInputType>>;
|
|
15
|
+
value: Schema.optional<typeof Schema.String>;
|
|
16
16
|
}>>;
|
|
17
|
-
export type TemplateInput =
|
|
17
|
+
export type TemplateInput = Schema.Schema.Type<typeof TemplateInputSchema>;
|
|
18
18
|
export declare const TemplateKinds: readonly ["always", "schema-matching", "automatically", "manual"];
|
|
19
19
|
export type TemplateKind = (typeof TemplateKinds)[number];
|
|
20
|
-
export declare const TemplateKindSchema:
|
|
21
|
-
include:
|
|
22
|
-
}>,
|
|
23
|
-
include:
|
|
24
|
-
typename: typeof
|
|
25
|
-
}>,
|
|
26
|
-
include:
|
|
27
|
-
description: typeof
|
|
28
|
-
}>,
|
|
29
|
-
include:
|
|
20
|
+
export declare const TemplateKindSchema: Schema.Union<[Schema.Struct<{
|
|
21
|
+
include: Schema.Literal<["always"]>;
|
|
22
|
+
}>, Schema.Struct<{
|
|
23
|
+
include: Schema.Literal<["schema-matching"]>;
|
|
24
|
+
typename: typeof Schema.String;
|
|
25
|
+
}>, Schema.Struct<{
|
|
26
|
+
include: Schema.Literal<["automatically"]>;
|
|
27
|
+
description: typeof Schema.String;
|
|
28
|
+
}>, Schema.Struct<{
|
|
29
|
+
include: Schema.Literal<["manual"]>;
|
|
30
30
|
}>]>;
|
|
31
|
-
export type TemplateKindType =
|
|
31
|
+
export type TemplateKindType = Schema.Schema.Type<typeof TemplateKindSchema>;
|
|
32
32
|
declare const TemplateType_base: import("@dxos/echo-schema").TypedObjectPrototype<import("@dxos/echo-schema").TypedObjectFields<{
|
|
33
|
-
name:
|
|
34
|
-
kind:
|
|
35
|
-
include:
|
|
36
|
-
}>,
|
|
37
|
-
include:
|
|
38
|
-
typename: typeof
|
|
39
|
-
}>,
|
|
40
|
-
include:
|
|
41
|
-
description: typeof
|
|
42
|
-
}>,
|
|
43
|
-
include:
|
|
33
|
+
name: Schema.optional<typeof Schema.String>;
|
|
34
|
+
kind: Schema.mutable<Schema.Union<[Schema.Struct<{
|
|
35
|
+
include: Schema.Literal<["always"]>;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
include: Schema.Literal<["schema-matching"]>;
|
|
38
|
+
typename: typeof Schema.String;
|
|
39
|
+
}>, Schema.Struct<{
|
|
40
|
+
include: Schema.Literal<["automatically"]>;
|
|
41
|
+
description: typeof Schema.String;
|
|
42
|
+
}>, Schema.Struct<{
|
|
43
|
+
include: Schema.Literal<["manual"]>;
|
|
44
44
|
}>]>>;
|
|
45
|
-
source: typeof
|
|
46
|
-
inputs:
|
|
47
|
-
name: typeof
|
|
48
|
-
type:
|
|
49
|
-
value:
|
|
45
|
+
source: typeof Schema.String;
|
|
46
|
+
inputs: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
47
|
+
name: typeof Schema.String;
|
|
48
|
+
type: Schema.optional<Schema.Enums<typeof TemplateInputType>>;
|
|
49
|
+
value: Schema.optional<typeof Schema.String>;
|
|
50
50
|
}>>>>>;
|
|
51
|
-
command:
|
|
52
|
-
}, import("@dxos/echo-schema").TypedObjectOptions>,
|
|
53
|
-
name:
|
|
54
|
-
kind:
|
|
55
|
-
include:
|
|
56
|
-
}>,
|
|
57
|
-
include:
|
|
58
|
-
typename: typeof
|
|
59
|
-
}>,
|
|
60
|
-
include:
|
|
61
|
-
description: typeof
|
|
62
|
-
}>,
|
|
63
|
-
include:
|
|
51
|
+
command: Schema.optional<typeof Schema.String>;
|
|
52
|
+
}, import("@dxos/echo-schema").TypedObjectOptions>, Schema.Struct.Encoded<{
|
|
53
|
+
name: Schema.optional<typeof Schema.String>;
|
|
54
|
+
kind: Schema.mutable<Schema.Union<[Schema.Struct<{
|
|
55
|
+
include: Schema.Literal<["always"]>;
|
|
56
|
+
}>, Schema.Struct<{
|
|
57
|
+
include: Schema.Literal<["schema-matching"]>;
|
|
58
|
+
typename: typeof Schema.String;
|
|
59
|
+
}>, Schema.Struct<{
|
|
60
|
+
include: Schema.Literal<["automatically"]>;
|
|
61
|
+
description: typeof Schema.String;
|
|
62
|
+
}>, Schema.Struct<{
|
|
63
|
+
include: Schema.Literal<["manual"]>;
|
|
64
64
|
}>]>>;
|
|
65
|
-
source: typeof
|
|
66
|
-
inputs:
|
|
67
|
-
name: typeof
|
|
68
|
-
type:
|
|
69
|
-
value:
|
|
65
|
+
source: typeof Schema.String;
|
|
66
|
+
inputs: Schema.optional<Schema.mutable<Schema.Array$<Schema.mutable<Schema.Struct<{
|
|
67
|
+
name: typeof Schema.String;
|
|
68
|
+
type: Schema.optional<Schema.Enums<typeof TemplateInputType>>;
|
|
69
|
+
value: Schema.optional<typeof Schema.String>;
|
|
70
70
|
}>>>>>;
|
|
71
|
-
command:
|
|
71
|
+
command: Schema.optional<typeof Schema.String>;
|
|
72
72
|
}>>;
|
|
73
73
|
export declare class TemplateType extends TemplateType_base {
|
|
74
74
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/types/template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/types/template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,oBAAY,iBAAiB;IAC3B,KAAK,IAAI;IACT,YAAY,IAAI;IAChB,SAAS,IAAI;IACb,QAAQ,IAAI;IACZ,KAAK,IAAI;IACT,QAAQ,IAAI;IACZ,OAAO,IAAI;IACX,MAAM,IAAI;CACX;AAED,eAAO,MAAM,mBAAmB;;;;GAM/B,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAE3E,eAAO,MAAM,aAAa,mEAAoE,CAAC;AAC/F,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,CAAC,CAAC;AAE1D,eAAO,MAAM,kBAAkB;;;;;;;;;;IAe9B,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,kBAAkB,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAC7E,qBAAa,YAAa,SAAQ,iBAMhC;CAAG"}
|
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AIChatType } from './chat';
|
|
1
|
+
import { Schema } from 'effect';
|
|
3
2
|
import { TemplateType } from './template';
|
|
4
3
|
export declare namespace AssistantAction {
|
|
5
|
-
const CreateChat_base:
|
|
6
|
-
readonly _tag:
|
|
4
|
+
const CreateChat_base: Schema.TaggedClass<CreateChat, "dxos.org/plugin/assistant/action/create-chat", {
|
|
5
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/assistant/action/create-chat">;
|
|
7
6
|
} & {
|
|
8
|
-
input:
|
|
9
|
-
|
|
10
|
-
name:
|
|
7
|
+
input: Schema.Struct<{
|
|
8
|
+
space: Schema.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
|
|
9
|
+
name: Schema.optional<typeof Schema.String>;
|
|
11
10
|
}>;
|
|
12
|
-
output:
|
|
13
|
-
object:
|
|
11
|
+
output: Schema.Struct<{
|
|
12
|
+
object: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
|
|
13
|
+
id: import("@dxos/keys").ObjectIdClass;
|
|
14
|
+
name: Schema.optional<typeof Schema.String>;
|
|
15
|
+
queue: import("@dxos/echo-schema").Ref$<import("@dxos/echo-schema").Expando>;
|
|
16
|
+
}>, {}>;
|
|
14
17
|
}>;
|
|
15
18
|
}>;
|
|
16
19
|
export class CreateChat extends CreateChat_base {
|
|
17
20
|
}
|
|
18
|
-
const CreateTemplate_base:
|
|
19
|
-
readonly _tag:
|
|
21
|
+
const CreateTemplate_base: Schema.TaggedClass<CreateTemplate, "dxos.org/plugin/assistant/action/create-template", {
|
|
22
|
+
readonly _tag: Schema.tag<"dxos.org/plugin/assistant/action/create-template">;
|
|
20
23
|
} & {
|
|
21
|
-
input:
|
|
22
|
-
name:
|
|
24
|
+
input: Schema.Struct<{
|
|
25
|
+
name: Schema.optional<typeof Schema.String>;
|
|
23
26
|
}>;
|
|
24
|
-
output:
|
|
27
|
+
output: Schema.Struct<{
|
|
25
28
|
object: typeof TemplateType;
|
|
26
29
|
}>;
|
|
27
30
|
}>;
|
|
@@ -30,12 +33,12 @@ export declare namespace AssistantAction {
|
|
|
30
33
|
export {};
|
|
31
34
|
}
|
|
32
35
|
export declare const LLM_PROVIDERS: readonly ["edge", "ollama", "lmstudio"];
|
|
33
|
-
export declare const AssistantSettingsSchema:
|
|
34
|
-
llmProvider:
|
|
35
|
-
edgeModel:
|
|
36
|
-
ollamaModel:
|
|
37
|
-
lmstudioModel:
|
|
38
|
-
customPrompts:
|
|
36
|
+
export declare const AssistantSettingsSchema: Schema.mutable<Schema.Struct<{
|
|
37
|
+
llmProvider: Schema.optional<Schema.Literal<["edge", "ollama", "lmstudio"]>>;
|
|
38
|
+
edgeModel: Schema.optional<typeof Schema.String>;
|
|
39
|
+
ollamaModel: Schema.optional<typeof Schema.String>;
|
|
40
|
+
lmstudioModel: Schema.optional<typeof Schema.String>;
|
|
41
|
+
customPrompts: Schema.optional<typeof Schema.Boolean>;
|
|
39
42
|
}>>;
|
|
40
|
-
export type AssistantSettingsProps =
|
|
43
|
+
export type AssistantSettingsProps = Schema.Schema.Type<typeof AssistantSettingsSchema>;
|
|
41
44
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/types/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAKhC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG1C,yBAAiB,eAAe,CAAC;;;;;;;;;;;;;;;;IAG/B,MAAM,OAAO,UAAW,SAAQ,eAQ9B;KAAG;;;;;;;;;;;IAEL,MAAM,OAAO,cAAe,SAAQ,mBAOlC;KAAG;;CACN;AAED,eAAO,MAAM,aAAa,yCAA0C,CAAC;AAErE,eAAO,MAAM,uBAAuB;;;;;;GAQnC,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|