Skip to content

Commit 4d95ae3

Browse files
committed
fix(ci): repair extension type drift
1 parent e678225 commit 4d95ae3

4 files changed

Lines changed: 5 additions & 7 deletions

File tree

‎extensions/acpx/src/runtime.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
type AcpRuntimeTurn,
1010
} from "../runtime-api.js";
1111
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";
1313

1414
type TestSessionStore = {
1515
load(sessionId: string): Promise<Record<string, unknown> | undefined>;
@@ -55,7 +55,7 @@ function makeRuntime(
5555
const runtime = new AcpxRuntime(
5656
{
5757
cwd: "/tmp",
58-
sessionStore: baseStore,
58+
sessionStore: baseStore as unknown as AcpSessionStore,
5959
agentRegistry: {
6060
resolve: (agentName: string) => (agentName === "openclaw" ? "openclaw acp" : agentName),
6161
list: () => ["codex", "openclaw"],

‎extensions/acpx/src/runtime.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function createResetAwareSessionStore(
238238
...(record as Record<string, unknown>),
239239
openclawLeaseId: lease.leaseId,
240240
openclawGatewayInstanceId: lease.gatewayInstanceId,
241-
} as AcpLoadedSessionRecord;
241+
} as unknown as AcpLoadedSessionRecord;
242242
},
243243
async save(record: AcpSessionRecord): Promise<void> {
244244
let recordToSave = record;
@@ -273,7 +273,7 @@ function createResetAwareSessionStore(
273273
agentCommand: stableAgentCommand,
274274
openclawLeaseId: launch.leaseId,
275275
openclawGatewayInstanceId: launch.gatewayInstanceId,
276-
} as AcpSessionRecord;
276+
} as unknown as AcpSessionRecord;
277277
}
278278
await baseStore.save(recordToSave);
279279
if (sessionName) {

‎extensions/google/realtime-voice-provider.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,6 @@ class GoogleRealtimeVoiceBridge implements RealtimeVoiceBridge {
750750
);
751751
}
752752

753-
let emittedAssistantText = false;
754753
for (const part of content.modelTurn?.parts ?? []) {
755754
if (part.inlineData?.data) {
756755
const pcm = Buffer.from(part.inlineData.data, "base64");
@@ -766,7 +765,6 @@ class GoogleRealtimeVoiceBridge implements RealtimeVoiceBridge {
766765
continue;
767766
}
768767
if (!content.outputTranscription?.text && typeof part.text === "string" && part.text.trim()) {
769-
emittedAssistantText = true;
770768
this.config.onTranscript?.("assistant", part.text, content.turnComplete ?? false);
771769
}
772770
}

‎extensions/slack/src/monitor/message-handler/dispatch.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1159,7 +1159,7 @@ export async function dispatchPreparedSlackMessage(prepared: PreparedSlackMessag
11591159
}
11601160
}
11611161

1162-
const result = await deliverWithFinalizableLivePreviewAdapter({
1162+
await deliverWithFinalizableLivePreviewAdapter({
11631163
kind: info.kind,
11641164
payload,
11651165
adapter: defineFinalizableLivePreviewAdapter({

0 commit comments

Comments
 (0)