refactor: stabilize runtime and unify config

This commit is contained in:
lpf
2026-03-14 21:40:12 +08:00
parent 60eee65fec
commit 341e578c9f
75 changed files with 3081 additions and 1627 deletions

View File

@@ -53,6 +53,15 @@ func TestEnsureToolAllowedByContextParallelNested(t *testing.T) {
if err := ensureToolAllowedByContext(restricted, "parallel", skillArgs); err != nil {
t.Fatalf("expected parallel with nested skill_exec to pass, got: %v", err)
}
stringToolArgs := map[string]interface{}{
"calls": []interface{}{
map[string]interface{}{"tool": "read_file", "arguments": map[string]interface{}{"path": "README.md"}},
},
}
if err := ensureToolAllowedByContext(restricted, "parallel", stringToolArgs); err != nil {
t.Fatalf("expected parallel with string tool key to pass, got: %v", err)
}
}
func TestEnsureToolAllowedByContext_GroupAllowlist(t *testing.T) {