@datalayer/agent-runtimes 1.5.52 → 1.5.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-embed/chunks/{ChatView-Dy-IgGFL.js → ChatView-CRp8Mt57.js} +4 -4
- package/dist-embed/datalayer-app-main.js +86 -86
- package/lib/api/runtimes/environments.d.ts +2 -2
- package/lib/api/runtimes/environments.js +5 -5
- package/lib/api/runtimes/runtimes.d.ts +7 -7
- package/lib/api/runtimes/runtimes.js +5 -5
- package/lib/apps/__tests__/fixtures/sceneCheckCases.json +1 -1
- package/lib/apps/apps/AppBrowserSandbox.js +1 -1
- package/lib/apps/apps/AppComposer.d.ts +3 -3
- package/lib/apps/apps/AppComposer.js +3 -3
- package/lib/apps/apps/AppFeedback.d.ts +1 -1
- package/lib/apps/apps/AppKept.d.ts +1 -1
- package/lib/apps/apps/AppKept.js +1 -1
- package/lib/apps/apps/AppRenderer.d.ts +14 -14
- package/lib/apps/apps/AppRenderer.js +18 -20
- package/lib/apps/apps/AppRuntimePlugins.js +2 -3
- package/lib/apps/apps/agent.js +1 -1
- package/lib/apps/apps/appspec.d.ts +10 -10
- package/lib/apps/apps/appspec.js +35 -35
- package/lib/apps/apps/browserSandbox.d.ts +1 -1
- package/lib/apps/apps/checks.d.ts +16 -7
- package/lib/apps/apps/checks.js +65 -21
- package/lib/apps/apps/composer.d.ts +2 -2
- package/lib/apps/apps/composer.js +1 -1
- package/lib/apps/apps/computer.d.ts +3 -3
- package/lib/apps/apps/computer.js +1 -1
- package/lib/apps/apps/customComponents.d.ts +2 -2
- package/lib/apps/apps/customComponents.js +3 -3
- package/lib/apps/apps/feedback.d.ts +2 -2
- package/lib/apps/apps/hostTools.d.ts +3 -3
- package/lib/apps/apps/hostTools.js +2 -2
- package/lib/apps/apps/kept.d.ts +1 -1
- package/lib/apps/apps/language.d.ts +1 -1
- package/lib/apps/apps/pluginPair.d.ts +1 -1
- package/lib/apps/apps/records.js +1 -1
- package/lib/apps/apps/rules.d.ts +2 -2
- package/lib/apps/apps/rules.js +2 -2
- package/lib/apps/apps/saved.d.ts +1 -1
- package/lib/apps/apps/saved.js +1 -1
- package/lib/apps/apps/sceneChecks.js +3 -3
- package/lib/apps/apps/sceneYaml.js +1 -1
- package/lib/apps/apps/sessionRules.d.ts +7 -8
- package/lib/apps/apps/sessionRules.js +6 -7
- package/lib/apps/apps/settingsInputs.d.ts +1 -1
- package/lib/apps/apps/settingsInputs.js +1 -1
- package/lib/apps/apps/threads.d.ts +2 -2
- package/lib/apps/apps/threads.js +1 -1
- package/lib/apps/apps/uploads.d.ts +1 -1
- package/lib/apps/apps/visitorToken.d.ts +1 -1
- package/lib/apps/apps/visitorToken.js +2 -2
- package/lib/apps/core/a2uiComponents.js +1 -2
- package/lib/apps/core/appFiles.js +1 -1
- package/lib/apps/core/canvasBlocks.d.ts +1 -1
- package/lib/apps/core/canvasBlocks.js +1 -1
- package/lib/apps/core/canvasParts.d.ts +3 -3
- package/lib/apps/core/canvasParts.js +1 -1
- package/lib/apps/core/index.d.ts +12 -13
- package/lib/apps/core/index.js +5 -6
- package/lib/apps/embed/AppEmbed.d.ts +9 -9
- package/lib/apps/embed/AppEmbed.js +9 -10
- package/lib/apps/embed/LoopEmbed.d.ts +2 -3
- package/lib/apps/embed/datalayer-app.js +1 -1
- package/lib/apps/embed/element.js +11 -11
- package/lib/apps/embed/embedConfig.d.ts +8 -10
- package/lib/apps/embed/embedConfig.js +6 -7
- package/lib/apps/embed/embedSession.d.ts +3 -3
- package/lib/apps/embed/embedSession.js +2 -2
- package/lib/apps/embed/embeddedSecrets.d.ts +1 -1
- package/lib/apps/embed/embeddedSecrets.js +1 -1
- package/lib/apps/embed/hostBridge.d.ts +14 -14
- package/lib/apps/embed/hostBridge.js +9 -9
- package/lib/apps/embed/loader.js +2 -2
- package/lib/apps/embed/visitorApp.d.ts +1 -1
- package/lib/apps/index.d.ts +1 -1
- package/lib/apps/index.js +3 -3
- package/lib/apps/plugins/a2ui/A2uiView.js +1 -1
- package/lib/apps/plugins/a2ui-surface/AnswerShows.d.ts +2 -2
- package/lib/apps/plugins/a2ui-surface/AnswerShows.js +1 -1
- package/lib/apps/plugins/a2ui-surface/InlineSurface.d.ts +1 -1
- package/lib/apps/plugins/a2ui-surface/SurfaceToolResult.js +2 -2
- package/lib/apps/plugins/a2ui-surface/index.js +1 -1
- package/lib/apps/plugins/a2ui-surface/ownComponents.js +1 -1
- package/lib/apps/plugins/a2ui-surface/toolResult.d.ts +2 -2
- package/lib/apps/plugins/a2ui-surface/toolResult.js +2 -2
- package/lib/apps/plugins/agent-capacity/index.d.ts +2 -2
- package/lib/apps/plugins/agents/DatalayerAgentBridge.js +4 -4
- package/lib/apps/plugins/agents/appLaunch.d.ts +1 -1
- package/lib/apps/plugins/agents/plugin.d.ts +4 -4
- package/lib/apps/plugins/agents/switchable.js +1 -1
- package/lib/apps/plugins/app-activity/AppActivity.d.ts +1 -1
- package/lib/apps/plugins/app-components/index.d.ts +1 -2
- package/lib/apps/plugins/app-components/index.js +1 -2
- package/lib/apps/plugins/app-computer/AppComputer.d.ts +1 -1
- package/lib/apps/plugins/app-computer/AppComputer.js +2 -2
- package/lib/apps/plugins/app-elements/AppElements.d.ts +1 -2
- package/lib/apps/plugins/app-elements/AppElements.js +1 -1
- package/lib/apps/plugins/app-elements/QuestionView.d.ts +1 -2
- package/lib/apps/plugins/app-elements/QuestionView.js +1 -1
- package/lib/apps/plugins/app-elements/index.d.ts +2 -2
- package/lib/apps/plugins/app-elements/index.js +2 -2
- package/lib/apps/plugins/app-page/AppPage.d.ts +3 -3
- package/lib/apps/plugins/app-page/appPageModel.d.ts +5 -5
- package/lib/apps/plugins/app-page/appPageModel.js +1 -1
- package/lib/apps/plugins/app-page/index.d.ts +3 -3
- package/lib/apps/plugins/app-page/index.js +1 -1
- package/lib/apps/plugins/app-page/pageRun.d.ts +2 -2
- package/lib/apps/plugins/app-page/pageRun.js +2 -2
- package/lib/apps/plugins/app-rules/AppRulesCard.d.ts +5 -5
- package/lib/apps/plugins/app-rules/AppRulesCard.js +4 -4
- package/lib/apps/plugins/assistant/index.d.ts +2 -2
- package/lib/apps/plugins/assistant-characters/index.d.ts +2 -2
- package/lib/apps/plugins/assistant-characters/index.js +2 -2
- package/lib/apps/plugins/canvas-blocks/index.d.ts +1 -1
- package/lib/apps/plugins/canvas-blocks/index.js +1 -1
- package/lib/apps/plugins/canvas-parts/index.d.ts +5 -5
- package/lib/apps/plugins/canvas-parts/index.js +5 -5
- package/lib/apps/plugins/chat/ChatView.js +36 -34
- package/lib/apps/plugins/chat/index.d.ts +8 -8
- package/lib/apps/plugins/document/DocumentView.js +2 -2
- package/lib/apps/plugins/notebook/NotebookView.js +1 -1
- package/lib/apps/plugins/page-layout/SplitLayout.d.ts +1 -1
- package/lib/apps/plugins/pap-sign-in/PapSignInCard.d.ts +1 -1
- package/lib/apps/plugins/pap-sign-in/PapSignInCard.js +1 -1
- package/lib/apps/plugins/pap-sign-in/index.js +1 -1
- package/lib/apps/plugins/pap-sign-in/signIn.d.ts +1 -1
- package/lib/apps/plugins/pap-sign-in/signIn.js +1 -1
- package/lib/apps/plugins/plugins-panel/index.d.ts +1 -1
- package/lib/apps/plugins/plugins-panel/index.js +1 -1
- package/lib/apps/plugins/shield-displays/DiffCard.d.ts +2 -2
- package/lib/apps/plugins/shield-displays/TerminalCard.d.ts +1 -1
- package/lib/apps/plugins/shield-displays/index.js +3 -3
- package/lib/apps/presets.d.ts +9 -9
- package/lib/apps/presets.js +3 -3
- package/lib/apps/shell/LoopWorkspace.d.ts +1 -1
- package/lib/apps/shell/LoopWorkspace.js +1 -1
- package/lib/apps/shell/PluginToggles.d.ts +1 -1
- package/lib/apps/shell/SidebarRail.d.ts +1 -1
- package/lib/apps/shell/paneMotion.d.ts +1 -1
- package/lib/apps/shell/paneMotion.js +1 -1
- package/lib/chat/ChatFloating.d.ts +8 -9
- package/lib/chat/ChatFloating.js +4 -4
- package/lib/chat/ChatInline.js +1 -1
- package/lib/chat/ChatLanguage.d.ts +1 -1
- package/lib/chat/ChatLanguage.js +1 -1
- package/lib/chat/assistant/AssistantContextMenu.d.ts +1 -1
- package/lib/chat/assistant/AssistantStage.d.ts +4 -4
- package/lib/chat/assistant/AssistantStage.js +1 -1
- package/lib/chat/assistant/BalloonParts.d.ts +1 -1
- package/lib/chat/assistant/BalloonVisual.d.ts +1 -1
- package/lib/chat/assistant/SpeechBalloon.d.ts +2 -2
- package/lib/chat/assistant/SpriteCharacter.d.ts +1 -1
- package/lib/chat/assistant/characters.d.ts +2 -2
- package/lib/chat/assistant/formats/acf.js +1 -1
- package/lib/chat/assistant/formats/files.js +1 -1
- package/lib/chat/assistant/formats/index.d.ts +1 -1
- package/lib/chat/assistant/formats/index.js +1 -1
- package/lib/chat/assistant/formats/types.d.ts +1 -1
- package/lib/chat/assistant/state.d.ts +2 -2
- package/lib/chat/assistant/toolLine.js +1 -1
- package/lib/chat/base/ChatBase.js +28 -20
- package/lib/chat/base/conversationItems.d.ts +3 -3
- package/lib/chat/base/loopElement.d.ts +2 -2
- package/lib/chat/base/loopStep.d.ts +3 -3
- package/lib/chat/base/loopStep.js +1 -1
- package/lib/chat/base/loopWindow.d.ts +3 -3
- package/lib/chat/base/loopWindow.js +3 -3
- package/lib/chat/base/uiFiles.d.ts +1 -1
- package/lib/chat/base/uiFiles.js +1 -1
- package/lib/chat/base/uiOps.d.ts +1 -1
- package/lib/chat/base/uiOps.js +1 -1
- package/lib/chat/index.js +1 -1
- package/lib/chat/indicators/McpStatusIndicator.js +1 -1
- package/lib/chat/indicators/SkillsStatusIndicator.js +1 -1
- package/lib/chat/messages/ChatMessageList.d.ts +3 -4
- package/lib/chat/messages/ChatMessageList.js +2 -2
- package/lib/chat/messages/markdownWithoutHtml.d.ts +1 -1
- package/lib/chat/messages/markdownWithoutHtml.js +1 -1
- package/lib/chat/presence/Presence.d.ts +2 -2
- package/lib/chat/presence/Presence.js +1 -1
- package/lib/chat/presence/presenceStatus.d.ts +2 -2
- package/lib/chat/presence/presenceStatus.js +2 -2
- package/lib/chat/prompt/InputPrompt.d.ts +3 -3
- package/lib/chat/prompt/InputPromptBase.d.ts +1 -1
- package/lib/chat/prompt/InputPromptBase.js +1 -1
- package/lib/chat/prompt/InputPromptLexical.d.ts +1 -1
- package/lib/chat/styles/streamdownStyles.js +1 -1
- package/lib/chat/useViewportDrag.d.ts +1 -1
- package/lib/chat/viewModes.d.ts +1 -1
- package/lib/chat/viewModes.js +2 -2
- package/lib/chat/words.js +1 -1
- package/lib/client/mixins/RuntimesMixin.d.ts +3 -3
- package/lib/client/mixins/RuntimesMixin.js +3 -3
- package/lib/components/a2ui/custom/index.d.ts +3 -3
- package/lib/components/a2ui/custom/index.js +1 -1
- package/lib/components/a2ui/custom/sandbox.d.ts +2 -2
- package/lib/components/a2ui/custom/sandbox.js +2 -2
- package/lib/components/a2ui/datalayer/Chart.js +2 -2
- package/lib/components/a2ui/datalayer/Chat.js +1 -1
- package/lib/components/a2ui/datalayer/Download.js +1 -1
- package/lib/components/a2ui/datalayer/Evidence.js +1 -1
- package/lib/components/a2ui/datalayer/FileUpload.d.ts +1 -1
- package/lib/components/a2ui/datalayer/FileUpload.js +2 -2
- package/lib/components/a2ui/datalayer/Form.js +2 -2
- package/lib/components/a2ui/datalayer/SchemaForm.d.ts +1 -1
- package/lib/components/a2ui/datalayer/Table.js +1 -1
- package/lib/components/a2ui/datalayer/drawn.d.ts +1 -1
- package/lib/components/a2ui/datalayer/drawn.js +1 -1
- package/lib/components/a2ui/datalayer/formWidgets.js +1 -1
- package/lib/components/a2ui/datalayer/index.d.ts +1 -1
- package/lib/components/a2ui/datalayer/schema.d.ts +2 -2
- package/lib/components/a2ui/datalayer/schema.js +2 -2
- package/lib/components/a2ui/styles.js +1 -1
- package/lib/components/a2ui/visibleWhen.d.ts +3 -3
- package/lib/components/a2ui/visibleWhen.js +3 -3
- package/lib/components/code-sandboxes/CodeSandboxEnvironmentSelect.d.ts +1 -1
- package/lib/components/code-sandboxes/CodeSandboxLauncher.js +1 -1
- package/lib/components/code-sandboxes/CodeSandboxUtils.d.ts +1 -1
- package/lib/components/code-sandboxes/codeSandboxEnvironments.d.ts +2 -2
- package/lib/components/inspector/a2aSpans.d.ts +1 -1
- package/lib/components/inspector/a2aSpans.js +1 -1
- package/lib/components/teams/A2ATeamGraph.d.ts +3 -3
- package/lib/components/teams/A2ATeamGraph.js +1 -3
- package/lib/components/teams/AnswerSurfaces.d.ts +1 -1
- package/lib/components/teams/NotebookPreview.d.ts +1 -1
- package/lib/components/teams/SceneTranscript.d.ts +1 -1
- package/lib/components/teams/SceneView.d.ts +1 -1
- package/lib/components/teams/a2aTeamFlow.d.ts +1 -1
- package/lib/components/teams/a2aTeamFlow.js +1 -1
- package/lib/components/teams/sceneStage.d.ts +1 -1
- package/lib/components/teams/sceneTranscript.d.ts +1 -1
- package/lib/components/teams/useA2ATeam.d.ts +5 -5
- package/lib/components/teams/useA2ATeam.js +3 -3
- package/lib/config/AgentConfiguration.d.ts +1 -1
- package/lib/examples/AssistantExample.d.ts +1 -1
- package/lib/examples/AssistantExample.js +1 -1
- package/lib/examples/AssistantGalleryExample.d.ts +1 -1
- package/lib/examples/AssistantGalleryExample.js +1 -1
- package/lib/examples/LoopAppComputerExample.d.ts +1 -1
- package/lib/examples/LoopAppComputerExample.js +1 -1
- package/lib/examples/ProtocolSignedRequestsExample.d.ts +1 -1
- package/lib/examples/ProtocolSignedRequestsExample.js +1 -1
- package/lib/examples/ProtocolUcpCheckoutExample.d.ts +1 -1
- package/lib/examples/ProtocolUcpCheckoutExample.js +1 -1
- package/lib/examples/ScenesExample.d.ts +1 -1
- package/lib/examples/ScenesExample.js +1 -1
- package/lib/examples/ShieldHarnessExample.d.ts +1 -1
- package/lib/examples/ShieldHarnessExample.js +1 -1
- package/lib/examples/ShieldPolicyExample.d.ts +1 -1
- package/lib/examples/ShieldPolicyExample.js +1 -1
- package/lib/examples/VoiceChatExample.d.ts +1 -1
- package/lib/examples/VoiceChatExample.js +1 -1
- package/lib/examples/example-selector.js +3 -3
- package/lib/examples/exampleGroups.js +3 -3
- package/lib/examples/pap/PapSignInDisplayView.d.ts +1 -1
- package/lib/examples/pap/PapSignInDisplayView.js +1 -1
- package/lib/examples/pap/papSignInCases.js +1 -1
- package/lib/examples/protocols/signedRequestsDemo.d.ts +1 -1
- package/lib/examples/protocols/signedRequestsDemo.js +1 -1
- package/lib/examples/protocols/ucpCheckoutDemo.d.ts +1 -1
- package/lib/examples/protocols/ucpCheckoutDemo.js +1 -1
- package/lib/examples/shield/shieldHarness.d.ts +1 -1
- package/lib/examples/shield/shieldPolicyDemo.d.ts +2 -2
- package/lib/examples/shield/shieldPolicyDemo.js +1 -1
- package/lib/examples/utils/assistantGallery.d.ts +1 -1
- package/lib/examples/utils/clippyJsCharacters.js +2 -2
- package/lib/examples/utils/testSpriteCharacter.js +2 -2
- package/lib/hooks/ownRoutes.d.ts +1 -1
- package/lib/hooks/useAgentRuntimes.d.ts +1 -1
- package/lib/hooks/useChat.js +1 -1
- package/lib/index.js +1 -1
- package/lib/loop-example-main.js +1 -1
- package/lib/models/Environment.d.ts +11 -11
- package/lib/models/Environment.js +1 -1
- package/lib/models/RuntimeDTO.d.ts +1 -1
- package/lib/portable/activity.d.ts +2 -2
- package/lib/portable/activity.js +3 -3
- package/lib/portable/adapterEvents.d.ts +1 -1
- package/lib/portable/agUiRefusal.d.ts +1 -1
- package/lib/portable/agUiRefusal.js +1 -1
- package/lib/portable/agui.d.ts +2 -2
- package/lib/portable/agui.js +2 -2
- package/lib/portable/approvalCard.d.ts +1 -1
- package/lib/portable/approvalCard.js +1 -1
- package/lib/portable/approvals.d.ts +2 -2
- package/lib/portable/approvals.js +1 -1
- package/lib/portable/conversation.d.ts +2 -2
- package/lib/portable/conversation.js +1 -1
- package/lib/portable/direct.d.ts +2 -2
- package/lib/portable/displays.d.ts +2 -2
- package/lib/portable/displays.js +3 -3
- package/lib/portable/fixtures.d.ts +4 -5
- package/lib/portable/fixtures.js +4 -5
- package/lib/portable/hosts/agentClient.d.ts +5 -6
- package/lib/portable/hosts/agentClient.js +7 -7
- package/lib/portable/hosts/approvalRenderers.d.ts +6 -7
- package/lib/portable/hosts/approvalRenderers.js +2 -3
- package/lib/portable/hosts/client.d.ts +9 -6
- package/lib/portable/hosts/client.js +9 -8
- package/lib/portable/hosts/contracts.d.ts +2 -4
- package/lib/portable/hosts/contracts.js +2 -4
- package/lib/portable/hosts/contracts.json +2 -2
- package/lib/portable/hosts/deadLetters.js +2 -2
- package/lib/portable/hosts/deliveries.d.ts +2 -3
- package/lib/portable/hosts/forbiddenGraph.d.ts +4 -4
- package/lib/portable/hosts/forbiddenGraph.js +4 -4
- package/lib/portable/hosts/health.d.ts +3 -4
- package/lib/portable/hosts/health.js +3 -4
- package/lib/portable/hosts/index.d.ts +1 -1
- package/lib/portable/hosts/index.js +1 -1
- package/lib/portable/hosts/observability.d.ts +1 -1
- package/lib/portable/hosts/observability.js +3 -4
- package/lib/portable/hosts/postgresQueue.d.ts +2 -2
- package/lib/portable/hosts/postgresQueue.js +3 -3
- package/lib/portable/hosts/queue.d.ts +1 -1
- package/lib/portable/hosts/quotas.d.ts +2 -2
- package/lib/portable/hosts/quotas.js +2 -2
- package/lib/portable/hosts/rateLimit.d.ts +1 -1
- package/lib/portable/hosts/resolution.d.ts +2 -2
- package/lib/portable/hosts/schema.d.ts +1 -1
- package/lib/portable/hosts/schema.js +1 -1
- package/lib/portable/hosts/secretCipher.d.ts +2 -2
- package/lib/portable/hosts/sessionUid.js +1 -2
- package/lib/portable/hosts/turnState.d.ts +1 -1
- package/lib/portable/index.js +12 -12
- package/lib/portable/lifecycle.d.ts +3 -3
- package/lib/portable/presence.d.ts +3 -3
- package/lib/portable/protectedInput.d.ts +1 -1
- package/lib/portable/records.d.ts +2 -2
- package/lib/portable/records.js +2 -2
- package/lib/portable/runMeasures.d.ts +1 -1
- package/lib/portable/runMeasures.js +1 -1
- package/lib/portable/runtimes.d.ts +1 -1
- package/lib/portable/semantic-events.json +1 -1
- package/lib/portable/semantic.d.ts +1 -1
- package/lib/portable/semantic.js +1 -1
- package/lib/portable/semanticOfAgUi.d.ts +2 -2
- package/lib/portable/semanticOfAgUi.js +1 -1
- package/lib/portable/signIn.d.ts +5 -5
- package/lib/portable/signIn.js +1 -1
- package/lib/portable/signInStatus.d.ts +1 -2
- package/lib/portable/signInStatus.js +1 -2
- package/lib/portable/thread.d.ts +2 -2
- package/lib/portable/thread.js +2 -2
- package/lib/portable/views.d.ts +5 -5
- package/lib/protocols/A2AAdapter.d.ts +1 -1
- package/lib/protocols/A2AAdapter.js +3 -3
- package/lib/protocols/AGUIAdapter.d.ts +1 -1
- package/lib/protocols/AGUIAdapter.js +2 -2
- package/lib/protocols/BrowserAgentAdapter.d.ts +2 -2
- package/lib/protocols/BrowserAgentAdapter.js +1 -1
- package/lib/protocols/VercelAIAdapter.js +2 -2
- package/lib/protocols/a2a/index.d.ts +1 -1
- package/lib/protocols/a2a/index.js +1 -1
- package/lib/protocols/agentProtocols.d.ts +1 -1
- package/lib/protocols/agentProtocols.js +1 -1
- package/lib/protocols/agentic-commerce/index.d.ts +2 -2
- package/lib/protocols/agentic-commerce/index.js +2 -2
- package/lib/protocols/commerce.d.ts +1 -1
- package/lib/protocols/commerce.js +3 -3
- package/lib/protocols/core.d.ts +3 -3
- package/lib/protocols/core.js +2 -2
- package/lib/protocols/mcp/client.js +1 -1
- package/lib/protocols/mcp/index.js +1 -1
- package/lib/protocols/pact/index.d.ts +6 -6
- package/lib/protocols/pact/index.js +6 -6
- package/lib/protocols/ucp/index.d.ts +2 -2
- package/lib/protocols/ucp/index.js +2 -2
- package/lib/protocols/ucp/merchant.js +1 -2
- package/lib/protocols/web-bot-auth/index.d.ts +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 +2 -2
- package/lib/runtimes/apis.d.ts +3 -4
- package/lib/runtimes/browser/a2aPeer.d.ts +1 -1
- package/lib/runtimes/browser/a2aPeer.js +1 -1
- package/lib/runtimes/browser/protocol.d.ts +1 -1
- package/lib/runtimes/variants.d.ts +3 -3
- package/lib/runtimes/variants.js +4 -4
- package/lib/specs/agents/agents.js +2 -2
- package/lib/specs/apps.js +28 -28
- package/lib/specs/appspecSchema.js +62 -62
- package/lib/specs/harnesses.d.ts +1 -1
- package/lib/specs/harnesses.js +1 -1
- package/lib/specs/policies.d.ts +1 -1
- package/lib/specs/policies.js +2 -2
- package/lib/specs/protocols.d.ts +1 -1
- package/lib/specs/sceneSchema.js +4 -4
- package/lib/specs/scenes.js +4 -4
- package/lib/specs/standards.d.ts +1 -1
- package/lib/specs/ui.d.ts +2 -2
- package/lib/specs/ui.js +1 -1
- package/lib/specs/uiRenderers.d.ts +1 -1
- package/lib/specs/voices.d.ts +2 -2
- package/lib/specs/voices.js +2 -2
- package/lib/stories/loop/ReferenceScreens.js +1 -1
- package/lib/stories/loop/pictures-main.js +2 -2
- package/lib/test-setup.js +1 -1
- package/lib/types/agentspecs.d.ts +81 -85
- package/lib/types/chat.d.ts +26 -13
- package/lib/types/messages.d.ts +1 -1
- package/lib/types/protocol.d.ts +3 -3
- package/lib/types/scenes.d.ts +6 -6
- package/lib/types/teams.d.ts +3 -3
- package/lib/ui-plugins/MCPUIPlugin.d.ts +2 -2
- package/lib/ui-plugins/MCPUIPlugin.js +1 -1
- package/lib/voice/ComposerVoice.d.ts +5 -3
- package/lib/voice/ComposerVoice.js +4 -4
- package/lib/voice/HandsFree.d.ts +9 -3
- package/lib/voice/HandsFree.js +8 -3
- package/lib/voice/ReadAloud.d.ts +1 -1
- package/lib/voice/VoiceInput.d.ts +1 -2
- package/lib/voice/VoiceMenu.d.ts +1 -1
- package/lib/voice/captions.d.ts +1 -1
- package/lib/voice/captions.js +1 -1
- package/lib/voice/capture.d.ts +1 -1
- package/lib/voice/capture.js +1 -1
- package/lib/voice/chatVoice.d.ts +1 -1
- package/lib/voice/chatVoice.js +3 -3
- package/lib/voice/choices.d.ts +2 -2
- package/lib/voice/choices.js +2 -2
- package/lib/voice/consent.js +1 -1
- package/lib/voice/handsFree.d.ts +29 -4
- package/lib/voice/handsFree.js +32 -4
- package/lib/voice/hearing.d.ts +1 -1
- package/lib/voice/hearing.js +1 -1
- package/lib/voice/index.d.ts +2 -2
- package/lib/voice/pinned.d.ts +2 -2
- package/lib/voice/pinned.js +2 -2
- package/lib/voice/sayAloud.d.ts +2 -2
- package/lib/voice/sayAloud.js +2 -2
- package/lib/voice/sentences.d.ts +1 -1
- package/lib/voice/sentences.js +1 -1
- package/lib/voice/serverHearing.d.ts +8 -2
- package/lib/voice/serverHearing.js +37 -6
- package/lib/voice/settings.d.ts +2 -2
- package/lib/voice/settings.js +2 -2
- package/lib/voice/speaker.d.ts +10 -4
- package/lib/voice/speaker.js +5 -2
- package/lib/voice/types.d.ts +1 -1
- package/lib/voice/useSpokenAnswers.js +2 -2
- package/lib/voice/useVoiceSettings.js +1 -1
- package/lib/voice/useVoiceSpeaker.js +1 -1
- package/package.json +2 -2
- package/scripts/codegen/generate_agentic_commerce.sh +1 -1
- package/scripts/codegen/generate_agents.py +5 -5
- package/scripts/codegen/generate_apps.py +3 -3
- package/scripts/codegen/generate_harnesses.py +4 -4
- package/scripts/codegen/generate_mcp_servers.py +2 -2
- package/scripts/codegen/generate_policies.py +3 -3
- package/scripts/codegen/generate_protocols.py +3 -4
- package/scripts/codegen/generate_scenes.py +4 -4
- package/scripts/codegen/generate_standards.py +3 -3
- package/scripts/codegen/generate_teams.py +1 -1
- package/scripts/codegen/generate_ui.py +8 -8
- package/scripts/codegen/generate_ui_renderers.py +3 -3
- package/scripts/codegen/generate_voices.py +4 -4
- package/scripts/dist-embed.mjs +1 -1
- package/scripts/generate-environments-types.py +1 -1
- package/scripts/record-scene-checks.py +2 -2
- package/scripts/voice/measure.py +3 -3
- package/scripts/voice/pin_store.py +1 -1
- package/scripts/voice/serve_store.py +1 -1
- package/scripts/voice/transcribe.mjs +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Every representation of the floating assistant, as a gallery (
|
|
2
|
+
* Every representation of the floating assistant, as a gallery (T-21
|
|
3
3
|
* to T-27): each character — Datalayer's four, the owl an example plugin
|
|
4
4
|
* contributes to `loop.assistant.character`, a test sprite read through
|
|
5
5
|
* the clippy.js reader, and, when asked, the characters clippy.js publishes,
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Every representation of the floating assistant, as a gallery (
|
|
7
|
+
* Every representation of the floating assistant, as a gallery (T-21
|
|
8
8
|
* to T-27): each character — Datalayer's four, the owl an example plugin
|
|
9
9
|
* contributes to `loop.assistant.character`, a test sprite read through
|
|
10
10
|
* the clippy.js reader, and, when asked, the characters clippy.js publishes,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* An application's computer, beside its page (
|
|
2
|
+
* An application's computer, beside its page (R-23).
|
|
3
3
|
*
|
|
4
4
|
* An application whose browse, files and shell are on, drawn as the Studio's Preview
|
|
5
5
|
* draws it — `AppRenderer` with its `sidebar` — on the Local target: its
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* An application's computer, beside its page (
|
|
7
|
+
* An application's computer, beside its page (R-23).
|
|
8
8
|
*
|
|
9
9
|
* An application whose browse, files and shell are on, drawn as the Studio's Preview
|
|
10
10
|
* draws it — `AppRenderer` with its `sidebar` — on the Local target: its
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Signed requests (Web Bot Auth) in the browser (
|
|
2
|
+
* Signed requests (Web Bot Auth) in the browser (EX-10): a
|
|
3
3
|
* key generated in the page signs one request; the page shows the three
|
|
4
4
|
* headers, the signature base the key signed, and what a website's check
|
|
5
5
|
* finds — verified, then the same request replayed and one with its path
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* Signed requests (Web Bot Auth) in the browser (
|
|
7
|
+
* Signed requests (Web Bot Auth) in the browser (EX-10): a
|
|
8
8
|
* key generated in the page signs one request; the page shows the three
|
|
9
9
|
* headers, the signature base the key signed, and what a website's check
|
|
10
10
|
* finds — verified, then the same request replayed and one with its path
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A UCP checkout approved as a card (
|
|
2
|
+
* A UCP checkout approved as a card (EX-10, after EX-04):
|
|
3
3
|
* the UCP client buys from *Example Store*, the local test merchant running
|
|
4
4
|
* in the page. The exact purchase is proposed; completing it asks the
|
|
5
5
|
* approver — the card below — once; approving buys once, and the same
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* A UCP checkout approved as a card (
|
|
7
|
+
* A UCP checkout approved as a card (EX-10, after EX-04):
|
|
8
8
|
* the UCP client buys from *Example Store*, the local test merchant running
|
|
9
9
|
* in the page. The exact purchase is proposed; completing it asks the
|
|
10
10
|
* approver — the card below — once; approving buys once, and the same
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The scenes of the catalogue (agentspecs `scenes`,
|
|
2
|
+
* The scenes of the catalogue (agentspecs `scenes`, A-15), in tabs:
|
|
3
3
|
* each scene's face and name, its `assumes` line under them, its graph and
|
|
4
4
|
* its transcript behind *Graph · Transcript* (`SceneView`), its members
|
|
5
5
|
* standing where its stage directions put them (`positions`), the entry's
|
|
@@ -208,7 +208,7 @@ function Scene({ scene }) {
|
|
|
208
208
|
} }), _jsxs(Box, { display: "flex", gap: 2, mt: 2, children: [_jsx(Button, { variant: "primary", disabled: !team.ready || team.busy || !draft.trim(), onClick: () => send(draft), children: "Ask" }), team.busy && _jsx(Button, { onClick: team.stop, children: "Stop" })] }), _jsx(Box, { mt: 3, "data-team-conversation": "", children: team.turns.map((turn, index) => (_jsxs(Box, { p: 2, mb: 2, borderRadius: 2, bg: turn.role === 'user' ? 'accent.subtle' : 'canvas.subtle', children: [_jsx(Text, { sx: { fontSize: 0, color: 'fg.muted', display: 'block' }, children: turn.role === 'user' ? PERSON : entry.app.name }), _jsx(Streamdown, { children: turn.text })] }, index))) })] }), _jsxs(Box, { flex: "1 1 360px", minWidth: 0, children: [!team.notebook && stage.peers.length > 0 && (_jsxs(_Fragment, { children: [_jsx(Heading, { as: "h3", sx: { fontSize: 2, mb: 2 }, children: "The report" }), _jsx(Box, { p: 3, border: "1px solid", borderColor: "border.default", borderRadius: 2, minHeight: 120, "data-team-report": "", children: team.report ? (_jsx(Streamdown, { children: team.report })) : (_jsx(Text, { sx: { color: 'fg.muted' }, children: "What the last member asked returns appears here, as it returned it, or as a notebook to run when it gives one." })) })] })), scene.setup.length > 0 && (_jsxs(Box, { mt: 3, "data-scene-setup": "", children: [_jsx(Heading, { as: "h3", sx: { fontSize: 1, mb: 1 }, children: "What this scene needs" }), scene.setup.map(line => (_jsx(Text, { as: "p", sx: { fontSize: 0, color: 'fg.muted', m: 0 }, children: line }, line)))] }))] })] })] }));
|
|
209
209
|
}
|
|
210
210
|
function Scenes() {
|
|
211
|
-
// A scripted scene is played as written on its page (
|
|
211
|
+
// A scripted scene is played as written on its page (X-02): here, the teams staged live.
|
|
212
212
|
const scenes = useMemo(() => listSceneSpecs().filter(scene => scene.kind === 'team'), []);
|
|
213
213
|
const [selected, setSelected] = useState(scenes[0]?.id ?? '');
|
|
214
214
|
const scene = scenes.find(one => one.id === selected) ?? scenes[0];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A coding agent behind the Shield, in the web chat (
|
|
2
|
+
* A coding agent behind the Shield, in the web chat (SH-16, SH-23).
|
|
3
3
|
*
|
|
4
4
|
* The chat talks AG-UI to a local runtime whose agent is a harness: what the
|
|
5
5
|
* agent changed is drawn as a **diff** in the file's language, what it ran
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* A coding agent behind the Shield, in the web chat (
|
|
7
|
+
* A coding agent behind the Shield, in the web chat (SH-16, SH-23).
|
|
8
8
|
*
|
|
9
9
|
* The chat talks AG-UI to a local runtime whose agent is a harness: what the
|
|
10
10
|
* agent changed is drawn as a **diff** in the file's language, what it ran
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The Shield's policy, from TypeScript (
|
|
2
|
+
* The Shield's policy, from TypeScript (SH-53, SH-23).
|
|
3
3
|
*
|
|
4
4
|
* An organization's document typed by `@datalayer/agent-shield` (the types
|
|
5
5
|
* generated from the schema the Python package publishes), what it decides
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* The Shield's policy, from TypeScript (
|
|
7
|
+
* The Shield's policy, from TypeScript (SH-53, SH-23).
|
|
8
8
|
*
|
|
9
9
|
* An organization's document typed by `@datalayer/agent-shield` (the types
|
|
10
10
|
* generated from the schema the Python package publishes), what it decides
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A voice chat with the floating assistant (
|
|
2
|
+
* A voice chat with the floating assistant (V1).
|
|
3
3
|
*
|
|
4
4
|
* Click the microphone and speak: the words are written in the composer as
|
|
5
5
|
* they are heard — Moonshine for English, Whisper for French, Silero VAD
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* A voice chat with the floating assistant (
|
|
7
|
+
* A voice chat with the floating assistant (V1).
|
|
8
8
|
*
|
|
9
9
|
* Click the microphone and speak: the words are written in the composer as
|
|
10
10
|
* they are heard — Moonshine for English, Whisper for French, Silero VAD
|
|
@@ -114,8 +114,8 @@ export const EXAMPLE_ENTRIES = [
|
|
|
114
114
|
// the shell hides the one in its header rather than showing two controls
|
|
115
115
|
// for one sandbox — and a second one that would not agree with the first.
|
|
116
116
|
['example', 'loop', 'workspace', 'sandbox', 'owns-sandbox-control']),
|
|
117
|
-
makeEntry('LoopAppComputerExample', () => import('./LoopAppComputerExample'), 'An application beside its computer: what its agent ran on its sandbox, its files, and Take over and Hand back (
|
|
118
|
-
makeEntry('ScenesExample', () => import('./ScenesExample'), 'The scenes of the catalogue in tabs — Sales & Accounting, Month-end Close, Crop Monitoring, Disaster Assessment — each its graph and transcript, its cues as suggestions, played against the local servers (
|
|
117
|
+
makeEntry('LoopAppComputerExample', () => import('./LoopAppComputerExample'), 'An application beside its computer: what its agent ran on its sandbox, its files, and Take over and Hand back (R-23).', ['example', 'loop', 'app', 'computer', 'sandbox', 'owns-sandbox-control']),
|
|
118
|
+
makeEntry('ScenesExample', () => import('./ScenesExample'), 'The scenes of the catalogue in tabs — Sales & Accounting, Month-end Close, Crop Monitoring, Disaster Assessment — each its graph and transcript, its cues as suggestions, played against the local servers (A-15).', ['example', 'loop', 'scenes', 'a2a', 'agentspecs', 'team']),
|
|
119
119
|
makeEntry('LoopShellExample', () => import('./LoopShellExample'), 'The Loop shell at its most naked: a blank canvas, a floating draggable prompt, and an editor selector in the corner — none, notebook or document.',
|
|
120
120
|
// `owns-sandbox-control`: the shell is pinned to the browser sandbox, so
|
|
121
121
|
// the page's selector would offer three targets it cannot move to.
|
|
@@ -133,7 +133,7 @@ export const EXAMPLE_ENTRIES = [
|
|
|
133
133
|
makeEntry('AgentA2ATeamExample', () => import('./AgentA2ATeamExample'), 'Two applications as a team over A2A: Sales in the browser (@a2a-js/sdk) asks Accounting on a runtime (fasta2a, Odoo read only), each an Office Assistant character.'),
|
|
134
134
|
makeEntry('ProtocolSignedRequestsExample', () => import('./ProtocolSignedRequestsExample'), 'Web Bot Auth in the browser: a key made in the page signs a request — its three headers and the signature base — verified, then a replay and a changed path refused.'),
|
|
135
135
|
makeEntry('ProtocolUcpCheckoutExample', () => import('./ProtocolUcpCheckoutExample'), 'A UCP checkout at a test store in the page: the exact purchase proposed, approved on a card once, bought once.'),
|
|
136
|
-
// The Shield (
|
|
136
|
+
// The Shield (SH-23): a coding agent behind it, and its policy's types.
|
|
137
137
|
makeEntry('ShieldHarnessExample', () => import('./ShieldHarnessExample'), 'A coding agent behind the Shield in the web chat: its changes as diffs, its commands as terminals, what a rule asks first in the approval banner. Needs `python examples/shield/harness_on_the_runtime.py --serve` (the fake agent, no key).', ['example', 'shield', 'harness', 'acp', 'ag-ui', 'chat']),
|
|
138
138
|
makeEntry('ShieldPolicyExample', () => import('./ShieldPolicyExample'), 'The Shield’s policy from TypeScript: an organization’s document typed by @datalayer/agent-shield, what it decides by class, the tool kinds classed, the limits soft then hard, decisions in describeDecision’s words.', ['example', 'shield', 'policy']),
|
|
139
139
|
makeEntry('PapCompanyDiscoveryExample', () => import('./PapCompanyDiscoveryExample'), 'Validate a PAP company document and reduce it to the public capabilities safe for an agent or UI.'),
|
|
@@ -27,7 +27,7 @@ export const EXAMPLE_GROUP_ORDER = [
|
|
|
27
27
|
];
|
|
28
28
|
export const getExampleGroup = (id) => {
|
|
29
29
|
// The library of specs, the Loop shells, and the scenes of the catalogue
|
|
30
|
-
// (
|
|
30
|
+
// (A-15): the applications and what is staged with them.
|
|
31
31
|
if (id === 'AgentspecsExample' ||
|
|
32
32
|
id === 'ScenesExample' ||
|
|
33
33
|
id.startsWith('Loop') ||
|
|
@@ -41,10 +41,10 @@ export const getExampleGroup = (id) => {
|
|
|
41
41
|
return 'A2A';
|
|
42
42
|
if (id.startsWith('Pap'))
|
|
43
43
|
return 'Personal Agent Protocol';
|
|
44
|
-
// The other agent protocols' examples: signed requests, commerce (
|
|
44
|
+
// The other agent protocols' examples: signed requests, commerce (EX-10).
|
|
45
45
|
if (id.startsWith('Protocol'))
|
|
46
46
|
return 'Agent protocols';
|
|
47
|
-
// The Shield: a coding agent behind it, and its policy (
|
|
47
|
+
// The Shield: a coding agent behind it, and its policy (SH-23).
|
|
48
48
|
if (id.startsWith('Shield'))
|
|
49
49
|
return 'Shield';
|
|
50
50
|
if (id.startsWith('AgUi'))
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The sign-in card as a display (
|
|
2
|
+
* The sign-in card as a display (RU-1), drawn as the chat draws it.
|
|
3
3
|
*
|
|
4
4
|
* A tool that starts a sign-in answers with a `PapSignIn` display
|
|
5
5
|
* (`application/vnd.datalayer.pap.sign-in+json`). Agent Runtimes gives the
|
|
@@ -4,7 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* The sign-in card as a display (
|
|
7
|
+
* The sign-in card as a display (RU-1), drawn as the chat draws it.
|
|
8
8
|
*
|
|
9
9
|
* A tool that starts a sign-in answers with a `PapSignIn` display
|
|
10
10
|
* (`application/vnd.datalayer.pap.sign-in+json`). Agent Runtimes gives the
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* The results a page receives for a sign-in (
|
|
6
|
+
* The results a page receives for a sign-in (RU-1), as Agent
|
|
7
7
|
* Runtimes sends them: a display's model view with the whole display beside
|
|
8
8
|
* it in `_meta`, or a plain `pap_sign_in` answer. Fictional company, no
|
|
9
9
|
* credential.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The *Signed requests* gallery example's work (
|
|
2
|
+
* The *Signed requests* gallery example's work (EX-10): a
|
|
3
3
|
* fresh Ed25519 key generated in the page, one request signed with it
|
|
4
4
|
* (`signRequest`), the three headers and the signature base the signer was
|
|
5
5
|
* handed, then the request verified against the key's directory — and the
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* The *Signed requests* gallery example's work (
|
|
6
|
+
* The *Signed requests* gallery example's work (EX-10): a
|
|
7
7
|
* fresh Ed25519 key generated in the page, one request signed with it
|
|
8
8
|
* (`signRequest`), the three headers and the signature base the signer was
|
|
9
9
|
* handed, then the request verified against the key's directory — and the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The *UCP checkout* gallery example's work (
|
|
2
|
+
* The *UCP checkout* gallery example's work (EX-10, after
|
|
3
3
|
* EX-04): the UCP client buying from *Example Store*, the local test
|
|
4
4
|
* merchant running in the page (`protocols/ucp/merchant`). A checkout is
|
|
5
5
|
* proposed as an exact, revisioned purchase; completing it asks the host's
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* The *UCP checkout* gallery example's work (
|
|
6
|
+
* The *UCP checkout* gallery example's work (EX-10, after
|
|
7
7
|
* EX-04): the UCP client buying from *Example Store*, the local test
|
|
8
8
|
* merchant running in the page (`protocols/ucp/merchant`). A checkout is
|
|
9
9
|
* proposed as an exact, revisioned purchase; completing it asks the host's
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What `ShieldHarnessExample` connects to and offers (
|
|
2
|
+
* What `ShieldHarnessExample` connects to and offers (SH-23).
|
|
3
3
|
*
|
|
4
4
|
* `examples/shield/harness_on_the_runtime.py --serve` names the harness's
|
|
5
5
|
* agent `chat`, as `loop --harness` does with `AGENT_RUNTIMES_AGENT_NAME`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What `ShieldPolicyExample` draws, as data (
|
|
2
|
+
* What `ShieldPolicyExample` draws, as data (SH-53, SH-23).
|
|
3
3
|
*
|
|
4
4
|
* `@datalayer/agent-shield` is the Shield's TypeScript: the policy
|
|
5
5
|
* document's types generated from the schema the Python package publishes,
|
|
@@ -65,7 +65,7 @@ export declare function classRows(shield: AgentShieldPolicyModule, policy?: Poli
|
|
|
65
65
|
actionClass: string;
|
|
66
66
|
says: string;
|
|
67
67
|
}>;
|
|
68
|
-
/** ACP's tool kinds and the class each is decided as
|
|
68
|
+
/** ACP's tool kinds and the class each is decided as. */
|
|
69
69
|
export declare function kindRows(shield: AgentShieldPolicyModule): Array<{
|
|
70
70
|
kind: string;
|
|
71
71
|
actionClass: string;
|
|
@@ -53,7 +53,7 @@ export function classRows(shield, policy = ORGANIZATION_POLICY) {
|
|
|
53
53
|
};
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
/** ACP's tool kinds and the class each is decided as
|
|
56
|
+
/** ACP's tool kinds and the class each is decided as. */
|
|
57
57
|
export function kindRows(shield) {
|
|
58
58
|
return shield.TOOL_KINDS.map(kind => ({
|
|
59
59
|
kind,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What the floating assistant's gallery shows (
|
|
2
|
+
* What the floating assistant's gallery shows (T-21 to T-27): every
|
|
3
3
|
* state a character acts (T-22), and stepped aside (T-27), with the balloon
|
|
4
4
|
* each one says — the agent's latest saying (T-23), an approval to answer,
|
|
5
5
|
* or that it is paused. Static data only: no agent, no server.
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
* clippy.js reader a person's files go through.
|
|
10
10
|
*
|
|
11
11
|
* Nothing of them is in this repository: clippy.js's licence covers its code
|
|
12
|
-
* only, and the characters, their names and their drawings are Microsoft's
|
|
13
|
-
*
|
|
12
|
+
* only, and the characters, their names and their drawings are Microsoft's.
|
|
13
|
+
* The page fetches them when asked and keeps them in memory.
|
|
14
14
|
*
|
|
15
15
|
* The package ships each character as ES modules: `agent.mjs` exports the
|
|
16
16
|
* character's data, `map.mjs` its sprite sheet as a data URL. Both are read as
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* A small character of our own in the clippy.js shape (
|
|
6
|
+
* A small character of our own in the clippy.js shape (T-26), for the
|
|
7
7
|
* floating assistant's gallery: an `agent.js` and a `map.png` sprite sheet
|
|
8
8
|
* of ten 48×48 cells, read through the same reader a person's files go
|
|
9
9
|
* through (`readClippyCharacter`). It is a test sprite drawn for Datalayer —
|
|
10
|
-
* no file of Microsoft's is in the repository
|
|
10
|
+
* no file of Microsoft's is in the repository.
|
|
11
11
|
*
|
|
12
12
|
* Its animations carry the names the Office characters use, so the reader's
|
|
13
13
|
* `stateAnimations` gives every state of the assistant one of its own:
|
package/lib/hooks/ownRoutes.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The runtime routes a page calls besides an application's own, and when it
|
|
3
|
-
* does not (
|
|
3
|
+
* does not (the release gates, decided 14 October 2026).
|
|
4
4
|
*
|
|
5
5
|
* A runtime that serves a deployment — kept always on, or launched by its
|
|
6
6
|
* hosted page — and the visitors' runtime answer only the application's own
|
|
@@ -50,7 +50,7 @@ export interface UseAgentOptions {
|
|
|
50
50
|
*/
|
|
51
51
|
runtimeConnection?: AgentRuntimeConnectionOptions;
|
|
52
52
|
/**
|
|
53
|
-
* The application the runtime is launched for (
|
|
53
|
+
* The application the runtime is launched for (R-19): its Appspec,
|
|
54
54
|
* and the saved application and deployment it runs for. Sent with the
|
|
55
55
|
* launch, as `RuntimesClient.create` sends it in Python, so the runtime is
|
|
56
56
|
* given the secrets its connections declare before its agent is made.
|
package/lib/hooks/useChat.js
CHANGED
|
@@ -66,7 +66,7 @@ export function useChat() {
|
|
|
66
66
|
const getTools = useChatStore(state => state.getTools);
|
|
67
67
|
/**
|
|
68
68
|
* Send a user message and get the AI's response. The conversation is
|
|
69
|
-
* `reduceConversation`'s (
|
|
69
|
+
* `reduceConversation`'s (M-030), as in ChatBase and on the phone:
|
|
70
70
|
* every adapter event read by `conversationEventsOf`, an inference
|
|
71
71
|
* provider's deltas as AG-UI text events, and the store's messages drawn
|
|
72
72
|
* from it.
|
package/lib/index.js
CHANGED
|
@@ -14,5 +14,5 @@ export * from './config';
|
|
|
14
14
|
export * from './specs';
|
|
15
15
|
// The LOOP workspace and its plugins, for hosts that embed it: the Datalayer
|
|
16
16
|
// application at /loop, and later the JupyterLab panel. Exported through one
|
|
17
|
-
// surface rather than by deep import
|
|
17
|
+
// surface rather than by deep import.
|
|
18
18
|
export * from './apps';
|
package/lib/loop-example-main.js
CHANGED
|
@@ -6,7 +6,7 @@ import type { CreateRuntimeResponse } from './RuntimeDTO';
|
|
|
6
6
|
/**
|
|
7
7
|
* The Environment specification, `environments.datalayer.io/v1alpha1`,
|
|
8
8
|
* generated from the JSON Schema `code-sandboxes` exports from its pydantic
|
|
9
|
-
* models (
|
|
9
|
+
* models (D-14). Regenerated by `npm run generate:environments`.
|
|
10
10
|
*/
|
|
11
11
|
export * as EnvironmentSchema from './environments.generated';
|
|
12
12
|
/** An Environment document: `apiVersion`, `kind`, `metadata` and `spec`. */
|
|
@@ -46,7 +46,7 @@ export type EnvironmentOwnerType = 'user' | 'organization';
|
|
|
46
46
|
*/
|
|
47
47
|
export type EnvironmentVisibility = 'private' | 'organization' | 'public';
|
|
48
48
|
/**
|
|
49
|
-
* Where a version stands
|
|
49
|
+
* Where a version stands, as `VersionState` of
|
|
50
50
|
* `code_sandboxes.environments.lifecycle` names it.
|
|
51
51
|
*/
|
|
52
52
|
export type EnvironmentVersionStatus = 'draft' | 'resolving' | 'resolved' | 'building' | 'validating' | 'ready' | 'partially_ready' | 'failed' | 'deprecated';
|
|
@@ -87,7 +87,7 @@ export interface IDatalayerEnvironment {
|
|
|
87
87
|
*
|
|
88
88
|
* A platform entry names one. A user environment does not: what it runs is
|
|
89
89
|
* an artifact of its promoted version, pinned by digest and resolved by the
|
|
90
|
-
* platform at launch, and never shown to a client (
|
|
90
|
+
* platform at launch, and never shown to a client (E1-11).
|
|
91
91
|
*/
|
|
92
92
|
dockerImage?: string;
|
|
93
93
|
/**
|
|
@@ -178,7 +178,7 @@ export interface IDatalayerEnvironment {
|
|
|
178
178
|
label?: string;
|
|
179
179
|
}
|
|
180
180
|
/**
|
|
181
|
-
* A refusal, as every registry route answers one
|
|
181
|
+
* A refusal, as every registry route answers one: a code, a
|
|
182
182
|
* message and the correlation id; the field at fault, the detail, and for a
|
|
183
183
|
* code of the taxonomy whether a retry can succeed and what the user does.
|
|
184
184
|
*/
|
|
@@ -240,7 +240,7 @@ export interface IEnvironmentVersionRecord {
|
|
|
240
240
|
/**
|
|
241
241
|
* Every variant's Appendix B check 5 (its installed package versions), as
|
|
242
242
|
* `{ variant: { package: version } }`, once a variant's smoke test has
|
|
243
|
-
* reported it (
|
|
243
|
+
* reported it (E2-08). Absent from a Runtimes before E1-29 and
|
|
244
244
|
* `{}` until the first variant reports.
|
|
245
245
|
*/
|
|
246
246
|
packageReport?: Record<string, Record<string, string>>;
|
|
@@ -308,7 +308,7 @@ export interface IEnvironmentPromotionConflict {
|
|
|
308
308
|
/** What the refused acknowledgement named. */
|
|
309
309
|
acknowledgedUnavailableVariants?: string[];
|
|
310
310
|
}
|
|
311
|
-
/** The artifact a runtime was started from, as its answer names it (
|
|
311
|
+
/** The artifact a runtime was started from, as its answer names it (E1-11). */
|
|
312
312
|
export interface ILaunchedEnvironmentArtifact {
|
|
313
313
|
uid: string;
|
|
314
314
|
variant: string;
|
|
@@ -370,7 +370,7 @@ export interface IEnvironmentBuildStep {
|
|
|
370
370
|
status: 'running' | 'succeeded' | 'failed' | 'skipped';
|
|
371
371
|
startedAt?: string;
|
|
372
372
|
finishedAt?: string;
|
|
373
|
-
/** For a failure: its
|
|
373
|
+
/** For a failure: its error code. */
|
|
374
374
|
code?: string;
|
|
375
375
|
message?: string;
|
|
376
376
|
/**
|
|
@@ -396,7 +396,7 @@ export interface IEnvironmentBuildRecord {
|
|
|
396
396
|
attempt: number;
|
|
397
397
|
/**
|
|
398
398
|
* What this build is for: `build`, or `resolve` — a build that stops once
|
|
399
|
-
* the version has its lock (
|
|
399
|
+
* the version has its lock (E1-26). Absent from a Runtimes
|
|
400
400
|
* before that, and from every build recorded before the term existed, each
|
|
401
401
|
* of which is a build.
|
|
402
402
|
*/
|
|
@@ -408,14 +408,14 @@ export interface IEnvironmentBuildRecord {
|
|
|
408
408
|
errorCode: string;
|
|
409
409
|
errorDetail: string;
|
|
410
410
|
/**
|
|
411
|
-
* The smoke test's per-check conformance report (
|
|
411
|
+
* The smoke test's per-check conformance report (E1-29). Absent
|
|
412
412
|
* from a Runtimes before E1-29 and `{}` until the build's smoke test ran; a
|
|
413
413
|
* report with `passed: false` names the checks that failed and why.
|
|
414
414
|
*/
|
|
415
415
|
conformanceReport?: IEnvironmentConformanceReport | Record<string, never>;
|
|
416
416
|
/**
|
|
417
417
|
* Whether the retry route takes this build: cancelled, or failed under a
|
|
418
|
-
* code another attempt can pass
|
|
418
|
+
* code another attempt can pass. Said by Runtimes with the
|
|
419
419
|
* build, so a page offers Retry only where it would be taken (E2-19).
|
|
420
420
|
* Absent from a Runtimes before 1.0.36.
|
|
421
421
|
*/
|
|
@@ -703,7 +703,7 @@ export interface IEnvironmentBuildLogPage {
|
|
|
703
703
|
complete: boolean;
|
|
704
704
|
}
|
|
705
705
|
export default IEnvironment;
|
|
706
|
-
/**
|
|
706
|
+
/** The preview limits, per owner. */
|
|
707
707
|
export interface IEnvironmentQuotaLimits {
|
|
708
708
|
concurrentBuilds: number;
|
|
709
709
|
buildMinutesPerDay: number;
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* The Environment specification, `environments.datalayer.io/v1alpha1`,
|
|
7
7
|
* generated from the JSON Schema `code-sandboxes` exports from its pydantic
|
|
8
|
-
* models (
|
|
8
|
+
* models (D-14). Regenerated by `npm run generate:environments`.
|
|
9
9
|
*/
|
|
10
10
|
export * as EnvironmentSchema from './environments.generated';
|
|
11
11
|
/** The build statuses nothing more happens to. Any other status is still to run or running. */
|
|
@@ -47,7 +47,7 @@ export interface CreateRuntimeRequest {
|
|
|
47
47
|
environment: {
|
|
48
48
|
/**
|
|
49
49
|
* A platform environment by its name, or a user environment as
|
|
50
|
-
* `<account-handle>/<name>` or by its uid (
|
|
50
|
+
* `<account-handle>/<name>` or by its uid (D-2).
|
|
51
51
|
*/
|
|
52
52
|
name: string;
|
|
53
53
|
/**
|
|
@@ -3,7 +3,7 @@ export type RecordKind = 'session'
|
|
|
3
3
|
| 'run' | 'tool_call' | 'decision' | 'check' | 'approval' | 'output' | 'feedback'
|
|
4
4
|
/** A turn of a conversation: what was asked, what it answered (V-16). */
|
|
5
5
|
| 'turn'
|
|
6
|
-
/** What it did, step by step (P-16); a harness's session, turn and plan events
|
|
6
|
+
/** What it did, step by step (P-16); a harness's session, turn and plan events. */
|
|
7
7
|
| 'step'
|
|
8
8
|
/** What one of its channels was sent, or why not: `{channel, event, delivery, detail}` (R-37). */
|
|
9
9
|
| 'notification';
|
|
@@ -68,7 +68,7 @@ export declare const ACTIVITY_WORDS: {
|
|
|
68
68
|
readonly wakes: "It also starts on its own when something happens:";
|
|
69
69
|
readonly nothing: "Nothing yet.";
|
|
70
70
|
};
|
|
71
|
-
/** What happens that starts it on its own, in words (
|
|
71
|
+
/** What happens that starts it on its own, in words (W-03): its event triggers. */
|
|
72
72
|
export declare const wakesOn: (triggers: ReadonlyArray<{
|
|
73
73
|
type: string;
|
|
74
74
|
event?: string;
|
package/lib/portable/activity.js
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* What an application is doing (
|
|
6
|
+
* What an application is doing (R-15), as ai-agents answers
|
|
7
7
|
* `/api/ai-agents/v1/apps/activity`, and its record's entries
|
|
8
8
|
* (`/apps/sessions`, `/apps/records`): read and said the same by the Studio
|
|
9
|
-
* and Datalayer Mobile (
|
|
9
|
+
* and Datalayer Mobile (M-015b). Pure: each client fetches with its own
|
|
10
10
|
* authentication and hands the body here.
|
|
11
11
|
*
|
|
12
12
|
* @module portable/activity
|
|
@@ -120,7 +120,7 @@ export const ACTIVITY_WORDS = {
|
|
|
120
120
|
wakes: 'It also starts on its own when something happens:',
|
|
121
121
|
nothing: 'Nothing yet.',
|
|
122
122
|
};
|
|
123
|
-
/** What happens that starts it on its own, in words (
|
|
123
|
+
/** What happens that starts it on its own, in words (W-03): its event triggers. */
|
|
124
124
|
export const wakesOn = (triggers) => (triggers ?? [])
|
|
125
125
|
.filter(trigger => trigger.type === 'event' && (trigger.description || trigger.event))
|
|
126
126
|
.map(trigger => trigger.description ||
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* What every protocol adapter says, as the conversation reducer reads it
|
|
3
|
-
* (
|
|
3
|
+
* (M-030): the web chat's message state is `reduceConversation`'s,
|
|
4
4
|
* whatever protocol its agent speaks.
|
|
5
5
|
*
|
|
6
6
|
* ## What the adapters say (the inventory)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Why an AG-UI run was not answered, in the page's own words (
|
|
2
|
+
* Why an AG-UI run was not answered, in the page's own words (F-15).
|
|
3
3
|
*
|
|
4
4
|
* What a person met before was `AG-UI request failed: 404` — the status and
|
|
5
5
|
* nothing else. A 404 at an agent's AG-UI address has one meaning: the agent
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Why an AG-UI run was not answered, in the page's own words (
|
|
6
|
+
* Why an AG-UI run was not answered, in the page's own words (F-15).
|
|
7
7
|
*
|
|
8
8
|
* What a person met before was `AG-UI request failed: 404` — the status and
|
|
9
9
|
* nothing else. A 404 at an agent's AG-UI address has one meaning: the agent
|
package/lib/portable/agui.d.ts
CHANGED
|
@@ -18,13 +18,13 @@ export type AgUiEvent = {
|
|
|
18
18
|
export declare const RUN_CUT_SHORT = "The run stopped before it finished, without an answer or an error: send it again.";
|
|
19
19
|
/**
|
|
20
20
|
* The name of `reactor.ui` (Reactor's `AGUI_NAME`): its ops come over the
|
|
21
|
-
* conversation's ui socket, never a run stream (
|
|
21
|
+
* conversation's ui socket, never a run stream (RU-W). Held here
|
|
22
22
|
* so that a reader of a run needs no Reactor module; a test holds it to
|
|
23
23
|
* Reactor's.
|
|
24
24
|
*/
|
|
25
25
|
export declare const REACTOR_UI_NAME = "reactor.ui";
|
|
26
26
|
/** What the page says when a `reactor.ui` op comes on a run stream. */
|
|
27
|
-
export declare const UI_ON_RUN = "A reactor.ui op came on the run stream: it comes over the ui socket (
|
|
27
|
+
export declare const UI_ON_RUN = "A reactor.ui op came on the run stream: it comes over the ui socket (RU-W).";
|
|
28
28
|
/** What is said when the `fetch` given cannot read a response as it streams. */
|
|
29
29
|
export declare const NOT_STREAMING = "This fetch does not stream a response: give one whose response body has getReader (expo/fetch on a phone).";
|
|
30
30
|
/** Whether an event ends a run: the run said how it ended. */
|
package/lib/portable/agui.js
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
export const RUN_CUT_SHORT = 'The run stopped before it finished, without an answer or an error: send it again.';
|
|
7
7
|
/**
|
|
8
8
|
* The name of `reactor.ui` (Reactor's `AGUI_NAME`): its ops come over the
|
|
9
|
-
* conversation's ui socket, never a run stream (
|
|
9
|
+
* conversation's ui socket, never a run stream (RU-W). Held here
|
|
10
10
|
* so that a reader of a run needs no Reactor module; a test holds it to
|
|
11
11
|
* Reactor's.
|
|
12
12
|
*/
|
|
13
13
|
export const REACTOR_UI_NAME = 'reactor.ui';
|
|
14
14
|
/** What the page says when a `reactor.ui` op comes on a run stream. */
|
|
15
|
-
export const UI_ON_RUN = 'A reactor.ui op came on the run stream: it comes over the ui socket (
|
|
15
|
+
export const UI_ON_RUN = 'A reactor.ui op came on the run stream: it comes over the ui socket (RU-W).';
|
|
16
16
|
/** What is said when the `fetch` given cannot read a response as it streams. */
|
|
17
17
|
export const NOT_STREAMING = 'This fetch does not stream a response: give one whose response body has getReader (expo/fetch on a phone).';
|
|
18
18
|
/** Whether an event ends a run: the run said how it ended. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* An approval as every card says it (
|
|
2
|
+
* An approval as every card says it (M-016): the shared controller
|
|
3
3
|
* and prop contract under the web's *Waiting for you* and Datalayer Mobile's
|
|
4
4
|
* Inbox and detail. A message to send is shown whole — its recipients,
|
|
5
5
|
* subject and body — and anything else is every argument the tool gave,
|