@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
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module apps/plugins/agent-code-sandbox
|
|
13
13
|
*/
|
|
14
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
14
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
15
15
|
export const AGENT_CODE_SANDBOX_PLUGIN_NAME = '@datalayer/loop-plugin-agent-code-sandbox';
|
|
16
16
|
export const AgentCodeSandboxPlugin = defineAgentCapacityPlugin({
|
|
17
17
|
key: 'code-sandbox',
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @module apps/plugins/agent-code-sandboxes
|
|
19
19
|
*/
|
|
20
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
20
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
21
21
|
export const SANDBOX_CAPACITIES = [
|
|
22
22
|
{
|
|
23
23
|
key: 'sandbox-eval',
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*
|
|
18
18
|
* @module apps/plugins/agent-codemode
|
|
19
19
|
*/
|
|
20
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
20
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
21
21
|
export const AGENT_CODEMODE_PLUGIN_NAME = '@datalayer/loop-plugin-agent-codemode';
|
|
22
22
|
export const AGENT_NO_CODEMODE_PLUGIN_NAME = '@datalayer/loop-plugin-agent-no-codemode';
|
|
23
23
|
export const AgentCodemodePlugin = defineAgentCapacityPlugin({
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module apps/plugins/agent-compaction
|
|
13
13
|
*/
|
|
14
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
14
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
15
15
|
export const AGENT_COMPACTION_PLUGIN_NAME = '@datalayer/loop-plugin-agent-compaction';
|
|
16
16
|
/** The budget the plain plugin mounts the agent under, in tokens. */
|
|
17
17
|
export const DEFAULT_COMPACTION_MAX_TOKENS = 8000;
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-evals
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_EVALS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-evals';
|
|
17
17
|
export const AgentEvalsPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'evals',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-guardrails
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_GUARDRAILS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-guardrails';
|
|
17
17
|
export const AgentGuardrailsPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'guardrails',
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
*
|
|
16
16
|
* @module apps/plugins/agent-hooks
|
|
17
17
|
*/
|
|
18
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
18
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
19
19
|
export const AGENT_HOOKS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-hooks';
|
|
20
20
|
export const AgentHooksPlugin = defineAgentCapacityPlugin({
|
|
21
21
|
key: 'hooks',
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module apps/plugins/agent-inference
|
|
13
13
|
*/
|
|
14
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
14
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
15
15
|
export const AGENT_INFERENCE_PLUGIN_NAME = '@datalayer/loop-plugin-agent-inference';
|
|
16
16
|
/** The capacity for one provider: what a page that switches providers builds per choice. */
|
|
17
17
|
export function createAgentInferencePlugin(provider) {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-mcp
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_MCP_PLUGIN_NAME = '@datalayer/loop-plugin-agent-mcp';
|
|
17
17
|
export const AgentMcpPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'mcp',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-memory
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_MEMORY_PLUGIN_NAME = '@datalayer/loop-plugin-agent-memory';
|
|
17
17
|
export const AgentMemoryPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'memory',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-monitoring
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_MONITORING_PLUGIN_NAME = '@datalayer/loop-plugin-agent-monitoring';
|
|
17
17
|
export const AgentMonitoringPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'monitoring',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-notifications
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_NOTIFICATIONS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-notifications';
|
|
17
17
|
export const AgentNotificationsPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'notifications',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-otel
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_OTEL_PLUGIN_NAME = '@datalayer/loop-plugin-agent-otel';
|
|
17
17
|
export const AgentOtelPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'otel',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-outputs
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_OUTPUTS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-outputs';
|
|
17
17
|
export const AgentOutputsPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'outputs',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-parameters
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_PARAMETERS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-parameters';
|
|
17
17
|
export const AgentParametersPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'parameters',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-skills
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_SKILLS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-skills';
|
|
17
17
|
export const AgentSkillsPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'skills',
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module apps/plugins/agent-subagents
|
|
14
14
|
*/
|
|
15
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
15
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
16
16
|
export const AGENT_SUBAGENTS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-subagents';
|
|
17
17
|
export const AgentSubagentsPlugin = defineAgentCapacityPlugin({
|
|
18
18
|
key: 'subagents',
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*
|
|
12
12
|
* @module apps/plugins/agent-tool-approvals
|
|
13
13
|
*/
|
|
14
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
14
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
15
15
|
export const AGENT_TOOL_APPROVALS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-tool-approvals';
|
|
16
16
|
/** The capacity for a spec and an approvals setting: what a page that offers both builds per choice. */
|
|
17
17
|
export function createAgentToolApprovalsPlugin(options = {}) {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @module apps/plugins/agent-triggers
|
|
15
15
|
*/
|
|
16
|
-
import { defineAgentCapacityPlugin } from '../agent-capacity';
|
|
16
|
+
import { defineAgentCapacityPlugin } from '../agent-capacity/index.js';
|
|
17
17
|
export const AGENT_TRIGGERS_PLUGIN_NAME = '@datalayer/loop-plugin-agent-triggers';
|
|
18
18
|
export const AgentTriggersPlugin = defineAgentCapacityPlugin({
|
|
19
19
|
key: 'triggers',
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useSignalValue } from '@datalayer/reactor/react';
|
|
3
|
-
import { AgentSummary } from '../../../components/agents/AgentSummary';
|
|
4
|
-
import { AGENTSPECS } from '../../../specs/agents/agents';
|
|
5
|
-
import { TARGET_SPECS } from './switchable';
|
|
6
|
-
import { useSandboxService } from './useSandboxService';
|
|
7
|
-
import { useOptionalTeamSelection } from './useTeamSelection';
|
|
3
|
+
import { AgentSummary } from '../../../components/agents/AgentSummary.js';
|
|
4
|
+
import { AGENTSPECS } from '../../../specs/agents/agents.js';
|
|
5
|
+
import { TARGET_SPECS } from './switchable.js';
|
|
6
|
+
import { useSandboxService } from './useSandboxService.js';
|
|
7
|
+
import { useOptionalTeamSelection } from './useTeamSelection.js';
|
|
8
8
|
/* Stand-ins for a workspace with no sandbox plugin or no team. `peek` as well
|
|
9
9
|
as `value`: `useSignalValue` subscribes, and a bare object is not a signal. */
|
|
10
10
|
const NO_TARGET = {
|
|
@@ -6,8 +6,8 @@ import { Text } from '@primer/react';
|
|
|
6
6
|
countdown should not put either in the graph of every host that mounts
|
|
7
7
|
it. */
|
|
8
8
|
import { AnonymousKeyTimer } from '@datalayer/core/lib/components/anonymous/AnonymousKeyTimer';
|
|
9
|
-
import { useAnonymousSession, useAnonymousSessionStore, } from '../../../runtimes/browser/anonymousToken';
|
|
10
|
-
import { targetRunsAgentInPage } from './switchable';
|
|
9
|
+
import { useAnonymousSession, useAnonymousSessionStore, } from '../../../runtimes/browser/anonymousToken.js';
|
|
10
|
+
import { targetRunsAgentInPage } from './switchable.js';
|
|
11
11
|
/**
|
|
12
12
|
* The same badge, dressed for the workspace header's trailing cluster.
|
|
13
13
|
*
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { useEffect, useMemo, useState } from 'react';
|
|
6
6
|
import { useReactorPlatform, useSignalValue } from '@datalayer/reactor/react';
|
|
7
|
-
import { useAgentRuntimes } from '../../../hooks/useAgentRuntimes';
|
|
8
|
-
import { ensureVisitorAgent } from '../../apps/visitorToken';
|
|
9
|
-
import { AGENTSPECS } from '../../../specs/agents/agents';
|
|
10
|
-
import { IDLE_SANDBOX_TARGET_SIGNAL } from '../../core';
|
|
11
|
-
import { appLaunchOf } from './appLaunch';
|
|
12
|
-
import { AGENTS_PLUGIN_NAME, DEFAULT_DATALAYER_AGENTSPEC, } from './plugin';
|
|
13
|
-
import { useOptionalSandboxService } from './useSandboxService';
|
|
7
|
+
import { useAgentRuntimes } from '../../../hooks/useAgentRuntimes.js';
|
|
8
|
+
import { ensureVisitorAgent } from '../../apps/visitorToken.js';
|
|
9
|
+
import { AGENTSPECS } from '../../../specs/agents/agents.js';
|
|
10
|
+
import { IDLE_SANDBOX_TARGET_SIGNAL } from '../../core/index.js';
|
|
11
|
+
import { appLaunchOf } from './appLaunch.js';
|
|
12
|
+
import { AGENTS_PLUGIN_NAME, DEFAULT_DATALAYER_AGENTSPEC, } from './plugin.js';
|
|
13
|
+
import { useOptionalSandboxService } from './useSandboxService.js';
|
|
14
14
|
export function DatalayerAgentBridge() {
|
|
15
15
|
const reactor = useReactorPlatform();
|
|
16
16
|
const agentsConfig = reactor.getConfig(AGENTS_PLUGIN_NAME);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Suspense, lazy } from 'react';
|
|
3
3
|
const DatalayerAgentBridge = lazy(async () => {
|
|
4
|
-
const module = await import('./DatalayerAgentBridge');
|
|
4
|
+
const module = await import('./DatalayerAgentBridge.js');
|
|
5
5
|
return { default: module.DatalayerAgentBridge };
|
|
6
6
|
});
|
|
7
7
|
export function DatalayerAgentMount() {
|
|
@@ -4,9 +4,9 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
4
4
|
import { SegmentedControl, Spinner, Text } from '@primer/react';
|
|
5
5
|
import { KernelIndicator } from '@datalayer/jupyter-react/kernel-indicator';
|
|
6
6
|
import { useSignalValue } from '@datalayer/reactor/react';
|
|
7
|
-
import { IDLE_SANDBOX_SNAPSHOT_SIGNAL, sandboxIndicatorState, } from '../../core';
|
|
8
|
-
import { useOptionalSandboxService } from './useSandboxService';
|
|
9
|
-
import { SANDBOX_TARGETS, TARGET_SPECS, heldTargetReason, } from './switchable';
|
|
7
|
+
import { IDLE_SANDBOX_SNAPSHOT_SIGNAL, sandboxIndicatorState, } from '../../core/index.js';
|
|
8
|
+
import { useOptionalSandboxService } from './useSandboxService.js';
|
|
9
|
+
import { SANDBOX_TARGETS, TARGET_SPECS, heldTargetReason, } from './switchable.js';
|
|
10
10
|
export function SandboxSelector(_props) {
|
|
11
11
|
const service = useOptionalSandboxService();
|
|
12
12
|
const [moving, setMoving] = useState(false);
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { useEffect } from 'react';
|
|
6
6
|
import { useSignalValue } from '@datalayer/reactor/react';
|
|
7
|
-
import { IDLE_SANDBOX_SNAPSHOT_SIGNAL, IDLE_SANDBOX_TARGET_SIGNAL, } from '../../core';
|
|
8
|
-
import { useOptionalSandboxService } from './useSandboxService';
|
|
7
|
+
import { IDLE_SANDBOX_SNAPSHOT_SIGNAL, IDLE_SANDBOX_TARGET_SIGNAL, } from '../../core/index.js';
|
|
8
|
+
import { useOptionalSandboxService } from './useSandboxService.js';
|
|
9
9
|
export function SandboxStatusBridge({ workspace, }) {
|
|
10
10
|
const service = useOptionalSandboxService();
|
|
11
11
|
const snapshot = useSignalValue(service?.snapshot ?? IDLE_SANDBOX_SNAPSHOT_SIGNAL);
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Box } from '@datalayer/primer-addons';
|
|
3
3
|
import { Label, Text } from '@primer/react';
|
|
4
4
|
import { useSignalValue } from '@datalayer/reactor/react';
|
|
5
|
-
import { useSandboxService } from './useSandboxService';
|
|
5
|
+
import { useSandboxService } from './useSandboxService.js';
|
|
6
6
|
function Row({ label, value }) {
|
|
7
7
|
return (_jsxs(Box, { display: "flex", gap: 3, py: 1, fontSize: 1, children: [_jsx(Text, { sx: { color: 'fg.muted', minWidth: '140px' }, children: label }), _jsx(Text, { sx: { fontFamily: 'mono', wordBreak: 'break-all' }, children: value || _jsx(Text, { sx: { color: 'fg.subtle' }, children: "\u2014" }) })] }));
|
|
8
8
|
}
|
|
@@ -4,8 +4,8 @@ import { ActionList, AnchoredOverlay, IconButton, Text } from '@primer/react';
|
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { AiAgentIcon } from '@datalayer/icons-react';
|
|
6
6
|
import { useSignalValue } from '@datalayer/reactor/react';
|
|
7
|
-
import { agentIcon } from './agentIcons';
|
|
8
|
-
import { useOptionalTeamSelection } from './useTeamSelection';
|
|
7
|
+
import { agentIcon } from './agentIcons.js';
|
|
8
|
+
import { useOptionalTeamSelection } from './useTeamSelection.js';
|
|
9
9
|
/** One member's mark, as its spec names it. */
|
|
10
10
|
function MemberIcon({ icon }) {
|
|
11
11
|
const Icon = agentIcon(icon);
|
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module apps/plugins/agents
|
|
9
9
|
*/
|
|
10
|
-
export { AGENTS_PLUGIN_NAME, AgentsPlugin, DEFAULT_DATALAYER_AGENTSPEC, } from './plugin';
|
|
11
|
-
export { AgentsPlugin as default } from './plugin';
|
|
12
|
-
export { browserSource, createBrowserSandboxService, suppliedSource, } from './browserService';
|
|
13
|
-
export { createServerSandboxService, summarize, } from './service';
|
|
14
|
-
export { useOptionalSandboxService, useSandboxService, } from './useSandboxService';
|
|
15
|
-
export { SandboxStatusBridge } from './SandboxStatusBridge';
|
|
16
|
-
export { SandboxSelector } from './SandboxSelector';
|
|
17
|
-
export { SANDBOX_TARGETS, TARGET_SPECS, targetHasAgent, targetRunsAgentInPage, createSwitchableSandboxService, } from './switchable';
|
|
10
|
+
export { AGENTS_PLUGIN_NAME, AgentsPlugin, DEFAULT_DATALAYER_AGENTSPEC, } from './plugin.js';
|
|
11
|
+
export { AgentsPlugin as default } from './plugin.js';
|
|
12
|
+
export { browserSource, createBrowserSandboxService, suppliedSource, } from './browserService.js';
|
|
13
|
+
export { createServerSandboxService, summarize, } from './service.js';
|
|
14
|
+
export { useOptionalSandboxService, useSandboxService, } from './useSandboxService.js';
|
|
15
|
+
export { SandboxStatusBridge } from './SandboxStatusBridge.js';
|
|
16
|
+
export { SandboxSelector } from './SandboxSelector.js';
|
|
17
|
+
export { SANDBOX_TARGETS, TARGET_SPECS, targetHasAgent, targetRunsAgentInPage, createSwitchableSandboxService, } from './switchable.js';
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { ServerIcon } from '@primer/octicons-react';
|
|
6
6
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
7
|
-
import { LoopAgentBlueprint, LoopAgentGate, LoopCommand, LoopSlots, LoopViewType, } from '../../core';
|
|
8
|
-
import { SandboxStatusBridge } from './SandboxStatusBridge';
|
|
9
|
-
import { DatalayerAgentMount } from './DatalayerAgentMount';
|
|
10
|
-
import { AgentSummaryPanel } from './AgentSummaryPanel';
|
|
11
|
-
import { AnonymousKeyBadge, AnonymousKeyHeaderBadge, } from './AnonymousKeyBadge';
|
|
12
|
-
import { SandboxSelector } from './SandboxSelector';
|
|
13
|
-
import { TeamMemberPicker } from './TeamMemberPicker';
|
|
14
|
-
import { createTeamSelection } from './team';
|
|
15
|
-
import { createSwitchableSandboxService, heldTargetReason, TARGET_SPECS, targetHasAgent, } from './switchable';
|
|
7
|
+
import { LoopAgentBlueprint, LoopAgentGate, LoopCommand, LoopSlots, LoopViewType, } from '../../core/index.js';
|
|
8
|
+
import { SandboxStatusBridge } from './SandboxStatusBridge.js';
|
|
9
|
+
import { DatalayerAgentMount } from './DatalayerAgentMount.js';
|
|
10
|
+
import { AgentSummaryPanel } from './AgentSummaryPanel.js';
|
|
11
|
+
import { AnonymousKeyBadge, AnonymousKeyHeaderBadge, } from './AnonymousKeyBadge.js';
|
|
12
|
+
import { SandboxSelector } from './SandboxSelector.js';
|
|
13
|
+
import { TeamMemberPicker } from './TeamMemberPicker.js';
|
|
14
|
+
import { createTeamSelection } from './team.js';
|
|
15
|
+
import { createSwitchableSandboxService, heldTargetReason, TARGET_SPECS, targetHasAgent, } from './switchable.js';
|
|
16
16
|
/**
|
|
17
17
|
* The tutor.
|
|
18
18
|
*
|
|
@@ -188,7 +188,7 @@ export const AgentsPlugin = definePlugin({
|
|
|
188
188
|
title: 'Sandbox',
|
|
189
189
|
icon: ServerIcon,
|
|
190
190
|
order: 40,
|
|
191
|
-
load: () => import('./SandboxView'),
|
|
191
|
+
load: () => import('./SandboxView.js'),
|
|
192
192
|
}, { id: 'sandbox', order: 40 }),
|
|
193
193
|
contribution(LoopCommand, {
|
|
194
194
|
name: 'sandbox',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { getAgentspecs } from '../../../specs/agents';
|
|
5
|
+
import { getAgentspecs } from '../../../specs/agents/index.js';
|
|
6
6
|
const GENERAL_PURPOSE = {
|
|
7
7
|
name: 'general-purpose',
|
|
8
8
|
description: 'A capable generalist for a task none of the specialists covers: research, ' +
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
* @module apps/plugins/agents/switchable
|
|
23
23
|
*/
|
|
24
24
|
import { computed, signal, } from '@datalayer/reactor';
|
|
25
|
-
import { insideJupyterLab } from './host';
|
|
26
|
-
import { browserSource, createBrowserSandboxService, } from './browserService';
|
|
27
|
-
import { createServerSandboxService, } from './service';
|
|
25
|
+
import { insideJupyterLab } from './host.js';
|
|
26
|
+
import { browserSource, createBrowserSandboxService, } from './browserService.js';
|
|
27
|
+
import { createServerSandboxService, } from './service.js';
|
|
28
28
|
/**
|
|
29
29
|
* The anonymous Jupyter server the `jupyter` target uses.
|
|
30
30
|
*
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
* @module apps/plugins/agents/team
|
|
23
23
|
*/
|
|
24
24
|
import { computed, signal, } from '@datalayer/reactor';
|
|
25
|
-
import { TEAM_SPECS } from '../../../specs/teams/teams';
|
|
26
|
-
import { AGENTSPECS } from '../../../specs/agents/agents';
|
|
25
|
+
import { TEAM_SPECS } from '../../../specs/teams/teams.js';
|
|
26
|
+
import { AGENTSPECS } from '../../../specs/agents/agents.js';
|
|
27
27
|
/** A `ref` such as `jupyter-tutor:0.0.1`, without its version. */
|
|
28
28
|
function specIdOf(ref) {
|
|
29
29
|
return (ref ?? '').split(':')[0] ?? '';
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @module apps/plugins/agents/useSandboxService
|
|
14
14
|
*/
|
|
15
15
|
import { useReactorPlatform } from '@datalayer/reactor/react';
|
|
16
|
-
import { AGENTS_PLUGIN_NAME } from './plugin';
|
|
16
|
+
import { AGENTS_PLUGIN_NAME } from './plugin.js';
|
|
17
17
|
/** The sandbox service, or `undefined` when the plugin is not mounted. */
|
|
18
18
|
export function useOptionalSandboxService() {
|
|
19
19
|
const reactor = useReactorPlatform();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @module apps/plugins/agents/useTeamSelection
|
|
13
13
|
*/
|
|
14
14
|
import { useReactorPlatform } from '@datalayer/reactor/react';
|
|
15
|
-
import { AGENTS_PLUGIN_NAME } from './plugin';
|
|
15
|
+
import { AGENTS_PLUGIN_NAME } from './plugin.js';
|
|
16
16
|
/**
|
|
17
17
|
* The team selection, or `undefined`.
|
|
18
18
|
*
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useCallback, useEffect, useState } from 'react';
|
|
3
3
|
import { Box } from '@datalayer/primer-addons';
|
|
4
4
|
import { ActionList, ActionMenu, Spinner } from '@primer/react';
|
|
5
|
-
import { getAgentspecs } from '../../../specs/agents';
|
|
5
|
+
import { getAgentspecs } from '../../../specs/agents/index.js';
|
|
6
6
|
export function AgentspecPicker({ workspace, }) {
|
|
7
7
|
const [agents, setAgents] = useState([]);
|
|
8
8
|
const [switching, setSwitching] = useState(false);
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
* @module apps/plugins/agents
|
|
12
12
|
*/
|
|
13
13
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
14
|
-
import { LoopCommand, LoopSlots } from '../../core';
|
|
15
|
-
import { AgentspecPicker } from './AgentspecPicker';
|
|
14
|
+
import { LoopCommand, LoopSlots } from '../../core/index.js';
|
|
15
|
+
import { AgentspecPicker } from './AgentspecPicker.js';
|
|
16
16
|
export const AGENTSPECS_PLUGIN_NAME = '@datalayer/loop-plugin-agentspecs';
|
|
17
17
|
export const AgentspecsPlugin = definePlugin({
|
|
18
18
|
name: AGENTSPECS_PLUGIN_NAME,
|
|
@@ -6,8 +6,8 @@ import { signal } from '@datalayer/reactor';
|
|
|
6
6
|
import { useContributions, useSignalValue } from '@datalayer/reactor/react';
|
|
7
7
|
import { useCoreStore } from '@datalayer/core/lib/state';
|
|
8
8
|
import { useIAMStore } from '@datalayer/core/lib/state/substates/IAMState';
|
|
9
|
-
import { LoopChatTurn } from '../../core';
|
|
10
|
-
import { RECORD_KIND_WORDS, entrySaid, listSessions, readSession, sessionAgentSaid, sessionLineageSaid, sessionSentence, sessionStateSaid, } from '../../apps/records';
|
|
9
|
+
import { LoopChatTurn } from '../../core/index.js';
|
|
10
|
+
import { RECORD_KIND_WORDS, entrySaid, listSessions, readSession, sessionAgentSaid, sessionLineageSaid, sessionSentence, sessionStateSaid, } from '../../apps/records.js';
|
|
11
11
|
/** What the feed says. */
|
|
12
12
|
export const APP_ACTIVITY_WORDS = {
|
|
13
13
|
title: 'Activity',
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { definePlugin } from '@datalayer/reactor';
|
|
3
3
|
import { PulseIcon } from '@primer/octicons-react';
|
|
4
|
-
import { LoopSlots } from '../../core';
|
|
5
|
-
import { AppActivity } from './AppActivity';
|
|
4
|
+
import { LoopSlots } from '../../core/index.js';
|
|
5
|
+
import { AppActivity } from './AppActivity.js';
|
|
6
6
|
export const APP_ACTIVITY_PLUGIN_NAME = '@datalayer/loop-plugin-app-activity';
|
|
7
7
|
/**
|
|
8
8
|
* The plugin that lists what an application did: its record is kept under
|
|
@@ -34,5 +34,5 @@ export function defineAppActivityPlugin(app, appUid) {
|
|
|
34
34
|
});
|
|
35
35
|
return plugin;
|
|
36
36
|
}
|
|
37
|
-
export { AppActivity, APP_ACTIVITY_WORDS } from './AppActivity';
|
|
37
|
+
export { AppActivity, APP_ACTIVITY_WORDS } from './AppActivity.js';
|
|
38
38
|
export default defineAppActivityPlugin;
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
* @module apps/plugins/app-components
|
|
17
17
|
*/
|
|
18
18
|
import { contribution, definePlugin, } from '@datalayer/reactor';
|
|
19
|
-
import { customImplementation } from '../../../components/a2ui/custom';
|
|
20
|
-
import { customComponentEntry } from '../../apps/customComponents';
|
|
21
|
-
import { LoopA2uiComponent } from '../../core/a2uiComponents';
|
|
22
|
-
import { LoopCanvasBlock } from '../../core/canvasBlocks';
|
|
19
|
+
import { customImplementation } from '../../../components/a2ui/custom/index.js';
|
|
20
|
+
import { customComponentEntry } from '../../apps/customComponents.js';
|
|
21
|
+
import { LoopA2uiComponent } from '../../core/a2uiComponents.js';
|
|
22
|
+
import { LoopCanvasBlock } from '../../core/canvasBlocks.js';
|
|
23
23
|
/** The name of the plugin that contributes an application's own components. */
|
|
24
24
|
export const appComponentsPluginName = (appId) => `@datalayer/loop-plugin-app-components-${appId}`;
|
|
25
25
|
/** Whether an application's developer wrote components of its own. */
|
|
@@ -5,9 +5,9 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
5
5
|
import { signal } from '@datalayer/reactor';
|
|
6
6
|
import { useContributions, useSignalValue } from '@datalayer/reactor/react';
|
|
7
7
|
import { useIAMStore } from '@datalayer/core/lib/state/substates/IAMState';
|
|
8
|
-
import { useChatWords } from '../../../chat/ChatLanguage';
|
|
9
|
-
import { LoopChatTurn, agentServerOf, noRuntimeSaid, IDLE_SANDBOX_SNAPSHOT, } from '../../core';
|
|
10
|
-
import { BROWSER_KEYS, COMPUTER_PARTS, COMPUTER_WORDS, clickOnBrowser, computerParts, downloadComputerFile, handBackComputer, hasComputer, listComputerFiles, openOnBrowser, parentOf, partsOff, pointOnPage, pressOnBrowser, readBrowserScreenshot, readComputer, runOnComputer, scrollBrowser, takeOverComputer, terminalEntries, typeOnBrowser, } from '../../apps/computer';
|
|
8
|
+
import { useChatWords } from '../../../chat/ChatLanguage.js';
|
|
9
|
+
import { LoopChatTurn, agentServerOf, noRuntimeSaid, IDLE_SANDBOX_SNAPSHOT, } from '../../core/index.js';
|
|
10
|
+
import { BROWSER_KEYS, COMPUTER_PARTS, COMPUTER_WORDS, clickOnBrowser, computerParts, downloadComputerFile, handBackComputer, hasComputer, listComputerFiles, openOnBrowser, parentOf, partsOff, pointOnPage, pressOnBrowser, readBrowserScreenshot, readComputer, runOnComputer, scrollBrowser, takeOverComputer, terminalEntries, typeOnBrowser, } from '../../apps/computer.js';
|
|
11
11
|
const NO_TURN = signal({ id: 0, status: 'idle' });
|
|
12
12
|
const NO_CONVERSATION = signal([]);
|
|
13
13
|
const MONO_FACE = 'ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { definePlugin } from '@datalayer/reactor';
|
|
3
3
|
import { DeviceDesktopIcon } from '@primer/octicons-react';
|
|
4
|
-
import { LoopSlots } from '../../core';
|
|
5
|
-
import { AppComputer } from './AppComputer';
|
|
4
|
+
import { LoopSlots } from '../../core/index.js';
|
|
5
|
+
import { AppComputer } from './AppComputer.js';
|
|
6
6
|
export const APP_COMPUTER_PLUGIN_NAME = '@datalayer/loop-plugin-app-computer';
|
|
7
7
|
/** The plugin that shows an application's computer beside its page. */
|
|
8
8
|
export function defineAppComputerPlugin(app) {
|
|
@@ -30,6 +30,6 @@ export function defineAppComputerPlugin(app) {
|
|
|
30
30
|
});
|
|
31
31
|
return plugin;
|
|
32
32
|
}
|
|
33
|
-
export { AppComputer } from './AppComputer';
|
|
34
|
-
export { COMPUTER_WORDS } from '../../apps/computer';
|
|
33
|
+
export { AppComputer } from './AppComputer.js';
|
|
34
|
+
export { COMPUTER_WORDS } from '../../apps/computer.js';
|
|
35
35
|
export default defineAppComputerPlugin;
|
|
@@ -3,8 +3,8 @@ import { useSyncExternalStore } from 'react';
|
|
|
3
3
|
import { IconButton, Text } from '@primer/react';
|
|
4
4
|
import { XIcon } from '@primer/octicons-react';
|
|
5
5
|
import { Box } from '@datalayer/primer-addons';
|
|
6
|
-
import { closeLoopElement, onLoopElements, openLoopElements, } from '../../../chat/base/loopElement';
|
|
7
|
-
import { AnswerShowsView } from '../a2ui-surface/AnswerShows';
|
|
6
|
+
import { closeLoopElement, onLoopElements, openLoopElements, } from '../../../chat/base/loopElement.js';
|
|
7
|
+
import { AnswerShowsView } from '../a2ui-surface/AnswerShows.js';
|
|
8
8
|
/** How wide the side panel is, at most. */
|
|
9
9
|
export const APP_PANEL_WIDTH = 380;
|
|
10
10
|
/** What is open now: the panels in the order they opened, and the last page. */
|
|
@@ -4,7 +4,7 @@ import { Box, Button, Text, TextInput } from '@primer/react';
|
|
|
4
4
|
import { ANSWER_ACTION } from '@datalayer/reactor/ui';
|
|
5
5
|
/** The display type of what an application's code asks (`QuestionShown`). */
|
|
6
6
|
export const QUESTION_DISPLAY_TYPE = 'application/vnd.datalayer.loop.question+json';
|
|
7
|
-
const SchemaForm = lazy(() => import('../../../components/a2ui/datalayer/SchemaForm'));
|
|
7
|
+
const SchemaForm = lazy(() => import('../../../components/a2ui/datalayer/SchemaForm.js'));
|
|
8
8
|
/** A question as its display says it. Throws for a display that is not one. */
|
|
9
9
|
export function questionOf(display) {
|
|
10
10
|
const data = display.data ?? {};
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
import { contribution, definePlugin, } from '@datalayer/reactor';
|
|
22
22
|
import { Renderers } from '@datalayer/reactor/ui';
|
|
23
23
|
import { defineRenderer } from '@datalayer/reactor/ui/react';
|
|
24
|
-
import { clearLoopElements } from '../../../chat/base/loopElement';
|
|
25
|
-
import { LoopSlots } from '../../core';
|
|
26
|
-
import { AppElements } from './AppElements';
|
|
27
|
-
import { QUESTION_DISPLAY_TYPE, QuestionView } from './QuestionView';
|
|
24
|
+
import { clearLoopElements } from '../../../chat/base/loopElement.js';
|
|
25
|
+
import { LoopSlots } from '../../core/index.js';
|
|
26
|
+
import { AppElements } from './AppElements.js';
|
|
27
|
+
import { QUESTION_DISPLAY_TYPE, QuestionView } from './QuestionView.js';
|
|
28
28
|
export const APP_ELEMENTS_PLUGIN_NAME = '@datalayer/loop-plugin-app-elements';
|
|
29
29
|
/** The plugin that draws an application's side panel and pages. */
|
|
30
30
|
export const AppElementsPlugin = definePlugin({
|
|
@@ -47,6 +47,6 @@ export const AppElementsPlugin = definePlugin({
|
|
|
47
47
|
// A workspace that goes takes what it had open with it.
|
|
48
48
|
register: () => clearLoopElements,
|
|
49
49
|
});
|
|
50
|
-
export { AppElements, APP_PANEL_WIDTH, elementsByPlace } from './AppElements';
|
|
51
|
-
export { QUESTION_DISPLAY_TYPE, QuestionView, questionOf, } from './QuestionView';
|
|
50
|
+
export { AppElements, APP_PANEL_WIDTH, elementsByPlace } from './AppElements.js';
|
|
51
|
+
export { QUESTION_DISPLAY_TYPE, QuestionView, questionOf, } from './QuestionView.js';
|
|
52
52
|
export default AppElementsPlugin;
|
|
@@ -4,13 +4,13 @@ import { useIAMStore } from '@datalayer/core/lib/state/substates/IAMState';
|
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { signal } from '@datalayer/reactor';
|
|
6
6
|
import { useContributions, useSignalValue } from '@datalayer/reactor/react';
|
|
7
|
-
import { catalogOfBlocks } from '../../../components/a2ui';
|
|
8
|
-
import { useChatWords } from '../../../chat/ChatLanguage';
|
|
9
|
-
import { LoopCanvasBlock, LoopChatTurn, agentServerOf, noRuntimeSaid, } from '../../core';
|
|
10
|
-
import { InlineSurface, SURFACE_CATALOG_ID, } from '../a2ui-surface/InlineSurface';
|
|
11
|
-
import { useOwnComponents } from '../a2ui-surface/ownComponents';
|
|
12
|
-
import { appPageAction, appPageData, appPageMessages, pageInputsOf, pageOf, } from './appPageModel';
|
|
13
|
-
import { openPageSession, outputsData, runPageIn, } from './pageRun';
|
|
7
|
+
import { catalogOfBlocks } from '../../../components/a2ui/index.js';
|
|
8
|
+
import { useChatWords } from '../../../chat/ChatLanguage.js';
|
|
9
|
+
import { LoopCanvasBlock, LoopChatTurn, agentServerOf, noRuntimeSaid, } from '../../core/index.js';
|
|
10
|
+
import { InlineSurface, SURFACE_CATALOG_ID, } from '../a2ui-surface/InlineSurface.js';
|
|
11
|
+
import { useOwnComponents } from '../a2ui-surface/ownComponents.js';
|
|
12
|
+
import { appPageAction, appPageData, appPageMessages, pageInputsOf, pageOf, } from './appPageModel.js';
|
|
13
|
+
import { openPageSession, outputsData, runPageIn, } from './pageRun.js';
|
|
14
14
|
/** How long the page waits after an input changed before it runs (P-05). */
|
|
15
15
|
export const PAGE_RUN_DELAY_MS = 300;
|
|
16
16
|
/** No chat in the workspace: the page reads a turn that never starts. */
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { pageOutputShows } from '../../apps/appspec';
|
|
5
|
+
import { pageOutputShows } from '../../apps/appspec.js';
|
|
6
6
|
/** The id of the editor surface an application's page is drawn in. */
|
|
7
7
|
export const APP_PAGE_SURFACE = 'app-page';
|
|
8
8
|
/** The id of the A2UI surface itself, inside it. */
|