fix(memory): route transcript corpus core types through runtime bridges

#163234 gave session-transcript-corpus.ts and its new types file direct
imports of core modules (CanonicalSessionReaderContinuation and
OpenClawConfig). The memory-host-sdk boundary contract only allows core
references from the openclaw-runtime-*.ts bridge files, so
extension-package-project-boundaries.test.ts went red on main.

Re-export the continuation type from openclaw-runtime-session.ts and take
OpenClawConfig from openclaw-runtime-config.ts. Type-only; no runtime change.

Proof: extension-package-project-boundaries.test.ts 10/10,
session-transcript-corpus.test.ts 13/13, tsgo:core clean.
This commit is contained in:
Peter Steinberger 2026-10-02 01:55:13 -07:00
parent b2ded4bcde
commit 2516be90f1
No known key found for this signature in database
3 changed files with 3 additions and 2 deletions

View file

@ -67,6 +67,7 @@ export {
type SessionTranscriptInstance,
} from "../../../../src/config/sessions/session-history.js";
export { resolveSessionTranscriptsDirForAgent } from "../../../../src/config/sessions/paths.js";
export type { CanonicalSessionReaderContinuation } from "../../../../src/config/sessions/session-canonical-key.js";
export type { SessionEntry } from "../../../../src/config/sessions/types.js";
export { isExecCompletionEvent } from "../../../../src/infra/heartbeat-events-filter.js";
export {

View file

@ -2,13 +2,13 @@
import fsSync, { type BigIntStats, type Dirent } from "node:fs";
import fs from "node:fs/promises";
import path from "node:path";
import type { CanonicalSessionReaderContinuation } from "../../../../src/config/sessions/session-canonical-key.js";
import { normalizeAgentId } from "./config-utils.js";
import { isFileMissingError, normalizeComparablePath } from "./fs-utils.js";
import {
isDreamingNarrativeSessionStoreKey,
extractAgentIdFromSessionsDir,
canonicalizeMainSessionAlias,
type CanonicalSessionReaderContinuation,
cloneEnvWithPlatformSemantics,
getRuntimeConfig,
isCronRunSessionKey,

View file

@ -1,4 +1,4 @@
import type { OpenClawConfig } from "../../../../src/config/types.openclaw.js";
import type { OpenClawConfig } from "./openclaw-runtime-config.js";
import type { MemorySessionKind } from "./types.js";
type SessionTranscriptCorpusArtifactKind =