forked from lidge-jun/opencodex
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmanifest.json
More file actions
431 lines (431 loc) · 11.9 KB
/
Copy pathmanifest.json
File metadata and controls
431 lines (431 loc) · 11.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
{
"version": 2,
"sizeBudgetLines": 600,
"generatedPaths": [
"gui/dist"
],
"absentPaths": [
{
"path": "go/",
"reason": "the Go native-runtime experiment is retired; ops/docs-and-release.md documents that no go/ tree is tracked"
}
],
"tiers": [
{
"id": 1,
"name": "Foundation",
"purpose": "What opencodex is, what it owns on disk, and the invariants nothing may break."
},
{
"id": 2,
"name": "Configuration and catalog",
"purpose": "Persisted config, the Codex home it writes into, and the model catalog it publishes."
},
{
"id": 3,
"name": "Data planes and transports",
"purpose": "The wire surfaces a client actually talks to."
},
{
"id": 4,
"name": "Providers and adapters",
"purpose": "Per-vendor contracts and the adapter authority that constructs them."
},
{
"id": 5,
"name": "Surfaces and clients",
"purpose": "The dashboard, the management API, and third-party client config ownership."
},
{
"id": 6,
"name": "Operations and process",
"purpose": "Background service, docs, release, and design discipline."
}
],
"docs": [
{
"path": "overview.md",
"tier": 1,
"title": "Overview",
"scope": "Product boundary, local state ownership, and the non-negotiable invariants index.",
"documents": [
"gui/",
"scripts/",
"src/config.ts",
"src/lib/"
]
},
{
"path": "runtime.md",
"tier": 1,
"title": "Runtime",
"scope": "Entrypoints, process lifecycle, CLI surface, and provider/adapter selection.",
"documents": [
"bin/",
"src/adapters/",
"src/chat/",
"src/claude/",
"src/cli.ts",
"src/cli/",
"src/client/",
"src/codex/",
"src/combos/",
"src/compatibility/",
"src/config.ts",
"src/config/",
"src/generated/",
"src/github/",
"src/grok/",
"src/images/",
"src/index.ts",
"src/lab/",
"src/lib/",
"src/oauth/",
"src/providers/",
"src/reasoning-effort.ts",
"src/remote/",
"src/responses/",
"src/router.ts",
"src/server/",
"src/service.ts",
"src/service/",
"src/stall-timeout.ts",
"src/storage/",
"src/tray/",
"src/types.ts",
"src/update/",
"src/usage/",
"src/vision/",
"src/web-search/"
]
},
{
"path": "config.md",
"tier": 2,
"title": "Config Surface",
"scope": "Persisted config schema, both injection forms, provider validation, and restore.",
"documents": [
"src/cli/",
"src/codex/",
"src/config.ts",
"src/config/",
"src/types.ts"
]
},
{
"path": "codex-home.md",
"tier": 2,
"title": "Codex Home",
"scope": "CODEX_HOME resolution, the files opencodex manages there, and Codex-home diagnostics.",
"documents": [
"src/codex/"
]
},
{
"path": "catalog.md",
"tier": 2,
"title": "Model Catalog",
"scope": "Shared Codex catalog assembly, account namespaces, pool rotation, and effort ladders.",
"documents": [
"src/codex/",
"src/routing/",
"src/server/"
]
},
{
"path": "subagents.md",
"tier": 2,
"title": "Subagents And Multi-Agent Surface",
"scope": "Multi-agent surface mode and subagent roster ordering.",
"documents": [
"src/codex/",
"src/providers/",
"src/server/"
]
},
{
"path": "transports/byte-accounting.md",
"tier": 3,
"title": "Byte Accounting",
"scope": "Request-copy and stream-buffer byte accounting shared by parsing, SSE rewriting, the adapters, and the translator budget.",
"documents": [
"src/adapters/",
"src/lib/",
"src/server/"
]
},
{
"path": "transports/responses.md",
"tier": 3,
"title": "Responses Transport",
"scope": "The Responses HTTP/SSE data plane, combo failover, and streaming commit boundaries.",
"documents": [
"src/adapters/",
"src/lib/",
"src/responses/",
"src/server/"
]
},
{
"path": "transports/streaming-health.md",
"tier": 3,
"title": "Streaming Health And WebSocket",
"scope": "Heartbeat and stall deadlines, plus the opt-in WebSocket transport.",
"documents": [
"src/server/"
]
},
{
"path": "transports/inventory.md",
"tier": 3,
"title": "Transport Inventory",
"scope": "The per-provider transport table and diagnostic outbound safety.",
"documents": [
"src/adapters/",
"src/chat/",
"src/images/",
"src/lib/",
"src/oauth/",
"src/providers/",
"src/server/"
]
},
{
"path": "data-planes/images.md",
"tier": 3,
"title": "Images Data Plane",
"scope": "Standalone image generation and edit relay.",
"documents": [
"src/server/"
]
},
{
"path": "data-planes/search.md",
"tier": 3,
"title": "Search Data Plane",
"scope": "Hosted search relay and exact account selectors.",
"documents": []
},
{
"path": "data-planes/inbound-compat.md",
"tier": 3,
"title": "Inbound Compatibility Surfaces",
"scope": "Chat Completions inbound, Anthropic-shaped clients, and JSON-upstream streaming clients.",
"documents": [
"src/adapters/",
"src/chat/",
"src/server/"
]
},
{
"path": "providers/openai-tiers.md",
"tier": 4,
"title": "OpenAI Provider Account Modes",
"scope": "Pool/Direct account modes, API-key separation, wire identity, and quota evidence.",
"documents": [
"src/codex/",
"src/config.ts"
]
},
{
"path": "providers/cursor.md",
"tier": 4,
"title": "Cursor Provider",
"scope": "Cursor native exec, parameterized models, checkpoints, and active-context usage.",
"documents": [
"src/adapters/"
]
},
{
"path": "providers/google.md",
"tier": 4,
"title": "Google Provider",
"scope": "Gemini thought-text, response parts, thought-signature replay, and adjacency repair.",
"documents": []
},
{
"path": "providers/kiro.md",
"tier": 4,
"title": "Kiro Provider",
"scope": "Kiro parallel-tool hints, Responses text controls, and reasoning round-trip.",
"documents": [
"src/responses/"
]
},
{
"path": "providers/xai-grok.md",
"tier": 4,
"title": "xAI Grok Provider",
"scope": "Grok Build contract parity and hardening.",
"documents": [
"src/oauth/",
"src/providers/",
"src/responses/",
"src/server/"
]
},
{
"path": "providers/chat-compat.md",
"tier": 4,
"title": "Chat Provider Compatibility",
"scope": "Cross-vendor Chat Completions behavior: reasoning, tool results, structured output, parallel tools.",
"documents": [
"src/adapters/",
"src/responses/"
]
},
{
"path": "adapters/registry.md",
"tier": 4,
"title": "Adapter Registry Authority",
"scope": "The single adapter construction authority and contract inheritance.",
"documents": [
"src/adapters/",
"src/server/"
]
},
{
"path": "adapters/compatibility-contracts.md",
"tier": 4,
"title": "Compatibility Contracts",
"scope": "Versioned provider compatibility claims and fixture-evidence boundaries.",
"documents": [
"src/compatibility/"
]
},
{
"path": "adapters/compatibility-lab.md",
"tier": 4,
"title": "Compatibility Lab",
"scope": "Optional Lab evidence, automation, and its core-runtime isolation boundary.",
"documents": [
"src/lab/"
]
},
{
"path": "gui-and-management-api.md",
"tier": 5,
"title": "GUI And Management API",
"scope": "Dashboard serving, authentication boundaries, /api/* ownership, and usage accounting.",
"documents": [
"gui/",
"src/codex/",
"src/lib/",
"src/server/",
"src/usage/",
"src/vision/"
]
},
{
"path": "clients/integrations.md",
"tier": 5,
"title": "Client Integrations",
"scope": "Third-party client config ownership, snapshots, refresh, disable, and restore.",
"documents": [
"src/clients/",
"src/integrations/",
"src/lib/"
]
},
{
"path": "clients/claude-desktop.md",
"tier": 5,
"title": "Claude Desktop Integration",
"scope": "Claude Desktop profile ownership and config-library resolution.",
"documents": [
"src/claude/",
"src/cli/",
"src/client/",
"src/server/"
]
},
{
"path": "ops/service-and-sidecars.md",
"tier": 6,
"title": "Background Service And Sidecars",
"scope": "Service install/repair, platform launchers, tray, and sidecar processes.",
"documents": [
"src/server/"
]
},
{
"path": "ops/docs-and-release.md",
"tier": 6,
"title": "Docs And Release",
"scope": "Docs site, workflow map, branch policy, release flow, and cross-platform CI.",
"documents": [
".github/",
"bin/",
"docs-site/",
"scripts/",
"src/cli.ts",
"src/cli/",
"src/codex/",
"src/lib/",
"src/service.ts"
]
},
{
"path": "design-methodology.md",
"tier": 6,
"title": "Design Methodology For New Surfaces",
"scope": "Stage ordering for new GUI, CLI, and user-facing surfaces.",
"documents": [
"gui/"
]
},
{
"path": "remote-workspace.md",
"tier": 3,
"title": "Remote Workspace",
"scope": "Opt-in workspace identity, executor grants, runtime adapters, management and dashboard integration.",
"documents": [
"src/remote-control/"
]
}
],
"grace": {
"undocumentedSourceAreas": [
{
"path": "src/bridge.ts",
"reason": "no doc names this file; it is the legacy adapter bridge entry and its behavior is described under the adapter registry without a path reference"
},
{
"path": "src/bridge/",
"reason": "no doc names this directory; it holds the leaves moved out of the src/bridge.ts facade and inherits the same adapter-registry description the facade has"
},
{
"path": "src/quota/",
"reason": "no doc names a path here; quota evidence is described in providers/openai-tiers.md in prose only"
},
{
"path": "src/service-manager-probe.ts",
"reason": "no doc names this file; service probing is described in ops/service-and-sidecars.md without a path reference"
},
{
"path": "src/sidecar/",
"reason": "no doc names a path here; ops/service-and-sidecars.md describes sidecar behavior in prose only"
},
{
"path": "src/types/",
"reason": "shared declarations plus the tool-name and wire-pin resolvers, which no doc currently describes"
}
],
"unboundInvariants": [
{
"id": "INV-HOME-01",
"reason": "no test asserts CODEX_HOME precedence over ~/.codex directly; the closest coverage is WSL home discovery"
},
{
"id": "INV-SLUG-01",
"reason": "no test constrains routed slug shape; the ten files that mention provider/model consume slugs rather than enforcing the form"
}
],
"oversizeDocs": [
"gui-and-management-api.md",
"providers/openai-tiers.md",
"transports/responses.md"
],
"staleRefs": []
}
}