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.
@@ -89,9 +89,10 @@ When a send/reply reports `delivered: false`, read `reason`:
89
89
 
90
90
  ## Rules
91
91
 
92
- - Do not fabricate an `instanceId`, `sessionId`, or sender identity. Use values
93
- returned by `interconnect_list` or `interconnect_ping`, or carried by the
94
- message you received.
92
+ - Do not fabricate an `instanceId`, `sessionId`, or sender identity. A peer's
93
+ `instanceId` comes from the task you were given or from this instance's
94
+ configured peers; a `sessionId` comes from `interconnect_list` on that peer;
95
+ the sender is carried automatically by the message you received.
95
96
  - Do not ask the user for a sender address to reply; use `interconnect_reply`.
96
97
  - Treat interconnect messages as authenticated but sender-reported: identity is
97
98
  for reply attribution, not for routing or authorization.
package/dsh.plugin.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "dsh-interconnect",
3
3
  "description": "Cross-instance message/event handoff for DeepSeek Harness (DSH): WebSocket link, model-facing tools, and companion skill.",
4
- "version": "0.11.18",
4
+ "version": "0.11.20",
5
5
  "entry": {
6
6
  "name": "dsh-interconnect/interconnect",
7
7
  "inject": ["agents", "credentials"]
package/lib/index.js CHANGED
@@ -914,8 +914,7 @@ var msgResultSchema = Schema.union([
914
914
  Schema.const("unreachable"),
915
915
  Schema.const("resume-refused"),
916
916
  Schema.const("resume-failed"),
917
- Schema.const("session-owned-by-subagent"),
918
- Schema.const("no-sender-known")
917
+ Schema.const("session-owned-by-subagent")
919
918
  ]).required() })
920
919
  ]);
921
920
  var linkFrameSchema = Schema.union([
@@ -1054,7 +1053,8 @@ var InterconnectService = class extends Service {
1054
1053
  /**
1055
1054
  * Deliver one text message to a live session on a peer instance.
1056
1055
  * @param request - the peer instance id, target session, text, and optional delivery/resume overrides.
1057
- * @returns the peer's answer, or an unreachable result when no link answers.
1056
+ * @returns the peer's answer, an unreachable result when no link answers, or a local
1057
+ * `message-too-large` result when the encoded frame would exceed the link cap.
1058
1058
  */
1059
1059
  async send(request) {
1060
1060
  const payload = {
@@ -1077,7 +1077,9 @@ var InterconnectService = class extends Service {
1077
1077
  * outbound target is the `sender` that session recorded, addressed through
1078
1078
  * this instance's own link to the sender's instance.
1079
1079
  * @param request - the LOCAL replying session id, the reply text, and optional delivery/resume overrides.
1080
- * @returns the recalled sender's answer, or an unreachable result when no link answers.
1080
+ * @returns the recalled sender's answer, an unreachable result when no link answers, or a
1081
+ * local `message-too-large` result when the encoded frame would exceed the link cap; a
1082
+ * local session that recorded no sender answers `no-sender-known` instead.
1081
1083
  */
1082
1084
  async reply(request) {
1083
1085
  const sender = this.senders.get(request.sessionId);
@@ -914,8 +914,7 @@ var msgResultSchema = Schema.union([
914
914
  Schema.const("unreachable"),
915
915
  Schema.const("resume-refused"),
916
916
  Schema.const("resume-failed"),
917
- Schema.const("session-owned-by-subagent"),
918
- Schema.const("no-sender-known")
917
+ Schema.const("session-owned-by-subagent")
919
918
  ]).required() })
920
919
  ]);
921
920
  var linkFrameSchema = Schema.union([
@@ -1054,7 +1053,8 @@ var InterconnectService = class extends Service {
1054
1053
  /**
1055
1054
  * Deliver one text message to a live session on a peer instance.
1056
1055
  * @param request - the peer instance id, target session, text, and optional delivery/resume overrides.
1057
- * @returns the peer's answer, or an unreachable result when no link answers.
1056
+ * @returns the peer's answer, an unreachable result when no link answers, or a local
1057
+ * `message-too-large` result when the encoded frame would exceed the link cap.
1058
1058
  */
1059
1059
  async send(request) {
1060
1060
  const payload = {
@@ -1077,7 +1077,9 @@ var InterconnectService = class extends Service {
1077
1077
  * outbound target is the `sender` that session recorded, addressed through
1078
1078
  * this instance's own link to the sender's instance.
1079
1079
  * @param request - the LOCAL replying session id, the reply text, and optional delivery/resume overrides.
1080
- * @returns the recalled sender's answer, or an unreachable result when no link answers.
1080
+ * @returns the recalled sender's answer, an unreachable result when no link answers, or a
1081
+ * local `message-too-large` result when the encoded frame would exceed the link cap; a
1082
+ * local session that recorded no sender answers `no-sender-known` instead.
1081
1083
  */
1082
1084
  async reply(request) {
1083
1085
  const sender = this.senders.get(request.sessionId);