mirror of
https://github.com/nexu-io/open-design.git
synced 2026-05-31 19:04:39 +07:00
Merge c0e4b1761b into 53fb175855
This commit is contained in:
commit
25bab29c7c
2 changed files with 36 additions and 0 deletions
34
apps/daemon/src/runtimes/defs/openclaw.ts
Normal file
34
apps/daemon/src/runtimes/defs/openclaw.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
import { detectAcpModels, DEFAULT_MODEL_OPTION } from './shared.js';
|
||||
import type { RuntimeAgentDef } from '../types.js';
|
||||
|
||||
export const openclawAgentDef = {
|
||||
id: 'openclaw',
|
||||
name: 'OpenClaw',
|
||||
bin: 'openclaw',
|
||||
versionArgs: ['--version'],
|
||||
fetchModels: async (resolvedBin, env) =>
|
||||
detectAcpModels({
|
||||
bin: resolvedBin,
|
||||
args: ['acp'],
|
||||
env,
|
||||
timeoutMs: 15_000,
|
||||
defaultModelOption: DEFAULT_MODEL_OPTION,
|
||||
}),
|
||||
fallbackModels: [
|
||||
DEFAULT_MODEL_OPTION,
|
||||
// MiniMax — OpenClaw's default provider
|
||||
{ id: 'minimax/MiniMax-M2.7', label: 'MiniMax-M2.7 (default)' },
|
||||
{ id: 'minimax/MiniMax-M4', label: 'MiniMax-M4' },
|
||||
// Anthropic via OpenClaw gateway
|
||||
{ id: 'anthropic/claude-opus-4-5', label: 'Claude Opus 4.5' },
|
||||
{ id: 'anthropic/claude-sonnet-4-6', label: 'Claude Sonnet 4.6' },
|
||||
{ id: 'anthropic/claude-haiku-4-5', label: 'Claude Haiku 4.5' },
|
||||
// OpenAI via OpenClaw gateway
|
||||
{ id: 'openai/gpt-5', label: 'GPT-5' },
|
||||
{ id: 'openai/gpt-4o', label: 'GPT-4o' },
|
||||
],
|
||||
buildArgs: () => ['acp'],
|
||||
streamFormat: 'acp-json-rpc',
|
||||
mcpDiscovery: 'mature-acp',
|
||||
externalMcpInjection: 'acp-merge',
|
||||
} satisfies RuntimeAgentDef;
|
||||
|
|
@ -4,6 +4,7 @@ import { codexAgentDef } from './defs/codex.js';
|
|||
import { devinAgentDef } from './defs/devin.js';
|
||||
import { geminiAgentDef } from './defs/gemini.js';
|
||||
import { opencodeAgentDef } from './defs/opencode.js';
|
||||
import { openclawAgentDef } from './defs/openclaw.js';
|
||||
import { hermesAgentDef } from './defs/hermes.js';
|
||||
import { traeCliAgentDef } from './defs/trae-cli.js';
|
||||
import { grokBuildAgentDef } from './defs/grok-build.js';
|
||||
|
|
@ -30,6 +31,7 @@ const BASE_AGENT_DEFS: RuntimeAgentDef[] = [
|
|||
devinAgentDef,
|
||||
geminiAgentDef,
|
||||
opencodeAgentDef,
|
||||
openclawAgentDef,
|
||||
hermesAgentDef,
|
||||
traeCliAgentDef,
|
||||
grokBuildAgentDef,
|
||||
|
|
|
|||
Loading…
Reference in a new issue