ccdeck 3.46.0 → 3.47.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 (54) hide show
  1. package/README.md +72 -43
  2. package/bin/cli/startup.js +23 -0
  3. package/bin/deck.js +32 -1
  4. package/dist/web/assets/BrowserWatchModal-Bau0ttnH.js +1 -0
  5. package/dist/web/assets/IntegrationModal-8tTi25gA.js +6 -0
  6. package/dist/web/assets/{RadioPanel-biw_BbZq.js → RadioPanel-DbmJJPsz.js} +1 -1
  7. package/dist/web/assets/TrafficRadar-CPjAXd5e.js +8 -0
  8. package/dist/web/assets/{UsageHistoryModal-Bd-JRAa4.js → UsageHistoryModal-qfmvXdWJ.js} +1 -1
  9. package/dist/web/assets/app-BFFG6Wz8.js +321 -0
  10. package/dist/web/assets/app-DfcfHvcX.css +1 -0
  11. package/dist/web/assets/claude-settings-index-1Qg1AUda.js +1 -0
  12. package/dist/web/assets/{index-DmENqVdt.js → index-Ca87aJP9.js} +1 -1
  13. package/dist/web/index.html +3 -3
  14. package/package.json +1 -1
  15. package/release-notes.json +30 -0
  16. package/src/server/ccusage-install.mjs +58 -1
  17. package/src/server/ccusage-registry.mjs +289 -0
  18. package/src/server/ccusage-runner.mjs +9 -2
  19. package/src/server/claude-accounts.mjs +21 -0
  20. package/src/server/claude-login.mjs +21 -3
  21. package/src/server/claude-settings-catalog.d.mts +37 -0
  22. package/src/server/claude-settings-catalog.mjs +169 -0
  23. package/src/server/claude-settings-docs.mjs +109 -0
  24. package/src/server/claude-settings-index.json +251 -0
  25. package/src/server/claude-settings-routes.mjs +46 -0
  26. package/src/server/claude-settings.mjs +406 -0
  27. package/src/server/cli-arrival.mjs +64 -0
  28. package/src/server/index.mjs +18 -2
  29. package/src/server/integrations/proxy.mjs +11 -2
  30. package/src/server/integrations/routes.mjs +6 -4
  31. package/src/server/quota-close-watch.mjs +81 -0
  32. package/src/server/quota-closes.mjs +181 -0
  33. package/src/server/quota-history.mjs +8 -1
  34. package/src/server/quota-shape.mjs +12 -0
  35. package/src/server/quota.mjs +28 -1
  36. package/src/server/request-gates.mjs +3 -1
  37. package/src/server/tool-audit-operations.mjs +30 -10
  38. package/src/server/tool-audit-report.mjs +79 -7
  39. package/src/server/tool-audit-routes.mjs +1 -1
  40. package/src/server/tool-audit-skills.mjs +8 -3
  41. package/src/server/tool-audit.mjs +55 -5
  42. package/src/server/traffic-radar-capture.mjs +3 -3
  43. package/src/server/traffic-radar-config.mjs +10 -3
  44. package/src/server/traffic-radar-monitor.mjs +8 -5
  45. package/src/server/traffic-radar-permission.mjs +162 -0
  46. package/src/server/traffic-radar-platform.mjs +9 -3
  47. package/src/server/traffic-radar-routes.mjs +8 -18
  48. package/src/server/traffic-radar-service.mjs +76 -92
  49. package/src/server/usage-routes.mjs +14 -2
  50. package/dist/web/assets/BrowserWatchModal-CoX9FIUE.js +0 -1
  51. package/dist/web/assets/IntegrationModal-B1ypkK-E.js +0 -5
  52. package/dist/web/assets/TrafficRadar-nhtFoYVv.js +0 -8
  53. package/dist/web/assets/app-BlRY6EME.css +0 -1
  54. package/dist/web/assets/app-DhGvSH7o.js +0 -319
@@ -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
+ }