cliclaw 1.0.20 → 1.0.21

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 (2) hide show
  1. package/bin/cli.js +3 -2
  2. package/package.json +1 -1
package/bin/cli.js CHANGED
@@ -301,11 +301,12 @@ function cmdUpdate() {
301
301
  if (!tgzName) throw new Error('npm pack did not produce a .tgz file')
302
302
 
303
303
  // 2. Extract using the built-in Windows tar (available since Win10 1803)
304
+ // Use relative paths + cwd so tar doesn't misinterpret "C:" as a network host.
304
305
  const extractDir = path.join(tmpDir, 'x')
305
306
  fs.mkdirSync(extractDir)
306
307
  const winTar = path.join(process.env.SystemRoot || 'C:\\Windows', 'System32', 'tar.exe')
307
- execSync(`"${winTar}" -xzf "${path.join(tmpDir, tgzName)}" -C "${extractDir}"`,
308
- { stdio: 'pipe' })
308
+ execSync(`"${winTar}" -xzf "${tgzName}" -C "x"`,
309
+ { stdio: 'pipe', cwd: tmpDir })
309
310
 
310
311
  // 3. Copy files into the existing directory (no directory rename = no EBUSY)
311
312
  const pkgDir = path.join(extractDir, 'package')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cliclaw",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "description": "Telegram bot bridging AI CLIs (Claude Code, Codex) to Forum Topics",
5
5
  "main": "index.ts",
6
6
  "scripts": {