mirror of
https://github.com/openclaw/openclaw.git
synced 2026-10-03 17:53:39 +00:00
The bundleDependencies change in #160015 exposed exact-path closure checks rejecting valid undici CommonJS requires. Resolve require edges with Node file and directory rules while keeping ESM imports strict, and carry package metadata through bootstrap inspection. Restore cloud-session dispatch on the next Gateway update. Add checker and transferred-artifact regressions; verify a real undici 8.10.2 bootstrap artifact without starting or stopping a Gateway.
20 lines
682 B
TypeScript
20 lines
682 B
TypeScript
export type PackageDistImport = { importerPath: string; importedPath: string; kind?: "require" };
|
|
|
|
export function collectPackageDistImportErrors(
|
|
params: { files: readonly string[]; packageJsons?: ReadonlyMap<string, string> } & (
|
|
| {
|
|
readText: (relativePath: string) => string;
|
|
imports?: readonly PackageDistImport[];
|
|
}
|
|
| {
|
|
imports: readonly PackageDistImport[];
|
|
readText?: (relativePath: string) => string;
|
|
}
|
|
),
|
|
): string[];
|
|
|
|
export function collectPackageDistImports(params: {
|
|
files: readonly string[];
|
|
packageJsons?: ReadonlyMap<string, string>;
|
|
readText: (relativePath: string) => string;
|
|
}): PackageDistImport[];
|