@dxos/plugin-script 0.8.4-main.3fbcb4aa9b → 0.8.4-main.4668b7de9b
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/LICENSE +102 -5
- package/PLUGIN.mdl +515 -0
- package/dist/lib/neutral/{DeploymentDialog-6DBF3V6C.mjs → DeploymentDialog-M3AFYQHC.mjs} +4 -2
- package/dist/lib/neutral/{DeploymentDialog-6DBF3V6C.mjs.map → DeploymentDialog-M3AFYQHC.mjs.map} +3 -3
- package/dist/lib/neutral/{NotebookContainer-FIAQI3A2.mjs → NotebookArticle-NV4AHOOS.mjs} +15 -12
- package/dist/lib/neutral/NotebookArticle-NV4AHOOS.mjs.map +7 -0
- package/dist/lib/neutral/{ScriptContainer-2OPBAXFB.mjs → ScriptArticle-UBT27SB6.mjs} +4 -4
- package/dist/lib/neutral/{ScriptContainer-2OPBAXFB.mjs.map → ScriptArticle-UBT27SB6.mjs.map} +4 -4
- package/dist/lib/neutral/ScriptPlugin.mjs +12 -0
- package/dist/lib/neutral/ScriptPlugin.mjs.map +4 -4
- package/dist/lib/neutral/ScriptPlugin.workerd.mjs +21 -0
- package/dist/lib/neutral/ScriptPlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/{ScriptProperties-F6NE6M4H.mjs → ScriptProperties-RLXNAN3N.mjs} +9 -8
- package/dist/lib/neutral/ScriptProperties-RLXNAN3N.mjs.map +7 -0
- package/dist/lib/neutral/{TestContainer-JNFPLAJX.mjs → TestContainer-AFVTBYSJ.mjs} +5 -5
- package/dist/lib/neutral/TestContainer-AFVTBYSJ.mjs.map +7 -0
- package/dist/lib/neutral/blueprints/index.mjs +3 -3
- package/dist/lib/neutral/capabilities/index.mjs +4 -4
- package/dist/lib/neutral/capabilities/node.mjs +3 -3
- package/dist/lib/neutral/{chunk-D7DFASAE.mjs → chunk-2REUEDUA.mjs} +8 -4
- package/dist/lib/neutral/chunk-2REUEDUA.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-BDRB6ZX2.mjs → chunk-BDHDBPVM.mjs} +2 -2
- package/dist/lib/neutral/{chunk-PDB6UOSB.mjs → chunk-C4O7EV6M.mjs} +11 -13
- package/dist/lib/neutral/chunk-C4O7EV6M.mjs.map +7 -0
- package/dist/lib/neutral/chunk-H2BRWQMY.mjs +96 -0
- package/dist/lib/neutral/chunk-H2BRWQMY.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-B4FVQEHV.mjs → chunk-LHEJXJEL.mjs} +2 -2
- package/dist/lib/neutral/{chunk-B4FVQEHV.mjs.map → chunk-LHEJXJEL.mjs.map} +2 -2
- package/dist/lib/neutral/chunk-NQOIENTU.mjs +8 -0
- package/dist/lib/neutral/{chunk-MI6X5CTJ.mjs → chunk-TRKXIP2Q.mjs} +30 -21
- package/dist/lib/neutral/chunk-TRKXIP2Q.mjs.map +7 -0
- package/dist/lib/neutral/chunk-UA3BWOCZ.mjs +38 -0
- package/dist/lib/neutral/chunk-UA3BWOCZ.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-4RJALG6K.mjs → chunk-VXDJH6OL.mjs} +9 -10
- package/dist/lib/neutral/chunk-VXDJH6OL.mjs.map +7 -0
- package/dist/lib/neutral/{compiler-SMVIP5UN.mjs → compiler-ODK4UA2N.mjs} +2 -2
- package/dist/lib/neutral/components/index.mjs +93 -148
- package/dist/lib/neutral/components/index.mjs.map +4 -4
- package/dist/lib/neutral/containers/index.mjs +7 -7
- package/dist/lib/neutral/containers/index.mjs.map +3 -3
- package/dist/lib/neutral/{create-OZRIZ7RN.mjs → create-WQJXMOUE.mjs} +7 -5
- package/dist/lib/neutral/create-WQJXMOUE.mjs.map +7 -0
- package/dist/lib/neutral/{create-object-F2NWICFV.mjs → create-object-FZM5ASWM.mjs} +4 -3
- package/dist/lib/neutral/create-object-FZM5ASWM.mjs.map +7 -0
- package/dist/lib/neutral/{create-script-VBA3SLSU.mjs → create-script-66DO3UJO.mjs} +3 -3
- package/dist/lib/neutral/{delete-PAUWA2QM.mjs → delete-HCQIQFVP.mjs} +2 -2
- package/dist/lib/neutral/{deploy-CXVW54JJ.mjs → deploy-7JVMMHSH.mjs} +6 -5
- package/dist/lib/neutral/{deploy-CXVW54JJ.mjs.map → deploy-7JVMMHSH.mjs.map} +3 -3
- package/dist/lib/neutral/hooks/index.mjs +2 -2
- package/dist/lib/neutral/index.mjs +7 -7
- package/dist/lib/neutral/{inspect-invocations-LEOEP5I2.mjs → inspect-invocations-6MW73SDV.mjs} +3 -3
- package/dist/lib/neutral/{inspect-invocations-LEOEP5I2.mjs.map → inspect-invocations-6MW73SDV.mjs.map} +3 -3
- package/dist/lib/neutral/{install-function-5N24Q45W.mjs → install-function-FJIE2JAI.mjs} +7 -9
- package/dist/lib/neutral/install-function-FJIE2JAI.mjs.map +7 -0
- package/dist/lib/neutral/{invoke-5QVEZ3X5.mjs → invoke-3HVWY2KF.mjs} +7 -8
- package/dist/lib/neutral/invoke-3HVWY2KF.mjs.map +7 -0
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/meta.mjs +1 -1
- package/dist/lib/neutral/{operation-handler-OTCWYDFI.mjs → operation-handler-X44IGZXS.mjs} +3 -3
- package/dist/lib/neutral/operations/index.mjs +1 -1
- package/dist/lib/neutral/plugin.mjs +2 -2
- package/dist/lib/neutral/{query-deployed-functions-FVD7NYPA.mjs → query-deployed-functions-F4FHJNWO.mjs} +14 -10
- package/dist/lib/neutral/query-deployed-functions-F4FHJNWO.mjs.map +7 -0
- package/dist/lib/neutral/{react-surface-JH2AOK7V.mjs → react-surface-ACNZ35FV.mjs} +17 -13
- package/dist/lib/neutral/react-surface-ACNZ35FV.mjs.map +7 -0
- package/dist/lib/neutral/{read-FFOSK6A3.mjs → read-RQESBAQI.mjs} +2 -2
- package/dist/lib/neutral/templates/index.mjs +1 -1
- package/dist/lib/neutral/translations.mjs +3 -2
- package/dist/lib/neutral/translations.mjs.map +3 -3
- package/dist/lib/neutral/types/index.mjs +2 -2
- package/dist/lib/neutral/{update-PJS5GG3Y.mjs → update-JZUNJYZM.mjs} +3 -3
- package/dist/lib/neutral/{update-PJS5GG3Y.mjs.map → update-JZUNJYZM.mjs.map} +3 -3
- package/dist/types/src/ScriptPlugin.d.ts.map +1 -1
- package/dist/types/src/ScriptPlugin.workerd.d.ts +4 -0
- package/dist/types/src/ScriptPlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/blueprints/functions/create.d.ts.map +1 -1
- package/dist/types/src/blueprints/functions/definitions.d.ts +24 -30
- package/dist/types/src/blueprints/functions/definitions.d.ts.map +1 -1
- package/dist/types/src/blueprints/functions/delete.d.ts +4 -5
- package/dist/types/src/blueprints/functions/deploy.d.ts +4 -5
- package/dist/types/src/blueprints/functions/inspect-invocations.d.ts +4 -5
- package/dist/types/src/blueprints/functions/invoke.d.ts +5 -6
- package/dist/types/src/blueprints/functions/invoke.d.ts.map +1 -1
- package/dist/types/src/blueprints/functions/read.d.ts +4 -5
- package/dist/types/src/blueprints/functions/update.d.ts +4 -5
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
- package/dist/types/src/compiler/compiler.d.ts.map +1 -1
- package/dist/types/src/components/NotebookStack/NotebookStack.d.ts.map +1 -1
- package/dist/types/src/components/QueryEditor/QueryEditor.d.ts.map +1 -1
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts.map +1 -1
- package/dist/types/src/components/TestPanel/TestPanel.d.ts.map +1 -1
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +0 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +2 -1
- package/dist/types/src/constants.d.ts.map +1 -1
- package/dist/types/src/containers/NotebookArticle/NotebookArticle.d.ts +7 -0
- package/dist/types/src/containers/NotebookArticle/NotebookArticle.d.ts.map +1 -0
- package/dist/types/src/containers/NotebookArticle/NotebookArticle.stories.d.ts +7 -0
- package/dist/types/src/containers/NotebookArticle/NotebookArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/NotebookArticle/index.d.ts +2 -0
- package/dist/types/src/containers/{ScriptContainer → NotebookArticle}/index.d.ts.map +1 -1
- package/dist/types/src/containers/{ScriptContainer/ScriptContainer.d.ts → ScriptArticle/ScriptArticle.d.ts} +2 -2
- package/dist/types/src/containers/ScriptArticle/ScriptArticle.d.ts.map +1 -0
- package/dist/types/src/containers/{ScriptContainer/ScriptContainer.stories.d.ts → ScriptArticle/ScriptArticle.stories.d.ts} +1 -1
- package/dist/types/src/containers/ScriptArticle/ScriptArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptArticle/index.d.ts +2 -0
- package/dist/types/src/containers/ScriptArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptProperties/BlueprintEditor.d.ts.map +1 -1
- package/dist/types/src/containers/ScriptProperties/ScriptProperties.stories.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +2 -2
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/hooks/deploy.d.ts +5 -6
- package/dist/types/src/hooks/deploy.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +1 -1
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/index.d.ts.map +1 -1
- package/dist/types/src/templates/chess-bot.d.ts +4 -2
- package/dist/types/src/templates/chess-bot.d.ts.map +1 -1
- package/dist/types/src/templates/commentary.d.ts +6 -4
- package/dist/types/src/templates/commentary.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +0 -5
- package/dist/types/src/templates/index.d.ts.map +1 -1
- package/dist/types/src/testing/test-script.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Notebook.d.ts +28 -47
- package/dist/types/src/types/Notebook.d.ts.map +1 -1
- package/dist/types/src/types/ScriptOperation.d.ts +6 -6
- package/dist/types/src/types/ScriptOperation.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +84 -84
- package/src/ScriptPlugin.tsx +6 -0
- package/src/ScriptPlugin.workerd.ts +18 -0
- package/src/blueprints/functions/create.ts +3 -3
- package/src/blueprints/functions/definitions.ts +20 -11
- package/src/blueprints/functions/deploy.ts +3 -2
- package/src/blueprints/functions/inspect-invocations.ts +1 -1
- package/src/blueprints/functions/install-function.ts +5 -5
- package/src/blueprints/functions/invoke.ts +4 -5
- package/src/blueprints/functions/query-deployed-functions.ts +11 -7
- package/src/blueprints/functions/update.ts +1 -1
- package/src/capabilities/create-object.ts +3 -2
- package/src/capabilities/react-surface.tsx +6 -6
- package/src/compiler/compiler.ts +4 -0
- package/src/components/NotebookStack/NotebookCell.tsx +2 -2
- package/src/components/NotebookStack/NotebookStack.stories.tsx +2 -2
- package/src/components/NotebookStack/NotebookStack.tsx +1 -1
- package/src/components/QueryEditor/QueryEditor.tsx +3 -1
- package/src/components/ScriptToolbar/ScriptToolbar.stories.tsx +3 -3
- package/src/components/ScriptToolbar/ScriptToolbar.tsx +1 -1
- package/src/components/TestPanel/TestPanel.tsx +2 -1
- package/src/components/TypescriptEditor/TypescriptEditor.tsx +1 -1
- package/src/components/index.ts +0 -1
- package/src/constants.ts +3 -1
- package/src/containers/DeploymentDialog/DeploymentDialog.stories.tsx +3 -3
- package/src/containers/DeploymentDialog/DeploymentDialog.tsx +1 -1
- package/src/containers/{NotebookContainer/NotebookContainer.stories.tsx → NotebookArticle/NotebookArticle.stories.tsx} +10 -10
- package/src/containers/{NotebookContainer/NotebookContainer.tsx → NotebookArticle/NotebookArticle.tsx} +10 -9
- package/src/containers/NotebookArticle/index.ts +5 -0
- package/src/containers/{ScriptContainer/ScriptContainer.stories.tsx → ScriptArticle/ScriptArticle.stories.tsx} +6 -5
- package/src/containers/{ScriptContainer/ScriptContainer.tsx → ScriptArticle/ScriptArticle.tsx} +1 -1
- package/src/containers/ScriptArticle/index.ts +5 -0
- package/src/containers/ScriptProperties/BlueprintEditor.tsx +8 -7
- package/src/containers/ScriptProperties/ScriptProperties.stories.tsx +3 -2
- package/src/containers/TestContainer/TestContainer.tsx +4 -4
- package/src/containers/index.ts +2 -2
- package/src/meta.ts +13 -7
- package/src/operations/index.ts +1 -4
- package/src/templates/anthropic.ts +2 -1
- package/src/templates/chess-bot.ts +2 -2
- package/src/templates/commentary.ts +19 -17
- package/src/templates/data-generator.ts +1 -1
- package/src/templates/discord.ts +5 -5
- package/src/templates/forex-effect.ts +2 -1
- package/src/templates/forex.ts +2 -1
- package/src/templates/gmail.ts +5 -5
- package/src/templates/index.ts +0 -7
- package/src/templates/ping.ts +2 -1
- package/src/testing/test-notebook.ts +2 -2
- package/src/testing/test-script.ts +1 -2
- package/src/translations.ts +3 -2
- package/src/types/Notebook.ts +5 -11
- package/src/types/ScriptOperation.ts +4 -4
- package/src/util/deploy.ts +1 -1
- package/src/util/functions.ts +4 -4
- package/src/vite-env.d.ts +5 -0
- package/dist/lib/neutral/NotebookContainer-FIAQI3A2.mjs.map +0 -7
- package/dist/lib/neutral/ScriptProperties-F6NE6M4H.mjs.map +0 -7
- package/dist/lib/neutral/TestContainer-JNFPLAJX.mjs.map +0 -7
- package/dist/lib/neutral/access-token-created-ENMCEGVU.mjs +0 -34
- package/dist/lib/neutral/access-token-created-ENMCEGVU.mjs.map +0 -7
- package/dist/lib/neutral/chunk-2DMPFVUM.mjs +0 -8
- package/dist/lib/neutral/chunk-4RJALG6K.mjs.map +0 -7
- package/dist/lib/neutral/chunk-BUKQITZT.mjs +0 -105
- package/dist/lib/neutral/chunk-BUKQITZT.mjs.map +0 -7
- package/dist/lib/neutral/chunk-D7DFASAE.mjs.map +0 -7
- package/dist/lib/neutral/chunk-MI6X5CTJ.mjs.map +0 -7
- package/dist/lib/neutral/chunk-P2F3STZN.mjs +0 -8
- package/dist/lib/neutral/chunk-P2F3STZN.mjs.map +0 -7
- package/dist/lib/neutral/chunk-PDB6UOSB.mjs.map +0 -7
- package/dist/lib/neutral/chunk-UYR3YH4Q.mjs +0 -31
- package/dist/lib/neutral/chunk-UYR3YH4Q.mjs.map +0 -7
- package/dist/lib/neutral/create-OZRIZ7RN.mjs.map +0 -7
- package/dist/lib/neutral/create-object-F2NWICFV.mjs.map +0 -7
- package/dist/lib/neutral/install-function-5N24Q45W.mjs.map +0 -7
- package/dist/lib/neutral/invoke-5QVEZ3X5.mjs.map +0 -7
- package/dist/lib/neutral/query-deployed-functions-FVD7NYPA.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-JH2AOK7V.mjs.map +0 -7
- package/dist/types/src/capabilities/artifact-definition.d.ts +0 -12
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +0 -1
- package/dist/types/src/components/FramePanel/FramePanel.d.ts +0 -12
- package/dist/types/src/components/FramePanel/FramePanel.d.ts.map +0 -1
- package/dist/types/src/components/FramePanel/index.d.ts +0 -2
- package/dist/types/src/components/FramePanel/index.d.ts.map +0 -1
- package/dist/types/src/containers/NotebookContainer/NotebookContainer.d.ts +0 -7
- package/dist/types/src/containers/NotebookContainer/NotebookContainer.d.ts.map +0 -1
- package/dist/types/src/containers/NotebookContainer/NotebookContainer.stories.d.ts +0 -7
- package/dist/types/src/containers/NotebookContainer/NotebookContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/NotebookContainer/index.d.ts +0 -2
- package/dist/types/src/containers/NotebookContainer/index.d.ts.map +0 -1
- package/dist/types/src/containers/ScriptContainer/ScriptContainer.d.ts.map +0 -1
- package/dist/types/src/containers/ScriptContainer/ScriptContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/ScriptContainer/index.d.ts +0 -2
- package/dist/types/src/operations/access-token-created.d.ts +0 -5
- package/dist/types/src/operations/access-token-created.d.ts.map +0 -1
- package/dist/types/src/templates/chat.d.ts +0 -6
- package/dist/types/src/templates/chat.d.ts.map +0 -1
- package/src/capabilities/artifact-definition.ts +0 -226
- package/src/components/FramePanel/FramePanel.tsx +0 -85
- package/src/components/FramePanel/index.ts +0 -5
- package/src/containers/NotebookContainer/index.ts +0 -5
- package/src/containers/ScriptContainer/index.ts +0 -5
- package/src/operations/access-token-created.ts +0 -37
- package/src/templates/chat.ts +0 -96
- /package/dist/lib/neutral/{chunk-BDRB6ZX2.mjs.map → chunk-BDHDBPVM.mjs.map} +0 -0
- /package/dist/lib/neutral/{chunk-2DMPFVUM.mjs.map → chunk-NQOIENTU.mjs.map} +0 -0
- /package/dist/lib/neutral/{compiler-SMVIP5UN.mjs.map → compiler-ODK4UA2N.mjs.map} +0 -0
- /package/dist/lib/neutral/{create-script-VBA3SLSU.mjs.map → create-script-66DO3UJO.mjs.map} +0 -0
- /package/dist/lib/neutral/{delete-PAUWA2QM.mjs.map → delete-HCQIQFVP.mjs.map} +0 -0
- /package/dist/lib/neutral/{operation-handler-OTCWYDFI.mjs.map → operation-handler-X44IGZXS.mjs.map} +0 -0
- /package/dist/lib/neutral/{read-FFOSK6A3.mjs.map → read-RQESBAQI.mjs.map} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as Schema from "effect/Schema";
|
|
3
3
|
import { ClientService } from "@dxos/client";
|
|
4
4
|
import { Operation } from "@dxos/compute";
|
|
5
|
-
import { Database, Feed, Ref } from "@dxos/echo";
|
|
5
|
+
import { Database, Feed, Ref, DXN } from "@dxos/echo";
|
|
6
6
|
import { trim } from "@dxos/util";
|
|
7
7
|
var FunctionRef = Ref.Ref(Operation.PersistentOperation).annotations({
|
|
8
8
|
description: "The ID of the function."
|
|
@@ -21,7 +21,7 @@ var FUNCTION_FORMAT = trim`
|
|
|
21
21
|
|
|
22
22
|
const MyFunction = Operation.make({
|
|
23
23
|
meta: {
|
|
24
|
-
key: 'org.dxos.script.
|
|
24
|
+
key: DXN.make('org.dxos.script.myFunction'),
|
|
25
25
|
name: 'My Function',
|
|
26
26
|
},
|
|
27
27
|
input: Schema.Struct({
|
|
@@ -87,9 +87,10 @@ var AVAILABLE_PACKAGES = trim`
|
|
|
87
87
|
`;
|
|
88
88
|
var Create = Operation.make({
|
|
89
89
|
meta: {
|
|
90
|
-
key: "org.dxos.function.script.create",
|
|
90
|
+
key: DXN.make("org.dxos.function.script.create"),
|
|
91
91
|
name: "Create",
|
|
92
|
-
description: `Creates a new function with TypeScript source code and adds it to the space. ${FUNCTION_FORMAT} ${AVAILABLE_PACKAGES}
|
|
92
|
+
description: `Creates a new function with TypeScript source code and adds it to the space. ${FUNCTION_FORMAT} ${AVAILABLE_PACKAGES}`,
|
|
93
|
+
icon: "ph--code--regular"
|
|
93
94
|
},
|
|
94
95
|
input: Schema.Struct({
|
|
95
96
|
name: Schema.String.annotations({
|
|
@@ -111,9 +112,10 @@ var Create = Operation.make({
|
|
|
111
112
|
});
|
|
112
113
|
var Read = Operation.make({
|
|
113
114
|
meta: {
|
|
114
|
-
key: "org.dxos.function.script.read",
|
|
115
|
+
key: DXN.make("org.dxos.function.script.read"),
|
|
115
116
|
name: "Read",
|
|
116
|
-
description: "Reads the source code and metadata of a function."
|
|
117
|
+
description: "Reads the source code and metadata of a function.",
|
|
118
|
+
icon: "ph--file-text--regular"
|
|
117
119
|
},
|
|
118
120
|
input: Schema.Struct({
|
|
119
121
|
function: FunctionRef
|
|
@@ -140,9 +142,10 @@ var Edit = Schema.Struct({
|
|
|
140
142
|
});
|
|
141
143
|
var Update = Operation.make({
|
|
142
144
|
meta: {
|
|
143
|
-
key: "org.dxos.function.script.update",
|
|
145
|
+
key: DXN.make("org.dxos.function.script.update"),
|
|
144
146
|
name: "Update",
|
|
145
|
-
description: `Updates the source code or metadata of a function. ${FUNCTION_FORMAT}
|
|
147
|
+
description: `Updates the source code or metadata of a function. ${FUNCTION_FORMAT}`,
|
|
148
|
+
icon: "ph--pencil--regular"
|
|
146
149
|
},
|
|
147
150
|
input: Schema.Struct({
|
|
148
151
|
function: FunctionRef,
|
|
@@ -165,9 +168,10 @@ var Update = Operation.make({
|
|
|
165
168
|
});
|
|
166
169
|
var Delete = Operation.make({
|
|
167
170
|
meta: {
|
|
168
|
-
key: "org.dxos.function.script.delete",
|
|
171
|
+
key: DXN.make("org.dxos.function.script.delete"),
|
|
169
172
|
name: "Delete",
|
|
170
|
-
description: "Deletes a function and its source from the space."
|
|
173
|
+
description: "Deletes a function and its source from the space.",
|
|
174
|
+
icon: "ph--trash--regular"
|
|
171
175
|
},
|
|
172
176
|
input: Schema.Struct({
|
|
173
177
|
function: FunctionRef
|
|
@@ -179,9 +183,10 @@ var Delete = Operation.make({
|
|
|
179
183
|
});
|
|
180
184
|
var Deploy = Operation.make({
|
|
181
185
|
meta: {
|
|
182
|
-
key: "org.dxos.function.script.deploy",
|
|
186
|
+
key: DXN.make("org.dxos.function.script.deploy"),
|
|
183
187
|
name: "Deploy",
|
|
184
|
-
description: `Deploys a function to the Edge runtime. The function source must follow the required format: a single export default of Operation.pipe(Operation.withHandler(Effect.fn(function* (...) { ... }))). See the Create operation description for a full example
|
|
188
|
+
description: `Deploys a function to the Edge runtime. The function source must follow the required format: a single export default of Operation.pipe(Operation.withHandler(Effect.fn(function* (...) { ... }))). See the Create operation description for a full example.`,
|
|
189
|
+
icon: "ph--rocket-launch--regular"
|
|
185
190
|
},
|
|
186
191
|
input: Schema.Struct({
|
|
187
192
|
function: FunctionRef
|
|
@@ -199,9 +204,10 @@ var Deploy = Operation.make({
|
|
|
199
204
|
});
|
|
200
205
|
var Invoke = Operation.make({
|
|
201
206
|
meta: {
|
|
202
|
-
key: "org.dxos.function.script.invoke",
|
|
207
|
+
key: DXN.make("org.dxos.function.script.invoke"),
|
|
203
208
|
name: "Invoke",
|
|
204
|
-
description: "Invokes a deployed Edge function with the given payload."
|
|
209
|
+
description: "Invokes a deployed Edge function with the given payload.",
|
|
210
|
+
icon: "ph--play--regular"
|
|
205
211
|
},
|
|
206
212
|
input: Schema.Struct({
|
|
207
213
|
function: FunctionRef,
|
|
@@ -241,9 +247,10 @@ var InvocationSpanSchema = Schema.Struct({
|
|
|
241
247
|
});
|
|
242
248
|
var InspectInvocations = Operation.make({
|
|
243
249
|
meta: {
|
|
244
|
-
key: "org.dxos.function.script.
|
|
250
|
+
key: DXN.make("org.dxos.function.script.inspectInvocations"),
|
|
245
251
|
name: "InspectInvocations",
|
|
246
|
-
description: "Queries the invocation trace feed for a function, returning its invocation history."
|
|
252
|
+
description: "Queries the invocation trace feed for a function, returning its invocation history.",
|
|
253
|
+
icon: "ph--magnifying-glass--regular"
|
|
247
254
|
},
|
|
248
255
|
input: Schema.Struct({
|
|
249
256
|
function: FunctionRef,
|
|
@@ -283,9 +290,10 @@ var DeployedFunctionSchema = Schema.Struct({
|
|
|
283
290
|
});
|
|
284
291
|
var QueryDeployedFunctions = Operation.make({
|
|
285
292
|
meta: {
|
|
286
|
-
key: "org.dxos.function.script.
|
|
293
|
+
key: DXN.make("org.dxos.function.script.queryDeployed"),
|
|
287
294
|
name: "QueryDeployedFunctions",
|
|
288
|
-
description: "Lists all functions deployed to the EDGE runtime. Use InstallFunction to add one to the space."
|
|
295
|
+
description: "Lists all functions deployed to the EDGE runtime. Use InstallFunction to add one to the space.",
|
|
296
|
+
icon: "ph--list--regular"
|
|
289
297
|
},
|
|
290
298
|
input: Schema.Void,
|
|
291
299
|
output: Schema.Struct({
|
|
@@ -299,9 +307,10 @@ var QueryDeployedFunctions = Operation.make({
|
|
|
299
307
|
});
|
|
300
308
|
var InstallFunction = Operation.make({
|
|
301
309
|
meta: {
|
|
302
|
-
key: "org.dxos.function.script.install",
|
|
310
|
+
key: DXN.make("org.dxos.function.script.install"),
|
|
303
311
|
name: "InstallFunction",
|
|
304
|
-
description: "Installs a deployed EDGE function into the current space by key. The returned function ID can be passed directly to Invoke."
|
|
312
|
+
description: "Installs a deployed EDGE function into the current space by key. The returned function ID can be passed directly to Invoke.",
|
|
313
|
+
icon: "ph--download--regular"
|
|
305
314
|
},
|
|
306
315
|
input: Schema.Struct({
|
|
307
316
|
key: Schema.String.annotations({
|
|
@@ -333,4 +342,4 @@ export {
|
|
|
333
342
|
QueryDeployedFunctions,
|
|
334
343
|
InstallFunction
|
|
335
344
|
};
|
|
336
|
-
//# sourceMappingURL=chunk-
|
|
345
|
+
//# sourceMappingURL=chunk-TRKXIP2Q.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/functions/definitions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\n\nimport { ClientService } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\nimport { Database, Feed, Ref, DXN } from '@dxos/echo';\nimport { trim } from '@dxos/util';\n\nconst FunctionRef = Ref.Ref(Operation.PersistentOperation).annotations({\n description: 'The ID of the function.',\n});\n\nconst FunctionId = Schema.String.annotations({\n description: 'The ID of the function. Can be passed as the function parameter to other operations.',\n});\n\nconst FUNCTION_FORMAT = trim`\n IMPORTANT: Every function MUST follow this exact pattern — define an Operation, then export default the handler:\n\n \\`\\`\\`typescript\n import * as Effect from 'effect/Effect';\n import * as Schema from 'effect/Schema';\n\n import { Operation } from '@dxos/compute';\n\n const MyFunction = Operation.make({\n meta: {\n key: DXN.make('org.dxos.script.myFunction'),\n name: 'My Function',\n },\n input: Schema.Struct({\n city: Schema.String.annotations({ description: 'City name' }),\n }),\n output: Schema.Any,\n });\n\n export default MyFunction.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ city }) {\n const res = yield* Effect.promise(() =>\n fetch(\\`https://wttr.in/\\${city}?format=j1\\`)\n );\n const data = yield* Effect.promise(() => res.json());\n return data;\n }),\n ),\n );\n \\`\\`\\`\n\n Key rules:\n - The file MUST have a single \\`export default\\` of Operation.pipe(Operation.withHandler(...)).\n - Use \\`Effect.fn(function* (...) { ... })\\` for the handler body.\n - Wrap async calls with \\`yield* Effect.promise(() => ...)\\`.\n - Do NOT use top-level await; do NOT export named functions; do NOT use module.exports.\n`;\n\nconst AVAILABLE_PACKAGES = trim`\n Scripts run in an Edge runtime (Cloudflare Workers) with the following pre-bundled packages:\n\n DXOS SDK:\n - \\`@dxos/echo\\` — Reactive local-first database: query, filter, and mutate ECHO objects in spaces.\n - \\`@dxos/functions\\` — Edge function framework: triggers, queues, and function definitions.\n - \\`@dxos/ai\\` — AI/LLM integration via AiService (access models like Claude, GPT).\n - \\`@dxos/schema\\` — Schema utilities and built-in DXOS types.\n - \\`@dxos/types\\` — DXOS type definitions.\n - \\`@dxos/operation\\` — Define and handle typed operations with input/output schemas.\n - \\`@dxos/util\\` — General utility functions.\n - \\`@dxos/log\\` — Structured logging.\n\n Effect-TS (functional programming toolkit):\n - \\`effect\\` — Core effect system with sub-modules: Effect, Schema, Stream, Schedule, Array, Record, Option, Either, Match, etc.\n - \\`@effect/platform\\` — HTTP client (\\`HttpClient\\`), platform abstractions for making typed API requests.\n\n Data format parsing & querying:\n - \\`jsonata\\` — Powerful query and transformation expressions for JSON data (filter, sort, group, aggregate, reshape).\n - \\`yaml\\` — Parse and stringify YAML documents.\n - \\`fast-xml-parser\\` — Fast XML parser and builder; convert between XML and JSON.\n - \\`papaparse\\` — CSV parsing and serialization; stream large files, auto-detect delimiters.\n\n Text & markup processing:\n - \\`turndown\\` — HTML to Markdown converter (useful for feeding web content to LLMs).\n\n HTML/DOM parsing:\n - \\`linkedom\\` — Lightweight DOM parser for worker environments; parse and query HTML documents.\n\n Data processing & utilities:\n - \\`date-fns\\` — Comprehensive date utility library: parsing, formatting, comparison, arithmetic, time zones.\n\n Other:\n - \\`@automerge/automerge\\` — CRDT library for conflict-free collaborative data structures.\n - \\`chess.js\\` — Chess game logic, move generation, and validation.\n`;\n\nexport const Create = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.create'),\n name: 'Create',\n description: `Creates a new function with TypeScript source code and adds it to the space. ${FUNCTION_FORMAT} ${AVAILABLE_PACKAGES}`,\n icon: 'ph--code--regular',\n },\n input: Schema.Struct({\n name: Schema.String.annotations({\n description: 'Name of the function.',\n }),\n source: Schema.optional(Schema.String).annotations({\n description: 'TypeScript source code for the function.',\n }),\n templateId: Schema.optional(Schema.String).annotations({\n description: 'ID of a template to use as the initial source.',\n }),\n }),\n output: Schema.Struct({\n function: FunctionId,\n }),\n services: [Database.Service],\n});\n\nexport const Read = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.read'),\n name: 'Read',\n description: 'Reads the source code and metadata of a function.',\n icon: 'ph--file-text--regular',\n },\n input: Schema.Struct({\n function: FunctionRef,\n }),\n output: Schema.Struct({\n name: Schema.optional(Schema.String),\n source: Schema.String,\n description: Schema.optional(Schema.String),\n }),\n services: [Database.Service],\n});\n\nconst Edit = Schema.Struct({\n oldString: Schema.String.annotations({\n description: 'The text to find in the source.',\n }),\n newString: Schema.String.annotations({\n description: 'The text to replace it with.',\n }),\n replaceAll: Schema.optional(Schema.Boolean).annotations({\n description: 'If true, replaces all occurrences. Defaults to false (first occurrence only).',\n }),\n});\n\nexport const Update = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.update'),\n name: 'Update',\n description: `Updates the source code or metadata of a function. ${FUNCTION_FORMAT}`,\n icon: 'ph--pencil--regular',\n },\n input: Schema.Struct({\n function: FunctionRef,\n name: Schema.optional(Schema.String).annotations({\n description: 'New name for the function.',\n }),\n description: Schema.optional(Schema.String).annotations({\n description: 'New description for the function.',\n }),\n edits: Schema.optional(Schema.Array(Edit)).annotations({\n description: 'Edits to apply to the source. Each edit finds oldString and replaces it with newString.',\n }),\n }),\n output: Schema.Struct({\n function: FunctionId,\n }),\n services: [Database.Service],\n});\n\nexport const Delete = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.delete'),\n name: 'Delete',\n description: 'Deletes a function and its source from the space.',\n icon: 'ph--trash--regular',\n },\n input: Schema.Struct({\n function: FunctionRef,\n }),\n output: Schema.Void,\n services: [Database.Service],\n});\n\nexport const Deploy = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.deploy'),\n name: 'Deploy',\n description: `Deploys a function to the Edge runtime. The function source must follow the required format: a single export default of Operation.pipe(Operation.withHandler(Effect.fn(function* (...) { ... }))). See the Create operation description for a full example.`,\n icon: 'ph--rocket-launch--regular',\n },\n input: Schema.Struct({\n function: FunctionRef,\n }),\n output: Schema.Struct({\n function: FunctionId,\n functionUrl: Schema.optional(Schema.String).annotations({\n description: 'The URL of the deployed function.',\n }),\n }),\n services: [Database.Service, ClientService],\n});\n\nexport const Invoke = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.invoke'),\n name: 'Invoke',\n description: 'Invokes a deployed Edge function with the given payload.',\n icon: 'ph--play--regular',\n },\n input: Schema.Struct({\n function: FunctionRef,\n payload: Schema.optional(Schema.Unknown).annotations({\n description: 'The input payload to pass to the function.',\n }),\n }),\n output: Schema.Struct({\n response: Schema.Unknown.annotations({\n description: 'The response from the function.',\n }),\n }),\n services: [Database.Service, ClientService],\n});\n\nconst InvocationSpanSchema = Schema.Struct({\n id: Schema.String.annotations({\n description: 'The invocation ID.',\n }),\n timestamp: Schema.Number.annotations({\n description: 'Start time of the invocation (epoch ms).',\n }),\n duration: Schema.Number.annotations({\n description: 'Duration in milliseconds.',\n }),\n outcome: Schema.String.annotations({\n description: 'Invocation outcome: success, failure, or pending.',\n }),\n input: Schema.Object.annotations({\n description: 'The input payload passed to the function.',\n }),\n error: Schema.optional(Schema.Object).annotations({\n description: 'Error details if the invocation failed.',\n }),\n});\n\nexport const InspectInvocations = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.inspectInvocations'),\n name: 'InspectInvocations',\n description: 'Queries the invocation trace feed for a function, returning its invocation history.',\n icon: 'ph--magnifying-glass--regular',\n },\n input: Schema.Struct({\n function: FunctionRef,\n limit: Schema.optional(Schema.Number).annotations({\n description: 'Maximum number of invocations to return. Defaults to 20.',\n }),\n }),\n output: Schema.Struct({\n invocations: Schema.Array(InvocationSpanSchema).annotations({\n description: 'List of invocation spans, most recent first.',\n }),\n total: Schema.Number.annotations({\n description: 'Total number of invocations found.',\n }),\n }),\n services: [Database.Service, Feed.FeedService],\n});\n\nconst DeployedFunctionSchema = Schema.Struct({\n key: Schema.optional(Schema.String).annotations({\n description: 'Unique key identifying the function. Pass to InstallFunction to install it.',\n }),\n name: Schema.String.annotations({\n description: 'Display name of the function.',\n }),\n version: Schema.String.annotations({\n description: 'Semantic version of the deployed function.',\n }),\n description: Schema.optional(Schema.String).annotations({\n description: 'Description of what the function does.',\n }),\n updated: Schema.optional(Schema.String).annotations({\n description: 'ISO timestamp of the last deployment.',\n }),\n});\n\nexport const QueryDeployedFunctions = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.queryDeployed'),\n name: 'QueryDeployedFunctions',\n description: 'Lists all functions deployed to the EDGE runtime. Use InstallFunction to add one to the space.',\n icon: 'ph--list--regular',\n },\n input: Schema.Void,\n output: Schema.Struct({\n functions: Schema.Array(DeployedFunctionSchema).annotations({\n description: 'List of deployed functions.',\n }),\n }),\n services: [ClientService],\n});\n\nexport const InstallFunction = Operation.make({\n meta: {\n key: DXN.make('org.dxos.function.script.install'),\n name: 'InstallFunction',\n description:\n 'Installs a deployed EDGE function into the current space by key. The returned function ID can be passed directly to Invoke.',\n icon: 'ph--download--regular',\n },\n input: Schema.Struct({\n key: Schema.String.annotations({\n description: 'The unique key of the deployed function to install (from QueryDeployedFunctions).',\n }),\n }),\n output: Schema.Struct({\n function: FunctionId,\n name: Schema.String.annotations({\n description: 'Name of the installed function.',\n }),\n version: Schema.String.annotations({\n description: 'Version of the installed function.',\n }),\n }),\n services: [ClientService],\n});\n"],
|
|
5
|
+
"mappings": ";AAIA,YAAYA,YAAY;AAExB,SAASC,qBAAqB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,UAAUC,MAAMC,KAAKC,WAAW;AACzC,SAASC,YAAY;AAErB,IAAMC,cAAcH,IAAIA,IAAIH,UAAUO,mBAAmB,EAAEC,YAAY;EACrEC,aAAa;AACf,CAAA;AAEA,IAAMC,aAAoBC,cAAOH,YAAY;EAC3CC,aAAa;AACf,CAAA;AAEA,IAAMG,kBAAkBP;;;;;;;;;;;;;;;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gBAAgBZ,aAAM,EAAEH,YAAY;IAClDC,aAAa;EACf,CAAA;AACF,CAAA;AAEO,IAAMqD,yBAAyB9D,UAAUe,KAAK;EACnDC,MAAM;IACJC,KAAKb,IAAIW,KAAK,wCAAA;IACdG,MAAM;IACNT,aAAa;IACbU,MAAM;EACR;EACAC,OAAcmB;EACdd,QAAeJ,cAAO;IACpB0C,WAAkB1B,aAAMsB,sBAAAA,EAAwBnD,YAAY;MAC1DC,aAAa;IACf,CAAA;EACF,CAAA;EACAkB,UAAU;IAAC5B;;AACb,CAAA;AAEO,IAAMiE,kBAAkBhE,UAAUe,KAAK;EAC5CC,MAAM;IACJC,KAAKb,IAAIW,KAAK,kCAAA;IACdG,MAAM;IACNT,aACE;IACFU,MAAM;EACR;EACAC,OAAcC,cAAO;IACnBJ,KAAYN,cAAOH,YAAY;MAC7BC,aAAa;IACf,CAAA;EACF,CAAA;EACAgB,QAAeJ,cAAO;IACpBK,UAAUhB;IACVQ,MAAaP,cAAOH,YAAY;MAC9BC,aAAa;IACf,CAAA;IACAmD,SAAgBjD,cAAOH,YAAY;MACjCC,aAAa;IACf,CAAA;EACF,CAAA;EACAkB,UAAU;IAAC5B;;AACb,CAAA;",
|
|
6
|
+
"names": ["Schema", "ClientService", "Operation", "Database", "Feed", "Ref", "DXN", "trim", "FunctionRef", "PersistentOperation", "annotations", "description", "FunctionId", "String", "FUNCTION_FORMAT", "AVAILABLE_PACKAGES", "Create", "make", "meta", "key", "name", "icon", "input", "Struct", "source", "optional", "templateId", "output", "function", "services", "Service", "Read", "Edit", "oldString", "newString", "replaceAll", "Boolean", "Update", "edits", "Array", "Delete", "Void", "Deploy", "functionUrl", "Invoke", "payload", "Unknown", "response", "InvocationSpanSchema", "id", "timestamp", "Number", "duration", "outcome", "Object", "error", "InspectInvocations", "limit", "invocations", "total", "FeedService", "DeployedFunctionSchema", "version", "updated", "QueryDeployedFunctions", "functions", "InstallFunction"]
|
|
7
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// src/meta.ts
|
|
2
|
+
import { Plugin } from "@dxos/app-framework";
|
|
3
|
+
import { DXN } from "@dxos/keys";
|
|
4
|
+
import { trim } from "@dxos/util";
|
|
5
|
+
var meta = Plugin.makeMeta({
|
|
6
|
+
key: DXN.make("org.dxos.plugin.script"),
|
|
7
|
+
name: "Scripts",
|
|
8
|
+
author: "DXOS",
|
|
9
|
+
spec: "PLUGIN.mdl",
|
|
10
|
+
description: trim`
|
|
11
|
+
Write, deploy, and run custom TypeScript functions as ECHO objects directly inside your Composer spaces.
|
|
12
|
+
Scripts execute on the Cloudflare Workers-based EDGE runtime and have access to the full DXOS SDK,
|
|
13
|
+
Effect-TS, and a curated set of third-party libraries including HTTP, JSON, CSV, and date utilities.
|
|
14
|
+
An AI Script assistant wires CRUD, deploy, invoke, and invocation-inspection operations as tools
|
|
15
|
+
so an agent can scaffold, iterate, and test functions entirely within a chat session.
|
|
16
|
+
`,
|
|
17
|
+
icon: "ph--code--regular",
|
|
18
|
+
iconHue: "sky",
|
|
19
|
+
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-explorer",
|
|
20
|
+
tags: [
|
|
21
|
+
"labs"
|
|
22
|
+
],
|
|
23
|
+
screenshots: [
|
|
24
|
+
"https://dxos.network/plugin-details-scripts-dark.png"
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
var defaultScriptsForIntegration = {
|
|
28
|
+
// TODO(wittjosiah): Also include content extraction scripts in the default set.
|
|
29
|
+
"gmail.com": [
|
|
30
|
+
DXN.make("org.dxos.script.gmail")
|
|
31
|
+
]
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
export {
|
|
35
|
+
meta,
|
|
36
|
+
defaultScriptsForIntegration
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=chunk-UA3BWOCZ.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/meta.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Plugin } from '@dxos/app-framework';\nimport { DXN } from '@dxos/keys';\nimport { trim } from '@dxos/util';\n\nexport const meta = Plugin.makeMeta({\n key: DXN.make('org.dxos.plugin.script'),\n name: 'Scripts',\n author: 'DXOS',\n spec: 'PLUGIN.mdl',\n description: trim`\n Write, deploy, and run custom TypeScript functions as ECHO objects directly inside your Composer spaces.\n Scripts execute on the Cloudflare Workers-based EDGE runtime and have access to the full DXOS SDK,\n Effect-TS, and a curated set of third-party libraries including HTTP, JSON, CSV, and date utilities.\n An AI Script assistant wires CRUD, deploy, invoke, and invocation-inspection operations as tools\n so an agent can scaffold, iterate, and test functions entirely within a chat session.\n `,\n icon: 'ph--code--regular',\n iconHue: 'sky',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-explorer',\n tags: ['labs'],\n screenshots: ['https://dxos.network/plugin-details-scripts-dark.png'],\n});\n\n// TODO(ZaymonFC): Configure by scopes?\nexport const defaultScriptsForIntegration: Record<string, string[]> = {\n // TODO(wittjosiah): Also include content extraction scripts in the default set.\n 'gmail.com': [DXN.make('org.dxos.script.gmail')],\n};\n"],
|
|
5
|
+
"mappings": ";AAIA,SAASA,cAAc;AACvB,SAASC,WAAW;AACpB,SAASC,YAAY;AAEd,IAAMC,OAAOH,OAAOI,SAAS;EAClCC,KAAKJ,IAAIK,KAAK,wBAAA;EACdC,MAAM;EACNC,QAAQ;EACRC,MAAM;EACNC,aAAaR;;;;;;;EAObS,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB,CAAA;AAGO,IAAMC,+BAAyD;;EAEpE,aAAa;IAACf,IAAIK,KAAK,uBAAA;;AACzB;",
|
|
6
|
+
"names": ["Plugin", "DXN", "trim", "meta", "makeMeta", "key", "make", "name", "author", "spec", "description", "icon", "iconHue", "source", "tags", "screenshots", "defaultScriptsForIntegration"]
|
|
7
|
+
}
|
|
@@ -31,7 +31,7 @@ var deployScript = async ({ script, client, space, fn, existingFunctionId }) =>
|
|
|
31
31
|
const newFunction = await functionsServiceClient.deploy(Context.default(void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 34 }), {
|
|
32
32
|
// TODO(dmaretskyi): Space key or identity key.
|
|
33
33
|
ownerPublicKey: space.key,
|
|
34
|
-
version: fn ? incrementSemverPatch(fn.version) : "0.0.1",
|
|
34
|
+
version: fn ? incrementSemverPatch(Obj.getMeta(fn).version ?? "0.0.0") : "0.0.1",
|
|
35
35
|
functionId: existingFunctionId,
|
|
36
36
|
entryPoint: buildResult.entryPoint,
|
|
37
37
|
assets: buildResult.assets,
|
|
@@ -76,16 +76,15 @@ import { Obj as Obj2 } from "@dxos/echo";
|
|
|
76
76
|
import { getUserFunctionIdInMetadata as getUserFunctionIdInMetadata2 } from "@dxos/functions";
|
|
77
77
|
import { getInvocationUrl } from "@dxos/functions-runtime";
|
|
78
78
|
import { log as log2 } from "@dxos/log";
|
|
79
|
-
import { getSpace } from "@dxos/react-client/echo";
|
|
80
79
|
var __dxlog_file2 = "/__w/dxos/dxos/packages/plugins/plugin-script/src/util/functions.ts";
|
|
81
80
|
var getFunctionUrl = ({ script, fn, edgeUrl }) => {
|
|
82
|
-
const
|
|
81
|
+
const spaceId = Obj2.getDatabase(script)?.spaceId;
|
|
83
82
|
const existingFunctionId = fn && getUserFunctionIdInMetadata2(Obj2.getMeta(fn));
|
|
84
83
|
if (!existingFunctionId) {
|
|
85
84
|
return void 0;
|
|
86
85
|
}
|
|
87
86
|
return getInvocationUrl(existingFunctionId, edgeUrl, {
|
|
88
|
-
spaceId
|
|
87
|
+
spaceId
|
|
89
88
|
});
|
|
90
89
|
};
|
|
91
90
|
var updateFunctionMetadata = (script, storedFunction, meta, functionId) => {
|
|
@@ -97,28 +96,28 @@ var updateFunctionMetadata = (script, storedFunction, meta, functionId) => {
|
|
|
97
96
|
} else {
|
|
98
97
|
log2.verbose("no description in function metadata", {
|
|
99
98
|
functionId
|
|
100
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L:
|
|
99
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 27, S: void 0 });
|
|
101
100
|
}
|
|
102
101
|
if (meta.inputSchema) {
|
|
103
102
|
storedFunction2.inputSchema = meta.inputSchema;
|
|
104
103
|
} else {
|
|
105
104
|
log2.verbose("no input schema in function metadata", {
|
|
106
105
|
functionId
|
|
107
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L:
|
|
106
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 34, S: void 0 });
|
|
108
107
|
}
|
|
109
108
|
if (meta.outputSchema) {
|
|
110
109
|
storedFunction2.outputSchema = meta.outputSchema;
|
|
111
110
|
} else {
|
|
112
111
|
log2.verbose("no output schema in function metadata", {
|
|
113
112
|
functionId
|
|
114
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L:
|
|
113
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 41, S: void 0 });
|
|
115
114
|
}
|
|
116
115
|
if (meta.key) {
|
|
117
|
-
storedFunction2.key = meta.key;
|
|
116
|
+
Obj2.getMeta(storedFunction2).key = meta.key;
|
|
118
117
|
} else {
|
|
119
118
|
log2.verbose("no key in function metadata", {
|
|
120
119
|
functionId
|
|
121
|
-
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L:
|
|
120
|
+
}, { "~LogMeta": "~LogMeta", F: __dxlog_file2, L: 48, S: void 0 });
|
|
122
121
|
}
|
|
123
122
|
});
|
|
124
123
|
};
|
|
@@ -148,4 +147,4 @@ export {
|
|
|
148
147
|
updateFunctionMetadata,
|
|
149
148
|
getAccessCredential
|
|
150
149
|
};
|
|
151
|
-
//# sourceMappingURL=chunk-
|
|
150
|
+
//# sourceMappingURL=chunk-VXDJH6OL.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/util/deploy.ts", "../../../src/util/functions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Client } from '@dxos/client';\nimport { Script, Operation } from '@dxos/compute';\nimport { Context } from '@dxos/context';\nimport { Obj, Ref } from '@dxos/echo';\nimport { getUserFunctionIdInMetadata } from '@dxos/functions';\nimport { bundleFunction } from '@dxos/functions-runtime/bundler';\nimport { FunctionsServiceClient, incrementSemverPatch } from '@dxos/functions-runtime/edge';\nimport { log } from '@dxos/log';\nimport { FunctionRuntimeKind } from '@dxos/protocols';\nimport { type Space } from '@dxos/react-client/echo';\n\nexport const isScriptDeployed = ({ script, fn }: { script: Script.Script; fn: any }): boolean => {\n const existingFunctionId = fn && getUserFunctionIdInMetadata(Obj.getMeta(fn));\n return Boolean(existingFunctionId) && !script.changed;\n};\n\ntype DeployScriptProps = {\n script: Script.Script;\n client: Client;\n space: Space;\n fn?: Operation.PersistentOperation;\n existingFunctionId?: string;\n};\n\ntype DeployScriptResult = { success: boolean; error?: Error; functionId?: string };\n\n/**\n * Deploy a script to a space, handling bundling and uploading to the FaaS infrastructure.\n */\nexport const deployScript = async ({\n script,\n client,\n space,\n fn,\n existingFunctionId,\n}: DeployScriptProps): Promise<DeployScriptResult> => {\n const validationError = validateDeployInputs(script, space);\n if (validationError) {\n return { success: false, error: validationError };\n }\n\n try {\n const buildResult = await bundleFunction({\n source: script.source!.target!.content,\n });\n if ('error' in buildResult) {\n throw buildResult.error || new Error('Bundle creation failed');\n }\n\n const functionsServiceClient = FunctionsServiceClient.fromClient(client);\n const newFunction = await functionsServiceClient.deploy(Context.default(), {\n // TODO(dmaretskyi): Space key or identity key.\n ownerPublicKey: space.key,\n version: fn ? incrementSemverPatch(Obj.getMeta(fn).version ?? '0.0.0') : '0.0.1',\n functionId: existingFunctionId,\n entryPoint: buildResult.entryPoint,\n assets: buildResult.assets,\n runtime: FunctionRuntimeKind.enums.WORKER_LOADER,\n });\n\n const storedFunction = createOrUpdateFunctionInSpace(space, fn, script, newFunction);\n Obj.update(script, (script) => {\n script.changed = false;\n });\n\n return { success: true, functionId: getUserFunctionIdInMetadata(Obj.getMeta(storedFunction)) };\n } catch (err: any) {\n log.catch(err);\n return { success: false, error: err };\n }\n};\n\n/**\n * Validate inputs for script deployment.\n */\nconst validateDeployInputs = (script: Script.Script, space: Space): Error | null => {\n if (!script.source || !space) {\n return new Error('Script source or space not available');\n }\n return null;\n};\n\nconst createOrUpdateFunctionInSpace = (\n space: Space,\n fn: Operation.PersistentOperation | undefined,\n script: Script.Script,\n newFunction: Operation.PersistentOperation,\n): Operation.PersistentOperation => {\n if (fn) {\n Operation.setFrom(fn, newFunction);\n return fn;\n } else {\n Obj.update(newFunction, (newFunction) => {\n newFunction.source = Ref.make(script);\n });\n return space.db.add(newFunction);\n }\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { type Operation, Script } from '@dxos/compute';\nimport { Obj } from '@dxos/echo';\nimport { getUserFunctionIdInMetadata } from '@dxos/functions';\nimport { getInvocationUrl } from '@dxos/functions-runtime';\nimport { type PublicKey } from '@dxos/keys';\nimport { log } from '@dxos/log';\nimport { type Credential } from '@dxos/protocols/proto/dxos/halo/credentials';\n\n/**\n * Get the function URL for a given script and client configuration\n */\nexport const getFunctionUrl = ({\n script,\n fn,\n edgeUrl,\n}: {\n script: Script.Script;\n fn: any;\n edgeUrl: string;\n}): string | undefined => {\n const spaceId = Obj.getDatabase(script)?.spaceId;\n const existingFunctionId = fn && getUserFunctionIdInMetadata(Obj.getMeta(fn));\n\n if (!existingFunctionId) {\n return undefined;\n }\n\n return getInvocationUrl(existingFunctionId, edgeUrl, {\n spaceId,\n });\n};\n\nexport const updateFunctionMetadata = (\n script: Script.Script,\n storedFunction: Operation.PersistentOperation,\n meta: any,\n functionId: string,\n) => {\n Obj.update(storedFunction, (storedFunction) => {\n if (script.description !== undefined && script.description.trim() !== '') {\n storedFunction.description = script.description;\n } else if (meta.description) {\n storedFunction.description = meta.description;\n } else {\n log.verbose('no description in function metadata', { functionId });\n }\n\n if (meta.inputSchema) {\n storedFunction.inputSchema = meta.inputSchema;\n } else {\n log.verbose('no input schema in function metadata', { functionId });\n }\n\n if (meta.outputSchema) {\n storedFunction.outputSchema = meta.outputSchema;\n } else {\n log.verbose('no output schema in function metadata', { functionId });\n }\n\n if (meta.key) {\n Obj.getMeta(storedFunction).key = meta.key;\n } else {\n log.verbose('no key in function metadata', { functionId });\n }\n });\n};\n\nexport const getAccessCredential = (identityKey: PublicKey): Credential => {\n return {\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 };\n};\n"],
|
|
5
|
+
"mappings": ";AAKA,SAAiBA,iBAAiB;AAClC,SAASC,eAAe;AACxB,SAASC,KAAKC,WAAW;AACzB,SAASC,mCAAmC;AAC5C,SAASC,sBAAsB;AAC/B,SAASC,wBAAwBC,4BAA4B;AAC7D,SAASC,WAAW;AACpB,SAASC,2BAA2B;AAGpC,IAAA,eAAaC;AAEX,IAAOC,mBAAQC,CAAAA,EAAAA,QAAwBC,GAAAA,MAAOC;AAC9C,QAAA,qBAAA,MAAA,4BAAA,IAAA,QAAA,EAAA,CAAA;AAYF,SAAA,QAAA,kBAAA,KAAA,CAAA,OAAA;;AAWMC,IAAAA,eAAiB,OAAA,EAAA,QAAA,QAAA,OAAA,IAAA,mBAAA,MAAA;QACnB,kBAAO,qBAAA,QAAA,KAAA;uBAAW;WAAOC;MAAuB,SAAA;MAClD,OAAA;IAEI;;;AAGF,UAAA,cAAA,MAAA,eAAA;MACI,QAAA,OAAWC,OAAAA,OAAa;;AAE5B,QAAA,WAAA,aAAA;AAEA,YAAMC,YAAAA,SAAyBZ,IAAAA,MAAAA,wBAAkCa;IACjE;UACE,yBAAA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AAAA;;sBAA+B;UACjC;QACF;MACF;IACA;;;",
|
|
6
|
+
"names": ["Operation", "Context", "Obj", "Ref", "getUserFunctionIdInMetadata", "bundleFunction", "FunctionsServiceClient", "incrementSemverPatch", "log", "FunctionRuntimeKind", "isScriptDeployed", "Boolean", "existingFunctionId", "script", "changed", "validationError", "error", "buildResult", "functionsServiceClient", "client", "ownerPublicKey", "space", "key", "functionId", "entryPoint", "assets", "runtime", "storedFunction", "createOrUpdateFunctionInSpace", "success", "newFunction", "update", "add", "Obj", "getUserFunctionIdInMetadata", "getInvocationUrl", "log", "__dxlog_file", "existingFunctionId", "fn", "undefined", "script", "description", "trim", "storedFunction", "meta", "inputSchema", "outputSchema", "verbose", "issuer", "identityKey", "issuanceDate", "subject", "assertion", "serverName", "serverKey", "capabilities"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Compiler
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2REUEDUA.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/capabilities/compiler.ts
|
|
@@ -98,4 +98,4 @@ var fetchRuntimeModules = Effect.fnUntraced(function* () {
|
|
|
98
98
|
export {
|
|
99
99
|
compiler_default as default
|
|
100
100
|
};
|
|
101
|
-
//# sourceMappingURL=compiler-
|
|
101
|
+
//# sourceMappingURL=compiler-ODK4UA2N.mjs.map
|