dsh-interconnect 0.11.18 → 0.11.19

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.19",
5
5
  "entry": {
6
6
  "name": "dsh-interconnect/interconnect",
7
7
  "inject": ["agents", "credentials"]
package/lib/index.js CHANGED
@@ -1054,7 +1054,8 @@ var InterconnectService = class extends Service {
1054
1054
  /**
1055
1055
  * Deliver one text message to a live session on a peer instance.
1056
1056
  * @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.
1057
+ * @returns the peer's answer, an unreachable result when no link answers, or a local
1058
+ * `message-too-large` result when the encoded frame would exceed the link cap.
1058
1059
  */
1059
1060
  async send(request) {
1060
1061
  const payload = {
@@ -1077,7 +1078,9 @@ var InterconnectService = class extends Service {
1077
1078
  * outbound target is the `sender` that session recorded, addressed through
1078
1079
  * this instance's own link to the sender's instance.
1079
1080
  * @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.
1081
+ * @returns the recalled sender's answer, an unreachable result when no link answers, or a
1082
+ * local `message-too-large` result when the encoded frame would exceed the link cap; a
1083
+ * local session that recorded no sender answers `no-sender-known` instead.
1081
1084
  */
1082
1085
  async reply(request) {
1083
1086
  const sender = this.senders.get(request.sessionId);
@@ -1054,7 +1054,8 @@ var InterconnectService = class extends Service {
1054
1054
  /**
1055
1055
  * Deliver one text message to a live session on a peer instance.
1056
1056
  * @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.
1057
+ * @returns the peer's answer, an unreachable result when no link answers, or a local
1058
+ * `message-too-large` result when the encoded frame would exceed the link cap.
1058
1059
  */
1059
1060
  async send(request) {
1060
1061
  const payload = {
@@ -1077,7 +1078,9 @@ var InterconnectService = class extends Service {
1077
1078
  * outbound target is the `sender` that session recorded, addressed through
1078
1079
  * this instance's own link to the sender's instance.
1079
1080
  * @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.
1081
+ * @returns the recalled sender's answer, an unreachable result when no link answers, or a
1082
+ * local `message-too-large` result when the encoded frame would exceed the link cap; a
1083
+ * local session that recorded no sender answers `no-sender-known` instead.
1081
1084
  */
1082
1085
  async reply(request) {
1083
1086
  const sender = this.senders.get(request.sessionId);