@wrongstack/tools 0.310.0 → 0.310.1
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/dist/builtin.d.ts +17 -14
- package/dist/builtin.js +21 -2
- package/dist/index.js +21 -2
- package/dist/pack.js +21 -2
- package/dist/tool-tier.js +21 -2
- package/package.json +5 -5
package/dist/builtin.d.ts
CHANGED
|
@@ -18,25 +18,28 @@ export declare const OPTIONAL_TOOLS: Tool[];
|
|
|
18
18
|
export declare const OFF_ONLY_TOOLS: Tool[];
|
|
19
19
|
/**
|
|
20
20
|
* Tier 1 (Token Saving) tool set — the absolute minimum for useful work.
|
|
21
|
-
*
|
|
22
|
-
* and utilities. Codebase index lifecycle tools stay
|
|
23
|
-
* so token saving does not force broad filesystem
|
|
24
|
-
* Saves ~3500-5500 tokens vs full mode by omitting specialized
|
|
25
|
-
* direct provider exposure; hosts may retain those tools in a
|
|
21
|
+
* 23 tools covering core file ops, indexed project discovery, structured
|
|
22
|
+
* edits, shell, search, and utilities. Codebase index lifecycle tools stay
|
|
23
|
+
* available at every tier so token saving does not force broad filesystem
|
|
24
|
+
* scans. Saves ~3500-5500 tokens vs full mode by omitting specialized
|
|
25
|
+
* schemas from direct provider exposure; hosts may retain those tools in a
|
|
26
|
+
* lazy catalog.
|
|
26
27
|
*
|
|
27
28
|
* Tier 1 tools:
|
|
28
|
-
* read, write, edit
|
|
29
|
-
* codebase-stats
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
29
|
+
* read, write, edit, clarify — file operations
|
|
30
|
+
* codebase-stats/search/index/skeleton/repo-map/impact/targeted-test/
|
|
31
|
+
* incoming-calls/outgoing-calls/ast-replace/invariant-check,
|
|
32
|
+
* security-ast-scan — indexed project discovery
|
|
33
|
+
* bash, grep, glob — shell + exact/path fallback
|
|
34
|
+
* diff, patch, json — utility
|
|
35
|
+
* search — web research
|
|
33
36
|
*/
|
|
34
37
|
export declare const TIER1_TOOLS: Tool[];
|
|
35
38
|
/**
|
|
36
39
|
* Tier 2 tool set — standard development tools useful for non-trivial work.
|
|
37
|
-
* Adds
|
|
38
|
-
* test, languageInfo, language, languagePackage, todo, plan,
|
|
39
|
-
* install, audit, design.
|
|
40
|
+
* Adds 20 tools: replace, exec, pwsh, fetch, git, tree, lint, format,
|
|
41
|
+
* typecheck, test, languageInfo, language, languagePackage, todo, plan,
|
|
42
|
+
* kanban, task, install, audit, design.
|
|
40
43
|
*
|
|
41
44
|
* These tools are used regularly during development but are not essential for
|
|
42
45
|
* every turn. Omitting them in minimal/light tier saves ~900 tokens per prompt.
|
|
@@ -44,7 +47,7 @@ export declare const TIER1_TOOLS: Tool[];
|
|
|
44
47
|
export declare const TIER2_TOOLS: Tool[];
|
|
45
48
|
/**
|
|
46
49
|
* Tier 3 tool set — specialized, administrative, and exploratory tools.
|
|
47
|
-
* Adds
|
|
50
|
+
* Adds 10 tools: outdated, logs, document, scaffold, dead-code-scan,
|
|
48
51
|
* tool-search, tool-use, batch-tool-use, tool-help, set-working-dir.
|
|
49
52
|
*
|
|
50
53
|
* These tools are situational (e.g. documentation generation, scaffolding,
|
package/dist/builtin.js
CHANGED
|
@@ -30679,7 +30679,17 @@ Working directory: ${targetCwd}`,
|
|
|
30679
30679
|
if (!attempted) {
|
|
30680
30680
|
try {
|
|
30681
30681
|
child.kill();
|
|
30682
|
-
} catch {
|
|
30682
|
+
} catch (err) {
|
|
30683
|
+
console.log(
|
|
30684
|
+
JSON.stringify({
|
|
30685
|
+
level: "warn",
|
|
30686
|
+
event: "pwsh.kill_fallback_failed",
|
|
30687
|
+
pid: child.pid,
|
|
30688
|
+
platform: process.platform,
|
|
30689
|
+
error: err instanceof Error ? err.message : String(err),
|
|
30690
|
+
message: "pwsh child.kill() raised after the registry kill failed; process may be leaked"
|
|
30691
|
+
})
|
|
30692
|
+
);
|
|
30683
30693
|
}
|
|
30684
30694
|
}
|
|
30685
30695
|
}
|
|
@@ -30690,7 +30700,16 @@ Working directory: ${targetCwd}`,
|
|
|
30690
30700
|
} else {
|
|
30691
30701
|
try {
|
|
30692
30702
|
child.kill("SIGTERM");
|
|
30693
|
-
} catch {
|
|
30703
|
+
} catch (err) {
|
|
30704
|
+
console.log(
|
|
30705
|
+
JSON.stringify({
|
|
30706
|
+
level: "warn",
|
|
30707
|
+
event: "pwsh.sigterm_failed",
|
|
30708
|
+
platform: process.platform,
|
|
30709
|
+
error: err instanceof Error ? err.message : String(err),
|
|
30710
|
+
message: 'pwsh child.kill("SIGTERM") raised on POSIX fallback; process may be leaked'
|
|
30711
|
+
})
|
|
30712
|
+
);
|
|
30694
30713
|
}
|
|
30695
30714
|
}
|
|
30696
30715
|
};
|
package/dist/index.js
CHANGED
|
@@ -31212,7 +31212,17 @@ Working directory: ${targetCwd}`,
|
|
|
31212
31212
|
if (!attempted) {
|
|
31213
31213
|
try {
|
|
31214
31214
|
child.kill();
|
|
31215
|
-
} catch {
|
|
31215
|
+
} catch (err) {
|
|
31216
|
+
console.log(
|
|
31217
|
+
JSON.stringify({
|
|
31218
|
+
level: "warn",
|
|
31219
|
+
event: "pwsh.kill_fallback_failed",
|
|
31220
|
+
pid: child.pid,
|
|
31221
|
+
platform: process.platform,
|
|
31222
|
+
error: err instanceof Error ? err.message : String(err),
|
|
31223
|
+
message: "pwsh child.kill() raised after the registry kill failed; process may be leaked"
|
|
31224
|
+
})
|
|
31225
|
+
);
|
|
31216
31226
|
}
|
|
31217
31227
|
}
|
|
31218
31228
|
}
|
|
@@ -31223,7 +31233,16 @@ Working directory: ${targetCwd}`,
|
|
|
31223
31233
|
} else {
|
|
31224
31234
|
try {
|
|
31225
31235
|
child.kill("SIGTERM");
|
|
31226
|
-
} catch {
|
|
31236
|
+
} catch (err) {
|
|
31237
|
+
console.log(
|
|
31238
|
+
JSON.stringify({
|
|
31239
|
+
level: "warn",
|
|
31240
|
+
event: "pwsh.sigterm_failed",
|
|
31241
|
+
platform: process.platform,
|
|
31242
|
+
error: err instanceof Error ? err.message : String(err),
|
|
31243
|
+
message: 'pwsh child.kill("SIGTERM") raised on POSIX fallback; process may be leaked'
|
|
31244
|
+
})
|
|
31245
|
+
);
|
|
31227
31246
|
}
|
|
31228
31247
|
}
|
|
31229
31248
|
};
|
package/dist/pack.js
CHANGED
|
@@ -30679,7 +30679,17 @@ Working directory: ${targetCwd}`,
|
|
|
30679
30679
|
if (!attempted) {
|
|
30680
30680
|
try {
|
|
30681
30681
|
child.kill();
|
|
30682
|
-
} catch {
|
|
30682
|
+
} catch (err) {
|
|
30683
|
+
console.log(
|
|
30684
|
+
JSON.stringify({
|
|
30685
|
+
level: "warn",
|
|
30686
|
+
event: "pwsh.kill_fallback_failed",
|
|
30687
|
+
pid: child.pid,
|
|
30688
|
+
platform: process.platform,
|
|
30689
|
+
error: err instanceof Error ? err.message : String(err),
|
|
30690
|
+
message: "pwsh child.kill() raised after the registry kill failed; process may be leaked"
|
|
30691
|
+
})
|
|
30692
|
+
);
|
|
30683
30693
|
}
|
|
30684
30694
|
}
|
|
30685
30695
|
}
|
|
@@ -30690,7 +30700,16 @@ Working directory: ${targetCwd}`,
|
|
|
30690
30700
|
} else {
|
|
30691
30701
|
try {
|
|
30692
30702
|
child.kill("SIGTERM");
|
|
30693
|
-
} catch {
|
|
30703
|
+
} catch (err) {
|
|
30704
|
+
console.log(
|
|
30705
|
+
JSON.stringify({
|
|
30706
|
+
level: "warn",
|
|
30707
|
+
event: "pwsh.sigterm_failed",
|
|
30708
|
+
platform: process.platform,
|
|
30709
|
+
error: err instanceof Error ? err.message : String(err),
|
|
30710
|
+
message: 'pwsh child.kill("SIGTERM") raised on POSIX fallback; process may be leaked'
|
|
30711
|
+
})
|
|
30712
|
+
);
|
|
30694
30713
|
}
|
|
30695
30714
|
}
|
|
30696
30715
|
};
|
package/dist/tool-tier.js
CHANGED
|
@@ -30679,7 +30679,17 @@ Working directory: ${targetCwd}`,
|
|
|
30679
30679
|
if (!attempted) {
|
|
30680
30680
|
try {
|
|
30681
30681
|
child.kill();
|
|
30682
|
-
} catch {
|
|
30682
|
+
} catch (err) {
|
|
30683
|
+
console.log(
|
|
30684
|
+
JSON.stringify({
|
|
30685
|
+
level: "warn",
|
|
30686
|
+
event: "pwsh.kill_fallback_failed",
|
|
30687
|
+
pid: child.pid,
|
|
30688
|
+
platform: process.platform,
|
|
30689
|
+
error: err instanceof Error ? err.message : String(err),
|
|
30690
|
+
message: "pwsh child.kill() raised after the registry kill failed; process may be leaked"
|
|
30691
|
+
})
|
|
30692
|
+
);
|
|
30683
30693
|
}
|
|
30684
30694
|
}
|
|
30685
30695
|
}
|
|
@@ -30690,7 +30700,16 @@ Working directory: ${targetCwd}`,
|
|
|
30690
30700
|
} else {
|
|
30691
30701
|
try {
|
|
30692
30702
|
child.kill("SIGTERM");
|
|
30693
|
-
} catch {
|
|
30703
|
+
} catch (err) {
|
|
30704
|
+
console.log(
|
|
30705
|
+
JSON.stringify({
|
|
30706
|
+
level: "warn",
|
|
30707
|
+
event: "pwsh.sigterm_failed",
|
|
30708
|
+
platform: process.platform,
|
|
30709
|
+
error: err instanceof Error ? err.message : String(err),
|
|
30710
|
+
message: 'pwsh child.kill("SIGTERM") raised on POSIX fallback; process may be leaked'
|
|
30711
|
+
})
|
|
30712
|
+
);
|
|
30694
30713
|
}
|
|
30695
30714
|
}
|
|
30696
30715
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tools",
|
|
3
|
-
"version": "0.310.
|
|
3
|
+
"version": "0.310.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "WrongStack built-in tools: read/write/edit, bash/exec, grep/glob, git, fetch, test, lint, and more.",
|
|
6
6
|
"repository": {
|
|
@@ -253,10 +253,10 @@
|
|
|
253
253
|
"turndown": "^7.2.4",
|
|
254
254
|
"undici": "^8.10.0",
|
|
255
255
|
"web-tree-sitter": "0.26.12",
|
|
256
|
-
"@wrongstack/core": "0.310.
|
|
257
|
-
"@wrongstack/
|
|
258
|
-
"@wrongstack/
|
|
259
|
-
"@wrongstack/persistence": "0.310.
|
|
256
|
+
"@wrongstack/core": "0.310.1",
|
|
257
|
+
"@wrongstack/primitives": "0.310.1",
|
|
258
|
+
"@wrongstack/kanban": "0.310.1",
|
|
259
|
+
"@wrongstack/persistence": "0.310.1"
|
|
260
260
|
},
|
|
261
261
|
"devDependencies": {
|
|
262
262
|
"@types/node": "^26.2.0",
|