mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 16:21:38 +00:00
fix: satisfy strict typecheck for catalog source guard and imported message cast
This commit is contained in:
@@ -1310,7 +1310,7 @@ async function importClaudeHistory(params: {
|
||||
const message = {
|
||||
...(importedClaudeMessage(item, Date.now() + index) as unknown as Record<string, unknown>),
|
||||
idempotencyKey: `claude-catalog:${params.threadId}:${item.uuid ?? index}`,
|
||||
} as AgentMessage;
|
||||
} as unknown as AgentMessage;
|
||||
await transcript.appendMessage({
|
||||
message,
|
||||
idempotencyLookup: "scan",
|
||||
|
||||
@@ -362,7 +362,7 @@ function boundedCatalogString(
|
||||
type CodexInteractiveThreadSourceKind = (typeof CODEX_INTERACTIVE_THREAD_SOURCE_KINDS)[number];
|
||||
|
||||
function isInteractiveThreadSource(
|
||||
source: string | null | undefined,
|
||||
source: CodexThread["source"] | string | null | undefined,
|
||||
): source is CodexInteractiveThreadSourceKind {
|
||||
return CODEX_INTERACTIVE_THREAD_SOURCE_KINDS.some((kind) => kind === source);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user