@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
|
@@ -15,15 +15,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
*/
|
|
16
16
|
import { useMemo } from 'react';
|
|
17
17
|
import { Box, setupPrimerPortals } from '@datalayer/primer-addons';
|
|
18
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
19
|
-
import { LoopEmbed } from '../apps';
|
|
20
|
-
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene';
|
|
18
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
19
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
20
|
+
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene/index.js';
|
|
21
21
|
setupPrimerPortals();
|
|
22
22
|
const ScenePlugin = defineA2uiScenePlugin({
|
|
23
23
|
key: 'components-gallery',
|
|
24
24
|
title: 'A2UI Components Gallery',
|
|
25
25
|
description: 'Every A2UI component, rendered from canned protocol messages.',
|
|
26
|
-
load: () => import('./scenes/A2UiComponentsGalleryScene'),
|
|
26
|
+
load: () => import('./scenes/A2UiComponentsGalleryScene.js'),
|
|
27
27
|
});
|
|
28
28
|
const A2UiComponentsGalleryExample = () => {
|
|
29
29
|
const plugins = useMemo(() => [ScenePlugin], []);
|
|
@@ -15,15 +15,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
*/
|
|
16
16
|
import { useMemo } from 'react';
|
|
17
17
|
import { Box, setupPrimerPortals } from '@datalayer/primer-addons';
|
|
18
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
19
|
-
import { LoopEmbed } from '../apps';
|
|
20
|
-
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene';
|
|
18
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
19
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
20
|
+
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene/index.js';
|
|
21
21
|
setupPrimerPortals();
|
|
22
22
|
const ScenePlugin = defineA2uiScenePlugin({
|
|
23
23
|
key: 'contact-card',
|
|
24
24
|
title: 'A2UI Contact Card',
|
|
25
25
|
description: 'A canned A2UI contact card: MessageProcessor + surface, native protocol messages.',
|
|
26
|
-
load: () => import('./scenes/A2UiContactCardScene'),
|
|
26
|
+
load: () => import('./scenes/A2UiContactCardScene.js'),
|
|
27
27
|
});
|
|
28
28
|
const A2UiContactCardExample = () => {
|
|
29
29
|
const plugins = useMemo(() => [ScenePlugin], []);
|
|
@@ -4,17 +4,17 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
4
4
|
import { Button, Label, SegmentedControl, Spinner, Text, } from '@primer/react';
|
|
5
5
|
import { PlayIcon } from '@primer/octicons-react';
|
|
6
6
|
import { Output, OutputIPyWidgets } from '@datalayer/jupyter-react';
|
|
7
|
-
import { LoopEmbed } from '../apps';
|
|
8
|
-
import { AgentA2uiJupyterOutputPlugin } from '../apps/plugins/agent-a2ui-jupyter-output';
|
|
9
|
-
import { createChatExtrasPlugin } from '../apps/plugins/chat-extras';
|
|
10
|
-
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed } from '../components/a2ui';
|
|
11
|
-
import { ThemedJupyterProvider, ThemedProvider } from './utils/themedProvider';
|
|
12
|
-
import { A2uiMarkdownProvider } from './utils/a2uiMarkdownProvider';
|
|
13
|
-
import { useA2uiProcessor } from './utils/a2ui';
|
|
14
|
-
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime';
|
|
15
|
-
import { createToolRenderersPlugin } from './hooks/useToolRenderers';
|
|
16
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
17
|
-
import { useRuntimeTarget } from './utils/runtimeTargetStore';
|
|
7
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
8
|
+
import { AgentA2uiJupyterOutputPlugin } from '../apps/plugins/agent-a2ui-jupyter-output/index.js';
|
|
9
|
+
import { createChatExtrasPlugin } from '../apps/plugins/chat-extras/index.js';
|
|
10
|
+
import { A2UI_RENDER_SCOPE_SX, A2uiSurfaceComposed } from '../components/a2ui/index.js';
|
|
11
|
+
import { ThemedJupyterProvider, ThemedProvider } from './utils/themedProvider.js';
|
|
12
|
+
import { A2uiMarkdownProvider } from './utils/a2uiMarkdownProvider.js';
|
|
13
|
+
import { useA2uiProcessor } from './utils/a2ui.js';
|
|
14
|
+
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime.js';
|
|
15
|
+
import { createToolRenderersPlugin } from './hooks/useToolRenderers.js';
|
|
16
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
17
|
+
import { useRuntimeTarget } from './utils/runtimeTargetStore.js';
|
|
18
18
|
const EXAMPLE_ID = 'A2UiJupyterOutputExample';
|
|
19
19
|
const AGENT_NAME = 'a2ui-jupyter-output';
|
|
20
20
|
const AGENTSPEC_ID = 'example-a2ui-jupyter-output';
|
|
@@ -15,15 +15,15 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
15
15
|
*/
|
|
16
16
|
import { useMemo } from 'react';
|
|
17
17
|
import { Box, setupPrimerPortals } from '@datalayer/primer-addons';
|
|
18
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
19
|
-
import { LoopEmbed } from '../apps';
|
|
20
|
-
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene';
|
|
18
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
19
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
20
|
+
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene/index.js';
|
|
21
21
|
setupPrimerPortals();
|
|
22
22
|
const ScenePlugin = defineA2uiScenePlugin({
|
|
23
23
|
key: 'restaurant',
|
|
24
24
|
title: 'A2UI Restaurant',
|
|
25
25
|
description: 'A restaurant-booking A2UI scene rendered from protocol messages.',
|
|
26
|
-
load: () => import('./scenes/A2UiRestaurantScene'),
|
|
26
|
+
load: () => import('./scenes/A2UiRestaurantScene.js'),
|
|
27
27
|
});
|
|
28
28
|
const A2UiRestaurantExample = () => {
|
|
29
29
|
const plugins = useMemo(() => [ScenePlugin], []);
|
|
@@ -22,17 +22,17 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
22
22
|
*/
|
|
23
23
|
import { useMemo } from 'react';
|
|
24
24
|
import { Box, setupPrimerPortals } from '@datalayer/primer-addons';
|
|
25
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
26
|
-
import { LoopEmbed } from '../apps';
|
|
27
|
-
import { useRuntimeTargetStore } from './utils/runtimeTargetStore';
|
|
28
|
-
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
29
|
-
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene';
|
|
25
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
26
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
27
|
+
import { useRuntimeTargetStore } from './utils/runtimeTargetStore.js';
|
|
28
|
+
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
29
|
+
import { defineA2uiScenePlugin } from '../apps/plugins/a2ui-scene/index.js';
|
|
30
30
|
setupPrimerPortals();
|
|
31
31
|
const ScenePlugin = defineA2uiScenePlugin({
|
|
32
32
|
key: 'viewer',
|
|
33
33
|
title: 'A2UI Viewer',
|
|
34
34
|
description: 'Paste A2UI protocol messages and watch the surface they describe.',
|
|
35
|
-
load: () => import('./scenes/A2UiViewerScene'),
|
|
35
|
+
load: () => import('./scenes/A2UiViewerScene.js'),
|
|
36
36
|
});
|
|
37
37
|
const AGENTSPEC_ID = 'example-a2ui-viewer';
|
|
38
38
|
const A2UiViewerExample = () => {
|
|
@@ -17,10 +17,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
17
17
|
import { useMemo } from 'react';
|
|
18
18
|
import { Spinner, Text } from '@primer/react';
|
|
19
19
|
import { Box } from '@datalayer/primer-addons';
|
|
20
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
21
|
-
import { ChatFloating } from '../chat';
|
|
22
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
23
|
-
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime';
|
|
20
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
21
|
+
import { ChatFloating } from '../chat/index.js';
|
|
22
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
23
|
+
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime.js';
|
|
24
24
|
/**
|
|
25
25
|
* AgUiAgenticExample Component
|
|
26
26
|
*
|
|
@@ -18,12 +18,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
18
18
|
import { useCallback, useMemo } from 'react';
|
|
19
19
|
import { Text } from '@primer/react';
|
|
20
20
|
import { Box } from '@datalayer/primer-addons';
|
|
21
|
-
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider';
|
|
22
|
-
import { ChatFloating } from '../chat';
|
|
23
|
-
import { InlineWeatherCard } from './components/weather';
|
|
24
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
25
|
-
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime';
|
|
26
|
-
import { useSpecToolRenderers, specRendererClassName, } from './hooks/useToolRenderers';
|
|
21
|
+
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider.js';
|
|
22
|
+
import { ChatFloating } from '../chat/index.js';
|
|
23
|
+
import { InlineWeatherCard } from './components/weather/index.js';
|
|
24
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
25
|
+
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime.js';
|
|
26
|
+
import { useSpecToolRenderers, specRendererClassName, } from './hooks/useToolRenderers.js';
|
|
27
27
|
/**
|
|
28
28
|
* Renderers for this example, keyed by the spec's renderer id. The tool name to
|
|
29
29
|
* match and the CSS file to load come from the agent spec, not from this file.
|
|
@@ -19,12 +19,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
19
19
|
import { useState, useMemo, useRef, useImperativeHandle, forwardRef, } from 'react';
|
|
20
20
|
import { Text } from '@primer/react';
|
|
21
21
|
import { Box } from '@datalayer/primer-addons';
|
|
22
|
-
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider';
|
|
23
|
-
import { ChatFloating } from '../chat';
|
|
24
|
-
import { InlineHaikuCard, HaikuDisplay, } from './components/haiku';
|
|
25
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
26
|
-
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime';
|
|
27
|
-
import { useSpecToolRenderers, specRendererClassName, } from './hooks/useToolRenderers';
|
|
22
|
+
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider.js';
|
|
23
|
+
import { ChatFloating } from '../chat/index.js';
|
|
24
|
+
import { InlineHaikuCard, HaikuDisplay, } from './components/haiku/index.js';
|
|
25
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
26
|
+
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime.js';
|
|
27
|
+
import { useSpecToolRenderers, specRendererClassName, } from './hooks/useToolRenderers.js';
|
|
28
28
|
/**
|
|
29
29
|
* HaikuDisplayWithRef - A display component that exposes a ref for external control.
|
|
30
30
|
*
|
|
@@ -19,11 +19,11 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
19
19
|
import { useState, useEffect, useMemo } from 'react';
|
|
20
20
|
import { Text, Checkbox, FormControl, Label, ProgressBar, Button, } from '@primer/react';
|
|
21
21
|
import { Box } from '@datalayer/primer-addons';
|
|
22
|
-
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider';
|
|
23
|
-
import { ChatFloating } from '../chat';
|
|
24
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
25
|
-
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime';
|
|
26
|
-
import { useToolRenderers } from './hooks/useToolRenderers';
|
|
22
|
+
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider.js';
|
|
23
|
+
import { ChatFloating } from '../chat/index.js';
|
|
24
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
25
|
+
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime.js';
|
|
26
|
+
import { useToolRenderers } from './hooks/useToolRenderers.js';
|
|
27
27
|
import { TasklistIcon, CheckCircleFillIcon, XCircleFillIcon, } from '@primer/octicons-react';
|
|
28
28
|
/**
|
|
29
29
|
* StepsFeedback Component
|
|
@@ -15,10 +15,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
import { useState, useCallback, useMemo } from 'react';
|
|
16
16
|
import { Text, Button, TextInput, Label } from '@primer/react';
|
|
17
17
|
import { Box } from '@datalayer/primer-addons';
|
|
18
|
-
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider';
|
|
19
|
-
import { ChatFloating } from '../chat';
|
|
20
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
21
|
-
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime';
|
|
18
|
+
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider.js';
|
|
19
|
+
import { ChatFloating } from '../chat/index.js';
|
|
20
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
21
|
+
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime.js';
|
|
22
22
|
import { PlusIcon, XIcon, BeakerIcon, ClockIcon, PersonIcon, } from '@primer/octicons-react';
|
|
23
23
|
const DEFAULT_RECIPE = {
|
|
24
24
|
title: '',
|
|
@@ -15,10 +15,10 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
15
15
|
import { useState, useCallback, useMemo } from 'react';
|
|
16
16
|
import { Text, ProgressBar, Button } from '@primer/react';
|
|
17
17
|
import { Box } from '@datalayer/primer-addons';
|
|
18
|
-
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider';
|
|
19
|
-
import { ChatFloating } from '../chat';
|
|
20
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
21
|
-
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime';
|
|
18
|
+
import { ThemedProvider, useThemeBrandColor } from './utils/themedProvider.js';
|
|
19
|
+
import { ChatFloating } from '../chat/index.js';
|
|
20
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
21
|
+
import { useExampleAgentRuntime } from './hooks/useExampleAgentRuntime.js';
|
|
22
22
|
import { CheckCircleIcon, CircleIcon, DotFillIcon, CheckIcon, XIcon, } from '@primer/octicons-react';
|
|
23
23
|
/**
|
|
24
24
|
* PlanStepItem Component
|
|
@@ -22,13 +22,13 @@ import { useMemo } from 'react';
|
|
|
22
22
|
import { Heading, Label } from '@primer/react';
|
|
23
23
|
import { BroadcastIcon } from '@primer/octicons-react';
|
|
24
24
|
import { Box } from '@datalayer/primer-addons';
|
|
25
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
26
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
27
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
28
|
-
import { LoopEmbed } from '../apps';
|
|
29
|
-
import { AgentA2APlugin } from '../apps/plugins/agent-a2a';
|
|
30
|
-
import { A2ASidebarPlugin } from '../apps/plugins/a2a-sidebar';
|
|
31
|
-
import { getAgentspecs } from '../specs/agents';
|
|
25
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
26
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
27
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
28
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
29
|
+
import { AgentA2APlugin } from '../apps/plugins/agent-a2a/index.js';
|
|
30
|
+
import { A2ASidebarPlugin } from '../apps/plugins/a2a-sidebar/index.js';
|
|
31
|
+
import { getAgentspecs } from '../specs/agents/index.js';
|
|
32
32
|
const AGENT_NAME = 'a2a-example-agent';
|
|
33
33
|
const AGENTSPEC_ID = 'example-a2a';
|
|
34
34
|
/** The agents the orchestrator reaches over A2A, from its spec. */
|
|
@@ -53,22 +53,22 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
53
53
|
* `VITE_A2A_ACCOUNTING_KEY`, which `examples/sales-accounting-a2a/make_temp_key.py`
|
|
54
54
|
* writes to `.env.local`, never committed.
|
|
55
55
|
*/
|
|
56
|
-
import { avatarShown } from '../chat/assistant/
|
|
56
|
+
import { avatarShown } from '../chat/assistant/avatar3dModel.js';
|
|
57
57
|
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
58
58
|
import { Button, Flash, Heading, Text, Textarea } from '@primer/react';
|
|
59
59
|
import { Box } from '@datalayer/primer-addons';
|
|
60
60
|
import { AnonymousKeyExpired } from '@datalayer/core/lib/components/anonymous/AnonymousKeyExpired';
|
|
61
61
|
import { AnonymousKeyTimer } from '@datalayer/core/lib/components/anonymous/AnonymousKeyTimer';
|
|
62
62
|
import { Streamdown } from 'streamdown';
|
|
63
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
64
|
-
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
65
|
-
import { useBrowserInference } from '../hooks/useBrowserInference';
|
|
66
|
-
import { readJwtClaims, tokenLifetimeMs, useAnonymousSessionStore, } from '../runtimes/browser/anonymousToken';
|
|
67
|
-
import { connectA2APeer } from '../runtimes/browser/a2aPeer';
|
|
68
|
-
import { A2ATeamGraph, SceneView, NOTEBOOK_AND_WORDS, teamConnectionsOf, teamToolClassifier, useA2ATeam, usePeerSandbox, } from '../components/teams';
|
|
69
|
-
import { APP_CATALOGUE } from '../specs/apps';
|
|
70
|
-
import { AgentInspector, classifyToolCall, traceA2AFetch, useAgentInspector, } from '../components/inspector';
|
|
71
|
-
import { TEAM_SPECS } from '../specs/teams/teams';
|
|
63
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
64
|
+
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
65
|
+
import { useBrowserInference } from '../hooks/useBrowserInference.js';
|
|
66
|
+
import { readJwtClaims, tokenLifetimeMs, useAnonymousSessionStore, } from '../runtimes/browser/anonymousToken.js';
|
|
67
|
+
import { connectA2APeer } from '../runtimes/browser/a2aPeer.js';
|
|
68
|
+
import { A2ATeamGraph, SceneView, NOTEBOOK_AND_WORDS, teamConnectionsOf, teamToolClassifier, useA2ATeam, usePeerSandbox, } from '../components/teams/index.js';
|
|
69
|
+
import { APP_CATALOGUE } from '../specs/apps.js';
|
|
70
|
+
import { AgentInspector, classifyToolCall, traceA2AFetch, useAgentInspector, } from '../components/inspector/index.js';
|
|
71
|
+
import { TEAM_SPECS } from '../specs/teams/teams.js';
|
|
72
72
|
// By id, never by the version-named constants: a version bump touches no caller.
|
|
73
73
|
const TEAM = TEAM_SPECS['sales-and-accounting'];
|
|
74
74
|
const SALES = APP_CATALOGUE['sales'];
|
|
@@ -24,19 +24,19 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
|
24
24
|
import { Text, Button, IconButton, Spinner, Label, Flash, Heading, Tooltip, } from '@primer/react';
|
|
25
25
|
import { AlertIcon, PlayIcon, SquareIcon, HistoryIcon, CheckCircleIcon, XCircleIcon, ClockIcon, TagIcon, GlobeIcon, ZapIcon, GraphIcon, AiModelIcon, PeopleIcon, SidebarCollapseIcon, SidebarExpandIcon, SyncIcon, AgentIcon, VersionsIcon, } from '@primer/octicons-react';
|
|
26
26
|
import { Box } from '@datalayer/primer-addons';
|
|
27
|
-
import { AuthRequiredView, ErrorView } from './components';
|
|
28
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
27
|
+
import { AuthRequiredView, ErrorView } from './components/index.js';
|
|
28
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
29
29
|
import { useSimpleAuthStore } from '@datalayer/core/lib/views/otel';
|
|
30
|
-
import { LoopEmbed } from '../apps';
|
|
31
|
-
import { AgentCheckpointsPlugin } from '../apps/plugins/agent-checkpoints';
|
|
32
|
-
import { CheckpointsSidebarPlugin } from '../apps/plugins/checkpoints-sidebar';
|
|
33
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
34
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
35
|
-
import { useRuntimeTargetStore } from './utils/runtimeTargetStore';
|
|
36
|
-
import { useAgentsRuntimes, useAgentRuntimesQuery, useRefreshAgentRuntimes, } from '../hooks/useAgentRuntimes';
|
|
37
|
-
import { useExampleAgentRuntimes as useAgentRuntimes } from './hooks/useExampleAgentRuntimes';
|
|
38
|
-
import { useAgentLifecycle } from '../hooks/useCheckpoints';
|
|
39
|
-
import { AGENT_STATUS_COLORS } from '../types/agents';
|
|
30
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
31
|
+
import { AgentCheckpointsPlugin } from '../apps/plugins/agent-checkpoints/index.js';
|
|
32
|
+
import { CheckpointsSidebarPlugin } from '../apps/plugins/checkpoints-sidebar/index.js';
|
|
33
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
34
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
35
|
+
import { useRuntimeTargetStore } from './utils/runtimeTargetStore.js';
|
|
36
|
+
import { useAgentsRuntimes, useAgentRuntimesQuery, useRefreshAgentRuntimes, } from '../hooks/useAgentRuntimes.js';
|
|
37
|
+
import { useExampleAgentRuntimes as useAgentRuntimes } from './hooks/useExampleAgentRuntimes.js';
|
|
38
|
+
import { useAgentLifecycle } from '../hooks/useCheckpoints.js';
|
|
39
|
+
import { AGENT_STATUS_COLORS } from '../types/agents.js';
|
|
40
40
|
const LOOP_PLUGINS_AGENTCHE = [AgentCheckpointsPlugin];
|
|
41
41
|
const queryClient = new QueryClient();
|
|
42
42
|
// ─── Defaults ──────────────────────────────────────────────────────────────
|
|
@@ -333,7 +333,7 @@ const RuntimeCheckpointsExample = () => {
|
|
|
333
333
|
useEffect(() => {
|
|
334
334
|
if (token && !hasSynced.current) {
|
|
335
335
|
hasSynced.current = true;
|
|
336
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
336
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
337
337
|
iamStore.setState({ token });
|
|
338
338
|
});
|
|
339
339
|
}
|
|
@@ -343,7 +343,7 @@ const RuntimeCheckpointsExample = () => {
|
|
|
343
343
|
const handleLogout = useCallback(() => {
|
|
344
344
|
clearAuth();
|
|
345
345
|
hasSynced.current = false;
|
|
346
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
346
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
347
347
|
iamStore.setState({ token: undefined });
|
|
348
348
|
});
|
|
349
349
|
}, [clearAuth]);
|
|
@@ -22,12 +22,12 @@ import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
|
22
22
|
import { Box } from '@datalayer/primer-addons';
|
|
23
23
|
import { Button, Flash, Heading, Label, SegmentedControl, Spinner, Text, } from '@primer/react';
|
|
24
24
|
import { CodeIcon, CodespacesIcon, StopIcon, TerminalIcon, } from '@primer/octicons-react';
|
|
25
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
26
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
27
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
28
|
-
import { LoopEmbed } from '../apps';
|
|
29
|
-
import { AgentCodeSandboxPlugin } from '../apps/plugins/agent-code-sandbox';
|
|
30
|
-
import { SANDBOX_STATUS_COLORS, SANDBOX_STATUS_LABELS } from '../types/sandbox';
|
|
25
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
26
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
27
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
28
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
29
|
+
import { AgentCodeSandboxPlugin } from '../apps/plugins/agent-code-sandbox/index.js';
|
|
30
|
+
import { SANDBOX_STATUS_COLORS, SANDBOX_STATUS_LABELS } from '../types/sandbox.js';
|
|
31
31
|
// ─── Constants ─────────────────────────────────────────────────────────────
|
|
32
32
|
const AGENT_NAME = 'code-sandbox-example-agent';
|
|
33
33
|
const VARIANTS = ['eval', 'jupyter-server'];
|
|
@@ -18,11 +18,11 @@ import { useMemo, useState } from 'react';
|
|
|
18
18
|
import { Box } from '@datalayer/primer-addons';
|
|
19
19
|
import { Button, Heading, Label, Text } from '@primer/react';
|
|
20
20
|
import { CodespacesIcon, SyncIcon } from '@primer/octicons-react';
|
|
21
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
22
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
23
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
24
|
-
import { LoopEmbed } from '../apps';
|
|
25
|
-
import { SANDBOX_CAPACITIES, SandboxCapacityPlugins, } from '../apps/plugins/agent-code-sandboxes';
|
|
21
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
22
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
23
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
24
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
25
|
+
import { SANDBOX_CAPACITIES, SandboxCapacityPlugins, } from '../apps/plugins/agent-code-sandboxes/index.js';
|
|
26
26
|
const AgentCodeSandboxesInner = () => {
|
|
27
27
|
const serverUrl = useMemo(() => resolveExampleAgentRuntimesUrl('local'), []);
|
|
28
28
|
const [selectedKey, setSelectedKey] = useState(SANDBOX_CAPACITIES[0].key);
|
|
@@ -25,16 +25,16 @@ import { Box } from '@datalayer/primer-addons';
|
|
|
25
25
|
import ReactECharts from 'echarts-for-react';
|
|
26
26
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
27
27
|
import { useSimpleAuthStore } from '@datalayer/core/lib/views/otel';
|
|
28
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
29
|
-
import { AuthRequiredView } from './components';
|
|
30
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
31
|
-
import { useAIAgentsWebSocket } from '../hooks';
|
|
32
|
-
import { LoopEmbed } from '../apps';
|
|
33
|
-
import { AgentCodemodePlugin, AgentNoCodemodePlugin, } from '../apps/plugins/agent-codemode';
|
|
34
|
-
import { createChatExtrasPlugin } from '../apps/plugins/chat-extras';
|
|
35
|
-
import { ContextPanel, } from '../context/ContextPanel';
|
|
36
|
-
import { parseAgentStreamMessage, } from '../types/stream';
|
|
37
|
-
import { MCP_SERVER_LIBRARY } from '../specs/mcpServers';
|
|
28
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
29
|
+
import { AuthRequiredView } from './components/index.js';
|
|
30
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
31
|
+
import { useAIAgentsWebSocket } from '../hooks/index.js';
|
|
32
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
33
|
+
import { AgentCodemodePlugin, AgentNoCodemodePlugin, } from '../apps/plugins/agent-codemode/index.js';
|
|
34
|
+
import { createChatExtrasPlugin } from '../apps/plugins/chat-extras/index.js';
|
|
35
|
+
import { ContextPanel, } from '../context/ContextPanel.js';
|
|
36
|
+
import { parseAgentStreamMessage, } from '../types/stream.js';
|
|
37
|
+
import { MCP_SERVER_LIBRARY } from '../specs/mcpServers.js';
|
|
38
38
|
const queryClient = new QueryClient();
|
|
39
39
|
// Each pane talks to its own agent-runtimes process so the two agents are
|
|
40
40
|
// fully isolated (no shared global codemode/MCP state). Override via env:
|
|
@@ -521,7 +521,7 @@ const AgentCodemodeInner = ({ onLogout, }) => {
|
|
|
521
521
|
})())] })] }));
|
|
522
522
|
};
|
|
523
523
|
const syncTokenToIamStore = (token) => {
|
|
524
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
524
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
525
525
|
iamStore.setState({ token });
|
|
526
526
|
});
|
|
527
527
|
};
|
|
@@ -537,7 +537,7 @@ const AgentCodemodeExample = () => {
|
|
|
537
537
|
const handleLogout = useCallback(() => {
|
|
538
538
|
clearAuth();
|
|
539
539
|
hasSynced.current = false;
|
|
540
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
540
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
541
541
|
iamStore.setState({ token: undefined });
|
|
542
542
|
});
|
|
543
543
|
}, [clearAuth]);
|
|
@@ -17,14 +17,14 @@ import { useMemo, useState, useRef } from 'react';
|
|
|
17
17
|
import { Text, Spinner, Heading, Label, Button, FormControl, } from '@primer/react';
|
|
18
18
|
import { HistoryIcon, ClockIcon, ArrowRightIcon, CheckCircleIcon, StackIcon, } from '@primer/octicons-react';
|
|
19
19
|
import { Box } from '@datalayer/primer-addons';
|
|
20
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
21
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
22
|
-
import { LoopEmbed } from '../apps';
|
|
23
|
-
import { createAgentCompactionPlugin } from '../apps/plugins/agent-compaction';
|
|
24
|
-
import { useAgentRuntimeCompaction, agentRuntimeStore } from '../stores';
|
|
25
|
-
import { getAgentspecs } from '../specs/agents';
|
|
26
|
-
import { AI_MODEL_CATALOGUE } from '../specs';
|
|
27
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
20
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
21
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
22
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
23
|
+
import { createAgentCompactionPlugin } from '../apps/plugins/agent-compaction/index.js';
|
|
24
|
+
import { useAgentRuntimeCompaction, agentRuntimeStore } from '../stores/index.js';
|
|
25
|
+
import { getAgentspecs } from '../specs/agents/index.js';
|
|
26
|
+
import { AI_MODEL_CATALOGUE } from '../specs/index.js';
|
|
27
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
28
28
|
const AGENT_NAME = 'compaction-example-agent';
|
|
29
29
|
const AGENTSPEC_ID = 'example-compaction';
|
|
30
30
|
const MIN_MAX_TOKENS = 1000;
|
|
@@ -28,12 +28,12 @@ import { useMemo } from 'react';
|
|
|
28
28
|
import { configurePlugin } from '@datalayer/reactor';
|
|
29
29
|
import { Heading, Text } from '@primer/react';
|
|
30
30
|
import { Box, setupPrimerPortals } from '@datalayer/primer-addons';
|
|
31
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
32
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
33
|
-
import { AppRenderer, appDatalayerCreatePayload, } from '../apps/apps/AppRenderer';
|
|
34
|
-
import { AssistantCharactersPlugin } from '../apps/plugins/assistant-characters';
|
|
35
|
-
import { LoopAssistantPlugin } from '../apps/plugins/assistant';
|
|
36
|
-
import { APP_CATALOGUE } from '../specs/apps';
|
|
31
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
32
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
33
|
+
import { AppRenderer, appDatalayerCreatePayload, } from '../apps/apps/AppRenderer.js';
|
|
34
|
+
import { AssistantCharactersPlugin } from '../apps/plugins/assistant-characters/index.js';
|
|
35
|
+
import { LoopAssistantPlugin } from '../apps/plugins/assistant/index.js';
|
|
36
|
+
import { APP_CATALOGUE } from '../specs/apps.js';
|
|
37
37
|
setupPrimerPortals();
|
|
38
38
|
/** The local server: `?agentRuntimesUrl=` when given, else the examples' own. */
|
|
39
39
|
function serverUrlOf() {
|
|
@@ -20,17 +20,17 @@ import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
|
20
20
|
import { Text, Button, Spinner, Heading, Label, Flash, ProgressBar, } from '@primer/react';
|
|
21
21
|
import { BeakerIcon, CheckCircleIcon, XCircleIcon, PlayIcon, } from '@primer/octicons-react';
|
|
22
22
|
import { Box } from '@datalayer/primer-addons';
|
|
23
|
-
import { AuthRequiredView, ErrorView } from './components';
|
|
24
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
25
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
26
|
-
import { waitForAgent } from './utils/waitForAgent';
|
|
27
|
-
import { resolveExampleAgentRuntimesUrl, useExampleAgentRuntimesUrl, } from './utils/useExampleAgentRuntimesUrl';
|
|
28
|
-
import { runtimeTargetCapabilities, useRuntimeTargetStore, } from './utils/runtimeTargetStore';
|
|
23
|
+
import { AuthRequiredView, ErrorView } from './components/index.js';
|
|
24
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
25
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
26
|
+
import { waitForAgent } from './utils/waitForAgent.js';
|
|
27
|
+
import { resolveExampleAgentRuntimesUrl, useExampleAgentRuntimesUrl, } from './utils/useExampleAgentRuntimesUrl.js';
|
|
28
|
+
import { runtimeTargetCapabilities, useRuntimeTargetStore, } from './utils/runtimeTargetStore.js';
|
|
29
29
|
import { useSimpleAuthStore } from '@datalayer/core/lib/views/otel';
|
|
30
30
|
import { useCoreStore } from '@datalayer/core';
|
|
31
|
-
import { LoopEmbed } from '../apps';
|
|
32
|
-
import { AgentEvalsPlugin } from '../apps/plugins/agent-evals';
|
|
33
|
-
import { useExampleAgentRuntimes as useAgentRuntimes } from './hooks/useExampleAgentRuntimes';
|
|
31
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
32
|
+
import { AgentEvalsPlugin } from '../apps/plugins/agent-evals/index.js';
|
|
33
|
+
import { useExampleAgentRuntimes as useAgentRuntimes } from './hooks/useExampleAgentRuntimes.js';
|
|
34
34
|
const LOOP_PLUGINS_AGENTEVA = [AgentEvalsPlugin];
|
|
35
35
|
const queryClient = new QueryClient();
|
|
36
36
|
// ─── Constants ─────────────────────────────────────────────────────────────
|
|
@@ -369,7 +369,7 @@ const AgentEvalsInner = ({ onLogout, executionTarget }) => {
|
|
|
369
369
|
};
|
|
370
370
|
// ─── Sync token to core IAM store ──────────────────────────────────────────
|
|
371
371
|
const syncTokenToIamStore = (token) => {
|
|
372
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
372
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
373
373
|
iamStore.setState({ token });
|
|
374
374
|
});
|
|
375
375
|
};
|
|
@@ -387,7 +387,7 @@ const AgentEvalsExample = () => {
|
|
|
387
387
|
const handleLogout = useCallback(() => {
|
|
388
388
|
clearAuth();
|
|
389
389
|
hasSynced.current = false;
|
|
390
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
390
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
391
391
|
iamStore.setState({ token: undefined });
|
|
392
392
|
});
|
|
393
393
|
}, [clearAuth]);
|
|
@@ -21,23 +21,23 @@ import { Text, Button, Heading, Label, Flash, ProgressBar, } from '@primer/react
|
|
|
21
21
|
import { ShieldCheckIcon, CheckIcon, XIcon, DotFillIcon, } from '@primer/octicons-react';
|
|
22
22
|
import { Box } from '@datalayer/primer-addons';
|
|
23
23
|
import { buildOtelWebSocketUrl } from '@datalayer/core/lib/otel';
|
|
24
|
-
import { useCoreStore } from '../state/substates';
|
|
25
|
-
import { AuthRequiredView, ErrorView } from './components';
|
|
26
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
27
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
28
|
-
import { waitForAgent } from './utils/waitForAgent';
|
|
29
|
-
import { parseAgentStreamMessage } from '../types/stream';
|
|
30
|
-
import { getAgentspecs } from '../specs/agents';
|
|
31
|
-
import { subscribeOtelWs } from '../context/otelWsPool';
|
|
32
|
-
import { toMetricValue } from '../hooks/useMonitoring';
|
|
33
|
-
import { useAIAgentsWebSocket } from '../hooks';
|
|
34
|
-
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
24
|
+
import { useCoreStore } from '../state/substates/index.js';
|
|
25
|
+
import { AuthRequiredView, ErrorView } from './components/index.js';
|
|
26
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
27
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
28
|
+
import { waitForAgent } from './utils/waitForAgent.js';
|
|
29
|
+
import { parseAgentStreamMessage } from '../types/stream.js';
|
|
30
|
+
import { getAgentspecs } from '../specs/agents/index.js';
|
|
31
|
+
import { subscribeOtelWs } from '../context/otelWsPool.js';
|
|
32
|
+
import { toMetricValue } from '../hooks/useMonitoring.js';
|
|
33
|
+
import { useAIAgentsWebSocket } from '../hooks/index.js';
|
|
34
|
+
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
35
35
|
const queryClient = new QueryClient();
|
|
36
36
|
import { useSimpleAuthStore } from '@datalayer/core/lib/views/otel';
|
|
37
|
-
import { LoopEmbed } from '../apps';
|
|
38
|
-
import { agentRuntimeStore } from '../stores';
|
|
39
|
-
import { AgentGuardrailsPlugin } from '../apps/plugins/agent-guardrails';
|
|
40
|
-
import { createChatExtrasPlugin } from '../apps/plugins/chat-extras';
|
|
37
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
38
|
+
import { agentRuntimeStore } from '../stores/index.js';
|
|
39
|
+
import { AgentGuardrailsPlugin } from '../apps/plugins/agent-guardrails/index.js';
|
|
40
|
+
import { createChatExtrasPlugin } from '../apps/plugins/chat-extras/index.js';
|
|
41
41
|
// ─── Constants ─────────────────────────────────────────────────────────────
|
|
42
42
|
const AGENT_NAME = 'guardrails-example-agent';
|
|
43
43
|
const AGENTSPEC_ID = 'example-guardrails';
|
|
@@ -433,7 +433,7 @@ const AgentGuardrailsInner = ({ onLogout, }) => {
|
|
|
433
433
|
};
|
|
434
434
|
// ─── Sync token to core IAM store ──────────────────────────────────────────
|
|
435
435
|
const syncTokenToIamStore = (token) => {
|
|
436
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
436
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
437
437
|
iamStore.setState({ token });
|
|
438
438
|
});
|
|
439
439
|
};
|
|
@@ -450,7 +450,7 @@ const AgentGuardrailsExample = () => {
|
|
|
450
450
|
const handleLogout = useCallback(() => {
|
|
451
451
|
clearAuth();
|
|
452
452
|
hasSynced.current = false;
|
|
453
|
-
import('../state/substates').then(({ iamStore }) => {
|
|
453
|
+
import('../state/substates/index.js').then(({ iamStore }) => {
|
|
454
454
|
iamStore.setState({ token: undefined });
|
|
455
455
|
});
|
|
456
456
|
}, [clearAuth]);
|
|
@@ -16,11 +16,11 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
16
16
|
*/
|
|
17
17
|
import { useMemo } from 'react';
|
|
18
18
|
import { Box, setupPrimerPortals } from '@datalayer/primer-addons';
|
|
19
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
20
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
21
|
-
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
22
|
-
import { LoopEmbed } from '../apps';
|
|
23
|
-
import { AgentHooksPlugin } from '../apps/plugins/agent-hooks';
|
|
19
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
20
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
21
|
+
import { resolveExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
22
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
23
|
+
import { AgentHooksPlugin } from '../apps/plugins/agent-hooks/index.js';
|
|
24
24
|
setupPrimerPortals();
|
|
25
25
|
const AGENT_NAME = 'hooks-example-agent';
|
|
26
26
|
const AgentHooksExample = () => {
|
|
@@ -8,13 +8,13 @@ import { useCallback, useEffect, useMemo, useRef, useState, } from 'react';
|
|
|
8
8
|
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
|
|
9
9
|
import { Box } from '@datalayer/primer-addons';
|
|
10
10
|
import { Button, Heading, SegmentedControl, Spinner, Text, } from '@primer/react';
|
|
11
|
-
import { ThemedProvider } from './utils/themedProvider';
|
|
12
|
-
import { uniqueAgentId } from './utils/agentId';
|
|
13
|
-
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl';
|
|
11
|
+
import { ThemedProvider } from './utils/themedProvider.js';
|
|
12
|
+
import { uniqueAgentId } from './utils/agentId.js';
|
|
13
|
+
import { useExampleAgentRuntimesUrl } from './utils/useExampleAgentRuntimesUrl.js';
|
|
14
14
|
import { useSimpleAuthStore } from '@datalayer/core/lib/views/otel';
|
|
15
|
-
import { LoopEmbed } from '../apps';
|
|
16
|
-
import { createAgentInferencePlugin } from '../apps/plugins/agent-inference';
|
|
17
|
-
import { useAIAgentsWebSocket } from '../hooks';
|
|
15
|
+
import { LoopEmbed } from '../apps/index.js';
|
|
16
|
+
import { createAgentInferencePlugin } from '../apps/plugins/agent-inference/index.js';
|
|
17
|
+
import { useAIAgentsWebSocket } from '../hooks/index.js';
|
|
18
18
|
const AGENTSPEC_ID = 'example-inference';
|
|
19
19
|
const AGENT_NAME = 'inference-provider-example-agent';
|
|
20
20
|
const queryClient = new QueryClient();
|