@akagilnc/pi-workflow-roles 0.1.4239 → 0.1.4259
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/README.md +1 -1
- package/README.zh-CN.md +1 -1
- package/dist/acp-host/production-host.js +547 -221
- package/dist/engine-detour-tool.js +64 -5
- package/dist/engine-detour-usage.js +285 -0
- package/dist/headless-host/production-host.js +557 -231
- package/dist/pi/role-turn-host.js +10 -0
- package/dist/public-cli/main.js +433 -202
- package/dist/public-cli/post-admission.js +72 -43
- package/dist/public-cli/settlement.js +80 -24
- package/dist/public-cli/turn-request.js +3 -0
- package/package.json +1 -1
- package/src/engine-detour-tool.ts +106 -8
- package/src/engine-detour-usage.ts +373 -0
- package/src/host-contracts.ts +12 -1
- package/src/pi/adapter.ts +6 -0
- package/src/pi/role-turn-host.ts +6 -0
- package/src/public-cli/post-admission.ts +91 -49
- package/src/public-cli/settlement.ts +148 -23
- package/src/public-cli/turn-request.ts +5 -0
- package/src/role-envelope.ts +2 -0
|
@@ -338,6 +338,16 @@ export function createPiRoleTurnHost(config) {
|
|
|
338
338
|
delete env.AK_ROLE_COURT_ATTEMPT;
|
|
339
339
|
else
|
|
340
340
|
env.AK_ROLE_COURT_ATTEMPT = request.courtAttemptId;
|
|
341
|
+
// Public-invocation scope (#537): omit must not inherit a parent env value.
|
|
342
|
+
if (request.invocationScopeId === undefined)
|
|
343
|
+
delete env.AK_ROLE_INVOCATION_SCOPE;
|
|
344
|
+
else
|
|
345
|
+
env.AK_ROLE_INVOCATION_SCOPE = request.invocationScopeId;
|
|
346
|
+
// Selected host axis (#537 / ADR 0082): omit must not inherit a parent env value.
|
|
347
|
+
if (request.host === undefined || request.host.trim() === "")
|
|
348
|
+
delete env.AK_ROLE_HOST;
|
|
349
|
+
else
|
|
350
|
+
env.AK_ROLE_HOST = request.host.trim();
|
|
341
351
|
applyEngineChildEnv(env, request.engine);
|
|
342
352
|
// Nested auditor dossier tool binds the parent run pointer when published.
|
|
343
353
|
if (typeof process.env.AK_ROLE_AUDITOR_SOURCE_RUN === "string"
|