@akagilnc/pi-workflow-roles 0.1.3556 → 0.1.3565
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 +21 -0
- package/dist/{grok → acp-host}/mcp-relay.mjs +5 -5
- package/dist/{grok → acp-host}/production-host.js +111 -108
- package/dist/host-descriptions.js +34 -0
- package/dist/public-cli/config.js +23 -10
- package/dist/public-cli/main.js +89 -37
- package/package.json +1 -1
- package/scripts/build-package.mjs +8 -8
- package/src/acp-host/description.ts +43 -0
- package/src/{grok → acp-host}/mcp-relay.mjs +5 -5
- package/src/{grok → acp-host}/production-host.ts +30 -37
- package/src/{grok → acp-host}/role-envelope.ts +23 -23
- package/src/{grok → acp-host}/role-turn-host.ts +46 -81
- package/src/{grok → acp-host}/session-identity.ts +7 -7
- package/src/host-contracts.ts +5 -3
- package/src/host-descriptions.ts +51 -0
- package/src/host-transition-prior-native.ts +12 -24
- package/src/pi/role-turn-host.ts +2 -1
- package/src/public-cli/cli.ts +10 -9
- package/src/public-cli/config.ts +24 -11
- package/src/public-cli/load-production-acp-host.ts +52 -0
- package/src/public-cli/post-admission.ts +1 -1
- package/src/public-cli/load-production-grok-host.ts +0 -35
|
@@ -283,7 +283,7 @@ export async function dispatchPostAdmissionTurn<
|
|
|
283
283
|
)) as { exitCode: number; admitted: A; terminal: T };
|
|
284
284
|
}
|
|
285
285
|
// #617 DK-4: capture previous invocation host before markRunRunning overwrites it.
|
|
286
|
-
// Single authority projectHostTransitionPriorNative
|
|
286
|
+
// Single authority projectHostTransitionPriorNative classifies the prior native volume.
|
|
287
287
|
// Same-run resume (#637) keeps host identity on the run's invocation page.
|
|
288
288
|
let previousHost: string | undefined;
|
|
289
289
|
const liveHost = env.host;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Deferred loader for the grok-build production host factory.
|
|
3
|
-
*
|
|
4
|
-
* The public ak-role bin must not statically value-import production-host (or its
|
|
5
|
-
* role-runtime / pi-coding-agent edges). Specifier is runtime-constructed so
|
|
6
|
-
* esbuild leaves this import external (ADR 0052 discovery stays peer-free).
|
|
7
|
-
*/
|
|
8
|
-
import { existsSync } from "node:fs";
|
|
9
|
-
import { join } from "node:path";
|
|
10
|
-
import { pathToFileURL } from "node:url";
|
|
11
|
-
|
|
12
|
-
import type { DurablePrincipalAuthority, RoleTurnHost } from "../host-contracts.ts";
|
|
13
|
-
|
|
14
|
-
export type ProductionGrokHostFactory = (options: {
|
|
15
|
-
packageRoot: string;
|
|
16
|
-
principalAuthority: DurablePrincipalAuthority;
|
|
17
|
-
}) => RoleTurnHost;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Resolve createProductionGrokRoleTurnHost from the package tree without a static
|
|
21
|
-
* graph edge into the public CLI bundle.
|
|
22
|
-
*/
|
|
23
|
-
export async function loadProductionGrokHostFactory(
|
|
24
|
-
packageRoot: string,
|
|
25
|
-
): Promise<ProductionGrokHostFactory> {
|
|
26
|
-
const built = join(packageRoot, "dist/grok/production-host.js");
|
|
27
|
-
const source = join(packageRoot, "src/grok/production-host.ts");
|
|
28
|
-
// Prefer the built artifact (plain node); fall back to source under tsx tests.
|
|
29
|
-
const target = existsSync(built) ? built : source;
|
|
30
|
-
const href = pathToFileURL(target).href;
|
|
31
|
-
const mod = (await import(href)) as {
|
|
32
|
-
createProductionGrokRoleTurnHost: ProductionGrokHostFactory;
|
|
33
|
-
};
|
|
34
|
-
return mod.createProductionGrokRoleTurnHost;
|
|
35
|
-
}
|