@hmharness/cli 0.14.1 → 0.14.3

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.
Files changed (2) hide show
  1. package/dist/main.js +8 -2
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -289,7 +289,13 @@ function makeCaseRunner() {
289
289
  return async (c, skillsPrompt) => {
290
290
  const cfg = await loadConfig();
291
291
  if (!c.tools) {
292
- const r = await chat(resolveProvider(cfg, 'bench'), [{ role: 'user', content: c.prompt }]);
292
+ // day-50 instrument fix: non-tools cases MUST see the skills prompt as
293
+ // a system message - the old user-only call meant every skill candidate
294
+ // measured nothing (control tokens恒268, zero information)
295
+ const msgs = skillsPrompt
296
+ ? [{ role: 'system', content: skillsPrompt }, { role: 'user', content: c.prompt }]
297
+ : [{ role: 'user', content: c.prompt }];
298
+ const r = await chat(resolveProvider(cfg, 'bench'), msgs);
293
299
  return r.message.content ?? '';
294
300
  }
295
301
  const reg = new Registry();
@@ -1084,7 +1090,7 @@ flags:
1084
1090
  stdout.write('no such candidate\n');
1085
1091
  return;
1086
1092
  }
1087
- const maxCases = Number((rest.find((a) => a.startsWith('--cases=')) ?? '').slice(9)) || 12;
1093
+ const maxCases = Number((rest.find((a) => a.startsWith('--cases=')) ?? '').slice('--cases='.length)) || 12;
1088
1094
  const cases = (await E.listCases(home)).filter((c) => !c.holdout);
1089
1095
  if (cases.length === 0) {
1090
1096
  stdout.write('no bench cases - run scripts/bench-cases-v2.cjs or seed first\n');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cli",
3
- "version": "0.14.1",
3
+ "version": "0.14.3",
4
4
  "description": "hmharness command line: one-shot tasks, an interactive REPL, a fullscreen TUI, the web frontend, and direct tool invocation.",
5
5
  "type": "module",
6
6
  "main": "dist/main.js",