mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-08 11:02:26 +00:00
fix(ci): keep approval type contracts off runtime imports
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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([
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user