@akagilnc/pi-workflow-roles 0.1.5303 → 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 +577 -604
- package/dist/analyst-ledger.js +16 -1
- package/dist/analyst-metric-families/acceptance-success-rework.js +16 -15
- package/dist/analyst-metric-families/b2-frame-buckets-actions.js +3 -8
- package/dist/analyst-metric-families/gate-cycles.js +2 -8
- package/dist/analyst-metric-families/leg-wall-clock.js +4 -13
- package/dist/analyst-metric-families/round-timeline.js +1 -4
- package/dist/analyst-model-groups.js +1 -7
- package/dist/analyst-page.js +4 -13
- package/dist/headless-host/description.js +0 -11
- package/dist/headless-host/production-host.js +679 -718
- 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 +291 -313
- 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/analyst-ledger.ts +20 -1
- package/src/analyst-metric-families/acceptance-success-rework.ts +5 -15
- package/src/analyst-metric-families/b2-frame-buckets-actions.ts +3 -7
- package/src/analyst-metric-families/gate-cycles.ts +2 -8
- package/src/analyst-metric-families/leg-wall-clock.ts +4 -16
- package/src/analyst-metric-families/round-timeline.ts +1 -5
- package/src/analyst-model-groups.ts +1 -10
- package/src/analyst-page.ts +4 -16
- 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,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Packaged host description tables (#729 / #731 / #645).
|
|
3
|
+
* Key = seat-table `host` value.
|
|
4
|
+
* - ACP family rows feed the generic ACP factory.
|
|
5
|
+
* - Headless CLI family rows feed the generic headless factory (#645 claude / #646 codex).
|
|
6
|
+
* pi is the in-process default, not a row.
|
|
7
|
+
* Unregistered names fail closed (#510); these tables do not fallback.
|
|
8
|
+
*/
|
|
9
|
+
import { join } from "node:path";
|
|
10
|
+
/** Resolve a host description's agent binary under the operator home. */
|
|
11
|
+
export function resolveHostBinary(description, operatorHome) {
|
|
12
|
+
return join(operatorHome, ...description.binaryFromHome);
|
|
13
|
+
}
|
|
1
14
|
export const DEFAULT_ROLE_TURN_HOST = "pi";
|
|
2
15
|
export const HOST_DESCRIPTIONS = Object.freeze({
|
|
3
16
|
/** Operator home `~/.grok`, native session/load resume, `agent [--model X] stdio`. */
|
|
@@ -3,3 +3,7 @@ import { renderAgentStartMaterials } from "./agent-start-materials.js";
|
|
|
3
3
|
export function renderSystemPromptOverride(authority) {
|
|
4
4
|
return renderAgentStartMaterials(authority.body, authority.materials);
|
|
5
5
|
}
|
|
6
|
+
export async function resolveBoundHostSessionId(request, identity) {
|
|
7
|
+
const explicit = request.continuation.kind === "resume" ? request.continuation.hostSessionId : undefined;
|
|
8
|
+
return explicit !== undefined && explicit !== "" ? explicit : identity.load(request.principal);
|
|
9
|
+
}
|
|
@@ -2,7 +2,7 @@ import { accessSync, constants, statSync } from "node:fs";
|
|
|
2
2
|
import { lstat, mkdir, symlink } from "node:fs/promises";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { spawnSync } from "node:child_process";
|
|
5
|
-
import { HEADLESS_HOST_DESCRIPTIONS, HOST_DESCRIPTIONS } from "../host-descriptions.js";
|
|
5
|
+
import { HEADLESS_HOST_DESCRIPTIONS, HOST_DESCRIPTIONS, resolveHostBinary } from "../host-descriptions.js";
|
|
6
6
|
import { packagedMethodSkillNames } from "../packaged-role-registry.js";
|
|
7
7
|
/** Install source only. Which names are required comes from the role registry. */
|
|
8
8
|
const SKILL_SOURCE = {
|
|
@@ -119,11 +119,11 @@ export async function runMachineSkillSetup(home, stdout) {
|
|
|
119
119
|
return 1;
|
|
120
120
|
for (const host of ["claude-code", "hermes"]) {
|
|
121
121
|
const root = linkedSkillRoot(home, host);
|
|
122
|
-
const
|
|
123
|
-
? HEADLESS_HOST_DESCRIPTIONS.claude
|
|
124
|
-
: HOST_DESCRIPTIONS.hermes
|
|
122
|
+
const description = host === "claude-code"
|
|
123
|
+
? HEADLESS_HOST_DESCRIPTIONS.claude
|
|
124
|
+
: HOST_DESCRIPTIONS.hermes;
|
|
125
125
|
try {
|
|
126
|
-
accessSync(
|
|
126
|
+
accessSync(resolveHostBinary(description, home), constants.X_OK);
|
|
127
127
|
}
|
|
128
128
|
catch (error) {
|
|
129
129
|
if (["ENOENT", "ENOTDIR", "EACCES"].includes(error.code ?? ""))
|