@ngxtm/devkit 3.10.0 → 3.10.2

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/cli/init.js CHANGED
@@ -362,12 +362,19 @@ if (require.main === module) {
362
362
  const toolsArg = args.find(a => a.startsWith('--tools='));
363
363
  const tools = toolsArg ? toolsArg.split('=')[1].split(',') : [];
364
364
 
365
+ // Parse --path=value format
366
+ const pathArg = args.find(a => a.startsWith('--path='));
367
+ const pathValue = pathArg ? pathArg.split('=')[1] : null;
368
+
369
+ // Fallback to positional argument (first non-flag argument)
370
+ const positionalPath = args.find(a => !a.startsWith('-') && !a.includes('='));
371
+
365
372
  const options = {
366
373
  force: args.includes('--force') || args.includes('-f'),
367
374
  update: args.includes('--update') || args.includes('-u'),
368
375
  all: args.includes('--all') || args.includes('-a'),
369
376
  tools: tools,
370
- path: args.find(a => !a.startsWith('-') && !a.includes('=')) || process.cwd()
377
+ path: pathValue || positionalPath || process.cwd()
371
378
  };
372
379
 
373
380
  if (args.includes('--uninstall')) {
package/cli/utils.js CHANGED
@@ -54,7 +54,7 @@ const TOOLS = {
54
54
  commandsPath: null,
55
55
  supportsHooks: false,
56
56
  configFile: null,
57
- detectCmd: 'gh copilot --version',
57
+ detectCmd: null, // Don't use 'gh copilot --version' as it triggers interactive prompt
58
58
  detectFolder: path.join(HOME, '.copilot')
59
59
  },
60
60
  'gemini': {
@@ -87,11 +87,15 @@ function detectInstalledTools() {
87
87
  // Try command detection first
88
88
  if (tool.detectCmd) {
89
89
  try {
90
- execSync(tool.detectCmd, { stdio: 'pipe' });
90
+ execSync(tool.detectCmd, {
91
+ stdio: 'pipe',
92
+ timeout: 3000, // 3 second timeout
93
+ input: 'n\n' // Auto-answer 'no' to any prompts
94
+ });
91
95
  detected = true;
92
96
  method = 'cli';
93
97
  } catch (e) {
94
- // Command not found
98
+ // Command not found or timed out
95
99
  }
96
100
  }
97
101
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngxtm/devkit",
3
- "version": "3.10.0",
3
+ "version": "3.10.2",
4
4
  "description": "Per-project AI skills with smart tech detection - lightweight and context-optimized",
5
5
  "main": "cli/index.js",
6
6
  "bin": {