@bitkyc08/opencodex 2.36.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-C14iCj_Q.js +112 -0
- 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/adapters/kiro-constants.ts +36 -2
- package/src/adapters/kiro.ts +13 -2
- package/src/cli/capabilities.ts +14 -0
- package/src/cli/claude.ts +12 -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 +489 -30
- 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 +84 -48
- 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-Cy7Z_pl0.css +0 -1
- package/gui/dist/assets/index-DO8liQVL.js +0 -112
package/src/codex/convergence.ts
CHANGED
|
@@ -73,6 +73,7 @@ import { codexAccountNamespaceEntries, isMainCodexAccountTarget } from "./accoun
|
|
|
73
73
|
import { MAIN_CODEX_ACCOUNT_ID } from "./main-account";
|
|
74
74
|
import {
|
|
75
75
|
availableAccountGatedNativeModels,
|
|
76
|
+
codexModelEntitlementStateForAccount,
|
|
76
77
|
isCodexModelEntitlementSnapshotCurrent,
|
|
77
78
|
resolveCodexModelEntitlements,
|
|
78
79
|
type CodexModelEntitlementSnapshot,
|
|
@@ -277,10 +278,10 @@ function prepareCatalog(
|
|
|
277
278
|
? new Map([...accountBoundNativeOpenAiSlugsBySelector(config, observedAccountNativeEntries)].map(([selector, slugs]) => {
|
|
278
279
|
const target = accountTargets.get(selector);
|
|
279
280
|
const accountId = target && isMainCodexAccountTarget(target) ? MAIN_CODEX_ACCOUNT_ID : target;
|
|
280
|
-
const entitled = accountId ? modelEntitlements.modelsByAccount.get(accountId) : undefined;
|
|
281
|
-
const confirmed = accountId ? modelEntitlements.confirmedAccountIds.has(accountId) : false;
|
|
282
281
|
return [selector, slugs.filter(slug => (
|
|
283
|
-
!ACCOUNT_GATED_NATIVE_OPENAI_MODELS.has(slug)
|
|
282
|
+
!ACCOUNT_GATED_NATIVE_OPENAI_MODELS.has(slug)
|
|
283
|
+
|| (accountId !== undefined
|
|
284
|
+
&& codexModelEntitlementStateForAccount(modelEntitlements, accountId, slug) === "granted")
|
|
284
285
|
))] as const;
|
|
285
286
|
}))
|
|
286
287
|
: new Map<string, readonly string[]>();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
let credentialMutationEpoch = 0;
|
|
2
|
+
|
|
3
|
+
/** Process-local fence advanced after every OpenCodex-owned credential publication. */
|
|
4
|
+
export function codexCredentialMutationEpoch(): number {
|
|
5
|
+
return credentialMutationEpoch;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export function advanceCodexCredentialMutationEpoch(): number {
|
|
9
|
+
credentialMutationEpoch += 1;
|
|
10
|
+
return credentialMutationEpoch;
|
|
11
|
+
}
|
|
@@ -18,6 +18,7 @@ import { atomicWriteFile, resolveWriteTarget } from "../config/atomic-write";
|
|
|
18
18
|
import { resolveCodexHomeDir } from "./home";
|
|
19
19
|
import { assertNotRealCodexHomeUnderTest } from "../lib/test-home-guard";
|
|
20
20
|
import { clearAccountNeedsReauth } from "./account-runtime-state";
|
|
21
|
+
import { advanceCodexCredentialMutationEpoch } from "./credential-mutation-epoch";
|
|
21
22
|
|
|
22
23
|
export { MAIN_CODEX_ACCOUNT_ID } from "./account-id";
|
|
23
24
|
|
|
@@ -160,6 +161,7 @@ function persistRefreshedMainAuthJson(
|
|
|
160
161
|
validateBeforeRename: () => assertMainAuthJsonSnapshotUnchanged(expected),
|
|
161
162
|
},
|
|
162
163
|
);
|
|
164
|
+
advanceCodexCredentialMutationEpoch();
|
|
163
165
|
return { accessToken, chatgptAccountId };
|
|
164
166
|
}
|
|
165
167
|
|