herdr-secret 0.1.0 → 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 +47 -15
- package/cli.js +5 -4
- package/package.json +30 -7
package/README.md
CHANGED
|
@@ -1,24 +1,56 @@
|
|
|
1
1
|
# herdr-secret
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
[herdr](https://herdr.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/herdr-secret)
|
|
4
|
+
[](https://github.com/mazemaker/herdr-secret/actions/workflows/test.yml)
|
|
5
|
+
[](https://github.com/mazemaker/herdr-secret/blob/main/LICENSE)
|
|
6
|
+
|
|
7
|
+
Let your coding agents ask you for credentials without the value ever entering their chat.
|
|
8
|
+
|
|
9
|
+
An agent runs `herdr-secret ask`. A form pops up in your [herdr](https://herdr.dev) session,
|
|
10
|
+
you type the value there, and it goes straight into your operating system's credential store.
|
|
11
|
+
The agent only gets back whether you answered.
|
|
12
|
+
|
|
13
|
+

|
|
14
|
+
|
|
15
|
+
## Install
|
|
8
16
|
|
|
9
17
|
```sh
|
|
10
18
|
npx herdr-secret@latest
|
|
11
19
|
```
|
|
12
20
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
Codex, OpenCode, Gemini CLI) to use it.
|
|
21
|
+
Works on macOS, Linux and Windows. It installs the herdr plugin from
|
|
22
|
+
[GitHub](https://github.com/mazemaker/herdr-secret) (herdr shows what it will run and asks
|
|
23
|
+
first), then walks you through setup:
|
|
17
24
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
25
|
+
- checks that your credential store works,
|
|
26
|
+
- puts the `herdr-secret` command on your PATH,
|
|
27
|
+
- offers to teach the agents it finds (Claude Code, Codex, OpenCode, Gemini CLI) to ask
|
|
28
|
+
through it instead of asking you to paste credentials,
|
|
29
|
+
- lets you try the form once.
|
|
30
|
+
|
|
31
|
+
`npx herdr-secret uninstall` removes everything setup added.
|
|
32
|
+
|
|
33
|
+
## Where values go
|
|
34
|
+
|
|
35
|
+
- **macOS:** login Keychain
|
|
36
|
+
- **Windows:** Credential Manager
|
|
37
|
+
- **Linux:** Secret Service (GNOME Keyring, KWallet). Without one, setup asks before falling
|
|
38
|
+
back to 0600 files.
|
|
39
|
+
|
|
40
|
+
Values never pass through a command line or a log, and the popup is not a herdr pane, so an
|
|
41
|
+
agent cannot read it.
|
|
42
|
+
|
|
43
|
+
## Trust
|
|
44
|
+
|
|
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.
|
|
50
|
+
- Published from GitHub Actions with npm provenance: the attestation on each version names the
|
|
51
|
+
commit and workflow run that built it.
|
|
52
|
+
- [What it protects and what it doesn't](https://github.com/mazemaker/herdr-secret#what-this-does-and-doesnt-protect),
|
|
53
|
+
and [how to report a security problem](https://github.com/mazemaker/herdr-secret/blob/main/SECURITY.md).
|
|
21
54
|
|
|
22
|
-
Requires herdr 0.9.5
|
|
23
|
-
|
|
24
|
-
what it does and doesn't protect.
|
|
55
|
+
Requires herdr 0.9.5+, Python 3.8+ (the plugin runs on it), and Node 18+ for this installer.
|
|
56
|
+
MIT licensed.
|
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
|
}
|