@bitkyc08/opencodex 2.37.0 → 2.38.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/bin/ocx.mjs +69 -10
- package/gui/dist/assets/{index-CowztZdo.js → index-C14iCj_Q.js} +13 -13
- package/gui/dist/assets/index-D7PIz7_g.css +1 -0
- package/gui/dist/index.html +2 -2
- package/gui/dist/provider-icons/aside.svg +3 -0
- package/gui/dist/provider-icons/deepseek-harness.svg +3 -0
- package/gui/dist/provider-icons/oh-my-pi.svg +11 -0
- package/gui/dist/provider-icons/openclaw.svg +54 -0
- package/gui/dist/provider-icons/prime-agent.svg +21 -0
- package/gui/dist/provider-icons/zcode.svg +219 -0
- package/package.json +1 -1
- package/src/adapters/cursor/protobuf-request.ts +4 -1
- package/src/adapters/cursor/tool-definitions.ts +36 -4
- package/src/cli/capabilities.ts +14 -0
- package/src/cli/codex-cli-update.ts +96 -0
- package/src/cli/codex-shim-autorestore.ts +3 -0
- package/src/cli/export-command.ts +18 -17
- package/src/cli/help.ts +2 -2
- package/src/cli/index.ts +3 -2
- package/src/cli/launcher-context.ts +53 -2
- package/src/cli/opencode.ts +126 -33
- package/src/cli/registry.ts +16 -10
- package/src/cli/system-command.ts +6 -1
- package/src/clients/config-export.ts +293 -28
- package/src/codex/account-store.ts +10 -4
- package/src/codex/autostart-health.ts +3 -3
- package/src/codex/catalog/provider-fetch.ts +20 -1
- package/src/codex/catalog/sync.ts +4 -3
- package/src/codex/cli-install-provenance.ts +795 -0
- package/src/codex/convergence.ts +4 -3
- package/src/codex/credential-mutation-epoch.ts +11 -0
- package/src/codex/main-account.ts +2 -0
- package/src/codex/model-entitlements.ts +430 -27
- package/src/codex/native-profile-manager.ts +4 -0
- package/src/codex/reset-credit-operation-ledger.ts +1411 -0
- package/src/codex/reset-credit-recovery.ts +20 -2
- package/src/codex/shim.ts +204 -18
- package/src/codex/user-identity.ts +2 -1
- package/src/config/paths.ts +18 -3
- package/src/config.ts +23 -0
- package/src/generated/compatibility-version.json +81 -45
- package/src/integrations/registry.ts +112 -0
- package/src/integrations/state.ts +67 -5
- package/src/integrations/writer.ts +25 -9
- package/src/lib/bounded-subprocess.ts +36 -0
- package/src/lib/strict-semver.ts +47 -0
- package/src/lib/windows-elevation.ts +32 -1
- package/src/lib/windows-secret-acl.ts +47 -25
- package/src/lib/windows-service-mutation-lock.ts +133 -0
- package/src/lib/windows-user-principal.ts +15 -17
- package/src/responses/spill-store.ts +334 -29
- package/src/responses/state.ts +488 -7
- package/src/server/index.ts +4 -3
- package/src/server/lifecycle.ts +5 -1
- package/src/server/management/model-rows.ts +11 -2
- package/src/server/management/provider-routes.ts +4 -0
- package/src/server/management/system-restart.ts +5 -5
- package/src/server/management-api.ts +7 -2
- package/src/server/startup-action-control.ts +3 -2
- package/src/service.ts +594 -33
- package/src/sidecar/candidates.ts +1 -1
- package/src/update/codex-cli-update-launch-policy.d.mts +18 -0
- package/src/update/codex-cli-update-launch-policy.mjs +30 -0
- package/src/update/index.ts +3 -2
- package/src/update/job.ts +10 -11
- package/gui/dist/assets/index-jqE_VOKI.css +0 -1
|
@@ -67,6 +67,7 @@ import {
|
|
|
67
67
|
type NativeProfilePublic,
|
|
68
68
|
type NativeProfileSwitchJournalV1,
|
|
69
69
|
} from "./native-profile-types";
|
|
70
|
+
import { advanceCodexCredentialMutationEpoch } from "./credential-mutation-epoch";
|
|
70
71
|
import {
|
|
71
72
|
NATIVE_STAGE_HEARTBEAT_INTERVAL_MS,
|
|
72
73
|
NativeProfileStageStore,
|
|
@@ -1307,6 +1308,7 @@ export class NativeProfileManager {
|
|
|
1307
1308
|
await this.atomicWrite(this.context.authPath, target.text);
|
|
1308
1309
|
const observedTarget = this.verifyWrittenEnvelope(target.digest, targetProfile.identityHash, key);
|
|
1309
1310
|
observedTarget.raw.fill(0);
|
|
1311
|
+
advanceCodexCredentialMutationEpoch();
|
|
1310
1312
|
await this.onSwitchBoundary("auth-replaced");
|
|
1311
1313
|
journal.phase = "auth-replaced";
|
|
1312
1314
|
await this.writeJournal(journal);
|
|
@@ -1335,6 +1337,7 @@ export class NativeProfileManager {
|
|
|
1335
1337
|
await this.atomicWrite(this.context.authPath, source!.text);
|
|
1336
1338
|
const restored = this.verifyWrittenEnvelope(source!.digest, nativeIdentityHash(key!.key, source!.accountId), key!);
|
|
1337
1339
|
restored.raw.fill(0);
|
|
1340
|
+
advanceCodexCredentialMutationEpoch();
|
|
1338
1341
|
await this.writeVault(beforeVault);
|
|
1339
1342
|
this.removeJournal();
|
|
1340
1343
|
} catch {
|
|
@@ -1449,6 +1452,7 @@ export class NativeProfileManager {
|
|
|
1449
1452
|
await this.atomicWrite(this.context.authPath, sourceEnvelope.text);
|
|
1450
1453
|
const restored = this.verifyWrittenEnvelope(sourceEnvelope.digest, journal.sourceIdentityHash, key);
|
|
1451
1454
|
restored.raw.fill(0);
|
|
1455
|
+
advanceCodexCredentialMutationEpoch();
|
|
1452
1456
|
if (!rollbackVaultPublished) await this.writeVault(rollbackVault);
|
|
1453
1457
|
this.applyTransition(current.envelope.accountId, sourceEnvelope.accountId);
|
|
1454
1458
|
this.removeJournal();
|