chore: 初始化仓库,导入项目基线代码
Academy v0.8.3 完整代码基线:Go 后端(internal/cmd/cli/mcp-server/docreader)、 Vue 前端(frontend)、数据库迁移(migrations)、部署编排(docker/helm/deploy)与文档。 今日开发的培训推送管理改动随后单独提交。
This commit is contained in:
commit
7ec21f35b0
5767 files changed
+1436788
No files matched your search
@@ -0,0 +1,22 @@
|
||||
-- Remembered agent approvals: "allow for the rest of this conversation" and
|
||||
-- the grants an automation carries between runs.
|
||||
CREATE TABLE IF NOT EXISTS agent_grants (
|
||||
id VARCHAR(36) PRIMARY KEY,
|
||||
tenant_id BIGINT NOT NULL,
|
||||
user_id VARCHAR(128) NOT NULL,
|
||||
scope VARCHAR(16) NOT NULL,
|
||||
scope_id VARCHAR(64) NOT NULL,
|
||||
grant_key VARCHAR(512) NOT NULL,
|
||||
label TEXT,
|
||||
binding_hash VARCHAR(64) NOT NULL DEFAULT '',
|
||||
risk VARCHAR(16) NOT NULL DEFAULT 'write',
|
||||
prompt_id VARCHAR(36),
|
||||
created_at DATETIME NOT NULL,
|
||||
updated_at DATETIME NOT NULL,
|
||||
last_used_at DATETIME,
|
||||
expires_at DATETIME,
|
||||
revoked_at DATETIME
|
||||
);
|
||||
CREATE UNIQUE INDEX IF NOT EXISTS idx_agent_grants_key
|
||||
ON agent_grants(tenant_id, user_id, scope, scope_id, grant_key);
|
||||
CREATE INDEX IF NOT EXISTS idx_agent_grants_scope ON agent_grants(tenant_id, scope, scope_id);
|
||||
Reference in new issue
Block a user