Update hivegrid-cloud reference to latest main
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e98d38e716
commit
7b21524c86
3781 files changed
+373484
-225607
No files matched your search
@@ -6,7 +6,7 @@ import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
|
||||
import { bootstrapOutboxDispatcher, type OutboxDispatcherBootstrapDeps } from "./bootstrap.js";
|
||||
import type { DispatcherLogger } from "./dispatcher.js";
|
||||
import type { OutboxEvent } from "@toolctrl/db/outbox";
|
||||
import type { OutboxEvent } from "@hivegrid/db/outbox";
|
||||
|
||||
const sourceDir = dirname(fileURLToPath(import.meta.url));
|
||||
|
||||
@@ -19,7 +19,7 @@ const queueRuntimeMocks = vi.hoisted(() => ({
|
||||
})),
|
||||
}));
|
||||
|
||||
vi.mock("@toolctrl/queue/runtime", () => ({
|
||||
vi.mock("@hivegrid/queue/runtime", () => ({
|
||||
createQueue: queueRuntimeMocks.createQueue,
|
||||
}));
|
||||
|
||||
@@ -66,8 +66,8 @@ describe("bootstrapOutboxDispatcher", () => {
|
||||
it("imports outbox claim helpers through the dedicated db subpath", async () => {
|
||||
const source = await readFile(join(sourceDir, "bootstrap.ts"), "utf8");
|
||||
|
||||
expect(source).toContain('from "@toolctrl/db/outbox-claim"');
|
||||
expect(source).not.toMatch(/from\s+["']@toolctrl\/db["']/);
|
||||
expect(source).toContain('from "@hivegrid/db/outbox-claim"');
|
||||
expect(source).not.toMatch(/from\s+["']@hivegrid\/db["']/);
|
||||
});
|
||||
|
||||
it("returns disabled when OUTBOX_DISPATCHER_ENABLED is 'false'", async () => {
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import type { EnvRecord } from "@toolctrl/config";
|
||||
import { claimPendingOutboxEvents, OUTBOX_CLAIM_DEFAULT_LIMIT, type OutboxClaimRunner } from "@toolctrl/db/outbox-claim";
|
||||
import type { OutboxEvent } from "@toolctrl/db/outbox";
|
||||
import type { ErrorReporter } from "@toolctrl/error-reporter";
|
||||
import { parseRedisUrl } from "@toolctrl/queue";
|
||||
import type { EnvRecord } from "@hivegrid/config";
|
||||
import { claimPendingOutboxEvents, OUTBOX_CLAIM_DEFAULT_LIMIT, type OutboxClaimRunner } from "@hivegrid/db/outbox-claim";
|
||||
import type { OutboxEvent } from "@hivegrid/db/outbox";
|
||||
import type { ErrorReporter } from "@hivegrid/error-reporter";
|
||||
import { parseRedisUrl } from "@hivegrid/queue";
|
||||
import { workerLogger } from "../logger.js";
|
||||
import { getWorkerMetrics } from "../metrics.js";
|
||||
import { workerErrorReporter } from "../sentry.js";
|
||||
@@ -76,7 +76,7 @@ function parseInteger(value: string | undefined, fallback: number): number {
|
||||
*/
|
||||
async function createDefaultEnqueue(redisUrl: string): Promise<ClosableDispatcherQueueEnqueuer> {
|
||||
const connection = parseRedisUrl(redisUrl);
|
||||
const { createQueue } = (await import("@toolctrl/queue/runtime")) as {
|
||||
const { createQueue } = (await import("@hivegrid/queue/runtime")) as {
|
||||
createQueue: (name: string, options: { connection: typeof connection }) => {
|
||||
add(name: string, data: unknown, options?: unknown): Promise<unknown>;
|
||||
close?: () => Promise<void>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
|
||||
import type { OutboxEvent } from "@toolctrl/db/outbox";
|
||||
import type { OutboxEvent } from "@hivegrid/db/outbox";
|
||||
import {
|
||||
OUTBOX_DEFAULT_DISPATCH_CONCURRENCY,
|
||||
OUTBOX_DEFAULT_MAX_RETRIES,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { OutboxEvent } from "@toolctrl/db/outbox";
|
||||
import type { OutboxEvent } from "@hivegrid/db/outbox";
|
||||
import { workerLogger } from "../logger.js";
|
||||
import { resolveOutboxQueueName, type EventRoutingRule } from "./event-router.js";
|
||||
|
||||
|
||||
Reference in new issue
Block a user