@aiyiran/myclaw 1.0.36 → 1.0.37

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 (3) hide show
  1. package/config.js +1 -1
  2. package/index.js +2 -2
  3. package/package.json +1 -1
package/config.js CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  module.exports = {
7
7
  // Gateway 认证 Token
8
- TOKEN: 'qwertyuiop1234567890',
8
+ TOKEN: 'aiyiran',
9
9
 
10
10
  // 默认控制台地址
11
11
  DEFAULT_URL: 'http://127.0.0.1:18789',
package/index.js CHANGED
@@ -380,8 +380,8 @@ pause
380
380
  `;
381
381
 
382
382
 
383
- // 写入 bat 文件
384
- fs.writeFileSync(batPath, batContent, 'utf8');
383
+ // 写入 bat 文件(Windows CMD 需要 CRLF 换行符)
384
+ fs.writeFileSync(batPath, batContent.replace(/\n/g, '\r\n'), 'utf8');
385
385
 
386
386
  // 用 PowerShell 创建带图标的桌面快捷方式
387
387
  const psScript = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiyiran/myclaw",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {