@wahack/pi-coding-agent 15.11.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 +10031 -0
- package/README.md +36 -0
- package/examples/README.md +21 -0
- package/examples/custom-tools/README.md +104 -0
- package/examples/custom-tools/hello/index.ts +20 -0
- package/examples/extensions/README.md +142 -0
- package/examples/extensions/api-demo.ts +79 -0
- package/examples/extensions/chalk-logger.ts +25 -0
- package/examples/extensions/hello.ts +31 -0
- package/examples/extensions/pirate.ts +43 -0
- package/examples/extensions/plan-mode.ts +549 -0
- package/examples/extensions/reload-runtime.ts +38 -0
- package/examples/extensions/thinking-note.ts +13 -0
- package/examples/extensions/tools.ts +145 -0
- package/examples/extensions/with-deps/index.ts +36 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +17 -0
- package/examples/hooks/README.md +56 -0
- package/examples/hooks/auto-commit-on-exit.ts +48 -0
- package/examples/hooks/confirm-destructive.ts +58 -0
- package/examples/hooks/custom-compaction.ts +115 -0
- package/examples/hooks/dirty-repo-guard.ts +51 -0
- package/examples/hooks/file-trigger.ts +40 -0
- package/examples/hooks/git-checkpoint.ts +52 -0
- package/examples/hooks/handoff.ts +149 -0
- package/examples/hooks/permission-gate.ts +33 -0
- package/examples/hooks/protected-paths.ts +29 -0
- package/examples/hooks/qna.ts +118 -0
- package/examples/hooks/status-line.ts +39 -0
- package/examples/sdk/01-minimal.ts +21 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +46 -0
- package/examples/sdk/04-skills.ts +43 -0
- package/examples/sdk/06-extensions.ts +82 -0
- package/examples/sdk/06-hooks.ts +61 -0
- package/examples/sdk/07-context-files.ts +35 -0
- package/examples/sdk/08-prompt-templates.ts +41 -0
- package/examples/sdk/08-slash-commands.ts +46 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +54 -0
- package/examples/sdk/11-sessions.ts +47 -0
- package/examples/sdk/12-redis-sessions.ts +54 -0
- package/examples/sdk/13-sql-sessions.ts +61 -0
- package/examples/sdk/README.md +172 -0
- package/package.json +554 -0
- package/scripts/build-binary.ts +100 -0
- package/scripts/bundle-dist.ts +90 -0
- package/scripts/format-prompts.ts +68 -0
- package/scripts/generate-docs-index.ts +40 -0
- package/scripts/generate-template.ts +33 -0
- package/scripts/omp +42 -0
- package/scripts/omp.ts +19 -0
- package/src/async/index.ts +1 -0
- package/src/async/job-manager.ts +625 -0
- package/src/auto-thinking/classifier.ts +185 -0
- package/src/autoresearch/command-resume.md +14 -0
- package/src/autoresearch/dashboard.ts +436 -0
- package/src/autoresearch/git.ts +319 -0
- package/src/autoresearch/helpers.ts +218 -0
- package/src/autoresearch/index.ts +536 -0
- package/src/autoresearch/prompt-setup.md +43 -0
- package/src/autoresearch/prompt.md +103 -0
- package/src/autoresearch/resume-message.md +10 -0
- package/src/autoresearch/state.ts +273 -0
- package/src/autoresearch/storage.ts +699 -0
- package/src/autoresearch/tools/init-experiment.ts +272 -0
- package/src/autoresearch/tools/log-experiment.ts +524 -0
- package/src/autoresearch/tools/run-experiment.ts +407 -0
- package/src/autoresearch/tools/update-notes.ts +109 -0
- package/src/autoresearch/types.ts +168 -0
- package/src/bun-imports.d.ts +28 -0
- package/src/capability/context-file.ts +44 -0
- package/src/capability/extension-module.ts +34 -0
- package/src/capability/extension.ts +47 -0
- package/src/capability/fs.ts +117 -0
- package/src/capability/hook.ts +40 -0
- package/src/capability/index.ts +436 -0
- package/src/capability/instruction.ts +37 -0
- package/src/capability/mcp.ts +74 -0
- package/src/capability/prompt.ts +35 -0
- package/src/capability/rule-buckets.ts +66 -0
- package/src/capability/rule.ts +261 -0
- package/src/capability/settings.ts +34 -0
- package/src/capability/skill.ts +63 -0
- package/src/capability/slash-command.ts +40 -0
- package/src/capability/ssh.ts +41 -0
- package/src/capability/system-prompt.ts +34 -0
- package/src/capability/tool.ts +38 -0
- package/src/capability/types.ts +168 -0
- package/src/cli/agents-cli.ts +138 -0
- package/src/cli/args.ts +340 -0
- package/src/cli/auth-broker-cli.ts +895 -0
- package/src/cli/auth-gateway-cli.ts +611 -0
- package/src/cli/classify-install-target.ts +76 -0
- package/src/cli/claude-trace-cli.ts +795 -0
- package/src/cli/commands/init-xdg.ts +27 -0
- package/src/cli/completion-gen.ts +550 -0
- package/src/cli/config-cli.ts +418 -0
- package/src/cli/dry-balance-cli.ts +856 -0
- package/src/cli/extension-flags.ts +48 -0
- package/src/cli/file-processor.ts +133 -0
- package/src/cli/gallery-cli.ts +230 -0
- package/src/cli/gallery-fixtures/agentic.ts +407 -0
- package/src/cli/gallery-fixtures/codeintel.ts +187 -0
- package/src/cli/gallery-fixtures/edit.ts +194 -0
- package/src/cli/gallery-fixtures/fs.ts +220 -0
- package/src/cli/gallery-fixtures/index.ts +40 -0
- package/src/cli/gallery-fixtures/interaction.ts +49 -0
- package/src/cli/gallery-fixtures/memory.ts +81 -0
- package/src/cli/gallery-fixtures/misc.ts +250 -0
- package/src/cli/gallery-fixtures/search.ts +213 -0
- package/src/cli/gallery-fixtures/shell.ts +167 -0
- package/src/cli/gallery-fixtures/types.ts +57 -0
- package/src/cli/gallery-fixtures/web.ts +158 -0
- package/src/cli/gallery-screenshot.ts +279 -0
- package/src/cli/grep-cli.ts +160 -0
- package/src/cli/grievances-cli.ts +256 -0
- package/src/cli/initial-message.ts +58 -0
- package/src/cli/list-models.ts +194 -0
- package/src/cli/plugin-cli.ts +996 -0
- package/src/cli/read-cli.ts +57 -0
- package/src/cli/session-picker.ts +79 -0
- package/src/cli/setup-cli.ts +231 -0
- package/src/cli/shell-cli.ts +176 -0
- package/src/cli/ssh-cli.ts +179 -0
- package/src/cli/startup-cwd.ts +68 -0
- package/src/cli/stats-cli.ts +238 -0
- package/src/cli/tiny-models-cli.ts +127 -0
- package/src/cli/update-cli.ts +611 -0
- package/src/cli/usage-cli.ts +603 -0
- package/src/cli/web-search-cli.ts +132 -0
- package/src/cli/worktree-cli.ts +291 -0
- package/src/cli-commands.ts +79 -0
- package/src/cli.ts +200 -0
- package/src/commands/acp.ts +24 -0
- package/src/commands/agents.ts +57 -0
- package/src/commands/auth-broker.ts +99 -0
- package/src/commands/auth-gateway.ts +69 -0
- package/src/commands/commit.ts +46 -0
- package/src/commands/complete.ts +66 -0
- package/src/commands/completions.ts +60 -0
- package/src/commands/config.ts +51 -0
- package/src/commands/dry-balance.ts +43 -0
- package/src/commands/gallery.ts +52 -0
- package/src/commands/grep.ts +48 -0
- package/src/commands/grievances.ts +51 -0
- package/src/commands/install.ts +107 -0
- package/src/commands/launch.ts +169 -0
- package/src/commands/plugin.ts +78 -0
- package/src/commands/read.ts +38 -0
- package/src/commands/setup.ts +67 -0
- package/src/commands/shell.ts +29 -0
- package/src/commands/ssh.ts +60 -0
- package/src/commands/stats.ts +29 -0
- package/src/commands/tiny-models.ts +36 -0
- package/src/commands/update.ts +21 -0
- package/src/commands/usage.ts +35 -0
- package/src/commands/web-search.ts +42 -0
- package/src/commands/worktree.ts +56 -0
- package/src/commit/agentic/agent.ts +317 -0
- package/src/commit/agentic/fallback.ts +96 -0
- package/src/commit/agentic/index.ts +355 -0
- package/src/commit/agentic/prompts/analyze-file.md +22 -0
- package/src/commit/agentic/prompts/session-user.md +25 -0
- package/src/commit/agentic/prompts/split-confirm.md +1 -0
- package/src/commit/agentic/prompts/system.md +38 -0
- package/src/commit/agentic/state.ts +60 -0
- package/src/commit/agentic/tools/analyze-file.ts +146 -0
- package/src/commit/agentic/tools/git-file-diff.ts +191 -0
- package/src/commit/agentic/tools/git-hunk.ts +50 -0
- package/src/commit/agentic/tools/git-overview.ts +81 -0
- package/src/commit/agentic/tools/index.ts +54 -0
- package/src/commit/agentic/tools/propose-changelog.ts +144 -0
- package/src/commit/agentic/tools/propose-commit.ts +109 -0
- package/src/commit/agentic/tools/recent-commits.ts +81 -0
- package/src/commit/agentic/tools/schemas.ts +23 -0
- package/src/commit/agentic/tools/split-commit.ts +245 -0
- package/src/commit/agentic/topo-sort.ts +44 -0
- package/src/commit/agentic/trivial.ts +51 -0
- package/src/commit/agentic/validation.ts +183 -0
- package/src/commit/analysis/conventional.ts +64 -0
- package/src/commit/analysis/index.ts +4 -0
- package/src/commit/analysis/scope.ts +242 -0
- package/src/commit/analysis/summary.ts +105 -0
- package/src/commit/analysis/validation.ts +66 -0
- package/src/commit/changelog/detect.ts +40 -0
- package/src/commit/changelog/generate.ts +97 -0
- package/src/commit/changelog/index.ts +234 -0
- package/src/commit/changelog/parse.ts +44 -0
- package/src/commit/cli.ts +85 -0
- package/src/commit/git/diff.ts +148 -0
- package/src/commit/index.ts +5 -0
- package/src/commit/map-reduce/index.ts +69 -0
- package/src/commit/map-reduce/map-phase.ts +193 -0
- package/src/commit/map-reduce/reduce-phase.ts +49 -0
- package/src/commit/map-reduce/utils.ts +9 -0
- package/src/commit/message.ts +11 -0
- package/src/commit/model-selection.ts +92 -0
- package/src/commit/pipeline.ts +243 -0
- package/src/commit/prompts/analysis-system.md +148 -0
- package/src/commit/prompts/analysis-user.md +38 -0
- package/src/commit/prompts/changelog-system.md +50 -0
- package/src/commit/prompts/changelog-user.md +18 -0
- package/src/commit/prompts/file-observer-system.md +24 -0
- package/src/commit/prompts/file-observer-user.md +8 -0
- package/src/commit/prompts/reduce-system.md +50 -0
- package/src/commit/prompts/reduce-user.md +17 -0
- package/src/commit/prompts/summary-retry.md +3 -0
- package/src/commit/prompts/summary-system.md +38 -0
- package/src/commit/prompts/summary-user.md +13 -0
- package/src/commit/prompts/types-description.md +2 -0
- package/src/commit/shared-llm.ts +77 -0
- package/src/commit/types.ts +118 -0
- package/src/commit/utils/exclusions.ts +42 -0
- package/src/commit/utils.ts +58 -0
- package/src/config/api-key-resolver.ts +60 -0
- package/src/config/append-only-context-mode.ts +31 -0
- package/src/config/config-file.ts +317 -0
- package/src/config/file-lock.ts +164 -0
- package/src/config/keybindings.ts +628 -0
- package/src/config/mcp-schema.json +230 -0
- package/src/config/model-discovery.ts +554 -0
- package/src/config/model-registry.ts +2090 -0
- package/src/config/model-resolver.ts +1502 -0
- package/src/config/model-roles.ts +74 -0
- package/src/config/models-config-schema.ts +226 -0
- package/src/config/models-config.ts +129 -0
- package/src/config/prompt-templates.ts +185 -0
- package/src/config/resolve-config-value.ts +94 -0
- package/src/config/settings-schema.ts +3530 -0
- package/src/config/settings.ts +1178 -0
- package/src/config.ts +242 -0
- package/src/cursor.ts +340 -0
- package/src/dap/client.ts +760 -0
- package/src/dap/config.ts +189 -0
- package/src/dap/defaults.json +212 -0
- package/src/dap/index.ts +4 -0
- package/src/dap/session.ts +1441 -0
- package/src/dap/types.ts +610 -0
- package/src/debug/index.ts +515 -0
- package/src/debug/log-formatting.ts +58 -0
- package/src/debug/log-viewer.ts +908 -0
- package/src/debug/profiler.ts +162 -0
- package/src/debug/protocol-probe.ts +267 -0
- package/src/debug/raw-sse-buffer.ts +273 -0
- package/src/debug/raw-sse.ts +292 -0
- package/src/debug/report-bundle.ts +374 -0
- package/src/debug/system-info.ts +111 -0
- package/src/debug/terminal-info.ts +124 -0
- package/src/discovery/agents-md.ts +67 -0
- package/src/discovery/agents.ts +230 -0
- package/src/discovery/at-imports.ts +273 -0
- package/src/discovery/builtin-defaults.ts +39 -0
- package/src/discovery/builtin-rules/index.ts +54 -0
- package/src/discovery/builtin-rules/rs-box-leak.md +48 -0
- package/src/discovery/builtin-rules/rs-future-prelude.md +23 -0
- package/src/discovery/builtin-rules/rs-lazylock.md +51 -0
- package/src/discovery/builtin-rules/rs-match-ergonomics.md +67 -0
- package/src/discovery/builtin-rules/rs-parking-lot.md +44 -0
- package/src/discovery/builtin-rules/rs-result-type.md +19 -0
- package/src/discovery/builtin-rules/ts-bare-catch.md +38 -0
- package/src/discovery/builtin-rules/ts-import-type.md +42 -0
- package/src/discovery/builtin-rules/ts-no-any.md +56 -0
- package/src/discovery/builtin-rules/ts-no-deprecated-leftovers.md +44 -0
- package/src/discovery/builtin-rules/ts-no-dynamic-import.md +39 -0
- package/src/discovery/builtin-rules/ts-no-return-type.md +45 -0
- package/src/discovery/builtin-rules/ts-no-test-timers.md +55 -0
- package/src/discovery/builtin-rules/ts-no-tiny-functions.md +51 -0
- package/src/discovery/builtin-rules/ts-promise-with-resolvers.md +65 -0
- package/src/discovery/builtin-rules/ts-redundant-clear-guard.md +75 -0
- package/src/discovery/builtin-rules/ts-set-map.md +28 -0
- package/src/discovery/builtin.ts +906 -0
- package/src/discovery/claude-plugins.ts +386 -0
- package/src/discovery/claude.ts +584 -0
- package/src/discovery/cline.ts +83 -0
- package/src/discovery/codex.ts +522 -0
- package/src/discovery/cursor.ts +220 -0
- package/src/discovery/gemini.ts +383 -0
- package/src/discovery/github.ts +154 -0
- package/src/discovery/helpers.ts +1016 -0
- package/src/discovery/index.ts +81 -0
- package/src/discovery/mcp-json.ts +171 -0
- package/src/discovery/omp-extension-roots.ts +190 -0
- package/src/discovery/omp-plugins.ts +383 -0
- package/src/discovery/opencode.ts +398 -0
- package/src/discovery/plugin-dir-roots.ts +28 -0
- package/src/discovery/ssh.ts +153 -0
- package/src/discovery/substitute-plugin-root.ts +29 -0
- package/src/discovery/vscode.ts +105 -0
- package/src/discovery/windsurf.ts +147 -0
- package/src/edit/apply-patch/index.ts +87 -0
- package/src/edit/apply-patch/parser.ts +174 -0
- package/src/edit/diff.ts +999 -0
- package/src/edit/file-snapshot-store.ts +91 -0
- package/src/edit/hashline/block-resolver.ts +33 -0
- package/src/edit/hashline/diff.ts +290 -0
- package/src/edit/hashline/execute.ts +242 -0
- package/src/edit/hashline/filesystem.ts +130 -0
- package/src/edit/hashline/index.ts +5 -0
- package/src/edit/hashline/noop-loop-guard.ts +99 -0
- package/src/edit/hashline/params.ts +18 -0
- package/src/edit/index.ts +571 -0
- package/src/edit/modes/apply-patch.lark +19 -0
- package/src/edit/modes/apply-patch.ts +53 -0
- package/src/edit/modes/patch.ts +1891 -0
- package/src/edit/modes/replace.ts +1137 -0
- package/src/edit/normalize.ts +345 -0
- package/src/edit/notebook.ts +242 -0
- package/src/edit/read-file.ts +25 -0
- package/src/edit/renderer.ts +769 -0
- package/src/edit/streaming.ts +517 -0
- package/src/eval/__tests__/agent-bridge.test.ts +708 -0
- package/src/eval/__tests__/bridge-timeout.test.ts +64 -0
- package/src/eval/__tests__/budget-bridge.test.ts +69 -0
- package/src/eval/__tests__/completion-bridge.test.ts +412 -0
- package/src/eval/__tests__/helpers-local-roots.test.ts +58 -0
- package/src/eval/__tests__/idle-timeout.test.ts +80 -0
- package/src/eval/__tests__/js-context-manager.test.ts +241 -0
- package/src/eval/__tests__/kernel-spawn.test.ts +103 -0
- package/src/eval/agent-bridge.ts +319 -0
- package/src/eval/backend.ts +71 -0
- package/src/eval/bridge-timeout.ts +44 -0
- package/src/eval/budget-bridge.ts +48 -0
- package/src/eval/completion-bridge.ts +207 -0
- package/src/eval/concurrency-bridge.ts +34 -0
- package/src/eval/idle-timeout.ts +91 -0
- package/src/eval/index.ts +4 -0
- package/src/eval/js/context-manager.ts +502 -0
- package/src/eval/js/executor.ts +173 -0
- package/src/eval/js/index.ts +51 -0
- package/src/eval/js/shared/helpers.ts +283 -0
- package/src/eval/js/shared/indirect-eval.ts +30 -0
- package/src/eval/js/shared/local-module-loader.ts +342 -0
- package/src/eval/js/shared/prelude.ts +2 -0
- package/src/eval/js/shared/prelude.txt +246 -0
- package/src/eval/js/shared/rewrite-imports.ts +532 -0
- package/src/eval/js/shared/runtime.ts +352 -0
- package/src/eval/js/shared/types.ts +18 -0
- package/src/eval/js/tool-bridge.ts +162 -0
- package/src/eval/js/worker-core.ts +132 -0
- package/src/eval/js/worker-entry.ts +30 -0
- package/src/eval/js/worker-protocol.ts +47 -0
- package/src/eval/py/__tests__/prelude.test.ts +19 -0
- package/src/eval/py/display.ts +71 -0
- package/src/eval/py/executor.ts +742 -0
- package/src/eval/py/index.ts +68 -0
- package/src/eval/py/kernel.ts +748 -0
- package/src/eval/py/prelude.py +658 -0
- package/src/eval/py/prelude.ts +3 -0
- package/src/eval/py/runner.py +1133 -0
- package/src/eval/py/runtime.ts +276 -0
- package/src/eval/py/spawn-options.ts +126 -0
- package/src/eval/py/tool-bridge.ts +182 -0
- package/src/eval/session-id.ts +8 -0
- package/src/eval/types.ts +48 -0
- package/src/exa/index.ts +2 -0
- package/src/exa/mcp-client.ts +370 -0
- package/src/exa/types.ts +69 -0
- package/src/exec/bash-executor.ts +419 -0
- package/src/exec/exec.ts +53 -0
- package/src/exec/non-interactive-env.ts +48 -0
- package/src/export/custom-share.ts +65 -0
- package/src/export/html/index.ts +164 -0
- package/src/export/html/template.css +1051 -0
- package/src/export/html/template.generated.ts +2 -0
- package/src/export/html/template.html +46 -0
- package/src/export/html/template.js +2271 -0
- package/src/export/html/template.macro.ts +25 -0
- package/src/export/html/vendor/highlight.min.js +1213 -0
- package/src/export/html/vendor/marked.min.js +6 -0
- package/src/export/ttsr.ts +583 -0
- package/src/extensibility/custom-commands/bundled/ci-green/index.ts +54 -0
- package/src/extensibility/custom-commands/bundled/review/index.ts +489 -0
- package/src/extensibility/custom-commands/index.ts +2 -0
- package/src/extensibility/custom-commands/loader.ts +238 -0
- package/src/extensibility/custom-commands/types.ts +113 -0
- package/src/extensibility/custom-tools/index.ts +7 -0
- package/src/extensibility/custom-tools/loader.ts +269 -0
- package/src/extensibility/custom-tools/types.ts +270 -0
- package/src/extensibility/custom-tools/wrapper.ts +47 -0
- package/src/extensibility/extensions/compact-handler.ts +40 -0
- package/src/extensibility/extensions/get-commands-handler.ts +78 -0
- package/src/extensibility/extensions/index.ts +16 -0
- package/src/extensibility/extensions/loader.ts +572 -0
- package/src/extensibility/extensions/runner.ts +922 -0
- package/src/extensibility/extensions/types.ts +1322 -0
- package/src/extensibility/extensions/wrapper.ts +223 -0
- package/src/extensibility/hooks/index.ts +5 -0
- package/src/extensibility/hooks/loader.ts +257 -0
- package/src/extensibility/hooks/runner.ts +425 -0
- package/src/extensibility/hooks/tool-wrapper.ts +107 -0
- package/src/extensibility/hooks/types.ts +606 -0
- package/src/extensibility/legacy-pi-ai-shim.ts +24 -0
- package/src/extensibility/legacy-pi-coding-agent-shim.ts +15 -0
- package/src/extensibility/plugins/doctor.ts +65 -0
- package/src/extensibility/plugins/git-url.ts +367 -0
- package/src/extensibility/plugins/index.ts +9 -0
- package/src/extensibility/plugins/installer.ts +192 -0
- package/src/extensibility/plugins/legacy-pi-compat.ts +682 -0
- package/src/extensibility/plugins/loader.ts +313 -0
- package/src/extensibility/plugins/manager.ts +827 -0
- package/src/extensibility/plugins/marketplace/cache.ts +136 -0
- package/src/extensibility/plugins/marketplace/fetcher.ts +317 -0
- package/src/extensibility/plugins/marketplace/index.ts +6 -0
- package/src/extensibility/plugins/marketplace/manager.ts +770 -0
- package/src/extensibility/plugins/marketplace/registry.ts +196 -0
- package/src/extensibility/plugins/marketplace/source-resolver.ts +147 -0
- package/src/extensibility/plugins/marketplace/types.ts +191 -0
- package/src/extensibility/plugins/marketplace-auto-update.ts +49 -0
- package/src/extensibility/plugins/parser.ts +105 -0
- package/src/extensibility/plugins/types.ts +194 -0
- package/src/extensibility/shared-events.ts +343 -0
- package/src/extensibility/skills.ts +312 -0
- package/src/extensibility/slash-commands.ts +227 -0
- package/src/extensibility/tool-proxy.ts +25 -0
- package/src/extensibility/typebox.ts +418 -0
- package/src/extensibility/utils.ts +44 -0
- package/src/goals/index.ts +3 -0
- package/src/goals/runtime.ts +528 -0
- package/src/goals/state.ts +37 -0
- package/src/goals/tools/goal-tool.ts +251 -0
- package/src/hindsight/backend.ts +354 -0
- package/src/hindsight/bank.ts +156 -0
- package/src/hindsight/client.ts +598 -0
- package/src/hindsight/config.ts +175 -0
- package/src/hindsight/content.ts +210 -0
- package/src/hindsight/index.ts +8 -0
- package/src/hindsight/mental-models.ts +429 -0
- package/src/hindsight/seeds.json +32 -0
- package/src/hindsight/state.ts +488 -0
- package/src/hindsight/transcript.ts +71 -0
- package/src/index.ts +59 -0
- package/src/internal-urls/agent-protocol.ts +146 -0
- package/src/internal-urls/artifact-protocol.ts +107 -0
- package/src/internal-urls/docs-index.generated.ts +106 -0
- package/src/internal-urls/history-protocol.ts +113 -0
- package/src/internal-urls/index.ts +25 -0
- package/src/internal-urls/issue-pr-protocol.ts +584 -0
- package/src/internal-urls/json-query.ts +126 -0
- package/src/internal-urls/local-protocol.ts +287 -0
- package/src/internal-urls/mcp-protocol.ts +151 -0
- package/src/internal-urls/memory-protocol.ts +169 -0
- package/src/internal-urls/omp-protocol.ts +93 -0
- package/src/internal-urls/parse.ts +72 -0
- package/src/internal-urls/registry-helpers.ts +25 -0
- package/src/internal-urls/router.ts +105 -0
- package/src/internal-urls/rule-protocol.ts +45 -0
- package/src/internal-urls/skill-protocol.ts +96 -0
- package/src/internal-urls/types.ts +152 -0
- package/src/internal-urls/vault-protocol.ts +936 -0
- package/src/irc/bus.ts +292 -0
- package/src/lib/xai-http.ts +124 -0
- package/src/lsp/client.ts +1193 -0
- package/src/lsp/clients/biome-client.ts +264 -0
- package/src/lsp/clients/index.ts +50 -0
- package/src/lsp/clients/lsp-linter-client.ts +93 -0
- package/src/lsp/clients/swiftlint-client.ts +120 -0
- package/src/lsp/config.ts +502 -0
- package/src/lsp/defaults.json +493 -0
- package/src/lsp/diagnostics-ledger.ts +51 -0
- package/src/lsp/edits.ts +267 -0
- package/src/lsp/index.ts +2477 -0
- package/src/lsp/lspmux.ts +233 -0
- package/src/lsp/render.ts +694 -0
- package/src/lsp/startup-events.ts +13 -0
- package/src/lsp/types.ts +455 -0
- package/src/lsp/utils.ts +718 -0
- package/src/main.ts +1325 -0
- package/src/mcp/client.ts +484 -0
- package/src/mcp/config-writer.ts +225 -0
- package/src/mcp/config.ts +365 -0
- package/src/mcp/index.ts +29 -0
- package/src/mcp/json-rpc.ts +122 -0
- package/src/mcp/loader.ts +124 -0
- package/src/mcp/manager.ts +1275 -0
- package/src/mcp/oauth-discovery.ts +442 -0
- package/src/mcp/oauth-flow.ts +442 -0
- package/src/mcp/render.ts +132 -0
- package/src/mcp/smithery-auth.ts +104 -0
- package/src/mcp/smithery-connect.ts +145 -0
- package/src/mcp/smithery-registry.ts +477 -0
- package/src/mcp/timeout.ts +59 -0
- package/src/mcp/tool-bridge.ts +426 -0
- package/src/mcp/tool-cache.ts +117 -0
- package/src/mcp/transports/http.ts +519 -0
- package/src/mcp/transports/index.ts +6 -0
- package/src/mcp/transports/stdio.ts +528 -0
- package/src/mcp/types.ts +423 -0
- package/src/memories/index.ts +1150 -0
- package/src/memories/storage.ts +577 -0
- package/src/memory-backend/index.ts +18 -0
- package/src/memory-backend/local-backend.ts +39 -0
- package/src/memory-backend/off-backend.ts +25 -0
- package/src/memory-backend/resolve.ts +25 -0
- package/src/memory-backend/runtime.ts +66 -0
- package/src/memory-backend/types.ts +166 -0
- package/src/mnemopi/backend.ts +547 -0
- package/src/mnemopi/config.ts +160 -0
- package/src/mnemopi/index.ts +3 -0
- package/src/mnemopi/state.ts +584 -0
- package/src/modes/acp/acp-agent.ts +2407 -0
- package/src/modes/acp/acp-client-bridge.ts +154 -0
- package/src/modes/acp/acp-event-mapper.ts +929 -0
- package/src/modes/acp/acp-mode.ts +23 -0
- package/src/modes/acp/index.ts +2 -0
- package/src/modes/acp/terminal-auth.ts +37 -0
- package/src/modes/components/agent-dashboard.ts +1206 -0
- package/src/modes/components/agent-hub.ts +1071 -0
- package/src/modes/components/assistant-message.ts +307 -0
- package/src/modes/components/bash-execution.ts +220 -0
- package/src/modes/components/bordered-loader.ts +41 -0
- package/src/modes/components/branch-summary-message.ts +45 -0
- package/src/modes/components/btw-panel.ts +104 -0
- package/src/modes/components/chat-block.ts +111 -0
- package/src/modes/components/compaction-summary-message.ts +87 -0
- package/src/modes/components/copy-selector.ts +206 -0
- package/src/modes/components/countdown-timer.ts +75 -0
- package/src/modes/components/custom-editor.ts +398 -0
- package/src/modes/components/custom-message.ts +63 -0
- package/src/modes/components/diff.ts +277 -0
- package/src/modes/components/dynamic-border.ts +34 -0
- package/src/modes/components/error-banner.ts +33 -0
- package/src/modes/components/eval-execution.ts +158 -0
- package/src/modes/components/execution-shared.ts +101 -0
- package/src/modes/components/extensions/extension-dashboard.ts +399 -0
- package/src/modes/components/extensions/extension-list.ts +502 -0
- package/src/modes/components/extensions/index.ts +9 -0
- package/src/modes/components/extensions/inspector-panel.ts +317 -0
- package/src/modes/components/extensions/state-manager.ts +627 -0
- package/src/modes/components/extensions/types.ts +186 -0
- package/src/modes/components/footer.ts +274 -0
- package/src/modes/components/history-search.ts +280 -0
- package/src/modes/components/hook-editor.ts +167 -0
- package/src/modes/components/hook-input.ts +87 -0
- package/src/modes/components/hook-message.ts +66 -0
- package/src/modes/components/hook-selector.ts +660 -0
- package/src/modes/components/index.ts +38 -0
- package/src/modes/components/keybinding-hints.ts +65 -0
- package/src/modes/components/late-diagnostics-message.ts +60 -0
- package/src/modes/components/login-dialog.ts +164 -0
- package/src/modes/components/mcp-add-wizard.ts +1340 -0
- package/src/modes/components/message-frame.ts +88 -0
- package/src/modes/components/model-selector.ts +1271 -0
- package/src/modes/components/oauth-selector.ts +368 -0
- package/src/modes/components/omfg-panel.ts +141 -0
- package/src/modes/components/overlay-box.ts +108 -0
- package/src/modes/components/plan-review-overlay.ts +820 -0
- package/src/modes/components/plan-toc.ts +138 -0
- package/src/modes/components/plugin-selector.ts +95 -0
- package/src/modes/components/plugin-settings.ts +722 -0
- package/src/modes/components/queue-mode-selector.ts +56 -0
- package/src/modes/components/read-tool-group.ts +670 -0
- package/src/modes/components/segment-track.ts +52 -0
- package/src/modes/components/session-selector.ts +625 -0
- package/src/modes/components/settings-defs.ts +189 -0
- package/src/modes/components/settings-selector.ts +651 -0
- package/src/modes/components/show-images-selector.ts +45 -0
- package/src/modes/components/skill-message.ts +89 -0
- package/src/modes/components/status-line/component.ts +869 -0
- package/src/modes/components/status-line/context-thresholds.ts +79 -0
- package/src/modes/components/status-line/git-utils.ts +42 -0
- package/src/modes/components/status-line/index.ts +5 -0
- package/src/modes/components/status-line/presets.ts +106 -0
- package/src/modes/components/status-line/segments.ts +584 -0
- package/src/modes/components/status-line/separators.ts +55 -0
- package/src/modes/components/status-line/token-rate.ts +66 -0
- package/src/modes/components/status-line/types.ts +108 -0
- package/src/modes/components/theme-selector.ts +63 -0
- package/src/modes/components/thinking-selector.ts +52 -0
- package/src/modes/components/tiny-title-download-progress.ts +90 -0
- package/src/modes/components/tips.txt +19 -0
- package/src/modes/components/todo-reminder.ts +38 -0
- package/src/modes/components/tool-execution.ts +1024 -0
- package/src/modes/components/transcript-container.ts +608 -0
- package/src/modes/components/tree-selector.ts +978 -0
- package/src/modes/components/ttsr-notification.ts +122 -0
- package/src/modes/components/user-message-selector.ts +227 -0
- package/src/modes/components/user-message.ts +66 -0
- package/src/modes/components/visual-truncate.ts +63 -0
- package/src/modes/components/welcome.ts +493 -0
- package/src/modes/controllers/btw-controller.ts +105 -0
- package/src/modes/controllers/command-controller-shared.ts +109 -0
- package/src/modes/controllers/command-controller.ts +1566 -0
- package/src/modes/controllers/event-controller.ts +1054 -0
- package/src/modes/controllers/extension-ui-controller.ts +886 -0
- package/src/modes/controllers/input-controller.ts +1073 -0
- package/src/modes/controllers/mcp-command-controller.ts +2017 -0
- package/src/modes/controllers/omfg-controller.ts +283 -0
- package/src/modes/controllers/omfg-rule.ts +647 -0
- package/src/modes/controllers/selector-controller.ts +1108 -0
- package/src/modes/controllers/ssh-command-controller.ts +384 -0
- package/src/modes/controllers/streaming-reveal.ts +279 -0
- package/src/modes/controllers/tan-command-controller.ts +173 -0
- package/src/modes/controllers/todo-command-controller.ts +485 -0
- package/src/modes/data/emojis.json +1 -0
- package/src/modes/emoji-autocomplete.ts +285 -0
- package/src/modes/gradient-highlight.ts +87 -0
- package/src/modes/image-references.ts +117 -0
- package/src/modes/index.ts +17 -0
- package/src/modes/interactive-mode.ts +3370 -0
- package/src/modes/internal-url-autocomplete.ts +143 -0
- package/src/modes/loop-limit.ts +140 -0
- package/src/modes/magic-keywords.ts +20 -0
- package/src/modes/markdown-prose.ts +247 -0
- package/src/modes/oauth-manual-input.ts +69 -0
- package/src/modes/orchestrate.ts +42 -0
- package/src/modes/print-mode.ts +126 -0
- package/src/modes/prompt-action-autocomplete.ts +260 -0
- package/src/modes/rpc/host-tools.ts +186 -0
- package/src/modes/rpc/host-uris.ts +235 -0
- package/src/modes/rpc/rpc-client.ts +963 -0
- package/src/modes/rpc/rpc-mode.ts +947 -0
- package/src/modes/rpc/rpc-subagents.ts +265 -0
- package/src/modes/rpc/rpc-types.ts +458 -0
- package/src/modes/runtime-init.ts +116 -0
- package/src/modes/session-observer-registry.ts +146 -0
- package/src/modes/setup-version.ts +11 -0
- package/src/modes/setup-wizard/index.ts +99 -0
- package/src/modes/setup-wizard/lazy.ts +16 -0
- package/src/modes/setup-wizard/scenes/glyph.ts +96 -0
- package/src/modes/setup-wizard/scenes/outro.ts +35 -0
- package/src/modes/setup-wizard/scenes/providers.ts +69 -0
- package/src/modes/setup-wizard/scenes/sign-in.ts +205 -0
- package/src/modes/setup-wizard/scenes/splash.ts +201 -0
- package/src/modes/setup-wizard/scenes/theme.ts +299 -0
- package/src/modes/setup-wizard/scenes/types.ts +48 -0
- package/src/modes/setup-wizard/scenes/web-search.ts +129 -0
- package/src/modes/setup-wizard/wizard-overlay.ts +275 -0
- package/src/modes/shared.ts +47 -0
- package/src/modes/theme/dark.json +95 -0
- package/src/modes/theme/defaults/alabaster.json +93 -0
- package/src/modes/theme/defaults/amethyst.json +96 -0
- package/src/modes/theme/defaults/anthracite.json +93 -0
- package/src/modes/theme/defaults/basalt.json +91 -0
- package/src/modes/theme/defaults/birch.json +95 -0
- package/src/modes/theme/defaults/dark-abyss.json +91 -0
- package/src/modes/theme/defaults/dark-arctic.json +104 -0
- package/src/modes/theme/defaults/dark-aurora.json +95 -0
- package/src/modes/theme/defaults/dark-catppuccin.json +107 -0
- package/src/modes/theme/defaults/dark-cavern.json +91 -0
- package/src/modes/theme/defaults/dark-copper.json +95 -0
- package/src/modes/theme/defaults/dark-cosmos.json +90 -0
- package/src/modes/theme/defaults/dark-cyberpunk.json +102 -0
- package/src/modes/theme/defaults/dark-dracula.json +98 -0
- package/src/modes/theme/defaults/dark-eclipse.json +91 -0
- package/src/modes/theme/defaults/dark-ember.json +95 -0
- package/src/modes/theme/defaults/dark-equinox.json +90 -0
- package/src/modes/theme/defaults/dark-forest.json +96 -0
- package/src/modes/theme/defaults/dark-github.json +105 -0
- package/src/modes/theme/defaults/dark-gruvbox.json +112 -0
- package/src/modes/theme/defaults/dark-lavender.json +95 -0
- package/src/modes/theme/defaults/dark-lunar.json +89 -0
- package/src/modes/theme/defaults/dark-midnight.json +95 -0
- package/src/modes/theme/defaults/dark-monochrome.json +94 -0
- package/src/modes/theme/defaults/dark-monokai.json +98 -0
- package/src/modes/theme/defaults/dark-nebula.json +90 -0
- package/src/modes/theme/defaults/dark-nord.json +97 -0
- package/src/modes/theme/defaults/dark-ocean.json +101 -0
- package/src/modes/theme/defaults/dark-one.json +100 -0
- package/src/modes/theme/defaults/dark-poimandres.json +142 -0
- package/src/modes/theme/defaults/dark-rainforest.json +91 -0
- package/src/modes/theme/defaults/dark-reef.json +91 -0
- package/src/modes/theme/defaults/dark-retro.json +92 -0
- package/src/modes/theme/defaults/dark-rose-pine.json +96 -0
- package/src/modes/theme/defaults/dark-sakura.json +95 -0
- package/src/modes/theme/defaults/dark-slate.json +95 -0
- package/src/modes/theme/defaults/dark-solarized.json +97 -0
- package/src/modes/theme/defaults/dark-solstice.json +90 -0
- package/src/modes/theme/defaults/dark-starfall.json +91 -0
- package/src/modes/theme/defaults/dark-sunset.json +99 -0
- package/src/modes/theme/defaults/dark-swamp.json +90 -0
- package/src/modes/theme/defaults/dark-synthwave.json +103 -0
- package/src/modes/theme/defaults/dark-taiga.json +91 -0
- package/src/modes/theme/defaults/dark-terminal.json +95 -0
- package/src/modes/theme/defaults/dark-tokyo-night.json +101 -0
- package/src/modes/theme/defaults/dark-tundra.json +91 -0
- package/src/modes/theme/defaults/dark-twilight.json +91 -0
- package/src/modes/theme/defaults/dark-volcanic.json +91 -0
- package/src/modes/theme/defaults/graphite.json +92 -0
- package/src/modes/theme/defaults/index.ts +199 -0
- package/src/modes/theme/defaults/light-arctic.json +107 -0
- package/src/modes/theme/defaults/light-aurora-day.json +91 -0
- package/src/modes/theme/defaults/light-canyon.json +91 -0
- package/src/modes/theme/defaults/light-catppuccin.json +106 -0
- package/src/modes/theme/defaults/light-cirrus.json +90 -0
- package/src/modes/theme/defaults/light-coral.json +95 -0
- package/src/modes/theme/defaults/light-cyberpunk.json +96 -0
- package/src/modes/theme/defaults/light-dawn.json +90 -0
- package/src/modes/theme/defaults/light-dunes.json +91 -0
- package/src/modes/theme/defaults/light-eucalyptus.json +95 -0
- package/src/modes/theme/defaults/light-forest.json +100 -0
- package/src/modes/theme/defaults/light-frost.json +95 -0
- package/src/modes/theme/defaults/light-github.json +115 -0
- package/src/modes/theme/defaults/light-glacier.json +91 -0
- package/src/modes/theme/defaults/light-gruvbox.json +108 -0
- package/src/modes/theme/defaults/light-haze.json +90 -0
- package/src/modes/theme/defaults/light-honeycomb.json +95 -0
- package/src/modes/theme/defaults/light-lagoon.json +91 -0
- package/src/modes/theme/defaults/light-lavender.json +95 -0
- package/src/modes/theme/defaults/light-meadow.json +91 -0
- package/src/modes/theme/defaults/light-mint.json +95 -0
- package/src/modes/theme/defaults/light-monochrome.json +101 -0
- package/src/modes/theme/defaults/light-ocean.json +99 -0
- package/src/modes/theme/defaults/light-one.json +99 -0
- package/src/modes/theme/defaults/light-opal.json +91 -0
- package/src/modes/theme/defaults/light-orchard.json +91 -0
- package/src/modes/theme/defaults/light-paper.json +95 -0
- package/src/modes/theme/defaults/light-poimandres.json +142 -0
- package/src/modes/theme/defaults/light-prism.json +90 -0
- package/src/modes/theme/defaults/light-retro.json +98 -0
- package/src/modes/theme/defaults/light-sand.json +95 -0
- package/src/modes/theme/defaults/light-savanna.json +91 -0
- package/src/modes/theme/defaults/light-solarized.json +102 -0
- package/src/modes/theme/defaults/light-soleil.json +90 -0
- package/src/modes/theme/defaults/light-sunset.json +99 -0
- package/src/modes/theme/defaults/light-synthwave.json +98 -0
- package/src/modes/theme/defaults/light-tokyo-night.json +111 -0
- package/src/modes/theme/defaults/light-wetland.json +91 -0
- package/src/modes/theme/defaults/light-zenith.json +89 -0
- package/src/modes/theme/defaults/limestone.json +94 -0
- package/src/modes/theme/defaults/mahogany.json +97 -0
- package/src/modes/theme/defaults/marble.json +93 -0
- package/src/modes/theme/defaults/obsidian.json +91 -0
- package/src/modes/theme/defaults/onyx.json +91 -0
- package/src/modes/theme/defaults/pearl.json +93 -0
- package/src/modes/theme/defaults/porcelain.json +91 -0
- package/src/modes/theme/defaults/quartz.json +96 -0
- package/src/modes/theme/defaults/sandstone.json +95 -0
- package/src/modes/theme/defaults/titanium.json +90 -0
- package/src/modes/theme/light.json +93 -0
- package/src/modes/theme/mermaid-cache.ts +29 -0
- package/src/modes/theme/shimmer.ts +235 -0
- package/src/modes/theme/theme-schema.json +459 -0
- package/src/modes/theme/theme.ts +2676 -0
- package/src/modes/turn-budget.ts +31 -0
- package/src/modes/types.ts +359 -0
- package/src/modes/ultrathink.ts +41 -0
- package/src/modes/utils/context-usage.ts +339 -0
- package/src/modes/utils/copy-targets.ts +360 -0
- package/src/modes/utils/hotkeys-markdown.ts +61 -0
- package/src/modes/utils/keybinding-matchers.ts +51 -0
- package/src/modes/utils/tools-markdown.ts +27 -0
- package/src/modes/utils/ui-helpers.ts +801 -0
- package/src/modes/workflow.ts +42 -0
- package/src/plan-mode/approved-plan.ts +186 -0
- package/src/plan-mode/plan-handoff.ts +37 -0
- package/src/plan-mode/plan-protection.ts +31 -0
- package/src/plan-mode/state.ts +6 -0
- package/src/priority.json +41 -0
- package/src/prompts/agents/designer.md +66 -0
- package/src/prompts/agents/explore.md +58 -0
- package/src/prompts/agents/frontmatter.md +11 -0
- package/src/prompts/agents/init.md +33 -0
- package/src/prompts/agents/librarian.md +119 -0
- package/src/prompts/agents/oracle.md +55 -0
- package/src/prompts/agents/plan.md +48 -0
- package/src/prompts/agents/reviewer.md +140 -0
- package/src/prompts/agents/task.md +16 -0
- package/src/prompts/ci-green-request.md +36 -0
- package/src/prompts/dry-balance-bench.md +8 -0
- package/src/prompts/goals/goal-budget-limit.md +16 -0
- package/src/prompts/goals/goal-continuation.md +28 -0
- package/src/prompts/goals/goal-mode-active.md +23 -0
- package/src/prompts/memories/consolidation.md +30 -0
- package/src/prompts/memories/read-path.md +11 -0
- package/src/prompts/memories/stage_one_input.md +6 -0
- package/src/prompts/memories/stage_one_system.md +21 -0
- package/src/prompts/review-custom-request.md +22 -0
- package/src/prompts/review-headless-request.md +16 -0
- package/src/prompts/review-request.md +69 -0
- package/src/prompts/steering/user-interjection.md +10 -0
- package/src/prompts/system/agent-creation-architect.md +50 -0
- package/src/prompts/system/agent-creation-user.md +6 -0
- package/src/prompts/system/auto-continue.md +1 -0
- package/src/prompts/system/auto-thinking-difficulty-local.md +14 -0
- package/src/prompts/system/auto-thinking-difficulty.md +12 -0
- package/src/prompts/system/background-tan-dispatch.md +8 -0
- package/src/prompts/system/btw-user.md +8 -0
- package/src/prompts/system/commit-message-system.md +14 -0
- package/src/prompts/system/custom-system-prompt.md +64 -0
- package/src/prompts/system/eager-todo.md +13 -0
- package/src/prompts/system/empty-stop-retry.md +6 -0
- package/src/prompts/system/irc-incoming.md +7 -0
- package/src/prompts/system/manual-continue.md +7 -0
- package/src/prompts/system/memory-consolidation-system.md +8 -0
- package/src/prompts/system/memory-extraction-system.md +26 -0
- package/src/prompts/system/omfg-user.md +50 -0
- package/src/prompts/system/orchestrate-notice.md +40 -0
- package/src/prompts/system/plan-mode-active.md +109 -0
- package/src/prompts/system/plan-mode-approved.md +25 -0
- package/src/prompts/system/plan-mode-compact-instructions.md +16 -0
- package/src/prompts/system/plan-mode-reference.md +11 -0
- package/src/prompts/system/plan-mode-subagent.md +33 -0
- package/src/prompts/system/plan-mode-tool-decision-reminder.md +9 -0
- package/src/prompts/system/project-prompt.md +52 -0
- package/src/prompts/system/subagent-system-prompt.md +64 -0
- package/src/prompts/system/subagent-user-prompt.md +3 -0
- package/src/prompts/system/subagent-yield-reminder.md +12 -0
- package/src/prompts/system/system-prompt.md +258 -0
- package/src/prompts/system/tiny-title-system.md +8 -0
- package/src/prompts/system/title-system.md +16 -0
- package/src/prompts/system/ttsr-interrupt.md +7 -0
- package/src/prompts/system/ttsr-tool-reminder.md +5 -0
- package/src/prompts/system/ultrathink-notice.md +3 -0
- package/src/prompts/system/web-search.md +25 -0
- package/src/prompts/system/workflow-notice.md +70 -0
- package/src/prompts/tools/apply-patch.md +65 -0
- package/src/prompts/tools/ask.md +30 -0
- package/src/prompts/tools/ast-edit.md +39 -0
- package/src/prompts/tools/ast-grep.md +42 -0
- package/src/prompts/tools/async-result.md +8 -0
- package/src/prompts/tools/bash.md +46 -0
- package/src/prompts/tools/browser.md +73 -0
- package/src/prompts/tools/checkpoint.md +16 -0
- package/src/prompts/tools/debug.md +34 -0
- package/src/prompts/tools/eval.md +92 -0
- package/src/prompts/tools/find.md +36 -0
- package/src/prompts/tools/github.md +21 -0
- package/src/prompts/tools/goal.md +18 -0
- package/src/prompts/tools/image-gen.md +7 -0
- package/src/prompts/tools/inspect-image-system.md +20 -0
- package/src/prompts/tools/inspect-image.md +32 -0
- package/src/prompts/tools/irc.md +59 -0
- package/src/prompts/tools/job.md +19 -0
- package/src/prompts/tools/lsp-late-diagnostic.md +8 -0
- package/src/prompts/tools/lsp.md +42 -0
- package/src/prompts/tools/memory-edit.md +8 -0
- package/src/prompts/tools/patch.md +70 -0
- package/src/prompts/tools/read.md +84 -0
- package/src/prompts/tools/recall.md +5 -0
- package/src/prompts/tools/reflect.md +5 -0
- package/src/prompts/tools/render-mermaid.md +9 -0
- package/src/prompts/tools/replace.md +30 -0
- package/src/prompts/tools/resolve.md +9 -0
- package/src/prompts/tools/retain.md +6 -0
- package/src/prompts/tools/rewind.md +13 -0
- package/src/prompts/tools/search-tool-bm25.md +32 -0
- package/src/prompts/tools/search.md +24 -0
- package/src/prompts/tools/ssh.md +31 -0
- package/src/prompts/tools/task-summary.md +17 -0
- package/src/prompts/tools/task.md +88 -0
- package/src/prompts/tools/todo.md +62 -0
- package/src/prompts/tools/web-search.md +10 -0
- package/src/prompts/tools/write.md +14 -0
- package/src/registry/agent-lifecycle.ts +218 -0
- package/src/registry/agent-registry.ts +151 -0
- package/src/sdk.ts +2558 -0
- package/src/secrets/index.ts +123 -0
- package/src/secrets/obfuscator.ts +298 -0
- package/src/secrets/regex.ts +21 -0
- package/src/session/agent-session.ts +10121 -0
- package/src/session/agent-storage.ts +455 -0
- package/src/session/artifacts.ts +135 -0
- package/src/session/auth-broker-config.ts +131 -0
- package/src/session/auth-storage.ts +29 -0
- package/src/session/blob-store.ts +255 -0
- package/src/session/client-bridge.ts +85 -0
- package/src/session/history-storage.ts +348 -0
- package/src/session/indexed-session-storage.ts +430 -0
- package/src/session/messages.ts +541 -0
- package/src/session/redis-session-storage.ts +170 -0
- package/src/session/session-dump-format.ts +209 -0
- package/src/session/session-history-format.ts +246 -0
- package/src/session/session-manager.ts +3676 -0
- package/src/session/session-storage.ts +529 -0
- package/src/session/shake-types.ts +43 -0
- package/src/session/sql-session-storage.ts +314 -0
- package/src/session/streaming-output.ts +1330 -0
- package/src/session/tool-choice-queue.ts +213 -0
- package/src/session/yield-queue.ts +173 -0
- package/src/slash-commands/acp-builtins.ts +70 -0
- package/src/slash-commands/builtin-registry.ts +1798 -0
- package/src/slash-commands/helpers/context-report.ts +39 -0
- package/src/slash-commands/helpers/format.ts +46 -0
- package/src/slash-commands/helpers/marketplace-manager.ts +25 -0
- package/src/slash-commands/helpers/mcp.ts +532 -0
- package/src/slash-commands/helpers/parse.ts +85 -0
- package/src/slash-commands/helpers/ssh.ts +195 -0
- package/src/slash-commands/helpers/stats-dashboard.ts +85 -0
- package/src/slash-commands/helpers/todo.ts +279 -0
- package/src/slash-commands/helpers/usage-report.ts +95 -0
- package/src/slash-commands/marketplace-install-parser.ts +99 -0
- package/src/slash-commands/types.ts +135 -0
- package/src/ssh/config-writer.ts +183 -0
- package/src/ssh/connection-manager.ts +509 -0
- package/src/ssh/ssh-executor.ts +189 -0
- package/src/ssh/sshfs-mount.ts +140 -0
- package/src/ssh/utils.ts +8 -0
- package/src/stt/downloader.ts +71 -0
- package/src/stt/index.ts +3 -0
- package/src/stt/recorder.ts +351 -0
- package/src/stt/setup.ts +52 -0
- package/src/stt/stt-controller.ts +160 -0
- package/src/stt/transcribe.py +70 -0
- package/src/stt/transcriber.ts +91 -0
- package/src/stubs/natives/index.ts +814 -0
- package/src/stubs/natives/package.json +7 -0
- package/src/stubs/tui/index.ts +282 -0
- package/src/stubs/tui/package.json +7 -0
- package/src/system-prompt.ts +611 -0
- package/src/task/agents.ts +167 -0
- package/src/task/commands.ts +132 -0
- package/src/task/discovery.ts +122 -0
- package/src/task/executor.ts +2133 -0
- package/src/task/index.ts +1419 -0
- package/src/task/name-generator.ts +1577 -0
- package/src/task/omp-command.ts +26 -0
- package/src/task/output-manager.ts +88 -0
- package/src/task/parallel.ts +116 -0
- package/src/task/render.ts +1381 -0
- package/src/task/repair-args.ts +129 -0
- package/src/task/subprocess-tool-registry.ts +88 -0
- package/src/task/types.ts +336 -0
- package/src/task/worktree.ts +514 -0
- package/src/telemetry-export.ts +144 -0
- package/src/thinking.ts +167 -0
- package/src/tiny/compiled-runtime.ts +179 -0
- package/src/tiny/device.ts +111 -0
- package/src/tiny/dtype.ts +101 -0
- package/src/tiny/models.ts +242 -0
- package/src/tiny/text.ts +165 -0
- package/src/tiny/title-client.ts +543 -0
- package/src/tiny/title-protocol.ts +56 -0
- package/src/tiny/worker.ts +568 -0
- package/src/tool-discovery/mode.ts +24 -0
- package/src/tool-discovery/tool-index.ts +256 -0
- package/src/tools/approval.ts +189 -0
- package/src/tools/archive-reader.ts +721 -0
- package/src/tools/ask.ts +928 -0
- package/src/tools/ast-edit.ts +642 -0
- package/src/tools/ast-grep.ts +452 -0
- package/src/tools/auto-generated-guard.ts +322 -0
- package/src/tools/bash-command-fixup.ts +37 -0
- package/src/tools/bash-interactive.ts +408 -0
- package/src/tools/bash-interceptor.ts +67 -0
- package/src/tools/bash-pty-selection.ts +14 -0
- package/src/tools/bash-skill-urls.ts +248 -0
- package/src/tools/bash.ts +1386 -0
- package/src/tools/browser/attach.ts +175 -0
- package/src/tools/browser/launch.ts +660 -0
- package/src/tools/browser/readable.ts +112 -0
- package/src/tools/browser/registry.ts +197 -0
- package/src/tools/browser/render.ts +216 -0
- package/src/tools/browser/tab-protocol.ts +105 -0
- package/src/tools/browser/tab-supervisor.ts +628 -0
- package/src/tools/browser/tab-worker-entry.ts +21 -0
- package/src/tools/browser/tab-worker.ts +1226 -0
- package/src/tools/browser.ts +343 -0
- package/src/tools/checkpoint.ts +136 -0
- package/src/tools/conflict-detect.ts +718 -0
- package/src/tools/context.ts +39 -0
- package/src/tools/debug.ts +1067 -0
- package/src/tools/eval-backends.ts +27 -0
- package/src/tools/eval-render.ts +752 -0
- package/src/tools/eval.ts +577 -0
- package/src/tools/fetch.ts +1926 -0
- package/src/tools/file-recorder.ts +35 -0
- package/src/tools/find.ts +609 -0
- package/src/tools/fs-cache-invalidation.ts +28 -0
- package/src/tools/gh-cache-invalidation.ts +255 -0
- package/src/tools/gh-format.ts +12 -0
- package/src/tools/gh-renderer.ts +481 -0
- package/src/tools/gh.ts +3720 -0
- package/src/tools/github-cache.ts +637 -0
- package/src/tools/grouped-file-output.ts +210 -0
- package/src/tools/image-gen.ts +1517 -0
- package/src/tools/index.ts +599 -0
- package/src/tools/inspect-image-renderer.ts +132 -0
- package/src/tools/inspect-image.ts +174 -0
- package/src/tools/irc.ts +723 -0
- package/src/tools/job.ts +557 -0
- package/src/tools/json-tree.ts +243 -0
- package/src/tools/jtd-to-json-schema.ts +219 -0
- package/src/tools/jtd-to-typescript.ts +136 -0
- package/src/tools/jtd-utils.ts +102 -0
- package/src/tools/list-limit.ts +40 -0
- package/src/tools/match-line-format.ts +20 -0
- package/src/tools/memory-edit.ts +59 -0
- package/src/tools/memory-recall.ts +100 -0
- package/src/tools/memory-reflect.ts +88 -0
- package/src/tools/memory-render.ts +202 -0
- package/src/tools/memory-retain.ts +91 -0
- package/src/tools/output-meta.ts +754 -0
- package/src/tools/output-schema-validator.ts +132 -0
- package/src/tools/path-utils.ts +1054 -0
- package/src/tools/plan-mode-guard.ts +108 -0
- package/src/tools/puppeteer/00_stealth_tampering.txt +63 -0
- package/src/tools/puppeteer/01_stealth_activity.txt +20 -0
- package/src/tools/puppeteer/02_stealth_hairline.txt +11 -0
- package/src/tools/puppeteer/03_stealth_botd.txt +384 -0
- package/src/tools/puppeteer/04_stealth_iframe.txt +81 -0
- package/src/tools/puppeteer/05_stealth_webgl.txt +75 -0
- package/src/tools/puppeteer/06_stealth_screen.txt +72 -0
- package/src/tools/puppeteer/07_stealth_fonts.txt +97 -0
- package/src/tools/puppeteer/08_stealth_audio.txt +51 -0
- package/src/tools/puppeteer/09_stealth_locale.txt +46 -0
- package/src/tools/puppeteer/10_stealth_plugins.txt +206 -0
- package/src/tools/puppeteer/11_stealth_hardware.txt +8 -0
- package/src/tools/puppeteer/12_stealth_codecs.txt +40 -0
- package/src/tools/puppeteer/13_stealth_worker.txt +74 -0
- package/src/tools/read.ts +2929 -0
- package/src/tools/render-mermaid.ts +69 -0
- package/src/tools/render-utils.ts +838 -0
- package/src/tools/renderers.ts +77 -0
- package/src/tools/report-tool-issue.ts +534 -0
- package/src/tools/resolve.ts +276 -0
- package/src/tools/review.ts +253 -0
- package/src/tools/search-tool-bm25.ts +351 -0
- package/src/tools/search.ts +1580 -0
- package/src/tools/sqlite-reader.ts +828 -0
- package/src/tools/ssh.ts +349 -0
- package/src/tools/todo.ts +982 -0
- package/src/tools/tool-errors.ts +62 -0
- package/src/tools/tool-result.ts +94 -0
- package/src/tools/tool-timeouts.ts +30 -0
- package/src/tools/tts.ts +133 -0
- package/src/tools/write.ts +1217 -0
- package/src/tools/yield.ts +269 -0
- package/src/tui/code-cell.ts +216 -0
- package/src/tui/file-list.ts +55 -0
- package/src/tui/hyperlink.ts +175 -0
- package/src/tui/index.ts +12 -0
- package/src/tui/output-block.ts +240 -0
- package/src/tui/status-line.ts +54 -0
- package/src/tui/tree-list.ts +84 -0
- package/src/tui/types.ts +15 -0
- package/src/tui/utils.ts +103 -0
- package/src/utils/block-context.ts +312 -0
- package/src/utils/changelog.ts +132 -0
- package/src/utils/clipboard.ts +193 -0
- package/src/utils/command-args.ts +76 -0
- package/src/utils/commit-message-generator.ts +151 -0
- package/src/utils/edit-mode.ts +41 -0
- package/src/utils/enhanced-paste.ts +230 -0
- package/src/utils/event-bus.ts +33 -0
- package/src/utils/external-editor.ts +65 -0
- package/src/utils/file-display-mode.ts +45 -0
- package/src/utils/file-mentions.ts +281 -0
- package/src/utils/git.ts +1833 -0
- package/src/utils/image-loading.ts +132 -0
- package/src/utils/image-resize.ts +309 -0
- package/src/utils/jj.ts +248 -0
- package/src/utils/lang-from-path.ts +239 -0
- package/src/utils/markit.ts +89 -0
- package/src/utils/open.ts +55 -0
- package/src/utils/session-color.ts +68 -0
- package/src/utils/shell-snapshot.ts +187 -0
- package/src/utils/sixel.ts +69 -0
- package/src/utils/title-generator.ts +373 -0
- package/src/utils/tool-choice.ts +33 -0
- package/src/utils/tools-manager.ts +363 -0
- package/src/web/kagi.ts +305 -0
- package/src/web/parallel.ts +353 -0
- package/src/web/scrapers/artifacthub.ts +207 -0
- package/src/web/scrapers/arxiv.ts +83 -0
- package/src/web/scrapers/aur.ts +162 -0
- package/src/web/scrapers/biorxiv.ts +133 -0
- package/src/web/scrapers/bluesky.ts +262 -0
- package/src/web/scrapers/brew.ts +172 -0
- package/src/web/scrapers/cheatsh.ts +68 -0
- package/src/web/scrapers/chocolatey.ts +196 -0
- package/src/web/scrapers/choosealicense.ts +95 -0
- package/src/web/scrapers/cisa-kev.ts +87 -0
- package/src/web/scrapers/clojars.ts +154 -0
- package/src/web/scrapers/coingecko.ts +177 -0
- package/src/web/scrapers/crates-io.ts +97 -0
- package/src/web/scrapers/crossref.ts +136 -0
- package/src/web/scrapers/devto.ts +147 -0
- package/src/web/scrapers/discogs.ts +306 -0
- package/src/web/scrapers/discourse.ts +197 -0
- package/src/web/scrapers/dockerhub.ts +138 -0
- package/src/web/scrapers/docs-rs.ts +653 -0
- package/src/web/scrapers/fdroid.ts +134 -0
- package/src/web/scrapers/firefox-addons.ts +191 -0
- package/src/web/scrapers/flathub.ts +223 -0
- package/src/web/scrapers/github-gist.ts +58 -0
- package/src/web/scrapers/github.ts +704 -0
- package/src/web/scrapers/gitlab.ts +401 -0
- package/src/web/scrapers/go-pkg.ts +266 -0
- package/src/web/scrapers/hackage.ts +140 -0
- package/src/web/scrapers/hackernews.ts +189 -0
- package/src/web/scrapers/hex.ts +105 -0
- package/src/web/scrapers/huggingface.ts +321 -0
- package/src/web/scrapers/iacr.ts +89 -0
- package/src/web/scrapers/index.ts +252 -0
- package/src/web/scrapers/jetbrains-marketplace.ts +159 -0
- package/src/web/scrapers/lemmy.ts +203 -0
- package/src/web/scrapers/lobsters.ts +175 -0
- package/src/web/scrapers/mastodon.ts +292 -0
- package/src/web/scrapers/maven.ts +138 -0
- package/src/web/scrapers/mdn.ts +173 -0
- package/src/web/scrapers/metacpan.ts +222 -0
- package/src/web/scrapers/musicbrainz.ts +250 -0
- package/src/web/scrapers/npm.ts +98 -0
- package/src/web/scrapers/nuget.ts +183 -0
- package/src/web/scrapers/nvd.ts +222 -0
- package/src/web/scrapers/ollama.ts +239 -0
- package/src/web/scrapers/open-vsx.ts +106 -0
- package/src/web/scrapers/opencorporates.ts +292 -0
- package/src/web/scrapers/openlibrary.ts +336 -0
- package/src/web/scrapers/orcid.ts +286 -0
- package/src/web/scrapers/osv.ts +176 -0
- package/src/web/scrapers/packagist.ts +160 -0
- package/src/web/scrapers/pub-dev.ts +143 -0
- package/src/web/scrapers/pubmed.ts +211 -0
- package/src/web/scrapers/pypi.ts +112 -0
- package/src/web/scrapers/rawg.ts +110 -0
- package/src/web/scrapers/readthedocs.ts +120 -0
- package/src/web/scrapers/reddit.ts +95 -0
- package/src/web/scrapers/repology.ts +251 -0
- package/src/web/scrapers/rfc.ts +201 -0
- package/src/web/scrapers/rubygems.ts +103 -0
- package/src/web/scrapers/searchcode.ts +189 -0
- package/src/web/scrapers/sec-edgar.ts +261 -0
- package/src/web/scrapers/semantic-scholar.ts +171 -0
- package/src/web/scrapers/snapcraft.ts +187 -0
- package/src/web/scrapers/sourcegraph.ts +336 -0
- package/src/web/scrapers/spdx.ts +108 -0
- package/src/web/scrapers/spotify.ts +198 -0
- package/src/web/scrapers/stackoverflow.ts +120 -0
- package/src/web/scrapers/terraform.ts +277 -0
- package/src/web/scrapers/tldr.ts +47 -0
- package/src/web/scrapers/twitter.ts +94 -0
- package/src/web/scrapers/types.ts +397 -0
- package/src/web/scrapers/utils.ts +109 -0
- package/src/web/scrapers/vimeo.ts +133 -0
- package/src/web/scrapers/vscode-marketplace.ts +187 -0
- package/src/web/scrapers/w3c.ts +156 -0
- package/src/web/scrapers/wikidata.ts +344 -0
- package/src/web/scrapers/wikipedia.ts +84 -0
- package/src/web/scrapers/youtube.ts +325 -0
- package/src/web/search/index.ts +292 -0
- package/src/web/search/provider.ts +157 -0
- package/src/web/search/providers/anthropic.ts +318 -0
- package/src/web/search/providers/base.ts +89 -0
- package/src/web/search/providers/brave.ts +152 -0
- package/src/web/search/providers/codex.ts +591 -0
- package/src/web/search/providers/exa.ts +400 -0
- package/src/web/search/providers/gemini.ts +460 -0
- package/src/web/search/providers/jina.ts +111 -0
- package/src/web/search/providers/kagi.ts +86 -0
- package/src/web/search/providers/kimi.ts +196 -0
- package/src/web/search/providers/parallel.ts +225 -0
- package/src/web/search/providers/perplexity.ts +730 -0
- package/src/web/search/providers/searxng.ts +313 -0
- package/src/web/search/providers/synthetic.ts +114 -0
- package/src/web/search/providers/tavily.ts +176 -0
- package/src/web/search/providers/utils.ts +128 -0
- package/src/web/search/providers/zai.ts +333 -0
- package/src/web/search/render.ts +262 -0
- package/src/web/search/types.ts +482 -0
- package/src/web/search/utils.ts +17 -0
- package/src/workspace-tree.ts +286 -0
|
@@ -0,0 +1,3530 @@
|
|
|
1
|
+
import { THINKING_EFFORTS } from "@oh-my-pi/pi-ai";
|
|
2
|
+
import { AUTO_THINKING, getConfiguredThinkingLevelMetadata, getThinkingLevelMetadata } from "../thinking";
|
|
3
|
+
import {
|
|
4
|
+
TINY_MODEL_DEVICE_DEFAULT,
|
|
5
|
+
TINY_MODEL_DEVICE_SETTING_OPTIONS,
|
|
6
|
+
TINY_MODEL_DEVICE_SETTING_VALUES,
|
|
7
|
+
} from "../tiny/device";
|
|
8
|
+
import {
|
|
9
|
+
TINY_MODEL_DTYPE_DEFAULT,
|
|
10
|
+
TINY_MODEL_DTYPE_SETTING_OPTIONS,
|
|
11
|
+
TINY_MODEL_DTYPE_SETTING_VALUES,
|
|
12
|
+
} from "../tiny/dtype";
|
|
13
|
+
import {
|
|
14
|
+
AUTO_THINKING_MODEL_OPTIONS,
|
|
15
|
+
AUTO_THINKING_MODEL_VALUES,
|
|
16
|
+
ONLINE_AUTO_THINKING_MODEL_KEY,
|
|
17
|
+
ONLINE_MEMORY_MODEL_KEY,
|
|
18
|
+
ONLINE_TINY_TITLE_MODEL_KEY,
|
|
19
|
+
TINY_MEMORY_MODEL_OPTIONS,
|
|
20
|
+
TINY_MEMORY_MODEL_VALUES,
|
|
21
|
+
TINY_TITLE_MODEL_OPTIONS,
|
|
22
|
+
TINY_TITLE_MODEL_VALUES,
|
|
23
|
+
} from "../tiny/models";
|
|
24
|
+
import { EDIT_MODES } from "../utils/edit-mode";
|
|
25
|
+
import { SEARCH_PROVIDER_OPTIONS, SEARCH_PROVIDER_PREFERENCES } from "../web/search/types";
|
|
26
|
+
|
|
27
|
+
/** Unified settings schema - single source of truth for all settings.
|
|
28
|
+
* Unified settings schema - single source of truth for all settings.
|
|
29
|
+
*
|
|
30
|
+
* Each setting is defined once here with:
|
|
31
|
+
* - Type and default value
|
|
32
|
+
* - Optional UI metadata (label, description, tab)
|
|
33
|
+
*
|
|
34
|
+
* The Settings singleton provides type-safe path-based access:
|
|
35
|
+
* settings.get("compaction.enabled") // => boolean
|
|
36
|
+
* settings.set("theme.dark", "titanium") // sync, saves in background
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
40
|
+
// Schema Definition Types
|
|
41
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
42
|
+
|
|
43
|
+
export type SettingTab =
|
|
44
|
+
| "appearance"
|
|
45
|
+
| "model"
|
|
46
|
+
| "interaction"
|
|
47
|
+
| "context"
|
|
48
|
+
| "memory"
|
|
49
|
+
| "editing"
|
|
50
|
+
| "tools"
|
|
51
|
+
| "tasks"
|
|
52
|
+
| "providers";
|
|
53
|
+
|
|
54
|
+
/** Tab display metadata - icon is resolved via theme.symbol() */
|
|
55
|
+
export type TabMetadata = { label: string; icon: `tab.${string}` };
|
|
56
|
+
|
|
57
|
+
/** Ordered list of tabs for UI rendering */
|
|
58
|
+
export const SETTING_TABS: SettingTab[] = [
|
|
59
|
+
"appearance",
|
|
60
|
+
"model",
|
|
61
|
+
"interaction",
|
|
62
|
+
"context",
|
|
63
|
+
"memory",
|
|
64
|
+
"editing",
|
|
65
|
+
"tools",
|
|
66
|
+
"tasks",
|
|
67
|
+
"providers",
|
|
68
|
+
];
|
|
69
|
+
|
|
70
|
+
/** Tab display metadata - icon is a symbol key from theme.ts (tab.*) */
|
|
71
|
+
export const TAB_METADATA: Record<SettingTab, { label: string; icon: `tab.${string}` }> = {
|
|
72
|
+
appearance: { label: "Appearance", icon: "tab.appearance" },
|
|
73
|
+
model: { label: "Model", icon: "tab.model" },
|
|
74
|
+
interaction: { label: "Interaction", icon: "tab.interaction" },
|
|
75
|
+
context: { label: "Context", icon: "tab.context" },
|
|
76
|
+
memory: { label: "Memory", icon: "tab.memory" },
|
|
77
|
+
editing: { label: "Editing", icon: "tab.editing" },
|
|
78
|
+
tools: { label: "Tools", icon: "tab.tools" },
|
|
79
|
+
tasks: { label: "Tasks", icon: "tab.tasks" },
|
|
80
|
+
providers: { label: "Providers", icon: "tab.providers" },
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/** Status line segment identifiers */
|
|
84
|
+
export type StatusLineSegmentId =
|
|
85
|
+
| "pi"
|
|
86
|
+
| "model"
|
|
87
|
+
| "mode"
|
|
88
|
+
| "path"
|
|
89
|
+
| "git"
|
|
90
|
+
| "pr"
|
|
91
|
+
| "subagents"
|
|
92
|
+
| "token_in"
|
|
93
|
+
| "token_out"
|
|
94
|
+
| "token_total"
|
|
95
|
+
| "token_rate"
|
|
96
|
+
| "cost"
|
|
97
|
+
| "context_pct"
|
|
98
|
+
| "context_total"
|
|
99
|
+
| "time_spent"
|
|
100
|
+
| "time"
|
|
101
|
+
| "session"
|
|
102
|
+
| "hostname"
|
|
103
|
+
| "cache_read"
|
|
104
|
+
| "cache_write"
|
|
105
|
+
| "cache_hit"
|
|
106
|
+
| "session_name"
|
|
107
|
+
| "usage";
|
|
108
|
+
|
|
109
|
+
/** Submenu choice metadata. */
|
|
110
|
+
export type SubmenuOption<V extends string = string> = {
|
|
111
|
+
value: V;
|
|
112
|
+
label: string;
|
|
113
|
+
description?: string;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
interface UiBase {
|
|
117
|
+
tab: SettingTab;
|
|
118
|
+
label: string;
|
|
119
|
+
description: string;
|
|
120
|
+
/** Condition function name - setting only shown when true */
|
|
121
|
+
condition?: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
interface UiBoolean extends UiBase {}
|
|
125
|
+
|
|
126
|
+
interface UiEnum<T extends readonly string[]> extends UiBase {
|
|
127
|
+
/** Submenu options. When omitted, the enum renders as an inline toggle derived from `values`. */
|
|
128
|
+
options?: ReadonlyArray<SubmenuOption<T[number]>>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
interface UiNumber extends UiBase {
|
|
132
|
+
/** Submenu options. Without options, a numeric setting has no UI representation (intentional hide). */
|
|
133
|
+
options?: ReadonlyArray<SubmenuOption>;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
interface UiString extends UiBase {
|
|
137
|
+
/**
|
|
138
|
+
* Submenu options.
|
|
139
|
+
* - Array → submenu with these choices.
|
|
140
|
+
* - "runtime" → submenu populated by the runtime layer (theme registry, etc.).
|
|
141
|
+
* - Omitted → renders as a free text input.
|
|
142
|
+
*/
|
|
143
|
+
options?: ReadonlyArray<SubmenuOption> | "runtime";
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
/** Wide ui shape exposed to consumers that walk the schema generically. */
|
|
147
|
+
export type AnyUiMetadata = UiBase & {
|
|
148
|
+
options?: ReadonlyArray<SubmenuOption> | "runtime";
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
interface BooleanDef {
|
|
152
|
+
type: "boolean";
|
|
153
|
+
default: boolean | undefined;
|
|
154
|
+
ui?: UiBoolean;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
interface StringDef {
|
|
158
|
+
type: "string";
|
|
159
|
+
default: string | undefined;
|
|
160
|
+
ui?: UiString;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
interface NumberDef {
|
|
164
|
+
type: "number";
|
|
165
|
+
default: number;
|
|
166
|
+
ui?: UiNumber;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
interface EnumDef<T extends readonly string[]> {
|
|
170
|
+
type: "enum";
|
|
171
|
+
values: T;
|
|
172
|
+
default: T[number];
|
|
173
|
+
ui?: UiEnum<T>;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface ArrayDef<T> {
|
|
177
|
+
type: "array";
|
|
178
|
+
default: T[];
|
|
179
|
+
ui?: UiBase;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
interface RecordDef<T> {
|
|
183
|
+
type: "record";
|
|
184
|
+
default: Record<string, T>;
|
|
185
|
+
ui?: UiBase;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
type SettingDef =
|
|
189
|
+
| BooleanDef
|
|
190
|
+
| StringDef
|
|
191
|
+
| NumberDef
|
|
192
|
+
| EnumDef<readonly string[]>
|
|
193
|
+
| ArrayDef<unknown>
|
|
194
|
+
| RecordDef<unknown>;
|
|
195
|
+
|
|
196
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
197
|
+
// Schema Definition
|
|
198
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
199
|
+
|
|
200
|
+
export interface ModelTagDef {
|
|
201
|
+
name: string;
|
|
202
|
+
color?: string;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export interface ModelTagsSettings {
|
|
206
|
+
[key: string]: ModelTagDef;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Typed defaults for array/record settings — named constants avoid `as` casts
|
|
210
|
+
// under `as const` while still letting SettingValue infer the correct element type.
|
|
211
|
+
const EMPTY_STRING_ARRAY: string[] = [];
|
|
212
|
+
const EMPTY_STRING_RECORD: Record<string, string> = {};
|
|
213
|
+
const DEFAULT_CYCLE_ORDER: string[] = ["smol", "default", "slow"];
|
|
214
|
+
const EMPTY_MODEL_TAGS_RECORD: ModelTagsSettings = {};
|
|
215
|
+
const HINDSIGHT_RECALL_TYPES_DEFAULT: string[] = ["world", "experience"];
|
|
216
|
+
export const DEFAULT_BASH_INTERCEPTOR_RULES: BashInterceptorRule[] = [
|
|
217
|
+
{
|
|
218
|
+
pattern: "^\\s*(cat|head|tail|less|more)\\s+",
|
|
219
|
+
tool: "read",
|
|
220
|
+
message: "Use the `read` tool instead of cat/head/tail. It provides better context and handles binary files.",
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
pattern: "^\\s*(grep|rg|ripgrep|ag|ack)\\s+",
|
|
224
|
+
tool: "search",
|
|
225
|
+
message: "Use the `search` tool instead of grep/rg. It respects .gitignore and provides structured output.",
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
pattern: "^\\s*(find|fd|locate)\\s+.*(-name|-iname|-type|--type|-glob)",
|
|
229
|
+
tool: "find",
|
|
230
|
+
message: "Use the `find` tool instead of find/fd. It respects .gitignore and is faster for glob patterns.",
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
pattern: "^\\s*sed\\s+(-i|--in-place)",
|
|
234
|
+
tool: "edit",
|
|
235
|
+
message: "Use the `edit` tool instead of sed -i. It provides diff preview and fuzzy matching.",
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
pattern: "^\\s*perl\\s+.*-[pn]?i",
|
|
239
|
+
tool: "edit",
|
|
240
|
+
message: "Use the `edit` tool instead of perl -i. It provides diff preview and fuzzy matching.",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
pattern: "^\\s*awk\\s+.*-i\\s+inplace",
|
|
244
|
+
tool: "edit",
|
|
245
|
+
message: "Use the `edit` tool instead of awk -i inplace. It provides diff preview and fuzzy matching.",
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
// `>` must sit outside quoted regions (so `echo "a -> b"` passes) and be
|
|
249
|
+
// followed by a plausible filename — including `$VAR` targets; `>|`
|
|
250
|
+
// (clobber) counts as a redirect; `>&2`/`2>&1` style fd duplication is
|
|
251
|
+
// not matched.
|
|
252
|
+
pattern: "^\\s*(echo|printf|cat\\s*<<)\\s+(?:[^\"'>]|\"[^\"]*\"|'[^']*')*(?<!\\|)>{1,2}\\|?\\s*[$\\w./~\"'-]",
|
|
253
|
+
tool: "write",
|
|
254
|
+
message: "Use the `write` tool instead of echo/cat redirection. It handles encoding and provides confirmation.",
|
|
255
|
+
},
|
|
256
|
+
];
|
|
257
|
+
|
|
258
|
+
export const SETTINGS_SCHEMA = {
|
|
259
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
260
|
+
// General settings (no UI)
|
|
261
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
262
|
+
setupVersion: { type: "number", default: 0 },
|
|
263
|
+
|
|
264
|
+
// Auth broker — credentials proxied through a remote `omp auth-broker serve`
|
|
265
|
+
// host. Hidden from the UI; populate via env vars or hand-edited config.yml.
|
|
266
|
+
// Env (`OMP_AUTH_BROKER_URL` / `OMP_AUTH_BROKER_TOKEN`) takes precedence so
|
|
267
|
+
// per-machine overrides remain trivial.
|
|
268
|
+
"auth.broker.url": { type: "string", default: undefined },
|
|
269
|
+
"auth.broker.token": { type: "string", default: undefined },
|
|
270
|
+
|
|
271
|
+
autoResume: {
|
|
272
|
+
type: "boolean",
|
|
273
|
+
default: false,
|
|
274
|
+
ui: {
|
|
275
|
+
tab: "interaction",
|
|
276
|
+
label: "Auto Resume",
|
|
277
|
+
description: "Automatically resume the most recent session in the current directory",
|
|
278
|
+
},
|
|
279
|
+
},
|
|
280
|
+
|
|
281
|
+
// macOS power assertions (caffeinate flags). No-op on other platforms.
|
|
282
|
+
"power.preventIdleSleep": {
|
|
283
|
+
type: "boolean",
|
|
284
|
+
default: true,
|
|
285
|
+
ui: {
|
|
286
|
+
tab: "interaction",
|
|
287
|
+
label: "Prevent Idle Sleep (macOS)",
|
|
288
|
+
description: "caffeinate -i: keep the system awake while a session is open",
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
"power.preventSystemSleep": {
|
|
292
|
+
type: "boolean",
|
|
293
|
+
default: false,
|
|
294
|
+
ui: {
|
|
295
|
+
tab: "interaction",
|
|
296
|
+
label: "Prevent System Sleep on AC (macOS)",
|
|
297
|
+
description: "caffeinate -s: block all system sleep while on AC power",
|
|
298
|
+
},
|
|
299
|
+
},
|
|
300
|
+
"power.declareUserActive": {
|
|
301
|
+
type: "boolean",
|
|
302
|
+
default: false,
|
|
303
|
+
ui: {
|
|
304
|
+
tab: "interaction",
|
|
305
|
+
label: "Declare User Active (macOS)",
|
|
306
|
+
description: "caffeinate -u: keep the display lit and treat the user as active",
|
|
307
|
+
},
|
|
308
|
+
},
|
|
309
|
+
"power.preventDisplaySleep": {
|
|
310
|
+
type: "boolean",
|
|
311
|
+
default: false,
|
|
312
|
+
ui: {
|
|
313
|
+
tab: "interaction",
|
|
314
|
+
label: "Prevent Display Sleep (macOS)",
|
|
315
|
+
description: "caffeinate -d: keep the display from idle-sleeping while a session is open",
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
shellPath: { type: "string", default: undefined },
|
|
319
|
+
|
|
320
|
+
extensions: { type: "array", default: EMPTY_STRING_ARRAY },
|
|
321
|
+
|
|
322
|
+
"marketplace.autoUpdate": {
|
|
323
|
+
type: "enum",
|
|
324
|
+
values: ["off", "notify", "auto"] as const,
|
|
325
|
+
default: "notify",
|
|
326
|
+
ui: {
|
|
327
|
+
tab: "tools",
|
|
328
|
+
label: "Marketplace Auto-Update",
|
|
329
|
+
description: "Check for plugin updates on startup (off/notify/auto)",
|
|
330
|
+
options: [
|
|
331
|
+
{ value: "off", label: "Off", description: "Don't check for plugin updates" },
|
|
332
|
+
{ value: "notify", label: "Notify", description: "Check on startup and notify when updates are available" },
|
|
333
|
+
{ value: "auto", label: "Auto", description: "Check on startup and auto-install updates" },
|
|
334
|
+
],
|
|
335
|
+
},
|
|
336
|
+
},
|
|
337
|
+
|
|
338
|
+
enabledModels: { type: "array", default: EMPTY_STRING_ARRAY },
|
|
339
|
+
|
|
340
|
+
disabledProviders: { type: "array", default: EMPTY_STRING_ARRAY },
|
|
341
|
+
|
|
342
|
+
disabledExtensions: { type: "array", default: EMPTY_STRING_ARRAY },
|
|
343
|
+
|
|
344
|
+
modelRoles: { type: "record", default: EMPTY_STRING_RECORD },
|
|
345
|
+
|
|
346
|
+
modelTags: { type: "record", default: EMPTY_MODEL_TAGS_RECORD },
|
|
347
|
+
|
|
348
|
+
modelProviderOrder: { type: "array", default: EMPTY_STRING_ARRAY },
|
|
349
|
+
|
|
350
|
+
cycleOrder: { type: "array", default: DEFAULT_CYCLE_ORDER },
|
|
351
|
+
|
|
352
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
353
|
+
// Appearance
|
|
354
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
355
|
+
|
|
356
|
+
// Theme
|
|
357
|
+
"theme.dark": {
|
|
358
|
+
type: "string",
|
|
359
|
+
default: "titanium",
|
|
360
|
+
ui: {
|
|
361
|
+
tab: "appearance",
|
|
362
|
+
label: "Dark Theme",
|
|
363
|
+
description: "Theme used when terminal has dark background",
|
|
364
|
+
options: "runtime",
|
|
365
|
+
},
|
|
366
|
+
},
|
|
367
|
+
|
|
368
|
+
"theme.light": {
|
|
369
|
+
type: "string",
|
|
370
|
+
default: "light",
|
|
371
|
+
ui: {
|
|
372
|
+
tab: "appearance",
|
|
373
|
+
label: "Light Theme",
|
|
374
|
+
description: "Theme used when terminal has light background",
|
|
375
|
+
options: "runtime",
|
|
376
|
+
},
|
|
377
|
+
},
|
|
378
|
+
|
|
379
|
+
symbolPreset: {
|
|
380
|
+
type: "enum",
|
|
381
|
+
values: ["unicode", "nerd", "ascii"] as const,
|
|
382
|
+
default: "unicode",
|
|
383
|
+
ui: {
|
|
384
|
+
tab: "appearance",
|
|
385
|
+
label: "Symbol Preset",
|
|
386
|
+
description: "Icon/symbol style",
|
|
387
|
+
options: [
|
|
388
|
+
{ value: "unicode", label: "Unicode", description: "Standard symbols (default)" },
|
|
389
|
+
{ value: "nerd", label: "Nerd Font", description: "Requires Nerd Font" },
|
|
390
|
+
{ value: "ascii", label: "ASCII", description: "Maximum compatibility" },
|
|
391
|
+
],
|
|
392
|
+
},
|
|
393
|
+
},
|
|
394
|
+
|
|
395
|
+
colorBlindMode: {
|
|
396
|
+
type: "boolean",
|
|
397
|
+
default: false,
|
|
398
|
+
ui: {
|
|
399
|
+
tab: "appearance",
|
|
400
|
+
label: "Color-Blind Mode",
|
|
401
|
+
description: "Use blue instead of green for diff additions",
|
|
402
|
+
},
|
|
403
|
+
},
|
|
404
|
+
|
|
405
|
+
// Status line
|
|
406
|
+
"statusLine.preset": {
|
|
407
|
+
type: "enum",
|
|
408
|
+
values: ["default", "minimal", "compact", "full", "nerd", "ascii", "custom"] as const,
|
|
409
|
+
default: "default",
|
|
410
|
+
ui: {
|
|
411
|
+
tab: "appearance",
|
|
412
|
+
label: "Status Line Preset",
|
|
413
|
+
description: "Pre-built status line configurations",
|
|
414
|
+
options: [
|
|
415
|
+
{ value: "default", label: "Default", description: "Model, path, git, context, tokens, cost" },
|
|
416
|
+
{ value: "minimal", label: "Minimal", description: "Path and git only" },
|
|
417
|
+
{ value: "compact", label: "Compact", description: "Model, git, cost, context" },
|
|
418
|
+
{ value: "full", label: "Full", description: "All segments including time" },
|
|
419
|
+
{ value: "nerd", label: "Nerd", description: "Maximum info with Nerd Font icons" },
|
|
420
|
+
{ value: "ascii", label: "ASCII", description: "No special characters" },
|
|
421
|
+
{ value: "custom", label: "Custom", description: "User-defined segments" },
|
|
422
|
+
],
|
|
423
|
+
},
|
|
424
|
+
},
|
|
425
|
+
|
|
426
|
+
"statusLine.separator": {
|
|
427
|
+
type: "enum",
|
|
428
|
+
values: ["powerline", "powerline-thin", "slash", "pipe", "block", "none", "ascii"] as const,
|
|
429
|
+
default: "powerline-thin",
|
|
430
|
+
ui: {
|
|
431
|
+
tab: "appearance",
|
|
432
|
+
label: "Status Line Separator",
|
|
433
|
+
description: "Style of separators between segments",
|
|
434
|
+
options: [
|
|
435
|
+
{ value: "powerline", label: "Powerline", description: "Solid arrows (Nerd Font)" },
|
|
436
|
+
{ value: "powerline-thin", label: "Thin chevron", description: "Thin arrows (Nerd Font)" },
|
|
437
|
+
{ value: "slash", label: "Slash", description: "Forward slashes" },
|
|
438
|
+
{ value: "pipe", label: "Pipe", description: "Vertical pipes" },
|
|
439
|
+
{ value: "block", label: "Block", description: "Solid blocks" },
|
|
440
|
+
{ value: "none", label: "None", description: "Space only" },
|
|
441
|
+
{ value: "ascii", label: "ASCII", description: "Greater-than signs" },
|
|
442
|
+
],
|
|
443
|
+
},
|
|
444
|
+
},
|
|
445
|
+
|
|
446
|
+
"statusLine.sessionAccent": {
|
|
447
|
+
type: "boolean",
|
|
448
|
+
default: true,
|
|
449
|
+
ui: {
|
|
450
|
+
tab: "appearance",
|
|
451
|
+
label: "Session Accent",
|
|
452
|
+
description: "Use the session name color for the editor border and status line gap",
|
|
453
|
+
},
|
|
454
|
+
},
|
|
455
|
+
"tools.artifactSpillThreshold": {
|
|
456
|
+
type: "number",
|
|
457
|
+
default: 50,
|
|
458
|
+
ui: {
|
|
459
|
+
tab: "tools",
|
|
460
|
+
label: "Artifact spill threshold (KB)",
|
|
461
|
+
description: "Tool output above this size is saved as an artifact; tail is kept inline",
|
|
462
|
+
options: [
|
|
463
|
+
{ value: "1", label: "1 KB", description: "~250 tokens" },
|
|
464
|
+
{ value: "2.5", label: "2.5 KB", description: "~625 tokens" },
|
|
465
|
+
{ value: "5", label: "5 KB", description: "~1.25K tokens" },
|
|
466
|
+
{ value: "10", label: "10 KB", description: "~2.5K tokens" },
|
|
467
|
+
{ value: "20", label: "20 KB", description: "~5K tokens" },
|
|
468
|
+
{ value: "30", label: "30 KB", description: "~7.5K tokens" },
|
|
469
|
+
{ value: "50", label: "50 KB", description: "Default; ~12.5K tokens" },
|
|
470
|
+
{ value: "75", label: "75 KB", description: "~19K tokens" },
|
|
471
|
+
{ value: "100", label: "100 KB", description: "~25K tokens" },
|
|
472
|
+
{ value: "200", label: "200 KB", description: "~50K tokens" },
|
|
473
|
+
{ value: "500", label: "500 KB", description: "~125K tokens" },
|
|
474
|
+
{ value: "1000", label: "1 MB", description: "~250K tokens" },
|
|
475
|
+
],
|
|
476
|
+
},
|
|
477
|
+
},
|
|
478
|
+
"tools.artifactTailBytes": {
|
|
479
|
+
type: "number",
|
|
480
|
+
default: 20,
|
|
481
|
+
ui: {
|
|
482
|
+
tab: "tools",
|
|
483
|
+
label: "Artifact tail size (KB)",
|
|
484
|
+
description: "Amount of tail content kept inline when output spills to artifact",
|
|
485
|
+
options: [
|
|
486
|
+
{ value: "1", label: "1 KB", description: "~250 tokens" },
|
|
487
|
+
{ value: "2.5", label: "2.5 KB", description: "~625 tokens" },
|
|
488
|
+
{ value: "5", label: "5 KB", description: "~1.25K tokens" },
|
|
489
|
+
{ value: "10", label: "10 KB", description: "~2.5K tokens" },
|
|
490
|
+
{ value: "20", label: "20 KB", description: "Default; ~5K tokens" },
|
|
491
|
+
{ value: "50", label: "50 KB", description: "~12.5K tokens" },
|
|
492
|
+
{ value: "100", label: "100 KB", description: "~25K tokens" },
|
|
493
|
+
{ value: "200", label: "200 KB", description: "~50K tokens" },
|
|
494
|
+
],
|
|
495
|
+
},
|
|
496
|
+
},
|
|
497
|
+
"tools.artifactHeadBytes": {
|
|
498
|
+
type: "number",
|
|
499
|
+
default: 20,
|
|
500
|
+
ui: {
|
|
501
|
+
tab: "tools",
|
|
502
|
+
label: "Artifact head size (KB)",
|
|
503
|
+
description:
|
|
504
|
+
"Amount of head content kept inline alongside the tail when output spills to artifact (middle elision). 0 disables — keep tail only.",
|
|
505
|
+
options: [
|
|
506
|
+
{ value: "0", label: "0 KB", description: "Disabled; tail-only truncation" },
|
|
507
|
+
{ value: "1", label: "1 KB", description: "~250 tokens" },
|
|
508
|
+
{ value: "2.5", label: "2.5 KB", description: "~625 tokens" },
|
|
509
|
+
{ value: "5", label: "5 KB", description: "~1.25K tokens" },
|
|
510
|
+
{ value: "10", label: "10 KB", description: "~2.5K tokens" },
|
|
511
|
+
{ value: "20", label: "20 KB", description: "Default; ~5K tokens" },
|
|
512
|
+
{ value: "50", label: "50 KB", description: "~12.5K tokens" },
|
|
513
|
+
{ value: "100", label: "100 KB", description: "~25K tokens" },
|
|
514
|
+
{ value: "200", label: "200 KB", description: "~50K tokens" },
|
|
515
|
+
],
|
|
516
|
+
},
|
|
517
|
+
},
|
|
518
|
+
"tools.outputMaxColumns": {
|
|
519
|
+
type: "number",
|
|
520
|
+
default: 768,
|
|
521
|
+
ui: {
|
|
522
|
+
tab: "tools",
|
|
523
|
+
label: "Output column cap",
|
|
524
|
+
description:
|
|
525
|
+
"Per-line byte cap for streaming tool outputs (bash, ssh, python, js eval) and `read`. Lines wider than this are ellipsis-truncated; remaining bytes up to the next newline are dropped. 0 disables.",
|
|
526
|
+
options: [
|
|
527
|
+
{ value: "0", label: "Off", description: "No per-line cap" },
|
|
528
|
+
{ value: "256", label: "256", description: "Tight" },
|
|
529
|
+
{ value: "512", label: "512" },
|
|
530
|
+
{ value: "768", label: "768", description: "Default" },
|
|
531
|
+
{ value: "1024", label: "1024" },
|
|
532
|
+
{ value: "2048", label: "2048" },
|
|
533
|
+
{ value: "4096", label: "4096", description: "Loose" },
|
|
534
|
+
],
|
|
535
|
+
},
|
|
536
|
+
},
|
|
537
|
+
"tools.artifactTailLines": {
|
|
538
|
+
type: "number",
|
|
539
|
+
default: 500,
|
|
540
|
+
ui: {
|
|
541
|
+
tab: "tools",
|
|
542
|
+
label: "Artifact tail lines",
|
|
543
|
+
description: "Maximum lines of tail content kept inline when output spills to artifact",
|
|
544
|
+
options: [
|
|
545
|
+
{ value: "50", label: "50 lines", description: "~250 tokens" },
|
|
546
|
+
{ value: "100", label: "100 lines", description: "~500 tokens" },
|
|
547
|
+
{ value: "250", label: "250 lines", description: "~1.25K tokens" },
|
|
548
|
+
{ value: "500", label: "500 lines", description: "Default; ~2.5K tokens" },
|
|
549
|
+
{ value: "1000", label: "1000 lines", description: "~5K tokens" },
|
|
550
|
+
{ value: "2000", label: "2000 lines", description: "~10K tokens" },
|
|
551
|
+
{ value: "5000", label: "5000 lines", description: "~25K tokens" },
|
|
552
|
+
],
|
|
553
|
+
},
|
|
554
|
+
},
|
|
555
|
+
|
|
556
|
+
"statusLine.showHookStatus": {
|
|
557
|
+
type: "boolean",
|
|
558
|
+
default: true,
|
|
559
|
+
ui: {
|
|
560
|
+
tab: "appearance",
|
|
561
|
+
label: "Show Hook Status",
|
|
562
|
+
description: "Display hook status messages below status line",
|
|
563
|
+
},
|
|
564
|
+
},
|
|
565
|
+
|
|
566
|
+
"statusLine.leftSegments": { type: "array", default: [] as StatusLineSegmentId[] },
|
|
567
|
+
|
|
568
|
+
"statusLine.rightSegments": { type: "array", default: [] as StatusLineSegmentId[] },
|
|
569
|
+
|
|
570
|
+
"statusLine.segmentOptions": { type: "record", default: {} as Record<string, unknown> },
|
|
571
|
+
|
|
572
|
+
// Images and terminal
|
|
573
|
+
"terminal.showImages": {
|
|
574
|
+
type: "boolean",
|
|
575
|
+
default: true,
|
|
576
|
+
ui: {
|
|
577
|
+
tab: "appearance",
|
|
578
|
+
label: "Show Inline Images",
|
|
579
|
+
description: "Render images inline in terminal",
|
|
580
|
+
condition: "hasImageProtocol",
|
|
581
|
+
},
|
|
582
|
+
},
|
|
583
|
+
|
|
584
|
+
"images.autoResize": {
|
|
585
|
+
type: "boolean",
|
|
586
|
+
default: true,
|
|
587
|
+
ui: {
|
|
588
|
+
tab: "appearance",
|
|
589
|
+
label: "Auto-Resize Images",
|
|
590
|
+
description: "Resize large images to 2000x2000 max for better model compatibility",
|
|
591
|
+
},
|
|
592
|
+
},
|
|
593
|
+
|
|
594
|
+
"images.blockImages": {
|
|
595
|
+
type: "boolean",
|
|
596
|
+
default: false,
|
|
597
|
+
ui: { tab: "appearance", label: "Block Images", description: "Prevent images from being sent to LLM providers" },
|
|
598
|
+
},
|
|
599
|
+
|
|
600
|
+
"tui.maxInlineImageColumns": {
|
|
601
|
+
type: "number",
|
|
602
|
+
default: 100,
|
|
603
|
+
description:
|
|
604
|
+
"Maximum width in terminal columns for inline images (default 100). Set to 0 for unlimited (bounded only by terminal width).",
|
|
605
|
+
},
|
|
606
|
+
|
|
607
|
+
"tui.maxInlineImageRows": {
|
|
608
|
+
type: "number",
|
|
609
|
+
default: 20,
|
|
610
|
+
description:
|
|
611
|
+
"Maximum height in terminal rows for inline images (default 20). Set to 0 to use only the viewport-based limit (60% of terminal height).",
|
|
612
|
+
},
|
|
613
|
+
|
|
614
|
+
"tui.maxInlineImages": {
|
|
615
|
+
type: "number",
|
|
616
|
+
default: 8,
|
|
617
|
+
description:
|
|
618
|
+
"Maximum number of inline images kept as live terminal graphics (default 8). Older images fall back to a text placeholder via a full redraw once the limit is exceeded. Set to 0 to keep every image (no limit).",
|
|
619
|
+
},
|
|
620
|
+
|
|
621
|
+
"tui.textSizing": {
|
|
622
|
+
type: "boolean",
|
|
623
|
+
default: false,
|
|
624
|
+
ui: {
|
|
625
|
+
tab: "appearance",
|
|
626
|
+
label: "Large Headings (Kitty)",
|
|
627
|
+
description:
|
|
628
|
+
"Render Markdown H1 headings at 2x scale using Kitty's OSC 66 text-sizing protocol. Only takes effect on Kitty terminals; ignored everywhere else. Off by default.",
|
|
629
|
+
},
|
|
630
|
+
},
|
|
631
|
+
|
|
632
|
+
"tui.hyperlinks": {
|
|
633
|
+
type: "enum",
|
|
634
|
+
values: ["off", "auto", "always"] as const,
|
|
635
|
+
default: "auto",
|
|
636
|
+
ui: {
|
|
637
|
+
tab: "appearance",
|
|
638
|
+
label: "Terminal Hyperlinks",
|
|
639
|
+
description:
|
|
640
|
+
"Wrap paths and URLs in OSC 8 hyperlinks for terminal-native click-to-open (auto: detect support; off: never; always: unconditional)",
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
// Display rendering
|
|
644
|
+
"display.tabWidth": {
|
|
645
|
+
type: "number",
|
|
646
|
+
default: 3,
|
|
647
|
+
},
|
|
648
|
+
|
|
649
|
+
"display.shimmer": {
|
|
650
|
+
type: "enum",
|
|
651
|
+
values: ["classic", "kitt", "disabled"] as const,
|
|
652
|
+
default: "classic",
|
|
653
|
+
ui: {
|
|
654
|
+
tab: "appearance",
|
|
655
|
+
label: "Shimmer",
|
|
656
|
+
description: "Animation style for working/loading messages",
|
|
657
|
+
options: [
|
|
658
|
+
{ value: "classic", label: "Classic", description: "Soft cosine wave sweeping across the text" },
|
|
659
|
+
{ value: "kitt", label: "KITT Scanner", description: "Knight Rider 1982 red light bouncing left-right" },
|
|
660
|
+
{ value: "disabled", label: "Disabled", description: "No animation; static muted text" },
|
|
661
|
+
],
|
|
662
|
+
},
|
|
663
|
+
},
|
|
664
|
+
|
|
665
|
+
"display.smoothStreaming": {
|
|
666
|
+
type: "boolean",
|
|
667
|
+
default: true,
|
|
668
|
+
ui: {
|
|
669
|
+
tab: "appearance",
|
|
670
|
+
label: "Smooth Streaming",
|
|
671
|
+
description: "Reveal assistant text smoothly while streamed chunks arrive",
|
|
672
|
+
},
|
|
673
|
+
},
|
|
674
|
+
|
|
675
|
+
"display.showTokenUsage": {
|
|
676
|
+
type: "boolean",
|
|
677
|
+
default: false,
|
|
678
|
+
ui: {
|
|
679
|
+
tab: "appearance",
|
|
680
|
+
label: "Show Token Usage",
|
|
681
|
+
description: "Show per-turn token usage on assistant messages",
|
|
682
|
+
},
|
|
683
|
+
},
|
|
684
|
+
|
|
685
|
+
showHardwareCursor: {
|
|
686
|
+
type: "boolean",
|
|
687
|
+
default: true, // will be computed based on platform if undefined
|
|
688
|
+
ui: { tab: "appearance", label: "Show Hardware Cursor", description: "Show terminal cursor for IME support" },
|
|
689
|
+
},
|
|
690
|
+
|
|
691
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
692
|
+
// Model
|
|
693
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
694
|
+
|
|
695
|
+
// Reasoning and prompts
|
|
696
|
+
defaultThinkingLevel: {
|
|
697
|
+
type: "enum",
|
|
698
|
+
values: [...THINKING_EFFORTS, AUTO_THINKING],
|
|
699
|
+
default: "high",
|
|
700
|
+
ui: {
|
|
701
|
+
tab: "model",
|
|
702
|
+
label: "Thinking Level",
|
|
703
|
+
description: "Reasoning depth for thinking-capable models",
|
|
704
|
+
options: [
|
|
705
|
+
getConfiguredThinkingLevelMetadata(AUTO_THINKING),
|
|
706
|
+
...THINKING_EFFORTS.map(getThinkingLevelMetadata),
|
|
707
|
+
],
|
|
708
|
+
},
|
|
709
|
+
},
|
|
710
|
+
|
|
711
|
+
hideThinkingBlock: {
|
|
712
|
+
type: "boolean",
|
|
713
|
+
default: false,
|
|
714
|
+
ui: { tab: "model", label: "Hide Thinking Blocks", description: "Hide thinking blocks in assistant responses" },
|
|
715
|
+
},
|
|
716
|
+
|
|
717
|
+
repeatToolDescriptions: {
|
|
718
|
+
type: "boolean",
|
|
719
|
+
default: false,
|
|
720
|
+
ui: {
|
|
721
|
+
tab: "model",
|
|
722
|
+
label: "Repeat Tool Descriptions",
|
|
723
|
+
description: "Render full tool descriptions in the system prompt instead of a tool name list",
|
|
724
|
+
},
|
|
725
|
+
},
|
|
726
|
+
|
|
727
|
+
includeModelInPrompt: {
|
|
728
|
+
type: "boolean",
|
|
729
|
+
default: true,
|
|
730
|
+
ui: {
|
|
731
|
+
tab: "model",
|
|
732
|
+
label: "Include Model In Prompt",
|
|
733
|
+
description: "Surface the active model identifier in the system prompt so the agent knows which model it is",
|
|
734
|
+
},
|
|
735
|
+
},
|
|
736
|
+
|
|
737
|
+
// Sampling
|
|
738
|
+
temperature: {
|
|
739
|
+
type: "number",
|
|
740
|
+
default: -1,
|
|
741
|
+
ui: {
|
|
742
|
+
tab: "model",
|
|
743
|
+
label: "Temperature",
|
|
744
|
+
description: "Sampling temperature (0 = deterministic, 1 = creative, -1 = provider default)",
|
|
745
|
+
options: [
|
|
746
|
+
{ value: "-1", label: "Default", description: "Use provider default" },
|
|
747
|
+
{ value: "0", label: "0", description: "Deterministic" },
|
|
748
|
+
{ value: "0.2", label: "0.2", description: "Focused" },
|
|
749
|
+
{ value: "0.5", label: "0.5", description: "Balanced" },
|
|
750
|
+
{ value: "0.7", label: "0.7", description: "Creative" },
|
|
751
|
+
{ value: "1", label: "1", description: "Maximum variety" },
|
|
752
|
+
],
|
|
753
|
+
},
|
|
754
|
+
},
|
|
755
|
+
|
|
756
|
+
topP: {
|
|
757
|
+
type: "number",
|
|
758
|
+
default: -1,
|
|
759
|
+
ui: {
|
|
760
|
+
tab: "model",
|
|
761
|
+
label: "Top P",
|
|
762
|
+
description: "Nucleus sampling cutoff (0-1, -1 = provider default)",
|
|
763
|
+
options: [
|
|
764
|
+
{ value: "-1", label: "Default", description: "Use provider default" },
|
|
765
|
+
{ value: "0.1", label: "0.1", description: "Very focused" },
|
|
766
|
+
{ value: "0.3", label: "0.3", description: "Focused" },
|
|
767
|
+
{ value: "0.5", label: "0.5", description: "Balanced" },
|
|
768
|
+
{ value: "0.9", label: "0.9", description: "Broad" },
|
|
769
|
+
{ value: "1", label: "1", description: "No nucleus filtering" },
|
|
770
|
+
],
|
|
771
|
+
},
|
|
772
|
+
},
|
|
773
|
+
|
|
774
|
+
topK: {
|
|
775
|
+
type: "number",
|
|
776
|
+
default: -1,
|
|
777
|
+
ui: {
|
|
778
|
+
tab: "model",
|
|
779
|
+
label: "Top K",
|
|
780
|
+
description: "Sample from top-K tokens (-1 = provider default)",
|
|
781
|
+
options: [
|
|
782
|
+
{ value: "-1", label: "Default", description: "Use provider default" },
|
|
783
|
+
{ value: "1", label: "1", description: "Greedy top token" },
|
|
784
|
+
{ value: "20", label: "20", description: "Focused" },
|
|
785
|
+
{ value: "40", label: "40", description: "Balanced" },
|
|
786
|
+
{ value: "100", label: "100", description: "Broad" },
|
|
787
|
+
],
|
|
788
|
+
},
|
|
789
|
+
},
|
|
790
|
+
|
|
791
|
+
minP: {
|
|
792
|
+
type: "number",
|
|
793
|
+
default: -1,
|
|
794
|
+
ui: {
|
|
795
|
+
tab: "model",
|
|
796
|
+
label: "Min P",
|
|
797
|
+
description: "Minimum probability threshold (0-1, -1 = provider default)",
|
|
798
|
+
options: [
|
|
799
|
+
{ value: "-1", label: "Default", description: "Use provider default" },
|
|
800
|
+
{ value: "0.01", label: "0.01", description: "Very permissive" },
|
|
801
|
+
{ value: "0.05", label: "0.05", description: "Balanced" },
|
|
802
|
+
{ value: "0.1", label: "0.1", description: "Strict" },
|
|
803
|
+
],
|
|
804
|
+
},
|
|
805
|
+
},
|
|
806
|
+
|
|
807
|
+
presencePenalty: {
|
|
808
|
+
type: "number",
|
|
809
|
+
default: -1,
|
|
810
|
+
ui: {
|
|
811
|
+
tab: "model",
|
|
812
|
+
label: "Presence Penalty",
|
|
813
|
+
description: "Penalty for introducing already-present tokens (-1 = provider default)",
|
|
814
|
+
options: [
|
|
815
|
+
{ value: "-1", label: "Default", description: "Use provider default" },
|
|
816
|
+
{ value: "0", label: "0", description: "No penalty" },
|
|
817
|
+
{ value: "0.5", label: "0.5", description: "Mild novelty" },
|
|
818
|
+
{ value: "1", label: "1", description: "Encourage novelty" },
|
|
819
|
+
{ value: "2", label: "2", description: "Strong novelty" },
|
|
820
|
+
],
|
|
821
|
+
},
|
|
822
|
+
},
|
|
823
|
+
|
|
824
|
+
repetitionPenalty: {
|
|
825
|
+
type: "number",
|
|
826
|
+
default: -1,
|
|
827
|
+
ui: {
|
|
828
|
+
tab: "model",
|
|
829
|
+
label: "Repetition Penalty",
|
|
830
|
+
description: "Penalty for repeated tokens (-1 = provider default)",
|
|
831
|
+
options: [
|
|
832
|
+
{ value: "-1", label: "Default", description: "Use provider default" },
|
|
833
|
+
{ value: "0.8", label: "0.8", description: "Allow repetition" },
|
|
834
|
+
{ value: "1", label: "1", description: "No penalty" },
|
|
835
|
+
{ value: "1.1", label: "1.1", description: "Mild penalty" },
|
|
836
|
+
{ value: "1.2", label: "1.2", description: "Balanced" },
|
|
837
|
+
{ value: "1.5", label: "1.5", description: "Strong penalty" },
|
|
838
|
+
],
|
|
839
|
+
},
|
|
840
|
+
},
|
|
841
|
+
|
|
842
|
+
serviceTier: {
|
|
843
|
+
type: "enum",
|
|
844
|
+
values: ["none", "auto", "default", "flex", "scale", "priority", "openai-only", "claude-only"] as const,
|
|
845
|
+
default: "none",
|
|
846
|
+
ui: {
|
|
847
|
+
tab: "model",
|
|
848
|
+
label: "Service Tier",
|
|
849
|
+
description:
|
|
850
|
+
'Processing priority hint (none = omit). OpenAI accepts the tier values directly; Anthropic realizes `priority` as `speed: "fast"` on supported Opus models. Scoped values target one family.',
|
|
851
|
+
options: [
|
|
852
|
+
{ value: "none", label: "None", description: "Omit service_tier parameter" },
|
|
853
|
+
{ value: "auto", label: "Auto", description: "Use provider default tier selection (OpenAI)" },
|
|
854
|
+
{ value: "default", label: "Default", description: "Standard priority processing (OpenAI)" },
|
|
855
|
+
{ value: "flex", label: "Flex", description: "Flexible capacity tier when available (OpenAI)" },
|
|
856
|
+
{ value: "scale", label: "Scale", description: "Scale Tier credits when available (OpenAI)" },
|
|
857
|
+
{
|
|
858
|
+
value: "priority",
|
|
859
|
+
label: "Priority",
|
|
860
|
+
description: "Priority on every supported provider (OpenAI `service_tier`, Anthropic fast mode)",
|
|
861
|
+
},
|
|
862
|
+
{
|
|
863
|
+
value: "openai-only",
|
|
864
|
+
label: "Priority (OpenAI only)",
|
|
865
|
+
description: "Priority on OpenAI/OpenAI-Codex requests; ignored elsewhere",
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
value: "claude-only",
|
|
869
|
+
label: "Priority (Claude only)",
|
|
870
|
+
description: "Anthropic fast mode on direct Claude requests; ignored elsewhere (incl. Bedrock/Vertex)",
|
|
871
|
+
},
|
|
872
|
+
],
|
|
873
|
+
},
|
|
874
|
+
},
|
|
875
|
+
|
|
876
|
+
// Retries
|
|
877
|
+
"retry.enabled": { type: "boolean", default: true },
|
|
878
|
+
|
|
879
|
+
"retry.maxRetries": {
|
|
880
|
+
type: "number",
|
|
881
|
+
default: 10,
|
|
882
|
+
ui: {
|
|
883
|
+
tab: "model",
|
|
884
|
+
label: "Retry Attempts",
|
|
885
|
+
description: "Maximum retry attempts on API errors",
|
|
886
|
+
options: [
|
|
887
|
+
{ value: "1", label: "1 retry" },
|
|
888
|
+
{ value: "2", label: "2 retries" },
|
|
889
|
+
{ value: "3", label: "3 retries" },
|
|
890
|
+
{ value: "5", label: "5 retries" },
|
|
891
|
+
{ value: "10", label: "10 retries" },
|
|
892
|
+
],
|
|
893
|
+
},
|
|
894
|
+
},
|
|
895
|
+
|
|
896
|
+
"retry.baseDelayMs": { type: "number", default: 500 },
|
|
897
|
+
"retry.maxDelayMs": {
|
|
898
|
+
type: "number",
|
|
899
|
+
default: 5 * 60 * 1000,
|
|
900
|
+
ui: {
|
|
901
|
+
tab: "model",
|
|
902
|
+
label: "Max Retry Delay",
|
|
903
|
+
description:
|
|
904
|
+
"Maximum wait between retries, in ms. When the provider asks us to wait longer than this and no credential or model fallback succeeds, the request fails fast instead of sleeping (e.g. 3-hour Anthropic rate-limit windows).",
|
|
905
|
+
},
|
|
906
|
+
},
|
|
907
|
+
"retry.modelFallback": {
|
|
908
|
+
type: "boolean",
|
|
909
|
+
default: true,
|
|
910
|
+
ui: {
|
|
911
|
+
tab: "model",
|
|
912
|
+
label: "Retry Model Fallback",
|
|
913
|
+
description: "Allow retry recovery to switch to configured fallback models",
|
|
914
|
+
},
|
|
915
|
+
},
|
|
916
|
+
"retry.fallbackChains": { type: "record", default: {} as Record<string, string[]> },
|
|
917
|
+
"retry.fallbackRevertPolicy": {
|
|
918
|
+
type: "enum",
|
|
919
|
+
values: ["cooldown-expiry", "never"] as const,
|
|
920
|
+
default: "cooldown-expiry",
|
|
921
|
+
ui: {
|
|
922
|
+
tab: "model",
|
|
923
|
+
label: "Fallback Revert Policy",
|
|
924
|
+
description: "When to return to the primary model after a fallback",
|
|
925
|
+
options: [
|
|
926
|
+
{
|
|
927
|
+
value: "cooldown-expiry",
|
|
928
|
+
label: "Cooldown expiry",
|
|
929
|
+
description: "Return to the primary model after its suppression window ends",
|
|
930
|
+
},
|
|
931
|
+
{ value: "never", label: "Never", description: "Stay on the fallback model until manually changed" },
|
|
932
|
+
],
|
|
933
|
+
},
|
|
934
|
+
},
|
|
935
|
+
|
|
936
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
937
|
+
// Interaction
|
|
938
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
939
|
+
|
|
940
|
+
// Conversation flow
|
|
941
|
+
steeringMode: {
|
|
942
|
+
type: "enum",
|
|
943
|
+
values: ["all", "one-at-a-time"] as const,
|
|
944
|
+
default: "one-at-a-time",
|
|
945
|
+
ui: {
|
|
946
|
+
tab: "interaction",
|
|
947
|
+
label: "Steering Mode",
|
|
948
|
+
description: "How to process queued messages while agent is working",
|
|
949
|
+
},
|
|
950
|
+
},
|
|
951
|
+
|
|
952
|
+
followUpMode: {
|
|
953
|
+
type: "enum",
|
|
954
|
+
values: ["all", "one-at-a-time"] as const,
|
|
955
|
+
default: "one-at-a-time",
|
|
956
|
+
ui: {
|
|
957
|
+
tab: "interaction",
|
|
958
|
+
label: "Follow-Up Mode",
|
|
959
|
+
description: "How to drain follow-up messages after a turn completes",
|
|
960
|
+
},
|
|
961
|
+
},
|
|
962
|
+
|
|
963
|
+
interruptMode: {
|
|
964
|
+
type: "enum",
|
|
965
|
+
values: ["immediate", "wait"] as const,
|
|
966
|
+
default: "immediate",
|
|
967
|
+
ui: {
|
|
968
|
+
tab: "interaction",
|
|
969
|
+
label: "Interrupt Mode",
|
|
970
|
+
description: "When steering messages interrupt tool execution",
|
|
971
|
+
},
|
|
972
|
+
},
|
|
973
|
+
|
|
974
|
+
"loop.mode": {
|
|
975
|
+
type: "enum",
|
|
976
|
+
values: ["prompt", "compact", "reset"] as const,
|
|
977
|
+
default: "prompt",
|
|
978
|
+
ui: {
|
|
979
|
+
tab: "interaction",
|
|
980
|
+
label: "Loop Mode",
|
|
981
|
+
description: "What happens between /loop iterations before re-submitting the prompt",
|
|
982
|
+
options: [
|
|
983
|
+
{
|
|
984
|
+
value: "prompt",
|
|
985
|
+
label: "Prompt",
|
|
986
|
+
description: "Re-submit the prompt as a follow-up message (current behavior)",
|
|
987
|
+
},
|
|
988
|
+
{
|
|
989
|
+
value: "compact",
|
|
990
|
+
label: "Compact",
|
|
991
|
+
description: "Compact the session context, then re-submit the prompt",
|
|
992
|
+
},
|
|
993
|
+
{ value: "reset", label: "Reset", description: "Start a new session, then re-submit the prompt" },
|
|
994
|
+
],
|
|
995
|
+
},
|
|
996
|
+
},
|
|
997
|
+
|
|
998
|
+
// Input and startup
|
|
999
|
+
doubleEscapeAction: {
|
|
1000
|
+
type: "enum",
|
|
1001
|
+
values: ["branch", "tree", "none"] as const,
|
|
1002
|
+
default: "tree",
|
|
1003
|
+
ui: {
|
|
1004
|
+
tab: "interaction",
|
|
1005
|
+
label: "Double-Escape Action",
|
|
1006
|
+
description: "Action when pressing Escape twice with empty editor",
|
|
1007
|
+
},
|
|
1008
|
+
},
|
|
1009
|
+
|
|
1010
|
+
treeFilterMode: {
|
|
1011
|
+
type: "enum",
|
|
1012
|
+
values: ["default", "no-tools", "user-only", "labeled-only", "all"] as const,
|
|
1013
|
+
default: "default",
|
|
1014
|
+
ui: {
|
|
1015
|
+
tab: "interaction",
|
|
1016
|
+
label: "Session Tree Filter",
|
|
1017
|
+
description: "Default filter mode when opening the session tree",
|
|
1018
|
+
},
|
|
1019
|
+
},
|
|
1020
|
+
|
|
1021
|
+
autocompleteMaxVisible: {
|
|
1022
|
+
type: "number",
|
|
1023
|
+
default: 5,
|
|
1024
|
+
ui: {
|
|
1025
|
+
tab: "interaction",
|
|
1026
|
+
label: "Autocomplete Items",
|
|
1027
|
+
description: "Max visible items in autocomplete dropdown (3-20)",
|
|
1028
|
+
options: [
|
|
1029
|
+
{ value: "3", label: "3 items" },
|
|
1030
|
+
{ value: "5", label: "5 items" },
|
|
1031
|
+
{ value: "7", label: "7 items" },
|
|
1032
|
+
{ value: "10", label: "10 items" },
|
|
1033
|
+
{ value: "15", label: "15 items" },
|
|
1034
|
+
{ value: "20", label: "20 items" },
|
|
1035
|
+
],
|
|
1036
|
+
},
|
|
1037
|
+
},
|
|
1038
|
+
|
|
1039
|
+
emojiAutocomplete: {
|
|
1040
|
+
type: "boolean",
|
|
1041
|
+
default: true,
|
|
1042
|
+
ui: {
|
|
1043
|
+
tab: "interaction",
|
|
1044
|
+
label: "Emoji Autocomplete",
|
|
1045
|
+
description: "Suggest emojis from `:name:` shortcodes and expand text emoticons like `:D` or `:-)`",
|
|
1046
|
+
},
|
|
1047
|
+
},
|
|
1048
|
+
|
|
1049
|
+
"startup.quiet": {
|
|
1050
|
+
type: "boolean",
|
|
1051
|
+
default: false,
|
|
1052
|
+
ui: {
|
|
1053
|
+
tab: "interaction",
|
|
1054
|
+
label: "Quiet Startup",
|
|
1055
|
+
description: "Skip welcome screen and startup status messages",
|
|
1056
|
+
},
|
|
1057
|
+
},
|
|
1058
|
+
|
|
1059
|
+
"startup.setupWizard": {
|
|
1060
|
+
type: "boolean",
|
|
1061
|
+
default: true,
|
|
1062
|
+
ui: {
|
|
1063
|
+
tab: "interaction",
|
|
1064
|
+
label: "Setup Wizard",
|
|
1065
|
+
description: "Show newly added onboarding steps once per setup version",
|
|
1066
|
+
},
|
|
1067
|
+
},
|
|
1068
|
+
|
|
1069
|
+
"startup.checkUpdate": {
|
|
1070
|
+
type: "boolean",
|
|
1071
|
+
default: true,
|
|
1072
|
+
ui: {
|
|
1073
|
+
tab: "interaction",
|
|
1074
|
+
label: "Check for Updates",
|
|
1075
|
+
description: "If false, skip update check",
|
|
1076
|
+
},
|
|
1077
|
+
},
|
|
1078
|
+
|
|
1079
|
+
collapseChangelog: {
|
|
1080
|
+
type: "boolean",
|
|
1081
|
+
default: false,
|
|
1082
|
+
ui: { tab: "interaction", label: "Collapse Changelog", description: "Show condensed changelog after updates" },
|
|
1083
|
+
},
|
|
1084
|
+
|
|
1085
|
+
// Notifications
|
|
1086
|
+
"completion.notify": {
|
|
1087
|
+
type: "enum",
|
|
1088
|
+
values: ["on", "off"] as const,
|
|
1089
|
+
default: "on",
|
|
1090
|
+
ui: { tab: "interaction", label: "Completion Notification", description: "Notify when the agent completes" },
|
|
1091
|
+
},
|
|
1092
|
+
|
|
1093
|
+
"ask.timeout": {
|
|
1094
|
+
type: "number",
|
|
1095
|
+
default: 0,
|
|
1096
|
+
ui: {
|
|
1097
|
+
tab: "interaction",
|
|
1098
|
+
label: "Ask Timeout",
|
|
1099
|
+
description: "Auto-select recommended option after timeout (0 to disable)",
|
|
1100
|
+
options: [
|
|
1101
|
+
{ value: "0", label: "Disabled" },
|
|
1102
|
+
{ value: "15", label: "15 seconds" },
|
|
1103
|
+
{ value: "30", label: "30 seconds" },
|
|
1104
|
+
{ value: "60", label: "60 seconds" },
|
|
1105
|
+
{ value: "120", label: "120 seconds" },
|
|
1106
|
+
],
|
|
1107
|
+
},
|
|
1108
|
+
},
|
|
1109
|
+
|
|
1110
|
+
"ask.notify": {
|
|
1111
|
+
type: "enum",
|
|
1112
|
+
values: ["on", "off"] as const,
|
|
1113
|
+
default: "on",
|
|
1114
|
+
ui: { tab: "interaction", label: "Ask Notification", description: "Notify when ask tool is waiting for input" },
|
|
1115
|
+
},
|
|
1116
|
+
|
|
1117
|
+
// Speech-to-text
|
|
1118
|
+
"stt.enabled": {
|
|
1119
|
+
type: "boolean",
|
|
1120
|
+
default: false,
|
|
1121
|
+
ui: { tab: "interaction", label: "Speech-to-Text", description: "Enable speech-to-text input via microphone" },
|
|
1122
|
+
},
|
|
1123
|
+
|
|
1124
|
+
"stt.language": {
|
|
1125
|
+
type: "string",
|
|
1126
|
+
default: "en",
|
|
1127
|
+
},
|
|
1128
|
+
|
|
1129
|
+
"stt.modelName": {
|
|
1130
|
+
type: "enum",
|
|
1131
|
+
values: ["tiny", "tiny.en", "base", "base.en", "small", "small.en", "medium", "medium.en", "large"] as const,
|
|
1132
|
+
default: "base.en",
|
|
1133
|
+
ui: {
|
|
1134
|
+
tab: "interaction",
|
|
1135
|
+
label: "Speech Model",
|
|
1136
|
+
description: "Whisper model size (larger = more accurate but slower)",
|
|
1137
|
+
options: [
|
|
1138
|
+
{ value: "tiny", label: "tiny", description: "Multilingual; fastest, lowest accuracy" },
|
|
1139
|
+
{ value: "tiny.en", label: "tiny.en", description: "English-only; fastest" },
|
|
1140
|
+
{ value: "base", label: "base", description: "Multilingual; small and fast" },
|
|
1141
|
+
{ value: "base.en", label: "base.en", description: "English-only; default" },
|
|
1142
|
+
{ value: "small", label: "small", description: "Multilingual; balanced" },
|
|
1143
|
+
{ value: "small.en", label: "small.en", description: "English-only; balanced" },
|
|
1144
|
+
{ value: "medium", label: "medium", description: "Multilingual; accurate but slower" },
|
|
1145
|
+
{ value: "medium.en", label: "medium.en", description: "English-only; accurate but slower" },
|
|
1146
|
+
{ value: "large", label: "large", description: "Multilingual; most accurate" },
|
|
1147
|
+
],
|
|
1148
|
+
},
|
|
1149
|
+
},
|
|
1150
|
+
|
|
1151
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
1152
|
+
// Context
|
|
1153
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
1154
|
+
|
|
1155
|
+
// Context promotion
|
|
1156
|
+
"contextPromotion.enabled": {
|
|
1157
|
+
type: "boolean",
|
|
1158
|
+
default: true,
|
|
1159
|
+
ui: {
|
|
1160
|
+
tab: "context",
|
|
1161
|
+
label: "Auto-Promote Context",
|
|
1162
|
+
description: "Promote to a larger-context model on context overflow instead of compacting",
|
|
1163
|
+
},
|
|
1164
|
+
},
|
|
1165
|
+
|
|
1166
|
+
// Compaction
|
|
1167
|
+
"compaction.enabled": {
|
|
1168
|
+
type: "boolean",
|
|
1169
|
+
default: true,
|
|
1170
|
+
ui: {
|
|
1171
|
+
tab: "context",
|
|
1172
|
+
label: "Auto-Compact",
|
|
1173
|
+
description: "Automatically compact context when it gets too large",
|
|
1174
|
+
},
|
|
1175
|
+
},
|
|
1176
|
+
|
|
1177
|
+
"compaction.strategy": {
|
|
1178
|
+
type: "enum",
|
|
1179
|
+
values: ["context-full", "handoff", "shake", "snapcompact", "off"] as const,
|
|
1180
|
+
default: "context-full",
|
|
1181
|
+
ui: {
|
|
1182
|
+
tab: "context",
|
|
1183
|
+
label: "Compaction Strategy",
|
|
1184
|
+
description:
|
|
1185
|
+
"Choose in-place context-full maintenance, auto-handoff, surgical shake (drop heavy content), snapcompact (archive history as dense images), or disable auto maintenance (off)",
|
|
1186
|
+
options: [
|
|
1187
|
+
{
|
|
1188
|
+
value: "context-full",
|
|
1189
|
+
label: "Context-full",
|
|
1190
|
+
description: "Summarize in-place and keep the current session",
|
|
1191
|
+
},
|
|
1192
|
+
{ value: "handoff", label: "Handoff", description: "Generate handoff and continue in a new session" },
|
|
1193
|
+
{
|
|
1194
|
+
value: "shake",
|
|
1195
|
+
label: "Shake",
|
|
1196
|
+
description: "Drop heavy content (tool results + large blocks) in place; recover via artifact",
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
value: "snapcompact",
|
|
1200
|
+
label: "Snapcompact",
|
|
1201
|
+
description: "Archive history onto dense bitmap images the model reads back; no LLM call",
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
value: "off",
|
|
1205
|
+
label: "Off",
|
|
1206
|
+
description: "Disable automatic context maintenance (same behavior as Auto-compact off)",
|
|
1207
|
+
},
|
|
1208
|
+
],
|
|
1209
|
+
},
|
|
1210
|
+
},
|
|
1211
|
+
|
|
1212
|
+
"compaction.thresholdPercent": {
|
|
1213
|
+
type: "number",
|
|
1214
|
+
default: -1,
|
|
1215
|
+
ui: {
|
|
1216
|
+
tab: "context",
|
|
1217
|
+
label: "Compaction Threshold",
|
|
1218
|
+
description: "Percent threshold for context maintenance; set to Default to use legacy reserve-based behavior",
|
|
1219
|
+
options: [
|
|
1220
|
+
{ value: "default", label: "Default", description: "Legacy reserve-based threshold" },
|
|
1221
|
+
{ value: "10", label: "10%", description: "Extremely early maintenance" },
|
|
1222
|
+
{ value: "20", label: "20%", description: "Very early maintenance" },
|
|
1223
|
+
{ value: "30", label: "30%", description: "Early maintenance" },
|
|
1224
|
+
{ value: "40", label: "40%", description: "Moderately early maintenance" },
|
|
1225
|
+
{ value: "50", label: "50%", description: "Halfway point" },
|
|
1226
|
+
{ value: "60", label: "60%", description: "Moderate context usage" },
|
|
1227
|
+
{ value: "70", label: "70%", description: "Balanced" },
|
|
1228
|
+
{ value: "75", label: "75%", description: "Slightly aggressive" },
|
|
1229
|
+
{ value: "80", label: "80%", description: "Typical threshold" },
|
|
1230
|
+
{ value: "85", label: "85%", description: "Aggressive context usage" },
|
|
1231
|
+
{ value: "90", label: "90%", description: "Very aggressive" },
|
|
1232
|
+
{ value: "95", label: "95%", description: "Near context limit" },
|
|
1233
|
+
],
|
|
1234
|
+
},
|
|
1235
|
+
},
|
|
1236
|
+
"compaction.thresholdTokens": {
|
|
1237
|
+
type: "number",
|
|
1238
|
+
default: -1,
|
|
1239
|
+
ui: {
|
|
1240
|
+
tab: "context",
|
|
1241
|
+
label: "Compaction Token Limit",
|
|
1242
|
+
description: "Fixed token limit for context maintenance; overrides percentage if set",
|
|
1243
|
+
options: [
|
|
1244
|
+
{ value: "default", label: "Default", description: "Use percentage-based threshold" },
|
|
1245
|
+
{ value: "25000", label: "25K tokens", description: "Quarter of a 200K window" },
|
|
1246
|
+
{ value: "50000", label: "50K tokens", description: "Half of a 200K window" },
|
|
1247
|
+
{ value: "100000", label: "100K tokens", description: "Half of a 200K window" },
|
|
1248
|
+
{ value: "150000", label: "150K tokens", description: "Three-quarters of a 200K window" },
|
|
1249
|
+
{ value: "200000", label: "200K tokens", description: "Full standard context window" },
|
|
1250
|
+
{ value: "300000", label: "300K tokens", description: "Large context window" },
|
|
1251
|
+
{ value: "500000", label: "500K tokens", description: "Very large context window" },
|
|
1252
|
+
],
|
|
1253
|
+
},
|
|
1254
|
+
},
|
|
1255
|
+
|
|
1256
|
+
"compaction.handoffSaveToDisk": {
|
|
1257
|
+
type: "boolean",
|
|
1258
|
+
default: false,
|
|
1259
|
+
ui: {
|
|
1260
|
+
tab: "context",
|
|
1261
|
+
label: "Save Handoff Docs",
|
|
1262
|
+
description: "Save generated handoff documents to markdown files for the auto-handoff flow",
|
|
1263
|
+
},
|
|
1264
|
+
},
|
|
1265
|
+
|
|
1266
|
+
"compaction.remoteEnabled": {
|
|
1267
|
+
type: "boolean",
|
|
1268
|
+
default: true,
|
|
1269
|
+
ui: {
|
|
1270
|
+
tab: "context",
|
|
1271
|
+
label: "Remote Compaction",
|
|
1272
|
+
description: "Use remote compaction endpoints when available instead of local summarization",
|
|
1273
|
+
},
|
|
1274
|
+
},
|
|
1275
|
+
|
|
1276
|
+
"compaction.reserveTokens": { type: "number", default: 16384 },
|
|
1277
|
+
|
|
1278
|
+
"compaction.keepRecentTokens": { type: "number", default: 20000 },
|
|
1279
|
+
|
|
1280
|
+
"compaction.autoContinue": { type: "boolean", default: true },
|
|
1281
|
+
|
|
1282
|
+
"compaction.remoteEndpoint": { type: "string", default: undefined },
|
|
1283
|
+
|
|
1284
|
+
// Idle compaction
|
|
1285
|
+
"compaction.idleEnabled": {
|
|
1286
|
+
type: "boolean",
|
|
1287
|
+
default: false,
|
|
1288
|
+
ui: {
|
|
1289
|
+
tab: "context",
|
|
1290
|
+
label: "Idle Compaction",
|
|
1291
|
+
description: "Compact context while idle when token count exceeds threshold",
|
|
1292
|
+
},
|
|
1293
|
+
},
|
|
1294
|
+
|
|
1295
|
+
"compaction.idleThresholdTokens": {
|
|
1296
|
+
type: "number",
|
|
1297
|
+
default: 200000,
|
|
1298
|
+
ui: {
|
|
1299
|
+
tab: "context",
|
|
1300
|
+
label: "Idle Compaction Threshold",
|
|
1301
|
+
description: "Token count above which idle compaction triggers",
|
|
1302
|
+
options: [
|
|
1303
|
+
{ value: "100000", label: "100K tokens" },
|
|
1304
|
+
{ value: "200000", label: "200K tokens" },
|
|
1305
|
+
{ value: "300000", label: "300K tokens" },
|
|
1306
|
+
{ value: "400000", label: "400K tokens" },
|
|
1307
|
+
{ value: "500000", label: "500K tokens" },
|
|
1308
|
+
{ value: "600000", label: "600K tokens" },
|
|
1309
|
+
{ value: "700000", label: "700K tokens" },
|
|
1310
|
+
{ value: "800000", label: "800K tokens" },
|
|
1311
|
+
{ value: "900000", label: "900K tokens" },
|
|
1312
|
+
],
|
|
1313
|
+
},
|
|
1314
|
+
},
|
|
1315
|
+
|
|
1316
|
+
"compaction.idleTimeoutSeconds": {
|
|
1317
|
+
type: "number",
|
|
1318
|
+
default: 300,
|
|
1319
|
+
ui: {
|
|
1320
|
+
tab: "context",
|
|
1321
|
+
label: "Idle Compaction Delay",
|
|
1322
|
+
description: "Seconds to wait while idle before compacting",
|
|
1323
|
+
options: [
|
|
1324
|
+
{ value: "60", label: "1 minute" },
|
|
1325
|
+
{ value: "120", label: "2 minutes" },
|
|
1326
|
+
{ value: "300", label: "5 minutes" },
|
|
1327
|
+
{ value: "600", label: "10 minutes" },
|
|
1328
|
+
{ value: "1800", label: "30 minutes" },
|
|
1329
|
+
{ value: "3600", label: "1 hour" },
|
|
1330
|
+
],
|
|
1331
|
+
},
|
|
1332
|
+
},
|
|
1333
|
+
|
|
1334
|
+
"compaction.supersedeReads": {
|
|
1335
|
+
type: "boolean",
|
|
1336
|
+
default: true,
|
|
1337
|
+
ui: {
|
|
1338
|
+
tab: "context",
|
|
1339
|
+
label: "Supersede Stale Reads",
|
|
1340
|
+
description: "Prune older read results when the same file is read again (cache-aware, runs every turn)",
|
|
1341
|
+
},
|
|
1342
|
+
},
|
|
1343
|
+
|
|
1344
|
+
// Branch summaries
|
|
1345
|
+
"branchSummary.enabled": {
|
|
1346
|
+
type: "boolean",
|
|
1347
|
+
default: false,
|
|
1348
|
+
ui: { tab: "context", label: "Branch Summaries", description: "Prompt to summarize when leaving a branch" },
|
|
1349
|
+
},
|
|
1350
|
+
|
|
1351
|
+
"branchSummary.reserveTokens": { type: "number", default: 16384 },
|
|
1352
|
+
|
|
1353
|
+
// Memories
|
|
1354
|
+
// Legacy local-memory enable flag kept only for back-compat migration.
|
|
1355
|
+
// Hidden from UI — users should use `memory.backend` instead.
|
|
1356
|
+
"memories.enabled": {
|
|
1357
|
+
type: "boolean",
|
|
1358
|
+
default: false,
|
|
1359
|
+
},
|
|
1360
|
+
|
|
1361
|
+
"memories.maxRolloutsPerStartup": { type: "number", default: 64 },
|
|
1362
|
+
|
|
1363
|
+
"memories.maxRolloutAgeDays": { type: "number", default: 30 },
|
|
1364
|
+
|
|
1365
|
+
"memories.minRolloutIdleHours": { type: "number", default: 12 },
|
|
1366
|
+
|
|
1367
|
+
"memories.threadScanLimit": { type: "number", default: 300 },
|
|
1368
|
+
|
|
1369
|
+
"memories.maxRawMemoriesForGlobal": { type: "number", default: 200 },
|
|
1370
|
+
|
|
1371
|
+
"memories.stage1Concurrency": { type: "number", default: 8 },
|
|
1372
|
+
|
|
1373
|
+
"memories.stage1LeaseSeconds": { type: "number", default: 120 },
|
|
1374
|
+
|
|
1375
|
+
"memories.stage1RetryDelaySeconds": { type: "number", default: 120 },
|
|
1376
|
+
|
|
1377
|
+
"memories.phase2LeaseSeconds": { type: "number", default: 180 },
|
|
1378
|
+
|
|
1379
|
+
"memories.phase2RetryDelaySeconds": { type: "number", default: 180 },
|
|
1380
|
+
|
|
1381
|
+
"memories.phase2HeartbeatSeconds": { type: "number", default: 30 },
|
|
1382
|
+
|
|
1383
|
+
"memories.rolloutPayloadPercent": { type: "number", default: 0.7 },
|
|
1384
|
+
|
|
1385
|
+
"memories.phase1InputTokenLimit": { type: "number", default: 4000 },
|
|
1386
|
+
|
|
1387
|
+
"memories.fallbackTokenLimit": { type: "number", default: 16000 },
|
|
1388
|
+
|
|
1389
|
+
"memories.summaryInjectionTokenLimit": { type: "number", default: 5000 },
|
|
1390
|
+
|
|
1391
|
+
// Memory backend selector — picks between local memories pipeline,
|
|
1392
|
+
// Mnemopi local SQLite, Hindsight remote memory, or off. Legacy
|
|
1393
|
+
// `memories.enabled` keeps gating the local backend; see config/settings.ts
|
|
1394
|
+
// migration for details.
|
|
1395
|
+
"memory.backend": {
|
|
1396
|
+
type: "enum",
|
|
1397
|
+
values: ["off", "local", "hindsight", "mnemopi"] as const,
|
|
1398
|
+
default: "off",
|
|
1399
|
+
ui: {
|
|
1400
|
+
tab: "memory",
|
|
1401
|
+
label: "Memory Backend",
|
|
1402
|
+
description: "Off, local summary pipeline, Mnemopi SQLite, or Hindsight remote memory",
|
|
1403
|
+
options: [
|
|
1404
|
+
{ value: "off", label: "Off", description: "No memory subsystem runs" },
|
|
1405
|
+
{ value: "local", label: "Local", description: "Local rollout summarisation pipeline (memory_summary.md)" },
|
|
1406
|
+
{ value: "hindsight", label: "Hindsight", description: "Vectorize Hindsight remote memory service" },
|
|
1407
|
+
{
|
|
1408
|
+
value: "mnemopi",
|
|
1409
|
+
label: "Mnemopi",
|
|
1410
|
+
description: "Local SQLite recall/retain backend with optional embeddings",
|
|
1411
|
+
},
|
|
1412
|
+
],
|
|
1413
|
+
},
|
|
1414
|
+
},
|
|
1415
|
+
|
|
1416
|
+
// Mnemopi local SQLite memory backend.
|
|
1417
|
+
"mnemopi.dbPath": {
|
|
1418
|
+
type: "string",
|
|
1419
|
+
default: undefined,
|
|
1420
|
+
ui: {
|
|
1421
|
+
tab: "memory",
|
|
1422
|
+
label: "Mnemopi DB Path",
|
|
1423
|
+
description: "Optional SQLite DB path. Defaults to the agent memories directory.",
|
|
1424
|
+
condition: "mnemopiActive",
|
|
1425
|
+
},
|
|
1426
|
+
},
|
|
1427
|
+
"mnemopi.bank": {
|
|
1428
|
+
type: "string",
|
|
1429
|
+
default: undefined,
|
|
1430
|
+
ui: {
|
|
1431
|
+
tab: "memory",
|
|
1432
|
+
label: "Mnemopi Bank",
|
|
1433
|
+
description: "Optional shared bank base name. Per-project modes derive project-local banks from it.",
|
|
1434
|
+
condition: "mnemopiActive",
|
|
1435
|
+
},
|
|
1436
|
+
},
|
|
1437
|
+
"mnemopi.scoping": {
|
|
1438
|
+
type: "enum",
|
|
1439
|
+
values: ["global", "per-project", "per-project-tagged"] as const,
|
|
1440
|
+
default: "per-project",
|
|
1441
|
+
ui: {
|
|
1442
|
+
tab: "memory",
|
|
1443
|
+
label: "Mnemopi Scoping",
|
|
1444
|
+
description:
|
|
1445
|
+
"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = project-local writes plus global recall visibility",
|
|
1446
|
+
options: [
|
|
1447
|
+
{
|
|
1448
|
+
value: "global",
|
|
1449
|
+
label: "Global",
|
|
1450
|
+
description: "One shared Mnemopi bank for every project",
|
|
1451
|
+
},
|
|
1452
|
+
{
|
|
1453
|
+
value: "per-project",
|
|
1454
|
+
label: "Per project",
|
|
1455
|
+
description: "Project-local Mnemopi bank per cwd basename",
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
value: "per-project-tagged",
|
|
1459
|
+
label: "Per project (tagged)",
|
|
1460
|
+
description: "Write to a project-local bank but merge project + shared recall results",
|
|
1461
|
+
},
|
|
1462
|
+
],
|
|
1463
|
+
condition: "mnemopiActive",
|
|
1464
|
+
},
|
|
1465
|
+
},
|
|
1466
|
+
"mnemopi.autoRecall": {
|
|
1467
|
+
type: "boolean",
|
|
1468
|
+
default: true,
|
|
1469
|
+
ui: {
|
|
1470
|
+
tab: "memory",
|
|
1471
|
+
label: "Mnemopi Auto Recall",
|
|
1472
|
+
description: "Recall local memories into the first turn of each session",
|
|
1473
|
+
condition: "mnemopiActive",
|
|
1474
|
+
},
|
|
1475
|
+
},
|
|
1476
|
+
"mnemopi.autoRetain": {
|
|
1477
|
+
type: "boolean",
|
|
1478
|
+
default: true,
|
|
1479
|
+
ui: {
|
|
1480
|
+
tab: "memory",
|
|
1481
|
+
label: "Mnemopi Auto Retain",
|
|
1482
|
+
description: "Retain completed conversation turns into local Mnemopi memory",
|
|
1483
|
+
condition: "mnemopiActive",
|
|
1484
|
+
},
|
|
1485
|
+
},
|
|
1486
|
+
"mnemopi.noEmbeddings": {
|
|
1487
|
+
type: "boolean",
|
|
1488
|
+
default: false,
|
|
1489
|
+
ui: {
|
|
1490
|
+
tab: "memory",
|
|
1491
|
+
label: "Mnemopi Disable Embeddings",
|
|
1492
|
+
description: "Force deterministic FTS-only recall instead of vector embeddings",
|
|
1493
|
+
condition: "mnemopiActive",
|
|
1494
|
+
},
|
|
1495
|
+
},
|
|
1496
|
+
"mnemopi.embeddingModel": {
|
|
1497
|
+
type: "string",
|
|
1498
|
+
default: undefined,
|
|
1499
|
+
ui: {
|
|
1500
|
+
tab: "memory",
|
|
1501
|
+
label: "Mnemopi Embedding Model",
|
|
1502
|
+
description: "Optional embedding model override passed to Mnemopi",
|
|
1503
|
+
condition: "mnemopiActive",
|
|
1504
|
+
},
|
|
1505
|
+
},
|
|
1506
|
+
"mnemopi.embeddingApiUrl": {
|
|
1507
|
+
type: "string",
|
|
1508
|
+
default: undefined,
|
|
1509
|
+
ui: {
|
|
1510
|
+
tab: "memory",
|
|
1511
|
+
label: "Mnemopi Embedding API URL",
|
|
1512
|
+
description: "Optional OpenAI-compatible embedding endpoint passed to Mnemopi",
|
|
1513
|
+
condition: "mnemopiActive",
|
|
1514
|
+
},
|
|
1515
|
+
},
|
|
1516
|
+
"mnemopi.embeddingApiKey": {
|
|
1517
|
+
type: "string",
|
|
1518
|
+
default: undefined,
|
|
1519
|
+
ui: {
|
|
1520
|
+
tab: "memory",
|
|
1521
|
+
label: "Mnemopi Embedding API Key",
|
|
1522
|
+
description: "Optional embedding API key passed to Mnemopi",
|
|
1523
|
+
condition: "mnemopiActive",
|
|
1524
|
+
},
|
|
1525
|
+
},
|
|
1526
|
+
"mnemopi.llmMode": {
|
|
1527
|
+
type: "enum",
|
|
1528
|
+
values: ["none", "smol", "remote"] as const,
|
|
1529
|
+
default: "smol",
|
|
1530
|
+
ui: {
|
|
1531
|
+
tab: "memory",
|
|
1532
|
+
label: "Mnemopi LLM Mode",
|
|
1533
|
+
description: "Use no LLM, the configured smol model, or a remote OpenAI-compatible endpoint",
|
|
1534
|
+
condition: "mnemopiActive",
|
|
1535
|
+
options: [
|
|
1536
|
+
{ value: "none", label: "None", description: "Disable Mnemopi LLM-backed extraction" },
|
|
1537
|
+
{ value: "smol", label: "Smol", description: "Use the configured pi-ai smol model" },
|
|
1538
|
+
{ value: "remote", label: "Remote", description: "Use the Mnemopi remote LLM settings below" },
|
|
1539
|
+
],
|
|
1540
|
+
},
|
|
1541
|
+
},
|
|
1542
|
+
"mnemopi.llmBaseUrl": {
|
|
1543
|
+
type: "string",
|
|
1544
|
+
default: undefined,
|
|
1545
|
+
ui: {
|
|
1546
|
+
tab: "memory",
|
|
1547
|
+
label: "Mnemopi LLM Base URL",
|
|
1548
|
+
description: "Optional OpenAI-compatible LLM endpoint for Mnemopi remote mode",
|
|
1549
|
+
condition: "mnemopiActive",
|
|
1550
|
+
},
|
|
1551
|
+
},
|
|
1552
|
+
"mnemopi.llmApiKey": {
|
|
1553
|
+
type: "string",
|
|
1554
|
+
default: undefined,
|
|
1555
|
+
ui: {
|
|
1556
|
+
tab: "memory",
|
|
1557
|
+
label: "Mnemopi LLM API Key",
|
|
1558
|
+
description: "Optional LLM API key for Mnemopi remote mode",
|
|
1559
|
+
condition: "mnemopiActive",
|
|
1560
|
+
},
|
|
1561
|
+
},
|
|
1562
|
+
"mnemopi.llmModel": {
|
|
1563
|
+
type: "string",
|
|
1564
|
+
default: undefined,
|
|
1565
|
+
ui: {
|
|
1566
|
+
tab: "memory",
|
|
1567
|
+
label: "Mnemopi LLM Model",
|
|
1568
|
+
description: "Optional LLM model name for Mnemopi remote mode",
|
|
1569
|
+
condition: "mnemopiActive",
|
|
1570
|
+
},
|
|
1571
|
+
},
|
|
1572
|
+
"mnemopi.retainEveryNTurns": { type: "number", default: 4 },
|
|
1573
|
+
"mnemopi.recallLimit": { type: "number", default: 8 },
|
|
1574
|
+
"mnemopi.recallContextTurns": { type: "number", default: 3 },
|
|
1575
|
+
"mnemopi.recallMaxQueryChars": { type: "number", default: 4000 },
|
|
1576
|
+
"mnemopi.injectionTokenLimit": { type: "number", default: 5000 },
|
|
1577
|
+
"mnemopi.debug": { type: "boolean", default: false },
|
|
1578
|
+
|
|
1579
|
+
// Hindsight (https://hindsight.vectorize.io)
|
|
1580
|
+
"hindsight.apiUrl": {
|
|
1581
|
+
type: "string",
|
|
1582
|
+
default: "http://localhost:8888",
|
|
1583
|
+
ui: {
|
|
1584
|
+
tab: "memory",
|
|
1585
|
+
label: "Hindsight API URL",
|
|
1586
|
+
description: "Hindsight server URL (Cloud or self-hosted)",
|
|
1587
|
+
condition: "hindsightActive",
|
|
1588
|
+
},
|
|
1589
|
+
},
|
|
1590
|
+
|
|
1591
|
+
"hindsight.apiToken": { type: "string", default: undefined },
|
|
1592
|
+
|
|
1593
|
+
"hindsight.bankId": {
|
|
1594
|
+
type: "string",
|
|
1595
|
+
default: undefined,
|
|
1596
|
+
ui: {
|
|
1597
|
+
tab: "memory",
|
|
1598
|
+
label: "Hindsight Bank ID",
|
|
1599
|
+
description: "Memory bank identifier (default: project name)",
|
|
1600
|
+
condition: "hindsightActive",
|
|
1601
|
+
},
|
|
1602
|
+
},
|
|
1603
|
+
|
|
1604
|
+
"hindsight.bankIdPrefix": { type: "string", default: undefined },
|
|
1605
|
+
"hindsight.scoping": {
|
|
1606
|
+
type: "enum",
|
|
1607
|
+
values: ["global", "per-project", "per-project-tagged"] as const,
|
|
1608
|
+
default: "per-project-tagged",
|
|
1609
|
+
ui: {
|
|
1610
|
+
tab: "memory",
|
|
1611
|
+
label: "Hindsight Scoping",
|
|
1612
|
+
description:
|
|
1613
|
+
"global = one shared bank; per-project = isolated bank per cwd; per-project-tagged = shared bank with project tags so global + project memories merge on recall",
|
|
1614
|
+
options: [
|
|
1615
|
+
{
|
|
1616
|
+
value: "global",
|
|
1617
|
+
label: "Global",
|
|
1618
|
+
description: "One shared bank — every project sees the same memories",
|
|
1619
|
+
},
|
|
1620
|
+
{
|
|
1621
|
+
value: "per-project",
|
|
1622
|
+
label: "Per project",
|
|
1623
|
+
description: "Isolated bank per cwd basename — projects cannot see each other's memories",
|
|
1624
|
+
},
|
|
1625
|
+
{
|
|
1626
|
+
value: "per-project-tagged",
|
|
1627
|
+
label: "Per project (tagged)",
|
|
1628
|
+
description:
|
|
1629
|
+
"Shared bank, retains tagged with project:<cwd>. Recall surfaces project + untagged global memories together",
|
|
1630
|
+
},
|
|
1631
|
+
],
|
|
1632
|
+
condition: "hindsightActive",
|
|
1633
|
+
},
|
|
1634
|
+
},
|
|
1635
|
+
"hindsight.bankMission": { type: "string", default: undefined },
|
|
1636
|
+
"hindsight.retainMission": { type: "string", default: undefined },
|
|
1637
|
+
|
|
1638
|
+
"hindsight.autoRecall": {
|
|
1639
|
+
type: "boolean",
|
|
1640
|
+
default: true,
|
|
1641
|
+
ui: {
|
|
1642
|
+
tab: "memory",
|
|
1643
|
+
label: "Hindsight Auto Recall",
|
|
1644
|
+
description: "Recall memories on the first turn of each session",
|
|
1645
|
+
condition: "hindsightActive",
|
|
1646
|
+
},
|
|
1647
|
+
},
|
|
1648
|
+
"hindsight.autoRetain": {
|
|
1649
|
+
type: "boolean",
|
|
1650
|
+
default: true,
|
|
1651
|
+
ui: {
|
|
1652
|
+
tab: "memory",
|
|
1653
|
+
label: "Hindsight Auto Retain",
|
|
1654
|
+
description: "Retain transcript every N turns and at session boundaries",
|
|
1655
|
+
condition: "hindsightActive",
|
|
1656
|
+
},
|
|
1657
|
+
},
|
|
1658
|
+
|
|
1659
|
+
"hindsight.retainMode": {
|
|
1660
|
+
type: "enum",
|
|
1661
|
+
values: ["full-session", "last-turn"] as const,
|
|
1662
|
+
default: "full-session",
|
|
1663
|
+
ui: {
|
|
1664
|
+
tab: "memory",
|
|
1665
|
+
label: "Hindsight Retain Mode",
|
|
1666
|
+
description: "full-session = upsert one document per session, last-turn = chunked",
|
|
1667
|
+
options: [
|
|
1668
|
+
{
|
|
1669
|
+
value: "full-session",
|
|
1670
|
+
label: "Full session",
|
|
1671
|
+
description: "Upsert one document per session (recommended)",
|
|
1672
|
+
},
|
|
1673
|
+
{ value: "last-turn", label: "Last turn", description: "Chunked retention sliced by turn boundaries" },
|
|
1674
|
+
],
|
|
1675
|
+
condition: "hindsightActive",
|
|
1676
|
+
},
|
|
1677
|
+
},
|
|
1678
|
+
"hindsight.retainEveryNTurns": { type: "number", default: 3 },
|
|
1679
|
+
"hindsight.retainOverlapTurns": { type: "number", default: 2 },
|
|
1680
|
+
"hindsight.retainContext": { type: "string", default: "omp" },
|
|
1681
|
+
|
|
1682
|
+
"hindsight.recallBudget": {
|
|
1683
|
+
type: "enum",
|
|
1684
|
+
values: ["low", "mid", "high"] as const,
|
|
1685
|
+
default: "mid",
|
|
1686
|
+
},
|
|
1687
|
+
"hindsight.recallMaxTokens": { type: "number", default: 1024 },
|
|
1688
|
+
"hindsight.recallContextTurns": { type: "number", default: 1 },
|
|
1689
|
+
"hindsight.recallMaxQueryChars": { type: "number", default: 800 },
|
|
1690
|
+
"hindsight.recallTypes": { type: "array", default: HINDSIGHT_RECALL_TYPES_DEFAULT },
|
|
1691
|
+
|
|
1692
|
+
"hindsight.debug": { type: "boolean", default: false },
|
|
1693
|
+
|
|
1694
|
+
"hindsight.mentalModelsEnabled": {
|
|
1695
|
+
type: "boolean",
|
|
1696
|
+
default: true,
|
|
1697
|
+
ui: {
|
|
1698
|
+
tab: "memory",
|
|
1699
|
+
label: "Hindsight Mental Models",
|
|
1700
|
+
description:
|
|
1701
|
+
"Read curated reflect summaries (mental models) into developer instructions at boot. Loads existing models on the bank — does not write. Pair with hindsight.mentalModelAutoSeed to also auto-create the built-in seed set.",
|
|
1702
|
+
condition: "hindsightActive",
|
|
1703
|
+
},
|
|
1704
|
+
},
|
|
1705
|
+
"hindsight.mentalModelAutoSeed": {
|
|
1706
|
+
type: "boolean",
|
|
1707
|
+
default: true,
|
|
1708
|
+
ui: {
|
|
1709
|
+
tab: "memory",
|
|
1710
|
+
label: "Hindsight Mental Model Auto-Seed",
|
|
1711
|
+
description:
|
|
1712
|
+
"At session start, create any built-in mental models (project-conventions, project-decisions, user-preferences) that do not yet exist on the bank.",
|
|
1713
|
+
condition: "hindsightActive",
|
|
1714
|
+
},
|
|
1715
|
+
},
|
|
1716
|
+
"hindsight.mentalModelRefreshIntervalMs": { type: "number", default: 5 * 60 * 1000 },
|
|
1717
|
+
"hindsight.mentalModelMaxRenderChars": { type: "number", default: 16_000 },
|
|
1718
|
+
|
|
1719
|
+
// TTSR
|
|
1720
|
+
"ttsr.enabled": {
|
|
1721
|
+
type: "boolean",
|
|
1722
|
+
default: true,
|
|
1723
|
+
ui: {
|
|
1724
|
+
tab: "context",
|
|
1725
|
+
label: "TTSR",
|
|
1726
|
+
description: "Time Traveling Stream Rules: interrupt agent when output matches patterns",
|
|
1727
|
+
},
|
|
1728
|
+
},
|
|
1729
|
+
|
|
1730
|
+
"ttsr.contextMode": {
|
|
1731
|
+
type: "enum",
|
|
1732
|
+
values: ["discard", "keep"] as const,
|
|
1733
|
+
default: "discard",
|
|
1734
|
+
ui: {
|
|
1735
|
+
tab: "context",
|
|
1736
|
+
label: "TTSR Context Mode",
|
|
1737
|
+
description: "What to do with partial output when TTSR triggers",
|
|
1738
|
+
},
|
|
1739
|
+
},
|
|
1740
|
+
|
|
1741
|
+
"ttsr.interruptMode": {
|
|
1742
|
+
type: "enum",
|
|
1743
|
+
values: ["never", "prose-only", "tool-only", "always"] as const,
|
|
1744
|
+
default: "always",
|
|
1745
|
+
ui: {
|
|
1746
|
+
tab: "context",
|
|
1747
|
+
label: "TTSR Interrupt Mode",
|
|
1748
|
+
description: "When to interrupt mid-stream vs inject warning after completion",
|
|
1749
|
+
options: [
|
|
1750
|
+
{ value: "always", label: "always", description: "Interrupt on prose and tool streams" },
|
|
1751
|
+
{ value: "prose-only", label: "prose-only", description: "Interrupt only on reply/thinking matches" },
|
|
1752
|
+
{ value: "tool-only", label: "tool-only", description: "Interrupt only on tool-call argument matches" },
|
|
1753
|
+
{ value: "never", label: "never", description: "Never interrupt; inject warning after completion" },
|
|
1754
|
+
],
|
|
1755
|
+
},
|
|
1756
|
+
},
|
|
1757
|
+
|
|
1758
|
+
"ttsr.repeatMode": {
|
|
1759
|
+
type: "enum",
|
|
1760
|
+
values: ["once", "after-gap"] as const,
|
|
1761
|
+
default: "once",
|
|
1762
|
+
ui: {
|
|
1763
|
+
tab: "context",
|
|
1764
|
+
label: "TTSR Repeat Mode",
|
|
1765
|
+
description: "How rules can repeat: once per session or after a message gap",
|
|
1766
|
+
},
|
|
1767
|
+
},
|
|
1768
|
+
|
|
1769
|
+
"ttsr.repeatGap": {
|
|
1770
|
+
type: "number",
|
|
1771
|
+
default: 10,
|
|
1772
|
+
ui: {
|
|
1773
|
+
tab: "context",
|
|
1774
|
+
label: "TTSR Repeat Gap",
|
|
1775
|
+
description: "Messages before a rule can trigger again",
|
|
1776
|
+
options: [
|
|
1777
|
+
{ value: "5", label: "5 messages" },
|
|
1778
|
+
{ value: "10", label: "10 messages" },
|
|
1779
|
+
{ value: "15", label: "15 messages" },
|
|
1780
|
+
{ value: "20", label: "20 messages" },
|
|
1781
|
+
{ value: "30", label: "30 messages" },
|
|
1782
|
+
],
|
|
1783
|
+
},
|
|
1784
|
+
},
|
|
1785
|
+
|
|
1786
|
+
"ttsr.builtinRules": {
|
|
1787
|
+
type: "boolean",
|
|
1788
|
+
default: true,
|
|
1789
|
+
ui: {
|
|
1790
|
+
tab: "context",
|
|
1791
|
+
label: "Builtin Rules",
|
|
1792
|
+
description: "Load the default rules shipped with the agent (override individually with ttsr.disabledRules)",
|
|
1793
|
+
},
|
|
1794
|
+
},
|
|
1795
|
+
|
|
1796
|
+
"ttsr.disabledRules": {
|
|
1797
|
+
type: "array",
|
|
1798
|
+
default: [] as string[],
|
|
1799
|
+
ui: {
|
|
1800
|
+
tab: "context",
|
|
1801
|
+
label: "Disabled Rules",
|
|
1802
|
+
description: "Rule names to ignore entirely (applies to bundled defaults and your own rules)",
|
|
1803
|
+
},
|
|
1804
|
+
},
|
|
1805
|
+
|
|
1806
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
1807
|
+
// Editing
|
|
1808
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
1809
|
+
|
|
1810
|
+
// Edit tool
|
|
1811
|
+
"edit.mode": {
|
|
1812
|
+
type: "enum",
|
|
1813
|
+
values: EDIT_MODES,
|
|
1814
|
+
default: "hashline",
|
|
1815
|
+
ui: {
|
|
1816
|
+
tab: "editing",
|
|
1817
|
+
label: "Edit Mode",
|
|
1818
|
+
description: "Select the edit tool variant (replace, patch, hashline, or apply_patch)",
|
|
1819
|
+
},
|
|
1820
|
+
},
|
|
1821
|
+
|
|
1822
|
+
"edit.fuzzyMatch": {
|
|
1823
|
+
type: "boolean",
|
|
1824
|
+
default: true,
|
|
1825
|
+
ui: {
|
|
1826
|
+
tab: "editing",
|
|
1827
|
+
label: "Fuzzy Match",
|
|
1828
|
+
description: "Accept high-confidence fuzzy matches for whitespace differences",
|
|
1829
|
+
},
|
|
1830
|
+
},
|
|
1831
|
+
|
|
1832
|
+
"edit.fuzzyThreshold": {
|
|
1833
|
+
type: "number",
|
|
1834
|
+
default: 0.95,
|
|
1835
|
+
ui: {
|
|
1836
|
+
tab: "editing",
|
|
1837
|
+
label: "Fuzzy Match Threshold",
|
|
1838
|
+
description: "Similarity threshold for fuzzy matches",
|
|
1839
|
+
options: [
|
|
1840
|
+
{ value: "0.85", label: "0.85", description: "Lenient" },
|
|
1841
|
+
{ value: "0.90", label: "0.90", description: "Moderate" },
|
|
1842
|
+
{ value: "0.95", label: "0.95", description: "Default" },
|
|
1843
|
+
{ value: "0.98", label: "0.98", description: "Strict" },
|
|
1844
|
+
],
|
|
1845
|
+
},
|
|
1846
|
+
},
|
|
1847
|
+
|
|
1848
|
+
"edit.streamingAbort": {
|
|
1849
|
+
type: "boolean",
|
|
1850
|
+
default: false,
|
|
1851
|
+
ui: {
|
|
1852
|
+
tab: "editing",
|
|
1853
|
+
label: "Abort on Failed Preview",
|
|
1854
|
+
description: "Abort streaming edit tool calls when patch preview fails",
|
|
1855
|
+
},
|
|
1856
|
+
},
|
|
1857
|
+
|
|
1858
|
+
"edit.blockAutoGenerated": {
|
|
1859
|
+
type: "boolean",
|
|
1860
|
+
default: true,
|
|
1861
|
+
ui: {
|
|
1862
|
+
tab: "editing",
|
|
1863
|
+
label: "Block Auto-Generated Files",
|
|
1864
|
+
description: "Prevent editing of files that appear to be auto-generated (protoc, sqlc, swagger, etc.)",
|
|
1865
|
+
},
|
|
1866
|
+
},
|
|
1867
|
+
|
|
1868
|
+
readLineNumbers: {
|
|
1869
|
+
type: "boolean",
|
|
1870
|
+
default: false,
|
|
1871
|
+
ui: {
|
|
1872
|
+
tab: "editing",
|
|
1873
|
+
label: "Line Numbers",
|
|
1874
|
+
description: "Prepend line numbers to read tool output by default",
|
|
1875
|
+
},
|
|
1876
|
+
},
|
|
1877
|
+
|
|
1878
|
+
readHashLines: {
|
|
1879
|
+
type: "boolean",
|
|
1880
|
+
default: true,
|
|
1881
|
+
ui: {
|
|
1882
|
+
tab: "editing",
|
|
1883
|
+
label: "Hash Lines",
|
|
1884
|
+
description:
|
|
1885
|
+
"Include snapshot-tag headers and line numbers in read output for hashline edit mode ([PATH#TAG] plus LINE:content)",
|
|
1886
|
+
},
|
|
1887
|
+
},
|
|
1888
|
+
|
|
1889
|
+
"read.defaultLimit": {
|
|
1890
|
+
type: "number",
|
|
1891
|
+
default: 300,
|
|
1892
|
+
ui: {
|
|
1893
|
+
tab: "editing",
|
|
1894
|
+
label: "Default Read Limit",
|
|
1895
|
+
description: "Default number of lines returned when agent calls read without a limit",
|
|
1896
|
+
options: [
|
|
1897
|
+
{ value: "200", label: "200 lines" },
|
|
1898
|
+
{ value: "300", label: "300 lines" },
|
|
1899
|
+
{ value: "500", label: "500 lines" },
|
|
1900
|
+
{ value: "1000", label: "1000 lines" },
|
|
1901
|
+
{ value: "5000", label: "5000 lines" },
|
|
1902
|
+
],
|
|
1903
|
+
},
|
|
1904
|
+
},
|
|
1905
|
+
|
|
1906
|
+
"read.summarize.enabled": {
|
|
1907
|
+
type: "boolean",
|
|
1908
|
+
default: true,
|
|
1909
|
+
ui: {
|
|
1910
|
+
tab: "editing",
|
|
1911
|
+
label: "Read Summaries",
|
|
1912
|
+
description: "Return structural code summaries when read is called without an explicit selector",
|
|
1913
|
+
},
|
|
1914
|
+
},
|
|
1915
|
+
|
|
1916
|
+
"read.summarize.prose": {
|
|
1917
|
+
type: "boolean",
|
|
1918
|
+
default: false,
|
|
1919
|
+
ui: {
|
|
1920
|
+
tab: "editing",
|
|
1921
|
+
label: "Prose Summaries",
|
|
1922
|
+
description: "Return structural summaries for Markdown and plain text reads",
|
|
1923
|
+
},
|
|
1924
|
+
},
|
|
1925
|
+
|
|
1926
|
+
"read.summarize.minBodyLines": {
|
|
1927
|
+
type: "number",
|
|
1928
|
+
default: 4,
|
|
1929
|
+
ui: {
|
|
1930
|
+
tab: "editing",
|
|
1931
|
+
label: "Read Summary Body Lines",
|
|
1932
|
+
description: "Minimum multiline body or literal length before read summaries collapse it",
|
|
1933
|
+
},
|
|
1934
|
+
},
|
|
1935
|
+
|
|
1936
|
+
"read.summarize.minCommentLines": {
|
|
1937
|
+
type: "number",
|
|
1938
|
+
default: 6,
|
|
1939
|
+
ui: {
|
|
1940
|
+
tab: "editing",
|
|
1941
|
+
label: "Read Summary Comment Lines",
|
|
1942
|
+
description: "Minimum multiline block comment length before read summaries collapse it",
|
|
1943
|
+
},
|
|
1944
|
+
},
|
|
1945
|
+
|
|
1946
|
+
"read.summarize.minTotalLines": {
|
|
1947
|
+
type: "number",
|
|
1948
|
+
default: 100,
|
|
1949
|
+
ui: {
|
|
1950
|
+
tab: "editing",
|
|
1951
|
+
label: "Read Summary Minimum File Length",
|
|
1952
|
+
description: "Files with fewer total lines are read verbatim instead of structurally summarized",
|
|
1953
|
+
},
|
|
1954
|
+
},
|
|
1955
|
+
|
|
1956
|
+
"read.summarize.unfoldUntil": {
|
|
1957
|
+
type: "number",
|
|
1958
|
+
default: 50,
|
|
1959
|
+
ui: {
|
|
1960
|
+
tab: "editing",
|
|
1961
|
+
label: "Read Summary Unfold Target",
|
|
1962
|
+
description:
|
|
1963
|
+
"BFS-unfold elidable spans until the summary is at least this many visible lines. 0 keeps only the outermost elisions.",
|
|
1964
|
+
},
|
|
1965
|
+
},
|
|
1966
|
+
|
|
1967
|
+
"read.summarize.unfoldLimit": {
|
|
1968
|
+
type: "number",
|
|
1969
|
+
default: 100,
|
|
1970
|
+
ui: {
|
|
1971
|
+
tab: "editing",
|
|
1972
|
+
label: "Read Summary Unfold Ceiling",
|
|
1973
|
+
description:
|
|
1974
|
+
"Hard ceiling on summary size while BFS-unfolding. An unfold that would exceed this is reverted and unfolding stops.",
|
|
1975
|
+
},
|
|
1976
|
+
},
|
|
1977
|
+
|
|
1978
|
+
"read.toolResultPreview": {
|
|
1979
|
+
type: "boolean",
|
|
1980
|
+
default: false,
|
|
1981
|
+
ui: {
|
|
1982
|
+
tab: "editing",
|
|
1983
|
+
label: "Inline Read Previews",
|
|
1984
|
+
description: "Render read tool results inline in the transcript instead of summary rows",
|
|
1985
|
+
},
|
|
1986
|
+
},
|
|
1987
|
+
|
|
1988
|
+
// LSP
|
|
1989
|
+
"lsp.enabled": {
|
|
1990
|
+
type: "boolean",
|
|
1991
|
+
default: true,
|
|
1992
|
+
ui: { tab: "editing", label: "LSP", description: "Enable the lsp tool for language server protocol" },
|
|
1993
|
+
},
|
|
1994
|
+
|
|
1995
|
+
"lsp.lazy": {
|
|
1996
|
+
type: "boolean",
|
|
1997
|
+
default: true,
|
|
1998
|
+
ui: {
|
|
1999
|
+
tab: "editing",
|
|
2000
|
+
label: "Lazy LSP Startup",
|
|
2001
|
+
description:
|
|
2002
|
+
"Start language servers on first use (lsp tool or editing a matching file type) instead of at session startup",
|
|
2003
|
+
},
|
|
2004
|
+
},
|
|
2005
|
+
|
|
2006
|
+
"lsp.formatOnWrite": {
|
|
2007
|
+
type: "boolean",
|
|
2008
|
+
default: false,
|
|
2009
|
+
ui: {
|
|
2010
|
+
tab: "editing",
|
|
2011
|
+
label: "Format on Write",
|
|
2012
|
+
description: "Automatically format code files using LSP after writing",
|
|
2013
|
+
},
|
|
2014
|
+
},
|
|
2015
|
+
|
|
2016
|
+
"lsp.diagnosticsOnWrite": {
|
|
2017
|
+
type: "boolean",
|
|
2018
|
+
default: true,
|
|
2019
|
+
ui: {
|
|
2020
|
+
tab: "editing",
|
|
2021
|
+
label: "Diagnostics on Write",
|
|
2022
|
+
description: "Return LSP diagnostics after writing code files",
|
|
2023
|
+
},
|
|
2024
|
+
},
|
|
2025
|
+
|
|
2026
|
+
"lsp.diagnosticsOnEdit": {
|
|
2027
|
+
type: "boolean",
|
|
2028
|
+
default: false,
|
|
2029
|
+
ui: {
|
|
2030
|
+
tab: "editing",
|
|
2031
|
+
label: "Diagnostics on Edit",
|
|
2032
|
+
description: "Return LSP diagnostics after editing code files",
|
|
2033
|
+
},
|
|
2034
|
+
},
|
|
2035
|
+
|
|
2036
|
+
"lsp.diagnosticsDeduplicate": {
|
|
2037
|
+
type: "boolean",
|
|
2038
|
+
default: true,
|
|
2039
|
+
ui: {
|
|
2040
|
+
tab: "editing",
|
|
2041
|
+
label: "Deduplicate Diagnostics",
|
|
2042
|
+
description: "Suppress post-edit LSP diagnostics already shown for a file; only surface new or changed ones",
|
|
2043
|
+
},
|
|
2044
|
+
},
|
|
2045
|
+
|
|
2046
|
+
// Bash interceptor
|
|
2047
|
+
"bashInterceptor.enabled": {
|
|
2048
|
+
type: "boolean",
|
|
2049
|
+
default: false,
|
|
2050
|
+
ui: { tab: "editing", label: "Bash Interceptor", description: "Block shell commands that have dedicated tools" },
|
|
2051
|
+
},
|
|
2052
|
+
"bashInterceptor.patterns": { type: "array", default: DEFAULT_BASH_INTERCEPTOR_RULES },
|
|
2053
|
+
|
|
2054
|
+
"bash.stripTrailingHeadTail": {
|
|
2055
|
+
type: "boolean",
|
|
2056
|
+
default: true,
|
|
2057
|
+
ui: {
|
|
2058
|
+
tab: "editing",
|
|
2059
|
+
label: "Strip Trailing head/tail",
|
|
2060
|
+
description:
|
|
2061
|
+
"Silently drop trailing `| head`/`| tail` pipes from single-line bash commands. Output is already truncated automatically.",
|
|
2062
|
+
},
|
|
2063
|
+
},
|
|
2064
|
+
|
|
2065
|
+
// Shell output minimizer
|
|
2066
|
+
"shellMinimizer.enabled": {
|
|
2067
|
+
type: "boolean",
|
|
2068
|
+
default: true,
|
|
2069
|
+
ui: {
|
|
2070
|
+
tab: "editing",
|
|
2071
|
+
label: "Shell Minimizer",
|
|
2072
|
+
description: "Compress verbose shell output (git, npm, cargo, etc.) before returning it to the agent",
|
|
2073
|
+
},
|
|
2074
|
+
},
|
|
2075
|
+
"shellMinimizer.settingsPath": {
|
|
2076
|
+
type: "string",
|
|
2077
|
+
default: undefined,
|
|
2078
|
+
},
|
|
2079
|
+
"shellMinimizer.only": { type: "array", default: EMPTY_STRING_ARRAY },
|
|
2080
|
+
"shellMinimizer.except": { type: "array", default: EMPTY_STRING_ARRAY },
|
|
2081
|
+
"shellMinimizer.maxCaptureBytes": {
|
|
2082
|
+
type: "number",
|
|
2083
|
+
default: 4 * 1024 * 1024,
|
|
2084
|
+
},
|
|
2085
|
+
"shellMinimizer.sourceOutlineLevel": {
|
|
2086
|
+
type: "enum",
|
|
2087
|
+
values: ["default", "aggressive"] as const,
|
|
2088
|
+
default: "default",
|
|
2089
|
+
ui: {
|
|
2090
|
+
tab: "editing",
|
|
2091
|
+
label: "Shell Minimizer Source Outline",
|
|
2092
|
+
description: "Source outline mode for cat/read of source files: default or aggressive",
|
|
2093
|
+
},
|
|
2094
|
+
},
|
|
2095
|
+
"shellMinimizer.legacyFilters": {
|
|
2096
|
+
type: "boolean",
|
|
2097
|
+
default: undefined,
|
|
2098
|
+
},
|
|
2099
|
+
|
|
2100
|
+
// Eval (per-backend toggles; add more as new backends ship, e.g. eval.ts)
|
|
2101
|
+
"eval.py": {
|
|
2102
|
+
type: "boolean",
|
|
2103
|
+
default: true,
|
|
2104
|
+
ui: {
|
|
2105
|
+
tab: "editing",
|
|
2106
|
+
label: "Eval: Python backend",
|
|
2107
|
+
description: "Allow the eval tool to dispatch to the IPython kernel",
|
|
2108
|
+
},
|
|
2109
|
+
},
|
|
2110
|
+
|
|
2111
|
+
"eval.js": {
|
|
2112
|
+
type: "boolean",
|
|
2113
|
+
default: true,
|
|
2114
|
+
ui: {
|
|
2115
|
+
tab: "editing",
|
|
2116
|
+
label: "Eval: JavaScript backend",
|
|
2117
|
+
description: "Allow the eval tool to dispatch to the in-process JavaScript runtime",
|
|
2118
|
+
},
|
|
2119
|
+
},
|
|
2120
|
+
|
|
2121
|
+
// Python kernel knobs (consumed by the eval py backend and the /python slash command)
|
|
2122
|
+
"python.kernelMode": {
|
|
2123
|
+
type: "enum",
|
|
2124
|
+
values: ["session", "per-call"] as const,
|
|
2125
|
+
default: "session",
|
|
2126
|
+
ui: {
|
|
2127
|
+
tab: "editing",
|
|
2128
|
+
label: "Python Kernel Mode",
|
|
2129
|
+
description: "Whether to keep IPython kernel alive across calls",
|
|
2130
|
+
},
|
|
2131
|
+
},
|
|
2132
|
+
"python.interpreter": {
|
|
2133
|
+
type: "string",
|
|
2134
|
+
default: "",
|
|
2135
|
+
ui: {
|
|
2136
|
+
tab: "editing",
|
|
2137
|
+
label: "Python Interpreter",
|
|
2138
|
+
description:
|
|
2139
|
+
"Optional path to an exact Python executable. When set, automatic Python runtime discovery is skipped.",
|
|
2140
|
+
},
|
|
2141
|
+
},
|
|
2142
|
+
|
|
2143
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
2144
|
+
// Tools
|
|
2145
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
2146
|
+
|
|
2147
|
+
// Tool approval policies
|
|
2148
|
+
"tools.approval": {
|
|
2149
|
+
type: "record",
|
|
2150
|
+
default: {},
|
|
2151
|
+
ui: {
|
|
2152
|
+
tab: "tools",
|
|
2153
|
+
label: "Tool Approval Policies",
|
|
2154
|
+
description:
|
|
2155
|
+
"Per-tool approval policies. Set to 'allow' to auto-approve, 'prompt' to require confirmation, or 'deny' to block. Overrides are honored in every approval mode.",
|
|
2156
|
+
},
|
|
2157
|
+
},
|
|
2158
|
+
|
|
2159
|
+
// Default tool approval mode (interaction tab, but governs the tool wrapper).
|
|
2160
|
+
// "always-ask" — auto-approves read-tier tools only; prompts for write/exec.
|
|
2161
|
+
// "write" — auto-approves read and write-tier tools; prompts for exec.
|
|
2162
|
+
// "yolo" — auto-approves every tier.
|
|
2163
|
+
"tools.approvalMode": {
|
|
2164
|
+
type: "enum",
|
|
2165
|
+
values: ["always-ask", "write", "yolo"] as const,
|
|
2166
|
+
default: "yolo",
|
|
2167
|
+
ui: {
|
|
2168
|
+
tab: "interaction",
|
|
2169
|
+
label: "Tool Approval",
|
|
2170
|
+
description:
|
|
2171
|
+
"Default approval behaviour for tool calls. 'Always ask' auto-approves read-only tools only. 'Write' auto-approves read and workspace-write tools. 'Yolo' auto-approves all tiers; user policy may still prompt or block.",
|
|
2172
|
+
options: [
|
|
2173
|
+
{
|
|
2174
|
+
value: "always-ask",
|
|
2175
|
+
label: "Always ask",
|
|
2176
|
+
description: "Auto-approve read-only tools; require confirmation for write and exec tools.",
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
value: "write",
|
|
2180
|
+
label: "Write",
|
|
2181
|
+
description:
|
|
2182
|
+
"Auto-approve read-only and write tools; require confirmation for exec tools such as bash, eval, browser, task, and ssh.",
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
value: "yolo",
|
|
2186
|
+
label: "Yolo",
|
|
2187
|
+
description:
|
|
2188
|
+
"Auto-approve read, write, and exec tools. User policy can still require confirmation or block calls.",
|
|
2189
|
+
},
|
|
2190
|
+
],
|
|
2191
|
+
},
|
|
2192
|
+
},
|
|
2193
|
+
|
|
2194
|
+
// Todo tool
|
|
2195
|
+
"todo.enabled": {
|
|
2196
|
+
type: "boolean",
|
|
2197
|
+
default: true,
|
|
2198
|
+
ui: { tab: "tools", label: "Todos", description: "Enable the todo tool for task tracking" },
|
|
2199
|
+
},
|
|
2200
|
+
|
|
2201
|
+
"todo.reminders": {
|
|
2202
|
+
type: "boolean",
|
|
2203
|
+
default: true,
|
|
2204
|
+
ui: { tab: "tools", label: "Todo Reminders", description: "Remind agent to complete todos before stopping" },
|
|
2205
|
+
},
|
|
2206
|
+
|
|
2207
|
+
"todo.reminders.max": {
|
|
2208
|
+
type: "number",
|
|
2209
|
+
default: 3,
|
|
2210
|
+
ui: {
|
|
2211
|
+
tab: "tools",
|
|
2212
|
+
label: "Todo Reminder Limit",
|
|
2213
|
+
description: "Maximum reminders to complete todos before giving up",
|
|
2214
|
+
options: [
|
|
2215
|
+
{ value: "1", label: "1 reminder" },
|
|
2216
|
+
{ value: "2", label: "2 reminders" },
|
|
2217
|
+
{ value: "3", label: "3 reminders" },
|
|
2218
|
+
{ value: "5", label: "5 reminders" },
|
|
2219
|
+
],
|
|
2220
|
+
},
|
|
2221
|
+
},
|
|
2222
|
+
|
|
2223
|
+
"todo.eager": {
|
|
2224
|
+
type: "boolean",
|
|
2225
|
+
default: false,
|
|
2226
|
+
ui: {
|
|
2227
|
+
tab: "tools",
|
|
2228
|
+
label: "Create Todos Automatically",
|
|
2229
|
+
description: "Automatically create a comprehensive todo list after the first message",
|
|
2230
|
+
},
|
|
2231
|
+
},
|
|
2232
|
+
|
|
2233
|
+
"bash.enabled": {
|
|
2234
|
+
type: "boolean",
|
|
2235
|
+
default: true,
|
|
2236
|
+
ui: { tab: "tools", label: "Bash", description: "Enable the bash tool for shell command execution" },
|
|
2237
|
+
},
|
|
2238
|
+
|
|
2239
|
+
// Search and AST tools
|
|
2240
|
+
"find.enabled": {
|
|
2241
|
+
type: "boolean",
|
|
2242
|
+
default: true,
|
|
2243
|
+
ui: { tab: "tools", label: "Find", description: "Enable the find tool for file searching" },
|
|
2244
|
+
},
|
|
2245
|
+
|
|
2246
|
+
"search.enabled": {
|
|
2247
|
+
type: "boolean",
|
|
2248
|
+
default: true,
|
|
2249
|
+
ui: { tab: "tools", label: "Search", description: "Enable the search tool for content searching" },
|
|
2250
|
+
},
|
|
2251
|
+
|
|
2252
|
+
"search.contextBefore": {
|
|
2253
|
+
type: "number",
|
|
2254
|
+
default: 1,
|
|
2255
|
+
ui: {
|
|
2256
|
+
tab: "tools",
|
|
2257
|
+
label: "Search Context Before",
|
|
2258
|
+
description: "Lines of context before each search match",
|
|
2259
|
+
options: [
|
|
2260
|
+
{ value: "0", label: "0 lines" },
|
|
2261
|
+
{ value: "1", label: "1 line" },
|
|
2262
|
+
{ value: "2", label: "2 lines" },
|
|
2263
|
+
{ value: "3", label: "3 lines" },
|
|
2264
|
+
{ value: "5", label: "5 lines" },
|
|
2265
|
+
],
|
|
2266
|
+
},
|
|
2267
|
+
},
|
|
2268
|
+
|
|
2269
|
+
"search.contextAfter": {
|
|
2270
|
+
type: "number",
|
|
2271
|
+
default: 3,
|
|
2272
|
+
ui: {
|
|
2273
|
+
tab: "tools",
|
|
2274
|
+
label: "Search Context After",
|
|
2275
|
+
description: "Lines of context after each search match",
|
|
2276
|
+
options: [
|
|
2277
|
+
{ value: "0", label: "0 lines" },
|
|
2278
|
+
{ value: "1", label: "1 line" },
|
|
2279
|
+
{ value: "2", label: "2 lines" },
|
|
2280
|
+
{ value: "3", label: "3 lines" },
|
|
2281
|
+
{ value: "5", label: "5 lines" },
|
|
2282
|
+
{ value: "10", label: "10 lines" },
|
|
2283
|
+
],
|
|
2284
|
+
},
|
|
2285
|
+
},
|
|
2286
|
+
|
|
2287
|
+
"astGrep.enabled": {
|
|
2288
|
+
type: "boolean",
|
|
2289
|
+
default: true,
|
|
2290
|
+
ui: {
|
|
2291
|
+
tab: "tools",
|
|
2292
|
+
label: "AST Grep",
|
|
2293
|
+
description: "Enable the ast_grep tool for structural AST search",
|
|
2294
|
+
},
|
|
2295
|
+
},
|
|
2296
|
+
|
|
2297
|
+
"astEdit.enabled": {
|
|
2298
|
+
type: "boolean",
|
|
2299
|
+
default: true,
|
|
2300
|
+
ui: {
|
|
2301
|
+
tab: "tools",
|
|
2302
|
+
label: "AST Edit",
|
|
2303
|
+
description: "Enable the ast_edit tool for structural AST rewrites",
|
|
2304
|
+
},
|
|
2305
|
+
},
|
|
2306
|
+
|
|
2307
|
+
"irc.timeoutMs": {
|
|
2308
|
+
type: "number",
|
|
2309
|
+
default: 120_000,
|
|
2310
|
+
ui: {
|
|
2311
|
+
tab: "tools",
|
|
2312
|
+
label: "IRC Timeout",
|
|
2313
|
+
description: "Default timeout for irc wait (and send await:true) in milliseconds; 0 disables the timeout",
|
|
2314
|
+
options: [
|
|
2315
|
+
{ value: "0", label: "Disabled" },
|
|
2316
|
+
{ value: "30000", label: "30 seconds" },
|
|
2317
|
+
{ value: "60000", label: "1 minute" },
|
|
2318
|
+
{ value: "120000", label: "2 minutes" },
|
|
2319
|
+
{ value: "300000", label: "5 minutes" },
|
|
2320
|
+
],
|
|
2321
|
+
},
|
|
2322
|
+
},
|
|
2323
|
+
|
|
2324
|
+
// Optional tools
|
|
2325
|
+
|
|
2326
|
+
"renderMermaid.enabled": {
|
|
2327
|
+
type: "boolean",
|
|
2328
|
+
default: false,
|
|
2329
|
+
ui: {
|
|
2330
|
+
tab: "tools",
|
|
2331
|
+
label: "Render Mermaid",
|
|
2332
|
+
description: "Enable the render_mermaid tool for Mermaid-to-ASCII rendering",
|
|
2333
|
+
},
|
|
2334
|
+
},
|
|
2335
|
+
|
|
2336
|
+
"debug.enabled": {
|
|
2337
|
+
type: "boolean",
|
|
2338
|
+
default: true,
|
|
2339
|
+
ui: {
|
|
2340
|
+
tab: "tools",
|
|
2341
|
+
label: "Debug",
|
|
2342
|
+
description: "Enable the debug tool for DAP-based debugging",
|
|
2343
|
+
},
|
|
2344
|
+
},
|
|
2345
|
+
|
|
2346
|
+
"tts.enabled": {
|
|
2347
|
+
type: "boolean",
|
|
2348
|
+
default: false,
|
|
2349
|
+
ui: {
|
|
2350
|
+
tab: "tools",
|
|
2351
|
+
label: "Text-to-Speech",
|
|
2352
|
+
description: "Enable the tts tool for xAI Grok Voice speech synthesis",
|
|
2353
|
+
},
|
|
2354
|
+
},
|
|
2355
|
+
|
|
2356
|
+
"inspect_image.enabled": {
|
|
2357
|
+
type: "boolean",
|
|
2358
|
+
default: false,
|
|
2359
|
+
ui: {
|
|
2360
|
+
tab: "tools",
|
|
2361
|
+
label: "Inspect Image",
|
|
2362
|
+
description: "Enable the inspect_image tool, delegating image understanding to a vision-capable model",
|
|
2363
|
+
},
|
|
2364
|
+
},
|
|
2365
|
+
|
|
2366
|
+
"checkpoint.enabled": {
|
|
2367
|
+
type: "boolean",
|
|
2368
|
+
default: false,
|
|
2369
|
+
ui: {
|
|
2370
|
+
tab: "tools",
|
|
2371
|
+
label: "Checkpoint/Rewind",
|
|
2372
|
+
description: "Enable the checkpoint and rewind tools for context checkpointing",
|
|
2373
|
+
},
|
|
2374
|
+
},
|
|
2375
|
+
|
|
2376
|
+
// Fetching and browser
|
|
2377
|
+
"fetch.enabled": {
|
|
2378
|
+
type: "boolean",
|
|
2379
|
+
default: true,
|
|
2380
|
+
ui: { tab: "tools", label: "Read URLs", description: "Allow the read tool to fetch and process URLs" },
|
|
2381
|
+
},
|
|
2382
|
+
|
|
2383
|
+
"vault.enabled": {
|
|
2384
|
+
type: "boolean",
|
|
2385
|
+
default: false,
|
|
2386
|
+
ui: {
|
|
2387
|
+
tab: "tools",
|
|
2388
|
+
label: "Obsidian Vault",
|
|
2389
|
+
description:
|
|
2390
|
+
"Enable the vault:// internal URL for reading and editing Obsidian vault content via the Obsidian CLI. When disabled, vault:// resolution is refused and the vault:// entry is omitted from the system prompt.",
|
|
2391
|
+
},
|
|
2392
|
+
},
|
|
2393
|
+
|
|
2394
|
+
"github.enabled": {
|
|
2395
|
+
type: "boolean",
|
|
2396
|
+
default: false,
|
|
2397
|
+
ui: {
|
|
2398
|
+
tab: "tools",
|
|
2399
|
+
label: "GitHub CLI",
|
|
2400
|
+
description:
|
|
2401
|
+
"Enable the github tool (op-based dispatch for repository, issue, pull request, diff, search, checkout, push, and Actions watch workflows)",
|
|
2402
|
+
},
|
|
2403
|
+
},
|
|
2404
|
+
|
|
2405
|
+
"github.cache.enabled": {
|
|
2406
|
+
type: "boolean",
|
|
2407
|
+
default: true,
|
|
2408
|
+
ui: {
|
|
2409
|
+
tab: "tools",
|
|
2410
|
+
label: "GitHub view cache",
|
|
2411
|
+
description: "Cache rendered issue/PR view output in ~/.omp/cache/github-cache.db so repeated reads are free",
|
|
2412
|
+
},
|
|
2413
|
+
},
|
|
2414
|
+
|
|
2415
|
+
"github.cache.softTtlSec": {
|
|
2416
|
+
type: "number",
|
|
2417
|
+
default: 300,
|
|
2418
|
+
ui: {
|
|
2419
|
+
tab: "tools",
|
|
2420
|
+
label: "GitHub cache soft TTL (seconds)",
|
|
2421
|
+
description: "Within this window, cached issue/PR view rows are returned directly. Default 5 minutes.",
|
|
2422
|
+
},
|
|
2423
|
+
},
|
|
2424
|
+
|
|
2425
|
+
"github.cache.hardTtlSec": {
|
|
2426
|
+
type: "number",
|
|
2427
|
+
default: 604800,
|
|
2428
|
+
ui: {
|
|
2429
|
+
tab: "tools",
|
|
2430
|
+
label: "GitHub cache hard TTL (seconds)",
|
|
2431
|
+
description:
|
|
2432
|
+
"Past soft TTL but within hard TTL, the tool returns the cached row and refreshes it in the background. Past hard TTL, the row is dropped. Default 7 days.",
|
|
2433
|
+
},
|
|
2434
|
+
},
|
|
2435
|
+
|
|
2436
|
+
"web_search.enabled": {
|
|
2437
|
+
type: "boolean",
|
|
2438
|
+
default: true,
|
|
2439
|
+
ui: { tab: "tools", label: "Web Search", description: "Enable the web_search tool for web searching" },
|
|
2440
|
+
},
|
|
2441
|
+
|
|
2442
|
+
"browser.enabled": {
|
|
2443
|
+
type: "boolean",
|
|
2444
|
+
default: true,
|
|
2445
|
+
ui: {
|
|
2446
|
+
tab: "tools",
|
|
2447
|
+
label: "Browser",
|
|
2448
|
+
description: "Enable the browser tool (Ulixee Hero)",
|
|
2449
|
+
},
|
|
2450
|
+
},
|
|
2451
|
+
|
|
2452
|
+
"browser.headless": {
|
|
2453
|
+
type: "boolean",
|
|
2454
|
+
default: true,
|
|
2455
|
+
ui: {
|
|
2456
|
+
tab: "tools",
|
|
2457
|
+
label: "Headless Browser",
|
|
2458
|
+
description: "Launch browser in headless mode (disable to show browser UI)",
|
|
2459
|
+
},
|
|
2460
|
+
},
|
|
2461
|
+
"browser.screenshotDir": {
|
|
2462
|
+
type: "string",
|
|
2463
|
+
default: undefined,
|
|
2464
|
+
ui: {
|
|
2465
|
+
tab: "tools",
|
|
2466
|
+
label: "Screenshot directory",
|
|
2467
|
+
description:
|
|
2468
|
+
"Directory to save screenshots. If unset, screenshots go to a temp file. Supports ~. Examples: ~/Downloads, ~/Desktop, /sdcard/Download (Android)",
|
|
2469
|
+
},
|
|
2470
|
+
},
|
|
2471
|
+
|
|
2472
|
+
// Tool execution
|
|
2473
|
+
"tools.intentTracing": {
|
|
2474
|
+
type: "boolean",
|
|
2475
|
+
default: true,
|
|
2476
|
+
ui: {
|
|
2477
|
+
tab: "tools",
|
|
2478
|
+
label: "Intent Tracing",
|
|
2479
|
+
description: "Ask the agent to describe the intent of each tool call before executing it",
|
|
2480
|
+
},
|
|
2481
|
+
},
|
|
2482
|
+
|
|
2483
|
+
"tools.maxTimeout": {
|
|
2484
|
+
type: "number",
|
|
2485
|
+
default: 0,
|
|
2486
|
+
ui: {
|
|
2487
|
+
tab: "tools",
|
|
2488
|
+
label: "Max Tool Timeout",
|
|
2489
|
+
description: "Maximum timeout in seconds the agent can set for any tool (0 = no limit)",
|
|
2490
|
+
options: [
|
|
2491
|
+
{ value: "0", label: "No limit" },
|
|
2492
|
+
{ value: "30", label: "30 seconds" },
|
|
2493
|
+
{ value: "60", label: "60 seconds" },
|
|
2494
|
+
{ value: "120", label: "120 seconds" },
|
|
2495
|
+
{ value: "300", label: "5 minutes" },
|
|
2496
|
+
{ value: "600", label: "10 minutes" },
|
|
2497
|
+
],
|
|
2498
|
+
},
|
|
2499
|
+
},
|
|
2500
|
+
|
|
2501
|
+
// Async jobs
|
|
2502
|
+
"async.enabled": {
|
|
2503
|
+
type: "boolean",
|
|
2504
|
+
default: false,
|
|
2505
|
+
ui: {
|
|
2506
|
+
tab: "tools",
|
|
2507
|
+
label: "Async Execution",
|
|
2508
|
+
description: "Enable async bash commands",
|
|
2509
|
+
},
|
|
2510
|
+
},
|
|
2511
|
+
|
|
2512
|
+
"async.maxJobs": {
|
|
2513
|
+
type: "number",
|
|
2514
|
+
default: 100,
|
|
2515
|
+
},
|
|
2516
|
+
|
|
2517
|
+
"async.pollWaitDuration": {
|
|
2518
|
+
type: "enum",
|
|
2519
|
+
values: ["5s", "10s", "30s", "1m", "5m"] as const,
|
|
2520
|
+
default: "30s",
|
|
2521
|
+
ui: {
|
|
2522
|
+
tab: "tools",
|
|
2523
|
+
label: "Poll Wait Duration",
|
|
2524
|
+
description: "How long the poll tool waits for background job updates before returning the current state",
|
|
2525
|
+
options: [
|
|
2526
|
+
{ value: "5s", label: "5 seconds" },
|
|
2527
|
+
{ value: "10s", label: "10 seconds" },
|
|
2528
|
+
{ value: "30s", label: "30 seconds", description: "Default" },
|
|
2529
|
+
{ value: "1m", label: "1 minute" },
|
|
2530
|
+
{ value: "5m", label: "5 minutes" },
|
|
2531
|
+
],
|
|
2532
|
+
},
|
|
2533
|
+
},
|
|
2534
|
+
|
|
2535
|
+
"bash.autoBackground.enabled": {
|
|
2536
|
+
type: "boolean",
|
|
2537
|
+
default: false,
|
|
2538
|
+
ui: {
|
|
2539
|
+
tab: "tools",
|
|
2540
|
+
label: "Bash Auto-Background",
|
|
2541
|
+
description: "Automatically background long-running bash commands and deliver the result later",
|
|
2542
|
+
},
|
|
2543
|
+
},
|
|
2544
|
+
|
|
2545
|
+
"bash.autoBackground.thresholdMs": {
|
|
2546
|
+
type: "number",
|
|
2547
|
+
default: 60_000,
|
|
2548
|
+
},
|
|
2549
|
+
|
|
2550
|
+
// Tool Discovery
|
|
2551
|
+
"tools.discoveryMode": {
|
|
2552
|
+
type: "enum",
|
|
2553
|
+
values: ["auto", "off", "mcp-only", "all"] as const,
|
|
2554
|
+
default: "auto",
|
|
2555
|
+
ui: {
|
|
2556
|
+
tab: "tools",
|
|
2557
|
+
label: "Tool Discovery",
|
|
2558
|
+
description:
|
|
2559
|
+
"Hide tools behind a search tool to save tokens. 'auto' hides MCP tools once the tool set has more than 40 tools; 'mcp-only' always hides MCP tools; 'all' hides all non-essential built-ins too.",
|
|
2560
|
+
},
|
|
2561
|
+
},
|
|
2562
|
+
|
|
2563
|
+
"tools.essentialOverride": {
|
|
2564
|
+
type: "array",
|
|
2565
|
+
default: [] as string[],
|
|
2566
|
+
ui: {
|
|
2567
|
+
tab: "tools",
|
|
2568
|
+
label: "Essential Tools Override",
|
|
2569
|
+
description:
|
|
2570
|
+
"Override the always-loaded built-in tools (default: read, bash, edit). Leave empty to use defaults.",
|
|
2571
|
+
},
|
|
2572
|
+
},
|
|
2573
|
+
|
|
2574
|
+
// MCP
|
|
2575
|
+
"mcp.enableProjectConfig": {
|
|
2576
|
+
type: "boolean",
|
|
2577
|
+
default: true,
|
|
2578
|
+
ui: { tab: "tools", label: "MCP Project Config", description: "Load .mcp.json/mcp.json from project root" },
|
|
2579
|
+
},
|
|
2580
|
+
|
|
2581
|
+
"mcp.discoveryMode": {
|
|
2582
|
+
type: "boolean",
|
|
2583
|
+
default: false,
|
|
2584
|
+
ui: {
|
|
2585
|
+
tab: "tools",
|
|
2586
|
+
label: "MCP Tool Discovery",
|
|
2587
|
+
description: "Hide MCP tools by default and expose them through a tool discovery tool",
|
|
2588
|
+
},
|
|
2589
|
+
},
|
|
2590
|
+
|
|
2591
|
+
"mcp.discoveryDefaultServers": {
|
|
2592
|
+
type: "array",
|
|
2593
|
+
default: [] as string[],
|
|
2594
|
+
ui: {
|
|
2595
|
+
tab: "tools",
|
|
2596
|
+
label: "MCP Discovery Default Servers",
|
|
2597
|
+
description: "Keep MCP tools from these servers visible while discovery mode hides other MCP tools",
|
|
2598
|
+
},
|
|
2599
|
+
},
|
|
2600
|
+
|
|
2601
|
+
"mcp.notifications": {
|
|
2602
|
+
type: "boolean",
|
|
2603
|
+
default: false,
|
|
2604
|
+
ui: {
|
|
2605
|
+
tab: "tools",
|
|
2606
|
+
label: "MCP Update Injection",
|
|
2607
|
+
description: "Inject MCP resource updates into the agent conversation",
|
|
2608
|
+
},
|
|
2609
|
+
},
|
|
2610
|
+
|
|
2611
|
+
"mcp.notificationDebounceMs": {
|
|
2612
|
+
type: "number",
|
|
2613
|
+
default: 500,
|
|
2614
|
+
ui: {
|
|
2615
|
+
tab: "tools",
|
|
2616
|
+
label: "MCP Notification Debounce",
|
|
2617
|
+
description: "Debounce window for MCP resource update notifications before injecting into conversation",
|
|
2618
|
+
},
|
|
2619
|
+
},
|
|
2620
|
+
|
|
2621
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
2622
|
+
// Tasks
|
|
2623
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
2624
|
+
|
|
2625
|
+
// Plan mode
|
|
2626
|
+
"plan.enabled": {
|
|
2627
|
+
type: "boolean",
|
|
2628
|
+
default: true,
|
|
2629
|
+
ui: {
|
|
2630
|
+
tab: "tasks",
|
|
2631
|
+
label: "Plan Mode",
|
|
2632
|
+
description: "Enable plan mode for read-only exploration and planning before execution",
|
|
2633
|
+
},
|
|
2634
|
+
},
|
|
2635
|
+
|
|
2636
|
+
"goal.enabled": {
|
|
2637
|
+
type: "boolean",
|
|
2638
|
+
default: true,
|
|
2639
|
+
ui: {
|
|
2640
|
+
tab: "tasks",
|
|
2641
|
+
label: "Goal Mode",
|
|
2642
|
+
description: "Enable per-session goal mode and the hidden goal tool",
|
|
2643
|
+
},
|
|
2644
|
+
},
|
|
2645
|
+
|
|
2646
|
+
"goal.statusInFooter": {
|
|
2647
|
+
type: "boolean",
|
|
2648
|
+
default: true,
|
|
2649
|
+
ui: {
|
|
2650
|
+
tab: "tasks",
|
|
2651
|
+
label: "Goal Status In Footer",
|
|
2652
|
+
description: "Show token budget alongside the goal indicator in the status line",
|
|
2653
|
+
},
|
|
2654
|
+
},
|
|
2655
|
+
|
|
2656
|
+
"goal.continuationModes": {
|
|
2657
|
+
type: "array",
|
|
2658
|
+
default: ["interactive"],
|
|
2659
|
+
ui: {
|
|
2660
|
+
tab: "tasks",
|
|
2661
|
+
label: "Goal Continuation Modes",
|
|
2662
|
+
description: "Run modes where active goals may auto-continue between turns",
|
|
2663
|
+
},
|
|
2664
|
+
},
|
|
2665
|
+
|
|
2666
|
+
// Delegation
|
|
2667
|
+
"task.isolation.mode": {
|
|
2668
|
+
type: "enum",
|
|
2669
|
+
values: [
|
|
2670
|
+
"none",
|
|
2671
|
+
"auto",
|
|
2672
|
+
"apfs",
|
|
2673
|
+
"btrfs",
|
|
2674
|
+
"zfs",
|
|
2675
|
+
"reflink",
|
|
2676
|
+
"overlayfs",
|
|
2677
|
+
"projfs",
|
|
2678
|
+
"block-clone",
|
|
2679
|
+
"rcopy",
|
|
2680
|
+
] as const,
|
|
2681
|
+
default: "none",
|
|
2682
|
+
ui: {
|
|
2683
|
+
tab: "tasks",
|
|
2684
|
+
label: "Isolation Mode",
|
|
2685
|
+
description:
|
|
2686
|
+
'Isolation backend for subagents. "auto" lets the native PAL pick the best available backend (CoW-aware filesystems, then overlayfs/ProjFS, then a git worktree / recursive-copy fallback).',
|
|
2687
|
+
options: [
|
|
2688
|
+
{ value: "none", label: "None", description: "No isolation" },
|
|
2689
|
+
{ value: "auto", label: "Auto", description: "Let the PAL pick the best available backend" },
|
|
2690
|
+
{ value: "apfs", label: "APFS", description: "macOS clonefile reflink (APFS)" },
|
|
2691
|
+
{ value: "btrfs", label: "btrfs", description: "btrfs subvolume snapshot" },
|
|
2692
|
+
{ value: "zfs", label: "ZFS", description: "ZFS snapshot + clone" },
|
|
2693
|
+
{ value: "reflink", label: "Reflink", description: "Linux FICLONE per-file reflink" },
|
|
2694
|
+
{
|
|
2695
|
+
value: "overlayfs",
|
|
2696
|
+
label: "Overlayfs",
|
|
2697
|
+
description: "Linux kernel overlay (or fuse-overlayfs fallback)",
|
|
2698
|
+
},
|
|
2699
|
+
{ value: "projfs", label: "ProjFS", description: "Windows Projected File System" },
|
|
2700
|
+
{
|
|
2701
|
+
value: "block-clone",
|
|
2702
|
+
label: "Block clone",
|
|
2703
|
+
description: "Windows FSCTL_DUPLICATE_EXTENTS_TO_FILE (NTFS/ReFS)",
|
|
2704
|
+
},
|
|
2705
|
+
{
|
|
2706
|
+
value: "rcopy",
|
|
2707
|
+
label: "Recursive copy",
|
|
2708
|
+
description: "git worktree if available, otherwise recursive copy",
|
|
2709
|
+
},
|
|
2710
|
+
],
|
|
2711
|
+
},
|
|
2712
|
+
},
|
|
2713
|
+
|
|
2714
|
+
"task.isolation.merge": {
|
|
2715
|
+
type: "enum",
|
|
2716
|
+
values: ["patch", "branch"] as const,
|
|
2717
|
+
default: "patch",
|
|
2718
|
+
ui: {
|
|
2719
|
+
tab: "tasks",
|
|
2720
|
+
label: "Isolation Merge Strategy",
|
|
2721
|
+
description: "How isolated task changes are integrated (patch apply or branch merge)",
|
|
2722
|
+
options: [
|
|
2723
|
+
{ value: "patch", label: "Patch", description: "Combine diffs and git apply" },
|
|
2724
|
+
{ value: "branch", label: "Branch", description: "Commit per task, merge with --no-ff" },
|
|
2725
|
+
],
|
|
2726
|
+
},
|
|
2727
|
+
},
|
|
2728
|
+
|
|
2729
|
+
"task.isolation.commits": {
|
|
2730
|
+
type: "enum",
|
|
2731
|
+
values: ["generic", "ai"] as const,
|
|
2732
|
+
default: "generic",
|
|
2733
|
+
ui: {
|
|
2734
|
+
tab: "tasks",
|
|
2735
|
+
label: "Isolation Commit Style",
|
|
2736
|
+
description: "Commit message style for nested repo changes (generic or AI-generated)",
|
|
2737
|
+
options: [
|
|
2738
|
+
{ value: "generic", label: "Generic", description: "Static commit message" },
|
|
2739
|
+
{ value: "ai", label: "AI", description: "AI-generated commit message from diff" },
|
|
2740
|
+
],
|
|
2741
|
+
},
|
|
2742
|
+
},
|
|
2743
|
+
|
|
2744
|
+
"task.eager": {
|
|
2745
|
+
type: "boolean",
|
|
2746
|
+
default: false,
|
|
2747
|
+
ui: {
|
|
2748
|
+
tab: "tasks",
|
|
2749
|
+
label: "Prefer Task Delegation",
|
|
2750
|
+
description: "Encourage the agent to delegate work to subagents unless changes are trivial",
|
|
2751
|
+
},
|
|
2752
|
+
},
|
|
2753
|
+
|
|
2754
|
+
"task.batch": {
|
|
2755
|
+
type: "boolean",
|
|
2756
|
+
default: true,
|
|
2757
|
+
ui: {
|
|
2758
|
+
tab: "tasks",
|
|
2759
|
+
label: "Batch Task Calls",
|
|
2760
|
+
description:
|
|
2761
|
+
"Switch the task tool to its batch shape: one call carries { agent, context, tasks[] } — one subagent per item (with per-item isolation) and a required shared context prepended to every assignment. Each spawn still runs as an independent background agent with the normal idle/parked lifecycle. Disable to restore the flat single-spawn schema.",
|
|
2762
|
+
},
|
|
2763
|
+
},
|
|
2764
|
+
|
|
2765
|
+
"task.maxConcurrency": {
|
|
2766
|
+
type: "number",
|
|
2767
|
+
default: 32,
|
|
2768
|
+
ui: {
|
|
2769
|
+
tab: "tasks",
|
|
2770
|
+
label: "Max Concurrent Tasks",
|
|
2771
|
+
description: "Concurrent limit for subagents",
|
|
2772
|
+
options: [
|
|
2773
|
+
{ value: "0", label: "Unlimited" },
|
|
2774
|
+
{ value: "1", label: "1 task" },
|
|
2775
|
+
{ value: "2", label: "2 tasks" },
|
|
2776
|
+
{ value: "4", label: "4 tasks" },
|
|
2777
|
+
{ value: "8", label: "8 tasks" },
|
|
2778
|
+
{ value: "16", label: "16 tasks" },
|
|
2779
|
+
{ value: "32", label: "32 tasks" },
|
|
2780
|
+
{ value: "64", label: "64 tasks" },
|
|
2781
|
+
],
|
|
2782
|
+
},
|
|
2783
|
+
},
|
|
2784
|
+
|
|
2785
|
+
"task.enableLsp": {
|
|
2786
|
+
type: "boolean",
|
|
2787
|
+
default: false,
|
|
2788
|
+
ui: {
|
|
2789
|
+
tab: "tasks",
|
|
2790
|
+
label: "LSP in Subagents",
|
|
2791
|
+
description:
|
|
2792
|
+
"Allow subagents spawned via the task tool to use the lsp tool. Off by default to keep subagents cheap; enable when LSP-aware delegation is worth the extra tokens.",
|
|
2793
|
+
},
|
|
2794
|
+
},
|
|
2795
|
+
|
|
2796
|
+
"task.maxRecursionDepth": {
|
|
2797
|
+
type: "number",
|
|
2798
|
+
default: 2,
|
|
2799
|
+
ui: {
|
|
2800
|
+
tab: "tasks",
|
|
2801
|
+
label: "Max Task Recursion",
|
|
2802
|
+
description: "How many levels deep subagents can spawn their own subagents",
|
|
2803
|
+
options: [
|
|
2804
|
+
{ value: "-1", label: "Unlimited" },
|
|
2805
|
+
{ value: "0", label: "None" },
|
|
2806
|
+
{ value: "1", label: "Single" },
|
|
2807
|
+
{ value: "2", label: "Double" },
|
|
2808
|
+
{ value: "3", label: "Triple" },
|
|
2809
|
+
],
|
|
2810
|
+
},
|
|
2811
|
+
},
|
|
2812
|
+
|
|
2813
|
+
"task.maxRuntimeMs": {
|
|
2814
|
+
type: "number",
|
|
2815
|
+
default: 0,
|
|
2816
|
+
ui: {
|
|
2817
|
+
tab: "tasks",
|
|
2818
|
+
label: "Max Subagent Runtime",
|
|
2819
|
+
description:
|
|
2820
|
+
"Hard wall-clock limit per subagent (ms). 0 disables it. Defense-in-depth against provider-side stream hangs that escape the inference-layer watchdog; triggers a normal subagent abort with a 'timed out' reason.",
|
|
2821
|
+
options: [
|
|
2822
|
+
{ value: "0", label: "Unlimited", description: "Default" },
|
|
2823
|
+
{ value: "300000", label: "5 minutes" },
|
|
2824
|
+
{ value: "900000", label: "15 minutes" },
|
|
2825
|
+
{ value: "1800000", label: "30 minutes" },
|
|
2826
|
+
{ value: "3600000", label: "1 hour" },
|
|
2827
|
+
],
|
|
2828
|
+
},
|
|
2829
|
+
},
|
|
2830
|
+
|
|
2831
|
+
"task.agentIdleTtlMs": {
|
|
2832
|
+
type: "number",
|
|
2833
|
+
default: 420_000,
|
|
2834
|
+
ui: {
|
|
2835
|
+
tab: "tasks",
|
|
2836
|
+
label: "Agent Idle TTL",
|
|
2837
|
+
description:
|
|
2838
|
+
"How long an idle subagent stays live in memory before being parked to disk (ms). Parked agents are revived automatically when messaged or resumed. 0 keeps idle agents live until exit.",
|
|
2839
|
+
},
|
|
2840
|
+
},
|
|
2841
|
+
|
|
2842
|
+
"task.softRequestBudget": {
|
|
2843
|
+
type: "number",
|
|
2844
|
+
default: 90,
|
|
2845
|
+
ui: {
|
|
2846
|
+
tab: "tasks",
|
|
2847
|
+
label: "Soft Subagent Request Budget",
|
|
2848
|
+
description:
|
|
2849
|
+
"Soft per-subagent request budget (assistant requests per run). Crossing it injects one steering notice asking the subagent to wrap up; at 1.5x the budget the run is aborted gracefully, salvaging partial output. 0 disables the guard. Bundled explore/quick_task agents use a lower built-in budget.",
|
|
2850
|
+
options: [
|
|
2851
|
+
{ value: "0", label: "Disabled" },
|
|
2852
|
+
{ value: "40", label: "40 requests" },
|
|
2853
|
+
{ value: "90", label: "90 requests", description: "Default" },
|
|
2854
|
+
{ value: "150", label: "150 requests" },
|
|
2855
|
+
],
|
|
2856
|
+
},
|
|
2857
|
+
},
|
|
2858
|
+
|
|
2859
|
+
"task.disabledAgents": {
|
|
2860
|
+
type: "array",
|
|
2861
|
+
default: [] as string[],
|
|
2862
|
+
},
|
|
2863
|
+
|
|
2864
|
+
"task.agentModelOverrides": {
|
|
2865
|
+
type: "record",
|
|
2866
|
+
default: {} as Record<string, string>,
|
|
2867
|
+
},
|
|
2868
|
+
|
|
2869
|
+
"tasks.todoClearDelay": {
|
|
2870
|
+
type: "number",
|
|
2871
|
+
default: 60,
|
|
2872
|
+
ui: {
|
|
2873
|
+
tab: "tasks",
|
|
2874
|
+
label: "Todo auto-clear delay",
|
|
2875
|
+
description: "How long to wait before removing completed/abandoned tasks from the list",
|
|
2876
|
+
options: [
|
|
2877
|
+
{ value: "0", label: "Instant" },
|
|
2878
|
+
{ value: "60", label: "1 minute", description: "Default" },
|
|
2879
|
+
{ value: "300", label: "5 minutes" },
|
|
2880
|
+
{ value: "900", label: "15 minutes" },
|
|
2881
|
+
{ value: "1800", label: "30 minutes" },
|
|
2882
|
+
{ value: "3600", label: "1 hour" },
|
|
2883
|
+
{ value: "-1", label: "Never" },
|
|
2884
|
+
],
|
|
2885
|
+
},
|
|
2886
|
+
},
|
|
2887
|
+
|
|
2888
|
+
"task.showResolvedModelBadge": {
|
|
2889
|
+
type: "boolean",
|
|
2890
|
+
default: false,
|
|
2891
|
+
ui: {
|
|
2892
|
+
tab: "appearance",
|
|
2893
|
+
label: "Show Resolved Model Badge",
|
|
2894
|
+
description: "Display the actual model ID used by each subagent in the task widget status line",
|
|
2895
|
+
},
|
|
2896
|
+
},
|
|
2897
|
+
|
|
2898
|
+
// Skills
|
|
2899
|
+
"skills.enabled": { type: "boolean", default: true },
|
|
2900
|
+
|
|
2901
|
+
"skills.enableSkillCommands": {
|
|
2902
|
+
type: "boolean",
|
|
2903
|
+
default: true,
|
|
2904
|
+
ui: { tab: "tasks", label: "Skill Commands", description: "Register skills as /skill:name commands" },
|
|
2905
|
+
},
|
|
2906
|
+
|
|
2907
|
+
"skills.enableCodexUser": { type: "boolean", default: true },
|
|
2908
|
+
|
|
2909
|
+
"skills.enableClaudeUser": { type: "boolean", default: true },
|
|
2910
|
+
|
|
2911
|
+
"skills.enableClaudeProject": { type: "boolean", default: true },
|
|
2912
|
+
|
|
2913
|
+
"skills.enablePiUser": { type: "boolean", default: true },
|
|
2914
|
+
|
|
2915
|
+
"skills.enablePiProject": { type: "boolean", default: true },
|
|
2916
|
+
|
|
2917
|
+
"skills.customDirectories": { type: "array", default: [] as string[] },
|
|
2918
|
+
|
|
2919
|
+
"skills.ignoredSkills": { type: "array", default: [] as string[] },
|
|
2920
|
+
|
|
2921
|
+
"skills.includeSkills": { type: "array", default: [] as string[] },
|
|
2922
|
+
|
|
2923
|
+
// Commands
|
|
2924
|
+
"commands.enableClaudeUser": {
|
|
2925
|
+
type: "boolean",
|
|
2926
|
+
default: true,
|
|
2927
|
+
ui: { tab: "tasks", label: "Claude User Commands", description: "Load commands from ~/.claude/commands/" },
|
|
2928
|
+
},
|
|
2929
|
+
|
|
2930
|
+
"commands.enableClaudeProject": {
|
|
2931
|
+
type: "boolean",
|
|
2932
|
+
default: true,
|
|
2933
|
+
ui: { tab: "tasks", label: "Claude Project Commands", description: "Load commands from .claude/commands/" },
|
|
2934
|
+
},
|
|
2935
|
+
|
|
2936
|
+
"commands.enableOpencodeUser": {
|
|
2937
|
+
type: "boolean",
|
|
2938
|
+
default: true,
|
|
2939
|
+
ui: {
|
|
2940
|
+
tab: "tasks",
|
|
2941
|
+
label: "OpenCode User Commands",
|
|
2942
|
+
description: "Load commands from ~/.config/opencode/commands/",
|
|
2943
|
+
},
|
|
2944
|
+
},
|
|
2945
|
+
|
|
2946
|
+
"commands.enableOpencodeProject": {
|
|
2947
|
+
type: "boolean",
|
|
2948
|
+
default: true,
|
|
2949
|
+
ui: { tab: "tasks", label: "OpenCode Project Commands", description: "Load commands from .opencode/commands/" },
|
|
2950
|
+
},
|
|
2951
|
+
|
|
2952
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
2953
|
+
// Providers
|
|
2954
|
+
// ────────────────────────────────────────────────────────────────────────
|
|
2955
|
+
|
|
2956
|
+
// Secret handling
|
|
2957
|
+
"secrets.enabled": {
|
|
2958
|
+
type: "boolean",
|
|
2959
|
+
default: false,
|
|
2960
|
+
ui: { tab: "providers", label: "Hide Secrets", description: "Obfuscate secrets before sending to AI providers" },
|
|
2961
|
+
},
|
|
2962
|
+
|
|
2963
|
+
// Provider selection
|
|
2964
|
+
"providers.webSearch": {
|
|
2965
|
+
type: "enum",
|
|
2966
|
+
values: SEARCH_PROVIDER_PREFERENCES,
|
|
2967
|
+
default: "auto",
|
|
2968
|
+
ui: {
|
|
2969
|
+
tab: "providers",
|
|
2970
|
+
label: "Web Search Provider",
|
|
2971
|
+
description: "Provider for web search tool",
|
|
2972
|
+
options: SEARCH_PROVIDER_OPTIONS,
|
|
2973
|
+
},
|
|
2974
|
+
},
|
|
2975
|
+
"providers.image": {
|
|
2976
|
+
type: "enum",
|
|
2977
|
+
values: ["auto", "openai", "antigravity", "xai", "gemini", "openrouter"] as const,
|
|
2978
|
+
default: "auto",
|
|
2979
|
+
ui: {
|
|
2980
|
+
tab: "providers",
|
|
2981
|
+
label: "Image Provider",
|
|
2982
|
+
description: "Provider for image generation tool",
|
|
2983
|
+
options: [
|
|
2984
|
+
{
|
|
2985
|
+
value: "auto",
|
|
2986
|
+
label: "Auto",
|
|
2987
|
+
description: "Priority: GPT model image tool > Antigravity > xAI > OpenRouter > Gemini",
|
|
2988
|
+
},
|
|
2989
|
+
{ value: "openai", label: "OpenAI", description: "Uses the active GPT Responses/Codex model" },
|
|
2990
|
+
{
|
|
2991
|
+
value: "antigravity",
|
|
2992
|
+
label: "Antigravity",
|
|
2993
|
+
description: "Requires google-antigravity OAuth",
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
value: "xai",
|
|
2997
|
+
label: "xAI Grok Imagine",
|
|
2998
|
+
description: "Requires xAI Grok OAuth or XAI_API_KEY",
|
|
2999
|
+
},
|
|
3000
|
+
{ value: "gemini", label: "Gemini", description: "Requires GEMINI_API_KEY" },
|
|
3001
|
+
{ value: "openrouter", label: "OpenRouter", description: "Requires OPENROUTER_API_KEY" },
|
|
3002
|
+
],
|
|
3003
|
+
},
|
|
3004
|
+
},
|
|
3005
|
+
"providers.tinyModel": {
|
|
3006
|
+
type: "enum",
|
|
3007
|
+
values: TINY_TITLE_MODEL_VALUES,
|
|
3008
|
+
default: ONLINE_TINY_TITLE_MODEL_KEY,
|
|
3009
|
+
ui: {
|
|
3010
|
+
tab: "providers",
|
|
3011
|
+
label: "Tiny Model",
|
|
3012
|
+
description: "Session-title model: online pi/smol by default, or a local on-device model",
|
|
3013
|
+
options: TINY_TITLE_MODEL_OPTIONS,
|
|
3014
|
+
},
|
|
3015
|
+
},
|
|
3016
|
+
"providers.tinyModelDevice": {
|
|
3017
|
+
type: "enum",
|
|
3018
|
+
values: TINY_MODEL_DEVICE_SETTING_VALUES,
|
|
3019
|
+
default: TINY_MODEL_DEVICE_DEFAULT,
|
|
3020
|
+
ui: {
|
|
3021
|
+
tab: "providers",
|
|
3022
|
+
label: "Tiny Model Device",
|
|
3023
|
+
description:
|
|
3024
|
+
"ONNX execution provider for local tiny models (titles + memory). Default uses CPU-only inference. The PI_TINY_DEVICE env var overrides this.",
|
|
3025
|
+
options: TINY_MODEL_DEVICE_SETTING_OPTIONS,
|
|
3026
|
+
},
|
|
3027
|
+
},
|
|
3028
|
+
"providers.tinyModelDtype": {
|
|
3029
|
+
type: "enum",
|
|
3030
|
+
values: TINY_MODEL_DTYPE_SETTING_VALUES,
|
|
3031
|
+
default: TINY_MODEL_DTYPE_DEFAULT,
|
|
3032
|
+
ui: {
|
|
3033
|
+
tab: "providers",
|
|
3034
|
+
label: "Tiny Model Precision",
|
|
3035
|
+
description:
|
|
3036
|
+
"ONNX quantization/precision for local tiny models. Default uses each model's shipped dtype (q4); lower precision is faster, higher is more faithful. The PI_TINY_DTYPE env var overrides this.",
|
|
3037
|
+
options: TINY_MODEL_DTYPE_SETTING_OPTIONS,
|
|
3038
|
+
},
|
|
3039
|
+
},
|
|
3040
|
+
"providers.memoryModel": {
|
|
3041
|
+
type: "enum",
|
|
3042
|
+
values: TINY_MEMORY_MODEL_VALUES,
|
|
3043
|
+
default: ONLINE_MEMORY_MODEL_KEY,
|
|
3044
|
+
ui: {
|
|
3045
|
+
tab: "memory",
|
|
3046
|
+
label: "Memory Model",
|
|
3047
|
+
description:
|
|
3048
|
+
"Mnemopi LLM for fact extraction + consolidation: online (smol/remote) by default, or a local on-device model",
|
|
3049
|
+
condition: "mnemopiActive",
|
|
3050
|
+
options: TINY_MEMORY_MODEL_OPTIONS,
|
|
3051
|
+
},
|
|
3052
|
+
},
|
|
3053
|
+
|
|
3054
|
+
"providers.autoThinkingModel": {
|
|
3055
|
+
type: "enum",
|
|
3056
|
+
values: AUTO_THINKING_MODEL_VALUES,
|
|
3057
|
+
default: ONLINE_AUTO_THINKING_MODEL_KEY,
|
|
3058
|
+
ui: {
|
|
3059
|
+
tab: "model",
|
|
3060
|
+
label: "Auto Thinking Model",
|
|
3061
|
+
description:
|
|
3062
|
+
"Difficulty classifier for the `auto` thinking level: online smol by default, or a local on-device model",
|
|
3063
|
+
condition: "autoThinkingActive",
|
|
3064
|
+
options: AUTO_THINKING_MODEL_OPTIONS,
|
|
3065
|
+
},
|
|
3066
|
+
},
|
|
3067
|
+
|
|
3068
|
+
"providers.kimiApiFormat": {
|
|
3069
|
+
type: "enum",
|
|
3070
|
+
values: ["openai", "anthropic"] as const,
|
|
3071
|
+
default: "anthropic",
|
|
3072
|
+
ui: {
|
|
3073
|
+
tab: "providers",
|
|
3074
|
+
label: "Kimi API Format",
|
|
3075
|
+
description: "API format for Kimi Code provider",
|
|
3076
|
+
options: [
|
|
3077
|
+
{ value: "openai", label: "OpenAI", description: "api.kimi.com" },
|
|
3078
|
+
{ value: "anthropic", label: "Anthropic", description: "api.moonshot.ai" },
|
|
3079
|
+
],
|
|
3080
|
+
},
|
|
3081
|
+
},
|
|
3082
|
+
|
|
3083
|
+
"providers.openaiWebsockets": {
|
|
3084
|
+
type: "enum",
|
|
3085
|
+
values: ["auto", "off", "on"] as const,
|
|
3086
|
+
default: "auto",
|
|
3087
|
+
ui: {
|
|
3088
|
+
tab: "providers",
|
|
3089
|
+
label: "OpenAI WebSockets",
|
|
3090
|
+
description: "Websocket policy for OpenAI Codex models (auto uses model defaults, on forces, off disables)",
|
|
3091
|
+
options: [
|
|
3092
|
+
{ value: "auto", label: "Auto", description: "Use model/provider default websocket behavior" },
|
|
3093
|
+
{ value: "off", label: "Off", description: "Disable websockets for OpenAI Codex models" },
|
|
3094
|
+
{ value: "on", label: "On", description: "Force websockets for OpenAI Codex models" },
|
|
3095
|
+
],
|
|
3096
|
+
},
|
|
3097
|
+
},
|
|
3098
|
+
|
|
3099
|
+
"providers.openrouterVariant": {
|
|
3100
|
+
type: "enum",
|
|
3101
|
+
values: ["default", "nitro", "floor", "online", "exacto"] as const,
|
|
3102
|
+
default: "default",
|
|
3103
|
+
ui: {
|
|
3104
|
+
tab: "providers",
|
|
3105
|
+
label: "OpenRouter Routing",
|
|
3106
|
+
description:
|
|
3107
|
+
"Default routing-variant suffix appended to OpenRouter model IDs (overridden when the selector already names a variant)",
|
|
3108
|
+
options: [
|
|
3109
|
+
{ value: "default", label: "Default", description: "No suffix; use OpenRouter's default routing" },
|
|
3110
|
+
{ value: "nitro", label: ":nitro", description: "Prioritize throughput / lowest latency" },
|
|
3111
|
+
{ value: "floor", label: ":floor", description: "Prioritize cheapest available provider" },
|
|
3112
|
+
{ value: "online", label: ":online", description: "Enable OpenRouter's web-search plugin" },
|
|
3113
|
+
{
|
|
3114
|
+
value: "exacto",
|
|
3115
|
+
label: ":exacto",
|
|
3116
|
+
description: "Cherry-picked high-quality providers (only defined for select models)",
|
|
3117
|
+
},
|
|
3118
|
+
],
|
|
3119
|
+
},
|
|
3120
|
+
},
|
|
3121
|
+
"providers.fetch": {
|
|
3122
|
+
type: "enum",
|
|
3123
|
+
values: ["auto", "native", "trafilatura", "lynx", "parallel", "jina"] as const,
|
|
3124
|
+
default: "auto",
|
|
3125
|
+
ui: {
|
|
3126
|
+
tab: "providers",
|
|
3127
|
+
label: "Fetch Provider",
|
|
3128
|
+
description: "Reader backend priority for the fetch/read URL tool",
|
|
3129
|
+
options: [
|
|
3130
|
+
{
|
|
3131
|
+
value: "auto",
|
|
3132
|
+
label: "Auto",
|
|
3133
|
+
description: "Priority: native > trafilatura > lynx > parallel > jina",
|
|
3134
|
+
},
|
|
3135
|
+
{ value: "native", label: "Native", description: "In-process HTML→Markdown converter (always available)" },
|
|
3136
|
+
{ value: "trafilatura", label: "Trafilatura", description: "Auto-installs via uv/pip" },
|
|
3137
|
+
{ value: "lynx", label: "Lynx", description: "Requires lynx system package" },
|
|
3138
|
+
{ value: "parallel", label: "Parallel", description: "Requires PARALLEL_API_KEY" },
|
|
3139
|
+
{ value: "jina", label: "Jina", description: "Uses r.jina.ai reader (JINA_API_KEY optional)" },
|
|
3140
|
+
],
|
|
3141
|
+
},
|
|
3142
|
+
},
|
|
3143
|
+
"provider.appendOnlyContext": {
|
|
3144
|
+
type: "enum",
|
|
3145
|
+
values: ["auto", "on", "off"] as const,
|
|
3146
|
+
default: "auto",
|
|
3147
|
+
ui: {
|
|
3148
|
+
tab: "providers",
|
|
3149
|
+
label: "Append-Only Context",
|
|
3150
|
+
description:
|
|
3151
|
+
"Cache system prompt + tool specs and keep an append-only message log so provider prefix caches (DeepSeek, Xiaomi/SGLang, Anthropic) hit at maximum rate. Auto enables for known prefix-cache providers.",
|
|
3152
|
+
options: [
|
|
3153
|
+
{ value: "auto", label: "Auto", description: "Enable for known prefix-cache providers (recommended)" },
|
|
3154
|
+
{ value: "on", label: "On", description: "Always enable append-only context" },
|
|
3155
|
+
{ value: "off", label: "Off", description: "Disable append-only context" },
|
|
3156
|
+
],
|
|
3157
|
+
},
|
|
3158
|
+
},
|
|
3159
|
+
|
|
3160
|
+
// Exa
|
|
3161
|
+
"exa.enabled": {
|
|
3162
|
+
type: "boolean",
|
|
3163
|
+
default: true,
|
|
3164
|
+
ui: { tab: "providers", label: "Exa", description: "Master toggle for all Exa search tools" },
|
|
3165
|
+
},
|
|
3166
|
+
|
|
3167
|
+
"exa.enableSearch": {
|
|
3168
|
+
type: "boolean",
|
|
3169
|
+
default: true,
|
|
3170
|
+
ui: { tab: "providers", label: "Exa Search", description: "Basic search, deep search, code search, crawl" },
|
|
3171
|
+
},
|
|
3172
|
+
|
|
3173
|
+
"exa.enableResearcher": {
|
|
3174
|
+
type: "boolean",
|
|
3175
|
+
default: false,
|
|
3176
|
+
ui: { tab: "providers", label: "Exa Researcher", description: "AI-powered deep research tasks" },
|
|
3177
|
+
},
|
|
3178
|
+
|
|
3179
|
+
"exa.enableWebsets": {
|
|
3180
|
+
type: "boolean",
|
|
3181
|
+
default: false,
|
|
3182
|
+
ui: { tab: "providers", label: "Exa Websets", description: "Webset management and enrichment tools" },
|
|
3183
|
+
},
|
|
3184
|
+
|
|
3185
|
+
// SearXNG
|
|
3186
|
+
"searxng.endpoint": {
|
|
3187
|
+
type: "string",
|
|
3188
|
+
default: undefined,
|
|
3189
|
+
ui: {
|
|
3190
|
+
tab: "providers",
|
|
3191
|
+
label: "SearXNG Endpoint",
|
|
3192
|
+
description: "Self-hosted search base URL",
|
|
3193
|
+
},
|
|
3194
|
+
},
|
|
3195
|
+
|
|
3196
|
+
"searxng.token": {
|
|
3197
|
+
type: "string",
|
|
3198
|
+
default: undefined,
|
|
3199
|
+
},
|
|
3200
|
+
|
|
3201
|
+
"searxng.basicUsername": {
|
|
3202
|
+
type: "string",
|
|
3203
|
+
default: undefined,
|
|
3204
|
+
},
|
|
3205
|
+
|
|
3206
|
+
"searxng.basicPassword": {
|
|
3207
|
+
type: "string",
|
|
3208
|
+
default: undefined,
|
|
3209
|
+
},
|
|
3210
|
+
|
|
3211
|
+
"searxng.categories": {
|
|
3212
|
+
type: "string",
|
|
3213
|
+
default: undefined,
|
|
3214
|
+
},
|
|
3215
|
+
|
|
3216
|
+
"searxng.language": {
|
|
3217
|
+
type: "string",
|
|
3218
|
+
default: undefined,
|
|
3219
|
+
},
|
|
3220
|
+
|
|
3221
|
+
"commit.mapReduceEnabled": { type: "boolean", default: true },
|
|
3222
|
+
|
|
3223
|
+
"commit.mapReduceMinFiles": { type: "number", default: 4 },
|
|
3224
|
+
|
|
3225
|
+
"commit.mapReduceMaxFileTokens": { type: "number", default: 50000 },
|
|
3226
|
+
|
|
3227
|
+
"commit.mapReduceTimeoutMs": { type: "number", default: 120000 },
|
|
3228
|
+
|
|
3229
|
+
"commit.mapReduceMaxConcurrency": { type: "number", default: 5 },
|
|
3230
|
+
|
|
3231
|
+
"commit.changelogMaxDiffChars": { type: "number", default: 120000 },
|
|
3232
|
+
|
|
3233
|
+
"dev.autoqa": {
|
|
3234
|
+
type: "boolean",
|
|
3235
|
+
default: false,
|
|
3236
|
+
ui: {
|
|
3237
|
+
tab: "tools",
|
|
3238
|
+
label: "Auto QA",
|
|
3239
|
+
description: "Enable automated tool issue reporting (report_tool_issue) for all agents",
|
|
3240
|
+
},
|
|
3241
|
+
},
|
|
3242
|
+
|
|
3243
|
+
"dev.autoqaPush.endpoint": {
|
|
3244
|
+
type: "string",
|
|
3245
|
+
// Bundled QA collector — runs `/work/pi-www/autoqa` behind qa.omp.sh.
|
|
3246
|
+
// Override via `PI_AUTO_QA_PUSH_URL` or `dev.autoqaPush.endpoint`
|
|
3247
|
+
// in `config.yml` to point at a self-hosted instance.
|
|
3248
|
+
default: "https://qa.omp.sh/v1/grievances" as const,
|
|
3249
|
+
ui: {
|
|
3250
|
+
tab: "tools",
|
|
3251
|
+
label: "Auto QA Push Endpoint",
|
|
3252
|
+
description: "Full URL that receives the JSON payload (default ships to https://qa.omp.sh/v1/grievances)",
|
|
3253
|
+
},
|
|
3254
|
+
},
|
|
3255
|
+
|
|
3256
|
+
"dev.autoqaPush.token": {
|
|
3257
|
+
type: "string",
|
|
3258
|
+
default: undefined,
|
|
3259
|
+
},
|
|
3260
|
+
|
|
3261
|
+
/**
|
|
3262
|
+
* User decision on sharing automatic `report_tool_issue` grievances.
|
|
3263
|
+
*
|
|
3264
|
+
* - `"unset"` — never asked; the first `report_tool_issue` invocation
|
|
3265
|
+
* pops a consent dialog and persists the answer here.
|
|
3266
|
+
* - `"granted"` — record and (when push is configured) ship grievances.
|
|
3267
|
+
* - `"denied"` — silently no-op every `report_tool_issue` call.
|
|
3268
|
+
*
|
|
3269
|
+
* Owned by `packages/coding-agent/src/tools/report-tool-issue.ts` via the
|
|
3270
|
+
* process-global consent handler registered by `InteractiveMode`.
|
|
3271
|
+
*/
|
|
3272
|
+
"dev.autoqa.consent": {
|
|
3273
|
+
type: "enum",
|
|
3274
|
+
values: ["unset", "granted", "denied"] as const,
|
|
3275
|
+
default: "unset" as const,
|
|
3276
|
+
},
|
|
3277
|
+
|
|
3278
|
+
"thinkingBudgets.minimal": { type: "number", default: 1024 },
|
|
3279
|
+
|
|
3280
|
+
"thinkingBudgets.low": { type: "number", default: 2048 },
|
|
3281
|
+
|
|
3282
|
+
"thinkingBudgets.medium": { type: "number", default: 8192 },
|
|
3283
|
+
|
|
3284
|
+
"thinkingBudgets.high": { type: "number", default: 16384 },
|
|
3285
|
+
|
|
3286
|
+
"thinkingBudgets.xhigh": { type: "number", default: 32768 },
|
|
3287
|
+
} as const;
|
|
3288
|
+
|
|
3289
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3290
|
+
// Type Inference
|
|
3291
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3292
|
+
|
|
3293
|
+
type Schema = typeof SETTINGS_SCHEMA;
|
|
3294
|
+
|
|
3295
|
+
/** All valid setting paths */
|
|
3296
|
+
export type SettingPath = keyof Schema;
|
|
3297
|
+
|
|
3298
|
+
/** Infer the value type for a setting path */
|
|
3299
|
+
export type SettingValue<P extends SettingPath> = Schema[P] extends { type: "boolean"; default: undefined }
|
|
3300
|
+
? boolean | undefined
|
|
3301
|
+
: Schema[P] extends { type: "boolean" }
|
|
3302
|
+
? boolean
|
|
3303
|
+
: Schema[P] extends { type: "string" }
|
|
3304
|
+
? string | undefined
|
|
3305
|
+
: Schema[P] extends { type: "number" }
|
|
3306
|
+
? number
|
|
3307
|
+
: Schema[P] extends { type: "enum"; values: infer V }
|
|
3308
|
+
? V extends readonly string[]
|
|
3309
|
+
? V[number]
|
|
3310
|
+
: never
|
|
3311
|
+
: Schema[P] extends { type: "array"; default: infer D }
|
|
3312
|
+
? D
|
|
3313
|
+
: Schema[P] extends { type: "record"; default: infer D }
|
|
3314
|
+
? D
|
|
3315
|
+
: never;
|
|
3316
|
+
|
|
3317
|
+
/** Get the default value for a setting path */
|
|
3318
|
+
export function getDefault<P extends SettingPath>(path: P): SettingValue<P> {
|
|
3319
|
+
return SETTINGS_SCHEMA[path].default as SettingValue<P>;
|
|
3320
|
+
}
|
|
3321
|
+
|
|
3322
|
+
/** Check if a path has UI metadata (should appear in settings panel) */
|
|
3323
|
+
export function hasUi(path: SettingPath): boolean {
|
|
3324
|
+
return "ui" in SETTINGS_SCHEMA[path];
|
|
3325
|
+
}
|
|
3326
|
+
|
|
3327
|
+
/** Get UI metadata for a path (undefined if no UI) */
|
|
3328
|
+
export function getUi(path: SettingPath): AnyUiMetadata | undefined {
|
|
3329
|
+
const def = SETTINGS_SCHEMA[path];
|
|
3330
|
+
return "ui" in def ? (def.ui as AnyUiMetadata) : undefined;
|
|
3331
|
+
}
|
|
3332
|
+
|
|
3333
|
+
/** Get all paths for a specific tab */
|
|
3334
|
+
export function getPathsForTab(tab: SettingTab): SettingPath[] {
|
|
3335
|
+
return (Object.keys(SETTINGS_SCHEMA) as SettingPath[]).filter(path => {
|
|
3336
|
+
const ui = getUi(path);
|
|
3337
|
+
return ui?.tab === tab;
|
|
3338
|
+
});
|
|
3339
|
+
}
|
|
3340
|
+
|
|
3341
|
+
/** Get the type of a setting */
|
|
3342
|
+
export function getType(path: SettingPath): SettingDef["type"] {
|
|
3343
|
+
return SETTINGS_SCHEMA[path].type;
|
|
3344
|
+
}
|
|
3345
|
+
|
|
3346
|
+
/** Get enum values for an enum setting */
|
|
3347
|
+
export function getEnumValues(path: SettingPath): readonly string[] | undefined {
|
|
3348
|
+
const def = SETTINGS_SCHEMA[path];
|
|
3349
|
+
return "values" in def ? (def.values as readonly string[]) : undefined;
|
|
3350
|
+
}
|
|
3351
|
+
|
|
3352
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3353
|
+
// Derived Types from Schema
|
|
3354
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3355
|
+
|
|
3356
|
+
/** Status line preset - derived from schema */
|
|
3357
|
+
export type StatusLinePreset = SettingValue<"statusLine.preset">;
|
|
3358
|
+
|
|
3359
|
+
/** Status line separator style - derived from schema */
|
|
3360
|
+
export type StatusLineSeparatorStyle = SettingValue<"statusLine.separator">;
|
|
3361
|
+
|
|
3362
|
+
/** Tree selector filter mode - derived from schema */
|
|
3363
|
+
export type TreeFilterMode = SettingValue<"treeFilterMode">;
|
|
3364
|
+
|
|
3365
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3366
|
+
// Typed Group Definitions
|
|
3367
|
+
// ═══════════════════════════════════════════════════════════════════════════
|
|
3368
|
+
|
|
3369
|
+
export interface CompactionSettings {
|
|
3370
|
+
enabled: boolean;
|
|
3371
|
+
strategy: "context-full" | "handoff" | "shake" | "snapcompact" | "off";
|
|
3372
|
+
thresholdPercent: number;
|
|
3373
|
+
thresholdTokens: number;
|
|
3374
|
+
reserveTokens: number;
|
|
3375
|
+
keepRecentTokens: number;
|
|
3376
|
+
handoffSaveToDisk: boolean;
|
|
3377
|
+
autoContinue: boolean;
|
|
3378
|
+
remoteEnabled: boolean;
|
|
3379
|
+
remoteEndpoint: string | undefined;
|
|
3380
|
+
idleEnabled: boolean;
|
|
3381
|
+
idleThresholdTokens: number;
|
|
3382
|
+
idleTimeoutSeconds: number;
|
|
3383
|
+
supersedeReads: boolean;
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3386
|
+
export interface ContextPromotionSettings {
|
|
3387
|
+
enabled: boolean;
|
|
3388
|
+
}
|
|
3389
|
+
export interface RetrySettings {
|
|
3390
|
+
enabled: boolean;
|
|
3391
|
+
maxRetries: number;
|
|
3392
|
+
baseDelayMs: number;
|
|
3393
|
+
maxDelayMs: number;
|
|
3394
|
+
modelFallback: boolean;
|
|
3395
|
+
}
|
|
3396
|
+
|
|
3397
|
+
export interface MemoriesSettings {
|
|
3398
|
+
enabled: boolean;
|
|
3399
|
+
maxRolloutsPerStartup: number;
|
|
3400
|
+
maxRolloutAgeDays: number;
|
|
3401
|
+
minRolloutIdleHours: number;
|
|
3402
|
+
threadScanLimit: number;
|
|
3403
|
+
maxRawMemoriesForGlobal: number;
|
|
3404
|
+
stage1Concurrency: number;
|
|
3405
|
+
stage1LeaseSeconds: number;
|
|
3406
|
+
stage1RetryDelaySeconds: number;
|
|
3407
|
+
phase2LeaseSeconds: number;
|
|
3408
|
+
phase2RetryDelaySeconds: number;
|
|
3409
|
+
phase2HeartbeatSeconds: number;
|
|
3410
|
+
rolloutPayloadPercent: number;
|
|
3411
|
+
fallbackTokenLimit: number;
|
|
3412
|
+
summaryInjectionTokenLimit: number;
|
|
3413
|
+
}
|
|
3414
|
+
|
|
3415
|
+
export interface TodoCompletionSettings {
|
|
3416
|
+
enabled: boolean;
|
|
3417
|
+
maxReminders: number;
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
export interface BranchSummarySettings {
|
|
3421
|
+
enabled: boolean;
|
|
3422
|
+
reserveTokens: number;
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
export interface SkillsSettings {
|
|
3426
|
+
enabled?: boolean;
|
|
3427
|
+
enableSkillCommands?: boolean;
|
|
3428
|
+
enableCodexUser?: boolean;
|
|
3429
|
+
enableClaudeUser?: boolean;
|
|
3430
|
+
enableClaudeProject?: boolean;
|
|
3431
|
+
enablePiUser?: boolean;
|
|
3432
|
+
enablePiProject?: boolean;
|
|
3433
|
+
customDirectories?: string[];
|
|
3434
|
+
ignoredSkills?: string[];
|
|
3435
|
+
includeSkills?: string[];
|
|
3436
|
+
disabledExtensions?: string[];
|
|
3437
|
+
}
|
|
3438
|
+
|
|
3439
|
+
export interface CommitSettings {
|
|
3440
|
+
mapReduceEnabled: boolean;
|
|
3441
|
+
mapReduceMinFiles: number;
|
|
3442
|
+
mapReduceMaxFileTokens: number;
|
|
3443
|
+
mapReduceTimeoutMs: number;
|
|
3444
|
+
mapReduceMaxConcurrency: number;
|
|
3445
|
+
changelogMaxDiffChars: number;
|
|
3446
|
+
}
|
|
3447
|
+
|
|
3448
|
+
export interface TtsrSettings {
|
|
3449
|
+
enabled: boolean;
|
|
3450
|
+
contextMode: "discard" | "keep";
|
|
3451
|
+
interruptMode: "never" | "prose-only" | "tool-only" | "always";
|
|
3452
|
+
repeatMode: "once" | "after-gap";
|
|
3453
|
+
repeatGap: number;
|
|
3454
|
+
/** Bucketing-only (read by bucketRules, not the TtsrManager). */
|
|
3455
|
+
builtinRules?: boolean;
|
|
3456
|
+
/** Bucketing-only (read by bucketRules, not the TtsrManager). */
|
|
3457
|
+
disabledRules?: string[];
|
|
3458
|
+
}
|
|
3459
|
+
|
|
3460
|
+
export interface ExaSettings {
|
|
3461
|
+
enabled: boolean;
|
|
3462
|
+
enableSearch: boolean;
|
|
3463
|
+
enableResearcher: boolean;
|
|
3464
|
+
enableWebsets: boolean;
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
export interface StatusLineSettings {
|
|
3468
|
+
preset: StatusLinePreset;
|
|
3469
|
+
separator: StatusLineSeparatorStyle;
|
|
3470
|
+
showHookStatus: boolean;
|
|
3471
|
+
leftSegments: StatusLineSegmentId[];
|
|
3472
|
+
rightSegments: StatusLineSegmentId[];
|
|
3473
|
+
segmentOptions: Record<string, unknown>;
|
|
3474
|
+
}
|
|
3475
|
+
|
|
3476
|
+
export interface ThinkingBudgetsSettings {
|
|
3477
|
+
minimal: number;
|
|
3478
|
+
low: number;
|
|
3479
|
+
medium: number;
|
|
3480
|
+
high: number;
|
|
3481
|
+
xhigh: number;
|
|
3482
|
+
}
|
|
3483
|
+
|
|
3484
|
+
export interface SttSettings {
|
|
3485
|
+
enabled: boolean;
|
|
3486
|
+
language: string | undefined;
|
|
3487
|
+
modelName: string;
|
|
3488
|
+
whisperPath: string | undefined;
|
|
3489
|
+
modelPath: string | undefined;
|
|
3490
|
+
}
|
|
3491
|
+
|
|
3492
|
+
export interface BashInterceptorRule {
|
|
3493
|
+
pattern: string;
|
|
3494
|
+
flags?: string;
|
|
3495
|
+
tool: string;
|
|
3496
|
+
message: string;
|
|
3497
|
+
allowSubcommands?: string[];
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
export interface ShellMinimizerSettings {
|
|
3501
|
+
enabled: boolean;
|
|
3502
|
+
settingsPath: string | undefined;
|
|
3503
|
+
only: string[];
|
|
3504
|
+
except: string[];
|
|
3505
|
+
maxCaptureBytes: number;
|
|
3506
|
+
sourceOutlineLevel: "default" | "aggressive";
|
|
3507
|
+
legacyFilters: boolean | undefined;
|
|
3508
|
+
}
|
|
3509
|
+
|
|
3510
|
+
/** Map group prefix -> typed settings interface */
|
|
3511
|
+
export interface GroupTypeMap {
|
|
3512
|
+
compaction: CompactionSettings;
|
|
3513
|
+
contextPromotion: ContextPromotionSettings;
|
|
3514
|
+
retry: RetrySettings;
|
|
3515
|
+
memories: MemoriesSettings;
|
|
3516
|
+
branchSummary: BranchSummarySettings;
|
|
3517
|
+
skills: SkillsSettings;
|
|
3518
|
+
commit: CommitSettings;
|
|
3519
|
+
ttsr: TtsrSettings;
|
|
3520
|
+
exa: ExaSettings;
|
|
3521
|
+
statusLine: StatusLineSettings;
|
|
3522
|
+
thinkingBudgets: ThinkingBudgetsSettings;
|
|
3523
|
+
stt: SttSettings;
|
|
3524
|
+
modelRoles: Record<string, string>;
|
|
3525
|
+
modelTags: ModelTagsSettings;
|
|
3526
|
+
cycleOrder: string[];
|
|
3527
|
+
shellMinimizer: ShellMinimizerSettings;
|
|
3528
|
+
}
|
|
3529
|
+
|
|
3530
|
+
export type GroupPrefix = keyof GroupTypeMap;
|