Skip to content

Commit de1e13c

Browse files
committed
chore: fix CI regressions after rebasing feishu lanes PR
1 parent 09abb6b commit de1e13c

4 files changed

Lines changed: 9 additions & 11 deletions

File tree

‎extensions/discord/src/monitor/rest-fetch.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export function resolveDiscordRestFetch(
2424
}) as unknown as Promise<Response>
2525
).then((response) => {
2626
captureHttpExchange({
27-
url: resolveRequestUrl(input),
2827
url: resolveRequestUrl(input),
2928
method: init?.method ?? "GET",
3029
requestHeaders: init?.headers as Headers | Record<string, string> | undefined,
@@ -35,7 +34,6 @@ export function resolveDiscordRestFetch(
3534
});
3635
return response;
3736
})) as typeof fetch);
38-
})) as typeof fetch);
3937
});
4038
if (!fetcher) {
4139
return fetch;

‎src/agents/openai-ws-connection.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { randomUUID } from "node:crypto";
1515
*/
1616
import { EventEmitter } from "node:events";
1717
import WebSocket, { type ClientOptions } from "ws";
18-
import { rawDataToString } from "../infra/ws.js";
1918
import { createDebugProxyWebSocketAgent, resolveDebugProxySettings } from "../proxy-capture/env.js";
2019
import { captureWsEvent } from "../proxy-capture/runtime.js";
2120
import { buildOpenAIWebSocketWarmUpPayload } from "./openai-ws-request.js";

‎src/gateway/server-channels.test.ts‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
2+
import type { ChannelRuntimeSurface } from "../channels/plugins/channel-runtime-surface.types.js";
23
import { type ChannelId, type ChannelPlugin } from "../channels/plugins/types.js";
34
import {
45
createSubsystemLogger,
@@ -110,8 +111,8 @@ function installTestRegistry(...plugins: ChannelPlugin<TestAccount>[]) {
110111
}
111112

112113
function createManager(options?: {
113-
channelRuntime?: PluginRuntime["channel"];
114-
resolveChannelRuntime?: () => PluginRuntime["channel"];
114+
channelRuntime?: ChannelRuntimeSurface;
115+
resolveChannelRuntime?: () => ChannelRuntimeSurface;
115116
loadConfig?: () => Record<string, unknown>;
116117
channelIds?: ChannelId[];
117118
}) {
@@ -224,8 +225,8 @@ describe("server-channels auto restart", () => {
224225
const channelRuntime = {
225226
...createRuntimeChannel(),
226227
marker: "channel-runtime",
227-
} as PluginRuntime["channel"] & { marker: string };
228-
const startAccount = vi.fn(async (_ctx: { channelRuntime?: PluginRuntime["channel"] }) => {});
228+
} as ChannelRuntimeSurface & { marker: string };
229+
const startAccount = vi.fn(async (_ctx: { channelRuntime?: ChannelRuntimeSurface }) => {});
229230

230231
installTestRegistry(createTestPlugin({ startAccount }));
231232
const manager = createManager({ channelRuntime });
@@ -287,9 +288,9 @@ describe("server-channels auto restart", () => {
287288
const channelRuntime = {
288289
...createRuntimeChannel(),
289290
marker: "lazy-channel-runtime",
290-
} as PluginRuntime["channel"] & { marker: string };
291+
} as ChannelRuntimeSurface & { marker: string };
291292
const resolveChannelRuntime = vi.fn(() => channelRuntime);
292-
const startAccount = vi.fn(async (_ctx: { channelRuntime?: PluginRuntime["channel"] }) => {});
293+
const startAccount = vi.fn(async (_ctx: { channelRuntime?: ChannelRuntimeSurface }) => {});
293294

294295
installTestRegistry(createTestPlugin({ startAccount }));
295296
const manager = createManager({ resolveChannelRuntime });
@@ -336,7 +337,7 @@ describe("server-channels auto restart", () => {
336337
},
337338
};
338339
const startAccount = vi.fn(
339-
async ({ channelRuntime }: { channelRuntime?: PluginRuntime["channel"] }) => {
340+
async ({ channelRuntime }: { channelRuntime?: ChannelRuntimeSurface }) => {
340341
channelRuntime?.runtimeContexts.register({
341342
channelId: "discord",
342343
accountId: DEFAULT_ACCOUNT_ID,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
export type { ChannelRuntimeContextKey } from "../channels/plugins/channel-runtime-surface.types.js";
12
export {
23
getChannelRuntimeContext,
34
registerChannelRuntimeContext,
45
watchChannelRuntimeContexts,
5-
type ChannelRuntimeContextKey,
66
} from "../infra/channel-runtime-context.js";

0 commit comments

Comments
 (0)