@bman654/clodex 2.2.0 → 2.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/cli.js CHANGED
@@ -218,7 +218,7 @@ import { join } from "path";
218
218
  // package.json
219
219
  var package_default = {
220
220
  name: "@bman654/clodex",
221
- version: "2.2.0",
221
+ version: "2.2.1",
222
222
  publishConfig: {
223
223
  access: "public"
224
224
  },
@@ -14251,7 +14251,7 @@ function captureBuiltInPatchProofs(source, config, results) {
14251
14251
  };
14252
14252
  addPattern(
14253
14253
  "PATCH 1: Agent tool model enum",
14254
- /\.enum\(\["sonnet","opus","haiku"(?:,"[^"]+")*\]\)\.optional\(\)\.describe\(/
14254
+ /(?:\.enum|model:[A-Za-z_$][\w$]*)\(\["sonnet","opus","haiku"(?:,"[^"]+")*\]\)\.optional\(\)\.describe\(/
14255
14255
  );
14256
14256
  addPattern(
14257
14257
  "PATCH 3: known-alias validator list",
@@ -14464,7 +14464,7 @@ function collectPristineFacts(args) {
14464
14464
  }
14465
14465
 
14466
14466
  // src/patch-transforms.ts
14467
- var PATCH_TRANSFORMS_VERSION = 2;
14467
+ var PATCH_TRANSFORMS_VERSION = 3;
14468
14468
  var NATIVE_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
14469
14469
  var BASE_EFFORT_LEVELS = ["low", "medium", "high"];
14470
14470
  function projectNativeEffort(effort) {
@@ -14610,8 +14610,8 @@ function applyClodexPatches(source, config) {
14610
14610
  }
14611
14611
  applyOnce(
14612
14612
  "PATCH 1: Agent tool model enum",
14613
- /\.enum\((\["sonnet","opus","haiku"(?:,"[^"]+")*\])\)\.optional\(\)\.describe\(/,
14614
- (_m, arr) => ".enum(" + extendAliasArray(arr) + ").optional().describe(",
14613
+ /((?:\.enum|model:[A-Za-z_$][\w$]*)\()(\["sonnet","opus","haiku"(?:,"[^"]+")*\])\)(\.optional\(\)\.describe\()/,
14614
+ (_m, open2, arr, tail) => open2 + extendAliasArray(arr) + ")" + tail,
14615
14615
  { required: true, noopIsSkip: true }
14616
14616
  );
14617
14617
  applyOnce(