prjct-cli 0.10.3 → 0.10.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.10.4] - 2025-11-27
4
+
5
+ ### Fixed
6
+
7
+ - **Commands Module Export** - Fixed `require('./commands').sync is not a function` error
8
+ - Module now exports singleton instance for direct use
9
+ - Class still available via `require('./commands').PrjctCommands`
10
+ - Enables Claude to call commands directly: `require('./commands').sync()`
11
+
3
12
  ## [0.10.3] - 2025-11-27
4
13
 
5
14
  ### Fixed
package/core/commands.js CHANGED
@@ -3014,4 +3014,10 @@ Agent: ${agent}
3014
3014
  }
3015
3015
  }
3016
3016
 
3017
- module.exports = PrjctCommands
3017
+ // Export both class and singleton instance
3018
+ // Class for CLI (new PrjctCommands())
3019
+ // Instance for direct use (require('./commands').sync())
3020
+ const instance = new PrjctCommands()
3021
+
3022
+ module.exports = instance
3023
+ module.exports.PrjctCommands = PrjctCommands
package/core/index.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * This file is required by bin/prjct after setup verification
5
5
  */
6
6
 
7
- const PrjctCommands = require('./commands')
7
+ const { PrjctCommands } = require('./commands')
8
8
  const registry = require('./command-registry')
9
9
 
10
10
  async function main() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prjct-cli",
3
- "version": "0.10.3",
3
+ "version": "0.10.4",
4
4
  "description": "Built for Claude - Ship fast, track progress, stay focused. Developer momentum tool for indie hackers.",
5
5
  "main": "core/index.js",
6
6
  "bin": {