@cello-protocol/daemon 0.0.190 → 0.0.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/daemon.js +5 -1
- package/dist/daemon.js.map +1 -1
- package/dist/notification-handlers.d.ts.map +1 -1
- package/dist/notification-handlers.js +48 -14
- package/dist/notification-handlers.js.map +1 -1
- package/dist/park-envelope.d.ts +58 -1
- package/dist/park-envelope.d.ts.map +1 -1
- package/dist/park-envelope.js +61 -1
- package/dist/park-envelope.js.map +1 -1
- package/dist/session-node-manager.d.ts +2 -0
- package/dist/session-node-manager.d.ts.map +1 -1
- package/dist/session-node-manager.js +188 -5
- package/dist/session-node-manager.js.map +1 -1
- package/dist/session-relay-client.d.ts +52 -2
- package/dist/session-relay-client.d.ts.map +1 -1
- package/dist/session-relay-client.js +149 -17
- package/dist/session-relay-client.js.map +1 -1
- package/package.json +5 -5
package/dist/daemon.js
CHANGED
|
@@ -2121,7 +2121,7 @@ async function startDaemonHoldingLock(config, singletonLock) {
|
|
|
2121
2121
|
timer.unref?.();
|
|
2122
2122
|
parkRetryTimers.add(timer);
|
|
2123
2123
|
}
|
|
2124
|
-
sessionNodeManager.setContentParkHook(async ({ agentName, sessionId, recipientPubkeyHex, relayPeerId, relayAddrs, contentHashHex, content, structure1Cbor, structure2Cbor, contentHashAlg }) => {
|
|
2124
|
+
sessionNodeManager.setContentParkHook(async ({ agentName, sessionId, recipientPubkeyHex, relayPeerId, relayAddrs, contentHashHex, content, structure1Cbor, structure2Cbor, structure1Signature, leafKind, contentHashAlg }) => {
|
|
2125
2125
|
const node = sessionNodeManager.getStandingReceiverNode();
|
|
2126
2126
|
if (!node) {
|
|
2127
2127
|
const reason = "standing_receiver_unavailable";
|
|
@@ -2179,6 +2179,10 @@ async function startDaemonHoldingLock(config, singletonLock) {
|
|
|
2179
2179
|
contentHashAlg,
|
|
2180
2180
|
structure1Cbor,
|
|
2181
2181
|
structure2Cbor,
|
|
2182
|
+
// 034-CARRYLEAF: promotes the envelope to v4 when present, which is what lets the recipient
|
|
2183
|
+
// witness this leaf if its author never does.
|
|
2184
|
+
structure1Signature,
|
|
2185
|
+
leafKind,
|
|
2182
2186
|
});
|
|
2183
2187
|
const client = new ContentParkClient({ relayPeerId, relayAddrs: [...relayAddrs], logger });
|
|
2184
2188
|
const res = await client.deposit(node, {
|