@ian2018cs/agenthub 0.2.10 → 0.2.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ian2018cs/agenthub",
3
- "version": "0.2.10",
3
+ "version": "0.2.11",
4
4
  "description": "A web-based UI for AI Agents",
5
5
  "type": "module",
6
6
  "main": "server/index.js",
@@ -48,6 +48,8 @@ const DANGEROUS_SCRIPT_PATTERNS = [
48
48
  // 容器/云平台
49
49
  { pattern: /\bdocker\s+(rm|rmi|stop|kill|restart|network|volume|system\s+prune)\b/, reason: '管理 Docker' },
50
50
  { pattern: /\bkubectl\b/, reason: '操作 Kubernetes' },
51
+ { pattern: /\bgcloud\b/, reason: '操作 Google Cloud' },
52
+ { pattern: /\bbq\b/, reason: '使用 BigQuery CLI(bq)' },
51
53
  // Web 服务器
52
54
  { pattern: /\bnginx\s+(-s\s+)?(reload|stop|start|restart|quit)\b/, reason: '管理 nginx' },
53
55
  { pattern: /\bapachectl\b/, reason: '管理 Apache' },
@@ -379,6 +381,7 @@ const rules = [
379
381
  reason: '不允许管理 Docker 容器和资源' },
380
382
  { pattern: /\bkubectl\b/, reason: '不允许操作 Kubernetes' },
381
383
  { pattern: /\bgcloud\b/, reason: '不允许操作 Google Cloud' },
384
+ { pattern: /\bbq\b/, reason: '不允许使用 BigQuery CLI(bq)' },
382
385
  { pattern: /\baws\s+(?!configure\s+list\b)/, reason: '不允许操作 AWS' },
383
386
  { pattern: /\bterraform\s+(apply|destroy|import)\b/, reason: '不允许执行 Terraform 变更' },
384
387