@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.
- package/dist/main.js +7 -1
- 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
|
-
|
|
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