@dxos/plugin-assistant 0.8.3-main.672df60 → 0.8.3-staging.0fa589b
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-UAZSN6GT.mjs → AssistantDialog-MQOOR364.mjs} +5 -4
- package/dist/lib/browser/BlueprintContainer-AT5Y7EXG.mjs +321 -0
- package/dist/lib/browser/BlueprintContainer-AT5Y7EXG.mjs.map +7 -0
- package/dist/lib/browser/{ChatContainer-UTN3AO5U.mjs → ChatContainer-C2NEAS3A.mjs} +5 -4
- package/dist/lib/browser/{TemplateContainer-AKUYL4AV.mjs → TemplateContainer-QQHVOTSI.mjs} +2 -2
- package/dist/lib/browser/TemplateContainer-QQHVOTSI.mjs.map +7 -0
- package/dist/lib/browser/{ai-client-COXVUC6V.mjs → ai-client-MK2ZZII2.mjs} +12 -8
- package/dist/lib/browser/ai-client-MK2ZZII2.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-56OZ5RW4.mjs → app-graph-builder-E4H5DCOJ.mjs} +52 -33
- package/dist/lib/browser/app-graph-builder-E4H5DCOJ.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NBSPGIHL.mjs → chunk-AAOKC2JN.mjs} +17 -15
- package/dist/lib/browser/chunk-AAOKC2JN.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6SD7S7W5.mjs → chunk-BI6AHRNJ.mjs} +8 -8
- package/dist/lib/browser/{chunk-6SD7S7W5.mjs.map → chunk-BI6AHRNJ.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-Q6XE3O3E.mjs → chunk-JO4W3MF7.mjs} +44 -73
- package/dist/lib/browser/chunk-JO4W3MF7.mjs.map +7 -0
- package/dist/lib/browser/chunk-MEGMOFJB.mjs +16 -0
- package/dist/lib/browser/chunk-MEGMOFJB.mjs.map +7 -0
- package/dist/lib/browser/{chunk-3F44MBHU.mjs → chunk-UE3IZ4PN.mjs} +1 -1
- package/dist/lib/browser/{chunk-3F44MBHU.mjs.map → chunk-UE3IZ4PN.mjs.map} +2 -2
- package/dist/lib/browser/index.mjs +84 -30
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/{intent-resolver-GWELYIX2.mjs → intent-resolver-3UICTGPM.mjs} +12 -8
- package/dist/lib/browser/intent-resolver-3UICTGPM.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-DGS34EON.mjs → react-surface-LXCNUSZN.mjs} +29 -14
- package/dist/lib/browser/react-surface-LXCNUSZN.mjs.map +7 -0
- package/dist/lib/browser/{settings-BTFB7IQ6.mjs → settings-XRHXVWGB.mjs} +4 -4
- package/dist/lib/browser/settings-XRHXVWGB.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +1 -1
- package/dist/lib/node/{AssistantDialog-RTB5Q7FP.cjs → AssistantDialog-AN4Z6YUV.cjs} +9 -8
- package/dist/lib/node/{AssistantDialog-RTB5Q7FP.cjs.map → AssistantDialog-AN4Z6YUV.cjs.map} +1 -1
- package/dist/lib/node/BlueprintContainer-NOWLDYCZ.cjs +344 -0
- package/dist/lib/node/BlueprintContainer-NOWLDYCZ.cjs.map +7 -0
- package/dist/lib/node/{ChatContainer-P3JL4VZ7.cjs → ChatContainer-VKYBQHUB.cjs} +9 -8
- package/dist/lib/node/{ChatContainer-P3JL4VZ7.cjs.map → ChatContainer-VKYBQHUB.cjs.map} +1 -1
- package/dist/lib/node/{TemplateContainer-CTG2MB4W.cjs → TemplateContainer-JZF2DCCG.cjs} +5 -5
- package/dist/lib/node/TemplateContainer-JZF2DCCG.cjs.map +7 -0
- package/dist/lib/node/{ai-client-R2CGEYZW.cjs → ai-client-7HNSMUMT.cjs} +14 -10
- package/dist/lib/node/ai-client-7HNSMUMT.cjs.map +7 -0
- package/dist/lib/node/{app-graph-builder-QLF353LH.cjs → app-graph-builder-PPR5B5KU.cjs} +63 -44
- package/dist/lib/node/app-graph-builder-PPR5B5KU.cjs.map +7 -0
- package/dist/lib/node/chunk-FUAGEO7Q.cjs +52 -0
- package/dist/lib/node/chunk-FUAGEO7Q.cjs.map +7 -0
- package/dist/lib/node/{chunk-BWL5A3O5.cjs → chunk-IKZBMHSW.cjs} +14 -14
- package/dist/lib/node/{chunk-BWL5A3O5.cjs.map → chunk-IKZBMHSW.cjs.map} +3 -3
- package/dist/lib/node/{chunk-UNVDZOLA.cjs → chunk-LMDJEGZ2.cjs} +28 -26
- package/dist/lib/node/chunk-LMDJEGZ2.cjs.map +7 -0
- package/dist/lib/node/{chunk-PG7YNQ4R.cjs → chunk-NIDICM57.cjs} +66 -96
- package/dist/lib/node/chunk-NIDICM57.cjs.map +7 -0
- package/dist/lib/node/{chunk-TS3H5OSX.cjs → chunk-QGPWY6GW.cjs} +4 -4
- package/dist/lib/node/{chunk-TS3H5OSX.cjs.map → chunk-QGPWY6GW.cjs.map} +2 -2
- package/dist/lib/node/index.cjs +129 -73
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/{intent-resolver-U7663JU7.cjs → intent-resolver-QSWGTKON.cjs} +17 -13
- package/dist/lib/node/intent-resolver-QSWGTKON.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-QXZTILW6.cjs → react-surface-D3NBYRZ6.cjs} +41 -26
- package/dist/lib/node/react-surface-D3NBYRZ6.cjs.map +7 -0
- package/dist/lib/node/{settings-LBJMT6YB.cjs → settings-2JXLKYGE.cjs} +7 -7
- package/dist/lib/node/settings-2JXLKYGE.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +14 -14
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{AssistantDialog-DONAO6SA.mjs → AssistantDialog-6WEMLUPU.mjs} +5 -4
- package/dist/lib/{browser/AssistantDialog-UAZSN6GT.mjs.map → node-esm/AssistantDialog-6WEMLUPU.mjs.map} +1 -1
- package/dist/lib/node-esm/BlueprintContainer-STOJAVML.mjs +322 -0
- package/dist/lib/node-esm/BlueprintContainer-STOJAVML.mjs.map +7 -0
- package/dist/lib/node-esm/{ChatContainer-FVIGCDIG.mjs → ChatContainer-3MVBTUJN.mjs} +5 -4
- package/dist/lib/{browser/ChatContainer-UTN3AO5U.mjs.map → node-esm/ChatContainer-3MVBTUJN.mjs.map} +1 -1
- package/dist/lib/node-esm/{TemplateContainer-IVDQ4XQG.mjs → TemplateContainer-SOEWY2ZN.mjs} +2 -2
- package/dist/lib/node-esm/TemplateContainer-SOEWY2ZN.mjs.map +7 -0
- package/dist/lib/node-esm/{ai-client-I5LXHMOZ.mjs → ai-client-XGZBJ6BE.mjs} +12 -8
- package/dist/lib/node-esm/ai-client-XGZBJ6BE.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-5YX5TKKT.mjs → app-graph-builder-3SY5MBIK.mjs} +52 -33
- package/dist/lib/node-esm/app-graph-builder-3SY5MBIK.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-34EX6E5Q.mjs +18 -0
- package/dist/lib/node-esm/chunk-34EX6E5Q.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-HLPGKJ7N.mjs → chunk-3UEZLJ2V.mjs} +1 -1
- package/dist/lib/node-esm/{chunk-HLPGKJ7N.mjs.map → chunk-3UEZLJ2V.mjs.map} +2 -2
- package/dist/lib/node-esm/{chunk-TQYSF2GS.mjs → chunk-J6UXXZGJ.mjs} +17 -15
- package/dist/lib/node-esm/chunk-J6UXXZGJ.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-MNH6E6EB.mjs → chunk-OD574YIU.mjs} +44 -73
- package/dist/lib/node-esm/chunk-OD574YIU.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-GJE4WCUJ.mjs → chunk-UCOFKNKN.mjs} +8 -8
- package/dist/lib/node-esm/{chunk-GJE4WCUJ.mjs.map → chunk-UCOFKNKN.mjs.map} +3 -3
- package/dist/lib/node-esm/index.mjs +84 -30
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/{intent-resolver-N5TM3RTL.mjs → intent-resolver-E6MXTYAU.mjs} +12 -8
- package/dist/lib/node-esm/intent-resolver-E6MXTYAU.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-FTKGQQD2.mjs → react-surface-7HA5EDWY.mjs} +29 -14
- package/dist/lib/node-esm/react-surface-7HA5EDWY.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-TGCCAH5D.mjs → settings-5IAY6BT4.mjs} +4 -4
- package/dist/lib/node-esm/settings-5IAY6BT4.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +1 -1
- package/dist/types/src/AssistantPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/ai-client.d.ts +2 -2
- 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/capabilities.d.ts +2 -2
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +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.stories.d.ts.map +1 -1
- package/dist/types/src/components/BlueprintContainer.d.ts +9 -0
- package/dist/types/src/components/BlueprintContainer.d.ts.map +1 -0
- package/dist/types/src/components/BlueprintEditor/BlueprintEditor.d.ts +8 -3
- package/dist/types/src/components/BlueprintEditor/BlueprintEditor.d.ts.map +1 -1
- package/dist/types/src/components/BlueprintEditor/index.d.ts +1 -2
- package/dist/types/src/components/BlueprintEditor/index.d.ts.map +1 -1
- package/dist/types/src/components/TemplateContainer.d.ts +2 -2
- package/dist/types/src/components/TemplateContainer.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.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/index.d.ts +4 -3
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/events.d.ts +4 -0
- package/dist/types/src/events.d.ts.map +1 -0
- package/dist/types/src/hooks/processor.d.ts +3 -3
- package/dist/types/src/hooks/useContextProvider.d.ts.map +1 -1
- package/dist/types/src/hooks/useMessageQueue.d.ts +8 -8
- package/dist/types/src/hooks/useMessageQueue.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +2 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/parser/filter-generator.d.ts +1 -1
- package/dist/types/src/parser/filter-generator.d.ts.map +1 -1
- package/dist/types/src/queue-logger.d.ts +11 -0
- package/dist/types/src/queue-logger.d.ts.map +1 -0
- package/dist/types/src/stories/Query.stories.d.ts.map +1 -1
- package/dist/types/src/stories/Research.stories.d.ts +1 -1
- package/dist/types/src/stories/Research.stories.d.ts.map +1 -1
- package/dist/types/src/testing/test-blueprint.d.ts +4 -10
- package/dist/types/src/testing/test-blueprint.d.ts.map +1 -1
- package/dist/types/src/tools/openapi.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +15 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/chat.d.ts +13 -10
- package/dist/types/src/types/chat.d.ts.map +1 -1
- package/dist/types/src/types/service.d.ts +88 -9
- package/dist/types/src/types/service.d.ts.map +1 -1
- package/dist/types/src/types/template.d.ts +3 -23
- package/dist/types/src/types/template.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +6 -6
- package/package.json +71 -68
- package/src/AssistantPlugin.tsx +30 -7
- package/src/capabilities/ai-client.ts +11 -6
- package/src/capabilities/app-graph-builder.ts +69 -54
- package/src/capabilities/capabilities.ts +3 -2
- package/src/capabilities/intent-resolver.ts +12 -5
- package/src/capabilities/react-surface.tsx +23 -19
- package/src/capabilities/settings.ts +2 -2
- package/src/components/AmbientDialog/AmbientDialog.stories.tsx +1 -0
- package/src/components/BlueprintContainer.tsx +148 -0
- package/src/components/BlueprintEditor/BlueprintEditor.stories.tsx +2 -2
- package/src/components/BlueprintEditor/BlueprintEditor.tsx +31 -21
- package/src/components/BlueprintEditor/index.ts +1 -3
- package/src/components/PromptSettings.tsx +1 -1
- package/src/components/TemplateContainer.tsx +5 -2
- package/src/components/TemplateEditor/TemplateEditor.stories.tsx +2 -2
- package/src/components/TemplateEditor/TemplateForm.stories.tsx +2 -2
- package/src/components/Thread/Thread.stories.tsx +19 -27
- package/src/components/Thread/ThreadContainer.stories.tsx +11 -12
- package/src/components/Thread/ThreadContainer.tsx +3 -4
- package/src/components/Thread/reducer.ts +3 -3
- package/src/components/index.ts +1 -1
- package/src/events.ts +11 -0
- package/src/hooks/processor.ts +4 -4
- package/src/hooks/useContextProvider.ts +13 -16
- package/src/hooks/useMessageQueue.ts +3 -2
- package/src/index.ts +2 -0
- package/src/parser/filter-generator.test.ts +1 -1
- package/src/parser/filter-generator.ts +1 -1
- package/src/queue-logger.ts +125 -0
- package/src/stories/Query.stories.tsx +28 -29
- package/src/stories/Research.stories.tsx +32 -46
- package/src/stories/test-data.ts +12 -12
- package/src/testing/test-blueprint.ts +14 -6
- package/src/testing/test-services.ts +6 -6
- package/src/tools/function.ts +2 -2
- package/src/tools/openapi.test.ts +7 -13
- package/src/tools/openapi.ts +5 -5
- package/src/translations.ts +19 -5
- package/src/types/chat.ts +3 -4
- package/src/types/service.ts +8 -4
- package/src/types/template.ts +11 -3
- package/dist/lib/browser/BlueprintEditor-DGV4KJDM.mjs +0 -45
- package/dist/lib/browser/BlueprintEditor-DGV4KJDM.mjs.map +0 -7
- package/dist/lib/browser/TemplateContainer-AKUYL4AV.mjs.map +0 -7
- package/dist/lib/browser/ai-client-COXVUC6V.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-56OZ5RW4.mjs.map +0 -7
- package/dist/lib/browser/chunk-NBSPGIHL.mjs.map +0 -7
- package/dist/lib/browser/chunk-Q6XE3O3E.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-GWELYIX2.mjs.map +0 -7
- package/dist/lib/browser/react-surface-DGS34EON.mjs.map +0 -7
- package/dist/lib/browser/settings-BTFB7IQ6.mjs.map +0 -7
- package/dist/lib/node/BlueprintEditor-43VM3XPO.cjs +0 -72
- package/dist/lib/node/BlueprintEditor-43VM3XPO.cjs.map +0 -7
- package/dist/lib/node/TemplateContainer-CTG2MB4W.cjs.map +0 -7
- package/dist/lib/node/ai-client-R2CGEYZW.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-QLF353LH.cjs.map +0 -7
- package/dist/lib/node/chunk-PG7YNQ4R.cjs.map +0 -7
- package/dist/lib/node/chunk-UNVDZOLA.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-U7663JU7.cjs.map +0 -7
- package/dist/lib/node/react-surface-QXZTILW6.cjs.map +0 -7
- package/dist/lib/node/settings-LBJMT6YB.cjs.map +0 -7
- package/dist/lib/node-esm/BlueprintEditor-CTARB2FO.mjs +0 -47
- package/dist/lib/node-esm/BlueprintEditor-CTARB2FO.mjs.map +0 -7
- package/dist/lib/node-esm/TemplateContainer-IVDQ4XQG.mjs.map +0 -7
- package/dist/lib/node-esm/ai-client-I5LXHMOZ.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-5YX5TKKT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-MNH6E6EB.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-TQYSF2GS.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-N5TM3RTL.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-FTKGQQD2.mjs.map +0 -7
- package/dist/lib/node-esm/settings-TGCCAH5D.mjs.map +0 -7
- /package/dist/lib/{node-esm/AssistantDialog-DONAO6SA.mjs.map → browser/AssistantDialog-MQOOR364.mjs.map} +0 -0
- /package/dist/lib/{node-esm/ChatContainer-FVIGCDIG.mjs.map → browser/ChatContainer-C2NEAS3A.mjs.map} +0 -0
|
@@ -2,6 +2,9 @@ declare const _default: {
|
|
|
2
2
|
'en-US': {
|
|
3
3
|
[x: string]: {
|
|
4
4
|
'typename label': string;
|
|
5
|
+
'typename label_zero': string;
|
|
6
|
+
'typename label_one': string;
|
|
7
|
+
'typename label_other': string;
|
|
5
8
|
'object name placeholder': string;
|
|
6
9
|
'templates label'?: undefined;
|
|
7
10
|
'open ambient chat label'?: undefined;
|
|
@@ -19,11 +22,14 @@ declare const _default: {
|
|
|
19
22
|
'description placeholder'?: undefined;
|
|
20
23
|
'select preset template placeholder'?: undefined;
|
|
21
24
|
'service registry label'?: undefined;
|
|
25
|
+
'blueprint logs label'?: undefined;
|
|
22
26
|
'assistant dialog title'?: undefined;
|
|
23
27
|
'open assistant label'?: undefined;
|
|
24
28
|
'search input placeholder'?: undefined;
|
|
25
29
|
'chat input placeholder'?: undefined;
|
|
26
30
|
'chat stop'?: undefined;
|
|
31
|
+
'button save'?: undefined;
|
|
32
|
+
'button run'?: undefined;
|
|
27
33
|
'prompt placeholder'?: undefined;
|
|
28
34
|
'microphone button'?: undefined;
|
|
29
35
|
'cancel processing button'?: undefined;
|
|
@@ -49,11 +55,14 @@ declare const _default: {
|
|
|
49
55
|
'description placeholder': string;
|
|
50
56
|
'select preset template placeholder': string;
|
|
51
57
|
'service registry label': string;
|
|
58
|
+
'blueprint logs label': string;
|
|
52
59
|
'assistant dialog title': string;
|
|
53
60
|
'open assistant label': string;
|
|
54
61
|
'search input placeholder': string;
|
|
55
62
|
'chat input placeholder': string;
|
|
56
63
|
'chat stop': string;
|
|
64
|
+
'button save': string;
|
|
65
|
+
'button run': string;
|
|
57
66
|
'prompt placeholder': string;
|
|
58
67
|
'microphone button': string;
|
|
59
68
|
'cancel processing button': string;
|
|
@@ -63,6 +72,9 @@ declare const _default: {
|
|
|
63
72
|
'settings edge llm model label': string;
|
|
64
73
|
'settings ollama llm model label': string;
|
|
65
74
|
'typename label'?: undefined;
|
|
75
|
+
'typename label_zero'?: undefined;
|
|
76
|
+
'typename label_one'?: undefined;
|
|
77
|
+
'typename label_other'?: undefined;
|
|
66
78
|
'object name placeholder'?: undefined;
|
|
67
79
|
};
|
|
68
80
|
"dxos.org/plugin/assistant": {
|
|
@@ -82,11 +94,14 @@ declare const _default: {
|
|
|
82
94
|
'description placeholder': string;
|
|
83
95
|
'select preset template placeholder': string;
|
|
84
96
|
'service registry label': string;
|
|
97
|
+
'blueprint logs label': string;
|
|
85
98
|
'assistant dialog title': string;
|
|
86
99
|
'open assistant label': string;
|
|
87
100
|
'search input placeholder': string;
|
|
88
101
|
'chat input placeholder': string;
|
|
89
102
|
'chat stop': string;
|
|
103
|
+
'button save': string;
|
|
104
|
+
'button run': string;
|
|
90
105
|
'prompt placeholder': string;
|
|
91
106
|
'microphone button': string;
|
|
92
107
|
'cancel processing button': 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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUA,wBAkEE"}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
|
+
import { Queue } from '@dxos/client/echo';
|
|
2
3
|
import { Type } from '@dxos/echo';
|
|
3
|
-
|
|
4
|
-
export declare const AIChatType: import("@dxos/echo-schema").EchoTypeSchema<Schema.Struct<{
|
|
4
|
+
export declare const AIChatType: Type.obj<Schema.Struct<{
|
|
5
5
|
id: import("@dxos/keys").ObjectIdClass;
|
|
6
6
|
name: Schema.optional<typeof Schema.String>;
|
|
7
|
-
queue: import("@dxos/echo
|
|
8
|
-
}
|
|
7
|
+
queue: Type.ref<Schema.Schema<Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>;
|
|
8
|
+
}>>;
|
|
9
9
|
export interface AIChatType extends Schema.Schema.Type<typeof AIChatType> {
|
|
10
10
|
}
|
|
11
|
-
export declare const CompanionTo:
|
|
11
|
+
export declare const CompanionTo: Type.relation<Schema.Struct<{
|
|
12
12
|
id: import("@dxos/keys").ObjectIdClass;
|
|
13
|
-
}>,
|
|
14
|
-
|
|
15
|
-
name
|
|
16
|
-
queue:
|
|
17
|
-
}
|
|
13
|
+
}>, Type.obj<Schema.Struct<{
|
|
14
|
+
id: import("@dxos/keys").ObjectIdClass;
|
|
15
|
+
name: Schema.optional<typeof Schema.String>;
|
|
16
|
+
queue: Type.ref<Schema.Schema<Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>;
|
|
17
|
+
}>>, Schema.Schema<Type.Expando, {
|
|
18
|
+
[x: string]: any;
|
|
19
|
+
id: string;
|
|
20
|
+
}, never>>;
|
|
18
21
|
export interface CompanionTo extends Schema.Schema.Type<typeof CompanionTo> {
|
|
19
22
|
}
|
|
20
23
|
//# 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,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,
|
|
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,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAElC,eAAO,MAAM,UAAU;;;;GAStB,CAAC;AACF,MAAM,WAAW,UAAW,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,UAAU,CAAC;CAAG;AAE5E,eAAO,MAAM,WAAW;;;;;;;;;UASvB,CAAC;AACF,MAAM,WAAW,WAAY,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,WAAW,CAAC;CAAG"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
|
-
import {
|
|
3
|
-
import { type Ref$ } from '@dxos/echo-schema';
|
|
4
|
-
import { FunctionType } from '@dxos/functions';
|
|
2
|
+
import { Type } from '@dxos/echo';
|
|
5
3
|
export declare const ApiAuthorization: Schema.Union<[Schema.Struct<{
|
|
6
4
|
type: Schema.Literal<["api-key"]>;
|
|
7
5
|
key: typeof Schema.String;
|
|
@@ -21,10 +19,37 @@ export declare const ApiAuthorization: Schema.Union<[Schema.Struct<{
|
|
|
21
19
|
export type ApiAuthorization = Schema.Schema.Type<typeof ApiAuthorization>;
|
|
22
20
|
declare const ServiceInterface: Schema.Union<[Schema.Struct<{
|
|
23
21
|
kind: Schema.Literal<["function"]>;
|
|
24
|
-
fn:
|
|
22
|
+
fn: Type.ref<Type.obj<Schema.Struct<{
|
|
23
|
+
name: typeof Schema.NonEmptyString;
|
|
24
|
+
version: typeof Schema.String;
|
|
25
|
+
description: Schema.optional<typeof Schema.String>;
|
|
26
|
+
source: Schema.optional<import("@dxos/echo-schema").Ref$<Type.OfKind<Type.Kind.Object> & {
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
description?: string | undefined;
|
|
29
|
+
changed?: boolean | undefined;
|
|
30
|
+
source: import("@dxos/echo-schema").Ref<Type.OfKind<Type.Kind.Object> & {
|
|
31
|
+
content: string;
|
|
32
|
+
}>;
|
|
33
|
+
}>>;
|
|
34
|
+
inputSchema: Schema.optional<Schema.Schema<Type.JsonSchema, Type.JsonSchema, never>>;
|
|
35
|
+
outputSchema: Schema.optional<Schema.Schema<Type.JsonSchema, Type.JsonSchema, never>>;
|
|
36
|
+
binding: Schema.optional<typeof Schema.String>;
|
|
37
|
+
}>>>;
|
|
25
38
|
}>, Schema.Struct<{
|
|
26
39
|
kind: Schema.Literal<["workflow"]>;
|
|
27
|
-
workflow:
|
|
40
|
+
workflow: Type.ref<Type.obj<Schema.Struct<{
|
|
41
|
+
graph: Schema.Schema<import("@dxos/graph").Graph>;
|
|
42
|
+
input: Schema.optional<Schema.Struct<{
|
|
43
|
+
id: typeof Schema.String;
|
|
44
|
+
type: Schema.optional<typeof Schema.String>;
|
|
45
|
+
data: Schema.optional<typeof Schema.Any>;
|
|
46
|
+
}>>;
|
|
47
|
+
output: Schema.optional<Schema.Struct<{
|
|
48
|
+
id: typeof Schema.String;
|
|
49
|
+
type: Schema.optional<typeof Schema.String>;
|
|
50
|
+
data: Schema.optional<typeof Schema.Any>;
|
|
51
|
+
}>>;
|
|
52
|
+
}>>>;
|
|
28
53
|
}>, Schema.Struct<{
|
|
29
54
|
kind: Schema.Literal<["api"]>;
|
|
30
55
|
/**
|
|
@@ -67,10 +92,37 @@ declare const ServiceType_base: import("@dxos/echo-schema").TypedObjectPrototype
|
|
|
67
92
|
*/
|
|
68
93
|
interfaces: Schema.optional<Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
69
94
|
kind: Schema.Literal<["function"]>;
|
|
70
|
-
fn:
|
|
95
|
+
fn: Type.ref<Type.obj<Schema.Struct<{
|
|
96
|
+
name: typeof Schema.NonEmptyString;
|
|
97
|
+
version: typeof Schema.String;
|
|
98
|
+
description: Schema.optional<typeof Schema.String>;
|
|
99
|
+
source: Schema.optional<import("@dxos/echo-schema").Ref$<Type.OfKind<Type.Kind.Object> & {
|
|
100
|
+
name?: string | undefined;
|
|
101
|
+
description?: string | undefined;
|
|
102
|
+
changed?: boolean | undefined;
|
|
103
|
+
source: import("@dxos/echo-schema").Ref<Type.OfKind<Type.Kind.Object> & {
|
|
104
|
+
content: string;
|
|
105
|
+
}>;
|
|
106
|
+
}>>;
|
|
107
|
+
inputSchema: Schema.optional<Schema.Schema<Type.JsonSchema, Type.JsonSchema, never>>;
|
|
108
|
+
outputSchema: Schema.optional<Schema.Schema<Type.JsonSchema, Type.JsonSchema, never>>;
|
|
109
|
+
binding: Schema.optional<typeof Schema.String>;
|
|
110
|
+
}>>>;
|
|
71
111
|
}>, Schema.Struct<{
|
|
72
112
|
kind: Schema.Literal<["workflow"]>;
|
|
73
|
-
workflow:
|
|
113
|
+
workflow: Type.ref<Type.obj<Schema.Struct<{
|
|
114
|
+
graph: Schema.Schema<import("@dxos/graph").Graph>;
|
|
115
|
+
input: Schema.optional<Schema.Struct<{
|
|
116
|
+
id: typeof Schema.String;
|
|
117
|
+
type: Schema.optional<typeof Schema.String>;
|
|
118
|
+
data: Schema.optional<typeof Schema.Any>;
|
|
119
|
+
}>>;
|
|
120
|
+
output: Schema.optional<Schema.Struct<{
|
|
121
|
+
id: typeof Schema.String;
|
|
122
|
+
type: Schema.optional<typeof Schema.String>;
|
|
123
|
+
data: Schema.optional<typeof Schema.Any>;
|
|
124
|
+
}>>;
|
|
125
|
+
}>>>;
|
|
74
126
|
}>, Schema.Struct<{
|
|
75
127
|
kind: Schema.Literal<["api"]>;
|
|
76
128
|
/**
|
|
@@ -112,10 +164,37 @@ declare const ServiceType_base: import("@dxos/echo-schema").TypedObjectPrototype
|
|
|
112
164
|
*/
|
|
113
165
|
interfaces: Schema.optional<Schema.Array$<Schema.Union<[Schema.Struct<{
|
|
114
166
|
kind: Schema.Literal<["function"]>;
|
|
115
|
-
fn:
|
|
167
|
+
fn: Type.ref<Type.obj<Schema.Struct<{
|
|
168
|
+
name: typeof Schema.NonEmptyString;
|
|
169
|
+
version: typeof Schema.String;
|
|
170
|
+
description: Schema.optional<typeof Schema.String>;
|
|
171
|
+
source: Schema.optional<import("@dxos/echo-schema").Ref$<Type.OfKind<Type.Kind.Object> & {
|
|
172
|
+
name?: string | undefined;
|
|
173
|
+
description?: string | undefined;
|
|
174
|
+
changed?: boolean | undefined;
|
|
175
|
+
source: import("@dxos/echo-schema").Ref<Type.OfKind<Type.Kind.Object> & {
|
|
176
|
+
content: string;
|
|
177
|
+
}>;
|
|
178
|
+
}>>;
|
|
179
|
+
inputSchema: Schema.optional<Schema.Schema<Type.JsonSchema, Type.JsonSchema, never>>;
|
|
180
|
+
outputSchema: Schema.optional<Schema.Schema<Type.JsonSchema, Type.JsonSchema, never>>;
|
|
181
|
+
binding: Schema.optional<typeof Schema.String>;
|
|
182
|
+
}>>>;
|
|
116
183
|
}>, Schema.Struct<{
|
|
117
184
|
kind: Schema.Literal<["workflow"]>;
|
|
118
|
-
workflow:
|
|
185
|
+
workflow: Type.ref<Type.obj<Schema.Struct<{
|
|
186
|
+
graph: Schema.Schema<import("@dxos/graph").Graph>;
|
|
187
|
+
input: Schema.optional<Schema.Struct<{
|
|
188
|
+
id: typeof Schema.String;
|
|
189
|
+
type: Schema.optional<typeof Schema.String>;
|
|
190
|
+
data: Schema.optional<typeof Schema.Any>;
|
|
191
|
+
}>>;
|
|
192
|
+
output: Schema.optional<Schema.Struct<{
|
|
193
|
+
id: typeof Schema.String;
|
|
194
|
+
type: Schema.optional<typeof Schema.String>;
|
|
195
|
+
data: Schema.optional<typeof Schema.Any>;
|
|
196
|
+
}>>;
|
|
197
|
+
}>>>;
|
|
119
198
|
}>, Schema.Struct<{
|
|
120
199
|
kind: Schema.Literal<["api"]>;
|
|
121
200
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/types/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"service.d.ts","sourceRoot":"","sources":["../../../../src/types/service.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGhC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AA0BlC,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;;;;;;;gBA/BS,CAAA;uBAAyC,CAAC;mBAExC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;IAahC;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;;;;;;;;;;;;;IAIyG,CAAC;AAC/G,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,gBAAgB,CAAC,CAAC;;;;;;;IAYzE;;OAEG;;;;;;;;oBA9C0B,CAAA;2BAAyC,CAAC;uBAExC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;QAahC;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;;;;;;;;;;;;;;;;;;;;;IAiBH;;OAEG;;;;;;;;oBA9C0B,CAAA;2BAAyC,CAAC;uBAExC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;QAahC;;WAEG;;QAGH;;WAEG;;QAGH;;WAEG;;;;;;;;;;;;;;;;;;;AAOL,qBAAa,WAAY,SAAQ,gBAc/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,5 @@
|
|
|
1
1
|
import { Schema } from 'effect';
|
|
2
|
+
import { Type } from '@dxos/echo';
|
|
2
3
|
export declare enum TemplateInputType {
|
|
3
4
|
VALUE = 0,
|
|
4
5
|
PASS_THROUGH = 1,
|
|
@@ -29,27 +30,7 @@ export declare const TemplateKindSchema: Schema.Union<[Schema.Struct<{
|
|
|
29
30
|
include: Schema.Literal<["manual"]>;
|
|
30
31
|
}>]>;
|
|
31
32
|
export type TemplateKindType = Schema.Schema.Type<typeof TemplateKindSchema>;
|
|
32
|
-
declare const
|
|
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
|
-
}>]>>;
|
|
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
|
-
}>>>>>;
|
|
51
|
-
command: Schema.optional<typeof Schema.String>;
|
|
52
|
-
}, import("@dxos/echo-schema").TypedObjectOptions>, Schema.Struct.Encoded<{
|
|
33
|
+
export declare const TemplateType: Type.obj<Schema.Struct<{
|
|
53
34
|
name: Schema.optional<typeof Schema.String>;
|
|
54
35
|
kind: Schema.mutable<Schema.Union<[Schema.Struct<{
|
|
55
36
|
include: Schema.Literal<["always"]>;
|
|
@@ -70,7 +51,6 @@ declare const TemplateType_base: import("@dxos/echo-schema").TypedObjectPrototyp
|
|
|
70
51
|
}>>>>>;
|
|
71
52
|
command: Schema.optional<typeof Schema.String>;
|
|
72
53
|
}>>;
|
|
73
|
-
export
|
|
54
|
+
export interface TemplateType extends Schema.Schema.Type<typeof TemplateType> {
|
|
74
55
|
}
|
|
75
|
-
export {};
|
|
76
56
|
//# sourceMappingURL=template.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/types/template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/types/template.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEhC,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAIlC,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,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;GAYxB,CAAC;AACF,MAAM,WAAW,YAAa,SAAQ,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,YAAY,CAAC;CAAG"}
|
|
@@ -8,11 +8,11 @@ export declare namespace AssistantAction {
|
|
|
8
8
|
name: Schema.optional<typeof Schema.String>;
|
|
9
9
|
}>;
|
|
10
10
|
output: Schema.Struct<{
|
|
11
|
-
object: import("@dxos/echo
|
|
11
|
+
object: import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
12
12
|
id: import("@dxos/keys").ObjectIdClass;
|
|
13
13
|
name: Schema.optional<typeof Schema.String>;
|
|
14
|
-
queue: import("@dxos/echo-
|
|
15
|
-
}
|
|
14
|
+
queue: import("@dxos/echo/Type").ref<Schema.Schema<import("@dxos/echo-db").Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, import("@dxos/echo-db").Queue<import("@dxos/echo/Obj").Any | import("@dxos/echo/Relation").Any>, never>>;
|
|
15
|
+
}>>;
|
|
16
16
|
}>;
|
|
17
17
|
}>;
|
|
18
18
|
export class CreateChat extends CreateChat_base {
|
|
@@ -24,14 +24,14 @@ export declare namespace AssistantAction {
|
|
|
24
24
|
name: Schema.optional<typeof Schema.String>;
|
|
25
25
|
}>;
|
|
26
26
|
output: Schema.Struct<{
|
|
27
|
-
object: import("@dxos/echo
|
|
27
|
+
object: import("@dxos/echo/Type").obj<Schema.Struct<{
|
|
28
28
|
name: Schema.optional<typeof Schema.String>;
|
|
29
29
|
steps: Schema.Array$<Schema.Struct<{
|
|
30
30
|
id: import("@dxos/keys").ObjectIdClass;
|
|
31
31
|
instructions: typeof Schema.String;
|
|
32
|
-
tools: Schema.Array$<typeof Schema.String
|
|
32
|
+
tools: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
33
33
|
}>>;
|
|
34
|
-
}
|
|
34
|
+
}>>;
|
|
35
35
|
}>;
|
|
36
36
|
}>;
|
|
37
37
|
export class CreateBlueprint extends CreateBlueprint_base {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-assistant",
|
|
3
|
-
"version": "0.8.3-
|
|
3
|
+
"version": "0.8.3-staging.0fa589b",
|
|
4
4
|
"description": "Assistant plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -44,62 +44,65 @@
|
|
|
44
44
|
"@preact/signals-core": "^1.9.0",
|
|
45
45
|
"@xiechao/codemirror-lang-handlebars": "1.0.4",
|
|
46
46
|
"exa-js": "^1.5.12",
|
|
47
|
+
"json5": "^2.2.3",
|
|
47
48
|
"jsonpointer": "^5.0.1",
|
|
48
49
|
"lodash.defaultsdeep": "^4.6.1",
|
|
49
50
|
"unified": "^11.0.0",
|
|
50
|
-
"@dxos/ai": "0.8.3-
|
|
51
|
-
"@dxos/app-framework": "0.8.3-
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/
|
|
54
|
-
"@dxos/
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/
|
|
59
|
-
"@dxos/
|
|
60
|
-
"@dxos/
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/echo
|
|
63
|
-
"@dxos/echo-
|
|
64
|
-
"@dxos/echo-protocol": "0.8.3-
|
|
65
|
-
"@dxos/
|
|
66
|
-
"@dxos/edge-client": "0.8.3-
|
|
67
|
-
"@dxos/
|
|
68
|
-
"@dxos/
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/
|
|
74
|
-
"@dxos/
|
|
75
|
-
"@dxos/
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/plugin-
|
|
78
|
-
"@dxos/plugin-
|
|
79
|
-
"@dxos/plugin-
|
|
80
|
-
"@dxos/plugin-
|
|
81
|
-
"@dxos/plugin-
|
|
82
|
-
"@dxos/plugin-
|
|
83
|
-
"@dxos/plugin-
|
|
84
|
-
"@dxos/plugin-space": "0.8.3-
|
|
85
|
-
"@dxos/plugin-
|
|
86
|
-
"@dxos/plugin-wnfs": "0.8.3-
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/react-
|
|
90
|
-
"@dxos/react-ui-canvas-compute": "0.8.3-
|
|
91
|
-
"@dxos/react-
|
|
92
|
-
"@dxos/react-ui-
|
|
93
|
-
"@dxos/react-
|
|
94
|
-
"@dxos/react-ui-
|
|
95
|
-
"@dxos/react-ui-
|
|
96
|
-
"@dxos/react-ui-
|
|
97
|
-
"@dxos/react-ui-
|
|
98
|
-
"@dxos/react-ui-
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/react-ui-
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/react-ui-syntax-highlighter": "0.8.3-
|
|
51
|
+
"@dxos/ai": "0.8.3-staging.0fa589b",
|
|
52
|
+
"@dxos/app-framework": "0.8.3-staging.0fa589b",
|
|
53
|
+
"@dxos/artifact": "0.8.3-staging.0fa589b",
|
|
54
|
+
"@dxos/assistant": "0.8.3-staging.0fa589b",
|
|
55
|
+
"@dxos/async": "0.8.3-staging.0fa589b",
|
|
56
|
+
"@dxos/client": "0.8.3-staging.0fa589b",
|
|
57
|
+
"@dxos/conductor": "0.8.3-staging.0fa589b",
|
|
58
|
+
"@dxos/compute": "0.8.3-staging.0fa589b",
|
|
59
|
+
"@dxos/debug": "0.8.3-staging.0fa589b",
|
|
60
|
+
"@dxos/config": "0.8.3-staging.0fa589b",
|
|
61
|
+
"@dxos/devtools": "0.8.3-staging.0fa589b",
|
|
62
|
+
"@dxos/context": "0.8.3-staging.0fa589b",
|
|
63
|
+
"@dxos/echo": "0.8.3-staging.0fa589b",
|
|
64
|
+
"@dxos/echo-db": "0.8.3-staging.0fa589b",
|
|
65
|
+
"@dxos/echo-protocol": "0.8.3-staging.0fa589b",
|
|
66
|
+
"@dxos/echo-schema": "0.8.3-staging.0fa589b",
|
|
67
|
+
"@dxos/edge-client": "0.8.3-staging.0fa589b",
|
|
68
|
+
"@dxos/effect": "0.8.3-staging.0fa589b",
|
|
69
|
+
"@dxos/functions": "0.8.3-staging.0fa589b",
|
|
70
|
+
"@dxos/graph": "0.8.3-staging.0fa589b",
|
|
71
|
+
"@dxos/invariant": "0.8.3-staging.0fa589b",
|
|
72
|
+
"@dxos/keys": "0.8.3-staging.0fa589b",
|
|
73
|
+
"@dxos/live-object": "0.8.3-staging.0fa589b",
|
|
74
|
+
"@dxos/local-storage": "0.8.3-staging.0fa589b",
|
|
75
|
+
"@dxos/log": "0.8.3-staging.0fa589b",
|
|
76
|
+
"@dxos/plugin-deck": "0.8.3-staging.0fa589b",
|
|
77
|
+
"@dxos/plugin-explorer": "0.8.3-staging.0fa589b",
|
|
78
|
+
"@dxos/plugin-client": "0.8.3-staging.0fa589b",
|
|
79
|
+
"@dxos/plugin-graph": "0.8.3-staging.0fa589b",
|
|
80
|
+
"@dxos/plugin-inbox": "0.8.3-staging.0fa589b",
|
|
81
|
+
"@dxos/plugin-preview": "0.8.3-staging.0fa589b",
|
|
82
|
+
"@dxos/plugin-markdown": "0.8.3-staging.0fa589b",
|
|
83
|
+
"@dxos/plugin-script": "0.8.3-staging.0fa589b",
|
|
84
|
+
"@dxos/plugin-sketch": "0.8.3-staging.0fa589b",
|
|
85
|
+
"@dxos/plugin-space": "0.8.3-staging.0fa589b",
|
|
86
|
+
"@dxos/plugin-stack": "0.8.3-staging.0fa589b",
|
|
87
|
+
"@dxos/plugin-wnfs": "0.8.3-staging.0fa589b",
|
|
88
|
+
"@dxos/plugin-transcription": "0.8.3-staging.0fa589b",
|
|
89
|
+
"@dxos/protocols": "0.8.3-staging.0fa589b",
|
|
90
|
+
"@dxos/react-ui-attention": "0.8.3-staging.0fa589b",
|
|
91
|
+
"@dxos/react-ui-canvas-compute": "0.8.3-staging.0fa589b",
|
|
92
|
+
"@dxos/react-edge-client": "0.8.3-staging.0fa589b",
|
|
93
|
+
"@dxos/react-ui-canvas-editor": "0.8.3-staging.0fa589b",
|
|
94
|
+
"@dxos/react-client": "0.8.3-staging.0fa589b",
|
|
95
|
+
"@dxos/react-ui-components": "0.8.3-staging.0fa589b",
|
|
96
|
+
"@dxos/react-ui-dnd": "0.8.3-staging.0fa589b",
|
|
97
|
+
"@dxos/react-ui-editor": "0.8.3-staging.0fa589b",
|
|
98
|
+
"@dxos/react-ui-form": "0.8.3-staging.0fa589b",
|
|
99
|
+
"@dxos/react-ui-list": "0.8.3-staging.0fa589b",
|
|
100
|
+
"@dxos/react-ui-graph": "0.8.3-staging.0fa589b",
|
|
101
|
+
"@dxos/react-ui-sfx": "0.8.3-staging.0fa589b",
|
|
102
|
+
"@dxos/react-ui-stack": "0.8.3-staging.0fa589b",
|
|
103
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.3-staging.0fa589b",
|
|
104
|
+
"@dxos/schema": "0.8.3-staging.0fa589b",
|
|
105
|
+
"@dxos/util": "0.8.3-staging.0fa589b"
|
|
103
106
|
},
|
|
104
107
|
"devDependencies": {
|
|
105
108
|
"@effect-rx/rx-react": "^0.34.1",
|
|
@@ -112,18 +115,18 @@
|
|
|
112
115
|
"react": "~18.2.0",
|
|
113
116
|
"react-dom": "~18.2.0",
|
|
114
117
|
"vite": "5.4.7",
|
|
115
|
-
"@dxos/
|
|
116
|
-
"@dxos/
|
|
117
|
-
"@dxos/
|
|
118
|
-
"@dxos/plugin-inbox": "0.8.3-
|
|
119
|
-
"@dxos/plugin-map": "0.8.3-
|
|
120
|
-
"@dxos/plugin-markdown": "0.8.3-
|
|
121
|
-
"@dxos/
|
|
122
|
-
"@dxos/
|
|
123
|
-
"@dxos/
|
|
124
|
-
"@dxos/react-ui-menu": "0.8.3-
|
|
125
|
-
"@dxos/react-ui-theme": "0.8.3-
|
|
126
|
-
"@dxos/storybook-utils": "0.8.3-
|
|
118
|
+
"@dxos/artifact-testing": "0.8.3-staging.0fa589b",
|
|
119
|
+
"@dxos/plugin-chess": "0.8.3-staging.0fa589b",
|
|
120
|
+
"@dxos/echo-db": "0.8.3-staging.0fa589b",
|
|
121
|
+
"@dxos/plugin-inbox": "0.8.3-staging.0fa589b",
|
|
122
|
+
"@dxos/plugin-map": "0.8.3-staging.0fa589b",
|
|
123
|
+
"@dxos/plugin-markdown": "0.8.3-staging.0fa589b",
|
|
124
|
+
"@dxos/random": "0.8.3-staging.0fa589b",
|
|
125
|
+
"@dxos/react-ui": "0.8.3-staging.0fa589b",
|
|
126
|
+
"@dxos/plugin-table": "0.8.3-staging.0fa589b",
|
|
127
|
+
"@dxos/react-ui-menu": "0.8.3-staging.0fa589b",
|
|
128
|
+
"@dxos/react-ui-theme": "0.8.3-staging.0fa589b",
|
|
129
|
+
"@dxos/storybook-utils": "0.8.3-staging.0fa589b"
|
|
127
130
|
},
|
|
128
131
|
"peerDependencies": {
|
|
129
132
|
"@effect-rx/rx-react": "^0.34.1",
|
|
@@ -131,8 +134,8 @@
|
|
|
131
134
|
"effect": "^3.13.3",
|
|
132
135
|
"react": "~18.2.0",
|
|
133
136
|
"react-dom": "~18.2.0",
|
|
134
|
-
"@dxos/react-ui": "0.8.3-
|
|
135
|
-
"@dxos/react-ui-theme": "0.8.3-
|
|
137
|
+
"@dxos/react-ui": "0.8.3-staging.0fa589b",
|
|
138
|
+
"@dxos/react-ui-theme": "0.8.3-staging.0fa589b"
|
|
136
139
|
},
|
|
137
140
|
"publishConfig": {
|
|
138
141
|
"access": "public"
|
package/src/AssistantPlugin.tsx
CHANGED
|
@@ -2,22 +2,25 @@
|
|
|
2
2
|
// Copyright 2023 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { Effect } from 'effect';
|
|
6
|
+
|
|
5
7
|
import {
|
|
6
|
-
allOf,
|
|
7
8
|
Capabilities,
|
|
9
|
+
Events,
|
|
10
|
+
allOf,
|
|
8
11
|
contributes,
|
|
9
12
|
createIntent,
|
|
10
13
|
defineModule,
|
|
11
14
|
definePlugin,
|
|
12
|
-
Events,
|
|
13
15
|
} from '@dxos/app-framework';
|
|
14
16
|
import { Blueprint } from '@dxos/assistant';
|
|
15
|
-
import {
|
|
17
|
+
import { Ref, Type } from '@dxos/echo';
|
|
16
18
|
import { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';
|
|
17
|
-
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
18
|
-
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
19
|
+
import { SpaceCapabilities, SpaceEvents } from '@dxos/plugin-space';
|
|
20
|
+
import { CollectionAction, defineObjectForm } from '@dxos/plugin-space/types';
|
|
19
21
|
|
|
20
22
|
import { AiClient, AppGraphBuilder, IntentResolver, ReactSurface, Settings } from './capabilities';
|
|
23
|
+
import { AssistantEvents } from './events';
|
|
21
24
|
import { meta } from './meta';
|
|
22
25
|
import translations from './translations';
|
|
23
26
|
import { AssistantAction, AIChatType, ServiceType, TemplateType, CompanionTo } from './types';
|
|
@@ -39,13 +42,13 @@ export const AssistantPlugin = () =>
|
|
|
39
42
|
activatesOn: Events.SetupMetadata,
|
|
40
43
|
activate: () => [
|
|
41
44
|
contributes(Capabilities.Metadata, {
|
|
42
|
-
id:
|
|
45
|
+
id: Type.getTypename(Blueprint),
|
|
43
46
|
metadata: {
|
|
44
47
|
icon: 'ph--blueprint--regular',
|
|
45
48
|
},
|
|
46
49
|
}),
|
|
47
50
|
contributes(Capabilities.Metadata, {
|
|
48
|
-
id:
|
|
51
|
+
id: Type.getTypename(AIChatType),
|
|
49
52
|
metadata: {
|
|
50
53
|
icon: 'ph--atom--regular',
|
|
51
54
|
},
|
|
@@ -77,6 +80,25 @@ export const AssistantPlugin = () =>
|
|
|
77
80
|
activatesOn: ClientEvents.SetupSchema,
|
|
78
81
|
activate: () => contributes(ClientCapabilities.Schema, [ServiceType, TemplateType, CompanionTo]),
|
|
79
82
|
}),
|
|
83
|
+
defineModule({
|
|
84
|
+
id: `${meta.id}/module/on-space-created`,
|
|
85
|
+
activatesOn: SpaceEvents.SpaceCreated,
|
|
86
|
+
activate: (context) => {
|
|
87
|
+
const { dispatch } = context.getCapability(Capabilities.IntentDispatcher);
|
|
88
|
+
return contributes(SpaceCapabilities.OnSpaceCreated, async ({ space, rootCollection }) => {
|
|
89
|
+
const program = Effect.gen(function* () {
|
|
90
|
+
const { object: collection } = yield* dispatch(
|
|
91
|
+
createIntent(CollectionAction.CreateQueryCollection, { typename: Type.getTypename(AIChatType) }),
|
|
92
|
+
);
|
|
93
|
+
rootCollection.objects.push(Ref.make(collection));
|
|
94
|
+
|
|
95
|
+
const { object: chat } = yield* dispatch(createIntent(AssistantAction.CreateChat, { space }));
|
|
96
|
+
space.db.add(chat);
|
|
97
|
+
});
|
|
98
|
+
await Effect.runPromise(program);
|
|
99
|
+
});
|
|
100
|
+
},
|
|
101
|
+
}),
|
|
80
102
|
defineModule({
|
|
81
103
|
id: `${meta.id}/module/app-graph-builder`,
|
|
82
104
|
activatesOn: Events.SetupAppGraph,
|
|
@@ -97,6 +119,7 @@ export const AssistantPlugin = () =>
|
|
|
97
119
|
defineModule({
|
|
98
120
|
id: `${meta.id}/module/ai-client`,
|
|
99
121
|
activatesOn: allOf(ClientEvents.ClientReady, Events.SettingsReady),
|
|
122
|
+
activatesAfter: [AssistantEvents.AiClientReady],
|
|
100
123
|
activate: AiClient,
|
|
101
124
|
}),
|
|
102
125
|
]);
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import { effect, signal } from '@preact/signals-core';
|
|
6
6
|
|
|
7
|
-
import { type
|
|
7
|
+
import { type AiServiceClient, EdgeAiServiceClient, OllamaAiServiceClient } from '@dxos/ai';
|
|
8
8
|
import { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';
|
|
9
9
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
10
10
|
|
|
@@ -18,8 +18,7 @@ const DEFAULT_AI_SERVICE_URL = 'http://localhost:8788';
|
|
|
18
18
|
export default (context: PluginContext) => {
|
|
19
19
|
const client = context.getCapability(ClientCapabilities.Client);
|
|
20
20
|
const endpoint = client.config.values.runtime?.services?.ai?.server ?? DEFAULT_AI_SERVICE_URL;
|
|
21
|
-
|
|
22
|
-
const ai = signal<AIServiceClient>(new AIServiceEdgeClient({ endpoint }));
|
|
21
|
+
const aiClient = signal<AiServiceClient>(new EdgeAiServiceClient({ endpoint }));
|
|
23
22
|
|
|
24
23
|
const unsubscribe = effect(() => {
|
|
25
24
|
const settings = context
|
|
@@ -27,11 +26,17 @@ export default (context: PluginContext) => {
|
|
|
27
26
|
.getStore<AssistantSettingsProps>(ASSISTANT_PLUGIN)?.value;
|
|
28
27
|
|
|
29
28
|
if (settings?.llmProvider === 'ollama') {
|
|
30
|
-
|
|
29
|
+
aiClient.value = new OllamaAiServiceClient();
|
|
31
30
|
} else {
|
|
32
|
-
|
|
31
|
+
aiClient.value = new EdgeAiServiceClient({
|
|
32
|
+
endpoint,
|
|
33
|
+
defaultGenerationOptions: {
|
|
34
|
+
// model: '@anthropic/claude-sonnet-4-20250514',
|
|
35
|
+
model: '@anthropic/claude-3-5-haiku-20241022',
|
|
36
|
+
},
|
|
37
|
+
});
|
|
33
38
|
}
|
|
34
39
|
});
|
|
35
40
|
|
|
36
|
-
return contributes(AssistantCapabilities.AiClient,
|
|
41
|
+
return contributes(AssistantCapabilities.AiClient, aiClient, () => unsubscribe());
|
|
37
42
|
};
|