@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
|
@@ -41,10 +41,10 @@ import { Box, DatalayerThemeProvider, getThemeConfig, useSystemColorMode, useThe
|
|
|
41
41
|
import { JupyterReactTheme, Kernel, disposeServiceManager, } from '@datalayer/jupyter-react';
|
|
42
42
|
import { ComponentPickerMenuPlugin, JupyterLexicalExtension, JupyterInputOutputPlugin, DraggableBlockPlugin, TableCellResizerPlugin, TableActionMenuPlugin, TableHoverActionsV2Plugin, LexicalConfigProvider, LexicalStatePlugin, FloatingTextFormatToolbarPlugin, CodeActionMenuPlugin, ToolbarPlugin, ToolbarContext, CommentsProvider, DocumentSkeleton, commentTheme, } from '@datalayer/jupyter-lexical';
|
|
43
43
|
import { createWebsocketProvider, LoroCollaborationPlugin, } from '@datalayer/lexical-loro';
|
|
44
|
-
import { useLexicalTools } from '../../tools/adapters/agent-runtimes/lexicalHooks';
|
|
45
|
-
import { useAgentsRuntimes } from '../../hooks/useAgentRuntimes';
|
|
46
|
-
import { registerSandboxServiceManager } from '../../services/sandboxServiceManagers';
|
|
47
|
-
import { useProgressTask } from '../../hooks/useProgressTask';
|
|
44
|
+
import { useLexicalTools } from '../../tools/adapters/agent-runtimes/lexicalHooks.js';
|
|
45
|
+
import { useAgentsRuntimes } from '../../hooks/useAgentRuntimes.js';
|
|
46
|
+
import { registerSandboxServiceManager } from '../../services/sandboxServiceManagers.js';
|
|
47
|
+
import { useProgressTask } from '../../hooks/useProgressTask.js';
|
|
48
48
|
import '@datalayer/jupyter-lexical/style/index.css';
|
|
49
49
|
/**
|
|
50
50
|
* Lexical plugin that loads the initial (restored) editor state exactly once.
|
|
@@ -3,9 +3,9 @@ import { Heading, IconButton, Label, Text, Truncate } from '@primer/react';
|
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { KernelIndicator } from '@datalayer/jupyter-react';
|
|
5
5
|
import { PlusIcon, TrashIcon, GearIcon, InfoIcon, } from '@primer/octicons-react';
|
|
6
|
-
import { ChatViewModeToggle } from './ChatViewModeToggle';
|
|
6
|
+
import { ChatViewModeToggle } from './ChatViewModeToggle.js';
|
|
7
7
|
import { AiAgentIcon } from '@datalayer/icons-react';
|
|
8
|
-
import { EphemeralSurfaceControl } from '../EphemeralSurfaceControl';
|
|
8
|
+
import { EphemeralSurfaceControl } from '../EphemeralSurfaceControl.js';
|
|
9
9
|
export function toRuntimeExecutionState(runtimeStatus) {
|
|
10
10
|
if (!runtimeStatus) {
|
|
11
11
|
return undefined;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { Tooltip } from '@primer/react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { CommentDiscussionIcon, DeviceMobileIcon, GrabberIcon, PaperclipIcon, SidebarExpandIcon, } from '@primer/octicons-react';
|
|
5
|
-
import { ASSISTANT_NEEDS_A_FLOATING_CHAT, CHAT_VIEW_MODES, SIDEBAR_NEEDS_MOUNT_POINT, } from '../viewModes';
|
|
5
|
+
import { ASSISTANT_NEEDS_A_FLOATING_CHAT, CHAT_VIEW_MODES, SIDEBAR_NEEDS_MOUNT_POINT, } from '../viewModes.js';
|
|
6
6
|
/** The drawing of each mode. */
|
|
7
7
|
export const VIEW_MODE_ICONS = {
|
|
8
8
|
floating: CommentDiscussionIcon,
|
package/lib/chat/index.js
CHANGED
|
@@ -53,38 +53,38 @@
|
|
|
53
53
|
* ```
|
|
54
54
|
*/
|
|
55
55
|
// Components - Chat elements
|
|
56
|
-
export { ChatMessages } from './messages/ChatMessages';
|
|
56
|
+
export { ChatMessages } from './messages/ChatMessages.js';
|
|
57
57
|
// The transcript renderer `ChatBase` itself draws with — a `DisplayItem[]`
|
|
58
58
|
// straight in, no protocol underneath — for a host with its own transcript
|
|
59
59
|
// to show rather than a live runtime to talk to (a team's run, watched as
|
|
60
60
|
// its agents' own conversation).
|
|
61
|
-
export { ChatMessageList, } from './messages/ChatMessageList';
|
|
62
|
-
export { NotebookToolSurfaces } from './messages/NotebookToolSurfaces';
|
|
63
|
-
export { ChatSidebar } from './ChatSidebar';
|
|
64
|
-
export { ChatStandalone } from './ChatStandalone';
|
|
65
|
-
export { ChatBase } from './base/ChatBase';
|
|
66
|
-
export { InputPrompt, InputPromptBase, } from './prompt';
|
|
67
|
-
export { McpStatusIndicator, SandboxStatusIndicator, } from './indicators';
|
|
68
|
-
export { PoweredByTag } from './display/PoweredByTag';
|
|
69
|
-
export { FloatingBrandButton, } from './display/FloatingBrandButton';
|
|
70
|
-
export { ChatHeader } from './header/ChatHeader';
|
|
71
|
-
export { ChatViewModeToggle, VIEW_MODE_ICONS, } from './header/ChatViewModeToggle';
|
|
61
|
+
export { ChatMessageList, } from './messages/ChatMessageList.js';
|
|
62
|
+
export { NotebookToolSurfaces } from './messages/NotebookToolSurfaces.js';
|
|
63
|
+
export { ChatSidebar } from './ChatSidebar.js';
|
|
64
|
+
export { ChatStandalone } from './ChatStandalone.js';
|
|
65
|
+
export { ChatBase } from './base/ChatBase.js';
|
|
66
|
+
export { InputPrompt, InputPromptBase, } from './prompt/index.js';
|
|
67
|
+
export { McpStatusIndicator, SandboxStatusIndicator, } from './indicators/index.js';
|
|
68
|
+
export { PoweredByTag } from './display/PoweredByTag.js';
|
|
69
|
+
export { FloatingBrandButton, } from './display/FloatingBrandButton.js';
|
|
70
|
+
export { ChatHeader } from './header/ChatHeader.js';
|
|
71
|
+
export { ChatViewModeToggle, VIEW_MODE_ICONS, } from './header/ChatViewModeToggle.js';
|
|
72
72
|
// Components - Message part renderers
|
|
73
|
-
export { MessagePart, TextPart, ReasoningPart, ToolPart, DynamicToolPart, } from './parts';
|
|
73
|
+
export { MessagePart, TextPart, ReasoningPart, ToolPart, DynamicToolPart, } from './parts/index.js';
|
|
74
74
|
// Components - Tool UI
|
|
75
|
-
export { ToolCallDisplay } from './tools';
|
|
75
|
+
export { ToolCallDisplay } from './tools/index.js';
|
|
76
76
|
// Marks: the icon (by package), else the emoji, of an MCP server, a skill, a
|
|
77
77
|
// frontend tool set or a runtime tool — and whose a tool call is.
|
|
78
|
-
export { ICON_PACKAGES, SpecMark, hasMark, marksOfFrontendTool, marksOfMcpServer, marksOfRuntimeTool, marksOfSkill, marksOfToolCall, parseIconRef, useMarkIcon, } from './marks';
|
|
79
|
-
export { ToolApprovalDialog, useToolApprovalDialog, } from './tools/ToolApprovalDialog';
|
|
80
|
-
export { ToolApprovalBanner, } from './tools/ToolApprovalBanner';
|
|
78
|
+
export { ICON_PACKAGES, SpecMark, hasMark, marksOfFrontendTool, marksOfMcpServer, marksOfRuntimeTool, marksOfSkill, marksOfToolCall, parseIconRef, useMarkIcon, } from './marks/index.js';
|
|
79
|
+
export { ToolApprovalDialog, useToolApprovalDialog, } from './tools/ToolApprovalDialog.js';
|
|
80
|
+
export { ToolApprovalBanner, } from './tools/ToolApprovalBanner.js';
|
|
81
81
|
// Components - Transport-agnostic chat
|
|
82
|
-
export { Chat } from './Chat';
|
|
83
|
-
export { ChatFloating } from './ChatFloating';
|
|
84
|
-
export { ChatInline, } from './ChatInline';
|
|
82
|
+
export { Chat } from './Chat.js';
|
|
83
|
+
export { ChatFloating } from './ChatFloating.js';
|
|
84
|
+
export { ChatInline, } from './ChatInline.js';
|
|
85
85
|
// Generic full-page chat surface for a live agent runtime (with launching state)
|
|
86
|
-
export { AgentRuntimeChat, } from '../agents/AgentRuntimeChat';
|
|
87
|
-
export * from './EphemeralSurfaceControl';
|
|
86
|
+
export { AgentRuntimeChat, } from '../agents/AgentRuntimeChat.js';
|
|
87
|
+
export * from './EphemeralSurfaceControl.js';
|
|
88
88
|
// The chat's own words in the person's language (P-26)
|
|
89
|
-
export { ChatLanguage, useChatLanguage, useChatWords } from './ChatLanguage';
|
|
90
|
-
export { CHAT_WORDS, ENGLISH_CHAT_WORDS, chatLanguage, chatWords, } from './words';
|
|
89
|
+
export { ChatLanguage, useChatLanguage, useChatWords } from './ChatLanguage.js';
|
|
90
|
+
export { CHAT_WORDS, ENGLISH_CHAT_WORDS, chatLanguage, chatWords, } from './words.js';
|
|
@@ -21,7 +21,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
21
21
|
import { useEffect, useMemo } from 'react';
|
|
22
22
|
import { Tooltip } from '@primer/react';
|
|
23
23
|
import { Box } from '@datalayer/primer-addons';
|
|
24
|
-
import { MCP_STATUS_COLORS, MCP_STATUS_LABELS } from '../../types/mcp';
|
|
24
|
+
import { MCP_STATUS_COLORS, MCP_STATUS_LABELS } from '../../types/mcp.js';
|
|
25
25
|
/* ── Helpers ───────────────────────────────────────────── */
|
|
26
26
|
function deriveAggregate(servers) {
|
|
27
27
|
if (!servers || servers.length === 0)
|
|
@@ -22,7 +22,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
22
22
|
*/
|
|
23
23
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
24
24
|
import { Box } from '@datalayer/primer-addons';
|
|
25
|
-
import { SANDBOX_STATUS_LABELS } from '../../types/sandbox';
|
|
25
|
+
import { SANDBOX_STATUS_LABELS } from '../../types/sandbox.js';
|
|
26
26
|
const SANDBOX_INDICATOR_COLORS = {
|
|
27
27
|
unavailable: 'fg.muted',
|
|
28
28
|
stopped: 'fg.muted',
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @module chat/indicators/McpStatusIndicator
|
|
17
17
|
*/
|
|
18
|
-
export { McpStatusIndicator, } from './McpStatusIndicator';
|
|
19
|
-
export { SandboxStatusIndicator, } from './SandboxStatusIndicator';
|
|
20
|
-
export { SkillsStatusIndicator, } from './SkillsStatusIndicator';
|
|
18
|
+
export { McpStatusIndicator, } from './McpStatusIndicator.js';
|
|
19
|
+
export { SandboxStatusIndicator, } from './SandboxStatusIndicator.js';
|
|
20
|
+
export { SkillsStatusIndicator, } from './SkillsStatusIndicator.js';
|
|
@@ -15,7 +15,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
* @module chat/marks/SpecMark
|
|
16
16
|
*/
|
|
17
17
|
import { useEffect, useState } from 'react';
|
|
18
|
-
import { parseIconRef } from './iconRef';
|
|
18
|
+
import { parseIconRef } from './iconRef.js';
|
|
19
19
|
const LOADERS = {
|
|
20
20
|
'@datalayer/icons-react': () => import('@datalayer/icons-react'),
|
|
21
21
|
'@primer/octicons-react': () => import('@primer/octicons-react'),
|
package/lib/chat/marks/index.js
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module chat/marks
|
|
9
9
|
*/
|
|
10
|
-
export { ICON_PACKAGES, exportNameOf, parseIconRef, } from './iconRef';
|
|
11
|
-
export { SpecMark, hasMark, iconOf, loadIconPackage, useMarkIcon, } from './SpecMark';
|
|
12
|
-
export { SKILL_TOOLS, marksOfFrontendTool, marksOfMcpServer, marksOfRuntimeTool, marksOfSkill, marksOfToolCall, skillIdOfCall, } from './toolMarks';
|
|
10
|
+
export { ICON_PACKAGES, exportNameOf, parseIconRef, } from './iconRef.js';
|
|
11
|
+
export { SpecMark, hasMark, iconOf, loadIconPackage, useMarkIcon, } from './SpecMark.js';
|
|
12
|
+
export { SKILL_TOOLS, marksOfFrontendTool, marksOfMcpServer, marksOfRuntimeTool, marksOfSkill, marksOfToolCall, skillIdOfCall, } from './toolMarks.js';
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @module chat/marks/toolMarks
|
|
15
15
|
*/
|
|
16
|
-
import { MCP_SERVER_LIBRARY } from '../../specs/mcpServers';
|
|
17
|
-
import { SKILLS_CATALOG } from '../../specs/skills';
|
|
18
|
-
import { FRONTEND_TOOL_CATALOG } from '../../specs/frontendTools';
|
|
19
|
-
import { BACKEND_TOOL_CATALOG } from '../../specs/backendTools';
|
|
16
|
+
import { MCP_SERVER_LIBRARY } from '../../specs/mcpServers.js';
|
|
17
|
+
import { SKILLS_CATALOG } from '../../specs/skills.js';
|
|
18
|
+
import { FRONTEND_TOOL_CATALOG } from '../../specs/frontendTools.js';
|
|
19
|
+
import { BACKEND_TOOL_CATALOG } from '../../specs/backendTools.js';
|
|
20
20
|
/** The tools the skills area runs a skill through. */
|
|
21
21
|
export const SKILL_TOOLS = new Set([
|
|
22
22
|
'run_skill_script',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from '@datalayer/primer-addons';
|
|
3
3
|
import { Streamdown } from 'streamdown';
|
|
4
|
-
import { REHYPE_PLUGINS_WITHOUT_HTML } from './markdownWithoutHtml';
|
|
5
|
-
import { streamdownMarkdownStyles } from '../styles/streamdownStyles';
|
|
6
|
-
import { normalizeAssistantMarkdown } from './assistantMarkdown';
|
|
4
|
+
import { REHYPE_PLUGINS_WITHOUT_HTML } from './markdownWithoutHtml.js';
|
|
5
|
+
import { streamdownMarkdownStyles } from '../styles/streamdownStyles.js';
|
|
6
|
+
import { normalizeAssistantMarkdown } from './assistantMarkdown.js';
|
|
7
7
|
export function ChatMarkdown({ text, density = 'comfortable', }) {
|
|
8
8
|
return (_jsx(Box, { "data-chat-markdown": "", sx: {
|
|
9
9
|
...streamdownMarkdownStyles,
|
|
@@ -17,25 +17,25 @@ import { DisplayText, ReactorDisplay } from '@datalayer/reactor/ui/react';
|
|
|
17
17
|
import { Text, Spinner, Link, Label, RelativeTime } from '@primer/react';
|
|
18
18
|
import { ArrowRightIcon, BroadcastIcon, ClockIcon, DependabotIcon, PersonIcon, SkipIcon, ToolsIcon, XCircleFillIcon, } from '@primer/octicons-react';
|
|
19
19
|
import { Box } from '@datalayer/primer-addons';
|
|
20
|
-
import { streamdownCodeBlockStyles } from '../styles/streamdownStyles';
|
|
21
|
-
import { ChatMarkdown } from './ChatMarkdown';
|
|
22
|
-
import { ToolCallDisplay } from '../tools/ToolCallDisplay';
|
|
23
|
-
import { marksOfToolCall, skillIdOfCall } from '../marks';
|
|
24
|
-
import { TypingDots } from '../indicators/TypingDots';
|
|
25
|
-
import { TurnFooter } from './TurnFooter';
|
|
26
|
-
import { parseFormSubmission } from './formSubmission';
|
|
27
|
-
import { FormSubmissionMessage } from './FormSubmissionMessage';
|
|
28
|
-
import { isToolCallMessage, getMessageText } from '../../utils';
|
|
29
|
-
import { A2AAgentDialog, a2aAgentDetails } from '../tools/A2AAgentDialog';
|
|
30
|
-
import { SUBAGENT_STOPPED } from '../../types/stream';
|
|
31
|
-
import { useAgentRuntimeStore, useAgentRuntimeSubagentActivity, useAgentRuntimeSubagentActivityByToolCall, agentRuntimeStore, } from '../../stores/agentRuntimeStore';
|
|
20
|
+
import { streamdownCodeBlockStyles } from '../styles/streamdownStyles.js';
|
|
21
|
+
import { ChatMarkdown } from './ChatMarkdown.js';
|
|
22
|
+
import { ToolCallDisplay } from '../tools/ToolCallDisplay.js';
|
|
23
|
+
import { marksOfToolCall, skillIdOfCall } from '../marks/index.js';
|
|
24
|
+
import { TypingDots } from '../indicators/TypingDots.js';
|
|
25
|
+
import { TurnFooter } from './TurnFooter.js';
|
|
26
|
+
import { parseFormSubmission } from './formSubmission.js';
|
|
27
|
+
import { FormSubmissionMessage } from './FormSubmissionMessage.js';
|
|
28
|
+
import { isToolCallMessage, getMessageText } from '../../utils/index.js';
|
|
29
|
+
import { A2AAgentDialog, a2aAgentDetails } from '../tools/A2AAgentDialog.js';
|
|
30
|
+
import { SUBAGENT_STOPPED } from '../../types/stream.js';
|
|
31
|
+
import { useAgentRuntimeStore, useAgentRuntimeSubagentActivity, useAgentRuntimeSubagentActivityByToolCall, agentRuntimeStore, } from '../../stores/agentRuntimeStore.js';
|
|
32
32
|
/** Subscribing to nothing, for a transcript with no Reactor platform behind it. */
|
|
33
33
|
const NO_SUBSCRIPTION = () => () => { };
|
|
34
34
|
/*
|
|
35
35
|
* The notebook's cell surfaces, loaded when a chat names a notebook: they
|
|
36
36
|
* bring the Jupyter output area, which a transcript without one never needs.
|
|
37
37
|
*/
|
|
38
|
-
const NotebookToolSurfaces = lazy(() => import('./NotebookToolSurfaces'));
|
|
38
|
+
const NotebookToolSurfaces = lazy(() => import('./NotebookToolSurfaces.js'));
|
|
39
39
|
// ---------------------------------------------------------------------------
|
|
40
40
|
// Normalize helper
|
|
41
41
|
// ---------------------------------------------------------------------------
|
|
@@ -14,8 +14,8 @@ import { Text, RelativeTime } from '@primer/react';
|
|
|
14
14
|
import { Box, useThemeStore, getColorPalette } from '@datalayer/primer-addons';
|
|
15
15
|
import { PersonIcon, ToolsIcon } from '@primer/octicons-react';
|
|
16
16
|
import { AiAgentIcon } from '@datalayer/icons-react';
|
|
17
|
-
import { useChatMessages, useChatUIPluginRegistry, } from '../../stores/chatStore';
|
|
18
|
-
import { useChatWords } from '../ChatLanguage';
|
|
17
|
+
import { useChatMessages, useChatUIPluginRegistry, } from '../../stores/chatStore.js';
|
|
18
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
19
19
|
/**
|
|
20
20
|
* Chat Messages component
|
|
21
21
|
*/
|
|
@@ -3,7 +3,7 @@ import { useState } from 'react';
|
|
|
3
3
|
import { Text } from '@primer/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { ChecklistIcon, ChevronDownIcon, ChevronRightIcon, } from '@primer/octicons-react';
|
|
6
|
-
import { displayValue, labelOfFieldId, } from './formSubmission';
|
|
6
|
+
import { displayValue, labelOfFieldId, } from './formSubmission.js';
|
|
7
7
|
export function FormSubmissionMessage({ submission, }) {
|
|
8
8
|
const [expanded, setExpanded] = useState(true);
|
|
9
9
|
const entries = Object.entries(submission.values);
|
|
@@ -3,8 +3,8 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
3
3
|
import { IconButton, Text } from '@primer/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { CheckIcon, CopyIcon, TrashIcon } from '@primer/octicons-react';
|
|
6
|
-
import { formatTokenCount } from '../../utils';
|
|
7
|
-
import { useChatWords } from '../ChatLanguage';
|
|
6
|
+
import { formatTokenCount } from '../../utils/index.js';
|
|
7
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
8
8
|
export function TurnFooter({ usage, live, latest, padding, onCopy, onRemove, }) {
|
|
9
9
|
const chatText = useChatWords();
|
|
10
10
|
const [copied, setCopied] = useState(false);
|
|
@@ -3,10 +3,10 @@ import { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
3
3
|
import { ServerConnection, ServiceManager } from '@jupyterlab/services';
|
|
4
4
|
import { Box, DatalayerThemeProvider, getThemeConfig, useSystemColorMode, useThemeStore, } from '@datalayer/primer-addons';
|
|
5
5
|
import { Notebook, NotebookToolbar, CellSidebarExtension, CellSidebarButton, JupyterReactTheme, notebookStore, disposeServiceManager, useJupyterLabCssLoaded, } from '@datalayer/jupyter-react';
|
|
6
|
-
import { useAgentsRuntimes } from '../../hooks/useAgentRuntimes';
|
|
7
|
-
import { useResumeServerExecutions } from '../../jupyter/useResumeServerExecutions';
|
|
8
|
-
import { registerSandboxServiceManager } from '../../services/sandboxServiceManagers';
|
|
9
|
-
import { useProgressTask } from '../../hooks/useProgressTask';
|
|
6
|
+
import { useAgentsRuntimes } from '../../hooks/useAgentRuntimes.js';
|
|
7
|
+
import { useResumeServerExecutions } from '../../jupyter/useResumeServerExecutions.js';
|
|
8
|
+
import { registerSandboxServiceManager } from '../../services/sandboxServiceManagers.js';
|
|
9
|
+
import { useProgressTask } from '../../hooks/useProgressTask.js';
|
|
10
10
|
/**
|
|
11
11
|
* Minimal in-memory notebook content. A single empty code cell is provided so
|
|
12
12
|
* the notebook renders immediately and the agent can insert/update cells.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { TextPart } from './TextPart';
|
|
3
|
-
import { ReasoningPart } from './ReasoningPart';
|
|
4
|
-
import { ToolPart } from './ToolPart';
|
|
5
|
-
import { DynamicToolPart } from './DynamicToolPart';
|
|
2
|
+
import { TextPart } from './TextPart.js';
|
|
3
|
+
import { ReasoningPart } from './ReasoningPart.js';
|
|
4
|
+
import { ToolPart } from './ToolPart.js';
|
|
5
|
+
import { DynamicToolPart } from './DynamicToolPart.js';
|
|
6
6
|
/**
|
|
7
7
|
* MessagePart component - routes to appropriate display component based on part type.
|
|
8
8
|
*
|
|
@@ -14,8 +14,8 @@ import { Text, Button } from '@primer/react';
|
|
|
14
14
|
import { Box } from '@datalayer/primer-addons';
|
|
15
15
|
import { ChevronDownIcon } from '@primer/octicons-react';
|
|
16
16
|
import { Streamdown } from 'streamdown';
|
|
17
|
-
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../messages/markdownWithoutHtml';
|
|
18
|
-
import { streamdownMarkdownStyles } from '../styles/streamdownStyles';
|
|
17
|
+
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../messages/markdownWithoutHtml.js';
|
|
18
|
+
import { streamdownMarkdownStyles } from '../styles/streamdownStyles.js';
|
|
19
19
|
/**
|
|
20
20
|
* ReasoningPart component for displaying AI reasoning/thinking.
|
|
21
21
|
*
|
|
@@ -3,8 +3,8 @@ import { Text, IconButton } from '@primer/react';
|
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { CopyIcon, SyncIcon } from '@primer/octicons-react';
|
|
5
5
|
import { Streamdown } from 'streamdown';
|
|
6
|
-
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../messages/markdownWithoutHtml';
|
|
7
|
-
import { streamdownMarkdownStyles } from '../styles/streamdownStyles';
|
|
6
|
+
import { REHYPE_PLUGINS_WITHOUT_HTML } from '../messages/markdownWithoutHtml.js';
|
|
7
|
+
import { streamdownMarkdownStyles } from '../styles/streamdownStyles.js';
|
|
8
8
|
/**
|
|
9
9
|
* TextPart component for rendering text content with markdown support.
|
|
10
10
|
*
|
|
@@ -13,7 +13,7 @@ import React from 'react';
|
|
|
13
13
|
import { Text, Button } from '@primer/react';
|
|
14
14
|
import { Box } from '@datalayer/primer-addons';
|
|
15
15
|
import { ChevronDownIcon, AlertIcon } from '@primer/octicons-react';
|
|
16
|
-
import { SpecMark, hasMark, marksOfToolCall } from '../marks';
|
|
16
|
+
import { SpecMark, hasMark, marksOfToolCall } from '../marks/index.js';
|
|
17
17
|
/**
|
|
18
18
|
* Check if output contains execution result with errors
|
|
19
19
|
*/
|
package/lib/chat/parts/index.js
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module chat/parts
|
|
9
9
|
*/
|
|
10
|
-
export { TextPart } from './TextPart';
|
|
11
|
-
export { ReasoningPart } from './ReasoningPart';
|
|
12
|
-
export { ToolPart } from './ToolPart';
|
|
13
|
-
export { DynamicToolPart } from './DynamicToolPart';
|
|
14
|
-
export { MessagePart } from './MessagePart';
|
|
10
|
+
export { TextPart } from './TextPart.js';
|
|
11
|
+
export { ReasoningPart } from './ReasoningPart.js';
|
|
12
|
+
export { ToolPart } from './ToolPart.js';
|
|
13
|
+
export { DynamicToolPart } from './DynamicToolPart.js';
|
|
14
|
+
export { MessagePart } from './MessagePart.js';
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { Box } from '@datalayer/primer-addons';
|
|
3
3
|
import { Text } from '@primer/react';
|
|
4
4
|
import { FluentEmoji } from '@datalayer/core/lib/components/emoji';
|
|
5
|
-
import { presenceLine } from '../../portable/views';
|
|
5
|
+
import { presenceLine } from '../../portable/views.js';
|
|
6
6
|
const ACCENT = 'var(--theme-accent)';
|
|
7
7
|
/**
|
|
8
8
|
* A face at `size`: an emoji drawn in Fluent Emoji, the same on every
|
|
@@ -8,4 +8,4 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module chat/presence/presenceStatus
|
|
10
10
|
*/
|
|
11
|
-
export { PRESENCE_LINES, presenceOfConversation, presenceState, presenceToolOf, } from '../../portable/presence';
|
|
11
|
+
export { PRESENCE_LINES, presenceOfConversation, presenceState, presenceToolOf, } from '../../portable/presence.js';
|
|
@@ -3,13 +3,13 @@ import { Suspense, lazy, useState } from 'react';
|
|
|
3
3
|
import { createPortal } from 'react-dom';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { Text } from '@primer/react';
|
|
6
|
-
import { InputPromptBase } from './InputPromptBase';
|
|
7
|
-
import { FloatingCard } from './FloatingCard';
|
|
8
|
-
import { BelowPromptHeader } from './header';
|
|
9
|
-
import { BelowPromptFooter } from './footer';
|
|
10
|
-
import { AgentsMenu, InlineAgentsMenu, ToolsMenu, SkillsMenu, ModelSelector, SuggestionsMenu, } from './menus';
|
|
11
|
-
import { McpStatusIndicator } from '../indicators/McpStatusIndicator';
|
|
12
|
-
import { SkillsStatusIndicator } from '../indicators/SkillsStatusIndicator';
|
|
6
|
+
import { InputPromptBase } from './InputPromptBase.js';
|
|
7
|
+
import { FloatingCard } from './FloatingCard.js';
|
|
8
|
+
import { BelowPromptHeader } from './header/index.js';
|
|
9
|
+
import { BelowPromptFooter } from './footer/index.js';
|
|
10
|
+
import { AgentsMenu, InlineAgentsMenu, ToolsMenu, SkillsMenu, ModelSelector, SuggestionsMenu, } from './menus/index.js';
|
|
11
|
+
import { McpStatusIndicator } from '../indicators/McpStatusIndicator.js';
|
|
12
|
+
import { SkillsStatusIndicator } from '../indicators/SkillsStatusIndicator.js';
|
|
13
13
|
/*
|
|
14
14
|
* The context-window pie, fetched when there is usage to draw.
|
|
15
15
|
*
|
|
@@ -19,10 +19,10 @@ import { SkillsStatusIndicator } from '../indicators/SkillsStatusIndicator';
|
|
|
19
19
|
* figure. Usage arrives after the first turn at the earliest, and a host that
|
|
20
20
|
* hides the counters never draws it.
|
|
21
21
|
*/
|
|
22
|
-
const ContextPie = lazy(() => import('../usage/ContextPie').then(module => ({
|
|
22
|
+
const ContextPie = lazy(() => import('../usage/ContextPie.js').then(module => ({
|
|
23
23
|
default: module.ContextPie,
|
|
24
24
|
})));
|
|
25
|
-
import { useChatWords } from '../ChatLanguage';
|
|
25
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
26
26
|
/* Shared, so a defaulted prop is the same object on every render: a fresh
|
|
27
27
|
`new Map()` per render is a new dependency for anything memoising on it. */
|
|
28
28
|
const EMPTY_TOOL_MAP = new Map();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
|
-
import { useTypingPlaceholder } from './useTypingPlaceholder';
|
|
5
|
-
import { InPromptHeader } from './header';
|
|
6
|
-
import { InPromptFooter } from './footer';
|
|
7
|
-
import { InputPromptText } from './InputPromptText';
|
|
8
|
-
import { InputPromptLexical } from './InputPromptLexical';
|
|
9
|
-
import { usePromptHistory } from './promptHistory';
|
|
4
|
+
import { useTypingPlaceholder } from './useTypingPlaceholder.js';
|
|
5
|
+
import { InPromptHeader } from './header/index.js';
|
|
6
|
+
import { InPromptFooter } from './footer/index.js';
|
|
7
|
+
import { InputPromptText } from './InputPromptText.js';
|
|
8
|
+
import { InputPromptLexical } from './InputPromptLexical.js';
|
|
9
|
+
import { usePromptHistory } from './promptHistory.js';
|
|
10
10
|
/**
|
|
11
11
|
* InputPromptBase — the editor, its header and its footer with header, input area, and footer.
|
|
12
12
|
*/
|
|
@@ -25,11 +25,11 @@ import { OnChangePlugin } from '@lexical/react/LexicalOnChangePlugin';
|
|
|
25
25
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
26
26
|
import { HistoryExtension } from '@lexical/history';
|
|
27
27
|
import { PlainTextExtension } from '@lexical/plain-text';
|
|
28
|
-
import { MentionNode } from './plugins/MentionNode';
|
|
28
|
+
import { MentionNode } from './plugins/MentionNode.js';
|
|
29
29
|
import { Box } from '@datalayer/primer-addons';
|
|
30
|
-
import { AgentMentionPlugin, } from './plugins/AgentMentionPlugin';
|
|
31
|
-
import { CommandPlugin, PROMPT_COMMANDS, } from './plugins/CommandPlugin';
|
|
32
|
-
import { useChatWords } from '../ChatLanguage';
|
|
30
|
+
import { AgentMentionPlugin, } from './plugins/AgentMentionPlugin.js';
|
|
31
|
+
import { CommandPlugin, PROMPT_COMMANDS, } from './plugins/CommandPlugin.js';
|
|
32
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
33
33
|
// ---- Lexical extension (plain-text only) ---------------------------------
|
|
34
34
|
// Module scope on purpose: the composer rebuilds the editor whenever this
|
|
35
35
|
// reference changes.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PromptStacks } from '../stack';
|
|
2
|
+
import { PromptStacks } from '../stack.js';
|
|
3
3
|
export function BelowPromptFooter({ stacks, children, disabled, }) {
|
|
4
4
|
// `children` and `stacks` compose rather than compete: the shorthand band
|
|
5
5
|
// comes first, and declared bands follow it.
|
|
@@ -2,8 +2,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { IconButton } from '@primer/react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { PaperAirplaneIcon, SquareCircleIcon, PauseIcon, } from '@primer/octicons-react';
|
|
5
|
-
import { PromptStacks } from '../stack';
|
|
6
|
-
import { useChatWords } from '../../ChatLanguage';
|
|
5
|
+
import { PromptStacks } from '../stack.js';
|
|
6
|
+
import { useChatWords } from '../../ChatLanguage.js';
|
|
7
7
|
export function InPromptFooter({ stacks, children, rightContent, isLoading = false, sendDisabled = false, isKernelBusy = false, onSend, onStop, }) {
|
|
8
8
|
const chatText = useChatWords();
|
|
9
9
|
return (_jsxs(_Fragment, { children: [stacks && stacks.length > 0 ? _jsx(PromptStacks, { stacks: stacks }) : null, _jsxs(Box, { "data-prompt-stack": "controls", display: "flex", alignItems: "center", gap: 2, px: 2, pt: 1, pb: 2, children: [_jsx(Box, { display: "flex", alignItems: "center", gap: 2, flex: 1, children: children }), _jsxs(Box, { display: "flex", alignItems: "center", gap: 1, children: [rightContent, isLoading ? (_jsx(IconButton, { icon: SquareCircleIcon, "aria-label": chatText.stop, "data-prompt-action": "stop", onClick: onStop, size: "small", variant: "invisible" })) : isKernelBusy ? (_jsx(IconButton, { icon: PauseIcon, "aria-label": chatText.pauseKernelBusy, onClick: onStop, size: "small", variant: "invisible", disabled: !onStop })) : (_jsx(IconButton, { icon: PaperAirplaneIcon, "aria-label": chatText.send, onClick: onSend, disabled: sendDisabled, size: "small", variant: "invisible" }))] })] })] }));
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module chat/prompt/footer
|
|
9
9
|
*/
|
|
10
|
-
export { InPromptFooter } from './InPromptFooter';
|
|
11
|
-
export { BelowPromptFooter, } from './BelowPromptFooter';
|
|
10
|
+
export { InPromptFooter } from './InPromptFooter.js';
|
|
11
|
+
export { BelowPromptFooter, } from './BelowPromptFooter.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PromptStacks } from '../stack';
|
|
2
|
+
import { PromptStacks } from '../stack.js';
|
|
3
3
|
export function BelowPromptHeader({ stacks, children, disabled, }) {
|
|
4
4
|
// `children` and `stacks` compose rather than compete: the shorthand band
|
|
5
5
|
// comes first, and declared bands follow it.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PromptStacks } from '../stack';
|
|
2
|
+
import { PromptStacks } from '../stack.js';
|
|
3
3
|
export function InPromptHeader({ stacks, children, disabled, }) {
|
|
4
4
|
// `children` and `stacks` compose rather than compete: the shorthand band
|
|
5
5
|
// comes first, and declared bands follow it.
|
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module chat/prompt/header
|
|
9
9
|
*/
|
|
10
|
-
export { InPromptHeader } from './InPromptHeader';
|
|
11
|
-
export { BelowPromptHeader, } from './BelowPromptHeader';
|
|
10
|
+
export { InPromptHeader } from './InPromptHeader.js';
|
|
11
|
+
export { BelowPromptHeader, } from './BelowPromptHeader.js';
|
package/lib/chat/prompt/index.js
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module chat/prompt
|
|
9
9
|
*/
|
|
10
|
-
export { InputPrompt, } from './InputPrompt';
|
|
11
|
-
export { FloatingCard } from './FloatingCard';
|
|
12
|
-
export { InputPromptBase, } from './InputPromptBase';
|
|
10
|
+
export { InputPrompt, } from './InputPrompt.js';
|
|
11
|
+
export { FloatingCard } from './FloatingCard.js';
|
|
12
|
+
export { InputPromptBase, } from './InputPromptBase.js';
|
|
13
13
|
/*
|
|
14
14
|
* The four regions around the input, and the band they are all made of.
|
|
15
15
|
*
|
|
@@ -18,10 +18,10 @@ export { InputPromptBase, } from './InputPromptBase';
|
|
|
18
18
|
* | inside the box | `InPromptHeader` | `InPromptFooter` |
|
|
19
19
|
* | under the box | `BelowPromptHeader` | `BelowPromptFooter` |
|
|
20
20
|
*/
|
|
21
|
-
export * from './header';
|
|
22
|
-
export * from './footer';
|
|
23
|
-
export { PromptStacks, } from './stack';
|
|
24
|
-
export { InputPromptText } from './InputPromptText';
|
|
25
|
-
export { InputPromptLexical, } from './InputPromptLexical';
|
|
26
|
-
export * from './menus';
|
|
27
|
-
export * from './plugins/AgentMentionPlugin';
|
|
21
|
+
export * from './header/index.js';
|
|
22
|
+
export * from './footer/index.js';
|
|
23
|
+
export { PromptStacks, } from './stack.js';
|
|
24
|
+
export { InputPromptText } from './InputPromptText.js';
|
|
25
|
+
export { InputPromptLexical, } from './InputPromptLexical.js';
|
|
26
|
+
export * from './menus/index.js';
|
|
27
|
+
export * from './plugins/AgentMentionPlugin.js';
|
|
@@ -11,7 +11,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { Text, Button, ActionMenu, ActionList, Tooltip, ToggleSwitch, } from '@primer/react';
|
|
12
12
|
import { Box } from '@datalayer/primer-addons';
|
|
13
13
|
import { BriefcaseIcon } from '@primer/octicons-react';
|
|
14
|
-
import { SpecMark, hasMark, marksOfSkill } from '../../marks';
|
|
14
|
+
import { SpecMark, hasMark, marksOfSkill } from '../../marks/index.js';
|
|
15
15
|
export function SkillsMenu({ skills, skillsLoading, enabledSkills, onToggleSkill, onToggleAllSkills, approvedSkills, onToggleSkillApproval, }) {
|
|
16
16
|
// A count, not a word — see `ToolsMenu`. The names go in the tooltip, which
|
|
17
17
|
// is where a person asking "which skills?" is already looking.
|
|
@@ -19,7 +19,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
19
19
|
import { Text, Button, ActionMenu, ActionList, Tooltip } from '@primer/react';
|
|
20
20
|
import { Box } from '@datalayer/primer-addons';
|
|
21
21
|
import { LightBulbIcon } from '@primer/octicons-react';
|
|
22
|
-
import { groupSuggestions } from '../../display/groupSuggestions';
|
|
22
|
+
import { groupSuggestions } from '../../display/groupSuggestions.js';
|
|
23
23
|
export function SuggestionsMenu({ suggestions, onPick, }) {
|
|
24
24
|
const summary = suggestions.length === 0 ? 'none' : `${suggestions.length} to choose from`;
|
|
25
25
|
return (_jsxs(ActionMenu, { children: [_jsx(ActionMenu.Anchor, { children: _jsx(Tooltip, { text: `Suggestions — ${summary}`, direction: "n", children: _jsx(Button, { type: "button", variant: "invisible", size: "small", "aria-label": `Suggestions — ${summary}`, leadingVisual: LightBulbIcon, children: _jsx(Text, { sx: { fontSize: 0 }, children: suggestions.length }) }) }) }), _jsx(ActionMenu.Overlay, { side: "outside-top", align: "start", width: "large", children: _jsx(Box, { maxHeight: "60vh", overflowY: "auto", children: _jsx(ActionList, { children: suggestions.length === 0 ? (_jsx(ActionList.Item, { disabled: true, children: _jsx(Text, { sx: { color: 'fg.muted' }, children: "This agent offers no suggestions." }) })) : (
|
|
@@ -12,7 +12,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
12
12
|
import { Text, Button, ActionMenu, ActionList, ToggleSwitch, Tooltip, } from '@primer/react';
|
|
13
13
|
import { Box } from '@datalayer/primer-addons';
|
|
14
14
|
import { ToolsIcon } from '@primer/octicons-react';
|
|
15
|
-
import { SpecMark, hasMark, marksOfFrontendTool, marksOfMcpServer, marksOfRuntimeTool, } from '../../marks';
|
|
15
|
+
import { SpecMark, hasMark, marksOfFrontendTool, marksOfMcpServer, marksOfRuntimeTool, } from '../../marks/index.js';
|
|
16
16
|
/** A tool's mark, as the leading visual of its row. */
|
|
17
17
|
function LeadingMark({ marks }) {
|
|
18
18
|
return hasMark(marks) ? (_jsx(ActionList.LeadingVisual, { children: _jsx(SpecMark, { icon: marks.icon, emoji: marks.emoji, size: 16 }) })) : null;
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module chat/prompt/menus
|
|
13
13
|
*/
|
|
14
|
-
export { AgentsMenu } from './AgentsMenu';
|
|
15
|
-
export { InlineAgentsMenu } from './InlineAgentsMenu';
|
|
16
|
-
export { ToolsMenu } from './ToolsMenu';
|
|
17
|
-
export { SkillsMenu } from './SkillsMenu';
|
|
18
|
-
export { ModelSelector } from './ModelSelector';
|
|
19
|
-
export { SuggestionsMenu } from './SuggestionsMenu';
|
|
14
|
+
export { AgentsMenu } from './AgentsMenu.js';
|
|
15
|
+
export { InlineAgentsMenu } from './InlineAgentsMenu.js';
|
|
16
|
+
export { ToolsMenu } from './ToolsMenu.js';
|
|
17
|
+
export { SkillsMenu } from './SkillsMenu.js';
|
|
18
|
+
export { ModelSelector } from './ModelSelector.js';
|
|
19
|
+
export { SuggestionsMenu } from './SuggestionsMenu.js';
|
|
@@ -5,7 +5,7 @@ import { AiAgentIcon } from '@datalayer/icons-react';
|
|
|
5
5
|
import { Box } from '@datalayer/primer-addons';
|
|
6
6
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
7
7
|
import { $getSelection, $isRangeSelection, COMMAND_PRIORITY_CRITICAL, KEY_ARROW_DOWN_COMMAND, KEY_ARROW_UP_COMMAND, KEY_ENTER_COMMAND, KEY_ESCAPE_COMMAND, } from 'lexical';
|
|
8
|
-
import { $createMentionNode } from './MentionNode';
|
|
8
|
+
import { $createMentionNode } from './MentionNode.js';
|
|
9
9
|
/**
|
|
10
10
|
* How wide the menu is, and how tall it may grow.
|
|
11
11
|
*
|
package/lib/chat/prompt/stack.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { useTheme } from '@primer/react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
|
-
import { ASSISTANT_CLEARANCE_VAR } from '../assistant/clearance';
|
|
4
|
+
import { ASSISTANT_CLEARANCE_VAR } from '../assistant/clearance.js';
|
|
5
5
|
/** Primer's space scale, for a band drawn without a theme. */
|
|
6
6
|
const PRIMER_SPACE = [
|
|
7
7
|
'0',
|