dsh-interconnect 0.11.16 → 0.11.17
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/dsh.plugin.json +1 -1
- package/lib/index.js +29 -31
- package/lib/interconnect/index.js +29 -31
- package/lib/interconnect/index.js.map +2 -2
- package/lib/tool-interconnect/index.js +29 -31
- package/lib/tool-interconnect/index.js.map +2 -2
- package/lib/types/interconnect/index.d.ts +10 -8
- package/lib/types/interconnect/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -61,7 +61,6 @@ export declare class InterconnectService extends Service {
|
|
|
61
61
|
private readonly requestTimeoutMs;
|
|
62
62
|
private readonly delivery;
|
|
63
63
|
private readonly allowResume;
|
|
64
|
-
private readonly subscriptions;
|
|
65
64
|
private readonly server;
|
|
66
65
|
private readonly sockets;
|
|
67
66
|
/** Outbound peer links keyed by the peer's `instanceId`. */
|
|
@@ -145,10 +144,12 @@ export declare class InterconnectService extends Service {
|
|
|
145
144
|
* dialed link plus the peer's inbound one), so one event must leave over one
|
|
146
145
|
* of them. Which one is decided by local ownership, not by the peer: a dialed
|
|
147
146
|
* socket is a configured peer's link and always sends. An inbound socket is
|
|
148
|
-
* skipped only when
|
|
149
|
-
*
|
|
150
|
-
*
|
|
151
|
-
*
|
|
147
|
+
* skipped only when an open dialed link covers the id that socket itself
|
|
148
|
+
* announced — either because `Config.peers` lists that peer under the id, or
|
|
149
|
+
* because the peer announced the id over that dialed link — so an
|
|
150
|
+
* announcement can suppress nothing but a duplicate the controlled link
|
|
151
|
+
* already carries. An impostor cannot drop an event for a peer, and without a
|
|
152
|
+
* dialed link every inbound socket receives it.
|
|
152
153
|
*
|
|
153
154
|
* That holds once a peer's announcement has been seen. Between this
|
|
154
155
|
* instance's dialed link opening and the peer's `hello` arriving on its
|
|
@@ -178,10 +179,11 @@ export declare class InterconnectService extends Service {
|
|
|
178
179
|
* Bytes one `list` answer may spend on its `sessions` rows: the frame cap
|
|
179
180
|
* minus the serialized envelope that answer will carry. The envelope holds
|
|
180
181
|
* the peer-supplied `reqId` and this instance's own id, so it is measured per
|
|
181
|
-
* answer instead of reserved with a fixed constant.
|
|
182
|
+
* answer instead of reserved with a fixed constant. Both ids are bounded
|
|
183
|
+
* ({@link MAX_REQUEST_ID_CHARS} and {@link MAX_INSTANCE_ID_CHARS} characters),
|
|
184
|
+
* so the envelope always fits and the budget is always positive.
|
|
182
185
|
* @param reqId - the request id the answer has to echo.
|
|
183
|
-
* @returns the byte budget for the rows
|
|
184
|
-
* exceeds the cap and so cannot be sent at all.
|
|
186
|
+
* @returns the byte budget for the rows.
|
|
185
187
|
*/
|
|
186
188
|
private listRowsBudgetBytes;
|
|
187
189
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interconnect/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,OAAO,EAAE,OAAO,EAAiB,MAAM,qBAAqB,CAAA;AAiBrE,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAGxC,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,iBAAiB,EAItB,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,YAAY,EAEjB,KAAK,UAAU,EACf,KAAK,WAAW,EAEhB,KAAK,cAAc,EAEpB,MAAM,YAAY,CAAA;AA+BnB,mBAAmB,YAAY,CAAA;AAE/B;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,2BAA2B,CAAA;AAE9D,OAAO,QAAQ,qBAAqB,CAAC;IACnC,UAAU,OAAO;QACf,YAAY,EAAE,mBAAmB,CAAA;KAClC;IACD,UAAU,MAAM;QACd;;;;;;;;WAQG;QACH,oBAAoB,CAAC,YAAY,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;KAC1E;CACF;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/interconnect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,YAAY;IAgCpB,6EAA6E;IAC7E,OAAO,CAAC,UAAU;IAiBlB;;;;;;;;;;;;OAYG;YACW,IAAI;IAmClB;;;OAGG;YACW,OAAO;YA2FP,YAAY;IAK1B;;;;;;;OAOG;IACH,OAAO,CAAC,aAAa;IAIrB,8EAA8E;YAChE,aAAa;IAoC3B;;;;;;OAMG;IACH,OAAO,CAAC,kBAAkB;IAK1B;;;;;;;OAOG;IACH,OAAO,CAAC,YAAY;IAuBpB,iGAAiG;IACjG,OAAO,CAAC,WAAW;IA4FnB,mFAAmF;IACnF,OAAO,CAAC,SAAS;CAKlB;AAwLD;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAQ3C;AAMD,eAAe,mBAAmB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-interconnect",
|
|
3
3
|
"description": "Cross-instance message/event handoff plugins for DeepSeek Harness (DSH): interconnect service + model-facing tools + companion skill",
|
|
4
|
-
"version": "0.11.
|
|
4
|
+
"version": "0.11.17",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|