brain-framework 24.0.0__tar.gz → 26.0.0__tar.gz

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 (78) hide show
  1. brain_framework-26.0.0/PKG-INFO +88 -0
  2. brain_framework-26.0.0/README.md +54 -0
  3. {brain_framework-24.0.0 → brain_framework-26.0.0}/THIRD_PARTY_NOTICES.md +98 -132
  4. {brain_framework-24.0.0 → brain_framework-26.0.0}/pyproject.toml +10 -18
  5. {brain_framework-24.0.0 → brain_framework-26.0.0}/pyproject.toml.orig +12 -25
  6. {brain_framework-24.0.0 → brain_framework-26.0.0}/src/bf/__init__.py +2 -3
  7. brain_framework-26.0.0/src/bf/__main__.py +6 -0
  8. brain_framework-26.0.0/src/bf/cli.py +255 -0
  9. brain_framework-26.0.0/src/bf/config.py +458 -0
  10. brain_framework-26.0.0/src/bf/engine.py +464 -0
  11. brain_framework-26.0.0/src/bf/guides/authoring.md +63 -0
  12. brain_framework-26.0.0/src/bf/guides/getting-started.md +88 -0
  13. brain_framework-26.0.0/src/bf/guides/index.md +19 -0
  14. brain_framework-26.0.0/src/bf/guides/operations.md +76 -0
  15. brain_framework-26.0.0/src/bf/guides/reference.md +64 -0
  16. brain_framework-26.0.0/src/bf/guides/retrieval.md +62 -0
  17. brain_framework-26.0.0/src/bf/jobs.py +606 -0
  18. brain_framework-26.0.0/src/bf/markdown.py +529 -0
  19. brain_framework-26.0.0/src/bf/mcp.py +127 -0
  20. brain_framework-26.0.0/src/bf/models.py +223 -0
  21. brain_framework-26.0.0/src/bf/query.py +411 -0
  22. brain_framework-26.0.0/src/bf/records.py +339 -0
  23. brain_framework-26.0.0/src/bf/schemas.py +256 -0
  24. brain_framework-26.0.0/src/bf/skills/bf/SKILL.md +54 -0
  25. brain_framework-26.0.0/src/bf/starter/AGENTS.md +17 -0
  26. brain_framework-26.0.0/src/bf/starter/concepts/welcome.md +15 -0
  27. brain_framework-26.0.0/src/bf/starter/docs/index.md +13 -0
  28. brain_framework-26.0.0/src/bf/starter/evals/smoke.yaml +12 -0
  29. brain_framework-26.0.0/src/bf/starter/gitignore +9 -0
  30. brain_framework-26.0.0/src/bf/storage.py +302 -0
  31. brain_framework-26.0.0/src/bf/watch.py +258 -0
  32. brain_framework-24.0.0/PKG-INFO +0 -187
  33. brain_framework-24.0.0/README.md +0 -153
  34. brain_framework-24.0.0/src/bf/__main__.py +0 -5
  35. brain_framework-24.0.0/src/bf/cli.py +0 -973
  36. brain_framework-24.0.0/src/bf/collect.py +0 -483
  37. brain_framework-24.0.0/src/bf/config.py +0 -460
  38. brain_framework-24.0.0/src/bf/evaluate.py +0 -384
  39. brain_framework-24.0.0/src/bf/graph.py +0 -196
  40. brain_framework-24.0.0/src/bf/guide.py +0 -75
  41. brain_framework-24.0.0/src/bf/guides/authoring.md +0 -58
  42. brain_framework-24.0.0/src/bf/guides/events.md +0 -60
  43. brain_framework-24.0.0/src/bf/guides/getting-started.md +0 -73
  44. brain_framework-24.0.0/src/bf/guides/index.md +0 -37
  45. brain_framework-24.0.0/src/bf/guides/jobs.md +0 -60
  46. brain_framework-24.0.0/src/bf/guides/operations.md +0 -65
  47. brain_framework-24.0.0/src/bf/guides/reference.md +0 -69
  48. brain_framework-24.0.0/src/bf/guides/retrieval.md +0 -60
  49. brain_framework-24.0.0/src/bf/health.py +0 -399
  50. brain_framework-24.0.0/src/bf/index.py +0 -1983
  51. brain_framework-24.0.0/src/bf/install.py +0 -314
  52. brain_framework-24.0.0/src/bf/jobs.py +0 -1085
  53. brain_framework-24.0.0/src/bf/links.py +0 -185
  54. brain_framework-24.0.0/src/bf/map.py +0 -217
  55. brain_framework-24.0.0/src/bf/markdown.py +0 -688
  56. brain_framework-24.0.0/src/bf/mcp.py +0 -206
  57. brain_framework-24.0.0/src/bf/models.py +0 -1175
  58. brain_framework-24.0.0/src/bf/ontology.py +0 -199
  59. brain_framework-24.0.0/src/bf/pages.py +0 -1154
  60. brain_framework-24.0.0/src/bf/records.py +0 -635
  61. brain_framework-24.0.0/src/bf/replies.py +0 -576
  62. brain_framework-24.0.0/src/bf/retrieve.py +0 -709
  63. brain_framework-24.0.0/src/bf/runtime.py +0 -776
  64. brain_framework-24.0.0/src/bf/schemas.py +0 -41
  65. brain_framework-24.0.0/src/bf/skills/bf/SKILL.md +0 -35
  66. brain_framework-24.0.0/src/bf/starter/AGENTS.md +0 -21
  67. brain_framework-24.0.0/src/bf/starter/concepts/index.md +0 -7
  68. brain_framework-24.0.0/src/bf/starter/concepts/welcome.md +0 -9
  69. brain_framework-24.0.0/src/bf/starter/evals/retrieval.yaml +0 -21
  70. brain_framework-24.0.0/src/bf/starter/gitignore +0 -7
  71. brain_framework-24.0.0/src/bf/storage.py +0 -659
  72. brain_framework-24.0.0/src/bf/update.py +0 -226
  73. brain_framework-24.0.0/src/bf/usage.py +0 -326
  74. brain_framework-24.0.0/src/bf/validate.py +0 -678
  75. brain_framework-24.0.0/src/bf/watch.py +0 -823
  76. brain_framework-24.0.0/src/bf/watch_settings.py +0 -129
  77. {brain_framework-24.0.0 → brain_framework-26.0.0}/LICENSE +0 -0
  78. {brain_framework-24.0.0 → brain_framework-26.0.0}/src/bf/py.typed +0 -0
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: brain-framework
3
+ Version: 26.0.0
4
+ Summary: Brain Framework is a local-first brain for you and your AI agents. It compiles OKF Markdown notes into JSON records, validates notes, records, logs, and evals against JSON Schemas, orchestrates jobs and MCP servers, and queries offline with rg, jq, and DuckDB.
5
+ Keywords: ai,ai-agents,agent-memory,agent-skills,agents-md,context-engineering,duckdb,json,json-schema,knowledge-graph,knowledge-management,local-first,mcp,model-context-protocol,personal-knowledge-management,python,second-brain
6
+ Author: Médéric Hurier
7
+ License-Expression: MIT
8
+ License-File: LICENSE
9
+ License-File: THIRD_PARTY_NOTICES.md
10
+ Classifier: Development Status :: 5 - Production/Stable
11
+ Classifier: Environment :: Console
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Operating System :: MacOS
14
+ Classifier: Operating System :: POSIX :: Linux
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.14
17
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
18
+ Classifier: Topic :: Text Processing :: Indexing
19
+ Classifier: Typing :: Typed
20
+ Requires-Dist: durationpy>=0.11,<1
21
+ Requires-Dist: jsonschema>=4.26.0,<5
22
+ Requires-Dist: markdown>=3.11,<4
23
+ Requires-Dist: mcp>=2.1.1,<3
24
+ Requires-Dist: pyyaml>=6.0.3,<7
25
+ Requires-Dist: rich>=15.0.0,<16
26
+ Requires-Dist: watchfiles>=1.1.0,<2
27
+ Requires-Python: >=3.14
28
+ Project-URL: Changelog, https://fmind.github.io/brain-framework/changelog/
29
+ Project-URL: Documentation, https://fmind.github.io/brain-framework/
30
+ Project-URL: Issues, https://github.com/fmind/brain-framework/issues
31
+ Project-URL: Repository, https://github.com/fmind/brain-framework
32
+ Project-URL: Security, https://github.com/fmind/brain-framework/security/policy
33
+ Description-Content-Type: text/markdown
34
+
35
+ <p align="center">
36
+ <img
37
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-framework.svg"
38
+ alt="Brain Framework — Plain-file knowledge and offline retrieval for humans and AI agents"
39
+ width="100%"
40
+ />
41
+ </p>
42
+
43
+ Brain Framework (`bf`) turns a flat folder of human-authored Markdown notes and collected JSON records into a schema-validated, pure-JSON knowledge store (`memories/**/*.json`) that humans and AI agents query offline with `rg`, `jq`, and `duckdb` (`bf query`, `bf read`, or `bf mcp`).
44
+
45
+ - **Three formats, one job each.** **YAML for config** (`bf.yaml`, `evals/*.yaml`, note frontmatter), **JSON for records** (`memories/**/*.json` and `logs/*.json`, enforced by `schemas/*.json`), and **Markdown for humans** (`projects/`, `concepts/`, and `actions/` parsed with [Python-Markdown](https://python-markdown.github.io/) `attr_list` metadata, plus plain Markdown inputs under `prompts/`).
46
+ - **Agents always query JSON.** `bf build` compiles Markdown notes, headings, keyed `attr_list` metadata (`attrs`), links, and open tasks into `memories/{concepts,projects,actions}/*.json`; `bf ingest` writes validated sensor records into `memories/<source>/*.json`.
47
+ - **Minimal, standard-driven core.** Under 4,500 lines of Python delegating retrieval to `rg`, `jq`, and sandboxed `duckdb`, cross-references to relative Markdown paths and standard `bf://` URLs, and orchestration (`defaults`, `jobs`, `channels`, `servers`, `watch`, `mcp`) to `bf.yaml` — with zero custom databases, built-in LLMs, or provider SDKs.
48
+
49
+ [![CI](https://github.com/fmind/brain-framework/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fmind/brain-framework/actions/workflows/ci.yml) [![PyPI](https://img.shields.io/pypi/v/brain-framework?color=174EA6)](https://pypi.org/project/brain-framework/) [![Python](https://img.shields.io/pypi/pyversions/brain-framework)](https://pypi.org/project/brain-framework/) [![License: MIT](https://img.shields.io/badge/license-MIT-174EA6)](https://github.com/fmind/brain-framework/blob/main/LICENSE)
50
+
51
+ ## Try it
52
+
53
+ Requires Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/) — no model or cloud account needed:
54
+
55
+ ```bash
56
+ uv tool install --python 3.14 brain-framework
57
+ bf init ~/brain
58
+ cd ~/brain
59
+ bf validate
60
+ bf eval
61
+ bf review
62
+ bf query --jq '{ref, title, attrs}'
63
+ ```
64
+
65
+ Explore the [four-tool walkthrough](https://github.com/fmind/brain-framework/blob/main/examples/context-hub/README.md) (Workspace, Jira, GitHub, and Google Cloud fixtures) or read [Getting started](https://fmind.github.io/brain-framework/getting-started/).
66
+
67
+ ## How it works
68
+
69
+ <a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg">
70
+ <img
71
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg"
72
+ alt="Gather, normalize, organize, act, and learn loop"
73
+ width="100%"
74
+ />
75
+ </a>
76
+
77
+ - **Notes, `attr_list`, & `bf://` URLs ([Authoring](https://fmind.github.io/brain-framework/authoring/)):** Separate volatile TODOs (`projects/`), durable knowledge (`concepts/`), and dated workspaces (`actions/*/ACTION.md`). Attach metadata on headings (`## MCP {#mcp creator=Anthropic}`) and blocks (`{: #summary confidence=high}`), and cross-reference notes or sibling brains with `bf://` URLs.
78
+ - **User schemas, jobs, & live watch ([Operations](https://fmind.github.io/brain-framework/operations/)):** Ship user-owned JSON Schemas in `schemas/`, copy stdlib sensors from [examples/sensors](https://github.com/fmind/brain-framework/tree/main/examples/sensors), and orchestrate schedules, JSON event triggers, channels, daemons, and Rich TUI monitoring via `bf.yaml` (`defaults`, `jobs`, `channels`, `servers`, `watch`).
79
+ - **Standard JSON retrieval & MCP ([Retrieval](https://fmind.github.io/brain-framework/retrieval/)):** Resolve `bf://` anchors and `#<jq_filter>` fragments with `bf read`, search and join `memories/**/*.json` via `bf query` (`rg`, `jq`, `duckdb`), run deterministic `bf eval` checks, or expose read-only tools via `bf mcp`.
80
+ - **Integrity & freshness ([Reference](https://fmind.github.io/brain-framework/reference/)):** `bf validate` checks every schema, link, `#anchor`, and cross-brain `bf://` reference; `bf review` surfaces `newer_evidence`, overdue `stale_after` notes, and open `draft` actions.
81
+
82
+ ## Good to know
83
+
84
+ 1. **Local-first and private.** Zero global config (`--brain` -> `BF_BRAIN` -> enclosing `bf.yaml` -> `DEFAULT_BRAIN_PATH`), `O_NOFOLLOW` path confinement, private `0700` `.bf/` locks/state, and locked read-only DuckDB queries ([Operations](https://fmind.github.io/brain-framework/operations/)).
85
+ 2. **Harnesses reason; BF verifies.** Coding agents load the single `/bf` [Agent Skill](https://agentskills.io/specification) from `.agents/skills/bf`, automatically track actions inside a brain (or respond to explicit `/bf` outside), and run `bf build && bf validate && bf eval` ([Example brain](https://github.com/fmind/brain-framework/blob/main/examples/brain/README.md)).
86
+ 3. **Git-native collaboration.** Track notes, `bf.yaml`, `evals/`, and `schemas/` in Git while ignoring compiled note JSON files, `logs/`, `actions/`, and `.bf/`.
87
+
88
+ [Documentation](https://fmind.github.io/brain-framework/) · [Reference](https://fmind.github.io/brain-framework/reference/) · [Issues](https://github.com/fmind/brain-framework/issues) · [Contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md) · [Governance](https://github.com/fmind/brain-framework/blob/main/GOVERNANCE.md) · [MIT License](https://github.com/fmind/brain-framework/blob/main/LICENSE) · [Third-party notices](https://github.com/fmind/brain-framework/blob/main/THIRD_PARTY_NOTICES.md)
@@ -0,0 +1,54 @@
1
+ <p align="center">
2
+ <img
3
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-framework.svg"
4
+ alt="Brain Framework — Plain-file knowledge and offline retrieval for humans and AI agents"
5
+ width="100%"
6
+ />
7
+ </p>
8
+
9
+ Brain Framework (`bf`) turns a flat folder of human-authored Markdown notes and collected JSON records into a schema-validated, pure-JSON knowledge store (`memories/**/*.json`) that humans and AI agents query offline with `rg`, `jq`, and `duckdb` (`bf query`, `bf read`, or `bf mcp`).
10
+
11
+ - **Three formats, one job each.** **YAML for config** (`bf.yaml`, `evals/*.yaml`, note frontmatter), **JSON for records** (`memories/**/*.json` and `logs/*.json`, enforced by `schemas/*.json`), and **Markdown for humans** (`projects/`, `concepts/`, and `actions/` parsed with [Python-Markdown](https://python-markdown.github.io/) `attr_list` metadata, plus plain Markdown inputs under `prompts/`).
12
+ - **Agents always query JSON.** `bf build` compiles Markdown notes, headings, keyed `attr_list` metadata (`attrs`), links, and open tasks into `memories/{concepts,projects,actions}/*.json`; `bf ingest` writes validated sensor records into `memories/<source>/*.json`.
13
+ - **Minimal, standard-driven core.** Under 4,500 lines of Python delegating retrieval to `rg`, `jq`, and sandboxed `duckdb`, cross-references to relative Markdown paths and standard `bf://` URLs, and orchestration (`defaults`, `jobs`, `channels`, `servers`, `watch`, `mcp`) to `bf.yaml` — with zero custom databases, built-in LLMs, or provider SDKs.
14
+
15
+ [![CI](https://github.com/fmind/brain-framework/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/fmind/brain-framework/actions/workflows/ci.yml) [![PyPI](https://img.shields.io/pypi/v/brain-framework?color=174EA6)](https://pypi.org/project/brain-framework/) [![Python](https://img.shields.io/pypi/pyversions/brain-framework)](https://pypi.org/project/brain-framework/) [![License: MIT](https://img.shields.io/badge/license-MIT-174EA6)](https://github.com/fmind/brain-framework/blob/main/LICENSE)
16
+
17
+ ## Try it
18
+
19
+ Requires Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/) — no model or cloud account needed:
20
+
21
+ ```bash
22
+ uv tool install --python 3.14 brain-framework
23
+ bf init ~/brain
24
+ cd ~/brain
25
+ bf validate
26
+ bf eval
27
+ bf review
28
+ bf query --jq '{ref, title, attrs}'
29
+ ```
30
+
31
+ Explore the [four-tool walkthrough](https://github.com/fmind/brain-framework/blob/main/examples/context-hub/README.md) (Workspace, Jira, GitHub, and Google Cloud fixtures) or read [Getting started](https://fmind.github.io/brain-framework/getting-started/).
32
+
33
+ ## How it works
34
+
35
+ <a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg">
36
+ <img
37
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg"
38
+ alt="Gather, normalize, organize, act, and learn loop"
39
+ width="100%"
40
+ />
41
+ </a>
42
+
43
+ - **Notes, `attr_list`, & `bf://` URLs ([Authoring](https://fmind.github.io/brain-framework/authoring/)):** Separate volatile TODOs (`projects/`), durable knowledge (`concepts/`), and dated workspaces (`actions/*/ACTION.md`). Attach metadata on headings (`## MCP {#mcp creator=Anthropic}`) and blocks (`{: #summary confidence=high}`), and cross-reference notes or sibling brains with `bf://` URLs.
44
+ - **User schemas, jobs, & live watch ([Operations](https://fmind.github.io/brain-framework/operations/)):** Ship user-owned JSON Schemas in `schemas/`, copy stdlib sensors from [examples/sensors](https://github.com/fmind/brain-framework/tree/main/examples/sensors), and orchestrate schedules, JSON event triggers, channels, daemons, and Rich TUI monitoring via `bf.yaml` (`defaults`, `jobs`, `channels`, `servers`, `watch`).
45
+ - **Standard JSON retrieval & MCP ([Retrieval](https://fmind.github.io/brain-framework/retrieval/)):** Resolve `bf://` anchors and `#<jq_filter>` fragments with `bf read`, search and join `memories/**/*.json` via `bf query` (`rg`, `jq`, `duckdb`), run deterministic `bf eval` checks, or expose read-only tools via `bf mcp`.
46
+ - **Integrity & freshness ([Reference](https://fmind.github.io/brain-framework/reference/)):** `bf validate` checks every schema, link, `#anchor`, and cross-brain `bf://` reference; `bf review` surfaces `newer_evidence`, overdue `stale_after` notes, and open `draft` actions.
47
+
48
+ ## Good to know
49
+
50
+ 1. **Local-first and private.** Zero global config (`--brain` -> `BF_BRAIN` -> enclosing `bf.yaml` -> `DEFAULT_BRAIN_PATH`), `O_NOFOLLOW` path confinement, private `0700` `.bf/` locks/state, and locked read-only DuckDB queries ([Operations](https://fmind.github.io/brain-framework/operations/)).
51
+ 2. **Harnesses reason; BF verifies.** Coding agents load the single `/bf` [Agent Skill](https://agentskills.io/specification) from `.agents/skills/bf`, automatically track actions inside a brain (or respond to explicit `/bf` outside), and run `bf build && bf validate && bf eval` ([Example brain](https://github.com/fmind/brain-framework/blob/main/examples/brain/README.md)).
52
+ 3. **Git-native collaboration.** Track notes, `bf.yaml`, `evals/`, and `schemas/` in Git while ignoring compiled note JSON files, `logs/`, `actions/`, and `.bf/`.
53
+
54
+ [Documentation](https://fmind.github.io/brain-framework/) · [Reference](https://fmind.github.io/brain-framework/reference/) · [Issues](https://github.com/fmind/brain-framework/issues) · [Contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md) · [Governance](https://github.com/fmind/brain-framework/blob/main/GOVERNANCE.md) · [MIT License](https://github.com/fmind/brain-framework/blob/main/LICENSE) · [Third-party notices](https://github.com/fmind/brain-framework/blob/main/THIRD_PARTY_NOTICES.md)
@@ -1,43 +1,9 @@
1
1
  # Third-party notices
2
2
 
3
- Brain Framework depends on the following non-development Python distributions on its declared Linux and macOS platforms, including those its optional `mcp` extra installs. The inventory is the complete locked closure selected by `uv tree --no-dev`; build and test dependencies are intentionally excluded.
3
+ Brain Framework depends on the following non-development Python distributions on its declared Linux and macOS platforms. The inventory is the complete locked closure selected by `uv tree --no-dev`; build and test dependencies are intentionally excluded.
4
4
 
5
5
  License expressions come from the installed distribution metadata. Legal text is copied from the corresponding installed wheel files and formatted only as Markdown text blocks. The Brain Framework project itself is licensed separately in `LICENSE`.
6
6
 
7
- ## annotated-doc 0.0.6
8
-
9
- Source: <https://github.com/fastapi/annotated-doc>
10
-
11
- License: `MIT`
12
-
13
- Evidence: `annotated_doc-0.0.6.dist-info/licenses/LICENSE`
14
-
15
- ### annotated_doc-0.0.6.dist-info/licenses/LICENSE
16
-
17
- ```text
18
- The MIT License (MIT)
19
-
20
- Copyright (c) 2025 Sebastián Ramírez
21
-
22
- Permission is hereby granted, free of charge, to any person obtaining a copy
23
- of this software and associated documentation files (the "Software"), to deal
24
- in the Software without restriction, including without limitation the rights
25
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
- copies of the Software, and to permit persons to whom the Software is
27
- furnished to do so, subject to the following conditions:
28
-
29
- The above copyright notice and this permission notice shall be included in
30
- all copies or substantial portions of the Software.
31
-
32
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
38
- THE SOFTWARE.
39
- ```
40
-
41
7
  ## annotated-types 0.8.0
42
8
 
43
9
  Source: <https://github.com/annotated-types/annotated-types>
@@ -472,6 +438,26 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
472
438
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
473
439
  ```
474
440
 
441
+ ## durationpy 0.11
442
+
443
+ Source: <https://github.com/icholy/durationpy>
444
+
445
+ License: `MIT`
446
+
447
+ Evidence: `durationpy-0.11.dist-info/licenses/LICENSE`
448
+
449
+ ### durationpy-0.11.dist-info/licenses/LICENSE
450
+
451
+ ```text
452
+ Copyright 2017 Ilia Choly
453
+
454
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
455
+
456
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
457
+
458
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
459
+ ```
460
+
475
461
  ## h11 0.16.0
476
462
 
477
463
  Source: <https://github.com/python-hyper/h11>
@@ -682,6 +668,49 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
682
668
  THE SOFTWARE.
683
669
  ```
684
670
 
671
+ ## markdown 3.11.3
672
+
673
+ Source: <https://github.com/Python-Markdown/markdown>
674
+
675
+ License: `BSD-3-Clause`
676
+
677
+ Evidence: `markdown-3.11.3.dist-info/licenses/LICENSE.md`
678
+
679
+ ### markdown-3.11.3.dist-info/licenses/LICENSE.md
680
+
681
+ ```text
682
+ BSD 3-Clause License
683
+
684
+ Copyright 2007, 2008 The Python Markdown Project (v. 1.7 and later)
685
+ Copyright 2004, 2005, 2006 Yuri Takhteyev (v. 0.2-1.6b)
686
+ Copyright 2004 Manfred Stienstra (the original version)
687
+
688
+ Redistribution and use in source and binary forms, with or without
689
+ modification, are permitted provided that the following conditions are met:
690
+
691
+ 1. Redistributions of source code must retain the above copyright notice, this
692
+ list of conditions and the following disclaimer.
693
+
694
+ 2. Redistributions in binary form must reproduce the above copyright notice,
695
+ this list of conditions and the following disclaimer in the documentation
696
+ and/or other materials provided with the distribution.
697
+
698
+ 3. Neither the name of the copyright holder nor the names of its
699
+ contributors may be used to endorse or promote products derived from
700
+ this software without specific prior written permission.
701
+
702
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
703
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
704
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
705
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
706
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
707
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
708
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
709
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
710
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
711
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
712
+ ```
713
+
685
714
  ## markdown-it-py 4.3.0
686
715
 
687
716
  Source: <https://github.com/executablebooks/markdown-it-py>
@@ -1609,32 +1638,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1609
1638
  THE SOFTWARE.
1610
1639
  ```
1611
1640
 
1612
- ## shellingham 1.5.4
1613
-
1614
- Source: <https://github.com/sarugaku/shellingham>
1615
-
1616
- License: `ISC`
1617
-
1618
- Evidence: `shellingham-1.5.4.dist-info/LICENSE`
1619
-
1620
- ### shellingham-1.5.4.dist-info/LICENSE
1621
-
1622
- ```text
1623
- Copyright (c) 2018, Tzu-ping Chung <uranusjr@gmail.com>
1624
-
1625
- Permission to use, copy, modify, and distribute this software for any
1626
- purpose with or without fee is hereby granted, provided that the above
1627
- copyright notice and this permission notice appear in all copies.
1628
-
1629
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
1630
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
1631
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
1632
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
1633
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1634
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1635
- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1636
- ```
1637
-
1638
1641
  ## sse-starlette 3.7.0
1639
1642
 
1640
1643
  Source: <https://github.com/sysid/sse-starlette>
@@ -1749,77 +1752,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1749
1752
  THE SOFTWARE.
1750
1753
  ```
1751
1754
 
1752
- ## typer 0.29.0
1753
-
1754
- Source: <https://github.com/fastapi/typer>
1755
-
1756
- License: `MIT`
1757
-
1758
- The distribution vendors code adapted from Click in `typer/_click/`; its bundled `BSD-3-Clause` license is included below.
1759
-
1760
- Evidence: `typer-0.29.0.dist-info/licenses/LICENSE`
1761
-
1762
- ### typer-0.29.0.dist-info/licenses/LICENSE
1763
-
1764
- ```text
1765
- The MIT License (MIT)
1766
-
1767
- Copyright (c) 2019 Sebastián Ramírez
1768
-
1769
- Permission is hereby granted, free of charge, to any person obtaining a copy
1770
- of this software and associated documentation files (the "Software"), to deal
1771
- in the Software without restriction, including without limitation the rights
1772
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1773
- copies of the Software, and to permit persons to whom the Software is
1774
- furnished to do so, subject to the following conditions:
1775
-
1776
- The above copyright notice and this permission notice shall be included in
1777
- all copies or substantial portions of the Software.
1778
-
1779
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1780
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1781
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1782
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1783
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1784
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
1785
- THE SOFTWARE.
1786
- ```
1787
-
1788
- Evidence: `typer/_click/LICENSE.txt`
1789
-
1790
- ### typer/_click/LICENSE.txt
1791
-
1792
- ```text
1793
- Copyright 2014 Pallets
1794
-
1795
- Redistribution and use in source and binary forms, with or without
1796
- modification, are permitted provided that the following conditions are
1797
- met:
1798
-
1799
- 1. Redistributions of source code must retain the above copyright
1800
- notice, this list of conditions and the following disclaimer.
1801
-
1802
- 2. Redistributions in binary form must reproduce the above copyright
1803
- notice, this list of conditions and the following disclaimer in the
1804
- documentation and/or other materials provided with the distribution.
1805
-
1806
- 3. Neither the name of the copyright holder nor the names of its
1807
- contributors may be used to endorse or promote products derived from
1808
- this software without specific prior written permission.
1809
-
1810
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
1811
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
1812
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
1813
- PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1814
- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1815
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
1816
- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
1817
- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
1818
- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
1819
- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
1820
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1821
- ```
1822
-
1823
1755
  ## typing-extensions 4.16.0
1824
1756
 
1825
1757
  Source: <https://github.com/python/typing_extensions>
@@ -2185,3 +2117,37 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
2185
2117
  OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
2186
2118
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2187
2119
  ```
2120
+
2121
+ ## watchfiles 1.3.0
2122
+
2123
+ Source: <https://github.com/samuelcolvin/watchfiles>
2124
+
2125
+ License: `MIT`
2126
+
2127
+ Evidence: `watchfiles-1.3.0.dist-info/licenses/LICENSE`
2128
+
2129
+ ### watchfiles-1.3.0.dist-info/licenses/LICENSE
2130
+
2131
+ ```text
2132
+ The MIT License (MIT)
2133
+
2134
+ Copyright (c) 2017 to present Samuel Colvin
2135
+
2136
+ Permission is hereby granted, free of charge, to any person obtaining a copy
2137
+ of this software and associated documentation files (the "Software"), to deal
2138
+ in the Software without restriction, including without limitation the rights
2139
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
2140
+ copies of the Software, and to permit persons to whom the Software is
2141
+ furnished to do so, subject to the following conditions:
2142
+
2143
+ The above copyright notice and this permission notice shall be included in all
2144
+ copies or substantial portions of the Software.
2145
+
2146
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2147
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2148
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
2149
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2150
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2151
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2152
+ SOFTWARE.
2153
+ ```
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "brain-framework"
3
- version = "24.0.0"
4
- description = "Brain Framework is a local-first brain for you and your AI agents. It collects evidence from your tools into plain files you own, connects them through an ontology you declare, lets any agent harness search and read offline, and wakes your harness when declarative when: rules or reviewed gates spot new evidence."
3
+ version = "26.0.0"
4
+ description = "Brain Framework is a local-first brain for you and your AI agents. It compiles OKF Markdown notes into JSON records, validates notes, records, logs, and evals against JSON Schemas, orchestrates jobs and MCP servers, and queries offline with rg, jq, and DuckDB."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
7
7
  license = "MIT"
@@ -16,12 +16,14 @@ keywords = [
16
16
  "agent-skills",
17
17
  "agents-md",
18
18
  "context-engineering",
19
+ "duckdb",
20
+ "json",
21
+ "json-schema",
19
22
  "knowledge-graph",
20
23
  "knowledge-management",
21
24
  "local-first",
22
25
  "mcp",
23
26
  "model-context-protocol",
24
- "ontology",
25
27
  "personal-knowledge-management",
26
28
  "python",
27
29
  "second-brain",
@@ -39,19 +41,18 @@ classifiers = [
39
41
  "Typing :: Typed",
40
42
  ]
41
43
  dependencies = [
42
- "markdown-it-py>=4.2.0,<5",
43
- "pydantic>=2.13.5,<3",
44
+ "durationpy>=0.11,<1",
45
+ "jsonschema>=4.26.0,<5",
46
+ "markdown>=3.11,<4",
47
+ "mcp>=2.1.1,<3",
44
48
  "pyyaml>=6.0.3,<7",
45
49
  "rich>=15.0.0,<16",
46
- "typer>=0.27.2",
50
+ "watchfiles>=1.1.0,<2",
47
51
  ]
48
52
 
49
53
  [[project.authors]]
50
54
  name = "Médéric Hurier"
51
55
 
52
- [project.optional-dependencies]
53
- mcp = ["mcp>=2.1.1,<3"]
54
-
55
56
  [project.urls]
56
57
  Changelog = "https://fmind.github.io/brain-framework/changelog/"
57
58
  Documentation = "https://fmind.github.io/brain-framework/"
@@ -123,18 +124,12 @@ select = [
123
124
  "W",
124
125
  ]
125
126
  ignore = [
126
- "ASYNC240",
127
127
  "E501",
128
128
  "PLW0108",
129
129
  "PLW2901",
130
130
  ]
131
131
 
132
132
  [tool.ruff.lint.per-file-ignores]
133
- "examples/channels/**" = ["S603"]
134
- "examples/hooks/**" = [
135
- "BLE001",
136
- "S607",
137
- ]
138
133
  "examples/sensors/**" = [
139
134
  "S603",
140
135
  "S607",
@@ -172,9 +167,6 @@ skip_empty = true
172
167
 
173
168
  [dependency-groups]
174
169
  dev = [
175
- "brain-framework[mcp]",
176
- "jsonschema>=4.26.0,<5",
177
- "markdown>=3.11",
178
170
  "packaging>=26.3",
179
171
  "pytest-cov>=7.1.0",
180
172
  "pytest-watcher>=0.6.3",
@@ -1,8 +1,8 @@
1
1
  # https://packaging.python.org/en/latest/specifications/pyproject-toml/
2
2
  [project]
3
3
  name = "brain-framework"
4
- version = "24.0.0"
5
- description = "Brain Framework is a local-first brain for you and your AI agents. It collects evidence from your tools into plain files you own, connects them through an ontology you declare, lets any agent harness search and read offline, and wakes your harness when declarative when: rules or reviewed gates spot new evidence."
4
+ version = "26.0.0"
5
+ description = "Brain Framework is a local-first brain for you and your AI agents. It compiles OKF Markdown notes into JSON records, validates notes, records, logs, and evals against JSON Schemas, orchestrates jobs and MCP servers, and queries offline with rg, jq, and DuckDB."
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.14"
8
8
  license = "MIT"
@@ -15,12 +15,14 @@ keywords = [
15
15
  "agent-skills",
16
16
  "agents-md",
17
17
  "context-engineering",
18
+ "duckdb",
19
+ "json",
20
+ "json-schema",
18
21
  "knowledge-graph",
19
22
  "knowledge-management",
20
23
  "local-first",
21
24
  "mcp",
22
25
  "model-context-protocol",
23
- "ontology",
24
26
  "personal-knowledge-management",
25
27
  "python",
26
28
  "second-brain",
@@ -38,17 +40,15 @@ classifiers = [
38
40
  "Typing :: Typed",
39
41
  ]
40
42
  dependencies = [
41
- "markdown-it-py>=4.2.0,<5",
42
- "pydantic>=2.13.5,<3",
43
+ "durationpy>=0.11,<1",
44
+ "jsonschema>=4.26.0,<5",
45
+ "markdown>=3.11,<4",
46
+ "mcp>=2.1.1,<3",
43
47
  "pyyaml>=6.0.3,<7",
44
48
  "rich>=15.0.0,<16",
45
- "typer>=0.27.2",
49
+ "watchfiles>=1.1.0,<2",
46
50
  ]
47
51
 
48
- [project.optional-dependencies]
49
- # `bf mcp` only: most people call the CLI, and the MCP SDK brings most of the runtime closure.
50
- mcp = ["mcp>=2.1.1,<3"]
51
-
52
52
  [project.urls]
53
53
  Changelog = "https://fmind.github.io/brain-framework/changelog/"
54
54
  Documentation = "https://fmind.github.io/brain-framework/"
@@ -68,11 +68,6 @@ module-name = "bf"
68
68
 
69
69
  [dependency-groups]
70
70
  dev = [
71
- # The checkout tests and documents `bf mcp`, so its environment always holds the optional MCP SDK.
72
- "brain-framework[mcp]",
73
- "jsonschema>=4.26.0,<5",
74
- # Imported directly by tests/test_readme.py: Zensical slugs headings with Python-Markdown.
75
- "markdown>=3.11",
76
71
  # Imported directly by scripts/notices.py to parse requirements and normalize names.
77
72
  "packaging>=26.3",
78
73
  "pytest-cov>=7.1.0",
@@ -136,24 +131,16 @@ select = [
136
131
  "W", # Enforce pycodestyle warnings.
137
132
  ]
138
133
  ignore = [
139
- "ASYNC240", # Brain Framework performs bounded local filesystem work from async MCP handlers.
140
134
  "E501", # Long CLI help and schema descriptions are clearer as one string.
141
135
  "PLW0108", # Unnecessary-lambda is style outside Ruff's default set.
142
136
  "PLW2901", # Deliberate loop-variable rebinding is outside Ruff's default set.
143
137
  ]
144
138
 
145
139
  [tool.ruff.lint.per-file-ignores]
146
- "examples/channels/**" = [
147
- "S603", # Channel adapters invoke notifier CLIs with literal argv lists and no shell.
148
- ]
149
- "examples/hooks/**" = [
150
- "BLE001", # Silent hooks must exit 0 with no output on any unexpected error.
151
- "S607", # Hooks resolve `git` by bare name on PATH with literal arguments.
152
- ]
153
140
  "examples/sensors/**" = [
154
141
  "S603", # Adapters invoke provider CLIs with literal argv lists; no shell is involved.
155
- "S607", # Provider CLIs are resolved by bare name on the PATH Brain Framework sanitizes.
156
- "T201", # Adapters print exactly one JSON array to stdout.
142
+ "S607", # Provider CLIs are resolved by bare name on PATH.
143
+ "T201", # Adapters print JSON records to stdout.
157
144
  ]
158
145
  "tests/**" = [
159
146
  "BLE001", # Worker-thread test helpers record any exception so the test thread can assert on it.
@@ -1,14 +1,13 @@
1
- """🧠 Brain Framework: from information to informed actions."""
1
+ """Brain Framework: OKF Markdown notes, pure JSON memories, JSON Schema contracts, and offline retrieval."""
2
2
 
3
3
  import os
4
4
  import sys
5
5
 
6
- __version__ = "24.0.0"
6
+ __version__ = "26.0.0"
7
7
 
8
8
 
9
9
  def main() -> None:
10
10
  """Run the console interface."""
11
- # Locks and process groups use POSIX primitives; fail clearly before importing them elsewhere.
12
11
  if os.name != "posix":
13
12
  raise SystemExit("bf: Brain Framework requires Linux or macOS")
14
13
  if sys.argv[1:] == ["--version"] and sys.stdout is not None:
@@ -0,0 +1,6 @@
1
+ """Module entrypoint for `python -m bf`."""
2
+
3
+ from bf import main
4
+
5
+ if __name__ == "__main__":
6
+ main()