never4ga 0.1.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 (205) hide show
  1. never4ga-0.1.0/.gitignore +39 -0
  2. never4ga-0.1.0/LICENSE +73 -0
  3. never4ga-0.1.0/PKG-INFO +204 -0
  4. never4ga-0.1.0/README.md +170 -0
  5. never4ga-0.1.0/SECURITY.md +15 -0
  6. never4ga-0.1.0/pyproject.toml +142 -0
  7. never4ga-0.1.0/src/never4ga/__init__.py +15 -0
  8. never4ga-0.1.0/src/never4ga/adapters/__init__.py +6 -0
  9. never4ga-0.1.0/src/never4ga/adapters/clients/__init__.py +7 -0
  10. never4ga-0.1.0/src/never4ga/adapters/clients/mcp_registry.py +74 -0
  11. never4ga-0.1.0/src/never4ga/adapters/fakes/__init__.py +47 -0
  12. never4ga-0.1.0/src/never4ga/adapters/fakes/agent_adapter.py +38 -0
  13. never4ga-0.1.0/src/never4ga/adapters/fakes/document_store.py +80 -0
  14. never4ga-0.1.0/src/never4ga/adapters/fakes/extension_registry.py +57 -0
  15. never4ga-0.1.0/src/never4ga/adapters/fakes/graph_index.py +112 -0
  16. never4ga-0.1.0/src/never4ga/adapters/fakes/index_state.py +56 -0
  17. never4ga-0.1.0/src/never4ga/adapters/fakes/maintenance_findings.py +44 -0
  18. never4ga-0.1.0/src/never4ga/adapters/fakes/memory.py +58 -0
  19. never4ga-0.1.0/src/never4ga/adapters/fakes/metadata_index.py +59 -0
  20. never4ga-0.1.0/src/never4ga/adapters/fakes/repository_locator.py +104 -0
  21. never4ga-0.1.0/src/never4ga/adapters/fakes/secret_store.py +37 -0
  22. never4ga-0.1.0/src/never4ga/adapters/fakes/service_manager.py +39 -0
  23. never4ga-0.1.0/src/never4ga/adapters/fakes/session_store.py +102 -0
  24. never4ga-0.1.0/src/never4ga/adapters/fakes/text_index.py +115 -0
  25. never4ga-0.1.0/src/never4ga/adapters/fakes/tracker_cache.py +47 -0
  26. never4ga-0.1.0/src/never4ga/adapters/fakes/vault_files.py +49 -0
  27. never4ga-0.1.0/src/never4ga/adapters/fakes/work_management.py +278 -0
  28. never4ga-0.1.0/src/never4ga/adapters/fakes/workspace_mappings.py +24 -0
  29. never4ga-0.1.0/src/never4ga/adapters/filesystem/__init__.py +54 -0
  30. never4ga-0.1.0/src/never4ga/adapters/filesystem/client_files.py +79 -0
  31. never4ga-0.1.0/src/never4ga/adapters/filesystem/deployments.py +153 -0
  32. never4ga-0.1.0/src/never4ga/adapters/filesystem/document_store.py +541 -0
  33. never4ga-0.1.0/src/never4ga/adapters/filesystem/extension_registry.py +210 -0
  34. never4ga-0.1.0/src/never4ga/adapters/filesystem/frontmatter.py +226 -0
  35. never4ga-0.1.0/src/never4ga/adapters/filesystem/repository_locator.py +142 -0
  36. never4ga-0.1.0/src/never4ga/adapters/filesystem/secret_store.py +165 -0
  37. never4ga-0.1.0/src/never4ga/adapters/filesystem/vault_files.py +100 -0
  38. never4ga-0.1.0/src/never4ga/adapters/filesystem/workspace_mappings.py +233 -0
  39. never4ga-0.1.0/src/never4ga/adapters/git/__init__.py +14 -0
  40. never4ga-0.1.0/src/never4ga/adapters/git/signals.py +158 -0
  41. never4ga-0.1.0/src/never4ga/adapters/null/__init__.py +20 -0
  42. never4ga-0.1.0/src/never4ga/adapters/null/memory.py +62 -0
  43. never4ga-0.1.0/src/never4ga/adapters/null/service_manager.py +40 -0
  44. never4ga-0.1.0/src/never4ga/adapters/null/workspace_mappings.py +27 -0
  45. never4ga-0.1.0/src/never4ga/adapters/openproject/__init__.py +33 -0
  46. never4ga-0.1.0/src/never4ga/adapters/openproject/api.py +341 -0
  47. never4ga-0.1.0/src/never4ga/adapters/openproject/normalise.py +211 -0
  48. never4ga-0.1.0/src/never4ga/adapters/openproject/provider.py +453 -0
  49. never4ga-0.1.0/src/never4ga/adapters/openproject/write.py +207 -0
  50. never4ga-0.1.0/src/never4ga/adapters/openproject/writer.py +531 -0
  51. never4ga-0.1.0/src/never4ga/adapters/sqlite/__init__.py +40 -0
  52. never4ga-0.1.0/src/never4ga/adapters/sqlite/connection.py +445 -0
  53. never4ga-0.1.0/src/never4ga/adapters/sqlite/graph_index.py +192 -0
  54. never4ga-0.1.0/src/never4ga/adapters/sqlite/index_state.py +211 -0
  55. never4ga-0.1.0/src/never4ga/adapters/sqlite/maintenance_findings.py +96 -0
  56. never4ga-0.1.0/src/never4ga/adapters/sqlite/metadata_index.py +236 -0
  57. never4ga-0.1.0/src/never4ga/adapters/sqlite/session_store.py +292 -0
  58. never4ga-0.1.0/src/never4ga/adapters/sqlite/sessions.py +192 -0
  59. never4ga-0.1.0/src/never4ga/adapters/sqlite/text_index.py +322 -0
  60. never4ga-0.1.0/src/never4ga/adapters/sqlite/tracker_cache.py +187 -0
  61. never4ga-0.1.0/src/never4ga/adapters/sqlite/trackers.py +72 -0
  62. never4ga-0.1.0/src/never4ga/adapters/systemd/__init__.py +22 -0
  63. never4ga-0.1.0/src/never4ga/adapters/systemd/service_manager.py +183 -0
  64. never4ga-0.1.0/src/never4ga/adapters/work_management.py +103 -0
  65. never4ga-0.1.0/src/never4ga/api/__init__.py +13 -0
  66. never4ga-0.1.0/src/never4ga/api/app.py +1021 -0
  67. never4ga-0.1.0/src/never4ga/api/errors.py +290 -0
  68. never4ga-0.1.0/src/never4ga/api/models.py +752 -0
  69. never4ga-0.1.0/src/never4ga/build.py +118 -0
  70. never4ga-0.1.0/src/never4ga/cli/__init__.py +4225 -0
  71. never4ga-0.1.0/src/never4ga/cli/__main__.py +10 -0
  72. never4ga-0.1.0/src/never4ga/cli/connections.py +150 -0
  73. never4ga-0.1.0/src/never4ga/cli/output.py +75 -0
  74. never4ga-0.1.0/src/never4ga/cli/work.py +108 -0
  75. never4ga-0.1.0/src/never4ga/client_descriptors.py +146 -0
  76. never4ga-0.1.0/src/never4ga/clients/antigravity-cli.toml +32 -0
  77. never4ga-0.1.0/src/never4ga/clients/claude-code.toml +35 -0
  78. never4ga-0.1.0/src/never4ga/clients/codex-cli.toml +27 -0
  79. never4ga-0.1.0/src/never4ga/composition.py +493 -0
  80. never4ga-0.1.0/src/never4ga/config.py +293 -0
  81. never4ga-0.1.0/src/never4ga/context/__init__.py +7 -0
  82. never4ga-0.1.0/src/never4ga/context/assembler.py +125 -0
  83. never4ga-0.1.0/src/never4ga/context/authority.py +110 -0
  84. never4ga-0.1.0/src/never4ga/context/budget.py +304 -0
  85. never4ga-0.1.0/src/never4ga/context/deep.py +108 -0
  86. never4ga-0.1.0/src/never4ga/context/focused.py +323 -0
  87. never4ga-0.1.0/src/never4ga/context/foreign.py +55 -0
  88. never4ga-0.1.0/src/never4ga/context/freshness.py +37 -0
  89. never4ga-0.1.0/src/never4ga/context/fusion.py +123 -0
  90. never4ga-0.1.0/src/never4ga/context/inbox_signals.py +148 -0
  91. never4ga-0.1.0/src/never4ga/context/required.py +71 -0
  92. never4ga-0.1.0/src/never4ga/context/scope.py +149 -0
  93. never4ga-0.1.0/src/never4ga/context/session_signals.py +104 -0
  94. never4ga-0.1.0/src/never4ga/context/signals.py +39 -0
  95. never4ga-0.1.0/src/never4ga/context/structural.py +652 -0
  96. never4ga-0.1.0/src/never4ga/domain/__init__.py +5 -0
  97. never4ga-0.1.0/src/never4ga/domain/capabilities.py +120 -0
  98. never4ga-0.1.0/src/never4ga/domain/chunk.py +100 -0
  99. never4ga-0.1.0/src/never4ga/domain/clients.py +174 -0
  100. never4ga-0.1.0/src/never4ga/domain/configuration.py +30 -0
  101. never4ga-0.1.0/src/never4ga/domain/connections.py +86 -0
  102. never4ga-0.1.0/src/never4ga/domain/context.py +331 -0
  103. never4ga-0.1.0/src/never4ga/domain/deployments.py +85 -0
  104. never4ga-0.1.0/src/never4ga/domain/document.py +183 -0
  105. never4ga-0.1.0/src/never4ga/domain/extensions.py +354 -0
  106. never4ga-0.1.0/src/never4ga/domain/identity.py +172 -0
  107. never4ga-0.1.0/src/never4ga/domain/memory.py +92 -0
  108. never4ga-0.1.0/src/never4ga/domain/provenance.py +119 -0
  109. never4ga-0.1.0/src/never4ga/domain/relations.py +82 -0
  110. never4ga-0.1.0/src/never4ga/domain/retrieval.py +65 -0
  111. never4ga-0.1.0/src/never4ga/domain/scope.py +61 -0
  112. never4ga-0.1.0/src/never4ga/domain/sessions.py +243 -0
  113. never4ga-0.1.0/src/never4ga/domain/signals.py +77 -0
  114. never4ga-0.1.0/src/never4ga/domain/text_hazards.py +150 -0
  115. never4ga-0.1.0/src/never4ga/domain/vendoring.py +184 -0
  116. never4ga-0.1.0/src/never4ga/domain/work_policy.py +147 -0
  117. never4ga-0.1.0/src/never4ga/errors/__init__.py +278 -0
  118. never4ga-0.1.0/src/never4ga/errors/reporting.py +37 -0
  119. never4ga-0.1.0/src/never4ga/indexing/__init__.py +58 -0
  120. never4ga-0.1.0/src/never4ga/indexing/chunks.py +197 -0
  121. never4ga-0.1.0/src/never4ga/indexing/markdown.py +337 -0
  122. never4ga-0.1.0/src/never4ga/indexing/projection.py +408 -0
  123. never4ga-0.1.0/src/never4ga/layout/__init__.py +79 -0
  124. never4ga-0.1.0/src/never4ga/layout/decision_numbers.py +72 -0
  125. never4ga-0.1.0/src/never4ga/layout/structure.py +418 -0
  126. never4ga-0.1.0/src/never4ga/mcp/__init__.py +25 -0
  127. never4ga-0.1.0/src/never4ga/mcp/__main__.py +69 -0
  128. never4ga-0.1.0/src/never4ga/mcp/jsonrpc.py +134 -0
  129. never4ga-0.1.0/src/never4ga/mcp/server.py +169 -0
  130. never4ga-0.1.0/src/never4ga/mcp/toolbox.py +879 -0
  131. never4ga-0.1.0/src/never4ga/mcp/tools.py +62 -0
  132. never4ga-0.1.0/src/never4ga/platform_paths.py +174 -0
  133. never4ga-0.1.0/src/never4ga/ports/__init__.py +11 -0
  134. never4ga-0.1.0/src/never4ga/ports/agent_adapter.py +37 -0
  135. never4ga-0.1.0/src/never4ga/ports/client_files.py +49 -0
  136. never4ga-0.1.0/src/never4ga/ports/client_registry.py +45 -0
  137. never4ga-0.1.0/src/never4ga/ports/context_signal_provider.py +35 -0
  138. never4ga-0.1.0/src/never4ga/ports/deployments.py +35 -0
  139. never4ga-0.1.0/src/never4ga/ports/document_store.py +193 -0
  140. never4ga-0.1.0/src/never4ga/ports/embedding_provider.py +81 -0
  141. never4ga-0.1.0/src/never4ga/ports/extension_registry.py +48 -0
  142. never4ga-0.1.0/src/never4ga/ports/graph_index.py +118 -0
  143. never4ga-0.1.0/src/never4ga/ports/index_state.py +147 -0
  144. never4ga-0.1.0/src/never4ga/ports/maintenance_findings.py +118 -0
  145. never4ga-0.1.0/src/never4ga/ports/memory_augmentor.py +39 -0
  146. never4ga-0.1.0/src/never4ga/ports/metadata_index.py +79 -0
  147. never4ga-0.1.0/src/never4ga/ports/repository_locator.py +134 -0
  148. never4ga-0.1.0/src/never4ga/ports/secret_store.py +46 -0
  149. never4ga-0.1.0/src/never4ga/ports/service_manager.py +83 -0
  150. never4ga-0.1.0/src/never4ga/ports/session_store.py +131 -0
  151. never4ga-0.1.0/src/never4ga/ports/temporal_graph.py +37 -0
  152. never4ga-0.1.0/src/never4ga/ports/text_index.py +120 -0
  153. never4ga-0.1.0/src/never4ga/ports/tracker_cache.py +113 -0
  154. never4ga-0.1.0/src/never4ga/ports/vault_files.py +73 -0
  155. never4ga-0.1.0/src/never4ga/ports/vector_index.py +93 -0
  156. never4ga-0.1.0/src/never4ga/ports/work_management.py +428 -0
  157. never4ga-0.1.0/src/never4ga/ports/workspace_mappings.py +46 -0
  158. never4ga-0.1.0/src/never4ga/rendering.py +438 -0
  159. never4ga-0.1.0/src/never4ga/schema/__init__.py +89 -0
  160. never4ga-0.1.0/src/never4ga/schema/freshness.py +58 -0
  161. never4ga-0.1.0/src/never4ga/schema/registries.py +73 -0
  162. never4ga-0.1.0/src/never4ga/schema/types.py +515 -0
  163. never4ga-0.1.0/src/never4ga/schema/validation.py +813 -0
  164. never4ga-0.1.0/src/never4ga/schema/vocabulary.py +227 -0
  165. never4ga-0.1.0/src/never4ga/service/__init__.py +33 -0
  166. never4ga-0.1.0/src/never4ga/service/runtime.py +579 -0
  167. never4ga-0.1.0/src/never4ga/service/server.py +288 -0
  168. never4ga-0.1.0/src/never4ga/service/watcher.py +175 -0
  169. never4ga-0.1.0/src/never4ga/service_client.py +268 -0
  170. never4ga-0.1.0/src/never4ga/services/__init__.py +100 -0
  171. never4ga-0.1.0/src/never4ga/services/adapters.py +690 -0
  172. never4ga-0.1.0/src/never4ga/services/authoring.py +139 -0
  173. never4ga-0.1.0/src/never4ga/services/capture.py +88 -0
  174. never4ga-0.1.0/src/never4ga/services/connections.py +209 -0
  175. never4ga-0.1.0/src/never4ga/services/context.py +208 -0
  176. never4ga-0.1.0/src/never4ga/services/creation.py +1425 -0
  177. never4ga-0.1.0/src/never4ga/services/credentials.py +59 -0
  178. never4ga-0.1.0/src/never4ga/services/dashboard.py +421 -0
  179. never4ga-0.1.0/src/never4ga/services/doctor.py +2026 -0
  180. never4ga-0.1.0/src/never4ga/services/inbox.py +347 -0
  181. never4ga-0.1.0/src/never4ga/services/indexing.py +932 -0
  182. never4ga-0.1.0/src/never4ga/services/maintenance.py +281 -0
  183. never4ga-0.1.0/src/never4ga/services/mcp_registration.py +161 -0
  184. never4ga-0.1.0/src/never4ga/services/navigation.py +460 -0
  185. never4ga-0.1.0/src/never4ga/services/repair.py +225 -0
  186. never4ga-0.1.0/src/never4ga/services/repository_pointers.py +455 -0
  187. never4ga-0.1.0/src/never4ga/services/scaffold.py +1818 -0
  188. never4ga-0.1.0/src/never4ga/services/scheduling.py +150 -0
  189. never4ga-0.1.0/src/never4ga/services/search.py +457 -0
  190. never4ga-0.1.0/src/never4ga/services/session.py +174 -0
  191. never4ga-0.1.0/src/never4ga/services/sessions.py +170 -0
  192. never4ga-0.1.0/src/never4ga/services/skill_authoring.py +127 -0
  193. never4ga-0.1.0/src/never4ga/services/skill_library.py +336 -0
  194. never4ga-0.1.0/src/never4ga/services/startup_command.py +56 -0
  195. never4ga-0.1.0/src/never4ga/services/trackers.py +255 -0
  196. never4ga-0.1.0/src/never4ga/services/validation.py +97 -0
  197. never4ga-0.1.0/src/never4ga/services/vault.py +385 -0
  198. never4ga-0.1.0/src/never4ga/services/vendoring.py +446 -0
  199. never4ga-0.1.0/src/never4ga/services/work_linking.py +268 -0
  200. never4ga-0.1.0/src/never4ga/services/work_reading.py +299 -0
  201. never4ga-0.1.0/src/never4ga/services/work_recording.py +162 -0
  202. never4ga-0.1.0/src/never4ga/services/work_signals.py +367 -0
  203. never4ga-0.1.0/src/never4ga/services/work_writing.py +318 -0
  204. never4ga-0.1.0/src/never4ga/services/workspaces.py +406 -0
  205. never4ga-0.1.0/src/never4ga/services/wrap.py +589 -0
@@ -0,0 +1,39 @@
1
+ # Python
2
+ __pycache__/
3
+ *.py[cod]
4
+ *.egg-info/
5
+ .venv/
6
+ venv/
7
+ dist/
8
+ build/
9
+
10
+ # Test/tool caches
11
+ .pytest_cache/
12
+ .mypy_cache/
13
+ .ruff_cache/
14
+ .coverage
15
+ htmlcov/
16
+
17
+ # Editors
18
+ .idea/
19
+ .vscode/
20
+
21
+ # Secrets / local environment
22
+ .env
23
+ .env.*
24
+ !.env.example
25
+ *.secret
26
+ secrets/
27
+
28
+ # Never4gA local runtime state must not become repository state
29
+ .never4ga/runtime/
30
+ .never4ga/cache/
31
+ .never4ga/state/
32
+ *.sqlite
33
+ *.sqlite3
34
+ *.sqlite3-wal
35
+ *.sqlite3-shm
36
+
37
+ # OS
38
+ .DS_Store
39
+ Thumbs.db
never4ga-0.1.0/LICENSE ADDED
@@ -0,0 +1,73 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
10
+
11
+ "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
12
+
13
+ "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
14
+
15
+ "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
16
+
17
+ "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
18
+
19
+ "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
20
+
21
+ "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
22
+
23
+ "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
24
+
25
+ "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
26
+
27
+ "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
28
+
29
+ 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
30
+
31
+ 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
32
+
33
+ 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
34
+
35
+ (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and
36
+
37
+ (b) You must cause any modified files to carry prominent notices stating that You changed the files; and
38
+
39
+ (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
40
+
41
+ (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License.
42
+
43
+ You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
44
+
45
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
46
+
47
+ 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
48
+
49
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
50
+
51
+ 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
52
+
53
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
54
+
55
+ END OF TERMS AND CONDITIONS
56
+
57
+ APPENDIX: How to apply the Apache License to your work.
58
+
59
+ To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives.
60
+
61
+ Copyright [yyyy] [name of copyright owner]
62
+
63
+ Licensed under the Apache License, Version 2.0 (the "License");
64
+ you may not use this file except in compliance with the License.
65
+ You may obtain a copy of the License at
66
+
67
+ http://www.apache.org/licenses/LICENSE-2.0
68
+
69
+ Unless required by applicable law or agreed to in writing, software
70
+ distributed under the License is distributed on an "AS IS" BASIS,
71
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
72
+ See the License for the specific language governing permissions and
73
+ limitations under the License.
@@ -0,0 +1,204 @@
1
+ Metadata-Version: 2.5
2
+ Name: never4ga
3
+ Version: 0.1.0
4
+ Summary: Markdown-first, local-first personal knowledge, context, memory, and agent-support system
5
+ Project-URL: Homepage, https://github.com/BezaCore-Labs/never4ga
6
+ Project-URL: Repository, https://github.com/BezaCore-Labs/never4ga
7
+ Project-URL: Issues, https://github.com/BezaCore-Labs/never4ga/issues
8
+ Project-URL: Changelog, https://github.com/BezaCore-Labs/never4ga/releases
9
+ Author-email: Joseph Soper <joseph.soper.dev@gmail.com>
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ Keywords: ai-agents,context-engineering,knowledge-management,local-first,markdown,mcp,obsidian
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Environment :: Console
15
+ Classifier: Intended Audience :: Developers
16
+ Classifier: Operating System :: POSIX :: Linux
17
+ Classifier: Programming Language :: Python :: 3
18
+ Classifier: Programming Language :: Python :: 3 :: Only
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Software Development
21
+ Classifier: Topic :: Text Processing :: Markup :: Markdown
22
+ Requires-Python: >=3.14
23
+ Requires-Dist: fastapi>=0.115
24
+ Requires-Dist: httpx>=0.28
25
+ Requires-Dist: pydantic>=2.11
26
+ Requires-Dist: ruamel-yaml>=0.18
27
+ Requires-Dist: uvicorn>=0.34
28
+ Requires-Dist: watchdog>=6.0
29
+ Provides-Extra: dev
30
+ Requires-Dist: mypy>=1.14; extra == 'dev'
31
+ Requires-Dist: pytest>=8.0; extra == 'dev'
32
+ Requires-Dist: ruff>=0.9; extra == 'dev'
33
+ Description-Content-Type: text/markdown
34
+
35
+ <p align="center">
36
+ <img src="https://raw.githubusercontent.com/BezaCore-Labs/never4ga/main/docs/assets/banner.svg" alt="Never4gA, by BezaCore Labs: the right context for every AI session, assembled without spending a token" width="100%">
37
+ </p>
38
+
39
+ <p align="center">
40
+ <a href="https://github.com/BezaCore-Labs/never4ga/actions/workflows/gate.yml"><img src="https://github.com/BezaCore-Labs/never4ga/actions/workflows/gate.yml/badge.svg" alt="gate"></a>
41
+ <a href="https://github.com/BezaCore-Labs/never4ga/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-483BBA" alt="Apache-2.0"></a>
42
+ </p>
43
+
44
+ Never4gA, short for *never forget again*, is memory for you and every AI agent you
45
+ work with. It keeps your notes, decisions and project history as plain Markdown on
46
+ your machine, and hands each agent session exactly the part it needs before the
47
+ session starts.
48
+
49
+ > **Early days.** This is version 0.1, in daily use by the person who built it
50
+ > and new to everyone else. Expect rough edges and interfaces that still move,
51
+ > and [tell us](#tell-us-where-its-wrong) when you hit one.
52
+
53
+ **It does that without a model.** Finding the right context is lookups, queries and
54
+ file reads, so it costs no tokens, takes seconds, and gives the same answer every
55
+ time. Your agent spends its budget on the work, not on searching for what it should
56
+ already know.
57
+
58
+ <p align="center">
59
+ <img src="https://raw.githubusercontent.com/BezaCore-Labs/never4ga/main/docs/assets/demo.svg" alt="A terminal: never4ga init over a folder of notes, index, search, then a context pack for a repository" width="100%">
60
+ </p>
61
+
62
+ ## Why it's built this way
63
+
64
+ Most agent memory asks a model to decide what's relevant, or lets the agent go
65
+ looking with its own tool calls. Both spend tokens and turns before any work
66
+ happens. Never4gA does that part first, mechanically:
67
+
68
+ - **Fewer tokens.** In the vault it was built in, 2,153 files and about 3 million
69
+ tokens of notes, a session starts with a pack of about 10,000 tokens. That's
70
+ what the agent reads. Nothing else is loaded.
71
+ - **Faster starts.** That pack is assembled in about four seconds, including live
72
+ Git and tracker state, with zero model calls.
73
+ - **You can see why.** Every item in a pack names the reason it was included. The
74
+ same question gets the same pack.
75
+
76
+ ## What it does
77
+
78
+ | | |
79
+ |---|---|
80
+ | **Remembers across sessions** | Each session opens with what the project is, the rules it follows, what was decided, and what the last session left open. |
81
+ | **Remembers across tools** | Claude Code, Codex, Antigravity and any MCP client read the same memory. Switch tools and nothing is lost. |
82
+ | **Writes back what happened** | Sessions record progress and decisions as dated logs, so the next one picks up where this one stopped. |
83
+ | **Keeps your notes yours** | Everything is Markdown in a normal Obsidian vault. Uninstall Never4gA and your notes are exactly as they were. |
84
+ | **Starts from the notes you have** | Point it at an existing folder. Your files stay where they are, and your notes are searchable on the first run. |
85
+ | **Brings in your tracker** | Open work items from OpenProject join the pack, and a session can update them. |
86
+
87
+ ## How it works
88
+
89
+ ```mermaid
90
+ flowchart LR
91
+ V[("Your Markdown<br/>vault")] --> I["Local index"]
92
+ subgraph M["Found by lookup, not by a model"]
93
+ direction TB
94
+ S1["Where you are<br/>repo → workspace"] --> S2["Types and metadata"]
95
+ S2 --> S3["Full-text search"]
96
+ S3 --> S4["Links and relations"]
97
+ S4 --> S5["Git and tracker state"]
98
+ end
99
+ I --> M
100
+ M --> P["Context pack<br/>every item says why"]
101
+ P --> A["Claude Code · Codex<br/>Antigravity · MCP"]
102
+ A -. "what the session did" .-> V
103
+ ```
104
+
105
+ A pack is built in stages, and each stage is a query: which workspace this
106
+ repository belongs to, which documents that workspace holds, what full-text search
107
+ finds, what those documents link to, and what Git and your tracker say right now.
108
+ A pack never grows past its budget. A model gets involved when you ask for
109
+ judgment, and never for work a lookup can do.
110
+
111
+ **Coming soon:** an Obsidian companion plugin that shows the same pack beside
112
+ the note you're reading, with the reason each item is there. It isn't
113
+ published yet, so there's nothing to install today. This is what it looks
114
+ like:
115
+
116
+ <p align="center">
117
+ <img src="https://raw.githubusercontent.com/BezaCore-Labs/never4ga/main/docs/assets/obsidian.png" alt="Obsidian with the Never4gA Companion's context panel beside a decision note: scope, budget, items with their reasons, and Git signals. It notes that no LLM stage ran." width="100%">
118
+ </p>
119
+
120
+ ## Quick start
121
+
122
+ ```bash
123
+ uv tool install never4ga
124
+ export NEVER4GA_VAULT=~/notes
125
+ ```
126
+
127
+ [uv](https://docs.astral.sh/uv/) installs the Python version Never4gA needs if you
128
+ don't already have it.
129
+
130
+ ```bash
131
+ never4ga init # a new vault, or around the notes already there
132
+ never4ga index
133
+ never4ga search "what we decided about auth"
134
+ ```
135
+
136
+ Then connect a project and your agents:
137
+
138
+ ```bash
139
+ cd ~/code/my-project
140
+ never4ga workspace create "My Project" --type project
141
+ never4ga workspace map <workspace-id>
142
+ never4ga adapters sync --apply --repositories # skills, and this repository's pointer files
143
+ never4ga adapters mcp --apply # the MCP server
144
+ ```
145
+
146
+ `adapters sync --apply` on its own only updates your agents. `--repositories`
147
+ also writes a small pointer file into each mapped repository, ignored by Git, so
148
+ agents working there know to ask Never4gA for context.
149
+
150
+ Your next agent session in that repository starts with its context pack.
151
+
152
+ ## What it won't do
153
+
154
+ - **Call a model for you.** It has no API key and never meters your usage. You
155
+ bring the AI tools you already pay for.
156
+ - **Send your notes anywhere.** Everything runs on your machine, and the service
157
+ only listens on localhost.
158
+ - **Take over your files.** The index is disposable and rebuilt from your Markdown.
159
+ Your files are the only source of truth, and nothing is committed to Git for you.
160
+
161
+ <details>
162
+ <summary><b>Good to know</b></summary>
163
+
164
+ - **Context packs follow repositories.** A workspace is attached to a Git
165
+ repository, and a pack is built for the repository you're in. Notes that aren't
166
+ tied to one are fully searchable but don't get a pack yet.
167
+ - **Platforms.** Built and tested on Linux, where the background service runs
168
+ under systemd. On macOS and Windows, run `never4ga serve` in a terminal instead.
169
+ - **Four ways in.** The `never4ga` CLI, an MCP server (`never4ga-mcp`), a local
170
+ HTTP API, and an Obsidian plugin that isn't published yet. All four run the
171
+ same code.
172
+
173
+ </details>
174
+
175
+ ## Tell us where it's wrong
176
+
177
+ If something didn't make sense, or didn't work the way this page says it does,
178
+ [open an issue](https://github.com/BezaCore-Labs/never4ga/issues). That's the most
179
+ useful thing you can send.
180
+
181
+ GitHub is Never4gA's only public home. Issues and pull requests go there.
182
+ To report a security problem, see [SECURITY.md](https://github.com/BezaCore-Labs/never4ga/blob/main/SECURITY.md) rather than
183
+ opening an issue.
184
+
185
+ ## Working on Never4gA
186
+
187
+ The design is written down. [`docs/specs/`](https://github.com/BezaCore-Labs/never4ga/tree/main/docs/specs) holds the
188
+ specifications; start with
189
+ [`00-spec-index.md`](https://github.com/BezaCore-Labs/never4ga/blob/main/docs/specs/00-spec-index.md). They're generated from the
190
+ maintainer's notes, so propose a change in an issue rather than editing them.
191
+ [`AGENTS.md`](https://github.com/BezaCore-Labs/never4ga/blob/main/AGENTS.md) is the contract for AI agents working in this
192
+ repository, and a fair summary of the rules for people too.
193
+
194
+ ```bash
195
+ uv venv --python 3.14 .venv
196
+ VIRTUAL_ENV=.venv uv pip install -e '.[dev]'
197
+ .venv/bin/ruff check . && .venv/bin/ruff format --check . && .venv/bin/mypy && .venv/bin/pytest
198
+ ```
199
+
200
+ That last line is the gate, and every pull request runs it.
201
+
202
+ ## License
203
+
204
+ [Apache License 2.0](https://github.com/BezaCore-Labs/never4ga/blob/main/LICENSE). Never4gA, by [BezaCore Labs](https://github.com/BezaCore-Labs).
@@ -0,0 +1,170 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/BezaCore-Labs/never4ga/main/docs/assets/banner.svg" alt="Never4gA, by BezaCore Labs: the right context for every AI session, assembled without spending a token" width="100%">
3
+ </p>
4
+
5
+ <p align="center">
6
+ <a href="https://github.com/BezaCore-Labs/never4ga/actions/workflows/gate.yml"><img src="https://github.com/BezaCore-Labs/never4ga/actions/workflows/gate.yml/badge.svg" alt="gate"></a>
7
+ <a href="https://github.com/BezaCore-Labs/never4ga/blob/main/LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-483BBA" alt="Apache-2.0"></a>
8
+ </p>
9
+
10
+ Never4gA, short for *never forget again*, is memory for you and every AI agent you
11
+ work with. It keeps your notes, decisions and project history as plain Markdown on
12
+ your machine, and hands each agent session exactly the part it needs before the
13
+ session starts.
14
+
15
+ > **Early days.** This is version 0.1, in daily use by the person who built it
16
+ > and new to everyone else. Expect rough edges and interfaces that still move,
17
+ > and [tell us](#tell-us-where-its-wrong) when you hit one.
18
+
19
+ **It does that without a model.** Finding the right context is lookups, queries and
20
+ file reads, so it costs no tokens, takes seconds, and gives the same answer every
21
+ time. Your agent spends its budget on the work, not on searching for what it should
22
+ already know.
23
+
24
+ <p align="center">
25
+ <img src="https://raw.githubusercontent.com/BezaCore-Labs/never4ga/main/docs/assets/demo.svg" alt="A terminal: never4ga init over a folder of notes, index, search, then a context pack for a repository" width="100%">
26
+ </p>
27
+
28
+ ## Why it's built this way
29
+
30
+ Most agent memory asks a model to decide what's relevant, or lets the agent go
31
+ looking with its own tool calls. Both spend tokens and turns before any work
32
+ happens. Never4gA does that part first, mechanically:
33
+
34
+ - **Fewer tokens.** In the vault it was built in, 2,153 files and about 3 million
35
+ tokens of notes, a session starts with a pack of about 10,000 tokens. That's
36
+ what the agent reads. Nothing else is loaded.
37
+ - **Faster starts.** That pack is assembled in about four seconds, including live
38
+ Git and tracker state, with zero model calls.
39
+ - **You can see why.** Every item in a pack names the reason it was included. The
40
+ same question gets the same pack.
41
+
42
+ ## What it does
43
+
44
+ | | |
45
+ |---|---|
46
+ | **Remembers across sessions** | Each session opens with what the project is, the rules it follows, what was decided, and what the last session left open. |
47
+ | **Remembers across tools** | Claude Code, Codex, Antigravity and any MCP client read the same memory. Switch tools and nothing is lost. |
48
+ | **Writes back what happened** | Sessions record progress and decisions as dated logs, so the next one picks up where this one stopped. |
49
+ | **Keeps your notes yours** | Everything is Markdown in a normal Obsidian vault. Uninstall Never4gA and your notes are exactly as they were. |
50
+ | **Starts from the notes you have** | Point it at an existing folder. Your files stay where they are, and your notes are searchable on the first run. |
51
+ | **Brings in your tracker** | Open work items from OpenProject join the pack, and a session can update them. |
52
+
53
+ ## How it works
54
+
55
+ ```mermaid
56
+ flowchart LR
57
+ V[("Your Markdown<br/>vault")] --> I["Local index"]
58
+ subgraph M["Found by lookup, not by a model"]
59
+ direction TB
60
+ S1["Where you are<br/>repo → workspace"] --> S2["Types and metadata"]
61
+ S2 --> S3["Full-text search"]
62
+ S3 --> S4["Links and relations"]
63
+ S4 --> S5["Git and tracker state"]
64
+ end
65
+ I --> M
66
+ M --> P["Context pack<br/>every item says why"]
67
+ P --> A["Claude Code · Codex<br/>Antigravity · MCP"]
68
+ A -. "what the session did" .-> V
69
+ ```
70
+
71
+ A pack is built in stages, and each stage is a query: which workspace this
72
+ repository belongs to, which documents that workspace holds, what full-text search
73
+ finds, what those documents link to, and what Git and your tracker say right now.
74
+ A pack never grows past its budget. A model gets involved when you ask for
75
+ judgment, and never for work a lookup can do.
76
+
77
+ **Coming soon:** an Obsidian companion plugin that shows the same pack beside
78
+ the note you're reading, with the reason each item is there. It isn't
79
+ published yet, so there's nothing to install today. This is what it looks
80
+ like:
81
+
82
+ <p align="center">
83
+ <img src="https://raw.githubusercontent.com/BezaCore-Labs/never4ga/main/docs/assets/obsidian.png" alt="Obsidian with the Never4gA Companion's context panel beside a decision note: scope, budget, items with their reasons, and Git signals. It notes that no LLM stage ran." width="100%">
84
+ </p>
85
+
86
+ ## Quick start
87
+
88
+ ```bash
89
+ uv tool install never4ga
90
+ export NEVER4GA_VAULT=~/notes
91
+ ```
92
+
93
+ [uv](https://docs.astral.sh/uv/) installs the Python version Never4gA needs if you
94
+ don't already have it.
95
+
96
+ ```bash
97
+ never4ga init # a new vault, or around the notes already there
98
+ never4ga index
99
+ never4ga search "what we decided about auth"
100
+ ```
101
+
102
+ Then connect a project and your agents:
103
+
104
+ ```bash
105
+ cd ~/code/my-project
106
+ never4ga workspace create "My Project" --type project
107
+ never4ga workspace map <workspace-id>
108
+ never4ga adapters sync --apply --repositories # skills, and this repository's pointer files
109
+ never4ga adapters mcp --apply # the MCP server
110
+ ```
111
+
112
+ `adapters sync --apply` on its own only updates your agents. `--repositories`
113
+ also writes a small pointer file into each mapped repository, ignored by Git, so
114
+ agents working there know to ask Never4gA for context.
115
+
116
+ Your next agent session in that repository starts with its context pack.
117
+
118
+ ## What it won't do
119
+
120
+ - **Call a model for you.** It has no API key and never meters your usage. You
121
+ bring the AI tools you already pay for.
122
+ - **Send your notes anywhere.** Everything runs on your machine, and the service
123
+ only listens on localhost.
124
+ - **Take over your files.** The index is disposable and rebuilt from your Markdown.
125
+ Your files are the only source of truth, and nothing is committed to Git for you.
126
+
127
+ <details>
128
+ <summary><b>Good to know</b></summary>
129
+
130
+ - **Context packs follow repositories.** A workspace is attached to a Git
131
+ repository, and a pack is built for the repository you're in. Notes that aren't
132
+ tied to one are fully searchable but don't get a pack yet.
133
+ - **Platforms.** Built and tested on Linux, where the background service runs
134
+ under systemd. On macOS and Windows, run `never4ga serve` in a terminal instead.
135
+ - **Four ways in.** The `never4ga` CLI, an MCP server (`never4ga-mcp`), a local
136
+ HTTP API, and an Obsidian plugin that isn't published yet. All four run the
137
+ same code.
138
+
139
+ </details>
140
+
141
+ ## Tell us where it's wrong
142
+
143
+ If something didn't make sense, or didn't work the way this page says it does,
144
+ [open an issue](https://github.com/BezaCore-Labs/never4ga/issues). That's the most
145
+ useful thing you can send.
146
+
147
+ GitHub is Never4gA's only public home. Issues and pull requests go there.
148
+ To report a security problem, see [SECURITY.md](https://github.com/BezaCore-Labs/never4ga/blob/main/SECURITY.md) rather than
149
+ opening an issue.
150
+
151
+ ## Working on Never4gA
152
+
153
+ The design is written down. [`docs/specs/`](https://github.com/BezaCore-Labs/never4ga/tree/main/docs/specs) holds the
154
+ specifications; start with
155
+ [`00-spec-index.md`](https://github.com/BezaCore-Labs/never4ga/blob/main/docs/specs/00-spec-index.md). They're generated from the
156
+ maintainer's notes, so propose a change in an issue rather than editing them.
157
+ [`AGENTS.md`](https://github.com/BezaCore-Labs/never4ga/blob/main/AGENTS.md) is the contract for AI agents working in this
158
+ repository, and a fair summary of the rules for people too.
159
+
160
+ ```bash
161
+ uv venv --python 3.14 .venv
162
+ VIRTUAL_ENV=.venv uv pip install -e '.[dev]'
163
+ .venv/bin/ruff check . && .venv/bin/ruff format --check . && .venv/bin/mypy && .venv/bin/pytest
164
+ ```
165
+
166
+ That last line is the gate, and every pull request runs it.
167
+
168
+ ## License
169
+
170
+ [Apache License 2.0](https://github.com/BezaCore-Labs/never4ga/blob/main/LICENSE). Never4gA, by [BezaCore Labs](https://github.com/BezaCore-Labs).
@@ -0,0 +1,15 @@
1
+ # Security
2
+
3
+ Never4gA runs on your machine. Its service listens on localhost only, keeps
4
+ credentials outside the vault, and sends your notes nowhere. If you find a way
5
+ around any of that, or anything else that puts a user's notes or credentials
6
+ at risk, please report it privately.
7
+
8
+ **Report a vulnerability** through GitHub's private reporting: the *Security*
9
+ tab of this repository, then *Report a vulnerability*. Please don't open a
10
+ public issue for it.
11
+
12
+ You'll get an answer within a week. This is a small project maintained by one
13
+ person, so a fix may take longer than that, and you'll be told how it's going.
14
+
15
+ Only the latest commit on `main` is supported.
@@ -0,0 +1,142 @@
1
+ [build-system]
2
+ requires = ["hatchling>=1.27"]
3
+ build-backend = "hatchling.build"
4
+
5
+ [project]
6
+ name = "never4ga"
7
+ version = "0.1.0"
8
+ description = "Markdown-first, local-first personal knowledge, context, memory, and agent-support system"
9
+ readme = "README.md"
10
+ requires-python = ">=3.14"
11
+ license = "Apache-2.0"
12
+ license-files = ["LICENSE"]
13
+ authors = [{ name = "Joseph Soper", email = "joseph.soper.dev@gmail.com" }]
14
+ keywords = [
15
+ "markdown",
16
+ "obsidian",
17
+ "knowledge-management",
18
+ "local-first",
19
+ "context-engineering",
20
+ "mcp",
21
+ "ai-agents",
22
+ ]
23
+ classifiers = [
24
+ "Development Status :: 3 - Alpha",
25
+ "Environment :: Console",
26
+ "Intended Audience :: Developers",
27
+ "Operating System :: POSIX :: Linux",
28
+ "Programming Language :: Python :: 3",
29
+ "Programming Language :: Python :: 3 :: Only",
30
+ "Programming Language :: Python :: 3.14",
31
+ "Topic :: Text Processing :: Markup :: Markdown",
32
+ "Topic :: Software Development",
33
+ ]
34
+
35
+ # Every runtime dependency is a recorded decision (AGENTS.md, "Dependencies").
36
+ #
37
+ # docs/specs/core/05-runtime-architecture.md section 4 lists the vetted
38
+ # candidate set (fastapi, uvicorn, pydantic, httpx, ruamel.yaml, markdown-it-py,
39
+ # watchdog, platformdirs, mcp). Being vetted is permission to consider a package,
40
+ # not to install it: none is pulled in until the code's tests genuinely require
41
+ # it.
42
+ #
43
+ # ruamel.yaml Round-trip YAML frontmatter: preserves key order, comments
44
+ # and quoting style, and implements YAML 1.2 so unquoted
45
+ # timestamps and `no`/`on`/`off` are not silently retyped
46
+ # (core/02 sections 7.4 and 31). Confined to
47
+ # never4ga/adapters/filesystem/.
48
+ # fastapi The loopback HTTP API of core/05 section 12. pydantic is
49
+ # uvicorn declared even though fastapi installs
50
+ # pydantic it, because never4ga/api imports it: declaring what you import
51
+ # keeps this list a description of the code rather than of a
52
+ # resolver's output. All three are confined to never4ga/api and
53
+ # never4ga/service and may not appear in services/ or below.
54
+ # watchdog Filesystem events as hints; the kernel interfaces exist but
55
+ # the standard library exposes none of them. Reconciliation, not
56
+ # the watcher, is the guarantee.
57
+ # httpx One HTTP client for the CLI talking to the local service
58
+ # and for OpenProject, so there is one client rather than two.
59
+ dependencies = [
60
+ "ruamel.yaml>=0.18",
61
+ "fastapi>=0.115",
62
+ "uvicorn>=0.34",
63
+ "pydantic>=2.11",
64
+ "watchdog>=6.0",
65
+ "httpx>=0.28",
66
+ ]
67
+
68
+ # The two interfaces a person or a client actually starts. The API is not here:
69
+ # it is not a process anybody launches -- the daemon is, and the daemon is
70
+ # `never4ga serve`. Pinned by test_milestone_boundary.py.
71
+ [project.urls]
72
+ Homepage = "https://github.com/BezaCore-Labs/never4ga"
73
+ Repository = "https://github.com/BezaCore-Labs/never4ga"
74
+ Issues = "https://github.com/BezaCore-Labs/never4ga/issues"
75
+ Changelog = "https://github.com/BezaCore-Labs/never4ga/releases"
76
+
77
+ [project.scripts]
78
+ never4ga = "never4ga.cli:main"
79
+ never4ga-mcp = "never4ga.mcp.__main__:main"
80
+
81
+ [project.optional-dependencies]
82
+ dev = [
83
+ "pytest>=8.0",
84
+ "mypy>=1.14",
85
+ "ruff>=0.9",
86
+ ]
87
+
88
+ [tool.hatch.build.targets.wheel]
89
+ packages = ["src/never4ga"]
90
+
91
+ # The source distribution names what it ships. Otherwise it takes every file
92
+ # this repository's .gitignore does not exclude, including one kept out of Git
93
+ # only by a machine's own ignore rules. tests/architecture/test_packaging.py
94
+ # holds every entry to a tracked path.
95
+ [tool.hatch.build.targets.sdist]
96
+ only-include = ["src/never4ga", "README.md", "LICENSE", "SECURITY.md", "pyproject.toml"]
97
+
98
+ [tool.pytest.ini_options]
99
+ minversion = "8.0"
100
+ testpaths = ["tests"]
101
+ pythonpath = ["src", "."]
102
+ addopts = "-ra --strict-markers --strict-config"
103
+ markers = [
104
+ "contract: reusable port contract suite, run against every implementation",
105
+ "architecture: spec-compliance / architectural-invariant test",
106
+ "live: reads a real external system; opt-in, never run in CI",
107
+ "live_write: CHANGES a real external system; opt-in, never run in CI, and only\n ever against the scratch project named by NEVER4GA_LIVE_OPENPROJECT_SCRATCH",
108
+ "eval_vault: measures retrieval over a real personal vault; opt-in, never run in\n CI, and read-only. The fixture corpus is the gate; this is the measurement",
109
+ ]
110
+
111
+ [tool.mypy]
112
+ python_version = "3.14"
113
+ files = ["src", "tests"]
114
+ strict = true
115
+ warn_unreachable = true
116
+ enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"]
117
+
118
+ [tool.ruff]
119
+ line-length = 100
120
+ target-version = "py314"
121
+ src = ["src", "tests"]
122
+
123
+ [tool.ruff.lint]
124
+ select = [
125
+ "E", "W", # pycodestyle
126
+ "F", # pyflakes
127
+ "I", # isort
128
+ "N", # pep8-naming
129
+ "UP", # pyupgrade
130
+ "B", # bugbear
131
+ "A", # builtins shadowing
132
+ "C4", # comprehensions
133
+ "SIM", # simplify
134
+ "TID", # tidy imports
135
+ "RUF", # ruff-specific
136
+ ]
137
+
138
+ [tool.ruff.lint.per-file-ignores]
139
+ "tests/**" = ["N801"] # contract suites are mixin classes, not Test* classes
140
+
141
+ [tool.ruff.lint.flake8-tidy-imports]
142
+ ban-relative-imports = "all"