@zabaca/zbc 0.23.0 → 0.23.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zabaca/zbc",
3
- "version": "0.23.0",
3
+ "version": "0.23.1",
4
4
  "description": "Zabaca stack CLI — scaffold and deploy infrastructure",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -891,9 +891,11 @@ the landing page render every Private sentence from. With it false, no document
891
891
  mentions readers, privacy or the credential helper.
892
892
 
893
893
  Readers need no account and no token: `@zabaca/agentgit` ships a credential
894
- helper, configured once per machine with `git config --global
895
- credential.https://<host>.helper '!agentgit credential'`, after which git needs
896
- nothing typed. A refused read answers **401 with the challenge** — never 404,
894
+ helper, configured once per machine with `agentgit setup` — an empty
895
+ `credential.https://<host>.helper` followed by `'!agentgit credential'`, the
896
+ empty one clearing any storing helper inherited from the system config, which
897
+ would otherwise replay an expired signature — after which git needs nothing
898
+ typed. A refused read answers **401 with the challenge** — never 404,
897
899
  because the name stopped being the secret when ownership landed — and the body
898
900
  names the helper and the by-hand exchange.
899
901
 
@@ -486,7 +486,8 @@ So configure the helper — *Read one*, below — **before** you write \`readers
486
486
  not after:
487
487
 
488
488
  \`\`\`sh
489
- git config --global credential.https://${host}.helper '!agentgit credential'
489
+ git config --global --replace-all credential.https://${host}.helper ''
490
+ git config --global --add credential.https://${host}.helper '!agentgit credential'
490
491
  \`\`\`
491
492
 
492
493
  Write one exactly as you wrote the Signer List — a signed push, judged by the
@@ -515,9 +516,16 @@ once per machine and git needs nothing typed afterwards — no account, no token
515
516
 
516
517
  \`\`\`sh
517
518
  bun add -g @zabaca/agentgit # or npm i -g
518
- git config --global credential.https://${host}.helper '!agentgit credential'
519
+ git config --global --replace-all credential.https://${host}.helper ''
520
+ git config --global --add credential.https://${host}.helper '!agentgit credential'
519
521
  \`\`\`
520
522
 
523
+ Both lines, the empty one first: it clears every helper git would otherwise
524
+ inherit for this host. A storing helper asked before agentgit (Homebrew's git
525
+ sets \`osxkeychain\` system-wide) saves the signature and replays it once the
526
+ challenge has moved on, so reads fail with \`Authentication failed\` every few
527
+ minutes and pass on the retry. \`agentgit setup\`, run in a clone, writes both.
528
+
521
529
  After that \`git clone\`, \`git fetch\`, \`git push\` and \`agentgit watch\` work on a
522
530
  Private repository with the key you already sign your pushes with. By hand, if you would
523
531
  rather see the exchange:
@@ -169,7 +169,7 @@ export function readAllowed({ enabled, claim, presented }: ReadRequest): boolean
169
169
  * Rendered rather than written as prose in `src/http.ts` for the reason every
170
170
  * other agent-facing document in this package is: the 401 is where discovery
171
171
  * actually lands — the moment it is relevant, on our server — so it names the
172
- * helper, the one config line, and the by-hand exchange for a reader who would
172
+ * helper, the two config lines, and the by-hand exchange for a reader who would
173
173
  * rather see the mechanism than install anything.
174
174
  *
175
175
  * `origin` is the host the agent TYPED (behind the Worker the request URL
@@ -185,7 +185,11 @@ export function renderReadChallenge(origin: string): string {
185
185
  '',
186
186
  'Once per machine, and then git needs nothing typed:',
187
187
  '',
188
- ` git config --global credential.${origin}.helper '!agentgit credential'`,
188
+ ` git config --global --replace-all credential.${origin}.helper ''`,
189
+ ` git config --global --add credential.${origin}.helper '!agentgit credential'`,
190
+ '',
191
+ 'Both lines: the empty helper clears any inherited from the system config',
192
+ '(osxkeychain), which would save the signature and replay it once expired.',
189
193
  '',
190
194
  'By hand, if you would rather see the exchange:',
191
195
  '',