mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-11-28 21:46:15 +01:00
feat(runner): add native Hermes ACP qualification candidate
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
75abb6a774
commit
9e07748e91
97 files changed
+2866
-197
No files matched your search
@@ -14,7 +14,7 @@ export const aiConnectionPoolMemberSchema = z.object({
|
||||
binding: aiConnectionBindingSchema.refine((v) => v.mode !== "responsible_user", "Select an explicit account grant"),
|
||||
profile: z.object({
|
||||
provider: z.enum(["codex", "acpx", "opencode"]),
|
||||
acpxAgent: z.enum(["claude", "grok"]).optional(),
|
||||
acpxAgent: z.enum(["claude", "grok", "hermes"]).optional(),
|
||||
model: z.string().trim().min(1).max(256),
|
||||
effort: z.string().trim().min(1).max(32).optional(),
|
||||
}).strict(),
|
||||
|
||||
@@ -123,11 +123,12 @@ export function isAiConnectionCompatible(
|
||||
// A fixed binding contains identity only. The service checks authoritative
|
||||
// connection metadata before resolving credentials or running the harness.
|
||||
if ("mode" in requirement && requirement.mode !== "responsible_user" && requirement.method === "api_key")
|
||||
return ["claude_local", "codex_local", "opencode_local", "hermes_local", "gemini_local", "grok_local"].includes(adapterType);
|
||||
return ["claude_local", "codex_local", "opencode_local", "hermes_local", "hermes_runner", "gemini_local", "grok_local"].includes(adapterType);
|
||||
const methods = AI_CONNECTION_CAPABILITIES[requirement.provider].methods;
|
||||
const candidates = "mode" in requirement && requirement.mode === "responsible_user"
|
||||
? Object.values(methods)
|
||||
: requirement.method ? [methods[requirement.method]] : [];
|
||||
if (adapterType === "hermes_runner") return candidates.some(Boolean);
|
||||
return (
|
||||
candidates.some((method) => method?.adapters.includes(adapterType)) &&
|
||||
(requirement.provider !== "openrouter" ||
|
||||
|
||||
@@ -82,7 +82,7 @@ export function aiRoutingHarness(
|
||||
): string {
|
||||
if (adapter !== "paperclip_runner") return adapter;
|
||||
const runner =
|
||||
provider === "acpx" && (acpxAgent === "claude" || acpxAgent === "grok")
|
||||
provider === "acpx" && (acpxAgent === "claude" || acpxAgent === "grok" || acpxAgent === "hermes")
|
||||
? acpxAgent
|
||||
: provider;
|
||||
return (
|
||||
@@ -92,6 +92,7 @@ export function aiRoutingHarness(
|
||||
codex: "codex_local",
|
||||
opencode: "opencode_local",
|
||||
grok: "grok_local",
|
||||
hermes: "hermes_runner",
|
||||
} as Record<string, string>
|
||||
)[String(runner)] ?? "unsupported"
|
||||
);
|
||||
@@ -100,6 +101,7 @@ export function isAiRoutingCompatible(
|
||||
route: AiProviderRouting,
|
||||
harness: string,
|
||||
): boolean {
|
||||
if (harness === "hermes_runner") return true;
|
||||
if (route.kind === "bedrock") return harness === "claude_local";
|
||||
if (route.kind === "openrouter")
|
||||
return [
|
||||
|
||||
Reference in new issue
Block a user