@williamthorsen/toolbelt.secrets 0.5.0 โ 0.6.1
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.
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"version": "0.6.1",
|
|
4
|
+
"date": "2026-11-09",
|
|
5
|
+
"sections": [
|
|
6
|
+
{
|
|
7
|
+
"title": "๐ฆ Dependencies",
|
|
8
|
+
"audience": "dev",
|
|
9
|
+
"items": [{ "description": "Bumped `@williamthorsen/toolbelt.errors` to 0.9.1" }]
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"version": "0.6.0",
|
|
15
|
+
"date": "2026-10-25",
|
|
16
|
+
"sections": [
|
|
17
|
+
{
|
|
18
|
+
"title": "๐ Features",
|
|
19
|
+
"audience": "all",
|
|
20
|
+
"items": [
|
|
21
|
+
{
|
|
22
|
+
"description": "Adds the structured changelog `.meta/changelog.json` to each package's npm tarball, beside `CHANGELOG.md`. (#398)",
|
|
23
|
+
"hash": "2ce82cd51b7b78270274ae9318c2bc726eb09cf0",
|
|
24
|
+
"entry": 1
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"title": "โป๏ธ Refactoring",
|
|
30
|
+
"audience": "dev",
|
|
31
|
+
"items": [
|
|
32
|
+
{
|
|
33
|
+
"description": "Replaces hand-rolled error descriptions, `instanceof Error` checks on caught values, record guards, directory ascents, and first-letter capitalization in package source with `describeError`, `isError`, `isRecord`, `isRecordOrArray`, `listDirectoryChain`, and `capitalize`, and declares each helper's package from another workspace as a `workspace:*` runtime dependency of the package that adopts it. (#400)",
|
|
34
|
+
"hash": "dc681ce947df9aebf203f9457b10bc8afd2adec1",
|
|
35
|
+
"entry": 1
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"version": "0.5.0",
|
|
43
|
+
"date": "2026-10-11",
|
|
44
|
+
"sections": [
|
|
45
|
+
{
|
|
46
|
+
"title": "๐ชฆ Removed",
|
|
47
|
+
"audience": "all",
|
|
48
|
+
"items": [
|
|
49
|
+
{
|
|
50
|
+
"description": "Removes the `tb-secret` executable from `@williamthorsen/toolbelt.secrets`, along with its `bin` declaration and its README section, and links the README to `thor-secret` in `@williamthorsen/secret-tools`. (#384)",
|
|
51
|
+
"breaking": true,
|
|
52
|
+
"migration": "Install `@williamthorsen/secret-tools` and replace each `tb-secret` invocation with `thor-secret`, because the new package installs the command under that name and not as `tb-secret`.",
|
|
53
|
+
"hash": "2fff83f8875b13aa4aa1f69a6a30a10dc472044c",
|
|
54
|
+
"entry": 1
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"version": "0.4.3",
|
|
62
|
+
"date": "2026-10-11",
|
|
63
|
+
"sections": [
|
|
64
|
+
{
|
|
65
|
+
"title": "โป๏ธ Refactoring",
|
|
66
|
+
"audience": "dev",
|
|
67
|
+
"items": [
|
|
68
|
+
{
|
|
69
|
+
"description": "Replaces the private `readStreamText` copies in the `tb-jira` and `tb-secret` bins with imports from `@williamthorsen/toolbelt.cli/candidate`. (#381)",
|
|
70
|
+
"hash": "e9511be999d62720e414b2405287d7fd47300c0b",
|
|
71
|
+
"entry": 2
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"version": "0.4.2",
|
|
79
|
+
"date": "2026-10-09",
|
|
80
|
+
"sections": [
|
|
81
|
+
{
|
|
82
|
+
"title": "๐ฆ Dependencies",
|
|
83
|
+
"audience": "dev",
|
|
84
|
+
"items": [{ "description": "Bumped `@williamthorsen/toolbelt.cli` to 0.4.0" }]
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"version": "0.4.1",
|
|
90
|
+
"date": "2026-10-07",
|
|
91
|
+
"sections": [
|
|
92
|
+
{
|
|
93
|
+
"title": "๐ฆ Dependencies",
|
|
94
|
+
"audience": "dev",
|
|
95
|
+
"items": [{ "description": "Bumped `@williamthorsen/toolbelt.cli` to 0.3.0" }]
|
|
96
|
+
}
|
|
97
|
+
]
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"version": "0.4.0",
|
|
101
|
+
"date": "2026-10-06",
|
|
102
|
+
"sections": [
|
|
103
|
+
{
|
|
104
|
+
"title": "๐ Features",
|
|
105
|
+
"audience": "all",
|
|
106
|
+
"items": [
|
|
107
|
+
{
|
|
108
|
+
"description": "Moves the argument parsing, dispatch, and help of `tb-git`, `tb-jira`, `tb-node`, and `tb-secret` to `@williamthorsen/toolbelt.cli`, which generates each command's help from its schema and reports a usage error as `Error: <message>`, followed by a `Did you mean` line for a mistyped command and a pointer to that command's `--help`. (#365)",
|
|
109
|
+
"hash": "d9924a0c93f279691b21b98f2567ce157a2cfff4",
|
|
110
|
+
"entry": 1
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"description": "Adds `-V` to `tb-git`, `tb-jira`, `tb-node`, and `tb-secret` as a short form of `--version`. (#365)",
|
|
114
|
+
"hash": "d9924a0c93f279691b21b98f2567ce157a2cfff4",
|
|
115
|
+
"entry": 2
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"version": "0.3.1",
|
|
123
|
+
"date": "2026-10-02",
|
|
124
|
+
"sections": [
|
|
125
|
+
{
|
|
126
|
+
"title": "๐งช Tests",
|
|
127
|
+
"audience": "dev",
|
|
128
|
+
"items": [
|
|
129
|
+
{
|
|
130
|
+
"description": "Corrects test titles and one test input that misstated what their tests check, among them an `asNonEmptyArray` title that called a mutable array immutable and a `setDifference` test named for arrays that passed `Set` instances. (#353)",
|
|
131
|
+
"hash": "a63031711563d43c6909609fad4feccfe497e5d1",
|
|
132
|
+
"entry": 4
|
|
133
|
+
}
|
|
134
|
+
]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"title": "๐ Documentation",
|
|
138
|
+
"audience": "dev",
|
|
139
|
+
"items": [
|
|
140
|
+
{
|
|
141
|
+
"description": "Audits the comments in every authored TypeScript, JavaScript, shell, and YAML source and every `tsconfig*.json` against the comment discipline, cutting comments that paraphrase the code or narrate history, rewriting doc descriptions in the third-person indicative, and adding descriptions to the functions, methods, and classes that had none. (#353)",
|
|
142
|
+
"hash": "a63031711563d43c6909609fad4feccfe497e5d1",
|
|
143
|
+
"entry": 1
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"description": "Revises READMEs, doc comments, and test names across the repository to follow the current `plain-speech` and writing-preference rules. (#354)",
|
|
147
|
+
"hash": "b4e08eede95e052f4c27db2640ed6515df14baf4",
|
|
148
|
+
"entry": 1
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"description": "Rewords the help text and messages printed by `tb-jira`, `tb-node`, and `tb-secret`, and the advice and skip reasons reported by the adoption kits, to follow the same writing conventions. (#354)",
|
|
152
|
+
"hash": "b4e08eede95e052f4c27db2640ed6515df14baf4",
|
|
153
|
+
"entry": 2
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"version": "0.3.0",
|
|
161
|
+
"date": "2026-09-15",
|
|
162
|
+
"sections": [
|
|
163
|
+
{
|
|
164
|
+
"title": "๐ Features",
|
|
165
|
+
"audience": "all",
|
|
166
|
+
"items": [
|
|
167
|
+
{
|
|
168
|
+
"description": "Move createTempTree from toolbelt.filesystem to toolbelt.testing (#313)",
|
|
169
|
+
"body": "- Moves `CreateTempTreeOptions` and the `TempTree` handle to `@williamthorsen/toolbelt.testing/candidate` along with `createTempTree`.\n\nMigration: Import `createTempTree`, `CreateTempTreeOptions`, and `TempTree` from `@williamthorsen/toolbelt.testing/candidate`, and declare `@williamthorsen/toolbelt.testing` in the manifest that declared `@williamthorsen/toolbelt.filesystem` for them.",
|
|
170
|
+
"breaking": true,
|
|
171
|
+
"migration": "Import `createTempTree`, `CreateTempTreeOptions`, and `TempTree` from `@williamthorsen/toolbelt.testing/candidate`, and declare `@williamthorsen/toolbelt.testing` in the manifest that declared `@williamthorsen/toolbelt.filesystem` for them.",
|
|
172
|
+
"hash": "857dc50b69084af6de51cb557c0e54e0083e375d"
|
|
173
|
+
}
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"title": "โ๏ธ Tooling",
|
|
178
|
+
"audience": "dev",
|
|
179
|
+
"items": [
|
|
180
|
+
{
|
|
181
|
+
"description": "Remove the stale repo-local cliff.toml and normalize changelog titles (#327)",
|
|
182
|
+
"body": "- Stops `release-kit prepare` from printing a \"skipped due to grouping error(s)\" warning for each releasable workspace by letting it resolve the git-cliff template bundled with release-kit, previously overridden by the root `cliff.toml`.\n- Excludes commits without a ticket prefix from future changelog entries.\n- Renames the section titles in every `packages/*/.meta/changelog.json`, except `Dependency updates`, to the headings of release-kit's work-type taxonomy, such as \"๐ Features\" and \"๐๏ธ Internal features\", and regenerates each `CHANGELOG.md` so that release-kit orders existing and new sections by the same rule.\n- Causes the next `release-kit prepare` to plan patch releases of `dstructs`, `hof`, and `sets`, which had no other commits since their last release, because the changelog commit touches every workspace.",
|
|
183
|
+
"hash": "2b3c4fe7a08f210adb66f4a4f5bfedc011908d36"
|
|
184
|
+
}
|
|
185
|
+
]
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
"title": "๐ Documentation",
|
|
189
|
+
"audience": "dev",
|
|
190
|
+
"items": [
|
|
191
|
+
{
|
|
192
|
+
"description": "Align prose with plain-speech doctrine and writing conventions (#306)",
|
|
193
|
+
"body": "- Copy-edits prose across the repo: comments, test names, package READMEs, and `AGENTS.md`.\n- Rewrites a few user-facing strings as well, among them `configure-project`'s help text and the errors from `parseProjectSpec`, `securityCommands`, and `hashString`.",
|
|
194
|
+
"hash": "ab9c5a84a25e5084986733ecc79b88be9b9c7ef1"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
}
|
|
198
|
+
]
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"version": "0.2.0",
|
|
202
|
+
"date": "2026-09-06",
|
|
203
|
+
"sections": [
|
|
204
|
+
{
|
|
205
|
+
"title": "๐ Features",
|
|
206
|
+
"audience": "all",
|
|
207
|
+
"items": [
|
|
208
|
+
{
|
|
209
|
+
"description": "Add createKeychainStore and tb-secret to toolbelt.secrets (#276)",
|
|
210
|
+
"body": "Adds the first exports to `@williamthorsen/toolbelt.secrets`: `createKeychainStore`, which stores and reads secrets in the macOS keychain with no external dependency. Also adds `tb-secret`, a command that exposes the same store to a shell caller.\n\nSupports macOS only.",
|
|
211
|
+
"hash": "2e8d6aaecfcad938b39774f78c822b22f764572d"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"description": "Ship the tb-jira CLI and document toolbelt.atlassian (#295)",
|
|
215
|
+
"body": "- Adds the `tb-jira` binary to `@williamthorsen/toolbelt.atlassian`: Its `configure-project` subcommand reconciles a Jira project's statuses, workflow transitions, and board features against a spec file owned by the consuming repo, and `--dry-run` prints the plan and writes nothing.\n- Adds a `tb-jira auth` subcommand, which stores, replaces, and removes the Jira API token in the keychain and reports which source would supply it without printing the token.\n- Adds `resolveJiraSite`, `findJiraTokenSource`, and `JiraTransportError` to `@williamthorsen/toolbelt.atlassian/candidate`, so library code can resolve the site, name which link of the token chain would answer without reading the token, and tell a request that Jira rejected from one that never reached Jira.\n- Adds `promptSecret` and `UnstorableSecretError` to `@williamthorsen/toolbelt.secrets/candidate`, so a caller outside that package can prompt for a secret without echoing it and can tell a token refused by the keychain from a keychain that could not be reached.",
|
|
216
|
+
"hash": "b1f8c42d2b0d9ae3b691beb7141c301dbe363ba6"
|
|
217
|
+
}
|
|
218
|
+
]
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"title": "๐ Bug fixes",
|
|
222
|
+
"audience": "all",
|
|
223
|
+
"items": [
|
|
224
|
+
{
|
|
225
|
+
"description": "Stop truncating a secret longer than 128 characters (#278)",
|
|
226
|
+
"body": "Fixes an issue where `tb-secret set` and `setSecret` stored the first 128 bytes of a longer secret and reported success, so an API token of ordinary length was silently corrupted. Secrets of up to ~2,000 bytes can now be stored; an empty secret or a secret that exceeds the limit is refused.\n\nAt a terminal, `tb-secret set` now prompts for the secret twice. An abandoned prompt reports that nothing was stored.\n\nSeparately, a write can now target a named keychain: `createKeychainStore` returns a writable store for any keychain, and `tb-secret set` now has a `--keychain` option.",
|
|
227
|
+
"hash": "05f80928ad6aea69844bfcfa539a1cd22a004420"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"description": "Point every package bin at a committed wrapper (#296)",
|
|
231
|
+
"body": "- Points the `tb-git`, `tb-jira`, and `tb-secret` commands at committed wrappers under each package's `bin/`, so the target exists when the package manager links the command rather than only after a build.",
|
|
232
|
+
"hash": "920491782b81e31b9e3e626bf9a26d37dd99ea82"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"description": "Fix piped-stdin reads and unhandled EPIPE in the CLIs (#301)",
|
|
236
|
+
"body": "- Fixes an issue where `tb-secret set` and `tb-jira auth set` failed with `EAGAIN: resource temporarily unavailable` when the producer of a piped credential delayed its first byte, as `tb-secret get`, `op read`, and `gh auth token` all do.\n- Stops `tb-secret`, `tb-jira`, and `tb-git` from crashing with an unhandled `EPIPE` when the reader on their stdout or stderr exits first, so that `tb-secret get | head -1` ends quietly, as a program that ignores `SIGPIPE` does.",
|
|
237
|
+
"hash": "76bb91faf6da82e1d41f27e67b5055693f4c9168"
|
|
238
|
+
}
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
"title": "๐๏ธ Internal features",
|
|
243
|
+
"audience": "dev",
|
|
244
|
+
"items": [
|
|
245
|
+
{
|
|
246
|
+
"description": "Scaffold toolbelt.secrets for credential storage (#275)",
|
|
247
|
+
"body": "Scaffolds `packages/secrets`, an empty workspace for storing and retrieving secrets in the OS credential store, publishing to npm as `@williamthorsen/toolbelt.secrets`.",
|
|
248
|
+
"hash": "d625019170c68217cdd55b8092f0dd88da8df73f"
|
|
249
|
+
}
|
|
250
|
+
]
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"title": "๐ Documentation",
|
|
254
|
+
"audience": "dev",
|
|
255
|
+
"items": [
|
|
256
|
+
{
|
|
257
|
+
"description": "Repair the repository's prose and record every rejection's ground (#290)",
|
|
258
|
+
"body": "Applies one repo-wide `revise-prose` sweep across the repository's READMEs, `AGENTS.md`, source comments, doc descriptions, and test names.",
|
|
259
|
+
"hash": "e04e58fb6172a585a9207d363f96c9e481031baf"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
"description": "Restore relativizers across atlassian, secrets, and the workflows (#304)",
|
|
263
|
+
"body": "- Revises documentation and comments to align with plain-speech doctrine and writing conventions.",
|
|
264
|
+
"hash": "78a36fb425be681c8f373fba87a687114b3f3943"
|
|
265
|
+
}
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
]
|
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## 0.6.1 โ 2026-11-09
|
|
6
|
+
|
|
7
|
+
### ๐ฆ Dependencies
|
|
8
|
+
|
|
9
|
+
- Bumped `@williamthorsen/toolbelt.errors` to 0.9.1
|
|
10
|
+
|
|
11
|
+
## 0.6.0 โ 2026-10-25
|
|
12
|
+
|
|
13
|
+
### ๐ Features
|
|
14
|
+
|
|
15
|
+
- Adds the structured changelog `.meta/changelog.json` to each package's npm tarball, beside `CHANGELOG.md`. (#398)
|
|
16
|
+
|
|
17
|
+
### โป๏ธ Refactoring
|
|
18
|
+
|
|
19
|
+
- Replaces hand-rolled error descriptions, `instanceof Error` checks on caught values, record guards, directory ascents, and first-letter capitalization in package source with `describeError`, `isError`, `isRecord`, `isRecordOrArray`, `listDirectoryChain`, and `capitalize`, and declares each helper's package from another workspace as a `workspace:*` runtime dependency of the package that adopts it. (#400)
|
|
20
|
+
|
|
5
21
|
## 0.5.0 โ 2026-10-11
|
|
6
22
|
|
|
7
23
|
### ๐ชฆ Removed
|
package/README.md
CHANGED
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Utilities for storing and retrieving secrets in the OS credential store.
|
|
4
4
|
|
|
5
|
-
<!-- section:release-notes -->
|
|
6
|
-
## Release notes โ v0.5.0 (2026-10-11)
|
|
7
|
-
|
|
8
|
-
### ๐ชฆ Removed
|
|
9
|
-
|
|
10
|
-
- ๐จ **Breaking:** Removes the `tb-secret` executable from `@williamthorsen/toolbelt.secrets`, along with its `bin` declaration and its README section, and links the README to `thor-secret` in `@williamthorsen/secret-tools`. (#384)
|
|
11
|
-
<!-- /section:release-notes -->
|
|
5
|
+
<!-- section:release-notes --><!-- /section:release-notes -->
|
|
12
6
|
|
|
13
7
|
## Installation
|
|
14
8
|
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { describeError } from '@williamthorsen/toolbelt.errors';
|
|
1
2
|
import { assertStorableSecret } from "./assertStorableSecret.js";
|
|
2
3
|
import { parseSecurityPassword } from "./parseSecurityPassword.js";
|
|
3
4
|
import { buildDeleteArgs, buildFindArgs, buildHasArgs, composeSetLine } from "./securityCommands.js";
|
|
@@ -16,7 +17,7 @@ export function buildKeychainStore(run, keychain) {
|
|
|
16
17
|
return findSecret(query);
|
|
17
18
|
}
|
|
18
19
|
catch (error) {
|
|
19
|
-
const detail =
|
|
20
|
+
const detail = describeError(error);
|
|
20
21
|
throw new Error(`The secret was written but could not be read back to verify it. ${detail}`, { cause: error });
|
|
21
22
|
}
|
|
22
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UnstorableSecretError } from "../3-candidate/UnstorableSecretError.js";
|
|
2
|
-
const MAX_LINE_BYTES =
|
|
2
|
+
const MAX_LINE_BYTES = 4095;
|
|
3
3
|
const HEX_CHARACTERS_PER_BYTE = 2;
|
|
4
4
|
const LINE_BREAK_PATTERN = /[\n\r]/;
|
|
5
5
|
export function buildDeleteArgs(query, keychain) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@williamthorsen/toolbelt.secrets",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Utilities for storing and retrieving secrets in the OS credential store",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"credentials",
|
|
@@ -41,10 +41,14 @@
|
|
|
41
41
|
},
|
|
42
42
|
"files": [
|
|
43
43
|
"CHANGELOG.md",
|
|
44
|
+
".meta/changelog.json",
|
|
44
45
|
"dist/*"
|
|
45
46
|
],
|
|
47
|
+
"dependencies": {
|
|
48
|
+
"@williamthorsen/toolbelt.errors": "0.9.1"
|
|
49
|
+
},
|
|
46
50
|
"devDependencies": {
|
|
47
|
-
"@williamthorsen/toolbelt.testing": "0.
|
|
51
|
+
"@williamthorsen/toolbelt.testing": "0.8.1"
|
|
48
52
|
},
|
|
49
53
|
"engines": {
|
|
50
54
|
"node": ">=24.0.0"
|