tolingcode 2026.3.817 → 2026.3.818

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/README.md CHANGED
@@ -60,6 +60,40 @@ tolingcode install skills hbj-ai-shell
60
60
 
61
61
  ---
62
62
 
63
+ ## 跨平台支持
64
+
65
+ ✅ **完全支持**: Windows / Linux / macOS
66
+
67
+ ### 路径说明
68
+
69
+ | 系统 | OpenClaw 工作目录 | 全局应用目录 |
70
+ |------|------------------|-------------|
71
+ | **Windows** | `C:\Users\<用户名>\.openclaw\workspace` | `%APPDATA%\tolingcode\apps` |
72
+ | **Linux** | `/home/<用户名>/.openclaw/workspace` | `~/.local/tolingcode/apps` |
73
+ | **macOS** | `/Users/<用户名>/.openclaw/workspace` | `~/.local/tolingcode/apps` |
74
+
75
+ ### 自定义工作目录
76
+
77
+ ```bash
78
+ # 通过环境变量自定义 OpenClaw 工作目录
79
+ # Windows
80
+ set OPENCLAW_WORKSPACE=D:\my-workspace
81
+
82
+ # Linux/Mac
83
+ export OPENCLAW_WORKSPACE=/path/to/my-workspace
84
+
85
+ # 然后安装技能
86
+ tolingcode install skills gigacloud-warehouse
87
+ ```
88
+
89
+ ### 系统要求
90
+
91
+ - **Node.js**: >= 16.0.0
92
+ - **npm**: >= 7.0.0
93
+ - **OpenClaw**: 自动安装(通过 `tolingcode install openclaw`)
94
+
95
+ ---
96
+
63
97
  ## 命令参考
64
98
 
65
99
  ### 安装命令
package/bin/tolingcode.js CHANGED
@@ -177,14 +177,21 @@ program
177
177
  console.log(chalk.gray(` Description: ${pkg.description}`));
178
178
  console.log(chalk.gray(` Download URL: ${pkg.downloadUrl}`));
179
179
 
180
- // Determine install path
180
+ // Determine install path (cross-platform)
181
181
  let installPath;
182
182
  if (type === 'skills') {
183
- const workspace = process.env.OPENCLAW_WORKSPACE || path.join(process.env.HOME || process.env.USERPROFILE, '.openclaw', 'workspace');
183
+ // OpenClaw workspace path (cross-platform)
184
+ const homeDir = process.env.HOME || process.env.USERPROFILE || require('os').homedir();
185
+ const workspace = process.env.OPENCLAW_WORKSPACE || path.join(homeDir, '.openclaw', 'workspace');
184
186
  installPath = path.join(workspace, 'skills');
187
+ console.log(chalk.gray(` 安装路径:${installPath}`));
185
188
  } else if (type === 'apps') {
186
189
  if (options.global) {
187
- installPath = path.join(process.env.APPDATA || path.join(process.env.HOME || '', '.local'), 'tolingcode', 'apps');
190
+ const homeDir = process.env.HOME || process.env.USERPROFILE || require('os').homedir();
191
+ // Cross-platform: Windows uses APPDATA, Linux/Mac uses ~/.local
192
+ installPath = process.env.APPDATA
193
+ ? path.join(process.env.APPDATA, 'tolingcode', 'apps') // Windows
194
+ : path.join(homeDir, '.local', 'tolingcode', 'apps'); // Linux/Mac
188
195
  } else {
189
196
  installPath = path.join(process.cwd(), 'tolingcode-apps');
190
197
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tolingcode",
3
- "version": "2026.3.817",
3
+ "version": "2026.3.818",
4
4
  "description": "TolingCode CLI - 跨境电商 AI 助手技能管理工具 (基于 OpenClaw)",
5
5
  "main": "bin/tolingcode.js",
6
6
  "files": [