@dxos/plugin-script 0.7.5-main.e9bb01b → 0.7.5-main.ff8607b
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-KZVZMZE6.mjs → AutomationPanel-J3SZ5L3Y.mjs} +3 -3
- package/dist/lib/browser/{ScriptContainer-AERJBGYK.mjs → ScriptContainer-4TSLLF4O.mjs} +3 -3
- package/dist/lib/browser/{chunk-Y4CVWFVS.mjs → chunk-45LXDWNF.mjs} +2 -2
- package/dist/lib/browser/{chunk-ABNZIPST.mjs → chunk-6MOQ4BP3.mjs} +2 -2
- package/dist/lib/browser/{chunk-ESPJMGXJ.mjs → chunk-FVVCAWNP.mjs} +2 -2
- package/dist/lib/browser/chunk-FVVCAWNP.mjs.map +7 -0
- package/dist/lib/browser/{chunk-NFPF4OIU.mjs → chunk-N46LE7FS.mjs} +2 -2
- package/dist/lib/browser/{chunk-J7CBIZI2.mjs → chunk-UJD45AFL.mjs} +4 -4
- package/dist/lib/browser/{compiler-4QD7VFZX.mjs → compiler-K3FNRDDN.mjs} +3 -3
- package/dist/lib/browser/index.mjs +8 -8
- package/dist/lib/browser/{intent-resolver-YABC4JRJ.mjs → intent-resolver-PPUEEPJJ.mjs} +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-surface-FRQIIYKG.mjs → react-surface-4CEIM2FE.mjs} +4 -4
- package/dist/lib/browser/{settings-S4MGGM4D.mjs → settings-SZCDKHWO.mjs} +3 -3
- package/dist/lib/browser/types.mjs +2 -2
- package/dist/lib/node/{AutomationPanel-6QSV7ZYK.cjs → AutomationPanel-4M55FURO.cjs} +8 -8
- package/dist/lib/node/{ScriptContainer-DOAQ6KOE.cjs → ScriptContainer-7JNYGHWK.cjs} +15 -15
- package/dist/lib/node/{chunk-63C2KSD6.cjs → chunk-2LHV7KAI.cjs} +9 -9
- package/dist/lib/node/{chunk-HU2JXUXI.cjs → chunk-5UH3F7TA.cjs} +5 -5
- package/dist/lib/node/chunk-5UH3F7TA.cjs.map +7 -0
- package/dist/lib/node/{chunk-RZHY5LAR.cjs → chunk-ALY3N6PW.cjs} +6 -6
- package/dist/lib/node/{chunk-6M2VRFBC.cjs → chunk-DJGLGRQV.cjs} +6 -6
- package/dist/lib/node/{chunk-CZVVFUVL.cjs → chunk-IID7WUQS.cjs} +6 -6
- package/dist/lib/node/{compiler-Q3EXWKV5.cjs → compiler-P2HQB22H.cjs} +7 -7
- package/dist/lib/node/index.cjs +27 -27
- package/dist/lib/node/{intent-resolver-7HI2CDGB.cjs → intent-resolver-XZC3OXVT.cjs} +7 -7
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/{react-surface-IKONODLG.cjs → react-surface-I36RLNYL.cjs} +18 -18
- package/dist/lib/node/{settings-Q5XIA4LZ.cjs → settings-SZFSMSKM.cjs} +9 -9
- package/dist/lib/node/types.cjs +4 -4
- package/dist/lib/node/types.cjs.map +1 -1
- package/dist/lib/node-esm/{AutomationPanel-EZQSGJLS.mjs → AutomationPanel-W6SKG35R.mjs} +3 -3
- package/dist/lib/node-esm/{ScriptContainer-HE5QPPFZ.mjs → ScriptContainer-BR6YLHCD.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-77LRZF2W.mjs → chunk-CGF7EOGD.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-3YOO5E2D.mjs → chunk-CP5LXTK5.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-EOBGHKNT.mjs → chunk-P2V2Y5LV.mjs} +2 -2
- package/dist/lib/node-esm/chunk-P2V2Y5LV.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-5D2AXTAW.mjs → chunk-UNQFIERE.mjs} +2 -2
- package/dist/lib/node-esm/{chunk-UWHMEJYW.mjs → chunk-VZ7NFQL3.mjs} +4 -4
- package/dist/lib/node-esm/{compiler-KJEIPDZ6.mjs → compiler-PDN46H4Y.mjs} +3 -3
- package/dist/lib/node-esm/index.mjs +8 -8
- package/dist/lib/node-esm/{intent-resolver-KG7I6JJA.mjs → intent-resolver-WUVFJ6AO.mjs} +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{react-surface-YA7WIRAM.mjs → react-surface-ET5KDADI.mjs} +4 -4
- package/dist/lib/node-esm/{settings-NZXHNIQ3.mjs → settings-GR4O2WHZ.mjs} +3 -3
- package/dist/lib/node-esm/types.mjs +2 -2
- package/dist/types/src/meta.d.ts.map +1 -1
- package/package.json +42 -42
- package/src/meta.ts +2 -1
- package/dist/lib/browser/chunk-ESPJMGXJ.mjs.map +0 -7
- package/dist/lib/node/chunk-HU2JXUXI.cjs.map +0 -7
- package/dist/lib/node-esm/chunk-EOBGHKNT.mjs.map +0 -7
- /package/dist/lib/browser/{AutomationPanel-KZVZMZE6.mjs.map → AutomationPanel-J3SZ5L3Y.mjs.map} +0 -0
- /package/dist/lib/browser/{ScriptContainer-AERJBGYK.mjs.map → ScriptContainer-4TSLLF4O.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-Y4CVWFVS.mjs.map → chunk-45LXDWNF.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-ABNZIPST.mjs.map → chunk-6MOQ4BP3.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-NFPF4OIU.mjs.map → chunk-N46LE7FS.mjs.map} +0 -0
- /package/dist/lib/browser/{chunk-J7CBIZI2.mjs.map → chunk-UJD45AFL.mjs.map} +0 -0
- /package/dist/lib/browser/{compiler-4QD7VFZX.mjs.map → compiler-K3FNRDDN.mjs.map} +0 -0
- /package/dist/lib/browser/{intent-resolver-YABC4JRJ.mjs.map → intent-resolver-PPUEEPJJ.mjs.map} +0 -0
- /package/dist/lib/browser/{react-surface-FRQIIYKG.mjs.map → react-surface-4CEIM2FE.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-S4MGGM4D.mjs.map → settings-SZCDKHWO.mjs.map} +0 -0
- /package/dist/lib/node/{AutomationPanel-6QSV7ZYK.cjs.map → AutomationPanel-4M55FURO.cjs.map} +0 -0
- /package/dist/lib/node/{ScriptContainer-DOAQ6KOE.cjs.map → ScriptContainer-7JNYGHWK.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-63C2KSD6.cjs.map → chunk-2LHV7KAI.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-RZHY5LAR.cjs.map → chunk-ALY3N6PW.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-6M2VRFBC.cjs.map → chunk-DJGLGRQV.cjs.map} +0 -0
- /package/dist/lib/node/{chunk-CZVVFUVL.cjs.map → chunk-IID7WUQS.cjs.map} +0 -0
- /package/dist/lib/node/{compiler-Q3EXWKV5.cjs.map → compiler-P2HQB22H.cjs.map} +0 -0
- /package/dist/lib/node/{intent-resolver-7HI2CDGB.cjs.map → intent-resolver-XZC3OXVT.cjs.map} +0 -0
- /package/dist/lib/node/{react-surface-IKONODLG.cjs.map → react-surface-I36RLNYL.cjs.map} +0 -0
- /package/dist/lib/node/{settings-Q5XIA4LZ.cjs.map → settings-SZFSMSKM.cjs.map} +0 -0
- /package/dist/lib/node-esm/{AutomationPanel-EZQSGJLS.mjs.map → AutomationPanel-W6SKG35R.mjs.map} +0 -0
- /package/dist/lib/node-esm/{ScriptContainer-HE5QPPFZ.mjs.map → ScriptContainer-BR6YLHCD.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-77LRZF2W.mjs.map → chunk-CGF7EOGD.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-3YOO5E2D.mjs.map → chunk-CP5LXTK5.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-5D2AXTAW.mjs.map → chunk-UNQFIERE.mjs.map} +0 -0
- /package/dist/lib/node-esm/{chunk-UWHMEJYW.mjs.map → chunk-VZ7NFQL3.mjs.map} +0 -0
- /package/dist/lib/node-esm/{compiler-KJEIPDZ6.mjs.map → compiler-PDN46H4Y.mjs.map} +0 -0
- /package/dist/lib/node-esm/{intent-resolver-KG7I6JJA.mjs.map → intent-resolver-WUVFJ6AO.mjs.map} +0 -0
- /package/dist/lib/node-esm/{react-surface-YA7WIRAM.mjs.map → react-surface-ET5KDADI.mjs.map} +0 -0
- /package/dist/lib/node-esm/{settings-NZXHNIQ3.mjs.map → settings-GR4O2WHZ.mjs.map} +0 -0
|
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var AutomationPanel_4M55FURO_exports = {};
|
|
30
|
+
__export(AutomationPanel_4M55FURO_exports, {
|
|
31
31
|
AutomationPanel: () => AutomationPanel,
|
|
32
32
|
default: () => AutomationPanel_default
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
35
|
-
var
|
|
36
|
-
var
|
|
34
|
+
module.exports = __toCommonJS(AutomationPanel_4M55FURO_exports);
|
|
35
|
+
var import_chunk_IID7WUQS = require("./chunk-IID7WUQS.cjs");
|
|
36
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
37
37
|
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_debug = require("@dxos/debug");
|
|
39
39
|
var import_functions = require("@dxos/functions");
|
|
@@ -41,7 +41,7 @@ var import_react_client = require("@dxos/react-client");
|
|
|
41
41
|
var import_echo = require("@dxos/react-client/echo");
|
|
42
42
|
var import_react_ui = require("@dxos/react-ui");
|
|
43
43
|
var AutomationPanel = ({ subject }) => {
|
|
44
|
-
const { t } = (0, import_react_ui.useTranslation)(
|
|
44
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_5UH3F7TA.SCRIPT_PLUGIN);
|
|
45
45
|
const space = (0, import_echo.getSpace)(subject);
|
|
46
46
|
const functions = (0, import_echo.useQuery)(space ?? void 0, subject instanceof import_functions.ScriptType ? import_echo.Filter.schema(import_functions.FunctionType, {
|
|
47
47
|
source: subject
|
|
@@ -80,7 +80,7 @@ var ChatPanel = ({ fn, subject }) => {
|
|
|
80
80
|
space,
|
|
81
81
|
subject
|
|
82
82
|
]);
|
|
83
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
|
83
|
+
return /* @__PURE__ */ import_react.default.createElement(import_chunk_IID7WUQS.DebugPanel, {
|
|
84
84
|
functionUrl,
|
|
85
85
|
classNames: "flex-1"
|
|
86
86
|
});
|
|
@@ -101,4 +101,4 @@ var AutomationPanel_default = AutomationPanel;
|
|
|
101
101
|
0 && (module.exports = {
|
|
102
102
|
AutomationPanel
|
|
103
103
|
});
|
|
104
|
-
//# sourceMappingURL=AutomationPanel-
|
|
104
|
+
//# sourceMappingURL=AutomationPanel-4M55FURO.cjs.map
|
|
@@ -26,16 +26,16 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var ScriptContainer_7JNYGHWK_exports = {};
|
|
30
|
+
__export(ScriptContainer_7JNYGHWK_exports, {
|
|
31
31
|
ScriptContainer: () => ScriptContainer,
|
|
32
32
|
default: () => ScriptContainer_default
|
|
33
33
|
});
|
|
34
|
-
module.exports = __toCommonJS(
|
|
34
|
+
module.exports = __toCommonJS(ScriptContainer_7JNYGHWK_exports);
|
|
35
35
|
var import_chunk_T4TXCRN5 = require("./chunk-T4TXCRN5.cjs");
|
|
36
36
|
var import_chunk_TJ4BTPOS = require("./chunk-TJ4BTPOS.cjs");
|
|
37
|
-
var
|
|
38
|
-
var
|
|
37
|
+
var import_chunk_IID7WUQS = require("./chunk-IID7WUQS.cjs");
|
|
38
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
39
39
|
var import_react = __toESM(require("react"));
|
|
40
40
|
var import_echo = require("@dxos/react-client/echo");
|
|
41
41
|
var import_halo = require("@dxos/react-client/halo");
|
|
@@ -87,7 +87,7 @@ var createDeploy = (state) => {
|
|
|
87
87
|
label: state.error ?? [
|
|
88
88
|
"no error label",
|
|
89
89
|
{
|
|
90
|
-
ns:
|
|
90
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
91
91
|
}
|
|
92
92
|
],
|
|
93
93
|
icon: "ph--warning-circle--regular",
|
|
@@ -98,7 +98,7 @@ var createDeploy = (state) => {
|
|
|
98
98
|
label: [
|
|
99
99
|
state.deploying ? "pending label" : "deploy label",
|
|
100
100
|
{
|
|
101
|
-
ns:
|
|
101
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
102
102
|
}
|
|
103
103
|
],
|
|
104
104
|
icon: state.deploying ? "ph--spinner-gap--regular" : "ph--cloud-arrow-up--regular",
|
|
@@ -110,7 +110,7 @@ var createDeploy = (state) => {
|
|
|
110
110
|
label: [
|
|
111
111
|
"copy link label",
|
|
112
112
|
{
|
|
113
|
-
ns:
|
|
113
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
114
114
|
}
|
|
115
115
|
],
|
|
116
116
|
icon: "ph--link--regular",
|
|
@@ -182,7 +182,7 @@ var useDeployHandler = ({ state, script }) => {
|
|
|
182
182
|
state,
|
|
183
183
|
script
|
|
184
184
|
});
|
|
185
|
-
const { t } = (0, import_react_ui2.useTranslation)(
|
|
185
|
+
const { t } = (0, import_react_ui2.useTranslation)(import_chunk_5UH3F7TA.SCRIPT_PLUGIN);
|
|
186
186
|
return (0, import_react3.useCallback)(async () => {
|
|
187
187
|
if (!script.source || !space) {
|
|
188
188
|
return;
|
|
@@ -277,7 +277,7 @@ var createFormat = () => {
|
|
|
277
277
|
label: [
|
|
278
278
|
"format label",
|
|
279
279
|
{
|
|
280
|
-
ns:
|
|
280
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
281
281
|
}
|
|
282
282
|
],
|
|
283
283
|
icon: "ph--magic-wand--regular"
|
|
@@ -324,7 +324,7 @@ var createTemplateSelectGroup = () => {
|
|
|
324
324
|
label: [
|
|
325
325
|
"template select group label",
|
|
326
326
|
{
|
|
327
|
-
ns:
|
|
327
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
328
328
|
}
|
|
329
329
|
],
|
|
330
330
|
variant: "dropdownMenu"
|
|
@@ -429,7 +429,7 @@ var createViewGroupItem = (state) => {
|
|
|
429
429
|
label: [
|
|
430
430
|
"view group label",
|
|
431
431
|
{
|
|
432
|
-
ns:
|
|
432
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
433
433
|
}
|
|
434
434
|
],
|
|
435
435
|
variant: "dropdownMenu",
|
|
@@ -445,7 +445,7 @@ var createViewActions = (state) => {
|
|
|
445
445
|
label: [
|
|
446
446
|
`view ${viewType} label`,
|
|
447
447
|
{
|
|
448
|
-
ns:
|
|
448
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
449
449
|
}
|
|
450
450
|
],
|
|
451
451
|
icon,
|
|
@@ -677,7 +677,7 @@ var ScriptContainer = ({ role, classNames, script, settings, env }) => {
|
|
|
677
677
|
className: (0, import_react_ui_editor.stackItemContentEditorClassNames)(role),
|
|
678
678
|
inputMode: settings.editorInputMode,
|
|
679
679
|
toolbar: true
|
|
680
|
-
}), state.view !== "editor" && /* @__PURE__ */ import_react.default.createElement(
|
|
680
|
+
}), state.view !== "editor" && /* @__PURE__ */ import_react.default.createElement(import_chunk_IID7WUQS.DebugPanel, {
|
|
681
681
|
functionUrl: state.functionUrl
|
|
682
682
|
})));
|
|
683
683
|
};
|
|
@@ -686,4 +686,4 @@ var ScriptContainer_default = ScriptContainer;
|
|
|
686
686
|
0 && (module.exports = {
|
|
687
687
|
ScriptContainer
|
|
688
688
|
});
|
|
689
|
-
//# sourceMappingURL=ScriptContainer-
|
|
689
|
+
//# sourceMappingURL=ScriptContainer-7JNYGHWK.cjs.map
|
|
@@ -26,15 +26,15 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_2LHV7KAI_exports = {};
|
|
30
|
+
__export(chunk_2LHV7KAI_exports, {
|
|
31
31
|
AutomationPanel: () => AutomationPanel,
|
|
32
32
|
ScriptContainer: () => ScriptContainer,
|
|
33
33
|
ScriptSettings: () => ScriptSettings,
|
|
34
34
|
ScriptSettingsPanel: () => ScriptSettingsPanel
|
|
35
35
|
});
|
|
36
|
-
module.exports = __toCommonJS(
|
|
37
|
-
var
|
|
36
|
+
module.exports = __toCommonJS(chunk_2LHV7KAI_exports);
|
|
37
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
38
38
|
var import_react = __toESM(require("react"));
|
|
39
39
|
var import_react_client = require("@dxos/react-client");
|
|
40
40
|
var import_react_ui = require("@dxos/react-ui");
|
|
@@ -51,7 +51,7 @@ var import_react_ui2 = require("@dxos/react-ui");
|
|
|
51
51
|
var import_schema = require("@dxos/schema");
|
|
52
52
|
var import_react3 = require("react");
|
|
53
53
|
var ScriptSettings = ({ settings }) => {
|
|
54
|
-
const { t } = (0, import_react_ui.useTranslation)(
|
|
54
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_5UH3F7TA.SCRIPT_PLUGIN);
|
|
55
55
|
const client = (0, import_react_client.useClient)();
|
|
56
56
|
const handleAuthenticate = async () => {
|
|
57
57
|
const { identityKey } = client.halo.identity.get();
|
|
@@ -95,7 +95,7 @@ var ScriptSettings = ({ settings }) => {
|
|
|
95
95
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/experimental/plugin-script/src/components/ScriptSettingsPanel.tsx";
|
|
96
96
|
var kebabize = (str) => str.replace(/[A-Z]+(?![a-z])|[A-Z]/g, ($, ofs) => (ofs ? "-" : "") + $.toLowerCase());
|
|
97
97
|
var ScriptSettingsPanel = ({ script }) => {
|
|
98
|
-
const { t } = (0, import_react_ui2.useTranslation)(
|
|
98
|
+
const { t } = (0, import_react_ui2.useTranslation)(import_chunk_5UH3F7TA.SCRIPT_PLUGIN);
|
|
99
99
|
const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
|
|
100
100
|
const client = (0, import_react_client2.useClient)();
|
|
101
101
|
const space = (0, import_echo.getSpace)(script);
|
|
@@ -240,8 +240,8 @@ var ScriptSettingsPanel = ({ script }) => {
|
|
|
240
240
|
onClick: handlePublish
|
|
241
241
|
}, t(publishing ? "publishing label" : "publish label")))));
|
|
242
242
|
};
|
|
243
|
-
var AutomationPanel = (0, import_react3.lazy)(() => import("./AutomationPanel-
|
|
244
|
-
var ScriptContainer = (0, import_react3.lazy)(() => import("./ScriptContainer-
|
|
243
|
+
var AutomationPanel = (0, import_react3.lazy)(() => import("./AutomationPanel-4M55FURO.cjs"));
|
|
244
|
+
var ScriptContainer = (0, import_react3.lazy)(() => import("./ScriptContainer-7JNYGHWK.cjs"));
|
|
245
245
|
// Annotate the CommonJS export names for ESM import in node:
|
|
246
246
|
0 && (module.exports = {
|
|
247
247
|
AutomationPanel,
|
|
@@ -249,4 +249,4 @@ var ScriptContainer = (0, import_react3.lazy)(() => import("./ScriptContainer-DO
|
|
|
249
249
|
ScriptSettings,
|
|
250
250
|
ScriptSettingsPanel
|
|
251
251
|
});
|
|
252
|
-
//# sourceMappingURL=chunk-
|
|
252
|
+
//# sourceMappingURL=chunk-2LHV7KAI.cjs.map
|
|
@@ -16,17 +16,17 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_5UH3F7TA_exports = {};
|
|
20
|
+
__export(chunk_5UH3F7TA_exports, {
|
|
21
21
|
SCRIPT_PLUGIN: () => SCRIPT_PLUGIN,
|
|
22
22
|
meta: () => meta
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
24
|
+
module.exports = __toCommonJS(chunk_5UH3F7TA_exports);
|
|
25
25
|
var SCRIPT_PLUGIN = "dxos.org/plugin/script";
|
|
26
26
|
var meta = {
|
|
27
27
|
id: SCRIPT_PLUGIN,
|
|
28
28
|
name: "Scripts",
|
|
29
|
-
description:
|
|
29
|
+
description: "Scripts in Composer allow you to deploy custom functions that run on the edge. These functions can be referenced by your AI agent and called inside of cells in any Sheet. Use scripts to interact with API\u2019s or external data inside of Composer.",
|
|
30
30
|
icon: "ph--code--regular",
|
|
31
31
|
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-explorer",
|
|
32
32
|
tags: [
|
|
@@ -41,4 +41,4 @@ var meta = {
|
|
|
41
41
|
SCRIPT_PLUGIN,
|
|
42
42
|
meta
|
|
43
43
|
});
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-5UH3F7TA.cjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const SCRIPT_PLUGIN = 'dxos.org/plugin/script';\n\nexport const meta = {\n id: SCRIPT_PLUGIN,\n name: 'Scripts',\n description:\n 'Scripts in Composer allow you to deploy custom functions that run on the edge. These functions can be referenced by your AI agent and called inside of cells in any Sheet. Use scripts to interact with API’s or external data inside of Composer.',\n icon: 'ph--code--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/experimental/plugin-explorer',\n tags: ['experimental'],\n screenshots: ['https://dxos.network/plugin-details-scripts-dark.png'],\n} satisfies PluginMeta;\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,gBAAgB;AAEtB,IAAMC,OAAO;EAClBC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;",
|
|
6
|
+
"names": ["SCRIPT_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots"]
|
|
7
|
+
}
|
|
@@ -16,19 +16,19 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_ALY3N6PW_exports = {};
|
|
20
|
+
__export(chunk_ALY3N6PW_exports, {
|
|
21
21
|
ScriptCapabilities: () => ScriptCapabilities
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
24
|
-
var
|
|
23
|
+
module.exports = __toCommonJS(chunk_ALY3N6PW_exports);
|
|
24
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
25
25
|
var import_app_framework = require("@dxos/app-framework");
|
|
26
26
|
var ScriptCapabilities;
|
|
27
27
|
(function(ScriptCapabilities2) {
|
|
28
|
-
ScriptCapabilities2.Compiler = (0, import_app_framework.defineCapability)(`${
|
|
28
|
+
ScriptCapabilities2.Compiler = (0, import_app_framework.defineCapability)(`${import_chunk_5UH3F7TA.SCRIPT_PLUGIN}/capability/compiler`);
|
|
29
29
|
})(ScriptCapabilities || (ScriptCapabilities = {}));
|
|
30
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
31
31
|
0 && (module.exports = {
|
|
32
32
|
ScriptCapabilities
|
|
33
33
|
});
|
|
34
|
-
//# sourceMappingURL=chunk-
|
|
34
|
+
//# sourceMappingURL=chunk-ALY3N6PW.cjs.map
|
|
@@ -16,13 +16,13 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var chunk_DJGLGRQV_exports = {};
|
|
20
|
+
__export(chunk_DJGLGRQV_exports, {
|
|
21
21
|
ScriptAction: () => ScriptAction,
|
|
22
22
|
ScriptSettingsSchema: () => ScriptSettingsSchema
|
|
23
23
|
});
|
|
24
|
-
module.exports = __toCommonJS(
|
|
25
|
-
var
|
|
24
|
+
module.exports = __toCommonJS(chunk_DJGLGRQV_exports);
|
|
25
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
26
26
|
var import_AST = require("@effect/schema/AST");
|
|
27
27
|
var import_echo = require("@dxos/client/echo");
|
|
28
28
|
var import_echo_schema = require("@dxos/echo-schema");
|
|
@@ -30,7 +30,7 @@ var import_functions = require("@dxos/functions");
|
|
|
30
30
|
var import_react_ui_editor = require("@dxos/react-ui-editor");
|
|
31
31
|
var ScriptAction;
|
|
32
32
|
(function(ScriptAction2) {
|
|
33
|
-
const SCRIPT_ACTION = `${
|
|
33
|
+
const SCRIPT_ACTION = `${import_chunk_5UH3F7TA.SCRIPT_PLUGIN}/action`;
|
|
34
34
|
ScriptAction2.CreateScriptSchema = import_echo_schema.S.Struct({
|
|
35
35
|
name: import_echo_schema.S.optional(import_echo_schema.S.String),
|
|
36
36
|
// TODO(wittjosiah): Placeholder annotation?
|
|
@@ -57,4 +57,4 @@ var ScriptSettingsSchema = import_echo_schema.S.mutable(import_echo_schema.S.Str
|
|
|
57
57
|
ScriptAction,
|
|
58
58
|
ScriptSettingsSchema
|
|
59
59
|
});
|
|
60
|
-
//# sourceMappingURL=chunk-
|
|
60
|
+
//# sourceMappingURL=chunk-DJGLGRQV.cjs.map
|
|
@@ -26,12 +26,12 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var chunk_IID7WUQS_exports = {};
|
|
30
|
+
__export(chunk_IID7WUQS_exports, {
|
|
31
31
|
DebugPanel: () => DebugPanel
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
34
|
-
var
|
|
33
|
+
module.exports = __toCommonJS(chunk_IID7WUQS_exports);
|
|
34
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_log = require("@dxos/log");
|
|
37
37
|
var import_react_ui = require("@dxos/react-ui");
|
|
@@ -39,7 +39,7 @@ var import_react_ui_syntax_highlighter = require("@dxos/react-ui-syntax-highligh
|
|
|
39
39
|
var import_react_ui_theme = require("@dxos/react-ui-theme");
|
|
40
40
|
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/experimental/plugin-script/src/components/DebugPanel/DebugPanel.tsx";
|
|
41
41
|
var DebugPanel = ({ classNames, functionUrl }) => {
|
|
42
|
-
const { t } = (0, import_react_ui.useTranslation)(
|
|
42
|
+
const { t } = (0, import_react_ui.useTranslation)(import_chunk_5UH3F7TA.SCRIPT_PLUGIN);
|
|
43
43
|
const inputRef = (0, import_react.useRef)(null);
|
|
44
44
|
const [input, setInput] = (0, import_react.useState)("");
|
|
45
45
|
const [result, setResult] = (0, import_react.useState)("");
|
|
@@ -266,4 +266,4 @@ var RobotAvatar = () => /* @__PURE__ */ import_react.default.createElement(impor
|
|
|
266
266
|
0 && (module.exports = {
|
|
267
267
|
DebugPanel
|
|
268
268
|
});
|
|
269
|
-
//# sourceMappingURL=chunk-
|
|
269
|
+
//# sourceMappingURL=chunk-IID7WUQS.cjs.map
|
|
@@ -26,14 +26,14 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
mod
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
29
|
+
var compiler_P2HQB22H_exports = {};
|
|
30
|
+
__export(compiler_P2HQB22H_exports, {
|
|
31
31
|
default: () => compiler_default
|
|
32
32
|
});
|
|
33
|
-
module.exports = __toCommonJS(
|
|
33
|
+
module.exports = __toCommonJS(compiler_P2HQB22H_exports);
|
|
34
34
|
var import_chunk_T4TXCRN5 = require("./chunk-T4TXCRN5.cjs");
|
|
35
|
-
var
|
|
36
|
-
var
|
|
35
|
+
var import_chunk_ALY3N6PW = require("./chunk-ALY3N6PW.cjs");
|
|
36
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
37
37
|
var import_esbuild = __toESM(require("esbuild-wasm/esbuild.wasm?url"));
|
|
38
38
|
var import_app_framework = require("@dxos/app-framework");
|
|
39
39
|
var import_vfs = require("@typescript/vfs");
|
|
@@ -99,6 +99,6 @@ var compiler_default = async () => {
|
|
|
99
99
|
await (0, import_chunk_T4TXCRN5.initializeBundler)({
|
|
100
100
|
wasmUrl: import_esbuild.default
|
|
101
101
|
});
|
|
102
|
-
return (0, import_app_framework.contributes)(
|
|
102
|
+
return (0, import_app_framework.contributes)(import_chunk_ALY3N6PW.ScriptCapabilities.Compiler, compiler);
|
|
103
103
|
};
|
|
104
|
-
//# sourceMappingURL=compiler-
|
|
104
|
+
//# sourceMappingURL=compiler-P2HQB22H.cjs.map
|
package/dist/lib/node/index.cjs
CHANGED
|
@@ -28,40 +28,40 @@ 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: () =>
|
|
31
|
+
AutomationPanel: () => import_chunk_2LHV7KAI.AutomationPanel,
|
|
32
32
|
Bundler: () => import_chunk_T4TXCRN5.Bundler,
|
|
33
|
-
SCRIPT_PLUGIN: () =>
|
|
34
|
-
ScriptCapabilities: () =>
|
|
35
|
-
ScriptContainer: () =>
|
|
33
|
+
SCRIPT_PLUGIN: () => import_chunk_5UH3F7TA.SCRIPT_PLUGIN,
|
|
34
|
+
ScriptCapabilities: () => import_chunk_ALY3N6PW.ScriptCapabilities,
|
|
35
|
+
ScriptContainer: () => import_chunk_2LHV7KAI.ScriptContainer,
|
|
36
36
|
ScriptPlugin: () => ScriptPlugin,
|
|
37
|
-
ScriptSettings: () =>
|
|
38
|
-
ScriptSettingsPanel: () =>
|
|
37
|
+
ScriptSettings: () => import_chunk_2LHV7KAI.ScriptSettings,
|
|
38
|
+
ScriptSettingsPanel: () => import_chunk_2LHV7KAI.ScriptSettingsPanel,
|
|
39
39
|
initializeBundler: () => import_chunk_T4TXCRN5.initializeBundler,
|
|
40
|
-
meta: () =>
|
|
40
|
+
meta: () => import_chunk_5UH3F7TA.meta
|
|
41
41
|
});
|
|
42
42
|
module.exports = __toCommonJS(node_exports);
|
|
43
43
|
var import_chunk_T4TXCRN5 = require("./chunk-T4TXCRN5.cjs");
|
|
44
|
-
var
|
|
45
|
-
var
|
|
46
|
-
var
|
|
47
|
-
var
|
|
44
|
+
var import_chunk_2LHV7KAI = require("./chunk-2LHV7KAI.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");
|
|
48
48
|
var import_app_framework = require("@dxos/app-framework");
|
|
49
49
|
var import_app_framework2 = require("@dxos/app-framework");
|
|
50
50
|
var import_functions = require("@dxos/functions");
|
|
51
51
|
var import_live_object = require("@dxos/live-object");
|
|
52
52
|
var import_plugin_client = require("@dxos/plugin-client");
|
|
53
53
|
var import_functions2 = require("@dxos/functions");
|
|
54
|
-
var Compiler = (0, import_app_framework.lazy)(() => import("./compiler-
|
|
55
|
-
var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-
|
|
56
|
-
var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-
|
|
57
|
-
var ScriptSettings2 = (0, import_app_framework.lazy)(() => import("./settings-
|
|
54
|
+
var Compiler = (0, import_app_framework.lazy)(() => import("./compiler-P2HQB22H.cjs"));
|
|
55
|
+
var IntentResolver = (0, import_app_framework.lazy)(() => import("./intent-resolver-XZC3OXVT.cjs"));
|
|
56
|
+
var ReactSurface = (0, import_app_framework.lazy)(() => import("./react-surface-I36RLNYL.cjs"));
|
|
57
|
+
var ScriptSettings2 = (0, import_app_framework.lazy)(() => import("./settings-SZFSMSKM.cjs"));
|
|
58
58
|
var translations_default = [
|
|
59
59
|
{
|
|
60
60
|
"en-US": {
|
|
61
61
|
[import_functions2.ScriptType.typename]: {
|
|
62
62
|
"typename label": "Script"
|
|
63
63
|
},
|
|
64
|
-
[
|
|
64
|
+
[import_chunk_5UH3F7TA.SCRIPT_PLUGIN]: {
|
|
65
65
|
"plugin name": "Scripts",
|
|
66
66
|
"object title placeholder": "New script",
|
|
67
67
|
"create object label": "Create script",
|
|
@@ -101,37 +101,37 @@ var translations_default = [
|
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
];
|
|
104
|
-
var ScriptPlugin = () => (0, import_app_framework2.definePlugin)(
|
|
104
|
+
var ScriptPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_5UH3F7TA.meta, [
|
|
105
105
|
(0, import_app_framework2.defineModule)({
|
|
106
|
-
id: `${
|
|
106
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/settings`,
|
|
107
107
|
activatesOn: import_app_framework2.Events.SetupSettings,
|
|
108
108
|
activate: ScriptSettings2
|
|
109
109
|
}),
|
|
110
110
|
(0, import_app_framework2.defineModule)({
|
|
111
|
-
id: `${
|
|
111
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/compiler`,
|
|
112
112
|
activatesOn: import_app_framework2.Events.Startup,
|
|
113
113
|
activate: Compiler
|
|
114
114
|
}),
|
|
115
115
|
(0, import_app_framework2.defineModule)({
|
|
116
|
-
id: `${
|
|
116
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/translations`,
|
|
117
117
|
activatesOn: import_app_framework2.Events.SetupTranslations,
|
|
118
118
|
activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Translations, translations_default)
|
|
119
119
|
}),
|
|
120
120
|
(0, import_app_framework2.defineModule)({
|
|
121
|
-
id: `${
|
|
121
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/metadata`,
|
|
122
122
|
activatesOn: import_app_framework2.Events.SetupMetadata,
|
|
123
123
|
activate: () => (0, import_app_framework2.contributes)(import_app_framework2.Capabilities.Metadata, {
|
|
124
124
|
id: import_functions.ScriptType.typename,
|
|
125
125
|
metadata: {
|
|
126
|
-
creationSchema:
|
|
127
|
-
createObject: (props, { space }) => (0, import_app_framework2.createIntent)(
|
|
126
|
+
creationSchema: import_chunk_DJGLGRQV.ScriptAction.CreateScriptSchema,
|
|
127
|
+
createObject: (props, { space }) => (0, import_app_framework2.createIntent)(import_chunk_DJGLGRQV.ScriptAction.Create, {
|
|
128
128
|
...props,
|
|
129
129
|
space
|
|
130
130
|
}),
|
|
131
131
|
placeholder: [
|
|
132
132
|
"object title placeholder",
|
|
133
133
|
{
|
|
134
|
-
ns:
|
|
134
|
+
ns: import_chunk_5UH3F7TA.SCRIPT_PLUGIN
|
|
135
135
|
}
|
|
136
136
|
],
|
|
137
137
|
icon: "ph--code--regular",
|
|
@@ -143,7 +143,7 @@ var ScriptPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_HU
|
|
|
143
143
|
})
|
|
144
144
|
}),
|
|
145
145
|
(0, import_app_framework2.defineModule)({
|
|
146
|
-
id: `${
|
|
146
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/schema`,
|
|
147
147
|
activatesOn: import_plugin_client.ClientEvents.SetupSchema,
|
|
148
148
|
activate: () => [
|
|
149
149
|
(0, import_app_framework2.contributes)(import_plugin_client.ClientCapabilities.SystemSchema, [
|
|
@@ -155,12 +155,12 @@ var ScriptPlugin = () => (0, import_app_framework2.definePlugin)(import_chunk_HU
|
|
|
155
155
|
]
|
|
156
156
|
}),
|
|
157
157
|
(0, import_app_framework2.defineModule)({
|
|
158
|
-
id: `${
|
|
158
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/react-surface`,
|
|
159
159
|
activatesOn: import_app_framework2.Events.SetupSurfaces,
|
|
160
160
|
activate: ReactSurface
|
|
161
161
|
}),
|
|
162
162
|
(0, import_app_framework2.defineModule)({
|
|
163
|
-
id: `${
|
|
163
|
+
id: `${import_chunk_5UH3F7TA.meta.id}/module/intent-resolver`,
|
|
164
164
|
activatesOn: import_app_framework2.Events.SetupIntents,
|
|
165
165
|
activate: IntentResolver
|
|
166
166
|
})
|
|
@@ -16,21 +16,21 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
16
16
|
return to;
|
|
17
17
|
};
|
|
18
18
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var
|
|
20
|
-
__export(
|
|
19
|
+
var intent_resolver_XZC3OXVT_exports = {};
|
|
20
|
+
__export(intent_resolver_XZC3OXVT_exports, {
|
|
21
21
|
default: () => intent_resolver_default
|
|
22
22
|
});
|
|
23
|
-
module.exports = __toCommonJS(
|
|
23
|
+
module.exports = __toCommonJS(intent_resolver_XZC3OXVT_exports);
|
|
24
24
|
var import_chunk_TJ4BTPOS = require("./chunk-TJ4BTPOS.cjs");
|
|
25
|
-
var
|
|
26
|
-
var
|
|
25
|
+
var import_chunk_DJGLGRQV = require("./chunk-DJGLGRQV.cjs");
|
|
26
|
+
var import_chunk_5UH3F7TA = require("./chunk-5UH3F7TA.cjs");
|
|
27
27
|
var import_core = require("@octokit/core");
|
|
28
28
|
var import_app_framework = require("@dxos/app-framework");
|
|
29
29
|
var import_functions = require("@dxos/functions");
|
|
30
30
|
var import_live_object = require("@dxos/live-object");
|
|
31
31
|
var import_schema = require("@dxos/schema");
|
|
32
32
|
var intent_resolver_default = () => (0, import_app_framework.contributes)(import_app_framework.Capabilities.IntentResolver, (0, import_app_framework.createResolver)({
|
|
33
|
-
intent:
|
|
33
|
+
intent: import_chunk_DJGLGRQV.ScriptAction.Create,
|
|
34
34
|
resolve: async ({ name, gistUrl }) => {
|
|
35
35
|
let content = import_chunk_TJ4BTPOS.templates[0].source;
|
|
36
36
|
const gistId = gistUrl?.split("/").at(-1);
|
|
@@ -56,4 +56,4 @@ var intent_resolver_default = () => (0, import_app_framework.contributes)(import
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
}));
|
|
59
|
-
//# sourceMappingURL=intent-resolver-
|
|
59
|
+
//# sourceMappingURL=intent-resolver-XZC3OXVT.cjs.map
|