@hmharness/cli 0.14.1 → 0.14.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.
Files changed (2) hide show
  1. package/dist/main.js +7 -1
  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();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hmharness/cli",
3
- "version": "0.14.1",
3
+ "version": "0.14.2",
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",