fix: use valid default agnet runtime models
This commit is contained in:
@@ -511,7 +511,7 @@ Authorization: Bearer <heicode_access_token>
|
||||
"sub_mode": "agile",
|
||||
"binding_scope": "task-task_abc123",
|
||||
"role_templates": ["backend", "frontend", "reviewer"],
|
||||
"default_model_id": "agnet-model-builder",
|
||||
"default_model_id": "claude-sonnet-4-6",
|
||||
"budget": {
|
||||
"max_tokens": 120000,
|
||||
"max_cost_usd": 8,
|
||||
@@ -612,7 +612,7 @@ Authorization: Bearer <heicode_access_token>
|
||||
"agents": [
|
||||
{
|
||||
"role": "backend",
|
||||
"model_ref": "agnet-model-builder",
|
||||
"model_ref": "claude-sonnet-4-6",
|
||||
"instance_count": 1
|
||||
}
|
||||
]
|
||||
@@ -621,7 +621,7 @@ Authorization: Bearer <heicode_access_token>
|
||||
{
|
||||
"role_template": "backend",
|
||||
"goal": "Execute the Heicode task as backend within the approved resource scope.",
|
||||
"default_model_id": "agnet-model-builder",
|
||||
"default_model_id": "claude-sonnet-4-6",
|
||||
"resource_grants": []
|
||||
}
|
||||
],
|
||||
@@ -671,7 +671,7 @@ Authorization: Bearer <heicode_access_token>
|
||||
"agents": [
|
||||
{
|
||||
"role": "backend",
|
||||
"model_ref": "agnet-model-builder",
|
||||
"model_ref": "claude-sonnet-4-6",
|
||||
"instance_count": 1
|
||||
}
|
||||
]
|
||||
@@ -680,7 +680,7 @@ Authorization: Bearer <heicode_access_token>
|
||||
{
|
||||
"role_template": "backend",
|
||||
"goal": "Execute the Heicode task as backend within the approved resource scope.",
|
||||
"default_model_id": "agnet-model-builder",
|
||||
"default_model_id": "claude-sonnet-4-6",
|
||||
"resource_grants": []
|
||||
}
|
||||
],
|
||||
@@ -1291,7 +1291,7 @@ const draft = await encryptedManagerRequest<Envelope<DeploymentDraft>>(
|
||||
sub_mode: 'agile',
|
||||
binding_scope: `task-${current.id}`,
|
||||
role_templates: ['backend', 'frontend', 'reviewer'],
|
||||
default_model_id: 'agnet-model-builder',
|
||||
default_model_id: 'claude-sonnet-4-6',
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
Vendored
+1
-1
@@ -20,7 +20,7 @@
|
||||
<meta property="og:type" content="website" />
|
||||
|
||||
<meta name="theme-color" content="#7B6BE3" />
|
||||
<link rel="icon" href="/favicon.ico"><script defer src="/static/js/vendor-radix.8fa3e0a349.js"></script><script defer src="/static/js/vendor-tanstack.632dbe8908.js"></script><script defer src="/static/js/lib-react.5c8909c28c.js"></script><script defer src="/static/js/9238.45c9c35ccf.js"></script><script defer src="/static/js/index.c2989bbeef.js"></script><link href="/static/css/index.fd51d44fe8.css" rel="stylesheet"></head>
|
||||
<link rel="icon" href="/favicon.ico"><script defer src="/static/js/vendor-radix.8fa3e0a349.js"></script><script defer src="/static/js/vendor-tanstack.632dbe8908.js"></script><script defer src="/static/js/lib-react.5c8909c28c.js"></script><script defer src="/static/js/9238.45c9c35ccf.js"></script><script defer src="/static/js/index.222313f649.js"></script><link href="/static/css/index.fd51d44fe8.css" rel="stylesheet"></head>
|
||||
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
+9
-9
@@ -113,17 +113,17 @@ const TEMPLATE_PRESETS: TemplatePreset[] = [
|
||||
{
|
||||
role_template: 'product',
|
||||
goal: '澄清目标并产出工作简报。',
|
||||
default_model_id: 'agnet-model-product',
|
||||
default_model_id: 'claude-sonnet-4-6',
|
||||
},
|
||||
{
|
||||
role_template: 'frontend',
|
||||
goal: '根据工作简报构建第一条可用界面路径。',
|
||||
default_model_id: 'agnet-model-builder',
|
||||
default_model_id: 'claude-sonnet-4-6',
|
||||
},
|
||||
{
|
||||
role_template: 'reviewer',
|
||||
goal: '检查计划、权限和交付证据。',
|
||||
default_model_id: 'agnet-model-reviewer',
|
||||
default_model_id: 'claude-opus-4-7',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -139,12 +139,12 @@ const TEMPLATE_PRESETS: TemplatePreset[] = [
|
||||
{
|
||||
role_template: 'reviewer',
|
||||
goal: '找到根因并定义最小修复范围。',
|
||||
default_model_id: 'agnet-model-debugger',
|
||||
default_model_id: 'claude-opus-4-7',
|
||||
},
|
||||
{
|
||||
role_template: 'backend',
|
||||
goal: '实现并验证限定范围内的改动。',
|
||||
default_model_id: 'agnet-model-builder',
|
||||
default_model_id: 'claude-sonnet-4-6',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -161,17 +161,17 @@ const TEMPLATE_PRESETS: TemplatePreset[] = [
|
||||
{
|
||||
role_template: 'backend',
|
||||
goal: '准备发布分支和所需产物。',
|
||||
default_model_id: 'agnet-model-builder',
|
||||
default_model_id: 'claude-sonnet-4-6',
|
||||
},
|
||||
{
|
||||
role_template: 'ops',
|
||||
goal: '验证部署边界和回滚准备情况。',
|
||||
default_model_id: 'agnet-model-ops',
|
||||
default_model_id: 'claude-sonnet-4-6',
|
||||
},
|
||||
{
|
||||
role_template: 'reviewer',
|
||||
goal: '确认交付证据、权限和已知风险。',
|
||||
default_model_id: 'agnet-model-reviewer',
|
||||
default_model_id: 'claude-opus-4-7',
|
||||
},
|
||||
],
|
||||
},
|
||||
@@ -900,7 +900,7 @@ export function CreateAgnetDeploymentSheet({
|
||||
<Input
|
||||
value={allowedModels}
|
||||
onChange={(e) => setAllowedModels(e.target.value)}
|
||||
placeholder='agnet-model-builder, agnet-model-reviewer'
|
||||
placeholder='claude-sonnet-4-6, claude-opus-4-7'
|
||||
className='font-mono text-xs'
|
||||
/>
|
||||
</div>
|
||||
|
||||
@@ -212,7 +212,7 @@ export function TaskCardView() {
|
||||
sub_mode: 'agile',
|
||||
binding_scope: `task-${task.id}`,
|
||||
role_templates: ['backend'],
|
||||
default_model_id: 'agnet-model-builder',
|
||||
default_model_id: 'claude-sonnet-4-6',
|
||||
})
|
||||
return createAgnetDeployment({
|
||||
orchestration_plan:
|
||||
|
||||
+1
-1
@@ -233,7 +233,7 @@ export async function createDeploymentDraftFromHeicodeTask(
|
||||
sub_mode: options.sub_mode ?? 'agile',
|
||||
binding_scope: options.binding_scope ?? `task-${task.id}`,
|
||||
role_templates: options.role_templates ?? ['backend'],
|
||||
default_model_id: options.default_model_id ?? 'agnet-model-builder',
|
||||
default_model_id: options.default_model_id ?? 'claude-sonnet-4-6',
|
||||
budget: options.budget ?? {
|
||||
max_tokens: 120000,
|
||||
max_cost_usd: 8,
|
||||
|
||||
Reference in New Issue
Block a user