mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-12-03 03:36:57 +01:00
feat(runner): add native Hermes ACP qualification candidate
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
424d9fced8
commit
ba9a809ea2
97 files changed
+2866
-197
No files matched your search
@@ -273,7 +273,7 @@ export function CodexLocalConfigFields({
|
||||
checked={runnerSchemaValue("allowUnmeteredProvider", false) === true} onChange={value => updateRunnerSchemaValue("allowUnmeteredProvider", value)} />
|
||||
</>}
|
||||
{runnerManaged && runnerProvider === "acpx" && runnerSchemaValue("acpxAgent", "claude") !== "grok" && (
|
||||
<Field configSection="adapter" label="ACP agent" hint="Cursor uses Paperclip questions; per-run cost is unavailable. GitHub Copilot and Pi await qualification.">
|
||||
<Field configSection="adapter" label="ACP agent" hint="Cursor uses Paperclip questions; per-run cost is unavailable. GitHub Copilot, Pi and Hermes await qualification.">
|
||||
<Select
|
||||
value={String(isCreate ? values!.adapterSchemaValues?.acpxAgent ?? "claude" : eff("adapterConfig", "acpxAgent", config.acpxAgent ?? "claude"))}
|
||||
onValueChange={(value) => {
|
||||
|
||||
@@ -36,6 +36,7 @@ export function aiProviderForAdapter(
|
||||
grok_local: "xai",
|
||||
gemini_local: "google",
|
||||
hermes_local: "openrouter",
|
||||
hermes_runner: "openrouter",
|
||||
} as Record<string, AiProvider>
|
||||
)[adapterType];
|
||||
}
|
||||
@@ -66,7 +67,8 @@ export function AiConnectionField({
|
||||
preferAdvanced?: boolean;
|
||||
routerAdapterType?: string;
|
||||
}) {
|
||||
const provider = aiProviderForAdapter(adapterType);
|
||||
const provider = adapterType === "hermes_runner" && value && value.mode !== "router"
|
||||
? value.provider : aiProviderForAdapter(adapterType);
|
||||
const returnFocus = useRef<HTMLElement | null>(null);
|
||||
const restoreFocus = (event: Event) => { event.preventDefault(); returnFocus.current?.focus(); };
|
||||
const [adopting, setAdopting] = useState(false);
|
||||
@@ -103,7 +105,7 @@ export function AiConnectionField({
|
||||
const openConnection = (reconnect?: AiManagedConnectionSummary) => {
|
||||
returnFocus.current = document.activeElement as HTMLElement;
|
||||
setReconnecting(reconnect);
|
||||
setAdvancedSetup(!reconnect && (preferAdvanced || provider === "openrouter"));
|
||||
setAdvancedSetup(!reconnect && (preferAdvanced || provider === "openrouter" || adapterType === "hermes_runner"));
|
||||
setAllAgents(accounts.data?.canManageConnections ?? false);
|
||||
setSavedAccount(undefined);
|
||||
selectDefault.reset();
|
||||
|
||||
Reference in new issue
Block a user