pi-mono/packages/coding-agent/src/core/settings-defaults.ts
2026-10-13 15:41:13 +02:00

67 lines
1.5 KiB
TypeScript

import { DEFAULT_MAX_AGENT_RETRY_DELAY_MS } from "@earendil-works/pi-ai/utils/retry";
/** Runtime defaults shared by settings accessors and the published JSON Schema. */
export const SETTINGS_DEFAULTS = {
transport: "auto",
sessionShareDestination: "auto",
steeringMode: "one-at-a-time",
followUpMode: "one-at-a-time",
compaction: {
enabled: true,
reserveTokens: 16384,
keepRecentTokens: 20000,
},
branchSummary: {
reserveTokens: 16384,
skipPrompt: false,
},
retry: {
enabled: true,
maxRetries: 3,
baseDelayMs: 2000,
maxAgentDelayMs: DEFAULT_MAX_AGENT_RETRY_DELAY_MS,
provider: {
maxRetryDelayMs: 60000,
},
},
hideThinkingBlock: false,
showCacheMissNotices: false,
quietStartup: false,
defaultProjectTrust: "ask",
collapseChangelog: false,
enableInstallTelemetry: true,
enableAnalytics: false,
enableSkillCommands: true,
terminal: {
showImages: true,
imageWidthCells: 60,
clearOnShrink: false,
showTerminalProgress: false,
},
images: {
autoResize: true,
blockImages: false,
},
doubleEscapeAction: "tree",
treeFilterMode: "default",
editorPaddingX: 0,
outputPad: 1,
autocompleteMaxVisible: 5,
markdown: {
codeBlockIndent: " ",
mermaid: "streaming",
},
warnings: {
anthropicExtraUsage: true,
},
codemode: {
mode: "on",
inlineBudget: 3000,
},
cacheWarming: "streaming",
tuiMode: "fullscreen",
fullscreenExitOutput: "transcript",
fullscreenScrollbar: "auto",
fullscreenCopyOnSelect: true,
fullscreenWheelScrollLines: "auto",
} as const;