fix: align extension boundary guardrails for landing (#60153)

This commit is contained in:
Peter Steinberger
2026-04-03 22:51:43 +09:00
parent 0c0d84fbd9
commit 96e8352bda
4 changed files with 20 additions and 9 deletions

View File

@@ -1,6 +1,9 @@
export { buildAgentMediaPayload } from "openclaw/plugin-sdk/media-runtime";
export { resolveChannelContextVisibilityMode } from "openclaw/plugin-sdk/config-runtime";
export type { ClawdbotConfig, RuntimeEnv } from "../runtime-api.js";
export {
buildAgentMediaPayload,
resolveChannelContextVisibilityMode,
type ClawdbotConfig,
type RuntimeEnv,
} from "../runtime-api.js";
export {
evaluateSupplementalContextVisibility,
filterSupplementalContextItems,

View File

@@ -5,11 +5,12 @@ export type {
ClawdbotConfig,
} from "../runtime-api.js";
export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
export { createActionGate } from "openclaw/plugin-sdk/channel-actions";
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
export {
buildChannelConfigSchema,
buildProbeChannelStatusSummary,
chunkTextForOutbound,
createActionGate,
createDefaultChannelRuntimeState,
DEFAULT_ACCOUNT_ID,
PAIRING_APPROVED_MESSAGE,
} from "openclaw/plugin-sdk/channel-status";
export { chunkTextForOutbound, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/feishu";
} from "../runtime-api.js";

View File

@@ -67,7 +67,9 @@ function isTestLikeFile(relativePath) {
return (
/(^|\/)(__tests__|fixtures|test|tests|test-support)\//.test(relativePath) ||
/(^|\/)test-support\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(relativePath) ||
/(^|\/)[^/]*test-(support|helpers)\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(relativePath) ||
/(^|\/)[^/]*test-(support|helpers|fixtures)\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(
relativePath,
) ||
/\.(test|spec)\.(ts|tsx|mts|cts|js|jsx|mjs|cjs)$/.test(relativePath)
);
}

View File

@@ -14,7 +14,12 @@ function isProductionExtensionFile(filePath: string): boolean {
filePath.includes(".snap") ||
filePath.includes("test-harness") ||
filePath.includes("test-support") ||
filePath.includes("test-helpers") ||
filePath.includes("test-fixtures") ||
filePath.includes("/__tests__/") ||
filePath.includes("/fixtures/") ||
filePath.includes("/test/") ||
filePath.includes("/tests/") ||
filePath.includes("/coverage/") ||
filePath.includes("/dist/") ||
filePath.includes("/node_modules/")