@dxos/plugin-script 0.8.3 → 0.8.4-main.03d5cd7b56

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.
Files changed (589) hide show
  1. package/README.md +15 -13
  2. package/dist/lib/neutral/DeploymentDialog-6DBF3V6C.mjs +112 -0
  3. package/dist/lib/neutral/DeploymentDialog-6DBF3V6C.mjs.map +7 -0
  4. package/dist/lib/neutral/NotebookContainer-FIAQI3A2.mjs +760 -0
  5. package/dist/lib/neutral/NotebookContainer-FIAQI3A2.mjs.map +7 -0
  6. package/dist/lib/neutral/ScriptContainer-2OPBAXFB.mjs +79 -0
  7. package/dist/lib/neutral/ScriptContainer-2OPBAXFB.mjs.map +7 -0
  8. package/dist/lib/neutral/ScriptPlugin.mjs +39 -0
  9. package/dist/lib/neutral/ScriptPlugin.mjs.map +7 -0
  10. package/dist/lib/neutral/ScriptPlugin.node.mjs +27 -0
  11. package/dist/lib/neutral/ScriptPlugin.node.mjs.map +7 -0
  12. package/dist/lib/neutral/ScriptPluginSettings-T4JMUSHN.mjs +31 -0
  13. package/dist/lib/neutral/ScriptPluginSettings-T4JMUSHN.mjs.map +7 -0
  14. package/dist/lib/neutral/ScriptProperties-F6NE6M4H.mjs +296 -0
  15. package/dist/lib/neutral/ScriptProperties-F6NE6M4H.mjs.map +7 -0
  16. package/dist/lib/neutral/TestContainer-JNFPLAJX.mjs +44 -0
  17. package/dist/lib/neutral/TestContainer-JNFPLAJX.mjs.map +7 -0
  18. package/dist/lib/neutral/access-token-created-ENMCEGVU.mjs +34 -0
  19. package/dist/lib/neutral/access-token-created-ENMCEGVU.mjs.map +7 -0
  20. package/dist/lib/neutral/app-graph-builder-7AWFCEQF.mjs +52 -0
  21. package/dist/lib/neutral/app-graph-builder-7AWFCEQF.mjs.map +7 -0
  22. package/dist/lib/neutral/blueprint-definition-T33SBPP2.mjs +15 -0
  23. package/dist/lib/neutral/blueprint-definition-T33SBPP2.mjs.map +7 -0
  24. package/dist/lib/neutral/blueprints/index.mjs +10 -0
  25. package/dist/lib/neutral/capabilities/index.mjs +21 -0
  26. package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
  27. package/dist/lib/neutral/capabilities/node.mjs +17 -0
  28. package/dist/lib/neutral/capabilities/node.mjs.map +7 -0
  29. package/dist/lib/neutral/chunk-2DMPFVUM.mjs +8 -0
  30. package/dist/lib/neutral/chunk-2DMPFVUM.mjs.map +7 -0
  31. package/dist/lib/neutral/chunk-4RJALG6K.mjs +151 -0
  32. package/dist/lib/neutral/chunk-4RJALG6K.mjs.map +7 -0
  33. package/dist/lib/neutral/chunk-B4FVQEHV.mjs +8 -0
  34. package/dist/lib/neutral/chunk-B4FVQEHV.mjs.map +7 -0
  35. package/dist/lib/neutral/chunk-BDRB6ZX2.mjs +52 -0
  36. package/dist/lib/neutral/chunk-BDRB6ZX2.mjs.map +7 -0
  37. package/dist/lib/neutral/chunk-BUKQITZT.mjs +105 -0
  38. package/dist/lib/neutral/chunk-BUKQITZT.mjs.map +7 -0
  39. package/dist/lib/neutral/chunk-D7DFASAE.mjs +52 -0
  40. package/dist/lib/neutral/chunk-D7DFASAE.mjs.map +7 -0
  41. package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
  42. package/dist/lib/neutral/chunk-MI6X5CTJ.mjs +336 -0
  43. package/dist/lib/neutral/chunk-MI6X5CTJ.mjs.map +7 -0
  44. package/dist/lib/neutral/chunk-P2F3STZN.mjs +8 -0
  45. package/dist/lib/neutral/chunk-P2F3STZN.mjs.map +7 -0
  46. package/dist/lib/neutral/chunk-PDB6UOSB.mjs +125 -0
  47. package/dist/lib/neutral/chunk-PDB6UOSB.mjs.map +7 -0
  48. package/dist/lib/neutral/chunk-UYR3YH4Q.mjs +31 -0
  49. package/dist/lib/neutral/chunk-UYR3YH4Q.mjs.map +7 -0
  50. package/dist/lib/neutral/compiler-SMVIP5UN.mjs +101 -0
  51. package/dist/lib/neutral/compiler-SMVIP5UN.mjs.map +7 -0
  52. package/dist/lib/neutral/components/index.mjs +719 -0
  53. package/dist/lib/neutral/components/index.mjs.map +7 -0
  54. package/dist/lib/neutral/containers/index.mjs +17 -0
  55. package/dist/lib/neutral/containers/index.mjs.map +7 -0
  56. package/dist/lib/neutral/create-OZRIZ7RN.mjs +44 -0
  57. package/dist/lib/neutral/create-OZRIZ7RN.mjs.map +7 -0
  58. package/dist/lib/neutral/create-object-F2NWICFV.mjs +44 -0
  59. package/dist/lib/neutral/create-object-F2NWICFV.mjs.map +7 -0
  60. package/dist/lib/neutral/create-script-VBA3SLSU.mjs +45 -0
  61. package/dist/lib/neutral/create-script-VBA3SLSU.mjs.map +7 -0
  62. package/dist/lib/neutral/delete-PAUWA2QM.mjs +21 -0
  63. package/dist/lib/neutral/delete-PAUWA2QM.mjs.map +7 -0
  64. package/dist/lib/neutral/deploy-CXVW54JJ.mjs +62 -0
  65. package/dist/lib/neutral/deploy-CXVW54JJ.mjs.map +7 -0
  66. package/dist/lib/neutral/hooks/index.mjs +369 -0
  67. package/dist/lib/neutral/hooks/index.mjs.map +7 -0
  68. package/dist/lib/neutral/index.mjs +41 -0
  69. package/dist/lib/neutral/inspect-invocations-LEOEP5I2.mjs +59 -0
  70. package/dist/lib/neutral/inspect-invocations-LEOEP5I2.mjs.map +7 -0
  71. package/dist/lib/neutral/install-function-5N24Q45W.mjs +51 -0
  72. package/dist/lib/neutral/install-function-5N24Q45W.mjs.map +7 -0
  73. package/dist/lib/neutral/invoke-5QVEZ3X5.mjs +33 -0
  74. package/dist/lib/neutral/invoke-5QVEZ3X5.mjs.map +7 -0
  75. package/dist/lib/neutral/meta.json +1 -0
  76. package/dist/lib/neutral/meta.mjs +10 -0
  77. package/dist/lib/neutral/operation-handler-OTCWYDFI.mjs +18 -0
  78. package/dist/lib/neutral/operation-handler-OTCWYDFI.mjs.map +7 -0
  79. package/dist/lib/neutral/operations/index.mjs +8 -0
  80. package/dist/lib/neutral/operations/index.mjs.map +7 -0
  81. package/dist/lib/neutral/plugin.mjs +16 -0
  82. package/dist/lib/neutral/plugin.mjs.map +7 -0
  83. package/dist/lib/neutral/query-deployed-functions-FVD7NYPA.mjs +30 -0
  84. package/dist/lib/neutral/query-deployed-functions-FVD7NYPA.mjs.map +7 -0
  85. package/dist/lib/neutral/react-surface-JH2AOK7V.mjs +117 -0
  86. package/dist/lib/neutral/react-surface-JH2AOK7V.mjs.map +7 -0
  87. package/dist/lib/neutral/read-FFOSK6A3.mjs +26 -0
  88. package/dist/lib/neutral/read-FFOSK6A3.mjs.map +7 -0
  89. package/dist/lib/neutral/settings-VJBW4OMK.mjs +30 -0
  90. package/dist/lib/neutral/settings-VJBW4OMK.mjs.map +7 -0
  91. package/dist/lib/neutral/templates/index.mjs +10 -0
  92. package/dist/lib/neutral/templates/index.mjs.map +7 -0
  93. package/dist/lib/neutral/translations.mjs +104 -0
  94. package/dist/lib/neutral/translations.mjs.map +7 -0
  95. package/dist/lib/neutral/types/index.mjs +17 -0
  96. package/dist/lib/neutral/types/index.mjs.map +7 -0
  97. package/dist/lib/neutral/update-PJS5GG3Y.mjs +63 -0
  98. package/dist/lib/neutral/update-PJS5GG3Y.mjs.map +7 -0
  99. package/dist/types/src/ScriptPlugin.d.ts +3 -1
  100. package/dist/types/src/ScriptPlugin.d.ts.map +1 -1
  101. package/dist/types/src/ScriptPlugin.node.d.ts +4 -0
  102. package/dist/types/src/ScriptPlugin.node.d.ts.map +1 -0
  103. package/dist/types/src/ScriptPlugin.test.d.ts +2 -0
  104. package/dist/types/src/ScriptPlugin.test.d.ts.map +1 -0
  105. package/dist/types/src/blueprints/functions/create.d.ts +11 -0
  106. package/dist/types/src/blueprints/functions/create.d.ts.map +1 -0
  107. package/dist/types/src/blueprints/functions/definitions.d.ts +141 -0
  108. package/dist/types/src/blueprints/functions/definitions.d.ts.map +1 -0
  109. package/dist/types/src/blueprints/functions/delete.d.ts +18 -0
  110. package/dist/types/src/blueprints/functions/delete.d.ts.map +1 -0
  111. package/dist/types/src/blueprints/functions/deploy.d.ts +22 -0
  112. package/dist/types/src/blueprints/functions/deploy.d.ts.map +1 -0
  113. package/dist/types/src/blueprints/functions/index.d.ts +4 -0
  114. package/dist/types/src/blueprints/functions/index.d.ts.map +1 -0
  115. package/dist/types/src/blueprints/functions/inspect-invocations.d.ts +29 -0
  116. package/dist/types/src/blueprints/functions/inspect-invocations.d.ts.map +1 -0
  117. package/dist/types/src/blueprints/functions/install-function.d.ts +11 -0
  118. package/dist/types/src/blueprints/functions/install-function.d.ts.map +1 -0
  119. package/dist/types/src/blueprints/functions/invoke.d.ts +22 -0
  120. package/dist/types/src/blueprints/functions/invoke.d.ts.map +1 -0
  121. package/dist/types/src/blueprints/functions/query-deployed-functions.d.ts +13 -0
  122. package/dist/types/src/blueprints/functions/query-deployed-functions.d.ts.map +1 -0
  123. package/dist/types/src/blueprints/functions/read.d.ts +22 -0
  124. package/dist/types/src/blueprints/functions/read.d.ts.map +1 -0
  125. package/dist/types/src/blueprints/functions/update.d.ts +27 -0
  126. package/dist/types/src/blueprints/functions/update.d.ts.map +1 -0
  127. package/dist/types/src/blueprints/index.d.ts +2 -0
  128. package/dist/types/src/blueprints/index.d.ts.map +1 -0
  129. package/dist/types/src/blueprints/script-blueprint.d.ts +4 -0
  130. package/dist/types/src/blueprints/script-blueprint.d.ts.map +1 -0
  131. package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
  132. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
  133. package/dist/types/src/capabilities/artifact-definition.d.ts +3 -2
  134. package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -1
  135. package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
  136. package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
  137. package/dist/types/src/capabilities/compiler.d.ts +3 -1
  138. package/dist/types/src/capabilities/compiler.d.ts.map +1 -1
  139. package/dist/types/src/capabilities/create-object.d.ts +16 -0
  140. package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
  141. package/dist/types/src/capabilities/index.d.ts +19 -7
  142. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  143. package/dist/types/src/capabilities/node.d.ts +18 -0
  144. package/dist/types/src/capabilities/node.d.ts.map +1 -0
  145. package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
  146. package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
  147. package/dist/types/src/capabilities/react-surface.d.ts +3 -2
  148. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
  149. package/dist/types/src/capabilities/settings.d.ts +5 -2
  150. package/dist/types/src/capabilities/settings.d.ts.map +1 -1
  151. package/dist/types/src/compiler/compiler.d.ts +1 -1
  152. package/dist/types/src/compiler/compiler.d.ts.map +1 -1
  153. package/dist/types/src/components/FramePanel/FramePanel.d.ts +12 -0
  154. package/dist/types/src/components/FramePanel/FramePanel.d.ts.map +1 -0
  155. package/dist/types/src/components/FramePanel/index.d.ts +2 -0
  156. package/dist/types/src/components/FramePanel/index.d.ts.map +1 -0
  157. package/dist/types/src/components/NotebookStack/NotebookCell.d.ts +15 -0
  158. package/dist/types/src/components/NotebookStack/NotebookCell.d.ts.map +1 -0
  159. package/dist/types/src/components/NotebookStack/NotebookMenu.d.ts +9 -0
  160. package/dist/types/src/components/NotebookStack/NotebookMenu.d.ts.map +1 -0
  161. package/dist/types/src/components/NotebookStack/NotebookStack.d.ts +16 -0
  162. package/dist/types/src/components/NotebookStack/NotebookStack.d.ts.map +1 -0
  163. package/dist/types/src/components/NotebookStack/NotebookStack.stories.d.ts +240 -0
  164. package/dist/types/src/components/NotebookStack/NotebookStack.stories.d.ts.map +1 -0
  165. package/dist/types/src/components/NotebookStack/index.d.ts +3 -0
  166. package/dist/types/src/components/NotebookStack/index.d.ts.map +1 -0
  167. package/dist/types/src/components/QueryEditor/QueryEditor.d.ts +5 -0
  168. package/dist/types/src/components/QueryEditor/QueryEditor.d.ts.map +1 -0
  169. package/dist/types/src/components/QueryEditor/QueryEditor.stories.d.ts +13 -0
  170. package/dist/types/src/components/QueryEditor/QueryEditor.stories.d.ts.map +1 -0
  171. package/dist/types/src/components/QueryEditor/index.d.ts +2 -0
  172. package/dist/types/src/components/QueryEditor/index.d.ts.map +1 -0
  173. package/dist/types/src/components/ScriptPluginSettings/ScriptPluginSettings.d.ts +8 -0
  174. package/dist/types/src/components/ScriptPluginSettings/ScriptPluginSettings.d.ts.map +1 -0
  175. package/dist/types/src/components/ScriptPluginSettings/ScriptPluginSettings.stories.d.ts +241 -0
  176. package/dist/types/src/components/ScriptPluginSettings/ScriptPluginSettings.stories.d.ts.map +1 -0
  177. package/dist/types/src/components/ScriptPluginSettings/index.d.ts +2 -0
  178. package/dist/types/src/components/ScriptPluginSettings/index.d.ts.map +1 -0
  179. package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts +10 -9
  180. package/dist/types/src/components/ScriptToolbar/ScriptToolbar.d.ts.map +1 -1
  181. package/dist/types/src/components/ScriptToolbar/ScriptToolbar.stories.d.ts +237 -10
  182. package/dist/types/src/components/ScriptToolbar/ScriptToolbar.stories.d.ts.map +1 -1
  183. package/dist/types/src/components/TestPanel/TestPanel.d.ts +4 -2
  184. package/dist/types/src/components/TestPanel/TestPanel.d.ts.map +1 -1
  185. package/dist/types/src/components/TestPanel/index.d.ts +0 -1
  186. package/dist/types/src/components/TestPanel/index.d.ts.map +1 -1
  187. package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts +8 -2
  188. package/dist/types/src/components/TypescriptEditor/TypescriptEditor.d.ts.map +1 -1
  189. package/dist/types/src/components/TypescriptEditor/TypescriptEditor.stories.d.ts +13 -4
  190. package/dist/types/src/components/TypescriptEditor/TypescriptEditor.stories.d.ts.map +1 -1
  191. package/dist/types/src/components/index.d.ts +7 -7
  192. package/dist/types/src/components/index.d.ts.map +1 -1
  193. package/dist/types/src/constants.d.ts +2 -0
  194. package/dist/types/src/constants.d.ts.map +1 -0
  195. package/dist/types/src/containers/DeploymentDialog/DeploymentDialog.d.ts +9 -0
  196. package/dist/types/src/containers/DeploymentDialog/DeploymentDialog.d.ts.map +1 -0
  197. package/dist/types/src/containers/DeploymentDialog/DeploymentDialog.stories.d.ts +240 -0
  198. package/dist/types/src/containers/DeploymentDialog/DeploymentDialog.stories.d.ts.map +1 -0
  199. package/dist/types/src/containers/DeploymentDialog/index.d.ts +2 -0
  200. package/dist/types/src/containers/DeploymentDialog/index.d.ts.map +1 -0
  201. package/dist/types/src/containers/NotebookContainer/NotebookContainer.d.ts +7 -0
  202. package/dist/types/src/containers/NotebookContainer/NotebookContainer.d.ts.map +1 -0
  203. package/dist/types/src/containers/NotebookContainer/NotebookContainer.stories.d.ts +7 -0
  204. package/dist/types/src/containers/NotebookContainer/NotebookContainer.stories.d.ts.map +1 -0
  205. package/dist/types/src/containers/NotebookContainer/index.d.ts +2 -0
  206. package/dist/types/src/containers/NotebookContainer/index.d.ts.map +1 -0
  207. package/dist/types/src/containers/ScriptContainer/ScriptContainer.d.ts +10 -0
  208. package/dist/types/src/containers/ScriptContainer/ScriptContainer.d.ts.map +1 -0
  209. package/dist/types/src/containers/ScriptContainer/ScriptContainer.stories.d.ts +242 -0
  210. package/dist/types/src/containers/ScriptContainer/ScriptContainer.stories.d.ts.map +1 -0
  211. package/dist/types/src/containers/ScriptContainer/index.d.ts +2 -0
  212. package/dist/types/src/containers/ScriptContainer/index.d.ts.map +1 -0
  213. package/dist/types/src/containers/ScriptProperties/BlueprintEditor.d.ts +7 -0
  214. package/dist/types/src/containers/ScriptProperties/BlueprintEditor.d.ts.map +1 -0
  215. package/dist/types/src/containers/ScriptProperties/FunctionBinding.d.ts +7 -0
  216. package/dist/types/src/containers/ScriptProperties/FunctionBinding.d.ts.map +1 -0
  217. package/dist/types/src/containers/ScriptProperties/FunctionPublishing.d.ts +7 -0
  218. package/dist/types/src/containers/ScriptProperties/FunctionPublishing.d.ts.map +1 -0
  219. package/dist/types/src/containers/ScriptProperties/ScriptProperties.d.ts +6 -0
  220. package/dist/types/src/containers/ScriptProperties/ScriptProperties.d.ts.map +1 -0
  221. package/dist/types/src/containers/ScriptProperties/ScriptProperties.stories.d.ts +242 -0
  222. package/dist/types/src/containers/ScriptProperties/ScriptProperties.stories.d.ts.map +1 -0
  223. package/dist/types/src/containers/ScriptProperties/index.d.ts +2 -0
  224. package/dist/types/src/containers/ScriptProperties/index.d.ts.map +1 -0
  225. package/dist/types/src/containers/TestContainer/TestContainer.d.ts +8 -0
  226. package/dist/types/src/containers/TestContainer/TestContainer.d.ts.map +1 -0
  227. package/dist/types/src/containers/TestContainer/index.d.ts +2 -0
  228. package/dist/types/src/containers/TestContainer/index.d.ts.map +1 -0
  229. package/dist/types/src/containers/index.d.ts +7 -0
  230. package/dist/types/src/containers/index.d.ts.map +1 -0
  231. package/dist/types/src/e2e/ai.test.d.ts +2 -0
  232. package/dist/types/src/e2e/ai.test.d.ts.map +1 -0
  233. package/dist/types/src/e2e/deploy.test.d.ts +2 -0
  234. package/dist/types/src/e2e/deploy.test.d.ts.map +1 -0
  235. package/dist/types/src/hooks/deploy.d.ts +31 -32
  236. package/dist/types/src/hooks/deploy.d.ts.map +1 -1
  237. package/dist/types/src/hooks/format.d.ts +5 -4
  238. package/dist/types/src/hooks/format.d.ts.map +1 -1
  239. package/dist/types/src/hooks/index.d.ts +1 -0
  240. package/dist/types/src/hooks/index.d.ts.map +1 -1
  241. package/dist/types/src/hooks/template.d.ts +7 -16
  242. package/dist/types/src/hooks/template.d.ts.map +1 -1
  243. package/dist/types/src/hooks/useCompiler.d.ts +7 -0
  244. package/dist/types/src/hooks/useCompiler.d.ts.map +1 -0
  245. package/dist/types/src/hooks/useCreateAndDeployScriptTemplates.d.ts.map +1 -1
  246. package/dist/types/src/hooks/useToolbarState.d.ts +8 -1
  247. package/dist/types/src/hooks/useToolbarState.d.ts.map +1 -1
  248. package/dist/types/src/index.d.ts +3 -3
  249. package/dist/types/src/index.d.ts.map +1 -1
  250. package/dist/types/src/meta.d.ts +2 -3
  251. package/dist/types/src/meta.d.ts.map +1 -1
  252. package/dist/types/src/notebook/compute-graph.d.ts +58 -0
  253. package/dist/types/src/notebook/compute-graph.d.ts.map +1 -0
  254. package/dist/types/src/notebook/compute-graph.test.d.ts +2 -0
  255. package/dist/types/src/notebook/compute-graph.test.d.ts.map +1 -0
  256. package/dist/types/src/notebook/eval.d.ts +13 -0
  257. package/dist/types/src/notebook/eval.d.ts.map +1 -0
  258. package/dist/types/src/notebook/index.d.ts +2 -0
  259. package/dist/types/src/notebook/index.d.ts.map +1 -0
  260. package/dist/types/src/notebook/vfs-parser.d.ts +74 -0
  261. package/dist/types/src/notebook/vfs-parser.d.ts.map +1 -0
  262. package/dist/types/src/notebook/vfs-parser.test.d.ts +2 -0
  263. package/dist/types/src/notebook/vfs-parser.test.d.ts.map +1 -0
  264. package/dist/types/src/operations/access-token-created.d.ts +5 -0
  265. package/dist/types/src/operations/access-token-created.d.ts.map +1 -0
  266. package/dist/types/src/operations/create-script.d.ts +5 -0
  267. package/dist/types/src/operations/create-script.d.ts.map +1 -0
  268. package/dist/types/src/operations/index.d.ts +3 -0
  269. package/dist/types/src/operations/index.d.ts.map +1 -0
  270. package/dist/types/src/plugin.d.ts +4 -0
  271. package/dist/types/src/plugin.d.ts.map +1 -0
  272. package/dist/types/src/templates/anthropic.d.ts +7 -0
  273. package/dist/types/src/templates/anthropic.d.ts.map +1 -0
  274. package/dist/types/src/templates/chat.d.ts.map +1 -1
  275. package/dist/types/src/templates/chess-bot.d.ts +12 -0
  276. package/dist/types/src/templates/chess-bot.d.ts.map +1 -0
  277. package/dist/types/src/templates/commentary.d.ts +13 -0
  278. package/dist/types/src/templates/commentary.d.ts.map +1 -0
  279. package/dist/types/src/templates/data-generator.d.ts.map +1 -1
  280. package/dist/types/src/templates/discord.d.ts.map +1 -1
  281. package/dist/types/src/templates/email.d.ts.map +1 -1
  282. package/dist/types/src/templates/forex-effect.d.ts +5 -1
  283. package/dist/types/src/templates/forex-effect.d.ts.map +1 -1
  284. package/dist/types/src/templates/forex.d.ts +5 -1
  285. package/dist/types/src/templates/forex.d.ts.map +1 -1
  286. package/dist/types/src/templates/gmail.d.ts.map +1 -1
  287. package/dist/types/src/templates/index.d.ts +54 -1
  288. package/dist/types/src/templates/index.d.ts.map +1 -1
  289. package/dist/types/src/templates/ping.d.ts +4 -0
  290. package/dist/types/src/templates/ping.d.ts.map +1 -0
  291. package/dist/types/src/testing/index.d.ts +3 -0
  292. package/dist/types/src/testing/index.d.ts.map +1 -0
  293. package/dist/types/src/testing/simulator.test.d.ts +2 -0
  294. package/dist/types/src/testing/simulator.test.d.ts.map +1 -0
  295. package/dist/types/src/testing/test-notebook.d.ts +3 -0
  296. package/dist/types/src/testing/test-notebook.d.ts.map +1 -0
  297. package/dist/types/src/testing/test-script.d.ts +7 -0
  298. package/dist/types/src/testing/test-script.d.ts.map +1 -0
  299. package/dist/types/src/translations.d.ts +224 -176
  300. package/dist/types/src/translations.d.ts.map +1 -1
  301. package/dist/types/src/types/Notebook.d.ts +120 -0
  302. package/dist/types/src/types/Notebook.d.ts.map +1 -0
  303. package/dist/types/src/types/ScriptCapabilities.d.ts +6 -0
  304. package/dist/types/src/types/ScriptCapabilities.d.ts.map +1 -0
  305. package/dist/types/src/types/ScriptEvents.d.ts +3 -0
  306. package/dist/types/src/types/ScriptEvents.d.ts.map +1 -0
  307. package/dist/types/src/types/ScriptOperation.d.ts +29 -0
  308. package/dist/types/src/types/ScriptOperation.d.ts.map +1 -0
  309. package/dist/types/src/types/Settings.d.ts +7 -0
  310. package/dist/types/src/types/Settings.d.ts.map +1 -0
  311. package/dist/types/src/types/index.d.ts +6 -0
  312. package/dist/types/src/types/index.d.ts.map +1 -0
  313. package/dist/types/src/types/types.d.ts +2 -0
  314. package/dist/types/src/types/types.d.ts.map +1 -0
  315. package/dist/types/src/util/deploy.d.ts +7 -7
  316. package/dist/types/src/util/deploy.d.ts.map +1 -1
  317. package/dist/types/src/util/functions.d.ts +6 -3
  318. package/dist/types/src/util/functions.d.ts.map +1 -1
  319. package/dist/types/tsconfig.tsbuildinfo +1 -1
  320. package/package.json +186 -92
  321. package/src/ScriptPlugin.node.ts +21 -0
  322. package/src/ScriptPlugin.test.ts +31 -0
  323. package/src/ScriptPlugin.tsx +30 -81
  324. package/src/blueprints/functions/create.ts +47 -0
  325. package/src/blueprints/functions/definitions.ts +323 -0
  326. package/src/blueprints/functions/delete.ts +23 -0
  327. package/src/blueprints/functions/deploy.ts +70 -0
  328. package/src/blueprints/functions/index.ts +19 -0
  329. package/src/blueprints/functions/inspect-invocations.ts +56 -0
  330. package/src/blueprints/functions/install-function.ts +56 -0
  331. package/src/blueprints/functions/invoke.ts +35 -0
  332. package/src/blueprints/functions/query-deployed-functions.ts +31 -0
  333. package/src/blueprints/functions/read.ts +29 -0
  334. package/src/blueprints/functions/update.ts +68 -0
  335. package/src/blueprints/index.ts +5 -0
  336. package/src/blueprints/script-blueprint.ts +55 -0
  337. package/src/capabilities/app-graph-builder.ts +40 -57
  338. package/src/capabilities/artifact-definition.ts +106 -108
  339. package/src/capabilities/blueprint-definition.ts +19 -0
  340. package/src/capabilities/compiler.ts +100 -22
  341. package/src/capabilities/create-object.ts +48 -0
  342. package/src/capabilities/index.ts +13 -9
  343. package/src/capabilities/node.ts +16 -0
  344. package/src/capabilities/operation-handler.ts +21 -0
  345. package/src/capabilities/react-surface.tsx +121 -80
  346. package/src/capabilities/settings.ts +26 -14
  347. package/src/compiler/compiler.ts +18 -4
  348. package/src/components/{FrameContainer/FrameContainer.tsx → FramePanel/FramePanel.tsx} +10 -8
  349. package/src/components/{FrameContainer → FramePanel}/index.ts +1 -1
  350. package/src/components/NotebookStack/NotebookCell.tsx +226 -0
  351. package/src/components/NotebookStack/NotebookMenu.tsx +47 -0
  352. package/src/components/NotebookStack/NotebookStack.stories.tsx +53 -0
  353. package/src/components/NotebookStack/NotebookStack.tsx +97 -0
  354. package/src/components/NotebookStack/index.ts +6 -0
  355. package/src/components/QueryEditor/QueryEditor.stories.tsx +96 -0
  356. package/src/components/QueryEditor/QueryEditor.tsx +47 -0
  357. package/src/components/QueryEditor/index.ts +5 -0
  358. package/src/components/ScriptPluginSettings/ScriptPluginSettings.stories.tsx +32 -0
  359. package/src/components/ScriptPluginSettings/ScriptPluginSettings.tsx +42 -0
  360. package/src/components/ScriptPluginSettings/index.ts +5 -0
  361. package/src/components/ScriptToolbar/ScriptToolbar.stories.tsx +56 -17
  362. package/src/components/ScriptToolbar/ScriptToolbar.tsx +43 -41
  363. package/src/components/TestPanel/TestPanel.tsx +124 -185
  364. package/src/components/TestPanel/index.ts +0 -1
  365. package/src/components/TypescriptEditor/TypescriptEditor.stories.tsx +89 -34
  366. package/src/components/TypescriptEditor/TypescriptEditor.tsx +88 -78
  367. package/src/components/index.ts +7 -5
  368. package/src/constants.ts +7 -0
  369. package/src/containers/DeploymentDialog/DeploymentDialog.stories.tsx +63 -0
  370. package/src/containers/DeploymentDialog/DeploymentDialog.tsx +99 -0
  371. package/src/containers/DeploymentDialog/index.ts +5 -0
  372. package/src/containers/NotebookContainer/NotebookContainer.stories.tsx +85 -0
  373. package/src/containers/NotebookContainer/NotebookContainer.tsx +254 -0
  374. package/src/containers/NotebookContainer/index.ts +5 -0
  375. package/src/containers/ScriptContainer/ScriptContainer.stories.tsx +106 -0
  376. package/src/containers/ScriptContainer/ScriptContainer.tsx +85 -0
  377. package/src/containers/ScriptContainer/index.ts +5 -0
  378. package/src/containers/ScriptProperties/BlueprintEditor.tsx +101 -0
  379. package/src/containers/ScriptProperties/FunctionBinding.tsx +83 -0
  380. package/src/containers/ScriptProperties/FunctionPublishing.tsx +121 -0
  381. package/src/containers/ScriptProperties/ScriptProperties.stories.tsx +75 -0
  382. package/src/containers/ScriptProperties/ScriptProperties.tsx +24 -0
  383. package/src/containers/ScriptProperties/index.ts +5 -0
  384. package/src/containers/TestContainer/TestContainer.tsx +44 -0
  385. package/src/containers/TestContainer/index.ts +5 -0
  386. package/src/containers/index.ts +11 -0
  387. package/src/e2e/ai.test.ts +93 -0
  388. package/src/e2e/deploy.test.ts +66 -0
  389. package/src/hooks/deploy.ts +54 -45
  390. package/src/hooks/format.ts +10 -5
  391. package/src/hooks/index.ts +1 -0
  392. package/src/hooks/template.ts +24 -26
  393. package/src/hooks/useCompiler.ts +25 -0
  394. package/src/hooks/useCreateAndDeployScriptTemplates.ts +16 -16
  395. package/src/hooks/useToolbarState.ts +29 -4
  396. package/src/index.ts +3 -4
  397. package/src/meta.ts +10 -8
  398. package/src/notebook/compute-graph.test.ts +82 -0
  399. package/src/notebook/compute-graph.ts +230 -0
  400. package/src/notebook/eval.ts +105 -0
  401. package/src/notebook/index.ts +5 -0
  402. package/src/notebook/vfs-parser.test.ts +149 -0
  403. package/src/notebook/vfs-parser.ts +458 -0
  404. package/src/operations/access-token-created.ts +37 -0
  405. package/src/operations/create-script.ts +46 -0
  406. package/src/operations/index.ts +10 -0
  407. package/src/plugin.ts +11 -0
  408. package/src/templates/anthropic.ts +49 -0
  409. package/src/templates/chat.ts +1 -1
  410. package/src/templates/chess-bot.ts +63 -0
  411. package/src/templates/commentary.ts +249 -0
  412. package/src/templates/data-generator.ts +11 -5
  413. package/src/templates/discord.ts +14 -6
  414. package/src/templates/email.ts +2 -2
  415. package/src/templates/forex-effect.ts +35 -25
  416. package/src/templates/forex.ts +27 -15
  417. package/src/templates/gmail.ts +38 -68
  418. package/src/templates/index.ts +38 -23
  419. package/src/templates/ping.ts +25 -0
  420. package/src/testing/index.ts +6 -0
  421. package/src/testing/simulator.test.ts +39 -0
  422. package/src/testing/test-notebook.ts +71 -0
  423. package/src/testing/test-script.ts +29 -0
  424. package/src/translations.ts +96 -67
  425. package/src/types/Notebook.ts +45 -0
  426. package/src/types/ScriptCapabilities.ts +18 -0
  427. package/src/types/ScriptEvents.ts +11 -0
  428. package/src/types/ScriptOperation.ts +42 -0
  429. package/src/types/Settings.ts +20 -0
  430. package/src/types/index.ts +10 -0
  431. package/src/types/types.ts +5 -0
  432. package/src/util/deploy.ts +40 -61
  433. package/src/util/functions.ts +59 -25
  434. package/src/vite-env.d.ts +2 -0
  435. package/dist/lib/browser/DeploymentDialog-RPPPWEEL.mjs +0 -12
  436. package/dist/lib/browser/ScriptContainer-RSN52NH7.mjs +0 -261
  437. package/dist/lib/browser/ScriptContainer-RSN52NH7.mjs.map +0 -7
  438. package/dist/lib/browser/app-graph-builder-5Z3MUX4N.mjs +0 -64
  439. package/dist/lib/browser/app-graph-builder-5Z3MUX4N.mjs.map +0 -7
  440. package/dist/lib/browser/artifact-definition-A4TBQL75.mjs +0 -249
  441. package/dist/lib/browser/artifact-definition-A4TBQL75.mjs.map +0 -7
  442. package/dist/lib/browser/chunk-3FU4QZVP.mjs +0 -364
  443. package/dist/lib/browser/chunk-3FU4QZVP.mjs.map +0 -7
  444. package/dist/lib/browser/chunk-3JLR2SHJ.mjs +0 -557
  445. package/dist/lib/browser/chunk-3JLR2SHJ.mjs.map +0 -7
  446. package/dist/lib/browser/chunk-6ZHHWU6S.mjs +0 -28
  447. package/dist/lib/browser/chunk-6ZHHWU6S.mjs.map +0 -7
  448. package/dist/lib/browser/chunk-LA66DQGU.mjs +0 -153
  449. package/dist/lib/browser/chunk-LA66DQGU.mjs.map +0 -7
  450. package/dist/lib/browser/chunk-QJH7I2UV.mjs +0 -233
  451. package/dist/lib/browser/chunk-QJH7I2UV.mjs.map +0 -7
  452. package/dist/lib/browser/chunk-WB3X5Z7Q.mjs +0 -40
  453. package/dist/lib/browser/chunk-WB3X5Z7Q.mjs.map +0 -7
  454. package/dist/lib/browser/chunk-YSQMXTYO.mjs +0 -15
  455. package/dist/lib/browser/chunk-YSQMXTYO.mjs.map +0 -7
  456. package/dist/lib/browser/compiler-W4BYJYTL.mjs +0 -82
  457. package/dist/lib/browser/compiler-W4BYJYTL.mjs.map +0 -7
  458. package/dist/lib/browser/index.mjs +0 -207
  459. package/dist/lib/browser/index.mjs.map +0 -7
  460. package/dist/lib/browser/intent-resolver-JOJNH4UX.mjs +0 -90
  461. package/dist/lib/browser/intent-resolver-JOJNH4UX.mjs.map +0 -7
  462. package/dist/lib/browser/meta.json +0 -1
  463. package/dist/lib/browser/react-surface-7BKUWL2U.mjs +0 -105
  464. package/dist/lib/browser/react-surface-7BKUWL2U.mjs.map +0 -7
  465. package/dist/lib/browser/settings-Z22D6JVJ.mjs +0 -24
  466. package/dist/lib/browser/settings-Z22D6JVJ.mjs.map +0 -7
  467. package/dist/lib/browser/types.mjs +0 -13
  468. package/dist/lib/node/DeploymentDialog-C3EEYGRH.cjs +0 -33
  469. package/dist/lib/node/DeploymentDialog-C3EEYGRH.cjs.map +0 -7
  470. package/dist/lib/node/ScriptContainer-CAC7AISY.cjs +0 -278
  471. package/dist/lib/node/ScriptContainer-CAC7AISY.cjs.map +0 -7
  472. package/dist/lib/node/app-graph-builder-25OOTBW4.cjs +0 -80
  473. package/dist/lib/node/app-graph-builder-25OOTBW4.cjs.map +0 -7
  474. package/dist/lib/node/artifact-definition-QKZI6PTO.cjs +0 -265
  475. package/dist/lib/node/artifact-definition-QKZI6PTO.cjs.map +0 -7
  476. package/dist/lib/node/chunk-AU2FOE26.cjs +0 -369
  477. package/dist/lib/node/chunk-AU2FOE26.cjs.map +0 -7
  478. package/dist/lib/node/chunk-BUOBOT3V.cjs +0 -179
  479. package/dist/lib/node/chunk-BUOBOT3V.cjs.map +0 -7
  480. package/dist/lib/node/chunk-HCRW6T3G.cjs +0 -60
  481. package/dist/lib/node/chunk-HCRW6T3G.cjs.map +0 -7
  482. package/dist/lib/node/chunk-OSBMUJ4T.cjs +0 -580
  483. package/dist/lib/node/chunk-OSBMUJ4T.cjs.map +0 -7
  484. package/dist/lib/node/chunk-QG2X6J74.cjs +0 -52
  485. package/dist/lib/node/chunk-QG2X6J74.cjs.map +0 -7
  486. package/dist/lib/node/chunk-YO5W2IPQ.cjs +0 -251
  487. package/dist/lib/node/chunk-YO5W2IPQ.cjs.map +0 -7
  488. package/dist/lib/node/chunk-ZEV3VARQ.cjs +0 -34
  489. package/dist/lib/node/chunk-ZEV3VARQ.cjs.map +0 -7
  490. package/dist/lib/node/compiler-TFSJRLL4.cjs +0 -104
  491. package/dist/lib/node/compiler-TFSJRLL4.cjs.map +0 -7
  492. package/dist/lib/node/index.cjs +0 -225
  493. package/dist/lib/node/index.cjs.map +0 -7
  494. package/dist/lib/node/intent-resolver-BQ2NKEM7.cjs +0 -100
  495. package/dist/lib/node/intent-resolver-BQ2NKEM7.cjs.map +0 -7
  496. package/dist/lib/node/meta.json +0 -1
  497. package/dist/lib/node/react-surface-EUKPDFU3.cjs +0 -120
  498. package/dist/lib/node/react-surface-EUKPDFU3.cjs.map +0 -7
  499. package/dist/lib/node/settings-WO53FLYZ.cjs +0 -38
  500. package/dist/lib/node/settings-WO53FLYZ.cjs.map +0 -7
  501. package/dist/lib/node/types.cjs +0 -34
  502. package/dist/lib/node/types.cjs.map +0 -7
  503. package/dist/lib/node-esm/DeploymentDialog-IA4CH6WZ.mjs +0 -13
  504. package/dist/lib/node-esm/ScriptContainer-4IOOIPBF.mjs +0 -262
  505. package/dist/lib/node-esm/ScriptContainer-4IOOIPBF.mjs.map +0 -7
  506. package/dist/lib/node-esm/app-graph-builder-IOOUTHV2.mjs +0 -65
  507. package/dist/lib/node-esm/app-graph-builder-IOOUTHV2.mjs.map +0 -7
  508. package/dist/lib/node-esm/artifact-definition-4XRYAP54.mjs +0 -250
  509. package/dist/lib/node-esm/artifact-definition-4XRYAP54.mjs.map +0 -7
  510. package/dist/lib/node-esm/chunk-2KJYPUQD.mjs +0 -16
  511. package/dist/lib/node-esm/chunk-2KJYPUQD.mjs.map +0 -7
  512. package/dist/lib/node-esm/chunk-AEB5TPEW.mjs +0 -30
  513. package/dist/lib/node-esm/chunk-AEB5TPEW.mjs.map +0 -7
  514. package/dist/lib/node-esm/chunk-B4TP3LSZ.mjs +0 -558
  515. package/dist/lib/node-esm/chunk-B4TP3LSZ.mjs.map +0 -7
  516. package/dist/lib/node-esm/chunk-MJJQBUOL.mjs +0 -234
  517. package/dist/lib/node-esm/chunk-MJJQBUOL.mjs.map +0 -7
  518. package/dist/lib/node-esm/chunk-T7XDCUTF.mjs +0 -154
  519. package/dist/lib/node-esm/chunk-T7XDCUTF.mjs.map +0 -7
  520. package/dist/lib/node-esm/chunk-UESZKXLR.mjs +0 -41
  521. package/dist/lib/node-esm/chunk-UESZKXLR.mjs.map +0 -7
  522. package/dist/lib/node-esm/chunk-W2DAXWHA.mjs +0 -365
  523. package/dist/lib/node-esm/chunk-W2DAXWHA.mjs.map +0 -7
  524. package/dist/lib/node-esm/compiler-7PQ4D43R.mjs +0 -83
  525. package/dist/lib/node-esm/compiler-7PQ4D43R.mjs.map +0 -7
  526. package/dist/lib/node-esm/index.mjs +0 -208
  527. package/dist/lib/node-esm/index.mjs.map +0 -7
  528. package/dist/lib/node-esm/intent-resolver-HTM5PSRZ.mjs +0 -91
  529. package/dist/lib/node-esm/intent-resolver-HTM5PSRZ.mjs.map +0 -7
  530. package/dist/lib/node-esm/meta.json +0 -1
  531. package/dist/lib/node-esm/react-surface-6UO64YOS.mjs +0 -106
  532. package/dist/lib/node-esm/react-surface-6UO64YOS.mjs.map +0 -7
  533. package/dist/lib/node-esm/settings-KZEGCDYX.mjs +0 -25
  534. package/dist/lib/node-esm/settings-KZEGCDYX.mjs.map +0 -7
  535. package/dist/lib/node-esm/types.mjs +0 -14
  536. package/dist/types/src/capabilities/capabilities.d.ts +0 -5
  537. package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
  538. package/dist/types/src/capabilities/intent-resolver.d.ts +0 -4
  539. package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
  540. package/dist/types/src/components/DeploymentDialog/DeploymentDialog.d.ts +0 -11
  541. package/dist/types/src/components/DeploymentDialog/DeploymentDialog.d.ts.map +0 -1
  542. package/dist/types/src/components/DeploymentDialog/DeploymentDialog.stories.d.ts +0 -18
  543. package/dist/types/src/components/DeploymentDialog/DeploymentDialog.stories.d.ts.map +0 -1
  544. package/dist/types/src/components/DeploymentDialog/index.d.ts +0 -4
  545. package/dist/types/src/components/DeploymentDialog/index.d.ts.map +0 -1
  546. package/dist/types/src/components/FrameContainer/FrameContainer.d.ts +0 -12
  547. package/dist/types/src/components/FrameContainer/FrameContainer.d.ts.map +0 -1
  548. package/dist/types/src/components/FrameContainer/frame.d.ts +0 -2
  549. package/dist/types/src/components/FrameContainer/frame.d.ts.map +0 -1
  550. package/dist/types/src/components/FrameContainer/index.d.ts +0 -2
  551. package/dist/types/src/components/FrameContainer/index.d.ts.map +0 -1
  552. package/dist/types/src/components/ScriptContainer.d.ts +0 -12
  553. package/dist/types/src/components/ScriptContainer.d.ts.map +0 -1
  554. package/dist/types/src/components/Settings/ScriptObjectSettings.d.ts +0 -8
  555. package/dist/types/src/components/Settings/ScriptObjectSettings.d.ts.map +0 -1
  556. package/dist/types/src/components/Settings/ScriptPluginSettings.d.ts +0 -6
  557. package/dist/types/src/components/Settings/ScriptPluginSettings.d.ts.map +0 -1
  558. package/dist/types/src/components/Settings/index.d.ts +0 -3
  559. package/dist/types/src/components/Settings/index.d.ts.map +0 -1
  560. package/dist/types/src/components/TestPanel/TestContainer.d.ts +0 -7
  561. package/dist/types/src/components/TestPanel/TestContainer.d.ts.map +0 -1
  562. package/dist/types/src/events.d.ts +0 -4
  563. package/dist/types/src/events.d.ts.map +0 -1
  564. package/dist/types/src/templates/chess.d.ts +0 -3
  565. package/dist/types/src/templates/chess.d.ts.map +0 -1
  566. package/dist/types/src/templates/echo.d.ts +0 -6
  567. package/dist/types/src/templates/echo.d.ts.map +0 -1
  568. package/dist/types/src/types.d.ts +0 -40
  569. package/dist/types/src/types.d.ts.map +0 -1
  570. package/src/capabilities/capabilities.ts +0 -12
  571. package/src/capabilities/intent-resolver.ts +0 -80
  572. package/src/components/DeploymentDialog/DeploymentDialog.stories.tsx +0 -39
  573. package/src/components/DeploymentDialog/DeploymentDialog.tsx +0 -112
  574. package/src/components/DeploymentDialog/index.ts +0 -9
  575. package/src/components/FrameContainer/frame.html +0 -25
  576. package/src/components/FrameContainer/frame.tsx +0 -51
  577. package/src/components/ScriptContainer.tsx +0 -67
  578. package/src/components/Settings/ScriptObjectSettings.tsx +0 -206
  579. package/src/components/Settings/ScriptPluginSettings.tsx +0 -71
  580. package/src/components/Settings/index.ts +0 -6
  581. package/src/components/TestPanel/TestContainer.tsx +0 -21
  582. package/src/events.ts +0 -11
  583. package/src/templates/chess.ts +0 -47
  584. package/src/templates/echo.ts +0 -8
  585. package/src/types.ts +0 -42
  586. /package/dist/lib/{browser/DeploymentDialog-RPPPWEEL.mjs.map → neutral/blueprints/index.mjs.map} +0 -0
  587. /package/dist/lib/{browser/types.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
  588. /package/dist/lib/{node-esm/DeploymentDialog-IA4CH6WZ.mjs.map → neutral/index.mjs.map} +0 -0
  589. /package/dist/lib/{node-esm/types.mjs.map → neutral/meta.mjs.map} +0 -0
@@ -1,250 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- meta
4
- } from "./chunk-AEB5TPEW.mjs";
5
-
6
- // packages/plugins/plugin-script/src/capabilities/artifact-definition.ts
7
- import { Schema } from "effect";
8
- import { createTool, ToolResult } from "@dxos/ai";
9
- import { Capabilities, contributes, createIntent } from "@dxos/app-framework";
10
- import { ArtifactId, defineArtifact } from "@dxos/artifact";
11
- import { createArtifactElement } from "@dxos/assistant";
12
- import { Filter, Obj, Ref } from "@dxos/echo";
13
- import { ScriptType } from "@dxos/functions";
14
- import { invariant } from "@dxos/invariant";
15
- import { SpaceAction } from "@dxos/plugin-space/types";
16
- import { DataType } from "@dxos/schema";
17
- var __dxlog_file = "/home/runner/work/dxos/dxos/packages/plugins/plugin-script/src/capabilities/artifact-definition.ts";
18
- var artifact_definition_default = () => {
19
- const definition = defineArtifact({
20
- id: `artifact:${meta.id}`,
21
- name: meta.name,
22
- // TODO(dmaretskyi): Since writing scripts requires a lot of domain knowledge,
23
- // we should offload the work of synthesizing the code to a separate model.
24
- // The main reasoning model will give it a concrete task and the script model will synthesize the code, knowing all the docs.
25
- instructions: `
26
- If the user explicitly requests you to write a script, you can create one.
27
- If the user requests you to change one of the existing script, you can update it.
28
- You must not create a script unless the user explicitly requests it.
29
- Scripts are short code pieces of executable code that can be used to perform computations, integrate with external systems, and perform automated tasks.
30
- Each script must follow as strict shape for the definition but the body can contain any valid executable code.
31
- Scripts are written in JavaScript or TypeScript.
32
- Each script must define an input schema and output schema.
33
- Each script must have its own detailed description.
34
-
35
- Important: You cannot execute scripts. Scripts are only available as tools after the user deploys them. You must only call the available tools.
36
-
37
- Description:
38
- The description is a detailed description of the script.
39
- It is used to describe the script's purpose, input, and output.
40
- The description is used to generate the script's documentation.
41
- The description is also goes into the script metadata.
42
- The description is used by AI to understand the script and its purpose.
43
- The description must provide cases on when the script should be used.
44
-
45
- Schema:
46
- The schema is defined using a schema-DSL library called Effect Schema.
47
- The input schema describes the arguments that the script accepts.
48
- The output schema describes the result that the script produces.
49
- The schema is used to validate the script's input and output.
50
- The schema is also goes into the script metadata.
51
- The properties in the schema must have valid descriptions.
52
- The input and output schemas must both be a struct of fields.
53
-
54
- Restricts:
55
- The scripts can only import code from "dxos:functions" module. No other modules are allowed.
56
- Some web APIs are available - like fetch.
57
-
58
- Reasoning:
59
- Before writing a script, synthesize the following information:
60
- - Description
61
- - What APIs will be used.
62
- - Detailed input schema
63
- - Detailed output schema
64
-
65
- <apis>
66
- export function defineFunction(params: {
67
- description: string,
68
- inputSchema: Schema.Schema,
69
- outputSchema: Schema.Schema,
70
- handler: (params: { event: { data: TInput } }) => Promise<TOutput>
71
- }): FunctionDefinition
72
- /**
73
- * Effect Schema
74
- */
75
- export const Schema;
76
-
77
- // Examples:
78
-
79
- Schema.String
80
- Schema.Number
81
- Schema.Boolean
82
- Schema.Struct({
83
- from: Schema.String.annotations({ description: 'The source currency' }),
84
- to: Schema.String.annotations({ description: 'The target currency' }),
85
- })
86
- Schema.Array(Schema.String)
87
- Schema.Union(Schema.String, Schema.Number)
88
- Schema.optional(Schema.String)
89
- Schema.String.annotations({ description: 'The source currency' })
90
- </apis>
91
-
92
- <handler_function>
93
- Async function that takes the argument in the form of:
94
-
95
- type HandlerFunctionParam = {
96
- event: {
97
- data: T // The input schema
98
- },
99
- }
100
-
101
- The function must return the result that matches the output schema.
102
- </handler_function>
103
-
104
- <example>
105
- import { defineFunction, S } from 'dxos:functions';
106
-
107
- export default defineFunction({
108
- description: 'Returns the exchange rate between two currencies.',
109
-
110
- inputSchema: Schema.Struct({
111
- from: Schema.String.annotations({ description: 'The source currency' }),
112
- to: Schema.String.annotations({ description: 'The target currency' }),
113
- }),
114
-
115
- outputSchema: Schema.Struct({
116
- rate: Schema.String.annotations({ description: 'The exchange rate' }),
117
- }),
118
-
119
- handler: async ({
120
- event: {
121
- data: { from, to },
122
- },
123
- }: any) => {
124
- const res = await fetch(\`https://free.ratesdb.com/v1/rates?from=\${from}&to=\${to}\`);
125
- const {
126
- data: { rates },
127
- } = await res.json();
128
-
129
- return { rate: rates[to].toString() };
130
- },
131
- });
132
- </example>
133
- `,
134
- schema: ScriptType,
135
- tools: [
136
- createTool(meta.id, {
137
- name: "create",
138
- description: "Create a new script. Returns the artifact definition for the script",
139
- caption: "Creating script...",
140
- schema: Schema.Struct({
141
- name: Schema.String.annotations({
142
- description: "The name of the script"
143
- }),
144
- code: Schema.String.annotations({
145
- description: "The full code of the script in JavaScript or TypeScript. Must be valid executable code."
146
- })
147
- }),
148
- execute: async ({ name, code }, { extensions }) => {
149
- invariant(extensions?.space, "No space", {
150
- F: __dxlog_file,
151
- L: 156,
152
- S: void 0,
153
- A: [
154
- "extensions?.space",
155
- "'No space'"
156
- ]
157
- });
158
- invariant(extensions?.dispatch, "No intent dispatcher", {
159
- F: __dxlog_file,
160
- L: 157,
161
- S: void 0,
162
- A: [
163
- "extensions?.dispatch",
164
- "'No intent dispatcher'"
165
- ]
166
- });
167
- const script = Obj.make(ScriptType, {
168
- name,
169
- source: Ref.make(Obj.make(DataType.Text, {
170
- content: code
171
- }))
172
- });
173
- extensions.space.db.add(script);
174
- await extensions.space.db.flush();
175
- const intent = createIntent(SpaceAction.AddObject, {
176
- target: extensions.space,
177
- object: script
178
- });
179
- const { data, error } = await extensions.dispatch(intent);
180
- if (!data || error) {
181
- return ToolResult.Error(error?.message ?? "Failed to create chess game");
182
- }
183
- return ToolResult.Success(createArtifactElement(script.id));
184
- }
185
- }),
186
- createTool(meta.id, {
187
- name: "inspect",
188
- description: "Inspect a script. Returns the artifact definition for the script",
189
- caption: "Inspecting script...",
190
- schema: Schema.Struct({
191
- id: ArtifactId
192
- }),
193
- execute: async ({ id }, { extensions }) => {
194
- invariant(extensions?.space, "No space", {
195
- F: __dxlog_file,
196
- L: 186,
197
- S: void 0,
198
- A: [
199
- "extensions?.space",
200
- "'No space'"
201
- ]
202
- });
203
- const script = await extensions.space.db.query(Filter.ids(id)).first();
204
- const { content } = await script.source.load();
205
- return ToolResult.Success({
206
- name: script.name,
207
- code: content
208
- });
209
- }
210
- }),
211
- createTool(meta.id, {
212
- name: "update",
213
- description: "Update a script. Returns the artifact definition for the script",
214
- caption: "Updating script...",
215
- schema: Schema.Struct({
216
- id: ArtifactId,
217
- code: Schema.String.annotations({
218
- description: "The full code of the script in JavaScript or TypeScript. Must be valid executable code."
219
- })
220
- }),
221
- execute: async ({ id, code }, { extensions }) => {
222
- invariant(extensions?.space, "No space", {
223
- F: __dxlog_file,
224
- L: 208,
225
- S: void 0,
226
- A: [
227
- "extensions?.space",
228
- "'No space'"
229
- ]
230
- });
231
- const script = await extensions.space.db.query(Filter.ids(id)).first();
232
- const source = await script.source.load();
233
- if (!source) {
234
- return ToolResult.Error("Script not found");
235
- }
236
- source.content = code;
237
- await extensions.space?.db.flush();
238
- return ToolResult.Success({
239
- name: script.name
240
- });
241
- }
242
- })
243
- ]
244
- });
245
- return contributes(Capabilities.ArtifactDefinition, definition);
246
- };
247
- export {
248
- artifact_definition_default as default
249
- };
250
- //# sourceMappingURL=artifact-definition-4XRYAP54.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/artifact-definition.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Schema } from 'effect';\n\nimport { createTool, ToolResult } from '@dxos/ai';\nimport { Capabilities, contributes, createIntent, type PromiseIntentDispatcher } from '@dxos/app-framework';\nimport { ArtifactId, defineArtifact } from '@dxos/artifact';\nimport { createArtifactElement } from '@dxos/assistant';\nimport { Filter, Obj, Ref } from '@dxos/echo';\nimport { ScriptType } from '@dxos/functions';\nimport { invariant } from '@dxos/invariant';\nimport { SpaceAction } from '@dxos/plugin-space/types';\nimport { type Space } from '@dxos/react-client/echo';\nimport { DataType } from '@dxos/schema';\n\nimport { meta } from '../meta';\n// TODO(burdon): Factor out.\ndeclare global {\n interface ToolContextExtensions {\n space?: Space;\n dispatch?: PromiseIntentDispatcher;\n }\n}\n\nexport default () => {\n const definition = defineArtifact({\n id: `artifact:${meta.id}`,\n name: meta.name,\n // TODO(dmaretskyi): Since writing scripts requires a lot of domain knowledge,\n // we should offload the work of synthesizing the code to a separate model.\n // The main reasoning model will give it a concrete task and the script model will synthesize the code, knowing all the docs.\n instructions: `\n If the user explicitly requests you to write a script, you can create one.\n If the user requests you to change one of the existing script, you can update it.\n You must not create a script unless the user explicitly requests it.\n Scripts are short code pieces of executable code that can be used to perform computations, integrate with external systems, and perform automated tasks.\n Each script must follow as strict shape for the definition but the body can contain any valid executable code.\n Scripts are written in JavaScript or TypeScript.\n Each script must define an input schema and output schema.\n Each script must have its own detailed description.\n\n Important: You cannot execute scripts. Scripts are only available as tools after the user deploys them. You must only call the available tools.\n\n Description:\n The description is a detailed description of the script.\n It is used to describe the script's purpose, input, and output.\n The description is used to generate the script's documentation.\n The description is also goes into the script metadata.\n The description is used by AI to understand the script and its purpose.\n The description must provide cases on when the script should be used.\n\n Schema: \n The schema is defined using a schema-DSL library called Effect Schema.\n The input schema describes the arguments that the script accepts.\n The output schema describes the result that the script produces.\n The schema is used to validate the script's input and output.\n The schema is also goes into the script metadata.\n The properties in the schema must have valid descriptions.\n The input and output schemas must both be a struct of fields.\n\n Restricts:\n The scripts can only import code from \"dxos:functions\" module. No other modules are allowed.\n Some web APIs are available - like fetch.\n\n Reasoning:\n Before writing a script, synthesize the following information:\n - Description\n - What APIs will be used.\n - Detailed input schema\n - Detailed output schema\n\n <apis>\n export function defineFunction(params: { \n description: string, \n inputSchema: Schema.Schema, \n outputSchema: Schema.Schema, \n handler: (params: { event: { data: TInput } }) => Promise<TOutput> \n }): FunctionDefinition\n /**\n * Effect Schema\n */\n export const Schema; \n\n // Examples: \n\n Schema.String\n Schema.Number\n Schema.Boolean\n Schema.Struct({\n from: Schema.String.annotations({ description: 'The source currency' }),\n to: Schema.String.annotations({ description: 'The target currency' }),\n })\n Schema.Array(Schema.String)\n Schema.Union(Schema.String, Schema.Number)\n Schema.optional(Schema.String)\n Schema.String.annotations({ description: 'The source currency' })\n </apis>\n\n <handler_function>\n Async function that takes the argument in the form of:\n\n type HandlerFunctionParam = {\n event: {\n data: T // The input schema\n },\n }\n\n The function must return the result that matches the output schema.\n </handler_function>\n \n <example>\n import { defineFunction, S } from 'dxos:functions';\n\n export default defineFunction({\n description: 'Returns the exchange rate between two currencies.',\n\n inputSchema: Schema.Struct({\n from: Schema.String.annotations({ description: 'The source currency' }),\n to: Schema.String.annotations({ description: 'The target currency' }),\n }),\n\n outputSchema: Schema.Struct({\n rate: Schema.String.annotations({ description: 'The exchange rate' }),\n }),\n\n handler: async ({\n event: {\n data: { from, to },\n },\n }: any) => {\n const res = await fetch(\\`https://free.ratesdb.com/v1/rates?from=\\${from}&to=\\${to}\\`);\n const {\n data: { rates },\n } = await res.json();\n\n return { rate: rates[to].toString() };\n },\n });\n </example>\n `,\n schema: ScriptType,\n tools: [\n createTool(meta.id, {\n name: 'create',\n description: 'Create a new script. Returns the artifact definition for the script',\n caption: 'Creating script...',\n schema: Schema.Struct({\n name: Schema.String.annotations({ description: 'The name of the script' }),\n code: Schema.String.annotations({\n description: 'The full code of the script in JavaScript or TypeScript. Must be valid executable code.',\n }),\n }),\n execute: async ({ name, code }, { extensions }) => {\n invariant(extensions?.space, 'No space');\n invariant(extensions?.dispatch, 'No intent dispatcher');\n const script = Obj.make(ScriptType, {\n name,\n source: Ref.make(\n Obj.make(DataType.Text, {\n content: code,\n }),\n ),\n });\n extensions.space.db.add(script);\n await extensions.space.db.flush();\n\n const intent = createIntent(SpaceAction.AddObject, { target: extensions.space, object: script });\n const { data, error } = await extensions.dispatch(intent);\n if (!data || error) {\n return ToolResult.Error(error?.message ?? 'Failed to create chess game');\n }\n\n return ToolResult.Success(createArtifactElement(script.id));\n },\n }),\n createTool(meta.id, {\n name: 'inspect',\n description: 'Inspect a script. Returns the artifact definition for the script',\n caption: 'Inspecting script...',\n schema: Schema.Struct({\n id: ArtifactId,\n }),\n execute: async ({ id }, { extensions }) => {\n invariant(extensions?.space, 'No space');\n\n const script = (await extensions.space.db.query(Filter.ids(id)).first()) as ScriptType;\n const { content } = await script.source.load();\n\n return ToolResult.Success({\n name: script.name,\n code: content,\n });\n },\n }),\n createTool(meta.id, {\n name: 'update',\n description: 'Update a script. Returns the artifact definition for the script',\n caption: 'Updating script...',\n schema: Schema.Struct({\n id: ArtifactId,\n code: Schema.String.annotations({\n description: 'The full code of the script in JavaScript or TypeScript. Must be valid executable code.',\n }),\n }),\n execute: async ({ id, code }, { extensions }) => {\n invariant(extensions?.space, 'No space');\n\n const script = (await extensions.space.db.query(Filter.ids(id)).first()) as ScriptType;\n const source = await script.source.load();\n if (!source) {\n return ToolResult.Error('Script not found');\n }\n\n source.content = code;\n await extensions.space?.db.flush();\n\n return ToolResult.Success({\n name: script.name,\n });\n },\n }),\n ],\n });\n\n return contributes(Capabilities.ArtifactDefinition, definition);\n};\n"],
5
- "mappings": ";;;;;;AAIA,SAASA,cAAc;AAEvB,SAASC,YAAYC,kBAAkB;AACvC,SAASC,cAAcC,aAAaC,oBAAkD;AACtF,SAASC,YAAYC,sBAAsB;AAC3C,SAASC,6BAA6B;AACtC,SAASC,QAAQC,KAAKC,WAAW;AACjC,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,mBAAmB;AAE5B,SAASC,gBAAgB;;AAWzB,IAAA,8BAAe,MAAA;AACb,QAAMC,aAAaC,eAAe;IAChCC,IAAI,YAAYC,KAAKD,EAAE;IACvBE,MAAMD,KAAKC;;;;IAIXC,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA6GdC,QAAQC;IACRC,OAAO;MACLC,WAAWN,KAAKD,IAAI;QAClBE,MAAM;QACNM,aAAa;QACbC,SAAS;QACTL,QAAQM,OAAOC,OAAO;UACpBT,MAAMQ,OAAOE,OAAOC,YAAY;YAAEL,aAAa;UAAyB,CAAA;UACxEM,MAAMJ,OAAOE,OAAOC,YAAY;YAC9BL,aAAa;UACf,CAAA;QACF,CAAA;QACAO,SAAS,OAAO,EAAEb,MAAMY,KAAI,GAAI,EAAEE,WAAU,MAAE;AAC5CC,oBAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAC7BD,oBAAUD,YAAYG,UAAU,wBAAA;;;;;;;;;AAChC,gBAAMC,SAASC,IAAIC,KAAKjB,YAAY;YAClCH;YACAqB,QAAQC,IAAIF,KACVD,IAAIC,KAAKG,SAASC,MAAM;cACtBC,SAASb;YACX,CAAA,CAAA;UAEJ,CAAA;AACAE,qBAAWE,MAAMU,GAAGC,IAAIT,MAAAA;AACxB,gBAAMJ,WAAWE,MAAMU,GAAGE,MAAK;AAE/B,gBAAMC,SAASC,aAAaC,YAAYC,WAAW;YAAEC,QAAQnB,WAAWE;YAAOkB,QAAQhB;UAAO,CAAA;AAC9F,gBAAM,EAAEiB,MAAMC,MAAK,IAAK,MAAMtB,WAAWG,SAASY,MAAAA;AAClD,cAAI,CAACM,QAAQC,OAAO;AAClB,mBAAOC,WAAWC,MAAMF,OAAOG,WAAW,6BAAA;UAC5C;AAEA,iBAAOF,WAAWG,QAAQC,sBAAsBvB,OAAOpB,EAAE,CAAA;QAC3D;MACF,CAAA;MACAO,WAAWN,KAAKD,IAAI;QAClBE,MAAM;QACNM,aAAa;QACbC,SAAS;QACTL,QAAQM,OAAOC,OAAO;UACpBX,IAAI4C;QACN,CAAA;QACA7B,SAAS,OAAO,EAAEf,GAAE,GAAI,EAAEgB,WAAU,MAAE;AACpCC,oBAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAE7B,gBAAME,SAAU,MAAMJ,WAAWE,MAAMU,GAAGiB,MAAMC,OAAOC,IAAI/C,EAAAA,CAAAA,EAAKgD,MAAK;AACrE,gBAAM,EAAErB,QAAO,IAAK,MAAMP,OAAOG,OAAO0B,KAAI;AAE5C,iBAAOV,WAAWG,QAAQ;YACxBxC,MAAMkB,OAAOlB;YACbY,MAAMa;UACR,CAAA;QACF;MACF,CAAA;MACApB,WAAWN,KAAKD,IAAI;QAClBE,MAAM;QACNM,aAAa;QACbC,SAAS;QACTL,QAAQM,OAAOC,OAAO;UACpBX,IAAI4C;UACJ9B,MAAMJ,OAAOE,OAAOC,YAAY;YAC9BL,aAAa;UACf,CAAA;QACF,CAAA;QACAO,SAAS,OAAO,EAAEf,IAAIc,KAAI,GAAI,EAAEE,WAAU,MAAE;AAC1CC,oBAAUD,YAAYE,OAAO,YAAA;;;;;;;;;AAE7B,gBAAME,SAAU,MAAMJ,WAAWE,MAAMU,GAAGiB,MAAMC,OAAOC,IAAI/C,EAAAA,CAAAA,EAAKgD,MAAK;AACrE,gBAAMzB,SAAS,MAAMH,OAAOG,OAAO0B,KAAI;AACvC,cAAI,CAAC1B,QAAQ;AACX,mBAAOgB,WAAWC,MAAM,kBAAA;UAC1B;AAEAjB,iBAAOI,UAAUb;AACjB,gBAAME,WAAWE,OAAOU,GAAGE,MAAAA;AAE3B,iBAAOS,WAAWG,QAAQ;YACxBxC,MAAMkB,OAAOlB;UACf,CAAA;QACF;MACF,CAAA;;EAEJ,CAAA;AAEA,SAAOgD,YAAYC,aAAaC,oBAAoBtD,UAAAA;AACtD;",
6
- "names": ["Schema", "createTool", "ToolResult", "Capabilities", "contributes", "createIntent", "ArtifactId", "defineArtifact", "createArtifactElement", "Filter", "Obj", "Ref", "ScriptType", "invariant", "SpaceAction", "DataType", "definition", "defineArtifact", "id", "meta", "name", "instructions", "schema", "ScriptType", "tools", "createTool", "description", "caption", "Schema", "Struct", "String", "annotations", "code", "execute", "extensions", "invariant", "space", "dispatch", "script", "Obj", "make", "source", "Ref", "DataType", "Text", "content", "db", "add", "flush", "intent", "createIntent", "SpaceAction", "AddObject", "target", "object", "data", "error", "ToolResult", "Error", "message", "Success", "createArtifactElement", "ArtifactId", "query", "Filter", "ids", "first", "load", "contributes", "Capabilities", "ArtifactDefinition"]
7
- }
@@ -1,16 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
- import {
3
- meta
4
- } from "./chunk-AEB5TPEW.mjs";
5
-
6
- // packages/plugins/plugin-script/src/capabilities/capabilities.ts
7
- import { defineCapability } from "@dxos/app-framework";
8
- (function(ScriptCapabilities2) {
9
- ScriptCapabilities2.Compiler = defineCapability(`${meta.id}/capability/compiler`);
10
- })(ScriptCapabilities || (ScriptCapabilities = {}));
11
- var ScriptCapabilities;
12
-
13
- export {
14
- ScriptCapabilities
15
- };
16
- //# sourceMappingURL=chunk-2KJYPUQD.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/capabilities/capabilities.ts"],
4
- "sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineCapability } from '@dxos/app-framework';\n\nimport { type Compiler } from '../compiler';\nimport { meta } from '../meta';\n\nexport namespace ScriptCapabilities {\n export const Compiler = defineCapability<Compiler>(`${meta.id}/capability/compiler`);\n}\n"],
5
- "mappings": ";;;;;;AAIA,SAASA,wBAAwB;UAKhBC,qBAAAA;sBACFC,WAAWC,iBAA2B,GAAGC,KAAKC,EAAE,sBAAsB;AACrF,GAFiBJ,uBAAAA,qBAAAA,CAAAA,EAAAA;;",
6
- "names": ["defineCapability", "ScriptCapabilities", "Compiler", "defineCapability", "meta", "id"]
7
- }
@@ -1,30 +0,0 @@
1
- import { createRequire } from 'node:module';const require = createRequire(import.meta.url);
2
-
3
- // packages/plugins/plugin-script/src/meta.ts
4
- var SCRIPT_PLUGIN = "dxos.org/plugin/script";
5
- var meta = {
6
- id: SCRIPT_PLUGIN,
7
- name: "Scripts",
8
- description: "Scripts in Composer allow you to deploy custom functions that run on the edge. These functions can be referenced by your AI agent and called inside of cells in any Sheet. Use scripts to interact with API\u2019s or external data inside of Composer.",
9
- icon: "ph--code--regular",
10
- source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-explorer",
11
- tags: [
12
- "labs"
13
- ],
14
- screenshots: [
15
- "https://dxos.network/plugin-details-scripts-dark.png"
16
- ]
17
- };
18
- var defaultScriptsForIntegration = {
19
- // TODO(wittjosiah): Also include content extraction scripts in the default set.
20
- "gmail.com": [
21
- "dxos.org/script/gmail"
22
- ]
23
- };
24
-
25
- export {
26
- SCRIPT_PLUGIN,
27
- meta,
28
- defaultScriptsForIntegration
29
- };
30
- //# sourceMappingURL=chunk-AEB5TPEW.mjs.map
@@ -1,7 +0,0 @@
1
- {
2
- "version": 3,
3
- "sources": ["../../../src/meta.ts"],
4
- "sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const SCRIPT_PLUGIN = 'dxos.org/plugin/script';\n\nexport const meta: PluginMeta = {\n id: SCRIPT_PLUGIN,\n name: 'Scripts',\n description:\n 'Scripts in Composer allow you to deploy custom functions that run on the edge. These functions can be referenced by your AI agent and called inside of cells in any Sheet. Use scripts to interact with API’s or external data inside of Composer.',\n icon: 'ph--code--regular',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-explorer',\n tags: ['labs'],\n screenshots: ['https://dxos.network/plugin-details-scripts-dark.png'],\n};\n\n// TODO(ZaymonFC): Configure by scopes?\nexport const defaultScriptsForIntegration: Record<string, string[]> = {\n // TODO(wittjosiah): Also include content extraction scripts in the default set.\n 'gmail.com': ['dxos.org/script/gmail'],\n};\n"],
5
- "mappings": ";;;AAMO,IAAMA,gBAAgB;AAEtB,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,aACE;EACFC,MAAM;EACNC,QAAQ;EACRC,MAAM;IAAC;;EACPC,aAAa;IAAC;;AAChB;AAGO,IAAMC,+BAAyD;;EAEpE,aAAa;IAAC;;AAChB;",
6
- "names": ["SCRIPT_PLUGIN", "meta", "id", "name", "description", "icon", "source", "tags", "screenshots", "defaultScriptsForIntegration"]
7
- }