mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-09 07:02:55 +00:00
refactor: extract normalization core package
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.
This commit is contained in:
committed by
GitHub
parent
94814f3516
commit
00d8d7ead0
@@ -5,6 +5,7 @@ import type { createJiti } from "jiti";
|
||||
import { toSafeImportPath } from "../shared/import-specifier.js";
|
||||
import { tryNativeRequireJavaScriptModule } from "./native-module-require.js";
|
||||
import { PluginLruCache } from "./plugin-cache-primitives.js";
|
||||
import { installOpenClawInternalCorePackageNativeResolver } from "./plugin-sdk-native-resolver.js";
|
||||
import {
|
||||
buildPluginLoaderJitiOptions,
|
||||
createPluginLoaderModuleCacheKey,
|
||||
@@ -291,6 +292,7 @@ export function getCachedPluginModuleLoader(
|
||||
createLoader?: PluginModuleLoaderFactory;
|
||||
},
|
||||
): PluginModuleLoader {
|
||||
installOpenClawInternalCorePackageNativeResolver({ moduleUrl: params.importerUrl });
|
||||
const cacheEntry = resolvePluginModuleLoaderCacheEntry(params);
|
||||
const cached = params.cache.get(cacheEntry.scopedCacheKey);
|
||||
if (cached) {
|
||||
|
||||
Reference in New Issue
Block a user