codex-copilot-dx 1.2.33 → 1.3.1

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 (56) hide show
  1. package/README.md +65 -110
  2. package/bin/cli.mjs +38 -102
  3. package/docs/ARCHITECTURE.md +33 -7
  4. package/docs/README.md +10 -76
  5. package/docs/REFERENCE.md +147 -1936
  6. package/package.json +11 -4
  7. package/src/access-settings.mjs +2 -2
  8. package/src/adapter.mjs +6 -1
  9. package/src/auth-credentials.mjs +1 -1
  10. package/src/auto-review-model.mjs +2 -2
  11. package/src/claude-gateway.mjs +4 -1
  12. package/src/cli-animation.mjs +2 -2
  13. package/src/cli-auth.mjs +3 -3
  14. package/src/cli-cache.mjs +2 -2
  15. package/src/cli-command-spec.mjs +260 -58
  16. package/src/cli-image.mjs +2 -2
  17. package/src/cli-limits.mjs +2 -2
  18. package/src/cli-m365.mjs +1 -1
  19. package/src/cli-management.mjs +7 -3
  20. package/src/cli-options.mjs +71 -408
  21. package/src/connection-runtime.mjs +1408 -377
  22. package/src/context-metrics.mjs +63 -0
  23. package/src/copilot-token-session.mjs +1 -1
  24. package/src/dashboard/connections.js +23 -4
  25. package/src/dashboard/console.js +1 -0
  26. package/src/dashboard/context.js +124 -0
  27. package/src/dashboard/flow.js +1 -1
  28. package/src/dashboard/icons.js +6 -2
  29. package/src/dashboard/index.html +12 -0
  30. package/src/dashboard/language.js +23 -0
  31. package/src/dashboard/ui.css +36 -3
  32. package/src/dashboard/ui.js +12 -4
  33. package/src/dashboard-api.mjs +11 -5
  34. package/src/dashboard.mjs +1 -0
  35. package/src/doctor.mjs +4 -4
  36. package/src/image-mcp.mjs +2 -2
  37. package/src/native-prediction-fix.mjs +1 -1
  38. package/src/native-prediction-profile.mjs +1 -1
  39. package/src/native-prediction-windows.mjs +1 -1
  40. package/src/native-prediction.mjs +6 -6
  41. package/src/nightly-update.mjs +2 -2
  42. package/src/optional-routes.mjs +2 -2
  43. package/src/provider-runtime.mjs +1 -1
  44. package/src/providers/m365-accounts.mjs +1 -1
  45. package/src/release-install.mjs +11 -15
  46. package/src/responses-handler.mjs +3 -0
  47. package/src/startup-ui.mjs +15 -11
  48. package/src/stream-performance.mjs +9 -0
  49. package/src/terminal-console.mjs +5 -4
  50. package/src/terminal-state.mjs +1 -1
  51. package/src/usage-store.mjs +2 -1
  52. package/src/usage.mjs +5 -5
  53. package/src/windows-command.mjs +2 -2
  54. package/bin/codex-copilot-dx.mjs +0 -11
  55. package/src/cli-models.mjs +0 -94
  56. package/src/legacy-command-warning.mjs +0 -38
package/README.md CHANGED
@@ -1,128 +1,83 @@
1
- # codex-copilot-dx
1
+ # CCDX
2
2
 
3
- CCDX connects Codex App to GitHub Copilot by default: discovery, adapted model catalogs, Responses streaming, tool calls and conversation history. Eligible Microsoft 365 environments can also use a protocol-isolated Claude gateway on the main listener and manually select M365 as a Codex backup. Default Auto-review: **GPT-6.1 Sol / low**. Image generation is **off by default**. Native predictions and nightly software updates are also **off by default**.
3
+ Use your model services in **Codex App, Claude App and Claude Code** through one local gateway.
4
4
 
5
- ## Install and run
5
+ Connect GitHub Copilot, Microsoft 365 or your own API. Choose which apps can use each source, then select their models. CCDX supports **macOS and Windows**, on Apple Silicon/ARM64 and x64.
6
6
 
7
- For Codex App, use macOS or Windows and a GitHub account with access to the desired Copilot models. With Node.js **22.15+** and npm already available:
7
+ ## Install and start
8
8
 
9
- ```bash
9
+ With Node.js **22.15+** and npm:
10
+
11
+ ```sh
10
12
  npm install -g codex-copilot-dx@latest
11
13
  ccdx
12
14
  ```
13
15
 
14
- No Node or Git? Download [install.sh](https://github.com/DaleXiao/codex-copilot-dx/releases/download/v1.2.33/install.sh) (macOS/Linux) or [install.ps1](https://github.com/DaleXiao/codex-copilot-dx/releases/download/v1.2.33/install.ps1) (Windows), then run `sh install.sh` or `./install.ps1` under your current shell policy. The bootstrap reuses compatible Node/npm or installs verified official Node 24.22.0 privately for CCDX. It adds no Git, compiler or system package manager. It keeps registry/proxy/certificate policy, verifies the Release package and installed runtime, and restores the prior CCDX package if installation fails. Manifest-listed complete packages install their bundled dependencies offline; older source-only releases need the configured registry. See [installation limits and private command paths](docs/REFERENCE.md#install-without-node-or-git).
16
+ Without Node.js, download and run the installer for your system:
17
+
18
+ - macOS: [install.sh](https://github.com/DaleXiao/codex-copilot-dx/releases/download/v1.3.1/install.sh), then `sh install.sh`.
19
+ - Windows: [install.ps1](https://github.com/DaleXiao/codex-copilot-dx/releases/download/v1.3.1/install.ps1), then `./install.ps1` under your current shell policy.
20
+
21
+ The installer reuses a compatible Node.js or installs a private, verified copy. Git and a compiler are not required. Complete platform packages include their dependencies. Company registry, proxy, certificate and shell policies are kept.
22
+
23
+ On Windows, use `npm.cmd` or `ccdx.cmd` if PowerShell blocks npm-generated scripts. See [installation and updates](docs/REFERENCE.md#installation-and-updates).
24
+
25
+ ## Choose sources and models
15
26
 
16
- CCDX reuses a compatible local credential or starts GitHub Device Flow, listens on `127.0.0.1:2026`, configures Codex, and opens the App. Interactive desktop starts also open the local WebUI once; use `ccdx --no-browser` or disable this in WebUI settings. No client binary patch is needed. On Windows, open the App manually unless native prediction setup is enabled. In restricted Windows PowerShell, use `npm.cmd` to install and `ccdx.cmd` for the first launch, or run `ccdx.cmd doctor --fix`. Startup, updates and explicit repair remove only CCDX's exact npm-generated `.ps1` launchers so later calls can use `ccdx`. The npm package adds no install hook or policy change; custom launchers are preserved. npm's own script is untouched. The configured `dummy` API key is a placeholder, not a credential.
27
+ The Web UI opens at [http://127.0.0.1:2026](http://127.0.0.1:2026/). Run `ccdx web` to open it again, including before signing in.
17
28
 
18
- The [local control console](http://127.0.0.1:2026/) separates Overview, Codex/Claude, Model sources, Usage, Requests, Checks & repairs and Settings, with a stable sticky header. Model sources owns API accounts, keys and model capabilities; application pages own visible models and defaults. Settings owns independent web/terminal colors (classic green, Klein blue or Soft pink), plus a WebUI-only Pure white palette with an inverted black night mode, startup and updates. Accounts and model catalogs stay with Model sources; client-specific tools stay with their application. CLI remains English; WebUI supports English/Chinese. Codex shows evidenced memory-model dependencies and warns before closing them; native memory settings remain yours. An interactive terminal replaces ordinary startup checks with one live view: the listener, enabled sources, client setup/activity, usage and scoped notices. Source names start left-aligned below `Enabled sources: N`. Saved credentials do not imply access; configured clients do not imply running Apps. Motion uses observed inference and actual image generation, not MCP discovery traffic. Plain/NO_COLOR/narrow output remains supported; `--verbose` retains request detail.
29
+ 1. **Model sources:** connect an account or API, read its models and choose allowed apps.
30
+ 2. **Codex / Claude:** choose visible models, set a default and save. Preview and synchronize client settings when needed.
31
+ 3. **Overview / Requests:** check configuration, activity and errors.
32
+ 4. **Usage → Context:** inspect reported input, model windows and observed compactions from this run.
19
33
 
20
- The WebUI keeps English monospace text with explicit Chinese sans-serif system-font fallbacks, including Microsoft YaHei on Windows. Requests aligns applications to a shared right edge and models to a shared left edge. It shows live app/source/model flow above existing summaries and finished records; a thin theme-colored ring rotates around its atom while requests are active. Usage offers animated bars or curves; reduced motion stays static. Hidden pages stop scheduled reads; status refreshes about every two seconds and source/settings evidence about every 16 seconds. Catalogs and retained usage load on demand or every 30 minutes while open. Disclosures use down/up chevrons with brief rotation and content transitions; reduced-motion mode remains immediate. Saved model selection and configuration-write results are shown separately; writing does not prove that the App has loaded the change. The UI does not add inference calls. Ready means local service availability, not verified model access. First output uses ms, speed token/s, and partial/unknown usage remains explicit. Images/predictions stay opt-in; their first setup uses CLI. 1.2.18 preserves Codex sign-in and unavailable model selections after saving bindings. See the [control reference](docs/REFERENCE.md#control-console-and-online-settings), [1.2.18 fixes and verification](https://github.com/DaleXiao/codex-copilot-dx/blob/main/docs/RELEASE_1.2.18.md) and [copy inventory](https://github.com/DaleXiao/codex-copilot-dx/blob/main/docs/UX_COPY.md).
34
+ For a custom API, enter its HTTPS address and key, then choose **Save & read models**. Select the models and interfaces it provides. Codex uses Responses; Claude uses Messages. Both share port 2026.
35
+
36
+ Model availability depends on your account and service. Microsoft 365 also requires a supported company environment. Existing account, model and client settings are retained during upgrades. No repeat setup or model selection is needed for an unchanged working configuration.
21
37
 
22
38
  ## Commands
23
39
 
24
- | Command | Purpose |
40
+ | Task | Command |
25
41
  | --- | --- |
26
- | `ccdx` / `ccdx start` | Start/reuse the foreground gateway; keep existing client setup/launch behavior |
27
- | `ccdx status` / `status --details` | Brief interactive state / complete diagnostic view |
28
- | `ccdx web` | Open local management tools |
29
- | `ccdx source list` | List registered sources |
30
- | `ccdx source github status` / `check` / `reauth` | Saved GitHub evidence / online access check / safe sign-in replacement |
31
- | `ccdx source m365 models --refresh` | Explicitly read the online company catalog; no inference |
32
- | `ccdx source add` | Save an API, read models and choose their declared interfaces |
33
- | `ccdx app list` | List client configuration and observed request activity |
34
- | `ccdx app claude-app models --edit` | Choose client models separately from source authorization |
35
- | `ccdx app claude-app sync --preview` | Review the model/configuration plan without writing |
36
- | `ccdx app codex prediction status` | Inspect the optional Codex-only prediction integration |
37
- | `ccdx app codex image setup` | Configure optional Codex images with a private key prompt |
38
- | `ccdx requests --failed --app claude-app` | Inspect retained failures; no full-history promise |
39
- | `ccdx usage` / `usage --scope run` | Legacy all-recorded usage / current service run |
40
- | `ccdx config show --effective` | Separate saved service preferences from effective state |
41
- | `ccdx config reset --preview` | Review default service/terminal preferences; browser appearance stays separate |
42
- | `ccdx doctor` / `doctor --fix` | Local checks / existing bounded owned repairs |
43
- | `ccdx update check` / `update github` | Check without installation / install a verified GitHub release |
44
-
45
- Use `ccdx help app codex prediction` or nearby `--help` for complete options.
46
- New read-only commands support `--format table|plain|json`. New connection writes require the compatible updated service and use the protected loopback API. Finish active work before restarting an older service. `--verbose` and `--show-request-id` keep detailed startup/request output.
47
-
48
- Existing `ccdx auth`, `ccdx reauth`, `ccdx models`, `ccdx source github|m365`, `ccdx m365 switch`, `ccdx prediction`, `ccdx image`, `ccdx enable-image`, `ccdx disable-image`, `ccdx image-status`, `ccdx auto-review-model`, `ccdx animation`, `ccdx cache`, `ccdx limits` and flag aliases remain supported. Legacy `source` switching stays Codex-only; legacy `models` stays a catalog. Non-TTY legacy status output is retained.
49
- See [command groups and compatibility](docs/REFERENCE.md#command-groups-1233).
50
-
51
- ## Add your own API
52
-
53
- Run `ccdx web` without GitHub sign-in. In **Model sources → Add API**, enter the HTTPS address/key, read the catalog, select models and declare their real interfaces. Then open **Codex** or **Claude**, choose visible models across sources, set a default and save. Claude App/Code use Messages; Codex uses Responses, all on port 2026. GitHub-only Codex selections retain native OpenAI mode and readable model names. Token counting is separate from message generation. For manual APIs, an observed count-endpoint 404 is remembered for one minute per model/API-header scope; CCDX returns a clear 404 without inventing a token count. Unknown count capabilities share their first admitted request; a 404 prevents distinct waiting inputs from fanning out. A supported endpoint still counts each distinct input separately. Identical small count requests share bounded work. A request stays on its selected deployment; there is no automatic cross-source retry or model replacement. Reopen clients after configuration changes. Claude App can continue an existing conversation on a different selected, authorized source when complete Messages history is available; unfinished tool turns, unavailable attachments and company-account isolation still apply. Codex and Claude Code retain their existing history rules. Stop management before normal `ccdx` startup for the live terminal.
54
-
55
- Keys use system credential protection or an explicit environment reference; clients receive separate local credentials. Saving reads model metadata automatically, without inference. Startup and the existing model refresh cycle also refresh enabled APIs when the 30-minute cache expires; failed reads retain saved configuration. Selecting no models pauses access; enable a source and select models to resume. Closed sources can be restored on Model sources; closed apps remain reachable for restoration on their app pages. Pinned streams finish on their original source. The version-two graph preserves old single-source visibility and saves a byte-for-byte v1 backup before migration. User and managed client settings remain protected. Refreshing GitHub models also updates Codex candidates without changing saved selections or native sign-in.
56
-
57
- Model lists/details preserve the upstream maker declaration separately from your API source name. Missing maker metadata shows Not provided; model names are never used to guess a maker. Maker and display-name evidence use a rebuildable cache and do not change the strict connection schema or routing identity. Names follow upstream display name, upstream name, then model ID. Claude compatibility aliases remain internal; mixed sources retain their original visible names regardless of the default source. Closing a source previews all selected consumers, including nondefault models. First-time API setup uses **Save & read models** and keeps the model editor open, including after a failed lookup. Model details show upstream capabilities per API, with optional manual overrides collapsed below. Context, input/output limits, reasoning levels, thinking modes, input types, tools and native search are deployment-specific. Structured Anthropic declarations are mapped to Messages; they do not grant the same capabilities to a gateway's other interfaces. Missing and unrecognized metadata are distinguished, without guessing from model names. Manual overrides, including false, take priority. Claude synchronization projects compatible routes, supported host controls and per-model budgets. Unknown or out-of-range windows and unverified client versions are reported as limited; they are not promoted to 1M. Output requests are bounded by declared limits. Compatibility routes do not prove that every model supports every App tool, search or reasoning mode. See the [capability and synchronization limits](docs/REFERENCE.md#model-capabilities-and-claude-synchronization). [1.2.31 changes and verification](https://github.com/DaleXiao/codex-copilot-dx/blob/main/docs/RELEASE_1.2.31.md) cover model display, source impact, error evidence and scoped WebUI improvements. Shared GitHub catalogs and the policy-preserving complete-package update fallback remain included. Existing native Codex sign-in/model protections and the 1.2.27 context-preference fix remain included.
58
-
59
- ## Microsoft 365 access
60
-
61
- Eligible macOS/Windows machines attempt silent Microsoft authorization at startup, without Copilot CLI or a browser login. MDM alone is insufficient: account, tenant, device policy and Loki entitlement must permit access. Optional failure does not block GitHub. Saved bindings stay selected; unresolved company accounts can be chosen under **Model sources → Microsoft 365** or `ccdx m365 account` in the updated running service. Listing is local; changing accounts validates only the selected account, affects M365 in Codex/Claude and requires new conversations. See the reference for identity and history limits. Microsoft 365 uses the fixed `loki.delve.office.com` service origin. Account/origin-bound model discovery is separate from inference; old environment caches are not advertised as current. This does not enable a paused source or change existing application routing.
62
-
63
- In **Model sources → Microsoft 365 → Allowed apps**, choose consuming apps; discovery alone does not configure them all. Existing grants are retained, and changing access preserves other sources. Claude clients use `http://127.0.0.1:2026/anthropic` (or the configured main port), a private local gateway key and a Claude-only catalog. No second Claude listener is opened. Existing unchanged CCDX-owned 2027 addresses migrate automatically; hand-written or managed addresses are preserved and need explicit migration. The optional prediction CONNECT/PAC bridge remains a separate transport.
64
- Existing custom/managed settings are preserved; already-running clients may need a normal restart.
65
- Canonical Claude IDs and advertised effort caps refresh only in unchanged CCDX-owned settings. User and managed choices are preserved; supported App versions can update model knowledge through Anthropic's signed catalog. New protocol semantics may require a client or CCDX update. See the [model reference](docs/REFERENCE.md#claude-gateway-and-client-ownership).
66
- `ccdx m365 off` restores unchanged owned fields; `remove` also clears owned M365 state. With managed client connections, off pauses affected bindings instead of selecting another source; removal retains shared client-ownership records needed by manual APIs.
67
-
68
- Codex stays on GitHub until `ccdx m365 switch`. Select available GPT/review models;
69
- there is no automatic failover or missing-model substitution. Use **Standard** on M365:
70
- Fast is unverified. Tokens, accounts and review choices are isolated; prediction and images remain independent.
71
-
72
- The optional native broker adds a **14.6 MB download**, with no install hook. Linux retains core support without M365.
73
- See the [M365 reference](docs/REFERENCE.md#microsoft-365-provider) for ownership, cache/experimental-feature limits and cleanup.
74
-
75
- ## Compatibility and safety
76
-
77
- - Standard/Fast follow the exact variants advertised by Copilot; CCDX does not
78
- invent Fast availability. Auto-review is separate from the foreground model.
79
- - Model discovery does not prove inference access. If a new model is absent in
80
- Codex, run `ccdx doctor`; fully quit the App (**Command-Q** on macOS) before reopening.
81
- CCDX does not claim it can verify the App's internal model cache externally.
82
- - After a package upgrade, restart the running CCDX adapter. Choosing a model or
83
- effort on a current adapter takes effect on its next Auto-review request. Native prediction ports persist on macOS/Windows; an older random route may need one full App quit. A busy saved port disables only predictions.
84
- - `0.9.28` adds verified local plaintext recovery after connection-owned compaction rejection; see the reference for strict source and safety limits. Request-body bytes, local-history bytes and the model's token window are
85
- different limits. Request-context figures are observed metadata, not exact
86
- live session occupancy. Prompts and images are not retained by that panel.
87
- - `ccdx cache --clean --history` also clears active response history and can
88
- break continuations. Generated images and Codex transcripts are not deleted.
89
- - Optional image setup/maintenance never blocks the primary service. Disabled
90
- users get no CCDX image skill or MCP installation.
91
- - Missing-token discovery includes legacy OpenCode Copilot OAuth and GitHub CLI. Reads are bounded and account-matched; incomplete/network-failed or HTTP-403-blocked discovery does not start another login. The default saved credential is preserved; Copilot 401/403 alone is not proof that it expired. Other apps' credentials stay read-only.
92
- - `doctor --fix` does not start login, enable optional features, change company policy or force-restart Apps. It backs up changed config; missing-token repair can contact GitHub. Partial repairs exit 1. See the reference for exact scope.
93
- - Native predictions are a separate, opt-in compatibility feature. Quit Codex,
94
- run `ccdx prediction on`, then restart CCDX. This adds App-profile certificate
95
- trust and an App-only route for `chatgpt.com` and `ab.chatgpt.com`; HTTPS on those
96
- hosts is decrypted locally, but only prediction configuration is changed.
97
- Other domains and the CCDX model endpoint stay on their existing routes.
98
- No program files or OS trust are changed. Static HTTP/HTTPS/SOCKS5 proxies and bypass rules are retained.
99
- Windows supports company PAC/WPAD; macOS dynamic routing remains unsupported. Windows setup needs the official MSIX App, Windows PowerShell and .NET Framework 4.7.2+—not Git/OpenSSL. See the reference for limits.
100
- Bridge checks allow three same-port recovery attempts per process. The revised PAC adds a loopback retry endpoint after the unchanged primary, preserving company fallback. Quit Codex once to load this route revision; later CCDX upgrades retain it. App prediction failures can remain cached for five minutes, so network recovery is not proof of an immediate suggestion. Only closed, initialized Apps in direct environments receive an owned persistent route; missing routes in running Apps are not hot-attached.
101
- - CCDX adds experimental local history compression only when installed App
102
- runtimes support it and report it off. Existing choices are preserved; an
103
- already-enabled default, unavailable runtime or failed check is skipped.
104
- - Image API redirects must stay on the same HTTPS origin. Returned images must
105
- use public HTTPS URLs; well-known NAT64 mappings follow IPv4 address rules.
106
- - Keep the adapter on loopback. LAN mode is only for trusted networks; do not
107
- expose it to the public internet. The dashboard is not an authentication wall
108
- for the API. Inference rejects browser Origin headers; native clients remain supported. Diagnostic errors may contain sensitive upstream text.
109
-
110
- Open `ccdx web` for source-specific account tools and Checks & repairs without signing in first. It starts a management-only service when needed; stop it before normal app startup. Safe reauth, config preview/backup, local reports, feature pause/resume and matching circle SVG status icons are described in the [account tools reference](docs/REFERENCE.md#account-and-repair-tools). Existing themes, layout and bilingual support are preserved. Startup checks GitHub's latest-release web redirect, not npm or the anonymous REST quota, and suggests `ccdx update github`. Settings → Version & updates shows the running version, release dates and newer releases, with copyable update and macOS/Windows recovery commands. This separate, cached GitHub metadata check never installs; failed checks remain unknown. The separate **Update overnight** switch defaults off and requires a normal CCDX restart after enabling. Its foreground supervisor checks during 00:00–04:00 local time after ten observed idle minutes, selects same-series stable patches at least 24 hours old, stages verified packages and attempts rollback on failure. Ctrl+C stops it; no OS service is installed. Review the displayed risk and [handoff limits](docs/REFERENCE.md#nightly-updates-opt-in) before enabling. See the [reference](docs/REFERENCE.md#version-and-update-information).
111
- Settings → **Save & restore**, immediately after Version & updates, defaults to automatic saving of this page’s preferences. Turn it off to save or discard drafts manually. Restore defaults backs up the saved preferences first and offers Restore backup; it preserves accounts, keys, model/source selections, native sign-in, client connections, image/prediction access, chats and usage. Browser appearance stays browser-local; failed or conflicting saves retain the draft and show the actual result. See the [scope and recovery rules](docs/REFERENCE.md#settings-saving-and-restore).
112
- GitHub updates verify the exact Release without Git. Source packages use the configured npm registry; a confirmed EALLOWREMOTE restores the old package and permits one same-version complete platform package attempt offline. Nightly preparation shares this fallback. A blocked old updater can use the current verified bootstrap once. Lookup errors identify HTTP refusal, timeout, network failure or invalid redirects. For npm `EALLOWREMOTE`, only if policy permits and the update is trusted, use `ccdx update github --allow-remote`: explicit URL-download permission for that installation's whole dependency tree, not a hostname allowlist. Persistent npm settings stay unchanged.
113
- Updates back up the discovered CCDX package and commands, restore them on install/runtime-check failure, and verify the installed version (exact for GitHub). Mismatched npm targets warn without changing PATH/prefix. Manual updates require a separate adapter restart. Full `ccdx doctor` reports this target and readonly credential permissions; it never changes ACLs.
114
- Recent errors separate HTTP and model failures. By default HTTP metadata retains status, source and IDs, not error bodies or prompts; original errors still reach Codex unchanged. Explicit, bounded error-excerpt collection is described in the [reference](docs/REFERENCE.md#http-error-diagnostics).
115
-
116
- See [architecture boundaries](docs/ARCHITECTURE.md) and the [complete reference](https://github.com/DaleXiao/codex-copilot-dx/blob/main/docs/REFERENCE.md) for authentication, configuration, limits, logging, images and compatibility. It is also included as `docs/REFERENCE.md` in the npm package.
117
-
118
- ## Development
119
-
120
- ```bash
121
- npm ci
122
- npm run verify
123
- node scripts/config-startup-replay.mjs
42
+ | Start the gateway | `ccdx` |
43
+ | Open the Web UI | `ccdx web` |
44
+ | Check service and apps | `ccdx status` / `ccdx app list` |
45
+ | Manage sources | `ccdx source list` / `ccdx source add` |
46
+ | Sign in again | `ccdx source github reauth` |
47
+ | Choose client models | `ccdx app codex models --edit` |
48
+ | Preview client setup | `ccdx app claude-app sync --preview` |
49
+ | Inspect failures | `ccdx requests --failed` |
50
+ | Read usage | `ccdx usage` / `ccdx usage --scope run` |
51
+ | Inspect preferences | `ccdx config show --effective` |
52
+ | Check local setup | `ccdx doctor` |
53
+
54
+ Use `ccdx help` or `ccdx <command> --help` for options. The CLI uses English; the Web UI supports English and Chinese.
55
+
56
+ **1.3 uses one command tree.** Old command names and the `codex-copilot-dx` executable have been removed. This changes command entrypoints, not saved accounts, model selections or chats. See the [command reference](docs/REFERENCE.md#commands).
57
+
58
+ ## Optional features
59
+
60
+ Images, native input suggestions and overnight updates are **off by default**. Existing enabled settings are retained.
61
+
62
+ - **Images:** `ccdx app codex image setup`. [Image guide](docs/REFERENCE.md#optional-image-generation).
63
+ - **Input suggestions:** `ccdx app codex prediction setup`. Setup adds trust within the Codex profile and locally decrypts traffic for the configured prediction hosts. Read the [setup and removal guide](docs/REFERENCE.md#optional-native-predictions) first.
64
+ - **Appearance and updates:** open Settings. Web and terminal colors are independent.
65
+
66
+ ## Update and troubleshoot
67
+
68
+ Finish active tasks before updating the active installation. Install the update, then restart CCDX normally:
69
+
70
+ ```sh
71
+ ccdx update github
72
+ ccdx version
124
73
  ```
125
74
 
126
- Verification covers unit tests, isolated HTTP/idle-stream replay, performance/resource gates and package contents—not an upstream service SLA. CI also tests Node 22.15/24 on Linux, Windows and macOS, temporary-prefix installation/upgrade and installed image processing.
75
+ The foreground terminal stops with **Ctrl+C**. Client configuration marked **Unchanged** means CCDX kept the existing settings. Configuration and successful model access are separate checks.
76
+
77
+ If models are missing, check the selected source and app models first. After a client update or configuration change, fully quit and reopen that app. Use **Checks & repairs** or `ccdx doctor` for local diagnostics.
78
+
79
+ Keep the gateway on loopback. Account keys stay separate from the local credentials given to clients. Prompts are not included in routine diagnostics. See the [reference](docs/REFERENCE.md) for access, history, troubleshooting and settings, and [architecture](docs/ARCHITECTURE.md) for engineering boundaries.
80
+
81
+ ## License
127
82
 
128
- License: MIT.
83
+ MIT
package/bin/cli.mjs CHANGED
@@ -1,31 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { ensureAuth, openCodex } from "../src/launcher.mjs";
4
- import { startAdapter } from "../src/adapter.mjs";
5
- import { defaultCopilotClient, refreshVSCodeVersion } from "../src/copilot.mjs";
6
3
  import { status } from "../src/status.mjs";
7
- import { configureLogging } from "../src/log.mjs";
8
- import { flushUsageWrites, printUsageSummary } from "../src/usage.mjs";
9
4
  import { checkForUpdate, localPackageVersion } from "../src/version.mjs";
10
- import { runDoctor } from "../src/doctor.mjs";
11
- import { adapterBaseUrl, checkRunningAdapter } from "../src/running-adapter.mjs";
12
- import { assertSafeAdapterHost, isLoopbackHost } from "../src/security.mjs";
13
- import { runInBackground } from "../src/startup.mjs";
14
5
  import { cliCommandName, cliHelp, parseAdapterAddressOptions, parseAdapterProbeOptions, parseCliArgs, parseRuntimeOptions } from "../src/cli-options.mjs";
15
- import { formatAdapterStatus, readAdapterStatus } from "../src/cli-status.mjs";
16
- import { closeHttpServer } from "../src/shutdown.mjs";
17
- import { autoReviewModelPreference, autoReviewPreference, responseHistoryLimitPreference, terminalAnimationPreference, servicePreferences, serviceSettingsSnapshot, nightlyUpdatePreference } from "../src/user-settings.mjs";
18
- import { formatLiveCopilotModels } from "../src/cli-models.mjs";
19
- import { runAuthCommand } from "../src/cli-auth.mjs";
20
- import { createProfileRuntime } from "../src/profile-runtime.mjs";
21
- import { createProfileModelRuntime } from "../src/profile-model-runtime.mjs";
22
- import { createCodexModelCatalog } from "../src/codex-model-catalog.mjs";
23
- import { createProviderRuntime } from "../src/provider-runtime.mjs";
24
- import { setResponseHistoryMaxBytes } from "../src/response-history.mjs";
25
- import { startupBanner, startupCheck, startupReady, startupLogger, predictionStartupCheck, providerStartupChecks, createStartupPresentation } from "../src/startup-ui.mjs";
26
- import { createTerminalConsole } from "../src/terminal-console.mjs";
27
- import { createServiceControl } from "../src/service-control.mjs";
28
- import { openDashboard } from "../src/browser-launch.mjs";
29
6
 
30
7
  const LOCAL_VERSION = localPackageVersion();
31
8
  const CLI_NAME = cliCommandName();
@@ -100,28 +77,19 @@ if (CLI.command === "image") {
100
77
  ? parseAdapterAddressOptions(process.env)
101
78
  : { adapterPort: 2026, adapterHost: "127.0.0.1" };
102
79
  const { runImageCommand } = await import("../src/cli-image.mjs");
103
- await runImageCommand({
80
+ const lines = [], structured = CLI.outputFormat === "json";
81
+ const result = await runImageCommand({
104
82
  action: CLI.action,
105
83
  commandName: CLI_NAME,
106
84
  adapterPort: address.adapterPort,
107
85
  adapterHost: address.adapterHost,
86
+ ...(structured ? { output: { write: text => lines.push(String(text)) } } : {}),
108
87
  });
88
+ if (structured) console.log(JSON.stringify({ client: "codex", feature: "image", configured: result.enabled === true, details: lines.join("").trim() }));
109
89
  process.exit(0);
110
90
  } catch (e) {
111
- console.error(status("err", e.message));
112
- process.exit(1);
113
- }
114
- }
115
- if (CLI.command === "suggestion") {
116
- try {
117
- const { retirePredictionIntegration } = await import("../src/prediction-retirement.mjs");
118
- const result = retirePredictionIntegration({ dryRun: CLI.action === "status" });
119
- console.log("The old suggestion panel is no longer supported.");
120
- if (CLI.action === "status" && result.changed) console.log(`Legacy settings remain; run ${CLI_NAME} suggestion off to clean them up.`);
121
- if (result.preserved) console.warn("Your edited suggestion settings were kept.");
122
- process.exit(0);
123
- } catch (error) {
124
- console.error(status("err", error.message));
91
+ if (CLI.outputFormat === "json") console.log(JSON.stringify({ error: { code: e.code || "ccdx_image_status_failed", message: e.message } }));
92
+ else console.error(status("err", e.message));
125
93
  process.exit(1);
126
94
  }
127
95
  }
@@ -133,8 +101,10 @@ if (CLI.command === "prediction") {
133
101
  console.log(await pauseServiceFeature({ feature: "prediction", action: CLI.action, host: address.adapterHost, port: address.adapterPort }));
134
102
  process.exit(0);
135
103
  }
104
+ const { readAdapterStatus } = await import("../src/cli-status.mjs");
136
105
  const { runPredictionCommand } = await import("../src/native-prediction.mjs");
137
- const result = await runPredictionCommand({ action: CLI.action, repairRuntime: async () => {
106
+ const lines = [], structured = CLI.outputFormat === "json";
107
+ const result = await runPredictionCommand({ action: CLI.action, ...(structured ? { output: text => lines.push(String(text)) } : {}), repairRuntime: async () => {
138
108
  const { requestPredictionFix } = await import("../src/native-prediction-fix.mjs");
139
109
  const probe = parseAdapterProbeOptions(process.env);
140
110
  return requestPredictionFix({ host: probe.adapterHost, port: probe.adapterPort });
@@ -142,22 +112,11 @@ if (CLI.command === "prediction") {
142
112
  const probe = parseAdapterProbeOptions(process.env);
143
113
  return readAdapterStatus({ host: probe.adapterHost, port: probe.adapterPort, timeoutMs: probe.existingAdapterTimeoutMs }).then(({ data }) => data);
144
114
  } });
115
+ if (structured) console.log(JSON.stringify({ client: "codex", feature: "prediction", configured: result.enabled === true, details: lines.join("\n") }));
145
116
  process.exit(CLI.action === "fix" ? result.exitCode : 0);
146
117
  } catch (error) {
147
- console.error(status("err", error.message));
148
- process.exit(1);
149
- }
150
- }
151
- if (CLI.command === "usage") {
152
- try {
153
- await printUsageSummary({
154
- format: CLI.outputFormat || "auto",
155
- provider: CLI.provider || "",
156
- output: process.stdout,
157
- });
158
- process.exit(0);
159
- } catch (e) {
160
- console.error(status("err", e.message));
118
+ if (CLI.outputFormat === "json") console.log(JSON.stringify({ error: { code: error.code || "ccdx_prediction_status_failed", message: error.message } }));
119
+ else console.error(status("err", error.message));
161
120
  process.exit(1);
162
121
  }
163
122
  }
@@ -199,17 +158,9 @@ if (CLI.command === "limits") {
199
158
  process.exit(1);
200
159
  }
201
160
  }
202
- if (CLI.command === "retired") {
203
- console.error(status("err", `${CLI.integration} integration was retired in ccdx 0.7.0.`));
204
- if (CLI.integration === "PM Studio") {
205
- console.error(status("info", "Update or reinstall PM Studio to remove an older CCDX app patch."));
206
- } else {
207
- console.error(status("info", "Remove any old CCDX endpoint from the client before using a different provider."));
208
- }
209
- process.exit(1);
210
- }
211
161
  if (CLI.command === "auth") {
212
162
  try {
163
+ const { runAuthCommand } = await import("../src/cli-auth.mjs");
213
164
  const result = await runAuthCommand({
214
165
  action: CLI.action,
215
166
  profile: CLI.profile,
@@ -234,45 +185,6 @@ if (CLI.command === "auth") {
234
185
  process.exit(1);
235
186
  }
236
187
  }
237
- if (CLI.command === "status") {
238
- let probe;
239
- try {
240
- probe = parseAdapterProbeOptions(process.env);
241
- } catch (e) {
242
- console.error(e.message);
243
- process.exit(2);
244
- }
245
- try {
246
- const snapshot = await readAdapterStatus({
247
- host: probe.adapterHost,
248
- port: probe.adapterPort,
249
- timeoutMs: probe.existingAdapterTimeoutMs,
250
- });
251
- if (process.stdout.isTTY) {
252
- const { runManagementCommand } = await import("../src/cli-management.mjs");
253
- console.log(await runManagementCommand({ group: "status", path: ["status"], flags: {} }, { version: LOCAL_VERSION, readStatus: async () => snapshot }));
254
- } else console.log(formatAdapterStatus(snapshot, { commandName: CLI_NAME, cliVersion: LOCAL_VERSION }));
255
- process.exit(0);
256
- } catch (e) {
257
- console.error(status("err", e.message));
258
- process.exit(1);
259
- }
260
- }
261
- if (CLI.command === "models") {
262
- try {
263
- const { fetchActiveProviderModels } = await import("../src/cli-m365.mjs");
264
- const catalog = await fetchActiveProviderModels();
265
- console.log(formatLiveCopilotModels(catalog, {
266
- commandName: CLI_NAME,
267
- format: CLI.outputFormat || "auto",
268
- output: process.stdout,
269
- }));
270
- process.exit(0);
271
- } catch (e) {
272
- console.error(status("err", e.message));
273
- process.exit(1);
274
- }
275
- }
276
188
  if (CLI.command === "auto-review-model") {
277
189
  try {
278
190
  const { runProviderAutoReviewCommand } = await import("../src/cli-m365.mjs");
@@ -305,6 +217,7 @@ if (CLI.command === "doctor" && CLI.tool) {
305
217
  } catch (error) { console.error(status("err", error.message));process.exit(1); }
306
218
  }
307
219
  if (CLI.command === "doctor" && CLI.configOnly) {
220
+ const { runDoctor } = await import("../src/doctor.mjs");
308
221
  let probe;
309
222
  try {
310
223
  probe = parseAdapterAddressOptions(process.env);
@@ -321,6 +234,29 @@ if (CLI.command === "doctor" && CLI.configOnly) {
321
234
  process.exit(checks.some((check) => check.kind === "err") ? 1 : 0);
322
235
  }
323
236
 
237
+ // Startup components are loaded only after read-only and local tool commands exit.
238
+ const { ensureAuth, openCodex } = await import("../src/launcher.mjs");
239
+ const { startAdapter } = await import("../src/adapter.mjs");
240
+ const { defaultCopilotClient, refreshVSCodeVersion } = await import("../src/copilot.mjs");
241
+ const { configureLogging } = await import("../src/log.mjs");
242
+ const { flushUsageWrites } = await import("../src/usage.mjs");
243
+ const { runDoctor } = await import("../src/doctor.mjs");
244
+ const { adapterBaseUrl, checkRunningAdapter } = await import("../src/running-adapter.mjs");
245
+ const { assertSafeAdapterHost, isLoopbackHost } = await import("../src/security.mjs");
246
+ const { runInBackground } = await import("../src/startup.mjs");
247
+ const { readAdapterStatus } = await import("../src/cli-status.mjs");
248
+ const { closeHttpServer } = await import("../src/shutdown.mjs");
249
+ const { autoReviewModelPreference, autoReviewPreference, responseHistoryLimitPreference, terminalAnimationPreference, servicePreferences, serviceSettingsSnapshot, nightlyUpdatePreference } = await import("../src/user-settings.mjs");
250
+ const { createProfileRuntime } = await import("../src/profile-runtime.mjs");
251
+ const { createProfileModelRuntime } = await import("../src/profile-model-runtime.mjs");
252
+ const { createCodexModelCatalog } = await import("../src/codex-model-catalog.mjs");
253
+ const { createProviderRuntime } = await import("../src/provider-runtime.mjs");
254
+ const { setResponseHistoryMaxBytes } = await import("../src/response-history.mjs");
255
+ const { startupBanner, startupCheck, startupReady, startupLogger, predictionStartupCheck, providerStartupChecks, createStartupPresentation } = await import("../src/startup-ui.mjs");
256
+ const { createTerminalConsole } = await import("../src/terminal-console.mjs");
257
+ const { createServiceControl } = await import("../src/service-control.mjs");
258
+ const { openDashboard } = await import("../src/browser-launch.mjs");
259
+
324
260
  let serviceWorker = null;
325
261
  if (CLI.command === "start") {
326
262
  if (process.send && process.env.CCDX_SUPERVISED_SERVICE === "1") {
@@ -513,7 +449,7 @@ try {
513
449
  const m365Setup = runInBackground(() => providerRuntime.start());
514
450
  if (providerRuntime.selection().codex === "github") {
515
451
  try { await ensureAuth({ log: startupLogger("Sign-in"), interactive: serviceWorker?.preserving !== true }); }
516
- catch (error) { if (serviceWorker?.preserving) throw error;console.warn(startupCheck("warn", "Sign-in", "Sign-in unavailable. Use the dashboard or ccdx auth login; saved credentials kept.")); }
452
+ catch (error) { if (serviceWorker?.preserving) throw error;console.warn(startupCheck("warn", "Sign-in", "Sign-in unavailable. Use the dashboard or ccdx source github login; saved credentials kept.")); }
517
453
  } else {
518
454
  if (providerRuntime.selection().codex === "m365") await m365Setup;
519
455
  const source = providerRuntime.connections().providers.find(source => source.id === providerRuntime.selection().codex);
@@ -269,7 +269,7 @@ before body admission, credential use or provider dispatch; native LAN opt-in is
269
269
  Manual package installation is an explicit management operation in `package-update.mjs`,
270
270
  not part of inference or optional client integration. Windows uses the system
271
271
  command interpreter only for the fixed `npm.cmd` installer command; stable-tag
272
- validation remains upstream of launch. macOS/Linux use direct npm argv. There
272
+ validation remains upstream of launch. macOS uses direct npm argv. There
273
273
  is no generic shell runner or package-manager framework, and npm's configured
274
274
  registry/proxy environment remains owned by the user.
275
275
  Readonly npm policy discovery is update-only and uses the same global context as
@@ -605,8 +605,8 @@ and cancellation propagation for both native Responses and Chat translation.
605
605
  Empty-stream diagnostics are additive scalar metadata, not a new retry policy.
606
606
  Release reports describe a specific environment, not an SLA or a guarantee of
607
607
  compatibility with every future client or corporate network policy.
608
- CI runs Node 22.15 and 24 on Linux, Windows and macOS. The owned temporary-prefix
609
- package smoke installs its 0.9.41 baseline (or an explicit local artifact), upgrades to the packed candidate and exercises
608
+ CI runs Node 22.15 and 24 on Windows and macOS. The owned temporary-prefix
609
+ package smoke installs its 1.2.33 baseline (or an explicit local artifact), upgrades to the packed candidate and exercises
610
610
  installed sharp without provider calls. It does not claim a live Codex UI test
611
611
  or the GitHub updater's network installation; the Windows command chain has a
612
612
  separate actual-process fixture. Direct runtime dependencies are exact versions;
@@ -931,6 +931,8 @@ The connection snapshot's read-only source_impacts reports actual selected consu
931
931
 
932
932
  Unknown client capability adapters preserve existing shared settings and report their limitation. The presentation schema and protocol capability evidence do not share an enable gate. HTTP-200 error envelopes and native SSE errors feed the existing bounded diagnostics as model.error; transport bytes and retry policies remain unchanged.
933
933
 
934
+ Table disclosure metadata blocks use inline-size containment: their natural height remains, while long IDs, timestamps and diagnostics do not change the table columns' intrinsic widths. Rows with details stay top-aligned so their time/source/model text remains at its original vertical position. This shared rule covers request metadata, checks and nested capability details without adding fixed empty column space. The API capability row uses the same containment boundary. Global browser replay checks each disclosure's trigger/text x coordinate, peer-row text y position, column widths and horizontal scroll at opening, mid-animation, open and closed states.
935
+
934
936
  `dashboard/disclosure.js` is optional progressive enhancement of native details/summary. It uses cancellable opacity/transform animations, CSS chevrons independent of translated DOM text, and no polling/height animation. Reduced motion and hidden documents finish immediately. A resource integration test covers every script/style referenced by the shell. Flow regression measures layout reads and DOM identity under elapsed-only updates; existing geometry caches, list limits and visibility gates remain the performance mechanism.
935
937
 
936
938
 
@@ -942,7 +944,7 @@ edges and model node left edges; existing ResizeObserver/geometry caching and
942
944
  visibility-gated dash animation retain their ownership.
943
945
 
944
946
 
945
- ### CLI state and management (1.2.33)
947
+ ### CLI state and management
946
948
 
947
949
  `terminal-state.mjs` projects existing request/source/client evidence for the live
948
950
  terminal and canonical CLI views. It does not own model selection, credentials,
@@ -953,10 +955,11 @@ returns observed configured/preserved metadata, which the integration snapshot
953
955
  exposes only as last-checked setup evidence. Managed binding setup keeps priority.
954
956
 
955
957
  `cli-command-spec.mjs` defines canonical paths, validated options, nearby/deep help
956
- and explicit legacy translations. `cli-management.mjs` formats bounded public
958
+ and handler dispatch. `cli-management.mjs` formats bounded public
957
959
  snapshots and orchestrates existing loopback actions with normal prompt/private-key
958
- input. The CLI entry exits before service startup for these commands. Existing
959
- legacy parsing/handlers retain their effects and non-TTY/machine paths.
960
+ input. The CLI entry exits before service startup for these commands. The single
961
+ public grammar rejects removed command roots before startup. Shared feature
962
+ handlers keep their existing behavior. Saved configuration remains readable.
960
963
 
961
964
  The full connection snapshot exposes a management capability and per-client
962
965
  binding revision. CLI connection mutations require this capability; older running
@@ -972,3 +975,26 @@ CLI service-preference backups use the existing bounded validator, file lock and
972
975
  atomic backup/config pair with a separate backup filename. WebUI's appearance-paired
973
976
  backup and version-one format are unchanged. No new history store, daemon, client
974
977
  restart controller, transport policy or production dependency is introduced.
978
+
979
+
980
+ ### 1.3 scope and state orchestration
981
+
982
+ CCDX ships only for macOS and Windows (x64/ARM64). CI and complete-package builders use those four targets. The macOS bootstrap rejects unsupported systems before downloads. `ccdx` is the only package command; old CLI roots and aliases are removed without resetting accounts, keys, selected models or client-owned files.
983
+
984
+ Startup presentation classifies each formatted line independently. Normal checks are transient; mixed-message warnings and sign-in instructions remain visible. The live region labels the Web UI address and renders enabled sources once. `preserved` remains an internal configuration result and is displayed as `Unchanged`.
985
+
986
+ Source-catalog tables keep fixed column geometry while native disclosures expand, preventing metadata width from moving the disclosure control. The API editor places its capability panel below the selected model row. Neither path adds network reads or inference.
987
+
988
+ `connection-runtime.mjs` retains one serial mutation queue and its existing synchronization coalescer. Named preparation/selection handlers separate branch-specific validation/mutation from the shared credential-write, client-sync and retirement sequence. Codex sync, Claude preparation/writing and shared App/Code capability reconciliation have local boundaries. Desktop inspection remains at the existing await point; clients are not synchronized in parallel.
989
+
990
+ A full snapshot keeps a local map of compiled client plans, including reuse during source-impact projection. Public data remains cloned and contains the same revisions/route identifiers. No persistent or global cache is added. `updateAccessSettings` retains strict validation, the lock and original-byte v1 backup, then skips an atomic rewrite only when serialized bytes already match. Skipping a file write does not skip an explicit control action or client sync.
991
+
992
+ The CLI keeps only command/version/status fundamentals before its early command dispatch. Existing tool implementations are imported in their branches; startup composition loads afterward in its previous dependency order. Native account stores, source/key identity, model projections and image/prediction behavior are unchanged. The repository-only `docs/STATE_REFACTOR_PLAN.md` records included boundaries, local measurements and deferred work.
993
+
994
+ ### Context observations
995
+
996
+ `context-metrics.mjs` owns a bounded, process-local numeric projection. After ordinary provider/conversation validation, request handlers observe only bounded explicit session/subagent metadata. A process-salted HMAC includes the pinned source profile; raw IDs, prompts and credentials never enter the view. Missing identity never falls back to prompt matching. The projection neither calls nor changes the conversation source guard.
997
+
998
+ `stream-performance.mjs` feeds one terminal record to this projection, separately from its unchanged ordinary status context shape. Existing Responses/Messages usage observations supply reported input and cached input; declared window observations retain unknowns. Compaction calls are separate from regular-input series. Per observer: 64 series, 64 input points and 16 compact events per series, plus 20 unassigned requests. Snapshot sorting detects overlapping requests outside the request path; it does not infer a linear branch from parallel work. No persistence or background task is introduced.
999
+
1000
+ The optional read-only `/_ccdx/ui/context` endpoint reuses loopback/Host/dashboard-header checks and rejects a conflicting Origin. It combines independent Responses and Messages observer snapshots only when requested. `context.js` owns the Usage subview and consumes the existing refresh controller; hidden views issue no context reads. Ordinary status and TUI snapshots do not serialize the retained series. Existing usage/history, auth/config ownership, prediction and image paths retain their behavior.
package/docs/README.md CHANGED
@@ -1,80 +1,14 @@
1
- # Documentation index
1
+ # Documentation
2
2
 
3
- - [1.1.1: Clear startup checks and framed terminal status](RELEASE_1.1.1.md)
4
- - [1.1.0: Shared entry, control console and quiet terminal](RELEASE_1.1.0.md)
5
- - [1.0.0: Provider dashboard and Claude effort adaptation](RELEASE_1.0.0.md)
3
+ - [Quick start](../README.md): install, connect sources and choose app models.
4
+ - [Reference](REFERENCE.md): commands, settings, diagnostics, images and native suggestions.
5
+ - [Architecture](ARCHITECTURE.md): module ownership and runtime boundaries.
6
+ - [State orchestration](STATE_REFACTOR_PLAN.md): implemented boundaries, preservation checks and deferred work.
7
+ - [1.3.1](RELEASE_1.3.1.md): bounded context observations and anchored WebUI details.
8
+ - [1.3.0](RELEASE_1.3.0.md): scope, compatibility changes and verification.
6
9
 
7
- The [root README](../README.md) is the quick start; the [command/configuration
8
- reference](REFERENCE.md) preserves complete current behavior and limits. `ccdx --help` and
9
- `ccdx <command> --help` describe the installed package's CLI. Code and tests
10
- resolve any discrepancy; CLI version and running-adapter version can differ.
11
- The [architecture boundaries](ARCHITECTURE.md) explain module ownership,
12
- optional integration lifecycle and configuration safety.
10
+ CLI help describes the installed package. The running service can be an older version until its next normal restart.
13
11
 
14
- `ccdx doctor config` performs local, read-only configuration diagnostics and
15
- previews the current startup writer. It does not claim to resolve the complete
16
- effective Codex configuration or validate every field against the installed app.
12
+ Historical `RELEASE_*.md` files record their own source revision and test environment. They remain engineering evidence, not current installation instructions. GitHub Release cleanup does not remove Git history or npm versions.
17
13
 
18
- ## Historical release evidence
19
-
20
- - [1.2.8: Soft pink, accurate activity and terminal cache reuse](RELEASE_1.2.8.md)
21
- - [1.2.7: Account tools, checks and repairs, consistent status icons](RELEASE_1.2.7.md)
22
- - [1.2.6: Abbreviated proxy networks and preserved diagnostics](RELEASE_1.2.6.md)
23
- - [1.2.5: Animated usage views and approximate cache hit rate](RELEASE_1.2.5.md)
24
-
25
- - [1.2.4: Navigation clarity and bounded version discovery](RELEASE_1.2.4.md)
26
-
27
- These reports record a specific release and test environment. Their version,
28
- test counts, timings, live-provider observations, and limitations remain
29
- historical facts rather than current guarantees.
30
-
31
- - [0.9.31: verified Windows package-update process launch](RELEASE_0.9.31.md)
32
- - [0.9.30: persistent prediction routes and verified macOS launch](RELEASE_0.9.30.md)
33
- - [0.9.29: visible-page refresh, atom favicon and safe reasoning declarations](RELEASE_0.9.29.md)
34
- - [0.9.28: verified local plaintext recovery and validation boundaries](RELEASE_0.9.28.md)
35
- - [0.9.27: Windows certificate setup without Git/OpenSSL](RELEASE_0.9.27.md)
36
- - [0.9.26: Windows native predictions, safe ownership recovery and dashboard disclosures](RELEASE_0.9.26.md)
37
- - [Windows prediction validation history](WINDOWS_PREDICTION_PREVIEW.md)
38
- - [0.9.25: static proxy compatibility, integration boundaries and release diagnostics](RELEASE_0.9.25.md)
39
-
40
- - [0.9.19: GitHub startup checks and stable-release updates](RELEASE_0.9.19.md)
41
- - [0.9.21: compatibility-gated local history compression](RELEASE_0.9.21.md)
42
- - [0.9.20: timing evidence, real-client checks and bounded analytics reuse](RELEASE_0.9.20.md)
43
- - [0.9.13: model-bound Auto-review reasoning selection](RELEASE_0.9.13.md)
44
- - [0.9.12: GPT-6.1 Sol / low Auto-review default](RELEASE_0.9.12.md)
45
- - [0.9.11: bounded usage-summary cache and diagnostic redaction](RELEASE_0.9.11.md)
46
- - [0.9.10: agent messages, opaque-state tests and bounded request timelines](RELEASE_0.9.10.md)
47
-
48
- - [0.9.9: English and Simplified Chinese dashboard](RELEASE_0.9.9.md)
49
- - [0.9.8: underscore account names in the dashboard](RELEASE_0.9.8.md)
50
- - [0.9.7: saved GitHub account in the dashboard header](RELEASE_0.9.7.md)
51
- - [0.9.6: lazy dashboard controls and daily usage analytics](RELEASE_0.9.6.md)
52
- - [0.9.5: cache hit rates with incomplete history](RELEASE_0.9.5.md)
53
- - [0.9.4: token cache hit rate in usage and dashboard](RELEASE_0.9.4.md)
54
- - [0.9.3: GPT-6.1 Sol Codex catalog compatibility](RELEASE_0.9.3.md)
55
- - [0.9.2: read-only runtime limits in the dashboard](RELEASE_0.9.2.md)
56
- - [0.9.1: safe Qwen data-URI image delivery](RELEASE_0.9.1.md)
57
- - [0.9.0: opt-in decoded request-body limit CLI](RELEASE_0.9.0.md)
58
- - [0.8.11: theme-aware double-peak SVG favicon](RELEASE_0.8.11.md)
59
- - [0.8.10: borderless theme toggle and fuller moon icon](RELEASE_0.8.10.md)
60
- - [0.8.9: local dashboard light and dark themes](RELEASE_0.8.9.md)
61
- - [0.8.8: local dashboard with animation, live models, and usage](RELEASE_0.8.8.md)
62
- - [0.8.7: faithful Chat fallback and response-outcome diagnostics](RELEASE_0.8.7.md)
63
- - [0.8.6: bounded large-body memory and history accounting improvements](RELEASE_0.8.6.md)
64
- - [0.8.5: GPT-6 Sol/Luna compatibility and runtime cache control](RELEASE_0.8.5.md)
65
- - [0.8.4: bounded audit fixes and safety verification](RELEASE_0.8.4.md)
66
- - [0.8.3: image configuration recovery and core-service isolation](RELEASE_0.8.3.md)
67
- - [0.8.2: progressive image guidance and opt-in lifecycle](RELEASE_0.8.2.md)
68
- - [0.8.1: chat image delivery and image-provider base URLs](RELEASE_0.8.1.md)
69
- - [0.8.0: configuration safety, bounded failure recovery, and image integration hardening](RELEASE_0.8.0.md)
70
- - [0.7.10: generated-image editing and simultaneous animation previews](RELEASE_0.7.10.md)
71
- - [0.7.9: image tool discovery and invocation](RELEASE_0.7.9.md)
72
- - [0.7.8: streamed failure recovery and optional image generation](RELEASE_0.7.8.md)
73
- - [0.7.7: terminal animation additions and Braille retirement](RELEASE_0.7.7.md)
74
- - [0.7.6: configuration doctor and documentation audit](RELEASE_0.7.6.md)
75
- - [0.7.5: context-management default](RELEASE_0.7.5.md)
76
- - [0.7.4: preparation timing and performance checks](RELEASE_0.7.4.md)
77
- - [0.7.3: native Responses message identity](RELEASE_0.7.3.md)
78
-
79
- The [benchmark-fixture provenance](../scripts/fixtures/README.md) documents the
80
- photo source and distinguishes it from the generated screenshot fixture.
14
+ [Benchmark fixtures](../scripts/fixtures/README.md) document test-image provenance.