From 7f452cbd758e7b0a1f033e27002c2b64de509e73 Mon Sep 17 00:00:00 2001 From: Dotta Date: Mon, 5 Oct 2026 14:01:46 -0500 Subject: [PATCH] Align the second registry fixture with the package-local probe boundary Carry the existing downstream probe import and partial mock, preserving all original exports and readiness assertions. All 112 affected server tests pass. The other prerequisites and readiness branch already have this exact test blob, so no shipping or downstream source changes are needed. Co-Authored-By: Paperclip --- server/src/__tests__/adapter-registry.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/src/__tests__/adapter-registry.test.ts b/server/src/__tests__/adapter-registry.test.ts index 730717d33f..3e95942501 100644 --- a/server/src/__tests__/adapter-registry.test.ts +++ b/server/src/__tests__/adapter-registry.test.ts @@ -1,4 +1,4 @@ -import { probeAcpxClaudeInstallation, probeAcpxPiInstallation } from "@paperclipai/paperclip-runner/live"; +import { probeAcpxClaudeInstallation, probeAcpxPiInstallation } from "../vendor/paperclip-runner/index.js"; import { describe, expect, it, beforeEach, afterEach, vi } from "vitest"; import { buildSandboxNpmInstallCommand } from "@paperclipai/adapter-utils"; import type { ServerAdapterModule } from "../adapters/index.js"; @@ -17,7 +17,8 @@ import { setOverridePaused, } from "../adapters/registry.js"; -vi.mock("@paperclipai/paperclip-runner/live", () => ({ +vi.mock("../vendor/paperclip-runner/index.js", async (importOriginal) => ({ + ...await importOriginal(), probeAcpxClaudeInstallation: vi.fn(async () => undefined), probeAcpxGrokInstallation: vi.fn(async () => undefined), probeAcpxPiInstallation: vi.fn(async () => undefined),