brainiac-cli 0.16.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.
- brainiac_cli-0.16.0/LICENSE +202 -0
- brainiac_cli-0.16.0/PKG-INFO +306 -0
- brainiac_cli-0.16.0/README.md +248 -0
- brainiac_cli-0.16.0/pyproject.toml +138 -0
- brainiac_cli-0.16.0/setup.cfg +4 -0
- brainiac_cli-0.16.0/src/brain/__init__.py +39 -0
- brainiac_cli-0.16.0/src/brain/__main__.py +14 -0
- brainiac_cli-0.16.0/src/brain/_assets/AGENTS.md +564 -0
- brainiac_cli-0.16.0/src/brain/_assets/overlay/template/brand/brand-guide.md +24 -0
- brainiac_cli-0.16.0/src/brain/_assets/overlay/template/keywords/glossary.md +15 -0
- brainiac_cli-0.16.0/src/brain/_assets/overlay/template/people/roster.md +14 -0
- brainiac_cli-0.16.0/src/brain/_assets/overlay/template/voice/voice-profile.md +34 -0
- brainiac_cli-0.16.0/src/brain/_assets/routines/manifest.json +257 -0
- brainiac_cli-0.16.0/src/brain/_assets/scripts/brain-brief-mac.plist +59 -0
- brainiac_cli-0.16.0/src/brain/_assets/scripts/brain-brief.sh +74 -0
- brainiac_cli-0.16.0/src/brain/_assets/scripts/brain-synthesis-mac.plist +48 -0
- brainiac_cli-0.16.0/src/brain/_assets/scripts/brain-synthesis.sh +214 -0
- brainiac_cli-0.16.0/src/brain/_assets/scripts/install-brief-mac.sh +152 -0
- brainiac_cli-0.16.0/src/brain/_assets/scripts/install-brief-windows.ps1 +97 -0
- brainiac_cli-0.16.0/src/brain/_assets/scripts/register_tasks.py +386 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/company.md +21 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/concept.md +27 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/daily.md +20 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/decision.md +42 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/meeting.md +33 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/person.md +20 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/project.md +23 -0
- brainiac_cli-0.16.0/src/brain/_assets/templates/state-moc.md +40 -0
- brainiac_cli-0.16.0/src/brain/_version.py +12 -0
- brainiac_cli-0.16.0/src/brain/anchor.py +121 -0
- brainiac_cli-0.16.0/src/brain/audit.py +422 -0
- brainiac_cli-0.16.0/src/brain/backup.py +210 -0
- brainiac_cli-0.16.0/src/brain/brief.py +417 -0
- brainiac_cli-0.16.0/src/brain/capture.py +117 -0
- brainiac_cli-0.16.0/src/brain/chunk.py +249 -0
- brainiac_cli-0.16.0/src/brain/classification.py +134 -0
- brainiac_cli-0.16.0/src/brain/cli.py +1906 -0
- brainiac_cli-0.16.0/src/brain/config.py +368 -0
- brainiac_cli-0.16.0/src/brain/connect.py +362 -0
- brainiac_cli-0.16.0/src/brain/context.py +108 -0
- brainiac_cli-0.16.0/src/brain/core.py +3018 -0
- brainiac_cli-0.16.0/src/brain/doctor.py +1161 -0
- brainiac_cli-0.16.0/src/brain/egress.py +148 -0
- brainiac_cli-0.16.0/src/brain/embed.py +857 -0
- brainiac_cli-0.16.0/src/brain/encryption.py +217 -0
- brainiac_cli-0.16.0/src/brain/frontmatter.py +102 -0
- brainiac_cli-0.16.0/src/brain/golden_probe.py +678 -0
- brainiac_cli-0.16.0/src/brain/graph.py +369 -0
- brainiac_cli-0.16.0/src/brain/graphify.py +352 -0
- brainiac_cli-0.16.0/src/brain/index.py +1576 -0
- brainiac_cli-0.16.0/src/brain/ingest/__init__.py +19 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/__init__.py +43 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/base.py +95 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/docx.py +78 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/email.py +228 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/html.py +142 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/image.py +91 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/pdf.py +99 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/pptx.py +69 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/tables.py +41 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/text.py +43 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/xlsx.py +100 -0
- brainiac_cli-0.16.0/src/brain/ingest/handlers/zip.py +163 -0
- brainiac_cli-0.16.0/src/brain/ingest/pipeline.py +839 -0
- brainiac_cli-0.16.0/src/brain/ingest/transcript.py +158 -0
- brainiac_cli-0.16.0/src/brain/init.py +870 -0
- brainiac_cli-0.16.0/src/brain/maintenance.py +2266 -0
- brainiac_cli-0.16.0/src/brain/mcp_adapter.py +217 -0
- brainiac_cli-0.16.0/src/brain/multihop.py +232 -0
- brainiac_cli-0.16.0/src/brain/notes.py +195 -0
- brainiac_cli-0.16.0/src/brain/overlay.py +183 -0
- brainiac_cli-0.16.0/src/brain/projection.py +79 -0
- brainiac_cli-0.16.0/src/brain/rerank.py +425 -0
- brainiac_cli-0.16.0/src/brain/snapshot.py +231 -0
- brainiac_cli-0.16.0/src/brain/update.py +743 -0
- brainiac_cli-0.16.0/src/brain/vectors.py +225 -0
- brainiac_cli-0.16.0/src/brainiac_cli.egg-info/PKG-INFO +306 -0
- brainiac_cli-0.16.0/src/brainiac_cli.egg-info/SOURCES.txt +137 -0
- brainiac_cli-0.16.0/src/brainiac_cli.egg-info/dependency_links.txt +1 -0
- brainiac_cli-0.16.0/src/brainiac_cli.egg-info/entry_points.txt +4 -0
- brainiac_cli-0.16.0/src/brainiac_cli.egg-info/requires.txt +61 -0
- brainiac_cli-0.16.0/src/brainiac_cli.egg-info/top_level.txt +1 -0
- brainiac_cli-0.16.0/tests/test_anchor.py +77 -0
- brainiac_cli-0.16.0/tests/test_audit_chain.py +185 -0
- brainiac_cli-0.16.0/tests/test_backup_restore.py +117 -0
- brainiac_cli-0.16.0/tests/test_bitemporal.py +139 -0
- brainiac_cli-0.16.0/tests/test_brainiac_health.py +119 -0
- brainiac_cli-0.16.0/tests/test_brief_digest.py +720 -0
- brainiac_cli-0.16.0/tests/test_capture_path.py +619 -0
- brainiac_cli-0.16.0/tests/test_classification_filter.py +111 -0
- brainiac_cli-0.16.0/tests/test_cleanroom_export_smoke.py +125 -0
- brainiac_cli-0.16.0/tests/test_cli_contract.py +159 -0
- brainiac_cli-0.16.0/tests/test_config_vault_fallback.py +33 -0
- brainiac_cli-0.16.0/tests/test_connect.py +321 -0
- brainiac_cli-0.16.0/tests/test_cowork_restage.py +92 -0
- brainiac_cli-0.16.0/tests/test_direct_file_read.py +68 -0
- brainiac_cli-0.16.0/tests/test_doctor.py +1055 -0
- brainiac_cli-0.16.0/tests/test_egress_hint.py +68 -0
- brainiac_cli-0.16.0/tests/test_egress_per_subcommand.py +231 -0
- brainiac_cli-0.16.0/tests/test_embed.py +82 -0
- brainiac_cli-0.16.0/tests/test_encryption_module.py +72 -0
- brainiac_cli-0.16.0/tests/test_eval_harness.py +193 -0
- brainiac_cli-0.16.0/tests/test_eval_stats.py +292 -0
- brainiac_cli-0.16.0/tests/test_export_cleanroom.py +45 -0
- brainiac_cli-0.16.0/tests/test_framework_sync.py +108 -0
- brainiac_cli-0.16.0/tests/test_golden_branch.py +507 -0
- brainiac_cli-0.16.0/tests/test_golden_probe.py +827 -0
- brainiac_cli-0.16.0/tests/test_graphify.py +1002 -0
- brainiac_cli-0.16.0/tests/test_harness_allowlist.py +51 -0
- brainiac_cli-0.16.0/tests/test_index.py +187 -0
- brainiac_cli-0.16.0/tests/test_indexing.py +582 -0
- brainiac_cli-0.16.0/tests/test_ingest.py +1436 -0
- brainiac_cli-0.16.0/tests/test_ingest_aux.py +336 -0
- brainiac_cli-0.16.0/tests/test_ingest_transcript.py +154 -0
- brainiac_cli-0.16.0/tests/test_init_full.py +583 -0
- brainiac_cli-0.16.0/tests/test_integration.py +443 -0
- brainiac_cli-0.16.0/tests/test_maintenance.py +1709 -0
- brainiac_cli-0.16.0/tests/test_mcp_config.py +43 -0
- brainiac_cli-0.16.0/tests/test_migration_verification.py +282 -0
- brainiac_cli-0.16.0/tests/test_multihop_graph.py +190 -0
- brainiac_cli-0.16.0/tests/test_nightly_label.py +45 -0
- brainiac_cli-0.16.0/tests/test_offhost_watchdog.py +235 -0
- brainiac_cli-0.16.0/tests/test_overlay.py +214 -0
- brainiac_cli-0.16.0/tests/test_publish_release.py +119 -0
- brainiac_cli-0.16.0/tests/test_recency_prior.py +167 -0
- brainiac_cli-0.16.0/tests/test_release.py +144 -0
- brainiac_cli-0.16.0/tests/test_retention.py +532 -0
- brainiac_cli-0.16.0/tests/test_retrieval.py +496 -0
- brainiac_cli-0.16.0/tests/test_s04_medium_bugs.py +271 -0
- brainiac_cli-0.16.0/tests/test_session_memory.py +235 -0
- brainiac_cli-0.16.0/tests/test_supersede_engine.py +228 -0
- brainiac_cli-0.16.0/tests/test_typed_entities.py +148 -0
- brainiac_cli-0.16.0/tests/test_update.py +761 -0
- brainiac_cli-0.16.0/tests/test_vectors.py +43 -0
- brainiac_cli-0.16.0/tests/test_vendor_semantic_deps.py +52 -0
- brainiac_cli-0.16.0/tests/test_version_stamp.py +93 -0
- brainiac_cli-0.16.0/tests/test_workspace_registry.py +63 -0
- brainiac_cli-0.16.0/tests/test_zone_authority.py +302 -0
- brainiac_cli-0.16.0/tests/test_zone_catalogs.py +164 -0
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: brainiac-cli
|
|
3
|
+
Version: 0.16.0
|
|
4
|
+
Summary: Brainiac — local any-LLM second-brain core engine + brain CLI (Markdown truth, derived SQLite index).
|
|
5
|
+
License-Expression: Apache-2.0
|
|
6
|
+
Requires-Python: >=3.9
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: onnxruntime>=1.17
|
|
10
|
+
Requires-Dist: tokenizers>=0.15
|
|
11
|
+
Requires-Dist: numpy<3,>=1.24
|
|
12
|
+
Requires-Dist: sqlite-vec>=0.1.6
|
|
13
|
+
Requires-Dist: huggingface-hub>=0.20
|
|
14
|
+
Requires-Dist: cryptography>=41
|
|
15
|
+
Requires-Dist: PyYAML>=6
|
|
16
|
+
Requires-Dist: regex>=2023.0.0
|
|
17
|
+
Requires-Dist: keyring>=24; sys_platform == "win32"
|
|
18
|
+
Requires-Dist: pypdf>=4.0
|
|
19
|
+
Requires-Dist: python-docx>=1.1
|
|
20
|
+
Requires-Dist: python-pptx>=0.6.23
|
|
21
|
+
Requires-Dist: openpyxl>=3.1
|
|
22
|
+
Requires-Dist: Pillow>=10
|
|
23
|
+
Provides-Extra: vec
|
|
24
|
+
Requires-Dist: sqlite-vec>=0.1.6; extra == "vec"
|
|
25
|
+
Provides-Extra: audit
|
|
26
|
+
Requires-Dist: cryptography>=41; extra == "audit"
|
|
27
|
+
Provides-Extra: embed
|
|
28
|
+
Requires-Dist: fastembed>=0.3; extra == "embed"
|
|
29
|
+
Provides-Extra: corporate
|
|
30
|
+
Requires-Dist: onnxruntime>=1.17; extra == "corporate"
|
|
31
|
+
Requires-Dist: tokenizers>=0.15; extra == "corporate"
|
|
32
|
+
Requires-Dist: numpy<3,>=1.24; extra == "corporate"
|
|
33
|
+
Requires-Dist: sqlite-vec>=0.1.6; extra == "corporate"
|
|
34
|
+
Requires-Dist: huggingface-hub>=0.20; extra == "corporate"
|
|
35
|
+
Requires-Dist: cryptography>=41; extra == "corporate"
|
|
36
|
+
Requires-Dist: PyYAML>=6; extra == "corporate"
|
|
37
|
+
Provides-Extra: yaml
|
|
38
|
+
Requires-Dist: PyYAML>=6; extra == "yaml"
|
|
39
|
+
Provides-Extra: ingest
|
|
40
|
+
Requires-Dist: pypdf>=4.0; extra == "ingest"
|
|
41
|
+
Requires-Dist: python-docx>=1.1; extra == "ingest"
|
|
42
|
+
Requires-Dist: python-pptx>=0.6.23; extra == "ingest"
|
|
43
|
+
Requires-Dist: openpyxl>=3.1; extra == "ingest"
|
|
44
|
+
Requires-Dist: Pillow>=10; extra == "ingest"
|
|
45
|
+
Provides-Extra: dev
|
|
46
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
47
|
+
Requires-Dist: build>=1; extra == "dev"
|
|
48
|
+
Provides-Extra: eval
|
|
49
|
+
Requires-Dist: ranx>=0.3.20; extra == "eval"
|
|
50
|
+
Requires-Dist: numpy>=1.24; extra == "eval"
|
|
51
|
+
Provides-Extra: quant-tools
|
|
52
|
+
Requires-Dist: onnx>=1.14; extra == "quant-tools"
|
|
53
|
+
Provides-Extra: mcp
|
|
54
|
+
Requires-Dist: mcp>=1.0; extra == "mcp"
|
|
55
|
+
Provides-Extra: index
|
|
56
|
+
Requires-Dist: regex>=2023.0.0; extra == "index"
|
|
57
|
+
Dynamic: license-file
|
|
58
|
+
|
|
59
|
+
# Brainiac
|
|
60
|
+
|
|
61
|
+
A local, any-LLM **second brain**: your notes stay plain Markdown + YAML on
|
|
62
|
+
your own disk, and the `brain` CLI gives any LLM harness (Claude Code, Codex,
|
|
63
|
+
Gemini CLI, Claude Desktop / Cowork, ...) fast, sourced search over them — no
|
|
64
|
+
vendor lock-in, no cloud index, no plugin ecosystem to keep alive.
|
|
65
|
+
|
|
66
|
+
## Why
|
|
67
|
+
|
|
68
|
+
Retrieval-augmented note-taking usually means picking a proprietary app and
|
|
69
|
+
trusting its plugin/embedding pipeline forever. Brainiac inverts that: the
|
|
70
|
+
substrate is just files (`vault/brain/`, `vault/raw/`), the search index is a
|
|
71
|
+
disposable cache you can rebuild any time, and every read goes through a
|
|
72
|
+
deny-by-default classification filter (the **egress gate** — see
|
|
73
|
+
`docs/glossary.md`) before it reaches a model — so you control what an LLM is
|
|
74
|
+
allowed to see, note by note. See `AGENTS.md` for the full conventions and
|
|
75
|
+
security model.
|
|
76
|
+
|
|
77
|
+
## Installing Brainiac for the first time
|
|
78
|
+
|
|
79
|
+
**Installing? → [`docs/install/README.md`](docs/install/README.md) (pick your
|
|
80
|
+
platform: Claude Code, Cowork, Codex, or Gemini CLI).**
|
|
81
|
+
|
|
82
|
+
The single most common path (Claude Code, on your own machine):
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
claude> /plugin marketplace add Autopsias/brainiac
|
|
86
|
+
claude> /plugin install brainiac-manager@brainiac
|
|
87
|
+
claude> /brainiac-install <path-to-your-vault>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Or the one-command way** (PyPI-first, no clone needed):
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
curl -fsSL https://raw.githubusercontent.com/Autopsias/brainiac/main/install.sh -o /tmp/brainiac-install.sh
|
|
94
|
+
bash /tmp/brainiac-install.sh
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
`install.sh` tries, in order, `uv tool install`, `pipx install`, then
|
|
98
|
+
`pip install --user` — first success wins, and it tells you which one it
|
|
99
|
+
used. Every channel installs `brainiac-cli[mcp]` so `brain-mcp` (the
|
|
100
|
+
optional Claude Desktop bridge) works out of the box. Plain `pip install
|
|
101
|
+
brainiac-cli[mcp]` works too, without the channel-fallback convenience.
|
|
102
|
+
|
|
103
|
+
**Windows (PowerShell)?** Same install, no bash/WSL required:
|
|
104
|
+
|
|
105
|
+
```powershell
|
|
106
|
+
irm https://raw.githubusercontent.com/Autopsias/brainiac/main/install.ps1 -OutFile install.ps1
|
|
107
|
+
.\install.ps1
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Contributing to Brainiac, or no PyPI/network access?** Clone and pass
|
|
111
|
+
`--dev` / `-Dev` — an editable install from the checkout, the pre-PyPI
|
|
112
|
+
behavior:
|
|
113
|
+
|
|
114
|
+
```bash
|
|
115
|
+
git clone https://github.com/Autopsias/brainiac.git && cd brainiac
|
|
116
|
+
./install.sh --dev # macOS/Linux
|
|
117
|
+
# or: .\install.ps1 -Dev # Windows
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
The `--dev` path also builds a **lexical-only** index for the checkout's
|
|
121
|
+
bundled sample vault (`BRAIN_EMBEDDER=hash` — no model download, no network
|
|
122
|
+
needed) — try `brain search "arctic-embed vs e5" --json` against it right
|
|
123
|
+
away. The default PyPI-first path has no local sample vault to index — run
|
|
124
|
+
this against your own vault instead (see `docs/install/README.md`):
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
BRAIN_VAULT=<workspace>/vault brain init --full --apply # scaffolds + seeds 3 sample notes AND indexes them
|
|
128
|
+
BRAIN_VAULT=<workspace>/vault brain search "welcome" --json # first search works right away
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
Either way, semantic search downloads its embedding model (a few hundred MB)
|
|
132
|
+
lazily on first real use, or run `brain warmup` up front.
|
|
133
|
+
|
|
134
|
+
Then ask your first question:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
brain search "welcome" --json # fresh vault (matches the seeded sample notes)
|
|
138
|
+
brain search "arctic-embed vs e5" --json # --dev checkout's own bundled vault
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Every search hit carries the note's file path and its classification tier,
|
|
142
|
+
and an `egress` block reports how many notes were withheld by the
|
|
143
|
+
classification filter.
|
|
144
|
+
|
|
145
|
+
Two things worth knowing about where files live:
|
|
146
|
+
|
|
147
|
+
- **Your notes** live in the vault (`vault/` by default — plain Markdown, the
|
|
148
|
+
single source of truth).
|
|
149
|
+
- **The search index** lives in your per-user app-data folder
|
|
150
|
+
(`~/Library/Application Support/profile-a-brain` on macOS,
|
|
151
|
+
`%LOCALAPPDATA%\profile-a-brain` on Windows, `~/.local/share/...` on
|
|
152
|
+
Linux). It is a derived cache — deleting it loses nothing; `brain rebuild`
|
|
153
|
+
recreates it from the vault.
|
|
154
|
+
|
|
155
|
+
Per-client walkthroughs (Claude Code vs Codex vs Cowork):
|
|
156
|
+
`docs/install/README.md`. Run `brain --help` any time — the CLI is self-describing and is the one
|
|
157
|
+
source of truth for what's shipped.
|
|
158
|
+
|
|
159
|
+
## Updating an existing install
|
|
160
|
+
|
|
161
|
+
Already installed? Don't re-run the first-time setup — update in place.
|
|
162
|
+
|
|
163
|
+
**Check where you stand (read-only).** In your terminal:
|
|
164
|
+
|
|
165
|
+
```
|
|
166
|
+
brain doctor
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
prints one health + version table across every surface — engine venv, CLI
|
|
170
|
+
plugins, staged Cowork workspaces, marketplace cache, and the Desktop/Cowork
|
|
171
|
+
store — each ✅/⚠️ with the exact command to fix anything stale. It changes
|
|
172
|
+
nothing and exits non-zero when a required surface is behind. (Available from
|
|
173
|
+
v0.10.0 onward.)
|
|
174
|
+
|
|
175
|
+
**Bring everything current.** In Claude Code on the host:
|
|
176
|
+
|
|
177
|
+
```
|
|
178
|
+
/brainiac-update
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
now **runs** the update instead of printing a checklist: marketplace refresh →
|
|
182
|
+
downgrade-safe CLI-plugin reinstall → engine venv reinstall → every registered
|
|
183
|
+
Cowork workspace re-staged → a final `brain doctor` verify — then a before→after
|
|
184
|
+
version table and one pass/fail. It handles the reconciliation downgrade
|
|
185
|
+
(installed newer than the marketplace) automatically and never touches your
|
|
186
|
+
notes, audit chain, or runtime state. Prefer the terminal? `brain update` is the
|
|
187
|
+
same flow — add `--dry-run` to preview every decision without mutating anything.
|
|
188
|
+
Full detail: **`docs/install/README.md`** (§ Updating).
|
|
189
|
+
|
|
190
|
+
**Installed under the old names?** Marketplace `profile-a-marketplace` and
|
|
191
|
+
plugins `profile-a-kernel`/`profile-a-extras` were renamed to `brainiac` /
|
|
192
|
+
`brainiac-kernel`/`brainiac-extras` (2026-07-11). `brain doctor` flags a
|
|
193
|
+
stale-name registration under either old name. Recovery (add-new-before-
|
|
194
|
+
remove-old — never the reverse):
|
|
195
|
+
|
|
196
|
+
```
|
|
197
|
+
claude plugin marketplace add Autopsias/brainiac
|
|
198
|
+
claude plugin install brainiac-manager@brainiac
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
then run `/brainiac-update` — it detects the old-name registrations and
|
|
202
|
+
finishes the migration automatically (installs the new-name plugins,
|
|
203
|
+
verifies the lifecycle skills resolve, then removes the old marketplace and
|
|
204
|
+
plugins). See `docs/adr/0006-distribution-naming.md`.
|
|
205
|
+
|
|
206
|
+
## Using it with a new project (second vault, third, ...)
|
|
207
|
+
|
|
208
|
+
The install is **per machine**; vaults are **per project**. You never
|
|
209
|
+
reinstall — you point the same `brain` at a different vault folder, and each
|
|
210
|
+
vault automatically gets its own index and audit chain (no configuration):
|
|
211
|
+
|
|
212
|
+
```bash
|
|
213
|
+
export BRAIN_VAULT=~/vaults/my-new-project # which vault to use
|
|
214
|
+
brain init --full --apply # once per vault: scaffold + seed + index
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
Full detail (per-vault overlay, the scheduled-task gotcha):
|
|
218
|
+
**`docs/install/second-vault.md`**.
|
|
219
|
+
|
|
220
|
+
## For technical & security teams
|
|
221
|
+
|
|
222
|
+
A plain summary of what this repo does and doesn't do, for a corporate
|
|
223
|
+
review:
|
|
224
|
+
|
|
225
|
+
- **All data stays on the local disk.** Notes are plain Markdown; the index
|
|
226
|
+
is a local SQLite file. There is no server, no telemetry, no cloud sync,
|
|
227
|
+
and the project holds **no model API keys** — the only egress is whatever
|
|
228
|
+
LLM client the owner already runs.
|
|
229
|
+
- **Deny-by-default egress gate.** Every read command filters notes by their
|
|
230
|
+
`classification` tier before printing; a note with a missing or unknown
|
|
231
|
+
label is treated as most-restrictive and withheld. Scheme:
|
|
232
|
+
`docs/classification-scheme.md`.
|
|
233
|
+
- **Signed audit chain.** Every committed write is Ed25519-signed and
|
|
234
|
+
hash-chained; the key lives in the OS secret store, fail-closed (no file
|
|
235
|
+
fallback). Rotation runbook and stated limitations: `SECURITY.md`.
|
|
236
|
+
- **Trust split.** Untrusted/sandboxed legs (the Cowork Linux VM) get a
|
|
237
|
+
read-only snapshot and a draft inbox — they can never sign, index, or
|
|
238
|
+
mutate the canonical store. `AGENTS.md` §6.
|
|
239
|
+
- **Dependencies.** The default install pulls a small, auditable set
|
|
240
|
+
(onnxruntime, tokenizers, numpy, sqlite-vec, huggingface-hub,
|
|
241
|
+
cryptography, PyYAML, regex — see `pyproject.toml`, which documents why
|
|
242
|
+
each exists). The code degrades gracefully without any of them, so a
|
|
243
|
+
constrained deployment (Intune, air-gapped) can install with
|
|
244
|
+
`pip install --no-deps .` and re-add only what policy allows; an SBOM
|
|
245
|
+
generator ships at `tools/generate_sbom.py`. Offline model provisioning:
|
|
246
|
+
set `$BRAIN_MODEL_CACHE` to a pre-fetched model dir and no download is
|
|
247
|
+
attempted.
|
|
248
|
+
- **License & provenance.** Apache-2.0. Built clean-room; the AGPL project
|
|
249
|
+
consulted as a design reference was never forked or vendored — log and
|
|
250
|
+
audit gate: `docs/clean-room-log.md`, `tools/code_origin_audit.py`.
|
|
251
|
+
- **Vulnerability reporting:** `SECURITY.md`. Deeper notes:
|
|
252
|
+
`docs/SECURITY_NOTES.md`, `docs/operations/`.
|
|
253
|
+
|
|
254
|
+
## How the AI assistants are wired
|
|
255
|
+
|
|
256
|
+
`AGENTS.md` is the canonical instruction file. `CLAUDE.md` imports it
|
|
257
|
+
verbatim (`@AGENTS.md`) so Claude Code reads the same contract; Codex reads
|
|
258
|
+
`AGENTS.md` natively; Gemini CLI is pointed at it via `.gemini/`. All of them
|
|
259
|
+
call the `brain` CLI through their normal shell — **no MCP required**. The
|
|
260
|
+
one exception is the Claude Desktop **Chat tab** (the only surface that
|
|
261
|
+
can't run a command): for that, `pip install -e ".[mcp]"` adds the optional,
|
|
262
|
+
deletable `brain-mcp` bridge. Full matrix: `docs/harness-wiring.md`.
|
|
263
|
+
|
|
264
|
+
## More
|
|
265
|
+
|
|
266
|
+
- **`AGENTS.md`** — the conventions/schema every harness reads at startup:
|
|
267
|
+
note shape, link style, capture rules, the four agent-facing verbs
|
|
268
|
+
(search/get/recent/draft-capture), and the security posture.
|
|
269
|
+
- **`docs/install/`** — installation, starting at the
|
|
270
|
+
[platform picker](docs/install/README.md) (Claude Code, Cowork — the Claude
|
|
271
|
+
Desktop Linux VM sandbox client — Codex, Gemini CLI) and
|
|
272
|
+
`docs/install/new-owner.md` for the five-minute "what runs where" mental model.
|
|
273
|
+
- **`docs/glossary.md`** — one-line definitions for the jargon used across
|
|
274
|
+
these docs (PARA, MNPI, egress gate, Cowork, host-broker, overlay, ...).
|
|
275
|
+
- **`SECURITY.md`** — vulnerability reporting, supported versions, audit-key
|
|
276
|
+
rotation.
|
|
277
|
+
- **`LICENSE`** — Apache-2.0.
|
|
278
|
+
|
|
279
|
+
## Layout
|
|
280
|
+
|
|
281
|
+
```
|
|
282
|
+
AGENTS.md conventions + frontmatter schema
|
|
283
|
+
src/brain/ the brain CLI + engine (index, search, audit, ...)
|
|
284
|
+
docs/ specs (substrate, classification, install, security notes)
|
|
285
|
+
tools/validate.py conventions validator (stdlib-only; PyYAML optional)
|
|
286
|
+
vault/ the tiny sample vault used in the quickstart above
|
|
287
|
+
raw/ immutable captured sources
|
|
288
|
+
brain/ agent-owned atomic notes + index.md + generated backlinks.md
|
|
289
|
+
.brain/ per-vault runtime (published snapshot, capture inbox) — gitignored
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
## Validate
|
|
293
|
+
|
|
294
|
+
```bash
|
|
295
|
+
python3 tools/validate.py vault # exit 0 = conventions clean
|
|
296
|
+
python3 tools/validate.py vault --backlinks # regenerate brain/backlinks.md
|
|
297
|
+
python3 tools/validate.py vault --okf # + optional OKF lint
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
## Scope note
|
|
301
|
+
|
|
302
|
+
Substrate readiness is not the same as operational cutover. This repo makes
|
|
303
|
+
the substrate *ready* to replace an existing tool (e.g. Obsidian + Smart
|
|
304
|
+
Connections) and emits the cutover hooks (`docs/corpus-migration.md`,
|
|
305
|
+
`docs/dependency-inventory.md`); actually retiring your old setup is a
|
|
306
|
+
separate, owner-specific step. See `AGENTS.md` §7.
|