@hoophq/rs 0.1.4 → 0.2.0
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/README.md +6 -3
- package/bin/{rs.js → hooprs.js} +5 -5
- package/package.json +8 -8
package/README.md
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# hooprs
|
|
2
2
|
|
|
3
3
|
Local PII and secrets risk scanner for AI coding sessions (Claude Code, Cursor,
|
|
4
4
|
OpenCode). It runs on your machine. No gateway, no network.
|
|
5
5
|
|
|
6
6
|
```bash
|
|
7
|
-
npx @hoophq/rs
|
|
8
|
-
npm i -g @hoophq/rs &&
|
|
7
|
+
npx @hoophq/rs # scan, then open the HTML risk report
|
|
8
|
+
npm i -g @hoophq/rs && hooprs # or install hooprs as a global command
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
+
The command is named `hooprs` (not `rs`) so it never collides with the BSD
|
|
12
|
+
`rs(1)` utility that ships with macOS.
|
|
13
|
+
|
|
11
14
|
npm installs the matching prebuilt binary through platform-specific optional
|
|
12
15
|
dependencies (`@hoophq/rs-<os>-<arch>`).
|
|
13
16
|
|
package/bin/{rs.js → hooprs.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";
|
|
3
3
|
|
|
4
|
-
// Thin launcher: resolve the prebuilt
|
|
5
|
-
// matches this host (installed via optionalDependencies) and exec it
|
|
4
|
+
// Thin launcher: resolve the prebuilt hooprs binary from the platform package
|
|
5
|
+
// that matches this host (installed via optionalDependencies) and exec it
|
|
6
6
|
// transparently — forwarding argv, stdio and the exit code.
|
|
7
7
|
const { spawnSync } = require("child_process");
|
|
8
8
|
|
|
9
9
|
const pkg = `@hoophq/rs-${process.platform}-${process.arch}`;
|
|
10
|
-
const binName = process.platform === "win32" ? "
|
|
10
|
+
const binName = process.platform === "win32" ? "hooprs.exe" : "hooprs";
|
|
11
11
|
|
|
12
12
|
let binPath;
|
|
13
13
|
try {
|
|
14
14
|
binPath = require.resolve(`${pkg}/bin/${binName}`);
|
|
15
15
|
} catch {
|
|
16
16
|
console.error(
|
|
17
|
-
`
|
|
17
|
+
`hooprs: no prebuilt binary for ${process.platform}-${process.arch}.\n` +
|
|
18
18
|
`The optional dependency "${pkg}" was not installed. If you installed ` +
|
|
19
19
|
`with --no-optional / --ignore-optional, reinstall without it.`,
|
|
20
20
|
);
|
|
@@ -23,7 +23,7 @@ try {
|
|
|
23
23
|
|
|
24
24
|
const result = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
25
25
|
if (result.error) {
|
|
26
|
-
console.error(`
|
|
26
|
+
console.error(`hooprs: failed to execute ${binPath}: ${result.error.message}`);
|
|
27
27
|
process.exit(1);
|
|
28
28
|
}
|
|
29
29
|
process.exit(result.status === null ? 1 : result.status);
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hoophq/rs",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Local PII and secrets risk scanner for AI coding sessions (Claude Code, Cursor, OpenCode). No gateway, no network.",
|
|
5
5
|
"bin": {
|
|
6
|
-
"
|
|
6
|
+
"hooprs": "bin/hooprs.js"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
|
-
"bin/
|
|
9
|
+
"bin/hooprs.js"
|
|
10
10
|
],
|
|
11
11
|
"optionalDependencies": {
|
|
12
|
-
"@hoophq/rs-darwin-arm64": "0.
|
|
13
|
-
"@hoophq/rs-darwin-x64": "0.
|
|
14
|
-
"@hoophq/rs-linux-x64": "0.
|
|
15
|
-
"@hoophq/rs-linux-arm64": "0.
|
|
16
|
-
"@hoophq/rs-win32-x64": "0.
|
|
12
|
+
"@hoophq/rs-darwin-arm64": "0.2.0",
|
|
13
|
+
"@hoophq/rs-darwin-x64": "0.2.0",
|
|
14
|
+
"@hoophq/rs-linux-x64": "0.2.0",
|
|
15
|
+
"@hoophq/rs-linux-arm64": "0.2.0",
|
|
16
|
+
"@hoophq/rs-win32-x64": "0.2.0"
|
|
17
17
|
},
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=14"
|