@wrongstack/tools 0.300.0 → 0.301.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/dist/batch-tool-use.js +3 -1
- package/dist/browser/index.js +1 -1
- package/dist/builtin.d.ts +3 -2
- package/dist/builtin.js +310 -83
- package/dist/codebase-index/bm25.d.ts +7 -1
- package/dist/codebase-index/index.js +23 -13
- package/dist/codebase-index/project-server.js +23 -13
- package/dist/codebase-index/worker.js +20 -12
- package/dist/git.js +2 -5
- package/dist/glob.js +2 -2
- package/dist/grep.js +118 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +422 -90
- package/dist/json.js +81 -0
- package/dist/logs.js +81 -0
- package/dist/next-steps-tool.d.ts +26 -0
- package/dist/pack.js +310 -83
- package/dist/patch.js +206 -45
- package/dist/read.js +23 -13
- package/dist/replace.js +81 -0
- package/dist/skill.js +51 -2
- package/dist/tool-help.js +2 -2
- package/dist/tool-search.js +1 -1
- package/dist/tool-tier.d.ts +1 -1
- package/dist/tool-tier.js +311 -100
- package/dist/tool-use.js +1 -1
- package/dist/tree.js +13 -3
- package/package.json +3 -3
package/dist/tool-use.js
CHANGED
package/dist/tree.js
CHANGED
|
@@ -29,7 +29,13 @@ function safeResolve(input, ctx) {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
// src/tree.ts
|
|
32
|
-
var DEFAULT_IGNORE =
|
|
32
|
+
var DEFAULT_IGNORE = /* @__PURE__ */ new Set([
|
|
33
|
+
...DEFAULT_WALK_IGNORE_DIRS,
|
|
34
|
+
".wrongstack",
|
|
35
|
+
".ssh",
|
|
36
|
+
".gnupg",
|
|
37
|
+
".aws"
|
|
38
|
+
]);
|
|
33
39
|
var DEFAULT_MAX_ENTRIES = 5e3;
|
|
34
40
|
var MAX_TREE_OUTPUT_BYTES = 256 * 1024;
|
|
35
41
|
var treeTool = {
|
|
@@ -190,8 +196,12 @@ async function walkDir(dir, depth, opts) {
|
|
|
190
196
|
return true;
|
|
191
197
|
});
|
|
192
198
|
if (depth > 0) {
|
|
193
|
-
|
|
194
|
-
|
|
199
|
+
let dirCount = 0;
|
|
200
|
+
let fileCount = 0;
|
|
201
|
+
for (const e of filtered) {
|
|
202
|
+
if (e.isDirectory()) dirCount++;
|
|
203
|
+
else if (e.isFile()) fileCount++;
|
|
204
|
+
}
|
|
195
205
|
opts.totalDirs.value += dirCount;
|
|
196
206
|
opts.totalFiles.value += fileCount;
|
|
197
207
|
opts.onProgress?.();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wrongstack/tools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.301.0",
|
|
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": {
|
|
@@ -250,8 +250,8 @@
|
|
|
250
250
|
"@typescript/typescript6": "^6.0.2",
|
|
251
251
|
"turndown": "^7.2.4",
|
|
252
252
|
"undici": "^8.9.0",
|
|
253
|
-
"@wrongstack/core": "0.
|
|
254
|
-
"@wrongstack/kanban": "0.
|
|
253
|
+
"@wrongstack/core": "0.301.0",
|
|
254
|
+
"@wrongstack/kanban": "0.301.0"
|
|
255
255
|
},
|
|
256
256
|
"devDependencies": {
|
|
257
257
|
"@types/node": "^26.1.2",
|