ai-kit-python 1.4.6__py3-none-any.whl → 1.4.7__py3-none-any.whl
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.
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/METADATA +1 -1
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/RECORD +28 -23
- aikit/.agents/skills/project-continuity/SKILL.md +3 -3
- aikit/CHANGELOG.md +7 -0
- aikit/README.md +1 -1
- aikit/SKILL.md +1 -1
- aikit/VERSION +1 -1
- aikit/aikit_cli.py +1 -0
- aikit/docs/DECISIONS.md +1 -0
- aikit/docs/V1_4_7.md +19 -0
- aikit/docs/adr/0017-installer-flag-schema-and-gemini-thinking.md +20 -0
- aikit/docs/guide/INSTALLER_FLAGS.md +3 -0
- aikit/integrations/installer-flags.json +216 -0
- aikit/scripts/check_distribution.py +2 -1
- aikit/scripts/check_kit.py +34 -0
- aikit/scripts/flags.py +36 -0
- aikit/scripts/install.py +65 -11
- aikit/template/ai-kit/router/POLICY.md +1 -1
- aikit/template/ai-kit/router/providers/gemini.json +11 -5
- aikit/template/ai-kit/router/providers/gemini.md +3 -2
- aikit/tests/test_flags.py +97 -0
- aikit/tests/test_router.py +19 -2
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/WHEEL +0 -0
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/entry_points.txt +0 -0
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/licenses/LICENSE +0 -0
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/licenses/template/ai-kit/vendor/security-audit/LICENSE +0 -0
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/licenses/template/ai-kit/vendor/strix/LICENSE +0 -0
- {ai_kit_python-1.4.6.dist-info → ai_kit_python-1.4.7.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ai-kit-python
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.7
|
|
4
4
|
Summary: Portable instructions and installer for AI coding agents: project memory, stack rules, model routing, and optional budgeted orchestration.
|
|
5
5
|
Author: Igor Sazonov
|
|
6
6
|
License-Expression: MIT AND Apache-2.0
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
ai_kit_python-1.4.
|
|
2
|
-
ai_kit_python-1.4.
|
|
3
|
-
ai_kit_python-1.4.
|
|
1
|
+
ai_kit_python-1.4.7.dist-info/licenses/LICENSE,sha256=Q4UBNXri7WF3F5T3Z2C_S22HoXWvOxiOs3CxSfPPNKE,1093
|
|
2
|
+
ai_kit_python-1.4.7.dist-info/licenses/template/ai-kit/vendor/security-audit/LICENSE,sha256=5ZjmlKpQZlDHGS1eo74OUKyg01bqAFUcU0KfCwHrY5E,1078
|
|
3
|
+
ai_kit_python-1.4.7.dist-info/licenses/template/ai-kit/vendor/strix/LICENSE,sha256=fblpcTQlHjFL2NOSV_4XDJiz4q2bLtZ-l6yvlhPnueM,11345
|
|
4
4
|
aikit/.dockerignore,sha256=XhRVOHjBA4BHuC4qT5bEycKg1V_fuxBA1PI7aer6kck,1425
|
|
5
5
|
aikit/.gitattributes,sha256=MYn1Arz7NZ2fUrp3zM3pzDLbC5Z5wl_tWZrXB8l0ScY,289
|
|
6
6
|
aikit/.gitignore,sha256=d0r_QIwTbSEECnn0Qe5W0i2PXlufVCiDgGjepeTKlno,954
|
|
7
7
|
aikit/BOOTSTRAP_PROMPT.md,sha256=7r4CmBIfFPal5QilpsomlGIomEzGlI6nVbmksbEuMlw,1189
|
|
8
|
-
aikit/CHANGELOG.md,sha256=
|
|
8
|
+
aikit/CHANGELOG.md,sha256=nL3IzUWr3IBA59-92fSDrLrAMQhDLS2I1xijAuvIZMU,16594
|
|
9
9
|
aikit/CONTRIBUTING.md,sha256=_f0zUYFsPK3dHbtLJgoJzsRRUdUO1fYUyhwYP_Ic8jk,5731
|
|
10
10
|
aikit/Dockerfile,sha256=TEhkQUwV9NTEF9whZ-Awh6a0J2WoZyjCCHuZEF7F5wM,2035
|
|
11
11
|
aikit/LICENSE,sha256=Q4UBNXri7WF3F5T3Z2C_S22HoXWvOxiOs3CxSfPPNKE,1093
|
|
12
12
|
aikit/MANIFEST.in,sha256=DLebV84kLdD1IlJVHtmCxfJ_B1LeBTyR--YC7QV7gIk,857
|
|
13
13
|
aikit/Makefile,sha256=R_VqJHSi9awBzs24uccOioVXuso2Sz9WmnuHwYUXrd0,1476
|
|
14
|
-
aikit/README.md,sha256=
|
|
14
|
+
aikit/README.md,sha256=fiZ9GOFKmBc1Wci4srpZobAy_YoYC-hrTxKEgpNwGX4,25135
|
|
15
15
|
aikit/SECURITY.md,sha256=wATqnw5W4VyCqFhd-ksCBPQKQMx_neJo9RRxWykg9gg,922
|
|
16
|
-
aikit/SKILL.md,sha256=
|
|
17
|
-
aikit/VERSION,sha256=
|
|
16
|
+
aikit/SKILL.md,sha256=7_-FE6SDd1uVEreQdFzWJa7p1Q1cHQYgx4VLNc6RQfE,13473
|
|
17
|
+
aikit/VERSION,sha256=eU2b_S0GS-IEHLoICSOz45ujvshMNXlHgEgoUrX0AH4,6
|
|
18
18
|
aikit/__init__.py,sha256=aNy2HbTnXlBlSZu868pK2uv1jLohV129gQn4dbup4k4,59
|
|
19
|
-
aikit/aikit_cli.py,sha256=
|
|
19
|
+
aikit/aikit_cli.py,sha256=nSxgzgw9Q0v7RSMUm5myx2VmpFehjZPsNZenQSzmxE8,2542
|
|
20
20
|
aikit/pyproject.toml,sha256=8BXOIQ18xI5TE7ulmJ2vN5xrxGtDhW24LQh50qabVsc,2783
|
|
21
21
|
aikit/.agents/skills/go-work/SKILL.md,sha256=Hs1urC4XsEufaUyO5L-_Nb2s2TusX-niuXdnZ9BCD58,421
|
|
22
22
|
aikit/.agents/skills/laravel-work/SKILL.md,sha256=dJ55mRc2SPY2uTPArfDWZ-YtO7rfLYnv9E-tc91wzVY,589
|
|
23
23
|
aikit/.agents/skills/moodle-work/SKILL.md,sha256=ZwQTExl6MyK1QrgcHKqr-9pPow_NYRzOJwMuQZN0o5U,439
|
|
24
|
-
aikit/.agents/skills/project-continuity/SKILL.md,sha256
|
|
24
|
+
aikit/.agents/skills/project-continuity/SKILL.md,sha256=O_7hm_QCbaeC9ylOx_I1aapZc_kjt_FKBehYauCNnH4,13210
|
|
25
25
|
aikit/.agents/skills/python-work/SKILL.md,sha256=UBSgsbF7HF_8YvZgtI5v2Y0tw4BTzMcuV8hPcck6Trw,510
|
|
26
26
|
aikit/.github/workflows/check-kit.yml,sha256=p0sg5S8I7yyukCV_I5OrTvUFsGYGhEbKjHezSrH76HA,2809
|
|
27
27
|
aikit/.github/workflows/publish-pypi.yml,sha256=nLBjrcWf6LDnINcstK95_A9_g4ruqg9Wfc5NSYe3TNI,6230
|
|
@@ -42,7 +42,7 @@ aikit/docker/pypi-requirements.txt,sha256=EkOfXWYsS02YKKpw3eGM90v7B37mNdESSuxBZ-
|
|
|
42
42
|
aikit/docs/ADAPTER_PATH_FIX.md,sha256=8fXc6BA_HiYO3nTVihhYO33THIEedCyp7R64EtTA6Ew,2236
|
|
43
43
|
aikit/docs/BENCHMARK.md,sha256=xaa33vwZcTmrHi_-9cJO1IRrljSaHhp5UDNtZdHQb_A,9961
|
|
44
44
|
aikit/docs/CONTEXT7.md,sha256=PygcdLjWBTrcsFIMA9_PbPcgTfUpqAWsCAnMKFnxQIA,4628
|
|
45
|
-
aikit/docs/DECISIONS.md,sha256=
|
|
45
|
+
aikit/docs/DECISIONS.md,sha256=VCrVoUSLNs3iOw38w_X3d0aOm2S5gh-f6_k0Q_QZ0aU,2592
|
|
46
46
|
aikit/docs/DEVELOPMENT_PLAN.md,sha256=4t5PFKg83a5rQyq78qIXQA4iyUmM4uTBORdKHSgTxXM,2919
|
|
47
47
|
aikit/docs/DIALOGUE_MEMORY.md,sha256=f5pH8X5YRLJizBpwfor4Zixn25xMUhADhIzyHWl6s-I,11652
|
|
48
48
|
aikit/docs/DOCKER.md,sha256=sFCgCELoFfPerdy7U_SkrkQyt9bAK3lkE4BFSaAujRY,12423
|
|
@@ -64,6 +64,7 @@ aikit/docs/V1_4_3.md,sha256=iUoKF1BftBWbnB35F-MZU4ysUOVIZ084DCjxvOI7YHA,8555
|
|
|
64
64
|
aikit/docs/V1_4_4.md,sha256=GAMOOh3v8jCMfhx566hbRQoXtN3mmGay1RrpNLdOYhA,7758
|
|
65
65
|
aikit/docs/V1_4_5.md,sha256=PYjwk3Q84beWXhLBUARI_432d5cVEIeWfXWBKUCFKMo,7767
|
|
66
66
|
aikit/docs/V1_4_6.md,sha256=RHp0jW272C725WA3egzbJD-JvXFqCneCsedSu-VjaOw,4389
|
|
67
|
+
aikit/docs/V1_4_7.md,sha256=7Hlvuck7wFC278hONMuxr4EF6lG2OBGkR9b60ZjZnZE,3314
|
|
67
68
|
aikit/docs/WEB_DESIGN.md,sha256=0pQ9gDzawKiWeI5xDZkQTaxUNAdGQTxpCvBcw7voH6k,11815
|
|
68
69
|
aikit/docs/WINDOWS_CI_FIX.md,sha256=2HdCvpewggF0i2rnvKZiu2JAOHbVfKFvzlExradSTRc,3288
|
|
69
70
|
aikit/docs/adr/0000-template.md,sha256=voTxxy1-LqBBDzsp_-8B9lL-aVtmbMhIyeZtSZHNDc8,493
|
|
@@ -83,12 +84,13 @@ aikit/docs/adr/0013-docker-cli-image.md,sha256=Gd4q5ngFz0CHXRm1gvasEprmeW-Jqv7QG
|
|
|
83
84
|
aikit/docs/adr/0014-local-dialogue-memory.md,sha256=J6vYXy3bCgHfklVjq437WHAhvhP1cPyvZ97jFSecmKU,2695
|
|
84
85
|
aikit/docs/adr/0015-optional-bounded-orchestration.md,sha256=MjtiX4VODz0LcadKPSj1my72915JYsZaMLTjbrl85Og,2118
|
|
85
86
|
aikit/docs/adr/0016-consistent-distributions-and-safer-defaults.md,sha256=xHtI3VFbx0obFl0T0FMSBR1lkHiLAAuW_jObCNvEfUQ,2666
|
|
87
|
+
aikit/docs/adr/0017-installer-flag-schema-and-gemini-thinking.md,sha256=cqaeI-jiISsOb7pSJWhSuNBXuNsuxjvLZtMldTCTF2o,2264
|
|
86
88
|
aikit/docs/changelog/v0.12.0.md,sha256=2PngvmsLixkhqN61uw_ZfQg8Bf_mAQlSs3X8Tazv0-c,1425
|
|
87
89
|
aikit/docs/guide/CONTEXT7.md,sha256=9oZHZTJFmzJFYWTucmcugB468fVR43DapJgLDG57A7s,1520
|
|
88
90
|
aikit/docs/guide/DIALOGUE_MEMORY.md,sha256=TUZYsFOqjlowNh4Evp1yMfnAykJOddQq55_PjaU-U5I,9785
|
|
89
91
|
aikit/docs/guide/DOCKER.md,sha256=-O2NKq6FWLa-gUQHNUwJnj8qR2TuezS-K0WF1KBMspo,18468
|
|
90
92
|
aikit/docs/guide/INSTALL.md,sha256=1ub8-Z7vaJ5H9yi1hu-3Mg5r0Xi5opcKcisuHa04nFk,10530
|
|
91
|
-
aikit/docs/guide/INSTALLER_FLAGS.md,sha256=
|
|
93
|
+
aikit/docs/guide/INSTALLER_FLAGS.md,sha256=uiYXPHnxHLMSgVJY_fWkVqY1HlaIogj8JmeXOD49fUY,16259
|
|
92
94
|
aikit/docs/guide/MAINTAINERS.md,sha256=i75USVijGoxk44VRmjH2foVjdRSEBxCOnuVnKsjZpUI,6399
|
|
93
95
|
aikit/docs/guide/MEASUREMENT.md,sha256=TF-mxnAIQVv2qe-YG0TXJWg8HDbkTBypAMTKtpCBuSs,3614
|
|
94
96
|
aikit/docs/guide/OPENROUTER.md,sha256=2UuG_DbyE6rD50lmKPa4LOLtd4PE6yXsbvXyVhlTrXI,8457
|
|
@@ -123,6 +125,7 @@ aikit/integrations/ai-kit.mdc,sha256=tdCfS5Y1Q14z4d0wMkpoPq1r2wJzRAWjr98JlhTz5Bw
|
|
|
123
125
|
aikit/integrations/claude-settings.data-ask.json,sha256=4YkYnw9Y68yJOh6b323znDB7PHI1ZolFSWUQMWrk3h0,472
|
|
124
126
|
aikit/integrations/claude-settings.git-ask.json,sha256=4Nts0zGxuQ_jdUlYcnooq8o6haTMwIy5MDmjn3lG53E,149
|
|
125
127
|
aikit/integrations/copilot-instructions.md,sha256=vsKX9589IIjngAfH4wqr1_GVjpL0Mx8mu2OoOgZ_y_A,139
|
|
128
|
+
aikit/integrations/installer-flags.json,sha256=hmS6aumP5_nhzyZV2wyI8veu7GqYRL-fyo6cj2_SHL8,5659
|
|
126
129
|
aikit/integrations/security-audit.json,sha256=Pph9udBmg-EnWtCFQZfP-uYjuaEv8h0AjCh2Xz1eb7I,5124
|
|
127
130
|
aikit/integrations/strix.json,sha256=WeeIZahjiOGG6x71EIHQuZfH6umMqcsPxGg5-LuJYv8,2657
|
|
128
131
|
aikit/integrations/codex-agents/aikit_explorer.toml,sha256=sOWADcpFmwBNiRs7OZ9cqNrqXS2L0JjtYiEj9lj6QLw,512
|
|
@@ -134,13 +137,14 @@ aikit/scripts/adaptive.py,sha256=1epV_Qj68k33Dp92J7YfOOSM4Lx5_6ae5uF1KdCk3vs,103
|
|
|
134
137
|
aikit/scripts/adr.py,sha256=MiznKf87_lnd_aefa-WcIjLvqqvndhGUSrh7_r6-okY,2149
|
|
135
138
|
aikit/scripts/benchmark.py,sha256=NR-SG6WaDF3W4bhhoxftMB00HkMDlNRI9dYKO2IsicE,31339
|
|
136
139
|
aikit/scripts/changelog.py,sha256=NVhRrHMQvLkHEkGEdByOt-CPRaRaaMPdMcPNhMnjZ6s,1868
|
|
137
|
-
aikit/scripts/check_distribution.py,sha256=
|
|
138
|
-
aikit/scripts/check_kit.py,sha256=
|
|
140
|
+
aikit/scripts/check_distribution.py,sha256=6GkmljfqbPsrNBSQBZkaiCumdZBxEHZJ8yYk_P1qdTg,13081
|
|
141
|
+
aikit/scripts/check_kit.py,sha256=4dLisIK9n26sJHZ6Z8vhJwcKdDhxNvY-fkg6xP_HD6c,27001
|
|
139
142
|
aikit/scripts/context.py,sha256=Whljug5joxnnxS2laDOKL5zBF0C5sjgOVyWFPGcgt7Y,10088
|
|
140
143
|
aikit/scripts/docker_test_usage.py,sha256=GksIYslTVKm9mcFDulle_FtkMuKjVzHfdAr5FLXB0Bk,2529
|
|
141
144
|
aikit/scripts/doctor.py,sha256=Y1YvVcr2sAUl1QMEIxZnGhVEGDNQ-_NubgUSBiS74bI,17647
|
|
142
145
|
aikit/scripts/evaluate.py,sha256=3HclA2D2QWHTk2y7KPLzoGY-PoZ_df1Dbtfwz4wfFtQ,5754
|
|
143
|
-
aikit/scripts/
|
|
146
|
+
aikit/scripts/flags.py,sha256=k0el5wA5wyOiEqqDCQPObjZ5eRl4BKQET_J1Rz4tbt4,1104
|
|
147
|
+
aikit/scripts/install.py,sha256=fyp_OLaH3yDKN_NQiaKi817nlLTbhTDJvxhlqzdFulU,93246
|
|
144
148
|
aikit/scripts/learning.py,sha256=malGwJyC6GSqM3_gPlbi19WvX6M-QSwsVYZe6in8Iho,14830
|
|
145
149
|
aikit/scripts/memory.py,sha256=sNqRaoapZ9P88nAjJ7j1HYgmmJdZdmM3JSkXjS8az6g,19461
|
|
146
150
|
aikit/scripts/memory_import.py,sha256=j5OtYG18NUV-K0avdy8Bup3OgxAETPcR1_kXPufqSNM,8836
|
|
@@ -203,13 +207,13 @@ aikit/template/ai-kit/orchestration.json,sha256=bax1qEJAFz4n9bhdx9vUKeLzreZL6mJc
|
|
|
203
207
|
aikit/template/ai-kit/project.json,sha256=qsyHcDU_dTkzkul0i_Zk9TQlZb3IX4evG3hrus1SWNo,194
|
|
204
208
|
aikit/template/ai-kit/settings.json,sha256=1Md4wcy9BcaqBQAB9dzwMisPvlUjLjYdK97MqFLmLB4,279
|
|
205
209
|
aikit/template/ai-kit/profiles/OWNER.md,sha256=O1V8mej_yh3wOfmZe7Ar_rFfV4DquWhwJbCbteslJmU,1583
|
|
206
|
-
aikit/template/ai-kit/router/POLICY.md,sha256=
|
|
210
|
+
aikit/template/ai-kit/router/POLICY.md,sha256=_aewxje1WzUsZypQZU9txAI_weeCNktcGso84uS8saw,8613
|
|
207
211
|
aikit/template/ai-kit/router/routing.json,sha256=XDGvRQVV5QhbcM0Cu0I-09xtzhMUU5ZOdkPdBhe3NQ0,341
|
|
208
212
|
aikit/template/ai-kit/router/selection.json,sha256=egolW02wGc8M4u2Cf6KtLmDvhon7edquQ2CXSgxvQi0,209
|
|
209
213
|
aikit/template/ai-kit/router/providers/anthropic.json,sha256=UCp0uR44voEhKXOWyl0QKZun6PFLXJN8OzlsRtexvgs,786
|
|
210
214
|
aikit/template/ai-kit/router/providers/anthropic.md,sha256=WXcP5ZJVF10NK-sQninAf4_H76EtUwyrNenBFuykPCU,2136
|
|
211
|
-
aikit/template/ai-kit/router/providers/gemini.json,sha256=
|
|
212
|
-
aikit/template/ai-kit/router/providers/gemini.md,sha256=
|
|
215
|
+
aikit/template/ai-kit/router/providers/gemini.json,sha256=kAeNqiKJWKYVFRmCQ6wC9isssU0_x6wJQGr7XfKW6fk,613
|
|
216
|
+
aikit/template/ai-kit/router/providers/gemini.md,sha256=kcScHRslhnfX6yVx_1DM16wow3vbzEq-R5tGxtOQT6I,1870
|
|
213
217
|
aikit/template/ai-kit/router/providers/kimi.json,sha256=HDMirAN30-FRsZkXUf_c4yr4R8X5P4c8-U08jQH5qaI,441
|
|
214
218
|
aikit/template/ai-kit/router/providers/kimi.md,sha256=xSiLp_bjGN5OIk_SECGmQRBwMuGegGlLMK1ZR6mOI50,1529
|
|
215
219
|
aikit/template/ai-kit/router/providers/local.json,sha256=8S9GWVU0dqOYUeVBGe56gi-ERU4RQEu0BRrGIhVlTCY,363
|
|
@@ -286,6 +290,7 @@ aikit/tests/test_docker_image.py,sha256=l2SVzvfFgzHku76V6j815eZY4JYh-JNO0JSz7VgQ
|
|
|
286
290
|
aikit/tests/test_docker_test_usage.py,sha256=XAf34vFaugQEQ_PS1KXvL9okhczVCJdtLc7mJcc4ZEw,2278
|
|
287
291
|
aikit/tests/test_doctor.py,sha256=sTAgjttI1TuYQth-7PtXe-I0WHrDSSQ81PHzS0tdUwM,7569
|
|
288
292
|
aikit/tests/test_evaluate.py,sha256=dzm7M9zy8cIIahCeFLMlVyhXp8l7Fa4ZEOAGXNA8uno,3315
|
|
293
|
+
aikit/tests/test_flags.py,sha256=D9phYXS4Y97uIM_hklyxvzhdoNw1qNTgFbmDvel-3S8,4807
|
|
289
294
|
aikit/tests/test_install.py,sha256=pLo5cSRzA8n1A75pcNO4GNyi5DMGykzYs5N2uop-75U,54018
|
|
290
295
|
aikit/tests/test_learning.py,sha256=8a4xX81zlrojcMpgEasN_m1DTpf9SxQ_D9uwtkDQx24,13687
|
|
291
296
|
aikit/tests/test_memory.py,sha256=Lxedr8ZQ8HNOgC56_SONLs0hRlDojbmTukNfo4zWDBc,20351
|
|
@@ -295,7 +300,7 @@ aikit/tests/test_onboarding.py,sha256=0nJdWnfZVDtTTSQ4alcpgQgd-8_KpgI_Bl79SwWts7
|
|
|
295
300
|
aikit/tests/test_orchestration.py,sha256=2w7PB-x4NF8d6PeL65EK4GoGj7iyzf1r6qXRtE4o3cg,21642
|
|
296
301
|
aikit/tests/test_pypi_events.py,sha256=cn3TaZsgevqqaJaSHqMEX_9IOJlXZzvbtim0iDG50e0,10294
|
|
297
302
|
aikit/tests/test_review_fixes.py,sha256=NZQvsmIz5KrcUN9L2R3sKtVLd6SJlTkStGxz4ba5opI,12437
|
|
298
|
-
aikit/tests/test_router.py,sha256=
|
|
303
|
+
aikit/tests/test_router.py,sha256=5Aj83-zgkQE5ccajcmo0te4bXq4BYhGpBKYIVquD8yA,20848
|
|
299
304
|
aikit/tests/test_security_audit.py,sha256=Ar_C3HWNNA5HLWPfG0SqkJjmQDsz77kuPdEshNt_-TA,13766
|
|
300
305
|
aikit/tests/test_strix.py,sha256=ttBTs60eXUnemfn5sJvL4Sm329flcLXivv9U_RkRsFo,12867
|
|
301
306
|
aikit/tests/test_web_design.py,sha256=QU-1Nikt31tKSSp42QP7EjelUgFqHtQcm9Qtr6ixQGE,12379
|
|
@@ -303,8 +308,8 @@ aikit/tests/test_workflow_security.py,sha256=YjFuadtJrcx9XvYrozBvn72Ud2D0xanUcfS
|
|
|
303
308
|
aikit/tests/wheel_smoke.py,sha256=KUNvz2jN39mHlCQ-K9eP2DJhHFZX5Ng6CjBJumCc21A,6365
|
|
304
309
|
aikit/tests/fixtures/create-junction.ps1,sha256=gWIMFbA3oQ8siQjy3wh2wU3SYPoF9K3rRlG3RgruBM4,632
|
|
305
310
|
aikit/tests/fixtures/golden/claude-settings-local.json,sha256=YEOcQqZs-Q93j8e4JMoxyAHLpk6ANSMduieMU6EzqCA,1340
|
|
306
|
-
ai_kit_python-1.4.
|
|
307
|
-
ai_kit_python-1.4.
|
|
308
|
-
ai_kit_python-1.4.
|
|
309
|
-
ai_kit_python-1.4.
|
|
310
|
-
ai_kit_python-1.4.
|
|
311
|
+
ai_kit_python-1.4.7.dist-info/METADATA,sha256=8BEhRJo1tsv02z6i01yZporYmB4ylST36ZKAx4_BHBk,10068
|
|
312
|
+
ai_kit_python-1.4.7.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
313
|
+
ai_kit_python-1.4.7.dist-info/entry_points.txt,sha256=cPpNaVjBYz9S8t0ysZf37HXnBsXiX14yZX-C1fePz4s,47
|
|
314
|
+
ai_kit_python-1.4.7.dist-info/top_level.txt,sha256=Ck-hW3dWXfVl4ca1lZReDP49M4R4lPu0zdyrt29YuqI,6
|
|
315
|
+
ai_kit_python-1.4.7.dist-info/RECORD,,
|
|
@@ -7,7 +7,7 @@ description: Maintain AI-KIT's own context, template boundaries, and installer v
|
|
|
7
7
|
|
|
8
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
9
|
Keep the root context/history about this kit; keep template project facts uninitialized.
|
|
10
|
-
Sync commands, this skill, docs, context and WIKI on procedure/fact/agreement changes; keep facts in context.
|
|
10
|
+
Sync commands, this skill, docs, context and WIKI on procedure/fact/agreement changes; keep facts in context. Keep release receipts (commits, workflow runs, hashes, digests) in docs/V*.md and link them; context holds current facts, commands and agreements only.
|
|
11
11
|
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.
|
|
12
12
|
Review explicit semantic acceptance and future-upgrade conflicts whenever installer baseline behavior changes.
|
|
13
13
|
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.
|
|
@@ -19,7 +19,7 @@ Record runtime gaps separately from static/source checks.
|
|
|
19
19
|
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); keep native activation and real trials separate. For [optional orchestration](../../../docs/ORCHESTRATION.md), test opt-in/persistence, Codex helper conflicts/retirement, private/team/archive exclusions, bounded inputs/keys/budgets, reservations/locks, unknown billing, source-bound review and reconciliation without replay. Keep native costs separate; tests make no live calls.
|
|
20
20
|
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.
|
|
21
21
|
For reference upgrades verify the published tree and overlay leftovers; preserve canonical links and checker coverage.
|
|
22
|
-
|
|
22
|
+
After changing installer options, regenerate `integrations/installer-flags.json` with `aikit flags --output integrations/installer-flags.json`; kit validation compares it, the [flag guide](../../../docs/guide/INSTALLER_FLAGS.md) and SKILL.md with argparse. Review selection precedence by hand; check [Windows](../../../docs/guide/WINDOWS.md) examples and actual client activation. For [OpenRouter documentation](../../../docs/guide/OPENROUTER.md), 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. README/Overview are unbounded; keep instruction budgets and link/language checks.
|
|
23
23
|
For [PyPI releases](../../../docs/PYPI.md), verify metadata, VERSION, licenses, description, resources and private/path exclusions; build the wheel from sdist and smoke-install offline. Quote Twine globs; report OS gaps. A JSON 404 does not prove name eligibility. Test release/manual identity guards without uploads; preserve CI names and old tags. Published stable releases prepare PyPI artifacts; manual runs default to validation. Require exact version/tag/repository gates, owner approval and future tag coverage; agents must not approve deployments. OIDC belongs only in upload jobs consuming validated same-run artifacts. Keep setup, upload and live MCP activation separate.
|
|
24
24
|
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.
|
|
25
25
|
Assess [Docker impact](../../../docs/DOCKER.md#change-impact-and-image-refresh) on every task, including installed guidance. Rebuild/test affected final sources as ai-kit:dev or record a descriptive-only exception. Verify client/daemon, pins, VERSION/labels, closed context, wheel resources, non-root mounts, offline/read-only preview/apply, preservation, reruns, signals and Job schema. Follow [canonical cleanup](../../../template/ai-kit/CONTAINERS.md#post-test-docker-cleanup): no threshold, zero eligible disposable resources, dedicated-builder cache, protected persistent/unrelated data and separately measured RAM/disk reclamation. Check actual backend, VHDX identity and idle maintenance scope; never infer compaction from prune. Upgrade tests must preserve adapted container rules/AGENTS through candidates. Record actual runtime gaps; publication needs its authorization.
|
|
@@ -28,7 +28,7 @@ For optional upstream skills, follow [security-audit](../../../docs/SECURITY_AUD
|
|
|
28
28
|
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.
|
|
29
29
|
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.
|
|
30
30
|
For a requested release, synchronize VERSION, root changelog, README, WIKI and maintainer context; keep kit history out of templates. Recheck CLI/version, kit, isolated archives, offline installation and prior-version upgrade preservation. Distinguish checks before/after labeling. Follow [the release path](../../../docs/V1_4_5.md#pypi-publication-status): preserve tags, wait for hosted build checks and report pending human approval; never approve PyPI for the owner. Git authorization follows Core. Release notes must distinguish installed guidance from external tools, live client/model setup and generated-site acceptance; verify security examples against pinned contracts.
|
|
31
|
-
Keep every distribution byte-identical: `.gitattributes` pins LF (vendor bytes stay -text), Docker smoke rejects CR in packaged text, and images are built from a clean `git archive` export with AIKIT_VERSION and AIKIT_REVISION. Upgrades must treat line-ending-only differences as unchanged. Keep the PyPI build job on hash-pinned tools, twine in its own job and digest verification before upload; `tests/test_workflow_security.py` guards these properties and pinned action SHAs. Tracked root entries (CLAUDE/KIMI/MANUS) must work without local maintainer files. The project CI template validates committed files only. Keep `docker_cleanup` modes (maximum default, keep-cache) consistent across CONTAINERS, AGENTS, settings, installer and docs.
|
|
31
|
+
Keep every distribution byte-identical: `.gitattributes` pins LF (vendor bytes stay -text), Docker smoke rejects CR in packaged text, and images are built from a clean `git archive` export with AIKIT_VERSION and AIKIT_REVISION. Upgrades must treat line-ending-only differences as unchanged. Keep the PyPI build job on hash-pinned tools, twine in its own job and digest verification before upload; pin conditional build-tool dependencies (such as `tomli` below Python 3.11) and run build-tool changes on Python 3.10 in a container before pushing, because local Windows runs use a newer Python; `tests/test_workflow_security.py` guards these properties and pinned action SHAs. Tracked root entries (CLAUDE/KIMI/MANUS) must work without local maintainer files. The project CI template validates committed files only. Keep `docker_cleanup` modes (maximum default, keep-cache) consistent across CONTAINERS, AGENTS, settings, installer and docs.
|
|
32
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
33
|
For Docker releases, follow [image verification](../../../docs/V1_4_6.md#verification); 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
34
|
Do not bootstrap this kit as an application or infer runtime success from static checks.
|
aikit/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# AI-KIT changelog
|
|
2
2
|
|
|
3
|
+
## v1.4.7 (2026-10-30)
|
|
4
|
+
|
|
5
|
+
- New `aikit flags` command prints every `aikit install` option as JSON (value type, choices, repeatability, exclusions, saved setting, fresh default, help, presets); the committed copy [installer-flags.json](integrations/installer-flags.json) is the source for documentation tools such as the [documentation site](https://tigusigalpa.github.io/ai-kit-docs/).
|
|
6
|
+
- Kit validation now fails when that schema, the [flag guide](docs/guide/INSTALLER_FLAGS.md) or SKILL.md drifts from the installer parser: stale schema, undocumented or invented options, undocumented choice values. Every installer option has help text in `aikit install --help`.
|
|
7
|
+
- Gemini routing declares the documented `thinking_level` values per model (Flash-Lite: minimal-high; Flash and Pro: low-high) with each model's default as the role default, replacing the "effort unknown" fallback. Installed router guidance explains the mapping.
|
|
8
|
+
- Maintenance: release receipts stay in release records rather than maintainer context; build-tool changes are exercised on Python 3.10. [Decision](docs/adr/0017-installer-flag-schema-and-gemini-thinking.md), [release record](docs/V1_4_7.md).
|
|
9
|
+
|
|
3
10
|
## v1.4.6 (2026-10-30)
|
|
4
11
|
|
|
5
12
|
For installed projects:
|
aikit/README.md
CHANGED
|
@@ -301,7 +301,7 @@ Existing project documents and context are never overwritten; customized instruc
|
|
|
301
301
|
- **[Documentation site](https://tigusigalpa.github.io/ai-kit-docs/)**: an interactive command configurator, CLI installation for Windows and Linux/macOS, post-install commands and a searchable flag reference, in English and Russian
|
|
302
302
|
- [All guides](docs/guide/README.md)
|
|
303
303
|
- [Install AI-KIT and set up a project](docs/guide/INSTALL.md): CLI, defaults, presets, what lands in your project, sharing, updates
|
|
304
|
-
- [Installer flags and options](docs/guide/INSTALLER_FLAGS.md)
|
|
304
|
+
- [Installer flags and options](docs/guide/INSTALLER_FLAGS.md), also as JSON via `aikit flags`
|
|
305
305
|
- [Windows: installation and troubleshooting](docs/guide/WINDOWS.md)
|
|
306
306
|
- [Run AI-KIT with Docker](docs/guide/DOCKER.md), including Docker cleanup and host reclamation
|
|
307
307
|
- [Security workflows](docs/guide/SECURITY_WORKFLOWS.md), [Web Design](docs/guide/WEB_DESIGN.md), [Context7](docs/guide/CONTEXT7.md), [shared dialogue context](docs/guide/DIALOGUE_MEMORY.md)
|
aikit/SKILL.md
CHANGED
|
@@ -89,7 +89,7 @@ CI and optional integrations stay outside presets. Read the audit, Strix, Contex
|
|
|
89
89
|
|
|
90
90
|
## Unified CLI
|
|
91
91
|
|
|
92
|
-
`python aikit_cli.py --help` lists commands; the `ai-kit-python` package installs the same CLI as `aikit`. [Dialogue memory](docs/DIALOGUE_MEMORY.md) imports/merges two dialogues and exports reviewed ChatGPT/OpenRouter references. [Docker](docs/guide/DOCKER.md) mounts an application. [PyPI](docs/PYPI.md) covers checks and owner-approved release publishing; preparation uploads nothing. Standalone scripts and Makefile also work.
|
|
92
|
+
`python aikit_cli.py --help` lists commands; the `ai-kit-python` package installs the same CLI as `aikit`. `aikit flags` prints the installer option schema ([installer-flags.json](integrations/installer-flags.json)); after changing installer options, regenerate it with `aikit flags --output integrations/installer-flags.json` and update [the flag guide](docs/guide/INSTALLER_FLAGS.md) and the Options table here, because kit validation compares all three with the parser. [Dialogue memory](docs/DIALOGUE_MEMORY.md) imports/merges two dialogues and exports reviewed ChatGPT/OpenRouter references. [Docker](docs/guide/DOCKER.md) mounts an application. [PyPI](docs/PYPI.md) covers checks and owner-approved release publishing; preparation uploads nothing. Standalone scripts and Makefile also work.
|
|
93
93
|
|
|
94
94
|
## Maintaining AI-KIT itself
|
|
95
95
|
|
aikit/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.4.
|
|
1
|
+
1.4.7
|
aikit/aikit_cli.py
CHANGED
|
@@ -14,6 +14,7 @@ sys.path.insert(0, str(ROOT / "scripts"))
|
|
|
14
14
|
# Subcommand -> (module, prefix to prepend to the remaining arguments, or None).
|
|
15
15
|
_COMMANDS = {
|
|
16
16
|
"install": ("install", None),
|
|
17
|
+
"flags": ("flags", None),
|
|
17
18
|
"doctor": ("doctor", None),
|
|
18
19
|
"context": ("context", None),
|
|
19
20
|
"memory": ("memory", None),
|
aikit/docs/DECISIONS.md
CHANGED
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
| Local dialogue import, explicit conflict review and shared client exports | [ADR 0014](adr/0014-local-dialogue-memory.md) |
|
|
19
19
|
| Optional bounded orchestration: Codex helpers and a budgeted OpenRouter text executor | [ADR 0015](adr/0015-optional-bounded-orchestration.md) |
|
|
20
20
|
| LF distributions, install-free project CI, SIGTERM, hash-pinned release builds, selectable Docker cleanup | [ADR 0016](adr/0016-consistent-distributions-and-safer-defaults.md) |
|
|
21
|
+
| Installer flag schema as the checked documentation source; declared Gemini thinking levels | [ADR 0017](adr/0017-installer-flag-schema-and-gemini-thinking.md) |
|
|
21
22
|
| MIT selected by the owner on 2026-10-08 | [License](../LICENSE) |
|
|
22
23
|
| Preserve candidate drafts and require review before adapter retirement | [Manus patch decisions](MANUS_REVIEW.md#decisions) |
|
|
23
24
|
|
aikit/docs/V1_4_7.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# AI-KIT v1.4.7
|
|
2
|
+
|
|
3
|
+
Installer options become machine-readable and checked: `aikit flags` prints the `aikit install` option schema, [installer-flags.json](../integrations/installer-flags.json) is its committed copy, and kit validation fails when the schema, the [flag guide](guide/INSTALLER_FLAGS.md) or SKILL.md drifts from the parser. Gemini routing declares its documented per-model thinking levels. [CHANGELOG](../CHANGELOG.md), [ADR 0017](adr/0017-installer-flag-schema-and-gemini-thinking.md).
|
|
4
|
+
|
|
5
|
+
Installation behavior is unchanged: options, defaults, presets and installed project files stay as in v1.4.6, apart from the updated router guidance (`router/POLICY.md`, `router/providers/gemini.md`, `gemini.json`), which upgrades through the normal preserved-conflict path.
|
|
6
|
+
|
|
7
|
+
## Verification
|
|
8
|
+
|
|
9
|
+
Verified locally on 2026-10-30 from a clean `git archive` export of source revision `312cd30` (no CR bytes outside pinned vendor files):
|
|
10
|
+
|
|
11
|
+
- Docker Desktop client/server 29.9.2, context desktop-linux, dedicated `docker-container` builder. Image `ai-kit:1.4.7` (linux/amd64, UID/GID 10001:10001, entrypoint `aikit`, labels version 1.4.7, the source revision and `MIT AND Apache-2.0`). A mismatched `AIKIT_VERSION` build was refused. Smoke passed offline/read-only operation, refusal, all opt-in modules, preservation, stable reruns, the Docker ignore engine, LF-only packaged text and SIGTERM with and without `--init` (exit 143). `aikit flags` ran offline on a read-only root.
|
|
12
|
+
- Packaged Linux/Python 3.13.16 discovery inside the image (non-root, offline, read-only root, temporary storage): 431 tests passed with three expected skips.
|
|
13
|
+
- Wheel and sdist built from the export with hash-pinned tools passed metadata/resources/privacy/license checks; strict twine passed in a separate environment; offline fresh-venv wheel smoke passed. All 307 packaged files in the wheel and the image are byte-identical.
|
|
14
|
+
- Native Windows/Python 3.14.6 discovery: 431 tests passed with nine environment skips (symlink privilege, POSIX permission/FIFO checks, a colon file name). Kit validation returned zero errors and zero warnings, including the new schema/guide/SKILL.md comparison.
|
|
15
|
+
- Local archives (hosted CI builds its own release artifacts): wheel `727094cad974a03cce11b07e2d6d7f74379fcbe0f621ece7a529e29ea0063232`, sdist `4c45db4127b76535a8780a2091cdfb111effac349c7abd93c14153362a546305`. Local image `sha256:5af734d8f68385a1acc1c1e41f39b8c2aad4a3cf4781e54a346398a6f7dcdc28`; this record is descriptive documentation added after that snapshot.
|
|
16
|
+
- Gemini levels and model IDs were read from the [thinking](https://ai.google.dev/gemini-api/docs/thinking) page (last updated 2026-10-14) and the [models](https://ai.google.dev/gemini-api/docs/models) page (last updated 2026-10-28).
|
|
17
|
+
- Cleanup: test containers used `--rm`; the dedicated builder and its 341.5 MB cache and the superseded local `ai-kit:1.4.6` image were removed. Compared with the pre-task inventory, only `ai-kit:1.4.7` replaced that image; no containers, volumes, networks or builders were added. Host RAM/virtual-disk reclamation was not performed (owner authorization and an idle window are required).
|
|
18
|
+
|
|
19
|
+
Not covered locally: hosted CI, the GitHub Release workflow, owner-approved PyPI upload, Docker Hub publication, macOS, other architectures and live Gemini API calls.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ADR 0017: Installer flag schema as the documentation source, and declared Gemini thinking levels
|
|
2
|
+
|
|
3
|
+
Status: accepted for code, local tests and Docker smoke; hosted release runs are separate.
|
|
4
|
+
|
|
5
|
+
## Context
|
|
6
|
+
|
|
7
|
+
Installer options were documented by hand in the flag guide, SKILL.md and the separate documentation site. Each release risked drift: after v1.4.6 the site still lacked `--docker-cleanup` and generated a `doctor --fix` command whose meaning had changed. Several options had no help text, so `aikit install --help` and any generated reference had nothing to show for them.
|
|
8
|
+
|
|
9
|
+
Gemini routing resolved real model IDs since v0.9 but treated reasoning effort as unknown, because thinking controls had not been confirmed against primary documentation. The current thinking documentation lists `thinking_level` with levels that differ per model.
|
|
10
|
+
|
|
11
|
+
## Decision
|
|
12
|
+
|
|
13
|
+
- `scripts/install.py` builds its parser in `build_parser(root)`; `flag_schema(root)` derives a JSON description from it: value type, choices, repeatability, mutual exclusions, the saved `ai-kit/settings.json` key, the fresh default, help text and presets.
|
|
14
|
+
- `aikit flags` prints the schema; `integrations/installer-flags.json` is the committed copy for documentation tools. Kit validation fails when that copy differs from the parser, when the flag guide misses or invents an option or misses a choice value, or when SKILL.md does not mention every option and value.
|
|
15
|
+
- Every installer option carries help text.
|
|
16
|
+
- The Gemini provider declares per-role thinking levels from the documentation (Flash-Lite: minimal/low/medium/high; Flash and Pro: low/medium/high) with each model's documented default as the role default. Unsupported routed levels fall back to the role default, as for other providers.
|
|
17
|
+
|
|
18
|
+
## Consequences
|
|
19
|
+
|
|
20
|
+
Changing an installer option now requires regenerating the schema and updating the guide and SKILL.md in the same change; the checker names what is missing. External tools can read one file per release tag instead of re-deriving options. The schema has no version field, so it changes only when options do. Gemini route output now includes an effort; requests must translate it to the target API's own thinking field, and other Gemini request schemas still need their field names confirmed.
|
|
@@ -8,6 +8,8 @@ The same options work with `python -m aikit.aikit_cli install` after package ins
|
|
|
8
8
|
|
|
9
9
|
For a first installation walkthrough, defaults and updates, see [Install AI-KIT and set up a project](INSTALL.md).
|
|
10
10
|
|
|
11
|
+
**Machine-readable reference.** `aikit flags` prints these options as JSON: value type, choices, repeatability, exclusions, the saved setting, the fresh default, help text and presets. The repository copy is [installer-flags.json](../../integrations/installer-flags.json); kit validation fails when that file, this guide or [SKILL.md](../../SKILL.md) drifts from the installer, so tools such as the [documentation site](https://tigusigalpa.github.io/ai-kit-docs/) can build their option lists from it.
|
|
12
|
+
|
|
11
13
|
## Main installation options
|
|
12
14
|
|
|
13
15
|
| Argument or flag | Accepted value | What it does | Default or upgrade behavior |
|
|
@@ -108,6 +110,7 @@ When adding or changing options, first run the intended command without `--apply
|
|
|
108
110
|
| `aikit doctor . --fix` | Preview the repair plan that restores missing/baseline files through the installer. Nothing is written. |
|
|
109
111
|
| `aikit doctor . --fix --apply` | Write that repair plan. Local edits are preserved and conflicts still need review. `--fix` belongs to `doctor`, not `install`. Earlier releases applied `--fix` directly. |
|
|
110
112
|
| `aikit check` | Validate the bundled/reference AI-KIT distribution itself, not the application selected by `install`. |
|
|
113
|
+
| `aikit flags` | Print the `install` option schema as JSON (`--output FILE` writes it with LF line endings). It reads no project and installs nothing. |
|
|
111
114
|
| `aikit --version` | Show the CLI version; `--version` is a top-level option, not `aikit install --version`. |
|
|
112
115
|
|
|
113
116
|
Other subcommands have their own option sets and apply semantics. Use `aikit COMMAND --help` (for example, `aikit orchestrate run --help`) before combining flags from different commands; the help output of your installed version is authoritative. The tables above follow the [installer implementation](../../scripts/install.py) and [dispatcher](../../aikit_cli.py).
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"command": "aikit install",
|
|
4
|
+
"options": [
|
|
5
|
+
{
|
|
6
|
+
"option": "TARGET",
|
|
7
|
+
"value": "path",
|
|
8
|
+
"required": true,
|
|
9
|
+
"help": "Application directory to set up or update"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"option": "--apply",
|
|
13
|
+
"value": "switch",
|
|
14
|
+
"excludes": [
|
|
15
|
+
"--dry-run"
|
|
16
|
+
],
|
|
17
|
+
"help": "Write the previewed plan; without it nothing is written"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"option": "--dry-run",
|
|
21
|
+
"value": "switch",
|
|
22
|
+
"excludes": [
|
|
23
|
+
"--apply"
|
|
24
|
+
],
|
|
25
|
+
"help": "Explicitly request the read-only preview (the default)"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"option": "--mode",
|
|
29
|
+
"value": "choice",
|
|
30
|
+
"choices": [
|
|
31
|
+
"private",
|
|
32
|
+
"team"
|
|
33
|
+
],
|
|
34
|
+
"setting": "sharing_mode",
|
|
35
|
+
"fresh_default": "private",
|
|
36
|
+
"help": "Git visibility of AI-KIT files: private keeps them local, team shares instructions"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"option": "--chat-language",
|
|
40
|
+
"value": "text",
|
|
41
|
+
"setting": "chat_language",
|
|
42
|
+
"fresh_default": "Russian",
|
|
43
|
+
"help": "Language for chat replies and plans; project files stay English"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"option": "--conventions",
|
|
47
|
+
"value": "choice",
|
|
48
|
+
"choices": [
|
|
49
|
+
"owner",
|
|
50
|
+
"standard"
|
|
51
|
+
],
|
|
52
|
+
"setting": "conventions",
|
|
53
|
+
"fresh_default": "owner",
|
|
54
|
+
"help": "Stack preferences: owner applies the owner's conventions, standard follows the project"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"option": "--docker-cleanup",
|
|
58
|
+
"value": "choice",
|
|
59
|
+
"choices": [
|
|
60
|
+
"maximum",
|
|
61
|
+
"keep-cache"
|
|
62
|
+
],
|
|
63
|
+
"setting": "docker_cleanup",
|
|
64
|
+
"fresh_default": "maximum",
|
|
65
|
+
"help": "Post-Docker cleanup: maximum (default) removes every eligible disposable resource and reclaims host resources; keep-cache keeps the dedicated project builder cache"
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"option": "--agent",
|
|
69
|
+
"value": "choice",
|
|
70
|
+
"choices": [
|
|
71
|
+
"aider",
|
|
72
|
+
"claude",
|
|
73
|
+
"cline",
|
|
74
|
+
"codex",
|
|
75
|
+
"copilot",
|
|
76
|
+
"cursor",
|
|
77
|
+
"gemini",
|
|
78
|
+
"kimi",
|
|
79
|
+
"manus",
|
|
80
|
+
"roo",
|
|
81
|
+
"windsurf"
|
|
82
|
+
],
|
|
83
|
+
"repeatable": true,
|
|
84
|
+
"fresh_default": [
|
|
85
|
+
"codex"
|
|
86
|
+
],
|
|
87
|
+
"help": "AI client adapter to install; repeat for several clients"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"option": "--interactive",
|
|
91
|
+
"value": "switch",
|
|
92
|
+
"help": "Prompt for sharing mode, language, conventions, agents, and extras"
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"option": "--check",
|
|
96
|
+
"value": "switch",
|
|
97
|
+
"help": "Run the project doctor after a successful --apply"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"option": "--accept-local",
|
|
101
|
+
"value": "text",
|
|
102
|
+
"repeatable": true,
|
|
103
|
+
"help": "Record an explicitly reviewed semantic merge of a managed path"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"option": "--with-session-start",
|
|
107
|
+
"value": "switch",
|
|
108
|
+
"setting": "session_start",
|
|
109
|
+
"help": "Install the session-start hook file and client wiring"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"option": "--with-guards",
|
|
113
|
+
"value": "switch",
|
|
114
|
+
"setting": "guards",
|
|
115
|
+
"help": "Install client confirmation (ask) rules for Git commit/push"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"option": "--with-ci",
|
|
119
|
+
"value": "switch",
|
|
120
|
+
"setting": "ci",
|
|
121
|
+
"help": "Install the self-contained AI-KIT project check workflow"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"option": "--with-data-guards",
|
|
125
|
+
"value": "switch",
|
|
126
|
+
"setting": "data_guards",
|
|
127
|
+
"help": "Ask before destructive file, Docker, and detected migration commands (Claude Code)"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"option": "--with-native-settings",
|
|
131
|
+
"value": "switch",
|
|
132
|
+
"setting": "native_settings",
|
|
133
|
+
"help": "Allow recorded checks, deny secret reads, and write client ignore files"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"option": "--with-scoped-rules",
|
|
137
|
+
"value": "switch",
|
|
138
|
+
"setting": "scoped_rules",
|
|
139
|
+
"help": "Generate path-scoped rules per module for clients that support them"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
"option": "--with-security-audit",
|
|
143
|
+
"value": "switch",
|
|
144
|
+
"setting": "security_audit",
|
|
145
|
+
"help": "Install the pinned, user-invoked security-audit skill without running an audit"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"option": "--with-strix",
|
|
149
|
+
"value": "switch",
|
|
150
|
+
"setting": "strix",
|
|
151
|
+
"help": "Install pinned Strix skills and a user-invoked entry point without installing or running Strix"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
"option": "--with-context7",
|
|
155
|
+
"value": "switch",
|
|
156
|
+
"setting": "context7",
|
|
157
|
+
"help": "Install the Context7 documentation skill; MCP connection/authentication stays separate"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"option": "--preset",
|
|
161
|
+
"value": "choice",
|
|
162
|
+
"choices": [
|
|
163
|
+
"minimal",
|
|
164
|
+
"solo",
|
|
165
|
+
"team",
|
|
166
|
+
"strict"
|
|
167
|
+
],
|
|
168
|
+
"help": "Apply a selection bundle; explicit --mode and --with-* flags take precedence"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"option": "--with-orchestration",
|
|
172
|
+
"value": "switch",
|
|
173
|
+
"setting": "orchestration",
|
|
174
|
+
"help": "Install optional Codex helpers and disabled OpenRouter configuration; no calls"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"option": "--with-web-design",
|
|
178
|
+
"value": "switch",
|
|
179
|
+
"setting": "web_design",
|
|
180
|
+
"help": "Install Web Design workflows and project documents; no external tool setup"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"presets": {
|
|
184
|
+
"minimal": {
|
|
185
|
+
"mode": null,
|
|
186
|
+
"extras": []
|
|
187
|
+
},
|
|
188
|
+
"solo": {
|
|
189
|
+
"mode": "private",
|
|
190
|
+
"extras": [
|
|
191
|
+
"session-start",
|
|
192
|
+
"native-settings",
|
|
193
|
+
"scoped-rules"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"team": {
|
|
197
|
+
"mode": "team",
|
|
198
|
+
"extras": [
|
|
199
|
+
"session-start",
|
|
200
|
+
"guards",
|
|
201
|
+
"native-settings",
|
|
202
|
+
"scoped-rules"
|
|
203
|
+
]
|
|
204
|
+
},
|
|
205
|
+
"strict": {
|
|
206
|
+
"mode": null,
|
|
207
|
+
"extras": [
|
|
208
|
+
"session-start",
|
|
209
|
+
"guards",
|
|
210
|
+
"data-guards",
|
|
211
|
+
"native-settings",
|
|
212
|
+
"scoped-rules"
|
|
213
|
+
]
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
@@ -25,7 +25,8 @@ REQUIRED = {"VERSION", "LICENSE", "aikit_cli.py", "scripts/install.py", "scripts
|
|
|
25
25
|
"template/ai-kit/settings.json", "docs/PYPI_DESCRIPTION.md", "docs/PYPI.md",
|
|
26
26
|
"docker/pypi-requirements.txt", ".github/workflows/publish-pypi.yml", "tests/build_distribution.py",
|
|
27
27
|
"tests/test_pypi_events.py", "scripts/orchestrate.py", "template/ai-kit/ORCHESTRATION.md",
|
|
28
|
-
"template/ai-kit/orchestration.json", "integrations/codex-agents/aikit_worker.toml",
|
|
28
|
+
"template/ai-kit/orchestration.json", "integrations/codex-agents/aikit_worker.toml",
|
|
29
|
+
"scripts/flags.py", "integrations/installer-flags.json", *LICENSES}
|
|
29
30
|
|
|
30
31
|
|
|
31
32
|
def release_identity(version: str, expected: str, destination: str, ref: str, repository: str) -> dict:
|
aikit/scripts/check_kit.py
CHANGED
|
@@ -22,6 +22,8 @@ UNBOUNDED_DOCUMENTS = frozenset(("README.md", "docs/DOCKER_HUB_OVERVIEW.md"))
|
|
|
22
22
|
LOCAL_MAINTAINER_FILES = frozenset(("AGENTS.md", "PROJECT_CONTEXT.md", "WIKI.md"))
|
|
23
23
|
# Local-only root files: the maintainer files (which have template counterparts) plus a personal Claude entry.
|
|
24
24
|
LOCAL_ONLY_FILES = LOCAL_MAINTAINER_FILES | {"CLAUDE.local.md"}
|
|
25
|
+
FLAG_SCHEMA = "integrations/installer-flags.json"
|
|
26
|
+
FLAG_GUIDE = "docs/guide/INSTALLER_FLAGS.md"
|
|
25
27
|
|
|
26
28
|
|
|
27
29
|
|
|
@@ -204,6 +206,33 @@ def agent_registry_links(root: Path) -> list[str]:
|
|
|
204
206
|
return errors
|
|
205
207
|
|
|
206
208
|
|
|
209
|
+
def installer_flag_errors(root: Path) -> list[str]:
|
|
210
|
+
"""Keep the committed flag schema, the flag guide and SKILL.md in step with the installer parser."""
|
|
211
|
+
errors = []
|
|
212
|
+
schema = install.flag_schema(root)
|
|
213
|
+
committed = root / FLAG_SCHEMA
|
|
214
|
+
if committed.is_file() and json.loads(committed.read_text(encoding="utf-8")) != schema:
|
|
215
|
+
errors.append(f"Stale {FLAG_SCHEMA}: regenerate it with `aikit flags --output {FLAG_SCHEMA}`")
|
|
216
|
+
actual = {option["option"] for option in schema["options"]}
|
|
217
|
+
guide_path = root / FLAG_GUIDE
|
|
218
|
+
if guide_path.is_file():
|
|
219
|
+
guide = guide_path.read_text(encoding="utf-8")
|
|
220
|
+
documented = set(re.findall(r"(?m)^\| `(--[a-z0-9-]+|TARGET)`", guide)) - {"--help"}
|
|
221
|
+
errors.extend(f"Installer flag undocumented in {FLAG_GUIDE}: {name}" for name in sorted(actual - documented))
|
|
222
|
+
errors.extend(f"{FLAG_GUIDE} documents a missing installer flag: {name}" for name in sorted(documented - actual))
|
|
223
|
+
errors.extend(f"Installer flag value undocumented in {FLAG_GUIDE}: {option['option']} {value}"
|
|
224
|
+
for option in schema["options"] for value in option.get("choices", [])
|
|
225
|
+
if f"`{value}`" not in guide)
|
|
226
|
+
skill_path = root / "SKILL.md"
|
|
227
|
+
if skill_path.is_file():
|
|
228
|
+
skill = skill_path.read_text(encoding="utf-8")
|
|
229
|
+
words = [option["option"] for option in schema["options"] if option["option"] != "TARGET"]
|
|
230
|
+
words += [value for option in schema["options"] for value in option.get("choices", [])]
|
|
231
|
+
errors.extend("Installer flag or value missing from SKILL.md: " + word for word in words
|
|
232
|
+
if not re.search(r"(?<![\w-])" + re.escape(word) + r"(?![\w-])", skill))
|
|
233
|
+
return errors
|
|
234
|
+
|
|
235
|
+
|
|
207
236
|
def check(root: Path, *, git: str | None = None) -> tuple[list[str], list[str]]:
|
|
208
237
|
errors, warnings = [], []
|
|
209
238
|
required = ["VERSION", "LICENSE", "CONTRIBUTING.md", "README.md",
|
|
@@ -233,6 +262,7 @@ def check(root: Path, *, git: str | None = None) -> tuple[list[str], list[str]]:
|
|
|
233
262
|
"docker/pypi-requirements.txt", ".github/workflows/publish-pypi.yml",
|
|
234
263
|
"tests/build_distribution.py", "tests/test_pypi_events.py",
|
|
235
264
|
".github/workflows/check-kit.yml", "docs/IMPLEMENTATION.md",
|
|
265
|
+
"scripts/flags.py", FLAG_SCHEMA, FLAG_GUIDE,
|
|
236
266
|
]
|
|
237
267
|
for name in install.OPTIONAL_SKILLS:
|
|
238
268
|
required.extend(["integrations/" + name + ".json", "template/.agents/skills/" + name + "/SKILL.md",
|
|
@@ -407,6 +437,10 @@ def check(root: Path, *, git: str | None = None) -> tuple[list[str], list[str]]:
|
|
|
407
437
|
errors.extend(agent_registry_links(root))
|
|
408
438
|
except (OSError, ValueError, json.JSONDecodeError) as exc:
|
|
409
439
|
errors.append("Invalid agent registry: " + str(exc))
|
|
440
|
+
try:
|
|
441
|
+
errors.extend(installer_flag_errors(root))
|
|
442
|
+
except (OSError, ValueError, KeyError) as exc:
|
|
443
|
+
errors.append("Installer flag schema check failed: " + str(exc))
|
|
410
444
|
for p in (root / "template").rglob("*.md"):
|
|
411
445
|
if p in vendored_files:
|
|
412
446
|
# Upstream examples are immutable external data, not active routing selections.
|
aikit/scripts/flags.py
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"""Print the machine-readable `aikit install` option schema for documentation and configurators."""
|
|
2
|
+
from __future__ import annotations
|
|
3
|
+
|
|
4
|
+
import argparse
|
|
5
|
+
import json
|
|
6
|
+
from pathlib import Path
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
sys.path.insert(0, str(Path(__file__).resolve().parent))
|
|
10
|
+
import install
|
|
11
|
+
|
|
12
|
+
SCHEMA_PATH = "integrations/installer-flags.json"
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
def render(schema: dict) -> str:
|
|
16
|
+
return json.dumps(schema, indent=2, ensure_ascii=False) + "\n"
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def main(argv: list[str] | None = None) -> int:
|
|
20
|
+
parser = argparse.ArgumentParser(description=__doc__)
|
|
21
|
+
parser.add_argument("--output", type=Path,
|
|
22
|
+
help="Write the schema to this file with LF line endings instead of printing it")
|
|
23
|
+
args = parser.parse_args(argv)
|
|
24
|
+
text = render(install.flag_schema())
|
|
25
|
+
if args.output is None:
|
|
26
|
+
sys.stdout.write(text)
|
|
27
|
+
return 0
|
|
28
|
+
if install.is_link(args.output):
|
|
29
|
+
print(f"Refusing a linked output path: {args.output}", file=sys.stderr)
|
|
30
|
+
return 1
|
|
31
|
+
install.atomic_write(args.output, text.encode("utf-8"))
|
|
32
|
+
return 0
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
raise SystemExit(main())
|
aikit/scripts/install.py
CHANGED
|
@@ -66,6 +66,10 @@ PRESETS = {
|
|
|
66
66
|
"team": {"mode": "team", "extras": ("session-start", "guards", "native-settings", "scoped-rules")},
|
|
67
67
|
"strict": {"mode": None, "extras": PRESET_EXTRAS},
|
|
68
68
|
}
|
|
69
|
+
DEFAULT_AGENTS = ("codex",)
|
|
70
|
+
# Installer options that persist a choice: argparse destination -> ai-kit/settings.json key.
|
|
71
|
+
OPTION_SETTINGS = {"mode": "sharing_mode", "chat_language": "chat_language", "conventions": "conventions",
|
|
72
|
+
"docker_cleanup": "docker_cleanup"}
|
|
69
73
|
CLAUDE_SETTINGS = ".claude/settings.json"
|
|
70
74
|
CLAUDE_LOCAL_SETTINGS = ".claude/settings.local.json"
|
|
71
75
|
GUARDS_SOURCE = "claude-settings.git-ask.json"
|
|
@@ -1128,7 +1132,7 @@ def build_plan(target: Path, *, root: Path = ROOT, mode: str | None = None,
|
|
|
1128
1132
|
language = language or settings.get("chat_language", "Russian")
|
|
1129
1133
|
conventions = conventions or settings.get("conventions", "owner")
|
|
1130
1134
|
explicit_agents = agents is not None
|
|
1131
|
-
agents = agent_selection(agents if agents is not None else state.get("agents",
|
|
1135
|
+
agents = agent_selection(agents if agents is not None else state.get("agents", list(DEFAULT_AGENTS)),
|
|
1132
1136
|
registry["names"])
|
|
1133
1137
|
detected_agents = detect_agents(target, registry)
|
|
1134
1138
|
suggested_agents = sorted(set(agents) | set(detected_agents))
|
|
@@ -1540,7 +1544,7 @@ def interactive_selections(read=input, *, agents_available: set[str], facts: dic
|
|
|
1540
1544
|
detected_agents = detected_agents or {}
|
|
1541
1545
|
for agent, evidence in sorted(detected_agents.items()):
|
|
1542
1546
|
print(f" Detected client: {agent} ({', '.join(evidence)})")
|
|
1543
|
-
default_agents = sorted(
|
|
1547
|
+
default_agents = sorted(set(DEFAULT_AGENTS) | set(detected_agents))
|
|
1544
1548
|
preset = read(f"Preset [{'/'.join(PRESETS)}] (none): ").strip().lower() or None
|
|
1545
1549
|
spec = PRESETS.get(preset or "", {"mode": None, "extras": ()})
|
|
1546
1550
|
default_mode = spec["mode"] or "private"
|
|
@@ -1565,19 +1569,23 @@ def interactive_selections(read=input, *, agents_available: set[str], facts: dic
|
|
|
1565
1569
|
"agents": agents, "extras": extras}
|
|
1566
1570
|
|
|
1567
1571
|
|
|
1568
|
-
def
|
|
1572
|
+
def build_parser(root: Path = ROOT) -> argparse.ArgumentParser:
|
|
1569
1573
|
parser = argparse.ArgumentParser(description=__doc__)
|
|
1570
|
-
parser.add_argument("target", type=Path)
|
|
1574
|
+
parser.add_argument("target", type=Path, help="Application directory to set up or update")
|
|
1571
1575
|
group = parser.add_mutually_exclusive_group()
|
|
1572
|
-
group.add_argument("--apply", action="store_true")
|
|
1573
|
-
group.add_argument("--dry-run", action="store_true")
|
|
1574
|
-
parser.add_argument("--mode", choices=["private", "team"]
|
|
1575
|
-
|
|
1576
|
-
parser.add_argument("--
|
|
1576
|
+
group.add_argument("--apply", action="store_true", help="Write the previewed plan; without it nothing is written")
|
|
1577
|
+
group.add_argument("--dry-run", action="store_true", help="Explicitly request the read-only preview (the default)")
|
|
1578
|
+
parser.add_argument("--mode", choices=["private", "team"],
|
|
1579
|
+
help="Git visibility of AI-KIT files: private keeps them local, team shares instructions")
|
|
1580
|
+
parser.add_argument("--chat-language",
|
|
1581
|
+
help="Language for chat replies and plans; project files stay English")
|
|
1582
|
+
parser.add_argument("--conventions", choices=["owner", "standard"],
|
|
1583
|
+
help="Stack preferences: owner applies the owner's conventions, standard follows the project")
|
|
1577
1584
|
parser.add_argument("--docker-cleanup", choices=list(DOCKER_CLEANUP_MODES),
|
|
1578
1585
|
help="Post-Docker cleanup: maximum (default) removes every eligible disposable resource "
|
|
1579
1586
|
"and reclaims host resources; keep-cache keeps the dedicated project builder cache")
|
|
1580
|
-
parser.add_argument("--agent", choices=sorted(load_agent_registry()["names"]), action="append"
|
|
1587
|
+
parser.add_argument("--agent", choices=sorted(load_agent_registry(root)["names"]), action="append",
|
|
1588
|
+
help="AI client adapter to install; repeat for several clients")
|
|
1581
1589
|
parser.add_argument("--interactive", action="store_true",
|
|
1582
1590
|
help="Prompt for sharing mode, language, conventions, agents, and extras")
|
|
1583
1591
|
parser.add_argument("--check", action="store_true",
|
|
@@ -1608,7 +1616,53 @@ def main(argv: list[str] | None = None) -> int:
|
|
|
1608
1616
|
help="Install optional Codex helpers and disabled OpenRouter configuration; no calls")
|
|
1609
1617
|
parser.add_argument("--with-web-design", action="store_true",
|
|
1610
1618
|
help="Install Web Design workflows and project documents; no external tool setup")
|
|
1611
|
-
|
|
1619
|
+
return parser
|
|
1620
|
+
|
|
1621
|
+
|
|
1622
|
+
def flag_schema(root: Path = ROOT) -> dict:
|
|
1623
|
+
"""Describe installer options for documentation and configurators; check_kit compares the committed copy."""
|
|
1624
|
+
parser = build_parser(root)
|
|
1625
|
+
settings = json.loads((root / "template/ai-kit/settings.json").read_text(encoding="utf-8"))
|
|
1626
|
+
excludes: dict[str, list[str]] = {}
|
|
1627
|
+
for group in parser._mutually_exclusive_groups:
|
|
1628
|
+
names = [action.option_strings[-1] for action in group._group_actions]
|
|
1629
|
+
for name in names:
|
|
1630
|
+
excludes[name] = [other for other in names if other != name]
|
|
1631
|
+
extra_keys = {"--with-" + name: key for name, key in EXTRA_SETTINGS_KEYS.items()}
|
|
1632
|
+
options = []
|
|
1633
|
+
for action in parser._actions:
|
|
1634
|
+
if isinstance(action, argparse._HelpAction):
|
|
1635
|
+
continue
|
|
1636
|
+
name = action.option_strings[-1] if action.option_strings else action.dest.upper()
|
|
1637
|
+
entry: dict = {"option": name}
|
|
1638
|
+
if action.nargs == 0:
|
|
1639
|
+
entry["value"] = "switch"
|
|
1640
|
+
elif action.choices:
|
|
1641
|
+
entry["value"], entry["choices"] = "choice", list(action.choices)
|
|
1642
|
+
else:
|
|
1643
|
+
entry["value"] = "path" if action.type is Path else "text"
|
|
1644
|
+
if not action.option_strings:
|
|
1645
|
+
entry["required"] = True
|
|
1646
|
+
if isinstance(action, argparse._AppendAction):
|
|
1647
|
+
entry["repeatable"] = True
|
|
1648
|
+
if name in excludes:
|
|
1649
|
+
entry["excludes"] = excludes[name]
|
|
1650
|
+
setting = OPTION_SETTINGS.get(action.dest) or extra_keys.get(name)
|
|
1651
|
+
if setting:
|
|
1652
|
+
entry["setting"] = setting
|
|
1653
|
+
if setting in settings:
|
|
1654
|
+
entry["fresh_default"] = settings[setting]
|
|
1655
|
+
elif action.dest == "agent":
|
|
1656
|
+
entry["fresh_default"] = list(DEFAULT_AGENTS)
|
|
1657
|
+
if action.help:
|
|
1658
|
+
entry["help"] = action.help
|
|
1659
|
+
options.append(entry)
|
|
1660
|
+
presets = {name: {"mode": spec["mode"], "extras": list(spec["extras"])} for name, spec in PRESETS.items()}
|
|
1661
|
+
return {"schema": 1, "command": "aikit install", "options": options, "presets": presets}
|
|
1662
|
+
|
|
1663
|
+
|
|
1664
|
+
def main(argv: list[str] | None = None) -> int:
|
|
1665
|
+
args = build_parser().parse_args(argv)
|
|
1612
1666
|
extras = [name for name, flag in (("session-start", args.with_session_start),
|
|
1613
1667
|
("guards", args.with_guards),
|
|
1614
1668
|
("ci", args.with_ci),
|
|
@@ -28,7 +28,7 @@ Normal work uses checks/self-review; critical correctness needs independent revi
|
|
|
28
28
|
## Providers
|
|
29
29
|
|
|
30
30
|
Active role defaults: [openai.json](providers/openai.json), [anthropic.json](providers/anthropic.json), [kimi.json](providers/kimi.json), and [gemini.json](providers/gemini.json), interpreted by their provider references.
|
|
31
|
-
[local.json](providers/local.json) maps the same roles to self-hosted models declared in [selection.json](selection.json). Gemini's reviewed model mapping
|
|
31
|
+
[local.json](providers/local.json) maps the same roles to self-hosted models declared in [selection.json](selection.json). Gemini's reviewed model mapping and per-model thinking levels are active; [gemini.md](providers/gemini.md) explains the `thinking_level` mapping and fallbacks.
|
|
32
32
|
Registry/configuration plus current primary docs establish capabilities; model names alone do not.
|
|
33
33
|
Unavailable switching means a recommendation, not a claim of execution. Respect explicit model, cost, and latency choices.
|
|
34
34
|
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tier": "cloud",
|
|
3
|
-
"verified_documentation_date": "2026-10-
|
|
3
|
+
"verified_documentation_date": "2026-10-30",
|
|
4
4
|
"reasoning_mode": "thinking",
|
|
5
5
|
"roles": {
|
|
6
|
-
"cheap": {"model": "gemini-3.5-flash-lite"},
|
|
7
|
-
"work": {"model": "gemini-3.8-flash"},
|
|
8
|
-
"escalation": {"model": "gemini-3.1-pro-preview"}
|
|
6
|
+
"cheap": {"model": "gemini-3.5-flash-lite", "effort": "minimal"},
|
|
7
|
+
"work": {"model": "gemini-3.8-flash", "effort": "medium"},
|
|
8
|
+
"escalation": {"model": "gemini-3.1-pro-preview", "effort": "high"}
|
|
9
|
+
},
|
|
10
|
+
"supported_efforts": {
|
|
11
|
+
"cheap": ["minimal", "low", "medium", "high"],
|
|
12
|
+
"work": ["low", "medium", "high"],
|
|
13
|
+
"escalation": ["low", "medium", "high"]
|
|
9
14
|
},
|
|
10
15
|
"sources": [
|
|
11
|
-
"https://ai.google.dev/gemini-api/docs/models"
|
|
16
|
+
"https://ai.google.dev/gemini-api/docs/models",
|
|
17
|
+
"https://ai.google.dev/gemini-api/docs/thinking"
|
|
12
18
|
]
|
|
13
19
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
# Gemini provider controls
|
|
2
2
|
|
|
3
|
-
Load only with a routing/runtime task. [gemini.json](gemini.json) owns the active role-to-model mapping; model IDs were read from the current [Gemini API models](https://ai.google.dev/gemini-api/docs/models) documentation on 2026-10-
|
|
3
|
+
Load only with a routing/runtime task. [gemini.json](gemini.json) owns the active role-to-model mapping and thinking levels; model IDs and levels were read from the current [Gemini API models](https://ai.google.dev/gemini-api/docs/models) and [thinking](https://ai.google.dev/gemini-api/docs/thinking) documentation on 2026-10-30.
|
|
4
4
|
|
|
5
5
|
- Roles follow the current lineup: the Flash-Lite class owns the cheap role for high-throughput classification and extraction, the Flash class owns the work role for agentic coding and software engineering, and the Pro class (preview) owns escalation.
|
|
6
|
-
- Reasoning runs through Gemini's
|
|
6
|
+
- Reasoning runs through Gemini's `thinking_level` (in the Interactions API `generation_config`), not OpenAI effort levels. Supported levels differ per model, so the provider record declares them per role: the cheap model accepts minimal, low, medium and high; the work and escalation models accept low, medium and high. Each role's default equals its model's documented default (minimal, medium, high).
|
|
7
|
+
- A routed effort outside the model's list (none, xhigh, max) falls back to the role default; for work beyond high, escalate the role instead of forwarding an unsupported level. Other request schemas such as generateContent name the control differently; confirm the field in that API's reference before translating a level.
|
|
7
8
|
- The Pro class is a preview model: confirm its rate limits and availability in your region/plan before relying on it for escalation.
|
|
8
9
|
- OpenAI and Anthropic request fields are not portable; pass Gemini controls through the provider's own request schema and report unsupported controls instead of forwarding them.
|
|
9
10
|
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"""Keep the installer flag schema, its guide and SKILL.md in step with the argparse definition."""
|
|
2
|
+
from contextlib import redirect_stdout
|
|
3
|
+
import io
|
|
4
|
+
import json
|
|
5
|
+
from pathlib import Path
|
|
6
|
+
import shutil
|
|
7
|
+
import sys
|
|
8
|
+
import tempfile
|
|
9
|
+
import unittest
|
|
10
|
+
|
|
11
|
+
ROOT = Path(__file__).resolve().parents[1]
|
|
12
|
+
sys.path.insert(0, str(ROOT / "scripts"))
|
|
13
|
+
import check_kit
|
|
14
|
+
import flags
|
|
15
|
+
import install
|
|
16
|
+
|
|
17
|
+
# The minimal tree that installer_flag_errors reads.
|
|
18
|
+
FILES = ("integrations/agents.json", "template/ai-kit/settings.json", check_kit.FLAG_SCHEMA,
|
|
19
|
+
check_kit.FLAG_GUIDE, "SKILL.md")
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
class FlagSchemaTests(unittest.TestCase):
|
|
23
|
+
def setUp(self):
|
|
24
|
+
temp = tempfile.TemporaryDirectory(prefix="ai-kit-flags-")
|
|
25
|
+
self.addCleanup(temp.cleanup)
|
|
26
|
+
self.root = Path(temp.name)
|
|
27
|
+
for relative in FILES:
|
|
28
|
+
(self.root / relative).parent.mkdir(parents=True, exist_ok=True)
|
|
29
|
+
shutil.copyfile(ROOT / relative, self.root / relative)
|
|
30
|
+
|
|
31
|
+
def edit(self, relative: str, old: str, new: str, count: int = 1) -> None:
|
|
32
|
+
path = self.root / relative
|
|
33
|
+
text = path.read_text(encoding="utf-8")
|
|
34
|
+
self.assertIn(old, text)
|
|
35
|
+
path.write_text(text.replace(old, new) if count < 0 else text.replace(old, new, count),
|
|
36
|
+
encoding="utf-8", newline="\n")
|
|
37
|
+
|
|
38
|
+
def errors(self) -> list[str]:
|
|
39
|
+
return check_kit.installer_flag_errors(self.root)
|
|
40
|
+
|
|
41
|
+
def test_committed_schema_matches_parser_and_documentation(self):
|
|
42
|
+
self.assertEqual(self.errors(), [])
|
|
43
|
+
committed = json.loads((ROOT / check_kit.FLAG_SCHEMA).read_text(encoding="utf-8"))
|
|
44
|
+
self.assertEqual(committed, install.flag_schema())
|
|
45
|
+
|
|
46
|
+
def test_schema_describes_values_defaults_and_presets(self):
|
|
47
|
+
options = {entry["option"]: entry for entry in install.flag_schema()["options"]}
|
|
48
|
+
self.assertEqual(options["TARGET"], {"option": "TARGET", "value": "path", "required": True,
|
|
49
|
+
"help": "Application directory to set up or update"})
|
|
50
|
+
self.assertEqual(options["--apply"]["excludes"], ["--dry-run"])
|
|
51
|
+
self.assertEqual(options["--mode"]["setting"], "sharing_mode")
|
|
52
|
+
self.assertEqual(options["--mode"]["fresh_default"], "private")
|
|
53
|
+
self.assertEqual(options["--docker-cleanup"]["choices"], list(install.DOCKER_CLEANUP_MODES))
|
|
54
|
+
self.assertTrue(options["--agent"]["repeatable"])
|
|
55
|
+
self.assertEqual(options["--agent"]["fresh_default"], list(install.DEFAULT_AGENTS))
|
|
56
|
+
self.assertTrue(options["--accept-local"]["repeatable"])
|
|
57
|
+
self.assertEqual(options["--with-web-design"]["setting"], "web_design")
|
|
58
|
+
self.assertNotIn("--help", options)
|
|
59
|
+
self.assertTrue(all(entry.get("help") for entry in options.values()))
|
|
60
|
+
presets = install.flag_schema()["presets"]
|
|
61
|
+
self.assertEqual(presets["solo"], {"mode": "private", "extras": list(install.PRESETS["solo"]["extras"])})
|
|
62
|
+
|
|
63
|
+
def test_stale_committed_schema_is_reported(self):
|
|
64
|
+
self.edit(check_kit.FLAG_SCHEMA, '"keep-cache"', '"keep-everything"')
|
|
65
|
+
self.assertTrue(any(error.startswith("Stale " + check_kit.FLAG_SCHEMA) for error in self.errors()))
|
|
66
|
+
|
|
67
|
+
def test_undocumented_flag_is_reported(self):
|
|
68
|
+
self.edit(check_kit.FLAG_GUIDE, "| `--docker-cleanup` |", "| Docker cleanup |")
|
|
69
|
+
self.assertIn("Installer flag undocumented in " + check_kit.FLAG_GUIDE + ": --docker-cleanup", self.errors())
|
|
70
|
+
|
|
71
|
+
def test_documented_flag_without_parser_option_is_reported(self):
|
|
72
|
+
self.edit(check_kit.FLAG_GUIDE, "| `--check` |", "| `--with-nothing` | Switch | Retired. | None. |\n| `--check` |")
|
|
73
|
+
self.assertIn(check_kit.FLAG_GUIDE + " documents a missing installer flag: --with-nothing", self.errors())
|
|
74
|
+
|
|
75
|
+
def test_undocumented_choice_value_is_reported(self):
|
|
76
|
+
self.edit(check_kit.FLAG_GUIDE, "`keep-cache`", "keep cache", count=-1)
|
|
77
|
+
self.assertIn("Installer flag value undocumented in " + check_kit.FLAG_GUIDE + ": --docker-cleanup keep-cache",
|
|
78
|
+
self.errors())
|
|
79
|
+
|
|
80
|
+
def test_skill_must_mention_every_flag_and_value(self):
|
|
81
|
+
self.edit("SKILL.md", "--with-context7", "--with-docs", count=-1)
|
|
82
|
+
self.assertIn("Installer flag or value missing from SKILL.md: --with-context7", self.errors())
|
|
83
|
+
|
|
84
|
+
def test_cli_prints_and_writes_the_same_schema(self):
|
|
85
|
+
output = io.StringIO()
|
|
86
|
+
with redirect_stdout(output):
|
|
87
|
+
self.assertEqual(flags.main([]), 0)
|
|
88
|
+
self.assertEqual(json.loads(output.getvalue()), install.flag_schema())
|
|
89
|
+
target = self.root / "out" / "flags.json"
|
|
90
|
+
self.assertEqual(flags.main(["--output", str(target)]), 0)
|
|
91
|
+
data = target.read_bytes()
|
|
92
|
+
self.assertNotIn(b"\r", data)
|
|
93
|
+
self.assertEqual(json.loads(data), install.flag_schema())
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
if __name__ == "__main__":
|
|
97
|
+
unittest.main()
|
aikit/tests/test_router.py
CHANGED
|
@@ -113,7 +113,7 @@ class RouteTests(unittest.TestCase):
|
|
|
113
113
|
self.assertEqual(fallback["recommended_effort"], "none")
|
|
114
114
|
self.assertEqual(fallback["effort"], "low")
|
|
115
115
|
self.assertTrue(fallback["adjustments"])
|
|
116
|
-
for provider_id in ("kimi", "local", None
|
|
116
|
+
for provider_id in ("kimi", "local", None):
|
|
117
117
|
result = router.route_result("implement feature", selection(default_provider=provider_id,
|
|
118
118
|
local_models={"work": "user-model"}), providers())
|
|
119
119
|
self.assertIsNone(result["effort"])
|
|
@@ -155,7 +155,24 @@ class RouteTests(unittest.TestCase):
|
|
|
155
155
|
providers())
|
|
156
156
|
self.assertEqual(result["provider"], "gemini")
|
|
157
157
|
self.assertEqual(result["model"], "gemini-3.8-flash")
|
|
158
|
-
self.
|
|
158
|
+
self.assertEqual(result["effort"], "medium")
|
|
159
|
+
self.assertEqual(result["reasoning_mode"], "thinking")
|
|
160
|
+
|
|
161
|
+
def test_gemini_thinking_levels_follow_each_model(self):
|
|
162
|
+
gemini = selection(default_provider="gemini")
|
|
163
|
+
cases = {0: ("gemini-3.5-flash-lite", "minimal", True), 1: ("gemini-3.5-flash-lite", "low", False),
|
|
164
|
+
3: ("gemini-3.8-flash", "high", False), 4: ("gemini-3.8-flash", "medium", True),
|
|
165
|
+
6: ("gemini-3.1-pro-preview", "high", False)}
|
|
166
|
+
for level, (model, effort, adjusted) in cases.items():
|
|
167
|
+
with self.subTest(level=level):
|
|
168
|
+
result = router.route_result("task", gemini, providers(), level=level)
|
|
169
|
+
self.assertEqual((result["model"], result["effort"]), (model, effort))
|
|
170
|
+
self.assertEqual(bool(result["adjustments"]), adjusted)
|
|
171
|
+
explicit = router.route_result("extract", gemini, providers(), role="cheap", effort="minimal")
|
|
172
|
+
self.assertEqual(explicit["effort"], "minimal")
|
|
173
|
+
# minimal belongs to the Flash-Lite model only; the work model rejects it.
|
|
174
|
+
with self.assertRaises(ValueError):
|
|
175
|
+
router.route_result("feature", gemini, providers(), role="work", effort="minimal")
|
|
159
176
|
|
|
160
177
|
def test_route_resolves_local_model(self):
|
|
161
178
|
selection_data = selection(roles={"work": "local"},
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|