codex-copilot-dx 0.10.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -17
- package/bin/cli.mjs +24 -3
- package/docs/ARCHITECTURE.md +60 -14
- package/docs/README.md +3 -0
- package/docs/REFERENCE.md +186 -45
- package/package.json +2 -2
- package/src/adapter.mjs +19 -4
- package/src/browser-launch.mjs +22 -0
- package/src/claude-client-config.mjs +22 -5
- package/src/claude-gateway.mjs +30 -8
- package/src/claude-models.mjs +26 -0
- package/src/cli-animation.mjs +1 -1
- package/src/cli-image.mjs +3 -0
- package/src/cli-m365.mjs +1 -1
- package/src/cli-options.mjs +11 -6
- package/src/cli-table.mjs +1 -1
- package/src/client-integration.mjs +5 -1
- package/src/dashboard/console.js +141 -0
- package/src/dashboard/index.html +105 -52
- package/src/dashboard/language.js +103 -0
- package/src/dashboard/refresh.js +2 -1
- package/src/dashboard/status.js +60 -29
- package/src/dashboard/ui.css +49 -0
- package/src/dashboard/ui.js +113 -26
- package/src/dashboard-api.mjs +72 -7
- package/src/dashboard.mjs +1 -0
- package/src/image-mcp.mjs +9 -6
- package/src/live-models.mjs +11 -3
- package/src/log.mjs +13 -11
- package/src/m365-settings.mjs +0 -2
- package/src/native-prediction-recovery.mjs +1 -0
- package/src/native-prediction.mjs +6 -2
- package/src/observability.mjs +8 -1
- package/src/optional-routes.mjs +2 -2
- package/src/provider-metadata.mjs +21 -0
- package/src/provider-runtime.mjs +80 -26
- package/src/providers/m365-auth.mjs +4 -4
- package/src/providers/m365.mjs +10 -2
- package/src/response-failures.mjs +1 -1
- package/src/service-control.mjs +60 -0
- package/src/startup-ui.mjs +4 -3
- package/src/terminal-console.mjs +87 -0
- package/src/usage-analysis.mjs +1 -1
- package/src/usage-analytics.mjs +3 -3
- package/src/usage-store.mjs +40 -17
- package/src/usage.mjs +14 -7
- package/src/user-settings.mjs +21 -0
package/README.md
CHANGED
|
@@ -2,13 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Use Codex App with GitHub Copilot through a local adapter, with isolated Microsoft 365 access where authorized.
|
|
4
4
|
|
|
5
|
-
CCDX keeps GitHub Copilot as the default Codex source: discovery, adapted model catalogs, Responses streaming, tool calls and conversation history. Eligible Microsoft 365 environments can also use a
|
|
5
|
+
CCDX keeps GitHub Copilot as the default Codex source: 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.
|
|
6
6
|
Default Auto-review: **GPT-6.1 Sol / low**. Image generation is **off by default**. Native predictions are also **off by default**.
|
|
7
7
|
|
|
8
8
|
## Install and run
|
|
9
9
|
|
|
10
|
-
Requires macOS or Windows, Codex App, Node.js **22.15+**, and a GitHub account with Copilot
|
|
11
|
-
access to the models you want to use.
|
|
10
|
+
Requires macOS or Windows, Codex App, Node.js **22.15+**, and a GitHub account with Copilot access to the models you want to use.
|
|
12
11
|
|
|
13
12
|
```bash
|
|
14
13
|
npm install -g codex-copilot-dx@latest
|
|
@@ -16,20 +15,25 @@ ccdx
|
|
|
16
15
|
```
|
|
17
16
|
|
|
18
17
|
CCDX reuses a compatible local credential or starts GitHub Device Flow, listens
|
|
19
|
-
on `127.0.0.1:2026`, configures Codex, and opens the App. No client binary patch
|
|
18
|
+
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
|
|
20
19
|
is needed. On Windows, open the App manually unless native prediction setup is
|
|
21
20
|
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`. No install script, alias or policy change is added; custom launchers are preserved. npm's own script is untouched. The configured `dummy` API key is a placeholder, not a credential.
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
The [local control console](http://127.0.0.1:2026/) has a sidebar for **Overview, Clients, Model services, Usage and diagnostics, System and settings**. Codex image generation, input predictions and conversation buffering are explicitly Codex-specific. Provider authorization, model directories, retained usage and operations keep their own scopes. Browsing a catalog never switches the active source.
|
|
23
|
+
|
|
24
|
+
Startup shows bounded checks, existing owned-configuration reconciliation and enabled prediction recovery. After Ready, an interactive terminal has a fixed four-line status region with returned usage for this process, business activity and coalesced notices. It does not scroll individual requests. `ccdx --verbose` (also `--show-request-id`, or debug logging) retains detail output; optional file logging remains independently controlled. Non-TTY, CI, dumb or very narrow terminals use plain output. `Ready` only means the core service is available.
|
|
25
|
+
|
|
26
|
+
WebUI settings apply animation choices live, pause/resume configured image calls and prediction adaptation without removing credentials/trust, change the Codex source explicitly, and manage the conversation-buffer limit. Saved preference and effective state are separate. First-time image/prediction setup still uses the existing CLI; trust, client routing and cached client capabilities may require a normal App relaunch. Busy M365 requests must finish before disabling that provider. See the [control reference](docs/REFERENCE.md#control-console-and-online-settings).
|
|
27
|
+
|
|
28
|
+
While visible and auto-refresh is on, the console reads the small status snapshot about every two seconds and source/settings evidence about every 16 seconds. Catalogs and retained usage are fetched on demand and at most once per 30-minute refresh interval while their view is open. Hidden pages stop scheduled reads. First output uses **ms**, estimated speed **token/s**, and each protocol has its own samples. HTTP traffic includes catalog and routing requests; it is not a conversation count.
|
|
26
29
|
|
|
27
30
|
## Commands
|
|
28
31
|
|
|
29
32
|
| Command | Purpose |
|
|
30
33
|
| --- | --- |
|
|
31
34
|
| `ccdx help` | Command help; use `ccdx help <command>` for details |
|
|
32
|
-
| `ccdx start` | Start
|
|
35
|
+
| `ccdx start` | Start/reuse the adapter, open Codex when enabled, and open WebUI on interactive desktop starts |
|
|
36
|
+
| `ccdx --no-browser` / `ccdx --verbose` | Skip WebUI opening once / retain detailed terminal logs |
|
|
33
37
|
| `ccdx status` | Runtime, limits and bounded request diagnostics |
|
|
34
38
|
| `ccdx doctor` | Configuration, adapter and read-only App/catalog diagnostics |
|
|
35
39
|
| `ccdx doctor --fix` | Repair owned launchers/config, recover existing auth and enabled prediction routing once |
|
|
@@ -39,7 +43,7 @@ Auto refresh runs every 30 minutes while visible and can be switched off. Hidden
|
|
|
39
43
|
| `ccdx auth status` | Saved account; add `--online` to verify access |
|
|
40
44
|
| `ccdx models` | Fresh upstream model list |
|
|
41
45
|
| `ccdx usage` | Recorded tokens and upstream prompt-cache hit rate |
|
|
42
|
-
| `ccdx usage --provider
|
|
46
|
+
| `ccdx usage --provider ID` | Filter current or historical source-specific usage |
|
|
43
47
|
| `ccdx m365 status` / `models` | M365 authorization, Claude gateway and Claude models |
|
|
44
48
|
| `ccdx m365 switch` | Choose the Codex source; default remains GitHub |
|
|
45
49
|
| `ccdx m365 on` / `off` / `remove` | Enable discovery, restore owned client settings, or remove owned M365 state |
|
|
@@ -56,12 +60,12 @@ Auto refresh runs every 30 minutes while visible and can be switched off. Hidden
|
|
|
56
60
|
|
|
57
61
|
## Microsoft 365 access
|
|
58
62
|
|
|
59
|
-
Eligible macOS/Windows machines attempt silent Microsoft authorization at startup,
|
|
60
|
-
without Copilot CLI or a browser login. MDM alone is insufficient: account, tenant,
|
|
63
|
+
Eligible macOS/Windows machines attempt silent Microsoft authorization at startup, without Copilot CLI or a browser login. MDM alone is insufficient: account, tenant,
|
|
61
64
|
device policy and Loki entitlement must permit access. Optional failure does not block GitHub.
|
|
62
65
|
|
|
63
|
-
Claude clients use
|
|
66
|
+
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
67
|
Existing custom/managed settings are preserved; already-running clients may need a normal restart.
|
|
68
|
+
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).
|
|
65
69
|
`ccdx m365 off` restores unchanged owned fields; `remove` also clears owned M365 state.
|
|
66
70
|
|
|
67
71
|
Codex stays on GitHub until `ccdx m365 switch`. Select available GPT/review models;
|
|
@@ -111,9 +115,7 @@ Updates install the exact stable tag; dependencies still use npm's configured re
|
|
|
111
115
|
Updates warn about mismatched npm targets without changing PATH/prefix and verify the installed target version (exact tag for GitHub). Restart the adapter separately. Full `ccdx doctor` reports this target and readonly credential permissions; it never changes ACLs.
|
|
112
116
|
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).
|
|
113
117
|
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
See 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.
|
|
118
|
+
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
119
|
|
|
118
120
|
## Development
|
|
119
121
|
|
|
@@ -123,7 +125,6 @@ npm run verify
|
|
|
123
125
|
node scripts/config-startup-replay.mjs
|
|
124
126
|
```
|
|
125
127
|
|
|
126
|
-
Verification covers unit tests, isolated HTTP/idle-stream replay, performance/resource gates and package contents—not an upstream service SLA.
|
|
127
|
-
CI also tests Node 22.15/24 on Linux, Windows and macOS, temporary-prefix installation/upgrade and installed image processing.
|
|
128
|
+
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.
|
|
128
129
|
|
|
129
130
|
License: MIT.
|
package/bin/cli.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import { runInBackground } from "../src/startup.mjs";
|
|
|
14
14
|
import { cliCommandName, cliHelp, parseAdapterAddressOptions, parseAdapterProbeOptions, parseCliArgs, parseRuntimeOptions } from "../src/cli-options.mjs";
|
|
15
15
|
import { formatAdapterStatus, readAdapterStatus } from "../src/cli-status.mjs";
|
|
16
16
|
import { closeHttpServer } from "../src/shutdown.mjs";
|
|
17
|
-
import { autoReviewModelPreference, autoReviewPreference, responseHistoryLimitPreference, terminalAnimationPreference } from "../src/user-settings.mjs";
|
|
17
|
+
import { autoReviewModelPreference, autoReviewPreference, responseHistoryLimitPreference, terminalAnimationPreference, servicePreferences } from "../src/user-settings.mjs";
|
|
18
18
|
import { formatLiveCopilotModels } from "../src/cli-models.mjs";
|
|
19
19
|
import { runAuthCommand } from "../src/cli-auth.mjs";
|
|
20
20
|
import { createProfileRuntime } from "../src/profile-runtime.mjs";
|
|
@@ -23,6 +23,9 @@ import { createCodexModelCatalog } from "../src/codex-model-catalog.mjs";
|
|
|
23
23
|
import { createProviderRuntime } from "../src/provider-runtime.mjs";
|
|
24
24
|
import { setResponseHistoryMaxBytes } from "../src/response-history.mjs";
|
|
25
25
|
import { startupBanner, startupCheck, startupReady, startupLogger, predictionStartupCheck } 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";
|
|
26
29
|
|
|
27
30
|
const LOCAL_VERSION = localPackageVersion();
|
|
28
31
|
const CLI_NAME = cliCommandName();
|
|
@@ -284,6 +287,14 @@ let shuttingDown = false;
|
|
|
284
287
|
let nativePrediction = null;
|
|
285
288
|
let clientIntegration = null;
|
|
286
289
|
let providerRuntime = null;
|
|
290
|
+
let terminalConsole = null;
|
|
291
|
+
const webUiUrl = `http://${ADAPTER_HOST === "::1" ? "[::1]" : "127.0.0.1"}:${ADAPTER_PORT}`;
|
|
292
|
+
async function launchDashboard() {
|
|
293
|
+
try {
|
|
294
|
+
const result = await openDashboard(webUiUrl, { enabled: !CLI.noBrowser && servicePreferences().open_webui });
|
|
295
|
+
if (result.state === "unavailable") console.warn(startupCheck("warn", "WebUI", `Browser unavailable; open ${webUiUrl}`));
|
|
296
|
+
} catch (error) { console.warn(startupCheck("warn", "WebUI", error.message)); }
|
|
297
|
+
}
|
|
287
298
|
|
|
288
299
|
async function clientIntegrations() {
|
|
289
300
|
if (!clientIntegration) {
|
|
@@ -342,6 +353,7 @@ async function reuseRunningAdapterIfAvailable() {
|
|
|
342
353
|
console.log(startupCheck(imageEnabled && imageMcpSkipped ? "warn" : "info", "Images", imageEnabled
|
|
343
354
|
? imageMcpSkipped ? "Client setup skipped; see warning above" : "Configured; provider not tested" : "Off"));
|
|
344
355
|
console.log(startupReady({ baseUrl: running.baseUrl, commandName: CLI_NAME, reused: true }));
|
|
356
|
+
await launchDashboard();
|
|
345
357
|
await compressionSetup;
|
|
346
358
|
return true;
|
|
347
359
|
}
|
|
@@ -370,8 +382,7 @@ async function printUpdateNotice() {
|
|
|
370
382
|
try {
|
|
371
383
|
const { latestVersion, updateAvailable } = await checkForUpdate({ currentVersion: LOCAL_VERSION });
|
|
372
384
|
if (!updateAvailable) return;
|
|
373
|
-
console.
|
|
374
|
-
console.log(`Run ${CLI_NAME} update github to update, then restart ${CLI_NAME}.\n`);
|
|
385
|
+
console.warn(`\n${status("warn", `Update available: ${LOCAL_VERSION} -> ${latestVersion}. Run ${CLI_NAME} update github to update, then restart ${CLI_NAME}.`)}\n`);
|
|
375
386
|
} catch {
|
|
376
387
|
// Never block startup on the update check.
|
|
377
388
|
}
|
|
@@ -437,6 +448,10 @@ try {
|
|
|
437
448
|
|
|
438
449
|
// Start the in-process adapter.
|
|
439
450
|
const terminalAnimationTheme = terminalAnimationPreference().theme;
|
|
451
|
+
terminalConsole = createTerminalConsole({ baseUrl: webUiUrl, verbose: CLI.verbose === true || CLI.showRequestId === true || LOGGING.level === "debug",
|
|
452
|
+
snapshot: () => activeServer?.ccdxSnapshot?.() || {},
|
|
453
|
+
preferences: () => ({ ...servicePreferences(), theme: terminalAnimationPreference().theme }) });
|
|
454
|
+
const serviceControl = createServiceControl({ providerRuntime, clientIntegration: earlyIntegration, terminal: terminalConsole });
|
|
440
455
|
const codexModelCatalog = createCodexModelCatalog();
|
|
441
456
|
activeServer = await startAdapter(ADAPTER_PORT, ADAPTER_HOST, {
|
|
442
457
|
log: startupLogger("Adapter"),
|
|
@@ -450,6 +465,8 @@ try {
|
|
|
450
465
|
streamHandshakeTimeoutMs: RUNTIME.streamHandshakeTimeoutMs,
|
|
451
466
|
streamIdleTimeoutMs: RUNTIME.streamIdleTimeoutMs,
|
|
452
467
|
terminalAnimationTheme,
|
|
468
|
+
terminalActivity: terminalConsole,
|
|
469
|
+
dashboardOptions: { serviceControl, applyAnimation: theme => terminalConsole.apply({ theme }) },
|
|
453
470
|
nativePredictionPac: () => clientIntegration?.pacUrl() || null,
|
|
454
471
|
fixPrediction: async () => (await clientIntegrations()).fix(),
|
|
455
472
|
clientIntegrationSnapshot: () => clientIntegration?.snapshot() || null,
|
|
@@ -483,10 +500,13 @@ try {
|
|
|
483
500
|
|
|
484
501
|
startupComplete = true;
|
|
485
502
|
console.log(startupReady({ baseUrl: adapterBaseUrl(ADAPTER_HOST, ADAPTER_PORT), commandName: CLI_NAME }));
|
|
503
|
+
await launchDashboard();
|
|
504
|
+
terminalConsole.start();LOGGING.setTerminalSink((method, args) => terminalConsole.log(method, args));
|
|
486
505
|
|
|
487
506
|
const shutdown = async (signal) => {
|
|
488
507
|
if (shuttingDown) return;
|
|
489
508
|
shuttingDown = true;
|
|
509
|
+
LOGGING.setTerminalSink(null);terminalConsole?.cleanup();
|
|
490
510
|
console.log(`\n${status("wait", `Shutting down on ${signal}...`)}`);
|
|
491
511
|
let exitCode = 0;
|
|
492
512
|
try {
|
|
@@ -508,6 +528,7 @@ try {
|
|
|
508
528
|
process.once("SIGTERM", () => { void shutdown("SIGTERM"); });
|
|
509
529
|
await compressionSetup;
|
|
510
530
|
} catch (e) {
|
|
531
|
+
LOGGING.setTerminalSink(null);terminalConsole?.cleanup();
|
|
511
532
|
console.error(status("err", e.message));
|
|
512
533
|
await clientIntegration?.close().catch(() => {});
|
|
513
534
|
await providerRuntime?.close().catch(() => {});
|
package/docs/ARCHITECTURE.md
CHANGED
|
@@ -9,7 +9,7 @@ Client integration, image tools and the dashboard are not a general plugin frame
|
|
|
9
9
|
| Core inference | `adapter.mjs`, Responses modules, model catalog, history | Codex wire contracts, streaming and recovery |
|
|
10
10
|
| Providers | `providers/github.mjs`, `providers/m365*.mjs` | Source-owned auth, discovery, routing, capabilities and transport |
|
|
11
11
|
| Provider composition | `provider-runtime.mjs`, `provider-settings.mjs` | Explicit selection, lifecycle, history namespaces and snapshots |
|
|
12
|
-
| Claude clients | `claude-gateway.mjs`, `claude-client-config.mjs` | Native Messages relay and field-owned reversible client setup |
|
|
12
|
+
| Claude clients | `claude-gateway.mjs`, `claude-client-config.mjs`, `claude-models.mjs` | Native Messages relay and field-owned reversible client setup |
|
|
13
13
|
| Client integration | `client-integration.mjs`, Codex config, native prediction | Client setup, optional start/stop, diagnostic snapshots |
|
|
14
14
|
| Optional images | Image provider, CLI setup, image MCP and skill | Opt-in API access and image delivery; failures do not block core startup |
|
|
15
15
|
| Management | CLI, dashboard, observability, package updates | Bounded metadata and explicit user actions |
|
|
@@ -45,12 +45,12 @@ The fixed Loki target, account-bound catalog and dedicated network agent belong
|
|
|
45
45
|
to M365. No GitHub token, image credential or browser Cookie is reused. Windows can
|
|
46
46
|
use a separate OS WinHTTP worker for M365 company routing; macOS preserves static
|
|
47
47
|
system/environment routing and reports unsupported dynamic PAC. Native runtime
|
|
48
|
-
absence
|
|
49
|
-
Claude
|
|
50
|
-
readiness. A
|
|
48
|
+
absence and policy refusal do not disable GitHub.
|
|
49
|
+
Claude handler/configuration readiness is also separate from M365 provider
|
|
50
|
+
readiness. A Claude setup failure or a GPT-only catalog cannot block the explicitly
|
|
51
51
|
selected Codex backup; a catalog without Claude models does not install Claude settings.
|
|
52
52
|
|
|
53
|
-
The Claude gateway
|
|
53
|
+
The Claude gateway is mounted at /anthropic in the main listener, independently requires a loopback socket/Host and its private local key, and
|
|
54
54
|
rejects browser-origin requests. It preserves native Messages/SSE bytes, observes
|
|
55
55
|
bounded usage/terminal metadata and honors downstream backpressure. The client
|
|
56
56
|
writer records field-level ownership before applying changes and restores only
|
|
@@ -250,14 +250,35 @@ settlement for two seconds; no successful plaintext cache or transcript index ex
|
|
|
250
250
|
|
|
251
251
|
## Dashboard reads
|
|
252
252
|
|
|
253
|
-
`
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
253
|
+
`provider-runtime.mjs` composes read-only Provider descriptors separately from
|
|
254
|
+
source-selection actions. `provider-metadata.mjs` projects bounded model metadata
|
|
255
|
+
without transport or credential dependencies. `dashboard-api.mjs` sanitizes public
|
|
256
|
+
fields and keeps local credential validity separate from authorization evidence.
|
|
257
|
+
A requested catalog Provider must be registered; unavailable sources never fall
|
|
258
|
+
through to another source. The unchanged CLI model selector retains its GPT scope.
|
|
259
|
+
|
|
260
|
+
`dashboard/refresh.js` owns one visible-page timer, in-flight deduplication,
|
|
261
|
+
freshness, cancellation and last-good snapshots. `ui.js` generates Provider tabs
|
|
262
|
+
and source filters from descriptors and retained history, with per-tab snapshots
|
|
263
|
+
invalidated on profile generation/account changes. It cancels obsolete reads and
|
|
264
|
+
prevents stale apply across tabs. `status.js` renders source-neutral authorization
|
|
265
|
+
and client evidence; `usage.js` renders usage and date selection. View state remains
|
|
266
|
+
page-local; only existing preferences and the viewed model Provider are saved in
|
|
267
|
+
the browser. Expanded sections read on demand. There is no Node data watcher.
|
|
268
|
+
The sidebar controller reads small process-local status snapshots every two seconds
|
|
269
|
+
while visible/automatic, and source/settings evidence every eight status ticks.
|
|
270
|
+
Catalog and retained-log reads retain their slower, view-scoped policy. Animation
|
|
271
|
+
frames still load once per page when opened.
|
|
272
|
+
|
|
273
|
+
`claude-models.mjs` owns exact ID spelling and capability-cap projection shared by
|
|
274
|
+
configuration and model discovery. M365 resolves both canonical and existing raw
|
|
275
|
+
IDs to the same catalog entry and checks explicit effort lists without modifying
|
|
276
|
+
signed blocks. Successful refreshes schedule a coalesced client reconciliation;
|
|
277
|
+
it checks current lifecycle/profile after policy inspection, preserves ownership
|
|
278
|
+
and does not write in the inference serialization path. The Messages gateway uses
|
|
279
|
+
its injected Provider ID for diagnostics/usage. App model knowledge remains under
|
|
280
|
+
Anthropic's signed catalog and installed-client protocol, with its existing policy.
|
|
281
|
+
|
|
261
282
|
`upstream-body.mjs` is the shared bounded response reader. The transport retains
|
|
262
283
|
its existing exports; live model lookup uses the same 8 MiB catalog limit as
|
|
263
284
|
core model discovery, without importing the request lifecycle or UI layer.
|
|
@@ -266,6 +287,31 @@ implementation and lookup parameters share one in-flight lookup. A waiter can
|
|
|
266
287
|
cancel independently; the last cancellation aborts the lookup. Completed results
|
|
267
288
|
are not cached as live, and each waiter receives its own snapshot.
|
|
268
289
|
|
|
290
|
+
|
|
291
|
+
### Shared listener and service controls
|
|
292
|
+
|
|
293
|
+
The main adapter counts each HTTP request once. /anthropic dispatch strips only
|
|
294
|
+
the protocol mount prefix and preserves its query; the mounted handler retains
|
|
295
|
+
native authentication, admission, Messages timing and response ownership. Closing
|
|
296
|
+
Claude cannot close the main listener. Provider credentials/history namespaces and
|
|
297
|
+
protocol-specific timing stay independent; the UI names the scope rather than
|
|
298
|
+
summing incompatible counters. Root legacy Messages routes remain retired.
|
|
299
|
+
|
|
300
|
+
`service-control.mjs` composes explicit preference/Provider/cache/integration
|
|
301
|
+
actions with serialized writes and effective-state readback. It has no transport,
|
|
302
|
+
UI or shell dependency. `dashboard-api.mjs` supplies the local/same-origin HTTP
|
|
303
|
+
boundary. Client configuration migration reuses field ownership and its original
|
|
304
|
+
before-values, preserving foreign or edited fields. Saved allow gates are separate
|
|
305
|
+
from provisioning; pausing never deletes the Provider key or prediction trust.
|
|
306
|
+
|
|
307
|
+
`terminal-console.mjs` owns a bounded TTY status region and activity only.
|
|
308
|
+
`log.mjs` routes terminal presentation independently from existing opt-in,
|
|
309
|
+
redacted rotating file records. Returned usage accumulates scalar process-local
|
|
310
|
+
totals in `usage-store.mjs`, without a historical-log scan or per-token callback.
|
|
311
|
+
`browser-launch.mjs` makes one bounded local desktop-open attempt after readiness;
|
|
312
|
+
no headless/SSH launch, browser dependency, generic shell or background tab watcher
|
|
313
|
+
is added. Neither terminal nor WebUI rendering is required for inference.
|
|
314
|
+
|
|
269
315
|
## Configuration ownership
|
|
270
316
|
|
|
271
317
|
`CODEX_HOME` selects Codex configuration. App profile/trust paths have their own
|
|
@@ -312,7 +358,7 @@ Empty-stream diagnostics are additive scalar metadata, not a new retry policy.
|
|
|
312
358
|
Release reports describe a specific environment, not an SLA or a guarantee of
|
|
313
359
|
compatibility with every future client or corporate network policy.
|
|
314
360
|
CI runs Node 22.15 and 24 on Linux, Windows and macOS. The owned temporary-prefix
|
|
315
|
-
package smoke installs 0.9.
|
|
361
|
+
package smoke installs its 0.9.41 baseline (or an explicit local artifact), upgrades to the packed candidate and exercises
|
|
316
362
|
installed sharp without provider calls. It does not claim a live Codex UI test
|
|
317
363
|
or the GitHub updater's network installation; the Windows command chain has a
|
|
318
364
|
separate actual-process fixture. Direct runtime dependencies are exact versions;
|
package/docs/README.md
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
# Documentation index
|
|
2
2
|
|
|
3
|
+
- [1.1.0: Shared entry, control console and quiet terminal](RELEASE_1.1.0.md)
|
|
4
|
+
- [1.0.0: Provider dashboard and Claude effort adaptation](RELEASE_1.0.0.md)
|
|
5
|
+
|
|
3
6
|
The [root README](../README.md) is the quick start; the [command/configuration
|
|
4
7
|
reference](REFERENCE.md) preserves complete current behavior and limits. `ccdx --help` and
|
|
5
8
|
`ccdx <command> --help` describe the installed package's CLI. Code and tests
|