@wrongstack/core 0.307.0 → 0.308.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.
@@ -13245,6 +13245,7 @@ var RUNTIME_CAPABILITY_MANIFEST = [
13245
13245
  "codebase-skeleton",
13246
13246
  "codebase-repo-map",
13247
13247
  "codebase-impact-analysis",
13248
+ "codebase-invariant-check",
13248
13249
  "dead-code-scan",
13249
13250
  "diff",
13250
13251
  "json",
@@ -14165,13 +14166,50 @@ var HEAVY_BUDGET = {
14165
14166
  maxIterations: 8e3,
14166
14167
  maxToolCalls: 2e4
14167
14168
  };
14169
+ var INDEX_READ = [
14170
+ "codebase-stats",
14171
+ "codebase-search",
14172
+ "codebase-skeleton",
14173
+ "codebase-repo-map",
14174
+ "codebase-incoming-calls",
14175
+ "codebase-outgoing-calls"
14176
+ ];
14168
14177
  var TOOLS = {
14178
+ /** Index-backed code discovery. Spread onto code-facing presets, not browser. */
14179
+ index: INDEX_READ,
14169
14180
  /** Pure read/inspect — safe for analysis and review agents. */
14170
14181
  read: ["read", "grep", "glob", "search", "tree", "mailbox"],
14171
14182
  /** Read + structured inspection (logs, diffs, json, dependency audit). */
14172
- inspect: ["read", "grep", "glob", "search", "tree", "json", "diff", "logs", "audit", "mailbox"],
14183
+ inspect: [
14184
+ "read",
14185
+ "grep",
14186
+ "glob",
14187
+ "search",
14188
+ "tree",
14189
+ ...INDEX_READ,
14190
+ "json",
14191
+ "diff",
14192
+ "logs",
14193
+ "audit",
14194
+ "mailbox"
14195
+ ],
14173
14196
  /** Read + edit (no shell). For agents that write code/docs but don't run it. */
14174
- write: ["read", "grep", "glob", "search", "tree", "write", "edit", "replace", "patch", "mailbox"],
14197
+ write: [
14198
+ "read",
14199
+ "grep",
14200
+ "glob",
14201
+ "search",
14202
+ "tree",
14203
+ ...INDEX_READ,
14204
+ "codebase-impact-analysis",
14205
+ "codebase-ast-replace",
14206
+ "codebase-invariant-check",
14207
+ "write",
14208
+ "edit",
14209
+ "replace",
14210
+ "patch",
14211
+ "mailbox"
14212
+ ],
14175
14213
  /** Full build loop: edit + run (lint/format/typecheck/test/bash). */
14176
14214
  build: [
14177
14215
  "read",
@@ -14179,6 +14217,11 @@ var TOOLS = {
14179
14217
  "glob",
14180
14218
  "search",
14181
14219
  "tree",
14220
+ ...INDEX_READ,
14221
+ "codebase-impact-analysis",
14222
+ "codebase-ast-replace",
14223
+ "codebase-invariant-check",
14224
+ "codebase-targeted-test",
14182
14225
  "diff",
14183
14226
  "write",
14184
14227
  "edit",
@@ -14205,7 +14248,18 @@ var TOOLS = {
14205
14248
  /** Dependency management + CVE audit. */
14206
14249
  deps: ["read", "grep", "glob", "install", "outdated", "audit", "json", "mailbox"],
14207
14250
  /** Documentation authoring. */
14208
- docs: ["read", "grep", "glob", "search", "tree", "write", "edit", "document", "mailbox"],
14251
+ docs: [
14252
+ "read",
14253
+ "grep",
14254
+ "glob",
14255
+ "search",
14256
+ "tree",
14257
+ ...INDEX_READ,
14258
+ "write",
14259
+ "edit",
14260
+ "document",
14261
+ "mailbox"
14262
+ ],
14209
14263
  /** Web research. */
14210
14264
  research: ["read", "grep", "glob", "search", "fetch", "mailbox"]
14211
14265
  };
@@ -14222,7 +14276,7 @@ var DISCOVERY_AGENTS = [
14222
14276
  id: "explore",
14223
14277
  name: "Explore",
14224
14278
  role: "explore",
14225
- tools: [...TOOLS.read],
14279
+ tools: [...TOOLS.read, ...TOOLS.index],
14226
14280
  prompt: agentPrompt("explore")
14227
14281
  },
14228
14282
  budget: MEDIUM_BUDGET,
@@ -14250,7 +14304,7 @@ var DISCOVERY_AGENTS = [
14250
14304
  id: "search",
14251
14305
  name: "Search",
14252
14306
  role: "search",
14253
- tools: [...TOOLS.read, "codebase-search"],
14307
+ tools: [...TOOLS.read, ...TOOLS.index],
14254
14308
  prompt: agentPrompt("search")
14255
14309
  },
14256
14310
  budget: MEDIUM_BUDGET,
@@ -14301,7 +14355,7 @@ var DISCOVERY_AGENTS = [
14301
14355
  ];
14302
14356
 
14303
14357
  // src/coordination/agents/phase2-planning.ts
14304
- var PLAN_TOOLS = [...TOOLS.read, "plan", "todo"];
14358
+ var PLAN_TOOLS = [...TOOLS.read, ...TOOLS.index, "plan", "todo"];
14305
14359
  var PLANNING_AGENTS = [
14306
14360
  {
14307
14361
  config: {