@dxos/plugin-automation 0.7.5-labs.8a82073 → 0.7.5-labs.c0e040f
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/AutomationPanel-VW2XIUPU.mjs +8 -0
- package/dist/lib/browser/ChatContainer-OLRZNGWK.mjs +12 -0
- package/dist/lib/browser/{ai-client-UJLNYP7B.mjs → ai-client-5CNY6JBF.mjs} +3 -3
- package/dist/lib/browser/{app-graph-builder-3H5TCRG4.mjs → app-graph-builder-6H7MDCXE.mjs} +39 -4
- package/dist/lib/browser/app-graph-builder-6H7MDCXE.mjs.map +7 -0
- package/dist/lib/browser/{chunk-BQHXJZ4K.mjs → chunk-2H2EUYXL.mjs} +2 -2
- package/dist/lib/browser/{chunk-N4SSCQ7P.mjs → chunk-ITG6CBKL.mjs} +10 -10
- package/dist/lib/browser/chunk-ITG6CBKL.mjs.map +7 -0
- package/dist/lib/browser/chunk-MRBC5J4T.mjs +518 -0
- package/dist/lib/browser/chunk-MRBC5J4T.mjs.map +7 -0
- package/dist/lib/browser/{chunk-6KJRL5KV.mjs → chunk-NQFZ6XRX.mjs} +2 -2
- package/dist/lib/browser/{chunk-43WRHV2L.mjs → chunk-Q4IMHYGH.mjs} +2 -2
- package/dist/lib/browser/{chunk-DQ7ZSYJJ.mjs → chunk-R4JH4TLE.mjs} +3 -1
- package/dist/lib/browser/chunk-R4JH4TLE.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +10 -6
- package/dist/lib/browser/index.mjs.map +1 -1
- package/dist/lib/browser/{intent-resolver-5YVZJFS3.mjs → intent-resolver-BWAXKT27.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-RRTZFTKR.mjs → react-surface-O6SHIBCA.mjs} +15 -7
- package/dist/lib/browser/react-surface-O6SHIBCA.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +2 -2
- package/dist/lib/node/{AutomationPanel-BCEY3YXO.cjs → AutomationPanel-G6EDDYWW.cjs} +7 -7
- package/dist/lib/node/{AutomationPanel-BCEY3YXO.cjs.map → AutomationPanel-G6EDDYWW.cjs.map} +2 -2
- package/dist/lib/node/{ChatContainer-QUWFEBTI.cjs → ChatContainer-GRZDJIG5.cjs} +10 -10
- package/dist/lib/node/ChatContainer-GRZDJIG5.cjs.map +7 -0
- package/dist/lib/node/{ai-client-AOB6TLNW.cjs → ai-client-FKLPDELV.cjs} +7 -7
- package/dist/lib/node/{app-graph-builder-CDEQJEHY.cjs → app-graph-builder-7JMJLZIE.cjs} +48 -14
- package/dist/lib/node/app-graph-builder-7JMJLZIE.cjs.map +7 -0
- package/dist/lib/node/{chunk-DKGNORZK.cjs → chunk-CFBERLTN.cjs} +21 -21
- package/dist/lib/node/chunk-CFBERLTN.cjs.map +7 -0
- package/dist/lib/node/{chunk-TQEDPRY5.cjs → chunk-EQYHOTGG.cjs} +7 -4
- package/dist/lib/node/chunk-EQYHOTGG.cjs.map +7 -0
- package/dist/lib/node/chunk-FQUY77HT.cjs +527 -0
- package/dist/lib/node/chunk-FQUY77HT.cjs.map +7 -0
- package/dist/lib/node/{chunk-H3RSMGJG.cjs → chunk-GB7245FH.cjs} +6 -6
- package/dist/lib/node/{chunk-IPCNJYQL.cjs → chunk-QXIHYOMF.cjs} +7 -7
- package/dist/lib/node/{chunk-AWZVJZ2I.cjs → chunk-U5Z7LFWB.cjs} +6 -6
- package/dist/lib/node/index.cjs +75 -71
- package/dist/lib/node/index.cjs.map +1 -1
- package/dist/lib/node/{intent-resolver-MJFZT5IU.cjs → intent-resolver-C6OKFVEW.cjs} +8 -8
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-BVZ63QP4.cjs → react-surface-JT6SVCPK.cjs} +23 -17
- package/dist/lib/node/react-surface-JT6SVCPK.cjs.map +7 -0
- package/dist/lib/node/types/index.cjs +11 -11
- package/dist/lib/node/types/index.cjs.map +1 -1
- package/dist/lib/node-esm/{AutomationPanel-YTIZ74RI.mjs → AutomationPanel-V3IWQAMO.mjs} +3 -3
- package/dist/lib/node-esm/{ChatContainer-QSMDZRDU.mjs → ChatContainer-ORVWQPJO.mjs} +5 -5
- package/dist/lib/node-esm/{ai-client-RUCCJ7JZ.mjs → ai-client-XGNA6SJ5.mjs} +3 -3
- package/dist/lib/node-esm/{app-graph-builder-GR3URVNX.mjs → app-graph-builder-C6NUQGCU.mjs} +39 -4
- package/dist/lib/node-esm/app-graph-builder-C6NUQGCU.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs +519 -0
- package/dist/lib/node-esm/chunk-2OKJZ4ZW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-CZXU4CFK.mjs → chunk-6HLBYDUI.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-D7RARVTS.mjs → chunk-7VPT3OO3.mjs} +10 -10
- package/dist/lib/node-esm/chunk-7VPT3OO3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-7JO77AAS.mjs → chunk-DNCXRGAF.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-JFHI22MF.mjs → chunk-EMVA6QUT.mjs} +3 -1
- package/dist/lib/node-esm/chunk-EMVA6QUT.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-LSSWQIQD.mjs → chunk-IJRTDSKN.mjs} +2 -2
- package/dist/lib/node-esm/index.mjs +10 -6
- package/dist/lib/node-esm/index.mjs.map +1 -1
- package/dist/lib/node-esm/{intent-resolver-FCKNRTKQ.mjs → intent-resolver-DCP4ZDBA.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-Y5LQHUQN.mjs → react-surface-DSVM33SA.mjs} +15 -7
- package/dist/lib/node-esm/react-surface-DSVM33SA.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +2 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts +23 -22
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts +3 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.d.ts.map +1 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts +8 -0
- package/dist/types/src/components/AmbientChatDialog/AmbientChatDialog.stories.d.ts.map +1 -0
- package/dist/types/src/components/AmbientChatDialog/index.d.ts +2 -0
- package/dist/types/src/components/AmbientChatDialog/index.d.ts.map +1 -0
- package/dist/types/src/components/Prompt/Prompt.d.ts +3 -3
- package/dist/types/src/components/Prompt/Prompt.d.ts.map +1 -1
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts +1 -1
- package/dist/types/src/components/Prompt/prompt-autocomplete.d.ts.map +1 -1
- package/dist/types/src/components/ServiceRegistry/ServiceRegistry.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -0
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/package.json +52 -51
- package/src/capabilities/app-graph-builder.ts +34 -3
- package/src/capabilities/react-surface.tsx +8 -2
- package/src/components/AmbientChatDialog/AmbientChatDialog.stories.tsx +44 -0
- package/src/components/AmbientChatDialog/AmbientChatDialog.tsx +63 -0
- package/src/components/AmbientChatDialog/index.ts +5 -0
- package/src/components/Prompt/Prompt.tsx +6 -3
- package/src/components/Prompt/prompt-autocomplete.ts +2 -2
- package/src/components/PromptEditor/PromptEditor.tsx +3 -3
- package/src/components/ServiceRegistry/ServiceRegistry.tsx +1 -0
- package/src/components/Thread/Thread.stories.tsx +1 -1
- package/src/components/index.ts +1 -0
- package/src/hooks/useChatProcessor.tsx +2 -2
- package/src/meta.ts +2 -0
- package/src/tools/openapi.test.ts +3 -6
- package/dist/lib/browser/AutomationPanel-CL2TWZT5.mjs +0 -8
- package/dist/lib/browser/ChatContainer-EJ3IWL7Y.mjs +0 -12
- package/dist/lib/browser/app-graph-builder-3H5TCRG4.mjs.map +0 -7
- package/dist/lib/browser/chunk-4M74P6YW.mjs +0 -284
- package/dist/lib/browser/chunk-4M74P6YW.mjs.map +0 -7
- package/dist/lib/browser/chunk-DQ7ZSYJJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-N4SSCQ7P.mjs.map +0 -7
- package/dist/lib/browser/react-surface-RRTZFTKR.mjs.map +0 -7
- package/dist/lib/node/ChatContainer-QUWFEBTI.cjs.map +0 -7
- package/dist/lib/node/app-graph-builder-CDEQJEHY.cjs.map +0 -7
- package/dist/lib/node/chunk-DKGNORZK.cjs.map +0 -7
- package/dist/lib/node/chunk-LC6KNDPQ.cjs +0 -302
- package/dist/lib/node/chunk-LC6KNDPQ.cjs.map +0 -7
- package/dist/lib/node/chunk-TQEDPRY5.cjs.map +0 -7
- package/dist/lib/node/react-surface-BVZ63QP4.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-GR3URVNX.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-CQPQXIJP.mjs +0 -285
- package/dist/lib/node-esm/chunk-CQPQXIJP.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-D7RARVTS.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JFHI22MF.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-Y5LQHUQN.mjs.map +0 -7
- /package/dist/lib/browser/{AutomationPanel-CL2TWZT5.mjs.map → AutomationPanel-VW2XIUPU.mjs.map} +0 -0
- /package/dist/lib/browser/{ChatContainer-EJ3IWL7Y.mjs.map → ChatContainer-OLRZNGWK.mjs.map} +0 -0
- /package/dist/lib/browser/{ai-client-UJLNYP7B.mjs.map → ai-client-5CNY6JBF.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-BQHXJZ4K.mjs.map → chunk-2H2EUYXL.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-6KJRL5KV.mjs.map → chunk-NQFZ6XRX.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-43WRHV2L.mjs.map → chunk-Q4IMHYGH.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-5YVZJFS3.mjs.map → intent-resolver-BWAXKT27.mjs.map} +0 -0
- /package/dist/lib/node/{ai-client-AOB6TLNW.cjs.map → ai-client-FKLPDELV.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-H3RSMGJG.cjs.map → chunk-GB7245FH.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-IPCNJYQL.cjs.map → chunk-QXIHYOMF.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-AWZVJZ2I.cjs.map → chunk-U5Z7LFWB.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-MJFZT5IU.cjs.map → intent-resolver-C6OKFVEW.cjs.map} +0 -0
- /package/dist/lib/node-esm/{AutomationPanel-YTIZ74RI.mjs.map → AutomationPanel-V3IWQAMO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ChatContainer-QSMDZRDU.mjs.map → ChatContainer-ORVWQPJO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ai-client-RUCCJ7JZ.mjs.map → ai-client-XGNA6SJ5.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-CZXU4CFK.mjs.map → chunk-6HLBYDUI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-7JO77AAS.mjs.map → chunk-DNCXRGAF.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-LSSWQIQD.mjs.map → chunk-IJRTDSKN.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-FCKNRTKQ.mjs.map → intent-resolver-DCP4ZDBA.mjs.map} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type PluginsContext } from '@dxos/app-framework';
|
|
2
|
+
import { type Node } from '@dxos/plugin-graph';
|
|
2
3
|
declare const _default: (context: PluginsContext) => import("@dxos/app-framework").Capability<Readonly<{
|
|
3
4
|
id: string;
|
|
4
5
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -6,7 +7,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
6
7
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
7
8
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
8
9
|
type?: string;
|
|
9
|
-
filter?: (node: import("
|
|
10
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
10
11
|
}> | Readonly<{
|
|
11
12
|
id: string;
|
|
12
13
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -14,7 +15,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
14
15
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
15
16
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
16
17
|
type?: string;
|
|
17
|
-
filter?: (node: import("
|
|
18
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
18
19
|
}>[] | (Readonly<{
|
|
19
20
|
id: string;
|
|
20
21
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -22,7 +23,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
22
23
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
23
24
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
24
25
|
type?: string;
|
|
25
|
-
filter?: (node: import("
|
|
26
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
26
27
|
}> | Readonly<{
|
|
27
28
|
id: string;
|
|
28
29
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -30,7 +31,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
30
31
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
31
32
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
32
33
|
type?: string;
|
|
33
|
-
filter?: (node: import("
|
|
34
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
34
35
|
}>[] | (Readonly<{
|
|
35
36
|
id: string;
|
|
36
37
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -38,7 +39,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
38
39
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
39
40
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
40
41
|
type?: string;
|
|
41
|
-
filter?: (node: import("
|
|
42
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
42
43
|
}> | Readonly<{
|
|
43
44
|
id: string;
|
|
44
45
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -46,7 +47,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
46
47
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
47
48
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
48
49
|
type?: string;
|
|
49
|
-
filter?: (node: import("
|
|
50
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
50
51
|
}>[] | (Readonly<{
|
|
51
52
|
id: string;
|
|
52
53
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -54,7 +55,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
54
55
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
55
56
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
56
57
|
type?: string;
|
|
57
|
-
filter?: (node: import("
|
|
58
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
58
59
|
}> | Readonly<{
|
|
59
60
|
id: string;
|
|
60
61
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -62,7 +63,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
62
63
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
63
64
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
64
65
|
type?: string;
|
|
65
|
-
filter?: (node: import("
|
|
66
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
66
67
|
}>[] | (Readonly<{
|
|
67
68
|
id: string;
|
|
68
69
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -70,7 +71,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
70
71
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
71
72
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
72
73
|
type?: string;
|
|
73
|
-
filter?: (node: import("
|
|
74
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
74
75
|
}> | Readonly<{
|
|
75
76
|
id: string;
|
|
76
77
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -78,7 +79,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
78
79
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
79
80
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
80
81
|
type?: string;
|
|
81
|
-
filter?: (node: import("
|
|
82
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
82
83
|
}>[] | (Readonly<{
|
|
83
84
|
id: string;
|
|
84
85
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -86,7 +87,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
86
87
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
87
88
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
88
89
|
type?: string;
|
|
89
|
-
filter?: (node: import("
|
|
90
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
90
91
|
}> | Readonly<{
|
|
91
92
|
id: string;
|
|
92
93
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -94,7 +95,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
94
95
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
95
96
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
96
97
|
type?: string;
|
|
97
|
-
filter?: (node: import("
|
|
98
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
98
99
|
}>[] | (Readonly<{
|
|
99
100
|
id: string;
|
|
100
101
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -102,7 +103,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
102
103
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
103
104
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
104
105
|
type?: string;
|
|
105
|
-
filter?: (node: import("
|
|
106
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
106
107
|
}> | Readonly<{
|
|
107
108
|
id: string;
|
|
108
109
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -110,7 +111,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
110
111
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
111
112
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
112
113
|
type?: string;
|
|
113
|
-
filter?: (node: import("
|
|
114
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
114
115
|
}>[] | (Readonly<{
|
|
115
116
|
id: string;
|
|
116
117
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -118,7 +119,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
118
119
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
119
120
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
120
121
|
type?: string;
|
|
121
|
-
filter?: (node: import("
|
|
122
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
122
123
|
}> | Readonly<{
|
|
123
124
|
id: string;
|
|
124
125
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -126,7 +127,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
126
127
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
127
128
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
128
129
|
type?: string;
|
|
129
|
-
filter?: (node: import("
|
|
130
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
130
131
|
}>[] | (Readonly<{
|
|
131
132
|
id: string;
|
|
132
133
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -134,7 +135,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
134
135
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
135
136
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
136
137
|
type?: string;
|
|
137
|
-
filter?: (node: import("
|
|
138
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
138
139
|
}> | Readonly<{
|
|
139
140
|
id: string;
|
|
140
141
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -142,7 +143,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
142
143
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
143
144
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
144
145
|
type?: string;
|
|
145
|
-
filter?: (node: import("
|
|
146
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
146
147
|
}>[] | (Readonly<{
|
|
147
148
|
id: string;
|
|
148
149
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -150,7 +151,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
150
151
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
151
152
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
152
153
|
type?: string;
|
|
153
|
-
filter?: (node: import("
|
|
154
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
154
155
|
}> | Readonly<{
|
|
155
156
|
id: string;
|
|
156
157
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -158,7 +159,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
158
159
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
159
160
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
160
161
|
type?: string;
|
|
161
|
-
filter?: (node: import("
|
|
162
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
162
163
|
}>[] | (any[] | Readonly<{
|
|
163
164
|
id: string;
|
|
164
165
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -166,7 +167,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
166
167
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
167
168
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
168
169
|
type?: string;
|
|
169
|
-
filter?: (node: import("
|
|
170
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
170
171
|
}> | Readonly<{
|
|
171
172
|
id: string;
|
|
172
173
|
position: import("packages/common/util/dist/types/src").Position;
|
|
@@ -174,7 +175,7 @@ declare const _default: (context: PluginsContext) => import("@dxos/app-framework
|
|
|
174
175
|
connector?: import("@dxos/plugin-graph").ConnectorExtension;
|
|
175
176
|
relation?: import("@dxos/plugin-graph").Relation;
|
|
176
177
|
type?: string;
|
|
177
|
-
filter?: (node: import("
|
|
178
|
+
filter?: (node: import("packages/sdk/app-graph/dist/types/src").Node) => boolean;
|
|
178
179
|
}>[])[])[])[])[])[])[])[])[])[])[]>;
|
|
179
180
|
export default _default;
|
|
180
181
|
//# sourceMappingURL=app-graph-builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,
|
|
1
|
+
{"version":3,"file":"app-graph-builder.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/app-graph-builder.ts"],"names":[],"mappings":"AAIA,OAAO,EAAyD,KAAK,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEjH,OAAO,EAAmB,KAAK,IAAI,EAAqB,MAAM,oBAAoB,CAAC;kCAM1D,cAAc;;qBAiF7B,qCAA4B;sBAAsC,oBAC9D;uBAEA,oBAAiB;sBAAgD,oBAAiB;;2BAE5E,uCAAiB;;;qBAEO,qCAAqC;sBACpD,oBAAiB;uBAE7B,oBAAiB;sBAExB,oBADiB;;2BACjB,uCACP;;;qBAIW,qCAEX;sBACW,oBAAE;uBAGN,oBACN;sBAEqC,oBAAiB;;2BAGlD,uCAEG;;;qBAC4B,qCAElC;sBAAsC,oBAAiB;uBAE7C,oBAEd;sBAEU,oBACP;;2BAII,uCACF;;;qBAIA,qCACA;sBACI,oBACT;uBAEqC,oBAAiB;sBAC7B,oBAC1B;;2BACQ,uCAAiB;;;qBACoD,qCAC1C;sBAEV,oBAAiB;uBAAgD,oBAAiB;sBAE9F,oBAAiB;;2BACP,uCAAiB;;;qBAG5B,qCAA6B;sBAE7B,oBAAS;uBAEP,oBAAK;sBAAgD,oBAC1D;;2BAGE,uCAGP;;;qBAEM,qCACqB;sBACX,oBACL;uBAEH,oBAAK;sBAAgD,oBACxD;;2BAOJ,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAwF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;;qBAAqF,qCAAqC;sBAAsC,oBAAiB;uBAAgD,oBAAiB;sBAAgD,oBAAiB;;2BAAkE,uCAAiB;;AA/K/3K,wBA8KE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAO/E,
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA8B,MAAM,qBAAqB,CAAC;;AAO/E,wBA4BK"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbientChatDialog.d.ts","sourceRoot":"","sources":["../../../../../src/components/AmbientChatDialog/AmbientChatDialog.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAUhE,eAAO,MAAM,iBAAiB,iBAAkB,iBAAiB,sBAgDhE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import '@dxos-theme';
|
|
2
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
3
|
+
import { AmbientChatDialog } from './AmbientChatDialog';
|
|
4
|
+
declare const meta: Meta<typeof AmbientChatDialog>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof AmbientChatDialog>;
|
|
7
|
+
export declare const Default: Story;
|
|
8
|
+
//# sourceMappingURL=AmbientChatDialog.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AmbientChatDialog.stories.d.ts","sourceRoot":"","sources":["../../../../../src/components/AmbientChatDialog/AmbientChatDialog.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAM5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,iBAAiB,CAsBxC,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEhD,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/AmbientChatDialog/index.ts"],"names":[],"mappings":"AAIA,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type ThemedClassName } from '@dxos/react-ui';
|
|
3
|
-
import { type UseTextEditorProps } from '@dxos/react-ui-editor';
|
|
3
|
+
import { type BasicExtensionsOptions, type UseTextEditorProps } from '@dxos/react-ui-editor';
|
|
4
4
|
import { type AutocompleteOptions } from './prompt-autocomplete';
|
|
5
|
-
export type PromptProps = ThemedClassName<AutocompleteOptions & Pick<UseTextEditorProps, 'autoFocus'>>;
|
|
6
|
-
export declare const Prompt: ({ classNames, autoFocus, onEnter, onSuggest }: PromptProps) => React.JSX.Element;
|
|
5
|
+
export type PromptProps = ThemedClassName<AutocompleteOptions & Pick<UseTextEditorProps, 'autoFocus'> & Pick<BasicExtensionsOptions, 'lineWrapping'>>;
|
|
6
|
+
export declare const Prompt: ({ classNames, autoFocus, lineWrapping, onEnter, onSuggest }: PromptProps) => React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=Prompt.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../../src/components/Prompt/Prompt.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"Prompt.d.ts","sourceRoot":"","sources":["../../../../../src/components/Prompt/Prompt.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,KAAK,eAAe,EAAmB,MAAM,gBAAgB,CAAC;AACvE,OAAO,EACL,KAAK,sBAAsB,EAI3B,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EAA+B,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE9F,MAAM,MAAM,WAAW,GAAG,eAAe,CACvC,mBAAmB,GAAG,IAAI,CAAC,kBAAkB,EAAE,WAAW,CAAC,GAAG,IAAI,CAAC,sBAAsB,EAAE,cAAc,CAAC,CAC3G,CAAC;AAEF,eAAO,MAAM,MAAM,gEAAyE,WAAW,sBAgBtG,CAAC"}
|
|
@@ -10,7 +10,7 @@ export type AutocompleteOptions = {
|
|
|
10
10
|
* @param text The current text before the cursor
|
|
11
11
|
* @returns Array of suggestion strings
|
|
12
12
|
*/
|
|
13
|
-
onSuggest
|
|
13
|
+
onSuggest?: (text: string) => string[];
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
16
|
* Creates an autocomplete extension that shows inline suggestions.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Prompt/prompt-autocomplete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAWzD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEjC;;;;OAIG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-autocomplete.d.ts","sourceRoot":"","sources":["../../../../../src/components/Prompt/prompt-autocomplete.ts"],"names":[],"mappings":"AAIA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAWzD,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAEjC;;;;OAIG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,EAAE,CAAC;CACxC,CAAC;AAmBF;;;GAGG;AACH,eAAO,MAAM,2BAA2B,2BAA4B,mBAAmB,KAAG,SAoJzF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ServiceRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/components/ServiceRegistry/ServiceRegistry.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAQvD,eAAO,MAAM,eAAe,cAAe;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"ServiceRegistry.d.ts","sourceRoot":"","sources":["../../../../../src/components/ServiceRegistry/ServiceRegistry.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAU,KAAK,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAQvD,eAAO,MAAM,eAAe,cAAe;IAAE,KAAK,EAAE,KAAK,CAAA;CAAE,sBA+B1D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,eAAe,2JAA0C,CAAC;AACvE,eAAO,MAAM,aAAa;;;kCAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAEhC,eAAO,MAAM,eAAe,2JAA0C,CAAC;AACvE,eAAO,MAAM,aAAa;;;kCAAwC,CAAC"}
|
package/dist/types/src/meta.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAE9D,eAAO,MAAM,IAAI;;;;;;;CAQK,CAAC"}
|
|
1
|
+
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../../../src/meta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB,+BAA+B,CAAC;AAE9D,eAAO,MAAM,mBAAmB,mDAA6C,CAAC;AAE9E,eAAO,MAAM,IAAI;;;;;;;CAQK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-automation",
|
|
3
|
-
"version": "0.7.5-labs.
|
|
3
|
+
"version": "0.7.5-labs.c0e040f",
|
|
4
4
|
"description": "Prompt chain plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -43,45 +43,46 @@
|
|
|
43
43
|
"lodash.get": "^4.4.2",
|
|
44
44
|
"react-markdown": "^8.0.5",
|
|
45
45
|
"unified": "^11.0.0",
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/client": "0.7.5-labs.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/context": "0.7.5-labs.
|
|
54
|
-
"@dxos/echo-db": "0.7.5-labs.
|
|
55
|
-
"@dxos/
|
|
56
|
-
"@dxos/
|
|
57
|
-
"@dxos/
|
|
58
|
-
"@dxos/invariant": "0.7.5-labs.
|
|
59
|
-
"@dxos/keys": "0.7.5-labs.
|
|
60
|
-
"@dxos/live-object": "0.7.5-labs.
|
|
61
|
-
"@dxos/
|
|
62
|
-
"@dxos/
|
|
63
|
-
"@dxos/plugin-
|
|
64
|
-
"@dxos/plugin-
|
|
65
|
-
"@dxos/plugin-
|
|
66
|
-
"@dxos/plugin-
|
|
67
|
-
"@dxos/plugin-
|
|
68
|
-
"@dxos/plugin-
|
|
69
|
-
"@dxos/plugin-space": "0.7.5-labs.
|
|
70
|
-
"@dxos/plugin-stack": "0.7.5-labs.
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/react-client": "0.7.5-labs.
|
|
73
|
-
"@dxos/react-
|
|
74
|
-
"@dxos/react-
|
|
75
|
-
"@dxos/react-ui-components": "0.7.5-labs.
|
|
76
|
-
"@dxos/react-ui-
|
|
77
|
-
"@dxos/
|
|
78
|
-
"@dxos/react-ui-
|
|
79
|
-
"@dxos/react-ui-
|
|
80
|
-
"@dxos/react-ui-
|
|
81
|
-
"@dxos/react-ui-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/schema": "0.7.5-labs.
|
|
46
|
+
"@dxos/app-framework": "0.7.5-labs.c0e040f",
|
|
47
|
+
"@dxos/artifact": "0.7.5-labs.c0e040f",
|
|
48
|
+
"@dxos/assistant": "0.7.5-labs.c0e040f",
|
|
49
|
+
"@dxos/client": "0.7.5-labs.c0e040f",
|
|
50
|
+
"@dxos/conductor": "0.7.5-labs.c0e040f",
|
|
51
|
+
"@dxos/async": "0.7.5-labs.c0e040f",
|
|
52
|
+
"@dxos/compute": "0.7.5-labs.c0e040f",
|
|
53
|
+
"@dxos/context": "0.7.5-labs.c0e040f",
|
|
54
|
+
"@dxos/echo-db": "0.7.5-labs.c0e040f",
|
|
55
|
+
"@dxos/echo-schema": "0.7.5-labs.c0e040f",
|
|
56
|
+
"@dxos/edge-client": "0.7.5-labs.c0e040f",
|
|
57
|
+
"@dxos/functions": "0.7.5-labs.c0e040f",
|
|
58
|
+
"@dxos/invariant": "0.7.5-labs.c0e040f",
|
|
59
|
+
"@dxos/keys": "0.7.5-labs.c0e040f",
|
|
60
|
+
"@dxos/live-object": "0.7.5-labs.c0e040f",
|
|
61
|
+
"@dxos/plugin-client": "0.7.5-labs.c0e040f",
|
|
62
|
+
"@dxos/log": "0.7.5-labs.c0e040f",
|
|
63
|
+
"@dxos/plugin-deck": "0.7.5-labs.c0e040f",
|
|
64
|
+
"@dxos/plugin-graph": "0.7.5-labs.c0e040f",
|
|
65
|
+
"@dxos/plugin-inbox": "0.7.5-labs.c0e040f",
|
|
66
|
+
"@dxos/plugin-markdown": "0.7.5-labs.c0e040f",
|
|
67
|
+
"@dxos/plugin-script": "0.7.5-labs.c0e040f",
|
|
68
|
+
"@dxos/plugin-sketch": "0.7.5-labs.c0e040f",
|
|
69
|
+
"@dxos/plugin-space": "0.7.5-labs.c0e040f",
|
|
70
|
+
"@dxos/plugin-stack": "0.7.5-labs.c0e040f",
|
|
71
|
+
"@dxos/react-ui-canvas-compute": "0.7.5-labs.c0e040f",
|
|
72
|
+
"@dxos/react-edge-client": "0.7.5-labs.c0e040f",
|
|
73
|
+
"@dxos/react-ui-canvas-editor": "0.7.5-labs.c0e040f",
|
|
74
|
+
"@dxos/react-client": "0.7.5-labs.c0e040f",
|
|
75
|
+
"@dxos/react-ui-components": "0.7.5-labs.c0e040f",
|
|
76
|
+
"@dxos/react-ui-dnd": "0.7.5-labs.c0e040f",
|
|
77
|
+
"@dxos/plugin-wnfs": "0.7.5-labs.c0e040f",
|
|
78
|
+
"@dxos/react-ui-editor": "0.7.5-labs.c0e040f",
|
|
79
|
+
"@dxos/react-ui-form": "0.7.5-labs.c0e040f",
|
|
80
|
+
"@dxos/react-ui-list": "0.7.5-labs.c0e040f",
|
|
81
|
+
"@dxos/react-ui-stack": "0.7.5-labs.c0e040f",
|
|
82
|
+
"@dxos/react-ui-syntax-highlighter": "0.7.5-labs.c0e040f",
|
|
83
|
+
"@dxos/react-ui-sfx": "0.7.5-labs.c0e040f",
|
|
84
|
+
"@dxos/schema": "0.7.5-labs.c0e040f",
|
|
85
|
+
"@dxos/util": "0.7.5-labs.c0e040f"
|
|
85
86
|
},
|
|
86
87
|
"devDependencies": {
|
|
87
88
|
"@types/lodash.get": "^4.4.7",
|
|
@@ -91,21 +92,21 @@
|
|
|
91
92
|
"react": "~18.2.0",
|
|
92
93
|
"react-dom": "~18.2.0",
|
|
93
94
|
"vite": "5.4.7",
|
|
94
|
-
"@dxos/artifact-testing": "0.7.5-labs.
|
|
95
|
-
"@dxos/
|
|
96
|
-
"@dxos/plugin-
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/plugin-
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/
|
|
101
|
-
"@dxos/react-ui": "0.7.5-labs.
|
|
102
|
-
"@dxos/storybook-utils": "0.7.5-labs.
|
|
95
|
+
"@dxos/artifact-testing": "0.7.5-labs.c0e040f",
|
|
96
|
+
"@dxos/plugin-chess": "0.7.5-labs.c0e040f",
|
|
97
|
+
"@dxos/plugin-map": "0.7.5-labs.c0e040f",
|
|
98
|
+
"@dxos/echo-db": "0.7.5-labs.c0e040f",
|
|
99
|
+
"@dxos/plugin-table": "0.7.5-labs.c0e040f",
|
|
100
|
+
"@dxos/react-ui": "0.7.5-labs.c0e040f",
|
|
101
|
+
"@dxos/random": "0.7.5-labs.c0e040f",
|
|
102
|
+
"@dxos/react-ui-theme": "0.7.5-labs.c0e040f",
|
|
103
|
+
"@dxos/storybook-utils": "0.7.5-labs.c0e040f"
|
|
103
104
|
},
|
|
104
105
|
"peerDependencies": {
|
|
105
106
|
"react": "~18.2.0",
|
|
106
107
|
"react-dom": "~18.2.0",
|
|
107
|
-
"@dxos/react-ui": "0.7.5-labs.
|
|
108
|
-
"@dxos/react-ui-theme": "0.7.5-labs.
|
|
108
|
+
"@dxos/react-ui": "0.7.5-labs.c0e040f",
|
|
109
|
+
"@dxos/react-ui-theme": "0.7.5-labs.c0e040f"
|
|
109
110
|
},
|
|
110
111
|
"publishConfig": {
|
|
111
112
|
"access": "public"
|
|
@@ -2,19 +2,50 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
-
import { Capabilities, contributes, type PluginsContext } from '@dxos/app-framework';
|
|
5
|
+
import { Capabilities, contributes, createIntent, LayoutAction, type PluginsContext } from '@dxos/app-framework';
|
|
6
6
|
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
7
|
-
import { createExtension, toSignal } from '@dxos/plugin-graph';
|
|
7
|
+
import { createExtension, type Node, ROOT_ID, toSignal } from '@dxos/plugin-graph';
|
|
8
8
|
import { memoizeQuery } from '@dxos/plugin-space';
|
|
9
9
|
import { getTypename, parseId, SpaceState } from '@dxos/react-client/echo';
|
|
10
10
|
|
|
11
|
-
import { AUTOMATION_PLUGIN } from '../meta';
|
|
11
|
+
import { AMBIENT_CHAT_DIALOG, AUTOMATION_PLUGIN } from '../meta';
|
|
12
12
|
|
|
13
13
|
export default (context: PluginsContext) => {
|
|
14
14
|
const resolve = (typename: string) =>
|
|
15
15
|
context.requestCapabilities(Capabilities.Metadata).find(({ id }) => id === typename)?.metadata ?? {};
|
|
16
16
|
|
|
17
17
|
return contributes(Capabilities.AppGraphBuilder, [
|
|
18
|
+
createExtension({
|
|
19
|
+
id: `${AUTOMATION_PLUGIN}/ambient-chat`,
|
|
20
|
+
filter: (node): node is Node<null> => node.id === ROOT_ID,
|
|
21
|
+
actions: () => [
|
|
22
|
+
{
|
|
23
|
+
id: `${LayoutAction.UpdateDialog._tag}/ambient-chat/open`,
|
|
24
|
+
data: async () => {
|
|
25
|
+
const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
|
|
26
|
+
await dispatch(
|
|
27
|
+
createIntent(LayoutAction.UpdateDialog, {
|
|
28
|
+
part: 'dialog',
|
|
29
|
+
subject: AMBIENT_CHAT_DIALOG,
|
|
30
|
+
options: {
|
|
31
|
+
state: true,
|
|
32
|
+
blockAlign: 'end',
|
|
33
|
+
},
|
|
34
|
+
}),
|
|
35
|
+
);
|
|
36
|
+
},
|
|
37
|
+
properties: {
|
|
38
|
+
label: ['open ambient chat label', { ns: AUTOMATION_PLUGIN }],
|
|
39
|
+
icon: 'ph--chat-centered-text--regular',
|
|
40
|
+
disposition: 'pin-end',
|
|
41
|
+
keyBinding: {
|
|
42
|
+
macos: 'shift+meta+k',
|
|
43
|
+
windows: 'shift+ctrl+k',
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
],
|
|
48
|
+
}),
|
|
18
49
|
createExtension({
|
|
19
50
|
id: `${AUTOMATION_PLUGIN}/service-registry`,
|
|
20
51
|
resolver: ({ id }) => {
|
|
@@ -7,8 +7,8 @@ import React from 'react';
|
|
|
7
7
|
import { Capabilities, contributes, createSurface } from '@dxos/app-framework';
|
|
8
8
|
import { getSpace, isEchoObject, isSpace, type ReactiveEchoObject } from '@dxos/react-client/echo';
|
|
9
9
|
|
|
10
|
-
import { AutomationPanel, ChatContainer, ServiceRegistry } from '../components';
|
|
11
|
-
import { AUTOMATION_PLUGIN } from '../meta';
|
|
10
|
+
import { AmbientChatDialog, AutomationPanel, ChatContainer, ServiceRegistry } from '../components';
|
|
11
|
+
import { AUTOMATION_PLUGIN, AMBIENT_CHAT_DIALOG } from '../meta';
|
|
12
12
|
import { AIChatType } from '../types';
|
|
13
13
|
|
|
14
14
|
export default () =>
|
|
@@ -26,6 +26,12 @@ export default () =>
|
|
|
26
26
|
<ServiceRegistry space={isSpace(data.subject) ? data.subject : getSpace(data.subject)!} />
|
|
27
27
|
),
|
|
28
28
|
}),
|
|
29
|
+
createSurface({
|
|
30
|
+
id: AMBIENT_CHAT_DIALOG,
|
|
31
|
+
role: 'dialog',
|
|
32
|
+
filter: (data): data is any => data.component === AMBIENT_CHAT_DIALOG,
|
|
33
|
+
component: () => <AmbientChatDialog />,
|
|
34
|
+
}),
|
|
29
35
|
createSurface({
|
|
30
36
|
id: `${AUTOMATION_PLUGIN}/automation`,
|
|
31
37
|
role: 'complementary--automation',
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import '@dxos-theme';
|
|
6
|
+
|
|
7
|
+
import { type StoryObj, type Meta } from '@storybook/react';
|
|
8
|
+
import React, { useState } from 'react';
|
|
9
|
+
|
|
10
|
+
import { Dialog, Toolbar } from '@dxos/react-ui';
|
|
11
|
+
import { withTheme, withLayout } from '@dxos/storybook-utils';
|
|
12
|
+
|
|
13
|
+
import { AmbientChatDialog } from './AmbientChatDialog';
|
|
14
|
+
import translations from '../../translations';
|
|
15
|
+
|
|
16
|
+
const meta: Meta<typeof AmbientChatDialog> = {
|
|
17
|
+
title: 'plugins/plugin-automation/AmbientChatDialog',
|
|
18
|
+
component: AmbientChatDialog,
|
|
19
|
+
render: () => {
|
|
20
|
+
const [open, setOpen] = useState(true);
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<div>
|
|
24
|
+
<Toolbar.Root>
|
|
25
|
+
<Toolbar.Button onClick={() => setOpen(true)}>Open</Toolbar.Button>
|
|
26
|
+
</Toolbar.Root>
|
|
27
|
+
</div>
|
|
28
|
+
<Dialog.Root open={open} onOpenChange={setOpen}>
|
|
29
|
+
<AmbientChatDialog />
|
|
30
|
+
</Dialog.Root>
|
|
31
|
+
</>
|
|
32
|
+
);
|
|
33
|
+
},
|
|
34
|
+
decorators: [withTheme, withLayout({ fullscreen: true, tooltips: true })],
|
|
35
|
+
parameters: {
|
|
36
|
+
translations,
|
|
37
|
+
},
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default meta;
|
|
41
|
+
|
|
42
|
+
type Story = StoryObj<typeof AmbientChatDialog>;
|
|
43
|
+
|
|
44
|
+
export const Default: Story = {};
|