nxdo 0.2.21__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.
- nxdo-0.2.21/CHANGELOG.md +397 -0
- nxdo-0.2.21/CONTRIBUTING.md +90 -0
- nxdo-0.2.21/LICENSE +201 -0
- nxdo-0.2.21/MANIFEST.in +6 -0
- nxdo-0.2.21/PKG-INFO +367 -0
- nxdo-0.2.21/README.md +329 -0
- nxdo-0.2.21/pyproject.toml +98 -0
- nxdo-0.2.21/setup.cfg +4 -0
- nxdo-0.2.21/src/lane/__init__.py +31 -0
- nxdo-0.2.21/src/lane/__main__.py +6 -0
- nxdo-0.2.21/src/lane/cli.py +380 -0
- nxdo-0.2.21/src/lane/config.py +44 -0
- nxdo-0.2.21/src/lane/git_reader.py +268 -0
- nxdo-0.2.21/src/lane/koru_context.py +283 -0
- nxdo-0.2.21/src/lane/llm_client.py +85 -0
- nxdo-0.2.21/src/lane/metrics/__init__.py +16 -0
- nxdo-0.2.21/src/lane/metrics/complexity.py +300 -0
- nxdo-0.2.21/src/lane/metrics/coupling.py +194 -0
- nxdo-0.2.21/src/lane/metrics/hotspots.py +270 -0
- nxdo-0.2.21/src/lane/models.py +90 -0
- nxdo-0.2.21/src/lane/output.py +67 -0
- nxdo-0.2.21/src/lane/planner.py +58 -0
- nxdo-0.2.21/src/lane/project_analyzer.py +282 -0
- nxdo-0.2.21/src/lane/providers/__init__.py +6 -0
- nxdo-0.2.21/src/lane/providers/base.py +19 -0
- nxdo-0.2.21/src/lane/providers/openai_compat.py +204 -0
- nxdo-0.2.21/src/lane/ticket_generator.py +280 -0
- nxdo-0.2.21/src/nxdo.egg-info/PKG-INFO +367 -0
- nxdo-0.2.21/src/nxdo.egg-info/SOURCES.txt +42 -0
- nxdo-0.2.21/src/nxdo.egg-info/dependency_links.txt +1 -0
- nxdo-0.2.21/src/nxdo.egg-info/entry_points.txt +2 -0
- nxdo-0.2.21/src/nxdo.egg-info/requires.txt +17 -0
- nxdo-0.2.21/src/nxdo.egg-info/top_level.txt +1 -0
- nxdo-0.2.21/tests/test_cli.py +341 -0
- nxdo-0.2.21/tests/test_config.py +51 -0
- nxdo-0.2.21/tests/test_git_reader.py +215 -0
- nxdo-0.2.21/tests/test_llm_client.py +104 -0
- nxdo-0.2.21/tests/test_metrics.py +93 -0
- nxdo-0.2.21/tests/test_models.py +87 -0
- nxdo-0.2.21/tests/test_output.py +67 -0
- nxdo-0.2.21/tests/test_planner.py +92 -0
- nxdo-0.2.21/tests/test_project_analyzer.py +232 -0
- nxdo-0.2.21/tests/test_providers.py +166 -0
- nxdo-0.2.21/tests/test_ticket_generator.py +288 -0
nxdo-0.2.21/CHANGELOG.md
ADDED
|
@@ -0,0 +1,397 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## [Unreleased]
|
|
4
|
+
|
|
5
|
+
## [0.2.21] - 2026-06-16
|
|
6
|
+
|
|
7
|
+
### Docs
|
|
8
|
+
- Update README.md
|
|
9
|
+
|
|
10
|
+
### Other
|
|
11
|
+
- Update .gitignore
|
|
12
|
+
- Update uv.lock
|
|
13
|
+
|
|
14
|
+
## [0.2.20] - 2026-05-31
|
|
15
|
+
|
|
16
|
+
### Docs
|
|
17
|
+
- Update README.md
|
|
18
|
+
- Update SUMD.md
|
|
19
|
+
- Update SUMR.md
|
|
20
|
+
- Update project/README.md
|
|
21
|
+
- Update project/context.md
|
|
22
|
+
|
|
23
|
+
### Other
|
|
24
|
+
- Update .code2llm_cache/__init___1779821607395592181_519.pkl
|
|
25
|
+
- Update .code2llm_cache/__init___1779894083798767302_824.pkl
|
|
26
|
+
- Update .code2llm_cache/cli_1779893581396958879_15255.pkl
|
|
27
|
+
- Update .code2llm_cache/complexity_1779821572467241675_9445.pkl
|
|
28
|
+
- Update .code2llm_cache/config_1779821240832920270_1187.pkl
|
|
29
|
+
- Update .code2llm_cache/coupling_1779821509364609700_6186.pkl
|
|
30
|
+
- Update .code2llm_cache/git_reader_1779893743779838285_8178.pkl
|
|
31
|
+
- Update .code2llm_cache/hotspots_1779821541366929991_9235.pkl
|
|
32
|
+
- Update .code2llm_cache/koru_context_1779825224753000000_9708.pkl
|
|
33
|
+
- Update .code2llm_cache/llm_client_1779823632969000000_2527.pkl
|
|
34
|
+
- ... and 26 more files
|
|
35
|
+
|
|
36
|
+
## [0.2.19] - 2026-05-27
|
|
37
|
+
|
|
38
|
+
### Docs
|
|
39
|
+
- Update README.md
|
|
40
|
+
|
|
41
|
+
### Test
|
|
42
|
+
- Update tests/test_git_reader.py
|
|
43
|
+
- Update tests/test_project_analyzer.py
|
|
44
|
+
|
|
45
|
+
## [0.2.18] - 2026-05-27
|
|
46
|
+
|
|
47
|
+
### Docs
|
|
48
|
+
- Update README.md
|
|
49
|
+
|
|
50
|
+
### Test
|
|
51
|
+
- Update tests/test_cli.py
|
|
52
|
+
- Update tests/test_ticket_generator.py
|
|
53
|
+
|
|
54
|
+
## [0.2.17] - 2026-05-27
|
|
55
|
+
|
|
56
|
+
### Docs
|
|
57
|
+
- Update .planfile/.koru/README.md
|
|
58
|
+
- Update README.md
|
|
59
|
+
|
|
60
|
+
### Other
|
|
61
|
+
- Update .koru/event-store.jsonl
|
|
62
|
+
- Update .koru/events/observability.jsonl
|
|
63
|
+
- Update .planfile/.koru/queue-runner.lock
|
|
64
|
+
- Update .planfile/.koru/runs/queue-20260526T194440Z-947266.jsonl
|
|
65
|
+
- Update .planfile/.koru/runs/queue-20260526T195237Z-990505.jsonl
|
|
66
|
+
- Update .planfile/config.yaml
|
|
67
|
+
- Update .planfile/sprints/backlog.yaml
|
|
68
|
+
- Update .planfile/sprints/current.yaml
|
|
69
|
+
|
|
70
|
+
## [0.2.16] - 2026-05-26
|
|
71
|
+
|
|
72
|
+
### Docs
|
|
73
|
+
- Update README.md
|
|
74
|
+
|
|
75
|
+
## [0.2.15] - 2026-05-26
|
|
76
|
+
|
|
77
|
+
### Docs
|
|
78
|
+
- Update README.md
|
|
79
|
+
|
|
80
|
+
## [0.2.14] - 2026-05-26
|
|
81
|
+
|
|
82
|
+
### Docs
|
|
83
|
+
- Update README.md
|
|
84
|
+
|
|
85
|
+
### Test
|
|
86
|
+
- Update tests/test_metrics.py
|
|
87
|
+
|
|
88
|
+
## [0.2.13] - 2026-05-26
|
|
89
|
+
|
|
90
|
+
### Docs
|
|
91
|
+
- Update README.md
|
|
92
|
+
|
|
93
|
+
### Test
|
|
94
|
+
- Update tests/test_cli.py
|
|
95
|
+
- Update tests/test_output.py
|
|
96
|
+
- Update tests/test_project_analyzer.py
|
|
97
|
+
- Update tests/test_providers.py
|
|
98
|
+
|
|
99
|
+
## [0.2.12] - 2026-05-26
|
|
100
|
+
|
|
101
|
+
### Docs
|
|
102
|
+
- Update README.md
|
|
103
|
+
- Update TODO.md
|
|
104
|
+
|
|
105
|
+
### Other
|
|
106
|
+
- Update .koru/events/observability.jsonl
|
|
107
|
+
- Update .planfile/sprints/current.yaml
|
|
108
|
+
- Update strategy.yaml
|
|
109
|
+
|
|
110
|
+
## [0.2.11] - 2026-05-26
|
|
111
|
+
|
|
112
|
+
### Docs
|
|
113
|
+
- Update README.md
|
|
114
|
+
- Update TODO.md
|
|
115
|
+
|
|
116
|
+
### Test
|
|
117
|
+
- Update tests/test_cli.py
|
|
118
|
+
|
|
119
|
+
### Other
|
|
120
|
+
- Update .koru/events/observability.jsonl
|
|
121
|
+
- Update .planfile/sprints/current.yaml
|
|
122
|
+
- Update project/planfile-tickets.yaml
|
|
123
|
+
|
|
124
|
+
## [0.2.10] - 2026-05-26
|
|
125
|
+
|
|
126
|
+
### Docs
|
|
127
|
+
- Update README.md
|
|
128
|
+
- Update TODO.md
|
|
129
|
+
|
|
130
|
+
### Test
|
|
131
|
+
- Update tests/test_cli.py
|
|
132
|
+
- Update tests/test_project_analyzer.py
|
|
133
|
+
- Update tests/test_providers.py
|
|
134
|
+
- Update tests/test_ticket_generator.py
|
|
135
|
+
|
|
136
|
+
### Other
|
|
137
|
+
- Update .planfile/.store.lock
|
|
138
|
+
- Update .planfile/sprints/current.yaml
|
|
139
|
+
- Update strategy.yaml
|
|
140
|
+
- Update uv.lock
|
|
141
|
+
|
|
142
|
+
## [0.2.9] - 2026-05-26
|
|
143
|
+
|
|
144
|
+
### Docs
|
|
145
|
+
- Update CHANGELOG.md
|
|
146
|
+
- Update README.md
|
|
147
|
+
- Update SUMD.md
|
|
148
|
+
- Update SUMR.md
|
|
149
|
+
|
|
150
|
+
### Test
|
|
151
|
+
- Update tests/test_cli.py
|
|
152
|
+
- Update tests/test_config.py
|
|
153
|
+
- Update tests/test_providers.py
|
|
154
|
+
|
|
155
|
+
### Other
|
|
156
|
+
- Update app.doql.less
|
|
157
|
+
- Update project/calls.png
|
|
158
|
+
- Update project/duplication.toon.yaml
|
|
159
|
+
- Update project/flow.png
|
|
160
|
+
- Update project/index.html
|
|
161
|
+
- Update project/logic.pl
|
|
162
|
+
- Update project/map.toon.yaml
|
|
163
|
+
- Update project/project.toon.yaml
|
|
164
|
+
|
|
165
|
+
## [0.2.9] - 2026-05-26
|
|
166
|
+
|
|
167
|
+
### Fixed
|
|
168
|
+
- Fix .env file loading - add automatic .env loading via pydantic-settings
|
|
169
|
+
- Fix 400 Bad Request error from OpenRouter - change model to openai/gpt-4o-mini
|
|
170
|
+
- Fix API error handling - add detailed error messages for API failures
|
|
171
|
+
- Fix dependencies parsing - handle string dependencies by filtering/converting to integers
|
|
172
|
+
- Update tests to disable .env loading in test scenarios
|
|
173
|
+
|
|
174
|
+
### Changed
|
|
175
|
+
- Change default model from openrouter/qwen/qwen3-coder-next to openai/gpt-4o-mini
|
|
176
|
+
- Update config.py to load .env file automatically
|
|
177
|
+
|
|
178
|
+
## [0.2.8] - 2026-05-26
|
|
179
|
+
|
|
180
|
+
### Docs
|
|
181
|
+
- Update CHANGELOG.md
|
|
182
|
+
- Update README.md
|
|
183
|
+
- Update SUMD.md
|
|
184
|
+
- Update SUMR.md
|
|
185
|
+
- Update project/README.md
|
|
186
|
+
- Update project/context.md
|
|
187
|
+
|
|
188
|
+
### Other
|
|
189
|
+
- Update .code2llm_cache/__init___1779813747840622603_823.pkl
|
|
190
|
+
- Update .code2llm_cache/cli_1779813728398420144_8551.pkl
|
|
191
|
+
- Update .code2llm_cache/pyproject_1779813746964613479_2251.pkl
|
|
192
|
+
- Update .code2llm_cache/ticket_generator_1779813709436222750_5067.pkl
|
|
193
|
+
- Update .code2llm_cache/tree_1779813839904582136_1756.pkl
|
|
194
|
+
- Update app.doql.less
|
|
195
|
+
- Update project/analysis.toon.yaml
|
|
196
|
+
- Update project/calls.mmd
|
|
197
|
+
- Update project/calls.png
|
|
198
|
+
- Update project/calls.toon.yaml
|
|
199
|
+
- ... and 14 more files
|
|
200
|
+
|
|
201
|
+
## [0.2.7] - 2026-05-26
|
|
202
|
+
|
|
203
|
+
### New
|
|
204
|
+
- Add planfile integration for ticket generation
|
|
205
|
+
- Add `lane tickets` CLI command with planfile support
|
|
206
|
+
- Add ticket_generator module with TaskPlan to planfile conversion
|
|
207
|
+
- Add `--sync-todo` flag to sync tasks to TODO.md checkboxes
|
|
208
|
+
- Add `--export-yaml` flag to export to planfile YAML format
|
|
209
|
+
|
|
210
|
+
### Changed
|
|
211
|
+
- Add pyyaml as runtime dependency
|
|
212
|
+
- Add planfile as local path dependency for ticket generation features
|
|
213
|
+
|
|
214
|
+
### Docs
|
|
215
|
+
- Update CHANGELOG.md
|
|
216
|
+
- Update README.md
|
|
217
|
+
- Update SUMD.md
|
|
218
|
+
- Update SUMR.md
|
|
219
|
+
|
|
220
|
+
### Test
|
|
221
|
+
- Add tests/test_ticket_generator.py with ticket generation tests
|
|
222
|
+
|
|
223
|
+
### Other
|
|
224
|
+
- Update app.doql.less
|
|
225
|
+
- Update project/logic.pl
|
|
226
|
+
- Update project/map.toon.yaml
|
|
227
|
+
- Update uv.lock
|
|
228
|
+
|
|
229
|
+
## [0.2.6] - 2026-05-26
|
|
230
|
+
|
|
231
|
+
### Refactor
|
|
232
|
+
- Remove code duplication in git_reader.py - extract _run_git_command helper
|
|
233
|
+
- Remove code duplication in project_analyzer.py - extract _get_tree_symbol helper
|
|
234
|
+
- Refactor _parse_pyproject (CC=6 → CC=4) - extract _parse_pyproject_tomllib and _parse_pyproject_regex
|
|
235
|
+
- Refactor _detect_stack (CC=6 → CC=4) - extract _check_pattern_match helper
|
|
236
|
+
- Refactor _resolve_name_and_description (CC=5 → CC=3) - use data-driven approach
|
|
237
|
+
- Refactor _collect_file_contents (CC=5 → CC=4) - extract _truncate_file_content helper
|
|
238
|
+
- Refactor _get_file_frequency (CC=4 → CC=1) - extract _count_file_frequencies and _format_file_summary helpers
|
|
239
|
+
- Improve overall code complexity: CC̄=3.7 → CC̄=2.6
|
|
240
|
+
|
|
241
|
+
### Docs
|
|
242
|
+
- Update README.md
|
|
243
|
+
- Update SUMD.md
|
|
244
|
+
- Update SUMR.md
|
|
245
|
+
- Update project/README.md
|
|
246
|
+
- Update project/context.md
|
|
247
|
+
|
|
248
|
+
### Other
|
|
249
|
+
- Update .code2llm_cache/__init___1779813089818599765_823.pkl
|
|
250
|
+
- Update .code2llm_cache/pyproject_1779813089323595748_2093.pkl
|
|
251
|
+
- Update app.doql.less
|
|
252
|
+
- Update project/analysis.toon.yaml
|
|
253
|
+
- Update project/calls.mmd
|
|
254
|
+
- Update project/calls.png
|
|
255
|
+
- Update project/calls.toon.yaml
|
|
256
|
+
- Update project/calls.yaml
|
|
257
|
+
- Update project/compact_flow.png
|
|
258
|
+
- Update project/duplication.toon.yaml
|
|
259
|
+
- ... and 10 more files
|
|
260
|
+
|
|
261
|
+
## [0.2.5] - 2026-05-26
|
|
262
|
+
|
|
263
|
+
### Docs
|
|
264
|
+
- Update README.md
|
|
265
|
+
- Update SUMD.md
|
|
266
|
+
- Update SUMR.md
|
|
267
|
+
- Update project/README.md
|
|
268
|
+
- Update project/context.md
|
|
269
|
+
|
|
270
|
+
### Other
|
|
271
|
+
- Update .code2llm_cache/__init___1779812250483313022_823.pkl
|
|
272
|
+
- Update .code2llm_cache/__init___1779812598110645593_823.pkl
|
|
273
|
+
- Update .code2llm_cache/generated-cli-tests.testql.toon_1779812133581462729_428.pkl
|
|
274
|
+
- Update .code2llm_cache/generated-from-pytests.testql.toon_1779812133581379073_328.pkl
|
|
275
|
+
- Update .code2llm_cache/git_reader_1779812433507912682_5973.pkl
|
|
276
|
+
- Update .code2llm_cache/git_reader_1779813058356493831_6556.pkl
|
|
277
|
+
- Update .code2llm_cache/goal_1779812236774842677_12261.pkl
|
|
278
|
+
- Update .code2llm_cache/openai_compat_1779812443457017403_6021.pkl
|
|
279
|
+
- Update .code2llm_cache/project_analyzer_1779812419570765990_7032.pkl
|
|
280
|
+
- Update .code2llm_cache/project_analyzer_1779813050876415013_7979.pkl
|
|
281
|
+
- ... and 21 more files
|
|
282
|
+
|
|
283
|
+
## [0.2.4] - 2026-05-26
|
|
284
|
+
|
|
285
|
+
### Docs
|
|
286
|
+
- Update README.md
|
|
287
|
+
|
|
288
|
+
### Test
|
|
289
|
+
- Update tests/test_cli.py
|
|
290
|
+
|
|
291
|
+
## [0.2.3] - 2026-05-26
|
|
292
|
+
|
|
293
|
+
### Docs
|
|
294
|
+
- Update CHANGELOG.md
|
|
295
|
+
- Update README.md
|
|
296
|
+
- Update SUMD.md
|
|
297
|
+
- Update SUMR.md
|
|
298
|
+
- Update project/README.md
|
|
299
|
+
- Update project/context.md
|
|
300
|
+
- Update todo.md
|
|
301
|
+
|
|
302
|
+
### Test
|
|
303
|
+
- Update testql-scenarios/generated-cli-tests.testql.toon.yaml
|
|
304
|
+
- Update testql-scenarios/generated-from-pytests.testql.toon.yaml
|
|
305
|
+
|
|
306
|
+
### Other
|
|
307
|
+
- Update .code2llm_cache/__init___1779809524215187208_172.pkl
|
|
308
|
+
- Update .code2llm_cache/__init___1779812002217425058_823.pkl
|
|
309
|
+
- Update .code2llm_cache/__main___1779808740120530743_81.pkl
|
|
310
|
+
- Update .code2llm_cache/base_1779809524215844720_438.pkl
|
|
311
|
+
- Update .code2llm_cache/cli_1779809524215187208_5928.pkl
|
|
312
|
+
- Update .code2llm_cache/config_1779809524215187208_1120.pkl
|
|
313
|
+
- Update .code2llm_cache/git_reader_1779809524215187208_4761.pkl
|
|
314
|
+
- Update .code2llm_cache/goal_1779811976473106769_12258.pkl
|
|
315
|
+
- Update .code2llm_cache/llm_client_1779809524215187208_2431.pkl
|
|
316
|
+
- Update .code2llm_cache/models_1779809524215187208_2579.pkl
|
|
317
|
+
- ... and 27 more files
|
|
318
|
+
|
|
319
|
+
## [0.2.2] - 2026-05-26
|
|
320
|
+
|
|
321
|
+
### Added
|
|
322
|
+
- Author: Tom Sapletta (tom@sapletta.com)
|
|
323
|
+
- Development dependencies: goal, costs, pfix
|
|
324
|
+
- AI tools configuration (pfix, costs) in pyproject.toml
|
|
325
|
+
- AI cost tracking badges in README
|
|
326
|
+
- Updated version to 0.2.2
|
|
327
|
+
|
|
328
|
+
### Changed
|
|
329
|
+
- Updated AI cost tracking information
|
|
330
|
+
- Cleaned up README formatting
|
|
331
|
+
|
|
332
|
+
## [0.2.1] - 2026-05-26
|
|
333
|
+
|
|
334
|
+
### Docs
|
|
335
|
+
- Update CHANGELOG.md
|
|
336
|
+
- Update CONTRIBUTING.md
|
|
337
|
+
- Update README.md
|
|
338
|
+
- Update todo.md
|
|
339
|
+
|
|
340
|
+
### Test
|
|
341
|
+
- Update tests/test_cli.py
|
|
342
|
+
- Update tests/test_git_reader.py
|
|
343
|
+
- Update tests/test_llm_client.py
|
|
344
|
+
- Update tests/test_models.py
|
|
345
|
+
- Update tests/test_output.py
|
|
346
|
+
- Update tests/test_planner.py
|
|
347
|
+
- Update tests/test_project_analyzer.py
|
|
348
|
+
- Update tests/test_providers.py
|
|
349
|
+
|
|
350
|
+
### Other
|
|
351
|
+
- Update .env.example
|
|
352
|
+
- Update .idea/.gitignore
|
|
353
|
+
- Update .idea/inspectionProfiles/Project_Default.xml
|
|
354
|
+
- Update .idea/inspectionProfiles/profiles_settings.xml
|
|
355
|
+
- Update .idea/lane.iml
|
|
356
|
+
- Update .idea/modules.xml
|
|
357
|
+
- Update .idea/pyProjectModel.xml
|
|
358
|
+
- Update .idea/vcs.xml
|
|
359
|
+
- Update MANIFEST.in
|
|
360
|
+
- Update project.sh
|
|
361
|
+
- ... and 2 more files
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
All notable changes to this project will be documented in this file.
|
|
365
|
+
|
|
366
|
+
## [0.2.0] - 2026-05-26
|
|
367
|
+
|
|
368
|
+
### Added
|
|
369
|
+
- CLI Reference section in README with detailed command documentation
|
|
370
|
+
- Comprehensive test suite with 96% code coverage (80 tests)
|
|
371
|
+
- CONTRIBUTING.md guide for developers
|
|
372
|
+
- Examples section in README with practical usage patterns
|
|
373
|
+
- Tests for all major modules (output, planner, git_reader, project_analyzer, llm_client, providers)
|
|
374
|
+
- Typer CliRunner tests for direct command testing
|
|
375
|
+
- Mock-based tests for LLM provider interactions
|
|
376
|
+
|
|
377
|
+
### Changed
|
|
378
|
+
- Improved project_analyzer.py coverage to 95%
|
|
379
|
+
- Improved git_reader.py coverage to 100%
|
|
380
|
+
- Improved CLI coverage to 89%
|
|
381
|
+
- Enhanced documentation for all CLI commands
|
|
382
|
+
|
|
383
|
+
### Fixed
|
|
384
|
+
- Fixed test coverage gaps in multiple modules
|
|
385
|
+
- Improved error handling tests
|
|
386
|
+
|
|
387
|
+
## [0.1.0] - 2026-05-26
|
|
388
|
+
|
|
389
|
+
### Added
|
|
390
|
+
- Initial release of lane
|
|
391
|
+
- Project snapshot analysis (README, manifests, directory tree, stack detection)
|
|
392
|
+
- Git context extraction (commits, changed files, TODO/FIXME markers)
|
|
393
|
+
- Pydantic models for tasks and plans
|
|
394
|
+
- Provider abstraction with OpenAI-compatible provider
|
|
395
|
+
- Rich CLI with `lane plan`, `lane print-context`, `lane print-prompt`, `lane validate`
|
|
396
|
+
- HTTP reliability with httpx and tenacity retry/backoff
|
|
397
|
+
- Environment-based configuration with pydantic-settings
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# Contributing to lane
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to `lane`!
|
|
4
|
+
|
|
5
|
+
## Development Setup
|
|
6
|
+
|
|
7
|
+
1. Clone the repository:
|
|
8
|
+
```bash
|
|
9
|
+
git clone https://github.com/semcod/lane.git
|
|
10
|
+
cd lane
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
2. Create a virtual environment:
|
|
14
|
+
```bash
|
|
15
|
+
python -m venv .venv
|
|
16
|
+
source .venv/bin/activate # On Windows: .venv\Scripts\activate
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
3. Install the package in development mode:
|
|
20
|
+
```bash
|
|
21
|
+
pip install -e ".[dev]"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
## Running Tests
|
|
25
|
+
|
|
26
|
+
Run all tests:
|
|
27
|
+
```bash
|
|
28
|
+
PYTHONPATH=src python -m pytest tests/ -v
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Run a specific test file:
|
|
32
|
+
```bash
|
|
33
|
+
PYTHONPATH=src python -m pytest tests/test_models.py -v
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Code Quality
|
|
37
|
+
|
|
38
|
+
Run type checking:
|
|
39
|
+
```bash
|
|
40
|
+
mypy src/lane
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Run linting:
|
|
44
|
+
```bash
|
|
45
|
+
ruff check src/lane tests/
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Auto-fix linting issues:
|
|
49
|
+
```bash
|
|
50
|
+
ruff check --fix src/lane tests/
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Project Structure
|
|
54
|
+
|
|
55
|
+
- `src/lane/` - Main package source code
|
|
56
|
+
- `cli.py` - Command-line interface
|
|
57
|
+
- `config.py` - Configuration management
|
|
58
|
+
- `git_reader.py` - Git history analysis
|
|
59
|
+
- `llm_client.py` - LLM client (legacy compatibility)
|
|
60
|
+
- `models.py` - Pydantic data models
|
|
61
|
+
- `output.py` - Rich-based rendering
|
|
62
|
+
- `planner.py` - Main orchestrator
|
|
63
|
+
- `project_analyzer.py` - Project snapshot analysis
|
|
64
|
+
- `providers/` - LLM provider implementations
|
|
65
|
+
- `tests/` - Test suite
|
|
66
|
+
|
|
67
|
+
## Making Changes
|
|
68
|
+
|
|
69
|
+
1. Create a branch for your changes:
|
|
70
|
+
```bash
|
|
71
|
+
git checkout -b feature/your-feature-name
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
2. Make your changes and add tests
|
|
75
|
+
3. Run tests and linting to ensure everything passes
|
|
76
|
+
4. Commit your changes with a clear message
|
|
77
|
+
5. Push and create a pull request
|
|
78
|
+
|
|
79
|
+
## Adding New LLM Providers
|
|
80
|
+
|
|
81
|
+
To add a new LLM provider:
|
|
82
|
+
|
|
83
|
+
1. Create a new file in `src/lane/providers/`
|
|
84
|
+
2. Implement the `LLMProvider` interface from `providers/base.py`
|
|
85
|
+
3. Add appropriate tests in `tests/test_providers.py`
|
|
86
|
+
4. Export the provider in `src/lane/providers/__init__.py`
|
|
87
|
+
|
|
88
|
+
## License
|
|
89
|
+
|
|
90
|
+
By contributing, you agree that your contributions will be licensed under the Apache License 2.0.
|
nxdo-0.2.21/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|