mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-21 08:22:20 +02:00
Cover computer environment support in adapter capability tests
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
fc1f2b040f
commit
2d7eddd175
1 file changed
+19
@@ -13,9 +13,28 @@ describe("isSandboxProviderSupportedForAdapter", () => {
|
||||
"local",
|
||||
"ssh",
|
||||
"sandbox",
|
||||
"computer",
|
||||
]);
|
||||
});
|
||||
|
||||
it.each(["claude_local", "codex_local", "paperclip_runner"] as const)(
|
||||
"exposes computer environments for %s",
|
||||
(adapterType) => {
|
||||
const capabilities = getEnvironmentCapabilities([adapterType]);
|
||||
expect(supportedEnvironmentDriversForAdapter(adapterType)).toContain("computer");
|
||||
expect(capabilities.adapters[0].drivers.computer).toBe("supported");
|
||||
},
|
||||
);
|
||||
|
||||
it.each(["cursor", "gemini_local", "grok_local", "kimi_local", "openclaw"] as const)(
|
||||
"does not advertise unqualified computer support for %s",
|
||||
(adapterType) => {
|
||||
const capabilities = getEnvironmentCapabilities([adapterType]);
|
||||
expect(supportedEnvironmentDriversForAdapter(adapterType)).not.toContain("computer");
|
||||
expect(capabilities.adapters[0].drivers.computer).toBe("unsupported");
|
||||
},
|
||||
);
|
||||
|
||||
it("accepts additional sandbox providers for remote-managed adapters", () => {
|
||||
expect(
|
||||
isSandboxProviderSupportedForAdapter("codex_local", "fake-plugin", ["fake-plugin"]),
|
||||
|
||||
Reference in new issue
Block a user