tuner-testkit 6.3.0__tar.gz → 7.0.1__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 (375) hide show
  1. {tuner_testkit-6.3.0/tuner_testkit.egg-info → tuner_testkit-7.0.1}/PKG-INFO +60 -19
  2. tuner_testkit-7.0.1/README.md +224 -0
  3. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/pyproject.toml +15 -2
  4. tuner_testkit-7.0.1/tuner_testkit/__init__.py +5 -0
  5. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/router.py +1 -1
  6. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/auth.py +0 -1
  7. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/capture.py +2 -2
  8. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/freeze.py +1 -1
  9. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/normalize.py +0 -35
  10. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/pipeline.py +1 -1
  11. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/client.py +2 -3
  12. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/jsonpath.py +1 -1
  13. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/model.py +1 -1
  14. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/_shared/changelog.py +28 -9
  15. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/cli.py +0 -1
  16. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/playwright_tap.py +4 -4
  17. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/cli.py +85 -16
  18. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/agents/bdd-asset-pipeline.md +12 -5
  19. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/agents/sut-self-learning.md +10 -9
  20. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/agents/sut-source-to-design.md +5 -5
  21. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/agent-task-log.mdc +28 -0
  22. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/apps-authoring.mdc +15 -6
  23. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/apps-handover.mdc +9 -4
  24. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/assets-knowledge.mdc +39 -0
  25. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/bdd-pipeline-gates.mdc +9 -7
  26. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/commit-convention.mdc +8 -8
  27. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/config.mdc +24 -0
  28. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/defects.mdc +33 -0
  29. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/explore-safety.mdc +4 -4
  30. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/index-hygiene.mdc +37 -0
  31. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/rules/knowledge.mdc +30 -0
  32. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-db.mdc +9 -9
  33. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-page-test.mdc +4 -4
  34. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/testcases.mdc +13 -6
  35. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/work-task.mdc +8 -5
  36. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/analyze-mcp-network/SKILL.md +2 -1
  37. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/create-action-word/SKILL.md +14 -2
  38. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/create-app/SKILL.md +96 -0
  39. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/derive-design-knowledge/SKILL.md +7 -6
  40. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/derive-feature-sets/SKILL.md +3 -2
  41. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/derive-test-design/SKILL.md +6 -4
  42. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/dump-ddl/SKILL.md +15 -14
  43. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/execute-testsheet/SKILL.md +65 -0
  44. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/explore-sut/SKILL.md +13 -8
  45. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/feature-authoring/SKILL.md +2 -1
  46. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/feature-review-lint/SKILL.md +2 -1
  47. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/freeze-api-objects/SKILL.md +20 -2
  48. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/generate-test-report/SKILL.md +15 -4
  49. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/generate-testsheet-report/SKILL.md +9 -7
  50. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/health-check/SKILL.md +105 -0
  51. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-bdd-assets/SKILL.md +40 -0
  52. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-behave-steps/SKILL.md +2 -1
  53. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-config/SKILL.md +68 -0
  54. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-defectlib/SKILL.md +71 -0
  55. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-index/SKILL.md +59 -0
  56. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-page-objects/SKILL.md +13 -3
  57. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-pytest/SKILL.md +55 -0
  58. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-testcases/SKILL.md +18 -6
  59. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-testsheet/SKILL.md +16 -6
  60. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-wiki/SKILL.md +62 -0
  61. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/reuse-analysis/SKILL.md +3 -2
  62. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/run-feature-playwright-mcp/SKILL.md +8 -3
  63. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/skills/run-test-execution/SKILL.md +11 -6
  64. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/.cursor/skills/upgrade-framework/SKILL.md +85 -0
  65. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/AGENTS.md +119 -0
  66. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/MANIFEST.txt +2 -1
  67. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.0.0.md +20 -0
  68. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.1.0.md +19 -0
  69. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.2.0.md +27 -0
  70. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.3.0.md +20 -0
  71. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-4.4.0.md +17 -0
  72. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.0.0.md +38 -0
  73. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.1.0.md +15 -0
  74. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.2.0.md +15 -0
  75. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.3.0.md +15 -0
  76. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-5.3.1.md +7 -0
  77. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.0.0.md +21 -0
  78. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.1.0.md +16 -0
  79. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.2.0.md +14 -0
  80. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-6.3.0.md +24 -0
  81. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-7.0.0.md +82 -0
  82. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/changelog/TEMPLATE-7.0.1.md +12 -0
  83. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/action-words-syntax.md +1 -1
  84. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/agent-task-log.md +8 -5
  85. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/api-objects-syntax.md +4 -1
  86. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/apps-authoring-syntax.md +38 -8
  87. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/artifacts-layout.md +7 -5
  88. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/assets-knowledge-syntax.md +54 -0
  89. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/bdd-run-gherkin-in-playwrightMCP.md +5 -3
  90. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/browser-channel.md +37 -0
  91. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/commit-convention.md +6 -4
  92. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/config-syntax.md +103 -0
  93. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/data-syntax.md +53 -0
  94. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/defect-syntax.md +134 -0
  95. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/design-knowledge-syntax.md +4 -4
  96. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/knowledge-syntax.md +98 -0
  97. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/metadata-conventions.md +109 -0
  98. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/page-objects-syntax.md +1 -1
  99. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/docs/spec/ports.md +56 -0
  100. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/sut-self-learning.md +9 -8
  101. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/test-design-syntax.md +2 -2
  102. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/testcase-syntax.md +22 -4
  103. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/work-task.md +14 -9
  104. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-commit +31 -0
  105. tuner_testkit-7.0.1/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-push +28 -0
  106. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/validate_commit_msg.py +3 -1
  107. tuner_testkit-7.0.1/tuner_testkit/apps/dna/paths.py +49 -0
  108. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/source.py +18 -5
  109. tuner_testkit-7.0.1/tuner_testkit/apps/dna/targets.py +364 -0
  110. tuner_testkit-7.0.1/tuner_testkit/apps/dna/tests/test_workspace_view.py +143 -0
  111. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dump_ddl.py +8 -9
  112. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/persist.py +3 -3
  113. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/index_ai/registry.py +45 -11
  114. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/__main__.py +1 -1
  115. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/manifest.py +9 -4
  116. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/scaffold.py +21 -9
  117. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/INDEX.project.md +33 -15
  118. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/config/env.py +31 -35
  119. tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/config/env_local.py.example +81 -0
  120. tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/data/sut-accounts.example.yaml +30 -0
  121. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/gitignore +2 -1
  122. tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/knowledge/wiki/index.md +26 -0
  123. tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/stubs/knowledge/wiki/log.md +4 -0
  124. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_environment.py +1 -1
  125. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/tests/test_git_hooks.py +7 -2
  126. tuner_testkit-7.0.1/tuner_testkit/apps/init_repo/tests/test_release_manifest.py +30 -0
  127. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/tests/test_scaffold.py +24 -9
  128. tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/__init__.py +1 -0
  129. tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/__main__.py +3 -0
  130. tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/cli.py +97 -0
  131. tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/convert.py +256 -0
  132. tuner_testkit-7.0.1/tuner_testkit/apps/openapi_import/tests/test_convert.py +92 -0
  133. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/cli.py +0 -1
  134. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/session.py +2 -2
  135. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/tests/test_cli.py +0 -1
  136. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/cli.py +2 -2
  137. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/store.py +15 -2
  138. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/tests/test_store.py +4 -2
  139. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/cli.py +7 -3
  140. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/draft.py +1 -1
  141. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/profile.py +1 -1
  142. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/sheet.py +2 -2
  143. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/template_build.py +5 -2
  144. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/test_report.py +5 -5
  145. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/scan.py +63 -30
  146. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/tests/test_build.py +22 -0
  147. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/config.py +134 -18
  148. tuner_testkit-7.0.1/tuner_testkit/config_schema.py +248 -0
  149. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/db/client.py +7 -5
  150. tuner_testkit-7.0.1/tuner_testkit/defects/__init__.py +6 -0
  151. tuner_testkit-7.0.1/tuner_testkit/defects/__main__.py +91 -0
  152. tuner_testkit-7.0.1/tuner_testkit/defects/template.py +84 -0
  153. tuner_testkit-7.0.1/tuner_testkit/defects/tests/test_defects.py +138 -0
  154. tuner_testkit-7.0.1/tuner_testkit/defects/validate.py +207 -0
  155. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/medical.py +9 -9
  156. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/context.py +1 -1
  157. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/core.py +2 -2
  158. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/hooks.py +1 -1
  159. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/scenario_file.py +2 -3
  160. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/base.py +1 -1
  161. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/driver.py +1 -1
  162. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/locator.py +1 -1
  163. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/registry.py +1 -1
  164. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/session.py +0 -1
  165. tuner_testkit-7.0.1/tuner_testkit/ports.py +105 -0
  166. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/project.py +32 -3
  167. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/tests/test_validate.py +47 -0
  168. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/validate.py +66 -2
  169. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/manifest.py +14 -1
  170. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/runner.py +1 -1
  171. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/ai.html +5 -4
  172. tuner_testkit-7.0.1/tuner_testkit/workspace/changelog.py +225 -0
  173. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/cli.py +84 -2
  174. tuner_testkit-7.0.1/tuner_testkit/workspace/doctor.py +371 -0
  175. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/index_render.py +44 -6
  176. tuner_testkit-7.0.1/tuner_testkit/workspace/migrate.py +227 -0
  177. tuner_testkit-7.0.1/tuner_testkit/workspace/tests/test_changelog.py +91 -0
  178. tuner_testkit-7.0.1/tuner_testkit/workspace/tests/test_doctor.py +95 -0
  179. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/tests/test_index_render.py +38 -0
  180. tuner_testkit-7.0.1/tuner_testkit/workspace/tests/test_migrate.py +65 -0
  181. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1/tuner_testkit.egg-info}/PKG-INFO +60 -19
  182. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/SOURCES.txt +46 -1
  183. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/entry_points.txt +1 -0
  184. tuner_testkit-6.3.0/README.md +0 -183
  185. tuner_testkit-6.3.0/tuner_testkit/__init__.py +0 -5
  186. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/rules/agent-task-log.mdc +0 -22
  187. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/rules/assets-knowledge.mdc +0 -51
  188. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/rules/index-hygiene.mdc +0 -36
  189. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/create-app/SKILL.md +0 -70
  190. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/init-content/SKILL.md +0 -170
  191. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/maintain-index/SKILL.md +0 -60
  192. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/.cursor/skills/release-template/SKILL.md +0 -51
  193. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/AGENTS.md +0 -93
  194. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/docs/spec/assets-knowledge-syntax.md +0 -85
  195. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/docs/spec/metadata-conventions.md +0 -71
  196. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-commit +0 -19
  197. tuner_testkit-6.3.0/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/pre-push +0 -22
  198. tuner_testkit-6.3.0/tuner_testkit/apps/dna/paths.py +0 -15
  199. tuner_testkit-6.3.0/tuner_testkit/apps/dna/targets.py +0 -182
  200. tuner_testkit-6.3.0/tuner_testkit/apps/init_repo/stubs/data/sut-accounts.example.yaml +0 -18
  201. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/LICENSE +0 -0
  202. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/setup.cfg +0 -0
  203. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/__init__.py +0 -0
  204. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/__main__.py +0 -0
  205. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/__init__.py +0 -0
  206. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/api.py +0 -0
  207. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/db.py +0 -0
  208. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/generators.py +0 -0
  209. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/ids.py +0 -0
  210. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/_internal/wait.py +0 -0
  211. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/base.py +0 -0
  212. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/context.py +0 -0
  213. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/action_words/registry.py +0 -0
  214. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/__init__.py +0 -0
  215. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/app.py +0 -0
  216. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/errors.py +0 -0
  217. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/spec.py +0 -0
  218. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_mock/store.py +0 -0
  219. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/__init__.py +0 -0
  220. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/__init__.py +0 -0
  221. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/codegen.py +0 -0
  222. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/mocks.py +0 -0
  223. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_objects/recording/sanitize.py +0 -0
  224. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/__init__.py +0 -0
  225. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/api_test/errors.py +0 -0
  226. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/__init__.py +0 -0
  227. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/_shared/__init__.py +0 -0
  228. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/__init__.py +0 -0
  229. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/__main__.py +0 -0
  230. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/addon.py +0 -0
  231. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/tests/__init__.py +0 -0
  232. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/api_recorder/tests/test_addon.py +0 -0
  233. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/__init__.py +0 -0
  234. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/__main__.py +0 -0
  235. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/build.py +0 -0
  236. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/hooks/sync_registry.py +0 -0
  237. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/hooks.json +0 -0
  238. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/bdd-asset-layering.mdc +0 -0
  239. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/bdd-stage-layout.mdc +0 -0
  240. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-fake.mdc +0 -0
  241. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/.cursor/rules/packages-logging.mdc +0 -0
  242. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/behave-gerkin-syntax.md +0 -0
  243. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/docs/spec/behave-step-definitions.md +0 -0
  244. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/README.md +0 -0
  245. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/commit-msg +0 -0
  246. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/dna_payload/tools/git-hooks/secret_scan.py +0 -0
  247. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/tests/test_cli.py +0 -0
  248. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/dna/tests/test_targets.py +0 -0
  249. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/__init__.py +0 -0
  250. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/__main__.py +0 -0
  251. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/cli.py +0 -0
  252. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/tests/__init__.py +0 -0
  253. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/tests/test_cli.py +0 -0
  254. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/evidence/tests/test_persist.py +0 -0
  255. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/index_ai/__init__.py +0 -0
  256. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/index_ai/__main__.py +0 -0
  257. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/__init__.py +0 -0
  258. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/apps/__init__.py +0 -0
  259. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/behave.ini +0 -0
  260. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/__init__.py +0 -0
  261. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/__init__.py +0 -0
  262. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/_internal/__init__.py +0 -0
  263. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/_internal/params.py +0 -0
  264. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/action_words/models.py +0 -0
  265. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/__init__.py +0 -0
  266. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/auth.py +0 -0
  267. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/recording/__init__.py +0 -0
  268. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/api_objects/registry.py +0 -0
  269. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/page_objects/__init__.py +0 -0
  270. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/packages/page_objects/session.py +0 -0
  271. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_environment.py +0 -0
  272. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_steps/given.py +0 -0
  273. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_steps/then.py +0 -0
  274. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/api_steps/when.py +0 -0
  275. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_steps/given.py +0 -0
  276. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_steps/then.py +0 -0
  277. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/features/ui_steps/when.py +0 -0
  278. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/tests/pytest/conftest.py +0 -0
  279. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/workbench.cmd +0 -0
  280. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/init_repo/stubs/workbench.sh +0 -0
  281. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/__init__.py +0 -0
  282. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/__main__.py +0 -0
  283. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/cli.py +0 -0
  284. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/seed.py +0 -0
  285. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/mock_server/tool.py +0 -0
  286. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/__init__.py +0 -0
  287. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/__main__.py +0 -0
  288. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/capture.py +0 -0
  289. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/codegen.py +0 -0
  290. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/freeze.py +0 -0
  291. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/inject.py +0 -0
  292. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/__init__.py +0 -0
  293. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/test_capture.py +0 -0
  294. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/test_cli.py +0 -0
  295. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/page_recorder/tests/test_freeze.py +0 -0
  296. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/__init__.py +0 -0
  297. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/__main__.py +0 -0
  298. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/cli.py +0 -0
  299. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/recorder/tests/__init__.py +0 -0
  300. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/__init__.py +0 -0
  301. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/__main__.py +0 -0
  302. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/task/validate.py +0 -0
  303. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/__init__.py +0 -0
  304. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/__main__.py +0 -0
  305. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/mdparse.py +0 -0
  306. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/render.py +0 -0
  307. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/stats.py +0 -0
  308. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/templates/gjb438b.docx +0 -0
  309. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/__init__.py +0 -0
  310. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/conftest.py +0 -0
  311. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tests/test_stats.py +0 -0
  312. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/apps/testreport/tool.py +0 -0
  313. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/artifacts.py +0 -0
  314. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/__init__.py +0 -0
  315. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/build.py +0 -0
  316. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/directory.py +0 -0
  317. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/front_matter.py +0 -0
  318. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/tests/test_directory.py +0 -0
  319. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/catalog/tests/test_front_matter.py +0 -0
  320. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/db/__init__.py +0 -0
  321. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/db/connection.py +0 -0
  322. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/excel/__init__.py +0 -0
  323. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/excel/workbook.py +0 -0
  324. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/__init__.py +0 -0
  325. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/__main__.py +0 -0
  326. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/catalog.py +0 -0
  327. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/china.py +0 -0
  328. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/cli.py +0 -0
  329. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/core.py +0 -0
  330. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/fake/wrappers.py +0 -0
  331. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/__init__.py +0 -0
  332. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/logging/helpers.py +0 -0
  333. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/__init__.py +0 -0
  334. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/__main__.py +0 -0
  335. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/errors.py +0 -0
  336. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/harvest.py +0 -0
  337. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/health.py +0 -0
  338. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/model.py +0 -0
  339. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/steps.py +0 -0
  340. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/page_test/testing.py +0 -0
  341. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/__init__.py +0 -0
  342. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/testcases/__main__.py +0 -0
  343. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/__init__.py +0 -0
  344. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/tests/test_manifest.py +0 -0
  345. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/tools/tests/test_runner.py +0 -0
  346. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/__init__.py +0 -0
  347. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/__main__.py +0 -0
  348. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/app.py +0 -0
  349. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/cli.py +0 -0
  350. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/__init__.py +0 -0
  351. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/app_generic.py +0 -0
  352. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/word_db_seed.py +0 -0
  353. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/kinds/word_generic.py +0 -0
  354. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/static/app.css +0 -0
  355. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/_params_form.html +0 -0
  356. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/ai_detail.html +0 -0
  357. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/base.html +0 -0
  358. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/env.html +0 -0
  359. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/history.html +0 -0
  360. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/home.html +0 -0
  361. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/knowledge.html +0 -0
  362. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/run.html +0 -0
  363. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/tool.html +0 -0
  364. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/tools.html +0 -0
  365. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/word.html +0 -0
  366. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/word_db_seed.html +0 -0
  367. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/templates/words.html +0 -0
  368. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workbench/tests/test_app.py +0 -0
  369. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/__init__.py +0 -0
  370. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/__main__.py +0 -0
  371. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/meta.py +0 -0
  372. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit/workspace/tests/test_meta.py +0 -0
  373. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/dependency_links.txt +0 -0
  374. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/requires.txt +0 -0
  375. {tuner_testkit-6.3.0 → tuner_testkit-7.0.1}/tuner_testkit.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: tuner-testkit
3
- Version: 6.3.0
4
- Summary: Shared test runtime, recorders, and DNA overlay for SUT test repos
3
+ Version: 7.0.1
4
+ Summary: TestPilot: shared test runtime, recorders, and DNA overlay for SUT test workspaces
5
5
  Author: tuner-testkit contributors
6
6
  License-Expression: MIT
7
7
  Requires-Python: >=3.12
@@ -48,11 +48,20 @@ Provides-Extra: dev
48
48
  Requires-Dist: tuner-testkit[all]; extra == "dev"
49
49
  Dynamic: license-file
50
50
 
51
- # tuner-testkit
51
+ # TestPilot(tuner-testkit)
52
52
 
53
- 发行名 **`tuner-testkit`**,导入名 **`tuner_testkit`**。给被测系统(SUT)测试仓提供公共运行库与 CLI(db / API / Web UI / 录制 / mock),以及 Cursor/git **DNA**(rules、skills、hooks)。
53
+ **TestPilot** 是一个测试助手:用一个 Git 仓库加一套 rule / skill / agent / hook,约束读这个仓库的 AI 怎么工作,
54
+ 同时让测试工程师把知识、用例、测试单、报告、自动化资产、工具都存进同一个仓库维护。
54
55
 
55
- 业务资产(page/api objects、action words、features)留在**各项目仓**的 `packages/` 与 `tests/`,不进本包。平台发新版本后,下游用 `uv` 按需升级,不必再整树拷贝运行库。
56
+ 运行库与 CLI 以 PyPI 包发布:发行名 **`tuner-testkit`**,导入名 **`tuner_testkit`**,命令 `tuner-*`。它提供公共运行库
57
+ (db / API / Web UI / 录制 / mock)以及 Cursor/git **DNA**(rules、skills、hooks、specs)。
58
+
59
+ 业务数据(`knowledge/` 被测系统知识、`assets/` + `packages/` 测试资产、`apps/` 自定义工具、`tests/`)留在**各项目仓**,不进本包。
60
+ 平台发新版本后,下游用 `uv` 升级并 `tuner-dna sync --prune`,不必整树拷贝运行库。
61
+
62
+ 打开新仓后让 AI 先跑 skill **`health-check`**(体检与开场配置)。对外入口分三组:
63
+ 知识(`maintain-wiki`、`dump-ddl`、`maintain-defectlib`)、动作(`maintain-testcases`、`maintain-testsheet`、`execute-testsheet`、
64
+ `generate-test-report`、`maintain-bdd-assets`、`maintain-pytest`)、可用性(`health-check`、`upgrade-framework`、`maintain-config`、`create-app`)。
56
65
 
57
66
  ---
58
67
 
@@ -71,14 +80,16 @@ uv tool install tuner-testkit
71
80
  ### 2. 初始化测试仓
72
81
 
73
82
  ```bash
74
- tuner-init scaffold ../balance
75
- cd ../balance
83
+ tuner-init scaffold ../acme
84
+ cd ../acme
76
85
  uv sync
77
86
  ```
78
87
 
79
- `scaffold` 会铺六层目录、写入依赖 `tuner-testkit[db,api]>=<当前 kit 版本>` 的 `pyproject.toml`,并执行一次 `tuner-dna sync`(把 `.cursor/`、`docs/spec/`、`tools/git-hooks/` 放进**项目树**)。可在任意目录运行,不必先有测试仓。不要用 `tuner-testkit init repo`。
88
+ `scaffold` 会铺分层目录(`knowledge/`、`assets/`、`packages/`、`apps/`、`data/`、`tests/`、`config/`、`work/tasks/`、`artifacts/`)、写入依赖 `tuner-testkit[db,api]>=<当前 kit 版本>` 的 `pyproject.toml`,并执行一次 `tuner-dna sync`(把 `.cursor/`、`docs/spec/`、`tools/git-hooks/`、`AGENTS.md` 放进**项目树**;平台专属内容不下发)。可在任意目录运行,不必先有测试仓。不要用 `tuner-testkit init repo`。
80
89
 
81
- 生成的文件夹名就是 `target` 路径的最后一段。`pyproject.toml` 里的项目名默认取这个文件夹名(`Balance` 会写成 `balance`)。需要另起项目名时加 `--name`:
90
+ scaffold 之后让 AI 跑 `health-check`(底层是 `tuner-workspace doctor`),它会列出还缺的配置、账号、表结构、浏览器通道、日志端口等,并逐项补齐。
91
+
92
+ 生成的文件夹名就是 `target` 路径的最后一段。`pyproject.toml` 里的项目名默认取这个文件夹名(`Acme` 会写成 `acme`)。需要另起项目名时加 `--name`:
82
93
 
83
94
  ```bash
84
95
  tuner-init scaffold ../clients/acme --name acme-billing
@@ -111,14 +122,21 @@ uv sync
111
122
 
112
123
  | 你写什么 | 放哪里 |
113
124
  | --- | --- |
114
- | 页面 / 接口资产 | `packages/page_objects/`、`packages/api_objects/` |
125
+ | 被测系统知识(DDL、需求、业务讲解、探索、design、缺陷) | `knowledge/`(`ddl/`、`raw/`、`wiki/`、`requirements/`、`defects/`) |
126
+ | 测试设计、功能用例、测试单、报告 | `assets/`(`testdesign/`、`testcases/`、`testsheet/`、`testreport/`) |
127
+ | 页面 / 接口资产 | `packages/page_objects/`、`packages/api_objects/`(有 OpenAPI 时 `tuner-openapi-import`) |
115
128
  | 业务动作 | `packages/action_words/` |
116
129
  | BDD / pytest | `tests/features/`、`tests/pytest/` |
117
- | 知识(DDL、用例) | `assets/` |
118
- | 本仓私有工具 | `apps/`(`python -m apps.<name>`) |
130
+ | 本仓私有工具、端口适配器(如后端日志) | `apps/`(`python -m apps.<name>`) |
131
+ | 测试数据、账号(角色、权限) | `data/` |
132
+ | 「在哪、用什么」:环境、运维通道、端口绑定、浏览器通道、知识位置 | `config/`(`tuner-config show --json` / `validate`) |
119
133
 
120
134
  代码里 `from tuner_testkit.db import …` / `from tuner_testkit.page_test import …`。密钥只放本机 `config/env_local.py` 或环境变量(`TUNER_ENV`、`TUNER_DB_<ALIAS>_*`),**不要提交**。
121
135
 
136
+ 后端日志这类取数方式各团队不同的能力,kit 只定**端口契约**(`docs/spec/ports.md`),实现是本仓 `apps/` 里的自定义工具。
137
+ 缺陷和用例一样有固定目录与模板:`knowledge/defects/<DEF-ID>.md`(`docs/spec/defect-syntax.md`,skill `maintain-defectlib`)。
138
+ 维护过的库(用例、需求、缺陷、wiki、接口与页面资产)各有一份入库的 `CHANGELOG.md`,`pre-commit` 会检查。
139
+
122
140
  录制产物同样写到项目仓 `packages/`,不会写进 venv。
123
141
 
124
142
  ### 4. 获取 PyPI 上的更新
@@ -166,16 +184,20 @@ uv sync
166
184
 
167
185
  只改 `pyproject.toml` 里的版本再 `uv lock` / `uv sync` 也可以。一个 wheel 不能「只升 web-ui、钉死旧 db」。
168
186
 
169
- **③ 同步 DNA 并提交**
187
+ **③ 同步 DNA、按说明迁移、提交**
170
188
 
171
- `uv add` / `uv sync` 只更新 site-packages 里的运行库。Cursor 读的是项目树里的 `.cursor/`、`docs/spec/`、`tools/git-hooks/`,必须再铺一层:
189
+ `uv add` / `uv sync` 只更新 site-packages 里的运行库。Cursor 读的是项目树里的 `.cursor/`、`docs/spec/`、`docs/changelog/TEMPLATE-*.md`、`tools/git-hooks/`、`AGENTS.md`,必须再铺一层:
172
190
 
173
191
  ```bash
174
- tuner-dna sync
175
- tuner-dna check
176
- git add -A && git commit
192
+ tuner-dna sync --prune # 没被本地改过的文件自动更新;上游删掉的文件一并删除
193
+ tuner-dna check # 本地改过的文件会列为 edited
177
194
  ```
178
195
 
196
+ `tuner-dna sync` 在项目根写 `.tuner-dna.json`(每个文件的哈希,入库),据此区分「没动过、可以直接更新」和「本地改过」。
197
+ 本地改过的 DNA 文件默认保留;把定制移到 `.cursor/rules/<名字>.local.mdc` 或 `AGENTS.local.md`(sync 永不触碰)后再加 `--overwrite`。
198
+ 然后读 `docs/changelog/TEMPLATE-<版本>.md` 做布局或配置迁移(例如 7.0.0 的 `tuner-workspace migrate knowledge`),最后一次提交。
199
+ 这一整套可以交给 skill **`upgrade-framework`**。
200
+
179
201
  `tuner-dna check` 核对项目树 DNA 是否与**当前 PATH 上那份** kit 一致。建议先 `uv tool upgrade`,再 `sync`,避免 CLI 还是旧包、`.venv` 已是新包。
180
202
 
181
203
  **其他 AI IDE**:DNA 以 Cursor 布局为源,`tuner-dna sync --ide claude,agents`(或 `all`)把 skills 渲染到
@@ -207,6 +229,17 @@ git add -A && git commit
207
229
 
208
230
  CLI 与 `python -m tuner_testkit.…` 等价,例如 `tuner-recorder`、`tuner-page-recorder`、`tuner-api-recorder`、`tuner-mock-server`。依赖 extra 的命令在业务仓用 `uv run tuner-dump-ddl` / `uv run tuner-recorder`。
209
231
 
232
+ TestPilot 的确定性入口(默认 wheel 即可):
233
+
234
+ | 命令 | 作用 |
235
+ | --- | --- |
236
+ | `tuner-workspace doctor` | 体检:还缺哪些配置、账号、表结构、通道、端口绑定,DNA 是否漂移 |
237
+ | `tuner-config show --json` / `validate` | 读配置(密钥打码)/ 校验配置 |
238
+ | `tuner-workspace changelog append` / `check` | 维护库的 changelog;提交前校验 |
239
+ | `tuner-workspace migrate knowledge` | 旧布局迁到 `knowledge/` |
240
+ | `tuner-openapi-import <spec>` | 从 OpenAPI / Swagger 冻结 api_objects |
241
+ | `tuner-dna sync --prune` / `check --json` | 升级 DNA,保留本地改动 |
242
+
210
243
  ---
211
244
 
212
245
  ## 安全
@@ -226,8 +259,16 @@ uv sync --extra all
226
259
 
227
260
  `uv sync --extra dev` 与 `--extra all` 等价(`dev` 只是引用 `[all]`)。
228
261
 
262
+ Lint 与 CI 用同一个 ruff 版本,规则写在 `pyproject.toml` 的 `[tool.ruff.lint]`(E4 / E7 / E9 / F / B / BLE:语法与导入、pyflakes、bugbear、宽泛 except):
263
+
264
+ ```powershell
265
+ uvx ruff@0.17.3 check .
266
+ ```
267
+
268
+ 宽泛的 `except Exception` 要写理由:`# noqa: BLE001 -- <为什么>`。
269
+
229
270
  本仓是**平台仓**,不是 workspace。`dogfood/` 是用 `tuner-init scaffold dogfood --no-ai` 生成的 workspace 示范
230
- (被测系统 = 平台本身,uv workspace 成员,共用 `.venv`):路线图在 `dogfood/assets/domain-notes/platform/roadmap.md`,
271
+ (被测系统 = 平台本身,uv workspace 成员,共用 `.venv`):路线图在 `dogfood/knowledge/wiki/domain-notes/platform/roadmap.md`,
231
272
  验收活文档在 `dogfood/tests/features/`。见 [`dogfood/README.md`](dogfood/README.md)。
232
273
 
233
- 6.3.0 发行说明(测试单出 GJB438B 报告)见 [`docs/changelog/TEMPLATE-6.3.0.md`](docs/changelog/TEMPLATE-6.3.0.md);6.2.0 发行说明(测试单)见 [`docs/changelog/TEMPLATE-6.2.0.md`](docs/changelog/TEMPLATE-6.2.0.md);6.1.0 发行说明(scaffold 项目名)见 [`docs/changelog/TEMPLATE-6.1.0.md`](docs/changelog/TEMPLATE-6.1.0.md);6.0.0 发行说明(一条用例一个文件)见 [`docs/changelog/TEMPLATE-6.0.0.md`](docs/changelog/TEMPLATE-6.0.0.md);5.3.1 发行说明(已回答提问归档)见 [`docs/changelog/TEMPLATE-5.3.1.md`](docs/changelog/TEMPLATE-5.3.1.md);5.3.0 发行说明(功能用例集 `assets/testcases/`)见 [`docs/changelog/TEMPLATE-5.3.0.md`](docs/changelog/TEMPLATE-5.3.0.md);5.2.0 发行说明(work task / 测试设计 / 证据附件)见 [`docs/changelog/TEMPLATE-5.2.0.md`](docs/changelog/TEMPLATE-5.2.0.md);5.1.0 发行说明(工作台 / meta stamp / `--json`)见 [`docs/changelog/TEMPLATE-5.1.0.md`](docs/changelog/TEMPLATE-5.1.0.md);5.0.0(Plane Job 协议退场、`tuner-workspace`)见 [`TEMPLATE-5.0.0.md`](docs/changelog/TEMPLATE-5.0.0.md);4.3.0 见 [`TEMPLATE-4.3.0.md`](docs/changelog/TEMPLATE-4.3.0.md);3.x → 4.x 迁移见 [`TEMPLATE-4.0.0.md`](docs/changelog/TEMPLATE-4.0.0.md)。平台能力地图见 [`INDEX.md`](INDEX.md)。
274
+ 7.0.1 发行说明(DNA 比对不受换行符影响)见 [`docs/changelog/TEMPLATE-7.0.1.md`](docs/changelog/TEMPLATE-7.0.1.md);7.0.0 发行说明(TestPilot:`knowledge/` 知识层、配置扩展、端口与自定义 apps、体检 / 升级 / 配置 skill)见 [`docs/changelog/TEMPLATE-7.0.0.md`](docs/changelog/TEMPLATE-7.0.0.md);6.3.0 发行说明(测试单出 GJB438B 报告)见 [`docs/changelog/TEMPLATE-6.3.0.md`](docs/changelog/TEMPLATE-6.3.0.md);6.2.0 发行说明(测试单)见 [`docs/changelog/TEMPLATE-6.2.0.md`](docs/changelog/TEMPLATE-6.2.0.md);6.1.0 发行说明(scaffold 项目名)见 [`docs/changelog/TEMPLATE-6.1.0.md`](docs/changelog/TEMPLATE-6.1.0.md);6.0.0 发行说明(一条用例一个文件)见 [`docs/changelog/TEMPLATE-6.0.0.md`](docs/changelog/TEMPLATE-6.0.0.md);5.3.1 发行说明(已回答提问归档)见 [`docs/changelog/TEMPLATE-5.3.1.md`](docs/changelog/TEMPLATE-5.3.1.md);5.3.0 发行说明(功能用例集 `assets/testcases/`)见 [`docs/changelog/TEMPLATE-5.3.0.md`](docs/changelog/TEMPLATE-5.3.0.md);5.2.0 发行说明(work task / 测试设计 / 证据附件)见 [`docs/changelog/TEMPLATE-5.2.0.md`](docs/changelog/TEMPLATE-5.2.0.md);5.1.0 发行说明(工作台 / meta stamp / `--json`)见 [`docs/changelog/TEMPLATE-5.1.0.md`](docs/changelog/TEMPLATE-5.1.0.md);5.0.0(Plane Job 协议退场、`tuner-workspace`)见 [`TEMPLATE-5.0.0.md`](docs/changelog/TEMPLATE-5.0.0.md);4.3.0 见 [`TEMPLATE-4.3.0.md`](docs/changelog/TEMPLATE-4.3.0.md);3.x → 4.x 迁移见 [`TEMPLATE-4.0.0.md`](docs/changelog/TEMPLATE-4.0.0.md)。平台能力地图见 [`INDEX.md`](INDEX.md)。
@@ -0,0 +1,224 @@
1
+ # TestPilot(tuner-testkit)
2
+
3
+ **TestPilot** 是一个测试助手:用一个 Git 仓库加一套 rule / skill / agent / hook,约束读这个仓库的 AI 怎么工作,
4
+ 同时让测试工程师把知识、用例、测试单、报告、自动化资产、工具都存进同一个仓库维护。
5
+
6
+ 运行库与 CLI 以 PyPI 包发布:发行名 **`tuner-testkit`**,导入名 **`tuner_testkit`**,命令 `tuner-*`。它提供公共运行库
7
+ (db / API / Web UI / 录制 / mock)以及 Cursor/git **DNA**(rules、skills、hooks、specs)。
8
+
9
+ 业务数据(`knowledge/` 被测系统知识、`assets/` + `packages/` 测试资产、`apps/` 自定义工具、`tests/`)留在**各项目仓**,不进本包。
10
+ 平台发新版本后,下游用 `uv` 升级并 `tuner-dna sync --prune`,不必整树拷贝运行库。
11
+
12
+ 打开新仓后让 AI 先跑 skill **`health-check`**(体检与开场配置)。对外入口分三组:
13
+ 知识(`maintain-wiki`、`dump-ddl`、`maintain-defectlib`)、动作(`maintain-testcases`、`maintain-testsheet`、`execute-testsheet`、
14
+ `generate-test-report`、`maintain-bdd-assets`、`maintain-pytest`)、可用性(`health-check`、`upgrade-framework`、`maintain-config`、`create-app`)。
15
+
16
+ ---
17
+
18
+ ## 标准作业流程
19
+
20
+ ### 1. 工具域:只装核心 kit(能 `tuner-init` 即可)
21
+
22
+ `uv tool install` 和业务仓 `.venv` 是两套环境。下游在 **tool 域只装默认 wheel**,用来拿 `tuner-init` / `tuner-dna`;**不要**在 tool 域打开 `[db]` / `[api]` 等 extra。
23
+
24
+ ```bash
25
+ uv tool install tuner-testkit
26
+ ```
27
+
28
+ 入口命令是 `tuner-init`、`tuner-dna` 等(`tuner-*`),**没有** `tuner-testkit` 这个 script。`tuner-dump-ddl`、`tuner-recorder` 等依赖 extra 的 CLI,请在业务仓用 `uv run …` 跑,走该仓 `.venv`。
29
+
30
+ ### 2. 初始化测试仓
31
+
32
+ ```bash
33
+ tuner-init scaffold ../acme
34
+ cd ../acme
35
+ uv sync
36
+ ```
37
+
38
+ `scaffold` 会铺分层目录(`knowledge/`、`assets/`、`packages/`、`apps/`、`data/`、`tests/`、`config/`、`work/tasks/`、`artifacts/`)、写入依赖 `tuner-testkit[db,api]>=<当前 kit 版本>` 的 `pyproject.toml`,并执行一次 `tuner-dna sync`(把 `.cursor/`、`docs/spec/`、`tools/git-hooks/`、`AGENTS.md` 放进**项目树**;平台专属内容不下发)。可在任意目录运行,不必先有测试仓。不要用 `tuner-testkit init repo`。
39
+
40
+ scaffold 之后让 AI 跑 `health-check`(底层是 `tuner-workspace doctor`),它会列出还缺的配置、账号、表结构、浏览器通道、日志端口等,并逐项补齐。
41
+
42
+ 生成的文件夹名就是 `target` 路径的最后一段。`pyproject.toml` 里的项目名默认取这个文件夹名(`Acme` 会写成 `acme`)。需要另起项目名时加 `--name`:
43
+
44
+ ```bash
45
+ tuner-init scaffold ../clients/acme --name acme-billing
46
+ ```
47
+
48
+ `uv sync` 把 **db / api 装进业务仓 `.venv`**,不是 tool 域。已有项目仓则在该仓根目录:
49
+
50
+ ```bash
51
+ uv add "tuner-testkit[db,api]>=4.0.0"
52
+ uv sync
53
+ ```
54
+
55
+ Web UI / 合录等按需再加 extra:
56
+
57
+ ```bash
58
+ uv add "tuner-testkit[web-ui]"
59
+ uv add "tuner-testkit[recorder]"
60
+ ```
61
+
62
+ 测 kit 全能力(平台狗食仓等)一次打开全部能力 extra:
63
+
64
+ ```bash
65
+ uv add "tuner-testkit[all]"
66
+ uv sync
67
+ ```
68
+
69
+ ### 3. 开始写业务
70
+
71
+ 在**项目仓**里写,不要改 site-packages 里的 kit:
72
+
73
+ | 你写什么 | 放哪里 |
74
+ | --- | --- |
75
+ | 被测系统知识(DDL、需求、业务讲解、探索、design、缺陷) | `knowledge/`(`ddl/`、`raw/`、`wiki/`、`requirements/`、`defects/`) |
76
+ | 测试设计、功能用例、测试单、报告 | `assets/`(`testdesign/`、`testcases/`、`testsheet/`、`testreport/`) |
77
+ | 页面 / 接口资产 | `packages/page_objects/`、`packages/api_objects/`(有 OpenAPI 时 `tuner-openapi-import`) |
78
+ | 业务动作 | `packages/action_words/` |
79
+ | BDD / pytest | `tests/features/`、`tests/pytest/` |
80
+ | 本仓私有工具、端口适配器(如后端日志) | `apps/`(`python -m apps.<name>`) |
81
+ | 测试数据、账号(角色、权限) | `data/` |
82
+ | 「在哪、用什么」:环境、运维通道、端口绑定、浏览器通道、知识位置 | `config/`(`tuner-config show --json` / `validate`) |
83
+
84
+ 代码里 `from tuner_testkit.db import …` / `from tuner_testkit.page_test import …`。密钥只放本机 `config/env_local.py` 或环境变量(`TUNER_ENV`、`TUNER_DB_<ALIAS>_*`),**不要提交**。
85
+
86
+ 后端日志这类取数方式各团队不同的能力,kit 只定**端口契约**(`docs/spec/ports.md`),实现是本仓 `apps/` 里的自定义工具。
87
+ 缺陷和用例一样有固定目录与模板:`knowledge/defects/<DEF-ID>.md`(`docs/spec/defect-syntax.md`,skill `maintain-defectlib`)。
88
+ 维护过的库(用例、需求、缺陷、wiki、接口与页面资产)各有一份入库的 `CHANGELOG.md`,`pre-commit` 会检查。
89
+
90
+ 录制产物同样写到项目仓 `packages/`,不会写进 venv。
91
+
92
+ ### 4. 获取 PyPI 上的更新
93
+
94
+ 平台发新版本后,下游从 [PyPI:tuner-testkit](https://pypi.org/project/tuner-testkit/) 取 wheel,**不要**再拷本仓源码。tool 域和业务仓 `.venv` 是两份安装,**两边都要升**,再铺 DNA。
95
+
96
+ **先看当前装的是哪一版、PyPI 最新是哪一版:**
97
+
98
+ ```bash
99
+ uv tool list # tool 域里的 tuner-testkit
100
+ cd ../my-sut-tests
101
+ uv pip show tuner-testkit # 业务仓 .venv
102
+ ```
103
+
104
+ 发行说明见 [`docs/changelog/FRAMEWORK.md`](docs/changelog/FRAMEWORK.md) 与该版本的 `docs/changelog/TEMPLATE-*.md`。
105
+
106
+ **① tool 域(只升核心 CLI)**
107
+
108
+ ```bash
109
+ uv tool upgrade tuner-testkit
110
+ ```
111
+
112
+ 升的是 `tuner-init` / `tuner-dna` 所在环境。这里仍然**不要**加 `[db]` / `[api]`。尚未 `uv tool install` 过则先执行第 1 节。
113
+
114
+ **② 业务仓 `.venv`(升运行库 + extras)**
115
+
116
+ 在**项目仓根目录**改依赖并同步 lock。保留你原来打开的 extra(普通仓 `[db,api]`,狗食/全能力仓 `[all]`):
117
+
118
+ ```bash
119
+ # 钉到某一发行版(推荐,和团队 lock 一致)
120
+ uv add "tuner-testkit[db,api]==4.3.0"
121
+
122
+ # 或只抬下限,让解析器选允许范围内的最新
123
+ # uv add "tuner-testkit[db,api]>=4.3.0"
124
+
125
+ uv sync
126
+ ```
127
+
128
+ 已经写过 `>=4.0.0`、只想把 lock 里的 kit 升到 PyPI 最新:
129
+
130
+ ```bash
131
+ uv lock --upgrade-package tuner-testkit
132
+ uv sync
133
+ ```
134
+
135
+ 只改 `pyproject.toml` 里的版本再 `uv lock` / `uv sync` 也可以。一个 wheel 不能「只升 web-ui、钉死旧 db」。
136
+
137
+ **③ 同步 DNA、按说明迁移、提交**
138
+
139
+ `uv add` / `uv sync` 只更新 site-packages 里的运行库。Cursor 读的是项目树里的 `.cursor/`、`docs/spec/`、`docs/changelog/TEMPLATE-*.md`、`tools/git-hooks/`、`AGENTS.md`,必须再铺一层:
140
+
141
+ ```bash
142
+ tuner-dna sync --prune # 没被本地改过的文件自动更新;上游删掉的文件一并删除
143
+ tuner-dna check # 本地改过的文件会列为 edited
144
+ ```
145
+
146
+ `tuner-dna sync` 在项目根写 `.tuner-dna.json`(每个文件的哈希,入库),据此区分「没动过、可以直接更新」和「本地改过」。
147
+ 本地改过的 DNA 文件默认保留;把定制移到 `.cursor/rules/<名字>.local.mdc` 或 `AGENTS.local.md`(sync 永不触碰)后再加 `--overwrite`。
148
+ 然后读 `docs/changelog/TEMPLATE-<版本>.md` 做布局或配置迁移(例如 7.0.0 的 `tuner-workspace migrate knowledge`),最后一次提交。
149
+ 这一整套可以交给 skill **`upgrade-framework`**。
150
+
151
+ `tuner-dna check` 核对项目树 DNA 是否与**当前 PATH 上那份** kit 一致。建议先 `uv tool upgrade`,再 `sync`,避免 CLI 还是旧包、`.venv` 已是新包。
152
+
153
+ **其他 AI IDE**:DNA 以 Cursor 布局为源,`tuner-dna sync --ide claude,agents`(或 `all`)把 skills 渲染到
154
+ `.claude/skills/` / `.agents/skills/`、subagents 到 `.claude/agents/`,并生成 `CLAUDE.md`(`@AGENTS.md` + always-on 规则内联 + 路径规则清单)。
155
+ `tuner-dna targets` 列出各目标落点;hooks.json 不跨工具翻译。目录约定随各工具文档变动,用前核对。
156
+
157
+ 新仓第一次仍用第 2 节的 `tuner-init scaffold`(会写依赖并做一次 `tuner-dna sync`),不是每次发版都重新 scaffold。
158
+
159
+ `[phone-ui]` 为预留空 extra,4.0 未实现。
160
+
161
+ ---
162
+
163
+ ## extras
164
+
165
+ | extra | 内容 |
166
+ | --- | --- |
167
+ | (默认 wheel) | `config` / `logging`、`tuner-init`、`tuner-dna`(tool 域只装这个) |
168
+ | `[db]` | MySQL / SQL Server / PostgreSQL(装在业务仓 `.venv`) |
169
+ | `[api]` | `api_test`(HTTP 客户端) |
170
+ | `[web-ui]` | `page_test` + Playwright |
171
+ | `[phone-ui]` | 预留,无实现 |
172
+ | `[recorder]` | 合录 / 仅 UI / mitmproxy 代理 |
173
+ | `[mock]` | 按冻结的 api_objects 回放 |
174
+ | `[excel]` / `[fake]` | 表格 / 假数据 |
175
+ | `[report]` | `tuner-testreport render`:测试单报告出 docx(docxtpl) |
176
+ | `[bdd]` / `[test]` | behave / pytest |
177
+ | `[all]` | 元 extra:上述能力 extra 的并集(不含 `[dev]`) |
178
+ | `[dev]` | `tuner-testkit[all]`,给本仓 editable 开发 |
179
+
180
+ CLI 与 `python -m tuner_testkit.…` 等价,例如 `tuner-recorder`、`tuner-page-recorder`、`tuner-api-recorder`、`tuner-mock-server`。依赖 extra 的命令在业务仓用 `uv run tuner-dump-ddl` / `uv run tuner-recorder`。
181
+
182
+ TestPilot 的确定性入口(默认 wheel 即可):
183
+
184
+ | 命令 | 作用 |
185
+ | --- | --- |
186
+ | `tuner-workspace doctor` | 体检:还缺哪些配置、账号、表结构、通道、端口绑定,DNA 是否漂移 |
187
+ | `tuner-config show --json` / `validate` | 读配置(密钥打码)/ 校验配置 |
188
+ | `tuner-workspace changelog append` / `check` | 维护库的 changelog;提交前校验 |
189
+ | `tuner-workspace migrate knowledge` | 旧布局迁到 `knowledge/` |
190
+ | `tuner-openapi-import <spec>` | 从 OpenAPI / Swagger 冻结 api_objects |
191
+ | `tuner-dna sync --prune` / `check --json` | 升级 DNA,保留本地改动 |
192
+
193
+ ---
194
+
195
+ ## 安全
196
+
197
+ 不得把 token、cookie、Authorization、密码、session 写入仓库(含 capture 与 api_objects)。凭证只允许运行时注入。
198
+
199
+ ---
200
+
201
+ ## 本仓库(平台源码)
202
+
203
+ 克隆后在仓库根目录开发 kit 本身:
204
+
205
+ ```powershell
206
+ uv venv
207
+ uv sync --extra all
208
+ ```
209
+
210
+ `uv sync --extra dev` 与 `--extra all` 等价(`dev` 只是引用 `[all]`)。
211
+
212
+ Lint 与 CI 用同一个 ruff 版本,规则写在 `pyproject.toml` 的 `[tool.ruff.lint]`(E4 / E7 / E9 / F / B / BLE:语法与导入、pyflakes、bugbear、宽泛 except):
213
+
214
+ ```powershell
215
+ uvx ruff@0.17.3 check .
216
+ ```
217
+
218
+ 宽泛的 `except Exception` 要写理由:`# noqa: BLE001 -- <为什么>`。
219
+
220
+ 本仓是**平台仓**,不是 workspace。`dogfood/` 是用 `tuner-init scaffold dogfood --no-ai` 生成的 workspace 示范
221
+ (被测系统 = 平台本身,uv workspace 成员,共用 `.venv`):路线图在 `dogfood/knowledge/wiki/domain-notes/platform/roadmap.md`,
222
+ 验收活文档在 `dogfood/tests/features/`。见 [`dogfood/README.md`](dogfood/README.md)。
223
+
224
+ 7.0.1 发行说明(DNA 比对不受换行符影响)见 [`docs/changelog/TEMPLATE-7.0.1.md`](docs/changelog/TEMPLATE-7.0.1.md);7.0.0 发行说明(TestPilot:`knowledge/` 知识层、配置扩展、端口与自定义 apps、体检 / 升级 / 配置 skill)见 [`docs/changelog/TEMPLATE-7.0.0.md`](docs/changelog/TEMPLATE-7.0.0.md);6.3.0 发行说明(测试单出 GJB438B 报告)见 [`docs/changelog/TEMPLATE-6.3.0.md`](docs/changelog/TEMPLATE-6.3.0.md);6.2.0 发行说明(测试单)见 [`docs/changelog/TEMPLATE-6.2.0.md`](docs/changelog/TEMPLATE-6.2.0.md);6.1.0 发行说明(scaffold 项目名)见 [`docs/changelog/TEMPLATE-6.1.0.md`](docs/changelog/TEMPLATE-6.1.0.md);6.0.0 发行说明(一条用例一个文件)见 [`docs/changelog/TEMPLATE-6.0.0.md`](docs/changelog/TEMPLATE-6.0.0.md);5.3.1 发行说明(已回答提问归档)见 [`docs/changelog/TEMPLATE-5.3.1.md`](docs/changelog/TEMPLATE-5.3.1.md);5.3.0 发行说明(功能用例集 `assets/testcases/`)见 [`docs/changelog/TEMPLATE-5.3.0.md`](docs/changelog/TEMPLATE-5.3.0.md);5.2.0 发行说明(work task / 测试设计 / 证据附件)见 [`docs/changelog/TEMPLATE-5.2.0.md`](docs/changelog/TEMPLATE-5.2.0.md);5.1.0 发行说明(工作台 / meta stamp / `--json`)见 [`docs/changelog/TEMPLATE-5.1.0.md`](docs/changelog/TEMPLATE-5.1.0.md);5.0.0(Plane Job 协议退场、`tuner-workspace`)见 [`TEMPLATE-5.0.0.md`](docs/changelog/TEMPLATE-5.0.0.md);4.3.0 见 [`TEMPLATE-4.3.0.md`](docs/changelog/TEMPLATE-4.3.0.md);3.x → 4.x 迁移见 [`TEMPLATE-4.0.0.md`](docs/changelog/TEMPLATE-4.0.0.md)。平台能力地图见 [`INDEX.md`](INDEX.md)。
@@ -1,7 +1,7 @@
1
1
  [project]
2
2
  name = "tuner-testkit"
3
- version = "6.3.0"
4
- description = "Shared test runtime, recorders, and DNA overlay for SUT test repos"
3
+ version = "7.0.1"
4
+ description = "TestPilot: shared test runtime, recorders, and DNA overlay for SUT test workspaces"
5
5
  readme = "README.md"
6
6
  license = "MIT"
7
7
  license-files = ["LICENSE"]
@@ -83,6 +83,7 @@ tuner-action-words = "tuner_testkit.action_words.__main__:main"
83
83
  tuner-evidence = "tuner_testkit.apps.evidence.cli:main"
84
84
  tuner-task = "tuner_testkit.apps.task.cli:main"
85
85
  tuner-testreport = "tuner_testkit.apps.testreport.cli:main"
86
+ tuner-openapi-import = "tuner_testkit.apps.openapi_import.cli:main"
86
87
  tuner-workbench = "tuner_testkit.workbench.cli:main"
87
88
 
88
89
  [build-system]
@@ -111,6 +112,18 @@ page_objects = "packages/page_objects"
111
112
  api_objects = "packages/api_objects"
112
113
  mocks = "data/mocks"
113
114
 
115
+ [tool.ruff]
116
+ # CI runs the same release: `uvx ruff@0.17.3 check .`
117
+ required-version = ">=0.17.3,<0.18"
118
+ target-version = "py312"
119
+ extend-exclude = ["tuner_testkit/apps/dna/dna_payload", "build", "dist"]
120
+
121
+ [tool.ruff.lint]
122
+ # Correctness, not style: syntax / import placement / statement errors (E4, E7, E9),
123
+ # pyflakes (F), bugbear (B), and blind except (BLE). A broad `except Exception`
124
+ # must say why: `# noqa: BLE001 -- <reason>`.
125
+ select = ["E4", "E7", "E9", "F", "B", "BLE"]
126
+
114
127
  [tool.pytest.ini_options]
115
128
  pythonpath = ["."]
116
129
  testpaths = ["packages/tests", "tuner_testkit"]
@@ -0,0 +1,5 @@
1
+ """tuner-testkit — the TestPilot runtime (db, api_test, page_test, recorders, DNA)."""
2
+
3
+ from __future__ import annotations
4
+
5
+ __version__ = "7.0.1"
@@ -48,7 +48,7 @@ class PathPattern:
48
48
  return False
49
49
  return all(
50
50
  _segment_matches(pattern_seg, actual_seg)
51
- for pattern_seg, actual_seg in zip(self._segments, actual_segments)
51
+ for pattern_seg, actual_seg in zip(self._segments, actual_segments, strict=True)
52
52
  )
53
53
 
54
54
  def __repr__(self) -> str: # pragma: no cover - debugging aid
@@ -14,7 +14,6 @@ from __future__ import annotations
14
14
 
15
15
  import os
16
16
  import re
17
- import sys
18
17
  from dataclasses import replace
19
18
  from pathlib import Path
20
19
  from typing import Any, Mapping, Optional
@@ -7,7 +7,7 @@ import re
7
7
  from dataclasses import dataclass, field
8
8
  from email import message_from_bytes
9
9
  from email.policy import HTTP
10
- from typing import Any, Mapping, Optional
10
+ from typing import Any, Mapping
11
11
  from urllib.parse import parse_qsl
12
12
 
13
13
  from .normalize import DEFAULT_TOOL, body_keys, fingerprint, normalize_path, schema_from_mapping, split_url
@@ -71,7 +71,7 @@ def _parse_multipart(
71
71
  )
72
72
  try:
73
73
  msg = message_from_bytes(envelope, policy=HTTP)
74
- except Exception:
74
+ except Exception: # noqa: BLE001 -- a malformed multipart body is frozen without fields, never breaks capture
75
75
  return {}, {}, "none"
76
76
 
77
77
  text_fields: dict[str, Any] = {}
@@ -89,7 +89,7 @@ def _literal(node: ast.AST) -> Any:
89
89
  return tuple(_literal(e) for e in node.elts)
90
90
  if isinstance(node, ast.Dict):
91
91
  out: dict[str, Any] = {}
92
- for k, v in zip(node.keys, node.values):
92
+ for k, v in zip(node.keys, node.values, strict=True):
93
93
  if k is None:
94
94
  continue
95
95
  out[str(_literal(k))] = _literal(v)
@@ -42,41 +42,6 @@ STATIC_EXTENSIONS = frozenset(
42
42
  SKIP_METHODS = frozenset({"OPTIONS", "HEAD", "CONNECT"})
43
43
  DEFAULT_TOOL = "recorder"
44
44
 
45
- DEFAULT_TOOL = "recorder"
46
-
47
-
48
- def skip_api_flow(
49
- *,
50
- method: str,
51
- url: str,
52
- request_content_type: str = "",
53
- response_content_type: str = "",
54
- include_host: str | None = None,
55
- ) -> str | None:
56
- """Return why this flow should not be frozen, or ``None`` to freeze it.
57
-
58
- Reasons: ``method`` / ``host`` / ``static``. ``static`` also covers HTML
59
- document GETs (SPA shells).
60
- """
61
- method_u = (method or "").upper()
62
- if method_u in SKIP_METHODS:
63
- return "method"
64
- parts = urlsplit(url or "")
65
- host = (parts.netloc or "").lower()
66
- path = parts.path or "/"
67
- needle = (include_host or "").strip().lower()
68
- if needle and needle not in host:
69
- return "host"
70
- if is_static_request(
71
- path=path,
72
- content_type=request_content_type,
73
- response_content_type=response_content_type,
74
- ):
75
- return "static"
76
- if "text/html" in (response_content_type or "").lower() and method_u == "GET":
77
- return "static"
78
- return None
79
-
80
45
 
81
46
  def split_url(url: str) -> tuple[str, str, dict[str, str]]:
82
47
  """Return ``(host, path, query_dict)`` from a full URL."""
@@ -145,5 +145,5 @@ class ApiCapturePipeline:
145
145
  from tuner_testkit.logging import log_info
146
146
 
147
147
  log_info(msg)
148
- except Exception:
148
+ except Exception: # noqa: BLE001 -- logging must never stop a recording session
149
149
  print(msg)
@@ -161,7 +161,6 @@ class ApiClient:
161
161
  url = f"{self.base_url.rstrip('/')}{model.path}"
162
162
 
163
163
  hp = model.headers_policy or {}
164
- allowlist = [str(x) for x in hp.get("allowlist", [])]
165
164
  forbidden = [str(x) for x in hp.get("forbidden", [])]
166
165
 
167
166
  # model.Invocation already enforces allowlist. Here we do a final forbidden/sensitive check.
@@ -254,11 +253,11 @@ class ApiClient:
254
253
  raw_content = bytes(raw_content_attr) if raw_content_attr else b""
255
254
  try:
256
255
  text = r.text or ""
257
- except Exception:
256
+ except (UnicodeDecodeError, LookupError):
258
257
  text = ""
259
258
  try:
260
259
  parsed = r.json()
261
- except Exception:
260
+ except ValueError: # JSONDecodeError (json / requests) is a ValueError
262
261
  parsed = None
263
262
 
264
263
  ok = 200 <= int(r.status_code) < 300
@@ -2,7 +2,7 @@ from __future__ import annotations
2
2
 
3
3
  import re
4
4
  from dataclasses import dataclass
5
- from typing import Any, Iterable, List, Union
5
+ from typing import Any, List, Union
6
6
 
7
7
 
8
8
  class JsonPathError(ValueError):
@@ -4,7 +4,7 @@ import re
4
4
  from dataclasses import dataclass, field, replace
5
5
  from typing import Any, Dict, Iterable, List, Mapping, MutableMapping, Optional
6
6
 
7
- from .errors import ApiAssertError, AuthPolicyError, FilesPolicyError, HeadersPolicyError, SchemaValidationError
7
+ from .errors import ApiAssertError, FilesPolicyError, HeadersPolicyError, SchemaValidationError
8
8
  from .jsonpath import exists as jsonpath_exists
9
9
  from .jsonpath import get as jsonpath_get
10
10
 
@@ -18,7 +18,7 @@ Typical use from a tool::
18
18
  from tuner_testkit.apps._shared.changelog import append_entry
19
19
 
20
20
  append_entry(
21
- REPO_ROOT / "assets" / "CHANGELOG.md",
21
+ REPO_ROOT / "knowledge" / "ddl" / "CHANGELOG.md",
22
22
  tool="dump_ddl",
23
23
  action="dump-ddl",
24
24
  items=["invoice", "sys_user"],
@@ -42,34 +42,53 @@ _HEADER = (
42
42
  )
43
43
 
44
44
 
45
+ MAINTAINED_HEADER = (
46
+ "# CHANGELOG — maintained object library\n"
47
+ "\n"
48
+ "> Append-only, one line per maintenance session (skill or tool), written by\n"
49
+ "> `tuner-workspace changelog append`. Committed with the change it describes.\n"
50
+ "> Format: `- <iso-ts> | <skill> | <action> | items=a,b | version=x->y | reason=… | author=…`\n"
51
+ "\n"
52
+ )
53
+
54
+
55
+ def _clean(value: Any) -> str:
56
+ """Keep one line greppable: no pipes or newlines inside a field."""
57
+ return " ".join(str(value).replace("|", "/").split())
58
+
59
+
45
60
  def append_entry(
46
61
  changelog_path: str | pathlib.Path,
47
62
  *,
48
63
  tool: str,
49
64
  action: str,
50
65
  items: Iterable[Any] | None = None,
66
+ header: str | None = None,
51
67
  **fields: Any,
52
68
  ) -> str:
53
69
  """Append one changelog line and return it.
54
70
 
55
71
  - ``changelog_path``: path to the area's ``CHANGELOG.md`` (created if absent).
56
- - ``tool``: the generator name (e.g. ``"dump_ddl"``).
57
- - ``action``: short verb for what happened (e.g. ``"dump-ddl"``).
58
- - ``items``: the concrete artifacts touched (tables, routes, ...).
59
- - ``fields``: extra key=value context (datasource, count, ...).
72
+ - ``tool``: the generator or skill name (e.g. ``"dump_ddl"``, ``"maintain-testcases"``).
73
+ - ``action``: short verb for what happened (e.g. ``"dump-ddl"``, ``"update"``).
74
+ - ``items``: the concrete artifacts touched (tables, routes, case IDs, ...).
75
+ - ``header``: header written when the file is created (default: auto-area header).
76
+ - ``fields``: extra key=value context (datasource, count, version, reason, ...).
60
77
  """
61
78
  path = pathlib.Path(changelog_path)
62
79
  path.parent.mkdir(parents=True, exist_ok=True)
63
80
  if not path.exists():
64
- path.write_text(_HEADER, encoding="utf-8", newline="\n")
81
+ path.write_text(header or _HEADER, encoding="utf-8", newline="\n")
65
82
 
66
83
  ts = _dt.datetime.now().astimezone().strftime("%Y-%m-%dT%H:%M:%S%z")
67
- parts = [ts, tool, action]
84
+ parts = [ts, _clean(tool), _clean(action)]
68
85
  if items is not None:
69
- item_list = [str(i) for i in items]
86
+ item_list = [_clean(i) for i in items]
70
87
  parts.append("items=" + ",".join(item_list) if item_list else "items=")
71
88
  for key, value in fields.items():
72
- parts.append(f"{key}={value}")
89
+ if value is None or value == "":
90
+ continue
91
+ parts.append(f"{key}={_clean(value)}")
73
92
 
74
93
  line = "- " + " | ".join(parts) + "\n"
75
94
  with path.open("a", encoding="utf-8", newline="\n") as handle:
@@ -5,7 +5,6 @@ from __future__ import annotations
5
5
  import argparse
6
6
  import asyncio
7
7
  import pathlib
8
- import sys
9
8
 
10
9
  from tuner_testkit.project import (
11
10
  api_objects_dir,