codexuse-cli 5.2.0 → 5.2.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.
package/dist/index.js CHANGED
@@ -3410,6 +3410,7 @@ async function replaceAppStateSlice(key, value) {
3410
3410
  }
3411
3411
 
3412
3412
  // ../../packages/runtime-app-state/src/app/runtimeSettings.ts
3413
+ var AUTO_CONTROL_DEFAULT_OFF_MIGRATION_KEY = "officialCodexAutoControlDefaultOffMigrationApplied";
3413
3414
  function asRecord(value) {
3414
3415
  return value && typeof value === "object" ? value : {};
3415
3416
  }
@@ -3420,7 +3421,7 @@ function normalizeRelayProfileId(value) {
3420
3421
  const id = value.trim();
3421
3422
  return /^[A-Za-z0-9][A-Za-z0-9_-]{2,79}$/.test(id) ? id : null;
3422
3423
  }
3423
- function withCurrentRuntimeDefaults(settings) {
3424
+ function withCurrentRuntimeDefaults(settings, options = {}) {
3424
3425
  let changed = false;
3425
3426
  const next = { ...settings };
3426
3427
  if (!("keepAppRunningAfterWindowClose" in next)) {
@@ -3428,7 +3429,14 @@ function withCurrentRuntimeDefaults(settings) {
3428
3429
  changed = true;
3429
3430
  }
3430
3431
  if (typeof next.officialCodexAutoControlEnabled !== "boolean") {
3431
- next.officialCodexAutoControlEnabled = true;
3432
+ next.officialCodexAutoControlEnabled = false;
3433
+ changed = true;
3434
+ }
3435
+ if (next[AUTO_CONTROL_DEFAULT_OFF_MIGRATION_KEY] !== true) {
3436
+ if (options.forceAutoControlDefaultOff) {
3437
+ next.officialCodexAutoControlEnabled = false;
3438
+ }
3439
+ next[AUTO_CONTROL_DEFAULT_OFF_MIGRATION_KEY] = true;
3432
3440
  changed = true;
3433
3441
  }
3434
3442
  if (typeof next.officialCodexInCodexStatusEnabled !== "boolean") {
@@ -3461,7 +3469,9 @@ function withCurrentRuntimeDefaults(settings) {
3461
3469
  }
3462
3470
  async function readAppSettings() {
3463
3471
  const appState = await getAppState();
3464
- const next = withCurrentRuntimeDefaults(asRecord(appState.runtimeSettings));
3472
+ const next = withCurrentRuntimeDefaults(asRecord(appState.runtimeSettings), {
3473
+ forceAutoControlDefaultOff: true
3474
+ });
3465
3475
  if (next.changed) {
3466
3476
  await replaceAppStateSlice("runtimeSettings", next.settings);
3467
3477
  }
@@ -4990,7 +5000,6 @@ function logInfo(...args) {
4990
5000
  var RPC_TIMEOUT_MS = 1e4;
4991
5001
  var ACTIVATION_TURN_TIMEOUT_MS = 9e4;
4992
5002
  var ACTIVATION_PROMPT = "Reply with exactly: ok.";
4993
- var ACTIVATION_MODEL = "gpt-5.1-codex-mini";
4994
5003
  var MAX_STDERR_CAPTURE_CHARS = 32768;
4995
5004
  var REFRESH_TOKEN_REDEEMED_SNIPPET = "refresh token was already used";
4996
5005
  var authFileCache = /* @__PURE__ */ new Map();
@@ -5597,7 +5606,6 @@ async function activateResetWindowViaRpc(envOverride, options = {}) {
5597
5606
  method: "thread/start",
5598
5607
  params: {
5599
5608
  cwd: tempHome,
5600
- model: ACTIVATION_MODEL,
5601
5609
  approvalPolicy: "untrusted",
5602
5610
  sandbox: "read-only",
5603
5611
  experimentalRawEvents: false
@@ -5616,7 +5624,6 @@ async function activateResetWindowViaRpc(envOverride, options = {}) {
5616
5624
  method: "turn/start",
5617
5625
  params: {
5618
5626
  threadId,
5619
- model: ACTIVATION_MODEL,
5620
5627
  effort: "low",
5621
5628
  input: [
5622
5629
  {
@@ -18149,7 +18156,7 @@ async function ensureCliStorageReady() {
18149
18156
  }
18150
18157
 
18151
18158
  // src/app/main.ts
18152
- var VERSION = true ? "5.2.0" : "0.0.0";
18159
+ var VERSION = true ? "5.2.1" : "0.0.0";
18153
18160
  async function runCli() {
18154
18161
  const args = process.argv.slice(2);
18155
18162
  if (args.length === 0) {