@wrongstack/core 0.31.1 → 0.41.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/{agent-subagent-runner-DpZTLdBe.d.ts → agent-subagent-runner-C66vi4Gq.d.ts} +1 -1
- package/dist/{config-BUEGM4JP.d.ts → config-ZRCf7sTu.d.ts} +21 -1
- package/dist/coordination/index.d.ts +7 -7
- package/dist/coordination/index.js +3051 -2947
- package/dist/coordination/index.js.map +1 -1
- package/dist/defaults/index.d.ts +8 -8
- package/dist/defaults/index.js +1435 -1321
- package/dist/defaults/index.js.map +1 -1
- package/dist/execution/index.d.ts +5 -5
- package/dist/extension/index.d.ts +2 -2
- package/dist/{index-ysfO_DlX.d.ts → index-6_csX32J.d.ts} +1 -1
- package/dist/{index-pXJdVLe0.d.ts → index-DkVgH3wC.d.ts} +31 -1
- package/dist/index.d.ts +135 -15
- package/dist/index.js +1236 -931
- package/dist/index.js.map +1 -1
- package/dist/infrastructure/index.d.ts +2 -2
- package/dist/infrastructure/index.js +17 -3
- package/dist/infrastructure/index.js.map +1 -1
- package/dist/kernel/index.d.ts +2 -2
- package/dist/{mcp-servers-BzB3r7_c.d.ts → mcp-servers-DONdo-XM.d.ts} +1 -1
- package/dist/{multi-agent-coordinator-DOXSgtom.d.ts → multi-agent-coordinator-BUsjiRWl.d.ts} +1 -1
- package/dist/{null-fleet-bus-CAQDGsKc.d.ts → null-fleet-bus-FvgHnZah.d.ts} +169 -131
- package/dist/{plan-templates-BZMi-VpU.d.ts → plan-templates-DYCeRCDN.d.ts} +1 -1
- package/dist/sdd/index.d.ts +3 -3
- package/dist/storage/index.d.ts +2 -2
- package/dist/{tool-executor-BAi4WI2d.d.ts → tool-executor-BpK-SWtJ.d.ts} +1 -1
- package/dist/types/index.d.ts +3 -3
- package/dist/types/index.js +17 -3
- package/dist/types/index.js.map +1 -1
- package/dist/utils/index.d.ts +107 -1
- package/dist/utils/index.js +53 -2
- package/dist/utils/index.js.map +1 -1
- package/package.json +1 -1
- package/skills/multi-agent/SKILL.md +57 -1
|
@@ -130,4 +130,60 @@ Subagents share **nothing** — no memory, no session state, no variable scope.
|
|
|
130
130
|
- `bug-hunter` — parallel file audits
|
|
131
131
|
- `security-scanner` — parallel security scans
|
|
132
132
|
- `refactor-planner` — parallel module analysis
|
|
133
|
-
- `audit-log` — aggregating multiple session analyses
|
|
133
|
+
- `audit-log` — aggregating multiple session analyses
|
|
134
|
+
|
|
135
|
+
---
|
|
136
|
+
|
|
137
|
+
## collab_debug — Three-Agent Parallel Code Review
|
|
138
|
+
|
|
139
|
+
`collab_debug` runs **BugHunter + RefactorPlanner + Critic** simultaneously on the same file snapshot. All three agents receive the full target context, so the number of files must be kept small.
|
|
140
|
+
|
|
141
|
+
### Target size limit: dynamic, defaults to 30
|
|
142
|
+
|
|
143
|
+
The file limit is computed in this priority order:
|
|
144
|
+
|
|
145
|
+
1. **`maxTargetFiles`** — explicit override if provided
|
|
146
|
+
2. **`contextWindow`** — dynamic calculation: `floor((contextWindow × 0.4) / 2000)`
|
|
147
|
+
3. **`DEFAULT_MAX_TARGET_FILES = 30`** — fallback when neither is set
|
|
148
|
+
|
|
149
|
+
Each of the three agents gets the entire file snapshot as context. With 3 agents × N files, large targets cause:
|
|
150
|
+
- **Token overflow** — context window exhausted
|
|
151
|
+
- **Timeout failures** — session times out before agents finish
|
|
152
|
+
- **Budget exhaustion** — each agent burns through iterations with no progress
|
|
153
|
+
|
|
154
|
+
| contextWindow (tokens) | Calculated limit | Interpretation |
|
|
155
|
+
|---|---|---|
|
|
156
|
+
| 200_000 (large model) | 40 files | ~20-30 recommended |
|
|
157
|
+
| 100_000 (typical) | 20 files | ✅ Comfortable |
|
|
158
|
+
| 32_768 (small) | 6 files | ⚠️ Very limited |
|
|
159
|
+
| not provided | 30 files (default) | Safe baseline |
|
|
160
|
+
|
|
161
|
+
The session throws a clear error if the resolved file count exceeds the effective limit.
|
|
162
|
+
|
|
163
|
+
### Correct usage
|
|
164
|
+
|
|
165
|
+
```js
|
|
166
|
+
// ✅ Good — single package, limited files
|
|
167
|
+
collab_debug(["packages/core/src/agents/**/*.ts"])
|
|
168
|
+
|
|
169
|
+
// ✅ Dynamic — limit computed from contextWindow
|
|
170
|
+
collab_debug({
|
|
171
|
+
// ✅ Explicit — override limit directly
|
|
172
|
+
collab_debug({
|
|
173
|
+
targetPaths: ["packages/core/src/**/*.ts"],
|
|
174
|
+
maxTargetFiles: 15,
|
|
175
|
+
})
|
|
176
|
+
|
|
177
|
+
// ✅ Dynamic — limit computed from contextWindow
|
|
178
|
+
collab_debug({
|
|
179
|
+
targetPaths: ["packages/core/src/**/*.ts"],
|
|
180
|
+
contextWindow: 100_000, // → limit = floor(100000 * 0.4 / 2000) = 20
|
|
181
|
+
})
|
|
182
|
+
|
|
183
|
+
// ❌ Bad — entire monorepo
|
|
184
|
+
collab_debug(["packages/**/src/**/*.ts"])
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### For large codebases
|
|
188
|
+
|
|
189
|
+
Run **package-by-package** or **module-by-module** sessions. Target only the area under review, not the whole repo.
|