@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
package/lib/apps/presets.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* The plugin graph is not among them: a host that shows it adds
|
|
21
21
|
* `GraphViewPlugin` (`./plugins/graph`) to the list itself. It brings
|
|
22
22
|
* `@datalayer/reactor-graph` and ECharts with it, which a workspace that never
|
|
23
|
-
* draws the graph — an embedded application (
|
|
23
|
+
* draws the graph — an embedded application (D-08) — should not load.
|
|
24
24
|
*
|
|
25
25
|
* @module apps/presets
|
|
26
26
|
*/
|
|
@@ -142,27 +142,27 @@ export type LoopPresetOptions = {
|
|
|
142
142
|
datalayerAgentSpecId?: string;
|
|
143
143
|
/** What the agent on that runtime is created with besides its spec — an `app_spec`. */
|
|
144
144
|
datalayerCreatePayload?: Record<string, unknown>;
|
|
145
|
-
/** A conversation without an account, on the visitors' runtime (
|
|
145
|
+
/** A conversation without an account, on the visitors' runtime (R-30). */
|
|
146
146
|
datalayerVisitors?: AgentsConfig['datalayerVisitors'];
|
|
147
|
-
/** A deployment's agent, already on the runtime it is kept on (
|
|
147
|
+
/** A deployment's agent, already on the runtime it is kept on (R-33). */
|
|
148
148
|
datalayerKept?: AgentsConfig['datalayerKept'];
|
|
149
|
-
/** An embed token: the embedded application's session, and nothing else (
|
|
149
|
+
/** An embed token: the embedded application's session, and nothing else (R-20). */
|
|
150
150
|
embedToken?: string;
|
|
151
151
|
/** The target is the host's to fix, even with the agent control hidden. */
|
|
152
152
|
targetFixed?: boolean;
|
|
153
153
|
/** The theme the conversation wears, by name; the person's unless said. */
|
|
154
154
|
themeVariant?: string;
|
|
155
|
-
/** Laid over that theme, by mode: an application's accent (
|
|
155
|
+
/** Laid over that theme, by mode: an application's accent (T-05). */
|
|
156
156
|
themeOverrides?: ThemeOverrides;
|
|
157
157
|
/** The mode the conversation is drawn in, when the host decides it; the person's unless said. */
|
|
158
158
|
colorMode?: 'light' | 'dark';
|
|
159
|
-
/** Who is answering, as the person meets them (
|
|
159
|
+
/** Who is answering, as the person meets them (T-08). */
|
|
160
160
|
presence?: ChatPresence;
|
|
161
161
|
/** Whether the counters are shown under the prompt; on unless said. */
|
|
162
162
|
showTokenUsage?: boolean;
|
|
163
|
-
/** Its voice, when it has one
|
|
163
|
+
/** Its voice, when it has one: the chat's `voice`. */
|
|
164
164
|
voice?: ChatPluginConfig['voice'];
|
|
165
|
-
/** The conversation to go on with: an embed's session after a reload (
|
|
165
|
+
/** The conversation to go on with: an embed's session after a reload (D-13). */
|
|
166
166
|
thread?: ResumedThread;
|
|
167
167
|
/**
|
|
168
168
|
* The agentspec the local agent is created from, by id.
|
|
@@ -195,7 +195,7 @@ export type LoopPresetOptions = {
|
|
|
195
195
|
*
|
|
196
196
|
* True by default. A host whose one view is a page of its own — an
|
|
197
197
|
* application that answers in its page and has no agent to talk to, a
|
|
198
|
-
* decision (
|
|
198
|
+
* decision (R-02) — passes `false`: the chat and its composer, the
|
|
199
199
|
* agents, the models, the editors and the page layout all stay out, so
|
|
200
200
|
* that nothing is launched or fetched for a conversation nobody has, and
|
|
201
201
|
* the workspace opens on the view a host's plugin contributes.
|
package/lib/apps/presets.js
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
* The plugin graph is not among them: a host that shows it adds
|
|
25
25
|
* `GraphViewPlugin` (`./plugins/graph`) to the list itself. It brings
|
|
26
26
|
* `@datalayer/reactor-graph` and ECharts with it, which a workspace that never
|
|
27
|
-
* draws the graph — an embedded application (
|
|
27
|
+
* draws the graph — an embedded application (D-08) — should not load.
|
|
28
28
|
*
|
|
29
29
|
* @module apps/presets
|
|
30
30
|
*/
|
|
@@ -110,8 +110,8 @@ export function loopPlugins(options = {}) {
|
|
|
110
110
|
// *Sign in at a company*, where the gateway's `pap_sign_in` answers: its
|
|
111
111
|
// own renderer and binding, beside the surfaces rather than inside them.
|
|
112
112
|
PapSignInPlugin,
|
|
113
|
-
// A coding agent's diff and terminal, where its tool results carry them
|
|
114
|
-
//
|
|
113
|
+
// A coding agent's diff and terminal, where its tool results carry them:
|
|
114
|
+
// two renderers, no binding — the display says what it is.
|
|
115
115
|
ShieldDisplaysPlugin,
|
|
116
116
|
// One footer icon per view, in the composer where the writing hand
|
|
117
117
|
// already is. Each editor's icon withdraws while its editor is not
|
|
@@ -125,7 +125,7 @@ export type LoopWorkspaceProps = {
|
|
|
125
125
|
*/
|
|
126
126
|
headerContainer?: HTMLElement | null;
|
|
127
127
|
/**
|
|
128
|
-
* The sidebar as a rail (
|
|
128
|
+
* The sidebar as a rail (T-07): a narrow column of line icons, one per
|
|
129
129
|
* panel, and the chosen panel beside it — rather than every panel stacked
|
|
130
130
|
* in one column. False by default; an application's shell asks for it. In
|
|
131
131
|
* a `panel` layout the sidebar stays a stack under the view.
|
|
@@ -92,7 +92,7 @@ function WorkspaceBody({ serverUrl, agentId: initialAgentId, conversationId, mod
|
|
|
92
92
|
argv: command.argv,
|
|
93
93
|
});
|
|
94
94
|
// What a command sends goes to the agent as if typed: an
|
|
95
|
-
// application's command sends its prompt (
|
|
95
|
+
// application's command sends its prompt (P-19).
|
|
96
96
|
if (result?.prompt) {
|
|
97
97
|
onSend?.(result.prompt, currentWorkspace.current);
|
|
98
98
|
prompts.submit(result.prompt);
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* array, so it cannot lie about how many plugins there are.
|
|
8
8
|
*
|
|
9
9
|
* Not part of the workspace itself — the workspace has one navigation element
|
|
10
|
-
* and no settings tree
|
|
10
|
+
* and no settings tree. This belongs to the examples that demonstrate it.
|
|
11
11
|
*
|
|
12
12
|
* @module apps/shell/PluginToggles
|
|
13
13
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The rail (
|
|
2
|
+
* The rail (T-07): the workspace's sidebar as a narrow column of line
|
|
3
3
|
* icons, one per panel, and the one panel chosen beside it.
|
|
4
4
|
*
|
|
5
5
|
* The sidebar stacks every panel its plugins contribute — an application's
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A pane opening, at the theme's pace (
|
|
2
|
+
* A pane opening, at the theme's pace (T-10): the third of the three
|
|
3
3
|
* things that move — a message arriving, a status changing, a pane opening.
|
|
4
4
|
*
|
|
5
5
|
* Read from the theme's tokens, `--theme-motion-pane` and
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* A pane opening, at the theme's pace (
|
|
6
|
+
* A pane opening, at the theme's pace (T-10): the third of the three
|
|
7
7
|
* things that move — a message arriving, a status changing, a pane opening.
|
|
8
8
|
*
|
|
9
9
|
* Read from the theme's tokens, `--theme-motion-pane` and
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* 2. Store mode: When `useStore` is true
|
|
10
10
|
* 3. Any protocol supported by ChatBase (AG-UI, A2A, ACP, Vercel AI)
|
|
11
11
|
* 4. A conversation its host draws (`conversation`): the LOOP workspace,
|
|
12
|
-
* which the embed's bubble, panel and assistant hold (
|
|
12
|
+
* which the embed's bubble, panel and assistant hold (R-01) — the
|
|
13
13
|
* floating chrome around it, told by the host what it is doing and what
|
|
14
14
|
* it last said
|
|
15
15
|
*
|
|
@@ -30,7 +30,7 @@ import { type AssistantSandbox } from './assistant/assistantDetails';
|
|
|
30
30
|
import type { ChatCommonProps, ChatViewMode, ThemeOverrides } from '../types';
|
|
31
31
|
/**
|
|
32
32
|
* A conversation the host draws in the floating window, in place of the
|
|
33
|
-
* chat: the LOOP workspace (
|
|
33
|
+
* chat: the LOOP workspace (R-01). The window keeps its chrome — the
|
|
34
34
|
* button, its blink and its balloon, the panel, the assistant, dragging and
|
|
35
35
|
* dismissing — and is told by the host what the conversation is doing and
|
|
36
36
|
* what it last said, which it would otherwise read from its own chat.
|
|
@@ -62,7 +62,7 @@ export interface ChatFloatingProps extends ChatCommonProps {
|
|
|
62
62
|
defaultOpen?: boolean;
|
|
63
63
|
/**
|
|
64
64
|
* Properties laid over the theme the conversation wears, by mode — an
|
|
65
|
-
* application's accent (
|
|
65
|
+
* application's accent (T-05): the chat sets its theme again inside
|
|
66
66
|
* it, so the accent the page around it set does not reach its bubbles.
|
|
67
67
|
*/
|
|
68
68
|
themeOverrides?: ThemeOverrides;
|
|
@@ -107,21 +107,20 @@ export interface ChatFloatingProps extends ChatCommonProps {
|
|
|
107
107
|
* - 'floating': Full-height floating panel (pinned to right edge with offset)
|
|
108
108
|
* - 'floating-small': Standard floating popup
|
|
109
109
|
* - 'floating-draggable': The popup with a handle, movable about the viewport
|
|
110
|
-
* - 'assistant': A character on the page that speaks in a balloon (
|
|
110
|
+
* - 'assistant': A character on the page that speaks in a balloon (T-21)
|
|
111
111
|
* - 'panel': Full-height side panel (right edge, no floating offset)
|
|
112
112
|
* @default 'floating'
|
|
113
113
|
*/
|
|
114
114
|
defaultViewMode?: 'floating' | 'floating-small' | 'floating-draggable' | 'assistant' | 'panel';
|
|
115
115
|
/**
|
|
116
116
|
* The character of the floating assistant: one Datalayer ships, by id
|
|
117
|
-
* (`ASSISTANT_CHARACTERS`,
|
|
117
|
+
* (`ASSISTANT_CHARACTERS`, T-25), or one a person loaded from a file
|
|
118
118
|
* they hold the rights to (`readClippyCharacter`, `readAcsCharacter`, T-26).
|
|
119
119
|
* @default 'paperclip'
|
|
120
120
|
*/
|
|
121
121
|
assistantCharacter?: string | AssistantCharacter | AssistantCharacterData;
|
|
122
122
|
/**
|
|
123
|
-
* How the floating assistant's balloon shows the conversation (
|
|
124
|
-
* T-23; an Appspec's `interface.balloon`):
|
|
123
|
+
* How the floating assistant's balloon shows the conversation (T-23; an Appspec's `interface.balloon`):
|
|
125
124
|
* - 'history': every message, scrolled, under a header that counts them,
|
|
126
125
|
* the composer last; closed, the balloon lists the messages too.
|
|
127
126
|
* - 'current': only what it says or does now — the answer being written,
|
|
@@ -172,7 +171,7 @@ export interface ChatFloatingProps extends ChatCommonProps {
|
|
|
172
171
|
showPanelBackdrop?: boolean;
|
|
173
172
|
/**
|
|
174
173
|
* A conversation the host draws in the window instead of the chat — the
|
|
175
|
-
* LOOP workspace, as the embed's floating modes do (
|
|
174
|
+
* LOOP workspace, as the embed's floating modes do (R-01). The chat's
|
|
176
175
|
* own props (`protocol`, `suggestions`, …) are then not read.
|
|
177
176
|
*/
|
|
178
177
|
conversation?: FloatingConversation;
|
|
@@ -200,7 +199,7 @@ export interface ChatFloatingProps extends ChatCommonProps {
|
|
|
200
199
|
/** The host's own entries of the assistant's menu. */
|
|
201
200
|
contextMenu?: readonly AssistantMenuItem[];
|
|
202
201
|
/**
|
|
203
|
-
* Its voice (
|
|
202
|
+
* Its voice (V1): push-to-talk in the composer, heard on the
|
|
204
203
|
* device; with `output: 'always'`, its answers said by Datalayer's speech
|
|
205
204
|
* service as they are written, the assistant's mouth moving with the sound
|
|
206
205
|
* and its balloon showing the sentence being said.
|
package/lib/chat/ChatFloating.js
CHANGED
|
@@ -14,7 +14,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
14
14
|
* 2. Store mode: When `useStore` is true
|
|
15
15
|
* 3. Any protocol supported by ChatBase (AG-UI, A2A, ACP, Vercel AI)
|
|
16
16
|
* 4. A conversation its host draws (`conversation`): the LOOP workspace,
|
|
17
|
-
* which the embed's bubble, panel and assistant hold (
|
|
17
|
+
* which the embed's bubble, panel and assistant hold (R-01) — the
|
|
18
18
|
* floating chrome around it, told by the host what it is doing and what
|
|
19
19
|
* it last said
|
|
20
20
|
*
|
|
@@ -139,7 +139,7 @@ export function ChatFloating({ endpoint, protocol: protocolProp, useStore: useSt
|
|
|
139
139
|
}
|
|
140
140
|
}, [viewMode, resetDrag]);
|
|
141
141
|
/*
|
|
142
|
-
* The floating assistant (
|
|
142
|
+
* The floating assistant (T-21, T-22, T-27): a character that acts out
|
|
143
143
|
* the presence of what answers — read here from the chat's own loading and
|
|
144
144
|
* items — greets when it arrives, says goodbye when sent away, and is
|
|
145
145
|
* dragged about by itself, the conversation following it.
|
|
@@ -160,7 +160,7 @@ export function ChatFloating({ endpoint, protocol: protocolProp, useStore: useSt
|
|
|
160
160
|
// the balloon draws them with the chat's components.
|
|
161
161
|
const [ownHistory, setOwnHistory] = useState([]);
|
|
162
162
|
/*
|
|
163
|
-
* Its voice (
|
|
163
|
+
* Its voice (V1): the answers said by the speech service, as
|
|
164
164
|
* they are written (VO-20), the state following the sound (VO-22).
|
|
165
165
|
*/
|
|
166
166
|
const [voiceItems, setVoiceItems] = useState([]);
|
|
@@ -1030,7 +1030,7 @@ export function ChatFloating({ endpoint, protocol: protocolProp, useStore: useSt
|
|
|
1030
1030
|
...poweredByProps,
|
|
1031
1031
|
}, description: description, onStateUpdate: onStateUpdate, onNewChat: onNewChat, suggestions: suggestions, submitOnSuggestionClick: submitOnSuggestionClick, hideMessagesAfterToolUI: hideMessagesAfterToolUI, avatarConfig: {
|
|
1032
1032
|
showAvatars: true,
|
|
1033
|
-
}, placeholder: "Type a message...", backgroundColor: "canvas.subtle", frontendTools: frontendTools, showModelSelector: showModelSelector, availableModels: availableModels, showToolsMenu: showToolsMenu, showSkillsMenu: showSkillsMenu, showTokenUsage: showTokenUsage, showContextRing: showContextRing, runtimeId: runtimeId, historyEndpoint: historyEndpoint, historyAuthToken: historyAuthToken, pendingPrompt: pendingPrompt ?? suggestionPrompt, inspector: inspector, showInformation: showInformation, onInformationClick: onInformationClick, onToolCallStart: onToolCallStart, onToolCallComplete: onToolCallComplete, showToolApprovalBanner: showToolApprovalBanner, pendingApprovals: pendingApprovals, onApproveApproval: onApproveApproval, onRejectApproval: onRejectApproval, voice: voice, voiceSpeaking: speakerState.speaking, voiceSentence: speakerState.sentence, onStopSpeaking: speaker ? stopSpeaking : undefined, onReadAloud: speaker ? readAnswerAloud : undefined, ...panelProps, ...assistantChat, onLoadingChange: handleLoadingChange, onDisplayItemsChange: handleDisplayItemsChange, onSendReady: handleSendReady, children: conversationBalloon && currentOpen ? (
|
|
1033
|
+
}, placeholder: "Type a message...", backgroundColor: "canvas.subtle", frontendTools: frontendTools, showModelSelector: showModelSelector, availableModels: availableModels, showToolsMenu: showToolsMenu, showSkillsMenu: showSkillsMenu, showTokenUsage: showTokenUsage, showContextRing: showContextRing, runtimeId: runtimeId, historyEndpoint: historyEndpoint, historyAuthToken: historyAuthToken, pendingPrompt: pendingPrompt ?? suggestionPrompt, inspector: inspector, showInformation: showInformation, onInformationClick: onInformationClick, onToolCallStart: onToolCallStart, onToolCallComplete: onToolCallComplete, showToolApprovalBanner: showToolApprovalBanner, pendingApprovals: pendingApprovals, onApproveApproval: onApproveApproval, onRejectApproval: onRejectApproval, voice: voice, voiceSpeaking: speakerState.speaking, voiceSentence: speakerState.sentence, onStopSpeaking: speaker ? stopSpeaking : undefined, voiceLevel: mouthLevel, onReadAloud: speaker ? readAnswerAloud : undefined, ...panelProps, ...assistantChat, onLoadingChange: handleLoadingChange, onDisplayItemsChange: handleDisplayItemsChange, onSendReady: handleSendReady, children: conversationBalloon && currentOpen ? (
|
|
1034
1034
|
// Current: the one thing said or done now, over the composer.
|
|
1035
1035
|
_jsx(Box, { px: 3, pt: 3, pb: 2, overflow: "hidden", children: _jsx(CurrentBalloonBody, { text: toolSaid ? undefined : (currentWords ?? description), fullText: toolSaid ? undefined : currentWhole, tool: toolSaid, busy: atWork, speaking: answering && atWork, waiting: atWork && !answering }) })) : (children) }))] }));
|
|
1036
1036
|
/*
|
package/lib/chat/ChatInline.js
CHANGED
|
@@ -90,7 +90,7 @@ export function ChatInline({ selectedText, protocol, onReplaceSelection, onInser
|
|
|
90
90
|
const [input, setInput] = useState('');
|
|
91
91
|
// AI state
|
|
92
92
|
const [aiState, setAiState] = useState('initial');
|
|
93
|
-
// The one-shot conversation (
|
|
93
|
+
// The one-shot conversation (M-030): `reduceConversation`'s, as in
|
|
94
94
|
// ChatBase and on the phone; the response is its newest assistant message.
|
|
95
95
|
const [conversation, setConversation] = useState(() => emptyConversation(BROWSER_LIMITS));
|
|
96
96
|
const conversationRef = useRef(conversation);
|
package/lib/chat/ChatLanguage.js
CHANGED
|
@@ -4,7 +4,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
4
4
|
* Distributed under the terms of the Modified BSD License.
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
* The language the chat speaks in (
|
|
7
|
+
* The language the chat speaks in (P-26): the one its host says — the
|
|
8
8
|
* `language` of `AppRenderer` and of the embed — else the browser's.
|
|
9
9
|
*
|
|
10
10
|
* @module chat/ChatLanguage
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The assistant's own menu (
|
|
2
|
+
* The assistant's own menu (T-27): right-click the character — or
|
|
3
3
|
* Shift+F10 or the ContextMenu key while it has the focus, or a long press on
|
|
4
4
|
* a touch screen — and a menu opens where the pointer is, with what applies
|
|
5
5
|
* to this agent on this page: inspect it, open the conversation, the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The floating assistant on the page (
|
|
2
|
+
* The floating assistant on the page (T-21, T-22, T-27): a character in
|
|
3
3
|
* a corner, acting out what the application is doing, with a balloon that
|
|
4
4
|
* says a word while the conversation is closed. Clicked, it opens the
|
|
5
5
|
* conversation; dragged, it moves, and the conversation follows; sent away,
|
|
@@ -205,7 +205,7 @@ export interface AssistantStageProps {
|
|
|
205
205
|
*/
|
|
206
206
|
expandOnArrival?: boolean;
|
|
207
207
|
/**
|
|
208
|
-
* How the balloon shows the conversation (
|
|
208
|
+
* How the balloon shows the conversation (T-23): the conversation
|
|
209
209
|
* (`history`, the default — closed, the messages in `balloon.history`, or
|
|
210
210
|
* a peek of the newest when none are given; open, the whole history), or
|
|
211
211
|
* the one thing being said or done now (`current`).
|
|
@@ -269,8 +269,8 @@ export interface AssistantStageProps {
|
|
|
269
269
|
*/
|
|
270
270
|
decide?: DecisionAsker;
|
|
271
271
|
/**
|
|
272
|
-
* How loud its voice is now, between 0 and 1, while it is heard (
|
|
273
|
-
*
|
|
272
|
+
* How loud its voice is now, between 0 and 1, while it is heard (VO-23):
|
|
273
|
+
* the mouth opens with the sound, in three openings, instead of
|
|
274
274
|
* the talking loop. Still, for a reader who asks for reduced motion.
|
|
275
275
|
*/
|
|
276
276
|
mouthLevel?: () => number;
|
|
@@ -407,7 +407,7 @@ export function AssistantStage({ character, state, size = 88, place, stageRef, o
|
|
|
407
407
|
detailing !== null ||
|
|
408
408
|
stayPut);
|
|
409
409
|
// What it covers in its corner, for a line written under a prompt there
|
|
410
|
-
// (
|
|
410
|
+
// (Q-08).
|
|
411
411
|
const cornerRight = place.left === undefined && place.top === undefined
|
|
412
412
|
? pixels(place.right)
|
|
413
413
|
: undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The parts the two balloon displays are drawn with (
|
|
2
|
+
* The parts the two balloon displays are drawn with (T-23): the tool
|
|
3
3
|
* line ("Using **list_invoices**…"), what a screen reader hears of it, the
|
|
4
4
|
* `current` balloon's *Now*, and the `history` balloon's header
|
|
5
5
|
* ("Conversation · 6").
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A large visual a balloon carries (
|
|
2
|
+
* A large visual a balloon carries (T-23): a notebook today, a chart or
|
|
3
3
|
* a table later. The balloon shows it compact — its `attachment`, such as
|
|
4
4
|
* the read-only preview of a notebook — with an *Expand* button; expanded,
|
|
5
5
|
* the visual is drawn large: into the element the host names
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* A speech balloon over something that stands for the agent — the floating
|
|
3
3
|
* assistant's character, or the floating popup's button while the chat is
|
|
4
4
|
* closed: a peek, one short line — the agent's newest words, as the Office
|
|
5
|
-
* Assistant said them (
|
|
5
|
+
* Assistant said them (T-23), cut to their first words, or a
|
|
6
6
|
* notification — that opens the conversation when clicked, and can be
|
|
7
7
|
* dismissed; an approval it waits on, answered there with *Approve* or
|
|
8
8
|
* *Deny*, and how many more wait; and, where the runtime can be asked and
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* Given suggestions while the agent waits for a question, it offers them as
|
|
17
17
|
* chips under its words: one clicked is sent as the person's prompt.
|
|
18
18
|
*
|
|
19
|
-
* Shown `current` (
|
|
19
|
+
* Shown `current` (T-23), it is the one thing being said or done now:
|
|
20
20
|
* *Now*, then the words as they are written, or the tool being called
|
|
21
21
|
* ("Using **list_invoices**…"), cut to a few lines, and what goes with them
|
|
22
22
|
* (a notebook given, read-only). Either way a tool line stands in for the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* A character one brings, played (
|
|
2
|
+
* A character one brings, played (T-26): the frames of a character file
|
|
3
3
|
* read by `formats` — clippy.js or Microsoft Agent — drawn from its sprite
|
|
4
4
|
* sheet and stepped as the character authored them, its branches included,
|
|
5
5
|
* the animation chosen by the state the stage acts (T-22). Nothing plays for
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Datalayer's own characters for the floating assistant (
|
|
2
|
+
* Datalayer's own characters for the floating assistant (T-25): drawn
|
|
3
3
|
* for LOOP and owned by Datalayer, in the spirit of the Office Assistant —
|
|
4
4
|
* a paper clip of our own, a wizard, a cat and the L👀P eyes. The characters
|
|
5
|
-
* of Office are Microsoft's and are never bundled
|
|
5
|
+
* of Office are Microsoft's and are never bundled; a person loads
|
|
6
6
|
* one they hold the rights to (T-26).
|
|
7
7
|
*
|
|
8
8
|
* Each drawing names its moving parts with classes the stage animates by
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Microsoft Agent's character for the web (
|
|
6
|
+
* Microsoft Agent's character for the web (T-26): an `.acf` that holds
|
|
7
7
|
* the character — its size, palette, states, names — and names one `.aca`
|
|
8
8
|
* file per animation, each holding that animation's frames, images, sounds
|
|
9
9
|
* and mouths. Read in the page after Lebeau's public description (MSAgent
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* The files a person picked, read as one character (
|
|
6
|
+
* The files a person picked, read as one character (T-26): one
|
|
7
7
|
* Microsoft Agent `.acs`; a Microsoft Agent `.acf` with the `.aca` files it
|
|
8
8
|
* names; or a clippy.js character's `agent.js` and map image (and its
|
|
9
9
|
* sounds file, if there is one). Read in the page; nothing is
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* Character files a person brings (
|
|
6
|
+
* Character files a person brings (T-26): clippy.js sprite maps and
|
|
7
7
|
* Microsoft Agent `.acs` files, or `.acf` files with their `.aca` files,
|
|
8
8
|
* read in the page into one shape.
|
|
9
9
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* What the floating assistant acts out (
|
|
2
|
+
* What the floating assistant acts out (T-22): the presence of the
|
|
3
3
|
* application (T-08) — paused among them, when its owner paused it — and
|
|
4
4
|
* three moments of its own — greeting when it
|
|
5
5
|
* arrives, speaking while an answer streams in, goodbye when it is sent away.
|
|
@@ -18,7 +18,7 @@ export interface AssistantMoment {
|
|
|
18
18
|
/** The answer is arriving: words are being written. */
|
|
19
19
|
speaking?: boolean;
|
|
20
20
|
/**
|
|
21
|
-
* Its answer is being heard: sound is playing (
|
|
21
|
+
* Its answer is being heard: sound is playing (VO-22). It speaks
|
|
22
22
|
* while the audio plays, even after the text has ended.
|
|
23
23
|
*/
|
|
24
24
|
voicing?: boolean;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Distributed under the terms of the Modified BSD License.
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
|
-
* What the floating assistant's balloon shows (
|
|
6
|
+
* What the floating assistant's balloon shows (T-23): the whole
|
|
7
7
|
* conversation (`history`), or only what it says or does now (`current`);
|
|
8
8
|
* and, either way, the tool it calls, in plain words — "Using
|
|
9
9
|
* **list_invoices**…", then "Done: list_invoices" or "list_invoices failed".
|