@akagilnc/pi-workflow-roles 0.1.5307 → 0.1.5312
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/acp-host/description.js +0 -11
- package/dist/acp-host/production-host.js +440 -441
- package/dist/headless-host/description.js +0 -11
- package/dist/headless-host/production-host.js +533 -546
- package/dist/host-descriptions.js +13 -0
- package/dist/prepared-role-turn.js +4 -0
- package/dist/public-cli/machine-method-skills.js +5 -5
- package/dist/public-cli/main.js +154 -150
- package/package.json +1 -1
- package/src/acp-host/description.ts +2 -12
- package/src/acp-host/production-host.ts +3 -2
- package/src/acp-host/role-turn-host.ts +7 -42
- package/src/external-host-turn-loop.ts +36 -16
- package/src/headless-host/description.ts +3 -18
- package/src/headless-host/production-host.ts +3 -2
- package/src/headless-host/role-turn-host.ts +10 -68
- package/src/host-descriptions.ts +18 -0
- package/src/prepared-role-turn.ts +8 -0
- package/src/public-cli/machine-method-skills.ts +5 -5
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Headless CLI host descriptions (#645 / #646 / #752).
|
|
3
|
-
* Shared lifecycle owns spawn/bind/close; each protocol owns argv + parse shape.
|
|
4
|
-
* Claude print-mode and codex exec differ enough that #752 host-specific
|
|
5
|
-
* assembly lives here as sibling helpers — not a third unified abstraction.
|
|
6
|
-
*/
|
|
7
|
-
import { join } from "node:path";
|
|
8
1
|
export function isClaudePrintDescription(description) {
|
|
9
2
|
return description.protocol === "claude-print";
|
|
10
3
|
}
|
|
11
4
|
export function isCodexExecDescription(description) {
|
|
12
5
|
return description.protocol === "codex-exec";
|
|
13
6
|
}
|
|
14
|
-
/** Absolute agent binary for one operator home. */
|
|
15
|
-
export function resolveHeadlessBinary(description, operatorHome) {
|
|
16
|
-
return join(operatorHome, ...description.binaryFromHome);
|
|
17
|
-
}
|
|
18
7
|
/**
|
|
19
8
|
* Build one Claude print-mode argv for a single process turn.
|
|
20
9
|
* Shape: `<promptFlag> <fixedArgs…> <system/schema/mcp/model/effort/session…>`.
|