refactor(agents): clarify prompt cache compatibility gates

This commit is contained in:
Peter Steinberger
2026-04-16 14:58:07 -07:00
parent d59604b15e
commit a98754d504
2 changed files with 25 additions and 23 deletions

View File

@@ -65,16 +65,16 @@ describe("scripts/bundle-a2ui.mjs", () => {
const repoRoot = process.cwd();
const dependencyPaths = getResolvedBundleDependencyPackageJsonPaths(repoRoot);
const relativeDependencyPaths = dependencyPaths.map((dependencyPath) =>
path.relative(repoRoot, dependencyPath),
path.relative(repoRoot, dependencyPath).replaceAll(path.sep, "/"),
);
expect(
relativeDependencyPaths.map((relativePath) => relativePath.replace(/^ui\//u, "")),
).toEqual([
path.join("node_modules", "lit", "package.json"),
path.join("node_modules", "@lit/context", "package.json"),
path.join("node_modules", "@lit-labs/signals", "package.json"),
path.join("node_modules", "signal-utils", "package.json"),
path.posix.join("node_modules", "lit", "package.json"),
path.posix.join("node_modules", "@lit/context", "package.json"),
path.posix.join("node_modules", "@lit-labs/signals", "package.json"),
path.posix.join("node_modules", "signal-utils", "package.json"),
]);
expect(
relativeDependencyPaths.every((relativePath) => /^(ui\/)?node_modules\//u.test(relativePath)),