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 +9 -0
- package/core/commands.js +7 -1
- package/core/index.js +1 -1
- package/package.json +1 -1
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
|
-
|
|
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