@skill-harness/adapters 0.1.2 → 0.2.1
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/pi.js +6 -3
- package/package.json +2 -2
package/dist/pi.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { mkdtempSync, readFileSync } from "node:fs";
|
|
2
2
|
import { tmpdir } from "node:os";
|
|
3
3
|
import { join } from "node:path";
|
|
4
|
-
import { exec, onPath } from "@skill-harness/core";
|
|
5
|
-
const PI_TIMEOUT_MS =
|
|
4
|
+
import { exec, onPath, envNum } from "@skill-harness/core";
|
|
5
|
+
const PI_TIMEOUT_MS = envNum("PI_TIMEOUT_MS", 300_000);
|
|
6
6
|
/** Skill-activation flags for a given run mode. */
|
|
7
7
|
function skillFlags(mode, skillDir) {
|
|
8
8
|
switch (mode) {
|
|
@@ -39,7 +39,10 @@ export const piAdapter = {
|
|
|
39
39
|
"--model",
|
|
40
40
|
req.model.model,
|
|
41
41
|
];
|
|
42
|
-
|
|
42
|
+
// An agent-file run IS the system prompt: no skill activation, whatever the mode.
|
|
43
|
+
const flags = req.systemPromptFile
|
|
44
|
+
? ["--no-skills", "--append-system-prompt", readFileSync(req.systemPromptFile, "utf8")]
|
|
45
|
+
: skillFlags(req.mode, req.skillDir);
|
|
43
46
|
const total = req.turns.length;
|
|
44
47
|
const parts = [];
|
|
45
48
|
if (total === 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skill-harness/adapters",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "skill-harness harness adapters — pi runner + claude-code judge routing (internal API)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,5 +15,5 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"prepack": "cp ../../LICENSE ./LICENSE"
|
|
17
17
|
},
|
|
18
|
-
"dependencies": { "@skill-harness/core": "0.1
|
|
18
|
+
"dependencies": { "@skill-harness/core": "0.2.1" }
|
|
19
19
|
}
|