@ghostlytools/cli 1.7.4 → 1.8.0

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.
Files changed (84) hide show
  1. package/README.md +12 -6
  2. package/SKILL.md +1 -1
  3. package/dist/assets/{api-Chhvpwok.js → api-Dj1yn0px.js} +2 -2
  4. package/dist/assets/{api-D3i2hwy0.js → api-I_KbuXHa.js} +62 -16
  5. package/dist/assets/api-I_KbuXHa.js.map +1 -0
  6. package/dist/assets/{apiKit-BtsHrnoo.js → apiKit-C-_PWZvy.js} +17 -5
  7. package/dist/assets/{apiKit-BtsHrnoo.js.map → apiKit-C-_PWZvy.js.map} +1 -1
  8. package/dist/assets/{apps-BHl97rHs.js → apps-DKIe8VjF.js} +8 -7
  9. package/dist/assets/apps-DKIe8VjF.js.map +1 -0
  10. package/dist/assets/{apps-BFJTqvAt.js → apps-DbEfL_3b.js} +1 -1
  11. package/dist/assets/{arkade-BFE8KkEE.js → arkade-k1bdSm70.js} +2 -2
  12. package/dist/assets/{arkade-BFE8KkEE.js.map → arkade-k1bdSm70.js.map} +1 -1
  13. package/dist/assets/{backup-Bbsr6nDi.js → backup-Cdd6-HNu.js} +1 -1
  14. package/dist/assets/{backup-CxACdtQX.js → backup-beKfbfNk.js} +6 -6
  15. package/dist/assets/{backup-CxACdtQX.js.map → backup-beKfbfNk.js.map} +1 -1
  16. package/dist/assets/buttons-BO1_7V4L.js +2 -0
  17. package/dist/assets/{buttons-CieBtXEO.js → buttons-ClI13rdv.js} +7 -6
  18. package/dist/assets/buttons-ClI13rdv.js.map +1 -0
  19. package/dist/assets/{daemonProof-QmtwDj-N.js → daemonProof-DtrL5lE5.js} +2 -2
  20. package/dist/assets/{daemonProof-QmtwDj-N.js.map → daemonProof-DtrL5lE5.js.map} +1 -1
  21. package/dist/assets/{envelope-DYiGwzq_.js → envelope-B88yiCQj.js} +2 -2
  22. package/dist/assets/{envelope-DYiGwzq_.js.map → envelope-B88yiCQj.js.map} +1 -1
  23. package/dist/assets/{errors-QUGP-jIF.js → errors-R4S2SAEM.js} +7 -2
  24. package/dist/assets/errors-R4S2SAEM.js.map +1 -0
  25. package/dist/assets/{groupFiles-CBJIEvCE.js → groupFiles-DjQc5XXv.js} +135 -24
  26. package/dist/assets/groupFiles-DjQc5XXv.js.map +1 -0
  27. package/dist/assets/{host-Va-r_KJz.js → host-CNWGB3-j.js} +44 -20
  28. package/dist/assets/host-CNWGB3-j.js.map +1 -0
  29. package/dist/assets/{hyperdhtRelay-B2uK9tJv.js → hyperdhtRelay-g7eXzf5h.js} +2 -2
  30. package/dist/assets/{hyperdhtRelay-B2uK9tJv.js.map → hyperdhtRelay-g7eXzf5h.js.map} +1 -1
  31. package/dist/assets/{irohWeb-DxeEgQ-W.js → irohWeb-Bx8dI4be.js} +2 -2
  32. package/dist/assets/{irohWeb-DxeEgQ-W.js.map → irohWeb-Bx8dI4be.js.map} +1 -1
  33. package/dist/assets/{main-BX4oPWCJ.js → main-BRxhBctJ.js} +121 -37
  34. package/dist/assets/main-BRxhBctJ.js.map +1 -0
  35. package/dist/assets/{mainline-IfWQOB-J.js → mainline-CwuS6ngj.js} +2 -2
  36. package/dist/assets/{mainline-IfWQOB-J.js.map → mainline-CwuS6ngj.js.map} +1 -1
  37. package/dist/assets/mints-BaOmx517.js +2 -0
  38. package/dist/assets/{mints-BrlY773j.js → mints-j5XAOk4f.js} +15 -3
  39. package/dist/assets/mints-j5XAOk4f.js.map +1 -0
  40. package/dist/assets/{networkReason-N2vAaoth.js → networkReason-CIAMieQm.js} +2 -2
  41. package/dist/assets/{networkReason-N2vAaoth.js.map → networkReason-CIAMieQm.js.map} +1 -1
  42. package/dist/assets/{nwc-CzyCtNK2.js → nwc-C9JLJJkL.js} +3 -3
  43. package/dist/assets/{nwc-CzyCtNK2.js.map → nwc-C9JLJJkL.js.map} +1 -1
  44. package/dist/assets/{nwcProvider-DjWmEn3j.js → nwcProvider-pFMrsUJh.js} +2 -2
  45. package/dist/assets/{nwcProvider-DjWmEn3j.js.map → nwcProvider-pFMrsUJh.js.map} +1 -1
  46. package/dist/assets/{profiles-DcCeOi7J.js → profiles-MFtCmJwK.js} +3 -3
  47. package/dist/assets/{profiles-DcCeOi7J.js.map → profiles-MFtCmJwK.js.map} +1 -1
  48. package/dist/assets/{registry-CeW8XEQc.js → registry-Cks7FA_o.js} +3 -3
  49. package/dist/assets/{registry-CeW8XEQc.js.map → registry-Cks7FA_o.js.map} +1 -1
  50. package/dist/assets/{registry-BmS02J5h.js → registry-DY2ixQfU.js} +1 -1
  51. package/dist/assets/{resolve-BvHkAhDH.js → resolve-C4Y2HPqQ.js} +15 -3
  52. package/dist/assets/resolve-C4Y2HPqQ.js.map +1 -0
  53. package/dist/assets/{restoredRows-mTTp3XNs.js → restoredRows-BCRCjhdF.js} +26 -2
  54. package/dist/assets/{restoredRows-mTTp3XNs.js.map → restoredRows-BCRCjhdF.js.map} +1 -1
  55. package/dist/assets/{server-BUcJo4vz.js → server-D9RAmGdm.js} +650 -150
  56. package/dist/assets/server-D9RAmGdm.js.map +1 -0
  57. package/dist/assets/{src-BB5-5P3s.js → src-1RU4TilT.js} +878 -77
  58. package/dist/assets/src-1RU4TilT.js.map +1 -0
  59. package/dist/assets/{translate-2WyaRVCr.js → translate-od5GbpvR.js} +11 -7
  60. package/dist/assets/translate-od5GbpvR.js.map +1 -0
  61. package/dist/assets/{usdt-BLazHiaP.js → usdt-DldXV0MR.js} +3 -3
  62. package/dist/assets/{usdt-BLazHiaP.js.map → usdt-DldXV0MR.js.map} +1 -1
  63. package/dist/assets/waitNotice-Ck3el3_Z.js +45 -0
  64. package/dist/assets/waitNotice-Ck3el3_Z.js.map +1 -0
  65. package/dist/assets/{words-BaumxjXe.js → words-BS2qq_vV.js} +6 -3
  66. package/dist/assets/words-BS2qq_vV.js.map +1 -0
  67. package/dist/ghostly.mjs +1 -1
  68. package/examples/claude-code-agent.sh +1 -1
  69. package/package.json +1 -1
  70. package/dist/assets/api-D3i2hwy0.js.map +0 -1
  71. package/dist/assets/apps-BHl97rHs.js.map +0 -1
  72. package/dist/assets/buttons-CieBtXEO.js.map +0 -1
  73. package/dist/assets/buttons-YtAj3R_E.js +0 -2
  74. package/dist/assets/errors-QUGP-jIF.js.map +0 -1
  75. package/dist/assets/groupFiles-CBJIEvCE.js.map +0 -1
  76. package/dist/assets/host-Va-r_KJz.js.map +0 -1
  77. package/dist/assets/main-BX4oPWCJ.js.map +0 -1
  78. package/dist/assets/mints-BrlY773j.js.map +0 -1
  79. package/dist/assets/mints-CqTdA4Gk.js +0 -2
  80. package/dist/assets/resolve-BvHkAhDH.js.map +0 -1
  81. package/dist/assets/server-BUcJo4vz.js.map +0 -1
  82. package/dist/assets/src-BB5-5P3s.js.map +0 -1
  83. package/dist/assets/translate-2WyaRVCr.js.map +0 -1
  84. package/dist/assets/words-BaumxjXe.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  //#region src/errors.ts
2
+ /** `interrupted`: Ctrl-C (SIGINT) ended the command, 128 + 2 as a shell says of a command its signal ended. */
2
3
  var EXIT = {
3
4
  engine: 1,
4
5
  refused: 1,
@@ -9,7 +10,8 @@ var EXIT = {
9
10
  usage: 2,
10
11
  not_found: 3,
11
12
  timeout: 4,
12
- confirm: 5
13
+ confirm: 5,
14
+ interrupted: 130
13
15
  };
14
16
  var CliError = class extends Error {
15
17
  code;
@@ -67,7 +69,10 @@ var ENGINE_CODES = {
67
69
  invalidMaxFee: "bad_request",
68
70
  notEnoughSats: "refused",
69
71
  notEnoughForFee: "refused",
72
+ mintsNoAnyAmount: "refused",
70
73
  ecashAlreadySpent: "refused",
74
+ ecashFeeTakesAll: "refused",
75
+ lightningRefused: "refused",
71
76
  contactNoWallet: "refused",
72
77
  contactNoPayments: "refused"
73
78
  };
@@ -141,4 +146,4 @@ function localFileError(error, file) {
141
146
  //#endregion
142
147
  export { localFileError as i, EXIT as n, asCliError as r, CliError as t };
143
148
 
144
- //# sourceMappingURL=errors-QUGP-jIF.js.map
149
+ //# sourceMappingURL=errors-R4S2SAEM.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors-R4S2SAEM.js","names":[],"sources":["../../src/errors.ts"],"sourcesContent":["/**\n * Errors that reach a bot: a stable `code` to branch on, a message for people, and the exit status the CLI\n * leaves with (WISP 1100 § Exit codes). The daemon sends `{code, message}` over the socket; the CLI prints\n * `{\"error\": {code, message}}` on stdout and exits with `exit`.\n */\nexport type ErrorCode =\n | \"bad_request\" | \"usage\" | \"not_found\" | \"refused\" | \"unavailable\" | \"confirm\" | \"timeout\"\n | \"engine\" | \"busy\" | \"internal\" | \"interrupted\";\n\n/** `interrupted`: Ctrl-C (SIGINT) ended the command, 128 + 2 as a shell says of a command its signal ended. */\nexport const EXIT: Record<ErrorCode, number> = {\n engine: 1, refused: 1, unavailable: 1, bad_request: 1, busy: 1, internal: 1,\n usage: 2, not_found: 3, timeout: 4, confirm: 5, interrupted: 130,\n};\n\nexport class CliError extends Error {\n constructor(readonly code: ErrorCode, message: string, readonly details?: Record<string, unknown>) {\n super(message);\n this.name = \"CliError\";\n }\n toJSON(): { code: ErrorCode; message: string; details?: Record<string, unknown> } {\n return { code: this.code, message: this.message, ...(this.details ? { details: this.details } : {}) };\n }\n}\n\n/** Anything thrown, as the error a bot sees: the engine's own refusals keep their words. */\nexport function asCliError(error: unknown): CliError {\n if (error instanceof CliError) return error;\n if (error && typeof error === \"object\" && \"code\" in error && \"message\" in error && typeof (error as { code: unknown }).code === \"string\"\n && Object.hasOwn(EXIT, (error as { code: string }).code)) return new CliError((error as { code: ErrorCode }).code, String((error as { message: unknown }).message));\n // A contact the chat's link could not reach (its `GhostlyHttpError` \"unreachable\"): not there now, not the engine failing.\n if (error instanceof Error && (error as { code?: unknown }).code === \"unreachable\") return new CliError(\"unavailable\", error.message);\n const known = engineKnown(error);\n if (known) return known;\n const full = noRoomError(error);\n if (full) return full;\n const local = localFileError(error);\n if (local) return local;\n const unopened = profileOpenError(error);\n if (unopened) return unopened;\n const message = error instanceof Error ? error.message : String(error);\n if (/real money|confirmedReal|Mainnet/i.test(message) && /confirm/i.test(message)) return new CliError(\"confirm\", message);\n if (/other network|cross-network|network does not match/i.test(message)) return new CliError(\"refused\", message);\n // A member asking for a group's admin-only change, one removed from the group (or gone) asking for any, an invitation\n // already answered: not allowed, not the engine failing.\n if (/^Only the admin |^You are no longer in this group$|^No invitation to (accept|decline)$/.test(message)) return new CliError(\"refused\", message);\n // `group invite` into a community: it has no invitations, its link is how people join.\n if (message === \"Share the group's link with them: anyone who opens it joins\") return new CliError(\"bad_request\", message);\n return new CliError(\"engine\", message);\n}\n\n/**\n * The engine's known errors (`EngineError`, packages/core engineErrors.ts) a bot branches on, by their `engineCode`: a\n * host or the network not answering is `unavailable` (try again later), one too slow `timeout`, a value the person gave\n * `bad_request`, money that is not there `refused`, a contact that offers no way of paying `refused` with its reason in\n * `details.reason`. Any other keeps `engine`. Read by its shape, as `profileOpenError`.\n */\nconst ENGINE_CODES: Record<string, ErrorCode> = {\n mintUnreachable: \"unavailable\", lnurlUnreachable: \"unavailable\", hostUnreachable: \"unavailable\", networkUnreachable: \"unavailable\", usdtRpcUnavailable: \"unavailable\",\n hostTimedOut: \"timeout\", networkTimedOut: \"timeout\",\n invalidMintUrl: \"bad_request\", mintNotHttps: \"bad_request\", invalidMaxFee: \"bad_request\",\n notEnoughSats: \"refused\", notEnoughForFee: \"refused\", mintsNoAnyAmount: \"refused\", ecashAlreadySpent: \"refused\", ecashFeeTakesAll: \"refused\", lightningRefused: \"refused\", contactNoWallet: \"refused\", contactNoPayments: \"refused\",\n};\n/** `details.reason` of an engine error a bot tells apart from others of its code. */\nconst ENGINE_REASONS: Record<string, string> = { contactNoWallet: \"contact_no_wallet\", contactNoPayments: \"contact_payments_off\" };\n\nfunction engineKnown(error: unknown): CliError | undefined {\n if (!(error instanceof Error)) return undefined;\n const { engineCode, values } = error as { engineCode?: unknown; values?: { host?: unknown } };\n if (typeof engineCode !== \"string\" || !Object.hasOwn(ENGINE_CODES, engineCode)) return undefined;\n // The app's reason for a Lightning address it could not read (a browser's CORS) is no reason in a terminal.\n if (engineCode === \"lnurlUnreachable\" && typeof values?.host === \"string\") return new CliError(\"unavailable\", `Could not reach ${values.host}`);\n const details = Object.hasOwn(ENGINE_REASONS, engineCode) ? { reason: ENGINE_REASONS[engineCode] } : undefined;\n // The contact's next step, for a contact that is a bot too.\n if (engineCode === \"contactNoWallet\") return new CliError(\"refused\", `${error.message} (on a CLI: ghostly wallet create cashu)`, details);\n return new CliError(ENGINE_CODES[engineCode], error.message, details);\n}\n\n/**\n * A change the profile's store could not put on disk (`storage.ts` refuses its transaction with a QuotaExceededError;\n * the engine's `committed` wraps it in its own words, the store's as the cause): `unavailable`, try again once there is\n * room, in the store's words, which name the profile's folder. Before, a daemon on a full disk answered done.\n */\nfunction noRoomError(error: unknown): CliError | undefined {\n let said: string | undefined, found = false;\n for (let at = error, depth = 0; at && typeof at === \"object\" && depth < 4; at = (at as { cause?: unknown }).cause, depth++) {\n if ((at as { name?: unknown }).name !== \"QuotaExceededError\") continue;\n found = true;\n const message = (at as { message?: unknown }).message;\n if (typeof message === \"string\" && message.startsWith(\"No room left\")) said = message;\n }\n return found ? new CliError(\"unavailable\", said ?? \"No room left on the disk: free some space, then try again\") : undefined;\n}\n\n/**\n * The profile's database did not open (the engine's `ProfileOpenError`, packages/browser/src/shared/idb.ts): `engine`\n * (exit 1) with the engine's own words, which name the versions when a newer ghostly stored it, and the reason and\n * the versions in `details` for a bot. Read by its shape: this module is also the thin client's, which loads no engine.\n */\nfunction profileOpenError(error: unknown): CliError | undefined {\n if (!(error instanceof Error) || error.name !== \"ProfileOpenError\") return undefined;\n const failure = (error as { failure?: { reason?: unknown; storedVersion?: unknown; supportedVersion?: unknown } }).failure;\n if (!failure || typeof failure.reason !== \"string\") return undefined;\n return new CliError(\"engine\", error.message, {\n reason: failure.reason === \"newer\" ? \"newer_profile\" : `profile_${failure.reason}`,\n ...(typeof failure.storedVersion === \"number\" ? { storedVersion: failure.storedVersion } : {}),\n ...(typeof failure.supportedVersion === \"number\" ? { supportedVersion: failure.supportedVersion } : {}),\n });\n}\n\n/**\n * A file or folder on this machine the command could not open (`file save --dir`, `profile backup --out`): the\n * person's path, not the engine refusing, so it says so with the code a bot branches on. Before, a folder that did\n * not exist was `engine` (exit 1) with Node's `ENOENT: no such file or directory, open '…'`. `file`: the path read, for\n * an error that names none (a folder read as a file).\n */\nexport function localFileError(error: unknown, file?: string): CliError | undefined {\n if (!error || typeof error !== \"object\" || typeof (error as { syscall?: unknown }).syscall !== \"string\") return undefined;\n const { code, path } = error as { code?: unknown; path?: unknown };\n const where = typeof path === \"string\" ? path : file ?? \"the path\";\n if (code === \"ENOENT\" || code === \"ENOTDIR\") return new CliError(\"not_found\", `No such file or folder: ${where}`);\n if (code === \"EACCES\" || code === \"EPERM\" || code === \"EROFS\") return new CliError(\"refused\", `Not allowed to write or read ${where}`);\n if (code === \"EISDIR\") return new CliError(\"bad_request\", `${where} is a folder: name a file`);\n if (code === \"ENAMETOOLONG\") return new CliError(\"bad_request\", `A name in ${where} is too long for this file system (at most 255 bytes)`);\n // A full disk (or a quota) answered Node's raw \"ENOSPC: no space left on device, write\" as `engine`, naming nothing\n // (agents#1710). `unavailable`: it works again once there is room, with nothing lost.\n if (code === \"ENOSPC\" || code === \"EDQUOT\") {\n const at = typeof path === \"string\" ? path : file;\n return new CliError(\"unavailable\", at ? `No room left for ${at}: free some space, then try again` : \"No room left on the disk: free some space, then try again\", { reason: \"no_space\", errno: code, ...(at && { path: at }) });\n }\n return undefined;\n}\n"],"mappings":";;AAUA,IAAa,OAAkC;CAC7C,QAAQ;CAAG,SAAS;CAAG,aAAa;CAAG,aAAa;CAAG,MAAM;CAAG,UAAU;CAC1E,OAAO;CAAG,WAAW;CAAG,SAAS;CAAG,SAAS;CAAG,aAAa;AAC/D;AAEA,IAAa,WAAb,cAA8B,MAAM;CACb;CAA2C;CAAhE,YAAY,MAA0B,SAAiB,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gi as identityStatement, Gn as GROUP_FILE_LIMITS, Hn as engineError, Ji as revokesIdentity, Jn as GROUP_WANT_NO_FRAME, Ki as newIdentityBinding, Kn as GROUP_HAVE_FRAME, Mr as transferEnded, Ta as RateWindow, Tn as requestLnurlInvoice, Ui as emptyIdentityLedger, Un as engineText, Vi as IdentityExchange, Wi as identityRevocationValue, Xn as groupFileFallback, Yn as fetchesByItself, Zn as isGroupMessageId, er as readGroupWant, ga as fileMessageText, jr as FileUplink, kr as ChatFiles, ln as walletNetworkOf, qi as receivedIdentityStatus, rn as WALLET_NETWORKS, tr as readGroupWantNo, wu as toBase64Url, xu as fromBase64Url, zi as IDENTITY_REVOCATION_LABEL } from "./src-BB5-5P3s.js";
1
+ import { $n as readGroupHave, Au as toBase64Url, Bi as IDENTITY_REVOCATION_LABEL, Dn as decodeBolt11, Du as fromBase64Url, Ea as RateWindow, En as resolveLightningDestination, Gi as identityRevocationValue, Gn as GROUP_FILE_LIMITS, Hi as IdentityExchange, Hn as engineError, Ji as receivedIdentityStatus, Jn as GROUP_WANT_NO_FRAME, Ka as replySnippet, Ki as identityStatement, Kn as GROUP_HAVE_FRAME, Nr as transferEnded, Tn as requestLnurlInvoice, Un as engineText, Wi as emptyIdentityLedger, Xn as groupFileFallback, Yi as revokesIdentity, Yn as fetchesByItself, Zn as isGroupMessageId, _a as fileMessageText, er as readGroupWant, jr as FileUplink, kr as ChatFiles, ku as randomBytes, ln as walletNetworkOf, qi as newIdentityBinding, rn as WALLET_NETWORKS, tr as readGroupWantNo } from "./src-1RU4TilT.js";
2
2
  import { a as describeProvider, c as offeredIn, d as sourceProblem, n as PROVIDER_PLATFORMS, o as isNothingSpentError, s as networkMode, t as NothingSpentError, u as redact } from "./types-C4_KafL_.js";
3
3
  import { g as wrap, h as transact, i as STORES, m as store, s as databaseName, u as fileStore } from "./idb-BkOJES5_.js";
4
- import { a as sealSeed, i as newDeviceKey, o as unsealSeed, t as networkReason } from "./networkReason-N2vAaoth.js";
5
- import { t as BITCOIN_INVOICE_ON_TESTNET, u as mintNetwork } from "./mints-BrlY773j.js";
6
- import { v as boundedIdentityFetch, y as verifyIdentity } from "./resolve-BvHkAhDH.js";
7
- import { i as fromBase64Url$1 } from "./envelope-DYiGwzq_.js";
4
+ import { a as sealSeed, i as newDeviceKey, o as unsealSeed, t as networkReason } from "./networkReason-CIAMieQm.js";
5
+ import { t as BITCOIN_INVOICE_ON_TESTNET, u as mintNetwork } from "./mints-j5XAOk4f.js";
6
+ import { v as boundedIdentityFetch, y as verifyIdentity } from "./resolve-C4Y2HPqQ.js";
7
+ import { i as fromBase64Url$1 } from "./envelope-B88yiCQj.js";
8
8
  import { f as FILE_BYTES_STEP, o as fileBytes, s as fileBytesOf } from "./fileBytes-DNgrRL0R.js";
9
9
  import { sha256 } from "@noble/hashes/sha2.js";
10
10
  import { validateMnemonic } from "@scure/bip39";
@@ -990,6 +990,45 @@ var ProviderSources = class {
990
990
  }
991
991
  };
992
992
  //#endregion
993
+ //#region ../browser/src/engine/invoicePace.ts
994
+ /**
995
+ * How often an open invoice of ours is asked about, at its Cashu mint or at a Lightning card's source (agents#2447).
996
+ * Someone pays an invoice soon after it is shown, or not at all: it is asked about every few seconds at first, then
997
+ * less and less. Asked every 4 s for the hour a mint or a node keeps it open, an invoice nobody paid cost about 900
998
+ * requests (on NWC each one signed, encrypted and carried by the wallet's relay); on this pace it costs about 100.
999
+ *
1000
+ * Whoever knows a payment may have happened asks at once, whatever the pace: a payer's "I paid" (`vouch`), the
1001
+ * request's check, a wallet about to be removed. The screen showing an invoice keeps it `watched`, at the fast pace.
1002
+ */
1003
+ var INVOICE_PACE = {
1004
+ /** While the invoice is new, or watched: a payment shows within seconds. */
1005
+ fastMs: 4e3,
1006
+ fastForMs: 12e4,
1007
+ /** Then, until it is this old. */
1008
+ midMs: 15e3,
1009
+ midForMs: 3e5,
1010
+ /** From then on, until it expires. */
1011
+ slowMs: 6e4,
1012
+ /** How long one word from the screen keeps an invoice watched: the screen says it again while it shows it. */
1013
+ watchMs: 9e4,
1014
+ /** A quote or an invoice goes only this long after its expiry, once its mint or source says it is unpaid. */
1015
+ expiryGraceMs: 6e4,
1016
+ /** Due this close to now counts as due: a timer may fire a moment before the clock reads its time. */
1017
+ dueSlackMs: 250
1018
+ };
1019
+ /** When the invoice is next asked about. `asked`: when it was last, in this run; never, it is due now. */
1020
+ function nextInvoiceAsk(invoice, asked, now) {
1021
+ const { fastMs, fastForMs, midMs, midForMs, slowMs, expiryGraceMs } = INVOICE_PACE;
1022
+ const fast = invoice.paid || (invoice.watchedUntil ?? 0) > now;
1023
+ if (invoice.closed && !fast) {
1024
+ if (invoice.expiresAt !== null) return Math.max(asked === void 0 ? now : asked + slowMs, invoice.expiresAt + expiryGraceMs + 1);
1025
+ return asked === void 0 ? now : asked + slowMs;
1026
+ }
1027
+ if (asked === void 0) return now;
1028
+ const age = now - invoice.createdAt;
1029
+ return asked + (fast || age < fastForMs ? fastMs : age < midForMs ? midMs : slowMs);
1030
+ }
1031
+ //#endregion
993
1032
  //#region ../browser/src/engine/paymentAdapters/providers/lightningService.ts
994
1033
  var PREFIX = "lightningOp-";
995
1034
  var opKey = (direction, hash) => `${PREFIX}${direction}-${hash}`;
@@ -1028,7 +1067,6 @@ async function readLightningJournal() {
1028
1067
  }
1029
1068
  return (await read.ops).map((op) => ({ ...op }));
1030
1069
  }
1031
- var IN_POLL_MS = 4e3;
1032
1070
  var OUT_POLL_MS = 15e3;
1033
1071
  var RECENT = 20;
1034
1072
  /** Resolved Lightning addresses are kept this long for the amount to be chosen; this many at most. */
@@ -1048,6 +1086,12 @@ var LightningService = class {
1048
1086
  quotes = /* @__PURE__ */ new Map();
1049
1087
  mode;
1050
1088
  timer;
1089
+ /** When `timer` fires: a pass that would fire later leaves it as it is. */
1090
+ timerAt = 0;
1091
+ /** Per open invoice of ours (payment hash): when the source was last asked about it, in this run. */
1092
+ asked = /* @__PURE__ */ new Map();
1093
+ /** Per invoice the screen shows (payment hash): until when (`watch`). */
1094
+ watched = /* @__PURE__ */ new Map();
1051
1095
  passes = Promise.resolve();
1052
1096
  stopped = false;
1053
1097
  recent = [];
@@ -1101,6 +1145,7 @@ var LightningService = class {
1101
1145
  async stop() {
1102
1146
  this.stopped = true;
1103
1147
  clearTimeout(this.timer);
1148
+ this.timer = void 0;
1104
1149
  await this.sources.stop();
1105
1150
  }
1106
1151
  refreshOffered() {
@@ -1128,12 +1173,25 @@ var LightningService = class {
1128
1173
  selfSettled: !!provider.settlesItself,
1129
1174
  state: "open"
1130
1175
  });
1131
- this.schedule(IN_POLL_MS);
1176
+ this.asked.set(created.paymentHash, Date.now());
1177
+ this.schedule(INVOICE_PACE.fastMs);
1132
1178
  return {
1133
1179
  ...created,
1134
1180
  source: descriptor.id
1135
1181
  };
1136
1182
  }
1183
+ /**
1184
+ * The screen shows this invoice of ours (Receive): the source is asked about it at the fast pace for
1185
+ * `INVOICE_PACE.watchMs`, and now if it was not just asked. Returns whether it is an open invoice of this card's.
1186
+ */
1187
+ async watch(invoice) {
1188
+ const hash = decodeBolt11(invoice)?.paymentHash;
1189
+ const op = hash ? await this.get("in", hash) : void 0;
1190
+ if (!op || !this.owns(op) || op.state !== "open") return false;
1191
+ this.watched.set(op.paymentHash, Date.now() + INVOICE_PACE.watchMs);
1192
+ this.schedule(0);
1193
+ return true;
1194
+ }
1137
1195
  /** The Cashu wallet minted the ecash of one of its invoices (it polls its own quotes). */
1138
1196
  async reportInvoicePaid(invoice, context = {}) {
1139
1197
  const hash = decodeBolt11(invoice)?.paymentHash;
@@ -1318,19 +1376,27 @@ var LightningService = class {
1318
1376
  await this.loadRecent();
1319
1377
  this.events.changed();
1320
1378
  }
1321
- /** Asks the active source about everything of its that is open, pending or unknown. One pass at a time. */
1322
- reconcile() {
1323
- const pass = this.passes.then(() => this.reconcileOnce());
1379
+ /**
1380
+ * Asks the active source about everything of its that is open, pending or unknown. One pass at a time. `paced`: an
1381
+ * open invoice only when its pace says so (`nextInvoiceAsk`); otherwise every one now (someone says it was paid).
1382
+ */
1383
+ reconcile(paced = false) {
1384
+ const pass = this.passes.then(() => this.reconcileOnce(paced));
1324
1385
  this.passes = pass.catch(() => {});
1325
1386
  return pass;
1326
1387
  }
1327
- async reconcileOnce() {
1388
+ async reconcileOnce(paced) {
1328
1389
  if (this.stopped) return;
1329
1390
  let again = 0;
1391
+ /** When the next open invoice is due. */
1392
+ let invoiceDue = Infinity;
1330
1393
  const writes = this.writes;
1331
1394
  try {
1332
1395
  const provider = this.sources.active, providerId = this.sources.activeId;
1333
- for (const op of await this.list()) {
1396
+ const ops = await this.list();
1397
+ const open = new Set(ops.filter((op) => op.direction === "in" && op.state === "open").map((op) => op.paymentHash));
1398
+ for (const pace of [this.asked, this.watched]) for (const hash of pace.keys()) if (!open.has(hash)) pace.delete(hash);
1399
+ for (const op of ops) {
1334
1400
  if (!this.owns(op)) continue;
1335
1401
  if (op.selfSettled) {
1336
1402
  if (op.direction !== "out" || op.state !== "unknown") continue;
@@ -1362,6 +1428,14 @@ var LightningService = class {
1362
1428
  }
1363
1429
  if (!(op.direction === "in" ? op.state === "open" : ["pending", "unknown"].includes(op.state))) continue;
1364
1430
  if (!provider || op.providerId !== providerId || !provider.capabilities.lookup) continue;
1431
+ if (op.direction === "in") {
1432
+ const due = this.nextAsk(op, Date.now());
1433
+ if (paced && due > Date.now() + INVOICE_PACE.dueSlackMs) {
1434
+ invoiceDue = Math.min(invoiceDue, due);
1435
+ continue;
1436
+ }
1437
+ this.asked.set(op.paymentHash, Date.now());
1438
+ }
1365
1439
  try {
1366
1440
  const unchanged = async () => (await this.get(op.direction, op.paymentHash))?.state === op.state;
1367
1441
  if (op.direction === "in") {
@@ -1380,11 +1454,11 @@ var LightningService = class {
1380
1454
  settledAt: Date.now()
1381
1455
  });
1382
1456
  this.events.received(op);
1383
- } else if (status.state === "expired" || op.expiresAt + 6e4 < Date.now()) await this.put({
1457
+ } else if (status.state === "expired" || op.expiresAt + INVOICE_PACE.expiryGraceMs < Date.now()) await this.put({
1384
1458
  ...op,
1385
1459
  state: "expired"
1386
1460
  });
1387
- else again = again ? Math.min(again, IN_POLL_MS) : IN_POLL_MS;
1461
+ else invoiceDue = Math.min(invoiceDue, this.nextAsk(op, Date.now()));
1388
1462
  } else {
1389
1463
  const status = await provider.paymentStatus({
1390
1464
  invoice: op.invoice,
@@ -1406,18 +1480,36 @@ var LightningService = class {
1406
1480
  this.events.resolved(op, status.state === "paid");
1407
1481
  }
1408
1482
  } catch {
1409
- again = again ? Math.min(again, op.direction === "in" ? IN_POLL_MS : OUT_POLL_MS) : op.direction === "in" ? IN_POLL_MS : OUT_POLL_MS;
1483
+ if (op.direction === "in") invoiceDue = Math.min(invoiceDue, this.nextAsk(op, Date.now()));
1484
+ else again = again ? Math.min(again, OUT_POLL_MS) : OUT_POLL_MS;
1410
1485
  }
1411
1486
  }
1412
1487
  } finally {
1413
1488
  if (await this.loadRecent() || this.writes !== writes) this.events.changed();
1414
- if (again) this.schedule(again);
1489
+ const wait = Math.min(again || Infinity, invoiceDue - Date.now());
1490
+ if (wait < Infinity) this.schedule(Math.max(0, wait));
1415
1491
  }
1416
1492
  }
1493
+ /** When the source is next asked about this open invoice of ours. */
1494
+ nextAsk(op, now) {
1495
+ return nextInvoiceAsk({
1496
+ createdAt: op.createdAt,
1497
+ expiresAt: op.expiresAt,
1498
+ watchedUntil: this.watched.get(op.paymentHash),
1499
+ closed: !!op.paymentId && !!this.events.requestClosed?.(op.paymentId)
1500
+ }, this.asked.get(op.paymentHash), now);
1501
+ }
1502
+ /** The next pass in `ms`, unless one is due sooner. It asks only what is due (`reconcile(true)`). */
1417
1503
  schedule(ms) {
1418
1504
  if (this.stopped) return;
1505
+ const at = Date.now() + ms;
1506
+ if (this.timer && this.timerAt <= at) return;
1419
1507
  clearTimeout(this.timer);
1420
- this.timer = setTimeout(() => void this.reconcile(), ms);
1508
+ this.timerAt = at;
1509
+ this.timer = setTimeout(() => {
1510
+ this.timer = void 0;
1511
+ this.reconcile(true);
1512
+ }, ms);
1421
1513
  }
1422
1514
  /** Changing the source is refused while a payment through it has not ended: only it can say how. */
1423
1515
  async refusal(providerId, mode) {
@@ -1836,6 +1928,10 @@ var LightningCards = class {
1836
1928
  async reconcile() {
1837
1929
  await Promise.all(this.here().map((s) => s.reconcile()));
1838
1930
  }
1931
+ /** The screen shows this invoice of ours: the card that made it asks about it at the fast pace a while longer. */
1932
+ async watch(invoice) {
1933
+ return (await Promise.all(this.here().map((s) => s.watch(invoice)))).some(Boolean);
1934
+ }
1839
1935
  async recover() {
1840
1936
  for (const s of this.here()) await s.recover();
1841
1937
  }
@@ -1963,7 +2059,7 @@ var registry;
1963
2059
  var loading;
1964
2060
  var listeners = /* @__PURE__ */ new Set();
1965
2061
  function loadIdentityProviders() {
1966
- return loading ??= import("./registry-BmS02J5h.js").then((m) => {
2062
+ return loading ??= import("./registry-DY2ixQfU.js").then((m) => {
1967
2063
  registry = m;
1968
2064
  for (const listener of listeners) listener();
1969
2065
  return m;
@@ -2015,6 +2111,8 @@ var IdentityProofs = class {
2015
2111
  proofs = [];
2016
2112
  revocations = [];
2017
2113
  revocationsCheckedAt = 0;
2114
+ /** "Clear all data" (`revokeAll`): a revocation lookup still on its way notes nothing. */
2115
+ ended = false;
2018
2116
  /** Unsealed proof-key seeds, by proof id, for this run only. */
2019
2117
  seeds = /* @__PURE__ */ new Map();
2020
2118
  timers = [];
@@ -2192,7 +2290,7 @@ var IdentityProofs = class {
2192
2290
  revokedAt: now(),
2193
2291
  expiresAt: Math.min(proof.binding.expiresAt, proof.verified.expiresAt ?? Infinity)
2194
2292
  };
2195
- const wasShared = this.host.linkIds().some((l) => this.host.ledger(l)?.shared.some((s) => s.id === id));
2293
+ const wasShared = this.everShared(proof);
2196
2294
  const revoke = wasShared && revocation.expiresAt > now();
2197
2295
  await this.save((proofs, revocations) => proofs.some((p) => identityStatement(p.binding).id === id) ? [proofs.filter((p) => identityStatement(p.binding).id !== id), revoke ? [...revocations, revocation] : revocations] : [proofs, revocations]);
2198
2296
  if (wasShared) this.publishRevocation(revocation).catch(() => {});
@@ -2207,10 +2305,10 @@ var IdentityProofs = class {
2207
2305
  * contacts who check; proofs posted elsewhere (a Bluesky record, a Pubky file, a DNS record) are the person's to delete.
2208
2306
  */
2209
2307
  async revokeAll() {
2308
+ this.ended = true;
2210
2309
  this.stop();
2211
- const shared = new Set(this.host.linkIds().flatMap((l) => this.host.ledger(l)?.shared.map((s) => s.id) ?? []));
2212
2310
  const at = now();
2213
- const last = [...this.revocations.filter((r) => r.expiresAt > at), ...this.proofs.filter((p) => shared.has(identityStatement(p.binding).id)).map((p) => ({
2311
+ const last = [...this.revocations.filter((r) => r.expiresAt > at), ...this.proofs.filter((p) => this.everShared(p)).map((p) => ({
2214
2312
  id: identityStatement(p.binding).id,
2215
2313
  key: p.binding.key,
2216
2314
  seed: p.seed,
@@ -2220,6 +2318,11 @@ var IdentityProofs = class {
2220
2318
  await Promise.allSettled(last.map((r) => this.publishRevocation(r)));
2221
2319
  this.stop();
2222
2320
  }
2321
+ /** Marked when shared; the chats' ledgers still count for a proof shared before the mark was kept. */
2322
+ everShared(p) {
2323
+ const id = identityStatement(p.binding).id;
2324
+ return !!p.shared || this.host.linkIds().some((l) => this.host.ledger(l)?.shared.some((s) => s.id === id));
2325
+ }
2223
2326
  async publishRevocation(r) {
2224
2327
  if (!this.host.online()) return;
2225
2328
  await this.host.publish(await this.seedOf(r.id, r.seed), [{
@@ -2245,7 +2348,11 @@ var IdentityProofs = class {
2245
2348
  */
2246
2349
  async checkRevocations() {
2247
2350
  if (!this.host.online()) return;
2248
- for (const linkId of this.host.linkIds()) for (const r of this.host.ledger(linkId)?.received ?? []) if (this.revocable(r)) await this.exchange(linkId)?.recheck(r.id, { revocationOnly: true }).catch(() => {});
2351
+ for (const linkId of this.host.linkIds()) for (const r of this.host.ledger(linkId)?.received ?? []) {
2352
+ if (this.ended) return;
2353
+ if (this.revocable(r)) await this.exchange(linkId)?.recheck(r.id, { revocationOnly: true }).catch(() => {});
2354
+ }
2355
+ if (this.ended) return;
2249
2356
  this.revocationsCheckedAt = Date.now();
2250
2357
  await transact([STORES.settings], (stores) => {
2251
2358
  stores[STORES.settings].put(this.revocationsCheckedAt, REVOCATIONS_CHECKED_AT);
@@ -2343,6 +2450,10 @@ var IdentityProofs = class {
2343
2450
  if (!p) throw new Error("That identity is no longer in your profile");
2344
2451
  if (Math.min(p.binding.expiresAt, p.verified.expiresAt ?? Infinity) <= now()) throw new Error("This identity has expired. Make a new proof in your profile.");
2345
2452
  this.errors.delete(linkId);
2453
+ if (!p.shared) await this.save((proofs, revocations) => [proofs.map((q) => identityStatement(q.binding).id === id ? {
2454
+ ...q,
2455
+ shared: true
2456
+ } : q), revocations]);
2346
2457
  await x.share(id, !!this.host.channel(linkId));
2347
2458
  }
2348
2459
  async withdraw({ linkId, id }) {
@@ -3971,6 +4082,6 @@ function messageFile(kept) {
3971
4082
  };
3972
4083
  }
3973
4084
  //#endregion
3974
- export { WrongNetworkError as $, IdentityProofs as A, ProviderSources as B, FileAppender as C, streamStored as D, storedSize as E, LightningCards as F, breezDatabaseInUse as G, CASHU_MINT_SOURCE as H, cardsKey as I, iceServerProblem as J, breezDatabasesFor as K, isRecoveryPhrase as L, sealSecret as M, whenDataKeyDropped as N, waitingGroupFile as O, CASHU_CARD as P, ModeGate as Q, normalizePhrase as R, WALLET_TYPES as S, removeStored as T, cashuMint as U, sourceKey as V, breezDatabase as W, relayOnlyProblem as X, iceServerSetting as Y, ModeChanged as Z, crossNetwork as _, storedGroupFiles as a, setSingleWriterGate as at, walletInstances as b, receivedPairedReply as c, paymentAlias as d, networkLabel as et, paymentWireId as f, createTiming as g, createFailure as h, groupOfFile as i, setAwayWallets as it, openSecret as j, IDENTITY_DRAFT_TTL_MS as k, replyRef as l, assertConfirmedReal as m, groupFileId as n, refuseAway as nt, groupReply as o, WALLET_NAMES as p, dropBreezDatabase as q, groupFileText as r, requireTurn as rt, pairedWireReply as s, GroupFileDesk as t, awayFrom as tt, replyTo as u, paymentNetwork as v, readStored as w, MESSAGE_DETAILS_MAX_BYTES as x, paymentNetworksOf as y, lightningPaying as z };
4085
+ export { ModeChanged as $, IdentityProofs as A, INVOICE_PACE as B, FileAppender as C, streamStored as D, storedSize as E, LightningCards as F, cashuMint as G, ProviderSources as H, cardsKey as I, breezDatabasesFor as J, breezDatabase as K, isRecoveryPhrase as L, sealSecret as M, whenDataKeyDropped as N, waitingGroupFile as O, CASHU_CARD as P, relayOnlyProblem as Q, normalizePhrase as R, WALLET_TYPES as S, removeStored as T, sourceKey as U, nextInvoiceAsk as V, CASHU_MINT_SOURCE as W, iceServerProblem as X, dropBreezDatabase as Y, iceServerSetting as Z, crossNetwork as _, storedGroupFiles as a, requireTurn as at, walletInstances as b, receivedPairedReply as c, paymentAlias as d, ModeGate as et, paymentWireId as f, createTiming as g, createFailure as h, groupOfFile as i, refuseAway as it, openSecret as j, IDENTITY_DRAFT_TTL_MS as k, replyRef as l, assertConfirmedReal as m, groupFileId as n, networkLabel as nt, groupReply as o, setAwayWallets as ot, WALLET_NAMES as p, breezDatabaseInUse as q, groupFileText as r, awayFrom as rt, pairedWireReply as s, setSingleWriterGate as st, GroupFileDesk as t, WrongNetworkError as tt, replyTo as u, paymentNetwork as v, readStored as w, MESSAGE_DETAILS_MAX_BYTES as x, paymentNetworksOf as y, lightningPaying as z };
3975
4086
 
3976
- //# sourceMappingURL=groupFiles-CBJIEvCE.js.map
4087
+ //# sourceMappingURL=groupFiles-DjQc5XXv.js.map