@skill-harness/adapters 0.19.0 → 0.21.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.
Files changed (3) hide show
  1. package/README.md +1 -1
  2. package/dist/pi.js +4 -15
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # @skill-harness/adapters
2
2
 
3
3
  Harness adapters for [skill-harness](https://github.com/mojomanyana/skill-harness):
4
- the `pi` runner + `claude-code` judge routing, the frozen pi-daddy 0.17/v2
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
7
  Internal — use the `skill-harness` CLI. See the repo for docs.
package/dist/pi.js CHANGED
@@ -193,9 +193,8 @@ export const piAdapter = {
193
193
  * two drifted, a trace-gated scenario would be measuring a different delivery
194
194
  * than an ungated one, and the gate would be attesting to the wrong execution.
195
195
  *
196
- * The transcript is REBUILT from each turn's final assistant message rather
197
- * than read from stdout, which is byte-identical to print mode's output (proven
198
- * on a deterministic prompt; see docs/pi-native-capture-design-2026-08-08.md §2).
196
+ * The transcript is rebuilt from each turn's final assistant message rather
197
+ * than read from stdout; fixture-backed parity tests pin the expected output.
199
198
  */
200
199
  async runStructured(req) {
201
200
  const common = [
@@ -273,20 +272,10 @@ export const piAdapter = {
273
272
  ...(providerFailure ? { providerFailure } : {}),
274
273
  };
275
274
  },
276
- /**
277
- * Run the judge: no skills, no context files, no session, single prompt.
278
- * Judge provider `claude-code` routes to the Claude Code CLI (`claude -p`),
279
- * which authenticates via the user's Claude subscription (OAuth) instead of
280
- * a provider API key.
281
- */
275
+ /** Run the judge through Pi: no skills, context files, extensions or session. */
282
276
  async judge(req) {
283
277
  if (req.model.provider === "claude-code") {
284
- const args = ["-p", req.prompt, "--model", req.model.model];
285
- const r = await exec("claude", args, { cwd: req.cwd, timeoutMs: PI_TIMEOUT_MS });
286
- if (r.stdout.trim().length === 0 && (r.code !== 0 || r.stderr.trim())) {
287
- return `[judge error: claude exited ${r.code}] ${r.stderr.trim()}`;
288
- }
289
- return r.stdout;
278
+ throw new Error("judge provider `claude-code` was removed; configure a Pi provider such as `openai-codex`");
290
279
  }
291
280
  const args = [
292
281
  "--no-skills",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@skill-harness/adapters",
3
- "version": "0.19.0",
4
- "description": "skill-harness harness adapters — pi runner + claude-code judge routing (internal API)",
3
+ "version": "0.21.0",
4
+ "description": "skill-harness Pi runner and judge adapter (internal API)",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "main": "./dist/index.js",
@@ -42,6 +42,6 @@
42
42
  "prepack": "node ../../scripts/release-pack.mjs --guard"
43
43
  },
44
44
  "dependencies": {
45
- "@skill-harness/core": "0.19.0"
45
+ "@skill-harness/core": "0.21.0"
46
46
  }
47
47
  }