@rayss-dev/openclaude 0.28.0-by-rayss
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +29 -0
- package/README.md +511 -0
- package/bin/import-specifier.mjs +13 -0
- package/bin/import-specifier.test.mjs +13 -0
- package/bin/node-compile-cache.mjs +17 -0
- package/bin/openclaude +126 -0
- package/config/defaults/CLAUDE.md +38 -0
- package/config/defaults/settings.json +12 -0
- package/config/settings-schema.json +2635 -0
- package/dist/cli.mjs +11268 -0
- package/dist/sdk.mjs +278925 -0
- package/docs/settings-reference.md +130 -0
- package/docs/windows-aliases-and-launchers.md +162 -0
- package/package.json +218 -0
- package/scripts/windows/openclaude-aliases.ps1 +206 -0
- package/src/entrypoints/sdk/coreTypes.generated.ts +2385 -0
- package/src/entrypoints/sdk.d.ts +601 -0
- package/vendor/node-domexception-shim/index.js +3 -0
- package/vendor/node-domexception-shim/package.json +8 -0
|
@@ -0,0 +1,2635 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"$schema": {
|
|
6
|
+
"description": "JSON Schema reference for OpenClaude settings",
|
|
7
|
+
"anyOf": [
|
|
8
|
+
{
|
|
9
|
+
"type": "string",
|
|
10
|
+
"const": "https://raw.githubusercontent.com/rayss868/openclaude/main/config/settings-schema.json"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"type": "string",
|
|
14
|
+
"const": "https://json.schemastore.org/claude-code-settings.json"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"subscriptionType": {
|
|
19
|
+
"description": "Override the active subscription type from user settings only. Project, repository, local, flag, and policy settings are ignored to prevent spoofing. Allowed values: free, pro, max, team, enterprise. The \"free\" value is authoritative and takes precedence over OAuth fallback detection.",
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"free",
|
|
23
|
+
"pro",
|
|
24
|
+
"max",
|
|
25
|
+
"team",
|
|
26
|
+
"enterprise"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"apiKeyHelper": {
|
|
30
|
+
"description": "Path to a script that outputs authentication values",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"awsCredentialExport": {
|
|
34
|
+
"description": "Path to a script that exports AWS credentials",
|
|
35
|
+
"type": "string"
|
|
36
|
+
},
|
|
37
|
+
"awsAuthRefresh": {
|
|
38
|
+
"description": "Path to a script that refreshes AWS authentication",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
"gcpAuthRefresh": {
|
|
42
|
+
"description": "Command to refresh GCP authentication (e.g., gcloud auth application-default login)",
|
|
43
|
+
"type": "string"
|
|
44
|
+
},
|
|
45
|
+
"verificationAgent": {
|
|
46
|
+
"description": "Enable the built-in verification agent that double-checks completed implementation work. Set to false to disable it. Takes effect on the next session.",
|
|
47
|
+
"type": "boolean"
|
|
48
|
+
},
|
|
49
|
+
"fileSuggestion": {
|
|
50
|
+
"description": "Custom file suggestion configuration for @ mentions",
|
|
51
|
+
"type": "object",
|
|
52
|
+
"properties": {
|
|
53
|
+
"type": {
|
|
54
|
+
"type": "string",
|
|
55
|
+
"const": "command"
|
|
56
|
+
},
|
|
57
|
+
"command": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"required": [
|
|
62
|
+
"type",
|
|
63
|
+
"command"
|
|
64
|
+
],
|
|
65
|
+
"additionalProperties": false
|
|
66
|
+
},
|
|
67
|
+
"respectGitignore": {
|
|
68
|
+
"description": "Whether file picker should respect .gitignore files (default: true). Note: .ignore files are always respected.",
|
|
69
|
+
"type": "boolean"
|
|
70
|
+
},
|
|
71
|
+
"cleanupPeriodDays": {
|
|
72
|
+
"description": "Number of days to retain chat transcripts (default: 30). Setting to 0 disables session persistence entirely: no transcripts are written and existing transcripts are deleted at startup.",
|
|
73
|
+
"type": "integer",
|
|
74
|
+
"minimum": -9007199254740991,
|
|
75
|
+
"maximum": 9007199254740991
|
|
76
|
+
},
|
|
77
|
+
"env": {
|
|
78
|
+
"description": "Environment variables to set for Claude Code sessions",
|
|
79
|
+
"type": "object",
|
|
80
|
+
"propertyNames": {
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
"additionalProperties": {
|
|
84
|
+
"type": "string"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"attribution": {
|
|
88
|
+
"description": "Customize attribution text for commits and PRs. Unspecified fields are off by default; set a non-empty string to opt in.",
|
|
89
|
+
"type": "object",
|
|
90
|
+
"properties": {
|
|
91
|
+
"commit": {
|
|
92
|
+
"description": "Attribution text for git commits, including any trailers. Empty string hides attribution.",
|
|
93
|
+
"type": "string"
|
|
94
|
+
},
|
|
95
|
+
"pr": {
|
|
96
|
+
"description": "Attribution text for pull request descriptions. Empty string hides attribution.",
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"additionalProperties": false
|
|
101
|
+
},
|
|
102
|
+
"includeCoAuthoredBy": {
|
|
103
|
+
"description": "Deprecated: Use attribution instead. Whether to include Claude's co-authored by attribution in commits and PRs (defaults to false)",
|
|
104
|
+
"type": "boolean"
|
|
105
|
+
},
|
|
106
|
+
"includeGitInstructions": {
|
|
107
|
+
"description": "Include built-in commit and PR workflow instructions in Claude's system prompt (default: true)",
|
|
108
|
+
"type": "boolean"
|
|
109
|
+
},
|
|
110
|
+
"permissions": {
|
|
111
|
+
"description": "Tool usage permissions configuration",
|
|
112
|
+
"type": "object",
|
|
113
|
+
"properties": {
|
|
114
|
+
"allow": {
|
|
115
|
+
"description": "List of permission rules for allowed operations",
|
|
116
|
+
"type": "array",
|
|
117
|
+
"items": {
|
|
118
|
+
"type": "string"
|
|
119
|
+
}
|
|
120
|
+
},
|
|
121
|
+
"deny": {
|
|
122
|
+
"description": "List of permission rules for denied operations",
|
|
123
|
+
"type": "array",
|
|
124
|
+
"items": {
|
|
125
|
+
"type": "string"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"ask": {
|
|
129
|
+
"description": "List of permission rules that should always prompt for confirmation",
|
|
130
|
+
"type": "array",
|
|
131
|
+
"items": {
|
|
132
|
+
"type": "string"
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
"defaultMode": {
|
|
136
|
+
"description": "Default permission mode when Claude Code needs access",
|
|
137
|
+
"type": "string",
|
|
138
|
+
"enum": [
|
|
139
|
+
"acceptEdits",
|
|
140
|
+
"bypassPermissions",
|
|
141
|
+
"default",
|
|
142
|
+
"dontAsk",
|
|
143
|
+
"fullAccess",
|
|
144
|
+
"plan"
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"disableBypassPermissionsMode": {
|
|
148
|
+
"description": "Disable the ability to bypass permission prompts",
|
|
149
|
+
"type": "string",
|
|
150
|
+
"enum": [
|
|
151
|
+
"disable"
|
|
152
|
+
]
|
|
153
|
+
},
|
|
154
|
+
"allowBypassPermissionsMode": {
|
|
155
|
+
"description": "Allow bypass permissions mode to appear in the mode list without requiring the CLI flag",
|
|
156
|
+
"type": "boolean"
|
|
157
|
+
},
|
|
158
|
+
"additionalDirectories": {
|
|
159
|
+
"description": "Additional directories to include in the permission scope",
|
|
160
|
+
"type": "array",
|
|
161
|
+
"items": {
|
|
162
|
+
"type": "string"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
"additionalProperties": {}
|
|
167
|
+
},
|
|
168
|
+
"model": {
|
|
169
|
+
"description": "Override the default model used by Claude Code",
|
|
170
|
+
"type": "string"
|
|
171
|
+
},
|
|
172
|
+
"availableModels": {
|
|
173
|
+
"description": "Allowlist of models that users can select. Accepts family aliases (\"opus\" allows any opus version), version prefixes (\"opus-4-5\" allows only that version), and full model IDs. If undefined, all models are available. If empty array, only the default model is available. Typically set in managed settings by enterprise administrators.",
|
|
174
|
+
"type": "array",
|
|
175
|
+
"items": {
|
|
176
|
+
"type": "string"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
"providerProfileModelPickerMode": {
|
|
180
|
+
"description": "Controls /model options when an active provider profile is applied. \"profile\" shows only explicitly configured profile models; \"provider\" shows the provider catalog/discovery list plus explicit profile-only custom models; \"auto\" uses profile mode when the profile has multiple explicitly configured models, otherwise provider mode.",
|
|
181
|
+
"type": "string",
|
|
182
|
+
"enum": [
|
|
183
|
+
"auto",
|
|
184
|
+
"profile",
|
|
185
|
+
"provider"
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
"modelOverrides": {
|
|
189
|
+
"description": "Override mapping from Anthropic model ID (e.g. \"claude-opus-4-6\") to provider-specific model ID (e.g. a Bedrock inference profile ARN). Typically set in managed settings by enterprise administrators.",
|
|
190
|
+
"type": "object",
|
|
191
|
+
"propertyNames": {
|
|
192
|
+
"type": "string"
|
|
193
|
+
},
|
|
194
|
+
"additionalProperties": {
|
|
195
|
+
"type": "string"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"enableAllProjectMcpServers": {
|
|
199
|
+
"description": "Whether to automatically approve all MCP servers in the project",
|
|
200
|
+
"type": "boolean"
|
|
201
|
+
},
|
|
202
|
+
"enabledMcpjsonServers": {
|
|
203
|
+
"description": "List of approved MCP servers from .mcp.json",
|
|
204
|
+
"type": "array",
|
|
205
|
+
"items": {
|
|
206
|
+
"type": "string"
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
"disabledMcpjsonServers": {
|
|
210
|
+
"description": "List of rejected MCP servers from .mcp.json",
|
|
211
|
+
"type": "array",
|
|
212
|
+
"items": {
|
|
213
|
+
"type": "string"
|
|
214
|
+
}
|
|
215
|
+
},
|
|
216
|
+
"allowedMcpServers": {
|
|
217
|
+
"description": "Enterprise allowlist of MCP servers that can be used. Applies to all scopes including enterprise servers from managed-mcp.json. If undefined, all servers are allowed. If empty array, no servers are allowed. Denylist takes precedence - if a server is on both lists, it is denied.",
|
|
218
|
+
"type": "array",
|
|
219
|
+
"items": {
|
|
220
|
+
"type": "object",
|
|
221
|
+
"properties": {
|
|
222
|
+
"serverName": {
|
|
223
|
+
"description": "Name of the MCP server that users are allowed to configure",
|
|
224
|
+
"type": "string",
|
|
225
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
226
|
+
},
|
|
227
|
+
"serverCommand": {
|
|
228
|
+
"description": "Command array [command, ...args] to match exactly for allowed stdio servers",
|
|
229
|
+
"minItems": 1,
|
|
230
|
+
"type": "array",
|
|
231
|
+
"items": {
|
|
232
|
+
"type": "string"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"serverUrl": {
|
|
236
|
+
"description": "URL pattern with wildcard support (e.g., \"https://*.example.com/*\") for allowed remote MCP servers",
|
|
237
|
+
"type": "string"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"additionalProperties": false
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"deniedMcpServers": {
|
|
244
|
+
"description": "Enterprise denylist of MCP servers that are explicitly blocked. If a server is on the denylist, it will be blocked across all scopes including enterprise. Denylist takes precedence over allowlist - if a server is on both lists, it is denied.",
|
|
245
|
+
"type": "array",
|
|
246
|
+
"items": {
|
|
247
|
+
"type": "object",
|
|
248
|
+
"properties": {
|
|
249
|
+
"serverName": {
|
|
250
|
+
"description": "Name of the MCP server that is explicitly blocked",
|
|
251
|
+
"type": "string",
|
|
252
|
+
"pattern": "^[a-zA-Z0-9_-]+$"
|
|
253
|
+
},
|
|
254
|
+
"serverCommand": {
|
|
255
|
+
"description": "Command array [command, ...args] to match exactly for blocked stdio servers",
|
|
256
|
+
"minItems": 1,
|
|
257
|
+
"type": "array",
|
|
258
|
+
"items": {
|
|
259
|
+
"type": "string"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"serverUrl": {
|
|
263
|
+
"description": "URL pattern with wildcard support (e.g., \"https://*.example.com/*\") for blocked remote MCP servers",
|
|
264
|
+
"type": "string"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"additionalProperties": false
|
|
268
|
+
}
|
|
269
|
+
},
|
|
270
|
+
"hooks": {
|
|
271
|
+
"description": "Custom commands to run before/after tool executions",
|
|
272
|
+
"type": "object",
|
|
273
|
+
"propertyNames": {
|
|
274
|
+
"anyOf": [
|
|
275
|
+
{
|
|
276
|
+
"type": "string",
|
|
277
|
+
"enum": [
|
|
278
|
+
"PreToolUse",
|
|
279
|
+
"PostToolUse",
|
|
280
|
+
"PostToolUseFailure",
|
|
281
|
+
"Notification",
|
|
282
|
+
"UserPromptSubmit",
|
|
283
|
+
"SessionStart",
|
|
284
|
+
"SessionEnd",
|
|
285
|
+
"Stop",
|
|
286
|
+
"StopFailure",
|
|
287
|
+
"SubagentStart",
|
|
288
|
+
"SubagentStop",
|
|
289
|
+
"PreCompact",
|
|
290
|
+
"PostCompact",
|
|
291
|
+
"PermissionRequest",
|
|
292
|
+
"PermissionDenied",
|
|
293
|
+
"Setup",
|
|
294
|
+
"TeammateIdle",
|
|
295
|
+
"TaskCreated",
|
|
296
|
+
"TaskCompleted",
|
|
297
|
+
"Elicitation",
|
|
298
|
+
"ElicitationResult",
|
|
299
|
+
"ConfigChange",
|
|
300
|
+
"WorktreeCreate",
|
|
301
|
+
"WorktreeRemove",
|
|
302
|
+
"InstructionsLoaded",
|
|
303
|
+
"CwdChanged",
|
|
304
|
+
"FileChanged"
|
|
305
|
+
]
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
"not": {}
|
|
309
|
+
}
|
|
310
|
+
]
|
|
311
|
+
},
|
|
312
|
+
"additionalProperties": {
|
|
313
|
+
"type": "array",
|
|
314
|
+
"items": {
|
|
315
|
+
"type": "object",
|
|
316
|
+
"properties": {
|
|
317
|
+
"matcher": {
|
|
318
|
+
"description": "String pattern to match (e.g. tool names like \"Write\")",
|
|
319
|
+
"type": "string"
|
|
320
|
+
},
|
|
321
|
+
"hooks": {
|
|
322
|
+
"description": "List of hooks to execute when the matcher matches",
|
|
323
|
+
"type": "array",
|
|
324
|
+
"items": {
|
|
325
|
+
"anyOf": [
|
|
326
|
+
{
|
|
327
|
+
"type": "object",
|
|
328
|
+
"properties": {
|
|
329
|
+
"type": {
|
|
330
|
+
"description": "Shell command hook type",
|
|
331
|
+
"type": "string",
|
|
332
|
+
"const": "command"
|
|
333
|
+
},
|
|
334
|
+
"command": {
|
|
335
|
+
"description": "Shell command to execute",
|
|
336
|
+
"type": "string"
|
|
337
|
+
},
|
|
338
|
+
"if": {
|
|
339
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands.",
|
|
340
|
+
"type": "string"
|
|
341
|
+
},
|
|
342
|
+
"shell": {
|
|
343
|
+
"description": "Shell interpreter. 'bash' uses your $SHELL (bash/zsh/sh); 'powershell' uses pwsh. Defaults to bash.",
|
|
344
|
+
"type": "string",
|
|
345
|
+
"enum": [
|
|
346
|
+
"bash",
|
|
347
|
+
"powershell"
|
|
348
|
+
]
|
|
349
|
+
},
|
|
350
|
+
"timeout": {
|
|
351
|
+
"description": "Timeout in seconds for this specific command",
|
|
352
|
+
"type": "number",
|
|
353
|
+
"exclusiveMinimum": 0
|
|
354
|
+
},
|
|
355
|
+
"statusMessage": {
|
|
356
|
+
"description": "Custom status message to display in spinner while hook runs",
|
|
357
|
+
"type": "string"
|
|
358
|
+
},
|
|
359
|
+
"once": {
|
|
360
|
+
"description": "If true, hook runs once and is removed after execution",
|
|
361
|
+
"type": "boolean"
|
|
362
|
+
},
|
|
363
|
+
"async": {
|
|
364
|
+
"description": "If true, hook runs in background without blocking",
|
|
365
|
+
"type": "boolean"
|
|
366
|
+
},
|
|
367
|
+
"asyncRewake": {
|
|
368
|
+
"description": "If true, hook runs in background and wakes the model on exit code 2 (blocking error). Implies async.",
|
|
369
|
+
"type": "boolean"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
"required": [
|
|
373
|
+
"type",
|
|
374
|
+
"command"
|
|
375
|
+
],
|
|
376
|
+
"additionalProperties": false
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"type": "object",
|
|
380
|
+
"properties": {
|
|
381
|
+
"type": {
|
|
382
|
+
"description": "LLM prompt hook type",
|
|
383
|
+
"type": "string",
|
|
384
|
+
"const": "prompt"
|
|
385
|
+
},
|
|
386
|
+
"prompt": {
|
|
387
|
+
"description": "Prompt to evaluate with LLM. Use $ARGUMENTS placeholder for hook input JSON.",
|
|
388
|
+
"type": "string"
|
|
389
|
+
},
|
|
390
|
+
"if": {
|
|
391
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands.",
|
|
392
|
+
"type": "string"
|
|
393
|
+
},
|
|
394
|
+
"timeout": {
|
|
395
|
+
"description": "Timeout in seconds for this specific prompt evaluation",
|
|
396
|
+
"type": "number",
|
|
397
|
+
"exclusiveMinimum": 0
|
|
398
|
+
},
|
|
399
|
+
"model": {
|
|
400
|
+
"description": "Model to use for this prompt hook (e.g., \"claude-sonnet-4-6\"). If not specified, uses the default small fast model.",
|
|
401
|
+
"type": "string"
|
|
402
|
+
},
|
|
403
|
+
"statusMessage": {
|
|
404
|
+
"description": "Custom status message to display in spinner while hook runs",
|
|
405
|
+
"type": "string"
|
|
406
|
+
},
|
|
407
|
+
"once": {
|
|
408
|
+
"description": "If true, hook runs once and is removed after execution",
|
|
409
|
+
"type": "boolean"
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"required": [
|
|
413
|
+
"type",
|
|
414
|
+
"prompt"
|
|
415
|
+
],
|
|
416
|
+
"additionalProperties": false
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
"type": "object",
|
|
420
|
+
"properties": {
|
|
421
|
+
"type": {
|
|
422
|
+
"description": "Agentic verifier hook type",
|
|
423
|
+
"type": "string",
|
|
424
|
+
"const": "agent"
|
|
425
|
+
},
|
|
426
|
+
"prompt": {
|
|
427
|
+
"description": "Prompt describing what to verify (e.g. \"Verify that unit tests ran and passed.\"). Use $ARGUMENTS placeholder for hook input JSON.",
|
|
428
|
+
"type": "string"
|
|
429
|
+
},
|
|
430
|
+
"if": {
|
|
431
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands.",
|
|
432
|
+
"type": "string"
|
|
433
|
+
},
|
|
434
|
+
"timeout": {
|
|
435
|
+
"description": "Timeout in seconds for agent execution (default 60)",
|
|
436
|
+
"type": "number",
|
|
437
|
+
"exclusiveMinimum": 0
|
|
438
|
+
},
|
|
439
|
+
"model": {
|
|
440
|
+
"description": "Model to use for this agent hook (e.g., \"claude-sonnet-4-6\"). If not specified, uses Haiku.",
|
|
441
|
+
"type": "string"
|
|
442
|
+
},
|
|
443
|
+
"statusMessage": {
|
|
444
|
+
"description": "Custom status message to display in spinner while hook runs",
|
|
445
|
+
"type": "string"
|
|
446
|
+
},
|
|
447
|
+
"once": {
|
|
448
|
+
"description": "If true, hook runs once and is removed after execution",
|
|
449
|
+
"type": "boolean"
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
"required": [
|
|
453
|
+
"type",
|
|
454
|
+
"prompt"
|
|
455
|
+
],
|
|
456
|
+
"additionalProperties": false
|
|
457
|
+
},
|
|
458
|
+
{
|
|
459
|
+
"type": "object",
|
|
460
|
+
"properties": {
|
|
461
|
+
"type": {
|
|
462
|
+
"description": "HTTP hook type",
|
|
463
|
+
"type": "string",
|
|
464
|
+
"const": "http"
|
|
465
|
+
},
|
|
466
|
+
"url": {
|
|
467
|
+
"description": "URL to POST the hook input JSON to",
|
|
468
|
+
"type": "string",
|
|
469
|
+
"format": "uri"
|
|
470
|
+
},
|
|
471
|
+
"if": {
|
|
472
|
+
"description": "Permission rule syntax to filter when this hook runs (e.g., \"Bash(git *)\"). Only runs if the tool call matches the pattern. Avoids spawning hooks for non-matching commands.",
|
|
473
|
+
"type": "string"
|
|
474
|
+
},
|
|
475
|
+
"timeout": {
|
|
476
|
+
"description": "Timeout in seconds for this specific request",
|
|
477
|
+
"type": "number",
|
|
478
|
+
"exclusiveMinimum": 0
|
|
479
|
+
},
|
|
480
|
+
"headers": {
|
|
481
|
+
"description": "Additional headers to include in the request. Values may reference environment variables using $VAR_NAME or ${VAR_NAME} syntax (e.g., \"Authorization\": \"Bearer $MY_TOKEN\"). Only variables listed in allowedEnvVars will be interpolated.",
|
|
482
|
+
"type": "object",
|
|
483
|
+
"propertyNames": {
|
|
484
|
+
"type": "string"
|
|
485
|
+
},
|
|
486
|
+
"additionalProperties": {
|
|
487
|
+
"type": "string"
|
|
488
|
+
}
|
|
489
|
+
},
|
|
490
|
+
"allowedEnvVars": {
|
|
491
|
+
"description": "Explicit list of environment variable names that may be interpolated in header values. Only variables listed here will be resolved; all other $VAR references are left as empty strings. Required for env var interpolation to work.",
|
|
492
|
+
"type": "array",
|
|
493
|
+
"items": {
|
|
494
|
+
"type": "string"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
"statusMessage": {
|
|
498
|
+
"description": "Custom status message to display in spinner while hook runs",
|
|
499
|
+
"type": "string"
|
|
500
|
+
},
|
|
501
|
+
"once": {
|
|
502
|
+
"description": "If true, hook runs once and is removed after execution",
|
|
503
|
+
"type": "boolean"
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"required": [
|
|
507
|
+
"type",
|
|
508
|
+
"url"
|
|
509
|
+
],
|
|
510
|
+
"additionalProperties": false
|
|
511
|
+
}
|
|
512
|
+
]
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
},
|
|
516
|
+
"required": [
|
|
517
|
+
"hooks"
|
|
518
|
+
],
|
|
519
|
+
"additionalProperties": false
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
},
|
|
523
|
+
"autoFix": {
|
|
524
|
+
"description": "Auto-fix configuration: automatically run lint/test after AI file edits and feed errors back for self-repair.",
|
|
525
|
+
"type": "object",
|
|
526
|
+
"properties": {
|
|
527
|
+
"enabled": {
|
|
528
|
+
"description": "Whether auto-fix is enabled",
|
|
529
|
+
"type": "boolean"
|
|
530
|
+
},
|
|
531
|
+
"lint": {
|
|
532
|
+
"description": "Lint command to run after file edits (e.g. \"eslint . --fix\")",
|
|
533
|
+
"type": "string"
|
|
534
|
+
},
|
|
535
|
+
"test": {
|
|
536
|
+
"description": "Test command to run after file edits (e.g. \"bun test\")",
|
|
537
|
+
"type": "string"
|
|
538
|
+
},
|
|
539
|
+
"maxRetries": {
|
|
540
|
+
"description": "Maximum number of auto-fix retry attempts (default: 3)",
|
|
541
|
+
"default": 3,
|
|
542
|
+
"type": "integer",
|
|
543
|
+
"minimum": 0,
|
|
544
|
+
"maximum": 10
|
|
545
|
+
},
|
|
546
|
+
"timeout": {
|
|
547
|
+
"description": "Timeout in ms for each lint/test command (default: 30000)",
|
|
548
|
+
"default": 30000,
|
|
549
|
+
"type": "integer",
|
|
550
|
+
"minimum": 1000,
|
|
551
|
+
"maximum": 300000
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"required": [
|
|
555
|
+
"enabled",
|
|
556
|
+
"maxRetries",
|
|
557
|
+
"timeout"
|
|
558
|
+
],
|
|
559
|
+
"additionalProperties": false
|
|
560
|
+
},
|
|
561
|
+
"worktree": {
|
|
562
|
+
"description": "Git worktree configuration for --worktree flag.",
|
|
563
|
+
"type": "object",
|
|
564
|
+
"properties": {
|
|
565
|
+
"symlinkDirectories": {
|
|
566
|
+
"description": "Directories to symlink from main repository to worktrees to avoid disk bloat. Must be explicitly configured - no directories are symlinked by default. Common examples: \"node_modules\", \".cache\", \".bin\"",
|
|
567
|
+
"type": "array",
|
|
568
|
+
"items": {
|
|
569
|
+
"type": "string"
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"sparsePaths": {
|
|
573
|
+
"description": "Directories to include when creating worktrees, via git sparse-checkout (cone mode). Dramatically faster in large monorepos — only the listed paths are written to disk.",
|
|
574
|
+
"type": "array",
|
|
575
|
+
"items": {
|
|
576
|
+
"type": "string"
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"autoConfigureLongPaths": {
|
|
580
|
+
"description": "On Windows, enable Git long-path support (core.longpaths=true) before creating worktrees. Defaults to true when unset.",
|
|
581
|
+
"type": "boolean"
|
|
582
|
+
},
|
|
583
|
+
"enableGitLongPaths": {
|
|
584
|
+
"description": "Deprecated alias for autoConfigureLongPaths.",
|
|
585
|
+
"type": "boolean"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
"additionalProperties": false
|
|
589
|
+
},
|
|
590
|
+
"disableAllHooks": {
|
|
591
|
+
"description": "Disable all hooks and statusLine execution",
|
|
592
|
+
"type": "boolean"
|
|
593
|
+
},
|
|
594
|
+
"defaultShell": {
|
|
595
|
+
"description": "Default shell for input-box ! commands. Defaults to 'bash' on all platforms (no Windows auto-flip).",
|
|
596
|
+
"type": "string",
|
|
597
|
+
"enum": [
|
|
598
|
+
"bash",
|
|
599
|
+
"powershell"
|
|
600
|
+
]
|
|
601
|
+
},
|
|
602
|
+
"allowManagedHooksOnly": {
|
|
603
|
+
"description": "When true (and set in managed settings), only hooks from managed settings run. User, project, and local hooks are ignored.",
|
|
604
|
+
"type": "boolean"
|
|
605
|
+
},
|
|
606
|
+
"allowedHttpHookUrls": {
|
|
607
|
+
"description": "Allowlist of URL patterns that HTTP hooks may target. Supports * as a wildcard (e.g. \"https://hooks.example.com/*\"). When set, HTTP hooks with non-matching URLs are blocked. If undefined, all URLs are allowed. If empty array, no HTTP hooks are allowed. Arrays merge across settings sources (same semantics as allowedMcpServers).",
|
|
608
|
+
"type": "array",
|
|
609
|
+
"items": {
|
|
610
|
+
"type": "string"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
"httpHookAllowedEnvVars": {
|
|
614
|
+
"description": "Allowlist of environment variable names HTTP hooks may interpolate into headers. When set, each hook's effective allowedEnvVars is the intersection with this list. If undefined, no restriction is applied. Arrays merge across settings sources (same semantics as allowedMcpServers).",
|
|
615
|
+
"type": "array",
|
|
616
|
+
"items": {
|
|
617
|
+
"type": "string"
|
|
618
|
+
}
|
|
619
|
+
},
|
|
620
|
+
"allowManagedPermissionRulesOnly": {
|
|
621
|
+
"description": "When true (and set in managed settings), only permission rules (allow/deny/ask) from managed settings are respected. User, project, local, and CLI argument permission rules are ignored.",
|
|
622
|
+
"type": "boolean"
|
|
623
|
+
},
|
|
624
|
+
"allowManagedMcpServersOnly": {
|
|
625
|
+
"description": "When true (and set in managed settings), allowedMcpServers is only read from managed settings. deniedMcpServers still merges from all sources, so users can deny servers for themselves. Users can still add their own MCP servers, but only the admin-defined allowlist applies.",
|
|
626
|
+
"type": "boolean"
|
|
627
|
+
},
|
|
628
|
+
"strictPluginOnlyCustomization": {
|
|
629
|
+
"description": "When set in managed settings, blocks non-plugin customization sources for the listed surfaces. Array form locks specific surfaces (e.g. [\"skills\", \"hooks\"]); `true` locks all four; `false` is an explicit no-op. Blocked: ~/.claude/{surface}/, .claude/{surface}/ (project), settings.json hooks, .mcp.json. NOT blocked: managed (policySettings) sources, plugin-provided customizations. Composes with strictKnownMarketplaces for end-to-end admin control — plugins gated by marketplace allowlist, everything else blocked here.",
|
|
630
|
+
"anyOf": [
|
|
631
|
+
{
|
|
632
|
+
"type": "boolean"
|
|
633
|
+
},
|
|
634
|
+
{
|
|
635
|
+
"type": "array",
|
|
636
|
+
"items": {
|
|
637
|
+
"type": "string",
|
|
638
|
+
"enum": [
|
|
639
|
+
"skills",
|
|
640
|
+
"agents",
|
|
641
|
+
"hooks",
|
|
642
|
+
"mcp"
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
]
|
|
647
|
+
},
|
|
648
|
+
"statusLine": {
|
|
649
|
+
"description": "Custom status line display configuration",
|
|
650
|
+
"type": "object",
|
|
651
|
+
"properties": {
|
|
652
|
+
"type": {
|
|
653
|
+
"type": "string",
|
|
654
|
+
"const": "command"
|
|
655
|
+
},
|
|
656
|
+
"command": {
|
|
657
|
+
"type": "string"
|
|
658
|
+
},
|
|
659
|
+
"padding": {
|
|
660
|
+
"type": "number"
|
|
661
|
+
}
|
|
662
|
+
},
|
|
663
|
+
"required": [
|
|
664
|
+
"type",
|
|
665
|
+
"command"
|
|
666
|
+
],
|
|
667
|
+
"additionalProperties": false
|
|
668
|
+
},
|
|
669
|
+
"enabledPlugins": {
|
|
670
|
+
"description": "Enabled plugins using plugin-id@marketplace-id format. Example: { \"formatter@anthropic-tools\": true }. Also supports extended format with version constraints.",
|
|
671
|
+
"type": "object",
|
|
672
|
+
"propertyNames": {
|
|
673
|
+
"type": "string"
|
|
674
|
+
},
|
|
675
|
+
"additionalProperties": {
|
|
676
|
+
"anyOf": [
|
|
677
|
+
{
|
|
678
|
+
"type": "array",
|
|
679
|
+
"items": {
|
|
680
|
+
"type": "string"
|
|
681
|
+
}
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"type": "boolean"
|
|
685
|
+
}
|
|
686
|
+
]
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
"extraKnownMarketplaces": {
|
|
690
|
+
"description": "Additional marketplaces to make available for this repository. Typically used in repository .openclaude/settings.json to ensure team members have required plugin sources.",
|
|
691
|
+
"type": "object",
|
|
692
|
+
"propertyNames": {
|
|
693
|
+
"type": "string"
|
|
694
|
+
},
|
|
695
|
+
"additionalProperties": {
|
|
696
|
+
"type": "object",
|
|
697
|
+
"properties": {
|
|
698
|
+
"source": {
|
|
699
|
+
"description": "Where to fetch the marketplace from",
|
|
700
|
+
"anyOf": [
|
|
701
|
+
{
|
|
702
|
+
"type": "object",
|
|
703
|
+
"properties": {
|
|
704
|
+
"source": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"const": "url"
|
|
707
|
+
},
|
|
708
|
+
"url": {
|
|
709
|
+
"description": "Direct URL to marketplace.json file",
|
|
710
|
+
"type": "string",
|
|
711
|
+
"format": "uri"
|
|
712
|
+
},
|
|
713
|
+
"headers": {
|
|
714
|
+
"description": "Custom HTTP headers (e.g., for authentication)",
|
|
715
|
+
"type": "object",
|
|
716
|
+
"propertyNames": {
|
|
717
|
+
"type": "string"
|
|
718
|
+
},
|
|
719
|
+
"additionalProperties": {
|
|
720
|
+
"type": "string"
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"required": [
|
|
725
|
+
"source",
|
|
726
|
+
"url"
|
|
727
|
+
],
|
|
728
|
+
"additionalProperties": false
|
|
729
|
+
},
|
|
730
|
+
{
|
|
731
|
+
"type": "object",
|
|
732
|
+
"properties": {
|
|
733
|
+
"source": {
|
|
734
|
+
"type": "string",
|
|
735
|
+
"const": "github"
|
|
736
|
+
},
|
|
737
|
+
"repo": {
|
|
738
|
+
"description": "GitHub repository in owner/repo format",
|
|
739
|
+
"type": "string"
|
|
740
|
+
},
|
|
741
|
+
"ref": {
|
|
742
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
743
|
+
"type": "string"
|
|
744
|
+
},
|
|
745
|
+
"path": {
|
|
746
|
+
"description": "Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)",
|
|
747
|
+
"type": "string"
|
|
748
|
+
},
|
|
749
|
+
"sparsePaths": {
|
|
750
|
+
"description": "Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned.",
|
|
751
|
+
"type": "array",
|
|
752
|
+
"items": {
|
|
753
|
+
"type": "string"
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
},
|
|
757
|
+
"required": [
|
|
758
|
+
"source",
|
|
759
|
+
"repo"
|
|
760
|
+
],
|
|
761
|
+
"additionalProperties": false
|
|
762
|
+
},
|
|
763
|
+
{
|
|
764
|
+
"type": "object",
|
|
765
|
+
"properties": {
|
|
766
|
+
"source": {
|
|
767
|
+
"type": "string",
|
|
768
|
+
"const": "git"
|
|
769
|
+
},
|
|
770
|
+
"url": {
|
|
771
|
+
"description": "Full git repository URL",
|
|
772
|
+
"type": "string"
|
|
773
|
+
},
|
|
774
|
+
"ref": {
|
|
775
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
776
|
+
"type": "string"
|
|
777
|
+
},
|
|
778
|
+
"path": {
|
|
779
|
+
"description": "Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)",
|
|
780
|
+
"type": "string"
|
|
781
|
+
},
|
|
782
|
+
"sparsePaths": {
|
|
783
|
+
"description": "Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned.",
|
|
784
|
+
"type": "array",
|
|
785
|
+
"items": {
|
|
786
|
+
"type": "string"
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"required": [
|
|
791
|
+
"source",
|
|
792
|
+
"url"
|
|
793
|
+
],
|
|
794
|
+
"additionalProperties": false
|
|
795
|
+
},
|
|
796
|
+
{
|
|
797
|
+
"type": "object",
|
|
798
|
+
"properties": {
|
|
799
|
+
"source": {
|
|
800
|
+
"type": "string",
|
|
801
|
+
"const": "npm"
|
|
802
|
+
},
|
|
803
|
+
"package": {
|
|
804
|
+
"description": "NPM package containing marketplace.json",
|
|
805
|
+
"type": "string"
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"required": [
|
|
809
|
+
"source",
|
|
810
|
+
"package"
|
|
811
|
+
],
|
|
812
|
+
"additionalProperties": false
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
"type": "object",
|
|
816
|
+
"properties": {
|
|
817
|
+
"source": {
|
|
818
|
+
"type": "string",
|
|
819
|
+
"const": "file"
|
|
820
|
+
},
|
|
821
|
+
"path": {
|
|
822
|
+
"description": "Local file path to marketplace.json",
|
|
823
|
+
"type": "string"
|
|
824
|
+
}
|
|
825
|
+
},
|
|
826
|
+
"required": [
|
|
827
|
+
"source",
|
|
828
|
+
"path"
|
|
829
|
+
],
|
|
830
|
+
"additionalProperties": false
|
|
831
|
+
},
|
|
832
|
+
{
|
|
833
|
+
"type": "object",
|
|
834
|
+
"properties": {
|
|
835
|
+
"source": {
|
|
836
|
+
"type": "string",
|
|
837
|
+
"const": "directory"
|
|
838
|
+
},
|
|
839
|
+
"path": {
|
|
840
|
+
"description": "Local directory containing .claude-plugin/marketplace.json",
|
|
841
|
+
"type": "string"
|
|
842
|
+
}
|
|
843
|
+
},
|
|
844
|
+
"required": [
|
|
845
|
+
"source",
|
|
846
|
+
"path"
|
|
847
|
+
],
|
|
848
|
+
"additionalProperties": false
|
|
849
|
+
},
|
|
850
|
+
{
|
|
851
|
+
"type": "object",
|
|
852
|
+
"properties": {
|
|
853
|
+
"source": {
|
|
854
|
+
"type": "string",
|
|
855
|
+
"const": "hostPattern"
|
|
856
|
+
},
|
|
857
|
+
"hostPattern": {
|
|
858
|
+
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\").",
|
|
859
|
+
"type": "string"
|
|
860
|
+
}
|
|
861
|
+
},
|
|
862
|
+
"required": [
|
|
863
|
+
"source",
|
|
864
|
+
"hostPattern"
|
|
865
|
+
],
|
|
866
|
+
"additionalProperties": false
|
|
867
|
+
},
|
|
868
|
+
{
|
|
869
|
+
"type": "object",
|
|
870
|
+
"properties": {
|
|
871
|
+
"source": {
|
|
872
|
+
"type": "string",
|
|
873
|
+
"const": "pathPattern"
|
|
874
|
+
},
|
|
875
|
+
"pathPattern": {
|
|
876
|
+
"description": "Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use \".*\" to allow all filesystem paths, or a narrower pattern (e.g., \"^/opt/approved/\") to restrict to specific directories.",
|
|
877
|
+
"type": "string"
|
|
878
|
+
}
|
|
879
|
+
},
|
|
880
|
+
"required": [
|
|
881
|
+
"source",
|
|
882
|
+
"pathPattern"
|
|
883
|
+
],
|
|
884
|
+
"additionalProperties": false
|
|
885
|
+
},
|
|
886
|
+
{
|
|
887
|
+
"description": "Inline marketplace manifest defined directly in settings.json. The reconciler writes a synthetic marketplace.json to the cache; diffMarketplaces detects edits via isEqual on the stored source (the plugins array is inside this object, so edits surface as sourceChanged).",
|
|
888
|
+
"type": "object",
|
|
889
|
+
"properties": {
|
|
890
|
+
"source": {
|
|
891
|
+
"type": "string",
|
|
892
|
+
"const": "settings"
|
|
893
|
+
},
|
|
894
|
+
"name": {
|
|
895
|
+
"description": "Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up.",
|
|
896
|
+
"type": "string",
|
|
897
|
+
"minLength": 1
|
|
898
|
+
},
|
|
899
|
+
"plugins": {
|
|
900
|
+
"description": "Plugin entries declared inline in settings.json",
|
|
901
|
+
"type": "array",
|
|
902
|
+
"items": {
|
|
903
|
+
"type": "object",
|
|
904
|
+
"properties": {
|
|
905
|
+
"name": {
|
|
906
|
+
"description": "Plugin name as it appears in the target repository",
|
|
907
|
+
"type": "string",
|
|
908
|
+
"minLength": 1
|
|
909
|
+
},
|
|
910
|
+
"source": {
|
|
911
|
+
"description": "Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against.",
|
|
912
|
+
"anyOf": [
|
|
913
|
+
{
|
|
914
|
+
"description": "Path to the plugin root, relative to the marketplace root (the directory containing .claude-plugin/, not .claude-plugin/ itself)",
|
|
915
|
+
"type": "string",
|
|
916
|
+
"pattern": "^\\.\\/.*"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
"description": "NPM package as plugin source",
|
|
920
|
+
"type": "object",
|
|
921
|
+
"properties": {
|
|
922
|
+
"source": {
|
|
923
|
+
"type": "string",
|
|
924
|
+
"const": "npm"
|
|
925
|
+
},
|
|
926
|
+
"package": {
|
|
927
|
+
"description": "Package name (or url, or local path, or anything else that can be passed to `npm` as a package)",
|
|
928
|
+
"anyOf": [
|
|
929
|
+
{
|
|
930
|
+
"type": "string"
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"type": "string"
|
|
934
|
+
}
|
|
935
|
+
]
|
|
936
|
+
},
|
|
937
|
+
"version": {
|
|
938
|
+
"description": "Specific version or version range (e.g., ^1.0.0, ~2.1.0)",
|
|
939
|
+
"type": "string"
|
|
940
|
+
},
|
|
941
|
+
"registry": {
|
|
942
|
+
"description": "Custom NPM registry URL (defaults to using system default, likely npmjs.org)",
|
|
943
|
+
"type": "string",
|
|
944
|
+
"format": "uri"
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"required": [
|
|
948
|
+
"source",
|
|
949
|
+
"package"
|
|
950
|
+
],
|
|
951
|
+
"additionalProperties": false
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"description": "Python package as plugin source",
|
|
955
|
+
"type": "object",
|
|
956
|
+
"properties": {
|
|
957
|
+
"source": {
|
|
958
|
+
"type": "string",
|
|
959
|
+
"const": "pip"
|
|
960
|
+
},
|
|
961
|
+
"package": {
|
|
962
|
+
"description": "Python package name as it appears on PyPI",
|
|
963
|
+
"type": "string"
|
|
964
|
+
},
|
|
965
|
+
"version": {
|
|
966
|
+
"description": "Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)",
|
|
967
|
+
"type": "string"
|
|
968
|
+
},
|
|
969
|
+
"registry": {
|
|
970
|
+
"description": "Custom PyPI registry URL (defaults to using system default, likely pypi.org)",
|
|
971
|
+
"type": "string",
|
|
972
|
+
"format": "uri"
|
|
973
|
+
}
|
|
974
|
+
},
|
|
975
|
+
"required": [
|
|
976
|
+
"source",
|
|
977
|
+
"package"
|
|
978
|
+
],
|
|
979
|
+
"additionalProperties": false
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
"type": "object",
|
|
983
|
+
"properties": {
|
|
984
|
+
"source": {
|
|
985
|
+
"type": "string",
|
|
986
|
+
"const": "url"
|
|
987
|
+
},
|
|
988
|
+
"url": {
|
|
989
|
+
"description": "Full git repository URL (https:// or git@)",
|
|
990
|
+
"type": "string"
|
|
991
|
+
},
|
|
992
|
+
"ref": {
|
|
993
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
994
|
+
"type": "string"
|
|
995
|
+
},
|
|
996
|
+
"sha": {
|
|
997
|
+
"description": "Specific commit SHA to use",
|
|
998
|
+
"type": "string",
|
|
999
|
+
"minLength": 40,
|
|
1000
|
+
"maxLength": 40,
|
|
1001
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"required": [
|
|
1005
|
+
"source",
|
|
1006
|
+
"url"
|
|
1007
|
+
],
|
|
1008
|
+
"additionalProperties": false
|
|
1009
|
+
},
|
|
1010
|
+
{
|
|
1011
|
+
"type": "object",
|
|
1012
|
+
"properties": {
|
|
1013
|
+
"source": {
|
|
1014
|
+
"type": "string",
|
|
1015
|
+
"const": "github"
|
|
1016
|
+
},
|
|
1017
|
+
"repo": {
|
|
1018
|
+
"description": "GitHub repository in owner/repo format",
|
|
1019
|
+
"type": "string"
|
|
1020
|
+
},
|
|
1021
|
+
"ref": {
|
|
1022
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1023
|
+
"type": "string"
|
|
1024
|
+
},
|
|
1025
|
+
"sha": {
|
|
1026
|
+
"description": "Specific commit SHA to use",
|
|
1027
|
+
"type": "string",
|
|
1028
|
+
"minLength": 40,
|
|
1029
|
+
"maxLength": 40,
|
|
1030
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1031
|
+
}
|
|
1032
|
+
},
|
|
1033
|
+
"required": [
|
|
1034
|
+
"source",
|
|
1035
|
+
"repo"
|
|
1036
|
+
],
|
|
1037
|
+
"additionalProperties": false
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"description": "Plugin located in a subdirectory of a larger repository (monorepo). Only the specified subdirectory is materialized; the rest of the repo is not downloaded.",
|
|
1041
|
+
"type": "object",
|
|
1042
|
+
"properties": {
|
|
1043
|
+
"source": {
|
|
1044
|
+
"type": "string",
|
|
1045
|
+
"const": "git-subdir"
|
|
1046
|
+
},
|
|
1047
|
+
"url": {
|
|
1048
|
+
"description": "Git repository: GitHub owner/repo shorthand, https://, or git@ URL",
|
|
1049
|
+
"type": "string"
|
|
1050
|
+
},
|
|
1051
|
+
"path": {
|
|
1052
|
+
"description": "Subdirectory within the repo containing the plugin (e.g., \"tools/claude-plugin\"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.",
|
|
1053
|
+
"type": "string",
|
|
1054
|
+
"minLength": 1
|
|
1055
|
+
},
|
|
1056
|
+
"ref": {
|
|
1057
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1058
|
+
"type": "string"
|
|
1059
|
+
},
|
|
1060
|
+
"sha": {
|
|
1061
|
+
"description": "Specific commit SHA to use",
|
|
1062
|
+
"type": "string",
|
|
1063
|
+
"minLength": 40,
|
|
1064
|
+
"maxLength": 40,
|
|
1065
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1066
|
+
}
|
|
1067
|
+
},
|
|
1068
|
+
"required": [
|
|
1069
|
+
"source",
|
|
1070
|
+
"url",
|
|
1071
|
+
"path"
|
|
1072
|
+
],
|
|
1073
|
+
"additionalProperties": false
|
|
1074
|
+
}
|
|
1075
|
+
]
|
|
1076
|
+
},
|
|
1077
|
+
"description": {
|
|
1078
|
+
"type": "string"
|
|
1079
|
+
},
|
|
1080
|
+
"version": {
|
|
1081
|
+
"type": "string"
|
|
1082
|
+
},
|
|
1083
|
+
"strict": {
|
|
1084
|
+
"type": "boolean"
|
|
1085
|
+
}
|
|
1086
|
+
},
|
|
1087
|
+
"required": [
|
|
1088
|
+
"name",
|
|
1089
|
+
"source"
|
|
1090
|
+
],
|
|
1091
|
+
"additionalProperties": false
|
|
1092
|
+
}
|
|
1093
|
+
},
|
|
1094
|
+
"owner": {
|
|
1095
|
+
"type": "object",
|
|
1096
|
+
"properties": {
|
|
1097
|
+
"name": {
|
|
1098
|
+
"description": "Display name of the plugin author or organization",
|
|
1099
|
+
"type": "string",
|
|
1100
|
+
"minLength": 1
|
|
1101
|
+
},
|
|
1102
|
+
"email": {
|
|
1103
|
+
"description": "Contact email for support or feedback",
|
|
1104
|
+
"type": "string"
|
|
1105
|
+
},
|
|
1106
|
+
"url": {
|
|
1107
|
+
"description": "Website, GitHub profile, or organization URL",
|
|
1108
|
+
"type": "string"
|
|
1109
|
+
}
|
|
1110
|
+
},
|
|
1111
|
+
"required": [
|
|
1112
|
+
"name"
|
|
1113
|
+
],
|
|
1114
|
+
"additionalProperties": false
|
|
1115
|
+
}
|
|
1116
|
+
},
|
|
1117
|
+
"required": [
|
|
1118
|
+
"source",
|
|
1119
|
+
"name",
|
|
1120
|
+
"plugins"
|
|
1121
|
+
],
|
|
1122
|
+
"additionalProperties": false
|
|
1123
|
+
}
|
|
1124
|
+
]
|
|
1125
|
+
},
|
|
1126
|
+
"installLocation": {
|
|
1127
|
+
"description": "Local cache path where marketplace manifest is stored (auto-generated if not provided)",
|
|
1128
|
+
"type": "string"
|
|
1129
|
+
},
|
|
1130
|
+
"autoUpdate": {
|
|
1131
|
+
"description": "Whether to automatically update this marketplace and its installed plugins on startup",
|
|
1132
|
+
"type": "boolean"
|
|
1133
|
+
}
|
|
1134
|
+
},
|
|
1135
|
+
"required": [
|
|
1136
|
+
"source"
|
|
1137
|
+
],
|
|
1138
|
+
"additionalProperties": false
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"strictKnownMarketplaces": {
|
|
1142
|
+
"description": "Enterprise strict list of allowed marketplace sources. When set in managed settings, ONLY these exact sources can be added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem. Note: this is a policy gate only — it does NOT register marketplaces. To pre-register allowed marketplaces for users, also set extraKnownMarketplaces.",
|
|
1143
|
+
"type": "array",
|
|
1144
|
+
"items": {
|
|
1145
|
+
"anyOf": [
|
|
1146
|
+
{
|
|
1147
|
+
"type": "object",
|
|
1148
|
+
"properties": {
|
|
1149
|
+
"source": {
|
|
1150
|
+
"type": "string",
|
|
1151
|
+
"const": "url"
|
|
1152
|
+
},
|
|
1153
|
+
"url": {
|
|
1154
|
+
"description": "Direct URL to marketplace.json file",
|
|
1155
|
+
"type": "string",
|
|
1156
|
+
"format": "uri"
|
|
1157
|
+
},
|
|
1158
|
+
"headers": {
|
|
1159
|
+
"description": "Custom HTTP headers (e.g., for authentication)",
|
|
1160
|
+
"type": "object",
|
|
1161
|
+
"propertyNames": {
|
|
1162
|
+
"type": "string"
|
|
1163
|
+
},
|
|
1164
|
+
"additionalProperties": {
|
|
1165
|
+
"type": "string"
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
},
|
|
1169
|
+
"required": [
|
|
1170
|
+
"source",
|
|
1171
|
+
"url"
|
|
1172
|
+
],
|
|
1173
|
+
"additionalProperties": false
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"type": "object",
|
|
1177
|
+
"properties": {
|
|
1178
|
+
"source": {
|
|
1179
|
+
"type": "string",
|
|
1180
|
+
"const": "github"
|
|
1181
|
+
},
|
|
1182
|
+
"repo": {
|
|
1183
|
+
"description": "GitHub repository in owner/repo format",
|
|
1184
|
+
"type": "string"
|
|
1185
|
+
},
|
|
1186
|
+
"ref": {
|
|
1187
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1188
|
+
"type": "string"
|
|
1189
|
+
},
|
|
1190
|
+
"path": {
|
|
1191
|
+
"description": "Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)",
|
|
1192
|
+
"type": "string"
|
|
1193
|
+
},
|
|
1194
|
+
"sparsePaths": {
|
|
1195
|
+
"description": "Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned.",
|
|
1196
|
+
"type": "array",
|
|
1197
|
+
"items": {
|
|
1198
|
+
"type": "string"
|
|
1199
|
+
}
|
|
1200
|
+
}
|
|
1201
|
+
},
|
|
1202
|
+
"required": [
|
|
1203
|
+
"source",
|
|
1204
|
+
"repo"
|
|
1205
|
+
],
|
|
1206
|
+
"additionalProperties": false
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
1209
|
+
"type": "object",
|
|
1210
|
+
"properties": {
|
|
1211
|
+
"source": {
|
|
1212
|
+
"type": "string",
|
|
1213
|
+
"const": "git"
|
|
1214
|
+
},
|
|
1215
|
+
"url": {
|
|
1216
|
+
"description": "Full git repository URL",
|
|
1217
|
+
"type": "string"
|
|
1218
|
+
},
|
|
1219
|
+
"ref": {
|
|
1220
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1221
|
+
"type": "string"
|
|
1222
|
+
},
|
|
1223
|
+
"path": {
|
|
1224
|
+
"description": "Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)",
|
|
1225
|
+
"type": "string"
|
|
1226
|
+
},
|
|
1227
|
+
"sparsePaths": {
|
|
1228
|
+
"description": "Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned.",
|
|
1229
|
+
"type": "array",
|
|
1230
|
+
"items": {
|
|
1231
|
+
"type": "string"
|
|
1232
|
+
}
|
|
1233
|
+
}
|
|
1234
|
+
},
|
|
1235
|
+
"required": [
|
|
1236
|
+
"source",
|
|
1237
|
+
"url"
|
|
1238
|
+
],
|
|
1239
|
+
"additionalProperties": false
|
|
1240
|
+
},
|
|
1241
|
+
{
|
|
1242
|
+
"type": "object",
|
|
1243
|
+
"properties": {
|
|
1244
|
+
"source": {
|
|
1245
|
+
"type": "string",
|
|
1246
|
+
"const": "npm"
|
|
1247
|
+
},
|
|
1248
|
+
"package": {
|
|
1249
|
+
"description": "NPM package containing marketplace.json",
|
|
1250
|
+
"type": "string"
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
"required": [
|
|
1254
|
+
"source",
|
|
1255
|
+
"package"
|
|
1256
|
+
],
|
|
1257
|
+
"additionalProperties": false
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"type": "object",
|
|
1261
|
+
"properties": {
|
|
1262
|
+
"source": {
|
|
1263
|
+
"type": "string",
|
|
1264
|
+
"const": "file"
|
|
1265
|
+
},
|
|
1266
|
+
"path": {
|
|
1267
|
+
"description": "Local file path to marketplace.json",
|
|
1268
|
+
"type": "string"
|
|
1269
|
+
}
|
|
1270
|
+
},
|
|
1271
|
+
"required": [
|
|
1272
|
+
"source",
|
|
1273
|
+
"path"
|
|
1274
|
+
],
|
|
1275
|
+
"additionalProperties": false
|
|
1276
|
+
},
|
|
1277
|
+
{
|
|
1278
|
+
"type": "object",
|
|
1279
|
+
"properties": {
|
|
1280
|
+
"source": {
|
|
1281
|
+
"type": "string",
|
|
1282
|
+
"const": "directory"
|
|
1283
|
+
},
|
|
1284
|
+
"path": {
|
|
1285
|
+
"description": "Local directory containing .claude-plugin/marketplace.json",
|
|
1286
|
+
"type": "string"
|
|
1287
|
+
}
|
|
1288
|
+
},
|
|
1289
|
+
"required": [
|
|
1290
|
+
"source",
|
|
1291
|
+
"path"
|
|
1292
|
+
],
|
|
1293
|
+
"additionalProperties": false
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"type": "object",
|
|
1297
|
+
"properties": {
|
|
1298
|
+
"source": {
|
|
1299
|
+
"type": "string",
|
|
1300
|
+
"const": "hostPattern"
|
|
1301
|
+
},
|
|
1302
|
+
"hostPattern": {
|
|
1303
|
+
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\").",
|
|
1304
|
+
"type": "string"
|
|
1305
|
+
}
|
|
1306
|
+
},
|
|
1307
|
+
"required": [
|
|
1308
|
+
"source",
|
|
1309
|
+
"hostPattern"
|
|
1310
|
+
],
|
|
1311
|
+
"additionalProperties": false
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"type": "object",
|
|
1315
|
+
"properties": {
|
|
1316
|
+
"source": {
|
|
1317
|
+
"type": "string",
|
|
1318
|
+
"const": "pathPattern"
|
|
1319
|
+
},
|
|
1320
|
+
"pathPattern": {
|
|
1321
|
+
"description": "Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use \".*\" to allow all filesystem paths, or a narrower pattern (e.g., \"^/opt/approved/\") to restrict to specific directories.",
|
|
1322
|
+
"type": "string"
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
"required": [
|
|
1326
|
+
"source",
|
|
1327
|
+
"pathPattern"
|
|
1328
|
+
],
|
|
1329
|
+
"additionalProperties": false
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"description": "Inline marketplace manifest defined directly in settings.json. The reconciler writes a synthetic marketplace.json to the cache; diffMarketplaces detects edits via isEqual on the stored source (the plugins array is inside this object, so edits surface as sourceChanged).",
|
|
1333
|
+
"type": "object",
|
|
1334
|
+
"properties": {
|
|
1335
|
+
"source": {
|
|
1336
|
+
"type": "string",
|
|
1337
|
+
"const": "settings"
|
|
1338
|
+
},
|
|
1339
|
+
"name": {
|
|
1340
|
+
"description": "Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up.",
|
|
1341
|
+
"type": "string",
|
|
1342
|
+
"minLength": 1
|
|
1343
|
+
},
|
|
1344
|
+
"plugins": {
|
|
1345
|
+
"description": "Plugin entries declared inline in settings.json",
|
|
1346
|
+
"type": "array",
|
|
1347
|
+
"items": {
|
|
1348
|
+
"type": "object",
|
|
1349
|
+
"properties": {
|
|
1350
|
+
"name": {
|
|
1351
|
+
"description": "Plugin name as it appears in the target repository",
|
|
1352
|
+
"type": "string",
|
|
1353
|
+
"minLength": 1
|
|
1354
|
+
},
|
|
1355
|
+
"source": {
|
|
1356
|
+
"description": "Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against.",
|
|
1357
|
+
"anyOf": [
|
|
1358
|
+
{
|
|
1359
|
+
"description": "Path to the plugin root, relative to the marketplace root (the directory containing .claude-plugin/, not .claude-plugin/ itself)",
|
|
1360
|
+
"type": "string",
|
|
1361
|
+
"pattern": "^\\.\\/.*"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"description": "NPM package as plugin source",
|
|
1365
|
+
"type": "object",
|
|
1366
|
+
"properties": {
|
|
1367
|
+
"source": {
|
|
1368
|
+
"type": "string",
|
|
1369
|
+
"const": "npm"
|
|
1370
|
+
},
|
|
1371
|
+
"package": {
|
|
1372
|
+
"description": "Package name (or url, or local path, or anything else that can be passed to `npm` as a package)",
|
|
1373
|
+
"anyOf": [
|
|
1374
|
+
{
|
|
1375
|
+
"type": "string"
|
|
1376
|
+
},
|
|
1377
|
+
{
|
|
1378
|
+
"type": "string"
|
|
1379
|
+
}
|
|
1380
|
+
]
|
|
1381
|
+
},
|
|
1382
|
+
"version": {
|
|
1383
|
+
"description": "Specific version or version range (e.g., ^1.0.0, ~2.1.0)",
|
|
1384
|
+
"type": "string"
|
|
1385
|
+
},
|
|
1386
|
+
"registry": {
|
|
1387
|
+
"description": "Custom NPM registry URL (defaults to using system default, likely npmjs.org)",
|
|
1388
|
+
"type": "string",
|
|
1389
|
+
"format": "uri"
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
"required": [
|
|
1393
|
+
"source",
|
|
1394
|
+
"package"
|
|
1395
|
+
],
|
|
1396
|
+
"additionalProperties": false
|
|
1397
|
+
},
|
|
1398
|
+
{
|
|
1399
|
+
"description": "Python package as plugin source",
|
|
1400
|
+
"type": "object",
|
|
1401
|
+
"properties": {
|
|
1402
|
+
"source": {
|
|
1403
|
+
"type": "string",
|
|
1404
|
+
"const": "pip"
|
|
1405
|
+
},
|
|
1406
|
+
"package": {
|
|
1407
|
+
"description": "Python package name as it appears on PyPI",
|
|
1408
|
+
"type": "string"
|
|
1409
|
+
},
|
|
1410
|
+
"version": {
|
|
1411
|
+
"description": "Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)",
|
|
1412
|
+
"type": "string"
|
|
1413
|
+
},
|
|
1414
|
+
"registry": {
|
|
1415
|
+
"description": "Custom PyPI registry URL (defaults to using system default, likely pypi.org)",
|
|
1416
|
+
"type": "string",
|
|
1417
|
+
"format": "uri"
|
|
1418
|
+
}
|
|
1419
|
+
},
|
|
1420
|
+
"required": [
|
|
1421
|
+
"source",
|
|
1422
|
+
"package"
|
|
1423
|
+
],
|
|
1424
|
+
"additionalProperties": false
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"type": "object",
|
|
1428
|
+
"properties": {
|
|
1429
|
+
"source": {
|
|
1430
|
+
"type": "string",
|
|
1431
|
+
"const": "url"
|
|
1432
|
+
},
|
|
1433
|
+
"url": {
|
|
1434
|
+
"description": "Full git repository URL (https:// or git@)",
|
|
1435
|
+
"type": "string"
|
|
1436
|
+
},
|
|
1437
|
+
"ref": {
|
|
1438
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1439
|
+
"type": "string"
|
|
1440
|
+
},
|
|
1441
|
+
"sha": {
|
|
1442
|
+
"description": "Specific commit SHA to use",
|
|
1443
|
+
"type": "string",
|
|
1444
|
+
"minLength": 40,
|
|
1445
|
+
"maxLength": 40,
|
|
1446
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1447
|
+
}
|
|
1448
|
+
},
|
|
1449
|
+
"required": [
|
|
1450
|
+
"source",
|
|
1451
|
+
"url"
|
|
1452
|
+
],
|
|
1453
|
+
"additionalProperties": false
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"type": "object",
|
|
1457
|
+
"properties": {
|
|
1458
|
+
"source": {
|
|
1459
|
+
"type": "string",
|
|
1460
|
+
"const": "github"
|
|
1461
|
+
},
|
|
1462
|
+
"repo": {
|
|
1463
|
+
"description": "GitHub repository in owner/repo format",
|
|
1464
|
+
"type": "string"
|
|
1465
|
+
},
|
|
1466
|
+
"ref": {
|
|
1467
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1468
|
+
"type": "string"
|
|
1469
|
+
},
|
|
1470
|
+
"sha": {
|
|
1471
|
+
"description": "Specific commit SHA to use",
|
|
1472
|
+
"type": "string",
|
|
1473
|
+
"minLength": 40,
|
|
1474
|
+
"maxLength": 40,
|
|
1475
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
"required": [
|
|
1479
|
+
"source",
|
|
1480
|
+
"repo"
|
|
1481
|
+
],
|
|
1482
|
+
"additionalProperties": false
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"description": "Plugin located in a subdirectory of a larger repository (monorepo). Only the specified subdirectory is materialized; the rest of the repo is not downloaded.",
|
|
1486
|
+
"type": "object",
|
|
1487
|
+
"properties": {
|
|
1488
|
+
"source": {
|
|
1489
|
+
"type": "string",
|
|
1490
|
+
"const": "git-subdir"
|
|
1491
|
+
},
|
|
1492
|
+
"url": {
|
|
1493
|
+
"description": "Git repository: GitHub owner/repo shorthand, https://, or git@ URL",
|
|
1494
|
+
"type": "string"
|
|
1495
|
+
},
|
|
1496
|
+
"path": {
|
|
1497
|
+
"description": "Subdirectory within the repo containing the plugin (e.g., \"tools/claude-plugin\"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.",
|
|
1498
|
+
"type": "string",
|
|
1499
|
+
"minLength": 1
|
|
1500
|
+
},
|
|
1501
|
+
"ref": {
|
|
1502
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1503
|
+
"type": "string"
|
|
1504
|
+
},
|
|
1505
|
+
"sha": {
|
|
1506
|
+
"description": "Specific commit SHA to use",
|
|
1507
|
+
"type": "string",
|
|
1508
|
+
"minLength": 40,
|
|
1509
|
+
"maxLength": 40,
|
|
1510
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1511
|
+
}
|
|
1512
|
+
},
|
|
1513
|
+
"required": [
|
|
1514
|
+
"source",
|
|
1515
|
+
"url",
|
|
1516
|
+
"path"
|
|
1517
|
+
],
|
|
1518
|
+
"additionalProperties": false
|
|
1519
|
+
}
|
|
1520
|
+
]
|
|
1521
|
+
},
|
|
1522
|
+
"description": {
|
|
1523
|
+
"type": "string"
|
|
1524
|
+
},
|
|
1525
|
+
"version": {
|
|
1526
|
+
"type": "string"
|
|
1527
|
+
},
|
|
1528
|
+
"strict": {
|
|
1529
|
+
"type": "boolean"
|
|
1530
|
+
}
|
|
1531
|
+
},
|
|
1532
|
+
"required": [
|
|
1533
|
+
"name",
|
|
1534
|
+
"source"
|
|
1535
|
+
],
|
|
1536
|
+
"additionalProperties": false
|
|
1537
|
+
}
|
|
1538
|
+
},
|
|
1539
|
+
"owner": {
|
|
1540
|
+
"type": "object",
|
|
1541
|
+
"properties": {
|
|
1542
|
+
"name": {
|
|
1543
|
+
"description": "Display name of the plugin author or organization",
|
|
1544
|
+
"type": "string",
|
|
1545
|
+
"minLength": 1
|
|
1546
|
+
},
|
|
1547
|
+
"email": {
|
|
1548
|
+
"description": "Contact email for support or feedback",
|
|
1549
|
+
"type": "string"
|
|
1550
|
+
},
|
|
1551
|
+
"url": {
|
|
1552
|
+
"description": "Website, GitHub profile, or organization URL",
|
|
1553
|
+
"type": "string"
|
|
1554
|
+
}
|
|
1555
|
+
},
|
|
1556
|
+
"required": [
|
|
1557
|
+
"name"
|
|
1558
|
+
],
|
|
1559
|
+
"additionalProperties": false
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
"required": [
|
|
1563
|
+
"source",
|
|
1564
|
+
"name",
|
|
1565
|
+
"plugins"
|
|
1566
|
+
],
|
|
1567
|
+
"additionalProperties": false
|
|
1568
|
+
}
|
|
1569
|
+
]
|
|
1570
|
+
}
|
|
1571
|
+
},
|
|
1572
|
+
"blockedMarketplaces": {
|
|
1573
|
+
"description": "Enterprise blocklist of marketplace sources. When set in managed settings, these exact sources are blocked from being added as marketplaces. The check happens BEFORE downloading, so blocked sources never touch the filesystem.",
|
|
1574
|
+
"type": "array",
|
|
1575
|
+
"items": {
|
|
1576
|
+
"anyOf": [
|
|
1577
|
+
{
|
|
1578
|
+
"type": "object",
|
|
1579
|
+
"properties": {
|
|
1580
|
+
"source": {
|
|
1581
|
+
"type": "string",
|
|
1582
|
+
"const": "url"
|
|
1583
|
+
},
|
|
1584
|
+
"url": {
|
|
1585
|
+
"description": "Direct URL to marketplace.json file",
|
|
1586
|
+
"type": "string",
|
|
1587
|
+
"format": "uri"
|
|
1588
|
+
},
|
|
1589
|
+
"headers": {
|
|
1590
|
+
"description": "Custom HTTP headers (e.g., for authentication)",
|
|
1591
|
+
"type": "object",
|
|
1592
|
+
"propertyNames": {
|
|
1593
|
+
"type": "string"
|
|
1594
|
+
},
|
|
1595
|
+
"additionalProperties": {
|
|
1596
|
+
"type": "string"
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
},
|
|
1600
|
+
"required": [
|
|
1601
|
+
"source",
|
|
1602
|
+
"url"
|
|
1603
|
+
],
|
|
1604
|
+
"additionalProperties": false
|
|
1605
|
+
},
|
|
1606
|
+
{
|
|
1607
|
+
"type": "object",
|
|
1608
|
+
"properties": {
|
|
1609
|
+
"source": {
|
|
1610
|
+
"type": "string",
|
|
1611
|
+
"const": "github"
|
|
1612
|
+
},
|
|
1613
|
+
"repo": {
|
|
1614
|
+
"description": "GitHub repository in owner/repo format",
|
|
1615
|
+
"type": "string"
|
|
1616
|
+
},
|
|
1617
|
+
"ref": {
|
|
1618
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1619
|
+
"type": "string"
|
|
1620
|
+
},
|
|
1621
|
+
"path": {
|
|
1622
|
+
"description": "Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)",
|
|
1623
|
+
"type": "string"
|
|
1624
|
+
},
|
|
1625
|
+
"sparsePaths": {
|
|
1626
|
+
"description": "Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned.",
|
|
1627
|
+
"type": "array",
|
|
1628
|
+
"items": {
|
|
1629
|
+
"type": "string"
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
"required": [
|
|
1634
|
+
"source",
|
|
1635
|
+
"repo"
|
|
1636
|
+
],
|
|
1637
|
+
"additionalProperties": false
|
|
1638
|
+
},
|
|
1639
|
+
{
|
|
1640
|
+
"type": "object",
|
|
1641
|
+
"properties": {
|
|
1642
|
+
"source": {
|
|
1643
|
+
"type": "string",
|
|
1644
|
+
"const": "git"
|
|
1645
|
+
},
|
|
1646
|
+
"url": {
|
|
1647
|
+
"description": "Full git repository URL",
|
|
1648
|
+
"type": "string"
|
|
1649
|
+
},
|
|
1650
|
+
"ref": {
|
|
1651
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1652
|
+
"type": "string"
|
|
1653
|
+
},
|
|
1654
|
+
"path": {
|
|
1655
|
+
"description": "Path to marketplace.json within repo (defaults to .claude-plugin/marketplace.json)",
|
|
1656
|
+
"type": "string"
|
|
1657
|
+
},
|
|
1658
|
+
"sparsePaths": {
|
|
1659
|
+
"description": "Directories to include via git sparse-checkout (cone mode). Use for monorepos where the marketplace lives in a subdirectory. Example: [\".claude-plugin\", \"plugins\"]. If omitted, the full repository is cloned.",
|
|
1660
|
+
"type": "array",
|
|
1661
|
+
"items": {
|
|
1662
|
+
"type": "string"
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
},
|
|
1666
|
+
"required": [
|
|
1667
|
+
"source",
|
|
1668
|
+
"url"
|
|
1669
|
+
],
|
|
1670
|
+
"additionalProperties": false
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"type": "object",
|
|
1674
|
+
"properties": {
|
|
1675
|
+
"source": {
|
|
1676
|
+
"type": "string",
|
|
1677
|
+
"const": "npm"
|
|
1678
|
+
},
|
|
1679
|
+
"package": {
|
|
1680
|
+
"description": "NPM package containing marketplace.json",
|
|
1681
|
+
"type": "string"
|
|
1682
|
+
}
|
|
1683
|
+
},
|
|
1684
|
+
"required": [
|
|
1685
|
+
"source",
|
|
1686
|
+
"package"
|
|
1687
|
+
],
|
|
1688
|
+
"additionalProperties": false
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"type": "object",
|
|
1692
|
+
"properties": {
|
|
1693
|
+
"source": {
|
|
1694
|
+
"type": "string",
|
|
1695
|
+
"const": "file"
|
|
1696
|
+
},
|
|
1697
|
+
"path": {
|
|
1698
|
+
"description": "Local file path to marketplace.json",
|
|
1699
|
+
"type": "string"
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1702
|
+
"required": [
|
|
1703
|
+
"source",
|
|
1704
|
+
"path"
|
|
1705
|
+
],
|
|
1706
|
+
"additionalProperties": false
|
|
1707
|
+
},
|
|
1708
|
+
{
|
|
1709
|
+
"type": "object",
|
|
1710
|
+
"properties": {
|
|
1711
|
+
"source": {
|
|
1712
|
+
"type": "string",
|
|
1713
|
+
"const": "directory"
|
|
1714
|
+
},
|
|
1715
|
+
"path": {
|
|
1716
|
+
"description": "Local directory containing .claude-plugin/marketplace.json",
|
|
1717
|
+
"type": "string"
|
|
1718
|
+
}
|
|
1719
|
+
},
|
|
1720
|
+
"required": [
|
|
1721
|
+
"source",
|
|
1722
|
+
"path"
|
|
1723
|
+
],
|
|
1724
|
+
"additionalProperties": false
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"type": "object",
|
|
1728
|
+
"properties": {
|
|
1729
|
+
"source": {
|
|
1730
|
+
"type": "string",
|
|
1731
|
+
"const": "hostPattern"
|
|
1732
|
+
},
|
|
1733
|
+
"hostPattern": {
|
|
1734
|
+
"description": "Regex pattern to match the host/domain extracted from any marketplace source type. For github sources, matches against \"github.com\". For git sources (SSH or HTTPS), extracts the hostname from the URL. Use in strictKnownMarketplaces to allow all marketplaces from a specific host (e.g., \"^github\\.mycompany\\.com$\").",
|
|
1735
|
+
"type": "string"
|
|
1736
|
+
}
|
|
1737
|
+
},
|
|
1738
|
+
"required": [
|
|
1739
|
+
"source",
|
|
1740
|
+
"hostPattern"
|
|
1741
|
+
],
|
|
1742
|
+
"additionalProperties": false
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
"type": "object",
|
|
1746
|
+
"properties": {
|
|
1747
|
+
"source": {
|
|
1748
|
+
"type": "string",
|
|
1749
|
+
"const": "pathPattern"
|
|
1750
|
+
},
|
|
1751
|
+
"pathPattern": {
|
|
1752
|
+
"description": "Regex pattern matched against the .path field of file and directory sources. Use in strictKnownMarketplaces to allow filesystem-based marketplaces alongside hostPattern restrictions for network sources. Use \".*\" to allow all filesystem paths, or a narrower pattern (e.g., \"^/opt/approved/\") to restrict to specific directories.",
|
|
1753
|
+
"type": "string"
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
"required": [
|
|
1757
|
+
"source",
|
|
1758
|
+
"pathPattern"
|
|
1759
|
+
],
|
|
1760
|
+
"additionalProperties": false
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"description": "Inline marketplace manifest defined directly in settings.json. The reconciler writes a synthetic marketplace.json to the cache; diffMarketplaces detects edits via isEqual on the stored source (the plugins array is inside this object, so edits surface as sourceChanged).",
|
|
1764
|
+
"type": "object",
|
|
1765
|
+
"properties": {
|
|
1766
|
+
"source": {
|
|
1767
|
+
"type": "string",
|
|
1768
|
+
"const": "settings"
|
|
1769
|
+
},
|
|
1770
|
+
"name": {
|
|
1771
|
+
"description": "Marketplace name. Must match the extraKnownMarketplaces key (enforced); the synthetic manifest is written under this name. Same validation as PluginMarketplaceSchema plus reserved-name rejection — validateOfficialNameSource runs after the disk write, too late to clean up.",
|
|
1772
|
+
"type": "string",
|
|
1773
|
+
"minLength": 1
|
|
1774
|
+
},
|
|
1775
|
+
"plugins": {
|
|
1776
|
+
"description": "Plugin entries declared inline in settings.json",
|
|
1777
|
+
"type": "array",
|
|
1778
|
+
"items": {
|
|
1779
|
+
"type": "object",
|
|
1780
|
+
"properties": {
|
|
1781
|
+
"name": {
|
|
1782
|
+
"description": "Plugin name as it appears in the target repository",
|
|
1783
|
+
"type": "string",
|
|
1784
|
+
"minLength": 1
|
|
1785
|
+
},
|
|
1786
|
+
"source": {
|
|
1787
|
+
"description": "Where to fetch the plugin from. Must be a remote source — relative paths have no marketplace repository to resolve against.",
|
|
1788
|
+
"anyOf": [
|
|
1789
|
+
{
|
|
1790
|
+
"description": "Path to the plugin root, relative to the marketplace root (the directory containing .claude-plugin/, not .claude-plugin/ itself)",
|
|
1791
|
+
"type": "string",
|
|
1792
|
+
"pattern": "^\\.\\/.*"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"description": "NPM package as plugin source",
|
|
1796
|
+
"type": "object",
|
|
1797
|
+
"properties": {
|
|
1798
|
+
"source": {
|
|
1799
|
+
"type": "string",
|
|
1800
|
+
"const": "npm"
|
|
1801
|
+
},
|
|
1802
|
+
"package": {
|
|
1803
|
+
"description": "Package name (or url, or local path, or anything else that can be passed to `npm` as a package)",
|
|
1804
|
+
"anyOf": [
|
|
1805
|
+
{
|
|
1806
|
+
"type": "string"
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
"type": "string"
|
|
1810
|
+
}
|
|
1811
|
+
]
|
|
1812
|
+
},
|
|
1813
|
+
"version": {
|
|
1814
|
+
"description": "Specific version or version range (e.g., ^1.0.0, ~2.1.0)",
|
|
1815
|
+
"type": "string"
|
|
1816
|
+
},
|
|
1817
|
+
"registry": {
|
|
1818
|
+
"description": "Custom NPM registry URL (defaults to using system default, likely npmjs.org)",
|
|
1819
|
+
"type": "string",
|
|
1820
|
+
"format": "uri"
|
|
1821
|
+
}
|
|
1822
|
+
},
|
|
1823
|
+
"required": [
|
|
1824
|
+
"source",
|
|
1825
|
+
"package"
|
|
1826
|
+
],
|
|
1827
|
+
"additionalProperties": false
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"description": "Python package as plugin source",
|
|
1831
|
+
"type": "object",
|
|
1832
|
+
"properties": {
|
|
1833
|
+
"source": {
|
|
1834
|
+
"type": "string",
|
|
1835
|
+
"const": "pip"
|
|
1836
|
+
},
|
|
1837
|
+
"package": {
|
|
1838
|
+
"description": "Python package name as it appears on PyPI",
|
|
1839
|
+
"type": "string"
|
|
1840
|
+
},
|
|
1841
|
+
"version": {
|
|
1842
|
+
"description": "Version specifier (e.g., ==1.0.0, >=2.0.0, <3.0.0)",
|
|
1843
|
+
"type": "string"
|
|
1844
|
+
},
|
|
1845
|
+
"registry": {
|
|
1846
|
+
"description": "Custom PyPI registry URL (defaults to using system default, likely pypi.org)",
|
|
1847
|
+
"type": "string",
|
|
1848
|
+
"format": "uri"
|
|
1849
|
+
}
|
|
1850
|
+
},
|
|
1851
|
+
"required": [
|
|
1852
|
+
"source",
|
|
1853
|
+
"package"
|
|
1854
|
+
],
|
|
1855
|
+
"additionalProperties": false
|
|
1856
|
+
},
|
|
1857
|
+
{
|
|
1858
|
+
"type": "object",
|
|
1859
|
+
"properties": {
|
|
1860
|
+
"source": {
|
|
1861
|
+
"type": "string",
|
|
1862
|
+
"const": "url"
|
|
1863
|
+
},
|
|
1864
|
+
"url": {
|
|
1865
|
+
"description": "Full git repository URL (https:// or git@)",
|
|
1866
|
+
"type": "string"
|
|
1867
|
+
},
|
|
1868
|
+
"ref": {
|
|
1869
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1870
|
+
"type": "string"
|
|
1871
|
+
},
|
|
1872
|
+
"sha": {
|
|
1873
|
+
"description": "Specific commit SHA to use",
|
|
1874
|
+
"type": "string",
|
|
1875
|
+
"minLength": 40,
|
|
1876
|
+
"maxLength": 40,
|
|
1877
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1878
|
+
}
|
|
1879
|
+
},
|
|
1880
|
+
"required": [
|
|
1881
|
+
"source",
|
|
1882
|
+
"url"
|
|
1883
|
+
],
|
|
1884
|
+
"additionalProperties": false
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"type": "object",
|
|
1888
|
+
"properties": {
|
|
1889
|
+
"source": {
|
|
1890
|
+
"type": "string",
|
|
1891
|
+
"const": "github"
|
|
1892
|
+
},
|
|
1893
|
+
"repo": {
|
|
1894
|
+
"description": "GitHub repository in owner/repo format",
|
|
1895
|
+
"type": "string"
|
|
1896
|
+
},
|
|
1897
|
+
"ref": {
|
|
1898
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1899
|
+
"type": "string"
|
|
1900
|
+
},
|
|
1901
|
+
"sha": {
|
|
1902
|
+
"description": "Specific commit SHA to use",
|
|
1903
|
+
"type": "string",
|
|
1904
|
+
"minLength": 40,
|
|
1905
|
+
"maxLength": 40,
|
|
1906
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1907
|
+
}
|
|
1908
|
+
},
|
|
1909
|
+
"required": [
|
|
1910
|
+
"source",
|
|
1911
|
+
"repo"
|
|
1912
|
+
],
|
|
1913
|
+
"additionalProperties": false
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"description": "Plugin located in a subdirectory of a larger repository (monorepo). Only the specified subdirectory is materialized; the rest of the repo is not downloaded.",
|
|
1917
|
+
"type": "object",
|
|
1918
|
+
"properties": {
|
|
1919
|
+
"source": {
|
|
1920
|
+
"type": "string",
|
|
1921
|
+
"const": "git-subdir"
|
|
1922
|
+
},
|
|
1923
|
+
"url": {
|
|
1924
|
+
"description": "Git repository: GitHub owner/repo shorthand, https://, or git@ URL",
|
|
1925
|
+
"type": "string"
|
|
1926
|
+
},
|
|
1927
|
+
"path": {
|
|
1928
|
+
"description": "Subdirectory within the repo containing the plugin (e.g., \"tools/claude-plugin\"). Cloned sparsely using partial clone (--filter=tree:0) to minimize bandwidth for monorepos.",
|
|
1929
|
+
"type": "string",
|
|
1930
|
+
"minLength": 1
|
|
1931
|
+
},
|
|
1932
|
+
"ref": {
|
|
1933
|
+
"description": "Git branch or tag to use (e.g., \"main\", \"v1.0.0\"). Defaults to repository default branch.",
|
|
1934
|
+
"type": "string"
|
|
1935
|
+
},
|
|
1936
|
+
"sha": {
|
|
1937
|
+
"description": "Specific commit SHA to use",
|
|
1938
|
+
"type": "string",
|
|
1939
|
+
"minLength": 40,
|
|
1940
|
+
"maxLength": 40,
|
|
1941
|
+
"pattern": "^[a-f0-9]{40}$"
|
|
1942
|
+
}
|
|
1943
|
+
},
|
|
1944
|
+
"required": [
|
|
1945
|
+
"source",
|
|
1946
|
+
"url",
|
|
1947
|
+
"path"
|
|
1948
|
+
],
|
|
1949
|
+
"additionalProperties": false
|
|
1950
|
+
}
|
|
1951
|
+
]
|
|
1952
|
+
},
|
|
1953
|
+
"description": {
|
|
1954
|
+
"type": "string"
|
|
1955
|
+
},
|
|
1956
|
+
"version": {
|
|
1957
|
+
"type": "string"
|
|
1958
|
+
},
|
|
1959
|
+
"strict": {
|
|
1960
|
+
"type": "boolean"
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"required": [
|
|
1964
|
+
"name",
|
|
1965
|
+
"source"
|
|
1966
|
+
],
|
|
1967
|
+
"additionalProperties": false
|
|
1968
|
+
}
|
|
1969
|
+
},
|
|
1970
|
+
"owner": {
|
|
1971
|
+
"type": "object",
|
|
1972
|
+
"properties": {
|
|
1973
|
+
"name": {
|
|
1974
|
+
"description": "Display name of the plugin author or organization",
|
|
1975
|
+
"type": "string",
|
|
1976
|
+
"minLength": 1
|
|
1977
|
+
},
|
|
1978
|
+
"email": {
|
|
1979
|
+
"description": "Contact email for support or feedback",
|
|
1980
|
+
"type": "string"
|
|
1981
|
+
},
|
|
1982
|
+
"url": {
|
|
1983
|
+
"description": "Website, GitHub profile, or organization URL",
|
|
1984
|
+
"type": "string"
|
|
1985
|
+
}
|
|
1986
|
+
},
|
|
1987
|
+
"required": [
|
|
1988
|
+
"name"
|
|
1989
|
+
],
|
|
1990
|
+
"additionalProperties": false
|
|
1991
|
+
}
|
|
1992
|
+
},
|
|
1993
|
+
"required": [
|
|
1994
|
+
"source",
|
|
1995
|
+
"name",
|
|
1996
|
+
"plugins"
|
|
1997
|
+
],
|
|
1998
|
+
"additionalProperties": false
|
|
1999
|
+
}
|
|
2000
|
+
]
|
|
2001
|
+
}
|
|
2002
|
+
},
|
|
2003
|
+
"forceLoginMethod": {
|
|
2004
|
+
"description": "Force a specific login method: \"claudeai\" for Claude Pro/Max, \"console\" for Console billing",
|
|
2005
|
+
"type": "string",
|
|
2006
|
+
"enum": [
|
|
2007
|
+
"claudeai",
|
|
2008
|
+
"console"
|
|
2009
|
+
]
|
|
2010
|
+
},
|
|
2011
|
+
"forceLoginOrgUUID": {
|
|
2012
|
+
"description": "Organization UUID to use for OAuth login",
|
|
2013
|
+
"type": "string"
|
|
2014
|
+
},
|
|
2015
|
+
"otelHeadersHelper": {
|
|
2016
|
+
"description": "Path to a script that outputs OpenTelemetry headers",
|
|
2017
|
+
"type": "string"
|
|
2018
|
+
},
|
|
2019
|
+
"outputStyle": {
|
|
2020
|
+
"description": "Controls the output style for assistant responses",
|
|
2021
|
+
"type": "string"
|
|
2022
|
+
},
|
|
2023
|
+
"language": {
|
|
2024
|
+
"description": "Preferred language for Claude responses and voice dictation (e.g., \"japanese\", \"spanish\")",
|
|
2025
|
+
"type": "string"
|
|
2026
|
+
},
|
|
2027
|
+
"skipWebFetchPreflight": {
|
|
2028
|
+
"description": "Skip the WebFetch blocklist check for enterprise environments with restrictive security policies",
|
|
2029
|
+
"type": "boolean"
|
|
2030
|
+
},
|
|
2031
|
+
"sandbox": {
|
|
2032
|
+
"type": "object",
|
|
2033
|
+
"properties": {
|
|
2034
|
+
"enabled": {
|
|
2035
|
+
"type": "boolean"
|
|
2036
|
+
},
|
|
2037
|
+
"failIfUnavailable": {
|
|
2038
|
+
"description": "Exit with an error at startup if sandbox.enabled is true but the sandbox cannot start (missing dependencies, unsupported platform, or platform not in enabledPlatforms). When false (default), a warning is shown and commands run unsandboxed. Intended for managed-settings deployments that require sandboxing as a hard gate.",
|
|
2039
|
+
"type": "boolean"
|
|
2040
|
+
},
|
|
2041
|
+
"autoAllowBashIfSandboxed": {
|
|
2042
|
+
"type": "boolean"
|
|
2043
|
+
},
|
|
2044
|
+
"allowUnsandboxedCommands": {
|
|
2045
|
+
"description": "Allow trusted, user-initiated commands to run outside the sandbox. When false, sandbox override requests are ignored and all commands must run sandboxed. Default: true.",
|
|
2046
|
+
"type": "boolean"
|
|
2047
|
+
},
|
|
2048
|
+
"network": {
|
|
2049
|
+
"type": "object",
|
|
2050
|
+
"properties": {
|
|
2051
|
+
"allowedDomains": {
|
|
2052
|
+
"type": "array",
|
|
2053
|
+
"items": {
|
|
2054
|
+
"type": "string"
|
|
2055
|
+
}
|
|
2056
|
+
},
|
|
2057
|
+
"allowManagedDomainsOnly": {
|
|
2058
|
+
"description": "When true (and set in managed settings), only allowedDomains and WebFetch(domain:...) allow rules from managed settings are respected. User, project, local, and flag settings domains are ignored. Denied domains are still respected from all sources.",
|
|
2059
|
+
"type": "boolean"
|
|
2060
|
+
},
|
|
2061
|
+
"allowUnixSockets": {
|
|
2062
|
+
"description": "macOS only: Unix socket paths to allow. Ignored on Linux (seccomp cannot filter by path).",
|
|
2063
|
+
"type": "array",
|
|
2064
|
+
"items": {
|
|
2065
|
+
"type": "string"
|
|
2066
|
+
}
|
|
2067
|
+
},
|
|
2068
|
+
"allowAllUnixSockets": {
|
|
2069
|
+
"description": "If true, allow all Unix sockets (disables blocking on both platforms).",
|
|
2070
|
+
"type": "boolean"
|
|
2071
|
+
},
|
|
2072
|
+
"allowLocalBinding": {
|
|
2073
|
+
"type": "boolean"
|
|
2074
|
+
},
|
|
2075
|
+
"httpProxyPort": {
|
|
2076
|
+
"type": "number"
|
|
2077
|
+
},
|
|
2078
|
+
"socksProxyPort": {
|
|
2079
|
+
"type": "number"
|
|
2080
|
+
}
|
|
2081
|
+
},
|
|
2082
|
+
"additionalProperties": false
|
|
2083
|
+
},
|
|
2084
|
+
"filesystem": {
|
|
2085
|
+
"type": "object",
|
|
2086
|
+
"properties": {
|
|
2087
|
+
"allowWrite": {
|
|
2088
|
+
"description": "Additional paths to allow writing within the sandbox. Merged with paths from Edit(...) allow permission rules.",
|
|
2089
|
+
"type": "array",
|
|
2090
|
+
"items": {
|
|
2091
|
+
"type": "string"
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
"denyWrite": {
|
|
2095
|
+
"description": "Additional paths to deny writing within the sandbox. Merged with paths from Edit(...) deny permission rules.",
|
|
2096
|
+
"type": "array",
|
|
2097
|
+
"items": {
|
|
2098
|
+
"type": "string"
|
|
2099
|
+
}
|
|
2100
|
+
},
|
|
2101
|
+
"denyRead": {
|
|
2102
|
+
"description": "Additional paths to deny reading within the sandbox. Merged with paths from Read(...) deny permission rules.",
|
|
2103
|
+
"type": "array",
|
|
2104
|
+
"items": {
|
|
2105
|
+
"type": "string"
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
"allowRead": {
|
|
2109
|
+
"description": "Paths to re-allow reading within denyRead regions. Takes precedence over denyRead for matching paths.",
|
|
2110
|
+
"type": "array",
|
|
2111
|
+
"items": {
|
|
2112
|
+
"type": "string"
|
|
2113
|
+
}
|
|
2114
|
+
},
|
|
2115
|
+
"allowManagedReadPathsOnly": {
|
|
2116
|
+
"description": "When true (set in managed settings), only allowRead paths from policySettings are used.",
|
|
2117
|
+
"type": "boolean"
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
"additionalProperties": false
|
|
2121
|
+
},
|
|
2122
|
+
"ignoreViolations": {
|
|
2123
|
+
"type": "object",
|
|
2124
|
+
"propertyNames": {
|
|
2125
|
+
"type": "string"
|
|
2126
|
+
},
|
|
2127
|
+
"additionalProperties": {
|
|
2128
|
+
"type": "array",
|
|
2129
|
+
"items": {
|
|
2130
|
+
"type": "string"
|
|
2131
|
+
}
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
"enableWeakerNestedSandbox": {
|
|
2135
|
+
"type": "boolean"
|
|
2136
|
+
},
|
|
2137
|
+
"enableWeakerNetworkIsolation": {
|
|
2138
|
+
"description": "macOS only: Allow access to com.apple.trustd.agent in the sandbox. Needed for Go-based CLI tools (gh, gcloud, terraform, etc.) to verify TLS certificates when using httpProxyPort with a MITM proxy and custom CA. **Reduces security** — opens a potential data exfiltration vector through the trustd service. Default: false",
|
|
2139
|
+
"type": "boolean"
|
|
2140
|
+
},
|
|
2141
|
+
"excludedCommands": {
|
|
2142
|
+
"type": "array",
|
|
2143
|
+
"items": {
|
|
2144
|
+
"type": "string"
|
|
2145
|
+
}
|
|
2146
|
+
},
|
|
2147
|
+
"ripgrep": {
|
|
2148
|
+
"description": "Custom ripgrep configuration for bundled ripgrep support",
|
|
2149
|
+
"type": "object",
|
|
2150
|
+
"properties": {
|
|
2151
|
+
"command": {
|
|
2152
|
+
"type": "string"
|
|
2153
|
+
},
|
|
2154
|
+
"args": {
|
|
2155
|
+
"type": "array",
|
|
2156
|
+
"items": {
|
|
2157
|
+
"type": "string"
|
|
2158
|
+
}
|
|
2159
|
+
}
|
|
2160
|
+
},
|
|
2161
|
+
"required": [
|
|
2162
|
+
"command"
|
|
2163
|
+
],
|
|
2164
|
+
"additionalProperties": false
|
|
2165
|
+
}
|
|
2166
|
+
},
|
|
2167
|
+
"additionalProperties": {}
|
|
2168
|
+
},
|
|
2169
|
+
"feedbackSurveyRate": {
|
|
2170
|
+
"description": "Probability (0–1) that the session quality survey appears when eligible. 0.05 is a reasonable starting point.",
|
|
2171
|
+
"type": "number",
|
|
2172
|
+
"minimum": 0,
|
|
2173
|
+
"maximum": 1
|
|
2174
|
+
},
|
|
2175
|
+
"spinnerTipsEnabled": {
|
|
2176
|
+
"description": "Whether to show tips in the spinner",
|
|
2177
|
+
"type": "boolean"
|
|
2178
|
+
},
|
|
2179
|
+
"sponsoredTipsEnabled": {
|
|
2180
|
+
"description": "Whether to show sponsored partner tips alongside regular tips (default: true). Disabling does not affect regular tips.",
|
|
2181
|
+
"type": "boolean"
|
|
2182
|
+
},
|
|
2183
|
+
"sponsoredTipsFrequency": {
|
|
2184
|
+
"description": "Show at most 1 sponsored tip per N spinner picks. Default 10. Set 0 to disable sponsored tips.",
|
|
2185
|
+
"type": "integer",
|
|
2186
|
+
"minimum": 0,
|
|
2187
|
+
"maximum": 9007199254740991
|
|
2188
|
+
},
|
|
2189
|
+
"spinnerVerbs": {
|
|
2190
|
+
"description": "Customize spinner verbs. mode: \"append\" adds verbs to defaults, \"replace\" uses only your verbs.",
|
|
2191
|
+
"type": "object",
|
|
2192
|
+
"properties": {
|
|
2193
|
+
"mode": {
|
|
2194
|
+
"type": "string",
|
|
2195
|
+
"enum": [
|
|
2196
|
+
"append",
|
|
2197
|
+
"replace"
|
|
2198
|
+
]
|
|
2199
|
+
},
|
|
2200
|
+
"verbs": {
|
|
2201
|
+
"type": "array",
|
|
2202
|
+
"items": {
|
|
2203
|
+
"type": "string"
|
|
2204
|
+
}
|
|
2205
|
+
}
|
|
2206
|
+
},
|
|
2207
|
+
"required": [
|
|
2208
|
+
"mode",
|
|
2209
|
+
"verbs"
|
|
2210
|
+
],
|
|
2211
|
+
"additionalProperties": false
|
|
2212
|
+
},
|
|
2213
|
+
"spinnerTipsOverride": {
|
|
2214
|
+
"description": "Override spinner tips. tips: array of tip strings. excludeDefault: if true, only show custom tips (default: false).",
|
|
2215
|
+
"type": "object",
|
|
2216
|
+
"properties": {
|
|
2217
|
+
"excludeDefault": {
|
|
2218
|
+
"type": "boolean"
|
|
2219
|
+
},
|
|
2220
|
+
"tips": {
|
|
2221
|
+
"type": "array",
|
|
2222
|
+
"items": {
|
|
2223
|
+
"type": "string"
|
|
2224
|
+
}
|
|
2225
|
+
}
|
|
2226
|
+
},
|
|
2227
|
+
"required": [
|
|
2228
|
+
"tips"
|
|
2229
|
+
],
|
|
2230
|
+
"additionalProperties": false
|
|
2231
|
+
},
|
|
2232
|
+
"syntaxHighlightingDisabled": {
|
|
2233
|
+
"description": "Whether to disable syntax highlighting in diffs",
|
|
2234
|
+
"type": "boolean"
|
|
2235
|
+
},
|
|
2236
|
+
"terminalTitleFromRename": {
|
|
2237
|
+
"description": "Whether /rename updates the terminal tab title (defaults to true). Set to false to keep auto-generated topic titles.",
|
|
2238
|
+
"type": "boolean"
|
|
2239
|
+
},
|
|
2240
|
+
"alwaysThinkingEnabled": {
|
|
2241
|
+
"description": "When false, thinking is disabled. When absent or true, thinking is enabled automatically for supported models.",
|
|
2242
|
+
"type": "boolean"
|
|
2243
|
+
},
|
|
2244
|
+
"effortLevel": {
|
|
2245
|
+
"description": "Persisted effort level for supported models.",
|
|
2246
|
+
"type": "string",
|
|
2247
|
+
"enum": [
|
|
2248
|
+
"low",
|
|
2249
|
+
"medium",
|
|
2250
|
+
"high",
|
|
2251
|
+
"xhigh",
|
|
2252
|
+
"max"
|
|
2253
|
+
]
|
|
2254
|
+
},
|
|
2255
|
+
"advisorModel": {
|
|
2256
|
+
"description": "Advisor model for the server-side advisor tool.",
|
|
2257
|
+
"type": "string"
|
|
2258
|
+
},
|
|
2259
|
+
"agentModels": {
|
|
2260
|
+
"description": "Map of route key to provider connection info. Cross-provider: { \"deepseek-chat\": { \"base_url\": \"https://api.deepseek.com/v1\", \"api_key\": \"sk-xxx\" } }. Model-only (reuse current provider): { \"mini\": { \"model\": \"gpt-5-mini\" } }. Use \"model\" when the route key is an alias for a different API model name.",
|
|
2261
|
+
"type": "object",
|
|
2262
|
+
"propertyNames": {
|
|
2263
|
+
"type": "string"
|
|
2264
|
+
},
|
|
2265
|
+
"additionalProperties": {
|
|
2266
|
+
"type": "object",
|
|
2267
|
+
"properties": {
|
|
2268
|
+
"model": {
|
|
2269
|
+
"description": "Actual model name to send to the API. Defaults to the surrounding agentModels key.",
|
|
2270
|
+
"type": "string"
|
|
2271
|
+
},
|
|
2272
|
+
"base_url": {
|
|
2273
|
+
"description": "OpenAI-compatible API endpoint (must be https:// or http://). Omit together with api_key to reuse the current provider (model-only route).",
|
|
2274
|
+
"type": "string",
|
|
2275
|
+
"format": "uri"
|
|
2276
|
+
},
|
|
2277
|
+
"api_key": {
|
|
2278
|
+
"description": "API key for this provider. Omit together with base_url to reuse the current provider (model-only route).",
|
|
2279
|
+
"type": "string"
|
|
2280
|
+
}
|
|
2281
|
+
},
|
|
2282
|
+
"additionalProperties": false
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"agentRouting": {
|
|
2286
|
+
"description": "Map of agent identifier (subagent_type or team member name) to model name. Use \"default\" key as fallback. Model name must exist in agentModels. Example: { \"Explore\": \"deepseek-chat\", \"general-purpose\": \"gpt-4o\", \"default\": \"gpt-4o\" }",
|
|
2287
|
+
"type": "object",
|
|
2288
|
+
"propertyNames": {
|
|
2289
|
+
"type": "string"
|
|
2290
|
+
},
|
|
2291
|
+
"additionalProperties": {
|
|
2292
|
+
"type": "string"
|
|
2293
|
+
}
|
|
2294
|
+
},
|
|
2295
|
+
"smartRouting": {
|
|
2296
|
+
"description": "Opt-in smart routing: classify each user turn and route simple turns to the configured simple model. simpleModel/strongModel are agentModels keys (or bare model ids). Example: { \"enabled\": true, \"simpleModel\": \"mini\", \"strongModel\": \"main\" }",
|
|
2297
|
+
"type": "object",
|
|
2298
|
+
"properties": {
|
|
2299
|
+
"enabled": {
|
|
2300
|
+
"description": "Opt in to per-turn simple-vs-strong model routing. Off by default.",
|
|
2301
|
+
"type": "boolean"
|
|
2302
|
+
},
|
|
2303
|
+
"simpleModel": {
|
|
2304
|
+
"description": "agentModels key (or bare model id) used for turns classified \"simple\".",
|
|
2305
|
+
"type": "string"
|
|
2306
|
+
},
|
|
2307
|
+
"strongModel": {
|
|
2308
|
+
"description": "agentModels key (or bare model id) used for \"strong\" turns and whenever routing is unsure.",
|
|
2309
|
+
"type": "string"
|
|
2310
|
+
},
|
|
2311
|
+
"simpleMaxChars": {
|
|
2312
|
+
"description": "Max characters in user input to qualify as \"simple\". Passed to routeModel.",
|
|
2313
|
+
"type": "number"
|
|
2314
|
+
},
|
|
2315
|
+
"simpleMaxWords": {
|
|
2316
|
+
"description": "Max whitespace-separated words to qualify as \"simple\". Passed to routeModel.",
|
|
2317
|
+
"type": "number"
|
|
2318
|
+
}
|
|
2319
|
+
},
|
|
2320
|
+
"additionalProperties": false
|
|
2321
|
+
},
|
|
2322
|
+
"providerFallbackChain": {
|
|
2323
|
+
"description": "Ordered list of providerProfile ids. When the active provider returns a rate-limit or quota error, OpenClaude advances to the next profile in this list (starting after the currently-active id) and retries the turn. Example: [\"provider_anthropic\", \"provider_openai\", \"provider_ollama\"]",
|
|
2324
|
+
"type": "array",
|
|
2325
|
+
"items": {
|
|
2326
|
+
"type": "string"
|
|
2327
|
+
}
|
|
2328
|
+
},
|
|
2329
|
+
"maxContextWindow": {
|
|
2330
|
+
"description": "Global override for max context window (tokens). Applied to all models, taking the highest precedence over per-model settings, env vars, and catalog limits.",
|
|
2331
|
+
"type": "integer",
|
|
2332
|
+
"exclusiveMinimum": 0,
|
|
2333
|
+
"maximum": 9007199254740991
|
|
2334
|
+
},
|
|
2335
|
+
"modelLimits": {
|
|
2336
|
+
"description": "Per-model overrides for context window and max output tokens. Used for OpenAI-compatible models whose limits are not in the built-in catalog. Keys are matched against the model name (exact match preferred, then prefix). CLAUDE_CODE_OPENAI_CONTEXT_WINDOWS / CLAUDE_CODE_OPENAI_MAX_OUTPUT_TOKENS env vars take precedence. Example: { \"qwen3.6-plus\": { \"contextWindow\": 1048576, \"maxOutputTokens\": 32768 } }",
|
|
2337
|
+
"type": "object",
|
|
2338
|
+
"propertyNames": {
|
|
2339
|
+
"type": "string"
|
|
2340
|
+
},
|
|
2341
|
+
"additionalProperties": {
|
|
2342
|
+
"type": "object",
|
|
2343
|
+
"properties": {
|
|
2344
|
+
"contextWindow": {
|
|
2345
|
+
"description": "Total context window size in tokens.",
|
|
2346
|
+
"type": "integer",
|
|
2347
|
+
"exclusiveMinimum": 0,
|
|
2348
|
+
"maximum": 9007199254740991
|
|
2349
|
+
},
|
|
2350
|
+
"maxOutputTokens": {
|
|
2351
|
+
"description": "Maximum output tokens per response.",
|
|
2352
|
+
"type": "integer",
|
|
2353
|
+
"exclusiveMinimum": 0,
|
|
2354
|
+
"maximum": 9007199254740991
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2357
|
+
"additionalProperties": false
|
|
2358
|
+
}
|
|
2359
|
+
},
|
|
2360
|
+
"fastMode": {
|
|
2361
|
+
"description": "When true, fast mode is enabled. When absent or false, fast mode is off.",
|
|
2362
|
+
"type": "boolean"
|
|
2363
|
+
},
|
|
2364
|
+
"fastModePerSessionOptIn": {
|
|
2365
|
+
"description": "When true, fast mode does not persist across sessions. Each session starts with fast mode off.",
|
|
2366
|
+
"type": "boolean"
|
|
2367
|
+
},
|
|
2368
|
+
"promptSuggestionEnabled": {
|
|
2369
|
+
"description": "When false, prompt suggestions are disabled. When absent or true, prompt suggestions are enabled.",
|
|
2370
|
+
"type": "boolean"
|
|
2371
|
+
},
|
|
2372
|
+
"showClearContextOnPlanAccept": {
|
|
2373
|
+
"description": "When true, the plan-approval dialog offers a \"clear context\" option. Defaults to false.",
|
|
2374
|
+
"type": "boolean"
|
|
2375
|
+
},
|
|
2376
|
+
"agent": {
|
|
2377
|
+
"description": "Name of an agent (built-in or custom) to use for the main thread. Applies the agent's system prompt, tool restrictions, and model.",
|
|
2378
|
+
"type": "string"
|
|
2379
|
+
},
|
|
2380
|
+
"companyAnnouncements": {
|
|
2381
|
+
"description": "Company announcements to display at startup (one will be randomly selected if multiple are provided)",
|
|
2382
|
+
"type": "array",
|
|
2383
|
+
"items": {
|
|
2384
|
+
"type": "string"
|
|
2385
|
+
}
|
|
2386
|
+
},
|
|
2387
|
+
"pluginConfigs": {
|
|
2388
|
+
"description": "Per-plugin configuration including MCP server user configs, keyed by plugin ID (plugin@marketplace format)",
|
|
2389
|
+
"type": "object",
|
|
2390
|
+
"propertyNames": {
|
|
2391
|
+
"type": "string"
|
|
2392
|
+
},
|
|
2393
|
+
"additionalProperties": {
|
|
2394
|
+
"type": "object",
|
|
2395
|
+
"properties": {
|
|
2396
|
+
"mcpServers": {
|
|
2397
|
+
"description": "User configuration values for MCP servers keyed by server name",
|
|
2398
|
+
"type": "object",
|
|
2399
|
+
"propertyNames": {
|
|
2400
|
+
"type": "string"
|
|
2401
|
+
},
|
|
2402
|
+
"additionalProperties": {
|
|
2403
|
+
"type": "object",
|
|
2404
|
+
"propertyNames": {
|
|
2405
|
+
"type": "string"
|
|
2406
|
+
},
|
|
2407
|
+
"additionalProperties": {
|
|
2408
|
+
"anyOf": [
|
|
2409
|
+
{
|
|
2410
|
+
"type": "string"
|
|
2411
|
+
},
|
|
2412
|
+
{
|
|
2413
|
+
"type": "number"
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"type": "boolean"
|
|
2417
|
+
},
|
|
2418
|
+
{
|
|
2419
|
+
"type": "array",
|
|
2420
|
+
"items": {
|
|
2421
|
+
"type": "string"
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2424
|
+
]
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
},
|
|
2428
|
+
"options": {
|
|
2429
|
+
"description": "Non-sensitive option values from plugin manifest userConfig, keyed by option name. Sensitive values go to secure storage instead.",
|
|
2430
|
+
"type": "object",
|
|
2431
|
+
"propertyNames": {
|
|
2432
|
+
"type": "string"
|
|
2433
|
+
},
|
|
2434
|
+
"additionalProperties": {
|
|
2435
|
+
"anyOf": [
|
|
2436
|
+
{
|
|
2437
|
+
"type": "string"
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
"type": "number"
|
|
2441
|
+
},
|
|
2442
|
+
{
|
|
2443
|
+
"type": "boolean"
|
|
2444
|
+
},
|
|
2445
|
+
{
|
|
2446
|
+
"type": "array",
|
|
2447
|
+
"items": {
|
|
2448
|
+
"type": "string"
|
|
2449
|
+
}
|
|
2450
|
+
}
|
|
2451
|
+
]
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
},
|
|
2455
|
+
"additionalProperties": false
|
|
2456
|
+
}
|
|
2457
|
+
},
|
|
2458
|
+
"remote": {
|
|
2459
|
+
"description": "Remote session configuration",
|
|
2460
|
+
"type": "object",
|
|
2461
|
+
"properties": {
|
|
2462
|
+
"defaultEnvironmentId": {
|
|
2463
|
+
"description": "Default environment ID to use for remote sessions",
|
|
2464
|
+
"type": "string"
|
|
2465
|
+
}
|
|
2466
|
+
},
|
|
2467
|
+
"additionalProperties": false
|
|
2468
|
+
},
|
|
2469
|
+
"autoUpdatesChannel": {
|
|
2470
|
+
"description": "Release channel for auto-updates (latest or stable)",
|
|
2471
|
+
"type": "string",
|
|
2472
|
+
"enum": [
|
|
2473
|
+
"latest",
|
|
2474
|
+
"stable"
|
|
2475
|
+
]
|
|
2476
|
+
},
|
|
2477
|
+
"minimumVersion": {
|
|
2478
|
+
"description": "Minimum version to stay on - prevents downgrades when switching to stable channel",
|
|
2479
|
+
"type": "string"
|
|
2480
|
+
},
|
|
2481
|
+
"plansDirectory": {
|
|
2482
|
+
"description": "Custom directory for plan files, relative to project root. If not set, defaults to ~/.openclaude/plans/",
|
|
2483
|
+
"type": "string"
|
|
2484
|
+
},
|
|
2485
|
+
"channelsEnabled": {
|
|
2486
|
+
"description": "Teams/Enterprise opt-in for channel notifications (MCP servers with the claude/channel capability pushing inbound messages). Default off. Set true to allow; users then select servers via --channels.",
|
|
2487
|
+
"type": "boolean"
|
|
2488
|
+
},
|
|
2489
|
+
"allowedChannelPlugins": {
|
|
2490
|
+
"description": "Teams/Enterprise allowlist of channel plugins. When set, replaces the default Anthropic allowlist — admins decide which plugins may push inbound messages. Undefined falls back to the default. Requires channelsEnabled: true.",
|
|
2491
|
+
"type": "array",
|
|
2492
|
+
"items": {
|
|
2493
|
+
"type": "object",
|
|
2494
|
+
"properties": {
|
|
2495
|
+
"marketplace": {
|
|
2496
|
+
"type": "string"
|
|
2497
|
+
},
|
|
2498
|
+
"plugin": {
|
|
2499
|
+
"type": "string"
|
|
2500
|
+
}
|
|
2501
|
+
},
|
|
2502
|
+
"required": [
|
|
2503
|
+
"marketplace",
|
|
2504
|
+
"plugin"
|
|
2505
|
+
],
|
|
2506
|
+
"additionalProperties": false
|
|
2507
|
+
}
|
|
2508
|
+
},
|
|
2509
|
+
"prefersReducedMotion": {
|
|
2510
|
+
"description": "Reduce or disable animations for accessibility (spinner shimmer, flash effects, etc.)",
|
|
2511
|
+
"type": "boolean"
|
|
2512
|
+
},
|
|
2513
|
+
"autoMemoryEnabled": {
|
|
2514
|
+
"description": "Enable auto-memory for this project. When false, Claude will not read from or write to the auto-memory directory. Equivalent to `memory.autoWrite` — see that setting for the governance-focused shape requested in #1326.",
|
|
2515
|
+
"type": "boolean"
|
|
2516
|
+
},
|
|
2517
|
+
"memory": {
|
|
2518
|
+
"description": "Memory governance settings. `autoWrite` controls whether auto-memory is active; `requireApprovalBeforeWrite` forces explicit approval for persistent memory writes.",
|
|
2519
|
+
"type": "object",
|
|
2520
|
+
"properties": {
|
|
2521
|
+
"autoWrite": {
|
|
2522
|
+
"description": "When false, disables auto-memory reads and writes for this project. Discoverable alias for `autoMemoryEnabled`; the two are equivalent and either one can be used to opt out for governance / regulated / client-sensitive repos (issue #1326). When both are set, the more restrictive (false) value wins so a parent-scope opt-out cannot be silently re-enabled by a narrower scope.",
|
|
2523
|
+
"type": "boolean"
|
|
2524
|
+
},
|
|
2525
|
+
"requireApprovalBeforeWrite": {
|
|
2526
|
+
"description": "Persistent auto-memory writes require explicit permission approval by default. Set to false to restore automatic memory writes when auto-memory is enabled.",
|
|
2527
|
+
"type": "boolean"
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
"additionalProperties": false
|
|
2531
|
+
},
|
|
2532
|
+
"git": {
|
|
2533
|
+
"description": "Git governance settings for AI attribution and commit-message policy.",
|
|
2534
|
+
"type": "object",
|
|
2535
|
+
"properties": {
|
|
2536
|
+
"addAICoAuthor": {
|
|
2537
|
+
"description": "When true, opt in to the generated Co-Authored-By trailer for local commits. When false in any settings source, generated commit attribution is blocked.",
|
|
2538
|
+
"type": "boolean"
|
|
2539
|
+
},
|
|
2540
|
+
"addGeneratedWithFooter": {
|
|
2541
|
+
"description": "When true, opt in to the generated OpenClaude footer for PR descriptions. When false in any settings source, generated PR attribution is blocked.",
|
|
2542
|
+
"type": "boolean"
|
|
2543
|
+
},
|
|
2544
|
+
"forbiddenCommitMessagePatterns": {
|
|
2545
|
+
"description": "Literal text patterns that must not appear in git commit messages, such as \"Co-Authored-By:\" or \"Generated with\".",
|
|
2546
|
+
"type": "array",
|
|
2547
|
+
"items": {
|
|
2548
|
+
"type": "string"
|
|
2549
|
+
}
|
|
2550
|
+
}
|
|
2551
|
+
},
|
|
2552
|
+
"additionalProperties": false
|
|
2553
|
+
},
|
|
2554
|
+
"autoMemoryDirectory": {
|
|
2555
|
+
"description": "Custom directory path for auto-memory storage. Supports ~/ prefix for home directory expansion. Ignored if set in projectSettings (checked-in .openclaude/settings.json) for security. When unset, defaults to ~/.openclaude/projects/<sanitized-cwd>/memory/.",
|
|
2556
|
+
"type": "string"
|
|
2557
|
+
},
|
|
2558
|
+
"autoDreamEnabled": {
|
|
2559
|
+
"description": "Enable background memory consolidation (auto-dream). When set, overrides the server-side default.",
|
|
2560
|
+
"type": "boolean"
|
|
2561
|
+
},
|
|
2562
|
+
"showThinkingSummaries": {
|
|
2563
|
+
"description": "Show thinking summaries in the transcript view (ctrl+o). Default: false.",
|
|
2564
|
+
"type": "boolean"
|
|
2565
|
+
},
|
|
2566
|
+
"skipDangerousModePermissionPrompt": {
|
|
2567
|
+
"description": "Whether the user has accepted the bypass permissions mode dialog",
|
|
2568
|
+
"type": "boolean"
|
|
2569
|
+
},
|
|
2570
|
+
"skipFullAccessModePermissionPrompt": {
|
|
2571
|
+
"description": "Whether the user has accepted the full access mode dialog",
|
|
2572
|
+
"type": "boolean"
|
|
2573
|
+
},
|
|
2574
|
+
"disableAutoMode": {
|
|
2575
|
+
"description": "Disable auto mode",
|
|
2576
|
+
"type": "string",
|
|
2577
|
+
"enum": [
|
|
2578
|
+
"disable"
|
|
2579
|
+
]
|
|
2580
|
+
},
|
|
2581
|
+
"sshConfigs": {
|
|
2582
|
+
"description": "SSH connection configurations for remote environments. Typically set in managed settings by enterprise administrators to pre-configure SSH connections for team members.",
|
|
2583
|
+
"type": "array",
|
|
2584
|
+
"items": {
|
|
2585
|
+
"type": "object",
|
|
2586
|
+
"properties": {
|
|
2587
|
+
"id": {
|
|
2588
|
+
"description": "Unique identifier for this SSH config. Used to match configs across settings sources.",
|
|
2589
|
+
"type": "string"
|
|
2590
|
+
},
|
|
2591
|
+
"name": {
|
|
2592
|
+
"description": "Display name for the SSH connection",
|
|
2593
|
+
"type": "string"
|
|
2594
|
+
},
|
|
2595
|
+
"sshHost": {
|
|
2596
|
+
"description": "SSH host in format \"user@hostname\" or \"hostname\", or a host alias from ~/.ssh/config",
|
|
2597
|
+
"type": "string"
|
|
2598
|
+
},
|
|
2599
|
+
"sshPort": {
|
|
2600
|
+
"description": "SSH port (default: 22)",
|
|
2601
|
+
"type": "integer",
|
|
2602
|
+
"minimum": -9007199254740991,
|
|
2603
|
+
"maximum": 9007199254740991
|
|
2604
|
+
},
|
|
2605
|
+
"sshIdentityFile": {
|
|
2606
|
+
"description": "Path to SSH identity file (private key)",
|
|
2607
|
+
"type": "string"
|
|
2608
|
+
},
|
|
2609
|
+
"startDirectory": {
|
|
2610
|
+
"description": "Default working directory on the remote host. Supports tilde expansion (e.g. ~/projects). If not specified, defaults to the remote user home directory. Can be overridden by the [dir] positional argument in `claude ssh <config> [dir]`.",
|
|
2611
|
+
"type": "string"
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2614
|
+
"required": [
|
|
2615
|
+
"id",
|
|
2616
|
+
"name",
|
|
2617
|
+
"sshHost"
|
|
2618
|
+
],
|
|
2619
|
+
"additionalProperties": false
|
|
2620
|
+
}
|
|
2621
|
+
},
|
|
2622
|
+
"claudeMdExcludes": {
|
|
2623
|
+
"description": "Glob patterns or absolute paths of AGENTS.md/CLAUDE.md files to exclude from loading. Patterns are matched against absolute file paths using picomatch. Only applies to User, Project, and Local memory types (Managed/policy files cannot be excluded). Examples: \"/home/user/monorepo/AGENTS.md\", \"**/code/CLAUDE.md\", \"**/some-dir/.claude/rules/**\"",
|
|
2624
|
+
"type": "array",
|
|
2625
|
+
"items": {
|
|
2626
|
+
"type": "string"
|
|
2627
|
+
}
|
|
2628
|
+
},
|
|
2629
|
+
"pluginTrustMessage": {
|
|
2630
|
+
"description": "Custom message to append to the plugin trust warning shown before installation. Only read from policy settings (managed-settings.json / MDM). Useful for enterprise administrators to add organization-specific context (e.g., \"All plugins from our internal marketplace are vetted and approved.\").",
|
|
2631
|
+
"type": "string"
|
|
2632
|
+
}
|
|
2633
|
+
},
|
|
2634
|
+
"additionalProperties": {}
|
|
2635
|
+
}
|