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

@@ -3,30 +3,24 @@ import { describe, expect, it } from "vitest";
import {
createAuditEvent,
createStoredIdempotencyResponse,
buildTenantSettingsRowCreateInput,
buildTenantSettingsRowUpdateInput,
databaseBoundary,
findOptionalTenantSettingsEntity,
findTenantSettingsEntity,
findTenantWithSettingsById,
getDatabaseBoundary,
PRISMA_GENERATED_CLIENT_PATH,
PRISMA_MIGRATIONS_PATH,
PRISMA_SCHEMA_PATH,
prismaOwnershipMetadata,
tenantSettingsDetailsInclude,
} from ".";
describe("@toolctrl/db boundary metadata", () => {
describe("@hivegrid/db boundary metadata", () => {
it("documents the current Prisma ownership boundary", () => {
expect(getDatabaseBoundary()).toBe(databaseBoundary);
expect(databaseBoundary).toMatchObject({
packageName: "@toolctrl/db",
packageName: "@hivegrid/db",
orm: "prisma",
schemaPath: PRISMA_SCHEMA_PATH,
migrationsPath: PRISMA_MIGRATIONS_PATH,
generatedClientPath: PRISMA_GENERATED_CLIENT_PATH,
serverClientEntrypoint: "@toolctrl/db/client.server",
serverClientEntrypoint: "@hivegrid/db/client.server",
});
});
@@ -51,39 +45,14 @@ describe("@toolctrl/db boundary metadata", () => {
);
});
it("exposes the tenant settings boundary from the package root", () => {
it("exposes the audit + idempotency boundary from the package root", () => {
expect(createAuditEvent).toEqual(expect.any(Function));
expect(createStoredIdempotencyResponse).toEqual(expect.any(Function));
expect(findOptionalTenantSettingsEntity).toEqual(expect.any(Function));
expect(findTenantSettingsEntity).toEqual(expect.any(Function));
expect(findTenantWithSettingsById).toEqual(expect.any(Function));
expect(buildTenantSettingsRowCreateInput).toEqual(expect.any(Function));
expect(buildTenantSettingsRowUpdateInput).toEqual(expect.any(Function));
expect(tenantSettingsDetailsInclude).toEqual(
expect.objectContaining({
tenantSettingsRow: { include: { row: expect.any(Object) } },
}),
);
});
it("exposes the tenant settings boundary subpath export", async () => {
const settingsBoundary = await import("@toolctrl/db/settings.server");
expect(settingsBoundary).toEqual(
expect.objectContaining({
findOptionalTenantSettingsEntity,
findTenantSettingsEntity,
findTenantWithSettingsById,
buildTenantSettingsRowCreateInput,
buildTenantSettingsRowUpdateInput,
tenantSettingsDetailsInclude,
}),
);
});
it("exposes audit and idempotency boundary subpath exports", async () => {
const auditBoundary = await import("@toolctrl/db/audit-events.server");
const idempotencyBoundary = await import("@toolctrl/db/idempotency-keys.server");
const auditBoundary = await import("@hivegrid/db/audit-events.server");
const idempotencyBoundary = await import("@hivegrid/db/idempotency-keys.server");
expect(auditBoundary.createAuditEvent).toBe(createAuditEvent);
expect(idempotencyBoundary.createStoredIdempotencyResponse).toBe(