nex-code 0.4.31 → 0.4.33
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/benchmark.js +1235 -0
- package/dist/nex-code.js +473 -473
- package/dist/skills/autoresearch.js +12 -1
- package/package.json +2 -2
|
@@ -362,7 +362,18 @@ Use ar_run_experiment with output_file to redirect, then ar_extract_metric to re
|
|
|
362
362
|
},
|
|
363
363
|
},
|
|
364
364
|
execute: async (args) => {
|
|
365
|
-
|
|
365
|
+
// Strip any date-like suffix the model may have hallucinated, then
|
|
366
|
+
// append today's real date so the branch name is always accurate.
|
|
367
|
+
const baseTag = (args.tag || "self-improve")
|
|
368
|
+
.replace(/[^a-zA-Z0-9_-]/g, "-")
|
|
369
|
+
.replace(/-?\d{4,8}$/, "") // strip trailing YYYYMMDD / YYYYMM / etc.
|
|
370
|
+
.replace(/-[a-z]{3}\d{1,2}$/i, "") // strip trailing mon## (e.g. apr15)
|
|
371
|
+
.replace(/-+$/, "") || "self-improve";
|
|
372
|
+
const now = new Date();
|
|
373
|
+
const dateStr =
|
|
374
|
+
now.toLocaleString("en", { month: "short" }).toLowerCase() +
|
|
375
|
+
now.getDate();
|
|
376
|
+
const tag = `${baseTag}-${dateStr}`;
|
|
366
377
|
const branchName = `autoresearch/${tag}`;
|
|
367
378
|
|
|
368
379
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nex-code",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.33",
|
|
4
4
|
"description": "Run 400B+ open coding models on your codebase without the hardware bill. Ollama Cloud first — OpenAI, Anthropic, and Gemini when you need them.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"nex-code": "./dist/nex-code.js"
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"start": "node dist/nex-code.js",
|
|
19
|
-
"build": "esbuild bin/nex-code.js --bundle --platform=node --target=node18 --outfile=dist/nex-code.js --minify --external:axios --external:dotenv --external:playwright && rm -rf dist/skills && cp -r cli/skills dist/skills",
|
|
19
|
+
"build": "esbuild bin/nex-code.js --bundle --platform=node --target=node18 --outfile=dist/nex-code.js --minify --external:axios --external:dotenv --external:playwright && esbuild cli/benchmark.js --bundle --platform=node --target=node18 --outfile=dist/benchmark.js --minify --external:axios --external:dotenv --external:playwright && rm -rf dist/skills && cp -r cli/skills dist/skills",
|
|
20
20
|
"dev": "esbuild bin/nex-code.js --bundle --platform=node --target=node18 --outfile=dist/nex-code.js --external:axios --external:dotenv --external:playwright --watch",
|
|
21
21
|
"test": "jest --forceExit",
|
|
22
22
|
"test:orchestrator": "jest tests/orchestrator.test.js --forceExit",
|