@hasna/hooks 0.7.2 → 0.7.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/bin/serve.js +14 -0
- package/package.json +4 -4
package/bin/serve.js
CHANGED
|
@@ -5835,6 +5835,20 @@ function startServeServer(options) {
|
|
|
5835
5835
|
}
|
|
5836
5836
|
if (import.meta.main) {
|
|
5837
5837
|
const argv = process.argv.slice(2);
|
|
5838
|
+
if (argv.includes("--help") || argv.includes("-h")) {
|
|
5839
|
+
console.log(`usage: hooks-serve [--port <n>] [--host <h>] Start the local registry HTTP API
|
|
5840
|
+
hooks-serve --version Print the package version
|
|
5841
|
+
|
|
5842
|
+
options:
|
|
5843
|
+
--help show this help and exit
|
|
5844
|
+
--version print the package version and exit
|
|
5845
|
+
`);
|
|
5846
|
+
process.exit(0);
|
|
5847
|
+
}
|
|
5848
|
+
if (argv.includes("--version") || argv.includes("-V")) {
|
|
5849
|
+
console.log(packageVersion());
|
|
5850
|
+
process.exit(0);
|
|
5851
|
+
}
|
|
5838
5852
|
const flagValue = (name) => {
|
|
5839
5853
|
const idx = argv.indexOf(name);
|
|
5840
5854
|
return idx >= 0 && argv[idx + 1] ? argv[idx + 1] : undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hasna/hooks",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"description": "Open source hooks library for AI coding agents - Install safety, quality, and automation hooks with a single command",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"@types/react": "^18.2.0",
|
|
53
53
|
"typescript": "^5",
|
|
54
54
|
"bun-types": "1.3.14",
|
|
55
|
-
"@hasna/contracts": "0.13.
|
|
55
|
+
"@hasna/contracts": "0.13.4"
|
|
56
56
|
},
|
|
57
57
|
"dependencies": {
|
|
58
58
|
"@hasna/events": "^0.1.16",
|
|
59
|
-
"@hasna/secrets": "0.3.
|
|
59
|
+
"@hasna/secrets": "0.3.5",
|
|
60
60
|
"@modelcontextprotocol/sdk": "^1.26.0",
|
|
61
61
|
"chalk": "^5.3.0",
|
|
62
62
|
"commander": "^12.1.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"pg": "^8.16.3",
|
|
69
69
|
"react": "^18.2.0",
|
|
70
70
|
"zod": "3.25.76",
|
|
71
|
-
"@hasna/contracts": "0.13.
|
|
71
|
+
"@hasna/contracts": "0.13.4"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"bun": ">=1.0.0"
|