@dxos/plugin-script 0.7.5-staging.b81e783 → 0.7.5-staging.e6154f3
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/ScriptContainer-3RFMYKTV.mjs +258 -0
- package/dist/lib/browser/ScriptContainer-3RFMYKTV.mjs.map +7 -0
- package/dist/lib/browser/{artifact-definition-NAWYXFF5.mjs → artifact-definition-4LWPD3DH.mjs} +22 -14
- package/dist/lib/browser/artifact-definition-4LWPD3DH.mjs.map +7 -0
- package/dist/lib/browser/{ScriptContainer-GR7X5NSI.mjs → chunk-G2FYNDU4.mjs} +16 -254
- package/dist/lib/browser/chunk-G2FYNDU4.mjs.map +7 -0
- package/dist/lib/browser/{chunk-YJAKD6E3.mjs → chunk-PZPYF7M4.mjs} +2 -2
- package/dist/lib/browser/chunk-PZPYF7M4.mjs.map +7 -0
- package/dist/lib/browser/{chunk-7RUMC44X.mjs → chunk-VTWBVFBK.mjs} +2 -4
- package/dist/lib/browser/{chunk-7RUMC44X.mjs.map → chunk-VTWBVFBK.mjs.map} +3 -3
- package/dist/lib/browser/index.mjs +32 -16
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/{intent-resolver-I6VDXUDH.mjs → intent-resolver-D6FPY5ZA.mjs} +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-FGWXHB7P.mjs → react-surface-G4C2PZ2K.mjs} +23 -7
- package/dist/lib/browser/react-surface-G4C2PZ2K.mjs.map +7 -0
- package/dist/lib/node/ScriptContainer-G6FZU4AM.cjs +274 -0
- package/dist/lib/node/ScriptContainer-G6FZU4AM.cjs.map +7 -0
- package/dist/lib/node/{artifact-definition-7AANUS3X.cjs → artifact-definition-BXQCFPAH.cjs} +22 -17
- package/dist/lib/node/artifact-definition-BXQCFPAH.cjs.map +7 -0
- package/dist/lib/node/{chunk-7XULMIYT.cjs → chunk-ITAJ3WRW.cjs} +5 -5
- package/dist/lib/node/chunk-ITAJ3WRW.cjs.map +7 -0
- package/dist/lib/node/{chunk-JITODKGN.cjs → chunk-TOXBGIEI.cjs} +5 -8
- package/dist/lib/node/{chunk-JITODKGN.cjs.map → chunk-TOXBGIEI.cjs.map} +3 -3
- package/dist/lib/node/{ScriptContainer-SLARXOSU.cjs → chunk-XKYJYY3T.cjs} +59 -280
- package/dist/lib/node/chunk-XKYJYY3T.cjs.map +7 -0
- package/dist/lib/node/index.cjs +32 -17
- package/dist/lib/node/index.cjs.map +3 -3
- package/dist/lib/node/{intent-resolver-MYATX7IR.cjs → intent-resolver-NYJFPD5B.cjs} +6 -6
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-2GH5HQX4.cjs → react-surface-EGSE3FMN.cjs} +24 -12
- package/dist/lib/node/react-surface-EGSE3FMN.cjs.map +7 -0
- package/dist/lib/node-esm/ScriptContainer-7FTCFIF3.mjs +259 -0
- package/dist/lib/node-esm/ScriptContainer-7FTCFIF3.mjs.map +7 -0
- package/dist/lib/node-esm/{artifact-definition-KBASPVMM.mjs → artifact-definition-KT4DK2LQ.mjs} +21 -14
- package/dist/lib/node-esm/artifact-definition-KT4DK2LQ.mjs.map +7 -0
- package/dist/lib/node-esm/{ScriptContainer-MHRJXMC4.mjs → chunk-NRICF4KE.mjs} +16 -254
- package/dist/lib/node-esm/chunk-NRICF4KE.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-IAELQPSI.mjs → chunk-S64WSJQK.mjs} +2 -4
- package/dist/lib/node-esm/{chunk-IAELQPSI.mjs.map → chunk-S64WSJQK.mjs.map} +3 -3
- package/dist/lib/node-esm/{chunk-6CHX4CEL.mjs → chunk-YIWRJ25J.mjs} +2 -2
- package/dist/lib/node-esm/chunk-YIWRJ25J.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +32 -16
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/{intent-resolver-PBDTYC4P.mjs → intent-resolver-KLBHSMW4.mjs} +2 -2
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-MLE3J3TF.mjs → react-surface-7YSGHZQM.mjs} +23 -7
- package/dist/lib/node-esm/react-surface-7YSGHZQM.mjs.map +7 -0
- package/dist/types/src/ScriptPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/hooks/template.d.ts +1 -1
- package/dist/types/src/hooks/view.d.ts +1 -1
- package/dist/types/src/hooks/view.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +3 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +1 -1
- package/package.json +42 -41
- package/src/ScriptPlugin.tsx +16 -7
- package/src/capabilities/artifact-definition.ts +14 -9
- package/src/capabilities/react-surface.tsx +9 -3
- package/src/components/index.ts +1 -1
- package/src/hooks/view.ts +4 -1
- package/src/templates/chat.ts +4 -4
- package/src/translations.ts +3 -0
- package/dist/lib/browser/AutomationPanel-6HFRNRWV.mjs +0 -78
- package/dist/lib/browser/AutomationPanel-6HFRNRWV.mjs.map +0 -7
- package/dist/lib/browser/ScriptContainer-GR7X5NSI.mjs.map +0 -7
- package/dist/lib/browser/artifact-definition-NAWYXFF5.mjs.map +0 -7
- package/dist/lib/browser/chunk-YJAKD6E3.mjs.map +0 -7
- package/dist/lib/browser/react-surface-FGWXHB7P.mjs.map +0 -7
- package/dist/lib/node/AutomationPanel-RBQ4DODN.cjs +0 -104
- package/dist/lib/node/AutomationPanel-RBQ4DODN.cjs.map +0 -7
- package/dist/lib/node/ScriptContainer-SLARXOSU.cjs.map +0 -7
- package/dist/lib/node/artifact-definition-7AANUS3X.cjs.map +0 -7
- package/dist/lib/node/chunk-7XULMIYT.cjs.map +0 -7
- package/dist/lib/node/react-surface-2GH5HQX4.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-WTVVVMRH.mjs +0 -79
- package/dist/lib/node-esm/AutomationPanel-WTVVVMRH.mjs.map +0 -7
- package/dist/lib/node-esm/ScriptContainer-MHRJXMC4.mjs.map +0 -7
- package/dist/lib/node-esm/artifact-definition-KBASPVMM.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-6CHX4CEL.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-MLE3J3TF.mjs.map +0 -7
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +0 -16
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +0 -1
- package/dist/types/src/components/AutomationPanel/index.d.ts +0 -4
- package/dist/types/src/components/AutomationPanel/index.d.ts.map +0 -1
- package/src/components/AutomationPanel/AutomationPanel.tsx +0 -104
- package/src/components/AutomationPanel/index.ts +0 -9
- /package/dist/lib/browser/{intent-resolver-I6VDXUDH.mjs.map → intent-resolver-D6FPY5ZA.mjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-MYATX7IR.cjs.map → intent-resolver-NYJFPD5B.cjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-PBDTYC4P.mjs.map → intent-resolver-KLBHSMW4.mjs.map} +0 -0
|
@@ -2,6 +2,6 @@ export declare const Compiler: (props?: unknown) => Promise<() => Promise<import
|
|
|
2
2
|
export declare const IntentResolver: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.IntentResolver> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
3
3
|
export declare const ReactSurface: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.ReactSurface> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
4
4
|
export declare const ScriptSettings: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/app-framework").Capabilities.Settings> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
5
|
-
export declare const ArtifactDefinition: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("
|
|
5
|
+
export declare const ArtifactDefinition: (props?: unknown) => Promise<() => Promise<import("@dxos/app-framework").Capability<import("@dxos/artifact").ArtifactDefinition> | import("@dxos/app-framework").AnyCapability[]>>;
|
|
6
6
|
export * from './capabilities';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,uKAAmC,CAAC;AACzD,eAAO,MAAM,cAAc,kMAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAClE,eAAO,MAAM,cAAc,4LAAmC,CAAC;AAC/D,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,QAAQ,uKAAmC,CAAC;AACzD,eAAO,MAAM,cAAc,kMAA0C,CAAC;AACtE,eAAO,MAAM,YAAY,gMAAwC,CAAC;AAClE,eAAO,MAAM,cAAc,4LAAmC,CAAC;AAC/D,eAAO,MAAM,kBAAkB,oLAA8C,CAAC;AAE9E,cAAc,gBAAgB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA6C,MAAM,qBAAqB,CAAC;;
|
|
1
|
+
{"version":3,"file":"react-surface.d.ts","sourceRoot":"","sources":["../../../../src/capabilities/react-surface.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,YAAY,EAA6C,MAAM,qBAAqB,CAAC;;AAW9F,wBA0CK"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
export * from './DebugPanel';
|
|
1
2
|
export * from './ScriptSettings';
|
|
2
3
|
export * from './ScriptSettingsPanel';
|
|
3
|
-
export declare const AutomationPanel: import("react").LazyExoticComponent<({ subject }: import("./AutomationPanel").AutomationPanelProps) => import("react/jsx-runtime").JSX.Element>;
|
|
4
4
|
export declare const ScriptContainer: import("react").LazyExoticComponent<({ role, classNames, script, settings, env, }: import("./ScriptContainer").ScriptEditorProps) => import("react/jsx-runtime").JSX.Element>;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/index.ts"],"names":[],"mappings":"AAMA,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AAEtC,eAAO,MAAM,eAAe,+KAA0C,CAAC"}
|
|
@@ -13,7 +13,7 @@ export declare const createTemplateSelect: () => {
|
|
|
13
13
|
}];
|
|
14
14
|
variant: string;
|
|
15
15
|
};
|
|
16
|
-
data: typeof import("
|
|
16
|
+
data: typeof import("@dxos/app-graph").actionGroupSymbol;
|
|
17
17
|
} | {
|
|
18
18
|
id: string;
|
|
19
19
|
type: string;
|
|
@@ -18,7 +18,7 @@ export declare const createView: (state: Partial<ViewState>) => {
|
|
|
18
18
|
applyActive: boolean;
|
|
19
19
|
value: ViewType | undefined;
|
|
20
20
|
};
|
|
21
|
-
data: typeof import("
|
|
21
|
+
data: typeof import("@dxos/app-graph").actionGroupSymbol;
|
|
22
22
|
} | {
|
|
23
23
|
id: string;
|
|
24
24
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/hooks/view.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../../../src/hooks/view.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,CAAC;AAEpD,MAAM,MAAM,SAAS,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAA;CAAE,CAAC;AA+BrE,eAAO,MAAM,UAAU,UAAW,OAAO,CAAC,SAAS,CAAC;;;;;;;;;;;;;;;;;;;;;;;CAUnD,CAAC"}
|
|
@@ -39,6 +39,7 @@ declare const _default: {
|
|
|
39
39
|
'view split label'?: undefined;
|
|
40
40
|
'view debug label'?: undefined;
|
|
41
41
|
'template select group label'?: undefined;
|
|
42
|
+
'function panel label'?: undefined;
|
|
42
43
|
} | {
|
|
43
44
|
'plugin name': string;
|
|
44
45
|
'object title placeholder': string;
|
|
@@ -77,6 +78,7 @@ declare const _default: {
|
|
|
77
78
|
'view split label': string;
|
|
78
79
|
'view debug label': string;
|
|
79
80
|
'template select group label': string;
|
|
81
|
+
'function panel label': string;
|
|
80
82
|
'typename label'?: undefined;
|
|
81
83
|
};
|
|
82
84
|
"dxos.org/plugin/script": {
|
|
@@ -117,6 +119,7 @@ declare const _default: {
|
|
|
117
119
|
'view split label': string;
|
|
118
120
|
'view debug label': string;
|
|
119
121
|
'template select group label': string;
|
|
122
|
+
'function panel label': string;
|
|
120
123
|
};
|
|
121
124
|
};
|
|
122
125
|
}[];
|
|
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAkDE"}
|
|
@@ -13,7 +13,7 @@ export declare namespace ScriptAction {
|
|
|
13
13
|
name: S.optional<typeof S.String>;
|
|
14
14
|
gistUrl: S.optional<S.SchemaClass<string, string, never>>;
|
|
15
15
|
}>, S.Struct<{
|
|
16
|
-
space: S.Schema<import("@dxos/client
|
|
16
|
+
space: S.Schema<import("@dxos/client-protocol").Space, import("@dxos/client-protocol").Space, never>;
|
|
17
17
|
}>>;
|
|
18
18
|
output: S.Struct<{
|
|
19
19
|
object: typeof ScriptType;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-script",
|
|
3
|
-
"version": "0.7.5-staging.
|
|
3
|
+
"version": "0.7.5-staging.e6154f3",
|
|
4
4
|
"description": "Braneframe notebook plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -54,40 +54,41 @@
|
|
|
54
54
|
"prettier": "^3.2.4",
|
|
55
55
|
"react-syntax-highlighter": "^15.5.0",
|
|
56
56
|
"typescript": "^5.7.2",
|
|
57
|
-
"@dxos/app-framework": "0.7.5-staging.
|
|
58
|
-
"@dxos/artifact": "0.7.5-staging.
|
|
59
|
-
"@dxos/assistant": "0.7.5-staging.
|
|
60
|
-
"@dxos/async": "0.7.5-staging.
|
|
61
|
-
"@dxos/client
|
|
62
|
-
"@dxos/client": "0.7.5-staging.
|
|
63
|
-
"@dxos/compute": "0.7.5-staging.
|
|
64
|
-
"@dxos/debug": "0.7.5-staging.
|
|
65
|
-
"@dxos/echo-schema": "0.7.5-staging.
|
|
66
|
-
"@dxos/functions": "0.7.5-staging.
|
|
67
|
-
"@dxos/keys": "0.7.5-staging.
|
|
68
|
-
"@dxos/live-object": "0.7.5-staging.
|
|
69
|
-
"@dxos/
|
|
70
|
-
"@dxos/
|
|
71
|
-
"@dxos/
|
|
72
|
-
"@dxos/
|
|
73
|
-
"@dxos/plugin-
|
|
74
|
-
"@dxos/plugin-
|
|
75
|
-
"@dxos/plugin-
|
|
76
|
-
"@dxos/plugin-
|
|
77
|
-
"@dxos/plugin-
|
|
78
|
-
"@dxos/
|
|
79
|
-
"@dxos/
|
|
80
|
-
"@dxos/
|
|
81
|
-
"@dxos/react-
|
|
82
|
-
"@dxos/react-ui-
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/react-ui-
|
|
85
|
-
"@dxos/react-ui-menu": "0.7.5-staging.
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/
|
|
57
|
+
"@dxos/app-framework": "0.7.5-staging.e6154f3",
|
|
58
|
+
"@dxos/artifact": "0.7.5-staging.e6154f3",
|
|
59
|
+
"@dxos/assistant": "0.7.5-staging.e6154f3",
|
|
60
|
+
"@dxos/async": "0.7.5-staging.e6154f3",
|
|
61
|
+
"@dxos/client": "0.7.5-staging.e6154f3",
|
|
62
|
+
"@dxos/client-protocol": "0.7.5-staging.e6154f3",
|
|
63
|
+
"@dxos/compute": "0.7.5-staging.e6154f3",
|
|
64
|
+
"@dxos/debug": "0.7.5-staging.e6154f3",
|
|
65
|
+
"@dxos/echo-schema": "0.7.5-staging.e6154f3",
|
|
66
|
+
"@dxos/functions": "0.7.5-staging.e6154f3",
|
|
67
|
+
"@dxos/keys": "0.7.5-staging.e6154f3",
|
|
68
|
+
"@dxos/live-object": "0.7.5-staging.e6154f3",
|
|
69
|
+
"@dxos/invariant": "0.7.5-staging.e6154f3",
|
|
70
|
+
"@dxos/local-storage": "0.7.5-staging.e6154f3",
|
|
71
|
+
"@dxos/plugin-deck": "0.7.5-staging.e6154f3",
|
|
72
|
+
"@dxos/log": "0.7.5-staging.e6154f3",
|
|
73
|
+
"@dxos/plugin-client": "0.7.5-staging.e6154f3",
|
|
74
|
+
"@dxos/plugin-explorer": "0.7.5-staging.e6154f3",
|
|
75
|
+
"@dxos/plugin-graph": "0.7.5-staging.e6154f3",
|
|
76
|
+
"@dxos/plugin-markdown": "0.7.5-staging.e6154f3",
|
|
77
|
+
"@dxos/plugin-space": "0.7.5-staging.e6154f3",
|
|
78
|
+
"@dxos/plugin-theme": "0.7.5-staging.e6154f3",
|
|
79
|
+
"@dxos/protocols": "0.7.5-staging.e6154f3",
|
|
80
|
+
"@dxos/plugin-stack": "0.7.5-staging.e6154f3",
|
|
81
|
+
"@dxos/react-client": "0.7.5-staging.e6154f3",
|
|
82
|
+
"@dxos/react-ui-attention": "0.7.5-staging.e6154f3",
|
|
83
|
+
"@dxos/react-ui-editor": "0.7.5-staging.e6154f3",
|
|
84
|
+
"@dxos/react-ui-form": "0.7.5-staging.e6154f3",
|
|
85
|
+
"@dxos/react-ui-menu": "0.7.5-staging.e6154f3",
|
|
86
|
+
"@dxos/react-ui-stack": "0.7.5-staging.e6154f3",
|
|
87
|
+
"@dxos/react-ui-syntax-highlighter": "0.7.5-staging.e6154f3",
|
|
88
|
+
"@dxos/rpc": "0.7.5-staging.e6154f3",
|
|
89
|
+
"@dxos/rpc-tunnel": "0.7.5-staging.e6154f3",
|
|
90
|
+
"@dxos/schema": "0.7.5-staging.e6154f3",
|
|
91
|
+
"@dxos/util": "0.7.5-staging.e6154f3"
|
|
91
92
|
},
|
|
92
93
|
"devDependencies": {
|
|
93
94
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -97,17 +98,17 @@
|
|
|
97
98
|
"react": "~18.2.0",
|
|
98
99
|
"react-dom": "~18.2.0",
|
|
99
100
|
"vite": "5.4.7",
|
|
100
|
-
"@dxos/random": "0.7.5-staging.
|
|
101
|
-
"@dxos/react-ui-theme": "0.7.5-staging.
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
101
|
+
"@dxos/random": "0.7.5-staging.e6154f3",
|
|
102
|
+
"@dxos/react-ui-theme": "0.7.5-staging.e6154f3",
|
|
103
|
+
"@dxos/react-ui": "0.7.5-staging.e6154f3",
|
|
104
|
+
"@dxos/storybook-utils": "0.7.5-staging.e6154f3"
|
|
104
105
|
},
|
|
105
106
|
"peerDependencies": {
|
|
106
107
|
"@phosphor-icons/react": "^2.1.5",
|
|
107
108
|
"react": "~18.2.0",
|
|
108
109
|
"react-dom": "~18.2.0",
|
|
109
|
-
"@dxos/react-ui": "0.7.5-staging.
|
|
110
|
-
"@dxos/react-ui-theme": "0.7.5-staging.
|
|
110
|
+
"@dxos/react-ui": "0.7.5-staging.e6154f3",
|
|
111
|
+
"@dxos/react-ui-theme": "0.7.5-staging.e6154f3"
|
|
111
112
|
},
|
|
112
113
|
"publishConfig": {
|
|
113
114
|
"access": "public"
|
package/src/ScriptPlugin.tsx
CHANGED
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
// @ts-ignore
|
|
6
6
|
|
|
7
7
|
import { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';
|
|
8
|
-
import {
|
|
8
|
+
import { ScriptType } from '@dxos/functions';
|
|
9
9
|
import { RefArray } from '@dxos/live-object';
|
|
10
|
-
import {
|
|
10
|
+
import { ClientEvents } from '@dxos/plugin-client';
|
|
11
|
+
import { DeckCapabilities, DeckEvents } from '@dxos/plugin-deck';
|
|
11
12
|
import { SpaceCapabilities } from '@dxos/plugin-space';
|
|
12
13
|
import { defineObjectForm } from '@dxos/plugin-space/types';
|
|
14
|
+
import { getSpace } from '@dxos/react-client/echo';
|
|
13
15
|
|
|
14
16
|
import { ArtifactDefinition, Compiler, IntentResolver, ReactSurface, ScriptSettings } from './capabilities';
|
|
15
17
|
import { ScriptEvents } from './events';
|
|
@@ -48,6 +50,18 @@ export const ScriptPlugin = () =>
|
|
|
48
50
|
},
|
|
49
51
|
}),
|
|
50
52
|
}),
|
|
53
|
+
defineModule({
|
|
54
|
+
id: `${meta.id}/module/complementary-panels`,
|
|
55
|
+
activatesOn: DeckEvents.SetupComplementaryPanels,
|
|
56
|
+
activate: () =>
|
|
57
|
+
contributes(DeckCapabilities.ComplementaryPanel, {
|
|
58
|
+
id: 'function',
|
|
59
|
+
label: ['function panel label', { ns: SCRIPT_PLUGIN }],
|
|
60
|
+
icon: 'ph--terminal--regular',
|
|
61
|
+
fixed: true,
|
|
62
|
+
filter: (node) => node.data instanceof ScriptType && !!getSpace(node.data),
|
|
63
|
+
}),
|
|
64
|
+
}),
|
|
51
65
|
defineModule({
|
|
52
66
|
id: `${meta.id}/module/object-form`,
|
|
53
67
|
activatesOn: ClientEvents.SetupSchema,
|
|
@@ -61,11 +75,6 @@ export const ScriptPlugin = () =>
|
|
|
61
75
|
}),
|
|
62
76
|
),
|
|
63
77
|
}),
|
|
64
|
-
defineModule({
|
|
65
|
-
id: `${meta.id}/module/schema`,
|
|
66
|
-
activatesOn: ClientEvents.SetupSchema,
|
|
67
|
-
activate: () => contributes(ClientCapabilities.Schema, [FunctionType]),
|
|
68
|
-
}),
|
|
69
78
|
defineModule({
|
|
70
79
|
id: `${meta.id}/module/react-surface`,
|
|
71
80
|
activatesOn: Events.SetupReactSurface,
|
|
@@ -12,6 +12,7 @@ import { SpaceAction } from '@dxos/plugin-space/types';
|
|
|
12
12
|
import { create, makeRef, type Space } from '@dxos/react-client/echo';
|
|
13
13
|
import { TextType } from '@dxos/schema';
|
|
14
14
|
|
|
15
|
+
import { meta } from '../meta';
|
|
15
16
|
// TODO(burdon): Factor out.
|
|
16
17
|
declare global {
|
|
17
18
|
interface ToolContextExtensions {
|
|
@@ -22,10 +23,11 @@ declare global {
|
|
|
22
23
|
|
|
23
24
|
export default () => {
|
|
24
25
|
const definition = defineArtifact({
|
|
25
|
-
id:
|
|
26
|
+
id: meta.id,
|
|
27
|
+
name: meta.name,
|
|
26
28
|
// TODO(dmaretskyi): Since writing scripts requires a lot of domain knowledge,
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
+
// we should offload the work of synthesizing the code to a separate model.
|
|
30
|
+
// The main reasoning model will give it a concrete task and the script model will synthesize the code, knowing all the docs.
|
|
29
31
|
instructions: `
|
|
30
32
|
If the user explicitly requests you to write a script, you can create one.
|
|
31
33
|
If the user requests you to change one of the existing script, you can update it.
|
|
@@ -136,9 +138,10 @@ export default () => {
|
|
|
136
138
|
`,
|
|
137
139
|
schema: ScriptType,
|
|
138
140
|
tools: [
|
|
139
|
-
defineTool({
|
|
140
|
-
name: '
|
|
141
|
+
defineTool(meta.id, {
|
|
142
|
+
name: 'create',
|
|
141
143
|
description: 'Create a new script. Returns the artifact definition for the script',
|
|
144
|
+
caption: 'Creating script...',
|
|
142
145
|
schema: S.Struct({
|
|
143
146
|
name: S.String.annotations({ description: 'The name of the script' }),
|
|
144
147
|
code: S.String.annotations({
|
|
@@ -168,9 +171,10 @@ export default () => {
|
|
|
168
171
|
return ToolResult.Success(createArtifactElement(script.id));
|
|
169
172
|
},
|
|
170
173
|
}),
|
|
171
|
-
defineTool({
|
|
172
|
-
name: '
|
|
174
|
+
defineTool(meta.id, {
|
|
175
|
+
name: 'inspect',
|
|
173
176
|
description: 'Inspect a script. Returns the artifact definition for the script',
|
|
177
|
+
caption: 'Inspecting script...',
|
|
174
178
|
schema: S.Struct({
|
|
175
179
|
id: ObjectId,
|
|
176
180
|
}),
|
|
@@ -186,9 +190,10 @@ export default () => {
|
|
|
186
190
|
});
|
|
187
191
|
},
|
|
188
192
|
}),
|
|
189
|
-
defineTool({
|
|
190
|
-
name: '
|
|
193
|
+
defineTool(meta.id, {
|
|
194
|
+
name: 'update',
|
|
191
195
|
description: 'Update a script. Returns the artifact definition for the script',
|
|
196
|
+
caption: 'Updating script...',
|
|
192
197
|
schema: S.Struct({
|
|
193
198
|
id: ObjectId,
|
|
194
199
|
code: S.String.annotations({
|
|
@@ -10,7 +10,8 @@ import { SettingsStore } from '@dxos/local-storage';
|
|
|
10
10
|
import { Clipboard } from '@dxos/react-ui';
|
|
11
11
|
|
|
12
12
|
import { ScriptCapabilities } from './capabilities';
|
|
13
|
-
import {
|
|
13
|
+
import { DebugPanel, ScriptSettings, ScriptContainer, ScriptSettingsPanel } from '../components';
|
|
14
|
+
import { useDeployState, useToolbarState } from '../hooks';
|
|
14
15
|
import { SCRIPT_PLUGIN } from '../meta';
|
|
15
16
|
import { type ScriptSettingsProps } from '../types';
|
|
16
17
|
|
|
@@ -36,10 +37,15 @@ export default () =>
|
|
|
36
37
|
}),
|
|
37
38
|
createSurface({
|
|
38
39
|
id: `${SCRIPT_PLUGIN}/automation`,
|
|
39
|
-
role: 'complementary--
|
|
40
|
+
role: 'complementary--function',
|
|
40
41
|
position: 'hoist',
|
|
41
42
|
filter: (data): data is { subject: ScriptType } => data.subject instanceof ScriptType,
|
|
42
|
-
component: ({ data }) =>
|
|
43
|
+
component: ({ data }) => {
|
|
44
|
+
// TODO(wittjosiah): Decouple hooks from toolbar state.
|
|
45
|
+
const state = useToolbarState({ view: 'editor' });
|
|
46
|
+
useDeployState({ state, script: data.subject });
|
|
47
|
+
return <DebugPanel functionUrl={state.functionUrl} />;
|
|
48
|
+
},
|
|
43
49
|
}),
|
|
44
50
|
createSurface({
|
|
45
51
|
id: `${SCRIPT_PLUGIN}/settings-panel`,
|
package/src/components/index.ts
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import { lazy } from 'react';
|
|
6
6
|
|
|
7
|
+
export * from './DebugPanel';
|
|
7
8
|
export * from './ScriptSettings';
|
|
8
9
|
export * from './ScriptSettingsPanel';
|
|
9
10
|
|
|
10
|
-
export const AutomationPanel = lazy(() => import('./AutomationPanel'));
|
|
11
11
|
export const ScriptContainer = lazy(() => import('./ScriptContainer'));
|
package/src/hooks/view.ts
CHANGED
|
@@ -6,7 +6,8 @@ import { createMenuAction, createMenuItemGroup } from '@dxos/react-ui-menu';
|
|
|
6
6
|
|
|
7
7
|
import { SCRIPT_PLUGIN } from '../meta';
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// TODO(wittjosiah): Replace debug with logs.
|
|
10
|
+
export type ViewType = 'editor' | 'split' | 'debug'; // 'logs';
|
|
10
11
|
|
|
11
12
|
export type ViewState = { view: ViewType };
|
|
12
13
|
|
|
@@ -16,6 +17,8 @@ const views: Record<ViewType, string> = {
|
|
|
16
17
|
editor: 'ph--code--regular',
|
|
17
18
|
split: 'ph--square-split-vertical--regular',
|
|
18
19
|
debug: 'ph--bug--regular',
|
|
20
|
+
// TODO(wittjosiah): Replace debug with logs.
|
|
21
|
+
// logs: 'ph--clock-counter-clockwise--regular',
|
|
19
22
|
};
|
|
20
23
|
|
|
21
24
|
const createViewGroupItem = (state: Partial<ViewState>) => {
|
package/src/templates/chat.ts
CHANGED
|
@@ -57,11 +57,11 @@ export default async ({
|
|
|
57
57
|
let prompt = promptObject.template;
|
|
58
58
|
for (const input of promptObject.inputs) {
|
|
59
59
|
let value: string | null = null;
|
|
60
|
-
if (input.type ===
|
|
60
|
+
if (input.type === TemplateInputType.VALUE) {
|
|
61
61
|
value = String(input.value);
|
|
62
|
-
} else if (input.type ===
|
|
62
|
+
} else if (input.type === TemplateInputType.RETRIEVER) {
|
|
63
63
|
value = await getContext({ space });
|
|
64
|
-
} else if (input.type ===
|
|
64
|
+
} else if (input.type === TemplateInputType.PASS_THROUGH) {
|
|
65
65
|
value = message.text;
|
|
66
66
|
}
|
|
67
67
|
if (value) {
|
|
@@ -90,7 +90,7 @@ const getContext = async ({ space }: any) => {
|
|
|
90
90
|
return context;
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
enum
|
|
93
|
+
enum TemplateInputType {
|
|
94
94
|
VALUE = 0,
|
|
95
95
|
PASS_THROUGH = 1,
|
|
96
96
|
RETRIEVER = 2,
|
package/src/translations.ts
CHANGED
|
@@ -49,7 +49,10 @@ export default [
|
|
|
49
49
|
'view editor label': 'Editor',
|
|
50
50
|
'view split label': 'Split',
|
|
51
51
|
'view debug label': 'Debug',
|
|
52
|
+
// TODO(wittjosiah): Replace debug with logs.
|
|
53
|
+
// 'view logs label': 'Logs',
|
|
52
54
|
'template select group label': 'Select template',
|
|
55
|
+
'function panel label': 'Debug Function',
|
|
53
56
|
},
|
|
54
57
|
},
|
|
55
58
|
},
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DebugPanel
|
|
3
|
-
} from "./chunk-5SXOHNAK.mjs";
|
|
4
|
-
import {
|
|
5
|
-
SCRIPT_PLUGIN
|
|
6
|
-
} from "./chunk-FVVCAWNP.mjs";
|
|
7
|
-
|
|
8
|
-
// packages/plugins/experimental/plugin-script/src/components/AutomationPanel/AutomationPanel.tsx
|
|
9
|
-
import React, { useMemo, useState } from "react";
|
|
10
|
-
import { failUndefined } from "@dxos/debug";
|
|
11
|
-
import { FunctionType, ScriptType, getInvocationUrl, getUserFunctionUrlInMetadata } from "@dxos/functions";
|
|
12
|
-
import { useClient } from "@dxos/react-client";
|
|
13
|
-
import { Filter, getMeta, getSpace, useQuery } from "@dxos/react-client/echo";
|
|
14
|
-
import { Select, useTranslation } from "@dxos/react-ui";
|
|
15
|
-
var AutomationPanel = ({ subject }) => {
|
|
16
|
-
const { t } = useTranslation(SCRIPT_PLUGIN);
|
|
17
|
-
const space = getSpace(subject);
|
|
18
|
-
const functions = useQuery(space ?? void 0, subject instanceof ScriptType ? Filter.schema(FunctionType, {
|
|
19
|
-
source: subject
|
|
20
|
-
}) : Filter.schema(FunctionType, (fn) => fn.binding != null), {}, [
|
|
21
|
-
subject
|
|
22
|
-
]);
|
|
23
|
-
const [selectedFunction, setSelectedFunction] = useState(null);
|
|
24
|
-
const chatFunction = subject instanceof ScriptType ? functions[0] : selectedFunction;
|
|
25
|
-
return /* @__PURE__ */ React.createElement("div", {
|
|
26
|
-
className: "h-full flex flex-col"
|
|
27
|
-
}, !(subject instanceof ScriptType) && /* @__PURE__ */ React.createElement(BindingSelect, {
|
|
28
|
-
selectedFunction,
|
|
29
|
-
setSelectedFunction,
|
|
30
|
-
functions
|
|
31
|
-
}), chatFunction && /* @__PURE__ */ React.createElement(ChatPanel, {
|
|
32
|
-
fn: chatFunction,
|
|
33
|
-
subject
|
|
34
|
-
}), subject instanceof ScriptType && functions.length === 0 && /* @__PURE__ */ React.createElement("div", {
|
|
35
|
-
className: "p-1"
|
|
36
|
-
}, t("not deployed")));
|
|
37
|
-
};
|
|
38
|
-
var ChatPanel = ({ fn, subject }) => {
|
|
39
|
-
const client = useClient();
|
|
40
|
-
const space = getSpace(fn);
|
|
41
|
-
const existingFunctionUrl = getUserFunctionUrlInMetadata(getMeta(fn));
|
|
42
|
-
const functionUrl = useMemo(() => {
|
|
43
|
-
if (!existingFunctionUrl) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
return getInvocationUrl(existingFunctionUrl, client.config.values.runtime?.services?.edge?.url ?? "", {
|
|
47
|
-
spaceId: space?.id,
|
|
48
|
-
subjectId: subject?.id
|
|
49
|
-
});
|
|
50
|
-
}, [
|
|
51
|
-
existingFunctionUrl,
|
|
52
|
-
space,
|
|
53
|
-
subject
|
|
54
|
-
]);
|
|
55
|
-
return /* @__PURE__ */ React.createElement(DebugPanel, {
|
|
56
|
-
functionUrl,
|
|
57
|
-
classNames: "flex-1"
|
|
58
|
-
});
|
|
59
|
-
};
|
|
60
|
-
var BindingSelect = ({ selectedFunction, setSelectedFunction, functions }) => {
|
|
61
|
-
return /* @__PURE__ */ React.createElement(Select.Root, {
|
|
62
|
-
value: selectedFunction?.id,
|
|
63
|
-
onValueChange: (id) => setSelectedFunction(functions.find((fn) => fn.id === id) ?? failUndefined())
|
|
64
|
-
}, /* @__PURE__ */ React.createElement(Select.TriggerButton, {
|
|
65
|
-
placeholder: "Select value"
|
|
66
|
-
}), /* @__PURE__ */ React.createElement(Select.Portal, null, /* @__PURE__ */ React.createElement(Select.Content, null, /* @__PURE__ */ React.createElement(Select.ScrollUpButton, null), /* @__PURE__ */ React.createElement(Select.Viewport, null, functions.map(({ id, binding }) => /* @__PURE__ */ React.createElement(Select.Option, {
|
|
67
|
-
key: id,
|
|
68
|
-
value: id
|
|
69
|
-
}, binding))), /* @__PURE__ */ React.createElement(Select.ScrollDownButton, null), /* @__PURE__ */ React.createElement(Select.Arrow, null))));
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
// packages/plugins/experimental/plugin-script/src/components/AutomationPanel/index.ts
|
|
73
|
-
var AutomationPanel_default = AutomationPanel;
|
|
74
|
-
export {
|
|
75
|
-
AutomationPanel,
|
|
76
|
-
AutomationPanel_default as default
|
|
77
|
-
};
|
|
78
|
-
//# sourceMappingURL=AutomationPanel-6HFRNRWV.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/AutomationPanel/AutomationPanel.tsx", "../../../src/components/AutomationPanel/index.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useMemo, useState } from 'react';\n\nimport { failUndefined } from '@dxos/debug';\nimport { FunctionType, ScriptType, getInvocationUrl, getUserFunctionUrlInMetadata } from '@dxos/functions';\nimport { useClient } from '@dxos/react-client';\nimport { Filter, getMeta, getSpace, type ReactiveEchoObject, useQuery } from '@dxos/react-client/echo';\nimport { Select, useTranslation } from '@dxos/react-ui';\n\nimport { SCRIPT_PLUGIN } from '../../meta';\nimport { DebugPanel } from '../DebugPanel';\n\nexport interface AutomationPanelProps {\n subject: ReactiveEchoObject<any>;\n}\n\nexport const AutomationPanel = ({ subject }: AutomationPanelProps) => {\n const { t } = useTranslation(SCRIPT_PLUGIN);\n const space = getSpace(subject);\n\n // TODO(dmaretskyi): Parametric query.\n const functions = useQuery(\n space ?? undefined,\n subject instanceof ScriptType\n ? Filter.schema(FunctionType, { source: subject })\n : Filter.schema(FunctionType, (fn) => fn.binding != null),\n {},\n [subject],\n );\n\n const [selectedFunction, setSelectedFunction] = useState<FunctionType | null>(null);\n const chatFunction = subject instanceof ScriptType ? functions[0] : selectedFunction;\n\n return (\n <div className='h-full flex flex-col'>\n {!(subject instanceof ScriptType) && (\n <BindingSelect\n selectedFunction={selectedFunction}\n setSelectedFunction={setSelectedFunction}\n functions={functions}\n />\n )}\n {chatFunction && <ChatPanel fn={chatFunction} subject={subject} />}\n {subject instanceof ScriptType && functions.length === 0 && <div className='p-1'>{t('not deployed')}</div>}\n </div>\n );\n};\n\nexport interface ChatPanelProps {\n fn: FunctionType;\n subject: ReactiveEchoObject<any>;\n}\n\nconst ChatPanel = ({ fn, subject }: ChatPanelProps) => {\n const client = useClient();\n const space = getSpace(fn);\n const existingFunctionUrl = getUserFunctionUrlInMetadata(getMeta(fn));\n const functionUrl = useMemo(() => {\n if (!existingFunctionUrl) {\n return;\n }\n\n return getInvocationUrl(existingFunctionUrl, client.config.values.runtime?.services?.edge?.url ?? '', {\n spaceId: space?.id,\n subjectId: subject?.id,\n });\n }, [existingFunctionUrl, space, subject]);\n\n return <DebugPanel functionUrl={functionUrl} classNames='flex-1' />;\n};\n\nexport interface BindingSelectProps {\n selectedFunction: FunctionType | null;\n setSelectedFunction: (fn: FunctionType) => void;\n functions: FunctionType[];\n}\n\nconst BindingSelect = ({ selectedFunction, setSelectedFunction, functions }: BindingSelectProps) => {\n return (\n <Select.Root\n value={selectedFunction?.id}\n onValueChange={(id) => setSelectedFunction(functions.find((fn) => fn.id === id) ?? failUndefined())}\n >\n <Select.TriggerButton placeholder='Select value' />\n <Select.Portal>\n <Select.Content>\n <Select.ScrollUpButton />\n <Select.Viewport>\n {functions.map(({ id, binding }) => (\n <Select.Option key={id} value={id}>\n {binding}\n </Select.Option>\n ))}\n </Select.Viewport>\n <Select.ScrollDownButton />\n <Select.Arrow />\n </Select.Content>\n </Select.Portal>\n </Select.Root>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport { AutomationPanel } from './AutomationPanel';\n\nexport * from './AutomationPanel';\n\nexport default AutomationPanel;\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAIA,OAAOA,SAASC,SAASC,gBAAgB;AAEzC,SAASC,qBAAqB;AAC9B,SAASC,cAAcC,YAAYC,kBAAkBC,oCAAoC;AACzF,SAASC,iBAAiB;AAC1B,SAASC,QAAQC,SAASC,UAAmCC,gBAAgB;AAC7E,SAASC,QAAQC,sBAAsB;AAShC,IAAMC,kBAAkB,CAAC,EAAEC,QAAO,MAAwB;AAC/D,QAAM,EAAEC,EAAC,IAAKC,eAAeC,aAAAA;AAC7B,QAAMC,QAAQC,SAASL,OAAAA;AAGvB,QAAMM,YAAYC,SAChBH,SAASI,QACTR,mBAAmBS,aACfC,OAAOC,OAAOC,cAAc;IAAEC,QAAQb;EAAQ,CAAA,IAC9CU,OAAOC,OAAOC,cAAc,CAACE,OAAOA,GAAGC,WAAW,IAAA,GACtD,CAAC,GACD;IAACf;GAAQ;AAGX,QAAM,CAACgB,kBAAkBC,mBAAAA,IAAuBC,SAA8B,IAAA;AAC9E,QAAMC,eAAenB,mBAAmBS,aAAaH,UAAU,CAAA,IAAKU;AAEpE,SACE,sBAAA,cAACI,OAAAA;IAAIC,WAAU;KACZ,EAAErB,mBAAmBS,eACpB,sBAAA,cAACa,eAAAA;IACCN;IACAC;IACAX;MAGHa,gBAAgB,sBAAA,cAACI,WAAAA;IAAUT,IAAIK;IAAcnB;MAC7CA,mBAAmBS,cAAcH,UAAUkB,WAAW,KAAK,sBAAA,cAACJ,OAAAA;IAAIC,WAAU;KAAOpB,EAAE,cAAA,CAAA,CAAA;AAG1F;AAOA,IAAMsB,YAAY,CAAC,EAAET,IAAId,QAAO,MAAkB;AAChD,QAAMyB,SAASC,UAAAA;AACf,QAAMtB,QAAQC,SAASS,EAAAA;AACvB,QAAMa,sBAAsBC,6BAA6BC,QAAQf,EAAAA,CAAAA;AACjE,QAAMgB,cAAcC,QAAQ,MAAA;AAC1B,QAAI,CAACJ,qBAAqB;AACxB;IACF;AAEA,WAAOK,iBAAiBL,qBAAqBF,OAAOQ,OAAOC,OAAOC,SAASC,UAAUC,MAAMC,OAAO,IAAI;MACpGC,SAASnC,OAAOoC;MAChBC,WAAWzC,SAASwC;IACtB,CAAA;EACF,GAAG;IAACb;IAAqBvB;IAAOJ;GAAQ;AAExC,SAAO,sBAAA,cAAC0C,YAAAA;IAAWZ;IAA0Ba,YAAW;;AAC1D;AAQA,IAAMrB,gBAAgB,CAAC,EAAEN,kBAAkBC,qBAAqBX,UAAS,MAAsB;AAC7F,SACE,sBAAA,cAACsC,OAAOC,MAAI;IACVC,OAAO9B,kBAAkBwB;IACzBO,eAAe,CAACP,OAAOvB,oBAAoBX,UAAU0C,KAAK,CAAClC,OAAOA,GAAG0B,OAAOA,EAAAA,KAAOS,cAAAA,CAAAA;KAEnF,sBAAA,cAACL,OAAOM,eAAa;IAACC,aAAY;MAClC,sBAAA,cAACP,OAAOQ,QAAM,MACZ,sBAAA,cAACR,OAAOS,SAAO,MACb,sBAAA,cAACT,OAAOU,gBAAc,IAAA,GACtB,sBAAA,cAACV,OAAOW,UAAQ,MACbjD,UAAUkD,IAAI,CAAC,EAAEhB,IAAIzB,QAAO,MAC3B,sBAAA,cAAC6B,OAAOa,QAAM;IAACC,KAAKlB;IAAIM,OAAON;KAC5BzB,OAAAA,CAAAA,CAAAA,GAIP,sBAAA,cAAC6B,OAAOe,kBAAgB,IAAA,GACxB,sBAAA,cAACf,OAAOgB,OAAK,IAAA,CAAA,CAAA,CAAA;AAKvB;;;AC/FA,IAAA,0BAAeC;",
|
|
6
|
-
"names": ["React", "useMemo", "useState", "failUndefined", "FunctionType", "ScriptType", "getInvocationUrl", "getUserFunctionUrlInMetadata", "useClient", "Filter", "getMeta", "getSpace", "useQuery", "Select", "useTranslation", "AutomationPanel", "subject", "t", "useTranslation", "SCRIPT_PLUGIN", "space", "getSpace", "functions", "useQuery", "undefined", "ScriptType", "Filter", "schema", "FunctionType", "source", "fn", "binding", "selectedFunction", "setSelectedFunction", "useState", "chatFunction", "div", "className", "BindingSelect", "ChatPanel", "length", "client", "useClient", "existingFunctionUrl", "getUserFunctionUrlInMetadata", "getMeta", "functionUrl", "useMemo", "getInvocationUrl", "config", "values", "runtime", "services", "edge", "url", "spaceId", "id", "subjectId", "DebugPanel", "classNames", "Select", "Root", "value", "onValueChange", "find", "failUndefined", "TriggerButton", "placeholder", "Portal", "Content", "ScrollUpButton", "Viewport", "map", "Option", "key", "ScrollDownButton", "Arrow", "AutomationPanel"]
|
|
7
|
-
}
|