@jbkjr/relay 0.0.0-stage → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (296) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSES/Apache-2.0.txt +201 -0
  3. package/LICENSES/README.md +19 -0
  4. package/LICENSES/codex-NOTICE.txt +6 -0
  5. package/README.md +393 -2
  6. package/SECURITY.md +145 -0
  7. package/adapters/briefs/claude.md +43 -0
  8. package/adapters/briefs/codex.md +56 -0
  9. package/adapters/briefs/models.json +33 -0
  10. package/adapters/build.mjs +8 -0
  11. package/adapters/claude/.claude-plugin/marketplace.json +13 -0
  12. package/adapters/claude/relay/.claude-plugin/plugin.json +5 -0
  13. package/adapters/claude/relay/agents/codex.md +21 -0
  14. package/adapters/claude/relay/agents/operator.md +21 -0
  15. package/adapters/claude/relay/skills/ask/SKILL.md +20 -0
  16. package/adapters/claude/relay/skills/chat/SKILL.md +13 -0
  17. package/adapters/claude/relay/skills/delegate/SKILL.md +21 -0
  18. package/adapters/claude/relay/skills/discuss/SKILL.md +19 -0
  19. package/adapters/claude/relay/skills/review/SKILL.md +21 -0
  20. package/adapters/claude/relay/skills/tree/SKILL.md +10 -0
  21. package/adapters/claude/relay/skills/write-for-codex/SKILL.md +78 -0
  22. package/adapters/codex/.agents/plugins/marketplace.json +20 -0
  23. package/adapters/codex/AGENTS.snippet.md +5 -0
  24. package/adapters/codex/relay/.codex-plugin/plugin.json +6 -0
  25. package/adapters/codex/relay/skills/relay-ask/SKILL.md +20 -0
  26. package/adapters/codex/relay/skills/relay-chat/SKILL.md +13 -0
  27. package/adapters/codex/relay/skills/relay-delegate/SKILL.md +21 -0
  28. package/adapters/codex/relay/skills/relay-discuss/SKILL.md +19 -0
  29. package/adapters/codex/relay/skills/relay-review/SKILL.md +21 -0
  30. package/adapters/codex/relay/skills/relay-tree/SKILL.md +10 -0
  31. package/adapters/codex/relay/skills/relay-write-for-claude/SKILL.md +66 -0
  32. package/adapters/generate.mjs +124 -0
  33. package/bin/relay +59 -0
  34. package/codex-pin.json +12 -0
  35. package/dist/backends/acp.js +1424 -0
  36. package/dist/backends/claude.js +890 -0
  37. package/dist/backends/cli-version.js +112 -0
  38. package/dist/backends/codex-app.js +1539 -0
  39. package/dist/backends/codex-daybreak.js +75 -0
  40. package/dist/backends/codex-env.js +656 -0
  41. package/dist/backends/codex-network.js +304 -0
  42. package/dist/backends/codex-pin.js +345 -0
  43. package/dist/backends/codex-shell-policy.js +182 -0
  44. package/dist/backends/codex-stage2.js +998 -0
  45. package/dist/backends/codex-subagents.js +47 -0
  46. package/dist/backends/codex.js +641 -0
  47. package/dist/backends/copilot.js +246 -0
  48. package/dist/backends/env.js +147 -0
  49. package/dist/backends/gemini.js +607 -0
  50. package/dist/backends/grok.js +337 -0
  51. package/dist/backends/index.js +8 -0
  52. package/dist/backends/native-temp.js +187 -0
  53. package/dist/backends/never-admission.js +90 -0
  54. package/dist/backends/run.js +67 -0
  55. package/dist/backends/stream.js +230 -0
  56. package/dist/backends/tool-discovery.js +15 -0
  57. package/dist/backends/types.js +264 -0
  58. package/dist/build-info.json +5 -0
  59. package/dist/cli.js +344 -0
  60. package/dist/confine/bridge.js +113 -0
  61. package/dist/confine/broker-core.js +76 -0
  62. package/dist/confine/broker-http.js +650 -0
  63. package/dist/confine/broker-names.js +9 -0
  64. package/dist/confine/broker.js +258 -0
  65. package/dist/confine/canary.js +380 -0
  66. package/dist/confine/diagnostics.js +122 -0
  67. package/dist/confine/gemini-tools-main.js +8 -0
  68. package/dist/confine/gemini-tools.js +181 -0
  69. package/dist/confine/hardlinks.js +58 -0
  70. package/dist/confine/harness-config.js +16 -0
  71. package/dist/confine/index.js +117 -0
  72. package/dist/confine/leases.js +217 -0
  73. package/dist/confine/paths.js +6 -0
  74. package/dist/confine/peer.js +115 -0
  75. package/dist/confine/port-policy.js +8 -0
  76. package/dist/confine/ports.js +365 -0
  77. package/dist/confine/private-root.js +208 -0
  78. package/dist/confine/probe-stage2.js +501 -0
  79. package/dist/confine/probe.js +1109 -0
  80. package/dist/confine/proxy.js +783 -0
  81. package/dist/confine/sbcheck.js +208 -0
  82. package/dist/confine/seatbelt-never.js +41 -0
  83. package/dist/confine/seatbelt-stage2.js +139 -0
  84. package/dist/confine/seatbelt.js +1129 -0
  85. package/dist/confine/sockets.js +36 -0
  86. package/dist/confine/turn-probe.js +19 -0
  87. package/dist/confine/turn.js +86 -0
  88. package/dist/core/adoption.js +124 -0
  89. package/dist/core/api-keys.js +423 -0
  90. package/dist/core/approvals.js +740 -0
  91. package/dist/core/build-identity.js +248 -0
  92. package/dist/core/caller.js +749 -0
  93. package/dist/core/calls.js +102 -0
  94. package/dist/core/claude-settings.js +1045 -0
  95. package/dist/core/config.js +453 -0
  96. package/dist/core/context.js +186 -0
  97. package/dist/core/db.js +753 -0
  98. package/dist/core/dispatch.js +110 -0
  99. package/dist/core/env-broker.js +505 -0
  100. package/dist/core/env-policy.js +182 -0
  101. package/dist/core/escalation-authority.js +76 -0
  102. package/dist/core/escalation-contract.js +13 -0
  103. package/dist/core/escalation-person-path.js +131 -0
  104. package/dist/core/escalation-policy.js +79 -0
  105. package/dist/core/escalation-runtime.js +135 -0
  106. package/dist/core/escalation-state.js +42 -0
  107. package/dist/core/escalations.js +191 -0
  108. package/dist/core/events.js +235 -0
  109. package/dist/core/executables.js +147 -0
  110. package/dist/core/extensions.js +645 -0
  111. package/dist/core/families.js +204 -0
  112. package/dist/core/git.js +657 -0
  113. package/dist/core/identity.js +113 -0
  114. package/dist/core/liveness.js +68 -0
  115. package/dist/core/mediated-network-provider.js +81 -0
  116. package/dist/core/never-checkpoint.js +76 -0
  117. package/dist/core/never-coverage.js +97 -0
  118. package/dist/core/never-network.js +49 -0
  119. package/dist/core/never-policy.js +302 -0
  120. package/dist/core/never-proxy-policy.js +109 -0
  121. package/dist/core/never-schema.js +61 -0
  122. package/dist/core/never-tools.js +56 -0
  123. package/dist/core/notices.js +48 -0
  124. package/dist/core/ops.js +959 -0
  125. package/dist/core/outcome.js +224 -0
  126. package/dist/core/params.js +32 -0
  127. package/dist/core/presence.js +174 -0
  128. package/dist/core/procs.js +546 -0
  129. package/dist/core/prompts.js +363 -0
  130. package/dist/core/protected-config.js +238 -0
  131. package/dist/core/raw-network.js +192 -0
  132. package/dist/core/redact.js +152 -0
  133. package/dist/core/refusal.js +33 -0
  134. package/dist/core/relay-command.js +310 -0
  135. package/dist/core/reported.js +3 -0
  136. package/dist/core/restart-overlay.js +651 -0
  137. package/dist/core/retention.js +1135 -0
  138. package/dist/core/secrets.js +329 -0
  139. package/dist/core/session-token.js +175 -0
  140. package/dist/core/session.js +744 -0
  141. package/dist/core/shell.js +2 -0
  142. package/dist/core/shipped-pin.js +47 -0
  143. package/dist/core/shown.js +42 -0
  144. package/dist/core/slots.js +67 -0
  145. package/dist/core/stage2-executors.js +453 -0
  146. package/dist/core/stage2-switch.js +5 -0
  147. package/dist/core/steering.js +149 -0
  148. package/dist/core/storage.js +358 -0
  149. package/dist/core/toml.js +175 -0
  150. package/dist/core/views.js +324 -0
  151. package/dist/core/wait.js +114 -0
  152. package/dist/core/wake.js +207 -0
  153. package/dist/core/watch.js +247 -0
  154. package/dist/core/worktree.js +213 -0
  155. package/dist/hosts/claude-desktop.js +274 -0
  156. package/dist/hosts/claude.js +249 -0
  157. package/dist/hosts/codex.js +345 -0
  158. package/dist/hosts/desktop-shared.js +20 -0
  159. package/dist/hosts/index.js +11 -0
  160. package/dist/hosts/types.js +4 -0
  161. package/dist/install/basics.js +18 -0
  162. package/dist/install/claude-init.js +133 -0
  163. package/dist/install/common.js +655 -0
  164. package/dist/install/doctor.js +635 -0
  165. package/dist/install/qualify-codex.js +205 -0
  166. package/dist/install.js +524 -0
  167. package/dist/mcp/elicit.js +209 -0
  168. package/dist/mcp/gateway.js +218 -0
  169. package/dist/mcp/host.js +253 -0
  170. package/dist/mcp/server.js +1124 -0
  171. package/dist/mcp/stdio.js +37 -0
  172. package/dist/modes/discussion.js +393 -0
  173. package/dist/modes/review.js +722 -0
  174. package/dist/native/relay-sbcheck +0 -0
  175. package/dist/targets/briefs.js +86 -0
  176. package/dist/targets/claude.js +94 -0
  177. package/dist/targets/codex.js +66 -0
  178. package/dist/targets/copilot.js +93 -0
  179. package/dist/targets/gemini.js +119 -0
  180. package/dist/targets/grok.js +126 -0
  181. package/dist/targets/index.js +192 -0
  182. package/dist/targets/types.js +18 -0
  183. package/dist/targets/verified.js +35 -0
  184. package/dist/worker.js +113 -0
  185. package/docs/UPGRADING.md +1518 -0
  186. package/docs/pinned-codex.md +333 -0
  187. package/experiments/stage2-redteam/lib/oracles.mjs +214 -0
  188. package/experiments/stage2-redteam/lib/report.mjs +35 -0
  189. package/npm-shrinkwrap.json +1632 -0
  190. package/package.json +82 -4
  191. package/scripts/codex-qualify/codex-pin-store.mjs +353 -0
  192. package/scripts/codex-qualify/codex-qualifier-process.mjs +265 -0
  193. package/scripts/codex-qualify/codex-qualifier.example.json +5 -0
  194. package/scripts/codex-qualify/codex-qualifier.mjs +281 -0
  195. package/scripts/codex-qualify/codex-shipped-pin.mjs +158 -0
  196. package/scripts/codex-qualify/codex-stage2-pin.mjs +48 -0
  197. package/scripts/codex-qualify/codex-stage2.mjs +2381 -0
  198. package/scripts/codex-qualify/install-codex-qualifier.mjs +98 -0
  199. package/scripts/codex-qualify/main-module.mjs +14 -0
  200. package/scripts/codex-qualify/relay-codex-qualifier.plist +37 -0
  201. package/scripts/codex-qualify/scratch-env.mjs +31 -0
  202. package/scripts/codex-qualify/session.mjs +96 -0
  203. package/scripts/codex-qualify/stage2-escalation-cases.mjs +125 -0
  204. package/test/codex-permissions.test.ts +875 -0
  205. package/test/fixtures/boundary-probes.mjs +17 -0
  206. package/test/fixtures/denial-stream-host.mjs +7 -0
  207. package/test/fixtures/families.json +246 -0
  208. package/test/fixtures/install-snapshots/claude-desktop-foreign.txt +158 -0
  209. package/test/fixtures/install-snapshots/claude-desktop-fresh.txt +101 -0
  210. package/test/fixtures/install-snapshots/claude-desktop-installed.txt +161 -0
  211. package/test/fixtures/install-snapshots/claude-foreign.txt +133 -0
  212. package/test/fixtures/install-snapshots/claude-fresh.txt +77 -0
  213. package/test/fixtures/install-snapshots/claude-installed.txt +133 -0
  214. package/test/fixtures/install-snapshots/codex-foreign.txt +159 -0
  215. package/test/fixtures/install-snapshots/codex-fresh.txt +107 -0
  216. package/test/fixtures/install-snapshots/codex-installed.txt +161 -0
  217. package/test/fixtures/link-parent.mjs +6 -0
  218. package/test/fixtures/mediated-command.cjs +72 -0
  219. package/test/fixtures/native-skill-isolation.json +280 -0
  220. package/test/fixtures/pinned-codex-app-server.mjs +25 -0
  221. package/test/fixtures/qualified-ext-adapters.mjs +36 -0
  222. package/test/fixtures/refusals/README.md +52 -0
  223. package/test/fixtures/refusals/claude-source-result.json +7 -0
  224. package/test/fixtures/refusals/openai-app-capacity.json +24 -0
  225. package/test/fixtures/refusals/openai-app-cyberPolicy.json +24 -0
  226. package/test/fixtures/refusals/openai-gpt-6-astra-max.json +12 -0
  227. package/test/fixtures/refusals/openai-gpt-6.1-sol-xhigh.json +12 -0
  228. package/test/fixtures/refusals/openai-review-capacity.json +24 -0
  229. package/test/fixtures/relay-0.2.0.sql +57 -0
  230. package/test/fixtures/relay-0.9.1.gen.mjs +212 -0
  231. package/test/fixtures/relay-0.9.1.sql +340 -0
  232. package/test/fixtures/slow-boundary-probes.mjs +37 -0
  233. package/test/fixtures/stable-surfaces/config.json +1122 -0
  234. package/test/fixtures/stable-surfaces/escalation.json +128 -0
  235. package/test/fixtures/stable-surfaces/events.json +37 -0
  236. package/test/fixtures/stable-surfaces/gemini-native-resume.json +4 -0
  237. package/test/fixtures/stable-surfaces/inbox.jsonl +2 -0
  238. package/test/fixtures/stable-surfaces/notice.txt +1 -0
  239. package/test/fixtures/stable-surfaces/refusal-item.json +28 -0
  240. package/test/fixtures/stable-surfaces/refusal-review.json +23 -0
  241. package/test/fixtures/stable-surfaces/registry.json +49 -0
  242. package/test/fixtures/stable-surfaces/tools-desktop.json +575 -0
  243. package/test/fixtures/stable-surfaces/tools.json +716 -0
  244. package/test/fixtures/stable-surfaces/usage.txt +46 -0
  245. package/test/fixtures/stage2-acp-native.mjs +138 -0
  246. package/test/fixtures/stage2-app-server.mjs +23 -0
  247. package/test/fixtures/stage2-catalog.json +91 -0
  248. package/test/fixtures/stage2-hostile-web.mjs +35 -0
  249. package/test/fixtures/stage2-native-network.mjs +62 -0
  250. package/test/fixtures/stage2-worker.ts +87 -0
  251. package/test/fixtures/status-views/expected.json +7825 -0
  252. package/test/fixtures/status-views/registries.json +1 -0
  253. package/test/fixtures/steering.json +209 -0
  254. package/test/helpers.ts +740 -0
  255. package/test/host-env.ts +7 -0
  256. package/test/keychain-decoy.ts +197 -0
  257. package/test/live-scope.ts +44 -0
  258. package/test/mediated-network.test.ts +192 -0
  259. package/test/mediated-proxy.test.ts +264 -0
  260. package/test/native-temp-alias.ts +10 -0
  261. package/test/never-policy.test.ts +629 -0
  262. package/test/never-tools.test.ts +136 -0
  263. package/test/process-home.ts +18 -0
  264. package/test/proxy.test.ts +531 -0
  265. package/test/restart-overlay-live.test.ts +85 -0
  266. package/test/restart-overlay-profile.test.ts +66 -0
  267. package/test/restart-overlay.test.ts +416 -0
  268. package/test/stable-surfaces.test.ts +249 -0
  269. package/test/stage2-escalation-live.test.ts +544 -0
  270. package/test/stage2-escalation-qualification.test.ts +170 -0
  271. package/test/stage2-escalation.test.ts +747 -0
  272. package/test/stage2-executor.test.ts +849 -0
  273. package/test/stage2-grant.test.ts +603 -0
  274. package/test/stage2-native-live.test.ts +647 -0
  275. package/test/stage2-network-decisions.test.ts +70 -0
  276. package/test/stage2-probe.test.ts +845 -0
  277. package/test/stage2-standing-live.test.ts +203 -0
  278. package/test/stubs/broker-host.mjs +59 -0
  279. package/test/stubs/broker-peer.mjs +20 -0
  280. package/test/stubs/confined-harness.mjs +91 -0
  281. package/test/stubs/ext-broken-server.mjs +2 -0
  282. package/test/stubs/ext-odd-server.mjs +21 -0
  283. package/test/stubs/ext-server.mjs +31 -0
  284. package/test/stubs/fake-host-cli.mjs +218 -0
  285. package/test/stubs/procargs.mjs +30 -0
  286. package/test/stubs/stub-acp +4 -0
  287. package/test/stubs/stub-agent.mjs +322 -0
  288. package/test/stubs/stub-claude +4 -0
  289. package/test/stubs/stub-codex +4 -0
  290. package/test/stubs/targets/acp.mjs +307 -0
  291. package/test/stubs/targets/claude.mjs +149 -0
  292. package/test/stubs/targets/codex.mjs +479 -0
  293. package/test/stubs/targets/gemini.mjs +604 -0
  294. package/test/temp-root.ts +11 -0
  295. package/test/wp4-adapters.test.ts +353 -0
  296. package/test/wp4-interlock.test.ts +136 -0
@@ -0,0 +1,1122 @@
1
+ {
2
+ "type": "object",
3
+ "properties": {
4
+ "never": {
5
+ "type": "object",
6
+ "properties": {
7
+ "paths": {
8
+ "default": [],
9
+ "type": "array",
10
+ "items": {
11
+ "type": "object",
12
+ "properties": {
13
+ "path": {
14
+ "type": "string"
15
+ },
16
+ "access": {
17
+ "default": "all",
18
+ "type": "string",
19
+ "enum": [
20
+ "all",
21
+ "write"
22
+ ]
23
+ }
24
+ },
25
+ "required": [
26
+ "path"
27
+ ],
28
+ "additionalProperties": false
29
+ }
30
+ },
31
+ "ports": {
32
+ "default": [],
33
+ "type": "array",
34
+ "items": {
35
+ "type": "object",
36
+ "properties": {
37
+ "port": {
38
+ "type": "integer",
39
+ "minimum": 1,
40
+ "maximum": 65535
41
+ },
42
+ "transport": {
43
+ "default": "both",
44
+ "type": "string",
45
+ "enum": [
46
+ "tcp",
47
+ "udp",
48
+ "both"
49
+ ]
50
+ },
51
+ "destinations": {
52
+ "default": "any",
53
+ "type": "string",
54
+ "enum": [
55
+ "this-machine",
56
+ "any"
57
+ ]
58
+ }
59
+ },
60
+ "required": [
61
+ "port"
62
+ ],
63
+ "additionalProperties": false
64
+ }
65
+ },
66
+ "hosts": {
67
+ "default": [],
68
+ "type": "array",
69
+ "items": {
70
+ "type": "string"
71
+ }
72
+ },
73
+ "override_builtin": {
74
+ "default": [],
75
+ "type": "array",
76
+ "items": {
77
+ "type": "object",
78
+ "properties": {
79
+ "id": {
80
+ "type": "string",
81
+ "enum": [
82
+ "credentials.files",
83
+ "credentials.relay-codex-home",
84
+ "credentials.keychain",
85
+ "service.sshd",
86
+ "service.screen-sharing",
87
+ "relay.config",
88
+ "relay.install",
89
+ "relay.authority",
90
+ "service.proton-bridge",
91
+ "service.mcp-gateway"
92
+ ]
93
+ },
94
+ "acknowledge": {
95
+ "type": "string"
96
+ },
97
+ "reason": {
98
+ "type": "string",
99
+ "minLength": 1
100
+ }
101
+ },
102
+ "required": [
103
+ "id",
104
+ "acknowledge",
105
+ "reason"
106
+ ],
107
+ "additionalProperties": false
108
+ }
109
+ }
110
+ },
111
+ "additionalProperties": false
112
+ },
113
+ "max_depth": {
114
+ "type": "integer",
115
+ "minimum": 1,
116
+ "maximum": 10
117
+ },
118
+ "max_concurrent": {
119
+ "type": "integer",
120
+ "minimum": 1,
121
+ "maximum": 64
122
+ },
123
+ "block_s": {
124
+ "type": "number",
125
+ "exclusiveMinimum": 0
126
+ },
127
+ "job_timeout_s": {
128
+ "anyOf": [
129
+ {
130
+ "type": "number",
131
+ "exclusiveMinimum": 0
132
+ },
133
+ {
134
+ "type": "null"
135
+ }
136
+ ]
137
+ },
138
+ "turn_timeout_s": {
139
+ "anyOf": [
140
+ {
141
+ "type": "number",
142
+ "exclusiveMinimum": 0
143
+ },
144
+ {
145
+ "type": "null"
146
+ }
147
+ ]
148
+ },
149
+ "cancel_grace_ms": {
150
+ "type": "number",
151
+ "minimum": 0
152
+ },
153
+ "child_mcp": {
154
+ "type": "string",
155
+ "enum": [
156
+ "relay-only",
157
+ "inherit"
158
+ ]
159
+ },
160
+ "child_hooks": {
161
+ "type": "boolean"
162
+ },
163
+ "child_network": {
164
+ "type": "boolean"
165
+ },
166
+ "child_git": {
167
+ "type": "string",
168
+ "enum": [
169
+ "relay",
170
+ "native"
171
+ ]
172
+ },
173
+ "allow_dangerous": {
174
+ "type": "boolean"
175
+ },
176
+ "escalation": {
177
+ "anyOf": [
178
+ {
179
+ "type": "boolean"
180
+ },
181
+ {
182
+ "type": "object",
183
+ "properties": {
184
+ "enabled": {
185
+ "type": "boolean"
186
+ },
187
+ "port0_authority": {
188
+ "type": "string",
189
+ "enum": [
190
+ "supervisor",
191
+ "person"
192
+ ]
193
+ }
194
+ },
195
+ "additionalProperties": false
196
+ }
197
+ ]
198
+ },
199
+ "approval_timeout_s": {
200
+ "type": "number",
201
+ "exclusiveMinimum": 0
202
+ },
203
+ "desktop_notifications": {
204
+ "type": "boolean"
205
+ },
206
+ "notify": {
207
+ "type": "boolean"
208
+ },
209
+ "ask_user": {
210
+ "type": "string",
211
+ "enum": [
212
+ "auto",
213
+ "always",
214
+ "never"
215
+ ]
216
+ },
217
+ "child_web": {
218
+ "type": "string",
219
+ "enum": [
220
+ "inherit",
221
+ "ask"
222
+ ]
223
+ },
224
+ "codex_backend": {
225
+ "type": "string",
226
+ "enum": [
227
+ "app-server",
228
+ "exec"
229
+ ]
230
+ },
231
+ "allow_temp_home": {
232
+ "type": "boolean"
233
+ },
234
+ "child_settings": {
235
+ "type": "string",
236
+ "enum": [
237
+ "isolated",
238
+ "inherit"
239
+ ]
240
+ },
241
+ "child_auth": {
242
+ "type": "string",
243
+ "enum": [
244
+ "login",
245
+ "any"
246
+ ]
247
+ },
248
+ "child_env": {
249
+ "type": "object",
250
+ "properties": {
251
+ "policy": {
252
+ "type": "string",
253
+ "enum": [
254
+ "allowlist",
255
+ "legacy"
256
+ ]
257
+ },
258
+ "pass": {
259
+ "type": "array",
260
+ "items": {
261
+ "type": "string",
262
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
263
+ }
264
+ },
265
+ "drop": {
266
+ "type": "array",
267
+ "items": {
268
+ "type": "string",
269
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
270
+ }
271
+ },
272
+ "request": {
273
+ "type": "array",
274
+ "items": {
275
+ "type": "string",
276
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
277
+ }
278
+ }
279
+ },
280
+ "additionalProperties": false
281
+ },
282
+ "trust_git_filters": {
283
+ "type": "boolean"
284
+ },
285
+ "claude_managed_settings": {
286
+ "type": "string",
287
+ "enum": [
288
+ "refuse",
289
+ "accept"
290
+ ]
291
+ },
292
+ "claude_settings_env": {
293
+ "type": "string",
294
+ "enum": [
295
+ "refuse",
296
+ "accept"
297
+ ]
298
+ },
299
+ "codex_endpoint_override": {
300
+ "type": "string",
301
+ "enum": [
302
+ "refuse",
303
+ "accept"
304
+ ]
305
+ },
306
+ "allow_untested": {
307
+ "type": "boolean"
308
+ },
309
+ "same_family": {
310
+ "type": "string",
311
+ "enum": [
312
+ "refuse",
313
+ "allow"
314
+ ]
315
+ },
316
+ "keep_records_days": {
317
+ "anyOf": [
318
+ {
319
+ "type": "number",
320
+ "exclusiveMinimum": 0
321
+ },
322
+ {
323
+ "type": "null"
324
+ }
325
+ ]
326
+ },
327
+ "log_max_mb": {
328
+ "anyOf": [
329
+ {
330
+ "type": "number",
331
+ "exclusiveMinimum": 0
332
+ },
333
+ {
334
+ "type": "null"
335
+ }
336
+ ]
337
+ },
338
+ "default_model": {
339
+ "type": "object",
340
+ "properties": {
341
+ "claude": {
342
+ "type": "string",
343
+ "minLength": 1
344
+ },
345
+ "codex": {
346
+ "type": "string",
347
+ "minLength": 1
348
+ },
349
+ "copilot": {
350
+ "type": "string",
351
+ "minLength": 1
352
+ },
353
+ "gemini": {
354
+ "type": "string",
355
+ "minLength": 1
356
+ },
357
+ "grok": {
358
+ "type": "string",
359
+ "minLength": 1
360
+ }
361
+ },
362
+ "additionalProperties": false
363
+ },
364
+ "default_effort": {
365
+ "type": "object",
366
+ "properties": {
367
+ "claude": {
368
+ "type": "string",
369
+ "minLength": 1
370
+ },
371
+ "codex": {
372
+ "type": "string",
373
+ "minLength": 1
374
+ },
375
+ "copilot": {
376
+ "type": "string",
377
+ "minLength": 1
378
+ },
379
+ "gemini": {
380
+ "type": "string",
381
+ "minLength": 1
382
+ },
383
+ "grok": {
384
+ "type": "string",
385
+ "minLength": 1
386
+ }
387
+ },
388
+ "additionalProperties": false
389
+ },
390
+ "bin": {
391
+ "type": "object",
392
+ "properties": {
393
+ "claude": {
394
+ "type": "string",
395
+ "minLength": 1
396
+ },
397
+ "codex": {
398
+ "type": "string",
399
+ "minLength": 1
400
+ },
401
+ "copilot": {
402
+ "type": "string",
403
+ "minLength": 1
404
+ },
405
+ "gemini": {
406
+ "type": "string",
407
+ "minLength": 1
408
+ },
409
+ "grok": {
410
+ "type": "string",
411
+ "minLength": 1
412
+ }
413
+ },
414
+ "additionalProperties": false
415
+ },
416
+ "targets": {
417
+ "type": "object",
418
+ "properties": {
419
+ "claude": {
420
+ "type": "object",
421
+ "properties": {
422
+ "enabled": {
423
+ "type": "boolean"
424
+ },
425
+ "bin": {
426
+ "type": "string",
427
+ "minLength": 1
428
+ },
429
+ "default_model": {
430
+ "type": "string",
431
+ "minLength": 1
432
+ },
433
+ "default_effort": {
434
+ "type": "string",
435
+ "minLength": 1
436
+ },
437
+ "speed": {
438
+ "type": "string",
439
+ "enum": [
440
+ "standard",
441
+ "fast",
442
+ "ultrafast"
443
+ ]
444
+ },
445
+ "child_auth": {
446
+ "type": "string",
447
+ "enum": [
448
+ "login",
449
+ "any"
450
+ ]
451
+ },
452
+ "child_env": {
453
+ "type": "object",
454
+ "properties": {
455
+ "policy": {
456
+ "type": "string",
457
+ "enum": [
458
+ "allowlist",
459
+ "legacy"
460
+ ]
461
+ },
462
+ "pass": {
463
+ "type": "array",
464
+ "items": {
465
+ "type": "string",
466
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
467
+ }
468
+ },
469
+ "drop": {
470
+ "type": "array",
471
+ "items": {
472
+ "type": "string",
473
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
474
+ }
475
+ },
476
+ "request": {
477
+ "type": "array",
478
+ "items": {
479
+ "type": "string",
480
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
481
+ }
482
+ }
483
+ },
484
+ "additionalProperties": false
485
+ },
486
+ "experimental": {
487
+ "type": "boolean"
488
+ },
489
+ "skills": {
490
+ "anyOf": [
491
+ {
492
+ "type": "string",
493
+ "enum": [
494
+ "none",
495
+ "user"
496
+ ]
497
+ },
498
+ {
499
+ "minItems": 1,
500
+ "type": "array",
501
+ "items": {
502
+ "type": "string"
503
+ }
504
+ }
505
+ ]
506
+ },
507
+ "mcp_servers": {
508
+ "type": "array",
509
+ "items": {
510
+ "anyOf": [
511
+ {
512
+ "type": "string",
513
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
514
+ },
515
+ {
516
+ "type": "object",
517
+ "properties": {
518
+ "name": {
519
+ "type": "string",
520
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
521
+ },
522
+ "allow_tools": {
523
+ "type": "array",
524
+ "items": {
525
+ "type": "string",
526
+ "minLength": 1,
527
+ "maxLength": 64
528
+ }
529
+ }
530
+ },
531
+ "required": [
532
+ "name"
533
+ ],
534
+ "additionalProperties": false
535
+ }
536
+ ]
537
+ }
538
+ }
539
+ },
540
+ "additionalProperties": false
541
+ },
542
+ "codex": {
543
+ "type": "object",
544
+ "properties": {
545
+ "enabled": {
546
+ "type": "boolean"
547
+ },
548
+ "bin": {
549
+ "type": "string",
550
+ "minLength": 1
551
+ },
552
+ "default_model": {
553
+ "type": "string",
554
+ "minLength": 1
555
+ },
556
+ "default_effort": {
557
+ "type": "string",
558
+ "minLength": 1
559
+ },
560
+ "speed": {
561
+ "type": "string",
562
+ "enum": [
563
+ "standard",
564
+ "fast",
565
+ "ultrafast"
566
+ ]
567
+ },
568
+ "child_auth": {
569
+ "type": "string",
570
+ "enum": [
571
+ "login",
572
+ "any"
573
+ ]
574
+ },
575
+ "child_env": {
576
+ "type": "object",
577
+ "properties": {
578
+ "policy": {
579
+ "type": "string",
580
+ "enum": [
581
+ "allowlist",
582
+ "legacy"
583
+ ]
584
+ },
585
+ "pass": {
586
+ "type": "array",
587
+ "items": {
588
+ "type": "string",
589
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
590
+ }
591
+ },
592
+ "drop": {
593
+ "type": "array",
594
+ "items": {
595
+ "type": "string",
596
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
597
+ }
598
+ },
599
+ "request": {
600
+ "type": "array",
601
+ "items": {
602
+ "type": "string",
603
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
604
+ }
605
+ }
606
+ },
607
+ "additionalProperties": false
608
+ },
609
+ "experimental": {
610
+ "type": "boolean"
611
+ },
612
+ "skills": {
613
+ "anyOf": [
614
+ {
615
+ "type": "string",
616
+ "enum": [
617
+ "none",
618
+ "user"
619
+ ]
620
+ },
621
+ {
622
+ "minItems": 1,
623
+ "type": "array",
624
+ "items": {
625
+ "type": "string"
626
+ }
627
+ }
628
+ ]
629
+ },
630
+ "mcp_servers": {
631
+ "type": "array",
632
+ "items": {
633
+ "anyOf": [
634
+ {
635
+ "type": "string",
636
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
637
+ },
638
+ {
639
+ "type": "object",
640
+ "properties": {
641
+ "name": {
642
+ "type": "string",
643
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
644
+ },
645
+ "allow_tools": {
646
+ "type": "array",
647
+ "items": {
648
+ "type": "string",
649
+ "minLength": 1,
650
+ "maxLength": 64
651
+ }
652
+ }
653
+ },
654
+ "required": [
655
+ "name"
656
+ ],
657
+ "additionalProperties": false
658
+ }
659
+ ]
660
+ }
661
+ },
662
+ "daybreak": {
663
+ "type": "boolean"
664
+ },
665
+ "stage2": {
666
+ "type": "boolean"
667
+ },
668
+ "home": {
669
+ "type": "string",
670
+ "minLength": 1
671
+ },
672
+ "pin_store": {
673
+ "type": "string",
674
+ "minLength": 1
675
+ },
676
+ "pinned": {
677
+ "type": "boolean"
678
+ }
679
+ },
680
+ "additionalProperties": false
681
+ },
682
+ "copilot": {
683
+ "type": "object",
684
+ "properties": {
685
+ "enabled": {
686
+ "type": "boolean"
687
+ },
688
+ "bin": {
689
+ "type": "string",
690
+ "minLength": 1
691
+ },
692
+ "default_model": {
693
+ "type": "string",
694
+ "minLength": 1
695
+ },
696
+ "default_effort": {
697
+ "type": "string",
698
+ "minLength": 1
699
+ },
700
+ "speed": {
701
+ "type": "string",
702
+ "enum": [
703
+ "standard",
704
+ "fast",
705
+ "ultrafast"
706
+ ]
707
+ },
708
+ "child_auth": {
709
+ "type": "string",
710
+ "enum": [
711
+ "login",
712
+ "any"
713
+ ]
714
+ },
715
+ "child_env": {
716
+ "type": "object",
717
+ "properties": {
718
+ "policy": {
719
+ "type": "string",
720
+ "enum": [
721
+ "allowlist",
722
+ "legacy"
723
+ ]
724
+ },
725
+ "pass": {
726
+ "type": "array",
727
+ "items": {
728
+ "type": "string",
729
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
730
+ }
731
+ },
732
+ "drop": {
733
+ "type": "array",
734
+ "items": {
735
+ "type": "string",
736
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
737
+ }
738
+ },
739
+ "request": {
740
+ "type": "array",
741
+ "items": {
742
+ "type": "string",
743
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
744
+ }
745
+ }
746
+ },
747
+ "additionalProperties": false
748
+ },
749
+ "experimental": {
750
+ "type": "boolean"
751
+ },
752
+ "skills": {
753
+ "anyOf": [
754
+ {
755
+ "type": "string",
756
+ "enum": [
757
+ "none",
758
+ "user"
759
+ ]
760
+ },
761
+ {
762
+ "minItems": 1,
763
+ "type": "array",
764
+ "items": {
765
+ "type": "string"
766
+ }
767
+ }
768
+ ]
769
+ },
770
+ "mcp_servers": {
771
+ "type": "array",
772
+ "items": {
773
+ "anyOf": [
774
+ {
775
+ "type": "string",
776
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
777
+ },
778
+ {
779
+ "type": "object",
780
+ "properties": {
781
+ "name": {
782
+ "type": "string",
783
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
784
+ },
785
+ "allow_tools": {
786
+ "type": "array",
787
+ "items": {
788
+ "type": "string",
789
+ "minLength": 1,
790
+ "maxLength": 64
791
+ }
792
+ }
793
+ },
794
+ "required": [
795
+ "name"
796
+ ],
797
+ "additionalProperties": false
798
+ }
799
+ ]
800
+ }
801
+ }
802
+ },
803
+ "additionalProperties": false
804
+ },
805
+ "gemini": {
806
+ "type": "object",
807
+ "properties": {
808
+ "enabled": {
809
+ "type": "boolean"
810
+ },
811
+ "bin": {
812
+ "type": "string",
813
+ "minLength": 1
814
+ },
815
+ "default_model": {
816
+ "type": "string",
817
+ "minLength": 1
818
+ },
819
+ "default_effort": {
820
+ "type": "string",
821
+ "minLength": 1
822
+ },
823
+ "speed": {
824
+ "type": "string",
825
+ "enum": [
826
+ "standard",
827
+ "fast",
828
+ "ultrafast"
829
+ ]
830
+ },
831
+ "child_auth": {
832
+ "type": "string",
833
+ "enum": [
834
+ "login",
835
+ "any"
836
+ ]
837
+ },
838
+ "child_env": {
839
+ "type": "object",
840
+ "properties": {
841
+ "policy": {
842
+ "type": "string",
843
+ "enum": [
844
+ "allowlist",
845
+ "legacy"
846
+ ]
847
+ },
848
+ "pass": {
849
+ "type": "array",
850
+ "items": {
851
+ "type": "string",
852
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
853
+ }
854
+ },
855
+ "drop": {
856
+ "type": "array",
857
+ "items": {
858
+ "type": "string",
859
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
860
+ }
861
+ },
862
+ "request": {
863
+ "type": "array",
864
+ "items": {
865
+ "type": "string",
866
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
867
+ }
868
+ }
869
+ },
870
+ "additionalProperties": false
871
+ },
872
+ "experimental": {
873
+ "type": "boolean"
874
+ },
875
+ "skills": {
876
+ "anyOf": [
877
+ {
878
+ "type": "string",
879
+ "enum": [
880
+ "none",
881
+ "user"
882
+ ]
883
+ },
884
+ {
885
+ "minItems": 1,
886
+ "type": "array",
887
+ "items": {
888
+ "type": "string"
889
+ }
890
+ }
891
+ ]
892
+ },
893
+ "mcp_servers": {
894
+ "type": "array",
895
+ "items": {
896
+ "anyOf": [
897
+ {
898
+ "type": "string",
899
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
900
+ },
901
+ {
902
+ "type": "object",
903
+ "properties": {
904
+ "name": {
905
+ "type": "string",
906
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
907
+ },
908
+ "allow_tools": {
909
+ "type": "array",
910
+ "items": {
911
+ "type": "string",
912
+ "minLength": 1,
913
+ "maxLength": 64
914
+ }
915
+ }
916
+ },
917
+ "required": [
918
+ "name"
919
+ ],
920
+ "additionalProperties": false
921
+ }
922
+ ]
923
+ }
924
+ }
925
+ },
926
+ "additionalProperties": false
927
+ },
928
+ "grok": {
929
+ "type": "object",
930
+ "properties": {
931
+ "enabled": {
932
+ "type": "boolean"
933
+ },
934
+ "bin": {
935
+ "type": "string",
936
+ "minLength": 1
937
+ },
938
+ "default_model": {
939
+ "type": "string",
940
+ "minLength": 1
941
+ },
942
+ "default_effort": {
943
+ "type": "string",
944
+ "minLength": 1
945
+ },
946
+ "speed": {
947
+ "type": "string",
948
+ "enum": [
949
+ "standard",
950
+ "fast",
951
+ "ultrafast"
952
+ ]
953
+ },
954
+ "child_auth": {
955
+ "type": "string",
956
+ "enum": [
957
+ "login",
958
+ "any"
959
+ ]
960
+ },
961
+ "child_env": {
962
+ "type": "object",
963
+ "properties": {
964
+ "policy": {
965
+ "type": "string",
966
+ "enum": [
967
+ "allowlist",
968
+ "legacy"
969
+ ]
970
+ },
971
+ "pass": {
972
+ "type": "array",
973
+ "items": {
974
+ "type": "string",
975
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
976
+ }
977
+ },
978
+ "drop": {
979
+ "type": "array",
980
+ "items": {
981
+ "type": "string",
982
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
983
+ }
984
+ },
985
+ "request": {
986
+ "type": "array",
987
+ "items": {
988
+ "type": "string",
989
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
990
+ }
991
+ }
992
+ },
993
+ "additionalProperties": false
994
+ },
995
+ "experimental": {
996
+ "type": "boolean"
997
+ },
998
+ "skills": {
999
+ "anyOf": [
1000
+ {
1001
+ "type": "string",
1002
+ "enum": [
1003
+ "none",
1004
+ "user"
1005
+ ]
1006
+ },
1007
+ {
1008
+ "minItems": 1,
1009
+ "type": "array",
1010
+ "items": {
1011
+ "type": "string"
1012
+ }
1013
+ }
1014
+ ]
1015
+ },
1016
+ "mcp_servers": {
1017
+ "type": "array",
1018
+ "items": {
1019
+ "anyOf": [
1020
+ {
1021
+ "type": "string",
1022
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
1023
+ },
1024
+ {
1025
+ "type": "object",
1026
+ "properties": {
1027
+ "name": {
1028
+ "type": "string",
1029
+ "pattern": "^(?!.*__)[A-Za-z0-9][A-Za-z0-9_-]{0,31}$"
1030
+ },
1031
+ "allow_tools": {
1032
+ "type": "array",
1033
+ "items": {
1034
+ "type": "string",
1035
+ "minLength": 1,
1036
+ "maxLength": 64
1037
+ }
1038
+ }
1039
+ },
1040
+ "required": [
1041
+ "name"
1042
+ ],
1043
+ "additionalProperties": false
1044
+ }
1045
+ ]
1046
+ }
1047
+ }
1048
+ },
1049
+ "additionalProperties": false
1050
+ }
1051
+ },
1052
+ "additionalProperties": false
1053
+ },
1054
+ "default_target": {
1055
+ "type": "object",
1056
+ "properties": {
1057
+ "claude": {
1058
+ "type": "string",
1059
+ "enum": [
1060
+ "claude",
1061
+ "codex",
1062
+ "copilot",
1063
+ "gemini",
1064
+ "grok"
1065
+ ]
1066
+ },
1067
+ "codex": {
1068
+ "type": "string",
1069
+ "enum": [
1070
+ "claude",
1071
+ "codex",
1072
+ "copilot",
1073
+ "gemini",
1074
+ "grok"
1075
+ ]
1076
+ },
1077
+ "copilot": {
1078
+ "type": "string",
1079
+ "enum": [
1080
+ "claude",
1081
+ "codex",
1082
+ "copilot",
1083
+ "gemini",
1084
+ "grok"
1085
+ ]
1086
+ },
1087
+ "gemini": {
1088
+ "type": "string",
1089
+ "enum": [
1090
+ "claude",
1091
+ "codex",
1092
+ "copilot",
1093
+ "gemini",
1094
+ "grok"
1095
+ ]
1096
+ },
1097
+ "grok": {
1098
+ "type": "string",
1099
+ "enum": [
1100
+ "claude",
1101
+ "codex",
1102
+ "copilot",
1103
+ "gemini",
1104
+ "grok"
1105
+ ]
1106
+ },
1107
+ "unknown": {
1108
+ "type": "string",
1109
+ "enum": [
1110
+ "claude",
1111
+ "codex",
1112
+ "copilot",
1113
+ "gemini",
1114
+ "grok"
1115
+ ]
1116
+ }
1117
+ },
1118
+ "additionalProperties": false
1119
+ }
1120
+ },
1121
+ "additionalProperties": false
1122
+ }