From dff6f2976285f8e745d7c36941c77e7a3d964d41 Mon Sep 17 00:00:00 2001 From: MaxxxDong <186893345+MaxxxDong@users.noreply.github.com> Date: Sat, 21 Mar 2026 13:29:47 +0800 Subject: [PATCH] fix(plugin-sdk): narrow config runtime session exports --- src/plugin-sdk/config-runtime.ts | 12 ++++++------ .../plugin-extension-import-boundary-inventory.json | 8 -------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/src/plugin-sdk/config-runtime.ts b/src/plugin-sdk/config-runtime.ts index 3836f15508d..1f542f27368 100644 --- a/src/plugin-sdk/config-runtime.ts +++ b/src/plugin-sdk/config-runtime.ts @@ -73,17 +73,16 @@ export type { TelegramTopicConfig, TtsConfig, } from "../config/types.js"; +export { resolveStorePath } from "../config/sessions/paths.js"; +export { resolveSessionKey } from "../config/sessions/session-key.js"; export { loadSessionStore, readSessionUpdatedAt, recordSessionMetaFromInbound, - resolveSessionKey, - resolveStorePath, + resolveSessionStoreEntry, updateLastRoute, updateSessionStore, - type SessionResetMode, - type SessionScope, -} from "../config/sessions.js"; +} from "../config/sessions/store.js"; export { resolveGroupSessionKey } from "../config/sessions/group.js"; export { evaluateSessionFreshness, @@ -91,6 +90,7 @@ export { resolveSessionResetPolicy, resolveSessionResetType, resolveThreadFlag, + type SessionResetMode, } from "../config/sessions/reset.js"; -export { resolveSessionStoreEntry } from "../config/sessions/store.js"; +export type { SessionScope } from "../config/sessions/types.js"; export { isDangerousNameMatchingEnabled } from "../config/dangerous-name-matching.js"; diff --git a/test/fixtures/plugin-extension-import-boundary-inventory.json b/test/fixtures/plugin-extension-import-boundary-inventory.json index 0894fe0d5b5..ead171321f9 100644 --- a/test/fixtures/plugin-extension-import-boundary-inventory.json +++ b/test/fixtures/plugin-extension-import-boundary-inventory.json @@ -31,14 +31,6 @@ "resolvedPath": "extensions/imessage/runtime-api.js", "reason": "imports extension-owned file from src/plugins" }, - { - "file": "src/plugins/runtime/runtime-matrix.ts", - "line": 4, - "kind": "import", - "specifier": "../../../extensions/matrix/runtime-api.js", - "resolvedPath": "extensions/matrix/runtime-api.js", - "reason": "imports extension-owned file from src/plugins" - }, { "file": "src/plugins/runtime/runtime-slack-ops.runtime.ts", "line": 10,