@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,502 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 消息目录:config(键名规范见 docs/i18n.md)。[W6-C0 建空壳,W6-I4 迁入]
|
|
3
|
+
*
|
|
4
|
+
* en 是形状源;zh 用 `satisfies Messages<typeof en>`,缺键 / 多键 / 参数不符在 tsc 期报错。
|
|
5
|
+
* 整句一个键、禁止片段拼接;插值写成函数,条件分支写进函数体。
|
|
6
|
+
* 配置键说明(`keys` / `dynamicDefaults`)体量大,放在 `config-keys.ts`,经 `keyDoc(path)` 取用。
|
|
7
|
+
*/
|
|
8
|
+
export declare const en: {
|
|
9
|
+
keys: {
|
|
10
|
+
$schema: string;
|
|
11
|
+
version: string;
|
|
12
|
+
defaultModel: string;
|
|
13
|
+
thinkingLevel: string;
|
|
14
|
+
providers: string;
|
|
15
|
+
permission: string;
|
|
16
|
+
"permission.mode": string;
|
|
17
|
+
"permission.allow": string;
|
|
18
|
+
"permission.deny": string;
|
|
19
|
+
"permission.builtinDeny": string;
|
|
20
|
+
"permission.autoModel": string;
|
|
21
|
+
"permission.autoSafeCommands": string;
|
|
22
|
+
compaction: string;
|
|
23
|
+
"compaction.enabled": string;
|
|
24
|
+
"compaction.reserveTokens": string;
|
|
25
|
+
"compaction.keepRecentTokens": string;
|
|
26
|
+
"compaction.prune": string;
|
|
27
|
+
"compaction.prune.keepResults": string;
|
|
28
|
+
"compaction.prune.clearAtLeast": string;
|
|
29
|
+
"compaction.pruneExclude": string;
|
|
30
|
+
retry: string;
|
|
31
|
+
"retry.enabled": string;
|
|
32
|
+
"retry.maxRetries": string;
|
|
33
|
+
"retry.baseDelayMs": string;
|
|
34
|
+
"retry.maxDelayMs": string;
|
|
35
|
+
tools: string;
|
|
36
|
+
"tools.preset": string;
|
|
37
|
+
"tools.default": string;
|
|
38
|
+
"tools.maxToolResultChars": string;
|
|
39
|
+
"tools.bashTimeoutMs": string;
|
|
40
|
+
"tools.disabled": string;
|
|
41
|
+
codemode: string;
|
|
42
|
+
"codemode.mode": string;
|
|
43
|
+
"codemode.inlineBudget": string;
|
|
44
|
+
"codemode.requireStrict": string;
|
|
45
|
+
hooks: string;
|
|
46
|
+
"hooks.timeoutMs": string;
|
|
47
|
+
ui: string;
|
|
48
|
+
"ui.theme": string;
|
|
49
|
+
"ui.markdown": string;
|
|
50
|
+
"ui.showThinking": string;
|
|
51
|
+
"ui.tuiMode": string;
|
|
52
|
+
"ui.quietStartup": string;
|
|
53
|
+
"ui.ascii": string;
|
|
54
|
+
"ui.compact": string;
|
|
55
|
+
"ui.animation": string;
|
|
56
|
+
"ui.restoreOnCancel": string;
|
|
57
|
+
"ui.statusLine": string;
|
|
58
|
+
"ui.language": string;
|
|
59
|
+
"ui.replyLanguage": string;
|
|
60
|
+
"ui.agentBar": string;
|
|
61
|
+
memory: string;
|
|
62
|
+
"memory.enabled": string;
|
|
63
|
+
"memory.scopes": string;
|
|
64
|
+
"memory.indexMaxBytes": string;
|
|
65
|
+
"memory.fileMaxBytes": string;
|
|
66
|
+
"memory.maxFiles": string;
|
|
67
|
+
"memory.subagents": string;
|
|
68
|
+
auth: string;
|
|
69
|
+
"auth.chatgpt": string;
|
|
70
|
+
"auth.chatgpt.flavor": string;
|
|
71
|
+
"auth.chatgpt.clientId": string;
|
|
72
|
+
"auth.chatgpt.issuer": string;
|
|
73
|
+
"auth.chatgpt.originator": string;
|
|
74
|
+
"auth.chatgpt.redirectPorts": string;
|
|
75
|
+
skills: string;
|
|
76
|
+
"skills.dirs": string;
|
|
77
|
+
cache: string;
|
|
78
|
+
request: string;
|
|
79
|
+
"request.idleTimeoutMs": string;
|
|
80
|
+
"cache.warming": string;
|
|
81
|
+
"cache.retention": string;
|
|
82
|
+
"cache.minSavingsUsd": string;
|
|
83
|
+
"cache.missNotices": string;
|
|
84
|
+
"cache.warmSubagents": string;
|
|
85
|
+
checkpoints: string;
|
|
86
|
+
"checkpoints.mode": string;
|
|
87
|
+
"checkpoints.maxFileBytes": string;
|
|
88
|
+
"checkpoints.keep": string;
|
|
89
|
+
sandbox: string;
|
|
90
|
+
"sandbox.enabled": string;
|
|
91
|
+
"sandbox.bash": string;
|
|
92
|
+
"sandbox.network": string;
|
|
93
|
+
"sandbox.writable": string;
|
|
94
|
+
images: string;
|
|
95
|
+
"images.resize": string;
|
|
96
|
+
plan: string;
|
|
97
|
+
"plan.bash": string;
|
|
98
|
+
"plan.directory": string;
|
|
99
|
+
"plan.unattended": string;
|
|
100
|
+
"plan.model": string;
|
|
101
|
+
"plan.thinkingLevel": string;
|
|
102
|
+
agents: string;
|
|
103
|
+
"agents.maxConcurrent": string;
|
|
104
|
+
"agents.sessionBudgetUsd": string;
|
|
105
|
+
"agents.dirs": string;
|
|
106
|
+
subagents: string;
|
|
107
|
+
"subagents.maxConcurrent": string;
|
|
108
|
+
"subagents.maxPending": string;
|
|
109
|
+
"subagents.defaultModel": string;
|
|
110
|
+
models: string;
|
|
111
|
+
"models.aliases": string;
|
|
112
|
+
"models.aliases.fast": string;
|
|
113
|
+
"models.aliases.strong": string;
|
|
114
|
+
fallbackModel: string;
|
|
115
|
+
limits: string;
|
|
116
|
+
"limits.maxTurns": string;
|
|
117
|
+
"limits.maxCostUsd": string;
|
|
118
|
+
reminders: string;
|
|
119
|
+
"reminders.todo": string;
|
|
120
|
+
"reminders.fileChanges": string;
|
|
121
|
+
"reminders.contextPressure": string;
|
|
122
|
+
"reminders.budget": string;
|
|
123
|
+
todo: string;
|
|
124
|
+
"todo.reminder": string;
|
|
125
|
+
};
|
|
126
|
+
dynamicDefaults: {
|
|
127
|
+
$schema: string;
|
|
128
|
+
defaultModel: string;
|
|
129
|
+
"permission.autoModel": string;
|
|
130
|
+
"codemode.mode": string;
|
|
131
|
+
"ui.ascii": string;
|
|
132
|
+
"ui.statusLine": string;
|
|
133
|
+
"plan.directory": string;
|
|
134
|
+
"plan.model": string;
|
|
135
|
+
"plan.thinkingLevel": string;
|
|
136
|
+
"agents.sessionBudgetUsd": string;
|
|
137
|
+
"subagents.defaultModel": string;
|
|
138
|
+
"models.aliases.fast": string;
|
|
139
|
+
"models.aliases.strong": string;
|
|
140
|
+
fallbackModel: string;
|
|
141
|
+
"limits.maxTurns": string;
|
|
142
|
+
"limits.maxCostUsd": string;
|
|
143
|
+
"ui.replyLanguage": string;
|
|
144
|
+
"ui.agentBar": string;
|
|
145
|
+
"auth.chatgpt.clientId": string;
|
|
146
|
+
"auth.chatgpt.redirectPorts": string;
|
|
147
|
+
};
|
|
148
|
+
/** 配置校验诊断(checker.ts、schema.ts、schema-w5.ts、schema-w6.ts)。 */
|
|
149
|
+
schema: {
|
|
150
|
+
enumArray: (choices: readonly string[]) => string;
|
|
151
|
+
ports: string;
|
|
152
|
+
required: string;
|
|
153
|
+
memoryDir: string;
|
|
154
|
+
object: string;
|
|
155
|
+
unknownKey: string;
|
|
156
|
+
version: string;
|
|
157
|
+
requiredString: string;
|
|
158
|
+
string: string;
|
|
159
|
+
boolean: string;
|
|
160
|
+
number: string;
|
|
161
|
+
range: (min: number, max: number) => string;
|
|
162
|
+
oneOf: (choices: readonly string[]) => string;
|
|
163
|
+
stringArray: string;
|
|
164
|
+
array: string;
|
|
165
|
+
modelsDev: string;
|
|
166
|
+
noChannels: string;
|
|
167
|
+
unknownChannelOf: (name: string, available: readonly string[]) => string;
|
|
168
|
+
modelInput: string;
|
|
169
|
+
channelName: string;
|
|
170
|
+
atLeastOneChannel: string;
|
|
171
|
+
unknownChannel: (name: string) => string;
|
|
172
|
+
defaultChannelWithoutChannels: string;
|
|
173
|
+
builtinDeny: string;
|
|
174
|
+
writablePath: string;
|
|
175
|
+
providersMissing: string;
|
|
176
|
+
hookEvent: (events: readonly string[]) => string;
|
|
177
|
+
hookType: string;
|
|
178
|
+
hookCommandEmpty: string;
|
|
179
|
+
clearAtLeast: string;
|
|
180
|
+
agentId: string;
|
|
181
|
+
};
|
|
182
|
+
/** 层级合并(merge.ts)的告警。 */
|
|
183
|
+
merge: {
|
|
184
|
+
projectIgnored: (label: string, key: string) => string;
|
|
185
|
+
projectMemoryOnlyDisable: (label: string) => string;
|
|
186
|
+
projectOnlyKeys: (label: string, allowed: string, ignored: string) => string;
|
|
187
|
+
projectPresetLoosen: (label: string, preset: string, current: string) => string;
|
|
188
|
+
projectOnlyValue: (label: string, key: string, value: string, ignored: string) => string;
|
|
189
|
+
projectPlanBashTighten: (label: string, value: string, current: string) => string;
|
|
190
|
+
projectModeTighten: (label: string, value: string, current: string) => string;
|
|
191
|
+
projectLowerOnly: (label: string, key: string, value: number, current: number) => string;
|
|
192
|
+
projectNoAllow: (label: string, rules: string) => string;
|
|
193
|
+
projectNoBuiltinDeny: (label: string) => string;
|
|
194
|
+
projectNoAutoSafe: (label: string) => string;
|
|
195
|
+
projectModeLoosen: (label: string, mode: string) => string;
|
|
196
|
+
};
|
|
197
|
+
/** 读配置文件(load.ts)。 */
|
|
198
|
+
load: {
|
|
199
|
+
jsonSyntax: (line: number | string, column: number | string, message: string) => string;
|
|
200
|
+
jsonSyntaxNear: (line: number, column: number, message: string) => string;
|
|
201
|
+
jsonEmpty: string;
|
|
202
|
+
notFound: string;
|
|
203
|
+
invalid: (lines: readonly string[]) => string;
|
|
204
|
+
};
|
|
205
|
+
/** [W6-I5] profile.json(profile.ts)。 */
|
|
206
|
+
profile: {
|
|
207
|
+
notFound: (path: string) => string;
|
|
208
|
+
relativePaths: (path: string, lines: readonly string[]) => string;
|
|
209
|
+
};
|
|
210
|
+
/** [W6-I5] auth.json 权限过宽(auth-file.ts)。 */
|
|
211
|
+
authFile: {
|
|
212
|
+
modeTooOpen: (path: string, mode: string) => string;
|
|
213
|
+
};
|
|
214
|
+
/** 目录(paths.ts)。 */
|
|
215
|
+
paths: {
|
|
216
|
+
notDirectory: string;
|
|
217
|
+
notWritable: (label: string, dir: string, reason: string) => string;
|
|
218
|
+
configDir: string;
|
|
219
|
+
dataDir: string;
|
|
220
|
+
sessionDir: string;
|
|
221
|
+
};
|
|
222
|
+
/** 上下文文件(context-files.ts)。 */
|
|
223
|
+
context: {
|
|
224
|
+
readFailed: (path: string, reason: string) => string;
|
|
225
|
+
truncated: (path: string, maxBytes: number) => string;
|
|
226
|
+
};
|
|
227
|
+
/** `ama init`(init.ts)。 */
|
|
228
|
+
init: {
|
|
229
|
+
status: {
|
|
230
|
+
created: string;
|
|
231
|
+
exists: string;
|
|
232
|
+
updated: string;
|
|
233
|
+
unchanged: string;
|
|
234
|
+
overwritten: string;
|
|
235
|
+
};
|
|
236
|
+
dirCreated: string;
|
|
237
|
+
dirExists: string;
|
|
238
|
+
nextSteps: string;
|
|
239
|
+
};
|
|
240
|
+
/** config.schema.json 里供应商内部字段的说明(顶层与各段的键用 `keys`)。 */
|
|
241
|
+
jsonSchema: {
|
|
242
|
+
api: string;
|
|
243
|
+
compat: string;
|
|
244
|
+
modelId: string;
|
|
245
|
+
modelBaseUrl: string;
|
|
246
|
+
contextWindow: string;
|
|
247
|
+
maxTokens: string;
|
|
248
|
+
input: string;
|
|
249
|
+
modelChannels: string;
|
|
250
|
+
modelsDev: string;
|
|
251
|
+
baseUrl: string;
|
|
252
|
+
channelApiKey: string;
|
|
253
|
+
apiKey: string;
|
|
254
|
+
channels: string;
|
|
255
|
+
defaultChannel: string;
|
|
256
|
+
models: string;
|
|
257
|
+
modelOverrides: string;
|
|
258
|
+
};
|
|
259
|
+
};
|
|
260
|
+
export declare const zh: {
|
|
261
|
+
keys: {
|
|
262
|
+
$schema: string;
|
|
263
|
+
version: string;
|
|
264
|
+
defaultModel: string;
|
|
265
|
+
thinkingLevel: string;
|
|
266
|
+
providers: string;
|
|
267
|
+
permission: string;
|
|
268
|
+
"permission.mode": string;
|
|
269
|
+
"permission.allow": string;
|
|
270
|
+
"permission.deny": string;
|
|
271
|
+
"permission.builtinDeny": string;
|
|
272
|
+
"permission.autoModel": string;
|
|
273
|
+
"permission.autoSafeCommands": string;
|
|
274
|
+
compaction: string;
|
|
275
|
+
"compaction.enabled": string;
|
|
276
|
+
"compaction.reserveTokens": string;
|
|
277
|
+
"compaction.keepRecentTokens": string;
|
|
278
|
+
"compaction.prune": string;
|
|
279
|
+
"compaction.prune.keepResults": string;
|
|
280
|
+
"compaction.prune.clearAtLeast": string;
|
|
281
|
+
"compaction.pruneExclude": string;
|
|
282
|
+
retry: string;
|
|
283
|
+
"retry.enabled": string;
|
|
284
|
+
"retry.maxRetries": string;
|
|
285
|
+
"retry.baseDelayMs": string;
|
|
286
|
+
"retry.maxDelayMs": string;
|
|
287
|
+
tools: string;
|
|
288
|
+
"tools.preset": string;
|
|
289
|
+
"tools.default": string;
|
|
290
|
+
"tools.maxToolResultChars": string;
|
|
291
|
+
"tools.bashTimeoutMs": string;
|
|
292
|
+
"tools.disabled": string;
|
|
293
|
+
codemode: string;
|
|
294
|
+
"codemode.mode": string;
|
|
295
|
+
"codemode.inlineBudget": string;
|
|
296
|
+
"codemode.requireStrict": string;
|
|
297
|
+
hooks: string;
|
|
298
|
+
"hooks.timeoutMs": string;
|
|
299
|
+
ui: string;
|
|
300
|
+
"ui.theme": string;
|
|
301
|
+
"ui.markdown": string;
|
|
302
|
+
"ui.showThinking": string;
|
|
303
|
+
"ui.tuiMode": string;
|
|
304
|
+
"ui.quietStartup": string;
|
|
305
|
+
"ui.ascii": string;
|
|
306
|
+
"ui.compact": string;
|
|
307
|
+
"ui.animation": string;
|
|
308
|
+
"ui.restoreOnCancel": string;
|
|
309
|
+
"ui.statusLine": string;
|
|
310
|
+
"ui.language": string;
|
|
311
|
+
"ui.replyLanguage": string;
|
|
312
|
+
"ui.agentBar": string;
|
|
313
|
+
memory: string;
|
|
314
|
+
"memory.enabled": string;
|
|
315
|
+
"memory.scopes": string;
|
|
316
|
+
"memory.indexMaxBytes": string;
|
|
317
|
+
"memory.fileMaxBytes": string;
|
|
318
|
+
"memory.maxFiles": string;
|
|
319
|
+
"memory.subagents": string;
|
|
320
|
+
auth: string;
|
|
321
|
+
"auth.chatgpt": string;
|
|
322
|
+
"auth.chatgpt.flavor": string;
|
|
323
|
+
"auth.chatgpt.clientId": string;
|
|
324
|
+
"auth.chatgpt.issuer": string;
|
|
325
|
+
"auth.chatgpt.originator": string;
|
|
326
|
+
"auth.chatgpt.redirectPorts": string;
|
|
327
|
+
skills: string;
|
|
328
|
+
"skills.dirs": string;
|
|
329
|
+
cache: string;
|
|
330
|
+
request: string;
|
|
331
|
+
"request.idleTimeoutMs": string;
|
|
332
|
+
"cache.warming": string;
|
|
333
|
+
"cache.retention": string;
|
|
334
|
+
"cache.minSavingsUsd": string;
|
|
335
|
+
"cache.missNotices": string;
|
|
336
|
+
"cache.warmSubagents": string;
|
|
337
|
+
checkpoints: string;
|
|
338
|
+
"checkpoints.mode": string;
|
|
339
|
+
"checkpoints.maxFileBytes": string;
|
|
340
|
+
"checkpoints.keep": string;
|
|
341
|
+
sandbox: string;
|
|
342
|
+
"sandbox.enabled": string;
|
|
343
|
+
"sandbox.bash": string;
|
|
344
|
+
"sandbox.network": string;
|
|
345
|
+
"sandbox.writable": string;
|
|
346
|
+
images: string;
|
|
347
|
+
"images.resize": string;
|
|
348
|
+
plan: string;
|
|
349
|
+
"plan.bash": string;
|
|
350
|
+
"plan.directory": string;
|
|
351
|
+
"plan.unattended": string;
|
|
352
|
+
"plan.model": string;
|
|
353
|
+
"plan.thinkingLevel": string;
|
|
354
|
+
agents: string;
|
|
355
|
+
"agents.maxConcurrent": string;
|
|
356
|
+
"agents.sessionBudgetUsd": string;
|
|
357
|
+
"agents.dirs": string;
|
|
358
|
+
subagents: string;
|
|
359
|
+
"subagents.maxConcurrent": string;
|
|
360
|
+
"subagents.maxPending": string;
|
|
361
|
+
"subagents.defaultModel": string;
|
|
362
|
+
models: string;
|
|
363
|
+
"models.aliases": string;
|
|
364
|
+
"models.aliases.fast": string;
|
|
365
|
+
"models.aliases.strong": string;
|
|
366
|
+
fallbackModel: string;
|
|
367
|
+
limits: string;
|
|
368
|
+
"limits.maxTurns": string;
|
|
369
|
+
"limits.maxCostUsd": string;
|
|
370
|
+
reminders: string;
|
|
371
|
+
"reminders.todo": string;
|
|
372
|
+
"reminders.fileChanges": string;
|
|
373
|
+
"reminders.contextPressure": string;
|
|
374
|
+
"reminders.budget": string;
|
|
375
|
+
todo: string;
|
|
376
|
+
"todo.reminder": string;
|
|
377
|
+
};
|
|
378
|
+
dynamicDefaults: {
|
|
379
|
+
$schema: string;
|
|
380
|
+
defaultModel: string;
|
|
381
|
+
"permission.autoModel": string;
|
|
382
|
+
"codemode.mode": string;
|
|
383
|
+
"ui.ascii": string;
|
|
384
|
+
"ui.statusLine": string;
|
|
385
|
+
"plan.directory": string;
|
|
386
|
+
"plan.model": string;
|
|
387
|
+
"plan.thinkingLevel": string;
|
|
388
|
+
"agents.sessionBudgetUsd": string;
|
|
389
|
+
"subagents.defaultModel": string;
|
|
390
|
+
"models.aliases.fast": string;
|
|
391
|
+
"models.aliases.strong": string;
|
|
392
|
+
fallbackModel: string;
|
|
393
|
+
"limits.maxTurns": string;
|
|
394
|
+
"limits.maxCostUsd": string;
|
|
395
|
+
"ui.replyLanguage": string;
|
|
396
|
+
"ui.agentBar": string;
|
|
397
|
+
"auth.chatgpt.clientId": string;
|
|
398
|
+
"auth.chatgpt.redirectPorts": string;
|
|
399
|
+
};
|
|
400
|
+
schema: {
|
|
401
|
+
enumArray: (choices: readonly string[]) => string;
|
|
402
|
+
ports: string;
|
|
403
|
+
required: string;
|
|
404
|
+
memoryDir: string;
|
|
405
|
+
object: string;
|
|
406
|
+
unknownKey: string;
|
|
407
|
+
version: string;
|
|
408
|
+
requiredString: string;
|
|
409
|
+
string: string;
|
|
410
|
+
boolean: string;
|
|
411
|
+
number: string;
|
|
412
|
+
range: (min: number, max: number) => string;
|
|
413
|
+
oneOf: (choices: readonly string[]) => string;
|
|
414
|
+
stringArray: string;
|
|
415
|
+
array: string;
|
|
416
|
+
modelsDev: string;
|
|
417
|
+
noChannels: string;
|
|
418
|
+
unknownChannelOf: (name: string, available: readonly string[]) => string;
|
|
419
|
+
modelInput: string;
|
|
420
|
+
channelName: string;
|
|
421
|
+
atLeastOneChannel: string;
|
|
422
|
+
unknownChannel: (name: string) => string;
|
|
423
|
+
defaultChannelWithoutChannels: string;
|
|
424
|
+
builtinDeny: string;
|
|
425
|
+
writablePath: string;
|
|
426
|
+
providersMissing: string;
|
|
427
|
+
hookEvent: (events: readonly string[]) => string;
|
|
428
|
+
hookType: string;
|
|
429
|
+
hookCommandEmpty: string;
|
|
430
|
+
clearAtLeast: string;
|
|
431
|
+
agentId: string;
|
|
432
|
+
};
|
|
433
|
+
merge: {
|
|
434
|
+
projectIgnored: (label: string, key: string) => string;
|
|
435
|
+
projectMemoryOnlyDisable: (label: string) => string;
|
|
436
|
+
projectOnlyKeys: (label: string, allowed: string, ignored: string) => string;
|
|
437
|
+
projectPresetLoosen: (label: string, preset: string, current: string) => string;
|
|
438
|
+
projectOnlyValue: (label: string, key: string, value: string, ignored: string) => string;
|
|
439
|
+
projectPlanBashTighten: (label: string, value: string, current: string) => string;
|
|
440
|
+
projectModeTighten: (label: string, value: string, current: string) => string;
|
|
441
|
+
projectLowerOnly: (label: string, key: string, value: number, current: number) => string;
|
|
442
|
+
projectNoAllow: (label: string, rules: string) => string;
|
|
443
|
+
projectNoBuiltinDeny: (label: string) => string;
|
|
444
|
+
projectNoAutoSafe: (label: string) => string;
|
|
445
|
+
projectModeLoosen: (label: string, mode: string) => string;
|
|
446
|
+
};
|
|
447
|
+
load: {
|
|
448
|
+
jsonSyntax: (line: string | number, column: string | number, message: string) => string;
|
|
449
|
+
jsonSyntaxNear: (line: number, column: number, message: string) => string;
|
|
450
|
+
jsonEmpty: string;
|
|
451
|
+
notFound: string;
|
|
452
|
+
invalid: (lines: readonly string[]) => string;
|
|
453
|
+
};
|
|
454
|
+
profile: {
|
|
455
|
+
notFound: (path: string) => string;
|
|
456
|
+
relativePaths: (path: string, lines: readonly string[]) => string;
|
|
457
|
+
};
|
|
458
|
+
authFile: {
|
|
459
|
+
modeTooOpen: (path: string, mode: string) => string;
|
|
460
|
+
};
|
|
461
|
+
paths: {
|
|
462
|
+
notDirectory: string;
|
|
463
|
+
notWritable: (label: string, dir: string, reason: string) => string;
|
|
464
|
+
configDir: string;
|
|
465
|
+
dataDir: string;
|
|
466
|
+
sessionDir: string;
|
|
467
|
+
};
|
|
468
|
+
context: {
|
|
469
|
+
readFailed: (path: string, reason: string) => string;
|
|
470
|
+
truncated: (path: string, maxBytes: number) => string;
|
|
471
|
+
};
|
|
472
|
+
init: {
|
|
473
|
+
status: {
|
|
474
|
+
created: string;
|
|
475
|
+
exists: string;
|
|
476
|
+
updated: string;
|
|
477
|
+
unchanged: string;
|
|
478
|
+
overwritten: string;
|
|
479
|
+
};
|
|
480
|
+
dirCreated: string;
|
|
481
|
+
dirExists: string;
|
|
482
|
+
nextSteps: string;
|
|
483
|
+
};
|
|
484
|
+
jsonSchema: {
|
|
485
|
+
api: string;
|
|
486
|
+
compat: string;
|
|
487
|
+
modelId: string;
|
|
488
|
+
modelBaseUrl: string;
|
|
489
|
+
contextWindow: string;
|
|
490
|
+
maxTokens: string;
|
|
491
|
+
input: string;
|
|
492
|
+
modelChannels: string;
|
|
493
|
+
modelsDev: string;
|
|
494
|
+
baseUrl: string;
|
|
495
|
+
channelApiKey: string;
|
|
496
|
+
apiKey: string;
|
|
497
|
+
channels: string;
|
|
498
|
+
defaultChannel: string;
|
|
499
|
+
models: string;
|
|
500
|
+
modelOverrides: string;
|
|
501
|
+
};
|
|
502
|
+
};
|