dsh-interconnect 0.11.12 → 0.11.14
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/assets/dsh-interconnect.md +8 -3
- package/dsh.plugin.json +1 -1
- package/lib/index.js +67 -98
- package/lib/interconnect/index.js +67 -98
- package/lib/interconnect/index.js.map +2 -2
- package/lib/tool-interconnect/index.js +69 -100
- package/lib/tool-interconnect/index.js.map +2 -2
- package/lib/types/interconnect/index.d.ts +33 -21
- package/lib/types/interconnect/index.d.ts.map +1 -1
- package/lib/types/interconnect/types.d.ts +13 -18
- package/lib/types/interconnect/types.d.ts.map +1 -1
- package/lib/types/tool-interconnect/index.d.ts.map +1 -1
- package/package.json +5 -1
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
import { Context, Service } from '@deepseek-ai/cordis';
|
|
15
15
|
import z from '@deepseek-ai/schemastery';
|
|
16
|
-
import { type Config, type EventNotification, type ListResult, type PingResult, type ReplyRequest, type SendResult, type SendRequest, type SenderIdentity
|
|
16
|
+
import { type Config, type EventNotification, type ListResult, type PingResult, type ReplyRequest, type SendResult, type SendRequest, type SenderIdentity } from './types.ts';
|
|
17
17
|
export type * from './types.ts';
|
|
18
18
|
/**
|
|
19
19
|
* Credential reference holding the shared auth token. Both halves of a link
|
|
@@ -69,6 +69,8 @@ export declare class InterconnectService extends Service {
|
|
|
69
69
|
private heartbeatTimer;
|
|
70
70
|
/** Peer identity each live socket announced via its `hello` frame, if any. */
|
|
71
71
|
private readonly peerOf;
|
|
72
|
+
/** Configured peer an outbound dial owns a socket for; absent on inbound sockets. */
|
|
73
|
+
private readonly dialedPeerOf;
|
|
72
74
|
/** Sender each local session last received a send from, keyed by local session id. */
|
|
73
75
|
private readonly senders;
|
|
74
76
|
/** In-flight frames sent over a peer link, keyed by `reqId`, awaiting a correlated result. */
|
|
@@ -126,31 +128,33 @@ export declare class InterconnectService extends Service {
|
|
|
126
128
|
/** Settle a `reqId` frame against its `*-result`, timing out at `requestTimeoutMs`. */
|
|
127
129
|
private waitForResult;
|
|
128
130
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* @param origin - origin this instance dials to reach that peer.
|
|
133
|
-
* @returns disposer removing the peer route.
|
|
134
|
-
*/
|
|
135
|
-
subscribe(instanceId: string, origin: string): () => void;
|
|
136
|
-
/**
|
|
137
|
-
* Remove a peer route, closing its outbound link.
|
|
138
|
-
* @param instanceId - the peer route to remove.
|
|
139
|
-
*/
|
|
140
|
-
unsubscribe(instanceId: string): void;
|
|
141
|
-
/**
|
|
142
|
-
* Open (and, on drop, re-open) a persistent WebSocket link to a peer. Local
|
|
143
|
-
* events stream over the link in real time, and events the peer pushes are
|
|
144
|
-
* surfaced as `interconnect/event`. Repeating for the same instanceId
|
|
145
|
-
* re-routes the link to the new origin.
|
|
131
|
+
* Dial one configured peer route. Activation calls this once per
|
|
132
|
+
* `Config.peers` entry; the resulting state owns reconnection for the life of
|
|
133
|
+
* the service fiber.
|
|
146
134
|
* @param instanceId - the peer's `instanceId`.
|
|
147
135
|
* @param origin - receiver origin this instance dials, e.g. `http://127.0.0.1:13080`.
|
|
148
|
-
* @returns a handle closing the link and cancelling reconnection.
|
|
149
136
|
*/
|
|
150
|
-
link
|
|
137
|
+
private link;
|
|
151
138
|
/** Push one serialized lifecycle fact out to every linked peer over WS. */
|
|
152
139
|
private fanout;
|
|
153
|
-
/**
|
|
140
|
+
/**
|
|
141
|
+
* Push one fact over every live WebSocket link, dropping closed sockets.
|
|
142
|
+
*
|
|
143
|
+
* A bidirectional pair owns two sockets to the same peer (this instance's
|
|
144
|
+
* dialed link plus the peer's inbound one), so one event must leave over one
|
|
145
|
+
* of them. Which one is decided by local ownership, not by the peer: a dialed
|
|
146
|
+
* socket is a configured peer's link and always sends. An inbound socket is
|
|
147
|
+
* skipped only when a dialed link to the id that socket itself announced is
|
|
148
|
+
* open, so an announcement can suppress nothing but a duplicate the
|
|
149
|
+
* controlled link already carries — an impostor cannot drop an event for a
|
|
150
|
+
* peer, and without a dialed link every inbound socket receives it.
|
|
151
|
+
*
|
|
152
|
+
* That holds once a peer's announcement has been seen. Between this
|
|
153
|
+
* instance's dialed link opening and the peer's `hello` arriving on its
|
|
154
|
+
* inbound socket, the inbound socket is not yet attributable, so an event
|
|
155
|
+
* emitted in that window leaves over both sockets and reaches that peer
|
|
156
|
+
* twice. The duplicate is transient and never a dropped event.
|
|
157
|
+
*/
|
|
154
158
|
private broadcast;
|
|
155
159
|
/**
|
|
156
160
|
* Dispatch one inbound `msg` frame: deliver a `send`/`reply` and answer the
|
|
@@ -215,6 +219,14 @@ export declare class InterconnectService extends Service {
|
|
|
215
219
|
private refuseUpgrade;
|
|
216
220
|
/** Inbound WebSocket upgrade: authenticate the bearer header, then accept. */
|
|
217
221
|
private handleUpgrade;
|
|
222
|
+
/**
|
|
223
|
+
* Install frame + liveness handling on one outbound socket the dial owns for
|
|
224
|
+
* a configured peer, recording that local ownership before anything else can
|
|
225
|
+
* observe the socket.
|
|
226
|
+
* @param websocket - the dialed socket.
|
|
227
|
+
* @param peerInstanceId - the configured peer this instance dials.
|
|
228
|
+
*/
|
|
229
|
+
private attachDialedSocket;
|
|
218
230
|
/**
|
|
219
231
|
* Install frame + liveness handling on one socket and add it to the live
|
|
220
232
|
* pool. Used by both the server half (accepted upgrade) and the client half
|
|
@@ -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;
|
|
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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;;;;;;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"}
|
|
@@ -77,7 +77,9 @@ export interface SendPayload {
|
|
|
77
77
|
* - `resume-refused` — the sender asked to wake a persisted session and this
|
|
78
78
|
* receiver does not allow it. Retrying with `resume` set changes nothing.
|
|
79
79
|
* - `resume-failed` — waking was allowed and attempted but did not yield a live
|
|
80
|
-
* agent (no persisted session under that id, or
|
|
80
|
+
* agent (no persisted session under that id, or the wake itself failed). A
|
|
81
|
+
* session another owner holds is reported as `session-owned-by-subagent`
|
|
82
|
+
* instead.
|
|
81
83
|
* - `session-owned-by-subagent` — the session is reserved to subagent routing,
|
|
82
84
|
* so its parent agent owns delivery. Injecting here would race that parent;
|
|
83
85
|
* the sender must reach the child through its parent instead.
|
|
@@ -275,23 +277,14 @@ export type LinkMessage = {
|
|
|
275
277
|
readonly delivery?: DeliveryMode;
|
|
276
278
|
readonly resume?: boolean;
|
|
277
279
|
};
|
|
278
|
-
/**
|
|
279
|
-
* Handle to one established outbound WebSocket peer link. `close` tears the
|
|
280
|
-
* socket down and cancels reconnection; `peer` records the dialed receiver.
|
|
281
|
-
*/
|
|
282
|
-
export interface WebSocketLinkHandle {
|
|
283
|
-
/** The dialed peer origin. */
|
|
284
|
-
readonly peer: string;
|
|
285
|
-
/** Terminate the socket and stop reconnect attempts. */
|
|
286
|
-
close(): void;
|
|
287
|
-
}
|
|
288
280
|
/** Service config bound by the Composition loader. */
|
|
289
281
|
export interface Config {
|
|
290
282
|
/**
|
|
291
283
|
* Self-reported id of this instance, echoed in ping/send results for diagnostics.
|
|
292
|
-
* It must be unique across the mesh:
|
|
293
|
-
*
|
|
294
|
-
*
|
|
284
|
+
* It must be unique across the mesh: an inbound socket announcing an id that an
|
|
285
|
+
* open dialed link already covers is skipped, so two instances sharing one id
|
|
286
|
+
* receive events only over the link this instance dials; with no dialed link
|
|
287
|
+
* for that id both receive them and the sender's peer sees every event twice.
|
|
295
288
|
*/
|
|
296
289
|
readonly instanceId: string;
|
|
297
290
|
/** Request timeout for outbound deliveries, in milliseconds. */
|
|
@@ -305,10 +298,12 @@ export interface Config {
|
|
|
305
298
|
* instance's own link. An origin is the ONLY routing authority — `instanceId`
|
|
306
299
|
* is never used to derive an address.
|
|
307
300
|
*
|
|
308
|
-
* Fan-out of local lifecycle events goes to every live
|
|
309
|
-
* inbound peer that is not in this map
|
|
310
|
-
*
|
|
311
|
-
*
|
|
301
|
+
* Fan-out of local lifecycle events goes to every live peer, including an
|
|
302
|
+
* inbound peer that is not in this map; an event travels over the link this
|
|
303
|
+
* instance dials, and an inbound socket is skipped only when a dialed link to
|
|
304
|
+
* the id that socket announced is already open. This map is the whole route
|
|
305
|
+
* surface: only the constructor reads it, so a peer link is added, removed,
|
|
306
|
+
* or re-pointed by restarting with different values.
|
|
312
307
|
*/
|
|
313
308
|
readonly peers?: Record<string, string>;
|
|
314
309
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/interconnect/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH;;;;;;;;;;GAUG;AACH,MAAM,MAAM,YAAY,GAAG,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAA;AAE1D;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,yEAAyE;IACzE,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,SAAS,EAAE,MAAM,CAA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AC,QAAQ,CAAC,YAAY,EAAE,iBAAiB,CAAA;CAAE,CAAA;AAExE;;;;;GAKG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,qEAAqE;IACrE,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;IAChC,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAC1B,CAAA;AAED,sDAAsD;AACtD,MAAM,WAAW,MAAM;IACrB;;;;;;OAMG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,gEAAgE;IAChE,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAA;IACjC;;;;;;;;;;;;;;;OAeG;IACH,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACvC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,YAAY,CAAA;IAChC;;;;;OAKG;IACH,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;CAC/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool-interconnect/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAM7C,0BAA0B;AAC1B,eAAO,MAAM,IAAI,sBAAsB,CAAA;AAEvC,uDAAuD;AACvD,eAAO,MAAM,MAAM,UAA4B,CAAA;AA6C/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tool-interconnect/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAM7C,0BAA0B;AAC1B,eAAO,MAAM,IAAI,sBAAsB,CAAA;AAEvC,uDAAuD;AACvD,eAAO,MAAM,MAAM,UAA4B,CAAA;AA6C/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CA8RxC"}
|
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.14",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|
|
@@ -51,10 +51,12 @@
|
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"@deepseek-ai/cordis": "*",
|
|
53
53
|
"@deepseek-ai/dsh-agent": "*",
|
|
54
|
+
"@deepseek-ai/dsh-api-session-controller": "*",
|
|
54
55
|
"@deepseek-ai/dsh-credentials": "*",
|
|
55
56
|
"@deepseek-ai/dsh-llm": "*",
|
|
56
57
|
"@deepseek-ai/dsh-session": "*",
|
|
57
58
|
"@deepseek-ai/dsh-subagent": "*",
|
|
59
|
+
"@deepseek-ai/dsh-typert-protocol": "*",
|
|
58
60
|
"@deepseek-ai/dsh-host-webserver": "*",
|
|
59
61
|
"@deepseek-ai/dsh-tools": "*",
|
|
60
62
|
"@deepseek-ai/dsh-skill": "*",
|
|
@@ -67,10 +69,12 @@
|
|
|
67
69
|
"@deepseek-ai/cordis-plugin-loader": "link:../dsh/vendor/loader",
|
|
68
70
|
"@deepseek-ai/schemastery": "link:../dsh/vendor/schemastery",
|
|
69
71
|
"@deepseek-ai/dsh-agent": "link:../dsh/packages/core/agent",
|
|
72
|
+
"@deepseek-ai/dsh-api-session-controller": "^0.1.5-rc.2",
|
|
70
73
|
"@deepseek-ai/dsh-credentials": "link:../dsh/packages/credentials/credentials",
|
|
71
74
|
"@deepseek-ai/dsh-llm": "link:../dsh/packages/llm/llm",
|
|
72
75
|
"@deepseek-ai/dsh-session": "link:../dsh/packages/core/session",
|
|
73
76
|
"@deepseek-ai/dsh-subagent": "link:../dsh/packages/subagent/subagent",
|
|
77
|
+
"@deepseek-ai/dsh-typert-protocol": "^0.1.5-rc.2",
|
|
74
78
|
"@deepseek-ai/dsh-host-webserver": "link:../dsh/packages/host/webserver",
|
|
75
79
|
"@deepseek-ai/dsh-tools": "link:../dsh/packages/core/tools",
|
|
76
80
|
"@deepseek-ai/dsh-skill": "link:../dsh/packages/skill/skill",
|