@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.
@@ -1,13 +1,6 @@
1
1
  import { lstatSync, realpathSync, statSync, writeFileSync, } from "node:fs";
2
- import { dirname, isAbsolute, join, resolve } from "node:path";
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 { childSessionManager } = await import("./activation-ledger-session.js");
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: childSessionManager(context.sessionManager, workspace, "evidence-children"),
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) => {