@zuolan/micucodeline 1.0.6 → 1.0.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuolan/micucodeline",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "MicuCodeLine - High-performance Claude Code StatusLine tool",
5
5
  "bin": {
6
6
  "micucodeline": "bin/micucodeline.js"
@@ -9,11 +9,11 @@
9
9
  "postinstall": "node scripts/postinstall.js"
10
10
  },
11
11
  "optionalDependencies": {
12
- "@zuolan/micucodeline-darwin-x64": "1.0.6",
13
- "@zuolan/micucodeline-darwin-arm64": "1.0.6",
14
- "@zuolan/micucodeline-linux-x64": "1.0.6",
15
- "@zuolan/micucodeline-linux-x64-musl": "1.0.6",
16
- "@zuolan/micucodeline-win32-x64": "1.0.6"
12
+ "@zuolan/micucodeline-darwin-x64": "1.0.7",
13
+ "@zuolan/micucodeline-darwin-arm64": "1.0.7",
14
+ "@zuolan/micucodeline-linux-x64": "1.0.7",
15
+ "@zuolan/micucodeline-linux-x64-musl": "1.0.7",
16
+ "@zuolan/micucodeline-win32-x64": "1.0.7"
17
17
  },
18
18
  "repository": {
19
19
  "type": "git",
@@ -148,7 +148,35 @@ try {
148
148
  if (!silent) {
149
149
  console.log('✨ MicuCodeLine is ready for Claude Code!');
150
150
  console.log(`📍 Location: ${targetPath}`);
151
- console.log('🎉 You can now use: micucodeline --help');
151
+ console.log('');
152
+
153
+ // Auto-run configuration if this is a global install
154
+ const isGlobalInstall = process.env.npm_config_global === 'true';
155
+
156
+ if (isGlobalInstall && process.stdin.isTTY) {
157
+ console.log('🔧 Starting first-time setup...');
158
+ console.log('');
159
+
160
+ try {
161
+ const { spawnSync } = require('child_process');
162
+ const result = spawnSync(targetPath, [], {
163
+ stdio: 'inherit',
164
+ shell: true
165
+ });
166
+
167
+ if (result.status === 0) {
168
+ console.log('');
169
+ console.log('✅ Setup completed!');
170
+ console.log('🎉 You can now use: micucodeline --help');
171
+ }
172
+ } catch (error) {
173
+ console.log('');
174
+ console.log('⚠️ Could not auto-run setup.');
175
+ console.log(`💡 Please run manually: ${targetPath}`);
176
+ }
177
+ } else {
178
+ console.log('🎉 You can now use: micucodeline --help');
179
+ }
152
180
  }
153
181
  } catch (error) {
154
182
  // Silent failure - don't break installation