brain-framework 29.0.0__tar.gz → 30.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 (51) hide show
  1. {brain_framework-29.0.0 → brain_framework-30.0.0}/PKG-INFO +12 -14
  2. brain_framework-30.0.0/README.md +53 -0
  3. {brain_framework-29.0.0 → brain_framework-30.0.0}/THIRD_PARTY_NOTICES.md +0 -226
  4. {brain_framework-29.0.0 → brain_framework-30.0.0}/pyproject.toml +2 -3
  5. {brain_framework-29.0.0 → brain_framework-30.0.0}/pyproject.toml.orig +2 -3
  6. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/__init__.py +3 -1
  7. brain_framework-30.0.0/src/bf/cli.py +289 -0
  8. brain_framework-30.0.0/src/bf/config.py +458 -0
  9. brain_framework-30.0.0/src/bf/engine.py +642 -0
  10. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/guides/authoring.md +6 -6
  11. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/guides/getting-started.md +12 -17
  12. brain_framework-30.0.0/src/bf/guides/index.md +19 -0
  13. brain_framework-30.0.0/src/bf/guides/operations.md +78 -0
  14. brain_framework-30.0.0/src/bf/guides/reference.md +63 -0
  15. brain_framework-30.0.0/src/bf/guides/retrieval.md +53 -0
  16. brain_framework-30.0.0/src/bf/loops.py +624 -0
  17. brain_framework-30.0.0/src/bf/markdown.py +639 -0
  18. brain_framework-30.0.0/src/bf/mcp.py +179 -0
  19. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/models.py +46 -22
  20. brain_framework-30.0.0/src/bf/proc.py +215 -0
  21. brain_framework-30.0.0/src/bf/query.py +521 -0
  22. brain_framework-30.0.0/src/bf/records.py +353 -0
  23. brain_framework-30.0.0/src/bf/schemas.py +324 -0
  24. brain_framework-30.0.0/src/bf/skills/bf/SKILL.md +56 -0
  25. brain_framework-30.0.0/src/bf/starter/AGENTS.md +17 -0
  26. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/starter/concepts/welcome.md +2 -2
  27. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/starter/evals/smoke.yaml +1 -1
  28. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/storage.py +134 -98
  29. brain_framework-30.0.0/src/bf/watch.py +585 -0
  30. brain_framework-29.0.0/README.md +0 -54
  31. brain_framework-29.0.0/src/bf/cli.py +0 -201
  32. brain_framework-29.0.0/src/bf/config.py +0 -439
  33. brain_framework-29.0.0/src/bf/engine.py +0 -465
  34. brain_framework-29.0.0/src/bf/guides/index.md +0 -19
  35. brain_framework-29.0.0/src/bf/guides/operations.md +0 -65
  36. brain_framework-29.0.0/src/bf/guides/reference.md +0 -59
  37. brain_framework-29.0.0/src/bf/guides/retrieval.md +0 -51
  38. brain_framework-29.0.0/src/bf/jobs.py +0 -489
  39. brain_framework-29.0.0/src/bf/markdown.py +0 -586
  40. brain_framework-29.0.0/src/bf/mcp.py +0 -146
  41. brain_framework-29.0.0/src/bf/query.py +0 -414
  42. brain_framework-29.0.0/src/bf/records.py +0 -385
  43. brain_framework-29.0.0/src/bf/schemas.py +0 -228
  44. brain_framework-29.0.0/src/bf/skills/bf/SKILL.md +0 -54
  45. brain_framework-29.0.0/src/bf/starter/AGENTS.md +0 -17
  46. brain_framework-29.0.0/src/bf/starter/docs/index.md +0 -12
  47. brain_framework-29.0.0/src/bf/watch.py +0 -528
  48. {brain_framework-29.0.0 → brain_framework-30.0.0}/LICENSE +0 -0
  49. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/__main__.py +0 -0
  50. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/py.typed +0 -0
  51. {brain_framework-29.0.0 → brain_framework-30.0.0}/src/bf/starter/gitignore +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: brain-framework
3
- Version: 29.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, and evals against JSON Schemas, orchestrates jobs and services, and queries offline with rg and jq.
3
+ Version: 30.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, and evals against JSON Schemas, orchestrates unified loops, and queries offline with rg and jq.
5
5
  Keywords: ai,ai-agents,agent-memory,agent-skills,agents-md,context-engineering,json,json-schema,knowledge-graph,knowledge-management,local-first,mcp,model-context-protocol,personal-knowledge-management,python,second-brain
6
6
  Author: Médéric Hurier
7
7
  License-Expression: MIT
@@ -23,7 +23,6 @@ Requires-Dist: markdown>=3.11,<4
23
23
  Requires-Dist: mcp>=2.1.1,<3
24
24
  Requires-Dist: pyyaml>=6.0.3,<7
25
25
  Requires-Dist: rich>=15.0.0,<16
26
- Requires-Dist: structlog>=25.0.0,<27
27
26
  Requires-Dist: watchfiles>=1.1.0,<2
28
27
  Requires-Python: >=3.14
29
28
  Project-URL: Changelog, https://fmind.github.io/brain-framework/changelog/
@@ -43,9 +42,9 @@ Description-Content-Type: text/markdown
43
42
 
44
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` and `jq` (`bf query`, `bf read`, or `bf mcp`).
45
44
 
46
- - **Three formats, one job each.** **YAML for config** (`bf.yaml`, `evals/*.yaml`, note frontmatter), **JSON for records** (`memories/**/*.json`, enforced by `schemas/*.json`, plus `structlog` JSON lines in `logs/*.log`), 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/`).
47
- - **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`.
48
- - **Minimal, standard-driven core.** Under 4,500 lines of Python delegating retrieval to `rg` and `jq`, cross-references to relative Markdown paths and standard `bf://` URLs, and orchestration (`timezone`, `env`, `jobs`, `services`, `watch`) to `bf.yaml` — with zero custom databases, built-in LLMs, or provider SDKs.
45
+ - **Three formats, one job each.** **YAML for config** (`bf.yaml` `version: 15`, `evals/*.yaml`, note frontmatter), **JSON for records** (`memories/**/*.json`, validated by package-owned core schemas and user `schemas/*.json`, plus plain JSON lines in `logs/*.log`), 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 — with minimal tokens.** `bf build` compiles Markdown notes, headings, keyed `attr_list` metadata (`attrs`), links, and open tasks into `memories/{concepts,projects,actions}/*.json` and maintains `.bf/index.jsonl`. `bf read` (`--outline`, `--lines`, `--fields`, `--max-bytes`), `bf query` (`rg` + `--jq`, `--format jsonl|tsv`), `bf review`, and `bf status` keep outputs bounded and fast.
47
+ - **Unified strange-loop orchestration (`loops:`).** Around 5,000 lines of Python with lazy imports, delegating retrieval to `rg` and `jq`, cross-references to relative Markdown paths, `source:id`, and `bf://` URLs, and every sensor, routine, git hook, continuous listener (`daemon: true`), and autonomous thinking bot to one `loops:` primitive in `bf.yaml` — with bounded concurrent execution under `bf watch` and zero custom databases, built-in LLMs, or provider SDKs.
49
48
 
50
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)
51
50
 
@@ -57,8 +56,7 @@ Requires Linux or macOS, [uv](https://docs.astral.sh/uv/getting-started/installa
57
56
  uv tool install --python 3.14 brain-framework
58
57
  bf init ~/brain
59
58
  cd ~/brain
60
- bf validate
61
- bf eval
59
+ bf check
62
60
  bf review
63
61
  bf query --jq '{ref, title, attrs}'
64
62
  ```
@@ -75,15 +73,15 @@ Explore the [four-tool walkthrough](https://github.com/fmind/brain-framework/blo
75
73
  />
76
74
  </a>
77
75
 
78
- - **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.
79
- - **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 cron/duration schedules, `structlog` JSON logs, event triggers, services, and Rich TUI monitoring via `bf.yaml` (`jobs`, `services`, `watch`).
80
- - **Standard JSON retrieval & MCP ([Retrieval](https://fmind.github.io/brain-framework/retrieval/)):** Resolve `bf://` URLs and `#anchor` sections with `bf read`, search and filter `memories/**/*.json` via `bf query` (`rg`, `jq`), run deterministic `bf eval` checks, or expose read-only tools via `bf mcp`.
81
- - **Integrity & freshness ([Reference](https://fmind.github.io/brain-framework/reference/)):** `bf validate` checks every schema, compiled-note sync, link, `#anchor`, and cross-brain `bf://` reference; `bf review` surfaces `newer_evidence`, overdue `stale_after` notes, and open `draft` actions.
76
+ - **Notes, `attr_list`, & unified links ([Authoring](https://fmind.github.io/brain-framework/authoring/)):** Separate volatile TODOs (`projects/`), durable knowledge (`concepts/`), and dated workspaces (`actions/*/ACTION.md`), scaffold with `bf new`, attach metadata on headings (`## MCP {#mcp creator=Anthropic}`) and blocks (`{: #summary confidence=high}`), and cross-reference notes, records (`source:id`), or sibling brains (`bf://`).
77
+ - **Unified `loops:`, schemas, & concurrent `bf 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 multi-schedule, event-triggered, git-hook, `emit: true|<kind>`, and `daemon: true` loops under `bf.yaml` (`loops:`, `watch.concurrency`) with a live Rich TUI.
78
+ - **Standard JSON retrieval & MCP ([Retrieval](https://fmind.github.io/brain-framework/retrieval/)):** Resolve `bf://` URLs, `#anchor` sections, `--outline`, or `--lines` with `bf read`, search and filter `memories/**/*.json` via `bf query` (`rg`, `jq`, or `rg` + `--jq`), verify in one shot with `bf check`, or expose strictly read-only tools via `bf mcp`.
79
+ - **Integrity, freshness, & schemas ([Reference](https://fmind.github.io/brain-framework/reference/)):** `bf validate` checks every schema, compiled-note sync, link, `#anchor`, and cross-brain `bf://` reference with digest caching; `bf review` surfaces `newer_evidence`, overdue `stale_after` notes, and open `draft` actions; `bf schema` prints bundled Draft 2020-12 JSON Schemas.
82
80
 
83
81
  ## Good to know
84
82
 
85
- 1. **Local-first and private.** Zero global config (`--brain` -> `BF_BRAIN` -> enclosing `bf.yaml` -> `DEFAULT_BRAIN_PATH`), `O_NOFOLLOW` path confinement, and private `0700` `.bf/` locks/state ([Operations](https://fmind.github.io/brain-framework/operations/)).
86
- 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)).
83
+ 1. **Local-first and private.** Zero global config (`--brain` -> `BF_BRAIN` -> enclosing `bf.yaml` -> `DEFAULT_BRAIN_PATH`), `O_NOFOLLOW` path confinement, and private `0700` `.bf/` and `logs/` ([Operations](https://fmind.github.io/brain-framework/operations/)).
84
+ 2. **Harnesses reason; BF verifies.** Coding agents load the single `/bf` [Agent Skill](https://agentskills.io/specification) from `.agents/skills/bf`, track work via `bf new action <slug>`, emit loop events via `bf emit`, and run `bf check` ([Example brain](https://github.com/fmind/brain-framework/blob/main/examples/brain/README.md)).
87
85
  3. **Git-native collaboration.** Track notes, `bf.yaml`, `evals/`, and `schemas/` in Git while ignoring compiled note JSON files, `logs/`, `actions/`, and `.bf/`.
88
86
 
89
87
  [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,53 @@
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` and `jq` (`bf query`, `bf read`, or `bf mcp`).
10
+
11
+ - **Three formats, one job each.** **YAML for config** (`bf.yaml` `version: 15`, `evals/*.yaml`, note frontmatter), **JSON for records** (`memories/**/*.json`, validated by package-owned core schemas and user `schemas/*.json`, plus plain JSON lines in `logs/*.log`), 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 — with minimal tokens.** `bf build` compiles Markdown notes, headings, keyed `attr_list` metadata (`attrs`), links, and open tasks into `memories/{concepts,projects,actions}/*.json` and maintains `.bf/index.jsonl`. `bf read` (`--outline`, `--lines`, `--fields`, `--max-bytes`), `bf query` (`rg` + `--jq`, `--format jsonl|tsv`), `bf review`, and `bf status` keep outputs bounded and fast.
13
+ - **Unified strange-loop orchestration (`loops:`).** Around 5,000 lines of Python with lazy imports, delegating retrieval to `rg` and `jq`, cross-references to relative Markdown paths, `source:id`, and `bf://` URLs, and every sensor, routine, git hook, continuous listener (`daemon: true`), and autonomous thinking bot to one `loops:` primitive in `bf.yaml` — with bounded concurrent execution under `bf watch` and 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, [uv](https://docs.astral.sh/uv/getting-started/installation/), [ripgrep](https://github.com/BurntSushi/ripgrep) (`rg`), and [jq](https://jqlang.org/) — 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 check
26
+ bf review
27
+ bf query --jq '{ref, title, attrs}'
28
+ ```
29
+
30
+ 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/).
31
+
32
+ ## How it works
33
+
34
+ <a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg">
35
+ <img
36
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg"
37
+ alt="Gather, normalize, organize, act, and learn loop"
38
+ width="100%"
39
+ />
40
+ </a>
41
+
42
+ - **Notes, `attr_list`, & unified links ([Authoring](https://fmind.github.io/brain-framework/authoring/)):** Separate volatile TODOs (`projects/`), durable knowledge (`concepts/`), and dated workspaces (`actions/*/ACTION.md`), scaffold with `bf new`, attach metadata on headings (`## MCP {#mcp creator=Anthropic}`) and blocks (`{: #summary confidence=high}`), and cross-reference notes, records (`source:id`), or sibling brains (`bf://`).
43
+ - **Unified `loops:`, schemas, & concurrent `bf 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 multi-schedule, event-triggered, git-hook, `emit: true|<kind>`, and `daemon: true` loops under `bf.yaml` (`loops:`, `watch.concurrency`) with a live Rich TUI.
44
+ - **Standard JSON retrieval & MCP ([Retrieval](https://fmind.github.io/brain-framework/retrieval/)):** Resolve `bf://` URLs, `#anchor` sections, `--outline`, or `--lines` with `bf read`, search and filter `memories/**/*.json` via `bf query` (`rg`, `jq`, or `rg` + `--jq`), verify in one shot with `bf check`, or expose strictly read-only tools via `bf mcp`.
45
+ - **Integrity, freshness, & schemas ([Reference](https://fmind.github.io/brain-framework/reference/)):** `bf validate` checks every schema, compiled-note sync, link, `#anchor`, and cross-brain `bf://` reference with digest caching; `bf review` surfaces `newer_evidence`, overdue `stale_after` notes, and open `draft` actions; `bf schema` prints bundled Draft 2020-12 JSON Schemas.
46
+
47
+ ## Good to know
48
+
49
+ 1. **Local-first and private.** Zero global config (`--brain` -> `BF_BRAIN` -> enclosing `bf.yaml` -> `DEFAULT_BRAIN_PATH`), `O_NOFOLLOW` path confinement, and private `0700` `.bf/` and `logs/` ([Operations](https://fmind.github.io/brain-framework/operations/)).
50
+ 2. **Harnesses reason; BF verifies.** Coding agents load the single `/bf` [Agent Skill](https://agentskills.io/specification) from `.agents/skills/bf`, track work via `bf new action <slug>`, emit loop events via `bf emit`, and run `bf check` ([Example brain](https://github.com/fmind/brain-framework/blob/main/examples/brain/README.md)).
51
+ 3. **Git-native collaboration.** Track notes, `bf.yaml`, `evals/`, and `schemas/` in Git while ignoring compiled note JSON files, `logs/`, `actions/`, and `.bf/`.
52
+
53
+ [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)
@@ -1785,232 +1785,6 @@ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
1785
1785
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1786
1786
  ```
1787
1787
 
1788
- ## structlog 26.1.0
1789
-
1790
- Source: <https://github.com/hynek/structlog>
1791
-
1792
- License: `MIT OR Apache-2.0`
1793
-
1794
- Evidence: `structlog-26.1.0.dist-info/licenses/LICENSE-APACHE`
1795
-
1796
- ### structlog-26.1.0.dist-info/licenses/LICENSE-APACHE
1797
-
1798
- ```text
1799
- Apache License
1800
- Version 2.0, January 2004
1801
- http://www.apache.org/licenses/
1802
-
1803
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1804
-
1805
- 1. Definitions.
1806
-
1807
- "License" shall mean the terms and conditions for use, reproduction,
1808
- and distribution as defined by Sections 1 through 9 of this document.
1809
-
1810
- "Licensor" shall mean the copyright owner or entity authorized by
1811
- the copyright owner that is granting the License.
1812
-
1813
- "Legal Entity" shall mean the union of the acting entity and all
1814
- other entities that control, are controlled by, or are under common
1815
- control with that entity. For the purposes of this definition,
1816
- "control" means (i) the power, direct or indirect, to cause the
1817
- direction or management of such entity, whether by contract or
1818
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
1819
- outstanding shares, or (iii) beneficial ownership of such entity.
1820
-
1821
- "You" (or "Your") shall mean an individual or Legal Entity
1822
- exercising permissions granted by this License.
1823
-
1824
- "Source" form shall mean the preferred form for making modifications,
1825
- including but not limited to software source code, documentation
1826
- source, and configuration files.
1827
-
1828
- "Object" form shall mean any form resulting from mechanical
1829
- transformation or translation of a Source form, including but
1830
- not limited to compiled object code, generated documentation,
1831
- and conversions to other media types.
1832
-
1833
- "Work" shall mean the work of authorship, whether in Source or
1834
- Object form, made available under the License, as indicated by a
1835
- copyright notice that is included in or attached to the work
1836
- (an example is provided in the Appendix below).
1837
-
1838
- "Derivative Works" shall mean any work, whether in Source or Object
1839
- form, that is based on (or derived from) the Work and for which the
1840
- editorial revisions, annotations, elaborations, or other modifications
1841
- represent, as a whole, an original work of authorship. For the purposes
1842
- of this License, Derivative Works shall not include works that remain
1843
- separable from, or merely link (or bind by name) to the interfaces of,
1844
- the Work and Derivative Works thereof.
1845
-
1846
- "Contribution" shall mean any work of authorship, including
1847
- the original version of the Work and any modifications or additions
1848
- to that Work or Derivative Works thereof, that is intentionally
1849
- submitted to Licensor for inclusion in the Work by the copyright owner
1850
- or by an individual or Legal Entity authorized to submit on behalf of
1851
- the copyright owner. For the purposes of this definition, "submitted"
1852
- means any form of electronic, verbal, or written communication sent
1853
- to the Licensor or its representatives, including but not limited to
1854
- communication on electronic mailing lists, source code control systems,
1855
- and issue tracking systems that are managed by, or on behalf of, the
1856
- Licensor for the purpose of discussing and improving the Work, but
1857
- excluding communication that is conspicuously marked or otherwise
1858
- designated in writing by the copyright owner as "Not a Contribution."
1859
-
1860
- "Contributor" shall mean Licensor and any individual or Legal Entity
1861
- on behalf of whom a Contribution has been received by Licensor and
1862
- subsequently incorporated within the Work.
1863
-
1864
- 2. Grant of Copyright License. Subject to the terms and conditions of
1865
- this License, each Contributor hereby grants to You a perpetual,
1866
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1867
- copyright license to reproduce, prepare Derivative Works of,
1868
- publicly display, publicly perform, sublicense, and distribute the
1869
- Work and such Derivative Works in Source or Object form.
1870
-
1871
- 3. Grant of Patent License. Subject to the terms and conditions of
1872
- this License, each Contributor hereby grants to You a perpetual,
1873
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1874
- (except as stated in this section) patent license to make, have made,
1875
- use, offer to sell, sell, import, and otherwise transfer the Work,
1876
- where such license applies only to those patent claims licensable
1877
- by such Contributor that are necessarily infringed by their
1878
- Contribution(s) alone or by combination of their Contribution(s)
1879
- with the Work to which such Contribution(s) was submitted. If You
1880
- institute patent litigation against any entity (including a
1881
- cross-claim or counterclaim in a lawsuit) alleging that the Work
1882
- or a Contribution incorporated within the Work constitutes direct
1883
- or contributory patent infringement, then any patent licenses
1884
- granted to You under this License for that Work shall terminate
1885
- as of the date such litigation is filed.
1886
-
1887
- 4. Redistribution. You may reproduce and distribute copies of the
1888
- Work or Derivative Works thereof in any medium, with or without
1889
- modifications, and in Source or Object form, provided that You
1890
- meet the following conditions:
1891
-
1892
- (a) You must give any other recipients of the Work or
1893
- Derivative Works a copy of this License; and
1894
-
1895
- (b) You must cause any modified files to carry prominent notices
1896
- stating that You changed the files; and
1897
-
1898
- (c) You must retain, in the Source form of any Derivative Works
1899
- that You distribute, all copyright, patent, trademark, and
1900
- attribution notices from the Source form of the Work,
1901
- excluding those notices that do not pertain to any part of
1902
- the Derivative Works; and
1903
-
1904
- (d) If the Work includes a "NOTICE" text file as part of its
1905
- distribution, then any Derivative Works that You distribute must
1906
- include a readable copy of the attribution notices contained
1907
- within such NOTICE file, excluding those notices that do not
1908
- pertain to any part of the Derivative Works, in at least one
1909
- of the following places: within a NOTICE text file distributed
1910
- as part of the Derivative Works; within the Source form or
1911
- documentation, if provided along with the Derivative Works; or,
1912
- within a display generated by the Derivative Works, if and
1913
- wherever such third-party notices normally appear. The contents
1914
- of the NOTICE file are for informational purposes only and
1915
- do not modify the License. You may add Your own attribution
1916
- notices within Derivative Works that You distribute, alongside
1917
- or as an addendum to the NOTICE text from the Work, provided
1918
- that such additional attribution notices cannot be construed
1919
- as modifying the License.
1920
-
1921
- You may add Your own copyright statement to Your modifications and
1922
- may provide additional or different license terms and conditions
1923
- for use, reproduction, or distribution of Your modifications, or
1924
- for any such Derivative Works as a whole, provided Your use,
1925
- reproduction, and distribution of the Work otherwise complies with
1926
- the conditions stated in this License.
1927
-
1928
- 5. Submission of Contributions. Unless You explicitly state otherwise,
1929
- any Contribution intentionally submitted for inclusion in the Work
1930
- by You to the Licensor shall be under the terms and conditions of
1931
- this License, without any additional terms or conditions.
1932
- Notwithstanding the above, nothing herein shall supersede or modify
1933
- the terms of any separate license agreement you may have executed
1934
- with Licensor regarding such Contributions.
1935
-
1936
- 6. Trademarks. This License does not grant permission to use the trade
1937
- names, trademarks, service marks, or product names of the Licensor,
1938
- except as required for reasonable and customary use in describing the
1939
- origin of the Work and reproducing the content of the NOTICE file.
1940
-
1941
- 7. Disclaimer of Warranty. Unless required by applicable law or
1942
- agreed to in writing, Licensor provides the Work (and each
1943
- Contributor provides its Contributions) on an "AS IS" BASIS,
1944
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1945
- implied, including, without limitation, any warranties or conditions
1946
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1947
- PARTICULAR PURPOSE. You are solely responsible for determining the
1948
- appropriateness of using or redistributing the Work and assume any
1949
- risks associated with Your exercise of permissions under this License.
1950
-
1951
- 8. Limitation of Liability. In no event and under no legal theory,
1952
- whether in tort (including negligence), contract, or otherwise,
1953
- unless required by applicable law (such as deliberate and grossly
1954
- negligent acts) or agreed to in writing, shall any Contributor be
1955
- liable to You for damages, including any direct, indirect, special,
1956
- incidental, or consequential damages of any character arising as a
1957
- result of this License or out of the use or inability to use the
1958
- Work (including but not limited to damages for loss of goodwill,
1959
- work stoppage, computer failure or malfunction, or any and all
1960
- other commercial damages or losses), even if such Contributor
1961
- has been advised of the possibility of such damages.
1962
-
1963
- 9. Accepting Warranty or Additional Liability. While redistributing
1964
- the Work or Derivative Works thereof, You may choose to offer,
1965
- and charge a fee for, acceptance of support, warranty, indemnity,
1966
- or other liability obligations and/or rights consistent with this
1967
- License. However, in accepting such obligations, You may act only
1968
- on Your own behalf and on Your sole responsibility, not on behalf
1969
- of any other Contributor, and only if You agree to indemnify,
1970
- defend, and hold each Contributor harmless for any liability
1971
- incurred by, or claims asserted against, such Contributor by reason
1972
- of your accepting any such warranty or additional liability.
1973
-
1974
- END OF TERMS AND CONDITIONS
1975
- ```
1976
-
1977
- Evidence: `structlog-26.1.0.dist-info/licenses/LICENSE-MIT`
1978
-
1979
- ### structlog-26.1.0.dist-info/licenses/LICENSE-MIT
1980
-
1981
- ```text
1982
- The MIT License (MIT)
1983
-
1984
- Copyright (c) 2013 Hynek Schlawack and the structlog contributors
1985
-
1986
- Permission is hereby granted, free of charge, to any person obtaining a copy
1987
- of this software and associated documentation files (the "Software"), to deal
1988
- in the Software without restriction, including without limitation the rights
1989
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
1990
- copies of the Software, and to permit persons to whom the Software is
1991
- furnished to do so, subject to the following conditions:
1992
-
1993
- The above copyright notice and this permission notice shall be included in all
1994
- copies or substantial portions of the Software.
1995
-
1996
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1997
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1998
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1999
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
2000
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2001
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2002
- SOFTWARE.
2003
- ```
2004
-
2005
- Evidence: `structlog-26.1.0.dist-info/licenses/NOTICE`
2006
-
2007
- ### structlog-26.1.0.dist-info/licenses/NOTICE
2008
-
2009
- ```text
2010
- structlog
2011
- Copyright 2013 Hynek Schlawack and the structlog contributors
2012
- ```
2013
-
2014
1788
  ## truststore 0.10.5
2015
1789
 
2016
1790
  Source: <https://github.com/sethmlarson/truststore>
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "brain-framework"
3
- version = "29.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, and evals against JSON Schemas, orchestrates jobs and services, and queries offline with rg and jq."
3
+ version = "30.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, and evals against JSON Schemas, orchestrates unified loops, and queries offline with rg and jq."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
7
7
  license = "MIT"
@@ -46,7 +46,6 @@ dependencies = [
46
46
  "mcp>=2.1.1,<3",
47
47
  "pyyaml>=6.0.3,<7",
48
48
  "rich>=15.0.0,<16",
49
- "structlog>=25.0.0,<27",
50
49
  "watchfiles>=1.1.0,<2",
51
50
  ]
52
51
 
@@ -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 = "29.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, and evals against JSON Schemas, orchestrates jobs and services, and queries offline with rg and jq."
4
+ version = "30.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, and evals against JSON Schemas, orchestrates unified loops, and queries offline with rg and jq."
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.14"
8
8
  license = "MIT"
@@ -45,7 +45,6 @@ dependencies = [
45
45
  "mcp>=2.1.1,<3",
46
46
  "pyyaml>=6.0.3,<7",
47
47
  "rich>=15.0.0,<16",
48
- "structlog>=25.0.0,<27",
49
48
  "watchfiles>=1.1.0,<2",
50
49
  ]
51
50
 
@@ -3,7 +3,7 @@
3
3
  import os
4
4
  import sys
5
5
 
6
- __version__ = "29.0.0"
6
+ __version__ = "30.0.0"
7
7
 
8
8
 
9
9
  def main() -> None:
@@ -14,6 +14,8 @@ def main() -> None:
14
14
  try:
15
15
  sys.stdout.buffer.write(f"{__version__}\n".encode())
16
16
  sys.stdout.flush()
17
+ except BrokenPipeError:
18
+ return
17
19
  except OSError:
18
20
  pass
19
21
  else: