@skill-harness/adapters 0.28.0 → 0.30.0
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/README.md +1 -1
- package/dist/pi.js +6 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@ Harness adapters for [skill-harness](https://github.com/mojomanyana/skill-harnes
|
|
|
4
4
|
the Pi subject/judge runner, the frozen pi-daddy 0.17/v2
|
|
5
5
|
normalizer, and the separately pinned production ledger-v3 normalizer.
|
|
6
6
|
|
|
7
|
-
Fresh subject execution
|
|
7
|
+
Fresh subject execution supports **Pi 1.0.4 and 1.1.0**. Other or unavailable
|
|
8
8
|
versions produce execution ERROR before a subject call. Retained results remain
|
|
9
9
|
readable; the historical Pi 0.83.0 raw parser is not current qualification.
|
|
10
10
|
|
package/dist/pi.js
CHANGED
|
@@ -134,6 +134,7 @@ export const piAdapter = {
|
|
|
134
134
|
"--no-context-files",
|
|
135
135
|
"--no-extensions",
|
|
136
136
|
...extensionFlags(req.extensions),
|
|
137
|
+
...(req.tools === undefined ? [] : req.tools.length ? ["--tools", req.tools.join(",")] : ["--no-tools"]),
|
|
137
138
|
"--provider",
|
|
138
139
|
req.model.provider,
|
|
139
140
|
"--model",
|
|
@@ -204,6 +205,7 @@ export const piAdapter = {
|
|
|
204
205
|
"--no-context-files",
|
|
205
206
|
"--no-extensions",
|
|
206
207
|
...extensionFlags(req.extensions),
|
|
208
|
+
...(req.tools === undefined ? [] : req.tools.length ? ["--tools", req.tools.join(",")] : ["--no-tools"]),
|
|
207
209
|
"--provider",
|
|
208
210
|
req.model.provider,
|
|
209
211
|
"--model",
|
|
@@ -293,7 +295,7 @@ export const piAdapter = {
|
|
|
293
295
|
...(executionFailure ? { executionFailure } : {}),
|
|
294
296
|
};
|
|
295
297
|
},
|
|
296
|
-
/**
|
|
298
|
+
/** Judge only the supplied evidence: no tools, MCP, skills, context files, extensions or session. */
|
|
297
299
|
async judge(req) {
|
|
298
300
|
if (req.model.provider === "claude-code") {
|
|
299
301
|
throw new Error("judge provider `claude-code` was removed; configure a Pi provider such as `openai-codex`");
|
|
@@ -303,6 +305,8 @@ export const piAdapter = {
|
|
|
303
305
|
"--no-context-files",
|
|
304
306
|
"--no-extensions",
|
|
305
307
|
"--no-session",
|
|
308
|
+
"--no-tools",
|
|
309
|
+
"--no-mcp",
|
|
306
310
|
"--provider",
|
|
307
311
|
req.model.provider,
|
|
308
312
|
"--model",
|
|
@@ -313,7 +317,7 @@ export const piAdapter = {
|
|
|
313
317
|
const r = await exec("pi", args, { cwd: req.cwd, timeoutMs: PI_TIMEOUT_MS });
|
|
314
318
|
// Surface failures: pi writes provider errors (auth, out-of-credits) to stderr
|
|
315
319
|
// and exits non-zero with empty stdout. Pass them through so grading can report.
|
|
316
|
-
if (r.stdout.trim().length === 0 &&
|
|
320
|
+
if (r.code !== 0 || (r.stdout.trim().length === 0 && r.stderr.trim())) {
|
|
317
321
|
return `[judge error: pi exited ${r.code}] ${r.stderr.trim()}`;
|
|
318
322
|
}
|
|
319
323
|
return r.stdout;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skill-harness/adapters",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "skill-harness Pi runner and judge adapter (internal API)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,6 +42,6 @@
|
|
|
42
42
|
"prepack": "node ../../scripts/release-pack.mjs --guard"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@skill-harness/core": "0.
|
|
45
|
+
"@skill-harness/core": "0.30.0"
|
|
46
46
|
}
|
|
47
47
|
}
|