@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
package/lib/chat/ChatFloating.js
CHANGED
|
@@ -5,30 +5,30 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
5
5
|
import { XIcon, CommentDiscussionIcon, GrabberIcon, } from '@primer/octicons-react';
|
|
6
6
|
import { AiAgentIcon } from '@datalayer/icons-react';
|
|
7
7
|
import { createPortal } from 'react-dom';
|
|
8
|
-
import { ChatBase } from './base/ChatBase';
|
|
9
|
-
import { ButtonGlow } from './display/ButtonGlow';
|
|
10
|
-
import { useViewportDrag } from './useViewportDrag';
|
|
11
|
-
import { disabledChatViewModes, resolveMountPoint } from './viewModes';
|
|
12
|
-
import { AssistantStage } from './assistant/AssistantStage';
|
|
13
|
-
import { ASSISTANT_CLEARANCE_VAR } from './assistant/clearance';
|
|
14
|
-
import { decisionsAskerAt } from './assistant/decisions';
|
|
15
|
-
import { DecisionAsk } from './assistant/DecisionAsk';
|
|
16
|
-
import { useSpokenAnswers } from '../voice/useSpokenAnswers';
|
|
17
|
-
import { useVoiceSpeaker } from '../voice/useVoiceSpeaker';
|
|
18
|
-
import { settledVoice } from '../voice/chatVoice';
|
|
19
|
-
import { useVoiceSettings } from '../voice/useVoiceSettings';
|
|
20
|
-
import { BalloonApprovalMessage, CONVERSATION_BALLOON_WIDTH, ConversationBalloonClose, balloonTailAt, conversationBalloonHeight, conversationBalloonSx, CURRENT_BALLOON_HEIGHT, peekLine, } from './assistant/ConversationBalloon';
|
|
21
|
-
import { ConversationBalloonHeader, CurrentBalloonBody, } from './assistant/BalloonParts';
|
|
22
|
-
import { DEFAULT_BALLOON_DISPLAY, conversationCount, newestToolLine, toolLineText, } from './assistant/toolLine';
|
|
23
|
-
import { SpeechBalloon } from './assistant/SpeechBalloon';
|
|
24
|
-
import { DEFAULT_ASSISTANT_CHARACTER, } from './assistant/characters';
|
|
25
|
-
import { assistantStateOf, latestSaying, newestIsAnswer, keepAway, keptAway, } from './assistant/state';
|
|
26
|
-
import { presenceState, presenceToolOf, } from './presence/presenceStatus';
|
|
27
|
-
import { useChatOpen, useChatMessages, useChatStore, } from '../stores/chatStore';
|
|
8
|
+
import { ChatBase } from './base/ChatBase.js';
|
|
9
|
+
import { ButtonGlow } from './display/ButtonGlow.js';
|
|
10
|
+
import { useViewportDrag } from './useViewportDrag.js';
|
|
11
|
+
import { disabledChatViewModes, resolveMountPoint } from './viewModes.js';
|
|
12
|
+
import { AssistantStage } from './assistant/AssistantStage.js';
|
|
13
|
+
import { ASSISTANT_CLEARANCE_VAR } from './assistant/clearance.js';
|
|
14
|
+
import { decisionsAskerAt } from './assistant/decisions.js';
|
|
15
|
+
import { DecisionAsk } from './assistant/DecisionAsk.js';
|
|
16
|
+
import { useSpokenAnswers } from '../voice/useSpokenAnswers.js';
|
|
17
|
+
import { useVoiceSpeaker } from '../voice/useVoiceSpeaker.js';
|
|
18
|
+
import { settledVoice } from '../voice/chatVoice.js';
|
|
19
|
+
import { useVoiceSettings } from '../voice/useVoiceSettings.js';
|
|
20
|
+
import { BalloonApprovalMessage, CONVERSATION_BALLOON_WIDTH, ConversationBalloonClose, balloonTailAt, conversationBalloonHeight, conversationBalloonSx, CURRENT_BALLOON_HEIGHT, peekLine, } from './assistant/ConversationBalloon.js';
|
|
21
|
+
import { ConversationBalloonHeader, CurrentBalloonBody, } from './assistant/BalloonParts.js';
|
|
22
|
+
import { DEFAULT_BALLOON_DISPLAY, conversationCount, newestToolLine, toolLineText, } from './assistant/toolLine.js';
|
|
23
|
+
import { SpeechBalloon } from './assistant/SpeechBalloon.js';
|
|
24
|
+
import { DEFAULT_ASSISTANT_CHARACTER, } from './assistant/characters.js';
|
|
25
|
+
import { assistantStateOf, latestSaying, newestIsAnswer, keepAway, keptAway, } from './assistant/state.js';
|
|
26
|
+
import { presenceState, presenceToolOf, } from './presence/presenceStatus.js';
|
|
27
|
+
import { useChatOpen, useChatMessages, useChatStore, } from '../stores/chatStore.js';
|
|
28
28
|
import { useChatKeyboardShortcuts, getShortcutDisplay, } from '@datalayer/core/lib/hooks';
|
|
29
|
-
import { assistantSandboxOf, } from './assistant/assistantDetails';
|
|
30
|
-
import { useAgentRuntimeCodemodeStatus } from '../stores/agentRuntimeStore';
|
|
31
|
-
import { useChatWords } from './ChatLanguage';
|
|
29
|
+
import { assistantSandboxOf, } from './assistant/assistantDetails.js';
|
|
30
|
+
import { useAgentRuntimeCodemodeStatus } from '../stores/agentRuntimeStore.js';
|
|
31
|
+
import { useChatWords } from './ChatLanguage.js';
|
|
32
32
|
/**
|
|
33
33
|
* Hook to detect mobile viewport
|
|
34
34
|
*/
|
package/lib/chat/ChatInline.js
CHANGED
|
@@ -4,10 +4,10 @@ import { Text, TextInput, IconButton, ActionList, Spinner, } from '@primer/react
|
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { CopyIcon, ArrowLeftIcon, SyncIcon, TrashIcon, CheckIcon, PlusIcon, PencilIcon, XIcon, } from '@primer/octicons-react';
|
|
6
6
|
import { SparklesIcon } from '@datalayer/icons-react';
|
|
7
|
-
import { AGUIAdapter } from '../protocols';
|
|
8
|
-
import { generateMessageId } from '../types/messages';
|
|
9
|
-
import { BROWSER_LIMITS, emptyConversation, reduceConversation, } from '../portable/conversation';
|
|
10
|
-
import { conversationEventsOf } from '../portable/adapterEvents';
|
|
7
|
+
import { AGUIAdapter } from '../protocols/index.js';
|
|
8
|
+
import { generateMessageId } from '../types/messages.js';
|
|
9
|
+
import { BROWSER_LIMITS, emptyConversation, reduceConversation, } from '../portable/conversation.js';
|
|
10
|
+
import { conversationEventsOf } from '../portable/adapterEvents.js';
|
|
11
11
|
/** The answer so far: the newest assistant message of the conversation. */
|
|
12
12
|
function answerOf(state) {
|
|
13
13
|
for (let index = state.items.length - 1; index >= 0; index -= 1) {
|
package/lib/chat/ChatLanguage.js
CHANGED
|
@@ -10,8 +10,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
10
10
|
* @module chat/ChatLanguage
|
|
11
11
|
*/
|
|
12
12
|
import { createContext, useContext, useMemo, } from 'react';
|
|
13
|
-
import { preferredLanguages } from '../apps/apps/language';
|
|
14
|
-
import { CHAT_WORDS, chatLanguage } from './words';
|
|
13
|
+
import { preferredLanguages } from '../apps/apps/language.js';
|
|
14
|
+
import { CHAT_WORDS, chatLanguage } from './words.js';
|
|
15
15
|
/** The language the host says, as BCP 47 tags it; unsaid, the browser's. */
|
|
16
16
|
const ChatLanguageContext = createContext(undefined);
|
|
17
17
|
/** The chat in a language its host says; the browser's when it says none. */
|
|
@@ -19,10 +19,10 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
19
19
|
import { XIcon, CommentDiscussionIcon, PaperAirplaneIcon, SquareCircleIcon, } from '@primer/octicons-react';
|
|
20
20
|
import { AiAgentIcon } from '@datalayer/icons-react';
|
|
21
21
|
import { useChatKeyboardShortcuts, getShortcutDisplay, } from '@datalayer/core/lib/hooks';
|
|
22
|
-
import { ChatBase } from './base/ChatBase';
|
|
23
|
-
import { PoweredByTag } from './display/PoweredByTag';
|
|
24
|
-
import { useChatOpen, useChatMessages, useChatStore, useChatLoading, useChatStreaming, } from '../stores/chatStore';
|
|
25
|
-
import { generateMessageId, createUserMessage, createAssistantMessage, } from '../types/messages';
|
|
22
|
+
import { ChatBase } from './base/ChatBase.js';
|
|
23
|
+
import { PoweredByTag } from './display/PoweredByTag.js';
|
|
24
|
+
import { useChatOpen, useChatMessages, useChatStore, useChatLoading, useChatStreaming, } from '../stores/chatStore.js';
|
|
25
|
+
import { generateMessageId, createUserMessage, createAssistantMessage, } from '../types/messages.js';
|
|
26
26
|
/**
|
|
27
27
|
* Hook to detect mobile viewport
|
|
28
28
|
*/
|
package/lib/chat/ChatSidebar.js
CHANGED
|
@@ -17,8 +17,8 @@ import { IconButton } from '@primer/react';
|
|
|
17
17
|
import { Box } from '@datalayer/primer-addons';
|
|
18
18
|
import { XIcon, SidebarExpandIcon, SidebarCollapseIcon, } from '@primer/octicons-react';
|
|
19
19
|
import { useChatKeyboardShortcuts, getShortcutDisplay, } from '@datalayer/core/lib/hooks';
|
|
20
|
-
import { ChatBase } from './base/ChatBase';
|
|
21
|
-
import { useChatStore, useChatOpen, useChatMessages, } from '../stores/chatStore';
|
|
20
|
+
import { ChatBase } from './base/ChatBase.js';
|
|
21
|
+
import { useChatStore, useChatOpen, useChatMessages, } from '../stores/chatStore.js';
|
|
22
22
|
/**
|
|
23
23
|
* Hook to detect mobile viewport
|
|
24
24
|
*/
|
|
@@ -19,9 +19,9 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
19
19
|
import { XIcon, CommentDiscussionIcon } from '@primer/octicons-react';
|
|
20
20
|
import { AiAgentIcon } from '@datalayer/icons-react';
|
|
21
21
|
import { useChatKeyboardShortcuts, getShortcutDisplay, } from '@datalayer/core/lib/hooks';
|
|
22
|
-
import { ChatBase } from './base/ChatBase';
|
|
23
|
-
import { PoweredByTag } from './display/PoweredByTag';
|
|
24
|
-
import { useChatOpen, useChatMessages, useChatStore, } from '../stores/chatStore';
|
|
22
|
+
import { ChatBase } from './base/ChatBase.js';
|
|
23
|
+
import { PoweredByTag } from './display/PoweredByTag.js';
|
|
24
|
+
import { useChatOpen, useChatMessages, useChatStore, } from '../stores/chatStore.js';
|
|
25
25
|
/**
|
|
26
26
|
* Hook to detect mobile viewport
|
|
27
27
|
*/
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import { Dialog } from '@primer/react';
|
|
4
4
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
5
|
-
import { AgentDetails } from '../../agents/AgentDetails';
|
|
5
|
+
import { AgentDetails } from '../../agents/AgentDetails.js';
|
|
6
6
|
export function AgentDetailsDialog({ about, name, onClose, }) {
|
|
7
7
|
// AgentDetails reads the runtime through react-query; a page that shows
|
|
8
8
|
// only a character has no client of its own.
|
|
@@ -33,7 +33,7 @@ import { type AssistantMenuItem } from './AssistantContextMenu';
|
|
|
33
33
|
import type { OtelLiveTracer } from '@datalayer/core/lib/otel/live';
|
|
34
34
|
import type { AssistantSandbox } from './assistantDetails';
|
|
35
35
|
import { type BalloonExpandTarget, type BalloonVisual } from './BalloonVisual';
|
|
36
|
-
import { type AssistantModel3D } from './
|
|
36
|
+
import { type AssistantModel3D } from './avatar3dModel';
|
|
37
37
|
import type { AssistantCharacterData } from './formats/types';
|
|
38
38
|
import type { DecisionAsker } from './decisions';
|
|
39
39
|
import { type BalloonDisplay, type BalloonToolLine } from './toolLine';
|
|
@@ -4,24 +4,24 @@ import { ActionList, ActionMenu, IconButton, useTheme } from '@primer/react';
|
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { CodeIcon, CommentDiscussionIcon, DependabotIcon, InfoIcon, MuteIcon, PencilIcon, PlusIcon, PulseIcon, ScreenNormalIcon, SquareFillIcon, TrashIcon, UnmuteIcon, XIcon, } from '@primer/octicons-react';
|
|
6
6
|
import { Dialog, Text } from '@primer/react';
|
|
7
|
-
import { assistantCharacter } from './characters';
|
|
8
|
-
import { BalloonHistoryLarge, SpeechBalloon, } from './SpeechBalloon';
|
|
9
|
-
import { conversationHeaderText } from './BalloonParts';
|
|
10
|
-
import { ASSISTANT_CLEARANCE_VAR } from './clearance';
|
|
11
|
-
import { AssistantContextMenu, LONG_PRESS_MS, opensContextMenu, } from './AssistantContextMenu';
|
|
12
|
-
import { BalloonExpandContext, ExpandedVisual, focusExpanded, } from './BalloonVisual';
|
|
13
|
-
import { SpriteCharacter } from './SpriteCharacter';
|
|
14
|
-
import { BALLOON_GRACE_MS, BALLOON_HOVER_START, balloonHover, graceRuns, } from './balloonHover';
|
|
15
|
-
import { isAssistantModel3D } from './
|
|
16
|
-
import { conversationCount, } from './toolLine';
|
|
17
|
-
import { ASSISTANT_OBSTACLES, POINTER_CALM_MS, mouthOpening, boxesMeet, pointerNear, } from './state';
|
|
18
|
-
import { useChatWords } from '../ChatLanguage';
|
|
7
|
+
import { assistantCharacter } from './characters.js';
|
|
8
|
+
import { BalloonHistoryLarge, SpeechBalloon, } from './SpeechBalloon.js';
|
|
9
|
+
import { conversationHeaderText } from './BalloonParts.js';
|
|
10
|
+
import { ASSISTANT_CLEARANCE_VAR } from './clearance.js';
|
|
11
|
+
import { AssistantContextMenu, LONG_PRESS_MS, opensContextMenu, } from './AssistantContextMenu.js';
|
|
12
|
+
import { BalloonExpandContext, ExpandedVisual, focusExpanded, } from './BalloonVisual.js';
|
|
13
|
+
import { SpriteCharacter } from './SpriteCharacter.js';
|
|
14
|
+
import { BALLOON_GRACE_MS, BALLOON_HOVER_START, balloonHover, graceRuns, } from './balloonHover.js';
|
|
15
|
+
import { isAssistantModel3D } from './avatar3dModel.js';
|
|
16
|
+
import { conversationCount, } from './toolLine.js';
|
|
17
|
+
import { ASSISTANT_OBSTACLES, POINTER_CALM_MS, mouthOpening, boxesMeet, pointerNear, } from './state.js';
|
|
18
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
19
19
|
/**
|
|
20
20
|
* The 3D avatar's drawing, loaded with three.js only when one is shown: a
|
|
21
21
|
* page with Datalayer's drawings or a Microsoft Agent character never
|
|
22
22
|
* fetches either.
|
|
23
23
|
*/
|
|
24
|
-
const Avatar3D = lazy(() => import('./Avatar3D'));
|
|
24
|
+
const Avatar3D = lazy(() => import('./Avatar3D.js'));
|
|
25
25
|
/** The motions, by the state the stage is in. */
|
|
26
26
|
const MOTIONS = {
|
|
27
27
|
'@keyframes assistantFloat': {
|
|
@@ -73,11 +73,11 @@ const AWAY_CHOICES = [
|
|
|
73
73
|
{ away: 'always', label: 'Don\u2019t show again' },
|
|
74
74
|
];
|
|
75
75
|
/** The Agent Inspector's dialog: loaded when it is first asked for. */
|
|
76
|
-
const AgentInspectorDialog = lazy(() => import('../../components/inspector/AgentInspectorDialog'));
|
|
76
|
+
const AgentInspectorDialog = lazy(() => import('../../components/inspector/AgentInspectorDialog.js'));
|
|
77
77
|
/** *Agent Details…*: loaded when it is first asked for. */
|
|
78
|
-
const AgentDetailsDialog = lazy(() => import('./AgentDetailsDialog'));
|
|
78
|
+
const AgentDetailsDialog = lazy(() => import('./AgentDetailsDialog.js'));
|
|
79
79
|
/** *Code Sandbox Details…*: loaded when it is first asked for. */
|
|
80
|
-
const SandboxDetailsDialog = lazy(() => import('./SandboxDetailsDialog'));
|
|
80
|
+
const SandboxDetailsDialog = lazy(() => import('./SandboxDetailsDialog.js'));
|
|
81
81
|
/**
|
|
82
82
|
* The entries of the assistant's menu, composed from what the host passes:
|
|
83
83
|
* each shows when what it does is there to do.
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
* @module chat/assistant/Avatar3D
|
|
24
24
|
*/
|
|
25
25
|
import type { JSX } from 'react';
|
|
26
|
-
import { type AssistantModel3D } from './
|
|
26
|
+
import { type AssistantModel3D } from './avatar3dModel';
|
|
27
27
|
import type { AssistantState } from './state';
|
|
28
28
|
export interface Avatar3DProps {
|
|
29
29
|
avatar: AssistantModel3D;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { CROSSFADE_SECONDS, GOODBYE_WAVE_SECONDS, NO_WEBGL_SENTENCE, OUT_OF_FRAME, REST_POSE, accentPose, cameraDistance, dampedPose, idleClipName, leavingPose, modelNotLoadedSentence, prefersReducedMotion, proceduralPose, smoothed, stateMotion, talkAmount, talkingMorphIndices, walkClipName, webglAvailable, } from './
|
|
3
|
+
import { CROSSFADE_SECONDS, GOODBYE_WAVE_SECONDS, NO_WEBGL_SENTENCE, OUT_OF_FRAME, REST_POSE, accentPose, cameraDistance, dampedPose, idleClipName, leavingPose, modelNotLoadedSentence, prefersReducedMotion, proceduralPose, smoothed, stateMotion, talkAmount, talkingMorphIndices, walkClipName, webglAvailable, } from './avatar3dModel.js';
|
|
4
4
|
/** The field of view of its camera, in degrees. */
|
|
5
5
|
const FOV = 30;
|
|
6
6
|
export function Avatar3D({ avatar, state, size, mouthLevel, aside = false, replay = 0, }) {
|
|
@@ -2,14 +2,14 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
|
|
3
3
|
import { Text } from '@primer/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
|
-
import { TypingDots } from '../indicators/TypingDots';
|
|
6
|
-
import { ChatMessageList } from '../messages/ChatMessageList';
|
|
7
|
-
import { ChatMarkdown } from '../messages/ChatMarkdown';
|
|
8
|
-
import { agentRuntimeStore } from '../../stores/agentRuntimeStore';
|
|
9
|
-
import { toolAnnouncement, displayItemOfLine, } from './toolLine';
|
|
10
|
-
import { useChatWords } from '../ChatLanguage';
|
|
11
|
-
import { ENGLISH_CHAT_WORDS } from '../words';
|
|
12
|
-
import { plainWords } from '../../voice/sentences';
|
|
5
|
+
import { TypingDots } from '../indicators/TypingDots.js';
|
|
6
|
+
import { ChatMessageList } from '../messages/ChatMessageList.js';
|
|
7
|
+
import { ChatMarkdown } from '../messages/ChatMarkdown.js';
|
|
8
|
+
import { agentRuntimeStore } from '../../stores/agentRuntimeStore.js';
|
|
9
|
+
import { toolAnnouncement, displayItemOfLine, } from './toolLine.js';
|
|
10
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
11
|
+
import { ENGLISH_CHAT_WORDS } from '../words.js';
|
|
12
|
+
import { plainWords } from '../../voice/sentences.js';
|
|
13
13
|
/** Out of sight, still heard. */
|
|
14
14
|
const VISUALLY_HIDDEN = {
|
|
15
15
|
position: 'absolute',
|
|
@@ -4,7 +4,7 @@ import { createPortal } from 'react-dom';
|
|
|
4
4
|
import { Button, Dialog, IconButton } from '@primer/react';
|
|
5
5
|
import { Box } from '@datalayer/primer-addons';
|
|
6
6
|
import { ScreenFullIcon, ScreenNormalIcon, XIcon, } from '@primer/octicons-react';
|
|
7
|
-
import { useChatWords } from '../ChatLanguage';
|
|
7
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
8
8
|
/**
|
|
9
9
|
* Expands the visual of the balloon it is in: what its compact form (a
|
|
10
10
|
* notebook's preview) calls when it is clicked. None outside such a balloon.
|
|
@@ -3,7 +3,7 @@ import { useEffect, useRef } from 'react';
|
|
|
3
3
|
import { Button, IconButton, Text } from '@primer/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { XIcon } from '@primer/octicons-react';
|
|
6
|
-
import { useChatWords } from '../ChatLanguage';
|
|
6
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
7
7
|
/** The open balloon's width, in pixels. */
|
|
8
8
|
export const CONVERSATION_BALLOON_WIDTH = 380;
|
|
9
9
|
/** The open balloon's tallest, in pixels, and its share of the window. */
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { Button, FormControl, Select, Text, Textarea, TextInput, } from '@primer/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
|
-
import { DEFAULT_SCORE_RANGE, decisionAskProblem, decisionRequest, decisionResponseWords, } from './decisions';
|
|
5
|
+
import { DEFAULT_SCORE_RANGE, decisionAskProblem, decisionRequest, decisionResponseWords, } from './decisions.js';
|
|
6
6
|
/** The balloon's words for a decision. */
|
|
7
7
|
export const DECISION_WORDS = {
|
|
8
8
|
ask: 'Ask a decision',
|
|
@@ -5,7 +5,7 @@ import { CheckIcon, CopyIcon } from '@primer/octicons-react';
|
|
|
5
5
|
import { Box } from '@datalayer/primer-addons';
|
|
6
6
|
import { KernelAPI, KernelConnection, ServerConnection, } from '@jupyterlab/services';
|
|
7
7
|
import { KernelVariables, executeSilently, } from '@datalayer/jupyter-react';
|
|
8
|
-
import { NO_SANDBOX_YET, SANDBOX_KIND_LABELS, displayUrl, sandboxIsLive, sandboxExecuteOverHttp, timeLeft, } from './assistantDetails';
|
|
8
|
+
import { NO_SANDBOX_YET, SANDBOX_KIND_LABELS, displayUrl, sandboxIsLive, sandboxExecuteOverHttp, timeLeft, } from './assistantDetails.js';
|
|
9
9
|
/** A status, as a Primer label. */
|
|
10
10
|
function StatusLabel({ status }) {
|
|
11
11
|
const variant = status === 'running' || status === 'idle'
|
|
@@ -3,12 +3,12 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
3
3
|
import { Button, IconButton, Text } from '@primer/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { XIcon } from '@primer/octicons-react';
|
|
6
|
-
import { DecisionAsk } from './DecisionAsk';
|
|
7
|
-
import { BalloonChatItems, BalloonToolCall, CurrentBalloonBody, ToolLineAnnouncer, conversationHeaderText, } from './BalloonParts';
|
|
8
|
-
import { conversationCount, withToolCall, } from './toolLine';
|
|
9
|
-
import { BalloonExpandButton } from './BalloonVisual';
|
|
6
|
+
import { DecisionAsk } from './DecisionAsk.js';
|
|
7
|
+
import { BalloonChatItems, BalloonToolCall, CurrentBalloonBody, ToolLineAnnouncer, conversationHeaderText, } from './BalloonParts.js';
|
|
8
|
+
import { conversationCount, withToolCall, } from './toolLine.js';
|
|
9
|
+
import { BalloonExpandButton } from './BalloonVisual.js';
|
|
10
10
|
import { ScreenFullIcon } from '@primer/octicons-react';
|
|
11
|
-
import { useChatWords } from '../ChatLanguage';
|
|
11
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
12
12
|
/** The suggestions, as chips: each sends its prompt. */
|
|
13
13
|
export function BalloonSuggestions({ suggestions, onSuggestion, }) {
|
|
14
14
|
const chatText = useChatWords();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
-
import { stateAnimations } from './formats/stateAnimations';
|
|
4
|
-
import { mouthOpening } from './state';
|
|
3
|
+
import { stateAnimations } from './formats/stateAnimations.js';
|
|
4
|
+
import { mouthOpening } from './state.js';
|
|
5
5
|
/** How often the mouth changes while the character speaks, in milliseconds. */
|
|
6
6
|
export const MOUTH_STEP_MS = 110;
|
|
7
7
|
const WIDE = ['wide1', 'wide2', 'wide3', 'wide4'];
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* can draw 3D at all — so it is tested without WebGL; `Avatar3D` draws it,
|
|
8
8
|
* loading three.js only when one is shown.
|
|
9
9
|
*
|
|
10
|
-
* @module chat/assistant/
|
|
10
|
+
* @module chat/assistant/avatar3dModel
|
|
11
11
|
*/
|
|
12
12
|
import type { AppAvatarModel3D } from '../../types/agentspecs';
|
|
13
13
|
import type { AssistantState } from './state';
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
*
|
|
21
21
|
* @module chat/assistant/formats/acf
|
|
22
22
|
*/
|
|
23
|
-
import { decompressAgentData } from './agentCompression';
|
|
24
|
-
import { ACF_SIGNATURE, AgentReader, drawAgentCharacter, } from './acs';
|
|
25
|
-
import { AssistantCharacterFormatError, } from './types';
|
|
23
|
+
import { decompressAgentData } from './agentCompression.js';
|
|
24
|
+
import { ACF_SIGNATURE, AgentReader, drawAgentCharacter, } from './acs.js';
|
|
25
|
+
import { AssistantCharacterFormatError, } from './types.js';
|
|
26
26
|
/** No image, or no sound, in an `.aca` frame. */
|
|
27
27
|
const NONE = 0xffff;
|
|
28
28
|
/** A bottom-up 8-bit bitmap, its rows padded to four bytes, top row first. */
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @module chat/assistant/formats/acs
|
|
18
18
|
*/
|
|
19
|
-
import { decompressAgentData } from './agentCompression';
|
|
20
|
-
import { objectUrl } from './blobs';
|
|
21
|
-
import { AssistantCharacterFormatError, } from './types';
|
|
19
|
+
import { decompressAgentData } from './agentCompression.js';
|
|
20
|
+
import { objectUrl } from './blobs.js';
|
|
21
|
+
import { AssistantCharacterFormatError, } from './types.js';
|
|
22
22
|
export const ACS_SIGNATURE = 0xabcdabc3;
|
|
23
23
|
export const ACF_SIGNATURE = 0xabcdabc4;
|
|
24
24
|
/** Character style flags (ACSCHARACTERINFO). */
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module chat/assistant/formats/blobs
|
|
10
10
|
*/
|
|
11
|
-
import { AssistantCharacterFormatError } from './types';
|
|
11
|
+
import { AssistantCharacterFormatError } from './types.js';
|
|
12
12
|
/** The bytes of a blob. */
|
|
13
13
|
export async function blobBytes(blob) {
|
|
14
14
|
if (typeof blob.arrayBuffer === 'function') {
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module chat/assistant/formats/clippy
|
|
13
13
|
*/
|
|
14
|
-
import { blobBytes, imageTypeOf, objectUrl } from './blobs';
|
|
15
|
-
import { readRegistrationCall } from './objectLiteral';
|
|
16
|
-
import { AssistantCharacterFormatError, } from './types';
|
|
14
|
+
import { blobBytes, imageTypeOf, objectUrl } from './blobs.js';
|
|
15
|
+
import { readRegistrationCall } from './objectLiteral.js';
|
|
16
|
+
import { AssistantCharacterFormatError, } from './types.js';
|
|
17
17
|
function fail(message) {
|
|
18
18
|
throw new AssistantCharacterFormatError(message);
|
|
19
19
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module chat/assistant/formats/files
|
|
13
13
|
*/
|
|
14
|
-
import { readAcfCharacter } from './acf';
|
|
15
|
-
import { readAcsCharacter } from './acs';
|
|
16
|
-
import { readClippyCharacter } from './clippy';
|
|
17
|
-
import { AssistantCharacterFormatError, } from './types';
|
|
14
|
+
import { readAcfCharacter } from './acf.js';
|
|
15
|
+
import { readAcsCharacter } from './acs.js';
|
|
16
|
+
import { readClippyCharacter } from './clippy.js';
|
|
17
|
+
import { AssistantCharacterFormatError, } from './types.js';
|
|
18
18
|
/** What a file picker for a character accepts. */
|
|
19
19
|
export const CHARACTER_FILES_ACCEPT = '.acs,.acf,.aca,.js,.png,.gif,.webp,.jpg,.jpeg';
|
|
20
20
|
/** The sentence for a pick that is not a character. */
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
*
|
|
10
10
|
* @module chat/assistant/formats
|
|
11
11
|
*/
|
|
12
|
-
export * from './types';
|
|
13
|
-
export { readClippyCharacter, readClippyAgent, readClippySounds, } from './clippy';
|
|
14
|
-
export { readAcsCharacter, parseAcs, decodeAcsImage, layoutAcsSprite, composeAcsCell, drawAgentCharacter, mouthImages, MOUTH_SHAPES, } from './acs';
|
|
15
|
-
export { readAcfCharacter, parseAcf, parseAca } from './acf';
|
|
16
|
-
export { decompressAgentData } from './agentCompression';
|
|
17
|
-
export { stateAnimations } from './stateAnimations';
|
|
18
|
-
export { CHARACTER_FILES_ACCEPT, CHARACTER_FILES_EXPECTED, characterFilesOf, readCharacterFiles, } from './files';
|
|
12
|
+
export * from './types.js';
|
|
13
|
+
export { readClippyCharacter, readClippyAgent, readClippySounds, } from './clippy.js';
|
|
14
|
+
export { readAcsCharacter, parseAcs, decodeAcsImage, layoutAcsSprite, composeAcsCell, drawAgentCharacter, mouthImages, MOUTH_SHAPES, } from './acs.js';
|
|
15
|
+
export { readAcfCharacter, parseAcf, parseAca } from './acf.js';
|
|
16
|
+
export { decompressAgentData } from './agentCompression.js';
|
|
17
|
+
export { stateAnimations } from './stateAnimations.js';
|
|
18
|
+
export { CHARACTER_FILES_ACCEPT, CHARACTER_FILES_EXPECTED, characterFilesOf, readCharacterFiles, } from './files.js';
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module chat/assistant/formats/objectLiteral
|
|
12
12
|
*/
|
|
13
|
-
import { AssistantCharacterFormatError } from './types';
|
|
13
|
+
import { AssistantCharacterFormatError } from './types.js';
|
|
14
14
|
const IDENTIFIER_START = /[A-Za-z_$]/;
|
|
15
15
|
const IDENTIFIER_PART = /[A-Za-z0-9_$]/;
|
|
16
16
|
const MAX_DEPTH = 64;
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module chat/assistant/toolLine
|
|
12
12
|
*/
|
|
13
|
-
import { BACKEND_TOOL_CATALOG } from '../../specs/backendTools';
|
|
14
|
-
import { ENGLISH_CHAT_WORDS } from '../words';
|
|
13
|
+
import { BACKEND_TOOL_CATALOG } from '../../specs/backendTools.js';
|
|
14
|
+
import { ENGLISH_CHAT_WORDS } from '../words.js';
|
|
15
15
|
/** The two displays, in the Appspec's order (`interface.balloon`). */
|
|
16
16
|
export const BALLOON_DISPLAYS = [
|
|
17
17
|
'history',
|
|
@@ -30,43 +30,43 @@ import { AiAgentIcon } from '@datalayer/icons-react';
|
|
|
30
30
|
import { QueryClientProvider, QueryClientContext } from '@tanstack/react-query';
|
|
31
31
|
import { useCoreStore } from '@datalayer/core';
|
|
32
32
|
import { DEFAULT_SERVICE_URLS } from '@datalayer/core/lib/api/constants';
|
|
33
|
-
import { useChatStore } from '../../stores/chatStore';
|
|
34
|
-
import { useConversationStore } from '../../stores/conversationStore';
|
|
35
|
-
import { askedOf } from '../../portable/records';
|
|
36
|
-
import { extractChatMessagesFromFullContext } from './fullContextMessages';
|
|
37
|
-
import { generateMessageId, createUserMessage } from '../../types/messages';
|
|
38
|
-
import { AI_MODEL_CATALOGUE, DEFAULT_MODEL, isChatModel, } from '../../specs/models';
|
|
39
|
-
import { internalQueryClient, isToolCallMessage, getMessageText, createProtocolAdapter, getApiBaseFromConfig, sanitizeAssistantContent, } from '../../utils';
|
|
40
|
-
import { BROWSER_LIMITS, emptyConversation, HARNESS_TOOL_CALL, reduceConversation, withError, withoutItems, withPrompt, withTurnEnded, } from '../../portable/conversation';
|
|
41
|
-
import { conversationEventsOf, snapshotOfMessages, } from '../../portable/adapterEvents';
|
|
42
|
-
import { conversationDrawer, emptyChatLayer, rowIdOf, toolCallOf, } from './conversationItems';
|
|
43
|
-
import { useConfig, useSkills, useSkillActions, useContextSnapshot, useSandbox, } from '../../hooks';
|
|
44
|
-
import { useAgentRuntimeWebSocket } from '../../hooks/useAgentRuntimes';
|
|
45
|
-
import { agentRuntimeStore, useAgentRuntimeStore, useAgentRuntimeWsState, } from '../../stores/agentRuntimeStore';
|
|
46
|
-
import { ChatBaseHeader, } from '../header/ChatHeaderBase';
|
|
47
|
-
import { useChatAvailability } from './ChatAvailability';
|
|
48
|
-
import { ChatEmptyState } from '../display/EmptyState';
|
|
49
|
-
import { FloatingBrandButton } from '../display/FloatingBrandButton';
|
|
50
|
-
import { PoweredByTag } from '../display/PoweredByTag';
|
|
51
|
-
import { EphemeralSurfaceControl } from '../EphemeralSurfaceControl';
|
|
52
|
-
import { ChatMessageList, } from '../messages/ChatMessageList';
|
|
53
|
-
import { InputPrompt } from '../prompt/InputPrompt';
|
|
54
|
-
import { ComposerVoice, spokenOf } from '../../voice/ComposerVoice';
|
|
55
|
-
import { answerSpokenOver } from '../../voice/
|
|
56
|
-
import { ReadAloud, readsAloud } from '../../voice/ReadAloud';
|
|
57
|
-
import { settledVoice } from '../../voice/chatVoice';
|
|
58
|
-
import { useVoiceSettings } from '../../voice/useVoiceSettings';
|
|
59
|
-
import { useVoiceSpeaker } from '../../voice/useVoiceSpeaker';
|
|
60
|
-
import { useSpokenAnswers } from '../../voice/useSpokenAnswers';
|
|
61
|
-
import { saidMessageId, useSaidSentence } from '../../voice/captions';
|
|
62
|
-
import { isVoiceInterrupted, lineToSay, } from '../../voice/sayAloud';
|
|
63
|
-
import { isFloatingChatViewMode } from '../viewModes';
|
|
64
|
-
import { ToolApprovalBanner, ToolApprovalDialog, } from '../tools';
|
|
65
|
-
import { initialModelId, isOffered, offeredModels as offeredModelsFor, } from './modelChoice';
|
|
33
|
+
import { useChatStore } from '../../stores/chatStore.js';
|
|
34
|
+
import { useConversationStore } from '../../stores/conversationStore.js';
|
|
35
|
+
import { askedOf } from '../../portable/records.js';
|
|
36
|
+
import { extractChatMessagesFromFullContext } from './fullContextMessages.js';
|
|
37
|
+
import { generateMessageId, createUserMessage } from '../../types/messages.js';
|
|
38
|
+
import { AI_MODEL_CATALOGUE, DEFAULT_MODEL, isChatModel, } from '../../specs/models.js';
|
|
39
|
+
import { internalQueryClient, isToolCallMessage, getMessageText, createProtocolAdapter, getApiBaseFromConfig, sanitizeAssistantContent, } from '../../utils/index.js';
|
|
40
|
+
import { BROWSER_LIMITS, emptyConversation, HARNESS_TOOL_CALL, reduceConversation, withError, withoutItems, withPrompt, withTurnEnded, } from '../../portable/conversation.js';
|
|
41
|
+
import { conversationEventsOf, snapshotOfMessages, } from '../../portable/adapterEvents.js';
|
|
42
|
+
import { conversationDrawer, emptyChatLayer, rowIdOf, toolCallOf, } from './conversationItems.js';
|
|
43
|
+
import { useConfig, useSkills, useSkillActions, useContextSnapshot, useSandbox, } from '../../hooks/index.js';
|
|
44
|
+
import { useAgentRuntimeWebSocket } from '../../hooks/useAgentRuntimes.js';
|
|
45
|
+
import { agentRuntimeStore, useAgentRuntimeStore, useAgentRuntimeWsState, } from '../../stores/agentRuntimeStore.js';
|
|
46
|
+
import { ChatBaseHeader, } from '../header/ChatHeaderBase.js';
|
|
47
|
+
import { useChatAvailability } from './ChatAvailability.js';
|
|
48
|
+
import { ChatEmptyState } from '../display/EmptyState.js';
|
|
49
|
+
import { FloatingBrandButton } from '../display/FloatingBrandButton.js';
|
|
50
|
+
import { PoweredByTag } from '../display/PoweredByTag.js';
|
|
51
|
+
import { EphemeralSurfaceControl } from '../EphemeralSurfaceControl.js';
|
|
52
|
+
import { ChatMessageList, } from '../messages/ChatMessageList.js';
|
|
53
|
+
import { InputPrompt } from '../prompt/InputPrompt.js';
|
|
54
|
+
import { ComposerVoice, spokenOf } from '../../voice/ComposerVoice.js';
|
|
55
|
+
import { answerSpokenOver } from '../../voice/handsFreeRules.js';
|
|
56
|
+
import { ReadAloud, readsAloud } from '../../voice/ReadAloud.js';
|
|
57
|
+
import { settledVoice } from '../../voice/chatVoice.js';
|
|
58
|
+
import { useVoiceSettings } from '../../voice/useVoiceSettings.js';
|
|
59
|
+
import { useVoiceSpeaker } from '../../voice/useVoiceSpeaker.js';
|
|
60
|
+
import { useSpokenAnswers } from '../../voice/useSpokenAnswers.js';
|
|
61
|
+
import { saidMessageId, useSaidSentence } from '../../voice/captions.js';
|
|
62
|
+
import { isVoiceInterrupted, lineToSay, } from '../../voice/sayAloud.js';
|
|
63
|
+
import { isFloatingChatViewMode } from '../viewModes.js';
|
|
64
|
+
import { ToolApprovalBanner, ToolApprovalDialog, } from '../tools/index.js';
|
|
65
|
+
import { initialModelId, isOffered, offeredModels as offeredModelsFor, } from './modelChoice.js';
|
|
66
66
|
// EphemeralDocument statically imports `@datalayer/jupyter-lexical` (which
|
|
67
67
|
// initialises Lumino-backed nodes on load). Lazy-load it so notebook-only chats
|
|
68
68
|
// never pull lexical into the bundle or trigger its module side effects.
|
|
69
|
-
const EphemeralDocument = React.lazy(() => import('../document/EphemeralDocument').then(m => ({
|
|
69
|
+
const EphemeralDocument = React.lazy(() => import('../document/EphemeralDocument.js').then(m => ({
|
|
70
70
|
default: m.EphemeralDocument,
|
|
71
71
|
})));
|
|
72
72
|
// The agent's details (its context charts draw with ECharts) and the
|
|
@@ -74,22 +74,22 @@ const EphemeralDocument = React.lazy(() => import('../document/EphemeralDocument
|
|
|
74
74
|
// with the conversation: each is its own chunk, fetched when first shown, so
|
|
75
75
|
// a chat — and an embedded application (D-08) — loads without them.
|
|
76
76
|
// A chunk that cannot load says so where the view would be.
|
|
77
|
-
const loadAgentDetails = () => import('../../agents/AgentDetails').then(m => ({ default: m.AgentDetails }));
|
|
78
|
-
const loadEphemeralNotebook = () => import('../notebook/EphemeralNotebook').then(m => ({
|
|
77
|
+
const loadAgentDetails = () => import('../../agents/AgentDetails.js').then(m => ({ default: m.AgentDetails }));
|
|
78
|
+
const loadEphemeralNotebook = () => import('../notebook/EphemeralNotebook.js').then(m => ({
|
|
79
79
|
default: m.EphemeralNotebook,
|
|
80
80
|
}));
|
|
81
81
|
const lazyViewRefused = (what) => (error) => (_jsx(Text, { as: "p", sx: { p: 3, color: 'danger.fg' }, children: `The ${what} could not be loaded: ${error.message}` }));
|
|
82
82
|
const agentDetailsRefused = lazyViewRefused('agent details');
|
|
83
83
|
const ephemeralNotebookRefused = lazyViewRefused('notebook');
|
|
84
|
-
import { useNotebookTools } from '../../tools/adapters/agent-runtimes/notebookHooks';
|
|
85
|
-
import { useAgentInspectorTracer } from '../../components/inspector/agentSpans';
|
|
86
|
-
import { chatSpanRecorder, } from '../../components/inspector/chatSpans';
|
|
87
|
-
import { isStepDisplay, withLoopStep } from './loopStep';
|
|
88
|
-
import { applyLoopElement } from './loopElement';
|
|
89
|
-
import { tellLoopWindow } from './loopWindow';
|
|
90
|
-
import { displayPressOf, placeable, routeUiOp, withPress, withUiOp, } from './uiOps';
|
|
91
|
-
import { namesFiles, withUploadedFiles, } from './uiFiles';
|
|
92
|
-
import { useChatWords } from '../ChatLanguage';
|
|
84
|
+
import { useNotebookTools } from '../../tools/adapters/agent-runtimes/notebookHooks.js';
|
|
85
|
+
import { useAgentInspectorTracer } from '../../components/inspector/agentSpans.js';
|
|
86
|
+
import { chatSpanRecorder, } from '../../components/inspector/chatSpans.js';
|
|
87
|
+
import { isStepDisplay, withLoopStep } from './loopStep.js';
|
|
88
|
+
import { applyLoopElement } from './loopElement.js';
|
|
89
|
+
import { tellLoopWindow } from './loopWindow.js';
|
|
90
|
+
import { displayPressOf, placeable, routeUiOp, withPress, withUiOp, } from './uiOps.js';
|
|
91
|
+
import { namesFiles, withUploadedFiles, } from './uiFiles.js';
|
|
92
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
93
93
|
// Tracks pending prompts already auto-sent for a given conversation scope.
|
|
94
94
|
// This prevents layout-driven unmount/remount cycles from re-sending prompts.
|
|
95
95
|
const sentPendingPromptKeys = new Set();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* preamble the runtime told the application (`<asked-for>…</asked-for>`) is
|
|
13
13
|
* kept in the record for the builder and never shown to the person.
|
|
14
14
|
*/
|
|
15
|
-
import { askedOf } from '../../portable/records';
|
|
15
|
+
import { askedOf } from '../../portable/records.js';
|
|
16
16
|
export function extractChatMessagesFromFullContext(fullContext) {
|
|
17
17
|
if (!fullContext) {
|
|
18
18
|
return [];
|
package/lib/chat/base/uiOps.js
CHANGED
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
* @module chat/base/uiOps
|
|
31
31
|
*/
|
|
32
32
|
import { applyPatch, applyUiOp, } from '@datalayer/reactor/ui';
|
|
33
|
-
import { elementOfDisplay } from './loopElement';
|
|
34
|
-
import { isStepDisplay, stepOfDisplay } from './loopStep';
|
|
35
|
-
import { windowMessageOf } from './loopWindow';
|
|
33
|
+
import { elementOfDisplay } from './loopElement.js';
|
|
34
|
+
import { isStepDisplay, stepOfDisplay } from './loopStep.js';
|
|
35
|
+
import { windowMessageOf } from './loopWindow.js';
|
|
36
36
|
/** The message a display is under: its `data.message_id`. */
|
|
37
37
|
export function messageOfDisplay(display) {
|
|
38
38
|
const id = display.data?.message_id;
|
|
@@ -2,9 +2,9 @@ import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-run
|
|
|
2
2
|
import { Text, LabelGroup, Label, Truncate, ThemeProvider, } from '@primer/react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { AiAgentIcon } from '@datalayer/icons-react';
|
|
5
|
-
import { groupSuggestions } from './groupSuggestions';
|
|
6
|
-
import { useChatWords } from '../ChatLanguage';
|
|
7
|
-
export { groupSuggestions } from './groupSuggestions';
|
|
5
|
+
import { groupSuggestions } from './groupSuggestions.js';
|
|
6
|
+
import { useChatWords } from '../ChatLanguage.js';
|
|
7
|
+
export { groupSuggestions } from './groupSuggestions.js';
|
|
8
8
|
/**
|
|
9
9
|
* How wide a suggestion chip stands, in pixels — fixed, not a cap.
|
|
10
10
|
*
|