@dxos/plugin-script 0.9.1-main.c7dcc2e112 → 0.9.1-staging.ee54ba693a
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/PLUGIN.mdl +9 -9
- package/dist/lib/neutral/{NotebookArticle-E35G2Y2I.mjs → NotebookArticle-AOBB3XGD.mjs} +27 -45
- package/dist/lib/neutral/NotebookArticle-AOBB3XGD.mjs.map +7 -0
- package/dist/lib/neutral/{ScriptArticle-QW26LOKU.mjs → ScriptArticle-I3DOJARR.mjs} +4 -4
- package/dist/lib/neutral/ScriptArticle-I3DOJARR.mjs.map +7 -0
- package/dist/lib/neutral/ScriptPlugin.mjs +4 -4
- package/dist/lib/neutral/ScriptPlugin.mjs.map +3 -3
- package/dist/lib/neutral/ScriptPlugin.node.mjs +3 -3
- package/dist/lib/neutral/ScriptPlugin.node.mjs.map +3 -3
- package/dist/lib/neutral/{ScriptProperties-ADTWXG6O.mjs → ScriptProperties-RHDQGMGT.mjs} +148 -148
- package/dist/lib/neutral/ScriptProperties-RHDQGMGT.mjs.map +7 -0
- package/dist/lib/neutral/ScriptSettings-NS3ZY7ZR.mjs +35 -0
- package/dist/lib/neutral/ScriptSettings-NS3ZY7ZR.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +6 -6
- package/dist/lib/neutral/capabilities/index.mjs.map +3 -3
- package/dist/lib/neutral/capabilities/node.mjs +5 -5
- package/dist/lib/neutral/capabilities/node.mjs.map +3 -3
- package/dist/lib/neutral/{chunk-ZPFRRBZW.mjs → chunk-652CIABA.mjs} +10 -9
- package/dist/lib/neutral/chunk-652CIABA.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-TRKXIP2Q.mjs → chunk-6DOWVKIW.mjs} +4 -5
- package/dist/lib/neutral/chunk-6DOWVKIW.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-BDHDBPVM.mjs → chunk-CHNFYLKW.mjs} +12 -12
- package/dist/lib/neutral/chunk-CHNFYLKW.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-VXDJH6OL.mjs → chunk-INFWOSTM.mjs} +14 -8
- package/dist/lib/neutral/chunk-INFWOSTM.mjs.map +7 -0
- package/dist/lib/neutral/{chunk-JAJ64B3E.mjs → chunk-KSVKXCTX.mjs} +2 -2
- package/dist/lib/neutral/chunk-USJ44FIU.mjs +8 -0
- package/dist/lib/neutral/{chunk-O6A5PTB3.mjs.map → chunk-USJ44FIU.mjs.map} +1 -1
- package/dist/lib/neutral/{chunk-QV6NCUGM.mjs → chunk-WAGQ77UQ.mjs} +6 -6
- package/dist/lib/neutral/chunk-WAGQ77UQ.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +120 -91
- package/dist/lib/neutral/components/index.mjs.map +4 -4
- package/dist/lib/neutral/containers/index.mjs +5 -3
- package/dist/lib/neutral/containers/index.mjs.map +3 -3
- package/dist/lib/neutral/{create-6LC57CCC.mjs → create-SGHWWTET.mjs} +4 -4
- package/dist/lib/neutral/{create-6LC57CCC.mjs.map → create-SGHWWTET.mjs.map} +4 -4
- package/dist/lib/neutral/{create-object-FZM5ASWM.mjs → create-object-QW66KQWS.mjs} +1 -3
- package/dist/lib/neutral/{create-object-FZM5ASWM.mjs.map → create-object-QW66KQWS.mjs.map} +3 -3
- package/dist/lib/neutral/{create-script-YW437XYZ.mjs → create-script-CIEJOBIU.mjs} +4 -4
- package/dist/lib/neutral/{create-script-YW437XYZ.mjs.map → create-script-CIEJOBIU.mjs.map} +3 -3
- package/dist/lib/neutral/{delete-HCQIQFVP.mjs → delete-72RXVLVI.mjs} +3 -3
- package/dist/lib/neutral/{delete-HCQIQFVP.mjs.map → delete-72RXVLVI.mjs.map} +1 -1
- package/dist/lib/neutral/{deploy-7JVMMHSH.mjs → deploy-PJTJAQZY.mjs} +10 -6
- package/dist/lib/neutral/deploy-PJTJAQZY.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +2 -2
- package/dist/lib/neutral/hooks/index.mjs.map +2 -2
- package/dist/lib/neutral/index.mjs +8 -8
- package/dist/lib/neutral/{inspect-invocations-TAOYDT4H.mjs → inspect-invocations-ZUXVUAML.mjs} +5 -5
- package/dist/lib/neutral/inspect-invocations-ZUXVUAML.mjs.map +7 -0
- package/dist/lib/neutral/{install-function-FJIE2JAI.mjs → install-function-YFDZLVMJ.mjs} +4 -4
- package/dist/lib/neutral/{install-function-FJIE2JAI.mjs.map → install-function-YFDZLVMJ.mjs.map} +1 -1
- package/dist/lib/neutral/{invoke-3HVWY2KF.mjs → invoke-CDRBQ2WA.mjs} +4 -4
- package/dist/lib/neutral/{invoke-3HVWY2KF.mjs.map → invoke-CDRBQ2WA.mjs.map} +1 -1
- package/dist/lib/neutral/meta.json +1 -1
- package/dist/lib/neutral/{operation-handler-6IZ7L4L2.mjs → operation-handler-M3B6IRMV.mjs} +3 -3
- package/dist/lib/neutral/{operation-handler-6IZ7L4L2.mjs.map → operation-handler-M3B6IRMV.mjs.map} +1 -1
- package/dist/lib/neutral/operations/index.mjs +1 -1
- package/dist/lib/neutral/plugin.mjs +1 -1
- package/dist/lib/neutral/{query-deployed-functions-F4FHJNWO.mjs → query-deployed-functions-RBQMGON2.mjs} +4 -4
- package/dist/lib/neutral/{query-deployed-functions-F4FHJNWO.mjs.map → query-deployed-functions-RBQMGON2.mjs.map} +1 -1
- package/dist/lib/neutral/{react-surface-2TZDZQYA.mjs → react-surface-GEXOZLBC.mjs} +4 -5
- package/dist/lib/neutral/react-surface-GEXOZLBC.mjs.map +7 -0
- package/dist/lib/neutral/{read-RQESBAQI.mjs → read-OY3K5R3V.mjs} +3 -3
- package/dist/lib/neutral/{read-RQESBAQI.mjs.map → read-OY3K5R3V.mjs.map} +3 -3
- package/dist/lib/neutral/skill-definition-JZ7UYBT7.mjs +15 -0
- package/dist/lib/neutral/skill-definition-JZ7UYBT7.mjs.map +7 -0
- package/dist/lib/neutral/skills/index.mjs +10 -0
- package/dist/lib/neutral/templates/index.mjs +1 -1
- package/dist/lib/neutral/translations.mjs +6 -7
- package/dist/lib/neutral/translations.mjs.map +2 -2
- package/dist/lib/neutral/types/index.mjs +2 -2
- package/dist/lib/neutral/update-Z5VGOLBN.mjs +44 -0
- package/dist/lib/neutral/update-Z5VGOLBN.mjs.map +7 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +1 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/compiler.d.ts +1 -2
- package/dist/types/src/capabilities/compiler.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +1 -12
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/node.d.ts +1 -1
- package/dist/types/src/capabilities/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts +1 -1
- package/dist/types/src/capabilities/settings.d.ts +1 -3
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/skill-definition.d.ts +5 -0
- package/dist/types/src/capabilities/skill-definition.d.ts.map +1 -0
- package/dist/types/src/components/NotebookStack/NotebookCell.d.ts.map +1 -1
- package/dist/types/src/components/NotebookStack/NotebookStack.d.ts +2 -3
- package/dist/types/src/components/NotebookStack/NotebookStack.d.ts.map +1 -1
- package/dist/types/src/components/NotebookStack/NotebookStack.stories.d.ts +18 -21
- 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.stories.d.ts +18 -21
- package/dist/types/src/components/ScriptToolbar/ScriptToolbar.stories.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 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/DeploymentDialog/DeploymentDialog.stories.d.ts +18 -21
- package/dist/types/src/containers/DeploymentDialog/DeploymentDialog.stories.d.ts.map +1 -1
- package/dist/types/src/containers/NotebookArticle/NotebookArticle.d.ts.map +1 -1
- package/dist/types/src/containers/ScriptArticle/ScriptArticle.stories.d.ts +20 -23
- package/dist/types/src/containers/ScriptArticle/ScriptArticle.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ScriptProperties/ScriptProperties.stories.d.ts +20 -23
- package/dist/types/src/containers/ScriptProperties/ScriptProperties.stories.d.ts.map +1 -1
- package/dist/types/src/containers/ScriptProperties/SkillEditor.d.ts +7 -0
- package/dist/types/src/containers/ScriptProperties/SkillEditor.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptSettings/ScriptSettings.d.ts +8 -0
- package/dist/types/src/containers/ScriptSettings/ScriptSettings.d.ts.map +1 -0
- package/dist/types/src/{components/ScriptPluginSettings/ScriptPluginSettings.stories.d.ts → containers/ScriptSettings/ScriptSettings.stories.d.ts} +20 -23
- package/dist/types/src/containers/ScriptSettings/ScriptSettings.stories.d.ts.map +1 -0
- package/dist/types/src/containers/ScriptSettings/index.d.ts +2 -0
- package/dist/types/src/containers/ScriptSettings/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +1 -0
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/hooks/deploy.d.ts +6 -15
- package/dist/types/src/hooks/deploy.d.ts.map +1 -1
- package/dist/types/src/hooks/format.d.ts +2 -1
- package/dist/types/src/hooks/format.d.ts.map +1 -1
- package/dist/types/src/hooks/template.d.ts +2 -1
- package/dist/types/src/hooks/template.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +4 -0
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/create-script.d.ts.map +1 -1
- package/dist/types/src/skills/functions/create.d.ts.map +1 -0
- package/dist/types/src/skills/functions/definitions.d.ts +75 -0
- package/dist/types/src/skills/functions/definitions.d.ts.map +1 -0
- package/dist/types/src/skills/functions/delete.d.ts +7 -0
- package/dist/types/src/skills/functions/delete.d.ts.map +1 -0
- package/dist/types/src/skills/functions/deploy.d.ts +11 -0
- package/dist/types/src/skills/functions/deploy.d.ts.map +1 -0
- package/dist/types/src/skills/functions/index.d.ts.map +1 -0
- package/dist/types/src/skills/functions/inspect-invocations.d.ts +18 -0
- package/dist/types/src/skills/functions/inspect-invocations.d.ts.map +1 -0
- package/dist/types/src/skills/functions/install-function.d.ts.map +1 -0
- package/dist/types/src/skills/functions/invoke.d.ts +11 -0
- package/dist/types/src/skills/functions/invoke.d.ts.map +1 -0
- package/dist/types/src/skills/functions/query-deployed-functions.d.ts.map +1 -0
- package/dist/types/src/skills/functions/read.d.ts +11 -0
- package/dist/types/src/skills/functions/read.d.ts.map +1 -0
- package/dist/types/src/skills/functions/update.d.ts +16 -0
- package/dist/types/src/skills/functions/update.d.ts.map +1 -0
- package/dist/types/src/skills/index.d.ts +2 -0
- package/dist/types/src/skills/index.d.ts.map +1 -0
- package/dist/types/src/skills/script-skill.d.ts +4 -0
- package/dist/types/src/skills/script-skill.d.ts.map +1 -0
- package/dist/types/src/templates/chess-bot.d.ts +1 -4
- package/dist/types/src/templates/chess-bot.d.ts.map +1 -1
- package/dist/types/src/templates/commentary.d.ts +1 -4
- package/dist/types/src/templates/commentary.d.ts.map +1 -1
- package/dist/types/src/testing/test-script.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +18 -21
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Notebook.d.ts +11 -81
- package/dist/types/src/types/Notebook.d.ts.map +1 -1
- package/dist/types/src/types/ScriptOperation.d.ts +2 -10
- package/dist/types/src/types/ScriptOperation.d.ts.map +1 -1
- package/dist/types/src/util/deploy.d.ts +1 -1
- package/dist/types/src/util/deploy.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +75 -74
- package/src/ScriptPlugin.node.ts +2 -2
- package/src/ScriptPlugin.test.ts +1 -1
- package/src/ScriptPlugin.tsx +2 -2
- package/src/capabilities/create-object.ts +0 -2
- package/src/capabilities/index.ts +1 -1
- package/src/capabilities/node.ts +1 -1
- package/src/capabilities/operation-handler.ts +1 -1
- package/src/capabilities/react-surface.tsx +9 -7
- package/src/capabilities/skill-definition.ts +14 -0
- package/src/components/NotebookStack/NotebookCell.tsx +11 -29
- package/src/components/NotebookStack/NotebookStack.stories.tsx +3 -3
- package/src/components/NotebookStack/NotebookStack.tsx +101 -43
- package/src/components/QueryEditor/QueryEditor.stories.tsx +2 -7
- package/src/components/TypescriptEditor/TypescriptEditor.stories.tsx +2 -2
- package/src/components/TypescriptEditor/TypescriptEditor.tsx +7 -8
- package/src/components/index.ts +0 -4
- package/src/containers/NotebookArticle/NotebookArticle.stories.tsx +4 -4
- package/src/containers/NotebookArticle/NotebookArticle.tsx +20 -42
- package/src/containers/ScriptArticle/ScriptArticle.stories.tsx +5 -5
- package/src/containers/ScriptArticle/ScriptArticle.tsx +3 -3
- package/src/containers/ScriptProperties/FunctionBinding.tsx +1 -1
- package/src/containers/ScriptProperties/FunctionPublishing.tsx +1 -1
- package/src/containers/ScriptProperties/ScriptProperties.stories.tsx +5 -5
- package/src/containers/ScriptProperties/ScriptProperties.tsx +2 -2
- package/src/containers/ScriptProperties/{BlueprintEditor.tsx → SkillEditor.tsx} +22 -22
- package/src/{components/ScriptPluginSettings/ScriptPluginSettings.stories.tsx → containers/ScriptSettings/ScriptSettings.stories.tsx} +4 -4
- package/src/containers/ScriptSettings/ScriptSettings.tsx +47 -0
- package/src/containers/ScriptSettings/index.ts +5 -0
- package/src/containers/index.ts +1 -0
- package/src/e2e/ai.test.ts +14 -11
- package/src/e2e/deploy.test.ts +5 -1
- package/src/hooks/deploy.ts +1 -1
- package/src/index.ts +1 -1
- package/src/operations/create-script.ts +1 -1
- package/src/{blueprints → skills}/functions/create.ts +1 -1
- package/src/{blueprints → skills}/functions/definitions.ts +4 -2
- package/src/{blueprints → skills}/functions/deploy.ts +7 -2
- package/src/{blueprints → skills}/functions/inspect-invocations.ts +2 -2
- package/src/{blueprints → skills}/functions/read.ts +1 -1
- package/src/skills/functions/update.ts +48 -0
- package/src/skills/index.ts +5 -0
- package/src/{blueprints/script-blueprint.ts → skills/script-skill.ts} +12 -12
- package/src/templates/anthropic.ts +1 -1
- package/src/templates/chess-bot.ts +2 -2
- package/src/templates/commentary.ts +4 -4
- package/src/templates/discord.ts +1 -1
- package/src/templates/gmail.ts +1 -1
- package/src/testing/test-notebook.ts +5 -5
- package/src/testing/test-script.ts +1 -1
- package/src/translations.ts +6 -7
- package/src/types/Notebook.ts +9 -13
- package/src/types/ScriptOperation.ts +2 -2
- package/src/util/deploy.ts +7 -3
- package/src/util/functions.ts +3 -3
- package/dist/lib/neutral/NotebookArticle-E35G2Y2I.mjs.map +0 -7
- package/dist/lib/neutral/ScriptArticle-QW26LOKU.mjs.map +0 -7
- package/dist/lib/neutral/ScriptPluginSettings-5AURDJTI.mjs +0 -31
- package/dist/lib/neutral/ScriptPluginSettings-5AURDJTI.mjs.map +0 -7
- package/dist/lib/neutral/ScriptProperties-ADTWXG6O.mjs.map +0 -7
- package/dist/lib/neutral/blueprint-definition-PJ7I3JIQ.mjs +0 -15
- package/dist/lib/neutral/blueprint-definition-PJ7I3JIQ.mjs.map +0 -7
- package/dist/lib/neutral/blueprints/index.mjs +0 -10
- package/dist/lib/neutral/chunk-BDHDBPVM.mjs.map +0 -7
- package/dist/lib/neutral/chunk-O6A5PTB3.mjs +0 -8
- package/dist/lib/neutral/chunk-QV6NCUGM.mjs.map +0 -7
- package/dist/lib/neutral/chunk-TRKXIP2Q.mjs.map +0 -7
- package/dist/lib/neutral/chunk-VXDJH6OL.mjs.map +0 -7
- package/dist/lib/neutral/chunk-ZPFRRBZW.mjs.map +0 -7
- package/dist/lib/neutral/deploy-7JVMMHSH.mjs.map +0 -7
- package/dist/lib/neutral/inspect-invocations-TAOYDT4H.mjs.map +0 -7
- package/dist/lib/neutral/react-surface-2TZDZQYA.mjs.map +0 -7
- package/dist/lib/neutral/update-CO7B6UBS.mjs +0 -63
- package/dist/lib/neutral/update-CO7B6UBS.mjs.map +0 -7
- package/dist/types/src/blueprints/functions/create.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/definitions.d.ts +0 -135
- package/dist/types/src/blueprints/functions/definitions.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/delete.d.ts +0 -17
- package/dist/types/src/blueprints/functions/delete.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/deploy.d.ts +0 -21
- package/dist/types/src/blueprints/functions/deploy.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/inspect-invocations.d.ts +0 -28
- package/dist/types/src/blueprints/functions/inspect-invocations.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/install-function.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/invoke.d.ts +0 -21
- package/dist/types/src/blueprints/functions/invoke.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/query-deployed-functions.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/read.d.ts +0 -21
- package/dist/types/src/blueprints/functions/read.d.ts.map +0 -1
- package/dist/types/src/blueprints/functions/update.d.ts +0 -26
- package/dist/types/src/blueprints/functions/update.d.ts.map +0 -1
- package/dist/types/src/blueprints/index.d.ts +0 -2
- package/dist/types/src/blueprints/index.d.ts.map +0 -1
- package/dist/types/src/blueprints/script-blueprint.d.ts +0 -4
- package/dist/types/src/blueprints/script-blueprint.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition.d.ts +0 -6
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/components/ScriptPluginSettings/ScriptPluginSettings.d.ts +0 -8
- package/dist/types/src/components/ScriptPluginSettings/ScriptPluginSettings.d.ts.map +0 -1
- package/dist/types/src/components/ScriptPluginSettings/ScriptPluginSettings.stories.d.ts.map +0 -1
- package/dist/types/src/components/ScriptPluginSettings/index.d.ts +0 -2
- package/dist/types/src/components/ScriptPluginSettings/index.d.ts.map +0 -1
- package/dist/types/src/containers/ScriptProperties/BlueprintEditor.d.ts +0 -7
- package/dist/types/src/containers/ScriptProperties/BlueprintEditor.d.ts.map +0 -1
- package/src/blueprints/functions/update.ts +0 -68
- package/src/blueprints/index.ts +0 -5
- package/src/capabilities/blueprint-definition.ts +0 -19
- package/src/components/ScriptPluginSettings/ScriptPluginSettings.tsx +0 -42
- package/src/components/ScriptPluginSettings/index.ts +0 -5
- /package/dist/lib/neutral/{chunk-JAJ64B3E.mjs.map → chunk-KSVKXCTX.mjs.map} +0 -0
- /package/dist/lib/neutral/{blueprints → skills}/index.mjs.map +0 -0
- /package/dist/types/src/{blueprints → skills}/functions/create.d.ts +0 -0
- /package/dist/types/src/{blueprints → skills}/functions/index.d.ts +0 -0
- /package/dist/types/src/{blueprints → skills}/functions/install-function.d.ts +0 -0
- /package/dist/types/src/{blueprints → skills}/functions/query-deployed-functions.d.ts +0 -0
- /package/src/{blueprints → skills}/functions/delete.ts +0 -0
- /package/src/{blueprints → skills}/functions/index.ts +0 -0
- /package/src/{blueprints → skills}/functions/install-function.ts +0 -0
- /package/src/{blueprints → skills}/functions/invoke.ts +0 -0
- /package/src/{blueprints → skills}/functions/query-deployed-functions.ts +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-script",
|
|
3
|
-
"version": "0.9.1-
|
|
3
|
+
"version": "0.9.1-staging.ee54ba693a",
|
|
4
4
|
"description": "Braneframe notebook plugin",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"sideEffects": true,
|
|
14
14
|
"type": "module",
|
|
15
15
|
"imports": {
|
|
16
|
-
"#
|
|
17
|
-
"source": "./src/
|
|
18
|
-
"types": "./dist/types/src/
|
|
19
|
-
"default": "./dist/lib/neutral/
|
|
16
|
+
"#skills": {
|
|
17
|
+
"source": "./src/skills/index.ts",
|
|
18
|
+
"types": "./dist/types/src/skills/index.d.ts",
|
|
19
|
+
"default": "./dist/lib/neutral/skills/index.mjs"
|
|
20
20
|
},
|
|
21
21
|
"#capabilities": {
|
|
22
22
|
"source": {
|
|
@@ -82,10 +82,10 @@
|
|
|
82
82
|
"default": "./dist/lib/neutral/index.mjs"
|
|
83
83
|
},
|
|
84
84
|
"./assets/PLUGIN.mdl": "./PLUGIN.mdl",
|
|
85
|
-
"./
|
|
86
|
-
"source": "./src/
|
|
87
|
-
"types": "./dist/types/src/
|
|
88
|
-
"default": "./dist/lib/neutral/
|
|
85
|
+
"./skills": {
|
|
86
|
+
"source": "./src/skills/index.ts",
|
|
87
|
+
"types": "./dist/types/src/skills/index.d.ts",
|
|
88
|
+
"default": "./dist/lib/neutral/skills/index.mjs"
|
|
89
89
|
},
|
|
90
90
|
"./containers": {
|
|
91
91
|
"source": "./src/containers/index.ts",
|
|
@@ -121,7 +121,7 @@
|
|
|
121
121
|
"PLUGIN.mdl"
|
|
122
122
|
],
|
|
123
123
|
"dependencies": {
|
|
124
|
-
"@automerge/automerge": "3.3.0-fragments.
|
|
124
|
+
"@automerge/automerge": "3.3.0-fragments.2",
|
|
125
125
|
"@codemirror/autocomplete": "^6.20.2",
|
|
126
126
|
"@codemirror/lang-javascript": "^6.2.5",
|
|
127
127
|
"@codemirror/language": "^6.12.3",
|
|
@@ -141,81 +141,82 @@
|
|
|
141
141
|
"esbuild-wasm": "^0.28.0",
|
|
142
142
|
"prettier": "^3.6.2",
|
|
143
143
|
"typescript": "^6.0.3",
|
|
144
|
-
"@dxos/ai": "0.9.1-
|
|
145
|
-
"@dxos/app-framework": "0.9.1-
|
|
146
|
-
"@dxos/
|
|
147
|
-
"@dxos/assistant": "0.9.1-
|
|
148
|
-
"@dxos/
|
|
149
|
-
"@dxos/client-protocol": "0.9.1-
|
|
150
|
-
"@dxos/compute": "0.9.1-
|
|
151
|
-
"@dxos/
|
|
152
|
-
"@dxos/
|
|
153
|
-
"@dxos/
|
|
154
|
-
"@dxos/
|
|
155
|
-
"@dxos/
|
|
156
|
-
"@dxos/echo-
|
|
157
|
-
"@dxos/
|
|
158
|
-
"@dxos/
|
|
159
|
-
"@dxos/
|
|
160
|
-
"@dxos/functions
|
|
161
|
-
"@dxos/
|
|
162
|
-
"@dxos/
|
|
163
|
-
"@dxos/
|
|
164
|
-
"@dxos/
|
|
165
|
-
"@dxos/
|
|
166
|
-
"@dxos/plugin-client": "0.9.1-
|
|
167
|
-
"@dxos/plugin-
|
|
168
|
-
"@dxos/plugin-
|
|
169
|
-
"@dxos/plugin-
|
|
170
|
-
"@dxos/plugin-
|
|
171
|
-
"@dxos/plugin-
|
|
172
|
-
"@dxos/
|
|
173
|
-
"@dxos/react-
|
|
174
|
-
"@dxos/react-
|
|
175
|
-
"@dxos/
|
|
176
|
-
"@dxos/react-ui-
|
|
177
|
-
"@dxos/
|
|
178
|
-
"@dxos/react-ui-
|
|
179
|
-
"@dxos/react-ui-
|
|
180
|
-
"@dxos/react-ui-
|
|
181
|
-
"@dxos/
|
|
182
|
-
"@dxos/
|
|
183
|
-
"@dxos/
|
|
184
|
-
"@dxos/
|
|
185
|
-
"@dxos/
|
|
186
|
-
"@dxos/
|
|
187
|
-
"@dxos/ui
|
|
188
|
-
"@dxos/
|
|
144
|
+
"@dxos/ai": "0.9.1-staging.ee54ba693a",
|
|
145
|
+
"@dxos/app-framework": "0.9.1-staging.ee54ba693a",
|
|
146
|
+
"@dxos/assistant-toolkit": "0.9.1-staging.ee54ba693a",
|
|
147
|
+
"@dxos/assistant": "0.9.1-staging.ee54ba693a",
|
|
148
|
+
"@dxos/client": "0.9.1-staging.ee54ba693a",
|
|
149
|
+
"@dxos/client-protocol": "0.9.1-staging.ee54ba693a",
|
|
150
|
+
"@dxos/compute": "0.9.1-staging.ee54ba693a",
|
|
151
|
+
"@dxos/config": "0.9.1-staging.ee54ba693a",
|
|
152
|
+
"@dxos/app-toolkit": "0.9.1-staging.ee54ba693a",
|
|
153
|
+
"@dxos/context": "0.9.1-staging.ee54ba693a",
|
|
154
|
+
"@dxos/devtools": "0.9.1-staging.ee54ba693a",
|
|
155
|
+
"@dxos/echo": "0.9.1-staging.ee54ba693a",
|
|
156
|
+
"@dxos/echo-doc": "0.9.1-staging.ee54ba693a",
|
|
157
|
+
"@dxos/echo-query": "0.9.1-staging.ee54ba693a",
|
|
158
|
+
"@dxos/effect": "0.9.1-staging.ee54ba693a",
|
|
159
|
+
"@dxos/echo-client": "0.9.1-staging.ee54ba693a",
|
|
160
|
+
"@dxos/functions": "0.9.1-staging.ee54ba693a",
|
|
161
|
+
"@dxos/functions-runtime": "0.9.1-staging.ee54ba693a",
|
|
162
|
+
"@dxos/invariant": "0.9.1-staging.ee54ba693a",
|
|
163
|
+
"@dxos/functions-simulator-cloudflare": "0.9.1-staging.ee54ba693a",
|
|
164
|
+
"@dxos/keys": "0.9.1-staging.ee54ba693a",
|
|
165
|
+
"@dxos/log": "0.9.1-staging.ee54ba693a",
|
|
166
|
+
"@dxos/plugin-client": "0.9.1-staging.ee54ba693a",
|
|
167
|
+
"@dxos/plugin-explorer": "0.9.1-staging.ee54ba693a",
|
|
168
|
+
"@dxos/plugin-game": "0.9.1-staging.ee54ba693a",
|
|
169
|
+
"@dxos/plugin-assistant": "0.9.1-staging.ee54ba693a",
|
|
170
|
+
"@dxos/plugin-graph": "0.9.1-staging.ee54ba693a",
|
|
171
|
+
"@dxos/plugin-markdown": "0.9.1-staging.ee54ba693a",
|
|
172
|
+
"@dxos/plugin-space": "0.9.1-staging.ee54ba693a",
|
|
173
|
+
"@dxos/react-client": "0.9.1-staging.ee54ba693a",
|
|
174
|
+
"@dxos/react-ui-attention": "0.9.1-staging.ee54ba693a",
|
|
175
|
+
"@dxos/protocols": "0.9.1-staging.ee54ba693a",
|
|
176
|
+
"@dxos/react-ui-components": "0.9.1-staging.ee54ba693a",
|
|
177
|
+
"@dxos/plugin-routine": "0.9.1-staging.ee54ba693a",
|
|
178
|
+
"@dxos/react-ui-form": "0.9.1-staging.ee54ba693a",
|
|
179
|
+
"@dxos/react-ui-menu": "0.9.1-staging.ee54ba693a",
|
|
180
|
+
"@dxos/react-ui-mosaic": "0.9.1-staging.ee54ba693a",
|
|
181
|
+
"@dxos/react-ui-editor": "0.9.1-staging.ee54ba693a",
|
|
182
|
+
"@dxos/react-ui-syntax-highlighter": "0.9.1-staging.ee54ba693a",
|
|
183
|
+
"@dxos/rpc": "0.9.1-staging.ee54ba693a",
|
|
184
|
+
"@dxos/rpc-tunnel": "0.9.1-staging.ee54ba693a",
|
|
185
|
+
"@dxos/types": "0.9.1-staging.ee54ba693a",
|
|
186
|
+
"@dxos/schema": "0.9.1-staging.ee54ba693a",
|
|
187
|
+
"@dxos/ui": "0.9.1-staging.ee54ba693a",
|
|
188
|
+
"@dxos/ui-editor": "0.9.1-staging.ee54ba693a",
|
|
189
|
+
"@dxos/util": "0.9.1-staging.ee54ba693a"
|
|
189
190
|
},
|
|
190
191
|
"devDependencies": {
|
|
191
192
|
"@effect-atom/atom-react": "^0.5.0",
|
|
192
193
|
"@effect/ai": "0.36.0",
|
|
193
194
|
"@effect/ai-anthropic": "0.26.0",
|
|
194
|
-
"@effect/platform": "0.96.
|
|
195
|
-
"@types/react": "~19.2.
|
|
195
|
+
"@effect/platform": "0.96.2",
|
|
196
|
+
"@types/react": "~19.2.17",
|
|
196
197
|
"@types/react-dom": "~19.2.3",
|
|
197
198
|
"chess.js": "^1.0.0",
|
|
198
|
-
"effect": "3.21.
|
|
199
|
-
"react": "~19.2.
|
|
200
|
-
"react-dom": "~19.2.
|
|
199
|
+
"effect": "3.21.4",
|
|
200
|
+
"react": "~19.2.7",
|
|
201
|
+
"react-dom": "~19.2.7",
|
|
201
202
|
"vite": "^8.0.16",
|
|
202
|
-
"@dxos/plugin-
|
|
203
|
-
"@dxos/config": "0.9.1-
|
|
204
|
-
"@dxos/plugin-chess": "0.9.1-
|
|
205
|
-
"@dxos/plugin-testing": "0.9.1-
|
|
206
|
-
"@dxos/
|
|
207
|
-
"@dxos/
|
|
208
|
-
"@dxos/
|
|
209
|
-
"@dxos/ui-theme": "0.9.1-
|
|
203
|
+
"@dxos/plugin-routine": "0.9.1-staging.ee54ba693a",
|
|
204
|
+
"@dxos/config": "0.9.1-staging.ee54ba693a",
|
|
205
|
+
"@dxos/plugin-chess": "0.9.1-staging.ee54ba693a",
|
|
206
|
+
"@dxos/plugin-testing": "0.9.1-staging.ee54ba693a",
|
|
207
|
+
"@dxos/random": "0.9.1-staging.ee54ba693a",
|
|
208
|
+
"@dxos/react-ui": "0.9.1-staging.ee54ba693a",
|
|
209
|
+
"@dxos/storybook-utils": "0.9.1-staging.ee54ba693a",
|
|
210
|
+
"@dxos/ui-theme": "0.9.1-staging.ee54ba693a"
|
|
210
211
|
},
|
|
211
212
|
"peerDependencies": {
|
|
212
213
|
"@effect-atom/atom-react": "^0.5.0",
|
|
213
|
-
"@effect/platform": "0.96.
|
|
214
|
-
"effect": "3.21.
|
|
215
|
-
"react": "~19.2.
|
|
216
|
-
"react-dom": "~19.2.
|
|
217
|
-
"@dxos/react-ui": "0.9.1-
|
|
218
|
-
"@dxos/ui-theme": "0.9.1-
|
|
214
|
+
"@effect/platform": "0.96.2",
|
|
215
|
+
"effect": "3.21.4",
|
|
216
|
+
"react": "~19.2.7",
|
|
217
|
+
"react-dom": "~19.2.7",
|
|
218
|
+
"@dxos/react-ui": "0.9.1-staging.ee54ba693a",
|
|
219
|
+
"@dxos/ui-theme": "0.9.1-staging.ee54ba693a"
|
|
219
220
|
},
|
|
220
221
|
"publishConfig": {
|
|
221
222
|
"access": "public"
|
package/src/ScriptPlugin.node.ts
CHANGED
|
@@ -6,12 +6,12 @@ import { Plugin } from '@dxos/app-framework';
|
|
|
6
6
|
import { AppPlugin } from '@dxos/app-toolkit';
|
|
7
7
|
import { Script } from '@dxos/compute';
|
|
8
8
|
|
|
9
|
-
import { AppGraphBuilder,
|
|
9
|
+
import { AppGraphBuilder, CreateObject, OperationHandler, SkillDefinition } from '#capabilities';
|
|
10
10
|
import { meta } from '#meta';
|
|
11
11
|
|
|
12
12
|
export const ScriptPlugin = Plugin.define(meta).pipe(
|
|
13
13
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
14
|
-
AppPlugin.
|
|
14
|
+
AppPlugin.addSkillDefinitionModule({ activate: SkillDefinition }),
|
|
15
15
|
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
16
16
|
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
17
17
|
AppPlugin.addSchemaModule({ schema: [Script.Script] }),
|
package/src/ScriptPlugin.test.ts
CHANGED
|
@@ -26,6 +26,6 @@ describe('ScriptPlugin', () => {
|
|
|
26
26
|
);
|
|
27
27
|
|
|
28
28
|
await harness.fire(AppActivationEvents.SetupArtifactDefinition);
|
|
29
|
-
expect(harness.manager.getActive()).toContain(moduleId('
|
|
29
|
+
expect(harness.manager.getActive()).toContain(moduleId('SkillDefinition'));
|
|
30
30
|
});
|
|
31
31
|
});
|
package/src/ScriptPlugin.tsx
CHANGED
|
@@ -8,12 +8,12 @@ import { Script } from '@dxos/compute';
|
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
10
|
AppGraphBuilder,
|
|
11
|
-
BlueprintDefinition,
|
|
12
11
|
Compiler,
|
|
13
12
|
CreateObject,
|
|
14
13
|
OperationHandler,
|
|
15
14
|
ReactSurface,
|
|
16
15
|
ScriptSettings,
|
|
16
|
+
SkillDefinition,
|
|
17
17
|
} from '#capabilities';
|
|
18
18
|
import { meta } from '#meta';
|
|
19
19
|
import { translations } from '#translations';
|
|
@@ -24,7 +24,7 @@ import pluginSpec from '../PLUGIN.mdl?raw';
|
|
|
24
24
|
|
|
25
25
|
export const ScriptPlugin = Plugin.define(meta).pipe(
|
|
26
26
|
AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),
|
|
27
|
-
AppPlugin.
|
|
27
|
+
AppPlugin.addSkillDefinitionModule({ activate: SkillDefinition }),
|
|
28
28
|
AppPlugin.addCreateObjectModule({ activate: CreateObject }),
|
|
29
29
|
AppPlugin.addOperationHandlerModule({ activate: OperationHandler }),
|
|
30
30
|
AppPlugin.addSchemaModule({ schema: [Script.Script] }),
|
|
@@ -25,7 +25,6 @@ export default Capability.makeModule(
|
|
|
25
25
|
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
26
26
|
object,
|
|
27
27
|
target: options.target,
|
|
28
|
-
hidden: true,
|
|
29
28
|
targetNodeId: options.targetNodeId,
|
|
30
29
|
});
|
|
31
30
|
}),
|
|
@@ -39,7 +38,6 @@ export default Capability.makeModule(
|
|
|
39
38
|
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
40
39
|
object,
|
|
41
40
|
target: options.target,
|
|
42
|
-
hidden: true,
|
|
43
41
|
targetNodeId: options.targetNodeId,
|
|
44
42
|
});
|
|
45
43
|
}),
|
|
@@ -6,7 +6,7 @@ import { Capability } from '@dxos/app-framework';
|
|
|
6
6
|
import type { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
9
|
-
export const
|
|
9
|
+
export const SkillDefinition = Capability.lazy('SkillDefinition', () => import('./skill-definition'));
|
|
10
10
|
export const CreateObject = Capability.lazy('CreateObject', () => import('./create-object'));
|
|
11
11
|
export const Compiler = Capability.lazy('Compiler', () => import('./compiler'));
|
|
12
12
|
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
package/src/capabilities/node.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { Capability } from '@dxos/app-framework';
|
|
|
6
6
|
import type { OperationHandlerSet } from '@dxos/compute';
|
|
7
7
|
|
|
8
8
|
export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
|
|
9
|
-
export const
|
|
9
|
+
export const SkillDefinition = Capability.lazy('SkillDefinition', () => import('./skill-definition'));
|
|
10
10
|
export const CreateObject = Capability.lazy('CreateObject', () => import('./create-object'));
|
|
11
11
|
export const Compiler = Capability.lazy('Compiler', () => import('./compiler'));
|
|
12
12
|
export const OperationHandler = Capability.lazy<OperationHandlerSet.OperationHandlerSet>(
|
|
@@ -9,7 +9,7 @@ import { OperationHandlerSet } from '@dxos/compute';
|
|
|
9
9
|
|
|
10
10
|
import { ScriptOperationHandlerSet } from '#operations';
|
|
11
11
|
|
|
12
|
-
import { ScriptHandlers } from '../
|
|
12
|
+
import { ScriptHandlers } from '../skills/functions';
|
|
13
13
|
|
|
14
14
|
export default Capability.makeModule<OperationHandlerSet.OperationHandlerSet>(
|
|
15
15
|
Effect.fnUntraced(function* () {
|
|
@@ -15,8 +15,14 @@ import { useClient } from '@dxos/react-client';
|
|
|
15
15
|
import { getSpace } from '@dxos/react-client/echo';
|
|
16
16
|
import { Panel } from '@dxos/react-ui';
|
|
17
17
|
|
|
18
|
-
import {
|
|
19
|
-
|
|
18
|
+
import {
|
|
19
|
+
DeploymentDialog,
|
|
20
|
+
NotebookArticle,
|
|
21
|
+
ScriptArticle,
|
|
22
|
+
ScriptProperties,
|
|
23
|
+
ScriptSettings,
|
|
24
|
+
TestContainer,
|
|
25
|
+
} from '#containers';
|
|
20
26
|
import { useCompiler } from '#hooks';
|
|
21
27
|
import { meta } from '#meta';
|
|
22
28
|
import { Notebook, ScriptCapabilities, type Settings } from '#types';
|
|
@@ -39,11 +45,7 @@ export default Capability.makeModule(() =>
|
|
|
39
45
|
await client.halo.writeCredentials([getAccessCredential(identityKey)]);
|
|
40
46
|
};
|
|
41
47
|
return (
|
|
42
|
-
<
|
|
43
|
-
settings={settings}
|
|
44
|
-
onSettingsChange={updateSettings}
|
|
45
|
-
onAuthenticate={handleAuthenticate}
|
|
46
|
-
/>
|
|
48
|
+
<ScriptSettings settings={settings} onSettingsChange={updateSettings} onAuthenticate={handleAuthenticate} />
|
|
47
49
|
);
|
|
48
50
|
},
|
|
49
51
|
}),
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Effect from 'effect/Effect';
|
|
6
|
+
|
|
7
|
+
import { Capability } from '@dxos/app-framework';
|
|
8
|
+
import { AppCapabilities } from '@dxos/app-toolkit';
|
|
9
|
+
|
|
10
|
+
import { ScriptSkill } from '#skills';
|
|
11
|
+
|
|
12
|
+
const skillDefinition = () => Effect.succeed([Capability.contributes(AppCapabilities.SkillDefinition, ScriptSkill)]);
|
|
13
|
+
|
|
14
|
+
export default skillDefinition;
|
|
@@ -7,9 +7,9 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
7
7
|
import { Surface } from '@dxos/app-framework/ui';
|
|
8
8
|
import { AppSurface } from '@dxos/app-toolkit/ui';
|
|
9
9
|
import { type Database, Obj } from '@dxos/echo';
|
|
10
|
-
import {
|
|
10
|
+
import { Doc } from '@dxos/echo-doc';
|
|
11
11
|
import { invariant } from '@dxos/invariant';
|
|
12
|
-
import { TemplateEditor } from '@dxos/plugin-
|
|
12
|
+
import { TemplateEditor } from '@dxos/plugin-routine/components';
|
|
13
13
|
import { useThemeContext, useTranslation } from '@dxos/react-ui';
|
|
14
14
|
import { QueryEditor, type QueryEditorProps } from '@dxos/react-ui-components';
|
|
15
15
|
import { Editor, type EditorViewProps } from '@dxos/react-ui-editor';
|
|
@@ -48,12 +48,7 @@ export const NotebookCell = ({ db, graph, dragging, cell, promptResults, env }:
|
|
|
48
48
|
|
|
49
49
|
const extensions = useMemo(() => {
|
|
50
50
|
return cell.source?.target
|
|
51
|
-
? [
|
|
52
|
-
createDataExtensions({
|
|
53
|
-
id: cell.id,
|
|
54
|
-
text: createDocAccessor(cell.source.target, ['content']),
|
|
55
|
-
}),
|
|
56
|
-
].filter(isNonNullable)
|
|
51
|
+
? [createDataExtensions({ id: cell.id, text: Doc.createAccessor(cell.source.target, ['content']) })]
|
|
57
52
|
: [];
|
|
58
53
|
}, [cell.source?.target]);
|
|
59
54
|
|
|
@@ -90,7 +85,7 @@ export const NotebookCell = ({ db, graph, dragging, cell, promptResults, env }:
|
|
|
90
85
|
}
|
|
91
86
|
|
|
92
87
|
return (
|
|
93
|
-
|
|
88
|
+
<div className='flex flex-col divide-y divide-subdued-separator'>
|
|
94
89
|
<TypescriptEditor
|
|
95
90
|
id={cell.id}
|
|
96
91
|
role='section'
|
|
@@ -105,7 +100,7 @@ export const NotebookCell = ({ db, graph, dragging, cell, promptResults, env }:
|
|
|
105
100
|
}}
|
|
106
101
|
/>
|
|
107
102
|
<NotebookCellValue cell={cell} graph={graph} />
|
|
108
|
-
|
|
103
|
+
</div>
|
|
109
104
|
);
|
|
110
105
|
|
|
111
106
|
case 'query':
|
|
@@ -118,7 +113,7 @@ export const NotebookCell = ({ db, graph, dragging, cell, promptResults, env }:
|
|
|
118
113
|
<div className={mx('h-full overflow-hidden grid', explorerGraph && !dragging && 'grid-rows-[min-content_1fr]')}>
|
|
119
114
|
<QueryEditor
|
|
120
115
|
id={cell.id}
|
|
121
|
-
classNames={
|
|
116
|
+
classNames={editorStyles}
|
|
122
117
|
db={db}
|
|
123
118
|
value={cell.source.target.content}
|
|
124
119
|
onChange={handleQueryChange}
|
|
@@ -141,12 +136,7 @@ export const NotebookCell = ({ db, graph, dragging, cell, promptResults, env }:
|
|
|
141
136
|
|
|
142
137
|
return (
|
|
143
138
|
<>
|
|
144
|
-
<TemplateEditor
|
|
145
|
-
id={cell.id}
|
|
146
|
-
source={cell.prompt.target.instructions}
|
|
147
|
-
lineNumbers={false}
|
|
148
|
-
classNames={editorStyles}
|
|
149
|
-
/>
|
|
139
|
+
<TemplateEditor id={cell.id} source={cell.prompt.target.text} lineNumbers={false} classNames={editorStyles} />
|
|
150
140
|
<NotebookPromptResult cell={cell} promptResults={promptResults} />
|
|
151
141
|
</>
|
|
152
142
|
);
|
|
@@ -164,12 +154,7 @@ const NotebookCellValue = ({ cell, graph }: NotebookCellProps) => {
|
|
|
164
154
|
}
|
|
165
155
|
|
|
166
156
|
return (
|
|
167
|
-
<div
|
|
168
|
-
className={mx(
|
|
169
|
-
'flex w-full bg-group-surface border-y border-subdued-separator text-description font-mono',
|
|
170
|
-
valueStyles,
|
|
171
|
-
)}
|
|
172
|
-
>
|
|
157
|
+
<div className={mx('flex w-full bg-group-surface text-description font-mono', valueStyles)}>
|
|
173
158
|
{name && (
|
|
174
159
|
<>
|
|
175
160
|
<span className='text-success-text'>{name}</span>
|
|
@@ -207,20 +192,17 @@ const NotebookTextEditor = ({
|
|
|
207
192
|
const { themeMode } = useThemeContext();
|
|
208
193
|
const extensions = useMemo(() => {
|
|
209
194
|
return [
|
|
210
|
-
createBasicExtensions({
|
|
211
|
-
placeholder: t('notebook-markdown.placeholder'),
|
|
212
|
-
readOnly,
|
|
213
|
-
}),
|
|
214
195
|
createThemeExtensions({ themeMode, syntaxHighlighting: true }),
|
|
196
|
+
createBasicExtensions({ placeholder: t('notebook-markdown.placeholder'), readOnly }),
|
|
215
197
|
createMarkdownExtensions(),
|
|
216
198
|
decorateMarkdown(),
|
|
217
199
|
extensionsProp,
|
|
218
200
|
].filter(isNonNullable);
|
|
219
|
-
}, [extensionsProp]);
|
|
201
|
+
}, [extensionsProp, readOnly, themeMode, t]);
|
|
220
202
|
|
|
221
203
|
return (
|
|
222
204
|
<Editor.Root>
|
|
223
|
-
<Editor.View {...props} extensions={extensions} selectionEnd />
|
|
205
|
+
<Editor.View classNames='border' {...props} extensions={extensions} selectionEnd />
|
|
224
206
|
</Editor.Root>
|
|
225
207
|
);
|
|
226
208
|
};
|
|
@@ -7,9 +7,9 @@ import * as Effect from 'effect/Effect';
|
|
|
7
7
|
import React, { useMemo } from 'react';
|
|
8
8
|
|
|
9
9
|
import { withPluginManager } from '@dxos/app-framework/testing';
|
|
10
|
-
import { AutomationPlugin } from '@dxos/plugin-automation/testing';
|
|
11
10
|
import { ClientPlugin } from '@dxos/plugin-client/testing';
|
|
12
11
|
import { initializeIdentity } from '@dxos/plugin-client/testing';
|
|
12
|
+
import { RoutinePlugin } from '@dxos/plugin-routine/testing';
|
|
13
13
|
import { corePlugins } from '@dxos/plugin-testing';
|
|
14
14
|
import { withLayout } from '@dxos/react-ui/testing';
|
|
15
15
|
|
|
@@ -27,7 +27,7 @@ const meta = {
|
|
|
27
27
|
title: 'plugins/plugin-script/components/NotebookStack',
|
|
28
28
|
component: NotebookStackStory,
|
|
29
29
|
decorators: [
|
|
30
|
-
withLayout({ layout: 'column', classNames: '
|
|
30
|
+
withLayout({ layout: 'column', classNames: 'dx-document' }),
|
|
31
31
|
withPluginManager({
|
|
32
32
|
plugins: [
|
|
33
33
|
...corePlugins(),
|
|
@@ -37,7 +37,7 @@ const meta = {
|
|
|
37
37
|
yield* initializeIdentity(client);
|
|
38
38
|
}),
|
|
39
39
|
}),
|
|
40
|
-
|
|
40
|
+
RoutinePlugin(),
|
|
41
41
|
],
|
|
42
42
|
}),
|
|
43
43
|
],
|