@visa/cli 4.1.0-rc.70 → 4.1.0-rc.71
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/dist/checkout-engine/mandate/mandate-ledger.js +4 -1
- package/dist/cli.js +298 -296
- package/dist/mcp-server/index.js +219 -217
- package/native/bin/win32-x64/visa-keychain-win.exe +0 -0
- package/package.json +5 -4
- package/server.json +2 -2
|
@@ -36,7 +36,10 @@ const LEDGER_MAX_BYTES = 512 * 1024;
|
|
|
36
36
|
// A tap-free draw's reserve -> commit/release cycle completes in one network
|
|
37
37
|
// round-trip; a reservation older than this window can only be the debris of a
|
|
38
38
|
// crash between reserve and commit/release, so load() sweeps it (L1 self-heal).
|
|
39
|
-
|
|
39
|
+
// Must match the server-authoritative TTL (CARD_MANDATE_RESERVATION_TTL_SECONDS
|
|
40
|
+
// in apps/auth/src/server.ts, default 15 min) to avoid a window where the local
|
|
41
|
+
// ledger over-reports available headroom.
|
|
42
|
+
const STALE_RESERVATION_MS = 15 * 60 * 1000;
|
|
40
43
|
// Mandates expired longer ago than this are pruned on the next create(). Generous
|
|
41
44
|
// (a week) so a recently-expired mandate is still visible in `mandate list`, but
|
|
42
45
|
// bounded so a long-lived heavy user cannot grow the owner-only ledger file into
|