@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ScriptHandlers
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NQOIENTU.mjs";
|
|
4
|
+
import "./chunk-TRKXIP2Q.mjs";
|
|
5
5
|
import "./chunk-J5LGTIGS.mjs";
|
|
6
6
|
|
|
7
7
|
// src/capabilities/operation-handler.ts
|
|
@@ -15,4 +15,4 @@ var operation_handler_default = Capability.makeModule(Effect.fnUntraced(function
|
|
|
15
15
|
export {
|
|
16
16
|
operation_handler_default as default
|
|
17
17
|
};
|
|
18
|
-
//# sourceMappingURL=operation-handler-
|
|
18
|
+
//# sourceMappingURL=operation-handler-X44IGZXS.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
QueryDeployedFunctions
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TRKXIP2Q.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/functions/query-deployed-functions.ts
|
|
@@ -8,23 +8,27 @@ import * as Effect from "effect/Effect";
|
|
|
8
8
|
import { ClientService } from "@dxos/client";
|
|
9
9
|
import { Operation } from "@dxos/compute";
|
|
10
10
|
import { Context } from "@dxos/context";
|
|
11
|
+
import { Obj } from "@dxos/echo";
|
|
11
12
|
import { FunctionsServiceClient } from "@dxos/functions-runtime/edge";
|
|
12
13
|
var __dxlog_file = "/__w/dxos/dxos/packages/plugins/plugin-script/src/blueprints/functions/query-deployed-functions.ts";
|
|
13
14
|
var query_deployed_functions_default = QueryDeployedFunctions.pipe(Operation.withHandler(Effect.fn(function* () {
|
|
14
15
|
const client = yield* ClientService;
|
|
15
16
|
const functionsService = FunctionsServiceClient.fromClient(client);
|
|
16
|
-
const deployed = yield* Effect.promise(() => functionsService.query(Context.default(void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L:
|
|
17
|
+
const deployed = yield* Effect.promise(() => functionsService.query(Context.default(void 0, { "~LogMeta": "~LogMeta", F: __dxlog_file, L: 14 })));
|
|
17
18
|
return {
|
|
18
|
-
functions: deployed.map((fn2) =>
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
functions: deployed.map((fn2) => {
|
|
20
|
+
const meta = Obj.getMeta(fn2);
|
|
21
|
+
return {
|
|
22
|
+
key: meta.key,
|
|
23
|
+
name: fn2.name ?? "Unnamed function",
|
|
24
|
+
version: meta.version ?? "0.0.0",
|
|
25
|
+
description: fn2.description,
|
|
26
|
+
updated: fn2.updated
|
|
27
|
+
};
|
|
28
|
+
})
|
|
25
29
|
};
|
|
26
30
|
})));
|
|
27
31
|
export {
|
|
28
32
|
query_deployed_functions_default as default
|
|
29
33
|
};
|
|
30
|
-
//# sourceMappingURL=query-deployed-functions-
|
|
34
|
+
//# sourceMappingURL=query-deployed-functions-F4FHJNWO.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/blueprints/functions/query-deployed-functions.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2026 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\n\nimport { ClientService } from '@dxos/client';\nimport { Operation } from '@dxos/compute';\nimport { Context } from '@dxos/context';\nimport { Obj } from '@dxos/echo';\nimport { FunctionsServiceClient } from '@dxos/functions-runtime/edge';\n\nimport { QueryDeployedFunctions } from './definitions';\n\nexport default QueryDeployedFunctions.pipe(\n Operation.withHandler(\n Effect.fn(function* () {\n const client = yield* ClientService;\n const functionsService = FunctionsServiceClient.fromClient(client);\n const deployed = yield* Effect.promise(() => functionsService.query(Context.default()));\n return {\n functions: deployed.map((fn) => {\n const meta = Obj.getMeta(fn);\n return {\n key: meta.key,\n name: fn.name ?? 'Unnamed function',\n version: meta.version ?? '0.0.0',\n description: fn.description,\n updated: fn.updated,\n };\n }),\n };\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,YAAYA,YAAY;AAExB,SAASC,qBAAqB;AAC9B,SAASC,iBAAiB;AAC1B,SAASC,eAAe;AACxB,SAASC,WAAW;AACpB,SAASC,8BAA8B;AAIvC,IAAA,eAAeC;IAIT,mCAAMC,uBAAmBC,KAAAA,UAAuBC,YAAWC,UAAAA,aAAAA;AAC3D,QAAMC,SAAAA,OAAW;AACjB,QAAA,mBAAO,uBAAA,WAAA,MAAA;QACLC,WAAWD,OAAcE,eAAAA,MAAAA,iBAAAA,MAAAA,QAAAA,QAAAA,QAAAA,EAAAA,YAAAA,YAAAA,GAAAA,cAAAA,GAAAA,GAAAA,CAAAA,CAAAA,CAAAA;;eAEhB,SAAA,IAAA,CAAAA,QAAA;YACLC,OAAKC,IAAQ,QAAAF,GAAA;aACbG;QACAC,KAAAA,KAASF;QACTG,MAAAA,IAAAA,QAAgBA;QAChBC,SAASN,KAAGM,WAAO;QACrB,aAAAN,IAAA;QACF,SAAAA,IAAA;MACF;IAGJ,CAAA;;;",
|
|
6
|
+
"names": ["Effect", "ClientService", "Operation", "Context", "Obj", "FunctionsServiceClient", "QueryDeployedFunctions", "functionsService", "FunctionsServiceClient", "fromClient", "client", "deployed", "functions", "fn", "key", "meta", "name", "version", "description", "updated"]
|
|
7
|
+
}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DEPLOYMENT_DIALOG
|
|
3
|
-
} from "./chunk-P2F3STZN.mjs";
|
|
4
1
|
import {
|
|
5
2
|
getAccessCredential
|
|
6
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VXDJH6OL.mjs";
|
|
7
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
8
5
|
|
|
9
6
|
// src/capabilities/react-surface.tsx
|
|
@@ -19,14 +16,21 @@ import { useClient } from "@dxos/react-client";
|
|
|
19
16
|
import { getSpace } from "@dxos/react-client/echo";
|
|
20
17
|
import { Panel } from "@dxos/react-ui";
|
|
21
18
|
import { ScriptPluginSettings } from "#components";
|
|
22
|
-
import { DeploymentDialog,
|
|
19
|
+
import { DeploymentDialog, NotebookArticle, ScriptArticle, ScriptProperties, TestContainer } from "#containers";
|
|
23
20
|
import { useCompiler } from "#hooks";
|
|
24
|
-
import { meta } from "#meta";
|
|
21
|
+
import { meta as meta2 } from "#meta";
|
|
25
22
|
import { Notebook, ScriptCapabilities } from "#types";
|
|
23
|
+
|
|
24
|
+
// src/constants.ts
|
|
25
|
+
import { DXN } from "@dxos/keys";
|
|
26
|
+
import { meta } from "#meta";
|
|
27
|
+
var DEPLOYMENT_DIALOG = DXN.make(`${meta.id}.deploymentDialog`);
|
|
28
|
+
|
|
29
|
+
// src/capabilities/react-surface.tsx
|
|
26
30
|
var react_surface_default = Capability.makeModule(() => Effect.succeed(Capability.contributes(Capabilities.ReactSurface, [
|
|
27
31
|
Surface.create({
|
|
28
|
-
id: "
|
|
29
|
-
filter: AppSurface.settings(AppSurface.Article,
|
|
32
|
+
id: "pluginSettings",
|
|
33
|
+
filter: AppSurface.settings(AppSurface.Article, meta2.id),
|
|
30
34
|
component: ({ data: { subject } }) => {
|
|
31
35
|
const { settings, updateSettings } = useSettingsState(subject.atom);
|
|
32
36
|
const client = useClient();
|
|
@@ -50,7 +54,7 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
50
54
|
component: ({ data, role }) => {
|
|
51
55
|
const compiler = useCompiler();
|
|
52
56
|
const settings = useAtomCapability(ScriptCapabilities.Settings);
|
|
53
|
-
return /* @__PURE__ */ React.createElement(
|
|
57
|
+
return /* @__PURE__ */ React.createElement(ScriptArticle, {
|
|
54
58
|
role,
|
|
55
59
|
subject: data.subject,
|
|
56
60
|
attendableId: data.attendableId,
|
|
@@ -64,7 +68,7 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
64
68
|
filter: AppSurface.object(AppSurface.Article, Notebook.Notebook),
|
|
65
69
|
component: ({ data, role }) => {
|
|
66
70
|
const compiler = useCompiler();
|
|
67
|
-
return /* @__PURE__ */ React.createElement(
|
|
71
|
+
return /* @__PURE__ */ React.createElement(NotebookArticle, {
|
|
68
72
|
role,
|
|
69
73
|
subject: data.subject,
|
|
70
74
|
attendableId: data.attendableId,
|
|
@@ -94,12 +98,12 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
94
98
|
component: ({ data, role }) => {
|
|
95
99
|
const space = getSpace(data.companionTo);
|
|
96
100
|
const feed = space?.properties.invocationTraceFeed?.target;
|
|
97
|
-
const
|
|
101
|
+
const feedDXN = feed ? Feed.getQueueUri(feed) : void 0;
|
|
98
102
|
return /* @__PURE__ */ React.createElement(Panel.Root, {
|
|
99
103
|
role
|
|
100
104
|
}, /* @__PURE__ */ React.createElement(Panel.Content, null, /* @__PURE__ */ React.createElement(InvocationTraceContainer, {
|
|
101
105
|
db: space?.db,
|
|
102
|
-
|
|
106
|
+
feedDXN,
|
|
103
107
|
target: data.companionTo,
|
|
104
108
|
detailAxis: "block"
|
|
105
109
|
})));
|
|
@@ -114,4 +118,4 @@ var react_surface_default = Capability.makeModule(() => Effect.succeed(Capabilit
|
|
|
114
118
|
export {
|
|
115
119
|
react_surface_default as default
|
|
116
120
|
};
|
|
117
|
-
//# sourceMappingURL=react-surface-
|
|
121
|
+
//# sourceMappingURL=react-surface-ACNZ35FV.mjs.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../src/capabilities/react-surface.tsx", "../../../src/constants.ts"],
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport React, { type ComponentProps } from 'react';\n\nimport { Capabilities, Capability } from '@dxos/app-framework';\nimport { Surface, useAtomCapability, useSettingsState } from '@dxos/app-framework/ui';\nimport { AppSurface } from '@dxos/app-toolkit/ui';\nimport { Script } from '@dxos/compute';\nimport { InvocationTraceContainer } from '@dxos/devtools';\nimport { Feed } from '@dxos/echo';\nimport { useClient } from '@dxos/react-client';\nimport { getSpace } from '@dxos/react-client/echo';\nimport { Panel } from '@dxos/react-ui';\n\nimport { ScriptPluginSettings } from '#components';\nimport { DeploymentDialog, NotebookArticle, ScriptArticle, ScriptProperties, TestContainer } from '#containers';\nimport { useCompiler } from '#hooks';\nimport { meta } from '#meta';\nimport { Notebook, ScriptCapabilities, type Settings } from '#types';\n\nimport { DEPLOYMENT_DIALOG } from '../constants';\nimport { getAccessCredential } from '../util';\n\nexport default Capability.makeModule(() =>\n Effect.succeed(\n Capability.contributes(Capabilities.ReactSurface, [\n Surface.create({\n id: 'pluginSettings',\n filter: AppSurface.settings(AppSurface.Article, meta.id),\n component: ({ data: { subject } }) => {\n const { settings, updateSettings } = useSettingsState<Settings.Settings>(subject.atom);\n const client = useClient();\n // TODO(burdon): Check token.\n const handleAuthenticate = async () => {\n const { identityKey } = client.halo.identity.get()!;\n await client.halo.writeCredentials([getAccessCredential(identityKey)]);\n };\n return (\n <ScriptPluginSettings\n settings={settings}\n onSettingsChange={updateSettings}\n onAuthenticate={handleAuthenticate}\n />\n );\n },\n }),\n Surface.create({\n id: 'script.article',\n // TODO(wittjosiah): Split into multiple surfaces if this filter proves too strict for non-article roles.\n filter: AppSurface.oneOf(\n AppSurface.object(AppSurface.Article, Script.Script),\n AppSurface.object(AppSurface.Section, Script.Script),\n ),\n component: ({ data, role }) => {\n const compiler = useCompiler();\n const settings = useAtomCapability(ScriptCapabilities.Settings);\n return (\n <ScriptArticle\n role={role}\n subject={data.subject}\n attendableId={data.attendableId}\n settings={settings}\n env={compiler?.environment}\n />\n );\n },\n }),\n Surface.create({\n id: 'notebook.article',\n filter: AppSurface.object(AppSurface.Article, Notebook.Notebook),\n component: ({ data, role }) => {\n const compiler = useCompiler();\n return (\n <NotebookArticle\n role={role}\n subject={data.subject}\n attendableId={data.attendableId}\n env={compiler?.environment}\n />\n );\n },\n }),\n Surface.create({\n id: 'properties',\n filter: AppSurface.object(AppSurface.ObjectProperties, Script.Script),\n component: ({ data, role }) => <ScriptProperties role={role} subject={data.subject} />,\n }),\n Surface.create({\n id: 'companion.execute',\n filter: AppSurface.allOf(\n AppSurface.literal(AppSurface.Article, 'execute'),\n AppSurface.companion(AppSurface.Article, Script.Script),\n ),\n component: ({ data, role }) => <TestContainer script={data.companionTo} role={role} />,\n }),\n Surface.create({\n id: 'companion.logs',\n filter: AppSurface.allOf(\n AppSurface.literal(AppSurface.Article, 'logs'),\n AppSurface.companion(AppSurface.Article, Script.Script),\n ),\n component: ({ data, role }) => {\n const space = getSpace(data.companionTo);\n const feed = space?.properties.invocationTraceFeed?.target;\n const feedDXN = feed ? Feed.getQueueUri(feed) : undefined;\n return (\n <Panel.Root role={role}>\n <Panel.Content>\n <InvocationTraceContainer\n db={space?.db}\n feedDXN={feedDXN}\n target={data.companionTo}\n detailAxis='block'\n />\n </Panel.Content>\n </Panel.Root>\n );\n },\n }),\n Surface.create({\n id: DEPLOYMENT_DIALOG,\n filter: AppSurface.component<ComponentProps<typeof DeploymentDialog>>(AppSurface.Dialog, DEPLOYMENT_DIALOG),\n component: ({ data }) => <DeploymentDialog {...data.props} />,\n }),\n ]),\n ),\n);\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { DXN } from '@dxos/keys';\n\nimport { meta } from '#meta';\n\nexport const DEPLOYMENT_DIALOG = DXN.make(`${meta.id}.deploymentDialog`);\n"],
|
|
5
|
+
"mappings": "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",
|
|
6
|
+
"names": ["Effect", "React", "Capabilities", "Capability", "Surface", "useAtomCapability", "useSettingsState", "AppSurface", "Script", "InvocationTraceContainer", "Feed", "useClient", "getSpace", "Panel", "ScriptPluginSettings", "DeploymentDialog", "NotebookArticle", "ScriptArticle", "ScriptProperties", "TestContainer", "useCompiler", "meta", "Notebook", "ScriptCapabilities", "DXN", "meta", "DEPLOYMENT_DIALOG", "make", "id", "Capability", "makeModule", "succeed", "contributes", "Capabilities", "ReactSurface", "Surface", "create", "id", "filter", "AppSurface", "settings", "Article", "meta", "component", "data", "subject", "updateSettings", "useSettingsState", "atom", "client", "useClient", "handleAuthenticate", "identityKey", "halo", "identity", "get", "writeCredentials", "getAccessCredential", "ScriptPluginSettings", "onSettingsChange", "onAuthenticate", "oneOf", "object", "Script", "Section", "role", "compiler", "useCompiler", "useAtomCapability", "ScriptCapabilities", "Settings", "ScriptArticle", "attendableId", "env", "environment", "Notebook", "NotebookArticle", "ObjectProperties", "ScriptProperties", "allOf", "literal", "companion", "TestContainer", "script", "companionTo", "space", "getSpace", "feed", "properties", "invocationTraceFeed", "target", "feedDXN", "Feed", "getQueueUri", "undefined", "Panel", "Root", "Content", "InvocationTraceContainer", "db", "detailAxis", "DEPLOYMENT_DIALOG", "Dialog", "DeploymentDialog", "props"]
|
|
7
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Read
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TRKXIP2Q.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/functions/read.ts
|
|
@@ -23,4 +23,4 @@ var read_default = Read.pipe(Operation.withHandler(Effect.fn(function* ({ functi
|
|
|
23
23
|
export {
|
|
24
24
|
read_default as default
|
|
25
25
|
};
|
|
26
|
-
//# sourceMappingURL=read-
|
|
26
|
+
//# sourceMappingURL=read-RQESBAQI.mjs.map
|
|
@@ -2,12 +2,13 @@ import "./chunk-J5LGTIGS.mjs";
|
|
|
2
2
|
|
|
3
3
|
// src/translations.ts
|
|
4
4
|
import { Script } from "@dxos/compute";
|
|
5
|
+
import { Type } from "@dxos/echo";
|
|
5
6
|
import { meta } from "#meta";
|
|
6
7
|
import { Notebook } from "#types";
|
|
7
8
|
var translations = [
|
|
8
9
|
{
|
|
9
10
|
"en-US": {
|
|
10
|
-
[Script.Script
|
|
11
|
+
[Type.getTypename(Script.Script)]: {
|
|
11
12
|
"typename.label": "Script",
|
|
12
13
|
"typename.label_zero": "Scripts",
|
|
13
14
|
"typename.label_one": "Script",
|
|
@@ -18,7 +19,7 @@ var translations = [
|
|
|
18
19
|
"delete-object.label": "Delete script",
|
|
19
20
|
"object-deleted.label": "Script deleted"
|
|
20
21
|
},
|
|
21
|
-
[Notebook.Notebook
|
|
22
|
+
[Type.getTypename(Notebook.Notebook)]: {
|
|
22
23
|
"typename.label": "Notebook",
|
|
23
24
|
"typename.label_zero": "Notebooks",
|
|
24
25
|
"typename.label_one": "Notebook",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Script } from '@dxos/compute';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Notebook } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Script.Script
|
|
5
|
-
"mappings": ";;;AAIA,SAASA,cAAc;
|
|
6
|
-
"names": ["Script", "meta", "Notebook", "translations", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { Script } from '@dxos/compute';\nimport { Type } from '@dxos/echo';\nimport { type Resource } from '@dxos/react-ui';\n\nimport { meta } from '#meta';\nimport { Notebook } from '#types';\n\nexport const translations = [\n {\n 'en-US': {\n [Type.getTypename(Script.Script)]: {\n 'typename.label': 'Script',\n 'typename.label_zero': 'Scripts',\n 'typename.label_one': 'Script',\n 'typename.label_other': 'Scripts',\n 'object-name.placeholder': 'New script',\n 'add-object.label': 'Add script',\n 'rename-object.label': 'Rename script',\n 'delete-object.label': 'Delete script',\n 'object-deleted.label': 'Script deleted',\n },\n [Type.getTypename(Notebook.Notebook)]: {\n 'typename.label': 'Notebook',\n 'typename.label_zero': 'Notebooks',\n 'typename.label_one': 'Notebook',\n 'typename.label_other': 'Notebooks',\n 'object-name.placeholder': 'New notebook',\n 'add-object.label': 'Add notebook',\n 'rename-object.label': 'Rename notebook',\n 'delete-object.label': 'Delete notebook',\n 'object-deleted.label': 'Notebook deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Scripts',\n 'settings.title': 'Scripts settings',\n 'description.label': 'Description',\n 'description.placeholder': 'Enter description',\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-action.description':\n 'Sign in to the remote functions service to enable script deployment and execution.',\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': 'Enter binding name (e.g., NAME)',\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 'blueprint-editor.label': 'Blueprint',\n 'blueprint-editor.description': 'Create a blueprint that exposes this script as a tool.',\n 'blueprint-instructions.label': 'Instructions',\n 'blueprint-instructions.placeholder': 'Describe how this tool should be used.',\n 'create-blueprint.label': 'Create blueprint',\n 'update-blueprint.label': 'Update blueprint',\n 'function-panel.label': 'Debug Function',\n 'script-test.label': 'Test',\n 'script-logs.label': 'Logs',\n 'compute.label': 'Compute',\n\n 'deployment-dialog.title': 'Default Scripts',\n 'deployment-dialog-scripts-found.message': 'Script templates:',\n 'deployment-dialog-deploy-functions-button.label_one': 'Create and deploy script',\n 'deployment-dialog-deploy-functions-button.label_other': 'Create and deploy scripts',\n 'deployment-dialog-deploy-functions-pending-button.label_one': 'Deploying script',\n 'deployment-dialog-deploy-functions-pending-button.label_other': 'Deploying scripts',\n 'deployment-dialog-skip-button.label': 'Skip',\n\n 'script-deployment-toast.label_one': 'Script deployed',\n 'script-deployment-toast.label_other': 'Scripts deployed',\n 'script-deployment-toast.description_one': 'Your script has been deployed successfully.',\n 'script-deployment-toast.description_other': 'Your scripts have been deployed successfully.',\n 'script-deployment-toast-close.label_one': 'Close',\n 'script-deployment-toast-close.label_other': 'Close',\n 'script-deployment-error-toast.label_one': 'Script deployment failed',\n 'script-deployment-error-toast.label_other': 'Scripts deployment failed',\n 'script-deployment-error-toast.description_one': 'There was an error deploying your script.',\n 'script-deployment-error-toast.description_other': 'There was an error deploying your scripts.',\n 'script-deployment-error-toast-close.label_one': 'Close',\n 'script-deployment-error-toast-close.label_other': 'Close',\n\n 'notebook-cell.placeholder': 'Enter script',\n 'notebook-cell-delete.label': 'Delete cell',\n 'notebook-cell-prompt-run.label': 'Run',\n 'notebook-cell-insert-markdown.label': 'Insert Markdown',\n 'notebook-cell-insert-script.label': 'Insert Script',\n 'notebook-cell-insert-prompt.label': 'Insert Prompt',\n 'notebook-cell-insert-query.label': 'Insert Query',\n 'notebook-markdown.placeholder': 'Enter Markdown',\n 'notebook-prompt.placeholder': 'Enter prompt',\n 'notebook-cell-insert.label': 'Insert cell',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
+
"mappings": ";;;AAIA,SAASA,cAAc;AACvB,SAASC,YAAY;AAGrB,SAASC,YAAY;AACrB,SAASC,gBAAgB;AAElB,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACH,KAAKI,YAAYL,OAAOA,MAAM,CAAA,GAAI;QACjC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,KAAKI,YAAYF,SAASA,QAAQ,CAAA,GAAI;QACrC,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACD,KAAKI,EAAE,GAAG;QACT,eAAe;QACf,kBAAkB;QAClB,qBAAqB;QACrB,2BAA2B;QAC3B,uBAAuB;QACvB,gCAAgC;QAChC,gBAAgB;QAChB,kBAAkB;QAClB,uBAAuB;QACvB,mBAAmB;QACnB,gBAAgB;QAChB,wBAAwB;QACxB,6BAA6B;QAC7B,mCACE;QACF,6BAA6B;QAC7B,cAAc;QACd,oCAAoC;QACpC,sBAAsB;QACtB,0BAA0B;QAC1B,gCAAgC;QAChC,iCAAiC;QACjC,uCAAuC;QACvC,yBAAyB;QACzB,4BAA4B;QAC5B,iBAAiB;QACjB,0BAA0B;QAC1B,gCAAgC;QAChC,gCAAgC;QAChC,sCAAsC;QACtC,0BAA0B;QAC1B,0BAA0B;QAC1B,wBAAwB;QACxB,qBAAqB;QACrB,qBAAqB;QACrB,iBAAiB;QAEjB,2BAA2B;QAC3B,2CAA2C;QAC3C,uDAAuD;QACvD,yDAAyD;QACzD,+DAA+D;QAC/D,iEAAiE;QACjE,uCAAuC;QAEvC,qCAAqC;QACrC,uCAAuC;QACvC,2CAA2C;QAC3C,6CAA6C;QAC7C,2CAA2C;QAC3C,6CAA6C;QAC7C,2CAA2C;QAC3C,6CAA6C;QAC7C,iDAAiD;QACjD,mDAAmD;QACnD,iDAAiD;QACjD,mDAAmD;QAEnD,6BAA6B;QAC7B,8BAA8B;QAC9B,kCAAkC;QAClC,uCAAuC;QACvC,qCAAqC;QACrC,qCAAqC;QACrC,oCAAoC;QACpC,iCAAiC;QACjC,+BAA+B;QAC/B,8BAA8B;MAChC;IACF;EACF;;",
|
|
6
|
+
"names": ["Script", "Type", "meta", "Notebook", "translations", "getTypename", "id"]
|
|
7
7
|
}
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ScriptEvents_exports,
|
|
5
5
|
ScriptOperation_exports,
|
|
6
6
|
Settings_exports
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-C4O7EV6M.mjs";
|
|
8
|
+
import "../chunk-H2BRWQMY.mjs";
|
|
9
9
|
import "../chunk-J5LGTIGS.mjs";
|
|
10
10
|
export {
|
|
11
11
|
Notebook_exports as Notebook,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Update
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TRKXIP2Q.mjs";
|
|
4
4
|
import "./chunk-J5LGTIGS.mjs";
|
|
5
5
|
|
|
6
6
|
// src/blueprints/functions/update.ts
|
|
@@ -54,10 +54,10 @@ var update_default = Update.pipe(Operation.withHandler(Effect.fn(function* ({ fu
|
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
56
|
return {
|
|
57
|
-
function: Obj.
|
|
57
|
+
function: Obj.getURI(loaded)
|
|
58
58
|
};
|
|
59
59
|
})));
|
|
60
60
|
export {
|
|
61
61
|
update_default as default
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=update-
|
|
63
|
+
//# sourceMappingURL=update-JZUNJYZM.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../../../src/blueprints/functions/update.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { next as A, type Doc } from '@automerge/automerge';\nimport * as Effect from 'effect/Effect';\n\nimport { type Script, Operation } from '@dxos/compute';\nimport { Database, Obj } from '@dxos/echo';\nimport { DocAccessor, createDocAccessor } from '@dxos/echo-db';\n\nimport { Update } from './definitions';\n\nexport default Update.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ function: fn, name, description, edits }) {\n const loaded = yield* Database.load(fn);\n if (!loaded.source) {\n return yield* Effect.fail(new Error('Function has no source script.'));\n }\n const script = (yield* Database.load(loaded.source)) as Script.Script;\n\n if (name !== undefined || description !== undefined) {\n Obj.update(script, (script) => {\n if (name !== undefined) {\n script.name = name;\n }\n if (description !== undefined) {\n script.description = description;\n }\n });\n }\n\n if (edits && edits.length > 0) {\n const text = yield* Database.load(script.source);\n const accessor = createDocAccessor(text, ['content']);\n\n for (const edit of edits) {\n accessor.handle.change((doc: Doc<typeof text>) => {\n const source = DocAccessor.getValue<string>(accessor);\n if (edit.replaceAll) {\n let idx = source.indexOf(edit.oldString);\n while (idx !== -1) {\n A.splice(doc, accessor.path as A.Prop[], idx, edit.oldString.length, edit.newString);\n const updated = DocAccessor.getValue<string>(accessor);\n idx = updated.indexOf(edit.oldString, idx + edit.newString.length);\n }\n } else {\n const idx = source.indexOf(edit.oldString);\n if (idx === -1) {\n throw new Error(`Edit not found: ${JSON.stringify(edit.oldString)}`);\n }\n A.splice(doc, accessor.path as A.Prop[], idx, edit.oldString.length, edit.newString);\n }\n });\n }\n\n Obj.update(script, (script) => {\n script.changed = true;\n });\n }\n\n return {\n function: Obj.
|
|
5
|
-
"mappings": ";;;;;;AAIA,SAASA,QAAQC,SAAmB;AACpC,YAAYC,YAAY;AAExB,SAAsBC,iBAAiB;AACvC,SAASC,UAAUC,WAAW;AAC9B,SAASC,aAAaC,yBAAyB;AAI/C,IAAA,iBAAeC,OAAOC,KACpBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,UAAUD,KAAIE,MAAMC,aAAaC,MAAK,GAAE;AAC7D,QAAMC,SAAS,OAAOC,SAASC,KAAKP,GAAAA;AACpC,MAAI,CAACK,OAAOG,QAAQ;AAClB,WAAO,OAAcC,YAAK,IAAIC,MAAM,gCAAA,CAAA;EACtC;AACA,QAAMC,SAAU,OAAOL,SAASC,KAAKF,OAAOG,MAAM;AAElD,MAAIN,SAASU,UAAaT,gBAAgBS,QAAW;AACnDC,QAAIC,OAAOH,QAAQ,CAACA,YAAAA;AAClB,UAAIT,SAASU,QAAW;AACtBD,QAAAA,QAAOT,OAAOA;MAChB;AACA,UAAIC,gBAAgBS,QAAW;AAC7BD,QAAAA,QAAOR,cAAcA;MACvB;IACF,CAAA;EACF;AAEA,MAAIC,SAASA,MAAMW,SAAS,GAAG;AAC7B,UAAMC,OAAO,OAAOV,SAASC,KAAKI,OAAOH,MAAM;AAC/C,UAAMS,WAAWC,kBAAkBF,MAAM;MAAC;KAAU;AAEpD,eAAWG,QAAQf,OAAO;AACxBa,eAASG,OAAOC,OAAO,CAACC,QAAAA;AACtB,cAAMd,SAASe,YAAYC,SAAiBP,QAAAA;AAC5C,YAAIE,KAAKM,YAAY;AACnB,cAAIC,MAAMlB,OAAOmB,QAAQR,KAAKS,SAAS;AACvC,iBAAOF,QAAQ,IAAI;AACjBG,cAAEC,OAAOR,KAAKL,SAASc,MAAkBL,KAAKP,KAAKS,UAAUb,QAAQI,KAAKa,SAAS;AACnF,kBAAMC,UAAUV,YAAYC,SAAiBP,QAAAA;AAC7CS,kBAAMO,QAAQN,QAAQR,KAAKS,WAAWF,MAAMP,KAAKa,UAAUjB,MAAM;UACnE;QACF,OAAO;AACL,gBAAMW,MAAMlB,OAAOmB,QAAQR,KAAKS,SAAS;AACzC,cAAIF,QAAQ,IAAI;AACd,kBAAM,IAAIhB,MAAM,mBAAmBwB,KAAKC,UAAUhB,KAAKS,SAAS,CAAA,EAAG;UACrE;AACAC,YAAEC,OAAOR,KAAKL,SAASc,MAAkBL,KAAKP,KAAKS,UAAUb,QAAQI,KAAKa,SAAS;QACrF;MACF,CAAA;IACF;AAEAnB,QAAIC,OAAOH,QAAQ,CAACA,YAAAA;AAClBA,MAAAA,QAAOyB,UAAU;IACnB,CAAA;EACF;AAEA,SAAO;IACLnC,UAAUY,IAAIwB,OAAOhC,MAAAA
|
|
6
|
-
"names": ["next", "A", "Effect", "Operation", "Database", "Obj", "DocAccessor", "createDocAccessor", "Update", "pipe", "Operation", "withHandler", "fn", "function", "name", "description", "edits", "loaded", "Database", "load", "source", "fail", "Error", "script", "undefined", "Obj", "update", "length", "text", "accessor", "createDocAccessor", "edit", "handle", "change", "doc", "DocAccessor", "getValue", "replaceAll", "idx", "indexOf", "oldString", "A", "splice", "path", "newString", "updated", "JSON", "stringify", "changed", "
|
|
4
|
+
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { next as A, type Doc } from '@automerge/automerge';\nimport * as Effect from 'effect/Effect';\n\nimport { type Script, Operation } from '@dxos/compute';\nimport { Database, Obj } from '@dxos/echo';\nimport { DocAccessor, createDocAccessor } from '@dxos/echo-db';\n\nimport { Update } from './definitions';\n\nexport default Update.pipe(\n Operation.withHandler(\n Effect.fn(function* ({ function: fn, name, description, edits }) {\n const loaded = yield* Database.load(fn);\n if (!loaded.source) {\n return yield* Effect.fail(new Error('Function has no source script.'));\n }\n const script = (yield* Database.load(loaded.source)) as Script.Script;\n\n if (name !== undefined || description !== undefined) {\n Obj.update(script, (script) => {\n if (name !== undefined) {\n script.name = name;\n }\n if (description !== undefined) {\n script.description = description;\n }\n });\n }\n\n if (edits && edits.length > 0) {\n const text = yield* Database.load(script.source);\n const accessor = createDocAccessor(text, ['content']);\n\n for (const edit of edits) {\n accessor.handle.change((doc: Doc<typeof text>) => {\n const source = DocAccessor.getValue<string>(accessor);\n if (edit.replaceAll) {\n let idx = source.indexOf(edit.oldString);\n while (idx !== -1) {\n A.splice(doc, accessor.path as A.Prop[], idx, edit.oldString.length, edit.newString);\n const updated = DocAccessor.getValue<string>(accessor);\n idx = updated.indexOf(edit.oldString, idx + edit.newString.length);\n }\n } else {\n const idx = source.indexOf(edit.oldString);\n if (idx === -1) {\n throw new Error(`Edit not found: ${JSON.stringify(edit.oldString)}`);\n }\n A.splice(doc, accessor.path as A.Prop[], idx, edit.oldString.length, edit.newString);\n }\n });\n }\n\n Obj.update(script, (script) => {\n script.changed = true;\n });\n }\n\n return {\n function: Obj.getURI(loaded),\n };\n }),\n ),\n);\n"],
|
|
5
|
+
"mappings": ";;;;;;AAIA,SAASA,QAAQC,SAAmB;AACpC,YAAYC,YAAY;AAExB,SAAsBC,iBAAiB;AACvC,SAASC,UAAUC,WAAW;AAC9B,SAASC,aAAaC,yBAAyB;AAI/C,IAAA,iBAAeC,OAAOC,KACpBC,UAAUC,YACDC,UAAG,WAAW,EAAEC,UAAUD,KAAIE,MAAMC,aAAaC,MAAK,GAAE;AAC7D,QAAMC,SAAS,OAAOC,SAASC,KAAKP,GAAAA;AACpC,MAAI,CAACK,OAAOG,QAAQ;AAClB,WAAO,OAAcC,YAAK,IAAIC,MAAM,gCAAA,CAAA;EACtC;AACA,QAAMC,SAAU,OAAOL,SAASC,KAAKF,OAAOG,MAAM;AAElD,MAAIN,SAASU,UAAaT,gBAAgBS,QAAW;AACnDC,QAAIC,OAAOH,QAAQ,CAACA,YAAAA;AAClB,UAAIT,SAASU,QAAW;AACtBD,QAAAA,QAAOT,OAAOA;MAChB;AACA,UAAIC,gBAAgBS,QAAW;AAC7BD,QAAAA,QAAOR,cAAcA;MACvB;IACF,CAAA;EACF;AAEA,MAAIC,SAASA,MAAMW,SAAS,GAAG;AAC7B,UAAMC,OAAO,OAAOV,SAASC,KAAKI,OAAOH,MAAM;AAC/C,UAAMS,WAAWC,kBAAkBF,MAAM;MAAC;KAAU;AAEpD,eAAWG,QAAQf,OAAO;AACxBa,eAASG,OAAOC,OAAO,CAACC,QAAAA;AACtB,cAAMd,SAASe,YAAYC,SAAiBP,QAAAA;AAC5C,YAAIE,KAAKM,YAAY;AACnB,cAAIC,MAAMlB,OAAOmB,QAAQR,KAAKS,SAAS;AACvC,iBAAOF,QAAQ,IAAI;AACjBG,cAAEC,OAAOR,KAAKL,SAASc,MAAkBL,KAAKP,KAAKS,UAAUb,QAAQI,KAAKa,SAAS;AACnF,kBAAMC,UAAUV,YAAYC,SAAiBP,QAAAA;AAC7CS,kBAAMO,QAAQN,QAAQR,KAAKS,WAAWF,MAAMP,KAAKa,UAAUjB,MAAM;UACnE;QACF,OAAO;AACL,gBAAMW,MAAMlB,OAAOmB,QAAQR,KAAKS,SAAS;AACzC,cAAIF,QAAQ,IAAI;AACd,kBAAM,IAAIhB,MAAM,mBAAmBwB,KAAKC,UAAUhB,KAAKS,SAAS,CAAA,EAAG;UACrE;AACAC,YAAEC,OAAOR,KAAKL,SAASc,MAAkBL,KAAKP,KAAKS,UAAUb,QAAQI,KAAKa,SAAS;QACrF;MACF,CAAA;IACF;AAEAnB,QAAIC,OAAOH,QAAQ,CAACA,YAAAA;AAClBA,MAAAA,QAAOyB,UAAU;IACnB,CAAA;EACF;AAEA,SAAO;IACLnC,UAAUY,IAAIwB,OAAOhC,MAAAA;EACvB;AACF,CAAA,CAAA,CAAA;",
|
|
6
|
+
"names": ["next", "A", "Effect", "Operation", "Database", "Obj", "DocAccessor", "createDocAccessor", "Update", "pipe", "Operation", "withHandler", "fn", "function", "name", "description", "edits", "loaded", "Database", "load", "source", "fail", "Error", "script", "undefined", "Obj", "update", "length", "text", "accessor", "createDocAccessor", "edit", "handle", "change", "doc", "DocAccessor", "getValue", "replaceAll", "idx", "indexOf", "oldString", "A", "splice", "path", "newString", "updated", "JSON", "stringify", "changed", "getURI"]
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScriptPlugin.d.ts","sourceRoot":"","sources":["../../../src/ScriptPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"ScriptPlugin.d.ts","sourceRoot":"","sources":["../../../src/ScriptPlugin.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAoB7C,eAAO,MAAM,YAAY,4BAoBxB,CAAC;eAEa,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ScriptPlugin.workerd.d.ts","sourceRoot":"","sources":["../../../src/ScriptPlugin.workerd.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAO7C,eAAO,MAAM,YAAY,4BAIxB,CAAC;eAEa,YAAY"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/create.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/create.ts"],"names":[],"mappings":"AAOA,OAAO,EAAU,SAAS,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAY,MAAM,YAAY,CAAC"}
|
|
@@ -9,36 +9,34 @@ export declare const Create: Operation.Definition<{
|
|
|
9
9
|
readonly function: string;
|
|
10
10
|
}, Database.Service>;
|
|
11
11
|
export declare const Read: Operation.Definition<{
|
|
12
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
13
|
-
readonly key?: string | undefined;
|
|
12
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
14
13
|
readonly name: string;
|
|
15
|
-
readonly version: string;
|
|
16
14
|
readonly description?: string | undefined;
|
|
17
15
|
readonly updated?: string | undefined;
|
|
18
|
-
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/
|
|
16
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
|
|
19
17
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
20
18
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
21
19
|
readonly services?: readonly string[] | undefined;
|
|
22
20
|
readonly binding?: string | undefined;
|
|
23
|
-
|
|
21
|
+
readonly icon?: string | undefined;
|
|
22
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
24
23
|
}, {
|
|
25
24
|
readonly name?: string | undefined;
|
|
26
25
|
readonly source: string;
|
|
27
26
|
readonly description?: string | undefined;
|
|
28
27
|
}, Database.Service>;
|
|
29
28
|
export declare const Update: Operation.Definition<{
|
|
30
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
31
|
-
readonly key?: string | undefined;
|
|
29
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
32
30
|
readonly name: string;
|
|
33
|
-
readonly version: string;
|
|
34
31
|
readonly description?: string | undefined;
|
|
35
32
|
readonly updated?: string | undefined;
|
|
36
|
-
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/
|
|
33
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
|
|
37
34
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
38
35
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
39
36
|
readonly services?: readonly string[] | undefined;
|
|
40
37
|
readonly binding?: string | undefined;
|
|
41
|
-
|
|
38
|
+
readonly icon?: string | undefined;
|
|
39
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
42
40
|
readonly name?: string | undefined;
|
|
43
41
|
readonly description?: string | undefined;
|
|
44
42
|
readonly edits?: readonly {
|
|
@@ -50,66 +48,62 @@ export declare const Update: Operation.Definition<{
|
|
|
50
48
|
readonly function: string;
|
|
51
49
|
}, Database.Service>;
|
|
52
50
|
export declare const Delete: Operation.Definition<{
|
|
53
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
54
|
-
readonly key?: string | undefined;
|
|
51
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
55
52
|
readonly name: string;
|
|
56
|
-
readonly version: string;
|
|
57
53
|
readonly description?: string | undefined;
|
|
58
54
|
readonly updated?: string | undefined;
|
|
59
|
-
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/
|
|
55
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
|
|
60
56
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
61
57
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
62
58
|
readonly services?: readonly string[] | undefined;
|
|
63
59
|
readonly binding?: string | undefined;
|
|
64
|
-
|
|
60
|
+
readonly icon?: string | undefined;
|
|
61
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
65
62
|
}, void, Database.Service>;
|
|
66
63
|
export declare const Deploy: Operation.Definition<{
|
|
67
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
68
|
-
readonly key?: string | undefined;
|
|
64
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
69
65
|
readonly name: string;
|
|
70
|
-
readonly version: string;
|
|
71
66
|
readonly description?: string | undefined;
|
|
72
67
|
readonly updated?: string | undefined;
|
|
73
|
-
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/
|
|
68
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
|
|
74
69
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
75
70
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
76
71
|
readonly services?: readonly string[] | undefined;
|
|
77
72
|
readonly binding?: string | undefined;
|
|
78
|
-
|
|
73
|
+
readonly icon?: string | undefined;
|
|
74
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
79
75
|
}, {
|
|
80
76
|
readonly function: string;
|
|
81
77
|
readonly functionUrl?: string | undefined;
|
|
82
78
|
}, ClientService | Database.Service>;
|
|
83
79
|
export declare const Invoke: Operation.Definition<{
|
|
84
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
85
|
-
readonly key?: string | undefined;
|
|
80
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
86
81
|
readonly name: string;
|
|
87
|
-
readonly version: string;
|
|
88
82
|
readonly description?: string | undefined;
|
|
89
83
|
readonly updated?: string | undefined;
|
|
90
|
-
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/
|
|
84
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
|
|
91
85
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
92
86
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
93
87
|
readonly services?: readonly string[] | undefined;
|
|
94
88
|
readonly binding?: string | undefined;
|
|
95
|
-
|
|
89
|
+
readonly icon?: string | undefined;
|
|
90
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
96
91
|
readonly payload?: unknown;
|
|
97
92
|
}, {
|
|
98
93
|
readonly response: unknown;
|
|
99
94
|
}, ClientService | Database.Service>;
|
|
100
95
|
export declare const InspectInvocations: Operation.Definition<{
|
|
101
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
102
|
-
readonly key?: string | undefined;
|
|
96
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
103
97
|
readonly name: string;
|
|
104
|
-
readonly version: string;
|
|
105
98
|
readonly description?: string | undefined;
|
|
106
99
|
readonly updated?: string | undefined;
|
|
107
|
-
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/
|
|
100
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
|
|
108
101
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
109
102
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
110
103
|
readonly services?: readonly string[] | undefined;
|
|
111
104
|
readonly binding?: string | undefined;
|
|
112
|
-
|
|
105
|
+
readonly icon?: string | undefined;
|
|
106
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
113
107
|
readonly limit?: number | undefined;
|
|
114
108
|
}, {
|
|
115
109
|
readonly invocations: readonly {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,
|
|
1
|
+
{"version":3,"file":"definitions.d.ts","sourceRoot":"","sources":["../../../../../src/blueprints/functions/definitions.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAY,MAAM,YAAY,CAAC;AAwFtD,eAAO,MAAM,MAAM;;;;;;oBAsBjB,CAAC;AAEH,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;oBAgBf,CAAC;AAcH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;oBAuBjB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;0BAYjB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;oCAiBjB,CAAC;AAEH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;oCAmBjB,CAAC;AAuBH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;uCAsB7B,CAAC;AAoBH,eAAO,MAAM,sBAAsB;;;;;;;;iBAcjC,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;iBAuB1B,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
2
|
import { Database } from '@dxos/echo';
|
|
3
3
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
5
|
-
readonly key?: string | undefined;
|
|
4
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
6
5
|
readonly name: string;
|
|
7
|
-
readonly version: string;
|
|
8
6
|
readonly description?: string | undefined;
|
|
9
7
|
readonly updated?: string | undefined;
|
|
10
|
-
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/
|
|
8
|
+
readonly source?: import("@dxos/echo/internal").Ref<import("@dxos/echo/Obj").Unknown> | undefined;
|
|
11
9
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
12
10
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
13
11
|
readonly services?: readonly string[] | undefined;
|
|
14
12
|
readonly binding?: string | undefined;
|
|
15
|
-
|
|
13
|
+
readonly icon?: string | undefined;
|
|
14
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & import("@dxos/echo/Obj").Unknown>;
|
|
16
15
|
}, void, Database.Service>>;
|
|
17
16
|
export default _default;
|
|
18
17
|
//# sourceMappingURL=delete.d.ts.map
|
|
@@ -2,18 +2,17 @@ import { ClientService } from '@dxos/client';
|
|
|
2
2
|
import { Operation } from '@dxos/compute';
|
|
3
3
|
import { Database, Obj } from '@dxos/echo';
|
|
4
4
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
5
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
6
|
-
readonly key?: string | undefined;
|
|
5
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
7
6
|
readonly name: string;
|
|
8
|
-
readonly version: string;
|
|
9
7
|
readonly description?: string | undefined;
|
|
10
8
|
readonly updated?: string | undefined;
|
|
11
|
-
readonly source?: import("@dxos/echo/internal").Ref<
|
|
9
|
+
readonly source?: import("@dxos/echo/internal").Ref<Obj.Unknown> | undefined;
|
|
12
10
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
13
11
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
14
12
|
readonly services?: readonly string[] | undefined;
|
|
15
13
|
readonly binding?: string | undefined;
|
|
16
|
-
|
|
14
|
+
readonly icon?: string | undefined;
|
|
15
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
17
16
|
}, {
|
|
18
17
|
readonly function: string;
|
|
19
18
|
readonly functionUrl?: string | undefined;
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import { Operation } from '@dxos/compute';
|
|
2
2
|
import { Database, Feed, Obj } from '@dxos/echo';
|
|
3
3
|
declare const _default: Operation.WithHandler<Operation.Definition<{
|
|
4
|
-
readonly function: import("@dxos/echo/internal").Ref<
|
|
5
|
-
readonly key?: string | undefined;
|
|
4
|
+
readonly function: import("@dxos/echo/internal").Ref<{
|
|
6
5
|
readonly name: string;
|
|
7
|
-
readonly version: string;
|
|
8
6
|
readonly description?: string | undefined;
|
|
9
7
|
readonly updated?: string | undefined;
|
|
10
|
-
readonly source?: import("@dxos/echo/internal").Ref<
|
|
8
|
+
readonly source?: import("@dxos/echo/internal").Ref<Obj.Unknown> | undefined;
|
|
11
9
|
readonly inputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
12
10
|
readonly outputSchema?: import("@dxos/echo/internal").JsonSchemaType | undefined;
|
|
13
11
|
readonly services?: readonly string[] | undefined;
|
|
14
12
|
readonly binding?: string | undefined;
|
|
15
|
-
|
|
13
|
+
readonly icon?: string | undefined;
|
|
14
|
+
} & import("@dxos/echo/Entity").OfKind<import("@dxos/echo/internal").EntityKind.Object> & Obj.Unknown>;
|
|
16
15
|
readonly limit?: number | undefined;
|
|
17
16
|
}, {
|
|
18
17
|
readonly invocations: readonly {
|