brain-wiki 0.1.0.dev0__py3-none-any.whl

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 (141) hide show
  1. brain_wiki-0.1.0.dev0.dist-info/METADATA +231 -0
  2. brain_wiki-0.1.0.dev0.dist-info/RECORD +141 -0
  3. brain_wiki-0.1.0.dev0.dist-info/WHEEL +4 -0
  4. brain_wiki-0.1.0.dev0.dist-info/entry_points.txt +4 -0
  5. brain_wiki-0.1.0.dev0.dist-info/licenses/LICENSE +202 -0
  6. brainwiki/__init__.py +17 -0
  7. brainwiki/__main__.py +5 -0
  8. brainwiki/assets/plugin/.claude-plugin/marketplace.json +16 -0
  9. brainwiki/assets/plugin/.claude-plugin/plugin.json +19 -0
  10. brainwiki/assets/plugin/.mcp.json +16 -0
  11. brainwiki/assets/plugin/mcp.json +17 -0
  12. brainwiki/assets/plugin/mcp_config.json +15 -0
  13. brainwiki/assets/plugin/plugin.json +37 -0
  14. brainwiki/assets/plugin/rules/brain-wiki.md +30 -0
  15. brainwiki/assets/plugin/server.json +30 -0
  16. brainwiki/assets/plugin/skills/brain/SKILL.md +145 -0
  17. brainwiki/assets/plugin/skills/brain/references/format.md +149 -0
  18. brainwiki/assets/plugin/skills/brain-maintain/SKILL.md +111 -0
  19. brainwiki/assets/plugin/skills/brain-maintain/references/consolidate.md +91 -0
  20. brainwiki/assets/plugin/skills/brain-maintain/references/harvest.md +144 -0
  21. brainwiki/assets/plugin/skills/brain-setup/SKILL.md +184 -0
  22. brainwiki/assets/plugin/skills/brain-setup/references/hosts.md +88 -0
  23. brainwiki/assets/plugin/skills/brain-setup/references/privacy.md +67 -0
  24. brainwiki/assets/prompts/consolidate.md +89 -0
  25. brainwiki/assets/prompts/distill.md +96 -0
  26. brainwiki/assets/prompts/harvest.md +142 -0
  27. brainwiki/bench/__init__.py +8 -0
  28. brainwiki/bench/_generate.py +440 -0
  29. brainwiki/bench/_report.py +166 -0
  30. brainwiki/bench/_suites.py +959 -0
  31. brainwiki/cli/__init__.py +7 -0
  32. brainwiki/cli/_cmd_bench.py +101 -0
  33. brainwiki/cli/_cmd_browse.py +281 -0
  34. brainwiki/cli/_cmd_consolidate.py +108 -0
  35. brainwiki/cli/_cmd_core.py +155 -0
  36. brainwiki/cli/_cmd_harvest.py +137 -0
  37. brainwiki/cli/_cmd_hosts.py +52 -0
  38. brainwiki/cli/_cmd_import.py +149 -0
  39. brainwiki/cli/_cmd_lint.py +117 -0
  40. brainwiki/cli/_cmd_read.py +131 -0
  41. brainwiki/cli/_cmd_runs.py +66 -0
  42. brainwiki/cli/_cmd_viz.py +57 -0
  43. brainwiki/cli/_cmd_write.py +122 -0
  44. brainwiki/cli/_main.py +511 -0
  45. brainwiki/cli/_output.py +19 -0
  46. brainwiki/config/__init__.py +56 -0
  47. brainwiki/config/_dirs.py +69 -0
  48. brainwiki/config/_manifest.py +307 -0
  49. brainwiki/config/_resolve.py +169 -0
  50. brainwiki/config/_user.py +183 -0
  51. brainwiki/consolidate/__init__.py +19 -0
  52. brainwiki/consolidate/_apply.py +408 -0
  53. brainwiki/consolidate/_packet.py +489 -0
  54. brainwiki/consolidate/_pipeline.py +215 -0
  55. brainwiki/consolidate/_presets.py +230 -0
  56. brainwiki/consolidate/_review.py +104 -0
  57. brainwiki/consolidate/_schema.py +153 -0
  58. brainwiki/consolidate/_validate.py +252 -0
  59. brainwiki/doctor.py +216 -0
  60. brainwiki/engine.py +80 -0
  61. brainwiki/errors.py +81 -0
  62. brainwiki/format/__init__.py +112 -0
  63. brainwiki/format/_agents_md.py +26 -0
  64. brainwiki/format/_claims.py +95 -0
  65. brainwiki/format/_document.py +203 -0
  66. brainwiki/format/_edit.py +94 -0
  67. brainwiki/format/_episode.py +67 -0
  68. brainwiki/format/_fields.py +350 -0
  69. brainwiki/format/_frontmatter.py +175 -0
  70. brainwiki/format/_links.py +72 -0
  71. brainwiki/format/_meta.py +67 -0
  72. brainwiki/format/_normalize.py +70 -0
  73. brainwiki/format/_relations.py +211 -0
  74. brainwiki/format/_rules.py +41 -0
  75. brainwiki/harvest.py +414 -0
  76. brainwiki/hosts/__init__.py +22 -0
  77. brainwiki/hosts/_antigravity.py +163 -0
  78. brainwiki/hosts/_claude_code.py +174 -0
  79. brainwiki/hosts/_codex.py +149 -0
  80. brainwiki/hosts/_connect.py +443 -0
  81. brainwiki/hosts/_detect.py +39 -0
  82. brainwiki/hosts/_instructions.py +220 -0
  83. brainwiki/hosts/_sessions.py +176 -0
  84. brainwiki/ids.py +69 -0
  85. brainwiki/importer/__init__.py +17 -0
  86. brainwiki/importer/_episodes.py +112 -0
  87. brainwiki/importer/_into.py +102 -0
  88. brainwiki/importer/_normalize.py +64 -0
  89. brainwiki/importer/_overlay.py +199 -0
  90. brainwiki/importer/_survey.py +167 -0
  91. brainwiki/index/__init__.py +44 -0
  92. brainwiki/index/_brains.py +119 -0
  93. brainwiki/index/_db.py +131 -0
  94. brainwiki/index/_guards.py +154 -0
  95. brainwiki/index/_neighbors.py +174 -0
  96. brainwiki/index/_orient.py +400 -0
  97. brainwiki/index/_read.py +285 -0
  98. brainwiki/index/_resolver.py +147 -0
  99. brainwiki/index/_scanner.py +665 -0
  100. brainwiki/index/_schema.py +164 -0
  101. brainwiki/index/_search.py +659 -0
  102. brainwiki/index/_topics.py +253 -0
  103. brainwiki/index/_written.py +29 -0
  104. brainwiki/lifecycle.py +158 -0
  105. brainwiki/lint/__init__.py +20 -0
  106. brainwiki/lint/_catalog.py +85 -0
  107. brainwiki/lint/_cross.py +649 -0
  108. brainwiki/lint/_files.py +483 -0
  109. brainwiki/lint/_fixes.py +87 -0
  110. brainwiki/lint/_hook.py +54 -0
  111. brainwiki/lint/_model.py +103 -0
  112. brainwiki/lint/_reports.py +242 -0
  113. brainwiki/lint/_runner.py +156 -0
  114. brainwiki/logs.py +34 -0
  115. brainwiki/mcp/__init__.py +7 -0
  116. brainwiki/mcp/_server.py +917 -0
  117. brainwiki/origin.py +97 -0
  118. brainwiki/runs/__init__.py +21 -0
  119. brainwiki/runs/_git.py +89 -0
  120. brainwiki/runs/_lock.py +42 -0
  121. brainwiki/runs/_record.py +145 -0
  122. brainwiki/runs/_transaction.py +441 -0
  123. brainwiki/runs/_undo.py +159 -0
  124. brainwiki/setup_wizard.py +143 -0
  125. brainwiki/store/__init__.py +7 -0
  126. brainwiki/store/_local.py +153 -0
  127. brainwiki/viz/__init__.py +9 -0
  128. brainwiki/viz/_export.py +414 -0
  129. brainwiki/viz/_lod.py +455 -0
  130. brainwiki/viz/_server.py +327 -0
  131. brainwiki/viz/app/BUILD_INFO.json +5 -0
  132. brainwiki/viz/app/THIRD_PARTY_NOTICES.txt +1519 -0
  133. brainwiki/viz/app/assets/index-gK1pnQdO.js +4496 -0
  134. brainwiki/viz/app/assets/style-Cg8NUCst.css +1 -0
  135. brainwiki/viz/app/index.html +14 -0
  136. brainwiki/write/__init__.py +23 -0
  137. brainwiki/write/_edits.py +730 -0
  138. brainwiki/write/_episode.py +195 -0
  139. brainwiki/write/_move.py +181 -0
  140. brainwiki/write/_rules.py +204 -0
  141. brainwiki/write/_secrets.py +108 -0
@@ -0,0 +1,231 @@
1
+ Metadata-Version: 2.5
2
+ Name: brain-wiki
3
+ Version: 0.1.0.dev0
4
+ Summary: A local-first second brain for AI agents, kept as plain Markdown that you own.
5
+ Project-URL: Homepage, https://github.com/brain-wiki/brain-wiki
6
+ Project-URL: Documentation, https://github.com/brain-wiki/brain-wiki/tree/main/docs/user
7
+ Project-URL: Repository, https://github.com/brain-wiki/brain-wiki
8
+ Project-URL: Issues, https://github.com/brain-wiki/brain-wiki/issues
9
+ Project-URL: Changelog, https://github.com/brain-wiki/brain-wiki/blob/main/CHANGELOG.md
10
+ Author: brain-wiki contributors
11
+ License-Expression: Apache-2.0
12
+ License-File: LICENSE
13
+ Keywords: agents,knowledge-base,markdown,mcp,memory,obsidian
14
+ Classifier: Development Status :: 3 - Alpha
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: End Users/Desktop
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3 :: Only
22
+ Classifier: Programming Language :: Python :: 3.11
23
+ Classifier: Programming Language :: Python :: 3.12
24
+ Classifier: Programming Language :: Python :: 3.13
25
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
26
+ Classifier: Topic :: Text Processing :: Markup :: Markdown
27
+ Requires-Python: >=3.11
28
+ Requires-Dist: filelock>=3.12
29
+ Requires-Dist: jsonschema>=4.20
30
+ Requires-Dist: mcp<3,>=2.3
31
+ Requires-Dist: pyyaml>=6.0
32
+ Requires-Dist: tomlkit>=0.12
33
+ Description-Content-Type: text/markdown
34
+
35
+ # brain-wiki
36
+
37
+ <!-- mcp-name: io.github.brain-wiki/brain-wiki -->
38
+
39
+ **One long-term memory for all your AI agents, kept as plain Markdown that you own.**
40
+
41
+ [![CI](https://github.com/brain-wiki/brain-wiki/actions/workflows/ci.yml/badge.svg)](https://github.com/brain-wiki/brain-wiki/actions/workflows/ci.yml)
42
+ [![PyPI](https://img.shields.io/pypi/v/brain-wiki)](https://pypi.org/project/brain-wiki/)
43
+ [![Python](https://img.shields.io/pypi/pyversions/brain-wiki)](https://pypi.org/project/brain-wiki/)
44
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/brain-wiki/brain-wiki/blob/main/LICENSE)
45
+
46
+ brain-wiki gives Claude Code, Codex and the ChatGPT desktop app, Antigravity,
47
+ OpenClaw, Cursor, and any MCP client one shared brain: a folder of Markdown
48
+ notes they search before answering, cite when they rely on it, and keep up to
49
+ date as they work. It runs on your machine, needs no server or API keys, and
50
+ the brain opens in Obsidian.
51
+
52
+ [Getting started](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/getting-started.md) ·
53
+ [Connecting agents](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/agents.md) ·
54
+ [User guide](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/README.md) ·
55
+ [Design](https://github.com/brain-wiki/brain-wiki/blob/main/docs/design/README.md) ·
56
+ [Changelog](https://github.com/brain-wiki/brain-wiki/blob/main/CHANGELOG.md)
57
+
58
+ ## Why brain-wiki
59
+
60
+ - **Plain files you own.** A brain is a folder of Markdown notes you can
61
+ read, edit, diff, back up, and sync like any other folder. Bring an
62
+ existing Obsidian vault as it is.
63
+ - **Every agent, one brain.** What you teach one agent, the others know. A
64
+ short instruction block tells each agent the brain is there, and a
65
+ briefing gives it your standing rules and what the brain holds.
66
+ - **Answers that know what changed.** Notes connect through typed relations
67
+ (`part_of`, `depends_on`, `conflicts_with`, `supersedes`, `related_to`).
68
+ When a note has been replaced or contradicted, search returns the note
69
+ that qualifies it together with it.
70
+ - **Safe changes.** Agents log what they learn to an inbox and fold it into
71
+ notes through small validated operations. When they correct a note
72
+ directly, `brain check` refuses lost or reworded facts before recording
73
+ it. Every change is recorded, committed to git if the brain is a
74
+ repository, and can be undone.
75
+ - **Your agent does the thinking.** Consolidation and harvesting run inside
76
+ the agent you already use. brain-wiki makes no network calls of its own.
77
+
78
+ ## Get started
79
+
80
+ brain-wiki needs Python 3.11 or newer with SQLite FTS5, which the python.org,
81
+ uv, Homebrew, and most Linux builds include, and [uv](https://docs.astral.sh/uv/).
82
+
83
+ **1. Add brain-wiki to your agent.**
84
+
85
+ | Agent | Install the plugin |
86
+ |---|---|
87
+ | Claude Code | `/plugin marketplace add brain-wiki/brain-wiki`, then `/plugin install brain-wiki@brain-wiki` |
88
+ | Codex / ChatGPT desktop | `codex plugin marketplace add brain-wiki/brain-wiki`, then enable brain-wiki in the plugin browser |
89
+ | Antigravity | `agy plugin install https://github.com/brain-wiki/brain-wiki` |
90
+ | OpenClaw, Cursor, other MCP clients | Install the command, then `brain connect openclaw`, `brain connect cursor`, or `brain connect generic --print` (see below) |
91
+
92
+ **2. Ask your agent to set it up.**
93
+
94
+ > Set up brain-wiki.
95
+
96
+ The `brain-setup` skill explains each choice, lets you decide, and shows
97
+ every change before making it:
98
+
99
+ - where your brain lives (a new folder, or an Obsidian vault adopted in
100
+ place) and whether to track it with git;
101
+ - which other agents on this machine to connect;
102
+ - what each agent may do: log what it learns and correct notes (on by
103
+ default), consolidate the inbox, and propose rules that you confirm;
104
+ - whether to turn past sessions into episodes (harvest).
105
+
106
+ **3. Use it.**
107
+
108
+ > Remember that Lumen keeps attachments next to their notes, because
109
+ > Obsidian expects relative paths.
110
+
111
+ > What did we decide about attachments?
112
+
113
+ > Consolidate my brain.
114
+
115
+ ### From a terminal
116
+
117
+ ```sh
118
+ uv tool install brain-wiki # or: pipx install brain-wiki
119
+ brain doctor # checks SQLite, your brains, and the agents on this machine
120
+ brain init ~/brains/personal --name personal --git
121
+ brain connect claude-code # or codex, antigravity, openclaw, cursor; try --dry-run first
122
+ brain log "Lumen keeps attachments next to their notes; Obsidian expects relative paths."
123
+ brain search "attachments"
124
+ brain viz # a local 3D map of the brain
125
+ ```
126
+
127
+ Keep brains outside your code repositories. Agents may log and correct
128
+ notes by default; to let one consolidate or propose rules, give it a profile
129
+ in the brain's `brain.toml`:
130
+
131
+ ```toml
132
+ [agents.claude-code]
133
+ write = ["episodes", "edit", "consolidate", "propose_rules"]
134
+ ```
135
+
136
+ Marketplace installs start the server with `uvx`. With the command
137
+ installed, `brain connect` starts it at once, and `--uninstall` reverses it.
138
+
139
+ ## How it works
140
+
141
+ ```text
142
+ agents ──log · harvest────────────────────────► inbox/episodes/
143
+ │ ▲ │
144
+ │ │ │ consolidate, when you ask:
145
+ │ │ │ your agent proposes ops,
146
+ │ │ │ brain-wiki validates them
147
+ │ │ ▼
148
+ │ └── orient · search · read · neighbors ─── topics/**/*.md ◄── you, in Obsidian
149
+ │ (with the notes that supersede or conflict) ▲
150
+ └── edit, then brain check ─────────────────────────────┘
151
+ ```
152
+
153
+ - **Agents write in two ways.** They log what they learn as episodes in
154
+ `inbox/episodes/`, and `brain harvest` adds more from their past
155
+ sessions. To fix a note, such as a person's new role, an agent edits
156
+ the file and runs `brain check`, which refuses deleted or reworded facts.
157
+ - **Consolidation runs in your agent, when you ask.** brain-wiki packages
158
+ the pending episodes, your agent proposes small operations (add a claim,
159
+ supersede one, link two notes, create a note), and brain-wiki validates
160
+ and applies them, then moves the episodes to `archive/episodes/`.
161
+ brain-wiki never consolidates on its own.
162
+ - **Every change is a run.** Consolidation and checked edits are locked,
163
+ validated, logged in `log.md`, committed to git if the brain is a
164
+ repository, and reversible with `brain undo`.
165
+ - **The brain** is a folder: `topics/` holds curated notes, one folder per
166
+ topic and nested to any depth, each with a hub (`index.md`); `rules.md`
167
+ holds standing rules that only you add; `AGENTS.md` tells agents that only
168
+ read files how to use the brain.
169
+ - **The index** is a SQLite FTS5 database outside the brain, kept current
170
+ as files change and rebuilt from the brain when it is missing.
171
+ - **Agents** connect through an MCP server with thirteen tools, a plugin
172
+ with three skills, and an instruction block that tells them when to use
173
+ the brain.
174
+
175
+ | Agent | Tools | Instructions | Harvest |
176
+ |---|---|---|---|
177
+ | Claude Code | yes | yes | yes |
178
+ | Codex / ChatGPT desktop | yes | yes | yes |
179
+ | Antigravity | yes | yes | yes |
180
+ | OpenClaw | yes | yes | no |
181
+ | Cursor | yes | yes | no |
182
+ | Any MCP client | yes | printed | no |
183
+
184
+ ## Documentation
185
+
186
+ | Goal | Start here |
187
+ |---|---|
188
+ | Install and create a brain | [Getting started](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/getting-started.md) |
189
+ | Connect agents and harvest | [Agents](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/agents.md) |
190
+ | Consolidate, review, lint, and undo | [Maintenance](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/maintenance.md) |
191
+ | Bring an existing vault | [Import](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/import.md) |
192
+ | What agents may read and change | [Privacy and safety](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/privacy.md) |
193
+ | Commands, MCP tools, and files | [Reference](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/reference.md) |
194
+ | How it is built | [Design](https://github.com/brain-wiki/brain-wiki/blob/main/docs/design/README.md) · [Proposals](https://github.com/brain-wiki/brain-wiki/blob/main/docs/proposals/README.md) |
195
+
196
+ ## Status
197
+
198
+ brain-wiki is alpha software at its first release. Its known limitations:
199
+
200
+ - There are no privacy levels inside a brain: every agent that may use a
201
+ brain reads all of it. Keep separate parts of your life in separate brains.
202
+ - Maintenance runs when you ask your agent; there is no scheduler.
203
+ - Chat apps that need a remote MCP server (ChatGPT, claude.ai, the Gemini
204
+ app) are not supported yet.
205
+
206
+ Plans for each are in [docs/proposals](https://github.com/brain-wiki/brain-wiki/blob/main/docs/proposals/README.md).
207
+
208
+ ## Contributing
209
+
210
+ ```sh
211
+ git clone https://github.com/brain-wiki/brain-wiki.git
212
+ cd brain-wiki
213
+ uv sync
214
+ uv run scripts/check.py # everything CI runs
215
+ ```
216
+
217
+ See
218
+ [CONTRIBUTING.md](https://github.com/brain-wiki/brain-wiki/blob/main/CONTRIBUTING.md).
219
+ The visualizer's source is in
220
+ [brain-wiki-viz](https://github.com/brain-wiki/brain-wiki-viz).
221
+
222
+ ## Security
223
+
224
+ Report vulnerabilities privately, as described in
225
+ [SECURITY.md](https://github.com/brain-wiki/brain-wiki/blob/main/SECURITY.md).
226
+
227
+ ## License
228
+
229
+ [Apache License 2.0](https://github.com/brain-wiki/brain-wiki/blob/main/LICENSE).
230
+ The bundled visualizer's third-party licenses are in
231
+ [THIRD_PARTY_NOTICES.txt](https://github.com/brain-wiki/brain-wiki/blob/main/src/brainwiki/viz/app/THIRD_PARTY_NOTICES.txt).
@@ -0,0 +1,141 @@
1
+ brainwiki/__init__.py,sha256=QevQneYnwJWp7ujDILnMRDNtTtG9qtOIOh_icBvRt4M,553
2
+ brainwiki/__main__.py,sha256=Llzi-J1iqeQwh4GeMN8CEwXW4iMZ31WrDJs7ZEgsvu0,61
3
+ brainwiki/doctor.py,sha256=QKz-wiYyvdk21u4ekvY2rbeATce-p1Wo4BJF7Oc599E,8022
4
+ brainwiki/engine.py,sha256=Zqrn8U9hrqHJ0hYLO0zsJXqVSFCKJuZXSxJTb8JEi9U,2353
5
+ brainwiki/errors.py,sha256=16KVdgmEEYMLAsZj8cmxttUqk2itktQIOsc_c1_VLEU,1405
6
+ brainwiki/harvest.py,sha256=sulhfOb_12RiFlbZueAA9aRylPzwzp0y_kEYYdRVFUU,15638
7
+ brainwiki/ids.py,sha256=DhM74_qHYdZQ3Kuqke4zGKURagr7fvr3mfrf0brfZ6c,1675
8
+ brainwiki/lifecycle.py,sha256=3GjTbAg_an9v_zl86CULliWhUo_1JEVWffaoI8UjBiE,6383
9
+ brainwiki/logs.py,sha256=GR6bvrZc-h1Y5-MX-nSz0i2nZ8kAHnOlYpI49NtQ0Is,1061
10
+ brainwiki/origin.py,sha256=ZOVeYFFZeNdALkP5EIif4SiYfj5innlgvZvHhy6IkNc,3687
11
+ brainwiki/setup_wizard.py,sha256=4dd4ifoyLpPEhw1DcZqnKB-mfqho-qVO16WCoIobQXc,5831
12
+ brainwiki/assets/prompts/consolidate.md,sha256=cd5RkrykWLTQQrSDvxnivXXZOLQKVyJvHxeInUnYTrY,5020
13
+ brainwiki/assets/prompts/distill.md,sha256=aO1porMoWI5LN9C3mzudofwOD9H3D-gJgY_1o-_8BbQ,4568
14
+ brainwiki/assets/prompts/harvest.md,sha256=AUwbFYsS97mg-9IP8ZiUZATHcu-uo1FPYMFEGAVK_UU,6884
15
+ brainwiki/bench/__init__.py,sha256=zoPCXq6VqzSm-pPdnPIYE_i3-uKnFMn9ndvm7rPWuHU,244
16
+ brainwiki/bench/_generate.py,sha256=pJdwwbWODqvQssBxd9bUJOiw01PptOKGfRkNNSSMzco,17105
17
+ brainwiki/bench/_report.py,sha256=rRwdp2hdY40cUfETXThPnMqKe3NX0nx-tQOSqYnvRrU,6689
18
+ brainwiki/bench/_suites.py,sha256=JgIkXJaoYOaGpmTUR5ht4UIT6_Tx_VYBpPd5r72r76U,38455
19
+ brainwiki/cli/__init__.py,sha256=E1GcxNIu7uJgFgmYy_tqDsygZ2unk9-pTnbEUtDY_oY,144
20
+ brainwiki/cli/_cmd_bench.py,sha256=0cuP6MpaVZcmpTw9sbv6fLL1yGgIQaW05nbU_KOLtB8,4037
21
+ brainwiki/cli/_cmd_browse.py,sha256=ihN03xAxXByzKVi7_8G4eyryf0WfMQ9BsMJM0mttXJ0,9620
22
+ brainwiki/cli/_cmd_consolidate.py,sha256=_lP24fW0VzClKZ_mPOXcEQO5N3-gpXhz8rO3IzintuI,4344
23
+ brainwiki/cli/_cmd_core.py,sha256=8re5SM2byZao3hwai8fudk3Kk-EuuXC_egQrQs1zaT8,5342
24
+ brainwiki/cli/_cmd_harvest.py,sha256=tGqNXibBuz0i3AQNhB1pG2ga3HVpD41FtoJL3avA06E,5444
25
+ brainwiki/cli/_cmd_hosts.py,sha256=V2Qx1nPKjHmEEfsDx331VKQ0_JPnBxd77a9gYdh_NZ0,1822
26
+ brainwiki/cli/_cmd_import.py,sha256=FqNFz_N5cbQeDekgn6OzRoAB8IJ5O8LhpsE8u-duWSk,5280
27
+ brainwiki/cli/_cmd_lint.py,sha256=N6ouhqs4GE6dhTFuQFyDxJ4k4tbpgqJF5JQamMD1Dac,4102
28
+ brainwiki/cli/_cmd_read.py,sha256=ZdzcAgRdw5o_UXHk0-M5wrTjbJ2PNYfuItKaSUNYziY,3963
29
+ brainwiki/cli/_cmd_runs.py,sha256=wv17lA8hKG5BMPm3Y9KIE8mqYY78DBIcd-LY9i9gWqM,2496
30
+ brainwiki/cli/_cmd_viz.py,sha256=N72zQYyNipTACrab6f91Nm74UZGOgNEWiP4FKy36koY,1787
31
+ brainwiki/cli/_cmd_write.py,sha256=PHOxGs3E08DVayC1B_tyH-XrHPMNAF1gp2ywM61X0ns,4726
32
+ brainwiki/cli/_main.py,sha256=3TkpZ04hj0Y99RiuFSfN4HKypJ8UXsO3pTtEZu2yK_g,21608
33
+ brainwiki/cli/_output.py,sha256=Zkz_IseoqfC158sdQSlAU3hN0JU6Qu439SlhgjIPwF0,504
34
+ brainwiki/config/__init__.py,sha256=sb74uupCcTR8Tlo9M8lfAZ1yO-LtZVDJCdBo2-zh_MI,1108
35
+ brainwiki/config/_dirs.py,sha256=ht-PVO6j2rgGcWAXXGxjSyMCmlPZKyyP1-kymh1koSY,2021
36
+ brainwiki/config/_manifest.py,sha256=jGzGVTLYm1QQpSfCYQVdsXxML9iB1xtvbshp6ocjoeM,10341
37
+ brainwiki/config/_resolve.py,sha256=mi7U7ReWu_SN-pUI3CZkh3jZyZV1E-yaUtv8lg5L5v4,5855
38
+ brainwiki/config/_user.py,sha256=LcEcDzBNbjI_sD-IwP6B066jOEFtEPIm-L31QFhRzZg,5838
39
+ brainwiki/consolidate/__init__.py,sha256=WB5a-QlqZHZjh4O1JZLkoH66T5F9azWy3D9bvd0WWh4,581
40
+ brainwiki/consolidate/_apply.py,sha256=uYjjDBZXEnlr_p38gV1U7vDntCT-Utm7os7nVnNal0o,16055
41
+ brainwiki/consolidate/_packet.py,sha256=Es7wdwJzFTz5gb4xD5LkG6QwA5IaTQECywNormlL0nI,15474
42
+ brainwiki/consolidate/_pipeline.py,sha256=ZJVvTBvJPcncab2jW_DddwyX9t_TMHy5MtHAVWfGzvM,7018
43
+ brainwiki/consolidate/_presets.py,sha256=CVeto8s9-Kc_FdyNeuRCrVlsQqjOVhDAJZRMbPy0zfY,7792
44
+ brainwiki/consolidate/_review.py,sha256=e20KUDte_81f0u7eWdeBb6QqaQqKYXsywcyVaYj8cJo,3631
45
+ brainwiki/consolidate/_schema.py,sha256=mSYNl4A1i3CV2m6treebNkYAbzUbM1ijMLzhH5GT9B0,5396
46
+ brainwiki/consolidate/_validate.py,sha256=OaJHoprfrEI9xHz9awIs-PRF7MtqQaUQPSwWfvKhnWA,10606
47
+ brainwiki/format/__init__.py,sha256=3mCjn0IWyqb3U7yHZeUPEBDdJQacbrcYXvZKHkq_VpQ,2479
48
+ brainwiki/format/_agents_md.py,sha256=nGkd6teQcuDKhWpnM-xQ2sOE739qqywFu-fECKimNcM,915
49
+ brainwiki/format/_claims.py,sha256=ustPKcEqiiHASt6ye0RtoiaNw_mki0Q9Y5uZ5gPediQ,3224
50
+ brainwiki/format/_document.py,sha256=B8_JPtQghayh2pyxvP7bmZiOh5yqFrl5At2E-2dTkjs,7542
51
+ brainwiki/format/_edit.py,sha256=NVvGmGYpwJTiIaJHIDuuvFd-0VmODY6QRQcjHKqN3tc,3373
52
+ brainwiki/format/_episode.py,sha256=VHIsFozz2MJ0lgoXByM02MY2Ob5OfnAyxjgrZUIQ8iU,2050
53
+ brainwiki/format/_fields.py,sha256=r988ahNruAUCKYZbq3AjXYCKeeGlq7i8bYqxbzNsTOw,13040
54
+ brainwiki/format/_frontmatter.py,sha256=UGcLdRdL3tuV-HQIREn9cpERb_bFJjWlyhAytvBiYLI,6689
55
+ brainwiki/format/_links.py,sha256=ROgqO2jVKxEUol_QDS2WjzOBCWqzza-T3ToGlwdINkU,2618
56
+ brainwiki/format/_meta.py,sha256=EN8ja6FV2kpqroNmhSZ6qZ7u1MNdQg6taynyUr8EIuY,2152
57
+ brainwiki/format/_normalize.py,sha256=pVExD186NwqM4gx82xpQiF_dXP9Akve-FCrn4qo5C3o,2559
58
+ brainwiki/format/_relations.py,sha256=qjBl2y8cPF7nFDHHas1ZXoOCeEF_cqKBj7V0vEXSwf4,6795
59
+ brainwiki/format/_rules.py,sha256=CiN0RnWMHd9kfNdamGNvVwaq9p_R0wZyA7SwXRTTmf8,1208
60
+ brainwiki/hosts/__init__.py,sha256=FrsSetEuVGGLFTrktC3yf1hlmCz0otWA-Y51-leLTqE,648
61
+ brainwiki/hosts/_antigravity.py,sha256=elgv5B2fhfqKofkLWHIHe48YXKerbQ7RHRZtfZxGHzc,6144
62
+ brainwiki/hosts/_claude_code.py,sha256=tcyYf1J8Ca0XzaycZbC1syxuhJdu2ADsFuefLMWWVxs,6370
63
+ brainwiki/hosts/_codex.py,sha256=6AH0toah_bsHc0Kbiu-NlKPtgfvFF7L5l5nD3QzaChc,5501
64
+ brainwiki/hosts/_connect.py,sha256=OpiU9_Ejbp9vJw6tD9_FPFCtgy-4OiHgG_7AyOBa628,18161
65
+ brainwiki/hosts/_detect.py,sha256=UGMLfgOHlOIVtLidSRkttwcygXB4X3HdTcTKhMaynZ8,1304
66
+ brainwiki/hosts/_instructions.py,sha256=O6xpiBqYpVWFsMGeeLrM9pI8jKLzPz0tc5kFj2F0Woo,8833
67
+ brainwiki/hosts/_sessions.py,sha256=XX_tI7svAgrzVEP7jFDFBvilikYCAWVhR4Ye7DjpfGY,5617
68
+ brainwiki/importer/__init__.py,sha256=F5qqs9y2M4BFQCkpk3CbHsmjIQk3cCiYv5JomY0X798,497
69
+ brainwiki/importer/_episodes.py,sha256=xBqBrqXPTnlQ1PHDdl9NHtD1_9UCXgBO90HBQGYtXoo,4224
70
+ brainwiki/importer/_into.py,sha256=y_DygznLCWuq7phhTc4jL7TlNWjoFFofS8tb3I3OaQY,4111
71
+ brainwiki/importer/_normalize.py,sha256=h24gkwu0LfIQBWVbG01viv6PiXCGsJWlZa995lFjeS0,2231
72
+ brainwiki/importer/_overlay.py,sha256=-6CgkAYwzaLJwEmKfVST9SUNMhjd6Ypfj1RbgG1vTxA,8035
73
+ brainwiki/importer/_survey.py,sha256=4m1Cih2Y0hUCl9FPV3jjicNaL0gr2U60dwu_r3khIRo,6654
74
+ brainwiki/index/__init__.py,sha256=8LZtmGV0Eh2ypMNdix3GoFBkfEVXePe7cEabrOzep0A,1316
75
+ brainwiki/index/_brains.py,sha256=qMJi2yJCyt5W4bNnsCLbD-5h7_iuBTiZDhtfS5Cyyas,4223
76
+ brainwiki/index/_db.py,sha256=jbcsaj769AUrCqgG0EucOkQJOGW4K5rK7JGZnXcH4sE,4364
77
+ brainwiki/index/_guards.py,sha256=QBsphU5A4ThgFoKV4zK3O9LNXwcyoOr2pK7T_7-c6xI,5742
78
+ brainwiki/index/_neighbors.py,sha256=xH1oAluRQ1e8sxhvWKhtFGxeM56b-JDYk6dj_X2YEsQ,6686
79
+ brainwiki/index/_orient.py,sha256=7wn-Hks618jdSCQMPRKFg-RVPVfAW317I11vPKZa5YA,16588
80
+ brainwiki/index/_read.py,sha256=1rlCv4ohbWvMminGy_dBdM46h6T4Q7wnM9xh_Bpexpk,10529
81
+ brainwiki/index/_resolver.py,sha256=-pLeUAzpElZDtEfrIx5gkFeY_yewK-o8BIFjZN9TXdM,5245
82
+ brainwiki/index/_scanner.py,sha256=Q2KjZ-thHsQZB6nTGrzs6tm3eGzsnKeDuWPEdkATtcE,26730
83
+ brainwiki/index/_schema.py,sha256=m8urbPaeOIYewWUxVl4hAezDFD-DLRuZNifdIRWwwTM,4925
84
+ brainwiki/index/_search.py,sha256=WLwm7deVaDkmC9X5yPVy0DiRf8B-lRHd9sptKQuvE-M,23582
85
+ brainwiki/index/_topics.py,sha256=UqXcIRJ16FtvWGjz6nypkazh-ZsWXBldEWku2gsI_OY,9558
86
+ brainwiki/index/_written.py,sha256=uKIx-QQl2XJMUX26xnw1DceAeLK7aAdF2SiY0m2qpN4,986
87
+ brainwiki/lint/__init__.py,sha256=VqGMHDrh8K15wy3lE0oXCYDlFfNnaRKdxfjHYo_MKfk,468
88
+ brainwiki/lint/_catalog.py,sha256=x7O8jQfTDyjnj_zZxguIugdjIKnPSpKJ_GvGzOAiV2I,4905
89
+ brainwiki/lint/_cross.py,sha256=lhmcBtJWyphmC6obb5fCLMyJ9z-6Iej-S0BUKnQSPfc,25055
90
+ brainwiki/lint/_files.py,sha256=-PCC6Jj7bwZyCQFTcB97EhBquacCEtQ4q7fzgcg0FOo,16778
91
+ brainwiki/lint/_fixes.py,sha256=USuhFZuOI8Yd2u-mBFw2YDJaIWREaFb4zl5izvKaNyw,3172
92
+ brainwiki/lint/_hook.py,sha256=CqXBur7S2ebtnthIjuSn6jAcYGI-vw6O_C0aXQJJJ6E,2147
93
+ brainwiki/lint/_model.py,sha256=7Q305Afkjlh72OClKqVjPQXA92uq_PNo1MZTWRKJJ1M,3267
94
+ brainwiki/lint/_reports.py,sha256=abKWUkQppX5-ZH_cgRqUPyBjXcyXOeic4Ab_Kk_0u04,8940
95
+ brainwiki/lint/_runner.py,sha256=qL91R5vfoyp7_PMFXEnmbAhHTDVvTgGGHINoJ-H4CrU,5392
96
+ brainwiki/mcp/__init__.py,sha256=1bhEKZ_n8vcSQ7YukhKWOjbNVQvH2Tx2Wzj8jjP1DQU,184
97
+ brainwiki/mcp/_server.py,sha256=1yY3Dt-0RyEGrZmzp1DIcaJwXigSedPKkzlOj9gGWjI,36868
98
+ brainwiki/runs/__init__.py,sha256=ZbI3JV6EHnNk9se1KxIo1lCDWgAONOaFwF4ksg2TEHI,522
99
+ brainwiki/runs/_git.py,sha256=OvinfPVIMpAud0qd463gJPNxjer1vKg8dPNzfKWhA4E,3373
100
+ brainwiki/runs/_lock.py,sha256=S_OzUrHe7mAFF8f9VC5BJ6J6cQhuPHhO_ykyHHb1OFQ,1313
101
+ brainwiki/runs/_record.py,sha256=e85yDweQVo1rWCCDTj0tYlBrtPl5pFNB3O3ec5dH9Xw,4925
102
+ brainwiki/runs/_transaction.py,sha256=LSjlQZFOAtY12Pnkny6lrt8ALnA83NCkxlqiMVptGGY,16794
103
+ brainwiki/runs/_undo.py,sha256=mua5-Jvole5p4RjhVsGgAtxbUiwYIF7MoDEqYnIGQko,6075
104
+ brainwiki/store/__init__.py,sha256=wIoiqpmQI6HDie9b4yYcDVgi2_nKl12vVnpS0-LpqFQ,256
105
+ brainwiki/store/_local.py,sha256=O_QtKzQaebTx5urvil_cjeFxSYMS7Yp1uhLYbQ6vxDU,5384
106
+ brainwiki/viz/__init__.py,sha256=H_7YhbhOIv7WSa3tUu6TudpaTD3SWYNbKkQuJoX1IYk,376
107
+ brainwiki/viz/_export.py,sha256=erTffi9UHLX7F1HaaucFNeneVyIVbhJC5zS0nnZpxLo,14825
108
+ brainwiki/viz/_lod.py,sha256=85L2_Jqf50z4-wCDYhFuDI4Z9eBa929Odg08AzXE054,18348
109
+ brainwiki/viz/_server.py,sha256=PJ1TEk_RJPnLMVkD747zu4w3G6J8MLqQwNQpZGw4r1U,12132
110
+ brainwiki/viz/app/BUILD_INFO.json,sha256=mVLfSqEA3IJT5aSg_dNnNwwKNDELpgVWAPxNQaz6Xxw,107
111
+ brainwiki/viz/app/THIRD_PARTY_NOTICES.txt,sha256=1_nvD8JpO9b_ftKPezxw6wNzEjfmwJb1qeFmYN2J7Qg,74704
112
+ brainwiki/viz/app/index.html,sha256=UHgr4hLOmpxtXPw_qD8cb9nKvX3fXawrUQvJBUI1hxk,440
113
+ brainwiki/viz/app/assets/index-gK1pnQdO.js,sha256=vnY8hQngZflQ6tbqkA1IpAkpVBeaxqShaoX-y6pb7X4,775968
114
+ brainwiki/viz/app/assets/style-Cg8NUCst.css,sha256=MDYuK9z9p5VvlOnmDMSQKGISiSIA0aZlKTxx3d7CaGk,28882
115
+ brainwiki/write/__init__.py,sha256=-xtuzMsBe_SIsdGZHFA_Y8Q7v9o_v1aIWjoXEf1-c7Y,646
116
+ brainwiki/write/_edits.py,sha256=cOvOgvIMw1IAYRhsjLt7GYbh0zFpo6DbWQ6KXTIhsbo,27561
117
+ brainwiki/write/_episode.py,sha256=LCRQdeF8MlxFsTCRWrSssWf0pQze9-vH34F8ZSLzsrU,6398
118
+ brainwiki/write/_move.py,sha256=hp2PzMQanqEbdD05UqKuTBW_L6aFv1WXs3HP17EE_w8,8137
119
+ brainwiki/write/_rules.py,sha256=xgUkE7IIYRgDs05nH0bwoArQuF6C8a5_i4m36CUUEac,7275
120
+ brainwiki/write/_secrets.py,sha256=XXS3dhPA61fe7grmH_di7ot-Oo6bCgKj6k6vS8EE3NQ,4234
121
+ brainwiki/assets/plugin/.claude-plugin/marketplace.json,sha256=glcjQyxWtpdDSe340ZdULvNqJ8tEh43gPN9-IX1g3XM,422
122
+ brainwiki/assets/plugin/.claude-plugin/plugin.json,sha256=4rLKVYQXyjp_qe-UP5xowS3nxDkVA-GchYqMx1eAnHw,441
123
+ brainwiki/assets/plugin/.mcp.json,sha256=w2I-rRCitvvG7Vl020MI3Uh9BT_Jt0MPK8v7eRechaA,240
124
+ brainwiki/assets/plugin/mcp.json,sha256=x_GnxAp0-fIMAWaW1NmjkLVn_Hw8UrhTV_CJJ7ED6UY,312
125
+ brainwiki/assets/plugin/mcp_config.json,sha256=SldwY8EJlZZo-iCeduSjlyCNTfmxLpA_95iFC1tAlFY,224
126
+ brainwiki/assets/plugin/plugin.json,sha256=6jY8Xo0tygZPx4HbVT22MkmSC0H3WWQEBN0o8_o9KKU,1348
127
+ brainwiki/assets/plugin/rules/brain-wiki.md,sha256=y0yYBSWzpItTzeCrPlx5b5fmo_bEpqQuofA2XCEBCN8,1664
128
+ brainwiki/assets/plugin/server.json,sha256=q5cedrqXZ-0Gd0Ot7FN_9eKlgLvViLWLtXDKt0B_a1M,801
129
+ brainwiki/assets/plugin/skills/brain/SKILL.md,sha256=KOBYUxZ44bZ6fWrr-23oNjUsbIYherrR8pkP-biUfk8,7591
130
+ brainwiki/assets/plugin/skills/brain/references/format.md,sha256=bgEu2ULpDoWqf4GmmnhkwIqoWLaE0nmysIvOGIOXi8I,5894
131
+ brainwiki/assets/plugin/skills/brain-maintain/SKILL.md,sha256=xLNYNjXnYLD4FwVEqcDo2Hhs2KGPm96RsNCJ6RqqUcA,5673
132
+ brainwiki/assets/plugin/skills/brain-maintain/references/consolidate.md,sha256=C4FZ95lUvvLTL9GwY9hymgjc3NHHePWY4nVUF1ab-D4,5169
133
+ brainwiki/assets/plugin/skills/brain-maintain/references/harvest.md,sha256=IUDRYI0pbsCO8BMQ-TqWZg0Bz7sZM4bQ6frmHuIauBs,7029
134
+ brainwiki/assets/plugin/skills/brain-setup/SKILL.md,sha256=fyz_zSuP2Uwrp_A7VOry-QWFz9IaQymlikE7EnkZwmo,8001
135
+ brainwiki/assets/plugin/skills/brain-setup/references/hosts.md,sha256=oeD8XMwQQ1wX6nstHzRa3cSJs_C9S0EshgwldcpFUPs,4215
136
+ brainwiki/assets/plugin/skills/brain-setup/references/privacy.md,sha256=nI2TcHsG0Htx3HyseIDtzORR8V94q_XVdTVYTqVjvek,2685
137
+ brain_wiki-0.1.0.dev0.dist-info/METADATA,sha256=RrWY9-Tpbda6jFWaW-UiEEknq8C4Dw1U3CNHJbmOqxI,11227
138
+ brain_wiki-0.1.0.dev0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
139
+ brain_wiki-0.1.0.dev0.dist-info/entry_points.txt,sha256=-iCQwHN88pc_0bQ-QAI7BzXuDQLOx2062S8XD2Xu6ZE,113
140
+ brain_wiki-0.1.0.dev0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
141
+ brain_wiki-0.1.0.dev0.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.32.4
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+ brain = brainwiki.cli:main
3
+ brain-wiki = brainwiki.cli:main
4
+ brain-wiki-mcp = brainwiki.mcp:main
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
brainwiki/__init__.py ADDED
@@ -0,0 +1,17 @@
1
+ """brain-wiki: a local-first second brain for AI agents, kept as plain Markdown."""
2
+
3
+ from __future__ import annotations
4
+
5
+ FORMAT_VERSION = 2
6
+
7
+
8
+ def __getattr__(name: str) -> str:
9
+ # Resolved lazily: importlib.metadata costs ~50 ms, which every CLI start would pay.
10
+ if name == "__version__":
11
+ from importlib.metadata import PackageNotFoundError, version
12
+
13
+ try:
14
+ return version("brain-wiki")
15
+ except PackageNotFoundError: # a source tree without installation
16
+ return "0.0.0"
17
+ raise AttributeError(name)
brainwiki/__main__.py ADDED
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from brainwiki.cli import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "brain-wiki",
3
+ "owner": {
4
+ "name": "brain-wiki contributors"
5
+ },
6
+ "description": "brain-wiki: a local-first Markdown second brain shared by your AI agents.",
7
+ "version": "0.1.0.dev0",
8
+ "plugins": [
9
+ {
10
+ "name": "brain-wiki",
11
+ "source": "./",
12
+ "description": "A local-first second brain for AI agents, kept as plain Markdown that you own.",
13
+ "category": "productivity"
14
+ }
15
+ ]
16
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "name": "brain-wiki",
3
+ "displayName": "brain-wiki",
4
+ "version": "0.1.0.dev0",
5
+ "description": "A local-first second brain for AI agents, kept as plain Markdown that you own.",
6
+ "author": {
7
+ "name": "brain-wiki contributors"
8
+ },
9
+ "repository": "https://github.com/brain-wiki/brain-wiki",
10
+ "license": "Apache-2.0",
11
+ "keywords": [
12
+ "memory",
13
+ "agents",
14
+ "mcp",
15
+ "markdown",
16
+ "obsidian",
17
+ "knowledge-base"
18
+ ]
19
+ }