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

@@ -26,7 +26,7 @@ vi.mock("~/utils/db.server", () => ({
},
}));
vi.mock("@toolctrl/db/audit-events.server", () => ({
vi.mock("@hivegrid/db/audit-events.server", () => ({
createAuditEvent: (...args: unknown[]) => auditMock(...args),
publishAuditEventViaOutbox: (...args: unknown[]) => auditOutboxMock(...args),
}));
@@ -273,7 +273,7 @@ describe("plugin lifecycle capability grants", () => {
test("rejects production hook consent grants for registered hooks outside the production allowlist", async () => {
process.env.NODE_ENV = "production";
process.env.PLUGIN_RUNTIME_PRODUCTION_ENABLED = "true";
const { registerHook } = await import("@toolctrl/plugin-runtime");
const { registerHook } = await import("@hivegrid/plugin-runtime");
const { z } = await import("zod");
registerHook({
name: "billing.refunded",
@@ -404,7 +404,7 @@ describe("plugin lifecycle capability grants", () => {
test("rejects enable for registered hooks outside the production allowlist", async () => {
process.env.NODE_ENV = "production";
process.env.PLUGIN_RUNTIME_PRODUCTION_ENABLED = "true";
const { registerHook } = await import("@toolctrl/plugin-runtime");
const { registerHook } = await import("@hivegrid/plugin-runtime");
const { z } = await import("zod");
registerHook({
name: "billing.failed",
@@ -25,7 +25,7 @@ vi.mock("~/utils/db.server", () => ({
},
}));
vi.mock("@toolctrl/db/audit-events.server", () => ({
vi.mock("@hivegrid/db/audit-events.server", () => ({
createAuditEvent: (...args: unknown[]) => auditCreate(...args),
publishAuditEventViaOutbox: (...args: unknown[]) => auditOutbox(...args),
}));
@@ -200,7 +200,7 @@ describe("PluginLifecycleService", () => {
process.env.PLUGIN_RUNTIME_PRODUCTION_ENABLED = "true";
process.env.PLUGIN_INSTALL_SKIP_BINARY_VERIFY = "false";
process.env.PLUGIN_REQUIRE_CAPABILITY_CONSENT = "true";
const { registerHook } = await import("@toolctrl/plugin-runtime");
const { registerHook } = await import("@hivegrid/plugin-runtime");
const { z } = await import("zod");
registerHook({
name: "billing.paid",
@@ -35,8 +35,8 @@ import {
getPluginHook,
type PluginManifest,
type PluginVersionConstraints,
} from "@toolctrl/plugin-runtime";
import { createAuditEvent, publishAuditEventViaOutbox } from "@toolctrl/db/audit-events.server";
} from "@hivegrid/plugin-runtime";
import { createAuditEvent, publishAuditEventViaOutbox } from "@hivegrid/db/audit-events.server";
import { createScopedLogger } from "~/utils/logger.server";
import rootPackageJson from "../../../../../../../package.json" with { type: "json" };
import { getPluginConsentRequirements, isPluginHookConsentName } from "../../utils/pluginConsentRequirements";
@@ -5,7 +5,7 @@ import { createHash } from "node:crypto";
import os from "node:os";
import path from "node:path";
import { beforeEach, describe, expect, test, vi } from "vitest";
import type { PluginManifest } from "@toolctrl/plugin-runtime";
import type { PluginManifest } from "@hivegrid/plugin-runtime";
const getPluginForTenantMock = vi.fn();
const publishAuditEventViaOutboxMock = vi.fn();
@@ -20,7 +20,7 @@ const dbMock = {
vi.mock("./PluginLifecycleService", () => ({
getPluginForTenant: (...args: unknown[]) => getPluginForTenantMock(...args),
}));
vi.mock("@toolctrl/db/audit-events.server", () => ({
vi.mock("@hivegrid/db/audit-events.server", () => ({
publishAuditEventViaOutbox: (...args: unknown[]) => publishAuditEventViaOutboxMock(...args),
}));
vi.mock("~/utils/db.server", () => ({
@@ -1,8 +1,8 @@
import { promises as fs } from "node:fs";
import { createHash } from "node:crypto";
import path from "node:path";
import type { PluginManifest } from "@toolctrl/plugin-runtime";
import { publishAuditEventViaOutbox } from "@toolctrl/db/audit-events.server";
import type { PluginManifest } from "@hivegrid/plugin-runtime";
import { publishAuditEventViaOutbox } from "@hivegrid/db/audit-events.server";
import { db } from "~/utils/db.server";
import {
PLUGIN_SETTING_VALUE_MAX_BYTES,
@@ -49,11 +49,11 @@ vi.mock("~/utils/db.server", () => ({
},
}));
vi.mock("@toolctrl/db/outbox", () => ({
vi.mock("@hivegrid/db/outbox", () => ({
publishOutboxEvent: getMocks().publishOutboxEvent,
}));
vi.mock("@toolctrl/plugin-runtime", () => ({
vi.mock("@hivegrid/plugin-runtime", () => ({
emitPluginHook: getMocks().emitPluginHook,
PluginHookValidationError: TestPluginHookValidationError,
}));
@@ -21,12 +21,12 @@ import { db } from "~/utils/db.server";
import {
publishOutboxEvent,
type OutboxPublisherTransaction,
} from "@toolctrl/db/outbox";
} from "@hivegrid/db/outbox";
import {
emitPluginHook,
PluginHookValidationError,
type PluginHookDefinition,
} from "@toolctrl/plugin-runtime";
} from "@hivegrid/plugin-runtime";
import { createScopedLogger } from "~/utils/logger.server";
const pluginHookLogger = createScopedLogger("plugin-hook-publisher");