dsh-interconnect 0.11.20 → 0.11.22
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 +6 -4
- package/lib/interconnect/index.js +6 -4
- package/lib/interconnect/index.js.map +2 -2
- package/lib/skill-interconnect/index.js +0 -7
- package/lib/skill-interconnect/index.js.map +2 -2
- package/lib/tool-interconnect/index.js +6 -4
- package/lib/tool-interconnect/index.js.map +2 -2
- package/lib/types/interconnect/index.d.ts.map +1 -1
- package/lib/types/interconnect/types.d.ts +4 -3
- package/lib/types/interconnect/types.d.ts.map +1 -1
- package/lib/types/skill-interconnect/index.d.ts.map +1 -1
- package/package.json +1 -1
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.
|
|
4
|
+
"version": "0.11.22",
|
|
5
5
|
"entry": {
|
|
6
6
|
"name": "dsh-interconnect/interconnect",
|
|
7
7
|
"inject": ["agents", "credentials"]
|
package/lib/index.js
CHANGED
|
@@ -833,6 +833,8 @@ function assertNever(value) {
|
|
|
833
833
|
var INTERCONNECT_TOKEN_REF = "DSH_INTERCONNECT_TOKEN";
|
|
834
834
|
var PLUGIN_SOURCE = "dsh-interconnect";
|
|
835
835
|
var MAX_LINK_FRAME_BYTES = 1024 * 1024;
|
|
836
|
+
var DEFAULT_INSTANCE_ID = "dsh";
|
|
837
|
+
var DEFAULT_REQUEST_TIMEOUT_MS = 1e4;
|
|
836
838
|
var LINK_HANDSHAKE_TIMEOUT_MS = 1e4;
|
|
837
839
|
var LINK_CHANNEL = "/interconnect/link";
|
|
838
840
|
var MAX_INSTANCE_ID_CHARS = 256;
|
|
@@ -928,8 +930,8 @@ var linkFrameSchema = Schema.union([
|
|
|
928
930
|
var InterconnectService = class extends Service {
|
|
929
931
|
static inject = ["agents", "credentials"];
|
|
930
932
|
static Config = Schema.object({
|
|
931
|
-
instanceId: Schema.string().max(MAX_INSTANCE_ID_CHARS).default(
|
|
932
|
-
requestTimeoutMs: Schema.natural().max(6e4).default(
|
|
933
|
+
instanceId: Schema.string().max(MAX_INSTANCE_ID_CHARS).default(DEFAULT_INSTANCE_ID),
|
|
934
|
+
requestTimeoutMs: Schema.natural().max(6e4).default(DEFAULT_REQUEST_TIMEOUT_MS),
|
|
933
935
|
peers: Schema.dict(Schema.string()).default({}),
|
|
934
936
|
delivery: Schema.union([Schema.const("followup"), Schema.const("steer"), Schema.const("inject")]).default("followup"),
|
|
935
937
|
allowResume: Schema.boolean().default(true)
|
|
@@ -958,8 +960,8 @@ var InterconnectService = class extends Service {
|
|
|
958
960
|
disposed = false;
|
|
959
961
|
constructor(ctx, config) {
|
|
960
962
|
super(ctx, "interconnect");
|
|
961
|
-
this.instanceId = config.instanceId;
|
|
962
|
-
this.requestTimeoutMs = config.requestTimeoutMs;
|
|
963
|
+
this.instanceId = config.instanceId ?? DEFAULT_INSTANCE_ID;
|
|
964
|
+
this.requestTimeoutMs = config.requestTimeoutMs ?? DEFAULT_REQUEST_TIMEOUT_MS;
|
|
963
965
|
this.delivery = config.delivery ?? "followup";
|
|
964
966
|
this.allowResume = config.allowResume ?? true;
|
|
965
967
|
for (const origin of Object.values(config.peers ?? {})) {
|
|
@@ -833,6 +833,8 @@ function assertNever(value) {
|
|
|
833
833
|
var INTERCONNECT_TOKEN_REF = "DSH_INTERCONNECT_TOKEN";
|
|
834
834
|
var PLUGIN_SOURCE = "dsh-interconnect";
|
|
835
835
|
var MAX_LINK_FRAME_BYTES = 1024 * 1024;
|
|
836
|
+
var DEFAULT_INSTANCE_ID = "dsh";
|
|
837
|
+
var DEFAULT_REQUEST_TIMEOUT_MS = 1e4;
|
|
836
838
|
var LINK_HANDSHAKE_TIMEOUT_MS = 1e4;
|
|
837
839
|
var LINK_CHANNEL = "/interconnect/link";
|
|
838
840
|
var MAX_INSTANCE_ID_CHARS = 256;
|
|
@@ -928,8 +930,8 @@ var linkFrameSchema = Schema.union([
|
|
|
928
930
|
var InterconnectService = class extends Service {
|
|
929
931
|
static inject = ["agents", "credentials"];
|
|
930
932
|
static Config = Schema.object({
|
|
931
|
-
instanceId: Schema.string().max(MAX_INSTANCE_ID_CHARS).default(
|
|
932
|
-
requestTimeoutMs: Schema.natural().max(6e4).default(
|
|
933
|
+
instanceId: Schema.string().max(MAX_INSTANCE_ID_CHARS).default(DEFAULT_INSTANCE_ID),
|
|
934
|
+
requestTimeoutMs: Schema.natural().max(6e4).default(DEFAULT_REQUEST_TIMEOUT_MS),
|
|
933
935
|
peers: Schema.dict(Schema.string()).default({}),
|
|
934
936
|
delivery: Schema.union([Schema.const("followup"), Schema.const("steer"), Schema.const("inject")]).default("followup"),
|
|
935
937
|
allowResume: Schema.boolean().default(true)
|
|
@@ -958,8 +960,8 @@ var InterconnectService = class extends Service {
|
|
|
958
960
|
disposed = false;
|
|
959
961
|
constructor(ctx, config) {
|
|
960
962
|
super(ctx, "interconnect");
|
|
961
|
-
this.instanceId = config.instanceId;
|
|
962
|
-
this.requestTimeoutMs = config.requestTimeoutMs;
|
|
963
|
+
this.instanceId = config.instanceId ?? DEFAULT_INSTANCE_ID;
|
|
964
|
+
this.requestTimeoutMs = config.requestTimeoutMs ?? DEFAULT_REQUEST_TIMEOUT_MS;
|
|
963
965
|
this.delivery = config.delivery ?? "followup";
|
|
964
966
|
this.allowResume = config.allowResume ?? true;
|
|
965
967
|
for (const origin of Object.values(config.peers ?? {})) {
|