@dxos/plugin-script 0.8.4-main.69d29f4 → 0.8.4-main.6fa680abb7
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/README.md +15 -13
- package/dist/lib/browser/{chunk-TWX2NMZN.mjs → DeploymentDialog-J34VKLNR.mjs} +20 -19
- package/dist/lib/browser/DeploymentDialog-J34VKLNR.mjs.map +7 -0
- package/dist/lib/browser/{NotebookContainer-NBAXYESH.mjs → NotebookContainer-EL6AHDB7.mjs} +32 -28
- package/dist/lib/browser/NotebookContainer-EL6AHDB7.mjs.map +7 -0
- package/dist/lib/browser/ScriptContainer-YCS6M5LS.mjs +93 -0
- package/dist/lib/browser/ScriptContainer-YCS6M5LS.mjs.map +7 -0
- package/dist/lib/browser/ScriptObjectSettings-X4WV5TBD.mjs +294 -0
- package/dist/lib/browser/ScriptObjectSettings-X4WV5TBD.mjs.map +7 -0
- package/dist/lib/browser/ScriptPluginSettings-5WUKIWCC.mjs +55 -0
- package/dist/lib/browser/ScriptPluginSettings-5WUKIWCC.mjs.map +7 -0
- package/dist/lib/browser/ScriptProperties-5YERQAL2.mjs +28 -0
- package/dist/lib/browser/ScriptProperties-5YERQAL2.mjs.map +7 -0
- package/dist/lib/browser/TestContainer-NZ4YZOYT.mjs +39 -0
- package/dist/lib/browser/TestContainer-NZ4YZOYT.mjs.map +7 -0
- package/dist/lib/browser/{app-graph-builder-7VO7AUI6.mjs → app-graph-builder-QPXX4YK5.mjs} +12 -17
- package/dist/lib/browser/app-graph-builder-QPXX4YK5.mjs.map +7 -0
- package/dist/lib/browser/blueprint-definition-2UX353LT.mjs +17 -0
- package/dist/lib/browser/blueprint-definition-2UX353LT.mjs.map +7 -0
- package/dist/lib/browser/blueprints/index.mjs +3 -3
- package/dist/lib/browser/{chunk-WYR4QHPE.mjs → chunk-37XPSUAH.mjs} +3 -3
- package/dist/lib/browser/{chunk-WYR4QHPE.mjs.map → chunk-37XPSUAH.mjs.map} +1 -1
- package/dist/lib/browser/chunk-3KBF2IW7.mjs +20 -0
- package/dist/lib/browser/chunk-3KBF2IW7.mjs.map +7 -0
- package/dist/lib/browser/{chunk-C53UJGSU.mjs → chunk-7LHEB2QO.mjs} +91 -251
- package/dist/lib/browser/chunk-7LHEB2QO.mjs.map +7 -0
- package/dist/lib/browser/chunk-7SXHORK4.mjs +105 -0
- package/dist/lib/browser/chunk-7SXHORK4.mjs.map +7 -0
- package/dist/lib/browser/chunk-ATTZUDT7.mjs +67 -0
- package/dist/lib/browser/chunk-ATTZUDT7.mjs.map +7 -0
- package/dist/lib/browser/chunk-G3XIOLLI.mjs +174 -0
- package/dist/lib/browser/chunk-G3XIOLLI.mjs.map +7 -0
- package/dist/lib/browser/chunk-MVIWELNH.mjs +789 -0
- package/dist/lib/browser/chunk-MVIWELNH.mjs.map +7 -0
- package/dist/lib/browser/{chunk-F3QKSKSF.mjs → chunk-MYSQ4VH5.mjs} +11 -17
- package/dist/lib/browser/chunk-MYSQ4VH5.mjs.map +7 -0
- package/dist/lib/browser/{chunk-UUR4JNNB.mjs → chunk-QUKW7YWV.mjs} +13 -13
- package/dist/lib/browser/{chunk-UUR4JNNB.mjs.map → chunk-QUKW7YWV.mjs.map} +3 -3
- package/dist/lib/browser/chunk-X44CJ7F5.mjs +11 -0
- package/dist/lib/browser/chunk-X44CJ7F5.mjs.map +7 -0
- package/dist/lib/browser/{compiler-76F3QAXC.mjs → compiler-4JVZK3D2.mjs} +11 -73
- package/dist/lib/browser/compiler-4JVZK3D2.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +49 -43
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{operation-resolver-HUILPPKT.mjs → operation-resolver-GU3NMGIL.mjs} +9 -12
- package/dist/lib/browser/operation-resolver-GU3NMGIL.mjs.map +7 -0
- package/dist/lib/browser/{react-surface-O6GKHB2J.mjs → react-surface-JEDP6MPG.mjs} +37 -34
- package/dist/lib/browser/react-surface-JEDP6MPG.mjs.map +7 -0
- package/dist/lib/browser/{settings-3ENI25PI.mjs → settings-EEXY6JM7.mjs} +7 -6
- package/dist/lib/browser/settings-EEXY6JM7.mjs.map +7 -0
- package/dist/lib/browser/templates/index.mjs +1 -1
- package/dist/lib/browser/types/index.mjs +3 -3
- package/dist/lib/node-esm/{chunk-VQPIA4VF.mjs → DeploymentDialog-AU5IG3AN.mjs} +20 -19
- package/dist/lib/node-esm/DeploymentDialog-AU5IG3AN.mjs.map +7 -0
- package/dist/lib/node-esm/{NotebookContainer-IUAYVJSD.mjs → NotebookContainer-2J3TNVUY.mjs} +32 -28
- package/dist/lib/node-esm/NotebookContainer-2J3TNVUY.mjs.map +7 -0
- package/dist/lib/node-esm/ScriptContainer-67PHQKMM.mjs +94 -0
- package/dist/lib/node-esm/ScriptContainer-67PHQKMM.mjs.map +7 -0
- package/dist/lib/node-esm/ScriptObjectSettings-RPY2ZLDJ.mjs +295 -0
- package/dist/lib/node-esm/ScriptObjectSettings-RPY2ZLDJ.mjs.map +7 -0
- package/dist/lib/node-esm/ScriptPluginSettings-H4ESISSG.mjs +56 -0
- package/dist/lib/node-esm/ScriptPluginSettings-H4ESISSG.mjs.map +7 -0
- package/dist/lib/node-esm/ScriptProperties-NNDYQTOW.mjs +29 -0
- package/dist/lib/node-esm/ScriptProperties-NNDYQTOW.mjs.map +7 -0
- package/dist/lib/node-esm/TestContainer-5TMMG7HV.mjs +40 -0
- package/dist/lib/node-esm/TestContainer-5TMMG7HV.mjs.map +7 -0
- package/dist/lib/node-esm/{app-graph-builder-NVE3EVBG.mjs → app-graph-builder-GNGOYXIU.mjs} +12 -17
- package/dist/lib/node-esm/app-graph-builder-GNGOYXIU.mjs.map +7 -0
- package/dist/lib/node-esm/{blueprint-definition-NC7NNJGI.mjs → blueprint-definition-4UDBPYRQ.mjs} +6 -6
- package/dist/lib/node-esm/blueprint-definition-4UDBPYRQ.mjs.map +7 -0
- package/dist/lib/node-esm/blueprints/index.mjs +3 -3
- package/dist/lib/node-esm/chunk-3EV4C6GW.mjs +107 -0
- package/dist/lib/node-esm/chunk-3EV4C6GW.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-4YAEFFW2.mjs +12 -0
- package/dist/lib/node-esm/chunk-4YAEFFW2.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-5BG7OJGQ.mjs +176 -0
- package/dist/lib/node-esm/chunk-5BG7OJGQ.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-CPJJOBC3.mjs +790 -0
- package/dist/lib/node-esm/chunk-CPJJOBC3.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-Y3G5NCTP.mjs → chunk-DQMM7ZL5.mjs} +11 -16
- package/dist/lib/node-esm/chunk-DQMM7ZL5.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-BX5PP6AW.mjs → chunk-EP474OF4.mjs} +91 -251
- package/dist/lib/node-esm/chunk-EP474OF4.mjs.map +7 -0
- package/dist/lib/node-esm/chunk-JGN7TDJH.mjs +69 -0
- package/dist/lib/node-esm/chunk-JGN7TDJH.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-5HSJPAK7.mjs → chunk-L3JLWXB5.mjs} +3 -3
- package/dist/lib/node-esm/{chunk-5HSJPAK7.mjs.map → chunk-L3JLWXB5.mjs.map} +1 -1
- package/dist/lib/node-esm/chunk-QZOKU2JW.mjs +22 -0
- package/dist/lib/node-esm/chunk-QZOKU2JW.mjs.map +7 -0
- package/dist/lib/node-esm/{chunk-G3J76DWP.mjs → chunk-WZ4YV7VB.mjs} +13 -13
- package/dist/lib/node-esm/{chunk-G3J76DWP.mjs.map → chunk-WZ4YV7VB.mjs.map} +3 -3
- package/dist/lib/node-esm/{compiler-FNZH6TFN.mjs → compiler-QOSDBXG2.mjs} +11 -73
- package/dist/lib/node-esm/compiler-QOSDBXG2.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +49 -43
- package/dist/lib/node-esm/index.mjs.map +3 -3
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/{operation-resolver-JTCIY6HU.mjs → operation-resolver-YAT75MET.mjs} +9 -12
- package/dist/lib/node-esm/operation-resolver-YAT75MET.mjs.map +7 -0
- package/dist/lib/node-esm/{react-surface-RLANMVMB.mjs → react-surface-SABRQNVU.mjs} +37 -34
- package/dist/lib/node-esm/react-surface-SABRQNVU.mjs.map +7 -0
- package/dist/lib/node-esm/{settings-7AYC5VXN.mjs → settings-QMDXGZCI.mjs} +7 -6
- package/dist/lib/node-esm/settings-QMDXGZCI.mjs.map +7 -0
- package/dist/lib/node-esm/templates/index.mjs +1 -1
- package/dist/lib/node-esm/types/index.mjs +3 -3
- package/dist/types/src/ScriptPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +1 -1
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/script-blueprint.d.ts +3 -21
- package/dist/types/src/blueprints/script-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts +1 -1
- package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts +1 -1
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +3 -6
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +1 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/compiler/compiler.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +1 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +2 -2
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +1 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +2 -2
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts +1 -1
- package/dist/types/src/capabilities/settings/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings/settings.d.ts +4 -3
- package/dist/types/src/capabilities/settings/settings.d.ts.map +1 -1
- package/dist/types/src/components/{FrameContainer/FrameContainer.d.ts → FramePanel/FramePanel.d.ts} +3 -3
- package/dist/types/src/components/FramePanel/FramePanel.d.ts.map +1 -0
- package/dist/types/src/components/FramePanel/index.d.ts +2 -0
- package/dist/types/src/components/FramePanel/index.d.ts.map +1 -0
- package/dist/types/src/components/NotebookStack/NotebookCell.d.ts.map +1 -1
- package/dist/types/src/components/NotebookStack/NotebookStack.stories.d.ts +3 -0
- package/dist/types/src/components/NotebookStack/NotebookStack.stories.d.ts.map +1 -1
- package/dist/types/src/components/QueryEditor/QueryEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts +3 -2
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts.map +1 -1
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.stories.d.ts +3 -0
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.stories.d.ts.map +1 -1
- package/dist/types/src/components/TestPanel/TestPanel.d.ts.map +1 -1
- package/dist/types/src/components/TestPanel/index.d.ts +0 -1
- package/dist/types/src/components/TestPanel/index.d.ts.map +1 -1
- package/dist/types/src/components/TypescriptEditor/TypescriptEditor.stories.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +4 -5
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/constants.d.ts +2 -0
- package/dist/types/src/constants.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/DeploymentDialog/DeploymentDialog.d.ts +0 -2
- package/dist/types/src/containers/DeploymentDialog/DeploymentDialog.d.ts.map +1 -0
- package/dist/types/src/{components → containers}/DeploymentDialog/DeploymentDialog.stories.d.ts +3 -0
- package/dist/types/src/{components → containers}/DeploymentDialog/DeploymentDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/DeploymentDialog/index.d.ts +3 -0
- package/dist/types/src/containers/DeploymentDialog/index.d.ts.map +1 -0
- package/dist/types/src/containers/NotebookContainer/NotebookContainer.d.ts +7 -0
- package/dist/types/src/containers/NotebookContainer/NotebookContainer.d.ts.map +1 -0
- package/dist/types/src/containers/NotebookContainer/NotebookContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/NotebookContainer/index.d.ts +3 -0
- package/dist/types/src/containers/NotebookContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components → containers/ScriptContainer}/ScriptContainer.d.ts +3 -4
- package/dist/types/src/containers/ScriptContainer/ScriptContainer.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptContainer/index.d.ts +3 -0
- package/dist/types/src/containers/ScriptContainer/index.d.ts.map +1 -0
- package/dist/types/src/{components/Settings → containers/ScriptObjectSettings}/ScriptObjectSettings.d.ts +0 -1
- package/dist/types/src/containers/ScriptObjectSettings/ScriptObjectSettings.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptObjectSettings/index.d.ts +3 -0
- package/dist/types/src/containers/ScriptObjectSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptPluginSettings/ScriptPluginSettings.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptPluginSettings/index.d.ts +3 -0
- package/dist/types/src/containers/ScriptPluginSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptProperties/ScriptProperties.d.ts +7 -0
- package/dist/types/src/containers/ScriptProperties/ScriptProperties.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptProperties/index.d.ts +3 -0
- package/dist/types/src/containers/ScriptProperties/index.d.ts.map +1 -0
- package/dist/types/src/containers/TestContainer/TestContainer.d.ts.map +1 -0
- package/dist/types/src/containers/TestContainer/index.d.ts +3 -0
- package/dist/types/src/containers/TestContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +9 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/deploy.d.ts +2 -1
- package/dist/types/src/hooks/deploy.d.ts.map +1 -1
- package/dist/types/src/hooks/format.d.ts +1 -0
- package/dist/types/src/hooks/format.d.ts.map +1 -1
- package/dist/types/src/hooks/template.d.ts +1 -0
- package/dist/types/src/hooks/template.d.ts.map +1 -1
- package/dist/types/src/hooks/useToolbarState.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -0
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/templates/chess-bot.d.ts.map +1 -1
- package/dist/types/src/templates/commentary.d.ts.map +1 -1
- package/dist/types/src/templates/index.d.ts +18 -18
- package/dist/types/src/translations.d.ts +2 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Notebook.d.ts +12 -4
- package/dist/types/src/types/Notebook.d.ts.map +1 -1
- package/dist/types/src/types/actions.d.ts +3 -3
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +84 -83
- package/src/ScriptPlugin.tsx +17 -18
- package/src/blueprints/index.ts +1 -1
- package/src/blueprints/script-blueprint.ts +14 -7
- package/src/capabilities/app-graph-builder/app-graph-builder.ts +10 -9
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +6 -12
- package/src/capabilities/operation-resolver/operation-resolver.ts +5 -4
- package/src/capabilities/react-surface/react-surface.tsx +44 -33
- package/src/capabilities/settings/settings.ts +3 -2
- package/src/components/{FrameContainer/FrameContainer.tsx → FramePanel/FramePanel.tsx} +4 -5
- package/src/components/{FrameContainer → FramePanel}/index.ts +1 -1
- package/src/components/NotebookStack/NotebookCell.tsx +9 -11
- package/src/components/NotebookStack/NotebookStack.stories.tsx +3 -4
- package/src/components/NotebookStack/NotebookStack.tsx +3 -3
- package/src/components/QueryEditor/QueryEditor.stories.tsx +18 -16
- package/src/components/ScriptToolbar/ScriptToolbar.stories.tsx +5 -6
- package/src/components/ScriptToolbar/ScriptToolbar.tsx +7 -7
- package/src/components/TestPanel/TestPanel.tsx +29 -27
- package/src/components/TestPanel/index.ts +0 -1
- package/src/components/TypescriptEditor/TypescriptEditor.stories.tsx +16 -14
- package/src/components/TypescriptEditor/TypescriptEditor.tsx +1 -1
- package/src/components/index.ts +4 -9
- package/src/constants.ts +7 -0
- package/src/{components → containers}/DeploymentDialog/DeploymentDialog.stories.tsx +4 -5
- package/src/{components → containers}/DeploymentDialog/DeploymentDialog.tsx +10 -14
- package/src/containers/DeploymentDialog/index.ts +7 -0
- package/src/{components → containers/NotebookContainer}/NotebookContainer.stories.tsx +9 -9
- package/src/{components → containers/NotebookContainer}/NotebookContainer.tsx +39 -43
- package/src/containers/NotebookContainer/index.ts +7 -0
- package/src/{components → containers/ScriptContainer}/ScriptContainer.tsx +21 -21
- package/src/containers/ScriptContainer/index.ts +7 -0
- package/src/{components/Settings → containers/ScriptObjectSettings}/ScriptObjectSettings.tsx +7 -25
- package/src/containers/ScriptObjectSettings/index.ts +7 -0
- package/src/{components/Settings → containers/ScriptPluginSettings}/ScriptPluginSettings.tsx +11 -11
- package/src/containers/ScriptPluginSettings/index.ts +7 -0
- package/src/containers/ScriptProperties/ScriptProperties.tsx +33 -0
- package/src/containers/ScriptProperties/index.ts +7 -0
- package/src/{components/TestPanel → containers/TestContainer}/TestContainer.tsx +7 -6
- package/src/containers/TestContainer/index.ts +7 -0
- package/src/containers/index.ts +13 -0
- package/src/e2e/deploy.test.ts +1 -1
- package/src/hooks/deploy.ts +5 -5
- package/src/hooks/format.ts +1 -0
- package/src/hooks/template.ts +2 -2
- package/src/hooks/useCompiler.ts +1 -1
- package/src/hooks/useCreateAndDeployScriptTemplates.ts +1 -1
- package/src/hooks/useToolbarState.ts +7 -6
- package/src/index.ts +1 -0
- package/src/meta.ts +2 -2
- package/src/templates/anthropic.ts +1 -1
- package/src/templates/chat.ts +1 -1
- package/src/templates/chess-bot.ts +5 -5
- package/src/templates/commentary.ts +14 -15
- package/src/templates/data-generator.ts +1 -1
- package/src/templates/discord.ts +3 -3
- package/src/templates/forex-effect.ts +2 -2
- package/src/templates/forex.ts +1 -1
- package/src/templates/gmail.ts +4 -4
- package/src/templates/index.ts +18 -18
- package/src/templates/ping.ts +1 -1
- package/src/translations.ts +2 -0
- package/src/types/Notebook.ts +5 -5
- package/src/types/actions.ts +2 -2
- package/src/types/capabilities.ts +2 -2
- package/src/types/events.ts +1 -1
- package/dist/lib/browser/DeploymentDialog-OSL6RMPA.mjs +0 -14
- package/dist/lib/browser/DeploymentDialog-OSL6RMPA.mjs.map +0 -7
- package/dist/lib/browser/NotebookContainer-NBAXYESH.mjs.map +0 -7
- package/dist/lib/browser/ScriptContainer-WD33CJMI.mjs +0 -149
- package/dist/lib/browser/ScriptContainer-WD33CJMI.mjs.map +0 -7
- package/dist/lib/browser/app-graph-builder-7VO7AUI6.mjs.map +0 -7
- package/dist/lib/browser/blueprint-definition-OSOUYI7A.mjs +0 -17
- package/dist/lib/browser/blueprint-definition-OSOUYI7A.mjs.map +0 -7
- package/dist/lib/browser/chunk-BTWHM6FH.mjs +0 -270
- package/dist/lib/browser/chunk-BTWHM6FH.mjs.map +0 -7
- package/dist/lib/browser/chunk-C53UJGSU.mjs.map +0 -7
- package/dist/lib/browser/chunk-F3QKSKSF.mjs.map +0 -7
- package/dist/lib/browser/chunk-I7CSE6T3.mjs +0 -110
- package/dist/lib/browser/chunk-I7CSE6T3.mjs.map +0 -7
- package/dist/lib/browser/chunk-TWX2NMZN.mjs.map +0 -7
- package/dist/lib/browser/chunk-UX4GHJ5E.mjs +0 -105
- package/dist/lib/browser/chunk-UX4GHJ5E.mjs.map +0 -7
- package/dist/lib/browser/chunk-XCN4D3Z5.mjs +0 -606
- package/dist/lib/browser/chunk-XCN4D3Z5.mjs.map +0 -7
- package/dist/lib/browser/compiler-76F3QAXC.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-HUILPPKT.mjs.map +0 -7
- package/dist/lib/browser/react-surface-O6GKHB2J.mjs.map +0 -7
- package/dist/lib/browser/settings-3ENI25PI.mjs.map +0 -7
- package/dist/lib/node-esm/DeploymentDialog-OGBJPVIX.mjs +0 -15
- package/dist/lib/node-esm/DeploymentDialog-OGBJPVIX.mjs.map +0 -7
- package/dist/lib/node-esm/NotebookContainer-IUAYVJSD.mjs.map +0 -7
- package/dist/lib/node-esm/ScriptContainer-K7JCEU5Z.mjs +0 -150
- package/dist/lib/node-esm/ScriptContainer-K7JCEU5Z.mjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-NVE3EVBG.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-NC7NNJGI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4F5FJZ36.mjs +0 -107
- package/dist/lib/node-esm/chunk-4F5FJZ36.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-4QNZMXW6.mjs +0 -607
- package/dist/lib/node-esm/chunk-4QNZMXW6.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-BX5PP6AW.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-SLU3KRV3.mjs +0 -112
- package/dist/lib/node-esm/chunk-SLU3KRV3.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VQPIA4VF.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-VWOLKNMO.mjs +0 -271
- package/dist/lib/node-esm/chunk-VWOLKNMO.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-Y3G5NCTP.mjs.map +0 -7
- package/dist/lib/node-esm/compiler-FNZH6TFN.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-JTCIY6HU.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-RLANMVMB.mjs.map +0 -7
- package/dist/lib/node-esm/settings-7AYC5VXN.mjs.map +0 -7
- package/dist/types/src/components/DeploymentDialog/DeploymentDialog.d.ts.map +0 -1
- package/dist/types/src/components/DeploymentDialog/index.d.ts +0 -4
- package/dist/types/src/components/DeploymentDialog/index.d.ts.map +0 -1
- package/dist/types/src/components/FrameContainer/FrameContainer.d.ts.map +0 -1
- package/dist/types/src/components/FrameContainer/frame.d.ts +0 -2
- package/dist/types/src/components/FrameContainer/frame.d.ts.map +0 -1
- package/dist/types/src/components/FrameContainer/index.d.ts +0 -2
- package/dist/types/src/components/FrameContainer/index.d.ts.map +0 -1
- package/dist/types/src/components/NotebookContainer.d.ts +0 -8
- package/dist/types/src/components/NotebookContainer.d.ts.map +0 -1
- package/dist/types/src/components/NotebookContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/ScriptContainer.d.ts.map +0 -1
- package/dist/types/src/components/Settings/ScriptObjectSettings.d.ts.map +0 -1
- package/dist/types/src/components/Settings/ScriptPluginSettings.d.ts.map +0 -1
- package/dist/types/src/components/Settings/index.d.ts +0 -3
- package/dist/types/src/components/Settings/index.d.ts.map +0 -1
- package/dist/types/src/components/TestPanel/TestContainer.d.ts.map +0 -1
- package/src/components/DeploymentDialog/index.ts +0 -9
- package/src/components/FrameContainer/frame.html +0 -25
- package/src/components/FrameContainer/frame.tsx +0 -51
- package/src/components/Settings/index.ts +0 -6
- /package/dist/types/src/{components → containers/NotebookContainer}/NotebookContainer.stories.d.ts +0 -0
- /package/dist/types/src/{components/Settings → containers/ScriptPluginSettings}/ScriptPluginSettings.d.ts +0 -0
- /package/dist/types/src/{components/TestPanel → containers/TestContainer}/TestContainer.d.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-script",
|
|
3
|
-
"version": "0.8.4-main.
|
|
3
|
+
"version": "0.8.4-main.6fa680abb7",
|
|
4
4
|
"description": "Braneframe notebook plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -14,27 +14,27 @@
|
|
|
14
14
|
"type": "module",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
+
"source": "./src/index.ts",
|
|
17
18
|
"browser": "./dist/lib/browser/index.mjs",
|
|
18
19
|
"node": "./dist/lib/node-esm/index.mjs",
|
|
19
|
-
"source": "./src/index.ts",
|
|
20
20
|
"types": "./dist/types/src/index.d.ts"
|
|
21
21
|
},
|
|
22
22
|
"./blueprints": {
|
|
23
|
+
"source": "./src/blueprints/index.ts",
|
|
23
24
|
"browser": "./dist/lib/browser/blueprints/index.mjs",
|
|
24
25
|
"node": "./dist/lib/node-esm/blueprints/index.mjs",
|
|
25
|
-
"source": "./src/blueprints/index.ts",
|
|
26
26
|
"types": "./dist/types/src/blueprints/index.d.ts"
|
|
27
27
|
},
|
|
28
28
|
"./templates": {
|
|
29
|
+
"source": "./src/templates/index.ts",
|
|
29
30
|
"browser": "./dist/lib/browser/templates/index.mjs",
|
|
30
31
|
"node": "./dist/lib/node-esm/templates/index.mjs",
|
|
31
|
-
"source": "./src/templates/index.ts",
|
|
32
32
|
"types": "./dist/types/src/templates/index.d.ts"
|
|
33
33
|
},
|
|
34
34
|
"./types": {
|
|
35
|
+
"source": "./src/types/index.ts",
|
|
35
36
|
"browser": "./dist/lib/browser/types/index.mjs",
|
|
36
37
|
"node": "./dist/lib/node-esm/types/index.mjs",
|
|
37
|
-
"source": "./src/types/index.ts",
|
|
38
38
|
"types": "./dist/types/src/types/index.d.ts"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"@codemirror/state": "^6.5.2",
|
|
65
65
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
66
66
|
"@codemirror/view": "^6.38.4",
|
|
67
|
-
"@effect-atom/atom": "^0.
|
|
68
|
-
"@effect-atom/atom-react": "^0.
|
|
67
|
+
"@effect-atom/atom": "^0.5.1",
|
|
68
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
69
69
|
"@lezer/common": "^1.2.2",
|
|
70
70
|
"@lezer/highlight": "^1.2.1",
|
|
71
|
-
"@octokit/core": "^
|
|
71
|
+
"@octokit/core": "^7.0.6",
|
|
72
72
|
"@typescript/vfs": "^1.6.0",
|
|
73
73
|
"@valtown/codemirror-continue": "^2.3.1",
|
|
74
74
|
"@valtown/codemirror-ts": "^2.3.1",
|
|
@@ -78,93 +78,94 @@
|
|
|
78
78
|
"prettier": "^3.6.2",
|
|
79
79
|
"react-syntax-highlighter": "^15.6.1",
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
|
-
"@dxos/
|
|
82
|
-
"@dxos/
|
|
83
|
-
"@dxos/
|
|
84
|
-
"@dxos/assistant": "0.8.4-main.
|
|
85
|
-
"@dxos/
|
|
86
|
-
"@dxos/
|
|
87
|
-
"@dxos/client": "0.8.4-main.
|
|
88
|
-
"@dxos/
|
|
89
|
-
"@dxos/
|
|
90
|
-
"@dxos/config": "0.8.4-main.
|
|
91
|
-
"@dxos/
|
|
92
|
-
"@dxos/devtools": "0.8.4-main.
|
|
93
|
-
"@dxos/echo": "0.8.4-main.
|
|
94
|
-
"@dxos/echo-
|
|
95
|
-
"@dxos/echo-
|
|
96
|
-
"@dxos/effect": "0.8.4-main.
|
|
97
|
-
"@dxos/
|
|
98
|
-
"@dxos/functions": "0.8.4-main.
|
|
99
|
-
"@dxos/
|
|
100
|
-
"@dxos/invariant": "0.8.4-main.
|
|
101
|
-
"@dxos/
|
|
102
|
-
"@dxos/
|
|
103
|
-
"@dxos/
|
|
104
|
-
"@dxos/plugin-
|
|
105
|
-
"@dxos/
|
|
106
|
-
"@dxos/
|
|
107
|
-
"@dxos/plugin-
|
|
108
|
-
"@dxos/plugin-
|
|
109
|
-
"@dxos/plugin-
|
|
110
|
-
"@dxos/plugin-
|
|
111
|
-
"@dxos/plugin-
|
|
112
|
-
"@dxos/plugin-
|
|
113
|
-
"@dxos/plugin-
|
|
114
|
-
"@dxos/plugin-
|
|
115
|
-
"@dxos/
|
|
116
|
-
"@dxos/
|
|
117
|
-
"@dxos/react-
|
|
118
|
-
"@dxos/
|
|
119
|
-
"@dxos/react-ui-
|
|
120
|
-
"@dxos/react-
|
|
121
|
-
"@dxos/react-ui-
|
|
122
|
-
"@dxos/react-ui-
|
|
123
|
-
"@dxos/react-ui-
|
|
124
|
-
"@dxos/react-ui-
|
|
125
|
-
"@dxos/react-ui-
|
|
126
|
-
"@dxos/react-ui-
|
|
127
|
-
"@dxos/
|
|
128
|
-
"@dxos/
|
|
129
|
-
"@dxos/
|
|
130
|
-
"@dxos/
|
|
131
|
-
"@dxos/ui": "0.8.4-main.
|
|
132
|
-
"@dxos/
|
|
133
|
-
"@dxos/util": "0.8.4-main.
|
|
134
|
-
"@dxos/vendor-quickjs": "0.8.4-main.
|
|
135
|
-
"@dxos/
|
|
81
|
+
"@dxos/app-framework": "0.8.4-main.6fa680abb7",
|
|
82
|
+
"@dxos/ai": "0.8.4-main.6fa680abb7",
|
|
83
|
+
"@dxos/app-toolkit": "0.8.4-main.6fa680abb7",
|
|
84
|
+
"@dxos/assistant-toolkit": "0.8.4-main.6fa680abb7",
|
|
85
|
+
"@dxos/async": "0.8.4-main.6fa680abb7",
|
|
86
|
+
"@dxos/blueprints": "0.8.4-main.6fa680abb7",
|
|
87
|
+
"@dxos/client-protocol": "0.8.4-main.6fa680abb7",
|
|
88
|
+
"@dxos/debug": "0.8.4-main.6fa680abb7",
|
|
89
|
+
"@dxos/assistant": "0.8.4-main.6fa680abb7",
|
|
90
|
+
"@dxos/config": "0.8.4-main.6fa680abb7",
|
|
91
|
+
"@dxos/client": "0.8.4-main.6fa680abb7",
|
|
92
|
+
"@dxos/devtools": "0.8.4-main.6fa680abb7",
|
|
93
|
+
"@dxos/echo": "0.8.4-main.6fa680abb7",
|
|
94
|
+
"@dxos/echo-protocol": "0.8.4-main.6fa680abb7",
|
|
95
|
+
"@dxos/echo-db": "0.8.4-main.6fa680abb7",
|
|
96
|
+
"@dxos/effect": "0.8.4-main.6fa680abb7",
|
|
97
|
+
"@dxos/compute": "0.8.4-main.6fa680abb7",
|
|
98
|
+
"@dxos/functions": "0.8.4-main.6fa680abb7",
|
|
99
|
+
"@dxos/echo-query": "0.8.4-main.6fa680abb7",
|
|
100
|
+
"@dxos/invariant": "0.8.4-main.6fa680abb7",
|
|
101
|
+
"@dxos/functions-simulator-cloudflare": "0.8.4-main.6fa680abb7",
|
|
102
|
+
"@dxos/keys": "0.8.4-main.6fa680abb7",
|
|
103
|
+
"@dxos/functions-runtime": "0.8.4-main.6fa680abb7",
|
|
104
|
+
"@dxos/plugin-assistant": "0.8.4-main.6fa680abb7",
|
|
105
|
+
"@dxos/log": "0.8.4-main.6fa680abb7",
|
|
106
|
+
"@dxos/operation": "0.8.4-main.6fa680abb7",
|
|
107
|
+
"@dxos/plugin-automation": "0.8.4-main.6fa680abb7",
|
|
108
|
+
"@dxos/plugin-client": "0.8.4-main.6fa680abb7",
|
|
109
|
+
"@dxos/plugin-deck": "0.8.4-main.6fa680abb7",
|
|
110
|
+
"@dxos/plugin-explorer": "0.8.4-main.6fa680abb7",
|
|
111
|
+
"@dxos/plugin-markdown": "0.8.4-main.6fa680abb7",
|
|
112
|
+
"@dxos/plugin-graph": "0.8.4-main.6fa680abb7",
|
|
113
|
+
"@dxos/plugin-stack": "0.8.4-main.6fa680abb7",
|
|
114
|
+
"@dxos/plugin-space": "0.8.4-main.6fa680abb7",
|
|
115
|
+
"@dxos/plugin-theme": "0.8.4-main.6fa680abb7",
|
|
116
|
+
"@dxos/plugin-token-manager": "0.8.4-main.6fa680abb7",
|
|
117
|
+
"@dxos/react-client": "0.8.4-main.6fa680abb7",
|
|
118
|
+
"@dxos/protocols": "0.8.4-main.6fa680abb7",
|
|
119
|
+
"@dxos/react-ui-attention": "0.8.4-main.6fa680abb7",
|
|
120
|
+
"@dxos/react-edge-client": "0.8.4-main.6fa680abb7",
|
|
121
|
+
"@dxos/react-ui-editor": "0.8.4-main.6fa680abb7",
|
|
122
|
+
"@dxos/react-ui-components": "0.8.4-main.6fa680abb7",
|
|
123
|
+
"@dxos/react-ui-form": "0.8.4-main.6fa680abb7",
|
|
124
|
+
"@dxos/react-ui-menu": "0.8.4-main.6fa680abb7",
|
|
125
|
+
"@dxos/react-ui-list": "0.8.4-main.6fa680abb7",
|
|
126
|
+
"@dxos/react-ui-mosaic": "0.8.4-main.6fa680abb7",
|
|
127
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.4-main.6fa680abb7",
|
|
128
|
+
"@dxos/react-ui-stack": "0.8.4-main.6fa680abb7",
|
|
129
|
+
"@dxos/rpc": "0.8.4-main.6fa680abb7",
|
|
130
|
+
"@dxos/schema": "0.8.4-main.6fa680abb7",
|
|
131
|
+
"@dxos/ui": "0.8.4-main.6fa680abb7",
|
|
132
|
+
"@dxos/rpc-tunnel": "0.8.4-main.6fa680abb7",
|
|
133
|
+
"@dxos/util": "0.8.4-main.6fa680abb7",
|
|
134
|
+
"@dxos/vendor-quickjs": "0.8.4-main.6fa680abb7",
|
|
135
|
+
"@dxos/ui-editor": "0.8.4-main.6fa680abb7",
|
|
136
|
+
"@dxos/types": "0.8.4-main.6fa680abb7"
|
|
136
137
|
},
|
|
137
138
|
"devDependencies": {
|
|
138
139
|
"@automerge/automerge": "3.2.3",
|
|
139
|
-
"@effect-atom/atom-react": "^0.
|
|
140
|
-
"@effect/ai": "0.
|
|
141
|
-
"@effect/ai-anthropic": "0.
|
|
142
|
-
"@effect/platform": "0.
|
|
140
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
141
|
+
"@effect/ai": "0.33.2",
|
|
142
|
+
"@effect/ai-anthropic": "0.23.0",
|
|
143
|
+
"@effect/platform": "0.94.4",
|
|
143
144
|
"@types/react": "~19.2.7",
|
|
144
145
|
"@types/react-dom": "~19.2.3",
|
|
145
146
|
"chess.js": "^1.0.0",
|
|
146
|
-
"effect": "3.19.
|
|
147
|
+
"effect": "3.19.16",
|
|
147
148
|
"react": "~19.2.3",
|
|
148
149
|
"react-dom": "~19.2.3",
|
|
149
|
-
"vite": "7.1.
|
|
150
|
-
"@dxos/
|
|
151
|
-
"@dxos/
|
|
152
|
-
"@dxos/plugin-automation": "0.8.4-main.
|
|
153
|
-
"@dxos/plugin-chess": "0.8.4-main.
|
|
154
|
-
"@dxos/plugin-testing": "0.8.4-main.
|
|
155
|
-
"@dxos/
|
|
156
|
-
"@dxos/
|
|
157
|
-
"@dxos/
|
|
158
|
-
"@dxos/ui
|
|
150
|
+
"vite": "^7.1.11",
|
|
151
|
+
"@dxos/config": "0.8.4-main.6fa680abb7",
|
|
152
|
+
"@dxos/echo-db": "0.8.4-main.6fa680abb7",
|
|
153
|
+
"@dxos/plugin-automation": "0.8.4-main.6fa680abb7",
|
|
154
|
+
"@dxos/plugin-chess": "0.8.4-main.6fa680abb7",
|
|
155
|
+
"@dxos/plugin-testing": "0.8.4-main.6fa680abb7",
|
|
156
|
+
"@dxos/random": "0.8.4-main.6fa680abb7",
|
|
157
|
+
"@dxos/storybook-utils": "0.8.4-main.6fa680abb7",
|
|
158
|
+
"@dxos/ui-theme": "0.8.4-main.6fa680abb7",
|
|
159
|
+
"@dxos/react-ui": "0.8.4-main.6fa680abb7"
|
|
159
160
|
},
|
|
160
161
|
"peerDependencies": {
|
|
161
|
-
"@effect-atom/atom-react": "^0.
|
|
162
|
-
"@effect/platform": "0.
|
|
163
|
-
"effect": "3.19.
|
|
162
|
+
"@effect-atom/atom-react": "^0.5.0",
|
|
163
|
+
"@effect/platform": "0.94.4",
|
|
164
|
+
"effect": "3.19.16",
|
|
164
165
|
"react": "~19.2.3",
|
|
165
166
|
"react-dom": "~19.2.3",
|
|
166
|
-
"@dxos/ui
|
|
167
|
-
"@dxos/
|
|
167
|
+
"@dxos/react-ui": "0.8.4-main.6fa680abb7",
|
|
168
|
+
"@dxos/ui-theme": "0.8.4-main.6fa680abb7"
|
|
168
169
|
},
|
|
169
170
|
"publishConfig": {
|
|
170
171
|
"access": "public"
|
package/src/ScriptPlugin.tsx
CHANGED
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import {
|
|
7
|
+
import { Plugin } from '@dxos/app-framework';
|
|
8
|
+
import { AppActivationEvents, AppPlugin } from '@dxos/app-toolkit';
|
|
8
9
|
import { Ref } from '@dxos/echo';
|
|
9
10
|
import { Script } from '@dxos/functions';
|
|
10
11
|
import { Operation } from '@dxos/operation';
|
|
@@ -24,16 +25,9 @@ import { ScriptEvents } from './types';
|
|
|
24
25
|
import { Notebook, ScriptOperation } from './types';
|
|
25
26
|
|
|
26
27
|
export const ScriptPlugin = Plugin.define(meta).pipe(
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}),
|
|
31
|
-
Plugin.addModule({
|
|
32
|
-
activatesOn: ScriptEvents.SetupCompiler,
|
|
33
|
-
activate: Compiler,
|
|
34
|
-
}),
|
|
35
|
-
Common.Plugin.addTranslationsModule({ translations }),
|
|
36
|
-
Common.Plugin.addMetadataModule({
|
|
28
|
+
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
29
|
+
AppPlugin.addBlueprintDefinitionModule({ activate: BlueprintDefinition }),
|
|
30
|
+
AppPlugin.addMetadataModule({
|
|
37
31
|
metadata: [
|
|
38
32
|
{
|
|
39
33
|
id: Script.Script.typename,
|
|
@@ -48,7 +42,6 @@ export const ScriptPlugin = Plugin.define(meta).pipe(
|
|
|
48
42
|
const { object } = yield* Operation.invoke(ScriptOperation.CreateScript, props);
|
|
49
43
|
return object;
|
|
50
44
|
})) satisfies CreateObject,
|
|
51
|
-
addToCollectionOnCreate: true,
|
|
52
45
|
},
|
|
53
46
|
},
|
|
54
47
|
{
|
|
@@ -58,15 +51,21 @@ export const ScriptPlugin = Plugin.define(meta).pipe(
|
|
|
58
51
|
iconHue: 'sky',
|
|
59
52
|
inputSchema: ScriptOperation.NotebookProps,
|
|
60
53
|
createObject: ((props) => Effect.sync(() => Notebook.make(props))) satisfies CreateObject,
|
|
61
|
-
addToCollectionOnCreate: true,
|
|
62
54
|
},
|
|
63
55
|
},
|
|
64
56
|
],
|
|
65
57
|
}),
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
58
|
+
AppPlugin.addOperationResolverModule({ activate: OperationResolver }),
|
|
59
|
+
AppPlugin.addSchemaModule({ schema: [Script.Script] }),
|
|
60
|
+
AppPlugin.addSurfaceModule({ activate: ReactSurface }),
|
|
61
|
+
AppPlugin.addTranslationsModule({ translations }),
|
|
62
|
+
Plugin.addModule({
|
|
63
|
+
activatesOn: AppActivationEvents.SetupSettings,
|
|
64
|
+
activate: ScriptSettings,
|
|
65
|
+
}),
|
|
66
|
+
Plugin.addModule({
|
|
67
|
+
activatesOn: ScriptEvents.SetupCompiler,
|
|
68
|
+
activate: Compiler,
|
|
69
|
+
}),
|
|
71
70
|
Plugin.make,
|
|
72
71
|
);
|
package/src/blueprints/index.ts
CHANGED
|
@@ -2,23 +2,30 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { type AppCapabilities } from '@dxos/app-toolkit';
|
|
5
6
|
import { Blueprint, Template } from '@dxos/blueprints';
|
|
6
|
-
import { type FunctionDefinition } from '@dxos/functions';
|
|
7
7
|
import { trim } from '@dxos/util';
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
export const tools: string[] = [];
|
|
9
|
+
const BLUEPRINT_KEY = 'org.dxos.blueprint.script';
|
|
11
10
|
|
|
12
|
-
|
|
11
|
+
const functions: AppCapabilities.BlueprintDefinition['functions'] = [];
|
|
13
12
|
|
|
14
|
-
|
|
13
|
+
const make = () =>
|
|
15
14
|
Blueprint.make({
|
|
16
|
-
key:
|
|
15
|
+
key: BLUEPRINT_KEY,
|
|
17
16
|
name: 'Script',
|
|
18
|
-
tools: Blueprint.toolDefinitions({ functions, tools }),
|
|
17
|
+
tools: Blueprint.toolDefinitions({ functions, tools: [] }),
|
|
19
18
|
instructions: Template.make({
|
|
20
19
|
source: trim`
|
|
21
20
|
You can create and update scripts which contain Typescript code.
|
|
22
21
|
`,
|
|
23
22
|
}),
|
|
24
23
|
});
|
|
24
|
+
|
|
25
|
+
const blueprint: AppCapabilities.BlueprintDefinition = {
|
|
26
|
+
key: BLUEPRINT_KEY,
|
|
27
|
+
functions,
|
|
28
|
+
make,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export default blueprint;
|
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
8
9
|
import { Script } from '@dxos/functions';
|
|
9
|
-
import {
|
|
10
|
+
import { PLANK_COMPANION_TYPE } from '@dxos/plugin-deck/types';
|
|
10
11
|
import { GraphBuilder } from '@dxos/plugin-graph';
|
|
11
12
|
|
|
12
13
|
import { meta } from '../../meta';
|
|
@@ -15,12 +16,12 @@ export default Capability.makeModule(
|
|
|
15
16
|
Effect.fnUntraced(function* () {
|
|
16
17
|
const extensions = yield* Effect.all([
|
|
17
18
|
GraphBuilder.createTypeExtension({
|
|
18
|
-
id: `${meta.id}
|
|
19
|
+
id: `${meta.id}.execute`,
|
|
19
20
|
type: Script.Script,
|
|
20
|
-
connector: (
|
|
21
|
+
connector: () =>
|
|
21
22
|
Effect.succeed([
|
|
22
23
|
{
|
|
23
|
-
id:
|
|
24
|
+
id: 'execute',
|
|
24
25
|
type: PLANK_COMPANION_TYPE,
|
|
25
26
|
data: 'execute',
|
|
26
27
|
properties: {
|
|
@@ -32,12 +33,12 @@ export default Capability.makeModule(
|
|
|
32
33
|
]),
|
|
33
34
|
}),
|
|
34
35
|
GraphBuilder.createTypeExtension({
|
|
35
|
-
id: `${meta.id}
|
|
36
|
+
id: `${meta.id}.logs`,
|
|
36
37
|
type: Script.Script,
|
|
37
|
-
connector: (
|
|
38
|
+
connector: () =>
|
|
38
39
|
Effect.succeed([
|
|
39
40
|
{
|
|
40
|
-
id:
|
|
41
|
+
id: 'logs',
|
|
41
42
|
type: PLANK_COMPANION_TYPE,
|
|
42
43
|
data: 'logs',
|
|
43
44
|
properties: {
|
|
@@ -50,6 +51,6 @@ export default Capability.makeModule(
|
|
|
50
51
|
}),
|
|
51
52
|
]);
|
|
52
53
|
|
|
53
|
-
return Capability.contributes(
|
|
54
|
+
return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
|
|
54
55
|
}),
|
|
55
56
|
);
|
|
@@ -4,20 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
8
9
|
|
|
9
10
|
import { ScriptBlueprint } from '../../blueprints';
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
Capability.Capability<typeof
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
const blueprintDefinition = Capability.makeModule<[], BlueprintCapabilities>(() =>
|
|
17
|
-
Effect.succeed([
|
|
18
|
-
Capability.contributes(Common.Capability.Functions, ScriptBlueprint.functions),
|
|
19
|
-
Capability.contributes(Common.Capability.BlueprintDefinition, ScriptBlueprint.make()),
|
|
20
|
-
]),
|
|
21
|
-
);
|
|
12
|
+
const blueprintDefinition = Capability.makeModule<
|
|
13
|
+
[],
|
|
14
|
+
Capability.Capability<typeof AppCapabilities.BlueprintDefinition>[]
|
|
15
|
+
>(() => Effect.succeed([Capability.contributes(AppCapabilities.BlueprintDefinition, ScriptBlueprint)]));
|
|
22
16
|
|
|
23
17
|
export default blueprintDefinition;
|
|
@@ -6,19 +6,20 @@ import { Octokit } from '@octokit/core';
|
|
|
6
6
|
import * as Effect from 'effect/Effect';
|
|
7
7
|
import * as Predicate from 'effect/Predicate';
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
10
|
+
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
10
11
|
import { Script } from '@dxos/functions';
|
|
11
12
|
import { Operation, OperationResolver } from '@dxos/operation';
|
|
12
13
|
import { TokenManagerOperation } from '@dxos/plugin-token-manager/types';
|
|
13
14
|
|
|
14
|
-
import { DEPLOYMENT_DIALOG } from '../../
|
|
15
|
+
import { DEPLOYMENT_DIALOG } from '../../constants';
|
|
15
16
|
import { defaultScriptsForIntegration } from '../../meta';
|
|
16
17
|
import { templates } from '../../templates';
|
|
17
18
|
import { ScriptOperation } from '../../types';
|
|
18
19
|
|
|
19
20
|
export default Capability.makeModule(
|
|
20
21
|
Effect.fnUntraced(function* () {
|
|
21
|
-
return Capability.contributes(
|
|
22
|
+
return Capability.contributes(Capabilities.OperationResolver, [
|
|
22
23
|
OperationResolver.make({
|
|
23
24
|
operation: ScriptOperation.CreateScript,
|
|
24
25
|
handler: Effect.fnUntraced(function* ({ name, gistUrl, initialTemplateId }) {
|
|
@@ -60,7 +61,7 @@ export default Capability.makeModule(
|
|
|
60
61
|
.filter(Predicate.isNotNullable);
|
|
61
62
|
|
|
62
63
|
if (scriptTemplates.length > 0) {
|
|
63
|
-
yield* Operation.invoke(
|
|
64
|
+
yield* Operation.invoke(LayoutOperation.UpdateDialog, {
|
|
64
65
|
subject: DEPLOYMENT_DIALOG,
|
|
65
66
|
blockAlign: 'start',
|
|
66
67
|
state: true,
|
|
@@ -5,17 +5,18 @@
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
import React from 'react';
|
|
7
7
|
|
|
8
|
-
import {
|
|
9
|
-
import { useAtomCapability, useSettingsState } from '@dxos/app-framework/
|
|
8
|
+
import { Capabilities, Capability } from '@dxos/app-framework';
|
|
9
|
+
import { Surface, useAtomCapability, useSettingsState } from '@dxos/app-framework/ui';
|
|
10
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
10
11
|
import { InvocationTraceContainer } from '@dxos/devtools';
|
|
11
12
|
import { Obj } from '@dxos/echo';
|
|
12
13
|
import { Script } from '@dxos/functions';
|
|
13
14
|
import { getSpace } from '@dxos/react-client/echo';
|
|
14
|
-
import {
|
|
15
|
+
import { Panel } from '@dxos/react-ui';
|
|
15
16
|
import { type AccessToken } from '@dxos/types';
|
|
16
17
|
|
|
18
|
+
import { DEPLOYMENT_DIALOG } from '../../constants';
|
|
17
19
|
import {
|
|
18
|
-
DEPLOYMENT_DIALOG,
|
|
19
20
|
DeploymentDialog,
|
|
20
21
|
NotebookContainer,
|
|
21
22
|
ScriptContainer,
|
|
@@ -23,26 +24,26 @@ import {
|
|
|
23
24
|
ScriptPluginSettings,
|
|
24
25
|
ScriptProperties,
|
|
25
26
|
TestContainer,
|
|
26
|
-
} from '../../
|
|
27
|
+
} from '../../containers';
|
|
27
28
|
import { useCompiler } from '../../hooks';
|
|
28
29
|
import { meta } from '../../meta';
|
|
29
30
|
import { Notebook, ScriptCapabilities, type ScriptSettings } from '../../types';
|
|
30
31
|
|
|
31
32
|
export default Capability.makeModule(() =>
|
|
32
33
|
Effect.succeed(
|
|
33
|
-
Capability.contributes(
|
|
34
|
-
|
|
35
|
-
id: `${meta.id}
|
|
34
|
+
Capability.contributes(Capabilities.ReactSurface, [
|
|
35
|
+
Surface.create({
|
|
36
|
+
id: `${meta.id}.plugin-settings`,
|
|
36
37
|
role: 'article',
|
|
37
|
-
filter: (data): data is { subject:
|
|
38
|
-
|
|
38
|
+
filter: (data): data is { subject: AppCapabilities.Settings } =>
|
|
39
|
+
AppCapabilities.isSettings(data.subject) && data.subject.prefix === meta.id,
|
|
39
40
|
component: ({ data: { subject } }) => {
|
|
40
41
|
const { settings, updateSettings } = useSettingsState<ScriptSettings>(subject.atom);
|
|
41
42
|
return <ScriptPluginSettings settings={settings} onSettingsChange={updateSettings} />;
|
|
42
43
|
},
|
|
43
44
|
}),
|
|
44
|
-
|
|
45
|
-
id: `${meta.id}
|
|
45
|
+
Surface.create({
|
|
46
|
+
id: `${meta.id}.script.article`,
|
|
46
47
|
role: ['article', 'section'],
|
|
47
48
|
filter: (data): data is { subject: Script.Script } => Obj.instanceOf(Script.Script, data.subject),
|
|
48
49
|
component: ({ data, role }) => {
|
|
@@ -56,38 +57,46 @@ export default Capability.makeModule(() =>
|
|
|
56
57
|
return <ScriptContainer role={role} subject={data.subject} settings={settings} env={compiler?.environment} />;
|
|
57
58
|
},
|
|
58
59
|
}),
|
|
59
|
-
|
|
60
|
-
id: `${meta.id}
|
|
60
|
+
Surface.create({
|
|
61
|
+
id: `${meta.id}.notebook.article`,
|
|
61
62
|
role: 'article',
|
|
62
|
-
filter: (data): data is { subject: Notebook.Notebook } =>
|
|
63
|
+
filter: (data): data is { attendableId: string; subject: Notebook.Notebook } =>
|
|
64
|
+
typeof data.attendableId === 'string' && Obj.instanceOf(Notebook.Notebook, data.subject),
|
|
63
65
|
component: ({ data, role }) => {
|
|
64
66
|
const compiler = useCompiler();
|
|
65
|
-
return
|
|
67
|
+
return (
|
|
68
|
+
<NotebookContainer
|
|
69
|
+
role={role}
|
|
70
|
+
subject={data.subject}
|
|
71
|
+
attendableId={data.attendableId}
|
|
72
|
+
env={compiler?.environment}
|
|
73
|
+
/>
|
|
74
|
+
);
|
|
66
75
|
},
|
|
67
76
|
}),
|
|
68
77
|
// TODO(burdon): Standardize PluginSettings vs ObjectSettings.
|
|
69
78
|
// TODO(burdon): Why is ScriptProperties different from ScriptObjectSettings?
|
|
70
|
-
|
|
71
|
-
id: `${meta.id}
|
|
79
|
+
Surface.create({
|
|
80
|
+
id: `${meta.id}.companion.base-settings`,
|
|
72
81
|
role: 'base-object-settings',
|
|
73
82
|
filter: (data): data is { subject: Script.Script } => Obj.instanceOf(Script.Script, data.subject),
|
|
74
83
|
component: ({ data }) => <ScriptProperties object={data.subject} />,
|
|
75
84
|
}),
|
|
76
|
-
|
|
77
|
-
id: `${meta.id}
|
|
85
|
+
Surface.create({
|
|
86
|
+
id: `${meta.id}.companion.settings`,
|
|
78
87
|
role: 'object-settings',
|
|
79
88
|
filter: (data): data is { subject: Script.Script } => Obj.instanceOf(Script.Script, data.subject),
|
|
80
89
|
component: ({ data }) => <ScriptObjectSettings object={data.subject} />,
|
|
81
90
|
}),
|
|
82
|
-
|
|
83
|
-
id: `${meta.id}
|
|
91
|
+
Surface.create({
|
|
92
|
+
id: `${meta.id}.companion.execute`,
|
|
84
93
|
role: 'article',
|
|
85
94
|
filter: (data): data is { companionTo: Script.Script } =>
|
|
86
95
|
Obj.instanceOf(Script.Script, data.companionTo) && data.subject === 'execute',
|
|
87
96
|
component: ({ data, role }) => <TestContainer script={data.companionTo} role={role} />,
|
|
88
97
|
}),
|
|
89
|
-
|
|
90
|
-
id: `${meta.id}
|
|
98
|
+
Surface.create({
|
|
99
|
+
id: `${meta.id}.companion.logs`,
|
|
91
100
|
role: 'article',
|
|
92
101
|
filter: (data): data is { companionTo: Script.Script } =>
|
|
93
102
|
Obj.instanceOf(Script.Script, data.companionTo) && data.subject === 'logs',
|
|
@@ -95,18 +104,20 @@ export default Capability.makeModule(() =>
|
|
|
95
104
|
const space = getSpace(data.companionTo);
|
|
96
105
|
const queueDxn = space?.properties.invocationTraceQueue?.dxn;
|
|
97
106
|
return (
|
|
98
|
-
<
|
|
99
|
-
<
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
<Panel.Root role={role}>
|
|
108
|
+
<Panel.Content asChild>
|
|
109
|
+
<InvocationTraceContainer
|
|
110
|
+
db={space?.db}
|
|
111
|
+
queueDxn={queueDxn}
|
|
112
|
+
target={data.companionTo}
|
|
113
|
+
detailAxis='block'
|
|
114
|
+
/>
|
|
115
|
+
</Panel.Content>
|
|
116
|
+
</Panel.Root>
|
|
106
117
|
);
|
|
107
118
|
},
|
|
108
119
|
}),
|
|
109
|
-
|
|
120
|
+
Surface.create({
|
|
110
121
|
id: DEPLOYMENT_DIALOG,
|
|
111
122
|
role: 'dialog',
|
|
112
123
|
filter: (data): data is { props: { accessToken: AccessToken.AccessToken; scriptTemplates: any } } =>
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Effect from 'effect/Effect';
|
|
6
6
|
|
|
7
|
-
import { Capability
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
8
9
|
import { createKvsStore } from '@dxos/effect';
|
|
9
10
|
|
|
10
11
|
import { meta } from '../../meta';
|
|
@@ -22,7 +23,7 @@ export default Capability.makeModule(() =>
|
|
|
22
23
|
|
|
23
24
|
return [
|
|
24
25
|
Capability.contributes(ScriptCapabilities.Settings, settingsAtom),
|
|
25
|
-
Capability.contributes(
|
|
26
|
+
Capability.contributes(AppCapabilities.Settings, {
|
|
26
27
|
prefix: meta.id,
|
|
27
28
|
schema: ScriptSettings,
|
|
28
29
|
atom: settingsAtom,
|