dsh-interconnect 0.11.14 → 0.11.15
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 +42 -13
- package/lib/interconnect/index.js +42 -13
- package/lib/interconnect/index.js.map +2 -2
- package/lib/tool-interconnect/index.js +42 -13
- package/lib/tool-interconnect/index.js.map +2 -2
- package/lib/types/interconnect/index.d.ts +21 -3
- package/lib/types/interconnect/index.d.ts.map +1 -1
- package/package.json +6 -1
|
@@ -173,17 +173,35 @@ export declare class InterconnectService extends Service {
|
|
|
173
173
|
* aggregates their failures.
|
|
174
174
|
*/
|
|
175
175
|
private receiveEvent;
|
|
176
|
+
/**
|
|
177
|
+
* Bytes one `list` answer may spend on its `sessions` rows: the frame cap
|
|
178
|
+
* minus the serialized envelope that answer will carry. The envelope holds
|
|
179
|
+
* the peer-supplied `reqId` and this instance's own id, so it is measured per
|
|
180
|
+
* answer instead of reserved with a fixed constant.
|
|
181
|
+
* @param reqId - the request id the answer has to echo.
|
|
182
|
+
* @returns the byte budget for the rows, negative when even an empty answer
|
|
183
|
+
* exceeds the cap and so cannot be sent at all.
|
|
184
|
+
*/
|
|
185
|
+
private listRowsBudgetBytes;
|
|
176
186
|
/**
|
|
177
187
|
* Summarize the live local sessions so a sender can discover valid targets
|
|
178
188
|
* instead of having to know a session id already. Only live agents are listed
|
|
179
|
-
* because `send` can reach exactly those
|
|
180
|
-
* {@link MAX_LISTED_SESSIONS} rows
|
|
181
|
-
*
|
|
189
|
+
* because `send` can reach exactly those. The answer stops at
|
|
190
|
+
* {@link MAX_LISTED_SESSIONS} rows or at the row budget the answer's own
|
|
191
|
+
* envelope leaves, whichever comes first: that budget is what keeps the
|
|
192
|
+
* complete `query-result` frame inside the link's cap, because a title's
|
|
193
|
+
* length comes from the session-title projection's own bound rather than
|
|
194
|
+
* from anything this listing controls. A title that does not fit the
|
|
195
|
+
* remaining budget is dropped so its target stays listed; a row that does not
|
|
196
|
+
* fit even untitled ends the listing, which keeps the answer a prefix of the
|
|
197
|
+
* registration order instead of a set with gaps.
|
|
182
198
|
*
|
|
183
199
|
* Title and status are best-effort: the title projection is an optional
|
|
184
200
|
* service, and a receiver without it still returns the ids. A projection that
|
|
185
201
|
* throws degrades that one row rather than failing the whole listing, which
|
|
186
202
|
* matches how the Host's own session listing treats its projection column.
|
|
203
|
+
* @param rowBudgetBytes - bytes the `sessions` rows may occupy, envelope excluded.
|
|
204
|
+
* @returns the bounded listing.
|
|
187
205
|
*/
|
|
188
206
|
private listSessions;
|
|
189
207
|
/** One listing row for a live agent; the title projection is best-effort. */
|
|
@@ -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/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAY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AY;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.15",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -64,6 +64,11 @@
|
|
|
64
64
|
"@deepseek-ai/schemastery": "*",
|
|
65
65
|
"ws": "*"
|
|
66
66
|
},
|
|
67
|
+
"peerDependenciesMeta": {
|
|
68
|
+
"@deepseek-ai/dsh-host-webserver": {
|
|
69
|
+
"optional": true
|
|
70
|
+
}
|
|
71
|
+
},
|
|
67
72
|
"devDependencies": {
|
|
68
73
|
"@deepseek-ai/cordis": "link:../dsh/vendor/cordis",
|
|
69
74
|
"@deepseek-ai/cordis-plugin-loader": "link:../dsh/vendor/loader",
|