@datalayer/agent-runtimes 1.5.71 → 1.5.73

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 (617) hide show
  1. package/lib/Agent.js +2 -2
  2. package/lib/AgentDocument.js +6 -6
  3. package/lib/AgentNode.js +4 -4
  4. package/lib/AgentNotebook.js +3 -3
  5. package/lib/App.js +2 -2
  6. package/lib/AppExamples2.js +3 -4
  7. package/lib/agent-document-main.js +1 -1
  8. package/lib/agent-main.js +1 -1
  9. package/lib/agent-node-main.js +1 -1
  10. package/lib/agent-notebook-main.js +1 -1
  11. package/lib/agents/AgentDetails.js +5 -5
  12. package/lib/agents/AgentRuntimeChat.js +3 -3
  13. package/lib/api/index.js +5 -5
  14. package/lib/api/scheduler/index.js +1 -1
  15. package/lib/apps/apps/AppBrowserSandbox.js +3 -3
  16. package/lib/apps/apps/AppComposer.js +6 -6
  17. package/lib/apps/apps/AppFeedback.js +3 -3
  18. package/lib/apps/apps/AppKept.js +3 -3
  19. package/lib/apps/apps/AppRenderer.js +26 -26
  20. package/lib/apps/apps/AppRuntimePlugins.js +3 -3
  21. package/lib/apps/apps/agent.js +2 -2
  22. package/lib/apps/apps/appspec.js +5 -5
  23. package/lib/apps/apps/browserSandbox.js +1 -1
  24. package/lib/apps/apps/checks.js +24 -24
  25. package/lib/apps/apps/customComponents.js +1 -1
  26. package/lib/apps/apps/index.js +18 -18
  27. package/lib/apps/apps/language.js +1 -1
  28. package/lib/apps/apps/records.js +3 -3
  29. package/lib/apps/apps/rules.js +1 -1
  30. package/lib/apps/apps/sceneChecks.js +6 -6
  31. package/lib/apps/apps/sceneShape.js +2 -2
  32. package/lib/apps/apps/sceneYaml.js +2 -2
  33. package/lib/apps/apps/yaml.js +1 -1
  34. package/lib/apps/core/index.js +7 -7
  35. package/lib/apps/embed/AppEmbed.d.ts +1 -1
  36. package/lib/apps/embed/AppEmbed.js +11 -11
  37. package/lib/apps/embed/LoopEmbed.js +4 -4
  38. package/lib/apps/embed/datalayer-app.js +1 -1
  39. package/lib/apps/embed/element.js +7 -7
  40. package/lib/apps/embed/embedConfig.js +2 -2
  41. package/lib/apps/embed/embedSession.js +2 -2
  42. package/lib/apps/embed/hostBridge.js +3 -3
  43. package/lib/apps/embed/visitorApp.js +3 -3
  44. package/lib/apps/extensions.js +4 -4
  45. package/lib/apps/index.js +70 -70
  46. package/lib/apps/plugins/a2a-sidebar/A2ASidebar.js +6 -6
  47. package/lib/apps/plugins/a2a-sidebar/index.js +3 -3
  48. package/lib/apps/plugins/a2ui/A2uiView.js +2 -2
  49. package/lib/apps/plugins/a2ui/index.js +3 -3
  50. package/lib/apps/plugins/a2ui-scene/index.js +1 -1
  51. package/lib/apps/plugins/a2ui-surface/AnswerShows.js +3 -3
  52. package/lib/apps/plugins/a2ui-surface/InlineSurface.js +1 -1
  53. package/lib/apps/plugins/a2ui-surface/SurfaceToolResult.js +4 -4
  54. package/lib/apps/plugins/a2ui-surface/index.js +7 -7
  55. package/lib/apps/plugins/a2ui-surface/ownComponents.js +2 -2
  56. package/lib/apps/plugins/agent-a2a/index.js +1 -1
  57. package/lib/apps/plugins/agent-a2ui/index.js +1 -1
  58. package/lib/apps/plugins/agent-a2ui-jupyter-output/index.js +1 -1
  59. package/lib/apps/plugins/agent-capacity/index.js +1 -1
  60. package/lib/apps/plugins/agent-checkpoints/index.js +1 -1
  61. package/lib/apps/plugins/agent-code-sandbox/index.js +1 -1
  62. package/lib/apps/plugins/agent-code-sandboxes/index.js +1 -1
  63. package/lib/apps/plugins/agent-codemode/index.js +1 -1
  64. package/lib/apps/plugins/agent-compaction/index.js +1 -1
  65. package/lib/apps/plugins/agent-evals/index.js +1 -1
  66. package/lib/apps/plugins/agent-guardrails/index.js +1 -1
  67. package/lib/apps/plugins/agent-hooks/index.js +1 -1
  68. package/lib/apps/plugins/agent-inference/index.js +1 -1
  69. package/lib/apps/plugins/agent-mcp/index.js +1 -1
  70. package/lib/apps/plugins/agent-memory/index.js +1 -1
  71. package/lib/apps/plugins/agent-monitoring/index.js +1 -1
  72. package/lib/apps/plugins/agent-notifications/index.js +1 -1
  73. package/lib/apps/plugins/agent-otel/index.js +1 -1
  74. package/lib/apps/plugins/agent-outputs/index.js +1 -1
  75. package/lib/apps/plugins/agent-parameters/index.js +1 -1
  76. package/lib/apps/plugins/agent-skills/index.js +1 -1
  77. package/lib/apps/plugins/agent-subagents/index.js +1 -1
  78. package/lib/apps/plugins/agent-tool-approvals/index.js +1 -1
  79. package/lib/apps/plugins/agent-triggers/index.js +1 -1
  80. package/lib/apps/plugins/agents/AgentSummaryPanel.js +5 -5
  81. package/lib/apps/plugins/agents/AnonymousKeyBadge.js +2 -2
  82. package/lib/apps/plugins/agents/DatalayerAgentBridge.js +7 -7
  83. package/lib/apps/plugins/agents/DatalayerAgentMount.js +1 -1
  84. package/lib/apps/plugins/agents/SandboxSelector.js +3 -3
  85. package/lib/apps/plugins/agents/SandboxStatusBridge.js +2 -2
  86. package/lib/apps/plugins/agents/SandboxView.js +1 -1
  87. package/lib/apps/plugins/agents/TeamMemberPicker.js +2 -2
  88. package/lib/apps/plugins/agents/index.js +8 -8
  89. package/lib/apps/plugins/agents/plugin.js +10 -10
  90. package/lib/apps/plugins/agents/specSubagents.js +1 -1
  91. package/lib/apps/plugins/agents/switchable.js +3 -3
  92. package/lib/apps/plugins/agents/team.js +2 -2
  93. package/lib/apps/plugins/agents/useSandboxService.js +1 -1
  94. package/lib/apps/plugins/agents/useTeamSelection.js +1 -1
  95. package/lib/apps/plugins/agentspecs/AgentspecPicker.js +1 -1
  96. package/lib/apps/plugins/agentspecs/index.js +2 -2
  97. package/lib/apps/plugins/app-activity/AppActivity.js +2 -2
  98. package/lib/apps/plugins/app-activity/index.js +3 -3
  99. package/lib/apps/plugins/app-components/index.js +4 -4
  100. package/lib/apps/plugins/app-computer/AppComputer.js +3 -3
  101. package/lib/apps/plugins/app-computer/index.js +4 -4
  102. package/lib/apps/plugins/app-elements/AppElements.js +2 -2
  103. package/lib/apps/plugins/app-elements/QuestionView.js +1 -1
  104. package/lib/apps/plugins/app-elements/index.js +6 -6
  105. package/lib/apps/plugins/app-page/AppPage.js +7 -7
  106. package/lib/apps/plugins/app-page/appPageModel.js +1 -1
  107. package/lib/apps/plugins/app-page/index.js +6 -6
  108. package/lib/apps/plugins/app-rules/AppRulesCard.js +5 -5
  109. package/lib/apps/plugins/app-rules/index.js +4 -4
  110. package/lib/apps/plugins/assistant/index.js +12 -12
  111. package/lib/apps/plugins/assistant-characters/index.d.ts +1 -1
  112. package/lib/apps/plugins/assistant-characters/index.js +3 -3
  113. package/lib/apps/plugins/canvas-blocks/index.js +2 -2
  114. package/lib/apps/plugins/canvas-parts/index.js +10 -10
  115. package/lib/apps/plugins/chat/ChatView.js +43 -43
  116. package/lib/apps/plugins/chat/SessionActionsMenu.js +2 -2
  117. package/lib/apps/plugins/chat/index.js +4 -4
  118. package/lib/apps/plugins/chat/sessionActions.js +2 -2
  119. package/lib/apps/plugins/chat-extras/index.js +1 -1
  120. package/lib/apps/plugins/chat-header/HeaderView.js +1 -1
  121. package/lib/apps/plugins/chat-header/index.js +2 -2
  122. package/lib/apps/plugins/chat-view/index.js +2 -2
  123. package/lib/apps/plugins/checkpoints-sidebar/CheckpointsSidebar.js +2 -2
  124. package/lib/apps/plugins/checkpoints-sidebar/index.js +3 -3
  125. package/lib/apps/plugins/commands/index.js +1 -1
  126. package/lib/apps/plugins/decks/DecksMenu.js +2 -2
  127. package/lib/apps/plugins/decks/index.js +8 -8
  128. package/lib/apps/plugins/document/DocumentView.js +5 -5
  129. package/lib/apps/plugins/document/index.js +4 -4
  130. package/lib/apps/plugins/document/openingDocument.js +1 -1
  131. package/lib/apps/plugins/document-toolbar/SandboxStatusItem.js +2 -2
  132. package/lib/apps/plugins/document-toolbar/index.js +3 -3
  133. package/lib/apps/plugins/document-toolbar/plugin.js +3 -3
  134. package/lib/apps/plugins/document-view/index.js +1 -1
  135. package/lib/apps/plugins/graph/GraphToggle.js +1 -1
  136. package/lib/apps/plugins/graph/index.js +5 -5
  137. package/lib/apps/plugins/input-prompt/ComposerView.js +2 -2
  138. package/lib/apps/plugins/input-prompt/index.js +2 -2
  139. package/lib/apps/plugins/models/index.js +1 -1
  140. package/lib/apps/plugins/notebook/NotebookView.js +5 -5
  141. package/lib/apps/plugins/notebook/index.js +4 -4
  142. package/lib/apps/plugins/notebook-toolbar/index.js +3 -3
  143. package/lib/apps/plugins/notebook-toolbar/plugin.js +3 -3
  144. package/lib/apps/plugins/notebook-view/index.js +1 -1
  145. package/lib/apps/plugins/page-layout/SplitLayout.js +1 -1
  146. package/lib/apps/plugins/page-layout/TurnPanel.js +5 -5
  147. package/lib/apps/plugins/page-layout/index.js +5 -5
  148. package/lib/apps/plugins/pap-example/index.js +1 -1
  149. package/lib/apps/plugins/pap-sign-in/PapSignInCard.js +1 -1
  150. package/lib/apps/plugins/pap-sign-in/index.js +5 -5
  151. package/lib/apps/plugins/pap-sign-in/signIn.js +1 -1
  152. package/lib/apps/plugins/plugins-panel/index.js +1 -1
  153. package/lib/apps/plugins/prompt/index.js +3 -3
  154. package/lib/apps/plugins/shell/editorChoice.js +1 -1
  155. package/lib/apps/plugins/shell/index.js +4 -4
  156. package/lib/apps/plugins/shell/useEditorPreviews.js +1 -1
  157. package/lib/apps/plugins/shield-displays/DiffCard.js +1 -1
  158. package/lib/apps/plugins/shield-displays/TerminalCard.js +1 -1
  159. package/lib/apps/plugins/shield-displays/index.js +5 -5
  160. package/lib/apps/plugins/subagent-activity/SubagentPulse.js +3 -3
  161. package/lib/apps/plugins/subagent-activity/index.js +4 -4
  162. package/lib/apps/plugins/view-switch/index.js +3 -3
  163. package/lib/apps/plugins/window-frame/WindowFrame.js +1 -1
  164. package/lib/apps/plugins/window-frame/index.js +5 -5
  165. package/lib/apps/presets.js +21 -21
  166. package/lib/apps/shell/LoopWorkspace.js +4 -4
  167. package/lib/apps/shell/SidebarRail.js +1 -1
  168. package/lib/apps/shell/ViewSwitcher.js +1 -1
  169. package/lib/apps/shell/WorkspaceFullScreenAction.js +2 -2
  170. package/lib/apps/shell/index.js +7 -7
  171. package/lib/chat/Chat.js +7 -7
  172. package/lib/chat/ChatFloating.d.ts +1 -1
  173. package/lib/chat/ChatFloating.js +23 -23
  174. package/lib/chat/ChatInline.js +4 -4
  175. package/lib/chat/ChatLanguage.js +2 -2
  176. package/lib/chat/ChatPopupStandalone.js +4 -4
  177. package/lib/chat/ChatSidebar.js +2 -2
  178. package/lib/chat/ChatStandalone.js +3 -3
  179. package/lib/chat/assistant/AgentDetailsDialog.js +1 -1
  180. package/lib/chat/assistant/AssistantStage.d.ts +1 -1
  181. package/lib/chat/assistant/AssistantStage.js +16 -16
  182. package/lib/chat/assistant/Avatar3D.d.ts +1 -1
  183. package/lib/chat/assistant/Avatar3D.js +1 -1
  184. package/lib/chat/assistant/BalloonParts.js +8 -8
  185. package/lib/chat/assistant/BalloonVisual.js +1 -1
  186. package/lib/chat/assistant/ConversationBalloon.js +1 -1
  187. package/lib/chat/assistant/DecisionAsk.js +1 -1
  188. package/lib/chat/assistant/SandboxDetailsDialog.js +1 -1
  189. package/lib/chat/assistant/SpeechBalloon.js +5 -5
  190. package/lib/chat/assistant/SpriteCharacter.js +2 -2
  191. package/lib/chat/assistant/{avatar3d.d.ts → avatar3dModel.d.ts} +1 -1
  192. package/lib/chat/assistant/formats/acf.js +3 -3
  193. package/lib/chat/assistant/formats/acs.js +3 -3
  194. package/lib/chat/assistant/formats/agentCompression.js +1 -1
  195. package/lib/chat/assistant/formats/blobs.js +1 -1
  196. package/lib/chat/assistant/formats/clippy.js +3 -3
  197. package/lib/chat/assistant/formats/files.js +4 -4
  198. package/lib/chat/assistant/formats/index.js +7 -7
  199. package/lib/chat/assistant/formats/objectLiteral.js +1 -1
  200. package/lib/chat/assistant/toolLine.js +2 -2
  201. package/lib/chat/base/ChatBase.js +45 -45
  202. package/lib/chat/base/fullContextMessages.js +1 -1
  203. package/lib/chat/base/uiOps.js +3 -3
  204. package/lib/chat/display/EmptyState.js +3 -3
  205. package/lib/chat/document/EphemeralDocument.js +4 -4
  206. package/lib/chat/header/ChatHeaderBase.js +2 -2
  207. package/lib/chat/header/ChatViewModeToggle.js +1 -1
  208. package/lib/chat/index.js +24 -24
  209. package/lib/chat/indicators/McpStatusIndicator.js +1 -1
  210. package/lib/chat/indicators/SandboxStatusIndicator.js +1 -1
  211. package/lib/chat/indicators/index.js +3 -3
  212. package/lib/chat/marks/SpecMark.js +1 -1
  213. package/lib/chat/marks/index.js +3 -3
  214. package/lib/chat/marks/toolMarks.js +4 -4
  215. package/lib/chat/messages/ChatMarkdown.js +3 -3
  216. package/lib/chat/messages/ChatMessageList.js +13 -13
  217. package/lib/chat/messages/ChatMessages.js +2 -2
  218. package/lib/chat/messages/FormSubmissionMessage.js +1 -1
  219. package/lib/chat/messages/TurnFooter.js +2 -2
  220. package/lib/chat/notebook/EphemeralNotebook.js +4 -4
  221. package/lib/chat/parts/MessagePart.js +4 -4
  222. package/lib/chat/parts/ReasoningPart.js +2 -2
  223. package/lib/chat/parts/TextPart.js +2 -2
  224. package/lib/chat/parts/ToolPart.js +1 -1
  225. package/lib/chat/parts/index.js +5 -5
  226. package/lib/chat/presence/Presence.js +1 -1
  227. package/lib/chat/presence/presenceStatus.js +1 -1
  228. package/lib/chat/prompt/InputPrompt.js +9 -9
  229. package/lib/chat/prompt/InputPromptBase.js +6 -6
  230. package/lib/chat/prompt/InputPromptLexical.js +4 -4
  231. package/lib/chat/prompt/footer/BelowPromptFooter.js +1 -1
  232. package/lib/chat/prompt/footer/InPromptFooter.js +2 -2
  233. package/lib/chat/prompt/footer/index.js +2 -2
  234. package/lib/chat/prompt/header/BelowPromptHeader.js +1 -1
  235. package/lib/chat/prompt/header/InPromptHeader.js +1 -1
  236. package/lib/chat/prompt/header/index.js +2 -2
  237. package/lib/chat/prompt/index.js +10 -10
  238. package/lib/chat/prompt/menus/SkillsMenu.js +1 -1
  239. package/lib/chat/prompt/menus/SuggestionsMenu.js +1 -1
  240. package/lib/chat/prompt/menus/ToolsMenu.js +1 -1
  241. package/lib/chat/prompt/menus/index.js +6 -6
  242. package/lib/chat/prompt/plugins/AgentMentionPlugin.js +1 -1
  243. package/lib/chat/prompt/plugins/MentionNode.js +1 -1
  244. package/lib/chat/prompt/stack.js +1 -1
  245. package/lib/chat/tools/SubagentActivity.js +1 -1
  246. package/lib/chat/tools/ToolApprovalBanner.js +1 -1
  247. package/lib/chat/tools/ToolApprovalDialog.js +1 -1
  248. package/lib/chat/tools/ToolCallDisplay.js +2 -2
  249. package/lib/chat/tools/index.js +5 -5
  250. package/lib/chat/usage/ContextPie.js +1 -1
  251. package/lib/chat/words.js +1 -1
  252. package/lib/client/AgentRuntimesClient.js +2 -2
  253. package/lib/client/AgentsMixin.js +8 -8
  254. package/lib/client/index.js +3 -3
  255. package/lib/client/mixins/RuntimesMixin.js +6 -6
  256. package/lib/client/mixins/SpacerMixin.js +11 -11
  257. package/lib/client/utils/spacerUtils.js +2 -2
  258. package/lib/collaboration/DatalayerCollaborationProvider.js +1 -1
  259. package/lib/collaboration/index.js +2 -2
  260. package/lib/components/a2ui/custom/index.js +6 -6
  261. package/lib/components/a2ui/datalayer/Chart.js +2 -2
  262. package/lib/components/a2ui/datalayer/Chat.js +5 -5
  263. package/lib/components/a2ui/datalayer/Download.js +2 -2
  264. package/lib/components/a2ui/datalayer/Evidence.js +2 -2
  265. package/lib/components/a2ui/datalayer/FileUpload.js +3 -3
  266. package/lib/components/a2ui/datalayer/Form.js +3 -3
  267. package/lib/components/a2ui/datalayer/SchemaForm.js +1 -1
  268. package/lib/components/a2ui/datalayer/Table.js +2 -2
  269. package/lib/components/a2ui/datalayer/implementation.js +1 -1
  270. package/lib/components/a2ui/datalayer/index.js +17 -17
  271. package/lib/components/a2ui/datalayer/schema.js +1 -1
  272. package/lib/components/a2ui/index.js +7 -7
  273. package/lib/components/a2ui/visibleWhen.js +2 -2
  274. package/lib/components/agents/AgentSummary.js +1 -1
  275. package/lib/components/agents/index.js +1 -1
  276. package/lib/components/cards/NotificationEventCard.js +2 -2
  277. package/lib/components/cards/OutputCard.js +2 -2
  278. package/lib/components/cards/index.js +3 -3
  279. package/lib/components/code-sandboxes/CodeSandboxCellVariablesDialog.js +3 -3
  280. package/lib/components/code-sandboxes/CodeSandboxLauncher.js +9 -9
  281. package/lib/components/code-sandboxes/CodeSandboxPicker.js +9 -9
  282. package/lib/components/code-sandboxes/CodeSandboxPickerCell.js +7 -7
  283. package/lib/components/code-sandboxes/CodeSandboxUtils.js +3 -3
  284. package/lib/components/code-sandboxes/CodeSandboxVariables.js +1 -1
  285. package/lib/components/code-sandboxes/NewCodeSandboxControls.js +3 -3
  286. package/lib/components/code-sandboxes/index.js +14 -14
  287. package/lib/components/context/SpaceSelect.js +1 -1
  288. package/lib/components/flashes/FlashDisclaimer.js +1 -1
  289. package/lib/components/icons/index.js +1 -1
  290. package/lib/components/index.js +6 -6
  291. package/lib/components/inspector/AgentInspector.js +2 -2
  292. package/lib/components/inspector/AgentInspectorDialog.js +1 -1
  293. package/lib/components/inspector/a2aSpans.js +1 -1
  294. package/lib/components/inspector/chatSpans.js +2 -2
  295. package/lib/components/inspector/classify.js +1 -1
  296. package/lib/components/inspector/index.js +6 -6
  297. package/lib/components/nbgrader/index.js +1 -1
  298. package/lib/components/progress/index.js +1 -1
  299. package/lib/components/scheduler/ScheduleMenu.js +1 -1
  300. package/lib/components/scheduler/index.js +1 -1
  301. package/lib/components/snapshots/SandboxSnapshotMenu.js +2 -2
  302. package/lib/components/snapshots/index.js +1 -1
  303. package/lib/components/teams/A2ATeamGraph.d.ts +1 -1
  304. package/lib/components/teams/A2ATeamGraph.js +8 -8
  305. package/lib/components/teams/AnswerSurfaces.js +1 -1
  306. package/lib/components/teams/AnswerSurfacesView.js +4 -4
  307. package/lib/components/teams/NotebookPreview.js +2 -2
  308. package/lib/components/teams/NotebookPreviewView.js +1 -1
  309. package/lib/components/teams/SceneTranscript.d.ts +1 -1
  310. package/lib/components/teams/SceneTranscript.js +2 -2
  311. package/lib/components/teams/SceneView.d.ts +1 -1
  312. package/lib/components/teams/SceneView.js +1 -1
  313. package/lib/components/teams/TeamNotebook.js +1 -1
  314. package/lib/components/teams/TeamNotebookView.js +3 -3
  315. package/lib/components/teams/index.d.ts +1 -1
  316. package/lib/components/teams/index.js +13 -13
  317. package/lib/components/teams/sceneStage.js +2 -2
  318. package/lib/components/teams/{sceneTranscript.d.ts → sceneTranscriptRules.d.ts} +1 -1
  319. package/lib/components/teams/{sceneTranscript.js → sceneTranscriptRules.js} +1 -1
  320. package/lib/components/teams/teamConnections.js +3 -3
  321. package/lib/components/teams/useA2ATeam.js +6 -6
  322. package/lib/components/teams/usePeerSandbox.js +1 -1
  323. package/lib/components/tokens/index.js +1 -1
  324. package/lib/config/AgentConfiguration.js +2 -2
  325. package/lib/config/index.js +2 -2
  326. package/lib/context/CostUsageChart.js +4 -4
  327. package/lib/context/MessageHistory.js +1 -1
  328. package/lib/context/TokenUsageChart.js +4 -4
  329. package/lib/examples/A2UiAgentExample.js +9 -9
  330. package/lib/examples/A2UiComponentsGalleryExample.js +4 -4
  331. package/lib/examples/A2UiContactCardExample.js +4 -4
  332. package/lib/examples/A2UiJupyterOutputExample.js +11 -11
  333. package/lib/examples/A2UiRestaurantExample.js +4 -4
  334. package/lib/examples/A2UiViewerExample.js +6 -6
  335. package/lib/examples/AgUiAgenticExample.js +4 -4
  336. package/lib/examples/AgUiBackendToolRenderingExample.js +6 -6
  337. package/lib/examples/AgUiHaikuGenUiExample.js +6 -6
  338. package/lib/examples/AgUiHumanInTheLoopExample.js +5 -5
  339. package/lib/examples/AgUiSharedStateExample.js +4 -4
  340. package/lib/examples/AgUiToolsBasedGenUiExample.js +4 -4
  341. package/lib/examples/AgentA2AExample.js +7 -7
  342. package/lib/examples/AgentA2ATeamExample.js +10 -10
  343. package/lib/examples/AgentCheckpointsExample.js +14 -14
  344. package/lib/examples/AgentCodeSandboxExample.js +6 -6
  345. package/lib/examples/AgentCodeSandboxesExample.js +5 -5
  346. package/lib/examples/AgentCodemodeExample.js +12 -12
  347. package/lib/examples/AgentCompactionExample.js +8 -8
  348. package/lib/examples/AgentDecideExample.js +6 -6
  349. package/lib/examples/AgentEvalsExample.js +11 -11
  350. package/lib/examples/AgentGuardrailsExample.js +17 -17
  351. package/lib/examples/AgentHooksExample.js +5 -5
  352. package/lib/examples/AgentInferenceProviderExample.js +6 -6
  353. package/lib/examples/AgentMCPExample.js +14 -14
  354. package/lib/examples/AgentMemoryExample.js +11 -11
  355. package/lib/examples/AgentMonitoringExample.js +19 -19
  356. package/lib/examples/AgentNotificationsExample.js +9 -9
  357. package/lib/examples/AgentOtelExample.js +6 -6
  358. package/lib/examples/AgentOutputsExample.js +8 -8
  359. package/lib/examples/AgentParametersExample.js +6 -6
  360. package/lib/examples/AgentSkillsExample.js +9 -9
  361. package/lib/examples/AgentSubagentsExample.js +8 -8
  362. package/lib/examples/AgentToolApprovalsExample.js +10 -10
  363. package/lib/examples/AgentTriggersExample.js +14 -14
  364. package/lib/examples/AgentspecsExample.js +11 -11
  365. package/lib/examples/AvatarExample.js +8 -8
  366. package/lib/examples/AvatarGalleryExample.js +8 -8
  367. package/lib/examples/CellExample.js +2 -2
  368. package/lib/examples/ChatCustomExample.js +4 -4
  369. package/lib/examples/ChatExample.js +8 -8
  370. package/lib/examples/ChatStandaloneExample.js +2 -2
  371. package/lib/examples/CopilotKitLexicalExample.js +4 -4
  372. package/lib/examples/CopilotKitNotebookExample.js +4 -4
  373. package/lib/examples/DecksAgent.js +4 -4
  374. package/lib/examples/DocumentPageAgent.js +2 -2
  375. package/lib/examples/Lexical2Example.js +9 -9
  376. package/lib/examples/LexicalAgentExample.js +7 -7
  377. package/lib/examples/LexicalAgentSidebarExample.js +8 -8
  378. package/lib/examples/LoopAppComputerExample.js +4 -4
  379. package/lib/examples/LoopShellExample.js +6 -6
  380. package/lib/examples/LoopStrategyExample.js +6 -6
  381. package/lib/examples/LoopWorkspaceEmbed.js +1 -1
  382. package/lib/examples/LoopWorkspaceExample.js +11 -11
  383. package/lib/examples/NotebookAgentExample.js +5 -5
  384. package/lib/examples/NotebookAgentSidebarExample.js +5 -5
  385. package/lib/examples/NotebookCollaborationExample.js +6 -6
  386. package/lib/examples/NotebookExample.js +2 -2
  387. package/lib/examples/NotebookPageAgent.js +2 -2
  388. package/lib/examples/PapAccountTokensExample.js +4 -4
  389. package/lib/examples/PapAgentIdentityExample.js +4 -4
  390. package/lib/examples/PapAuthorizationBoundaryExample.js +4 -4
  391. package/lib/examples/PapCompanyDiscoveryExample.js +4 -4
  392. package/lib/examples/PapConversationControlExample.js +4 -4
  393. package/lib/examples/PapConversationStreamingExample.js +4 -4
  394. package/lib/examples/PapDpopProofExample.js +4 -4
  395. package/lib/examples/PapGuidedJourneyExample.js +4 -4
  396. package/lib/examples/PapMediatedSignInExample.js +4 -4
  397. package/lib/examples/PapOperationsExample.js +4 -4
  398. package/lib/examples/PapSessionLifecycleExample.js +4 -4
  399. package/lib/examples/PapSignInDisplayExample.js +4 -4
  400. package/lib/examples/PapTwoCompaniesExample.js +4 -4
  401. package/lib/examples/PapUserWithACompanyExample.js +4 -4
  402. package/lib/examples/ProtocolSignedRequestsExample.js +2 -2
  403. package/lib/examples/ProtocolUcpCheckoutExample.js +2 -2
  404. package/lib/examples/ScenesExample.js +8 -8
  405. package/lib/examples/ShieldHarnessExample.js +5 -5
  406. package/lib/examples/ShieldPolicyExample.js +2 -2
  407. package/lib/examples/VoiceChatExample.js +4 -4
  408. package/lib/examples/components/AuthRequiredView.js +1 -1
  409. package/lib/examples/components/ExampleWrapper.js +3 -3
  410. package/lib/examples/components/Header.js +2 -2
  411. package/lib/examples/components/LexicalEditor.js +1 -1
  412. package/lib/examples/components/MainContent.js +1 -1
  413. package/lib/examples/components/haiku/HaikuDisplay.js +1 -1
  414. package/lib/examples/components/haiku/index.js +2 -2
  415. package/lib/examples/components/index.js +13 -13
  416. package/lib/examples/components/weather/index.js +1 -1
  417. package/lib/examples/example-selector.js +78 -78
  418. package/lib/examples/hooks/useExampleAgentProtocol.js +2 -2
  419. package/lib/examples/hooks/useExampleAgentRuntime.js +4 -4
  420. package/lib/examples/hooks/useExampleAgentRuntimes.js +4 -4
  421. package/lib/examples/hooks/useExampleJupyterAgent.js +8 -8
  422. package/lib/examples/hooks/useToolRenderers.js +1 -1
  423. package/lib/examples/index.js +66 -66
  424. package/lib/examples/lexical/editorConfig.js +1 -1
  425. package/lib/examples/main.js +21 -21
  426. package/lib/examples/pap/PapAccountTokensView.js +1 -1
  427. package/lib/examples/pap/PapAgentIdentityView.js +2 -2
  428. package/lib/examples/pap/PapAuthorizationBoundaryView.js +1 -1
  429. package/lib/examples/pap/PapCompanyDiscoveryView.js +2 -2
  430. package/lib/examples/pap/PapConversationControlView.js +1 -1
  431. package/lib/examples/pap/PapConversationStreamingView.js +1 -1
  432. package/lib/examples/pap/PapDpopProofView.js +1 -1
  433. package/lib/examples/pap/PapGuidedJourneyView.js +2 -2
  434. package/lib/examples/pap/PapMediatedSignInView.js +1 -1
  435. package/lib/examples/pap/PapOperationsView.js +1 -1
  436. package/lib/examples/pap/PapSessionLifecycleView.js +1 -1
  437. package/lib/examples/pap/PapSignInDisplayView.js +2 -2
  438. package/lib/examples/pap/PapTraceView.js +1 -1
  439. package/lib/examples/pap/PapTwoCompaniesView.js +1 -1
  440. package/lib/examples/pap/PapUserWithACompanyView.js +1 -1
  441. package/lib/examples/pap/papSignInCases.js +1 -1
  442. package/lib/examples/protocols/signedRequestsDemo.js +1 -1
  443. package/lib/examples/protocols/ucpCheckoutDemo.js +3 -3
  444. package/lib/examples/scenes/A2UiComponentsGalleryScene.js +4 -4
  445. package/lib/examples/scenes/A2UiContactCardScene.js +3 -3
  446. package/lib/examples/scenes/A2UiRestaurantScene.js +5 -5
  447. package/lib/examples/scenes/A2UiViewerScene.js +3 -3
  448. package/lib/examples/utils/AvatarGalleryGrid.d.ts +1 -1
  449. package/lib/examples/utils/AvatarGalleryGrid.js +8 -8
  450. package/lib/examples/utils/a2ui.js +1 -1
  451. package/lib/examples/utils/a2uiMarkdownProvider.js +1 -1
  452. package/lib/examples/utils/avatarGallery.js +2 -2
  453. package/lib/examples/utils/clippyJsCharacters.js +1 -1
  454. package/lib/examples/utils/examplesStore.js +1 -1
  455. package/lib/examples/utils/notebookToolbarItems.js +1 -1
  456. package/lib/examples/utils/owlCharacterPlugin.js +1 -1
  457. package/lib/examples/utils/teardownAgents.js +1 -1
  458. package/lib/examples/utils/testSpriteCharacter.js +1 -1
  459. package/lib/examples/utils/themedProvider.js +1 -1
  460. package/lib/examples/utils/useExampleAgentRuntimesUrl.js +3 -3
  461. package/lib/examples2/DatalayerNotebookExample.js +3 -3
  462. package/lib/examples2/NativeNavigationExample.js +1 -1
  463. package/lib/examples2/NotebookMutationsKernel.js +2 -2
  464. package/lib/examples2/NotebookMutationsServiceManager.js +2 -2
  465. package/lib/examples2/ReactRouterExample.js +1 -1
  466. package/lib/examples2/example-selector.js +7 -7
  467. package/lib/examples2/index.js +2 -2
  468. package/lib/examples2/main.js +5 -5
  469. package/lib/hooks/index.js +26 -26
  470. package/lib/hooks/useAgUi.js +1 -1
  471. package/lib/hooks/useAgentRuntimes.js +9 -9
  472. package/lib/hooks/useAgentsCatalog.js +1 -1
  473. package/lib/hooks/useAgentsService.js +1 -1
  474. package/lib/hooks/useBrowserAgent.js +1 -1
  475. package/lib/hooks/useBrowserInference.js +2 -2
  476. package/lib/hooks/useCellOutputshot.js +1 -1
  477. package/lib/hooks/useChat.js +6 -6
  478. package/lib/hooks/useCheckpoints.js +10 -10
  479. package/lib/hooks/useConfig.js +1 -1
  480. package/lib/hooks/useContextSnapshot.js +1 -1
  481. package/lib/hooks/useNotifications.js +1 -1
  482. package/lib/hooks/useProgressTask.js +1 -1
  483. package/lib/hooks/useSandbox.js +1 -1
  484. package/lib/hooks/useSkills.js +1 -1
  485. package/lib/hooks/useToolApprovals.js +2 -2
  486. package/lib/hooks/useTools.js +1 -1
  487. package/lib/identity/AgentIdentity.js +3 -3
  488. package/lib/identity/IdentityConnect.js +2 -2
  489. package/lib/identity/OAuthCallback.js +1 -1
  490. package/lib/identity/identityStore.js +2 -2
  491. package/lib/identity/index.js +8 -8
  492. package/lib/identity/useIdentity.js +1 -1
  493. package/lib/index.js +11 -11
  494. package/lib/inference/DatalayerInferenceProvider.js +2 -2
  495. package/lib/inference/SelfHostedInferenceProvider.js +2 -2
  496. package/lib/inference/index.js +3 -3
  497. package/lib/jupyter/exec/Snippets.js +1 -1
  498. package/lib/jupyter/exec/index.js +2 -2
  499. package/lib/jupyter/index.js +3 -3
  500. package/lib/jupyter/useResumeServerExecutions.js +1 -1
  501. package/lib/lexical/ChatInlinePlugin.js +1 -1
  502. package/lib/lexical/index.js +2 -2
  503. package/lib/loop-example-main.js +2 -2
  504. package/lib/loop-main.js +9 -9
  505. package/lib/main.js +1 -1
  506. package/lib/mcp/index.js +1 -1
  507. package/lib/middleware/index.js +1 -1
  508. package/lib/mocks/models/CourseMock.js +1 -1
  509. package/lib/models/CodeSandboxSnapshotDTO.js +1 -1
  510. package/lib/models/ItemDTO.js +1 -1
  511. package/lib/models/LexicalDTO.js +2 -2
  512. package/lib/models/NotebookDTO.js +2 -2
  513. package/lib/models/Page.js +1 -1
  514. package/lib/models/RuntimeDTO.js +1 -1
  515. package/lib/models/SpaceDTO.js +7 -7
  516. package/lib/models/index.js +32 -32
  517. package/lib/portable/activity.js +1 -1
  518. package/lib/portable/approvalCard.js +1 -1
  519. package/lib/portable/attention.js +1 -1
  520. package/lib/portable/conversation.js +4 -4
  521. package/lib/portable/displays.js +1 -1
  522. package/lib/portable/fixtures.js +2 -2
  523. package/lib/portable/hosts/agentClient.js +4 -4
  524. package/lib/portable/hosts/client.js +1 -1
  525. package/lib/portable/hosts/deadLetters.js +3 -3
  526. package/lib/portable/hosts/deliveries.js +1 -1
  527. package/lib/portable/hosts/index.js +21 -21
  528. package/lib/portable/hosts/postgresQueue.js +1 -1
  529. package/lib/portable/hosts/quotas.js +1 -1
  530. package/lib/portable/hosts/schema.js +1 -1
  531. package/lib/portable/index.js +24 -24
  532. package/lib/portable/localApprovals.js +1 -1
  533. package/lib/portable/runMeasures.js +2 -2
  534. package/lib/portable/sessionList.js +1 -1
  535. package/lib/portable/sessions.js +4 -4
  536. package/lib/portable/thread.js +2 -2
  537. package/lib/portable/views.js +1 -1
  538. package/lib/protocols/A2AAdapter.js +3 -3
  539. package/lib/protocols/ACPAdapter.js +2 -2
  540. package/lib/protocols/AGUIAdapter.js +4 -4
  541. package/lib/protocols/BrowserAgentAdapter.js +3 -3
  542. package/lib/protocols/VercelAIAdapter.js +2 -2
  543. package/lib/protocols/a2a/index.js +1 -1
  544. package/lib/protocols/agentProtocols.js +8 -8
  545. package/lib/protocols/agentic-commerce/index.js +3 -3
  546. package/lib/protocols/commerce.js +1 -1
  547. package/lib/protocols/index.js +6 -6
  548. package/lib/protocols/mcp/index.js +2 -2
  549. package/lib/protocols/pact/index.js +1 -1
  550. package/lib/protocols/pap/index.js +1 -1
  551. package/lib/protocols/ucp/index.js +3 -3
  552. package/lib/protocols/ucp/merchant.js +1 -1
  553. package/lib/protocols/web-bot-auth/index.js +1 -1
  554. package/lib/protocols/web-bot-auth/tap.js +1 -1
  555. package/lib/runtimes/actions.js +3 -3
  556. package/lib/runtimes/browser/agent.js +2 -2
  557. package/lib/runtimes/browser/frontendTools.js +1 -1
  558. package/lib/runtimes/browser/index.js +6 -6
  559. package/lib/runtimes/browser/subagents.js +2 -2
  560. package/lib/runtimes/index.js +8 -8
  561. package/lib/runtimes/variants.js +1 -1
  562. package/lib/services/DatalayerServiceManager.js +1 -1
  563. package/lib/specs/agents/agents.js +4 -4
  564. package/lib/specs/agents/index.js +1 -1
  565. package/lib/specs/cogs.js +4 -4
  566. package/lib/specs/index.js +32 -32
  567. package/lib/specs/teams/index.js +1 -1
  568. package/lib/state/index.js +1 -1
  569. package/lib/state/substates/RuntimesState.js +1 -1
  570. package/lib/state/substates/index.js +7 -7
  571. package/lib/stores/agentRuntimeStore.js +3 -3
  572. package/lib/stores/index.js +3 -3
  573. package/lib/stories/Button.stories.js +1 -1
  574. package/lib/stories/Header.js +1 -1
  575. package/lib/stories/Header.stories.js +1 -1
  576. package/lib/stories/Page.js +1 -1
  577. package/lib/stories/Page.stories.js +1 -1
  578. package/lib/stories/loop/LoopReference.stories.js +1 -1
  579. package/lib/stories/loop/ReferenceScreens.js +11 -11
  580. package/lib/stories/loop/pictures-main.js +2 -2
  581. package/lib/tools/ToolExecutor.js +1 -1
  582. package/lib/tools/adapters/agent-runtimes/index.js +3 -3
  583. package/lib/tools/adapters/agent-runtimes/lexicalHooks.js +1 -1
  584. package/lib/tools/adapters/agent-runtimes/notebookHooks.js +1 -1
  585. package/lib/tools/adapters/commands/index.js +1 -1
  586. package/lib/tools/adapters/copilotkit/index.js +3 -3
  587. package/lib/tools/adapters/copilotkit/lexicalHooks.js +1 -1
  588. package/lib/tools/adapters/copilotkit/notebookHooks.js +1 -1
  589. package/lib/tools/index.js +3 -3
  590. package/lib/types/index.js +40 -40
  591. package/lib/ui-plugins/index.js +3 -3
  592. package/lib/utils/index.js +1 -1
  593. package/lib/utils/utils.js +2 -2
  594. package/lib/voice/ComposerVoice.js +5 -5
  595. package/lib/voice/HandsFree.js +5 -5
  596. package/lib/voice/ReadAloud.js +1 -1
  597. package/lib/voice/VoiceInput.js +3 -3
  598. package/lib/voice/VoiceMenu.js +3 -3
  599. package/lib/voice/captions.js +2 -2
  600. package/lib/voice/chatVoice.js +3 -3
  601. package/lib/voice/choices.js +1 -1
  602. package/lib/voice/{handsFree.d.ts → handsFreeRules.d.ts} +1 -1
  603. package/lib/voice/hearing.js +3 -3
  604. package/lib/voice/index.d.ts +1 -1
  605. package/lib/voice/index.js +22 -22
  606. package/lib/voice/keptSound.js +1 -1
  607. package/lib/voice/pinned.js +1 -1
  608. package/lib/voice/serverHearing.js +2 -2
  609. package/lib/voice/useSpokenAnswers.js +1 -1
  610. package/lib/voice/useVoiceSettings.js +1 -1
  611. package/lib/voice/useVoiceSpeaker.js +2 -2
  612. package/package.json +4 -3
  613. package/scripts/check-npm-pack.mjs +77 -0
  614. package/scripts/esm-specifiers.mjs +76 -0
  615. package/scripts/fully-specify-lib.mjs +61 -0
  616. /package/lib/chat/assistant/{avatar3d.js → avatar3dModel.js} +0 -0
  617. /package/lib/voice/{handsFree.js → handsFreeRules.js} +0 -0
@@ -194,14 +194,14 @@ export const LoopAssistantCharacter = defineContributionPoint('loop.assistant.ch
194
194
  export const LoopAssistantMenu = defineContributionPoint('loop.assistant.menu');
195
195
  // A block the Canvas may place (C-12), in a module of its own so that
196
196
  // the palette is read without the rest of the contracts.
197
- export { LoopCanvasBlock } from './canvasBlocks';
197
+ export { LoopCanvasBlock } from './canvasBlocks.js';
198
198
  // A part of an agent the Canvas may place (C-20), beside the blocks.
199
- export { LoopCanvasPart, } from './canvasParts';
199
+ export { LoopCanvasPart, } from './canvasParts.js';
200
200
  // A component an application adds to the catalog it is drawn with (P-17): the components its developer wrote, for its workspace alone.
201
- export { LoopA2uiComponent, } from './a2uiComponents';
201
+ export { LoopA2uiComponent, } from './a2uiComponents.js';
202
202
  // Where the files of an application's folder are served (P-29): said
203
203
  // by the page side its package carries.
204
- export { LoopAppFiles } from './appFiles';
204
+ export { LoopAppFiles } from './appFiles.js';
205
205
  /**
206
206
  * The words sent where the extras say instead of to the agent
207
207
  * (`sendInstead`): `null` when they go to the agent as usual; else whether
@@ -260,9 +260,9 @@ export const LoopDocumentToolbar = defineContributionPoint('loop.document.toolba
260
260
  /** What goes on the document's toolbar, once something provides one. */
261
261
  export const LoopDocumentToolbarItem = defineContributionPoint('loop.document.toolbar.item');
262
262
  // Asking the chat to open a surface, from a command that runs outside it.
263
- export { onSurfaceRequest, requestSurface, } from './surfaceRequests';
263
+ export { onSurfaceRequest, requestSurface, } from './surfaceRequests.js';
264
264
  // Asking whatever renders the prompt to focus it, the same way.
265
- export { focusPrompt, onPromptFocusRequest } from './focusRequests';
265
+ export { focusPrompt, onPromptFocusRequest } from './focusRequests.js';
266
266
  /** Slash commands, shared in shape with the CLI. */
267
267
  export const LoopCommand = defineContributionPoint('loop.command');
268
268
  /** What goes with every run besides the message (`forwardedProps`). */
@@ -388,7 +388,7 @@ export function parseCommand(input) {
388
388
  }
389
389
  return { name: head.toLowerCase(), argv: rest.join(' ').trim() };
390
390
  }
391
- export { useLoopPromptStore, suggestLoopPrompt, } from './promptStore';
391
+ export { useLoopPromptStore, suggestLoopPrompt, } from './promptStore.js';
392
392
  export const LoopChatLayout = defineContributionPoint('loop.chat.layout');
393
393
  export const LoopPromptPanel = defineContributionPoint('loop.prompt.panel');
394
394
  export const LoopChatTurn = defineContributionPoint('loop.chat.turn');
@@ -4,7 +4,7 @@ import type { AppAccent, AppEmbedMode, AppSpec, AppThemeVariant } from '../../ty
4
4
  import type { ResumedThread, ThemeOverrides } from '../../types/chat';
5
5
  import type { AssistantCharacter } from '../../chat/assistant/characters';
6
6
  import type { AssistantCharacterData } from '../../chat/assistant/formats/types';
7
- import type { AssistantModel3D } from '../../chat/assistant/avatar3d';
7
+ import type { AssistantModel3D } from '../../chat/assistant/avatar3dModel';
8
8
  import type { PresenceState } from '../../chat/presence/presenceStatus';
9
9
  import { type AppInstance, type AppRendererProps } from '../apps/AppRenderer';
10
10
  import type { ChatSaid } from '../plugins/chat';
@@ -45,17 +45,17 @@ import { Text, registerPortalRoot } from '@primer/react';
45
45
  import { useIAMStore } from '@datalayer/core/lib/state/substates/IAMState';
46
46
  import { FluentEmoji } from '@datalayer/core/lib/components/emoji';
47
47
  import { DatalayerThemeProvider, getThemeConfig, } from '@datalayer/primer-addons';
48
- import { generateMessageId } from '../../types/messages';
49
- import { ChatFloating } from '../../chat/ChatFloating';
50
- import { AppRenderer, } from '../apps/AppRenderer';
51
- import { AssistantCharactersPlugin, assistantCharacterFor, assistantCharactersFrom, } from '../plugins/assistant-characters';
52
- import { floatingViewOf } from './embedConfig';
53
- import { hostPlugin, hostUserRunProps } from './hostBridge';
54
- import { LoopRunProps } from '../core';
55
- import { embedThemeOverrides, embedThemeStyles } from './embedTheme';
56
- import { WINDOW_NOT_YET, embedSessionKey, postWindowMessage, reattachSession, sessionGoneSentence, sessionKeeper, visitOfToken, } from './embedSession';
57
- import { onLoopWindowMessage } from '../../chat/base/loopWindow';
58
- import { ChatLanguage, useChatWords } from '../../chat/ChatLanguage';
48
+ import { generateMessageId } from '../../types/messages.js';
49
+ import { ChatFloating } from '../../chat/ChatFloating.js';
50
+ import { AppRenderer, } from '../apps/AppRenderer.js';
51
+ import { AssistantCharactersPlugin, assistantCharacterFor, assistantCharactersFrom, } from '../plugins/assistant-characters/index.js';
52
+ import { floatingViewOf } from './embedConfig.js';
53
+ import { hostPlugin, hostUserRunProps } from './hostBridge.js';
54
+ import { LoopRunProps } from '../core/index.js';
55
+ import { embedThemeOverrides, embedThemeStyles } from './embedTheme.js';
56
+ import { WINDOW_NOT_YET, embedSessionKey, postWindowMessage, reattachSession, sessionGoneSentence, sessionKeeper, visitOfToken, } from './embedSession.js';
57
+ import { onLoopWindowMessage } from '../../chat/base/loopWindow.js';
58
+ import { ChatLanguage, useChatWords } from '../../chat/ChatLanguage.js';
59
59
  /**
60
60
  * The visit's session, kept and picked up again (D-13): on the host's
61
61
  * server with an embed token that names its visit, the session the chat
@@ -26,10 +26,10 @@ import { useMemo, useRef } from 'react';
26
26
  import { QueryClientProvider } from '@tanstack/react-query';
27
27
  import { useReactor } from '@datalayer/reactor/react';
28
28
  import { Box } from '@datalayer/primer-addons';
29
- import { internalQueryClient } from '../../utils';
30
- import { buildLoopReactor, LoopWorkspace } from '../shell';
31
- import { loopPlugins } from '../presets';
32
- import { WindowFrame } from '../plugins/window-frame';
29
+ import { internalQueryClient } from '../../utils/index.js';
30
+ import { buildLoopReactor, LoopWorkspace } from '../shell/index.js';
31
+ import { loopPlugins } from '../presets.js';
32
+ import { WindowFrame } from '../plugins/window-frame/index.js';
33
33
  export function LoopEmbed({ agentId = '', showHeader = false, chatHeaderActions, headerActions, headerContainer, frameTitle, frameHeight, sidebarRail = false, plugins = [], ...preset }) {
34
34
  /*
35
35
  * The latest `firstPromptHook`, kept in a ref rather than closed over
@@ -17,7 +17,7 @@
17
17
  *
18
18
  * @module apps/embed/datalayer-app
19
19
  */
20
- import { defineDatalayerAppElement } from './element';
20
+ import { defineDatalayerAppElement } from './element.js';
21
21
  /** The script a host writes, beside this module. */
22
22
  const SCRIPT_FILE = 'datalayer-app.js';
23
23
  defineDatalayerAppElement({
@@ -66,13 +66,13 @@ import { createRoot } from 'react-dom/client';
66
66
  import { StyleSheetManager } from 'styled-components';
67
67
  import { getThemeConfig } from '@datalayer/primer-addons';
68
68
  import { coreStore } from '@datalayer/core/lib/state/substates/CoreState';
69
- import { parseAppspec } from '../apps/appspec';
70
- import { readAppspecYaml } from '../apps/yaml';
71
- import { AppEmbed, embedAssistantCharacter } from './AppEmbed';
72
- import { WINDOW_NOT_YET } from './embedSession';
73
- import { EMBED_HOST_VARIABLES, EMBED_OBSERVED_ATTRIBUTES, EMBED_TAG, EMBED_TOKEN_NAMES_NO_DEPLOYMENT, EmbedAttributeError, adoptPropertiesSetEarly, embedLookOf, embedTokenDeployment, inlineHeightOf, languageOf, resumeOf, runnable, } from './embedConfig';
74
- import { embedShadowCss } from './embedTheme';
75
- import { DEFAULT_API, readVisitorApp } from './visitorApp';
69
+ import { parseAppspec } from '../apps/appspec.js';
70
+ import { readAppspecYaml } from '../apps/yaml.js';
71
+ import { AppEmbed, embedAssistantCharacter } from './AppEmbed.js';
72
+ import { WINDOW_NOT_YET } from './embedSession.js';
73
+ import { EMBED_HOST_VARIABLES, EMBED_OBSERVED_ATTRIBUTES, EMBED_TAG, EMBED_TOKEN_NAMES_NO_DEPLOYMENT, EmbedAttributeError, adoptPropertiesSetEarly, embedLookOf, embedTokenDeployment, inlineHeightOf, languageOf, resumeOf, runnable, } from './embedConfig.js';
74
+ import { embedShadowCss } from './embedTheme.js';
75
+ import { DEFAULT_API, readVisitorApp } from './visitorApp.js';
76
76
  export { runnable };
77
77
  /** What the framed run page and the element say to each other. */
78
78
  export const EMBED_MESSAGES = {
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) 2025-2026 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- import { APP_ACCENTS, APP_EMBED_MODES, } from '../apps/appspec';
6
- import { LANGUAGE_TAG } from '../apps/language';
5
+ import { APP_ACCENTS, APP_EMBED_MODES, } from '../apps/appspec.js';
6
+ import { LANGUAGE_TAG } from '../apps/language.js';
7
7
  /** The element's name: the one a host writes. */
8
8
  export const EMBED_TAG = 'datalayer-app';
9
9
  /** Where the script is served on a Datalayer origin; the stylesheet beside it. */
@@ -2,8 +2,8 @@
2
2
  * Copyright (c) 2025-2026 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- import { windowTurnErrorOf } from '../../chat/base/loopWindow';
6
- import { messagesOfThread } from '../../portable/thread';
5
+ import { windowTurnErrorOf } from '../../chat/base/loopWindow.js';
6
+ import { messagesOfThread } from '../../portable/thread.js';
7
7
  /** Where a visit's session is kept in the host's storage: `<prefix>:<app>:<visit>`. */
8
8
  export const EMBED_SESSION_KEY_PREFIX = 'datalayer-app:session';
9
9
  /**
@@ -49,9 +49,9 @@
49
49
  * @module apps/embed/hostBridge
50
50
  */
51
51
  import { AgentTools, contribution, defineAgentTools, definePlugin, signal, } from '@datalayer/reactor';
52
- import { LoopChatExtras, } from '../core';
53
- import { behaviourFor } from '../apps/rules';
54
- import { HOST_CONTEXT_TOOL, HOST_NAME, hostTool, hostToolsOf, signedUser, } from '../apps/hostTools';
52
+ import { LoopChatExtras, } from '../core/index.js';
53
+ import { behaviourFor } from '../apps/rules.js';
54
+ import { HOST_CONTEXT_TOOL, HOST_NAME, hostTool, hostToolsOf, signedUser, } from '../apps/hostTools.js';
55
55
  export { HOST_CONTEXT_TOOL, HOST_NAME, hostTool, hostToolsOf, signedUser };
56
56
  /** The sentence a call is refused with when no rule names its tool. */
57
57
  export const hostRefused = (tool) => `No rule of this application names ${tool}: it is left to the person, and the page was not called.`;
@@ -2,9 +2,9 @@
2
2
  * Copyright (c) 2025-2026 Datalayer, Inc.
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
- import { getApp } from '../../specs/apps';
6
- import { parseAppspec } from '../apps/appspec';
7
- import { runnable } from './embedConfig';
5
+ import { getApp } from '../../specs/apps.js';
6
+ import { parseAppspec } from '../apps/appspec.js';
7
+ import { runnable } from './embedConfig.js';
8
8
  /** Where the visitors' runtime is published, on ai-agents' host (its chart). */
9
9
  export const VISITORS_PATH = '/api/runtime-visitors';
10
10
  /** The examples the visitors' runtime keeps warm (its chart's `AGENT_RUNTIMES_VISITORS`). */
@@ -19,10 +19,10 @@
19
19
  * @module apps/extensions
20
20
  */
21
21
  import { defineExtension } from '@datalayer/reactor';
22
- import { DocumentPlugin } from './plugins/document';
23
- import { DocumentToolbarPlugin } from './plugins/document-toolbar';
24
- import { NotebookPlugin } from './plugins/notebook';
25
- import { NotebookToolbarPlugin } from './plugins/notebook-toolbar';
22
+ import { DocumentPlugin } from './plugins/document/index.js';
23
+ import { DocumentToolbarPlugin } from './plugins/document-toolbar/index.js';
24
+ import { NotebookPlugin } from './plugins/notebook/index.js';
25
+ import { NotebookToolbarPlugin } from './plugins/notebook-toolbar/index.js';
26
26
  /**
27
27
  * The notebook capability: the editor, and the toolbar that reports on it.
28
28
  *
package/lib/apps/index.js CHANGED
@@ -11,96 +11,96 @@
11
11
  * @module apps
12
12
  */
13
13
  // The contracts. A plugin depends on these and on the reactor, never on the shell.
14
- export { LoopCommand, LoopDocumentToolbar, LoopMention, LoopNotebookToolbar, LoopRunProps, LoopSlots, LoopViewType, canOpenView, createPromptChannel, parseCommand, runForwardedProps, useLoopPromptStore, suggestLoopPrompt, focusPrompt, onPromptFocusRequest, } from './core';
15
- export { useEditorToolbar } from './core/toolbar';
14
+ export { LoopCommand, LoopDocumentToolbar, LoopMention, LoopNotebookToolbar, LoopRunProps, LoopSlots, LoopViewType, canOpenView, createPromptChannel, parseCommand, runForwardedProps, useLoopPromptStore, suggestLoopPrompt, focusPrompt, onPromptFocusRequest, } from './core/index.js';
15
+ export { useEditorToolbar } from './core/toolbar.js';
16
16
  // The shell.
17
- export { LoopWorkspace, PluginToggles, ViewSwitcher, WorkspaceFullScreenAction, buildLoopReactor, useWorkspaceFullScreen, } from './shell';
17
+ export { LoopWorkspace, PluginToggles, ViewSwitcher, WorkspaceFullScreenAction, buildLoopReactor, useWorkspaceFullScreen, } from './shell/index.js';
18
18
  // The plugins that ship with it.
19
- export { A2uiPlugin, A2UI_PLUGIN_NAME } from './plugins/a2ui';
20
- export { AgentspecsPlugin, AGENTSPECS_PLUGIN_NAME } from './plugins/agentspecs';
21
- export { ChatPlugin, CHAT_PLUGIN_NAME, } from './plugins/chat';
22
- export { ChatHeaderPlugin, CHAT_HEADER_PLUGIN_NAME, } from './plugins/chat-header';
23
- export { InputPromptPlugin, INPUT_PROMPT_PLUGIN_NAME, } from './plugins/input-prompt';
24
- export { createChatExtrasPlugin, CHAT_EXTRAS_PLUGIN_NAME, } from './plugins/chat-extras';
19
+ export { A2uiPlugin, A2UI_PLUGIN_NAME } from './plugins/a2ui/index.js';
20
+ export { AgentspecsPlugin, AGENTSPECS_PLUGIN_NAME } from './plugins/agentspecs/index.js';
21
+ export { ChatPlugin, CHAT_PLUGIN_NAME, } from './plugins/chat/index.js';
22
+ export { ChatHeaderPlugin, CHAT_HEADER_PLUGIN_NAME, } from './plugins/chat-header/index.js';
23
+ export { InputPromptPlugin, INPUT_PROMPT_PLUGIN_NAME, } from './plugins/input-prompt/index.js';
24
+ export { createChatExtrasPlugin, CHAT_EXTRAS_PLUGIN_NAME, } from './plugins/chat-extras/index.js';
25
25
  // The live channels a host feeds the workspace through, and what it can
26
26
  // read back: the chat extras, the opening notebook, and who the team is
27
27
  // talking to. A page composing panels around a `LoopEmbed` needs all three.
28
- export { LoopChatExtras, LoopChatLayout, LoopChatTurn, LoopOpeningDocument, LoopOpeningNotebook, LoopPromptPanel, } from './core';
28
+ export { LoopChatExtras, LoopChatLayout, LoopChatTurn, LoopOpeningDocument, LoopOpeningNotebook, LoopPromptPanel, } from './core/index.js';
29
29
  export { LoopPageLayoutPlugin, LOOP_PAGE_LAYOUT_PLUGIN_NAME, openConversationPanel, pageLayoutSheet, pageLayoutPanelOpen,
30
30
  // How a host moves the composer: `sidebar` stands it in the conversation
31
31
  // panel, under what was said, and opens the panel to show it.
32
- setPageLayoutChatMode, SplitLayout, } from './plugins/page-layout';
33
- export { useOptionalTeamSelection } from './plugins/agents/useTeamSelection';
34
- export { ChatViewPlugin, CHAT_VIEW_PLUGIN_NAME } from './plugins/chat-view';
35
- export { NotebookViewPlugin, NOTEBOOK_VIEW_PLUGIN_NAME, } from './plugins/notebook-view';
36
- export { DocumentViewPlugin, DOCUMENT_VIEW_PLUGIN_NAME, } from './plugins/document-view';
37
- export { defineViewPlugin, } from './plugins/view-switch';
38
- export { defineAgentCapacityPlugin, } from './plugins/agent-capacity';
32
+ setPageLayoutChatMode, SplitLayout, } from './plugins/page-layout/index.js';
33
+ export { useOptionalTeamSelection } from './plugins/agents/useTeamSelection.js';
34
+ export { ChatViewPlugin, CHAT_VIEW_PLUGIN_NAME } from './plugins/chat-view/index.js';
35
+ export { NotebookViewPlugin, NOTEBOOK_VIEW_PLUGIN_NAME, } from './plugins/notebook-view/index.js';
36
+ export { DocumentViewPlugin, DOCUMENT_VIEW_PLUGIN_NAME, } from './plugins/document-view/index.js';
37
+ export { defineViewPlugin, } from './plugins/view-switch/index.js';
38
+ export { defineAgentCapacityPlugin, } from './plugins/agent-capacity/index.js';
39
39
  // The agent-capacity plugins: one folder per capacity, one line each.
40
- export { AgentCheckpointsPlugin, AGENT_CHECKPOINTS_PLUGIN_NAME, } from './plugins/agent-checkpoints';
41
- export { AgentCodeSandboxPlugin, AGENT_CODE_SANDBOX_PLUGIN_NAME, } from './plugins/agent-code-sandbox';
42
- export { AgentCodemodePlugin, AgentNoCodemodePlugin, AGENT_CODEMODE_PLUGIN_NAME, AGENT_NO_CODEMODE_PLUGIN_NAME, } from './plugins/agent-codemode';
43
- export { AgentCompactionPlugin, AGENT_COMPACTION_PLUGIN_NAME, } from './plugins/agent-compaction';
44
- export { AgentEvalsPlugin, AGENT_EVALS_PLUGIN_NAME, } from './plugins/agent-evals';
45
- export { AgentGuardrailsPlugin, AGENT_GUARDRAILS_PLUGIN_NAME, } from './plugins/agent-guardrails';
46
- export { AgentHooksPlugin, AGENT_HOOKS_PLUGIN_NAME, } from './plugins/agent-hooks';
47
- export { AgentInferencePlugin, AGENT_INFERENCE_PLUGIN_NAME, } from './plugins/agent-inference';
48
- export { AgentMcpPlugin, AGENT_MCP_PLUGIN_NAME } from './plugins/agent-mcp';
49
- export { AgentMemoryPlugin, AGENT_MEMORY_PLUGIN_NAME, } from './plugins/agent-memory';
50
- export { AgentMonitoringPlugin, AGENT_MONITORING_PLUGIN_NAME, } from './plugins/agent-monitoring';
51
- export { AgentNotificationsPlugin, AGENT_NOTIFICATIONS_PLUGIN_NAME, } from './plugins/agent-notifications';
52
- export { AgentOtelPlugin, AGENT_OTEL_PLUGIN_NAME } from './plugins/agent-otel';
53
- export { AgentOutputsPlugin, AGENT_OUTPUTS_PLUGIN_NAME, } from './plugins/agent-outputs';
54
- export { AgentParametersPlugin, AGENT_PARAMETERS_PLUGIN_NAME, } from './plugins/agent-parameters';
55
- export { AgentSkillsPlugin, AGENT_SKILLS_PLUGIN_NAME, } from './plugins/agent-skills';
56
- export { AgentSubagentsPlugin, AGENT_SUBAGENTS_PLUGIN_NAME, } from './plugins/agent-subagents';
57
- export { AgentA2APlugin, AGENT_A2A_PLUGIN_NAME } from './plugins/agent-a2a';
58
- export { CheckpointsSidebarPlugin, CHECKPOINTS_SIDEBAR_PLUGIN_NAME, CheckpointsSidebar, } from './plugins/checkpoints-sidebar';
59
- export { A2ASidebarPlugin, A2ASidebar, A2A_SIDEBAR_PLUGIN_NAME, describeRemoteAgents, remoteStatusOf, } from './plugins/a2a-sidebar';
60
- export { AgentToolApprovalsPlugin, AGENT_TOOL_APPROVALS_PLUGIN_NAME, } from './plugins/agent-tool-approvals';
61
- export { AgentTriggersPlugin, AGENT_TRIGGERS_PLUGIN_NAME, } from './plugins/agent-triggers';
62
- export { SANDBOX_CAPACITIES, SandboxCapacityPlugins, } from './plugins/agent-code-sandboxes';
63
- export { AgentA2uiPlugin, AGENT_A2UI_PLUGIN_NAME } from './plugins/agent-a2ui';
64
- export { AgentA2uiJupyterOutputPlugin, AGENT_A2UI_JUPYTER_OUTPUT_PLUGIN_NAME, } from './plugins/agent-a2ui-jupyter-output';
65
- export { defineA2uiScenePlugin, } from './plugins/a2ui-scene';
66
- export { APP_KIND_PATHS, APP_PAGE_PLUGIN_NAME, APP_PAGE_SURFACE, AppPage, appKindPaths, appPageAction, appPageData, defineAppPagePlugin, hasAppPage, surfaceUnshown, } from './plugins/app-page';
67
- export { appComponentsPluginName, defineAppComponentsPlugin, hasCustomComponents, } from './plugins/app-components';
68
- export { APP_RULES_PLUGIN_NAME, APP_RULES_WORDS, AppRulesCard, defineAppRulesPlugin, } from './plugins/app-rules';
69
- export { APP_ACTIVITY_PLUGIN_NAME, APP_ACTIVITY_WORDS, AppActivity, defineAppActivityPlugin, } from './plugins/app-activity';
70
- export { APP_COMPUTER_PLUGIN_NAME, AppComputer, defineAppComputerPlugin, } from './plugins/app-computer';
71
- export { GraphViewPlugin, GRAPH_PLUGIN_NAME, GRAPH_VIEW_TYPE, } from './plugins/graph';
72
- export { PluginsPanelPlugin, PLUGINS_PANEL_PLUGIN_NAME, PluginsPanel, } from './plugins/plugins-panel';
73
- export { AGENTS_PLUGIN_NAME, AgentsPlugin, DEFAULT_DATALAYER_AGENTSPEC, SandboxSelector, browserSource, createBrowserSandboxService, createServerSandboxService, createSwitchableSandboxService, suppliedSource, useOptionalSandboxService, useSandboxService, } from './plugins/agents';
74
- export { DocumentPlugin, DOCUMENT_PLUGIN_NAME } from './plugins/document';
75
- export { DocumentToolbarPlugin, DOCUMENT_TOOLBAR_PLUGIN_NAME, } from './plugins/document-toolbar';
40
+ export { AgentCheckpointsPlugin, AGENT_CHECKPOINTS_PLUGIN_NAME, } from './plugins/agent-checkpoints/index.js';
41
+ export { AgentCodeSandboxPlugin, AGENT_CODE_SANDBOX_PLUGIN_NAME, } from './plugins/agent-code-sandbox/index.js';
42
+ export { AgentCodemodePlugin, AgentNoCodemodePlugin, AGENT_CODEMODE_PLUGIN_NAME, AGENT_NO_CODEMODE_PLUGIN_NAME, } from './plugins/agent-codemode/index.js';
43
+ export { AgentCompactionPlugin, AGENT_COMPACTION_PLUGIN_NAME, } from './plugins/agent-compaction/index.js';
44
+ export { AgentEvalsPlugin, AGENT_EVALS_PLUGIN_NAME, } from './plugins/agent-evals/index.js';
45
+ export { AgentGuardrailsPlugin, AGENT_GUARDRAILS_PLUGIN_NAME, } from './plugins/agent-guardrails/index.js';
46
+ export { AgentHooksPlugin, AGENT_HOOKS_PLUGIN_NAME, } from './plugins/agent-hooks/index.js';
47
+ export { AgentInferencePlugin, AGENT_INFERENCE_PLUGIN_NAME, } from './plugins/agent-inference/index.js';
48
+ export { AgentMcpPlugin, AGENT_MCP_PLUGIN_NAME } from './plugins/agent-mcp/index.js';
49
+ export { AgentMemoryPlugin, AGENT_MEMORY_PLUGIN_NAME, } from './plugins/agent-memory/index.js';
50
+ export { AgentMonitoringPlugin, AGENT_MONITORING_PLUGIN_NAME, } from './plugins/agent-monitoring/index.js';
51
+ export { AgentNotificationsPlugin, AGENT_NOTIFICATIONS_PLUGIN_NAME, } from './plugins/agent-notifications/index.js';
52
+ export { AgentOtelPlugin, AGENT_OTEL_PLUGIN_NAME } from './plugins/agent-otel/index.js';
53
+ export { AgentOutputsPlugin, AGENT_OUTPUTS_PLUGIN_NAME, } from './plugins/agent-outputs/index.js';
54
+ export { AgentParametersPlugin, AGENT_PARAMETERS_PLUGIN_NAME, } from './plugins/agent-parameters/index.js';
55
+ export { AgentSkillsPlugin, AGENT_SKILLS_PLUGIN_NAME, } from './plugins/agent-skills/index.js';
56
+ export { AgentSubagentsPlugin, AGENT_SUBAGENTS_PLUGIN_NAME, } from './plugins/agent-subagents/index.js';
57
+ export { AgentA2APlugin, AGENT_A2A_PLUGIN_NAME } from './plugins/agent-a2a/index.js';
58
+ export { CheckpointsSidebarPlugin, CHECKPOINTS_SIDEBAR_PLUGIN_NAME, CheckpointsSidebar, } from './plugins/checkpoints-sidebar/index.js';
59
+ export { A2ASidebarPlugin, A2ASidebar, A2A_SIDEBAR_PLUGIN_NAME, describeRemoteAgents, remoteStatusOf, } from './plugins/a2a-sidebar/index.js';
60
+ export { AgentToolApprovalsPlugin, AGENT_TOOL_APPROVALS_PLUGIN_NAME, } from './plugins/agent-tool-approvals/index.js';
61
+ export { AgentTriggersPlugin, AGENT_TRIGGERS_PLUGIN_NAME, } from './plugins/agent-triggers/index.js';
62
+ export { SANDBOX_CAPACITIES, SandboxCapacityPlugins, } from './plugins/agent-code-sandboxes/index.js';
63
+ export { AgentA2uiPlugin, AGENT_A2UI_PLUGIN_NAME } from './plugins/agent-a2ui/index.js';
64
+ export { AgentA2uiJupyterOutputPlugin, AGENT_A2UI_JUPYTER_OUTPUT_PLUGIN_NAME, } from './plugins/agent-a2ui-jupyter-output/index.js';
65
+ export { defineA2uiScenePlugin, } from './plugins/a2ui-scene/index.js';
66
+ export { APP_KIND_PATHS, APP_PAGE_PLUGIN_NAME, APP_PAGE_SURFACE, AppPage, appKindPaths, appPageAction, appPageData, defineAppPagePlugin, hasAppPage, surfaceUnshown, } from './plugins/app-page/index.js';
67
+ export { appComponentsPluginName, defineAppComponentsPlugin, hasCustomComponents, } from './plugins/app-components/index.js';
68
+ export { APP_RULES_PLUGIN_NAME, APP_RULES_WORDS, AppRulesCard, defineAppRulesPlugin, } from './plugins/app-rules/index.js';
69
+ export { APP_ACTIVITY_PLUGIN_NAME, APP_ACTIVITY_WORDS, AppActivity, defineAppActivityPlugin, } from './plugins/app-activity/index.js';
70
+ export { APP_COMPUTER_PLUGIN_NAME, AppComputer, defineAppComputerPlugin, } from './plugins/app-computer/index.js';
71
+ export { GraphViewPlugin, GRAPH_PLUGIN_NAME, GRAPH_VIEW_TYPE, } from './plugins/graph/index.js';
72
+ export { PluginsPanelPlugin, PLUGINS_PANEL_PLUGIN_NAME, PluginsPanel, } from './plugins/plugins-panel/index.js';
73
+ export { AGENTS_PLUGIN_NAME, AgentsPlugin, DEFAULT_DATALAYER_AGENTSPEC, SandboxSelector, browserSource, createBrowserSandboxService, createServerSandboxService, createSwitchableSandboxService, suppliedSource, useOptionalSandboxService, useSandboxService, } from './plugins/agents/index.js';
74
+ export { DocumentPlugin, DOCUMENT_PLUGIN_NAME } from './plugins/document/index.js';
75
+ export { DocumentToolbarPlugin, DOCUMENT_TOOLBAR_PLUGIN_NAME, } from './plugins/document-toolbar/index.js';
76
76
  export { ShellPlugin, EditorSelector, SHELL_PLUGIN_NAME, NONE_EDITOR, chooseEditor,
77
77
  // The names this plugin outgrew, kept so nothing breaks in the same step.
78
- EditorsPlugin, EDITORS_PLUGIN_NAME, } from './plugins/shell';
79
- export { ModelsPlugin, MODELS_PLUGIN_NAME } from './plugins/models';
80
- export { NotebookPlugin, NOTEBOOK_PLUGIN_NAME } from './plugins/notebook';
81
- export { NotebookToolbarPlugin, NOTEBOOK_TOOLBAR_PLUGIN_NAME, } from './plugins/notebook-toolbar';
78
+ EditorsPlugin, EDITORS_PLUGIN_NAME, } from './plugins/shell/index.js';
79
+ export { ModelsPlugin, MODELS_PLUGIN_NAME } from './plugins/models/index.js';
80
+ export { NotebookPlugin, NOTEBOOK_PLUGIN_NAME } from './plugins/notebook/index.js';
81
+ export { NotebookToolbarPlugin, NOTEBOOK_TOOLBAR_PLUGIN_NAME, } from './plugins/notebook-toolbar/index.js';
82
82
  // The window a page puts around Loop, and the slots that make its title bar
83
83
  // extensible.
84
- export { WindowFrame, WindowFramePlugin, WINDOW_ACTIONS_SLOT, WINDOW_CONTROLS_SLOT, WINDOW_FRAME_PLUGIN_NAME, } from './plugins/window-frame';
85
- export { LoopCommandsPlugin, COMMANDS_PLUGIN_NAME } from './plugins/commands';
86
- export { PromptPlugin, PROMPT_PLUGIN_NAME } from './plugins/prompt';
84
+ export { WindowFrame, WindowFramePlugin, WINDOW_ACTIONS_SLOT, WINDOW_CONTROLS_SLOT, WINDOW_FRAME_PLUGIN_NAME, } from './plugins/window-frame/index.js';
85
+ export { LoopCommandsPlugin, COMMANDS_PLUGIN_NAME } from './plugins/commands/index.js';
86
+ export { PromptPlugin, PROMPT_PLUGIN_NAME } from './plugins/prompt/index.js';
87
87
  // Loop, ready to drop into somebody else's page.
88
- export { LoopEmbed } from './embed/LoopEmbed';
88
+ export { LoopEmbed } from './embed/LoopEmbed.js';
89
89
  // An application in another product's page: the React component, the
90
90
  // `<datalayer-app>` element, and the snippet a host pastes (D-07 to D-09).
91
- export { AppEmbed, AppFloating, embedAssistantCharacter, useEmbedSession, useHostBridge, } from './embed/AppEmbed';
92
- export { EMBED_SESSION_KEY_PREFIX, embedSessionKey, visitOfToken, } from './embed/embedSession';
91
+ export { AppEmbed, AppFloating, embedAssistantCharacter, useEmbedSession, useHostBridge, } from './embed/AppEmbed.js';
92
+ export { EMBED_SESSION_KEY_PREFIX, embedSessionKey, visitOfToken, } from './embed/embedSession.js';
93
93
  // The host page and an embedded application, talking (D-10).
94
- export { HOST_CONTEXT_COMMAND, HOST_CONTEXT_TOOL, HOST_TOOLS_BUNDLE, hostAgentTools, hostCommand, hostCommands, hostPlugin, hostNotAllowed, hostRefused, hostTool, hostToolsOf, hostUserRunProps, fetchUserToken, signedUser, } from './embed/hostBridge';
95
- export { defineDatalayerAppElement, } from './embed/element';
96
- export { EMBED_ATTRIBUTES, EMBED_HOST_VARIABLES, EMBED_TAG, embedLookOf, embedSnippetOf, floatingViewOf, languageOf, resumeOf, } from './embed/embedConfig';
97
- export { SubagentActivityPlugin, SubagentPulse, SUBAGENT_ACTIVITY_PLUGIN_NAME, } from './plugins/subagent-activity';
94
+ export { HOST_CONTEXT_COMMAND, HOST_CONTEXT_TOOL, HOST_TOOLS_BUNDLE, hostAgentTools, hostCommand, hostCommands, hostPlugin, hostNotAllowed, hostRefused, hostTool, hostToolsOf, hostUserRunProps, fetchUserToken, signedUser, } from './embed/hostBridge.js';
95
+ export { defineDatalayerAppElement, } from './embed/element.js';
96
+ export { EMBED_ATTRIBUTES, EMBED_HOST_VARIABLES, EMBED_TAG, embedLookOf, embedSnippetOf, floatingViewOf, languageOf, resumeOf, } from './embed/embedConfig.js';
97
+ export { SubagentActivityPlugin, SubagentPulse, SUBAGENT_ACTIVITY_PLUGIN_NAME, } from './plugins/subagent-activity/index.js';
98
98
  // The set a workspace normally has, so a host starts from a working Loop
99
99
  // rather than assembling one — and never from the example.
100
- export { loopPlugins } from './presets';
100
+ export { loopPlugins } from './presets.js';
101
101
  // The extensions that group them, for hosts that would rather install a
102
102
  // capability than assemble one.
103
- export { DocumentExtension, NotebookExtension } from './extensions';
103
+ export { DocumentExtension, NotebookExtension } from './extensions.js';
104
104
  // Applications: what one does when its agent calls a tool — the rules a
105
105
  // person wrote, decided on what the tool does.
106
- export { BEHAVIOURS as APP_BEHAVIOUR_ORDER, DEFAULT_BEHAVIOURS as APP_DEFAULT_BEHAVIOURS, behaviourFor, classesOf, isReadOnly, toolBehaviours, toolEscalations, APP_SCHEMA, APPSPEC_KEY_ORDER, DEFAULT_LAYOUTS as APP_DEFAULT_LAYOUTS, dumpAppspec, emptyAppspec, parseAppspec, AppRenderer, checkApp, checkAppspec, isOrganizationFrame, ORGANIZATION_FRAME_PREFIX, defineAppPlugin, appLayoutOptions, readAppspecYaml, writeAppspecYaml, appComponents, customComponentEntry, customComponentOf, customComponentProblems, customComponentsProblems, folderSourceUrl, hasFolderModules, isFolderSource, pageOutputShows, } from './apps';
106
+ export { BEHAVIOURS as APP_BEHAVIOUR_ORDER, DEFAULT_BEHAVIOURS as APP_DEFAULT_BEHAVIOURS, behaviourFor, classesOf, isReadOnly, toolBehaviours, toolEscalations, APP_SCHEMA, APPSPEC_KEY_ORDER, DEFAULT_LAYOUTS as APP_DEFAULT_LAYOUTS, dumpAppspec, emptyAppspec, parseAppspec, AppRenderer, checkApp, checkAppspec, isOrganizationFrame, ORGANIZATION_FRAME_PREFIX, defineAppPlugin, appLayoutOptions, readAppspecYaml, writeAppspecYaml, appComponents, customComponentEntry, customComponentOf, customComponentProblems, customComponentsProblems, folderSourceUrl, hasFolderModules, isFolderSource, pageOutputShows, } from './apps/index.js';
@@ -21,12 +21,12 @@ import { Heading, Label, Link, Text, Timeline } from '@primer/react';
21
21
  import { AlertIcon, BroadcastIcon, CheckCircleIcon, CloudIcon, DependabotIcon, DeviceDesktopIcon, } from '@primer/octicons-react';
22
22
  import { Box } from '@datalayer/primer-addons';
23
23
  import { useContributions } from '@datalayer/reactor/react';
24
- import { LoopAgentBlueprint } from '../../core';
25
- import { getAgentspecs } from '../../../specs/agents';
26
- import { SubagentChatPanel } from '../../../chat/messages/ChatMessageList';
27
- import { A2AAgentDialog } from '../../../chat/tools/A2AAgentDialog';
28
- import { useAgentRuntimeActiveSubagentToolCallId, useAgentRuntimeStore, } from '../../../stores/agentRuntimeStore';
29
- import { SUBAGENT_STOPPED, } from '../../../types/stream';
24
+ import { LoopAgentBlueprint } from '../../core/index.js';
25
+ import { getAgentspecs } from '../../../specs/agents/index.js';
26
+ import { SubagentChatPanel } from '../../../chat/messages/ChatMessageList.js';
27
+ import { A2AAgentDialog } from '../../../chat/tools/A2AAgentDialog.js';
28
+ import { useAgentRuntimeActiveSubagentToolCallId, useAgentRuntimeStore, } from '../../../stores/agentRuntimeStore.js';
29
+ import { SUBAGENT_STOPPED, } from '../../../types/stream.js';
30
30
  /** Fixed height (px) of the live run box. */
31
31
  export const A2A_ACTIVE_PANEL_HEIGHT = 280;
32
32
  /** Where a remote run stands, from its events. */
@@ -14,8 +14,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
14
14
  * @module apps/plugins/a2a-sidebar
15
15
  */
16
16
  import { definePlugin } from '@datalayer/reactor';
17
- import { LoopSlots } from '../../core';
18
- import { A2ASidebar } from './A2ASidebar';
17
+ import { LoopSlots } from '../../core/index.js';
18
+ import { A2ASidebar } from './A2ASidebar.js';
19
19
  export const A2A_SIDEBAR_PLUGIN_NAME = '@datalayer/loop-plugin-a2a-sidebar';
20
20
  export const A2ASidebarPlugin = definePlugin({
21
21
  name: A2A_SIDEBAR_PLUGIN_NAME,
@@ -35,5 +35,5 @@ export const A2ASidebarPlugin = definePlugin({
35
35
  ],
36
36
  }),
37
37
  });
38
- export { A2ASidebar, describeRemoteAgents, remoteStatusOf, } from './A2ASidebar';
38
+ export { A2ASidebar, describeRemoteAgents, remoteStatusOf, } from './A2ASidebar.js';
39
39
  export default A2ASidebarPlugin;
@@ -4,8 +4,8 @@ import { Box } from '@datalayer/primer-addons';
4
4
  import { Text } from '@primer/react';
5
5
  import { MessageProcessor, } from '@a2ui/web_core/v0_9';
6
6
  import { useSignalValue } from '@datalayer/reactor/react';
7
- import { A2uiSurfaceComposed, datalayerCatalog, } from '../../../components/a2ui';
8
- import { useSandboxService } from '../agents';
7
+ import { A2uiSurfaceComposed, datalayerCatalog, } from '../../../components/a2ui/index.js';
8
+ import { useSandboxService } from '../agents/index.js';
9
9
  /**
10
10
  * A2UI's basic catalog draws from inherited `--a2ui-*` custom properties, so a
11
11
  * surface follows the workspace's theme by inheriting rather than by being
@@ -9,8 +9,8 @@
9
9
  */
10
10
  import { BrowserIcon } from '@primer/octicons-react';
11
11
  import { contribution, definePlugin } from '@datalayer/reactor';
12
- import { LoopCommand, LoopViewType } from '../../core';
13
- import { AgentsPlugin } from '../agents';
12
+ import { LoopCommand, LoopViewType } from '../../core/index.js';
13
+ import { AgentsPlugin } from '../agents/index.js';
14
14
  export const A2UI_PLUGIN_NAME = '@datalayer/loop-plugin-a2ui';
15
15
  export const A2uiPlugin = definePlugin({
16
16
  name: A2UI_PLUGIN_NAME,
@@ -33,7 +33,7 @@ export const A2uiPlugin = definePlugin({
33
33
  unavailableReason: workspace => workspace.sandbox.variant === 'pyodide'
34
34
  ? 'Surfaces are rendered by the server; this sandbox runs in the browser'
35
35
  : 'Needs a running sandbox',
36
- load: () => import('./A2uiView'),
36
+ load: () => import('./A2uiView.js'),
37
37
  }, { id: 'a2ui', order: 30 }),
38
38
  contribution(LoopCommand, {
39
39
  name: 'a2ui',
@@ -3,7 +3,7 @@
3
3
  * Distributed under the terms of the Modified BSD License.
4
4
  */
5
5
  import { contribution, definePlugin, } from '@datalayer/reactor';
6
- import { LoopViewType } from '../../core';
6
+ import { LoopViewType } from '../../core/index.js';
7
7
  export function defineA2uiScenePlugin(options) {
8
8
  const { key, title, description, icon, load } = options;
9
9
  return definePlugin({
@@ -1,9 +1,9 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useMemo, useState } from 'react';
3
3
  import { Text } from '@primer/react';
4
- import { InlineSurface, SURFACE_CATALOG_ID } from './InlineSurface';
5
- import { useOwnCatalog } from './ownComponents';
6
- import { answerPress, answerSurface } from './toolResult';
4
+ import { InlineSurface, SURFACE_CATALOG_ID } from './InlineSurface.js';
5
+ import { useOwnCatalog } from './ownComponents.js';
6
+ import { answerPress, answerSurface } from './toolResult.js';
7
7
  export function AnswerShowsView({ display, send, }) {
8
8
  const parsed = useMemo(() => answerSurface(display, SURFACE_CATALOG_ID), [display]);
9
9
  // With the components the application's developer wrote (P-17).
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useEffect, useMemo, useRef, useState } from 'react';
3
3
  import { Box } from '@datalayer/primer-addons';
4
4
  import { MessageProcessor, } from '@a2ui/web_core/v0_9';
5
- import { A2UI_RENDER_SCOPE_SX, A2uiMarkdownProvider, A2uiSurfaceComposed, datalayerCatalog, } from '../../../components/a2ui';
5
+ import { A2UI_RENDER_SCOPE_SX, A2uiMarkdownProvider, A2uiSurfaceComposed, datalayerCatalog, } from '../../../components/a2ui/index.js';
6
6
  /** The catalogue a surface is rewritten to before it is drawn. */
7
7
  export const SURFACE_CATALOG_ID = datalayerCatalog.id;
8
8
  const INHERIT_THEME = {
@@ -2,10 +2,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { useCallback, useEffect, useMemo, useState } from 'react';
3
3
  import { Spinner, Text } from '@primer/react';
4
4
  import { Box } from '@datalayer/primer-addons';
5
- import { encodeFormSubmission } from '../../../chat/messages/formSubmission';
6
- import { InlineSurface, SURFACE_CATALOG_ID } from './InlineSurface';
7
- import { useOwnCatalog } from './ownComponents';
8
- import { readA2uiToolResult, validateA2uiSubmission, } from './toolResult';
5
+ import { encodeFormSubmission } from '../../../chat/messages/formSubmission.js';
6
+ import { InlineSurface, SURFACE_CATALOG_ID } from './InlineSurface.js';
7
+ import { useOwnCatalog } from './ownComponents.js';
8
+ import { readA2uiToolResult, validateA2uiSubmission, } from './toolResult.js';
9
9
  export function SurfaceToolResult({ context, send, onRendered, onSubmitted, }) {
10
10
  const parsed = useMemo(() => context.status === 'complete'
11
11
  ? readA2uiToolResult(context.result, SURFACE_CATALOG_ID)
@@ -3,11 +3,11 @@ import { useEffect } from 'react';
3
3
  import { contribution, definePlugin } from '@datalayer/reactor';
4
4
  import { Renderers, ToolBindings } from '@datalayer/reactor/ui';
5
5
  import { defineRenderer, } from '@datalayer/reactor/ui/react';
6
- import { AGENTSPECS } from '../../../specs/agents';
7
- import { LoopSlots } from '../../core';
8
- import { AnswerShowsView } from './AnswerShows';
9
- import { ANSWER_DISPLAY_TYPE } from './toolResult';
10
- import { SurfaceToolResult, } from './SurfaceToolResult';
6
+ import { AGENTSPECS } from '../../../specs/agents/index.js';
7
+ import { LoopSlots } from '../../core/index.js';
8
+ import { AnswerShowsView } from './AnswerShows.js';
9
+ import { ANSWER_DISPLAY_TYPE } from './toolResult.js';
10
+ import { SurfaceToolResult, } from './SurfaceToolResult.js';
11
11
  export const A2UI_SURFACE_PLUGIN_NAME = '@datalayer/loop-plugin-a2ui-surface';
12
12
  /** The renderer name a spec binds a tool to. */
13
13
  export const A2UI_SURFACE_RENDERER = 'a2ui-surface';
@@ -111,6 +111,6 @@ export function createA2uiSurfacePlugin(options = {}) {
111
111
  }
112
112
  /** The instance the preset mounts: no host callbacks. */
113
113
  export const A2uiSurfacePlugin = createA2uiSurfacePlugin();
114
- export { AnswerShowsView } from './AnswerShows';
115
- export { ANSWER_DISPLAY_TYPE, answerPress, answerSurface, readA2uiToolResult, validateA2uiField, validateA2uiSubmission, } from './toolResult';
114
+ export { AnswerShowsView } from './AnswerShows.js';
115
+ export { ANSWER_DISPLAY_TYPE, answerPress, answerSurface, readA2uiToolResult, validateA2uiField, validateA2uiSubmission, } from './toolResult.js';
116
116
  export default A2uiSurfacePlugin;
@@ -12,8 +12,8 @@
12
12
  */
13
13
  import { useMemo } from 'react';
14
14
  import { useOptionalReactorPlatform } from '@datalayer/reactor/react';
15
- import { catalogWithOwn } from '../../../components/a2ui';
16
- import { LoopA2uiComponent } from '../../core/a2uiComponents';
15
+ import { catalogWithOwn } from '../../../components/a2ui/index.js';
16
+ import { LoopA2uiComponent } from '../../core/a2uiComponents.js';
17
17
  /** The renderers the workspace's application contributes, in contribution order. */
18
18
  export function useOwnComponents() {
19
19
  const reactor = useOptionalReactorPlatform();
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * @module apps/plugins/agent-a2a
15
15
  */
16
- import { defineAgentCapacityPlugin } from '../agent-capacity';
16
+ import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
17
17
  export const AGENT_A2A_PLUGIN_NAME = '@datalayer/loop-plugin-agent-a2a';
18
18
  export const AgentA2APlugin = defineAgentCapacityPlugin({
19
19
  key: 'a2a',
@@ -11,7 +11,7 @@
11
11
  *
12
12
  * @module apps/plugins/agent-a2ui
13
13
  */
14
- import { defineAgentCapacityPlugin } from '../agent-capacity';
14
+ import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
15
15
  export const AGENT_A2UI_PLUGIN_NAME = '@datalayer/loop-plugin-agent-a2ui';
16
16
  export const AgentA2uiPlugin = defineAgentCapacityPlugin({
17
17
  key: 'a2ui',
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * @module apps/plugins/agent-a2ui-jupyter-output
16
16
  */
17
- import { defineAgentCapacityPlugin } from '../agent-capacity';
17
+ import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
18
18
  export const AGENT_A2UI_JUPYTER_OUTPUT_PLUGIN_NAME = '@datalayer/loop-plugin-agent-a2ui-jupyter-output';
19
19
  export const AgentA2uiJupyterOutputPlugin = defineAgentCapacityPlugin({
20
20
  key: 'a2ui-jupyter-output',
@@ -21,7 +21,7 @@
21
21
  * @module apps/plugins/agent-capacity
22
22
  */
23
23
  import { contribution, definePlugin, } from '@datalayer/reactor';
24
- import { LoopAgentBlueprint, LoopChatSuggestion, } from '../../core';
24
+ import { LoopAgentBlueprint, LoopChatSuggestion, } from '../../core/index.js';
25
25
  export function defineAgentCapacityPlugin(options) {
26
26
  const { key, displayName, description, specId, octicon, emoji, codemode, createPayload, suggestions, instructions, model, modeEffect, name, requiredBackendPlugins, } = options;
27
27
  return definePlugin({
@@ -13,7 +13,7 @@
13
13
  *
14
14
  * @module apps/plugins/agent-checkpoints
15
15
  */
16
- import { defineAgentCapacityPlugin } from '../agent-capacity';
16
+ import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
17
17
  export const AGENT_CHECKPOINTS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-checkpoints';
18
18
  export const AgentCheckpointsPlugin = defineAgentCapacityPlugin({
19
19
  key: 'checkpoints',