@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 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, {