feat(tools): add_company_scope 默认绑定由 worker 改为 planner
- WorkerTools 移除 add_company_scope,PlannerTools 新增 - 新库 seed 默认绑定变为 mainagent/planner/auto - 老库加一次性迁移 seedCompanyScopeRebind:加 planner、去 worker
This commit is contained in:
1 parent
4319fe413f
commit
1e7fe8550e
3 files changed
+28
-2
No files matched your search
@@ -1947,6 +1947,8 @@ func (t *ToolSet) PlannerTools() []actool.CoreTool {
|
||||
t.addFinding(),
|
||||
// list_companies:查看企业列表 + scope + 资产数(拿 company_id / 理解归属范围)。
|
||||
t.listCompanies(),
|
||||
// add_company_scope:规划时可把域名/IP/CIDR/ICP/关键词纳入某公司的资产范围(自动认领命中资产)。
|
||||
t.addCompanyScope(),
|
||||
// add_task_scope:主动把整根域/整公司/某子域/IP 纳入本任务测试范围(覆盖度分母)。
|
||||
t.addTaskScope(),
|
||||
// list_untested_assets:按需查本任务范围内未测资产(类型+分页),自行决定补测。
|
||||
|
||||
@@ -614,8 +614,9 @@ func (t *ToolSet) WorkerTools() []actool.CoreTool {
|
||||
t.addFinding(), t.recordFact(),
|
||||
// cross-work retrieval
|
||||
t.searchAllWorkerTraces(), t.listWorkerTraces(), t.getWorkerTrace(),
|
||||
// asset management (handlers guard nil store internally)
|
||||
t.insertAssets(), t.addCompanyScope(), t.listAssets(), t.listCompanies(),
|
||||
// asset management (handlers guard nil store internally)。
|
||||
// add_company_scope 不给 worker:定义企业资产范围属规划/主控/Auto 的职责,worker 只执行探索。
|
||||
t.insertAssets(), t.listAssets(), t.listCompanies(),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user