fix(ci): keep approval type contracts off runtime imports

This commit is contained in:
Vincent Koc
2026-06-16 20:04:22 +02:00
parent 8d159e1ff8
commit 875669e38e
3 changed files with 9 additions and 6 deletions

View File

@@ -1,7 +1,7 @@
// Defines channel-native approval handler runtime types.
import type { OpenClawConfig } from "../config/types.openclaw.js";
import type { ChannelApprovalNativePlannedTarget } from "./approval-native-delivery.js";
import type { PreparedChannelNativeApprovalTarget } from "./approval-native-runtime.js";
import type { PreparedChannelNativeApprovalTarget } from "./approval-native-runtime-types.js";
import type { ChannelApprovalKind } from "./approval-types.js";
import type {
ExpiredApprovalView,

View File

@@ -14,7 +14,11 @@ import {
} from "../config/sessions.js";
import { getActivePluginRegistry, setActivePluginRegistry } from "../plugins/runtime.js";
import { buildAgentPeerSessionKey } from "../routing/session-key.js";
import { createOutboundTestPlugin, createTestRegistry } from "../test-utils/channel-plugins.js";
import {
createDirectOutboundTestAdapter,
createOutboundTestPlugin,
createTestRegistry,
} from "../test-utils/channel-plugins.js";
import { typedCases } from "../test-utils/typed-cases.js";
import {
type HeartbeatDeps,
@@ -292,9 +296,7 @@ beforeAll(async () => {
const discordPlugin = createOutboundTestPlugin({
id: "discord",
outbound: {
deliveryMode: "direct",
},
outbound: createDirectOutboundTestAdapter({ channel: "discord" }),
});
testRegistry = createTestRegistry([

View File

@@ -858,7 +858,7 @@ describe("test-projects args", () => {
{
config: "test/vitest/vitest.unit-fast.config.ts",
forwardedArgs: [],
includePatterns: ["src/install-sh-version.test.ts"],
includePatterns: ["src/install-sh-version.test.ts", "test/scripts/android-version.test.ts"],
watchMode: false,
},
{
@@ -874,6 +874,7 @@ describe("test-projects args", () => {
"src/scripts/docs-link-audit.test.ts",
"src/scripts/sync-plugin-versions.test.ts",
"test/helpers/temp-dir.test.ts",
"test/scripts/android-pin-version.test.ts",
"test/scripts/ios-configure-signing.test.ts",
"test/scripts/ios-pin-version.test.ts",
"test/scripts/ios-team-id.test.ts",