@akagilnc/pi-workflow-roles 0.1.1831 → 0.1.1840
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/activation-ledger-session.js +1 -8
- package/dist/evidence-child-executor.js +6 -2
- package/dist/public-cli/main.js +182 -221
- package/dist/sitian-record-entry.js +24 -29
- package/dist/sitian-role-run-coordinates.js +28 -0
- package/package.json +1 -1
- package/scripts/build-package.mjs +2 -0
- package/src/activation-ledger-session.ts +1 -10
- package/src/evidence-child-executor.ts +6 -2
- package/src/public-cli/invocation.ts +16 -72
- package/src/public-cli/merger-run.ts +4 -16
- package/src/public-cli/run-lifecycle.ts +8 -10
- package/src/sitian-record-entry.ts +4 -0
- package/src/sitian-role-run-coordinates.ts +45 -0
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
import { lstatSync, realpathSync, statSync, writeFileSync, } from "node:fs";
|
|
2
|
-
import { dirname, isAbsolute,
|
|
3
|
-
import { SessionManager } from "@earendil-works/pi-coding-agent";
|
|
2
|
+
import { dirname, isAbsolute, resolve } from "node:path";
|
|
4
3
|
import { activationBookDirectory, ensureRealDirectoryTree, errnoCode, errorText, pathContainedIn, } from "./activation-ledger-topology.js";
|
|
5
|
-
export function childSessionManager(parent, cwd, childDirectory) {
|
|
6
|
-
const parentSession = parent?.getSessionFile();
|
|
7
|
-
return parentSession === undefined
|
|
8
|
-
? SessionManager.inMemory(cwd)
|
|
9
|
-
: SessionManager.create(cwd, join(parent.getSessionDir(), childDirectory), { parentSession });
|
|
10
|
-
}
|
|
11
4
|
/**
|
|
12
5
|
* Typed missing durable session principal. Callers discriminate with instanceof/code;
|
|
13
6
|
* never by parsing message prose. Original filesystem causes are retained.
|
|
@@ -313,7 +313,7 @@ export async function executeEvidenceChild(workspace, prompt, context, options =
|
|
|
313
313
|
: { parentDirectory: options.credentialScratchParent }),
|
|
314
314
|
}, async (childConfigDir) => {
|
|
315
315
|
const { openInProcessAgentSession } = await import("./in-process-session.js");
|
|
316
|
-
const {
|
|
316
|
+
const { createRecordSession } = await import("./sitian-record-entry.js");
|
|
317
317
|
let inherited;
|
|
318
318
|
try {
|
|
319
319
|
inherited = await createInheritedRuntime({
|
|
@@ -337,7 +337,11 @@ export async function executeEvidenceChild(workspace, prompt, context, options =
|
|
|
337
337
|
"Use the available evidence tools to investigate. Do not commit, push, or mutate remotes.",
|
|
338
338
|
"Return one substantive non-blank report.",
|
|
339
339
|
].join("\n"),
|
|
340
|
-
sessionManager:
|
|
340
|
+
sessionManager: createRecordSession({
|
|
341
|
+
cwd: workspace,
|
|
342
|
+
kind: "evidence-children",
|
|
343
|
+
...(context.sessionManager === undefined ? {} : { parent: context.sessionManager }),
|
|
344
|
+
}),
|
|
341
345
|
});
|
|
342
346
|
const usage = emptyUsage();
|
|
343
347
|
const unsubscribe = session.subscribe((event) => {
|