brainclaw 0.19.4 → 0.19.6
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/LICENSE +0 -0
- package/README.md +22 -20
- package/dist/cli.js +0 -0
- package/dist/commands/accept.js +0 -0
- package/dist/commands/adapter-openclaw-import.js +0 -0
- package/dist/commands/add-step.js +0 -0
- package/dist/commands/agent-board.js +0 -0
- package/dist/commands/audit.js +0 -0
- package/dist/commands/bootstrap.js +0 -0
- package/dist/commands/capability.js +0 -0
- package/dist/commands/changes.js +0 -0
- package/dist/commands/check-constraints.js +0 -0
- package/dist/commands/claim-resource.js +0 -0
- package/dist/commands/claim.js +0 -0
- package/dist/commands/complete-step.js +0 -0
- package/dist/commands/constraint.js +0 -0
- package/dist/commands/context-diff.js +0 -0
- package/dist/commands/context.js +0 -0
- package/dist/commands/decision.js +0 -0
- package/dist/commands/delete-plan.js +0 -0
- package/dist/commands/diff.js +0 -0
- package/dist/commands/doctor.js +0 -0
- package/dist/commands/enable-agent.js +0 -0
- package/dist/commands/env.js +0 -0
- package/dist/commands/estimation-report.js +0 -0
- package/dist/commands/explore.js +0 -0
- package/dist/commands/export.js +0 -0
- package/dist/commands/handoff.js +0 -0
- package/dist/commands/history.js +0 -0
- package/dist/commands/hooks.js +0 -0
- package/dist/commands/init.js +0 -0
- package/dist/commands/install-hooks.js +0 -0
- package/dist/commands/instruction.js +0 -0
- package/dist/commands/list-agents.js +0 -0
- package/dist/commands/list-claims.js +0 -0
- package/dist/commands/list-instructions.js +0 -0
- package/dist/commands/list-plans.js +0 -0
- package/dist/commands/mcp-worker.js +0 -0
- package/dist/commands/mcp.js +0 -0
- package/dist/commands/memory.js +0 -0
- package/dist/commands/metrics.js +0 -0
- package/dist/commands/plan-resource.js +0 -0
- package/dist/commands/plan.js +0 -0
- package/dist/commands/prune-candidates.js +0 -0
- package/dist/commands/prune.js +0 -0
- package/dist/commands/pull.js +0 -0
- package/dist/commands/push.js +0 -0
- package/dist/commands/rebuild.js +0 -0
- package/dist/commands/reflect-runtime-note.js +0 -0
- package/dist/commands/reflect.js +0 -0
- package/dist/commands/register-agent.js +0 -0
- package/dist/commands/reject.js +0 -0
- package/dist/commands/release-claim.js +0 -0
- package/dist/commands/release-claims.js +0 -0
- package/dist/commands/review.js +0 -0
- package/dist/commands/rollback.js +0 -0
- package/dist/commands/runtime-note.js +0 -0
- package/dist/commands/runtime-status.js +0 -0
- package/dist/commands/search.js +0 -0
- package/dist/commands/session-end.js +0 -0
- package/dist/commands/session-start.js +0 -0
- package/dist/commands/set-trust.js +0 -0
- package/dist/commands/setup.js +0 -0
- package/dist/commands/show-candidate.js +0 -0
- package/dist/commands/star-candidate.js +0 -0
- package/dist/commands/status.js +0 -0
- package/dist/commands/sync.js +0 -0
- package/dist/commands/tool.js +0 -0
- package/dist/commands/trap.js +0 -0
- package/dist/commands/update-handoff.js +0 -0
- package/dist/commands/update-plan.js +0 -0
- package/dist/commands/upgrade.js +0 -0
- package/dist/commands/use-candidate.js +0 -0
- package/dist/commands/version.js +0 -0
- package/dist/commands/watch.js +0 -0
- package/dist/commands/whoami.js +0 -0
- package/dist/core/agent-context.js +0 -0
- package/dist/core/agent-files.js +0 -0
- package/dist/core/agent-integrations.js +0 -0
- package/dist/core/agent-inventory.js +0 -0
- package/dist/core/agent-registry.js +0 -0
- package/dist/core/ai-agent-detection.js +0 -0
- package/dist/core/audit.js +0 -0
- package/dist/core/bootstrap.js +0 -0
- package/dist/core/brainclaw-version.js +0 -0
- package/dist/core/candidates.js +0 -0
- package/dist/core/circuit-breaker.js +0 -0
- package/dist/core/claims.js +0 -0
- package/dist/core/config.js +0 -0
- package/dist/core/context-diff.js +0 -0
- package/dist/core/context.js +0 -0
- package/dist/core/contradictions.js +0 -0
- package/dist/core/coordination.js +0 -0
- package/dist/core/cross-project.js +0 -0
- package/dist/core/duplicates.js +0 -0
- package/dist/core/event-log.js +0 -0
- package/dist/core/events.js +0 -0
- package/dist/core/execution-context.js +0 -0
- package/dist/core/freshness.js +0 -0
- package/dist/core/global-registry.js +0 -0
- package/dist/core/host.js +0 -0
- package/dist/core/identity.js +0 -0
- package/dist/core/ids.js +0 -0
- package/dist/core/input-validation.js +0 -0
- package/dist/core/instructions.js +0 -0
- package/dist/core/io.js +0 -0
- package/dist/core/json-store.js +0 -0
- package/dist/core/lifecycle.js +0 -0
- package/dist/core/lock.js +0 -0
- package/dist/core/logger.js +0 -0
- package/dist/core/machine-profile.js +0 -0
- package/dist/core/markdown.js +0 -0
- package/dist/core/memory-git.js +0 -0
- package/dist/core/migration.js +0 -0
- package/dist/core/project-registry.js +0 -0
- package/dist/core/reflection-safety.js +0 -0
- package/dist/core/repo-analysis.js +0 -0
- package/dist/core/reputation.js +0 -0
- package/dist/core/runtime.js +0 -0
- package/dist/core/schema.js +0 -0
- package/dist/core/search.js +0 -0
- package/dist/core/security.js +0 -0
- package/dist/core/setup-state.js +0 -0
- package/dist/core/state.js +0 -0
- package/dist/core/store-resolution.js +0 -0
- package/dist/core/sync-remote.js +0 -0
- package/dist/core/traps.js +0 -0
- package/docs/adapters/openclaw.md +43 -0
- package/docs/cli.md +1230 -0
- package/docs/concepts/coordination.md +52 -0
- package/docs/concepts/memory.md +87 -0
- package/docs/concepts/plans-and-claims.md +139 -0
- package/docs/concepts/runtime-notes.md +38 -0
- package/docs/concepts/workspace-bootstrapping.md +40 -0
- package/docs/context-format-changelog.md +35 -0
- package/docs/context-format.md +48 -0
- package/docs/integrations/agents.md +169 -0
- package/docs/integrations/claude-code.md +23 -0
- package/docs/integrations/codex.md +23 -0
- package/docs/integrations/copilot.md +21 -0
- package/docs/integrations/cursor.md +23 -0
- package/docs/integrations/mcp.md +51 -0
- package/docs/integrations/overview.md +61 -0
- package/docs/mcp-schema-changelog.md +108 -0
- package/docs/product/positioning.md +97 -0
- package/docs/quickstart.md +99 -0
- package/docs/reputation.md +52 -0
- package/docs/review.md +43 -0
- package/docs/security.md +53 -0
- package/docs/storage.md +81 -0
- package/package.json +4 -2
package/LICENSE
CHANGED
|
File without changes
|
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ brainclaw plan create "Coordinate auth rollout" --priority high
|
|
|
118
118
|
brainclaw context --json
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
Detailed Markdown guides are bundled in the npm package under `docs/`.
|
|
122
122
|
|
|
123
123
|
---
|
|
124
124
|
|
|
@@ -154,25 +154,27 @@ brainclaw can also expose collaboration views through MCP-readable tools, includ
|
|
|
154
154
|
|
|
155
155
|
---
|
|
156
156
|
|
|
157
|
-
## Documentation
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
|
162
|
-
|
|
163
|
-
|
|
|
164
|
-
|
|
|
165
|
-
|
|
|
166
|
-
|
|
|
167
|
-
|
|
|
168
|
-
|
|
|
169
|
-
|
|
|
170
|
-
|
|
|
171
|
-
|
|
|
172
|
-
|
|
|
173
|
-
|
|
|
174
|
-
|
|
|
175
|
-
|
|
|
157
|
+
## Documentation
|
|
158
|
+
|
|
159
|
+
The npm package includes the Markdown docs below under `docs/`. Public web docs on `brainclaw.dev` are still being rolled out, so the npm README does not depend on private GitHub links.
|
|
160
|
+
|
|
161
|
+
| | |
|
|
162
|
+
|---|---|
|
|
163
|
+
| `docs/quickstart.md` | Get started in 5 minutes |
|
|
164
|
+
| `docs/cli.md` | Full command reference |
|
|
165
|
+
| `docs/concepts/memory.md` | What "memory" means in brainclaw |
|
|
166
|
+
| `docs/concepts/plans-and-claims.md` | Coordination layer |
|
|
167
|
+
| `docs/concepts/runtime-notes.md` | Ephemeral observations |
|
|
168
|
+
| `docs/integrations/overview.md` | How to integrate with any agent |
|
|
169
|
+
| `docs/integrations/cursor.md` | Cursor |
|
|
170
|
+
| `docs/integrations/claude-code.md` | Claude Code |
|
|
171
|
+
| `docs/integrations/copilot.md` | GitHub Copilot |
|
|
172
|
+
| `docs/integrations/codex.md` | Codex |
|
|
173
|
+
| `docs/integrations/mcp.md` | MCP tools |
|
|
174
|
+
| `docs/storage.md` | Storage model |
|
|
175
|
+
| `docs/security.md` | Security model |
|
|
176
|
+
| `docs/review.md` | Reflective review |
|
|
177
|
+
| `docs/reputation.md` | Reputation signals |
|
|
176
178
|
|
|
177
179
|
---
|
|
178
180
|
|
package/dist/cli.js
CHANGED
|
File without changes
|
package/dist/commands/accept.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/audit.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/changes.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/claim.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/context.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/diff.js
CHANGED
|
File without changes
|
package/dist/commands/doctor.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/commands/env.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/commands/explore.js
CHANGED
|
File without changes
|
package/dist/commands/export.js
CHANGED
|
File without changes
|
package/dist/commands/handoff.js
CHANGED
|
File without changes
|
package/dist/commands/history.js
CHANGED
|
File without changes
|
package/dist/commands/hooks.js
CHANGED
|
File without changes
|
package/dist/commands/init.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/mcp.js
CHANGED
|
File without changes
|
package/dist/commands/memory.js
CHANGED
|
File without changes
|
package/dist/commands/metrics.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/commands/plan.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/commands/prune.js
CHANGED
|
File without changes
|
package/dist/commands/pull.js
CHANGED
|
File without changes
|
package/dist/commands/push.js
CHANGED
|
File without changes
|
package/dist/commands/rebuild.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/commands/reflect.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/commands/reject.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/review.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/search.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/setup.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/status.js
CHANGED
|
File without changes
|
package/dist/commands/sync.js
CHANGED
|
File without changes
|
package/dist/commands/tool.js
CHANGED
|
File without changes
|
package/dist/commands/trap.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/commands/upgrade.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/commands/version.js
CHANGED
|
File without changes
|
package/dist/commands/watch.js
CHANGED
|
File without changes
|
package/dist/commands/whoami.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/agent-files.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/core/audit.js
CHANGED
|
File without changes
|
package/dist/core/bootstrap.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/candidates.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/claims.js
CHANGED
|
File without changes
|
package/dist/core/config.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/context.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/core/duplicates.js
CHANGED
|
File without changes
|
package/dist/core/event-log.js
CHANGED
|
File without changes
|
package/dist/core/events.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/freshness.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/host.js
CHANGED
|
File without changes
|
package/dist/core/identity.js
CHANGED
|
File without changes
|
package/dist/core/ids.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/core/io.js
CHANGED
|
File without changes
|
package/dist/core/json-store.js
CHANGED
|
File without changes
|
package/dist/core/lifecycle.js
CHANGED
|
File without changes
|
package/dist/core/lock.js
CHANGED
|
File without changes
|
package/dist/core/logger.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/markdown.js
CHANGED
|
File without changes
|
package/dist/core/memory-git.js
CHANGED
|
File without changes
|
package/dist/core/migration.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/core/reputation.js
CHANGED
|
File without changes
|
package/dist/core/runtime.js
CHANGED
|
File without changes
|
package/dist/core/schema.js
CHANGED
|
File without changes
|
package/dist/core/search.js
CHANGED
|
File without changes
|
package/dist/core/security.js
CHANGED
|
File without changes
|
package/dist/core/setup-state.js
CHANGED
|
File without changes
|
package/dist/core/state.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/core/sync-remote.js
CHANGED
|
File without changes
|
package/dist/core/traps.js
CHANGED
|
File without changes
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# OpenClaw Adapter Guide
|
|
2
|
+
|
|
3
|
+
This adapter helps convert OpenClaw runtime traces into brainclaw candidates.
|
|
4
|
+
|
|
5
|
+
## Supported Inputs
|
|
6
|
+
|
|
7
|
+
- Runtime event file: JSON array of events.
|
|
8
|
+
- Runtime session import: events filtered by `metadata.session` from `.brainclaw/runtime/`.
|
|
9
|
+
|
|
10
|
+
## Basic Usage
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
brainclaw adapter-openclaw-import ./openclaw-events.json
|
|
14
|
+
brainclaw adapter-openclaw-import --session sess_42
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Dry-Run Workflow
|
|
18
|
+
|
|
19
|
+
Use `--dry-run` to preview what would be ingested without writing any files:
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
brainclaw adapter-openclaw-import ./openclaw-events.json --dry-run
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Dry-run is useful for CI checks and for validating mapping quality before modifying `.brainclaw/inbox/`.
|
|
26
|
+
|
|
27
|
+
## Event Mapping
|
|
28
|
+
|
|
29
|
+
Current mapping converts events into reflective candidate types:
|
|
30
|
+
|
|
31
|
+
- `risk_detected` -> `trap`
|
|
32
|
+
- `handoff_requested` -> `handoff`
|
|
33
|
+
- `observation` -> `decision`
|
|
34
|
+
- `constraint_detected` -> `constraint`
|
|
35
|
+
|
|
36
|
+
If an event type is unknown, it defaults to `decision`.
|
|
37
|
+
|
|
38
|
+
## Recommended Team Flow
|
|
39
|
+
|
|
40
|
+
1. Import events from file or session.
|
|
41
|
+
2. Run `brainclaw review --prioritized`.
|
|
42
|
+
3. Curators process with `brainclaw accept` or `brainclaw reject`.
|
|
43
|
+
4. Use `brainclaw doctor` or `brainclaw doctor --json` to monitor quality.
|