@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.
- package/lib/Agent.js +2 -2
- package/lib/AgentDocument.js +6 -6
- package/lib/AgentNode.js +4 -4
- package/lib/AgentNotebook.js +3 -3
- package/lib/App.js +2 -2
- package/lib/AppExamples2.js +3 -4
- package/lib/agent-document-main.js +1 -1
- package/lib/agent-main.js +1 -1
- package/lib/agent-node-main.js +1 -1
- package/lib/agent-notebook-main.js +1 -1
- package/lib/agents/AgentDetails.js +5 -5
- package/lib/agents/AgentRuntimeChat.js +3 -3
- package/lib/api/index.js +5 -5
- package/lib/api/scheduler/index.js +1 -1
- package/lib/apps/apps/AppBrowserSandbox.js +3 -3
- package/lib/apps/apps/AppComposer.js +6 -6
- package/lib/apps/apps/AppFeedback.js +3 -3
- package/lib/apps/apps/AppKept.js +3 -3
- package/lib/apps/apps/AppRenderer.js +26 -26
- package/lib/apps/apps/AppRuntimePlugins.js +3 -3
- package/lib/apps/apps/agent.js +2 -2
- package/lib/apps/apps/appspec.js +5 -5
- package/lib/apps/apps/browserSandbox.js +1 -1
- package/lib/apps/apps/checks.js +24 -24
- package/lib/apps/apps/customComponents.js +1 -1
- package/lib/apps/apps/index.js +18 -18
- package/lib/apps/apps/language.js +1 -1
- package/lib/apps/apps/records.js +3 -3
- package/lib/apps/apps/rules.js +1 -1
- package/lib/apps/apps/sceneChecks.js +6 -6
- package/lib/apps/apps/sceneShape.js +2 -2
- package/lib/apps/apps/sceneYaml.js +2 -2
- package/lib/apps/apps/yaml.js +1 -1
- package/lib/apps/core/index.js +7 -7
- package/lib/apps/embed/AppEmbed.d.ts +1 -1
- package/lib/apps/embed/AppEmbed.js +11 -11
- package/lib/apps/embed/LoopEmbed.js +4 -4
- package/lib/apps/embed/datalayer-app.js +1 -1
- package/lib/apps/embed/element.js +7 -7
- package/lib/apps/embed/embedConfig.js +2 -2
- package/lib/apps/embed/embedSession.js +2 -2
- package/lib/apps/embed/hostBridge.js +3 -3
- package/lib/apps/embed/visitorApp.js +3 -3
- package/lib/apps/extensions.js +4 -4
- package/lib/apps/index.js +70 -70
- package/lib/apps/plugins/a2a-sidebar/A2ASidebar.js +6 -6
- package/lib/apps/plugins/a2a-sidebar/index.js +3 -3
- package/lib/apps/plugins/a2ui/A2uiView.js +2 -2
- package/lib/apps/plugins/a2ui/index.js +3 -3
- package/lib/apps/plugins/a2ui-scene/index.js +1 -1
- package/lib/apps/plugins/a2ui-surface/AnswerShows.js +3 -3
- package/lib/apps/plugins/a2ui-surface/InlineSurface.js +1 -1
- package/lib/apps/plugins/a2ui-surface/SurfaceToolResult.js +4 -4
- package/lib/apps/plugins/a2ui-surface/index.js +7 -7
- package/lib/apps/plugins/a2ui-surface/ownComponents.js +2 -2
- package/lib/apps/plugins/agent-a2a/index.js +1 -1
- package/lib/apps/plugins/agent-a2ui/index.js +1 -1
- package/lib/apps/plugins/agent-a2ui-jupyter-output/index.js +1 -1
- package/lib/apps/plugins/agent-capacity/index.js +1 -1
- package/lib/apps/plugins/agent-checkpoints/index.js +1 -1
- package/lib/apps/plugins/agent-code-sandbox/index.js +1 -1
- package/lib/apps/plugins/agent-code-sandboxes/index.js +1 -1
- package/lib/apps/plugins/agent-codemode/index.js +1 -1
- package/lib/apps/plugins/agent-compaction/index.js +1 -1
- package/lib/apps/plugins/agent-evals/index.js +1 -1
- package/lib/apps/plugins/agent-guardrails/index.js +1 -1
- package/lib/apps/plugins/agent-hooks/index.js +1 -1
- package/lib/apps/plugins/agent-inference/index.js +1 -1
- package/lib/apps/plugins/agent-mcp/index.js +1 -1
- package/lib/apps/plugins/agent-memory/index.js +1 -1
- package/lib/apps/plugins/agent-monitoring/index.js +1 -1
- package/lib/apps/plugins/agent-notifications/index.js +1 -1
- package/lib/apps/plugins/agent-otel/index.js +1 -1
- package/lib/apps/plugins/agent-outputs/index.js +1 -1
- package/lib/apps/plugins/agent-parameters/index.js +1 -1
- package/lib/apps/plugins/agent-skills/index.js +1 -1
- package/lib/apps/plugins/agent-subagents/index.js +1 -1
- package/lib/apps/plugins/agent-tool-approvals/index.js +1 -1
- package/lib/apps/plugins/agent-triggers/index.js +1 -1
- package/lib/apps/plugins/agents/AgentSummaryPanel.js +5 -5
- package/lib/apps/plugins/agents/AnonymousKeyBadge.js +2 -2
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +7 -7
- package/lib/apps/plugins/agents/DatalayerAgentMount.js +1 -1
- package/lib/apps/plugins/agents/SandboxSelector.js +3 -3
- package/lib/apps/plugins/agents/SandboxStatusBridge.js +2 -2
- package/lib/apps/plugins/agents/SandboxView.js +1 -1
- package/lib/apps/plugins/agents/TeamMemberPicker.js +2 -2
- package/lib/apps/plugins/agents/index.js +8 -8
- package/lib/apps/plugins/agents/plugin.js +10 -10
- package/lib/apps/plugins/agents/specSubagents.js +1 -1
- package/lib/apps/plugins/agents/switchable.js +3 -3
- package/lib/apps/plugins/agents/team.js +2 -2
- package/lib/apps/plugins/agents/useSandboxService.js +1 -1
- package/lib/apps/plugins/agents/useTeamSelection.js +1 -1
- package/lib/apps/plugins/agentspecs/AgentspecPicker.js +1 -1
- package/lib/apps/plugins/agentspecs/index.js +2 -2
- package/lib/apps/plugins/app-activity/AppActivity.js +2 -2
- package/lib/apps/plugins/app-activity/index.js +3 -3
- package/lib/apps/plugins/app-components/index.js +4 -4
- package/lib/apps/plugins/app-computer/AppComputer.js +3 -3
- package/lib/apps/plugins/app-computer/index.js +4 -4
- package/lib/apps/plugins/app-elements/AppElements.js +2 -2
- package/lib/apps/plugins/app-elements/QuestionView.js +1 -1
- package/lib/apps/plugins/app-elements/index.js +6 -6
- package/lib/apps/plugins/app-page/AppPage.js +7 -7
- package/lib/apps/plugins/app-page/appPageModel.js +1 -1
- package/lib/apps/plugins/app-page/index.js +6 -6
- package/lib/apps/plugins/app-rules/AppRulesCard.js +5 -5
- package/lib/apps/plugins/app-rules/index.js +4 -4
- package/lib/apps/plugins/assistant/index.js +12 -12
- package/lib/apps/plugins/assistant-characters/index.d.ts +1 -1
- package/lib/apps/plugins/assistant-characters/index.js +3 -3
- package/lib/apps/plugins/canvas-blocks/index.js +2 -2
- package/lib/apps/plugins/canvas-parts/index.js +10 -10
- package/lib/apps/plugins/chat/ChatView.js +43 -43
- package/lib/apps/plugins/chat/SessionActionsMenu.js +2 -2
- package/lib/apps/plugins/chat/index.js +4 -4
- package/lib/apps/plugins/chat/sessionActions.js +2 -2
- package/lib/apps/plugins/chat-extras/index.js +1 -1
- package/lib/apps/plugins/chat-header/HeaderView.js +1 -1
- package/lib/apps/plugins/chat-header/index.js +2 -2
- package/lib/apps/plugins/chat-view/index.js +2 -2
- package/lib/apps/plugins/checkpoints-sidebar/CheckpointsSidebar.js +2 -2
- package/lib/apps/plugins/checkpoints-sidebar/index.js +3 -3
- package/lib/apps/plugins/commands/index.js +1 -1
- package/lib/apps/plugins/decks/DecksMenu.js +2 -2
- package/lib/apps/plugins/decks/index.js +8 -8
- package/lib/apps/plugins/document/DocumentView.js +5 -5
- package/lib/apps/plugins/document/index.js +4 -4
- package/lib/apps/plugins/document/openingDocument.js +1 -1
- package/lib/apps/plugins/document-toolbar/SandboxStatusItem.js +2 -2
- package/lib/apps/plugins/document-toolbar/index.js +3 -3
- package/lib/apps/plugins/document-toolbar/plugin.js +3 -3
- package/lib/apps/plugins/document-view/index.js +1 -1
- package/lib/apps/plugins/graph/GraphToggle.js +1 -1
- package/lib/apps/plugins/graph/index.js +5 -5
- package/lib/apps/plugins/input-prompt/ComposerView.js +2 -2
- package/lib/apps/plugins/input-prompt/index.js +2 -2
- package/lib/apps/plugins/models/index.js +1 -1
- package/lib/apps/plugins/notebook/NotebookView.js +5 -5
- package/lib/apps/plugins/notebook/index.js +4 -4
- package/lib/apps/plugins/notebook-toolbar/index.js +3 -3
- package/lib/apps/plugins/notebook-toolbar/plugin.js +3 -3
- package/lib/apps/plugins/notebook-view/index.js +1 -1
- package/lib/apps/plugins/page-layout/SplitLayout.js +1 -1
- package/lib/apps/plugins/page-layout/TurnPanel.js +5 -5
- package/lib/apps/plugins/page-layout/index.js +5 -5
- package/lib/apps/plugins/pap-example/index.js +1 -1
- package/lib/apps/plugins/pap-sign-in/PapSignInCard.js +1 -1
- package/lib/apps/plugins/pap-sign-in/index.js +5 -5
- package/lib/apps/plugins/pap-sign-in/signIn.js +1 -1
- package/lib/apps/plugins/plugins-panel/index.js +1 -1
- package/lib/apps/plugins/prompt/index.js +3 -3
- package/lib/apps/plugins/shell/editorChoice.js +1 -1
- package/lib/apps/plugins/shell/index.js +4 -4
- package/lib/apps/plugins/shell/useEditorPreviews.js +1 -1
- package/lib/apps/plugins/shield-displays/DiffCard.js +1 -1
- package/lib/apps/plugins/shield-displays/TerminalCard.js +1 -1
- package/lib/apps/plugins/shield-displays/index.js +5 -5
- package/lib/apps/plugins/subagent-activity/SubagentPulse.js +3 -3
- package/lib/apps/plugins/subagent-activity/index.js +4 -4
- package/lib/apps/plugins/view-switch/index.js +3 -3
- package/lib/apps/plugins/window-frame/WindowFrame.js +1 -1
- package/lib/apps/plugins/window-frame/index.js +5 -5
- package/lib/apps/presets.js +21 -21
- package/lib/apps/shell/LoopWorkspace.js +4 -4
- package/lib/apps/shell/SidebarRail.js +1 -1
- package/lib/apps/shell/ViewSwitcher.js +1 -1
- package/lib/apps/shell/WorkspaceFullScreenAction.js +2 -2
- package/lib/apps/shell/index.js +7 -7
- package/lib/chat/Chat.js +7 -7
- package/lib/chat/ChatFloating.d.ts +1 -1
- package/lib/chat/ChatFloating.js +23 -23
- package/lib/chat/ChatInline.js +4 -4
- package/lib/chat/ChatLanguage.js +2 -2
- package/lib/chat/ChatPopupStandalone.js +4 -4
- package/lib/chat/ChatSidebar.js +2 -2
- package/lib/chat/ChatStandalone.js +3 -3
- package/lib/chat/assistant/AgentDetailsDialog.js +1 -1
- package/lib/chat/assistant/AssistantStage.d.ts +1 -1
- package/lib/chat/assistant/AssistantStage.js +16 -16
- package/lib/chat/assistant/Avatar3D.d.ts +1 -1
- package/lib/chat/assistant/Avatar3D.js +1 -1
- package/lib/chat/assistant/BalloonParts.js +8 -8
- package/lib/chat/assistant/BalloonVisual.js +1 -1
- package/lib/chat/assistant/ConversationBalloon.js +1 -1
- package/lib/chat/assistant/DecisionAsk.js +1 -1
- package/lib/chat/assistant/SandboxDetailsDialog.js +1 -1
- package/lib/chat/assistant/SpeechBalloon.js +5 -5
- package/lib/chat/assistant/SpriteCharacter.js +2 -2
- package/lib/chat/assistant/{avatar3d.d.ts → avatar3dModel.d.ts} +1 -1
- package/lib/chat/assistant/formats/acf.js +3 -3
- package/lib/chat/assistant/formats/acs.js +3 -3
- package/lib/chat/assistant/formats/agentCompression.js +1 -1
- package/lib/chat/assistant/formats/blobs.js +1 -1
- package/lib/chat/assistant/formats/clippy.js +3 -3
- package/lib/chat/assistant/formats/files.js +4 -4
- package/lib/chat/assistant/formats/index.js +7 -7
- package/lib/chat/assistant/formats/objectLiteral.js +1 -1
- package/lib/chat/assistant/toolLine.js +2 -2
- package/lib/chat/base/ChatBase.js +45 -45
- package/lib/chat/base/fullContextMessages.js +1 -1
- package/lib/chat/base/uiOps.js +3 -3
- package/lib/chat/display/EmptyState.js +3 -3
- package/lib/chat/document/EphemeralDocument.js +4 -4
- package/lib/chat/header/ChatHeaderBase.js +2 -2
- package/lib/chat/header/ChatViewModeToggle.js +1 -1
- package/lib/chat/index.js +24 -24
- package/lib/chat/indicators/McpStatusIndicator.js +1 -1
- package/lib/chat/indicators/SandboxStatusIndicator.js +1 -1
- package/lib/chat/indicators/index.js +3 -3
- package/lib/chat/marks/SpecMark.js +1 -1
- package/lib/chat/marks/index.js +3 -3
- package/lib/chat/marks/toolMarks.js +4 -4
- package/lib/chat/messages/ChatMarkdown.js +3 -3
- package/lib/chat/messages/ChatMessageList.js +13 -13
- package/lib/chat/messages/ChatMessages.js +2 -2
- package/lib/chat/messages/FormSubmissionMessage.js +1 -1
- package/lib/chat/messages/TurnFooter.js +2 -2
- package/lib/chat/notebook/EphemeralNotebook.js +4 -4
- package/lib/chat/parts/MessagePart.js +4 -4
- package/lib/chat/parts/ReasoningPart.js +2 -2
- package/lib/chat/parts/TextPart.js +2 -2
- package/lib/chat/parts/ToolPart.js +1 -1
- package/lib/chat/parts/index.js +5 -5
- package/lib/chat/presence/Presence.js +1 -1
- package/lib/chat/presence/presenceStatus.js +1 -1
- package/lib/chat/prompt/InputPrompt.js +9 -9
- package/lib/chat/prompt/InputPromptBase.js +6 -6
- package/lib/chat/prompt/InputPromptLexical.js +4 -4
- package/lib/chat/prompt/footer/BelowPromptFooter.js +1 -1
- package/lib/chat/prompt/footer/InPromptFooter.js +2 -2
- package/lib/chat/prompt/footer/index.js +2 -2
- package/lib/chat/prompt/header/BelowPromptHeader.js +1 -1
- package/lib/chat/prompt/header/InPromptHeader.js +1 -1
- package/lib/chat/prompt/header/index.js +2 -2
- package/lib/chat/prompt/index.js +10 -10
- package/lib/chat/prompt/menus/SkillsMenu.js +1 -1
- package/lib/chat/prompt/menus/SuggestionsMenu.js +1 -1
- package/lib/chat/prompt/menus/ToolsMenu.js +1 -1
- package/lib/chat/prompt/menus/index.js +6 -6
- package/lib/chat/prompt/plugins/AgentMentionPlugin.js +1 -1
- package/lib/chat/prompt/plugins/MentionNode.js +1 -1
- package/lib/chat/prompt/stack.js +1 -1
- package/lib/chat/tools/SubagentActivity.js +1 -1
- package/lib/chat/tools/ToolApprovalBanner.js +1 -1
- package/lib/chat/tools/ToolApprovalDialog.js +1 -1
- package/lib/chat/tools/ToolCallDisplay.js +2 -2
- package/lib/chat/tools/index.js +5 -5
- package/lib/chat/usage/ContextPie.js +1 -1
- package/lib/chat/words.js +1 -1
- package/lib/client/AgentRuntimesClient.js +2 -2
- package/lib/client/AgentsMixin.js +8 -8
- package/lib/client/index.js +3 -3
- package/lib/client/mixins/RuntimesMixin.js +6 -6
- package/lib/client/mixins/SpacerMixin.js +11 -11
- package/lib/client/utils/spacerUtils.js +2 -2
- package/lib/collaboration/DatalayerCollaborationProvider.js +1 -1
- package/lib/collaboration/index.js +2 -2
- package/lib/components/a2ui/custom/index.js +6 -6
- package/lib/components/a2ui/datalayer/Chart.js +2 -2
- package/lib/components/a2ui/datalayer/Chat.js +5 -5
- package/lib/components/a2ui/datalayer/Download.js +2 -2
- package/lib/components/a2ui/datalayer/Evidence.js +2 -2
- package/lib/components/a2ui/datalayer/FileUpload.js +3 -3
- package/lib/components/a2ui/datalayer/Form.js +3 -3
- package/lib/components/a2ui/datalayer/SchemaForm.js +1 -1
- package/lib/components/a2ui/datalayer/Table.js +2 -2
- package/lib/components/a2ui/datalayer/implementation.js +1 -1
- package/lib/components/a2ui/datalayer/index.js +17 -17
- package/lib/components/a2ui/datalayer/schema.js +1 -1
- package/lib/components/a2ui/index.js +7 -7
- package/lib/components/a2ui/visibleWhen.js +2 -2
- package/lib/components/agents/AgentSummary.js +1 -1
- package/lib/components/agents/index.js +1 -1
- package/lib/components/cards/NotificationEventCard.js +2 -2
- package/lib/components/cards/OutputCard.js +2 -2
- package/lib/components/cards/index.js +3 -3
- package/lib/components/code-sandboxes/CodeSandboxCellVariablesDialog.js +3 -3
- package/lib/components/code-sandboxes/CodeSandboxLauncher.js +9 -9
- package/lib/components/code-sandboxes/CodeSandboxPicker.js +9 -9
- package/lib/components/code-sandboxes/CodeSandboxPickerCell.js +7 -7
- package/lib/components/code-sandboxes/CodeSandboxUtils.js +3 -3
- package/lib/components/code-sandboxes/CodeSandboxVariables.js +1 -1
- package/lib/components/code-sandboxes/NewCodeSandboxControls.js +3 -3
- package/lib/components/code-sandboxes/index.js +14 -14
- package/lib/components/context/SpaceSelect.js +1 -1
- package/lib/components/flashes/FlashDisclaimer.js +1 -1
- package/lib/components/icons/index.js +1 -1
- package/lib/components/index.js +6 -6
- package/lib/components/inspector/AgentInspector.js +2 -2
- package/lib/components/inspector/AgentInspectorDialog.js +1 -1
- package/lib/components/inspector/a2aSpans.js +1 -1
- package/lib/components/inspector/chatSpans.js +2 -2
- package/lib/components/inspector/classify.js +1 -1
- package/lib/components/inspector/index.js +6 -6
- package/lib/components/nbgrader/index.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/scheduler/ScheduleMenu.js +1 -1
- package/lib/components/scheduler/index.js +1 -1
- package/lib/components/snapshots/SandboxSnapshotMenu.js +2 -2
- package/lib/components/snapshots/index.js +1 -1
- package/lib/components/teams/A2ATeamGraph.d.ts +1 -1
- package/lib/components/teams/A2ATeamGraph.js +8 -8
- package/lib/components/teams/AnswerSurfaces.js +1 -1
- package/lib/components/teams/AnswerSurfacesView.js +4 -4
- package/lib/components/teams/NotebookPreview.js +2 -2
- package/lib/components/teams/NotebookPreviewView.js +1 -1
- package/lib/components/teams/SceneTranscript.d.ts +1 -1
- package/lib/components/teams/SceneTranscript.js +2 -2
- package/lib/components/teams/SceneView.d.ts +1 -1
- package/lib/components/teams/SceneView.js +1 -1
- package/lib/components/teams/TeamNotebook.js +1 -1
- package/lib/components/teams/TeamNotebookView.js +3 -3
- package/lib/components/teams/index.d.ts +1 -1
- package/lib/components/teams/index.js +13 -13
- package/lib/components/teams/sceneStage.js +2 -2
- package/lib/components/teams/{sceneTranscript.d.ts → sceneTranscriptRules.d.ts} +1 -1
- package/lib/components/teams/{sceneTranscript.js → sceneTranscriptRules.js} +1 -1
- package/lib/components/teams/teamConnections.js +3 -3
- package/lib/components/teams/useA2ATeam.js +6 -6
- package/lib/components/teams/usePeerSandbox.js +1 -1
- package/lib/components/tokens/index.js +1 -1
- package/lib/config/AgentConfiguration.js +2 -2
- package/lib/config/index.js +2 -2
- package/lib/context/CostUsageChart.js +4 -4
- package/lib/context/MessageHistory.js +1 -1
- package/lib/context/TokenUsageChart.js +4 -4
- package/lib/examples/A2UiAgentExample.js +9 -9
- package/lib/examples/A2UiComponentsGalleryExample.js +4 -4
- package/lib/examples/A2UiContactCardExample.js +4 -4
- package/lib/examples/A2UiJupyterOutputExample.js +11 -11
- package/lib/examples/A2UiRestaurantExample.js +4 -4
- package/lib/examples/A2UiViewerExample.js +6 -6
- package/lib/examples/AgUiAgenticExample.js +4 -4
- package/lib/examples/AgUiBackendToolRenderingExample.js +6 -6
- package/lib/examples/AgUiHaikuGenUiExample.js +6 -6
- package/lib/examples/AgUiHumanInTheLoopExample.js +5 -5
- package/lib/examples/AgUiSharedStateExample.js +4 -4
- package/lib/examples/AgUiToolsBasedGenUiExample.js +4 -4
- package/lib/examples/AgentA2AExample.js +7 -7
- package/lib/examples/AgentA2ATeamExample.js +10 -10
- package/lib/examples/AgentCheckpointsExample.js +14 -14
- package/lib/examples/AgentCodeSandboxExample.js +6 -6
- package/lib/examples/AgentCodeSandboxesExample.js +5 -5
- package/lib/examples/AgentCodemodeExample.js +12 -12
- package/lib/examples/AgentCompactionExample.js +8 -8
- package/lib/examples/AgentDecideExample.js +6 -6
- package/lib/examples/AgentEvalsExample.js +11 -11
- package/lib/examples/AgentGuardrailsExample.js +17 -17
- package/lib/examples/AgentHooksExample.js +5 -5
- package/lib/examples/AgentInferenceProviderExample.js +6 -6
- package/lib/examples/AgentMCPExample.js +14 -14
- package/lib/examples/AgentMemoryExample.js +11 -11
- package/lib/examples/AgentMonitoringExample.js +19 -19
- package/lib/examples/AgentNotificationsExample.js +9 -9
- package/lib/examples/AgentOtelExample.js +6 -6
- package/lib/examples/AgentOutputsExample.js +8 -8
- package/lib/examples/AgentParametersExample.js +6 -6
- package/lib/examples/AgentSkillsExample.js +9 -9
- package/lib/examples/AgentSubagentsExample.js +8 -8
- package/lib/examples/AgentToolApprovalsExample.js +10 -10
- package/lib/examples/AgentTriggersExample.js +14 -14
- package/lib/examples/AgentspecsExample.js +11 -11
- package/lib/examples/AvatarExample.js +8 -8
- package/lib/examples/AvatarGalleryExample.js +8 -8
- package/lib/examples/CellExample.js +2 -2
- package/lib/examples/ChatCustomExample.js +4 -4
- package/lib/examples/ChatExample.js +8 -8
- package/lib/examples/ChatStandaloneExample.js +2 -2
- package/lib/examples/CopilotKitLexicalExample.js +4 -4
- package/lib/examples/CopilotKitNotebookExample.js +4 -4
- package/lib/examples/DecksAgent.js +4 -4
- package/lib/examples/DocumentPageAgent.js +2 -2
- package/lib/examples/Lexical2Example.js +9 -9
- package/lib/examples/LexicalAgentExample.js +7 -7
- package/lib/examples/LexicalAgentSidebarExample.js +8 -8
- package/lib/examples/LoopAppComputerExample.js +4 -4
- package/lib/examples/LoopShellExample.js +6 -6
- package/lib/examples/LoopStrategyExample.js +6 -6
- package/lib/examples/LoopWorkspaceEmbed.js +1 -1
- package/lib/examples/LoopWorkspaceExample.js +11 -11
- package/lib/examples/NotebookAgentExample.js +5 -5
- package/lib/examples/NotebookAgentSidebarExample.js +5 -5
- package/lib/examples/NotebookCollaborationExample.js +6 -6
- package/lib/examples/NotebookExample.js +2 -2
- package/lib/examples/NotebookPageAgent.js +2 -2
- package/lib/examples/PapAccountTokensExample.js +4 -4
- package/lib/examples/PapAgentIdentityExample.js +4 -4
- package/lib/examples/PapAuthorizationBoundaryExample.js +4 -4
- package/lib/examples/PapCompanyDiscoveryExample.js +4 -4
- package/lib/examples/PapConversationControlExample.js +4 -4
- package/lib/examples/PapConversationStreamingExample.js +4 -4
- package/lib/examples/PapDpopProofExample.js +4 -4
- package/lib/examples/PapGuidedJourneyExample.js +4 -4
- package/lib/examples/PapMediatedSignInExample.js +4 -4
- package/lib/examples/PapOperationsExample.js +4 -4
- package/lib/examples/PapSessionLifecycleExample.js +4 -4
- package/lib/examples/PapSignInDisplayExample.js +4 -4
- package/lib/examples/PapTwoCompaniesExample.js +4 -4
- package/lib/examples/PapUserWithACompanyExample.js +4 -4
- package/lib/examples/ProtocolSignedRequestsExample.js +2 -2
- package/lib/examples/ProtocolUcpCheckoutExample.js +2 -2
- package/lib/examples/ScenesExample.js +8 -8
- package/lib/examples/ShieldHarnessExample.js +5 -5
- package/lib/examples/ShieldPolicyExample.js +2 -2
- package/lib/examples/VoiceChatExample.js +4 -4
- package/lib/examples/components/AuthRequiredView.js +1 -1
- package/lib/examples/components/ExampleWrapper.js +3 -3
- package/lib/examples/components/Header.js +2 -2
- package/lib/examples/components/LexicalEditor.js +1 -1
- package/lib/examples/components/MainContent.js +1 -1
- package/lib/examples/components/haiku/HaikuDisplay.js +1 -1
- package/lib/examples/components/haiku/index.js +2 -2
- package/lib/examples/components/index.js +13 -13
- package/lib/examples/components/weather/index.js +1 -1
- package/lib/examples/example-selector.js +78 -78
- package/lib/examples/hooks/useExampleAgentProtocol.js +2 -2
- package/lib/examples/hooks/useExampleAgentRuntime.js +4 -4
- package/lib/examples/hooks/useExampleAgentRuntimes.js +4 -4
- package/lib/examples/hooks/useExampleJupyterAgent.js +8 -8
- package/lib/examples/hooks/useToolRenderers.js +1 -1
- package/lib/examples/index.js +66 -66
- package/lib/examples/lexical/editorConfig.js +1 -1
- package/lib/examples/main.js +21 -21
- package/lib/examples/pap/PapAccountTokensView.js +1 -1
- package/lib/examples/pap/PapAgentIdentityView.js +2 -2
- package/lib/examples/pap/PapAuthorizationBoundaryView.js +1 -1
- package/lib/examples/pap/PapCompanyDiscoveryView.js +2 -2
- package/lib/examples/pap/PapConversationControlView.js +1 -1
- package/lib/examples/pap/PapConversationStreamingView.js +1 -1
- package/lib/examples/pap/PapDpopProofView.js +1 -1
- package/lib/examples/pap/PapGuidedJourneyView.js +2 -2
- package/lib/examples/pap/PapMediatedSignInView.js +1 -1
- package/lib/examples/pap/PapOperationsView.js +1 -1
- package/lib/examples/pap/PapSessionLifecycleView.js +1 -1
- package/lib/examples/pap/PapSignInDisplayView.js +2 -2
- package/lib/examples/pap/PapTraceView.js +1 -1
- package/lib/examples/pap/PapTwoCompaniesView.js +1 -1
- package/lib/examples/pap/PapUserWithACompanyView.js +1 -1
- package/lib/examples/pap/papSignInCases.js +1 -1
- package/lib/examples/protocols/signedRequestsDemo.js +1 -1
- package/lib/examples/protocols/ucpCheckoutDemo.js +3 -3
- package/lib/examples/scenes/A2UiComponentsGalleryScene.js +4 -4
- package/lib/examples/scenes/A2UiContactCardScene.js +3 -3
- package/lib/examples/scenes/A2UiRestaurantScene.js +5 -5
- package/lib/examples/scenes/A2UiViewerScene.js +3 -3
- package/lib/examples/utils/AvatarGalleryGrid.d.ts +1 -1
- package/lib/examples/utils/AvatarGalleryGrid.js +8 -8
- package/lib/examples/utils/a2ui.js +1 -1
- package/lib/examples/utils/a2uiMarkdownProvider.js +1 -1
- package/lib/examples/utils/avatarGallery.js +2 -2
- package/lib/examples/utils/clippyJsCharacters.js +1 -1
- package/lib/examples/utils/examplesStore.js +1 -1
- package/lib/examples/utils/notebookToolbarItems.js +1 -1
- package/lib/examples/utils/owlCharacterPlugin.js +1 -1
- package/lib/examples/utils/teardownAgents.js +1 -1
- package/lib/examples/utils/testSpriteCharacter.js +1 -1
- package/lib/examples/utils/themedProvider.js +1 -1
- package/lib/examples/utils/useExampleAgentRuntimesUrl.js +3 -3
- package/lib/examples2/DatalayerNotebookExample.js +3 -3
- package/lib/examples2/NativeNavigationExample.js +1 -1
- package/lib/examples2/NotebookMutationsKernel.js +2 -2
- package/lib/examples2/NotebookMutationsServiceManager.js +2 -2
- package/lib/examples2/ReactRouterExample.js +1 -1
- package/lib/examples2/example-selector.js +7 -7
- package/lib/examples2/index.js +2 -2
- package/lib/examples2/main.js +5 -5
- package/lib/hooks/index.js +26 -26
- package/lib/hooks/useAgUi.js +1 -1
- package/lib/hooks/useAgentRuntimes.js +9 -9
- package/lib/hooks/useAgentsCatalog.js +1 -1
- package/lib/hooks/useAgentsService.js +1 -1
- package/lib/hooks/useBrowserAgent.js +1 -1
- package/lib/hooks/useBrowserInference.js +2 -2
- package/lib/hooks/useCellOutputshot.js +1 -1
- package/lib/hooks/useChat.js +6 -6
- package/lib/hooks/useCheckpoints.js +10 -10
- package/lib/hooks/useConfig.js +1 -1
- package/lib/hooks/useContextSnapshot.js +1 -1
- package/lib/hooks/useNotifications.js +1 -1
- package/lib/hooks/useProgressTask.js +1 -1
- package/lib/hooks/useSandbox.js +1 -1
- package/lib/hooks/useSkills.js +1 -1
- package/lib/hooks/useToolApprovals.js +2 -2
- package/lib/hooks/useTools.js +1 -1
- package/lib/identity/AgentIdentity.js +3 -3
- package/lib/identity/IdentityConnect.js +2 -2
- package/lib/identity/OAuthCallback.js +1 -1
- package/lib/identity/identityStore.js +2 -2
- package/lib/identity/index.js +8 -8
- package/lib/identity/useIdentity.js +1 -1
- package/lib/index.js +11 -11
- package/lib/inference/DatalayerInferenceProvider.js +2 -2
- package/lib/inference/SelfHostedInferenceProvider.js +2 -2
- package/lib/inference/index.js +3 -3
- package/lib/jupyter/exec/Snippets.js +1 -1
- package/lib/jupyter/exec/index.js +2 -2
- package/lib/jupyter/index.js +3 -3
- package/lib/jupyter/useResumeServerExecutions.js +1 -1
- package/lib/lexical/ChatInlinePlugin.js +1 -1
- package/lib/lexical/index.js +2 -2
- package/lib/loop-example-main.js +2 -2
- package/lib/loop-main.js +9 -9
- package/lib/main.js +1 -1
- package/lib/mcp/index.js +1 -1
- package/lib/middleware/index.js +1 -1
- package/lib/mocks/models/CourseMock.js +1 -1
- package/lib/models/CodeSandboxSnapshotDTO.js +1 -1
- package/lib/models/ItemDTO.js +1 -1
- package/lib/models/LexicalDTO.js +2 -2
- package/lib/models/NotebookDTO.js +2 -2
- package/lib/models/Page.js +1 -1
- package/lib/models/RuntimeDTO.js +1 -1
- package/lib/models/SpaceDTO.js +7 -7
- package/lib/models/index.js +32 -32
- package/lib/portable/activity.js +1 -1
- package/lib/portable/approvalCard.js +1 -1
- package/lib/portable/attention.js +1 -1
- package/lib/portable/conversation.js +4 -4
- package/lib/portable/displays.js +1 -1
- package/lib/portable/fixtures.js +2 -2
- package/lib/portable/hosts/agentClient.js +4 -4
- package/lib/portable/hosts/client.js +1 -1
- package/lib/portable/hosts/deadLetters.js +3 -3
- package/lib/portable/hosts/deliveries.js +1 -1
- package/lib/portable/hosts/index.js +21 -21
- package/lib/portable/hosts/postgresQueue.js +1 -1
- package/lib/portable/hosts/quotas.js +1 -1
- package/lib/portable/hosts/schema.js +1 -1
- package/lib/portable/index.js +24 -24
- package/lib/portable/localApprovals.js +1 -1
- package/lib/portable/runMeasures.js +2 -2
- package/lib/portable/sessionList.js +1 -1
- package/lib/portable/sessions.js +4 -4
- package/lib/portable/thread.js +2 -2
- package/lib/portable/views.js +1 -1
- package/lib/protocols/A2AAdapter.js +3 -3
- package/lib/protocols/ACPAdapter.js +2 -2
- package/lib/protocols/AGUIAdapter.js +4 -4
- package/lib/protocols/BrowserAgentAdapter.js +3 -3
- package/lib/protocols/VercelAIAdapter.js +2 -2
- package/lib/protocols/a2a/index.js +1 -1
- package/lib/protocols/agentProtocols.js +8 -8
- package/lib/protocols/agentic-commerce/index.js +3 -3
- package/lib/protocols/commerce.js +1 -1
- package/lib/protocols/index.js +6 -6
- package/lib/protocols/mcp/index.js +2 -2
- package/lib/protocols/pact/index.js +1 -1
- package/lib/protocols/pap/index.js +1 -1
- package/lib/protocols/ucp/index.js +3 -3
- package/lib/protocols/ucp/merchant.js +1 -1
- package/lib/protocols/web-bot-auth/index.js +1 -1
- package/lib/protocols/web-bot-auth/tap.js +1 -1
- package/lib/runtimes/actions.js +3 -3
- package/lib/runtimes/browser/agent.js +2 -2
- package/lib/runtimes/browser/frontendTools.js +1 -1
- package/lib/runtimes/browser/index.js +6 -6
- package/lib/runtimes/browser/subagents.js +2 -2
- package/lib/runtimes/index.js +8 -8
- package/lib/runtimes/variants.js +1 -1
- package/lib/services/DatalayerServiceManager.js +1 -1
- package/lib/specs/agents/agents.js +4 -4
- package/lib/specs/agents/index.js +1 -1
- package/lib/specs/cogs.js +4 -4
- package/lib/specs/index.js +32 -32
- package/lib/specs/teams/index.js +1 -1
- package/lib/state/index.js +1 -1
- package/lib/state/substates/RuntimesState.js +1 -1
- package/lib/state/substates/index.js +7 -7
- package/lib/stores/agentRuntimeStore.js +3 -3
- package/lib/stores/index.js +3 -3
- package/lib/stories/Button.stories.js +1 -1
- package/lib/stories/Header.js +1 -1
- package/lib/stories/Header.stories.js +1 -1
- package/lib/stories/Page.js +1 -1
- package/lib/stories/Page.stories.js +1 -1
- package/lib/stories/loop/LoopReference.stories.js +1 -1
- package/lib/stories/loop/ReferenceScreens.js +11 -11
- package/lib/stories/loop/pictures-main.js +2 -2
- package/lib/tools/ToolExecutor.js +1 -1
- package/lib/tools/adapters/agent-runtimes/index.js +3 -3
- package/lib/tools/adapters/agent-runtimes/lexicalHooks.js +1 -1
- package/lib/tools/adapters/agent-runtimes/notebookHooks.js +1 -1
- package/lib/tools/adapters/commands/index.js +1 -1
- package/lib/tools/adapters/copilotkit/index.js +3 -3
- package/lib/tools/adapters/copilotkit/lexicalHooks.js +1 -1
- package/lib/tools/adapters/copilotkit/notebookHooks.js +1 -1
- package/lib/tools/index.js +3 -3
- package/lib/types/index.js +40 -40
- package/lib/ui-plugins/index.js +3 -3
- package/lib/utils/index.js +1 -1
- package/lib/utils/utils.js +2 -2
- package/lib/voice/ComposerVoice.js +5 -5
- package/lib/voice/HandsFree.js +5 -5
- package/lib/voice/ReadAloud.js +1 -1
- package/lib/voice/VoiceInput.js +3 -3
- package/lib/voice/VoiceMenu.js +3 -3
- package/lib/voice/captions.js +2 -2
- package/lib/voice/chatVoice.js +3 -3
- package/lib/voice/choices.js +1 -1
- package/lib/voice/{handsFree.d.ts → handsFreeRules.d.ts} +1 -1
- package/lib/voice/hearing.js +3 -3
- package/lib/voice/index.d.ts +1 -1
- package/lib/voice/index.js +22 -22
- package/lib/voice/keptSound.js +1 -1
- package/lib/voice/pinned.js +1 -1
- package/lib/voice/serverHearing.js +2 -2
- package/lib/voice/useSpokenAnswers.js +1 -1
- package/lib/voice/useVoiceSettings.js +1 -1
- package/lib/voice/useVoiceSpeaker.js +2 -2
- package/package.json +4 -3
- package/scripts/check-npm-pack.mjs +77 -0
- package/scripts/esm-specifiers.mjs +76 -0
- package/scripts/fully-specify-lib.mjs +61 -0
- /package/lib/chat/assistant/{avatar3d.js → avatar3dModel.js} +0 -0
- /package/lib/voice/{handsFree.js → handsFreeRules.js} +0 -0
|
@@ -21,7 +21,7 @@ import { useEffect } from 'react';
|
|
|
21
21
|
import { Box, DatalayerThemeProvider, themeConfigs, useThemeStore as usePrimerThemeStore, } from '@datalayer/primer-addons';
|
|
22
22
|
// The lean `/core` entry: the theme without the component library.
|
|
23
23
|
import { JupyterReactTheme } from '@datalayer/jupyter-react/core';
|
|
24
|
-
import { useExampleThemeStore } from './themeStore';
|
|
24
|
+
import { useExampleThemeStore } from './themeStore.js';
|
|
25
25
|
/**
|
|
26
26
|
* Drop-in replacement for `<DatalayerThemeProvider>`.
|
|
27
27
|
* Reads theme/colorMode from the example theme store and
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
-
import { useRuntimeTargetStore, } from './runtimeTargetStore';
|
|
7
|
-
import { useAgentSummaryStore } from './agentSummaryStore';
|
|
8
|
-
import { isLocalUrl } from './localUrl';
|
|
6
|
+
import { useRuntimeTargetStore, } from './runtimeTargetStore.js';
|
|
7
|
+
import { useAgentSummaryStore } from './agentSummaryStore.js';
|
|
8
|
+
import { isLocalUrl } from './localUrl.js';
|
|
9
9
|
const normalizeBaseUrl = (value) => {
|
|
10
10
|
if (!value) {
|
|
11
11
|
return undefined;
|
|
@@ -7,9 +7,9 @@ import { useState, useEffect, useMemo } from 'react';
|
|
|
7
7
|
import { Checkbox, FormControl, Heading } from '@primer/react';
|
|
8
8
|
import { Box } from '@datalayer/primer-addons';
|
|
9
9
|
import { loadJupyterConfig, JupyterReactTheme, Notebook, } from '@datalayer/jupyter-react';
|
|
10
|
-
import { DatalayerCollaborationProvider } from '../collaboration/DatalayerCollaborationProvider';
|
|
11
|
-
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager';
|
|
12
|
-
import { useCoreStore } from '../state';
|
|
10
|
+
import { DatalayerCollaborationProvider } from '../collaboration/DatalayerCollaborationProvider.js';
|
|
11
|
+
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager.js';
|
|
12
|
+
import { useCoreStore } from '../state/index.js';
|
|
13
13
|
import nbformatExample from './notebooks/NotebookExample1.ipynb.json';
|
|
14
14
|
// This corresponds to the notebook ID in the URL when you open an existing notbook in your library
|
|
15
15
|
const NOTEBOOK_ID = '01JZQRQ35GG871QQCZW9TB1A8J';
|
|
@@ -6,7 +6,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
6
6
|
import { useState, useEffect } from 'react';
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Button, Heading, Text, Link as PrimerLink } from '@primer/react';
|
|
9
|
-
import { useNavigate, useLocation, useParams, useHistory } from '../hooks';
|
|
9
|
+
import { useNavigate, useLocation, useParams, useHistory } from '../hooks/index.js';
|
|
10
10
|
/**
|
|
11
11
|
* Native Navigation Example
|
|
12
12
|
* This example demonstrates the navigation hooks WITHOUT React Router.
|
|
@@ -9,8 +9,8 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
9
9
|
import { SegmentedControl, Label, Text } from '@primer/react';
|
|
10
10
|
import { ServiceManager } from '@jupyterlab/services';
|
|
11
11
|
import { createLiteServiceManager, createServerSettings, setJupyterServerUrl, getJupyterServerUrl, getJupyterServerToken, setJupyterServerToken, ServiceManagerLess, loadJupyterConfig, useNotebookStore, Notebook, SpinnerCentered, JupyterReactTheme, } from '@datalayer/jupyter-react';
|
|
12
|
-
import { useCoreStore } from '../state';
|
|
13
|
-
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager';
|
|
12
|
+
import { useCoreStore } from '../state/index.js';
|
|
13
|
+
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager.js';
|
|
14
14
|
import nbformatExample from './notebooks/NotebookExample1.ipynb.json';
|
|
15
15
|
const NOTEBOOK_ID = 'notebook-mutations-id';
|
|
16
16
|
const LOCAL_JUPYTER_SERVER_URL = 'http://0.0.0.0:8888/api/jupyter-server';
|
|
@@ -9,8 +9,8 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
9
9
|
import { SegmentedControl, Label, Text } from '@primer/react';
|
|
10
10
|
import { ServiceManager } from '@jupyterlab/services';
|
|
11
11
|
import { createLiteServiceManager, createServerSettings, setJupyterServerUrl, getJupyterServerUrl, getJupyterServerToken, setJupyterServerToken, ServiceManagerLess, loadJupyterConfig, useNotebookStore, Notebook, SpinnerCentered, JupyterReactTheme, } from '@datalayer/jupyter-react';
|
|
12
|
-
import { useCoreStore } from '../state';
|
|
13
|
-
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager';
|
|
12
|
+
import { useCoreStore } from '../state/index.js';
|
|
13
|
+
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager.js';
|
|
14
14
|
import nbformatExample from './notebooks/NotebookExample1.ipynb.json';
|
|
15
15
|
const NOTEBOOK_ID = 'notebook-mutations-id';
|
|
16
16
|
const LOCAL_JUPYTER_SERVER_URL = 'http://0.0.0.0:8888/api/jupyter-server';
|
|
@@ -7,7 +7,7 @@ import { useState, useEffect } from 'react';
|
|
|
7
7
|
import { BrowserRouter, Routes, Route, Link as RouterLink, NavLink, Outlet, Navigate, } from 'react-router-dom';
|
|
8
8
|
import { Box } from '@datalayer/primer-addons';
|
|
9
9
|
import { Button, Heading, Text, TextInput } from '@primer/react';
|
|
10
|
-
import { useNavigate, useLocation, useParams, useHistory } from '../hooks';
|
|
10
|
+
import { useNavigate, useLocation, useParams, useHistory } from '../hooks/index.js';
|
|
11
11
|
/**
|
|
12
12
|
* Navigation Logger Component - Shows all navigation events
|
|
13
13
|
*/
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
* Add new examples here to make them available in the example runner.
|
|
9
9
|
*/
|
|
10
10
|
export const EXAMPLES = {
|
|
11
|
-
CellExample: () => import('./CellExample'),
|
|
12
|
-
DatalayerNotebookExample: () => import('./DatalayerNotebookExample'),
|
|
13
|
-
NotebookExample: () => import('./NotebookExample'),
|
|
14
|
-
NotebookMutationsKernel: () => import('./NotebookMutationsKernel'),
|
|
15
|
-
NotebookMutationsServiceManager: () => import('./NotebookMutationsServiceManager'),
|
|
16
|
-
ReactRouterExample: () => import('./ReactRouterExample'),
|
|
17
|
-
NativeNavigationExample: () => import('./NativeNavigationExample'),
|
|
11
|
+
CellExample: () => import('./CellExample.js'),
|
|
12
|
+
DatalayerNotebookExample: () => import('./DatalayerNotebookExample.js'),
|
|
13
|
+
NotebookExample: () => import('./NotebookExample.js'),
|
|
14
|
+
NotebookMutationsKernel: () => import('./NotebookMutationsKernel.js'),
|
|
15
|
+
NotebookMutationsServiceManager: () => import('./NotebookMutationsServiceManager.js'),
|
|
16
|
+
ReactRouterExample: () => import('./ReactRouterExample.js'),
|
|
17
|
+
NativeNavigationExample: () => import('./NativeNavigationExample.js'),
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
20
|
* Get the list of available example names
|
package/lib/examples2/index.js
CHANGED
|
@@ -2,5 +2,5 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export * from './NotebookMutationsKernel';
|
|
6
|
-
export * from './NotebookMutationsServiceManager';
|
|
5
|
+
export * from './NotebookMutationsKernel.js';
|
|
6
|
+
export * from './NotebookMutationsServiceManager.js';
|
package/lib/examples2/main.js
CHANGED
|
@@ -8,10 +8,10 @@ import { useEffect, useState } from 'react';
|
|
|
8
8
|
import { createRoot } from 'react-dom/client';
|
|
9
9
|
import { loadJupyterConfig, JupyterReactTheme, createServerSettings, setJupyterServerUrl, setJupyterServerToken, getJupyterServerUrl, getJupyterServerToken, } from '@datalayer/jupyter-react';
|
|
10
10
|
import { ServiceManager } from '@jupyterlab/services';
|
|
11
|
-
import { coreStore } from '../state';
|
|
12
|
-
import { iamStore } from '../state';
|
|
13
|
-
import { EXAMPLES } from './example-selector';
|
|
14
|
-
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager';
|
|
11
|
+
import { coreStore } from '../state/index.js';
|
|
12
|
+
import { iamStore } from '../state/index.js';
|
|
13
|
+
import { EXAMPLES } from './example-selector.js';
|
|
14
|
+
import { createDatalayerServiceManager } from '../services/DatalayerServiceManager.js';
|
|
15
15
|
import { BOOTSTRAP_USER_ONBOARDING } from '@datalayer/core/lib/models/UserOnboarding';
|
|
16
16
|
import nbformatExample from './notebooks/NotebookExample1.ipynb.json';
|
|
17
17
|
const DEFAULT_RUNTIMES_URL = 'https://r1.datalayer.run';
|
|
@@ -177,7 +177,7 @@ const NotebookOnlyApp = () => {
|
|
|
177
177
|
// Always try to create collaboration provider if we have token and spacerUrl
|
|
178
178
|
if (configuration?.token && configuration?.spacerUrl) {
|
|
179
179
|
try {
|
|
180
|
-
const { DatalayerCollaborationProvider } = await import('../collaboration/DatalayerCollaborationProvider');
|
|
180
|
+
const { DatalayerCollaborationProvider } = await import('../collaboration/DatalayerCollaborationProvider.js');
|
|
181
181
|
const provider = new DatalayerCollaborationProvider({
|
|
182
182
|
spacerUrl: configuration.spacerUrl,
|
|
183
183
|
token: configuration.token,
|
package/lib/hooks/index.js
CHANGED
|
@@ -39,16 +39,16 @@
|
|
|
39
39
|
* Main chat hook for the chat component system (Zustand-based).
|
|
40
40
|
* Use with `<Chat />`, `<ChatSidebar />`, `<ChatFloating />`, etc.
|
|
41
41
|
*/
|
|
42
|
-
export { useChat } from './useChat';
|
|
42
|
+
export { useChat } from './useChat.js';
|
|
43
43
|
/**
|
|
44
44
|
* Tool registration hooks for the chat component system.
|
|
45
45
|
*/
|
|
46
|
-
export { useFrontendTool, useBackendTool, useRegisteredTools, useTool, usePendingToolCalls, ActionRegistrar, } from './useTools';
|
|
46
|
+
export { useFrontendTool, useBackendTool, useRegisteredTools, useTool, usePendingToolCalls, ActionRegistrar, } from './useTools.js';
|
|
47
47
|
/**
|
|
48
48
|
* ChatBase infrastructure hooks.
|
|
49
49
|
*/
|
|
50
|
-
export { useConfig } from './useConfig';
|
|
51
|
-
export { useSkills, useSkillActions } from './useSkills';
|
|
50
|
+
export { useConfig } from './useConfig.js';
|
|
51
|
+
export { useSkills, useSkillActions } from './useSkills.js';
|
|
52
52
|
/*
|
|
53
53
|
* Straight from the store it lives in, not forwarded through `useSkills`.
|
|
54
54
|
*
|
|
@@ -59,9 +59,9 @@ export { useSkills, useSkillActions } from './useSkills';
|
|
|
59
59
|
* `./useSkills`", which is true of the source it reads even though every file
|
|
60
60
|
* in the chain is correct. One hop cannot be misread.
|
|
61
61
|
*/
|
|
62
|
-
export { useAgentRuntimeLoadedSkills as useAgentLoadedSkills } from '../stores';
|
|
63
|
-
export { useContextSnapshot } from './useContextSnapshot';
|
|
64
|
-
export { useSandbox } from './useSandbox';
|
|
62
|
+
export { useAgentRuntimeLoadedSkills as useAgentLoadedSkills } from '../stores/index.js';
|
|
63
|
+
export { useContextSnapshot } from './useContextSnapshot.js';
|
|
64
|
+
export { useSandbox } from './useSandbox.js';
|
|
65
65
|
// =============================================================================
|
|
66
66
|
// Transport-Specific Hooks (Direct Protocol Access)
|
|
67
67
|
// =============================================================================
|
|
@@ -69,65 +69,65 @@ export { useSandbox } from './useSandbox';
|
|
|
69
69
|
* AG-UI protocol hook - Pydantic AI's native protocol.
|
|
70
70
|
* Use for direct AG-UI communication without the chat component system.
|
|
71
71
|
*/
|
|
72
|
-
export { useAgUi } from './useAgUi';
|
|
72
|
+
export { useAgUi } from './useAgUi.js';
|
|
73
73
|
/**
|
|
74
74
|
* A2A protocol hook - Agent-to-Agent with JSON-RPC 2.0.
|
|
75
75
|
* Use for direct A2A communication without the chat component system.
|
|
76
76
|
*/
|
|
77
|
-
export { useA2A } from './useA2A';
|
|
77
|
+
export { useA2A } from './useA2A.js';
|
|
78
78
|
/**
|
|
79
79
|
* ACP protocol hook - Agent Client Protocol via WebSocket.
|
|
80
80
|
* Use for direct ACP communication without the chat component system.
|
|
81
81
|
*/
|
|
82
|
-
export * from './useAcp';
|
|
82
|
+
export * from './useAcp.js';
|
|
83
83
|
/**
|
|
84
84
|
* Vercel AI SDK chat hook - HTTP/SSE streaming.
|
|
85
85
|
* Use for direct Vercel AI communication without the chat component system.
|
|
86
86
|
*/
|
|
87
|
-
export { useVercelAI } from './useVercelAI';
|
|
87
|
+
export { useVercelAI } from './useVercelAI.js';
|
|
88
88
|
// The browser harness. Same `useChat` helpers as `useVercelAI` — the branch is
|
|
89
89
|
// one transport, so every chat component downstream is shared.
|
|
90
|
-
export { useBrowserAgent, } from './useBrowserAgent';
|
|
90
|
+
export { useBrowserAgent, } from './useBrowserAgent.js';
|
|
91
91
|
// =============================================================================
|
|
92
92
|
// Datalayer Platform Hooks
|
|
93
93
|
// =============================================================================
|
|
94
94
|
/**
|
|
95
95
|
* Unified hook for managing agents — both ephemeral and durable.
|
|
96
96
|
*/
|
|
97
|
-
export { useAgentRuntimes, } from './useAgentRuntimes';
|
|
97
|
+
export { useAgentRuntimes, } from './useAgentRuntimes.js';
|
|
98
98
|
/**
|
|
99
99
|
* Runtime query and mutation hooks.
|
|
100
100
|
*/
|
|
101
|
-
export { useAgentsRuntimes, useAgentRuntimesQuery, useAgentRuntimeByName, useCreateAgentRuntime, useDeleteAgentRuntime, useRefreshAgentRuntimes, agentQueryKeys, AGENT_QUERY_OPTIONS, useAgentLifecycleStore, getAgentLifecycleKey, markRuntimeDeleted, clearRuntimeDeleted, } from './useAgentRuntimes';
|
|
101
|
+
export { useAgentsRuntimes, useAgentRuntimesQuery, useAgentRuntimeByName, useCreateAgentRuntime, useDeleteAgentRuntime, useRefreshAgentRuntimes, agentQueryKeys, AGENT_QUERY_OPTIONS, useAgentLifecycleStore, getAgentLifecycleKey, markRuntimeDeleted, clearRuntimeDeleted, } from './useAgentRuntimes.js';
|
|
102
102
|
/**
|
|
103
103
|
* Central registry of ServiceManagers connected to agent sandbox pods.
|
|
104
104
|
*/
|
|
105
|
-
export { registerSandboxServiceManager, disposeSandboxServiceManagers, } from '../services/sandboxServiceManagers';
|
|
105
|
+
export { registerSandboxServiceManager, disposeSandboxServiceManagers, } from '../services/sandboxServiceManagers.js';
|
|
106
106
|
/**
|
|
107
107
|
* Agent-runtime WebSocket stream hook.
|
|
108
108
|
*/
|
|
109
|
-
export { useAgentRuntimeWebSocket, } from './useAgentRuntimes';
|
|
109
|
+
export { useAgentRuntimeWebSocket, } from './useAgentRuntimes.js';
|
|
110
110
|
/**
|
|
111
111
|
* Agent catalog store, AI Agents REST API, and registry hooks.
|
|
112
112
|
*/
|
|
113
|
-
export { useAgentCatalogStore, } from './useAgentsCatalog';
|
|
113
|
+
export { useAgentCatalogStore, } from './useAgentsCatalog.js';
|
|
114
114
|
/**
|
|
115
115
|
* Agents Service REST API (deprecated).
|
|
116
116
|
*/
|
|
117
|
-
export { useAgentsService, useNotebookAgents } from './useAgentsService';
|
|
117
|
+
export { useAgentsService, useNotebookAgents } from './useAgentsService.js';
|
|
118
118
|
/**
|
|
119
119
|
* Focused hooks split by responsibility.
|
|
120
120
|
*/
|
|
121
|
-
export { useCheckpoints, useCheckpointsQuery, useRefreshCheckpoints, useResumePausedAgentRuntime, usePauseAgent, useResumeAgent, useCheckpointAgent, useTerminateAgent, useAgentLifecycle, } from './useCheckpoints';
|
|
122
|
-
export { useToolApprovals, useToolApprovalsQuery, usePendingApprovalCount, useApproveToolRequest, useRejectToolRequest, } from './useToolApprovals';
|
|
123
|
-
export { useNotifications, useFilteredNotifications, useUnreadNotificationCount, useMarkNotificationRead, useMarkAllNotificationsRead, useAllAgentEvents, useAgentEvents, useAgentEvent, useCreateAgentEvent, useUpdateAgentEvent, useDeleteAgentEvent, useMarkEventRead, useMarkEventUnread, } from './useNotifications';
|
|
124
|
-
export { useAIAgentsWebSocket, } from './useAIAgentsWebSocket';
|
|
125
|
-
export { useProjects, useProject, useUpdateProject, useDeleteProject, useRefreshProjects, useProjectDefaultItems, } from './useProjects';
|
|
126
|
-
export { useOtelTotalTokens, fetchOtelTotalTokens, fetchOtelMetricTotal, fetchOtelMetricRows, toMetricValue, } from './useMonitoring';
|
|
121
|
+
export { useCheckpoints, useCheckpointsQuery, useRefreshCheckpoints, useResumePausedAgentRuntime, usePauseAgent, useResumeAgent, useCheckpointAgent, useTerminateAgent, useAgentLifecycle, } from './useCheckpoints.js';
|
|
122
|
+
export { useToolApprovals, useToolApprovalsQuery, usePendingApprovalCount, useApproveToolRequest, useRejectToolRequest, } from './useToolApprovals.js';
|
|
123
|
+
export { useNotifications, useFilteredNotifications, useUnreadNotificationCount, useMarkNotificationRead, useMarkAllNotificationsRead, useAllAgentEvents, useAgentEvents, useAgentEvent, useCreateAgentEvent, useUpdateAgentEvent, useDeleteAgentEvent, useMarkEventRead, useMarkEventUnread, } from './useNotifications.js';
|
|
124
|
+
export { useAIAgentsWebSocket, } from './useAIAgentsWebSocket.js';
|
|
125
|
+
export { useProjects, useProject, useUpdateProject, useDeleteProject, useRefreshProjects, useProjectDefaultItems, } from './useProjects.js';
|
|
126
|
+
export { useOtelTotalTokens, fetchOtelTotalTokens, fetchOtelMetricTotal, fetchOtelMetricRows, toMetricValue, } from './useMonitoring.js';
|
|
127
127
|
// Global top progress bar: a single shared store + a convenience hook so any
|
|
128
128
|
// view can drive the one app-wide progress bar.
|
|
129
|
-
export { useProgressStore } from './useProgressStore';
|
|
130
|
-
export { useProgressTask } from './useProgressTask';
|
|
129
|
+
export { useProgressStore } from './useProgressStore.js';
|
|
130
|
+
export { useProgressTask } from './useProgressTask.js';
|
|
131
131
|
// Re-export core hooks so consumers can progressively migrate imports to
|
|
132
132
|
// agent-runtimes without splitting runtime/content and IAM hook sources.
|
|
133
133
|
export * from '@datalayer/core/lib/hooks';
|
package/lib/hooks/useAgUi.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { useCallback, useEffect, useState } from 'react';
|
|
6
|
-
import { agUiRefusal, refusalBody } from '../portable/agUiRefusal';
|
|
6
|
+
import { agUiRefusal, refusalBody } from '../portable/agUiRefusal.js';
|
|
7
7
|
/**
|
|
8
8
|
* Hook to manage chat state with AG-UI protocol.
|
|
9
9
|
*
|
|
@@ -18,15 +18,15 @@ import { create } from 'zustand';
|
|
|
18
18
|
import { persist, createJSONStorage } from 'zustand/middleware';
|
|
19
19
|
import { useCoreStore, useDatalayer } from '@datalayer/core';
|
|
20
20
|
import { useIAMStore } from '@datalayer/core/lib/state';
|
|
21
|
-
import { runtimesStore } from '../state';
|
|
22
|
-
import { agentRuntimeStore, useAgentRuntimeStore, useAgentRuntimeConnection, useAgentRuntimeStatus, useAgentRuntimeError, useAgentRuntimeIsLaunching, } from '../stores/agentRuntimeStore';
|
|
23
|
-
import { parseAgentStreamMessage, } from '../types/stream';
|
|
24
|
-
import { DEFAULT_AGENT_CONFIG } from '../types/config';
|
|
21
|
+
import { runtimesStore } from '../state/index.js';
|
|
22
|
+
import { agentRuntimeStore, useAgentRuntimeStore, useAgentRuntimeConnection, useAgentRuntimeStatus, useAgentRuntimeError, useAgentRuntimeIsLaunching, } from '../stores/agentRuntimeStore.js';
|
|
23
|
+
import { parseAgentStreamMessage, } from '../types/stream.js';
|
|
24
|
+
import { DEFAULT_AGENT_CONFIG } from '../types/config.js';
|
|
25
25
|
import { ServiceManager } from '@jupyterlab/services/lib/manager';
|
|
26
|
-
import { disposeSandboxServiceManagers } from '../services/sandboxServiceManagers';
|
|
27
|
-
import { agentDeletionUrl, launchesOwnRoutesOnly, runtimeStatusUrl, } from './ownRoutes';
|
|
28
|
-
import { runtimeUrl, runtimesUrl } from '../runtimes/lifecycle';
|
|
29
|
-
import { legacyTargetOf, locationOf, runsInBrowser, toAgentRuntimeVariant, } from '../runtimes/variants';
|
|
26
|
+
import { disposeSandboxServiceManagers } from '../services/sandboxServiceManagers.js';
|
|
27
|
+
import { agentDeletionUrl, launchesOwnRoutesOnly, runtimeStatusUrl, } from './ownRoutes.js';
|
|
28
|
+
import { runtimeUrl, runtimesUrl } from '../runtimes/lifecycle.js';
|
|
29
|
+
import { legacyTargetOf, locationOf, runsInBrowser, toAgentRuntimeVariant, } from '../runtimes/variants.js';
|
|
30
30
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
31
31
|
// Constants
|
|
32
32
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
@@ -673,7 +673,7 @@ export function useAgentRuntimes(options = {}) {
|
|
|
673
673
|
if (!token) {
|
|
674
674
|
return;
|
|
675
675
|
}
|
|
676
|
-
const { listRuntimes } = await import('../api/runtimes/runtimes');
|
|
676
|
+
const { listRuntimes } = await import('../api/runtimes/runtimes.js');
|
|
677
677
|
const runtimesResponse = await listRuntimes(token, runtimesUrl);
|
|
678
678
|
const runtimes = runtimesResponse.runtimes || [];
|
|
679
679
|
const aiAgentRuntimes = runtimes.filter(rt => {
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @module hooks/useAgentsCatalog
|
|
11
11
|
*/
|
|
12
12
|
import { create } from 'zustand';
|
|
13
|
-
import { listAgentspecs } from '../specs';
|
|
13
|
+
import { listAgentspecs } from '../specs/index.js';
|
|
14
14
|
/** Whether two agent lists name the same agents, in the same state. */
|
|
15
15
|
const sameAgents = (before, after) => before.length === after.length &&
|
|
16
16
|
before.every((agent, index) => {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
import { useEffect } from 'react';
|
|
12
12
|
import { useCoreStore, useDatalayer } from '@datalayer/core';
|
|
13
13
|
import { URLExt } from '@jupyterlab/coreutils';
|
|
14
|
-
import { useAgentRuntimeStore } from '../stores/agentRuntimeStore';
|
|
14
|
+
import { useAgentRuntimeStore } from '../stores/agentRuntimeStore.js';
|
|
15
15
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
16
16
|
// Agents Service REST API hook.
|
|
17
17
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
import { useMemo } from 'react';
|
|
29
29
|
import { useChat } from '@ai-sdk/react';
|
|
30
30
|
import { DirectChatTransport } from 'ai';
|
|
31
|
-
import { createBrowserAgent, } from '../runtimes/browser';
|
|
31
|
+
import { createBrowserAgent, } from '../runtimes/browser/index.js';
|
|
32
32
|
/**
|
|
33
33
|
* A chat backed by an agent loop running in this page.
|
|
34
34
|
*
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* @module hooks/useBrowserInference
|
|
23
23
|
*/
|
|
24
24
|
import { useMemo } from 'react';
|
|
25
|
-
import { useCoreStore, useIAMStore } from '../state';
|
|
26
|
-
import { browserModelRequiresSignIn, useAnonymousInferenceSession, } from '../runtimes/browser';
|
|
25
|
+
import { useCoreStore, useIAMStore } from '../state/index.js';
|
|
26
|
+
import { browserModelRequiresSignIn, useAnonymousInferenceSession, } from '../runtimes/browser/index.js';
|
|
27
27
|
/** The inference plane used when the host provides no configuration. */
|
|
28
28
|
const DEFAULT_INFERENCE_URL = 'https://r1.datalayer.run';
|
|
29
29
|
/**
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { useState } from 'react';
|
|
6
|
-
import { useCellStore } from '../state/substates';
|
|
6
|
+
import { useCellStore } from '../state/substates/index.js';
|
|
7
7
|
import { takeHTMLNodeScreencapture } from '@datalayer/core/lib/utils/Screencapture';
|
|
8
8
|
const useCellOutputshot = () => {
|
|
9
9
|
const [outputshot, setOutputshot] = useState('');
|
package/lib/hooks/useChat.js
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
* @module chat/hooks/useChat
|
|
10
10
|
*/
|
|
11
11
|
import { useCallback, useMemo } from 'react';
|
|
12
|
-
import { useChatStore } from '../stores';
|
|
13
|
-
import { createUserMessage, generateMessageId } from '../types/messages';
|
|
14
|
-
import { isToolCallMessage } from '../utils';
|
|
15
|
-
import { BROWSER_LIMITS, emptyConversation, reduceConversation, withPrompt, } from '../portable/conversation';
|
|
16
|
-
import { conversationEventsOf, snapshotOfMessages, } from '../portable/adapterEvents';
|
|
17
|
-
import { conversationDrawer, emptyChatLayer, } from '../chat/base/conversationItems';
|
|
12
|
+
import { useChatStore } from '../stores/index.js';
|
|
13
|
+
import { createUserMessage, generateMessageId } from '../types/messages.js';
|
|
14
|
+
import { isToolCallMessage } from '../utils/index.js';
|
|
15
|
+
import { BROWSER_LIMITS, emptyConversation, reduceConversation, withPrompt, } from '../portable/conversation.js';
|
|
16
|
+
import { conversationEventsOf, snapshotOfMessages, } from '../portable/adapterEvents.js';
|
|
17
|
+
import { conversationDrawer, emptyChatLayer, } from '../chat/base/conversationItems.js';
|
|
18
18
|
/**
|
|
19
19
|
* Main hook for chat functionality
|
|
20
20
|
*
|
|
@@ -14,9 +14,9 @@ import { useMemo, useState, useCallback } from 'react';
|
|
|
14
14
|
import { useQuery, useQueryClient, useMutation } from '@tanstack/react-query';
|
|
15
15
|
import { useIAMStore } from '@datalayer/core/lib/state';
|
|
16
16
|
import { useCoreStore, useDatalayer } from '@datalayer/core';
|
|
17
|
-
import { agentQueryKeys, AGENT_QUERY_OPTIONS, clearRuntimeDeleted, } from './useAgentRuntimes';
|
|
18
|
-
import { disposeSandboxServiceManagers } from '../services/sandboxServiceManagers';
|
|
19
|
-
import { runtimeCheckpointsUrl, runtimeResumeUrl } from '../runtimes/lifecycle';
|
|
17
|
+
import { agentQueryKeys, AGENT_QUERY_OPTIONS, clearRuntimeDeleted, } from './useAgentRuntimes.js';
|
|
18
|
+
import { disposeSandboxServiceManagers } from '../services/sandboxServiceManagers.js';
|
|
19
|
+
import { runtimeCheckpointsUrl, runtimeResumeUrl } from '../runtimes/lifecycle.js';
|
|
20
20
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
21
21
|
// Query hooks
|
|
22
22
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
@@ -102,7 +102,7 @@ export function usePauseAgent() {
|
|
|
102
102
|
const { iamStore, coreStore } = await import('@datalayer/core/lib/state');
|
|
103
103
|
const token = iamStore.getState().token || '';
|
|
104
104
|
const runtimesUrl = coreStore.getState().configuration?.runtimesUrl || '';
|
|
105
|
-
const { pauseRuntime } = await import('../api/runtimes/runtimes');
|
|
105
|
+
const { pauseRuntime } = await import('../api/runtimes/runtimes.js');
|
|
106
106
|
const mode = params.mode || 'light';
|
|
107
107
|
const resp = await pauseRuntime(token, params.runtimeName, runtimesUrl, {
|
|
108
108
|
agent_spec_id: params.agentSpecId,
|
|
@@ -113,7 +113,7 @@ export function usePauseAgent() {
|
|
|
113
113
|
...(params.agentSpec ? { agentspec: params.agentSpec } : {}),
|
|
114
114
|
});
|
|
115
115
|
if (resp.checkpoint_id) {
|
|
116
|
-
const { waitForCheckpointStatus } = await import('../api/runtimes/checkpoints');
|
|
116
|
+
const { waitForCheckpointStatus } = await import('../api/runtimes/checkpoints.js');
|
|
117
117
|
const ckpt = await waitForCheckpointStatus(token, params.runtimeName, resp.checkpoint_id, ['paused', 'failed'], runtimesUrl);
|
|
118
118
|
if (ckpt.status === 'failed') {
|
|
119
119
|
throw new Error(`Checkpoint ${resp.checkpoint_id} failed during ${mode.toUpperCase()} pause`);
|
|
@@ -147,7 +147,7 @@ export function useResumeAgent() {
|
|
|
147
147
|
const { iamStore, coreStore } = await import('@datalayer/core/lib/state');
|
|
148
148
|
const token = iamStore.getState().token || '';
|
|
149
149
|
const runtimesUrl = coreStore.getState().configuration?.runtimesUrl || '';
|
|
150
|
-
const { resumeRuntime } = await import('../api/runtimes/runtimes');
|
|
150
|
+
const { resumeRuntime } = await import('../api/runtimes/runtimes.js');
|
|
151
151
|
return resumeRuntime(token, params.runtimeName, runtimesUrl, {
|
|
152
152
|
agent_spec_id: params.agentSpecId,
|
|
153
153
|
...(params.mode ? { checkpoint_mode: params.mode } : {}),
|
|
@@ -180,8 +180,8 @@ export function useCheckpointAgent() {
|
|
|
180
180
|
const { iamStore, coreStore } = await import('@datalayer/core/lib/state');
|
|
181
181
|
const token = iamStore.getState().token || '';
|
|
182
182
|
const runtimesUrl = coreStore.getState().configuration?.runtimesUrl || '';
|
|
183
|
-
const { pauseRuntime } = await import('../api/runtimes/runtimes');
|
|
184
|
-
const { waitForCheckpointStatus } = await import('../api/runtimes/checkpoints');
|
|
183
|
+
const { pauseRuntime } = await import('../api/runtimes/runtimes.js');
|
|
184
|
+
const { waitForCheckpointStatus } = await import('../api/runtimes/checkpoints.js');
|
|
185
185
|
const mode = params.mode || 'criu';
|
|
186
186
|
const pauseResp = await pauseRuntime(token, params.runtimeName, runtimesUrl, {
|
|
187
187
|
name: params.name || `checkpoint-${Date.now()}`,
|
|
@@ -226,7 +226,7 @@ export function useTerminateAgent() {
|
|
|
226
226
|
const { iamStore, coreStore } = await import('@datalayer/core/lib/state');
|
|
227
227
|
const token = iamStore.getState().token || '';
|
|
228
228
|
const runtimesUrl = coreStore.getState().configuration?.runtimesUrl || '';
|
|
229
|
-
const { deleteRuntime } = await import('../api/runtimes/runtimes');
|
|
229
|
+
const { deleteRuntime } = await import('../api/runtimes/runtimes.js');
|
|
230
230
|
return deleteRuntime(token, params.runtimeName, runtimesUrl);
|
|
231
231
|
},
|
|
232
232
|
onSuccess: () => {
|
|
@@ -307,7 +307,7 @@ export function useAgentLifecycle(options) {
|
|
|
307
307
|
const { iamStore, coreStore } = await import('@datalayer/core/lib/state');
|
|
308
308
|
const token = iamStore.getState().token || '';
|
|
309
309
|
const runtimesUrl = coreStore.getState().configuration?.runtimesUrl || '';
|
|
310
|
-
const { listRuntimes } = await import('../api/runtimes/runtimes');
|
|
310
|
+
const { listRuntimes } = await import('../api/runtimes/runtimes.js');
|
|
311
311
|
const runtimesResponse = await listRuntimes(token, runtimesUrl);
|
|
312
312
|
const runtimes = runtimesResponse.runtimes || [];
|
|
313
313
|
const aiAgentRuntimes = runtimes.filter(rt => {
|
package/lib/hooks/useConfig.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { useContext } from 'react';
|
|
6
6
|
import { useQuery, QueryClientContext } from '@tanstack/react-query';
|
|
7
|
-
import { requestAPI } from '../api/handler';
|
|
7
|
+
import { requestAPI } from '../api/handler.js';
|
|
8
8
|
/**
|
|
9
9
|
* Hook to safely use query when QueryClient is available.
|
|
10
10
|
* Returns a mock result if no QueryClientProvider is present.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { useAgentRuntimeContextSnapshot } from '../stores';
|
|
5
|
+
import { useAgentRuntimeContextSnapshot } from '../stores/index.js';
|
|
6
6
|
export function useContextSnapshot(_enabled, _configEndpoint, _agentId, _authToken) {
|
|
7
7
|
const snapshot = useAgentRuntimeContextSnapshot();
|
|
8
8
|
/*
|
|
@@ -11,7 +11,7 @@ import { useMemo } from 'react';
|
|
|
11
11
|
import { useQuery, useMutation, useQueryClient } from '@tanstack/react-query';
|
|
12
12
|
import { useCoreStore, useIAMStore } from '@datalayer/core/lib/state';
|
|
13
13
|
import { DEFAULT_SERVICE_URLS } from '@datalayer/core/lib/api/constants';
|
|
14
|
-
import { events, notifications } from '../api';
|
|
14
|
+
import { events, notifications } from '../api/index.js';
|
|
15
15
|
// ─── Auth helpers ────────────────────────────────────────────────────
|
|
16
16
|
function useAuthToken() {
|
|
17
17
|
const token = useIAMStore((s) => s.token);
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @module hooks/useProgressTask
|
|
22
22
|
*/
|
|
23
23
|
import { useEffect } from 'react';
|
|
24
|
-
import { useProgressStore } from './useProgressStore';
|
|
24
|
+
import { useProgressStore } from './useProgressStore.js';
|
|
25
25
|
/**
|
|
26
26
|
* Drive the shared top progress bar from a boolean loading flag.
|
|
27
27
|
*
|
package/lib/hooks/useSandbox.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
6
|
-
import { getApiBaseFromConfig } from '../utils';
|
|
6
|
+
import { getApiBaseFromConfig } from '../utils/index.js';
|
|
7
7
|
const RECONNECT_BASE_MS = 1000;
|
|
8
8
|
const RECONNECT_MAX_MS = 30000;
|
|
9
9
|
function isRetryableCloseCode(code) {
|
package/lib/hooks/useSkills.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { useCallback, useMemo } from 'react';
|
|
6
|
-
import { agentRuntimeStore, useAgentRuntimeCodemodeStatus } from '../stores';
|
|
6
|
+
import { agentRuntimeStore, useAgentRuntimeCodemodeStatus } from '../stores/index.js';
|
|
7
7
|
function parseSkillStatus(value) {
|
|
8
8
|
if (value === 'available' || value === 'enabled' || value === 'loaded') {
|
|
9
9
|
return value;
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
*/
|
|
21
21
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
22
22
|
import { useQuery, useQueryClient } from '@tanstack/react-query';
|
|
23
|
-
import { useAIAgentsWebSocket } from './useAIAgentsWebSocket';
|
|
24
|
-
import { normalizeApproval } from '../portable/approvals';
|
|
23
|
+
import { useAIAgentsWebSocket } from './useAIAgentsWebSocket.js';
|
|
24
|
+
import { normalizeApproval } from '../portable/approvals.js';
|
|
25
25
|
// ─── Helpers ─────────────────────────────────────────────────────────
|
|
26
26
|
const APPROVALS_ROOT_KEY = ['tool-approvals'];
|
|
27
27
|
function matchesFilter(a, filters) {
|
package/lib/hooks/useTools.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* @module components/hooks/useTools
|
|
10
10
|
*/
|
|
11
11
|
import { useEffect, useMemo } from 'react';
|
|
12
|
-
import { useChatStore } from '../stores';
|
|
12
|
+
import { useChatStore } from '../stores/index.js';
|
|
13
13
|
/**
|
|
14
14
|
* Hook to register a frontend tool
|
|
15
15
|
* Compatible with CopilotKit's useFrontendTool
|
|
@@ -13,9 +13,9 @@ import React, { useCallback, useMemo } from 'react';
|
|
|
13
13
|
import { Box } from '@datalayer/primer-addons';
|
|
14
14
|
import { Text, Button, Label, Avatar, Flash, Tooltip } from '@primer/react';
|
|
15
15
|
import { MarkGithubIcon, LinkIcon, UnlinkIcon, CheckCircleFillIcon, AlertIcon, ClockIcon, SyncIcon, KeyIcon, } from '@primer/octicons-react';
|
|
16
|
-
import { useIdentity } from './useIdentity';
|
|
17
|
-
import { IdentityButton } from './IdentityConnect';
|
|
18
|
-
import { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER } from './types';
|
|
16
|
+
import { useIdentity } from './useIdentity.js';
|
|
17
|
+
import { IdentityButton } from './IdentityConnect.js';
|
|
18
|
+
import { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER } from './types.js';
|
|
19
19
|
const PROVIDER_DISPLAY = {
|
|
20
20
|
github: {
|
|
21
21
|
name: 'GitHub',
|
|
@@ -7,8 +7,8 @@ import React, { useCallback } from 'react';
|
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Text, Button, Label, Flash, ActionList, ActionMenu, Avatar, } from '@primer/react';
|
|
9
9
|
import { MarkGithubIcon, LinkIcon, UnlinkIcon, CheckCircleFillIcon, AlertIcon, KeyIcon, } from '@primer/octicons-react';
|
|
10
|
-
import { useIdentity } from './useIdentity';
|
|
11
|
-
import { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER } from './types';
|
|
10
|
+
import { useIdentity } from './useIdentity.js';
|
|
11
|
+
import { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER } from './types.js';
|
|
12
12
|
/**
|
|
13
13
|
* Provider-specific display configurations.
|
|
14
14
|
* - GitHub: Uses official GitHub icon and dark theme color
|
|
@@ -7,7 +7,7 @@ import { useEffect, useState } from 'react';
|
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Text, Spinner, Flash, Button } from '@primer/react';
|
|
9
9
|
import { CheckCircleFillIcon, AlertIcon, XCircleIcon, } from '@primer/octicons-react';
|
|
10
|
-
import { useIdentityStore } from './identityStore';
|
|
10
|
+
import { useIdentityStore } from './identityStore.js';
|
|
11
11
|
/**
|
|
12
12
|
* OAuth callback handler component.
|
|
13
13
|
*
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
import { create } from 'zustand';
|
|
13
13
|
import { devtools, subscribeWithSelector, persist } from 'zustand/middleware';
|
|
14
14
|
import { useShallow } from 'zustand/react/shallow';
|
|
15
|
-
import { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER } from './types';
|
|
16
|
-
import { generatePKCEPair, generateState } from './pkce';
|
|
15
|
+
import { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER } from './types.js';
|
|
16
|
+
import { generatePKCEPair, generateState } from './pkce.js';
|
|
17
17
|
/**
|
|
18
18
|
* Storage key for persisted identity data
|
|
19
19
|
*/
|
package/lib/identity/index.js
CHANGED
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER, KAGGLE_API_TOKEN_PROVIDER, } from './types';
|
|
5
|
+
export { GITHUB_PROVIDER, GOOGLE_PROVIDER, KAGGLE_PROVIDER, KAGGLE_API_TOKEN_PROVIDER, } from './types.js';
|
|
6
6
|
// PKCE utilities
|
|
7
|
-
export { generateCodeVerifier, generateCodeChallenge, generateState, generatePKCEPair, } from './pkce';
|
|
7
|
+
export { generateCodeVerifier, generateCodeChallenge, generateState, generatePKCEPair, } from './pkce.js';
|
|
8
8
|
// Dynamic Client Registration (DCR)
|
|
9
|
-
export { discoverAuthorizationServer, supportsDCR, registerClient, updateClientRegistration, deleteClientRegistration, getOrCreateDynamicClient, loadDynamicClient, saveDynamicClient, removeDynamicClient, getAllDynamicClients, clearAllDynamicClients, dynamicClientToProviderConfig, } from './dcr';
|
|
9
|
+
export { discoverAuthorizationServer, supportsDCR, registerClient, updateClientRegistration, deleteClientRegistration, getOrCreateDynamicClient, loadDynamicClient, saveDynamicClient, removeDynamicClient, getAllDynamicClients, clearAllDynamicClients, dynamicClientToProviderConfig, } from './dcr.js';
|
|
10
10
|
// Store
|
|
11
|
-
export { useIdentityStore, useConnectedIdentities, useConnectedProviders, useIdentity as useIdentitySelector, useIsProviderConnected, usePendingAuthorization, useIdentityLoading, useIdentityError, configureBuiltinProviders, } from './identityStore';
|
|
11
|
+
export { useIdentityStore, useConnectedIdentities, useConnectedProviders, useIdentity as useIdentitySelector, useIsProviderConnected, usePendingAuthorization, useIdentityLoading, useIdentityError, configureBuiltinProviders, } from './identityStore.js';
|
|
12
12
|
// Main hook
|
|
13
|
-
export { useIdentity, } from './useIdentity';
|
|
13
|
+
export { useIdentity, } from './useIdentity.js';
|
|
14
14
|
// UI Components
|
|
15
|
-
export { IdentityButton, IdentityConnect, IdentityMenu, } from './IdentityConnect';
|
|
15
|
+
export { IdentityButton, IdentityConnect, IdentityMenu, } from './IdentityConnect.js';
|
|
16
16
|
// Agent identity status UI
|
|
17
|
-
export { AgentIdentity, IdentityCard, getTokenStatus, formatDuration, formatExpirationStatus, } from './AgentIdentity';
|
|
17
|
+
export { AgentIdentity, IdentityCard, getTokenStatus, formatDuration, formatExpirationStatus, } from './AgentIdentity.js';
|
|
18
18
|
// OAuth Callback
|
|
19
|
-
export { OAuthCallback } from './OAuthCallback';
|
|
19
|
+
export { OAuthCallback } from './OAuthCallback.js';
|