brainclaw 1.14.0 → 1.16.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/README.md +16 -263
- package/dist/brainclaw-vscode.vsix +0 -0
- package/dist/cli/register-capture.js +209 -0
- package/dist/cli/register-code-map.js +19 -0
- package/dist/cli/register-coordination.js +472 -0
- package/dist/cli/register-federation.js +258 -0
- package/dist/cli/register-lifecycle.js +436 -0
- package/dist/cli/register-memory-context.js +502 -0
- package/dist/cli/register-planning.js +167 -0
- package/dist/cli/register-review.js +149 -0
- package/dist/cli/shared.js +5 -0
- package/dist/cli.js +212 -2015
- package/dist/commands/dispatch-watch.js +25 -2
- package/dist/commands/harvest.js +31 -6
- package/dist/commands/mcp-catalog.js +1438 -0
- package/dist/commands/mcp-contract.js +33 -0
- package/dist/commands/mcp-presentation.js +27 -0
- package/dist/commands/mcp-read-handlers.js +72 -36
- package/dist/commands/mcp-write-admin.js +328 -0
- package/dist/commands/mcp-write-claims.js +864 -0
- package/dist/commands/mcp-write-coordination.js +1825 -0
- package/dist/commands/mcp-write-entities.js +620 -0
- package/dist/commands/mcp-write-memory.js +451 -0
- package/dist/commands/mcp-write-sequences.js +116 -0
- package/dist/commands/mcp-write-support.js +367 -0
- package/dist/commands/mcp.js +261 -5570
- package/dist/commands/update-handoff.js +28 -42
- package/dist/core/agent-capability.js +31 -14
- package/dist/core/agent-files.js +1 -1
- package/dist/core/agent-registry.js +51 -3
- package/dist/core/claims.js +18 -0
- package/dist/core/coordination.js +5 -2
- package/dist/core/cross-project.js +35 -1
- package/dist/core/dispatcher.js +34 -20
- package/dist/core/entity-operations.js +335 -12
- package/dist/core/entity-registry.js +72 -9
- package/dist/core/execution.js +28 -4
- package/dist/core/facade-schema.js +30 -4
- package/dist/core/federation-cloud.js +142 -11
- package/dist/core/federation-outbox.js +292 -0
- package/dist/core/federation-signing.js +115 -0
- package/dist/core/handoff-review.js +35 -0
- package/dist/core/io.js +6 -0
- package/dist/core/protocol-tool-policy.js +113 -0
- package/dist/core/review-loop-close.js +115 -0
- package/dist/core/schema.js +25 -2
- package/dist/core/security-detectors.js +35 -6
- package/dist/core/security.js +32 -12
- package/dist/core/worktree.js +98 -9
- package/dist/facts.js +13 -11
- package/dist/facts.json +12 -10
- package/docs/PROTOCOL.md +7 -3
- package/docs/concepts/coordinator-runbook.md +3 -0
- package/docs/concepts/dispatch-lifecycle.md +4 -4
- package/docs/concepts/loop-engine.md +3 -1
- package/docs/concepts/troubleshooting.md +1 -1
- package/docs/integrations/codex.md +3 -3
- package/docs/integrations/overview.md +1 -1
- package/docs/mcp-schema-changelog.md +153 -2
- package/docs/playbooks/orchestration.md +1 -1
- package/docs/product/entity-model-audit.md +3 -2
- package/docs/security.md +22 -1
- package/package.json +3 -1
|
@@ -84,8 +84,9 @@ load-bearing; simplifications cannot break them.
|
|
|
84
84
|
"never init --force"). Strongest concept; drives hook injection
|
|
85
85
|
to remind agents of the process.
|
|
86
86
|
- **Trap**: environmental or process pitfall to avoid (e.g., "git
|
|
87
|
-
merge wipes node_modules", "
|
|
88
|
-
trigger a corrective plan when
|
|
87
|
+
merge wipes node_modules", "a sandboxed worker's `.git` is read-only
|
|
88
|
+
→ it cannot `git commit`"). May trigger a corrective plan when
|
|
89
|
+
resolvable.
|
|
89
90
|
All three drive different agent behaviours (decisions = retrieve for
|
|
90
91
|
context, constraints = enforce, traps = warn + resolve).
|
|
91
92
|
|
package/docs/security.md
CHANGED
|
@@ -45,7 +45,28 @@ matches block the write.
|
|
|
45
45
|
|
|
46
46
|
When `security.block_sensitive_paths: true` (default), content that
|
|
47
47
|
references paths like `.env`, `secrets/`, `.git/`, or `node_modules/`
|
|
48
|
-
|
|
48
|
+
is flagged. `block_sensitive_paths` is the **enable-gate** for this layer;
|
|
49
|
+
the flagged level follows the same rule as every other signal — a `warn`
|
|
50
|
+
normally, escalating to `block` under `strict_redaction: true` (mode:
|
|
51
|
+
strict). It is not a standalone block toggle: in warn mode a sensitive-path
|
|
52
|
+
mention warns; in strict mode it blocks, uniformly with redaction, structural,
|
|
53
|
+
and entropy matches.
|
|
54
|
+
|
|
55
|
+
### Signal layers and levels
|
|
56
|
+
|
|
57
|
+
`scanText` runs four independent layers, each with its own enable-gate, and
|
|
58
|
+
they all share one level rule:
|
|
59
|
+
|
|
60
|
+
| Layer | Enable-gate | Level (warn mode / strict) |
|
|
61
|
+
|-------|-------------|----------------------------|
|
|
62
|
+
| Redaction patterns | `redaction.enabled` | warn / block |
|
|
63
|
+
| Structural detectors | `security.token_detection.enabled` | warn / block |
|
|
64
|
+
| Entropy detector | `security.token_detection.entropy.enabled` | warn / block |
|
|
65
|
+
| Sensitive paths | `security.block_sensitive_paths` | warn / block |
|
|
66
|
+
|
|
67
|
+
`strict_redaction: true` escalates **every** matched signal to `block`
|
|
68
|
+
uniformly; there is no per-layer level override. Excerpts in messages are
|
|
69
|
+
always irreversibly masked.
|
|
49
70
|
|
|
50
71
|
### Configuration
|
|
51
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "brainclaw",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "Shared project memory for humans and coding agents.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -62,6 +62,8 @@
|
|
|
62
62
|
"test:coverage:check": "npm run build:test && c8 --all --check-coverage --lines 55 --functions 60 --branches 65 --statements 55 --src dist-test/src --reporter=text-summary --exclude=dist-test/tests/** --exclude=dist-test/scripts/** node scripts/run-tests.mjs default",
|
|
63
63
|
"bench": "npm run build:test && node scripts/bench.mjs",
|
|
64
64
|
"bench:check": "node scripts/bench-check.mjs",
|
|
65
|
+
"bench:cold-start": "node scripts/bench-cold-start.mjs",
|
|
66
|
+
"bench:cold-start:check": "node scripts/bench-cold-start.mjs --check",
|
|
65
67
|
"prepublishOnly": "npm run build:release && npm run pack:check"
|
|
66
68
|
},
|
|
67
69
|
"keywords": [
|