@datalayer/agent-runtimes 1.5.71 → 1.5.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/Agent.js +2 -2
- package/lib/AgentDocument.js +6 -6
- package/lib/AgentNode.js +4 -4
- package/lib/AgentNotebook.js +3 -3
- package/lib/App.js +2 -2
- package/lib/AppExamples2.js +3 -4
- package/lib/agent-document-main.js +1 -1
- package/lib/agent-main.js +1 -1
- package/lib/agent-node-main.js +1 -1
- package/lib/agent-notebook-main.js +1 -1
- package/lib/agents/AgentDetails.js +5 -5
- package/lib/agents/AgentRuntimeChat.js +3 -3
- package/lib/api/index.js +5 -5
- package/lib/api/scheduler/index.js +1 -1
- package/lib/apps/apps/AppBrowserSandbox.js +3 -3
- package/lib/apps/apps/AppComposer.js +6 -6
- package/lib/apps/apps/AppFeedback.js +3 -3
- package/lib/apps/apps/AppKept.js +3 -3
- package/lib/apps/apps/AppRenderer.js +26 -26
- package/lib/apps/apps/AppRuntimePlugins.js +3 -3
- package/lib/apps/apps/agent.js +2 -2
- package/lib/apps/apps/appspec.js +5 -5
- package/lib/apps/apps/browserSandbox.js +1 -1
- package/lib/apps/apps/checks.js +24 -24
- package/lib/apps/apps/customComponents.js +1 -1
- package/lib/apps/apps/index.js +18 -18
- package/lib/apps/apps/language.js +1 -1
- package/lib/apps/apps/records.js +3 -3
- package/lib/apps/apps/rules.js +1 -1
- package/lib/apps/apps/sceneChecks.js +6 -6
- package/lib/apps/apps/sceneShape.js +2 -2
- package/lib/apps/apps/sceneYaml.js +2 -2
- package/lib/apps/apps/yaml.js +1 -1
- package/lib/apps/core/index.js +7 -7
- package/lib/apps/embed/AppEmbed.d.ts +1 -1
- package/lib/apps/embed/AppEmbed.js +11 -11
- package/lib/apps/embed/LoopEmbed.js +4 -4
- package/lib/apps/embed/datalayer-app.js +1 -1
- package/lib/apps/embed/element.js +7 -7
- package/lib/apps/embed/embedConfig.js +2 -2
- package/lib/apps/embed/embedSession.js +2 -2
- package/lib/apps/embed/hostBridge.js +3 -3
- package/lib/apps/embed/visitorApp.js +3 -3
- package/lib/apps/extensions.js +4 -4
- package/lib/apps/index.js +70 -70
- package/lib/apps/plugins/a2a-sidebar/A2ASidebar.js +6 -6
- package/lib/apps/plugins/a2a-sidebar/index.js +3 -3
- package/lib/apps/plugins/a2ui/A2uiView.js +2 -2
- package/lib/apps/plugins/a2ui/index.js +3 -3
- package/lib/apps/plugins/a2ui-scene/index.js +1 -1
- package/lib/apps/plugins/a2ui-surface/AnswerShows.js +3 -3
- package/lib/apps/plugins/a2ui-surface/InlineSurface.js +1 -1
- package/lib/apps/plugins/a2ui-surface/SurfaceToolResult.js +4 -4
- package/lib/apps/plugins/a2ui-surface/index.js +7 -7
- package/lib/apps/plugins/a2ui-surface/ownComponents.js +2 -2
- package/lib/apps/plugins/agent-a2a/index.js +1 -1
- package/lib/apps/plugins/agent-a2ui/index.js +1 -1
- package/lib/apps/plugins/agent-a2ui-jupyter-output/index.js +1 -1
- package/lib/apps/plugins/agent-capacity/index.js +1 -1
- package/lib/apps/plugins/agent-checkpoints/index.js +1 -1
- package/lib/apps/plugins/agent-code-sandbox/index.js +1 -1
- package/lib/apps/plugins/agent-code-sandboxes/index.js +1 -1
- package/lib/apps/plugins/agent-codemode/index.js +1 -1
- package/lib/apps/plugins/agent-compaction/index.js +1 -1
- package/lib/apps/plugins/agent-evals/index.js +1 -1
- package/lib/apps/plugins/agent-guardrails/index.js +1 -1
- package/lib/apps/plugins/agent-hooks/index.js +1 -1
- package/lib/apps/plugins/agent-inference/index.js +1 -1
- package/lib/apps/plugins/agent-mcp/index.js +1 -1
- package/lib/apps/plugins/agent-memory/index.js +1 -1
- package/lib/apps/plugins/agent-monitoring/index.js +1 -1
- package/lib/apps/plugins/agent-notifications/index.js +1 -1
- package/lib/apps/plugins/agent-otel/index.js +1 -1
- package/lib/apps/plugins/agent-outputs/index.js +1 -1
- package/lib/apps/plugins/agent-parameters/index.js +1 -1
- package/lib/apps/plugins/agent-skills/index.js +1 -1
- package/lib/apps/plugins/agent-subagents/index.js +1 -1
- package/lib/apps/plugins/agent-tool-approvals/index.js +1 -1
- package/lib/apps/plugins/agent-triggers/index.js +1 -1
- package/lib/apps/plugins/agents/AgentSummaryPanel.js +5 -5
- package/lib/apps/plugins/agents/AnonymousKeyBadge.js +2 -2
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +7 -7
- package/lib/apps/plugins/agents/DatalayerAgentMount.js +1 -1
- package/lib/apps/plugins/agents/SandboxSelector.js +3 -3
- package/lib/apps/plugins/agents/SandboxStatusBridge.js +2 -2
- package/lib/apps/plugins/agents/SandboxView.js +1 -1
- package/lib/apps/plugins/agents/TeamMemberPicker.js +2 -2
- package/lib/apps/plugins/agents/index.js +8 -8
- package/lib/apps/plugins/agents/plugin.js +10 -10
- package/lib/apps/plugins/agents/specSubagents.js +1 -1
- package/lib/apps/plugins/agents/switchable.js +3 -3
- package/lib/apps/plugins/agents/team.js +2 -2
- package/lib/apps/plugins/agents/useSandboxService.js +1 -1
- package/lib/apps/plugins/agents/useTeamSelection.js +1 -1
- package/lib/apps/plugins/agentspecs/AgentspecPicker.js +1 -1
- package/lib/apps/plugins/agentspecs/index.js +2 -2
- package/lib/apps/plugins/app-activity/AppActivity.js +2 -2
- package/lib/apps/plugins/app-activity/index.js +3 -3
- package/lib/apps/plugins/app-components/index.js +4 -4
- package/lib/apps/plugins/app-computer/AppComputer.js +3 -3
- package/lib/apps/plugins/app-computer/index.js +4 -4
- package/lib/apps/plugins/app-elements/AppElements.js +2 -2
- package/lib/apps/plugins/app-elements/QuestionView.js +1 -1
- package/lib/apps/plugins/app-elements/index.js +6 -6
- package/lib/apps/plugins/app-page/AppPage.js +7 -7
- package/lib/apps/plugins/app-page/appPageModel.js +1 -1
- package/lib/apps/plugins/app-page/index.js +6 -6
- package/lib/apps/plugins/app-rules/AppRulesCard.js +5 -5
- package/lib/apps/plugins/app-rules/index.js +4 -4
- package/lib/apps/plugins/assistant/index.js +12 -12
- package/lib/apps/plugins/assistant-characters/index.d.ts +1 -1
- package/lib/apps/plugins/assistant-characters/index.js +3 -3
- package/lib/apps/plugins/canvas-blocks/index.js +2 -2
- package/lib/apps/plugins/canvas-parts/index.js +10 -10
- package/lib/apps/plugins/chat/ChatView.js +43 -43
- package/lib/apps/plugins/chat/SessionActionsMenu.js +2 -2
- package/lib/apps/plugins/chat/index.js +4 -4
- package/lib/apps/plugins/chat/sessionActions.js +2 -2
- package/lib/apps/plugins/chat-extras/index.js +1 -1
- package/lib/apps/plugins/chat-header/HeaderView.js +1 -1
- package/lib/apps/plugins/chat-header/index.js +2 -2
- package/lib/apps/plugins/chat-view/index.js +2 -2
- package/lib/apps/plugins/checkpoints-sidebar/CheckpointsSidebar.js +2 -2
- package/lib/apps/plugins/checkpoints-sidebar/index.js +3 -3
- package/lib/apps/plugins/commands/index.js +1 -1
- package/lib/apps/plugins/decks/DecksMenu.js +2 -2
- package/lib/apps/plugins/decks/index.js +8 -8
- package/lib/apps/plugins/document/DocumentView.js +5 -5
- package/lib/apps/plugins/document/index.js +4 -4
- package/lib/apps/plugins/document/openingDocument.js +1 -1
- package/lib/apps/plugins/document-toolbar/SandboxStatusItem.js +2 -2
- package/lib/apps/plugins/document-toolbar/index.js +3 -3
- package/lib/apps/plugins/document-toolbar/plugin.js +3 -3
- package/lib/apps/plugins/document-view/index.js +1 -1
- package/lib/apps/plugins/graph/GraphToggle.js +1 -1
- package/lib/apps/plugins/graph/index.js +5 -5
- package/lib/apps/plugins/input-prompt/ComposerView.js +2 -2
- package/lib/apps/plugins/input-prompt/index.js +2 -2
- package/lib/apps/plugins/models/index.js +1 -1
- package/lib/apps/plugins/notebook/NotebookView.js +5 -5
- package/lib/apps/plugins/notebook/index.js +4 -4
- package/lib/apps/plugins/notebook-toolbar/index.js +3 -3
- package/lib/apps/plugins/notebook-toolbar/plugin.js +3 -3
- package/lib/apps/plugins/notebook-view/index.js +1 -1
- package/lib/apps/plugins/page-layout/SplitLayout.js +1 -1
- package/lib/apps/plugins/page-layout/TurnPanel.js +5 -5
- package/lib/apps/plugins/page-layout/index.js +5 -5
- package/lib/apps/plugins/pap-example/index.js +1 -1
- package/lib/apps/plugins/pap-sign-in/PapSignInCard.js +1 -1
- package/lib/apps/plugins/pap-sign-in/index.js +5 -5
- package/lib/apps/plugins/pap-sign-in/signIn.js +1 -1
- package/lib/apps/plugins/plugins-panel/index.js +1 -1
- package/lib/apps/plugins/prompt/index.js +3 -3
- package/lib/apps/plugins/shell/editorChoice.js +1 -1
- package/lib/apps/plugins/shell/index.js +4 -4
- package/lib/apps/plugins/shell/useEditorPreviews.js +1 -1
- package/lib/apps/plugins/shield-displays/DiffCard.js +1 -1
- package/lib/apps/plugins/shield-displays/TerminalCard.js +1 -1
- package/lib/apps/plugins/shield-displays/index.js +5 -5
- package/lib/apps/plugins/subagent-activity/SubagentPulse.js +3 -3
- package/lib/apps/plugins/subagent-activity/index.js +4 -4
- package/lib/apps/plugins/view-switch/index.js +3 -3
- package/lib/apps/plugins/window-frame/WindowFrame.js +1 -1
- package/lib/apps/plugins/window-frame/index.js +5 -5
- package/lib/apps/presets.js +21 -21
- package/lib/apps/shell/LoopWorkspace.js +4 -4
- package/lib/apps/shell/SidebarRail.js +1 -1
- package/lib/apps/shell/ViewSwitcher.js +1 -1
- package/lib/apps/shell/WorkspaceFullScreenAction.js +2 -2
- package/lib/apps/shell/index.js +7 -7
- package/lib/chat/Chat.js +7 -7
- package/lib/chat/ChatFloating.d.ts +1 -1
- package/lib/chat/ChatFloating.js +23 -23
- package/lib/chat/ChatInline.js +4 -4
- package/lib/chat/ChatLanguage.js +2 -2
- package/lib/chat/ChatPopupStandalone.js +4 -4
- package/lib/chat/ChatSidebar.js +2 -2
- package/lib/chat/ChatStandalone.js +3 -3
- package/lib/chat/assistant/AgentDetailsDialog.js +1 -1
- package/lib/chat/assistant/AssistantStage.d.ts +1 -1
- package/lib/chat/assistant/AssistantStage.js +16 -16
- package/lib/chat/assistant/Avatar3D.d.ts +1 -1
- package/lib/chat/assistant/Avatar3D.js +1 -1
- package/lib/chat/assistant/BalloonParts.js +8 -8
- package/lib/chat/assistant/BalloonVisual.js +1 -1
- package/lib/chat/assistant/ConversationBalloon.js +1 -1
- package/lib/chat/assistant/DecisionAsk.js +1 -1
- package/lib/chat/assistant/SandboxDetailsDialog.js +1 -1
- package/lib/chat/assistant/SpeechBalloon.js +5 -5
- package/lib/chat/assistant/SpriteCharacter.js +2 -2
- package/lib/chat/assistant/{avatar3d.d.ts → avatar3dModel.d.ts} +1 -1
- package/lib/chat/assistant/formats/acf.js +3 -3
- package/lib/chat/assistant/formats/acs.js +3 -3
- package/lib/chat/assistant/formats/agentCompression.js +1 -1
- package/lib/chat/assistant/formats/blobs.js +1 -1
- package/lib/chat/assistant/formats/clippy.js +3 -3
- package/lib/chat/assistant/formats/files.js +4 -4
- package/lib/chat/assistant/formats/index.js +7 -7
- package/lib/chat/assistant/formats/objectLiteral.js +1 -1
- package/lib/chat/assistant/toolLine.js +2 -2
- package/lib/chat/base/ChatBase.js +45 -45
- package/lib/chat/base/fullContextMessages.js +1 -1
- package/lib/chat/base/uiOps.js +3 -3
- package/lib/chat/display/EmptyState.js +3 -3
- package/lib/chat/document/EphemeralDocument.js +4 -4
- package/lib/chat/header/ChatHeaderBase.js +2 -2
- package/lib/chat/header/ChatViewModeToggle.js +1 -1
- package/lib/chat/index.js +24 -24
- package/lib/chat/indicators/McpStatusIndicator.js +1 -1
- package/lib/chat/indicators/SandboxStatusIndicator.js +1 -1
- package/lib/chat/indicators/index.js +3 -3
- package/lib/chat/marks/SpecMark.js +1 -1
- package/lib/chat/marks/index.js +3 -3
- package/lib/chat/marks/toolMarks.js +4 -4
- package/lib/chat/messages/ChatMarkdown.js +3 -3
- package/lib/chat/messages/ChatMessageList.js +13 -13
- package/lib/chat/messages/ChatMessages.js +2 -2
- package/lib/chat/messages/FormSubmissionMessage.js +1 -1
- package/lib/chat/messages/TurnFooter.js +2 -2
- package/lib/chat/notebook/EphemeralNotebook.js +4 -4
- package/lib/chat/parts/MessagePart.js +4 -4
- package/lib/chat/parts/ReasoningPart.js +2 -2
- package/lib/chat/parts/TextPart.js +2 -2
- package/lib/chat/parts/ToolPart.js +1 -1
- package/lib/chat/parts/index.js +5 -5
- package/lib/chat/presence/Presence.js +1 -1
- package/lib/chat/presence/presenceStatus.js +1 -1
- package/lib/chat/prompt/InputPrompt.js +9 -9
- package/lib/chat/prompt/InputPromptBase.js +6 -6
- package/lib/chat/prompt/InputPromptLexical.js +4 -4
- package/lib/chat/prompt/footer/BelowPromptFooter.js +1 -1
- package/lib/chat/prompt/footer/InPromptFooter.js +2 -2
- package/lib/chat/prompt/footer/index.js +2 -2
- package/lib/chat/prompt/header/BelowPromptHeader.js +1 -1
- package/lib/chat/prompt/header/InPromptHeader.js +1 -1
- package/lib/chat/prompt/header/index.js +2 -2
- package/lib/chat/prompt/index.js +10 -10
- package/lib/chat/prompt/menus/SkillsMenu.js +1 -1
- package/lib/chat/prompt/menus/SuggestionsMenu.js +1 -1
- package/lib/chat/prompt/menus/ToolsMenu.js +1 -1
- package/lib/chat/prompt/menus/index.js +6 -6
- package/lib/chat/prompt/plugins/AgentMentionPlugin.js +1 -1
- package/lib/chat/prompt/plugins/MentionNode.js +1 -1
- package/lib/chat/prompt/stack.js +1 -1
- package/lib/chat/tools/SubagentActivity.js +1 -1
- package/lib/chat/tools/ToolApprovalBanner.js +1 -1
- package/lib/chat/tools/ToolApprovalDialog.js +1 -1
- package/lib/chat/tools/ToolCallDisplay.js +2 -2
- package/lib/chat/tools/index.js +5 -5
- package/lib/chat/usage/ContextPie.js +1 -1
- package/lib/chat/words.js +1 -1
- package/lib/client/AgentRuntimesClient.js +2 -2
- package/lib/client/AgentsMixin.js +8 -8
- package/lib/client/index.js +3 -3
- package/lib/client/mixins/RuntimesMixin.js +6 -6
- package/lib/client/mixins/SpacerMixin.js +11 -11
- package/lib/client/utils/spacerUtils.js +2 -2
- package/lib/collaboration/DatalayerCollaborationProvider.js +1 -1
- package/lib/collaboration/index.js +2 -2
- package/lib/components/a2ui/custom/index.js +6 -6
- package/lib/components/a2ui/datalayer/Chart.js +2 -2
- package/lib/components/a2ui/datalayer/Chat.js +5 -5
- package/lib/components/a2ui/datalayer/Download.js +2 -2
- package/lib/components/a2ui/datalayer/Evidence.js +2 -2
- package/lib/components/a2ui/datalayer/FileUpload.js +3 -3
- package/lib/components/a2ui/datalayer/Form.js +3 -3
- package/lib/components/a2ui/datalayer/SchemaForm.js +1 -1
- package/lib/components/a2ui/datalayer/Table.js +2 -2
- package/lib/components/a2ui/datalayer/implementation.js +1 -1
- package/lib/components/a2ui/datalayer/index.js +17 -17
- package/lib/components/a2ui/datalayer/schema.js +1 -1
- package/lib/components/a2ui/index.js +7 -7
- package/lib/components/a2ui/visibleWhen.js +2 -2
- package/lib/components/agents/AgentSummary.js +1 -1
- package/lib/components/agents/index.js +1 -1
- package/lib/components/cards/NotificationEventCard.js +2 -2
- package/lib/components/cards/OutputCard.js +2 -2
- package/lib/components/cards/index.js +3 -3
- package/lib/components/code-sandboxes/CodeSandboxCellVariablesDialog.js +3 -3
- package/lib/components/code-sandboxes/CodeSandboxLauncher.js +9 -9
- package/lib/components/code-sandboxes/CodeSandboxPicker.js +9 -9
- package/lib/components/code-sandboxes/CodeSandboxPickerCell.js +7 -7
- package/lib/components/code-sandboxes/CodeSandboxUtils.js +3 -3
- package/lib/components/code-sandboxes/CodeSandboxVariables.js +1 -1
- package/lib/components/code-sandboxes/NewCodeSandboxControls.js +3 -3
- package/lib/components/code-sandboxes/index.js +14 -14
- package/lib/components/context/SpaceSelect.js +1 -1
- package/lib/components/flashes/FlashDisclaimer.js +1 -1
- package/lib/components/icons/index.js +1 -1
- package/lib/components/index.js +6 -6
- package/lib/components/inspector/AgentInspector.js +2 -2
- package/lib/components/inspector/AgentInspectorDialog.js +1 -1
- package/lib/components/inspector/a2aSpans.js +1 -1
- package/lib/components/inspector/chatSpans.js +2 -2
- package/lib/components/inspector/classify.js +1 -1
- package/lib/components/inspector/index.js +6 -6
- package/lib/components/nbgrader/index.js +1 -1
- package/lib/components/progress/index.js +1 -1
- package/lib/components/scheduler/ScheduleMenu.js +1 -1
- package/lib/components/scheduler/index.js +1 -1
- package/lib/components/snapshots/SandboxSnapshotMenu.js +2 -2
- package/lib/components/snapshots/index.js +1 -1
- package/lib/components/teams/A2ATeamGraph.d.ts +1 -1
- package/lib/components/teams/A2ATeamGraph.js +8 -8
- package/lib/components/teams/AnswerSurfaces.js +1 -1
- package/lib/components/teams/AnswerSurfacesView.js +4 -4
- package/lib/components/teams/NotebookPreview.js +2 -2
- package/lib/components/teams/NotebookPreviewView.js +1 -1
- package/lib/components/teams/SceneTranscript.d.ts +1 -1
- package/lib/components/teams/SceneTranscript.js +2 -2
- package/lib/components/teams/SceneView.d.ts +1 -1
- package/lib/components/teams/SceneView.js +1 -1
- package/lib/components/teams/TeamNotebook.js +1 -1
- package/lib/components/teams/TeamNotebookView.js +3 -3
- package/lib/components/teams/index.d.ts +1 -1
- package/lib/components/teams/index.js +13 -13
- package/lib/components/teams/sceneStage.js +2 -2
- package/lib/components/teams/{sceneTranscript.d.ts → sceneTranscriptRules.d.ts} +1 -1
- package/lib/components/teams/{sceneTranscript.js → sceneTranscriptRules.js} +1 -1
- package/lib/components/teams/teamConnections.js +3 -3
- package/lib/components/teams/useA2ATeam.js +6 -6
- package/lib/components/teams/usePeerSandbox.js +1 -1
- package/lib/components/tokens/index.js +1 -1
- package/lib/config/AgentConfiguration.js +2 -2
- package/lib/config/index.js +2 -2
- package/lib/context/CostUsageChart.js +4 -4
- package/lib/context/MessageHistory.js +1 -1
- package/lib/context/TokenUsageChart.js +4 -4
- package/lib/examples/A2UiAgentExample.js +9 -9
- package/lib/examples/A2UiComponentsGalleryExample.js +4 -4
- package/lib/examples/A2UiContactCardExample.js +4 -4
- package/lib/examples/A2UiJupyterOutputExample.js +11 -11
- package/lib/examples/A2UiRestaurantExample.js +4 -4
- package/lib/examples/A2UiViewerExample.js +6 -6
- package/lib/examples/AgUiAgenticExample.js +4 -4
- package/lib/examples/AgUiBackendToolRenderingExample.js +6 -6
- package/lib/examples/AgUiHaikuGenUiExample.js +6 -6
- package/lib/examples/AgUiHumanInTheLoopExample.js +5 -5
- package/lib/examples/AgUiSharedStateExample.js +4 -4
- package/lib/examples/AgUiToolsBasedGenUiExample.js +4 -4
- package/lib/examples/AgentA2AExample.js +7 -7
- package/lib/examples/AgentA2ATeamExample.js +10 -10
- package/lib/examples/AgentCheckpointsExample.js +14 -14
- package/lib/examples/AgentCodeSandboxExample.js +6 -6
- package/lib/examples/AgentCodeSandboxesExample.js +5 -5
- package/lib/examples/AgentCodemodeExample.js +12 -12
- package/lib/examples/AgentCompactionExample.js +8 -8
- package/lib/examples/AgentDecideExample.js +6 -6
- package/lib/examples/AgentEvalsExample.js +11 -11
- package/lib/examples/AgentGuardrailsExample.js +17 -17
- package/lib/examples/AgentHooksExample.js +5 -5
- package/lib/examples/AgentInferenceProviderExample.js +6 -6
- package/lib/examples/AgentMCPExample.js +14 -14
- package/lib/examples/AgentMemoryExample.js +11 -11
- package/lib/examples/AgentMonitoringExample.js +19 -19
- package/lib/examples/AgentNotificationsExample.js +9 -9
- package/lib/examples/AgentOtelExample.js +6 -6
- package/lib/examples/AgentOutputsExample.js +8 -8
- package/lib/examples/AgentParametersExample.js +6 -6
- package/lib/examples/AgentSkillsExample.js +9 -9
- package/lib/examples/AgentSubagentsExample.js +8 -8
- package/lib/examples/AgentToolApprovalsExample.js +10 -10
- package/lib/examples/AgentTriggersExample.js +14 -14
- package/lib/examples/AgentspecsExample.js +11 -11
- package/lib/examples/AvatarExample.js +8 -8
- package/lib/examples/AvatarGalleryExample.js +8 -8
- package/lib/examples/CellExample.js +2 -2
- package/lib/examples/ChatCustomExample.js +4 -4
- package/lib/examples/ChatExample.js +8 -8
- package/lib/examples/ChatStandaloneExample.js +2 -2
- package/lib/examples/CopilotKitLexicalExample.js +4 -4
- package/lib/examples/CopilotKitNotebookExample.js +4 -4
- package/lib/examples/DecksAgent.js +4 -4
- package/lib/examples/DocumentPageAgent.js +2 -2
- package/lib/examples/Lexical2Example.js +9 -9
- package/lib/examples/LexicalAgentExample.js +7 -7
- package/lib/examples/LexicalAgentSidebarExample.js +8 -8
- package/lib/examples/LoopAppComputerExample.js +4 -4
- package/lib/examples/LoopShellExample.js +6 -6
- package/lib/examples/LoopStrategyExample.js +6 -6
- package/lib/examples/LoopWorkspaceEmbed.js +1 -1
- package/lib/examples/LoopWorkspaceExample.js +11 -11
- package/lib/examples/NotebookAgentExample.js +5 -5
- package/lib/examples/NotebookAgentSidebarExample.js +5 -5
- package/lib/examples/NotebookCollaborationExample.js +6 -6
- package/lib/examples/NotebookExample.js +2 -2
- package/lib/examples/NotebookPageAgent.js +2 -2
- package/lib/examples/PapAccountTokensExample.js +4 -4
- package/lib/examples/PapAgentIdentityExample.js +4 -4
- package/lib/examples/PapAuthorizationBoundaryExample.js +4 -4
- package/lib/examples/PapCompanyDiscoveryExample.js +4 -4
- package/lib/examples/PapConversationControlExample.js +4 -4
- package/lib/examples/PapConversationStreamingExample.js +4 -4
- package/lib/examples/PapDpopProofExample.js +4 -4
- package/lib/examples/PapGuidedJourneyExample.js +4 -4
- package/lib/examples/PapMediatedSignInExample.js +4 -4
- package/lib/examples/PapOperationsExample.js +4 -4
- package/lib/examples/PapSessionLifecycleExample.js +4 -4
- package/lib/examples/PapSignInDisplayExample.js +4 -4
- package/lib/examples/PapTwoCompaniesExample.js +4 -4
- package/lib/examples/PapUserWithACompanyExample.js +4 -4
- package/lib/examples/ProtocolSignedRequestsExample.js +2 -2
- package/lib/examples/ProtocolUcpCheckoutExample.js +2 -2
- package/lib/examples/ScenesExample.js +8 -8
- package/lib/examples/ShieldHarnessExample.js +5 -5
- package/lib/examples/ShieldPolicyExample.js +2 -2
- package/lib/examples/VoiceChatExample.js +4 -4
- package/lib/examples/components/AuthRequiredView.js +1 -1
- package/lib/examples/components/ExampleWrapper.js +3 -3
- package/lib/examples/components/Header.js +2 -2
- package/lib/examples/components/LexicalEditor.js +1 -1
- package/lib/examples/components/MainContent.js +1 -1
- package/lib/examples/components/haiku/HaikuDisplay.js +1 -1
- package/lib/examples/components/haiku/index.js +2 -2
- package/lib/examples/components/index.js +13 -13
- package/lib/examples/components/weather/index.js +1 -1
- package/lib/examples/example-selector.js +78 -78
- package/lib/examples/hooks/useExampleAgentProtocol.js +2 -2
- package/lib/examples/hooks/useExampleAgentRuntime.js +4 -4
- package/lib/examples/hooks/useExampleAgentRuntimes.js +4 -4
- package/lib/examples/hooks/useExampleJupyterAgent.js +8 -8
- package/lib/examples/hooks/useToolRenderers.js +1 -1
- package/lib/examples/index.js +66 -66
- package/lib/examples/lexical/editorConfig.js +1 -1
- package/lib/examples/main.js +21 -21
- package/lib/examples/pap/PapAccountTokensView.js +1 -1
- package/lib/examples/pap/PapAgentIdentityView.js +2 -2
- package/lib/examples/pap/PapAuthorizationBoundaryView.js +1 -1
- package/lib/examples/pap/PapCompanyDiscoveryView.js +2 -2
- package/lib/examples/pap/PapConversationControlView.js +1 -1
- package/lib/examples/pap/PapConversationStreamingView.js +1 -1
- package/lib/examples/pap/PapDpopProofView.js +1 -1
- package/lib/examples/pap/PapGuidedJourneyView.js +2 -2
- package/lib/examples/pap/PapMediatedSignInView.js +1 -1
- package/lib/examples/pap/PapOperationsView.js +1 -1
- package/lib/examples/pap/PapSessionLifecycleView.js +1 -1
- package/lib/examples/pap/PapSignInDisplayView.js +2 -2
- package/lib/examples/pap/PapTraceView.js +1 -1
- package/lib/examples/pap/PapTwoCompaniesView.js +1 -1
- package/lib/examples/pap/PapUserWithACompanyView.js +1 -1
- package/lib/examples/pap/papSignInCases.js +1 -1
- package/lib/examples/protocols/signedRequestsDemo.js +1 -1
- package/lib/examples/protocols/ucpCheckoutDemo.js +3 -3
- package/lib/examples/scenes/A2UiComponentsGalleryScene.js +4 -4
- package/lib/examples/scenes/A2UiContactCardScene.js +3 -3
- package/lib/examples/scenes/A2UiRestaurantScene.js +5 -5
- package/lib/examples/scenes/A2UiViewerScene.js +3 -3
- package/lib/examples/utils/AvatarGalleryGrid.d.ts +1 -1
- package/lib/examples/utils/AvatarGalleryGrid.js +8 -8
- package/lib/examples/utils/a2ui.js +1 -1
- package/lib/examples/utils/a2uiMarkdownProvider.js +1 -1
- package/lib/examples/utils/avatarGallery.js +2 -2
- package/lib/examples/utils/clippyJsCharacters.js +1 -1
- package/lib/examples/utils/examplesStore.js +1 -1
- package/lib/examples/utils/notebookToolbarItems.js +1 -1
- package/lib/examples/utils/owlCharacterPlugin.js +1 -1
- package/lib/examples/utils/teardownAgents.js +1 -1
- package/lib/examples/utils/testSpriteCharacter.js +1 -1
- package/lib/examples/utils/themedProvider.js +1 -1
- package/lib/examples/utils/useExampleAgentRuntimesUrl.js +3 -3
- package/lib/examples2/DatalayerNotebookExample.js +3 -3
- package/lib/examples2/NativeNavigationExample.js +1 -1
- package/lib/examples2/NotebookMutationsKernel.js +2 -2
- package/lib/examples2/NotebookMutationsServiceManager.js +2 -2
- package/lib/examples2/ReactRouterExample.js +1 -1
- package/lib/examples2/example-selector.js +7 -7
- package/lib/examples2/index.js +2 -2
- package/lib/examples2/main.js +5 -5
- package/lib/hooks/index.js +26 -26
- package/lib/hooks/useAgUi.js +1 -1
- package/lib/hooks/useAgentRuntimes.js +9 -9
- package/lib/hooks/useAgentsCatalog.js +1 -1
- package/lib/hooks/useAgentsService.js +1 -1
- package/lib/hooks/useBrowserAgent.js +1 -1
- package/lib/hooks/useBrowserInference.js +2 -2
- package/lib/hooks/useCellOutputshot.js +1 -1
- package/lib/hooks/useChat.js +6 -6
- package/lib/hooks/useCheckpoints.js +10 -10
- package/lib/hooks/useConfig.js +1 -1
- package/lib/hooks/useContextSnapshot.js +1 -1
- package/lib/hooks/useNotifications.js +1 -1
- package/lib/hooks/useProgressTask.js +1 -1
- package/lib/hooks/useSandbox.js +1 -1
- package/lib/hooks/useSkills.js +1 -1
- package/lib/hooks/useToolApprovals.js +2 -2
- package/lib/hooks/useTools.js +1 -1
- package/lib/identity/AgentIdentity.js +3 -3
- package/lib/identity/IdentityConnect.js +2 -2
- package/lib/identity/OAuthCallback.js +1 -1
- package/lib/identity/identityStore.js +2 -2
- package/lib/identity/index.js +8 -8
- package/lib/identity/useIdentity.js +1 -1
- package/lib/index.js +11 -11
- package/lib/inference/DatalayerInferenceProvider.js +2 -2
- package/lib/inference/SelfHostedInferenceProvider.js +2 -2
- package/lib/inference/index.js +3 -3
- package/lib/jupyter/exec/Snippets.js +1 -1
- package/lib/jupyter/exec/index.js +2 -2
- package/lib/jupyter/index.js +3 -3
- package/lib/jupyter/useResumeServerExecutions.js +1 -1
- package/lib/lexical/ChatInlinePlugin.js +1 -1
- package/lib/lexical/index.js +2 -2
- package/lib/loop-example-main.js +2 -2
- package/lib/loop-main.js +9 -9
- package/lib/main.js +1 -1
- package/lib/mcp/index.js +1 -1
- package/lib/middleware/index.js +1 -1
- package/lib/mocks/models/CourseMock.js +1 -1
- package/lib/models/CodeSandboxSnapshotDTO.js +1 -1
- package/lib/models/ItemDTO.js +1 -1
- package/lib/models/LexicalDTO.js +2 -2
- package/lib/models/NotebookDTO.js +2 -2
- package/lib/models/Page.js +1 -1
- package/lib/models/RuntimeDTO.js +1 -1
- package/lib/models/SpaceDTO.js +7 -7
- package/lib/models/index.js +32 -32
- package/lib/portable/activity.js +1 -1
- package/lib/portable/approvalCard.js +1 -1
- package/lib/portable/attention.js +1 -1
- package/lib/portable/conversation.js +4 -4
- package/lib/portable/displays.js +1 -1
- package/lib/portable/fixtures.js +2 -2
- package/lib/portable/hosts/agentClient.js +4 -4
- package/lib/portable/hosts/client.js +1 -1
- package/lib/portable/hosts/deadLetters.js +3 -3
- package/lib/portable/hosts/deliveries.js +1 -1
- package/lib/portable/hosts/index.js +21 -21
- package/lib/portable/hosts/postgresQueue.js +1 -1
- package/lib/portable/hosts/quotas.js +1 -1
- package/lib/portable/hosts/schema.js +1 -1
- package/lib/portable/index.js +24 -24
- package/lib/portable/localApprovals.js +1 -1
- package/lib/portable/runMeasures.js +2 -2
- package/lib/portable/sessionList.js +1 -1
- package/lib/portable/sessions.js +4 -4
- package/lib/portable/thread.js +2 -2
- package/lib/portable/views.js +1 -1
- package/lib/protocols/A2AAdapter.js +3 -3
- package/lib/protocols/ACPAdapter.js +2 -2
- package/lib/protocols/AGUIAdapter.js +4 -4
- package/lib/protocols/BrowserAgentAdapter.js +3 -3
- package/lib/protocols/VercelAIAdapter.js +2 -2
- package/lib/protocols/a2a/index.js +1 -1
- package/lib/protocols/agentProtocols.js +8 -8
- package/lib/protocols/agentic-commerce/index.js +3 -3
- package/lib/protocols/commerce.js +1 -1
- package/lib/protocols/index.js +6 -6
- package/lib/protocols/mcp/index.js +2 -2
- package/lib/protocols/pact/index.js +1 -1
- package/lib/protocols/pap/index.js +1 -1
- package/lib/protocols/ucp/index.js +3 -3
- package/lib/protocols/ucp/merchant.js +1 -1
- package/lib/protocols/web-bot-auth/index.js +1 -1
- package/lib/protocols/web-bot-auth/tap.js +1 -1
- package/lib/runtimes/actions.js +3 -3
- package/lib/runtimes/browser/agent.js +2 -2
- package/lib/runtimes/browser/frontendTools.js +1 -1
- package/lib/runtimes/browser/index.js +6 -6
- package/lib/runtimes/browser/subagents.js +2 -2
- package/lib/runtimes/index.js +8 -8
- package/lib/runtimes/variants.js +1 -1
- package/lib/services/DatalayerServiceManager.js +1 -1
- package/lib/specs/agents/agents.js +4 -4
- package/lib/specs/agents/index.js +1 -1
- package/lib/specs/cogs.js +4 -4
- package/lib/specs/index.js +32 -32
- package/lib/specs/teams/index.js +1 -1
- package/lib/state/index.js +1 -1
- package/lib/state/substates/RuntimesState.js +1 -1
- package/lib/state/substates/index.js +7 -7
- package/lib/stores/agentRuntimeStore.js +3 -3
- package/lib/stores/index.js +3 -3
- package/lib/stories/Button.stories.js +1 -1
- package/lib/stories/Header.js +1 -1
- package/lib/stories/Header.stories.js +1 -1
- package/lib/stories/Page.js +1 -1
- package/lib/stories/Page.stories.js +1 -1
- package/lib/stories/loop/LoopReference.stories.js +1 -1
- package/lib/stories/loop/ReferenceScreens.js +11 -11
- package/lib/stories/loop/pictures-main.js +2 -2
- package/lib/tools/ToolExecutor.js +1 -1
- package/lib/tools/adapters/agent-runtimes/index.js +3 -3
- package/lib/tools/adapters/agent-runtimes/lexicalHooks.js +1 -1
- package/lib/tools/adapters/agent-runtimes/notebookHooks.js +1 -1
- package/lib/tools/adapters/commands/index.js +1 -1
- package/lib/tools/adapters/copilotkit/index.js +3 -3
- package/lib/tools/adapters/copilotkit/lexicalHooks.js +1 -1
- package/lib/tools/adapters/copilotkit/notebookHooks.js +1 -1
- package/lib/tools/index.js +3 -3
- package/lib/types/index.js +40 -40
- package/lib/ui-plugins/index.js +3 -3
- package/lib/utils/index.js +1 -1
- package/lib/utils/utils.js +2 -2
- package/lib/voice/ComposerVoice.js +5 -5
- package/lib/voice/HandsFree.js +5 -5
- package/lib/voice/ReadAloud.js +1 -1
- package/lib/voice/VoiceInput.js +3 -3
- package/lib/voice/VoiceMenu.js +3 -3
- package/lib/voice/captions.js +2 -2
- package/lib/voice/chatVoice.js +3 -3
- package/lib/voice/choices.js +1 -1
- package/lib/voice/{handsFree.d.ts → handsFreeRules.d.ts} +1 -1
- package/lib/voice/hearing.js +3 -3
- package/lib/voice/index.d.ts +1 -1
- package/lib/voice/index.js +22 -22
- package/lib/voice/keptSound.js +1 -1
- package/lib/voice/pinned.js +1 -1
- package/lib/voice/serverHearing.js +2 -2
- package/lib/voice/useSpokenAnswers.js +1 -1
- package/lib/voice/useVoiceSettings.js +1 -1
- package/lib/voice/useVoiceSpeaker.js +2 -2
- package/package.json +4 -3
- package/scripts/check-npm-pack.mjs +77 -0
- package/scripts/esm-specifiers.mjs +76 -0
- package/scripts/fully-specify-lib.mjs +61 -0
- /package/lib/chat/assistant/{avatar3d.js → avatar3dModel.js} +0 -0
- /package/lib/voice/{handsFree.js → handsFreeRules.js} +0 -0
package/lib/examples/index.js
CHANGED
|
@@ -2,71 +2,71 @@
|
|
|
2
2
|
* Copyright (c) 2025-2026 Datalayer, Inc.
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
|
-
export { default as AgentspecsExample } from './AgentspecsExample';
|
|
6
|
-
export { default as A2UiComponentsGalleryExample } from './A2UiComponentsGalleryExample';
|
|
7
|
-
export { default as A2UiContactCardExample } from './A2UiContactCardExample';
|
|
8
|
-
export { default as A2UiRestaurantExample } from './A2UiRestaurantExample';
|
|
9
|
-
export { default as A2UiAgentExample } from './A2UiAgentExample';
|
|
10
|
-
export { default as A2UiViewerExample } from './A2UiViewerExample';
|
|
11
|
-
export { default as LoopShellExample } from './LoopShellExample';
|
|
12
|
-
export { default as LoopWorkspaceExample } from './LoopWorkspaceExample';
|
|
5
|
+
export { default as AgentspecsExample } from './AgentspecsExample.js';
|
|
6
|
+
export { default as A2UiComponentsGalleryExample } from './A2UiComponentsGalleryExample.js';
|
|
7
|
+
export { default as A2UiContactCardExample } from './A2UiContactCardExample.js';
|
|
8
|
+
export { default as A2UiRestaurantExample } from './A2UiRestaurantExample.js';
|
|
9
|
+
export { default as A2UiAgentExample } from './A2UiAgentExample.js';
|
|
10
|
+
export { default as A2UiViewerExample } from './A2UiViewerExample.js';
|
|
11
|
+
export { default as LoopShellExample } from './LoopShellExample.js';
|
|
12
|
+
export { default as LoopWorkspaceExample } from './LoopWorkspaceExample.js';
|
|
13
13
|
// The same workspace with the lazy loading, the preload and the error
|
|
14
14
|
// boundary a host would otherwise write for itself.
|
|
15
|
-
export { default as LoopWorkspaceEmbed, preloadLoopWorkspace, } from './LoopWorkspaceEmbed';
|
|
16
|
-
export { default as A2UiJupyterOutputExample } from './A2UiJupyterOutputExample';
|
|
17
|
-
export { default as AgUiAgenticExample } from './AgUiAgenticExample';
|
|
18
|
-
export { default as AgUiBackendToolRenderingExample } from './AgUiBackendToolRenderingExample';
|
|
19
|
-
export { default as AgUiHaikuGenUiExample } from './AgUiHaikuGenUiExample';
|
|
20
|
-
export { default as AgUiHumanInTheLoopExample } from './AgUiHumanInTheLoopExample';
|
|
21
|
-
export { default as AgUiSharedStateExample } from './AgUiSharedStateExample';
|
|
22
|
-
export { default as AgUiToolsBasedGenUiExample } from './AgUiToolsBasedGenUiExample';
|
|
23
|
-
export { default as CellExample } from './CellExample';
|
|
24
|
-
export { default as AvatarGalleryExample } from './AvatarGalleryExample';
|
|
25
|
-
export { default as ChatStandaloneExample } from './ChatStandaloneExample';
|
|
26
|
-
export { default as CopilotKitLexicalExample } from './CopilotKitLexicalExample';
|
|
27
|
-
export { default as CopilotKitNotebookExample } from './CopilotKitNotebookExample';
|
|
28
|
-
export { default as CustomExample } from './ChatCustomExample';
|
|
29
|
-
export { default as NotebookCollaborationExample } from './NotebookCollaborationExample';
|
|
30
|
-
export { default as AgentCheckpointsExample } from './AgentCheckpointsExample';
|
|
31
|
-
export { default as AgentCompactionExample } from './AgentCompactionExample';
|
|
32
|
-
export { default as AgentCodemodeExample } from './AgentCodemodeExample';
|
|
33
|
-
export { default as AgentCodeSandboxesExample } from './AgentCodeSandboxesExample';
|
|
34
|
-
export { default as AgentDecideExample } from './AgentDecideExample';
|
|
35
|
-
export { default as AgentA2ATeamExample } from './AgentA2ATeamExample';
|
|
36
|
-
export { default as ProtocolSignedRequestsExample } from './ProtocolSignedRequestsExample';
|
|
37
|
-
export { default as ProtocolUcpCheckoutExample } from './ProtocolUcpCheckoutExample';
|
|
38
|
-
export { default as PapCompanyDiscoveryExample } from './PapCompanyDiscoveryExample';
|
|
39
|
-
export { default as PapAgentIdentityExample } from './PapAgentIdentityExample';
|
|
40
|
-
export { default as PapAuthorizationBoundaryExample } from './PapAuthorizationBoundaryExample';
|
|
41
|
-
export { default as PapDpopProofExample } from './PapDpopProofExample';
|
|
42
|
-
export { default as PapSessionLifecycleExample } from './PapSessionLifecycleExample';
|
|
43
|
-
export { default as PapGuidedJourneyExample } from './PapGuidedJourneyExample';
|
|
44
|
-
export { default as PapUserWithACompanyExample } from './PapUserWithACompanyExample';
|
|
45
|
-
export { default as PapTwoCompaniesExample } from './PapTwoCompaniesExample';
|
|
46
|
-
export { default as PapAccountTokensExample } from './PapAccountTokensExample';
|
|
47
|
-
export { default as PapMediatedSignInExample } from './PapMediatedSignInExample';
|
|
48
|
-
export { default as PapConversationStreamingExample } from './PapConversationStreamingExample';
|
|
49
|
-
export { default as PapConversationControlExample } from './PapConversationControlExample';
|
|
50
|
-
export { default as PapOperationsExample } from './PapOperationsExample';
|
|
51
|
-
export { default as PapSignInDisplayExample } from './PapSignInDisplayExample';
|
|
52
|
-
export { default as ScenesExample } from './ScenesExample';
|
|
53
|
-
export { default as AgentEvalsExample } from './AgentEvalsExample';
|
|
54
|
-
export { default as AgentGuardrailsExample } from './AgentGuardrailsExample';
|
|
55
|
-
export { default as AgentHooksExample } from './AgentHooksExample';
|
|
56
|
-
export { default as AgentInferenceProviderExample } from './AgentInferenceProviderExample';
|
|
57
|
-
export { default as LoopStrategyExample } from './LoopStrategyExample';
|
|
58
|
-
export { default as AgentToolApprovalsExample } from './AgentToolApprovalsExample';
|
|
59
|
-
export { default as AgentMemoryExample } from './AgentMemoryExample';
|
|
60
|
-
export { default as AgentOtelExample } from './AgentOtelExample';
|
|
61
|
-
export { default as AgentMCPExample } from './AgentMCPExample';
|
|
62
|
-
export { default as AgentMonitoringExample } from './AgentMonitoringExample';
|
|
63
|
-
export { default as AgentNotificationsExample } from './AgentNotificationsExample';
|
|
64
|
-
export { default as AgentOutputsExample } from './AgentOutputsExample';
|
|
65
|
-
export { default as AgentParametersExample } from './AgentParametersExample';
|
|
66
|
-
export { default as AgentTriggersExample } from './AgentTriggersExample';
|
|
67
|
-
export { default as Lexical2Example } from './Lexical2Example';
|
|
68
|
-
export { default as LexicalAgentExample } from './LexicalAgentExample';
|
|
69
|
-
export { default as LexicalAgentSidebarExample } from './LexicalAgentSidebarExample';
|
|
70
|
-
export { default as NotebookAgentExample } from './NotebookAgentExample';
|
|
71
|
-
export { default as NotebookAgentSidebarExample } from './NotebookAgentSidebarExample';
|
|
72
|
-
export { default as NotebookExample } from './NotebookExample';
|
|
15
|
+
export { default as LoopWorkspaceEmbed, preloadLoopWorkspace, } from './LoopWorkspaceEmbed.js';
|
|
16
|
+
export { default as A2UiJupyterOutputExample } from './A2UiJupyterOutputExample.js';
|
|
17
|
+
export { default as AgUiAgenticExample } from './AgUiAgenticExample.js';
|
|
18
|
+
export { default as AgUiBackendToolRenderingExample } from './AgUiBackendToolRenderingExample.js';
|
|
19
|
+
export { default as AgUiHaikuGenUiExample } from './AgUiHaikuGenUiExample.js';
|
|
20
|
+
export { default as AgUiHumanInTheLoopExample } from './AgUiHumanInTheLoopExample.js';
|
|
21
|
+
export { default as AgUiSharedStateExample } from './AgUiSharedStateExample.js';
|
|
22
|
+
export { default as AgUiToolsBasedGenUiExample } from './AgUiToolsBasedGenUiExample.js';
|
|
23
|
+
export { default as CellExample } from './CellExample.js';
|
|
24
|
+
export { default as AvatarGalleryExample } from './AvatarGalleryExample.js';
|
|
25
|
+
export { default as ChatStandaloneExample } from './ChatStandaloneExample.js';
|
|
26
|
+
export { default as CopilotKitLexicalExample } from './CopilotKitLexicalExample.js';
|
|
27
|
+
export { default as CopilotKitNotebookExample } from './CopilotKitNotebookExample.js';
|
|
28
|
+
export { default as CustomExample } from './ChatCustomExample.js';
|
|
29
|
+
export { default as NotebookCollaborationExample } from './NotebookCollaborationExample.js';
|
|
30
|
+
export { default as AgentCheckpointsExample } from './AgentCheckpointsExample.js';
|
|
31
|
+
export { default as AgentCompactionExample } from './AgentCompactionExample.js';
|
|
32
|
+
export { default as AgentCodemodeExample } from './AgentCodemodeExample.js';
|
|
33
|
+
export { default as AgentCodeSandboxesExample } from './AgentCodeSandboxesExample.js';
|
|
34
|
+
export { default as AgentDecideExample } from './AgentDecideExample.js';
|
|
35
|
+
export { default as AgentA2ATeamExample } from './AgentA2ATeamExample.js';
|
|
36
|
+
export { default as ProtocolSignedRequestsExample } from './ProtocolSignedRequestsExample.js';
|
|
37
|
+
export { default as ProtocolUcpCheckoutExample } from './ProtocolUcpCheckoutExample.js';
|
|
38
|
+
export { default as PapCompanyDiscoveryExample } from './PapCompanyDiscoveryExample.js';
|
|
39
|
+
export { default as PapAgentIdentityExample } from './PapAgentIdentityExample.js';
|
|
40
|
+
export { default as PapAuthorizationBoundaryExample } from './PapAuthorizationBoundaryExample.js';
|
|
41
|
+
export { default as PapDpopProofExample } from './PapDpopProofExample.js';
|
|
42
|
+
export { default as PapSessionLifecycleExample } from './PapSessionLifecycleExample.js';
|
|
43
|
+
export { default as PapGuidedJourneyExample } from './PapGuidedJourneyExample.js';
|
|
44
|
+
export { default as PapUserWithACompanyExample } from './PapUserWithACompanyExample.js';
|
|
45
|
+
export { default as PapTwoCompaniesExample } from './PapTwoCompaniesExample.js';
|
|
46
|
+
export { default as PapAccountTokensExample } from './PapAccountTokensExample.js';
|
|
47
|
+
export { default as PapMediatedSignInExample } from './PapMediatedSignInExample.js';
|
|
48
|
+
export { default as PapConversationStreamingExample } from './PapConversationStreamingExample.js';
|
|
49
|
+
export { default as PapConversationControlExample } from './PapConversationControlExample.js';
|
|
50
|
+
export { default as PapOperationsExample } from './PapOperationsExample.js';
|
|
51
|
+
export { default as PapSignInDisplayExample } from './PapSignInDisplayExample.js';
|
|
52
|
+
export { default as ScenesExample } from './ScenesExample.js';
|
|
53
|
+
export { default as AgentEvalsExample } from './AgentEvalsExample.js';
|
|
54
|
+
export { default as AgentGuardrailsExample } from './AgentGuardrailsExample.js';
|
|
55
|
+
export { default as AgentHooksExample } from './AgentHooksExample.js';
|
|
56
|
+
export { default as AgentInferenceProviderExample } from './AgentInferenceProviderExample.js';
|
|
57
|
+
export { default as LoopStrategyExample } from './LoopStrategyExample.js';
|
|
58
|
+
export { default as AgentToolApprovalsExample } from './AgentToolApprovalsExample.js';
|
|
59
|
+
export { default as AgentMemoryExample } from './AgentMemoryExample.js';
|
|
60
|
+
export { default as AgentOtelExample } from './AgentOtelExample.js';
|
|
61
|
+
export { default as AgentMCPExample } from './AgentMCPExample.js';
|
|
62
|
+
export { default as AgentMonitoringExample } from './AgentMonitoringExample.js';
|
|
63
|
+
export { default as AgentNotificationsExample } from './AgentNotificationsExample.js';
|
|
64
|
+
export { default as AgentOutputsExample } from './AgentOutputsExample.js';
|
|
65
|
+
export { default as AgentParametersExample } from './AgentParametersExample.js';
|
|
66
|
+
export { default as AgentTriggersExample } from './AgentTriggersExample.js';
|
|
67
|
+
export { default as Lexical2Example } from './Lexical2Example.js';
|
|
68
|
+
export { default as LexicalAgentExample } from './LexicalAgentExample.js';
|
|
69
|
+
export { default as LexicalAgentSidebarExample } from './LexicalAgentSidebarExample.js';
|
|
70
|
+
export { default as NotebookAgentExample } from './NotebookAgentExample.js';
|
|
71
|
+
export { default as NotebookAgentSidebarExample } from './NotebookAgentSidebarExample.js';
|
|
72
|
+
export { default as NotebookExample } from './NotebookExample.js';
|
|
@@ -17,7 +17,7 @@ import { AutoFocusExtension } from '@lexical/extension';
|
|
|
17
17
|
import { OverflowExtension } from '@lexical/overflow';
|
|
18
18
|
import { JupyterLexicalExtension } from '@datalayer/jupyter-lexical';
|
|
19
19
|
import { defineExtension } from 'lexical';
|
|
20
|
-
import { lexicalTheme } from './theme';
|
|
20
|
+
import { lexicalTheme } from './theme.js';
|
|
21
21
|
import initialContent from './initial-content.json';
|
|
22
22
|
/**
|
|
23
23
|
* Lexical editor extension
|
package/lib/examples/main.js
CHANGED
|
@@ -15,32 +15,32 @@ import { DatalayerThemeProvider, DatalayerLogoText, getLogoColors, themeConfigs,
|
|
|
15
15
|
// Straight from its module: the components barrel re-exports the
|
|
16
16
|
// code-sandbox gallery and friends, none of which belong in the
|
|
17
17
|
// example gallery's first paint.
|
|
18
|
-
import { AgentSummary } from '../components/agents/AgentSummary';
|
|
18
|
+
import { AgentSummary } from '../components/agents/AgentSummary.js';
|
|
19
19
|
import { HomeIcon, SignInIcon, SignOutIcon } from '@primer/octicons-react';
|
|
20
20
|
import { ActionList, ActionMenu, Button, SegmentedControl, Spinner, Text, TextInput, } from '@primer/react';
|
|
21
21
|
import { AppearanceControlsWithStore } from '@datalayer/primer-addons/lib/components/appearance';
|
|
22
22
|
import { coreStore, iamStore } from '@datalayer/core';
|
|
23
|
-
import { DATALAYER_IAM_TOKEN_KEY, DATALAYER_IAM_USER_KEY, } from '../state/substates';
|
|
23
|
+
import { DATALAYER_IAM_TOKEN_KEY, DATALAYER_IAM_USER_KEY, } from '../state/substates/index.js';
|
|
24
24
|
import { SignInSimple } from '@datalayer/core/lib/views/iam';
|
|
25
25
|
import { UserBadge } from '@datalayer/core/lib/views/profile';
|
|
26
26
|
import { useSimpleAuthStore } from '@datalayer/core/lib/views/otel';
|
|
27
|
-
import { teardownExampleAgents } from './utils/teardownAgents';
|
|
28
|
-
import { OAuthCallback } from '../identity';
|
|
29
|
-
import { EXAMPLES, getExampleEntries, } from './example-selector';
|
|
30
|
-
import { EXAMPLE_GROUP_ORDER, getExampleGroup } from './exampleGroups';
|
|
31
|
-
import { RUNTIME_TARGETS, runtimeTargetCapabilities, runtimeTargetStore, targetHasAgent, useRuntimeTargetStore, } from './utils/runtimeTargetStore';
|
|
32
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
33
|
-
import { isLocalUrl } from './utils/localUrl';
|
|
34
|
-
import { agentSummaryStore } from './utils/agentSummaryStore';
|
|
35
|
-
import { isSandboxOnlyExample } from './utils/exampleSurfaces';
|
|
36
|
-
import { useAgentSummaryStore } from './utils/agentSummaryStore';
|
|
37
|
-
import { useExampleThemeStore } from './utils/themeStore';
|
|
38
|
-
import HomeExample from './HomeExample';
|
|
39
|
-
import { ExampleWrapper } from './components/ExampleWrapper';
|
|
40
|
-
import { ExampleErrorBoundary } from './components/ExampleErrorBoundary';
|
|
41
|
-
import { createServiceManagerFromAgentSandbox } from '../hooks/useAgentRuntimes';
|
|
42
|
-
import { useAgentRuntimes } from '../hooks/useAgentRuntimes';
|
|
43
|
-
import { DEFAULT_MODEL } from '../specs/models';
|
|
27
|
+
import { teardownExampleAgents } from './utils/teardownAgents.js';
|
|
28
|
+
import { OAuthCallback } from '../identity/index.js';
|
|
29
|
+
import { EXAMPLES, getExampleEntries, } from './example-selector.js';
|
|
30
|
+
import { EXAMPLE_GROUP_ORDER, getExampleGroup } from './exampleGroups.js';
|
|
31
|
+
import { RUNTIME_TARGETS, runtimeTargetCapabilities, runtimeTargetStore, targetHasAgent, useRuntimeTargetStore, } from './utils/runtimeTargetStore.js';
|
|
32
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
33
|
+
import { isLocalUrl } from './utils/localUrl.js';
|
|
34
|
+
import { agentSummaryStore } from './utils/agentSummaryStore.js';
|
|
35
|
+
import { isSandboxOnlyExample } from './utils/exampleSurfaces.js';
|
|
36
|
+
import { useAgentSummaryStore } from './utils/agentSummaryStore.js';
|
|
37
|
+
import { useExampleThemeStore } from './utils/themeStore.js';
|
|
38
|
+
import HomeExample from './HomeExample.js';
|
|
39
|
+
import { ExampleWrapper } from './components/ExampleWrapper.js';
|
|
40
|
+
import { ExampleErrorBoundary } from './components/ExampleErrorBoundary.js';
|
|
41
|
+
import { createServiceManagerFromAgentSandbox } from '../hooks/useAgentRuntimes.js';
|
|
42
|
+
import { useAgentRuntimes } from '../hooks/useAgentRuntimes.js';
|
|
43
|
+
import { DEFAULT_MODEL } from '../specs/models.js';
|
|
44
44
|
import nbformatExample from './utils/notebooks/NotebookExample1.ipynb.json';
|
|
45
45
|
import '../../style/primer-primitives.css';
|
|
46
46
|
const DEFAULT_RUNTIMES_URL = 'https://r1.datalayer.run';
|
|
@@ -553,7 +553,7 @@ const NotebookOnlyApp = () => {
|
|
|
553
553
|
// Always try to create collaboration provider if we have token and spacerUrl
|
|
554
554
|
if (configuration?.token && configuration?.spacerUrl) {
|
|
555
555
|
try {
|
|
556
|
-
const { DatalayerCollaborationProvider } = await import('../collaboration/DatalayerCollaborationProvider');
|
|
556
|
+
const { DatalayerCollaborationProvider } = await import('../collaboration/DatalayerCollaborationProvider.js');
|
|
557
557
|
const provider = new DatalayerCollaborationProvider({
|
|
558
558
|
spacerUrl: configuration.spacerUrl,
|
|
559
559
|
token: configuration.token,
|
|
@@ -1090,7 +1090,7 @@ const ExampleAppThemed = ({ selectedExample, isChangingExample, error, ExampleCo
|
|
|
1090
1090
|
return filtered;
|
|
1091
1091
|
}, [exampleMenuGroups, exampleSearch]);
|
|
1092
1092
|
const syncTokenToIamStore = useCallback((newToken) => {
|
|
1093
|
-
import('../state/substates').then(({ iamStore: coreIamStore }) => {
|
|
1093
|
+
import('../state/substates/index.js').then(({ iamStore: coreIamStore }) => {
|
|
1094
1094
|
coreIamStore.setState({ token: newToken });
|
|
1095
1095
|
});
|
|
1096
1096
|
}, []);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PapTraceView, parsePapTrace } from './PapTraceView';
|
|
2
|
+
import { PapTraceView, parsePapTrace } from './PapTraceView.js';
|
|
3
3
|
import trace from './traces/account-tokens.json';
|
|
4
4
|
const TRACE = parsePapTrace(trace);
|
|
5
5
|
const PapAccountTokensView = () => _jsx(PapTraceView, { trace: TRACE });
|
|
@@ -7,8 +7,8 @@ import { useState } from 'react';
|
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Button, Text, TextInput } from '@primer/react';
|
|
9
9
|
import { parseClientMetadata, parseJsonWebKeySet, } from '@datalayer/personal-agent-protocol';
|
|
10
|
-
import { PapPersonalAgentCapability, } from '../../pap';
|
|
11
|
-
import { PapExamplePage, PapResult } from './PapExamplePage';
|
|
10
|
+
import { PapPersonalAgentCapability, } from '../../pap/index.js';
|
|
11
|
+
import { PapExamplePage, PapResult } from './PapExamplePage.js';
|
|
12
12
|
const SAMPLE_CLIENT_ID = 'https://assistant.example/agent.json';
|
|
13
13
|
/** Verify client metadata and JWKS while withholding public-key coordinates. */
|
|
14
14
|
const PapAgentIdentityView = () => {
|
|
@@ -7,7 +7,7 @@ import { useState } from 'react';
|
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Button, Text } from '@primer/react';
|
|
9
9
|
import { buildDirectSignInRequest, buildSessionAssertionClaims, generatePairwiseUserId, } from '@datalayer/personal-agent-protocol';
|
|
10
|
-
import { PapExamplePage, PapResult } from './PapExamplePage';
|
|
10
|
+
import { PapExamplePage, PapResult } from './PapExamplePage.js';
|
|
11
11
|
/** Generate real security material and reveal only its non-secret policy. */
|
|
12
12
|
const PapAuthorizationBoundaryView = () => {
|
|
13
13
|
const [summary, setSummary] = useState(null);
|
|
@@ -7,8 +7,8 @@ import { useState } from 'react';
|
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Button, Text, TextInput } from '@primer/react';
|
|
9
9
|
import { parseDiscoveryDocument, } from '@datalayer/personal-agent-protocol';
|
|
10
|
-
import { PapPersonalAgentCapability } from '../../pap';
|
|
11
|
-
import { PapExamplePage, PapResult } from './PapExamplePage';
|
|
10
|
+
import { PapPersonalAgentCapability } from '../../pap/index.js';
|
|
11
|
+
import { PapExamplePage, PapResult } from './PapExamplePage.js';
|
|
12
12
|
const SAMPLE_DOMAIN = 'shop.example';
|
|
13
13
|
const sampleCompany = (domain) => ({
|
|
14
14
|
discoveryUrl: `https://${domain}/.well-known/poppy.json`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PapTraceView, parsePapTrace } from './PapTraceView';
|
|
2
|
+
import { PapTraceView, parsePapTrace } from './PapTraceView.js';
|
|
3
3
|
import trace from './traces/conversation-control.json';
|
|
4
4
|
const TRACE = parsePapTrace(trace);
|
|
5
5
|
const PapConversationControlView = () => (_jsx(PapTraceView, { trace: TRACE }));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PapTraceView, parsePapTrace } from './PapTraceView';
|
|
2
|
+
import { PapTraceView, parsePapTrace } from './PapTraceView.js';
|
|
3
3
|
import trace from './traces/conversation-streaming.json';
|
|
4
4
|
const TRACE = parsePapTrace(trace);
|
|
5
5
|
const PapConversationStreamingView = () => (_jsx(PapTraceView, { trace: TRACE }));
|
|
@@ -7,7 +7,7 @@ import { useState } from 'react';
|
|
|
7
7
|
import { Box } from '@datalayer/primer-addons';
|
|
8
8
|
import { Button, Text } from '@primer/react';
|
|
9
9
|
import { JoseDpopProofProvider, SecretValue, } from '@datalayer/personal-agent-protocol';
|
|
10
|
-
import { PapExamplePage, PapResult } from './PapExamplePage';
|
|
10
|
+
import { PapExamplePage, PapResult } from './PapExamplePage.js';
|
|
11
11
|
/** Create real device-held proofs while retaining only non-secret evidence. */
|
|
12
12
|
const PapDpopProofView = () => {
|
|
13
13
|
const [summary, setSummary] = useState(null);
|
|
@@ -9,8 +9,8 @@ import { contribution, definePlugin } from '@datalayer/reactor';
|
|
|
9
9
|
import { Button, Heading, IconButton, Label, Text } from '@primer/react';
|
|
10
10
|
import { ChevronLeftIcon, ChevronRightIcon } from '@primer/octicons-react';
|
|
11
11
|
import { ConversationClient, DpopFetchClient, DpopProofProviders, SecretValue, buildPapReactor, buildDirectSignInRequest, buildSessionAssertionClaims, parseDiscoveryDocument, } from '@datalayer/personal-agent-protocol';
|
|
12
|
-
import { ChatMessageList } from '../../chat/messages/ChatMessageList';
|
|
13
|
-
import { PapExamplePage } from './PapExamplePage';
|
|
12
|
+
import { ChatMessageList } from '../../chat/messages/ChatMessageList.js';
|
|
13
|
+
import { PapExamplePage } from './PapExamplePage.js';
|
|
14
14
|
const conversationStart = [
|
|
15
15
|
{
|
|
16
16
|
speaker: 'user',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PapTraceView, parsePapTrace } from './PapTraceView';
|
|
2
|
+
import { PapTraceView, parsePapTrace } from './PapTraceView.js';
|
|
3
3
|
import trace from './traces/mediated-sign-in.json';
|
|
4
4
|
const TRACE = parsePapTrace(trace);
|
|
5
5
|
const PapMediatedSignInView = () => _jsx(PapTraceView, { trace: TRACE });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PapTraceView, parsePapTrace } from './PapTraceView';
|
|
2
|
+
import { PapTraceView, parsePapTrace } from './PapTraceView.js';
|
|
3
3
|
import trace from './traces/operations.json';
|
|
4
4
|
const TRACE = parsePapTrace(trace);
|
|
5
5
|
const PapOperationsView = () => _jsx(PapTraceView, { trace: TRACE });
|
|
@@ -8,7 +8,7 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
8
8
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
9
9
|
import { Button, Text } from '@primer/react';
|
|
10
10
|
import { DpopProofProviders, SecretValue, SessionClient, Signers, buildPapReactor, } from '@datalayer/personal-agent-protocol';
|
|
11
|
-
import { PapExamplePage, PapResult } from './PapExamplePage';
|
|
11
|
+
import { PapExamplePage, PapResult } from './PapExamplePage.js';
|
|
12
12
|
/** Exercise the real Session client and retain only safe lifecycle evidence. */
|
|
13
13
|
const PapSessionLifecycleView = () => {
|
|
14
14
|
const [summary, setSummary] = useState(null);
|
|
@@ -21,8 +21,8 @@ import { Heading, Label, SegmentedControl, Text } from '@primer/react';
|
|
|
21
21
|
import { useReactorPlatform } from '@datalayer/reactor/react';
|
|
22
22
|
import { DISPLAY_META_KEY, resolveToolResult } from '@datalayer/reactor/ui';
|
|
23
23
|
import { ReactorDisplay } from '@datalayer/reactor/ui/react';
|
|
24
|
-
import { PapExamplePage, PapResult } from './PapExamplePage';
|
|
25
|
-
import { PAP_SIGN_IN_CASES, modelRead } from './papSignInCases';
|
|
24
|
+
import { PapExamplePage, PapResult } from './PapExamplePage.js';
|
|
25
|
+
import { PAP_SIGN_IN_CASES, modelRead } from './papSignInCases.js';
|
|
26
26
|
const PapSignInDisplayView = () => {
|
|
27
27
|
const platform = useReactorPlatform();
|
|
28
28
|
const [index, setIndex] = useState(0);
|
|
@@ -16,7 +16,7 @@ import { useEffect, useMemo, useRef, useState } from 'react';
|
|
|
16
16
|
import { Box } from '@datalayer/primer-addons';
|
|
17
17
|
import { Button, Heading, IconButton, Label, Text } from '@primer/react';
|
|
18
18
|
import { ChevronLeftIcon, ChevronRightIcon } from '@primer/octicons-react';
|
|
19
|
-
import { PapExamplePage } from './PapExamplePage';
|
|
19
|
+
import { PapExamplePage } from './PapExamplePage.js';
|
|
20
20
|
/** Refuse a trace that is not shaped like one, rather than render half of it. */
|
|
21
21
|
export function parsePapTrace(value) {
|
|
22
22
|
const trace = value;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PapTraceView, parsePapTrace } from './PapTraceView';
|
|
2
|
+
import { PapTraceView, parsePapTrace } from './PapTraceView.js';
|
|
3
3
|
import trace from './traces/two-companies.json';
|
|
4
4
|
const TRACE = parsePapTrace(trace);
|
|
5
5
|
const PapTwoCompaniesView = () => _jsx(PapTraceView, { trace: TRACE });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { PapTraceView, parsePapTrace } from './PapTraceView';
|
|
2
|
+
import { PapTraceView, parsePapTrace } from './PapTraceView.js';
|
|
3
3
|
import trace from './traces/user-with-a-company.json';
|
|
4
4
|
const TRACE = parsePapTrace(trace);
|
|
5
5
|
const PapUserWithACompanyView = () => _jsx(PapTraceView, { trace: TRACE });
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* credential.
|
|
10
10
|
*/
|
|
11
11
|
import { DISPLAY_META_KEY } from '@datalayer/reactor/ui';
|
|
12
|
-
import { PAP_SIGN_IN_TYPE } from '../../apps/plugins/pap-sign-in';
|
|
12
|
+
import { PAP_SIGN_IN_TYPE } from '../../apps/plugins/pap-sign-in/index.js';
|
|
13
13
|
const EXPIRES_AT = '2026-10-12T12:15:00+00:00';
|
|
14
14
|
const DEVICE_PAGE = 'https://manzanita.example/device?user_code=WDJB-MJHT';
|
|
15
15
|
const DEVICE_CODE = 'WDJB-MJHT';
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @module examples/protocols/signedRequestsDemo
|
|
16
16
|
*/
|
|
17
|
-
import { InMemoryNonceStore, generateLocalSigner, keyResolver, signRequest, verifyRequest, } from '../../protocols/web-bot-auth';
|
|
17
|
+
import { InMemoryNonceStore, generateLocalSigner, keyResolver, signRequest, verifyRequest, } from '../../protocols/web-bot-auth/index.js';
|
|
18
18
|
/** A signer that keeps what it was asked to sign: the signature base. */
|
|
19
19
|
function recording(signer) {
|
|
20
20
|
const bases = [];
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
* @module examples/protocols/ucpCheckoutDemo
|
|
14
14
|
*/
|
|
15
15
|
import { contribution, definePlugin, } from '@datalayer/reactor';
|
|
16
|
-
import { buildProtocolsReactor } from '../../protocols/agentProtocols';
|
|
17
|
-
import { UcpApprovers, UcpClient, UcpPaymentInstruments, checkoutSummary, proposalSummary, } from '../../protocols/ucp';
|
|
18
|
-
import { EXAMPLE_STORE_HANDLER_ID, exampleStore, } from '../../protocols/ucp/merchant';
|
|
16
|
+
import { buildProtocolsReactor } from '../../protocols/agentProtocols.js';
|
|
17
|
+
import { UcpApprovers, UcpClient, UcpPaymentInstruments, checkoutSummary, proposalSummary, } from '../../protocols/ucp/index.js';
|
|
18
|
+
import { EXAMPLE_STORE_HANDLER_ID, exampleStore, } from '../../protocols/ucp/merchant.js';
|
|
19
19
|
export const STORE = 'https://store.example';
|
|
20
20
|
export const AGENT_PROFILE = 'https://agent.example/.well-known/ucp';
|
|
21
21
|
/** The test payment's token: held by the host, never in a summary or a proposal. */
|
|
@@ -11,11 +11,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
12
12
|
import { Box } from '@datalayer/primer-addons';
|
|
13
13
|
import { Button, SegmentedControl, Text } from '@primer/react';
|
|
14
|
-
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui';
|
|
14
|
+
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui/index.js';
|
|
15
15
|
import { basicCatalog } from '@a2ui/react/v0_9';
|
|
16
|
-
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider';
|
|
17
|
-
import { createSceneMessages, useA2uiProcessor } from '../utils/a2ui';
|
|
18
|
-
import { useExampleAgentRuntimesUrl } from '../utils/useExampleAgentRuntimesUrl';
|
|
16
|
+
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider.js';
|
|
17
|
+
import { createSceneMessages, useA2uiProcessor } from '../utils/a2ui.js';
|
|
18
|
+
import { useExampleAgentRuntimesUrl } from '../utils/useExampleAgentRuntimesUrl.js';
|
|
19
19
|
const extractA2uiMessages = (parts) => {
|
|
20
20
|
const messages = [];
|
|
21
21
|
parts.forEach(part => {
|
|
@@ -11,9 +11,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
12
12
|
import { Box } from '@datalayer/primer-addons';
|
|
13
13
|
import { Button, Text } from '@primer/react';
|
|
14
|
-
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui';
|
|
15
|
-
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider';
|
|
16
|
-
import { createSceneMessages, useA2uiProcessor } from '../utils/a2ui';
|
|
14
|
+
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui/index.js';
|
|
15
|
+
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider.js';
|
|
16
|
+
import { createSceneMessages, useA2uiProcessor } from '../utils/a2ui.js';
|
|
17
17
|
const CONTACT_SURFACE_ID = 'contact-card-v09';
|
|
18
18
|
const CONTACT_CARD_MESSAGES = createSceneMessages({
|
|
19
19
|
surfaceId: CONTACT_SURFACE_ID,
|
|
@@ -11,12 +11,12 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
12
12
|
import { Box, getCardGradient } from '@datalayer/primer-addons';
|
|
13
13
|
import { Text, Spinner, TextInput, Button } from '@primer/react';
|
|
14
|
-
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui';
|
|
14
|
+
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui/index.js';
|
|
15
15
|
import { basicCatalog } from '@a2ui/react/v0_9';
|
|
16
|
-
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider';
|
|
17
|
-
import { useExampleThemeStore } from '../utils/themeStore';
|
|
18
|
-
import { useA2uiProcessor } from '../utils/a2ui';
|
|
19
|
-
import { useExampleAgentRuntimesUrl } from '../utils/useExampleAgentRuntimesUrl';
|
|
16
|
+
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider.js';
|
|
17
|
+
import { useExampleThemeStore } from '../utils/themeStore.js';
|
|
18
|
+
import { useA2uiProcessor } from '../utils/a2ui.js';
|
|
19
|
+
import { useExampleAgentRuntimesUrl } from '../utils/useExampleAgentRuntimesUrl.js';
|
|
20
20
|
const LOADING_TEXT_LINES = [
|
|
21
21
|
'Finding the best spots for you...',
|
|
22
22
|
'Checking reviews...',
|
|
@@ -11,9 +11,9 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
11
11
|
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
12
12
|
import { Box } from '@datalayer/primer-addons';
|
|
13
13
|
import { SegmentedControl, Text } from '@primer/react';
|
|
14
|
-
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui';
|
|
15
|
-
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider';
|
|
16
|
-
import { createSceneMessages, useA2uiProcessor } from '../utils/a2ui';
|
|
14
|
+
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed, } from '../../components/a2ui/index.js';
|
|
15
|
+
import { A2uiMarkdownProvider } from '../utils/a2uiMarkdownProvider.js';
|
|
16
|
+
import { createSceneMessages, useA2uiProcessor } from '../utils/a2ui.js';
|
|
17
17
|
const SCENES = [
|
|
18
18
|
{
|
|
19
19
|
id: 'recipe',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { JSX, ReactNode } from 'react';
|
|
2
2
|
import type { AssistantCharacter } from '../../chat/assistant/characters';
|
|
3
3
|
import type { AssistantCharacterData } from '../../chat/assistant/formats/types';
|
|
4
|
-
import { type AssistantModel3D } from '../../chat/assistant/
|
|
4
|
+
import { type AssistantModel3D } from '../../chat/assistant/avatar3dModel';
|
|
5
5
|
import { type GalleryPose } from './avatarGallery';
|
|
6
6
|
/** A character of the gallery: by id, with its name, as contributed. */
|
|
7
7
|
export interface GalleryCharacter {
|
|
@@ -3,14 +3,14 @@ import { useEffect, useRef, useState } from 'react';
|
|
|
3
3
|
import { Text } from '@primer/react';
|
|
4
4
|
import { Box } from '@datalayer/primer-addons';
|
|
5
5
|
import { buildReactorFromPlugins } from '@datalayer/reactor';
|
|
6
|
-
import { AssistantStage } from '../../chat/assistant/AssistantStage';
|
|
7
|
-
import { assistantModel3D, } from '../../chat/assistant/
|
|
8
|
-
import { AssistantCharactersPlugin, assistantCharactersOf, } from '../../apps/plugins/assistant-characters';
|
|
9
|
-
import { OWL_CHARACTER, OwlCharacterPlugin } from './owlCharacterPlugin';
|
|
10
|
-
import { NotebookPreview } from '../../components/teams/NotebookPreview';
|
|
11
|
-
import { notebookBalloonVisual } from '../../components/teams/TeamNotebook';
|
|
12
|
-
import { readTestSpriteCharacter } from './testSpriteCharacter';
|
|
13
|
-
import { GALLERY_POSES, GALLERY_POSE_LABELS, SAMPLE_NOTEBOOK, SAMPLE_NOTEBOOK_ARTIFACT, SAMPLE_NOTEBOOK_SAYING, sampleHistory, sampleSaying, sampleToolLine, stateOfPose, } from './avatarGallery';
|
|
6
|
+
import { AssistantStage } from '../../chat/assistant/AssistantStage.js';
|
|
7
|
+
import { assistantModel3D, } from '../../chat/assistant/avatar3dModel.js';
|
|
8
|
+
import { AssistantCharactersPlugin, assistantCharactersOf, } from '../../apps/plugins/assistant-characters/index.js';
|
|
9
|
+
import { OWL_CHARACTER, OwlCharacterPlugin } from './owlCharacterPlugin.js';
|
|
10
|
+
import { NotebookPreview } from '../../components/teams/NotebookPreview.js';
|
|
11
|
+
import { notebookBalloonVisual } from '../../components/teams/TeamNotebook.js';
|
|
12
|
+
import { readTestSpriteCharacter } from './testSpriteCharacter.js';
|
|
13
|
+
import { GALLERY_POSES, GALLERY_POSE_LABELS, SAMPLE_NOTEBOOK, SAMPLE_NOTEBOOK_ARTIFACT, SAMPLE_NOTEBOOK_SAYING, sampleHistory, sampleSaying, sampleToolLine, stateOfPose, } from './avatarGallery.js';
|
|
14
14
|
/**
|
|
15
15
|
* The 3D avatar, the default robot: three.js, loaded when it is drawn. Each
|
|
16
16
|
* one drawn is a WebGL context of its own, of which a page has few: shown
|
|
@@ -6,7 +6,7 @@ import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
|
6
6
|
import { basicCatalog, } from '@a2ui/react/v0_9';
|
|
7
7
|
import { MessageProcessor, } from '@a2ui/web_core/v0_9';
|
|
8
8
|
import { themeConfigs, } from '@datalayer/primer-addons';
|
|
9
|
-
import { useExampleThemeStore } from './themeStore';
|
|
9
|
+
import { useExampleThemeStore } from './themeStore.js';
|
|
10
10
|
function resolveColorMode(mode) {
|
|
11
11
|
if (mode === 'dark') {
|
|
12
12
|
return 'dark';
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
*/
|
|
5
5
|
// Moved into the library, beside the surface components: the loop's own
|
|
6
6
|
// surface plugin needs the same context the examples had.
|
|
7
|
-
export { A2uiMarkdownProvider } from '../../components/a2ui';
|
|
7
|
+
export { A2uiMarkdownProvider } from '../../components/a2ui/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 { toolLineText, } from '../../chat/assistant/toolLine';
|
|
6
|
-
import { ASSISTANT_WORDS, latestSaying, } from '../../chat/assistant/state';
|
|
5
|
+
import { toolLineText, } from '../../chat/assistant/toolLine.js';
|
|
6
|
+
import { ASSISTANT_WORDS, latestSaying, } from '../../chat/assistant/state.js';
|
|
7
7
|
/** Every state, in the order an assistant lives them, then stepped aside. */
|
|
8
8
|
export const GALLERY_POSES = [
|
|
9
9
|
'idle',
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* @module examples/utils/clippyJsCharacters
|
|
21
21
|
*/
|
|
22
22
|
import { useEffect, useState } from 'react';
|
|
23
|
-
import { readClippyCharacter } from '../../chat/assistant/formats/clippy';
|
|
23
|
+
import { readClippyCharacter } from '../../chat/assistant/formats/clippy.js';
|
|
24
24
|
/** The version of `clippyjs` the characters are read from. */
|
|
25
25
|
export const CLIPPY_JS_VERSION = '0.1.0';
|
|
26
26
|
const BASE = `https://cdn.jsdelivr.net/npm/clippyjs@${CLIPPY_JS_VERSION}/dist/agents`;
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { createStore } from 'zustand/vanilla';
|
|
6
6
|
import { useStore } from 'zustand';
|
|
7
|
-
import { listPersonas } from '../../specs/personas';
|
|
7
|
+
import { listPersonas } from '../../specs/personas.js';
|
|
8
8
|
const DEFAULT_PRESENTATION = {
|
|
9
9
|
author: 'Datalayer',
|
|
10
10
|
lastEdited: 'just now',
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo } from 'react';
|
|
3
3
|
import { KernelIndicator, NOTEBOOK_TOOLBAR_ITEM_ORDERS, NotebookToolbar, useNotebookStore, } from '@datalayer/jupyter-react';
|
|
4
|
-
import { useThemeBrandColor } from './themedProvider';
|
|
4
|
+
import { useThemeBrandColor } from './themedProvider.js';
|
|
5
5
|
/** Trailing edge of the toolbar: past the last item the notebook contributes. */
|
|
6
6
|
const KERNEL_INDICATOR_ORDER = NOTEBOOK_TOOLBAR_ITEM_ORDERS.cellType + 100;
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { contribution, definePlugin } from '@datalayer/reactor';
|
|
3
|
-
import { LoopAssistantCharacter } from '../../apps/core';
|
|
3
|
+
import { LoopAssistantCharacter } from '../../apps/core/index.js';
|
|
4
4
|
const OWL = {
|
|
5
5
|
light: {
|
|
6
6
|
feathers: '#8A5A3C',
|
|
@@ -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 { agentRuntimeStore, useChatStore, useConversationStore, } from '../../stores';
|
|
5
|
+
import { agentRuntimeStore, useChatStore, useConversationStore, } from '../../stores/index.js';
|
|
6
6
|
/**
|
|
7
7
|
* Tear down server-side agents created by examples and wipe in-process agent
|
|
8
8
|
* state so a fresh example / runtime target boots with a clean slate.
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @module examples/utils/testSpriteCharacter
|
|
18
18
|
*/
|
|
19
|
-
import { readClippyCharacter } from '../../chat/assistant/formats/clippy';
|
|
19
|
+
import { readClippyCharacter } from '../../chat/assistant/formats/clippy.js';
|
|
20
20
|
/** The character's `agent.js`, as clippy.js registers one. */
|
|
21
21
|
export const TEST_SPRITE_AGENT_JS = `
|
|
22
22
|
clippy.ready('Pixel', {
|