mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-01 18:07:00 +01:00
Use vendored Cursor readiness probes in public installations
A clean public installation reproduced a missing development-only Runner import. Route readiness through the built vendor boundary and assert the installed Cursor probe in the public package verifier. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
31785af33b
commit
2684979803
3 files changed
+11
-1
No files matched your search
@@ -86,6 +86,7 @@ import { createHash } from 'node:crypto';
|
||||
import { execFileSync } from 'node:child_process';
|
||||
import { defaultCapabilityRunnerdBinary } from '/consumer/node_modules/@paperclipai/server/dist/vendor/paperclip-runner/live/runnerd-codex-transport.js';
|
||||
import { resolvePaperclipRunnerBinary } from '/consumer/node_modules/@paperclipai/server/dist/services/native-runtime/native-codex-runner.js';
|
||||
import { requireServerAdapter } from '/consumer/node_modules/@paperclipai/server/dist/adapters/registry.js';
|
||||
import { runnerBinaryTarget } from '/consumer/node_modules/@paperclipai/server/dist/vendor/paperclip-runner/live/runner-binary.js';
|
||||
import { bundledRemoteRunnerBinary, bundledRemoteProviderPackManifestPath } from '/consumer/node_modules/@paperclipai/server/dist/vendor/paperclip-runner/live/bundled-remote-provider-pack.js';
|
||||
import { verifyAcpxProfileInstallation } from '/consumer/node_modules/@paperclipai/server/dist/vendor/paperclip-runner/drivers/acpx/profile-installation.js';
|
||||
@@ -96,6 +97,9 @@ assert.equal(installation.agentServerPackageJsonPath,'/consumer/node_modules/@pa
|
||||
assert.equal(installation.agentRuntimePackageJsonPath,null);
|
||||
assert.equal(installation.commandDigest,profile.commandDigest);
|
||||
await (await installation.openCommand()).close();
|
||||
const readiness = await requireServerAdapter('paperclip_runner').testEnvironment({ companyId: 'installation-probe', adapterType: 'paperclip_runner', config: { provider: 'acpx', acpxAgent: 'cursor', model: profile.reportedModelId } });
|
||||
assert.equal(readiness.status, 'pass', JSON.stringify(readiness));
|
||||
assert.equal(readiness.checks[0]?.code, 'acpx_runtime_ready');
|
||||
const binaryRoot = '/consumer/node_modules/@paperclipai/server/dist/vendor/paperclip-runner/bin';
|
||||
const manifest = JSON.parse(readFileSync(binaryRoot + '/release-manifest.json', 'utf8'));
|
||||
assert.equal(manifest.schema, 'paperclip.runner.release-binaries.v1');
|
||||
|
||||
@@ -434,7 +434,7 @@ const paperclipRunnerAdapter: ServerAdapterModule = {
|
||||
message: "The remote platform is supported. Runtime package integrity and readiness must still be verified by the remote runner before launch." }],
|
||||
};
|
||||
}
|
||||
const { probeAcpxClaudeInstallation, probeAcpxGrokInstallation, probeAcpxCursorInstallation } = await import("@paperclipai/paperclip-runner/live");
|
||||
const { probeAcpxClaudeInstallation, probeAcpxGrokInstallation, probeAcpxCursorInstallation } = await import("../vendor/paperclip-runner/live/index.js");
|
||||
await (profile.acpxAgent === "grok" ? probeAcpxGrokInstallation : profile.acpxAgent === "cursor" ? probeAcpxCursorInstallation : probeAcpxClaudeInstallation)(profile.model);
|
||||
return {
|
||||
adapterType: "paperclip_runner", status: "pass" as const, testedAt: new Date().toISOString(),
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
/** Development boundary; the server build replaces this with Runner dist/live. */
|
||||
export {
|
||||
probeAcpxClaudeInstallation,
|
||||
probeAcpxGrokInstallation,
|
||||
probeAcpxCursorInstallation,
|
||||
} from "@paperclipai/paperclip-runner/live";
|
||||
Reference in new issue
Block a user