@bman654/clodex 2.18.9 → 2.18.10

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/cli.js CHANGED
@@ -346,7 +346,7 @@ import { join } from "path";
346
346
  // package.json
347
347
  var package_default = {
348
348
  name: "@bman654/clodex",
349
- version: "2.18.9",
349
+ version: "2.18.10",
350
350
  publishConfig: {
351
351
  access: "public"
352
352
  },
@@ -3439,7 +3439,7 @@ function savedStopsAfter(current, assignments) {
3439
3439
  }
3440
3440
 
3441
3441
  // src/patch-transforms.ts
3442
- var PATCH_TRANSFORMS_VERSION = 14;
3442
+ var PATCH_TRANSFORMS_VERSION = 15;
3443
3443
  var NATIVE_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
3444
3444
  var BASE_EFFORT_LEVELS = ["low", "medium", "high"];
3445
3445
  function projectNativeEffort(effort) {
@@ -3842,14 +3842,14 @@ function applyClodexPatches(source, config) {
3842
3842
  }
3843
3843
  return -1;
3844
3844
  };
3845
- const passthroughSites = source.includes(marker) ? 1 : (source.match(/\)return process\.env;let [\w$]+=\{/g) ?? []).length;
3845
+ const passthroughSites = source.includes(marker) ? 1 : (source.match(/\)return process\.env;let (?:(?:[^;{}]|\{[^;{}]*\})*?,)??[\w$]+=\{/g) ?? []).length;
3846
3846
  if (passthroughSites !== 1) {
3847
3847
  log13("FAIL", patchName, "child env passthrough appears " + passthroughSites + " times (expected 1)");
3848
3848
  fail("clodex patch: required patch failed: " + patchName);
3849
3849
  }
3850
3850
  applyOnce(
3851
3851
  patchName,
3852
- /(function [\w$]+\(\)\{)(let[ {[](?:[^;{}]|\{[^;{}]*\})*?(?:\{[^;{}]*)?(?:getAgentProxyEnv|[\w$]+\(process\.env\.CLAUDE_CODE_REMOTE\)\?)(?:(?!\}\s*function )[\s\S])*?\)return process\.env;let ([\w$]+)=\{(?:(?!\}\s*function )[\s\S])*?return \3)(\})/,
3852
+ /(function [\w$]+\(\)\{)(let[ {[](?:[^;{}]|\{[^;{}]*\})*?(?:\{[^;{}]*)?(?:getAgentProxyEnv|[\w$]+\(process\.env\.CLAUDE_CODE_REMOTE\)\?)(?:(?!\}\s*function )[\s\S])*?\)return process\.env;let (?:(?:[^;{}]|\{[^;{}]*\})*?,)??([\w$]+)=\{(?:(?!\}\s*function )[\s\S])*?return \3)(\})/,
3853
3853
  (match, head, body, _copyVar, tail) => {
3854
3854
  const at = js.indexOf(match);
3855
3855
  const closingBrace = at < 0 ? -1 : blockEndIndex(js, at + head.length - 1);