@cello-protocol/daemon 0.0.225 → 0.0.227

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 (891) hide show
  1. package/package.json +5 -5
  2. package/dist/agent-admin-handlers.d.ts +0 -56
  3. package/dist/agent-admin-handlers.d.ts.map +0 -1
  4. package/dist/agent-admin-handlers.js +0 -73
  5. package/dist/agent-admin-handlers.js.map +0 -1
  6. package/dist/agent-handlers.d.ts +0 -72
  7. package/dist/agent-handlers.d.ts.map +0 -1
  8. package/dist/agent-handlers.js +0 -604
  9. package/dist/agent-handlers.js.map +0 -1
  10. package/dist/agent-id-migration.d.ts +0 -70
  11. package/dist/agent-id-migration.d.ts.map +0 -1
  12. package/dist/agent-id-migration.js +0 -468
  13. package/dist/agent-id-migration.js.map +0 -1
  14. package/dist/agent-loader.d.ts +0 -37
  15. package/dist/agent-loader.d.ts.map +0 -1
  16. package/dist/agent-loader.js +0 -37
  17. package/dist/agent-loader.js.map +0 -1
  18. package/dist/agent-selection-root.d.ts +0 -29
  19. package/dist/agent-selection-root.d.ts.map +0 -1
  20. package/dist/agent-selection-root.js +0 -126
  21. package/dist/agent-selection-root.js.map +0 -1
  22. package/dist/agent-selection.d.ts +0 -73
  23. package/dist/agent-selection.d.ts.map +0 -1
  24. package/dist/agent-selection.js +0 -80
  25. package/dist/agent-selection.js.map +0 -1
  26. package/dist/agent-settings-keys.d.ts +0 -52
  27. package/dist/agent-settings-keys.d.ts.map +0 -1
  28. package/dist/agent-settings-keys.js +0 -114
  29. package/dist/agent-settings-keys.js.map +0 -1
  30. package/dist/agent-state.d.ts +0 -67
  31. package/dist/agent-state.d.ts.map +0 -1
  32. package/dist/agent-state.js +0 -66
  33. package/dist/agent-state.js.map +0 -1
  34. package/dist/assignment-verify.d.ts +0 -90
  35. package/dist/assignment-verify.d.ts.map +0 -1
  36. package/dist/assignment-verify.js +0 -301
  37. package/dist/assignment-verify.js.map +0 -1
  38. package/dist/attendance-wiring.d.ts +0 -23
  39. package/dist/attendance-wiring.d.ts.map +0 -1
  40. package/dist/attendance-wiring.js +0 -248
  41. package/dist/attendance-wiring.js.map +0 -1
  42. package/dist/attestation-body.d.ts +0 -47
  43. package/dist/attestation-body.d.ts.map +0 -1
  44. package/dist/attestation-body.js +0 -71
  45. package/dist/attestation-body.js.map +0 -1
  46. package/dist/authorship-verification.d.ts +0 -91
  47. package/dist/authorship-verification.d.ts.map +0 -1
  48. package/dist/authorship-verification.js +0 -532
  49. package/dist/authorship-verification.js.map +0 -1
  50. package/dist/away-detection.d.ts +0 -139
  51. package/dist/away-detection.d.ts.map +0 -1
  52. package/dist/away-detection.js +0 -186
  53. package/dist/away-detection.js.map +0 -1
  54. package/dist/away-inbox-oneshot.d.ts +0 -40
  55. package/dist/away-inbox-oneshot.d.ts.map +0 -1
  56. package/dist/away-inbox-oneshot.js +0 -311
  57. package/dist/away-inbox-oneshot.js.map +0 -1
  58. package/dist/backup-restore-handlers.d.ts +0 -10
  59. package/dist/backup-restore-handlers.d.ts.map +0 -1
  60. package/dist/backup-restore-handlers.js +0 -82
  61. package/dist/backup-restore-handlers.js.map +0 -1
  62. package/dist/backup-restore.d.ts +0 -102
  63. package/dist/backup-restore.d.ts.map +0 -1
  64. package/dist/backup-restore.js +0 -341
  65. package/dist/backup-restore.js.map +0 -1
  66. package/dist/bin/cello-daemon.d.ts +0 -13
  67. package/dist/bin/cello-daemon.d.ts.map +0 -1
  68. package/dist/bin/cello-daemon.js.map +0 -1
  69. package/dist/boot-agents.d.ts +0 -64
  70. package/dist/boot-agents.d.ts.map +0 -1
  71. package/dist/boot-agents.js +0 -241
  72. package/dist/boot-agents.js.map +0 -1
  73. package/dist/boot-connection-state.d.ts +0 -38
  74. package/dist/boot-connection-state.d.ts.map +0 -1
  75. package/dist/boot-connection-state.js +0 -95
  76. package/dist/boot-connection-state.js.map +0 -1
  77. package/dist/boot-core.d.ts +0 -36
  78. package/dist/boot-core.d.ts.map +0 -1
  79. package/dist/boot-core.js +0 -293
  80. package/dist/boot-core.js.map +0 -1
  81. package/dist/boot-parked-content.d.ts +0 -34
  82. package/dist/boot-parked-content.d.ts.map +0 -1
  83. package/dist/boot-parked-content.js +0 -528
  84. package/dist/boot-parked-content.js.map +0 -1
  85. package/dist/boot-sweeps.d.ts +0 -22
  86. package/dist/boot-sweeps.d.ts.map +0 -1
  87. package/dist/boot-sweeps.js +0 -51
  88. package/dist/boot-sweeps.js.map +0 -1
  89. package/dist/bundled-consortium-manifest.d.ts +0 -47
  90. package/dist/bundled-consortium-manifest.d.ts.map +0 -1
  91. package/dist/bundled-consortium-manifest.js +0 -116
  92. package/dist/bundled-consortium-manifest.js.map +0 -1
  93. package/dist/cbor-blob-migration.d.ts +0 -8
  94. package/dist/cbor-blob-migration.d.ts.map +0 -1
  95. package/dist/cbor-blob-migration.js +0 -116
  96. package/dist/cbor-blob-migration.js.map +0 -1
  97. package/dist/challenge-verifier.d.ts +0 -12
  98. package/dist/challenge-verifier.d.ts.map +0 -1
  99. package/dist/challenge-verifier.js +0 -11
  100. package/dist/challenge-verifier.js.map +0 -1
  101. package/dist/close-commitment.d.ts +0 -67
  102. package/dist/close-commitment.d.ts.map +0 -1
  103. package/dist/close-commitment.js +0 -78
  104. package/dist/close-commitment.js.map +0 -1
  105. package/dist/close-session-handler.d.ts +0 -94
  106. package/dist/close-session-handler.d.ts.map +0 -1
  107. package/dist/close-session-handler.js +0 -1418
  108. package/dist/close-session-handler.js.map +0 -1
  109. package/dist/co-attendance.d.ts +0 -29
  110. package/dist/co-attendance.d.ts.map +0 -1
  111. package/dist/co-attendance.js +0 -32
  112. package/dist/co-attendance.js.map +0 -1
  113. package/dist/column-birth.d.ts +0 -40
  114. package/dist/column-birth.d.ts.map +0 -1
  115. package/dist/column-birth.js +0 -61
  116. package/dist/column-birth.js.map +0 -1
  117. package/dist/connect-or-start.d.ts +0 -25
  118. package/dist/connect-or-start.d.ts.map +0 -1
  119. package/dist/connect-or-start.js +0 -175
  120. package/dist/connect-or-start.js.map +0 -1
  121. package/dist/connection-agents.d.ts +0 -16
  122. package/dist/connection-agents.d.ts.map +0 -1
  123. package/dist/connection-agents.js +0 -68
  124. package/dist/connection-agents.js.map +0 -1
  125. package/dist/consent-migration.d.ts +0 -49
  126. package/dist/consent-migration.d.ts.map +0 -1
  127. package/dist/consent-migration.js +0 -128
  128. package/dist/consent-migration.js.map +0 -1
  129. package/dist/consortium-bootstrap.d.ts +0 -138
  130. package/dist/consortium-bootstrap.d.ts.map +0 -1
  131. package/dist/consortium-bootstrap.js +0 -339
  132. package/dist/consortium-bootstrap.js.map +0 -1
  133. package/dist/consortium-fingerprint.d.ts +0 -115
  134. package/dist/consortium-fingerprint.d.ts.map +0 -1
  135. package/dist/consortium-fingerprint.js +0 -175
  136. package/dist/consortium-fingerprint.js.map +0 -1
  137. package/dist/contact-handlers.d.ts +0 -59
  138. package/dist/contact-handlers.d.ts.map +0 -1
  139. package/dist/contact-handlers.js +0 -343
  140. package/dist/contact-handlers.js.map +0 -1
  141. package/dist/contact-pubkey-case.d.ts +0 -65
  142. package/dist/contact-pubkey-case.d.ts.map +0 -1
  143. package/dist/contact-pubkey-case.js +0 -136
  144. package/dist/contact-pubkey-case.js.map +0 -1
  145. package/dist/contacts-tier-migration.d.ts +0 -90
  146. package/dist/contacts-tier-migration.d.ts.map +0 -1
  147. package/dist/contacts-tier-migration.js +0 -150
  148. package/dist/contacts-tier-migration.js.map +0 -1
  149. package/dist/content-encryption-status.d.ts +0 -111
  150. package/dist/content-encryption-status.d.ts.map +0 -1
  151. package/dist/content-encryption-status.js +0 -158
  152. package/dist/content-encryption-status.js.map +0 -1
  153. package/dist/content-park-client.d.ts +0 -90
  154. package/dist/content-park-client.d.ts.map +0 -1
  155. package/dist/content-park-client.js +0 -362
  156. package/dist/content-park-client.js.map +0 -1
  157. package/dist/content-park.d.ts +0 -52
  158. package/dist/content-park.d.ts.map +0 -1
  159. package/dist/content-park.js +0 -1309
  160. package/dist/content-park.js.map +0 -1
  161. package/dist/cross-node-negotiation.d.ts +0 -44
  162. package/dist/cross-node-negotiation.d.ts.map +0 -1
  163. package/dist/cross-node-negotiation.js +0 -34
  164. package/dist/cross-node-negotiation.js.map +0 -1
  165. package/dist/daemon-handle.d.ts +0 -57
  166. package/dist/daemon-handle.d.ts.map +0 -1
  167. package/dist/daemon-handle.js +0 -2
  168. package/dist/daemon-handle.js.map +0 -1
  169. package/dist/daemon-status-report.d.ts +0 -50
  170. package/dist/daemon-status-report.d.ts.map +0 -1
  171. package/dist/daemon-status-report.js +0 -81
  172. package/dist/daemon-status-report.js.map +0 -1
  173. package/dist/daemon.d.ts +0 -45
  174. package/dist/daemon.d.ts.map +0 -1
  175. package/dist/daemon.js +0 -1177
  176. package/dist/daemon.js.map +0 -1
  177. package/dist/db-identity-store.d.ts +0 -159
  178. package/dist/db-identity-store.d.ts.map +0 -1
  179. package/dist/db-identity-store.js +0 -502
  180. package/dist/db-identity-store.js.map +0 -1
  181. package/dist/delivery-open-registry.d.ts +0 -92
  182. package/dist/delivery-open-registry.d.ts.map +0 -1
  183. package/dist/delivery-open-registry.js +0 -121
  184. package/dist/delivery-open-registry.js.map +0 -1
  185. package/dist/delivery-session-suspects.d.ts +0 -56
  186. package/dist/delivery-session-suspects.d.ts.map +0 -1
  187. package/dist/delivery-session-suspects.js +0 -94
  188. package/dist/delivery-session-suspects.js.map +0 -1
  189. package/dist/directory-auth-posture.d.ts +0 -87
  190. package/dist/directory-auth-posture.d.ts.map +0 -1
  191. package/dist/directory-auth-posture.js +0 -134
  192. package/dist/directory-auth-posture.js.map +0 -1
  193. package/dist/directory-bootstrap.d.ts +0 -310
  194. package/dist/directory-bootstrap.d.ts.map +0 -1
  195. package/dist/directory-bootstrap.js +0 -557
  196. package/dist/directory-bootstrap.js.map +0 -1
  197. package/dist/directory-connect.d.ts +0 -27
  198. package/dist/directory-connect.d.ts.map +0 -1
  199. package/dist/directory-connect.js +0 -106
  200. package/dist/directory-connect.js.map +0 -1
  201. package/dist/disconnect-cleanup.d.ts +0 -51
  202. package/dist/disconnect-cleanup.d.ts.map +0 -1
  203. package/dist/disconnect-cleanup.js +0 -72
  204. package/dist/disconnect-cleanup.js.map +0 -1
  205. package/dist/document-amendment-store.d.ts +0 -120
  206. package/dist/document-amendment-store.d.ts.map +0 -1
  207. package/dist/document-amendment-store.js +0 -266
  208. package/dist/document-amendment-store.js.map +0 -1
  209. package/dist/document-delivery-transport.d.ts +0 -168
  210. package/dist/document-delivery-transport.d.ts.map +0 -1
  211. package/dist/document-delivery-transport.js +0 -206
  212. package/dist/document-delivery-transport.js.map +0 -1
  213. package/dist/document-engine.d.ts +0 -134
  214. package/dist/document-engine.d.ts.map +0 -1
  215. package/dist/document-engine.js +0 -282
  216. package/dist/document-engine.js.map +0 -1
  217. package/dist/document-flag.d.ts +0 -58
  218. package/dist/document-flag.d.ts.map +0 -1
  219. package/dist/document-flag.js +0 -70
  220. package/dist/document-flag.js.map +0 -1
  221. package/dist/document-frame-router.d.ts +0 -245
  222. package/dist/document-frame-router.d.ts.map +0 -1
  223. package/dist/document-frame-router.js +0 -397
  224. package/dist/document-frame-router.js.map +0 -1
  225. package/dist/document-gate-wiring.d.ts +0 -61
  226. package/dist/document-gate-wiring.d.ts.map +0 -1
  227. package/dist/document-gate-wiring.js +0 -125
  228. package/dist/document-gate-wiring.js.map +0 -1
  229. package/dist/document-gate.d.ts +0 -149
  230. package/dist/document-gate.d.ts.map +0 -1
  231. package/dist/document-gate.js +0 -509
  232. package/dist/document-gate.js.map +0 -1
  233. package/dist/document-handlers.d.ts +0 -47
  234. package/dist/document-handlers.d.ts.map +0 -1
  235. package/dist/document-handlers.js +0 -2203
  236. package/dist/document-handlers.js.map +0 -1
  237. package/dist/document-handshake.d.ts +0 -176
  238. package/dist/document-handshake.d.ts.map +0 -1
  239. package/dist/document-handshake.js +0 -452
  240. package/dist/document-handshake.js.map +0 -1
  241. package/dist/document-inbound.d.ts +0 -162
  242. package/dist/document-inbound.d.ts.map +0 -1
  243. package/dist/document-inbound.js +0 -530
  244. package/dist/document-inbound.js.map +0 -1
  245. package/dist/document-json.d.ts +0 -120
  246. package/dist/document-json.d.ts.map +0 -1
  247. package/dist/document-json.js +0 -191
  248. package/dist/document-json.js.map +0 -1
  249. package/dist/document-layer.d.ts +0 -215
  250. package/dist/document-layer.d.ts.map +0 -1
  251. package/dist/document-layer.js +0 -1025
  252. package/dist/document-layer.js.map +0 -1
  253. package/dist/document-lifecycle.d.ts +0 -52
  254. package/dist/document-lifecycle.d.ts.map +0 -1
  255. package/dist/document-lifecycle.js +0 -134
  256. package/dist/document-lifecycle.js.map +0 -1
  257. package/dist/document-live-docs.d.ts +0 -58
  258. package/dist/document-live-docs.d.ts.map +0 -1
  259. package/dist/document-live-docs.js +0 -126
  260. package/dist/document-live-docs.js.map +0 -1
  261. package/dist/document-notify.d.ts +0 -228
  262. package/dist/document-notify.d.ts.map +0 -1
  263. package/dist/document-notify.js +0 -580
  264. package/dist/document-notify.js.map +0 -1
  265. package/dist/document-profile.d.ts +0 -61
  266. package/dist/document-profile.d.ts.map +0 -1
  267. package/dist/document-profile.js +0 -112
  268. package/dist/document-profile.js.map +0 -1
  269. package/dist/document-publish.d.ts +0 -87
  270. package/dist/document-publish.d.ts.map +0 -1
  271. package/dist/document-publish.js +0 -173
  272. package/dist/document-publish.js.map +0 -1
  273. package/dist/document-reachability.d.ts +0 -42
  274. package/dist/document-reachability.d.ts.map +0 -1
  275. package/dist/document-reachability.js +0 -80
  276. package/dist/document-reachability.js.map +0 -1
  277. package/dist/document-reconcile-engine.d.ts +0 -66
  278. package/dist/document-reconcile-engine.d.ts.map +0 -1
  279. package/dist/document-reconcile-engine.js +0 -225
  280. package/dist/document-reconcile-engine.js.map +0 -1
  281. package/dist/document-reconcile-scheduler.d.ts +0 -163
  282. package/dist/document-reconcile-scheduler.d.ts.map +0 -1
  283. package/dist/document-reconcile-scheduler.js +0 -303
  284. package/dist/document-reconcile-scheduler.js.map +0 -1
  285. package/dist/document-rejection.d.ts +0 -251
  286. package/dist/document-rejection.d.ts.map +0 -1
  287. package/dist/document-rejection.js +0 -435
  288. package/dist/document-rejection.js.map +0 -1
  289. package/dist/document-screen.d.ts +0 -114
  290. package/dist/document-screen.d.ts.map +0 -1
  291. package/dist/document-screen.js +0 -223
  292. package/dist/document-screen.js.map +0 -1
  293. package/dist/document-store.d.ts +0 -372
  294. package/dist/document-store.d.ts.map +0 -1
  295. package/dist/document-store.js +0 -931
  296. package/dist/document-store.js.map +0 -1
  297. package/dist/document-surface.d.ts +0 -32
  298. package/dist/document-surface.d.ts.map +0 -1
  299. package/dist/document-surface.js +0 -151
  300. package/dist/document-surface.js.map +0 -1
  301. package/dist/document-types.d.ts +0 -94
  302. package/dist/document-types.d.ts.map +0 -1
  303. package/dist/document-types.js +0 -90
  304. package/dist/document-types.js.map +0 -1
  305. package/dist/document-watch.d.ts +0 -69
  306. package/dist/document-watch.d.ts.map +0 -1
  307. package/dist/document-watch.js +0 -108
  308. package/dist/document-watch.js.map +0 -1
  309. package/dist/document-wiring.d.ts +0 -53
  310. package/dist/document-wiring.d.ts.map +0 -1
  311. package/dist/document-wiring.js +0 -323
  312. package/dist/document-wiring.js.map +0 -1
  313. package/dist/document-write-guard.d.ts +0 -66
  314. package/dist/document-write-guard.d.ts.map +0 -1
  315. package/dist/document-write-guard.js +0 -98
  316. package/dist/document-write-guard.js.map +0 -1
  317. package/dist/document-write-path.d.ts +0 -94
  318. package/dist/document-write-path.d.ts.map +0 -1
  319. package/dist/document-write-path.js +0 -530
  320. package/dist/document-write-path.js.map +0 -1
  321. package/dist/error-message.d.ts +0 -7
  322. package/dist/error-message.d.ts.map +0 -1
  323. package/dist/error-message.js +0 -19
  324. package/dist/error-message.js.map +0 -1
  325. package/dist/file-manifest-provider.d.ts +0 -37
  326. package/dist/file-manifest-provider.d.ts.map +0 -1
  327. package/dist/file-manifest-provider.js +0 -105
  328. package/dist/file-manifest-provider.js.map +0 -1
  329. package/dist/frame-values.d.ts +0 -3
  330. package/dist/frame-values.d.ts.map +0 -1
  331. package/dist/frame-values.js +0 -84
  332. package/dist/frame-values.js.map +0 -1
  333. package/dist/frontier-mismatch.d.ts +0 -73
  334. package/dist/frontier-mismatch.d.ts.map +0 -1
  335. package/dist/frontier-mismatch.js +0 -89
  336. package/dist/frontier-mismatch.js.map +0 -1
  337. package/dist/gateway-config-handlers.d.ts +0 -26
  338. package/dist/gateway-config-handlers.d.ts.map +0 -1
  339. package/dist/gateway-config-handlers.js +0 -429
  340. package/dist/gateway-config-handlers.js.map +0 -1
  341. package/dist/held-content.d.ts +0 -145
  342. package/dist/held-content.d.ts.map +0 -1
  343. package/dist/held-content.js +0 -389
  344. package/dist/held-content.js.map +0 -1
  345. package/dist/http-manifest-poll.d.ts +0 -67
  346. package/dist/http-manifest-poll.d.ts.map +0 -1
  347. package/dist/http-manifest-poll.js +0 -150
  348. package/dist/http-manifest-poll.js.map +0 -1
  349. package/dist/identity-migration.d.ts +0 -40
  350. package/dist/identity-migration.d.ts.map +0 -1
  351. package/dist/identity-migration.js +0 -461
  352. package/dist/identity-migration.js.map +0 -1
  353. package/dist/inbound-refusals.d.ts +0 -283
  354. package/dist/inbound-refusals.d.ts.map +0 -1
  355. package/dist/inbound-refusals.js +0 -919
  356. package/dist/inbound-refusals.js.map +0 -1
  357. package/dist/inbound-seal-request.d.ts +0 -32
  358. package/dist/inbound-seal-request.d.ts.map +0 -1
  359. package/dist/inbound-seal-request.js +0 -228
  360. package/dist/inbound-seal-request.js.map +0 -1
  361. package/dist/inbound-sessions.d.ts +0 -291
  362. package/dist/inbound-sessions.d.ts.map +0 -1
  363. package/dist/inbound-sessions.js +0 -1609
  364. package/dist/inbound-sessions.js.map +0 -1
  365. package/dist/inclusion-proof-handlers.d.ts +0 -43
  366. package/dist/inclusion-proof-handlers.d.ts.map +0 -1
  367. package/dist/inclusion-proof-handlers.js +0 -565
  368. package/dist/inclusion-proof-handlers.js.map +0 -1
  369. package/dist/inclusion-proof.d.ts +0 -151
  370. package/dist/inclusion-proof.d.ts.map +0 -1
  371. package/dist/inclusion-proof.js +0 -228
  372. package/dist/inclusion-proof.js.map +0 -1
  373. package/dist/index.d.ts +0 -32
  374. package/dist/index.d.ts.map +0 -1
  375. package/dist/index.js.map +0 -1
  376. package/dist/initiate-session-handler.d.ts +0 -55
  377. package/dist/initiate-session-handler.d.ts.map +0 -1
  378. package/dist/initiate-session-handler.js +0 -310
  379. package/dist/initiate-session-handler.js.map +0 -1
  380. package/dist/ipc-client.d.ts +0 -31
  381. package/dist/ipc-client.d.ts.map +0 -1
  382. package/dist/ipc-client.js +0 -113
  383. package/dist/ipc-client.js.map +0 -1
  384. package/dist/ipc-server.d.ts +0 -63
  385. package/dist/ipc-server.d.ts.map +0 -1
  386. package/dist/ipc-server.js +0 -429
  387. package/dist/ipc-server.js.map +0 -1
  388. package/dist/ipc-surface.d.ts +0 -44
  389. package/dist/ipc-surface.d.ts.map +0 -1
  390. package/dist/ipc-surface.js +0 -107
  391. package/dist/ipc-surface.js.map +0 -1
  392. package/dist/line-lcs.d.ts +0 -51
  393. package/dist/line-lcs.d.ts.map +0 -1
  394. package/dist/line-lcs.js +0 -71
  395. package/dist/line-lcs.js.map +0 -1
  396. package/dist/lock-file.d.ts +0 -39
  397. package/dist/lock-file.d.ts.map +0 -1
  398. package/dist/lock-file.js +0 -120
  399. package/dist/lock-file.js.map +0 -1
  400. package/dist/log-collapse.d.ts +0 -66
  401. package/dist/log-collapse.d.ts.map +0 -1
  402. package/dist/log-collapse.js +0 -244
  403. package/dist/log-collapse.js.map +0 -1
  404. package/dist/log-rotate.d.ts +0 -67
  405. package/dist/log-rotate.d.ts.map +0 -1
  406. package/dist/log-rotate.js +0 -134
  407. package/dist/log-rotate.js.map +0 -1
  408. package/dist/manifest-deps.d.ts +0 -25
  409. package/dist/manifest-deps.d.ts.map +0 -1
  410. package/dist/manifest-deps.js +0 -151
  411. package/dist/manifest-deps.js.map +0 -1
  412. package/dist/manifest-poll-scheduler.d.ts +0 -31
  413. package/dist/manifest-poll-scheduler.d.ts.map +0 -1
  414. package/dist/manifest-poll-scheduler.js +0 -59
  415. package/dist/manifest-poll-scheduler.js.map +0 -1
  416. package/dist/manifest-validity.d.ts +0 -153
  417. package/dist/manifest-validity.d.ts.map +0 -1
  418. package/dist/manifest-validity.js +0 -268
  419. package/dist/manifest-validity.js.map +0 -1
  420. package/dist/manifest-version-store-db.d.ts +0 -24
  421. package/dist/manifest-version-store-db.d.ts.map +0 -1
  422. package/dist/manifest-version-store-db.js +0 -58
  423. package/dist/manifest-version-store-db.js.map +0 -1
  424. package/dist/manifest-version-store.d.ts +0 -16
  425. package/dist/manifest-version-store.d.ts.map +0 -1
  426. package/dist/manifest-version-store.js +0 -15
  427. package/dist/manifest-version-store.js.map +0 -1
  428. package/dist/network-directory-node.d.ts +0 -136
  429. package/dist/network-directory-node.d.ts.map +0 -1
  430. package/dist/network-directory-node.js +0 -810
  431. package/dist/network-directory-node.js.map +0 -1
  432. package/dist/nonce-dedup.d.ts +0 -68
  433. package/dist/nonce-dedup.d.ts.map +0 -1
  434. package/dist/nonce-dedup.js +0 -205
  435. package/dist/nonce-dedup.js.map +0 -1
  436. package/dist/notification-dispatcher.d.ts +0 -92
  437. package/dist/notification-dispatcher.d.ts.map +0 -1
  438. package/dist/notification-dispatcher.js +0 -210
  439. package/dist/notification-dispatcher.js.map +0 -1
  440. package/dist/notification-handlers.d.ts +0 -53
  441. package/dist/notification-handlers.d.ts.map +0 -1
  442. package/dist/notification-handlers.js +0 -461
  443. package/dist/notification-handlers.js.map +0 -1
  444. package/dist/onboarding-guidance.d.ts +0 -79
  445. package/dist/onboarding-guidance.d.ts.map +0 -1
  446. package/dist/onboarding-guidance.js +0 -95
  447. package/dist/onboarding-guidance.js.map +0 -1
  448. package/dist/operator-guidance.d.ts +0 -25
  449. package/dist/operator-guidance.d.ts.map +0 -1
  450. package/dist/operator-guidance.js +0 -50
  451. package/dist/operator-guidance.js.map +0 -1
  452. package/dist/orphan-triage.d.ts +0 -130
  453. package/dist/orphan-triage.d.ts.map +0 -1
  454. package/dist/orphan-triage.js +0 -207
  455. package/dist/orphan-triage.js.map +0 -1
  456. package/dist/outbound-sessions.d.ts +0 -126
  457. package/dist/outbound-sessions.d.ts.map +0 -1
  458. package/dist/outbound-sessions.js +0 -1052
  459. package/dist/outbound-sessions.js.map +0 -1
  460. package/dist/park-envelope.d.ts +0 -329
  461. package/dist/park-envelope.d.ts.map +0 -1
  462. package/dist/park-envelope.js +0 -509
  463. package/dist/park-envelope.js.map +0 -1
  464. package/dist/park-recovery.d.ts +0 -273
  465. package/dist/park-recovery.d.ts.map +0 -1
  466. package/dist/park-recovery.js +0 -717
  467. package/dist/park-recovery.js.map +0 -1
  468. package/dist/park-refusals.d.ts +0 -147
  469. package/dist/park-refusals.d.ts.map +0 -1
  470. package/dist/park-refusals.js +0 -331
  471. package/dist/park-refusals.js.map +0 -1
  472. package/dist/quarantine-framing.d.ts +0 -92
  473. package/dist/quarantine-framing.d.ts.map +0 -1
  474. package/dist/quarantine-framing.js +0 -111
  475. package/dist/quarantine-framing.js.map +0 -1
  476. package/dist/reconnect-drain.d.ts +0 -22
  477. package/dist/reconnect-drain.d.ts.map +0 -1
  478. package/dist/reconnect-drain.js +0 -65
  479. package/dist/reconnect-drain.js.map +0 -1
  480. package/dist/recovered-position.d.ts +0 -14
  481. package/dist/recovered-position.d.ts.map +0 -1
  482. package/dist/recovered-position.js +0 -59
  483. package/dist/recovered-position.js.map +0 -1
  484. package/dist/refusal-notices.d.ts +0 -196
  485. package/dist/refusal-notices.d.ts.map +0 -1
  486. package/dist/refusal-notices.js +0 -516
  487. package/dist/refusal-notices.js.map +0 -1
  488. package/dist/refusal-reasons.d.ts +0 -245
  489. package/dist/refusal-reasons.d.ts.map +0 -1
  490. package/dist/refusal-reasons.js +0 -363
  491. package/dist/refusal-reasons.js.map +0 -1
  492. package/dist/register-handler.d.ts +0 -36
  493. package/dist/register-handler.d.ts.map +0 -1
  494. package/dist/register-handler.js +0 -285
  495. package/dist/register-handler.js.map +0 -1
  496. package/dist/registration-context.d.ts +0 -72
  497. package/dist/registration-context.d.ts.map +0 -1
  498. package/dist/registration-context.js +0 -126
  499. package/dist/registration-context.js.map +0 -1
  500. package/dist/registration-manager.d.ts +0 -94
  501. package/dist/registration-manager.d.ts.map +0 -1
  502. package/dist/registration-manager.js +0 -585
  503. package/dist/registration-manager.js.map +0 -1
  504. package/dist/registration-persistence.d.ts +0 -183
  505. package/dist/registration-persistence.d.ts.map +0 -1
  506. package/dist/registration-persistence.js +0 -263
  507. package/dist/registration-persistence.js.map +0 -1
  508. package/dist/registry-poll.d.ts +0 -52
  509. package/dist/registry-poll.d.ts.map +0 -1
  510. package/dist/registry-poll.js +0 -140
  511. package/dist/registry-poll.js.map +0 -1
  512. package/dist/registry-version-store-db.d.ts +0 -22
  513. package/dist/registry-version-store-db.d.ts.map +0 -1
  514. package/dist/registry-version-store-db.js +0 -50
  515. package/dist/registry-version-store-db.js.map +0 -1
  516. package/dist/relay-endpoints.d.ts +0 -18
  517. package/dist/relay-endpoints.d.ts.map +0 -1
  518. package/dist/relay-endpoints.js +0 -9
  519. package/dist/relay-endpoints.js.map +0 -1
  520. package/dist/relay-only.d.ts +0 -140
  521. package/dist/relay-only.d.ts.map +0 -1
  522. package/dist/relay-only.js +0 -193
  523. package/dist/relay-only.js.map +0 -1
  524. package/dist/relay-receipt-store.d.ts +0 -155
  525. package/dist/relay-receipt-store.d.ts.map +0 -1
  526. package/dist/relay-receipt-store.js +0 -284
  527. package/dist/relay-receipt-store.js.map +0 -1
  528. package/dist/relay-reconnect.d.ts +0 -32
  529. package/dist/relay-reconnect.d.ts.map +0 -1
  530. package/dist/relay-reconnect.js +0 -29
  531. package/dist/relay-reconnect.js.map +0 -1
  532. package/dist/reply-lag.d.ts +0 -11
  533. package/dist/reply-lag.d.ts.map +0 -1
  534. package/dist/reply-lag.js +0 -46
  535. package/dist/reply-lag.js.map +0 -1
  536. package/dist/resolve-named-agent.d.ts +0 -49
  537. package/dist/resolve-named-agent.d.ts.map +0 -1
  538. package/dist/resolve-named-agent.js +0 -77
  539. package/dist/resolve-named-agent.js.map +0 -1
  540. package/dist/restart-seal-resolver.d.ts +0 -110
  541. package/dist/restart-seal-resolver.d.ts.map +0 -1
  542. package/dist/restart-seal-resolver.js +0 -353
  543. package/dist/restart-seal-resolver.js.map +0 -1
  544. package/dist/resume-last-seen.d.ts +0 -15
  545. package/dist/resume-last-seen.d.ts.map +0 -1
  546. package/dist/resume-last-seen.js +0 -44
  547. package/dist/resume-last-seen.js.map +0 -1
  548. package/dist/retry-queue.d.ts +0 -203
  549. package/dist/retry-queue.d.ts.map +0 -1
  550. package/dist/retry-queue.js +0 -701
  551. package/dist/retry-queue.js.map +0 -1
  552. package/dist/roster-freshness.d.ts +0 -160
  553. package/dist/roster-freshness.d.ts.map +0 -1
  554. package/dist/roster-freshness.js +0 -250
  555. package/dist/roster-freshness.js.map +0 -1
  556. package/dist/screening-status.d.ts +0 -15
  557. package/dist/screening-status.d.ts.map +0 -1
  558. package/dist/screening-status.js +0 -65
  559. package/dist/screening-status.js.map +0 -1
  560. package/dist/seal-carried-close.d.ts +0 -37
  561. package/dist/seal-carried-close.d.ts.map +0 -1
  562. package/dist/seal-carried-close.js +0 -179
  563. package/dist/seal-carried-close.js.map +0 -1
  564. package/dist/seal-certificate-pull.d.ts +0 -79
  565. package/dist/seal-certificate-pull.d.ts.map +0 -1
  566. package/dist/seal-certificate-pull.js +0 -186
  567. package/dist/seal-certificate-pull.js.map +0 -1
  568. package/dist/seal-certified-root-check.d.ts +0 -37
  569. package/dist/seal-certified-root-check.d.ts.map +0 -1
  570. package/dist/seal-certified-root-check.js +0 -127
  571. package/dist/seal-certified-root-check.js.map +0 -1
  572. package/dist/seal-coordinator.d.ts +0 -118
  573. package/dist/seal-coordinator.d.ts.map +0 -1
  574. package/dist/seal-coordinator.js +0 -927
  575. package/dist/seal-coordinator.js.map +0 -1
  576. package/dist/seal-escalation.d.ts +0 -80
  577. package/dist/seal-escalation.d.ts.map +0 -1
  578. package/dist/seal-escalation.js +0 -283
  579. package/dist/seal-escalation.js.map +0 -1
  580. package/dist/seal-evidence-root-check.d.ts +0 -70
  581. package/dist/seal-evidence-root-check.d.ts.map +0 -1
  582. package/dist/seal-evidence-root-check.js +0 -199
  583. package/dist/seal-evidence-root-check.js.map +0 -1
  584. package/dist/seal-failure-store.d.ts +0 -129
  585. package/dist/seal-failure-store.d.ts.map +0 -1
  586. package/dist/seal-failure-store.js +0 -173
  587. package/dist/seal-failure-store.js.map +0 -1
  588. package/dist/seal-flows.d.ts +0 -107
  589. package/dist/seal-flows.d.ts.map +0 -1
  590. package/dist/seal-flows.js +0 -638
  591. package/dist/seal-flows.js.map +0 -1
  592. package/dist/seal-frontier-verify.d.ts +0 -103
  593. package/dist/seal-frontier-verify.d.ts.map +0 -1
  594. package/dist/seal-frontier-verify.js +0 -143
  595. package/dist/seal-frontier-verify.js.map +0 -1
  596. package/dist/seal-leaf.d.ts +0 -58
  597. package/dist/seal-leaf.d.ts.map +0 -1
  598. package/dist/seal-leaf.js +0 -112
  599. package/dist/seal-leaf.js.map +0 -1
  600. package/dist/seal-legibility-tbs.d.ts +0 -25
  601. package/dist/seal-legibility-tbs.d.ts.map +0 -1
  602. package/dist/seal-legibility-tbs.js +0 -77
  603. package/dist/seal-legibility-tbs.js.map +0 -1
  604. package/dist/seal-local-terminus.d.ts +0 -41
  605. package/dist/seal-local-terminus.d.ts.map +0 -1
  606. package/dist/seal-local-terminus.js +0 -170
  607. package/dist/seal-local-terminus.js.map +0 -1
  608. package/dist/seal-receipt-upgrade.d.ts +0 -30
  609. package/dist/seal-receipt-upgrade.d.ts.map +0 -1
  610. package/dist/seal-receipt-upgrade.js +0 -49
  611. package/dist/seal-receipt-upgrade.js.map +0 -1
  612. package/dist/seal-relay-silence.d.ts +0 -51
  613. package/dist/seal-relay-silence.d.ts.map +0 -1
  614. package/dist/seal-relay-silence.js +0 -76
  615. package/dist/seal-relay-silence.js.map +0 -1
  616. package/dist/seal-settle.d.ts +0 -38
  617. package/dist/seal-settle.d.ts.map +0 -1
  618. package/dist/seal-settle.js +0 -33
  619. package/dist/seal-settle.js.map +0 -1
  620. package/dist/seal-upgrade.d.ts +0 -107
  621. package/dist/seal-upgrade.d.ts.map +0 -1
  622. package/dist/seal-upgrade.js +0 -200
  623. package/dist/seal-upgrade.js.map +0 -1
  624. package/dist/sealed-conversation.d.ts +0 -36
  625. package/dist/sealed-conversation.d.ts.map +0 -1
  626. package/dist/sealed-conversation.js +0 -171
  627. package/dist/sealed-conversation.js.map +0 -1
  628. package/dist/sealed-leaf-set.d.ts +0 -92
  629. package/dist/sealed-leaf-set.d.ts.map +0 -1
  630. package/dist/sealed-leaf-set.js +0 -122
  631. package/dist/sealed-leaf-set.js.map +0 -1
  632. package/dist/send-claims.d.ts +0 -56
  633. package/dist/send-claims.d.ts.map +0 -1
  634. package/dist/send-claims.js +0 -50
  635. package/dist/send-claims.js.map +0 -1
  636. package/dist/session-assignment-parser.d.ts +0 -98
  637. package/dist/session-assignment-parser.d.ts.map +0 -1
  638. package/dist/session-assignment-parser.js +0 -325
  639. package/dist/session-assignment-parser.js.map +0 -1
  640. package/dist/session-category.d.ts +0 -19
  641. package/dist/session-category.d.ts.map +0 -1
  642. package/dist/session-category.js +0 -14
  643. package/dist/session-category.js.map +0 -1
  644. package/dist/session-ceremony.d.ts +0 -297
  645. package/dist/session-ceremony.d.ts.map +0 -1
  646. package/dist/session-ceremony.js +0 -964
  647. package/dist/session-ceremony.js.map +0 -1
  648. package/dist/session-closed.d.ts +0 -79
  649. package/dist/session-closed.d.ts.map +0 -1
  650. package/dist/session-closed.js +0 -189
  651. package/dist/session-closed.js.map +0 -1
  652. package/dist/session-connection-gater.d.ts +0 -148
  653. package/dist/session-connection-gater.d.ts.map +0 -1
  654. package/dist/session-connection-gater.js +0 -332
  655. package/dist/session-connection-gater.js.map +0 -1
  656. package/dist/session-content-context.d.ts +0 -162
  657. package/dist/session-content-context.d.ts.map +0 -1
  658. package/dist/session-content-context.js +0 -2
  659. package/dist/session-content-context.js.map +0 -1
  660. package/dist/session-content-handlers.d.ts +0 -82
  661. package/dist/session-content-handlers.d.ts.map +0 -1
  662. package/dist/session-content-handlers.js +0 -1382
  663. package/dist/session-content-handlers.js.map +0 -1
  664. package/dist/session-content-ingest.d.ts +0 -206
  665. package/dist/session-content-ingest.d.ts.map +0 -1
  666. package/dist/session-content-ingest.js +0 -2167
  667. package/dist/session-content-ingest.js.map +0 -1
  668. package/dist/session-content-send.d.ts +0 -191
  669. package/dist/session-content-send.d.ts.map +0 -1
  670. package/dist/session-content-send.js +0 -1360
  671. package/dist/session-content-send.js.map +0 -1
  672. package/dist/session-delivery-acks.d.ts +0 -169
  673. package/dist/session-delivery-acks.d.ts.map +0 -1
  674. package/dist/session-delivery-acks.js +0 -569
  675. package/dist/session-delivery-acks.js.map +0 -1
  676. package/dist/session-ephemerals.d.ts +0 -279
  677. package/dist/session-ephemerals.d.ts.map +0 -1
  678. package/dist/session-ephemerals.js +0 -591
  679. package/dist/session-ephemerals.js.map +0 -1
  680. package/dist/session-leaf-records.d.ts +0 -159
  681. package/dist/session-leaf-records.d.ts.map +0 -1
  682. package/dist/session-leaf-records.js +0 -408
  683. package/dist/session-leaf-records.js.map +0 -1
  684. package/dist/session-lifecycle.d.ts +0 -303
  685. package/dist/session-lifecycle.d.ts.map +0 -1
  686. package/dist/session-lifecycle.js +0 -1679
  687. package/dist/session-lifecycle.js.map +0 -1
  688. package/dist/session-liveness.d.ts +0 -135
  689. package/dist/session-liveness.d.ts.map +0 -1
  690. package/dist/session-liveness.js +0 -347
  691. package/dist/session-liveness.js.map +0 -1
  692. package/dist/session-name.d.ts +0 -35
  693. package/dist/session-name.d.ts.map +0 -1
  694. package/dist/session-name.js +0 -60
  695. package/dist/session-name.js.map +0 -1
  696. package/dist/session-node-factory.d.ts +0 -18
  697. package/dist/session-node-factory.d.ts.map +0 -1
  698. package/dist/session-node-factory.js +0 -182
  699. package/dist/session-node-factory.js.map +0 -1
  700. package/dist/session-node-manager.d.ts +0 -875
  701. package/dist/session-node-manager.d.ts.map +0 -1
  702. package/dist/session-node-manager.js +0 -2995
  703. package/dist/session-node-manager.js.map +0 -1
  704. package/dist/session-node-types.d.ts +0 -1057
  705. package/dist/session-node-types.d.ts.map +0 -1
  706. package/dist/session-node-types.js +0 -657
  707. package/dist/session-node-types.js.map +0 -1
  708. package/dist/session-notify.d.ts +0 -46
  709. package/dist/session-notify.d.ts.map +0 -1
  710. package/dist/session-notify.js +0 -116
  711. package/dist/session-notify.js.map +0 -1
  712. package/dist/session-own-chain-store.d.ts +0 -65
  713. package/dist/session-own-chain-store.d.ts.map +0 -1
  714. package/dist/session-own-chain-store.js +0 -75
  715. package/dist/session-own-chain-store.js.map +0 -1
  716. package/dist/session-queries.d.ts +0 -476
  717. package/dist/session-queries.d.ts.map +0 -1
  718. package/dist/session-queries.js +0 -1007
  719. package/dist/session-queries.js.map +0 -1
  720. package/dist/session-read-handlers.d.ts +0 -87
  721. package/dist/session-read-handlers.d.ts.map +0 -1
  722. package/dist/session-read-handlers.js +0 -682
  723. package/dist/session-read-handlers.js.map +0 -1
  724. package/dist/session-records.d.ts +0 -341
  725. package/dist/session-records.d.ts.map +0 -1
  726. package/dist/session-records.js +0 -858
  727. package/dist/session-records.js.map +0 -1
  728. package/dist/session-relay-client.d.ts +0 -659
  729. package/dist/session-relay-client.d.ts.map +0 -1
  730. package/dist/session-relay-client.js +0 -2876
  731. package/dist/session-relay-client.js.map +0 -1
  732. package/dist/session-relay.d.ts +0 -397
  733. package/dist/session-relay.d.ts.map +0 -1
  734. package/dist/session-relay.js +0 -1636
  735. package/dist/session-relay.js.map +0 -1
  736. package/dist/session-salt-agreement.d.ts +0 -331
  737. package/dist/session-salt-agreement.d.ts.map +0 -1
  738. package/dist/session-salt-agreement.js +0 -472
  739. package/dist/session-salt-agreement.js.map +0 -1
  740. package/dist/session-salts.d.ts +0 -432
  741. package/dist/session-salts.d.ts.map +0 -1
  742. package/dist/session-salts.js +0 -1540
  743. package/dist/session-salts.js.map +0 -1
  744. package/dist/session-schema.d.ts +0 -30
  745. package/dist/session-schema.d.ts.map +0 -1
  746. package/dist/session-schema.js +0 -877
  747. package/dist/session-schema.js.map +0 -1
  748. package/dist/session-seal-leaf-store.d.ts +0 -70
  749. package/dist/session-seal-leaf-store.d.ts.map +0 -1
  750. package/dist/session-seal-leaf-store.js +0 -105
  751. package/dist/session-seal-leaf-store.js.map +0 -1
  752. package/dist/session-seal.d.ts +0 -334
  753. package/dist/session-seal.d.ts.map +0 -1
  754. package/dist/session-seal.js +0 -1017
  755. package/dist/session-seal.js.map +0 -1
  756. package/dist/session-terminal-refusal.d.ts +0 -65
  757. package/dist/session-terminal-refusal.d.ts.map +0 -1
  758. package/dist/session-terminal-refusal.js +0 -87
  759. package/dist/session-terminal-refusal.js.map +0 -1
  760. package/dist/session-tree.d.ts +0 -110
  761. package/dist/session-tree.d.ts.map +0 -1
  762. package/dist/session-tree.js +0 -144
  763. package/dist/session-tree.js.map +0 -1
  764. package/dist/session-views.d.ts +0 -47
  765. package/dist/session-views.d.ts.map +0 -1
  766. package/dist/session-views.js +0 -278
  767. package/dist/session-views.js.map +0 -1
  768. package/dist/signal-handlers.d.ts +0 -63
  769. package/dist/signal-handlers.d.ts.map +0 -1
  770. package/dist/signal-handlers.js +0 -980
  771. package/dist/signal-handlers.js.map +0 -1
  772. package/dist/signal-requirement-policy.d.ts +0 -51
  773. package/dist/signal-requirement-policy.d.ts.map +0 -1
  774. package/dist/signal-requirement-policy.js +0 -89
  775. package/dist/signal-requirement-policy.js.map +0 -1
  776. package/dist/signal-revocability.d.ts +0 -49
  777. package/dist/signal-revocability.d.ts.map +0 -1
  778. package/dist/signal-revocability.js +0 -93
  779. package/dist/signal-revocability.js.map +0 -1
  780. package/dist/signal-submission.d.ts +0 -181
  781. package/dist/signal-submission.d.ts.map +0 -1
  782. package/dist/signal-submission.js +0 -368
  783. package/dist/signal-submission.js.map +0 -1
  784. package/dist/signaling-connect.d.ts +0 -118
  785. package/dist/signaling-connect.d.ts.map +0 -1
  786. package/dist/signaling-connect.js +0 -538
  787. package/dist/signaling-connect.js.map +0 -1
  788. package/dist/signaling-wiring.d.ts +0 -105
  789. package/dist/signaling-wiring.d.ts.map +0 -1
  790. package/dist/signaling-wiring.js +0 -393
  791. package/dist/signaling-wiring.js.map +0 -1
  792. package/dist/singleton-lock.d.ts +0 -85
  793. package/dist/singleton-lock.d.ts.map +0 -1
  794. package/dist/singleton-lock.js +0 -219
  795. package/dist/singleton-lock.js.map +0 -1
  796. package/dist/sqlcipher-db.d.ts +0 -139
  797. package/dist/sqlcipher-db.d.ts.map +0 -1
  798. package/dist/sqlcipher-db.js +0 -357
  799. package/dist/sqlcipher-db.js.map +0 -1
  800. package/dist/standing-receivers.d.ts +0 -319
  801. package/dist/standing-receivers.d.ts.map +0 -1
  802. package/dist/standing-receivers.js +0 -1295
  803. package/dist/standing-receivers.js.map +0 -1
  804. package/dist/start-agent.d.ts +0 -64
  805. package/dist/start-agent.d.ts.map +0 -1
  806. package/dist/start-agent.js +0 -136
  807. package/dist/start-agent.js.map +0 -1
  808. package/dist/status-handler.d.ts +0 -54
  809. package/dist/status-handler.d.ts.map +0 -1
  810. package/dist/status-handler.js +0 -61
  811. package/dist/status-handler.js.map +0 -1
  812. package/dist/submission-retry.d.ts +0 -208
  813. package/dist/submission-retry.d.ts.map +0 -1
  814. package/dist/submission-retry.js +0 -506
  815. package/dist/submission-retry.js.map +0 -1
  816. package/dist/telegram-bot-client.d.ts +0 -34
  817. package/dist/telegram-bot-client.d.ts.map +0 -1
  818. package/dist/telegram-bot-client.js +0 -36
  819. package/dist/telegram-bot-client.js.map +0 -1
  820. package/dist/telegram-doorbell.d.ts +0 -38
  821. package/dist/telegram-doorbell.d.ts.map +0 -1
  822. package/dist/telegram-doorbell.js +0 -140
  823. package/dist/telegram-doorbell.js.map +0 -1
  824. package/dist/test-handlers.d.ts +0 -62
  825. package/dist/test-handlers.d.ts.map +0 -1
  826. package/dist/test-handlers.js +0 -240
  827. package/dist/test-handlers.js.map +0 -1
  828. package/dist/testing.d.ts +0 -10
  829. package/dist/testing.d.ts.map +0 -1
  830. package/dist/testing.js +0 -10
  831. package/dist/testing.js.map +0 -1
  832. package/dist/transport-composition.d.ts +0 -31
  833. package/dist/transport-composition.d.ts.map +0 -1
  834. package/dist/transport-composition.js +0 -55
  835. package/dist/transport-composition.js.map +0 -1
  836. package/dist/transport-selector.d.ts +0 -202
  837. package/dist/transport-selector.d.ts.map +0 -1
  838. package/dist/transport-selector.js +0 -196
  839. package/dist/transport-selector.js.map +0 -1
  840. package/dist/trust-signal-pickup-listener.d.ts +0 -43
  841. package/dist/trust-signal-pickup-listener.d.ts.map +0 -1
  842. package/dist/trust-signal-pickup-listener.js +0 -48
  843. package/dist/trust-signal-pickup-listener.js.map +0 -1
  844. package/dist/trust-signal-store.d.ts +0 -406
  845. package/dist/trust-signal-store.d.ts.map +0 -1
  846. package/dist/trust-signal-store.js +0 -939
  847. package/dist/trust-signal-store.js.map +0 -1
  848. package/dist/trust-signal-sweep-tick.d.ts +0 -60
  849. package/dist/trust-signal-sweep-tick.d.ts.map +0 -1
  850. package/dist/trust-signal-sweep-tick.js +0 -101
  851. package/dist/trust-signal-sweep-tick.js.map +0 -1
  852. package/dist/trust-signal-sweep.d.ts +0 -94
  853. package/dist/trust-signal-sweep.d.ts.map +0 -1
  854. package/dist/trust-signal-sweep.js +0 -147
  855. package/dist/trust-signal-sweep.js.map +0 -1
  856. package/dist/type-registry.d.ts +0 -42
  857. package/dist/type-registry.d.ts.map +0 -1
  858. package/dist/type-registry.js +0 -37
  859. package/dist/type-registry.js.map +0 -1
  860. package/dist/types.d.ts +0 -746
  861. package/dist/types.d.ts.map +0 -1
  862. package/dist/types.js +0 -20
  863. package/dist/types.js.map +0 -1
  864. package/dist/unresolved-nodes-report.d.ts +0 -14
  865. package/dist/unresolved-nodes-report.d.ts.map +0 -1
  866. package/dist/unresolved-nodes-report.js +0 -96
  867. package/dist/unresolved-nodes-report.js.map +0 -1
  868. package/dist/vocabulary.d.ts +0 -150
  869. package/dist/vocabulary.d.ts.map +0 -1
  870. package/dist/vocabulary.js +0 -386
  871. package/dist/vocabulary.js.map +0 -1
  872. package/dist/who-label.d.ts +0 -28
  873. package/dist/who-label.d.ts.map +0 -1
  874. package/dist/who-label.js +0 -31
  875. package/dist/who-label.js.map +0 -1
  876. package/dist/who-resolver.d.ts +0 -15
  877. package/dist/who-resolver.d.ts.map +0 -1
  878. package/dist/who-resolver.js +0 -47
  879. package/dist/who-resolver.js.map +0 -1
  880. package/dist/wire-content-hash.d.ts +0 -93
  881. package/dist/wire-content-hash.d.ts.map +0 -1
  882. package/dist/wire-content-hash.js +0 -116
  883. package/dist/wire-content-hash.js.map +0 -1
  884. package/dist/withheld-content.d.ts +0 -13
  885. package/dist/withheld-content.d.ts.map +0 -1
  886. package/dist/withheld-content.js +0 -46
  887. package/dist/withheld-content.js.map +0 -1
  888. package/dist/witness-alerts.d.ts +0 -40
  889. package/dist/witness-alerts.d.ts.map +0 -1
  890. package/dist/witness-alerts.js +0 -102
  891. package/dist/witness-alerts.js.map +0 -1
@@ -1,875 +0,0 @@
1
- /**
2
- * CELLO Daemon — SessionNodeManager
3
- *
4
- * Manages the lifecycle of all ephemeral session nodes:
5
- * 1. Per-session nodes: fresh transport key + Peer ID, connectionGater allows
6
- * only the designated counterparty. Created during cello_initiate_session
7
- * (outbound) or cello_await_session (inbound, via standing receiver handoff).
8
- * 2. Standing receiver node: pre-created, kept alive at all times, handed to the first inbound
9
- * session and immediately replaced. Its gater is NOT open — `DOD-M15-ASSIGN-1` made it admit
10
- * nobody inbound until a session offer names the dialer (see `standing-receivers.ts`). This
11
- * line said "open gater" for as long as that was true and for a while after it was not.
12
- * 3. 32-node cap: enforced before any new node is created.
13
- * 4. Session status in the DB: active → sealed (on close) or interrupted
14
- * (on graceful shutdown or SIGKILL-restart detection).
15
- *
16
- * Interrupted-session detection runs BEFORE the IPC socket opens, so a client cannot observe a
17
- * stale 'active' row from a previous process.
18
- */
19
- import { type ContentHashAlg } from "./wire-content-hash.js";
20
- import { type CapacityReason } from "./refusal-reasons.js";
21
- import { type SaltAgreementFrame } from "./session-salt-agreement.js";
22
- import { type DaemonDatabase } from "./sqlcipher-db.js";
23
- import { type RefusalKind } from "./refusal-reasons.js";
24
- import type { Logger, SessionRecord } from "./types.js";
25
- import { SessionTree, type WritableSessionTreeLeafKind } from "./session-tree.js";
26
- import { type CelloNode, type IAutoNatService } from "@cello-protocol/transport";
27
- import type { KeyProvider } from "@cello-protocol/crypto";
28
- import { type SessionEphemeral } from "@cello-protocol/crypto";
29
- import { type ParkEnvelope } from "./park-envelope.js";
30
- import { AgentRelayClient, type RelayAuthRefusal, type RelayWitnessAlert } from "./session-relay-client.js";
31
- import { ParkRecovery } from "./park-recovery.js";
32
- import type { LivenessAnswer } from "./session-relay-client.js";
33
- import { SessionContentSender } from "./session-content-send.js";
34
- import { SessionContentIngest } from "./session-content-ingest.js";
35
- import { SessionSeal } from "./session-seal.js";
36
- import { SessionRelay } from "./session-relay.js";
37
- import { SessionLifecycle } from "./session-lifecycle.js";
38
- import { RelayReceiptStore } from "./relay-receipt-store.js";
39
- import { SessionSealLeafStore } from "./session-seal-leaf-store.js";
40
- import { SessionOwnChainStore } from "./session-own-chain-store.js";
41
- import type { SealFrontierLeaf } from "./seal-frontier-verify.js";
42
- import { type SecurityGatewayClient } from "@cello-protocol/gateway";
43
- import { type ISessionNodeFactory, type ParkedDrainReason, type QuarantinedRecord, type RefusalNotice, type SessionImpairment, type TranscriptEntry, type WitnessAlertNotice } from "./session-node-types.js";
44
- export { ABUSE_MAX_SESSIONS_PER_UNKNOWN_SENDER, ABUSE_MAX_SESSION_RECEIVED_BYTES, ABUSE_MAX_UNKNOWN_SESSIONS_GLOBAL, type AbandonNoticeResult, type AckHashReason, CAP_INTERRUPTED_TTL_MS, type ISessionNodeFactory, LEAF_FETCH_GRACE_MS, MAX_TERMINAL_REFUSALS_PER_SESSION, type ParkedDrainReason, type QuarantinedRecord, RELAY_QUARANTINE_MS, REVIVAL_BOUND_SWEEP_MS, REVIVAL_WINDOW_MS, REVIVE_RESERVATION_CANDIDATES, REVIVE_RESERVATION_TIMEOUT_MS, type RefusalNotice, type RelayConnectParams, SR_RESERVATION_MAX_RETRIES, type SentAuthorship, type SessionImpairment, type SessionNodeConfig, TERMINAL_REFUSAL_READ_RETRY_MS, TERMINAL_REFUSAL_REASONS, type TranscriptEntry, type WitnessAlertNotice, } from "./session-node-types.js";
45
- export declare class SessionNodeManager {
46
- #private;
47
- setDetachedRelayClientBuilder(fn: (agentName: string, relayPeerId: string, relayAddrs: string[], stores: {
48
- receiptStore?: RelayReceiptStore;
49
- sealLeafStore?: SessionSealLeafStore;
50
- ownChainStore?: SessionOwnChainStore;
51
- onlineToken: () => Uint8Array | undefined;
52
- }) => AgentRelayClient | undefined): void;
53
- /**
54
- * Why this agent's standing receiver could not hold a reservation, in words the person running it
55
- * can act on — or null when the last attempt succeeded or none has been made.
56
- *
57
- * This is the surface DoD clause 7 is about: the assertion that matters is what the CLIENT can
58
- * show someone, not what the relay wrote in its own log.
59
- */
60
- getStandingReceiverRefusal(agentName: string): (RelayAuthRefusal & {
61
- relayPeerId: string;
62
- }) | null;
63
- /** ─── DELEGATORS — the standing-receiver API other files call ───────────────────────── */
64
- standingReceiverAbsenceReason(agentName: string): "daemon_shutting_down" | "standing_receiver_creating" | "agent_offline" | "no_standing_receiver";
65
- getStandingReceiverInfo(agentName: string): {
66
- peerId: string;
67
- addrs: string[];
68
- } | null;
69
- getStandingReceiverReady(agentName?: string): boolean;
70
- getStandingReceiverNode(agentName?: string): CelloNode | null;
71
- getStandingReceiverReachability(agentName: string): "reserved" | "ready" | "retrying" | "unreachable" | "absent";
72
- getStandingReceiverAutoNat(): IAutoNatService | null;
73
- getStandingReceiverAllowedPeer(agentName: string): string | null;
74
- admitOfferedDialer(a: string, p: string, sid: string): "narrowed" | "no_receiver" | "no_peer_named";
75
- takeReservationForSession(a: string, c: string, cid: string, offerSid?: string): Promise<boolean>;
76
- retakeReservationOn(a: string, node: CelloNode, c: string, cid: string): Promise<boolean>;
77
- getStandingReceiverRelayIds(a: string): string[];
78
- /** 055-ONDEMAND — a live session's own node. Its circuit is not the receiver's; see the release path. */
79
- getSessionNodeForTest(a: string, sid: string): CelloNode | null;
80
- getOfferedDialer(agentName: string, sessionIdHex: string): string | null;
81
- clearOfferedDialer(agentName: string, sessionIdHex: string): void;
82
- revokeOfferedDialer(agentName: string, sessionIdHex: string, offeredPeerId: string | null): void;
83
- /** ─── DELEGATORS — the leaf-record API other files call ─────────────────────────────── */
84
- recordSessionGenesis(agentName: string, sessionId: string, participantA: Uint8Array, participantB: Uint8Array, sessionTimestamp: number, sessionSignature: Uint8Array | undefined, relayAnchorHex?: string): void;
85
- /** 069-ORDERPROOF: the relay key this session's ordering attestations are verified against. */
86
- sessionRelayAnchor(agentName: string, sessionId: string): string | undefined;
87
- persistRelayAnchor(agentName: string, sessionId: string, relayAnchorHex: string | undefined): void;
88
- setSessionGenesisForTest(agentName: string, sessionId: string, genesis: Uint8Array): void;
89
- recordCertifiedLeafSet(agentName: string, sessionId: string, signedLeaves: readonly SealFrontierLeaf[], sealedRootHex: string, correlationId?: string): boolean;
90
- noteCertifiedLeafSetUnavailable(agentName: string, sessionId: string, state: "not_carried_absent_party" | "not_carried_present_party", detail: string): void;
91
- getCertifiedLeafSet(agentName: string, sessionId: string): string[] | null;
92
- getCertifiedLeafSetState(agentName: string, sessionId: string): {
93
- state: string;
94
- detail: string | null;
95
- } | null;
96
- /** ─── DELEGATORS — the held-content seams other files call ──────────────────────────── */
97
- holdOwnLeafForTest(agentName: string, sessionId: string, canonicalSeq: number, contentHashHex: string): void;
98
- /** ─── DELEGATORS — the witness-alert API other files call ────────────────────────────── */
99
- recordRelayWitnessAlert(agentName: string, alert: RelayWitnessAlert): void;
100
- getWitnessAlerts(agentName: string): ReadonlyArray<WitnessAlertNotice>;
101
- witnessAlertsTruncated(agentName: string): boolean;
102
- /** ─── DELEGATORS — the liveness API other files call, unchanged by the split ───────────── */
103
- getSessionLiveness(agentName: string, sessionId: string): "alive" | "impaired" | "gone" | "unknown";
104
- getSessionImpairment(agentName: string, sessionId: string): SessionImpairment | null;
105
- markSessionLivenessForTest(agentName: string, sessionId: string, state: "alive" | "impaired" | "gone"): void;
106
- /** ─── DELEGATORS — the test seams other files call, unchanged by the split ─────────────── */
107
- mintSessionEphemeralForTest(agentName: string, sessionId: string): void;
108
- sessionEphemeralPublicForTest(agentName: string, sessionId: string): Uint8Array | null;
109
- setSessionEphemeralForTest(agentName: string, sessionId: string, ephemeral: SessionEphemeral): void;
110
- setSessionContentKeyForTest(agentName: string, sessionId: string, key: Uint8Array): void;
111
- forgetSessionContentKeyForTest(agentName: string, sessionId: string): void;
112
- signOwnEphemeralForTest(agentName: string, sessionId: string): Promise<{
113
- ephemeralPublic: Uint8Array;
114
- signature: Uint8Array;
115
- } | null>;
116
- handleEphemeralFrameForTest(agentName: string, sessionId: string, frame: {
117
- ephemeralPublic?: Uint8Array;
118
- signature?: Uint8Array;
119
- }, correlationId?: string): Promise<void>;
120
- /**
121
- * ─── DELEGATORS — the refusal-notice API other files call, unchanged by the split ──────────
122
- *
123
- * ⚠️ **REFUSALS LOGGED AND FILED NOTHING, AND THAT IS WHY THIS API EXISTS.** The encryption gate's
124
- * three causes each carried a good `impact` and `guidance` at ERROR and none of them called
125
- * `noteContentRefusal`, so the sentences an operator needed were in a file they have no reason to
126
- * open. From their chair a message never arrived and the conversation went quiet — the exact defect
127
- * `DOD-M15-NO-SILENT-REFUSAL-1` was built to end, three checks above the one that respected it.
128
- *
129
- * Both surfaces, always: the ERROR is the durable forensic record an investigation reads days
130
- * later, and the notice is the control — the thing that actually reaches the person.
131
- */
132
- noteContentRefusal(agentName: string, sessionId: string, reason: string, detail: {
133
- kind: RefusalKind;
134
- impact: string;
135
- guidance: string;
136
- }): void;
137
- takeContentRefusals(agentName: string, sessionId: string, consumerId: string): Array<Omit<RefusalNotice, "sessionId">>;
138
- dismissContentRefusals(agentName: string, sessionId: string): number;
139
- takeAgentContentRefusals(agentName: string, consumerId: string): {
140
- notices: RefusalNotice[];
141
- truncated: boolean;
142
- };
143
- /**
144
- * ─── DELEGATORS — the query API other files call, unchanged by the split ────────────────────
145
- */
146
- listExpiredUnrevivableSessions(nowMs: number, windowMs: number): Array<{
147
- agentName: string;
148
- sessionId: string;
149
- cause: string | null;
150
- }>;
151
- listRestartOrphanedSessions(): Array<{
152
- agentName: string;
153
- sessionId: string;
154
- messageCount: number;
155
- status: "interrupted" | "seal_interrupted_pending";
156
- }>;
157
- readQuarantined(agentName: string, sessionId: string, sequence?: number): QuarantinedRecord[];
158
- getPinnedCounterpartyPrimary(agentName: string, counterpartyPubkeyHex: string): string | null;
159
- recordSealedAnnex(agentName: string, sessionId: string, contentHashHex: string, content: Uint8Array, senderPubkeyHex: string | null): boolean;
160
- findNextReceivedAfter(agentName: string, sessionId: string, afterSeq: number): {
161
- sequence: number;
162
- text: string;
163
- } | null;
164
- getSealInterruptedArtifacts(agentName: string, sessionId: string): {
165
- role: string;
166
- ownLeaf: unknown;
167
- counterpartyLeaf: unknown;
168
- merkleRoot: string;
169
- nonce: string;
170
- } | null;
171
- getSessionsByStatus(status: "active" | "sealed" | "interrupted"): SessionRecord[];
172
- recordRefusedSession(agentName: string, sessionId: string, reason: string): void;
173
- getAgentRelayEndpoints(agentName: string): Array<{
174
- relayPeerId: string;
175
- relayAddrs: string[];
176
- }>;
177
- countActiveSessionsFromUnknownSenders(agentName: string): number;
178
- getSealCertificate(agentName: string, sessionId: string): {
179
- sealed_root: string;
180
- legibility: unknown;
181
- } | null;
182
- setSessionName(agentName: string, sessionId: string, sessionName: string | null): boolean;
183
- getPersistedRelayEndpoint(agentName: string, sessionId: string): {
184
- relayPeerId: string;
185
- relayAddrs: string[];
186
- } | null;
187
- markRestartSealGaveUp(agentName: string, sessionId: string, reason: string): void;
188
- dismissSession(agentName: string, sessionId: string): {
189
- ok: true;
190
- } | {
191
- ok: false;
192
- reason: string;
193
- };
194
- agentNameForId(agentId: string): string | null;
195
- getRenameNotices(agentName: string): Array<{
196
- pubkey: string;
197
- offered_name: string;
198
- noticed_at: number;
199
- moniker: string | null;
200
- }>;
201
- sessionsConsumingCap(agentName: string, counterpartyPubkey: string, limit?: number): string[];
202
- advanceLastDeliveredSeq(agentName: string, sessionId: string, seq: number): void;
203
- countActiveSessionsForCounterparty(agentName: string, counterpartyPubkey: string): number;
204
- getSessionRecord(agentName: string, sessionId: string): SessionRecord | null;
205
- hasDatabase(): boolean;
206
- readSealedAnnex(agentName: string, sessionId?: string): Array<{
207
- session_id: string;
208
- content_hash: string;
209
- sender_pubkey: string | null;
210
- text: string;
211
- arrived_at: number;
212
- }>;
213
- counterpartyAbandonedAt(agentName: string, sessionId: string): number | null;
214
- getSealedRootHex(agentName: string, sessionId: string): string | null;
215
- getLastDeliveredSeq(agentName: string, sessionId: string): number;
216
- markSessionsInterruptedByLocalShutdownForTest(): void;
217
- wasSessionRefused(agentName: string, sessionId: string): boolean;
218
- countReceivedMessages(agentName: string, sessionId: string): number;
219
- markInterruptedByCounterpartyForTest(agentName: string, sessionId: string): void;
220
- /**
221
- * M7-SESSION-004 (AC-005): persist the seal certificate's legibility object with the
222
- * sealed record. Stored as a JSON string (hex-encoded pubkeys) so it round-trips a
223
- * daemon restart and is returned intact on the cert-read surface. The caller normalises
224
- * the raw wire legibility (Uint8Array pubkeys) into a JSON-safe shape before storing.
225
- * Best-effort: a session row may not yet exist (the seal arrived before the row was
226
- * persisted); in that case we no-op rather than throw — the cert still flows through the
227
- * live return path. The legibility content is identical regardless of delivery timing.
228
- *
229
- * ⚠️ THIS BLOCK WAS STRANDED WHEN THE METHOD BECAME A DELEGATOR. It stayed behind and ended up
230
- * stacked on top of `markSealed`'s own doc block, so that method showed two descriptions and the
231
- * first one described a different method entirely — and the seal split then carried it into
232
- * `session-seal.ts`, where `recordSealCertificate` does not appear at all. Returned to the call
233
- * it describes. The row-writing itself lives in `session-queries.ts`.
234
- */
235
- recordSealCertificate(agentName: string, sessionId: string, sealedRootHex: string, legibilityJson: string): void;
236
- recordCounterpartyPrimary(agentName: string, sessionId: string, primaryPubkeyHex: string): void;
237
- /**
238
- * ─── DELEGATORS — the salt API other files call, unchanged by the split ─────────────────────
239
- *
240
- * `daemon.ts` and `session-content-handlers.ts` still say `manager.contentHashForSession(...)`.
241
- * Keeping the surface identical is what lets the suite stand as evidence that this was a
242
- * restructure and not a rewrite.
243
- */
244
- setSaltContributionForTest(agentName: string, sessionId: string, contribution: Uint8Array): void;
245
- forgetSaltContributionForTest(agentName: string, sessionId: string): void;
246
- contentHashForSession(agentName: string, sessionId: string, content: Uint8Array): Promise<{
247
- hash: Uint8Array;
248
- alg: ContentHashAlg;
249
- }>;
250
- abandonUnsaltedHash(agentName: string, sessionId: string): void;
251
- isContentSaltActive(agentName: string, sessionId: string): boolean;
252
- expectSaltAgreement(agentName: string, sessionId: string): void;
253
- saltForHashingForTest(agentName: string, sessionId: string): Promise<{
254
- salt: Uint8Array | null;
255
- reason?: string;
256
- }>;
257
- /**
258
- * ─── DELEGATORS — the mailbox API other files call, unchanged by the split ───────────────────
259
- *
260
- * `content-park.ts` and `daemon.ts` still say `manager.recoverParkedEntry(...)` and
261
- * `manager.setContentParkHook(...)`. Keeping the surface identical is what lets the full suite
262
- * stand as evidence that this was a move: a caller that had to change would mean the contract
263
- * moved with it.
264
- */
265
- injectParkFault(count: number, cause?: string): number;
266
- getParkFaultRemaining(): number;
267
- setContentParkHook(fn: (args: {
268
- agentName: string;
269
- sessionId: string;
270
- recipientPubkeyHex: string;
271
- relayPeerId: string;
272
- relayAddrs: readonly string[];
273
- contentHashHex: string;
274
- content: Uint8Array;
275
- structure1Cbor?: Uint8Array;
276
- structure2Cbor?: Uint8Array;
277
- structure1Signature?: Uint8Array;
278
- leafKind?: number;
279
- contentHashAlg: string | undefined;
280
- }) => Promise<{
281
- ok: true;
282
- } | {
283
- ok: false;
284
- reason: string;
285
- cause?: string;
286
- retryAfterMs?: number;
287
- }>): void;
288
- setParkedDrainHook(fn: (agentName: string, reason: ParkedDrainReason) => void): void;
289
- recoverOwnSealCtrlLeafForTest(agentName: string, sessionId: string): {
290
- reportedRootHex: string;
291
- sequenceNumber: number;
292
- } | "none" | "unknown";
293
- recoverParkedEntry(agentName: string, sessionId: string, recipientPubkey: Uint8Array, unsealed: Uint8Array, contentHash: Uint8Array, correlationId?: string): ReturnType<ParkRecovery["recoverParkedEntry"]>;
294
- /**
295
- * ─── DELEGATORS — the class API is unchanged by the split, deliberately ──────────────────────
296
- *
297
- * Every method below moved into `session-records.ts` with its implementation and its comments.
298
- * These one-liners exist so that no CALLER had to change: `contact-handlers.ts`, the IPC surface
299
- * and the tests all still say `manager.getTier(...)`. That is what lets the full suite stand as
300
- * the evidence that this was a move and not a rewrite — a test that had to change would have
301
- * meant behaviour moved (Rule B).
302
- *
303
- * They are the price of the split and they are the cheap half: one line each, no logic, and the
304
- * prose that explains each rule lives beside the code that enforces it.
305
- */
306
- isContact(agentName: string, pubkey: string): boolean;
307
- getTier(agentName: string, pubkey: string): number;
308
- resolveTierBound(agentName: string, tier: number, field: "max_sessions" | "max_bytes"): number;
309
- addContact(agentName: string, pubkey: string, moniker?: string | null, provenance?: string | null, tier?: number): void;
310
- setContactMoniker(agentName: string, pubkey: string, moniker: string | null): boolean;
311
- setContactSignalPref(agentName: string, pubkey: string, signalHash: string, present: boolean | null): void;
312
- getContactSignalPrefs(agentName: string, pubkey: string): Map<string, boolean>;
313
- setContactAwayMessage(agentName: string, pubkey: string, message: string | null): boolean;
314
- setContactTier(agentName: string, pubkey: string, tier: number): boolean;
315
- recordOfferedMoniker(agentName: string, pubkey: string, offered: string): void;
316
- removeContact(agentName: string, pubkey: string): boolean;
317
- getContactMoniker(agentName: string, pubkey: string): string | null;
318
- listContacts(agentName: string): Array<{
319
- pubkey: string;
320
- added_at: number;
321
- moniker: string | null;
322
- tier: number | null;
323
- provenance: string | null;
324
- sealed_count: number;
325
- last_spoke: number | null;
326
- }>;
327
- clearRenameNotice(agentName: string, pubkey: string): void;
328
- clearPinnedCounterpartyPrimary(agentName: string, counterpartyPubkeyHex: string): number;
329
- getTelegramSettings(): {
330
- botToken: string;
331
- allowlistedChatId: string;
332
- } | null;
333
- setTelegramSettings(botToken: string, allowlistedChatId: string): void;
334
- getSetting(agentName: string, key: string): string | null;
335
- deleteSetting(agentName: string, key: string): boolean;
336
- setSetting(agentName: string, key: string, value: string): void;
337
- getAllSettings(agentName: string): Array<{
338
- key: string;
339
- value: string;
340
- }>;
341
- recordRelayWitnessUnreadable(agentName: string, relayPeerId: string, why: string): void;
342
- getWitnessUnreadable(agentName: string): ReadonlyArray<{
343
- relayPeerId: string;
344
- why: string;
345
- count: number;
346
- }>;
347
- recordTranscriptMessage(agentName: string, sessionId: string, sequence: number, direction: "sent" | "received" | "quarantined", plaintext: Uint8Array, correlationId?: string, authorship?: {
348
- senderPubkey: Uint8Array;
349
- senderSig: Uint8Array;
350
- }, quarantineReason?: string, senderPubkeyHexOverride?: string | null): boolean;
351
- readTranscript(agentName: string, sessionId: string): {
352
- messages: TranscriptEntry[];
353
- undecryptable: number;
354
- };
355
- getUnreadSummary(agentName: string): Array<{
356
- session_id: string;
357
- unread_count: number;
358
- last_seq: number;
359
- }>;
360
- getEndedUnread(agentName: string): Array<{
361
- session_id: string;
362
- unread_count: number;
363
- last_seq: number;
364
- status: string;
365
- }>;
366
- getUnreadReceivedCount(agentName: string, sessionId: string): number;
367
- markSessionDiverged(agentName: string, sessionId: string): void;
368
- /**
369
- * DOD-M15-CLOSEDSESSION-1 — has THIS side committed its half of the seal? The state a status row
370
- * cannot show; the reasoning is in `session-closed.ts`.
371
- *
372
- * ⚠️ THE MARK IS MEMORY-ONLY, so the durable evidence is the second half of the answer (review
373
- * F7). `#responderSealSubmitted` is cleared on teardown, so a daemon that stopped between the
374
- * ctrl-leaf submit and the ceremony's status write comes back with an `active` row and no mark —
375
- * and the original defect reproduces on the first send. Our own SEAL ctrl leaf is in
376
- * `session_seal_leaves`, which is what the seal path itself consults before submitting a second.
377
- *
378
- * `"unknown"` — the read FAILED — is deliberately not treated as closed. It is the answer a
379
- * broken database gives, and wedging every live session shut on it would be a far worse failure
380
- * than the window it would close.
381
- */
382
- hasCommittedSealLeaf(agentName: string, sessionId: string): boolean;
383
- /** DOD-M15-CLOSEDSESSION-1 test seam: commit this side's half with no relay, by marking the REAL map production reads. */
384
- markSealLeafCommittedForTest(agentName: string, sessionId: string): void;
385
- isSessionDiverged(agentName: string, sessionId: string): boolean;
386
- /** Arm the direct-send fault — makes the next N sends take the dial-failure path. */
387
- injectSendFault(count: number): number;
388
- /** DOD-M12B-ACK-1: arm the delivery-ACK write fault — the sibling of injectSendFault for the
389
- * path that fails on a LISTENING agent. Without it the ACK failure branch (which impairs the
390
- * session and, until this milestone, could never clear it again) is unreachable from a test:
391
- * a listener sends no content, so the direct-send fault never fires for it. */
392
- injectAckFault(count: number): number;
393
- /** DOD-M12B-REDIAL-1: arm the connection-loss fault — the next N direct sends find no open
394
- * connection, exactly as they do after any blip. See #connectionLossRemaining. */
395
- injectConnectionLoss(count: number): number;
396
- constructor(opts: {
397
- factory: ISessionNodeFactory;
398
- logger: Logger;
399
- dbPath: string;
400
- contentTtfMs?: number;
401
- /**
402
- * CELLO-M7-TRANSPORT-001: provider for the AutoNAT directory-node prober set
403
- * (SI-002). Defaults to () => [] (reconnecting — no probers), which makes
404
- * dialability the conservative default and fires transport.autonat.unavailable.
405
- */
406
- autoNatProbers?: () => string[];
407
- /**
408
- * M8B F14: backoff schedule for standing-receiver create retries. Attempt 1 runs
409
- * immediately; each entry is the delay before the next attempt. Default covers the
410
- * fixed-port race where a teardown and a re-arm interleave (EADDRINUSE clears once
411
- * the old node's port is released). Tests inject short delays or [] (no retries).
412
- */
413
- standingReceiverRetryDelaysMs?: number[];
414
- /**
415
- * DOD-NAT-REACHABILITY-1: how long a standing receiver may wait for its
416
- * circuit-relay reservations before coming up WITHOUT them. libp2p's circuit
417
- * listener has no timeout of its own — an unreachable relay would park start()
418
- * forever and leave the agent with no receiver at all. See #startReceiverNode.
419
- */
420
- standingReceiverReservationTimeoutMs?: number;
421
- /**
422
- * DOD-NAT-REACHABILITY-1: how often to check that a standing receiver still HOLDS
423
- * the reservation it came up with. A dead relay makes the /p2p-circuit address
424
- * vanish silently — the agent looks healthy and is unreachable to every NAT'd peer.
425
- */
426
- standingReceiverWatchdogIntervalMs?: number;
427
- /**
428
- * DOD-M12B-RESERVATION-RETRY-1: base delay before re-attempting a circuit reservation the relay
429
- * refused. Doubles per attempt. Default 5 minutes — deliberately NOT the watchdog's grid, because
430
- * a reservation is a scarce resource the relay holds for its full TTL and churning attempts is
431
- * how a fleet exhausts one.
432
- */
433
- standingReceiverReservationRetryMs?: number;
434
- /**
435
- * DOD-PARK-DRAIN-1: how often the parked-mailbox BACKSTOP drain runs for an agent with a
436
- * healthy standing receiver. Rides the reservation watchdog's grid, so the effective period is
437
- * this value rounded up to a watchdog interval. Default 5 minutes: the trigger-driven drains do
438
- * the real work, and this only exists so a future missed trigger degrades to "late", never to
439
- * "stranded until a human restarts the daemon".
440
- */
441
- parkedDrainBackstopMs?: number;
442
- /**
443
- * M9-CORE-001: the inbound security-screening seam. When absent, a
444
- * REQUIRED — there is no always-allow default (INV-9). A caller that does not screen must
445
- * say so by passing PassthroughGatewayClient from `@cello-protocol/gateway/testing`.
446
- */
447
- securityGateway: SecurityGatewayClient;
448
- });
449
- /**
450
- * CELLO-M7-MSG-001: wire the durable-backstop side effects of the awaiting-ACK
451
- * lifecycle. `onPersisted` clears the durable retry_queue entry when a persisted ACK
452
- * arrives; `onTtf` records/parks the un-acked content when the TTF timer fires.
453
- * Injected by the composition root (daemon.ts) after the RetryQueue exists.
454
- */
455
- setAwaitingAckHooks(hooks: {
456
- onPersisted?: (agentName: string, sessionId: string, contentHashHex: string) => void;
457
- onTtf?: (agentName: string, sessionId: string, contentHashHex: string, content: Uint8Array, structure1Cbor?: Uint8Array, structure2Cbor?: Uint8Array, contentHashAlg?: string, structure1Signature?: Uint8Array, leafKind?: number) => void;
458
- onParkFailed?: (agentName: string, sessionId: string, contentHashHex: string, content: Uint8Array, structure1Cbor?: Uint8Array, structure2Cbor?: Uint8Array, contentHashAlg?: string, structure1Signature?: Uint8Array, leafKind?: number) => boolean;
459
- }): void;
460
- /**
461
- * DOD-RETRYQ-STRAND-1: wire the disposition of durable state a session can no longer drain.
462
- * Fires once per transition INTO a status from which no resend can succeed. Injected by the
463
- * composition root (daemon.ts) after the RetryQueue exists.
464
- */
465
- setSessionTerminalHook(hook: (sessionId: string, terminalStatus: "sealed" | "abandoned") => void): void;
466
- initialize(): Promise<void>;
467
- /**
468
- * Get the underlying DatabaseSync handle.
469
- * Used by the composition root (daemon.ts) to pass to RetryQueue and
470
- * NonceDedupStore — they share the same SQLCipher DB file (DAEMON-003 AC-008).
471
- */
472
- /**
473
- * Get the underlying DaemonDatabase handle (the SQLCipher-backed adapter). Used by the
474
- * composition root (daemon.ts) to pass to RetryQueue and NonceDedupStore — they share the same
475
- * encrypted DB file.
476
- */
477
- getDb(): DaemonDatabase;
478
- /** DOD-TIER-4: the DISPLAY/relationship check — is this counterparty a genuine contact (KNOWN or
479
- * above)? Replaces the old binary `isContact` for behaviour that keyed on "we have a relationship"
480
- * (e.g. the away-response wording). An UNKNOWN-tier contact (a mere row) is NOT known. */
481
- isKnown(agentName: string, pubkey: string): boolean;
482
- /** DOD-TIER-4: the POLICY gate — may an inbound session from this counterparty be auto-accepted
483
- * when the operator is unattended (WHITELISTED or VIP)? The behavioural consumer is the offline
484
- * relay mailbox (LEAVEMSG-1), out of scope for this unit; defined here as the seam. Being merely
485
- * KNOWN is NOT enough to auto-accept — whitelisting is the deliberate `cello_contact_set_tier` act. */
486
- isAutoAccept(agentName: string, pubkey: string): boolean;
487
- /** DOD-AWAY-TIER-1: resolve the most-specific CUSTOM away text for a counterparty, most-specific
488
- * first: per-contact `away_message` → per-tier away setting → agent default away setting. Returns
489
- * null when none is configured, so the CALLER applies the system default (code) — making the full
490
- * four-level resolution TOTAL. A pure read; the resolved text is screened on the outbound path by
491
- * the caller like any content (SI — it does not bypass the gateway). */
492
- resolveAwayMessage(agentName: string, pubkey: string): string | null;
493
- /** M8C-ABUSE-1 + DOD-TIER-2/3: is a NEW inbound session from this counterparty within the
494
- * acceptance bounds? The per-sender cap is now the sender's TIER cap (DEFAULT_TIER_BOUNDS), not a
495
- * flat "3 for strangers, unbounded for contacts". This is where DOD-TIER-3 falls out for free: a
496
- * BLOCKED sender's cap is 0, so `perSender (>= 0) >= 0` refuses it through the SAME reason and the
497
- * SAME path an over-cap UNKNOWN takes — no separate blocked branch, no distinguishing oracle. The
498
- * global anti-swarm cap then applies ONLY to UNKNOWN-tier senders (KNOWN+ are trusted, not part of
499
- * the stranger pool; BLOCKED never reaches it). Checked BEFORE accepting a fresh inbound session
500
- * (counts reflect sessions already active, not yet counting this one). */
501
- checkUnknownSenderAcceptanceBound(agentName: string, counterpartyPubkey: string): {
502
- ok: true;
503
- } | {
504
- ok: false;
505
- reason: CapacityReason;
506
- };
507
- /**
508
- * M7-SESSION-001 (M-1 PUSH): register the session-state-change callback.
509
- * Called by the composition root (daemon.ts) after the NotificationDispatcher
510
- * exists. Setter injection avoids a construction-order/circular dependency.
511
- */
512
- setOnSessionStateChanged(cb: (agentName: string, sessionId: string, state: string, counterpartyPubkey: string | null) => void): void;
513
- /**
514
- * M8C-MSGWAKE-1: inject the content-arrival callback (daemon.ts → NotificationDispatcher.
515
- * dispatchCelloMessage). Setter injection, same construction-order reason as above.
516
- */
517
- setOnContentArrived(cb: (agentName: string, sessionId: string, senderPubkey: string) => void): void;
518
- /** M14 / DOD-DOC-INBOUND-2: inject the document-frame interception. See the field's note. */
519
- setOnDocumentFrame(cb: (agentName: string, sessionId: string, content: Uint8Array, senderPubkey: string, correlationId?: string) => {
520
- consumed: boolean;
521
- kind?: string;
522
- ok?: boolean;
523
- reason?: string;
524
- }, classifyOnly?: (content: Uint8Array) => boolean): void;
525
- /**
526
- * DOD-AGENT-ID-JOINKEY-1: the public form of the name→stable-id resolver, for components that own
527
- * agent-scoped tables of their own (RetryQueue) and must be handed the STABLE key, never a name.
528
- * The daemon resolves ONCE, at its own boundary, exactly as this class does internally. Throws on
529
- * an unresolvable name — see #requireAgentId for why null is not an option.
530
- */
531
- resolveAgentId(agentName: string): string;
532
- /**
533
- * DOD-M12B-ACK-1 — live `/cello/content/1.0.0` stream counts on a session's direct path, or null
534
- * when the session has no active node.
535
- *
536
- * Answerable at runtime on purpose, in the same spirit as getConnectionMonitorPolicy: the count
537
- * is what decides whether the next send survives, and until this existed it could only be
538
- * recovered by measuring a log after the fact. It is also what lets the regression assert that a
539
- * slot was RELEASED, rather than that some particular number of messages happened to fit.
540
- */
541
- countSessionContentStreams(agentName: string, sessionId: string): {
542
- inbound: number;
543
- outbound: number;
544
- } | null;
545
- gracefulShutdown(): Promise<void>;
546
- /**
547
- * DOD-M12B-REVIVAL-BOUND-1 — close every session the revival window has expired.
548
- *
549
- * `abandonSession` is the right instrument and already exists: it flips the status FIRST and
550
- * synchronously, annexes held content so the operator does not lose mail that has nowhere to go,
551
- * and retires the node. It notarizes nothing, which is the point — we are closing a door, not
552
- * asserting how it came to be open.
553
- *
554
- * One session's failure must not strand the rest, so each is caught and logged; the sweep runs at
555
- * boot beside the restart-seal resolver and a throw there would take the daemon with it.
556
- *
557
- * @returns how many sessions actually flipped — not how many were attempted.
558
- */
559
- closeExpiredUnrevivableSessions(nowMs: number, windowMs: number): Promise<number>;
560
- getSessionsForAgent(agentName: string): SessionRecord[];
561
- /**
562
- * Every persisted session across ALL agents, most-recently-updated first. Backs the daemon-wide
563
- * `cello sessions` CLI surface (which has no per-connection current agent, unlike the MCP
564
- * cello_list_sessions). Classification + filtering + the count limit are applied by the caller.
565
- */
566
- getAllSessions(): SessionRecord[];
567
- createSessionNode(...args: Parameters<SessionLifecycle["createSessionNode"]>): ReturnType<SessionLifecycle["createSessionNode"]>;
568
- acceptSession(...args: Parameters<SessionLifecycle["acceptSession"]>): ReturnType<SessionLifecycle["acceptSession"]>;
569
- destroySessionNode(...args: Parameters<SessionLifecycle["destroySessionNode"]>): ReturnType<SessionLifecycle["destroySessionNode"]>;
570
- retireSessionNode(...args: Parameters<SessionLifecycle["retireSessionNode"]>): ReturnType<SessionLifecycle["retireSessionNode"]>;
571
- markInterruptedWithDetails(...args: Parameters<SessionLifecycle["markInterruptedWithDetails"]>): ReturnType<SessionLifecycle["markInterruptedWithDetails"]>;
572
- connectToCounterparty(...args: Parameters<SessionLifecycle["connectToCounterparty"]>): ReturnType<SessionLifecycle["connectToCounterparty"]>;
573
- notifyCounterpartyAbandon(...args: Parameters<SessionLifecycle["notifyCounterpartyAbandon"]>): ReturnType<SessionLifecycle["notifyCounterpartyAbandon"]>;
574
- retireOnCounterpartyAbandon(...args: Parameters<SessionLifecycle["retireOnCounterpartyAbandon"]>): ReturnType<SessionLifecycle["retireOnCounterpartyAbandon"]>;
575
- reviveSessionNode(...args: Parameters<SessionLifecycle["reviveSessionNode"]>): ReturnType<SessionLifecycle["reviveSessionNode"]>;
576
- reviveIfNeededForSend(...args: Parameters<SessionLifecycle["reviveIfNeededForSend"]>): ReturnType<SessionLifecycle["reviveIfNeededForSend"]>;
577
- reviveIfNeededForRead(...args: Parameters<SessionLifecycle["reviveIfNeededForRead"]>): ReturnType<SessionLifecycle["reviveIfNeededForRead"]>;
578
- abandonSession(...args: Parameters<SessionLifecycle["abandonSession"]>): ReturnType<SessionLifecycle["abandonSession"]>;
579
- getSessionNodePeerId(...args: Parameters<SessionLifecycle["getSessionNodePeerId"]>): ReturnType<SessionLifecycle["getSessionNodePeerId"]>;
580
- /**
581
- * ⚠️ EVERY TRIVIAL DELEGATOR IN THIS FILE IS ONE LINE, and that is a ratchet decision rather than
582
- * a formatting preference. Thirty-seven of them were five lines each: a signature line, a
583
- * `Parameters<>` line, a `ReturnType<>` line, a forward and a brace. That is ~150 lines of the
584
- * budget spent on punctuation, in the file the `max-lines` pin exists to shrink — and it is
585
- * budget that cannot then be spent on the comments this file's prose is actually for.
586
- *
587
- * The signatures stay DERIVED, which is the property that matters: a change to the moved method
588
- * changes this one, so a copy can never drift from its original.
589
- */
590
- setDirectoryRelayEndpoints(...args: Parameters<SessionRelay["setDirectoryRelayEndpoints"]>): ReturnType<SessionRelay["setDirectoryRelayEndpoints"]>;
591
- registerRelayStream(...args: Parameters<SessionRelay["registerRelayStream"]>): ReturnType<SessionRelay["registerRelayStream"]>;
592
- isRelayCarvedOutInbound(...args: Parameters<SessionRelay["isRelayCarvedOutInbound"]>): ReturnType<SessionRelay["isRelayCarvedOutInbound"]>;
593
- isRelayQuarantined(...args: Parameters<SessionRelay["isRelayQuarantined"]>): ReturnType<SessionRelay["isRelayQuarantined"]>;
594
- quarantineRefusedInbound(...args: Parameters<SessionRelay["quarantineRefusedInbound"]>): ReturnType<SessionRelay["quarantineRefusedInbound"]>;
595
- quarantineFrameMeta(...args: Parameters<SessionRelay["quarantineFrameMeta"]>): ReturnType<SessionRelay["quarantineFrameMeta"]>;
596
- getRelayReceipts(...args: Parameters<SessionRelay["getRelayReceipts"]>): ReturnType<SessionRelay["getRelayReceipts"]>;
597
- patchRelayClientForTest(...args: Parameters<SessionRelay["patchRelayClientForTest"]>): ReturnType<SessionRelay["patchRelayClientForTest"]>;
598
- getSessionRelayForTest(...args: Parameters<SessionRelay["getSessionRelayForTest"]>): ReturnType<SessionRelay["getSessionRelayForTest"]>;
599
- submitSealLeaf(...args: Parameters<SessionSeal["submitSealLeaf"]>): ReturnType<SessionSeal["submitSealLeaf"]>;
600
- setCurrentAttendanceSource(fn: (agentName: string) => "attended" | "unattended" | "offline"): void;
601
- announceAttendance(agentName: string, attendance: "attended" | "unattended" | "offline"): void;
602
- /**
603
- * DOD-M15-AWAYSCOPE-1 — ask the relay what it knows about the counterparty of ONE session.
604
- *
605
- * ⚠️ NOT `getSessionLiveness`, which is a different question with a different answer. That one is
606
- * daemon-local: does THIS process hold a libp2p connection for the session, and it has a fourth
607
- * value (`impaired`) the wire type does not. This one asks the RELAY, which sees the counterparty's
608
- * standing connection even when this daemon has no direct link to them, and it is the only path
609
- * that can carry attendance — because attendance is the far daemon's own assertion, relayed.
610
- *
611
- * Returns null when there is nothing to ask: no session, or a session with no relay behind it.
612
- * That is distinct from an answer of 'unknown', which means the relay was asked and did not know.
613
- */
614
- queryRelayLiveness(agentName: string, sessionId: string): Promise<LivenessAnswer | null>;
615
- sealReadiness(...args: Parameters<SessionSeal["sealReadiness"]>): ReturnType<SessionSeal["sealReadiness"]>;
616
- sealReadinessView(...args: Parameters<SessionSeal["sealReadinessView"]>): ReturnType<SessionSeal["sealReadinessView"]>;
617
- verifyCertifiedRoot(...args: Parameters<SessionSeal["verifyCertifiedRoot"]>): ReturnType<SessionSeal["verifyCertifiedRoot"]>;
618
- getSealCarry(...args: Parameters<SessionSeal["getSealCarry"]>): ReturnType<SessionSeal["getSealCarry"]>;
619
- markSealed(...args: Parameters<SessionSeal["markSealed"]>): ReturnType<SessionSeal["markSealed"]>;
620
- recordSealCertificateEnsuringRow(...args: Parameters<SessionSeal["recordSealCertificateEnsuringRow"]>): ReturnType<SessionSeal["recordSealCertificateEnsuringRow"]>;
621
- persistSealInterruptedCommitment(...args: Parameters<SessionSeal["persistSealInterruptedCommitment"]>): ReturnType<SessionSeal["persistSealInterruptedCommitment"]>;
622
- getSealUpgradeReadiness(...args: Parameters<SessionSeal["getSealUpgradeReadiness"]>): ReturnType<SessionSeal["getSealUpgradeReadiness"]>;
623
- countersignedThroughSeqFromCarry(...args: Parameters<SessionSeal["countersignedThroughSeqFromCarry"]>): ReturnType<SessionSeal["countersignedThroughSeqFromCarry"]>;
624
- setEnsureSealBroker(...args: Parameters<SessionSeal["setEnsureSealBroker"]>): ReturnType<SessionSeal["setEnsureSealBroker"]>;
625
- ingestReceivedContent(...args: Parameters<SessionContentIngest["ingestReceivedContent"]>): ReturnType<SessionContentIngest["ingestReceivedContent"]>;
626
- /**
627
- * ⚠️ **THE CHOKE POINT, AND THE GATE BELONGS HERE RATHER THAN ON `cello_send` ALONE — review F2.**
628
- *
629
- * `DOD-M15-CLOSEDSESSION-1` put a closed-session refusal on the `cello_send` handler, which is
630
- * where the operator's sentence is shaped. Three other production callers place content leaves
631
- * without passing through it — the document delivery transport, and both away-reply sends in the
632
- * attendance wiring — and each reuses a session whose row says `active`, which is exactly the
633
- * row the seal ceremony leaves standing while it finishes. So a document push could still land a
634
- * leaf in a conversation this side had already sealed.
635
- *
636
- * This is the argument the inbound path already makes for its own shared gate: placing the check
637
- * above the dispatch makes it the DEFAULT, so a fourth caller added later is covered by
638
- * construction rather than by whoever adds it reading this comment.
639
- *
640
- * `durable: false` is the load-bearing field: it tells the caller nothing was witnessed and
641
- * nothing was queued, so no leaf may be committed for this.
642
- */
643
- sendContent(...args: Parameters<SessionContentSender["sendContent"]>): ReturnType<SessionContentSender["sendContent"]>;
644
- /** DOD-M15-SEALPRECOND-1 — see SessionContentSender.noteOwnLeafOrdered. */
645
- noteOwnLeafOrdered(...args: Parameters<SessionContentSender["noteOwnLeafOrdered"]>): ReturnType<SessionContentSender["noteOwnLeafOrdered"]>;
646
- placeOwnLeaf(...args: Parameters<SessionContentSender["placeOwnLeaf"]>): ReturnType<SessionContentSender["placeOwnLeaf"]>;
647
- recordWitnessedSequence(...args: Parameters<SessionContentIngest["recordWitnessedSequence"]>): ReturnType<SessionContentIngest["recordWitnessedSequence"]>;
648
- getUndeliverableSeqs(...args: Parameters<SessionContentIngest["getUndeliverableSeqs"]>): ReturnType<SessionContentIngest["getUndeliverableSeqs"]>;
649
- handleContentFrameForTest(...args: Parameters<SessionContentIngest["handleContentFrameForTest"]>): ReturnType<SessionContentIngest["handleContentFrameForTest"]>;
650
- /** Loaded from SQLite on first access so it survives a restart (AC-007). NEVER null: an unknown session yields an EMPTY tree. */
651
- getSessionTree(agentName: string, sessionId: string): SessionTree;
652
- /** Current daemon-owned tree root for a session, as hex. */
653
- getSessionTreeRootHex(agentName: string, sessionId: string): string;
654
- /**
655
- * Append a leaf (by its 32-byte leaf-hash hex) to the daemon-owned tree,
656
- * persist it, advance the root, and fire session.tree.appended.
657
- *
658
- * @returns the new leaf index and the recomputed root hex.
659
- */
660
- appendSessionLeaf(agentName: string, sessionId: string, kind: WritableSessionTreeLeafKind, leafHashHex: string, correlationId?: string): {
661
- leafIndex: number;
662
- newRootHex: string;
663
- };
664
- /** DOD-M12B-LEAF-TRIGGERS-FETCH-1 test seams. */
665
- setLeafFetchGraceMsForTest(ms: number): void;
666
- markContentPresentForTest(agentName: string, sessionId: string, contentHashHex: string): void;
667
- /**
668
- * DOD-CAP-SELF-HEAL-1 — the numbers behind a cap refusal, for the OPERATOR'S alarm only.
669
- *
670
- * Kept off `checkUnknownSenderAcceptanceBound`'s return on purpose. That refusal is byte-identical
671
- * across tiers by design (DOD-TIER-3) so a blocked party cannot tell blocking from throttling;
672
- * attaching the counts to it would put the oracle straight into the value the refusal path
673
- * carries. This is a separate, purely local read, and nothing it returns crosses the wire.
674
- */
675
- capDiagnostics(agentName: string, counterpartyPubkey: string): {
676
- tier: number;
677
- cap: number;
678
- counted: number;
679
- mustClear: number;
680
- blocked: boolean;
681
- };
682
- /**
683
- * THE IN-MEMORY ARRIVAL BUFFER WAS HERE, with `takeReceivedContent`, `pushReceivedContentForTest`
684
- * and `peekLatestReceivedContentHex`. All three are gone, and so is the buffer.
685
- *
686
- * It kept the plaintext of the last 32 messages of every live session in daemon memory for the
687
- * life of the process. `cello_receive` stopped draining it at DOD-COATTEND-1, when delivery moved
688
- * onto the durable transcript; the away responder's peek at its tail was the last reader, and
689
- * DOD-M15-AWAYSCOPE-1 deleted that with the branch that answered an accepted session. What
690
- * remained was every conversation this agent had, held in memory, for nobody.
691
- *
692
- * Tests that asked it "did this message reach the agent" now ask the transcript, which is what
693
- * production serves — see `__tests__/helpers/received-rows.ts` for why the answer is the same.
694
- */
695
- /**
696
- * F1-b: the terminal answer for a session that sealed while a blocking receive was (or could be)
697
- * waiting. Idempotent — a sealed session always answers "sealed" to a receive. Null while active.
698
- *
699
- * DOD-TERMINAL-WAKE-1: the in-memory marker is written only by `destroySessionNode`, so it does
700
- * NOT survive a restart — while the `sealed` row on disk does. Reading the absent marker as "not
701
- * terminal" is what let a sealed session's unread message come back as live work hours later, and
702
- * an agent obey a `[[STANDBY]]` directive out of a conversation that had already ended. Absent is
703
- * not fine: fall through to the durable record, which is the authority the marker only caches.
704
- */
705
- peekTerminalMarker(agentName: string, sessionId: string): {
706
- type: "sealed";
707
- unreadCount: number;
708
- } | null;
709
- /**
710
- * DOD-MSG-4 (self-ordering content frame): verify the relay's signed ordering record carried IN the
711
- * content frame and record the canonical sequence for the strict-in-order gate — so ordering does
712
- * not depend on the separate leaf_deliver witness arriving first. Best-effort: any failure (malformed,
713
- * hash mismatch, bad signature, wrong signer) is logged and ignored — the content still ingests and
714
- * orders via the witness stream / arrival, so a bad record cannot block delivery.
715
- *
716
- * structure1_cbor = [1, content_hash(32), sender_pubkey(32), session_id(16), last_seen_seq, ts] —
717
- * the EXACT bytes the sender signed (needed to verify; Structure2 omits session_id/last_seen/ts).
718
- * structure2_cbor = [seq, sender_pubkey, content_hash, sender_signature, scan_result, prev_root].
719
- */
720
- /**
721
- * DOD-MSG-4 (2b) / SEC-1: decode a park envelope. Legacy/unsigned shapes still DECODE so that
722
- * `recoverParkedEntry` can refuse them BY NAME (`unsigned_envelope`) — decoding is not accepting.
723
- * Encoding lives in park-envelope.ts and REQUIRES a sender signature (see SEC-1); it is not
724
- * exposed here, so no caller can seal an unsigned envelope through this class.
725
- */
726
- decodeParkEnvelope(plaintext: Uint8Array): ParkEnvelope;
727
- /**
728
- * DOD-MSG-4 (2b): public entry for the recover path to verify + record a parked entry's ordering
729
- * record (the recover handler lives in daemon.ts, which has no access to the private method).
730
- */
731
- recordOrderingRecord(agentName: string, sessionId: string, structure1Cbor: Uint8Array, structure2Cbor: Uint8Array, contentHash: Uint8Array, correlationId?: string): number | null;
732
- /**
733
- * Test seam: see every decoded inbound content frame, as it arrived.
734
- *
735
- * Review F4. The "bytes on the wire are ciphertext" claim needs the ACTUAL frame; asserting on a
736
- * freshly sealed stand-in tests the crypto primitive and stays green when the send path is
737
- * reverted to putting plaintext on the wire. There is no other way to reach the decoded frame from
738
- * outside — the handler consumes it and hands ingest the plaintext.
739
- *
740
- * Read-only by construction: the callback receives the frame and cannot influence routing.
741
- */
742
- observeInboundContentFramesForTest(cb: (frame: Record<string, unknown>) => void): void;
743
- /** Injected by the daemon once its per-agent key providers exist. See `#keyProviderResolver`. */
744
- setKeyProviderResolver(resolver: (agentName: string) => KeyProvider | undefined): void;
745
- /**
746
- * Test seam: run the auto-acknowledge gate, exactly as the counterparty's SEAL ctrl leaf does.
747
- *
748
- * `DOD-M15-SEALWIRE-1` part B1, review F-B. The gate has ONE production call site — inside the
749
- * relay leaf handler, behind `leaf_kind === CTRL && !authored_by_us` — so reaching it from a test
750
- * needs a live relay client delivering a real ctrl leaf. The consequence was measured: my
751
- * "tampered never downgrades" test wrapped its decisive assertion in
752
- * `if (skipped.length > 0)`, which was ALWAYS FALSE, so the whole `content_tamper` vs
753
- * `content_verification_unavailable` branch had no coverage anywhere in the repo and two mutants
754
- * on it survived the full gate.
755
- *
756
- * It calls the REAL method (public on `SessionSeal` since the split, private before it) rather than reproducing its logic, so a test cannot pass
757
- * against a decision production does not make.
758
- */
759
- runAutoAcknowledgeGateForTest(agentName: string, sessionId: string, correlationId?: string): void;
760
- /**
761
- * Test seam: deliver an inbound salt frame, exactly as the content-stream decoder does.
762
- *
763
- * 006-CRYPTO finding 2. WHICH of the four reasons the peer gave decides what the operator is told,
764
- * and reaching that decision from a test otherwise needs a second live daemon that has closed
765
- * adoption for a specific reason — which is not something a counterparty can be asked to do on
766
- * demand. The four labels are the whole point of the finding, so they need to be reachable.
767
- *
768
- * It calls the REAL private handler rather than reproducing its routing, so a test cannot pass
769
- * against a decision production does not make. It takes the DECODED frame, so it deliberately
770
- * does NOT stand in for the decoder above it — the length and vocabulary checks there have their
771
- * own tests driving `handleContentFrameForTest`.
772
- */
773
- handleSaltFrameForTest(agentName: string, sessionId: string, frame: SaltAgreementFrame, correlationId?: string): Promise<void>;
774
- /**
775
-
776
-
777
- /**
778
- /**
779
- * TEST SEAM — put a session into the state a real one is in between announcing and being answered.
780
- *
781
- * Reaching that state for real needs a live counterparty connection, which the daemon-level fixtures
782
- * do not have. It calls the same private registration the announce path calls, so it cannot drift.
783
- */
784
- markSaltAgreementPendingForTest(agentName: string, sessionId: string, boundMs?: number): void;
785
- getSessionContentSalt(agentName: string, sessionId: string): Uint8Array | null;
786
- /**
787
- * THE SALT, OR WHY THERE ISN'T ONE — `DOD-M15-INCLUSION-1`, fallback-finder finding 2.
788
- *
789
- * `getSessionContentSalt` above answers `null` for THREE different situations, and a caller that
790
- * turns that null into a sentence for an operator gets two of them wrong:
791
- *
792
- * `none` — no salt was ever agreed. The session really is unsalted.
793
- * `unreadable` — a salt row EXISTS and could not be used: the wrong width (corruption on this
794
- * operator's own disk), or the read threw.
795
- *
796
- * The distinction is not cosmetic. `unreadable` means the session's leaves WERE hashed under a
797
- * salt, so telling its operator *"this session's content hashes are UNSALTED … start a session
798
- * while you are both connected"* is an affirmatively false statement about a security property
799
- * their session has, and it points them at their counterparty over damage to their own database.
800
- * That is the same defect `#getSessionSalt`'s own F8 note was written to end, re-committed one
801
- * surface out.
802
- *
803
- * ⚠️ IT DELEGATES — there is no second read here. Calling `#getSessionSalt` first means the salt
804
- * this reports is the salt the hashing path uses, including its cache and its wrong-width refusal.
805
- * A parallel query would be free to disagree with it, which is the whole failure this returns a
806
- * reason to prevent.
807
- */
808
- getSessionContentSaltState(agentName: string, sessionId: string): {
809
- salt: Uint8Array;
810
- } | {
811
- salt: null;
812
- reason: "none" | "unreadable";
813
- };
814
- /**
815
- * DOD-M15-RELAYSLOTS-1: accept the directory's online token for an agent. Called on every
816
- * signaling connect and reconnect, which is what keeps it fresh.
817
- */
818
- setDirectoryOnlineToken(agentName: string, token: Uint8Array): void;
819
- setDirectoryOnlineTokenAbsent(agentName: string, reason: "not_registered_here" | "issue_failed" | undefined): void;
820
- /**
821
- * The current token, or `undefined` when the directory has not issued one — either no directory
822
- * connection yet, or this key has no agent profile there. Undefined is a real answer, not a
823
- * missing one: the relay refuses without a token, which is the intended outcome for a key the
824
- * directory does not recognise.
825
- */
826
- getDirectoryOnlineToken(agentName: string): Uint8Array | undefined;
827
- /** DOD-M12B-SESSION-SEED-1 test seams: the counterparty addresses a re-dial depends on. Not
828
- * otherwise observable — they are set from a signed relay assignment that a fixture cannot mint. */
829
- setCounterpartyAddrsForTest(agentName: string, sessionId: string, addrs: string[]): void;
830
- getCounterpartyAddrsForTest(agentName: string, sessionId: string): string[];
831
- /** DOD-M12B-SESSION-SEED-1 test seam: drop a seed WITHOUT zeroing or a status change — what a
832
- * process restart does to it. The refusal that follows is the one an operator most needs named. */
833
- forgetSessionSeedForTest(agentName: string, sessionId: string): void;
834
- /**
835
- * DOD-M12B-SESSION-SEED-1 — drain the direct-resend queue when a session comes back.
836
- *
837
- * `retryQueue.drainSession` had NO production caller. The send path enqueues into it on a failed
838
- * delivery and tells the operator the message will be "retried on reconnect", and nothing ever
839
- * reconnected it — the row sat there until the session went terminal and was reaped. Measured
840
- * live 2026-08-18: two of the operator's messages went in, and the response told them both were
841
- * lost and to send again, which is how a transcript gets duplicates.
842
- *
843
- * A revival IS the reconnect that sentence promised. This is the hook that makes it true.
844
- */
845
- setRetryDrainHook(fn: (agentName: string, sessionId: string) => void): void;
846
- /** DOD-M12B-SESSION-SEED-1 test seam: does this session still hold a revivable identity? */
847
- hasSessionSeedForTest(agentName: string, sessionId: string): boolean;
848
- getStandingReceiverSeedForTest(agentName: string): Uint8Array | undefined;
849
- ensureStandingReceiverForAgent(agentName: string): Promise<void>;
850
- removeStandingReceiverForAgent(agentName: string): Promise<void>;
851
- /** CC-5/F21: count of RECEIVED messages on a session — the "did the counterparty ever speak"
852
- * signal the dead-half-open reaper uses (message_count also counts our own auto-"Dispatched." ack,
853
- * so it is NOT a reliable half-open discriminator). Mirrors #getReceivedBytesTotal. */
854
- /**
855
- * DOD-M12B-REAP-HELD-1 — did the counterparty EVER establish? Counted from every place their
856
- * messages can be, not just the one.
857
- *
858
- * OBSERVED LIVE 2026-08-18: the half-open reaper abandoned session `d28db475…` — twenty leaves in
859
- * the chain and sixteen more frames verified and held, ten of them from the counterparty — while
860
- * the restart-seal resolver was actively trying to notarize it. The receipt was forfeited.
861
- *
862
- * `countReceivedMessages` asks the TRANSCRIPT, and **held content never reaches the transcript**;
863
- * it sits in `held_content` until it can join the chain. So the very condition that holds content
864
- * — an interrupted session — is the condition that makes the counterparty's messages invisible,
865
- * and a fully-established conversation reads identically to an offer nobody ever answered.
866
- *
867
- * `origin = 'received'` is load-bearing. Our OWN held frames prove nothing about them, and
868
- * counting those would make every session we ever spoke into un-reapable — which is exactly the
869
- * clutter the reaper exists to clear. D18 also depends on the zero case staying zero: reaping only
870
- * genuinely 0-received ghosts is what stops a stranger whose first handshakes died from being
871
- * locked out by the acceptance bound forever.
872
- */
873
- countEstablishedReceived(agentName: string, sessionId: string): number;
874
- }
875
- //# sourceMappingURL=session-node-manager.d.ts.map