tancat 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (414) hide show
  1. tancat-0.1.0/.gitignore +175 -0
  2. tancat-0.1.0/LICENSE +108 -0
  3. tancat-0.1.0/NOTICE +26 -0
  4. tancat-0.1.0/PKG-INFO +260 -0
  5. tancat-0.1.0/README.md +225 -0
  6. tancat-0.1.0/cli/__init__.py +21 -0
  7. tancat-0.1.0/cli/evidence_cli.py +376 -0
  8. tancat-0.1.0/cli/main.py +8 -0
  9. tancat-0.1.0/docs/licenses/DEPENDENCIES.md +429 -0
  10. tancat-0.1.0/docs/licenses/DOCUMENT_READER_LICENSES.md +133 -0
  11. tancat-0.1.0/docs/user/assets/cli-run.png +0 -0
  12. tancat-0.1.0/docs/user/assets/favicon.ico +0 -0
  13. tancat-0.1.0/docs/user/assets/fonts.css +32 -0
  14. tancat-0.1.0/docs/user/assets/streamlit-evidence.png +0 -0
  15. tancat-0.1.0/docs/user/assets/streamlit-license-usage.png +0 -0
  16. tancat-0.1.0/docs/user/assets/streamlit-test-generator.png +0 -0
  17. tancat-0.1.0/docs/user/getting-started/configure-llm.md +139 -0
  18. tancat-0.1.0/docs/user/getting-started/first-run.md +111 -0
  19. tancat-0.1.0/docs/user/getting-started/install.md +135 -0
  20. tancat-0.1.0/docs/user/getting-started/what-is-tancat.md +67 -0
  21. tancat-0.1.0/docs/user/guides/evidence.md +115 -0
  22. tancat-0.1.0/docs/user/guides/pipeline.md +98 -0
  23. tancat-0.1.0/docs/user/guides/skips.md +90 -0
  24. tancat-0.1.0/docs/user/index.md +34 -0
  25. tancat-0.1.0/docs/user/reference/licensing.md +127 -0
  26. tancat-0.1.0/landing/404.html +58 -0
  27. tancat-0.1.0/landing/CNAME +1 -0
  28. tancat-0.1.0/landing/apple-touch-icon.png +0 -0
  29. tancat-0.1.0/landing/ci-badge.svg +19 -0
  30. tancat-0.1.0/landing/ci_action.png +0 -0
  31. tancat-0.1.0/landing/cli_run.png +0 -0
  32. tancat-0.1.0/landing/dpa.html +119 -0
  33. tancat-0.1.0/landing/favicon.ico +0 -0
  34. tancat-0.1.0/landing/fonts/OFL-1.1.md +96 -0
  35. tancat-0.1.0/landing/fonts/inter-normal-latin.woff2 +0 -0
  36. tancat-0.1.0/landing/fonts/jetbrains-mono-normal-latin.woff2 +0 -0
  37. tancat-0.1.0/landing/fonts.css +28 -0
  38. tancat-0.1.0/landing/icon-192.png +0 -0
  39. tancat-0.1.0/landing/icon-512.png +0 -0
  40. tancat-0.1.0/landing/index.html +444 -0
  41. tancat-0.1.0/landing/install.html +153 -0
  42. tancat-0.1.0/landing/logo_transparent.png +0 -0
  43. tancat-0.1.0/landing/noir_art.jpg +0 -0
  44. tancat-0.1.0/landing/og-card.png +0 -0
  45. tancat-0.1.0/landing/preview_desktop_1280.png +0 -0
  46. tancat-0.1.0/landing/preview_mobile_390.png +0 -0
  47. tancat-0.1.0/landing/privacy.html +102 -0
  48. tancat-0.1.0/landing/robots.txt +4 -0
  49. tancat-0.1.0/landing/sitemap.xml +42 -0
  50. tancat-0.1.0/landing/streamlit_real_1280x820.png +0 -0
  51. tancat-0.1.0/landing/tailwind.css +1 -0
  52. tancat-0.1.0/landing/tancat-pro-install-and-licence.pdf +0 -0
  53. tancat-0.1.0/landing/terms.html +121 -0
  54. tancat-0.1.0/pyproject.toml +255 -0
  55. tancat-0.1.0/scripts/3d_map_data.json +25197 -0
  56. tancat-0.1.0/scripts/MAINTENANCE.md +87 -0
  57. tancat-0.1.0/scripts/README.md +361 -0
  58. tancat-0.1.0/scripts/ai058_ab_mock_run.py +336 -0
  59. tancat-0.1.0/scripts/ai058_ambiguous_resolver_ab.py +166 -0
  60. tancat-0.1.0/scripts/ai058_ambiguous_seeded_ab.py +314 -0
  61. tancat-0.1.0/scripts/ai058_resolver_ab.py +153 -0
  62. tancat-0.1.0/scripts/ai058_seeded_ab.py +291 -0
  63. tancat-0.1.0/scripts/archive/cli_snapshots/BUG_ANALYSIS_AND_FIX_PLAN_2026-05-29.md +296 -0
  64. tancat-0.1.0/scripts/archive/cli_snapshots/BUG_REPORT_2026-05-29.md +299 -0
  65. tancat-0.1.0/scripts/archive/cli_snapshots/duplicate_shortcut.md +42 -0
  66. tancat-0.1.0/scripts/archive/cli_snapshots/menu_navigation.md +42 -0
  67. tancat-0.1.0/scripts/archive/cli_snapshots/provider_selection.md +75 -0
  68. tancat-0.1.0/scripts/archive/cli_snapshots/quit_shortcut.md +27 -0
  69. tancat-0.1.0/scripts/archive/cli_snapshots/screen_clipping.md +42 -0
  70. tancat-0.1.0/scripts/archive/debug_scripts/analyze_category_page.py +53 -0
  71. tancat-0.1.0/scripts/archive/debug_scripts/analyze_category_structure.py +54 -0
  72. tancat-0.1.0/scripts/archive/debug_scripts/capture_dom_states.py +47 -0
  73. tancat-0.1.0/scripts/archive/debug_scripts/capture_transient_states.py +38 -0
  74. tancat-0.1.0/scripts/archive/debug_scripts/compare_pom_vs_standard.py +195 -0
  75. tancat-0.1.0/scripts/archive/debug_scripts/debug_all.py +166 -0
  76. tancat-0.1.0/scripts/archive/debug_scripts/debug_cli.py +108 -0
  77. tancat-0.1.0/scripts/archive/debug_scripts/debug_compare.py +803 -0
  78. tancat-0.1.0/scripts/archive/debug_scripts/debug_journey_select_item.py +88 -0
  79. tancat-0.1.0/scripts/archive/debug_scripts/debug_pipeline_runner.py +383 -0
  80. tancat-0.1.0/scripts/archive/debug_scripts/debug_pom_e2e.py +280 -0
  81. tancat-0.1.0/scripts/archive/debug_scripts/debug_pom_full_workflow.py +276 -0
  82. tancat-0.1.0/scripts/archive/debug_scripts/debug_pom_mode.py +236 -0
  83. tancat-0.1.0/scripts/archive/debug_scripts/debug_saucedemo_scrape2.py +24 -0
  84. tancat-0.1.0/scripts/archive/debug_scripts/debug_scoring.py +54 -0
  85. tancat-0.1.0/scripts/archive/debug_scripts/debug_skeleton_variability.py +396 -0
  86. tancat-0.1.0/scripts/archive/debug_scripts/probe_saucedemo_spa_404.py +63 -0
  87. tancat-0.1.0/scripts/archive/debug_scripts/prove_fill_issue.py +205 -0
  88. tancat-0.1.0/scripts/archive/debug_scripts/replay_saucedemo_checkout.py +100 -0
  89. tancat-0.1.0/scripts/archive/debug_scripts/skeleton_variability_report.md +403 -0
  90. tancat-0.1.0/scripts/archive/debug_scripts/test_popup_capture.py +23 -0
  91. tancat-0.1.0/scripts/archive/debug_scripts/test_product_detail_flow.py +23 -0
  92. tancat-0.1.0/scripts/archive/debug_scripts/validate_fixes.py +189 -0
  93. tancat-0.1.0/scripts/archive/debug_scripts/verify_saucedemo_stateful_scrape.py +77 -0
  94. tancat-0.1.0/scripts/archive/debug_scripts/verify_saucedemo_upgrade_data.py +59 -0
  95. tancat-0.1.0/scripts/archive/misc/apply_b0xx_journey_fix.py +220 -0
  96. tancat-0.1.0/scripts/archive/misc/debug_compare_results.json +341 -0
  97. tancat-0.1.0/scripts/audit_egress.py +260 -0
  98. tancat-0.1.0/scripts/audit_generated_tests.sh +149 -0
  99. tancat-0.1.0/scripts/benchmark_latency.py +298 -0
  100. tancat-0.1.0/scripts/build_demo.py +402 -0
  101. tancat-0.1.0/scripts/build_finetune_dataset.py +437 -0
  102. tancat-0.1.0/scripts/check_shipped_claims.py +440 -0
  103. tancat-0.1.0/scripts/ci_action_selftest.py +1036 -0
  104. tancat-0.1.0/scripts/ci_gitlab_real_project_test.py +411 -0
  105. tancat-0.1.0/scripts/ci_slash_commands.py +190 -0
  106. tancat-0.1.0/scripts/cli_walkthrough.py +481 -0
  107. tancat-0.1.0/scripts/dead_code_baseline.txt +30 -0
  108. tancat-0.1.0/scripts/debug/cdp_attach.py +125 -0
  109. tancat-0.1.0/scripts/debug/debug_all.py +166 -0
  110. tancat-0.1.0/scripts/debug/debug_cli_interactive.py +584 -0
  111. tancat-0.1.0/scripts/debug/debug_pipeline.py +501 -0
  112. tancat-0.1.0/scripts/debug/debug_saucedemo_inventory.py +140 -0
  113. tancat-0.1.0/scripts/debug/debug_saucedemo_login.py +144 -0
  114. tancat-0.1.0/scripts/debug.py +543 -0
  115. tancat-0.1.0/scripts/debug_step_through.py +217 -0
  116. tancat-0.1.0/scripts/eval/README.md +426 -0
  117. tancat-0.1.0/scripts/eval/aria_automationexercise.yaml +496 -0
  118. tancat-0.1.0/scripts/eval/aria_demoqa.yaml +66 -0
  119. tancat-0.1.0/scripts/eval/aria_saucedemo.yaml +8 -0
  120. tancat-0.1.0/scripts/eval/aria_snapshot.yaml +43 -0
  121. tancat-0.1.0/scripts/eval/baseline.json +1335 -0
  122. tancat-0.1.0/scripts/eval/baseline_0896b14.json +12 -0
  123. tancat-0.1.0/scripts/eval/baseline_2026-07-28.json +22 -0
  124. tancat-0.1.0/scripts/eval/captures/automationexercise_code.py +78 -0
  125. tancat-0.1.0/scripts/eval/captures/banking_mock_code.py +86 -0
  126. tancat-0.1.0/scripts/eval/captures/demoqa_code.py +59 -0
  127. tancat-0.1.0/scripts/eval/captures/ecommerce_mock_code.py +81 -0
  128. tancat-0.1.0/scripts/eval/captures/lv_insurance_code.py +89 -0
  129. tancat-0.1.0/scripts/eval/captures/saucedemo_code.py +81 -0
  130. tancat-0.1.0/scripts/eval/captures/theinternet_code.py +47 -0
  131. tancat-0.1.0/scripts/eval/captures_graph_final/automationexercise_code.py +43 -0
  132. tancat-0.1.0/scripts/eval/captures_graph_final/demoqa_code.py +31 -0
  133. tancat-0.1.0/scripts/eval/captures_graph_final/lv_insurance_code.py +126 -0
  134. tancat-0.1.0/scripts/eval/captures_graph_final/saucedemo_code.py +63 -0
  135. tancat-0.1.0/scripts/eval/captures_graph_final/theinternet_code.py +33 -0
  136. tancat-0.1.0/scripts/eval/captures_graph_v2/automationexercise_code.py +44 -0
  137. tancat-0.1.0/scripts/eval/captures_graph_v2/demoqa_code.py +38 -0
  138. tancat-0.1.0/scripts/eval/captures_graph_v2/lv_insurance_code.py +114 -0
  139. tancat-0.1.0/scripts/eval/captures_graph_v2/saucedemo_code.py +64 -0
  140. tancat-0.1.0/scripts/eval/captures_graph_v2/theinternet_code.py +34 -0
  141. tancat-0.1.0/scripts/eval/captures_linear_final/automationexercise_code.py +79 -0
  142. tancat-0.1.0/scripts/eval/captures_linear_final/demoqa_code.py +55 -0
  143. tancat-0.1.0/scripts/eval/captures_linear_final/lv_insurance_code.py +89 -0
  144. tancat-0.1.0/scripts/eval/captures_linear_final/saucedemo_code.py +81 -0
  145. tancat-0.1.0/scripts/eval/captures_linear_final/theinternet_code.py +47 -0
  146. tancat-0.1.0/scripts/eval/captures_linear_regenerated/automationexercise_code.py +79 -0
  147. tancat-0.1.0/scripts/eval/captures_linear_regenerated/demoqa_code.py +55 -0
  148. tancat-0.1.0/scripts/eval/captures_linear_regenerated/lv_insurance_code.py +89 -0
  149. tancat-0.1.0/scripts/eval/captures_linear_regenerated/saucedemo_code.py +81 -0
  150. tancat-0.1.0/scripts/eval/captures_linear_regenerated/theinternet_code.py +47 -0
  151. tancat-0.1.0/scripts/eval/ci_summary.py +167 -0
  152. tancat-0.1.0/scripts/eval/compare_model_baselines.py +278 -0
  153. tancat-0.1.0/scripts/eval/dataset/eval-001_saucedemo_login_checkout.json +251 -0
  154. tancat-0.1.0/scripts/eval/dataset/eval-002_automationexercise_browse_cart.json +143 -0
  155. tancat-0.1.0/scripts/eval/dataset/eval-003_demoqa_forms.json +123 -0
  156. tancat-0.1.0/scripts/eval/dataset/eval-004_theinternet_alerts.json +112 -0
  157. tancat-0.1.0/scripts/eval/dataset/eval-005_lv_insurance_quote.json +290 -0
  158. tancat-0.1.0/scripts/eval/dataset/eval-006_ecommerce_mock.json +238 -0
  159. tancat-0.1.0/scripts/eval/dataset/eval-007_banking_mock.json +201 -0
  160. tancat-0.1.0/scripts/eval/dataset/eval-008_goto_navigation.json +205 -0
  161. tancat-0.1.0/scripts/eval/dataset/eval-010_ambiguous_mock.json +81 -0
  162. tancat-0.1.0/scripts/eval/dataset/graph/eval-001_saucedemo_graph.json +440 -0
  163. tancat-0.1.0/scripts/eval/dataset/graph/eval-002_automationexercise_graph.json +190 -0
  164. tancat-0.1.0/scripts/eval/dataset/graph/eval-003_demoqa_graph.json +165 -0
  165. tancat-0.1.0/scripts/eval/dataset/graph/eval-004_theinternet_graph.json +180 -0
  166. tancat-0.1.0/scripts/eval/dataset/graph/eval-005_lv_insurance_graph.json +377 -0
  167. tancat-0.1.0/scripts/eval/dataset_docs/doc-001_prd_login_overhaul.json +73 -0
  168. tancat-0.1.0/scripts/eval/dataset_docs/doc-001_prd_login_overhaul.md +51 -0
  169. tancat-0.1.0/scripts/eval/dataset_docs/doc-002_changelog_ecommerce.json +56 -0
  170. tancat-0.1.0/scripts/eval/dataset_docs/doc-002_changelog_ecommerce.md +38 -0
  171. tancat-0.1.0/scripts/eval/dataset_docs/doc-003_jira_dashboard.json +50 -0
  172. tancat-0.1.0/scripts/eval/dataset_docs/doc-003_jira_dashboard.md +52 -0
  173. tancat-0.1.0/scripts/eval/eval_alignment.py +273 -0
  174. tancat-0.1.0/scripts/eval/eval_alignment_test.py +117 -0
  175. tancat-0.1.0/scripts/eval/eval_criteria.py +406 -0
  176. tancat-0.1.0/scripts/eval/eval_evidence.py +240 -0
  177. tancat-0.1.0/scripts/eval/eval_harness.py +607 -0
  178. tancat-0.1.0/scripts/eval/eval_metrics.py +486 -0
  179. tancat-0.1.0/scripts/eval/eval_metrics_test.py +385 -0
  180. tancat-0.1.0/scripts/eval/eval_model_baseline.py +238 -0
  181. tancat-0.1.0/scripts/eval/eval_resolver.py +902 -0
  182. tancat-0.1.0/scripts/eval/eval_runner.py +2239 -0
  183. tancat-0.1.0/scripts/eval/eval_runner_test.py +719 -0
  184. tancat-0.1.0/scripts/eval/extract_graph_keys.py +118 -0
  185. tancat-0.1.0/scripts/eval/flow_holdout_eval.py +244 -0
  186. tancat-0.1.0/scripts/eval/gate_record.py +313 -0
  187. tancat-0.1.0/scripts/eval/golden_validator.py +880 -0
  188. tancat-0.1.0/scripts/eval/golden_validator_test.py +745 -0
  189. tancat-0.1.0/scripts/eval/heldout_split.py +249 -0
  190. tancat-0.1.0/scripts/eval/known_gate_scores.json +1094 -0
  191. tancat-0.1.0/scripts/eval/learning_impact.py +175 -0
  192. tancat-0.1.0/scripts/eval/refresh_lv_capture.py +165 -0
  193. tancat-0.1.0/scripts/eval/rescore.py +254 -0
  194. tancat-0.1.0/scripts/eval/revalidate_goldens.py +704 -0
  195. tancat-0.1.0/scripts/eval/revalidation/latest.json +449 -0
  196. tancat-0.1.0/scripts/eval/uat_tstring_prototype.py +196 -0
  197. tancat-0.1.0/scripts/evidence_capture_benchmark.py +130 -0
  198. tancat-0.1.0/scripts/export_27b_gguf.py +74 -0
  199. tancat-0.1.0/scripts/export_gate.py +420 -0
  200. tancat-0.1.0/scripts/extract_mock_elements.py +112 -0
  201. tancat-0.1.0/scripts/fake_llm.py +338 -0
  202. tancat-0.1.0/scripts/gate_full.py +197 -0
  203. tancat-0.1.0/scripts/maintenance/check_landing_placeholders.py +92 -0
  204. tancat-0.1.0/scripts/maintenance/cli_e2e_validation.py +199 -0
  205. tancat-0.1.0/scripts/maintenance/kanban.py +982 -0
  206. tancat-0.1.0/scripts/maintenance/landing_assets_guard.py +186 -0
  207. tancat-0.1.0/scripts/maintenance/licence_record.py +541 -0
  208. tancat-0.1.0/scripts/maintenance/make_landing_assets.py +275 -0
  209. tancat-0.1.0/scripts/maintenance/make_ocr_scanned_fixture.py +111 -0
  210. tancat-0.1.0/scripts/maintenance/project_sanitizer.py +490 -0
  211. tancat-0.1.0/scripts/maintenance/vendor_ocr_models.py +172 -0
  212. tancat-0.1.0/scripts/map_3d/audit_3d_map.py +226 -0
  213. tancat-0.1.0/scripts/map_3d/generate_3d_map.py +693 -0
  214. tancat-0.1.0/scripts/map_3d/index_selection.py +145 -0
  215. tancat-0.1.0/scripts/map_3d/viewer.html +93 -0
  216. tancat-0.1.0/scripts/mock_server.py +241 -0
  217. tancat-0.1.0/scripts/parity_check.py +464 -0
  218. tancat-0.1.0/scripts/rag_ingest.py +411 -0
  219. tancat-0.1.0/scripts/release_guards.py +167 -0
  220. tancat-0.1.0/scripts/reliability_test.py +414 -0
  221. tancat-0.1.0/scripts/rerun_mock_resolve_learn.py +34 -0
  222. tancat-0.1.0/scripts/run_lv_eval.py +79 -0
  223. tancat-0.1.0/scripts/scrape_lv_mock.py +63 -0
  224. tancat-0.1.0/scripts/security/gitleaks_scan.py +63 -0
  225. tancat-0.1.0/scripts/security/secret_scan.py +120 -0
  226. tancat-0.1.0/scripts/serve_mock_site.py +17 -0
  227. tancat-0.1.0/scripts/smoke.py +344 -0
  228. tancat-0.1.0/scripts/synthesize_stories.py +786 -0
  229. tancat-0.1.0/scripts/train_27b_qlora.py +100 -0
  230. tancat-0.1.0/scripts/uat/uat_automationexercise.py +415 -0
  231. tancat-0.1.0/scripts/uat/uat_test_table.py +147 -0
  232. tancat-0.1.0/scripts/uat.py +901 -0
  233. tancat-0.1.0/scripts/validate_report_artifacts.py +157 -0
  234. tancat-0.1.0/scripts/verify_production.py +812 -0
  235. tancat-0.1.0/scripts/verify_production_baseline.json +45 -0
  236. tancat-0.1.0/src/__init__.py +1 -0
  237. tancat-0.1.0/src/accessibility_enricher.py +411 -0
  238. tancat-0.1.0/src/agents/__init__.py +75 -0
  239. tancat-0.1.0/src/agents/director.py +106 -0
  240. tancat-0.1.0/src/agents/generator.py +135 -0
  241. tancat-0.1.0/src/agents/graph.py +117 -0
  242. tancat-0.1.0/src/agents/ingestion.py +340 -0
  243. tancat-0.1.0/src/agents/pipeline_graph.py +525 -0
  244. tancat-0.1.0/src/agents/pipeline_state.py +170 -0
  245. tancat-0.1.0/src/agents/planner.py +104 -0
  246. tancat-0.1.0/src/agents/prompt_safety.py +33 -0
  247. tancat-0.1.0/src/agents/state.py +40 -0
  248. tancat-0.1.0/src/agents/synthesizer.py +181 -0
  249. tancat-0.1.0/src/agents/validator.py +75 -0
  250. tancat-0.1.0/src/analyzer.py +284 -0
  251. tancat-0.1.0/src/aria_parser.py +330 -0
  252. tancat-0.1.0/src/artifact_validation.py +500 -0
  253. tancat-0.1.0/src/assertion_alignment.py +184 -0
  254. tancat-0.1.0/src/browser_utils.py +533 -0
  255. tancat-0.1.0/src/cart_seeding_scraper.py +161 -0
  256. tancat-0.1.0/src/ci_ignore.py +140 -0
  257. tancat-0.1.0/src/citation_surfaces.py +212 -0
  258. tancat-0.1.0/src/citation_verifier.py +277 -0
  259. tancat-0.1.0/src/cli/__init__.py +21 -0
  260. tancat-0.1.0/src/cli/color.py +62 -0
  261. tancat-0.1.0/src/cli/config.py +25 -0
  262. tancat-0.1.0/src/cli/evidence_generator.py +538 -0
  263. tancat-0.1.0/src/cli/headless.py +577 -0
  264. tancat-0.1.0/src/cli/input_parser.py +586 -0
  265. tancat-0.1.0/src/cli/main.py +920 -0
  266. tancat-0.1.0/src/cli/menu_renderer.py +883 -0
  267. tancat-0.1.0/src/cli/pipeline_runner.py +1463 -0
  268. tancat-0.1.0/src/cli/report_generator.py +450 -0
  269. tancat-0.1.0/src/cli/retro_ui.py +380 -0
  270. tancat-0.1.0/src/cli/run_results_display.py +212 -0
  271. tancat-0.1.0/src/cli/session.py +202 -0
  272. tancat-0.1.0/src/cli/terminal_adapter.py +145 -0
  273. tancat-0.1.0/src/cli/test_case_orchestrator.py +516 -0
  274. tancat-0.1.0/src/cli/testing_terminal.py +36 -0
  275. tancat-0.1.0/src/code_normalizer.py +410 -0
  276. tancat-0.1.0/src/code_postprocessor.py +1991 -0
  277. tancat-0.1.0/src/code_validator.py +174 -0
  278. tancat-0.1.0/src/config.py +126 -0
  279. tancat-0.1.0/src/content_scoping.py +176 -0
  280. tancat-0.1.0/src/coverage_utils.py +248 -0
  281. tancat-0.1.0/src/credential_redaction.py +242 -0
  282. tancat-0.1.0/src/data/ocr/PP-OCRv6_det_small.pth +0 -0
  283. tancat-0.1.0/src/data/ocr/PP-OCRv6_rec_small.pth +0 -0
  284. tancat-0.1.0/src/data/ocr/README.md +42 -0
  285. tancat-0.1.0/src/data/ocr/ch_ppocr_mobile_v2.0_cls_mobile.pth +0 -0
  286. tancat-0.1.0/src/data/ocr/manifest.json +37 -0
  287. tancat-0.1.0/src/data/ocr/ppocrv6_dict.txt +18708 -0
  288. tancat-0.1.0/src/element_enricher.py +337 -0
  289. tancat-0.1.0/src/element_matcher.py +1768 -0
  290. tancat-0.1.0/src/evidence_export.py +409 -0
  291. tancat-0.1.0/src/evidence_image.py +152 -0
  292. tancat-0.1.0/src/evidence_index.py +530 -0
  293. tancat-0.1.0/src/evidence_loader.py +258 -0
  294. tancat-0.1.0/src/evidence_report.py +1174 -0
  295. tancat-0.1.0/src/evidence_serializer.py +84 -0
  296. tancat-0.1.0/src/evidence_tracker.py +2711 -0
  297. tancat-0.1.0/src/export_service.py +344 -0
  298. tancat-0.1.0/src/failure_classifier.py +225 -0
  299. tancat-0.1.0/src/failure_reporter.py +486 -0
  300. tancat-0.1.0/src/file_utils.py +107 -0
  301. tancat-0.1.0/src/flow_memory.py +658 -0
  302. tancat-0.1.0/src/form_detector.py +134 -0
  303. tancat-0.1.0/src/form_login_utils.py +104 -0
  304. tancat-0.1.0/src/gantt_utils.py +194 -0
  305. tancat-0.1.0/src/heatmap_alignment.py +415 -0
  306. tancat-0.1.0/src/heatmap_utils.py +838 -0
  307. tancat-0.1.0/src/hover_click_utils.py +208 -0
  308. tancat-0.1.0/src/intent_matcher.py +849 -0
  309. tancat-0.1.0/src/journey_auth_detector.py +69 -0
  310. tancat-0.1.0/src/journey_enrichment.py +198 -0
  311. tancat-0.1.0/src/journey_executor.py +446 -0
  312. tancat-0.1.0/src/journey_models.py +197 -0
  313. tancat-0.1.0/src/journey_scraper.py +1476 -0
  314. tancat-0.1.0/src/journey_subprocess.py +83 -0
  315. tancat-0.1.0/src/learning_impact.py +581 -0
  316. tancat-0.1.0/src/learning_metrics.py +396 -0
  317. tancat-0.1.0/src/licensing/__init__.py +58 -0
  318. tancat-0.1.0/src/licensing/activation.py +532 -0
  319. tancat-0.1.0/src/licensing/entitlement.py +188 -0
  320. tancat-0.1.0/src/licensing/license.py +119 -0
  321. tancat-0.1.0/src/licensing/merchant.py +27 -0
  322. tancat-0.1.0/src/licensing/pricing.py +51 -0
  323. tancat-0.1.0/src/licensing/tiers.py +194 -0
  324. tancat-0.1.0/src/licensing/window.py +63 -0
  325. tancat-0.1.0/src/link_scoping.py +221 -0
  326. tancat-0.1.0/src/llm_cache.py +265 -0
  327. tancat-0.1.0/src/llm_client.py +559 -0
  328. tancat-0.1.0/src/llm_errors.py +29 -0
  329. tancat-0.1.0/src/llm_health.py +433 -0
  330. tancat-0.1.0/src/llm_providers/__init__.py +795 -0
  331. tancat-0.1.0/src/llm_reasoning_filter.py +173 -0
  332. tancat-0.1.0/src/locator_builder.py +307 -0
  333. tancat-0.1.0/src/locator_fallback.py +206 -0
  334. tancat-0.1.0/src/locator_repair.py +875 -0
  335. tancat-0.1.0/src/locator_scorer.py +321 -0
  336. tancat-0.1.0/src/navigation_target.py +173 -0
  337. tancat-0.1.0/src/ocr_backends.py +921 -0
  338. tancat-0.1.0/src/orchestrator.py +1334 -0
  339. tancat-0.1.0/src/page_identity.py +303 -0
  340. tancat-0.1.0/src/page_object_builder.py +621 -0
  341. tancat-0.1.0/src/pdf_ingest.py +718 -0
  342. tancat-0.1.0/src/pipeline_artifact_manager.py +386 -0
  343. tancat-0.1.0/src/pipeline_models.py +263 -0
  344. tancat-0.1.0/src/pipeline_report_service.py +125 -0
  345. tancat-0.1.0/src/pipeline_run_service.py +244 -0
  346. tancat-0.1.0/src/pipeline_writer.py +320 -0
  347. tancat-0.1.0/src/placeholder_orchestrator.py +3225 -0
  348. tancat-0.1.0/src/placeholder_resolver.py +935 -0
  349. tancat-0.1.0/src/placeholder_scorers.py +1681 -0
  350. tancat-0.1.0/src/pom_helpers.py +254 -0
  351. tancat-0.1.0/src/prerequisite_injector.py +514 -0
  352. tancat-0.1.0/src/project.py +73 -0
  353. tancat-0.1.0/src/prompt_builder.py +383 -0
  354. tancat-0.1.0/src/prompt_utils.py +267 -0
  355. tancat-0.1.0/src/provider_config.py +179 -0
  356. tancat-0.1.0/src/pytest_output_parser.py +354 -0
  357. tancat-0.1.0/src/rag_bundled.py +671 -0
  358. tancat-0.1.0/src/rag_learn.py +770 -0
  359. tancat-0.1.0/src/rag_retriever.py +234 -0
  360. tancat-0.1.0/src/rag_store.py +996 -0
  361. tancat-0.1.0/src/rag_store_lock.py +256 -0
  362. tancat-0.1.0/src/rag_switches.py +147 -0
  363. tancat-0.1.0/src/report_builder.py +243 -0
  364. tancat-0.1.0/src/report_formats.py +52 -0
  365. tancat-0.1.0/src/report_formatters.py +729 -0
  366. tancat-0.1.0/src/report_utils.py +28 -0
  367. tancat-0.1.0/src/role_mapper.py +215 -0
  368. tancat-0.1.0/src/run_history_chart.py +494 -0
  369. tancat-0.1.0/src/run_history_cli.py +257 -0
  370. tancat-0.1.0/src/run_result_persistence.py +405 -0
  371. tancat-0.1.0/src/run_utils.py +79 -0
  372. tancat-0.1.0/src/scraper.py +1031 -0
  373. tancat-0.1.0/src/section_scoper.py +305 -0
  374. tancat-0.1.0/src/secure_config.py +260 -0
  375. tancat-0.1.0/src/self_healing.py +934 -0
  376. tancat-0.1.0/src/semantic_candidate_ranker.py +442 -0
  377. tancat-0.1.0/src/semantic_matcher.py +239 -0
  378. tancat-0.1.0/src/settings_store.py +165 -0
  379. tancat-0.1.0/src/skeleton_parser.py +459 -0
  380. tancat-0.1.0/src/skeleton_validator.py +109 -0
  381. tancat-0.1.0/src/skip_manager.py +226 -0
  382. tancat-0.1.0/src/source_refs.py +178 -0
  383. tancat-0.1.0/src/spec_analyzer.py +543 -0
  384. tancat-0.1.0/src/sqlite_persistence.py +615 -0
  385. tancat-0.1.0/src/stateful_scraper.py +280 -0
  386. tancat-0.1.0/src/storage.py +204 -0
  387. tancat-0.1.0/src/test_generator.py +142 -0
  388. tancat-0.1.0/src/test_plan.py +217 -0
  389. tancat-0.1.0/src/test_structure_assembler.py +152 -0
  390. tancat-0.1.0/src/test_table.py +491 -0
  391. tancat-0.1.0/src/ui/__init__.py +1 -0
  392. tancat-0.1.0/src/ui/shared.py +81 -0
  393. tancat-0.1.0/src/ui/ui_downloads.py +51 -0
  394. tancat-0.1.0/src/ui/ui_evidence.py +716 -0
  395. tancat-0.1.0/src/ui/ui_journey.py +339 -0
  396. tancat-0.1.0/src/ui/ui_requirements.py +32 -0
  397. tancat-0.1.0/src/ui/ui_results.py +188 -0
  398. tancat-0.1.0/src/ui/ui_run_comparison.py +117 -0
  399. tancat-0.1.0/src/ui/ui_run_results.py +1375 -0
  400. tancat-0.1.0/src/ui/ui_saved_packages.py +411 -0
  401. tancat-0.1.0/src/ui/ui_sidebar.py +485 -0
  402. tancat-0.1.0/src/ui_pipeline.py +515 -0
  403. tancat-0.1.0/src/url_guard.py +350 -0
  404. tancat-0.1.0/src/url_inference.py +49 -0
  405. tancat-0.1.0/src/url_resolver.py +307 -0
  406. tancat-0.1.0/src/url_utils.py +91 -0
  407. tancat-0.1.0/src/usage_meter.py +360 -0
  408. tancat-0.1.0/src/user_story_parser.py +311 -0
  409. tancat-0.1.0/src/verification_strength.py +228 -0
  410. tancat-0.1.0/src/verify_baseline.py +276 -0
  411. tancat-0.1.0/src/version_check.py +370 -0
  412. tancat-0.1.0/src/version_info.py +49 -0
  413. tancat-0.1.0/src/vision_enricher.py +307 -0
  414. tancat-0.1.0/uv.lock +3836 -0
@@ -0,0 +1,175 @@
1
+ # ── Python ───────────────────────────────────────────────────────────────────
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+ *.so
6
+ *.egg
7
+ *.egg-info/
8
+ MANIFEST
9
+ .Python
10
+ .installed.cfg
11
+
12
+ # ── Build & Distribution ──────────────────────────────────────────────────────
13
+ build/
14
+ dist/
15
+ develop-eggs/
16
+ downloads/
17
+ eggs/
18
+ .eggs/
19
+ lib/
20
+ lib64/
21
+ parts/
22
+ sdist/
23
+ var/
24
+ wheels/
25
+
26
+ # ── Virtual Environments ──────────────────────────────────────────────────────
27
+ .venv/
28
+ venv/
29
+ env/
30
+ ENV/
31
+
32
+ # ── Environment & Secrets ─────────────────────────────────────────────────────
33
+ .env
34
+ .env.local
35
+ .env.*.local
36
+
37
+ # ── IDE ───────────────────────────────────────────────────────────────────────
38
+ .vscode/
39
+ !.vscode/launch.json
40
+ .idea/
41
+ *.swp
42
+ *.swo
43
+ *~
44
+
45
+ # ── OS ────────────────────────────────────────────────────────────────────────
46
+ .DS_Store
47
+ Thumbs.db
48
+
49
+ # ── Docker ────────────────────────────────────────────────────────────────────
50
+ .docker/
51
+
52
+ # ── Logs & Debug Output ───────────────────────────────────────────────────────
53
+ *.log
54
+ logs/
55
+ streamlit.err
56
+ pytest_out*.txt
57
+ uat_output*.txt
58
+ vulture_report.txt
59
+
60
+ # ── Testing & Coverage ────────────────────────────────────────────────────────
61
+ .pytest_cache/
62
+ .coverage
63
+ coverage.xml
64
+ htmlcov/
65
+ .tox/
66
+ test-results/
67
+ exported_tests/
68
+ bench_*
69
+ # ── Type Checking ─────────────────────────────────────────────────────────────
70
+ .mypy_cache/
71
+
72
+ # ── Screenshots ───────────────────────────────────────────────────────────────
73
+ screenshots/*
74
+ !screenshots/.gitkeep
75
+ !assets/*.png
76
+
77
+ # ── Evidence Sidecars ────────────────────────────────────────────────────────
78
+ evidence/
79
+ # Root-level runtime artifact (empty DB created by local runs) — not tracked.
80
+ run_results.sqlite
81
+ # The export-gate golden fixture mirrors a real generated package, whose
82
+ # run-history DB lives in evidence/ — keep that one file tracked (B-032).
83
+ !fixtures/golden_package/evidence/
84
+ !fixtures/golden_package/evidence/run_results.sqlite
85
+ # ── Generated Test Files ──────────────────────────────────────────────────────
86
+ # Ignore all generated test outputs (test packages, reports, parsed cases)
87
+ generated_tests/test_*/
88
+ generated_tests/verify_*/
89
+ # Flat generated test *scripts* (verify_production writes test_<site>.py, not a package)
90
+ # NOTE: committing these is forbidden per AGENTS.md — this rule enforces that.
91
+ generated_tests/test_*.py
92
+ # resolve-and-learn output (large — screenshots + resolved tests)
93
+ generated_tests/resolved/
94
+ generated_tests/test_cases_*.*
95
+ generated_tests/test_report_*.*
96
+ # Per-run verification verdicts (eval harness output, re-generated each run)
97
+ generated_tests/verification_strength.json
98
+ generated_tests/pages/
99
+ generated_tests/uat_*/
100
+
101
+ # But specifically DO NOT ignore these files (needed for the tool to work)
102
+ !generated_tests/conftest.py
103
+ !generated_tests/mock_insurance_site.html
104
+
105
+ # ── MCP Memory Bank ────────────────
106
+ cline-mcp-memory-bank/
107
+ # ── memory-bank/ ────────────────
108
+ memory-bank/
109
+
110
+ package-lock.json
111
+
112
+ # ── Cline/AI agent scratch files ─────────────────────────────────────────────
113
+ tmp_*.py
114
+ FIX_SUMMARY.md
115
+ ISSUES_FOUND_AND_FIXES.md
116
+ *.png
117
+ !assets/*.png
118
+ !landing/*.png
119
+ !screenshots/.gitkeep
120
+ .tmp/
121
+
122
+ # ── Private / Commercial Strategy Docs ────────────────────────────────────────
123
+ docs/private/
124
+
125
+ # Playwright
126
+ node_modules/
127
+ /playwright-report/
128
+ /blob-report/
129
+ /playwright/.cache/
130
+ /playwright/.auth/
131
+ # ── Scratch Files ──────────────
132
+ # scratch/ removed 2026-08-21 (audit): benchmark material moved to ../llm-benchmarks,
133
+ # stale debug scripts deleted. Keep the dir ignored so agent scratch never gets tracked again.
134
+ scratch/
135
+
136
+ # ── notebooks ──────────────
137
+
138
+ notebooks/_debug_output.py
139
+ notebooks/.ipynb_checkpoints/
140
+ graphify-out/
141
+ results_*.json
142
+ .pi/
143
+ secrets/
144
+ evidence/rag_store.db
145
+ *.db
146
+ scripts/eval/scraped_pages/
147
+ scripts/eval/generated_tests/
148
+ .mcp.json
149
+ nul
150
+ .playwright-mcp/
151
+ raw/
152
+ generated_tests/debug_*
153
+ unsloth_compiled_cache/
154
+ ci-workspace/
155
+
156
+ # Phase 7 CI action scratch workspace (generated by the action / local self-test)
157
+ .ai-test-workspace/
158
+
159
+ # Phase 7 CI action scratch workspace (no leading dot — the action input default)
160
+ ai-test-workspace/
161
+
162
+ # Git worktrees (parallel agent worktrees). The branches live in this repo; the
163
+ # working directories do not belong in it.
164
+ .worktrees/
165
+
166
+ # local zvec-grep search index (dev-only, regenerable)
167
+ .zvec-grep/
168
+
169
+ # Published user docs: the MkDocs build output is regenerated, and the
170
+ # screenshots under docs/user/assets/ are tracked despite the global *.png rule.
171
+ site/
172
+ !docs/user/assets/*.png
173
+
174
+ # Wrangler deploy cache (t-1505: a live test left services/licence-relay/.wrangler/)
175
+ services/licence-relay/.wrangler/
tancat-0.1.0/LICENSE ADDED
@@ -0,0 +1,108 @@
1
+ License text copyright (c) 2024 MariaDB plc, All Rights Reserved.
2
+ “Business Source License” is a trademark of MariaDB plc.
3
+
4
+ Parameters
5
+
6
+ Licensor: Cat Tan Operations Ltd, a company registered in England and Wales
7
+ (company number 17576111), whose registered office is at Flat 2,
8
+ Bournehall, 2 Bourne Close, Bournemouth, BH2 6BW
9
+ Licensed Work: TanCat version 0.1.0 or later. The Licensed Work is (c) 2026
10
+ Cat Tan Operations Ltd.
11
+ Additional Use Grant: You may make production use of the Licensed Work for any
12
+ internal purpose. You may not offer the Licensed Work, or a
13
+ product or service that provides substantially the same
14
+ functionality as the Licensed Work, to third parties as a
15
+ competing product or service.
16
+
17
+ Change Date: The fourth anniversary of the date the Licensed Work is
18
+ first publicly distributed.
19
+
20
+ Change License: Apache License, Version 2.0
21
+
22
+ For information about alternative licensing arrangements for the Software,
23
+ please contact: hello@tancat.dev
24
+
25
+ Notice
26
+
27
+ The Business Source License (this document, or the “License”) is not an Open
28
+ Source license. However, the Licensed Work will eventually be made available
29
+ under an Open Source License, as stated in this License.
30
+
31
+ For more information on the use of the Business Source License for MariaDB
32
+ products, please visit the MariaDB Business Source License FAQ at
33
+ https://mariadb.com/bsl-faq-mariadb.
34
+
35
+ For more information on the use of the Business Source License generally,
36
+ please visit the Adopting and Developing Business Source License FAQ at
37
+ https://mariadb.com/bsl-faq-adopting.
38
+
39
+ -----------------------------------------------------------------------------
40
+
41
+ Business Source License 1.1
42
+
43
+ Terms
44
+
45
+ The Licensor hereby grants you the right to copy, modify, create derivative
46
+ works, redistribute, and make non-production use of the Licensed Work. The
47
+ Licensor may make an Additional Use Grant, above, permitting limited
48
+ production use.
49
+
50
+ Effective on the Change Date, or the fourth anniversary of the first publicly
51
+ available distribution of a specific version of the Licensed Work under this
52
+ License, whichever comes first, the Licensor hereby grants you rights under
53
+ the terms of the Change License, and the rights granted in the paragraph
54
+ above terminate.
55
+
56
+ If your use of the Licensed Work does not comply with the requirements
57
+ currently in effect as described in this License, you must purchase a
58
+ commercial license from the Licensor, its affiliated entities, or authorized
59
+ resellers, or you must refrain from using the Licensed Work.
60
+
61
+ All copies of the original and modified Licensed Work, and derivative works
62
+ of the Licensed Work, are subject to this License. This License applies
63
+ separately for each version of the Licensed Work and the Change Date may vary
64
+ for each version of the Licensed Work released by Licensor.
65
+
66
+ You must conspicuously display this License on each original or modified copy
67
+ of the Licensed Work. If you receive the Licensed Work in original or
68
+ modified form from a third party, the terms and conditions set forth in this
69
+ License apply to your use of that work.
70
+
71
+ Any use of the Licensed Work in violation of this License will automatically
72
+ terminate your rights under this License for the current and all other
73
+ versions of the Licensed Work.
74
+
75
+ This License does not grant you any right in any trademark or logo of
76
+ Licensor or its affiliates (provided that you may use a trademark or logo of
77
+ Licensor as expressly required by this License).
78
+
79
+ TO THE EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSED WORK IS PROVIDED ON
80
+ AN “AS IS” BASIS. LICENSOR HEREBY DISCLAIMS ALL WARRANTIES AND CONDITIONS,
81
+ EXPRESS OR IMPLIED, INCLUDING (WITHOUT LIMITATION) WARRANTIES OF
82
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, AND
83
+ TITLE.
84
+
85
+ MariaDB hereby grants you permission to use this License’s text to license
86
+ your works, and to refer to it using the trademark “Business Source License”,
87
+ as long as you comply with the Covenants of Licensor below.
88
+
89
+ Covenants of Licensor
90
+
91
+ In consideration of the right to use this License’s text and the “Business
92
+ Source License” name and trademark, Licensor covenants to MariaDB, and to all
93
+ other recipients of the licensed work to be provided by Licensor:
94
+
95
+ 1. To specify as the Change License the GPL Version 2.0 or any later version,
96
+ or a license that is compatible with GPL Version 2.0 or a later version,
97
+ where “compatible” means that software provided under the Change License can
98
+ be included in a program with software provided under GPL Version 2.0 or a
99
+ later version. Licensor may specify additional Change Licenses without
100
+ limitation.
101
+
102
+ 2. To either: (a) specify an additional grant of rights to use that does not
103
+ impose any additional restriction on the right granted in this License, as
104
+ the Additional Use Grant; or (b) insert the text “None”.
105
+
106
+ 3. To specify a Change Date.
107
+
108
+ 4. Not to modify this License in any other way.
tancat-0.1.0/NOTICE ADDED
@@ -0,0 +1,26 @@
1
+ TanCat
2
+ Copyright 2026 Cat Tan Operations Ltd
3
+
4
+ Licensed under the Business Source License 1.1 (see LICENSE). It converts to the
5
+ Apache License, Version 2.0 four years after each version's first public
6
+ distribution.
7
+
8
+ TanCat includes third-party software. The licence for every dependency, direct
9
+ and transitive, is recorded in docs/licenses/DEPENDENCIES.md. Two transitive
10
+ components are flagged there:
11
+
12
+ - text-unidecode 1.3 - dual-licensed GPL-2.0-or-later / Artistic-1.0.
13
+ TanCat elects, and relies on, the Artistic-1.0 option and not the GPL; it
14
+ is permissive and imposes no restriction of its own. This package ships in the
15
+ default install (it arrives through pytest-playwright -> python-slugify),
16
+ and it is used unmodified. Elected 2026-11-05; see the Elections section of
17
+ docs/licenses/DEPENDENCIES.md.
18
+ - a group of MPL-2.0 packages (certifi, pytest-base-url, orjson, tqdm, and
19
+ the dev-only fqdn and pathspec).
20
+
21
+ The landing page loads the Inter, JetBrains Mono and Newsreader fonts from
22
+ Google Fonts. All three are licensed under the SIL Open Font License 1.1.
23
+
24
+ The TanCat logo (landing/logo_transparent.png, and the icon set derived from
25
+ it) and the noir artwork (landing/noir_art.jpg) are original TanCat works,
26
+ created for this project.
tancat-0.1.0/PKG-INFO ADDED
@@ -0,0 +1,260 @@
1
+ Metadata-Version: 2.5
2
+ Name: tancat
3
+ Version: 0.1.0
4
+ Summary: AI-powered Playwright test generator using local LLMs (llama.cpp, Ollama, LM Studio)
5
+ Project-URL: Repository, https://github.com/tancat-ai/tancat
6
+ Project-URL: Homepage, https://tancat.dev
7
+ Author-email: Cat Tan Operations Ltd <hello@tancat.dev>
8
+ License-Expression: BUSL-1.1
9
+ License-File: LICENSE
10
+ Requires-Python: >=3.14
11
+ Requires-Dist: beautifulsoup4>=4.14.3
12
+ Requires-Dist: cryptography>=49.0.0
13
+ Requires-Dist: httpx>=0.28.1
14
+ Requires-Dist: langgraph>=1.2.9
15
+ Requires-Dist: milvus-lite==3.2.1
16
+ Requires-Dist: pandas==3.0.6
17
+ Requires-Dist: pillow<14,>=12.1.1
18
+ Requires-Dist: playwright>=1.40.0
19
+ Requires-Dist: plotly==7.1.0
20
+ Requires-Dist: pymilvus[milvus-lite]==3.0.0
21
+ Requires-Dist: pytest-playwright>=0.4.0
22
+ Requires-Dist: pytest-timeout>=2.4.0
23
+ Requires-Dist: python-dotenv>=1.1.1
24
+ Requires-Dist: pyyaml>=6.0.0
25
+ Requires-Dist: sentence-transformers==6.1.0
26
+ Requires-Dist: streamlit==1.66.1
27
+ Requires-Dist: torch
28
+ Provides-Extra: ocr
29
+ Requires-Dist: opencv-python-headless>=4.10.0; extra == 'ocr'
30
+ Requires-Dist: rapidocr==3.10.0; extra == 'ocr'
31
+ Provides-Extra: pdf
32
+ Requires-Dist: pdfplumber>=0.11.10; extra == 'pdf'
33
+ Requires-Dist: pypdfium2>=5.13.0; extra == 'pdf'
34
+ Description-Content-Type: text/markdown
35
+
36
+ # tancat-ai/tancat
37
+
38
+ Paste a user story → get executable Playwright pytest tests with real DOM selectors.
39
+
40
+ Powered by local LLMs — no cloud API keys needed.
41
+
42
+ | Metric | Status |
43
+ |--------|--------|
44
+ | CI/CD Pipeline | [![CI](https://github.com/tancat-ai/tancat/actions/workflows/ci.yml/badge.svg)](https://github.com/tancat-ai/tancat/actions) |
45
+ | Python Version | ![Python 3.14+](https://img.shields.io/badge/python-3.14+-blue.svg) |
46
+ | License | ![License](https://img.shields.io/badge/license-BSL_1.1-blue.svg) |
47
+ | Code Quality | [![Ruff](https://img.shields.io/badge/linter-ruff-261230.svg)](https://github.com/astral-sh/ruff) |
48
+
49
+ ## Demo
50
+
51
+ A short walkthrough video is planned. Until it is recorded, the
52
+ [Your first run](docs/user/getting-started/first-run.md) page in the user docs
53
+ specifies exactly what the video will show, and walks the same story end to end
54
+ with real expected output.
55
+
56
+ ## How It Works
57
+
58
+ ```
59
+ User story (natural language)
60
+ ↓
61
+ Skeleton generation — LLM produces test structure with placeholders
62
+ ↓
63
+ DOM scraping — real page structure captured, never injected into prompts
64
+ ↓
65
+ Placeholder resolution — placeholders replaced with actual selectors
66
+ ↓
67
+ Executable pytest file (sync format, ready to run)
68
+ ```
69
+
70
+ ## Key Features
71
+
72
+ - **AI-Powered Generation** — Natural language stories → pytest sync tests
73
+ - **Self-Learning RAG** — the resolver improves with use: passing runs and self-healed locators teach a local, site-scoped store (no telemetry, no cloud)
74
+ - **Self-Healing** — failed locators are reviewed and repaired automatically, then written back so the next generation resolves correctly
75
+ - **Local LLMs** — Runs entirely offline via llama.cpp, Ollama, or LM Studio
76
+ - **Semantic Scraper** — Three-layer extraction (BS4 + CDP accessibility tree + ARIA snapshot) captures computed accessible names, placeholder text, and container elements that CSS-only scrapers miss
77
+ - **Real Selectors** — Scrapes actual DOM; no selector hallucination
78
+ - **Skeleton-First Pipeline** — Two-phase generation eliminates bad selectors
79
+ - **Page Object Models** — Optional POM output for scalable test suites
80
+ - **Streamlit UI** — Primary interface for non-technical QA testers
81
+ - **CLI** — Command-line mode for CI/CD integration
82
+ - **Evidence Tracking** — Annotated screenshots, Gantt timelines, heat maps
83
+ - **Multi-Format Reports** — Markdown, Jira, or standalone HTML
84
+
85
+ ## Quick Start
86
+
87
+ ### Prerequisites
88
+
89
+ - Python 3.14+
90
+ - [uv](https://github.com/astral-sh/uv) (package manager)
91
+ - A local LLM server — llama.cpp on `:8080` (default), Ollama, or LM Studio
92
+
93
+ ### Install & Run
94
+
95
+ ```bash
96
+ # 1. Install dependencies
97
+ uv sync
98
+ playwright install chromium
99
+
100
+ # 2. Configure (optional — prompts at runtime)
101
+ cp .env.example .env
102
+
103
+ # 3. Launch the UI
104
+ bash launch_ui.sh
105
+ # → http://localhost:8501
106
+ ```
107
+
108
+ Or use the CLI:
109
+
110
+ ```bash
111
+ bash launch_cli.sh
112
+ ```
113
+
114
+ For the CLI, run `bash launch_cli.sh`. It starts an interactive menu; the
115
+ [Install](docs/user/getting-started/install.md) page covers the launch options,
116
+ and `tancat --help` prints the usage text.
117
+
118
+ ## Connect your LLM
119
+
120
+ Pick the provider in the Streamlit sidebar or the CLI "Configure LLM" menu. The
121
+ supported providers are: Ollama, LM Studio, OpenAI-compatible (local),
122
+ OpenAI (cloud), **Azure OpenAI**, OpenAI-compatible (cloud), and OpenRouter.
123
+ Local providers need no key. Cloud providers need a key; the app stores it in
124
+ memory for the session unless you save it encrypted.
125
+
126
+ Every provider is configured with **base URL + model + key**. For a generic
127
+ endpoint the model is whatever the endpoint serves; for Azure OpenAI the "model"
128
+ is your deployment name.
129
+
130
+ ### Azure OpenAI (first-class)
131
+
132
+ Azure is not a plain OpenAI-compatible endpoint: the deployment name is in the
133
+ request path, `api-version` is a query parameter, and the key goes in the
134
+ `api-key` header. The app builds:
135
+
136
+ ```
137
+ POST https://<resource>.openai.azure.com/openai/deployments/<deployment>/chat/completions?api-version=2024-10-21
138
+ api-key: <AZURE_OPENAI_API_KEY>
139
+ ```
140
+
141
+ Set these in `.env` (or inject them from your platform's secret store):
142
+
143
+ ```
144
+ LLM_PROVIDER=azure-openai
145
+ AZURE_OPENAI_ENDPOINT=https://my-resource.openai.azure.com
146
+ AZURE_OPENAI_DEPLOYMENT=my-gpt4o-deployment
147
+ AZURE_OPENAI_API_KEY=...
148
+ # AZURE_OPENAI_API_VERSION=2024-10-21 # optional; this is the default
149
+ ```
150
+
151
+ ### AWS Bedrock (via the Bedrock Access Gateway)
152
+
153
+ Do **not** point TanCat at `bedrock-runtime` directly. AWS ships the
154
+ [Bedrock Access Gateway](https://github.com/aws-samples/bedrock-access-gateway),
155
+ an OpenAI-compatible API in front of Bedrock. Use the generic compatible
156
+ provider --- no adapter needed:
157
+
158
+ ```
159
+ LLM_PROVIDER=openai-compatible
160
+ OPENAI_COMPATIBLE_BASE_URL=https://<api-id>.execute-api.<region>.amazonaws.com/api/v1
161
+ OPENAI_COMPATIBLE_API_KEY=<bedrock-gateway-api-key>
162
+ OPENAI_COMPATIBLE_MODEL=anthropic.claude-3-5-sonnet-20241022-v2:0
163
+ ```
164
+
165
+ The base URL shape is the API Gateway invoke URL with a trailing `/api/v1`
166
+ (add the stage if you deployed one):
167
+ `https://<api-id>.execute-api.<region>.amazonaws.com/<stage>/api/v1`.
168
+ The gateway speaks `/chat/completions` with `Authorization: Bearer`, which is
169
+ exactly what the compatible provider sends.
170
+
171
+ ### Any other gateway
172
+
173
+ The same compatible path covers LiteLLM, Portkey, Azure API Management,
174
+ self-hosted vLLM/SGLang/TGI, Together, Groq, and DeepSeek: set the provider to
175
+ OpenAI-compatible, paste the gateway's `/v1` base URL and key, and name the
176
+ model. See [.env.example](.env.example) for the full list of variables.
177
+
178
+ ## Architecture
179
+
180
+ ```
181
+ Phase 1: SKELETON GENERATION (LLM)
182
+ ────────────────────────────────────
183
+ streamlit_app.py / cli/main.py
184
+ │
185
+ ▼
186
+ orchestrator.py ──┐
187
+ │ │
188
+ ┌────┼────┬──────┴──────────────┐
189
+ ▼ ▼ ▼ ▼
190
+ spec test scraper LLM
191
+ analyzer generator (scraper) client
192
+ │ │
193
+ ▼ ▼
194
+ skeleton with prompt_utils.py
195
+ placeholders ←───────── prompt template
196
+
197
+ Phase 2: PLACEHOLDER RESOLUTION (DOM Data)
198
+ ────────────────────────────────────────────
199
+ │
200
+ ▼
201
+ placeholder_orchestrator.py (coordinates per-page resolution)
202
+ │ │ │
203
+ ▼ ▼ ▼
204
+ journey_ stateful_ semantic_
205
+ scraper scraper candidate_ranker
206
+ │
207
+ ▼
208
+ placeholder_resolver
209
+ (semantic_matcher + intent_matcher)
210
+ │
211
+ ▼
212
+ locator_builder → code_postprocessor
213
+
214
+ Phase 3: PERSISTENCE + REPORTING
215
+ ─────────────────────────────────
216
+ │
217
+ ▼
218
+ pipeline_writer.py ──→ generated_tests/
219
+ │
220
+ evidence_tracker.py → .evidence.json sidecars
221
+ │
222
+ report_builder ←──┐
223
+ │ │
224
+ ▼ ▼
225
+ failure_reporter evidence_loader
226
+ │
227
+ ▼
228
+ report_formatters → markdown / jira / html
229
+ ```
230
+
231
+ For a full module map and dependency graph, see [ARCHITECTURE.md](docs/ARCHITECTURE.md).
232
+ - Interactive call-flow diagram: generated locally with `graphify update .` (not committed to the repo).
233
+
234
+ ## Documentation
235
+
236
+ | Doc | Purpose |
237
+ |-----|---------|
238
+ | [docs/user/](docs/user/index.md) | User documentation - install, configure your LLM, first run, guides, licensing |
239
+ | [ARCHITECTURE.md](docs/ARCHITECTURE.md) | System architecture, data flows, dependency graph |
240
+ | [PROJECT_KNOWLEDGE.md](docs/PROJECT_KNOWLEDGE.md) | Decisions, gotchas, recurring bugs |
241
+ | [DEMO_GUIDE.md](docs/DEMO_GUIDE.md) | Step-by-step demo for stakeholders |
242
+ | [BACKLOG.md](BACKLOG.md) | Feature backlog and bug tracker |
243
+ | [AGENTS.md](AGENTS.md) | AI coding agent conventions |
244
+ | [CONTEXT.md](CONTEXT.md) | Single-page project context |
245
+
246
+ ## For Contributors
247
+
248
+ See [CONTRIBUTING.md](CONTRIBUTING.md) and [AGENTS.md](AGENTS.md).
249
+
250
+ Pre-commit checklist: `smoke.py` (offline import/resolver check) → `ruff` → `mypy` → `pytest`.
251
+
252
+ ## License
253
+
254
+ Business Source License 1.1 (source-available) — see [LICENSE](LICENSE).
255
+
256
+ The source is free to read, modify and use, including production use for any internal
257
+ purpose. Two limits apply until each version's Change Date (four years after its first
258
+ public release): you may not offer TanCat as a competing product or service, and the
259
+ licence is not OSI open source until it converts to the Apache License, Version 2.0 on
260
+ that date.