@aiyiran/myclaw 1.0.115 → 1.0.117

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/build-manifest.js CHANGED
@@ -26,6 +26,7 @@ const DEFAULT_CONFIG = {
26
26
  'session.reset.mode': 'idle',
27
27
  'session.reset.idleMinutes': 90720,
28
28
  'tools.exec.ask': 'off',
29
+ 'tools.exec.security': 'full',
29
30
  'gateway.auth.token': 'aiyiran',
30
31
  },
31
32
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.115",
3
+ "version": "1.0.117",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "_doc": "MyClaw 注入清单 (auto-generated)。strategy: auto | on | off | delete",
3
- "_generated": "2026-04-02T13:51:41.386Z",
3
+ "_generated": "2026-04-02T14:34:59.192Z",
4
4
  "agents": [
5
5
  {
6
6
  "id": "danci",
@@ -24,6 +24,8 @@ const { execSync } = require('child_process');
24
24
  // 解析参数
25
25
  // ============================================================================
26
26
 
27
+ const DEFAULT_MINIMAX_KEY = "sk-cp-hZrI2mmHl_bQxHGSwRkDJvIrroe6xebBaKyhUhdnH1s4TABiJ4j_RcP85i44fGSbrhxv6yGij-mM0a0EXvMaLkcL2UhjtW6YAm3TF-2SuRGAemg3LC8F4xM";
28
+
27
29
  let apiKey = null;
28
30
  const args = process.argv.slice(2);
29
31
  for (let i = 0; i < args.length; i++) {
@@ -33,6 +35,12 @@ for (let i = 0; i < args.length; i++) {
33
35
  }
34
36
  }
35
37
 
38
+ // 如果没有传参数,并且配置了默认 Key,则使用默认 Key
39
+ if (!apiKey && DEFAULT_MINIMAX_KEY && DEFAULT_MINIMAX_KEY !== "请在这里填入你的默认Key") {
40
+ apiKey = DEFAULT_MINIMAX_KEY;
41
+ console.log('💡 未传入 --key 参数,自动使用默认的 API Key');
42
+ }
43
+
36
44
  // ============================================================================
37
45
  // 查找 openclaw.json
38
46
  // ============================================================================