From cb24ec64f240f878f659fe9b8d4e2949d0c2b8df Mon Sep 17 00:00:00 2001 From: quotentiroler Date: Sun, 8 Feb 2026 05:35:04 -0800 Subject: [PATCH] fix: use .js extension for ESM imports of RoutePeerKind The imports incorrectly used .ts extension which doesn't resolve with moduleResolution: NodeNext. Changed to .js and added 'type' import modifier. --- src/config/types.agents.ts | 3 ++- src/routing/session-key.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config/types.agents.ts b/src/config/types.agents.ts index b6cb71bf580..4d333429998 100644 --- a/src/config/types.agents.ts +++ b/src/config/types.agents.ts @@ -1,3 +1,4 @@ +import type { RoutePeerKind } from "../routing/resolve-route.js"; import type { AgentDefaultsConfig } from "./types.agent-defaults.js"; import type { HumanDelayConfig, IdentityConfig } from "./types.base.js"; import type { GroupChatConfig } from "./types.messages.js"; @@ -74,7 +75,7 @@ export type AgentBinding = { match: { channel: string; accountId?: string; - peer?: { kind: "dm" | "group" | "channel"; id: string }; + peer?: { kind: RoutePeerKind; id: string }; guildId?: string; teamId?: string; }; diff --git a/src/routing/session-key.ts b/src/routing/session-key.ts index ad1d16431a7..9215cdb9955 100644 --- a/src/routing/session-key.ts +++ b/src/routing/session-key.ts @@ -1,3 +1,4 @@ +import type { RoutePeerKind } from "./resolve-route.js"; import { parseAgentSessionKey, type ParsedAgentSessionKey } from "../sessions/session-key-utils.js"; export { @@ -140,7 +141,7 @@ export function buildAgentPeerSessionKey(params: { mainKey?: string | undefined; channel: string; accountId?: string | null; - peerKind?: "dm" | "group" | "channel" | null; + peerKind?: RoutePeerKind | null; peerId?: string | null; identityLinks?: Record; /** DM session scope. */