@akagilnc/pi-workflow-roles 0.1.5797 → 0.1.5820
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 +464 -355
- package/dist/acp-host/role-turn-host.js +484 -0
- package/dist/activation-ledger-session.js +105 -0
- package/dist/activation-ledger.js +8 -0
- package/dist/activation-trace.js +33 -0
- package/dist/audit-escalation.js +7 -0
- package/dist/audited-run-identity.js +21 -0
- package/dist/auditor-role.js +7 -0
- package/dist/book-topology-migration-placement.js +404 -0
- package/dist/book-topology-migration.js +125 -0
- package/dist/book-topology-migrators-t11.js +677 -0
- package/dist/book-topology-mixed-volume-migrators.js +322 -0
- package/dist/book-topology-partition-migrators.js +23 -0
- package/dist/book-topology-record-class-migrators.js +671 -0
- package/dist/book-topology-runs-migrator.js +272 -0
- package/dist/collector-role.js +109 -0
- package/dist/compliance-transport.js +5 -3
- package/dist/countersign-role.js +17 -0
- package/dist/diarist-role.js +8 -0
- package/dist/diarist.js +15 -0
- package/dist/doctor-role.js +80 -0
- package/dist/engine-detour-tool.js +51 -37
- package/dist/engine-detour.js +22 -11
- package/dist/factory-board.js +1478 -0
- package/dist/fixer-bash-seatbelt.js +13 -0
- package/dist/gatekeeper-role.js +1 -2
- package/dist/gh-api-runner.js +81 -0
- package/dist/gleaner-left-role.js +8 -0
- package/dist/headless-host/production-host.js +464 -355
- package/dist/headless-host/role-turn-host.js +691 -0
- package/dist/human-format.js +67 -0
- package/dist/inspector-role.js +12 -0
- package/dist/judge-recording-anti-forge.js +39 -0
- package/dist/judge-role.js +21 -3
- package/dist/merger-role.js +57 -0
- package/dist/migrate-book-topology.js +0 -2
- package/dist/navigator-role.js +6 -0
- package/dist/navigator-work-context.js +72 -0
- package/dist/notary-role.js +113 -0
- package/dist/oauth-keepalive.js +149 -0
- package/dist/package-contracts/terminating-infrastructure.js +0 -35
- package/dist/pi/adapter.js +272 -0
- package/dist/public-cli/cli.js +9 -3
- package/dist/public-cli/instruction-seat-run.js +163 -44
- package/dist/public-cli/main.js +241 -123
- package/dist/report-ticket-tool.js +24 -13
- package/dist/reviewer-role.js +33 -0
- package/dist/role-envelope.js +707 -0
- package/dist/role-runtime-dependencies.js +57 -0
- package/dist/role-runtime.js +1476 -0
- package/dist/secretariat-role.js +5 -0
- package/dist/stderr-jsonl.js +26 -0
- package/dist/submission-correctable-error.js +2 -6
- package/dist/submission-errors.js +0 -30
- package/dist/submission-gate.js +61 -54
- package/dist/submission-ledger.js +105 -98
- package/dist/ticket-snapshot.js +486 -0
- package/dist/ticket-trajectory.js +843 -0
- package/dist/worker-role.js +184 -0
- package/dist/worker-submission-gates.js +333 -0
- package/package.json +1 -1
- package/resources/engine-dispatch.md +6 -6
- package/resources/engines/agy.md +1 -1
- package/src/compliance-transport.ts +7 -3
- package/src/engine-detour-tool.ts +88 -57
- package/src/engine-detour.ts +31 -14
- package/src/gatekeeper-role.ts +1 -15
- package/src/host-contracts.ts +9 -12
- package/src/judge-role.ts +30 -7
- package/src/package-contracts/terminating-infrastructure.ts +8 -81
- package/src/pi/adapter.ts +0 -1
- package/src/public-cli/cli.ts +21 -14
- package/src/public-cli/instruction-seat-run.ts +227 -44
- package/src/report-ticket-tool.ts +27 -13
- package/src/role-envelope.ts +35 -35
- package/src/role-runtime.ts +63 -56
- package/src/submission-correctable-error.ts +1 -6
- package/src/submission-errors.ts +0 -34
- package/src/submission-gate.ts +71 -56
- package/src/submission-ledger.ts +109 -104
package/dist/engine-detour.js
CHANGED
|
@@ -89,18 +89,29 @@ async function runEngineDetourOnce(input) {
|
|
|
89
89
|
function isEngineDetourFailure(result) {
|
|
90
90
|
return result.code !== 0 || result.stdout.trim() === "";
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
if (result.stdout.
|
|
95
|
-
|
|
96
|
-
let
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
function engineDetourFailureSeatText(result) {
|
|
93
|
+
const parts = [];
|
|
94
|
+
if (result.stdout.length > 0) parts.push(result.stdout);
|
|
95
|
+
if (result.stderr.length > 0) parts.push(result.stderr);
|
|
96
|
+
let text = "";
|
|
97
|
+
if (parts.length > 0) {
|
|
98
|
+
text = parts[0];
|
|
99
|
+
for (let index = 1; index < parts.length; index += 1) {
|
|
100
|
+
if (!text.endsWith("\n")) text += "\n";
|
|
101
|
+
text += parts[index];
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
|
-
|
|
104
|
+
const append = (line) => {
|
|
105
|
+
if (text.length > 0 && !text.endsWith("\n")) text += "\n";
|
|
106
|
+
text += line;
|
|
107
|
+
};
|
|
108
|
+
if (result.code !== 0) {
|
|
109
|
+
append(`\u52B3\u52A1\u5F15\u64CE\u4EE5 code ${result.code} \u9000\u51FA`);
|
|
110
|
+
}
|
|
111
|
+
if (result.stdout.trim() === "") {
|
|
112
|
+
append(ENGINE_DETOUR_EMPTY_STDOUT_DIAGNOSTIC);
|
|
113
|
+
}
|
|
114
|
+
return text.length > 0 ? text : ENGINE_DETOUR_EMPTY_STDOUT_DIAGNOSTIC;
|
|
104
115
|
}
|
|
105
116
|
function engineNameFromEnv() {
|
|
106
117
|
return normalizeEngineName(
|
|
@@ -127,7 +138,7 @@ export {
|
|
|
127
138
|
ENGINE_FLAG_NAME,
|
|
128
139
|
ENGINE_MODEL_FLAG_NAME,
|
|
129
140
|
applyEngineChildEnv,
|
|
130
|
-
|
|
141
|
+
engineDetourFailureSeatText,
|
|
131
142
|
engineNameFromEnv,
|
|
132
143
|
isEngineDetourFailure,
|
|
133
144
|
normalizeEngineName,
|