@akagilnc/pi-workflow-roles 0.1.5318 → 0.1.5323
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/production-host.js +1 -8
- package/dist/headless-host/production-host.js +1 -8
- package/dist/migrate-book-topology.js +119594 -102066
- package/dist/public-cli/countersign-run.js +1 -11
- package/dist/public-cli/instruction-seat-run.js +2 -1
- package/dist/public-cli/main.js +1 -8
- package/package.json +3 -3
- package/src/public-cli/countersign-run.ts +1 -11
- package/src/public-cli/instruction-seat-run.ts +2 -1
|
@@ -14016,12 +14016,6 @@ function latestPayloadEscalated(roleOutcome) {
|
|
|
14016
14016
|
const payloads = roleOutcome.payloads ?? [];
|
|
14017
14017
|
return isEscalatePayload(payloads[payloads.length - 1]);
|
|
14018
14018
|
}
|
|
14019
|
-
function courtDiaristEscalated(roleOutcome) {
|
|
14020
|
-
if (roleOutcome === void 0) return false;
|
|
14021
|
-
if (roleOutcome.kind === "audit_escalation") return true;
|
|
14022
|
-
if (roleOutcome.kind !== "accepted") return false;
|
|
14023
|
-
return (roleOutcome.payloads ?? []).some(isEscalatePayload);
|
|
14024
|
-
}
|
|
14025
14019
|
async function invokeCourtDiarist(input, env, io) {
|
|
14026
14020
|
const quietIo = {
|
|
14027
14021
|
stdout() {
|
|
@@ -14054,7 +14048,7 @@ async function invokeCourtDiarist(input, env, io) {
|
|
|
14054
14048
|
});
|
|
14055
14049
|
const roleOutcome = result.terminal?.roleOutcome;
|
|
14056
14050
|
const submissions = result.terminal?.submissions;
|
|
14057
|
-
if (
|
|
14051
|
+
if (latestPayloadEscalated(roleOutcome)) {
|
|
14058
14052
|
return {
|
|
14059
14053
|
identity: {
|
|
14060
14054
|
kind: "escalate",
|
|
@@ -14617,7 +14611,6 @@ async function runPublicInstructionSeat(argv, env, io, role, parseArgv2) {
|
|
|
14617
14611
|
}
|
|
14618
14612
|
if (outcome.identity.kind === "escalate" && outcome.terminal !== void 0) {
|
|
14619
14613
|
io.stdout(formatTerminalResult(outcome.terminal));
|
|
14620
|
-
return { exitCode: 0, admitted, terminal: outcome.terminal };
|
|
14621
14614
|
}
|
|
14622
14615
|
}
|
|
14623
14616
|
return dispatchAdmitted(admitted, env, io);
|
|
@@ -14436,12 +14436,6 @@ function latestPayloadEscalated(roleOutcome) {
|
|
|
14436
14436
|
const payloads = roleOutcome.payloads ?? [];
|
|
14437
14437
|
return isEscalatePayload(payloads[payloads.length - 1]);
|
|
14438
14438
|
}
|
|
14439
|
-
function courtDiaristEscalated(roleOutcome) {
|
|
14440
|
-
if (roleOutcome === void 0) return false;
|
|
14441
|
-
if (roleOutcome.kind === "audit_escalation") return true;
|
|
14442
|
-
if (roleOutcome.kind !== "accepted") return false;
|
|
14443
|
-
return (roleOutcome.payloads ?? []).some(isEscalatePayload);
|
|
14444
|
-
}
|
|
14445
14439
|
async function invokeCourtDiarist(input, env, io) {
|
|
14446
14440
|
const quietIo = {
|
|
14447
14441
|
stdout() {
|
|
@@ -14474,7 +14468,7 @@ async function invokeCourtDiarist(input, env, io) {
|
|
|
14474
14468
|
});
|
|
14475
14469
|
const roleOutcome = result.terminal?.roleOutcome;
|
|
14476
14470
|
const submissions = result.terminal?.submissions;
|
|
14477
|
-
if (
|
|
14471
|
+
if (latestPayloadEscalated(roleOutcome)) {
|
|
14478
14472
|
return {
|
|
14479
14473
|
identity: {
|
|
14480
14474
|
kind: "escalate",
|
|
@@ -15037,7 +15031,6 @@ async function runPublicInstructionSeat(argv, env, io, role, parseArgv2) {
|
|
|
15037
15031
|
}
|
|
15038
15032
|
if (outcome.identity.kind === "escalate" && outcome.terminal !== void 0) {
|
|
15039
15033
|
io.stdout(formatTerminalResult(outcome.terminal));
|
|
15040
|
-
return { exitCode: 0, admitted, terminal: outcome.terminal };
|
|
15041
15034
|
}
|
|
15042
15035
|
}
|
|
15043
15036
|
return dispatchAdmitted(admitted, env, io);
|