brain-wiki 0.1.0__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 (144) hide show
  1. brain_wiki-0.1.0.dist-info/METADATA +134 -0
  2. brain_wiki-0.1.0.dist-info/RECORD +144 -0
  3. brain_wiki-0.1.0.dist-info/WHEEL +4 -0
  4. brain_wiki-0.1.0.dist-info/entry_points.txt +4 -0
  5. brain_wiki-0.1.0.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 +113 -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 +188 -0
  22. brainwiki/assets/plugin/skills/brain-setup/references/hosts.md +88 -0
  23. brainwiki/assets/plugin/skills/brain-setup/references/privacy.md +77 -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 +191 -0
  30. brainwiki/bench/_suites.py +959 -0
  31. brainwiki/cli/__init__.py +7 -0
  32. brainwiki/cli/_choose.py +46 -0
  33. brainwiki/cli/_cmd_bench.py +109 -0
  34. brainwiki/cli/_cmd_browse.py +231 -0
  35. brainwiki/cli/_cmd_consolidate.py +138 -0
  36. brainwiki/cli/_cmd_core.py +250 -0
  37. brainwiki/cli/_cmd_harvest.py +221 -0
  38. brainwiki/cli/_cmd_hosts.py +63 -0
  39. brainwiki/cli/_cmd_import.py +205 -0
  40. brainwiki/cli/_cmd_lint.py +135 -0
  41. brainwiki/cli/_cmd_read.py +168 -0
  42. brainwiki/cli/_cmd_runs.py +86 -0
  43. brainwiki/cli/_cmd_viz.py +73 -0
  44. brainwiki/cli/_cmd_write.py +193 -0
  45. brainwiki/cli/_main.py +1458 -0
  46. brainwiki/cli/_output.py +19 -0
  47. brainwiki/config/__init__.py +73 -0
  48. brainwiki/config/_dirs.py +69 -0
  49. brainwiki/config/_manifest.py +347 -0
  50. brainwiki/config/_resolve.py +193 -0
  51. brainwiki/config/_user.py +261 -0
  52. brainwiki/consolidate/__init__.py +18 -0
  53. brainwiki/consolidate/_apply.py +406 -0
  54. brainwiki/consolidate/_packet.py +625 -0
  55. brainwiki/consolidate/_pipeline.py +319 -0
  56. brainwiki/consolidate/_presets.py +230 -0
  57. brainwiki/consolidate/_review.py +162 -0
  58. brainwiki/consolidate/_schema.py +153 -0
  59. brainwiki/consolidate/_validate.py +267 -0
  60. brainwiki/doctor.py +229 -0
  61. brainwiki/engine.py +80 -0
  62. brainwiki/errors.py +89 -0
  63. brainwiki/format/__init__.py +112 -0
  64. brainwiki/format/_agents_md.py +26 -0
  65. brainwiki/format/_claims.py +95 -0
  66. brainwiki/format/_document.py +203 -0
  67. brainwiki/format/_edit.py +94 -0
  68. brainwiki/format/_episode.py +67 -0
  69. brainwiki/format/_fields.py +350 -0
  70. brainwiki/format/_frontmatter.py +175 -0
  71. brainwiki/format/_links.py +72 -0
  72. brainwiki/format/_meta.py +67 -0
  73. brainwiki/format/_normalize.py +70 -0
  74. brainwiki/format/_relations.py +211 -0
  75. brainwiki/format/_rules.py +41 -0
  76. brainwiki/harvest.py +414 -0
  77. brainwiki/hosts/__init__.py +24 -0
  78. brainwiki/hosts/_antigravity.py +163 -0
  79. brainwiki/hosts/_claude_code.py +174 -0
  80. brainwiki/hosts/_codex.py +149 -0
  81. brainwiki/hosts/_connect.py +590 -0
  82. brainwiki/hosts/_detect.py +39 -0
  83. brainwiki/hosts/_instructions.py +220 -0
  84. brainwiki/hosts/_sessions.py +176 -0
  85. brainwiki/ids.py +69 -0
  86. brainwiki/importer/__init__.py +17 -0
  87. brainwiki/importer/_episodes.py +119 -0
  88. brainwiki/importer/_into.py +102 -0
  89. brainwiki/importer/_normalize.py +66 -0
  90. brainwiki/importer/_overlay.py +238 -0
  91. brainwiki/importer/_survey.py +167 -0
  92. brainwiki/index/__init__.py +51 -0
  93. brainwiki/index/_brains.py +129 -0
  94. brainwiki/index/_db.py +131 -0
  95. brainwiki/index/_guards.py +154 -0
  96. brainwiki/index/_neighbors.py +174 -0
  97. brainwiki/index/_orient.py +402 -0
  98. brainwiki/index/_read.py +290 -0
  99. brainwiki/index/_resolver.py +147 -0
  100. brainwiki/index/_scanner.py +668 -0
  101. brainwiki/index/_schema.py +164 -0
  102. brainwiki/index/_search.py +686 -0
  103. brainwiki/index/_topics.py +253 -0
  104. brainwiki/index/_written.py +29 -0
  105. brainwiki/lifecycle.py +158 -0
  106. brainwiki/lint/__init__.py +23 -0
  107. brainwiki/lint/_catalog.py +90 -0
  108. brainwiki/lint/_cross.py +649 -0
  109. brainwiki/lint/_files.py +483 -0
  110. brainwiki/lint/_fixes.py +89 -0
  111. brainwiki/lint/_hook.py +58 -0
  112. brainwiki/lint/_model.py +117 -0
  113. brainwiki/lint/_reports.py +242 -0
  114. brainwiki/lint/_runner.py +172 -0
  115. brainwiki/logs.py +34 -0
  116. brainwiki/mcp/__init__.py +7 -0
  117. brainwiki/mcp/_server.py +917 -0
  118. brainwiki/obsidian.py +98 -0
  119. brainwiki/origin.py +110 -0
  120. brainwiki/runs/__init__.py +21 -0
  121. brainwiki/runs/_git.py +82 -0
  122. brainwiki/runs/_lock.py +42 -0
  123. brainwiki/runs/_record.py +145 -0
  124. brainwiki/runs/_transaction.py +441 -0
  125. brainwiki/runs/_undo.py +101 -0
  126. brainwiki/setup_wizard.py +308 -0
  127. brainwiki/store/__init__.py +7 -0
  128. brainwiki/store/_local.py +153 -0
  129. brainwiki/viz/__init__.py +9 -0
  130. brainwiki/viz/_export.py +414 -0
  131. brainwiki/viz/_lod.py +455 -0
  132. brainwiki/viz/_server.py +327 -0
  133. brainwiki/viz/app/BUILD_INFO.json +5 -0
  134. brainwiki/viz/app/THIRD_PARTY_NOTICES.txt +1519 -0
  135. brainwiki/viz/app/assets/index-gK1pnQdO.js +4496 -0
  136. brainwiki/viz/app/assets/style-Cg8NUCst.css +1 -0
  137. brainwiki/viz/app/index.html +14 -0
  138. brainwiki/write/__init__.py +26 -0
  139. brainwiki/write/_edits.py +769 -0
  140. brainwiki/write/_episode.py +195 -0
  141. brainwiki/write/_move.py +306 -0
  142. brainwiki/write/_profiles.py +80 -0
  143. brainwiki/write/_rules.py +228 -0
  144. brainwiki/write/_secrets.py +108 -0
@@ -0,0 +1,134 @@
1
+ Metadata-Version: 2.5
2
+ Name: brain-wiki
3
+ Version: 0.1.0
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
+ Requires-Dist: typer<1,>=0.26
34
+ Description-Content-Type: text/markdown
35
+
36
+ <!-- mcp-name: io.github.brain-wiki/brain-wiki -->
37
+
38
+ <p align="center">
39
+ <img src="https://raw.githubusercontent.com/brain-wiki/brain-wiki/main/.github/assets/logo.svg" alt="brain-wiki" width="96" height="96">
40
+ </p>
41
+
42
+ <h1 align="center">brain-wiki</h1>
43
+
44
+ <p align="center"><strong>One long-term memory for all your AI agents, kept as plain Markdown that you own.</strong></p>
45
+
46
+ <p align="center">
47
+ <a href="https://github.com/brain-wiki/brain-wiki/actions/workflows/ci.yml"><img src="https://github.com/brain-wiki/brain-wiki/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
48
+ <a href="https://pypi.org/project/brain-wiki/"><img src="https://img.shields.io/pypi/v/brain-wiki" alt="PyPI"></a>
49
+ <a href="https://pypi.org/project/brain-wiki/"><img src="https://img.shields.io/pypi/pyversions/brain-wiki" alt="Python"></a>
50
+ <a href="https://github.com/brain-wiki/brain-wiki/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue" alt="License"></a>
51
+ </p>
52
+
53
+ Your agents (Claude Code, Codex, Antigravity, Cursor, OpenClaw, or any MCP
54
+ client) share one brain: a folder of Markdown notes they search before
55
+ answering and keep up to date as they work. It runs on your machine, needs no
56
+ server or API keys, and opens in Obsidian.
57
+
58
+ - **Plain files.** Read, edit, diff, and sync the brain like any folder, or adopt an Obsidian vault as it is.
59
+ - **Knows what changed.** Search returns a note together with the notes that replace or contradict it.
60
+ - **Safe to let agents write.** Changes are checked, logged, and undoable, and committed when the brain is a git repository.
61
+ - **No network calls.** Your own agent does the thinking; brain-wiki stores and checks.
62
+
63
+ ## Quick start
64
+
65
+ Needs Python 3.11+ and [uv](https://docs.astral.sh/uv/).
66
+
67
+ **1. Install.**
68
+
69
+ ```sh
70
+ uv tool install brain-wiki
71
+ ```
72
+
73
+ **2. Set it up.**
74
+
75
+ - **Recommended:** paste this into your agent (Claude Code, Codex,
76
+ Antigravity, Cursor, OpenClaw, ...):
77
+
78
+ > Set up brain-wiki by running `brain setup --guide` and following it.
79
+
80
+ - **Or, in a terminal:** run `brain setup`, which asks the same questions
81
+ step by step.
82
+
83
+ Either way, setup explains each choice (where the brain lives, which agents to
84
+ connect, what each may do) and shows every change before making it.
85
+
86
+ **3. Use it in your agent.**
87
+
88
+ > Remember that I prefer pnpm over npm, and that our team ships on Thursdays.
89
+
90
+ > What did we decide about the database migration last week?
91
+
92
+ > Maya moved to the platform team. Update her note.
93
+
94
+ > Consolidate my brain.
95
+
96
+ **4. See your brain.** `brain viz` opens a local 3D map of your notes, and
97
+ `brain obsidian` opens the brain's folder as a vault in Obsidian. With several
98
+ brains, both ask which one, or name it: `brain viz work`.
99
+
100
+ ## How it works
101
+
102
+ ```text
103
+ agents ──log──► inbox ──consolidate──► notes (topics/*.md) ◄── you, in Obsidian
104
+ ▲ (checked ops) │
105
+ └────────────── search · read ───────────────┘
106
+ ```
107
+
108
+ Agents log what they learn to an inbox. When you ask, your agent folds the
109
+ inbox into topic notes through small operations that brain-wiki checks before
110
+ writing, and `brain undo` reverses any change.
111
+
112
+ ## Status
113
+
114
+ Alpha: expect breaking changes before 1.0. Known limits:
115
+
116
+ - No access scopes inside a brain: every connected agent reads all of it. Keep work and personal notes in separate brains.
117
+ - Maintenance runs when you ask; there is no scheduler.
118
+ - Chat apps that need a remote MCP server (ChatGPT, claude.ai, the Gemini app) are not supported yet.
119
+
120
+ ## Learn more
121
+
122
+ [Getting started](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/getting-started.md) ·
123
+ [Agents](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/agents.md) ·
124
+ [Maintenance](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/maintenance.md) ·
125
+ [Import a vault](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/import.md) ·
126
+ [Privacy](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/privacy.md) ·
127
+ [Reference](https://github.com/brain-wiki/brain-wiki/blob/main/docs/user/reference.md) ·
128
+ [Design](https://github.com/brain-wiki/brain-wiki/blob/main/docs/design/README.md) ·
129
+ [Changelog](https://github.com/brain-wiki/brain-wiki/blob/main/CHANGELOG.md)
130
+
131
+ [Contributing](https://github.com/brain-wiki/brain-wiki/blob/main/CONTRIBUTING.md) ·
132
+ [Security](https://github.com/brain-wiki/brain-wiki/blob/main/SECURITY.md) ·
133
+ [Apache 2.0](https://github.com/brain-wiki/brain-wiki/blob/main/LICENSE)
134
+ ([visualizer notices](https://github.com/brain-wiki/brain-wiki/blob/main/src/brainwiki/viz/app/THIRD_PARTY_NOTICES.txt))
@@ -0,0 +1,144 @@
1
+ brainwiki/__init__.py,sha256=QevQneYnwJWp7ujDILnMRDNtTtG9qtOIOh_icBvRt4M,553
2
+ brainwiki/__main__.py,sha256=Llzi-J1iqeQwh4GeMN8CEwXW4iMZ31WrDJs7ZEgsvu0,61
3
+ brainwiki/doctor.py,sha256=nhQyndYqPS5D0spY0zTdRvYcXf2HXmEZ1EH1Gn9Ayyo,8748
4
+ brainwiki/engine.py,sha256=Zqrn8U9hrqHJ0hYLO0zsJXqVSFCKJuZXSxJTb8JEi9U,2353
5
+ brainwiki/errors.py,sha256=qOJ9pCQnfzWkI2qVhAxuX6jcy1tpquxBXfW57spzIiU,1646
6
+ brainwiki/harvest.py,sha256=sulhfOb_12RiFlbZueAA9aRylPzwzp0y_kEYYdRVFUU,15638
7
+ brainwiki/ids.py,sha256=DhM74_qHYdZQ3Kuqke4zGKURagr7fvr3mfrf0brfZ6c,1675
8
+ brainwiki/lifecycle.py,sha256=HfAP8WdrCb2v39pZa9auvGpyTIBNNJCZqj5qreumOy4,6385
9
+ brainwiki/logs.py,sha256=GR6bvrZc-h1Y5-MX-nSz0i2nZ8kAHnOlYpI49NtQ0Is,1061
10
+ brainwiki/obsidian.py,sha256=-u3ZC44uC7miaUEdwe76jz17-vdxR3EUDN0sKjk4iY4,3959
11
+ brainwiki/origin.py,sha256=RX2dNLg7EW-vWV1OWLUZRIsNRSEWgEWFo1pQGu7WXDM,4314
12
+ brainwiki/setup_wizard.py,sha256=GV3ymcNv76maiDn1i1ZYsqV0o_Kv49iYmuRFbOrYhbg,12122
13
+ brainwiki/assets/prompts/consolidate.md,sha256=cd5RkrykWLTQQrSDvxnivXXZOLQKVyJvHxeInUnYTrY,5020
14
+ brainwiki/assets/prompts/distill.md,sha256=aO1porMoWI5LN9C3mzudofwOD9H3D-gJgY_1o-_8BbQ,4568
15
+ brainwiki/assets/prompts/harvest.md,sha256=AUwbFYsS97mg-9IP8ZiUZATHcu-uo1FPYMFEGAVK_UU,6884
16
+ brainwiki/bench/__init__.py,sha256=zoPCXq6VqzSm-pPdnPIYE_i3-uKnFMn9ndvm7rPWuHU,244
17
+ brainwiki/bench/_generate.py,sha256=pJdwwbWODqvQssBxd9bUJOiw01PptOKGfRkNNSSMzco,17105
18
+ brainwiki/bench/_report.py,sha256=xQg00E3Dx_F6T2cMr44nA_2SNWV_WLlrdO4Ky6wocJE,7809
19
+ brainwiki/bench/_suites.py,sha256=JgIkXJaoYOaGpmTUR5ht4UIT6_Tx_VYBpPd5r72r76U,38455
20
+ brainwiki/cli/__init__.py,sha256=E1GcxNIu7uJgFgmYy_tqDsygZ2unk9-pTnbEUtDY_oY,144
21
+ brainwiki/cli/_choose.py,sha256=5wakzw7e6F4dYcWrpgIKl7gDsplkZPElMQjb6XWeuQY,1792
22
+ brainwiki/cli/_cmd_bench.py,sha256=QNIQ1sLsM3iqyNpvXxPT3UccZqPEt9om_FFzJCVWhiY,4268
23
+ brainwiki/cli/_cmd_browse.py,sha256=Sbnav9fp3ziu708vOLePAhmyOx36ONt_QEN5XU5aOBg,8109
24
+ brainwiki/cli/_cmd_consolidate.py,sha256=5x8jpuSnZD4l78P0P8FjD3MDRgBqRQvfKtJdiO9tI_8,5881
25
+ brainwiki/cli/_cmd_core.py,sha256=gCnJmQqkof9cbh-kDXAgCNyUTaGuOA3L_WgK5woY7nM,9501
26
+ brainwiki/cli/_cmd_harvest.py,sha256=8BVRjMkKwxn1D7ddoXjiva0jI7-qXfzQ0DYj12KHA6g,8559
27
+ brainwiki/cli/_cmd_hosts.py,sha256=bzMnS3A4s3uAC_7LgRgGJD1neKQGKz-3TtmJJMlfqWs,2327
28
+ brainwiki/cli/_cmd_import.py,sha256=CHAc01bY57tOKQEFAfVIGM-tce10x5Y2DQsgAHZOCEc,7843
29
+ brainwiki/cli/_cmd_lint.py,sha256=wtAmxAC82qb5I76ApXFuVKNMsRyrhAb3hd-OOQXSEZ8,4743
30
+ brainwiki/cli/_cmd_read.py,sha256=j5dC_St8IFTfL4np_Ym88-PeqDB6o8jA7MBrzc9DEUI,5628
31
+ brainwiki/cli/_cmd_runs.py,sha256=nR2AtnLnAlx3p7kHDNDl98VaFUoC_OF7OTpQwnvxpIM,3335
32
+ brainwiki/cli/_cmd_viz.py,sha256=sWamiXKGVOD2kxeppFA1A5ZXS3efvn6r9JbxE0QFwtI,2408
33
+ brainwiki/cli/_cmd_write.py,sha256=irRrXjyoLCEo0dBNdQGtkVHfnP20H0pFKlgg6QsEXiQ,8209
34
+ brainwiki/cli/_main.py,sha256=aIHR4sE5lZUQa4vbuA52DoW1qpXuFplITyz6FcU1sKU,46898
35
+ brainwiki/cli/_output.py,sha256=Zkz_IseoqfC158sdQSlAU3hN0JU6Qu439SlhgjIPwF0,504
36
+ brainwiki/config/__init__.py,sha256=SyackH8hoemW8869_SUewPpEbxHcWHns9yprCyaHPUM,1343
37
+ brainwiki/config/_dirs.py,sha256=ht-PVO6j2rgGcWAXXGxjSyMCmlPZKyyP1-kymh1koSY,2021
38
+ brainwiki/config/_manifest.py,sha256=vxOvptM_WDT2RHNQQ3GYYDPfaKNY4ZQCoQqQ2XIlb3g,11859
39
+ brainwiki/config/_resolve.py,sha256=KWTL0ZYVJ9R6teYDH1aOU8BrdksWoOJ_974PCnE_1ZA,7059
40
+ brainwiki/config/_user.py,sha256=jbRiFCmH5BRQa0DdotgiFdp9tJBFNrETBiyR3wB5u3Q,9143
41
+ brainwiki/consolidate/__init__.py,sha256=Rb2eXE-H-WQLwECw91Dc_PUNCBQB6BE8cgnbcrWzPLU,545
42
+ brainwiki/consolidate/_apply.py,sha256=J6UhoJPf2Wwkut_9Pq3DEedoKVUwLDxuN_SE793hqy0,16008
43
+ brainwiki/consolidate/_packet.py,sha256=DU22FTFLeMUrqND3MSK5GWe5vY9KcsYsKCYFqQ6RH2w,21502
44
+ brainwiki/consolidate/_pipeline.py,sha256=ldpU-su1Kg1Mccoi_PZvhzCZzKvxRRwcz4rvzE8dKoo,11151
45
+ brainwiki/consolidate/_presets.py,sha256=CVeto8s9-Kc_FdyNeuRCrVlsQqjOVhDAJZRMbPy0zfY,7792
46
+ brainwiki/consolidate/_review.py,sha256=rkFZ6mazjrhcxlXFFol717eUJ6RKi-v_HhSly6MhYe0,5947
47
+ brainwiki/consolidate/_schema.py,sha256=mSYNl4A1i3CV2m6treebNkYAbzUbM1ijMLzhH5GT9B0,5396
48
+ brainwiki/consolidate/_validate.py,sha256=pbugt7pangQFmGgT1IbVBxnjtwoR_opeu2m2Ymdj658,11287
49
+ brainwiki/format/__init__.py,sha256=3mCjn0IWyqb3U7yHZeUPEBDdJQacbrcYXvZKHkq_VpQ,2479
50
+ brainwiki/format/_agents_md.py,sha256=nGkd6teQcuDKhWpnM-xQ2sOE739qqywFu-fECKimNcM,915
51
+ brainwiki/format/_claims.py,sha256=ustPKcEqiiHASt6ye0RtoiaNw_mki0Q9Y5uZ5gPediQ,3224
52
+ brainwiki/format/_document.py,sha256=B8_JPtQghayh2pyxvP7bmZiOh5yqFrl5At2E-2dTkjs,7542
53
+ brainwiki/format/_edit.py,sha256=NVvGmGYpwJTiIaJHIDuuvFd-0VmODY6QRQcjHKqN3tc,3373
54
+ brainwiki/format/_episode.py,sha256=VHIsFozz2MJ0lgoXByM02MY2Ob5OfnAyxjgrZUIQ8iU,2050
55
+ brainwiki/format/_fields.py,sha256=r988ahNruAUCKYZbq3AjXYCKeeGlq7i8bYqxbzNsTOw,13040
56
+ brainwiki/format/_frontmatter.py,sha256=UGcLdRdL3tuV-HQIREn9cpERb_bFJjWlyhAytvBiYLI,6689
57
+ brainwiki/format/_links.py,sha256=ROgqO2jVKxEUol_QDS2WjzOBCWqzza-T3ToGlwdINkU,2618
58
+ brainwiki/format/_meta.py,sha256=EN8ja6FV2kpqroNmhSZ6qZ7u1MNdQg6taynyUr8EIuY,2152
59
+ brainwiki/format/_normalize.py,sha256=pVExD186NwqM4gx82xpQiF_dXP9Akve-FCrn4qo5C3o,2559
60
+ brainwiki/format/_relations.py,sha256=qjBl2y8cPF7nFDHHas1ZXoOCeEF_cqKBj7V0vEXSwf4,6795
61
+ brainwiki/format/_rules.py,sha256=CiN0RnWMHd9kfNdamGNvVwaq9p_R0wZyA7SwXRTTmf8,1208
62
+ brainwiki/hosts/__init__.py,sha256=gNfOThYhV3WgdHc6iLXJyeShwURPPgnkBX8ddtxvU8A,720
63
+ brainwiki/hosts/_antigravity.py,sha256=elgv5B2fhfqKofkLWHIHe48YXKerbQ7RHRZtfZxGHzc,6144
64
+ brainwiki/hosts/_claude_code.py,sha256=tcyYf1J8Ca0XzaycZbC1syxuhJdu2ADsFuefLMWWVxs,6370
65
+ brainwiki/hosts/_codex.py,sha256=6AH0toah_bsHc0Kbiu-NlKPtgfvFF7L5l5nD3QzaChc,5501
66
+ brainwiki/hosts/_connect.py,sha256=LQOpe73aUTVnvHxQHBvuoJavTbzyeJcfHhgdRwDChgo,24384
67
+ brainwiki/hosts/_detect.py,sha256=UGMLfgOHlOIVtLidSRkttwcygXB4X3HdTcTKhMaynZ8,1304
68
+ brainwiki/hosts/_instructions.py,sha256=33hMrbe6aAsbDj9Kbv2RUtFw_v9CzKmES_5W5L4QAvI,8835
69
+ brainwiki/hosts/_sessions.py,sha256=XX_tI7svAgrzVEP7jFDFBvilikYCAWVhR4Ye7DjpfGY,5617
70
+ brainwiki/importer/__init__.py,sha256=F5qqs9y2M4BFQCkpk3CbHsmjIQk3cCiYv5JomY0X798,497
71
+ brainwiki/importer/_episodes.py,sha256=SQOarVA0vx819sP8SYKLB8enE6KoN-fseW869ez8N-I,4550
72
+ brainwiki/importer/_into.py,sha256=y_DygznLCWuq7phhTc4jL7TlNWjoFFofS8tb3I3OaQY,4111
73
+ brainwiki/importer/_normalize.py,sha256=AYKrUSwZaPTDlpslmtve7vuUO8sSnIs3iPZcuJ6YBxM,2304
74
+ brainwiki/importer/_overlay.py,sha256=rpCrdzud18PfRjH_O2Ise8hArNnYwukEaV_dRFaFYhU,9834
75
+ brainwiki/importer/_survey.py,sha256=4m1Cih2Y0hUCl9FPV3jjicNaL0gr2U60dwu_r3khIRo,6654
76
+ brainwiki/index/__init__.py,sha256=yQPeHJusju-d_8VJyvPJfRJOwn-61QhFpzYKzKLAnjc,1375
77
+ brainwiki/index/_brains.py,sha256=ABRwTSBGU25ez2nt5lL5sGyZrh2I8iLs3aLG6RXMqgM,4458
78
+ brainwiki/index/_db.py,sha256=jbcsaj769AUrCqgG0EucOkQJOGW4K5rK7JGZnXcH4sE,4364
79
+ brainwiki/index/_guards.py,sha256=QBsphU5A4ThgFoKV4zK3O9LNXwcyoOr2pK7T_7-c6xI,5742
80
+ brainwiki/index/_neighbors.py,sha256=xH1oAluRQ1e8sxhvWKhtFGxeM56b-JDYk6dj_X2YEsQ,6686
81
+ brainwiki/index/_orient.py,sha256=vq2UNbykikDug-z_jLA__M1YQjsbTO-z6VZ9IQ-TuRw,16650
82
+ brainwiki/index/_read.py,sha256=q5Pz2RnbbQA_0j7lvqXSgItLS_sIHnDOrc8euWdVNDY,10894
83
+ brainwiki/index/_resolver.py,sha256=-pLeUAzpElZDtEfrIx5gkFeY_yewK-o8BIFjZN9TXdM,5245
84
+ brainwiki/index/_scanner.py,sha256=lknvd7g7szyZTYJFSiEAoeiO7SkmAqegly56cpnME7s,27019
85
+ brainwiki/index/_schema.py,sha256=m8urbPaeOIYewWUxVl4hAezDFD-DLRuZNifdIRWwwTM,4925
86
+ brainwiki/index/_search.py,sha256=5mTQfJVeJWGrcILMl-AXi6WNRnBtn894jco6wGL_ydU,25009
87
+ brainwiki/index/_topics.py,sha256=UqXcIRJ16FtvWGjz6nypkazh-ZsWXBldEWku2gsI_OY,9558
88
+ brainwiki/index/_written.py,sha256=uKIx-QQl2XJMUX26xnw1DceAeLK7aAdF2SiY0m2qpN4,986
89
+ brainwiki/lint/__init__.py,sha256=48lmgo_FrCW_w0yPnzV0AlezhIic7Z39hdvXb3qFVqM,569
90
+ brainwiki/lint/_catalog.py,sha256=VvIKqHvonCzWBdBGWsbVCtKAZIj4K0ZmPBFiCN7cjhM,5134
91
+ brainwiki/lint/_cross.py,sha256=lhmcBtJWyphmC6obb5fCLMyJ9z-6Iej-S0BUKnQSPfc,25055
92
+ brainwiki/lint/_files.py,sha256=-PCC6Jj7bwZyCQFTcB97EhBquacCEtQ4q7fzgcg0FOo,16778
93
+ brainwiki/lint/_fixes.py,sha256=nNNd10xQH70bB8lUc0h9cNApAlAHmcwnG8M06Ey3YgY,3320
94
+ brainwiki/lint/_hook.py,sha256=8c9cqINYnionbkaLhGA9HfiqzvLu1Mpjuimgnl0kS9c,2382
95
+ brainwiki/lint/_model.py,sha256=zP75mOGtJCPQ05QbJ-qCkIzzWrYGFCerVn72dc0DSK4,3943
96
+ brainwiki/lint/_reports.py,sha256=abKWUkQppX5-ZH_cgRqUPyBjXcyXOeic4Ab_Kk_0u04,8940
97
+ brainwiki/lint/_runner.py,sha256=_y6wicjH0FdDQ9RRFARnKqG3wBLooBwVyXBHqkRgmdQ,5911
98
+ brainwiki/mcp/__init__.py,sha256=1bhEKZ_n8vcSQ7YukhKWOjbNVQvH2Tx2Wzj8jjP1DQU,184
99
+ brainwiki/mcp/_server.py,sha256=LdCc3bt2NSl9GzsqdAhZyQmHBKH0uR5NerVbH9p5uZg,36877
100
+ brainwiki/runs/__init__.py,sha256=ZbI3JV6EHnNk9se1KxIo1lCDWgAONOaFwF4ksg2TEHI,522
101
+ brainwiki/runs/_git.py,sha256=2JBG4sOSeOhYvcf7u4A_BVVQSbOXwX-TsCNfqr1_S8A,3248
102
+ brainwiki/runs/_lock.py,sha256=S_OzUrHe7mAFF8f9VC5BJ6J6cQhuPHhO_ykyHHb1OFQ,1313
103
+ brainwiki/runs/_record.py,sha256=e85yDweQVo1rWCCDTj0tYlBrtPl5pFNB3O3ec5dH9Xw,4925
104
+ brainwiki/runs/_transaction.py,sha256=MRtp02OHVbTXYmIqHt93IFS1ntFmyc-DSj5sbga7lRU,16801
105
+ brainwiki/runs/_undo.py,sha256=7wQOOSqT8QFvOYHJM9kWOPVgo1Ame9I18VuFvwckLyY,4004
106
+ brainwiki/store/__init__.py,sha256=wIoiqpmQI6HDie9b4yYcDVgi2_nKl12vVnpS0-LpqFQ,256
107
+ brainwiki/store/_local.py,sha256=b5B6Kg_uVvIbDg2WpYO39YfQzGkyr-VebiUqjFPF8zM,5388
108
+ brainwiki/viz/__init__.py,sha256=H_7YhbhOIv7WSa3tUu6TudpaTD3SWYNbKkQuJoX1IYk,376
109
+ brainwiki/viz/_export.py,sha256=erTffi9UHLX7F1HaaucFNeneVyIVbhJC5zS0nnZpxLo,14825
110
+ brainwiki/viz/_lod.py,sha256=85L2_Jqf50z4-wCDYhFuDI4Z9eBa929Odg08AzXE054,18348
111
+ brainwiki/viz/_server.py,sha256=PJ1TEk_RJPnLMVkD747zu4w3G6J8MLqQwNQpZGw4r1U,12132
112
+ brainwiki/viz/app/BUILD_INFO.json,sha256=7I-Jybsd1uNEO34H0JF9Uxhy0dz8BhE7LIf6WCFApPw,107
113
+ brainwiki/viz/app/THIRD_PARTY_NOTICES.txt,sha256=1_nvD8JpO9b_ftKPezxw6wNzEjfmwJb1qeFmYN2J7Qg,74704
114
+ brainwiki/viz/app/index.html,sha256=UHgr4hLOmpxtXPw_qD8cb9nKvX3fXawrUQvJBUI1hxk,440
115
+ brainwiki/viz/app/assets/index-gK1pnQdO.js,sha256=vnY8hQngZflQ6tbqkA1IpAkpVBeaxqShaoX-y6pb7X4,775968
116
+ brainwiki/viz/app/assets/style-Cg8NUCst.css,sha256=MDYuK9z9p5VvlOnmDMSQKGISiSIA0aZlKTxx3d7CaGk,28882
117
+ brainwiki/write/__init__.py,sha256=gsJCrR4LsuLRPTcw6PE_XIZK7s3vI2AKLUELIJJPGcM,731
118
+ brainwiki/write/_edits.py,sha256=-w8nTIx8ne7JGWyk8nKpbgKebJ55vWway78tLZDLC5s,29381
119
+ brainwiki/write/_episode.py,sha256=LCRQdeF8MlxFsTCRWrSssWf0pQze9-vH34F8ZSLzsrU,6398
120
+ brainwiki/write/_move.py,sha256=WP5OGVmIAQRvaxkphqRYROHNmuZFECRU3As8DpyrM0E,13891
121
+ brainwiki/write/_profiles.py,sha256=H9mPjH5xz_of2rRZf7OqWBsZ27sVhTD3HuYsrLfWa-c,3452
122
+ brainwiki/write/_rules.py,sha256=-9qnVjEsIOl9c9i1Lgt8RDd1Hvqrg2MW5046E8TsICE,8278
123
+ brainwiki/write/_secrets.py,sha256=XXS3dhPA61fe7grmH_di7ot-Oo6bCgKj6k6vS8EE3NQ,4234
124
+ brainwiki/assets/plugin/.claude-plugin/marketplace.json,sha256=zAVI9jzM54SOZNNeGEbRyIPXGqPevgFrhDPTMGq-Rbs,417
125
+ brainwiki/assets/plugin/.claude-plugin/plugin.json,sha256=cygEZQ-XOfgWJpwTPv-Wubf0VH1Y5jW1r382RluwapI,436
126
+ brainwiki/assets/plugin/.mcp.json,sha256=YNVMwPNsw08m353WLO_7yvTMMM3xlhUJqFmeiZEU0Do,235
127
+ brainwiki/assets/plugin/mcp.json,sha256=pOSBgGWn7TvWZhTciF6-x-E6Jeh-PqPG7tpelg_osfE,307
128
+ brainwiki/assets/plugin/mcp_config.json,sha256=sHULAPJVwdx3Lt1nKq-5OqPaqDGoYkFHoUe1u6Rf-9k,219
129
+ brainwiki/assets/plugin/plugin.json,sha256=K-BsqJuV06r3ejpkRSO4p9unEk4ftUXoWt_MkaYbLBs,1343
130
+ brainwiki/assets/plugin/rules/brain-wiki.md,sha256=z-TVCo9TuMlfzC0JkciNo8HzBZT-WUSnMiBmuwkyqAA,1666
131
+ brainwiki/assets/plugin/server.json,sha256=ERCY4sV02q_8HbIrA_pPXVmGOzjIfbvRoQOPFb61WzE,791
132
+ brainwiki/assets/plugin/skills/brain/SKILL.md,sha256=HIFLnJmSaZRYbYyHlLXdLBqeCqUCcdDqLg-2NBlxZDg,7609
133
+ brainwiki/assets/plugin/skills/brain/references/format.md,sha256=bgEu2ULpDoWqf4GmmnhkwIqoWLaE0nmysIvOGIOXi8I,5894
134
+ brainwiki/assets/plugin/skills/brain-maintain/SKILL.md,sha256=vIljs9X0T5MDoQPj4U3wxAKsrvtRC6QSfH5ferNNngY,5887
135
+ brainwiki/assets/plugin/skills/brain-maintain/references/consolidate.md,sha256=C4FZ95lUvvLTL9GwY9hymgjc3NHHePWY4nVUF1ab-D4,5169
136
+ brainwiki/assets/plugin/skills/brain-maintain/references/harvest.md,sha256=IUDRYI0pbsCO8BMQ-TqWZg0Bz7sZM4bQ6frmHuIauBs,7029
137
+ brainwiki/assets/plugin/skills/brain-setup/SKILL.md,sha256=dXHuUzzJJK-80dSUHnt7Nff5WXqH1ohSwe6y1jkMTHs,8481
138
+ brainwiki/assets/plugin/skills/brain-setup/references/hosts.md,sha256=-aayhAznMWXz75-oR3YSL-36IU61FHZWHLft02d_RZg,4217
139
+ brainwiki/assets/plugin/skills/brain-setup/references/privacy.md,sha256=FO-qX5BOoau3bJcff2n_qxWEftuConGTL7lCZaEJzIw,3125
140
+ brain_wiki-0.1.0.dist-info/METADATA,sha256=6kHUVYHNWbVdGLGsGGs7nIUJBjjUHV6zFruIAu2srdc,6191
141
+ brain_wiki-0.1.0.dist-info/WHEEL,sha256=W3fkpkm7-wf9vBI5Z-7s0eWkeM-spu78I8Neb98DeEg,87
142
+ brain_wiki-0.1.0.dist-info/entry_points.txt,sha256=-iCQwHN88pc_0bQ-QAI7BzXuDQLOx2062S8XD2Xu6ZE,113
143
+ brain_wiki-0.1.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
144
+ brain_wiki-0.1.0.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",
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",
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
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "mcpServers": {
3
+ "brain-wiki": {
4
+ "type": "stdio",
5
+ "command": "uvx",
6
+ "args": [
7
+ "--from",
8
+ "brain-wiki==0.1.0",
9
+ "brain",
10
+ "mcp",
11
+ "--host",
12
+ "auto"
13
+ ]
14
+ }
15
+ }
16
+ }
@@ -0,0 +1,17 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/mcp.schema.json",
3
+ "mcpServers": {
4
+ "brain-wiki": {
5
+ "type": "stdio",
6
+ "command": "uvx",
7
+ "args": [
8
+ "--from",
9
+ "brain-wiki==0.1.0",
10
+ "brain",
11
+ "mcp",
12
+ "--host",
13
+ "auto"
14
+ ]
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "mcpServers": {
3
+ "brain-wiki": {
4
+ "command": "uvx",
5
+ "args": [
6
+ "--from",
7
+ "brain-wiki==0.1.0",
8
+ "brain",
9
+ "mcp",
10
+ "--host",
11
+ "antigravity"
12
+ ]
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,37 @@
1
+ {
2
+ "$schema": "https://agent-plugins.org/schemas/1.0.0/plugin.schema.json",
3
+ "name": "brain-wiki",
4
+ "version": "0.1.0",
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
+ "extensions": {
20
+ "com.openai": {
21
+ "onboardingSkill": "./skills/brain-setup/SKILL.md",
22
+ "interface": {
23
+ "displayName": "brain-wiki",
24
+ "shortDescription": "Long-term memory shared by all your AI agents",
25
+ "longDescription": "brain-wiki keeps one durable memory for every agent you use, as a folder of plain Markdown notes you own. Agents search it before answering, record what they learn in an inbox, and a validated, undoable consolidation step folds that into notes.",
26
+ "developerName": "brain-wiki contributors",
27
+ "category": "Productivity",
28
+ "websiteURL": "https://github.com/brain-wiki/brain-wiki",
29
+ "defaultPrompt": [
30
+ "Set up brain-wiki for me.",
31
+ "What do you remember about this project?",
32
+ "Harvest my recent sessions into my brain."
33
+ ]
34
+ }
35
+ }
36
+ }
37
+ }