codexuse-cli 5.2.5 → 5.2.6

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
@@ -5974,14 +5974,13 @@ function logInfo(...args) {
5974
5974
  var RPC_TIMEOUT_MS = 1e4;
5975
5975
  var ACTIVATION_TURN_TIMEOUT_MS = 9e4;
5976
5976
  var ACTIVATION_PROMPT = "Reply with exactly: ok.";
5977
- var FALLBACK_ACTIVATION_MODEL = "gpt-5.5";
5978
5977
  function resolveActivationModel(configuredModel) {
5979
5978
  const model = configuredModel?.trim();
5980
5979
  if (!model) {
5981
- return FALLBACK_ACTIVATION_MODEL;
5980
+ return null;
5982
5981
  }
5983
5982
  if (/-codex$/.test(model) || /-codex-mini$/.test(model)) {
5984
- return FALLBACK_ACTIVATION_MODEL;
5983
+ return null;
5985
5984
  }
5986
5985
  return model;
5987
5986
  }
@@ -6570,14 +6569,15 @@ async function activateResetWindowViaRpc(envOverride, options = {}) {
6570
6569
  } catch {
6571
6570
  }
6572
6571
  const activationModel = resolveActivationModel(configuredModel);
6573
- const tempConfigPath = import_node_path8.default.join(tempHome, "config.toml");
6574
- await import_node_fs3.promises.writeFile(
6575
- tempConfigPath,
6576
- `model = ${JSON.stringify(activationModel)}
6572
+ if (activationModel) {
6573
+ await import_node_fs3.promises.writeFile(
6574
+ import_node_path8.default.join(tempHome, "config.toml"),
6575
+ `model = ${JSON.stringify(activationModel)}
6577
6576
  `,
6578
- "utf8"
6579
- ).catch(() => {
6580
- });
6577
+ "utf8"
6578
+ ).catch(() => {
6579
+ });
6580
+ }
6581
6581
  const childEnv = buildCodexChildEnv({
6582
6582
  ...envOverride ?? {},
6583
6583
  HOME: tempHome,
@@ -10627,7 +10627,6 @@ async function findOfficialCodexThreadRecord(profileHome, threadId) {
10627
10627
  // ../../packages/runtime-codex/src/codex/officialAppRestart.ts
10628
10628
  var COMMAND_TIMEOUT_MS = 3e3;
10629
10629
  var EXIT_WAIT_MS = 1e4;
10630
- var LAUNCH_WAIT_MS = 15e3;
10631
10630
  var POLL_INTERVAL_MS = 250;
10632
10631
  var PROCESS_EXIT_GRACE_MS = 15e3;
10633
10632
  var APP_DISCOVERY_CACHE_TTL_MS = 6e4;
@@ -15271,7 +15270,7 @@ function getDescendantPids(rootPid, rows) {
15271
15270
  return descendants;
15272
15271
  }
15273
15272
  async function waitForNewMainPid(candidate, previousPids) {
15274
- const deadline = Date.now() + LAUNCH_WAIT_MS;
15273
+ const deadline = Date.now() + CODEX_BRIDGE_LAUNCH_WAIT_MS;
15275
15274
  while (Date.now() < deadline) {
15276
15275
  const rows = await readProcessRows();
15277
15276
  const pid = rows.find((row) => isMainProcessRow(row, candidate) && !previousPids.has(row.pid))?.pid ?? null;
@@ -15283,7 +15282,7 @@ async function waitForNewMainPid(candidate, previousPids) {
15283
15282
  return null;
15284
15283
  }
15285
15284
  async function waitForAppServerPid(mainPid, profileHome) {
15286
- const deadline = Date.now() + LAUNCH_WAIT_MS;
15285
+ const deadline = Date.now() + CODEX_BRIDGE_LAUNCH_WAIT_MS;
15287
15286
  while (Date.now() < deadline) {
15288
15287
  const pid = await findAppServerPidForProfile(
15289
15288
  await readProcessRows(),
@@ -18228,7 +18227,7 @@ async function ensureCliStorageReady() {
18228
18227
  }
18229
18228
 
18230
18229
  // src/app/main.ts
18231
- var VERSION = true ? "5.2.5" : "0.0.0";
18230
+ var VERSION = true ? "5.2.6" : "0.0.0";
18232
18231
  async function runCli() {
18233
18232
  const args = process.argv.slice(2);
18234
18233
  if (args.length === 0) {