brainlayer 1.0.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.
- brainlayer/__init__.py +3 -0
- brainlayer/cli/__init__.py +1545 -0
- brainlayer/cli/wizard.py +132 -0
- brainlayer/cli_new.py +151 -0
- brainlayer/client.py +164 -0
- brainlayer/clustering.py +736 -0
- brainlayer/daemon.py +1105 -0
- brainlayer/dashboard/README.md +129 -0
- brainlayer/dashboard/__init__.py +5 -0
- brainlayer/dashboard/app.py +151 -0
- brainlayer/dashboard/search.py +229 -0
- brainlayer/dashboard/views.py +230 -0
- brainlayer/embeddings.py +131 -0
- brainlayer/engine.py +550 -0
- brainlayer/index_new.py +87 -0
- brainlayer/mcp/__init__.py +1558 -0
- brainlayer/migrate.py +205 -0
- brainlayer/paths.py +43 -0
- brainlayer/pipeline/__init__.py +47 -0
- brainlayer/pipeline/analyze_communication.py +508 -0
- brainlayer/pipeline/brain_graph.py +567 -0
- brainlayer/pipeline/chat_tags.py +63 -0
- brainlayer/pipeline/chunk.py +422 -0
- brainlayer/pipeline/classify.py +472 -0
- brainlayer/pipeline/cluster_sampling.py +73 -0
- brainlayer/pipeline/enrichment.py +810 -0
- brainlayer/pipeline/extract.py +66 -0
- brainlayer/pipeline/extract_claude_desktop.py +149 -0
- brainlayer/pipeline/extract_corrections.py +231 -0
- brainlayer/pipeline/extract_markdown.py +195 -0
- brainlayer/pipeline/extract_whatsapp.py +227 -0
- brainlayer/pipeline/git_overlay.py +301 -0
- brainlayer/pipeline/longitudinal_analyzer.py +568 -0
- brainlayer/pipeline/obsidian_export.py +455 -0
- brainlayer/pipeline/operation_grouping.py +486 -0
- brainlayer/pipeline/plan_linking.py +313 -0
- brainlayer/pipeline/sanitize.py +549 -0
- brainlayer/pipeline/semantic_style.py +574 -0
- brainlayer/pipeline/session_enrichment.py +472 -0
- brainlayer/pipeline/style_embed.py +67 -0
- brainlayer/pipeline/style_index.py +139 -0
- brainlayer/pipeline/temporal_chains.py +203 -0
- brainlayer/pipeline/time_batcher.py +248 -0
- brainlayer/pipeline/unified_timeline.py +569 -0
- brainlayer/storage.py +66 -0
- brainlayer/store.py +155 -0
- brainlayer/taxonomy.json +80 -0
- brainlayer/vector_store.py +1891 -0
- brainlayer-1.0.0.dist-info/METADATA +313 -0
- brainlayer-1.0.0.dist-info/RECORD +53 -0
- brainlayer-1.0.0.dist-info/WHEEL +4 -0
- brainlayer-1.0.0.dist-info/entry_points.txt +4 -0
- brainlayer-1.0.0.dist-info/licenses/LICENSE +190 -0
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: brainlayer
|
|
3
|
+
Version: 1.0.0
|
|
4
|
+
Summary: Persistent memory for AI agents — search, think, recall across every conversation
|
|
5
|
+
Project-URL: Homepage, https://github.com/EtanHey/brainlayer
|
|
6
|
+
Project-URL: Repository, https://github.com/EtanHey/brainlayer
|
|
7
|
+
Project-URL: Documentation, https://etanhey.github.io/brainlayer
|
|
8
|
+
Project-URL: Issues, https://github.com/EtanHey/brainlayer/issues
|
|
9
|
+
Author: BrainLayer Contributors
|
|
10
|
+
License-Expression: Apache-2.0
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: ai,claude,embeddings,knowledge-graph,mcp,memory,sqlite-vec
|
|
13
|
+
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
|
|
20
|
+
Classifier: Topic :: Software Development :: Libraries
|
|
21
|
+
Requires-Python: >=3.11
|
|
22
|
+
Requires-Dist: apsw>=3.45.0
|
|
23
|
+
Requires-Dist: fastapi>=0.100.0
|
|
24
|
+
Requires-Dist: httpx>=0.24.0
|
|
25
|
+
Requires-Dist: mcp>=1.0.0
|
|
26
|
+
Requires-Dist: numpy<3.0,>=1.22
|
|
27
|
+
Requires-Dist: orjson>=3.9.0
|
|
28
|
+
Requires-Dist: pydantic>=2.0.0
|
|
29
|
+
Requires-Dist: pyyaml>=6.0
|
|
30
|
+
Requires-Dist: requests>=2.28.0
|
|
31
|
+
Requires-Dist: rich>=13.0.0
|
|
32
|
+
Requires-Dist: scikit-learn>=1.0.0
|
|
33
|
+
Requires-Dist: sentence-transformers>=2.2.0
|
|
34
|
+
Requires-Dist: spacy<4.0,>=3.7
|
|
35
|
+
Requires-Dist: sqlite-vec>=0.1.3
|
|
36
|
+
Requires-Dist: tree-sitter>=0.21.0
|
|
37
|
+
Requires-Dist: typer>=0.9.0
|
|
38
|
+
Requires-Dist: uvicorn>=0.20.0
|
|
39
|
+
Provides-Extra: ast
|
|
40
|
+
Requires-Dist: tree-sitter-languages>=1.9.0; extra == 'ast'
|
|
41
|
+
Provides-Extra: brain
|
|
42
|
+
Requires-Dist: igraph>=0.11.0; extra == 'brain'
|
|
43
|
+
Requires-Dist: leidenalg>=0.10.0; extra == 'brain'
|
|
44
|
+
Requires-Dist: umap-learn>=0.5.0; extra == 'brain'
|
|
45
|
+
Provides-Extra: cloud
|
|
46
|
+
Requires-Dist: google-genai>=1.0.0; extra == 'cloud'
|
|
47
|
+
Provides-Extra: dev
|
|
48
|
+
Requires-Dist: pytest-asyncio>=0.21.0; extra == 'dev'
|
|
49
|
+
Requires-Dist: pytest>=7.0.0; extra == 'dev'
|
|
50
|
+
Requires-Dist: ruff>=0.1.0; extra == 'dev'
|
|
51
|
+
Provides-Extra: docs
|
|
52
|
+
Requires-Dist: mkdocs-material>=9.5.0; extra == 'docs'
|
|
53
|
+
Provides-Extra: youtube
|
|
54
|
+
Requires-Dist: certifi; extra == 'youtube'
|
|
55
|
+
Requires-Dist: youtube-transcript-api>=1.2.4; extra == 'youtube'
|
|
56
|
+
Requires-Dist: yt-dlp>=2024.1.0; extra == 'youtube'
|
|
57
|
+
Description-Content-Type: text/markdown
|
|
58
|
+
|
|
59
|
+
# BrainLayer
|
|
60
|
+
|
|
61
|
+
> Persistent memory for AI agents. Search, think, recall — across every conversation you've ever had.
|
|
62
|
+
|
|
63
|
+
[](LICENSE)
|
|
64
|
+
[](https://www.python.org/downloads/)
|
|
65
|
+
[](https://modelcontextprotocol.io)
|
|
66
|
+
[](#testing)
|
|
67
|
+
[](https://etanhey.github.io/brainlayer)
|
|
68
|
+
|
|
69
|
+
---
|
|
70
|
+
|
|
71
|
+
**Your AI agent forgets everything between sessions.** Every architecture decision, every debugging session, every preference you've expressed — gone. You repeat yourself constantly.
|
|
72
|
+
|
|
73
|
+
BrainLayer fixes this. It's a **local-first memory layer** that gives any MCP-compatible AI agent the ability to remember, think, and recall across conversations.
|
|
74
|
+
|
|
75
|
+
```
|
|
76
|
+
"What approach did I use for auth last month?" → brainlayer_think
|
|
77
|
+
"Show me everything about this file's history" → brainlayer_recall
|
|
78
|
+
"What was I working on yesterday?" → brainlayer_current_context
|
|
79
|
+
"Remember this decision for later" → brainlayer_store
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Quick Start
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
pip install brainlayer
|
|
86
|
+
brainlayer init # Interactive setup wizard
|
|
87
|
+
brainlayer index # Index your Claude Code conversations
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Then add to your editor's MCP config:
|
|
91
|
+
|
|
92
|
+
**Claude Code** (`~/.claude.json`):
|
|
93
|
+
```json
|
|
94
|
+
{
|
|
95
|
+
"mcpServers": {
|
|
96
|
+
"brainlayer": {
|
|
97
|
+
"command": "brainlayer-mcp"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
<details>
|
|
104
|
+
<summary>Other editors (Cursor, Zed, VS Code)</summary>
|
|
105
|
+
|
|
106
|
+
**Cursor** (MCP settings):
|
|
107
|
+
```json
|
|
108
|
+
{
|
|
109
|
+
"mcpServers": {
|
|
110
|
+
"brainlayer": {
|
|
111
|
+
"command": "brainlayer-mcp"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
**Zed** (`settings.json`):
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"context_servers": {
|
|
121
|
+
"brainlayer": {
|
|
122
|
+
"command": { "path": "brainlayer-mcp" }
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
**VS Code** (`.vscode/mcp.json`):
|
|
129
|
+
```json
|
|
130
|
+
{
|
|
131
|
+
"servers": {
|
|
132
|
+
"brainlayer": {
|
|
133
|
+
"command": "brainlayer-mcp"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
</details>
|
|
140
|
+
|
|
141
|
+
That's it. Your agent now has persistent memory across every conversation.
|
|
142
|
+
|
|
143
|
+
## Architecture
|
|
144
|
+
|
|
145
|
+
```mermaid
|
|
146
|
+
graph LR
|
|
147
|
+
A["Claude Code / Cursor / Zed"] -->|MCP| B["BrainLayer MCP Server<br/>14 tools"]
|
|
148
|
+
B --> C["Hybrid Search<br/>semantic + keyword (RRF)"]
|
|
149
|
+
C --> D["SQLite + sqlite-vec<br/>single .db file"]
|
|
150
|
+
|
|
151
|
+
E["Claude Code JSONL<br/>conversations"] --> F["Pipeline"]
|
|
152
|
+
F -->|extract → classify → chunk → embed| D
|
|
153
|
+
G["Local LLM<br/>Ollama / MLX"] -->|enrich| D
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
**Everything runs locally.** No cloud accounts, no API keys, no Docker, no database servers.
|
|
157
|
+
|
|
158
|
+
| Component | Implementation |
|
|
159
|
+
|-----------|---------------|
|
|
160
|
+
| Storage | SQLite + [sqlite-vec](https://github.com/asg017/sqlite-vec) (single `.db` file, WAL mode) |
|
|
161
|
+
| Embeddings | `bge-large-en-v1.5` via sentence-transformers (1024 dims, runs on CPU/MPS) |
|
|
162
|
+
| Search | Hybrid: vector similarity + FTS5 keyword, merged with Reciprocal Rank Fusion |
|
|
163
|
+
| Enrichment | Local LLM via Ollama or MLX — 10-field metadata per chunk |
|
|
164
|
+
| MCP Server | stdio-based, MCP SDK v1.26+, compatible with any MCP client |
|
|
165
|
+
| Clustering | HDBSCAN + UMAP for brain graph visualization (optional) |
|
|
166
|
+
|
|
167
|
+
## MCP Tools (14)
|
|
168
|
+
|
|
169
|
+
### Intelligence Layer
|
|
170
|
+
|
|
171
|
+
| Tool | Description |
|
|
172
|
+
|------|-------------|
|
|
173
|
+
| `brainlayer_think` | Given your current task context, retrieves relevant decisions, patterns, and bugs. Groups by intent. |
|
|
174
|
+
| `brainlayer_recall` | File-based or topic-based recall. "What happened with this file?" or "What do I know about deployment?" |
|
|
175
|
+
| `brainlayer_current_context` | Lightweight — recent projects, branches, files, and active plan. No embedding needed. |
|
|
176
|
+
| `brainlayer_sessions` | Browse recent sessions by project and date range. |
|
|
177
|
+
| `brainlayer_session_summary` | Session-level analysis: decisions made, corrections, learnings, quality scores. |
|
|
178
|
+
| `brainlayer_store` | Persist a memory (idea, decision, learning, mistake, etc.) for future retrieval. |
|
|
179
|
+
|
|
180
|
+
### Search & Context
|
|
181
|
+
|
|
182
|
+
| Tool | Description |
|
|
183
|
+
|------|-------------|
|
|
184
|
+
| `brainlayer_search` | Hybrid semantic + keyword search with filters (project, type, source, tag, intent, importance, date range). |
|
|
185
|
+
| `brainlayer_context` | Surrounding conversation chunks for a search result. |
|
|
186
|
+
| `brainlayer_file_timeline` | Full interaction history of a file across all sessions. |
|
|
187
|
+
| `brainlayer_operations` | Logical operation groups — read/edit/test cycles within a session. |
|
|
188
|
+
| `brainlayer_regression` | What changed since a file last worked? Diff-based regression analysis. |
|
|
189
|
+
| `brainlayer_plan_links` | Connect sessions to implementation plans and phases. |
|
|
190
|
+
| `brainlayer_stats` | Knowledge base statistics (chunks, projects, content types). |
|
|
191
|
+
| `brainlayer_list_projects` | List all indexed projects. |
|
|
192
|
+
|
|
193
|
+
## Enrichment
|
|
194
|
+
|
|
195
|
+
BrainLayer enriches each chunk with 10 structured metadata fields using a local LLM:
|
|
196
|
+
|
|
197
|
+
| Field | Example |
|
|
198
|
+
|-------|---------|
|
|
199
|
+
| `summary` | "Debugging Telegram bot message drops under load" |
|
|
200
|
+
| `tags` | "telegram, debugging, performance" |
|
|
201
|
+
| `importance` | 8 (architectural decision) vs 2 (directory listing) |
|
|
202
|
+
| `intent` | `debugging`, `designing`, `implementing`, `configuring`, `deciding`, `reviewing` |
|
|
203
|
+
| `primary_symbols` | "TelegramBot, handleMessage, grammy" |
|
|
204
|
+
| `resolved_query` | "How does the Telegram bot handle rate limiting?" |
|
|
205
|
+
| `epistemic_level` | `hypothesis`, `substantiated`, `validated` |
|
|
206
|
+
| `version_scope` | "grammy 1.32, Node 22" |
|
|
207
|
+
| `debt_impact` | `introduction`, `resolution`, `none` |
|
|
208
|
+
| `external_deps` | "grammy, Supabase, Railway" |
|
|
209
|
+
|
|
210
|
+
Two local LLM backends:
|
|
211
|
+
|
|
212
|
+
| Backend | Best for | Speed |
|
|
213
|
+
|---------|----------|-------|
|
|
214
|
+
| **MLX** (Apple Silicon) | M1/M2/M3 Macs | 21-87% faster than Ollama |
|
|
215
|
+
| **Ollama** | Any platform | ~1s/chunk (short), ~13s (long) |
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
brainlayer enrich # Default backend (auto-detects)
|
|
219
|
+
BRAINLAYER_ENRICH_BACKEND=mlx brainlayer enrich --batch-size=100
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Why BrainLayer?
|
|
223
|
+
|
|
224
|
+
| | BrainLayer | Mem0 | Zep/Graphiti | Letta | LangChain Memory |
|
|
225
|
+
|---|:---:|:---:|:---:|:---:|:---:|
|
|
226
|
+
| **MCP native** | 14 tools | 1 server | 1 server | No | No |
|
|
227
|
+
| **Think / Recall** | Yes | No | No | No | No |
|
|
228
|
+
| **Local-first** | SQLite | Cloud-first | Cloud-only | Docker+PG | Framework |
|
|
229
|
+
| **Zero infra** | `pip install` | API key | API key | Docker | Multiple deps |
|
|
230
|
+
| **Multi-source** | 6 sources | API only | API only | API only | API only |
|
|
231
|
+
| **Enrichment** | 10 fields | Basic | Temporal | Self-write | None |
|
|
232
|
+
| **Session analysis** | Yes | No | No | No | No |
|
|
233
|
+
| **Open source** | Apache 2.0 | Apache 2.0 | Source-available | Apache 2.0 | MIT |
|
|
234
|
+
|
|
235
|
+
BrainLayer is the only memory layer that:
|
|
236
|
+
1. **Thinks before answering** — categorizes past knowledge by intent (decisions, bugs, patterns) instead of raw search results
|
|
237
|
+
2. **Runs on a single file** — no database servers, no Docker, no cloud accounts
|
|
238
|
+
3. **Works with every MCP client** — 14 tools, instant integration, zero SDK
|
|
239
|
+
|
|
240
|
+
## CLI Reference
|
|
241
|
+
|
|
242
|
+
```bash
|
|
243
|
+
brainlayer init # Interactive setup wizard
|
|
244
|
+
brainlayer index # Index new conversations
|
|
245
|
+
brainlayer search "query" # Semantic + keyword search
|
|
246
|
+
brainlayer enrich # Run LLM enrichment on new chunks
|
|
247
|
+
brainlayer enrich-sessions # Session-level analysis (decisions, learnings)
|
|
248
|
+
brainlayer stats # Database statistics
|
|
249
|
+
brainlayer brain-export # Generate brain graph JSON
|
|
250
|
+
brainlayer export-obsidian # Export to Obsidian vault
|
|
251
|
+
brainlayer dashboard # Interactive TUI dashboard
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## Configuration
|
|
255
|
+
|
|
256
|
+
All configuration is via environment variables:
|
|
257
|
+
|
|
258
|
+
| Variable | Default | Description |
|
|
259
|
+
|----------|---------|-------------|
|
|
260
|
+
| `BRAINLAYER_DB` | `~/.local/share/brainlayer/brainlayer.db` | Database file path |
|
|
261
|
+
| `BRAINLAYER_ENRICH_BACKEND` | auto-detect (MLX on Apple Silicon, else Ollama) | Enrichment LLM backend |
|
|
262
|
+
| `BRAINLAYER_ENRICH_MODEL` | `glm-4.7-flash` | Ollama model name |
|
|
263
|
+
| `BRAINLAYER_MLX_MODEL` | `mlx-community/Qwen2.5-Coder-14B-Instruct-4bit` | MLX model identifier |
|
|
264
|
+
| `BRAINLAYER_OLLAMA_URL` | `http://127.0.0.1:11434/api/generate` | Ollama API endpoint |
|
|
265
|
+
| `BRAINLAYER_MLX_URL` | `http://127.0.0.1:8080/v1/chat/completions` | MLX server endpoint |
|
|
266
|
+
| `BRAINLAYER_STALL_TIMEOUT` | `300` | Seconds before killing a stuck enrichment chunk |
|
|
267
|
+
| `BRAINLAYER_HEARTBEAT_INTERVAL` | `25` | Log progress every N chunks during enrichment |
|
|
268
|
+
| `BRAINLAYER_SANITIZE_EXTRA_NAMES` | (empty) | Comma-separated names to redact from indexed content |
|
|
269
|
+
| `BRAINLAYER_SANITIZE_USE_SPACY` | `true` | Use spaCy NER for PII detection |
|
|
270
|
+
|
|
271
|
+
## Optional Extras
|
|
272
|
+
|
|
273
|
+
```bash
|
|
274
|
+
pip install "brainlayer[brain]" # Brain graph visualization (HDBSCAN + UMAP)
|
|
275
|
+
pip install "brainlayer[cloud]" # Cloud backfill (Gemini Batch API)
|
|
276
|
+
pip install "brainlayer[youtube]" # YouTube transcript indexing
|
|
277
|
+
pip install "brainlayer[ast]" # AST-aware code chunking (tree-sitter)
|
|
278
|
+
pip install "brainlayer[dev]" # Development: pytest, ruff
|
|
279
|
+
```
|
|
280
|
+
|
|
281
|
+
## Data Sources
|
|
282
|
+
|
|
283
|
+
BrainLayer can index conversations from multiple sources:
|
|
284
|
+
|
|
285
|
+
| Source | Format | Indexer |
|
|
286
|
+
|--------|--------|---------|
|
|
287
|
+
| Claude Code | JSONL (`~/.claude/projects/`) | `brainlayer index` |
|
|
288
|
+
| Claude Desktop | JSON export | `brainlayer index --source desktop` |
|
|
289
|
+
| WhatsApp | Exported `.txt` chat | `brainlayer index --source whatsapp` |
|
|
290
|
+
| YouTube | Transcripts via yt-dlp | `brainlayer index --source youtube` |
|
|
291
|
+
| Markdown | Any `.md` files | `brainlayer index --source markdown` |
|
|
292
|
+
| Manual | Via MCP tool | `brainlayer_store` |
|
|
293
|
+
|
|
294
|
+
## Testing
|
|
295
|
+
|
|
296
|
+
```bash
|
|
297
|
+
pip install -e ".[dev]"
|
|
298
|
+
pytest tests/ # Full suite (268 tests)
|
|
299
|
+
pytest tests/ -m "not integration" # Unit tests only (fast)
|
|
300
|
+
ruff check src/ # Linting
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## Contributing
|
|
304
|
+
|
|
305
|
+
Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for dev setup, testing, and PR guidelines.
|
|
306
|
+
|
|
307
|
+
## License
|
|
308
|
+
|
|
309
|
+
Apache 2.0 — see [LICENSE](LICENSE).
|
|
310
|
+
|
|
311
|
+
## Origin
|
|
312
|
+
|
|
313
|
+
BrainLayer was originally developed as "Zikaron" (Hebrew: memory) inside a personal AI agent ecosystem. It was extracted into a standalone project because **every developer deserves persistent AI memory** — not just the ones building their own agent systems.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
brainlayer/__init__.py,sha256=1QFPkIe1MCueOZ6nNAZxzvMDGW8jlH1bAsRxuJ8Qsjs,113
|
|
2
|
+
brainlayer/cli_new.py,sha256=A5fQttltTpS9W4yFzFHsvPRMjf707JfOWEOvCKN_skU,5349
|
|
3
|
+
brainlayer/client.py,sha256=8pdNgMRbFo1ZLF0WGCwvhT1CPauRMZ-6XOr6mu8rEcU,5131
|
|
4
|
+
brainlayer/clustering.py,sha256=rFApGbYqPHz7dMNbdRJJfBHLMCD1zWgsw9uHkUQ-Ex8,24934
|
|
5
|
+
brainlayer/daemon.py,sha256=7e_kKqo-ivcD8VeGVDPB_4q5zVVBhVlhVh0EiBqIOhQ,40295
|
|
6
|
+
brainlayer/embeddings.py,sha256=UjH6gd0AmDtpoA11aO0w8cz9lSS2BcYSXsPJFif_z-Q,4354
|
|
7
|
+
brainlayer/engine.py,sha256=rgkivregAkmglG-pCuc_1mTVabentiQOVLLP5pRIfsY,17834
|
|
8
|
+
brainlayer/index_new.py,sha256=EC45TIBSbrNPwTzN_Osee_zLCN95vRMKrrZQscYEWj8,2388
|
|
9
|
+
brainlayer/migrate.py,sha256=kMIYCo1kV_t4hkb2Dq8VPiP0KDINmgQBKTDBlaCa_xM,7524
|
|
10
|
+
brainlayer/paths.py,sha256=cZmqoIHNk1AdxCag0i7uJlDC-jLna1h6AYkgZ9yZbU4,1349
|
|
11
|
+
brainlayer/storage.py,sha256=UPWr7J5bb38vui-h6F36uc8JV_1fNl-Xa2OxMDiyMcA,2895
|
|
12
|
+
brainlayer/store.py,sha256=A7zjsRjx2SnRnSgFo9A68NQAd-9qrAMZHU4nXc7XeTo,5083
|
|
13
|
+
brainlayer/taxonomy.json,sha256=wUsSuDjjZ7Y50bp3BeXLmuPLJXXFG3CiVC2oYpiyaok,3750
|
|
14
|
+
brainlayer/vector_store.py,sha256=C9AtPCogkgRE0uyQEJn7rjjgkIR7WCkaQY_RLHxcqnU,69840
|
|
15
|
+
brainlayer/cli/__init__.py,sha256=POD5E5fI-6J0kuwVjLkkA7_4s8t1pft0Oh33ntErvvk,59839
|
|
16
|
+
brainlayer/cli/wizard.py,sha256=2F--UDnN5fTx1W0-Zsf7ob77GqX8NiiUob2BxmuMRrE,4557
|
|
17
|
+
brainlayer/dashboard/README.md,sha256=MlU6Auwf9hhqE2cC3WozTyar9_7kHux_hH28SfSXn_Q,4142
|
|
18
|
+
brainlayer/dashboard/__init__.py,sha256=hSoDPh4FWYUQrAJB4iQaxzuAYDOT57Uz5qkjd_EyK1Q,138
|
|
19
|
+
brainlayer/dashboard/app.py,sha256=553Tlh0ha_QsPa5oRKDA5nXvni7n1aKtoIGdGIq3kGc,5297
|
|
20
|
+
brainlayer/dashboard/search.py,sha256=Geu3FmRDGkawuMNa3akCrMHlji7tHhkCQ8zen8Q4jzs,8198
|
|
21
|
+
brainlayer/dashboard/views.py,sha256=vr8SYykQvuASyTGAxlz6xLu86WIo6J4cBCiCq6gsqr4,8695
|
|
22
|
+
brainlayer/mcp/__init__.py,sha256=mAqA2tKjrDAKZQ4a723QKPG2ZeiPXND6RN5MqfZxjVE,59316
|
|
23
|
+
brainlayer/pipeline/__init__.py,sha256=cn1o3Ayi6uww5Kw9LkyLPWKOAlGwmipdbtlU0MJOPtE,1117
|
|
24
|
+
brainlayer/pipeline/analyze_communication.py,sha256=UGQp2Ucw2IK6ygNP3207PhQg0NH7-IIzs729ndUoEnU,18329
|
|
25
|
+
brainlayer/pipeline/brain_graph.py,sha256=Vw61u2eyXzdDlvDiK_SsM8_EgwmlFG2o_TCFrrJ-5V0,20404
|
|
26
|
+
brainlayer/pipeline/chat_tags.py,sha256=UJc5OzMyoARkjZzfXimdaU2M9B9Jl2ZJySn3NKjSBRk,1622
|
|
27
|
+
brainlayer/pipeline/chunk.py,sha256=3DcLZWNufItt52PqBicONYYGOcDslVDtYJr03XeLE30,13191
|
|
28
|
+
brainlayer/pipeline/classify.py,sha256=DjM7BnGZlQWiJELUgYB7JmFqSZm5Tdg0wxVcKUs2xJs,15270
|
|
29
|
+
brainlayer/pipeline/cluster_sampling.py,sha256=1Qmjgp9fZYXcwRlLmvKqfBa2Di42SR9bXm6ko3L_yHA,2169
|
|
30
|
+
brainlayer/pipeline/enrichment.py,sha256=7-S0jxQuqN38999IpLh5Ql5daxXdYl7pba5RwAk0cnI,32309
|
|
31
|
+
brainlayer/pipeline/extract.py,sha256=2trzdkdWqQ_ADz-eywbncD-ZqjZ5MCnvnY7SSpek4oI,2216
|
|
32
|
+
brainlayer/pipeline/extract_claude_desktop.py,sha256=ryY8awsunpuaANF4sr_Il0YXNCZB0PU5NUuV15uv5J4,4971
|
|
33
|
+
brainlayer/pipeline/extract_corrections.py,sha256=VbuYvDdUrETSVMdppBcsg8yaxeApCTZiEpX7GpPo_uo,6939
|
|
34
|
+
brainlayer/pipeline/extract_markdown.py,sha256=mB9EOpI99dVnPzbpphCRpqVa8OknjF6O8s1HlALaznQ,6459
|
|
35
|
+
brainlayer/pipeline/extract_whatsapp.py,sha256=QJH33ajeBISMitWYrH4NGvWyVuIVFtcbm5po4fQlk8g,6950
|
|
36
|
+
brainlayer/pipeline/git_overlay.py,sha256=MUYuKcJpaBA3o5lXisupwx7VqgJr4Ymj1nmys-CYFhU,9990
|
|
37
|
+
brainlayer/pipeline/longitudinal_analyzer.py,sha256=_rezYzju45B6F_RhlPngzK9Mm6By841HM84DhvWjFkY,18421
|
|
38
|
+
brainlayer/pipeline/obsidian_export.py,sha256=EMKg5H0EIK29hSKkIqlejYOt5Y_qiV3CD5RpKqPiqLc,13092
|
|
39
|
+
brainlayer/pipeline/operation_grouping.py,sha256=LwShEMFGVY1QUgcGTu4PkVTxrq-LixPNmX9DisTIaeQ,14702
|
|
40
|
+
brainlayer/pipeline/plan_linking.py,sha256=mWbFn5O2o9ZbhCzUf1AGMvtxA6y7EgPT620vgAkdOlI,10265
|
|
41
|
+
brainlayer/pipeline/sanitize.py,sha256=7r2yVqU6FxFz7jCCWr5cOQg513ASdMjIt-s-blmNpb0,20957
|
|
42
|
+
brainlayer/pipeline/semantic_style.py,sha256=BoTp0bGu849Pm4Mk6-B1Lzews23J6pZihaFJLpIjPik,19865
|
|
43
|
+
brainlayer/pipeline/session_enrichment.py,sha256=phO5evcF1meg8u0Bf9eTqHbpBCfCViIg6pNcU-0PxYg,16550
|
|
44
|
+
brainlayer/pipeline/style_embed.py,sha256=yIJQ4Xg8-sASEr7Ia7lvoePa9jsQc-PWk8k9AC1FFKo,2125
|
|
45
|
+
brainlayer/pipeline/style_index.py,sha256=E1FXXBI5O6aGPTCjc6zWjLvTEK4LpaB_OB6dmc7D5jg,4238
|
|
46
|
+
brainlayer/pipeline/temporal_chains.py,sha256=jC5kbJ8OGaqkI8TyqKm_TS-rDynBcoJly9XaWnM8Xk4,5870
|
|
47
|
+
brainlayer/pipeline/time_batcher.py,sha256=KwpeJzg6ukJWs7xFaJJkf9XhbNdVyjiqHAhJX04q2wI,7721
|
|
48
|
+
brainlayer/pipeline/unified_timeline.py,sha256=2kOnc8spe79yIeXcn41ekWzkEjuZdxSxyDQcjSEyrqA,18941
|
|
49
|
+
brainlayer-1.0.0.dist-info/METADATA,sha256=NQKFkc5Qzd22P8ueg-_2jNtQ9IMjIXOypsyl_Eqk770,12554
|
|
50
|
+
brainlayer-1.0.0.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
51
|
+
brainlayer-1.0.0.dist-info/entry_points.txt,sha256=KivokI18ZbQ0-IdSh8su5bneMCwcZ83oyEgOzQuHSQE,131
|
|
52
|
+
brainlayer-1.0.0.dist-info/licenses/LICENSE,sha256=8-KXpK_PTTaufqqaX-lKBKSr1Uo9uWwQWboyLdP2VVs,10774
|
|
53
|
+
brainlayer-1.0.0.dist-info/RECORD,,
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to the Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by the Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding any notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
Copyright 2026 BrainLayer Contributors
|
|
179
|
+
|
|
180
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
181
|
+
you may not use this file except in compliance with the License.
|
|
182
|
+
You may obtain a copy of the License at
|
|
183
|
+
|
|
184
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
185
|
+
|
|
186
|
+
Unless required by applicable law or agreed to in writing, software
|
|
187
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
188
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
189
|
+
See the License for the specific language governing permissions and
|
|
190
|
+
limitations under the License.
|