dsh-web-search-enhanced 0.2.3 → 0.2.4

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/lib/index.js CHANGED
@@ -14550,9 +14550,9 @@ function settingsRow(options) {
14550
14550
  } catch (error) {
14551
14551
  ctx.logger.warn("%s: invalid initial " + capabilityLabel + " settings: %s", identity.rowId, error);
14552
14552
  }
14553
- ctx.on("internal/config", function(_raw, next) {
14553
+ ctx.on("internal/config", (fiber, next) => {
14554
14554
  const raw = next();
14555
- if (this === ctx.fiber) resolve(read(Config(raw)));
14555
+ if (fiber === ctx.fiber) resolve(read(Config(raw)));
14556
14556
  return raw;
14557
14557
  });
14558
14558
  ctx.inject(["settings"], (scope) => {
@@ -15212,11 +15212,9 @@ function oneLine(value, max) {
15212
15212
  const last = flat.charCodeAt(max - 2);
15213
15213
  return flat.slice(0, last >= 55296 && last <= 56319 ? max - 2 : max - 1) + "…";
15214
15214
  }
15215
- function nextModel(ctx, agent) {
15216
- const pending = ctx.get("sessionProjections")?.stateOf(agent.session, "modelSelection")?.pending;
15217
- if (pending !== void 0 && pending !== null) return complete(pending);
15218
- const request = agent.session.requestHeader();
15219
- return complete(request === void 0 ? agent.options : request.config);
15215
+ function nextModel(_ctx, agent) {
15216
+ const current = agent.model.current();
15217
+ return current === void 0 ? void 0 : complete(current);
15220
15218
  }
15221
15219
  function complete(value) {
15222
15220
  if (!value.provider || !value.model) return void 0;
@@ -15384,13 +15382,9 @@ function sessionOrigin(header) {
15384
15382
  parent,
15385
15383
  seeded
15386
15384
  };
15387
- return parent === void 0 ? {
15385
+ return {
15388
15386
  kind: "top-level",
15389
15387
  seeded
15390
- } : {
15391
- kind: "fork",
15392
- parent,
15393
- seeded
15394
15388
  };
15395
15389
  }
15396
15390
  function parentOf(origin) {
@@ -15398,10 +15392,12 @@ function parentOf(origin) {
15398
15392
  }
15399
15393
  //#endregion
15400
15394
  //#region ../core/src/host/provider-lists.ts
15401
- /** Live setup/created events do not make a new conversation a restored one. */
15395
+ /** Public lifecycle offsets distinguish a fresh ordinary fork from its persisted resume. */
15402
15396
  function isNewConversation(session) {
15403
15397
  const origin = sessionOrigin(session.header);
15404
- return parentOf(origin) === void 0 && !origin.seeded && session.firstLiveSeq === 0 && session.firstLifecycleSeq === 0;
15398
+ if (origin.kind === "subagent") return false;
15399
+ if (origin.seeded) return session.firstLifecycleSeq === session.inheritedEventCount;
15400
+ return session.firstLiveSeq === 0 && session.firstLifecycleSeq === 0;
15405
15401
  }
15406
15402
  /** Immutable conversation authorization, sharing the selection queue and storage lifetime. */
15407
15403
  var ProviderLists = class {
@@ -15534,7 +15530,7 @@ var Sessions = class {
15534
15530
  const origin = sessionOrigin(target.header);
15535
15531
  const parentSession = parentOf(origin);
15536
15532
  const seeded = parentSession !== void 0 && origin.seeded;
15537
- let inherited = stored !== void 0 && seeded && (stored.inherited ?? table.get(parentSession) !== void 0);
15533
+ let inherited = stored !== void 0 && (stored.inherited ?? (seeded && table.get(parentSession) !== void 0));
15538
15534
  if (stored === void 0 && seeded) {
15539
15535
  const parentAgent = this.ctx.get("agents")?.get(parentSession);
15540
15536
  if (parentAgent !== void 0 && persist) await this.current(liveSession(parentAgent));
@@ -17545,7 +17541,7 @@ const { withDeadline, readJson, requestJson, invalidResponse } = transport;
17545
17541
  const mcp = createMcpClient(transport, searchErrors, {
17546
17542
  clientInfo: {
17547
17543
  name: SEARCH.packageName,
17548
- version: "0.2.3"
17544
+ version: "0.2.4"
17549
17545
  },
17550
17546
  messages: {
17551
17547
  toolFailed: (label, detail) => label + " could not complete the search; retry later or choose another search connection" + upstreamSuffix(label, detail),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-web-search-enhanced",
3
- "version": "0.2.3",
3
+ "version": "0.2.4",
4
4
  "description": "web_search provider for DeepSeek Harness with switchable search backends; installed through dsh-tool-web-enhanced-profile",
5
5
  "keywords": [
6
6
  "deepseek-harness",
@@ -39,38 +39,38 @@
39
39
  "access": "public"
40
40
  },
41
41
  "engines": {
42
- "node": "^22.19.0 || >=24.0.0",
43
- "dsh": ">=0.2.1-rc.2 <0.3.0-0"
42
+ "node": ">=24.9.0",
43
+ "dsh": ">=0.2.2-rc.1 <0.3.0-0"
44
44
  },
45
45
  "peerDependencies": {
46
- "@deepseek-ai/cordis": "~4.0.5",
47
- "@deepseek-ai/dsh-agent": ">=0.2.1-rc.2 <0.3.0-0",
48
- "@deepseek-ai/dsh-api-remotes": ">=0.2.1-rc.2 <0.3.0-0",
49
- "@deepseek-ai/dsh-api-session-controller": ">=0.2.1-rc.2 <0.3.0-0",
50
- "@deepseek-ai/dsh-client-locale": ">=0.2.1-rc.2 <0.3.0-0",
51
- "@deepseek-ai/dsh-client-store": ">=0.2.1-rc.2 <0.3.0-0",
52
- "@deepseek-ai/dsh-client-ui-commands": ">=0.2.1-rc.2 <0.3.0-0",
53
- "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.1-rc.2 <0.3.0-0",
54
- "@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.2.1-rc.2 <0.3.0-0",
55
- "@deepseek-ai/dsh-client-ui-primitives": ">=0.2.1-rc.2 <0.3.0-0",
56
- "@deepseek-ai/dsh-client-ui-renderer": ">=0.2.1-rc.2 <0.3.0-0",
57
- "@deepseek-ai/dsh-client-ui-session": ">=0.2.1-rc.2 <0.3.0-0",
58
- "@deepseek-ai/dsh-client-ui-settings": ">=0.2.1-rc.2 <0.3.0-0",
59
- "@deepseek-ai/dsh-client-ui-slots": ">=0.2.1-rc.2 <0.3.0-0",
60
- "@deepseek-ai/dsh-credentials": ">=0.2.1-rc.2 <0.3.0-0",
61
- "@deepseek-ai/dsh-deepseek-account": ">=0.2.1-rc.2 <0.3.0-0",
62
- "@deepseek-ai/dsh-launch-environment": ">=0.2.1-rc.2 <0.3.0-0",
63
- "@deepseek-ai/dsh-scope": ">=0.2.1-rc.2 <0.3.0-0",
64
- "@deepseek-ai/dsh-session": ">=0.2.1-rc.2 <0.3.0-0",
65
- "@deepseek-ai/dsh-settings": ">=0.2.1-rc.2 <0.3.0-0",
66
- "@deepseek-ai/dsh-storage-domain": ">=0.2.1-rc.2 <0.3.0-0",
67
- "@deepseek-ai/dsh-tool-web": ">=0.2.1-rc.2 <0.3.0-0",
68
- "@deepseek-ai/dsh-tools": ">=0.2.1-rc.2 <0.3.0-0",
69
- "@deepseek-ai/dsh-typert-protocol": ">=0.2.1-rc.2 <0.3.0-0",
70
- "@deepseek-ai/dsh-web": ">=0.2.1-rc.2 <0.3.0-0",
71
- "@deepseek-ai/dsh-web-deepseek-api": ">=0.2.1-rc.2 <0.3.0-0",
72
- "@deepseek-ai/dsh-web-search-deepseek": ">=0.2.1-rc.2 <0.3.0-0",
73
- "@deepseek-ai/schemastery": "^3.18.5",
46
+ "@deepseek-ai/cordis": "~4.1.0",
47
+ "@deepseek-ai/dsh-agent": ">=0.2.2-rc.1 <0.3.0-0",
48
+ "@deepseek-ai/dsh-api-remotes": ">=0.2.2-rc.1 <0.3.0-0",
49
+ "@deepseek-ai/dsh-api-session-controller": ">=0.2.2-rc.1 <0.3.0-0",
50
+ "@deepseek-ai/dsh-client-locale": ">=0.2.2-rc.1 <0.3.0-0",
51
+ "@deepseek-ai/dsh-client-store": ">=0.2.2-rc.1 <0.3.0-0",
52
+ "@deepseek-ai/dsh-client-ui-commands": ">=0.2.2-rc.1 <0.3.0-0",
53
+ "@deepseek-ai/dsh-client-ui-conversation": ">=0.2.2-rc.1 <0.3.0-0",
54
+ "@deepseek-ai/dsh-client-ui-plugin-manager": ">=0.2.2-rc.1 <0.3.0-0",
55
+ "@deepseek-ai/dsh-client-ui-primitives": ">=0.2.2-rc.1 <0.3.0-0",
56
+ "@deepseek-ai/dsh-client-ui-renderer": ">=0.2.2-rc.1 <0.3.0-0",
57
+ "@deepseek-ai/dsh-client-ui-session": ">=0.2.2-rc.1 <0.3.0-0",
58
+ "@deepseek-ai/dsh-client-ui-settings": ">=0.2.2-rc.1 <0.3.0-0",
59
+ "@deepseek-ai/dsh-client-ui-slots": ">=0.2.2-rc.1 <0.3.0-0",
60
+ "@deepseek-ai/dsh-credentials": ">=0.2.2-rc.1 <0.3.0-0",
61
+ "@deepseek-ai/dsh-deepseek-account": ">=0.2.2-rc.1 <0.3.0-0",
62
+ "@deepseek-ai/dsh-launch-environment": ">=0.2.2-rc.1 <0.3.0-0",
63
+ "@deepseek-ai/dsh-scope": ">=0.2.2-rc.1 <0.3.0-0",
64
+ "@deepseek-ai/dsh-session": ">=0.2.2-rc.1 <0.3.0-0",
65
+ "@deepseek-ai/dsh-settings": ">=0.2.2-rc.1 <0.3.0-0",
66
+ "@deepseek-ai/dsh-storage-domain": ">=0.2.2-rc.1 <0.3.0-0",
67
+ "@deepseek-ai/dsh-tool-web": ">=0.2.2-rc.1 <0.3.0-0",
68
+ "@deepseek-ai/dsh-tools": ">=0.2.2-rc.1 <0.3.0-0",
69
+ "@deepseek-ai/dsh-typert-protocol": ">=0.2.2-rc.1 <0.3.0-0",
70
+ "@deepseek-ai/dsh-web": ">=0.2.2-rc.1 <0.3.0-0",
71
+ "@deepseek-ai/dsh-web-deepseek-api": ">=0.2.2-rc.1 <0.3.0-0",
72
+ "@deepseek-ai/dsh-web-search-deepseek": ">=0.2.2-rc.1 <0.3.0-0",
73
+ "@deepseek-ai/schemastery": "^3.19.0",
74
74
  "react": "^18.2.0",
75
75
  "react-dom": "^18.2.0"
76
76
  },
@@ -119,35 +119,35 @@
119
119
  }
120
120
  },
121
121
  "devDependencies": {
122
- "@deepseek-ai/cordis": "4.0.5",
123
- "@deepseek-ai/cordis-plugin-loader": "1.0.6",
124
- "@deepseek-ai/dsh-agent": "0.2.1-rc.2",
125
- "@deepseek-ai/dsh-api-remotes": "0.2.1-rc.2",
126
- "@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.2",
127
- "@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
128
- "@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
129
- "@deepseek-ai/dsh-client-ui-commands": "0.2.1-rc.2",
130
- "@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
131
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-rc.2",
132
- "@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
133
- "@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
134
- "@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.2",
135
- "@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.2",
136
- "@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
137
- "@deepseek-ai/dsh-credentials": "0.2.1-rc.2",
138
- "@deepseek-ai/dsh-deepseek-account": "0.2.1-rc.2",
139
- "@deepseek-ai/dsh-launch-environment": "0.2.1-rc.2",
140
- "@deepseek-ai/dsh-scope": "0.2.1-rc.2",
141
- "@deepseek-ai/dsh-session": "0.2.1-rc.2",
142
- "@deepseek-ai/dsh-settings": "0.2.1-rc.2",
143
- "@deepseek-ai/dsh-storage-domain": "0.2.1-rc.2",
144
- "@deepseek-ai/dsh-tool-web": "0.2.1-rc.2",
145
- "@deepseek-ai/dsh-tools": "0.2.1-rc.2",
146
- "@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
147
- "@deepseek-ai/dsh-web": "0.2.1-rc.2",
148
- "@deepseek-ai/dsh-web-deepseek-api": "0.2.1-rc.2",
149
- "@deepseek-ai/dsh-web-search-deepseek": "0.2.1-rc.2",
150
- "@deepseek-ai/schemastery": "3.18.5",
122
+ "@deepseek-ai/cordis": "4.1.0",
123
+ "@deepseek-ai/cordis-plugin-loader": "1.1.0",
124
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
125
+ "@deepseek-ai/dsh-api-remotes": "0.2.2-rc.1",
126
+ "@deepseek-ai/dsh-api-session-controller": "0.2.2-rc.1",
127
+ "@deepseek-ai/dsh-client-locale": "0.2.2-rc.1",
128
+ "@deepseek-ai/dsh-client-store": "0.2.2-rc.1",
129
+ "@deepseek-ai/dsh-client-ui-commands": "0.2.2-rc.1",
130
+ "@deepseek-ai/dsh-client-ui-conversation": "0.2.2-rc.1",
131
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.2-rc.1",
132
+ "@deepseek-ai/dsh-client-ui-primitives": "0.2.2-rc.1",
133
+ "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-rc.1",
134
+ "@deepseek-ai/dsh-client-ui-session": "0.2.2-rc.1",
135
+ "@deepseek-ai/dsh-client-ui-settings": "0.2.2-rc.1",
136
+ "@deepseek-ai/dsh-client-ui-slots": "0.2.2-rc.1",
137
+ "@deepseek-ai/dsh-credentials": "0.2.2-rc.1",
138
+ "@deepseek-ai/dsh-deepseek-account": "0.2.2-rc.1",
139
+ "@deepseek-ai/dsh-launch-environment": "0.2.2-rc.1",
140
+ "@deepseek-ai/dsh-scope": "0.2.2-rc.1",
141
+ "@deepseek-ai/dsh-session": "0.2.2-rc.1",
142
+ "@deepseek-ai/dsh-settings": "0.2.2-rc.1",
143
+ "@deepseek-ai/dsh-storage-domain": "0.2.2-rc.1",
144
+ "@deepseek-ai/dsh-tool-web": "0.2.2-rc.1",
145
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
146
+ "@deepseek-ai/dsh-typert-protocol": "0.2.2-rc.1",
147
+ "@deepseek-ai/dsh-web": "0.2.2-rc.1",
148
+ "@deepseek-ai/dsh-web-deepseek-api": "0.2.2-rc.1",
149
+ "@deepseek-ai/dsh-web-search-deepseek": "0.2.2-rc.1",
150
+ "@deepseek-ai/schemastery": "3.19.0",
151
151
  "dsh-tool-web-enhanced-core": "0.0.0",
152
152
  "react": "18.3.1",
153
153
  "react-dom": "18.3.1",