@dcrays/mobook-security-plugin 2.0.1 → 2.0.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.
package/index.js CHANGED
@@ -2,7 +2,7 @@ import * as fs from "node:fs";
2
2
  import * as path from "node:path";
3
3
 
4
4
  // ============================================================
5
- // OpenClaw 安全防护插件 v2.0
5
+ // MoBook 安全防护插件 v2.0.3
6
6
  // 功能:危险命令拦截 | 敏感信息脱敏(全渠道) | LLM 响应拦截 | 操作审计日志
7
7
  // ============================================================
8
8
 
@@ -237,8 +237,8 @@ function sanitizeParamsForLog(params) {
237
237
  // 借鉴 @alicloud/openclaw-security-assistant 的核心技术
238
238
  // ============================================================
239
239
 
240
- const FETCH_WRAPPED_KEY = Symbol.for("openclaw-security-plugin.fetch-wrapped");
241
- const ORIGINAL_FETCH_KEY = Symbol.for("openclaw-security-plugin.original-fetch");
240
+ const FETCH_WRAPPED_KEY = Symbol.for("mobook-security-plugin.fetch-wrapped");
241
+ const ORIGINAL_FETCH_KEY = Symbol.for("mobook-security-plugin.original-fetch");
242
242
 
243
243
  // 保存原始 fetch
244
244
  function saveOriginalFetch() {
@@ -507,7 +507,7 @@ function installFetchInterceptor(api) {
507
507
  // ============================================================
508
508
  export default function register(api) {
509
509
  log("═══════════════════════════════════════════════════════");
510
- log(" OpenClaw 安全防护插件 v2.0 启动");
510
+ log(" MoBook 安全防护插件 v2.0.3 启动");
511
511
  log(" 功能: 危险命令拦截 | 敏感信息脱敏(全渠道) | LLM 响应拦截 | 提示词注入检测 | 操作审计");
512
512
  log("═══════════════════════════════════════════════════════");
513
513
  log(`插件ID: ${api.id}`);
@@ -592,6 +592,6 @@ export default function register(api) {
592
592
 
593
593
  log("已注册: fetch拦截器(全渠道) + before_tool_call + message_sending + llm_output + message_sent");
594
594
  log("═══════════════════════════════════════════════════════");
595
- log(" 安全插件 v2.0 启动完成");
595
+ log(" MoBook 安全插件 v2.0.3 启动完成");
596
596
  log("═══════════════════════════════════════════════════════");
597
597
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "id": "openclaw-security-plugin",
3
- "name": "OpenClaw 安全防护插件",
4
- "version": "2.0.0",
2
+ "id": "mobook-security-plugin",
3
+ "name": "MoBook 安全防护插件",
4
+ "version": "2.0.3",
5
5
  "description": "OpenClaw 企业级安全插件 - 危险命令分级拦截、敏感信息全渠道脱敏(身份证GB11643/银行卡Luhn校验)、LLM响应拦截、操作审计",
6
6
  "entry": "./index.js",
7
7
  "type": "plugin",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@dcrays/mobook-security-plugin",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "type": "module",
5
5
  "description": "OpenClaw 企业级安全插件 - 危险命令分级拦截、敏感信息全渠道脱敏(身份证GB11643/银行卡Luhn校验)、LLM响应拦截、操作审计",
6
6
  "main": "index.js",
7
7
  "openclaw": {
8
8
  "type": "plugin",
9
- "id": "openclaw-security-plugin",
10
- "name": "OpenClaw 安全防护插件",
9
+ "id": "mobook-security-plugin",
10
+ "name": "MoBook 安全防护插件",
11
11
  "extensions": ["./index.js"]
12
12
  }
13
13
  }