@ngocsangairvds/vsaf 3.2.14 → 3.2.16

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 (1442) hide show
  1. package/bin/vsaf.js +18 -4
  2. package/package.json +1 -1
  3. package/src/config.js +167 -0
  4. package/src/global.js +1 -48
  5. package/src/project.js +1 -0
  6. package/src/utils.js +44 -1
  7. package/tools/vds-scripts/Makefile +9 -31
  8. package/tools/vds-scripts/docker/docker-compose.cli.yml +1 -117
  9. package/tools/vds-scripts/docker/docker-compose.services.yml +1 -40
  10. package/tools/vds-scripts/docker/infrastructure/init-schemas.sql +0 -34
  11. package/tools/vds-scripts/docker/infrastructure/pgbouncer/pgbouncer.ini +2 -6
  12. package/tools/vds-scripts/pyproject.toml +1 -33
  13. package/tools/vds-scripts/uv.lock +80 -1651
  14. package/tools/vds-scripts/vds_cli/pyproject.toml +3 -0
  15. package/tools/vds-scripts/vds_cli/src/vds_cli/cli.py +1 -127
  16. package/tools/vds-scripts/vds_cli/src/vds_cli/commands/lint_cli.py +1 -20
  17. package/tools/vds-scripts/vds_cli/src/vds_cli/router.py +0 -100
  18. package/tools/vds-scripts/vds_cli/tests/conftest.py +0 -2
  19. package/tools/vds-scripts/vds_cli/tests/unit/test_cli.py +0 -25
  20. package/tools/vds-scripts/vds_cli/tests/unit/test_lint_cli.py +2 -2
  21. package/tools/vds-scripts/vds_cli/tests/unit/test_router.py +0 -2
  22. package/tools/vds-scripts/CLOSURE.md +0 -340
  23. package/tools/vds-scripts/ECOSYSTEM-CHANGELOG.md +0 -52
  24. package/tools/vds-scripts/ECOSYSTEM-DOCS.md +0 -602
  25. package/tools/vds-scripts/ECOSYSTEM_ALIGNMENT.md +0 -133
  26. package/tools/vds-scripts/ENV-HYGIENE-OPS-NOTE.md +0 -65
  27. package/tools/vds-scripts/INVESTIGATION-cloud-401.md +0 -103
  28. package/tools/vds-scripts/MEM0_2.0_API_REFERENCE.md +0 -238
  29. package/tools/vds-scripts/PACKAGE_P125B_IMPLEMENTATION_SUMMARY.md +0 -131
  30. package/tools/vds-scripts/PHASE-MERGE-SUMMARY.md +0 -121
  31. package/tools/vds-scripts/PHASES-3-ARCHIVE.md +0 -59
  32. package/tools/vds-scripts/PROJECT_COMPLETION_SUMMARY.md +0 -45
  33. package/tools/vds-scripts/SEARCH-CRASH-REPRO.md +0 -51
  34. package/tools/vds-scripts/analyze_hexagonal.py +0 -217
  35. package/tools/vds-scripts/analyze_profiles.py +0 -60
  36. package/tools/vds-scripts/audit-checklist.xlsx +0 -0
  37. package/tools/vds-scripts/audit_orchestrator/.audit_approvals/approvals_index.json +0 -1
  38. package/tools/vds-scripts/audit_orchestrator/.env.example +0 -85
  39. package/tools/vds-scripts/audit_orchestrator/.github/workflows/audit.yml +0 -47
  40. package/tools/vds-scripts/audit_orchestrator/Dockerfile +0 -92
  41. package/tools/vds-scripts/audit_orchestrator/GOOGLE_SHEETS_IMPLEMENTATION_SUMMARY.md +0 -218
  42. package/tools/vds-scripts/audit_orchestrator/PHASE3_INTEGRATION_SUMMARY.md +0 -268
  43. package/tools/vds-scripts/audit_orchestrator/PHASE7-MERGE-SUMMARY.md +0 -174
  44. package/tools/vds-scripts/audit_orchestrator/README.md +0 -1573
  45. package/tools/vds-scripts/audit_orchestrator/TSK-168-IMPLEMENTATION-SUMMARY.md +0 -191
  46. package/tools/vds-scripts/audit_orchestrator/TSK-196-IMPLEMENTATION-SUMMARY.md +0 -201
  47. package/tools/vds-scripts/audit_orchestrator/alembic/env.py +0 -37
  48. package/tools/vds-scripts/audit_orchestrator/alembic/script.py.mako +0 -28
  49. package/tools/vds-scripts/audit_orchestrator/alembic/versions/0001_initial_audit_state_schema.py +0 -1260
  50. package/tools/vds-scripts/audit_orchestrator/alembic.ini +0 -68
  51. package/tools/vds-scripts/audit_orchestrator/config/category-mapping.json +0 -81
  52. package/tools/vds-scripts/audit_orchestrator/config/profile-timeouts.yaml +0 -17
  53. package/tools/vds-scripts/audit_orchestrator/create_sample.py +0 -55
  54. package/tools/vds-scripts/audit_orchestrator/data/corpus_accuracy_report.json +0 -17
  55. package/tools/vds-scripts/audit_orchestrator/data/exemplar_quality_report.json +0 -1606
  56. package/tools/vds-scripts/audit_orchestrator/data/instruction_plan_fixtures.json +0 -163
  57. package/tools/vds-scripts/audit_orchestrator/data/requirement_exemplars.json +0 -3443
  58. package/tools/vds-scripts/audit_orchestrator/data/requirement_scope_fixtures.json +0 -172
  59. package/tools/vds-scripts/audit_orchestrator/debug_rg.py +0 -46
  60. package/tools/vds-scripts/audit_orchestrator/demo_code_pack.py +0 -127
  61. package/tools/vds-scripts/audit_orchestrator/docs/AGENT_SDK_SELECTION_SPEC.md +0 -720
  62. package/tools/vds-scripts/audit_orchestrator/docs/API.md +0 -804
  63. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_ANALYSIS_APPROACH.md +0 -1041
  64. package/tools/vds-scripts/audit_orchestrator/docs/CONTENT_SCORING_EVOLUTION_SPEC.md +0 -868
  65. package/tools/vds-scripts/audit_orchestrator/docs/DEPLOYMENT.md +0 -778
  66. package/tools/vds-scripts/audit_orchestrator/docs/LLM_AGENT_AUDIT_SPEC.md +0 -721
  67. package/tools/vds-scripts/audit_orchestrator/docs/LLM_CONTENT_ANALYSIS_SPEC.md +0 -1143
  68. package/tools/vds-scripts/audit_orchestrator/docs/LSP_SETUP_GUIDE.md +0 -221
  69. package/tools/vds-scripts/audit_orchestrator/docs/MULTI_REPO_AUDIT_SPEC.md +0 -951
  70. package/tools/vds-scripts/audit_orchestrator/docs/OLLAMA_EMBEDDINGS_SETUP.md +0 -119
  71. package/tools/vds-scripts/audit_orchestrator/docs/PHASE32_REAL_BENCHMARK_2026-02-08.md +0 -66
  72. package/tools/vds-scripts/audit_orchestrator/docs/PHASE_64_TO_92_HISTORICAL_SPEC.md +0 -1772
  73. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-flow-trace.md +0 -201
  74. package/tools/vds-scripts/audit_orchestrator/docs/TSK-193-verification.md +0 -124
  75. package/tools/vds-scripts/audit_orchestrator/docs/phase152-hierarchical-query-surface.md +0 -46
  76. package/tools/vds-scripts/audit_orchestrator/examples/bitbucket_metadata_example.json +0 -50
  77. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/README.md +0 -68
  78. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase117_phase118_shared_state.sql +0 -64
  79. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase154_published_pages.sql +0 -28
  80. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_dispatch_tables.sql +0 -94
  81. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_events.sql +0 -91
  82. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_scope_snapshots.sql +0 -24
  83. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase157_status_view.sql +0 -22
  84. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/phase169_dispatch_observability.sql +0 -55
  85. package/tools/vds-scripts/audit_orchestrator/legacy/migrations/state_repair_hardening.sql +0 -24
  86. package/tools/vds-scripts/audit_orchestrator/pyproject.toml +0 -211
  87. package/tools/vds-scripts/audit_orchestrator/pyrightconfig.json +0 -51
  88. package/tools/vds-scripts/audit_orchestrator/pytest.ini +0 -37
  89. package/tools/vds-scripts/audit_orchestrator/reproduce_scanner.py +0 -40
  90. package/tools/vds-scripts/audit_orchestrator/scripts/README.md +0 -116
  91. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_crawl_modes.py +0 -455
  92. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_dspy.py +0 -513
  93. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_nlp_accuracy.py +0 -138
  94. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_retrieval_modes.py +0 -176
  95. package/tools/vds-scripts/audit_orchestrator/scripts/benchmark_upload_update_mode.py +0 -167
  96. package/tools/vds-scripts/audit_orchestrator/scripts/build_check.py +0 -76
  97. package/tools/vds-scripts/audit_orchestrator/scripts/check_live_progress.py +0 -61
  98. package/tools/vds-scripts/audit_orchestrator/scripts/cli_integration_test.py +0 -400
  99. package/tools/vds-scripts/audit_orchestrator/scripts/index_workspace.py +0 -178
  100. package/tools/vds-scripts/audit_orchestrator/scripts/inspect_route_conformance.py +0 -196
  101. package/tools/vds-scripts/audit_orchestrator/scripts/monitor_postgres.py +0 -145
  102. package/tools/vds-scripts/audit_orchestrator/scripts/optimize_audit.py +0 -462
  103. package/tools/vds-scripts/audit_orchestrator/scripts/verify.py +0 -673
  104. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase111_requirement_analysis.py +0 -375
  105. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase117_cross_repo_evidence.py +0 -77
  106. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase121_short_circuit.py +0 -680
  107. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase122_instruction_handling.py +0 -478
  108. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase125_skill_integration.py +0 -832
  109. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_36.py +0 -394
  110. package/tools/vds-scripts/audit_orchestrator/scripts/verify_phase_37.py +0 -58
  111. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/__init__.py +0 -17
  112. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/__init__.py +0 -29
  113. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/_langchain_warnings.py +0 -17
  114. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/agentic_investigator.py +0 -4130
  115. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/approval.py +0 -490
  116. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_loop_hooks.py +0 -107
  117. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/audit_state.py +0 -50
  118. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/base.py +0 -4035
  119. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_agent.py +0 -667
  120. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_helpers.py +0 -236
  121. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/code_analysis_prompts.py +0 -146
  122. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/docs_agent.py +0 -1234
  123. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/langgraph_workflow.py +0 -2002
  124. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/pydantic_base.py +0 -1227
  125. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/requirement_analysis_agent.py +0 -593
  126. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_agent.py +0 -1829
  127. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/security_scanner.py +0 -686
  128. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/skill_tools.py +0 -204
  129. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/synthesis_agent.py +0 -1463
  130. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_efficiency_guard.py +0 -609
  131. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/tool_registry.py +0 -3822
  132. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/__init__.py +0 -52
  133. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/evidence_corpus.py +0 -385
  134. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/filesystem.py +0 -1134
  135. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/lsp.py +0 -458
  136. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/mcp_toolset.py +0 -491
  137. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/skills_toolset.py +0 -997
  138. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/toolsets/vector_evidence.py +0 -842
  139. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/usage_tracker.py +0 -682
  140. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/agents/visualization.py +0 -303
  141. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/analyze_cmds.py +0 -892
  142. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/__init__.py +0 -15
  143. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checklist_query/service.py +0 -171
  144. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/__init__.py +0 -20
  145. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/base.py +0 -60
  146. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/__init__.py +0 -6
  147. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/bitbucket/checks.py +0 -257
  148. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/__init__.py +0 -10
  149. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/confluence/checks.py +0 -78
  150. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/__init__.py +0 -6
  151. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/git/file_checks.py +0 -133
  152. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/__init__.py +0 -17
  153. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/api_docs_check.py +0 -80
  154. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/readme_check.py +0 -76
  155. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/llm_checks/security_docs_check.py +0 -78
  156. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/registry.py +0 -402
  157. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/__init__.py +0 -10
  158. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/checks/sonarqube/checks.py +0 -276
  159. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli.py +0 -12
  160. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_common.py +0 -128
  161. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/cli_impl.py +0 -9826
  162. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/bitbucket_cli_client.py +0 -187
  163. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/confluence_cli_client.py +0 -977
  164. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/clients/sonarqube_cli_client.py +0 -28
  165. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/__init__.py +0 -21
  166. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/base.py +0 -25
  167. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_downloader.py +0 -644
  168. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/bitbucket_metadata.py +0 -133
  169. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/checklist_parser.py +0 -180
  170. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/__init__.py +0 -31
  171. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/bitbucket_probe.py +0 -443
  172. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/confluence_probe.py +0 -365
  173. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/freshness_evaluator.py +0 -330
  174. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/completeness/material_completeness_service.py +0 -1079
  175. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/confluence_collector.py +0 -259
  176. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/diagram_extractor.py +0 -280
  177. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/enrichment_extractor.py +0 -200
  178. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/evidence_cache.py +0 -35
  179. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/git_collector.py +0 -148
  180. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/graphify_collector.py +0 -171
  181. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/image_extractor.py +0 -359
  182. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/linked_page_tracker.py +0 -120
  183. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/markdown_converter.py +0 -344
  184. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_cache.py +0 -1252
  185. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/material_downloader.py +0 -1165
  186. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/orchestrator.py +0 -168
  187. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/registry_parser.py +0 -3063
  188. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/requirements.py +0 -70
  189. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/runner.py +0 -119
  190. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/collectors/sonarqube_collector.py +0 -113
  191. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config.py +0 -1943
  192. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/__init__.py +0 -23
  193. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/discovery.py +0 -90
  194. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/environment_resolver.py +0 -56
  195. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/evidence.py +0 -78
  196. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/models.py +0 -73
  197. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/precedence.py +0 -10
  198. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/config_resolution/redaction.py +0 -20
  199. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/confluence_connectivity.py +0 -140
  200. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/corpus_cmds.py +0 -278
  201. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/__init__.py +0 -7
  202. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/db/alembic_filters.py +0 -57
  203. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/__init__.py +0 -29
  204. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/docs/diataxis_validator.py +0 -687
  205. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/doctor_cmds.py +0 -3295
  206. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/__init__.py +0 -5
  207. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/evaluation.py +0 -301
  208. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/modules.py +0 -172
  209. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/runtime.py +0 -836
  210. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/dspy_modules/signatures.py +0 -406
  211. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/__init__.py +0 -192
  212. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/ad_hoc_analyzer.py +0 -399
  213. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/aggregator.py +0 -220
  214. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/auditor.py +0 -504
  215. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_evidence_cache.py +0 -111
  216. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/batch_processor.py +0 -4776
  217. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/calibration.py +0 -217
  218. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_generator.py +0 -1201
  219. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_projection.py +0 -192
  220. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checklist_scoping.py +0 -221
  221. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/checkpoint.py +0 -159
  222. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cl003_shared_lib_guard.py +0 -194
  223. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/companion_context_service.py +0 -445
  224. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/confluence_checklist_contract.py +0 -7425
  225. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/cross_check_rules.py +0 -213
  226. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/deterministic_evaluator.py +0 -237
  227. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/drift_detector.py +0 -157
  228. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/dspy_requirement_classifier.py +0 -640
  229. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_assembler.py +0 -407
  230. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_collector.py +0 -119
  231. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/evidence_diversity.py +0 -101
  232. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/gap_analyzer.py +0 -549
  233. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/graduated.py +0 -185
  234. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/grounding_validator.py +0 -287
  235. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_analyzer.py +0 -882
  236. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/instruction_compliance.py +0 -172
  237. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/llm_row_evaluator.py +0 -9270
  238. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/loader.py +0 -1070
  239. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/manual_check_config.py +0 -136
  240. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/mapping.py +0 -269
  241. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/multi_judge.py +0 -65
  242. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/phase120_checklist_update.py +0 -416
  243. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/profile_scorer.py +0 -427
  244. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_evidence_context.py +0 -449
  245. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_query_service.py +0 -155
  246. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_knowledge_store.py +0 -383
  247. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/project_topology.py +0 -1920
  248. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/provider_failure_classifier.py +0 -778
  249. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_cli_helpers.py +0 -341
  250. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_extractor.py +0 -303
  251. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/readiness_synthesizer.py +0 -730
  252. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/regression_guard.py +0 -138
  253. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/repo_type_classifier.py +0 -297
  254. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_analysis.py +0 -1433
  255. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/requirement_classification.py +0 -1725
  256. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/result_merger.py +0 -814
  257. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/route_matrix.py +0 -267
  258. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator.py +0 -9437
  259. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_runtime.py +0 -1270
  260. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/row_evaluator_types.py +0 -2102
  261. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/rubric.py +0 -592
  262. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/scorer.py +0 -1239
  263. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/section_packs.py +0 -645
  264. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/skill_recommendation.py +0 -1183
  265. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/stability_harness.py +0 -207
  266. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/target_selector.py +0 -841
  267. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/telemetry.py +0 -347
  268. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/template_analyzer.py +0 -469
  269. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/token_tracker.py +0 -111
  270. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/tool_first_planner.py +0 -7905
  271. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/topology_query_service.py +0 -80
  272. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/validator.py +0 -449
  273. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/engine/weight_policy.py +0 -464
  274. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/errors.py +0 -430
  275. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/extract_cmds.py +0 -4887
  276. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/identity.py +0 -146
  277. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/__init__.py +0 -52
  278. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/baseline.py +0 -378
  279. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/change_analyzer.py +0 -407
  280. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/delta_report.py +0 -189
  281. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/incremental/diff_detector.py +0 -301
  282. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/integrations/__init__.py +0 -3
  283. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/__init__.py +0 -50
  284. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/audit_schemas.py +0 -459
  285. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/codex_oauth.py +0 -340
  286. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/cost_tracker.py +0 -288
  287. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/engine.py +0 -751
  288. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/evaluator.py +0 -245
  289. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/__init__.py +0 -32
  290. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/api_docs_evaluation.py +0 -25
  291. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/gap_analysis.py +0 -31
  292. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/instruction_templates.py +0 -634
  293. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/readme_evaluation.py +0 -25
  294. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/row_evaluation.py +0 -247
  295. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/security_docs_evaluation.py +0 -25
  296. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts/template_analysis.py +0 -25
  297. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/prompts.py +0 -0
  298. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/llm/provider.py +0 -626
  299. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/logging_config.py +0 -577
  300. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/__init__.py +0 -58
  301. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/default_checklist_mapping.json +0 -18
  302. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/mappings/vietnamese_checklist_mapping.json +0 -38
  303. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/misc_cmds.py +0 -4689
  304. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/__init__.py +0 -153
  305. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/calibration.py +0 -98
  306. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/checklist.py +0 -921
  307. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/completeness.py +0 -309
  308. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enrichment.py +0 -58
  309. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/enums.py +0 -97
  310. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/evidence.py +0 -351
  311. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/findings.py +0 -381
  312. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/gaps.py +0 -299
  313. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/graph.py +0 -42
  314. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/multi_judge.py +0 -50
  315. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/readiness.py +0 -309
  316. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/registry.py +0 -386
  317. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/reporting.py +0 -32
  318. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/task.py +0 -549
  319. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/models/template.py +0 -477
  320. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/__init__.py +0 -31
  321. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/observability/metrics.py +0 -404
  322. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/parse_cmds.py +0 -608
  323. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/pdf_cmds.py +0 -208
  324. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/performance_gates.py +0 -224
  325. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/phase151_projection.py +0 -84
  326. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/__init__.py +0 -65
  327. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/detection.py +0 -842
  328. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/profiles/models.py +0 -474
  329. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/__init__.py +0 -1
  330. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_confluence_macros.py +0 -145
  331. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_field_sanitizer.py +0 -25
  332. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_table_builder.py +0 -63
  333. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/_vietnamese_templates.py +0 -103
  334. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/bitbucket_link_resolver.py +0 -34
  335. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/checklist_renderer.py +0 -483
  336. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/confluence_publisher.py +0 -3048
  337. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/hierarchy_publisher.py +0 -213
  338. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/live_data_injector.py +0 -152
  339. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/macro_builder.py +0 -101
  340. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/markdown_converter.py +0 -154
  341. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/priority_renderer.py +0 -133
  342. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/project_aggregate_renderer.py +0 -423
  343. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/readiness_renderer.py +0 -186
  344. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_hierarchy_renderer.py +0 -382
  345. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/publishers/system_doc_renderer.py +0 -683
  346. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/report_cmds.py +0 -788
  347. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/__init__.py +0 -13
  348. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/aggregation_report.py +0 -86
  349. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/checklist_generator.py +0 -425
  350. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/excel_generator.py +0 -599
  351. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/gap_report.py +0 -131
  352. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/json_generator.py +0 -188
  353. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/markdown_generator.py +0 -595
  354. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/__init__.py +0 -154
  355. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/collector.py +0 -61
  356. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/department_builder.py +0 -77
  357. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/errors.py +0 -9
  358. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/md_renderer.py +0 -386
  359. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_models.py +0 -95
  360. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/pdf_writer.py +0 -27
  361. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/pdf/repo_project_builders.py +0 -274
  362. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/readiness_report.py +0 -447
  363. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/reporting.py +0 -94
  364. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/reports/sarif_generator.py +0 -519
  365. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/runtime_profiles.py +0 -98
  366. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/__init__.py +0 -29
  367. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/seed/seed_loader.py +0 -561
  368. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/__init__.py +0 -5
  369. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/skills/skill_routing.py +0 -312
  370. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/__init__.py +0 -0
  371. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/base.py +0 -110
  372. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/bitbucket.py +0 -129
  373. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/git_url.py +0 -60
  374. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/github.py +0 -75
  375. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sources/local.py +0 -58
  376. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/spec_sync_validator.py +0 -15
  377. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/__init__.py +0 -6285
  378. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/readiness_helpers.py +0 -74
  379. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/skill_readiness.py +0 -487
  380. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state/store.py +0 -12927
  381. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/state_cmds.py +0 -1868
  382. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/__init__.py +0 -0
  383. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync/repo_sync.py +0 -409
  384. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/sync_cmds.py +0 -1247
  385. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/__init__.py +0 -3
  386. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/utils/debug_bundle.py +0 -214
  387. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/validators/checklist_validator.py +0 -342
  388. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflow_cmds.py +0 -19147
  389. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/__init__.py +0 -9
  390. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/_test_audit_daily_batch.py +0 -192
  391. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_daily_batch.py +0 -308
  392. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_deep_monthly.py +0 -193
  393. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_drift_scan.py +0 -178
  394. package/tools/vds-scripts/audit_orchestrator/src/vds_audit_orchestrator/workflows/audit_security_daily.py +0 -183
  395. package/tools/vds-scripts/audit_orchestrator/templates/sample_audit_template.xlsx +0 -0
  396. package/tools/vds-scripts/audit_orchestrator/tests/__init__.py +0 -0
  397. package/tools/vds-scripts/audit_orchestrator/tests/_helpers.py +0 -32
  398. package/tools/vds-scripts/audit_orchestrator/tests/collectors/__init__.py +0 -0
  399. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/__init__.py +0 -0
  400. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_bitbucket_probe.py +0 -403
  401. package/tools/vds-scripts/audit_orchestrator/tests/collectors/completeness/test_confluence_probe.py +0 -423
  402. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_bitbucket_downloader.py +0 -289
  403. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_image_extractor.py +0 -260
  404. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_markdown_converter.py +0 -57
  405. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_cache.py +0 -197
  406. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_material_downloader.py +0 -550
  407. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser.py +0 -3514
  408. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_department_entry.py +0 -214
  409. package/tools/vds-scripts/audit_orchestrator/tests/collectors/test_registry_parser_flow.py +0 -200
  410. package/tools/vds-scripts/audit_orchestrator/tests/conftest.py +0 -988
  411. package/tools/vds-scripts/audit_orchestrator/tests/engine/__init__.py +0 -0
  412. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_calibration.py +0 -48
  413. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_confluence_checklist_phase22_helpers.py +0 -6065
  414. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_multi_judge.py +0 -62
  415. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_stability_harness.py +0 -61
  416. package/tools/vds-scripts/audit_orchestrator/tests/engine/test_structured_metadata.py +0 -419
  417. package/tools/vds-scripts/audit_orchestrator/tests/factories/__init__.py +0 -0
  418. package/tools/vds-scripts/audit_orchestrator/tests/factories/models.py +0 -534
  419. package/tools/vds-scripts/audit_orchestrator/tests/factories/templates.py +0 -241
  420. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/__init__.py +0 -0
  421. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/__init__.py +0 -0
  422. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/compressed.drawio +0 -2
  423. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/mockup.bmpr +0 -0
  424. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/diagrams/simple.drawio +0 -26
  425. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/__init__.py +0 -0
  426. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/__init__.py +0 -0
  427. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_cli.json +0 -26
  428. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/branch_permissions_direct.json +0 -24
  429. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_cli.json +0 -14
  430. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/bitbucket/repo_conditions_direct.json +0 -12
  431. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/__init__.py +0 -0
  432. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_cli.json +0 -7
  433. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/page_direct.json +0 -7
  434. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_cli.json +0 -11
  435. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/confluence/search_direct.json +0 -7
  436. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/__init__.py +0 -0
  437. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_cli.json +0 -12
  438. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/golden/sonarqube/quality_gate_direct.json +0 -12
  439. package/tools/vds-scripts/audit_orchestrator/tests/fixtures/requirement_strategy_phase115.json +0 -118
  440. package/tools/vds-scripts/audit_orchestrator/tests/integration/__init__.py +0 -0
  441. package/tools/vds-scripts/audit_orchestrator/tests/integration/conftest.py +0 -107
  442. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/__init__.py +0 -0
  443. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/expected_outcomes.md +0 -50
  444. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/__init__.py +0 -0
  445. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/auth.py +0 -27
  446. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/config.py +0 -16
  447. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/db.py +0 -24
  448. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/main.py +0 -18
  449. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/__init__.py +0 -1
  450. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_audit_repo/src/utils.py +0 -22
  451. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_checklist_template.json +0 -110
  452. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/__init__.py +0 -0
  453. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/code_evidence_pack.json +0 -40
  454. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/manifest.json +0 -49
  455. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/__init__.py +0 -0
  456. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/__init__.py +0 -0
  457. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/brd.md +0 -19
  458. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/design.md +0 -32
  459. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/security.md +0 -23
  460. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/srs.md +0 -25
  461. package/tools/vds-scripts/audit_orchestrator/tests/integration/fixtures/mock_evidence/projects/mock-audit-project/test.md +0 -30
  462. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_checkpoint_merge.py +0 -1371
  463. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_decoupling_route_p149.py +0 -176
  464. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_gap_analyzer_batch_p149.py +0 -151
  465. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_hybrid_search.py +0 -799
  466. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_mcp_integration.py +0 -741
  467. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_merge_ranking_p149.py +0 -98
  468. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_modality_mismatch_p149.py +0 -171
  469. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase117_118_storage.py +0 -350
  470. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase121_short_circuit.py +0 -732
  471. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase18_workflow.py +0 -223
  472. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase48_e2e_verification.py +0 -763
  473. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_phase81_doc_anchor_regression.py +0 -252
  474. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_provider_failure_finding_p149.py +0 -339
  475. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_readiness_e2e.py +0 -430
  476. package/tools/vds-scripts/audit_orchestrator/tests/integration/test_refined_workflow.py +0 -1180
  477. package/tools/vds-scripts/audit_orchestrator/tests/pdf/__init__.py +0 -0
  478. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/__init__.py +0 -0
  479. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/department_renderer.md +0 -24
  480. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/project_renderer.md +0 -8
  481. package/tools/vds-scripts/audit_orchestrator/tests/pdf/snapshots/repo_renderer.md +0 -10
  482. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_department_pdf.py +0 -112
  483. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_e2e_pdf.py +0 -135
  484. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_idempotency.py +0 -45
  485. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_md_renderer.py +0 -46
  486. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_cmds.py +0 -97
  487. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_snapshot.py +0 -77
  488. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_pdf_writer.py +0 -65
  489. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_project_builder.py +0 -199
  490. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_public_api.py +0 -135
  491. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_repo_builder.py +0 -246
  492. package/tools/vds-scripts/audit_orchestrator/tests/pdf/test_workflow_pdf_flags.py +0 -36
  493. package/tools/vds-scripts/audit_orchestrator/tests/property/__init__.py +0 -0
  494. package/tools/vds-scripts/audit_orchestrator/tests/property/test_properties.py +0 -807
  495. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/__init__.py +0 -0
  496. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agent_error_compat.py +0 -38
  497. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_agentic_skill_policy_skip.py +0 -234
  498. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_event_stream_logging.py +0 -785
  499. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_timeout_policy.py +0 -277
  500. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_base_trace_payload_sanitization.py +0 -92
  501. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent.py +0 -2311
  502. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_agent_re_exports.py +0 -25
  503. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_code_analysis_helpers.py +0 -94
  504. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_create_audit_agent_reasoning_effort.py +0 -69
  505. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_docs_agent.py +0 -2044
  506. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_langgraph_workflow_efficiency_metrics.py +0 -71
  507. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_output_validators.py +0 -317
  508. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_phase41_toolsets.py +0 -6427
  509. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_ai_models.py +0 -1219
  510. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_pydantic_base_url_resolution.py +0 -84
  511. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_security_agent.py +0 -2069
  512. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_skill_manager_focus.py +0 -439
  513. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_synthesis_agent.py +0 -1195
  514. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_tool_efficiency_guard_fr120.py +0 -683
  515. package/tools/vds-scripts/audit_orchestrator/tests/test_agents/test_toolsets.py +0 -716
  516. package/tools/vds-scripts/audit_orchestrator/tests/test_aggregator_p149.py +0 -171
  517. package/tools/vds-scripts/audit_orchestrator/tests/test_alembic_migrations.py +0 -287
  518. package/tools/vds-scripts/audit_orchestrator/tests/test_anchor_allowlist_p149.py +0 -273
  519. package/tools/vds-scripts/audit_orchestrator/tests/test_audit_otel.py +0 -283
  520. package/tools/vds-scripts/audit_orchestrator/tests/test_checklist_models.py +0 -583
  521. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/__init__.py +0 -0
  522. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_base_check.py +0 -211
  523. package/tools/vds-scripts/audit_orchestrator/tests/test_checks/test_llm_checks.py +0 -126
  524. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/__init__.py +0 -0
  525. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_analyze_command.py +0 -400
  526. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_archive_stale_page_cli.py +0 -217
  527. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_bitbucket_metadata_cli.py +0 -354
  528. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_cli_impl_profile_availability.py +0 -114
  529. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_codex_profile.py +0 -174
  530. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_compare_backends_cli.py +0 -449
  531. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_confluence_parent_auto_resolve.py +0 -451
  532. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_corpus_purge_cli.py +0 -290
  533. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_credentials_preflight.py +0 -106
  534. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_debug_bundle.py +0 -37
  535. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_deprecation_phase157.py +0 -484
  536. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_dispatch_concurrency_diagnostics.py +0 -758
  537. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_check_confluence_cli.py +0 -320
  538. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_codex.py +0 -187
  539. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_corpus_status_cli.py +0 -236
  540. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_correlation_cli.py +0 -128
  541. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_crawl_status_cli.py +0 -192
  542. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_credentials_cli.py +0 -86
  543. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_dispatch_status_cli.py +0 -421
  544. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_heartbeat_phase169.py +0 -173
  545. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_hierarchy_status_cli.py +0 -199
  546. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_locks_cli.py +0 -134
  547. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_logs_follow_cli.py +0 -305
  548. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_migration.py +0 -333
  549. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_profile_availability_cli.py +0 -151
  550. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_doctor_skills_policy_cli.py +0 -153
  551. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_evidence_quality_cli.py +0 -307
  552. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_debug_bundle_phase36.py +0 -60
  553. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_export_git_manifest_cli.py +0 -172
  554. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_file_removal_phase157e.py +0 -770
  555. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_grounding_classifier.py +0 -226
  556. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_logging.py +0 -49
  557. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_materials_cli.py +0 -9127
  558. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_metadata_completeness_phase92.py +0 -364
  559. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parent_dispatch_finalization_phase168f.py +0 -111
  560. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_parse_cli.py +0 -590
  561. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase117_118_feature_flags.py +0 -219
  562. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase164_control_plane.py +0 -718
  563. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_phase165_runner_scripts.py +0 -230
  564. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_preparation_classifications.py +0 -146
  565. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_prepare_cli.py +0 -398
  566. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publication_quality_gate.py +0 -126
  567. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_publish_system_doc_cli.py +0 -158
  568. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_query_checklist_cli.py +0 -219
  569. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli.py +0 -673
  570. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_readiness_cli_integration.py +0 -689
  571. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_removed_flags_phase92.py +0 -36
  572. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_report_cmds.py +0 -1317
  573. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_history_index.py +0 -57
  574. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_run_management.py +0 -1194
  575. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_runtime_profiles_cli.py +0 -1658
  576. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_smart_run_selection.py +0 -1562
  577. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_cli.py +0 -2467
  578. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_state_migration.py +0 -339
  579. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_sync_repos_debug_artifacts.py +0 -1109
  580. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_upload_results_cli.py +0 -809
  581. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist.py +0 -178
  582. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_checklist_cli.py +0 -110
  583. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_validate_spec_sync_cli.py +0 -519
  584. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_default_parameters_baseline.py +0 -101
  585. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_options.py +0 -7896
  586. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_db_modes.py +0 -6516
  587. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_project_scope.py +0 -831
  588. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_project_target.py +0 -611
  589. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_lifecycle.py +0 -2488
  590. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_projects_phase131_scaffolding.py +0 -96
  591. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_row_key_guard.py +0 -78
  592. package/tools/vds-scripts/audit_orchestrator/tests/test_cli/test_workflow_summary_artifacts.py +0 -1872
  593. package/tools/vds-scripts/audit_orchestrator/tests/test_cli_paths_phase2.py +0 -45
  594. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/__init__.py +0 -0
  595. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_bitbucket_cli_client.py +0 -124
  596. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_cli_parity.py +0 -110
  597. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_confluence_cli_client.py +0 -1149
  598. package/tools/vds-scripts/audit_orchestrator/tests/test_clients/test_sonarqube_cli_client.py +0 -19
  599. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/__init__.py +0 -0
  600. package/tools/vds-scripts/audit_orchestrator/tests/test_collectors/test_linked_page_tracker.py +0 -118
  601. package/tools/vds-scripts/audit_orchestrator/tests/test_companion_context_service.py +0 -230
  602. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/__init__.py +0 -0
  603. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/conftest.py +0 -11
  604. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_compile_artifact.py +0 -465
  605. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique.py +0 -120
  606. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_cross_provider_critique_e2e.py +0 -75
  607. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_evaluation.py +0 -515
  608. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_runtime_loader.py +0 -537
  609. package/tools/vds-scripts/audit_orchestrator/tests/test_dspy_modules/test_signatures_normalization.py +0 -172
  610. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/__init__.py +0 -0
  611. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_auditor_applicability.py +0 -68
  612. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_generator.py +0 -1252
  613. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_checklist_projection.py +0 -54
  614. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_confluence_checklist_projection_consistency.py +0 -1696
  615. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_critique_merger_matrix.py +0 -120
  616. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_check_rules.py +0 -459
  617. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_cross_provider_critique.py +0 -55
  618. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_doc_loader.py +0 -73
  619. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_drift_detector.py +0 -34
  620. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_evidence_collectors.py +0 -93
  621. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_lease_timeout.py +0 -114
  622. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader.py +0 -350
  623. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_loader_parity.py +0 -179
  624. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_low_confidence_reeval.py +0 -691
  625. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase145a_completion.py +0 -209
  626. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_phase31_row_consistency_retry_benchmark.py +0 -150
  627. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_profile_detector.py +0 -286
  628. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_regression_guard.py +0 -53
  629. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_result_merger.py +0 -619
  630. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_evaluator.py +0 -15783
  631. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_row_failover.py +0 -215
  632. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_scorer.py +0 -597
  633. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_skill_breakdown_telemetry_fr137.py +0 -421
  634. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_targeted_auto_merge.py +0 -229
  635. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_failover.py +0 -488
  636. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_timeout_telemetry.py +0 -73
  637. package/tools/vds-scripts/audit_orchestrator/tests/test_engine/test_validator.py +0 -419
  638. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/__init__.py +0 -0
  639. package/tools/vds-scripts/audit_orchestrator/tests/test_incremental/test_diff_detector.py +0 -111
  640. package/tools/vds-scripts/audit_orchestrator/tests/test_infra_persistence.py +0 -291
  641. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/__init__.py +0 -0
  642. package/tools/vds-scripts/audit_orchestrator/tests/test_integration/test_phase3_integration.py +0 -516
  643. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/__init__.py +0 -0
  644. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cache.py +0 -670
  645. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_model_builder.py +0 -281
  646. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_oauth.py +0 -330
  647. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_codex_streaming.py +0 -433
  648. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_cost_tracker.py +0 -27
  649. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_engine.py +0 -876
  650. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_evaluator.py +0 -212
  651. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_instruction_templates.py +0 -639
  652. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompt_metadata.py +0 -97
  653. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_prompts.py +0 -660
  654. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider.py +0 -330
  655. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_provider_contract_sync.py +0 -18
  656. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_reasoning_effort_validation.py +0 -565
  657. package/tools/vds-scripts/audit_orchestrator/tests/test_llm/test_schemas.py +0 -827
  658. package/tools/vds-scripts/audit_orchestrator/tests/test_logging_config.py +0 -297
  659. package/tools/vds-scripts/audit_orchestrator/tests/test_models/__init__.py +0 -0
  660. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_enums.py +0 -185
  661. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_findings.py +0 -1159
  662. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_project_profile.py +0 -307
  663. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_registry.py +0 -532
  664. package/tools/vds-scripts/audit_orchestrator/tests/test_models/test_template.py +0 -708
  665. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/__init__.py +0 -0
  666. package/tools/vds-scripts/audit_orchestrator/tests/test_observability/test_metrics.py +0 -60
  667. package/tools/vds-scripts/audit_orchestrator/tests/test_paths_config_phase2.py +0 -21
  668. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/__init__.py +0 -0
  669. package/tools/vds-scripts/audit_orchestrator/tests/test_performance/test_fr79_performance_guardrails.py +0 -199
  670. package/tools/vds-scripts/audit_orchestrator/tests/test_phase156_hardening.py +0 -498
  671. package/tools/vds-scripts/audit_orchestrator/tests/test_phase93_regression_guards.py +0 -123
  672. package/tools/vds-scripts/audit_orchestrator/tests/test_pipeline_integration.py +0 -517
  673. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/__init__.py +0 -0
  674. package/tools/vds-scripts/audit_orchestrator/tests/test_profiles/test_detection.py +0 -146
  675. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/__init__.py +0 -0
  676. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_bitbucket_link_resolver.py +0 -55
  677. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer.py +0 -84
  678. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_checklist_renderer_projection.py +0 -97
  679. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_macros.py +0 -58
  680. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_confluence_publisher.py +0 -2171
  681. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_evidence_links.py +0 -129
  682. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_field_sanitizer.py +0 -108
  683. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_hierarchy_publisher.py +0 -134
  684. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_incremental_plan_parser.py +0 -62
  685. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_live_data_injector.py +0 -48
  686. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_macro_builder.py +0 -22
  687. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_p161_confluence_optimization.py +0 -168
  688. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_priority_renderer.py +0 -96
  689. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_project_aggregate_renderer.py +0 -364
  690. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_storage_validation.py +0 -273
  691. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_summary_refactor.py +0 -118
  692. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_system_doc_hierarchy.py +0 -50
  693. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_table_builder.py +0 -23
  694. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_vietnamese_templates.py +0 -37
  695. package/tools/vds-scripts/audit_orchestrator/tests/test_publishers/test_wiring_integration.py +0 -290
  696. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/__init__.py +0 -0
  697. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_aggregation_report.py +0 -181
  698. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_checklist_generator.py +0 -258
  699. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_gap_report.py +0 -73
  700. package/tools/vds-scripts/audit_orchestrator/tests/test_reports/test_json_generator.py +0 -317
  701. package/tools/vds-scripts/audit_orchestrator/tests/test_result_merger_p149.py +0 -347
  702. package/tools/vds-scripts/audit_orchestrator/tests/test_route_mode_p149.py +0 -178
  703. package/tools/vds-scripts/audit_orchestrator/tests/test_rubric_parser.py +0 -179
  704. package/tools/vds-scripts/audit_orchestrator/tests/test_scorer.py +0 -110
  705. package/tools/vds-scripts/audit_orchestrator/tests/test_state/__init__.py +0 -0
  706. package/tools/vds-scripts/audit_orchestrator/tests/test_state/test_sparse_coverage.py +0 -117
  707. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/__init__.py +0 -0
  708. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_langgraph_workflow.py +0 -2072
  709. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow/test_p161_runtime_hardening.py +0 -341
  710. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p149.py +0 -112
  711. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_cmds_p172.py +0 -126
  712. package/tools/vds-scripts/audit_orchestrator/tests/test_workflow_guidance_p150.py +0 -95
  713. package/tools/vds-scripts/audit_orchestrator/tests/unit/__init__.py +0 -0
  714. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/__init__.py +0 -0
  715. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_agentic_investigator_phase115.py +0 -42
  716. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_requirement_analysis_agent.py +0 -412
  717. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_agent_updates.py +0 -131
  718. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_security_scanner.py +0 -397
  719. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_executor.py +0 -316
  720. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_fallback.py +0 -299
  721. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_policy.py +0 -520
  722. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_skill_telemetry.py +0 -306
  723. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_synthesis_fixes.py +0 -761
  724. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_argument_robustness.py +0 -272
  725. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry.py +0 -2548
  726. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_ast_grep.py +0 -87
  727. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase123_scoping.py +0 -353
  728. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_phase94_ff.py +0 -445
  729. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_tool_registry_vector_search_phase115.py +0 -35
  730. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_utils.py +0 -1007
  731. package/tools/vds-scripts/audit_orchestrator/tests/unit/agents/test_vector_evidence_toolset.py +0 -622
  732. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/__init__.py +0 -0
  733. package/tools/vds-scripts/audit_orchestrator/tests/unit/cli/test_workflow_cli.py +0 -123
  734. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/__init__.py +0 -0
  735. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_cache_guard.py +0 -479
  736. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_checklist_parser_phase120.py +0 -55
  737. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_diagram_extractor.py +0 -467
  738. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_enrichment_extractor.py +0 -59
  739. package/tools/vds-scripts/audit_orchestrator/tests/unit/collectors/test_graphify_collector.py +0 -158
  740. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/__init__.py +0 -0
  741. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_completeness.py +0 -563
  742. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_freshness_evaluator.py +0 -493
  743. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_cache_metrics.py +0 -365
  744. package/tools/vds-scripts/audit_orchestrator/tests/unit/completeness/test_material_completeness_service.py +0 -2736
  745. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/__init__.py +0 -0
  746. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_discovery.py +0 -47
  747. package/tools/vds-scripts/audit_orchestrator/tests/unit/config_resolution/test_redaction.py +0 -15
  748. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/__init__.py +0 -0
  749. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_ad_hoc_analyzer.py +0 -576
  750. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_agent_loop.py +0 -1896
  751. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_anchor_filter_cl003.py +0 -181
  752. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_evidence_cache.py +0 -155
  753. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_batch_processor.py +0 -3608
  754. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_contract.py +0 -55
  755. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_checklist_scoping.py +0 -371
  756. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_companion_phase123.py +0 -142
  757. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_config_evidence_phase123.py +0 -249
  758. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_confluence_checklist_contract_export_parity.py +0 -813
  759. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_cross_repo_config_phase122.py +0 -613
  760. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_dspy_requirement_classifier.py +0 -517
  761. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_diversity.py +0 -144
  762. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_evidence_truncation.py +0 -108
  763. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_grounding_validator.py +0 -127
  764. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_guidance_injection_phase120.py +0 -105
  765. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_analysis_phase122.py +0 -761
  766. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_instruction_pre_filter_phase167.py +0 -334
  767. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_llm_row_evaluator_retries.py +0 -3684
  768. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_loader_phase123.py +0 -345
  769. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_manual_check_gating_phase122.py +0 -474
  770. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_parallel_eval.py +0 -263
  771. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase122_verifier_phase122.py +0 -169
  772. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_phase166_route_failover.py +0 -437
  773. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_post_eval_cl003_shared_lib.py +0 -267
  774. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_postproc_streaming.py +0 -194
  775. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_pre_eval_gating_phase122.py +0 -362
  776. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_prepare_topology_coverage.py +0 -247
  777. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_private_dns_sanitization_phase104.py +0 -397
  778. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_evidence_context.py +0 -450
  779. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_knowledge_store.py +0 -487
  780. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_project_topology.py +0 -1142
  781. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_provider_failure_classifier.py +0 -195
  782. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_extractor.py +0 -496
  783. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_readiness_synthesizer.py +0 -653
  784. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_repo_type_classifier.py +0 -303
  785. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis.py +0 -508
  786. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_execution_scope.py +0 -239
  787. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase114.py +0 -919
  788. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_phase115.py +0 -97
  789. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_analysis_shared_lib.py +0 -340
  790. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_drift.py +0 -729
  791. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_classification_nlp.py +0 -670
  792. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_requirement_scope_phase122.py +0 -615
  793. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_matrix.py +0 -258
  794. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_route_override.py +0 -141
  795. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_routing_precision.py +0 -650
  796. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_dual_evidence.py +0 -2987
  797. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_instruction_runtime_phase122.py +0 -365
  798. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_row_evaluator_runtime.py +0 -830
  799. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_runtime_hardening_phase122.py +0 -225
  800. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoped_na_skip.py +0 -107
  801. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_scoring_enhancements.py +0 -404
  802. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_retrieval_phase123.py +0 -441
  803. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_library_routing_phase123.py +0 -279
  804. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_shared_resource_indexing_phase122.py +0 -188
  805. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_recommendation.py +0 -225
  806. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skill_routing_cl003_shared_lib.py +0 -338
  807. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_skills_toolset.py +0 -319
  808. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_stability_metric.py +0 -60
  809. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_target_selector.py +0 -958
  810. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_tracker.py +0 -121
  811. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_token_wiring.py +0 -119
  812. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_tool_first_planner.py +0 -7103
  813. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_knowledge_persistence.py +0 -332
  814. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_topology_query_service.py +0 -55
  815. package/tools/vds-scripts/audit_orchestrator/tests/unit/engine/test_unverified_ref_retry.py +0 -909
  816. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/__init__.py +0 -0
  817. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_evidence.py +0 -515
  818. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_gaps.py +0 -422
  819. package/tools/vds-scripts/audit_orchestrator/tests/unit/models/test_readiness.py +0 -428
  820. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/__init__.py +0 -0
  821. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_confluence_hierarchy.py +0 -227
  822. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_project_title_generation.py +0 -335
  823. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_helpers.py +0 -290
  824. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_publisher_registry_integration.py +0 -557
  825. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_readiness_renderer.py +0 -381
  826. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_repo_title_consistency.py +0 -266
  827. package/tools/vds-scripts/audit_orchestrator/tests/unit/publishers/test_upload_hierarchy_integration.py +0 -470
  828. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/__init__.py +0 -0
  829. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_dspy.py +0 -177
  830. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_nlp_accuracy.py +0 -72
  831. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_benchmark_retrieval_modes.py +0 -123
  832. package/tools/vds-scripts/audit_orchestrator/tests/unit/scripts/test_verify_phase111_requirement_analysis.py +0 -409
  833. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/__init__.py +0 -0
  834. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_chain_cli.py +0 -277
  835. package/tools/vds-scripts/audit_orchestrator/tests/unit/seed/test_seed_loader.py +0 -502
  836. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/__init__.py +0 -0
  837. package/tools/vds-scripts/audit_orchestrator/tests/unit/skills/test_skill_routing.py +0 -209
  838. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/__init__.py +0 -0
  839. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_bitbucket_source.py +0 -66
  840. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_non_retryable_markers.py +0 -88
  841. package/tools/vds-scripts/audit_orchestrator/tests/unit/sources/test_repo_info.py +0 -212
  842. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/__init__.py +0 -0
  843. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_completeness.py +0 -598
  844. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_events_contract_phase169.py +0 -100
  845. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_hardening_phase158.py +0 -392
  846. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_dispatch_persistence_phase157.py +0 -914
  847. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_embedding_client.py +0 -64
  848. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_get_latest_completed_run.py +0 -313
  849. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_heartbeat_phase169.py +0 -109
  850. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_hybrid_search.py +0 -398
  851. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_normalize_url.py +0 -262
  852. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase152_query_surface.py +0 -59
  853. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_phase98_confluence_document_model.py +0 -202
  854. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_published_pages.py +0 -754
  855. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_readiness_helpers.py +0 -193
  856. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_ledger.py +0 -522
  857. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_run_management.py +0 -378
  858. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_schema_contract_phase170.py +0 -755
  859. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_cmds.py +0 -231
  860. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_loaders.py +0 -2151
  861. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_state_run_api.py +0 -2226
  862. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store.py +0 -1435
  863. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch.py +0 -646
  864. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_dispatch_status_view.py +0 -181
  865. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_store_scope.py +0 -213
  866. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_utilization_persist_phase169.py +0 -77
  867. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vds_search.py +0 -263
  868. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_api.py +0 -319
  869. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_runtime.py +0 -175
  870. package/tools/vds-scripts/audit_orchestrator/tests/unit/state/test_vector_index_store.py +0 -1756
  871. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/__init__.py +0 -0
  872. package/tools/vds-scripts/audit_orchestrator/tests/unit/sync/test_repo_sync.py +0 -257
  873. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_artifact_exclusion.py +0 -119
  874. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_auto_promote_phase158.py +0 -337
  875. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_carry_forward_artifact_filtering.py +0 -317
  876. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_checklist_precache_p160a.py +0 -416
  877. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_cli_decomposition_fr219.py +0 -269
  878. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_code_chunk_carry_forward.py +0 -203
  879. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_coherence.py +0 -180
  880. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_config_secret_policy.py +0 -522
  881. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_project_id_migration.py +0 -318
  882. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_corpus_status_diagnostics.py +0 -239
  883. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_department_priority_ordering.py +0 -131
  884. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_coordinator_phase158.py +0 -402
  885. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_job_identity_p167a.py +0 -238
  886. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatch_ramp_up_phase171.py +0 -434
  887. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_dispatcher.py +0 -911
  888. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_doc_type_en_inference.py +0 -246
  889. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_early_exit_unchunked_repos.py +0 -111
  890. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors.py +0 -237
  891. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_errors_taxonomy.py +0 -83
  892. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_chunking_config_phase98.py +0 -73
  893. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_cmds_state_helpers.py +0 -33
  894. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_extract_docs_code_chunking.py +0 -260
  895. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_finalize_dispatch_run_phase168.py +0 -341
  896. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_identity.py +0 -221
  897. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_infrastructure_detection.py +0 -441
  898. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_junction_table_phase95.py +0 -259
  899. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_late_binding_assignment_p167c.py +0 -286
  900. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_misc_cmds_fr224_225_hardening.py +0 -194
  901. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_p172_integration.py +0 -306
  902. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_parent_provider_preflight.py +0 -118
  903. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase92.py +0 -141
  904. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_performance_gates_phase93.py +0 -50
  905. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase115_search_strategy.py +0 -106
  906. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase154_title_consistency.py +0 -117
  907. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase155_param_forwarding.py +0 -304
  908. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase158_concurrency_defaults.py +0 -207
  909. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_doctor_schema.py +0 -319
  910. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase170_regression.py +0 -334
  911. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase94_corpus_lifecycle.py +0 -307
  912. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_phase96_repo_key_migration.py +0 -305
  913. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_pipelined_scheduling.py +0 -130
  914. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_availability_probe.py +0 -616
  915. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_aware_row_timeout.py +0 -102
  916. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_profile_timeout_stagger_p160cd.py +0 -205
  917. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_progress_summary_phase169.py +0 -96
  918. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_registry_checklist_diagnostics.py +0 -124
  919. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_resume_manifest_p167b.py +0 -268
  920. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_risk_mitigations_p160e1.py +0 -348
  921. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_single_row_shards_p160b.py +0 -357
  922. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_state_repo_discovery.py +0 -504
  923. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_sync_metadata_entries.py +0 -57
  924. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_task_models.py +0 -1796
  925. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_utilization_telemetry_p167e.py +0 -259
  926. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_vietnamese_fts_hardening.py +0 -160
  927. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_phase98_enrichment.py +0 -92
  928. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_project_merge_materialization.py +0 -322
  929. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_row_key_migration_guard.py +0 -88
  930. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_short_circuit_phase121.py +0 -564
  931. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_workflow_single_target_row_context.py +0 -49
  932. package/tools/vds-scripts/audit_orchestrator/tests/unit/test_zero_result_messaging.py +0 -76
  933. package/tools/vds-scripts/bandit-report.json +0 -2974
  934. package/tools/vds-scripts/brd_orchestrator/README.md +0 -29
  935. package/tools/vds-scripts/brd_orchestrator/pyproject.toml +0 -63
  936. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/__init__.py +0 -17
  937. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/cli.py +0 -187
  938. package/tools/vds-scripts/brd_orchestrator/src/vds_brd_orchestrator/validator.py +0 -121
  939. package/tools/vds-scripts/brd_orchestrator/tests/__init__.py +0 -0
  940. package/tools/vds-scripts/brd_orchestrator/tests/test_cli.py +0 -62
  941. package/tools/vds-scripts/brd_orchestrator/tests/test_validator.py +0 -33
  942. package/tools/vds-scripts/circular_dependency_orchestrator/README.md +0 -30
  943. package/tools/vds-scripts/circular_dependency_orchestrator/pyproject.toml +0 -43
  944. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/__init__.py +0 -16
  945. package/tools/vds-scripts/circular_dependency_orchestrator/src/vds_circular_dependency_orchestrator/cli.py +0 -904
  946. package/tools/vds-scripts/circular_dependency_orchestrator/tests/__init__.py +0 -0
  947. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/__init__.py +0 -0
  948. package/tools/vds-scripts/circular_dependency_orchestrator/tests/unit/test_cli.py +0 -354
  949. package/tools/vds-scripts/coverage.json +0 -1
  950. package/tools/vds-scripts/create_pr.py +0 -57
  951. package/tools/vds-scripts/diagram_generator/README.md +0 -663
  952. package/tools/vds-scripts/diagram_generator/ci_validate.sh +0 -16
  953. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.png +0 -0
  954. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-component.puml +0 -23
  955. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.png +0 -0
  956. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-sequence.puml +0 -21
  957. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.png +0 -0
  958. package/tools/vds-scripts/diagram_generator/docs-nttc/projects/INSURANCE/analysis/current-state/insurance-claim-business/insurance-claim-business-usecase.puml +0 -14
  959. package/tools/vds-scripts/diagram_generator/examples/github-actions-validate.yml +0 -39
  960. package/tools/vds-scripts/diagram_generator/generate_all_diagrams.py +0 -827
  961. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_diagrams.py +0 -261
  962. package/tools/vds-scripts/diagram_generator/generate_insurance_c4_quick.py +0 -486
  963. package/tools/vds-scripts/diagram_generator/pyproject.toml +0 -28
  964. package/tools/vds-scripts/diagram_generator/render_png.py +0 -59
  965. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/__init__.py +0 -3
  966. package/tools/vds-scripts/diagram_generator/src/vds_diagram_generator/cli.py +0 -50
  967. package/tools/vds-scripts/diagram_generator/test_c4_hierarchical.py +0 -142
  968. package/tools/vds-scripts/diagram_generator/test_c4_quick.py +0 -131
  969. package/tools/vds-scripts/diagram_generator/tests/__init__.py +0 -0
  970. package/tools/vds-scripts/diagram_generator/tests/test_analyzer_completeness.py +0 -260
  971. package/tools/vds-scripts/diagram_generator/tests/test_c4_syntax_correctness.py +0 -138
  972. package/tools/vds-scripts/diagram_generator/tests/test_component_coverage.py +0 -182
  973. package/tools/vds-scripts/diagram_generator/tests/test_mermaid_output.py +0 -80
  974. package/tools/vds-scripts/diagram_generator/tests/test_png_generation.py +0 -112
  975. package/tools/vds-scripts/diagram_generator/tests/test_scenario_templates.py +0 -15
  976. package/tools/vds-scripts/diagram_generator/tests/test_sequence_accuracy.py +0 -93
  977. package/tools/vds-scripts/diagram_generator/tests/test_structurizr_export.py +0 -177
  978. package/tools/vds-scripts/diagram_generator/tests/test_style_consistency.py +0 -174
  979. package/tools/vds-scripts/diagram_generator/tests/test_usecase_generator.py +0 -201
  980. package/tools/vds-scripts/diagram_generator/tests/test_usecase_integration.py +0 -124
  981. package/tools/vds-scripts/docker/compose.phase2-verification.yml +0 -31
  982. package/tools/vds-scripts/docker-compose.openapi-validator.yml +0 -14
  983. package/tools/vds-scripts/excel_orchestrator/README.md +0 -288
  984. package/tools/vds-scripts/excel_orchestrator/RESEARCH_BASED_UPDATES_REPORT.md +0 -261
  985. package/tools/vds-scripts/excel_orchestrator/add_essential_missing_effort.py +0 -255
  986. package/tools/vds-scripts/excel_orchestrator/adjust_effort_complexity.py +0 -184
  987. package/tools/vds-scripts/excel_orchestrator/brd_analysis_and_task_breakdown.py +0 -632
  988. package/tools/vds-scripts/excel_orchestrator/brd_analysis_comprehensive.py +0 -1029
  989. package/tools/vds-scripts/excel_orchestrator/check_overlaps_and_brd_coverage.py +0 -570
  990. package/tools/vds-scripts/excel_orchestrator/clean_remarks_column.py +0 -127
  991. package/tools/vds-scripts/excel_orchestrator/comprehensive_brd_check.py +0 -322
  992. package/tools/vds-scripts/excel_orchestrator/create_buffered_summary.py +0 -119
  993. package/tools/vds-scripts/excel_orchestrator/create_service_totals_sheet.py +0 -118
  994. package/tools/vds-scripts/excel_orchestrator/examples/basic_operations.py +0 -85
  995. package/tools/vds-scripts/excel_orchestrator/expand_all_tasks.py +0 -341
  996. package/tools/vds-scripts/excel_orchestrator/expand_tasks.py +0 -304
  997. package/tools/vds-scripts/excel_orchestrator/fill_brd_references.py +0 -347
  998. package/tools/vds-scripts/excel_orchestrator/fill_remarks_and_colors.py +0 -132
  999. package/tools/vds-scripts/excel_orchestrator/finalize_brd_and_cleanup.py +0 -295
  1000. package/tools/vds-scripts/excel_orchestrator/finalize_brd_coverage.py +0 -327
  1001. package/tools/vds-scripts/excel_orchestrator/fix_all_formulas.py +0 -99
  1002. package/tools/vds-scripts/excel_orchestrator/fix_detail_presentation.py +0 -113
  1003. package/tools/vds-scripts/excel_orchestrator/fix_presentation_and_effort.py +0 -116
  1004. package/tools/vds-scripts/excel_orchestrator/fix_presentation_consistency.py +0 -231
  1005. package/tools/vds-scripts/excel_orchestrator/fix_remarks_matching.py +0 -179
  1006. package/tools/vds-scripts/excel_orchestrator/group_tasks_by_service_id.py +0 -210
  1007. package/tools/vds-scripts/excel_orchestrator/increase_brd_coverage.py +0 -497
  1008. package/tools/vds-scripts/excel_orchestrator/increase_effort_complexity.py +0 -155
  1009. package/tools/vds-scripts/excel_orchestrator/organize_and_deduplicate.py +0 -273
  1010. package/tools/vds-scripts/excel_orchestrator/pyproject.toml +0 -64
  1011. package/tools/vds-scripts/excel_orchestrator/rebuild_all_formulas.py +0 -146
  1012. package/tools/vds-scripts/excel_orchestrator/remove_base_multiplier_and_check_duplicates.py +0 -310
  1013. package/tools/vds-scripts/excel_orchestrator/remove_duplicate_brd_tasks.py +0 -137
  1014. package/tools/vds-scripts/excel_orchestrator/research_based_updates.py +0 -457
  1015. package/tools/vds-scripts/excel_orchestrator/restore_e_values.py +0 -172
  1016. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/__init__.py +0 -5
  1017. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/cli.py +0 -746
  1018. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/config.py +0 -74
  1019. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/converters.py +0 -226
  1020. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/errors.py +0 -88
  1021. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/excel_client.py +0 -443
  1022. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/formatters.py +0 -211
  1023. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/logging.py +0 -57
  1024. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/source_contract.py +0 -29
  1025. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/target_state_status.py +0 -837
  1026. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/ulnc_alignment.py +0 -1291
  1027. package/tools/vds-scripts/excel_orchestrator/src/vds_excel_orchestrator/validators.py +0 -164
  1028. package/tools/vds-scripts/excel_orchestrator/sync_detail_and_total_sheets.py +0 -211
  1029. package/tools/vds-scripts/excel_orchestrator/tests/__init__.py +0 -1
  1030. package/tools/vds-scripts/excel_orchestrator/tests/conftest.py +0 -36
  1031. package/tools/vds-scripts/excel_orchestrator/tests/test_cli.py +0 -383
  1032. package/tools/vds-scripts/excel_orchestrator/tests/test_excel_client.py +0 -129
  1033. package/tools/vds-scripts/excel_orchestrator/tests/test_ulnc_alignment.py +0 -373
  1034. package/tools/vds-scripts/excel_orchestrator/tests/test_validators.py +0 -64
  1035. package/tools/vds-scripts/excel_orchestrator/update_api_database_effort.py +0 -261
  1036. package/tools/vds-scripts/excel_orchestrator/update_buffers_inline.py +0 -115
  1037. package/tools/vds-scripts/excel_orchestrator/update_complex_services_and_add_new.py +0 -336
  1038. package/tools/vds-scripts/excel_orchestrator/update_responsibility_and_fix_rows.py +0 -208
  1039. package/tools/vds-scripts/excel_orchestrator/update_task_breakdown_vietnamese.py +0 -309
  1040. package/tools/vds-scripts/excel_orchestrator/update_vietnamese_and_responsibility.py +0 -415
  1041. package/tools/vds-scripts/excel_orchestrator/verify_brd_coverage_comprehensive.py +0 -401
  1042. package/tools/vds-scripts/hexagonal_orchestrator/README.md +0 -530
  1043. package/tools/vds-scripts/hexagonal_orchestrator/pyproject.toml +0 -48
  1044. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/__init__.py +0 -39
  1045. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/__init__.py +0 -19
  1046. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/base.py +0 -95
  1047. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/fallback.py +0 -614
  1048. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/java.py +0 -372
  1049. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/analyzers/python.py +0 -437
  1050. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cache.py +0 -331
  1051. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/classifier.py +0 -263
  1052. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/cli.py +0 -554
  1053. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/config.py +0 -577
  1054. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/models.py +0 -159
  1055. package/tools/vds-scripts/hexagonal_orchestrator/src/vds_hexagonal_orchestrator/profiler.py +0 -451
  1056. package/tools/vds-scripts/hexagonal_orchestrator/test-config.yaml +0 -38
  1057. package/tools/vds-scripts/hexagonal_orchestrator/tests/__init__.py +0 -1
  1058. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/__init__.py +0 -1
  1059. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driven/persistence/InMemoryUserRepository.java +0 -62
  1060. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/adapter/driving/api/UserController.java +0 -101
  1061. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/EmailService.java +0 -33
  1062. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/port/UserRepository.java +0 -45
  1063. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/application/usecase/CreateUser.java +0 -58
  1064. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/Email.java +0 -80
  1065. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-compliant/domain/entity/User.java +0 -98
  1066. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-noncompliant/domain/User.java +0 -64
  1067. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Menu.java +0 -13
  1068. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/java-with-frameworks/domain/Product.java +0 -16
  1069. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/__init__.py +0 -1
  1070. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/__init__.py +0 -1
  1071. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/__init__.py +0 -1
  1072. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/email_service.py +0 -60
  1073. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/application/ports/user_repository.py +0 -78
  1074. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/__init__.py +0 -1
  1075. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/__init__.py +0 -1
  1076. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/entities/user.py +0 -56
  1077. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/__init__.py +0 -1
  1078. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-compliant/domain/value_objects/email.py +0 -63
  1079. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/application/user_service.py +0 -1837
  1080. package/tools/vds-scripts/hexagonal_orchestrator/tests/fixtures/python-noncompliant/domain/user.py +0 -43
  1081. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cache.py +0 -458
  1082. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_integration.py +0 -942
  1083. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cli_unit.py +0 -557
  1084. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_cross_repo_pollution.py +0 -275
  1085. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_foundation.py +0 -129
  1086. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_integration.py +0 -1524
  1087. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_java_analyzer.py +0 -642
  1088. package/tools/vds-scripts/hexagonal_orchestrator/tests/test_timing_unit.py +0 -60
  1089. package/tools/vds-scripts/intellij_orchestrator/README.md +0 -55
  1090. package/tools/vds-scripts/intellij_orchestrator/pyproject.toml +0 -64
  1091. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/__init__.py +0 -17
  1092. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/cli.py +0 -210
  1093. package/tools/vds-scripts/intellij_orchestrator/src/vds_intellij_orchestrator/core.py +0 -260
  1094. package/tools/vds-scripts/intellij_orchestrator/tests/__init__.py +0 -1
  1095. package/tools/vds-scripts/intellij_orchestrator/tests/test_cli.py +0 -112
  1096. package/tools/vds-scripts/intellij_orchestrator/tests/test_core.py +0 -83
  1097. package/tools/vds-scripts/links_orchestrator/README.md +0 -63
  1098. package/tools/vds-scripts/links_orchestrator/pyproject.toml +0 -64
  1099. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/__init__.py +0 -10
  1100. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/cli.py +0 -254
  1101. package/tools/vds-scripts/links_orchestrator/src/vds_links_orchestrator/validator.py +0 -244
  1102. package/tools/vds-scripts/links_orchestrator/tests/__init__.py +0 -0
  1103. package/tools/vds-scripts/links_orchestrator/tests/test_cli.py +0 -128
  1104. package/tools/vds-scripts/links_orchestrator/tests/test_validator.py +0 -76
  1105. package/tools/vds-scripts/lsp_orchestrator/.dockerignore +0 -69
  1106. package/tools/vds-scripts/lsp_orchestrator/ARCHITECTURE.md +0 -383
  1107. package/tools/vds-scripts/lsp_orchestrator/CODE_QUALITY_IMPROVEMENTS.md +0 -196
  1108. package/tools/vds-scripts/lsp_orchestrator/COMMANDS.md +0 -870
  1109. package/tools/vds-scripts/lsp_orchestrator/Dockerfile +0 -59
  1110. package/tools/vds-scripts/lsp_orchestrator/IMPLEMENTATION_SUMMARY.md +0 -490
  1111. package/tools/vds-scripts/lsp_orchestrator/LSP_ISSUES_AND_FINDINGS.md +0 -380
  1112. package/tools/vds-scripts/lsp_orchestrator/README.md +0 -616
  1113. package/tools/vds-scripts/lsp_orchestrator/SETUP.md +0 -143
  1114. package/tools/vds-scripts/lsp_orchestrator/TEST_COVERAGE_SUMMARY.md +0 -255
  1115. package/tools/vds-scripts/lsp_orchestrator/VERIFICATION_CHECKLIST.md +0 -814
  1116. package/tools/vds-scripts/lsp_orchestrator/docker-compose.yml +0 -102
  1117. package/tools/vds-scripts/lsp_orchestrator/docs/FOR_LLMS.md +0 -401
  1118. package/tools/vds-scripts/lsp_orchestrator/docs/explanation/lsp-response-matching.md +0 -79
  1119. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/automate-with-json.md +0 -159
  1120. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/docker-mode.md +0 -256
  1121. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/navigate-code.md +0 -116
  1122. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/parallel-processing.md +0 -179
  1123. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/project-tool-detection.md +0 -320
  1124. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/type-check-code.md +0 -46
  1125. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/use-daemon-mode.md +0 -78
  1126. package/tools/vds-scripts/lsp_orchestrator/docs/how-to-guides/wsl2-optimization.md +0 -227
  1127. package/tools/vds-scripts/lsp_orchestrator/docs/index.md +0 -88
  1128. package/tools/vds-scripts/lsp_orchestrator/docs/operator-hover-definition.md +0 -143
  1129. package/tools/vds-scripts/lsp_orchestrator/docs/reference/commands.md +0 -581
  1130. package/tools/vds-scripts/lsp_orchestrator/docs/reference/configuration.md +0 -422
  1131. package/tools/vds-scripts/lsp_orchestrator/docs/tutorials/00-quick-start.md +0 -169
  1132. package/tools/vds-scripts/lsp_orchestrator/pyproject.toml +0 -63
  1133. package/tools/vds-scripts/lsp_orchestrator/src/test_file.py +0 -5
  1134. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/__init__.py +0 -3
  1135. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/aggregator.py +0 -340
  1136. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/basedpyright_runner.py +0 -167
  1137. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/cli.py +0 -3370
  1138. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/code_actions.py +0 -79
  1139. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/core.py +0 -3295
  1140. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_client.py +0 -672
  1141. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_manager.py +0 -577
  1142. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/daemon_server.py +0 -1040
  1143. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/__init__.py +0 -9
  1144. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/detectors/project_detector.py +0 -537
  1145. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/formatters.py +0 -141
  1146. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ipc_protocol.py +0 -225
  1147. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_client.py +0 -957
  1148. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/lsp_router.py +0 -335
  1149. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mcp_server.py +0 -181
  1150. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/__init__.py +0 -201
  1151. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_detector.py +0 -646
  1152. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models/project_tools.py +0 -114
  1153. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/models.py +0 -399
  1154. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/mypy_runner.py +0 -209
  1155. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/protocols.py +0 -52
  1156. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_lsp_client.py +0 -109
  1157. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/ruff_runner.py +0 -44
  1158. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/utils.py +0 -959
  1159. package/tools/vds-scripts/lsp_orchestrator/src/vds_lsp_orchestrator/workspace_indexer.py +0 -1037
  1160. package/tools/vds-scripts/lsp_orchestrator/test_workspace_lsp.py +0 -6
  1161. package/tools/vds-scripts/lsp_orchestrator/tests/__init__.py +0 -1
  1162. package/tools/vds-scripts/lsp_orchestrator/tests/conftest.py +0 -6
  1163. package/tools/vds-scripts/lsp_orchestrator/tests/test_aggregator.py +0 -59
  1164. package/tools/vds-scripts/lsp_orchestrator/tests/test_cli.py +0 -111
  1165. package/tools/vds-scripts/lsp_orchestrator/tests/test_detect_tools_command.py +0 -186
  1166. package/tools/vds-scripts/lsp_orchestrator/tests/test_formatter_linter_detection.py +0 -519
  1167. package/tools/vds-scripts/lsp_orchestrator/tests/test_integration_phase9_10_11.py +0 -367
  1168. package/tools/vds-scripts/lsp_orchestrator/tests/test_mypy_runner.py +0 -482
  1169. package/tools/vds-scripts/lsp_orchestrator/tests/test_package_manager_detection.py +0 -399
  1170. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase10.py +0 -389
  1171. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase11.py +0 -327
  1172. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase12_integration.py +0 -634
  1173. package/tools/vds-scripts/lsp_orchestrator/tests/test_phase9.py +0 -196
  1174. package/tools/vds-scripts/lsp_orchestrator/tests/test_project_detector.py +0 -377
  1175. package/tools/vds-scripts/lsp_orchestrator/tests/test_test_runner_detection.py +0 -549
  1176. package/tools/vds-scripts/lsp_orchestrator/tests/test_type_checker_routing.py +0 -362
  1177. package/tools/vds-scripts/lsp_orchestrator/tests/test_workspace_indexer.py +0 -144
  1178. package/tools/vds-scripts/markdown_orchestrator/README.md +0 -72
  1179. package/tools/vds-scripts/markdown_orchestrator/pyproject.toml +0 -39
  1180. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/__init__.py +0 -5
  1181. package/tools/vds-scripts/markdown_orchestrator/src/vds_markdown_orchestrator/cli.py +0 -102
  1182. package/tools/vds-scripts/multi_agent_orchestrator/Dockerfile +0 -65
  1183. package/tools/vds-scripts/multi_agent_orchestrator/README.md +0 -306
  1184. package/tools/vds-scripts/multi_agent_orchestrator/postman/README.md +0 -264
  1185. package/tools/vds-scripts/multi_agent_orchestrator/postman/TEST_RESULTS_SUMMARY.md +0 -197
  1186. package/tools/vds-scripts/multi_agent_orchestrator/postman/VDS-Multi-Agent-Orchestrator-API.postman_collection.json +0 -1010
  1187. package/tools/vds-scripts/multi_agent_orchestrator/postman/environments/local-development.postman_environment.json +0 -55
  1188. package/tools/vds-scripts/multi_agent_orchestrator/postman/test-results.json +0 -24146
  1189. package/tools/vds-scripts/multi_agent_orchestrator/pyproject.toml +0 -63
  1190. package/tools/vds-scripts/multi_agent_orchestrator/run_api.py +0 -9
  1191. package/tools/vds-scripts/multi_agent_orchestrator/run_mock_api.py +0 -9
  1192. package/tools/vds-scripts/multi_agent_orchestrator/simple_test.py +0 -53
  1193. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/__init__.py +0 -25
  1194. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/agent_pool.py +0 -433
  1195. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/__init__.py +0 -5
  1196. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/main.py +0 -722
  1197. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/api/mock_main.py +0 -812
  1198. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/change_log.py +0 -515
  1199. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/cli.py +0 -424
  1200. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/config.py +0 -220
  1201. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/conflict_resolver.py +0 -462
  1202. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/coordinator.py +0 -627
  1203. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/models.py +0 -389
  1204. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/progress_dashboard.py +0 -380
  1205. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/redis_client.py +0 -245
  1206. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/scheduler_subscriber.py +0 -272
  1207. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_manager.py +0 -536
  1208. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/task_tracking.py +0 -550
  1209. package/tools/vds-scripts/multi_agent_orchestrator/src/vds_multi_agent_orchestrator/vds_ai_memory_client.py +0 -352
  1210. package/tools/vds-scripts/multi_agent_orchestrator/test_complete_system.py +0 -149
  1211. package/tools/vds-scripts/multi_agent_orchestrator/test_infrastructure_only.py +0 -194
  1212. package/tools/vds-scripts/multi_agent_orchestrator/test_integration.py +0 -108
  1213. package/tools/vds-scripts/multi_agent_orchestrator/tests/__init__.py +0 -1
  1214. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_agent_registration_credential_validator.py +0 -223
  1215. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_config.py +0 -210
  1216. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_models.py +0 -195
  1217. package/tools/vds-scripts/multi_agent_orchestrator/tests/test_w9_agent_routes.py +0 -321
  1218. package/tools/vds-scripts/openapi_orchestrator/README.md +0 -197
  1219. package/tools/vds-scripts/openapi_orchestrator/pyproject.toml +0 -106
  1220. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/__init__.py +0 -29
  1221. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/cli.py +0 -345
  1222. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/full_validator.py +0 -183
  1223. package/tools/vds-scripts/openapi_orchestrator/src/vds_openapi_orchestrator/spec_validator.py +0 -197
  1224. package/tools/vds-scripts/openapi_orchestrator/tests/__init__.py +0 -1
  1225. package/tools/vds-scripts/openapi_orchestrator/tests/test_cli.py +0 -234
  1226. package/tools/vds-scripts/openapi_orchestrator/tests/test_full_validator.py +0 -203
  1227. package/tools/vds-scripts/openapi_orchestrator/tests/test_spec_validator.py +0 -295
  1228. package/tools/vds-scripts/pdf_orchestrator/.dockerignore +0 -93
  1229. package/tools/vds-scripts/pdf_orchestrator/.env.example +0 -40
  1230. package/tools/vds-scripts/pdf_orchestrator/.ruff_rules.py +0 -350
  1231. package/tools/vds-scripts/pdf_orchestrator/.yamllint.yml +0 -43
  1232. package/tools/vds-scripts/pdf_orchestrator/DEVELOPMENT_PLAN.md +0 -80
  1233. package/tools/vds-scripts/pdf_orchestrator/Dockerfile +0 -87
  1234. package/tools/vds-scripts/pdf_orchestrator/README.md +0 -608
  1235. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.md +0 -6
  1236. package/tools/vds-scripts/pdf_orchestrator/cli_verification_test/test.pdf +0 -0
  1237. package/tools/vds-scripts/pdf_orchestrator/config/alertmanager.yml +0 -83
  1238. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.prod.yml +0 -98
  1239. package/tools/vds-scripts/pdf_orchestrator/config/prometheus.yml +0 -40
  1240. package/tools/vds-scripts/pdf_orchestrator/config/redis.conf +0 -78
  1241. package/tools/vds-scripts/pdf_orchestrator/docs/COMPETITIVE_ANALYSIS_REPORT.md +0 -309
  1242. package/tools/vds-scripts/pdf_orchestrator/docs/FEATURES_GUIDE.md +0 -518
  1243. package/tools/vds-scripts/pdf_orchestrator/docs/MULTI_USER_DEPLOYMENT_GUIDE.md +0 -615
  1244. package/tools/vds-scripts/pdf_orchestrator/docs/USER_GUIDE.md +0 -829
  1245. package/tools/vds-scripts/pdf_orchestrator/pyproject.toml +0 -87
  1246. package/tools/vds-scripts/pdf_orchestrator/pytest.ini +0 -71
  1247. package/tools/vds-scripts/pdf_orchestrator/ruff.toml +0 -6
  1248. package/tools/vds-scripts/pdf_orchestrator/scripts/debug_security_report.py +0 -59
  1249. package/tools/vds-scripts/pdf_orchestrator/scripts/demo_library_selector.py +0 -109
  1250. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_project_stats.py +0 -52
  1251. package/tools/vds-scripts/pdf_orchestrator/scripts/generate_styled_pdf.py +0 -95
  1252. package/tools/vds-scripts/pdf_orchestrator/scripts/migrate_render_pdfs.py +0 -285
  1253. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.bat +0 -283
  1254. package/tools/vds-scripts/pdf_orchestrator/scripts/setup_team.sh +0 -324
  1255. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/__init__.py +0 -5
  1256. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/cli.py +0 -542
  1257. package/tools/vds-scripts/pdf_orchestrator/src/vds_pdf_orchestrator/config.py +0 -33
  1258. package/tools/vds-scripts/pdf_orchestrator/tests/README.md +0 -650
  1259. package/tools/vds-scripts/pdf_orchestrator/tests/__init__.py +0 -0
  1260. package/tools/vds-scripts/pdf_orchestrator/tests/conftest.py +0 -520
  1261. package/tools/vds-scripts/pdf_orchestrator/tests/requirements.txt +0 -51
  1262. package/tools/vds-scripts/pdf_orchestrator/tests/run_tests.py +0 -659
  1263. package/tools/vds-scripts/pdf_orchestrator/tests/test_config.py +0 -36
  1264. package/tools/vds-scripts/progress_report_orchestrator/Dockerfile +0 -77
  1265. package/tools/vds-scripts/progress_report_orchestrator/README.md +0 -39
  1266. package/tools/vds-scripts/progress_report_orchestrator/alembic/env.py +0 -42
  1267. package/tools/vds-scripts/progress_report_orchestrator/alembic/script.py.mako +0 -28
  1268. package/tools/vds-scripts/progress_report_orchestrator/alembic/versions/0001_initial_progress_schema.py +0 -180
  1269. package/tools/vds-scripts/progress_report_orchestrator/alembic.ini +0 -67
  1270. package/tools/vds-scripts/progress_report_orchestrator/pyproject.toml +0 -67
  1271. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/__init__.py +0 -3
  1272. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/__init__.py +0 -1
  1273. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/endpoint_scanner.py +0 -238
  1274. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/git_activity.py +0 -159
  1275. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/hexagonal.py +0 -100
  1276. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/analyzers/test_scanner.py +0 -136
  1277. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/cli.py +0 -743
  1278. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/config.py +0 -50
  1279. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/__init__.py +0 -12
  1280. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/db/alembic_filters.py +0 -64
  1281. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/memory.py +0 -82
  1282. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/__init__.py +0 -1
  1283. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/analysis.py +0 -84
  1284. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/report.py +0 -117
  1285. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/models/topology.py +0 -101
  1286. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/__init__.py +0 -1
  1287. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/kg_parser.py +0 -252
  1288. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/parsers/uc_reader.py +0 -159
  1289. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/__init__.py +0 -1
  1290. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/concurrency.py +0 -39
  1291. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/llm_eval.py +0 -570
  1292. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/report.py +0 -1256
  1293. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/structural.py +0 -384
  1294. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/pipeline/sync.py +0 -143
  1295. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/__init__.py +0 -5
  1296. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/engine.py +0 -105
  1297. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/recommendations/templates.py +0 -236
  1298. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/scheduler_subscriber.py +0 -238
  1299. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/README.md +0 -56
  1300. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/__init__.py +0 -1
  1301. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-architecture-reviewer/SKILL.md +0 -67
  1302. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/skills/srs-endpoint-matcher/SKILL.md +0 -67
  1303. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/__init__.py +0 -1
  1304. package/tools/vds-scripts/progress_report_orchestrator/src/progress_report_orchestrator/state/schema.py +0 -625
  1305. package/tools/vds-scripts/progress_report_orchestrator/tests/__init__.py +0 -0
  1306. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/__init__.py +0 -0
  1307. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/.gitkeep +0 -0
  1308. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/__init__.py +0 -0
  1309. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/doc-dependencies.yaml +0 -79
  1310. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-docs.yaml +0 -478
  1311. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/fr-to-services.yaml +0 -18
  1312. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/kg/registry.yaml +0 -346
  1313. package/tools/vds-scripts/progress_report_orchestrator/tests/fixtures/phase3_baseline_standard.md +0 -564
  1314. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/__init__.py +0 -0
  1315. package/tools/vds-scripts/progress_report_orchestrator/tests/integration/test_checkpoint.py +0 -276
  1316. package/tools/vds-scripts/progress_report_orchestrator/tests/test_alembic_migrations.py +0 -265
  1317. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/__init__.py +0 -0
  1318. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_analyzers.py +0 -267
  1319. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_bounded_gather.py +0 -176
  1320. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_cli_phase_report.py +0 -119
  1321. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_delta.py +0 -169
  1322. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_error_handling.py +0 -150
  1323. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_gate_exit_codes.py +0 -230
  1324. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_git_activity.py +0 -215
  1325. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_kg_parser.py +0 -267
  1326. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_autodetect.py +0 -183
  1327. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_llm_eval.py +0 -529
  1328. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_memory_integration.py +0 -151
  1329. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_migration_contract.py +0 -254
  1330. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_mode_rendering.py +0 -576
  1331. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_models.py +0 -251
  1332. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_progress_llm_config.py +0 -67
  1333. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_recommendations.py +0 -480
  1334. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_report_enhancements.py +0 -415
  1335. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_resume_reload.py +0 -343
  1336. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_trend_regression.py +0 -294
  1337. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_uc_reader.py +0 -169
  1338. package/tools/vds-scripts/progress_report_orchestrator/tests/unit/test_valence_gap.py +0 -293
  1339. package/tools/vds-scripts/project-cycle-report.json +0 -14
  1340. package/tools/vds-scripts/project-dependency-graph.json +0 -11361
  1341. package/tools/vds-scripts/project-topology.json +0 -99
  1342. package/tools/vds-scripts/public_interface_boundary_orchestrator/pyproject.toml +0 -18
  1343. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/__init__.py +0 -0
  1344. package/tools/vds-scripts/public_interface_boundary_orchestrator/src/vds_public_interface_boundary_orchestrator/cli.py +0 -232
  1345. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/__init__.py +0 -0
  1346. package/tools/vds-scripts/public_interface_boundary_orchestrator/tests/test_cli.py +0 -108
  1347. package/tools/vds-scripts/research_orchestrator/README.md +0 -68
  1348. package/tools/vds-scripts/research_orchestrator/py.typed +0 -0
  1349. package/tools/vds-scripts/research_orchestrator/pyproject.toml +0 -95
  1350. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/__init__.py +0 -3
  1351. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/_env.py +0 -11
  1352. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/cli.py +0 -335
  1353. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/config.py +0 -43
  1354. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/__init__.py +0 -0
  1355. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/models.py +0 -89
  1356. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/evidence/scoring.py +0 -102
  1357. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/exceptions.py +0 -78
  1358. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/http_client.py +0 -160
  1359. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/logging.py +0 -49
  1360. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/__init__.py +0 -0
  1361. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/output/formatters.py +0 -93
  1362. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/py.typed +0 -1
  1363. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/__init__.py +0 -0
  1364. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/build.py +0 -156
  1365. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/report/format.py +0 -147
  1366. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/__init__.py +0 -0
  1367. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health.py +0 -66
  1368. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/health_graph.py +0 -52
  1369. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/registry.py +0 -127
  1370. package/tools/vds-scripts/research_orchestrator/src/vds_research_orchestrator/tools/search.py +0 -230
  1371. package/tools/vds-scripts/research_orchestrator/tests/__init__.py +0 -0
  1372. package/tools/vds-scripts/research_orchestrator/tests/conftest.py +0 -53
  1373. package/tools/vds-scripts/research_orchestrator/tests/test_cli.py +0 -222
  1374. package/tools/vds-scripts/research_orchestrator/tests/test_config.py +0 -23
  1375. package/tools/vds-scripts/research_orchestrator/tests/test_exceptions.py +0 -62
  1376. package/tools/vds-scripts/research_orchestrator/tests/test_formatters.py +0 -89
  1377. package/tools/vds-scripts/research_orchestrator/tests/test_graph_integration.py +0 -149
  1378. package/tools/vds-scripts/research_orchestrator/tests/test_http_client.py +0 -134
  1379. package/tools/vds-scripts/research_orchestrator/tests/test_report_build.py +0 -128
  1380. package/tools/vds-scripts/research_orchestrator/tests/test_report_format.py +0 -91
  1381. package/tools/vds-scripts/research_orchestrator/tests/test_scoring.py +0 -95
  1382. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/__init__.py +0 -1
  1383. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_health.py +0 -139
  1384. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_registry.py +0 -135
  1385. package/tools/vds-scripts/research_orchestrator/tests/vds_research_orchestrator/test_tools/test_search.py +0 -238
  1386. package/tools/vds-scripts/run-history.json +0 -26
  1387. package/tools/vds-scripts/schema_converter/README.md +0 -109
  1388. package/tools/vds-scripts/schema_converter/pyproject.toml +0 -37
  1389. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/__init__.py +0 -3
  1390. package/tools/vds-scripts/schema_converter/src/vds_schema_converter/cli.py +0 -50
  1391. package/tools/vds-scripts/schema_converter/tests/__init__.py +0 -0
  1392. package/tools/vds-scripts/schema_converter/tests/test_json_schema_generator.py +0 -115
  1393. package/tools/vds-scripts/schema_converter/tests/test_mermaid_generator.py +0 -112
  1394. package/tools/vds-scripts/schema_converter/tests/test_parser.py +0 -111
  1395. package/tools/vds-scripts/schema_converter/tests/test_plantuml_generator.py +0 -112
  1396. package/tools/vds-scripts/schema_converter/tests/test_plantuml_validator.py +0 -69
  1397. package/tools/vds-scripts/schema_converter/tests/test_prisma_generator.py +0 -113
  1398. package/tools/vds-scripts/schema_converter/tests/test_sql_generator.py +0 -138
  1399. package/tools/vds-scripts/schema_converter/tests/test_typeorm_generator.py +0 -110
  1400. package/tools/vds-scripts/schema_converter/tests/test_validators.py +0 -96
  1401. package/tools/vds-scripts/spec_orchestrator/README.md +0 -13
  1402. package/tools/vds-scripts/spec_orchestrator/pyproject.toml +0 -40
  1403. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/__init__.py +0 -5
  1404. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/cli.py +0 -162
  1405. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/core.py +0 -575
  1406. package/tools/vds-scripts/spec_orchestrator/src/vds_spec_orchestrator/sync.py +0 -306
  1407. package/tools/vds-scripts/spec_orchestrator/tests/__init__.py +0 -0
  1408. package/tools/vds-scripts/spec_orchestrator/tests/test_frontmatter_drift.py +0 -243
  1409. package/tools/vds-scripts/spec_orchestrator/tests/test_sync.py +0 -342
  1410. package/tools/vds-scripts/structure_orchestrator/README.md +0 -60
  1411. package/tools/vds-scripts/structure_orchestrator/pyproject.toml +0 -103
  1412. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/__init__.py +0 -13
  1413. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/cli.py +0 -308
  1414. package/tools/vds-scripts/structure_orchestrator/src/vds_structure_orchestrator/validator.py +0 -257
  1415. package/tools/vds-scripts/structure_orchestrator/tests/__init__.py +0 -0
  1416. package/tools/vds-scripts/structure_orchestrator/tests/test_cli.py +0 -161
  1417. package/tools/vds-scripts/structure_orchestrator/tests/test_helpers.py +0 -115
  1418. package/tools/vds-scripts/structure_orchestrator/tests/test_validator.py +0 -104
  1419. package/tools/vds-scripts/task_orchestrator/README.md +0 -50
  1420. package/tools/vds-scripts/task_orchestrator/__init__.py +0 -18
  1421. package/tools/vds-scripts/task_orchestrator/pyproject.toml +0 -43
  1422. package/tools/vds-scripts/task_orchestrator/scripts/run_excel_sync.py +0 -36
  1423. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/__init__.py +0 -13
  1424. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/audit.py +0 -134
  1425. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/cli.py +0 -127
  1426. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/debug.py +0 -133
  1427. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/normalize.py +0 -113
  1428. package/tools/vds-scripts/task_orchestrator/src/vds_task_orchestrator/refine.py +0 -201
  1429. package/tools/vds-scripts/task_orchestrator/tests/__init__.py +0 -0
  1430. package/tools/vds-scripts/task_orchestrator/tests/test_task_orchestrator.py +0 -84
  1431. package/tools/vds-scripts/temp_query_projects.py +0 -2
  1432. package/tools/vds-scripts/test_small.md +0 -1
  1433. package/tools/vds-scripts/text_utils_orchestrator/pyproject.toml +0 -20
  1434. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/__init__.py +0 -7
  1435. package/tools/vds-scripts/text_utils_orchestrator/src/vds_text_utils/i18n.py +0 -143
  1436. package/tools/vds-scripts/text_utils_orchestrator/tests/__init__.py +0 -0
  1437. package/tools/vds-scripts/text_utils_orchestrator/tests/test_i18n.py +0 -53
  1438. package/tools/vds-scripts/upgrade_major.py +0 -61
  1439. package/tools/vds-scripts/upgrade_major_v2.py +0 -64
  1440. package/tools/vds-scripts/verify_violations.py +0 -57
  1441. package/tools/vds-scripts/workflow-summary.json +0 -325
  1442. package/tools/vds-scripts/workflow-summary.md +0 -8
@@ -1,3370 +0,0 @@
1
- """CLI for LSP operations using Typer."""
2
-
3
- from __future__ import annotations
4
-
5
- import fnmatch
6
- import json
7
- import logging
8
- import subprocess
9
- import sys
10
- import time
11
- from datetime import UTC, datetime
12
- from pathlib import Path
13
- from typing import Annotated, Any, Literal, TypedDict, cast
14
-
15
- import typer
16
-
17
- from vds_cli_common import (
18
- CLIContext,
19
- ErrorHandler,
20
- ExitCodes,
21
- OutputManager,
22
- create_version_callback,
23
- )
24
-
25
- from . import __version__
26
- from .core import (
27
- add_type_ignore_comment,
28
- batch_fix_all,
29
- batch_format,
30
- batch_organize_imports,
31
- check_types,
32
- completion,
33
- daemon_restart,
34
- daemon_start,
35
- daemon_status,
36
- daemon_stop,
37
- document_highlight,
38
- document_links,
39
- find_references,
40
- find_symbols,
41
- fix_all,
42
- format_document,
43
- format_range,
44
- get_callees,
45
- get_callers,
46
- get_code_actions,
47
- get_diagnostics,
48
- get_document_symbols,
49
- go_to_definition,
50
- go_to_implementation,
51
- hover,
52
- inlay_hints,
53
- lsp_health,
54
- organize_imports,
55
- rename_symbol,
56
- semantic_tokens,
57
- signature_help,
58
- suggest_imports,
59
- )
60
- from .formatters import CallGraphFormatter
61
- from .utils import _uri_to_path, load_config
62
-
63
- APP_NAME = "vds-lsp-orchestrator"
64
-
65
-
66
- class LspOverrides(TypedDict):
67
- config_file: Path | None
68
- lsp_server: str | None
69
-
70
-
71
- class PathFilters(TypedDict):
72
- include: list[str]
73
- exclude: list[str]
74
- git_tracked: bool
75
-
76
-
77
- logger = logging.getLogger(__name__)
78
-
79
-
80
- VALID_COMMANDS = [
81
- "symbol",
82
- "type-check",
83
- "diagnostics",
84
- "refs",
85
- "callers",
86
- "callees",
87
- "doc-symbols",
88
- "doc-links",
89
- "goto",
90
- "implementations",
91
- "fix-errors",
92
- "rollback",
93
- "code-actions",
94
- "index-workspace",
95
- "format",
96
- "organize-imports",
97
- "fix-all",
98
- "hover",
99
- "completion",
100
- "rename",
101
- "signature-help",
102
- "inlay-hints",
103
- "semantic-tokens",
104
- "health",
105
- "highlight",
106
- "batch-format",
107
- "batch-organize-imports",
108
- "batch-fix-all",
109
- "daemon",
110
- "suggest-imports",
111
- "ignore-comment",
112
- "detect-tools",
113
- ]
114
-
115
- app = typer.Typer(
116
- name="vds-lsp",
117
- help="Language Server Protocol operations for Python projects",
118
- rich_markup_mode="rich",
119
- invoke_without_command=True,
120
- no_args_is_help=False,
121
- )
122
-
123
- version_callback = create_version_callback(APP_NAME)
124
-
125
-
126
- def _get_state(
127
- ctx: typer.Context,
128
- ) -> tuple[
129
- CLIContext,
130
- OutputManager,
131
- ErrorHandler,
132
- Any,
133
- LspOverrides,
134
- PathFilters,
135
- Path | None,
136
- bool,
137
- ]:
138
- default_overrides: LspOverrides = {"config_file": None, "lsp_server": None}
139
- default_filters: PathFilters = {"include": [], "exclude": [], "git_tracked": False}
140
- if not isinstance(ctx.obj, dict):
141
- cli_ctx = CLIContext()
142
- output = OutputManager(cli_ctx)
143
- error_handler = ErrorHandler(output, valid_commands=VALID_COMMANDS)
144
- config = load_config(Path.cwd())
145
- return (
146
- cli_ctx,
147
- output,
148
- error_handler,
149
- config,
150
- default_overrides,
151
- default_filters,
152
- None,
153
- False,
154
- )
155
- overrides = cast("LspOverrides", ctx.obj.get("lsp_config", default_overrides))
156
- filters = cast("PathFilters", ctx.obj.get("path_filters", default_filters))
157
- return (
158
- ctx.obj["cli_ctx"],
159
- ctx.obj["output"],
160
- ctx.obj["error_handler"],
161
- ctx.obj["config"],
162
- overrides,
163
- filters,
164
- ctx.obj.get("output_file"),
165
- ctx.obj.get("verbose", False),
166
- )
167
-
168
-
169
- def _build_meta() -> dict[str, Any]:
170
- return {
171
- "timestamp": datetime.now(UTC).isoformat(),
172
- "tool": {"name": APP_NAME, "version": __version__},
173
- "python": sys.version.split()[0],
174
- "cwd": str(Path.cwd()),
175
- }
176
-
177
-
178
- def _add_meta(payload: Any) -> dict[str, Any]:
179
- meta = _build_meta()
180
- if isinstance(payload, dict):
181
- if "meta" in payload:
182
- return payload
183
- return {**payload, "meta": meta}
184
- return {"data": payload, "meta": meta}
185
-
186
-
187
- def _emit_json(output: OutputManager, payload: Any) -> None:
188
- output.output_json(_add_meta(payload))
189
-
190
-
191
- def _write_output_file(path: Path, payload: Any) -> None:
192
- path.parent.mkdir(parents=True, exist_ok=True)
193
- _ = path.write_text(json.dumps(_add_meta(payload), indent=2, default=str))
194
-
195
-
196
- def _git_root(start: Path) -> Path | None:
197
- try:
198
- result = subprocess.run(
199
- ["git", "-C", str(start), "rev-parse", "--show-toplevel"],
200
- capture_output=True,
201
- text=True,
202
- check=False,
203
- )
204
- except FileNotFoundError:
205
- return None
206
- if result.returncode != 0:
207
- return None
208
- return Path(result.stdout.strip())
209
-
210
-
211
- def _git_tracked_files(root: Path) -> list[Path]:
212
- result = subprocess.run(
213
- ["git", "-C", str(root), "ls-files"],
214
- capture_output=True,
215
- text=True,
216
- check=False,
217
- )
218
- if result.returncode != 0:
219
- return []
220
- return [root / line.strip() for line in result.stdout.splitlines() if line.strip()]
221
-
222
-
223
- def _filter_paths(
224
- *,
225
- paths: list[Path] | None,
226
- filters: PathFilters,
227
- allow_notebooks: bool = True,
228
- output: OutputManager | None = None,
229
- ) -> list[Path]:
230
- if not paths:
231
- paths = [Path.cwd()]
232
-
233
- include = filters.get("include", [])
234
- exclude = filters.get("exclude", [])
235
- git_tracked = filters.get("git_tracked", False)
236
-
237
- if not include and not exclude and not git_tracked:
238
- return paths
239
-
240
- roots = [p if p.is_absolute() else Path.cwd() / p for p in paths]
241
- base_root = _git_root(roots[0]) if git_tracked else roots[0]
242
-
243
- candidates: list[Path] = [] # Initialize to avoid "possibly unbound" error
244
- if git_tracked:
245
- if base_root is None:
246
- if output:
247
- output.output_warning(
248
- "git-tracked requested but no git repo found; falling back to filesystem scan"
249
- )
250
- git_tracked = False
251
- elif allow_notebooks:
252
- candidates = [p for p in _git_tracked_files(base_root) if p.suffix in {".py", ".ipynb"}]
253
- else:
254
- candidates = [p for p in _git_tracked_files(base_root) if p.suffix == ".py"]
255
- if not git_tracked:
256
- for root in roots:
257
- if root.is_dir():
258
- candidates.extend(root.rglob("*.py"))
259
- if allow_notebooks:
260
- candidates.extend(root.rglob("*.ipynb"))
261
- else:
262
- candidates.append(root)
263
-
264
- base_root = base_root or roots[0]
265
- filtered: list[Path] = []
266
- for path in candidates:
267
- try:
268
- rel = path.relative_to(base_root).as_posix()
269
- except ValueError:
270
- rel = path.as_posix()
271
- if include and not any(fnmatch.fnmatch(rel, pattern) for pattern in include):
272
- continue
273
- if exclude and any(fnmatch.fnmatch(rel, pattern) for pattern in exclude):
274
- continue
275
- filtered.append(path)
276
-
277
- if not filtered and output:
278
- output.output_warning("No files matched include/exclude filters")
279
- return filtered
280
-
281
-
282
- @app.callback(invoke_without_command=True)
283
- def callback(
284
- ctx: typer.Context,
285
- _version: Annotated[
286
- bool,
287
- typer.Option(
288
- "--version",
289
- "-V",
290
- callback=version_callback,
291
- is_eager=True,
292
- help="Show version and exit",
293
- ),
294
- ] = False,
295
- json_only: Annotated[
296
- bool,
297
- typer.Option(
298
- "--json-only",
299
- "-j",
300
- help="Output clean JSON only",
301
- ),
302
- ] = False,
303
- quiet: Annotated[
304
- bool,
305
- typer.Option(
306
- "--quiet",
307
- "-q",
308
- help="Suppress non-essential output",
309
- ),
310
- ] = False,
311
- verbose: Annotated[
312
- bool,
313
- typer.Option(
314
- "--verbose",
315
- "-v",
316
- help="Enable verbose output",
317
- ),
318
- ] = False,
319
- no_color: Annotated[
320
- bool,
321
- typer.Option(
322
- "--no-color",
323
- help="Disable colored output",
324
- ),
325
- ] = False,
326
- color: Annotated[
327
- bool,
328
- typer.Option(
329
- "--color",
330
- help="Force colored output",
331
- ),
332
- ] = False,
333
- output_file: Annotated[
334
- Path | None,
335
- typer.Option(
336
- "--output",
337
- help="Write JSON output to a file",
338
- ),
339
- ] = None,
340
- include: Annotated[
341
- list[str] | None,
342
- typer.Option(
343
- "--include",
344
- "-i",
345
- help="Only include files matching glob patterns",
346
- ),
347
- ] = None,
348
- exclude: Annotated[
349
- list[str] | None,
350
- typer.Option(
351
- "--exclude",
352
- "-x",
353
- help="Exclude files matching glob patterns",
354
- ),
355
- ] = None,
356
- git_tracked: Annotated[
357
- bool,
358
- typer.Option(
359
- "--git-tracked",
360
- help="Restrict to git-tracked files",
361
- ),
362
- ] = False,
363
- lsp_server: Annotated[
364
- str | None,
365
- typer.Option(
366
- "--lsp-server",
367
- help="Override LSP server command (e.g., basedpyright-langserver)",
368
- ),
369
- ] = None,
370
- config_file: Annotated[
371
- Path | None,
372
- typer.Option(
373
- "--config-file",
374
- help="Override pyright config file (pyrightconfig.json or .basedpyright)",
375
- exists=True,
376
- dir_okay=False,
377
- readable=True,
378
- ),
379
- ] = None,
380
- wsl_optimize: Annotated[
381
- bool,
382
- typer.Option(
383
- "--wsl-optimize/--no-wsl-optimize",
384
- help="Enable WSL2 filesystem optimization (auto-detected by default)",
385
- ),
386
- ] = False,
387
- docker: Annotated[
388
- bool,
389
- typer.Option(
390
- "--docker",
391
- help="Run LSP server in Docker container for isolated, reproducible environment",
392
- ),
393
- ] = False,
394
- ) -> None:
395
- cli_ctx = CLIContext.from_options(
396
- json_only=json_only,
397
- quiet=quiet,
398
- no_color=no_color,
399
- force_color=color,
400
- )
401
- if verbose:
402
- logging.basicConfig(level=logging.DEBUG)
403
- output = OutputManager(cli_ctx)
404
- error_handler = ErrorHandler(output, valid_commands=VALID_COMMANDS)
405
- config = load_config(Path.cwd(), config_file=config_file, lsp_server=lsp_server)
406
-
407
- # Override wsl_optimize from CLI flag if explicitly set
408
- if wsl_optimize:
409
- config.wsl_optimize = True
410
- elif ctx.params.get("no_wsl_optimize", False):
411
- config.wsl_optimize = False
412
-
413
- # Apply Docker mode from CLI flag
414
- if docker:
415
- config.docker_mode = True
416
- if not verbose:
417
- output.ctx.console.print(
418
- "[cyan]Docker mode enabled[/cyan] - LSP server will run in container"
419
- )
420
-
421
- ctx.obj = {
422
- "cli_ctx": cli_ctx,
423
- "output": output,
424
- "error_handler": error_handler,
425
- "config": config,
426
- "output_file": output_file,
427
- "verbose": verbose,
428
- "path_filters": {
429
- "include": include or [],
430
- "exclude": exclude or [],
431
- "git_tracked": git_tracked,
432
- },
433
- "lsp_config": {
434
- "config_file": config_file,
435
- "lsp_server": lsp_server,
436
- },
437
- }
438
-
439
- if ctx.invoked_subcommand is None:
440
- output.ctx.console.print(ctx.get_help())
441
- raise typer.Exit(ExitCodes.SUCCESS)
442
-
443
-
444
- @app.command("symbol")
445
- def symbol_cmd(
446
- ctx: typer.Context,
447
- query: Annotated[str, typer.Argument(help="Symbol name or pattern to search")],
448
- kind: Annotated[
449
- str | None,
450
- typer.Option("--kind", "-k", help="Filter by symbol kind (class, function, method)"),
451
- ] = None,
452
- match: Annotated[
453
- str,
454
- typer.Option(
455
- "--match",
456
- help="Match mode: contains, exact, regex",
457
- ),
458
- ] = "contains",
459
- limit: Annotated[
460
- int,
461
- typer.Option("--limit", "-l", help="Maximum number of results (0 for no limit)"),
462
- ] = 50,
463
- path: Annotated[
464
- Path | None,
465
- typer.Option("--path", "-p", help="Path to search (default: current directory)"),
466
- ] = None,
467
- ) -> None:
468
- """Search for symbols in the workspace."""
469
- cli_ctx, output, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
470
- _get_state(ctx)
471
- )
472
- search_path = path or Path.cwd()
473
- if search_path.is_file():
474
- search_path = search_path.parent
475
-
476
- results: list[dict[str, Any]] = [] # Initialize to avoid "possibly unbound" error
477
- try:
478
- results = find_symbols(search_path, query, kind, match=match, limit=limit, **lsp_config)
479
- except Exception as exc:
480
- error_handler.handle_general_error(
481
- "Failed to search for symbols",
482
- details={"error": str(exc)},
483
- )
484
- return # Exit early if symbol search fails
485
-
486
- if (
487
- path_filters.get("include")
488
- or path_filters.get("exclude")
489
- or path_filters.get("git_tracked")
490
- ):
491
- allowed = _filter_paths(
492
- paths=[search_path],
493
- filters=path_filters,
494
- allow_notebooks=config.notebook_support,
495
- output=output,
496
- )
497
- allowed_rel = set()
498
- for allowed_path in allowed:
499
- allowed_rel.add(allowed_path.as_posix())
500
- try:
501
- allowed_rel.add(allowed_path.relative_to(search_path).as_posix())
502
- except ValueError:
503
- continue
504
- results = [sym for sym in results if sym.get("location", {}).get("file") in allowed_rel]
505
-
506
- if output_file:
507
- _write_output_file(output_file, {"symbols": results})
508
-
509
- if cli_ctx.json_only:
510
- _emit_json(output, {"symbols": results})
511
- elif not cli_ctx.quiet:
512
- from rich.table import Table
513
-
514
- table = Table(title=f"Symbols matching '{query}'")
515
- table.add_column("Name", style="cyan")
516
- table.add_column("Kind", style="green")
517
- table.add_column("Location", style="yellow")
518
-
519
- for sym in results:
520
- loc = sym["location"]
521
- table.add_row(sym["name"], sym["kind"], f"{loc['file']}:{loc['line']}")
522
- output.ctx.console.print(table)
523
-
524
-
525
- @app.command("diagnostics")
526
- def diagnostics_cmd(
527
- ctx: typer.Context,
528
- paths: Annotated[
529
- list[Path] | None,
530
- typer.Argument(..., help="Paths to check"),
531
- ] = None,
532
- include_warnings: Annotated[
533
- bool,
534
- typer.Option("--warnings", "-w", help="Include warnings in output"),
535
- ] = False,
536
- fixable: Annotated[
537
- bool,
538
- typer.Option("--fixable", help="Annotate diagnostics with available code actions"),
539
- ] = False,
540
- max_fixable: Annotated[
541
- int | None,
542
- typer.Option("--max-fixable", help="Limit number of diagnostics to scan for fixes"),
543
- ] = 50,
544
- severity: Annotated[
545
- list[str] | None,
546
- typer.Option("--severity", "-s", help="Filter by severity (error, warning, info, hint)"),
547
- ] = None,
548
- code: Annotated[
549
- list[str] | None,
550
- typer.Option("--code", help="Filter by diagnostic code"),
551
- ] = None,
552
- file: Annotated[
553
- list[str] | None,
554
- typer.Option("--file", help="Filter by file glob pattern"),
555
- ] = None,
556
- watch: Annotated[
557
- bool,
558
- typer.Option("--watch", help="Watch files and rerun diagnostics on changes"),
559
- ] = False,
560
- interval: Annotated[
561
- float,
562
- typer.Option("--interval", help="Polling interval (seconds) for watch mode"),
563
- ] = 2.0,
564
- ) -> None:
565
- """Get diagnostics for specified paths."""
566
- cli_ctx, output, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
567
- _get_state(ctx)
568
- )
569
- check_paths = _filter_paths(
570
- paths=paths, filters=path_filters, allow_notebooks=config.notebook_support, output=output
571
- )
572
- if not check_paths:
573
- diagnostics = {
574
- "diagnostics": [],
575
- "summary": {
576
- "total_errors": 0,
577
- "total_warnings": 0,
578
- "total_info": 0,
579
- "by_category": {},
580
- "by_source": {},
581
- },
582
- "sources": [],
583
- }
584
- if output_file:
585
- _write_output_file(output_file, diagnostics)
586
- if cli_ctx.json_only:
587
- _emit_json(output, diagnostics)
588
- return
589
-
590
- if severity:
591
- include_warnings = include_warnings or any(
592
- level.lower() in {"warning", "info", "hint"} for level in severity
593
- )
594
-
595
- def filter_diagnostics(payload: dict[str, Any]) -> dict[str, Any]:
596
- diags = payload.get("diagnostics", [])
597
- filtered = []
598
- severity_filter = [s.lower() for s in severity or []]
599
- code_filter = set(code or [])
600
- file_patterns = file or []
601
-
602
- for diag in diags:
603
- if severity_filter and diag.get("severity", "").lower() not in severity_filter:
604
- continue
605
- if code_filter and diag.get("code") not in code_filter:
606
- continue
607
- if file_patterns:
608
- file_path = diag.get("file") or ""
609
- if not any(fnmatch.fnmatch(file_path, pattern) for pattern in file_patterns):
610
- continue
611
- filtered.append(diag)
612
-
613
- summary: dict[str, Any] = {
614
- "total_errors": 0,
615
- "total_warnings": 0,
616
- "total_info": 0,
617
- "by_category": {},
618
- "by_source": {},
619
- }
620
- for diag in filtered:
621
- sev = diag.get("severity")
622
- if sev == "error":
623
- summary["total_errors"] += 1
624
- elif sev == "warning":
625
- summary["total_warnings"] += 1
626
- elif sev == "info":
627
- summary["total_info"] += 1
628
- category = diag.get("category", "general")
629
- summary["by_category"][category] = summary["by_category"].get(category, 0) + 1
630
- src = diag.get("source", "unknown")
631
- summary["by_source"][src] = summary["by_source"].get(src, 0) + 1
632
-
633
- return {**payload, "diagnostics": filtered, "summary": summary}
634
-
635
- def run_once() -> dict[str, Any]:
636
- try:
637
- payload = get_diagnostics(
638
- check_paths,
639
- include_warnings,
640
- include_fixable=fixable,
641
- max_fixable=max_fixable,
642
- **lsp_config,
643
- )
644
- except Exception as exc:
645
- error_handler.handle_general_error(
646
- "Failed to get diagnostics",
647
- details={"error": str(exc)},
648
- )
649
- # Return empty result structure on error
650
- return {
651
- "diagnostics": [],
652
- "summary": {
653
- "total_errors": 0,
654
- "total_warnings": 0,
655
- "total_info": 0,
656
- "by_category": {},
657
- "by_source": {},
658
- },
659
- }
660
- return filter_diagnostics(payload)
661
-
662
- if watch:
663
- output.ctx.console.print("[bold]Watching for changes...[/bold]")
664
- last_mtimes: dict[Path, float] = {}
665
- try:
666
- while True:
667
- changed = False
668
- for path in check_paths:
669
- try:
670
- mtime = path.stat().st_mtime
671
- except FileNotFoundError:
672
- mtime = 0.0
673
- if last_mtimes.get(path) != mtime:
674
- changed = True
675
- last_mtimes[path] = mtime
676
-
677
- if changed or not last_mtimes:
678
- if not cli_ctx.quiet and not cli_ctx.json_only:
679
- output.ctx.console.print("[dim]Running diagnostics...[/dim]")
680
- diagnostics = run_once()
681
- if output_file:
682
- _write_output_file(output_file, diagnostics)
683
- if cli_ctx.json_only:
684
- _emit_json(output, diagnostics)
685
- elif not cli_ctx.quiet:
686
- from rich.table import (
687
- Table,
688
- )
689
-
690
- diags = diagnostics.get("diagnostics", [])
691
- table = Table(title="Diagnostics")
692
- table.add_column("File", style="cyan")
693
- table.add_column("Severity", style="magenta")
694
- table.add_column("Message", style="white")
695
- table.add_column("Category", style="green")
696
- table.add_column("Source", style="dim")
697
- if fixable:
698
- table.add_column("Fixable", style="green")
699
-
700
- for diag in diags:
701
- file_path = diag.get("file", "unknown")
702
- msg = diag.get("message", "Unknown error")
703
- sev = diag.get("severity", "error")
704
- row = [
705
- str(file_path),
706
- sev,
707
- msg,
708
- diag.get("category", "general"),
709
- diag.get("source", "unknown"),
710
- ]
711
- if fixable:
712
- row.append("yes" if diag.get("fixable") else "no")
713
- table.add_row(*row)
714
-
715
- output.ctx.console.print(table)
716
-
717
- time.sleep(interval)
718
- except KeyboardInterrupt:
719
- output.ctx.console.print("[yellow]Stopped watch mode.[/yellow]")
720
- return
721
-
722
- diagnostics = run_once()
723
-
724
- if output_file:
725
- _write_output_file(output_file, diagnostics)
726
-
727
- if cli_ctx.json_only:
728
- _emit_json(output, diagnostics)
729
- elif not cli_ctx.quiet:
730
- from rich.table import Table
731
-
732
- diags = diagnostics.get("diagnostics", [])
733
- table = Table(title="Diagnostics")
734
- table.add_column("File", style="cyan")
735
- table.add_column("Severity", style="magenta")
736
- table.add_column("Message", style="white")
737
- table.add_column("Category", style="green")
738
- table.add_column("Source", style="dim")
739
- if fixable:
740
- table.add_column("Fixable", style="green")
741
-
742
- for diag in diags:
743
- file_path = diag.get("file", "unknown")
744
- # Handle both formats (basedpyright raw or normalized)
745
- # If normalized by BasedPyrightRunner, it might have line info
746
-
747
- # Simple fallback display
748
- msg = diag.get("message", "Unknown error")
749
- severity = diag.get("severity", "error")
750
-
751
- row = [
752
- str(file_path),
753
- severity,
754
- msg,
755
- diag.get("category", "general") or "general",
756
- diag.get("source", "unknown") or "unknown",
757
- ]
758
- if fixable:
759
- row.append("yes" if diag.get("fixable") else "no")
760
- table.add_row(*row) # pyright: ignore[reportArgumentType]
761
-
762
- output.ctx.console.print(table)
763
-
764
-
765
- @app.command("type-check")
766
- def type_check_cmd(
767
- ctx: typer.Context,
768
- paths: Annotated[
769
- list[Path],
770
- typer.Argument(..., help="Paths to type check"),
771
- ],
772
- mode: Annotated[
773
- str,
774
- typer.Option("--mode", "-m", help="Type checking mode (basic, standard, strict)"),
775
- ] = "standard",
776
- fix: Annotated[
777
- bool,
778
- typer.Option("--fix", "-f", help="Auto-fix applicable issues"),
779
- ] = False,
780
- type_checker: Annotated[
781
- str,
782
- typer.Option(
783
- "--type-checker",
784
- "-t",
785
- help="Type checker to use (auto, mypy, basedpyright, pyright, pylsp)",
786
- ),
787
- ] = "auto",
788
- dry_run: Annotated[
789
- bool,
790
- typer.Option("--dry-run", help="Show what would be checked without running"),
791
- ] = False,
792
- ) -> None:
793
- """Run type checking on specified paths."""
794
- cli_ctx, output, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
795
- _get_state(ctx)
796
- )
797
- check_paths = _filter_paths(
798
- paths=paths, filters=path_filters, allow_notebooks=config.notebook_support, output=output
799
- )
800
- if not check_paths:
801
- result = {"summary": "No paths matched filters", "diagnostics": []}
802
- if output_file:
803
- _write_output_file(output_file, result)
804
- if cli_ctx.json_only:
805
- _emit_json(output, result)
806
- return
807
-
808
- # Handle dry-run mode
809
- if dry_run:
810
- dry_run_info = {
811
- "paths": [str(p) for p in check_paths],
812
- "type_checker": type_checker,
813
- "mode": mode,
814
- "fix": fix,
815
- }
816
- if output_file:
817
- _write_output_file(output_file, {"dry_run": True, **dry_run_info})
818
- if cli_ctx.json_only:
819
- _emit_json(output, {"dry_run": True, **dry_run_info})
820
- elif not cli_ctx.quiet:
821
- output.ctx.console.print(
822
- f"[yellow]Would check:[/yellow] {', '.join(str(p) for p in check_paths)}"
823
- )
824
- output.ctx.console.print(f"[cyan]Type checker:[/cyan] {type_checker}")
825
- output.ctx.console.print(f"[cyan]Mode:[/cyan] {mode}")
826
- return
827
-
828
- result: dict[str, Any] = {} # Initialize to avoid "possibly unbound" error
829
- try:
830
- result = check_types(check_paths, mode, fix, type_checker=type_checker, **lsp_config)
831
- except Exception as exc:
832
- error_handler.handle_general_error(
833
- "Type checking failed",
834
- details={"error": str(exc)},
835
- )
836
- return # Exit early on error
837
-
838
- if output_file:
839
- _write_output_file(output_file, result)
840
-
841
- if cli_ctx.json_only:
842
- _emit_json(output, result)
843
- elif not cli_ctx.quiet:
844
- from rich.table import Table
845
-
846
- diagnostics_data = result.get("diagnostics", [])
847
-
848
- output.ctx.console.print("[bold]Type Check Results[/bold]")
849
-
850
- if diagnostics_data:
851
- table = Table(title=f"Diagnostics ({len(diagnostics_data)})")
852
- table.add_column("File", style="cyan")
853
- table.add_column("Severity", style="magenta")
854
- table.add_column("Message", style="white")
855
- table.add_column("Rule", style="dim")
856
-
857
- for diag in diagnostics_data:
858
- file_path = diag.get("file", "unknown")
859
- range_start = diag.get("range", {}).get("start", {})
860
- line = range_start.get("line", 0) + 1
861
- col = range_start.get("character", 0) + 1
862
-
863
- table.add_row(
864
- f"{file_path}:{line}:{col}",
865
- diag.get("severity", "unknown"),
866
- diag.get("message", ""),
867
- diag.get("rule", ""),
868
- )
869
- output.ctx.console.print(table)
870
- else:
871
- output.ctx.console.print("[green]No issues found![/green]")
872
-
873
- if "error" in result:
874
- output.ctx.console.print(f"[red]Error: {result['error']}[/red]")
875
-
876
-
877
- @app.command("doc-symbols")
878
- def doc_symbols_cmd(
879
- ctx: typer.Context,
880
- file: Annotated[
881
- Path,
882
- typer.Argument(..., help="File to analyze"),
883
- ],
884
- ) -> None:
885
- """Get document symbols for a file."""
886
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
887
- _get_state(ctx)
888
- )
889
-
890
- symbols_result: dict[str, Any] = {
891
- "symbols": [],
892
- "source": "unknown",
893
- } # Initialize to avoid "possibly unbound"
894
- try:
895
- symbols_result = get_document_symbols(file, **lsp_config)
896
- except Exception as exc:
897
- error_handler.handle_general_error(
898
- "Failed to get document symbols",
899
- details={"error": str(exc)},
900
- )
901
- return # Exit early on error
902
-
903
- if output_file:
904
- _write_output_file(output_file, symbols_result)
905
-
906
- if cli_ctx.json_only:
907
- _emit_json(output, symbols_result)
908
- elif not cli_ctx.quiet:
909
- from rich.tree import Tree
910
-
911
- symbols = symbols_result.get("symbols", [])
912
- src = symbols_result.get("source", "unknown")
913
-
914
- tree = Tree(f"Symbols in {file} (Source: {src})")
915
-
916
- # Helper to recursively build tree (if LSP returns hierarchy)
917
- def build_tree(nodes, parent_tree):
918
- for node in nodes:
919
- # Handle both LSP and AST formats
920
- name = node.get("name", "unknown")
921
- kind = node.get("kind", "unknown")
922
-
923
- branch = parent_tree.add(f"[cyan]{name}[/cyan] [dim]({kind})[/dim]")
924
-
925
- if "children" in node:
926
- build_tree(node["children"], branch)
927
-
928
- build_tree(symbols, tree)
929
- output.ctx.console.print(tree)
930
-
931
-
932
- @app.command("goto")
933
- def goto_cmd(
934
- ctx: typer.Context,
935
- symbol: Annotated[str, typer.Argument(help="Symbol to go to definition for")],
936
- file: Annotated[
937
- str | None,
938
- typer.Option("--file", "-f", help="File location for disambiguation (path:line:col)"),
939
- ] = None,
940
- ) -> None:
941
- """Go to definition of a symbol.
942
-
943
- Supports:
944
- - Symbol definitions (functions, classes, variables)
945
- - Operator definitions (goes to dunder method like __add__, __mul__, etc.)
946
-
947
- For operators, use --file with the operator position:
948
- vds-lsp goto --file "myfile.py:10:8" "__add__"
949
- """
950
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
951
- _get_state(ctx)
952
- )
953
-
954
- location: dict[str, Any] = {"locations": []} # Initialize to avoid "possibly unbound"
955
- try:
956
- location = go_to_definition(symbol, file, **lsp_config)
957
- except Exception as exc:
958
- error_handler.handle_general_error(
959
- "Failed to go to definition",
960
- details={"error": str(exc)},
961
- )
962
- return # Exit early on error
963
-
964
- if output_file:
965
- _write_output_file(output_file, location)
966
-
967
- if cli_ctx.json_only:
968
- _emit_json(output, location)
969
- elif not cli_ctx.quiet:
970
- from rich.panel import Panel
971
-
972
- output.ctx.console.print(Panel(str(location), title="Definition Locations"))
973
-
974
-
975
- @app.command("implementations")
976
- def implementations_cmd(
977
- ctx: typer.Context,
978
- location: Annotated[
979
- str,
980
- typer.Argument(..., help="Location in format file:line:col"),
981
- ],
982
- ) -> None:
983
- """Go to implementations of the symbol at the given location."""
984
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
985
- _get_state(ctx)
986
- )
987
-
988
- result: dict[str, Any] = {
989
- "locations": [],
990
- "source": "unknown",
991
- "message": "",
992
- } # Initialize to avoid "possibly unbound"
993
- try:
994
- result = go_to_implementation(location, **lsp_config)
995
- except Exception as exc:
996
- error_handler.handle_general_error(
997
- "Failed to find implementations",
998
- details={"error": str(exc)},
999
- )
1000
- return # Exit early on error
1001
-
1002
- if output_file:
1003
- _write_output_file(output_file, result)
1004
-
1005
- if cli_ctx.json_only:
1006
- _emit_json(output, result)
1007
- elif not cli_ctx.quiet:
1008
- from rich.table import Table
1009
-
1010
- locations = result.get("locations", [])
1011
- source = result.get("source", "unknown")
1012
- message = result.get("message", "")
1013
-
1014
- table = Table(title=f"Implementations at {location} (Source: {source})")
1015
- table.add_column("File", style="cyan")
1016
- table.add_column("Line", style="green")
1017
- table.add_column("Column", style="blue")
1018
-
1019
- for loc in locations:
1020
- if isinstance(loc, dict):
1021
- uri = loc.get("uri", "")
1022
- range_info = loc.get("range", {})
1023
- if uri:
1024
- file_path = _uri_to_path(uri)
1025
- start = range_info.get("start", {})
1026
- line = start.get("line", 0) + 1
1027
- col = start.get("character", 0) + 1
1028
- table.add_row(str(file_path), str(line), str(col))
1029
-
1030
- output.ctx.console.print(table)
1031
- if message:
1032
- output.ctx.console.print(f"[dim]{message}[/dim]")
1033
-
1034
-
1035
- @app.command("highlight")
1036
- def highlight_cmd(
1037
- ctx: typer.Context,
1038
- location: Annotated[
1039
- str,
1040
- typer.Argument(..., help="Location in format file:line:col"),
1041
- ],
1042
- ) -> None:
1043
- """Highlight all references to the symbol at the given location in the current file."""
1044
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
1045
- _get_state(ctx)
1046
- )
1047
-
1048
- result: dict[str, Any] = {
1049
- "highlights": [],
1050
- "source": "unknown",
1051
- } # Initialize to avoid "possibly unbound"
1052
- try:
1053
- parts = location.split(":")
1054
- if len(parts) < 3:
1055
- raise ValueError("Location must be in format file:line:col")
1056
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
1057
-
1058
- result = document_highlight(file_path, line, col, **lsp_config)
1059
- except Exception as exc:
1060
- error_handler.handle_general_error(
1061
- "Failed to get document highlights",
1062
- details={"error": str(exc)},
1063
- )
1064
- return # Exit early on error
1065
-
1066
- if output_file:
1067
- _write_output_file(output_file, result)
1068
-
1069
- if cli_ctx.json_only:
1070
- _emit_json(output, result)
1071
- elif not cli_ctx.quiet:
1072
- from rich.table import Table
1073
-
1074
- highlights = result.get("highlights", [])
1075
- src = result.get("source", "unknown")
1076
-
1077
- table = Table(title=f"Document Highlights at {location} (Source: {src})")
1078
- table.add_column("Line", style="cyan")
1079
- table.add_column("Column", style="magenta")
1080
- table.add_column("End Line", style="cyan")
1081
- table.add_column("End Column", style="magenta")
1082
- table.add_column("Kind", style="green")
1083
-
1084
- for hl in highlights:
1085
- range_info = hl.get("range", {})
1086
- start = range_info.get("start", {})
1087
- end = range_info.get("end", {})
1088
- kind = hl.get("kind_name", "Unknown")
1089
- table.add_row(
1090
- str(start.get("line", 0)),
1091
- str(start.get("character", 0)),
1092
- str(end.get("line", 0)),
1093
- str(end.get("character", 0)),
1094
- kind,
1095
- )
1096
-
1097
- output.ctx.console.print(table)
1098
-
1099
-
1100
- @app.command("doc-links")
1101
- def doc_links_cmd(
1102
- ctx: typer.Context,
1103
- file: Annotated[
1104
- str,
1105
- typer.Argument(..., help="Path to the file to analyze for links"),
1106
- ],
1107
- ) -> None:
1108
- """Find all clickable links in a document (URLs, imports, file references)."""
1109
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
1110
- _get_state(ctx)
1111
- )
1112
-
1113
- result: dict[str, Any] = {
1114
- "links": [],
1115
- "source": "unknown",
1116
- } # Initialize to avoid "possibly unbound"
1117
- try:
1118
- result = document_links(file, **lsp_config)
1119
- except Exception as exc:
1120
- error_handler.handle_general_error(
1121
- "Failed to get document links",
1122
- details={"error": str(exc)},
1123
- )
1124
- return # Exit early on error
1125
-
1126
- if output_file:
1127
- _write_output_file(output_file, result)
1128
-
1129
- if cli_ctx.json_only:
1130
- _emit_json(output, result)
1131
- elif not cli_ctx.quiet:
1132
- from rich.table import Table
1133
-
1134
- links = result.get("links", [])
1135
- src = result.get("source", "unknown")
1136
- message = result.get("message", "")
1137
-
1138
- table = Table(title=f"Document Links in {file} (Source: {src})")
1139
- table.add_column("Line", style="cyan")
1140
- table.add_column("Start Col", style="magenta")
1141
- table.add_column("End Col", style="magenta")
1142
- table.add_column("Target", style="green")
1143
- table.add_column("Kind", style="yellow")
1144
-
1145
- for link in links:
1146
- range_info = link.get("range", {})
1147
- start = range_info.get("start", {})
1148
- end = range_info.get("end", {})
1149
- target = link.get("target", "")
1150
- kind = link.get("kind", link.get("tooltip", ""))
1151
-
1152
- table.add_row(
1153
- str(start.get("line", 0)),
1154
- str(start.get("character", 0)),
1155
- str(end.get("character", 0)),
1156
- target[:80] if target else "", # Truncate long targets
1157
- kind,
1158
- )
1159
-
1160
- output.ctx.console.print(table)
1161
- if message:
1162
- output.ctx.console.print(f"[dim]{message}[/dim]")
1163
-
1164
-
1165
- @app.command("refs")
1166
- def refs_cmd(
1167
- ctx: typer.Context,
1168
- symbol: Annotated[str, typer.Argument(help="Symbol to find references for")],
1169
- file: Annotated[
1170
- str | None,
1171
- typer.Option("--file", "-f", help="File location for disambiguation (path:line:col)"),
1172
- ] = None,
1173
- context_lines: Annotated[
1174
- int,
1175
- typer.Option("--context", "-c", help="Number of context lines to include"),
1176
- ] = 0,
1177
- ) -> None:
1178
- """Find all references to a symbol."""
1179
- cli_ctx, output, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
1180
- _get_state(ctx)
1181
- )
1182
-
1183
- references: dict[str, Any] = {"references": []} # Initialize to avoid "possibly unbound"
1184
- try:
1185
- references = find_references(symbol, file, context_lines=context_lines, **lsp_config)
1186
- except Exception as exc:
1187
- error_handler.handle_general_error(
1188
- "Failed to find references",
1189
- details={"error": str(exc)},
1190
- )
1191
- return # Exit early on error
1192
-
1193
- if (
1194
- path_filters.get("include")
1195
- or path_filters.get("exclude")
1196
- or path_filters.get("git_tracked")
1197
- ):
1198
- allowed = _filter_paths(
1199
- paths=[Path.cwd()],
1200
- filters=path_filters,
1201
- allow_notebooks=config.notebook_support,
1202
- output=output,
1203
- )
1204
- allowed_rel = set()
1205
- for allowed_path in allowed:
1206
- allowed_rel.add(allowed_path.as_posix())
1207
- try:
1208
- allowed_rel.add(allowed_path.relative_to(Path.cwd()).as_posix())
1209
- except ValueError:
1210
- continue
1211
- filtered_refs: list[dict[str, Any]] = []
1212
- for ref in references.get("references", []):
1213
- if "location" in ref:
1214
- if ref["location"].get("file") in allowed_rel:
1215
- filtered_refs.append(ref)
1216
- elif "uri" in ref:
1217
- uri_val = ref.get("uri")
1218
- if not uri_val:
1219
- continue
1220
- rel = uri_val.replace("file://", "")
1221
- if rel in allowed_rel:
1222
- filtered_refs.append(ref)
1223
- references = {**references, "references": filtered_refs}
1224
-
1225
- if output_file:
1226
- _write_output_file(output_file, references)
1227
-
1228
- if cli_ctx.json_only:
1229
- _emit_json(output, references)
1230
- elif not cli_ctx.quiet:
1231
- from rich.table import Table
1232
-
1233
- refs_list = references.get("references", [])
1234
- src = references.get("source", "unknown")
1235
-
1236
- table = Table(title=f"References to '{symbol}' (Source: {src})")
1237
- table.add_column("Location", style="cyan")
1238
- table.add_column("Line", style="magenta")
1239
- table.add_column("Category", style="green")
1240
- if context_lines > 0:
1241
- table.add_column("Context", style="white")
1242
-
1243
- for ref in refs_list:
1244
- if "location" in ref: # AST format
1245
- loc = ref["location"]
1246
- row = [loc["file"], str(loc["line"]), ref.get("category", "reference")]
1247
- if context_lines > 0:
1248
- context = ref.get("context", {})
1249
- row.append(context.get("line_text", ""))
1250
- table.add_row(*row)
1251
- elif "uri" in ref: # LSP format
1252
- uri_value = ref.get("uri")
1253
- if not uri_value:
1254
- continue
1255
- uri = uri_value.replace("file://", "")
1256
- line = ref["range"]["start"]["line"] + 1
1257
- row = [uri, str(line), ref.get("category", "reference")]
1258
- if context_lines > 0:
1259
- context = ref.get("context", {})
1260
- row.append(context.get("line_text", ""))
1261
- table.add_row(*row)
1262
-
1263
- output.ctx.console.print(table)
1264
-
1265
-
1266
- @app.command("fix-errors")
1267
- def fix_errors_cmd(
1268
- ctx: typer.Context,
1269
- paths: Annotated[
1270
- list[Path],
1271
- typer.Argument(..., help="Paths to fix"),
1272
- ],
1273
- apply: Annotated[
1274
- bool,
1275
- typer.Option("--apply", "-a", help="Apply fixes to files"),
1276
- ] = False,
1277
- yes: Annotated[
1278
- bool,
1279
- typer.Option("--yes", "-y", help="Confirm applying fixes"),
1280
- ] = False,
1281
- max_actions: Annotated[
1282
- int | None,
1283
- typer.Option("--max-actions", help="Limit number of actions applied"),
1284
- ] = None,
1285
- kinds: Annotated[
1286
- list[str] | None,
1287
- typer.Option(
1288
- "--kinds",
1289
- help="Limit code actions by kind prefix (e.g. quickfix, refactor, source.organizeImports)",
1290
- ),
1291
- ] = None,
1292
- confirm_annotations: Annotated[
1293
- bool,
1294
- typer.Option("--confirm-annotations", help="Allow edits that require change annotations"),
1295
- ] = False,
1296
- max_previews: Annotated[
1297
- int,
1298
- typer.Option("--max-previews", help="Limit number of preview diffs"),
1299
- ] = 5,
1300
- patch_file: Annotated[
1301
- Path | None,
1302
- typer.Option("--patch-file", help="Write unified diff output to a file"),
1303
- ] = None,
1304
- ) -> None:
1305
- """Auto-fix errors in specified paths."""
1306
- cli_ctx, output, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
1307
- _get_state(ctx)
1308
- )
1309
- check_paths = _filter_paths(
1310
- paths=paths, filters=path_filters, allow_notebooks=config.notebook_support, output=output
1311
- )
1312
- if not check_paths:
1313
- result = {"message": "No paths matched filters.", "fixed_count": 0, "actions_available": 0}
1314
- if output_file:
1315
- _write_output_file(output_file, result)
1316
- if cli_ctx.json_only:
1317
- _emit_json(output, result)
1318
- return
1319
-
1320
- try:
1321
- from .core import fix_errors
1322
-
1323
- if apply and not yes:
1324
- if cli_ctx.json_only:
1325
- error_handler.handle_general_error(
1326
- "Apply requires confirmation",
1327
- details={"message": "Use --yes to confirm applying fixes."},
1328
- )
1329
- return
1330
- confirm = typer.confirm("Apply fixes to files?")
1331
- if not confirm:
1332
- output.output_warning("Aborted applying fixes.")
1333
- return
1334
-
1335
- result = fix_errors(
1336
- check_paths,
1337
- apply=apply,
1338
- max_actions=max_actions,
1339
- allow_kinds=kinds,
1340
- confirm_annotations=confirm_annotations,
1341
- **lsp_config,
1342
- )
1343
- except Exception as exc:
1344
- error_handler.handle_general_error(
1345
- "Failed to fix errors",
1346
- details={"error": str(exc)},
1347
- )
1348
- return # Exit early on error
1349
-
1350
- if output_file:
1351
- _write_output_file(output_file, result)
1352
-
1353
- if patch_file and not apply:
1354
- patch_text = result.get("patch") or ""
1355
- if patch_text.strip():
1356
- patch_file.parent.mkdir(parents=True, exist_ok=True)
1357
- _ = patch_file.write_text(patch_text)
1358
- elif not cli_ctx.quiet and not cli_ctx.json_only:
1359
- output.ctx.console.print("[yellow]No patch content to write.[/yellow]")
1360
-
1361
- if cli_ctx.json_only:
1362
- _emit_json(output, result)
1363
- elif not cli_ctx.quiet:
1364
- output.ctx.console.print(result.get("message", "Operation complete"))
1365
-
1366
- if apply:
1367
- fixed = result.get("fixed_count", 0)
1368
- if fixed > 0:
1369
- output.ctx.console.print(f"[green]Applied {fixed} fixes[/green]")
1370
- if result.get("backup_dir"):
1371
- output.ctx.console.print(f"Backup: {result['backup_dir']}")
1372
- if result.get("skipped_needs_confirmation"):
1373
- output.ctx.console.print(
1374
- "[yellow]Some actions were skipped due to required change annotations. "
1375
- "Re-run with --confirm-annotations to apply them.[/yellow]",
1376
- )
1377
- if patch_file:
1378
- output.ctx.console.print(
1379
- "[yellow]Patch file output is only available for preview mode (no --apply).[/yellow]",
1380
- )
1381
- else:
1382
- previews = result.get("previews", [])
1383
- if previews:
1384
- import difflib
1385
-
1386
- for i, preview in enumerate(previews):
1387
- if i >= max_previews:
1388
- break
1389
- if "command" in preview and "before" not in preview:
1390
- output.ctx.console.print(
1391
- f"[cyan]{preview.get('title', 'Command')}[/cyan]: {preview['command']}",
1392
- )
1393
- continue
1394
- if preview.get("needs_confirmation"):
1395
- output.ctx.console.print(
1396
- "[yellow]Action requires confirmation via change annotations. "
1397
- "Use --confirm-annotations to apply.[/yellow]",
1398
- )
1399
- before = preview.get("before", "").splitlines(keepends=True)
1400
- after = preview.get("after", "").splitlines(keepends=True)
1401
- path = preview.get("file", "unknown")
1402
- diff = difflib.unified_diff(
1403
- before,
1404
- after,
1405
- fromfile=f"{path}:before",
1406
- tofile=f"{path}:after",
1407
- )
1408
- output.ctx.console.print("".join(diff))
1409
-
1410
- if len(previews) > max_previews:
1411
- output.ctx.console.print(
1412
- f"[yellow]Showing {max_previews} of {len(previews)} previews. Use --json-only for full output.[/yellow]",
1413
- )
1414
- if patch_file and (result.get("patch") or "").strip():
1415
- output.ctx.console.print(f"[green]Wrote patch file: {patch_file}[/green]")
1416
-
1417
-
1418
- @app.command("rollback")
1419
- def rollback_cmd(
1420
- ctx: typer.Context,
1421
- backup_dir: Annotated[
1422
- Path,
1423
- typer.Argument(..., help="Backup directory created by fix-errors"),
1424
- ],
1425
- root: Annotated[
1426
- Path | None,
1427
- typer.Option("--root", help="Root directory to restore into (default: cwd)"),
1428
- ] = None,
1429
- ) -> None:
1430
- """Rollback applied fixes from a backup directory."""
1431
- cli_ctx, output, error_handler, _, _lsp_config, _path_filters, output_file, _verbose = (
1432
- _get_state(ctx)
1433
- )
1434
-
1435
- try:
1436
- from .core import rollback_fixes
1437
-
1438
- result = rollback_fixes(backup_dir, root=root)
1439
- except Exception as exc:
1440
- error_handler.handle_general_error(
1441
- "Failed to rollback fixes",
1442
- details={"error": str(exc)},
1443
- )
1444
- return # Exit early on error
1445
-
1446
- if output_file:
1447
- _write_output_file(output_file, result)
1448
-
1449
- if cli_ctx.json_only:
1450
- _emit_json(output, result)
1451
- elif not cli_ctx.quiet:
1452
- output.ctx.console.print(result.get("message", "Rollback complete"))
1453
- restored = result.get("restored", 0)
1454
- if restored:
1455
- output.ctx.console.print(f"[green]Restored {restored} files[/green]")
1456
-
1457
-
1458
- @app.command("callers")
1459
- def callers_cmd(
1460
- ctx: typer.Context,
1461
- symbol: Annotated[str, typer.Argument(help="Symbol to find incoming calls for")],
1462
- format: Annotated[
1463
- str,
1464
- typer.Option("--format", "-f", help="Output format: table, mermaid, plantuml"),
1465
- ] = "table",
1466
- max_depth: Annotated[
1467
- int,
1468
- typer.Option("--max-depth", help="Maximum call depth to traverse"),
1469
- ] = 1,
1470
- include_external: Annotated[
1471
- bool,
1472
- typer.Option("--include-external", help="Include calls outside the workspace"),
1473
- ] = False,
1474
- show_path: Annotated[
1475
- bool,
1476
- typer.Option("--show-path", help="Show call chain path"),
1477
- ] = False,
1478
- ) -> None:
1479
- """Find all incoming calls to a symbol (callers)."""
1480
- cli_ctx, output, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
1481
- _get_state(ctx)
1482
- )
1483
-
1484
- try:
1485
- callers = get_callers(symbol, max_depth=max_depth, **lsp_config)
1486
- except Exception as exc:
1487
- error_handler.handle_general_error(
1488
- "Failed to find callers",
1489
- details={"error": str(exc)},
1490
- )
1491
- return # Exit early on error
1492
-
1493
- if not include_external:
1494
- callers = {
1495
- **callers,
1496
- "callers": [c for c in callers.get("callers", []) if not c.get("external")],
1497
- }
1498
-
1499
- if (
1500
- path_filters.get("include")
1501
- or path_filters.get("exclude")
1502
- or path_filters.get("git_tracked")
1503
- ):
1504
- allowed = _filter_paths(
1505
- paths=[Path.cwd()],
1506
- filters=path_filters,
1507
- allow_notebooks=config.notebook_support,
1508
- output=output,
1509
- )
1510
- allowed_rel = set()
1511
- for allowed_path in allowed:
1512
- allowed_rel.add(allowed_path.as_posix())
1513
- try:
1514
- allowed_rel.add(allowed_path.relative_to(Path.cwd()).as_posix())
1515
- except ValueError:
1516
- continue
1517
- callers = {
1518
- **callers,
1519
- "callers": [
1520
- c
1521
- for c in callers.get("callers", [])
1522
- if c.get("location", {}).get("file") in allowed_rel
1523
- ],
1524
- }
1525
-
1526
- diagram_text = None
1527
- if format == "mermaid":
1528
- diagram_text = CallGraphFormatter.to_mermaid(symbol, callers.get("callers", []), "incoming")
1529
- elif format == "plantuml":
1530
- diagram_text = CallGraphFormatter.to_plantuml(
1531
- symbol, callers.get("callers", []), "incoming"
1532
- )
1533
-
1534
- if output_file and diagram_text and not cli_ctx.json_only:
1535
- _ = output_file.write_text(diagram_text)
1536
- if not cli_ctx.quiet:
1537
- output.ctx.console.print(f"Diagram saved to {output_file}")
1538
- elif output_file:
1539
- _write_output_file(output_file, callers)
1540
-
1541
- if cli_ctx.json_only:
1542
- _emit_json(output, callers)
1543
- elif diagram_text is not None:
1544
- if output_file is None:
1545
- print(diagram_text)
1546
- elif not cli_ctx.quiet:
1547
- from rich.table import Table
1548
-
1549
- callers_list = callers.get("callers", [])
1550
- src = callers.get("source", "unknown")
1551
- stats: dict[str, Any] = callers.get("stats", {}) # pyright: ignore[reportAssignmentType]
1552
- count = stats.get("count", len(callers_list))
1553
- max_depth_value = stats.get("max_depth", 1)
1554
-
1555
- table = Table(
1556
- title=f"Callers of '{symbol}' (Source: {src}, Count: {count}, Max depth: {max_depth_value})",
1557
- )
1558
- table.add_column("Caller", style="cyan")
1559
- table.add_column("Location", style="yellow")
1560
- table.add_column("Depth", style="magenta")
1561
- table.add_column("Relation", style="green")
1562
- if show_path:
1563
- table.add_column("Path", style="white")
1564
-
1565
- for call in callers_list:
1566
- loc = call["location"]
1567
- depth = str(call.get("depth", 1))
1568
- row = [
1569
- call["from_symbol"],
1570
- f"{loc['file']}:{loc['line']}",
1571
- depth,
1572
- call.get("relation", "direct"),
1573
- ]
1574
- if show_path:
1575
- row.append(" -> ".join(call.get("path", [])))
1576
- table.add_row(*row)
1577
- output.ctx.console.print(table)
1578
-
1579
-
1580
- @app.command("callees")
1581
- def callees_cmd(
1582
- ctx: typer.Context,
1583
- symbol: Annotated[str, typer.Argument(help="Symbol to find outgoing calls for")],
1584
- format: Annotated[
1585
- str,
1586
- typer.Option("--format", "-f", help="Output format: table, mermaid, plantuml"),
1587
- ] = "table",
1588
- max_depth: Annotated[
1589
- int,
1590
- typer.Option("--max-depth", help="Maximum call depth to traverse"),
1591
- ] = 1,
1592
- include_external: Annotated[
1593
- bool,
1594
- typer.Option("--include-external", help="Include calls outside the workspace"),
1595
- ] = False,
1596
- show_path: Annotated[
1597
- bool,
1598
- typer.Option("--show-path", help="Show call chain path"),
1599
- ] = False,
1600
- ) -> None:
1601
- """Find all outgoing calls from a symbol (callees)."""
1602
- cli_ctx, output, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
1603
- _get_state(ctx)
1604
- )
1605
-
1606
- try:
1607
- callees = get_callees(symbol, max_depth=max_depth, **lsp_config)
1608
- except Exception as exc:
1609
- error_handler.handle_general_error(
1610
- "Failed to find callees",
1611
- details={"error": str(exc)},
1612
- )
1613
- return # Exit early on error
1614
-
1615
- if not include_external:
1616
- callees = {
1617
- **callees,
1618
- "callees": [c for c in callees.get("callees", []) if not c.get("external")],
1619
- }
1620
-
1621
- if (
1622
- path_filters.get("include")
1623
- or path_filters.get("exclude")
1624
- or path_filters.get("git_tracked")
1625
- ):
1626
- allowed = _filter_paths(
1627
- paths=[Path.cwd()],
1628
- filters=path_filters,
1629
- allow_notebooks=config.notebook_support,
1630
- output=output,
1631
- )
1632
- allowed_rel = set()
1633
- for allowed_path in allowed:
1634
- allowed_rel.add(allowed_path.as_posix())
1635
- try:
1636
- allowed_rel.add(allowed_path.relative_to(Path.cwd()).as_posix())
1637
- except ValueError:
1638
- continue
1639
- callees = {
1640
- **callees,
1641
- "callees": [
1642
- c
1643
- for c in callees.get("callees", [])
1644
- if c.get("location", {}).get("file") in allowed_rel
1645
- ],
1646
- }
1647
-
1648
- diagram_text = None
1649
- if format == "mermaid":
1650
- diagram_text = CallGraphFormatter.to_mermaid(symbol, callees.get("callees", []), "outgoing")
1651
- elif format == "plantuml":
1652
- diagram_text = CallGraphFormatter.to_plantuml(
1653
- symbol, callees.get("callees", []), "outgoing"
1654
- )
1655
-
1656
- if output_file and diagram_text and not cli_ctx.json_only:
1657
- _ = output_file.write_text(diagram_text)
1658
- if not cli_ctx.quiet:
1659
- output.ctx.console.print(f"Diagram saved to {output_file}")
1660
- elif output_file:
1661
- _write_output_file(output_file, callees)
1662
-
1663
- if cli_ctx.json_only:
1664
- _emit_json(output, callees)
1665
- elif diagram_text is not None:
1666
- if output_file is None:
1667
- print(diagram_text)
1668
- elif not cli_ctx.quiet:
1669
- from rich.table import Table
1670
-
1671
- callees_list = callees.get("callees", [])
1672
- src = callees.get("source", "unknown")
1673
- stats: dict[str, Any] = callees.get("stats", {}) # pyright: ignore[reportAssignmentType]
1674
- count = stats.get("count", len(callees_list))
1675
- max_depth_value = stats.get("max_depth", 1)
1676
-
1677
- table = Table(
1678
- title=f"Callees of '{symbol}' (Source: {src}, Count: {count}, Max depth: {max_depth_value})",
1679
- )
1680
- table.add_column("Callee", style="cyan")
1681
- table.add_column("Location", style="yellow")
1682
- table.add_column("Depth", style="magenta")
1683
- table.add_column("Relation", style="green")
1684
- if show_path:
1685
- table.add_column("Path", style="white")
1686
-
1687
- for call in callees_list:
1688
- loc = call["location"]
1689
- depth = str(call.get("depth", 1))
1690
- row = [
1691
- call["to_symbol"],
1692
- f"{loc['file']}:{loc['line']}",
1693
- depth,
1694
- call.get("relation", "direct"),
1695
- ]
1696
- if show_path:
1697
- row.append(" -> ".join(call.get("path", [])))
1698
- table.add_row(*row)
1699
- output.ctx.console.print(table)
1700
-
1701
-
1702
- @app.command("code-actions")
1703
- def code_actions_cmd(
1704
- ctx: typer.Context,
1705
- location: Annotated[
1706
- str,
1707
- typer.Argument(..., help="Location in format file:line:col"),
1708
- ],
1709
- index: Annotated[
1710
- int | None,
1711
- typer.Option("--index", "-i", help="Select a specific action by 1-based index"),
1712
- ] = None,
1713
- apply: Annotated[
1714
- bool,
1715
- typer.Option("--apply", "-a", help="Apply the selected action"),
1716
- ] = False,
1717
- yes: Annotated[
1718
- bool,
1719
- typer.Option("--yes", "-y", help="Confirm applying selected action"),
1720
- ] = False,
1721
- confirm_annotations: Annotated[
1722
- bool,
1723
- typer.Option("--confirm-annotations", help="Allow edits that require change annotations"),
1724
- ] = False,
1725
- max_previews: Annotated[
1726
- int,
1727
- typer.Option("--max-previews", help="Limit number of preview diffs"),
1728
- ] = 5,
1729
- patch_file: Annotated[
1730
- Path | None,
1731
- typer.Option("--patch-file", help="Write unified diff output to a file"),
1732
- ] = None,
1733
- ) -> None:
1734
- """Get available code actions for a location."""
1735
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
1736
- _get_state(ctx)
1737
- )
1738
-
1739
- try:
1740
- # Parse location (file:line:col)
1741
- parts = location.split(":")
1742
- if len(parts) < 3:
1743
- raise ValueError("Location must be in format file:line:col")
1744
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
1745
-
1746
- actions = get_code_actions(file_path, line, col, **lsp_config)
1747
-
1748
- if index is not None:
1749
- from .core import apply_code_action
1750
-
1751
- if apply and not yes:
1752
- if cli_ctx.json_only:
1753
- error_handler.handle_general_error(
1754
- "Apply requires confirmation",
1755
- details={"message": "Use --yes to confirm applying the selected action."},
1756
- )
1757
- confirm = typer.confirm("Apply selected code action?")
1758
- if not confirm:
1759
- output.output_warning("Aborted applying action.")
1760
- return
1761
-
1762
- action_result = apply_code_action(
1763
- file_path,
1764
- line,
1765
- col,
1766
- index,
1767
- apply=apply,
1768
- confirm_annotations=confirm_annotations,
1769
- **lsp_config,
1770
- )
1771
- if patch_file and not apply:
1772
- patch_text = action_result.get("patch") or ""
1773
- if patch_text.strip():
1774
- patch_file.parent.mkdir(parents=True, exist_ok=True)
1775
- _ = patch_file.write_text(patch_text)
1776
- elif not cli_ctx.quiet and not cli_ctx.json_only:
1777
- output.ctx.console.print("[yellow]No patch content to write.[/yellow]")
1778
- if output_file:
1779
- _write_output_file(output_file, {"actions": actions, "result": action_result})
1780
-
1781
- if cli_ctx.json_only:
1782
- _emit_json(output, {"actions": actions, "result": action_result})
1783
- elif not cli_ctx.quiet:
1784
- if action_result.get("previews"):
1785
- import difflib
1786
-
1787
- previews = action_result.get("previews", [])
1788
- for i, preview in enumerate(previews):
1789
- if i >= max_previews:
1790
- break
1791
- if preview.get("needs_confirmation"):
1792
- output.ctx.console.print(
1793
- "[yellow]Action requires confirmation via change annotations. "
1794
- "Use --confirm-annotations to apply.[/yellow]",
1795
- )
1796
- before = preview.get("before", "").splitlines(keepends=True)
1797
- after = preview.get("after", "").splitlines(keepends=True)
1798
- path = preview.get("file", "unknown")
1799
- diff = difflib.unified_diff(
1800
- before,
1801
- after,
1802
- fromfile=f"{path}:before",
1803
- tofile=f"{path}:after",
1804
- )
1805
- output.ctx.console.print("".join(diff))
1806
- if len(previews) > max_previews:
1807
- output.ctx.console.print(
1808
- f"[yellow]Showing {max_previews} of {len(previews)} previews. Use --json-only for full output.[/yellow]",
1809
- )
1810
- else:
1811
- output.ctx.console.print(action_result.get("message", "Operation complete"))
1812
- if patch_file and not apply and (action_result.get("patch") or "").strip():
1813
- output.ctx.console.print(f"[green]Wrote patch file: {patch_file}[/green]")
1814
- if patch_file and apply:
1815
- output.ctx.console.print(
1816
- "[yellow]Patch file output is only available for preview mode (no --apply).[/yellow]",
1817
- )
1818
- return
1819
- except Exception as exc:
1820
- error_handler.handle_general_error(
1821
- "Failed to get code actions",
1822
- details={"error": str(exc)},
1823
- )
1824
- return # Exit early on error
1825
-
1826
- if output_file:
1827
- _write_output_file(output_file, {"actions": actions})
1828
-
1829
- if cli_ctx.json_only:
1830
- _emit_json(output, {"actions": actions})
1831
- elif not cli_ctx.quiet:
1832
- from rich.table import Table
1833
-
1834
- table = Table(title=f"Code Actions at {location}")
1835
- table.add_column("Title", style="cyan")
1836
- table.add_column("Kind", style="green")
1837
- table.add_column("Category", style="magenta")
1838
-
1839
- for action in actions:
1840
- title = action.get("title", "Unknown")
1841
- kind = action.get("kind", "Unknown")
1842
- category = action.get("category", "unknown")
1843
- table.add_row(title, kind, category)
1844
-
1845
- output.ctx.console.print(table)
1846
-
1847
-
1848
- @app.command("index-workspace")
1849
- def index_workspace_cmd(
1850
- ctx: typer.Context,
1851
- output: Annotated[
1852
- Path | None,
1853
- typer.Option("--output", "-o", help="Output file for index"),
1854
- ] = None,
1855
- force: Annotated[
1856
- bool,
1857
- typer.Option("--force", "-f", help="Force rebuild index"),
1858
- ] = False,
1859
- parallel: Annotated[
1860
- bool,
1861
- typer.Option("--parallel", "-p", help="Enable parallel indexing for faster processing"),
1862
- ] = False,
1863
- ) -> None:
1864
- """Generate and optionally save workspace index.
1865
-
1866
- Parallel indexing uses multiple threads to process files concurrently,
1867
- significantly reducing indexing time for large workspaces.
1868
- """
1869
- cli_ctx, output_mgr, error_handler, config, lsp_config, path_filters, output_file, _verbose = (
1870
- _get_state(ctx)
1871
- )
1872
-
1873
- try:
1874
- # Pass force and parallel flags to core -> indexer
1875
- from .core import index_workspace
1876
-
1877
- if not cli_ctx.quiet and not cli_ctx.json_only:
1878
- from rich.progress import Progress
1879
-
1880
- with Progress(console=output_mgr.ctx.console) as progress:
1881
- index = index_workspace(
1882
- Path.cwd(), force=force, progress=progress, parallel=parallel, **lsp_config
1883
- )
1884
- else:
1885
- index = index_workspace(Path.cwd(), force=force, parallel=parallel, **lsp_config)
1886
- except Exception as exc:
1887
- error_handler.handle_general_error(
1888
- "Failed to index workspace",
1889
- details={"error": str(exc)},
1890
- )
1891
- return # Exit early on error
1892
-
1893
- if (
1894
- path_filters.get("include")
1895
- or path_filters.get("exclude")
1896
- or path_filters.get("git_tracked")
1897
- ):
1898
- allowed = _filter_paths(
1899
- paths=[Path.cwd()],
1900
- filters=path_filters,
1901
- allow_notebooks=config.notebook_support,
1902
- output=output_mgr,
1903
- )
1904
- allowed_rel = set()
1905
- for allowed_path in allowed:
1906
- allowed_rel.add(allowed_path.as_posix())
1907
- try:
1908
- allowed_rel.add(allowed_path.relative_to(Path.cwd()).as_posix())
1909
- except ValueError:
1910
- continue
1911
- index = index.model_copy(
1912
- update={
1913
- "symbols": [s for s in index.symbols if s.location.file in allowed_rel],
1914
- "calls": [c for c in index.calls if c.location.file in allowed_rel],
1915
- "total_symbols": len([s for s in index.symbols if s.location.file in allowed_rel]),
1916
- },
1917
- )
1918
-
1919
- if output:
1920
- _ = output.write_text(index.model_dump_json(indent=2))
1921
- if not cli_ctx.quiet:
1922
- output_mgr.ctx.console.print(f"Workspace index saved to {output}")
1923
- elif output_file:
1924
- _write_output_file(output_file, index.model_dump())
1925
- elif cli_ctx.json_only:
1926
- _emit_json(output_mgr, index.model_dump())
1927
- elif not cli_ctx.quiet:
1928
- output_mgr.ctx.console.print(f"Indexed {index.total_symbols} symbols")
1929
-
1930
-
1931
- @app.command("format")
1932
- def format_cmd(
1933
- ctx: typer.Context,
1934
- file: Annotated[Path, typer.Argument(..., help="File to format")],
1935
- apply: Annotated[
1936
- bool,
1937
- typer.Option("--apply", "-a", help="Apply formatting to file"),
1938
- ] = False,
1939
- yes: Annotated[
1940
- bool,
1941
- typer.Option("--yes", "-y", help="Confirm applying formatting"),
1942
- ] = False,
1943
- start_line: Annotated[int | None, typer.Option("--start-line")] = None,
1944
- start_col: Annotated[int | None, typer.Option("--start-col")] = None,
1945
- end_line: Annotated[int | None, typer.Option("--end-line")] = None,
1946
- end_col: Annotated[int | None, typer.Option("--end-col")] = None,
1947
- max_previews: Annotated[
1948
- int,
1949
- typer.Option("--max-previews", help="Limit number of preview diffs"),
1950
- ] = 5,
1951
- ) -> None:
1952
- """Format a document or a range using Ruff LSP."""
1953
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
1954
- _get_state(ctx)
1955
- )
1956
- if apply and not yes:
1957
- if cli_ctx.json_only:
1958
- error_handler.handle_general_error(
1959
- "Apply requires confirmation",
1960
- details={"message": "Use --yes to confirm applying formatting."},
1961
- )
1962
- confirm = typer.confirm("Apply formatting?")
1963
- if not confirm:
1964
- output.output_warning("Aborted formatting.")
1965
- return
1966
-
1967
- try:
1968
- if all(v is not None for v in (start_line, start_col, end_line, end_col)):
1969
- result = format_range(
1970
- file,
1971
- start_line or 1,
1972
- start_col or 1,
1973
- end_line or 1,
1974
- end_col or 1,
1975
- apply=apply,
1976
- **lsp_config,
1977
- )
1978
- else:
1979
- result = format_document(file, apply=apply, **lsp_config)
1980
- except Exception as exc:
1981
- error_handler.handle_general_error("Formatting failed", details={"error": str(exc)})
1982
- return # Exit early on error
1983
-
1984
- if output_file:
1985
- _write_output_file(output_file, result)
1986
- if cli_ctx.json_only:
1987
- _emit_json(output, result)
1988
- elif not cli_ctx.quiet:
1989
- if result.get("previews"):
1990
- import difflib
1991
-
1992
- for i, preview in enumerate(result.get("previews", [])):
1993
- if i >= max_previews:
1994
- break
1995
- before = preview.get("before", "").splitlines(keepends=True)
1996
- after = preview.get("after", "").splitlines(keepends=True)
1997
- path = preview.get("file", "unknown")
1998
- diff = difflib.unified_diff(
1999
- before,
2000
- after,
2001
- fromfile=f"{path}:before",
2002
- tofile=f"{path}:after",
2003
- )
2004
- output.ctx.console.print("".join(diff))
2005
- else:
2006
- output.ctx.console.print(result.get("message", "Formatting complete."))
2007
-
2008
-
2009
- @app.command("organize-imports")
2010
- def organize_imports_cmd(
2011
- ctx: typer.Context,
2012
- file: Annotated[Path, typer.Argument(..., help="File to organize imports for")],
2013
- apply: Annotated[
2014
- bool,
2015
- typer.Option("--apply", "-a", help="Apply changes to file"),
2016
- ] = False,
2017
- yes: Annotated[
2018
- bool,
2019
- typer.Option("--yes", "-y", help="Confirm applying changes"),
2020
- ] = False,
2021
- max_previews: Annotated[
2022
- int,
2023
- typer.Option("--max-previews", help="Limit number of preview diffs"),
2024
- ] = 5,
2025
- ) -> None:
2026
- """Organize imports via Ruff LSP code actions."""
2027
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2028
- _get_state(ctx)
2029
- )
2030
- if apply and not yes:
2031
- if cli_ctx.json_only:
2032
- error_handler.handle_general_error(
2033
- "Apply requires confirmation",
2034
- details={"message": "Use --yes to confirm applying changes."},
2035
- )
2036
- confirm = typer.confirm("Apply organize imports?")
2037
- if not confirm:
2038
- output.output_warning("Aborted organize imports.")
2039
- return
2040
-
2041
- try:
2042
- result = organize_imports(file, apply=apply, **lsp_config)
2043
- except Exception as exc:
2044
- error_handler.handle_general_error("Organize imports failed", details={"error": str(exc)})
2045
- return # Exit early on error
2046
-
2047
- if output_file:
2048
- _write_output_file(output_file, result)
2049
- if cli_ctx.json_only:
2050
- _emit_json(output, result)
2051
- elif not cli_ctx.quiet:
2052
- if result.get("previews"):
2053
- import difflib
2054
-
2055
- for i, preview in enumerate(result.get("previews", [])):
2056
- if i >= max_previews:
2057
- break
2058
- before = preview.get("before", "").splitlines(keepends=True)
2059
- after = preview.get("after", "").splitlines(keepends=True)
2060
- path = preview.get("file", "unknown")
2061
- diff = difflib.unified_diff(
2062
- before,
2063
- after,
2064
- fromfile=f"{path}:before",
2065
- tofile=f"{path}:after",
2066
- )
2067
- output.ctx.console.print("".join(diff))
2068
- else:
2069
- output.ctx.console.print(result.get("message", "Organize imports complete."))
2070
-
2071
-
2072
- @app.command("fix-all")
2073
- def fix_all_cmd(
2074
- ctx: typer.Context,
2075
- file: Annotated[Path, typer.Argument(..., help="File to fix")],
2076
- apply: Annotated[
2077
- bool,
2078
- typer.Option("--apply", "-a", help="Apply fixes to file"),
2079
- ] = False,
2080
- yes: Annotated[
2081
- bool,
2082
- typer.Option("--yes", "-y", help="Confirm applying fixes"),
2083
- ] = False,
2084
- max_previews: Annotated[
2085
- int,
2086
- typer.Option("--max-previews", help="Limit number of preview diffs"),
2087
- ] = 5,
2088
- ) -> None:
2089
- """Apply fix-all actions via Ruff LSP."""
2090
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2091
- _get_state(ctx)
2092
- )
2093
- if apply and not yes:
2094
- if cli_ctx.json_only:
2095
- error_handler.handle_general_error(
2096
- "Apply requires confirmation",
2097
- details={"message": "Use --yes to confirm applying fixes."},
2098
- )
2099
- confirm = typer.confirm("Apply fix-all action?")
2100
- if not confirm:
2101
- output.output_warning("Aborted fix-all.")
2102
- return
2103
-
2104
- try:
2105
- result = fix_all(file, apply=apply, **lsp_config)
2106
- except Exception as exc:
2107
- error_handler.handle_general_error("Fix-all failed", details={"error": str(exc)})
2108
- return # Exit early on error
2109
-
2110
- if output_file:
2111
- _write_output_file(output_file, result)
2112
- if cli_ctx.json_only:
2113
- _emit_json(output, result)
2114
- elif not cli_ctx.quiet:
2115
- if result.get("previews"):
2116
- import difflib
2117
-
2118
- for i, preview in enumerate(result.get("previews", [])):
2119
- if i >= max_previews:
2120
- break
2121
- before = preview.get("before", "").splitlines(keepends=True)
2122
- after = preview.get("after", "").splitlines(keepends=True)
2123
- path = preview.get("file", "unknown")
2124
- diff = difflib.unified_diff(
2125
- before,
2126
- after,
2127
- fromfile=f"{path}:before",
2128
- tofile=f"{path}:after",
2129
- )
2130
- output.ctx.console.print("".join(diff))
2131
- else:
2132
- output.ctx.console.print(result.get("message", "Fix-all complete."))
2133
-
2134
-
2135
- @app.command("suggest-imports")
2136
- def suggest_imports_cmd(
2137
- ctx: typer.Context,
2138
- location: Annotated[
2139
- str,
2140
- typer.Argument(..., help="Location in format file:line:col"),
2141
- ],
2142
- apply: Annotated[
2143
- bool,
2144
- typer.Option("--apply", "-a", help="Apply the first import suggestion"),
2145
- ] = False,
2146
- yes: Annotated[
2147
- bool,
2148
- typer.Option("--yes", "-y", help="Confirm applying the suggestion"),
2149
- ] = False,
2150
- ) -> None:
2151
- """Get import suggestions for a location (BasedPyright auto-import)."""
2152
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2153
- _get_state(ctx)
2154
- )
2155
-
2156
- if apply and not yes:
2157
- if cli_ctx.json_only:
2158
- error_handler.handle_general_error(
2159
- "Apply requires confirmation",
2160
- details={"message": "Use --yes to confirm applying the suggestion."},
2161
- )
2162
- return
2163
- confirm = typer.confirm("Apply the first import suggestion?")
2164
- if not confirm:
2165
- output.output_warning("Aborted applying import suggestion.")
2166
- return
2167
-
2168
- try:
2169
- # Parse location (file:line:col)
2170
- parts = location.split(":")
2171
- if len(parts) < 3:
2172
- raise ValueError("Location must be in format file:line:col")
2173
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
2174
-
2175
- result = suggest_imports(file_path, line, col, apply=apply, **lsp_config)
2176
- except Exception as exc:
2177
- error_handler.handle_general_error(
2178
- "Import suggestions failed",
2179
- details={"error": str(exc)},
2180
- )
2181
- return # Exit early on error
2182
-
2183
- if output_file:
2184
- _write_output_file(output_file, result)
2185
-
2186
- if cli_ctx.json_only:
2187
- _emit_json(output, result)
2188
- elif not cli_ctx.quiet:
2189
- from rich.table import Table
2190
-
2191
- suggestions = result.get("suggestions", [])
2192
- if not suggestions:
2193
- output.ctx.console.print(result.get("message", "No import suggestions available."))
2194
- return
2195
-
2196
- # Display suggestions in a table
2197
- table = Table(title=f"Import Suggestions ({len(suggestions)} found)")
2198
- table.add_column("#", style="cyan", width=4)
2199
- table.add_column("Suggestion", style="green")
2200
- table.add_column("Kind", style="yellow")
2201
- table.add_column("Preview", style="white")
2202
-
2203
- for i, suggestion in enumerate(suggestions, 1):
2204
- preview = suggestion.get("preview", "")
2205
- # Truncate long previews
2206
- if len(preview) > 60:
2207
- preview = preview[:57] + "..."
2208
- table.add_row(
2209
- str(i),
2210
- suggestion.get("title", "Unnamed"),
2211
- suggestion.get("kind", "unknown"),
2212
- preview,
2213
- )
2214
-
2215
- output.ctx.console.print(table)
2216
-
2217
- # Show apply message
2218
- if result.get("applied"):
2219
- output.ctx.console.print(
2220
- f"[green]Applied: {result.get('applied_suggestion', 'Import suggestion')}[/green]"
2221
- )
2222
- if result.get("backup_dir"):
2223
- output.ctx.console.print(f"Backup: {result['backup_dir']}")
2224
- elif not apply:
2225
- output.ctx.console.print(result.get("message", "Use --apply to add the import."))
2226
-
2227
-
2228
- @app.command("ignore-comment")
2229
- def ignore_comment_cmd(
2230
- ctx: typer.Context,
2231
- location: Annotated[
2232
- str,
2233
- typer.Argument(..., help="Location in format file:line:col"),
2234
- ],
2235
- error_code: Annotated[
2236
- str | None,
2237
- typer.Option(
2238
- "--error-code",
2239
- "-e",
2240
- help="Specific error code to ignore (e.g., 'reportOptionalMemberAccess')",
2241
- ),
2242
- ] = None,
2243
- apply: Annotated[
2244
- bool,
2245
- typer.Option("--apply", "-a", help="Apply the type ignore comment"),
2246
- ] = False,
2247
- yes: Annotated[
2248
- bool,
2249
- typer.Option("--yes", "-y", help="Confirm applying the comment"),
2250
- ] = False,
2251
- confirm_annotations: Annotated[
2252
- bool,
2253
- typer.Option("--confirm-annotations", help="Allow edits that require change annotations"),
2254
- ] = False,
2255
- ) -> None:
2256
- """Add a '# type: ignore' comment to suppress a diagnostic (BasedPyright)."""
2257
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2258
- _get_state(ctx)
2259
- )
2260
-
2261
- if apply and not yes:
2262
- if cli_ctx.json_only:
2263
- error_handler.handle_general_error(
2264
- "Apply requires confirmation",
2265
- details={"message": "Use --yes to confirm applying the ignore comment."},
2266
- )
2267
- return
2268
- confirm = typer.confirm(f"Add type ignore comment to {location}?")
2269
- if not confirm:
2270
- output.output_warning("Aborted adding ignore comment.")
2271
- return
2272
-
2273
- try:
2274
- # Parse location (file:line:col)
2275
- parts = location.split(":")
2276
- if len(parts) < 3:
2277
- raise ValueError("Location must be in format file:line:col")
2278
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
2279
-
2280
- result = add_type_ignore_comment(
2281
- file_path,
2282
- line,
2283
- col,
2284
- error_code=error_code,
2285
- apply=apply,
2286
- confirm_annotations=confirm_annotations,
2287
- **lsp_config,
2288
- )
2289
- except Exception as exc:
2290
- error_handler.handle_general_error(
2291
- "Failed to add type ignore comment",
2292
- details={"error": str(exc)},
2293
- )
2294
- return # Exit early on error
2295
-
2296
- if output_file:
2297
- _write_output_file(output_file, result)
2298
-
2299
- if cli_ctx.json_only:
2300
- _emit_json(output, result)
2301
- elif not cli_ctx.quiet:
2302
- from rich.syntax import Syntax
2303
-
2304
- # Show error if no ignore actions available
2305
- if not result.get("applied") and result.get("actions_available", 0) == 0:
2306
- output.ctx.console.print(
2307
- f"[yellow]{result.get('message', 'No ignore actions available')}[/yellow]"
2308
- )
2309
- if "hint" in result:
2310
- output.ctx.console.print(f"[dim]Hint: {result['hint']}[/dim]")
2311
- return
2312
-
2313
- # Show preview if available
2314
- previews = result.get("previews", [])
2315
- if previews and not apply:
2316
- for preview in previews:
2317
- output.ctx.console.print(f"\n[bold]File:[/bold] {preview['file']}")
2318
- output.ctx.console.print(f"[bold]Action:[/bold] {preview.get('title', 'Unnamed')}")
2319
-
2320
- # Show unified diff if available
2321
- patch = result.get("patch")
2322
- if patch:
2323
- output.ctx.console.print("\n[bold]Diff:[/bold]")
2324
- syntax = Syntax(patch, "diff", theme="monokai", line_numbers=False)
2325
- output.ctx.console.print(syntax)
2326
-
2327
- # Show before/after preview
2328
- before = preview.get("before", "")
2329
- after = preview.get("after", "")
2330
- if before and after:
2331
- lines_before = before.splitlines()
2332
- lines_after = after.splitlines()
2333
- for _i, (before_line, after_line) in enumerate(
2334
- zip(lines_before, lines_after, strict=False)
2335
- ):
2336
- if before_line != after_line:
2337
- output.ctx.console.print(f"[red]- {before_line}[/red]")
2338
- output.ctx.console.print(f"[green]+ {after_line}[/green]")
2339
- break # Only show the first changed line for brevity
2340
-
2341
- output.ctx.console.print(
2342
- f"\n[cyan]{result.get('message', 'Use --apply to add the ignore comment.')}[/cyan]"
2343
- )
2344
- return
2345
-
2346
- # Show success message
2347
- if result.get("applied"):
2348
- output.ctx.console.print("[green]Added type ignore comment[/green]")
2349
- if result.get("action_title"):
2350
- output.ctx.console.print(f"[dim]Action: {result['action_title']}[/dim]")
2351
- if result.get("backup_dir"):
2352
- output.ctx.console.print(f"Backup: {result['backup_dir']}")
2353
- else:
2354
- output.ctx.console.print(result.get("message", "Failed to add ignore comment."))
2355
-
2356
-
2357
- @app.command("hover")
2358
- def hover_cmd(
2359
- ctx: typer.Context,
2360
- location: Annotated[str, typer.Argument(..., help="Location in format file:line:col")],
2361
- ) -> None:
2362
- """Get hover information from BasedPyright LSP.
2363
-
2364
- Supports:
2365
- - Symbol documentation (functions, classes, variables)
2366
- - Operator hover (shows dunder method like __add__, __mul__, etc.)
2367
-
2368
- Example for operators:
2369
- vds-lsp hover " myfile.py:10:8" # Hover on the + operator
2370
- """
2371
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2372
- _get_state(ctx)
2373
- )
2374
- try:
2375
- parts = location.split(":")
2376
- if len(parts) < 3:
2377
- raise ValueError("Location must be in format file:line:col")
2378
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
2379
- result = hover(Path(file_path), line, col, **lsp_config)
2380
- except Exception as exc:
2381
- error_handler.handle_general_error("Hover failed", details={"error": str(exc)})
2382
- return # Exit early on error
2383
- if output_file:
2384
- _write_output_file(output_file, result)
2385
- if cli_ctx.json_only:
2386
- _emit_json(output, result)
2387
- elif not cli_ctx.quiet:
2388
- # Enhanced display for operator hovers
2389
- if result.get("is_operator"):
2390
- from rich.markdown import Markdown
2391
- from rich.panel import Panel
2392
-
2393
- operator_info = result.get("operator_info", {})
2394
- hover_result = result.get("result", {})
2395
-
2396
- # Display operator info panel
2397
- if operator_info:
2398
- output.ctx.console.print(
2399
- Panel(
2400
- Markdown(operator_info.get("description", "Operator hover")),
2401
- title="[bold cyan]Operator Information[/bold cyan]",
2402
- border_style="cyan",
2403
- )
2404
- )
2405
-
2406
- # Display the actual hover result
2407
- contents = hover_result.get("contents") if hover_result else None
2408
- if contents:
2409
- if isinstance(contents, str):
2410
- output.ctx.console.print(
2411
- Panel(
2412
- Markdown(contents),
2413
- title="Hover Result",
2414
- border_style="green",
2415
- )
2416
- )
2417
- elif isinstance(contents, list):
2418
- for item in contents:
2419
- if isinstance(item, str):
2420
- output.ctx.console.print(
2421
- Panel(
2422
- Markdown(item),
2423
- title="Hover Result",
2424
- border_style="green",
2425
- )
2426
- )
2427
- elif isinstance(item, dict):
2428
- value = item.get("value", "")
2429
- if value:
2430
- output.ctx.console.print(
2431
- Panel(
2432
- Markdown(value),
2433
- title="Hover Result",
2434
- border_style="green",
2435
- )
2436
- )
2437
- else:
2438
- output.ctx.console.print(result.get("message", "OK"))
2439
-
2440
-
2441
- @app.command("completion")
2442
- def completion_cmd(
2443
- ctx: typer.Context,
2444
- location: Annotated[str, typer.Argument(..., help="Location in format file:line:col")],
2445
- ) -> None:
2446
- """Get completion items from BasedPyright LSP."""
2447
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2448
- _get_state(ctx)
2449
- )
2450
- try:
2451
- parts = location.split(":")
2452
- if len(parts) < 3:
2453
- raise ValueError("Location must be in format file:line:col")
2454
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
2455
- result = completion(Path(file_path), line, col, **lsp_config)
2456
- except Exception as exc:
2457
- error_handler.handle_general_error("Completion failed", details={"error": str(exc)})
2458
- return # Exit early on error
2459
- if output_file:
2460
- _write_output_file(output_file, result)
2461
- if cli_ctx.json_only:
2462
- _emit_json(output, result)
2463
- elif not cli_ctx.quiet:
2464
- output.ctx.console.print(result.get("message", "OK"))
2465
-
2466
-
2467
- @app.command("rename")
2468
- def rename_cmd(
2469
- ctx: typer.Context,
2470
- location: Annotated[str, typer.Argument(..., help="Location in format file:line:col")],
2471
- new_name: Annotated[str, typer.Argument(..., help="New symbol name")],
2472
- apply: Annotated[
2473
- bool,
2474
- typer.Option("--apply", "-a", help="Apply rename edits"),
2475
- ] = False,
2476
- yes: Annotated[
2477
- bool,
2478
- typer.Option("--yes", "-y", help="Confirm applying rename"),
2479
- ] = False,
2480
- max_previews: Annotated[
2481
- int,
2482
- typer.Option("--max-previews", help="Limit number of preview diffs"),
2483
- ] = 5,
2484
- ) -> None:
2485
- """Rename a symbol via BasedPyright LSP."""
2486
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2487
- _get_state(ctx)
2488
- )
2489
- if apply and not yes:
2490
- if cli_ctx.json_only:
2491
- error_handler.handle_general_error(
2492
- "Apply requires confirmation",
2493
- details={"message": "Use --yes to confirm applying rename."},
2494
- )
2495
- confirm = typer.confirm("Apply rename?")
2496
- if not confirm:
2497
- output.output_warning("Aborted rename.")
2498
- return
2499
- try:
2500
- parts = location.split(":")
2501
- if len(parts) < 3:
2502
- raise ValueError("Location must be in format file:line:col")
2503
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
2504
- result = rename_symbol(Path(file_path), line, col, new_name, apply=apply, **lsp_config)
2505
- except Exception as exc:
2506
- error_handler.handle_general_error("Rename failed", details={"error": str(exc)})
2507
- return # Exit early on error
2508
- if output_file:
2509
- _write_output_file(output_file, result)
2510
- if cli_ctx.json_only:
2511
- _emit_json(output, result)
2512
- elif not cli_ctx.quiet:
2513
- if result.get("previews"):
2514
- import difflib
2515
-
2516
- for i, preview in enumerate(result.get("previews", [])):
2517
- if i >= max_previews:
2518
- break
2519
- before = preview.get("before", "").splitlines(keepends=True)
2520
- after = preview.get("after", "").splitlines(keepends=True)
2521
- path = preview.get("file", "unknown")
2522
- diff = difflib.unified_diff(
2523
- before,
2524
- after,
2525
- fromfile=f"{path}:before",
2526
- tofile=f"{path}:after",
2527
- )
2528
- output.ctx.console.print("".join(diff))
2529
- else:
2530
- output.ctx.console.print(result.get("message", "Rename complete."))
2531
-
2532
-
2533
- @app.command("signature-help")
2534
- def signature_help_cmd(
2535
- ctx: typer.Context,
2536
- location: Annotated[str, typer.Argument(..., help="Location in format file:line:col")],
2537
- ) -> None:
2538
- """Get signature help from BasedPyright LSP."""
2539
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2540
- _get_state(ctx)
2541
- )
2542
- try:
2543
- parts = location.split(":")
2544
- if len(parts) < 3:
2545
- raise ValueError("Location must be in format file:line:col")
2546
- file_path, line, col = parts[0], int(parts[1]), int(parts[2])
2547
- result = signature_help(Path(file_path), line, col, **lsp_config)
2548
- except Exception as exc:
2549
- error_handler.handle_general_error("Signature help failed", details={"error": str(exc)})
2550
- return # Exit early on error
2551
- if output_file:
2552
- _write_output_file(output_file, result)
2553
- if cli_ctx.json_only:
2554
- _emit_json(output, result)
2555
- elif not cli_ctx.quiet:
2556
- output.ctx.console.print(result.get("message", "OK"))
2557
-
2558
-
2559
- @app.command("inlay-hints")
2560
- def inlay_hints_cmd(
2561
- ctx: typer.Context,
2562
- file: Annotated[Path, typer.Argument(..., help="File to request inlay hints for")],
2563
- inlay_return_types: Annotated[
2564
- bool,
2565
- typer.Option("--inlay-return-types", help="Enable function return type hints"),
2566
- ] = True,
2567
- inlay_variable_types: Annotated[
2568
- bool,
2569
- typer.Option("--inlay-variable-types", help="Enable variable type hints"),
2570
- ] = True,
2571
- inlay_function_parameters: Annotated[
2572
- bool,
2573
- typer.Option("--inlay-function-parameters", help="Enable function parameter name hints"),
2574
- ] = True,
2575
- inlay_generic_types: Annotated[
2576
- bool,
2577
- typer.Option("--inlay-generic-types", help="Enable generic type hints"),
2578
- ] = True,
2579
- inlay_parameter_names_matching: Annotated[
2580
- bool,
2581
- typer.Option(
2582
- "--inlay-parameter-names-matching", help="Enable hints when param name matches arg name"
2583
- ),
2584
- ] = False,
2585
- ) -> None:
2586
- """Get inlay hints from BasedPyright LSP with granular configuration.
2587
-
2588
- Examples:
2589
- vds-lsp inlay-hints file.py # Use defaults (all enabled except matching)
2590
- vds-lsp inlay-hints file.py --inlay-return-types # Only return types
2591
- vds-lsp inlay-hints file.py --no-inlay-variable-types # All except variable types
2592
- vds-lsp inlay-hints file.py --inlay-return-types --inlay-function-parameters # Specific hints
2593
- """
2594
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2595
- _get_state(ctx)
2596
- )
2597
- try:
2598
- result = inlay_hints(
2599
- file,
2600
- inlay_return_types=inlay_return_types,
2601
- inlay_variable_types=inlay_variable_types,
2602
- inlay_function_parameters=inlay_function_parameters,
2603
- inlay_generic_types=inlay_generic_types,
2604
- inlay_parameter_names_matching=inlay_parameter_names_matching,
2605
- **lsp_config,
2606
- )
2607
- except Exception as exc:
2608
- error_handler.handle_general_error("Inlay hints failed", details={"error": str(exc)})
2609
- return # Exit early on error
2610
- if output_file:
2611
- _write_output_file(output_file, result)
2612
- if cli_ctx.json_only:
2613
- _emit_json(output, result)
2614
- elif not cli_ctx.quiet:
2615
- output.ctx.console.print(result.get("message", "OK"))
2616
-
2617
-
2618
- @app.command("semantic-tokens")
2619
- def semantic_tokens_cmd(
2620
- ctx: typer.Context,
2621
- file: Annotated[Path, typer.Argument(..., help="File to request semantic tokens for")],
2622
- ) -> None:
2623
- """Get semantic tokens from BasedPyright LSP."""
2624
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2625
- _get_state(ctx)
2626
- )
2627
-
2628
- # Parse file:line:col format - strip :line:col suffix if present
2629
- file_str = str(file)
2630
- if ":" in file_str and not file_str.startswith(("http://", "https://", "file://")):
2631
- # Split on : and take first part as file path
2632
- file_path = Path(file_str.split(":")[0])
2633
- else:
2634
- file_path = file
2635
-
2636
- try:
2637
- result = semantic_tokens(file_path, **lsp_config)
2638
- except Exception as exc:
2639
- error_handler.handle_general_error("Semantic tokens failed", details={"error": str(exc)})
2640
- return # Exit early on error
2641
- if output_file:
2642
- _write_output_file(output_file, result)
2643
- if cli_ctx.json_only:
2644
- _emit_json(output, result)
2645
- elif not cli_ctx.quiet:
2646
- output.ctx.console.print(result.get("message", "OK"))
2647
-
2648
-
2649
- @app.command("health")
2650
- def health_cmd(ctx: typer.Context) -> None:
2651
- """Report LSP server health status."""
2652
- cli_ctx, output, error_handler, config, lsp_config, _path_filters, output_file, _verbose = (
2653
- _get_state(ctx)
2654
- )
2655
- try:
2656
- result = lsp_health(**lsp_config)
2657
-
2658
- # Add WSL2 status to health check
2659
- from .utils import is_wsl2, is_wsl_path
2660
-
2661
- wsl_detected = is_wsl2()
2662
- workspace_path = Path.cwd()
2663
- wsl_workspace = is_wsl_path(workspace_path) if wsl_detected else False
2664
-
2665
- result["wsl2"] = {
2666
- "detected": wsl_detected,
2667
- "windows_filesystem": wsl_workspace,
2668
- "optimization_enabled": config.wsl_optimize if config else False,
2669
- }
2670
-
2671
- # Add detected type checker to health check
2672
- from .models.project_detector import ProjectDetector
2673
-
2674
- detector = ProjectDetector(workspace_path)
2675
- tools = detector.detect_all()
2676
- result["type_checker"] = {
2677
- "detected": tools.type_checker,
2678
- "configured": config.type_checker if config else "auto",
2679
- }
2680
-
2681
- # Log WSL2 status for user awareness
2682
- if wsl_detected and wsl_workspace and not cli_ctx.quiet:
2683
- output.ctx.console.print(
2684
- "[yellow]WSL2 with Windows filesystem detected (/mnt/c/). "
2685
- "Performance may be slower than native filesystem.[/yellow]"
2686
- )
2687
- if config and config.wsl_optimize:
2688
- output.ctx.console.print("[green]WSL2 optimization enabled[/green]")
2689
-
2690
- except Exception as exc:
2691
- error_handler.handle_general_error("Health check failed", details={"error": str(exc)})
2692
- if output_file:
2693
- _write_output_file(output_file, result)
2694
- if cli_ctx.json_only:
2695
- _emit_json(output, result)
2696
- elif not cli_ctx.quiet:
2697
- output.ctx.console.print(result.get("status", {}))
2698
-
2699
-
2700
- @app.command("batch-format")
2701
- def batch_format_cmd(
2702
- ctx: typer.Context,
2703
- paths: Annotated[
2704
- list[Path],
2705
- typer.Argument(..., help="Paths to format (files or directories)"),
2706
- ],
2707
- apply: Annotated[
2708
- bool,
2709
- typer.Option("--apply", "-a", help="Apply formatting to files"),
2710
- ] = False,
2711
- yes: Annotated[
2712
- bool,
2713
- typer.Option("--yes", "-y", help="Confirm applying formatting"),
2714
- ] = False,
2715
- atomic: Annotated[
2716
- bool,
2717
- typer.Option(
2718
- "--atomic/--no-atomic", help="Backup all files and rollback on error (default: True)"
2719
- ),
2720
- ] = True,
2721
- include: Annotated[
2722
- list[str] | None,
2723
- typer.Option("--include", help="Only include paths matching this pattern"),
2724
- ] = None,
2725
- exclude: Annotated[
2726
- list[str] | None,
2727
- typer.Option("--exclude", help="Exclude paths matching this pattern"),
2728
- ] = None,
2729
- git_tracked: Annotated[
2730
- bool,
2731
- typer.Option("--git-tracked", "-g", help="Only process git-tracked files"),
2732
- ] = False,
2733
- parallel: Annotated[
2734
- bool,
2735
- typer.Option("--parallel/--no-parallel", help="Process files in parallel (default: True)"),
2736
- ] = True,
2737
- jobs: Annotated[
2738
- int | None,
2739
- typer.Option("--jobs", "-j", help="Number of parallel jobs (default: auto-detect)"),
2740
- ] = None,
2741
- max_previews: Annotated[
2742
- int,
2743
- typer.Option("--max-previews", help="Limit number of preview diffs"),
2744
- ] = 5,
2745
- ) -> None:
2746
- """Format multiple Python files using Ruff LSP."""
2747
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2748
- _get_state(ctx)
2749
- )
2750
- if apply and not yes:
2751
- if cli_ctx.json_only:
2752
- error_handler.handle_general_error(
2753
- "Apply requires confirmation",
2754
- details={"message": "Use --yes to confirm applying formatting."},
2755
- )
2756
- confirm = typer.confirm("Apply formatting to all files?")
2757
- if not confirm:
2758
- output.output_warning("Aborted batch formatting.")
2759
- return
2760
-
2761
- result: dict[str, Any] = {}
2762
- try:
2763
- # Convert include/exclude strings to Path objects
2764
- include_paths = [Path(p) for p in include] if include else None
2765
- exclude_paths = [Path(p) for p in exclude] if exclude else None
2766
-
2767
- if not cli_ctx.quiet and not cli_ctx.json_only:
2768
- from rich.progress import Progress
2769
-
2770
- with Progress(console=output.ctx.console) as progress:
2771
- result = batch_format(
2772
- paths,
2773
- apply=apply,
2774
- atomic=atomic,
2775
- include_paths=include_paths,
2776
- exclude_paths=exclude_paths,
2777
- git_tracked_only=git_tracked,
2778
- parallel=parallel,
2779
- jobs=jobs,
2780
- progress=progress,
2781
- **lsp_config,
2782
- )
2783
- else:
2784
- result = batch_format(
2785
- paths,
2786
- apply=apply,
2787
- atomic=atomic,
2788
- include_paths=include_paths,
2789
- exclude_paths=exclude_paths,
2790
- git_tracked_only=git_tracked,
2791
- parallel=parallel,
2792
- jobs=jobs,
2793
- **lsp_config,
2794
- )
2795
- except Exception as exc:
2796
- error_handler.handle_general_error("Batch formatting failed", details={"error": str(exc)})
2797
-
2798
- if output_file:
2799
- _write_output_file(output_file, result)
2800
- if cli_ctx.json_only:
2801
- _emit_json(output, result)
2802
- elif not cli_ctx.quiet:
2803
- if result.get("previews"):
2804
- import difflib
2805
-
2806
- for i, preview in enumerate(result.get("previews", [])):
2807
- if i >= max_previews:
2808
- break
2809
- before = preview.get("before", "").splitlines(keepends=True)
2810
- after = preview.get("after", "").splitlines(keepends=True)
2811
- path = preview.get("file", "unknown")
2812
- diff = difflib.unified_diff(
2813
- before,
2814
- after,
2815
- fromfile=f"{path}:before",
2816
- tofile=f"{path}:after",
2817
- )
2818
- output.ctx.console.print("".join(diff))
2819
- if len(result.get("previews", [])) > max_previews:
2820
- output.ctx.console.print(
2821
- f"[yellow]Showing {max_previews} of {len(result.get('previews', []))} previews. Use --json-only for full output.[/yellow]",
2822
- )
2823
- # Show summary
2824
- from rich.panel import Panel
2825
- from rich.table import Table
2826
-
2827
- summary_table = Table(title="Batch Format Summary")
2828
- summary_table.add_column("Metric", style="cyan")
2829
- summary_table.add_column("Value", style="green")
2830
- summary_table.add_row("Processed", str(result.get("processed", 0)))
2831
- summary_table.add_row("Modified", str(result.get("modified", 0)))
2832
- summary_table.add_row("Errors", str(result.get("errors", 0)))
2833
- if result.get("backup_dir"):
2834
- summary_table.add_row("Backup", result.get("backup_dir", ""))
2835
- output.ctx.console.print(Panel(summary_table))
2836
- if result.get("error_details"):
2837
- output.ctx.console.print("[yellow]Errors:[/yellow]")
2838
- for error in result.get("error_details", []):
2839
- output.ctx.console.print(f" [red]{error.get('file')}:[/red] {error.get('error')}")
2840
-
2841
-
2842
- @app.command("batch-organize-imports")
2843
- def batch_organize_imports_cmd(
2844
- ctx: typer.Context,
2845
- paths: Annotated[
2846
- list[Path],
2847
- typer.Argument(..., help="Paths to process (files or directories)"),
2848
- ],
2849
- apply: Annotated[
2850
- bool,
2851
- typer.Option("--apply", "-a", help="Apply changes to files"),
2852
- ] = False,
2853
- yes: Annotated[
2854
- bool,
2855
- typer.Option("--yes", "-y", help="Confirm applying changes"),
2856
- ] = False,
2857
- atomic: Annotated[
2858
- bool,
2859
- typer.Option(
2860
- "--atomic/--no-atomic", help="Backup all files and rollback on error (default: True)"
2861
- ),
2862
- ] = True,
2863
- include: Annotated[
2864
- list[str] | None,
2865
- typer.Option("--include", help="Only include paths matching this pattern"),
2866
- ] = None,
2867
- exclude: Annotated[
2868
- list[str] | None,
2869
- typer.Option("--exclude", help="Exclude paths matching this pattern"),
2870
- ] = None,
2871
- git_tracked: Annotated[
2872
- bool,
2873
- typer.Option("--git-tracked", "-g", help="Only process git-tracked files"),
2874
- ] = False,
2875
- parallel: Annotated[
2876
- bool,
2877
- typer.Option("--parallel/--no-parallel", help="Process files in parallel (default: True)"),
2878
- ] = True,
2879
- jobs: Annotated[
2880
- int | None,
2881
- typer.Option("--jobs", "-j", help="Number of parallel jobs (default: auto-detect)"),
2882
- ] = None,
2883
- max_previews: Annotated[
2884
- int,
2885
- typer.Option("--max-previews", help="Limit number of preview diffs"),
2886
- ] = 5,
2887
- ) -> None:
2888
- """Organize imports across multiple Python files."""
2889
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
2890
- _get_state(ctx)
2891
- )
2892
- if apply and not yes:
2893
- if cli_ctx.json_only:
2894
- error_handler.handle_general_error(
2895
- "Apply requires confirmation",
2896
- details={"message": "Use --yes to confirm applying changes."},
2897
- )
2898
- confirm = typer.confirm("Apply import organization to all files?")
2899
- if not confirm:
2900
- output.output_warning("Aborted batch import organization.")
2901
- return
2902
-
2903
- result: dict[str, Any] = {}
2904
- try:
2905
- include_paths = [Path(p) for p in include] if include else None
2906
- exclude_paths = [Path(p) for p in exclude] if exclude else None
2907
-
2908
- if not cli_ctx.quiet and not cli_ctx.json_only:
2909
- from rich.progress import Progress
2910
-
2911
- with Progress(console=output.ctx.console) as progress:
2912
- result = batch_organize_imports(
2913
- paths,
2914
- apply=apply,
2915
- atomic=atomic,
2916
- include_paths=include_paths,
2917
- exclude_paths=exclude_paths,
2918
- git_tracked_only=git_tracked,
2919
- parallel=parallel,
2920
- jobs=jobs,
2921
- progress=progress,
2922
- **lsp_config,
2923
- )
2924
- else:
2925
- result = batch_organize_imports(
2926
- paths,
2927
- apply=apply,
2928
- atomic=atomic,
2929
- include_paths=include_paths,
2930
- exclude_paths=exclude_paths,
2931
- git_tracked_only=git_tracked,
2932
- parallel=parallel,
2933
- jobs=jobs,
2934
- **lsp_config,
2935
- )
2936
- except Exception as exc:
2937
- error_handler.handle_general_error(
2938
- "Batch import organization failed", details={"error": str(exc)}
2939
- )
2940
-
2941
- if output_file:
2942
- _write_output_file(output_file, result)
2943
- if cli_ctx.json_only:
2944
- _emit_json(output, result)
2945
- elif not cli_ctx.quiet:
2946
- if result.get("previews"):
2947
- import difflib
2948
-
2949
- for i, preview in enumerate(result.get("previews", [])):
2950
- if i >= max_previews:
2951
- break
2952
- before = preview.get("before", "").splitlines(keepends=True)
2953
- after = preview.get("after", "").splitlines(keepends=True)
2954
- path = preview.get("file", "unknown")
2955
- diff = difflib.unified_diff(
2956
- before,
2957
- after,
2958
- fromfile=f"{path}:before",
2959
- tofile=f"{path}:after",
2960
- )
2961
- output.ctx.console.print("".join(diff))
2962
- if len(result.get("previews", [])) > max_previews:
2963
- output.ctx.console.print(
2964
- f"[yellow]Showing {max_previews} of {len(result.get('previews', []))} previews. Use --json-only for full output.[/yellow]",
2965
- )
2966
- # Show summary
2967
- from rich.panel import Panel
2968
- from rich.table import Table
2969
-
2970
- summary_table = Table(title="Batch Organize Imports Summary")
2971
- summary_table.add_column("Metric", style="cyan")
2972
- summary_table.add_column("Value", style="green")
2973
- summary_table.add_row("Processed", str(result.get("processed", 0)))
2974
- summary_table.add_row("Modified", str(result.get("modified", 0)))
2975
- summary_table.add_row("Errors", str(result.get("errors", 0)))
2976
- if result.get("backup_dir"):
2977
- summary_table.add_row("Backup", result.get("backup_dir", ""))
2978
- output.ctx.console.print(Panel(summary_table))
2979
- if result.get("error_details"):
2980
- output.ctx.console.print("[yellow]Errors:[/yellow]")
2981
- for error in result.get("error_details", []):
2982
- output.ctx.console.print(f" [red]{error.get('file')}:[/red] {error.get('error')}")
2983
-
2984
-
2985
- @app.command("batch-fix-all")
2986
- def batch_fix_all_cmd(
2987
- ctx: typer.Context,
2988
- paths: Annotated[
2989
- list[Path],
2990
- typer.Argument(..., help="Paths to fix (files or directories)"),
2991
- ],
2992
- apply: Annotated[
2993
- bool,
2994
- typer.Option("--apply", "-a", help="Apply fixes to files"),
2995
- ] = False,
2996
- yes: Annotated[
2997
- bool,
2998
- typer.Option("--yes", "-y", help="Confirm applying fixes"),
2999
- ] = False,
3000
- atomic: Annotated[
3001
- bool,
3002
- typer.Option(
3003
- "--atomic/--no-atomic", help="Backup all files and rollback on error (default: True)"
3004
- ),
3005
- ] = True,
3006
- include: Annotated[
3007
- list[str] | None,
3008
- typer.Option("--include", help="Only include paths matching this pattern"),
3009
- ] = None,
3010
- exclude: Annotated[
3011
- list[str] | None,
3012
- typer.Option("--exclude", help="Exclude paths matching this pattern"),
3013
- ] = None,
3014
- git_tracked: Annotated[
3015
- bool,
3016
- typer.Option("--git-tracked", "-g", help="Only process git-tracked files"),
3017
- ] = False,
3018
- parallel: Annotated[
3019
- bool,
3020
- typer.Option("--parallel/--no-parallel", help="Process files in parallel (default: True)"),
3021
- ] = True,
3022
- jobs: Annotated[
3023
- int | None,
3024
- typer.Option("--jobs", "-j", help="Number of parallel jobs (default: auto-detect)"),
3025
- ] = None,
3026
- max_previews: Annotated[
3027
- int,
3028
- typer.Option("--max-previews", help="Limit number of preview diffs"),
3029
- ] = 5,
3030
- ) -> None:
3031
- """Apply fix-all code actions across multiple Python files."""
3032
- cli_ctx, output, error_handler, _, lsp_config, _path_filters, output_file, _verbose = (
3033
- _get_state(ctx)
3034
- )
3035
- if apply and not yes:
3036
- if cli_ctx.json_only:
3037
- error_handler.handle_general_error(
3038
- "Apply requires confirmation",
3039
- details={"message": "Use --yes to confirm applying fixes."},
3040
- )
3041
- confirm = typer.confirm("Apply fix-all actions to all files?")
3042
- if not confirm:
3043
- output.output_warning("Aborted batch fix-all.")
3044
- return
3045
-
3046
- result: dict[str, Any] = {}
3047
- try:
3048
- include_paths = [Path(p) for p in include] if include else None
3049
- exclude_paths = [Path(p) for p in exclude] if exclude else None
3050
-
3051
- if not cli_ctx.quiet and not cli_ctx.json_only:
3052
- from rich.progress import Progress
3053
-
3054
- with Progress(console=output.ctx.console) as progress:
3055
- result = batch_fix_all(
3056
- paths,
3057
- apply=apply,
3058
- atomic=atomic,
3059
- include_paths=include_paths,
3060
- exclude_paths=exclude_paths,
3061
- git_tracked_only=git_tracked,
3062
- parallel=parallel,
3063
- jobs=jobs,
3064
- progress=progress,
3065
- **lsp_config,
3066
- )
3067
- else:
3068
- result = batch_fix_all(
3069
- paths,
3070
- apply=apply,
3071
- atomic=atomic,
3072
- include_paths=include_paths,
3073
- exclude_paths=exclude_paths,
3074
- git_tracked_only=git_tracked,
3075
- parallel=parallel,
3076
- jobs=jobs,
3077
- **lsp_config,
3078
- )
3079
- except Exception as exc:
3080
- error_handler.handle_general_error("Batch fix-all failed", details={"error": str(exc)})
3081
-
3082
- if output_file:
3083
- _write_output_file(output_file, result)
3084
- if cli_ctx.json_only:
3085
- _emit_json(output, result)
3086
- elif not cli_ctx.quiet:
3087
- if result.get("previews"):
3088
- import difflib
3089
-
3090
- for i, preview in enumerate(result.get("previews", [])):
3091
- if i >= max_previews:
3092
- break
3093
- before = preview.get("before", "").splitlines(keepends=True)
3094
- after = preview.get("after", "").splitlines(keepends=True)
3095
- path = preview.get("file", "unknown")
3096
- diff = difflib.unified_diff(
3097
- before,
3098
- after,
3099
- fromfile=f"{path}:before",
3100
- tofile=f"{path}:after",
3101
- )
3102
- output.ctx.console.print("".join(diff))
3103
- if len(result.get("previews", [])) > max_previews:
3104
- output.ctx.console.print(
3105
- f"[yellow]Showing {max_previews} of {len(result.get('previews', []))} previews. Use --json-only for full output.[/yellow]",
3106
- )
3107
- # Show summary
3108
- from rich.panel import Panel
3109
- from rich.table import Table
3110
-
3111
- summary_table = Table(title="Batch Fix-All Summary")
3112
- summary_table.add_column("Metric", style="cyan")
3113
- summary_table.add_column("Value", style="green")
3114
- summary_table.add_row("Processed", str(result.get("processed", 0)))
3115
- summary_table.add_row("Modified", str(result.get("modified", 0)))
3116
- summary_table.add_row("Errors", str(result.get("errors", 0)))
3117
- if result.get("backup_dir"):
3118
- summary_table.add_row("Backup", result.get("backup_dir", ""))
3119
- output.ctx.console.print(Panel(summary_table))
3120
- if result.get("error_details"):
3121
- output.ctx.console.print("[yellow]Errors:[/yellow]")
3122
- for error in result.get("error_details", []):
3123
- output.ctx.console.print(f" [red]{error.get('file')}:[/red] {error.get('error')}")
3124
-
3125
-
3126
- @app.command("detect-tools")
3127
- def detect_tools_cmd(
3128
- ctx: typer.Context,
3129
- path: Annotated[
3130
- Path,
3131
- typer.Argument(help="Project path to analyze", exists=True, dir_okay=True),
3132
- ] = Path.cwd(),
3133
- format: Annotated[
3134
- Literal["table", "json"],
3135
- typer.Option("--format", "-f", help="Output format"),
3136
- ] = "table",
3137
- ) -> None:
3138
- """Detect and display project tools and configuration.
3139
-
3140
- This command analyzes a Python project and detects:
3141
- - Package manager (uv, poetry, pdm, hatch, pipenv, pip)
3142
- - Type checker (mypy, basedpyright, pyright)
3143
- - Formatter (ruff, black)
3144
- - Linter (ruff, pylint, flake8)
3145
- - Test runner (pytest, unittest)
3146
- - Coverage tool (coverage)
3147
-
3148
- Detection priority: lock files > config sections > dependencies > commands
3149
-
3150
- Examples:
3151
- vds-lsp detect-tools
3152
- vds-lsp detect-tools /path/to/project
3153
- vds-lsp detect-tools --format json
3154
- vds-lsp detect-tools /path/to/project --format json
3155
- """
3156
- cli_ctx, output, error_handler, _config, _lsp_config, _path_filters, output_file, _verbose = (
3157
- _get_state(ctx)
3158
- )
3159
-
3160
- try:
3161
- from .models.project_detector import ProjectDetector
3162
-
3163
- detector = ProjectDetector(path)
3164
- tools = detector.detect_all()
3165
-
3166
- # Build output payload
3167
- payload = {
3168
- "package_manager": tools.package_manager,
3169
- "type_checker": tools.type_checker,
3170
- "formatter": tools.formatter,
3171
- "linter": tools.linter,
3172
- "test_runner": tools.test_runner,
3173
- "coverage_tool": tools.coverage_tool,
3174
- "install_command": tools.get_install_command(),
3175
- "test_command": tools.get_test_command(),
3176
- "project_path": str(path),
3177
- }
3178
-
3179
- if output_file:
3180
- _write_output_file(output_file, payload)
3181
-
3182
- if cli_ctx.json_only or format == "json":
3183
- _emit_json(output, payload)
3184
- elif not cli_ctx.quiet:
3185
- # Table format using Rich
3186
- from rich.table import Table
3187
-
3188
- table = Table(title=f"Project Tools Detection - {path.name}")
3189
- table.add_column("Category", style="cyan")
3190
- table.add_column("Tool", style="green")
3191
- table.add_column("Details", style="yellow")
3192
-
3193
- table.add_row("Package Manager", tools.package_manager, tools.get_install_command())
3194
- table.add_row("Type Checker", tools.type_checker, "")
3195
- table.add_row("Formatter", tools.formatter, "")
3196
- table.add_row("Linter", tools.linter, "")
3197
- table.add_row("Test Runner", tools.test_runner, tools.get_test_command())
3198
- table.add_row("Coverage", tools.coverage_tool, "")
3199
-
3200
- output.ctx.console.print(table)
3201
-
3202
- except Exception as exc:
3203
- error_handler.handle_general_error(
3204
- "Tools detection failed",
3205
- details={"error": str(exc), "path": str(path)},
3206
- )
3207
-
3208
-
3209
- @app.command("daemon")
3210
- def daemon_cmd(
3211
- ctx: typer.Context,
3212
- action: Annotated[
3213
- str,
3214
- typer.Argument(..., help="Action to perform: start, stop, status, restart"),
3215
- ],
3216
- timeout: Annotated[
3217
- int,
3218
- typer.Option(
3219
- "--timeout", "-t", help="Timeout for daemon start/restart (seconds)", show_default=False
3220
- ),
3221
- ] = 30,
3222
- idle_timeout: Annotated[
3223
- int,
3224
- typer.Option(
3225
- "--idle-timeout",
3226
- "-i",
3227
- help="Daemon idle timeout before auto-shutdown (seconds)",
3228
- show_default=False,
3229
- ),
3230
- ] = 300,
3231
- max_clients: Annotated[
3232
- int,
3233
- typer.Option(
3234
- "--max-clients",
3235
- "-m",
3236
- help="Maximum concurrent clients (default: 10)",
3237
- show_default=False,
3238
- ),
3239
- ] = 10,
3240
- hot_reload: Annotated[
3241
- bool,
3242
- typer.Option("--hot-reload/--no-hot-reload", help="Enable/disable config hot reload"),
3243
- ] = True,
3244
- force: Annotated[
3245
- bool,
3246
- typer.Option("--force", "-f", help="Force stop (SIGKILL)"),
3247
- ] = False,
3248
- ) -> None:
3249
- """Manage the LSP daemon process.
3250
-
3251
- Examples:
3252
- vds-lsp-orchestrator daemon start
3253
- vds-lsp-orchestrator daemon status
3254
- vds-lsp-orchestrator daemon stop --force
3255
- vds-lsp-orchestrator daemon restart --idle-timeout 600 --max-clients 20
3256
- vds-lsp-orchestrator daemon start --no-hot-reload
3257
- """
3258
- cli_ctx, output, error_handler, _config, _lsp_config, _path_filters, output_file, _verbose = (
3259
- _get_state(
3260
- ctx,
3261
- )
3262
- )
3263
- root = Path.cwd()
3264
-
3265
- try:
3266
- if action == "start":
3267
- result = daemon_start(
3268
- root,
3269
- timeout=timeout,
3270
- idle_timeout=idle_timeout,
3271
- max_clients=max_clients,
3272
- config_file=_lsp_config.get("config_file"),
3273
- lsp_server=_lsp_config.get("lsp_server"),
3274
- hot_reload=hot_reload,
3275
- )
3276
- elif action == "stop":
3277
- result = daemon_stop(
3278
- root,
3279
- force=force,
3280
- config_file=_lsp_config.get("config_file"),
3281
- )
3282
- elif action == "status":
3283
- result = daemon_status(
3284
- root,
3285
- config_file=_lsp_config.get("config_file"),
3286
- )
3287
- elif action == "restart":
3288
- result = daemon_restart(
3289
- root,
3290
- timeout=timeout,
3291
- idle_timeout=idle_timeout,
3292
- max_clients=max_clients,
3293
- config_file=_lsp_config.get("config_file"),
3294
- hot_reload=hot_reload,
3295
- )
3296
- else:
3297
- error_handler.handle_general_error(
3298
- f"Invalid action: {action}",
3299
- details={"valid_actions": "start, stop, status, restart"},
3300
- )
3301
- return
3302
-
3303
- if output_file:
3304
- _write_output_file(output_file, result)
3305
-
3306
- if cli_ctx.json_only:
3307
- _emit_json(output, result)
3308
- elif not cli_ctx.quiet:
3309
- # Format status output nicely
3310
- if action == "status":
3311
- from rich.table import Table
3312
-
3313
- status_table = Table(title="LSP Daemon Status")
3314
- status_table.add_column("Property", style="cyan")
3315
- status_table.add_column("Value", style="green")
3316
-
3317
- status_table.add_row("Running", "Yes" if result.get("running") else "No")
3318
- if result.get("pid"):
3319
- status_table.add_row("PID", str(result.get("pid")))
3320
- if result.get("socket_path"):
3321
- status_table.add_row("Socket", result.get("socket_path", ""))
3322
- if result.get("uptime_seconds"):
3323
- import datetime
3324
-
3325
- uptime = int(result.get("uptime_seconds", 0))
3326
- uptime_str = str(datetime.timedelta(seconds=uptime))
3327
- status_table.add_row("Uptime", uptime_str)
3328
- if result.get("client_count") is not None:
3329
- client_count = result.get("client_count", 0)
3330
- max_clients = result.get("max_clients", 10)
3331
- status_table.add_row("Clients", f"{client_count}/{max_clients}")
3332
- if result.get("active_clients"):
3333
- active_clients = result.get("active_clients", [])
3334
- if active_clients:
3335
- status_table.add_row(
3336
- "Active IDs",
3337
- ", ".join(active_clients[:5])
3338
- + ("..." if len(active_clients) > 5 else ""),
3339
- )
3340
- if result.get("workspace_root"):
3341
- status_table.add_row("Workspace", result.get("workspace_root", ""))
3342
-
3343
- output.ctx.console.print(status_table)
3344
- else:
3345
- # For start/stop/restart actions
3346
- status = result.get("status", "unknown")
3347
- message = result.get("message", status)
3348
- if status in ("started", "stopped", "restarted"):
3349
- output.ctx.console.print(f"[green]{message}[/green]")
3350
- elif status == "already_running":
3351
- output.ctx.console.print(f"[yellow]{message}[/yellow]")
3352
- elif status == "error":
3353
- output.ctx.console.print(f"[red]{message}[/red]")
3354
- else:
3355
- output.ctx.console.print(message)
3356
-
3357
- except Exception as exc:
3358
- error_handler.handle_general_error(
3359
- f"Daemon {action} failed",
3360
- details={"error": str(exc)},
3361
- )
3362
-
3363
-
3364
- def main() -> None:
3365
- """Main entry point."""
3366
- app()
3367
-
3368
-
3369
- if __name__ == "__main__":
3370
- main()