Files
PaperClipAI/tests/runner-e2e/acpx-native-origin.ts
T
DottaandPaperclip e2b89b6302 Integrate pinned Cursor ACP runtime and explicit public setup
Consolidate Cursor v10 onto current controller behavior, retain admission gates, and prepare native interaction and cleanup qualification. Add the public provisioner and ordinary provider-pack assets.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
2026-10-03 13:33:15 -05:00

10 lines
558 B
TypeScript

/** The embedded driver and runtime sidecar are the two production ACPX bridges.
* Keep provider and native method exact; semantic tools are not native proof.
*/
export function hasAcpxNativeOrigin(origin: unknown, provider: string, method: string): boolean {
if (origin === null || typeof origin !== "object" || Array.isArray(origin)) return false;
const value = origin as Record<string, unknown>;
return (value.adapter === "acpx-runtime" || value.adapter === "acpx-runtime-sidecar")
&& value.provider === provider && value.method === method;
}