brain-framework 13.0.2__tar.gz → 14.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 (40) hide show
  1. brain_framework-14.0.0/PKG-INFO +190 -0
  2. brain_framework-14.0.0/README.md +162 -0
  3. {brain_framework-13.0.2 → brain_framework-14.0.0}/THIRD_PARTY_NOTICES.md +1 -1
  4. {brain_framework-13.0.2 → brain_framework-14.0.0}/pyproject.toml +10 -13
  5. {brain_framework-13.0.2 → brain_framework-14.0.0}/pyproject.toml.orig +13 -11
  6. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/__init__.py +1 -1
  7. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/cli.py +214 -87
  8. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/collect.py +123 -128
  9. brain_framework-14.0.0/src/bf/config.py +383 -0
  10. brain_framework-14.0.0/src/bf/evaluate.py +247 -0
  11. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/graph.py +19 -10
  12. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/health.py +74 -55
  13. brain_framework-14.0.0/src/bf/history.py +105 -0
  14. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/index.py +247 -189
  15. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/links.py +34 -9
  16. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/markdown.py +123 -38
  17. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/mcp.py +38 -23
  18. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/models.py +260 -49
  19. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/ontology.py +33 -15
  20. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/pages.py +308 -241
  21. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/records.py +79 -36
  22. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/retrieve.py +147 -133
  23. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/schedule.py +14 -9
  24. brain_framework-14.0.0/src/bf/schemas.py +16 -0
  25. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/storage.py +129 -35
  26. brain_framework-14.0.0/src/bf/update.py +117 -0
  27. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/usage.py +6 -4
  28. brain_framework-14.0.0/src/bf/validate.py +223 -0
  29. brain_framework-14.0.0/src/bf/watch.py +695 -0
  30. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/watch_settings.py +19 -7
  31. brain_framework-13.0.2/PKG-INFO +0 -263
  32. brain_framework-13.0.2/README.md +0 -236
  33. brain_framework-13.0.2/src/bf/config.py +0 -244
  34. brain_framework-13.0.2/src/bf/evaluate.py +0 -140
  35. brain_framework-13.0.2/src/bf/update.py +0 -127
  36. brain_framework-13.0.2/src/bf/validate.py +0 -139
  37. brain_framework-13.0.2/src/bf/watch.py +0 -479
  38. {brain_framework-13.0.2 → brain_framework-14.0.0}/LICENSE +0 -0
  39. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/__main__.py +0 -0
  40. {brain_framework-13.0.2 → brain_framework-14.0.0}/src/bf/py.typed +0 -0
@@ -0,0 +1,190 @@
1
+ Metadata-Version: 2.4
2
+ Name: brain-framework
3
+ Version: 14.0.0
4
+ Summary: 🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies.
5
+ Keywords: ai,ai-agents,agent-memory,context-engineering,knowledge-management,local-first,mcp,model-context-protocol,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: Operating System :: MacOS
13
+ Classifier: Operating System :: POSIX :: Linux
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.14
16
+ Classifier: Typing :: Typed
17
+ Requires-Dist: markdown-it-py>=4.2.0,<5
18
+ Requires-Dist: mcp>=2.1.1,<3
19
+ Requires-Dist: pydantic>=2.13.5,<3
20
+ Requires-Dist: pyyaml>=6.0.3,<7
21
+ Requires-Dist: rich>=15.0.0,<16
22
+ Requires-Dist: typer>=0.27.2,<1
23
+ Requires-Python: >=3.14
24
+ Project-URL: Documentation, https://fmind.github.io/brain-framework/
25
+ Project-URL: Issues, https://github.com/fmind/brain-framework/issues
26
+ Project-URL: Repository, https://github.com/fmind/brain-framework
27
+ Description-Content-Type: text/markdown
28
+
29
+ <p align="center">
30
+ <img
31
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-framework.svg"
32
+ alt="Brain Framework: an exposed brain in an opening shell above twin aperture eyes"
33
+ width="256"
34
+ height="256"
35
+ >
36
+ </p>
37
+
38
+ # Brain Framework 🧠
39
+
40
+ **Reusable context for you and your AI agents.** Collect information from your tools, connect it to your decisions and pick up work with the evidence at hand.
41
+
42
+ 🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies.
43
+
44
+ [![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)
45
+
46
+ Your meeting notes, issues and project decisions live in different places. Brain Framework (BF) brings selected information into a folder of Markdown notes and source records you own. Search it across sessions, trace decisions to their sources and use the same context with different agents.
47
+
48
+ [Try it](https://github.com/fmind/brain-framework#try-it) · [Connect an agent](https://github.com/fmind/brain-framework#agents) · [Four-tool demo](https://fmind.github.io/brain-framework/docs/context-hub/) · [Documentation](https://fmind.github.io/brain-framework/)
49
+
50
+ ## What can you do with it?
51
+
52
+ **Turn meeting notes into GitHub issues.** Collect Calendar event descriptions, then ask your agent:
53
+
54
+ > Turn today's meeting notes into GitHub issues in my chosen repository. Cite the source event for each issue.
55
+
56
+ BF supplies the saved notes; your agent uses `gh` to create the issues you authorize. Follow the [Calendar-to-issues example](https://fmind.github.io/brain-framework/docs/sensors/#from-meeting-notes-to-github-issues) for setup and prerequisites.
57
+
58
+ | When you need to… | BF helps you… |
59
+ | ----------------------- | ------------------------------------------------------------------- |
60
+ | Resume a project | Find the last verified outcome and next step. |
61
+ | Explain a decision | Read the original reasoning and linked evidence. |
62
+ | Check work across tools | Follow explicit connections between briefs, issues and deployments. |
63
+ | Reuse what worked | Keep lessons in notes that any editor or agent can read. |
64
+
65
+ See the [runnable four-tool demo](https://github.com/fmind/brain-framework/tree/main/examples/context-hub): GitHub says the implementation is merged and Gcloud shows a healthy preview, but Jira still blocks launch on accessibility review. Reading all four sources explains what remains. The records are fictional; the collection and retrieval are runnable locally. The [examples index](https://github.com/fmind/brain-framework/tree/main/examples) also covers decision reviews, retrieval checks, hooks, routines, monitoring and team collaboration.
66
+
67
+ ## Try it
68
+
69
+ Start with one decision you can find again. This walkthrough needs Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/), which installs the tested Python 3.14 if needed ([install details](https://fmind.github.io/brain-framework/docs/upgrades/#install)). No model or provider account is required.
70
+
71
+ ```bash
72
+ uv tool install --python 3.14 brain-framework
73
+ bf init ~/brain
74
+ cd ~/brain
75
+ ```
76
+
77
+ If `bf` is not on PATH, run `uv tool update-shell` and open a new shell. You can choose another empty folder instead of `~/brain`.
78
+
79
+ Create `projects/new-website.md` in your editor, or ask your agent to save this fictional decision. Use today's date for `updated`:
80
+
81
+ ```markdown
82
+ ---
83
+ type: project
84
+ status: draft
85
+ updated: 2026-09-27
86
+ summary: Launch a product website that helps visitors understand the product.
87
+ ---
88
+
89
+ # New website
90
+
91
+ ## Decision
92
+
93
+ Start with a single product page because visitors need a clear explanation before signing up.
94
+
95
+ ## Next actions
96
+
97
+ - [ ] Draft the product page.
98
+ ```
99
+
100
+ Find the reason, read its source and check the brain:
101
+
102
+ ```bash
103
+ bf search "visitors clear explanation"
104
+ bf read projects/new-website.md#decision
105
+ bf validate
106
+ ```
107
+
108
+ Search returns this match in `items` (other fields omitted):
109
+
110
+ ```json
111
+ { "ref": "projects/new-website.md#decision", "title": "New website — Decision" }
112
+ ```
113
+
114
+ `read` returns the original Decision section; validation reports `"valid":true`. Edit the note and search again: BF notices changes automatically. You now have a decision an agent can find and cite.
115
+
116
+ The [getting-started guide](https://fmind.github.io/brain-framework/docs/getting-started/) continues with a local source, a schema mapping and a link from the decision to its evidence.
117
+
118
+ ## Agents
119
+
120
+ Use the same brain with [Claude Code](https://code.claude.com/docs/en/overview), [Codex](https://openai.com/codex/), [GitHub Copilot](https://github.com/features/copilot) or another agent host.
121
+
122
+ | Your agent can… | Start with… |
123
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
124
+ | Run terminal commands | The `bf` CLI and the prompt below. No skill installation needed for this first task. |
125
+ | Use MCP tools | A stdio server running `bf mcp`, with explicit executable and brain paths. Follow [MCP setup](https://fmind.github.io/brain-framework/docs/mcp/). |
126
+
127
+ After the quickstart, give your terminal agent this prompt:
128
+
129
+ > Work in ~/brain and use the bf CLI. Find why we chose a single product page. Read the source, cite its ref and tell me the project's next action.
130
+
131
+ Check that it reads the decision and next actions, cites `projects/new-website.md#decision` and identifies “Draft the product page.” as the next task.
132
+
133
+ MCP exposes two read-only tools: `search` and `read`. For ongoing use, install the optional [workflow skills](https://github.com/fmind/brain-framework/blob/main/skills/README.md): `bf-use` for retrieval, `bf-action` to track work and `bf-learn` to retain verified outcomes. See the [agent guide](https://fmind.github.io/brain-framework/docs/agents/) for setup and examples.
134
+
135
+ ## How it works
136
+
137
+ **Gather → normalize → organize and connect → act → learn.** Sensors collect selected evidence; configured mappings give sources shared fields and explicit relationships. You and your agents use that context to do work, then keep the outcome and next step in the brain.
138
+
139
+ ```text
140
+ brain/
141
+ ├── bf.yaml # configuration and source mappings
142
+ ├── projects/ # what you're working on and why
143
+ ├── concepts/ # what you've learned and can reuse
144
+ ├── actions/ # work to start, resume and review
145
+ └── memories/ # evidence gathered from your sources
146
+ ```
147
+
148
+ Notes are Markdown with structured metadata; each collected record is a JSON file. Open them in any editor and use Git for history. The local search cache is disposable. See the [file conventions](https://fmind.github.io/brain-framework/docs/brain/).
149
+
150
+ [Links and backlinks](https://fmind.github.io/brain-framework/docs/links/) connect decisions to evidence. Keep personal and shared context in separate [team brains](https://fmind.github.io/brain-framework/docs/team/), and search related brains together. Identities and relationship meanings are explicit; BF never guesses them from similar names.
151
+
152
+ ## Bring your tools
153
+
154
+ A **sensor** is a small script that reads a CLI, API or file and prints JSON records. BF validates, maps and saves them. Start with the reviewed examples or write a script for another source:
155
+
156
+ | Source | Starting point |
157
+ | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
158
+ | Local files, highlights and Git | [Document](https://github.com/fmind/brain-framework/blob/main/examples/sensors/local-documents.py), [highlight](https://github.com/fmind/brain-framework/blob/main/examples/sensors/highlights.py) and [Git history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/git-history.py) sensors. |
159
+ | Google Calendar and Drive | [Calendar](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-calendar.py) and [Drive folder catalog](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-drive-folders.py) sensors using [`gws`](https://github.com/googleworkspace/cli). |
160
+ | GitHub, Jira, Confluence and Google Cloud | Write a sensor using [`gh`](https://cli.github.com/), [`acli`](https://developer.atlassian.com/cloud/acli/), [`gcloud`](https://cloud.google.com/sdk/gcloud) or their APIs. |
161
+
162
+ Start with [one local source](https://fmind.github.io/brain-framework/docs/getting-started/#collect-your-first-source); use [schema mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings) to connect sources. Provider tools handle authentication; your script selects what to collect.
163
+
164
+ After reviewing your sensors, run `bf watch` to keep sources refreshed and see recent changes. See [Watch and schedule updates](https://fmind.github.io/brain-framework/docs/schedule/) for timing, desktop alerts and optional native schedules.
165
+
166
+ <a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
167
+ <img
168
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg"
169
+ alt="Watch dashboard for the fictional offline demo: five sensors sorted by state, with a failed sensor's details beside their last success, next due time, item count and record changes."
170
+ width="720"
171
+ >
172
+ </a>
173
+
174
+ The dashboard above shows the fictional [offline terminal demo](https://github.com/fmind/brain-framework/tree/main/examples/watch), which runs without provider accounts.
175
+
176
+ ## Fit and limits
177
+
178
+ BF fits projects where decisions and evidence need to survive a chat session. Start with one recurring question and the sources needed to answer it.
179
+
180
+ - **Your files, your control.** BF sends no telemetry or personal data to us. A connected cloud agent may send what it reads to its provider; see [privacy and security](https://fmind.github.io/brain-framework/docs/privacy/).
181
+ - **Offline retrieval.** Search and read never contact providers or run sensors. Refresh sources explicitly when you need newer evidence; incomplete retrieval is reported.
182
+ - **People and agents supply the judgment.** BF uses word search and explicit identities, runs no model and does not learn automatically from conversations. Keep notes current as work changes.
183
+
184
+ ## Next steps
185
+
186
+ - [Browse the commands](https://fmind.github.io/brain-framework/docs/commands/) for home pages, tasks, freshness and retrieval checks.
187
+ - [Share a team brain](https://fmind.github.io/brain-framework/docs/team/) or [run a pilot](https://fmind.github.io/brain-framework/docs/pilot/) on your own work.
188
+ - [Report an issue](https://github.com/fmind/brain-framework/issues) or [contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md).
189
+
190
+ [MIT licensed](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,162 @@
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: an exposed brain in an opening shell above twin aperture eyes"
5
+ width="256"
6
+ height="256"
7
+ >
8
+ </p>
9
+
10
+ # Brain Framework 🧠
11
+
12
+ **Reusable context for you and your AI agents.** Collect information from your tools, connect it to your decisions and pick up work with the evidence at hand.
13
+
14
+ 🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies.
15
+
16
+ [![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)
17
+
18
+ Your meeting notes, issues and project decisions live in different places. Brain Framework (BF) brings selected information into a folder of Markdown notes and source records you own. Search it across sessions, trace decisions to their sources and use the same context with different agents.
19
+
20
+ [Try it](https://github.com/fmind/brain-framework#try-it) · [Connect an agent](https://github.com/fmind/brain-framework#agents) · [Four-tool demo](https://fmind.github.io/brain-framework/docs/context-hub/) · [Documentation](https://fmind.github.io/brain-framework/)
21
+
22
+ ## What can you do with it?
23
+
24
+ **Turn meeting notes into GitHub issues.** Collect Calendar event descriptions, then ask your agent:
25
+
26
+ > Turn today's meeting notes into GitHub issues in my chosen repository. Cite the source event for each issue.
27
+
28
+ BF supplies the saved notes; your agent uses `gh` to create the issues you authorize. Follow the [Calendar-to-issues example](https://fmind.github.io/brain-framework/docs/sensors/#from-meeting-notes-to-github-issues) for setup and prerequisites.
29
+
30
+ | When you need to… | BF helps you… |
31
+ | ----------------------- | ------------------------------------------------------------------- |
32
+ | Resume a project | Find the last verified outcome and next step. |
33
+ | Explain a decision | Read the original reasoning and linked evidence. |
34
+ | Check work across tools | Follow explicit connections between briefs, issues and deployments. |
35
+ | Reuse what worked | Keep lessons in notes that any editor or agent can read. |
36
+
37
+ See the [runnable four-tool demo](https://github.com/fmind/brain-framework/tree/main/examples/context-hub): GitHub says the implementation is merged and Gcloud shows a healthy preview, but Jira still blocks launch on accessibility review. Reading all four sources explains what remains. The records are fictional; the collection and retrieval are runnable locally. The [examples index](https://github.com/fmind/brain-framework/tree/main/examples) also covers decision reviews, retrieval checks, hooks, routines, monitoring and team collaboration.
38
+
39
+ ## Try it
40
+
41
+ Start with one decision you can find again. This walkthrough needs Linux or macOS and [uv](https://docs.astral.sh/uv/getting-started/installation/), which installs the tested Python 3.14 if needed ([install details](https://fmind.github.io/brain-framework/docs/upgrades/#install)). No model or provider account is required.
42
+
43
+ ```bash
44
+ uv tool install --python 3.14 brain-framework
45
+ bf init ~/brain
46
+ cd ~/brain
47
+ ```
48
+
49
+ If `bf` is not on PATH, run `uv tool update-shell` and open a new shell. You can choose another empty folder instead of `~/brain`.
50
+
51
+ Create `projects/new-website.md` in your editor, or ask your agent to save this fictional decision. Use today's date for `updated`:
52
+
53
+ ```markdown
54
+ ---
55
+ type: project
56
+ status: draft
57
+ updated: 2026-09-27
58
+ summary: Launch a product website that helps visitors understand the product.
59
+ ---
60
+
61
+ # New website
62
+
63
+ ## Decision
64
+
65
+ Start with a single product page because visitors need a clear explanation before signing up.
66
+
67
+ ## Next actions
68
+
69
+ - [ ] Draft the product page.
70
+ ```
71
+
72
+ Find the reason, read its source and check the brain:
73
+
74
+ ```bash
75
+ bf search "visitors clear explanation"
76
+ bf read projects/new-website.md#decision
77
+ bf validate
78
+ ```
79
+
80
+ Search returns this match in `items` (other fields omitted):
81
+
82
+ ```json
83
+ { "ref": "projects/new-website.md#decision", "title": "New website — Decision" }
84
+ ```
85
+
86
+ `read` returns the original Decision section; validation reports `"valid":true`. Edit the note and search again: BF notices changes automatically. You now have a decision an agent can find and cite.
87
+
88
+ The [getting-started guide](https://fmind.github.io/brain-framework/docs/getting-started/) continues with a local source, a schema mapping and a link from the decision to its evidence.
89
+
90
+ ## Agents
91
+
92
+ Use the same brain with [Claude Code](https://code.claude.com/docs/en/overview), [Codex](https://openai.com/codex/), [GitHub Copilot](https://github.com/features/copilot) or another agent host.
93
+
94
+ | Your agent can… | Start with… |
95
+ | --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
96
+ | Run terminal commands | The `bf` CLI and the prompt below. No skill installation needed for this first task. |
97
+ | Use MCP tools | A stdio server running `bf mcp`, with explicit executable and brain paths. Follow [MCP setup](https://fmind.github.io/brain-framework/docs/mcp/). |
98
+
99
+ After the quickstart, give your terminal agent this prompt:
100
+
101
+ > Work in ~/brain and use the bf CLI. Find why we chose a single product page. Read the source, cite its ref and tell me the project's next action.
102
+
103
+ Check that it reads the decision and next actions, cites `projects/new-website.md#decision` and identifies “Draft the product page.” as the next task.
104
+
105
+ MCP exposes two read-only tools: `search` and `read`. For ongoing use, install the optional [workflow skills](https://github.com/fmind/brain-framework/blob/main/skills/README.md): `bf-use` for retrieval, `bf-action` to track work and `bf-learn` to retain verified outcomes. See the [agent guide](https://fmind.github.io/brain-framework/docs/agents/) for setup and examples.
106
+
107
+ ## How it works
108
+
109
+ **Gather → normalize → organize and connect → act → learn.** Sensors collect selected evidence; configured mappings give sources shared fields and explicit relationships. You and your agents use that context to do work, then keep the outcome and next step in the brain.
110
+
111
+ ```text
112
+ brain/
113
+ ├── bf.yaml # configuration and source mappings
114
+ ├── projects/ # what you're working on and why
115
+ ├── concepts/ # what you've learned and can reuse
116
+ ├── actions/ # work to start, resume and review
117
+ └── memories/ # evidence gathered from your sources
118
+ ```
119
+
120
+ Notes are Markdown with structured metadata; each collected record is a JSON file. Open them in any editor and use Git for history. The local search cache is disposable. See the [file conventions](https://fmind.github.io/brain-framework/docs/brain/).
121
+
122
+ [Links and backlinks](https://fmind.github.io/brain-framework/docs/links/) connect decisions to evidence. Keep personal and shared context in separate [team brains](https://fmind.github.io/brain-framework/docs/team/), and search related brains together. Identities and relationship meanings are explicit; BF never guesses them from similar names.
123
+
124
+ ## Bring your tools
125
+
126
+ A **sensor** is a small script that reads a CLI, API or file and prints JSON records. BF validates, maps and saves them. Start with the reviewed examples or write a script for another source:
127
+
128
+ | Source | Starting point |
129
+ | ----------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
130
+ | Local files, highlights and Git | [Document](https://github.com/fmind/brain-framework/blob/main/examples/sensors/local-documents.py), [highlight](https://github.com/fmind/brain-framework/blob/main/examples/sensors/highlights.py) and [Git history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/git-history.py) sensors. |
131
+ | Google Calendar and Drive | [Calendar](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-calendar.py) and [Drive folder catalog](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-drive-folders.py) sensors using [`gws`](https://github.com/googleworkspace/cli). |
132
+ | GitHub, Jira, Confluence and Google Cloud | Write a sensor using [`gh`](https://cli.github.com/), [`acli`](https://developer.atlassian.com/cloud/acli/), [`gcloud`](https://cloud.google.com/sdk/gcloud) or their APIs. |
133
+
134
+ Start with [one local source](https://fmind.github.io/brain-framework/docs/getting-started/#collect-your-first-source); use [schema mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings) to connect sources. Provider tools handle authentication; your script selects what to collect.
135
+
136
+ After reviewing your sensors, run `bf watch` to keep sources refreshed and see recent changes. See [Watch and schedule updates](https://fmind.github.io/brain-framework/docs/schedule/) for timing, desktop alerts and optional native schedules.
137
+
138
+ <a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
139
+ <img
140
+ src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg"
141
+ alt="Watch dashboard for the fictional offline demo: five sensors sorted by state, with a failed sensor's details beside their last success, next due time, item count and record changes."
142
+ width="720"
143
+ >
144
+ </a>
145
+
146
+ The dashboard above shows the fictional [offline terminal demo](https://github.com/fmind/brain-framework/tree/main/examples/watch), which runs without provider accounts.
147
+
148
+ ## Fit and limits
149
+
150
+ BF fits projects where decisions and evidence need to survive a chat session. Start with one recurring question and the sources needed to answer it.
151
+
152
+ - **Your files, your control.** BF sends no telemetry or personal data to us. A connected cloud agent may send what it reads to its provider; see [privacy and security](https://fmind.github.io/brain-framework/docs/privacy/).
153
+ - **Offline retrieval.** Search and read never contact providers or run sensors. Refresh sources explicitly when you need newer evidence; incomplete retrieval is reported.
154
+ - **People and agents supply the judgment.** BF uses word search and explicit identities, runs no model and does not learn automatically from conversations. Keep notes current as work changes.
155
+
156
+ ## Next steps
157
+
158
+ - [Browse the commands](https://fmind.github.io/brain-framework/docs/commands/) for home pages, tasks, freshness and retrieval checks.
159
+ - [Share a team brain](https://fmind.github.io/brain-framework/docs/team/) or [run a pilot](https://fmind.github.io/brain-framework/docs/pilot/) on your own work.
160
+ - [Report an issue](https://github.com/fmind/brain-framework/issues) or [contribute](https://github.com/fmind/brain-framework/blob/main/CONTRIBUTING.md).
161
+
162
+ [MIT licensed](https://github.com/fmind/brain-framework/blob/main/LICENSE) · [Third-party notices](https://github.com/fmind/brain-framework/blob/main/THIRD_PARTY_NOTICES.md)
@@ -1755,7 +1755,7 @@ Source: <https://github.com/fastapi/typer>
1755
1755
 
1756
1756
  License: `MIT`
1757
1757
 
1758
- Typer 0.27.2 vendors code adapted from Click 8.3.1 in `typer/_click/`; its bundled BSD-3-Clause license is included below.
1758
+ The distribution vendors code adapted from Click in `typer/_click/`; its bundled `BSD-3-Clause` license is included below.
1759
1759
 
1760
1760
  Evidence: `typer-0.27.2.dist-info/licenses/LICENSE`
1761
1761
 
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "brain-framework"
3
- version = "13.0.2"
3
+ version = "14.0.0"
4
4
  description = "🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies."
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.14"
@@ -22,6 +22,7 @@ keywords = [
22
22
  "second-brain",
23
23
  ]
24
24
  classifiers = [
25
+ "Development Status :: 5 - Production/Stable",
25
26
  "Environment :: Console",
26
27
  "Operating System :: MacOS",
27
28
  "Operating System :: POSIX :: Linux",
@@ -65,6 +66,7 @@ src = [
65
66
 
66
67
  [tool.ruff.per-file-target-version]
67
68
  "skills/*/scripts/*.py" = "py311"
69
+ "examples/**/*.py" = "py311"
68
70
 
69
71
  [tool.ruff.format]
70
72
  docstring-code-format = true
@@ -121,36 +123,31 @@ ignore = [
121
123
  "T201",
122
124
  ]
123
125
 
124
- [tool.ty.environment]
125
- python-version = "3.14"
126
-
127
- [tool.pytest.ini_options]
128
- addopts = [
129
- "-ra",
130
- "--strict-config",
131
- "--strict-markers",
132
- ]
126
+ [tool.pytest]
127
+ addopts = ["-ra"]
128
+ faulthandler_timeout = "120"
133
129
  filterwarnings = ["error"]
130
+ strict = true
134
131
  testpaths = ["tests"]
135
- xfail_strict = true
136
132
 
137
133
  [tool.coverage.run]
138
134
  branch = true
139
135
  source = ["bf"]
140
136
 
141
137
  [tool.coverage.report]
142
- fail_under = 85
138
+ fail_under = 95
143
139
  show_missing = true
144
140
  skip_covered = true
145
141
  skip_empty = true
146
142
 
147
143
  [dependency-groups]
148
144
  dev = [
145
+ "jsonschema>=4.26.0,<5",
149
146
  "pytest-cov>=7.1.0",
150
147
  "pytest-watcher>=0.6.3",
151
148
  "pytest>=9.1.1",
152
149
  "ruff>=0.16.6",
153
150
  "ty>=0.0.70,<0.1",
154
- "validate-pyproject>=0.25",
151
+ "validate-pyproject[all]>=0.25",
155
152
  "zensical>=0.0.59,<0.1",
156
153
  ]
@@ -1,7 +1,7 @@
1
1
  # https://packaging.python.org/en/latest/specifications/pyproject-toml/
2
2
  [project]
3
3
  name = "brain-framework"
4
- version = "13.0.2"
4
+ version = "14.0.0"
5
5
  description = "🧠 AI Brain Factory: from information to informed action. Not for 🐙 mindflayers or 🧟 zombies."
6
6
  readme = "README.md"
7
7
  requires-python = ">=3.14"
@@ -21,6 +21,7 @@ keywords = [
21
21
  "second-brain",
22
22
  ]
23
23
  classifiers = [
24
+ "Development Status :: 5 - Production/Stable",
24
25
  "Environment :: Console",
25
26
  "Operating System :: MacOS",
26
27
  "Operating System :: POSIX :: Linux",
@@ -54,20 +55,22 @@ module-name = "bf"
54
55
 
55
56
  [dependency-groups]
56
57
  dev = [
58
+ "jsonschema>=4.26.0,<5",
57
59
  "pytest-cov>=7.1.0",
58
60
  "pytest-watcher>=0.6.3",
59
61
  "pytest>=9.1.1",
60
62
  "ruff>=0.16.6",
61
63
  "ty>=0.0.70,<0.1",
62
- "validate-pyproject>=0.25",
64
+ # The extra validates classifiers offline instead of downloading them or skipping the check.
65
+ "validate-pyproject[all]>=0.25",
63
66
  "zensical>=0.0.59,<0.1",
64
67
  ]
65
68
 
66
69
  [tool.ruff]
67
70
  line-length = 120
68
71
  src = ["src", "tests"]
69
- # Skill scripts run with the agent's python3, not the package interpreter.
70
- per-file-target-version = { "skills/*/scripts/*.py" = "py311" }
72
+ # Skill scripts and copied examples run with the host's python3, not the package interpreter.
73
+ per-file-target-version = { "skills/*/scripts/*.py" = "py311", "examples/**/*.py" = "py311" }
71
74
 
72
75
  [tool.ruff.format]
73
76
  docstring-code-format = true
@@ -124,21 +127,20 @@ ignore = [
124
127
  "T201", # Test diagnostics may use print.
125
128
  ]
126
129
 
127
- [tool.ty.environment]
128
- python-version = "3.14"
129
-
130
- [tool.pytest.ini_options]
131
- addopts = ["-ra", "--strict-config", "--strict-markers"]
130
+ [tool.pytest]
131
+ addopts = ["-ra"]
132
+ # Dump every thread's traceback when a test hangs instead of stalling until the CI timeout (a string option).
133
+ faulthandler_timeout = "120"
132
134
  filterwarnings = ["error"]
135
+ strict = true
133
136
  testpaths = ["tests"]
134
- xfail_strict = true
135
137
 
136
138
  [tool.coverage.run]
137
139
  branch = true
138
140
  source = ["bf"]
139
141
 
140
142
  [tool.coverage.report]
141
- fail_under = 85
143
+ fail_under = 95
142
144
  show_missing = true
143
145
  skip_covered = true
144
146
  skip_empty = true
@@ -2,7 +2,7 @@
2
2
 
3
3
  import os
4
4
 
5
- __version__ = "13.0.2"
5
+ __version__ = "14.0.0"
6
6
 
7
7
 
8
8
  def main() -> None: