shell: support Windows cmd /C; normalize date/time; allow all commands; add tests
This commit is contained in:
@@ -74,10 +74,10 @@ cluster_count: %d
|
||||
- 现有技能未命中,或命中后无法完成。
|
||||
|
||||
## 建议工具
|
||||
- 优先使用现有工具:`+"`shell`"+`、`+"`file`"+`。
|
||||
- 优先使用现有工具:`+"`shell`"+`、`+"`file`"+`、`+"`web_search`"+`。
|
||||
- 若能力不足,需要创建新工具时:
|
||||
1. 在 `+"`internal/tools/<tool_name>/`"+` 下生成 Go 代码;
|
||||
2. 在 `+"`cmd/bot/main.go`"+` 或 toolhost 注册逻辑中完成注册;
|
||||
1. 在 `+"`tools/<tool_name>/`"+` 下生成 Go 代码(实现 Name/Description/Call 接口);
|
||||
2. 在 `+"`internal/toolhost/runtime.go`"+` 中注册新工具;
|
||||
3. 生成/补充 `+"`*_test.go`"+`;
|
||||
4. 调用 `+"`go test ./...`"+` 验证。
|
||||
|
||||
@@ -87,7 +87,7 @@ cluster_count: %d
|
||||
3. 工具调用前先最小化探测范围。
|
||||
4. 工具失败时输出原因与下一步建议。
|
||||
5. 若缺少 skill:使用 `+"`file`"+` 与 `+"`shell`"+` 创建新的 `+"`skills/<skill_name>/skill.md`"+`。
|
||||
6. 若缺少 tool:生成工具代码与测试后执行 `+"`go test ./...`"+`。
|
||||
6. 若缺少 tool:在 `+"`tools/<tool_name>/`"+` 下生成工具代码与测试后执行 `+"`go test ./...`"+`。
|
||||
|
||||
## 输出规范
|
||||
- 结论:一句话给出当前阶段结论。
|
||||
|
||||
Reference in New Issue
Block a user