























@@ -210,7 +210,7 @@ function firstEnsureModelsJsonCall(): [
210210providerDiscoveryProviderIds?: string[];
211211},
212212] {
213-const call = hoisted.ensureOpenClawModelsJson.mock.calls.at(0);
213+const call = hoisted.ensureOpenClawModelsJson.mock.calls[0];
214214if (!call || call.length < 3) {
215215throw new Error("expected ensureOpenClawModelsJson call");
216216}
@@ -227,13 +227,13 @@ function firstEnsureModelsJsonCall(): [
227227function firstPrewarmCall(
228228prewarmPrimaryModel: ReturnType<typeof vi.fn>,
229229): [{ workspaceDir?: string }] {
230-return prewarmPrimaryModel.mock.calls.at(0) as [{ workspaceDir?: string }];
230+return prewarmPrimaryModel.mock.calls[0] as [{ workspaceDir?: string }];
231231}
232232233233function firstGatewayStartCall(
234234runGatewayStart: ReturnType<typeof vi.fn>,
235235): [PluginHookGatewayStartEvent, PluginHookGatewayContext] {
236-const call = runGatewayStart.mock.calls.at(0);
236+const call = runGatewayStart.mock.calls[0];
237237if (!call) {
238238throw new Error("gateway_start was not invoked");
239239}
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。