Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
@@ -7,18 +7,27 @@ const FILENAME = fileURLToPath(import.meta.url);
|
||||
const REPO_ROOT = path.resolve(FILENAME, "..", "..");
|
||||
const ROUTES_DIR = path.join(REPO_ROOT, "apps", "web", "app", "routes");
|
||||
|
||||
// WF-P8 adds three reviewed tenant routes: the S04 board settings
|
||||
// (admin.pipelines.$pipelineId._index), the S05 field template
|
||||
// (admin.pipelines.$pipelineId.fields) and the S02 contact-search resource
|
||||
// (projects.$id.contact-search). BILL-13 adds the reviewed tenant-bound product
|
||||
// acquisition return route. Tenant 178 → 181, public/system 76 → 77 and total
|
||||
// 563 → 567.
|
||||
//
|
||||
// P4 adds one reviewed tenant resource route: the link-target search behind the
|
||||
// file detail's "Datei verknüpfen" dialog (files.link-targets), which replaced
|
||||
// the raw-id field. Tenant 181 → 182 and total 567 → 568.
|
||||
// BILL-14 adds one public, read-only registration plan-advice resource. Public
|
||||
// system 77 → 78 and total 568 → 569.
|
||||
// The appearance settings page adds one reviewed tenant route. Tenant 182 →
|
||||
// 183 and total 569 → 570.
|
||||
export const ROUTE_INVENTORY_BUDGETS = Object.freeze({
|
||||
admin: 167,
|
||||
// R-P11a: +1 default tenant search surface (`/search`, resource route included
|
||||
// in the current route count) for permission-aware global search. R-P11b:
|
||||
// +1 tenant dashboard SSE stream (`/dashboard.stream`) for live role dashboard
|
||||
// updates. R-P12a: +3 tenant automation surfaces (`/automations`, execution
|
||||
// list, execution detail) for the engine foundation. R-P12b: +2 tenant
|
||||
// automation editor surfaces (`/automations/:id/edit`, `/automations/templates`).
|
||||
tenant: 84,
|
||||
public_help_docs_internal: 58,
|
||||
optional: 208,
|
||||
total: 489,
|
||||
admin: 159,
|
||||
tenant: 184,
|
||||
public_help_docs_internal: 78,
|
||||
portal: 14,
|
||||
optional: 136,
|
||||
total: 571,
|
||||
});
|
||||
|
||||
const OPTIONAL_ROUTE_PATTERNS = Object.freeze([
|
||||
@@ -29,7 +38,10 @@ const OPTIONAL_ROUTE_PATTERNS = Object.freeze([
|
||||
/^e\.[co]\.\$outboundEmailId(\.|$)/,
|
||||
/^embed\.forms\./,
|
||||
/^f\.\$tenant\.\$slug(\.|$)/,
|
||||
/^integrations\.aircall\.oauth\./,
|
||||
/^integrations\.kwp\./,
|
||||
/^sign\.\$token(\.|$)/,
|
||||
/^webhooks\.telephony\.aircall(\.|$)/,
|
||||
/^internal\/api\/__workflows(\/|$)/,
|
||||
/^admin\/?__workflows(\/|$)/,
|
||||
/^admin\/ai(\/|$)/,
|
||||
@@ -41,12 +53,16 @@ const OPTIONAL_ROUTE_PATTERNS = Object.freeze([
|
||||
/^admin\/prompts(\.|\/|$)/,
|
||||
/^app\.\$tenant\/bookings(\.|\/|$)/,
|
||||
/^app\.\$tenant\/calendar(\.|\/|$)/,
|
||||
/^app\.\$tenant\/calls(\.|\/|$)/,
|
||||
/^app\.\$tenant\/forms(\.|\/|$)/,
|
||||
/^app\.\$tenant\/hr(\.|\/|$)/,
|
||||
/^app\.\$tenant\/settings\.integrations\.calendar(\.|\/|$)/,
|
||||
/^app\.\$tenant\/settings\/integrations\.calendar(\.|\/|$)/,
|
||||
/^app\.\$tenant\/settings\/chat(\.|\/|$)/,
|
||||
/^app\.\$tenant\/settings\.integrations\.telephony(\.|\/|$)/,
|
||||
/^app\.\$tenant\/telephony(\.|\/|$)/,
|
||||
/^app\.\$tenant\/__widgets(\/|$)/,
|
||||
/^app\.\$tenant\/__workflows(\/|$)/,
|
||||
/^app\.\$tenant\/chat(\/|$)/,
|
||||
/^app\.\$tenant\/chat(\.|\/|$)/,
|
||||
/^app\.\$tenant\/contacts(\.|\/|$)/,
|
||||
/^app\.\$tenant\/crm(\.|\/|$)/,
|
||||
/^app\.\$tenant\/email-marketing(\.|\/|$)/,
|
||||
@@ -74,6 +90,9 @@ async function walkRoutes(dir = ROUTES_DIR) {
|
||||
}
|
||||
|
||||
export function classifyRouteSurface(relativePath) {
|
||||
if (/^customer-portal(\/|$)/.test(relativePath)) {
|
||||
return "portal";
|
||||
}
|
||||
if (OPTIONAL_ROUTE_PATTERNS.some((pattern) => pattern.test(relativePath))) {
|
||||
return "optional";
|
||||
}
|
||||
@@ -88,19 +107,22 @@ export function classifyRouteSurface(relativePath) {
|
||||
|
||||
export function classifyRouteModule(relativePath) {
|
||||
const surface = classifyRouteSurface(relativePath);
|
||||
if (surface === "portal") {
|
||||
return "portal";
|
||||
}
|
||||
if (surface === "optional") {
|
||||
return "optional";
|
||||
}
|
||||
if (surface === "admin" || surface === "tenant") {
|
||||
return "default-enabled";
|
||||
}
|
||||
return "core";
|
||||
return "public-system";
|
||||
}
|
||||
|
||||
export async function scanRouteInventory() {
|
||||
const files = await walkRoutes();
|
||||
const surfaces = { admin: 0, tenant: 0, public_help_docs_internal: 0, optional: 0, total: files.length };
|
||||
const classifications = { core: 0, "default-enabled": 0, optional: 0 };
|
||||
const surfaces = { admin: 0, tenant: 0, public_help_docs_internal: 0, portal: 0, optional: 0, total: files.length };
|
||||
const classifications = { "public-system": 0, "default-enabled": 0, portal: 0, optional: 0 };
|
||||
|
||||
for (const file of files) {
|
||||
surfaces[classifyRouteSurface(file)] += 1;
|
||||
@@ -127,7 +149,7 @@ export async function runRouteInventoryGate({ logger = console } = {}) {
|
||||
writer(`${result.pass ? "PASS" : "FAIL"} route_inventory surface=${result.surface} count=${result.count} budget=${result.budget}`);
|
||||
}
|
||||
logger.log(
|
||||
`Route classifications: core=${inventory.classifications.core} default-enabled=${inventory.classifications["default-enabled"]} optional=${inventory.classifications.optional}`
|
||||
`Physical classifications: public-system=${inventory.classifications["public-system"]} default-enabled=${inventory.classifications["default-enabled"]} portal=${inventory.classifications.portal} optional=${inventory.classifications.optional}`
|
||||
);
|
||||
logger.log(`Summary: ${results.length - failures.length} passed, ${failures.length} failed`);
|
||||
return { inventory, results, failures };
|
||||
|
||||
Reference in new issue
Block a user