feat(agent): 用对话起草巡检(schedule.draft_check + 起草巡检 Skill + 计划页入口与对话卡片)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
8eb8a68295
commit
7c4ad901d9
14 files changed
+408
-7
No files matched your search
@@ -101,6 +101,10 @@ export const INTENT_ROUTES: readonly IntentRoute[] = [
|
||||
{ cap: "browser.solve_challenge", note: "处理页面挑战(视觉子流程)" },
|
||||
],
|
||||
},
|
||||
{
|
||||
intent: "要建定时检查 / 巡检",
|
||||
steps: [{ cap: "schedule.draft_check", note: "建成未启用的巡检,用户在计划页检查后启用" }],
|
||||
},
|
||||
{
|
||||
intent: "改收录策略",
|
||||
steps: [
|
||||
@@ -148,7 +152,8 @@ export const GENERAL_CAPABILITIES: readonly KnownCapabilityId[] = [
|
||||
/** 需要授权(持续授权或单次审批)的能力:execute / approve / propose 类,会话交互类除外 */
|
||||
export function needsApproval(id: string): boolean {
|
||||
const d = CAPABILITY_CATALOG[id as KnownCapabilityId];
|
||||
return !!d && AUTHORIZED_KINDS.includes(d.kind) && !id.startsWith("agent.");
|
||||
// 起草巡检只建未启用的草稿,对话里直接放行(agent/authorize.ts)
|
||||
return !!d && AUTHORIZED_KINDS.includes(d.kind) && !id.startsWith("agent.") && id !== "schedule.draft_check";
|
||||
}
|
||||
|
||||
/** 通用提示(参数、检索词、站点类型) */
|
||||
|
||||
Reference in new issue
Block a user