@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
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense, lazy } from 'react';
|
|
3
3
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
4
|
-
import { LoopChatComposer, LoopPromptPanel, } from '../../core';
|
|
4
|
+
import { LoopChatComposer, LoopPromptPanel, } from '../../core/index.js';
|
|
5
5
|
export const INPUT_PROMPT_PLUGIN_NAME = '@datalayer/loop-plugin-input-prompt';
|
|
6
|
-
const LazyComposerView = lazy(() => import('./ComposerView'));
|
|
6
|
+
const LazyComposerView = lazy(() => import('./ComposerView.js'));
|
|
7
7
|
/** The lazy boundary, so the point's consumers need no Suspense of theirs. */
|
|
8
8
|
function ComposerView(props) {
|
|
9
9
|
return (_jsx(Suspense, { fallback: null, children: _jsx(LazyComposerView, { ...props }) }));
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @module apps/plugins/models
|
|
9
9
|
*/
|
|
10
10
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
11
|
-
import { LoopCommand } from '../../core';
|
|
11
|
+
import { LoopCommand } from '../../core/index.js';
|
|
12
12
|
export const MODELS_PLUGIN_NAME = '@datalayer/loop-plugin-models';
|
|
13
13
|
/*
|
|
14
14
|
* No header chip any more.
|
|
@@ -3,11 +3,11 @@ import { useEffect, useMemo, useRef } from 'react';
|
|
|
3
3
|
import { useContributions, useSignalValue } from '@datalayer/reactor/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { Text } from '@primer/react';
|
|
6
|
-
import { EphemeralNotebook } from '../../../chat/notebook/EphemeralNotebook';
|
|
7
|
-
import { LoopNotebookToolbar, LoopNotebookToolbarItem, LoopOpeningNotebook, } from '../../core';
|
|
8
|
-
import { useEditorToolbar } from '../../core/toolbar';
|
|
9
|
-
import { openingCode, openingNotebook } from './openingNotebook';
|
|
10
|
-
import { useSandboxService } from '../agents';
|
|
6
|
+
import { EphemeralNotebook } from '../../../chat/notebook/EphemeralNotebook.js';
|
|
7
|
+
import { LoopNotebookToolbar, LoopNotebookToolbarItem, LoopOpeningNotebook, } from '../../core/index.js';
|
|
8
|
+
import { useEditorToolbar } from '../../core/toolbar.js';
|
|
9
|
+
import { openingCode, openingNotebook } from './openingNotebook.js';
|
|
10
|
+
import { useSandboxService } from '../agents/index.js';
|
|
11
11
|
export default function NotebookView({ workspace, }) {
|
|
12
12
|
const service = useSandboxService();
|
|
13
13
|
const snapshot = useSignalValue(service.snapshot);
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { RowsIcon } from '@primer/octicons-react';
|
|
19
19
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
20
|
-
import { LoopCommand, LoopEditorView, LoopFrontendTool, LoopOpeningNotebook, requestSurface, LoopNotebookToolbar, } from '../../core';
|
|
21
|
-
import { AgentsPlugin } from '../agents';
|
|
20
|
+
import { LoopCommand, LoopEditorView, LoopFrontendTool, LoopOpeningNotebook, requestSurface, LoopNotebookToolbar, } from '../../core/index.js';
|
|
21
|
+
import { AgentsPlugin } from '../agents/index.js';
|
|
22
22
|
export const NOTEBOOK_PLUGIN_NAME = '@datalayer/loop-plugin-notebook';
|
|
23
23
|
export const NotebookPlugin = definePlugin({
|
|
24
24
|
name: NOTEBOOK_PLUGIN_NAME,
|
|
@@ -49,7 +49,7 @@ export const NotebookPlugin = definePlugin({
|
|
|
49
49
|
order: 10,
|
|
50
50
|
canOpen: workspace => workspace.sandbox.state === 'running',
|
|
51
51
|
unavailableReason: () => 'Needs a running sandbox',
|
|
52
|
-
load: () => import('./NotebookView'),
|
|
52
|
+
load: () => import('./NotebookView.js'),
|
|
53
53
|
}, { id: 'notebook', order: 10 }),
|
|
54
54
|
contribution(LoopCommand, {
|
|
55
55
|
name: 'notebook',
|
|
@@ -79,7 +79,7 @@ export const NotebookPlugin = definePlugin({
|
|
|
79
79
|
* the moment these land — the same arrangement as the document's
|
|
80
80
|
* lexical tools.
|
|
81
81
|
*/
|
|
82
|
-
void import('../../../tools/adapters/agent-runtimes/notebookHooks').then(({ createNotebookTools }) => {
|
|
82
|
+
void import('../../../tools/adapters/agent-runtimes/notebookHooks.js').then(({ createNotebookTools }) => {
|
|
83
83
|
ctx.contribute(LoopFrontendTool, {
|
|
84
84
|
id: 'notebook-tools',
|
|
85
85
|
tools: workspace => createNotebookTools(workspace.surfaceId),
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
* @module apps/plugins/notebook-toolbar
|
|
26
26
|
*/
|
|
27
27
|
import { defineLazyPlugin, onContributionPoint } from '@datalayer/reactor';
|
|
28
|
-
import { LoopNotebookToolbar, LoopNotebookToolbarItem } from '../../core';
|
|
29
|
-
import { NOTEBOOK_TOOLBAR_PLUGIN_NAME } from './names';
|
|
28
|
+
import { LoopNotebookToolbar, LoopNotebookToolbarItem } from '../../core/index.js';
|
|
29
|
+
import { NOTEBOOK_TOOLBAR_PLUGIN_NAME } from './names.js';
|
|
30
30
|
export { NOTEBOOK_TOOLBAR_PLUGIN_NAME };
|
|
31
31
|
export const NotebookToolbarPlugin = defineLazyPlugin({
|
|
32
32
|
name: NOTEBOOK_TOOLBAR_PLUGIN_NAME,
|
|
@@ -40,6 +40,6 @@ export const NotebookToolbarPlugin = defineLazyPlugin({
|
|
|
40
40
|
// the graph shows the point — and the chat's contributions to it — before
|
|
41
41
|
// this plugin's code has been fetched.
|
|
42
42
|
contributionPoints: [LoopNotebookToolbarItem],
|
|
43
|
-
load: () => import('./plugin'),
|
|
43
|
+
load: () => import('./plugin.js'),
|
|
44
44
|
});
|
|
45
45
|
export default NotebookToolbarPlugin;
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
* @module apps/plugins/notebook-toolbar/plugin
|
|
13
13
|
*/
|
|
14
14
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
15
|
-
import { LoopNotebookToolbar } from '../../core';
|
|
16
|
-
import { notebookToolbarItems } from './items';
|
|
17
|
-
import { NOTEBOOK_TOOLBAR_PLUGIN_NAME } from './names';
|
|
15
|
+
import { LoopNotebookToolbar } from '../../core/index.js';
|
|
16
|
+
import { notebookToolbarItems } from './items.js';
|
|
17
|
+
import { NOTEBOOK_TOOLBAR_PLUGIN_NAME } from './names.js';
|
|
18
18
|
export const NotebookToolbarPlugin = definePlugin({
|
|
19
19
|
name: NOTEBOOK_TOOLBAR_PLUGIN_NAME,
|
|
20
20
|
contributes: [
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
// The same icon the notebook's own editor view declares, so the footer
|
|
15
15
|
// button and the selector entry read as one thing.
|
|
16
16
|
import { RowsIcon } from '@primer/octicons-react';
|
|
17
|
-
import { defineViewPlugin } from '../view-switch';
|
|
17
|
+
import { defineViewPlugin } from '../view-switch/index.js';
|
|
18
18
|
export const NOTEBOOK_VIEW_PLUGIN_NAME = '@datalayer/loop-plugin-notebook-view';
|
|
19
19
|
export const NotebookViewPlugin = defineViewPlugin({
|
|
20
20
|
key: 'notebook',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useRef, useState } from 'react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
|
-
import { paneOpening } from '../../shell/paneMotion';
|
|
4
|
+
import { paneOpening } from '../../shell/paneMotion.js';
|
|
5
5
|
/** The conversation's share of the width when the split opens. */
|
|
6
6
|
export const SPLIT_DEFAULT_SHARE = 0.4;
|
|
7
7
|
/** The narrowest and widest the conversation may be made. */
|
|
@@ -5,12 +5,12 @@ import { IconButton, Text } from '@primer/react';
|
|
|
5
5
|
import { CheckIcon, CommentDiscussionIcon, CopyIcon, XIcon, } from '@primer/octicons-react';
|
|
6
6
|
import { useContributions, useSignalValue } from '@datalayer/reactor/react';
|
|
7
7
|
import { signal } from '@datalayer/reactor';
|
|
8
|
-
import { TurnFooter } from '../../../chat/messages/TurnFooter';
|
|
9
|
-
import { LoopChatTurn } from '../../core';
|
|
8
|
+
import { TurnFooter } from '../../../chat/messages/TurnFooter.js';
|
|
9
|
+
import { LoopChatTurn } from '../../core/index.js';
|
|
10
10
|
import { Streamdown } from 'streamdown';
|
|
11
|
-
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../../../chat/messages/markdownWithoutHtml';
|
|
12
|
-
import { streamdownMarkdownStyles } from '../../../chat/styles/streamdownStyles';
|
|
13
|
-
import { normalizeAssistantMarkdown } from '../../../chat/messages/assistantMarkdown';
|
|
11
|
+
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../../../chat/messages/markdownWithoutHtml.js';
|
|
12
|
+
import { streamdownMarkdownStyles } from '../../../chat/styles/streamdownStyles.js';
|
|
13
|
+
import { normalizeAssistantMarkdown } from '../../../chat/messages/assistantMarkdown.js';
|
|
14
14
|
import { openPagePanel, pageLayoutSheet, } from '@datalayer/primer-addons/lib/reactor';
|
|
15
15
|
/* A signal to read when no chat contributed a turn: the hook needs one. */
|
|
16
16
|
const NO_TURN = signal({ id: 0, status: 'idle' });
|
|
@@ -3,17 +3,17 @@ import { CommentDiscussionIcon } from '@primer/octicons-react';
|
|
|
3
3
|
import { definePlugin, signal } from '@datalayer/reactor';
|
|
4
4
|
import { useContributions, useSignalValue } from '@datalayer/reactor/react';
|
|
5
5
|
import { PageLayout, PagePanelToggle, openPagePanel, } from '@datalayer/primer-addons/lib/reactor';
|
|
6
|
-
import { ChatViewModeToggle } from '../../../chat/header/ChatViewModeToggle';
|
|
7
|
-
import { LoopChatLayout, LoopChatTurn, LoopPromptPanel, LoopSlots, } from '../../core';
|
|
8
|
-
import { TurnPanel } from './TurnPanel';
|
|
9
|
-
import { SplitLayout } from './SplitLayout';
|
|
6
|
+
import { ChatViewModeToggle } from '../../../chat/header/ChatViewModeToggle.js';
|
|
7
|
+
import { LoopChatLayout, LoopChatTurn, LoopPromptPanel, LoopSlots, } from '../../core/index.js';
|
|
8
|
+
import { TurnPanel } from './TurnPanel.js';
|
|
9
|
+
import { SplitLayout } from './SplitLayout.js';
|
|
10
10
|
/*
|
|
11
11
|
* The layout's state is primer-addons', re-exported under the names the
|
|
12
12
|
* Loop always had: a host that opened the conversation panel by calling
|
|
13
13
|
* `openConversationPanel()` keeps doing so.
|
|
14
14
|
*/
|
|
15
15
|
export { pageLayoutPanelOpen, pageLayoutSheet, openPagePanel as openConversationPanel, } from '@datalayer/primer-addons/lib/reactor';
|
|
16
|
-
export { SplitLayout, SPLIT_DEFAULT_SHARE, SPLIT_KEY_STEP, SPLIT_MAX_SHARE, SPLIT_MIN_SHARE, clampSplitShare, splitShareForKey, } from './SplitLayout';
|
|
16
|
+
export { SplitLayout, SPLIT_DEFAULT_SHARE, SPLIT_KEY_STEP, SPLIT_MAX_SHARE, SPLIT_MIN_SHARE, clampSplitShare, splitShareForKey, } from './SplitLayout.js';
|
|
17
17
|
export const LOOP_PAGE_LAYOUT_PLUGIN_NAME = '@datalayer/loop-plugin-page-layout';
|
|
18
18
|
/* A signal to read when no chat contributed a turn: the hook needs one. */
|
|
19
19
|
const NO_TURN = signal({ id: 0, status: 'idle' });
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { contribution, definePlugin, } from '@datalayer/reactor';
|
|
6
|
-
import { LoopViewType } from '../../core';
|
|
6
|
+
import { LoopViewType } from '../../core/index.js';
|
|
7
7
|
/** Define one PAP workspace view as a Reactor plugin. */
|
|
8
8
|
export function definePapExamplePlugin(options) {
|
|
9
9
|
return definePlugin({
|
|
@@ -4,7 +4,7 @@ import { Button, Flash, Heading, Text } from '@primer/react';
|
|
|
4
4
|
import { CopyIcon, LinkExternalIcon } from '@primer/octicons-react';
|
|
5
5
|
import { Box } from '@datalayer/primer-addons';
|
|
6
6
|
import QRCode from 'react-qr-code';
|
|
7
|
-
import { PAP_SIGN_IN_CHANNEL, PAP_SIGN_IN_WORDS, readPapSignIn, signInReturnOf, } from './signIn';
|
|
7
|
+
import { PAP_SIGN_IN_CHANNEL, PAP_SIGN_IN_WORDS, readPapSignIn, signInReturnOf, } from './signIn.js';
|
|
8
8
|
export function PapSignInCard({ context, send, }) {
|
|
9
9
|
const [copied, setCopied] = useState(false);
|
|
10
10
|
const [sent, setSent] = useState(false);
|
|
@@ -25,9 +25,9 @@ import { createElement, useEffect } from 'react';
|
|
|
25
25
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
26
26
|
import { Renderers, ToolBindings } from '@datalayer/reactor/ui';
|
|
27
27
|
import { defineRenderer, } from '@datalayer/reactor/ui/react';
|
|
28
|
-
import { LoopSlots } from '../../core';
|
|
29
|
-
import { PapSignInCard } from './PapSignInCard';
|
|
30
|
-
import { PAP_SIGN_IN_TOOL } from './signIn';
|
|
28
|
+
import { LoopSlots } from '../../core/index.js';
|
|
29
|
+
import { PapSignInCard } from './PapSignInCard.js';
|
|
30
|
+
import { PAP_SIGN_IN_TOOL } from './signIn.js';
|
|
31
31
|
export const PAP_SIGN_IN_PLUGIN_NAME = '@datalayer/loop-plugin-pap-sign-in';
|
|
32
32
|
/** The display type of a sign-in waiting for the person. */
|
|
33
33
|
export const PAP_SIGN_IN_TYPE = 'application/vnd.datalayer.pap.sign-in+json';
|
|
@@ -103,6 +103,6 @@ export function createPapSignInPlugin() {
|
|
|
103
103
|
}
|
|
104
104
|
/** The instance the preset mounts. */
|
|
105
105
|
export const PapSignInPlugin = createPapSignInPlugin();
|
|
106
|
-
export { PapSignInCard } from './PapSignInCard';
|
|
107
|
-
export { PAP_SIGN_IN_TOOL, PAP_SIGN_IN_WORDS, isPapSignInTool, readPapSignIn, safeSignInUrl, } from './signIn';
|
|
106
|
+
export { PapSignInCard } from './PapSignInCard.js';
|
|
107
|
+
export { PAP_SIGN_IN_TOOL, PAP_SIGN_IN_WORDS, isPapSignInTool, readPapSignIn, safeSignInUrl, } from './signIn.js';
|
|
108
108
|
export default PapSignInPlugin;
|
|
@@ -25,7 +25,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
25
25
|
*/
|
|
26
26
|
import { definePlugin } from '@datalayer/reactor';
|
|
27
27
|
import { PluginsManagerView } from '@datalayer/reactor-manager';
|
|
28
|
-
import { LoopSlots } from '../../core';
|
|
28
|
+
import { LoopSlots } from '../../core/index.js';
|
|
29
29
|
export const PLUGINS_PANEL_PLUGIN_NAME = '@datalayer/loop-plugin-plugins-panel';
|
|
30
30
|
/**
|
|
31
31
|
* How wide the panel is, and the aside around it.
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
* @module apps/plugins/prompt
|
|
24
24
|
*/
|
|
25
25
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
26
|
-
import { LoopCommand, LoopSlots, focusPrompt } from '../../core';
|
|
27
|
-
import { NewChatAction } from './NewChatAction';
|
|
26
|
+
import { LoopCommand, LoopSlots, focusPrompt } from '../../core/index.js';
|
|
27
|
+
import { NewChatAction } from './NewChatAction.js';
|
|
28
28
|
export const PROMPT_PLUGIN_NAME = '@datalayer/loop-plugin-prompt';
|
|
29
29
|
export const PromptPlugin = definePlugin({
|
|
30
30
|
name: PROMPT_PLUGIN_NAME,
|
|
@@ -69,5 +69,5 @@ export const PromptPlugin = definePlugin({
|
|
|
69
69
|
],
|
|
70
70
|
}),
|
|
71
71
|
});
|
|
72
|
-
export { focusPrompt, onPromptFocusRequest } from '../../core';
|
|
72
|
+
export { focusPrompt, onPromptFocusRequest } from '../../core/index.js';
|
|
73
73
|
export default PromptPlugin;
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
* @module apps/plugins/shell/editorChoice
|
|
22
22
|
*/
|
|
23
23
|
import { NONE_VIEW, chooseView, getViewChoice, nextView, seedViewChoice, setViewAnnouncer, setViewOptions, subscribeViewChoice, } from '@datalayer/reactor-shell';
|
|
24
|
-
import { requestSurface } from '../../core/surfaceRequests';
|
|
24
|
+
import { requestSurface } from '../../core/surfaceRequests.js';
|
|
25
25
|
/*
|
|
26
26
|
* Wired at import, not only at plugin start: the `/editor` command is a
|
|
27
27
|
* plain contribution that can be run without a reactor around it — the tests
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { configurePlugin, contribution, definePlugin, } from '@datalayer/reactor';
|
|
3
3
|
import { ShellPlugin as ReactorShellPlugin, ViewSelector, } from '@datalayer/reactor-shell';
|
|
4
|
-
import { LoopCommand, LoopEditorView, LoopSlots, LoopViewType, canOpenView, requestSurface, } from '../../core';
|
|
5
|
-
import { NONE_EDITOR, chooseEditor, getEditorChoice, nextEditor, seedEditorChoice, } from './editorChoice';
|
|
6
|
-
import { useEditorPreviews } from './useEditorPreviews';
|
|
4
|
+
import { LoopCommand, LoopEditorView, LoopSlots, LoopViewType, canOpenView, requestSurface, } from '../../core/index.js';
|
|
5
|
+
import { NONE_EDITOR, chooseEditor, getEditorChoice, nextEditor, seedEditorChoice, } from './editorChoice.js';
|
|
6
|
+
import { useEditorPreviews } from './useEditorPreviews.js';
|
|
7
7
|
export const SHELL_PLUGIN_NAME = '@datalayer/loop-plugin-shell';
|
|
8
8
|
/** How a loop editor contribution reads as the generic selector's view. */
|
|
9
9
|
function describeEditor(value, context) {
|
|
@@ -132,7 +132,7 @@ export const ShellPlugin = definePlugin({
|
|
|
132
132
|
};
|
|
133
133
|
},
|
|
134
134
|
});
|
|
135
|
-
export { NONE_EDITOR, chooseEditor, getEditorChoice, nextEditor, seedEditorChoice, setEditorOptions, subscribeEditorChoice, } from './editorChoice';
|
|
135
|
+
export { NONE_EDITOR, chooseEditor, getEditorChoice, nextEditor, seedEditorChoice, setEditorOptions, subscribeEditorChoice, } from './editorChoice.js';
|
|
136
136
|
/** The loop's selector, for a host that renders it somewhere of its own. */
|
|
137
137
|
export { EditorSelectorComponent as EditorSelector };
|
|
138
138
|
/** @deprecated The editors plugin grew into the shell plugin; same object. */
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect, useMemo, useState, useSyncExternalStore } from 'react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { Text } from '@primer/react';
|
|
5
|
-
import { getEditorChoice, subscribeEditorChoice } from './editorChoice';
|
|
5
|
+
import { getEditorChoice, subscribeEditorChoice } from './editorChoice.js';
|
|
6
6
|
let jupyterReact = null;
|
|
7
7
|
function loadJupyterReact() {
|
|
8
8
|
return jupyterReact
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Text } from '@primer/react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
|
-
import { displayLine, unifiedDiffLines, } from '../../../portable';
|
|
4
|
+
import { displayLine, unifiedDiffLines, } from '../../../portable/index.js';
|
|
5
5
|
const COLOURS = {
|
|
6
6
|
context: { bg: 'transparent', fg: 'fg.muted', sign: ' ' },
|
|
7
7
|
add: { bg: 'success.subtle', fg: 'success.fg', sign: '+' },
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Text } from '@primer/react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
|
-
import { displayLine } from '../../../portable';
|
|
4
|
+
import { displayLine } from '../../../portable/index.js';
|
|
5
5
|
export function TerminalCard({ display }) {
|
|
6
6
|
const failed = display.exitCode !== null && display.exitCode !== 0;
|
|
7
7
|
return (_jsxs(Box, { "data-shield-display": "terminal", "data-exit-code": display.exitCode === null ? 'running' : display.exitCode, sx: {
|
|
@@ -22,9 +22,9 @@ import { createElement } from 'react';
|
|
|
22
22
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
23
23
|
import { Renderers } from '@datalayer/reactor/ui';
|
|
24
24
|
import { defineRenderer, } from '@datalayer/reactor/ui/react';
|
|
25
|
-
import { protocolDisplayOf, SHIELD_DIFF_TYPE, SHIELD_TERMINAL_TYPE, } from '../../../portable';
|
|
26
|
-
import { DiffCard } from './DiffCard';
|
|
27
|
-
import { TerminalCard } from './TerminalCard';
|
|
25
|
+
import { protocolDisplayOf, SHIELD_DIFF_TYPE, SHIELD_TERMINAL_TYPE, } from '../../../portable/index.js';
|
|
26
|
+
import { DiffCard } from './DiffCard.js';
|
|
27
|
+
import { TerminalCard } from './TerminalCard.js';
|
|
28
28
|
export const SHIELD_DISPLAYS_PLUGIN_NAME = '@datalayer/loop-plugin-shield-displays';
|
|
29
29
|
function Diff({ display, context, }) {
|
|
30
30
|
const read = protocolDisplayOf(display);
|
|
@@ -58,6 +58,6 @@ export function createShieldDisplaysPlugin() {
|
|
|
58
58
|
}
|
|
59
59
|
/** The instance the preset mounts. */
|
|
60
60
|
export const ShieldDisplaysPlugin = createShieldDisplaysPlugin();
|
|
61
|
-
export { DiffCard } from './DiffCard';
|
|
62
|
-
export { TerminalCard } from './TerminalCard';
|
|
61
|
+
export { DiffCard } from './DiffCard.js';
|
|
62
|
+
export { TerminalCard } from './TerminalCard.js';
|
|
63
63
|
export default ShieldDisplaysPlugin;
|
|
@@ -2,9 +2,9 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { Tooltip } from '@primer/react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { useOptionalReactorPlatform } from '@datalayer/reactor/react';
|
|
5
|
-
import { useAgentRuntimeActiveSubagentToolCallId, useAgentRuntimeSubagentActivity, } from '../../../stores';
|
|
6
|
-
import { agentIcon } from '../agents/agentIcons';
|
|
7
|
-
import { AGENTS_PLUGIN_NAME } from '../agents/plugin';
|
|
5
|
+
import { useAgentRuntimeActiveSubagentToolCallId, useAgentRuntimeSubagentActivity, } from '../../../stores/index.js';
|
|
6
|
+
import { agentIcon } from '../agents/agentIcons.js';
|
|
7
|
+
import { AGENTS_PLUGIN_NAME } from '../agents/plugin.js';
|
|
8
8
|
export const PULSE_ANIMATION = 'loop-subagent-pulse';
|
|
9
9
|
const KEYFRAMES = `@keyframes ${PULSE_ANIMATION} {
|
|
10
10
|
0%, 100% { opacity: 0.25; }
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
* @module apps/plugins/subagent-activity
|
|
15
15
|
*/
|
|
16
16
|
import { definePlugin } from '@datalayer/reactor';
|
|
17
|
-
import { LoopSlots } from '../../core';
|
|
18
|
-
import { InputPromptPlugin } from '../input-prompt';
|
|
19
|
-
import { SubagentPulse } from './SubagentPulse';
|
|
17
|
+
import { LoopSlots } from '../../core/index.js';
|
|
18
|
+
import { InputPromptPlugin } from '../input-prompt/index.js';
|
|
19
|
+
import { SubagentPulse } from './SubagentPulse.js';
|
|
20
20
|
export const SUBAGENT_ACTIVITY_PLUGIN_NAME = '@datalayer/loop-plugin-subagent-activity';
|
|
21
21
|
export const SubagentActivityPlugin = definePlugin({
|
|
22
22
|
name: SUBAGENT_ACTIVITY_PLUGIN_NAME,
|
|
@@ -38,5 +38,5 @@ export const SubagentActivityPlugin = definePlugin({
|
|
|
38
38
|
],
|
|
39
39
|
}),
|
|
40
40
|
});
|
|
41
|
-
export { SubagentPulse } from './SubagentPulse';
|
|
41
|
+
export { SubagentPulse } from './SubagentPulse.js';
|
|
42
42
|
export default SubagentActivityPlugin;
|
|
@@ -3,9 +3,9 @@ import { useSyncExternalStore } from 'react';
|
|
|
3
3
|
import { IconButton } from '@primer/react';
|
|
4
4
|
import { definePlugin } from '@datalayer/reactor';
|
|
5
5
|
import { useContributions } from '@datalayer/reactor/react';
|
|
6
|
-
import { LoopEditorView, LoopSlots } from '../../core';
|
|
7
|
-
import { NONE_EDITOR, chooseEditor, getEditorChoice, subscribeEditorChoice, } from '../shell/editorChoice';
|
|
8
|
-
import { InputPromptPlugin } from '../input-prompt';
|
|
6
|
+
import { LoopEditorView, LoopSlots } from '../../core/index.js';
|
|
7
|
+
import { NONE_EDITOR, chooseEditor, getEditorChoice, subscribeEditorChoice, } from '../shell/editorChoice.js';
|
|
8
|
+
import { InputPromptPlugin } from '../input-prompt/index.js';
|
|
9
9
|
/** One footer icon: switches to its view, shows when the view is real. */
|
|
10
10
|
function makeViewSwitchAction({ viewId, icon, tooltip, }) {
|
|
11
11
|
return function ViewSwitchAction() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@datalayer/primer-addons';
|
|
3
3
|
import { ReactorSlot, useOptionalSlotComponents, } from '@datalayer/reactor/react';
|
|
4
|
-
import { WINDOW_ACTIONS_SLOT, WINDOW_CONTROLS_SLOT } from './slots';
|
|
4
|
+
import { WINDOW_ACTIONS_SLOT, WINDOW_CONTROLS_SLOT } from './slots.js';
|
|
5
5
|
export function WindowFrame({ children, title, height, slotProps = {}, }) {
|
|
6
6
|
/*
|
|
7
7
|
* Asked rather than assumed, so the trailing group is not an empty flex box
|
|
@@ -33,11 +33,11 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
33
33
|
*/
|
|
34
34
|
import { definePlugin } from '@datalayer/reactor';
|
|
35
35
|
import { Box } from '@datalayer/primer-addons';
|
|
36
|
-
import { LoopSlots } from '../../core';
|
|
37
|
-
import { WorkspaceFullScreenAction } from '../../shell/WorkspaceFullScreenAction';
|
|
38
|
-
import { WINDOW_CONTROLS_SLOT } from './slots';
|
|
39
|
-
export { WindowFrame } from './WindowFrame';
|
|
40
|
-
export { WINDOW_ACTIONS_SLOT, WINDOW_CONTROLS_SLOT } from './slots';
|
|
36
|
+
import { LoopSlots } from '../../core/index.js';
|
|
37
|
+
import { WorkspaceFullScreenAction } from '../../shell/WorkspaceFullScreenAction.js';
|
|
38
|
+
import { WINDOW_CONTROLS_SLOT } from './slots.js';
|
|
39
|
+
export { WindowFrame } from './WindowFrame.js';
|
|
40
|
+
export { WINDOW_ACTIONS_SLOT, WINDOW_CONTROLS_SLOT } from './slots.js';
|
|
41
41
|
export const WINDOW_FRAME_PLUGIN_NAME = '@datalayer/loop-plugin-window-frame';
|
|
42
42
|
/**
|
|
43
43
|
* The three dots.
|
package/lib/apps/presets.js
CHANGED
|
@@ -30,27 +30,27 @@
|
|
|
30
30
|
*/
|
|
31
31
|
import { configurePlugin } from '@datalayer/reactor';
|
|
32
32
|
import { ThemePlugin } from '@datalayer/primer-addons/lib/reactor';
|
|
33
|
-
import { SubagentActivityPlugin } from './plugins/subagent-activity';
|
|
34
|
-
import { A2uiPlugin } from './plugins/a2ui';
|
|
35
|
-
import { ShellPlugin } from './plugins/shell';
|
|
36
|
-
import { PromptPlugin } from './plugins/prompt';
|
|
37
|
-
import { AgentspecsPlugin } from './plugins/agentspecs';
|
|
38
|
-
import { AgentsPlugin, } from './plugins/agents';
|
|
39
|
-
import { ChatPlugin, } from './plugins/chat';
|
|
40
|
-
import { ChatHeaderPlugin } from './plugins/chat-header';
|
|
41
|
-
import { A2uiSurfacePlugin } from './plugins/a2ui-surface';
|
|
42
|
-
import { PapSignInPlugin } from './plugins/pap-sign-in';
|
|
43
|
-
import { ShieldDisplaysPlugin } from './plugins/shield-displays';
|
|
44
|
-
import { ChatViewPlugin } from './plugins/chat-view';
|
|
45
|
-
import { DocumentViewPlugin } from './plugins/document-view';
|
|
46
|
-
import { InputPromptPlugin } from './plugins/input-prompt';
|
|
47
|
-
import { NotebookViewPlugin } from './plugins/notebook-view';
|
|
48
|
-
import { LoopCommandsPlugin } from './plugins/commands';
|
|
49
|
-
import { ModelsPlugin } from './plugins/models';
|
|
50
|
-
import { PluginsPanelPlugin } from './plugins/plugins-panel';
|
|
51
|
-
import { WindowFramePlugin } from './plugins/window-frame';
|
|
52
|
-
import { DocumentExtension, NotebookExtension } from './extensions';
|
|
53
|
-
import { LoopPageLayoutPlugin } from './plugins/page-layout';
|
|
33
|
+
import { SubagentActivityPlugin } from './plugins/subagent-activity/index.js';
|
|
34
|
+
import { A2uiPlugin } from './plugins/a2ui/index.js';
|
|
35
|
+
import { ShellPlugin } from './plugins/shell/index.js';
|
|
36
|
+
import { PromptPlugin } from './plugins/prompt/index.js';
|
|
37
|
+
import { AgentspecsPlugin } from './plugins/agentspecs/index.js';
|
|
38
|
+
import { AgentsPlugin, } from './plugins/agents/index.js';
|
|
39
|
+
import { ChatPlugin, } from './plugins/chat/index.js';
|
|
40
|
+
import { ChatHeaderPlugin } from './plugins/chat-header/index.js';
|
|
41
|
+
import { A2uiSurfacePlugin } from './plugins/a2ui-surface/index.js';
|
|
42
|
+
import { PapSignInPlugin } from './plugins/pap-sign-in/index.js';
|
|
43
|
+
import { ShieldDisplaysPlugin } from './plugins/shield-displays/index.js';
|
|
44
|
+
import { ChatViewPlugin } from './plugins/chat-view/index.js';
|
|
45
|
+
import { DocumentViewPlugin } from './plugins/document-view/index.js';
|
|
46
|
+
import { InputPromptPlugin } from './plugins/input-prompt/index.js';
|
|
47
|
+
import { NotebookViewPlugin } from './plugins/notebook-view/index.js';
|
|
48
|
+
import { LoopCommandsPlugin } from './plugins/commands/index.js';
|
|
49
|
+
import { ModelsPlugin } from './plugins/models/index.js';
|
|
50
|
+
import { PluginsPanelPlugin } from './plugins/plugins-panel/index.js';
|
|
51
|
+
import { WindowFramePlugin } from './plugins/window-frame/index.js';
|
|
52
|
+
import { DocumentExtension, NotebookExtension } from './extensions.js';
|
|
53
|
+
import { LoopPageLayoutPlugin } from './plugins/page-layout/index.js';
|
|
54
54
|
/**
|
|
55
55
|
* The standard set, with the options a host usually varies.
|
|
56
56
|
*
|
|
@@ -4,10 +4,10 @@ import { createPortal } from 'react-dom';
|
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { buildReactorFromPlugins, onView, } from '@datalayer/reactor';
|
|
6
6
|
import { ReactorSlot, ReactorViewHost, useContributions, useReactorEvent, useSlotComponents, useReactor, } from '@datalayer/reactor/react';
|
|
7
|
-
import { LoopCommand, LoopSlots, LoopViewType, canOpenView, createPromptChannel, parseCommand, loopSurfaceId, } from '../core';
|
|
8
|
-
import { SIDEBAR_WIDTH } from '../plugins/plugins-panel';
|
|
9
|
-
import { ViewSwitcher } from './ViewSwitcher';
|
|
10
|
-
import { SidebarRail } from './SidebarRail';
|
|
7
|
+
import { LoopCommand, LoopSlots, LoopViewType, canOpenView, createPromptChannel, parseCommand, loopSurfaceId, } from '../core/index.js';
|
|
8
|
+
import { SIDEBAR_WIDTH } from '../plugins/plugins-panel/index.js';
|
|
9
|
+
import { ViewSwitcher } from './ViewSwitcher.js';
|
|
10
|
+
import { SidebarRail } from './SidebarRail.js';
|
|
11
11
|
/** Build the platform for a set of plugins, and of extensions grouping them. */
|
|
12
12
|
export function buildLoopReactor(extensions) {
|
|
13
13
|
return buildReactorFromPlugins(extensions);
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { SidebarExpandIcon } from '@primer/octicons-react';
|
|
5
|
-
import { paneOpening } from './paneMotion';
|
|
5
|
+
import { paneOpening } from './paneMotion.js';
|
|
6
6
|
/** The rail's entries, in the slot's order. */
|
|
7
7
|
export function railItemsOf(components) {
|
|
8
8
|
return components.map(component => ({
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@datalayer/primer-addons';
|
|
3
3
|
import { Tooltip } from '@primer/react';
|
|
4
|
-
import { canOpenView, } from '../core';
|
|
4
|
+
import { canOpenView, } from '../core/index.js';
|
|
5
5
|
export function ViewSwitcher({ views, workspace, compact = false, }) {
|
|
6
6
|
// One choice is not a choice.
|
|
7
7
|
if (views.length < 2) {
|
|
@@ -3,8 +3,8 @@ import { useRef } from 'react';
|
|
|
3
3
|
import { IconButton } from '@primer/react';
|
|
4
4
|
import { ScreenFullIcon, ScreenNormalIcon } from '@primer/octicons-react';
|
|
5
5
|
import { useReactorPlatform } from '@datalayer/reactor/react';
|
|
6
|
-
import { useWorkspaceFullScreen } from './useWorkspaceFullScreen';
|
|
7
|
-
import { CHAT_PLUGIN_NAME } from '../plugins/chat';
|
|
6
|
+
import { useWorkspaceFullScreen } from './useWorkspaceFullScreen.js';
|
|
7
|
+
import { CHAT_PLUGIN_NAME } from '../plugins/chat/index.js';
|
|
8
8
|
export function WorkspaceFullScreenAction() {
|
|
9
9
|
/* The button itself anchors the lookup: it is inside the workspace, which
|
|
10
10
|
is all `useWorkspaceFullScreen` needs to find what to promote. */
|
package/lib/apps/shell/index.js
CHANGED
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module apps/shell
|
|
9
9
|
*/
|
|
10
|
-
export { LoopWorkspace, buildLoopReactor, } from './LoopWorkspace';
|
|
11
|
-
export { ViewSwitcher } from './ViewSwitcher';
|
|
12
|
-
export { PluginToggles } from './PluginToggles';
|
|
13
|
-
export { fullScreenNode, useWorkspaceFullScreen, } from './useWorkspaceFullScreen';
|
|
14
|
-
export { WorkspaceFullScreenAction } from './WorkspaceFullScreenAction';
|
|
15
|
-
export { SidebarRail, RAIL_WIDTH, railChoiceAfter, railItemsOf, } from './SidebarRail';
|
|
16
|
-
export { paneOpening, paneOpenAnimation, paneOpenKeyframes, } from './paneMotion';
|
|
10
|
+
export { LoopWorkspace, buildLoopReactor, } from './LoopWorkspace.js';
|
|
11
|
+
export { ViewSwitcher } from './ViewSwitcher.js';
|
|
12
|
+
export { PluginToggles } from './PluginToggles.js';
|
|
13
|
+
export { fullScreenNode, useWorkspaceFullScreen, } from './useWorkspaceFullScreen.js';
|
|
14
|
+
export { WorkspaceFullScreenAction } from './WorkspaceFullScreenAction.js';
|
|
15
|
+
export { SidebarRail, RAIL_WIDTH, railChoiceAfter, railItemsOf, } from './SidebarRail.js';
|
|
16
|
+
export { paneOpening, paneOpenAnimation, paneOpenKeyframes, } from './paneMotion.js';
|
package/lib/chat/Chat.js
CHANGED
|
@@ -23,14 +23,14 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
|
23
23
|
import { Text, Button, Spinner, ThemeProvider } from '@primer/react';
|
|
24
24
|
import { AlertIcon, SyncIcon } from '@primer/octicons-react';
|
|
25
25
|
import { Box } from '@datalayer/primer-addons';
|
|
26
|
-
import { useConnectedIdentities } from '../identity';
|
|
26
|
+
import { useConnectedIdentities } from '../identity/index.js';
|
|
27
27
|
import { useOptionalReactorPlatform } from '@datalayer/reactor/react';
|
|
28
|
-
import { ChatBase } from './base/ChatBase';
|
|
29
|
-
import { AgentDetails } from '../agents/AgentDetails';
|
|
30
|
-
import { SessionActionsMenu } from '../apps/plugins/chat/SessionActionsMenu';
|
|
31
|
-
import { appSessionsClient } from '../portable/sessions';
|
|
32
|
-
import { openThread, THREAD_WORDS } from '../portable/thread';
|
|
33
|
-
import { generateMessageId } from '../types/messages';
|
|
28
|
+
import { ChatBase } from './base/ChatBase.js';
|
|
29
|
+
import { AgentDetails } from '../agents/AgentDetails.js';
|
|
30
|
+
import { SessionActionsMenu } from '../apps/plugins/chat/SessionActionsMenu.js';
|
|
31
|
+
import { appSessionsClient } from '../portable/sessions.js';
|
|
32
|
+
import { openThread, THREAD_WORDS } from '../portable/thread.js';
|
|
33
|
+
import { generateMessageId } from '../types/messages.js';
|
|
34
34
|
// Try to get Jupyter settings if available
|
|
35
35
|
let getJupyterSettings;
|
|
36
36
|
try {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @module chat/ChatFloating
|
|
17
17
|
*/
|
|
18
|
-
import type { AssistantModel3D } from './assistant/
|
|
18
|
+
import type { AssistantModel3D } from './assistant/avatar3dModel';
|
|
19
19
|
import React from 'react';
|
|
20
20
|
import type { ChatVoice } from '../voice';
|
|
21
21
|
import { type BalloonDisplay, type BalloonToolLine } from './assistant/toolLine';
|