@deepseek-ai/dsh-tool-fs-search 0.1.2-alpha.5 → 0.1.3-alpha.2

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
@@ -147,9 +147,10 @@ function resolveRgPath() {
147
147
  * `SEARCH_INVALID_PATTERN`, the rest → `SEARCH_FAILED` /
148
148
  * `SEARCH_RAW_OUTPUT_OVERFLOW`). Both launch-time failure domains are
149
149
  * classified: a synchronous throw at spawn CREATION (a NUL in argv, an abort
150
- * racing the pre-check, a rejected `@vscode/ripgrep` resolution) and a
151
- * rejection of `handle.done` (the seam's infrastructure failures) both become
152
- * `SEARCH_FAILED` with the original as `cause` — an abort already observed by
150
+ * racing the pre-check, a rejected `@vscode/ripgrep` resolution) reports that
151
+ * the command could not start, while a rejection of `handle.done` reports a
152
+ * provider failure without claiming whether execution began. Both become
153
+ * `SEARCH_FAILED` with the original as `cause`; an abort already observed by
153
154
  * creation time becomes `SEARCH_ABORTED` instead.
154
155
  *
155
156
  * @param ctx - the plugin context; execution uses its `subprocess` service.
@@ -189,7 +190,7 @@ async function runRipgrep(ctx, exec, toolName, argv, rawOutputMaxBytes, graceMs,
189
190
  try {
190
191
  outcome = await handle.done;
191
192
  } catch (error) {
192
- throw new SearchError(`${toolName} could not start its search command (ripgrep launch failed)`, "SEARCH_FAILED", { cause: error });
193
+ throw new SearchError(`${toolName} subprocess failed before reporting an outcome (ripgrep provider failure)`, "SEARCH_FAILED", { cause: error });
193
194
  }
194
195
  const stdout = handle.collected.stdout?.readFrom(0);
195
196
  const stderr = handle.collected.stderr?.readFrom(0);
@@ -295,6 +296,7 @@ async function trySaveFormattedResult(ctx, exec, suggestedName, content) {
295
296
  const save = {
296
297
  owner: { sessionId },
297
298
  source: {
299
+ kind: "tool",
298
300
  toolName: exec.name,
299
301
  callId: exec.callId,
300
302
  label: "result"
@@ -118,9 +118,10 @@ export declare function resolveRgPath(): Promise<string>;
118
118
  * `SEARCH_INVALID_PATTERN`, the rest → `SEARCH_FAILED` /
119
119
  * `SEARCH_RAW_OUTPUT_OVERFLOW`). Both launch-time failure domains are
120
120
  * classified: a synchronous throw at spawn CREATION (a NUL in argv, an abort
121
- * racing the pre-check, a rejected `@vscode/ripgrep` resolution) and a
122
- * rejection of `handle.done` (the seam's infrastructure failures) both become
123
- * `SEARCH_FAILED` with the original as `cause` — an abort already observed by
121
+ * racing the pre-check, a rejected `@vscode/ripgrep` resolution) reports that
122
+ * the command could not start, while a rejection of `handle.done` reports a
123
+ * provider failure without claiming whether execution began. Both become
124
+ * `SEARCH_FAILED` with the original as `cause`; an abort already observed by
124
125
  * creation time becomes `SEARCH_ABORTED` instead.
125
126
  *
126
127
  * @param ctx - the plugin context; execution uses its `subprocess` service.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-fs-search",
3
3
  "description": "Model-facing filesystem discovery tools (glob, grep) backed by the packaged ripgrep binary (@vscode/ripgrep)",
4
- "version": "0.1.2-alpha.5",
4
+ "version": "0.1.3-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -31,27 +31,27 @@
31
31
  "@deepseek-ai/schemastery": "^3.18.2"
32
32
  },
33
33
  "peerDependencies": {
34
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
35
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.5",
36
- "@deepseek-ai/dsh-spill": "^0.1.2-alpha.5",
37
- "@deepseek-ai/dsh-output-retention": "^0.1.2-alpha.5",
38
- "@deepseek-ai/dsh-subprocess": "^0.1.2-alpha.5",
39
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.5",
40
- "@deepseek-ai/dsh-timeout": "^0.1.2-alpha.5",
41
- "@deepseek-ai/cordis": "^4.0.2",
42
- "@deepseek-ai/dsh-tools": "^0.1.2-alpha.5"
34
+ "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
35
+ "@deepseek-ai/dsh-spill": "^0.1.3-alpha.2",
36
+ "@deepseek-ai/dsh-output-retention": "^0.1.3-alpha.2",
37
+ "@deepseek-ai/dsh-subprocess": "^0.1.3-alpha.2",
38
+ "@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
39
+ "@deepseek-ai/dsh-session": "^0.1.3-alpha.2",
40
+ "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
41
+ "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
42
+ "@deepseek-ai/cordis": "^4.0.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@deepseek-ai/dsh-agent": "^0.1.2-alpha.5",
46
- "@deepseek-ai/dsh-subprocess": "^0.1.2-alpha.5",
47
- "@deepseek-ai/dsh-llm": "^0.1.2-alpha.5",
48
- "@deepseek-ai/dsh-subprocess-local": "^0.1.2-alpha.5",
49
- "@deepseek-ai/dsh-output-retention": "^0.1.2-alpha.5",
50
- "@deepseek-ai/dsh-session": "^0.1.2-alpha.5",
51
- "@deepseek-ai/dsh-spill": "^0.1.2-alpha.5",
52
- "@deepseek-ai/dsh-system-prompt": "^0.1.2-alpha.5",
53
- "@deepseek-ai/dsh-timeout": "^0.1.2-alpha.5",
54
- "@deepseek-ai/dsh-tools": "^0.1.2-alpha.5",
55
- "@deepseek-ai/cordis": "^4.0.2"
45
+ "@deepseek-ai/dsh-agent": "^0.1.3-alpha.2",
46
+ "@deepseek-ai/dsh-subprocess": "^0.1.3-alpha.2",
47
+ "@deepseek-ai/dsh-subprocess-local": "^0.1.3-alpha.2",
48
+ "@deepseek-ai/dsh-output-retention": "^0.1.3-alpha.2",
49
+ "@deepseek-ai/dsh-llm": "^0.1.3-alpha.2",
50
+ "@deepseek-ai/dsh-spill": "^0.1.3-alpha.2",
51
+ "@deepseek-ai/dsh-system-prompt": "^0.1.3-alpha.2",
52
+ "@deepseek-ai/dsh-timeout": "^0.1.3-alpha.2",
53
+ "@deepseek-ai/dsh-tools": "^0.1.3-alpha.2",
54
+ "@deepseek-ai/cordis": "^4.0.2",
55
+ "@deepseek-ai/dsh-session": "^0.1.3-alpha.2"
56
56
  }
57
57
  }