jeopi-cli 16.6.13 → 16.6.14

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.
@@ -12,7 +12,7 @@ import { USER_INTERRUPT_LABEL } from "../session/messages";
12
12
  import { SessionManager } from "../session/session-manager";
13
13
  import { createMessengerActivityTracker } from "./activity";
14
14
  import { messengerArtifactPrompt } from "./artifacts";
15
- import { messengerConversationKey } from "./gateway";
15
+ import { messengerSessionRoute } from "./gateway";
16
16
  import { type MessengerConfig, MessengerFatalError, type MessengerReply } from "./types";
17
17
 
18
18
  const SUPPORTED_TOOLS: Record<string, true> = {
@@ -146,9 +146,7 @@ export function createMessengerSessionBridge(
146
146
  if (!directory.isDirectory() || directory.isSymbolicLink())
147
147
  throw new Error("Invalid messenger session directory");
148
148
  await fs.chmod(sessionDir, 0o700);
149
- const route = new Bun.CryptoHasher("sha256")
150
- .update(JSON.stringify([cwd, messengerConversationKey(message)]))
151
- .digest("hex");
149
+ const route = messengerSessionRoute(cwd, message);
152
150
  // Deterministic filenames are the route map; missing files are created atomically by SessionManager.
153
151
  const file = path.join(sessionDir, `${route}.jsonl`);
154
152
  const stat = await fs.lstat(file).catch((error: unknown) => {