@hoophq/rs 0.1.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/README.md +15 -0
- package/bin/rs.js +29 -0
- package/package.json +39 -0
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# rs
|
|
2
|
+
|
|
3
|
+
Local PII and secrets risk scanner for AI coding sessions (Claude Code, Cursor,
|
|
4
|
+
OpenCode). It runs on your machine. No gateway, no network.
|
|
5
|
+
|
|
6
|
+
```bash
|
|
7
|
+
npx @hoophq/rs # scan, then open the HTML risk report
|
|
8
|
+
npm i -g @hoophq/rs && rs # or install rs as a global command
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
npm installs the matching prebuilt binary through platform-specific optional
|
|
12
|
+
dependencies (`@hoophq/rs-<os>-<arch>`).
|
|
13
|
+
|
|
14
|
+
Read the [project README](https://github.com/hoophq/rs#readme) for the flags,
|
|
15
|
+
risk model, guardrails, and privacy.
|
package/bin/rs.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// Thin launcher: resolve the prebuilt rs binary from the platform package that
|
|
5
|
+
// matches this host (installed via optionalDependencies) and exec it
|
|
6
|
+
// transparently — forwarding argv, stdio and the exit code.
|
|
7
|
+
const { spawnSync } = require("child_process");
|
|
8
|
+
|
|
9
|
+
const pkg = `@hoophq/rs-${process.platform}-${process.arch}`;
|
|
10
|
+
const binName = process.platform === "win32" ? "rs.exe" : "rs";
|
|
11
|
+
|
|
12
|
+
let binPath;
|
|
13
|
+
try {
|
|
14
|
+
binPath = require.resolve(`${pkg}/bin/${binName}`);
|
|
15
|
+
} catch {
|
|
16
|
+
console.error(
|
|
17
|
+
`rs: no prebuilt binary for ${process.platform}-${process.arch}.\n` +
|
|
18
|
+
`The optional dependency "${pkg}" was not installed. If you installed ` +
|
|
19
|
+
`with --no-optional / --ignore-optional, reinstall without it.`,
|
|
20
|
+
);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const result = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
25
|
+
if (result.error) {
|
|
26
|
+
console.error(`rs: failed to execute ${binPath}: ${result.error.message}`);
|
|
27
|
+
process.exit(1);
|
|
28
|
+
}
|
|
29
|
+
process.exit(result.status === null ? 1 : result.status);
|
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@hoophq/rs",
|
|
3
|
+
"version": "0.1.4",
|
|
4
|
+
"description": "Local PII and secrets risk scanner for AI coding sessions (Claude Code, Cursor, OpenCode). No gateway, no network.",
|
|
5
|
+
"bin": {
|
|
6
|
+
"rs": "bin/rs.js"
|
|
7
|
+
},
|
|
8
|
+
"files": [
|
|
9
|
+
"bin/rs.js"
|
|
10
|
+
],
|
|
11
|
+
"optionalDependencies": {
|
|
12
|
+
"@hoophq/rs-darwin-arm64": "0.1.4",
|
|
13
|
+
"@hoophq/rs-darwin-x64": "0.1.4",
|
|
14
|
+
"@hoophq/rs-linux-x64": "0.1.4",
|
|
15
|
+
"@hoophq/rs-linux-arm64": "0.1.4",
|
|
16
|
+
"@hoophq/rs-win32-x64": "0.1.4"
|
|
17
|
+
},
|
|
18
|
+
"engines": {
|
|
19
|
+
"node": ">=14"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/hoophq/rs.git"
|
|
25
|
+
},
|
|
26
|
+
"homepage": "https://github.com/hoophq/rs#readme",
|
|
27
|
+
"keywords": [
|
|
28
|
+
"pii",
|
|
29
|
+
"secrets",
|
|
30
|
+
"security",
|
|
31
|
+
"ai",
|
|
32
|
+
"scanner",
|
|
33
|
+
"guardrails",
|
|
34
|
+
"hoop"
|
|
35
|
+
],
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public"
|
|
38
|
+
}
|
|
39
|
+
}
|