fix(ci): repair extension type drift · openclaw/openclaw@4d95ae3
steipete
·
2026-05-31
·
via Recent Commits to openclaw:main
File tree
slack/src/monitor/message-handler
| Original file line number | Diff line number | Diff line change |
|---|
@@ -9,7 +9,7 @@ import {
|
9 | 9 | type AcpRuntimeTurn, |
10 | 10 | } from "../runtime-api.js"; |
11 | 11 | import { OPENCLAW_ACPX_LEASE_ID_ARG, OPENCLAW_GATEWAY_INSTANCE_ID_ARG } from "./process-lease.js"; |
12 | | -import { AcpxRuntime, testing } from "./runtime.js"; |
| 12 | +import { AcpxRuntime, testing, type AcpSessionStore } from "./runtime.js"; |
13 | 13 | |
14 | 14 | type TestSessionStore = { |
15 | 15 | load(sessionId: string): Promise<Record<string, unknown> | undefined>; |
@@ -55,7 +55,7 @@ function makeRuntime(
|
55 | 55 | const runtime = new AcpxRuntime( |
56 | 56 | { |
57 | 57 | cwd: "/tmp", |
58 | | -sessionStore: baseStore, |
| 58 | +sessionStore: baseStore as unknown as AcpSessionStore, |
59 | 59 | agentRegistry: { |
60 | 60 | resolve: (agentName: string) => (agentName === "openclaw" ? "openclaw acp" : agentName), |
61 | 61 | list: () => ["codex", "openclaw"], |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -238,7 +238,7 @@ function createResetAwareSessionStore(
|
238 | 238 | ...(record as Record<string, unknown>), |
239 | 239 | openclawLeaseId: lease.leaseId, |
240 | 240 | openclawGatewayInstanceId: lease.gatewayInstanceId, |
241 | | -} as AcpLoadedSessionRecord; |
| 241 | +} as unknown as AcpLoadedSessionRecord; |
242 | 242 | }, |
243 | 243 | async save(record: AcpSessionRecord): Promise<void> { |
244 | 244 | let recordToSave = record; |
@@ -273,7 +273,7 @@ function createResetAwareSessionStore(
|
273 | 273 | agentCommand: stableAgentCommand, |
274 | 274 | openclawLeaseId: launch.leaseId, |
275 | 275 | openclawGatewayInstanceId: launch.gatewayInstanceId, |
276 | | -} as AcpSessionRecord; |
| 276 | +} as unknown as AcpSessionRecord; |
277 | 277 | } |
278 | 278 | await baseStore.save(recordToSave); |
279 | 279 | if (sessionName) { |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -750,7 +750,6 @@ class GoogleRealtimeVoiceBridge implements RealtimeVoiceBridge {
|
750 | 750 | ); |
751 | 751 | } |
752 | 752 | |
753 | | -let emittedAssistantText = false; |
754 | 753 | for (const part of content.modelTurn?.parts ?? []) { |
755 | 754 | if (part.inlineData?.data) { |
756 | 755 | const pcm = Buffer.from(part.inlineData.data, "base64"); |
@@ -766,7 +765,6 @@ class GoogleRealtimeVoiceBridge implements RealtimeVoiceBridge {
|
766 | 765 | continue; |
767 | 766 | } |
768 | 767 | if (!content.outputTranscription?.text && typeof part.text === "string" && part.text.trim()) { |
769 | | -emittedAssistantText = true; |
770 | 768 | this.config.onTranscript?.("assistant", part.text, content.turnComplete ?? false); |
771 | 769 | } |
772 | 770 | } |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1159,7 +1159,7 @@ export async function dispatchPreparedSlackMessage(prepared: PreparedSlackMessag
|
1159 | 1159 | } |
1160 | 1160 | } |
1161 | 1161 | |
1162 | | -const result = await deliverWithFinalizableLivePreviewAdapter({ |
| 1162 | +await deliverWithFinalizableLivePreviewAdapter({ |
1163 | 1163 | kind: info.kind, |
1164 | 1164 | payload, |
1165 | 1165 | adapter: defineFinalizableLivePreviewAdapter({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。