brainclaw 1.28.1 → 1.28.2
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/brainclaw-vscode.vsix +0 -0
- package/dist/commands/code-map.js +2 -0
- package/dist/commands/doctor.js +1 -0
- package/dist/commands/harvest.js +32 -43
- package/dist/commands/loops-handlers.js +66 -3
- package/dist/commands/mcp-write-coordination.js +413 -137
- package/dist/commands/mcp.js +32 -4
- package/dist/core/agentrun-reconciler.js +138 -4
- package/dist/core/claims.js +4 -1
- package/dist/core/code-map/backend.js +8 -0
- package/dist/core/execution-adapters.js +15 -7
- package/dist/core/hygiene-policy.js +2 -1
- package/dist/core/loop-turn-dispatch.js +18 -1
- package/dist/core/loops/attempt-authority.js +22 -4
- package/dist/core/loops/attempt-generations.js +17 -4
- package/dist/core/loops/attempt-reservation.js +14 -1
- package/dist/core/loops/attempt-takeover.js +173 -76
- package/dist/core/loops/reconcile-turn.js +224 -26
- package/dist/core/loops/result-reducers.js +8 -8
- package/dist/core/loops/turn-execution.js +38 -19
- package/dist/core/loops/types.js +3 -0
- package/dist/core/loops/verbs.js +1 -1
- package/dist/facts.js +9 -9
- package/dist/facts.json +8 -8
- package/docs/code-map.md +10 -0
- package/docs/concepts/loop-engine.md +5 -0
- package/package.json +1 -1
package/dist/facts.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Generated by scripts/emit-site-facts.mjs at build time. Do not edit manually.
|
|
2
|
-
// Source: brainclaw v1.28.
|
|
2
|
+
// Source: brainclaw v1.28.2 on 2026-08-25T18:22:09.950Z
|
|
3
3
|
export const FACTS = {
|
|
4
|
-
"version": "1.28.
|
|
5
|
-
"generated_at": "2026-08-
|
|
4
|
+
"version": "1.28.2",
|
|
5
|
+
"generated_at": "2026-08-25T18:22:09.950Z",
|
|
6
6
|
"tools": {
|
|
7
7
|
"count": 70,
|
|
8
8
|
"published_count": 68,
|
|
@@ -478,7 +478,7 @@ export const FACTS = {
|
|
|
478
478
|
},
|
|
479
479
|
"bench": {
|
|
480
480
|
"schema": "brainclaw.bench.v1",
|
|
481
|
-
"generated_at": "2026-08-
|
|
481
|
+
"generated_at": "2026-08-25T18:22:07.761Z",
|
|
482
482
|
"node_version": "v24.19.0",
|
|
483
483
|
"platform": "linux-x64",
|
|
484
484
|
"repeats": 3,
|
|
@@ -487,7 +487,7 @@ export const FACTS = {
|
|
|
487
487
|
"name": "cold_onboard",
|
|
488
488
|
"volume": "empty",
|
|
489
489
|
"description": "fresh machine → init → first useful context. Baseline for time-to-first-value.",
|
|
490
|
-
"duration_ms_median":
|
|
490
|
+
"duration_ms_median": 82,
|
|
491
491
|
"payload_chars_median": 1640,
|
|
492
492
|
"payload_tokens_est_median": 410
|
|
493
493
|
},
|
|
@@ -495,7 +495,7 @@ export const FACTS = {
|
|
|
495
495
|
"name": "warm_work",
|
|
496
496
|
"volume": "medium",
|
|
497
497
|
"description": "bclaw_work consult over a real-shaped store (~200 plans / 500 handoffs / 450 claims).",
|
|
498
|
-
"duration_ms_median":
|
|
498
|
+
"duration_ms_median": 132,
|
|
499
499
|
"payload_chars_median": 2626,
|
|
500
500
|
"payload_tokens_est_median": 657
|
|
501
501
|
},
|
|
@@ -503,9 +503,9 @@ export const FACTS = {
|
|
|
503
503
|
"name": "first_edit",
|
|
504
504
|
"volume": "medium",
|
|
505
505
|
"description": "code_find + code_brief on the fresh-agent path (missing index, first touch).",
|
|
506
|
-
"duration_ms_median":
|
|
507
|
-
"payload_chars_median":
|
|
508
|
-
"payload_tokens_est_median":
|
|
506
|
+
"duration_ms_median": 13,
|
|
507
|
+
"payload_chars_median": 1629,
|
|
508
|
+
"payload_tokens_est_median": 407
|
|
509
509
|
}
|
|
510
510
|
]
|
|
511
511
|
}
|
package/dist/facts.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "1.28.
|
|
3
|
-
"generated_at": "2026-08-
|
|
2
|
+
"version": "1.28.2",
|
|
3
|
+
"generated_at": "2026-08-25T18:22:09.950Z",
|
|
4
4
|
"tools": {
|
|
5
5
|
"count": 70,
|
|
6
6
|
"published_count": 68,
|
|
@@ -476,7 +476,7 @@
|
|
|
476
476
|
},
|
|
477
477
|
"bench": {
|
|
478
478
|
"schema": "brainclaw.bench.v1",
|
|
479
|
-
"generated_at": "2026-08-
|
|
479
|
+
"generated_at": "2026-08-25T18:22:07.761Z",
|
|
480
480
|
"node_version": "v24.19.0",
|
|
481
481
|
"platform": "linux-x64",
|
|
482
482
|
"repeats": 3,
|
|
@@ -485,7 +485,7 @@
|
|
|
485
485
|
"name": "cold_onboard",
|
|
486
486
|
"volume": "empty",
|
|
487
487
|
"description": "fresh machine → init → first useful context. Baseline for time-to-first-value.",
|
|
488
|
-
"duration_ms_median":
|
|
488
|
+
"duration_ms_median": 82,
|
|
489
489
|
"payload_chars_median": 1640,
|
|
490
490
|
"payload_tokens_est_median": 410
|
|
491
491
|
},
|
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
"name": "warm_work",
|
|
494
494
|
"volume": "medium",
|
|
495
495
|
"description": "bclaw_work consult over a real-shaped store (~200 plans / 500 handoffs / 450 claims).",
|
|
496
|
-
"duration_ms_median":
|
|
496
|
+
"duration_ms_median": 132,
|
|
497
497
|
"payload_chars_median": 2626,
|
|
498
498
|
"payload_tokens_est_median": 657
|
|
499
499
|
},
|
|
@@ -501,9 +501,9 @@
|
|
|
501
501
|
"name": "first_edit",
|
|
502
502
|
"volume": "medium",
|
|
503
503
|
"description": "code_find + code_brief on the fresh-agent path (missing index, first touch).",
|
|
504
|
-
"duration_ms_median":
|
|
505
|
-
"payload_chars_median":
|
|
506
|
-
"payload_tokens_est_median":
|
|
504
|
+
"duration_ms_median": 13,
|
|
505
|
+
"payload_chars_median": 1629,
|
|
506
|
+
"payload_tokens_est_median": 407
|
|
507
507
|
}
|
|
508
508
|
]
|
|
509
509
|
}
|
package/docs/code-map.md
CHANGED
|
@@ -47,6 +47,8 @@ brainclaw code-map status
|
|
|
47
47
|
```
|
|
48
48
|
Code Map status
|
|
49
49
|
Store: present
|
|
50
|
+
Root: /workspace/apps/api
|
|
51
|
+
Path: /workspace/apps/api/.brainclaw/code
|
|
50
52
|
Freshness: fresh
|
|
51
53
|
Files: 142
|
|
52
54
|
Nodes: 1873
|
|
@@ -212,6 +214,14 @@ Code Map to **that child** — the same per-project scoping that powers `bclaw_w
|
|
|
212
214
|
juggling. A submodule that is itself an application (under e.g. `apps/`) is indexed
|
|
213
215
|
like any other directory.
|
|
214
216
|
|
|
217
|
+
Both CLI and MCP status responses disclose the exact resolved project root and
|
|
218
|
+
Code Map store path. The MCP response additionally includes `active_source`, the
|
|
219
|
+
resolved project identity, the running server version, and the package version
|
|
220
|
+
visible on disk. In a monorepo, compare these fields before concluding that an
|
|
221
|
+
index is missing: a root store and a child store are intentionally distinct. If
|
|
222
|
+
the versions differ, restart the MCP server; if the roots differ, select the
|
|
223
|
+
intended project/session (or pass `cascade=true` at the workspace root).
|
|
224
|
+
|
|
215
225
|
### Cascading a multi-project workspace (`--cascade`)
|
|
216
226
|
|
|
217
227
|
In a `project_mode: multi-project` workspace, one refresh at the root can index
|
|
@@ -518,6 +518,11 @@ The Loop engine is a **control plane**; existing primitives remain the **data pl
|
|
|
518
518
|
|
|
519
519
|
A Loop never copies these objects — it links them. Deleting the linked primitive does not break the loop; the reference just becomes dangling, surfaced in diagnostics.
|
|
520
520
|
|
|
521
|
+
Inline `LoopArtifact.body` values are capped at **4096 UTF-8 bytes**, not 4096
|
|
522
|
+
characters. Larger task and result text remains available through its source
|
|
523
|
+
object or a `ref`; any inline projection is byte-truncated with an explicit
|
|
524
|
+
`…[truncated]` marker. This contract is identical for review and ideation.
|
|
525
|
+
|
|
521
526
|
## Per-protocol guides
|
|
522
527
|
|
|
523
528
|
Each of the five kinds has its own operator-facing guide with the same
|