mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-22 06:32:00 +00:00
fix(ci): restore extension test runtime deps and update voice-call expectations
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
},
|
||||
"dependencies": {
|
||||
"@pierre/diffs": "1.1.5",
|
||||
"@pierre/theme": "0.0.22",
|
||||
"@sinclair/typebox": "0.34.48",
|
||||
"playwright-core": "1.58.2"
|
||||
},
|
||||
|
||||
@@ -4,7 +4,7 @@ import type { ThemeRegistrationResolved } from "@pierre/diffs";
|
||||
import { RegisteredCustomThemes, ResolvedThemes, ResolvingThemes } from "@pierre/diffs";
|
||||
|
||||
type PierreThemeName = "pierre-dark" | "pierre-light";
|
||||
const diffsRequire = createRequire(import.meta.resolve("@pierre/diffs"));
|
||||
const themeRequire = createRequire(import.meta.url);
|
||||
const PIERRE_THEME_SPECS = [
|
||||
["pierre-dark", "@pierre/theme/themes/pierre-dark.json"],
|
||||
["pierre-light", "@pierre/theme/themes/pierre-light.json"],
|
||||
@@ -19,7 +19,7 @@ function createThemeLoader(
|
||||
if (cachedTheme) {
|
||||
return cachedTheme;
|
||||
}
|
||||
const themePath = diffsRequire.resolve(themeSpecifier);
|
||||
const themePath = themeRequire.resolve(themeSpecifier);
|
||||
cachedTheme = {
|
||||
...(JSON.parse(await fs.readFile(themePath, "utf8")) as Record<string, unknown>),
|
||||
name: themeName,
|
||||
|
||||
@@ -236,9 +236,12 @@ describe("voice-call outbound helpers", () => {
|
||||
}),
|
||||
);
|
||||
expect(transitionStateMock).toHaveBeenCalledWith(call, "hangup-bot");
|
||||
expect(clearMaxDurationTimerMock).toHaveBeenCalledWith(ctx, "call-1");
|
||||
expect(clearMaxDurationTimerMock).toHaveBeenCalledWith(
|
||||
{ maxDurationTimers: ctx.maxDurationTimers },
|
||||
"call-1",
|
||||
);
|
||||
expect(rejectTranscriptWaiterMock).toHaveBeenCalledWith(
|
||||
ctx,
|
||||
{ transcriptWaiters: ctx.transcriptWaiters },
|
||||
"call-1",
|
||||
"Call ended: hangup-bot",
|
||||
);
|
||||
@@ -273,7 +276,11 @@ describe("voice-call outbound helpers", () => {
|
||||
}),
|
||||
);
|
||||
expect(transitionStateMock).toHaveBeenCalledWith(call, "timeout");
|
||||
expect(rejectTranscriptWaiterMock).toHaveBeenCalledWith(ctx, "call-1", "Call ended: timeout");
|
||||
expect(rejectTranscriptWaiterMock).toHaveBeenCalledWith(
|
||||
{ transcriptWaiters: ctx.transcriptWaiters },
|
||||
"call-1",
|
||||
"Call ended: timeout",
|
||||
);
|
||||
});
|
||||
|
||||
it("handles missing, disconnected, and already-ended calls", async () => {
|
||||
|
||||
11
pnpm-lock.yaml
generated
11
pnpm-lock.yaml
generated
@@ -319,6 +319,9 @@ importers:
|
||||
'@pierre/diffs':
|
||||
specifier: 1.1.5
|
||||
version: 1.1.5(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||
'@pierre/theme':
|
||||
specifier: 0.0.22
|
||||
version: 0.0.22
|
||||
'@sinclair/typebox':
|
||||
specifier: 0.34.48
|
||||
version: 0.34.48
|
||||
@@ -3682,8 +3685,8 @@ packages:
|
||||
link-preview-js:
|
||||
optional: true
|
||||
|
||||
'@whiskeysockets/libsignal-node@git+https://github.com/whiskeysockets/libsignal-node.git#1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67':
|
||||
resolution: {commit: 1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67, repo: https://github.com/whiskeysockets/libsignal-node.git, type: git}
|
||||
'@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67':
|
||||
resolution: {tarball: https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67}
|
||||
version: 2.0.1
|
||||
|
||||
abbrev@1.1.1:
|
||||
@@ -10267,7 +10270,7 @@ snapshots:
|
||||
'@cacheable/node-cache': 1.7.6
|
||||
'@hapi/boom': 9.1.4
|
||||
async-mutex: 0.5.0
|
||||
libsignal: '@whiskeysockets/libsignal-node@git+https://github.com/whiskeysockets/libsignal-node.git#1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67'
|
||||
libsignal: '@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67'
|
||||
lru-cache: 11.2.6
|
||||
music-metadata: 11.12.3
|
||||
p-queue: 9.1.0
|
||||
@@ -10283,7 +10286,7 @@ snapshots:
|
||||
- supports-color
|
||||
- utf-8-validate
|
||||
|
||||
'@whiskeysockets/libsignal-node@git+https://github.com/whiskeysockets/libsignal-node.git#1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67':
|
||||
'@whiskeysockets/libsignal-node@https://codeload.github.com/whiskeysockets/libsignal-node/tar.gz/1c30d7d7e76a3b0aa120b04dc6a26f5a12dccf67':
|
||||
dependencies:
|
||||
curve25519-js: 0.0.4
|
||||
protobufjs: 6.8.8
|
||||
|
||||
Reference in New Issue
Block a user