brain-framework 23.0.0__tar.gz → 24.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.
- {brain_framework-23.0.0 → brain_framework-24.0.0}/PKG-INFO +18 -20
- {brain_framework-23.0.0 → brain_framework-24.0.0}/README.md +17 -19
- {brain_framework-23.0.0 → brain_framework-24.0.0}/pyproject.toml +1 -11
- {brain_framework-23.0.0 → brain_framework-24.0.0}/pyproject.toml.orig +1 -11
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/__init__.py +1 -1
- brain_framework-24.0.0/src/bf/cli.py +973 -0
- brain_framework-24.0.0/src/bf/collect.py +483 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/config.py +89 -177
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/evaluate.py +1 -1
- brain_framework-24.0.0/src/bf/guides/events.md +60 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/guides/index.md +5 -5
- brain_framework-24.0.0/src/bf/guides/jobs.md +60 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/guides/operations.md +5 -4
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/guides/reference.md +17 -16
- brain_framework-24.0.0/src/bf/health.py +399 -0
- brain_framework-24.0.0/src/bf/jobs.py +1085 -0
- brain_framework-24.0.0/src/bf/map.py +217 -0
- brain_framework-24.0.0/src/bf/models.py +1175 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/pages.py +5 -151
- brain_framework-24.0.0/src/bf/replies.py +576 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/retrieve.py +12 -7
- brain_framework-24.0.0/src/bf/runtime.py +776 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/schemas.py +3 -8
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/skills/bf/SKILL.md +6 -6
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/starter/AGENTS.md +1 -1
- brain_framework-24.0.0/src/bf/update.py +226 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/validate.py +139 -149
- brain_framework-24.0.0/src/bf/watch.py +823 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/watch_settings.py +1 -1
- brain_framework-23.0.0/src/bf/assistants.py +0 -1394
- brain_framework-23.0.0/src/bf/channels.py +0 -230
- brain_framework-23.0.0/src/bf/cli.py +0 -1485
- brain_framework-23.0.0/src/bf/collect.py +0 -1225
- brain_framework-23.0.0/src/bf/guides/events.md +0 -60
- brain_framework-23.0.0/src/bf/guides/jobs.md +0 -61
- brain_framework-23.0.0/src/bf/health.py +0 -575
- brain_framework-23.0.0/src/bf/history.py +0 -176
- brain_framework-23.0.0/src/bf/messages.py +0 -55
- brain_framework-23.0.0/src/bf/models.py +0 -1763
- brain_framework-23.0.0/src/bf/replies.py +0 -786
- brain_framework-23.0.0/src/bf/runtime.py +0 -1301
- brain_framework-23.0.0/src/bf/update.py +0 -338
- brain_framework-23.0.0/src/bf/watch.py +0 -1066
- {brain_framework-23.0.0 → brain_framework-24.0.0}/LICENSE +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/THIRD_PARTY_NOTICES.md +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/__main__.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/graph.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/guide.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/guides/authoring.md +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/guides/getting-started.md +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/guides/retrieval.md +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/index.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/install.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/links.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/markdown.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/mcp.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/ontology.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/py.typed +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/records.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/starter/concepts/index.md +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/starter/concepts/welcome.md +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/starter/evals/retrieval.yaml +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/starter/gitignore +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/storage.py +0 -0
- {brain_framework-23.0.0 → brain_framework-24.0.0}/src/bf/usage.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: brain-framework
|
|
3
|
-
Version:
|
|
3
|
+
Version: 24.0.0
|
|
4
4
|
Summary: 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.
|
|
5
5
|
Keywords: ai,ai-agents,agent-memory,agent-skills,agents-md,context-engineering,knowledge-graph,knowledge-management,local-first,mcp,model-context-protocol,ontology,personal-knowledge-management,python,second-brain
|
|
6
6
|
Author: Médéric Hurier
|
|
@@ -45,11 +45,11 @@ Description-Content-Type: text/markdown
|
|
|
45
45
|
|
|
46
46
|
**🧠 Brain Framework: from information to informed actions.**
|
|
47
47
|
|
|
48
|
-
Brain Framework (BF) 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 explicit ontology, lets any agent harness search and read offline, and wakes your harness when
|
|
48
|
+
Brain Framework (BF) 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 explicit ontology, lets any agent harness search and read offline, and wakes your harness when triggers or reviewed gates spot new evidence.
|
|
49
49
|
|
|
50
50
|
- **Plain files you own, open to any agent.** Markdown notes (`projects/`, `concepts/`, `actions/`) and JSON records (`memories/`), reached through the `bf` CLI, [MCP](https://fmind.github.io/brain-framework/docs/mcp/), [Agent Skills](https://agentskills.io/specification) and `AGENTS.md`.
|
|
51
|
-
- **Explicit graph and provenance.** `bf.yaml`
|
|
52
|
-
- **Controlled autonomy.**
|
|
51
|
+
- **Explicit graph and provenance.** `bf.yaml` `map:` rules or scripts map provider fields into shared relations once at collection. Every claim keeps its source record, and `newer_evidence` flags notes when upstream evidence changes.
|
|
52
|
+
- **Controlled autonomy.** Scheduled or event-triggered jobs (`jobs:`) with reviewed `gate:` scripts wake your harness only when needed and deliver answers via `bf post` or validated `ACTION.md` drafts.
|
|
53
53
|
|
|
54
54
|
[](https://github.com/fmind/brain-framework/actions/workflows/ci.yml) [](https://pypi.org/project/brain-framework/) [](https://pypi.org/project/brain-framework/) [](https://github.com/fmind/brain-framework/blob/main/LICENSE)
|
|
55
55
|
|
|
@@ -58,7 +58,7 @@ Brain Framework (BF) is a local-first brain for you and your AI agents. It colle
|
|
|
58
58
|
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg">
|
|
59
59
|
<img
|
|
60
60
|
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg"
|
|
61
|
-
alt="The Brain Framework loop:
|
|
61
|
+
alt="The Brain Framework loop: jobs gather evidence into a brain folder; bf.yaml declares the ontology, jobs and watch settings; memories, projects, concepts and actions form a knowledge graph; agents read context, act and compile outcomes back."
|
|
62
62
|
width="960"
|
|
63
63
|
>
|
|
64
64
|
</a>
|
|
@@ -113,10 +113,10 @@ Five steps run in one loop: **gather → normalize → organize and connect →
|
|
|
113
113
|
| `projects/` | Project state (`Now`), decisions (`Decision`) and open tasks (`Next actions`) |
|
|
114
114
|
| `concepts/` | Durable reusable patterns and reference syntheses |
|
|
115
115
|
| `actions/` | Tracked work sessions (`draft` open, `stable` settled, `deprecated` retired) |
|
|
116
|
-
| `sensors/` |
|
|
117
|
-
| `routines/` | Deterministic scripts (
|
|
116
|
+
| `sensors/` | Standalone scripts printing JSON/JSONL or raw exports shaped by `bf.yaml` `map:` |
|
|
117
|
+
| `routines/` | Deterministic scripts (like `weekly-review.py`) run on intervals, `at`, events or Git hooks |
|
|
118
118
|
|
|
119
|
-
`bf.yaml` declares shared [fields and mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings)
|
|
119
|
+
`bf.yaml` declares shared [fields and mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings) and unified [`jobs:`](https://fmind.github.io/brain-framework/docs/prompts/) covering [sensors](https://fmind.github.io/brain-framework/docs/sensors/), [routines](https://fmind.github.io/brain-framework/docs/routines/) and [channels](https://fmind.github.io/brain-framework/docs/channels/). A disposable SQLite cache in `.bf/` powers offline BM25 search, graph backlinks (`bf read project:new-website`), triage (`bf read review`) and JSONL exports (`bf export --kind items`). See the [directory reference](https://fmind.github.io/brain-framework/docs/brain/#directory-reference).
|
|
120
120
|
|
|
121
121
|
## Open your agent in your brain
|
|
122
122
|
|
|
@@ -132,13 +132,13 @@ The `/bf` router connects your harness to built-in offline documentation via `bf
|
|
|
132
132
|
- **`bf guide retrieval`**: orient with `bf read review`, verify and cite `SOURCE:ID` refs and export graph claims.
|
|
133
133
|
- **`bf guide authoring`**: update owning `projects/` and `concepts/`, manage tracked `actions/` (`bf action new`, `bf action status`) and connect entities.
|
|
134
134
|
- **`bf guide getting-started` / `bf guide operations`**: initialize or register brains, run [MCP](https://fmind.github.io/brain-framework/docs/mcp/), validate, evaluate and troubleshoot.
|
|
135
|
-
- **`bf guide jobs` / `bf guide events`**: configure
|
|
135
|
+
- **`bf guide jobs` / `bf guide events`**: configure `jobs:`, `map:`, `bf watch` triggers, recover queues and use Git hooks.
|
|
136
136
|
|
|
137
137
|
See [agent workflows](https://fmind.github.io/brain-framework/docs/agents/) and optional repository [hooks](https://github.com/fmind/brain-framework/tree/main/examples/hooks).
|
|
138
138
|
|
|
139
139
|
## Bring your tools
|
|
140
140
|
|
|
141
|
-
Copy a
|
|
141
|
+
Copy a standalone stdlib script into `sensors/` (or pair any JSON/JSONL CLI with `bf.yaml` `map:`): [local documents](https://github.com/fmind/brain-framework/blob/main/examples/sensors/local-documents.py), [highlights](https://github.com/fmind/brain-framework/blob/main/examples/sensors/highlights.py), [Git history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/git-history.py), [GitHub history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/github-history.md), [Google Calendar](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-calendar.py), [Gmail headers](https://github.com/fmind/brain-framework/blob/main/examples/sensors/gmail-headers.py), [Drive folders](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-drive-folders.py), or [any source you can script](https://fmind.github.io/brain-framework/docs/sensors/#any-source-you-can-script). Keep them fresh in a terminal or [background service](https://fmind.github.io/brain-framework/docs/schedule/) with `bf watch` ([offline demo](https://github.com/fmind/brain-framework/tree/main/examples/watch)):
|
|
142
142
|
|
|
143
143
|
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
|
|
144
144
|
<img
|
|
@@ -150,20 +150,18 @@ Copy a reviewed stdlib sensor into `sensors/` alongside [`_sensor.py`](https://g
|
|
|
150
150
|
|
|
151
151
|
## Let your agent come to you
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
A [prompt job](https://fmind.github.io/brain-framework/docs/prompts/) watches your brain offline and invokes your harness only when an event or `gate:` triggers it:
|
|
154
154
|
|
|
155
155
|
```yaml
|
|
156
|
-
|
|
156
|
+
jobs:
|
|
157
157
|
triage:
|
|
158
158
|
prompt: prompts/triage.md
|
|
159
|
-
|
|
159
|
+
harness:
|
|
160
160
|
[
|
|
161
161
|
claude,
|
|
162
162
|
--print,
|
|
163
163
|
--output-format,
|
|
164
164
|
json,
|
|
165
|
-
--json-schema,
|
|
166
|
-
"{{schema}}",
|
|
167
165
|
--tools,
|
|
168
166
|
"Read,Grep,Glob,Bash",
|
|
169
167
|
--allowedTools,
|
|
@@ -171,14 +169,14 @@ assistants:
|
|
|
171
169
|
--permission-mode,
|
|
172
170
|
dontAsk,
|
|
173
171
|
]
|
|
174
|
-
|
|
175
|
-
|
|
172
|
+
extract: /result
|
|
173
|
+
emit: message
|
|
176
174
|
post: desktop
|
|
177
|
-
|
|
178
|
-
|
|
175
|
+
on:
|
|
176
|
+
- { every: 600, event: { kind: record, source: mail } }
|
|
179
177
|
```
|
|
180
178
|
|
|
181
|
-
`
|
|
179
|
+
Event rules and `gate:` scripts skip quiet intervals without starting a model, `extract:` unwraps harness JSON, and `post:` delivers answers through your [channel](https://fmind.github.io/brain-framework/docs/channels/) (while `emit: action` writes validated `draft` `ACTION.md` notes). See [safe prompts](https://fmind.github.io/brain-framework/docs/prompts/#keep-prompts-safe) and [propose, then act](https://fmind.github.io/brain-framework/docs/prompts/#propose-then-act).
|
|
182
180
|
|
|
183
181
|
## Good to know
|
|
184
182
|
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
|
|
12
12
|
**🧠 Brain Framework: from information to informed actions.**
|
|
13
13
|
|
|
14
|
-
Brain Framework (BF) 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 explicit ontology, lets any agent harness search and read offline, and wakes your harness when
|
|
14
|
+
Brain Framework (BF) 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 explicit ontology, lets any agent harness search and read offline, and wakes your harness when triggers or reviewed gates spot new evidence.
|
|
15
15
|
|
|
16
16
|
- **Plain files you own, open to any agent.** Markdown notes (`projects/`, `concepts/`, `actions/`) and JSON records (`memories/`), reached through the `bf` CLI, [MCP](https://fmind.github.io/brain-framework/docs/mcp/), [Agent Skills](https://agentskills.io/specification) and `AGENTS.md`.
|
|
17
|
-
- **Explicit graph and provenance.** `bf.yaml`
|
|
18
|
-
- **Controlled autonomy.**
|
|
17
|
+
- **Explicit graph and provenance.** `bf.yaml` `map:` rules or scripts map provider fields into shared relations once at collection. Every claim keeps its source record, and `newer_evidence` flags notes when upstream evidence changes.
|
|
18
|
+
- **Controlled autonomy.** Scheduled or event-triggered jobs (`jobs:`) with reviewed `gate:` scripts wake your harness only when needed and deliver answers via `bf post` or validated `ACTION.md` drafts.
|
|
19
19
|
|
|
20
20
|
[](https://github.com/fmind/brain-framework/actions/workflows/ci.yml) [](https://pypi.org/project/brain-framework/) [](https://pypi.org/project/brain-framework/) [](https://github.com/fmind/brain-framework/blob/main/LICENSE)
|
|
21
21
|
|
|
@@ -24,7 +24,7 @@ Brain Framework (BF) is a local-first brain for you and your AI agents. It colle
|
|
|
24
24
|
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg">
|
|
25
25
|
<img
|
|
26
26
|
src="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/brain-loop.svg"
|
|
27
|
-
alt="The Brain Framework loop:
|
|
27
|
+
alt="The Brain Framework loop: jobs gather evidence into a brain folder; bf.yaml declares the ontology, jobs and watch settings; memories, projects, concepts and actions form a knowledge graph; agents read context, act and compile outcomes back."
|
|
28
28
|
width="960"
|
|
29
29
|
>
|
|
30
30
|
</a>
|
|
@@ -79,10 +79,10 @@ Five steps run in one loop: **gather → normalize → organize and connect →
|
|
|
79
79
|
| `projects/` | Project state (`Now`), decisions (`Decision`) and open tasks (`Next actions`) |
|
|
80
80
|
| `concepts/` | Durable reusable patterns and reference syntheses |
|
|
81
81
|
| `actions/` | Tracked work sessions (`draft` open, `stable` settled, `deprecated` retired) |
|
|
82
|
-
| `sensors/` |
|
|
83
|
-
| `routines/` | Deterministic scripts (
|
|
82
|
+
| `sensors/` | Standalone scripts printing JSON/JSONL or raw exports shaped by `bf.yaml` `map:` |
|
|
83
|
+
| `routines/` | Deterministic scripts (like `weekly-review.py`) run on intervals, `at`, events or Git hooks |
|
|
84
84
|
|
|
85
|
-
`bf.yaml` declares shared [fields and mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings)
|
|
85
|
+
`bf.yaml` declares shared [fields and mappings](https://fmind.github.io/brain-framework/docs/schema/#shared-fields-and-sensor-mappings) and unified [`jobs:`](https://fmind.github.io/brain-framework/docs/prompts/) covering [sensors](https://fmind.github.io/brain-framework/docs/sensors/), [routines](https://fmind.github.io/brain-framework/docs/routines/) and [channels](https://fmind.github.io/brain-framework/docs/channels/). A disposable SQLite cache in `.bf/` powers offline BM25 search, graph backlinks (`bf read project:new-website`), triage (`bf read review`) and JSONL exports (`bf export --kind items`). See the [directory reference](https://fmind.github.io/brain-framework/docs/brain/#directory-reference).
|
|
86
86
|
|
|
87
87
|
## Open your agent in your brain
|
|
88
88
|
|
|
@@ -98,13 +98,13 @@ The `/bf` router connects your harness to built-in offline documentation via `bf
|
|
|
98
98
|
- **`bf guide retrieval`**: orient with `bf read review`, verify and cite `SOURCE:ID` refs and export graph claims.
|
|
99
99
|
- **`bf guide authoring`**: update owning `projects/` and `concepts/`, manage tracked `actions/` (`bf action new`, `bf action status`) and connect entities.
|
|
100
100
|
- **`bf guide getting-started` / `bf guide operations`**: initialize or register brains, run [MCP](https://fmind.github.io/brain-framework/docs/mcp/), validate, evaluate and troubleshoot.
|
|
101
|
-
- **`bf guide jobs` / `bf guide events`**: configure
|
|
101
|
+
- **`bf guide jobs` / `bf guide events`**: configure `jobs:`, `map:`, `bf watch` triggers, recover queues and use Git hooks.
|
|
102
102
|
|
|
103
103
|
See [agent workflows](https://fmind.github.io/brain-framework/docs/agents/) and optional repository [hooks](https://github.com/fmind/brain-framework/tree/main/examples/hooks).
|
|
104
104
|
|
|
105
105
|
## Bring your tools
|
|
106
106
|
|
|
107
|
-
Copy a
|
|
107
|
+
Copy a standalone stdlib script into `sensors/` (or pair any JSON/JSONL CLI with `bf.yaml` `map:`): [local documents](https://github.com/fmind/brain-framework/blob/main/examples/sensors/local-documents.py), [highlights](https://github.com/fmind/brain-framework/blob/main/examples/sensors/highlights.py), [Git history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/git-history.py), [GitHub history](https://github.com/fmind/brain-framework/blob/main/examples/sensors/github-history.md), [Google Calendar](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-calendar.py), [Gmail headers](https://github.com/fmind/brain-framework/blob/main/examples/sensors/gmail-headers.py), [Drive folders](https://github.com/fmind/brain-framework/blob/main/examples/sensors/google-drive-folders.py), or [any source you can script](https://fmind.github.io/brain-framework/docs/sensors/#any-source-you-can-script). Keep them fresh in a terminal or [background service](https://fmind.github.io/brain-framework/docs/schedule/) with `bf watch` ([offline demo](https://github.com/fmind/brain-framework/tree/main/examples/watch)):
|
|
108
108
|
|
|
109
109
|
<a href="https://raw.githubusercontent.com/fmind/brain-framework/main/docs/assets/watch.svg">
|
|
110
110
|
<img
|
|
@@ -116,20 +116,18 @@ Copy a reviewed stdlib sensor into `sensors/` alongside [`_sensor.py`](https://g
|
|
|
116
116
|
|
|
117
117
|
## Let your agent come to you
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
A [prompt job](https://fmind.github.io/brain-framework/docs/prompts/) watches your brain offline and invokes your harness only when an event or `gate:` triggers it:
|
|
120
120
|
|
|
121
121
|
```yaml
|
|
122
|
-
|
|
122
|
+
jobs:
|
|
123
123
|
triage:
|
|
124
124
|
prompt: prompts/triage.md
|
|
125
|
-
|
|
125
|
+
harness:
|
|
126
126
|
[
|
|
127
127
|
claude,
|
|
128
128
|
--print,
|
|
129
129
|
--output-format,
|
|
130
130
|
json,
|
|
131
|
-
--json-schema,
|
|
132
|
-
"{{schema}}",
|
|
133
131
|
--tools,
|
|
134
132
|
"Read,Grep,Glob,Bash",
|
|
135
133
|
--allowedTools,
|
|
@@ -137,14 +135,14 @@ assistants:
|
|
|
137
135
|
--permission-mode,
|
|
138
136
|
dontAsk,
|
|
139
137
|
]
|
|
140
|
-
|
|
141
|
-
|
|
138
|
+
extract: /result
|
|
139
|
+
emit: message
|
|
142
140
|
post: desktop
|
|
143
|
-
|
|
144
|
-
|
|
141
|
+
on:
|
|
142
|
+
- { every: 600, event: { kind: record, source: mail } }
|
|
145
143
|
```
|
|
146
144
|
|
|
147
|
-
`
|
|
145
|
+
Event rules and `gate:` scripts skip quiet intervals without starting a model, `extract:` unwraps harness JSON, and `post:` delivers answers through your [channel](https://fmind.github.io/brain-framework/docs/channels/) (while `emit: action` writes validated `draft` `ACTION.md` notes). See [safe prompts](https://fmind.github.io/brain-framework/docs/prompts/#keep-prompts-safe) and [propose, then act](https://fmind.github.io/brain-framework/docs/prompts/#propose-then-act).
|
|
148
146
|
|
|
149
147
|
## Good to know
|
|
150
148
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "brain-framework"
|
|
3
|
-
version = "
|
|
3
|
+
version = "24.0.0"
|
|
4
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."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
requires-python = ">=3.14"
|
|
@@ -130,11 +130,6 @@ ignore = [
|
|
|
130
130
|
]
|
|
131
131
|
|
|
132
132
|
[tool.ruff.lint.per-file-ignores]
|
|
133
|
-
"examples/**/_bf.py" = [
|
|
134
|
-
"A002",
|
|
135
|
-
"S603",
|
|
136
|
-
"S607",
|
|
137
|
-
]
|
|
138
133
|
"examples/channels/**" = ["S603"]
|
|
139
134
|
"examples/hooks/**" = [
|
|
140
135
|
"BLE001",
|
|
@@ -145,11 +140,6 @@ ignore = [
|
|
|
145
140
|
"S607",
|
|
146
141
|
"T201",
|
|
147
142
|
]
|
|
148
|
-
"examples/sensors/_sensor.py" = [
|
|
149
|
-
"A002",
|
|
150
|
-
"BLE001",
|
|
151
|
-
"S310",
|
|
152
|
-
]
|
|
153
143
|
"tests/**" = [
|
|
154
144
|
"BLE001",
|
|
155
145
|
"S101",
|
|
@@ -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 = "
|
|
4
|
+
version = "24.0.0"
|
|
5
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."
|
|
6
6
|
readme = "README.md"
|
|
7
7
|
requires-python = ">=3.14"
|
|
@@ -143,11 +143,6 @@ ignore = [
|
|
|
143
143
|
]
|
|
144
144
|
|
|
145
145
|
[tool.ruff.lint.per-file-ignores]
|
|
146
|
-
"examples/**/_bf.py" = [
|
|
147
|
-
"A002", # `emit_receipt(id=...)` matches BF's channel receipt field name.
|
|
148
|
-
"S603", # Helpers invoke `bf` with literal argv lists and no shell.
|
|
149
|
-
"S607", # `bf` is resolved on the PATH Brain Framework or the host provides.
|
|
150
|
-
]
|
|
151
146
|
"examples/channels/**" = [
|
|
152
147
|
"S603", # Channel adapters invoke notifier CLIs with literal argv lists and no shell.
|
|
153
148
|
]
|
|
@@ -160,11 +155,6 @@ ignore = [
|
|
|
160
155
|
"S607", # Provider CLIs are resolved by bare name on the PATH Brain Framework sanitizes.
|
|
161
156
|
"T201", # Adapters print exactly one JSON array to stdout.
|
|
162
157
|
]
|
|
163
|
-
"examples/sensors/_sensor.py" = [
|
|
164
|
-
"A002", # `record(id=...)` matches BF's record field name.
|
|
165
|
-
"BLE001", # `main()` and `cli()` catch unexpected exceptions so tracebacks never quote provider data.
|
|
166
|
-
"S310", # `fetch()` rejects non-HTTPS schemes, credentials and cross-host redirects before opening.
|
|
167
|
-
]
|
|
168
158
|
"tests/**" = [
|
|
169
159
|
"BLE001", # Worker-thread test helpers record any exception so the test thread can assert on it.
|
|
170
160
|
"S101", # pytest assertions are the test contract.
|