ccdeck 3.46.0 → 3.48.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.
Files changed (68) hide show
  1. package/README.md +99 -46
  2. package/bin/cli/commands.js +17 -9
  3. package/bin/cli/help.js +9 -4
  4. package/bin/cli/second-start.js +4 -2
  5. package/bin/cli/startup.js +26 -2
  6. package/bin/cli/tui.js +544 -0
  7. package/bin/deck.js +32 -1
  8. package/dist/web/assets/{BrowserWatchModal-CoX9FIUE.js → BrowserWatchModal-DuopT2Oa.js} +1 -1
  9. package/dist/web/assets/IntegrationModal-CszT-tts.js +7 -0
  10. package/dist/web/assets/{RadioPanel-biw_BbZq.js → RadioPanel-Cn3WvPUG.js} +1 -1
  11. package/dist/web/assets/TrafficRadar-DZA8XSi7.js +8 -0
  12. package/dist/web/assets/UsageHistoryModal-MgZJLXbF.js +1 -0
  13. package/dist/web/assets/app-DjlHxWHg.css +1 -0
  14. package/dist/web/assets/app-F1xryJpn.js +321 -0
  15. package/dist/web/assets/claude-settings-index-1Qg1AUda.js +1 -0
  16. package/dist/web/assets/{index-DmENqVdt.js → index-BK9avF1k.js} +1 -1
  17. package/dist/web/index.html +3 -3
  18. package/package.json +1 -1
  19. package/release-notes.json +58 -2
  20. package/src/server/args.mjs +1 -0
  21. package/src/server/ccusage-install.mjs +58 -1
  22. package/src/server/ccusage-registry.mjs +289 -0
  23. package/src/server/ccusage-runner.mjs +9 -2
  24. package/src/server/claude-accounts.mjs +21 -0
  25. package/src/server/claude-login.mjs +21 -3
  26. package/src/server/claude-settings-catalog.d.mts +37 -0
  27. package/src/server/claude-settings-catalog.mjs +169 -0
  28. package/src/server/claude-settings-docs.mjs +109 -0
  29. package/src/server/claude-settings-index.json +251 -0
  30. package/src/server/claude-settings-routes.mjs +46 -0
  31. package/src/server/claude-settings.mjs +406 -0
  32. package/src/server/cli-arrival.mjs +64 -0
  33. package/src/server/cli-lines.mjs +46 -0
  34. package/src/server/gpu-metrics.mjs +78 -0
  35. package/src/server/index.mjs +18 -2
  36. package/src/server/integrations/jira-move.mjs +239 -0
  37. package/src/server/integrations/jira.mjs +30 -8
  38. package/src/server/integrations/proxy.mjs +14 -6
  39. package/src/server/integrations/routes.mjs +25 -9
  40. package/src/server/quota-close-watch.mjs +81 -0
  41. package/src/server/quota-closes.mjs +181 -0
  42. package/src/server/quota-history.mjs +8 -1
  43. package/src/server/quota-shape.mjs +12 -0
  44. package/src/server/quota.mjs +28 -1
  45. package/src/server/request-gates.mjs +3 -1
  46. package/src/server/system-metrics.mjs +4 -0
  47. package/src/server/term.mjs +14 -5
  48. package/src/server/tool-audit-operations.mjs +30 -10
  49. package/src/server/tool-audit-report.mjs +79 -7
  50. package/src/server/tool-audit-routes.mjs +1 -1
  51. package/src/server/tool-audit-skills.mjs +8 -3
  52. package/src/server/tool-audit.mjs +55 -5
  53. package/src/server/traffic-radar-capture.mjs +3 -3
  54. package/src/server/traffic-radar-config.mjs +10 -3
  55. package/src/server/traffic-radar-monitor.mjs +8 -5
  56. package/src/server/traffic-radar-permission.mjs +162 -0
  57. package/src/server/traffic-radar-platform.mjs +9 -3
  58. package/src/server/traffic-radar-routes.mjs +8 -18
  59. package/src/server/traffic-radar-service.mjs +76 -92
  60. package/src/server/tui-screen.mjs +110 -0
  61. package/src/server/tui-view.mjs +1072 -0
  62. package/src/server/usage-routes.mjs +14 -2
  63. package/src/server/way-back.mjs +27 -0
  64. package/dist/web/assets/IntegrationModal-B1ypkK-E.js +0 -5
  65. package/dist/web/assets/TrafficRadar-nhtFoYVv.js +0 -8
  66. package/dist/web/assets/UsageHistoryModal-Bd-JRAa4.js +0 -1
  67. package/dist/web/assets/app-BlRY6EME.css +0 -1
  68. package/dist/web/assets/app-DhGvSH7o.js +0 -319
@@ -0,0 +1,109 @@
1
+ // The keys Claude Code documents, read out of its settings reference page
2
+ // (https://code.claude.com/docs/en/settings-reference.md) — the source for
3
+ // claude-settings-index.json (scripts/claude-settings-index.mjs).
4
+ //
5
+ // THE PAGE IS READ, NOT TRUSTED. It is Markdown written for people, so every
6
+ // field is taken from one fixed shape — a `### \`key\`` heading, then its
7
+ // "Type" and "Default" bullets — and a key whose shape does not match keeps
8
+ // what could be read and nothing guessed. The settings index table at the top
9
+ // of the page names each key's topic, scope and anchor.
10
+ //
11
+ // FACTS, NOT THE PAGE'S WORDS. The reference is Anthropic's, all rights
12
+ // reserved, so what is kept is what a key is — its name, topic, scope, the
13
+ // kind of value it takes, its choices, a literal default, the version that
14
+ // added it — and never a sentence of its description. The deck links to the
15
+ // page for those (Settings › Claude Code).
16
+
17
+ const ENTRY_HEADING = /^### `([A-Za-z][\w.]*)`\s*$/gm;
18
+ const INDEX_ROW = /^\| \[`([^`]+)`\]\(#([^)]*)\) \| .*? \| ([^|]+?) \| ([^|]+?) \|$/gm;
19
+
20
+ /** The bullet `* **Name**: text` of an entry, as the page wrote it, or null. */
21
+ function bullet(body, name) {
22
+ const m = new RegExp(`^\\* \\*\\*${name}\\*\\*: (.*)$`, "m").exec(body);
23
+ return m ? m[1].trim() : null;
24
+ }
25
+
26
+ /** A Default bullet that is a value rather than a sentence: one code span,
27
+ * or the word "unset". Anything worded is left to the page. */
28
+ function literalDefault(text) {
29
+ if (text === "unset") return "unset";
30
+ const m = /^`([^`]{1,40})`$/.exec(text ?? "");
31
+ return m ? m[1] : null;
32
+ }
33
+
34
+ /** What kind of value a Type bullet describes, in the deck's four words. */
35
+ function kindOf(type) {
36
+ const t = (type ?? "").toLowerCase();
37
+ if (t.startsWith("boolean")) return "boolean";
38
+ if (t.startsWith("string, one of")) return "choice";
39
+ if (t.startsWith("number") || t.startsWith("integer")) return "number";
40
+ if (t.startsWith("string")) return "text";
41
+ return "structured";
42
+ }
43
+
44
+ /** The quoted values listed under a "string, one of" Type bullet. */
45
+ function choices(body) {
46
+ const at = body.search(/^\* \*\*Type\*\*: string, one of/m);
47
+ if (at < 0) return [];
48
+ const out = [];
49
+ for (const line of body.slice(at).split("\n").slice(1)) {
50
+ const m = /^ {2}\* `"([^"`]+)"`/.exec(line);
51
+ if (m) out.push(m[1]);
52
+ else if (!/^ {2,}/.test(line)) break;
53
+ }
54
+ return out;
55
+ }
56
+
57
+ /** The lowest "Requires Claude Code vX" an entry names, or null. */
58
+ function since(body) {
59
+ const versions = [...body.matchAll(/[Rr]equires Claude Code v(\d+\.\d+\.\d+)/g)].map(m => m[1]);
60
+ if (!versions.length) return null;
61
+ return versions.sort((a, b) => {
62
+ const x = a.split(".").map(Number), y = b.split(".").map(Number);
63
+ return x[0] - y[0] || x[1] - y[1] || x[2] - y[2];
64
+ })[0];
65
+ }
66
+
67
+ /** The page's anchor for a heading, as its own links spell it, for a key the
68
+ * index table does not link. */
69
+ export function anchorFor(key) {
70
+ return key.toLowerCase().replace(/\./g, "-").replace(/[^a-z0-9-]+/g, "");
71
+ }
72
+
73
+ /**
74
+ * Every documented key, in the page's order: its topic, scope and anchor from
75
+ * the index table, and from its own entry the kind of value it holds, the
76
+ * choices for a choice, a literal default, and the lowest Claude Code version
77
+ * the entry names. Keys whose scope is "Global config" live in ~/.claude.json
78
+ * and not in settings.json.
79
+ */
80
+ export function parseSettingsReference(markdown) {
81
+ const topics = new Map();
82
+ for (const m of markdown.matchAll(INDEX_ROW)) topics.set(m[1], { anchor: m[2], topic: m[3].trim(), scope: m[4].trim() });
83
+ const headings = [...markdown.matchAll(ENTRY_HEADING)];
84
+ const keys = [];
85
+ headings.forEach((m, i) => {
86
+ const key = m[1];
87
+ const end = i + 1 < headings.length ? headings[i + 1].index : markdown.length;
88
+ let body = markdown.slice(m.index + m[0].length, end);
89
+ const section = body.search(/^## /m);
90
+ if (section >= 0) body = body.slice(0, section);
91
+ const type = bullet(body, "Type");
92
+ const row = topics.get(key);
93
+ const options = choices(body);
94
+ // "One of" a list of words rather than of fixed strings — a model name, a
95
+ // duration — is a string to type, not a choice.
96
+ const kind = kindOf(type) === "choice" && !options.length ? "text" : kindOf(type);
97
+ keys.push({
98
+ key,
99
+ topic: row?.topic ?? null,
100
+ scope: row?.scope ?? null,
101
+ kind,
102
+ ...(kind === "choice" ? { options } : {}),
103
+ default: literalDefault(bullet(body, "Default")),
104
+ since: since(body),
105
+ anchor: row?.anchor ?? anchorFor(key),
106
+ });
107
+ });
108
+ return { keys };
109
+ }
@@ -0,0 +1,251 @@
1
+ {
2
+ "source": "https://code.claude.com/docs/en/settings-reference.md",
3
+ "keys": [
4
+ {"key":"advisorModel","topic":"Model and responses","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"advisormodel"},
5
+ {"key":"alwaysThinkingEnabled","topic":"Model and responses","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"alwaysthinkingenabled"},
6
+ {"key":"availableModels","topic":"Model and responses","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"availablemodels"},
7
+ {"key":"availableModelsMatch","topic":"Model and responses","scope":"Managed","kind":"choice","options":["prefix","exact"],"default":"\"prefix\"","since":"2.1.283","anchor":"availablemodelsmatch"},
8
+ {"key":"deniedModels","topic":"Model and responses","scope":"Managed","kind":"structured","default":null,"since":"2.1.283","anchor":"deniedmodels"},
9
+ {"key":"effortLevel","topic":"Model and responses","scope":"Any file","kind":"choice","options":["low","medium","high","xhigh"],"default":"unset","since":null,"anchor":"effortlevel"},
10
+ {"key":"enforceAvailableModels","topic":"Model and responses","scope":"Any file","kind":"boolean","default":"false","since":"2.1.175","anchor":"enforceavailablemodels"},
11
+ {"key":"fallbackModel","topic":"Model and responses","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"fallbackmodel"},
12
+ {"key":"fastMode","topic":"Model and responses","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"fastmode"},
13
+ {"key":"fastModePerSessionOptIn","topic":"Model and responses","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"fastmodepersessionoptin"},
14
+ {"key":"language","topic":"Model and responses","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"language"},
15
+ {"key":"maxEffortLevel","topic":"Model and responses","scope":"Any file","kind":"text","default":null,"since":"2.1.267","anchor":"maxeffortlevel"},
16
+ {"key":"model","topic":"Model and responses","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"model"},
17
+ {"key":"modelOverrides","topic":"Model and responses","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"modeloverrides"},
18
+ {"key":"modelPicker","topic":"Model and responses","scope":"User or managed","kind":"structured","default":null,"since":"2.1.242","anchor":"modelpicker"},
19
+ {"key":"modelPricing","topic":"Model and responses","scope":"Managed","kind":"structured","default":null,"since":"2.1.242","anchor":"modelpricing"},
20
+ {"key":"modelSettings","topic":"Model and responses","scope":"Any file","kind":"structured","default":"unset","since":"2.1.251","anchor":"modelsettings"},
21
+ {"key":"outputStyle","topic":"Model and responses","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"outputstyle"},
22
+ {"key":"promptCacheTtl","topic":"Model and responses","scope":"Any file","kind":"choice","options":["5m","1h"],"default":null,"since":"2.1.242","anchor":"promptcachettl"},
23
+ {"key":"showThinkingSummaries","topic":"Model and responses","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"showthinkingsummaries"},
24
+ {"key":"subagentPromptCacheTtl","topic":"Model and responses","scope":"Any file","kind":"choice","options":["5m","1h"],"default":null,"since":"2.1.242","anchor":"subagentpromptcachettl"},
25
+ {"key":"switchModelsOnFlag","topic":"Model and responses","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"switchmodelsonflag"},
26
+ {"key":"ultracode","topic":"Model and responses","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"ultracode"},
27
+ {"key":"allowManagedPermissionRulesOnly","topic":"Permission settings","scope":"Managed","kind":"boolean","default":null,"since":null,"anchor":"allowmanagedpermissionrulesonly"},
28
+ {"key":"autoMode","topic":"Permission settings","scope":"User or managed","kind":"structured","default":null,"since":null,"anchor":"automode"},
29
+ {"key":"autoMode.classifyAllShell","topic":"Permission settings","scope":"User or managed","kind":"boolean","default":"false","since":"2.1.193","anchor":"automode-classifyallshell"},
30
+ {"key":"disableAutoMode","topic":"Permission settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"disableautomode"},
31
+ {"key":"permissions","topic":"Permission settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"permissions"},
32
+ {"key":"useAutoModeDuringPlan","topic":"Permission settings","scope":"User, local, or managed","kind":"boolean","default":"true","since":null,"anchor":"useautomodeduringplan"},
33
+ {"key":"permissions.allow","topic":"Permission settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"permissions-allow"},
34
+ {"key":"permissions.ask","topic":"Permission settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"permissions-ask"},
35
+ {"key":"permissions.deny","topic":"Permission settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"permissions-deny"},
36
+ {"key":"permissions.additionalDirectories","topic":"Permission settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"permissions-additionaldirectories"},
37
+ {"key":"permissions.blockReadsOutsideWorkingDirectories","topic":"Permission settings","scope":"Any file","kind":"boolean","default":null,"since":"2.1.257","anchor":"permissions-blockreadsoutsideworkingdirectories"},
38
+ {"key":"permissions.defaultMode","topic":"Permission settings","scope":"Any file","kind":"choice","options":["default","acceptEdits","plan","auto","dontAsk","bypassPermissions","manual"],"default":"unset","since":null,"anchor":"permissions-defaultmode"},
39
+ {"key":"permissions.disableBypassPermissionsMode","topic":"Permission settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"permissions-disablebypasspermissionsmode"},
40
+ {"key":"skipAutoPermissionPrompt","topic":"Permission settings","scope":"User or managed","kind":"boolean","default":null,"since":null,"anchor":"skipautopermissionprompt"},
41
+ {"key":"skipDangerousModePermissionPrompt","topic":"Permission settings","scope":"User, local, or managed","kind":"boolean","default":null,"since":null,"anchor":"skipdangerousmodepermissionprompt"},
42
+ {"key":"sandbox","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox"},
43
+ {"key":"sandbox.enabled","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"sandbox-enabled"},
44
+ {"key":"sandbox.failIfUnavailable","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"sandbox-failifunavailable"},
45
+ {"key":"sandbox.autoAllowBashIfSandboxed","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"sandbox-autoallowbashifsandboxed"},
46
+ {"key":"sandbox.excludedCommands","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-excludedcommands"},
47
+ {"key":"sandbox.allowUnsandboxedCommands","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"true","since":"2.1.285","anchor":"sandbox-allowunsandboxedcommands"},
48
+ {"key":"sandbox.filesystem","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-filesystem"},
49
+ {"key":"sandbox.filesystem.allowWrite","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-filesystem-allowwrite"},
50
+ {"key":"sandbox.filesystem.denyWrite","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"sandbox-filesystem-denywrite"},
51
+ {"key":"sandbox.filesystem.denyRead","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-filesystem-denyread"},
52
+ {"key":"sandbox.filesystem.allowRead","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"sandbox-filesystem-allowread"},
53
+ {"key":"sandbox.filesystem.allowManagedReadPathsOnly","topic":"Sandbox settings","scope":"Managed","kind":"boolean","default":"false","since":null,"anchor":"sandbox-filesystem-allowmanagedreadpathsonly"},
54
+ {"key":"sandbox.filesystem.disabled","topic":"Sandbox settings","scope":"User or managed","kind":"boolean","default":null,"since":"2.1.216","anchor":"sandbox-filesystem-disabled"},
55
+ {"key":"sandbox.ignoreViolations","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-ignoreviolations"},
56
+ {"key":"sandbox.enableWeakerNestedSandbox","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"sandbox-enableweakernestedsandbox"},
57
+ {"key":"sandbox.enableWeakerNetworkIsolation","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"sandbox-enableweakernetworkisolation"},
58
+ {"key":"sandbox.allowAppleEvents","topic":"Sandbox settings","scope":"User or managed","kind":"boolean","default":"false","since":null,"anchor":"sandbox-allowappleevents"},
59
+ {"key":"sandbox.allowNestedUserNamespaces","topic":"Sandbox settings","scope":"User or managed","kind":"boolean","default":"false","since":"2.1.305","anchor":"sandbox-allownestedusernamespaces"},
60
+ {"key":"sandbox.ripgrep","topic":"Sandbox settings","scope":"User or managed","kind":"structured","default":null,"since":null,"anchor":"sandbox-ripgrep"},
61
+ {"key":"sandbox.bwrapPath","topic":"Sandbox settings","scope":"Managed","kind":"text","default":null,"since":null,"anchor":"sandbox-bwrappath"},
62
+ {"key":"sandbox.socatPath","topic":"Sandbox settings","scope":"Managed","kind":"text","default":null,"since":null,"anchor":"sandbox-socatpath"},
63
+ {"key":"sandbox.credentials","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-credentials"},
64
+ {"key":"sandbox.credentials.files","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":"2.1.221","anchor":"sandbox-credentials-files"},
65
+ {"key":"sandbox.credentials.envVars","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-credentials-envvars"},
66
+ {"key":"sandbox.credentials.allowPlaintextInject","topic":"Sandbox settings","scope":"User or managed","kind":"boolean","default":"false","since":null,"anchor":"sandbox-credentials-allowplaintextinject"},
67
+ {"key":"sandbox.credentials.awsPairs","topic":"Sandbox settings","scope":"User or managed","kind":"structured","default":null,"since":"2.1.224","anchor":"sandbox-credentials-awspairs"},
68
+ {"key":"sandbox.credentials.sigv4","topic":"Sandbox settings","scope":"User or managed","kind":"structured","default":null,"since":"2.1.224","anchor":"sandbox-credentials-sigv4"},
69
+ {"key":"sandbox.network","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-network"},
70
+ {"key":"sandbox.network.allowUnixSockets","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"sandbox-network-allowunixsockets"},
71
+ {"key":"sandbox.network.allowAllUnixSockets","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"sandbox-network-allowallunixsockets"},
72
+ {"key":"sandbox.network.allowLocalBinding","topic":"Sandbox settings","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"sandbox-network-allowlocalbinding"},
73
+ {"key":"sandbox.network.allowMachLookup","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"sandbox-network-allowmachlookup"},
74
+ {"key":"sandbox.network.allowedDomains","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":null,"since":"2.1.229","anchor":"sandbox-network-alloweddomains"},
75
+ {"key":"sandbox.network.deniedDomains","topic":"Sandbox settings","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"sandbox-network-denieddomains"},
76
+ {"key":"sandbox.network.strictAllowlist","topic":"Sandbox settings","scope":"User or managed","kind":"boolean","default":"false","since":"2.1.219","anchor":"sandbox-network-strictallowlist"},
77
+ {"key":"sandbox.network.allowManagedDomainsOnly","topic":"Sandbox settings","scope":"Managed","kind":"boolean","default":"false","since":null,"anchor":"sandbox-network-allowmanageddomainsonly"},
78
+ {"key":"sandbox.network.httpProxyPort","topic":"Sandbox settings","scope":"Any file","kind":"number","default":null,"since":null,"anchor":"sandbox-network-httpproxyport"},
79
+ {"key":"sandbox.network.socksProxyPort","topic":"Sandbox settings","scope":"Any file","kind":"number","default":null,"since":null,"anchor":"sandbox-network-socksproxyport"},
80
+ {"key":"sandbox.network.tlsTerminate","topic":"Sandbox settings","scope":"User or managed","kind":"structured","default":null,"since":null,"anchor":"sandbox-network-tlsterminate"},
81
+ {"key":"autoCompactEnabled","topic":"Memory and context","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"autocompactenabled"},
82
+ {"key":"autoCompactWindow","topic":"Memory and context","scope":"Any file","kind":"number","default":null,"since":null,"anchor":"autocompactwindow"},
83
+ {"key":"autoMemoryDirectory","topic":"Memory and context","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"automemorydirectory"},
84
+ {"key":"autoMemoryEnabled","topic":"Memory and context","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"automemoryenabled"},
85
+ {"key":"bashOutputMaxChars","topic":"Memory and context","scope":"Any file","kind":"number","default":null,"since":"2.1.261","anchor":"bashoutputmaxchars"},
86
+ {"key":"claudeMd","topic":"Memory and context","scope":"Managed","kind":"text","default":"unset","since":null,"anchor":"claudemd"},
87
+ {"key":"claudeMdExcludes","topic":"Memory and context","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"claudemdexcludes"},
88
+ {"key":"env","topic":"Memory and context","scope":"Any file","kind":"structured","default":"unset","since":"2.1.224","anchor":"env"},
89
+ {"key":"fileCheckpointingEnabled","topic":"Memory and context","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"filecheckpointingenabled"},
90
+ {"key":"idleCompaction","topic":"Memory and context","scope":"Any file","kind":"boolean","default":"true","since":"2.1.290","anchor":"idlecompaction"},
91
+ {"key":"plansDirectory","topic":"Memory and context","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"plansdirectory"},
92
+ {"key":"skillListingBudgetFraction","topic":"Memory and context","scope":"Any file","kind":"number","default":null,"since":null,"anchor":"skilllistingbudgetfraction"},
93
+ {"key":"skillListingMaxDescChars","topic":"Memory and context","scope":"Any file","kind":"number","default":"1536","since":null,"anchor":"skilllistingmaxdescchars"},
94
+ {"key":"taskOutputMaxChars","topic":"Memory and context","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"taskoutputmaxchars"},
95
+ {"key":"askUserQuestionTimeout","topic":"Interface and terminal","scope":"User or managed","kind":"text","default":"\"never\"","since":null,"anchor":"askuserquestiontimeout"},
96
+ {"key":"autoContinueAtUsageLimit","topic":"Interface and terminal","scope":"User or managed","kind":"boolean","default":"true","since":"2.1.234","anchor":"autocontinueatusagelimit"},
97
+ {"key":"autoScrollEnabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"autoscrollenabled"},
98
+ {"key":"axScreenReader","topic":"Interface and terminal","scope":"User or managed","kind":"boolean","default":null,"since":null,"anchor":"axscreenreader"},
99
+ {"key":"bashEditDiffEnabled","topic":"Interface and terminal","scope":"User or managed","kind":"boolean","default":null,"since":"2.1.269","anchor":"basheditdiffenabled"},
100
+ {"key":"companyAnnouncements","topic":"Interface and terminal","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"companyannouncements"},
101
+ {"key":"defaultShell","topic":"Interface and terminal","scope":"Any file","kind":"choice","options":["bash","powershell"],"default":null,"since":null,"anchor":"defaultshell"},
102
+ {"key":"dialogExpiry","topic":"Interface and terminal","scope":"User or managed","kind":"text","default":"\"5m\"","since":"2.1.224","anchor":"dialogexpiry"},
103
+ {"key":"editorMode","topic":"Interface and terminal","scope":"Any file","kind":"choice","options":["normal","vim"],"default":"\"normal\"","since":null,"anchor":"editormode"},
104
+ {"key":"emojiCompletionEnabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":"2.1.217","anchor":"emojicompletionenabled"},
105
+ {"key":"fileSuggestion","topic":"Interface and terminal","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"filesuggestion"},
106
+ {"key":"footerLinksRegexes","topic":"Interface and terminal","scope":"User or managed","kind":"structured","default":null,"since":null,"anchor":"footerlinksregexes"},
107
+ {"key":"keybindingFlavor","topic":"Interface and terminal","scope":"Any file","kind":"text","default":"unset","since":null,"anchor":"keybindingflavor"},
108
+ {"key":"maxProseWidth","topic":"Interface and terminal","scope":"Any file","kind":"number","default":null,"since":"2.1.282","anchor":"maxprosewidth"},
109
+ {"key":"prefersReducedMotion","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"prefersreducedmotion"},
110
+ {"key":"promptSuggestionEnabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"promptsuggestionenabled"},
111
+ {"key":"respectGitignore","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"respectgitignore"},
112
+ {"key":"respondToBashCommands","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"respondtobashcommands"},
113
+ {"key":"showClearContextOnPlanAccept","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"showclearcontextonplanaccept"},
114
+ {"key":"showTurnDuration","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"showturnduration"},
115
+ {"key":"spellcheck","topic":"Interface and terminal","scope":"User or managed","kind":"structured","default":null,"since":"2.1.235","anchor":"spellcheck"},
116
+ {"key":"spinnerTipsEnabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"spinnertipsenabled"},
117
+ {"key":"spinnerTipsOverride","topic":"Interface and terminal","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"spinnertipsoverride"},
118
+ {"key":"spinnerVerbs","topic":"Interface and terminal","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"spinnerverbs"},
119
+ {"key":"statusLine","topic":"Interface and terminal","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"statusline"},
120
+ {"key":"subagentStatusLine","topic":"Interface and terminal","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"subagentstatusline"},
121
+ {"key":"syntaxHighlightingDisabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"syntaxhighlightingdisabled"},
122
+ {"key":"terminalProgressBarEnabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"terminalprogressbarenabled"},
123
+ {"key":"terminalTitleFromRename","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"terminaltitlefromrename"},
124
+ {"key":"theme","topic":"Interface and terminal","scope":"Any file","kind":"choice","options":["auto","dark","light","dark-daltonized","light-daltonized","dark-ansi","light-ansi","custom:<slug>"],"default":"\"dark\"","since":null,"anchor":"theme"},
125
+ {"key":"timeFormat","topic":"Interface and terminal","scope":"Any file","kind":"choice","options":["auto","12-hour","24-hour","24-hour-utc"],"default":"\"auto\"","since":"2.1.257","anchor":"timeformat"},
126
+ {"key":"timeZone","topic":"Interface and terminal","scope":"Any file","kind":"text","default":null,"since":"2.1.257","anchor":"timezone"},
127
+ {"key":"tui","topic":"Interface and terminal","scope":"Any file","kind":"choice","options":["default","fullscreen"],"default":null,"since":null,"anchor":"tui"},
128
+ {"key":"verbose","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"verbose"},
129
+ {"key":"viewMode","topic":"Interface and terminal","scope":"Any file","kind":"choice","options":["default","verbose","focus"],"default":null,"since":null,"anchor":"viewmode"},
130
+ {"key":"vimInsertModeRemaps","topic":"Interface and terminal","scope":"User or managed","kind":"structured","default":"unset","since":null,"anchor":"viminsertmoderemaps"},
131
+ {"key":"voice","topic":"Interface and terminal","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"voice"},
132
+ {"key":"voiceEnabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"unset","since":null,"anchor":"voiceenabled"},
133
+ {"key":"wheelScrollAccelerationEnabled","topic":"Interface and terminal","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"wheelscrollaccelerationenabled"},
134
+ {"key":"attribution","topic":"Git and attribution","scope":"Any file","kind":"structured","default":null,"since":"2.1.281","anchor":"attribution"},
135
+ {"key":"includeCoAuthoredBy","topic":"Git and attribution","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"includecoauthoredby"},
136
+ {"key":"includeGitInstructions","topic":"Git and attribution","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"includegitinstructions"},
137
+ {"key":"prUrlTemplate","topic":"Git and attribution","scope":"Any file","kind":"text","default":"unset","since":null,"anchor":"prurltemplate"},
138
+ {"key":"attribution.commit","topic":"Git and attribution","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"attribution-commit"},
139
+ {"key":"attribution.pr","topic":"Git and attribution","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"attribution-pr"},
140
+ {"key":"attribution.sessionUrl","topic":"Git and attribution","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"attribution-sessionurl"},
141
+ {"key":"allowedHttpHookUrls","topic":"Hooks and automation","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"allowedhttphookurls"},
142
+ {"key":"allowManagedHooksOnly","topic":"Hooks and automation","scope":"Managed","kind":"boolean","default":null,"since":"2.1.238","anchor":"allowmanagedhooksonly"},
143
+ {"key":"disableAllHooks","topic":"Hooks and automation","scope":"Any file","kind":"boolean","default":null,"since":"2.1.242","anchor":"disableallhooks"},
144
+ {"key":"disableWorkflows","topic":"Hooks and automation","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"disableworkflows"},
145
+ {"key":"enableWorkflows","topic":"Hooks and automation","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"enableworkflows"},
146
+ {"key":"hooks","topic":"Hooks and automation","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"hooks"},
147
+ {"key":"httpHookAllowedEnvVars","topic":"Hooks and automation","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"httphookallowedenvvars"},
148
+ {"key":"workflowKeywordTriggerEnabled","topic":"Hooks and automation","scope":"Any file","kind":"boolean","default":"true","since":null,"anchor":"workflowkeywordtriggerenabled"},
149
+ {"key":"workflowSizeGuideline","topic":"Hooks and automation","scope":"Any file","kind":"choice","options":["unrestricted","small","medium","large"],"default":null,"since":"2.1.219","anchor":"workflowsizeguideline"},
150
+ {"key":"disableBundledSkills","topic":"Plugins and skills","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"disablebundledskills"},
151
+ {"key":"disableSkillShellExecution","topic":"Plugins and skills","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"disableskillshellexecution"},
152
+ {"key":"skillOverrides","topic":"Plugins and skills","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"skilloverrides"},
153
+ {"key":"syncClaudeAiSkills","topic":"Plugins and skills","scope":"User, local, or managed","kind":"boolean","default":null,"since":null,"anchor":"syncclaudeaiskills"},
154
+ {"key":"syncClaudeAiPlugins","topic":"Plugins and skills","scope":"User, local, or managed","kind":"boolean","default":null,"since":"2.1.273","anchor":"syncclaudeaiplugins"},
155
+ {"key":"allowedChannelPlugins","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":"2.1.267","anchor":"allowedchannelplugins"},
156
+ {"key":"blockedMarketplaces","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":"2.1.223","anchor":"blockedmarketplaces"},
157
+ {"key":"channelsEnabled","topic":"Plugins and skills","scope":"Managed","kind":"boolean","default":null,"since":null,"anchor":"channelsenabled"},
158
+ {"key":"disableCommandPluginSources","topic":"Plugins and skills","scope":"Managed","kind":"boolean","default":null,"since":"2.1.229","anchor":"disablecommandpluginsources"},
159
+ {"key":"pluginSuggestionMarketplaces","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"pluginsuggestionmarketplaces"},
160
+ {"key":"pluginTrustMessage","topic":"Plugins and skills","scope":"Managed","kind":"text","default":null,"since":null,"anchor":"plugintrustmessage"},
161
+ {"key":"strictKnownMarketplaces","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"strictknownmarketplaces"},
162
+ {"key":"strictPluginOnlyCustomization","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"strictpluginonlycustomization"},
163
+ {"key":"strictPluginOnlyCustomization.skills","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"strictpluginonlycustomization-skills"},
164
+ {"key":"strictPluginOnlyCustomization.agents","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"strictpluginonlycustomization-agents"},
165
+ {"key":"strictPluginOnlyCustomization.hooks","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"strictpluginonlycustomization-hooks"},
166
+ {"key":"strictPluginOnlyCustomization.mcp","topic":"Plugins and skills","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"strictpluginonlycustomization-mcp"},
167
+ {"key":"enabledPlugins","topic":"Plugins and skills","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"enabledplugins"},
168
+ {"key":"extraKnownMarketplaces","topic":"Plugins and skills","scope":"Any file","kind":"structured","default":"unset","since":"2.1.238","anchor":"extraknownmarketplaces"},
169
+ {"key":"pluginConfigs","topic":"Plugins and skills","scope":"User or managed","kind":"structured","default":"unset","since":null,"anchor":"pluginconfigs"},
170
+ {"key":"prependPlugins","topic":"Plugins and skills","scope":"User or managed","kind":"structured","default":"unset","since":null,"anchor":"prependplugins"},
171
+ {"key":"appendPlugins","topic":"Plugins and skills","scope":"User or managed","kind":"structured","default":"unset","since":null,"anchor":"appendplugins"},
172
+ {"key":"allowAllClaudeAiMcps","topic":"MCP","scope":"Managed","kind":"boolean","default":null,"since":null,"anchor":"allowallclaudeaimcps"},
173
+ {"key":"allowClaudeInChromeWithManagedMcp","topic":"MCP","scope":"Managed","kind":"boolean","default":null,"since":"2.1.282","anchor":"allowclaudeinchromewithmanagedmcp"},
174
+ {"key":"allowedMcpServers","topic":"MCP","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"allowedmcpservers"},
175
+ {"key":"allowManagedMcpServersOnly","topic":"MCP","scope":"Managed","kind":"boolean","default":null,"since":null,"anchor":"allowmanagedmcpserversonly"},
176
+ {"key":"deniedMcpServers","topic":"MCP","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"deniedmcpservers"},
177
+ {"key":"disableClaudeAiConnectors","topic":"MCP","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"disableclaudeaiconnectors"},
178
+ {"key":"disabledMcpjsonServers","topic":"MCP","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"disabledmcpjsonservers"},
179
+ {"key":"enableAllProjectMcpServers","topic":"MCP","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"enableallprojectmcpservers"},
180
+ {"key":"enabledMcpjsonServers","topic":"MCP","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"enabledmcpjsonservers"},
181
+ {"key":"managedMcpServers","topic":"MCP","scope":"Managed","kind":"structured","default":null,"since":"2.1.259","anchor":"managedmcpservers"},
182
+ {"key":"agent","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"agent"},
183
+ {"key":"crossSessionInbound","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"choice","options":["accept","hold","refuse"],"default":null,"since":"2.1.224","anchor":"crosssessioninbound"},
184
+ {"key":"disableAgentView","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"disableagentview"},
185
+ {"key":"isolatePeerMachines","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"boolean","default":null,"since":"2.1.224","anchor":"isolatepeermachines"},
186
+ {"key":"processWrapper","topic":"Agents, sessions, and worktrees","scope":"User or managed","kind":"text","default":null,"since":"2.1.210","anchor":"processwrapper"},
187
+ {"key":"teammateMode","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"choice","options":["in-process","auto","tmux","iterm2"],"default":"\"in-process\"","since":null,"anchor":"teammatemode"},
188
+ {"key":"worktree","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"structured","default":"unset","since":null,"anchor":"worktree"},
189
+ {"key":"worktree.baseRef","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"choice","options":["fresh","head"],"default":"\"fresh\"","since":null,"anchor":"worktree-baseref"},
190
+ {"key":"worktree.symlinkDirectories","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"worktree-symlinkdirectories"},
191
+ {"key":"worktree.sparsePaths","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"worktree-sparsepaths"},
192
+ {"key":"worktree.bgIsolation","topic":"Agents, sessions, and worktrees","scope":"Any file","kind":"choice","options":["worktree","none"],"default":"\"worktree\"","since":null,"anchor":"worktree-bgisolation"},
193
+ {"key":"worktree.location","topic":"Agents, sessions, and worktrees","scope":"User","kind":"text","default":null,"since":null,"anchor":"worktree-location"},
194
+ {"key":"agentPushNotifEnabled","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"agentpushnotifenabled"},
195
+ {"key":"awaySummaryEnabled","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"awaysummaryenabled"},
196
+ {"key":"disableArtifact","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"disableartifact"},
197
+ {"key":"disableDeepLinkRegistration","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"structured","default":null,"since":null,"anchor":"disabledeeplinkregistration"},
198
+ {"key":"disableDesktopLocalSessions","topic":"Remote, desktop, and notifications","scope":"Managed","kind":"boolean","default":null,"since":null,"anchor":"disabledesktoplocalsessions"},
199
+ {"key":"disableRemoteControl","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"disableremotecontrol"},
200
+ {"key":"enableArtifact","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"enableartifact"},
201
+ {"key":"inputNeededNotifEnabled","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"boolean","default":"false","since":null,"anchor":"inputneedednotifenabled"},
202
+ {"key":"preferredNotifChannel","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"choice","options":["auto","terminal_bell","iterm2","iterm2_with_bell","kitty","ghostty","notifications_disabled"],"default":"\"auto\"","since":null,"anchor":"preferrednotifchannel"},
203
+ {"key":"remote.defaultEnvironmentId","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"remote-defaultenvironmentid"},
204
+ {"key":"remoteControlAtStartup","topic":"Remote, desktop, and notifications","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"remotecontrolatstartup"},
205
+ {"key":"sshConfigs","topic":"Remote, desktop, and notifications","scope":"User or managed","kind":"structured","default":"unset","since":null,"anchor":"sshconfigs"},
206
+ {"key":"sshHostAllowlist","topic":"Remote, desktop, and notifications","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"sshhostallowlist"},
207
+ {"key":"allowedProviders","topic":"Authentication and providers","scope":"Managed","kind":"structured","default":null,"since":"2.1.285","anchor":"allowedproviders"},
208
+ {"key":"apiKeyHelper","topic":"Authentication and providers","scope":"Any file","kind":"text","default":null,"since":"2.1.246","anchor":"apikeyhelper"},
209
+ {"key":"awsAuthRefresh","topic":"Authentication and providers","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"awsauthrefresh"},
210
+ {"key":"awsCredentialExport","topic":"Authentication and providers","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"awscredentialexport"},
211
+ {"key":"forceLoginMethod","topic":"Authentication and providers","scope":"Any file","kind":"choice","options":["claudeai","console","gateway"],"default":null,"since":null,"anchor":"forceloginmethod"},
212
+ {"key":"forceLoginGatewayUrl","topic":"Authentication and providers","scope":"User or managed","kind":"text","default":null,"since":null,"anchor":"forcelogingatewayurl"},
213
+ {"key":"forceLoginOrgUUID","topic":"Authentication and providers","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"forceloginorguuid"},
214
+ {"key":"gatewayInternalNetworks","topic":"Authentication and providers","scope":"Managed","kind":"structured","default":null,"since":"2.1.268","anchor":"gatewayinternalnetworks"},
215
+ {"key":"gcpAuthRefresh","topic":"Authentication and providers","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"gcpauthrefresh"},
216
+ {"key":"otelHeadersHelper","topic":"Authentication and providers","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"otelheadershelper"},
217
+ {"key":"autoUpdatesChannel","topic":"Updates and versioning","scope":"Any file","kind":"choice","options":["latest","stable"],"default":null,"since":null,"anchor":"autoupdateschannel"},
218
+ {"key":"minimumVersion","topic":"Updates and versioning","scope":"Any file","kind":"text","default":null,"since":null,"anchor":"minimumversion"},
219
+ {"key":"requiredMaximumVersion","topic":"Updates and versioning","scope":"Managed","kind":"text","default":null,"since":"2.1.163","anchor":"requiredmaximumversion"},
220
+ {"key":"requiredMinimumVersion","topic":"Updates and versioning","scope":"Managed","kind":"text","default":null,"since":"2.1.163","anchor":"requiredminimumversion"},
221
+ {"key":"browserExternalPageTools","topic":"Tools","scope":"Managed","kind":"text","default":null,"since":null,"anchor":"browserexternalpagetools"},
222
+ {"key":"disableBrowserExternalNavigation","topic":"Tools","scope":"Managed","kind":"boolean","default":null,"since":null,"anchor":"disablebrowserexternalnavigation"},
223
+ {"key":"disableMobileSimulatorTools","topic":"Tools","scope":"Managed","kind":"boolean","default":null,"since":null,"anchor":"disablemobilesimulatortools"},
224
+ {"key":"cleanupPeriodDays","topic":"Privacy and telemetry","scope":"Any file","kind":"number","default":"30","since":null,"anchor":"cleanupperioddays"},
225
+ {"key":"desktopSessionCleanupPeriodDays","topic":"Privacy and telemetry","scope":"User or managed","kind":"number","default":null,"since":"2.1.248","anchor":"desktopsessioncleanupperioddays"},
226
+ {"key":"feedbackDrafts","topic":"Privacy and telemetry","scope":"User or managed","kind":"choice","options":["notify","quiet","off"],"default":"\"notify\"","since":null,"anchor":"feedbackdrafts"},
227
+ {"key":"feedbackSurveyRate","topic":"Privacy and telemetry","scope":"Any file","kind":"number","default":null,"since":null,"anchor":"feedbacksurveyrate"},
228
+ {"key":"skipWebFetchPreflight","topic":"Privacy and telemetry","scope":"Any file","kind":"boolean","default":null,"since":null,"anchor":"skipwebfetchpreflight"},
229
+ {"key":"disableSideloadFlags","topic":"Enterprise and managed settings","scope":"Managed","kind":"boolean","default":"false","since":"2.1.193","anchor":"disablesideloadflags"},
230
+ {"key":"forceRemoteSettingsRefresh","topic":"Enterprise and managed settings","scope":"Managed","kind":"boolean","default":"false","since":null,"anchor":"forceremotesettingsrefresh"},
231
+ {"key":"managedSourcesBehavior","topic":"Enterprise and managed settings","scope":"Managed","kind":"choice","options":["first-wins","merge"],"default":"\"first-wins\"","since":"2.1.242","anchor":"managedsourcesbehavior"},
232
+ {"key":"parentSettingsBehavior","topic":"Enterprise and managed settings","scope":"Managed","kind":"choice","options":["first-wins","merge"],"default":"\"first-wins\"","since":null,"anchor":"parentsettingsbehavior"},
233
+ {"key":"policyHelper","topic":"Enterprise and managed settings","scope":"Managed","kind":"structured","default":null,"since":null,"anchor":"policyhelper"},
234
+ {"key":"policyHelper.path","topic":"Enterprise and managed settings","scope":"Managed","kind":"text","default":null,"since":null,"anchor":"policyhelper-path"},
235
+ {"key":"policyHelper.timeoutMs","topic":"Enterprise and managed settings","scope":"Managed","kind":"number","default":"10000","since":null,"anchor":"policyhelper-timeoutms"},
236
+ {"key":"policyHelper.refreshIntervalMs","topic":"Enterprise and managed settings","scope":"Managed","kind":"number","default":null,"since":null,"anchor":"policyhelper-refreshintervalms"},
237
+ {"key":"wslInheritsWindowsSettings","topic":"Enterprise and managed settings","scope":"Managed","kind":"boolean","default":null,"since":"2.1.282","anchor":"wslinheritswindowssettings"},
238
+ {"key":"autoConnectIde","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"false","since":null,"anchor":"autoconnectide"},
239
+ {"key":"autoInstallIdeExtension","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"true","since":null,"anchor":"autoinstallideextension"},
240
+ {"key":"claudeInChromeDefaultEnabled","topic":"Global config settings","scope":"Global config","kind":"boolean","default":null,"since":null,"anchor":"claudeinchromedefaultenabled"},
241
+ {"key":"copyFullResponse","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"false","since":null,"anchor":"copyfullresponse"},
242
+ {"key":"copyOnSelect","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"true","since":null,"anchor":"copyonselect"},
243
+ {"key":"defaultToAgentsView","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"false","since":null,"anchor":"defaulttoagentsview"},
244
+ {"key":"diffTool","topic":"Global config settings","scope":"Global config","kind":"choice","options":["auto","terminal"],"default":"\"auto\"","since":null,"anchor":"difftool"},
245
+ {"key":"externalEditorContext","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"false","since":null,"anchor":"externaleditorcontext"},
246
+ {"key":"leftArrowOpensAgents","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"true","since":null,"anchor":"leftarrowopensagents"},
247
+ {"key":"permissionExplainerEnabled","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"true","since":null,"anchor":"permissionexplainerenabled"},
248
+ {"key":"prStatusFooterEnabled","topic":"Global config settings","scope":"Global config","kind":"boolean","default":"true","since":null,"anchor":"prstatusfooterenabled"},
249
+ {"key":"teammateDefaultModel","topic":"Global config settings","scope":"Global config","kind":"text","default":"unset","since":null,"anchor":"teammatedefaultmodel"}
250
+ ]
251
+ }
@@ -0,0 +1,46 @@
1
+ // GET and POST /api/claude-settings: Settings › Claude Code's reading of the
2
+ // short list of Claude Code settings, and the press that changes one of them
3
+ // (claude-settings.mjs).
4
+ //
5
+ // THIS MACHINE ONLY, past the deck's own gates (index.mjs). The read is in
6
+ // GUARDED_READS, since it says what the user's settings.json holds, and the
7
+ // write is a mutation like any other; on top of both, a request that did not
8
+ // come from this computer is refused here, as Radar's are, so a paired device
9
+ // can never change how the Claude Code on this machine behaves.
10
+ import { readClaudeSettings, SettingsRefusal, updateClaudeSetting } from "./claude-settings.mjs";
11
+
12
+ export const CLAUDE_SETTINGS_ROUTE = "/api/claude-settings";
13
+
14
+ const loopback = req => ["127.0.0.1", "::1", "::ffff:127.0.0.1"].includes(req.socket.remoteAddress);
15
+
16
+ function reply(res, status, body) {
17
+ res.writeHead(status, { "Content-Type": "application/json", "Cache-Control": "no-store" });
18
+ res.end(JSON.stringify(body));
19
+ }
20
+
21
+ async function body(req, max) {
22
+ const chunks = []; let size = 0;
23
+ for await (const chunk of req) { size += chunk.length; if (size > max) throw new Error("Request too large."); chunks.push(chunk); }
24
+ return Buffer.concat(chunks);
25
+ }
26
+
27
+ export async function handleClaudeSettings(req, res, settings = { read: readClaudeSettings, update: updateClaudeSetting }) {
28
+ if (!loopback(req)) return reply(res, 403, { ok: false, error: "Claude Code settings can be changed on this computer only." });
29
+ if (req.method === "GET") {
30
+ try { return reply(res, 200, await settings.read()); }
31
+ catch { return reply(res, 500, { ok: false, error: "Could not read Claude Code settings. Try again." }); }
32
+ }
33
+ if (req.method !== "POST") return reply(res, 405, { ok: false, error: "Use GET or POST." });
34
+ let data;
35
+ try { data = JSON.parse((await body(req, 4096)).toString()); }
36
+ catch { return reply(res, 400, { ok: false, error: "Invalid settings request." }); }
37
+ // An id and a value, and nothing else: a body that names more is not this
38
+ // press and is refused whole.
39
+ if (!data || typeof data !== "object" || Array.isArray(data) || Object.keys(data).sort().join() !== "id,value")
40
+ return reply(res, 400, { ok: false, error: "Invalid settings request." });
41
+ try { return reply(res, 200, await settings.update(data.id, data.value)); }
42
+ catch (error) {
43
+ if (error instanceof SettingsRefusal) return reply(res, 400, { ok: false, error: error.message });
44
+ return reply(res, 500, { ok: false, error: "Could not save the change. Your settings.json was not modified." });
45
+ }
46
+ }