dsh-interconnect 0.11.24 → 0.13.0
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/README.md +141 -24
- package/assets/dsh-interconnect.md +60 -24
- package/dsh.plugin.json +1 -1
- package/lib/index.js +27 -10
- package/lib/interconnect/index.js +27 -10
- package/lib/interconnect/index.js.map +3 -3
- package/lib/tool-interconnect/index.js +105 -24
- package/lib/tool-interconnect/index.js.map +3 -3
- package/lib/types/interconnect/index.d.ts +16 -6
- package/lib/types/interconnect/index.d.ts.map +1 -1
- package/lib/types/interconnect/types.d.ts +38 -9
- package/lib/types/interconnect/types.d.ts.map +1 -1
- package/lib/types/tool-interconnect/index.d.ts +1 -1
- package/lib/types/tool-interconnect/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
import { Context, Service } from '@deepseek-ai/cordis';
|
|
15
15
|
import type { ContextFormed } from '@deepseek-ai/dsh-llm';
|
|
16
16
|
import z from '@deepseek-ai/schemastery';
|
|
17
|
-
import { type Config, type EventNotification, type ListResult, type PingResult, type ReplyRequest, type SendResult, type SendRequest, type SenderIdentity } from './types.ts';
|
|
17
|
+
import { type Config, type EventNotification, type ListResult, type PeerStatus, type PingResult, type ReplyRequest, type SendResult, type SendRequest, type SenderIdentity } from './types.ts';
|
|
18
18
|
export type * from './types.ts';
|
|
19
19
|
/**
|
|
20
20
|
* Credential reference holding the shared auth token. Both halves of a link
|
|
@@ -126,7 +126,7 @@ export declare class InterconnectService extends Service {
|
|
|
126
126
|
* Returns the peer identity when reachable, or undefined when the link is
|
|
127
127
|
* not up or no answer arrives.
|
|
128
128
|
* @param instanceId - the peer's `instanceId` as configured under {@link Config.peers}.
|
|
129
|
-
* @returns the peer's identity, or undefined when
|
|
129
|
+
* @returns the peer's identity, or undefined when there is no usable answer.
|
|
130
130
|
*/
|
|
131
131
|
ping(instanceId: string): Promise<PingResult | undefined>;
|
|
132
132
|
/**
|
|
@@ -136,12 +136,22 @@ export declare class InterconnectService extends Service {
|
|
|
136
136
|
* @returns the peer's live session rows, or undefined on transport failure.
|
|
137
137
|
*/
|
|
138
138
|
list(instanceId: string): Promise<ListResult | undefined>;
|
|
139
|
+
/**
|
|
140
|
+
* The peers this instance configures, each with the current state of the link
|
|
141
|
+
* it dials, in configuration order. This is how a caller tells an id this
|
|
142
|
+
* instance cannot reach at all (`peer-not-configured`) from one whose link is
|
|
143
|
+
* merely down (`unreachable`), which the bare `undefined` of `ping`/`list`
|
|
144
|
+
* cannot express. A configured peer whose link is `down` is still a valid
|
|
145
|
+
* target: its reconnect runs on its own backoff, so it may answer later.
|
|
146
|
+
* @returns one row per configured peer.
|
|
147
|
+
*/
|
|
148
|
+
peers(): readonly PeerStatus[];
|
|
139
149
|
/**
|
|
140
150
|
* Send a `msg` frame over the live link to a peer and resolve with its
|
|
141
|
-
* correlated `msg-result`.
|
|
142
|
-
*
|
|
143
|
-
*
|
|
144
|
-
*
|
|
151
|
+
* correlated `msg-result`. A `peer-not-configured` result when this instance
|
|
152
|
+
* configures no route for that id, undefined when the route exists but its
|
|
153
|
+
* link is down, and a `message-too-large` result when the encoded frame would
|
|
154
|
+
* not fit the link.
|
|
145
155
|
*/
|
|
146
156
|
private msgRequest;
|
|
147
157
|
/** Send a `query` frame over the live link to a peer and resolve its result. */
|
|
@@ -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;AAUrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAQzD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAGxC,OAAO,EACL,KAAK,MAAM,EAEX,KAAK,iBAAiB,EAItB,KAAK,UAAU,EACf,KAAK,UAAU,EAEf,KAAK,YAA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EAA6E;IAC7E,OAAO,CAAC,UAAU;IAiBlB;;;;;;;;;;;;OAYG;YACW,IAAI;IAmClB;;;OAGG;YACW,OAAO;YAyFP,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;IAmGnB,mFAAmF;IACnF,OAAO,CAAC,SAAS;CAKlB;AAwLD;;;;;;;;;;;GAWG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,GAAG,CAQ3C;AAMD,eAAe,mBAAmB,CAAA"}
|
|
@@ -86,19 +86,27 @@ export interface SendPayload {
|
|
|
86
86
|
* - `message-too-large` — over a writable link, the encoded frame for this
|
|
87
87
|
* message exceeds the link's frame cap (1 MiB), so nothing was written and the
|
|
88
88
|
* peer link stayed up. Retrying the same text cannot succeed; it has to be
|
|
89
|
-
* shortened. A message
|
|
90
|
-
*
|
|
89
|
+
* shortened. A message that fails the earlier route checks reports
|
|
90
|
+
* `peer-not-configured` or `unreachable` instead, because those precede this
|
|
91
|
+
* one.
|
|
92
|
+
* - `peer-not-configured` — this instance configures no route for that
|
|
93
|
+
* `instanceId`, so no link to it exists and none can be dialed. Retrying can
|
|
94
|
+
* never succeed; the peer has to be added to {@link Config.peers}, which
|
|
95
|
+
* applies when the service is re-activated (the `dsh` launcher's HMR row does
|
|
96
|
+
* that on its own). {@link PeerStatus} rows show which ids this instance does
|
|
97
|
+
* configure.
|
|
91
98
|
* - `no-sender-known` — a `reply` was addressed to a local session that never
|
|
92
99
|
* recorded a sender, either because that session did not receive a message
|
|
93
100
|
* through this service or the incoming message carried no `sender` identity
|
|
94
101
|
* (an older peer omitted it). A caller with no executing session reports it
|
|
95
102
|
* too: there is no local session whose sender could be recalled.
|
|
96
103
|
*
|
|
97
|
-
* `message-too-large` and `no-sender-known` are produced
|
|
98
|
-
* the wire: `msgResultSchema` admits only the reasons a
|
|
99
|
-
* so a caller sees them only from this instance's own
|
|
104
|
+
* `message-too-large`, `peer-not-configured`, and `no-sender-known` are produced
|
|
105
|
+
* locally and never cross the wire: `msgResultSchema` admits only the reasons a
|
|
106
|
+
* receiver can answer with, so a caller sees them only from this instance's own
|
|
107
|
+
* service.
|
|
100
108
|
*/
|
|
101
|
-
export type SendFailure = 'session-not-live' | 'unreachable' | 'resume-refused' | 'resume-failed' | 'session-owned-by-subagent' | 'message-too-large' | 'no-sender-known';
|
|
109
|
+
export type SendFailure = 'session-not-live' | 'unreachable' | 'resume-refused' | 'resume-failed' | 'session-owned-by-subagent' | 'message-too-large' | 'peer-not-configured' | 'no-sender-known';
|
|
102
110
|
/**
|
|
103
111
|
* Business result of a `send` endpoint call: either the target session was
|
|
104
112
|
* reached, with the mode actually used, or it was not, with the reason. The
|
|
@@ -292,6 +300,23 @@ export type LinkMessage = {
|
|
|
292
300
|
readonly delivery?: DeliveryMode;
|
|
293
301
|
readonly resume?: boolean;
|
|
294
302
|
};
|
|
303
|
+
/** Whether a configured peer's dialed link currently carries frames. */
|
|
304
|
+
export type PeerLinkState = 'up' | 'down';
|
|
305
|
+
/**
|
|
306
|
+
* One configured peer route and its current link state. This is a local
|
|
307
|
+
* diagnostic shape: it never crosses the wire and exists so a caller can tell
|
|
308
|
+
* "this instance does not configure that peer" (`peer-not-configured`) apart
|
|
309
|
+
* from "the peer is configured but answered nothing" (`unreachable`), which a
|
|
310
|
+
* bare `undefined` from `ping`/`list` cannot express.
|
|
311
|
+
*/
|
|
312
|
+
export interface PeerStatus {
|
|
313
|
+
/** The peer's `instanceId` as configured under {@link Config.peers}: a valid target for send/ping/list. */
|
|
314
|
+
readonly instanceId: string;
|
|
315
|
+
/** The origin this instance dials for that peer, as configured. */
|
|
316
|
+
readonly origin: string;
|
|
317
|
+
/** Whether that dialed link is open right now; a closed one re-dials on its own backoff. */
|
|
318
|
+
readonly link: PeerLinkState;
|
|
319
|
+
}
|
|
295
320
|
/** Service config bound by the Composition loader. */
|
|
296
321
|
export interface Config {
|
|
297
322
|
/**
|
|
@@ -322,9 +347,13 @@ export interface Config {
|
|
|
322
347
|
* open dialed link for the id that socket announced. A peer listed under a
|
|
323
348
|
* key other than the id it announces is therefore not recognised as the same
|
|
324
349
|
* peer and receives each event twice; the service warns about that once per
|
|
325
|
-
* link. This map is the whole route surface: only the constructor reads it,
|
|
326
|
-
*
|
|
327
|
-
*
|
|
350
|
+
* link. This map is the whole route surface: only the constructor reads it, so
|
|
351
|
+
* a changed map takes effect when the service is re-activated. Under the
|
|
352
|
+
* `dsh` launcher that happens on its own — the profile HMR row reconciles this
|
|
353
|
+
* row's config and rebuilds its fiber, which re-links the map (measured live:
|
|
354
|
+
* adding a peer starts the dial, removing it stops the dial, and a changed
|
|
355
|
+
* `instanceId` is announced by the next link). Without that row, changing the
|
|
356
|
+
* map means restarting the instance.
|
|
328
357
|
*/
|
|
329
358
|
readonly peers?: Record<string, string>;
|
|
330
359
|
/**
|
|
@@ -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,CAAA;CAC3B;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,0DAA0D;IAC1D,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB;;;;OAIG;IACH,Q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,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,wEAAwE;AACxE,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,MAAM,CAAA;AAEzC;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB,2GAA2G;IAC3G,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,mEAAmE;IACnE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,4FAA4F;IAC5F,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAA;CAC7B;AAED,sDAAsD;AACtD,MAAM,WAAW,MAAM;IACrB;;;;;;;;;OASG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAA;IAC5B,+EAA+E;IAC/E,QAAQ,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAA;IAClC;;;;;;;;;;;;;;;;;;;;;;OAsBG;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"}
|
|
@@ -16,7 +16,7 @@ export declare const name = "tool-interconnect";
|
|
|
16
16
|
/** Services required before the tools can register. */
|
|
17
17
|
export declare const inject: string[];
|
|
18
18
|
/**
|
|
19
|
-
* Register the
|
|
19
|
+
* Register the five tool surfaces. Registration is idempotent per fiber; the
|
|
20
20
|
* tools unregister with the owning fiber.
|
|
21
21
|
* @param ctx - connection context carrying the interconnect service and the tool registry.
|
|
22
22
|
*/
|
|
@@ -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;
|
|
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;AAO7C,0BAA0B;AAC1B,eAAO,MAAM,IAAI,sBAAsB,CAAA;AAEvC,uDAAuD;AACvD,eAAO,MAAM,MAAM,UAA4B,CAAA;AAiE/C;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAyXxC"}
|
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.
|
|
4
|
+
"version": "0.13.0",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "lib/index.js",
|