mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-04 07:54:04 +00:00
Extract shared normalization/coercion helpers into private @openclaw/normalization-core workspace package while preserving existing plugin SDK helper subpaths.\n\nAlso keeps direct normalization-core imports internal, wires UI/build/loader resolution, and replaces the slow PR network CodeQL lane with a fast added-line boundary scan while retaining full CodeQL for scheduled/manual runs.\n\nVerification: local moved tests, plugin SDK boundary tests, extension loader tests, agents-support shard, UI build/test, build artifacts, lint, workflow guards, autoreview, and GitHub CI passed on PR head 963d893715.
29 lines
707 B
JavaScript
29 lines
707 B
JavaScript
const TSDOWN_PACKAGE_NAMES = [
|
|
"agent-core",
|
|
"gateway-client",
|
|
"gateway-protocol",
|
|
"llm-core",
|
|
"llm-runtime",
|
|
"markdown-core",
|
|
"media-generation-core",
|
|
"media-understanding-common",
|
|
"model-catalog-core",
|
|
"net-policy",
|
|
"normalization-core",
|
|
"speech-core",
|
|
"terminal-core",
|
|
];
|
|
|
|
export const TSDOWN_PACKAGE_OUTPUT_ROOTS = TSDOWN_PACKAGE_NAMES.map(packageOutputRoot);
|
|
|
|
export function tsdownPackageOutputRoot(packageName) {
|
|
if (!TSDOWN_PACKAGE_NAMES.includes(packageName)) {
|
|
throw new Error(`Unknown tsdown package output root: ${packageName}`);
|
|
}
|
|
return packageOutputRoot(packageName);
|
|
}
|
|
|
|
function packageOutputRoot(packageName) {
|
|
return `packages/${packageName}/dist`;
|
|
}
|