aelsha-repolantern 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. aelsha_repolantern-1.0.0/LICENSE +202 -0
  2. aelsha_repolantern-1.0.0/NOTICE +24 -0
  3. aelsha_repolantern-1.0.0/PKG-INFO +112 -0
  4. aelsha_repolantern-1.0.0/PYPI.md +49 -0
  5. aelsha_repolantern-1.0.0/README.md +181 -0
  6. aelsha_repolantern-1.0.0/aelsha_repolantern.egg-info/PKG-INFO +112 -0
  7. aelsha_repolantern-1.0.0/aelsha_repolantern.egg-info/SOURCES.txt +178 -0
  8. aelsha_repolantern-1.0.0/aelsha_repolantern.egg-info/dependency_links.txt +1 -0
  9. aelsha_repolantern-1.0.0/aelsha_repolantern.egg-info/entry_points.txt +2 -0
  10. aelsha_repolantern-1.0.0/aelsha_repolantern.egg-info/requires.txt +41 -0
  11. aelsha_repolantern-1.0.0/aelsha_repolantern.egg-info/top_level.txt +1 -0
  12. aelsha_repolantern-1.0.0/pyproject.toml +57 -0
  13. aelsha_repolantern-1.0.0/repolantern/__init__.py +9 -0
  14. aelsha_repolantern-1.0.0/repolantern/agents/__init__.py +1 -0
  15. aelsha_repolantern-1.0.0/repolantern/agents/base.py +71 -0
  16. aelsha_repolantern-1.0.0/repolantern/agents/builtin.py +3 -0
  17. aelsha_repolantern-1.0.0/repolantern/agents/research.py +171 -0
  18. aelsha_repolantern-1.0.0/repolantern/agents/versions.py +123 -0
  19. aelsha_repolantern-1.0.0/repolantern/api/__init__.py +0 -0
  20. aelsha_repolantern-1.0.0/repolantern/api/a2a.py +191 -0
  21. aelsha_repolantern-1.0.0/repolantern/api/admin.py +465 -0
  22. aelsha_repolantern-1.0.0/repolantern/api/admin_query.py +390 -0
  23. aelsha_repolantern-1.0.0/repolantern/api/budget.py +99 -0
  24. aelsha_repolantern-1.0.0/repolantern/api/consent.py +59 -0
  25. aelsha_repolantern-1.0.0/repolantern/api/deps.py +193 -0
  26. aelsha_repolantern-1.0.0/repolantern/api/gate.py +101 -0
  27. aelsha_repolantern-1.0.0/repolantern/api/jobs.py +696 -0
  28. aelsha_repolantern-1.0.0/repolantern/api/leads.py +90 -0
  29. aelsha_repolantern-1.0.0/repolantern/api/marketing.py +85 -0
  30. aelsha_repolantern-1.0.0/repolantern/api/mcp.py +81 -0
  31. aelsha_repolantern-1.0.0/repolantern/api/meta.py +336 -0
  32. aelsha_repolantern-1.0.0/repolantern/api/schemas.py +172 -0
  33. aelsha_repolantern-1.0.0/repolantern/api/tokens.py +113 -0
  34. aelsha_repolantern-1.0.0/repolantern/boot.py +467 -0
  35. aelsha_repolantern-1.0.0/repolantern/business/__init__.py +0 -0
  36. aelsha_repolantern-1.0.0/repolantern/business/offers.py +152 -0
  37. aelsha_repolantern-1.0.0/repolantern/business/offers.yaml +47 -0
  38. aelsha_repolantern-1.0.0/repolantern/cli.py +293 -0
  39. aelsha_repolantern-1.0.0/repolantern/config.py +217 -0
  40. aelsha_repolantern-1.0.0/repolantern/db/__init__.py +0 -0
  41. aelsha_repolantern-1.0.0/repolantern/db/audit.py +144 -0
  42. aelsha_repolantern-1.0.0/repolantern/db/chunks.py +70 -0
  43. aelsha_repolantern-1.0.0/repolantern/db/lookup_cache.py +20 -0
  44. aelsha_repolantern-1.0.0/repolantern/db/retention.py +168 -0
  45. aelsha_repolantern-1.0.0/repolantern/db/schema.sql +369 -0
  46. aelsha_repolantern-1.0.0/repolantern/db/store.py +106 -0
  47. aelsha_repolantern-1.0.0/repolantern/evals/__init__.py +3 -0
  48. aelsha_repolantern-1.0.0/repolantern/evals/fixtures/clsx.json +18 -0
  49. aelsha_repolantern-1.0.0/repolantern/evals/fixtures/hello-world.json +17 -0
  50. aelsha_repolantern-1.0.0/repolantern/evals/fixtures/is-odd.json +13 -0
  51. aelsha_repolantern-1.0.0/repolantern/evals/fixtures/itsdangerous.json +30 -0
  52. aelsha_repolantern-1.0.0/repolantern/evals/fixtures/quote.json +17 -0
  53. aelsha_repolantern-1.0.0/repolantern/evals/golden/clsx.gpt-6-luna.beginner.md +444 -0
  54. aelsha_repolantern-1.0.0/repolantern/evals/golden/clsx.gpt-6-luna.senior.md +380 -0
  55. aelsha_repolantern-1.0.0/repolantern/evals/golden/hello-world.gemini-3.8-flash.beginner.md +194 -0
  56. aelsha_repolantern-1.0.0/repolantern/evals/golden/hello-world.gpt-6-luna.beginner.md +176 -0
  57. aelsha_repolantern-1.0.0/repolantern/evals/golden/is-odd.gemini-3.8-flash.beginner.md +297 -0
  58. aelsha_repolantern-1.0.0/repolantern/evals/golden/itsdangerous.gemini-3.5-flash-lite.beginner.md +393 -0
  59. aelsha_repolantern-1.0.0/repolantern/evals/golden/itsdangerous.gemini-3.8-flash.beginner.md +347 -0
  60. aelsha_repolantern-1.0.0/repolantern/evals/golden/itsdangerous.gpt-6-luna.architect.md +387 -0
  61. aelsha_repolantern-1.0.0/repolantern/evals/golden/itsdangerous.gpt-6-luna.beginner.md +466 -0
  62. aelsha_repolantern-1.0.0/repolantern/evals/golden/itsdangerous.gpt-6-luna.senior.md +397 -0
  63. aelsha_repolantern-1.0.0/repolantern/evals/golden/quote.gpt-6-luna.beginner.md +343 -0
  64. aelsha_repolantern-1.0.0/repolantern/evals/golden/quote.gpt-6-luna.senior.md +314 -0
  65. aelsha_repolantern-1.0.0/repolantern/evals/heldout.py +350 -0
  66. aelsha_repolantern-1.0.0/repolantern/evals/heldout2.py +456 -0
  67. aelsha_repolantern-1.0.0/repolantern/evals/history.jsonl +37 -0
  68. aelsha_repolantern-1.0.0/repolantern/evals/lab.py +117 -0
  69. aelsha_repolantern-1.0.0/repolantern/evals/live_injection.json +15 -0
  70. aelsha_repolantern-1.0.0/repolantern/evals/planted.py +68 -0
  71. aelsha_repolantern-1.0.0/repolantern/evals/scorecard.py +165 -0
  72. aelsha_repolantern-1.0.0/repolantern/evals/snapshots/clsx.bundle +0 -0
  73. aelsha_repolantern-1.0.0/repolantern/evals/snapshots/hello-world.bundle +0 -0
  74. aelsha_repolantern-1.0.0/repolantern/evals/snapshots/is-odd.bundle +0 -0
  75. aelsha_repolantern-1.0.0/repolantern/evals/snapshots/itsdangerous.bundle +0 -0
  76. aelsha_repolantern-1.0.0/repolantern/evals/snapshots/quote.bundle +0 -0
  77. aelsha_repolantern-1.0.0/repolantern/evals/snapshots.py +79 -0
  78. aelsha_repolantern-1.0.0/repolantern/evals/thresholds.json +11 -0
  79. aelsha_repolantern-1.0.0/repolantern/git/__init__.py +0 -0
  80. aelsha_repolantern-1.0.0/repolantern/git/credentials.py +102 -0
  81. aelsha_repolantern-1.0.0/repolantern/git/probe.py +65 -0
  82. aelsha_repolantern-1.0.0/repolantern/harness/__init__.py +0 -0
  83. aelsha_repolantern-1.0.0/repolantern/harness/deferred.py +127 -0
  84. aelsha_repolantern-1.0.0/repolantern/harness/events.py +68 -0
  85. aelsha_repolantern-1.0.0/repolantern/harness/graph.py +248 -0
  86. aelsha_repolantern-1.0.0/repolantern/harness/keepalive.py +100 -0
  87. aelsha_repolantern-1.0.0/repolantern/harness/reports.py +131 -0
  88. aelsha_repolantern-1.0.0/repolantern/harness/runner.py +610 -0
  89. aelsha_repolantern-1.0.0/repolantern/ingest/__init__.py +0 -0
  90. aelsha_repolantern-1.0.0/repolantern/ingest/chunking.py +133 -0
  91. aelsha_repolantern-1.0.0/repolantern/ingest/clone.py +274 -0
  92. aelsha_repolantern-1.0.0/repolantern/ingest/filters.py +49 -0
  93. aelsha_repolantern-1.0.0/repolantern/ingest/injection.py +77 -0
  94. aelsha_repolantern-1.0.0/repolantern/ingest/inventory.py +168 -0
  95. aelsha_repolantern-1.0.0/repolantern/ingest/secrets.py +147 -0
  96. aelsha_repolantern-1.0.0/repolantern/ingest/symbols.py +300 -0
  97. aelsha_repolantern-1.0.0/repolantern/llm/__init__.py +0 -0
  98. aelsha_repolantern-1.0.0/repolantern/llm/budget.py +24 -0
  99. aelsha_repolantern-1.0.0/repolantern/llm/catalogue.py +133 -0
  100. aelsha_repolantern-1.0.0/repolantern/llm/client.py +698 -0
  101. aelsha_repolantern-1.0.0/repolantern/llm/errors.py +363 -0
  102. aelsha_repolantern-1.0.0/repolantern/llm/fake.py +143 -0
  103. aelsha_repolantern-1.0.0/repolantern/llm/generation.py +161 -0
  104. aelsha_repolantern-1.0.0/repolantern/llm/jsonparse.py +59 -0
  105. aelsha_repolantern-1.0.0/repolantern/llm/model_listing.py +293 -0
  106. aelsha_repolantern-1.0.0/repolantern/llm/openrouter.py +176 -0
  107. aelsha_repolantern-1.0.0/repolantern/llm/price_catalogue.json +1 -0
  108. aelsha_repolantern-1.0.0/repolantern/llm/prices.json +55 -0
  109. aelsha_repolantern-1.0.0/repolantern/llm/pricing.py +237 -0
  110. aelsha_repolantern-1.0.0/repolantern/llm/providers.py +489 -0
  111. aelsha_repolantern-1.0.0/repolantern/llm/quota.py +273 -0
  112. aelsha_repolantern-1.0.0/repolantern/llm/quota_presets.json +31 -0
  113. aelsha_repolantern-1.0.0/repolantern/llm/registry.py +49 -0
  114. aelsha_repolantern-1.0.0/repolantern/main.py +322 -0
  115. aelsha_repolantern-1.0.0/repolantern/observability/__init__.py +1 -0
  116. aelsha_repolantern-1.0.0/repolantern/observability/cloud_run_auth.py +56 -0
  117. aelsha_repolantern-1.0.0/repolantern/observability/ledger_trace.py +64 -0
  118. aelsha_repolantern-1.0.0/repolantern/observability/live.py +75 -0
  119. aelsha_repolantern-1.0.0/repolantern/observability/otel.py +211 -0
  120. aelsha_repolantern-1.0.0/repolantern/observability/spans.py +46 -0
  121. aelsha_repolantern-1.0.0/repolantern/observability/wake.py +81 -0
  122. aelsha_repolantern-1.0.0/repolantern/pipeline/__init__.py +0 -0
  123. aelsha_repolantern-1.0.0/repolantern/pipeline/ask.py +74 -0
  124. aelsha_repolantern-1.0.0/repolantern/pipeline/assessment.py +471 -0
  125. aelsha_repolantern-1.0.0/repolantern/pipeline/citations.py +152 -0
  126. aelsha_repolantern-1.0.0/repolantern/pipeline/context.py +223 -0
  127. aelsha_repolantern-1.0.0/repolantern/pipeline/deterministic.py +283 -0
  128. aelsha_repolantern-1.0.0/repolantern/pipeline/evaluate.py +591 -0
  129. aelsha_repolantern-1.0.0/repolantern/pipeline/facts.py +299 -0
  130. aelsha_repolantern-1.0.0/repolantern/pipeline/licences.py +97 -0
  131. aelsha_repolantern-1.0.0/repolantern/pipeline/osv.py +71 -0
  132. aelsha_repolantern-1.0.0/repolantern/pipeline/prompts.py +260 -0
  133. aelsha_repolantern-1.0.0/repolantern/pipeline/section_context.py +159 -0
  134. aelsha_repolantern-1.0.0/repolantern/pipeline/skills.py +142 -0
  135. aelsha_repolantern-1.0.0/repolantern/pipeline/stages.py +1142 -0
  136. aelsha_repolantern-1.0.0/repolantern/registry.py +51 -0
  137. aelsha_repolantern-1.0.0/repolantern/render/__init__.py +0 -0
  138. aelsha_repolantern-1.0.0/repolantern/render/diagrams.py +147 -0
  139. aelsha_repolantern-1.0.0/repolantern/render/docx_render.py +520 -0
  140. aelsha_repolantern-1.0.0/repolantern/render/export.py +43 -0
  141. aelsha_repolantern-1.0.0/repolantern/render/export_skill.py +97 -0
  142. aelsha_repolantern-1.0.0/repolantern/render/export_skills/docx.yaml +16 -0
  143. aelsha_repolantern-1.0.0/repolantern/render/export_skills/drawio.yaml +9 -0
  144. aelsha_repolantern-1.0.0/repolantern/render/export_skills/html.yaml +12 -0
  145. aelsha_repolantern-1.0.0/repolantern/render/export_skills/md.yaml +12 -0
  146. aelsha_repolantern-1.0.0/repolantern/render/export_skills/pdf.yaml +17 -0
  147. aelsha_repolantern-1.0.0/repolantern/render/export_skills/pptx.yaml +39 -0
  148. aelsha_repolantern-1.0.0/repolantern/render/html.py +321 -0
  149. aelsha_repolantern-1.0.0/repolantern/render/ir.py +265 -0
  150. aelsha_repolantern-1.0.0/repolantern/render/markdown_export.py +30 -0
  151. aelsha_repolantern-1.0.0/repolantern/render/pdf.py +48 -0
  152. aelsha_repolantern-1.0.0/repolantern/render/pptx_render.py +588 -0
  153. aelsha_repolantern-1.0.0/repolantern/render/sources.py +62 -0
  154. aelsha_repolantern-1.0.0/repolantern/render/theme.py +128 -0
  155. aelsha_repolantern-1.0.0/repolantern/search/__init__.py +1 -0
  156. aelsha_repolantern-1.0.0/repolantern/search/base.py +93 -0
  157. aelsha_repolantern-1.0.0/repolantern/search/providers.py +3 -0
  158. aelsha_repolantern-1.0.0/repolantern/search/tavily.py +88 -0
  159. aelsha_repolantern-1.0.0/repolantern/security/__init__.py +0 -0
  160. aelsha_repolantern-1.0.0/repolantern/security/appcheck.py +65 -0
  161. aelsha_repolantern-1.0.0/repolantern/security/auth.py +106 -0
  162. aelsha_repolantern-1.0.0/repolantern/security/egress.py +136 -0
  163. aelsha_repolantern-1.0.0/repolantern/security/headers.py +211 -0
  164. aelsha_repolantern-1.0.0/repolantern/security/ratelimit.py +53 -0
  165. aelsha_repolantern-1.0.0/repolantern/security/redact.py +124 -0
  166. aelsha_repolantern-1.0.0/repolantern/security/subjects.py +84 -0
  167. aelsha_repolantern-1.0.0/repolantern/security/urls.py +185 -0
  168. aelsha_repolantern-1.0.0/repolantern/skills/__init__.py +0 -0
  169. aelsha_repolantern-1.0.0/repolantern/skills/architect/skill.yaml +90 -0
  170. aelsha_repolantern-1.0.0/repolantern/skills/beginner/skill.yaml +69 -0
  171. aelsha_repolantern-1.0.0/repolantern/skills/senior/skill.yaml +81 -0
  172. aelsha_repolantern-1.0.0/repolantern/storage/__init__.py +0 -0
  173. aelsha_repolantern-1.0.0/repolantern/storage/lease.py +196 -0
  174. aelsha_repolantern-1.0.0/repolantern/storage/objectstore.py +220 -0
  175. aelsha_repolantern-1.0.0/repolantern/tools/__init__.py +1 -0
  176. aelsha_repolantern-1.0.0/repolantern/tools/base.py +95 -0
  177. aelsha_repolantern-1.0.0/repolantern/tools/builtin.py +44 -0
  178. aelsha_repolantern-1.0.0/repolantern/tools/user.py +219 -0
  179. aelsha_repolantern-1.0.0/requirements.txt +51 -0
  180. aelsha_repolantern-1.0.0/setup.cfg +4 -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 2026 AELSHA INNOVATIONS OPC PRIVATE LIMITED
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,24 @@
1
+ AELSHA™ RepoLantern
2
+ Copyright 2026 AELSHA INNOVATIONS OPC PRIVATE LIMITED
3
+
4
+ This product includes model price data from LiteLLM's model_prices_and_context_window.json
5
+ (https://github.com/BerriAI/litellm), MIT License, Copyright (c) 2023 Berri AI.
6
+ It is used only as an unverified fallback for models without a verified price, and is labelled as such.
7
+
8
+ The offline eval data in repolantern/evals/snapshots/ (used by the release gate and the admin eval lab) holds
9
+ frozen copies of these public repositories, each with its own licence file inside the snapshot:
10
+ - lukeed/clsx (https://github.com/lukeed/clsx, commit 925494cf31): MIT License,
11
+ Copyright (c) Luke Edwards <luke.edwards05@gmail.com> (lukeed.com).
12
+ - jonschlinkert/is-odd (https://github.com/jonschlinkert/is-odd, commit a80ee0d831): MIT License,
13
+ Copyright (c) 2015-present, Jon Schlinkert.
14
+ - pallets/itsdangerous (https://github.com/pallets/itsdangerous, commit 672971d66a): BSD 3-Clause License,
15
+ Copyright 2011 Pallets.
16
+ - rsc/quote (https://github.com/rsc/quote, commit 5d9f230bcf): BSD 3-Clause License,
17
+ Copyright (c) 2009 The Go Authors. All rights reserved.
18
+ - octocat/Hello-World (https://github.com/octocat/Hello-World, commit 7fd1a60b01): no licence file; the repository
19
+ is GitHub's sample and its only file is a README containing the text "Hello World!".
20
+ The golden guides in repolantern/evals/golden/ were generated by RepoLantern from these repositories and quote
21
+ short excerpts of them.
22
+
23
+ AELSHA™, the AELSHA™ logo, AELSHA™ ASTRA and AELSHA™ RepoLantern are trademarks of
24
+ AELSHA INNOVATIONS OPC PRIVATE LIMITED and are not licensed under the Apache License (see TRADEMARKS.md).
@@ -0,0 +1,112 @@
1
+ Metadata-Version: 2.4
2
+ Name: aelsha-repolantern
3
+ Version: 1.0.0
4
+ Summary: AELSHA™ RepoLantern: turn any Git repository into clear documentation for beginners, senior engineers and architects, with your own LLM key.
5
+ Author: AELSHA INNOVATIONS OPC PRIVATE LIMITED
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://repolantern.aelsha.com
8
+ Project-URL: Documentation, https://repolantern.aelsha.com/docs
9
+ Keywords: documentation,llm,git,langgraph,fastapi,code-documentation,bring-your-own-key
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Intended Audience :: Developers
12
+ Classifier: Programming Language :: Python :: 3
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Framework :: FastAPI
15
+ Classifier: Topic :: Software Development :: Documentation
16
+ Classifier: Operating System :: OS Independent
17
+ Requires-Python: >=3.12
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ License-File: NOTICE
21
+ Requires-Dist: langchain==1.4.5
22
+ Requires-Dist: langchain-core==1.6.10
23
+ Requires-Dist: langchain-google-genai==4.4.2
24
+ Requires-Dist: langchain-anthropic==1.7.6
25
+ Requires-Dist: langchain-openai==1.7.2
26
+ Requires-Dist: langchain-text-splitters==1.1.3
27
+ Requires-Dist: langgraph==1.2.15
28
+ Requires-Dist: langgraph-checkpoint==4.3.0
29
+ Requires-Dist: langgraph-checkpoint-sqlite==3.1.2
30
+ Requires-Dist: aiosqlite==0.22.1
31
+ Requires-Dist: google-cloud-storage==3.17.0
32
+ Requires-Dist: fastapi==0.143.1
33
+ Requires-Dist: uvicorn[standard]==0.54.0
34
+ Requires-Dist: sse-starlette==3.5.0
35
+ Requires-Dist: pydantic==2.14.1
36
+ Requires-Dist: pydantic-settings==2.16.0
37
+ Requires-Dist: firebase-admin==7.7.0
38
+ Requires-Dist: google-auth==2.62.0
39
+ Requires-Dist: httpx==0.28.1
40
+ Requires-Dist: markdown-it-py==4.2.0
41
+ Requires-Dist: nh3==0.3.7
42
+ Requires-Dist: pyyaml==6.0.3
43
+ Requires-Dist: python-docx==1.2.0
44
+ Requires-Dist: python-pptx==1.0.2
45
+ Requires-Dist: weasyprint==70.0
46
+ Requires-Dist: pygments==2.21.0
47
+ Requires-Dist: lizard==1.24.1
48
+ Requires-Dist: pathspec==1.1.1
49
+ Requires-Dist: pillow==13.0.0
50
+ Requires-Dist: langchain-aws==1.8.2
51
+ Requires-Dist: boto3==1.43.114
52
+ Requires-Dist: botocore==1.43.114
53
+ Requires-Dist: mcp==2.3.0
54
+ Requires-Dist: a2a-sdk==1.2.2
55
+ Requires-Dist: opentelemetry-api==1.45.1
56
+ Requires-Dist: opentelemetry-sdk==1.45.1
57
+ Requires-Dist: opentelemetry-exporter-otlp-proto-http==1.45.1
58
+ Requires-Dist: starlette==1.8.0
59
+ Requires-Dist: anyio==4.15.1
60
+ Requires-Dist: httpcore==1.0.9
61
+ Requires-Dist: cryptography==50.0.2
62
+ Dynamic: license-file
63
+
64
+ # AELSHA™ RepoLantern
65
+
66
+ **Understand an unfamiliar codebase before you change it.** RepoLantern turns any Git repository into a grounded
67
+ guide for beginners, senior engineers or architects. Every guide includes architecture diagrams and citations to exact
68
+ lines, and every file and code name in it is checked against the code. It runs with your own AI model key; the key is
69
+ never stored.
70
+
71
+ This package is the command-line tool. It runs the same pipeline as the web app at
72
+ [repolantern.aelsha.com](https://repolantern.aelsha.com), on your own machine.
73
+
74
+ ## Install
75
+
76
+ You need Python 3.12 or newer, git 2.50.1 or newer, Graphviz (diagrams) and Pango (PDF export):
77
+
78
+ | System | Command |
79
+ |---|---|
80
+ | macOS | `brew install git graphviz pango pipx` |
81
+ | Debian or Ubuntu | `sudo apt-get install git graphviz libpango-1.0-0 libpangoft2-1.0-0 pipx` |
82
+ | Windows | Use WSL (Ubuntu) and follow the Debian line |
83
+
84
+ ```
85
+ pipx install aelsha-repolantern
86
+ repolantern --version
87
+ ```
88
+
89
+ ## Run
90
+
91
+ Put your key in an environment variable, never on the command line:
92
+
93
+ ```
94
+ export OPENAI_API_KEY=...
95
+ repolantern run https://github.com/octocat/Hello-World --provider openai --model gpt-6-luna --cap 0.50
96
+ ```
97
+
98
+ The run continues only if the estimate's upper end is within `--cap` (US dollars). Otherwise it stops before spending
99
+ anything. The guide, an assessment and a cost report are written to `./out`.
100
+
101
+ RepoLantern works with Google Gemini, Vertex AI, Anthropic Claude, OpenAI, AWS Bedrock, Microsoft Foundry and any
102
+ OpenAI-compatible service, including free models on OpenRouter at $0. If a model's limit runs out, the run pauses;
103
+ `repolantern resume <job-id>` continues later on the same or another model, without paying twice for finished work.
104
+
105
+ ## Learn more
106
+
107
+ - [Command-line guide](https://repolantern.aelsha.com/docs/cli): every provider, option and output
108
+ - [Set up your AI provider](https://repolantern.aelsha.com/setup)
109
+ - [How every guide is checked](https://repolantern.aelsha.com/evals) and [security](https://repolantern.aelsha.com/security)
110
+ - Security reports: [security@aelsha.com](mailto:security@aelsha.com)
111
+
112
+ Built with AELSHA™ ASTRA by AELSHA INNOVATIONS OPC PRIVATE LIMITED. Licensed under the Apache License 2.0.
@@ -0,0 +1,49 @@
1
+ # AELSHA™ RepoLantern
2
+
3
+ **Understand an unfamiliar codebase before you change it.** RepoLantern turns any Git repository into a grounded
4
+ guide for beginners, senior engineers or architects. Every guide includes architecture diagrams and citations to exact
5
+ lines, and every file and code name in it is checked against the code. It runs with your own AI model key; the key is
6
+ never stored.
7
+
8
+ This package is the command-line tool. It runs the same pipeline as the web app at
9
+ [repolantern.aelsha.com](https://repolantern.aelsha.com), on your own machine.
10
+
11
+ ## Install
12
+
13
+ You need Python 3.12 or newer, git 2.50.1 or newer, Graphviz (diagrams) and Pango (PDF export):
14
+
15
+ | System | Command |
16
+ |---|---|
17
+ | macOS | `brew install git graphviz pango pipx` |
18
+ | Debian or Ubuntu | `sudo apt-get install git graphviz libpango-1.0-0 libpangoft2-1.0-0 pipx` |
19
+ | Windows | Use WSL (Ubuntu) and follow the Debian line |
20
+
21
+ ```
22
+ pipx install aelsha-repolantern
23
+ repolantern --version
24
+ ```
25
+
26
+ ## Run
27
+
28
+ Put your key in an environment variable, never on the command line:
29
+
30
+ ```
31
+ export OPENAI_API_KEY=...
32
+ repolantern run https://github.com/octocat/Hello-World --provider openai --model gpt-6-luna --cap 0.50
33
+ ```
34
+
35
+ The run continues only if the estimate's upper end is within `--cap` (US dollars). Otherwise it stops before spending
36
+ anything. The guide, an assessment and a cost report are written to `./out`.
37
+
38
+ RepoLantern works with Google Gemini, Vertex AI, Anthropic Claude, OpenAI, AWS Bedrock, Microsoft Foundry and any
39
+ OpenAI-compatible service, including free models on OpenRouter at $0. If a model's limit runs out, the run pauses;
40
+ `repolantern resume <job-id>` continues later on the same or another model, without paying twice for finished work.
41
+
42
+ ## Learn more
43
+
44
+ - [Command-line guide](https://repolantern.aelsha.com/docs/cli): every provider, option and output
45
+ - [Set up your AI provider](https://repolantern.aelsha.com/setup)
46
+ - [How every guide is checked](https://repolantern.aelsha.com/evals) and [security](https://repolantern.aelsha.com/security)
47
+ - Security reports: [security@aelsha.com](mailto:security@aelsha.com)
48
+
49
+ Built with AELSHA™ ASTRA by AELSHA INNOVATIONS OPC PRIVATE LIMITED. Licensed under the Apache License 2.0.
@@ -0,0 +1,181 @@
1
+ [![CI](https://github.com/AELSHA-INNOVATIONS/aelsha-repolantern/actions/workflows/ci.yml/badge.svg)](https://github.com/AELSHA-INNOVATIONS/aelsha-repolantern/actions/workflows/ci.yml)
2
+ [![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/AELSHA-INNOVATIONS/aelsha-repolantern/badge)](https://securityscorecards.dev/viewer/?uri=github.com/AELSHA-INNOVATIONS/aelsha-repolantern)
3
+ [![License: Apache-2.0](https://img.shields.io/badge/License-Apache--2.0-blue.svg)](LICENSE)
4
+ [![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg)](https://www.python.org/downloads/)
5
+
6
+ # AELSHA™ RepoLantern
7
+
8
+ Turn any Git repository into clear documentation, using your own LLM key.
9
+
10
+ RepoLantern reads a repository, shows you the cost and the data that will leave your machine, and then writes
11
+ documentation for the audience you choose. It is free and public, and your API keys are never stored on our servers.
12
+
13
+ ## What it does
14
+
15
+ Point RepoLantern at a repository (public, or private with a scoped credential), pick a model provider and key,
16
+ review the estimated cost and what will be sent, and generate. You get guides for developers, senior engineers and
17
+ architects, plus an assessment of the repository's health and readiness.
18
+
19
+ ## Features
20
+
21
+ - **Three skills**: beginner, senior and architect guides from the same repository
22
+ - **Bring your own model**: Gemini, Vertex, Claude, OpenAI, Bedrock, Foundry or any OpenAI-compatible endpoint
23
+ - **Cost and data review** before anything is sent, with secrets redacted first
24
+ - **Exports** to Markdown, PDF, DOCX and PPTX, plus draw.io diagrams
25
+ - **Q&A** over the repository
26
+ - **Grounding checks**: every guide is checked against the code and scored. Invented file paths and names are
27
+ detected, citations are resolved to exact lines, text in the repository addressed to AI tools is flagged, and Q&A
28
+ answers get the same check. The checks were tested on real guides from three models with 77 planted mistakes
29
+ ([docs/evals.md](docs/evals.md))
30
+ - **Readiness checklist** (deterministic, free): CI, tests, packaging, health route, configuration, logging, pinned
31
+ dependencies, licence and credentials in code. For AI and agent apps it also covers tracing, evals, guardrails,
32
+ cost controls, human oversight and an indicative observability stage (1 to 4). Planned: OSV.dev vulnerabilities,
33
+ licence inventory, complexity hotspots and an AI opportunity map
34
+ - **Settings per model**: thinking level for reading and for writing, temperature and section length, adjusted to
35
+ what each model supports, even after a switch ([docs/guide.md](docs/guide.md#6-choosing-thinking-temperature-and-length))
36
+ - **Operator health view** from SQLite alone: golden signals, alerts, reader feedback, and job traces exportable as
37
+ OpenTelemetry spans
38
+ - **Erase** all your data with one call
39
+ - **Crash-resilient runs** that resume where they stopped
40
+ - **Quota handling**: set requests per minute and per day for your model (free-tier presets are included). When a
41
+ daily allowance runs out, the job pauses with nothing lost. You can continue on any model or provider (Gemini,
42
+ Vertex, OpenAI, Claude, Bedrock, Foundry) from the next unfinished piece, or add a fallback chain up front
43
+ - **Lower token use**: the repository is analysed once for every audience, results are remembered by content hash,
44
+ prompt caching is used where it was measured to help (OpenAI explicit breakpoints cut cost by 16% on one live run),
45
+ reasoning effort is set per stage, and a cost report shows cache hit rates ([docs/guide.md](docs/guide.md#4-keeping-costs-low))
46
+ - **Private repositories** on any Git host over HTTPS
47
+ - **Command-line interface** that runs the same pipeline locally
48
+
49
+ ## Architecture at a glance
50
+
51
+ | Layer | Technology | Version | Why this choice |
52
+ |---|---|---|---|
53
+ | Language | Python | 3.12 | Mature async support and the widest choice of LLM libraries |
54
+ | Web framework | FastAPI + Uvicorn + sse-starlette | 0.143.1 / 0.54.0 / 3.5.0 | Async-native, pydantic validation, simple SSE |
55
+ | Validation and settings | pydantic + pydantic-settings | 2.14.1 / 2.16.0 | Typed requests, `SecretStr` so keys never print |
56
+ | LLM abstraction | LangChain (`init_chat_model`) + provider packages | 1.4.5 (core 1.6.10); langchain-google-genai 4.4.2; langchain-anthropic 1.7.6; langchain-openai 1.7.2 | One interface for every provider, with no extra proxy |
57
+ | Orchestration | LangGraph + SQLite checkpointer | 1.2.15; checkpoint 4.3.0; checkpoint-sqlite 3.1.2 | Durable `Send` fan-out, `interrupt()` for cost approval, crash-resume |
58
+ | Text processing | langchain-text-splitters, Python `ast`, regex symbol extractors | 1.1.3 | Language-aware chunking; no native code downloaded at runtime |
59
+ | Database | SQLite (WAL, FTS5) + aiosqlite | stdlib / 0.22.1 | Zero cost, single file, full-text search built in |
60
+ | Replication | Litestream | 0.5.17 (pinned in the image) | Streams SQLite to GCS; restore on cold start |
61
+ | Object storage | google-cloud-storage | 3.17.0 | Lease (generation preconditions), docs, archive |
62
+ | Auth | Firebase Auth + firebase-admin | 7.7.0 | Free Google/GitHub sign-in; server-side token check |
63
+ | Outbound HTTP | httpx + httpcore (DNS-pinned backend) | 0.28.1 | SSRF-safe egress for user-supplied hosts |
64
+ | Markdown | markdown-it-py (raw HTML off) + nh3 | 4.2.0 / 0.3.7 | One safe parse for every renderer; allow-list sanitizing |
65
+ | PDF | WeasyPrint (pango) | 70.0 | Paged-media CSS: covers, running headers, TOC page numbers |
66
+ | Word | python-docx | 1.2.0 | Native styles, bookmarks, linked contents |
67
+ | PowerPoint | python-pptx | 1.0.2 | Structured decks with measured text fit |
68
+ | Diagrams | Graphviz `dot` (system) + Mermaid (in Markdown) + draw.io XML | Graphviz from the base image | Deterministic layout from validated JSON |
69
+ | Code highlighting | Pygments | 2.21.0 | Inline styles; no extra fetches |
70
+ | Images | Pillow | 13.0.0 | Logo sanitising, OG images, PNG measurement |
71
+ | Config files | PyYAML | 6.0.3 | Skill and offer definitions (safe_load only) |
72
+ | Frontend | React 19 + TypeScript + Vite (output in `static/public/app`) | 19.3.0 / 8.3.4 | Strict CSP and Trusted Types; no inline script or style |
73
+ | Testing | pytest, pytest-asyncio, Playwright (Python 1.64.0, web app 1.63.0), PyMuPDF, LibreOffice (dev only) | 9.1.1 / 1.4.0 / 1.64.0 and 1.63.0 / 1.28.2 | TDD, async, real browser e2e, visual export review |
74
+ | Static analysis | ruff, bandit, pip-audit (pinned in requirements-dev.txt) | 0.17.0 / 1.9.4 / 2.10.1 | Lint, security lint, dependency CVEs |
75
+ | Hosting | Cloud Run (request-based), Artifact Registry, Cloud Build | n/a | Scale to zero; free tier |
76
+ | Secrets | Cloud Run environment variables from a git-ignored `deploy.env` (no Secret Manager: zero cost) | n/a | Fingerprint key, state-signing key, trace headers |
77
+
78
+ See [docs/architecture.md](docs/architecture.md) for the full design.
79
+
80
+ ## Documentation map
81
+
82
+ | Document | What it is |
83
+ |---|---|
84
+ | [docs/README.md](docs/README.md) | Where to start and the reading order: documents first, then code |
85
+ | [docs/code-map.md](docs/code-map.md) | Every source file, what it does and the idea behind it |
86
+ | [docs/architecture.md](docs/architecture.md) | Design, decision log and traceability; the source of truth |
87
+ | [docs/spec.md](docs/spec.md) | Testable requirements; IDs such as `S-25.3` appear in test comments |
88
+ | [docs/evals.md](docs/evals.md) | How grounding and hallucination checks are measured and re-run |
89
+ | [docs/testing.md](docs/testing.md) | Test layers, rules (including no mocks) and the live-run log |
90
+ | [docs/pipelines.md](docs/pipelines.md) | Every pipeline file and every test suite: what runs where, configuration, commands and results |
91
+ | [docs/guide.md](docs/guide.md) | User guide: quotas, costs, thinking settings, deploying your own copy |
92
+ | [docs/ux-design.md](docs/ux-design.md) | Interface and interaction design |
93
+ | [docs/api.md](docs/api.md) | The HTTP API, job events, MCP and A2A; machine-readable contract in [docs/api/openapi.json](docs/api/openapi.json) |
94
+ | [docs/threat-model.md](docs/threat-model.md) | Assets, threats and the controls against them |
95
+ | [docs/infrastructure.md](docs/infrastructure.md) | Production components, the delivery pipeline and what is tested where |
96
+ | [SECURITY.md](SECURITY.md) | Supported versions and how to report a vulnerability |
97
+ | [docs/runbook.md](docs/runbook.md) | Operating the service and handling incidents |
98
+ | [docs/production.md](docs/production.md) | Production as deployed: setup, settings, operations and troubleshooting |
99
+ | [docs/study-guide.md](docs/study-guide.md) | Guided tour of the codebase for new engineers |
100
+ | [CONTRIBUTING.md](CONTRIBUTING.md) | Development setup, checks and pull request rules |
101
+ | [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) | Expected behaviour in project spaces |
102
+ | [SUPPORT.md](SUPPORT.md) | Where to ask questions and report bugs |
103
+ | [CHANGELOG.md](CHANGELOG.md) | Notable changes per version |
104
+ | [RELEASING.md](RELEASING.md) | How a version is cut and deployed |
105
+ | [GOVERNANCE.md](GOVERNANCE.md) | Maintainers, contacts and how decisions are made |
106
+ | [TRADEMARKS.md](TRADEMARKS.md) | Use of the AELSHA™ names and logo |
107
+ | [docs/dependency-licences.md](docs/dependency-licences.md) | Licences of every dependency |
108
+
109
+ ## Quick start
110
+
111
+ Install the command-line tool (available after the first PyPI release; until then use the from-source install below):
112
+
113
+ ```bash
114
+ pipx install aelsha-repolantern
115
+ ```
116
+
117
+ From source, for development and for running the web app locally. Everything below assumes the virtual environment
118
+ is active:
119
+
120
+ ```bash
121
+ python3.12 -m venv .venv
122
+ source .venv/bin/activate
123
+ pip install -r requirements-dev.txt
124
+ pip install -e . --no-deps
125
+ # system packages: brew install graphviz pango (or apt: graphviz libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz0b fonts-dejavu)
126
+ python -m pytest -q
127
+ ```
128
+
129
+ Document a repository from the command line (the key is read from the environment variable you name,
130
+ never from the command line):
131
+
132
+ ```bash
133
+ export RL_LIVE_GEMINI_KEY=... # your own key
134
+ repolantern run https://github.com/owner/repo --skills beginner --preset gemini_free --rpm 12
135
+ # paused on a quota? continue on another model or provider:
136
+ repolantern resume <job-id> --provider openai --model gpt-6-luna --fallback "" --key-env MY_OPENAI_KEY
137
+ ```
138
+
139
+ Run the web app locally (same origin as the API, the demo model, no keys needed):
140
+
141
+ ```bash
142
+ (cd frontend && npm ci && npm run build)
143
+ D="$HOME/.repolantern-dev" # keep the data outside ~/Documents: macOS sync services break SQLite's files there
144
+ RL_AUTH_MODE=dev RL_SERVE_STATIC=true RL_DB_PATH="$D/repolantern.db" RL_WORK_DIR="$D/work" \
145
+ RL_LOCAL_STORE_DIR="$D/objects" uvicorn repolantern.main:app_factory --factory --port 8000
146
+ # open http://127.0.0.1:8000/app/ ; for live reload while editing: (cd frontend && npm run dev) -> :5173
147
+ ```
148
+
149
+ Run `repolantern run --help` for providers, models, limits, cost caps and output options. What to do when a free
150
+ quota runs out is explained in [docs/guide.md](docs/guide.md#2-what-happens-when-my-free-quota-runs-out).
151
+ Testing is described in [docs/testing.md](docs/testing.md); contributions are welcome, see [CONTRIBUTING.md](CONTRIBUTING.md).
152
+
153
+ ## Deployment
154
+
155
+ `./deploy.sh --project YOUR_PROJECT --admin-emails you@example.com` (read the plan first with `--dry-run`):
156
+ Cloud Run behind Firebase Hosting, about 30 minutes. Step by step in [docs/guide.md](docs/guide.md#9-deploying-your-own-copy).
157
+
158
+ ## Testing and evals
159
+
160
+ `python -m pytest -q` runs everything offline; `scripts/eval_gate.py` is the quality gate CI and
161
+ `deploy.sh` run. The web app: `cd frontend && npx vitest run && npx playwright test` (a real browser against the real
162
+ server). The public site: edit `site/`, run `python scripts/build_site.py`. How every score is measured, recorded and re-run: [docs/evals.md](docs/evals.md) §10 and
163
+ [docs/testing.md](docs/testing.md).
164
+
165
+ ## Security
166
+
167
+ Repository code goes only to the model provider you choose. Dependency names go to OSV.dev for vulnerability
168
+ lookups (public repos, or private repos with your consent). Your API keys are never stored on our servers.
169
+
170
+ To report a vulnerability, email security@aelsha.com and please do not open a public issue.
171
+ See [SECURITY.md](SECURITY.md).
172
+
173
+ ## Licence
174
+
175
+ Licensed under the [Apache License 2.0](LICENSE). Copyright 2026 AELSHA INNOVATIONS OPC PRIVATE LIMITED.
176
+ The licence covers the code, not the AELSHA™ names and logo: see [TRADEMARKS.md](TRADEMARKS.md).
177
+
178
+ ## Made with RepoLantern by AELSHA™
179
+
180
+ RepoLantern is built and maintained by [AELSHA™](https://aelsha.com). If you want help with agentic AI, production
181
+ readiness or a private, self-hosted RepoLantern for your organisation, [get in touch](https://aelsha.com/contact).