ai-kit-python 1.4.2__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 (278) hide show
  1. ai_kit_python-1.4.2/.agents/skills/go-work/SKILL.md +8 -0
  2. ai_kit_python-1.4.2/.agents/skills/laravel-work/SKILL.md +8 -0
  3. ai_kit_python-1.4.2/.agents/skills/moodle-work/SKILL.md +8 -0
  4. ai_kit_python-1.4.2/.agents/skills/project-continuity/SKILL.md +34 -0
  5. ai_kit_python-1.4.2/.agents/skills/python-work/SKILL.md +8 -0
  6. ai_kit_python-1.4.2/.dockerignore +90 -0
  7. ai_kit_python-1.4.2/.gitattributes +3 -0
  8. ai_kit_python-1.4.2/.github/workflows/check-kit.yml +70 -0
  9. ai_kit_python-1.4.2/.github/workflows/publish-pypi.yml +108 -0
  10. ai_kit_python-1.4.2/.gitignore +60 -0
  11. ai_kit_python-1.4.2/BOOTSTRAP_PROMPT.md +18 -0
  12. ai_kit_python-1.4.2/CHANGELOG.md +85 -0
  13. ai_kit_python-1.4.2/CLAUDE.md +3 -0
  14. ai_kit_python-1.4.2/CONTRIBUTING.md +46 -0
  15. ai_kit_python-1.4.2/Dockerfile +44 -0
  16. ai_kit_python-1.4.2/KIMI.md +3 -0
  17. ai_kit_python-1.4.2/LICENSE +21 -0
  18. ai_kit_python-1.4.2/MANIFEST.in +22 -0
  19. ai_kit_python-1.4.2/MANUS.md +3 -0
  20. ai_kit_python-1.4.2/Makefile +70 -0
  21. ai_kit_python-1.4.2/PKG-INFO +132 -0
  22. ai_kit_python-1.4.2/README.md +1161 -0
  23. ai_kit_python-1.4.2/SECURITY.md +8 -0
  24. ai_kit_python-1.4.2/SKILL.md +105 -0
  25. ai_kit_python-1.4.2/VERSION +1 -0
  26. ai_kit_python-1.4.2/__init__.py +1 -0
  27. ai_kit_python-1.4.2/ai-kit/ADAPTERS.md +5 -0
  28. ai_kit_python-1.4.2/ai-kit/CONTAINERS.md +5 -0
  29. ai_kit_python-1.4.2/ai-kit/ENGINEERING.md +5 -0
  30. ai_kit_python-1.4.2/ai-kit/INTENT.md +5 -0
  31. ai_kit_python-1.4.2/ai-kit/MODELS.md +5 -0
  32. ai_kit_python-1.4.2/ai-kit/SKILLS.md +5 -0
  33. ai_kit_python-1.4.2/ai-kit/adr/0001-adaptive-model-routing.md +5 -0
  34. ai_kit_python-1.4.2/ai-kit/stacks/GO.md +5 -0
  35. ai_kit_python-1.4.2/ai-kit/stacks/LARAVEL.md +5 -0
  36. ai_kit_python-1.4.2/ai-kit/stacks/MOODLE.md +5 -0
  37. ai_kit_python-1.4.2/ai-kit/stacks/PYTHON.md +5 -0
  38. ai_kit_python-1.4.2/ai_kit_python.egg-info/PKG-INFO +132 -0
  39. ai_kit_python-1.4.2/ai_kit_python.egg-info/SOURCES.txt +527 -0
  40. ai_kit_python-1.4.2/ai_kit_python.egg-info/dependency_links.txt +1 -0
  41. ai_kit_python-1.4.2/ai_kit_python.egg-info/entry_points.txt +2 -0
  42. ai_kit_python-1.4.2/ai_kit_python.egg-info/top_level.txt +1 -0
  43. ai_kit_python-1.4.2/aikit_cli.py +59 -0
  44. ai_kit_python-1.4.2/deploy/k8s/install-preview-job.yaml +56 -0
  45. ai_kit_python-1.4.2/docker/build-requirements.txt +4 -0
  46. ai_kit_python-1.4.2/docker/check_version.py +29 -0
  47. ai_kit_python-1.4.2/docker/pypi-requirements.txt +3 -0
  48. ai_kit_python-1.4.2/docs/ADAPTER_PATH_FIX.md +23 -0
  49. ai_kit_python-1.4.2/docs/BENCHMARK.md +106 -0
  50. ai_kit_python-1.4.2/docs/CONTEXT7.md +33 -0
  51. ai_kit_python-1.4.2/docs/DECISIONS.md +22 -0
  52. ai_kit_python-1.4.2/docs/DEVELOPMENT_PLAN.md +16 -0
  53. ai_kit_python-1.4.2/docs/DIALOGUE_MEMORY.md +70 -0
  54. ai_kit_python-1.4.2/docs/DOCKER.md +74 -0
  55. ai_kit_python-1.4.2/docs/DOCKER_HUB_OVERVIEW.md +311 -0
  56. ai_kit_python-1.4.2/docs/EVALUATION.md +30 -0
  57. ai_kit_python-1.4.2/docs/IMPLEMENTATION.md +134 -0
  58. ai_kit_python-1.4.2/docs/MANUS_REVIEW.md +46 -0
  59. ai_kit_python-1.4.2/docs/PYPI.md +87 -0
  60. ai_kit_python-1.4.2/docs/PYPI_DESCRIPTION.md +103 -0
  61. ai_kit_python-1.4.2/docs/SECURITY_AUDIT.md +26 -0
  62. ai_kit_python-1.4.2/docs/STRIX.md +28 -0
  63. ai_kit_python-1.4.2/docs/V0_5_0.md +27 -0
  64. ai_kit_python-1.4.2/docs/V0_6_4.md +25 -0
  65. ai_kit_python-1.4.2/docs/V1_4_0.md +73 -0
  66. ai_kit_python-1.4.2/docs/V1_4_1.md +55 -0
  67. ai_kit_python-1.4.2/docs/V1_4_2.md +33 -0
  68. ai_kit_python-1.4.2/docs/WEB_DESIGN.md +72 -0
  69. ai_kit_python-1.4.2/docs/WINDOWS_CI_FIX.md +39 -0
  70. ai_kit_python-1.4.2/docs/adr/0000-template.md +24 -0
  71. ai_kit_python-1.4.2/docs/adr/0001-adaptive-model-routing.md +30 -0
  72. ai_kit_python-1.4.2/docs/adr/0002-template-separation.md +24 -0
  73. ai_kit_python-1.4.2/docs/adr/0003-agent-registry-and-router.md +24 -0
  74. ai_kit_python-1.4.2/docs/adr/0004-onboarding-and-project-facts.md +24 -0
  75. ai_kit_python-1.4.2/docs/adr/0005-client-settings-ownership.md +30 -0
  76. ai_kit_python-1.4.2/docs/adr/0006-routing-evidence-and-local-measurements.md +26 -0
  77. ai_kit_python-1.4.2/docs/adr/0007-generated-client-configuration-and-presets.md +34 -0
  78. ai_kit_python-1.4.2/docs/adr/0008-unified-cli-and-fact-drift.md +20 -0
  79. ai_kit_python-1.4.2/docs/adr/0009-provider-review-doctor-fix-and-ci-self-install.md +20 -0
  80. ai_kit_python-1.4.2/docs/adr/0010-metrics-analysis-and-gemini-verification.md +20 -0
  81. ai_kit_python-1.4.2/docs/adr/0011-evidence-lifecycle-and-evaluation.md +20 -0
  82. ai_kit_python-1.4.2/docs/adr/0012-measurement-led-routing.md +31 -0
  83. ai_kit_python-1.4.2/docs/adr/0013-docker-cli-image.md +24 -0
  84. ai_kit_python-1.4.2/docs/adr/0014-local-dialogue-memory.md +22 -0
  85. ai_kit_python-1.4.2/docs/history/original-bundle-checks.md +11 -0
  86. ai_kit_python-1.4.2/docs/history/v0.1-changelog.txt +37 -0
  87. ai_kit_python-1.4.2/docs/history/v0.10-changelog.md +12 -0
  88. ai_kit_python-1.4.2/docs/history/v0.2-changelog.md +35 -0
  89. ai_kit_python-1.4.2/docs/history/v0.3-changelog.md +25 -0
  90. ai_kit_python-1.4.2/docs/history/v0.4-changelog.md +31 -0
  91. ai_kit_python-1.4.2/docs/history/v0.5-changelog.md +14 -0
  92. ai_kit_python-1.4.2/docs/history/v0.6.4-changelog.md +12 -0
  93. ai_kit_python-1.4.2/docs/history/v0.6.5-v0.9-changelog.md +35 -0
  94. ai_kit_python-1.4.2/docs/history/v1.1.0-changelog.md +12 -0
  95. ai_kit_python-1.4.2/docs/history/v1.2.0-changelog.md +11 -0
  96. ai_kit_python-1.4.2/docs/history/verification-before-measurements.md +53 -0
  97. ai_kit_python-1.4.2/integrations/CONVENTIONS.md +3 -0
  98. ai_kit_python-1.4.2/integrations/README.md +7 -0
  99. ai_kit_python-1.4.2/integrations/agents.json +136 -0
  100. ai_kit_python-1.4.2/integrations/ai-kit-check.yml +66 -0
  101. ai_kit_python-1.4.2/integrations/ai-kit-cline.md +4 -0
  102. ai_kit_python-1.4.2/integrations/ai-kit-roo.md +4 -0
  103. ai_kit_python-1.4.2/integrations/ai-kit-windsurf.md +4 -0
  104. ai_kit_python-1.4.2/integrations/ai-kit.mdc +6 -0
  105. ai_kit_python-1.4.2/integrations/claude-settings.data-ask.json +23 -0
  106. ai_kit_python-1.4.2/integrations/claude-settings.git-ask.json +10 -0
  107. ai_kit_python-1.4.2/integrations/copilot-instructions.md +3 -0
  108. ai_kit_python-1.4.2/integrations/security-audit.json +135 -0
  109. ai_kit_python-1.4.2/integrations/strix.json +69 -0
  110. ai_kit_python-1.4.2/pyproject.toml +60 -0
  111. ai_kit_python-1.4.2/scripts/__init__.py +1 -0
  112. ai_kit_python-1.4.2/scripts/adapters.py +184 -0
  113. ai_kit_python-1.4.2/scripts/adaptive.py +167 -0
  114. ai_kit_python-1.4.2/scripts/adr.py +61 -0
  115. ai_kit_python-1.4.2/scripts/benchmark.py +543 -0
  116. ai_kit_python-1.4.2/scripts/changelog.py +55 -0
  117. ai_kit_python-1.4.2/scripts/check_distribution.py +178 -0
  118. ai_kit_python-1.4.2/scripts/check_kit.py +406 -0
  119. ai_kit_python-1.4.2/scripts/context.py +184 -0
  120. ai_kit_python-1.4.2/scripts/docker_test_usage.py +55 -0
  121. ai_kit_python-1.4.2/scripts/doctor.py +313 -0
  122. ai_kit_python-1.4.2/scripts/evaluate.py +125 -0
  123. ai_kit_python-1.4.2/scripts/install.py +1584 -0
  124. ai_kit_python-1.4.2/scripts/learning.py +260 -0
  125. ai_kit_python-1.4.2/scripts/memory.py +344 -0
  126. ai_kit_python-1.4.2/scripts/memory_import.py +177 -0
  127. ai_kit_python-1.4.2/scripts/memory_store.py +125 -0
  128. ai_kit_python-1.4.2/scripts/metrics.py +351 -0
  129. ai_kit_python-1.4.2/scripts/router.py +399 -0
  130. ai_kit_python-1.4.2/setup.cfg +4 -0
  131. ai_kit_python-1.4.2/template/.agents/hooks/session-start.md +3 -0
  132. ai_kit_python-1.4.2/template/.agents/hooks/session-start.sh +21 -0
  133. ai_kit_python-1.4.2/template/.agents/skills/ai-kit-bootstrap/SKILL.md +14 -0
  134. ai_kit_python-1.4.2/template/.agents/skills/ai-kit-review/SKILL.md +11 -0
  135. ai_kit_python-1.4.2/template/.agents/skills/ai-kit-sync-context/SKILL.md +12 -0
  136. ai_kit_python-1.4.2/template/.agents/skills/context7-docs/SKILL.md +11 -0
  137. ai_kit_python-1.4.2/template/.agents/skills/design-extract/SKILL.md +9 -0
  138. ai_kit_python-1.4.2/template/.agents/skills/dotnet-work/SKILL.md +9 -0
  139. ai_kit_python-1.4.2/template/.agents/skills/filament-work/SKILL.md +9 -0
  140. ai_kit_python-1.4.2/template/.agents/skills/frontend-work/SKILL.md +9 -0
  141. ai_kit_python-1.4.2/template/.agents/skills/go-work/SKILL.md +9 -0
  142. ai_kit_python-1.4.2/template/.agents/skills/infra-work/SKILL.md +9 -0
  143. ai_kit_python-1.4.2/template/.agents/skills/java-work/SKILL.md +9 -0
  144. ai_kit_python-1.4.2/template/.agents/skills/laravel-blade-ui/SKILL.md +9 -0
  145. ai_kit_python-1.4.2/template/.agents/skills/laravel-work/SKILL.md +10 -0
  146. ai_kit_python-1.4.2/template/.agents/skills/library-work/SKILL.md +9 -0
  147. ai_kit_python-1.4.2/template/.agents/skills/moodle-work/SKILL.md +9 -0
  148. ai_kit_python-1.4.2/template/.agents/skills/php-work/SKILL.md +9 -0
  149. ai_kit_python-1.4.2/template/.agents/skills/project-continuity/SKILL.md +21 -0
  150. ai_kit_python-1.4.2/template/.agents/skills/python-work/SKILL.md +9 -0
  151. ai_kit_python-1.4.2/template/.agents/skills/rust-work/SKILL.md +9 -0
  152. ai_kit_python-1.4.2/template/.agents/skills/security-audit/SKILL.md +16 -0
  153. ai_kit_python-1.4.2/template/.agents/skills/security-audit/agents/openai.yaml +2 -0
  154. ai_kit_python-1.4.2/template/.agents/skills/strix/SKILL.md +16 -0
  155. ai_kit_python-1.4.2/template/.agents/skills/strix/agents/openai.yaml +2 -0
  156. ai_kit_python-1.4.2/template/.agents/skills/ui-review/SKILL.md +9 -0
  157. ai_kit_python-1.4.2/template/.agents/skills/web-design/SKILL.md +9 -0
  158. ai_kit_python-1.4.2/template/AGENTS.md +16 -0
  159. ai_kit_python-1.4.2/template/CHANGELOG.md +6 -0
  160. ai_kit_python-1.4.2/template/CLAUDE.md +5 -0
  161. ai_kit_python-1.4.2/template/GEMINI.md +4 -0
  162. ai_kit_python-1.4.2/template/KIMI.md +4 -0
  163. ai_kit_python-1.4.2/template/MANUS.md +4 -0
  164. ai_kit_python-1.4.2/template/PROJECT_CONTEXT.md +35 -0
  165. ai_kit_python-1.4.2/template/README.md +6 -0
  166. ai_kit_python-1.4.2/template/WIKI.md +37 -0
  167. ai_kit_python-1.4.2/template/ai-kit/ADAPTERS.md +100 -0
  168. ai_kit_python-1.4.2/template/ai-kit/BOOTSTRAP.md +15 -0
  169. ai_kit_python-1.4.2/template/ai-kit/CONTAINERS.md +63 -0
  170. ai_kit_python-1.4.2/template/ai-kit/CONTEXT7.md +96 -0
  171. ai_kit_python-1.4.2/template/ai-kit/CORE.md +23 -0
  172. ai_kit_python-1.4.2/template/ai-kit/ENGINEERING.md +34 -0
  173. ai_kit_python-1.4.2/template/ai-kit/MCP.md +17 -0
  174. ai_kit_python-1.4.2/template/ai-kit/METRICS.md +83 -0
  175. ai_kit_python-1.4.2/template/ai-kit/SECURITY-AUDIT.md +21 -0
  176. ai_kit_python-1.4.2/template/ai-kit/SECURITY.md +34 -0
  177. ai_kit_python-1.4.2/template/ai-kit/SKILLS.md +37 -0
  178. ai_kit_python-1.4.2/template/ai-kit/STRIX.md +44 -0
  179. ai_kit_python-1.4.2/template/ai-kit/UPSTREAM.md +38 -0
  180. ai_kit_python-1.4.2/template/ai-kit/WEB-DESIGN.md +37 -0
  181. ai_kit_python-1.4.2/template/ai-kit/profiles/OWNER.md +19 -0
  182. ai_kit_python-1.4.2/template/ai-kit/project.json +14 -0
  183. ai_kit_python-1.4.2/template/ai-kit/router/POLICY.md +79 -0
  184. ai_kit_python-1.4.2/template/ai-kit/router/providers/anthropic.json +44 -0
  185. ai_kit_python-1.4.2/template/ai-kit/router/providers/anthropic.md +14 -0
  186. ai_kit_python-1.4.2/template/ai-kit/router/providers/gemini.json +13 -0
  187. ai_kit_python-1.4.2/template/ai-kit/router/providers/gemini.md +10 -0
  188. ai_kit_python-1.4.2/template/ai-kit/router/providers/kimi.json +26 -0
  189. ai_kit_python-1.4.2/template/ai-kit/router/providers/kimi.md +13 -0
  190. ai_kit_python-1.4.2/template/ai-kit/router/providers/local.json +18 -0
  191. ai_kit_python-1.4.2/template/ai-kit/router/providers/local.md +10 -0
  192. ai_kit_python-1.4.2/template/ai-kit/router/providers/openai.json +48 -0
  193. ai_kit_python-1.4.2/template/ai-kit/router/providers/openai.md +14 -0
  194. ai_kit_python-1.4.2/template/ai-kit/router/routing.json +11 -0
  195. ai_kit_python-1.4.2/template/ai-kit/router/selection.json +14 -0
  196. ai_kit_python-1.4.2/template/ai-kit/settings.json +11 -0
  197. ai_kit_python-1.4.2/template/ai-kit/stacks/DOTNET.md +13 -0
  198. ai_kit_python-1.4.2/template/ai-kit/stacks/FILAMENT.md +18 -0
  199. ai_kit_python-1.4.2/template/ai-kit/stacks/FRONTEND.md +9 -0
  200. ai_kit_python-1.4.2/template/ai-kit/stacks/GO.md +19 -0
  201. ai_kit_python-1.4.2/template/ai-kit/stacks/INFRA.md +12 -0
  202. ai_kit_python-1.4.2/template/ai-kit/stacks/JAVA.md +13 -0
  203. ai_kit_python-1.4.2/template/ai-kit/stacks/LARAVEL.md +15 -0
  204. ai_kit_python-1.4.2/template/ai-kit/stacks/LIBRARY.md +9 -0
  205. ai_kit_python-1.4.2/template/ai-kit/stacks/MOODLE.md +12 -0
  206. ai_kit_python-1.4.2/template/ai-kit/stacks/PHP.md +11 -0
  207. ai_kit_python-1.4.2/template/ai-kit/stacks/PYTHON.md +11 -0
  208. ai_kit_python-1.4.2/template/ai-kit/stacks/RUST.md +18 -0
  209. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/AI-AND-LLM.md +83 -0
  210. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/ATTACK-CLASSES.md +130 -0
  211. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/CLIENT-SIDE.md +83 -0
  212. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/CLOUD-AND-DEPLOYMENT.md +86 -0
  213. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/DATA-ISOLATION-AND-LIFECYCLE.md +84 -0
  214. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/DESKTOP-MOBILE-AND-LOCAL-IPC.md +89 -0
  215. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/HUNTING.md +251 -0
  216. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/LICENSE +21 -0
  217. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/MEMORY-SAFETY-AND-BINARY.md +101 -0
  218. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/PROTOCOLS-RPC-AND-MESSAGING.md +81 -0
  219. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/RECONNAISSANCE.md +156 -0
  220. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/RESOURCE-EXHAUSTION-AND-AVAILABILITY.md +78 -0
  221. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/SKILL.md +192 -0
  222. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/SUPPLY-CHAIN-AND-RELEASE.md +73 -0
  223. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/VALIDATION-AND-REPORTING.md +186 -0
  224. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/WEB-PROTOCOL-AND-AUTH.md +105 -0
  225. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/report-schema.json +461 -0
  226. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/validate-coverage-ledger.cjs +872 -0
  227. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/validate-coverage-ledger.test.cjs +740 -0
  228. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/validate-findings.cjs +773 -0
  229. ai_kit_python-1.4.2/template/ai-kit/vendor/security-audit/validate-findings.test.cjs +652 -0
  230. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/LICENSE +201 -0
  231. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/api-security-testing/SKILL.md +61 -0
  232. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/application-security-testing/SKILL.md +66 -0
  233. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/ci-security-scanning-with-strix/SKILL.md +149 -0
  234. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/find-security-vulnerabilities-in-code/SKILL.md +62 -0
  235. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/fix-security-vulnerabilities-with-strix/SKILL.md +77 -0
  236. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/managed-pentesting-with-strix/SKILL.md +321 -0
  237. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/owasp-top-10-testing/SKILL.md +64 -0
  238. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/penetration-testing-with-strix/SKILL.md +162 -0
  239. ai_kit_python-1.4.2/template/ai-kit/vendor/strix/web-app-penetration-testing/SKILL.md +54 -0
  240. ai_kit_python-1.4.2/template/ai-kit/web-design/LARAVEL.md +51 -0
  241. ai_kit_python-1.4.2/template/ai-kit/web-design/LIBRARIES.md +39 -0
  242. ai_kit_python-1.4.2/template/ai-kit/web-design/REVIEW.md +37 -0
  243. ai_kit_python-1.4.2/template/ai-kit/web-design/TOOLS.md +43 -0
  244. ai_kit_python-1.4.2/template/docs/DECISIONS.md +7 -0
  245. ai_kit_python-1.4.2/template/docs/adr/0000-template.md +20 -0
  246. ai_kit_python-1.4.2/template/docs/design/ACCEPTANCE.md +24 -0
  247. ai_kit_python-1.4.2/template/docs/design/BRIEF.md +26 -0
  248. ai_kit_python-1.4.2/template/docs/design/SYSTEM.md +30 -0
  249. ai_kit_python-1.4.2/templates/agent-secrets.ignore +19 -0
  250. ai_kit_python-1.4.2/templates/gitignore.private +160 -0
  251. ai_kit_python-1.4.2/templates/gitignore.team +139 -0
  252. ai_kit_python-1.4.2/tests/build_distribution.py +73 -0
  253. ai_kit_python-1.4.2/tests/docker_smoke.py +172 -0
  254. ai_kit_python-1.4.2/tests/fixtures/create-junction.ps1 +18 -0
  255. ai_kit_python-1.4.2/tests/fixtures/golden/claude-settings-local.json +58 -0
  256. ai_kit_python-1.4.2/tests/test_adapters.py +105 -0
  257. ai_kit_python-1.4.2/tests/test_aikit.py +79 -0
  258. ai_kit_python-1.4.2/tests/test_benchmark.py +241 -0
  259. ai_kit_python-1.4.2/tests/test_check_kit.py +203 -0
  260. ai_kit_python-1.4.2/tests/test_context.py +76 -0
  261. ai_kit_python-1.4.2/tests/test_context7.py +153 -0
  262. ai_kit_python-1.4.2/tests/test_context_selection.py +70 -0
  263. ai_kit_python-1.4.2/tests/test_distribution.py +181 -0
  264. ai_kit_python-1.4.2/tests/test_docker_image.py +63 -0
  265. ai_kit_python-1.4.2/tests/test_docker_test_usage.py +54 -0
  266. ai_kit_python-1.4.2/tests/test_doctor.py +148 -0
  267. ai_kit_python-1.4.2/tests/test_evaluate.py +66 -0
  268. ai_kit_python-1.4.2/tests/test_install.py +939 -0
  269. ai_kit_python-1.4.2/tests/test_learning.py +247 -0
  270. ai_kit_python-1.4.2/tests/test_memory.py +371 -0
  271. ai_kit_python-1.4.2/tests/test_metrics.py +209 -0
  272. ai_kit_python-1.4.2/tests/test_native.py +342 -0
  273. ai_kit_python-1.4.2/tests/test_onboarding.py +301 -0
  274. ai_kit_python-1.4.2/tests/test_router.py +336 -0
  275. ai_kit_python-1.4.2/tests/test_security_audit.py +237 -0
  276. ai_kit_python-1.4.2/tests/test_strix.py +245 -0
  277. ai_kit_python-1.4.2/tests/test_web_design.py +219 -0
  278. ai_kit_python-1.4.2/tests/wheel_smoke.py +104 -0
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: go-work
3
+ description: Apply project Go rules when changing confirmed Go packages, services, or tests.
4
+ ---
5
+
6
+ # Go work
7
+
8
+ Read [contribution rules](../../../CONTRIBUTING.md) and optional local `../../../PROJECT_CONTEXT.md`, then [Go rules](../../../ai-kit/stacks/GO.md) and relevant [engineering rules](../../../ai-kit/ENGINEERING.md). Check the actual Go version, module structure and test commands before editing.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: laravel-work
3
+ description: Apply project Laravel rules when changing confirmed Laravel code, models, resources, or migrations.
4
+ ---
5
+
6
+ # Laravel work
7
+
8
+ Read [contribution rules](../../../CONTRIBUTING.md) and optional local `../../../PROJECT_CONTEXT.md`, then [Laravel rules](../../../ai-kit/stacks/LARAVEL.md) and relevant [engineering rules](../../../ai-kit/ENGINEERING.md). Confirm the installed versions and existing project contracts before editing. If a project rule conflicts with this starter profile, surface the conflict before applying a destructive or incompatible change.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: moodle-work
3
+ description: Apply project Moodle rules when changing a confirmed Moodle installation or plugin.
4
+ ---
5
+
6
+ # Moodle work
7
+
8
+ Read [contribution rules](../../../CONTRIBUTING.md) and optional local `../../../PROJECT_CONTEXT.md`, then [Moodle rules](../../../ai-kit/stacks/MOODLE.md) and relevant [engineering rules](../../../ai-kit/ENGINEERING.md). Confirm Moodle/PHP compatibility and the affected plugin type before editing.
@@ -0,0 +1,34 @@
1
+ ---
2
+ name: project-continuity
3
+ description: Maintain AI-KIT's own context, template boundaries, and installer verification when kit structure or procedures change.
4
+ ---
5
+
6
+ # AI-KIT maintenance continuity
7
+
8
+ Read [contribution rules](../../../CONTRIBUTING.md). Read optional local `../../../PROJECT_CONTEXT.md`, `../../../AGENTS.md` and `../../../WIKI.md` when present; otherwise verify facts from public source/configuration. These three root files stay local and untracked, outside wheel/Docker payloads; their template counterparts stay public. Check distributions with and without local copies and preserve their on-disk bytes when untracking.
9
+ Keep the root context/history about this kit; keep template project facts uninitialized.
10
+ For a procedure change, update current maintainer commands, this pointer contract, and relevant implementation docs in the same task.
11
+ When verified facts or agreements change, synchronize this skill's scope/procedure/pointers and WIKI with the context; keep actual facts in context.
12
+ Validate templates/links/registry, the agent registry (integrations/agents.json), and behavioral installation scenarios; record root CHANGELOG entries. Keep the root SKILL.md (the repository as a skill) consistent with the CLI, presets, extras, and policies.
13
+ Review explicit semantic acceptance and future-upgrade conflicts whenever installer baseline behavior changes.
14
+ Check candidate draft preservation, state/settings validation, and adapter retirement conflicts when changing installation. Exercise installed Git visibility and portable linked-path refusal; distinguish synthetic fixtures from real application trials. Verify the conditional Docker trigger in installed AGENTS and preserve edited entry points during upgrades.
15
+ Exercise file-versus-directory native rule layouts on both probe and selected-write paths: simulate POSIX ENOTDIR on Windows, preserve existing file markers and rerun stability, and refuse blocked selected parents before writes. Do not hide permission failures or linked-path refusals during optional adapter probes; see [file-parent compatibility](../../../docs/ADAPTER_PATH_FIX.md).
16
+ Exercise manifest-based profile detection and project-fact drafts (version/commands into PROJECT_CONTEXT and project.json), scoped Node/Python ignore rules, the installed-project doctor report, opt-in extras (session-start, guards, CI) including key-level client settings merges, legacy whole-file migration, and hook execution, client detection markers, interactive/check onboarding, the adr/changelog helpers, and the offline router helper (route/configure with provider selection) when installer behavior changes.
17
+ For generated client configuration, exercise private/team settings files and mode switches, owned-entry moves, project.json precedence, secret lists, ignore blocks, every scoped rule format with root modules and skipped paths, presets that turn extras off, and workflow skill copies; recheck client formats against primary docs before changing them.
18
+ For routing, compare the implementation ladder with canonical POLICY, exercise English/Russian operation/risk regressions and override precedence, provider-review status/sources, and distinguish recommendations from executed model controls. For stack profiles, exercise manifest evidence, module scoping, and command drafting; for Filament specifically test Composer dependency/lock evidence and source/native skill lifecycle. For optional metrics, verify failure/recovery accounting, missing-value coverage, duplicate/lock/path guards, private/team journal visibility, schema 1/2 compatibility, experiment/arm/task identity, per-provider analyze output, and upgrade preservation. Exercise context snapshots and doctor warnings for new/removed modules, profile drift, and manifest changes. Exercise adapter reports plus explicit retirement of unchanged files, backups/state updates, and modified-file conflicts. Exercise opaque evaluator pair coverage without task-text persistence. Use the [evaluation protocol](../../../docs/EVALUATION.md) for separately authorized application trials; synthetic fixtures establish no savings.
19
+ Record actual OS/runtime and unavailable checks in the implementation record; keep source visibility checks separate from client activation.
20
+ For measurement-led changes, test schema 1/2/3 compatibility, fixed A/B controls, immutable Git blobs and isolated repeated workspaces, missing/estimated telemetry, semantic-review gates, interrupted runs and idempotent private exports. Exercise resume identity checks, per-unit failure recording and configurable kit-arm agents/presets. Check that worker Git discovery cannot reach the source through parents: a ceiling at cwd itself is ineffective. Keep worker requests separate from observed execution. Exercise routing modes/pins/profiles, distinct-case quality floors, matched history, unsupported controls, immutable proposal history and explicit backed-up restore. Exercise module context scope, duplicate content, critical rules/ADRs above byte budgets and linked paths. Follow [the staged plan](../../../docs/DEVELOPMENT_PLAN.md) and [worker contract](../../../docs/BENCHMARK.md); defer live adapters/orchestration until their mechanisms and total coordination costs are verified.
21
+ Resolve temporary fixture roots before deriving paths used by guards, assertions, or injected failures. Test equivalent path spellings; keep cleanup bound to original disposable directories. [Windows CI regression](../../../docs/WINDOWS_CI_FIX.md) records the relevant scenario.
22
+ For reference upgrades, check the actual published tree and old paths left by overlays. Compatibility pointers link to canonical owners; never hide broken legacy links from the checker.
23
+ When editing onboarding docs, verify examples against the actual CLI/defaults and preserve links to policy owners. Keep installation, native discovery, and measured execution claims distinct. For [OpenRouter documentation](../../../README.md#working-with-openrouter), recheck primary API/cache/usage docs; distinguish shipped context manifests from proposed request assembly/runtime, prompt caching from response reuse, and observed usage from assumed savings. Root README and Docker Hub Overview have no size quota; retain scoped instruction budgets and normal link/language checks.
24
+ For [PyPI releases](../../../docs/PYPI.md), verify wheel/sdist metadata, VERSION, licenses, description, resources and private/path exclusions; build the wheel from sdist and smoke-install offline. Quote complete Twine globs; report OS gaps. A JSON 404 does not prove name eligibility; verify publisher registration. Test identity guards without uploads; preserve CI names and existing release tags. Use a new patch when an old tag predates publication support. Trusted Publishing stays manual/build-only by default, with exact version/tag/repository gates, OIDC only in upload jobs and validated same-run artifacts; setup and publication are separate. Keep MCP posture separate from live client activation.
25
+ For repository administration or changes to existing required CI names, consult [repository maintenance](../../../CONTRIBUTING.md#repository-maintenance), verify live protection and emitted names, and keep required checks aligned. New local jobs establish no hosted result or required-check update. Remote changes need explicit authorization; Core governs commits/pushes.
26
+ For every task assess [Docker image impact](../../../docs/DOCKER.md#change-impact-and-image-refresh), including packaged instructions and defaults. Follow canonical [image freshness](../../../template/ai-kit/CONTAINERS.md#image-freshness); rebuild/test affected final sources as ai-kit:dev or record why no rebuild is needed. For the image, verify actual client/daemon, pinned build inputs, VERSION/label identity, closed context, wheel resources, non-root bind permissions, read-only/offline preview and apply, preservation, conflicts, rerun and SIGTERM. Validate the Job schema; distinguish cluster/runtime coverage. Record test cache/volume ownership and size; follow canonical cleanup without shared-builder pruning. Keep image publication separate.
27
+ For [dialogue memory](../../../docs/DIALOGUE_MEMORY.md), test all supported imports, selected ChatGPT branches, omissions, untrusted roles, pending prose, explicit keyed conflicts/resolutions, source-bound review, immutable reruns, both exports and byte limits. Exercise linked/blocked paths, private/team upgrade preservation, Git/build/package exclusions and installed CLI execution. Do not infer semantic agreement from no keyed conflicts or claim live sync/upload from local export. Preserve raw sources and default project context.
28
+ For optional upstream skills, follow [security-audit](../../../docs/SECURITY_AUDIT.md) and [Strix integration](../../../docs/STRIX.md): preserve pinned bytes/license and newline attributes, verify bounded tree coverage/digests and nested-path aliases, explicit-only metadata, absent default/preset payloads, independent persistent choices, local adaptations/conflicts, links, visibility and wheel resources. Exempt only verified external examples from authored model/language/budget checks. Keep installation separate from audits/runtime setup; report unsupported validators. For Strix, check writable copy isolation, explicit full/diff scope, budget/data destination and no implicit cloud fallback; integration tests must start no scan, model or container.
29
+ For [Context7](../../../docs/CONTEXT7.md), check opt-in skill/registry selection, independent persistence, source/native copies, local conflicts and unchanged native MCP configuration. Keep normal skill discovery, version-aware sanitized queries and remote activation separate. Recheck client schemas/authentication against primary docs; a source revision does not pin the hosted service.
30
+ For [Web Design](../../../docs/WEB_DESIGN.md), check whole-module default absence, multi-entry skill selection, independent persistence, created-once project documents, native copies/retirement, local conflicts and linked/blocked paths. Exercise workflow context scope, required design memory above budgets, plain HTML without assumed stack facts, private raw output/team visibility and offline wheel resources. Keep TypeUI/SkillUI setup and real browser/Laravel acceptance separate from installer evidence; adopt external guidance only within the selected stack/visual system.
31
+ For an explicitly requested release version, update VERSION, the root changelog, README release pointer, WIKI and maintainer context together; keep release history out of project templates. Recheck CLI version, kit validation and wheel metadata/install; build in an isolated source copy and exercise preservation across the prior-version baseline. State which behavioral results preceded release labeling; publication/tagging remain separate actions under Core. In release notes, distinguish Web Design instructions from external tools and generated-site acceptance, Context7 setup from installation, and OpenRouter guidance from a live adapter; verify security examples against pinned contracts.
32
+ For every Docker image release, follow the [Docker Hub checklist](../../../CONTRIBUTING.md#docker-hub-releases) and update the complete [Overview](../../../docs/DOCKER_HUB_OVERVIEW.md); synchronize version/features/examples before building and verified publication identity afterward.
33
+ For the current Docker/privacy release, follow [v1.4.1 preparation](../../../docs/V1_4_1.md); keep local image identity distinct from a registry digest and source-bound human review distinct from automatic conversation synchronization. After explicitly authorized publication, read back the registry digest, platform and version/configuration; preserve the prepared image and record later publication-only documentation separately. Do not assign additional tags implicitly.
34
+ Do not bootstrap the reference repository as an application or imply native/runtime checks passed from static validation.
@@ -0,0 +1,8 @@
1
+ ---
2
+ name: python-work
3
+ description: Apply project Python rules when changing confirmed Python scripts, packages, or tests.
4
+ ---
5
+
6
+ # Python work
7
+
8
+ Read [contribution rules](../../../CONTRIBUTING.md) and optional local `../../../PROJECT_CONTEXT.md`, then [Python rules](../../../ai-kit/stacks/PYTHON.md) and relevant [engineering rules](../../../ai-kit/ENGINEERING.md). Check the supported Python version, dependency format, script entry points and test commands before editing. Apply only to confirmed Python work.
@@ -0,0 +1,90 @@
1
+ # Closed build context: kit sources only, never an application or personal configuration.
2
+ **
3
+ !Dockerfile
4
+ !.dockerignore
5
+ !.gitignore
6
+ !.gitattributes
7
+ !VERSION
8
+ !LICENSE
9
+ !README.md
10
+ !CHANGELOG.md
11
+ !SECURITY.md
12
+ !SKILL.md
13
+ !BOOTSTRAP_PROMPT.md
14
+ !CONTRIBUTING.md
15
+ !Makefile
16
+ !pyproject.toml
17
+ !MANIFEST.in
18
+ !aikit_cli.py
19
+ !__init__.py
20
+ !scripts/
21
+ !scripts/*.py
22
+ !tests/
23
+ !tests/*.py
24
+ !tests/fixtures/
25
+ !tests/fixtures/**
26
+ !template/
27
+ !template/**
28
+ !templates/
29
+ !templates/**
30
+ !integrations/
31
+ !integrations/**
32
+ !docs/
33
+ !docs/**
34
+ !ai-kit/
35
+ !ai-kit/**
36
+ !.agents/
37
+ !.agents/skills/
38
+ !.agents/skills/**
39
+ !.github/
40
+ !.github/workflows/
41
+ !.github/workflows/check-kit.yml
42
+ !.github/workflows/publish-pypi.yml
43
+ !docker/
44
+ !docker/build-requirements.txt
45
+ !docker/pypi-requirements.txt
46
+ !docker/check_version.py
47
+ !deploy/
48
+ !deploy/k8s/
49
+ !deploy/k8s/*.yaml
50
+
51
+ # These exclusions win even inside an allowed source directory.
52
+ **/.git
53
+ **/.git/**
54
+ **/.env
55
+ **/.env.*
56
+ **/.aws
57
+ **/.aws/**
58
+ **/.codex
59
+ **/.codex/**
60
+ **/.claude
61
+ **/.claude/**
62
+ **/.secrets
63
+ **/.secrets/**
64
+ **/auth.json
65
+ **/.netrc
66
+ **/.pypirc
67
+ **/*.pem
68
+ **/*.p12
69
+ **/*.pfx
70
+ **/id_rsa*
71
+ **/id_ed25519*
72
+ **/__pycache__
73
+ **/__pycache__/**
74
+ **/*.py[cod]
75
+ **/*.egg-info
76
+ **/*.egg-info/**
77
+ **/build
78
+ **/build/**
79
+ **/dist
80
+ **/dist/**
81
+ ai-kit/.metrics
82
+ ai-kit/.metrics/**
83
+ ai-kit/.memory
84
+ ai-kit/.memory/**
85
+ ai-kit/.upstream-cache
86
+ ai-kit/.upstream-cache/**
87
+ ai-kit/.design
88
+ ai-kit/.design/**
89
+ docs/.private
90
+ docs/.private/**
@@ -0,0 +1,3 @@
1
+ # Pinned third-party bytes must survive Windows checkout without newline conversion.
2
+ template/ai-kit/vendor/security-audit/** -text
3
+ template/ai-kit/vendor/strix/** -text
@@ -0,0 +1,70 @@
1
+ name: Check AI-KIT
2
+
3
+ on: [push, pull_request, workflow_dispatch]
4
+
5
+ permissions:
6
+ contents: read
7
+
8
+ jobs:
9
+ validate:
10
+ runs-on: ${{ matrix.os }}
11
+ strategy:
12
+ fail-fast: false
13
+ matrix:
14
+ os: [ubuntu-latest, windows-latest, macos-latest]
15
+ python: ['3.10', '3.13', '3.14']
16
+ steps:
17
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7, verified 2026-10-08
18
+ with:
19
+ persist-credentials: false
20
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7, verified 2026-10-08
21
+ with:
22
+ python-version: ${{ matrix.python }}
23
+ - name: Validate files and Git visibility
24
+ run: python scripts/check_kit.py
25
+ - name: Exercise the unified CLI
26
+ run: python aikit_cli.py route "implement a feature"
27
+ - name: Exercise installation, upgrade, and evidence behavior
28
+ run: python -m unittest discover -s tests -v
29
+
30
+ wheel:
31
+ runs-on: ${{ matrix.os }}
32
+ strategy:
33
+ fail-fast: false
34
+ matrix:
35
+ os: [ubuntu-latest, windows-latest, macos-latest]
36
+ python: ['3.10', '3.14']
37
+ steps:
38
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7, verified 2026-10-08
39
+ with:
40
+ persist-credentials: false
41
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7, verified 2026-10-08
42
+ with:
43
+ python-version: ${{ matrix.python }}
44
+ - name: Install reviewed build tools
45
+ run: python -m pip install --require-hashes -r docker/build-requirements.txt
46
+ - name: Install release validation tools
47
+ run: python -m pip install -r docker/pypi-requirements.txt
48
+ - name: Build a source archive and portable wheel
49
+ run: python tests/build_distribution.py "${{ runner.temp }}/pypi-dist"
50
+ - name: Validate archive metadata, privacy and resources
51
+ run: python scripts/check_distribution.py archives "${{ runner.temp }}/pypi-dist"
52
+ - name: Validate the package description
53
+ run: python -m twine check --strict "${{ runner.temp }}/pypi-dist/*"
54
+ - name: Smoke-install the wheel in an isolated environment
55
+ run: python tests/wheel_smoke.py "${{ runner.temp }}/pypi-dist"
56
+
57
+ docker:
58
+ name: Docker CLI
59
+ runs-on: ubuntu-latest
60
+ steps:
61
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
62
+ with:
63
+ persist-credentials: false
64
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97
65
+ with:
66
+ python-version: '3.13'
67
+ - name: Build the local CLI image
68
+ run: docker build --build-arg AIKIT_VERSION="$(cat VERSION)" --tag ai-kit:ci .
69
+ - name: Exercise offline container behavior and build-context boundaries
70
+ run: python tests/docker_smoke.py ai-kit:ci --context .
@@ -0,0 +1,108 @@
1
+ name: Prepare or publish Python package
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ inputs:
6
+ destination:
7
+ description: Build only, or explicitly upload to the selected registry
8
+ type: choice
9
+ options: [validate, testpypi, pypi]
10
+ default: validate
11
+ required: true
12
+ version:
13
+ description: Exact VERSION confirmation; required for either upload
14
+ type: string
15
+ default: ''
16
+ required: false
17
+
18
+ permissions:
19
+ contents: read
20
+
21
+ concurrency:
22
+ group: python-package-${{ github.ref }}-${{ inputs.destination }}
23
+ cancel-in-progress: false
24
+
25
+ jobs:
26
+ build:
27
+ runs-on: ubuntu-latest
28
+ steps:
29
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
30
+ with:
31
+ persist-credentials: false
32
+ - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7
33
+ with:
34
+ python-version: '3.13'
35
+ - name: Verify explicit release identity before building
36
+ env:
37
+ RELEASE_VERSION: ${{ inputs.version }}
38
+ DESTINATION: ${{ inputs.destination }}
39
+ run: >-
40
+ python scripts/check_distribution.py identity
41
+ --expected-version "$RELEASE_VERSION" --destination "$DESTINATION"
42
+ --ref "$GITHUB_REF" --repository "$GITHUB_REPOSITORY"
43
+ - name: Validate sources and behavior
44
+ run: |
45
+ python scripts/check_kit.py
46
+ python -m unittest discover -s tests -v
47
+ - name: Install reviewed build and validation tools
48
+ run: |
49
+ python -m pip install --require-hashes -r docker/build-requirements.txt
50
+ python -m pip install -r docker/pypi-requirements.txt
51
+ - name: Build source archive and wheel from that source archive
52
+ run: python tests/build_distribution.py "${{ runner.temp }}/pypi-dist"
53
+ - name: Validate archives, description and installed CLI
54
+ run: |
55
+ python scripts/check_distribution.py archives "${{ runner.temp }}/pypi-dist"
56
+ python -m twine check --strict "${{ runner.temp }}/pypi-dist/*"
57
+ python tests/wheel_smoke.py "${{ runner.temp }}/pypi-dist"
58
+ - name: Retain the exact validated distributions
59
+ uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2, verified 2026-10-16
60
+ with:
61
+ name: python-distributions
62
+ path: ${{ runner.temp }}/pypi-dist/*
63
+ if-no-files-found: error
64
+ retention-days: 14
65
+
66
+ testpypi:
67
+ needs: build
68
+ if: inputs.destination == 'testpypi' && github.repository == 'tigusigalpa/ai-kit' && startsWith(github.ref, 'refs/tags/v')
69
+ runs-on: ubuntu-latest
70
+ environment:
71
+ name: testpypi
72
+ url: https://test.pypi.org/project/ai-kit-python/
73
+ permissions:
74
+ id-token: write
75
+ steps:
76
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2, verified 2026-10-16
77
+ with:
78
+ name: python-distributions
79
+ path: dist/
80
+ - name: Upload only the validated artifacts to TestPyPI
81
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2, verified 2026-10-16
82
+ with:
83
+ repository-url: https://test.pypi.org/legacy/
84
+ packages-dir: dist/
85
+ attestations: true
86
+ skip-existing: false
87
+
88
+ pypi:
89
+ needs: build
90
+ if: inputs.destination == 'pypi' && github.repository == 'tigusigalpa/ai-kit' && startsWith(github.ref, 'refs/tags/v')
91
+ runs-on: ubuntu-latest
92
+ environment:
93
+ name: pypi
94
+ url: https://pypi.org/project/ai-kit-python/
95
+ permissions:
96
+ id-token: write
97
+ steps:
98
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2, verified 2026-10-16
99
+ with:
100
+ name: python-distributions
101
+ path: dist/
102
+ - name: Upload only the validated artifacts to PyPI
103
+ uses: pypa/gh-action-pypi-publish@dc37677b2e1c63e2034f94d8a5b11f265b73ba33 # v1.14.2, verified 2026-10-16
104
+ with:
105
+ repository-url: https://upload.pypi.org/legacy/
106
+ packages-dir: dist/
107
+ attestations: true
108
+ skip-existing: false
@@ -0,0 +1,60 @@
1
+ # Reference repository: version instruction sources and project templates.
2
+ # Application projects receive templates/gitignore.private or gitignore.team instead.
3
+
4
+ # ---- Local AI-KIT and agent state ----
5
+ /AGENTS.md
6
+ /PROJECT_CONTEXT.md
7
+ /WIKI.md
8
+ /ai-kit/.upstream-cache/
9
+ /ai-kit/.metrics/
10
+ /ai-kit/.memory/
11
+ /.claude/
12
+ /.codex/
13
+ /.windsurf/
14
+ /.codeium/
15
+ /.devin/
16
+ /.cursor/
17
+ /.kimi/
18
+ /.manus/
19
+ /.deepseek/
20
+ /.qoder/
21
+ /.grok/
22
+ # Extracted AI-KIT bundles; the hyphen keeps ai-kit/ itself visible on case-insensitive systems.
23
+ /AI-KIT-*/
24
+ /ai-kit-*/
25
+
26
+ # ---- Local secrets ----
27
+ .env
28
+ .env.*
29
+ !.env.example
30
+ /.secrets/
31
+
32
+ # ---- Python development caches ----
33
+ /.cache/
34
+ /.venv/
35
+ __pycache__/
36
+ *.py[cod]
37
+ .pytest_cache/
38
+ .mypy_cache/
39
+ .ruff_cache/
40
+ .coverage
41
+ htmlcov/
42
+ /.test-results/
43
+ dist/
44
+ build/
45
+ *.egg-info/
46
+ *.log
47
+
48
+ # ---- IDE, editor, and OS files ----
49
+ .idea/
50
+ .vscode/
51
+ .fleet/
52
+ .zed/
53
+ .nova/
54
+ .history/
55
+ *.swp
56
+ *.swo
57
+ *~
58
+ .DS_Store
59
+ Thumbs.db
60
+ Desktop.ini
@@ -0,0 +1,18 @@
1
+ # New-project start prompt
2
+
3
+ Give the following English prompt to an agent with the AI-KIT distribution and target repository available:
4
+
5
+ ~~~text
6
+ Analyze this repository and install or adapt the attached AI-KIT.
7
+ Read template/ai-kit/BOOTSTRAP.md from the distribution, then inspect the target's current instructions and manifests.
8
+ Use scripts/install.py for a preview and apply only a compatible, reviewed plan; preserve existing files and decisions.
9
+ Keep the supplied defaults unless I explicitly change them.
10
+ After installation read the target AGENTS.md, ai-kit/CORE.md, and current PROJECT_CONTEXT.md.
11
+ Enable only confirmed stack profiles and record module paths, evidence, and actual check commands.
12
+ Run relevant checks, review the changes, and update project context, continuity pointers, and CHANGELOG.
13
+ Report what changed, conflicts, and checks that remain unavailable.
14
+ ~~~
15
+
16
+ When AI-KIT is already installed, run the installed ai-kit-bootstrap skill instead: /ai-kit-bootstrap in Claude Code, $ai-kit-bootstrap in Codex.
17
+
18
+ For a file-access-limited chat, attach the relevant template files and current project evidence. An agent must not claim filesystem installation without access.
@@ -0,0 +1,85 @@
1
+ # AI-KIT changelog
2
+
3
+ ## v1.4.2 (2026-10-16)
4
+
5
+ - Verified kit/archive/offline installation, 351 Linux tests (two skips), 23 Windows CLI/archive tests and Docker smoke. [Evidence](docs/V1_4_2.md).
6
+ - Prepared `ai-kit-python` 1.4.2; PyPI publisher/GitHub pypi environment verified. Preserve v1.4.1 Git/Docker. [Status](docs/V1_4_2.md).
7
+ - Fixed quoted Twine wildcards for Windows CI.
8
+ - Added PyPI metadata, a portable [description](docs/PYPI_DESCRIPTION.md), README guidance and a [release procedure](docs/PYPI.md). Wheel/sdist checks cover metadata, licenses, resources, private files, offline installation and publication identity. Manual Trusted Publishing defaults to validation, requires exact version/tag/repository, and gives OIDC only to upload jobs consuming tested artifacts. Required CI names stay unchanged.
9
+ - Isolated builds inject synthetic private probes; archives exclude private drafts and credential filenames. Added tested `aikit --version`; published Docker 1.4.1 examples use its existing `--help`. Added a README Docker Hub badge.
10
+
11
+ - Saved the complete [Docker Hub Overview](docs/DOCKER_HUB_OVERVIEW.md) for v1.4.1 and linked it from README/Docker docs. The [release checklist](CONTRIBUTING.md#docker-hub-releases) and continuity skill require updating it for every image release, with verified publication identity recorded after push. Exempted only this user-facing document from the size quota alongside README; instruction budgets remain unchanged, with regression coverage.
12
+
13
+ ## v1.4.1 (2026-10-15)
14
+
15
+ - Added [image freshness](docs/DOCKER.md#change-impact-and-image-refresh): maintainer and installed AGENTS assess Docker impact, rebuild/test affected images and preserve publication authorization.
16
+ - Keep root maintainer AGENTS/PROJECT_CONTEXT/WIKI local and untracked; retain template counterparts. Exclude local copies from Git, wheel and Docker; validate distributions without them.
17
+
18
+ - Prepared matching VERSION, wheel and Docker version 1.4.1; [release checks and publication record](docs/V1_4_1.md). Added package/context regression coverage and retained full v1.2.0 history in its archive.
19
+
20
+ - Published `tigusigalpa/ai-kit:1.4.1`; push, remote digest/configuration and anonymous tag visibility matched the tested image. Post-label: nine Windows CLI tests, 339 Linux tests (337 passed/two skips), Docker smoke, offline wheel/source privacy checks and private/team 1.4.0 upgrades passed. [Evidence](docs/V1_4_1.md#verification).
21
+
22
+ ## v1.4.0 (2026-10-15)
23
+
24
+ - Published `tigusigalpa/ai-kit:1.4.0` to Docker Hub at the owner's request. Remote digest, linux/amd64 platform, version label and non-root entrypoint were read back and matched the prepared image; [publication record](docs/V1_4_0.md#docker-hub-publication). No `latest` tag was assigned.
25
+ - Prepared v1.4.0 for the Docker CLI and local dialogue memory. VERSION, CLI/wheel metadata, image label and release pointers use the same version; [release checks and Docker Hub handoff](docs/V1_4_0.md). Registry publication and Git tagging remain separate.
26
+ - Added offline `aikit memory import|merge|export`: three dialogue formats, selected ChatGPT branches, source-bound human review, explicit contradictions and ChatGPT/OpenRouter reference exports. Preserves immutable artifacts, refuses unreviewed normal exports and protects private memory across upgrades/builds. Added tests and detailed [workflow](README.md#shared-context-from-two-dialogues)/[contract](docs/DIALOGUE_MEMORY.md). Automatic sync and API execution remain separate. Archived v1.1.0 history without dropping its text.
27
+ - Before release labeling, dialogue-memory verification passed: 336 Windows tests (329 passed/seven environment skips), 336 packaged Linux tests (334 passed/two skips), clean kit validation, offline wheel and private-package exclusion, README conflict-resolution flow and Docker smoke. [Coverage and limits](docs/DIALOGUE_MEMORY.md#verification).
28
+ - Added standalone non-root Docker CLI, pinned build inputs, offline wheel resources, application mounts, Kubernetes preview Job, smoke tests, CI and [usage/results](docs/DOCKER.md). Earlier Docker-only Windows and packaged Linux runs passed 309 tests (307 passed/two skips each); actual image, preservation, signals, context exclusions, wheel and schema checks passed.
29
+ - After labeling: nine CLI tests, 336 packaged Linux tests (334 passed/two Windows-only skips), clean kit validation, isolated Windows wheel/fresh-venv smoke and private-memory exclusion passed. The actual linux/amd64 image passed Docker smoke. Tracked 1.3.0 upgrades in private/team modes preserved data and pin identities, with explicit review of a local skill conflict; reruns stayed stable. [Release evidence](docs/V1_4_0.md#verification).
30
+
31
+ ## v1.3.0 (2026-10-13)
32
+
33
+ - Prepared v1.3.0 for optional Web Design and the expanded README guide. The 304-test behavioral discovery below preceded release labeling; publication/tagging remain separate. [Release checks](docs/WEB_DESIGN.md#release-labeling).
34
+ - After labeling: eight CLI tests, version/wheel metadata 1.3.0, clean kit checks and offline fresh-venv wheel smoke passed. The pre-label 1.2.0 upgrade preserved facts, settings, local design/skill edits, MCP configuration and both security pins; rerun stayed stable.
35
+ - Added optional Web Design: --with-web-design installs four short skills, conditional Blade/library/tool/review guides and created-once project design documents. Added scoped context workflows, source/Claude lifecycle and preservation tests; installation remains offline. [Guide](README.md#web-design), [integration record](docs/WEB_DESIGN.md).
36
+ - Removed the root README size quota and added extensive reference-to-site instructions for Laravel, Tailwind, Bootstrap, Alpine/Livewire, daisyUI, Flowbite, Flux, TypeUI and SkillUI. Existing instruction budgets remain scoped; external setup and real application checks stay separate.
37
+ - Verified on Windows/Python 3.12.14: 304 tests (300 passed/four runtime skips), clean kit/skill checks, all-client private/team visibility, preserved tracked 1.2.0 upgrade and fresh-venv wheel smoke. Live tools/sites remain unverified. Archived v0.6.4 history without losing its text; [details](docs/WEB_DESIGN.md#verification).
38
+
39
+ ## v1.2.0 (2026-10-12)
40
+
41
+ [Archived release entry](docs/history/v1.2.0-changelog.md#v120-2026-10-12).
42
+
43
+ ## v1.1.0 (2026-10-12)
44
+
45
+ [Archived release entry](docs/history/v1.1.0-changelog.md#v110-2026-10-12).
46
+
47
+ ## v0.13.0 (2026-10-11)
48
+
49
+ - Added Rust, .NET, Java (Maven/Gradle), and Terraform/Helm stack profiles with evidence-based per-module detection: Cargo.toml (rust-version, cargo test/build/clippy), *.csproj/*.fsproj/*.vbproj and global.json (TargetFramework, dotnet test/build), pom.xml/mvnw/build.gradle(.kts)/gradlew (language level, wrapper-aware commands), and .tf files or Chart.yaml (fmt/validate, helm lint). Drafts remain suggestions until bootstrap confirms them.
50
+ - Added rust-work, dotnet-work, java-work, and infra-work skills to the registry; Claude native copies install with the claude agent selection.
51
+ - Benchmark packs accept the new stack names; README, SKILL.md, and WIKI profile lists updated.
52
+ - Verified locally (Windows/Python 3.14.6): 254 tests ran, all passed, 1 runtime skip; kit validation returned zero errors and zero warnings; Python 3.10 grammar verified; end-to-end smoke detected RUST/INFRA with drafted context and installed source/native skills. Real applications of the new stacks remain untrialed.
53
+
54
+ ## v0.12.0 (2026-10-11)
55
+
56
+ - Benchmark packs accept optional `kit_agents`/`kit_preset` (default codex/minimal), so kit arms install the client's real adapter set and preset instead of a hard-coded arm; both are validated against the installer registry.
57
+ - Benchmark task paths are now probed against the benchmark project instead of the process working directory.
58
+ - Interrupted benchmark runs are resumable: re-running `benchmark run` with the identical pack skips completed units and continues missing ones, and a changed pack is refused against the existing run. Per-unit infrastructure failures are recorded as explicit failed units, so one bad unit neither aborts the run nor hides as an executed attempt; failed units still block savings and cannot be reviewed as correct.
59
+ - The unified `aikit` dispatcher now prefers installed `aikit.scripts.*` package modules over bare script-path imports, avoiding duplicate module objects inside the wheel.
60
+ - The checker document budgets are named constants; the root README budget rises to 22000 bytes (human onboarding that never enters project context), other documents keep 12000.
61
+ - Verified locally (Windows/Python 3.14.6): 252 tests ran, all passed, 1 runtime skip; kit validation returned zero errors and zero warnings; Python 3.10 grammar was verified for the changed sources. Live workers, native client activation and hosted CI remain unverified.
62
+
63
+ ## v0.11.0 (2026-10-11)
64
+
65
+ - Fixed provider/model overrides carrying inherited effort; synchronized Gemini routing policy with the reviewed registry. Existing selection/settings defaults stay readable and unchanged.
66
+ - Fixed the untested v0.10 adapter audit failing before it could report file-blocked native paths. Read-only state validation now allows obstructions after strict link/boundary checks; installation writes retain their refusal guards.
67
+ - Forwarded subcommand help to the actual command parser, so `aikit benchmark --help` and install flags are discoverable.
68
+ - Added preview-first `aikit benchmark run|review|report|export`: immutable Git blobs, separate A/B/C workspaces/repeats, equal fixed A/B controls, a configured worker protocol, actual-telemetry coverage, checks plus explicit semantic review, private JSON/Markdown reports and idempotent journal export. No live vendor adapter or application savings is claimed.
69
+ - Added metric schema 3 for revision/case/repetition/stack/class/level/capability/review strata, keeping schemas 1/2 readable. Comparisons require matched reviewed tasks and actual single-currency costs, include all failures/retries and refuse lower-quality/unknown/estimated spend claims. Added per-stack analysis.
70
+ - Added optional manual/fixed/recommended/adaptive modes, task/project pins and economy/balanced/quality profiles. Learned recommendations require comparable distinct-case samples and quality floors; unsupported controls or insufficient evidence retain the capability recommendation. Immutable proposals preserve prior selection and support explicit backed-up restore without automatic policy writes.
71
+ - Added read-only module context selection, duplicate detection and byte-budget reporting while preserving critical requirements and architectural decisions. Added staged acceptance plan and orchestration research in ADR 0012.
72
+ - Expanded wheel resources and smoke checks outside the source checkout, including installed validation, new command imports and context selection. Windows/Python 3.12.14 full discovery ran 248 tests (244 passed, four runtime skips); post-review checks and offline wheel installation passed; kit validation returned zero errors/warnings. [Results and limits](docs/IMPLEMENTATION.md#measurement-led-development-verification).
73
+
74
+ ## v0.6.4 (2026-10-10)
75
+
76
+ [Archived release entry](docs/history/v0.6.4-changelog.md#v064-2026-10-10).
77
+
78
+ ## v0.5.0 (2026-10-10)
79
+
80
+ [Archived release entry](docs/history/v0.5-changelog.md#v050-2026-10-10).
81
+
82
+ ## Earlier kit
83
+
84
+ Release history is preserved: [v0.5.0](docs/history/v0.5-changelog.md), [v0.10.0](docs/history/v0.10-changelog.md), [v0.6.5-v0.9](docs/history/v0.6.5-v0.9-changelog.md), [v0.4.5-v0.4.7](docs/history/v0.4-changelog.md), [v0.3.3-v0.3.8](docs/history/v0.3-changelog.md), [v0.2-v0.2.2 and Windows fixtures](docs/history/v0.2-changelog.md), and [v0.1](docs/history/v0.1-changelog.txt). Old paths and language/router agreements are historical data.
85
+ [Prior routing decision](docs/adr/0001-adaptive-model-routing.md) records the accepted routing baseline; this changelog is not copied into projects.
@@ -0,0 +1,3 @@
1
+ # AI-KIT maintainer entry
2
+
3
+ @AGENTS.md
@@ -0,0 +1,46 @@
1
+ # Contributing
2
+
3
+ Read [Core](template/ai-kit/CORE.md) and [policy ownership](docs/IMPLEMENTATION.md#policy-ownership).
4
+ Make a coherent local change, add behavioral checks for installer or validator risks, and run the documented checks.
5
+ Keep project templates free of maintainer facts/history. Preserve local-file ownership and authorization boundaries.
6
+ Update the root changelog; record significant design decisions in docs/adr/.
7
+ Discuss version/provider changes using current primary documentation and actual runtime evidence. Commit/push authorization follows Core.
8
+
9
+ ## Local maintainer files
10
+
11
+ Root `AGENTS.md`, `PROJECT_CONTEXT.md` and `WIKI.md` are optional local maintainer files. Keep them on disk, ignored and untracked; do not copy their contents into public documents or build artifacts. Read them when present and preserve local agreements. Otherwise establish current facts from VERSION, pyproject, source and the public guides. Their `template/` counterparts are distribution sources and remain tracked for application installation.
12
+
13
+ Ignore rules do not untrack existing files. Use `git rm --cached -- AGENTS.md PROJECT_CONTEXT.md WIKI.md` to stop tracking only the root copies while keeping them on disk. This stages removal for a later authorized commit; it does not erase earlier history. Do not force-add local copies. Public documents and checks must work without them; wheel and Docker builds exclude them even when present.
14
+
15
+ ## Maintainer workflow
16
+
17
+ Follow plan -> implement -> test -> review -> document. Run `python scripts/check_kit.py` and `python -m unittest discover -s tests -v` for affected installer/checker behavior. When packaging changes, build from an isolated source copy and smoke-install the wheel. Review preservation, conflicts, links, visibility and upgrades; report unavailable checks.
18
+
19
+ Assess [Docker impact](docs/DOCKER.md#change-impact-and-image-refresh) on every task and rebuild/test affected final sources locally. Publication needs authorization. Update the root changelog, any local context/map and the continuity skill when procedures change. Keep templates free of kit history; do not bootstrap this distribution as an application.
20
+
21
+ ## Docker Hub releases
22
+
23
+ Update [DOCKER_HUB_OVERVIEW.md](docs/DOCKER_HUB_OVERVIEW.md) for every AI-KIT Docker image release, including patch releases and authorized replacements of an existing tag. Keep the complete publication copy in that file; README and the [Docker guide](docs/DOCKER.md) link to it.
24
+
25
+ Before building, synchronize its version/tag, feature summary, release changes, optional modules, CLI examples and runtime/platform contract with VERSION, README and actual sources. Record only checks that ran. After an authorized push, read back the remote digest and configuration, then update publication status and the immutable pull example from that evidence. Never invent a digest or claim local preparation is publication. Keep descriptive publication receipts separate from the prepared image snapshot; do not rebuild/replace an image just to include its own digest.
26
+
27
+ The root README and Docker Hub Overview are user documentation without a size quota. Other document and instruction budgets remain scoped. Preparing this file does not itself publish a Docker Hub description, image or Git release; the relevant authorization still applies.
28
+
29
+ ## Python package releases
30
+
31
+ Follow [PyPI preparation and release](docs/PYPI.md) for every package release. Synchronize VERSION, pyproject metadata, [description](docs/PYPI_DESCRIPTION.md) and README; verify license/resource inclusion and local-file exclusions in both sdist and wheel, build the wheel from sdist, run strict Twine checks and offline fresh-venv smoke. Preserve existing CI matrix/job names. Refresh the image when packaging changes affect it.
32
+
33
+ Trusted Publishing remains manual and build-only by default. Registry uploads require the matching version/tag, canonical repository and the separately configured registry environment/publisher. Build tests have no OIDC permission; upload jobs consume only validated same-run artifacts. Record local, hosted and registry results separately. No upload, publisher/account setup or Git operation is authorized by preparation alone.
34
+
35
+ ## Repository maintenance
36
+
37
+ Before changing remote protection or required CI checks, verify live configuration and emitted names. Local jobs establish neither hosted success nor updated protection. Remote changes, commits, pushes and publication need the relevant user authorization. Private context snapshots require verification before use.
38
+
39
+ ## Updating a reference repository
40
+
41
+ Archive overlays leave old files behind. Compatibility pointers retain known v0.1 rule paths.
42
+ Overlay the bundle at the reference root, preserve customizations, and run the checker.
43
+
44
+ The obsolete .gitignore_real is historical material: its useful rules live in the templates/ policies, scoped by the installer where a global rule would hide project source (Composer vendor, Moodle config.php, Node and Python output). Use templates/ policies for applications.
45
+ Keep the root [SKILL.md](SKILL.md) current when commands, options, or features change.
46
+ Retire old pointers after reviewing inbound links and local changes.
@@ -0,0 +1,44 @@
1
+ # CLI runtime. Build with --build-arg AIKIT_VERSION=<VERSION file value>.
2
+ FROM scratch AS context-audit
3
+ COPY . /
4
+
5
+ FROM python:3.13.16-slim-bookworm@sha256:a1165e272e578941b84abc79e4ab38a0305cd12803a5c4247979ac7655f4d641 AS wheel-builder
6
+ ENV PIP_DISABLE_PIP_VERSION_CHECK=1 \
7
+ PIP_NO_CACHE_DIR=1 \
8
+ PYTHONDONTWRITEBYTECODE=1
9
+ WORKDIR /build/source
10
+ ARG AIKIT_VERSION
11
+ COPY VERSION ./VERSION
12
+ COPY docker/check_version.py /build/check_version.py
13
+ RUN python /build/check_version.py
14
+ COPY docker/build-requirements.txt /build/build-requirements.txt
15
+ RUN python -m pip install --require-hashes -r /build/build-requirements.txt
16
+ COPY . .
17
+ RUN python -m pip wheel . --no-index --no-deps --no-build-isolation --wheel-dir /build/wheels
18
+
19
+ FROM python:3.13.16-slim-bookworm@sha256:a1165e272e578941b84abc79e4ab38a0305cd12803a5c4247979ac7655f4d641 AS runtime
20
+ ARG AIKIT_VERSION
21
+ LABEL org.opencontainers.image.title="AI-KIT CLI" \
22
+ org.opencontainers.image.description="Offline AI-KIT instructions, installer and project helpers" \
23
+ org.opencontainers.image.source="https://github.com/tigusigalpa/ai-kit" \
24
+ org.opencontainers.image.licenses="MIT" \
25
+ org.opencontainers.image.version="${AIKIT_VERSION}"
26
+ ENV PYTHONDONTWRITEBYTECODE=1 \
27
+ PYTHONUNBUFFERED=1 \
28
+ PYTHONNOUSERSITE=1 \
29
+ PIP_DISABLE_PIP_VERSION_CHECK=1
30
+ RUN apt-get update \
31
+ && apt-get install --yes --no-install-recommends git \
32
+ && rm -rf /var/lib/apt/lists/* \
33
+ && groupadd --gid 10001 aikit \
34
+ && useradd --uid 10001 --gid 10001 --create-home --shell /usr/sbin/nologin aikit \
35
+ && mkdir -p /workspace \
36
+ && chown 10001:10001 /workspace
37
+ COPY --from=wheel-builder /build/wheels /wheels
38
+ RUN python -m pip install --no-index --no-deps /wheels/*.whl \
39
+ && rm -rf /wheels
40
+ USER 10001:10001
41
+ WORKDIR /workspace
42
+ STOPSIGNAL SIGTERM
43
+ ENTRYPOINT ["aikit"]
44
+ CMD ["--help"]
@@ -0,0 +1,3 @@
1
+ # Kimi project entry
2
+
3
+ Read `AGENTS.md` and the current `PROJECT_CONTEXT.md` before making changes. Open relevant rules through `WIKI.md`; maintain context and skills according to `ai-kit/SKILLS.md`. Supply this file explicitly if the environment does not read it automatically.