run402 4.17.4 → 4.17.5
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/lib/buzz-doctor.mjs +4 -1
- package/lib/buzz-doctor.test.mjs +5 -0
- package/package.json +1 -1
package/lib/buzz-doctor.mjs
CHANGED
|
@@ -22,7 +22,10 @@ const BUZZ_CAPABILITIES = JSON.parse(readFileSync(
|
|
|
22
22
|
export const BUZZ_DOCTOR_TIMEOUT_MS = 3_000;
|
|
23
23
|
export const BUZZ_DOCTOR_MAX_RESPONSE_BYTES = 64 * 1024;
|
|
24
24
|
export const BUZZ_DOCTOR_MIN_NODE_MAJOR = 22;
|
|
25
|
-
|
|
25
|
+
// v4.17.2 is the first client whose Buzz doctor keeps a safely contained relay
|
|
26
|
+
// availability failure warning-only for founder-agent setup. Older clients can
|
|
27
|
+
// expose the same command surface while enforcing the wrong setup semantics.
|
|
28
|
+
export const BUZZ_DOCTOR_MIN_RUN402_VERSION = "4.17.2";
|
|
26
29
|
|
|
27
30
|
const SPEND_NONE = Object.freeze({ currency: "USD", max_amount: "0" });
|
|
28
31
|
const SAFE_TOKEN = /^[A-Za-z0-9_./:=@+,-]+$/;
|
package/lib/buzz-doctor.test.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { describe, it } from "node:test";
|
|
|
6
6
|
import { bech32 } from "@scure/base";
|
|
7
7
|
import {
|
|
8
8
|
buildBuzzDoctorReport,
|
|
9
|
+
BUZZ_DOCTOR_MIN_RUN402_VERSION,
|
|
9
10
|
BUZZ_DOCTOR_REPAIR_MATRIX,
|
|
10
11
|
isPublicAddress,
|
|
11
12
|
normalizeNostrSubject,
|
|
@@ -85,6 +86,10 @@ function healthyDependencies(overrides = {}) {
|
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
describe("Buzz doctor argument and identity contract", () => {
|
|
89
|
+
it("pins the first client with warning-only safe relay semantics", () => {
|
|
90
|
+
assert.equal(BUZZ_DOCTOR_MIN_RUN402_VERSION, "4.17.2");
|
|
91
|
+
});
|
|
92
|
+
|
|
88
93
|
it("accepts an explicit hex or npub target and rejects malformed/repeated combinations before probing", () => {
|
|
89
94
|
const npub = bech32.encode("npub", bech32.toWords(Buffer.from(SUBJECT, "hex")));
|
|
90
95
|
assert.deepEqual(parseBuzzDoctorArgs(["--buzz", "--buzz-agent", SUBJECT]), { buzz: true, expectedSubjectHex: SUBJECT });
|
package/package.json
CHANGED