Update hivegrid-cloud reference to latest main

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
davidandClaude Fable 5 committed 2026-07-08 16:15:37 +02:00
1 parent e98d38e716
commit 7b21524c86
3781 files changed
+373484 -225607

No files matched your search

@@ -106,7 +106,11 @@ export function createRoutesFromFolders(defineRoutes: DefineRoutesFunction, opti
for (let routeId of childRouteIds) {
let routePath: string | undefined = createRoutePath(routeId.slice((parentId || routesDirectory).length + 1));
let isIndexRoute = routeId.endsWith("/index");
// Index when the parent-relative path resolves to nothing and the final
// segment is the index marker. Supports the v1 `index` filename and the
// v2 flat `_index` filename. A flat `foo._index` (relative path "foo") is
// NOT an index — it is the leaf route at `/foo`.
let isIndexRoute = routePath === undefined && /(?:^|[/.])_?index$/.test(routeId);
let fullPath = createRoutePath(routeId.slice(routesDirectory.length + 1));
fullPath = promoteTenantAppRoutePath(fullPath);
routePath = promoteTenantAppRoutePath(routePath);
@@ -196,7 +200,11 @@ export function createRoutesFromFolders(defineRoutes: DefineRoutesFunction, opti
for (let routeId of childRouteIds) {
const routePath = createAdminHostRoutePath(routeId, parentId);
let isIndexRoute = routeId.endsWith("/index");
// Index when the parent-relative path resolves to nothing and the final
// segment is the index marker. Supports the v1 `index` filename and the
// v2 flat `_index` filename. A flat `foo._index` (relative path "foo") is
// NOT an index — it is the leaf route at `/foo`.
let isIndexRoute = routePath === undefined && /(?:^|[/.])_?index$/.test(routeId);
if (isIndexRoute) {
defineRoute(routePath, files[routeId], { index: true, id: getAdminHostRouteId(routeId) });
@@ -297,8 +305,8 @@ export function createRoutePath(partialRouteId: string): string | undefined {
}
if (isSegmentSeparator(char)) {
if (rawSegmentBuffer === "index" && result.endsWith("index")) {
result = result.replace(/\/?index$/, "");
if ((rawSegmentBuffer === "index" || rawSegmentBuffer === "_index") && result.endsWith("index")) {
result = result.replace(/\/?_?index$/, "");
} else {
result += "/";
}
@@ -327,13 +335,13 @@ export function createRoutePath(partialRouteId: string): string | undefined {
result += char;
}
if (rawSegmentBuffer === "index" && result.endsWith("index")) {
result = result.replace(/\/?index$/, "");
if ((rawSegmentBuffer === "index" || rawSegmentBuffer === "_index") && result.endsWith("index")) {
result = result.replace(/\/?_?index$/, "");
} else {
result = result.replace(/\/$/, "");
}
if (rawSegmentBuffer === "index" && result.endsWith("index?")) {
if ((rawSegmentBuffer === "index" || rawSegmentBuffer === "_index") && result.endsWith("index?")) {
throw new Error(`Invalid route path: ${partialRouteId}. Make index route optional by using (index)`);
}