@dxos/plugin-assistant 0.8.2-main.2f9c567 → 0.8.2-main.30e4dbb
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-WX6EKSXI.mjs → AssistantDialog-BUHPFIHN.mjs} +2 -2
- package/dist/lib/browser/{ChatContainer-HMNWYDQ5.mjs → ChatContainer-X7JBCLFK.mjs} +2 -2
- package/dist/lib/browser/{app-graph-builder-J5ISIFTE.mjs → app-graph-builder-JJCBQZGC.mjs} +3 -3
- package/dist/lib/browser/{app-graph-builder-J5ISIFTE.mjs.map → app-graph-builder-JJCBQZGC.mjs.map} +1 -1
- package/dist/lib/browser/{chunk-J3V74ZRF.mjs → chunk-PFIXSSN2.mjs} +3 -3
- package/dist/lib/browser/{chunk-4EXBK6UE.mjs → chunk-QGZETTI3.mjs} +21 -21
- package/dist/lib/browser/chunk-QGZETTI3.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +2 -2
- package/dist/lib/browser/{intent-resolver-MGHOSZY3.mjs → intent-resolver-54SA6LXM.mjs} +3 -3
- package/dist/lib/browser/intent-resolver-54SA6LXM.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-VP4ABBMH.mjs → react-surface-JSHNKGXY.mjs} +8 -8
- package/dist/lib/browser/react-surface-JSHNKGXY.mjs.map +7 -0
- package/dist/lib/node/{AssistantDialog-2OTAZADX.cjs → AssistantDialog-XIAFCAGB.cjs} +6 -6
- package/dist/lib/node/{ChatContainer-3CTBKBS2.cjs → ChatContainer-MAGI5QD6.cjs} +6 -6
- package/dist/lib/node/{app-graph-builder-BBNLIGYJ.cjs → app-graph-builder-7EJJHBRH.cjs} +6 -6
- package/dist/lib/node/{app-graph-builder-BBNLIGYJ.cjs.map → app-graph-builder-7EJJHBRH.cjs.map} +1 -1
- package/dist/lib/node/{chunk-XC7A3KUG.cjs → chunk-EWY6HDMS.cjs} +22 -22
- package/dist/lib/node/chunk-EWY6HDMS.cjs.map +7 -0
- package/dist/lib/node/{chunk-WFSXNO4H.cjs → chunk-V4WPZXN2.cjs} +6 -6
- package/dist/lib/node/index.cjs +16 -16
- package/dist/lib/node/{intent-resolver-Z2NTL2FV.cjs → intent-resolver-UP5FPVWP.cjs} +6 -6
- package/dist/lib/node/intent-resolver-UP5FPVWP.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-HNXDAZ7C.cjs → react-surface-M3OXAXKR.cjs} +21 -21
- package/dist/lib/node/react-surface-M3OXAXKR.cjs.map +7 -0
- package/dist/lib/node-esm/{AssistantDialog-GNLPYXY4.mjs → AssistantDialog-SDGQK5TF.mjs} +2 -2
- package/dist/lib/node-esm/{ChatContainer-FGHDDORQ.mjs → ChatContainer-AM4BDTXU.mjs} +2 -2
- package/dist/lib/node-esm/{app-graph-builder-245AWCPJ.mjs → app-graph-builder-ZDI7EVEN.mjs} +3 -3
- package/dist/lib/node-esm/{app-graph-builder-245AWCPJ.mjs.map → app-graph-builder-ZDI7EVEN.mjs.map} +1 -1
- package/dist/lib/node-esm/{chunk-JX73NOSL.mjs → chunk-RDU7QEFL.mjs} +21 -21
- package/dist/lib/node-esm/chunk-RDU7QEFL.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-G5LUEW72.mjs → chunk-RN3I3BVC.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +2 -2
- package/dist/lib/node-esm/{intent-resolver-DMQXPV2H.mjs → intent-resolver-JKWFZYLN.mjs} +3 -3
- package/dist/lib/node-esm/intent-resolver-JKWFZYLN.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-NYXMBFPY.mjs → react-surface-RZBDBP42.mjs} +8 -8
- package/dist/lib/node-esm/react-surface-RZBDBP42.mjs.map +7 -0
- package/dist/types/src/capabilities/ai-client.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -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/Prompt/PromptBar.d.ts.map +1 -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.map +1 -1
- 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.stories.d.ts +1 -1
- package/dist/types/src/components/Thread/ThreadContainer.stories.d.ts.map +1 -1
- package/dist/types/src/components/Thread/ToolInvocations.d.ts.map +1 -1
- package/dist/types/src/components/Toolbox/Toolbox.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.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/testing/test-functions.d.ts.map +1 -1
- package/dist/types/src/tools/function.d.ts +1 -1
- package/dist/types/src/tools/function.d.ts.map +1 -1
- package/dist/types/src/tools/openapi.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +6 -60
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +58 -58
- package/src/capabilities/app-graph-builder.ts +2 -2
- package/src/capabilities/intent-resolver.ts +2 -2
- package/src/capabilities/react-surface.tsx +5 -5
- package/src/components/AmbientDialog/AmbientDialog.stories.tsx +1 -1
- package/src/components/Prompt/Prompt.stories.tsx +1 -1
- package/src/components/Prompt/PromptBar.tsx +4 -12
- package/src/components/Thread/Thread.stories.tsx +12 -15
- package/src/components/Thread/ThreadContainer.stories.tsx +4 -5
- package/src/components/Thread/ThreadMessage.tsx +1 -1
- package/src/components/Toolbox/Toolbox.stories.tsx +1 -1
- package/src/hooks/useChatProcessor.tsx +2 -2
- package/src/hooks/useContextProvider.ts +9 -9
- package/src/tools/function.ts +2 -4
- package/dist/lib/browser/chunk-4EXBK6UE.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-MGHOSZY3.mjs.map +0 -7
- package/dist/lib/browser/react-surface-VP4ABBMH.mjs.map +0 -7
- package/dist/lib/node/chunk-XC7A3KUG.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-Z2NTL2FV.cjs.map +0 -7
- package/dist/lib/node/react-surface-HNXDAZ7C.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-JX73NOSL.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-DMQXPV2H.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-NYXMBFPY.mjs.map +0 -7
- /package/dist/lib/browser/{AssistantDialog-WX6EKSXI.mjs.map → AssistantDialog-BUHPFIHN.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-HMNWYDQ5.mjs.map → ChatContainer-X7JBCLFK.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-J3V74ZRF.mjs.map → chunk-PFIXSSN2.mjs.map} +0 -0
- /package/dist/lib/node/{AssistantDialog-2OTAZADX.cjs.map → AssistantDialog-XIAFCAGB.cjs.map} +0 -0
- /package/dist/lib/node/{ChatContainer-3CTBKBS2.cjs.map → ChatContainer-MAGI5QD6.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-WFSXNO4H.cjs.map → chunk-V4WPZXN2.cjs.map} +0 -0
- /package/dist/lib/node-esm/{AssistantDialog-GNLPYXY4.mjs.map → AssistantDialog-SDGQK5TF.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-FGHDDORQ.mjs.map → ChatContainer-AM4BDTXU.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-G5LUEW72.mjs.map → chunk-RN3I3BVC.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TemplateForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/TemplateEditor/TemplateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,EAAyC,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAEvF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"TemplateForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/TemplateEditor/TemplateForm.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAQnD,OAAO,EAAyC,KAAK,YAAY,EAAE,MAAM,aAAa,CAAC;AAEvF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,YAAY,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B,CAAC;AA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ACA,IAAI,CAAC,cAAc,EAAE,YAAY,GAAG,OAAO,GAAG,UAAU,GAAG,WAAW,GAAG,UAAU,CAAC,GACpF,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC,CAAC;AAExE;;GAEG;AACH,eAAO,MAAM,MAAM,GAAI,0IAapB,WAAW,sBAiEb,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Thread.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/Thread.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAW5D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAqDpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Thread.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/Thread.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAW5D,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAqDpD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,WAAW,CAc3B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;AAoFnC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAiBzB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@dxos-theme';
|
|
2
2
|
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
3
|
import React from 'react';
|
|
4
|
-
import {
|
|
4
|
+
import { Type } from '@dxos/echo';
|
|
5
5
|
import { type ThreadProps } from './Thread';
|
|
6
6
|
type RenderProps = {
|
|
7
7
|
items?: Type.AnyObject[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThreadContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/ThreadContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,OAAO,
|
|
1
|
+
{"version":3,"file":"ThreadContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/ThreadContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAoD,MAAM,OAAO,CAAC;AAezE,OAAO,EAAO,IAAI,EAAE,MAAM,YAAY,CAAC;AAevC,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AAOpD,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,IAAI,CAAC,SAAS,EAAE,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,GAAG,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;AAG/B,QAAA,MAAM,YAAY,GAAI,sCAA2C,WAAW,sBAsJ3E,CAAC;AAEF,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CA6BnC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAS9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ToolInvocations.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/ToolInvocations.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"ToolInvocations.d.ts","sourceRoot":"","sources":["../../../../../src/components/Thread/ToolInvocations.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,EAAE,EAAwC,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,KAAK,OAAO,EAAiB,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKtD,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAE1D,eAAO,MAAM,aAAa,GAAI,SAAS,OAAO,YAE7C,CAAC;AAcF,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,eAAe,CAAC,kBAAkB,CAAC,CAoC7D,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,eAAe,CAAC;IAAE,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,GAAG,CAAA;KAAE,EAAE,CAAA;CAAE,CAAC,CAkCzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbox.d.ts","sourceRoot":"","sources":["../../../../../src/components/Toolbox/Toolbox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiD,MAAM,OAAO,CAAC;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AAC;IACrD,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC,CAAC;AAEH,eAAO,MAAM,OAAO,GAAI,yDAAyD,YAAY,sBA8B5F,CAAC;AAoCF,eAAO,MAAM,gBAAgB,GAAI,uBAAuB,eAAe,CAAC;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,sBAwBzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChatProcessor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useChatProcessor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,kBAAkB,EAAiC,MAAM,gBAAgB,CAAC;AAKxF,OAAO,EAA4B,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAIzF,OAAO,EAAE,aAAa,EAA6B,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,sBAAsB,EAAe,MAAM,UAAU,CAAC;AAErF,KAAK,qBAAqB,GAAG;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"useChatProcessor.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useChatProcessor.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,kBAAkB,EAAiC,MAAM,gBAAgB,CAAC;AAKxF,OAAO,EAA4B,KAAK,KAAK,EAAY,MAAM,yBAAyB,CAAC;AAIzF,OAAO,EAAE,aAAa,EAA6B,MAAM,UAAU,CAAC;AAEpE,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,sBAAsB,EAAe,MAAM,UAAU,CAAC;AAErF,KAAK,qBAAqB,GAAG;IAC3B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,sBAAsB,CAAC;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAC;IACzB,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;CACzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,sDAO9B,qBAAqB,KAAG,aA0D1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useContextProvider.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useContextProvider.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"useContextProvider.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useContextProvider.ts"],"names":[],"mappings":"AAOA,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAKvD,MAAM,MAAM,eAAe,GAAG;IAC5B,KAAK,EAAE,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC,CAAC;IACrF,eAAe,EAAE,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvF,CAAC;AAIF,eAAO,MAAM,kBAAkB,GAAI,QAAQ,KAAK,KAAG,eAAe,GAAG,SAmCpE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMessageQueue.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMessageQueue.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"useMessageQueue.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useMessageQueue.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,UAAU,CAAC;AAE3C,eAAO,MAAM,eAAe,GAAI,OAAO,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useServices.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useServices.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"useServices.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useServices.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAG/C,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,YAAY,EAAE,MAAM,UAAU,CAAC;AAE/D;;GAEG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,EAAE,QAAQ,YAAY,KAAG,WAAW,EAa3E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTextInputEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextInputEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAElG;;GAEG;AAEH,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"useTextInputEvents.d.ts","sourceRoot":"","sources":["../../../../src/hooks/useTextInputEvents.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyB,KAAK,oBAAoB,EAAE,KAAK,kBAAkB,EAAE,MAAM,OAAO,CAAC;AAElG;;GAEG;AAEH,eAAO,MAAM,kBAAkB,GAAI,wBAGhC;IACD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,GAAG,IAAI,CAAC;IAC3C,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;;;;IAgCA,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-functions.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-functions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE3E,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"test-functions.d.ts","sourceRoot":"","sources":["../../../../src/testing/test-functions.ts"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAE3E,eAAO,MAAM,sBAAsB,GAAI,WAAW,MAAM,EAAE,KAAG,IAAI,CAAC,eAAe,EAAE,OAAO,GAAG,cAAc,CAGzG,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Tool } from '@dxos/artifact';
|
|
2
2
|
import type { FunctionType } from '@dxos/functions';
|
|
3
3
|
import type { SpaceId } from '@dxos/react-client/echo';
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const convertFunctionToTool: (fn: FunctionType, edgeUrl: string, spaceId?: SpaceId | undefined) => Tool | 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":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"function.d.ts","sourceRoot":"","sources":["../../../../src/tools/function.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAG3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAGvD,eAAO,MAAM,qBAAqB,GAChC,IAAI,YAAY,EAChB,SAAS,MAAM,EACf,UAAU,OAAO,GAAG,SAAS,KAC5B,IAAI,GAAG,SA2BT,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../../src/tools/openapi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMvD,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,
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../../../../src/tools/openapi.ts"],"names":[],"mappings":"AAQA,OAAO,EAAc,KAAK,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAMvD,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,IAAI,EAAE,CAMjF,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAAU,KAAK,MAAM,EAAE,UAAU,yBAAyB,KAAG,OAAO,CAAC,IAAI,EAAE,CAqFzG,CAAC;AA2KF,eAAO,MAAM,oBAAoB,GAAU,eAAe,gBAAgB,KAAG,OAAO,CAAC,MAAM,CAqB1F,CAAC"}
|
|
@@ -1,67 +1,13 @@
|
|
|
1
|
+
import { AIChatType, TemplateType } from './types';
|
|
1
2
|
declare const _default: {
|
|
2
3
|
'en-US': {
|
|
3
|
-
[
|
|
4
|
+
[AIChatType.typename]: {
|
|
5
|
+
'typename label': string;
|
|
6
|
+
'object name placeholder': string;
|
|
7
|
+
};
|
|
8
|
+
[TemplateType.typename]: {
|
|
4
9
|
'typename label': string;
|
|
5
10
|
'object name placeholder': string;
|
|
6
|
-
'templates label'?: undefined;
|
|
7
|
-
'open ambient chat label'?: undefined;
|
|
8
|
-
'assistant chat label'?: undefined;
|
|
9
|
-
'plugin name'?: undefined;
|
|
10
|
-
'object placeholder'?: undefined;
|
|
11
|
-
'create object label'?: undefined;
|
|
12
|
-
'create trigger label'?: undefined;
|
|
13
|
-
'create stack section label'?: undefined;
|
|
14
|
-
'command placeholder'?: undefined;
|
|
15
|
-
'template placeholder'?: undefined;
|
|
16
|
-
'value placeholder'?: undefined;
|
|
17
|
-
'prompt rules label'?: undefined;
|
|
18
|
-
'typename placeholder'?: undefined;
|
|
19
|
-
'description placeholder'?: undefined;
|
|
20
|
-
'select preset template placeholder'?: undefined;
|
|
21
|
-
'service registry label'?: undefined;
|
|
22
|
-
'assistant dialog title'?: undefined;
|
|
23
|
-
'open assistant label'?: undefined;
|
|
24
|
-
'chat input placeholder'?: undefined;
|
|
25
|
-
'chat stop'?: undefined;
|
|
26
|
-
'prompt placeholder'?: undefined;
|
|
27
|
-
'microphone button'?: undefined;
|
|
28
|
-
'cancel processing button'?: undefined;
|
|
29
|
-
'settings default label'?: undefined;
|
|
30
|
-
'settings custom prompts label'?: undefined;
|
|
31
|
-
'settings llm provider label'?: undefined;
|
|
32
|
-
'settings edge llm model label'?: undefined;
|
|
33
|
-
'settings ollama llm model label'?: undefined;
|
|
34
|
-
} | {
|
|
35
|
-
'templates label': string;
|
|
36
|
-
'open ambient chat label': string;
|
|
37
|
-
'assistant chat label': string;
|
|
38
|
-
'plugin name': string;
|
|
39
|
-
'object placeholder': string;
|
|
40
|
-
'create object label': string;
|
|
41
|
-
'create trigger label': string;
|
|
42
|
-
'create stack section label': string;
|
|
43
|
-
'command placeholder': string;
|
|
44
|
-
'template placeholder': string;
|
|
45
|
-
'value placeholder': string;
|
|
46
|
-
'prompt rules label': string;
|
|
47
|
-
'typename placeholder': string;
|
|
48
|
-
'description placeholder': string;
|
|
49
|
-
'select preset template placeholder': string;
|
|
50
|
-
'service registry label': string;
|
|
51
|
-
'assistant dialog title': string;
|
|
52
|
-
'open assistant label': string;
|
|
53
|
-
'chat input placeholder': string;
|
|
54
|
-
'chat stop': string;
|
|
55
|
-
'prompt placeholder': string;
|
|
56
|
-
'microphone button': string;
|
|
57
|
-
'cancel processing button': string;
|
|
58
|
-
'settings default label': string;
|
|
59
|
-
'settings custom prompts label': string;
|
|
60
|
-
'settings llm provider label': string;
|
|
61
|
-
'settings edge llm model label': string;
|
|
62
|
-
'settings ollama llm model label': string;
|
|
63
|
-
'typename label'?: undefined;
|
|
64
|
-
'object name placeholder'?: undefined;
|
|
65
11
|
};
|
|
66
12
|
"dxos.org/plugin/assistant": {
|
|
67
13
|
'templates label': 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":"AAKA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;;;QAK7C,CAAC,UAAU,CAAC,QAAQ,CAAC;;;UAGpB;QACD,CAAC,YAAY,CAAC,QAAQ,CAAC;;;UAGtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAVP,wBAgDE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"5.
|
|
1
|
+
{"version":"5.8.3"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-assistant",
|
|
3
|
-
"version": "0.8.2-main.
|
|
3
|
+
"version": "0.8.2-main.30e4dbb",
|
|
4
4
|
"description": "Assistant plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -46,51 +46,51 @@
|
|
|
46
46
|
"jsonpointer": "^5.0.1",
|
|
47
47
|
"lodash.get": "^4.4.2",
|
|
48
48
|
"unified": "^11.0.0",
|
|
49
|
-
"@dxos/app-framework": "0.8.2-main.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/compute": "0.8.2-main.
|
|
54
|
-
"@dxos/conductor": "0.8.2-main.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/echo
|
|
58
|
-
"@dxos/echo-
|
|
59
|
-
"@dxos/echo-
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/edge-client": "0.8.2-main.
|
|
62
|
-
"@dxos/effect": "0.8.2-main.
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/keys": "0.8.2-main.
|
|
66
|
-
"@dxos/
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/plugin-
|
|
71
|
-
"@dxos/plugin-
|
|
72
|
-
"@dxos/plugin-
|
|
73
|
-
"@dxos/plugin-
|
|
74
|
-
"@dxos/plugin-script": "0.8.2-main.
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-space": "0.8.2-main.
|
|
77
|
-
"@dxos/plugin-
|
|
78
|
-
"@dxos/plugin-transcription": "0.8.2-main.
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/react-edge-client": "0.8.2-main.
|
|
82
|
-
"@dxos/react-ui-canvas-
|
|
83
|
-
"@dxos/react-ui-
|
|
84
|
-
"@dxos/react-ui-
|
|
85
|
-
"@dxos/react-ui-dnd": "0.8.2-main.
|
|
86
|
-
"@dxos/react-ui-
|
|
87
|
-
"@dxos/react-ui-
|
|
88
|
-
"@dxos/react-ui-
|
|
89
|
-
"@dxos/react-ui-
|
|
90
|
-
"@dxos/react-ui-
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/
|
|
93
|
-
"@dxos/
|
|
49
|
+
"@dxos/app-framework": "0.8.2-main.30e4dbb",
|
|
50
|
+
"@dxos/artifact": "0.8.2-main.30e4dbb",
|
|
51
|
+
"@dxos/async": "0.8.2-main.30e4dbb",
|
|
52
|
+
"@dxos/assistant": "0.8.2-main.30e4dbb",
|
|
53
|
+
"@dxos/compute": "0.8.2-main.30e4dbb",
|
|
54
|
+
"@dxos/conductor": "0.8.2-main.30e4dbb",
|
|
55
|
+
"@dxos/client": "0.8.2-main.30e4dbb",
|
|
56
|
+
"@dxos/context": "0.8.2-main.30e4dbb",
|
|
57
|
+
"@dxos/echo": "0.8.2-main.30e4dbb",
|
|
58
|
+
"@dxos/echo-db": "0.8.2-main.30e4dbb",
|
|
59
|
+
"@dxos/echo-protocol": "0.8.2-main.30e4dbb",
|
|
60
|
+
"@dxos/echo-schema": "0.8.2-main.30e4dbb",
|
|
61
|
+
"@dxos/edge-client": "0.8.2-main.30e4dbb",
|
|
62
|
+
"@dxos/effect": "0.8.2-main.30e4dbb",
|
|
63
|
+
"@dxos/functions": "0.8.2-main.30e4dbb",
|
|
64
|
+
"@dxos/invariant": "0.8.2-main.30e4dbb",
|
|
65
|
+
"@dxos/keys": "0.8.2-main.30e4dbb",
|
|
66
|
+
"@dxos/local-storage": "0.8.2-main.30e4dbb",
|
|
67
|
+
"@dxos/log": "0.8.2-main.30e4dbb",
|
|
68
|
+
"@dxos/plugin-client": "0.8.2-main.30e4dbb",
|
|
69
|
+
"@dxos/live-object": "0.8.2-main.30e4dbb",
|
|
70
|
+
"@dxos/plugin-deck": "0.8.2-main.30e4dbb",
|
|
71
|
+
"@dxos/plugin-graph": "0.8.2-main.30e4dbb",
|
|
72
|
+
"@dxos/plugin-inbox": "0.8.2-main.30e4dbb",
|
|
73
|
+
"@dxos/plugin-sketch": "0.8.2-main.30e4dbb",
|
|
74
|
+
"@dxos/plugin-script": "0.8.2-main.30e4dbb",
|
|
75
|
+
"@dxos/plugin-markdown": "0.8.2-main.30e4dbb",
|
|
76
|
+
"@dxos/plugin-space": "0.8.2-main.30e4dbb",
|
|
77
|
+
"@dxos/plugin-wnfs": "0.8.2-main.30e4dbb",
|
|
78
|
+
"@dxos/plugin-transcription": "0.8.2-main.30e4dbb",
|
|
79
|
+
"@dxos/react-client": "0.8.2-main.30e4dbb",
|
|
80
|
+
"@dxos/plugin-stack": "0.8.2-main.30e4dbb",
|
|
81
|
+
"@dxos/react-edge-client": "0.8.2-main.30e4dbb",
|
|
82
|
+
"@dxos/react-ui-canvas-compute": "0.8.2-main.30e4dbb",
|
|
83
|
+
"@dxos/react-ui-canvas-editor": "0.8.2-main.30e4dbb",
|
|
84
|
+
"@dxos/react-ui-components": "0.8.2-main.30e4dbb",
|
|
85
|
+
"@dxos/react-ui-dnd": "0.8.2-main.30e4dbb",
|
|
86
|
+
"@dxos/react-ui-form": "0.8.2-main.30e4dbb",
|
|
87
|
+
"@dxos/react-ui-list": "0.8.2-main.30e4dbb",
|
|
88
|
+
"@dxos/react-ui-editor": "0.8.2-main.30e4dbb",
|
|
89
|
+
"@dxos/react-ui-sfx": "0.8.2-main.30e4dbb",
|
|
90
|
+
"@dxos/react-ui-stack": "0.8.2-main.30e4dbb",
|
|
91
|
+
"@dxos/schema": "0.8.2-main.30e4dbb",
|
|
92
|
+
"@dxos/util": "0.8.2-main.30e4dbb",
|
|
93
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.2-main.30e4dbb"
|
|
94
94
|
},
|
|
95
95
|
"devDependencies": {
|
|
96
96
|
"@types/lodash.get": "^4.4.7",
|
|
@@ -101,23 +101,23 @@
|
|
|
101
101
|
"react": "~18.2.0",
|
|
102
102
|
"react-dom": "~18.2.0",
|
|
103
103
|
"vite": "5.4.7",
|
|
104
|
-
"@dxos/artifact-testing": "0.8.2-main.
|
|
105
|
-
"@dxos/echo-db": "0.8.2-main.
|
|
106
|
-
"@dxos/plugin-chess": "0.8.2-main.
|
|
107
|
-
"@dxos/plugin-inbox": "0.8.2-main.
|
|
108
|
-
"@dxos/plugin-
|
|
109
|
-
"@dxos/plugin-
|
|
110
|
-
"@dxos/random": "0.8.2-main.
|
|
111
|
-
"@dxos/react-ui
|
|
112
|
-
"@dxos/react-ui": "0.8.2-main.
|
|
113
|
-
"@dxos/storybook-utils": "0.8.2-main.
|
|
104
|
+
"@dxos/artifact-testing": "0.8.2-main.30e4dbb",
|
|
105
|
+
"@dxos/echo-db": "0.8.2-main.30e4dbb",
|
|
106
|
+
"@dxos/plugin-chess": "0.8.2-main.30e4dbb",
|
|
107
|
+
"@dxos/plugin-inbox": "0.8.2-main.30e4dbb",
|
|
108
|
+
"@dxos/plugin-map": "0.8.2-main.30e4dbb",
|
|
109
|
+
"@dxos/plugin-table": "0.8.2-main.30e4dbb",
|
|
110
|
+
"@dxos/random": "0.8.2-main.30e4dbb",
|
|
111
|
+
"@dxos/react-ui": "0.8.2-main.30e4dbb",
|
|
112
|
+
"@dxos/react-ui-theme": "0.8.2-main.30e4dbb",
|
|
113
|
+
"@dxos/storybook-utils": "0.8.2-main.30e4dbb"
|
|
114
114
|
},
|
|
115
115
|
"peerDependencies": {
|
|
116
116
|
"effect": "^3.13.3",
|
|
117
117
|
"react": "~18.2.0",
|
|
118
118
|
"react-dom": "~18.2.0",
|
|
119
|
-
"@dxos/react-ui": "0.8.2-main.
|
|
120
|
-
"@dxos/react-ui-theme": "0.8.2-main.
|
|
119
|
+
"@dxos/react-ui": "0.8.2-main.30e4dbb",
|
|
120
|
+
"@dxos/react-ui-theme": "0.8.2-main.30e4dbb"
|
|
121
121
|
},
|
|
122
122
|
"publishConfig": {
|
|
123
123
|
"access": "public"
|
|
@@ -71,7 +71,7 @@ export default (context: PluginsContext) =>
|
|
|
71
71
|
},
|
|
72
72
|
properties: {
|
|
73
73
|
label: ['open assistant label', { ns: ASSISTANT_PLUGIN }],
|
|
74
|
-
icon: 'ph--
|
|
74
|
+
icon: 'ph--sparkle--regular',
|
|
75
75
|
disposition: 'pin-end',
|
|
76
76
|
position: 'hoist',
|
|
77
77
|
keyBinding: {
|
|
@@ -94,7 +94,7 @@ export default (context: PluginsContext) =>
|
|
|
94
94
|
data: 'assistant-chat',
|
|
95
95
|
properties: {
|
|
96
96
|
label: ['assistant chat label', { ns: ASSISTANT_PLUGIN }],
|
|
97
|
-
icon: 'ph--
|
|
97
|
+
icon: 'ph--sparkle--regular',
|
|
98
98
|
position: 'hoist',
|
|
99
99
|
},
|
|
100
100
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { Capabilities, contributes, createResolver } from '@dxos/app-framework';
|
|
6
|
-
import {
|
|
6
|
+
import { Type } from '@dxos/echo';
|
|
7
7
|
import { DXN, QueueSubspaceTags } from '@dxos/keys';
|
|
8
8
|
import { live, refFromDXN } from '@dxos/live-object';
|
|
9
9
|
|
|
@@ -18,7 +18,7 @@ export default () => [
|
|
|
18
18
|
data: {
|
|
19
19
|
object: live(AIChatType, {
|
|
20
20
|
assistantChatQueue: refFromDXN(
|
|
21
|
-
new DXN(DXN.kind.QUEUE, [QueueSubspaceTags.DATA, spaceId, ObjectId.random()]),
|
|
21
|
+
new DXN(DXN.kind.QUEUE, [QueueSubspaceTags.DATA, spaceId, Type.ObjectId.random()]),
|
|
22
22
|
),
|
|
23
23
|
}),
|
|
24
24
|
},
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import React, { useMemo } from 'react';
|
|
6
6
|
|
|
7
7
|
import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
|
|
8
|
-
import {
|
|
8
|
+
import { Type } from '@dxos/echo';
|
|
9
9
|
import { SettingsStore } from '@dxos/local-storage';
|
|
10
|
-
import { fullyQualifiedId, getSpace, isLiveObject, type SpaceId } from '@dxos/react-client/echo';
|
|
10
|
+
import { fullyQualifiedId, getSpace, getTypename, isLiveObject, type SpaceId } from '@dxos/react-client/echo';
|
|
11
11
|
|
|
12
12
|
import { AssistantDialog, AssistantSettings, ChatContainer, PromptSettings, TemplateContainer } from '../components';
|
|
13
13
|
import { ASSISTANT_PLUGIN, ASSISTANT_DIALOG } from '../meta';
|
|
@@ -32,7 +32,7 @@ export default () =>
|
|
|
32
32
|
id: `${ASSISTANT_PLUGIN}/chat`,
|
|
33
33
|
role: 'article',
|
|
34
34
|
filter: (data): data is { subject: AIChatType; variant: undefined } =>
|
|
35
|
-
|
|
35
|
+
Type.instanceOf(AIChatType, data.subject) && data.variant !== 'assistant-chat',
|
|
36
36
|
component: ({ data, role }) => <ChatContainer role={role} chat={data.subject} />,
|
|
37
37
|
}),
|
|
38
38
|
createSurface({
|
|
@@ -57,13 +57,13 @@ export default () =>
|
|
|
57
57
|
createSurface({
|
|
58
58
|
id: `${ASSISTANT_PLUGIN}/template`,
|
|
59
59
|
role: 'article',
|
|
60
|
-
filter: (data): data is { subject: TemplateType } =>
|
|
60
|
+
filter: (data): data is { subject: TemplateType } => Type.instanceOf(TemplateType, data.subject),
|
|
61
61
|
component: ({ data, role }) => <TemplateContainer role={role} template={data.subject} />,
|
|
62
62
|
}),
|
|
63
63
|
createSurface({
|
|
64
64
|
id: `${ASSISTANT_PLUGIN}/prompt-settings`,
|
|
65
65
|
role: 'object-settings',
|
|
66
|
-
filter: (data): data is { subject: TemplateType } =>
|
|
66
|
+
filter: (data): data is { subject: TemplateType } => Type.instanceOf(TemplateType, data.subject),
|
|
67
67
|
component: ({ data }) => <PromptSettings template={data.subject} />,
|
|
68
68
|
}),
|
|
69
69
|
]);
|
|
@@ -17,7 +17,7 @@ import translations from '../../translations';
|
|
|
17
17
|
const meta: Meta<typeof Prompt> = {
|
|
18
18
|
title: 'plugins/plugin-automation/Prompt',
|
|
19
19
|
component: Prompt,
|
|
20
|
-
decorators: [withTheme, withLayout(
|
|
20
|
+
decorators: [withTheme, withLayout()],
|
|
21
21
|
parameters: {
|
|
22
22
|
layout: 'centered',
|
|
23
23
|
translations,
|
|
@@ -7,7 +7,7 @@ import React, { useRef, useState } from 'react';
|
|
|
7
7
|
import { useVoiceInput } from '@dxos/plugin-transcription';
|
|
8
8
|
import { Icon, IconButton, type ThemedClassName, Tooltip, useTranslation } from '@dxos/react-ui';
|
|
9
9
|
import { Spinner } from '@dxos/react-ui-sfx';
|
|
10
|
-
import {
|
|
10
|
+
import { errorText, mx } from '@dxos/react-ui-theme';
|
|
11
11
|
|
|
12
12
|
import { Prompt, type PromptController, type PromptProps } from './Prompt';
|
|
13
13
|
import { ASSISTANT_PLUGIN } from '../../meta';
|
|
@@ -54,17 +54,9 @@ export const PromptBar = ({
|
|
|
54
54
|
>
|
|
55
55
|
<div className='flex w-[--rail-action] h-[--rail-action] items-center justify-center'>
|
|
56
56
|
{(error && (
|
|
57
|
-
<Tooltip.
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
</Tooltip.Trigger>
|
|
61
|
-
<Tooltip.Portal>
|
|
62
|
-
<Tooltip.Content>
|
|
63
|
-
<div className={mx('text-sm', errorMessageColors)}>{error.message}</div>
|
|
64
|
-
<Tooltip.Arrow />
|
|
65
|
-
</Tooltip.Content>
|
|
66
|
-
</Tooltip.Portal>
|
|
67
|
-
</Tooltip.Root>
|
|
57
|
+
<Tooltip.Trigger content={error.message} delayDuration={0}>
|
|
58
|
+
<Icon icon='ph--warning-circle--regular' classNames={errorText} size={5} />
|
|
59
|
+
</Tooltip.Trigger>
|
|
68
60
|
)) || <Spinner active={processing} />}
|
|
69
61
|
</div>
|
|
70
62
|
<Prompt
|
|
@@ -10,7 +10,7 @@ import React, { useCallback, useEffect, useState } from 'react';
|
|
|
10
10
|
import { IntentPlugin } from '@dxos/app-framework';
|
|
11
11
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
12
12
|
import { type Message } from '@dxos/artifact';
|
|
13
|
-
import {
|
|
13
|
+
import { Type } from '@dxos/echo';
|
|
14
14
|
import { faker } from '@dxos/random';
|
|
15
15
|
import { withClientProvider } from '@dxos/react-client/testing';
|
|
16
16
|
import { withLayout, withSignals, withTheme } from '@dxos/storybook-utils';
|
|
@@ -29,9 +29,9 @@ const DefaultStory = ({ messages: _messages, ...props }: ThreadProps) => {
|
|
|
29
29
|
|
|
30
30
|
const handleSubmit = useCallback(
|
|
31
31
|
(text: string) => {
|
|
32
|
-
const request: Message = { id: ObjectId.random(), role: 'user', content: [{ type: 'text', text }] };
|
|
32
|
+
const request: Message = { id: Type.ObjectId.random(), role: 'user', content: [{ type: 'text', text }] };
|
|
33
33
|
const response: Message = {
|
|
34
|
-
id: ObjectId.random(),
|
|
34
|
+
id: Type.ObjectId.random(),
|
|
35
35
|
role: 'assistant',
|
|
36
36
|
content: [{ type: 'text', disposition: 'cot', pending: true, text: faker.lorem.paragraphs(1) }],
|
|
37
37
|
};
|
|
@@ -44,7 +44,7 @@ const DefaultStory = ({ messages: _messages, ...props }: ThreadProps) => {
|
|
|
44
44
|
request,
|
|
45
45
|
response,
|
|
46
46
|
{
|
|
47
|
-
id: ObjectId.random(),
|
|
47
|
+
id: Type.ObjectId.random(),
|
|
48
48
|
role: 'assistant',
|
|
49
49
|
content: [{ type: 'text', text: faker.lorem.paragraphs(1) }],
|
|
50
50
|
},
|
|
@@ -74,13 +74,10 @@ const meta: Meta<ThreadProps> = {
|
|
|
74
74
|
component: Thread,
|
|
75
75
|
decorators: [
|
|
76
76
|
withSignals,
|
|
77
|
-
withClientProvider({
|
|
78
|
-
createIdentity: true,
|
|
79
|
-
createSpace: true,
|
|
80
|
-
}),
|
|
77
|
+
withClientProvider({ createIdentity: true, createSpace: true }),
|
|
81
78
|
withPluginManager({ plugins: [IntentPlugin()] }),
|
|
82
79
|
withTheme,
|
|
83
|
-
withLayout({ fullscreen: true,
|
|
80
|
+
withLayout({ fullscreen: true, classNames: 'flex justify-center' }),
|
|
84
81
|
],
|
|
85
82
|
parameters: {
|
|
86
83
|
translations,
|
|
@@ -93,7 +90,7 @@ type Story = StoryObj<ThreadProps>;
|
|
|
93
90
|
|
|
94
91
|
const TEST_MESSAGES: Message[] = [
|
|
95
92
|
{
|
|
96
|
-
id: ObjectId.random(),
|
|
93
|
+
id: Type.ObjectId.random(),
|
|
97
94
|
role: 'user',
|
|
98
95
|
content: [
|
|
99
96
|
{
|
|
@@ -103,7 +100,7 @@ const TEST_MESSAGES: Message[] = [
|
|
|
103
100
|
],
|
|
104
101
|
},
|
|
105
102
|
{
|
|
106
|
-
id: ObjectId.random(),
|
|
103
|
+
id: Type.ObjectId.random(),
|
|
107
104
|
role: 'assistant',
|
|
108
105
|
content: [
|
|
109
106
|
{
|
|
@@ -128,7 +125,7 @@ const TEST_MESSAGES: Message[] = [
|
|
|
128
125
|
],
|
|
129
126
|
},
|
|
130
127
|
{
|
|
131
|
-
id: ObjectId.random(),
|
|
128
|
+
id: Type.ObjectId.random(),
|
|
132
129
|
role: 'user',
|
|
133
130
|
content: [
|
|
134
131
|
{
|
|
@@ -139,7 +136,7 @@ const TEST_MESSAGES: Message[] = [
|
|
|
139
136
|
],
|
|
140
137
|
},
|
|
141
138
|
{
|
|
142
|
-
id: ObjectId.random(),
|
|
139
|
+
id: Type.ObjectId.random(),
|
|
143
140
|
role: 'assistant',
|
|
144
141
|
content: [
|
|
145
142
|
{
|
|
@@ -151,7 +148,7 @@ const TEST_MESSAGES: Message[] = [
|
|
|
151
148
|
],
|
|
152
149
|
},
|
|
153
150
|
{
|
|
154
|
-
id: ObjectId.random(),
|
|
151
|
+
id: Type.ObjectId.random(),
|
|
155
152
|
role: 'user',
|
|
156
153
|
content: [
|
|
157
154
|
{
|
|
@@ -162,7 +159,7 @@ const TEST_MESSAGES: Message[] = [
|
|
|
162
159
|
],
|
|
163
160
|
},
|
|
164
161
|
{
|
|
165
|
-
id: ObjectId.random(),
|
|
162
|
+
id: Type.ObjectId.random(),
|
|
166
163
|
role: 'assistant',
|
|
167
164
|
content: [
|
|
168
165
|
{
|
|
@@ -20,10 +20,9 @@ import { withPluginManager } from '@dxos/app-framework/testing';
|
|
|
20
20
|
import { Message, type Tool } from '@dxos/artifact';
|
|
21
21
|
import { genericTools, localServiceEndpoints } from '@dxos/artifact-testing';
|
|
22
22
|
import { AIServiceEdgeClient } from '@dxos/assistant';
|
|
23
|
-
import {
|
|
24
|
-
import { create
|
|
23
|
+
import { DXN, Type } from '@dxos/echo';
|
|
24
|
+
import { create } from '@dxos/echo-schema';
|
|
25
25
|
import { invariant } from '@dxos/invariant';
|
|
26
|
-
import { DXN } from '@dxos/keys';
|
|
27
26
|
import { ChessPlugin } from '@dxos/plugin-chess';
|
|
28
27
|
import { ChessType } from '@dxos/plugin-chess/types';
|
|
29
28
|
import { ClientPlugin } from '@dxos/plugin-client';
|
|
@@ -132,7 +131,7 @@ const DefaultStory = ({ items: _items, prompts = [], ...props }: RenderProps) =>
|
|
|
132
131
|
|
|
133
132
|
const handleDelete = useCallback(
|
|
134
133
|
(id: string) => {
|
|
135
|
-
invariant(ObjectId.isValid(id), 'Invalid message id');
|
|
134
|
+
invariant(Type.ObjectId.isValid(id), 'Invalid message id');
|
|
136
135
|
void queue?.delete([id]);
|
|
137
136
|
},
|
|
138
137
|
[queue],
|
|
@@ -225,7 +224,7 @@ const meta: Meta<typeof DefaultStory> = {
|
|
|
225
224
|
fireEvents: [Events.SetupArtifactDefinition],
|
|
226
225
|
}),
|
|
227
226
|
withTheme,
|
|
228
|
-
withLayout({ fullscreen: true
|
|
227
|
+
withLayout({ fullscreen: true }),
|
|
229
228
|
],
|
|
230
229
|
parameters: {
|
|
231
230
|
translations,
|
|
@@ -21,7 +21,7 @@ import { ToolBlock, isToolMessage } from './ToolInvocations';
|
|
|
21
21
|
import { ToolboxContainer } from '../Toolbox';
|
|
22
22
|
|
|
23
23
|
const panelClassNames = 'flex flex-col w-full px-2 bg-groupSurface rounded-md';
|
|
24
|
-
const userClassNames = 'bg-[--user-fill] text-
|
|
24
|
+
const userClassNames = 'bg-[--user-fill] text-accentSurfaceText';
|
|
25
25
|
|
|
26
26
|
const ToggleContainer = (props: ToggleContainerProps) => {
|
|
27
27
|
return <NativeToggleContainer {...props} classNames={mx(panelClassNames, props.classNames)} />;
|