@devobsessed/code-captain 0.0.3 → 0.0.4

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/install.js +5 -1
  2. package/package.json +1 -1
package/bin/install.js CHANGED
@@ -1040,7 +1040,11 @@ class CodeCaptainInstaller {
1040
1040
  }
1041
1041
 
1042
1042
  // Run installer if called directly
1043
- if (import.meta.url === `file://${process.argv[1]}`) {
1043
+ const isMainModule = import.meta.url === `file://${process.argv[1]}` ||
1044
+ (process.argv[1] && process.argv[1].includes('code-captain')) ||
1045
+ process.argv[1] === undefined;
1046
+
1047
+ if (isMainModule) {
1044
1048
  const installer = new CodeCaptainInstaller();
1045
1049
  installer.run();
1046
1050
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devobsessed/code-captain",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Unified AI Development Agent System with intelligent change detection",
5
5
  "type": "module",
6
6
  "bin": {