mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-05 00:43:54 +02:00
fix: align extension boundary guardrails for landing (#60153)
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -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/")
|
||||
|
||||
Reference in New Issue
Block a user