herdr-secret 0.1.1 → 0.1.2
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/cli.js +5 -4
- package/package.json +30 -7
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# herdr-secret
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/herdr-secret)
|
|
4
|
-
[](https://github.com/mazemaker/herdr-secret/actions/workflows/test.yml)
|
|
4
|
+
[](https://github.com/mazemaker/herdr-secret/actions/workflows/test.yml)
|
|
5
5
|
[](https://github.com/mazemaker/herdr-secret/blob/main/LICENSE)
|
|
6
6
|
|
|
7
7
|
Let your coding agents ask you for credentials without the value ever entering their chat.
|
|
@@ -42,8 +42,11 @@ agent cannot read it.
|
|
|
42
42
|
|
|
43
43
|
## Trust
|
|
44
44
|
|
|
45
|
-
- No dependencies. This package is one small script that finds herdr and
|
|
46
|
-
to the plugin.
|
|
45
|
+
- No dependencies and no install scripts. This package is one small script that finds herdr and
|
|
46
|
+
Python and hands over to the plugin.
|
|
47
|
+
- It runs exactly two programs, `herdr` and `python3` (`py` on Windows), without a shell, and
|
|
48
|
+
makes no network requests itself. The plugin download is done by `herdr plugin install`,
|
|
49
|
+
which shows you what it will run first.
|
|
47
50
|
- Published from GitHub Actions with npm provenance: the attestation on each version names the
|
|
48
51
|
commit and workflow run that built it.
|
|
49
52
|
- [What it protects and what it doesn't](https://github.com/mazemaker/herdr-secret#what-this-does-and-doesnt-protect),
|
package/cli.js
CHANGED
|
@@ -60,20 +60,21 @@ const USAGE = `herdr-secret (npm)
|
|
|
60
60
|
npx herdr-secret uninstall undo setup, optionally remove the plugin
|
|
61
61
|
npx herdr-secret ask|get|list|rm the plugin's own command (see herdr-secret help)
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
Documentation: npm home herdr-secret`;
|
|
64
64
|
|
|
65
65
|
function main(argv) {
|
|
66
66
|
if (['-h', '--help', 'help'].includes(argv[0])) {
|
|
67
67
|
console.log(USAGE);
|
|
68
68
|
return 0;
|
|
69
69
|
}
|
|
70
|
-
if (!capture('herdr', ['--version'])) fail('herdr is required
|
|
70
|
+
if (!capture('herdr', ['--version'])) fail('herdr is required. Install herdr first, then run this again.');
|
|
71
71
|
const py = findPython();
|
|
72
72
|
const [cmd, ...rest] = argv;
|
|
73
73
|
let p = plugin();
|
|
74
74
|
|
|
75
|
-
|
|
76
|
-
|
|
75
|
+
const flagsOnly = !cmd || cmd.startsWith('-'); // `npx herdr-secret --yes` means setup --yes
|
|
76
|
+
if (flagsOnly || cmd === 'install' || cmd === 'setup') {
|
|
77
|
+
const flags = flagsOnly ? argv : rest;
|
|
77
78
|
if (!p) {
|
|
78
79
|
const code = run('herdr', ['plugin', 'install', REPO]);
|
|
79
80
|
if (code !== 0) process.exit(code);
|
package/package.json
CHANGED
|
@@ -1,14 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "herdr-secret",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Installer and command for herdr-secret: a herdr popup form where coding agents ask you for credentials.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "mazemaker",
|
|
7
7
|
"homepage": "https://github.com/mazemaker/herdr-secret#readme",
|
|
8
|
-
"repository": {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/mazemaker/herdr-secret.git",
|
|
11
|
+
"directory": "npm"
|
|
12
|
+
},
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/mazemaker/herdr-secret/issues"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"herdr",
|
|
18
|
+
"herdr-plugin",
|
|
19
|
+
"credentials",
|
|
20
|
+
"secrets",
|
|
21
|
+
"keychain",
|
|
22
|
+
"ai-agents",
|
|
23
|
+
"coding-agents"
|
|
24
|
+
],
|
|
25
|
+
"bin": {
|
|
26
|
+
"herdr-secret": "cli.js"
|
|
27
|
+
},
|
|
28
|
+
"files": [
|
|
29
|
+
"cli.js"
|
|
30
|
+
],
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"test": "node --test"
|
|
36
|
+
}
|
|
14
37
|
}
|