Skip to content

Commit 3954bae

Browse files
niiish32x越鸿csunnyanotherso1adusx1981
authored
feat(skill): add per-skill auto_sync toggle to control git sync on startup (#160)
Co-authored-by: 越鸿 <nishenghao.nsh@oceanbase.com> Co-authored-by: magic.chen <cfqsunny@163.com> Co-authored-by: AnotherSola <38176179+anotherso1a@users.noreply.github.com> Co-authored-by: 坐山客 <157097695@qq.com> Co-authored-by: Aries-ckt <916701291@qq.com> Co-authored-by: heyzcat <31226585+heyzcat@users.noreply.github.com> Co-authored-by: yangchuan <yangchuan@oppo.com> Co-authored-by: neuqliu <1196932066@qq.com> Co-authored-by: yanzhiyong <932374019@qq.com> Co-authored-by: gallopxiong <62653374+josehap@users.noreply.github.com> Co-authored-by: gallopxiong <gallopxiong@tencent.com> Co-authored-by: XinyueDu <51403464+XinyueDu@users.noreply.github.com> Co-authored-by: duxinyue.dxy <duxinyue.dxy@antgroup.com> Co-authored-by: Ikko Eltociear Ashimine <eltociear@gmail.com> Co-authored-by: lpq131004 <66124950+lpq131004@users.noreply.github.com> Co-authored-by: chenketing.ckt <chenketing.ckt@antgroup.com> Co-authored-by: Aries-ckt <ariesketing@gmail.com> Co-authored-by: Lin-Zhipeng <2542207527@qq.com> Co-authored-by: zhipeng.lin <zhipeng.lin@shopee.com> Co-authored-by: Claude (GLM-4.7) <noreply@anthropic.com> Co-authored-by: tptpp <544016459@qq.com> Co-authored-by: RichardoMu <44485717+RichardoMrMu@users.noreply.github.com> Co-authored-by: RichardoMrMu <tianbowen.tbw@antgroup.com> Co-authored-by: yhjun1026 <yhjun1026@users.noreply.github.com>
1 parent e92d944 commit 3954bae

155 files changed

Lines changed: 1060 additions & 1627 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assets/schema/derisk.sql

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use derisk;
99
-- MySQL DDL Script for Derisk
1010
-- Version: 0.3.0
1111
-- Generated from SQLAlchemy ORM Models
12-
-- Generated: 2026-03-11 09:51:58
12+
-- Generated: 2026-03-12 14:20:36
1313
-- ============================================================
1414

1515
SET NAMES utf8mb4;
@@ -93,6 +93,35 @@ CREATE TABLE IF NOT EXISTS `recommend_question` (
9393
`gmt_modify` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间'
9494
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
9595

96+
-- Table: authorization_audit_log
97+
-- Source Model: AuthorizationAuditLogEntity
98+
CREATE TABLE IF NOT EXISTS `authorization_audit_log` (
99+
`id` INT NOT NULL AUTO_INCREMENT COMMENT 'autoincrement id',
100+
`session_id` VARCHAR(255) NOT NULL COMMENT 'Session identifier',
101+
`user_id` VARCHAR(255) NULL COMMENT 'User identifier',
102+
`agent_name` VARCHAR(255) NULL COMMENT 'Agent name',
103+
`tool_name` VARCHAR(255) NOT NULL COMMENT 'Tool name',
104+
`arguments` TEXT NULL COMMENT 'Tool arguments (JSON)',
105+
`decision` VARCHAR(32) NOT NULL COMMENT 'Authorization decision',
106+
`action` VARCHAR(16) NOT NULL COMMENT 'Permission action',
107+
`reason` TEXT NULL COMMENT 'Reason for the decision',
108+
`risk_level` VARCHAR(16) NULL COMMENT 'Risk level',
109+
`risk_score` INT NULL COMMENT 'Risk score (0-100)',
110+
`risk_factors` TEXT NULL COMMENT 'Risk factors (JSON array)',
111+
`cached` INT NOT NULL DEFAULT 0 COMMENT 'Whether from cache',
112+
`duration_ms` FLOAT NOT NULL COMMENT 'Duration in milliseconds',
113+
`created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'When the audit log was created',
114+
`gmt_modify` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
115+
PRIMARY KEY (`id`),
116+
KEY `idx_audit_session` (`session_id`),
117+
KEY `idx_audit_tool` (`tool_name`),
118+
KEY `idx_audit_decision` (`decision`),
119+
KEY `idx_audit_risk_level` (`risk_level`),
120+
KEY `idx_audit_created_at` (`created_at`),
121+
KEY `idx_audit_user` (`user_id`),
122+
KEY `idx_audit_agent` (`agent_name`)
123+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
124+
96125
-- Table: user_recent_apps
97126
-- Source Model: UserRecentAppsEntity
98127
CREATE TABLE IF NOT EXISTS `user_recent_apps` (
@@ -414,7 +443,7 @@ CREATE TABLE IF NOT EXISTS `gpts_app_config` (
414443
`app_code` VARCHAR(100) NOT NULL COMMENT '应用代码',
415444
`team_mode` VARCHAR(255) NOT NULL COMMENT '当前版本配置的对话模式',
416445
`team_context` TEXT NULL COMMENT '应用当前版本的TeamContext信息',
417-
`resources` TEXT NULL COMMENT '应用当前版本的Resources信息',
446+
`resources` LONGTEXT NULL COMMENT '应用当前版本的Resources信息',
418447
`details` VARCHAR(2000) NULL COMMENT '应用当前版本的小弟details信息',
419448
`recommend_questions` TEXT NULL COMMENT '当前版本配置设定的推进问题信息',
420449
`version_info` VARCHAR(1000) NOT NULL COMMENT '版本信息',
@@ -423,7 +452,8 @@ CREATE TABLE IF NOT EXISTS `gpts_app_config` (
423452
`is_published` SMALLINT NULL DEFAULT 0 COMMENT '当前版本配置的备注描述',
424453
`gmt_last_edit` DATETIME NULL COMMENT '当前版本配置最后一次内容编辑时间',
425454
`editor` VARCHAR(255) NULL COMMENT '当前版本配置最后修改者',
426-
`ext_config` TEXT NULL COMMENT '当前版本配置的扩展配置,各自动态扩展的内容',
455+
`ext_config` LONGTEXT NULL COMMENT '当前版本配置的扩展配置,各自动态扩展的内容',
456+
`runtime_config` LONGTEXT NULL COMMENT 'Agent运行时配置,包含DoomLoop检测、Loop执行、WorkLog压缩等',
427457
`system_prompt_template` TEXT NULL COMMENT '当前版本配置的system prompt模版',
428458
`user_prompt_template` TEXT NULL COMMENT '当前版本配置的user prompt模版',
429459
`layout` VARCHAR(255) NULL COMMENT '当前版本配置的布局配置',

packages/derisk-app/src/derisk_app/static/web/_next/static/AIFilzBpxyyTqM5VN7a7o/_buildManifest.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1110-d6419f6e2abf2b9c.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1242-041500d33acab3f9.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1242-4b2c99358ec9fc84.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)