@dxos/plugin-script 0.7.4 → 0.7.5-labs.071a3e2
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-PMTZROAZ.mjs → AutomationPanel-J3SZ5L3Y.mjs} +4 -11
- package/dist/lib/browser/AutomationPanel-J3SZ5L3Y.mjs.map +7 -0
- package/dist/lib/browser/ScriptContainer-LGW52UAJ.mjs +688 -0
- package/dist/lib/browser/ScriptContainer-LGW52UAJ.mjs.map +7 -0
- package/dist/lib/browser/chunk-2UXYECEH.mjs +236 -0
- package/dist/lib/browser/chunk-2UXYECEH.mjs.map +7 -0
- package/dist/lib/browser/{chunk-K7KY6YMG.mjs → chunk-45LXDWNF.mjs} +2 -2
- package/dist/lib/browser/chunk-6MOQ4BP3.mjs +15 -0
- package/dist/lib/browser/chunk-6MOQ4BP3.mjs.map +7 -0
- package/dist/lib/browser/chunk-FVVCAWNP.mjs +21 -0
- package/dist/lib/browser/chunk-FVVCAWNP.mjs.map +7 -0
- package/dist/lib/browser/chunk-N46LE7FS.mjs +40 -0
- package/dist/lib/browser/chunk-N46LE7FS.mjs.map +7 -0
- package/dist/lib/browser/{chunk-4UTRJLQ3.mjs → chunk-SDHKTS6H.mjs} +2 -51
- package/dist/lib/browser/{chunk-4UTRJLQ3.mjs.map → chunk-SDHKTS6H.mjs.map} +4 -4
- package/dist/lib/browser/chunk-VIX22OMB.mjs +60 -0
- package/dist/lib/browser/chunk-VIX22OMB.mjs.map +7 -0
- package/dist/lib/browser/compiler-K3FNRDDN.mjs +84 -0
- package/dist/lib/browser/compiler-K3FNRDDN.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +109 -357
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/intent-resolver-CMKQTLBG.mjs +45 -0
- package/dist/lib/browser/intent-resolver-CMKQTLBG.mjs.map +7 -0
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/react-surface-XACNR5NR.mjs +65 -0
- package/dist/lib/browser/react-surface-XACNR5NR.mjs.map +7 -0
- package/dist/lib/browser/settings-SZCDKHWO.mjs +24 -0
- package/dist/lib/browser/settings-SZCDKHWO.mjs.map +7 -0
- package/dist/lib/browser/types.mjs +10 -0
- package/dist/lib/node/{AutomationPanel-AAGQREH7.cjs → AutomationPanel-4M55FURO.cjs} +16 -17
- package/dist/lib/node/AutomationPanel-4M55FURO.cjs.map +7 -0
- package/dist/lib/node/ScriptContainer-UI2MDBYG.cjs +692 -0
- package/dist/lib/node/ScriptContainer-UI2MDBYG.cjs.map +7 -0
- package/dist/lib/node/{chunk-6LYX73ZT.cjs → chunk-5UH3F7TA.cjs} +11 -8
- package/dist/lib/node/chunk-5UH3F7TA.cjs.map +7 -0
- package/dist/lib/node/chunk-73345ZL6.cjs +264 -0
- package/dist/lib/node/chunk-73345ZL6.cjs.map +7 -0
- package/dist/lib/node/{meta.cjs → chunk-ALY3N6PW.cjs} +12 -8
- package/dist/lib/node/chunk-ALY3N6PW.cjs.map +7 -0
- package/dist/lib/node/chunk-DJGLGRQV.cjs +60 -0
- package/dist/lib/node/chunk-DJGLGRQV.cjs.map +7 -0
- package/dist/lib/node/{chunk-4INUJLXL.cjs → chunk-IID7WUQS.cjs} +6 -6
- package/dist/lib/node/chunk-PKT5DD3O.cjs +70 -0
- package/dist/lib/node/chunk-PKT5DD3O.cjs.map +7 -0
- package/dist/lib/node/{chunk-WPP65EYS.cjs → chunk-T4TXCRN5.cjs} +6 -44
- package/dist/lib/node/chunk-T4TXCRN5.cjs.map +7 -0
- package/dist/lib/node/compiler-P2HQB22H.cjs +104 -0
- package/dist/lib/node/compiler-P2HQB22H.cjs.map +7 -0
- package/dist/lib/node/index.cjs +106 -346
- package/dist/lib/node/index.cjs.map +4 -4
- package/dist/lib/node/intent-resolver-V5ASU5DW.cjs +59 -0
- package/dist/lib/node/intent-resolver-V5ASU5DW.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/react-surface-Y3RD5FW7.cjs +84 -0
- package/dist/lib/node/react-surface-Y3RD5FW7.cjs.map +7 -0
- package/dist/lib/node/settings-SZFSMSKM.cjs +38 -0
- package/dist/lib/node/settings-SZFSMSKM.cjs.map +7 -0
- package/dist/lib/node/{types/index.cjs → types.cjs} +6 -8
- package/dist/lib/node/types.cjs.map +7 -0
- package/dist/lib/node-esm/{AutomationPanel-ETQEDY5I.mjs → AutomationPanel-W6SKG35R.mjs} +4 -11
- package/dist/lib/node-esm/AutomationPanel-W6SKG35R.mjs.map +7 -0
- package/dist/lib/node-esm/ScriptContainer-F7SNP53Z.mjs +689 -0
- package/dist/lib/node-esm/ScriptContainer-F7SNP53Z.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-OFYGBUNI.mjs → chunk-CGF7EOGD.mjs} +2 -2
- package/dist/lib/node-esm/chunk-CP5LXTK5.mjs +16 -0
- package/dist/lib/node-esm/chunk-CP5LXTK5.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-4SRPREUK.mjs → chunk-G76M6O46.mjs} +2 -51
- package/dist/lib/node-esm/{chunk-4SRPREUK.mjs.map → chunk-G76M6O46.mjs.map} +4 -4
- package/dist/lib/node-esm/chunk-NBAL5DXN.mjs +62 -0
- package/dist/lib/node-esm/chunk-NBAL5DXN.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-SLTZMY34.mjs → chunk-P2V2Y5LV.mjs} +7 -4
- package/dist/lib/node-esm/chunk-P2V2Y5LV.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-PRGBYF4B.mjs +237 -0
- package/dist/lib/node-esm/chunk-PRGBYF4B.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-UNQFIERE.mjs +41 -0
- package/dist/lib/node-esm/chunk-UNQFIERE.mjs.map +7 -0
- package/dist/lib/node-esm/compiler-PDN46H4Y.mjs +85 -0
- package/dist/lib/node-esm/compiler-PDN46H4Y.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +109 -357
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/intent-resolver-75BHFRUK.mjs +46 -0
- package/dist/lib/node-esm/intent-resolver-75BHFRUK.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/react-surface-PKUVZH4S.mjs +66 -0
- package/dist/lib/node-esm/react-surface-PKUVZH4S.mjs.map +7 -0
- package/dist/lib/node-esm/settings-GR4O2WHZ.mjs +25 -0
- package/dist/lib/node-esm/settings-GR4O2WHZ.mjs.map +7 -0
- package/dist/lib/node-esm/types.mjs +11 -0
- package/dist/types/src/ScriptPlugin.d.ts +1 -3
- package/dist/types/src/ScriptPlugin.d.ts.map +1 -1
- package/dist/types/src/capabilities/capabilities.d.ts +5 -0
- package/dist/types/src/capabilities/capabilities.d.ts.map +1 -0
- package/dist/types/src/capabilities/compiler.d.ts +4 -0
- package/dist/types/src/capabilities/compiler.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts +4 -0
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +4 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/settings.d.ts +4 -0
- package/dist/types/src/capabilities/settings.d.ts.map +1 -0
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts +2 -2
- package/dist/types/src/components/AutomationPanel/AutomationPanel.d.ts.map +1 -1
- package/dist/types/src/components/ScriptContainer.d.ts +10 -2
- package/dist/types/src/components/ScriptContainer.d.ts.map +1 -1
- package/dist/types/src/components/ScriptSettings/ScriptSettings.d.ts.map +1 -1
- package/dist/types/src/components/ScriptSettingsPanel.d.ts +1 -1
- package/dist/types/src/components/ScriptSettingsPanel.d.ts.map +1 -1
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts +11 -0
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts.map +1 -0
- package/dist/types/src/components/{Toolbar/Toolbar.stories.d.ts → ScriptToolbar/ScriptToolbar.stories.d.ts} +1 -1
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.stories.d.ts.map +1 -0
- package/dist/types/src/components/ScriptToolbar/index.d.ts +2 -0
- package/dist/types/src/components/ScriptToolbar/index.d.ts.map +1 -0
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts +4 -2
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts.map +1 -1
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.stories.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/deploy.d.ts +48 -0
- package/dist/types/src/hooks/deploy.d.ts.map +1 -0
- package/dist/types/src/hooks/format.d.ts +25 -0
- package/dist/types/src/hooks/format.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +7 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/template.d.ts +31 -0
- package/dist/types/src/hooks/template.d.ts.map +1 -0
- package/dist/types/src/hooks/useToolbarAction.d.ts +14 -0
- package/dist/types/src/hooks/useToolbarAction.d.ts.map +1 -0
- package/dist/types/src/hooks/useToolbarState.d.ts +10 -0
- package/dist/types/src/hooks/useToolbarState.d.ts.map +1 -0
- package/dist/types/src/hooks/view.d.ts +33 -0
- package/dist/types/src/hooks/view.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +2 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/templates/echo.d.ts.map +1 -1
- package/dist/types/src/templates/email.d.ts +2 -1
- package/dist/types/src/templates/email.d.ts.map +1 -1
- package/dist/types/src/templates/forex-effect.d.ts +6 -0
- package/dist/types/src/templates/forex-effect.d.ts.map +1 -0
- package/dist/types/src/templates/forex.d.ts +1 -1
- package/dist/types/src/templates/forex.d.ts.map +1 -1
- package/dist/types/src/{templates.d.ts → templates/index.d.ts} +1 -1
- package/dist/types/src/templates/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +54 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +30 -0
- package/dist/types/src/types.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -0
- package/package.json +46 -55
- package/src/ScriptPlugin.tsx +57 -145
- package/src/bundler/bundler.test.ts +4 -3
- package/src/capabilities/capabilities.ts +12 -0
- package/src/capabilities/compiler.ts +33 -0
- package/src/capabilities/index.ts +12 -0
- package/src/capabilities/intent-resolver.ts +46 -0
- package/src/capabilities/react-surface.tsx +54 -0
- package/src/capabilities/settings.ts +14 -0
- package/src/compiler/compiler.browser.test.ts +1 -1
- package/src/components/AutomationPanel/AutomationPanel.tsx +2 -4
- package/src/components/FrameContainer/FrameContainer.tsx +1 -1
- package/src/components/ScriptContainer.tsx +69 -9
- package/src/components/ScriptSettings/ScriptSettings.tsx +28 -4
- package/src/components/ScriptSettingsPanel.tsx +139 -52
- package/src/components/{Toolbar/Toolbar.stories.tsx → ScriptToolbar/ScriptToolbar.stories.tsx} +2 -2
- package/src/components/ScriptToolbar/ScriptToolbar.tsx +53 -0
- package/src/components/{Toolbar → ScriptToolbar}/index.ts +1 -1
- package/src/components/TypescriptEditor/TypescriptEditor.stories.tsx +2 -0
- package/src/components/TypescriptEditor/TypescriptEditor.tsx +73 -8
- package/src/hooks/deploy.ts +158 -0
- package/src/hooks/format.ts +47 -0
- package/src/hooks/index.ts +11 -0
- package/src/hooks/template.ts +64 -0
- package/src/hooks/useToolbarAction.ts +54 -0
- package/src/hooks/useToolbarState.ts +16 -0
- package/src/hooks/view.ts +52 -0
- package/src/index.ts +2 -6
- package/src/meta.ts +4 -2
- package/src/templates/echo.ts +5 -1
- package/src/templates/email.ts +26 -23
- package/src/templates/forex-effect.ts +42 -0
- package/src/templates/forex.ts +21 -13
- package/src/{templates.ts → templates/index.ts} +12 -5
- package/src/translations.ts +20 -1
- package/src/types.ts +39 -0
- package/dist/lib/browser/AutomationPanel-PMTZROAZ.mjs.map +0 -7
- package/dist/lib/browser/ScriptContainer-RYZFYCNK.mjs +0 -425
- package/dist/lib/browser/ScriptContainer-RYZFYCNK.mjs.map +0 -7
- package/dist/lib/browser/chunk-C7VBULMK.mjs +0 -18
- package/dist/lib/browser/chunk-C7VBULMK.mjs.map +0 -7
- package/dist/lib/browser/chunk-QFZUFT5G.mjs +0 -48
- package/dist/lib/browser/chunk-QFZUFT5G.mjs.map +0 -7
- package/dist/lib/browser/chunk-U3OP64V4.mjs +0 -123
- package/dist/lib/browser/chunk-U3OP64V4.mjs.map +0 -7
- package/dist/lib/browser/edge/index.mjs +0 -19
- package/dist/lib/browser/meta.mjs +0 -9
- package/dist/lib/browser/types/index.mjs +0 -12
- package/dist/lib/browser/types/index.mjs.map +0 -7
- package/dist/lib/node/AutomationPanel-AAGQREH7.cjs.map +0 -7
- package/dist/lib/node/ScriptContainer-FZ44UIRC.cjs +0 -427
- package/dist/lib/node/ScriptContainer-FZ44UIRC.cjs.map +0 -7
- package/dist/lib/node/chunk-6LYX73ZT.cjs.map +0 -7
- package/dist/lib/node/chunk-CS25QNKZ.cjs +0 -151
- package/dist/lib/node/chunk-CS25QNKZ.cjs.map +0 -7
- package/dist/lib/node/chunk-DQYAU2CJ.cjs +0 -67
- package/dist/lib/node/chunk-DQYAU2CJ.cjs.map +0 -7
- package/dist/lib/node/chunk-WPP65EYS.cjs.map +0 -7
- package/dist/lib/node/edge/index.cjs +0 -41
- package/dist/lib/node/edge/index.cjs.map +0 -7
- package/dist/lib/node/meta.cjs.map +0 -7
- package/dist/lib/node/types/index.cjs.map +0 -7
- package/dist/lib/node-esm/AutomationPanel-ETQEDY5I.mjs.map +0 -7
- package/dist/lib/node-esm/ScriptContainer-3PKDW34A.mjs +0 -426
- package/dist/lib/node-esm/ScriptContainer-3PKDW34A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-36DLLQ6E.mjs +0 -125
- package/dist/lib/node-esm/chunk-36DLLQ6E.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-GMVPKT6A.mjs +0 -49
- package/dist/lib/node-esm/chunk-GMVPKT6A.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SLTZMY34.mjs.map +0 -7
- package/dist/lib/node-esm/edge/index.mjs +0 -20
- package/dist/lib/node-esm/edge/index.mjs.map +0 -7
- package/dist/lib/node-esm/meta.mjs +0 -10
- package/dist/lib/node-esm/meta.mjs.map +0 -7
- package/dist/lib/node-esm/types/index.mjs +0 -13
- package/dist/lib/node-esm/types/index.mjs.map +0 -7
- package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts +0 -12
- package/dist/types/src/components/ScriptBlock/ScriptBlock.d.ts.map +0 -1
- package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts +0 -6
- package/dist/types/src/components/ScriptBlock/ScriptBlock.stories.d.ts.map +0 -1
- package/dist/types/src/components/ScriptBlock/index.d.ts +0 -2
- package/dist/types/src/components/ScriptBlock/index.d.ts.map +0 -1
- package/dist/types/src/components/ScriptEditor.d.ts +0 -9
- package/dist/types/src/components/ScriptEditor.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +0 -23
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/Toolbar.stories.d.ts.map +0 -1
- package/dist/types/src/components/Toolbar/index.d.ts +0 -2
- package/dist/types/src/components/Toolbar/index.d.ts.map +0 -1
- package/dist/types/src/edge/functions.d.ts +0 -25
- package/dist/types/src/edge/functions.d.ts.map +0 -1
- package/dist/types/src/edge/index.d.ts +0 -2
- package/dist/types/src/edge/index.d.ts.map +0 -1
- package/dist/types/src/templates.d.ts.map +0 -1
- package/dist/types/src/types/index.d.ts +0 -3
- package/dist/types/src/types/index.d.ts.map +0 -1
- package/dist/types/src/types/schema.d.ts +0 -71
- package/dist/types/src/types/schema.d.ts.map +0 -1
- package/dist/types/src/types/types.d.ts +0 -8
- package/dist/types/src/types/types.d.ts.map +0 -1
- package/src/components/ScriptBlock/ScriptBlock.stories.tsx +0 -52
- package/src/components/ScriptBlock/ScriptBlock.tsx +0 -102
- package/src/components/ScriptBlock/index.ts +0 -5
- package/src/components/ScriptEditor.tsx +0 -191
- package/src/components/Toolbar/Toolbar.tsx +0 -177
- package/src/edge/functions.ts +0 -116
- package/src/edge/index.ts +0 -7
- package/src/types/index.ts +0 -6
- package/src/types/schema.ts +0 -44
- package/src/types/types.ts +0 -29
- /package/dist/lib/browser/{chunk-K7KY6YMG.mjs.map → chunk-45LXDWNF.mjs.map} +0 -0
- /package/dist/lib/browser/{edge/index.mjs.map → types.mjs.map} +0 -0
- /package/dist/lib/node/{chunk-4INUJLXL.cjs.map → chunk-IID7WUQS.cjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-OFYGBUNI.mjs.map → chunk-CGF7EOGD.mjs.map} +0 -0
- /package/dist/lib/{browser/meta.mjs.map → node-esm/types.mjs.map} +0 -0
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,206 +28,46 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
var node_exports = {};
|
|
30
30
|
__export(node_exports, {
|
|
31
|
-
AutomationPanel: () => AutomationPanel,
|
|
32
|
-
Bundler: () =>
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
ScriptContainer: () => ScriptContainer,
|
|
31
|
+
AutomationPanel: () => import_chunk_73345ZL6.AutomationPanel,
|
|
32
|
+
Bundler: () => import_chunk_T4TXCRN5.Bundler,
|
|
33
|
+
SCRIPT_PLUGIN: () => import_chunk_5UH3F7TA.SCRIPT_PLUGIN,
|
|
34
|
+
ScriptCapabilities: () => import_chunk_ALY3N6PW.ScriptCapabilities,
|
|
35
|
+
ScriptContainer: () => import_chunk_73345ZL6.ScriptContainer,
|
|
37
36
|
ScriptPlugin: () => ScriptPlugin,
|
|
38
|
-
ScriptSettings: () => ScriptSettings,
|
|
39
|
-
ScriptSettingsPanel: () => ScriptSettingsPanel,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
initializeBundler: () => import_chunk_WPP65EYS.initializeBundler
|
|
37
|
+
ScriptSettings: () => import_chunk_73345ZL6.ScriptSettings,
|
|
38
|
+
ScriptSettingsPanel: () => import_chunk_73345ZL6.ScriptSettingsPanel,
|
|
39
|
+
initializeBundler: () => import_chunk_T4TXCRN5.initializeBundler,
|
|
40
|
+
meta: () => import_chunk_5UH3F7TA.meta
|
|
43
41
|
});
|
|
44
42
|
module.exports = __toCommonJS(node_exports);
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var import_react = __toESM(require("react"));
|
|
43
|
+
var import_chunk_T4TXCRN5 = require("./chunk-T4TXCRN5.cjs");
|
|
44
|
+
var import_chunk_73345ZL6 = require("./chunk-73345ZL6.cjs");
|
|
45
|
+
var import_chunk_ALY3N6PW = require("./chunk-ALY3N6PW.cjs");
|
|
46
|
+
var import_chunk_DJGLGRQV = require("./chunk-DJGLGRQV.cjs");
|
|
47
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
51
48
|
var import_app_framework = require("@dxos/app-framework");
|
|
49
|
+
var import_app_framework2 = require("@dxos/app-framework");
|
|
50
|
+
var import_functions = require("@dxos/functions");
|
|
52
51
|
var import_live_object = require("@dxos/live-object");
|
|
53
52
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
54
|
-
var
|
|
55
|
-
var
|
|
56
|
-
var
|
|
57
|
-
var
|
|
58
|
-
var
|
|
59
|
-
var import_typescript = __toESM(require("typescript"));
|
|
60
|
-
var import_invariant = require("@dxos/invariant");
|
|
61
|
-
var import_react2 = require("react");
|
|
62
|
-
var import_react3 = __toESM(require("react"));
|
|
63
|
-
var import_react_client = require("@dxos/react-client");
|
|
64
|
-
var import_react_ui = require("@dxos/react-ui");
|
|
65
|
-
var import_react_ui_form = require("@dxos/react-ui-form");
|
|
66
|
-
var import_react4 = __toESM(require("react"));
|
|
67
|
-
var import_react_client2 = require("@dxos/react-client");
|
|
68
|
-
var import_echo2 = require("@dxos/react-client/echo");
|
|
69
|
-
var import_react_ui2 = require("@dxos/react-ui");
|
|
70
|
-
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/experimental/plugin-script/src/compiler/compiler.ts";
|
|
71
|
-
var defaultOptions = {
|
|
72
|
-
lib: [
|
|
73
|
-
"DOM",
|
|
74
|
-
"es2022"
|
|
75
|
-
],
|
|
76
|
-
target: import_typescript.default.ScriptTarget.ES2022
|
|
77
|
-
};
|
|
78
|
-
var Compiler = class {
|
|
79
|
-
constructor(_options = defaultOptions) {
|
|
80
|
-
this._options = _options;
|
|
81
|
-
}
|
|
82
|
-
async initialize() {
|
|
83
|
-
if (this._env) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
this._fsMap = await (0, import_vfs.createDefaultMapFromCDN)(this._options, "5.5.4", true, import_typescript.default);
|
|
87
|
-
const system = (0, import_vfs.createSystem)(this._fsMap);
|
|
88
|
-
this._env = (0, import_vfs.createVirtualTypeScriptEnvironment)(system, [], import_typescript.default, this._options);
|
|
89
|
-
}
|
|
90
|
-
get environment() {
|
|
91
|
-
(0, import_invariant.invariant)(this._env, "Compiler environment not initialized.", {
|
|
92
|
-
F: __dxlog_file,
|
|
93
|
-
L: 39,
|
|
94
|
-
S: this,
|
|
95
|
-
A: [
|
|
96
|
-
"this._env",
|
|
97
|
-
"'Compiler environment not initialized.'"
|
|
98
|
-
]
|
|
99
|
-
});
|
|
100
|
-
return this._env;
|
|
101
|
-
}
|
|
102
|
-
setFile(fileName, content) {
|
|
103
|
-
(0, import_invariant.invariant)(this._fsMap, "File system map not initialized.", {
|
|
104
|
-
F: __dxlog_file,
|
|
105
|
-
L: 44,
|
|
106
|
-
S: this,
|
|
107
|
-
A: [
|
|
108
|
-
"this._fsMap",
|
|
109
|
-
"'File system map not initialized.'"
|
|
110
|
-
]
|
|
111
|
-
});
|
|
112
|
-
this.environment.createFile(fileName, content);
|
|
113
|
-
}
|
|
114
|
-
compile(fileName) {
|
|
115
|
-
return this.environment.languageService.getEmitOutput(fileName);
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
var ScriptSettings = ({ settings }) => {
|
|
119
|
-
const { t } = (0, import_react_ui.useTranslation)(import_chunk_6LYX73ZT.SCRIPT_PLUGIN);
|
|
120
|
-
const client = (0, import_react_client.useClient)();
|
|
121
|
-
const handleAuthenticate = async () => {
|
|
122
|
-
const { identityKey } = client.halo.identity.get();
|
|
123
|
-
await client.halo.writeCredentials([
|
|
124
|
-
{
|
|
125
|
-
issuer: identityKey,
|
|
126
|
-
issuanceDate: /* @__PURE__ */ new Date(),
|
|
127
|
-
subject: {
|
|
128
|
-
id: identityKey,
|
|
129
|
-
assertion: {
|
|
130
|
-
"@type": "dxos.halo.credentials.ServiceAccess",
|
|
131
|
-
serverName: "hub.dxos.network",
|
|
132
|
-
serverKey: identityKey,
|
|
133
|
-
identityKey,
|
|
134
|
-
capabilities: [
|
|
135
|
-
"composer:beta"
|
|
136
|
-
]
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
]);
|
|
141
|
-
};
|
|
142
|
-
return /* @__PURE__ */ import_react3.default.createElement(import_react3.default.Fragment, null, /* @__PURE__ */ import_react3.default.createElement(import_react_ui_form.DeprecatedFormInput, {
|
|
143
|
-
label: t("authenticate action label")
|
|
144
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_react_ui.Button, {
|
|
145
|
-
onClick: handleAuthenticate
|
|
146
|
-
}, t("authenticate button label"))));
|
|
147
|
-
};
|
|
148
|
-
var ScriptSettingsPanel = ({ script }) => {
|
|
149
|
-
const { t } = (0, import_react_ui2.useTranslation)(import_chunk_6LYX73ZT.SCRIPT_PLUGIN);
|
|
150
|
-
const client = (0, import_react_client2.useClient)();
|
|
151
|
-
const space = (0, import_echo2.getSpace)(script);
|
|
152
|
-
const [fn] = (0, import_echo2.useQuery)(space, import_echo2.Filter.schema(import_chunk_DQYAU2CJ.FunctionType, {
|
|
153
|
-
source: script
|
|
154
|
-
}));
|
|
155
|
-
const handleNameChange = (0, import_react4.useCallback)((event) => {
|
|
156
|
-
script.name = event.target.value;
|
|
157
|
-
}, [
|
|
158
|
-
script
|
|
159
|
-
]);
|
|
160
|
-
const [binding, setBinding] = (0, import_react_ui2.useControlledValue)(fn?.binding ?? "");
|
|
161
|
-
const handleBindingChange = (0, import_react4.useCallback)((event) => {
|
|
162
|
-
setBinding(event.target.value);
|
|
163
|
-
}, [
|
|
164
|
-
setBinding
|
|
165
|
-
]);
|
|
166
|
-
const handleBindingBlur = (0, import_react4.useCallback)(() => {
|
|
167
|
-
fn.binding = binding;
|
|
168
|
-
}, [
|
|
169
|
-
fn,
|
|
170
|
-
binding
|
|
171
|
-
]);
|
|
172
|
-
const functionPath = fn && (0, import_chunk_CS25QNKZ.getUserFunctionUrlInMetadata)((0, import_echo2.getMeta)(fn));
|
|
173
|
-
const functionUrl = functionPath && (0, import_chunk_CS25QNKZ.getInvocationUrl)(functionPath, client.config.values.runtime?.services?.edge?.url ?? "", {
|
|
174
|
-
spaceId: space?.id
|
|
175
|
-
});
|
|
176
|
-
const handleCopy = (0, import_react4.useCallback)(() => functionUrl && navigator.clipboard.writeText(functionUrl), [
|
|
177
|
-
functionUrl
|
|
178
|
-
]);
|
|
179
|
-
return /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
180
|
-
role: "form",
|
|
181
|
-
className: "flex flex-col w-full p-2 gap-4"
|
|
182
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.Root, null, /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
183
|
-
role: "none",
|
|
184
|
-
className: "flex flex-col gap-1"
|
|
185
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.Label, null, t("name label")), /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.TextInput, {
|
|
186
|
-
placeholder: t("object title placeholder"),
|
|
187
|
-
value: script.name ?? "",
|
|
188
|
-
onChange: handleNameChange
|
|
189
|
-
}))), fn && /* @__PURE__ */ import_react4.default.createElement(import_react4.default.Fragment, null, /* @__PURE__ */ import_react4.default.createElement("hr", {
|
|
190
|
-
className: "border-separator"
|
|
191
|
-
}), /* @__PURE__ */ import_react4.default.createElement("h2", null, t("remote function settings heading")), /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.Root, null, /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
192
|
-
role: "none",
|
|
193
|
-
className: "flex flex-col gap-1"
|
|
194
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.Label, null, t("function url label")), /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
195
|
-
role: "none",
|
|
196
|
-
className: "flex gap-1"
|
|
197
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.TextInput, {
|
|
198
|
-
disabled: true,
|
|
199
|
-
value: functionUrl,
|
|
200
|
-
onChange: (event) => {
|
|
201
|
-
fn.name = event.target.value;
|
|
202
|
-
}
|
|
203
|
-
}), /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Button, {
|
|
204
|
-
onClick: handleCopy
|
|
205
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Icon, {
|
|
206
|
-
icon: "ph--copy--regular",
|
|
207
|
-
size: 4
|
|
208
|
-
}))))), /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.Root, null, /* @__PURE__ */ import_react4.default.createElement("div", {
|
|
209
|
-
role: "none",
|
|
210
|
-
className: "flex flex-col gap-1"
|
|
211
|
-
}, /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.Label, null, t("function binding label")), /* @__PURE__ */ import_react4.default.createElement(import_react_ui2.Input.TextInput, {
|
|
212
|
-
placeholder: t("function binding placeholder"),
|
|
213
|
-
value: binding,
|
|
214
|
-
onChange: handleBindingChange,
|
|
215
|
-
onBlur: handleBindingBlur
|
|
216
|
-
})))));
|
|
217
|
-
};
|
|
218
|
-
var AutomationPanel = (0, import_react2.lazy)(() => import("./AutomationPanel-AAGQREH7.cjs"));
|
|
219
|
-
var ScriptContainer = (0, import_react2.lazy)(() => import("./ScriptContainer-FZ44UIRC.cjs"));
|
|
53
|
+
var import_functions2 = require("@dxos/functions");
|
|
54
|
+
var Compiler = (0, import_app_framework.lazy)(() => import("./compiler-P2HQB22H.cjs"));
|
|
55
|
+
var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-V5ASU5DW.cjs"));
|
|
56
|
+
var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-Y3RD5FW7.cjs"));
|
|
57
|
+
var ScriptSettings2 = (0, import_app_framework.lazy)(() => import("./settings-SZFSMSKM.cjs"));
|
|
220
58
|
var translations_default = [
|
|
221
59
|
{
|
|
222
60
|
"en-US": {
|
|
223
|
-
[
|
|
61
|
+
[import_functions2.ScriptType.typename]: {
|
|
224
62
|
"typename label": "Script"
|
|
225
63
|
},
|
|
226
|
-
[
|
|
64
|
+
[import_chunk_5UH3F7TA.SCRIPT_PLUGIN]: {
|
|
227
65
|
"plugin name": "Scripts",
|
|
228
66
|
"object title placeholder": "New script",
|
|
229
67
|
"create object label": "Create script",
|
|
230
68
|
"create stack section label": "Create script",
|
|
69
|
+
"description label": "Description",
|
|
70
|
+
"description placeholder": "Describe what the script does.",
|
|
231
71
|
"binding placeholder": "Function name",
|
|
232
72
|
"function request placeholder": "Function request",
|
|
233
73
|
"deploy label": "Deploy",
|
|
@@ -242,182 +82,102 @@ var translations_default = [
|
|
|
242
82
|
"remote function settings heading": "Remote Function",
|
|
243
83
|
"function url label": "Invocation URL",
|
|
244
84
|
"function binding label": "Function binding",
|
|
245
|
-
"function binding placeholder": "BINDING"
|
|
85
|
+
"function binding placeholder": "BINDING",
|
|
86
|
+
"script publish settings label": "Publishing",
|
|
87
|
+
"script publish settings description": "Scripts can be shared publicly as Github gists.",
|
|
88
|
+
"no github token label": "This space has no Github access token available.",
|
|
89
|
+
"open token manager label": "Open Token Manager",
|
|
90
|
+
"publish label": "Publish",
|
|
91
|
+
"publishing label": "Publishing",
|
|
92
|
+
"editor input mode label": "Editor input mode",
|
|
93
|
+
"select editor input mode placeholder": "Select editor input mode\u2026",
|
|
94
|
+
"settings editor input mode default label": "Default",
|
|
95
|
+
"settings editor input mode vim label": "Vim",
|
|
96
|
+
"settings editor input mode vscode label": "VS Code",
|
|
97
|
+
"view group label": "View",
|
|
98
|
+
"view editor label": "Editor",
|
|
99
|
+
"view split label": "Split",
|
|
100
|
+
"view debug label": "Debug",
|
|
101
|
+
"template select group label": "Select template"
|
|
246
102
|
}
|
|
247
103
|
}
|
|
248
104
|
}
|
|
249
105
|
];
|
|
250
|
-
var ScriptPlugin = () =>
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
106
|
+
var ScriptPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_5UH3F7TA.meta, [
|
|
107
|
+
(0, import_app_framework2.defineModule)({
|
|
108
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/settings`,
|
|
109
|
+
activatesOn: import_app_framework2.Events.SetupSettings,
|
|
110
|
+
activate: ScriptSettings2
|
|
111
|
+
}),
|
|
112
|
+
(0, import_app_framework2.defineModule)({
|
|
113
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/compiler`,
|
|
114
|
+
activatesOn: import_app_framework2.Events.Startup,
|
|
115
|
+
activate: Compiler
|
|
116
|
+
}),
|
|
117
|
+
(0, import_app_framework2.defineModule)({
|
|
118
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/translations`,
|
|
119
|
+
activatesOn: import_app_framework2.Events.SetupTranslations,
|
|
120
|
+
activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Translations, translations_default)
|
|
121
|
+
}),
|
|
122
|
+
(0, import_app_framework2.defineModule)({
|
|
123
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/metadata`,
|
|
124
|
+
activatesOn: import_app_framework2.Events.SetupMetadata,
|
|
125
|
+
activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Metadata, {
|
|
126
|
+
id: import_functions.ScriptType.typename,
|
|
268
127
|
metadata: {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
icon: "ph--code--regular",
|
|
279
|
-
// TODO(wittjosiah): Move out of metadata.
|
|
280
|
-
loadReferences: (script) => (0, import_echo.loadObjectReferences)(script, (script2) => [
|
|
281
|
-
script2.source
|
|
282
|
-
])
|
|
128
|
+
creationSchema: import_chunk_DJGLGRQV.ScriptAction.CreateScriptSchema,
|
|
129
|
+
createObject: (props, { space }) => (0, import_app_framework2.createIntent)(import_chunk_DJGLGRQV.ScriptAction.Create, {
|
|
130
|
+
...props,
|
|
131
|
+
space
|
|
132
|
+
}),
|
|
133
|
+
placeholder: [
|
|
134
|
+
"object title placeholder",
|
|
135
|
+
{
|
|
136
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
283
137
|
}
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
translations: translations_default,
|
|
287
|
-
echo: {
|
|
288
|
-
schema: [
|
|
289
|
-
import_chunk_DQYAU2CJ.ScriptType
|
|
290
138
|
],
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
builder: (plugins) => {
|
|
297
|
-
const client = (0, import_app_framework.resolvePlugin)(plugins, import_plugin_client.parseClientPlugin)?.provides.client;
|
|
298
|
-
const dispatch = (0, import_app_framework.resolvePlugin)(plugins, import_app_framework.parseIntentPlugin)?.provides.intent.dispatch;
|
|
299
|
-
if (!client || !dispatch) {
|
|
300
|
-
return [];
|
|
301
|
-
}
|
|
302
|
-
return (0, import_plugin_graph.createExtension)({
|
|
303
|
-
id: import_chunk_DQYAU2CJ.ScriptAction.CREATE,
|
|
304
|
-
filter: (node) => (0, import_plugin_graph.isActionGroup)(node) && node.id.startsWith(import_plugin_space.SpaceAction.ADD_OBJECT),
|
|
305
|
-
actions: ({ node }) => {
|
|
306
|
-
const id = node.id.split("/").at(-1);
|
|
307
|
-
const [spaceId, objectId] = id?.split(":") ?? [];
|
|
308
|
-
const space = client.spaces.get().find((space2) => space2.id === spaceId);
|
|
309
|
-
const object = objectId && space?.db.getObjectById(objectId);
|
|
310
|
-
const target = objectId ? object : space;
|
|
311
|
-
if (!target) {
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
return [
|
|
315
|
-
{
|
|
316
|
-
id: `${import_chunk_6LYX73ZT.SCRIPT_PLUGIN}/create/${node.id}`,
|
|
317
|
-
data: async () => {
|
|
318
|
-
await dispatch([
|
|
319
|
-
{
|
|
320
|
-
plugin: import_chunk_6LYX73ZT.SCRIPT_PLUGIN,
|
|
321
|
-
action: import_chunk_DQYAU2CJ.ScriptAction.CREATE
|
|
322
|
-
},
|
|
323
|
-
{
|
|
324
|
-
action: import_plugin_space.SpaceAction.ADD_OBJECT,
|
|
325
|
-
data: {
|
|
326
|
-
target
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
action: import_app_framework.NavigationAction.OPEN
|
|
331
|
-
}
|
|
332
|
-
]);
|
|
333
|
-
},
|
|
334
|
-
properties: {
|
|
335
|
-
label: [
|
|
336
|
-
"create object label",
|
|
337
|
-
{
|
|
338
|
-
ns: import_chunk_6LYX73ZT.SCRIPT_PLUGIN
|
|
339
|
-
}
|
|
340
|
-
],
|
|
341
|
-
icon: "ph--code--regular",
|
|
342
|
-
testId: "scriptPlugin.createObject"
|
|
343
|
-
}
|
|
344
|
-
}
|
|
345
|
-
];
|
|
346
|
-
}
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
},
|
|
350
|
-
surface: {
|
|
351
|
-
component: ({ data, role }) => {
|
|
352
|
-
switch (role) {
|
|
353
|
-
case "settings": {
|
|
354
|
-
return data.plugin === import_chunk_6LYX73ZT.meta_default.id ? /* @__PURE__ */ import_react.default.createElement(ScriptSettings, {
|
|
355
|
-
settings: {}
|
|
356
|
-
}) : null;
|
|
357
|
-
}
|
|
358
|
-
case "article": {
|
|
359
|
-
if (data.object instanceof import_chunk_DQYAU2CJ.ScriptType) {
|
|
360
|
-
return /* @__PURE__ */ import_react.default.createElement(ScriptContainer, {
|
|
361
|
-
script: data.object,
|
|
362
|
-
env: compiler.environment
|
|
363
|
-
});
|
|
364
|
-
}
|
|
365
|
-
break;
|
|
366
|
-
}
|
|
367
|
-
case "complementary--automation": {
|
|
368
|
-
if (data.subject instanceof import_chunk_DQYAU2CJ.ScriptType) {
|
|
369
|
-
return {
|
|
370
|
-
node: /* @__PURE__ */ import_react.default.createElement(AutomationPanel, {
|
|
371
|
-
subject: data.subject
|
|
372
|
-
}),
|
|
373
|
-
disposition: "hoist"
|
|
374
|
-
};
|
|
375
|
-
}
|
|
376
|
-
break;
|
|
377
|
-
}
|
|
378
|
-
case "complementary--settings": {
|
|
379
|
-
if (data.subject instanceof import_chunk_DQYAU2CJ.ScriptType) {
|
|
380
|
-
return /* @__PURE__ */ import_react.default.createElement(ScriptSettingsPanel, {
|
|
381
|
-
script: data.subject
|
|
382
|
-
});
|
|
383
|
-
}
|
|
384
|
-
break;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
return null;
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
intent: {
|
|
391
|
-
resolver: (intent) => {
|
|
392
|
-
switch (intent.action) {
|
|
393
|
-
case import_chunk_DQYAU2CJ.ScriptAction.CREATE: {
|
|
394
|
-
return {
|
|
395
|
-
data: (0, import_live_object.create)(import_chunk_DQYAU2CJ.ScriptType, {
|
|
396
|
-
source: (0, import_live_object.create)(import_types.TextType, {
|
|
397
|
-
content: import_chunk_WPP65EYS.templates[0].source
|
|
398
|
-
})
|
|
399
|
-
})
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
}
|
|
139
|
+
icon: "ph--code--regular",
|
|
140
|
+
// TODO(wittjosiah): Move out of metadata.
|
|
141
|
+
loadReferences: async (script) => await import_live_object.RefArray.loadAll([
|
|
142
|
+
script.source
|
|
143
|
+
])
|
|
404
144
|
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
|
|
145
|
+
})
|
|
146
|
+
}),
|
|
147
|
+
(0, import_app_framework2.defineModule)({
|
|
148
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/schema`,
|
|
149
|
+
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
150
|
+
activate: () => [
|
|
151
|
+
(0, import_app_framework2.contributes)(import_plugin_client.ClientCapabilities.SystemSchema, [
|
|
152
|
+
import_functions.FunctionType
|
|
153
|
+
]),
|
|
154
|
+
(0, import_app_framework2.contributes)(import_plugin_client.ClientCapabilities.Schema, [
|
|
155
|
+
import_functions.ScriptType
|
|
156
|
+
])
|
|
157
|
+
]
|
|
158
|
+
}),
|
|
159
|
+
(0, import_app_framework2.defineModule)({
|
|
160
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/react-surface`,
|
|
161
|
+
activatesOn: import_app_framework2.Events.SetupSurfaces,
|
|
162
|
+
activate: ReactSurface
|
|
163
|
+
}),
|
|
164
|
+
(0, import_app_framework2.defineModule)({
|
|
165
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/intent-resolver`,
|
|
166
|
+
activatesOn: import_app_framework2.Events.SetupIntents,
|
|
167
|
+
activate: IntentResolver
|
|
168
|
+
})
|
|
169
|
+
]);
|
|
409
170
|
// Annotate the CommonJS export names for ESM import in node:
|
|
410
171
|
0 && (module.exports = {
|
|
411
172
|
AutomationPanel,
|
|
412
173
|
Bundler,
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
ScriptAction,
|
|
174
|
+
SCRIPT_PLUGIN,
|
|
175
|
+
ScriptCapabilities,
|
|
416
176
|
ScriptContainer,
|
|
417
177
|
ScriptPlugin,
|
|
418
178
|
ScriptSettings,
|
|
419
179
|
ScriptSettingsPanel,
|
|
420
|
-
|
|
421
|
-
|
|
180
|
+
initializeBundler,
|
|
181
|
+
meta
|
|
422
182
|
});
|
|
423
183
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../../src/
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\n// @ts-ignore\nimport wasmUrl from 'esbuild-wasm/esbuild.wasm?url';\nimport React from 'react';\n\nimport { NavigationAction, parseIntentPlugin, type PluginDefinition, resolvePlugin } from '@dxos/app-framework';\nimport { create } from '@dxos/live-object';\nimport { parseClientPlugin } from '@dxos/plugin-client';\nimport { type ActionGroup, createExtension, isActionGroup } from '@dxos/plugin-graph';\nimport { TextType } from '@dxos/plugin-markdown/types';\nimport { SpaceAction } from '@dxos/plugin-space';\nimport { loadObjectReferences } from '@dxos/react-client/echo';\n\nimport { initializeBundler } from './bundler';\nimport { Compiler } from './compiler';\nimport { AutomationPanel, ScriptContainer, ScriptSettings, ScriptSettingsPanel } from './components';\nimport meta, { SCRIPT_PLUGIN } from './meta';\nimport { templates } from './templates';\nimport translations from './translations';\nimport { FunctionType, ScriptAction, type ScriptPluginProvides, ScriptType } from './types';\n\nexport const ScriptPlugin = (): PluginDefinition<ScriptPluginProvides> => {\n const compiler = new Compiler();\n\n return {\n meta,\n initialize: async () => {\n await compiler.initialize();\n // TODO(wittjosiah): Fetch types for https modules.\n compiler.setFile('/src/typings.d.ts', \"declare module 'https://*';\");\n // TODO(wittjosiah): Proper function handler types.\n // TODO(wittjosiah): Remove.\n compiler.setFile(\n '/src/runtime.ts',\n `\n export const Filter: any = {};\n export type FunctionHandler = ({ event, context }: { event: any; context: any }) => Promise<Response>;\n export const functionHandler = (handler: FunctionHandler) => handler;\n `,\n );\n await initializeBundler({ wasmUrl });\n },\n provides: {\n settings: {},\n metadata: {\n records: {\n [ScriptType.typename]: {\n createObject: ScriptAction.CREATE,\n placeholder: ['object title placeholder', { ns: SCRIPT_PLUGIN }],\n icon: 'ph--code--regular',\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: (script: ScriptType) => loadObjectReferences(script, (script) => [script.source]),\n },\n },\n },\n translations,\n echo: {\n schema: [ScriptType],\n system: [FunctionType],\n },\n graph: {\n builder: (plugins) => {\n const client = resolvePlugin(plugins, parseClientPlugin)?.provides.client;\n const dispatch = resolvePlugin(plugins, parseIntentPlugin)?.provides.intent.dispatch;\n if (!client || !dispatch) {\n return [];\n }\n\n return createExtension({\n id: ScriptAction.CREATE,\n filter: (node): node is ActionGroup => isActionGroup(node) && node.id.startsWith(SpaceAction.ADD_OBJECT),\n actions: ({ node }) => {\n const id = node.id.split('/').at(-1);\n const [spaceId, objectId] = id?.split(':') ?? [];\n const space = client.spaces.get().find((space) => space.id === spaceId);\n const object = objectId && space?.db.getObjectById(objectId);\n const target = objectId ? object : space;\n if (!target) {\n return;\n }\n\n return [\n {\n id: `${SCRIPT_PLUGIN}/create/${node.id}`,\n data: async () => {\n await dispatch([\n { plugin: SCRIPT_PLUGIN, action: ScriptAction.CREATE },\n { action: SpaceAction.ADD_OBJECT, data: { target } },\n { action: NavigationAction.OPEN },\n ]);\n },\n properties: {\n label: ['create object label', { ns: SCRIPT_PLUGIN }],\n icon: 'ph--code--regular',\n testId: 'scriptPlugin.createObject',\n },\n },\n ];\n },\n });\n },\n },\n surface: {\n component: ({ data, role }) => {\n switch (role) {\n case 'settings': {\n return data.plugin === meta.id ? <ScriptSettings settings={{}} /> : null;\n }\n\n case 'article': {\n if (data.object instanceof ScriptType) {\n return <ScriptContainer script={data.object} env={compiler.environment} />;\n }\n break;\n }\n\n case 'complementary--automation': {\n if (data.subject instanceof ScriptType) {\n return {\n node: <AutomationPanel subject={data.subject as any} />,\n disposition: 'hoist',\n };\n }\n break;\n }\n\n case 'complementary--settings': {\n if (data.subject instanceof ScriptType) {\n return <ScriptSettingsPanel script={data.subject} />;\n }\n break;\n }\n }\n\n return null;\n },\n },\n intent: {\n resolver: (intent) => {\n switch (intent.action) {\n case ScriptAction.CREATE: {\n return {\n data: create(ScriptType, {\n source: create(TextType, {\n content: templates[0].source,\n }),\n }),\n };\n }\n }\n },\n },\n },\n };\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport {\n createDefaultMapFromCDN,\n createSystem,\n createVirtualTypeScriptEnvironment,\n type VirtualTypeScriptEnvironment,\n} from '@typescript/vfs';\nimport ts from 'typescript';\n\nimport { invariant } from '@dxos/invariant';\n\nconst defaultOptions: ts.CompilerOptions = {\n lib: ['DOM', 'es2022'],\n target: ts.ScriptTarget.ES2022,\n};\n\nexport class Compiler {\n private _env: VirtualTypeScriptEnvironment | undefined;\n private _fsMap: Map<string, string> | undefined;\n\n constructor(private readonly _options: ts.CompilerOptions = defaultOptions) {}\n\n async initialize() {\n if (this._env) {\n return;\n }\n\n // TODO(wittjosiah): Figure out how to get workers working in plugin packages.\n // https://github.com/val-town/codemirror-ts?tab=readme-ov-file#setup-worker\n this._fsMap = await createDefaultMapFromCDN(this._options, '5.5.4', true, ts);\n const system = createSystem(this._fsMap);\n this._env = createVirtualTypeScriptEnvironment(system, [], ts, this._options);\n }\n\n get environment() {\n invariant(this._env, 'Compiler environment not initialized.');\n return this._env;\n }\n\n setFile(fileName: string, content: string) {\n invariant(this._fsMap, 'File system map not initialized.');\n this.environment.createFile(fileName, content);\n }\n\n compile(fileName: string) {\n return this.environment.languageService.getEmitOutput(fileName);\n }\n}\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { lazy } from 'react';\n\nexport * from './ScriptSettings';\nexport * from './ScriptSettingsPanel';\n\nexport const AutomationPanel = lazy(() => import('./AutomationPanel'));\nexport const ScriptContainer = lazy(() => import('./ScriptContainer'));\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport React from 'react';\n\nimport { type Credential } from '@dxos/protocols/proto/dxos/halo/credentials';\nimport { useClient } from '@dxos/react-client';\nimport { Button, useTranslation } from '@dxos/react-ui';\nimport { DeprecatedFormInput } from '@dxos/react-ui-form';\n\nimport { SCRIPT_PLUGIN } from '../../meta';\nimport { type ScriptSettingsProps } from '../../types';\n\nexport const ScriptSettings = ({ settings }: { settings: ScriptSettingsProps }) => {\n const { t } = useTranslation(SCRIPT_PLUGIN);\n const client = useClient();\n\n // TODO(burdon): Check token.\n const handleAuthenticate = async () => {\n const { identityKey } = client.halo.identity.get()!;\n await client.halo.writeCredentials([\n {\n issuer: identityKey,\n issuanceDate: new Date(),\n subject: {\n id: identityKey,\n assertion: {\n '@type': 'dxos.halo.credentials.ServiceAccess',\n serverName: 'hub.dxos.network',\n serverKey: identityKey,\n identityKey,\n capabilities: ['composer:beta'],\n },\n },\n } satisfies Credential,\n ]);\n };\n\n return (\n <>\n <DeprecatedFormInput label={t('authenticate action label')}>\n <Button onClick={handleAuthenticate}>{t('authenticate button label')}</Button>\n </DeprecatedFormInput>\n </>\n );\n};\n", "//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { type ChangeEvent, useCallback } from 'react';\n\nimport { useClient } from '@dxos/react-client';\nimport { Filter, getMeta, getSpace, useQuery } from '@dxos/react-client/echo';\nimport { Button, Icon, Input, useControlledValue, useTranslation } from '@dxos/react-ui';\n\nimport { getInvocationUrl, getUserFunctionUrlInMetadata } from '../edge';\nimport { SCRIPT_PLUGIN } from '../meta';\nimport { FunctionType, type ScriptType } from '../types';\n\nexport type ScriptSettingsPanelProps = {\n script: ScriptType;\n};\n\nexport const ScriptSettingsPanel = ({ script }: ScriptSettingsPanelProps) => {\n const { t } = useTranslation(SCRIPT_PLUGIN);\n const client = useClient();\n const space = getSpace(script);\n const [fn] = useQuery(space, Filter.schema(FunctionType, { source: script }));\n\n const handleNameChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n script.name = event.target.value;\n },\n [script],\n );\n\n const [binding, setBinding] = useControlledValue(fn?.binding ?? '');\n const handleBindingChange = useCallback(\n (event: ChangeEvent<HTMLInputElement>) => {\n setBinding(event.target.value);\n },\n [setBinding],\n );\n const handleBindingBlur = useCallback(() => {\n fn.binding = binding;\n }, [fn, binding]);\n\n const functionPath = fn && getUserFunctionUrlInMetadata(getMeta(fn));\n const functionUrl =\n functionPath &&\n getInvocationUrl(functionPath, client.config.values.runtime?.services?.edge?.url ?? '', {\n spaceId: space?.id,\n });\n\n // TODO(wittjosiah): Use ClipboardProvider.\n const handleCopy = useCallback(() => functionUrl && navigator.clipboard.writeText(functionUrl), [functionUrl]);\n\n return (\n <div role='form' className='flex flex-col w-full p-2 gap-4'>\n <Input.Root>\n <div role='none' className='flex flex-col gap-1'>\n <Input.Label>{t('name label')}</Input.Label>\n <Input.TextInput\n placeholder={t('object title placeholder')}\n value={script.name ?? ''}\n onChange={handleNameChange}\n />\n </div>\n </Input.Root>\n {fn && (\n <>\n <hr className='border-separator' />\n <h2>{t('remote function settings heading')}</h2>\n <Input.Root>\n <div role='none' className='flex flex-col gap-1'>\n <Input.Label>{t('function url label')}</Input.Label>\n <div role='none' className='flex gap-1'>\n <Input.TextInput\n disabled\n value={functionUrl}\n onChange={(event) => {\n fn.name = event.target.value;\n }}\n />\n <Button onClick={handleCopy}>\n <Icon icon='ph--copy--regular' size={4} />\n </Button>\n </div>\n </div>\n </Input.Root>\n <Input.Root>\n <div role='none' className='flex flex-col gap-1'>\n <Input.Label>{t('function binding label')}</Input.Label>\n <Input.TextInput\n placeholder={t('function binding placeholder')}\n value={binding}\n onChange={handleBindingChange}\n onBlur={handleBindingBlur}\n />\n </div>\n </Input.Root>\n </>\n )}\n </div>\n );\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { SCRIPT_PLUGIN } from './meta';\nimport { ScriptType } from './types';\n\nexport default [\n {\n 'en-US': {\n [ScriptType.typename]: {\n 'typename label': 'Script',\n },\n [SCRIPT_PLUGIN]: {\n 'plugin name': 'Scripts',\n 'object title placeholder': 'New script',\n 'create object label': 'Create script',\n 'create stack section label': 'Create script',\n 'binding placeholder': 'Function name',\n 'function request placeholder': 'Function request',\n 'deploy label': 'Deploy',\n 'deployed label': 'Current version of the script is deployed',\n 'upload failed label': 'Upload failed',\n 'copy link label': 'Copy function link',\n 'format label': 'Format',\n 'toggle details label': 'Toggle details panel',\n 'authenticate action label': 'Authenticate functions service',\n 'authenticate button label': 'Authenticate',\n 'name label': 'Name',\n 'remote function settings heading': 'Remote Function',\n 'function url label': 'Invocation URL',\n 'function binding label': 'Function binding',\n 'function binding placeholder': 'BINDING',\n },\n },\n },\n];\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { ScriptPlugin } from './ScriptPlugin';\n\nexport default ScriptPlugin;\n\nexport * from './bundler';\nexport * from './compiler';\nexport * from './components';\nexport * from './types';\n\nexport * from './ScriptPlugin';\n"],
|
|
5
|
-
"mappings": "
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../../src/capabilities/index.ts", "../../../src/ScriptPlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { lazy } from '@dxos/app-framework';\n\nexport const Compiler = lazy(() => import('./compiler'));\nexport const IntentResolver = lazy(() => import('./intent-resolver'));\nexport const ReactSurface = lazy(() => import('./react-surface'));\nexport const ScriptSettings = lazy(() => import('./settings'));\n\nexport * from './capabilities';\n", "//\n// Copyright 2023 DXOS.org\n//\n\n// @ts-ignore\n\nimport { Capabilities, contributes, createIntent, defineModule, definePlugin, Events } from '@dxos/app-framework';\nimport { type Space } from '@dxos/client/echo';\nimport { FunctionType, ScriptType } from '@dxos/functions';\nimport { RefArray } from '@dxos/live-object';\nimport { ClientCapabilities, ClientEvents } from '@dxos/plugin-client';\n\nimport { Compiler, IntentResolver, ReactSurface, ScriptSettings } from './capabilities';\nimport { meta, SCRIPT_PLUGIN } from './meta';\nimport translations from './translations';\nimport { ScriptAction } from './types';\n\nexport const ScriptPlugin = () =>\n definePlugin(meta, [\n defineModule({\n id: `${meta.id}/module/settings`,\n activatesOn: Events.SetupSettings,\n activate: ScriptSettings,\n }),\n defineModule({\n id: `${meta.id}/module/compiler`,\n activatesOn: Events.Startup,\n activate: Compiler,\n }),\n defineModule({\n id: `${meta.id}/module/translations`,\n activatesOn: Events.SetupTranslations,\n activate: () => contributes(Capabilities.Translations, translations),\n }),\n defineModule({\n id: `${meta.id}/module/metadata`,\n activatesOn: Events.SetupMetadata,\n activate: () =>\n contributes(Capabilities.Metadata, {\n id: ScriptType.typename,\n metadata: {\n creationSchema: ScriptAction.CreateScriptSchema,\n createObject: (props: ScriptAction.CreateScriptProps, { space }: { space: Space }) =>\n createIntent(ScriptAction.Create, { ...props, space }),\n placeholder: ['object title placeholder', { ns: SCRIPT_PLUGIN }],\n icon: 'ph--code--regular',\n // TODO(wittjosiah): Move out of metadata.\n loadReferences: async (script: ScriptType) => await RefArray.loadAll([script.source]),\n },\n }),\n }),\n defineModule({\n id: `${meta.id}/module/schema`,\n activatesOn: ClientEvents.SetupSchema,\n activate: () => [\n contributes(ClientCapabilities.SystemSchema, [FunctionType]),\n contributes(ClientCapabilities.Schema, [ScriptType]),\n ],\n }),\n defineModule({\n id: `${meta.id}/module/react-surface`,\n activatesOn: Events.SetupSurfaces,\n activate: ReactSurface,\n }),\n defineModule({\n id: `${meta.id}/module/intent-resolver`,\n activatesOn: Events.SetupIntents,\n activate: IntentResolver,\n }),\n ]);\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { ScriptType } from '@dxos/functions';\n\nimport { SCRIPT_PLUGIN } from './meta';\n\nexport default [\n {\n 'en-US': {\n [ScriptType.typename]: {\n 'typename label': 'Script',\n },\n [SCRIPT_PLUGIN]: {\n 'plugin name': 'Scripts',\n 'object title placeholder': 'New script',\n 'create object label': 'Create script',\n 'create stack section label': 'Create script',\n 'description label': 'Description',\n 'description placeholder': 'Describe what the script does.',\n 'binding placeholder': 'Function name',\n 'function request placeholder': 'Function request',\n 'deploy label': 'Deploy',\n 'deployed label': 'Current version of the script is deployed',\n 'upload failed label': 'Upload failed',\n 'copy link label': 'Copy function link',\n 'format label': 'Format',\n 'toggle details label': 'Toggle details panel',\n 'authenticate action label': 'Authenticate functions service',\n 'authenticate button label': 'Authenticate',\n 'name label': 'Name',\n 'remote function settings heading': 'Remote Function',\n 'function url label': 'Invocation URL',\n 'function binding label': 'Function binding',\n 'function binding placeholder': 'BINDING',\n 'script publish settings label': 'Publishing',\n 'script publish settings description': 'Scripts can be shared publicly as Github gists.',\n 'no github token label': 'This space has no Github access token available.',\n 'open token manager label': 'Open Token Manager',\n 'publish label': 'Publish',\n 'publishing label': 'Publishing',\n 'editor input mode label': 'Editor input mode',\n 'select editor input mode placeholder': 'Select editor input mode…',\n 'settings editor input mode default label': 'Default',\n 'settings editor input mode vim label': 'Vim',\n 'settings editor input mode vscode label': 'VS Code',\n 'view group label': 'View',\n 'view editor label': 'Editor',\n 'view split label': 'Split',\n 'view debug label': 'Debug',\n 'template select group label': 'Select template',\n },\n },\n },\n];\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAqB;ACErB,IAAAA,wBAA4F;AAE5F,uBAAyC;AACzC,yBAAyB;AACzB,2BAAiD;ACNjD,IAAAC,oBAA2B;AFEpB,IAAMC,eAAWC,2BAAK,MAAM,OAAO,yBAAA,CAAA;AACnC,IAAMC,qBAAiBD,2BAAK,MAAM,OAAO,gCAAA,CAAA;AACzC,IAAME,mBAAeF,2BAAK,MAAM,OAAO,8BAAA,CAAA;AACvC,IAAMG,sBAAiBH,2BAAK,MAAM,OAAO,yBAAA,CAAA;AEDhD,IAAA,uBAAe;EACb;IACE,SAAS;MACP,CAACI,6BAAWC,QAAQ,GAAG;QACrB,kBAAkB;MACpB;MACA,CAACC,mCAAAA,GAAgB;QACf,eAAe;QACf,4BAA4B;QAC5B,uBAAuB;QACvB,8BAA8B;QAC9B,qBAAqB;QACrB,2BAA2B;QAC3B,uBAAuB;QACvB,gCAAgC;QAChC,gBAAgB;QAChB,kBAAkB;QAClB,uBAAuB;QACvB,mBAAmB;QACnB,gBAAgB;QAChB,wBAAwB;QACxB,6BAA6B;QAC7B,6BAA6B;QAC7B,cAAc;QACd,oCAAoC;QACpC,sBAAsB;QACtB,0BAA0B;QAC1B,gCAAgC;QAChC,iCAAiC;QACjC,uCAAuC;QACvC,yBAAyB;QACzB,4BAA4B;QAC5B,iBAAiB;QACjB,oBAAoB;QACpB,2BAA2B;QAC3B,wCAAwC;QACxC,4CAA4C;QAC5C,wCAAwC;QACxC,2CAA2C;QAC3C,oBAAoB;QACpB,qBAAqB;QACrB,oBAAoB;QACpB,oBAAoB;QACpB,+BAA+B;MACjC;IACF;EACF;;ADrCK,IAAMC,eAAe,UAC1BC,oCAAaC,4BAAM;MACjBC,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOC;IACpBC,UAAUZ;EACZ,CAAA;MACAO,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOG;IACpBD,UAAUhB;EACZ,CAAA;MACAW,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOI;IACpBF,UAAU,UAAMG,mCAAYC,mCAAaC,cAAcC,oBAAAA;EACzD,CAAA;MACAX,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOS;IACpBP,UAAU,UACRG,mCAAYC,mCAAaI,UAAU;MACjCZ,IAAIP,iBAAAA,WAAWC;MACfmB,UAAU;QACRC,gBAAgBC,mCAAaC;QAC7BC,cAAc,CAACC,OAAuC,EAAEC,MAAK,UAC3DC,oCAAaL,mCAAaM,QAAQ;UAAE,GAAGH;UAAOC;QAAM,CAAA;QACtDG,aAAa;UAAC;UAA4B;YAAEC,IAAI5B;UAAc;;QAC9D6B,MAAM;;QAENC,gBAAgB,OAAOC,WAAuB,MAAMC,4BAASC,QAAQ;UAACF,OAAOG;SAAO;MACtF;IACF,CAAA;EACJ,CAAA;MACA9B,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAa6B,kCAAaC;IAC1B3B,UAAU,MAAM;UACdG,mCAAYyB,wCAAmBC,cAAc;QAACC;OAAa;UAC3D3B,mCAAYyB,wCAAmBG,QAAQ;QAAC1C,iBAAAA;OAAW;;EAEvD,CAAA;MACAM,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOkC;IACpBhC,UAAUb;EACZ,CAAA;MACAQ,oCAAa;IACXC,IAAI,GAAGF,2BAAKE,EAAE;IACdC,aAAaC,6BAAOmC;IACpBjC,UAAUd;EACZ,CAAA;CACD;",
|
|
6
|
+
"names": ["import_app_framework", "import_functions", "Compiler", "lazy", "IntentResolver", "ReactSurface", "ScriptSettings", "ScriptType", "typename", "SCRIPT_PLUGIN", "ScriptPlugin", "definePlugin", "meta", "defineModule", "id", "activatesOn", "Events", "SetupSettings", "activate", "Startup", "SetupTranslations", "contributes", "Capabilities", "Translations", "translations", "SetupMetadata", "Metadata", "metadata", "creationSchema", "ScriptAction", "CreateScriptSchema", "createObject", "props", "space", "createIntent", "Create", "placeholder", "ns", "icon", "loadReferences", "script", "RefArray", "loadAll", "source", "ClientEvents", "SetupSchema", "ClientCapabilities", "SystemSchema", "FunctionType", "Schema", "SetupSurfaces", "SetupIntents"]
|
|
7
7
|
}
|