mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-29 05:47:37 +08:00
Release v0.1.0 agent topology and runtime refresh
This commit is contained in:
@@ -52,13 +52,3 @@ func TestEnsureToolAllowedByContext_GroupAllowlist(t *testing.T) {
|
||||
t.Fatalf("expected files_read group to block write_file")
|
||||
}
|
||||
}
|
||||
|
||||
func TestEnsureToolAllowedByContext_GroupAliasToken(t *testing.T) {
|
||||
ctx := withToolAllowlistContext(context.Background(), []string{"@pipeline"})
|
||||
if err := ensureToolAllowedByContext(ctx, "pipeline_status", map[string]interface{}{}); err != nil {
|
||||
t.Fatalf("expected @pipeline to allow pipeline_status, got: %v", err)
|
||||
}
|
||||
if err := ensureToolAllowedByContext(ctx, "memory_search", map[string]interface{}{}); err == nil {
|
||||
t.Fatalf("expected @pipeline to block memory_search")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user