brainclaw 0.19.5 → 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.
Files changed (151) hide show
  1. package/LICENSE +0 -0
  2. package/README.md +22 -20
  3. package/dist/cli.js +0 -0
  4. package/dist/commands/accept.js +0 -0
  5. package/dist/commands/adapter-openclaw-import.js +0 -0
  6. package/dist/commands/add-step.js +0 -0
  7. package/dist/commands/agent-board.js +0 -0
  8. package/dist/commands/audit.js +0 -0
  9. package/dist/commands/bootstrap.js +0 -0
  10. package/dist/commands/capability.js +0 -0
  11. package/dist/commands/changes.js +0 -0
  12. package/dist/commands/check-constraints.js +0 -0
  13. package/dist/commands/claim-resource.js +0 -0
  14. package/dist/commands/claim.js +0 -0
  15. package/dist/commands/complete-step.js +0 -0
  16. package/dist/commands/constraint.js +0 -0
  17. package/dist/commands/context-diff.js +0 -0
  18. package/dist/commands/context.js +0 -0
  19. package/dist/commands/decision.js +0 -0
  20. package/dist/commands/delete-plan.js +0 -0
  21. package/dist/commands/diff.js +0 -0
  22. package/dist/commands/doctor.js +0 -0
  23. package/dist/commands/enable-agent.js +0 -0
  24. package/dist/commands/env.js +0 -0
  25. package/dist/commands/estimation-report.js +0 -0
  26. package/dist/commands/explore.js +0 -0
  27. package/dist/commands/export.js +0 -0
  28. package/dist/commands/handoff.js +0 -0
  29. package/dist/commands/history.js +0 -0
  30. package/dist/commands/hooks.js +0 -0
  31. package/dist/commands/init.js +0 -0
  32. package/dist/commands/install-hooks.js +0 -0
  33. package/dist/commands/instruction.js +0 -0
  34. package/dist/commands/list-agents.js +0 -0
  35. package/dist/commands/list-claims.js +0 -0
  36. package/dist/commands/list-instructions.js +0 -0
  37. package/dist/commands/list-plans.js +0 -0
  38. package/dist/commands/mcp-worker.js +0 -0
  39. package/dist/commands/mcp.js +0 -0
  40. package/dist/commands/memory.js +0 -0
  41. package/dist/commands/metrics.js +0 -0
  42. package/dist/commands/plan-resource.js +0 -0
  43. package/dist/commands/plan.js +0 -0
  44. package/dist/commands/prune-candidates.js +0 -0
  45. package/dist/commands/prune.js +0 -0
  46. package/dist/commands/pull.js +0 -0
  47. package/dist/commands/push.js +0 -0
  48. package/dist/commands/rebuild.js +0 -0
  49. package/dist/commands/reflect-runtime-note.js +0 -0
  50. package/dist/commands/reflect.js +0 -0
  51. package/dist/commands/register-agent.js +0 -0
  52. package/dist/commands/reject.js +0 -0
  53. package/dist/commands/release-claim.js +0 -0
  54. package/dist/commands/release-claims.js +0 -0
  55. package/dist/commands/review.js +0 -0
  56. package/dist/commands/rollback.js +0 -0
  57. package/dist/commands/runtime-note.js +0 -0
  58. package/dist/commands/runtime-status.js +0 -0
  59. package/dist/commands/search.js +0 -0
  60. package/dist/commands/session-end.js +0 -0
  61. package/dist/commands/session-start.js +0 -0
  62. package/dist/commands/set-trust.js +0 -0
  63. package/dist/commands/setup.js +0 -0
  64. package/dist/commands/show-candidate.js +0 -0
  65. package/dist/commands/star-candidate.js +0 -0
  66. package/dist/commands/status.js +0 -0
  67. package/dist/commands/sync.js +0 -0
  68. package/dist/commands/tool.js +0 -0
  69. package/dist/commands/trap.js +0 -0
  70. package/dist/commands/update-handoff.js +0 -0
  71. package/dist/commands/update-plan.js +0 -0
  72. package/dist/commands/upgrade.js +0 -0
  73. package/dist/commands/use-candidate.js +0 -0
  74. package/dist/commands/version.js +0 -0
  75. package/dist/commands/watch.js +0 -0
  76. package/dist/commands/whoami.js +0 -0
  77. package/dist/core/agent-context.js +0 -0
  78. package/dist/core/agent-files.js +0 -0
  79. package/dist/core/agent-integrations.js +0 -0
  80. package/dist/core/agent-inventory.js +0 -0
  81. package/dist/core/agent-registry.js +0 -0
  82. package/dist/core/ai-agent-detection.js +0 -0
  83. package/dist/core/audit.js +0 -0
  84. package/dist/core/bootstrap.js +0 -0
  85. package/dist/core/brainclaw-version.js +0 -0
  86. package/dist/core/candidates.js +0 -0
  87. package/dist/core/circuit-breaker.js +0 -0
  88. package/dist/core/claims.js +0 -0
  89. package/dist/core/config.js +0 -0
  90. package/dist/core/context-diff.js +0 -0
  91. package/dist/core/context.js +0 -0
  92. package/dist/core/contradictions.js +0 -0
  93. package/dist/core/coordination.js +0 -0
  94. package/dist/core/cross-project.js +0 -0
  95. package/dist/core/duplicates.js +0 -0
  96. package/dist/core/event-log.js +0 -0
  97. package/dist/core/events.js +0 -0
  98. package/dist/core/execution-context.js +0 -0
  99. package/dist/core/freshness.js +0 -0
  100. package/dist/core/global-registry.js +0 -0
  101. package/dist/core/host.js +0 -0
  102. package/dist/core/identity.js +0 -0
  103. package/dist/core/ids.js +0 -0
  104. package/dist/core/input-validation.js +0 -0
  105. package/dist/core/instructions.js +0 -0
  106. package/dist/core/io.js +0 -0
  107. package/dist/core/json-store.js +0 -0
  108. package/dist/core/lifecycle.js +0 -0
  109. package/dist/core/lock.js +0 -0
  110. package/dist/core/logger.js +0 -0
  111. package/dist/core/machine-profile.js +0 -0
  112. package/dist/core/markdown.js +0 -0
  113. package/dist/core/memory-git.js +0 -0
  114. package/dist/core/migration.js +0 -0
  115. package/dist/core/project-registry.js +0 -0
  116. package/dist/core/reflection-safety.js +0 -0
  117. package/dist/core/repo-analysis.js +0 -0
  118. package/dist/core/reputation.js +0 -0
  119. package/dist/core/runtime.js +0 -0
  120. package/dist/core/schema.js +0 -0
  121. package/dist/core/search.js +0 -0
  122. package/dist/core/security.js +0 -0
  123. package/dist/core/setup-state.js +0 -0
  124. package/dist/core/state.js +0 -0
  125. package/dist/core/store-resolution.js +0 -0
  126. package/dist/core/sync-remote.js +0 -0
  127. package/dist/core/traps.js +0 -0
  128. package/docs/adapters/openclaw.md +43 -0
  129. package/docs/cli.md +1230 -0
  130. package/docs/concepts/coordination.md +52 -0
  131. package/docs/concepts/memory.md +87 -0
  132. package/docs/concepts/plans-and-claims.md +139 -0
  133. package/docs/concepts/runtime-notes.md +38 -0
  134. package/docs/concepts/workspace-bootstrapping.md +40 -0
  135. package/docs/context-format-changelog.md +35 -0
  136. package/docs/context-format.md +48 -0
  137. package/docs/integrations/agents.md +169 -0
  138. package/docs/integrations/claude-code.md +23 -0
  139. package/docs/integrations/codex.md +23 -0
  140. package/docs/integrations/copilot.md +21 -0
  141. package/docs/integrations/cursor.md +23 -0
  142. package/docs/integrations/mcp.md +51 -0
  143. package/docs/integrations/overview.md +61 -0
  144. package/docs/mcp-schema-changelog.md +108 -0
  145. package/docs/product/positioning.md +97 -0
  146. package/docs/quickstart.md +99 -0
  147. package/docs/reputation.md +52 -0
  148. package/docs/review.md +43 -0
  149. package/docs/security.md +53 -0
  150. package/docs/storage.md +81 -0
  151. package/package.json +3 -1
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
- [Full quickstart guide](https://github.com/jberdah/brainclaw/blob/master/docs/quickstart.md)
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
- | [docs/quickstart.md](https://github.com/jberdah/brainclaw/blob/master/docs/quickstart.md) | Get started in 5 minutes |
162
- | [docs/cli.md](https://github.com/jberdah/brainclaw/blob/master/docs/cli.md) | Full command reference |
163
- | [docs/concepts/memory.md](https://github.com/jberdah/brainclaw/blob/master/docs/concepts/memory.md) | What "memory" means in brainclaw |
164
- | [docs/concepts/plans-and-claims.md](https://github.com/jberdah/brainclaw/blob/master/docs/concepts/plans-and-claims.md) | Coordination layer |
165
- | [docs/concepts/runtime-notes.md](https://github.com/jberdah/brainclaw/blob/master/docs/concepts/runtime-notes.md) | Ephemeral observations |
166
- | [docs/integrations/overview.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/overview.md) | How to integrate with any agent |
167
- | [docs/integrations/cursor.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/cursor.md) | Cursor |
168
- | [docs/integrations/claude-code.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/claude-code.md) | Claude Code |
169
- | [docs/integrations/copilot.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/copilot.md) | GitHub Copilot |
170
- | [docs/integrations/codex.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/codex.md) | Codex |
171
- | [docs/integrations/mcp.md](https://github.com/jberdah/brainclaw/blob/master/docs/integrations/mcp.md) | MCP tools |
172
- | [docs/storage.md](https://github.com/jberdah/brainclaw/blob/master/docs/storage.md) | Storage model |
173
- | [docs/security.md](https://github.com/jberdah/brainclaw/blob/master/docs/security.md) | Security model |
174
- | [docs/review.md](https://github.com/jberdah/brainclaw/blob/master/docs/review.md) | Reflective review |
175
- | [docs/reputation.md](https://github.com/jberdah/brainclaw/blob/master/docs/reputation.md) | Reputation signals |
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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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/core/host.js CHANGED
File without changes
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
File without changes
File without changes
package/dist/core/lock.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
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
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.