@wrongstack/tools 0.300.0 → 0.302.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/audit.js CHANGED
@@ -792,7 +792,7 @@ function getProcessRegistry() {
792
792
  // src/_spawn-stream.ts
793
793
  var isWin = process.platform === "win32";
794
794
  async function* spawnStream(opts) {
795
- const max = opts.maxBytes ?? 2e5;
795
+ const max = opts.maxBytes ?? 999999999;
796
796
  const flushAt = opts.flushBytes ?? 4 * 1024;
797
797
  const maxQueue = opts.maxQueueSize ?? 500;
798
798
  const maxQueueBytes = opts.maxQueueBytes ?? 1024 * 1024;
@@ -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((candidate) => candidate.name === call.tool);
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,
@@ -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
- * 13 tools covering core file ops, indexed project discovery, shell, search,
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 tools.
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