@datalayer/jupyter-react 1.1.8 → 1.2.0

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 (528) hide show
  1. package/README.md +74 -1
  2. package/lib/app/tabs/components/CellComponent.js +4 -2
  3. package/lib/app/tabs/components/CellComponent.js.map +1 -1
  4. package/lib/app/tabs/components/NotebookComponent.js +2 -2
  5. package/lib/app/tabs/components/NotebookComponent.js.map +1 -1
  6. package/lib/app/tabs/components/ViewerComponent.js +1 -1
  7. package/lib/app/tabs/components/ViewerComponent.js.map +1 -1
  8. package/lib/components/cell/Cell.d.ts +5 -8
  9. package/lib/components/cell/Cell.js +6 -22
  10. package/lib/components/cell/Cell.js.map +1 -1
  11. package/lib/components/cell/CellAdapter.d.ts +1 -3
  12. package/lib/components/cell/CellAdapter.js +5 -17
  13. package/lib/components/cell/CellAdapter.js.map +1 -1
  14. package/lib/components/codemirror/CodeMirrorOutputToolbar.d.ts +2 -2
  15. package/lib/components/codemirror/CodeMirrorOutputToolbar.js.map +1 -1
  16. package/lib/components/console/ConsoleAdapter.d.ts +1 -1
  17. package/lib/components/console/ConsoleAdapter.js +1 -1
  18. package/lib/components/console/ConsoleAdapter.js.map +1 -1
  19. package/lib/components/jupyterlab/JupyterLabApp.d.ts +16 -19
  20. package/lib/components/jupyterlab/JupyterLabApp.js +27 -21
  21. package/lib/components/jupyterlab/JupyterLabApp.js.map +1 -1
  22. package/lib/components/jupyterlab/JupyterLabAppAdapter.d.ts +4 -4
  23. package/lib/components/jupyterlab/JupyterLabAppAdapter.js +1 -1
  24. package/lib/components/jupyterlab/JupyterLabAppAdapter.js.map +1 -1
  25. package/lib/components/jupyterlab/JupyterLabAppCss.d.ts +1 -4
  26. package/lib/components/jupyterlab/JupyterLabAppCss.js +1 -5
  27. package/lib/components/jupyterlab/JupyterLabAppCss.js.map +1 -1
  28. package/lib/components/kernel/KernelActionMenu.d.ts +2 -2
  29. package/lib/components/kernel/KernelActionMenu.js.map +1 -1
  30. package/lib/components/kernel/KernelDetective.d.ts +1 -1
  31. package/lib/components/kernel/{Kernelndicator.d.ts → KernelIndicator.d.ts} +2 -1
  32. package/lib/components/kernel/{Kernelndicator.js → KernelIndicator.js} +13 -5
  33. package/lib/components/kernel/KernelIndicator.js.map +1 -0
  34. package/lib/components/kernel/KernelInspector.d.ts +2 -2
  35. package/lib/components/kernel/KernelInspector.js.map +1 -1
  36. package/lib/components/kernel/KernelSelector.d.ts +2 -2
  37. package/lib/components/kernel/KernelSelector.js.map +1 -1
  38. package/lib/components/kernel/KernelUsage.d.ts +2 -2
  39. package/lib/components/kernel/KernelUsage.js.map +1 -1
  40. package/lib/components/kernel/KernelVariables.d.ts +2 -2
  41. package/lib/components/kernel/KernelVariables.js.map +1 -1
  42. package/lib/components/kernel/index.d.ts +1 -1
  43. package/lib/components/kernel/index.js +1 -1
  44. package/lib/components/kernel/index.js.map +1 -1
  45. package/lib/components/kernel/variables/kernelconnector.d.ts +2 -2
  46. package/lib/components/kernel/variables/kernelconnector.js +2 -2
  47. package/lib/components/kernel/variables/widget.d.ts +4 -2
  48. package/lib/components/kernel/variables/widget.js.map +1 -1
  49. package/lib/components/lumino/Lumino.d.ts +1 -1
  50. package/lib/components/lumino/LuminoBox.d.ts +3 -9
  51. package/lib/components/lumino/LuminoBox.js +1 -6
  52. package/lib/components/lumino/LuminoBox.js.map +1 -1
  53. package/lib/components/lumino/ReactPortalWidget.d.ts +1 -2
  54. package/lib/components/notebook/Notebook.d.ts +4 -6
  55. package/lib/components/notebook/Notebook.js +11 -26
  56. package/lib/components/notebook/Notebook.js.map +1 -1
  57. package/lib/components/notebook/Notebook2.d.ts +6 -2
  58. package/lib/components/notebook/Notebook2.js +3 -2
  59. package/lib/components/notebook/Notebook2.js.map +1 -1
  60. package/lib/components/notebook/Notebook2Adapter.d.ts +189 -0
  61. package/lib/components/notebook/Notebook2Adapter.js +554 -10
  62. package/lib/components/notebook/Notebook2Adapter.js.map +1 -1
  63. package/lib/components/notebook/Notebook2Base.d.ts +15 -9
  64. package/lib/components/notebook/Notebook2Base.js +89 -50
  65. package/lib/components/notebook/Notebook2Base.js.map +1 -1
  66. package/lib/components/notebook/Notebook2State.d.ts +35 -8
  67. package/lib/components/notebook/Notebook2State.js +74 -45
  68. package/lib/components/notebook/Notebook2State.js.map +1 -1
  69. package/lib/components/notebook/NotebookAdapter.d.ts +1 -0
  70. package/lib/components/notebook/NotebookAdapter.js +13 -8
  71. package/lib/components/notebook/NotebookAdapter.js.map +1 -1
  72. package/lib/components/notebook/NotebookCommands.d.ts +25 -2
  73. package/lib/components/notebook/NotebookCommands.js +89 -10
  74. package/lib/components/notebook/NotebookCommands.js.map +1 -1
  75. package/lib/components/notebook/NotebookState.d.ts +11 -11
  76. package/lib/components/notebook/cell/sidebar/CellSidebarButton.js +1 -1
  77. package/lib/components/notebook/cell/sidebar/CellSidebarExtension.d.ts +2 -4
  78. package/lib/components/notebook/cell/sidebar/CellSidebarExtension.js +1 -3
  79. package/lib/components/notebook/cell/sidebar/CellSidebarExtension.js.map +1 -1
  80. package/lib/components/notebook/index.d.ts +1 -0
  81. package/lib/components/notebook/index.js +1 -0
  82. package/lib/components/notebook/index.js.map +1 -1
  83. package/lib/components/notebook/model/JupyterReactNotebookModelFactory.d.ts +28 -1
  84. package/lib/components/notebook/model/JupyterReactNotebookModelFactory.js +15 -1
  85. package/lib/components/notebook/model/JupyterReactNotebookModelFactory.js.map +1 -1
  86. package/lib/components/output/Output.d.ts +11 -13
  87. package/lib/components/output/Output.js +19 -30
  88. package/lib/components/output/Output.js.map +1 -1
  89. package/lib/components/output/OutputIPyWidgets.d.ts +2 -2
  90. package/lib/components/output/OutputIPyWidgets.js.map +1 -1
  91. package/lib/components/output/OutputRenderer.d.ts +2 -2
  92. package/lib/components/output/OutputRenderer.js.map +1 -1
  93. package/lib/components/terminal/Terminal.d.ts +1 -4
  94. package/lib/components/terminal/Terminal.js +5 -8
  95. package/lib/components/terminal/Terminal.js.map +1 -1
  96. package/lib/components/viewer/Viewer.d.ts +1 -1
  97. package/lib/components/viewer/output/OutputViewer.d.ts +3 -6
  98. package/lib/components/viewer/output/OutputViewer.js +1 -5
  99. package/lib/components/viewer/output/OutputViewer.js.map +1 -1
  100. package/lib/examples/Bokeh.js +2 -2
  101. package/lib/examples/Bokeh.js.map +1 -1
  102. package/lib/examples/Bqplot.js +2 -2
  103. package/lib/examples/Bqplot.js.map +1 -1
  104. package/lib/examples/Cell.js +4 -4
  105. package/lib/examples/Cell.js.map +1 -1
  106. package/lib/examples/CellLite.js +16 -4
  107. package/lib/examples/CellLite.js.map +1 -1
  108. package/lib/examples/Cells.js +9 -6
  109. package/lib/examples/Cells.js.map +1 -1
  110. package/lib/examples/CellsExecute.js +13 -9
  111. package/lib/examples/CellsExecute.js.map +1 -1
  112. package/lib/examples/Console.js +2 -2
  113. package/lib/examples/Console.js.map +1 -1
  114. package/lib/examples/ConsoleLite.js +3 -3
  115. package/lib/examples/ConsoleLite.js.map +1 -1
  116. package/lib/examples/Dashboard.js +2 -2
  117. package/lib/examples/Dashboard.js.map +1 -1
  118. package/lib/examples/Deno.js +2 -2
  119. package/lib/examples/Deno.js.map +1 -1
  120. package/lib/examples/Examples.d.ts +23 -0
  121. package/lib/examples/Examples.js +342 -0
  122. package/lib/examples/Examples.js.map +1 -0
  123. package/lib/examples/FileBrowser.js +2 -2
  124. package/lib/examples/FileBrowser.js.map +1 -1
  125. package/lib/examples/GeoJson.js +2 -2
  126. package/lib/examples/GeoJson.js.map +1 -1
  127. package/lib/examples/IPyLeaflet.js +3 -3
  128. package/lib/examples/IPyLeaflet.js.map +1 -1
  129. package/lib/examples/IPyReact.js +3 -3
  130. package/lib/examples/IPyReact.js.map +1 -1
  131. package/lib/examples/IPyWidgets.js +3 -3
  132. package/lib/examples/IPyWidgets.js.map +1 -1
  133. package/lib/examples/IPyWidgetsState.js +3 -3
  134. package/lib/examples/IPyWidgetsState.js.map +1 -1
  135. package/lib/examples/JupyterContext.js +2 -2
  136. package/lib/examples/JupyterContext.js.map +1 -1
  137. package/lib/examples/JupyterLabAppHeadless.js +2 -2
  138. package/lib/examples/JupyterLabAppHeadless.js.map +1 -1
  139. package/lib/examples/JupyterLabAppHeadlessServerless.js +2 -2
  140. package/lib/examples/JupyterLabAppHeadlessServerless.js.map +1 -1
  141. package/lib/examples/JupyterLabAppServerless.js +2 -2
  142. package/lib/examples/JupyterLabAppServerless.js.map +1 -1
  143. package/lib/examples/JupyterLabAppServiceManager.js +2 -2
  144. package/lib/examples/JupyterLabAppServiceManager.js.map +1 -1
  145. package/lib/examples/JupyterLabTheme.js +2 -2
  146. package/lib/examples/JupyterLabTheme.js.map +1 -1
  147. package/lib/examples/KernelExecute.d.ts +1 -1
  148. package/lib/examples/KernelExecute.js +9 -11
  149. package/lib/examples/KernelExecute.js.map +1 -1
  150. package/lib/examples/KernelExecuteLite.d.ts +1 -0
  151. package/lib/examples/KernelExecuteLite.js +51 -0
  152. package/lib/examples/KernelExecuteLite.js.map +1 -0
  153. package/lib/examples/KernelExecutor.js +10 -9
  154. package/lib/examples/KernelExecutor.js.map +1 -1
  155. package/lib/examples/KernelExecutorLite.js +63 -0
  156. package/lib/examples/KernelExecutorLite.js.map +1 -0
  157. package/lib/examples/Kernels.js +6 -5
  158. package/lib/examples/Kernels.js.map +1 -1
  159. package/lib/examples/Lumino.js +2 -2
  160. package/lib/examples/Lumino.js.map +1 -1
  161. package/lib/examples/Matplotlib.js +10 -6
  162. package/lib/examples/Matplotlib.js.map +1 -1
  163. package/lib/examples/Notebook.js +3 -2
  164. package/lib/examples/Notebook.js.map +1 -1
  165. package/lib/examples/Notebook2.js +9 -6
  166. package/lib/examples/Notebook2.js.map +1 -1
  167. package/lib/examples/Notebook2Actions.js +8 -6
  168. package/lib/examples/Notebook2Actions.js.map +1 -1
  169. package/lib/examples/Notebook2Collaborative.js +2 -2
  170. package/lib/examples/Notebook2Collaborative.js.map +1 -1
  171. package/lib/examples/Notebook2Lite.js +19 -14
  172. package/lib/examples/Notebook2Lite.js.map +1 -1
  173. package/lib/examples/NotebookCellSidebar.js +3 -3
  174. package/lib/examples/NotebookCellSidebar.js.map +1 -1
  175. package/lib/examples/NotebookCellToolbar.js +4 -4
  176. package/lib/examples/NotebookCellToolbar.js.map +1 -1
  177. package/lib/examples/NotebookCollaborative.js +2 -2
  178. package/lib/examples/NotebookCollaborative.js.map +1 -1
  179. package/lib/examples/NotebookColormode.js +15 -10
  180. package/lib/examples/NotebookColormode.js.map +1 -1
  181. package/lib/examples/NotebookExtension.js +4 -4
  182. package/lib/examples/NotebookExtension.js.map +1 -1
  183. package/lib/examples/NotebookExternalContent.js +18 -13
  184. package/lib/examples/NotebookExternalContent.js.map +1 -1
  185. package/lib/examples/NotebookInit.js +10 -9
  186. package/lib/examples/NotebookInit.js.map +1 -1
  187. package/lib/examples/NotebookKernel.js +4 -4
  188. package/lib/examples/NotebookKernel.js.map +1 -1
  189. package/lib/examples/NotebookKernelChange.js +2 -2
  190. package/lib/examples/NotebookKernelChange.js.map +1 -1
  191. package/lib/examples/NotebookLess.js +4 -4
  192. package/lib/examples/NotebookLess.js.map +1 -1
  193. package/lib/examples/NotebookLite.js +10 -6
  194. package/lib/examples/NotebookLite.js.map +1 -1
  195. package/lib/examples/NotebookLiteContext.js +10 -5
  196. package/lib/examples/NotebookLiteContext.js.map +1 -1
  197. package/lib/examples/NotebookLocalServer.js +3 -3
  198. package/lib/examples/NotebookLocalServer.js.map +1 -1
  199. package/lib/examples/NotebookNbformat.js +7 -5
  200. package/lib/examples/NotebookNbformat.js.map +1 -1
  201. package/lib/examples/NotebookNbformatChange.js +12 -6
  202. package/lib/examples/NotebookNbformatChange.js.map +1 -1
  203. package/lib/examples/NotebookNoContext.js +4 -3
  204. package/lib/examples/NotebookNoContext.js.map +1 -1
  205. package/lib/examples/NotebookNoPrimer.js +3 -2
  206. package/lib/examples/NotebookNoPrimer.js.map +1 -1
  207. package/lib/examples/NotebookOnSessionConnection.js +5 -5
  208. package/lib/examples/NotebookOnSessionConnection.js.map +1 -1
  209. package/lib/examples/NotebookPath.js +2 -2
  210. package/lib/examples/NotebookPath.js.map +1 -1
  211. package/lib/examples/NotebookPathChange.js +5 -4
  212. package/lib/examples/NotebookPathChange.js.map +1 -1
  213. package/lib/examples/NotebookReadonly.js +4 -4
  214. package/lib/examples/NotebookReadonly.js.map +1 -1
  215. package/lib/examples/NotebookServiceManager.js +4 -4
  216. package/lib/examples/NotebookServiceManager.js.map +1 -1
  217. package/lib/examples/NotebookSkeleton.js +3 -2
  218. package/lib/examples/NotebookSkeleton.js.map +1 -1
  219. package/lib/examples/NotebookTOC.d.ts +1 -0
  220. package/lib/examples/{NotebookToc.js → NotebookTOC.js} +12 -6
  221. package/lib/examples/NotebookTOC.js.map +1 -0
  222. package/lib/examples/NotebookTheme.js +10 -5
  223. package/lib/examples/NotebookTheme.js.map +1 -1
  224. package/lib/examples/NotebookThemeColormode.js +4 -4
  225. package/lib/examples/NotebookThemeColormode.js.map +1 -1
  226. package/lib/examples/NotebookURL.js +3 -2
  227. package/lib/examples/NotebookURL.js.map +1 -1
  228. package/lib/examples/NotebookUnmount.js +13 -7
  229. package/lib/examples/NotebookUnmount.js.map +1 -1
  230. package/lib/examples/ObservableHQ.js +2 -2
  231. package/lib/examples/ObservableHQ.js.map +1 -1
  232. package/lib/examples/OutputIPyWidgets.js +3 -3
  233. package/lib/examples/OutputIPyWidgets.js.map +1 -1
  234. package/lib/examples/OutputWithMonitoring.js +3 -2
  235. package/lib/examples/OutputWithMonitoring.js.map +1 -1
  236. package/lib/examples/Outputs.js +8 -8
  237. package/lib/examples/Outputs.js.map +1 -1
  238. package/lib/examples/OutputsIpynb.js +4 -4
  239. package/lib/examples/OutputsIpynb.js.map +1 -1
  240. package/lib/examples/Panel.js +2 -2
  241. package/lib/examples/Panel.js.map +1 -1
  242. package/lib/examples/Plotly.js +2 -2
  243. package/lib/examples/Plotly.js.map +1 -1
  244. package/lib/examples/PyGWalker.js +4 -4
  245. package/lib/examples/PyGWalker.js.map +1 -1
  246. package/lib/examples/Terminal.js +4 -3
  247. package/lib/examples/Terminal.js.map +1 -1
  248. package/lib/examples/Vega.js +2 -2
  249. package/lib/examples/Vega.js.map +1 -1
  250. package/lib/examples/Viewer.js +5 -4
  251. package/lib/examples/Viewer.js.map +1 -1
  252. package/lib/examples/extensions/celltoolbar/CellToolbarComponent.js +1 -1
  253. package/lib/index.d.ts +1 -0
  254. package/lib/index.js +1 -0
  255. package/lib/index.js.map +1 -1
  256. package/lib/jupyter/Jupyter.d.ts +1 -74
  257. package/lib/jupyter/Jupyter.js +2 -9
  258. package/lib/jupyter/Jupyter.js.map +1 -1
  259. package/lib/jupyter/JupyterConfig.js +7 -5
  260. package/lib/jupyter/JupyterConfig.js.map +1 -1
  261. package/lib/jupyter/JupyterContext.d.ts +2 -2
  262. package/lib/jupyter/collaboration/ICollaborationProvider.js.map +1 -1
  263. package/lib/jupyter/ipywidgets/classic/htmlmanager.d.ts +6 -0
  264. package/lib/jupyter/ipywidgets/classic/htmlmanager.js +8 -0
  265. package/lib/jupyter/ipywidgets/classic/htmlmanager.js.map +1 -1
  266. package/lib/jupyter/ipywidgets/lab/manager.d.ts +6 -0
  267. package/lib/jupyter/ipywidgets/lab/manager.js +8 -0
  268. package/lib/jupyter/ipywidgets/lab/manager.js.map +1 -1
  269. package/lib/jupyter/ipywidgets/libembed-amd.d.ts +1 -1
  270. package/lib/jupyter/ipywidgets/libembed-amd.js +1 -1
  271. package/lib/jupyter/kernel/Kernel.js +21 -15
  272. package/lib/jupyter/kernel/Kernel.js.map +1 -1
  273. package/lib/jupyter/kernel/KernelState.d.ts +1 -1
  274. package/lib/jupyter/lite/Lite.d.ts +1 -1
  275. package/lib/jupyter/lite/LiteServer.d.ts +2 -2
  276. package/lib/jupyter/lite/LiteServer.js +21 -6
  277. package/lib/jupyter/lite/LiteServer.js.map +1 -1
  278. package/lib/jupyter/lite/contents/broadcast.d.ts +27 -0
  279. package/lib/jupyter/lite/contents/broadcast.js +60 -0
  280. package/lib/jupyter/lite/contents/broadcast.js.map +1 -0
  281. package/lib/jupyter/lite/contents/contents.d.ts +228 -0
  282. package/lib/jupyter/lite/contents/contents.js +774 -0
  283. package/lib/jupyter/lite/contents/contents.js.map +1 -0
  284. package/lib/jupyter/lite/contents/drivecontents.d.ts +92 -0
  285. package/lib/jupyter/lite/contents/drivecontents.js +133 -0
  286. package/lib/jupyter/lite/contents/drivecontents.js.map +1 -0
  287. package/lib/jupyter/lite/contents/drivefs.d.ts +193 -0
  288. package/lib/jupyter/lite/contents/drivefs.js +432 -0
  289. package/lib/jupyter/lite/contents/drivefs.js.map +1 -0
  290. package/lib/jupyter/lite/contents/emscripten.d.ts +89 -0
  291. package/lib/jupyter/lite/contents/emscripten.js +11 -0
  292. package/lib/jupyter/lite/contents/emscripten.js.map +1 -0
  293. package/lib/jupyter/lite/contents/index.d.ts +6 -0
  294. package/lib/jupyter/lite/contents/index.js +9 -0
  295. package/lib/jupyter/lite/contents/index.js.map +1 -0
  296. package/lib/jupyter/lite/contents/tokens.d.ts +136 -0
  297. package/lib/jupyter/lite/contents/tokens.js +66 -0
  298. package/lib/jupyter/lite/contents/tokens.js.map +1 -0
  299. package/lib/jupyter/lite/kernel/index.d.ts +4 -0
  300. package/lib/jupyter/lite/kernel/index.js +7 -0
  301. package/lib/jupyter/lite/kernel/index.js.map +1 -0
  302. package/lib/jupyter/lite/kernel/kernel.d.ts +245 -0
  303. package/lib/jupyter/lite/kernel/kernel.js +453 -0
  304. package/lib/jupyter/lite/kernel/kernel.js.map +1 -0
  305. package/lib/jupyter/lite/kernel/kernels.d.ts +85 -0
  306. package/lib/jupyter/lite/kernel/kernels.js +218 -0
  307. package/lib/jupyter/lite/kernel/kernels.js.map +1 -0
  308. package/lib/jupyter/lite/kernel/kernelspecs.d.ts +53 -0
  309. package/lib/jupyter/lite/kernel/kernelspecs.js +50 -0
  310. package/lib/jupyter/lite/kernel/kernelspecs.js.map +1 -0
  311. package/lib/jupyter/lite/kernel/tokens.d.ts +171 -0
  312. package/lib/jupyter/lite/kernel/tokens.js +16 -0
  313. package/lib/jupyter/lite/kernel/tokens.js.map +1 -0
  314. package/lib/jupyter/lite/licenses/index.d.ts +2 -0
  315. package/lib/jupyter/lite/licenses/index.js +5 -0
  316. package/lib/jupyter/lite/licenses/index.js.map +1 -0
  317. package/lib/jupyter/lite/licenses/licenses.d.ts +35 -0
  318. package/lib/jupyter/lite/licenses/licenses.js +95 -0
  319. package/lib/jupyter/lite/licenses/licenses.js.map +1 -0
  320. package/lib/jupyter/lite/licenses/tokens.d.ts +74 -0
  321. package/lib/jupyter/lite/licenses/tokens.js +13 -0
  322. package/lib/jupyter/lite/licenses/tokens.js.map +1 -0
  323. package/lib/jupyter/lite/localforage/index.d.ts +2 -0
  324. package/lib/jupyter/lite/localforage/index.js +5 -0
  325. package/lib/jupyter/lite/localforage/index.js.map +1 -0
  326. package/lib/jupyter/lite/localforage/memory.d.ts +5 -0
  327. package/lib/jupyter/lite/localforage/memory.js +10 -0
  328. package/lib/jupyter/lite/localforage/memory.js.map +1 -0
  329. package/lib/jupyter/lite/localforage/tokens.d.ts +12 -0
  330. package/lib/jupyter/lite/localforage/tokens.js +8 -0
  331. package/lib/jupyter/lite/localforage/tokens.js.map +1 -0
  332. package/lib/jupyter/lite/pyodide-kernel/_pypi.d.ts +18 -0
  333. package/lib/jupyter/lite/pyodide-kernel/_pypi.js +45 -0
  334. package/lib/jupyter/lite/pyodide-kernel/_pypi.js.map +1 -0
  335. package/lib/jupyter/lite/pyodide-kernel/coincident.worker.d.ts +15 -0
  336. package/lib/jupyter/lite/pyodide-kernel/coincident.worker.js +63 -0
  337. package/lib/jupyter/lite/pyodide-kernel/coincident.worker.js.map +1 -0
  338. package/lib/jupyter/lite/pyodide-kernel/comlink.worker.d.ts +9 -0
  339. package/lib/jupyter/lite/pyodide-kernel/comlink.worker.js +50 -0
  340. package/lib/jupyter/lite/pyodide-kernel/comlink.worker.js.map +1 -0
  341. package/lib/jupyter/lite/pyodide-kernel/index.d.ts +6 -0
  342. package/lib/jupyter/lite/pyodide-kernel/index.js +9 -0
  343. package/lib/jupyter/lite/pyodide-kernel/index.js.map +1 -0
  344. package/lib/jupyter/lite/pyodide-kernel/kernel.d.ts +157 -0
  345. package/lib/jupyter/lite/pyodide-kernel/kernel.js +294 -0
  346. package/lib/jupyter/lite/pyodide-kernel/kernel.js.map +1 -0
  347. package/lib/jupyter/lite/pyodide-kernel/pypi/all-local.json +128 -0
  348. package/lib/jupyter/lite/pyodide-kernel/pypi/all.json +128 -0
  349. package/lib/jupyter/lite/pyodide-kernel/schema/piplite.v0.schema.json +113 -0
  350. package/lib/jupyter/lite/pyodide-kernel/tokens.d.ts +82 -0
  351. package/lib/jupyter/lite/pyodide-kernel/tokens.js +8 -0
  352. package/lib/jupyter/lite/pyodide-kernel/tokens.js.map +1 -0
  353. package/lib/jupyter/lite/pyodide-kernel/worker.d.ts +138 -0
  354. package/lib/jupyter/lite/pyodide-kernel/worker.js +426 -0
  355. package/lib/jupyter/lite/pyodide-kernel/worker.js.map +1 -0
  356. package/lib/jupyter/lite/pyodide-kernel-extension/index.d.ts +4 -0
  357. package/lib/jupyter/lite/pyodide-kernel-extension/index.js +88 -0
  358. package/lib/jupyter/lite/pyodide-kernel-extension/index.js.map +1 -0
  359. package/lib/jupyter/lite/server/app.d.ts +87 -0
  360. package/lib/jupyter/lite/server/app.js +157 -0
  361. package/lib/jupyter/lite/server/app.js.map +1 -0
  362. package/lib/jupyter/lite/server/index.d.ts +4 -0
  363. package/lib/jupyter/lite/server/index.js +7 -0
  364. package/lib/jupyter/lite/server/index.js.map +1 -0
  365. package/lib/jupyter/lite/server/router.d.ts +99 -0
  366. package/lib/jupyter/lite/server/router.js +109 -0
  367. package/lib/jupyter/lite/server/router.js.map +1 -0
  368. package/lib/jupyter/lite/server/service-manager.d.ts +21 -0
  369. package/lib/jupyter/lite/server/service-manager.js +102 -0
  370. package/lib/jupyter/lite/server/service-manager.js.map +1 -0
  371. package/lib/jupyter/lite/server/service-worker.d.ts +58 -0
  372. package/lib/jupyter/lite/server/service-worker.js +145 -0
  373. package/lib/jupyter/lite/server/service-worker.js.map +1 -0
  374. package/lib/jupyter/lite/server/status.d.ts +18 -0
  375. package/lib/jupyter/lite/server/status.js +21 -0
  376. package/lib/jupyter/lite/server/status.js.map +1 -0
  377. package/lib/jupyter/lite/server/tokens.d.ts +38 -0
  378. package/lib/jupyter/lite/server/tokens.js +8 -0
  379. package/lib/jupyter/lite/server/tokens.js.map +1 -0
  380. package/lib/jupyter/lite/server-extension/index.d.ts +3 -0
  381. package/lib/jupyter/lite/server-extension/index.js +500 -0
  382. package/lib/jupyter/lite/server-extension/index.js.map +1 -0
  383. package/lib/jupyter/lite/session/index.d.ts +2 -0
  384. package/lib/jupyter/lite/session/index.js +5 -0
  385. package/lib/jupyter/lite/session/index.js.map +1 -0
  386. package/lib/jupyter/lite/session/sessions.d.ts +68 -0
  387. package/lib/jupyter/lite/session/sessions.js +185 -0
  388. package/lib/jupyter/lite/session/sessions.js.map +1 -0
  389. package/lib/jupyter/lite/session/tokens.d.ts +40 -0
  390. package/lib/jupyter/lite/session/tokens.js +6 -0
  391. package/lib/jupyter/lite/session/tokens.js.map +1 -0
  392. package/lib/jupyter/lite/settings/index.d.ts +2 -0
  393. package/lib/jupyter/lite/settings/index.js +5 -0
  394. package/lib/jupyter/lite/settings/index.js.map +1 -0
  395. package/lib/jupyter/lite/settings/settings.d.ts +75 -0
  396. package/lib/jupyter/lite/settings/settings.js +155 -0
  397. package/lib/jupyter/lite/settings/settings.js.map +1 -0
  398. package/lib/jupyter/lite/settings/tokens.d.ts +65 -0
  399. package/lib/jupyter/lite/settings/tokens.js +6 -0
  400. package/lib/jupyter/lite/settings/tokens.js.map +1 -0
  401. package/lib/jupyter/lite/translation/index.d.ts +2 -0
  402. package/lib/jupyter/lite/translation/index.js +5 -0
  403. package/lib/jupyter/lite/translation/index.js.map +1 -0
  404. package/lib/jupyter/lite/translation/tokens.d.ts +17 -0
  405. package/lib/jupyter/lite/translation/tokens.js +6 -0
  406. package/lib/jupyter/lite/translation/tokens.js.map +1 -0
  407. package/lib/jupyter/lite/translation/translation.d.ts +13 -0
  408. package/lib/jupyter/lite/translation/translation.js +52 -0
  409. package/lib/jupyter/lite/translation/translation.js.map +1 -0
  410. package/lib/jupyter/lite/types/index.d.ts +1 -0
  411. package/lib/jupyter/lite/types/index.js +4 -0
  412. package/lib/jupyter/lite/types/index.js.map +1 -0
  413. package/lib/jupyter/lite/types/tokens.d.ts +27 -0
  414. package/lib/jupyter/lite/types/tokens.js +4 -0
  415. package/lib/jupyter/lite/types/tokens.js.map +1 -0
  416. package/lib/jupyter/services/ServiceManagerLite.js +15 -6
  417. package/lib/jupyter/services/ServiceManagerLite.js.map +1 -1
  418. package/lib/state/JupyterReactState.js +7 -8
  419. package/lib/state/JupyterReactState.js.map +1 -1
  420. package/lib/theme/JupyterLabCss.d.ts +1 -1
  421. package/lib/theme/JupyterLabCss.js +4 -2
  422. package/lib/theme/JupyterLabCss.js.map +1 -1
  423. package/lib/theme/JupyterReactTheme.d.ts +1 -1
  424. package/lib/tools/__tests__/operationRunner.test.d.ts +1 -0
  425. package/lib/tools/__tests__/operationRunner.test.js +193 -0
  426. package/lib/tools/__tests__/operationRunner.test.js.map +1 -0
  427. package/lib/tools/core/executor.d.ts +46 -0
  428. package/lib/tools/core/executor.js +55 -0
  429. package/lib/tools/core/executor.js.map +1 -0
  430. package/lib/tools/core/formatter.d.ts +20 -0
  431. package/lib/tools/core/formatter.js +41 -0
  432. package/lib/tools/core/formatter.js.map +1 -0
  433. package/lib/tools/core/index.d.ts +18 -0
  434. package/lib/tools/core/index.js +24 -0
  435. package/lib/tools/core/index.js.map +1 -0
  436. package/lib/tools/core/interfaces.d.ts +38 -0
  437. package/lib/tools/core/interfaces.js +7 -0
  438. package/lib/tools/core/interfaces.js.map +1 -0
  439. package/lib/tools/core/operationRunner.d.ts +27 -0
  440. package/lib/tools/core/operationRunner.js +33 -0
  441. package/lib/tools/core/operationRunner.js.map +1 -0
  442. package/lib/tools/core/schema.d.ts +47 -0
  443. package/lib/tools/core/schema.js +7 -0
  444. package/lib/tools/core/schema.js.map +1 -0
  445. package/lib/tools/core/types.d.ts +36 -0
  446. package/lib/tools/core/types.js +7 -0
  447. package/lib/tools/core/types.js.map +1 -0
  448. package/lib/tools/core/zodUtils.d.ts +56 -0
  449. package/lib/tools/core/zodUtils.js +179 -0
  450. package/lib/tools/core/zodUtils.js.map +1 -0
  451. package/lib/tools/definitions/deleteCell.d.ts +7 -0
  452. package/lib/tools/definitions/deleteCell.js +25 -0
  453. package/lib/tools/definitions/deleteCell.js.map +1 -0
  454. package/lib/tools/definitions/executeCode.d.ts +7 -0
  455. package/lib/tools/definitions/executeCode.js +33 -0
  456. package/lib/tools/definitions/executeCode.js.map +1 -0
  457. package/lib/tools/definitions/index.d.ts +12 -0
  458. package/lib/tools/definitions/index.js +18 -0
  459. package/lib/tools/definitions/index.js.map +1 -0
  460. package/lib/tools/definitions/insertCell.d.ts +7 -0
  461. package/lib/tools/definitions/insertCell.js +24 -0
  462. package/lib/tools/definitions/insertCell.js.map +1 -0
  463. package/lib/tools/definitions/readAllCells.d.ts +7 -0
  464. package/lib/tools/definitions/readAllCells.js +24 -0
  465. package/lib/tools/definitions/readAllCells.js.map +1 -0
  466. package/lib/tools/definitions/readCell.d.ts +7 -0
  467. package/lib/tools/definitions/readCell.js +24 -0
  468. package/lib/tools/definitions/readCell.js.map +1 -0
  469. package/lib/tools/definitions/runCell.d.ts +7 -0
  470. package/lib/tools/definitions/runCell.js +31 -0
  471. package/lib/tools/definitions/runCell.js.map +1 -0
  472. package/lib/tools/definitions/updateCell.d.ts +7 -0
  473. package/lib/tools/definitions/updateCell.js +24 -0
  474. package/lib/tools/definitions/updateCell.js.map +1 -0
  475. package/lib/tools/index.d.ts +20 -0
  476. package/lib/tools/index.js +62 -0
  477. package/lib/tools/index.js.map +1 -0
  478. package/lib/tools/operations/deleteCell.d.ts +49 -0
  479. package/lib/tools/operations/deleteCell.js +103 -0
  480. package/lib/tools/operations/deleteCell.js.map +1 -0
  481. package/lib/tools/operations/executeCode.d.ts +33 -0
  482. package/lib/tools/operations/executeCode.js +45 -0
  483. package/lib/tools/operations/executeCode.js.map +1 -0
  484. package/lib/tools/operations/insertCell.d.ts +27 -0
  485. package/lib/tools/operations/insertCell.js +56 -0
  486. package/lib/tools/operations/insertCell.js.map +1 -0
  487. package/lib/tools/operations/readAllCells.d.ts +21 -0
  488. package/lib/tools/operations/readAllCells.js +45 -0
  489. package/lib/tools/operations/readAllCells.js.map +1 -0
  490. package/lib/tools/operations/readCell.d.ts +39 -0
  491. package/lib/tools/operations/readCell.js +90 -0
  492. package/lib/tools/operations/readCell.js.map +1 -0
  493. package/lib/tools/operations/runCell.d.ts +24 -0
  494. package/lib/tools/operations/runCell.js +124 -0
  495. package/lib/tools/operations/runCell.js.map +1 -0
  496. package/lib/tools/operations/updateCell.d.ts +27 -0
  497. package/lib/tools/operations/updateCell.js +53 -0
  498. package/lib/tools/operations/updateCell.js.map +1 -0
  499. package/lib/tools/schemas/deleteCell.d.ts +20 -0
  500. package/lib/tools/schemas/deleteCell.js +24 -0
  501. package/lib/tools/schemas/deleteCell.js.map +1 -0
  502. package/lib/tools/schemas/executeCode.d.ts +19 -0
  503. package/lib/tools/schemas/executeCode.js +28 -0
  504. package/lib/tools/schemas/executeCode.js.map +1 -0
  505. package/lib/tools/schemas/index.d.ts +12 -0
  506. package/lib/tools/schemas/index.js +18 -0
  507. package/lib/tools/schemas/index.js.map +1 -0
  508. package/lib/tools/schemas/insertCell.d.ts +24 -0
  509. package/lib/tools/schemas/insertCell.js +29 -0
  510. package/lib/tools/schemas/insertCell.js.map +1 -0
  511. package/lib/tools/schemas/readAllCells.d.ts +19 -0
  512. package/lib/tools/schemas/readAllCells.js +18 -0
  513. package/lib/tools/schemas/readAllCells.js.map +1 -0
  514. package/lib/tools/schemas/readCell.d.ts +19 -0
  515. package/lib/tools/schemas/readCell.js +24 -0
  516. package/lib/tools/schemas/readCell.js.map +1 -0
  517. package/lib/tools/schemas/runCell.d.ts +21 -0
  518. package/lib/tools/schemas/runCell.js +39 -0
  519. package/lib/tools/schemas/runCell.js.map +1 -0
  520. package/lib/tools/schemas/updateCell.d.ts +19 -0
  521. package/lib/tools/schemas/updateCell.js +21 -0
  522. package/lib/tools/schemas/updateCell.js.map +1 -0
  523. package/package.json +40 -28
  524. package/schema/kernel.v0.schema.json +42 -0
  525. package/style/icons/pyodide.svg +17 -0
  526. package/lib/components/kernel/Kernelndicator.js.map +0 -1
  527. package/lib/examples/NotebookToc.js.map +0 -1
  528. /package/lib/examples/{NotebookToc.d.ts → KernelExecutorLite.d.ts} +0 -0
@@ -0,0 +1,20 @@
1
+ /**
2
+ * Format tool response based on requested format.
3
+ *
4
+ * @template T - Type of the data being formatted
5
+ * @param data - Tool result to format
6
+ * @param format - Desired output format ("toon" default, or "json")
7
+ * @returns Formatted response (string for TOON, object for JSON)
8
+ *
9
+ * @example
10
+ * ```typescript
11
+ * // TOON format (default) - returns human-readable string
12
+ * const toonResult = formatResponse({ success: true, cells: [...] });
13
+ * // Returns: "success: true\ncells:\n - type: code\n source: print('hello')\n..."
14
+ *
15
+ * // JSON format - returns structured object
16
+ * const jsonResult = formatResponse({ success: true, cells: [...] }, "json");
17
+ * // Returns: { success: true, cells: [...] }
18
+ * ```
19
+ */
20
+ export declare function formatResponse<T>(data: T, format?: 'json' | 'toon'): T | string;
@@ -0,0 +1,41 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ /**
7
+ * Response formatting utilities for tool operations.
8
+ * Supports JSON (default, structured) and TOON (human/LLM-readable).
9
+ *
10
+ * @module tools/core/formatter
11
+ */
12
+ import { encode } from '@toon-format/toon';
13
+ /**
14
+ * Format tool response based on requested format.
15
+ *
16
+ * @template T - Type of the data being formatted
17
+ * @param data - Tool result to format
18
+ * @param format - Desired output format ("toon" default, or "json")
19
+ * @returns Formatted response (string for TOON, object for JSON)
20
+ *
21
+ * @example
22
+ * ```typescript
23
+ * // TOON format (default) - returns human-readable string
24
+ * const toonResult = formatResponse({ success: true, cells: [...] });
25
+ * // Returns: "success: true\ncells:\n - type: code\n source: print('hello')\n..."
26
+ *
27
+ * // JSON format - returns structured object
28
+ * const jsonResult = formatResponse({ success: true, cells: [...] }, "json");
29
+ * // Returns: { success: true, cells: [...] }
30
+ * ```
31
+ */
32
+ export function formatResponse(data, format) {
33
+ // Return JSON (structured object) if explicitly requested
34
+ if (format === 'json') {
35
+ return data;
36
+ }
37
+ // Default to TOON format - encode as human/LLM-readable string
38
+ // This is the default because most tool operations are called by LLMs
39
+ return encode(data);
40
+ }
41
+ //# sourceMappingURL=formatter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatter.js","sourceRoot":"","sources":["../../../src/tools/core/formatter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,cAAc,CAC5B,IAAO,EACP,MAAwB;IAExB,0DAA0D;IAC1D,IAAI,MAAM,KAAK,MAAM,EAAE,CAAC;QACtB,OAAO,IAAI,CAAC;IACd,CAAC;IAED,+DAA+D;IAC/D,sEAAsE;IACtE,OAAO,MAAM,CAAC,IAAI,CAAC,CAAC;AACtB,CAAC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Core tool operations, interfaces, and utilities.
3
+ *
4
+ * @module tools/core
5
+ */
6
+ export * from '../operations/insertCell';
7
+ export * from '../operations/deleteCell';
8
+ export * from '../operations/updateCell';
9
+ export * from '../operations/readCell';
10
+ export * from '../operations/readAllCells';
11
+ export * from '../operations/runCell';
12
+ export * from '../operations/executeCode';
13
+ export * from './interfaces';
14
+ export * from './formatter';
15
+ export * from './executor';
16
+ export * from './operationRunner';
17
+ export * from './schema';
18
+ export * from './types';
@@ -0,0 +1,24 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ /**
7
+ * Core tool operations, interfaces, and utilities.
8
+ *
9
+ * @module tools/core
10
+ */
11
+ export * from '../operations/insertCell';
12
+ export * from '../operations/deleteCell';
13
+ export * from '../operations/updateCell';
14
+ export * from '../operations/readCell';
15
+ export * from '../operations/readAllCells';
16
+ export * from '../operations/runCell';
17
+ export * from '../operations/executeCode';
18
+ export * from './interfaces';
19
+ export * from './formatter';
20
+ export * from './executor';
21
+ export * from './operationRunner';
22
+ export * from './schema';
23
+ export * from './types';
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/core/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;GAIG;AAEH,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAE1C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Core interfaces for platform-agnostic tool operations.
3
+ *
4
+ * @module tools/core/interfaces
5
+ */
6
+ import type { ToolExecutor } from './executor';
7
+ /**
8
+ * Execution context for tool operations.
9
+ */
10
+ export interface ToolExecutionContext {
11
+ /** Tool executor (DefaultExecutor, BridgeExecutor, etc.) */
12
+ executor: ToolExecutor;
13
+ /** Document identifier - universal for notebooks, lexicals, etc. (file URI or document UID) */
14
+ documentId?: string;
15
+ /** Response format: "json" (default) or "toon" */
16
+ format?: 'json' | 'toon';
17
+ /** Platform-specific additional context */
18
+ extras?: Record<string, unknown>;
19
+ }
20
+ /**
21
+ * Platform-agnostic tool operation interface.
22
+ *
23
+ * @template TParams - Tool parameter type
24
+ * @template TResult - Tool result type
25
+ */
26
+ export interface ToolOperation<TParams, TResult> {
27
+ /** Operation name (matches ToolDefinition.operation field) */
28
+ name: string;
29
+ /**
30
+ * Execute the operation.
31
+ *
32
+ * @param params - Tool parameters
33
+ * @param context - Execution context
34
+ * @returns Operation result
35
+ */
36
+ execute(params: TParams, context: ToolExecutionContext): Promise<TResult>;
37
+ }
38
+ export type { ToolExecutor };
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tools/core/interfaces.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Operation runner that executes operations and applies formatting.
3
+ *
4
+ * @module tools/core/operationRunner
5
+ */
6
+ import type { ToolOperation, ToolExecutionContext } from './interfaces';
7
+ /**
8
+ * Executes tool operations and applies formatting to results.
9
+ *
10
+ * Operations return pure typed data. The runner applies formatting
11
+ * based on context.format:
12
+ * - 'json' → Returns structured object (TResult)
13
+ * - 'toon' → Returns TOON-encoded string
14
+ */
15
+ export declare class OperationRunner {
16
+ /**
17
+ * Execute an operation and format its result.
18
+ *
19
+ * @template TParams - Operation parameter type
20
+ * @template TResult - Operation result type
21
+ * @param operation - Tool operation to execute
22
+ * @param params - Operation parameters
23
+ * @param context - Execution context
24
+ * @returns Formatted result (object or string based on context.format)
25
+ */
26
+ execute<TParams, TResult>(operation: ToolOperation<TParams, TResult>, params: TParams, context: ToolExecutionContext): Promise<TResult | string>;
27
+ }
@@ -0,0 +1,33 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ import { formatResponse } from './formatter';
7
+ /**
8
+ * Executes tool operations and applies formatting to results.
9
+ *
10
+ * Operations return pure typed data. The runner applies formatting
11
+ * based on context.format:
12
+ * - 'json' → Returns structured object (TResult)
13
+ * - 'toon' → Returns TOON-encoded string
14
+ */
15
+ export class OperationRunner {
16
+ /**
17
+ * Execute an operation and format its result.
18
+ *
19
+ * @template TParams - Operation parameter type
20
+ * @template TResult - Operation result type
21
+ * @param operation - Tool operation to execute
22
+ * @param params - Operation parameters
23
+ * @param context - Execution context
24
+ * @returns Formatted result (object or string based on context.format)
25
+ */
26
+ async execute(operation, params, context) {
27
+ // Execute operation (returns pure typed data)
28
+ const result = await operation.execute(params, context);
29
+ // Apply formatting based on context.format
30
+ return formatResponse(result, context.format);
31
+ }
32
+ }
33
+ //# sourceMappingURL=operationRunner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operationRunner.js","sourceRoot":"","sources":["../../../src/tools/core/operationRunner.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;;;GAOG;AACH,MAAM,OAAO,eAAe;IAC1B;;;;;;;;;OASG;IACH,KAAK,CAAC,OAAO,CACX,SAA0C,EAC1C,MAAe,EACf,OAA6B;QAE7B,8CAA8C;QAC9C,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAExD,2CAA2C;QAC3C,OAAO,cAAc,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACF"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Platform-agnostic tool configuration and definition schemas.
3
+ *
4
+ * @module tools/core/schema
5
+ */
6
+ /**
7
+ * Tool configuration interface.
8
+ */
9
+ export interface ToolConfig<TParams = unknown> {
10
+ /** Confirmation message from parameters */
11
+ confirmationMessage?: (params: TParams) => string;
12
+ /** Invocation message from parameters */
13
+ invocationMessage?: (params: TParams) => string;
14
+ /** Require user confirmation */
15
+ requiresConfirmation?: boolean;
16
+ /** Can be referenced in prompts */
17
+ canBeReferencedInPrompt?: boolean;
18
+ /** Priority for suggestion ranking */
19
+ priority?: 'low' | 'medium' | 'high';
20
+ /** Platform-specific config extensions */
21
+ [key: string]: unknown;
22
+ }
23
+ /**
24
+ * Tool definition interface.
25
+ */
26
+ export interface ToolDefinition<TParams = unknown> {
27
+ /** Vendor-prefixed tool name (e.g., "datalayer_insertCell") */
28
+ name: string;
29
+ /** Display name */
30
+ displayName: string;
31
+ /** User-facing reference name (e.g., "insertCell") */
32
+ toolReferenceName: string;
33
+ /** Tool description */
34
+ description: string;
35
+ /** JSON Schema for parameters */
36
+ parameters: {
37
+ type: 'object';
38
+ properties: Record<string, unknown>;
39
+ required?: string[];
40
+ };
41
+ /** Operation handler name */
42
+ operation: string;
43
+ /** Tool configuration */
44
+ config?: ToolConfig<TParams>;
45
+ /** Categorization tags */
46
+ tags?: string[];
47
+ }
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=schema.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/tools/core/schema.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,36 @@
1
+ /**
2
+ * Types for notebook tool operations.
3
+ *
4
+ * @module tools/core/types
5
+ */
6
+ /**
7
+ * Cell format for controlling response detail level
8
+ */
9
+ export type CellFormat = 'brief' | 'detailed';
10
+ /**
11
+ * Brief cell representation for structure queries
12
+ * Includes index, type, and a 40-char content preview
13
+ */
14
+ export interface BriefCell {
15
+ /** Cell index in notebook */
16
+ index: number;
17
+ /** Cell type (code, markdown, raw) */
18
+ type: string;
19
+ /** 40-character preview of cell source */
20
+ preview: string;
21
+ }
22
+ /**
23
+ * Detailed cell representation with full content
24
+ */
25
+ export interface DetailedCell {
26
+ /** Cell index in notebook */
27
+ index: number;
28
+ /** Cell type (code, markdown, raw) */
29
+ type: string;
30
+ /** Full cell source code */
31
+ source: string;
32
+ /** Execution count for code cells */
33
+ execution_count?: number | null;
34
+ /** Cell outputs (for code cells) */
35
+ outputs?: string[];
36
+ }
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ export {};
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tools/core/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Zod utility functions for tool parameter validation
3
+ *
4
+ * @module tools/core/zodUtils
5
+ */
6
+ import { z } from 'zod';
7
+ import type { ToolDefinition } from './schema';
8
+ /**
9
+ * Converts a Zod schema to ToolDefinition parameters (JSON Schema format).
10
+ *
11
+ * This enables a single source of truth: define the schema once with Zod,
12
+ * and automatically generate the JSON Schema for LLM tool calling.
13
+ *
14
+ * @param schema - Zod schema defining the tool's input parameters
15
+ * @returns JSON Schema object compatible with ToolDefinition.parameters
16
+ *
17
+ * @example
18
+ * ```typescript
19
+ * const schema = z.object({
20
+ * index: z.number().int().describe('Cell index'),
21
+ * source: z.string().describe('Cell content')
22
+ * });
23
+ *
24
+ * const parameters = zodToToolParameters(schema);
25
+ * // Returns: { type: 'object', properties: {...}, required: [...] }
26
+ * ```
27
+ */
28
+ export declare function zodToToolParameters(schema: any): ToolDefinition['parameters'];
29
+ /**
30
+ * Validates parameters using a Zod schema with user-friendly error messages.
31
+ *
32
+ * This replaces manual type guard functions with automatic runtime validation.
33
+ * On validation failure, throws a descriptive error that helps both developers
34
+ * and LLMs understand what went wrong.
35
+ *
36
+ * @param schema - Zod schema to validate against
37
+ * @param params - Unknown parameters to validate
38
+ * @param operationName - Name of the operation (for error messages)
39
+ * @returns Validated parameters with proper TypeScript type
40
+ * @throws Error with detailed validation failure information
41
+ *
42
+ * @example
43
+ * ```typescript
44
+ * const schema = z.object({ index: z.number().int() });
45
+ *
46
+ * // Valid params
47
+ * const validated = validateWithZod(schema, { index: 5 }, 'readCell');
48
+ * // Returns: { index: 5 } with type { index: number }
49
+ *
50
+ * // Invalid params
51
+ * validateWithZod(schema, { index: 'invalid' }, 'readCell');
52
+ * // Throws: Error: Invalid parameters for readCell:
53
+ * // - index: Expected number, received string
54
+ * ```
55
+ */
56
+ export declare function validateWithZod<T>(schema: z.ZodType<T>, params: unknown, operationName: string): T;
@@ -0,0 +1,179 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ /**
7
+ * Zod utility functions for tool parameter validation
8
+ *
9
+ * @module tools/core/zodUtils
10
+ */
11
+ import { z } from 'zod';
12
+ import { zodToJsonSchema } from 'zod-to-json-schema';
13
+ /**
14
+ * Converts a Zod schema to ToolDefinition parameters (JSON Schema format).
15
+ *
16
+ * This enables a single source of truth: define the schema once with Zod,
17
+ * and automatically generate the JSON Schema for LLM tool calling.
18
+ *
19
+ * @param schema - Zod schema defining the tool's input parameters
20
+ * @returns JSON Schema object compatible with ToolDefinition.parameters
21
+ *
22
+ * @example
23
+ * ```typescript
24
+ * const schema = z.object({
25
+ * index: z.number().int().describe('Cell index'),
26
+ * source: z.string().describe('Cell content')
27
+ * });
28
+ *
29
+ * const parameters = zodToToolParameters(schema);
30
+ * // Returns: { type: 'object', properties: {...}, required: [...] }
31
+ * ```
32
+ */
33
+ export function zodToToolParameters(
34
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
35
+ schema) {
36
+ // Manual conversion for Zod v3/v4 compatibility
37
+ // zod-to-json-schema@3.x doesn't fully support Zod v4
38
+ // Handle both Zod v3 (_def.type === 'object') and Zod v4 (_def.typeName === 'ZodObject')
39
+ const isZodObject = schema?._def?.typeName === 'ZodObject' || schema?._def?.type === 'object';
40
+ if (isZodObject && schema._def?.shape) {
41
+ // Get shape object - handle both Zod v3 (shape is object) and Zod v4 (shape is function)
42
+ const shape = typeof schema._def.shape === 'function'
43
+ ? schema._def.shape()
44
+ : schema._def.shape;
45
+ const properties = {};
46
+ const required = [];
47
+ for (const [key, value] of Object.entries(shape)) {
48
+ let zodField = value;
49
+ // Build property schema
50
+ const prop = {};
51
+ // Unwrap optional/default modifiers to get to the base type
52
+ // Support both Zod v3 (def/def) and Zod v4 (_def)
53
+ let isOptional = false;
54
+ while (zodField._def?.typeName === 'ZodOptional' ||
55
+ zodField._def?.typeName === 'ZodDefault' ||
56
+ zodField._def?.type === 'optional' ||
57
+ zodField._def?.type === 'default' ||
58
+ zodField.def?.type === 'optional' ||
59
+ zodField.def?.type === 'default') {
60
+ if (zodField._def?.typeName === 'ZodOptional' ||
61
+ zodField._def?.type === 'optional' ||
62
+ zodField.def?.type === 'optional') {
63
+ isOptional = true;
64
+ }
65
+ // Unwrap to get the inner type - try all possible paths
66
+ zodField =
67
+ zodField._def?.innerType || zodField.def?.innerType || zodField;
68
+ }
69
+ // Extract description (check at each level)
70
+ // Support both Zod v3 (def.description) and Zod v4 (_def.description)
71
+ const description = value._def?.description ||
72
+ value.def?.description ||
73
+ value.description;
74
+ if (description) {
75
+ prop.description = description;
76
+ }
77
+ // Handle type based on unwrapped field
78
+ // Support both Zod v3 (def.type) and Zod v4 (_def.typeName or _def.type)
79
+ const typeName = zodField._def?.typeName || zodField._def?.type || zodField.def?.type;
80
+ if (typeName === 'ZodString' || typeName === 'string') {
81
+ prop.type = 'string';
82
+ }
83
+ else if (typeName === 'ZodNumber' || typeName === 'number') {
84
+ prop.type = 'number';
85
+ }
86
+ else if (typeName === 'ZodBoolean' || typeName === 'boolean') {
87
+ prop.type = 'boolean';
88
+ }
89
+ else if (typeName === 'ZodEnum' || typeName === 'enum') {
90
+ prop.type = 'string';
91
+ // Enum values can be in different places depending on Zod version:
92
+ // - Zod v4: _def.values (array)
93
+ // - Zod v3: def.entries (object), options (array), or enum (object)
94
+ const enumValues = zodField._def?.values ||
95
+ zodField.def?.values ||
96
+ zodField.options ||
97
+ (zodField.def?.entries ? Object.keys(zodField.def.entries) : null) ||
98
+ (zodField.enum ? Object.keys(zodField.enum) : null) ||
99
+ [];
100
+ prop.enum = Array.isArray(enumValues)
101
+ ? enumValues
102
+ : Object.keys(enumValues || {});
103
+ }
104
+ properties[key] = prop;
105
+ // Mark as required if not optional
106
+ if (!isOptional) {
107
+ required.push(key);
108
+ }
109
+ }
110
+ return {
111
+ type: 'object',
112
+ properties,
113
+ required,
114
+ };
115
+ }
116
+ // Fallback to zod-to-json-schema for other schema types
117
+ // Note: This may not work correctly with Zod v4
118
+ const jsonSchema = zodToJsonSchema(schema, {
119
+ target: 'openApi3',
120
+ $refStrategy: 'none',
121
+ });
122
+ const schemaProperties = jsonSchema.properties || {};
123
+ const requiredFields = jsonSchema.required || [];
124
+ return {
125
+ type: 'object',
126
+ properties: schemaProperties,
127
+ required: requiredFields,
128
+ };
129
+ }
130
+ /**
131
+ * Validates parameters using a Zod schema with user-friendly error messages.
132
+ *
133
+ * This replaces manual type guard functions with automatic runtime validation.
134
+ * On validation failure, throws a descriptive error that helps both developers
135
+ * and LLMs understand what went wrong.
136
+ *
137
+ * @param schema - Zod schema to validate against
138
+ * @param params - Unknown parameters to validate
139
+ * @param operationName - Name of the operation (for error messages)
140
+ * @returns Validated parameters with proper TypeScript type
141
+ * @throws Error with detailed validation failure information
142
+ *
143
+ * @example
144
+ * ```typescript
145
+ * const schema = z.object({ index: z.number().int() });
146
+ *
147
+ * // Valid params
148
+ * const validated = validateWithZod(schema, { index: 5 }, 'readCell');
149
+ * // Returns: { index: 5 } with type { index: number }
150
+ *
151
+ * // Invalid params
152
+ * validateWithZod(schema, { index: 'invalid' }, 'readCell');
153
+ * // Throws: Error: Invalid parameters for readCell:
154
+ * // - index: Expected number, received string
155
+ * ```
156
+ */
157
+ export function validateWithZod(schema, params, operationName) {
158
+ try {
159
+ // Parse and validate parameters
160
+ return schema.parse(params);
161
+ }
162
+ catch (error) {
163
+ if (error instanceof z.ZodError) {
164
+ // Convert Zod validation errors to user-friendly format
165
+ const issues = error.issues
166
+ .map(issue => {
167
+ // Build path string (e.g., "cells[0].type" for nested errors)
168
+ const path = issue.path.length > 0 ? issue.path.join('.') : 'root';
169
+ return ` - ${path}: ${issue.message}`;
170
+ })
171
+ .join('\n');
172
+ throw new Error(`Invalid parameters for ${operationName}:\n${issues}\n\n` +
173
+ `Received: ${JSON.stringify(params)}`);
174
+ }
175
+ // Re-throw non-Zod errors
176
+ throw error;
177
+ }
178
+ }
179
+ //# sourceMappingURL=zodUtils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zodUtils.js","sourceRoot":"","sources":["../../../src/tools/core/zodUtils.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Delete cell tool definition.
3
+ *
4
+ * @module tools/definitions/deleteCell
5
+ */
6
+ import type { ToolDefinition } from '../core/schema';
7
+ export declare const deleteCellTool: ToolDefinition;
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) 2021-2023 Datalayer, Inc.
3
+ *
4
+ * MIT License
5
+ */
6
+ import { zodToToolParameters } from '../core/zodUtils';
7
+ import { deleteCellParamsSchema } from '../schemas/deleteCell';
8
+ export const deleteCellTool = {
9
+ name: 'datalayer_deleteCell',
10
+ displayName: 'Delete Notebook Cell(s)',
11
+ toolReferenceName: 'deleteCell',
12
+ description: 'Deletes one or more cells from a Jupyter notebook at the specified indices. Cells are deleted in reverse order to prevent index shifting.',
13
+ // Generate parameters from Zod schema (single source of truth)
14
+ parameters: zodToToolParameters(deleteCellParamsSchema),
15
+ operation: 'deleteCell',
16
+ config: {
17
+ confirmationMessage: (params) => `Delete ${params.indices.length} cell${params.indices.length !== 1 ? 's' : ''} at ${params.indices.length === 1 ? `index ${params.indices[0]}` : `indices ${params.indices.join(', ')}`}?`,
18
+ invocationMessage: (params) => `Deleting ${params.indices.length} cell${params.indices.length !== 1 ? 's' : ''}`,
19
+ requiresConfirmation: true,
20
+ canBeReferencedInPrompt: true,
21
+ priority: 'medium',
22
+ },
23
+ tags: ['cell', 'notebook', 'manipulation', 'delete'],
24
+ };
25
+ //# sourceMappingURL=deleteCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deleteCell.js","sourceRoot":"","sources":["../../../src/tools/definitions/deleteCell.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AASH,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,MAAM,CAAC,MAAM,cAAc,GAAmB;IAC5C,IAAI,EAAE,sBAAsB;IAC5B,WAAW,EAAE,yBAAyB;IACtC,iBAAiB,EAAE,YAAY;IAC/B,WAAW,EACT,2IAA2I;IAE7I,+DAA+D;IAC/D,UAAU,EAAE,mBAAmB,CAAC,sBAAsB,CAAC;IAEvD,SAAS,EAAE,YAAY;IAEvB,MAAM,EAAE;QACN,mBAAmB,EAAE,CAAC,MAA6B,EAAE,EAAE,CACrD,UAAU,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,GAAG;QAC5L,iBAAiB,EAAE,CAAC,MAA6B,EAAE,EAAE,CACnD,YAAY,MAAM,CAAC,OAAO,CAAC,MAAM,QAAQ,MAAM,CAAC,OAAO,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACnF,oBAAoB,EAAE,IAAI;QAC1B,uBAAuB,EAAE,IAAI;QAC7B,QAAQ,EAAE,QAAQ;KACnB;IAED,IAAI,EAAE,CAAC,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,QAAQ,CAAC;CACrD,CAAC"}
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Execute code tool definition.
3
+ *
4
+ * @module tools/definitions/executeCode
5
+ */
6
+ import type { ToolDefinition } from '../core/schema';
7
+ export declare const executeCodeTool: ToolDefinition;