@deepseek-harness-tui/dsh-tui 0.13.0 → 0.14.0
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/README.md +85 -5
- package/assets/claude-girl/claude-girl-happy.png +0 -0
- package/assets/claude-girl/claude-girl.png +0 -0
- package/assets/codex-girl/codex-girl-happy.png +0 -0
- package/assets/codex-girl/codex-girl.png +0 -0
- package/bin/dsh-tui.js +104 -18
- package/cordis.patch.yml +2 -0
- package/cordis.yml +2 -0
- package/guide/dsh-tui-guide/SKILL.md +4 -2
- package/guide/dsh-tui-guide/claude-backend.en.md +203 -0
- package/guide/dsh-tui-guide/claude-backend.md +161 -0
- package/guide/dsh-tui-guide/codex-backend.en.md +297 -0
- package/guide/dsh-tui-guide/codex-backend.md +257 -0
- package/guide/dsh-tui-guide/configuration.en.md +9 -2
- package/guide/dsh-tui-guide/configuration.md +9 -2
- package/guide/dsh-tui-guide/interaction.en.md +169 -27
- package/guide/dsh-tui-guide/interaction.md +115 -17
- package/guide/dsh-tui-guide/themes.en.md +24 -2
- package/guide/dsh-tui-guide/themes.md +21 -2
- package/guide/dsh-tui-guide/user-guide.en.md +38 -23
- package/guide/dsh-tui-guide/user-guide.md +22 -11
- package/guide/dsh-tui-guide/vscode.en.md +1 -0
- package/guide/dsh-tui-guide/vscode.md +1 -0
- package/lib/settings.json +139 -6
- package/lib/types/adapter/channel/state.d.ts.map +1 -1
- package/lib/types/adapter/channel/state.js +1 -0
- package/lib/types/adapter/channel/ui-policy.d.ts +17 -2
- package/lib/types/adapter/channel/ui-policy.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui-policy.js +29 -0
- package/lib/types/adapter/channel/ui.d.ts.map +1 -1
- package/lib/types/adapter/channel/ui.js +45 -5
- package/lib/types/adapter/ports/channel-catalog.d.ts +7 -0
- package/lib/types/adapter/ports/channel-catalog.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-display.d.ts +7 -1
- package/lib/types/adapter/ports/channel-display.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-session.d.ts +5 -0
- package/lib/types/adapter/ports/channel-session.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-settings.d.ts +20 -0
- package/lib/types/adapter/ports/channel-settings.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-ui.d.ts +183 -6
- package/lib/types/adapter/ports/channel-ui.d.ts.map +1 -1
- package/lib/types/adapter/ports/channel-view.d.ts +477 -13
- package/lib/types/adapter/ports/channel-view.d.ts.map +1 -1
- package/lib/types/agent/backend.d.ts +168 -0
- package/lib/types/agent/backend.d.ts.map +1 -0
- package/lib/types/agent/backend.js +1 -0
- package/lib/types/agent/capabilities.d.ts +461 -0
- package/lib/types/agent/capabilities.d.ts.map +1 -0
- package/lib/types/agent/capabilities.js +1 -0
- package/lib/types/agent/events.d.ts +733 -0
- package/lib/types/agent/events.d.ts.map +1 -0
- package/lib/types/agent/events.js +2 -0
- package/lib/types/agent/index.d.ts +8 -0
- package/lib/types/agent/index.d.ts.map +1 -0
- package/lib/types/agent/index.js +7 -0
- package/lib/types/agent/messages.d.ts +52 -0
- package/lib/types/agent/messages.d.ts.map +1 -0
- package/lib/types/agent/messages.js +91 -0
- package/lib/types/agent/presentation.d.ts +29 -0
- package/lib/types/agent/presentation.d.ts.map +1 -0
- package/lib/types/agent/presentation.js +4 -0
- package/lib/types/agent/refs.d.ts +30 -0
- package/lib/types/agent/refs.d.ts.map +1 -0
- package/lib/types/agent/refs.js +39 -0
- package/lib/types/agent/session.d.ts +78 -0
- package/lib/types/agent/session.d.ts.map +1 -0
- package/lib/types/agent/session.js +1 -0
- package/lib/types/backends/claude/activity.d.ts +53 -0
- package/lib/types/backends/claude/activity.d.ts.map +1 -0
- package/lib/types/backends/claude/activity.js +103 -0
- package/lib/types/backends/claude/auth.d.ts +245 -0
- package/lib/types/backends/claude/auth.d.ts.map +1 -0
- package/lib/types/backends/claude/auth.js +503 -0
- package/lib/types/backends/claude/backend.d.ts +32 -0
- package/lib/types/backends/claude/backend.d.ts.map +1 -0
- package/lib/types/backends/claude/backend.js +296 -0
- package/lib/types/backends/claude/catalog.d.ts +17 -0
- package/lib/types/backends/claude/catalog.d.ts.map +1 -0
- package/lib/types/backends/claude/catalog.js +94 -0
- package/lib/types/backends/claude/channels.d.ts +63 -0
- package/lib/types/backends/claude/channels.d.ts.map +1 -0
- package/lib/types/backends/claude/channels.js +275 -0
- package/lib/types/backends/claude/contract.d.ts +37 -0
- package/lib/types/backends/claude/contract.d.ts.map +1 -0
- package/lib/types/backends/claude/contract.js +46 -0
- package/lib/types/backends/claude/controls.d.ts +134 -0
- package/lib/types/backends/claude/controls.d.ts.map +1 -0
- package/lib/types/backends/claude/controls.js +425 -0
- package/lib/types/backends/claude/dialogs.d.ts +62 -0
- package/lib/types/backends/claude/dialogs.d.ts.map +1 -0
- package/lib/types/backends/claude/dialogs.js +253 -0
- package/lib/types/backends/claude/flag-settings.d.ts +12 -0
- package/lib/types/backends/claude/flag-settings.d.ts.map +1 -0
- package/lib/types/backends/claude/flag-settings.js +49 -0
- package/lib/types/backends/claude/images.d.ts +49 -0
- package/lib/types/backends/claude/images.d.ts.map +1 -0
- package/lib/types/backends/claude/images.js +94 -0
- package/lib/types/backends/claude/index.d.ts +5 -0
- package/lib/types/backends/claude/index.d.ts.map +1 -0
- package/lib/types/backends/claude/index.js +4 -0
- package/lib/types/backends/claude/install.d.ts +15 -0
- package/lib/types/backends/claude/install.d.ts.map +1 -0
- package/lib/types/backends/claude/install.js +91 -0
- package/lib/types/backends/claude/modelEnv.d.ts +64 -0
- package/lib/types/backends/claude/modelEnv.d.ts.map +1 -0
- package/lib/types/backends/claude/modelEnv.js +199 -0
- package/lib/types/backends/claude/narrow.d.ts +10 -0
- package/lib/types/backends/claude/narrow.d.ts.map +1 -0
- package/lib/types/backends/claude/narrow.js +8 -0
- package/lib/types/backends/claude/older-history.d.ts +16 -0
- package/lib/types/backends/claude/older-history.d.ts.map +1 -0
- package/lib/types/backends/claude/older-history.js +101 -0
- package/lib/types/backends/claude/options.d.ts +181 -0
- package/lib/types/backends/claude/options.d.ts.map +1 -0
- package/lib/types/backends/claude/options.js +208 -0
- package/lib/types/backends/claude/permissions.d.ts +83 -0
- package/lib/types/backends/claude/permissions.d.ts.map +1 -0
- package/lib/types/backends/claude/permissions.js +331 -0
- package/lib/types/backends/claude/prefs.d.ts +55 -0
- package/lib/types/backends/claude/prefs.d.ts.map +1 -0
- package/lib/types/backends/claude/prefs.js +150 -0
- package/lib/types/backends/claude/process.d.ts +19 -0
- package/lib/types/backends/claude/process.d.ts.map +1 -0
- package/lib/types/backends/claude/process.js +156 -0
- package/lib/types/backends/claude/replay.d.ts +129 -0
- package/lib/types/backends/claude/replay.d.ts.map +1 -0
- package/lib/types/backends/claude/replay.js +505 -0
- package/lib/types/backends/claude/sdk-warnings.d.ts +23 -0
- package/lib/types/backends/claude/sdk-warnings.d.ts.map +1 -0
- package/lib/types/backends/claude/sdk-warnings.js +55 -0
- package/lib/types/backends/claude/sdk.d.ts +12 -0
- package/lib/types/backends/claude/sdk.d.ts.map +1 -0
- package/lib/types/backends/claude/sdk.js +34 -0
- package/lib/types/backends/claude/send-message.d.ts +54 -0
- package/lib/types/backends/claude/send-message.d.ts.map +1 -0
- package/lib/types/backends/claude/send-message.js +65 -0
- package/lib/types/backends/claude/session/auth.d.ts +47 -0
- package/lib/types/backends/claude/session/auth.d.ts.map +1 -0
- package/lib/types/backends/claude/session/auth.js +226 -0
- package/lib/types/backends/claude/session/channels.d.ts +82 -0
- package/lib/types/backends/claude/session/channels.d.ts.map +1 -0
- package/lib/types/backends/claude/session/channels.js +45 -0
- package/lib/types/backends/claude/session/input.d.ts +16 -0
- package/lib/types/backends/claude/session/input.d.ts.map +1 -0
- package/lib/types/backends/claude/session/input.js +64 -0
- package/lib/types/backends/claude/session/lifecycle.d.ts +6 -0
- package/lib/types/backends/claude/session/lifecycle.d.ts.map +1 -0
- package/lib/types/backends/claude/session/lifecycle.js +852 -0
- package/lib/types/backends/claude/session/store.d.ts +17 -0
- package/lib/types/backends/claude/session/store.d.ts.map +1 -0
- package/lib/types/backends/claude/session/store.js +122 -0
- package/lib/types/backends/claude/session/subagents.d.ts +13 -0
- package/lib/types/backends/claude/session/subagents.d.ts.map +1 -0
- package/lib/types/backends/claude/session/subagents.js +77 -0
- package/lib/types/backends/claude/session/types.d.ts +89 -0
- package/lib/types/backends/claude/session/types.d.ts.map +1 -0
- package/lib/types/backends/claude/session/types.js +1 -0
- package/lib/types/backends/claude/session.d.ts +4 -0
- package/lib/types/backends/claude/session.d.ts.map +1 -0
- package/lib/types/backends/claude/session.js +2 -0
- package/lib/types/backends/claude/side-query.d.ts +34 -0
- package/lib/types/backends/claude/side-query.d.ts.map +1 -0
- package/lib/types/backends/claude/side-query.js +116 -0
- package/lib/types/backends/claude/task-output.d.ts +13 -0
- package/lib/types/backends/claude/task-output.d.ts.map +1 -0
- package/lib/types/backends/claude/task-output.js +101 -0
- package/lib/types/backends/claude/tools.d.ts +45 -0
- package/lib/types/backends/claude/tools.d.ts.map +1 -0
- package/lib/types/backends/claude/tools.js +231 -0
- package/lib/types/backends/claude/transcript-file.d.ts +41 -0
- package/lib/types/backends/claude/transcript-file.d.ts.map +1 -0
- package/lib/types/backends/claude/transcript-file.js +195 -0
- package/lib/types/backends/claude/translate/attempts.d.ts +33 -0
- package/lib/types/backends/claude/translate/attempts.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/attempts.js +243 -0
- package/lib/types/backends/claude/translate/content.d.ts +33 -0
- package/lib/types/backends/claude/translate/content.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/content.js +91 -0
- package/lib/types/backends/claude/translate/core.d.ts +76 -0
- package/lib/types/backends/claude/translate/core.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/core.js +447 -0
- package/lib/types/backends/claude/translate/events.d.ts +9 -0
- package/lib/types/backends/claude/translate/events.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/events.js +77 -0
- package/lib/types/backends/claude/translate/lanes.d.ts +31 -0
- package/lib/types/backends/claude/translate/lanes.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/lanes.js +177 -0
- package/lib/types/backends/claude/translate/messages.d.ts +36 -0
- package/lib/types/backends/claude/translate/messages.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/messages.js +202 -0
- package/lib/types/backends/claude/translate/system.d.ts +40 -0
- package/lib/types/backends/claude/translate/system.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/system.js +399 -0
- package/lib/types/backends/claude/translate/tasks.d.ts +19 -0
- package/lib/types/backends/claude/translate/tasks.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/tasks.js +159 -0
- package/lib/types/backends/claude/translate/types.d.ts +114 -0
- package/lib/types/backends/claude/translate/types.d.ts.map +1 -0
- package/lib/types/backends/claude/translate/types.js +1 -0
- package/lib/types/backends/claude/translate.d.ts +9 -0
- package/lib/types/backends/claude/translate.d.ts.map +1 -0
- package/lib/types/backends/claude/translate.js +6 -0
- package/lib/types/backends/codex/auth/external-tokens.d.ts +66 -0
- package/lib/types/backends/codex/auth/external-tokens.d.ts.map +1 -0
- package/lib/types/backends/codex/auth/external-tokens.js +325 -0
- package/lib/types/backends/codex/auth/route.d.ts +14 -0
- package/lib/types/backends/codex/auth/route.d.ts.map +1 -0
- package/lib/types/backends/codex/auth/route.js +52 -0
- package/lib/types/backends/codex/auth/status.d.ts +16 -0
- package/lib/types/backends/codex/auth/status.d.ts.map +1 -0
- package/lib/types/backends/codex/auth/status.js +115 -0
- package/lib/types/backends/codex/backend.d.ts +58 -0
- package/lib/types/backends/codex/backend.d.ts.map +1 -0
- package/lib/types/backends/codex/backend.js +201 -0
- package/lib/types/backends/codex/catalog.d.ts +17 -0
- package/lib/types/backends/codex/catalog.d.ts.map +1 -0
- package/lib/types/backends/codex/catalog.js +128 -0
- package/lib/types/backends/codex/channels.d.ts +59 -0
- package/lib/types/backends/codex/channels.d.ts.map +1 -0
- package/lib/types/backends/codex/channels.js +274 -0
- package/lib/types/backends/codex/contract.d.ts +46 -0
- package/lib/types/backends/codex/contract.d.ts.map +1 -0
- package/lib/types/backends/codex/contract.js +80 -0
- package/lib/types/backends/codex/detect.d.ts +14 -0
- package/lib/types/backends/codex/detect.d.ts.map +1 -0
- package/lib/types/backends/codex/detect.js +90 -0
- package/lib/types/backends/codex/index.d.ts +6 -0
- package/lib/types/backends/codex/index.d.ts.map +1 -0
- package/lib/types/backends/codex/index.js +5 -0
- package/lib/types/backends/codex/modes.d.ts +16 -0
- package/lib/types/backends/codex/modes.d.ts.map +1 -0
- package/lib/types/backends/codex/modes.js +49 -0
- package/lib/types/backends/codex/narrow.d.ts +20 -0
- package/lib/types/backends/codex/narrow.d.ts.map +1 -0
- package/lib/types/backends/codex/narrow.js +18 -0
- package/lib/types/backends/codex/prefs.d.ts +42 -0
- package/lib/types/backends/codex/prefs.d.ts.map +1 -0
- package/lib/types/backends/codex/prefs.js +124 -0
- package/lib/types/backends/codex/protocol/index.d.ts +149 -0
- package/lib/types/backends/codex/protocol/index.d.ts.map +1 -0
- package/lib/types/backends/codex/protocol/index.js +130 -0
- package/lib/types/backends/codex/rpc/binary.d.ts +35 -0
- package/lib/types/backends/codex/rpc/binary.d.ts.map +1 -0
- package/lib/types/backends/codex/rpc/binary.js +174 -0
- package/lib/types/backends/codex/rpc/client.d.ts +72 -0
- package/lib/types/backends/codex/rpc/client.d.ts.map +1 -0
- package/lib/types/backends/codex/rpc/client.js +214 -0
- package/lib/types/backends/codex/rpc/hub.d.ts +105 -0
- package/lib/types/backends/codex/rpc/hub.d.ts.map +1 -0
- package/lib/types/backends/codex/rpc/hub.js +532 -0
- package/lib/types/backends/codex/rpc/transport.d.ts +39 -0
- package/lib/types/backends/codex/rpc/transport.d.ts.map +1 -0
- package/lib/types/backends/codex/rpc/transport.js +212 -0
- package/lib/types/backends/codex/session/activity.d.ts +18 -0
- package/lib/types/backends/codex/session/activity.d.ts.map +1 -0
- package/lib/types/backends/codex/session/activity.js +108 -0
- package/lib/types/backends/codex/session/approvals.d.ts +39 -0
- package/lib/types/backends/codex/session/approvals.d.ts.map +1 -0
- package/lib/types/backends/codex/session/approvals.js +477 -0
- package/lib/types/backends/codex/session/commands.d.ts +37 -0
- package/lib/types/backends/codex/session/commands.d.ts.map +1 -0
- package/lib/types/backends/codex/session/commands.js +141 -0
- package/lib/types/backends/codex/session/controls.d.ts +37 -0
- package/lib/types/backends/codex/session/controls.d.ts.map +1 -0
- package/lib/types/backends/codex/session/controls.js +303 -0
- package/lib/types/backends/codex/session/goals.d.ts +25 -0
- package/lib/types/backends/codex/session/goals.d.ts.map +1 -0
- package/lib/types/backends/codex/session/goals.js +97 -0
- package/lib/types/backends/codex/session/history.d.ts +52 -0
- package/lib/types/backends/codex/session/history.d.ts.map +1 -0
- package/lib/types/backends/codex/session/history.js +196 -0
- package/lib/types/backends/codex/session/images.d.ts +17 -0
- package/lib/types/backends/codex/session/images.d.ts.map +1 -0
- package/lib/types/backends/codex/session/images.js +138 -0
- package/lib/types/backends/codex/session/input.d.ts +75 -0
- package/lib/types/backends/codex/session/input.d.ts.map +1 -0
- package/lib/types/backends/codex/session/input.js +294 -0
- package/lib/types/backends/codex/session/plan-review.d.ts +19 -0
- package/lib/types/backends/codex/session/plan-review.d.ts.map +1 -0
- package/lib/types/backends/codex/session/plan-review.js +48 -0
- package/lib/types/backends/codex/session/prompts.d.ts +7 -0
- package/lib/types/backends/codex/session/prompts.d.ts.map +1 -0
- package/lib/types/backends/codex/session/prompts.js +47 -0
- package/lib/types/backends/codex/session/session.d.ts +12 -0
- package/lib/types/backends/codex/session/session.d.ts.map +1 -0
- package/lib/types/backends/codex/session/session.js +871 -0
- package/lib/types/backends/codex/session/side-query.d.ts +25 -0
- package/lib/types/backends/codex/session/side-query.d.ts.map +1 -0
- package/lib/types/backends/codex/session/side-query.js +121 -0
- package/lib/types/backends/codex/session/state.d.ts +57 -0
- package/lib/types/backends/codex/session/state.d.ts.map +1 -0
- package/lib/types/backends/codex/session/state.js +1 -0
- package/lib/types/backends/codex/session/subagents.d.ts +28 -0
- package/lib/types/backends/codex/session/subagents.d.ts.map +1 -0
- package/lib/types/backends/codex/session/subagents.js +286 -0
- package/lib/types/backends/codex/session/tasks.d.ts +25 -0
- package/lib/types/backends/codex/session/tasks.d.ts.map +1 -0
- package/lib/types/backends/codex/session/tasks.js +207 -0
- package/lib/types/backends/codex/session/tool-output.d.ts +9 -0
- package/lib/types/backends/codex/session/tool-output.d.ts.map +1 -0
- package/lib/types/backends/codex/session/tool-output.js +29 -0
- package/lib/types/backends/codex/translate/commands.d.ts +30 -0
- package/lib/types/backends/codex/translate/commands.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/commands.js +103 -0
- package/lib/types/backends/codex/translate/events.d.ts +9 -0
- package/lib/types/backends/codex/translate/events.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/events.js +71 -0
- package/lib/types/backends/codex/translate/items.d.ts +112 -0
- package/lib/types/backends/codex/translate/items.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/items.js +375 -0
- package/lib/types/backends/codex/translate/live.d.ts +39 -0
- package/lib/types/backends/codex/translate/live.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/live.js +315 -0
- package/lib/types/backends/codex/translate/notices.d.ts +27 -0
- package/lib/types/backends/codex/translate/notices.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/notices.js +99 -0
- package/lib/types/backends/codex/translate/presentation.d.ts +49 -0
- package/lib/types/backends/codex/translate/presentation.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/presentation.js +237 -0
- package/lib/types/backends/codex/translate/replay.d.ts +18 -0
- package/lib/types/backends/codex/translate/replay.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/replay.js +33 -0
- package/lib/types/backends/codex/translate/usage.d.ts +29 -0
- package/lib/types/backends/codex/translate/usage.d.ts.map +1 -0
- package/lib/types/backends/codex/translate/usage.js +65 -0
- package/lib/types/backends/shared/atomic-file.d.ts +4 -0
- package/lib/types/backends/shared/atomic-file.d.ts.map +1 -0
- package/lib/types/backends/shared/atomic-file.js +52 -0
- package/lib/types/backends/shared/channel-tokens.d.ts +29 -0
- package/lib/types/backends/shared/channel-tokens.d.ts.map +1 -0
- package/lib/types/backends/shared/channel-tokens.js +161 -0
- package/lib/types/backends/shared/display-path.d.ts +3 -0
- package/lib/types/backends/shared/display-path.d.ts.map +1 -0
- package/lib/types/backends/shared/display-path.js +12 -0
- package/lib/types/branding.d.ts +92 -0
- package/lib/types/branding.d.ts.map +1 -0
- package/lib/types/branding.js +117 -0
- package/lib/types/channel/activity.d.ts +53 -0
- package/lib/types/channel/activity.d.ts.map +1 -0
- package/lib/types/channel/activity.js +955 -0
- package/lib/types/channel/capabilities.d.ts +24 -0
- package/lib/types/channel/capabilities.d.ts.map +1 -0
- package/lib/types/channel/capabilities.js +57 -0
- package/lib/types/channel/channel-slug.d.ts +9 -0
- package/lib/types/channel/channel-slug.d.ts.map +1 -0
- package/lib/types/channel/channel-slug.js +15 -0
- package/lib/types/channel/channel-wizard.d.ts +30 -0
- package/lib/types/channel/channel-wizard.d.ts.map +1 -0
- package/lib/types/channel/channel-wizard.js +226 -0
- package/lib/types/channel/elicitation.d.ts +135 -0
- package/lib/types/channel/elicitation.d.ts.map +1 -0
- package/lib/types/channel/elicitation.js +360 -0
- package/lib/types/channel/goal-command.d.ts +49 -0
- package/lib/types/channel/goal-command.d.ts.map +1 -0
- package/lib/types/channel/goal-command.js +72 -0
- package/lib/types/channel/history-restore.d.ts +16 -0
- package/lib/types/channel/history-restore.d.ts.map +1 -0
- package/lib/types/channel/history-restore.js +214 -0
- package/lib/types/channel/interaction.d.ts +38 -0
- package/lib/types/channel/interaction.d.ts.map +1 -0
- package/lib/types/channel/interaction.js +110 -0
- package/lib/types/channel/job-format.d.ts +6 -0
- package/lib/types/channel/job-format.d.ts.map +1 -0
- package/lib/types/channel/job-format.js +12 -0
- package/lib/types/channel/live-output.d.ts +35 -0
- package/lib/types/channel/live-output.d.ts.map +1 -0
- package/lib/types/channel/live-output.js +74 -0
- package/lib/types/channel/model-capabilities.d.ts +10 -0
- package/lib/types/channel/model-capabilities.d.ts.map +1 -0
- package/lib/types/channel/model-capabilities.js +51 -0
- package/lib/types/channel/permissions.d.ts +155 -0
- package/lib/types/channel/permissions.d.ts.map +1 -0
- package/lib/types/channel/permissions.js +188 -0
- package/lib/types/channel/projection.d.ts +110 -0
- package/lib/types/channel/projection.d.ts.map +1 -0
- package/lib/types/channel/projection.js +1521 -0
- package/lib/types/channel/question-record.d.ts +76 -0
- package/lib/types/channel/question-record.d.ts.map +1 -0
- package/lib/types/channel/question-record.js +109 -0
- package/lib/types/channel/questions.d.ts +204 -0
- package/lib/types/channel/questions.d.ts.map +1 -0
- package/lib/types/channel/questions.js +286 -0
- package/lib/types/channel/sanitize.d.ts +49 -0
- package/lib/types/channel/sanitize.d.ts.map +1 -0
- package/lib/types/channel/sanitize.js +88 -0
- package/lib/types/channel/selection-record.d.ts +18 -0
- package/lib/types/channel/selection-record.d.ts.map +1 -0
- package/lib/types/channel/selection-record.js +45 -0
- package/lib/types/channel/side-prompts.d.ts +59 -0
- package/lib/types/channel/side-prompts.d.ts.map +1 -0
- package/lib/types/channel/side-prompts.js +127 -0
- package/lib/types/channel/transcript.d.ts +17 -0
- package/lib/types/channel/transcript.d.ts.map +1 -0
- package/lib/types/channel/transcript.js +19 -0
- package/lib/types/channel/usage.d.ts +48 -0
- package/lib/types/channel/usage.d.ts.map +1 -0
- package/lib/types/channel/usage.js +143 -0
- package/lib/types/commands.d.ts +147 -0
- package/lib/types/commands.d.ts.map +1 -1
- package/lib/types/commands.js +196 -2
- package/lib/types/components/AgentMessageComposer.d.ts +50 -0
- package/lib/types/components/AgentMessageComposer.d.ts.map +1 -0
- package/lib/types/components/AgentMessageComposer.js +159 -0
- package/lib/types/components/BtwPanel.d.ts +13 -12
- package/lib/types/components/BtwPanel.d.ts.map +1 -1
- package/lib/types/components/BtwPanel.js +35 -24
- package/lib/types/components/ChannelPicker.d.ts +40 -0
- package/lib/types/components/ChannelPicker.d.ts.map +1 -0
- package/lib/types/components/ChannelPicker.js +26 -0
- package/lib/types/components/Chat/JobCard.d.ts +29 -31
- package/lib/types/components/Chat/JobCard.d.ts.map +1 -1
- package/lib/types/components/Chat/JobCard.js +31 -112
- package/lib/types/components/Chat/SubagentMessage.d.ts +4 -1
- package/lib/types/components/Chat/SubagentMessage.d.ts.map +1 -1
- package/lib/types/components/Chat/SubagentMessage.js +10 -3
- package/lib/types/components/ClaudeGirl.d.ts +27 -0
- package/lib/types/components/ClaudeGirl.d.ts.map +1 -0
- package/lib/types/components/ClaudeGirl.js +30 -0
- package/lib/types/components/CodeBlockFrame.d.ts +19 -0
- package/lib/types/components/CodeBlockFrame.d.ts.map +1 -0
- package/lib/types/components/CodeBlockFrame.js +138 -0
- package/lib/types/components/CommandSuggestions.d.ts +10 -1
- package/lib/types/components/CommandSuggestions.d.ts.map +1 -1
- package/lib/types/components/CommandSuggestions.js +20 -3
- package/lib/types/components/ContextBarView.d.ts +2 -2
- package/lib/types/components/ContextBarView.d.ts.map +1 -1
- package/lib/types/components/ContextBarView.js +18 -8
- package/lib/types/components/EffortChargeGlyph.d.ts +1 -1
- package/lib/types/components/EffortChargeGlyph.d.ts.map +1 -1
- package/lib/types/components/EffortChargeGlyph.js +3 -4
- package/lib/types/components/EffortInputBorder.d.ts +1 -2
- package/lib/types/components/EffortInputBorder.d.ts.map +1 -1
- package/lib/types/components/EffortInputBorder.js +7 -4
- package/lib/types/components/EffortSlider.d.ts +5 -1
- package/lib/types/components/EffortSlider.d.ts.map +1 -1
- package/lib/types/components/EffortSlider.js +2 -2
- package/lib/types/components/EffortTierBadge.d.ts +1 -2
- package/lib/types/components/EffortTierBadge.d.ts.map +1 -1
- package/lib/types/components/EffortTierBadge.js +8 -5
- package/lib/types/components/GoalTodoPanel.d.ts +2 -1
- package/lib/types/components/GoalTodoPanel.d.ts.map +1 -1
- package/lib/types/components/GoalTodoPanel.js +11 -5
- package/lib/types/components/InlineMathParagraph.js +1 -1
- package/lib/types/components/JobsPanel.d.ts +8 -9
- package/lib/types/components/JobsPanel.d.ts.map +1 -1
- package/lib/types/components/JobsPanel.js +72 -13
- package/lib/types/components/KernelPicker.d.ts +28 -0
- package/lib/types/components/KernelPicker.d.ts.map +1 -0
- package/lib/types/components/KernelPicker.js +37 -0
- package/lib/types/components/LogoV2.d.ts +7 -1
- package/lib/types/components/LogoV2.d.ts.map +1 -1
- package/lib/types/components/LogoV2.js +120 -24
- package/lib/types/components/Markdown.d.ts +2 -1
- package/lib/types/components/Markdown.d.ts.map +1 -1
- package/lib/types/components/Markdown.js +37 -8
- package/lib/types/components/MathBlock.d.ts.map +1 -1
- package/lib/types/components/MathBlock.js +3 -1
- package/lib/types/components/MermaidDiagram.d.ts.map +1 -1
- package/lib/types/components/MermaidDiagram.js +7 -5
- package/lib/types/components/MessageList.d.ts +21 -3
- package/lib/types/components/MessageList.d.ts.map +1 -1
- package/lib/types/components/MessageList.js +62 -42
- package/lib/types/components/ModePicker.d.ts +20 -0
- package/lib/types/components/ModePicker.d.ts.map +1 -0
- package/lib/types/components/ModePicker.js +17 -0
- package/lib/types/components/PromptInput.d.ts +2 -2
- package/lib/types/components/PromptInput.d.ts.map +1 -1
- package/lib/types/components/PromptInput.js +308 -55
- package/lib/types/components/SdkInstallWizard.d.ts +44 -0
- package/lib/types/components/SdkInstallWizard.d.ts.map +1 -0
- package/lib/types/components/SdkInstallWizard.js +18 -0
- package/lib/types/components/SearchBox.d.ts +7 -8
- package/lib/types/components/SearchBox.d.ts.map +1 -1
- package/lib/types/components/SearchBox.js +18 -9
- package/lib/types/components/SplitDiffView.d.ts.map +1 -1
- package/lib/types/components/SplitDiffView.js +113 -6
- package/lib/types/components/StarPrompt.d.ts.map +1 -1
- package/lib/types/components/StarPrompt.js +5 -3
- package/lib/types/components/StreamingMarkdown.d.ts.map +1 -1
- package/lib/types/components/StreamingMarkdown.js +6 -4
- package/lib/types/components/SubagentCard.d.ts +2 -1
- package/lib/types/components/SubagentCard.d.ts.map +1 -1
- package/lib/types/components/SubagentCard.js +25 -18
- package/lib/types/components/SubagentDashboard.d.ts +10 -6
- package/lib/types/components/SubagentDashboard.d.ts.map +1 -1
- package/lib/types/components/SubagentDashboard.js +32 -21
- package/lib/types/components/SubagentDetailScene.d.ts +16 -1
- package/lib/types/components/SubagentDetailScene.d.ts.map +1 -1
- package/lib/types/components/SubagentDetailScene.js +196 -45
- package/lib/types/components/SyntaxText.d.ts.map +1 -1
- package/lib/types/components/SyntaxText.js +4 -1
- package/lib/types/components/TurnInterruptedRow.d.ts +3 -1
- package/lib/types/components/TurnInterruptedRow.d.ts.map +1 -1
- package/lib/types/components/TurnInterruptedRow.js +6 -3
- package/lib/types/components/TurnUsageRow.d.ts +24 -0
- package/lib/types/components/TurnUsageRow.d.ts.map +1 -0
- package/lib/types/components/TurnUsageRow.js +46 -0
- package/lib/types/components/WorkingSpinner.d.ts +2 -1
- package/lib/types/components/WorkingSpinner.d.ts.map +1 -1
- package/lib/types/components/WorkingSpinner.js +21 -4
- package/lib/types/components/approvals/ApprovalPanel.d.ts +36 -13
- package/lib/types/components/approvals/ApprovalPanel.d.ts.map +1 -1
- package/lib/types/components/approvals/ApprovalPanel.js +173 -25
- package/lib/types/components/claudeGirlSprite.d.ts +18 -0
- package/lib/types/components/claudeGirlSprite.d.ts.map +1 -0
- package/lib/types/components/claudeGirlSprite.js +48 -0
- package/lib/types/components/design-system/ThemeProvider.d.ts.map +1 -1
- package/lib/types/components/design-system/ThemeProvider.js +46 -13
- package/lib/types/components/design-system/ThemedText.d.ts +3 -1
- package/lib/types/components/design-system/ThemedText.d.ts.map +1 -1
- package/lib/types/components/design-system/ThemedText.js +2 -2
- package/lib/types/components/diffPatch.d.ts +55 -0
- package/lib/types/components/diffPatch.d.ts.map +1 -0
- package/lib/types/components/diffPatch.js +142 -0
- package/lib/types/components/kernelCatalog.d.ts +48 -0
- package/lib/types/components/kernelCatalog.d.ts.map +1 -0
- package/lib/types/components/kernelCatalog.js +53 -0
- package/lib/types/components/launchpadActions.d.ts +13 -6
- package/lib/types/components/launchpadActions.d.ts.map +1 -1
- package/lib/types/components/launchpadActions.js +26 -4
- package/lib/types/components/launchpadParams.d.ts +101 -0
- package/lib/types/components/launchpadParams.d.ts.map +1 -0
- package/lib/types/components/launchpadParams.js +171 -0
- package/lib/types/components/maidPortrait.d.ts +37 -5
- package/lib/types/components/maidPortrait.d.ts.map +1 -1
- package/lib/types/components/maidPortrait.js +73 -54
- package/lib/types/components/messages/AgentMessageFlow.d.ts +20 -0
- package/lib/types/components/messages/AgentMessageFlow.d.ts.map +1 -0
- package/lib/types/components/messages/AgentMessageFlow.js +37 -0
- package/lib/types/components/messages/AssistantThinkingMessage.d.ts +6 -1
- package/lib/types/components/messages/AssistantThinkingMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantThinkingMessage.js +29 -5
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts +11 -2
- package/lib/types/components/messages/AssistantToolUseMessage.d.ts.map +1 -1
- package/lib/types/components/messages/AssistantToolUseMessage.js +289 -36
- package/lib/types/components/messages/TranscriptLeaves.d.ts +85 -0
- package/lib/types/components/messages/TranscriptLeaves.d.ts.map +1 -0
- package/lib/types/components/messages/TranscriptLeaves.js +74 -0
- package/lib/types/components/messages/agentTeam.d.ts +69 -0
- package/lib/types/components/messages/agentTeam.d.ts.map +1 -0
- package/lib/types/components/messages/agentTeam.js +53 -0
- package/lib/types/components/messages/liveOutputLines.d.ts +33 -0
- package/lib/types/components/messages/liveOutputLines.d.ts.map +1 -0
- package/lib/types/components/messages/liveOutputLines.js +100 -0
- package/lib/types/components/messages/subagentTranscript.d.ts +146 -0
- package/lib/types/components/messages/subagentTranscript.d.ts.map +1 -0
- package/lib/types/components/messages/subagentTranscript.js +304 -0
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts +16 -1
- package/lib/types/components/questions/AskUserQuestionPanel.d.ts.map +1 -1
- package/lib/types/components/questions/AskUserQuestionPanel.js +76 -6
- package/lib/types/components/questions/PlanReviewPanel.d.ts +8 -3
- package/lib/types/components/questions/PlanReviewPanel.d.ts.map +1 -1
- package/lib/types/components/questions/PlanReviewPanel.js +11 -6
- package/lib/types/components/questions/ProviderModelEditor.d.ts +12 -0
- package/lib/types/components/questions/ProviderModelEditor.d.ts.map +1 -0
- package/lib/types/components/questions/ProviderModelEditor.js +266 -0
- package/lib/types/components/shimmer.d.ts +26 -0
- package/lib/types/components/shimmer.d.ts.map +1 -1
- package/lib/types/components/shimmer.js +26 -0
- package/lib/types/components/sidePanel/InfoPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/InfoPanel.js +13 -8
- package/lib/types/components/sidePanel/PanelBar.d.ts +0 -24
- package/lib/types/components/sidePanel/PanelBar.d.ts.map +1 -1
- package/lib/types/components/sidePanel/PanelBar.js +55 -77
- package/lib/types/components/sidePanel/PanelStore.d.ts +3 -1
- package/lib/types/components/sidePanel/PanelStore.d.ts.map +1 -1
- package/lib/types/components/sidePanel/PanelStore.js +8 -4
- package/lib/types/components/sidePanel/SidePanelColumn.d.ts +3 -10
- package/lib/types/components/sidePanel/SidePanelColumn.d.ts.map +1 -1
- package/lib/types/components/sidePanel/SidePanelColumn.js +9 -12
- package/lib/types/components/sidePanel/TrajectoryPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/TrajectoryPanel.js +78 -14
- package/lib/types/components/sidePanel/agentViewStore.d.ts +20 -0
- package/lib/types/components/sidePanel/agentViewStore.d.ts.map +1 -0
- package/lib/types/components/sidePanel/agentViewStore.js +26 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts +50 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/BtwComposer.js +45 -0
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts +13 -0
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/BtwPanelAdapter.js +147 -0
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts +14 -0
- package/lib/types/components/sidePanel/btw/BtwThreadScene.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/BtwThreadScene.js +131 -0
- package/lib/types/components/sidePanel/btw/BtwThreadView.d.ts +30 -0
- package/lib/types/components/sidePanel/btw/BtwThreadView.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/BtwThreadView.js +87 -0
- package/lib/types/components/sidePanel/btw/threads.d.ts +111 -0
- package/lib/types/components/sidePanel/btw/threads.d.ts.map +1 -0
- package/lib/types/components/sidePanel/btw/threads.js +302 -0
- package/lib/types/components/sidePanel/builtinPanels.d.ts.map +1 -1
- package/lib/types/components/sidePanel/builtinPanels.js +70 -30
- package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts +4 -46
- package/lib/types/components/sidePanel/companion/CompanionPanel.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/CompanionPanel.js +19 -55
- package/lib/types/components/sidePanel/companion/mood.d.ts +32 -0
- package/lib/types/components/sidePanel/companion/mood.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/mood.js +44 -0
- package/lib/types/components/sidePanel/companion/skins.d.ts +34 -0
- package/lib/types/components/sidePanel/companion/skins.d.ts.map +1 -1
- package/lib/types/components/sidePanel/companion/skins.js +203 -29
- package/lib/types/components/splashFonts.d.ts +17 -9
- package/lib/types/components/splashFonts.d.ts.map +1 -1
- package/lib/types/components/splashFonts.js +119 -15
- package/lib/types/components/splashLayout.d.ts.map +1 -1
- package/lib/types/components/splashLayout.js +3 -1
- package/lib/types/components/subagentDetailMemory.d.ts +17 -0
- package/lib/types/components/subagentDetailMemory.d.ts.map +1 -0
- package/lib/types/components/subagentDetailMemory.js +28 -0
- package/lib/types/components/trajectory/Inspector.d.ts.map +1 -1
- package/lib/types/components/trajectory/Inspector.js +9 -0
- package/lib/types/components/trajectory/Ledger.d.ts.map +1 -1
- package/lib/types/components/trajectory/Ledger.js +7 -1
- package/lib/types/components/trajectory/scope.d.ts +64 -0
- package/lib/types/components/trajectory/scope.d.ts.map +1 -0
- package/lib/types/components/trajectory/scope.js +88 -0
- package/lib/types/components/trajectory/useTrajectoryScope.d.ts +42 -0
- package/lib/types/components/trajectory/useTrajectoryScope.d.ts.map +1 -0
- package/lib/types/components/trajectory/useTrajectoryScope.js +86 -0
- package/lib/types/customTheme.d.ts +4 -6
- package/lib/types/customTheme.d.ts.map +1 -1
- package/lib/types/customTheme.js +6 -8
- package/lib/types/dsh-adapter/approvals.d.ts +18 -5
- package/lib/types/dsh-adapter/approvals.d.ts.map +1 -1
- package/lib/types/dsh-adapter/approvals.js +17 -4
- package/lib/types/dsh-adapter/backend/session.d.ts +64 -0
- package/lib/types/dsh-adapter/backend/session.d.ts.map +1 -0
- package/lib/types/dsh-adapter/backend/session.js +291 -0
- package/lib/types/dsh-adapter/backend/translate.d.ts +58 -0
- package/lib/types/dsh-adapter/backend/translate.d.ts.map +1 -0
- package/lib/types/dsh-adapter/backend/translate.js +467 -0
- package/lib/types/dsh-adapter/backends.d.ts +49 -0
- package/lib/types/dsh-adapter/backends.d.ts.map +1 -0
- package/lib/types/dsh-adapter/backends.js +124 -0
- package/lib/types/dsh-adapter/channel/action-readiness.d.ts +16 -0
- package/lib/types/dsh-adapter/channel/action-readiness.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/action-readiness.js +109 -0
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/agent-view-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/background-action.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/background-action.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/background-action.js +7 -5
- package/lib/types/dsh-adapter/channel/binding-events.d.ts +19 -9
- package/lib/types/dsh-adapter/channel/binding-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding-events.js +58 -135
- package/lib/types/dsh-adapter/channel/binding.d.ts +61 -14
- package/lib/types/dsh-adapter/channel/binding.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/binding.js +102 -35
- package/lib/types/dsh-adapter/channel/command-completions.d.ts +3 -0
- package/lib/types/dsh-adapter/channel/command-completions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/command-completions.js +33 -4
- package/lib/types/dsh-adapter/channel/compaction.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/compaction.js +3 -2
- package/lib/types/dsh-adapter/channel/composer-images.d.ts +5 -0
- package/lib/types/dsh-adapter/channel/composer-images.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/composer-images.js +4 -3
- package/lib/types/dsh-adapter/channel/core/actions.d.ts +39 -0
- package/lib/types/dsh-adapter/channel/core/actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/actions.js +152 -0
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts +145 -0
- package/lib/types/dsh-adapter/channel/core/binding-feed.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/binding-feed.js +289 -0
- package/lib/types/dsh-adapter/channel/core/compose.d.ts +217 -0
- package/lib/types/dsh-adapter/channel/core/compose.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/compose.js +938 -0
- package/lib/types/dsh-adapter/channel/core/files.d.ts +57 -0
- package/lib/types/dsh-adapter/channel/core/files.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/files.js +45 -0
- package/lib/types/dsh-adapter/channel/core/host.d.ts +55 -0
- package/lib/types/dsh-adapter/channel/core/host.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/host.js +116 -0
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts +46 -0
- package/lib/types/dsh-adapter/channel/core/local-actions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/local-actions.js +117 -0
- package/lib/types/dsh-adapter/channel/core/local-images.d.ts +20 -0
- package/lib/types/dsh-adapter/channel/core/local-images.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/local-images.js +147 -0
- package/lib/types/dsh-adapter/channel/core/reports.d.ts +12 -0
- package/lib/types/dsh-adapter/channel/core/reports.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/reports.js +77 -0
- package/lib/types/dsh-adapter/channel/core/session-controls.d.ts +39 -0
- package/lib/types/dsh-adapter/channel/core/session-controls.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/session-controls.js +219 -0
- package/lib/types/dsh-adapter/channel/core/session-switch.d.ts +174 -0
- package/lib/types/dsh-adapter/channel/core/session-switch.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/session-switch.js +390 -0
- package/lib/types/dsh-adapter/channel/core/sessions.d.ts +40 -0
- package/lib/types/dsh-adapter/channel/core/sessions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/core/sessions.js +268 -0
- package/lib/types/dsh-adapter/channel/decisions.d.ts +4 -3
- package/lib/types/dsh-adapter/channel/decisions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/decisions.js +4 -4
- package/lib/types/dsh-adapter/channel/emitter.d.ts +15 -2
- package/lib/types/dsh-adapter/channel/emitter.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/emitter.js +5 -3
- package/lib/types/dsh-adapter/channel/extensions.d.ts +36 -0
- package/lib/types/dsh-adapter/channel/extensions.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/extensions.js +714 -0
- package/lib/types/dsh-adapter/channel/ide-selection.d.ts +1 -10
- package/lib/types/dsh-adapter/channel/ide-selection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/ide-selection.js +4 -46
- package/lib/types/dsh-adapter/channel/input-actions.d.ts +27 -4
- package/lib/types/dsh-adapter/channel/input-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-actions.js +240 -21
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts +21 -5
- package/lib/types/dsh-adapter/channel/input-delivery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/input-delivery.js +65 -27
- package/lib/types/dsh-adapter/channel/local-actions.d.ts +10 -32
- package/lib/types/dsh-adapter/channel/local-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/local-actions.js +10 -78
- package/lib/types/dsh-adapter/channel/local-fs.d.ts +3 -0
- package/lib/types/dsh-adapter/channel/local-fs.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/local-fs.js +46 -0
- package/lib/types/dsh-adapter/channel/mode-actions.d.ts +3 -3
- package/lib/types/dsh-adapter/channel/mode-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/mode-permission-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.d.ts +3 -3
- package/lib/types/dsh-adapter/channel/model-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-actions.js +38 -5
- package/lib/types/dsh-adapter/channel/model-switch.d.ts +2 -2
- package/lib/types/dsh-adapter/channel/model-switch.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/model-switch.js +9 -6
- package/lib/types/dsh-adapter/channel/preferences.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/preferences.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/preferences.js +16 -0
- package/lib/types/dsh-adapter/channel/projection.d.ts +16 -13
- package/lib/types/dsh-adapter/channel/projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/projection.js +38 -1143
- package/lib/types/dsh-adapter/channel/question-record.d.ts +3 -75
- package/lib/types/dsh-adapter/channel/question-record.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/question-record.js +3 -107
- package/lib/types/dsh-adapter/channel/session-activity.d.ts +9 -0
- package/lib/types/dsh-adapter/channel/session-activity.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/session-activity.js +42 -0
- package/lib/types/dsh-adapter/channel/session-adoption.d.ts +4 -4
- package/lib/types/dsh-adapter/channel/session-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-adoption.js +3 -1
- package/lib/types/dsh-adapter/channel/session-fork.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-fork.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-fork.js +2 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts +7 -3
- package/lib/types/dsh-adapter/channel/session-live-adoption.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-live-adoption.js +1 -1
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts +2 -9
- package/lib/types/dsh-adapter/channel/session-metadata.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-reset.js +4 -0
- package/lib/types/dsh-adapter/channel/session-resume.d.ts +5 -10
- package/lib/types/dsh-adapter/channel/session-resume.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-resume.js +74 -113
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts +4 -4
- package/lib/types/dsh-adapter/channel/session-rewind.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-rewind.js +7 -6
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts +4 -4
- package/lib/types/dsh-adapter/channel/session-tree-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/session-tree-actions.js +8 -7
- package/lib/types/dsh-adapter/channel/settings-host.d.ts +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/settings-host.js +8 -0
- package/lib/types/dsh-adapter/channel/skill-catalog.d.ts +5 -1
- package/lib/types/dsh-adapter/channel/skill-catalog.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/skill-catalog.js +2 -2
- package/lib/types/dsh-adapter/channel/state.d.ts +72 -1
- package/lib/types/dsh-adapter/channel/state.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/state.js +7 -3
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts +58 -3
- package/lib/types/dsh-adapter/channel/subagent-projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/subagent-projection.js +153 -9
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts +114 -0
- package/lib/types/dsh-adapter/channel/subagent-transcript.d.ts.map +1 -0
- package/lib/types/dsh-adapter/channel/subagent-transcript.js +279 -0
- package/lib/types/dsh-adapter/channel/transcript.d.ts +7 -15
- package/lib/types/dsh-adapter/channel/transcript.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/transcript.js +17 -21
- package/lib/types/dsh-adapter/channel/types.d.ts +16 -7
- package/lib/types/dsh-adapter/channel/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/usage.d.ts +3 -23
- package/lib/types/dsh-adapter/channel/usage.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/usage.js +5 -111
- package/lib/types/dsh-adapter/channel/workspace-actions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel/workspace-actions.js +2 -1
- package/lib/types/dsh-adapter/channel.d.ts +17 -8
- package/lib/types/dsh-adapter/channel.d.ts.map +1 -1
- package/lib/types/dsh-adapter/channel.js +24 -1059
- package/lib/types/dsh-adapter/context-occupancy.d.ts +6 -1
- package/lib/types/dsh-adapter/context-occupancy.d.ts.map +1 -1
- package/lib/types/dsh-adapter/context-occupancy.js +6 -1
- package/lib/types/dsh-adapter/decision-guard.d.ts +24 -0
- package/lib/types/dsh-adapter/decision-guard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/decision-guard.js +44 -0
- package/lib/types/dsh-adapter/extension-events.d.ts +4 -1
- package/lib/types/dsh-adapter/extension-events.d.ts.map +1 -1
- package/lib/types/dsh-adapter/extension-events.js +22 -10
- package/lib/types/dsh-adapter/index.d.ts +41 -3
- package/lib/types/dsh-adapter/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/index.js +28 -1
- package/lib/types/dsh-adapter/jobs.d.ts +5 -3
- package/lib/types/dsh-adapter/jobs.d.ts.map +1 -1
- package/lib/types/dsh-adapter/jobs.js +53 -14
- package/lib/types/dsh-adapter/migrate/parse/jsonl.d.ts +1 -16
- package/lib/types/dsh-adapter/migrate/parse/jsonl.d.ts.map +1 -1
- package/lib/types/dsh-adapter/migrate/parse/jsonl.js +3 -29
- package/lib/types/dsh-adapter/oauth-credential-source.d.ts +34 -0
- package/lib/types/dsh-adapter/oauth-credential-source.d.ts.map +1 -0
- package/lib/types/dsh-adapter/oauth-credential-source.js +66 -0
- package/lib/types/dsh-adapter/plugin.d.ts +38 -2
- package/lib/types/dsh-adapter/plugin.d.ts.map +1 -1
- package/lib/types/dsh-adapter/plugin.js +546 -110
- package/lib/types/dsh-adapter/provider-model-capabilities.d.ts +10 -0
- package/lib/types/dsh-adapter/provider-model-capabilities.d.ts.map +1 -0
- package/lib/types/dsh-adapter/provider-model-capabilities.js +80 -0
- package/lib/types/dsh-adapter/providerWizard.d.ts +8 -2
- package/lib/types/dsh-adapter/providerWizard.d.ts.map +1 -1
- package/lib/types/dsh-adapter/providerWizard.js +118 -52
- package/lib/types/dsh-adapter/questions.d.ts +29 -124
- package/lib/types/dsh-adapter/questions.d.ts.map +1 -1
- package/lib/types/dsh-adapter/questions.js +33 -267
- package/lib/types/dsh-adapter/recap.d.ts +3 -15
- package/lib/types/dsh-adapter/recap.d.ts.map +1 -1
- package/lib/types/dsh-adapter/recap.js +3 -46
- package/lib/types/dsh-adapter/sanitize.d.ts +4 -44
- package/lib/types/dsh-adapter/sanitize.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sanitize.js +4 -84
- package/lib/types/dsh-adapter/session-mount-heartbeat.d.ts +3 -1
- package/lib/types/dsh-adapter/session-mount-heartbeat.d.ts.map +1 -1
- package/lib/types/dsh-adapter/session-mount-heartbeat.js +4 -2
- package/lib/types/dsh-adapter/sessions/digest.d.ts +18 -3
- package/lib/types/dsh-adapter/sessions/digest.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/digest.js +60 -27
- package/lib/types/dsh-adapter/sessions/list.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/list.js +6 -4
- package/lib/types/dsh-adapter/sessions/recovery.d.ts +2 -2
- package/lib/types/dsh-adapter/sessions/recovery.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/recovery.js +23 -14
- package/lib/types/dsh-adapter/sessions/store.d.ts +2 -0
- package/lib/types/dsh-adapter/sessions/store.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sessions/store.js +1 -0
- package/lib/types/dsh-adapter/sessions/types.d.ts +2 -0
- package/lib/types/dsh-adapter/sessions/types.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sideQuestion.d.ts.map +1 -1
- package/lib/types/dsh-adapter/sideQuestion.js +3 -13
- package/lib/types/dsh-adapter/subagents.d.ts.map +1 -1
- package/lib/types/dsh-adapter/subagents.js +7 -0
- package/lib/types/dsh-adapter/themes.d.ts +1 -1
- package/lib/types/dsh-adapter/themes.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/agent-source.d.ts +84 -0
- package/lib/types/dsh-adapter/trajectory/agent-source.d.ts.map +1 -0
- package/lib/types/dsh-adapter/trajectory/agent-source.js +601 -0
- package/lib/types/dsh-adapter/trajectory/guards.d.ts +31 -1
- package/lib/types/dsh-adapter/trajectory/guards.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/guards.js +28 -0
- package/lib/types/dsh-adapter/trajectory/index.d.ts +3 -1
- package/lib/types/dsh-adapter/trajectory/index.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/index.js +1 -0
- package/lib/types/dsh-adapter/trajectory/inspect.d.ts +7 -0
- package/lib/types/dsh-adapter/trajectory/inspect.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/inspect.js +70 -2
- package/lib/types/dsh-adapter/trajectory/projection.d.ts +4 -0
- package/lib/types/dsh-adapter/trajectory/projection.d.ts.map +1 -1
- package/lib/types/dsh-adapter/trajectory/projection.js +36 -0
- package/lib/types/dsh-adapter/trajectory/types.d.ts +13 -0
- package/lib/types/dsh-adapter/trajectory/types.d.ts.map +1 -1
- package/lib/types/effortPrefs.d.ts +7 -0
- package/lib/types/effortPrefs.d.ts.map +1 -1
- package/lib/types/effortPrefs.js +11 -2
- package/lib/types/handoffAck.d.ts +57 -0
- package/lib/types/handoffAck.d.ts.map +1 -0
- package/lib/types/handoffAck.js +154 -0
- package/lib/types/handoffEvents.d.ts +52 -0
- package/lib/types/handoffEvents.d.ts.map +1 -0
- package/lib/types/handoffEvents.js +128 -0
- package/lib/types/i18n.d.ts +3189 -68
- package/lib/types/i18n.d.ts.map +1 -1
- package/lib/types/i18n.js +855 -9
- package/lib/types/ink/colorize.d.ts.map +1 -1
- package/lib/types/ink/colorize.js +8 -2
- package/lib/types/ink/components/AlternateScreen.d.ts +12 -1
- package/lib/types/ink/components/AlternateScreen.d.ts.map +1 -1
- package/lib/types/ink/components/AlternateScreen.js +25 -4
- package/lib/types/ink/components/App.d.ts +5 -1
- package/lib/types/ink/components/App.d.ts.map +1 -1
- package/lib/types/ink/components/App.js +52 -5
- package/lib/types/ink/components/Image.d.ts +8 -1
- package/lib/types/ink/components/Image.d.ts.map +1 -1
- package/lib/types/ink/components/Image.js +2 -2
- package/lib/types/ink/components/Text.d.ts +8 -1
- package/lib/types/ink/components/Text.d.ts.map +1 -1
- package/lib/types/ink/components/Text.js +11 -1
- package/lib/types/ink/dom.d.ts.map +1 -1
- package/lib/types/ink/dom.js +75 -3
- package/lib/types/ink/hooks/use-input.d.ts.map +1 -1
- package/lib/types/ink/hooks/use-input.js +9 -4
- package/lib/types/ink/ink.d.ts.map +1 -1
- package/lib/types/ink/ink.js +8 -2
- package/lib/types/ink/kitty-graphics.d.ts +7 -2
- package/lib/types/ink/kitty-graphics.d.ts.map +1 -1
- package/lib/types/ink/kitty-graphics.js +15 -7
- package/lib/types/ink/node-cache.d.ts +15 -1
- package/lib/types/ink/node-cache.d.ts.map +1 -1
- package/lib/types/ink/node-cache.js +4 -1
- package/lib/types/ink/output.d.ts.map +1 -1
- package/lib/types/ink/output.js +2 -0
- package/lib/types/ink/parse-keypress.d.ts +13 -0
- package/lib/types/ink/parse-keypress.d.ts.map +1 -1
- package/lib/types/ink/parse-keypress.js +438 -19
- package/lib/types/ink/reconciler.d.ts.map +1 -1
- package/lib/types/ink/reconciler.js +9 -0
- package/lib/types/ink/render-node-to-output.d.ts.map +1 -1
- package/lib/types/ink/render-node-to-output.js +200 -4
- package/lib/types/ink/render-stats.d.ts +35 -0
- package/lib/types/ink/render-stats.d.ts.map +1 -0
- package/lib/types/ink/render-stats.js +53 -0
- package/lib/types/ink/sixel-codec.d.ts +11 -1
- package/lib/types/ink/sixel-codec.d.ts.map +1 -1
- package/lib/types/ink/sixel-codec.js +10 -3
- package/lib/types/ink/sixel-graphics.js +2 -2
- package/lib/types/ink/styles.d.ts +46 -0
- package/lib/types/ink/styles.d.ts.map +1 -1
- package/lib/types/ink/terminal-image.d.ts +7 -0
- package/lib/types/ink/terminal-image.d.ts.map +1 -1
- package/lib/types/ink/terminal-querier.d.ts +1 -1
- package/lib/types/ink/terminal-querier.js +4 -4
- package/lib/types/ink/text-decoration.d.ts +49 -0
- package/lib/types/ink/text-decoration.d.ts.map +1 -0
- package/lib/types/ink/text-decoration.js +235 -0
- package/lib/types/ink/update-overflow-guard.d.ts +9 -0
- package/lib/types/ink/update-overflow-guard.d.ts.map +1 -1
- package/lib/types/ink/update-overflow-guard.js +41 -0
- package/lib/types/ink/wrap-text.d.ts.map +1 -1
- package/lib/types/ink/wrap-text.js +5 -1
- package/lib/types/kernelPrefs.d.ts +51 -0
- package/lib/types/kernelPrefs.d.ts.map +1 -0
- package/lib/types/kernelPrefs.js +126 -0
- package/lib/types/modelRecents.d.ts +10 -2
- package/lib/types/modelRecents.d.ts.map +1 -1
- package/lib/types/modelRecents.js +20 -7
- package/lib/types/screens/AgentTranscriptScene.d.ts +42 -0
- package/lib/types/screens/AgentTranscriptScene.d.ts.map +1 -0
- package/lib/types/screens/AgentTranscriptScene.js +269 -0
- package/lib/types/screens/Chat.d.ts +45 -7
- package/lib/types/screens/Chat.d.ts.map +1 -1
- package/lib/types/screens/Chat.js +625 -113
- package/lib/types/screens/Launchpad.d.ts +24 -7
- package/lib/types/screens/Launchpad.d.ts.map +1 -1
- package/lib/types/screens/Launchpad.js +147 -28
- package/lib/types/screens/SessionSupervisor.d.ts +3 -3
- package/lib/types/screens/SessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/SessionSupervisor.js +69 -5
- package/lib/types/screens/Settings.d.ts.map +1 -1
- package/lib/types/screens/Settings.js +211 -7
- package/lib/types/screens/StatusLine.d.ts +40 -1
- package/lib/types/screens/StatusLine.d.ts.map +1 -1
- package/lib/types/screens/StatusLine.js +131 -19
- package/lib/types/screens/StatusMetrics.d.ts +53 -17
- package/lib/types/screens/StatusMetrics.d.ts.map +1 -1
- package/lib/types/screens/StatusMetrics.js +141 -30
- package/lib/types/screens/TrajectoryScene.d.ts.map +1 -1
- package/lib/types/screens/TrajectoryScene.js +74 -12
- package/lib/types/screens/chat/backendCommands.d.ts +37 -0
- package/lib/types/screens/chat/backendCommands.d.ts.map +1 -0
- package/lib/types/screens/chat/backendCommands.js +51 -0
- package/lib/types/screens/chat/useBackendChannels.d.ts +20 -0
- package/lib/types/screens/chat/useBackendChannels.d.ts.map +1 -0
- package/lib/types/screens/chat/useBackendChannels.js +117 -0
- package/lib/types/screens/chat/useKernelPicker.d.ts +23 -0
- package/lib/types/screens/chat/useKernelPicker.d.ts.map +1 -0
- package/lib/types/screens/chat/useKernelPicker.js +72 -0
- package/lib/types/screens/chatOverlay.d.ts +32 -2
- package/lib/types/screens/chatOverlay.d.ts.map +1 -1
- package/lib/types/screens/chatOverlay.js +9 -0
- package/lib/types/screens/sessionSupervisor/useForeignSessions.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/useForeignSessions.js +5 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts +14 -0
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.d.ts.map +1 -1
- package/lib/types/screens/sessionSupervisor/useSessionSupervisor.js +97 -22
- package/lib/types/sessionHistory.d.ts +18 -1
- package/lib/types/sessionHistory.d.ts.map +1 -1
- package/lib/types/sessionHistory.js +46 -4
- package/lib/types/sessionPins.d.ts +7 -0
- package/lib/types/sessionPins.d.ts.map +1 -1
- package/lib/types/sessionPins.js +9 -0
- package/lib/types/sessions/resumeFailure.d.ts.map +1 -1
- package/lib/types/sessions/resumeFailure.js +2 -1
- package/lib/types/settings/definitions.d.ts +74 -0
- package/lib/types/settings/definitions.d.ts.map +1 -1
- package/lib/types/settings/definitions.js +50 -4
- package/lib/types/terminal-utils/hyperlink.d.ts +2 -2
- package/lib/types/terminal-utils/hyperlink.d.ts.map +1 -1
- package/lib/types/terminal-utils/hyperlink.js +21 -4
- package/lib/types/terminal-utils/markdown.d.ts +34 -6
- package/lib/types/terminal-utils/markdown.d.ts.map +1 -1
- package/lib/types/terminal-utils/markdown.js +257 -66
- package/lib/types/theme.d.ts +49 -8
- package/lib/types/theme.d.ts.map +1 -1
- package/lib/types/theme.js +514 -18
- package/lib/types/tips.js +2 -2
- package/lib/types/trajectory/effortIgnition.d.ts +25 -7
- package/lib/types/trajectory/effortIgnition.d.ts.map +1 -1
- package/lib/types/trajectory/effortIgnition.js +106 -34
- package/lib/types/trajectory/window.d.ts +26 -0
- package/lib/types/trajectory/window.d.ts.map +1 -0
- package/lib/types/trajectory/window.js +27 -0
- package/lib/types/tuiDisplayPrefs.d.ts +38 -1
- package/lib/types/tuiDisplayPrefs.d.ts.map +1 -1
- package/lib/types/tuiDisplayPrefs.js +45 -1
- package/lib/types/update.d.ts +88 -3
- package/lib/types/update.d.ts.map +1 -1
- package/lib/types/update.js +285 -18
- package/lib/types/utils/crashDetail.d.ts +56 -0
- package/lib/types/utils/crashDetail.d.ts.map +1 -0
- package/lib/types/utils/crashDetail.js +175 -0
- package/lib/types/utils/imageResize.d.ts +9 -23
- package/lib/types/utils/imageResize.d.ts.map +1 -1
- package/lib/types/utils/imageResize.js +24 -20
- package/lib/types/utils/inputPaste.d.ts +9 -8
- package/lib/types/utils/inputPaste.d.ts.map +1 -1
- package/lib/types/utils/inputPaste.js +53 -16
- package/lib/types/utils/jsonl.d.ts +24 -0
- package/lib/types/utils/jsonl.d.ts.map +1 -0
- package/lib/types/utils/jsonl.js +36 -0
- package/package.json +18 -2
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Theme } from '../../theme.js';
|
|
3
|
+
import type { ClickEvent } from '../../ink/events/click-event.js';
|
|
4
|
+
import type { ToolRow } from '../../dsh-adapter/channel.js';
|
|
5
|
+
import type { ToolBackground } from '../../tuiDisplayPrefs.js';
|
|
6
|
+
import type { TranscriptImage } from '../../dsh-adapter/transcript-images.js';
|
|
7
|
+
import type { AgentMessageState, AgentMessageVia, AgentMessageView } from './agentTeam.js';
|
|
8
|
+
/** Delivery-state badge color: only what the channel reported — green is
|
|
9
|
+
* reserved for an explicit `delivered` fact, dim for `unknown`/`expired`. */
|
|
10
|
+
export declare function agentMessageStateColor(state: AgentMessageState): keyof Theme;
|
|
11
|
+
/** The localized state word (issued/queued/delivered/held/refused/expired/
|
|
12
|
+
* unknown) — one vocabulary across composer status lines and flow rows. */
|
|
13
|
+
export declare function agentMessageStateText(state: AgentMessageState): string;
|
|
14
|
+
/** One endpoint's short label: `user`/`parent`/`child` for the relations the
|
|
15
|
+
* view itself proves (own id, parentSessionId), the stable short id for any
|
|
16
|
+
* other agent. Absent ids stay unnamed — the caller decides whether that is
|
|
17
|
+
* an unknown-relation row (no arrow). */
|
|
18
|
+
export declare function agentMessagePartyLabel(id: string | undefined, selfAgentId: string, parentSessionId?: string): string | undefined;
|
|
19
|
+
/** The localized transport word. */
|
|
20
|
+
export declare function agentMessageViaText(via: AgentMessageVia): string;
|
|
21
|
+
/**
|
|
22
|
+
* One agent↔agent message as a transcript leaf: a `⇄ from → to · state`
|
|
23
|
+
* header plus an indented preview, paged together with the thinking/text/
|
|
24
|
+
* tool leaves. Without both endpoints it shows the unknown-relation line
|
|
25
|
+
* and no arrow.
|
|
26
|
+
*/
|
|
27
|
+
export declare function AgentMessageLeafRow({ message, selfAgentId, marginTopOnTurn }: {
|
|
28
|
+
message: AgentMessageView;
|
|
29
|
+
/** This child's agent id — resolves `child` in the party labels. */
|
|
30
|
+
selfAgentId: string;
|
|
31
|
+
marginTopOnTurn: boolean;
|
|
32
|
+
}): React.ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Transcript leaf rows: the main MessageList and the subagent transcript
|
|
35
|
+
* pages render thinking / tool / text rows through these thin adapters, so
|
|
36
|
+
* a child transcript reads like the main one. Presentation only: fold
|
|
37
|
+
* state, reveal cursors and row anchoring stay with the callers.
|
|
38
|
+
*/
|
|
39
|
+
/** A settled/live thinking row (`⚓ Thinking` preview or expanded body). */
|
|
40
|
+
export declare function ThinkingLeafRow({ thinking, textFull, marginTopOnTurn, streaming, preview, verbose, durationMs, reasoningTokens, isSelected, onClick, }: {
|
|
41
|
+
thinking: string;
|
|
42
|
+
/** The full un-revealed text the live preview ticker follows. */
|
|
43
|
+
textFull?: string;
|
|
44
|
+
marginTopOnTurn: boolean;
|
|
45
|
+
streaming?: boolean;
|
|
46
|
+
preview?: boolean;
|
|
47
|
+
verbose: boolean;
|
|
48
|
+
durationMs?: number;
|
|
49
|
+
/** Thinking reported only as a count (no body) — the one-line header. */
|
|
50
|
+
reasoningTokens?: number;
|
|
51
|
+
isSelected?: boolean;
|
|
52
|
+
onClick?(event: ClickEvent): void;
|
|
53
|
+
}): React.ReactNode;
|
|
54
|
+
/** A tool-call card (args / result / error / diff), optionally with images. */
|
|
55
|
+
export declare function ToolLeafRow({ tool, marginTopOnTurn, verbose, isSelected, isExpanded, footnote, diffLayout, toolBackground, smoothReveal, fresh, revealVersion, foldTerminalCommand, onClick, onOpenFile, images, onPreviewImage, suppressImageGraphics, sourceFolded, fullscreen, }: {
|
|
56
|
+
tool: ToolRow;
|
|
57
|
+
marginTopOnTurn: boolean;
|
|
58
|
+
verbose: boolean;
|
|
59
|
+
isSelected?: boolean;
|
|
60
|
+
isExpanded?: boolean;
|
|
61
|
+
footnote?: string;
|
|
62
|
+
diffLayout?: 'auto' | 'split' | 'unified';
|
|
63
|
+
toolBackground?: ToolBackground;
|
|
64
|
+
smoothReveal?: boolean;
|
|
65
|
+
fresh?: boolean;
|
|
66
|
+
revealVersion?: number;
|
|
67
|
+
foldTerminalCommand?: boolean;
|
|
68
|
+
onClick?(event: ClickEvent): void;
|
|
69
|
+
onOpenFile?: (path: string) => void;
|
|
70
|
+
images?: readonly TranscriptImage[];
|
|
71
|
+
onPreviewImage?(image: TranscriptImage): void;
|
|
72
|
+
suppressImageGraphics?: boolean;
|
|
73
|
+
/** The transcript window folded this row's source (previews only). */
|
|
74
|
+
sourceFolded?: boolean;
|
|
75
|
+
/** Fullscreen layout (more live output lines on a running card). */
|
|
76
|
+
fullscreen?: boolean;
|
|
77
|
+
}): React.ReactNode;
|
|
78
|
+
/** An assistant text row (`●` bullet + markdown body). */
|
|
79
|
+
export declare function AssistantTextLeafRow({ text, marginTopOnTurn, isSelected, isExpanded, }: {
|
|
80
|
+
text: string;
|
|
81
|
+
marginTopOnTurn: boolean;
|
|
82
|
+
isSelected?: boolean;
|
|
83
|
+
isExpanded?: boolean;
|
|
84
|
+
}): React.ReactNode;
|
|
85
|
+
//# sourceMappingURL=TranscriptLeaves.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TranscriptLeaves.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/TranscriptLeaves.tsx"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Box, Text } from '../../ui.js';
|
|
3
|
+
import { t } from '../../i18n.js';
|
|
4
|
+
import { AssistantTextMessage } from './AssistantTextMessage.js';
|
|
5
|
+
import { AssistantThinkingMessage } from './AssistantThinkingMessage.js';
|
|
6
|
+
import { AssistantToolUseMessage } from './AssistantToolUseMessage.js';
|
|
7
|
+
import { TranscriptImages } from './TranscriptImages.js';
|
|
8
|
+
// ── agent↔agent message flow leaves ─────────────────────────────────────────
|
|
9
|
+
/** Delivery-state badge color: only what the channel reported — green is
|
|
10
|
+
* reserved for an explicit `delivered` fact, dim for `unknown`/`expired`. */
|
|
11
|
+
export function agentMessageStateColor(state) {
|
|
12
|
+
if (state === 'delivered')
|
|
13
|
+
return 'success';
|
|
14
|
+
if (state === 'refused')
|
|
15
|
+
return 'error';
|
|
16
|
+
if (state === 'issued' || state === 'queued' || state === 'held')
|
|
17
|
+
return 'warning';
|
|
18
|
+
return 'subtle';
|
|
19
|
+
}
|
|
20
|
+
/** The localized state word (issued/queued/delivered/held/refused/expired/
|
|
21
|
+
* unknown) — one vocabulary across composer status lines and flow rows. */
|
|
22
|
+
export function agentMessageStateText(state) {
|
|
23
|
+
return t(`agent-message-delivery-${state}`);
|
|
24
|
+
}
|
|
25
|
+
/** One endpoint's short label: `user`/`parent`/`child` for the relations the
|
|
26
|
+
* view itself proves (own id, parentSessionId), the stable short id for any
|
|
27
|
+
* other agent. Absent ids stay unnamed — the caller decides whether that is
|
|
28
|
+
* an unknown-relation row (no arrow). */
|
|
29
|
+
export function agentMessagePartyLabel(id, selfAgentId, parentSessionId) {
|
|
30
|
+
if (id === undefined)
|
|
31
|
+
return undefined;
|
|
32
|
+
if (id === 'user')
|
|
33
|
+
return t('agent-message-source-user');
|
|
34
|
+
if (id === selfAgentId)
|
|
35
|
+
return t('agent-message-source-child');
|
|
36
|
+
if (parentSessionId !== undefined && id === parentSessionId)
|
|
37
|
+
return t('agent-message-source-parent');
|
|
38
|
+
return id.length > 8 ? id.slice(0, 8) : id;
|
|
39
|
+
}
|
|
40
|
+
/** The localized transport word. */
|
|
41
|
+
export function agentMessageViaText(via) {
|
|
42
|
+
return t(`agent-message-via-${via}`);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* One agent↔agent message as a transcript leaf: a `⇄ from → to · state`
|
|
46
|
+
* header plus an indented preview, paged together with the thinking/text/
|
|
47
|
+
* tool leaves. Without both endpoints it shows the unknown-relation line
|
|
48
|
+
* and no arrow.
|
|
49
|
+
*/
|
|
50
|
+
export function AgentMessageLeafRow({ message, selfAgentId, marginTopOnTurn }) {
|
|
51
|
+
const from = agentMessagePartyLabel(message.from, selfAgentId, message.parentSessionId);
|
|
52
|
+
const to = agentMessagePartyLabel(message.to, selfAgentId, message.parentSessionId);
|
|
53
|
+
const known = from !== undefined && to !== undefined;
|
|
54
|
+
const stateColor = agentMessageStateColor(message.state);
|
|
55
|
+
return (_jsxs(Box, { flexDirection: "column", marginTop: marginTopOnTurn ? 1 : 0, paddingLeft: 2, children: [_jsxs(Box, { flexDirection: "row", gap: 1, children: [_jsx(Text, { color: "accent", children: "\u21C4" }), known ? (_jsx(Text, { dimColor: true, wrap: "truncate-end", children: t('agent-message-from-to', { from, to }) })) : (_jsx(Text, { dimColor: true, italic: true, wrap: "truncate-end", children: t('agent-message-unknown-target') })), _jsx(Text, { dimColor: true, children: "\u00B7" }), _jsx(Box, { flexShrink: 0, children: _jsx(Text, { color: stateColor, children: agentMessageStateText(message.state) }) }), _jsx(Text, { dimColor: true, children: "\u00B7" }), _jsx(Text, { dimColor: true, wrap: "truncate-end", children: agentMessageViaText(message.via) })] }), _jsx(Box, { paddingLeft: 2, children: _jsx(Text, { dimColor: true, wrap: "wrap", children: message.text }) }), message.state === 'unknown' && (_jsx(Box, { paddingLeft: 2, children: _jsx(Text, { dimColor: true, italic: true, children: t('agent-message-no-delivery-fact') }) }))] }));
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Transcript leaf rows: the main MessageList and the subagent transcript
|
|
59
|
+
* pages render thinking / tool / text rows through these thin adapters, so
|
|
60
|
+
* a child transcript reads like the main one. Presentation only: fold
|
|
61
|
+
* state, reveal cursors and row anchoring stay with the callers.
|
|
62
|
+
*/
|
|
63
|
+
/** A settled/live thinking row (`⚓ Thinking` preview or expanded body). */
|
|
64
|
+
export function ThinkingLeafRow({ thinking, textFull, marginTopOnTurn, streaming = false, preview = false, verbose, durationMs, reasoningTokens, isSelected = false, onClick, }) {
|
|
65
|
+
return (_jsx(AssistantThinkingMessage, { thinking: thinking, textFull: textFull, marginTopOnTurn: marginTopOnTurn, streaming: streaming, preview: preview, verbose: verbose, durationMs: durationMs, reasoningTokens: reasoningTokens, isSelected: isSelected, onClick: onClick }));
|
|
66
|
+
}
|
|
67
|
+
/** A tool-call card (args / result / error / diff), optionally with images. */
|
|
68
|
+
export function ToolLeafRow({ tool, marginTopOnTurn, verbose, isSelected = false, isExpanded = false, footnote, diffLayout, toolBackground, smoothReveal, fresh, revealVersion, foldTerminalCommand, onClick, onOpenFile, images, onPreviewImage, suppressImageGraphics, sourceFolded, fullscreen, }) {
|
|
69
|
+
return (_jsxs(_Fragment, { children: [_jsx(AssistantToolUseMessage, { tool: tool, marginTopOnTurn: marginTopOnTurn, verbose: verbose, isSelected: isSelected, isExpanded: isExpanded, footnote: footnote, diffLayout: diffLayout, toolBackground: toolBackground, smoothReveal: smoothReveal, fresh: fresh, revealVersion: revealVersion, foldTerminalCommand: foldTerminalCommand, onClick: onClick, onOpenFile: onOpenFile, sourceFolded: sourceFolded, fullscreen: fullscreen }), images !== undefined && _jsx(TranscriptImages, { images: images, indent: 4, onPreview: onPreviewImage, suppressGraphics: suppressImageGraphics })] }));
|
|
70
|
+
}
|
|
71
|
+
/** An assistant text row (`●` bullet + markdown body). */
|
|
72
|
+
export function AssistantTextLeafRow({ text, marginTopOnTurn, isSelected = false, isExpanded = false, }) {
|
|
73
|
+
return (_jsx(AssistantTextMessage, { text: text, marginTopOnTurn: marginTopOnTurn, isSelected: isSelected, isExpanded: isExpanded }));
|
|
74
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UI-side agent-team helpers. The message domain types live in the channel
|
|
3
|
+
* port (`adapter/ports/channel-view.ts`) and are re-exported for the UI;
|
|
4
|
+
* this module adds the Agent View source stack, compose-target resolution
|
|
5
|
+
* and the parent/sibling math of the workbench.
|
|
6
|
+
*/
|
|
7
|
+
import type { SubagentState } from '../../dsh-adapter/subagents.js';
|
|
8
|
+
export type { AgentIdentity, AgentMessageControl, AgentMessageState, AgentMessageSubmitInput, AgentMessageSubmitResult, AgentMessageView, AgentMessageVia, } from '../../adapter/ports/channel-view.js';
|
|
9
|
+
/** Where the Agent View was opened from, i.e. where Esc returns to. The optional
|
|
10
|
+
* `panel` mark says the entry came from the side-panel agents surface, so
|
|
11
|
+
* the exit returns to the panel (route preserved) instead of the fullscreen
|
|
12
|
+
* form of the same screen. */
|
|
13
|
+
export type AgentViewSource = {
|
|
14
|
+
readonly kind: 'chat';
|
|
15
|
+
readonly returnFocus: 'prompt' | 'transcript';
|
|
16
|
+
} | {
|
|
17
|
+
readonly kind: 'agents-dashboard';
|
|
18
|
+
readonly panel?: true;
|
|
19
|
+
} | {
|
|
20
|
+
readonly kind: 'agent-detail';
|
|
21
|
+
readonly agentId: string;
|
|
22
|
+
readonly panel?: true;
|
|
23
|
+
} | {
|
|
24
|
+
readonly kind: 'transcript-card';
|
|
25
|
+
readonly rowId: number;
|
|
26
|
+
};
|
|
27
|
+
/** The composer's target, resolved from the roster: a unique name addresses
|
|
28
|
+
* by name, a duplicated one by stable id (still submittable), and no name
|
|
29
|
+
* at all has no submit, only the notice. */
|
|
30
|
+
export interface AgentComposeTarget {
|
|
31
|
+
readonly agentId: string;
|
|
32
|
+
/** Unique across the roster → address by name. */
|
|
33
|
+
readonly name?: string;
|
|
34
|
+
/** The name is duplicated across agents → address by stable id. */
|
|
35
|
+
readonly ambiguous?: true;
|
|
36
|
+
}
|
|
37
|
+
/** Resolve a compose target from the roster's labels (the descriptions):
|
|
38
|
+
* a unique label addresses by name, duplicates carry `ambiguous` (the
|
|
39
|
+
* composer shows the stable id), no label at all stays nameless. */
|
|
40
|
+
export declare function agentComposeTargetOf(agentId: string, labels: ReadonlyMap<string, string>): AgentComposeTarget;
|
|
41
|
+
/** Who spawned an agent, only as far as the data proves it. 'main' = the
|
|
42
|
+
* session's main loop (depth 1, the SDK's spawn-depth definition).
|
|
43
|
+
* 'agent' = a named parent agent. 'unknown' = depth >= 2 without a parent
|
|
44
|
+
* id (old metadata): never folded into 'main' or into an agent at the
|
|
45
|
+
* same depth. */
|
|
46
|
+
export type AgentParentFact = {
|
|
47
|
+
readonly kind: 'main';
|
|
48
|
+
} | {
|
|
49
|
+
readonly kind: 'agent';
|
|
50
|
+
readonly agentId: string;
|
|
51
|
+
} | {
|
|
52
|
+
readonly kind: 'unknown';
|
|
53
|
+
};
|
|
54
|
+
/** The parent fact of one roster row from the roster's own fields. */
|
|
55
|
+
export declare function agentParentFactOf(agent: Pick<SubagentState, 'parentAgentId' | 'depth'>): AgentParentFact;
|
|
56
|
+
/** The parent fact of the VIEWED agent, letting the loaded transcript's
|
|
57
|
+
* explicit parent override the roster's (the disk copy is the durable
|
|
58
|
+
* truth; a still-loading or absent transcript keeps the roster fact).
|
|
59
|
+
* transcriptParent follows SubagentTranscriptPage.parentAgentId: null =
|
|
60
|
+
* depth-1-or-old-format, so it only proves 'main' together with depth 1. */
|
|
61
|
+
export declare function viewedAgentParentFact(agent: SubagentState, transcriptParent: string | null | undefined): AgentParentFact;
|
|
62
|
+
/** The switchable neighbourhood of the viewed agent: its parent and its
|
|
63
|
+
* siblings, i.e. roster agents with the same known parent. The same depth
|
|
64
|
+
* alone never makes siblings; an unknown parent yields none. */
|
|
65
|
+
export declare function agentNeighbourhood(self: SubagentState, roster: readonly SubagentState[], transcriptParent: string | null | undefined): {
|
|
66
|
+
readonly parent: AgentParentFact;
|
|
67
|
+
readonly siblings: readonly SubagentState[];
|
|
68
|
+
};
|
|
69
|
+
//# sourceMappingURL=agentTeam.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agentTeam.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/agentTeam.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;AAEnE,YAAY,EACV,aAAa,EACb,mBAAmB,EACnB,iBAAiB,EACjB,uBAAuB,EACvB,wBAAwB,EACxB,gBAAgB,EAChB,eAAe,GAChB,MAAM,qCAAqC,CAAA;AAE5C;;;+BAG+B;AAC/B,MAAM,MAAM,eAAe,GACvB;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,WAAW,EAAE,QAAQ,GAAG,YAAY,CAAA;CAAE,GACxE;IAAE,QAAQ,CAAC,IAAI,EAAE,kBAAkB,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAA;CAAE,GAC5D;IAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,IAAI,CAAA;CAAE,GAClF;IAAE,QAAQ,CAAC,IAAI,EAAE,iBAAiB,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAA;AAEhE;;6CAE6C;AAC7C,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,mEAAmE;IACnE,QAAQ,CAAC,SAAS,CAAC,EAAE,IAAI,CAAA;CAC1B;AAED;;qEAEqE;AACrE,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,kBAAkB,CAM7G;AAID;;;;kBAIkB;AAClB,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAA;CAAE,CAAA;AAE7I,sEAAsE;AACtE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,eAAe,GAAG,OAAO,CAAC,GAAG,eAAe,CAIxG;AAED;;;;6EAI6E;AAC7E,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,eAAe,CAIxH;AAED;;iEAEiE;AACjE,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,aAAa,EACnB,MAAM,EAAE,SAAS,aAAa,EAAE,EAChC,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAC1C;IAAE,QAAQ,CAAC,MAAM,EAAE,eAAe,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAA;CAAE,CAenF"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/** Resolve a compose target from the roster's labels (the descriptions):
|
|
2
|
+
* a unique label addresses by name, duplicates carry `ambiguous` (the
|
|
3
|
+
* composer shows the stable id), no label at all stays nameless. */
|
|
4
|
+
export function agentComposeTargetOf(agentId, labels) {
|
|
5
|
+
const name = labels.get(agentId);
|
|
6
|
+
if (name === undefined || name === '')
|
|
7
|
+
return { agentId };
|
|
8
|
+
let duplicates = 0;
|
|
9
|
+
for (const other of labels.values())
|
|
10
|
+
if (other === name)
|
|
11
|
+
duplicates += 1;
|
|
12
|
+
return duplicates > 1 ? { agentId, name, ambiguous: true } : { agentId, name };
|
|
13
|
+
}
|
|
14
|
+
/** The parent fact of one roster row from the roster's own fields. */
|
|
15
|
+
export function agentParentFactOf(agent) {
|
|
16
|
+
if (agent.parentAgentId !== undefined)
|
|
17
|
+
return { kind: 'agent', agentId: agent.parentAgentId };
|
|
18
|
+
if (agent.depth === 1)
|
|
19
|
+
return { kind: 'main' };
|
|
20
|
+
return { kind: 'unknown' };
|
|
21
|
+
}
|
|
22
|
+
/** The parent fact of the VIEWED agent, letting the loaded transcript's
|
|
23
|
+
* explicit parent override the roster's (the disk copy is the durable
|
|
24
|
+
* truth; a still-loading or absent transcript keeps the roster fact).
|
|
25
|
+
* transcriptParent follows SubagentTranscriptPage.parentAgentId: null =
|
|
26
|
+
* depth-1-or-old-format, so it only proves 'main' together with depth 1. */
|
|
27
|
+
export function viewedAgentParentFact(agent, transcriptParent) {
|
|
28
|
+
if (transcriptParent !== undefined && transcriptParent !== null)
|
|
29
|
+
return { kind: 'agent', agentId: transcriptParent };
|
|
30
|
+
if (transcriptParent === null && agent.depth === 1)
|
|
31
|
+
return { kind: 'main' };
|
|
32
|
+
return agentParentFactOf(agent);
|
|
33
|
+
}
|
|
34
|
+
/** The switchable neighbourhood of the viewed agent: its parent and its
|
|
35
|
+
* siblings, i.e. roster agents with the same known parent. The same depth
|
|
36
|
+
* alone never makes siblings; an unknown parent yields none. */
|
|
37
|
+
export function agentNeighbourhood(self, roster, transcriptParent) {
|
|
38
|
+
const parent = viewedAgentParentFact(self, transcriptParent);
|
|
39
|
+
const parentOf = (other) => agentParentFactOf(other);
|
|
40
|
+
const sameParent = (other) => {
|
|
41
|
+
if (parent.kind === 'main')
|
|
42
|
+
return parentOf(other).kind === 'main';
|
|
43
|
+
if (parent.kind === 'agent') {
|
|
44
|
+
const otherParent = parentOf(other);
|
|
45
|
+
return otherParent.kind === 'agent' && otherParent.agentId === parent.agentId;
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
};
|
|
49
|
+
const siblings = parent.kind === 'unknown'
|
|
50
|
+
? []
|
|
51
|
+
: roster.filter(other => other.agentId !== self.agentId && sameParent(other));
|
|
52
|
+
return { parent, siblings };
|
|
53
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Live lines a running card shows inline. */
|
|
2
|
+
export declare const LIVE_OUTPUT_LINES_INLINE = 5;
|
|
3
|
+
/** Live lines a running card shows in fullscreen. */
|
|
4
|
+
export declare const LIVE_OUTPUT_LINES_FULLSCREEN = 8;
|
|
5
|
+
/** How many live lines a card shows: the whole retained tail when
|
|
6
|
+
* verbose (Ctrl+O / expanded), else 5 inline and 8 in fullscreen. */
|
|
7
|
+
export declare function liveOutputMaxLines(verbose: boolean, fullscreen: boolean): number;
|
|
8
|
+
/** What the card renders of a live tail. */
|
|
9
|
+
export interface LiveOutputView {
|
|
10
|
+
/** Older lines not shown (dropped by the tail bound, or retained but
|
|
11
|
+
* above the shown window). */
|
|
12
|
+
readonly omitted: number;
|
|
13
|
+
/** The newest lines, oldest first, each one terminal row. */
|
|
14
|
+
readonly lines: readonly string[];
|
|
15
|
+
}
|
|
16
|
+
/** One raw output line as the card may paint it (uncut). */
|
|
17
|
+
export declare function cleanOutputLine(raw: string): string;
|
|
18
|
+
/** Cut a clean line to `width` cells, marking a cut with `…`. */
|
|
19
|
+
export declare function fitOutputLine(line: string, width: number): string;
|
|
20
|
+
/**
|
|
21
|
+
* Rows the live block of a card paints (the omitted header plus the shown
|
|
22
|
+
* lines): the card's height input for the transcript's layout signature.
|
|
23
|
+
* Scans back at most `maxLines + 1` line breaks, so it stays cheap per
|
|
24
|
+
* frame however long the tail is.
|
|
25
|
+
*/
|
|
26
|
+
export declare function liveOutputRows(text: string | undefined, dropped: number, maxLines: number): number;
|
|
27
|
+
/**
|
|
28
|
+
* The newest `maxLines` lines of a tail, cleaned and fitted to `width`
|
|
29
|
+
* cells, with the count of older lines (`dropped` = lines the tail bound
|
|
30
|
+
* already discarded).
|
|
31
|
+
*/
|
|
32
|
+
export declare function liveOutputView(text: string, dropped: number, maxLines: number, width: number): LiveOutputView;
|
|
33
|
+
//# sourceMappingURL=liveOutputLines.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveOutputLines.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/liveOutputLines.ts"],"names":[],"mappings":"AAoBA,8CAA8C;AAC9C,eAAO,MAAM,wBAAwB,IAAI,CAAA;AACzC,qDAAqD;AACrD,eAAO,MAAM,4BAA4B,IAAI,CAAA;AAE7C;sEACsE;AACtE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,GAAG,MAAM,CAGhF;AAED,4CAA4C;AAC5C,MAAM,WAAW,cAAc;IAC7B;mCAC+B;IAC/B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,6DAA6D;IAC7D,QAAQ,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,CAAA;CAClC;AAID,4DAA4D;AAC5D,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAMnD;AAED,iEAAiE;AACjE,wBAAgB,aAAa,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CAOjE;AAUD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAclG;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,CAY7G"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The running card's view of a tool's live output (`ToolRow.liveOutput`,
|
|
3
|
+
* N4): the newest few lines of the bounded tail, sanitized and cut to the
|
|
4
|
+
* card's width in terminal cells, plus how many older lines are not shown.
|
|
5
|
+
*
|
|
6
|
+
* Only the shown lines are touched: the tail is scanned backwards for its
|
|
7
|
+
* last line breaks, never split whole, so the per-render cost does not
|
|
8
|
+
* grow with the tail. Each shown line is sanitized for the render path:
|
|
9
|
+
*
|
|
10
|
+
* - a carriage return rewrites its line (progress bars): the line shows
|
|
11
|
+
* its last state, the text after the final `\r`;
|
|
12
|
+
* - ANSI escape sequences (colours, cursor moves, OSC links) and every
|
|
13
|
+
* other control character are removed; tabs become spaces;
|
|
14
|
+
* - the line is cut to the width budget in display cells (CJK and emoji
|
|
15
|
+
* count double) with a trailing `…`, so one row never wraps.
|
|
16
|
+
*/
|
|
17
|
+
import stripAnsi from 'strip-ansi';
|
|
18
|
+
import { LIVE_OUTPUT_MAX_LINES } from '../../channel/live-output.js';
|
|
19
|
+
import { truncateToWidth } from '../../ink/truncateToWidth.js';
|
|
20
|
+
/** Live lines a running card shows inline. */
|
|
21
|
+
export const LIVE_OUTPUT_LINES_INLINE = 5;
|
|
22
|
+
/** Live lines a running card shows in fullscreen. */
|
|
23
|
+
export const LIVE_OUTPUT_LINES_FULLSCREEN = 8;
|
|
24
|
+
/** How many live lines a card shows: the whole retained tail when
|
|
25
|
+
* verbose (Ctrl+O / expanded), else 5 inline and 8 in fullscreen. */
|
|
26
|
+
export function liveOutputMaxLines(verbose, fullscreen) {
|
|
27
|
+
if (verbose)
|
|
28
|
+
return LIVE_OUTPUT_MAX_LINES;
|
|
29
|
+
return fullscreen ? LIVE_OUTPUT_LINES_FULLSCREEN : LIVE_OUTPUT_LINES_INLINE;
|
|
30
|
+
}
|
|
31
|
+
const TAB = ' ';
|
|
32
|
+
/** One raw output line as the card may paint it (uncut). */
|
|
33
|
+
export function cleanOutputLine(raw) {
|
|
34
|
+
let line = raw.endsWith('\r') ? raw.slice(0, -1) : raw;
|
|
35
|
+
const carriage = line.lastIndexOf('\r');
|
|
36
|
+
if (carriage !== -1)
|
|
37
|
+
line = line.slice(carriage + 1);
|
|
38
|
+
// eslint-disable-next-line no-control-regex -- deliberate: untrusted process output on the render path
|
|
39
|
+
return stripAnsi(line).replace(/\t/gu, TAB).replace(/[\u0000-\u0008\u000a-\u001f\u007f-\u009f]/gu, '');
|
|
40
|
+
}
|
|
41
|
+
/** Cut a clean line to `width` cells, marking a cut with `…`. */
|
|
42
|
+
export function fitOutputLine(line, width) {
|
|
43
|
+
const budget = Math.max(1, width);
|
|
44
|
+
// truncateToWidth walks code points only until the budget is exceeded,
|
|
45
|
+
// so a 16 KiB line costs no more than a short one.
|
|
46
|
+
const head = truncateToWidth(line, budget);
|
|
47
|
+
if (head.length === line.length)
|
|
48
|
+
return line;
|
|
49
|
+
return `${truncateToWidth(head, budget - 1)}…`;
|
|
50
|
+
}
|
|
51
|
+
/** Lines in a tail (a trailing break closes the last line). */
|
|
52
|
+
function lineCount(text) {
|
|
53
|
+
if (text === '')
|
|
54
|
+
return 0;
|
|
55
|
+
let breaks = 0;
|
|
56
|
+
for (let at = text.indexOf('\n'); at !== -1; at = text.indexOf('\n', at + 1))
|
|
57
|
+
breaks += 1;
|
|
58
|
+
return breaks + (text.endsWith('\n') ? 0 : 1);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Rows the live block of a card paints (the omitted header plus the shown
|
|
62
|
+
* lines): the card's height input for the transcript's layout signature.
|
|
63
|
+
* Scans back at most `maxLines + 1` line breaks, so it stays cheap per
|
|
64
|
+
* frame however long the tail is.
|
|
65
|
+
*/
|
|
66
|
+
export function liveOutputRows(text, dropped, maxLines) {
|
|
67
|
+
if (text === undefined || text === '' || maxLines <= 0)
|
|
68
|
+
return 0;
|
|
69
|
+
let shown = 0;
|
|
70
|
+
let more = false;
|
|
71
|
+
let end = text.endsWith('\n') ? text.length - 1 : text.length;
|
|
72
|
+
while (end >= 0) {
|
|
73
|
+
if (shown === maxLines) {
|
|
74
|
+
more = true;
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
shown += 1;
|
|
78
|
+
end = end === 0 ? -1 : text.lastIndexOf('\n', end - 1);
|
|
79
|
+
}
|
|
80
|
+
return shown + (more || dropped > 0 ? 1 : 0);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The newest `maxLines` lines of a tail, cleaned and fitted to `width`
|
|
84
|
+
* cells, with the count of older lines (`dropped` = lines the tail bound
|
|
85
|
+
* already discarded).
|
|
86
|
+
*/
|
|
87
|
+
export function liveOutputView(text, dropped, maxLines, width) {
|
|
88
|
+
if (text === '' || maxLines <= 0)
|
|
89
|
+
return { omitted: dropped + lineCount(text), lines: [] };
|
|
90
|
+
const newest = [];
|
|
91
|
+
let end = text.endsWith('\n') ? text.length - 1 : text.length;
|
|
92
|
+
while (end >= 0 && newest.length < maxLines) {
|
|
93
|
+
const brk = end === 0 ? -1 : text.lastIndexOf('\n', end - 1);
|
|
94
|
+
newest.push(text.slice(brk + 1, end));
|
|
95
|
+
end = brk;
|
|
96
|
+
}
|
|
97
|
+
newest.reverse();
|
|
98
|
+
const lines = newest.map(line => fitOutputLine(cleanOutputLine(line), width));
|
|
99
|
+
return { omitted: dropped + lineCount(text) - newest.length, lines };
|
|
100
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import type { SubagentOutputLine, SubagentState } from '../../dsh-adapter/subagents.js';
|
|
2
|
+
import type { SubagentTranscriptView, ToolRow } from '../../adapter/ports/channel-view.js';
|
|
3
|
+
import type { SubagentTranscriptWindow } from '../../agent/capabilities.js';
|
|
4
|
+
import type { AgentEvent } from '../../agent/events.js';
|
|
5
|
+
import type { AgentMessageView } from './agentTeam.js';
|
|
6
|
+
/** One folded leaf of the child's transcript: thinking (a real body, or
|
|
7
|
+
* the honest "body unavailable" marker a signature/count-only block
|
|
8
|
+
* degrades to), text and tool cards — the vocabulary the shared leaf
|
|
9
|
+
* renderers paint, so a child row reads exactly like a main one. */
|
|
10
|
+
export type TranscriptLeaf = {
|
|
11
|
+
kind: 'thinking';
|
|
12
|
+
key: string;
|
|
13
|
+
text: string;
|
|
14
|
+
} | {
|
|
15
|
+
kind: 'thinking-unavailable';
|
|
16
|
+
key: string;
|
|
17
|
+
tokens: number | undefined;
|
|
18
|
+
} | {
|
|
19
|
+
kind: 'text';
|
|
20
|
+
key: string;
|
|
21
|
+
text: string;
|
|
22
|
+
} | {
|
|
23
|
+
kind: 'tool';
|
|
24
|
+
key: string;
|
|
25
|
+
tool: ToolRow;
|
|
26
|
+
} | {
|
|
27
|
+
kind: 'agent-message';
|
|
28
|
+
key: string;
|
|
29
|
+
message: AgentMessageView;
|
|
30
|
+
};
|
|
31
|
+
/** Presentations that never earn a duplicate card here either (the main
|
|
32
|
+
* projector's rule): a nested delegation renders as the subagent card, a
|
|
33
|
+
* todo write lives in the todo panel, a question in its dialog. */
|
|
34
|
+
export declare const TRANSCRIPT_SUPPRESSED_CARDS: ReadonlySet<string>;
|
|
35
|
+
/** Where one history page sits among the pages, for placing the agent
|
|
36
|
+
* message feed: `olderPagesRemain` = the page is not the oldest one, so
|
|
37
|
+
* messages observed before its first event belong to an older page;
|
|
38
|
+
* `before` = the start of the newer page already folded (that page holds
|
|
39
|
+
* the messages from there on). */
|
|
40
|
+
export interface TranscriptPagePlacement {
|
|
41
|
+
readonly olderPagesRemain?: boolean;
|
|
42
|
+
readonly before?: number;
|
|
43
|
+
/** Collects the tool results whose call this page does not hold (the
|
|
44
|
+
* call sits on an older page), keyed by call id. */
|
|
45
|
+
readonly orphans?: Map<string, ToolResultEvent>;
|
|
46
|
+
}
|
|
47
|
+
type ToolResultEvent = Extract<AgentEvent, {
|
|
48
|
+
type: 'tool.result';
|
|
49
|
+
}>;
|
|
50
|
+
/** Fold one history page's lane events into leaf rows (oldest first;
|
|
51
|
+
* `into` may already hold the older pages' rows). A tool result whose
|
|
52
|
+
* call is not on this page goes to `page.orphans` (or is dropped without
|
|
53
|
+
* one) until the older page with the call is folded; consecutive blocks
|
|
54
|
+
* of one API message join (the store splits a message into per-block
|
|
55
|
+
* entries sharing the anchor).
|
|
56
|
+
*
|
|
57
|
+
* `messages` (the agent↔agent feed for THIS child, newest last) is
|
|
58
|
+
* interleaved by observedAt: each is flushed as an `agent-message` leaf
|
|
59
|
+
* before the first event observed at/after it. Only the messages that
|
|
60
|
+
* fall inside this page's span are placed (see TranscriptPagePlacement),
|
|
61
|
+
* so loading an older page never repeats one. Returns the lower bound of
|
|
62
|
+
* the span this page took — the `before` for the next older page. */
|
|
63
|
+
export declare function foldTranscriptLeaves(events: readonly AgentEvent[], into: TranscriptLeaf[], messages?: readonly AgentMessageView[], page?: TranscriptPagePlacement): number;
|
|
64
|
+
/** The transcript page's load state. `ready` keeps its rows while a newer
|
|
65
|
+
* page reloads (settlement) and while an older window prepends. */
|
|
66
|
+
export type TranscriptState = {
|
|
67
|
+
status: 'idle';
|
|
68
|
+
} | {
|
|
69
|
+
status: 'loading';
|
|
70
|
+
} | {
|
|
71
|
+
status: 'unavailable';
|
|
72
|
+
} | ReadyTranscript;
|
|
73
|
+
/** A loaded transcript. `messagesFrom` is where the placed agent messages
|
|
74
|
+
* start (the next older page takes the ones before it); `orphanResults`
|
|
75
|
+
* are results on the loaded pages whose call is on a page not loaded yet. */
|
|
76
|
+
export interface ReadyTranscript {
|
|
77
|
+
readonly status: 'ready';
|
|
78
|
+
readonly agentId: string;
|
|
79
|
+
readonly leaves: TranscriptLeaf[];
|
|
80
|
+
readonly parentAgentId: string | null;
|
|
81
|
+
readonly hasOlder: boolean;
|
|
82
|
+
readonly skippedFromStart: number;
|
|
83
|
+
/** Native opaque paging cursor, when the source does not expose a count. */
|
|
84
|
+
readonly sourceCursor?: string;
|
|
85
|
+
readonly loadingOlder: boolean;
|
|
86
|
+
readonly messagesFrom: number;
|
|
87
|
+
readonly orphanResults: ReadonlyMap<string, ToolResultEvent>;
|
|
88
|
+
}
|
|
89
|
+
/** The newest page of a child's transcript, folded. */
|
|
90
|
+
export declare function foldNewestPage(agentId: string, page: SubagentTranscriptView, messages: readonly AgentMessageView[]): ReadyTranscript;
|
|
91
|
+
/** One older page folded in front of a loaded transcript: its agent
|
|
92
|
+
* messages are the ones before the loaded span, and the results the newer
|
|
93
|
+
* pages held for its calls settle those calls' cards. */
|
|
94
|
+
export declare function foldOlderPage(current: ReadyTranscript, page: SubagentTranscriptView, messages: readonly AgentMessageView[]): ReadyTranscript;
|
|
95
|
+
/** One load-older window (messages; matches the backend's newest page). */
|
|
96
|
+
export declare const TRANSCRIPT_OLDER_CHUNK = 400;
|
|
97
|
+
/** The retained output window both stores keep (channel/activity.ts and
|
|
98
|
+
* dsh-adapter/subagents.ts): a tail at this size is a WINDOW, and the
|
|
99
|
+
* output page says so when no transcript source can show the rest. */
|
|
100
|
+
export declare const OUTPUT_WINDOW_CAP = 160;
|
|
101
|
+
/** A live tail line as the transcript page renders it below the history. */
|
|
102
|
+
export type LiveLeaf = {
|
|
103
|
+
kind: 'live';
|
|
104
|
+
line: SubagentOutputLine;
|
|
105
|
+
};
|
|
106
|
+
/** Render keys must be unique per row: the store's block-per-entry split can
|
|
107
|
+
* repeat one anchor inside a page (a text, a tool and another text of one
|
|
108
|
+
* message), so a repeated key gets an ordinal suffix; a leaf is never
|
|
109
|
+
* dropped for its key. The first occurrence keeps its key, later ones are
|
|
110
|
+
* copied. */
|
|
111
|
+
export declare function uniqueRenderKeys(leaves: readonly TranscriptLeaf[]): TranscriptLeaf[];
|
|
112
|
+
/** Prepend one older page's folded leaves. The store splits one API message
|
|
113
|
+
* into per-block entries sharing the anchor, so a block can only be cut
|
|
114
|
+
* across pages at the boundary: the older page's last leaf against the
|
|
115
|
+
* current list's first. Those two merge when they share the key and the
|
|
116
|
+
* text/thinking kind (the fold already joined everything consecutive
|
|
117
|
+
* within a page). Every other leaf keeps its own row in the older page's
|
|
118
|
+
* order: a different kind under the same key is kept, and a tool between
|
|
119
|
+
* two text parts of one message stays between them. No current leaf is
|
|
120
|
+
* mutated. */
|
|
121
|
+
export declare function prependOlderLeaves(fresh: readonly TranscriptLeaf[], current: readonly TranscriptLeaf[]): TranscriptLeaf[];
|
|
122
|
+
/** Merge the channel's live window into the folded history: tool records
|
|
123
|
+
* pair by call id (live status/previews win while the disk has not
|
|
124
|
+
* recorded the result; a call the history never saw appends as live),
|
|
125
|
+
* and text/thinking tail lines the loaded history already paints are
|
|
126
|
+
* suppressed — a settled block's lines are identical on both sides — so
|
|
127
|
+
* history and live neither double a row nor drop a tail. */
|
|
128
|
+
export declare function mergeLiveWindow(leaves: readonly TranscriptLeaf[], subagent: SubagentState, hasHistory: boolean): (TranscriptLeaf | LiveLeaf)[];
|
|
129
|
+
export type TranscriptLoader = (agentId: string, window?: SubagentTranscriptWindow) => Promise<SubagentTranscriptView | null>;
|
|
130
|
+
/**
|
|
131
|
+
* The paged history of one child: loads the newest page while `active`,
|
|
132
|
+
* reloads once when `reloadKey` changes (settlement makes the disk copy
|
|
133
|
+
* final), and prepends older windows on demand.
|
|
134
|
+
*
|
|
135
|
+
* The loader and the message feed ride refs: the channel UI proxy mints a
|
|
136
|
+
* fresh loader per read, and a reload must key on what changed (the child,
|
|
137
|
+
* activation, settlement), not on a churning identity. An older window is
|
|
138
|
+
* dropped when the state it was requested for is gone (the view switched
|
|
139
|
+
* to another agent, or a reload moved the newest page under it).
|
|
140
|
+
*/
|
|
141
|
+
export declare function useSubagentTranscript(loadTranscript: TranscriptLoader | undefined, agentId: string, active: boolean, reloadKey: unknown, messages: readonly AgentMessageView[]): {
|
|
142
|
+
readonly transcript: TranscriptState;
|
|
143
|
+
loadOlder(): void;
|
|
144
|
+
};
|
|
145
|
+
export {};
|
|
146
|
+
//# sourceMappingURL=subagentTranscript.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subagentTranscript.d.ts","sourceRoot":"","sources":["../../../../src/components/messages/subagentTranscript.ts"],"names":[],"mappings":"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"}
|