@dxos/plugin-script 0.8.4-main.2e9d522 → 0.8.4-main.5acf9ea

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-script",
3
- "version": "0.8.4-main.2e9d522",
3
+ "version": "0.8.4-main.5acf9ea",
4
4
  "description": "Braneframe notebook plugin",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,17 +12,20 @@
12
12
  ".": {
13
13
  "types": "./dist/types/src/index.d.ts",
14
14
  "browser": "./dist/lib/browser/index.mjs",
15
- "node": "./dist/lib/node-esm/index.mjs"
15
+ "node": "./dist/lib/node-esm/index.mjs",
16
+ "source": "./src/index.ts"
16
17
  },
17
18
  "./types": {
18
19
  "types": "./dist/types/src/types/index.d.ts",
19
20
  "browser": "./dist/lib/browser/types/index.mjs",
20
- "node": "./dist/lib/node-esm/types/index.mjs"
21
+ "node": "./dist/lib/node-esm/types/index.mjs",
22
+ "source": "./src/types/index.ts"
21
23
  },
22
24
  "./templates": {
23
25
  "types": "./dist/types/src/templates/index.d.ts",
24
26
  "browser": "./dist/lib/browser/templates/index.mjs",
25
- "node": "./dist/lib/node-esm/templates/index.mjs"
27
+ "node": "./dist/lib/node-esm/templates/index.mjs",
28
+ "source": "./src/templates/index.ts"
26
29
  }
27
30
  },
28
31
  "types": "dist/types/src/index.d.ts",
@@ -62,48 +65,48 @@
62
65
  "prettier": "^3.6.2",
63
66
  "react-syntax-highlighter": "^15.5.0",
64
67
  "typescript": "^5.8.3",
65
- "@dxos/ai": "0.8.4-main.2e9d522",
66
- "@dxos/app-framework": "0.8.4-main.2e9d522",
67
- "@dxos/assistant": "0.8.4-main.2e9d522",
68
- "@dxos/async": "0.8.4-main.2e9d522",
69
- "@dxos/blueprints": "0.8.4-main.2e9d522",
70
- "@dxos/client-protocol": "0.8.4-main.2e9d522",
71
- "@dxos/compute": "0.8.4-main.2e9d522",
72
- "@dxos/client": "0.8.4-main.2e9d522",
73
- "@dxos/debug": "0.8.4-main.2e9d522",
74
- "@dxos/devtools": "0.8.4-main.2e9d522",
75
- "@dxos/echo": "0.8.4-main.2e9d522",
76
- "@dxos/echo-schema": "0.8.4-main.2e9d522",
77
- "@dxos/echo-protocol": "0.8.4-main.2e9d522",
78
- "@dxos/functions": "0.8.4-main.2e9d522",
79
- "@dxos/invariant": "0.8.4-main.2e9d522",
80
- "@dxos/live-object": "0.8.4-main.2e9d522",
81
- "@dxos/keys": "0.8.4-main.2e9d522",
82
- "@dxos/log": "0.8.4-main.2e9d522",
83
- "@dxos/local-storage": "0.8.4-main.2e9d522",
84
- "@dxos/plugin-explorer": "0.8.4-main.2e9d522",
85
- "@dxos/plugin-client": "0.8.4-main.2e9d522",
86
- "@dxos/plugin-deck": "0.8.4-main.2e9d522",
87
- "@dxos/plugin-markdown": "0.8.4-main.2e9d522",
88
- "@dxos/plugin-space": "0.8.4-main.2e9d522",
89
- "@dxos/plugin-stack": "0.8.4-main.2e9d522",
90
- "@dxos/plugin-graph": "0.8.4-main.2e9d522",
91
- "@dxos/plugin-theme": "0.8.4-main.2e9d522",
92
- "@dxos/plugin-token-manager": "0.8.4-main.2e9d522",
93
- "@dxos/protocols": "0.8.4-main.2e9d522",
94
- "@dxos/react-client": "0.8.4-main.2e9d522",
95
- "@dxos/react-ui-attention": "0.8.4-main.2e9d522",
96
- "@dxos/react-ui-editor": "0.8.4-main.2e9d522",
97
- "@dxos/react-ui-form": "0.8.4-main.2e9d522",
98
- "@dxos/react-ui-list": "0.8.4-main.2e9d522",
99
- "@dxos/react-edge-client": "0.8.4-main.2e9d522",
100
- "@dxos/react-ui-menu": "0.8.4-main.2e9d522",
101
- "@dxos/react-ui-stack": "0.8.4-main.2e9d522",
102
- "@dxos/react-ui-syntax-highlighter": "0.8.4-main.2e9d522",
103
- "@dxos/rpc": "0.8.4-main.2e9d522",
104
- "@dxos/util": "0.8.4-main.2e9d522",
105
- "@dxos/rpc-tunnel": "0.8.4-main.2e9d522",
106
- "@dxos/schema": "0.8.4-main.2e9d522"
68
+ "@dxos/ai": "0.8.4-main.5acf9ea",
69
+ "@dxos/app-framework": "0.8.4-main.5acf9ea",
70
+ "@dxos/assistant": "0.8.4-main.5acf9ea",
71
+ "@dxos/async": "0.8.4-main.5acf9ea",
72
+ "@dxos/client-protocol": "0.8.4-main.5acf9ea",
73
+ "@dxos/client": "0.8.4-main.5acf9ea",
74
+ "@dxos/blueprints": "0.8.4-main.5acf9ea",
75
+ "@dxos/compute": "0.8.4-main.5acf9ea",
76
+ "@dxos/debug": "0.8.4-main.5acf9ea",
77
+ "@dxos/devtools": "0.8.4-main.5acf9ea",
78
+ "@dxos/echo": "0.8.4-main.5acf9ea",
79
+ "@dxos/echo-protocol": "0.8.4-main.5acf9ea",
80
+ "@dxos/echo-schema": "0.8.4-main.5acf9ea",
81
+ "@dxos/invariant": "0.8.4-main.5acf9ea",
82
+ "@dxos/functions": "0.8.4-main.5acf9ea",
83
+ "@dxos/keys": "0.8.4-main.5acf9ea",
84
+ "@dxos/live-object": "0.8.4-main.5acf9ea",
85
+ "@dxos/local-storage": "0.8.4-main.5acf9ea",
86
+ "@dxos/log": "0.8.4-main.5acf9ea",
87
+ "@dxos/plugin-client": "0.8.4-main.5acf9ea",
88
+ "@dxos/plugin-deck": "0.8.4-main.5acf9ea",
89
+ "@dxos/plugin-explorer": "0.8.4-main.5acf9ea",
90
+ "@dxos/plugin-graph": "0.8.4-main.5acf9ea",
91
+ "@dxos/plugin-markdown": "0.8.4-main.5acf9ea",
92
+ "@dxos/plugin-space": "0.8.4-main.5acf9ea",
93
+ "@dxos/plugin-stack": "0.8.4-main.5acf9ea",
94
+ "@dxos/plugin-theme": "0.8.4-main.5acf9ea",
95
+ "@dxos/plugin-token-manager": "0.8.4-main.5acf9ea",
96
+ "@dxos/protocols": "0.8.4-main.5acf9ea",
97
+ "@dxos/react-client": "0.8.4-main.5acf9ea",
98
+ "@dxos/react-edge-client": "0.8.4-main.5acf9ea",
99
+ "@dxos/react-ui-attention": "0.8.4-main.5acf9ea",
100
+ "@dxos/react-ui-editor": "0.8.4-main.5acf9ea",
101
+ "@dxos/react-ui-form": "0.8.4-main.5acf9ea",
102
+ "@dxos/react-ui-list": "0.8.4-main.5acf9ea",
103
+ "@dxos/react-ui-menu": "0.8.4-main.5acf9ea",
104
+ "@dxos/react-ui-stack": "0.8.4-main.5acf9ea",
105
+ "@dxos/react-ui-syntax-highlighter": "0.8.4-main.5acf9ea",
106
+ "@dxos/rpc": "0.8.4-main.5acf9ea",
107
+ "@dxos/schema": "0.8.4-main.5acf9ea",
108
+ "@dxos/rpc-tunnel": "0.8.4-main.5acf9ea",
109
+ "@dxos/util": "0.8.4-main.5acf9ea"
107
110
  },
108
111
  "devDependencies": {
109
112
  "@effect-rx/rx-react": "0.38.0",
@@ -114,10 +117,10 @@
114
117
  "react": "~18.2.0",
115
118
  "react-dom": "~18.2.0",
116
119
  "vite": "5.4.7",
117
- "@dxos/random": "0.8.4-main.2e9d522",
118
- "@dxos/react-ui": "0.8.4-main.2e9d522",
119
- "@dxos/react-ui-theme": "0.8.4-main.2e9d522",
120
- "@dxos/storybook-utils": "0.8.4-main.2e9d522"
120
+ "@dxos/random": "0.8.4-main.5acf9ea",
121
+ "@dxos/react-ui": "0.8.4-main.5acf9ea",
122
+ "@dxos/react-ui-theme": "0.8.4-main.5acf9ea",
123
+ "@dxos/storybook-utils": "0.8.4-main.5acf9ea"
121
124
  },
122
125
  "peerDependencies": {
123
126
  "@effect-rx/rx-react": "^0.34.1",
@@ -125,8 +128,8 @@
125
128
  "effect": "^3.13.3",
126
129
  "react": "~18.2.0",
127
130
  "react-dom": "~18.2.0",
128
- "@dxos/react-ui-theme": "0.8.4-main.2e9d522",
129
- "@dxos/react-ui": "0.8.4-main.2e9d522"
131
+ "@dxos/react-ui": "0.8.4-main.5acf9ea",
132
+ "@dxos/react-ui-theme": "0.8.4-main.5acf9ea"
130
133
  },
131
134
  "publishConfig": {
132
135
  "access": "public"
@@ -156,14 +156,7 @@ export default () => {
156
156
  execute: async ({ name, code }, { extensions }) => {
157
157
  invariant(extensions?.space, 'No space');
158
158
  invariant(extensions?.dispatch, 'No intent dispatcher');
159
- const script = Obj.make(ScriptType, {
160
- name,
161
- source: Ref.make(
162
- Obj.make(DataType.Text, {
163
- content: code,
164
- }),
165
- ),
166
- });
159
+ const script = Obj.make(ScriptType, { name, source: Ref.make(DataType.makeText(code)) });
167
160
  extensions.space.db.add(script);
168
161
  await extensions.space.db.flush();
169
162
 
@@ -47,10 +47,7 @@ export default () =>
47
47
 
48
48
  return {
49
49
  data: {
50
- object: Obj.make(ScriptType, {
51
- name,
52
- source: Ref.make(Obj.make(DataType.Text, { content })),
53
- }),
50
+ object: Obj.make(ScriptType, { name, source: Ref.make(DataType.makeText(content)) }),
54
51
  },
55
52
  };
56
53
  },