@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/batch-tool-use.js
CHANGED
|
@@ -150,7 +150,9 @@ async function executeSingle(call, ctx, governedExecute) {
|
|
|
150
150
|
executionMs: Date.now() - start
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
const tool = ctx.tools.find(
|
|
153
|
+
const tool = (ctx.catalogTools ?? ctx.tools).find(
|
|
154
|
+
(candidate) => candidate.name === call.tool
|
|
155
|
+
);
|
|
154
156
|
if (!tool) {
|
|
155
157
|
return {
|
|
156
158
|
tool: call.tool,
|
package/dist/browser/index.js
CHANGED
|
@@ -185,7 +185,7 @@ function parsePrivateOriginAllowlist(raw) {
|
|
|
185
185
|
if (!raw?.trim()) return [];
|
|
186
186
|
const origins = /* @__PURE__ */ new Set();
|
|
187
187
|
for (const entry of raw.split(",")) {
|
|
188
|
-
const candidate = entry.trim();
|
|
188
|
+
const candidate = entry.trim().replace(/^["']+|["']+$/gu, "");
|
|
189
189
|
if (!candidate) continue;
|
|
190
190
|
const url = parseBrowserUrl(candidate, true);
|
|
191
191
|
if (url.pathname !== "/" || url.search || url.hash) {
|
package/dist/builtin.d.ts
CHANGED
|
@@ -12,10 +12,11 @@ import type { Tool } from '@wrongstack/core/types';
|
|
|
12
12
|
export declare const OPTIONAL_TOOLS: Tool[];
|
|
13
13
|
/**
|
|
14
14
|
* Tier 1 (Token Saving) tool set — the absolute minimum for useful work.
|
|
15
|
-
*
|
|
15
|
+
* 15 tools covering core file ops, indexed project discovery, shell, search,
|
|
16
16
|
* and utilities. Codebase index lifecycle tools stay available at every tier
|
|
17
17
|
* so token saving does not force broad filesystem scans.
|
|
18
|
-
* Saves ~3500-5500 tokens vs full mode by omitting specialized
|
|
18
|
+
* Saves ~3500-5500 tokens vs full mode by omitting specialized schemas from
|
|
19
|
+
* direct provider exposure; hosts may retain those tools in a lazy catalog.
|
|
19
20
|
*
|
|
20
21
|
* Tier 1 tools:
|
|
21
22
|
* read, write, edit — file operations
|