Refresh HiveGrid Cloud reference snapshot

This commit is contained in:
david committed 2026-08-03 15:31:14 +02:00
1 parent 5e99e14772
commit 7f88026f79
5955 files changed
+1177325 -188362

No files matched your search

@@ -38,7 +38,7 @@ function isRouteMethod(value: string): value is RouteMethod {
}
function documentedRouteKeys(text: string) {
return Array.from(text.matchAll(/^\| `([A-Z]+) (\/[^`]+)` \|/gm), (match) => {
return Array.from(text.matchAll(/^\|\s+`([A-Z]+) (\/[^`]+)`\s+\|/gm), (match) => {
const method = match[1] ?? "";
const path = match[2] ?? "";
if (!isRouteMethod(method)) {
@@ -62,9 +62,11 @@ describe("route access inventory documentation", () => {
test("documents every classified route key from the typed inventory exactly once", () => {
const routeKeys = routeAccessInventory.map(routeAccessKey);
const missingRouteKeys = missingItems(routeKeys, routeAccessInventoryDoc);
const extraRouteKeys = documentedRouteKeys(routeAccessInventoryDoc).filter((key) => !routeKeys.includes(key)).sort();
const extraRouteKeys = documentedRouteKeys(routeAccessInventoryDoc)
.filter((key) => !routeKeys.includes(key))
.sort();
const duplicateRouteKeys = routeKeys
.filter((key) => routeAccessInventoryDoc.match(new RegExp(String.raw`\| \`${escapeRegExp(key)}\` \|`, "g"))?.length !== 1)
.filter((key) => routeAccessInventoryDoc.match(new RegExp(String.raw`\|\s+\`${escapeRegExp(key)}\`\s+\|`, "g"))?.length !== 1)
.sort();
expect(missingRouteKeys, `Missing route access inventory document route keys:\n${missingRouteKeys.join("\n")}`).toEqual([]);
@@ -73,16 +75,13 @@ describe("route access inventory documentation", () => {
});
test("keeps access classes and verification commands visible for future route changes", () => {
const missingAccessClasses = missingItems(
Array.from(new Set(routeAccessInventory.map((entry) => `\`${entry.accessClass}\``))),
routeAccessInventoryDoc,
);
const missingAccessClasses = missingItems(Array.from(new Set(routeAccessInventory.map((entry) => `\`${entry.accessClass}\``))), routeAccessInventoryDoc);
const missingVerificationCommands = missingItems(
[
"pnpm exec vitest run apps/api/src/route-access-inventory.test.ts apps/api/src/route-access-inventory-doc.test.ts",
"pnpm exec eslint apps/api/src/route-access-inventory.ts apps/api/src/route-access-inventory.test.ts apps/api/src/route-access-inventory-doc.test.ts --max-warnings=0",
],
routeAccessInventoryDoc,
routeAccessInventoryDoc
);
expect(missingAccessClasses, `Missing route access class legend entries:\n${missingAccessClasses.join("\n")}`).toEqual([]);
@@ -96,7 +95,7 @@ describe("route access inventory documentation", () => {
expect(
leakedMarkers.map((result) => `${result.pattern} matched ${JSON.stringify(result.match)}`),
`Forbidden secret-like markers in route access inventory document:\n${leakedMarkers.map((result) => `${result.pattern} matched ${JSON.stringify(result.match)}`).join("\n")}`,
`Forbidden secret-like markers in route access inventory document:\n${leakedMarkers.map((result) => `${result.pattern} matched ${JSON.stringify(result.match)}`).join("\n")}`
).toEqual([]);
});
});