mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-15 02:16:56 +00:00
fix(skills): add agent manage grants
Add explicit per-agent manage grants for skills so granted agents can patch/delete skills when ownership identity drifts. Expose skill owner and manage-grant controls in the web skills UI, and add PostgreSQL/SQLite migrations plus coverage for preserve/revoke behavior.
This commit is contained in:
1 parent
ba3b535286
commit
0d6c5bbb7c
24 files changed
+595
-38
No files matched your search
@@ -408,6 +408,7 @@ CREATE TABLE IF NOT EXISTS skill_agent_grants (
|
||||
agent_id TEXT NOT NULL REFERENCES agents(id) ON DELETE CASCADE,
|
||||
pinned_version INT NOT NULL,
|
||||
granted_by VARCHAR(255) NOT NULL,
|
||||
can_manage INTEGER NOT NULL DEFAULT 0,
|
||||
tenant_id TEXT NOT NULL REFERENCES tenants(id),
|
||||
created_at TEXT DEFAULT (strftime('%Y-%m-%dT%H:%M:%fZ', 'now')),
|
||||
UNIQUE(skill_id, agent_id)
|
||||
|
||||
Reference in new issue
Block a user