fix(ci): keep approval type contracts off runtime imports · openclaw/openclaw@875669e
vincentkoc
·
2026-06-17
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Defines channel-native approval handler runtime types. |
2 | 2 | import type { OpenClawConfig } from "../config/types.openclaw.js"; |
3 | 3 | import type { ChannelApprovalNativePlannedTarget } from "./approval-native-delivery.js"; |
4 | | -import type { PreparedChannelNativeApprovalTarget } from "./approval-native-runtime.js"; |
| 4 | +import type { PreparedChannelNativeApprovalTarget } from "./approval-native-runtime-types.js"; |
5 | 5 | import type { ChannelApprovalKind } from "./approval-types.js"; |
6 | 6 | import type { |
7 | 7 | ExpiredApprovalView, |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -14,7 +14,11 @@ import {
|
14 | 14 | } from "../config/sessions.js"; |
15 | 15 | import { getActivePluginRegistry, setActivePluginRegistry } from "../plugins/runtime.js"; |
16 | 16 | import { buildAgentPeerSessionKey } from "../routing/session-key.js"; |
17 | | -import { createOutboundTestPlugin, createTestRegistry } from "../test-utils/channel-plugins.js"; |
| 17 | +import { |
| 18 | +createDirectOutboundTestAdapter, |
| 19 | +createOutboundTestPlugin, |
| 20 | +createTestRegistry, |
| 21 | +} from "../test-utils/channel-plugins.js"; |
18 | 22 | import { typedCases } from "../test-utils/typed-cases.js"; |
19 | 23 | import { |
20 | 24 | type HeartbeatDeps, |
@@ -292,9 +296,7 @@ beforeAll(async () => {
|
292 | 296 | |
293 | 297 | const discordPlugin = createOutboundTestPlugin({ |
294 | 298 | id: "discord", |
295 | | -outbound: { |
296 | | -deliveryMode: "direct", |
297 | | -}, |
| 299 | +outbound: createDirectOutboundTestAdapter({ channel: "discord" }), |
298 | 300 | }); |
299 | 301 | |
300 | 302 | testRegistry = createTestRegistry([ |
|
| Original file line number | Diff line number | Diff line change |
|---|
@@ -858,7 +858,7 @@ describe("test-projects args", () => {
|
858 | 858 | { |
859 | 859 | config: "test/vitest/vitest.unit-fast.config.ts", |
860 | 860 | forwardedArgs: [], |
861 | | -includePatterns: ["src/install-sh-version.test.ts"], |
| 861 | +includePatterns: ["src/install-sh-version.test.ts", "test/scripts/android-version.test.ts"], |
862 | 862 | watchMode: false, |
863 | 863 | }, |
864 | 864 | { |
@@ -874,6 +874,7 @@ describe("test-projects args", () => {
|
874 | 874 | "src/scripts/docs-link-audit.test.ts", |
875 | 875 | "src/scripts/sync-plugin-versions.test.ts", |
876 | 876 | "test/helpers/temp-dir.test.ts", |
| 877 | +"test/scripts/android-pin-version.test.ts", |
877 | 878 | "test/scripts/ios-configure-signing.test.ts", |
878 | 879 | "test/scripts/ios-pin-version.test.ts", |
879 | 880 | "test/scripts/ios-team-id.test.ts", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。