@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
|
@@ -17,7 +17,7 @@ import { useMemo, useState } from 'react';
|
|
|
17
17
|
import { Text } from '@primer/react';
|
|
18
18
|
import { Box } from '@datalayer/primer-addons';
|
|
19
19
|
import { ChevronDownIcon, ChevronRightIcon, DependabotIcon, ToolsIcon, CheckCircleIcon, AlertIcon, LightBulbIcon, } from '@primer/octicons-react';
|
|
20
|
-
import { useAgentRuntimeSubagentActivity } from '../../stores/agentRuntimeStore';
|
|
20
|
+
import { useAgentRuntimeSubagentActivity } from '../../stores/agentRuntimeStore.js';
|
|
21
21
|
/**
|
|
22
22
|
* Collapse the ordered event stream into render segments, merging consecutive
|
|
23
23
|
* text/thinking deltas into single blocks.
|
|
@@ -16,7 +16,7 @@ import { useState } from 'react';
|
|
|
16
16
|
import { Box } from '@datalayer/primer-addons';
|
|
17
17
|
import { Button, Text, CounterLabel } from '@primer/react';
|
|
18
18
|
import { ShieldCheckIcon, AlertIcon, CheckIcon, XIcon, } from '@primer/octicons-react';
|
|
19
|
-
import { useChatWords } from '../ChatLanguage';
|
|
19
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
20
20
|
/**
|
|
21
21
|
* Persistent banner for tool approval notifications.
|
|
22
22
|
*/
|
|
@@ -14,7 +14,7 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
14
14
|
import { Button, Text, Heading, FormControl, Checkbox } from '@primer/react';
|
|
15
15
|
import { Dialog } from '@primer/react/experimental';
|
|
16
16
|
import { AlertIcon, ToolsIcon, CheckIcon, XIcon } from '@primer/octicons-react';
|
|
17
|
-
import { useChatWords } from '../ChatLanguage';
|
|
17
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
18
18
|
/**
|
|
19
19
|
* Tool Approval Dialog component
|
|
20
20
|
*/
|
|
@@ -13,8 +13,8 @@ import { useEffect, useState } from 'react';
|
|
|
13
13
|
import { Button, Text } from '@primer/react';
|
|
14
14
|
import { Box } from '@datalayer/primer-addons';
|
|
15
15
|
import { ChevronDownIcon, ChevronRightIcon, ToolsIcon, CheckCircleIcon, XCircleIcon, ClockIcon, AlertIcon, } from '@primer/octicons-react';
|
|
16
|
-
import { SpecMark, hasMark } from '../marks';
|
|
17
|
-
import { useChatWords } from '../ChatLanguage';
|
|
16
|
+
import { SpecMark, hasMark } from '../marks/index.js';
|
|
17
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
18
18
|
/**
|
|
19
19
|
* Get status icon and color based on tool call status
|
|
20
20
|
*/
|
package/lib/chat/tools/index.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module chat/tools
|
|
9
9
|
*/
|
|
10
|
-
export { ToolCallDisplay, } from './ToolCallDisplay';
|
|
11
|
-
export { SubagentActivity, } from './SubagentActivity';
|
|
12
|
-
export { A2AAgentDialog, a2aAgentDetails, agentCardUrl, useAgentCard, } from './A2AAgentDialog';
|
|
13
|
-
export { ToolApprovalBanner, } from './ToolApprovalBanner';
|
|
14
|
-
export { ToolApprovalDialog, useToolApprovalDialog, } from './ToolApprovalDialog';
|
|
10
|
+
export { ToolCallDisplay, } from './ToolCallDisplay.js';
|
|
11
|
+
export { SubagentActivity, } from './SubagentActivity.js';
|
|
12
|
+
export { A2AAgentDialog, a2aAgentDetails, agentCardUrl, useAgentCard, } from './A2AAgentDialog.js';
|
|
13
|
+
export { ToolApprovalBanner, } from './ToolApprovalBanner.js';
|
|
14
|
+
export { ToolApprovalDialog, useToolApprovalDialog, } from './ToolApprovalDialog.js';
|
|
@@ -16,7 +16,7 @@ import { useRef, useState } from 'react';
|
|
|
16
16
|
import { Text } from '@primer/react';
|
|
17
17
|
import { Box } from '@datalayer/primer-addons';
|
|
18
18
|
import ReactECharts from 'echarts-for-react';
|
|
19
|
-
import { formatTokenCount } from '../../utils';
|
|
19
|
+
import { formatTokenCount } from '../../utils/index.js';
|
|
20
20
|
// ---------------------------------------------------------------------------
|
|
21
21
|
// Component
|
|
22
22
|
// ---------------------------------------------------------------------------
|
package/lib/chat/words.js
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @module chat/words
|
|
19
19
|
*/
|
|
20
|
-
import { pickLanguage } from '../apps/apps/language';
|
|
20
|
+
import { pickLanguage } from '../apps/apps/language.js';
|
|
21
21
|
/** The chat's words, by language. Another language reads English. */
|
|
22
22
|
export const CHAT_WORDS = {
|
|
23
23
|
en: {
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* @module client/AgentRuntimesClient
|
|
10
10
|
*/
|
|
11
11
|
import { DatalayerCoreClient, } from '@datalayer/core/lib/client';
|
|
12
|
-
import { RuntimesMixin, } from './mixins/RuntimesMixin';
|
|
13
|
-
import { SpacerMixin } from './mixins/SpacerMixin';
|
|
12
|
+
import { RuntimesMixin, } from './mixins/RuntimesMixin.js';
|
|
13
|
+
import { SpacerMixin } from './mixins/SpacerMixin.js';
|
|
14
14
|
// Apply the runtime + content mixins on top of the core client.
|
|
15
15
|
const AgentRuntimesClientWithMixins = SpacerMixin(RuntimesMixin(DatalayerCoreClient));
|
|
16
16
|
/**
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import * as agents from '../api/agents';
|
|
6
|
-
import * as notifications from '../api/notifications';
|
|
7
|
-
import * as events from '../api/events';
|
|
8
|
-
import * as output from '../api/output';
|
|
9
|
-
import * as evals from '../api/evals';
|
|
10
|
-
import * as context from '../api/context';
|
|
11
|
-
import * as agentspecs from '../specs/agents';
|
|
5
|
+
import * as agents from '../api/agents.js';
|
|
6
|
+
import * as notifications from '../api/notifications.js';
|
|
7
|
+
import * as events from '../api/events.js';
|
|
8
|
+
import * as output from '../api/output.js';
|
|
9
|
+
import * as evals from '../api/evals.js';
|
|
10
|
+
import * as context from '../api/context.js';
|
|
11
|
+
import * as agentspecs from '../specs/agents/index.js';
|
|
12
12
|
import { requestDatalayerAPI } from '@datalayer/core/lib/api/DatalayerApi';
|
|
13
|
-
import { runtimesUrl as runtimesApiUrl } from '../runtimes/lifecycle';
|
|
13
|
+
import { runtimesUrl as runtimesApiUrl } from '../runtimes/lifecycle.js';
|
|
14
14
|
/** Agents mixin providing durable agent management. */
|
|
15
15
|
export function AgentsMixin(Base) {
|
|
16
16
|
return class extends Base {
|
package/lib/client/index.js
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module client
|
|
9
9
|
*/
|
|
10
|
-
export { AgentsMixin } from './AgentsMixin';
|
|
11
|
-
export { SdkAgentRuntimesClient, } from './SdkAgentRuntimesClient';
|
|
12
|
-
export { AgentRuntimesClientProvider, useAgentRuntimesClient, useOptionalAgentRuntimesClient, } from './AgentRuntimesClientContext';
|
|
10
|
+
export { AgentsMixin } from './AgentsMixin.js';
|
|
11
|
+
export { SdkAgentRuntimesClient, } from './SdkAgentRuntimesClient.js';
|
|
12
|
+
export { AgentRuntimesClientProvider, useAgentRuntimesClient, useOptionalAgentRuntimesClient, } from './AgentRuntimesClientContext.js';
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* Runtimes mixin for managing computational environments and runtime instances.
|
|
7
7
|
* @module client/mixins/RuntimesMixin
|
|
8
8
|
*/
|
|
9
|
-
import * as environments from '../../api/runtimes/environments';
|
|
10
|
-
import * as runtimes from '../../api/runtimes/runtimes';
|
|
11
|
-
import * as snapshots from '../../api/runtimes/snapshots';
|
|
12
|
-
import { EnvironmentDTO } from '../../models/EnvironmentDTO';
|
|
13
|
-
import { RuntimeDTO } from '../../models/RuntimeDTO';
|
|
14
|
-
import { CodeSandboxSnapshotDTO } from '../../models/CodeSandboxSnapshotDTO';
|
|
9
|
+
import * as environments from '../../api/runtimes/environments.js';
|
|
10
|
+
import * as runtimes from '../../api/runtimes/runtimes.js';
|
|
11
|
+
import * as snapshots from '../../api/runtimes/snapshots.js';
|
|
12
|
+
import { EnvironmentDTO } from '../../models/EnvironmentDTO.js';
|
|
13
|
+
import { RuntimeDTO } from '../../models/RuntimeDTO.js';
|
|
14
|
+
import { CodeSandboxSnapshotDTO } from '../../models/CodeSandboxSnapshotDTO.js';
|
|
15
15
|
import { HealthCheck } from '@datalayer/core/lib/models/HealthCheck';
|
|
16
16
|
/** Runtimes mixin providing computational environment and runtime management. */
|
|
17
17
|
export function RuntimesMixin(Base) {
|
|
@@ -6,18 +6,18 @@
|
|
|
6
6
|
* Spacer mixin for managing workspaces, notebooks, and content.
|
|
7
7
|
* @module client/mixins/SpacerMixin
|
|
8
8
|
*/
|
|
9
|
-
import * as spaces from '../../api/spacer/spaces';
|
|
10
|
-
import * as notebooks from '../../api/spacer/notebooks';
|
|
11
|
-
import * as users from '../../api/spacer/users';
|
|
12
|
-
import * as lexicals from '../../api/spacer/lexicals';
|
|
13
|
-
import * as documents from '../../api/spacer/documents';
|
|
14
|
-
import * as items from '../../api/spacer/items';
|
|
15
|
-
import { NotebookDTO } from '../../models/NotebookDTO';
|
|
16
|
-
import { LexicalDTO } from '../../models/LexicalDTO';
|
|
17
|
-
import { SpaceDTO } from '../../models/SpaceDTO';
|
|
18
|
-
import { ProjectDTO } from '../../models/ProjectDTO';
|
|
9
|
+
import * as spaces from '../../api/spacer/spaces.js';
|
|
10
|
+
import * as notebooks from '../../api/spacer/notebooks.js';
|
|
11
|
+
import * as users from '../../api/spacer/users.js';
|
|
12
|
+
import * as lexicals from '../../api/spacer/lexicals.js';
|
|
13
|
+
import * as documents from '../../api/spacer/documents.js';
|
|
14
|
+
import * as items from '../../api/spacer/items.js';
|
|
15
|
+
import { NotebookDTO } from '../../models/NotebookDTO.js';
|
|
16
|
+
import { LexicalDTO } from '../../models/LexicalDTO.js';
|
|
17
|
+
import { SpaceDTO } from '../../models/SpaceDTO.js';
|
|
18
|
+
import { ProjectDTO } from '../../models/ProjectDTO.js';
|
|
19
19
|
import { HealthCheck } from '@datalayer/core/lib/models/HealthCheck';
|
|
20
|
-
import { convertSpaceItemsToModels } from '../utils/spacerUtils';
|
|
20
|
+
import { convertSpaceItemsToModels } from '../utils/spacerUtils.js';
|
|
21
21
|
import { generateHandle } from '@datalayer/core/lib/client/utils/slugify';
|
|
22
22
|
/** Spacer mixin providing workspace and content management. */
|
|
23
23
|
export function SpacerMixin(Base) {
|
|
@@ -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 { NotebookDTO } from '../../models/NotebookDTO';
|
|
6
|
-
import { LexicalDTO } from '../../models/LexicalDTO';
|
|
5
|
+
import { NotebookDTO } from '../../models/NotebookDTO.js';
|
|
6
|
+
import { LexicalDTO } from '../../models/LexicalDTO.js';
|
|
7
7
|
import { ItemTypes } from '@datalayer/core/lib/client/constants';
|
|
8
8
|
/**
|
|
9
9
|
* Convert raw space items from API response to model instances.
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { URLExt } from '@jupyterlab/coreutils';
|
|
6
6
|
import { Signal } from '@lumino/signaling';
|
|
7
7
|
import { WebsocketProvider } from 'y-websocket';
|
|
8
|
-
import { requestDatalayerCollaborationSessionId } from './DatalayerCollaboration';
|
|
8
|
+
import { requestDatalayerCollaborationSessionId } from './DatalayerCollaboration.js';
|
|
9
9
|
export var CollaborationStatus;
|
|
10
10
|
(function (CollaborationStatus) {
|
|
11
11
|
CollaborationStatus["Disconnected"] = "disconnected";
|
|
@@ -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 './DatalayerCollaboration';
|
|
6
|
-
export * from './DatalayerCollaborationProvider';
|
|
5
|
+
export * from './DatalayerCollaboration.js';
|
|
6
|
+
export * from './DatalayerCollaborationProvider.js';
|
|
@@ -2,11 +2,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState, useSyncExternalStore, } from 'react';
|
|
3
3
|
import { useOptionalReactorPlatform } from '@datalayer/reactor/react';
|
|
4
4
|
import { createComponentImplementation, } from '@a2ui/react/v0_9';
|
|
5
|
-
import { customComponentEntry, folderSourceUrl, isFolderSource, } from '../../../apps/apps/customComponents';
|
|
6
|
-
import { LoopAppFiles } from '../../../apps/core/appFiles';
|
|
7
|
-
import { componentSchemaOf } from '../datalayer/schema';
|
|
8
|
-
import { BlockFrame, Problem } from '../datalayer/parts';
|
|
9
|
-
import { CUSTOM_FRAME_SANDBOX, FRAME_TAG, customFrameDocument, customModule, frameNonce, fromFrame, } from './sandbox';
|
|
5
|
+
import { customComponentEntry, folderSourceUrl, isFolderSource, } from '../../../apps/apps/customComponents.js';
|
|
6
|
+
import { LoopAppFiles } from '../../../apps/core/appFiles.js';
|
|
7
|
+
import { componentSchemaOf } from '../datalayer/schema.js';
|
|
8
|
+
import { BlockFrame, Problem } from '../datalayer/parts.js';
|
|
9
|
+
import { CUSTOM_FRAME_SANDBOX, FRAME_TAG, customFrameDocument, customModule, frameNonce, fromFrame, } from './sandbox.js';
|
|
10
10
|
/** What the frame is given: its declared properties and what it shows, nothing else. */
|
|
11
11
|
export function givenToFrame(component, props) {
|
|
12
12
|
const declared = Object.keys((component.props.properties ?? {}));
|
|
@@ -136,4 +136,4 @@ export function customImplementation(component, version = '0.0.0', fetcher, appI
|
|
|
136
136
|
export function customImplementations(app, fetcher) {
|
|
137
137
|
return (app.interface.customComponents ?? []).map(component => customImplementation(component, app.version, fetcher, app.id));
|
|
138
138
|
}
|
|
139
|
-
export { CUSTOM_FRAME_SANDBOX, customFrameDocument, customFramePolicy, customModule, fromFrame, integrityHolds, } from './sandbox';
|
|
139
|
+
export { CUSTOM_FRAME_SANDBOX, customFrameDocument, customFramePolicy, customModule, fromFrame, integrityHolds, } from './sandbox.js';
|
|
@@ -19,8 +19,8 @@ import { useLayoutEffect, useMemo, useRef, useState } from 'react';
|
|
|
19
19
|
import { Text } from '@primer/react';
|
|
20
20
|
import { Box } from '@datalayer/primer-addons';
|
|
21
21
|
import { ReactorLazy } from '@datalayer/reactor/react';
|
|
22
|
-
import { BlockFrame, Problem, Quiet, asWords, isRecord } from './parts';
|
|
23
|
-
import { ownImplementation } from './implementation';
|
|
22
|
+
import { BlockFrame, Problem, Quiet, asWords, isRecord } from './parts.js';
|
|
23
|
+
import { ownImplementation } from './implementation.js';
|
|
24
24
|
/**
|
|
25
25
|
* ECharts, fetched when a chart is first drawn: the catalogue is in every
|
|
26
26
|
* surface (and in the embed, D-08), a chart only in some.
|
|
@@ -24,11 +24,11 @@ import { createRef, useMemo, useState } from 'react';
|
|
|
24
24
|
import { IconButton } from '@primer/react';
|
|
25
25
|
import { DependabotIcon, PaperAirplaneIcon, PersonIcon, } from '@primer/octicons-react';
|
|
26
26
|
import { Box } from '@datalayer/primer-addons';
|
|
27
|
-
import { ChatMessageList } from '../../../chat/messages/ChatMessageList';
|
|
28
|
-
import { ChatEmptyState } from '../../../chat/display/EmptyState';
|
|
29
|
-
import { InputPromptText } from '../../../chat/prompt/InputPromptText';
|
|
30
|
-
import { BlockFrame, CARD_RADIUS, Problem, asWords, isRecord } from './parts';
|
|
31
|
-
import { ownImplementation } from './implementation';
|
|
27
|
+
import { ChatMessageList } from '../../../chat/messages/ChatMessageList.js';
|
|
28
|
+
import { ChatEmptyState } from '../../../chat/display/EmptyState.js';
|
|
29
|
+
import { InputPromptText } from '../../../chat/prompt/InputPromptText.js';
|
|
30
|
+
import { BlockFrame, CARD_RADIUS, Problem, asWords, isRecord } from './parts.js';
|
|
31
|
+
import { ownImplementation } from './implementation.js';
|
|
32
32
|
/** The defaults the catalog gives. */
|
|
33
33
|
const PLACEHOLDER = 'Ask anything';
|
|
34
34
|
const AVATARS = {
|
|
@@ -17,8 +17,8 @@ import { useMemo } from 'react';
|
|
|
17
17
|
import { Link, Text } from '@primer/react';
|
|
18
18
|
import { DownloadIcon } from '@primer/octicons-react';
|
|
19
19
|
import { Box } from '@datalayer/primer-addons';
|
|
20
|
-
import { BlockFrame, Problem } from './parts';
|
|
21
|
-
import { ownImplementation } from './implementation';
|
|
20
|
+
import { BlockFrame, Problem } from './parts.js';
|
|
21
|
+
import { ownImplementation } from './implementation.js';
|
|
22
22
|
/** The schemes a file is fetched by: the web's, or the file itself. */
|
|
23
23
|
const SCHEMES = /^(https?:\/\/|data:)/i;
|
|
24
24
|
/** How large a file is, in words. */
|
|
@@ -17,8 +17,8 @@ import { useMemo, useState } from 'react';
|
|
|
17
17
|
import { Button, Link, Text } from '@primer/react';
|
|
18
18
|
import { LinkExternalIcon } from '@primer/octicons-react';
|
|
19
19
|
import { Box } from '@datalayer/primer-addons';
|
|
20
|
-
import { BlockFrame, Problem, Quiet, asWords, isRecord } from './parts';
|
|
21
|
-
import { ownImplementation } from './implementation';
|
|
20
|
+
import { BlockFrame, Problem, Quiet, asWords, isRecord } from './parts.js';
|
|
21
|
+
import { ownImplementation } from './implementation.js';
|
|
22
22
|
/** The defaults the catalog gives. */
|
|
23
23
|
const TITLE = 'Sources';
|
|
24
24
|
const MAX_ITEMS = 5;
|
|
@@ -19,9 +19,9 @@ import { useId, useRef, useState } from 'react';
|
|
|
19
19
|
import { Button, Text } from '@primer/react';
|
|
20
20
|
import { UploadIcon } from '@primer/octicons-react';
|
|
21
21
|
import { Box } from '@datalayer/primer-addons';
|
|
22
|
-
import { BlockFrame, CARD_RADIUS, Problem, Quiet, isRecord } from './parts';
|
|
23
|
-
import { ownImplementation } from './implementation';
|
|
24
|
-
import { acceptsFile } from '../../../apps/apps/uploads';
|
|
22
|
+
import { BlockFrame, CARD_RADIUS, Problem, Quiet, isRecord } from './parts.js';
|
|
23
|
+
import { ownImplementation } from './implementation.js';
|
|
24
|
+
import { acceptsFile } from '../../../apps/apps/uploads.js';
|
|
25
25
|
/** The default the catalog gives `max_mb`. */
|
|
26
26
|
const MAX_MB = 25;
|
|
27
27
|
/**
|
|
@@ -25,10 +25,10 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
25
25
|
*/
|
|
26
26
|
import { useEffect, useMemo, useState } from 'react';
|
|
27
27
|
import { ReactorLazy } from '@datalayer/reactor/react';
|
|
28
|
-
import { BlockFrame, Problem, isRecord } from './parts';
|
|
29
|
-
import { ownImplementation } from './implementation';
|
|
28
|
+
import { BlockFrame, Problem, isRecord } from './parts.js';
|
|
29
|
+
import { ownImplementation } from './implementation.js';
|
|
30
30
|
/** The form and its checker (rjsf, Ajv), fetched when a form is first drawn. */
|
|
31
|
-
const loadSchemaForm = () => import('./SchemaForm');
|
|
31
|
+
const loadSchemaForm = () => import('./SchemaForm.js');
|
|
32
32
|
const formRefused = (error) => (_jsx(Problem, { children: `The form could not be drawn: ${error.message}` }));
|
|
33
33
|
/** The default the catalog gives `submit_label`. */
|
|
34
34
|
const SUBMIT_LABEL = 'Send';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Form } from '@datalayer/primer-rjsf';
|
|
3
3
|
import validator from '@rjsf/validator-ajv8';
|
|
4
|
-
import { FORM_WIDGETS } from './formWidgets';
|
|
4
|
+
import { FORM_WIDGETS } from './formWidgets.js';
|
|
5
5
|
export default function SchemaForm(props) {
|
|
6
6
|
return (_jsx(Form, { ...props, widgets: FORM_WIDGETS, validator: validator }));
|
|
7
7
|
}
|
|
@@ -15,8 +15,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
import { useEffect, useMemo, useState } from 'react';
|
|
16
16
|
import { Button, Text } from '@primer/react';
|
|
17
17
|
import { Box } from '@datalayer/primer-addons';
|
|
18
|
-
import { BlockFrame, Problem, Quiet, asWords, isRecord } from './parts';
|
|
19
|
-
import { ownImplementation } from './implementation';
|
|
18
|
+
import { BlockFrame, Problem, Quiet, asWords, isRecord } from './parts.js';
|
|
19
|
+
import { ownImplementation } from './implementation.js';
|
|
20
20
|
/** The default the catalog gives `page_size`. */
|
|
21
21
|
const PAGE_SIZE = 20;
|
|
22
22
|
const sameRow = (a, b) => a !== undefined && JSON.stringify(a) === JSON.stringify(b);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { createComponentImplementation, } from '@a2ui/react/v0_9';
|
|
6
|
-
import { ownComponentSchema } from './schema';
|
|
6
|
+
import { ownComponentSchema } from './schema.js';
|
|
7
7
|
export function ownImplementation(id, Render) {
|
|
8
8
|
const api = { name: id, schema: ownComponentSchema(id) };
|
|
9
9
|
return createComponentImplementation(api, Render);
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { OWN_COMPONENT_IDS } from './schema';
|
|
6
|
-
import { DRAWN_OWN_COMPONENTS } from './drawn';
|
|
7
|
-
import { Table } from './Table';
|
|
8
|
-
import { Chart } from './Chart';
|
|
9
|
-
import { FileUpload } from './FileUpload';
|
|
10
|
-
import { Chat } from './Chat';
|
|
11
|
-
import { Evidence } from './Evidence';
|
|
12
|
-
import { Form } from './Form';
|
|
13
|
-
import { Download } from './Download';
|
|
5
|
+
import { OWN_COMPONENT_IDS } from './schema.js';
|
|
6
|
+
import { DRAWN_OWN_COMPONENTS } from './drawn.js';
|
|
7
|
+
import { Table } from './Table.js';
|
|
8
|
+
import { Chart } from './Chart.js';
|
|
9
|
+
import { FileUpload } from './FileUpload.js';
|
|
10
|
+
import { Chat } from './Chat.js';
|
|
11
|
+
import { Evidence } from './Evidence.js';
|
|
12
|
+
import { Form } from './Form.js';
|
|
13
|
+
import { Download } from './Download.js';
|
|
14
14
|
const RENDERERS = {
|
|
15
15
|
Table,
|
|
16
16
|
Chart,
|
|
@@ -37,11 +37,11 @@ export const OWN_COMPONENTS = (() => {
|
|
|
37
37
|
}
|
|
38
38
|
return OWN_COMPONENT_IDS.map(id => RENDERERS[id]);
|
|
39
39
|
})();
|
|
40
|
-
export { OWN_COMPONENT_IDS, componentSchemaOf, ownComponentSchema, } from './schema';
|
|
41
|
-
export { DRAWN_OWN_COMPONENTS } from './drawn';
|
|
42
|
-
export { chartOption, chartPoints, chartSeries } from './Chart';
|
|
43
|
-
export { chatItems } from './Chat';
|
|
44
|
-
export { evidenceSources } from './Evidence';
|
|
45
|
-
export { downloadOf, sizeInWords } from './Download';
|
|
46
|
-
export { refusal as fileRefusal } from './FileUpload';
|
|
47
|
-
export { tableRows } from './Table';
|
|
40
|
+
export { OWN_COMPONENT_IDS, componentSchemaOf, ownComponentSchema, } from './schema.js';
|
|
41
|
+
export { DRAWN_OWN_COMPONENTS } from './drawn.js';
|
|
42
|
+
export { chartOption, chartPoints, chartSeries } from './Chart.js';
|
|
43
|
+
export { chatItems } from './Chat.js';
|
|
44
|
+
export { evidenceSources } from './Evidence.js';
|
|
45
|
+
export { downloadOf, sizeInWords } from './Download.js';
|
|
46
|
+
export { refusal as fileRefusal } from './FileUpload.js';
|
|
47
|
+
export { tableRows } from './Table.js';
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
*/
|
|
20
20
|
import { z } from 'zod/v3';
|
|
21
21
|
import { ActionSchema, DataBindingSchema } from '@a2ui/web_core/v0_9';
|
|
22
|
-
import { COMPONENT_CATALOGUE } from '../../../specs/ui';
|
|
22
|
+
import { COMPONENT_CATALOGUE } from '../../../specs/ui.js';
|
|
23
23
|
/** The components of Datalayer's own the catalog has, by id. */
|
|
24
24
|
export const OWN_COMPONENT_IDS = Object.values(COMPONENT_CATALOGUE)
|
|
25
25
|
.filter(component => !component.standard)
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export * from './A2uiMarkdownProvider';
|
|
6
|
-
export * from './A2uiSurfaceComposed';
|
|
7
|
-
export * from './styles';
|
|
8
|
-
export * from './visibleWhen';
|
|
9
|
-
export * from './visibility';
|
|
10
|
-
export * from './datalayer';
|
|
11
|
-
export * from './custom';
|
|
5
|
+
export * from './A2uiMarkdownProvider.js';
|
|
6
|
+
export * from './A2uiSurfaceComposed.js';
|
|
7
|
+
export * from './styles.js';
|
|
8
|
+
export * from './visibleWhen.js';
|
|
9
|
+
export * from './visibility.js';
|
|
10
|
+
export * from './datalayer/index.js';
|
|
11
|
+
export * from './custom/index.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { basicCatalog, useSignalValue, } from '@a2ui/react/v0_9';
|
|
3
3
|
import { Catalog, DynamicBooleanSchema, ResolvedBinding, isWritable, } from '@a2ui/web_core/v0_9';
|
|
4
|
-
import { VISIBLE_WHEN, isShown } from './visibility';
|
|
5
|
-
import { OWN_COMPONENTS } from './datalayer';
|
|
4
|
+
import { VISIBLE_WHEN, isShown } from './visibility.js';
|
|
5
|
+
import { OWN_COMPONENTS } from './datalayer/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Whether a node's resolved properties let it be drawn: no condition, or one
|
|
8
8
|
* that holds. A2UI resolves a dynamic property to a binding whether the block
|
|
@@ -7,7 +7,7 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
7
7
|
import { Spinner } from '@primer/react';
|
|
8
8
|
import { Box } from '@datalayer/primer-addons';
|
|
9
9
|
import { strip } from '@datalayer/core/lib/utils';
|
|
10
|
-
import { isCreatingAgent, } from '../../portable/runtimes';
|
|
10
|
+
import { isCreatingAgent, } from '../../portable/runtimes.js';
|
|
11
11
|
const MAX_AGENT_NAME_LENGTH = 32;
|
|
12
12
|
const toSandboxStatusUrl = (value) => {
|
|
13
13
|
const raw = String(value || '').trim();
|
|
@@ -9,8 +9,8 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
9
9
|
import { ChevronDownIcon, DownloadIcon, EyeClosedIcon, EyeIcon, TrashIcon, } from '@primer/octicons-react';
|
|
10
10
|
import { createMarkdownDownloadPayload, downloadTextPayload, formatDurationMs, formatRelativeTime, } from '@datalayer/core/lib/utils';
|
|
11
11
|
import { Streamdown } from 'streamdown';
|
|
12
|
-
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../../chat/messages/markdownWithoutHtml';
|
|
13
|
-
import { streamdownMarkdownStyles } from '../../chat/styles/streamdownStyles';
|
|
12
|
+
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../../chat/messages/markdownWithoutHtml.js';
|
|
13
|
+
import { streamdownMarkdownStyles } from '../../chat/styles/streamdownStyles.js';
|
|
14
14
|
const EVENT_KIND_VARIANT = {
|
|
15
15
|
'agent-start-requested': 'attention',
|
|
16
16
|
'agent-assigned': 'accent',
|
|
@@ -9,8 +9,8 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
9
9
|
import { ChevronDownIcon, DownloadIcon, EyeClosedIcon, EyeIcon, TrashIcon, } from '@primer/octicons-react';
|
|
10
10
|
import { createMarkdownDownloadPayload, downloadTextPayload, formatDurationMs, formatRelativeTime, } from '@datalayer/core/lib/utils';
|
|
11
11
|
import { Streamdown } from 'streamdown';
|
|
12
|
-
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../../chat/messages/markdownWithoutHtml';
|
|
13
|
-
import { streamdownMarkdownStyles } from '../../chat/styles/streamdownStyles';
|
|
12
|
+
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../../chat/messages/markdownWithoutHtml.js';
|
|
13
|
+
import { streamdownMarkdownStyles } from '../../chat/styles/streamdownStyles.js';
|
|
14
14
|
export function OutputCard({ event, onToggleRead, onDelete, onOpenAgent, }) {
|
|
15
15
|
const [isOutputExpanded, setIsOutputExpanded] = useState(false);
|
|
16
16
|
const outputText = event.kind === 'agent-output' && event.payload?.outputs
|
|
@@ -8,6 +8,6 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module components/cards
|
|
10
10
|
*/
|
|
11
|
-
export * from './NotificationEventCard';
|
|
12
|
-
export * from './OutputCard';
|
|
13
|
-
export * from './ToolApprovalCard';
|
|
11
|
+
export * from './NotificationEventCard.js';
|
|
12
|
+
export * from './OutputCard.js';
|
|
13
|
+
export * from './ToolApprovalCard.js';
|
|
@@ -4,9 +4,9 @@ import { Dialog } from '@primer/react/experimental';
|
|
|
4
4
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
5
5
|
import { JSONExt } from '@lumino/coreutils';
|
|
6
6
|
import { kernelConnectionExecutor, listKernelVariables, } from '@datalayer/jupyter-react';
|
|
7
|
-
import { RuntimeSnippetsFacade } from '../../jupyter';
|
|
8
|
-
import { transferableVariables } from './CodeSandboxVariables';
|
|
9
|
-
import { CodeSandboxCellVariables } from './CodeSandboxCellVariables';
|
|
7
|
+
import { RuntimeSnippetsFacade } from '../../jupyter/index.js';
|
|
8
|
+
import { transferableVariables } from './CodeSandboxVariables.js';
|
|
9
|
+
import { CodeSandboxCellVariables } from './CodeSandboxCellVariables.js';
|
|
10
10
|
/**
|
|
11
11
|
* Dialog to define the runtime cell variables to transfer
|
|
12
12
|
*/
|
|
@@ -7,19 +7,19 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
7
7
|
import { useJupyterReactStore } from '@datalayer/jupyter-react';
|
|
8
8
|
import { useNavigate } from '@datalayer/core/lib/hooks';
|
|
9
9
|
import { NO_RUNTIME_AVAILABLE_LABEL } from '@datalayer/core/lib/i18n';
|
|
10
|
-
import { isCodeSandboxProviderAvailable } from './codeSandboxProviders';
|
|
11
|
-
import { CodeSandboxVariant, codeSandboxVariantOf, codeSandboxVariantTitle, } from '../../models/CodeSandboxVariant';
|
|
12
|
-
import { CodeSandboxEnvironmentSelect, } from './CodeSandboxEnvironmentSelect';
|
|
13
|
-
import { codeSandboxEnvironmentOptions, codeSandboxEnvironmentVersion, firstLaunchableCodeSandboxEnvironment, libraryEnvironmentOf, } from './codeSandboxEnvironments';
|
|
14
|
-
import { getEnvironmentPublication } from '../../api/runtimes/environments';
|
|
15
|
-
import { getCodeSandboxGivenName, listCodeSandboxGivenNames, nextCodeSandboxGivenName, setCodeSandboxGivenName, } from './CodeSandboxNames';
|
|
16
|
-
import { iamStore, runtimesStore, useCoreStore, useIAMStore, } from '../../state/substates';
|
|
17
|
-
import { createRuntime as createRuntimeRecord } from '../../runtimes/actions';
|
|
10
|
+
import { isCodeSandboxProviderAvailable } from './codeSandboxProviders.js';
|
|
11
|
+
import { CodeSandboxVariant, codeSandboxVariantOf, codeSandboxVariantTitle, } from '../../models/CodeSandboxVariant.js';
|
|
12
|
+
import { CodeSandboxEnvironmentSelect, } from './CodeSandboxEnvironmentSelect.js';
|
|
13
|
+
import { codeSandboxEnvironmentOptions, codeSandboxEnvironmentVersion, firstLaunchableCodeSandboxEnvironment, libraryEnvironmentOf, } from './codeSandboxEnvironments.js';
|
|
14
|
+
import { getEnvironmentPublication } from '../../api/runtimes/environments.js';
|
|
15
|
+
import { getCodeSandboxGivenName, listCodeSandboxGivenNames, nextCodeSandboxGivenName, setCodeSandboxGivenName, } from './CodeSandboxNames.js';
|
|
16
|
+
import { iamStore, runtimesStore, useCoreStore, useIAMStore, } from '../../state/substates/index.js';
|
|
17
|
+
import { createRuntime as createRuntimeRecord } from '../../runtimes/actions.js';
|
|
18
18
|
import { createNotebook, sleep } from '@datalayer/core/lib/utils';
|
|
19
19
|
import { Markdown } from '@datalayer/core/lib/components/display';
|
|
20
20
|
import { Timer } from '@datalayer/core/lib/components/progress';
|
|
21
21
|
import { FlashClosable } from '@datalayer/core/lib/components/flashes';
|
|
22
|
-
import { creditsLimitFor, NewCodeSandboxControls, useNewCodeSandboxAllowance, } from './NewCodeSandboxControls';
|
|
22
|
+
import { creditsLimitFor, NewCodeSandboxControls, useNewCodeSandboxAllowance, } from './NewCodeSandboxControls.js';
|
|
23
23
|
/**
|
|
24
24
|
* The text a fragment of markup reads as.
|
|
25
25
|
*
|
|
@@ -7,15 +7,15 @@ import CloudUploadIcon from '@datalayer/icons-react/data1/CloudUploadIcon';
|
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { CpuIcon } from '@primer/octicons-react';
|
|
9
9
|
import { BrowserIcon, LaptopSimpleIcon } from '@datalayer/icons-react';
|
|
10
|
-
import { CreditsIndicator } from '../progress';
|
|
11
|
-
import { isRuntimeRemote, } from '../../runtimes';
|
|
12
|
-
import { useIAMStore } from '../../state/substates';
|
|
13
|
-
import { getGroupedCodeSandboxDescs, } from './CodeSandboxUtils';
|
|
14
|
-
import { listCodeSandboxGivenNames, nextCodeSandboxGivenName, } from './CodeSandboxNames';
|
|
15
|
-
import { codeSandboxVariantTitle } from '../../models/CodeSandboxVariant';
|
|
16
|
-
import { creditsLimitFor, NewCodeSandboxControls, useNewCodeSandboxAllowance, } from './NewCodeSandboxControls';
|
|
17
|
-
import { CodeSandboxVariables, useCodeSandboxVariablesTransfer, } from './CodeSandboxVariables';
|
|
18
|
-
import { CodeSandboxEnvironmentSelect, } from './CodeSandboxEnvironmentSelect';
|
|
10
|
+
import { CreditsIndicator } from '../progress/index.js';
|
|
11
|
+
import { isRuntimeRemote, } from '../../runtimes/index.js';
|
|
12
|
+
import { useIAMStore } from '../../state/substates/index.js';
|
|
13
|
+
import { getGroupedCodeSandboxDescs, } from './CodeSandboxUtils.js';
|
|
14
|
+
import { listCodeSandboxGivenNames, nextCodeSandboxGivenName, } from './CodeSandboxNames.js';
|
|
15
|
+
import { codeSandboxVariantTitle } from '../../models/CodeSandboxVariant.js';
|
|
16
|
+
import { creditsLimitFor, NewCodeSandboxControls, useNewCodeSandboxAllowance, } from './NewCodeSandboxControls.js';
|
|
17
|
+
import { CodeSandboxVariables, useCodeSandboxVariablesTransfer, } from './CodeSandboxVariables.js';
|
|
18
|
+
import { CodeSandboxEnvironmentSelect, } from './CodeSandboxEnvironmentSelect.js';
|
|
19
19
|
/**
|
|
20
20
|
* Maximal runtime display name length after which it is trimmed.
|
|
21
21
|
*/
|
|
@@ -3,14 +3,14 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
3
3
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
4
4
|
import { ActionList } from '@primer/react';
|
|
5
5
|
import { CloudUploadIcon } from '@datalayer/icons-react';
|
|
6
|
-
import { useCoreStore, useIAMStore } from '../../state/substates';
|
|
7
|
-
import { isRuntimeRemote } from '../../runtimes';
|
|
8
|
-
import { RuntimeSnippetsFacade } from '../../jupyter';
|
|
6
|
+
import { useCoreStore, useIAMStore } from '../../state/substates/index.js';
|
|
7
|
+
import { isRuntimeRemote } from '../../runtimes/index.js';
|
|
8
|
+
import { RuntimeSnippetsFacade } from '../../jupyter/index.js';
|
|
9
9
|
import { ExternalTokenSilentLogin } from '@datalayer/core/lib/components/iam';
|
|
10
|
-
import { SnippetDialog } from '../../components/snippets/SnippetDialog';
|
|
11
|
-
import { CodeSandboxPicker, } from './CodeSandboxPicker';
|
|
12
|
-
import { CodeSandboxLauncher } from './CodeSandboxLauncher';
|
|
13
|
-
import { CodeSandboxCellVariablesDialog } from './CodeSandboxCellVariablesDialog';
|
|
10
|
+
import { SnippetDialog } from '../../components/snippets/SnippetDialog.js';
|
|
11
|
+
import { CodeSandboxPicker, } from './CodeSandboxPicker.js';
|
|
12
|
+
import { CodeSandboxLauncher } from './CodeSandboxLauncher.js';
|
|
13
|
+
import { CodeSandboxCellVariablesDialog } from './CodeSandboxCellVariablesDialog.js';
|
|
14
14
|
/**
|
|
15
15
|
* Runtime picker component for a cell.
|
|
16
16
|
*/
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { nullTranslator } from '@jupyterlab/translation';
|
|
6
6
|
const ASSIGN_NEW_RUNTIME_LABEL = 'Assign a new Code Sandbox';
|
|
7
|
-
import { ensureCodeSandboxGivenName } from './CodeSandboxNames';
|
|
8
|
-
import { isCodeSandboxProviderAvailable } from './codeSandboxProviders';
|
|
9
|
-
import { CodeSandboxVariant, codeSandboxVariantOf, } from '../../models/CodeSandboxVariant';
|
|
7
|
+
import { ensureCodeSandboxGivenName } from './CodeSandboxNames.js';
|
|
8
|
+
import { isCodeSandboxProviderAvailable } from './codeSandboxProviders.js';
|
|
9
|
+
import { CodeSandboxVariant, codeSandboxVariantOf, } from '../../models/CodeSandboxVariant.js';
|
|
10
10
|
const ASSIGN_EXISTING_REMOTE_RUNTIME_LABEL = 'Assign an existing Remote Code Sandbox';
|
|
11
11
|
const ASSIGN_EXISTING_RUNTIME_LABEL = 'Assign an existing Code Sandbox';
|
|
12
12
|
/**
|