@armadra/agent 0.5.0 → 0.6.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/CHANGELOG.md +177 -294
- package/CHANGELOG.zh-CN.md +442 -0
- package/README.md +408 -364
- package/README.zh-CN.md +705 -0
- package/dist/agent/session-plan.js +2 -2
- package/dist/agent/session-state.d.ts +3 -0
- package/dist/agent/session-state.js +20 -0
- package/dist/agent/session-subagent.d.ts +15 -1
- package/dist/agent/session-subagent.js +26 -3
- package/dist/agent/session-telemetry.d.ts +16 -2
- package/dist/agent/session-telemetry.js +29 -7
- package/dist/agent/session-tools.js +5 -2
- package/dist/agent/session-trace-writer.d.ts +27 -0
- package/dist/agent/session-trace-writer.js +253 -0
- package/dist/agent/session.d.ts +2 -0
- package/dist/agent/session.js +12 -0
- package/dist/agent/subagent-direct.d.ts +20 -0
- package/dist/agent/subagent-direct.js +76 -0
- package/dist/agent/subagent-registry.d.ts +8 -1
- package/dist/agent/subagent-registry.js +28 -1
- package/dist/agent/system-prompt.d.ts +3 -1
- package/dist/agent/system-prompt.js +3 -0
- package/dist/agent/tool-runner.d.ts +2 -1
- package/dist/agent/tool-runner.js +5 -4
- package/dist/agent/types-w6.d.ts +39 -0
- package/dist/agent/types-w6.js +4 -0
- package/dist/agent/types.d.ts +5 -2
- package/dist/agents/external.js +1 -1
- package/dist/agents/task-record.d.ts +74 -1
- package/dist/agents/task-record.js +100 -0
- package/dist/ai/apis/cache-params.js +2 -1
- package/dist/ai/apis/chatgpt-backend.d.ts +52 -0
- package/dist/ai/apis/chatgpt-backend.js +224 -0
- package/dist/ai/apis/chatgpt-rate-limits.d.ts +26 -0
- package/dist/ai/apis/chatgpt-rate-limits.js +91 -0
- package/dist/ai/apis/openai-responses-request.d.ts +2 -1
- package/dist/ai/apis/openai-responses-request.js +8 -2
- package/dist/ai/apis/openai-responses.d.ts +2 -0
- package/dist/ai/apis/openai-responses.js +51 -16
- package/dist/ai/overflow.d.ts +1 -1
- package/dist/ai/overflow.js +10 -7
- package/dist/ai/providers/auth.d.ts +15 -2
- package/dist/ai/providers/auth.js +69 -2
- package/dist/ai/providers/builtin.js +27 -0
- package/dist/ai/providers/catalog-data.js +1 -0
- package/dist/ai/providers/enrich.js +2 -7
- package/dist/ai/providers/models-dev-cache.js +15 -19
- package/dist/ai/providers/models-dev-snapshot.js +8 -7
- package/dist/ai/providers/models-dev.js +5 -15
- package/dist/ai/providers/suggest.js +2 -16
- package/dist/ai/types.d.ts +27 -1
- package/dist/auth/chatgpt/backend-client.d.ts +26 -0
- package/dist/auth/chatgpt/backend-client.js +74 -0
- package/dist/auth/chatgpt/claims.d.ts +17 -0
- package/dist/auth/chatgpt/claims.js +46 -0
- package/dist/auth/chatgpt/cli.d.ts +33 -0
- package/dist/auth/chatgpt/cli.js +252 -0
- package/dist/auth/chatgpt/doctor.d.ts +17 -0
- package/dist/auth/chatgpt/doctor.js +36 -0
- package/dist/auth/chatgpt/host-id.d.ts +7 -0
- package/dist/auth/chatgpt/host-id.js +26 -0
- package/dist/auth/chatgpt/login.d.ts +30 -0
- package/dist/auth/chatgpt/login.js +130 -0
- package/dist/auth/chatgpt/presets.d.ts +66 -0
- package/dist/auth/chatgpt/presets.js +120 -0
- package/dist/auth/chatgpt/quota-text.d.ts +13 -0
- package/dist/auth/chatgpt/quota-text.js +36 -0
- package/dist/auth/oauth/browser.d.ts +12 -0
- package/dist/auth/oauth/browser.js +27 -0
- package/dist/auth/oauth/callback-server.d.ts +47 -0
- package/dist/auth/oauth/callback-server.js +147 -0
- package/dist/auth/oauth/flows.d.ts +62 -0
- package/dist/auth/oauth/flows.js +113 -0
- package/dist/auth/oauth/jwt.d.ts +24 -0
- package/dist/auth/oauth/jwt.js +81 -0
- package/dist/auth/oauth/live.d.ts +21 -0
- package/dist/auth/oauth/live.js +25 -0
- package/dist/auth/oauth/oidc.d.ts +26 -0
- package/dist/auth/oauth/oidc.js +72 -0
- package/dist/auth/oauth/pkce.d.ts +15 -0
- package/dist/auth/oauth/pkce.js +20 -0
- package/dist/auth/oauth/refresh.d.ts +35 -0
- package/dist/auth/oauth/refresh.js +129 -0
- package/dist/auth/oauth/token-client.d.ts +33 -0
- package/dist/auth/oauth/token-client.js +121 -0
- package/dist/auth/oauth/token-store.d.ts +23 -0
- package/dist/auth/oauth/token-store.js +125 -0
- package/dist/auth/testing/fake-oauth.d.ts +73 -0
- package/dist/auth/testing/fake-oauth.js +271 -0
- package/dist/auth/testing/refresh-child.d.ts +5 -0
- package/dist/auth/testing/refresh-child.js +16 -0
- package/dist/bundle/ama.cjs +28307 -13241
- package/dist/checkpoints/backend.js +6 -5
- package/dist/checkpoints/restore.js +3 -2
- package/dist/checkpoints/settings.js +2 -1
- package/dist/checkpoints/shadow-git.js +7 -6
- package/dist/checkpoints/shadow-restore.js +3 -2
- package/dist/checkpoints/tracker.js +4 -3
- package/dist/cli/args.d.ts +9 -2
- package/dist/cli/args.js +74 -27
- package/dist/cli/bootstrap.js +53 -31
- package/dist/cli/choice-prompt.d.ts +58 -0
- package/dist/cli/choice-prompt.js +142 -0
- package/dist/cli/codemode-notice.js +2 -2
- package/dist/cli/compose-agents.js +2 -1
- package/dist/cli/compose-extensions.js +2 -0
- package/dist/cli/compose-memory.d.ts +53 -0
- package/dist/cli/compose-memory.js +127 -0
- package/dist/cli/compose-providers.d.ts +5 -0
- package/dist/cli/compose-providers.js +32 -2
- package/dist/cli/compose-session.d.ts +5 -0
- package/dist/cli/compose-session.js +27 -13
- package/dist/cli/compose-store.d.ts +2 -0
- package/dist/cli/compose-store.js +9 -5
- package/dist/cli/compose.d.ts +2 -0
- package/dist/cli/compose.js +13 -5
- package/dist/cli/default-model.d.ts +0 -2
- package/dist/cli/default-model.js +5 -8
- package/dist/cli/deps.d.ts +5 -1
- package/dist/cli/exit-codes.d.ts +1 -1
- package/dist/cli/exit-codes.js +7 -16
- package/dist/cli/from-prompt.js +3 -2
- package/dist/cli/help-text.d.ts +2 -1
- package/dist/cli/help-text.js +5 -99
- package/dist/cli/main.d.ts +5 -0
- package/dist/cli/main.js +21 -2
- package/dist/cli/proxy.js +14 -9
- package/dist/cli/runtime.d.ts +5 -0
- package/dist/cli/startup-screen.js +20 -27
- package/dist/cli/startup-steps.js +6 -8
- package/dist/cli/subcommands/auth.d.ts +6 -3
- package/dist/cli/subcommands/auth.js +52 -22
- package/dist/cli/subcommands/config-set.d.ts +21 -0
- package/dist/cli/subcommands/config-set.js +137 -0
- package/dist/cli/subcommands/config.d.ts +2 -1
- package/dist/cli/subcommands/config.js +51 -37
- package/dist/cli/subcommands/doctor.d.ts +2 -1
- package/dist/cli/subcommands/doctor.js +97 -58
- package/dist/cli/subcommands/init.d.ts +1 -1
- package/dist/cli/subcommands/init.js +8 -7
- package/dist/cli/subcommands/memory.d.ts +18 -0
- package/dist/cli/subcommands/memory.js +189 -0
- package/dist/cli/subcommands/model-meta.js +11 -9
- package/dist/cli/subcommands/models-cache-probe.d.ts +1 -1
- package/dist/cli/subcommands/models-cache-probe.js +26 -32
- package/dist/cli/subcommands/models-discover.d.ts +3 -0
- package/dist/cli/subcommands/models-discover.js +44 -21
- package/dist/cli/subcommands/models.d.ts +1 -1
- package/dist/cli/subcommands/models.js +29 -22
- package/dist/cli/subcommands/probe-runner.js +8 -7
- package/dist/cli/subcommands/providers-list.js +32 -21
- package/dist/cli/subcommands/providers-plan.js +24 -25
- package/dist/cli/subcommands/providers-probe.js +5 -6
- package/dist/cli/subcommands/providers.d.ts +2 -2
- package/dist/cli/subcommands/providers.js +48 -59
- package/dist/cli/subcommands/sessions-export.d.ts +1 -1
- package/dist/cli/subcommands/sessions-export.js +10 -9
- package/dist/cli/subcommands/sessions-search.d.ts +1 -1
- package/dist/cli/subcommands/sessions-search.js +11 -10
- package/dist/cli/subcommands/sessions-trace.d.ts +30 -0
- package/dist/cli/subcommands/sessions-trace.js +156 -0
- package/dist/cli/subcommands/sessions.d.ts +4 -3
- package/dist/cli/subcommands/sessions.js +40 -37
- package/dist/cli/subcommands/stats.d.ts +1 -1
- package/dist/cli/subcommands/stats.js +49 -30
- package/dist/cli/system-prompt-arg.js +3 -2
- package/dist/codemode/capability.js +3 -2
- package/dist/compaction/post-compact.d.ts +1 -0
- package/dist/compaction/post-compact.js +15 -1
- package/dist/compaction/prune-tier.d.ts +1 -1
- package/dist/compaction/prune-tier.js +3 -3
- package/dist/compaction/serialize.js +2 -1
- package/dist/config/auth-file.d.ts +12 -2
- package/dist/config/auth-file.js +32 -10
- package/dist/config/checker.js +12 -11
- package/dist/config/context-files.js +3 -2
- package/dist/config/edit.d.ts +106 -0
- package/dist/config/edit.js +350 -0
- package/dist/config/init.d.ts +4 -3
- package/dist/config/init.js +10 -18
- package/dist/config/json-schema.d.ts +2 -1
- package/dist/config/json-schema.js +101 -68
- package/dist/config/key-docs.d.ts +18 -7
- package/dist/config/key-docs.js +43 -128
- package/dist/config/load.js +7 -6
- package/dist/config/merge.d.ts +4 -1
- package/dist/config/merge.js +42 -22
- package/dist/config/paths.js +6 -5
- package/dist/config/profile.d.ts +5 -1
- package/dist/config/profile.js +7 -2
- package/dist/config/schema-w5.js +3 -2
- package/dist/config/schema-w6.d.ts +19 -0
- package/dist/config/schema-w6.js +115 -0
- package/dist/config/schema.js +34 -20
- package/dist/config/settings-registry.d.ts +78 -0
- package/dist/config/settings-registry.js +184 -0
- package/dist/config/types-w6.d.ts +109 -0
- package/dist/config/types-w6.js +19 -0
- package/dist/config/types.d.ts +11 -8
- package/dist/config/types.js +1 -0
- package/dist/drivers/acp/client.js +1 -1
- package/dist/drivers/acp/driver.js +13 -8
- package/dist/drivers/agents.js +4 -3
- package/dist/drivers/base.js +3 -2
- package/dist/drivers/host-runners.js +2 -1
- package/dist/drivers/native/claude-stream.js +12 -11
- package/dist/drivers/native/codex-app-server.js +17 -12
- package/dist/drivers/native/oneshot.js +8 -7
- package/dist/drivers/pool.js +1 -1
- package/dist/drivers/runner.d.ts +3 -1
- package/dist/drivers/runner.js +68 -20
- package/dist/drivers/turn.js +1 -1
- package/dist/hooks/config.js +3 -2
- package/dist/hooks/protocol.js +18 -12
- package/dist/host/api-impl.js +11 -10
- package/dist/host/loader.js +9 -8
- package/dist/host/types.d.ts +3 -0
- package/dist/i18n/catalog.d.ts +2169 -0
- package/dist/i18n/catalog.js +72 -0
- package/dist/i18n/format.d.ts +21 -0
- package/dist/i18n/format.js +58 -0
- package/dist/i18n/index.d.ts +58 -0
- package/dist/i18n/index.js +72 -0
- package/dist/i18n/messages/agents.d.ts +84 -0
- package/dist/i18n/messages/agents.js +85 -0
- package/dist/i18n/messages/approval.d.ts +99 -0
- package/dist/i18n/messages/approval.js +100 -0
- package/dist/i18n/messages/auth.d.ts +187 -0
- package/dist/i18n/messages/auth.js +189 -0
- package/dist/i18n/messages/cli-args.d.ts +46 -0
- package/dist/i18n/messages/cli-args.js +46 -0
- package/dist/i18n/messages/cli-help.d.ts +12 -0
- package/dist/i18n/messages/cli-help.js +244 -0
- package/dist/i18n/messages/cli.d.ts +336 -0
- package/dist/i18n/messages/cli.js +311 -0
- package/dist/i18n/messages/config-keys.d.ts +289 -0
- package/dist/i18n/messages/config-keys.js +292 -0
- package/dist/i18n/messages/config.d.ts +502 -0
- package/dist/i18n/messages/config.js +239 -0
- package/dist/i18n/messages/drivers.d.ts +123 -0
- package/dist/i18n/messages/drivers.js +124 -0
- package/dist/i18n/messages/errors.d.ts +83 -0
- package/dist/i18n/messages/errors.js +171 -0
- package/dist/i18n/messages/interactive-line.d.ts +61 -0
- package/dist/i18n/messages/interactive-line.js +69 -0
- package/dist/i18n/messages/interactive-startup.d.ts +103 -0
- package/dist/i18n/messages/interactive-startup.js +104 -0
- package/dist/i18n/messages/interactive-view.d.ts +140 -0
- package/dist/i18n/messages/interactive-view.js +141 -0
- package/dist/i18n/messages/interactive.d.ts +493 -0
- package/dist/i18n/messages/interactive.js +248 -0
- package/dist/i18n/messages/memory.d.ts +123 -0
- package/dist/i18n/messages/memory.js +128 -0
- package/dist/i18n/messages/panels.d.ts +190 -0
- package/dist/i18n/messages/panels.js +189 -0
- package/dist/i18n/messages/permissions.d.ts +126 -0
- package/dist/i18n/messages/permissions.js +151 -0
- package/dist/i18n/messages/plan.d.ts +123 -0
- package/dist/i18n/messages/plan.js +124 -0
- package/dist/i18n/messages/print.d.ts +86 -0
- package/dist/i18n/messages/print.js +91 -0
- package/dist/i18n/messages/report.d.ts +391 -0
- package/dist/i18n/messages/report.js +490 -0
- package/dist/i18n/messages/rewind.d.ts +198 -0
- package/dist/i18n/messages/rewind.js +217 -0
- package/dist/i18n/messages/session.d.ts +230 -0
- package/dist/i18n/messages/session.js +258 -0
- package/dist/i18n/messages/settings.d.ts +348 -0
- package/dist/i18n/messages/settings.js +336 -0
- package/dist/i18n/messages/subcommands-config.d.ts +111 -0
- package/dist/i18n/messages/subcommands-config.js +127 -0
- package/dist/i18n/messages/subcommands.d.ts +548 -0
- package/dist/i18n/messages/subcommands.js +474 -0
- package/dist/i18n/messages/trace.d.ts +243 -0
- package/dist/i18n/messages/trace.js +238 -0
- package/dist/i18n/types.d.ts +15 -0
- package/dist/i18n/types.js +7 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +2 -0
- package/dist/memory/edit.d.ts +24 -0
- package/dist/memory/edit.js +63 -0
- package/dist/memory/frontmatter.d.ts +37 -0
- package/dist/memory/frontmatter.js +79 -0
- package/dist/memory/index.d.ts +28 -0
- package/dist/memory/index.js +126 -0
- package/dist/memory/lock.d.ts +17 -0
- package/dist/memory/lock.js +62 -0
- package/dist/memory/paths.d.ts +57 -0
- package/dist/memory/paths.js +175 -0
- package/dist/memory/report.d.ts +36 -0
- package/dist/memory/report.js +86 -0
- package/dist/memory/runtime.d.ts +42 -0
- package/dist/memory/runtime.js +36 -0
- package/dist/memory/secrets.d.ts +8 -0
- package/dist/memory/secrets.js +27 -0
- package/dist/memory/section.d.ts +28 -0
- package/dist/memory/section.js +59 -0
- package/dist/memory/store.d.ts +70 -0
- package/dist/memory/store.js +284 -0
- package/dist/memory/tool.d.ts +31 -0
- package/dist/memory/tool.js +94 -0
- package/dist/modes/acp/acp-events.js +2 -1
- package/dist/modes/acp/acp-server.js +13 -12
- package/dist/modes/commands-core.d.ts +17 -0
- package/dist/modes/commands-core.js +101 -61
- package/dist/modes/image-input.js +20 -6
- package/dist/modes/interactive/agent-bar.d.ts +95 -0
- package/dist/modes/interactive/agent-bar.js +248 -0
- package/dist/modes/interactive/agent-panels.js +27 -26
- package/dist/modes/interactive/agent-transcript.d.ts +47 -0
- package/dist/modes/interactive/agent-transcript.js +191 -0
- package/dist/modes/interactive/agent-ui.d.ts +36 -1
- package/dist/modes/interactive/agent-ui.js +180 -14
- package/dist/modes/interactive/agent-view.d.ts +72 -0
- package/dist/modes/interactive/agent-view.js +281 -0
- package/dist/modes/interactive/approval-dialog.js +46 -34
- package/dist/modes/interactive/clipboard-paste.d.ts +2 -2
- package/dist/modes/interactive/clipboard-paste.js +9 -4
- package/dist/modes/interactive/commands.d.ts +22 -1
- package/dist/modes/interactive/commands.js +93 -38
- package/dist/modes/interactive/completion.js +2 -1
- package/dist/modes/interactive/config-panel.d.ts +70 -0
- package/dist/modes/interactive/config-panel.js +319 -0
- package/dist/modes/interactive/config-ui.d.ts +96 -0
- package/dist/modes/interactive/config-ui.js +397 -0
- package/dist/modes/interactive/confirm-dialog.d.ts +49 -0
- package/dist/modes/interactive/confirm-dialog.js +120 -0
- package/dist/modes/interactive/event-notices.js +11 -9
- package/dist/modes/interactive/interactive-mode.d.ts +1 -1
- package/dist/modes/interactive/interactive-mode.js +25 -22
- package/dist/modes/interactive/key-dispatch.d.ts +18 -0
- package/dist/modes/interactive/key-dispatch.js +39 -13
- package/dist/modes/interactive/line/line-editor.js +2 -1
- package/dist/modes/interactive/line/line-mode.d.ts +2 -0
- package/dist/modes/interactive/line/line-mode.js +24 -4
- package/dist/modes/interactive/line/line-render.js +25 -24
- package/dist/modes/interactive/memory-panel.d.ts +64 -0
- package/dist/modes/interactive/memory-panel.js +221 -0
- package/dist/modes/interactive/message-view.d.ts +4 -2
- package/dist/modes/interactive/message-view.js +42 -33
- package/dist/modes/interactive/panels.js +39 -31
- package/dist/modes/interactive/pickers.d.ts +2 -1
- package/dist/modes/interactive/pickers.js +10 -6
- package/dist/modes/interactive/plan-command.d.ts +1 -1
- package/dist/modes/interactive/plan-command.js +24 -27
- package/dist/modes/interactive/plan-dialog.js +18 -17
- package/dist/modes/interactive/plan-flow.js +6 -5
- package/dist/modes/interactive/rewind-command.d.ts +1 -1
- package/dist/modes/interactive/rewind-command.js +18 -16
- package/dist/modes/interactive/rewind-flow.d.ts +0 -1
- package/dist/modes/interactive/rewind-flow.js +13 -14
- package/dist/modes/interactive/rewind-list.js +7 -6
- package/dist/modes/interactive/rewind-panel.js +40 -40
- package/dist/modes/interactive/rewind-text.d.ts +5 -3
- package/dist/modes/interactive/rewind-text.js +48 -38
- package/dist/modes/interactive/run-indicator.js +15 -12
- package/dist/modes/interactive/session-events.js +3 -2
- package/dist/modes/interactive/startup-header.js +22 -23
- package/dist/modes/interactive/startup-ui.js +41 -29
- package/dist/modes/interactive/status-area.d.ts +2 -0
- package/dist/modes/interactive/status-area.js +8 -2
- package/dist/modes/interactive/status-bar.js +4 -3
- package/dist/modes/interactive/subagent-view.js +9 -7
- package/dist/modes/interactive/tasks-report.d.ts +6 -0
- package/dist/modes/interactive/tasks-report.js +28 -31
- package/dist/modes/interactive/terminal-setup.d.ts +9 -0
- package/dist/modes/interactive/terminal-setup.js +23 -0
- package/dist/modes/interactive/tool-summary.js +19 -17
- package/dist/modes/interactive/tool-view.js +7 -4
- package/dist/modes/interactive/trace-view.d.ts +89 -0
- package/dist/modes/interactive/trace-view.js +332 -0
- package/dist/modes/print/print-mode.js +14 -15
- package/dist/modes/rpc/commands.js +7 -3
- package/dist/modes/rpc/rpc-mode.js +9 -3
- package/dist/modes/session-report.d.ts +2 -0
- package/dist/modes/session-report.js +101 -105
- package/dist/modes/startup-ui-text.js +11 -6
- package/dist/permissions/bypass.d.ts +30 -0
- package/dist/permissions/bypass.js +45 -0
- package/dist/permissions/memory-class.d.ts +23 -0
- package/dist/permissions/memory-class.js +54 -0
- package/dist/permissions/modes.d.ts +3 -3
- package/dist/permissions/modes.js +21 -16
- package/dist/permissions/pipeline.d.ts +1 -1
- package/dist/permissions/pipeline.js +9 -2
- package/dist/permissions/preview.js +49 -42
- package/dist/permissions/rules.js +5 -2
- package/dist/permissions/types.d.ts +4 -0
- package/dist/plan/store.js +2 -1
- package/dist/rpc.d.ts +39 -1
- package/dist/rpc.js +3 -0
- package/dist/sandbox/bash.js +11 -8
- package/dist/sandbox/detect.js +14 -11
- package/dist/sdk.d.ts +17 -1
- package/dist/sdk.js +29 -7
- package/dist/session/export.js +31 -30
- package/dist/session/manager.d.ts +1 -1
- package/dist/session/manager.js +5 -3
- package/dist/session/reuse.js +5 -4
- package/dist/session/scan.js +3 -2
- package/dist/session/stats-aggregate.d.ts +3 -1
- package/dist/session/stats-aggregate.js +5 -1
- package/dist/session/stats-index.js +2 -1
- package/dist/session/stats-scan.d.ts +4 -1
- package/dist/session/stats-scan.js +6 -2
- package/dist/session/store.d.ts +11 -0
- package/dist/session/store.js +48 -1
- package/dist/session/types.d.ts +2 -0
- package/dist/skills/builtin.js +2 -1
- package/dist/tools/image-file.d.ts +26 -1
- package/dist/tools/image-file.js +55 -13
- package/dist/tools/presets.d.ts +14 -1
- package/dist/tools/presets.js +3 -3
- package/dist/tools/registry.js +1 -1
- package/dist/tools/truncate.d.ts +1 -1
- package/dist/tools/truncate.js +2 -2
- package/dist/tools/types.d.ts +17 -1
- package/dist/trace/build-index.d.ts +91 -0
- package/dist/trace/build-index.js +127 -0
- package/dist/trace/build-nodes.d.ts +24 -0
- package/dist/trace/build-nodes.js +279 -0
- package/dist/trace/build-util.d.ts +43 -0
- package/dist/trace/build-util.js +120 -0
- package/dist/trace/build.d.ts +82 -0
- package/dist/trace/build.js +382 -0
- package/dist/trace/detail.d.ts +35 -0
- package/dist/trace/detail.js +205 -0
- package/dist/trace/flatten.d.ts +69 -0
- package/dist/trace/flatten.js +173 -0
- package/dist/trace/format.d.ts +47 -0
- package/dist/trace/format.js +329 -0
- package/dist/trace/html-template.d.ts +19 -0
- package/dist/trace/html-template.js +150 -0
- package/dist/trace/html.d.ts +104 -0
- package/dist/trace/html.js +292 -0
- package/dist/trace/preview.d.ts +29 -0
- package/dist/trace/preview.js +59 -0
- package/dist/trace/query-session.d.ts +14 -0
- package/dist/trace/query-session.js +38 -0
- package/dist/trace/query.d.ts +55 -0
- package/dist/trace/query.js +188 -0
- package/dist/trace/session.d.ts +40 -0
- package/dist/trace/session.js +168 -0
- package/dist/trace/types.d.ts +243 -0
- package/dist/trace/types.js +13 -0
- package/dist/tui/components/editor-paste.d.ts +2 -0
- package/dist/tui/components/editor-paste.js +6 -3
- package/dist/tui/components/editor.js +2 -2
- package/dist/tui/components/loader.d.ts +3 -0
- package/dist/tui/components/loader.js +14 -0
- package/dist/tui/components/settings-list.d.ts +61 -0
- package/dist/tui/components/settings-list.js +135 -0
- package/dist/tui/keybindings.d.ts +6 -1
- package/dist/tui/keybindings.js +18 -6
- package/dist/tui.d.ts +1 -0
- package/dist/tui.js +2 -0
- package/docs/en/host-api.md +167 -0
- package/docs/en/permissions.md +214 -0
- package/docs/en/providers.md +625 -0
- package/docs/en/rpc.md +361 -0
- package/docs/en/sessions.md +219 -0
- package/docs/en/tui.md +527 -0
- package/docs/host-api.md +18 -17
- package/docs/memory.md +172 -0
- package/docs/permissions.md +3 -2
- package/docs/providers.md +67 -1
- package/docs/rpc.md +31 -3
- package/docs/session-format.md +8 -2
- package/docs/sessions.md +29 -1
- package/docs/tui.md +189 -21
- package/package.json +8 -3
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 消息目录:interactive 的消息区部分(键名规范见 docs/i18n.md)。[W6-I2]
|
|
3
|
+
*
|
|
4
|
+
* 单文件 600 行上限,`interactive.ts` 拆出:消息区(`message-view.ts`)、运行指示(`run-indicator.ts`)、
|
|
5
|
+
* 工具摘要与工具块(`tool-summary.ts`、`tool-view.ts`)。经 `msg().interactive.view` 取用。
|
|
6
|
+
* en 是形状源;zh 用 `satisfies Messages<typeof en>`。
|
|
7
|
+
*/
|
|
8
|
+
import { plural } from "../format.js";
|
|
9
|
+
export const en = {
|
|
10
|
+
message: {
|
|
11
|
+
/** 退出摘要的时长:不足 1 分钟按秒,否则按分钟。 */
|
|
12
|
+
duration: (seconds) => seconds < 60 ? `${seconds}s` : `${Math.round(seconds / 60)} min`,
|
|
13
|
+
sessionPrefix: (rule) => `${rule} session `,
|
|
14
|
+
turns: (n) => plural(n, "turn"),
|
|
15
|
+
rebill: (cost) => ` (re-billed ${cost})`,
|
|
16
|
+
resume: " resume: ",
|
|
17
|
+
origin: {
|
|
18
|
+
steer: "steer",
|
|
19
|
+
followUp: "follow-up",
|
|
20
|
+
host: "host",
|
|
21
|
+
task: "subagent notice",
|
|
22
|
+
plan: "plan",
|
|
23
|
+
},
|
|
24
|
+
planHandoff: "Start executing the approved plan",
|
|
25
|
+
thinkingStreaming: (glyph, ellipsis) => `${glyph} Thinking${ellipsis}`,
|
|
26
|
+
thinking: (glyph, tokens) => `${glyph} Thought · ${tokens} tokens`,
|
|
27
|
+
moreLines: (ellipsis, n) => `${ellipsis} ${plural(n, "more line")}`,
|
|
28
|
+
image: "[image]",
|
|
29
|
+
modelError: "Model call failed",
|
|
30
|
+
interrupted: "Interrupted",
|
|
31
|
+
lengthLimit: "Output hit the length limit",
|
|
32
|
+
hookBlocked: (glyph, reason) => `${glyph} Blocked by hook: ${reason}`,
|
|
33
|
+
retry: (glyph, attempt, max, seconds, error) => `${glyph} Retry ${attempt}/${max} (in ${seconds}s): ${error}`,
|
|
34
|
+
retryFailed: (error) => `Retry failed${error !== undefined ? `: ${error}` : ""}`,
|
|
35
|
+
summaryTokens: (before, after) => `${before}${after !== undefined ? ` → ${after}` : ""} tokens`,
|
|
36
|
+
compacted: "Context compacted",
|
|
37
|
+
branchSummary: "Branch summary",
|
|
38
|
+
},
|
|
39
|
+
run: {
|
|
40
|
+
esc: "Esc to interrupt",
|
|
41
|
+
awaitingApproval: "Awaiting approval",
|
|
42
|
+
runningTool: (name) => `Running ${name}`,
|
|
43
|
+
runningTools: (n) => `Running ${n} tools`,
|
|
44
|
+
retry: (attempt, max) => `Retrying ${attempt}/${max}`,
|
|
45
|
+
retryIn: (seconds) => `in ${seconds}s`,
|
|
46
|
+
compacting: "Compacting context",
|
|
47
|
+
replying: "Replying",
|
|
48
|
+
thinking: "Thinking",
|
|
49
|
+
queueMore: (ellipsis, n) => `${ellipsis} ${n} more`,
|
|
50
|
+
queueHint: (arrow) => `Alt+${arrow} take back · Esc refill and interrupt`,
|
|
51
|
+
},
|
|
52
|
+
tool: {
|
|
53
|
+
interrupted: "interrupted",
|
|
54
|
+
timedOut: "timed out",
|
|
55
|
+
exit: (code) => `exit ${code}`,
|
|
56
|
+
lines: (n) => plural(n, "line"),
|
|
57
|
+
failed: "failed",
|
|
58
|
+
image: (mime) => `image ${mime}`,
|
|
59
|
+
emptyFile: "empty file",
|
|
60
|
+
read: (n) => `read ${plural(n, "line")}`,
|
|
61
|
+
edits: (n) => plural(n, "edit"),
|
|
62
|
+
write: (created, n) => `${created ? "created" : "overwrote"} · ${plural(n, "line")}`,
|
|
63
|
+
noMatch: "no matches",
|
|
64
|
+
matches: (matches, files) => `${plural(matches, "match", "matches")} · ${files === undefined ? "? files" : plural(files, "file")}`,
|
|
65
|
+
files: (n) => plural(n, "file"),
|
|
66
|
+
codemode: (calls, lines) => `${plural(calls, "inner call")} · script printed ${plural(lines, "line")}`,
|
|
67
|
+
done: "done",
|
|
68
|
+
outputLines: (n) => `${plural(n, "line")} of output`,
|
|
69
|
+
awaiting: (glyph) => `${glyph} awaiting approval`,
|
|
70
|
+
subagentRunning: (elapsed) => `subagent · running ${elapsed}`,
|
|
71
|
+
running: (elapsed) => `running · ${elapsed}`,
|
|
72
|
+
moreLines: (ellipsis, n) => `${ellipsis} ${plural(n, "more line")} (Ctrl+O to expand)`,
|
|
73
|
+
earlierCalls: (ellipsis, n) => `${ellipsis} ${plural(n, "earlier call")}`,
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
export const zh = {
|
|
77
|
+
message: {
|
|
78
|
+
duration: (seconds) => (seconds < 60 ? `${seconds} 秒` : `${Math.round(seconds / 60)} 分钟`),
|
|
79
|
+
sessionPrefix: (rule) => `${rule} 会话 `,
|
|
80
|
+
turns: (n) => `${n} 回合`,
|
|
81
|
+
rebill: (cost) => `(重计费 ${cost})`,
|
|
82
|
+
resume: " 恢复:",
|
|
83
|
+
origin: {
|
|
84
|
+
steer: "插话",
|
|
85
|
+
followUp: "之后",
|
|
86
|
+
host: "宿主",
|
|
87
|
+
task: "子 Agent 通知",
|
|
88
|
+
plan: "计划",
|
|
89
|
+
},
|
|
90
|
+
planHandoff: "按批准的计划开始执行",
|
|
91
|
+
thinkingStreaming: (glyph, ellipsis) => `${glyph} 思考中${ellipsis}`,
|
|
92
|
+
thinking: (glyph, tokens) => `${glyph} 思考 · ${tokens} token`,
|
|
93
|
+
moreLines: (ellipsis, n) => `${ellipsis} 另 ${n} 行`,
|
|
94
|
+
image: "[图片]",
|
|
95
|
+
modelError: "模型调用失败",
|
|
96
|
+
interrupted: "已中断",
|
|
97
|
+
lengthLimit: "输出达到长度上限",
|
|
98
|
+
hookBlocked: (glyph, reason) => `${glyph} Hook 阻止:${reason}`,
|
|
99
|
+
retry: (glyph, attempt, max, seconds, error) => `${glyph} 重试 ${attempt}/${max}(${seconds}s 后):${error}`,
|
|
100
|
+
retryFailed: (error) => `重试失败${error !== undefined ? `:${error}` : ""}`,
|
|
101
|
+
summaryTokens: (before, after) => `${before}${after !== undefined ? ` → ${after}` : ""} token`,
|
|
102
|
+
compacted: "上下文已压缩",
|
|
103
|
+
branchSummary: "分支摘要",
|
|
104
|
+
},
|
|
105
|
+
run: {
|
|
106
|
+
esc: "Esc 中断",
|
|
107
|
+
awaitingApproval: "等待确认",
|
|
108
|
+
runningTool: (name) => `运行 ${name}`,
|
|
109
|
+
runningTools: (n) => `运行 ${n} 个工具`,
|
|
110
|
+
retry: (attempt, max) => `重试 ${attempt}/${max}`,
|
|
111
|
+
retryIn: (seconds) => `${seconds}s 后`,
|
|
112
|
+
compacting: "压缩上下文",
|
|
113
|
+
replying: "回复中",
|
|
114
|
+
thinking: "思考中",
|
|
115
|
+
queueMore: (ellipsis, n) => `${ellipsis} 另 ${n} 条`,
|
|
116
|
+
queueHint: (arrow) => `Alt+${arrow} 取回 · Esc 回填并中断`,
|
|
117
|
+
},
|
|
118
|
+
tool: {
|
|
119
|
+
interrupted: "已中断",
|
|
120
|
+
timedOut: "超时",
|
|
121
|
+
exit: (code) => `退出 ${code}`,
|
|
122
|
+
lines: (n) => `${n} 行`,
|
|
123
|
+
failed: "失败",
|
|
124
|
+
image: (mime) => `图片 ${mime}`,
|
|
125
|
+
emptyFile: "空文件",
|
|
126
|
+
read: (n) => `读取 ${n} 行`,
|
|
127
|
+
edits: (n) => `${n} 处修改`,
|
|
128
|
+
write: (created, n) => `${created ? "新建" : "覆盖"} · ${n} 行`,
|
|
129
|
+
noMatch: "无匹配",
|
|
130
|
+
matches: (matches, files) => `${matches} 处匹配 · ${files ?? "?"} 个文件`,
|
|
131
|
+
files: (n) => `${n} 个文件`,
|
|
132
|
+
codemode: (calls, lines) => `${calls} 个内层调用 · 脚本输出 ${lines} 行`,
|
|
133
|
+
done: "完成",
|
|
134
|
+
outputLines: (n) => `${n} 行输出`,
|
|
135
|
+
awaiting: (glyph) => `${glyph} 等待确认`,
|
|
136
|
+
subagentRunning: (elapsed) => `子 Agent · 运行中 ${elapsed}`,
|
|
137
|
+
running: (elapsed) => `运行中 · ${elapsed}`,
|
|
138
|
+
moreLines: (ellipsis, n) => `${ellipsis} 另 ${n} 行(Ctrl+O 展开)`,
|
|
139
|
+
earlierCalls: (ellipsis, n) => `${ellipsis} 前 ${n} 个调用`,
|
|
140
|
+
},
|
|
141
|
+
};
|
|
@@ -0,0 +1,493 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 消息目录:interactive(键名规范见 docs/i18n.md)。[W6-C0 建空壳,归 W6-I2]
|
|
3
|
+
*
|
|
4
|
+
* en 是形状源;zh 用 `satisfies Messages<typeof en>`,缺键 / 多键 / 参数不符在 tsc 期报错。
|
|
5
|
+
* 整句一个键、禁止片段拼接;插值写成函数,条件分支写进函数体。
|
|
6
|
+
*
|
|
7
|
+
* 单文件 600 行上限:消息区与工具块在 `interactive-view.ts`(`view`),启动头与启动期交互在
|
|
8
|
+
* `interactive-startup.ts`(`startup`),行式界面在 `interactive-line.ts`(`line`)。
|
|
9
|
+
*/
|
|
10
|
+
import * as line from "./interactive-line.js";
|
|
11
|
+
export declare const en: {
|
|
12
|
+
commands: {
|
|
13
|
+
/** [W6-C0] 第六波命令登记了但本构建还没有实现。 */
|
|
14
|
+
unavailable: (name: string) => string;
|
|
15
|
+
treeDescription: string;
|
|
16
|
+
permissionsDescription: string;
|
|
17
|
+
keyHints: string;
|
|
18
|
+
permissionsMode: (label: string, mode: string) => string;
|
|
19
|
+
permissionsOrder: (order: string) => string;
|
|
20
|
+
rulesNone: string;
|
|
21
|
+
rules: (n: number) => string;
|
|
22
|
+
recentAuto: (n: number) => string;
|
|
23
|
+
noUserMessages: string;
|
|
24
|
+
treeUnsupported: string;
|
|
25
|
+
treeBusy: string;
|
|
26
|
+
treeTitle: string;
|
|
27
|
+
modelTitle: string;
|
|
28
|
+
modelSet: (ref: string) => string;
|
|
29
|
+
noOtherSessions: string;
|
|
30
|
+
resumeTitle: string;
|
|
31
|
+
resumed: (id: string) => string;
|
|
32
|
+
forkTitle: string;
|
|
33
|
+
forked: (id: string) => string;
|
|
34
|
+
modeCancelled: (label: string) => string;
|
|
35
|
+
modeSet: (label: string) => string;
|
|
36
|
+
thinkingTitle: string;
|
|
37
|
+
numberFooter: (arrows: string, n: number) => string;
|
|
38
|
+
};
|
|
39
|
+
paste: {
|
|
40
|
+
/** 编辑器里大粘贴的折叠标记(`tui/components/editor-paste.ts`;识别正则同时认两种语言)。 */
|
|
41
|
+
marker: (id: number, lines: number) => string;
|
|
42
|
+
};
|
|
43
|
+
/** 按键分派的一行提示(`key-dispatch.ts`)。 */
|
|
44
|
+
keys: {
|
|
45
|
+
escRewind: string;
|
|
46
|
+
escClear: string;
|
|
47
|
+
cleared: string;
|
|
48
|
+
bypassSkipped: (label: string) => string;
|
|
49
|
+
clearedCtrlC: string;
|
|
50
|
+
ctrlCAgain: string;
|
|
51
|
+
interrupted: string;
|
|
52
|
+
toolsExpanded: string;
|
|
53
|
+
toolsCollapsed: string;
|
|
54
|
+
};
|
|
55
|
+
/** 交互模式装配(`interactive-mode.ts`)。 */
|
|
56
|
+
app: {
|
|
57
|
+
placeholder: string;
|
|
58
|
+
notTty: string;
|
|
59
|
+
keybindingsWarning: (warning: string) => string;
|
|
60
|
+
noResult: string;
|
|
61
|
+
followed: (text: string) => string;
|
|
62
|
+
terminalInitFailed: (error: string) => string;
|
|
63
|
+
};
|
|
64
|
+
clipboard: {
|
|
65
|
+
noTool: string;
|
|
66
|
+
noImage: string;
|
|
67
|
+
failed: (error: string) => string;
|
|
68
|
+
reading: string;
|
|
69
|
+
inserted: string;
|
|
70
|
+
};
|
|
71
|
+
completion: {
|
|
72
|
+
promptTemplate: string;
|
|
73
|
+
};
|
|
74
|
+
/** 会话事件的提示(`event-notices.ts`、`session-events.ts`;line 模式共用)。 */
|
|
75
|
+
events: {
|
|
76
|
+
compactionNoShrink: string;
|
|
77
|
+
imagesOmitted: (n: number) => string;
|
|
78
|
+
limitTurns: (limit: number) => string;
|
|
79
|
+
limitCost: (limit: string, spent: string) => string;
|
|
80
|
+
modelFallback: (from: string, reason: string, to: string) => string;
|
|
81
|
+
backgroundStarted: (jobId: string, command: string) => string;
|
|
82
|
+
backgroundExited: (jobId: string, code: string, command: string) => string;
|
|
83
|
+
backgroundStopped: (jobId: string, command: string) => string;
|
|
84
|
+
compactionFailed: (error: string) => string;
|
|
85
|
+
compactionCancelled: string;
|
|
86
|
+
};
|
|
87
|
+
statusLine: {
|
|
88
|
+
usage: string;
|
|
89
|
+
full: string;
|
|
90
|
+
compact: string;
|
|
91
|
+
cacheSilent: string;
|
|
92
|
+
sandbox: string;
|
|
93
|
+
cycleHint: string;
|
|
94
|
+
};
|
|
95
|
+
subagent: {
|
|
96
|
+
running: (elapsed: string) => string;
|
|
97
|
+
backgroundEnd: (taskId: string, agent: string, status: string, turns: number) => string;
|
|
98
|
+
notificationTurns: (turns: string) => string;
|
|
99
|
+
viewOutput: string;
|
|
100
|
+
};
|
|
101
|
+
agentUi: {
|
|
102
|
+
tasksTitle: string;
|
|
103
|
+
tasksFooter: (arrows: string) => string;
|
|
104
|
+
viewOutput: string;
|
|
105
|
+
stop: string;
|
|
106
|
+
stopped: (taskId: string) => string;
|
|
107
|
+
};
|
|
108
|
+
keybindings: {
|
|
109
|
+
notObject: string;
|
|
110
|
+
unknownAction: (action: string) => string;
|
|
111
|
+
badKeys: (action: string) => string;
|
|
112
|
+
readFailed: (path: string, error: string) => string;
|
|
113
|
+
badJson: (path: string, error: string) => string;
|
|
114
|
+
};
|
|
115
|
+
editor: {
|
|
116
|
+
completionFooter: string;
|
|
117
|
+
};
|
|
118
|
+
view: {
|
|
119
|
+
message: {
|
|
120
|
+
duration: (seconds: number) => string;
|
|
121
|
+
sessionPrefix: (rule: string) => string;
|
|
122
|
+
turns: (n: number) => string;
|
|
123
|
+
rebill: (cost: string) => string;
|
|
124
|
+
resume: string;
|
|
125
|
+
origin: {
|
|
126
|
+
steer: string;
|
|
127
|
+
followUp: string;
|
|
128
|
+
host: string;
|
|
129
|
+
task: string;
|
|
130
|
+
plan: string;
|
|
131
|
+
};
|
|
132
|
+
planHandoff: string;
|
|
133
|
+
thinkingStreaming: (glyph: string, ellipsis: string) => string;
|
|
134
|
+
thinking: (glyph: string, tokens: string) => string;
|
|
135
|
+
moreLines: (ellipsis: string, n: number) => string;
|
|
136
|
+
image: string;
|
|
137
|
+
modelError: string;
|
|
138
|
+
interrupted: string;
|
|
139
|
+
lengthLimit: string;
|
|
140
|
+
hookBlocked: (glyph: string, reason: string) => string;
|
|
141
|
+
retry: (glyph: string, attempt: number, max: number, seconds: number, error: string) => string;
|
|
142
|
+
retryFailed: (error: string | undefined) => string;
|
|
143
|
+
summaryTokens: (before: string, after: string | undefined) => string;
|
|
144
|
+
compacted: string;
|
|
145
|
+
branchSummary: string;
|
|
146
|
+
};
|
|
147
|
+
run: {
|
|
148
|
+
esc: string;
|
|
149
|
+
awaitingApproval: string;
|
|
150
|
+
runningTool: (name: string) => string;
|
|
151
|
+
runningTools: (n: number) => string;
|
|
152
|
+
retry: (attempt: number, max: number) => string;
|
|
153
|
+
retryIn: (seconds: number) => string;
|
|
154
|
+
compacting: string;
|
|
155
|
+
replying: string;
|
|
156
|
+
thinking: string;
|
|
157
|
+
queueMore: (ellipsis: string, n: number) => string;
|
|
158
|
+
queueHint: (arrow: string) => string;
|
|
159
|
+
};
|
|
160
|
+
tool: {
|
|
161
|
+
interrupted: string;
|
|
162
|
+
timedOut: string;
|
|
163
|
+
exit: (code: number) => string;
|
|
164
|
+
lines: (n: number) => string;
|
|
165
|
+
failed: string;
|
|
166
|
+
image: (mime: string) => string;
|
|
167
|
+
emptyFile: string;
|
|
168
|
+
read: (n: number) => string;
|
|
169
|
+
edits: (n: number) => string;
|
|
170
|
+
write: (created: boolean, n: number) => string;
|
|
171
|
+
noMatch: string;
|
|
172
|
+
matches: (matches: number, files: number | undefined) => string;
|
|
173
|
+
files: (n: number) => string;
|
|
174
|
+
codemode: (calls: number, lines: number) => string;
|
|
175
|
+
done: string;
|
|
176
|
+
outputLines: (n: number) => string;
|
|
177
|
+
awaiting: (glyph: string) => string;
|
|
178
|
+
subagentRunning: (elapsed: string) => string;
|
|
179
|
+
running: (elapsed: string) => string;
|
|
180
|
+
moreLines: (ellipsis: string, n: number) => string;
|
|
181
|
+
earlierCalls: (ellipsis: string, n: number) => string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
startup: {
|
|
185
|
+
header: {
|
|
186
|
+
trusted: string;
|
|
187
|
+
untrusted: string;
|
|
188
|
+
trustSource: (source: string) => string;
|
|
189
|
+
templates: (n: number) => string;
|
|
190
|
+
host: (host: string) => string;
|
|
191
|
+
warnings: (n: number) => string;
|
|
192
|
+
hintCompact: string;
|
|
193
|
+
keyModel: string;
|
|
194
|
+
keyDir: string;
|
|
195
|
+
keyMode: string;
|
|
196
|
+
keyLoaded: string;
|
|
197
|
+
keyHost: string;
|
|
198
|
+
keyWarnings: string;
|
|
199
|
+
thinking: (level: string) => string;
|
|
200
|
+
preset: (preset: string) => string;
|
|
201
|
+
warningsValue: (n: number) => string;
|
|
202
|
+
hint: string;
|
|
203
|
+
};
|
|
204
|
+
ui: {
|
|
205
|
+
cancelled: string;
|
|
206
|
+
hintFilter: (arrows: string) => string;
|
|
207
|
+
hintNumbers: (arrows: string, n: number) => string;
|
|
208
|
+
hint: (arrows: string) => string;
|
|
209
|
+
local: string;
|
|
210
|
+
noKey: string;
|
|
211
|
+
justNow: string;
|
|
212
|
+
minutesAgo: (n: number) => string;
|
|
213
|
+
hoursAgo: (n: number) => string;
|
|
214
|
+
daysAgo: (n: number) => string;
|
|
215
|
+
messages: (n: number) => string;
|
|
216
|
+
trustRemember: string;
|
|
217
|
+
trustOnce: string;
|
|
218
|
+
trustSkip: string;
|
|
219
|
+
trustNever: string;
|
|
220
|
+
moreResources: (n: number) => string;
|
|
221
|
+
trustTitle: string;
|
|
222
|
+
resumeTitle: string;
|
|
223
|
+
modelTitle: string;
|
|
224
|
+
cwdTitle: string;
|
|
225
|
+
cwdPrompt: string;
|
|
226
|
+
cwdPlaceholder: string;
|
|
227
|
+
cwdEmpty: string;
|
|
228
|
+
cwdMissing: (path: string) => string;
|
|
229
|
+
cwdNotDir: (path: string) => string;
|
|
230
|
+
};
|
|
231
|
+
};
|
|
232
|
+
line: {
|
|
233
|
+
approvalOrigin: (task: string, title: string, where: string | undefined) => string;
|
|
234
|
+
approvalFirstRun: (task: string, note: string) => string;
|
|
235
|
+
approvalTool: (task: string, tool: string, summary: string, why: line.LineApprovalWhy | undefined) => string;
|
|
236
|
+
retry: (attempt: number, max: number, seconds: number, error: string) => string;
|
|
237
|
+
compacting: string;
|
|
238
|
+
error: (error: string) => string;
|
|
239
|
+
planProposed: (version: number, file: string | undefined) => string;
|
|
240
|
+
subagentStart: (taskId: string, agent: string, background: boolean) => string;
|
|
241
|
+
modelsHeading: string;
|
|
242
|
+
noSessions: string;
|
|
243
|
+
sessionsHeading: string;
|
|
244
|
+
noForkable: string;
|
|
245
|
+
forkHeading: string;
|
|
246
|
+
modeHeading: string;
|
|
247
|
+
thinking: (levels: string, current: string) => string;
|
|
248
|
+
banner: (version: string, model: string) => string;
|
|
249
|
+
interrupted: string;
|
|
250
|
+
ctrlCAgain: string;
|
|
251
|
+
steer: (text: string) => string;
|
|
252
|
+
pasteMarker: (id: number, lines: number) => string;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
export declare const zh: {
|
|
256
|
+
commands: {
|
|
257
|
+
unavailable: (name: string) => string;
|
|
258
|
+
treeDescription: string;
|
|
259
|
+
permissionsDescription: string;
|
|
260
|
+
keyHints: string;
|
|
261
|
+
permissionsMode: (label: string, mode: string) => string;
|
|
262
|
+
permissionsOrder: (order: string) => string;
|
|
263
|
+
rulesNone: string;
|
|
264
|
+
rules: (n: number) => string;
|
|
265
|
+
recentAuto: (n: number) => string;
|
|
266
|
+
noUserMessages: string;
|
|
267
|
+
treeUnsupported: string;
|
|
268
|
+
treeBusy: string;
|
|
269
|
+
treeTitle: string;
|
|
270
|
+
modelTitle: string;
|
|
271
|
+
modelSet: (ref: string) => string;
|
|
272
|
+
noOtherSessions: string;
|
|
273
|
+
resumeTitle: string;
|
|
274
|
+
resumed: (id: string) => string;
|
|
275
|
+
forkTitle: string;
|
|
276
|
+
forked: (id: string) => string;
|
|
277
|
+
modeCancelled: (label: string) => string;
|
|
278
|
+
modeSet: (label: string) => string;
|
|
279
|
+
thinkingTitle: string;
|
|
280
|
+
numberFooter: (arrows: string, n: number) => string;
|
|
281
|
+
};
|
|
282
|
+
paste: {
|
|
283
|
+
marker: (id: number, lines: number) => string;
|
|
284
|
+
};
|
|
285
|
+
keys: {
|
|
286
|
+
escRewind: string;
|
|
287
|
+
escClear: string;
|
|
288
|
+
cleared: string;
|
|
289
|
+
bypassSkipped: (label: string) => string;
|
|
290
|
+
clearedCtrlC: string;
|
|
291
|
+
ctrlCAgain: string;
|
|
292
|
+
interrupted: string;
|
|
293
|
+
toolsExpanded: string;
|
|
294
|
+
toolsCollapsed: string;
|
|
295
|
+
};
|
|
296
|
+
app: {
|
|
297
|
+
placeholder: string;
|
|
298
|
+
notTty: string;
|
|
299
|
+
keybindingsWarning: (warning: string) => string;
|
|
300
|
+
noResult: string;
|
|
301
|
+
followed: (text: string) => string;
|
|
302
|
+
terminalInitFailed: (error: string) => string;
|
|
303
|
+
};
|
|
304
|
+
clipboard: {
|
|
305
|
+
noTool: string;
|
|
306
|
+
noImage: string;
|
|
307
|
+
failed: (error: string) => string;
|
|
308
|
+
reading: string;
|
|
309
|
+
inserted: string;
|
|
310
|
+
};
|
|
311
|
+
completion: {
|
|
312
|
+
promptTemplate: string;
|
|
313
|
+
};
|
|
314
|
+
events: {
|
|
315
|
+
compactionNoShrink: string;
|
|
316
|
+
imagesOmitted: (n: number) => string;
|
|
317
|
+
limitTurns: (limit: number) => string;
|
|
318
|
+
limitCost: (limit: string, spent: string) => string;
|
|
319
|
+
modelFallback: (from: string, reason: string, to: string) => string;
|
|
320
|
+
backgroundStarted: (jobId: string, command: string) => string;
|
|
321
|
+
backgroundExited: (jobId: string, code: string, command: string) => string;
|
|
322
|
+
backgroundStopped: (jobId: string, command: string) => string;
|
|
323
|
+
compactionFailed: (error: string) => string;
|
|
324
|
+
compactionCancelled: string;
|
|
325
|
+
};
|
|
326
|
+
statusLine: {
|
|
327
|
+
usage: string;
|
|
328
|
+
full: string;
|
|
329
|
+
compact: string;
|
|
330
|
+
cacheSilent: string;
|
|
331
|
+
sandbox: string;
|
|
332
|
+
cycleHint: string;
|
|
333
|
+
};
|
|
334
|
+
subagent: {
|
|
335
|
+
running: (elapsed: string) => string;
|
|
336
|
+
backgroundEnd: (taskId: string, agent: string, status: string, turns: number) => string;
|
|
337
|
+
notificationTurns: (turns: string) => string;
|
|
338
|
+
viewOutput: string;
|
|
339
|
+
};
|
|
340
|
+
agentUi: {
|
|
341
|
+
tasksTitle: string;
|
|
342
|
+
tasksFooter: (arrows: string) => string;
|
|
343
|
+
viewOutput: string;
|
|
344
|
+
stop: string;
|
|
345
|
+
stopped: (taskId: string) => string;
|
|
346
|
+
};
|
|
347
|
+
keybindings: {
|
|
348
|
+
notObject: string;
|
|
349
|
+
unknownAction: (action: string) => string;
|
|
350
|
+
badKeys: (action: string) => string;
|
|
351
|
+
readFailed: (path: string, error: string) => string;
|
|
352
|
+
badJson: (path: string, error: string) => string;
|
|
353
|
+
};
|
|
354
|
+
editor: {
|
|
355
|
+
completionFooter: string;
|
|
356
|
+
};
|
|
357
|
+
view: {
|
|
358
|
+
message: {
|
|
359
|
+
duration: (seconds: number) => string;
|
|
360
|
+
sessionPrefix: (rule: string) => string;
|
|
361
|
+
turns: (n: number) => string;
|
|
362
|
+
rebill: (cost: string) => string;
|
|
363
|
+
resume: string;
|
|
364
|
+
origin: {
|
|
365
|
+
steer: string;
|
|
366
|
+
followUp: string;
|
|
367
|
+
host: string;
|
|
368
|
+
task: string;
|
|
369
|
+
plan: string;
|
|
370
|
+
};
|
|
371
|
+
planHandoff: string;
|
|
372
|
+
thinkingStreaming: (glyph: string, ellipsis: string) => string;
|
|
373
|
+
thinking: (glyph: string, tokens: string) => string;
|
|
374
|
+
moreLines: (ellipsis: string, n: number) => string;
|
|
375
|
+
image: string;
|
|
376
|
+
modelError: string;
|
|
377
|
+
interrupted: string;
|
|
378
|
+
lengthLimit: string;
|
|
379
|
+
hookBlocked: (glyph: string, reason: string) => string;
|
|
380
|
+
retry: (glyph: string, attempt: number, max: number, seconds: number, error: string) => string;
|
|
381
|
+
retryFailed: (error: string | undefined) => string;
|
|
382
|
+
summaryTokens: (before: string, after: string | undefined) => string;
|
|
383
|
+
compacted: string;
|
|
384
|
+
branchSummary: string;
|
|
385
|
+
};
|
|
386
|
+
run: {
|
|
387
|
+
esc: string;
|
|
388
|
+
awaitingApproval: string;
|
|
389
|
+
runningTool: (name: string) => string;
|
|
390
|
+
runningTools: (n: number) => string;
|
|
391
|
+
retry: (attempt: number, max: number) => string;
|
|
392
|
+
retryIn: (seconds: number) => string;
|
|
393
|
+
compacting: string;
|
|
394
|
+
replying: string;
|
|
395
|
+
thinking: string;
|
|
396
|
+
queueMore: (ellipsis: string, n: number) => string;
|
|
397
|
+
queueHint: (arrow: string) => string;
|
|
398
|
+
};
|
|
399
|
+
tool: {
|
|
400
|
+
interrupted: string;
|
|
401
|
+
timedOut: string;
|
|
402
|
+
exit: (code: number) => string;
|
|
403
|
+
lines: (n: number) => string;
|
|
404
|
+
failed: string;
|
|
405
|
+
image: (mime: string) => string;
|
|
406
|
+
emptyFile: string;
|
|
407
|
+
read: (n: number) => string;
|
|
408
|
+
edits: (n: number) => string;
|
|
409
|
+
write: (created: boolean, n: number) => string;
|
|
410
|
+
noMatch: string;
|
|
411
|
+
matches: (matches: number, files: number | undefined) => string;
|
|
412
|
+
files: (n: number) => string;
|
|
413
|
+
codemode: (calls: number, lines: number) => string;
|
|
414
|
+
done: string;
|
|
415
|
+
outputLines: (n: number) => string;
|
|
416
|
+
awaiting: (glyph: string) => string;
|
|
417
|
+
subagentRunning: (elapsed: string) => string;
|
|
418
|
+
running: (elapsed: string) => string;
|
|
419
|
+
moreLines: (ellipsis: string, n: number) => string;
|
|
420
|
+
earlierCalls: (ellipsis: string, n: number) => string;
|
|
421
|
+
};
|
|
422
|
+
};
|
|
423
|
+
startup: {
|
|
424
|
+
header: {
|
|
425
|
+
trusted: string;
|
|
426
|
+
untrusted: string;
|
|
427
|
+
trustSource: (source: string) => string;
|
|
428
|
+
templates: (n: number) => string;
|
|
429
|
+
host: (host: string) => string;
|
|
430
|
+
warnings: (n: number) => string;
|
|
431
|
+
hintCompact: string;
|
|
432
|
+
keyModel: string;
|
|
433
|
+
keyDir: string;
|
|
434
|
+
keyMode: string;
|
|
435
|
+
keyLoaded: string;
|
|
436
|
+
keyHost: string;
|
|
437
|
+
keyWarnings: string;
|
|
438
|
+
thinking: (level: string) => string;
|
|
439
|
+
preset: (preset: string) => string;
|
|
440
|
+
warningsValue: (n: number) => string;
|
|
441
|
+
hint: string;
|
|
442
|
+
};
|
|
443
|
+
ui: {
|
|
444
|
+
cancelled: string;
|
|
445
|
+
hintFilter: (arrows: string) => string;
|
|
446
|
+
hintNumbers: (arrows: string, n: number) => string;
|
|
447
|
+
hint: (arrows: string) => string;
|
|
448
|
+
local: string;
|
|
449
|
+
noKey: string;
|
|
450
|
+
justNow: string;
|
|
451
|
+
minutesAgo: (n: number) => string;
|
|
452
|
+
hoursAgo: (n: number) => string;
|
|
453
|
+
daysAgo: (n: number) => string;
|
|
454
|
+
messages: (n: number) => string;
|
|
455
|
+
trustRemember: string;
|
|
456
|
+
trustOnce: string;
|
|
457
|
+
trustSkip: string;
|
|
458
|
+
trustNever: string;
|
|
459
|
+
moreResources: (n: number) => string;
|
|
460
|
+
trustTitle: string;
|
|
461
|
+
resumeTitle: string;
|
|
462
|
+
modelTitle: string;
|
|
463
|
+
cwdTitle: string;
|
|
464
|
+
cwdPrompt: string;
|
|
465
|
+
cwdPlaceholder: string;
|
|
466
|
+
cwdEmpty: string;
|
|
467
|
+
cwdMissing: (path: string) => string;
|
|
468
|
+
cwdNotDir: (path: string) => string;
|
|
469
|
+
};
|
|
470
|
+
};
|
|
471
|
+
line: {
|
|
472
|
+
approvalOrigin: (task: string, title: string, where: string | undefined) => string;
|
|
473
|
+
approvalFirstRun: (task: string, note: string) => string;
|
|
474
|
+
approvalTool: (task: string, tool: string, summary: string, why: line.LineApprovalWhy | undefined) => string;
|
|
475
|
+
retry: (attempt: number, max: number, seconds: number, error: string) => string;
|
|
476
|
+
compacting: string;
|
|
477
|
+
error: (error: string) => string;
|
|
478
|
+
planProposed: (version: number, file: string | undefined) => string;
|
|
479
|
+
subagentStart: (taskId: string, agent: string, background: boolean) => string;
|
|
480
|
+
modelsHeading: string;
|
|
481
|
+
noSessions: string;
|
|
482
|
+
sessionsHeading: string;
|
|
483
|
+
noForkable: string;
|
|
484
|
+
forkHeading: string;
|
|
485
|
+
modeHeading: string;
|
|
486
|
+
thinking: (levels: string, current: string) => string;
|
|
487
|
+
banner: (version: string, model: string) => string;
|
|
488
|
+
interrupted: string;
|
|
489
|
+
ctrlCAgain: string;
|
|
490
|
+
steer: (text: string) => string;
|
|
491
|
+
pasteMarker: (id: number, lines: number) => string;
|
|
492
|
+
};
|
|
493
|
+
};
|