gitee-ai-employee 1.2.2 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dsh/client.js +31 -2
  2. package/package.json +1 -1
package/dsh/client.js CHANGED
@@ -43,6 +43,7 @@ window.__ModuleLoader__.load({
43
43
  merge: '自动合并 PR',
44
44
  close: '成功后自动关闭 issue',
45
45
  status: '查看任务状态',
46
+ issueBlock: '处理 Issue(自动开发 · 提 PR)',
46
47
  scan: '代码安全扫描',
47
48
  scanEnable: '启用定时扫描(全部仓库排队持续扫描,去重幂等)',
48
49
  scanReposLabel: '扫描仓库',
@@ -89,6 +90,28 @@ window.__ModuleLoader__.load({
89
90
  control,
90
91
  )
91
92
 
93
+ // 分区标题块:色条 + 标题 + 行为标签 + 说明,
94
+ // 用于把「处理 Issue」与「代码安全扫描」两个功能模块清楚分隔,防止误配置/误操作。
95
+ var sectionBlock = (label, sub, tag, tagBg, accent, key) =>
96
+ h('div', {
97
+ key: key,
98
+ style: {
99
+ margin: '16px 0 6px',
100
+ padding: '10px 12px',
101
+ borderRadius: '10px',
102
+ border: '1px solid ' + accent,
103
+ background: 'linear-gradient(90deg, ' + accent + '1A, transparent 75%)',
104
+ display: 'flex', flexDirection: 'column', gap: '4px',
105
+ },
106
+ },
107
+ h('div', { style: { display: 'flex', alignItems: 'center', gap: '8px', flexWrap: 'wrap' } },
108
+ h('span', { style: { width: '6px', height: '16px', borderRadius: '3px', background: accent, display: 'inline-block' } }),
109
+ h('span', { style: { fontSize: '14px', fontWeight: 800, color: 'var(--dsw-alias-label-primary)' } }, label),
110
+ tag ? h('span', { style: { fontSize: '11px', fontWeight: 700, color: '#fff', background: tagBg, borderRadius: '999px', padding: '2px 8px' } }, tag) : null,
111
+ ),
112
+ sub ? h('span', { style: { fontSize: '12px', color: 'var(--dsw-alias-label-secondary)', lineHeight: 1.45 } }, sub) : null,
113
+ )
114
+
92
115
  // 自定义开关行:左侧标签,右侧紧凑的 iOS 风格 toggle
93
116
  var toggleRow = (label, hint, checked, onChange, key) =>
94
117
  h(
@@ -417,6 +440,10 @@ window.__ModuleLoader__.load({
417
440
  )
418
441
  } else {
419
442
  var controls = []
443
+ // ── 分区A:处理 Issue(真实操作仓库)──
444
+ controls.push(sectionBlock(t.issueBlock,
445
+ '监听 issue:@ 机器人后自动克隆仓库开发、推分支、提 PR,可自动合并 / 自动关闭。下面这些设置会真实操作你的仓库(改代码、推送分支、合并 PR),请仔细确认。',
446
+ '会真实操作仓库 · 自动提 PR', '#dc2626', '#3b82f6', 'issueBlock'))
420
447
  controls.push(fieldRow(t.token, draft.tokenConfigured ? t.tokenHint : undefined, h(Input, {
421
448
  key: 'token',
422
449
  type: 'password',
@@ -459,8 +486,10 @@ window.__ModuleLoader__.load({
459
486
  controls.push(toggleRow(t.merge, undefined, draft.autoMerge, (v) => setDraftFromControl({ autoMerge: v }), 'merge'))
460
487
  controls.push(toggleRow(t.close, undefined, draft.autoCloseIssue, (v) => setDraftFromControl({ autoCloseIssue: v }), 'close'))
461
488
 
462
- // ── 代码安全扫描区(v1.2)──
463
- controls.push(h('div', { key: 'scanTitle', className: 'At1oFq_label', style: { margin: '16px 0 4px', fontSize: '13px', fontWeight: 600, color: 'var(--dsw-alias-label-primary)' } }, t.scan))
489
+ // ── 分区B:代码安全扫描(只读审计)──
490
+ controls.push(sectionBlock(t.scan,
491
+ '对「扫描仓库」里的仓库做静态安全审计(克隆到本地、按内置/自定义提示词检查),发现新漏洞去重后提交 [安全扫描] issue。全程只读审计,不会改代码、不会提 PR。',
492
+ '只读审计 · 只提交漏洞 issue', '#059669', '#10b981', 'scanBlock'))
464
493
  controls.push(toggleRow(t.scanEnable, undefined, draft.scanEnabled, (v) => setDraftFromControl({ scanEnabled: v }), 'scanEnable'))
465
494
  controls.push(fieldRow(t.scanReposLabel, t.scanReposHint, h('textarea', {
466
495
  key: 'scanRepos', rows: 3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gitee-ai-employee",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "Gitee/GitHub AI 员工:issue 里 @ 机器人自动开发并提 PR;v1.2 新增代码安全扫描——配置仓库地址后按内置/自定义提示词扫描漏洞,去重后提交 issue。An issue-driven AI developer for DeepSeek Harness (Gitee & GitHub) with optional static security scanning (dedup + issue reporting).",
5
5
  "license": "MIT",
6
6
  "type": "module",