@datalayer/agent-runtimes 1.5.71 → 1.5.75
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/dist-embed/datalayer-app-main.js +1 -1
- 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.d.ts +5 -3
- package/lib/portable/approvalCard.js +10 -6
- package/lib/portable/approvals.d.ts +26 -0
- package/lib/portable/approvals.js +25 -0
- 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.d.ts +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
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @module identity/useIdentity
|
|
11
11
|
*/
|
|
12
12
|
import { useCallback, useEffect, useMemo } from 'react';
|
|
13
|
-
import { useIdentityStore, useConnectedIdentities, useConnectedProviders, usePendingAuthorization, useIdentityLoading, useIdentityError, configureBuiltinProviders, } from './identityStore';
|
|
13
|
+
import { useIdentityStore, useConnectedIdentities, useConnectedProviders, usePendingAuthorization, useIdentityLoading, useIdentityError, configureBuiltinProviders, } from './identityStore.js';
|
|
14
14
|
/**
|
|
15
15
|
* Hook for managing OAuth identities
|
|
16
16
|
*
|
package/lib/index.js
CHANGED
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export * from './chat';
|
|
6
|
-
export * from './client';
|
|
7
|
-
export * from './collaboration';
|
|
8
|
-
export * from './components';
|
|
9
|
-
export * from './mcp';
|
|
10
|
-
export * from './pap';
|
|
11
|
-
export * from './stores';
|
|
12
|
-
export * from './identity';
|
|
13
|
-
export * from './config';
|
|
14
|
-
export * from './specs';
|
|
5
|
+
export * from './chat/index.js';
|
|
6
|
+
export * from './client/index.js';
|
|
7
|
+
export * from './collaboration/index.js';
|
|
8
|
+
export * from './components/index.js';
|
|
9
|
+
export * from './mcp/index.js';
|
|
10
|
+
export * from './pap/index.js';
|
|
11
|
+
export * from './stores/index.js';
|
|
12
|
+
export * from './identity/index.js';
|
|
13
|
+
export * from './config/index.js';
|
|
14
|
+
export * from './specs/index.js';
|
|
15
15
|
// The LOOP workspace and its plugins, for hosts that embed it: the Datalayer
|
|
16
16
|
// application at /loop, and later the JupyterLab panel. Exported through one
|
|
17
17
|
// surface rather than by deep import.
|
|
18
|
-
export * from './apps';
|
|
18
|
+
export * from './apps/index.js';
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { generateMessageId, createAssistantMessage } from '../types/messages';
|
|
6
|
-
import { BaseInferenceProvider } from './BaseInferenceProvider';
|
|
5
|
+
import { generateMessageId, createAssistantMessage } from '../types/messages.js';
|
|
6
|
+
import { BaseInferenceProvider } from './BaseInferenceProvider.js';
|
|
7
7
|
/**
|
|
8
8
|
* Datalayer inference provider
|
|
9
9
|
*/
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import { generateMessageId, createAssistantMessage } from '../types/messages';
|
|
6
|
-
import { BaseInferenceProvider } from './BaseInferenceProvider';
|
|
5
|
+
import { generateMessageId, createAssistantMessage } from '../types/messages.js';
|
|
6
|
+
import { BaseInferenceProvider } from './BaseInferenceProvider.js';
|
|
7
7
|
/**
|
|
8
8
|
* Self-hosted inference provider for custom OpenAI-compatible endpoints
|
|
9
9
|
*/
|
package/lib/inference/index.js
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module inference
|
|
9
9
|
*/
|
|
10
|
-
export { BaseInferenceProvider } from './BaseInferenceProvider';
|
|
11
|
-
export { DatalayerInferenceProvider, } from './DatalayerInferenceProvider';
|
|
12
|
-
export { SelfHostedInferenceProvider, } from './SelfHostedInferenceProvider';
|
|
10
|
+
export { BaseInferenceProvider } from './BaseInferenceProvider.js';
|
|
11
|
+
export { DatalayerInferenceProvider, } from './DatalayerInferenceProvider.js';
|
|
12
|
+
export { SelfHostedInferenceProvider, } from './SelfHostedInferenceProvider.js';
|
package/lib/jupyter/index.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export * from './exec';
|
|
6
|
-
export * from './serverExecution';
|
|
7
|
-
export * from './useResumeServerExecutions';
|
|
5
|
+
export * from './exec/index.js';
|
|
6
|
+
export * from './serverExecution.js';
|
|
7
|
+
export * from './useResumeServerExecutions.js';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
*/
|
|
18
18
|
import { useEffect } from 'react';
|
|
19
19
|
import { notebookStore } from '@datalayer/jupyter-react';
|
|
20
|
-
import { resumeServerExecutions, } from './serverExecution';
|
|
20
|
+
import { resumeServerExecutions, } from './serverExecution.js';
|
|
21
21
|
/** How often the cells are looked at, and for how long. */
|
|
22
22
|
const LOOK_EVERY_MS = 1_000;
|
|
23
23
|
const LOOK_FOR_MS = 30_000;
|
|
@@ -5,7 +5,7 @@ import { $getSelection, $isRangeSelection, $createParagraphNode, $createTextNode
|
|
|
5
5
|
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext';
|
|
6
6
|
import { autoUpdate, hide, limitShift, offset, shift, size, useFloating, } from '@floating-ui/react-dom';
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
|
-
import { ChatInline } from '../chat/ChatInline';
|
|
8
|
+
import { ChatInline } from '../chat/ChatInline.js';
|
|
9
9
|
// Margin from editor edges
|
|
10
10
|
const MARGIN_X = 32;
|
|
11
11
|
/**
|
package/lib/lexical/index.js
CHANGED
|
@@ -7,5 +7,5 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module lexical
|
|
9
9
|
*/
|
|
10
|
-
export { ChatInlinePlugin, SAVE_SELECTION_COMMAND, RESTORE_SELECTION_COMMAND, } from './ChatInlinePlugin';
|
|
11
|
-
export { useChatInlineToolbarItems, } from './useChatInlineToolbarItems';
|
|
10
|
+
export { ChatInlinePlugin, SAVE_SELECTION_COMMAND, RESTORE_SELECTION_COMMAND, } from './ChatInlinePlugin.js';
|
|
11
|
+
export { useChatInlineToolbarItems, } from './useChatInlineToolbarItems.js';
|
package/lib/loop-example-main.js
CHANGED
|
@@ -23,8 +23,8 @@ import { StrictMode, useEffect } from 'react';
|
|
|
23
23
|
import { createRoot } from 'react-dom/client';
|
|
24
24
|
import { QueryClientProvider } from '@tanstack/react-query';
|
|
25
25
|
import { DatalayerThemeProvider, setupPrimerPortals, themeConfigs, useSystemColorMode, useThemeStore, } from '@datalayer/primer-addons';
|
|
26
|
-
import { LoopWorkspaceExample } from './examples/LoopWorkspaceExample';
|
|
27
|
-
import { internalQueryClient } from './utils';
|
|
26
|
+
import { LoopWorkspaceExample } from './examples/LoopWorkspaceExample.js';
|
|
27
|
+
import { internalQueryClient } from './utils/index.js';
|
|
28
28
|
import '../style/primer-primitives.css';
|
|
29
29
|
function Page() {
|
|
30
30
|
const { colorMode, theme } = useThemeStore();
|
package/lib/loop-main.js
CHANGED
|
@@ -33,15 +33,15 @@ import { createRoot } from 'react-dom/client';
|
|
|
33
33
|
import { QueryClientProvider } from '@tanstack/react-query';
|
|
34
34
|
import { Box, DatalayerThemeProvider, setupPrimerPortals, themeConfigs, useSystemColorMode, useThemeStore, } from '@datalayer/primer-addons';
|
|
35
35
|
import { configurePlugin } from '@datalayer/reactor';
|
|
36
|
-
import { LoopWorkspace } from './apps/shell/LoopWorkspace';
|
|
37
|
-
import { ChatPlugin } from './apps/plugins/chat';
|
|
38
|
-
import { A2uiPlugin } from './apps/plugins/a2ui';
|
|
39
|
-
import { AgentspecsPlugin } from './apps/plugins/agentspecs';
|
|
40
|
-
import { AgentsPlugin } from './apps/plugins/agents';
|
|
41
|
-
import { ModelsPlugin } from './apps/plugins/models';
|
|
42
|
-
import { DocumentPlugin } from './apps/plugins/document';
|
|
43
|
-
import { NotebookPlugin } from './apps/plugins/notebook';
|
|
44
|
-
import { internalQueryClient } from './utils';
|
|
36
|
+
import { LoopWorkspace } from './apps/shell/LoopWorkspace.js';
|
|
37
|
+
import { ChatPlugin } from './apps/plugins/chat/index.js';
|
|
38
|
+
import { A2uiPlugin } from './apps/plugins/a2ui/index.js';
|
|
39
|
+
import { AgentspecsPlugin } from './apps/plugins/agentspecs/index.js';
|
|
40
|
+
import { AgentsPlugin } from './apps/plugins/agents/index.js';
|
|
41
|
+
import { ModelsPlugin } from './apps/plugins/models/index.js';
|
|
42
|
+
import { DocumentPlugin } from './apps/plugins/document/index.js';
|
|
43
|
+
import { NotebookPlugin } from './apps/plugins/notebook/index.js';
|
|
44
|
+
import { internalQueryClient } from './utils/index.js';
|
|
45
45
|
// `src/index.css` is the Vite starter template's stylesheet: it sets
|
|
46
46
|
// `body { display: flex; place-items: center }`, which shrink-wraps #root to
|
|
47
47
|
// its content — the workspace filled 407px of a 1280px window. The agent page
|
package/lib/main.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
import { createRoot } from 'react-dom/client';
|
|
7
|
-
import App from './App';
|
|
7
|
+
import App from './App.js';
|
|
8
8
|
import './index.css';
|
|
9
9
|
const rootElement = document.getElementById('root');
|
|
10
10
|
if (rootElement) {
|
package/lib/mcp/index.js
CHANGED
package/lib/middleware/index.js
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module middleware
|
|
9
9
|
*/
|
|
10
|
-
export { MiddlewarePipeline, createMiddleware, loggingMiddleware, createHITLMiddleware, } from './MiddlewarePipeline';
|
|
10
|
+
export { MiddlewarePipeline, createMiddleware, loggingMiddleware, createHITLMiddleware, } from './MiddlewarePipeline.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { uniqueNamesGenerator, names } from 'unique-names-generator';
|
|
6
6
|
import { newUlid } from '@datalayer/core/lib/utils';
|
|
7
|
-
import { newSpaceMock } from './SpaceMock';
|
|
7
|
+
import { newSpaceMock } from './SpaceMock.js';
|
|
8
8
|
import { newUserMock } from '@datalayer/core/lib/mocks/models/UserMock';
|
|
9
9
|
export const newCourseMock = (name) => {
|
|
10
10
|
const course = {
|
|
@@ -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 { snapshots } from '../api/runtimes';
|
|
5
|
+
import { snapshots } from '../api/runtimes/index.js';
|
|
6
6
|
import { validateJSON } from '@datalayer/core/lib/api/utils/validation';
|
|
7
7
|
/**
|
|
8
8
|
* Snapshot domain model that wraps API responses with convenient methods.
|
package/lib/models/ItemDTO.js
CHANGED
|
@@ -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 * as items from '../api/spacer/items';
|
|
5
|
+
import * as items from '../api/spacer/items.js';
|
|
6
6
|
/**
|
|
7
7
|
* Abstract base class for all Datalayer content items.
|
|
8
8
|
* Provides common functionality for content management including lifecycle tracking.
|
package/lib/models/LexicalDTO.js
CHANGED
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module models/LexicalDTO
|
|
9
9
|
*/
|
|
10
|
-
import * as lexicals from '../api/spacer/lexicals';
|
|
10
|
+
import * as lexicals from '../api/spacer/lexicals.js';
|
|
11
11
|
import { ItemTypes } from '@datalayer/core/lib/client';
|
|
12
|
-
import { ItemDTO } from './ItemDTO';
|
|
12
|
+
import { ItemDTO } from './ItemDTO.js';
|
|
13
13
|
import { validateJSON } from '@datalayer/core/lib/api/utils/validation';
|
|
14
14
|
/**
|
|
15
15
|
* Lexical domain model that extends the base Item class.
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
import * as notebooks from '../api/spacer/notebooks';
|
|
6
|
-
import { ItemDTO } from './ItemDTO';
|
|
5
|
+
import * as notebooks from '../api/spacer/notebooks.js';
|
|
6
|
+
import { ItemDTO } from './ItemDTO.js';
|
|
7
7
|
import { ItemTypes } from '@datalayer/core/lib/client/constants';
|
|
8
8
|
import { validateJSON } from '@datalayer/core/lib/api/utils/validation';
|
|
9
9
|
/**
|
package/lib/models/Page.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
import { asUser } from '@datalayer/core/lib/models/User';
|
|
6
|
-
import { asCodeSandboxSnapshot, } from './CodeSandboxSnapshot';
|
|
6
|
+
import { asCodeSandboxSnapshot, } from './CodeSandboxSnapshot.js';
|
|
7
7
|
export const asPage = (s) => {
|
|
8
8
|
return {
|
|
9
9
|
id: s.uid,
|
package/lib/models/RuntimeDTO.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module models/RuntimeDTO
|
|
9
9
|
*/
|
|
10
|
-
import { updateRuntime } from '../api/runtimes/runtimes';
|
|
10
|
+
import { updateRuntime } from '../api/runtimes/runtimes.js';
|
|
11
11
|
import { validateJSON } from '@datalayer/core/lib/api/utils/validation';
|
|
12
12
|
/**
|
|
13
13
|
* Runtime domain model that wraps API responses with convenient methods.
|
package/lib/models/SpaceDTO.js
CHANGED
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
*
|
|
8
8
|
* @module models/SpaceDTO
|
|
9
9
|
*/
|
|
10
|
-
import * as users from '../api/spacer/users';
|
|
11
|
-
import * as items from '../api/spacer/items';
|
|
12
|
-
import * as notebooks from '../api/spacer/notebooks';
|
|
13
|
-
import * as lexicals from '../api/spacer/lexicals';
|
|
14
|
-
import { NotebookDTO } from './NotebookDTO';
|
|
15
|
-
import { LexicalDTO } from './LexicalDTO';
|
|
10
|
+
import * as users from '../api/spacer/users.js';
|
|
11
|
+
import * as items from '../api/spacer/items.js';
|
|
12
|
+
import * as notebooks from '../api/spacer/notebooks.js';
|
|
13
|
+
import * as lexicals from '../api/spacer/lexicals.js';
|
|
14
|
+
import { NotebookDTO } from './NotebookDTO.js';
|
|
15
|
+
import { LexicalDTO } from './LexicalDTO.js';
|
|
16
16
|
import { ItemTypes } from '@datalayer/core/lib/client/constants';
|
|
17
|
-
import { convertSpaceItemsToModels } from '../client/utils/spacerUtils';
|
|
17
|
+
import { convertSpaceItemsToModels } from '../client/utils/spacerUtils.js';
|
|
18
18
|
import { validateJSON } from '@datalayer/core/lib/api/utils/validation';
|
|
19
19
|
/**
|
|
20
20
|
* Space domain model that wraps API responses with convenient methods.
|
package/lib/models/index.js
CHANGED
|
@@ -3,38 +3,38 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
// Moved runtime + content + education models (owned by agent-runtimes).
|
|
6
|
-
export * from './Assignment';
|
|
7
|
-
export * from './Cell';
|
|
8
|
-
export * from './CodeBlock';
|
|
9
|
-
export * from './CodefeedBlocks';
|
|
10
|
-
export * from './CodeSandboxSnapshot';
|
|
11
|
-
export * from './CodeSandboxSnapshotDTO';
|
|
12
|
-
export * from './Content';
|
|
13
|
-
export * from './Course';
|
|
14
|
-
export * from './Deck';
|
|
15
|
-
export * from './Document';
|
|
16
|
-
export * from './Environment';
|
|
17
|
-
export * from './EnvironmentDTO';
|
|
18
|
-
export * from './Exercise';
|
|
19
|
-
export * from './Item';
|
|
20
|
-
export * from './ItemDTO';
|
|
21
|
-
export * from './ItemType';
|
|
22
|
-
export * from './Lesson';
|
|
23
|
-
export * from './LexicalDTO';
|
|
24
|
-
export * from './Library';
|
|
25
|
-
export * from './Notebook';
|
|
26
|
-
export * from './NotebookDTO';
|
|
27
|
-
export * from './Page';
|
|
28
|
-
export * from './PageTag';
|
|
29
|
-
export * from './ProjectDTO';
|
|
30
|
-
export * from './CodeSandboxVariant';
|
|
31
|
-
export * from './Runtime';
|
|
32
|
-
export * from './RuntimeDTO';
|
|
33
|
-
export * from './Space';
|
|
34
|
-
export * from './SpaceDTO';
|
|
35
|
-
export * from './SpaceItem';
|
|
36
|
-
export * from './SpaceMember';
|
|
37
|
-
export * from './StudentItem';
|
|
6
|
+
export * from './Assignment.js';
|
|
7
|
+
export * from './Cell.js';
|
|
8
|
+
export * from './CodeBlock.js';
|
|
9
|
+
export * from './CodefeedBlocks.js';
|
|
10
|
+
export * from './CodeSandboxSnapshot.js';
|
|
11
|
+
export * from './CodeSandboxSnapshotDTO.js';
|
|
12
|
+
export * from './Content.js';
|
|
13
|
+
export * from './Course.js';
|
|
14
|
+
export * from './Deck.js';
|
|
15
|
+
export * from './Document.js';
|
|
16
|
+
export * from './Environment.js';
|
|
17
|
+
export * from './EnvironmentDTO.js';
|
|
18
|
+
export * from './Exercise.js';
|
|
19
|
+
export * from './Item.js';
|
|
20
|
+
export * from './ItemDTO.js';
|
|
21
|
+
export * from './ItemType.js';
|
|
22
|
+
export * from './Lesson.js';
|
|
23
|
+
export * from './LexicalDTO.js';
|
|
24
|
+
export * from './Library.js';
|
|
25
|
+
export * from './Notebook.js';
|
|
26
|
+
export * from './NotebookDTO.js';
|
|
27
|
+
export * from './Page.js';
|
|
28
|
+
export * from './PageTag.js';
|
|
29
|
+
export * from './ProjectDTO.js';
|
|
30
|
+
export * from './CodeSandboxVariant.js';
|
|
31
|
+
export * from './Runtime.js';
|
|
32
|
+
export * from './RuntimeDTO.js';
|
|
33
|
+
export * from './Space.js';
|
|
34
|
+
export * from './SpaceDTO.js';
|
|
35
|
+
export * from './SpaceItem.js';
|
|
36
|
+
export * from './SpaceMember.js';
|
|
37
|
+
export * from './StudentItem.js';
|
|
38
38
|
// Re-export identity/plans/account model interfaces that stay in core so
|
|
39
39
|
// agent-runtimes code can resolve every model from this single barrel.
|
|
40
40
|
export * from '@datalayer/core/lib/models';
|
package/lib/portable/activity.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @module portable/activity
|
|
15
15
|
*/
|
|
16
|
-
import { RUN_END_WORDS } from './records';
|
|
16
|
+
import { RUN_END_WORDS } from './records.js';
|
|
17
17
|
const isRecord = (value) => Boolean(value) && typeof value === 'object' && !Array.isArray(value);
|
|
18
18
|
const records = (value) => Array.isArray(value) ? value.filter(isRecord) : [];
|
|
19
19
|
const said = (value) => typeof value === 'string' ? value : value == null ? '' : String(value);
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @module portable/approvalCard
|
|
10
10
|
*/
|
|
11
|
-
import { type ApprovalArgs, type MessageAsked } from './approvals';
|
|
11
|
+
import { type ApprovalArgs, type MessageAsked, type SeatSource } from './approvals';
|
|
12
12
|
/** What every approval card says. */
|
|
13
13
|
export declare const APPROVAL_CARD_WORDS: {
|
|
14
14
|
readonly to: "To";
|
|
@@ -22,7 +22,7 @@ export declare const APPROVAL_CARD_WORDS: {
|
|
|
22
22
|
readonly noArguments: "It gave no arguments.";
|
|
23
23
|
};
|
|
24
24
|
/** An approval's tool and arguments, under either naming. */
|
|
25
|
-
export type ApprovalCardSource = ApprovalArgs & {
|
|
25
|
+
export type ApprovalCardSource = ApprovalArgs & SeatSource & {
|
|
26
26
|
tool_name?: string;
|
|
27
27
|
toolName?: string;
|
|
28
28
|
};
|
|
@@ -32,11 +32,13 @@ export type ApprovalCard = {
|
|
|
32
32
|
action: string;
|
|
33
33
|
/** Why it asked (its Rule or check), or `''`. */
|
|
34
34
|
why: string;
|
|
35
|
+
/** The team seat that asked, said (*The coder seat of the coding-agents team*), or `''`. */
|
|
36
|
+
seat: string;
|
|
35
37
|
/** A message to send, shown whole; `null` for anything else. */
|
|
36
38
|
message: MessageAsked | null;
|
|
37
39
|
/** Every non-private argument, complete, when it is not a message. */
|
|
38
40
|
raw: string;
|
|
39
|
-
/** One line for a list row: a message's recipients and subject (never its body), else why. */
|
|
41
|
+
/** One line for a list row: the seat that asked, then a message's recipients and subject (never its body), else why. */
|
|
40
42
|
summary: string;
|
|
41
43
|
};
|
|
42
44
|
/** The props of an approval card, on every platform. */
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*
|
|
13
13
|
* @module portable/approvalCard
|
|
14
14
|
*/
|
|
15
|
-
import { messageOfApproval, whyAsked, } from './approvals';
|
|
15
|
+
import { messageOfApproval, seatOfApproval, seatSaid, whyAsked, } from './approvals.js';
|
|
16
16
|
/** What every approval card says. */
|
|
17
17
|
export const APPROVAL_CARD_WORDS = {
|
|
18
18
|
to: 'To',
|
|
@@ -42,15 +42,19 @@ export function argumentsShown(approval) {
|
|
|
42
42
|
export function approvalCardOf(approval) {
|
|
43
43
|
const message = messageOfApproval(approval);
|
|
44
44
|
const why = whyAsked(approval);
|
|
45
|
+
const asker = seatOfApproval(approval);
|
|
46
|
+
const seat = asker ? seatSaid(asker) : '';
|
|
47
|
+
const said = message
|
|
48
|
+
? message.subject
|
|
49
|
+
? `${message.to} · ${message.subject}`
|
|
50
|
+
: message.to
|
|
51
|
+
: why;
|
|
45
52
|
return {
|
|
46
53
|
action: actionOf(String(approval.tool_name ?? approval.toolName ?? '')),
|
|
47
54
|
why,
|
|
55
|
+
seat,
|
|
48
56
|
message,
|
|
49
57
|
raw: message ? '' : argumentsShown(approval),
|
|
50
|
-
summary:
|
|
51
|
-
? message.subject
|
|
52
|
-
? `${message.to} · ${message.subject}`
|
|
53
|
-
: message.to
|
|
54
|
-
: why,
|
|
58
|
+
summary: [seat, said].filter(Boolean).join(' · '),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
@@ -30,9 +30,35 @@ export type ApprovalRecord = {
|
|
|
30
30
|
updated_at?: string;
|
|
31
31
|
updatedAt?: string;
|
|
32
32
|
read?: boolean;
|
|
33
|
+
/** The execution waiting on it, when a run the control plane dispatched asked (MH-42). */
|
|
34
|
+
execution_id?: string;
|
|
35
|
+
executionId?: string;
|
|
36
|
+
/** The team and the seat that asked, when a team seat did. */
|
|
37
|
+
team?: string;
|
|
38
|
+
seat?: string;
|
|
33
39
|
};
|
|
34
40
|
/** An approval as the server or the `/ws` stream sends it; null without an id. */
|
|
35
41
|
export declare function normalizeApproval(raw: unknown): ApprovalRecord | null;
|
|
42
|
+
/** The team and the seat an approval was asked by. */
|
|
43
|
+
export type SeatAsked = {
|
|
44
|
+
team: string;
|
|
45
|
+
seat: string;
|
|
46
|
+
};
|
|
47
|
+
/** Where an approval says who asked: its own fields, or its agent's id. */
|
|
48
|
+
export type SeatSource = {
|
|
49
|
+
agent_id?: string;
|
|
50
|
+
agentId?: string;
|
|
51
|
+
team?: string;
|
|
52
|
+
seat?: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* The team seat that asked (MH-42): the approval's `team` and `seat`, else
|
|
56
|
+
* its agent id when it is a seat's (`team:<team>/<seat>`); `null` for an
|
|
57
|
+
* approval no team seat asked.
|
|
58
|
+
*/
|
|
59
|
+
export declare function seatOfApproval(approval: SeatSource): SeatAsked | null;
|
|
60
|
+
/** A team seat, said: *The coder seat of the coding-agents team*. */
|
|
61
|
+
export declare const seatSaid: ({ team, seat }: SeatAsked) => string;
|
|
36
62
|
/** An approval's arguments, under either key: the web reads `tool_args`, mobile `toolArgs`. */
|
|
37
63
|
export type ApprovalArgs = {
|
|
38
64
|
tool_args?: Record<string, unknown>;
|
|
@@ -28,6 +28,12 @@ export function normalizeApproval(raw) {
|
|
|
28
28
|
const requestedBy = str(rec.requested_by ?? rec.requestedBy);
|
|
29
29
|
const resolvedAtRaw = str(rec.resolved_at ?? rec.resolvedAt);
|
|
30
30
|
const status = str(rec.status ?? 'pending');
|
|
31
|
+
const executionId = str(rec.execution_id ?? rec.executionId);
|
|
32
|
+
const asker = seatOfApproval({
|
|
33
|
+
agent_id: agent,
|
|
34
|
+
team: str(rec.team),
|
|
35
|
+
seat: str(rec.seat),
|
|
36
|
+
});
|
|
31
37
|
// Keep reviewer metadata from WS payloads. If this is dropped during
|
|
32
38
|
// normalization, downstream pages receive status=approved/rejected but no
|
|
33
39
|
// reviewer/timestamp context and can incorrectly render "review pending".
|
|
@@ -65,8 +71,27 @@ export function normalizeApproval(raw) {
|
|
|
65
71
|
updated_at: updated || undefined,
|
|
66
72
|
updatedAt: updated || undefined,
|
|
67
73
|
read: typeof rec.read === 'boolean' ? rec.read : undefined,
|
|
74
|
+
execution_id: executionId || undefined,
|
|
75
|
+
executionId: executionId || undefined,
|
|
76
|
+
team: asker?.team,
|
|
77
|
+
seat: asker?.seat,
|
|
68
78
|
};
|
|
69
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* The team seat that asked (MH-42): the approval's `team` and `seat`, else
|
|
82
|
+
* its agent id when it is a seat's (`team:<team>/<seat>`); `null` for an
|
|
83
|
+
* approval no team seat asked.
|
|
84
|
+
*/
|
|
85
|
+
export function seatOfApproval(approval) {
|
|
86
|
+
if (approval.team && approval.seat) {
|
|
87
|
+
return { team: approval.team, seat: approval.seat };
|
|
88
|
+
}
|
|
89
|
+
const agent = approval.agent_id ?? approval.agentId ?? '';
|
|
90
|
+
const named = /^team:([^/]+)\/(.+)$/.exec(agent);
|
|
91
|
+
return named ? { team: named[1], seat: named[2] } : null;
|
|
92
|
+
}
|
|
93
|
+
/** A team seat, said: *The coder seat of the coding-agents team*. */
|
|
94
|
+
export const seatSaid = ({ team, seat }) => `The ${seat} seat of the ${team} team`;
|
|
70
95
|
const argsOf = (approval) => approval.tool_args ?? approval.toolArgs ?? {};
|
|
71
96
|
const said = (approval, key) => {
|
|
72
97
|
const value = argsOf(approval)[key];
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
*
|
|
36
36
|
* @module portable/conversation
|
|
37
37
|
*/
|
|
38
|
-
import { REACTOR_UI_NAME, toolResultOf, UI_ON_RUN, } from './agui';
|
|
39
|
-
import { DISPLAY_META_KEY, displayOfToolResult, protocolDisplayOf, } from './displays';
|
|
40
|
-
import { RUN_END_WORDS } from './records';
|
|
41
|
-
import { messagesOfThread } from './thread';
|
|
38
|
+
import { REACTOR_UI_NAME, toolResultOf, UI_ON_RUN, } from './agui.js';
|
|
39
|
+
import { DISPLAY_META_KEY, displayOfToolResult, protocolDisplayOf, } from './displays.js';
|
|
40
|
+
import { RUN_END_WORDS } from './records.js';
|
|
41
|
+
import { messagesOfThread } from './thread.js';
|
|
42
42
|
/** How many rows a conversation on a phone keeps: its newest. */
|
|
43
43
|
export const ITEM_LIMIT = 400;
|
|
44
44
|
/** How many characters of an answer a phone keeps. */
|
package/lib/portable/displays.js
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
*
|
|
35
35
|
* @module portable/displays
|
|
36
36
|
*/
|
|
37
|
-
import { isPapSignInTool, readPapSignIn, } from './signIn';
|
|
37
|
+
import { isPapSignInTool, readPapSignIn, } from './signIn.js';
|
|
38
38
|
export const PAP_SIGN_IN_TYPE = 'application/vnd.datalayer.pap.sign-in+json';
|
|
39
39
|
export const PAP_CONFIRM_TYPE = 'application/vnd.datalayer.pap.confirm+json';
|
|
40
40
|
export const PAP_OUTCOME_TYPE = 'application/vnd.datalayer.pap.outcome+json';
|
package/lib/portable/fixtures.js
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
*
|
|
11
11
|
* @module portable/fixtures
|
|
12
12
|
*/
|
|
13
|
-
import { emptyConversation } from './conversation';
|
|
14
|
-
import { RUN_END_WORDS } from './records';
|
|
13
|
+
import { emptyConversation } from './conversation.js';
|
|
14
|
+
import { RUN_END_WORDS } from './records.js';
|
|
15
15
|
/** A fresh copy of the fixture conversation. */
|
|
16
16
|
/**
|
|
17
17
|
* A coding agent's diff and terminal, as the runtime sends them beside a tool
|
|
@@ -14,10 +14,10 @@
|
|
|
14
14
|
* @module portable/hosts/agentClient
|
|
15
15
|
*/
|
|
16
16
|
import { z } from 'zod';
|
|
17
|
-
import { AgUiFrames } from '../agui';
|
|
18
|
-
import { semanticOf, turnOf } from '../semanticOfAgUi';
|
|
19
|
-
import { HostRefusedError } from './client';
|
|
20
|
-
import { exchangeSchema, HOST_KEY_HEADER, IDEMPOTENCY_HEADER, } from './contracts';
|
|
17
|
+
import { AgUiFrames } from '../agui.js';
|
|
18
|
+
import { semanticOf, turnOf } from '../semanticOfAgUi.js';
|
|
19
|
+
import { HostRefusedError } from './client.js';
|
|
20
|
+
import { exchangeSchema, HOST_KEY_HEADER, IDEMPOTENCY_HEADER, } from './contracts.js';
|
|
21
21
|
/**
|
|
22
22
|
* The host credential exchange: the installation's key and
|
|
23
23
|
* the host user it speaks for, exchanged at ai-agents for a fifteen-minute
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @module portable/hosts/client
|
|
9
9
|
*/
|
|
10
10
|
import { z } from 'zod';
|
|
11
|
-
import { bindSchema, decisionSchema, deliveryOfOutbox, HOST_KEY_HEADER, linkCodeSchema, linkStateSchema, handoffSchema, presentationSchema, selfSchema, webhookSchema, } from './contracts';
|
|
11
|
+
import { bindSchema, decisionSchema, deliveryOfOutbox, HOST_KEY_HEADER, linkCodeSchema, linkStateSchema, handoffSchema, presentationSchema, selfSchema, webhookSchema, } from './contracts.js';
|
|
12
12
|
/** What ai-agents refused, with its status and its sentence. */
|
|
13
13
|
export class HostRefusedError extends Error {
|
|
14
14
|
status;
|
|
@@ -16,9 +16,9 @@
|
|
|
16
16
|
* @module portable/hosts/deadLetters
|
|
17
17
|
*/
|
|
18
18
|
import { createHash } from 'node:crypto';
|
|
19
|
-
import { Logger, redact, redactCredentials } from './observability';
|
|
20
|
-
import { PostgresWorkQueue } from './postgresQueue';
|
|
21
|
-
import { tablePrefixOf } from './queue';
|
|
19
|
+
import { Logger, redact, redactCredentials } from './observability.js';
|
|
20
|
+
import { PostgresWorkQueue } from './postgresQueue.js';
|
|
21
|
+
import { tablePrefixOf } from './queue.js';
|
|
22
22
|
export function payloadHash(payload) {
|
|
23
23
|
return createHash('sha256').update(JSON.stringify(payload)).digest('hex');
|
|
24
24
|
}
|
|
@@ -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 { DELIVERY_HEADER, SIGNATURE_HEADER, TIMESTAMP_HEADER, verifyDelivery, } from './contracts';
|
|
5
|
+
import { DELIVERY_HEADER, SIGNATURE_HEADER, TIMESTAMP_HEADER, verifyDelivery, } from './contracts.js';
|
|
6
6
|
/** Where Datalayer pushes an installation's deliveries, under the service's public address. */
|
|
7
7
|
export const DELIVERY_PATH = '/datalayer/deliveries';
|
|
8
8
|
export const DELIVERY_ROUTE = `${DELIVERY_PATH}/:hostUid`;
|