@bman654/clodex 2.6.1 → 2.6.2
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 +11 -7
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -374,7 +374,7 @@ import { join } from "path";
|
|
|
374
374
|
// package.json
|
|
375
375
|
var package_default = {
|
|
376
376
|
name: "@bman654/clodex",
|
|
377
|
-
version: "2.6.
|
|
377
|
+
version: "2.6.2",
|
|
378
378
|
publishConfig: {
|
|
379
379
|
access: "public"
|
|
380
380
|
},
|
|
@@ -17061,7 +17061,7 @@ function collectPristineFacts(args) {
|
|
|
17061
17061
|
}
|
|
17062
17062
|
|
|
17063
17063
|
// src/patch-transforms.ts
|
|
17064
|
-
var PATCH_TRANSFORMS_VERSION =
|
|
17064
|
+
var PATCH_TRANSFORMS_VERSION = 7;
|
|
17065
17065
|
var NATIVE_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
|
17066
17066
|
var BASE_EFFORT_LEVELS = ["low", "medium", "high"];
|
|
17067
17067
|
function projectNativeEffort(effort) {
|
|
@@ -17240,14 +17240,18 @@ function applyClodexPatches(source, config) {
|
|
|
17240
17240
|
// old adhoc-patch ASCII-only constraint no longer applies.)
|
|
17241
17241
|
(a) => "{value:" + q(a) + ",label:" + q(a.charAt(0).toUpperCase() + a.slice(1)) + ",description:" + q(displayFor(a, ALIAS_TO_ID[a])) + "}"
|
|
17242
17242
|
).join(",");
|
|
17243
|
-
const
|
|
17243
|
+
const injectInto = (options) => missing.length ? "[" + entries + "].forEach(function(_o){if(!" + options + ".some(function(_i){return _i.value===_o.value}))" + options + ".push(_o)});" : "";
|
|
17244
|
+
const pickerSite = "PATCH 5: model picker options";
|
|
17245
|
+
const modelSelections = [...js.matchAll(/\(([\w$]+)==="opus"\|\|\1==="sonnet"\)/g)];
|
|
17244
17246
|
if (ALIASES.length === 0) {
|
|
17245
|
-
log12("SKIP",
|
|
17247
|
+
log12("SKIP", pickerSite, "no aliases configured");
|
|
17248
|
+
} else if (modelSelections.length !== 1) {
|
|
17249
|
+
log12("FAIL", pickerSite, "model selection appears " + modelSelections.length + " times (expected 1)");
|
|
17246
17250
|
} else {
|
|
17247
17251
|
applyOnce(
|
|
17248
|
-
|
|
17249
|
-
|
|
17250
|
-
(m) => m +
|
|
17252
|
+
pickerSite,
|
|
17253
|
+
/\(([\w$]+)==="opus"\|\|\1==="sonnet"\)[^;{}]*\?\[\1,([\w$]+)\]:\[\2\];for\(let ([\w$]+) of [\w$]+\)[\w$]+\(([\w$]+),\3,[\w$]+\);/,
|
|
17254
|
+
(m, _selected, _requested, _item, options) => m + injectInto(options),
|
|
17251
17255
|
{ required: false, noopIsSkip: true }
|
|
17252
17256
|
);
|
|
17253
17257
|
}
|