wormclaude 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.
package/dist/auth.js CHANGED
@@ -98,8 +98,11 @@ export async function checkForUpdate(current) {
98
98
  export function runUpdate() {
99
99
  return new Promise((resolve) => {
100
100
  process.stdout.write('WormClaude güncelleniyor...\n');
101
- const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';
102
- const child = spawn(npm, ['install', '-g', 'wormclaude@latest'], { stdio: 'inherit' });
101
+ // Windows + Node ≥20: `.cmd`/`.bat` spawn'ı shell:true gerektirir (yoksa EINVAL).
102
+ const win = process.platform === 'win32';
103
+ const cmd = win ? 'npm install -g wormclaude@latest' : 'npm';
104
+ const args = win ? [] : ['install', '-g', 'wormclaude@latest'];
105
+ const child = spawn(cmd, args, { stdio: 'inherit', shell: true });
103
106
  child.on('error', (e) => { process.stderr.write('Güncellenemedi: ' + (e?.message || e) + '\n'); resolve(); });
104
107
  child.on('exit', () => resolve());
105
108
  });
package/dist/theme.js CHANGED
@@ -16,4 +16,4 @@ export const theme = {
16
16
  synType: '#a78bfa', // tip/sınıf adları, sabitler
17
17
  synProp: '#e0e0e0', // özellik/anahtar adları
18
18
  };
19
- export const VERSION = '1.0.36';
19
+ export const VERSION = '1.0.37';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wormclaude",
3
- "version": "1.0.36",
3
+ "version": "1.0.37",
4
4
  "description": "WormClaude CLI - uncensored security+code assistant (ink TUI, Claude-style)",
5
5
  "type": "module",
6
6
  "bin": {