dsh-interconnect 0.11.18 → 0.11.20

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.
@@ -917,8 +917,7 @@ var msgResultSchema = Schema.union([
917
917
  Schema.const("unreachable"),
918
918
  Schema.const("resume-refused"),
919
919
  Schema.const("resume-failed"),
920
- Schema.const("session-owned-by-subagent"),
921
- Schema.const("no-sender-known")
920
+ Schema.const("session-owned-by-subagent")
922
921
  ]).required() })
923
922
  ]);
924
923
  var linkFrameSchema = Schema.union([
@@ -1057,7 +1056,8 @@ var InterconnectService = class extends Service {
1057
1056
  /**
1058
1057
  * Deliver one text message to a live session on a peer instance.
1059
1058
  * @param request - the peer instance id, target session, text, and optional delivery/resume overrides.
1060
- * @returns the peer's answer, or an unreachable result when no link answers.
1059
+ * @returns the peer's answer, an unreachable result when no link answers, or a local
1060
+ * `message-too-large` result when the encoded frame would exceed the link cap.
1061
1061
  */
1062
1062
  async send(request) {
1063
1063
  const payload = {
@@ -1080,7 +1080,9 @@ var InterconnectService = class extends Service {
1080
1080
  * outbound target is the `sender` that session recorded, addressed through
1081
1081
  * this instance's own link to the sender's instance.
1082
1082
  * @param request - the LOCAL replying session id, the reply text, and optional delivery/resume overrides.
1083
- * @returns the recalled sender's answer, or an unreachable result when no link answers.
1083
+ * @returns the recalled sender's answer, an unreachable result when no link answers, or a
1084
+ * local `message-too-large` result when the encoded frame would exceed the link cap; a
1085
+ * local session that recorded no sender answers `no-sender-known` instead.
1084
1086
  */
1085
1087
  async reply(request) {
1086
1088
  const sender = this.senders.get(request.sessionId);