@thinkingai/ae-cli 6.0.58 → 6.0.61

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 (281) hide show
  1. package/README.md +14 -6
  2. package/README.zh.md +16 -6
  3. package/bin/ai-monitor.js +2 -0
  4. package/bin/runtime-capabilities.json +1 -1
  5. package/dist/ai-monitor-NUKSJPLE.js +33 -0
  6. package/dist/ai-monitor.js +136 -0
  7. package/dist/{auth-A5OO4VS4.js → auth-MVAEBGBP.js} +24 -15
  8. package/dist/{automation-FD2QZUP6.js → automation-6L6IAYRK.js} +6 -7
  9. package/dist/{capability-SKI4GHF4.js → capability-74N7AN5X.js} +35 -38
  10. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  11. package/dist/{chunk-QWSA3EOD.js → chunk-7WBCSJL6.js} +23 -9
  12. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  13. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  14. package/dist/chunk-BQFLABJQ.js +186 -0
  15. package/dist/{chunk-E25OSZLJ.js → chunk-COOMXFUG.js} +3 -3
  16. package/dist/chunk-EFGUBGA6.js +64 -0
  17. package/dist/{chunk-HQCY3QCA.js → chunk-H35VDOAE.js} +18 -13
  18. package/dist/{chunk-VDICGXCY.js → chunk-HIMOBNEY.js} +2 -2
  19. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  20. package/dist/chunk-HRFYYEXR.js +1285 -0
  21. package/dist/{chunk-UYJMEHAF.js → chunk-JZY6WWAP.js} +22 -21
  22. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  23. package/dist/{chunk-YVG6QD3V.js → chunk-LFJ7N36I.js} +103 -8
  24. package/dist/{chunk-EEARZNHE.js → chunk-LPKIMGIU.js} +89 -37
  25. package/dist/chunk-NNK3JBH4.js +60 -0
  26. package/dist/{chunk-WMDO53YK.js → chunk-OTZ4JQDU.js} +2 -2
  27. package/dist/{chunk-SOSFRU3O.js → chunk-PLNS5J33.js} +58 -26
  28. package/dist/chunk-PUSFEC6B.js +29 -0
  29. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  30. package/dist/{chunk-K2Z7QHDR.js → chunk-RB26WNLM.js} +52 -15
  31. package/dist/chunk-SVNED423.js +556 -0
  32. package/dist/{chunk-AWVZTN2B.js → chunk-THTROEGD.js} +1 -1
  33. package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
  34. package/dist/{chunk-JSBLCLFE.js → chunk-VLOGOM7N.js} +13 -7
  35. package/dist/{chunk-GBSACKFB.js → chunk-XPARQSYS.js} +528 -299
  36. package/dist/{chunk-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
  37. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  38. package/dist/{compat-check-WFEKVLTH.js → compat-check-W4XC27RG.js} +5 -4
  39. package/dist/{config-U4I7X25P.js → config-264GB6C7.js} +28 -14
  40. package/dist/{context-CDB5H5PD.js → context-SOQDFZIB.js} +8 -6
  41. package/dist/{data-integration-QE37EQ3A.js → data-integration-UNJ7EPW2.js} +6 -6
  42. package/dist/{evaluation-LR4YDYWL.js → evaluation-Q3AIGFOG.js} +14 -159
  43. package/dist/index.js +98 -589
  44. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  45. package/dist/{memory-SNFR5M23.js → memory-ZLTTULZK.js} +9 -10
  46. package/dist/{metadata-6QM6EED5.js → metadata-EN2IWCDI.js} +11 -10
  47. package/dist/{model-KEVCEXWD.js → model-NAKQWK4W.js} +4 -5
  48. package/dist/{personal-semantic-preference-7VXQPP2N.js → personal-semantic-preference-UGN67KTN.js} +46 -15
  49. package/dist/{project-semantic-PSEPYH2L.js → project-semantic-5OP3YPZD.js} +19 -16
  50. package/dist/{sync-22ACDK5Z.js → sync-LDJQZRQH.js} +9 -9
  51. package/dist/{te-agent-BJ36B4QI.js → te-agent-WNNAD4AJ.js} +303 -17
  52. package/dist/{te-analysis-WQ6D6YG4.js → te-analysis-KIMH6AGU.js} +399 -205
  53. package/dist/{te-community-VRWMFGI6.js → te-community-P7NNBVCS.js} +17 -15
  54. package/dist/{te-dataops-YTLFTTW7.js → te-dataops-ZRKSG4R7.js} +13 -11
  55. package/dist/{te-engage-V2QW7TIC.js → te-engage-PVBVNRSU.js} +13 -12
  56. package/dist/{te-kb-4AQLISDR.js → te-kb-W7PRC7QN.js} +80 -20
  57. package/dist/{te-system-CYWSK3UN.js → te-system-F4ZU2HRQ.js} +6 -7
  58. package/dist/{te-team-6ELNGBWT.js → te-team-5ONMRGKF.js} +9 -8
  59. package/dist/{things-HFWLGCUH.js → things-PFENSIF4.js} +9 -8
  60. package/dist/{update-3CRVVHV5.js → update-EUZ4GNND.js} +8 -6
  61. package/dist/{workspace-2CKQX2XL.js → workspace-Z7L33OBQ.js} +6 -7
  62. package/package.json +12 -7
  63. package/skills/ae-agent/SKILL.md +19 -5
  64. package/skills/ae-agent/references/a2a.md +103 -0
  65. package/skills/ae-agent/references/command_index.md +11 -0
  66. package/skills/ae-ai-monitor/SKILL.md +179 -0
  67. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  68. package/skills/ae-analysis/SKILL.md +43 -25
  69. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  70. package/skills/ae-analysis/references/ai_models.md +1 -0
  71. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  72. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  73. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  74. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  75. package/skills/ae-analysis/references/asset_search.md +1 -1
  76. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  77. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  78. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  79. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  80. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  81. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  82. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  83. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  84. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  85. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  86. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  87. package/skills/ae-analysis/references/catalog_list.md +2 -0
  88. package/skills/ae-analysis/references/command_index.md +44 -35
  89. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  90. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  91. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  92. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  93. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  94. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  95. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  96. package/skills/ae-analysis/references/folder_share.md +8 -2
  97. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  98. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  99. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  100. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  101. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  102. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  103. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  104. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  105. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  106. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  107. package/skills/ae-analysis/references/project_member_add.md +3 -1
  108. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  109. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  110. package/skills/ae-analysis/references/project_member_update.md +3 -1
  111. package/skills/ae-analysis/references/project_owner_update.md +8 -2
  112. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  113. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  114. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  115. package/skills/ae-analysis/references/project_space_share.md +8 -2
  116. package/skills/ae-analysis/references/property_get.md +2 -0
  117. package/skills/ae-analysis/references/public_link_list.md +3 -1
  118. package/skills/ae-analysis/references/query_cancel.md +4 -1
  119. package/skills/ae-analysis/references/report_data_run.md +1 -1
  120. package/skills/ae-analysis/references/report_list.md +3 -3
  121. package/skills/ae-analysis/references/scenario_append.md +2 -2
  122. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  123. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  124. package/skills/ae-analysis/references/scenario_list.md +7 -7
  125. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  126. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  127. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  128. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  129. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  130. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  131. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  132. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  133. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  134. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  135. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  136. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  137. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  138. package/skills/ae-automation/SKILL.md +4 -2
  139. package/skills/ae-capability/SKILL.md +16 -8
  140. package/skills/ae-community/SKILL.md +1 -0
  141. package/skills/ae-dataops/SKILL.md +1 -0
  142. package/skills/ae-engage/SKILL.md +1 -0
  143. package/skills/ae-evaluation/SKILL.md +17 -2
  144. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  145. package/skills/ae-kb/SKILL.md +8 -4
  146. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  147. package/skills/ae-kb/references/publication.md +45 -0
  148. package/skills/ae-kb/references/query-workflow.md +3 -1
  149. package/skills/ae-kb/references/versions.md +1 -1
  150. package/skills/ae-metadata/SKILL.md +1 -0
  151. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  152. package/skills/ae-team/SKILL.md +1 -1
  153. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  154. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  155. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  156. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  157. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  158. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  159. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  160. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  161. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  162. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  163. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  164. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  165. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  166. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  167. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  168. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  169. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  170. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  171. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  172. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  173. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  174. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  175. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  176. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  177. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  178. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  179. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  180. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  181. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  182. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  183. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  184. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  185. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  186. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  187. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  188. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  189. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  190. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  191. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  192. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  193. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  194. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  195. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  196. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  197. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  198. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  199. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  200. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  201. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  202. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  203. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  204. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  205. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  206. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  207. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  208. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  209. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  210. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  211. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  212. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  213. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  214. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  215. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  216. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  217. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  218. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  219. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  220. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  221. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  222. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  223. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  224. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  225. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  226. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  227. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  228. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  229. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  230. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  231. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  232. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  233. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  234. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  235. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  236. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  237. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  238. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  239. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  240. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  241. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  242. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  243. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  244. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  245. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  246. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  247. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  248. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  249. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  250. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  251. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  252. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  253. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  254. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  255. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  256. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  257. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  258. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  259. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  260. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  261. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  262. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  263. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  264. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  265. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  266. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  267. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  268. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  269. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  270. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  271. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  272. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  273. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  274. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  275. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  276. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  277. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  278. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  279. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  280. package/dist/chunk-AMBFK2K3.js +0 -28
  281. package/dist/chunk-Y74WTIKJ.js +0 -10
@@ -0,0 +1,79 @@
1
+ #!/usr/bin/env node
2
+ import { setTimeout as delay } from 'node:timers/promises';
3
+ import { parseArgs } from 'node:util';
4
+ import { realpathSync } from 'node:fs';
5
+ import { fileURLToPath } from 'node:url';
6
+ import { invokeCompanyKbCli, runCompanyKb } from './company-kb.mjs';
7
+
8
+ function failure(code, message) {
9
+ return Object.assign(new Error(message), { code });
10
+ }
11
+
12
+ // Run lifecycle only: successful compilation still requires publication and content readback.
13
+ export async function waitForCompileRun(
14
+ { name, runId, host, timeoutMs = 1_800_000, pollIntervalMs = 5_000 },
15
+ invoke = invokeCompanyKbCli,
16
+ { now = () => performance.now(), sleep = delay } = {},
17
+ ) {
18
+ if (![name, runId, host].every(value => typeof value === 'string' && value.trim())) {
19
+ throw new Error('--name, --run-id and --host are required.');
20
+ }
21
+ if (![timeoutMs, pollIntervalMs].every(value => Number.isSafeInteger(value) && value > 0)) {
22
+ throw new Error('--timeout-ms and --poll-interval-ms must be positive integers.');
23
+ }
24
+ const deadline = now() + timeoutMs;
25
+ let knowledgeBaseId;
26
+ for (;;) {
27
+ const remaining = Math.floor(deadline - now());
28
+ if (remaining <= 0) throw failure('KB_COMPILE_WAIT_TIMEOUT', `Timed out waiting for compile run ${runId}.`);
29
+ const result = await runCompanyKb('+status', ['--name', name, '--run-id', runId, '--host', host],
30
+ flags => invoke(flags, { timeoutMs: Math.min(30_000, remaining) }));
31
+ const { knowledgeBase, compileRun } = result.data ?? {};
32
+ if (!compileRun || compileRun.id !== runId || knowledgeBase?.scope !== 'company' || !knowledgeBase.id
33
+ || (knowledgeBaseId && knowledgeBase.id !== knowledgeBaseId)) {
34
+ throw failure('KB_COMPILE_RUN_STATUS_UNSUPPORTED', 'Missing or mismatched compileRun identity; exact-run status support is required.');
35
+ }
36
+ knowledgeBaseId = knowledgeBase.id;
37
+ if (result.data.publicationReview) {
38
+ throw failure(result.data.publicationReview.code || 'KB_PUBLICATION_REVIEW_REQUIRED',
39
+ `Compile run ${runId} requires administrator review; stop polling without cancelling or restarting the run.`);
40
+ }
41
+ if (compileRun.status === 'succeeded') return result;
42
+ if (['failed', 'cancelled'].includes(compileRun.status)) {
43
+ throw failure(`KB_COMPILE_${compileRun.status.toUpperCase()}`,
44
+ `Compile run ${runId} ${compileRun.status}: ${compileRun.errorMessage || 'No error details returned.'}`);
45
+ }
46
+ if (!['queued', 'running'].includes(compileRun.status)) {
47
+ throw failure('KB_COMPILE_RUN_STATUS_UNSUPPORTED', `Unexpected compile run status: ${compileRun.status}`);
48
+ }
49
+ const wait = Math.min(pollIntervalMs, deadline - now());
50
+ if (wait > 0) await sleep(wait);
51
+ }
52
+ }
53
+
54
+ // Installed Skills may be reached through a symlink; compare their resolved entry files.
55
+ function isCliEntry() {
56
+ try {
57
+ return process.argv[1] && realpathSync(process.argv[1]) === realpathSync(fileURLToPath(import.meta.url));
58
+ } catch {
59
+ // stdin/eval launchers need not provide a real entry file when importing this module.
60
+ return false;
61
+ }
62
+ }
63
+ if (isCliEntry()) {
64
+ try {
65
+ const { values } = parseArgs({ options: {
66
+ name: { type: 'string' }, 'run-id': { type: 'string' }, host: { type: 'string' },
67
+ 'timeout-ms': { type: 'string' }, 'poll-interval-ms': { type: 'string' },
68
+ } });
69
+ const result = await waitForCompileRun({
70
+ name: values.name, runId: values['run-id'], host: values.host,
71
+ ...(values['timeout-ms'] === undefined ? {} : { timeoutMs: Number(values['timeout-ms']) }),
72
+ ...(values['poll-interval-ms'] === undefined ? {} : { pollIntervalMs: Number(values['poll-interval-ms']) }),
73
+ });
74
+ console.log(JSON.stringify(result, null, 2));
75
+ } catch (error) {
76
+ console.error(JSON.stringify({ ok: false, error: { code: error.code ?? 'KB_COMPILE_WAIT_FAILED', message: error.message } }, null, 2));
77
+ process.exitCode = 1;
78
+ }
79
+ }
@@ -1,16 +1,18 @@
1
1
  ---
2
2
  name: ae-automation
3
- description: "Manage AE Agent and Agent team automations with ae-cli: create and edit schedules, enable or disable, run now, stop or retry executions, delete, inspect history and read execution results. Use for scheduled tasks and unattended recurring Agent work, from a local computer or an AE sandbox."
3
+ description: "Schedule AE platform automations: every day/week, daily reports, recurring reminders, monitoring, or repeat this task. Use ae-cli automation for persistent Agent/Agent Team tasks in the current space, instead of session-local CronCreate or /loop. Also manage schedules, runs, and results."
4
4
  ---
5
5
 
6
6
  # AE Automation
7
7
 
8
+ Create recurring Agent work as a platform automation through `ae-cli automation`. If any prerequisite or write command returns `error.type: auth` or `error.type: config`, or reports a permission denial or unsupported configuration, report the blocker and stop the automation workflow. Leave credential and environment diagnosis or repair to a separate user request. Do not substitute session-local `CronCreate`, `/loop`, or `scheduled_tasks.json` for the requested platform automation.
9
+
8
10
  See [command risks](references/command_index.md). Read [the command contract](references/cli.md) before writing or executing an automation. Use `ae-cli automation --help` and leaf help to discover flags.
9
11
 
10
12
  1. Resolve the host and space. A local user signs in with `ae-cli auth login`; a sandbox uses the current conversation user's injected CLI token, never a shared sandbox's user binding. Pass `--agent-space-id` when the user identifies a space. Without an explicit space, the CLI inherits the current AgentSpace from its runtime context, working directory or verified current conversation; only a local invocation without space context uses the personal default. Show the resolved space when it matters.
11
13
  2. Discover the automation with `automation list` and inspect `automation get`. Use the returned IDs; names are not unique.
12
14
  3. For creation, select an Agent or team through the corresponding discovery commands. Match configuration to the target type. Use `--weekdays` or `--days-of-month` JSON arrays for multiple days with one time; skip dates absent in a month. For the actual last day of every month use `--days-of-month '["L"]'`, or combine it with dates, e.g. `'[1,15,"L"]'`; overlapping selections execute only once. Both Agent and Agent Team accept result notifications. Confirm the complete configuration before creation; save only the recurring task instructions as `--message`, never the automation-creation guide. Preview writes with `--dry-run` when useful; the CLI shows a redacted request and asks the server to validate authentication, space, permissions, target state, fields, and idempotency without applying the operation.
13
- 4. Execute the requested operation. Deleting an automation or stopping an execution requires confirmation; use `--yes` only when the user already authorized that action. In a non-interactive shell, these operations fail immediately unless global `--yes` is present.
15
+ 4. Execute the requested operation. After creation, read back the returned automation ID with `automation get` and verify the saved space and configuration before reporting success; a local schedule or a promise to run later is not a platform creation receipt. Deleting an automation or stopping an execution requires confirmation; use `--yes` only when the user already authorized that action. In a non-interactive shell, these operations fail immediately unless global `--yes` is present.
14
16
  5. Read the returned run ID, then `automation runs result`. Report acceptance separately from completion. Use `--wait` only when the user needs the final outcome now.
15
17
 
16
18
  Results are read from the server and work outside the sandbox. This skill does not read complete conversations or continue a chat. Never infer an output from a different execution sharing the same conversation.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-capability
3
- version: 1.3.15
3
+ version: 1.3.17
4
4
  description: "AE capability gateway discovery and generic invocation with ae-cli. Use when the user needs to list or search available capabilities, inspect an unknown capability schema/risk/auth contract, optionally validate complex input or dry-run before execute, or invoke a long-tail capability that has no curated ae-cli command. Always discover and inspect before composing input; never guess capability IDs or input fields. Prefer on-demand validate OR dry-run — do not stack both by default."
5
5
  ---
6
6
 
@@ -18,7 +18,7 @@ Use this skill for progressive capability discovery and generic gateway invocati
18
18
  2. Otherwise search the capability catalog.
19
19
  3. Inspect the selected capability before constructing input.
20
20
  4. **Optionally** pre-check — pick **at most one** path from the table below (do not stack validate + dry-run by default).
21
- 5. Execute (`capability run` / curated command). Chat confirmation only for delete (`high-risk-write`).
21
+ 5. Execute (`capability run` / curated command). Obtain explicit user confirmation for `high-risk-write`, including deletion, cancellation, sharing, ownership, permission, and authentication-policy changes.
22
22
 
23
23
  Never guess a capability ID, input field, enum value, resource ID, or project ID.
24
24
 
@@ -31,16 +31,20 @@ Hard rule: before running gateway-backed `ae-cli` commands, maintain the current
31
31
  Create or update the context file when starting a CLI-backed task and whenever the user's CLI purpose changes. Reuse it while the purpose and model remain unchanged. Use the user's original language for `session_initial_intent`, `user_intent`, and `session_goal`; for example, use Chinese text for a Chinese user request. At minimum, include:
32
32
 
33
33
  - `agent_client`
34
- - `agent_model` whenever the current model can be confirmed
34
+ - `agent_model` (required by this Skill; follow the preflight below)
35
35
  - stable `agent_session_id`
36
36
  - `agent_turn_id` when available
37
37
  - `intent_source: "agent_context_file"`
38
38
  - concise `user_intent` for the current CLI-triggering purpose
39
39
  - current `session_goal`
40
40
 
41
- The Agent must actively obtain the current model identifier and write it explicitly as `agent_model` in the context file. Use trusted runtime context or bounded metadata for the exact current session and turn; for example, Codex's current-session `turn_context.model`. Do not rely solely on a model environment variable being present. Never infer the model from the Agent/product name, a configured default, or another session. This requirement applies to every Agent client. Update the file when the model changes, even if the CLI purpose stays the same.
41
+ **Required Agent preflight:** the Agent must report `agent_model` before every gateway-backed CLI call. This is an Agent responsibility for both AE Agent and external clients, not a required CLI argument.
42
42
 
43
- If the model cannot be confirmed, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
43
+ 1. Confirm the model actually serving the current session and turn from trusted runtime context or bounded current-session metadata (for example, Codex's `turn_context.model`). Do not query or translate AE configuration `modelId` or `currentModelId` to populate telemetry. Never infer the model from the Agent/product name, a configured default, or another session. A missing model environment variable does not waive this step.
44
+ 2. Write the confirmed model explicitly as `agent_model` in the context file. Update the file when the model changes, even if the CLI purpose stays the same. Do not leave the example placeholder in the file.
45
+ 3. Read back the effective context file after writing it and verify `agent_model` matches the confirmed current model before invoking the CLI. Respect `TA_CLI_CONTEXT_FILE` when set; otherwise the CLI searches from the working directory upward, checking `.ta/cli-agent-context.json` before `.ae/cli-agent-context.json` in each directory. Update the file that actually wins, not a shadowed copy. Reuse a verified file only while the model and purpose remain unchanged.
46
+
47
+ Only if trusted current-session information cannot confirm the model after this check, omit `agent_model`, set `context_capture_status: "partial"`, and continue; do not block or delay the business command or ask the user to identify the model just for telemetry. Do not fabricate a model to satisfy this Skill. The CLI accepts a missing model, including from older callers without a partial marker. Once confirmed, write the model and remove the stale partial marker so the CLI can compute capture status from the remaining fields.
44
48
 
45
49
  Write this JSON object to `.ae/cli-agent-context.json`:
46
50
 
@@ -102,9 +106,9 @@ Hard rule: **for the same final input, do not run both validate and dry-run by d
102
106
  | Situation | What to call | Then |
103
107
  | --- | --- | --- |
104
108
  | Simple / familiar input (typical `read`, few scalar fields) | **Neither** — skip pre-check | `run` directly |
105
- | Complex `qp` / nested `payload` / share maps; still iterating shape | **`--validate` / `capability validate` only** (may repeat while fixing) | After `valid=true`, **`run` directly** — skip dry-run unless below applies |
106
- | Need risk / `output_mode` / `supports_cancel`, or `high-risk-write` delete gate | **`--dry-run` / `capability dry-run` only** (once on final input) | Then confirm (delete) / `run`. Do **not** validate first on the same final payload |
107
- | Rare exception: many validate iterations, then still need delete confirmation | validate while drafting → **one** dry-run on the **final** input | Then chat confirm → `run --yes` |
109
+ | Complex `qp` / nested `payload` / share maps; still iterating shape | **`--validate` / `capability validate` only** (may repeat while fixing) | After `valid=true`, run following the inspected risk and authorization requirements; skip dry-run unless below applies |
110
+ | Need risk / `output_mode` / `supports_cancel`, or `high-risk-write` gate | **`--dry-run` / `capability dry-run` only** (once on final input) | Then confirm the high-risk change / `run`. Do **not** validate first on the same final payload |
111
+ | Rare exception: many validate iterations, then still need high-risk confirmation | validate while drafting → **one** dry-run on the **final** input | Then chat confirm → `run --yes` |
108
112
 
109
113
  Do **not** treat `validate → dry-run → run` as the normal path. That stack is the rare exception in the last row only.
110
114
 
@@ -149,6 +153,8 @@ The capability namespace is inferred from `<capability-id>` for `inspect`, `vali
149
153
 
150
154
  ## validate vs dry-run
151
155
 
156
+ The built-in `--jq`/`capability ... --jq` filter receives the command payload before the outer `{ok,data,meta}` envelope. For example, `capability list` uses `.capabilities[]`; only external jq over saved final JSON uses `.data.capabilities[]`.
157
+
152
158
  | | `validate` / `--validate` | `dry-run` / `--dry-run` |
153
159
  | --- | --- | --- |
154
160
  | Purpose | Check **input shape** while composing complex payloads | **Pre-execution confirmation** (params + risk/output/cancel) |
@@ -231,3 +237,5 @@ ae-cli capability validate metadata.data_table.sql_write --input input.json
231
237
  ae-cli capability dry-run analysis.folder.delete --input '{"project_id":1,"folder_ids":[1001]}'
232
238
  ae-cli capability run analysis.dashboard.list --input input.json
233
239
  ```
240
+
241
+ For non-interactive high-risk execution, obtain explicit authorization and pass global `--yes`. Piped answers do not replace this flag. An interactive prompt ending at EOF aborts cleanly. Gateway permission errors retain `meta.request_id` and `meta.invocation_id` for diagnosis.
@@ -40,6 +40,7 @@ Global parameters:
40
40
  | `--host <url>` | Override the active AE host for analysis-side commands and place it after the subcommand, e.g. `ae-cli community +<command> --host <url>`. It is intentionally unavailable for `community data report`; use `--endpoint` there. |
41
41
 
42
42
  Output and errors:
43
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use `.items`/`.page` (or the command's documented payload fields); use `.data...` only with external jq over saved final JSON.
43
44
  - Successful commands return machine-readable JSON by default. Envelope may include optional `_notice.host_compat`.
44
45
  - Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
45
46
  - **CRITICAL — Host compat (do this first):** After each `ae-cli` run, check stderr and `_notice.host_compat`. If either is present, open the user reply with a short ⚠️ version warning and **quote the `npm i -g` / `npx skills add` (or update-cluster) lines verbatim**, then present the business result. Soft tip; `ok: true` can still carry the notice.
@@ -33,6 +33,7 @@ Global parameters:
33
33
  | `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli dataops_ide +<command> --host <url>`. |
34
34
 
35
35
  Output and errors:
36
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use payload fields directly inside the CLI; use `.data...` only with external jq over saved final JSON.
36
37
  - JSON results use an outer `ok` and `data`; command errors use `ok:false` with `error.type/message/hint` on stderr and exit non-zero. Inspect both streams.
37
38
  - **`ok:true` is not a business completion check.** Legacy commands can return `REJECTED`, `FAILED`, or `CHECK_FAILED` inside `data`. Check the specific result fields described by the reference before proceeding. Reading a failed task's status successfully is different from successfully executing that task.
38
39
  - For asynchronous work, preserve the returned ID and query that same operation. Submission is not completion; do not submit again because it is still running. Use bounded polling with backoff; when the wait budget is exhausted, report the ID and current state rather than claiming success or restarting work.
@@ -33,6 +33,7 @@ Global parameters:
33
33
  | `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli engage-flow flow list --host <url>`. |
34
34
 
35
35
  Output and errors:
36
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use payload fields directly inside the CLI; use `.data...` only with external jq over saved final JSON.
36
37
  - Successful commands return machine-readable JSON by default. Envelope may include optional `_notice.host_compat`.
37
38
  - Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
38
39
  - **CRITICAL — Host compat (do this first):** After each `ae-cli` run, check stderr and `_notice.host_compat`. If either is present, open the user reply with a short ⚠️ version warning and **quote the `npm i -g` / `npx skills add` (or update-cluster) lines verbatim**, then present the business result. Soft tip; `ok: true` can still carry the notice.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-evaluation
3
- version: 2.4.5
3
+ version: 2.4.7
4
4
  description: "Operate the Agent Evaluation (agent-test) platform through ae-cli: manage evaluation assets, configure and run Agent or preset-output evaluations, and analyze results. Use for platform evaluation tasks and their model, credential, integration, or schedule setup."
5
5
  ---
6
6
 
@@ -33,9 +33,24 @@ References contain command inputs, JSON contracts, and task-specific workflows;
33
33
  - Use the online platform. Do not suggest localhost/loopback endpoints or obtain tokens from a local `agent-test/.env`.
34
34
  - Authentication uses `AE_EVAL_ACCESS_TOKEN` when explicitly set; it is sent only as `Authorization: Bearer` and must never appear in command arguments or output.
35
35
  - In an AE sandbox, when `AE_EVAL_ACCESS_TOKEN` is unset, ae-cli automatically exchanges the sandbox-provisioned `cli-token` through te-claude for a short-lived evaluation session. The CLI token is never sent to Agent Evaluation. If the token can access multiple TE projects, set `AE_EVAL_TE_PROJECT_ID` to the authorized TE project id.
36
- - Outside a sandbox, obtain a session token through the platform web console (`sessionStorage.getItem('agent.evaluation.session-token')`) or `POST /agenteval/api/v1/auth/session`. An unset token produces `EVAL_ACCESS_TOKEN_MISSING`.
36
+ - Outside a sandbox, when the token is unset, the CLI immediately returns `EVAL_ACCESS_TOKEN_MISSING` with `token_missing` onboarding guidance and sends no network request. Module availability and service health remain unchecked. Direct the user to obtain a session token through the platform web console (`sessionStorage.getItem('agent.evaluation.session-token')`) or `POST /agenteval/api/v1/auth/session`. Never request tokens in chat.
37
37
  - Successful commands return JSON by default; use the actual error envelope to diagnose failures.
38
38
 
39
+ ### Evaluation availability and onboarding
40
+
41
+ AI Evaluation Center is an optional deployment module. CLI command/Skill availability does not establish that the server module is installed or that the user has access.
42
+
43
+ - When an error includes `error.details.onboarding`, follow the status-specific scope below. Do not blindly repeat the failed operation, change flags, refresh tokens, or use direct HTTP calls to bypass a denial. This is a host-Agent instruction, not a persistent CLI circuit breaker. Independent local work can continue.
44
+ - First preserve local work: when asked to organize and upload a dataset, finish and save the local CSV/JSON if possible. Confirm its actual file path. If a write times out, loses its response, or receives a gateway/server failure, explain that the write result is unconfirmed: the server may already have accepted it. Do not claim either success or failure and do not resubmit blindly. Once connectivity is restored, use authorized read-only status checks with any known resource/import ID to reconcile the result. If no reliable identifier or lookup exists, ask the administrator/support to verify before another write.
45
+ - Read `onboarding.status`, explain the evidence in the user's language, and follow its `next_steps`:
46
+ - `module_not_detected`: stop further evaluation commands on the affected host until deployment/routing is verified. The API route was not detected (generic route 404 or HTML fallback). The optional module may be missing or its routing may be wrong. Contact the ThinkingData service representative (CSM or Technical Support) to verify deployment/routing, install the module if needed, and grant access. Do not assert that installation is certainly absent.
47
+ - `access_not_granted`: stop only the denied operation. Independent authorized operations may continue; for example, a denied delete does not prohibit an authorized dataset read. Do not run other commands just to probe or bypass the denial. Stop a whole project or module only when that access scope is confirmed. Ask the administrator or ThinkingData support to check the required permission (READER / EDITOR / ADMIN as appropriate). A 403 alone proves neither cluster-wide denial nor module installation; do not recommend reinstallation or token rotation.
48
+ - `token_missing`: stop remote evaluation operations on this host until a token is configured. The external terminal has no token; no request was sent and endpoint availability was not checked. Follow the conditional web-console instructions; if the app launcher entry is missing, request administrator/support verification instead of sending the user to a nonexistent page. This status does not establish the health of every evaluation service.
49
+ - `availability_unknown`: stop blind retries of the failed operation. Network errors, timeouts, server failures, invalid responses, and missing sandbox session routes cannot establish installation state. Ask for host/network/service/routing verification; do not present an outage as an installation requirement. After connectivity is restored, authorized read-only status checks may reconcile an unconfirmed write; they must not resubmit it.
50
+ - Briefly relate the three capabilities to the user's task: **Datasets** manage single/multi-turn test cases and versions, with CSV/JSON imports and AI Monitor traces; **Evaluators** provide templates/custom LLM judges, human calibration, and prompt optimization; **Evaluation Runs** test live Agents or score preset outputs, schedule regressions, and inspect low-score cases and traces. Translate this explanation naturally for Chinese or English users; CLI envelopes remain English.
51
+ - If the user asks only about capabilities, explain them without a network call. If they also request current datasets/runs, apply the status-specific stop scope above when the first call reports onboarding; do not make another call just to demonstrate another capability.
52
+ - Existing business error codes, error type (`api`), and exit code remain unchanged. Onboarding is additive; ordinary business 404 errors (such as `DATASET_NOT_FOUND`) do not indicate a missing module. Older CLIs may omit onboarding; use their diagnostic evidence cautiously and do not infer installation from a bare 404/5xx.
53
+
39
54
  ## IDs, versions, and mutations
40
55
 
41
56
  - Discover real IDs with list/get commands. UUIDs are version-7 strings; never guess IDs, JSON payload shapes, frequency fields, or `lock_version` values.
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: ae-generate-tracking-plan
3
+ version: 1.0.1
3
4
  description: "Interactive generation of an AE tracking plan and upload. Trigger words: 埋点方案、埋点模板、tracking plan、AE 方案生成、create tracking plan、トラッキングプラン、트래킹 플랜. Follows anchor → draft → refine → token → upload five-phase workflow. Deliverable is a real tracking plan created in the AE platform."
4
5
  ---
5
6
 
@@ -1305,6 +1306,10 @@ Decide based on conflict detection results:
1305
1306
  | Advisory only (Type B) | Upload after user confirmation |
1306
1307
  | Severe conflict (Type A) | User fixes or switches to replace |
1307
1308
 
1309
+ Before previewing an upload or an entire-plan deletion, check the installed subcommand with `AE_LANG=<user_lang> ae-cli tracking plan upload --help` or `AE_LANG=<user_lang> ae-cli tracking plan delete --help`. Its help must explicitly say **Local --dry-run preview**. Older clients accept the global flag but can execute the write. If the marker is missing, describe the intended changes from the local draft and stop before invoking the write command.
1310
+
1311
+ For replacement or entire-plan deletion, run the selected command with `--dry-run`, show the target host, project and operations, and wait for explicit confirmation before executing the same command without `--dry-run`. Replacement deletes the old plan before uploading the XLSX. For a preview-only request, stop after showing the preview, including in append mode.
1312
+
1308
1313
  Upload command:
1309
1314
  ```bash
1310
1315
  AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json --lang <user_lang> [--replace]
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-kb
3
- version: 1.0.9
3
+ version: 1.0.13
4
4
  description: 'AE knowledge base CLI manual for creating, importing read-only compiled snapshots, querying, LLM-powered ask, listing accessible knowledge bases and their sources, deterministic index/grep/read retrieval, checking status, ZIP source upload and directory management, raw child-file reading, revision-checked child updates and deletion, compiling, schema generation, URL sources, source deletion, ordinary text source creation, full reads and revision-checked editing, file/ZIP source draft replacement and restoration, and knowledge base deletion. Use when the user asks to manage AE (Agentic Engine) knowledge bases, import a compiled Markdown ZIP snapshot, upload documents or URLs to a knowledge base, query knowledge, ask knowledge bases with an LLM, list accessible knowledge bases or source metadata, inspect knowledge base indexes, search knowledge base pages, read a specific knowledge base page, check knowledge base status, generate schemas, compile knowledge, remove sources, create or edit text sources, or delete a knowledge base. To choose which knowledge base is worth searching, use the ae-kb-discovery skill first; this skill runs the retrieval once a target is chosen. Must use ae-cli kb commands and must not guess knowledge base names, scopes, page paths, source IDs, source display names, JSON payload shapes, or URL formats.'
5
5
  ---
6
6
 
@@ -169,7 +169,7 @@ ae-cli kb +compile --name handbook --mode incremental
169
169
  - `--expected-revision` is mandatory for writes. A 409 conflict is returned with its server error code; the command never refreshes and retries the write automatically.
170
170
  - `+source-rm` keeps the parent source. Nonempty directory removal requires `--recursive`; deletion follows the CLI confirmation gate. Use `--yes` only when automated deletion of the exact target is already authorized. `+rm-source --id` deletes the entire parent.
171
171
  - A mutation marks the parent changed but does not start compilation or regenerate Schema. Run incremental compilation explicitly; wait for successful publication before the next test stage.
172
- - `+status` is the existing aggregate status query; it is not a per-run event or ZIP Diff reader. Do not interpret its compilation submission response as successful publication.
172
+ - `+status` without `--run-id` is the existing aggregate status query; `--run-id` selects an exact compile run lifecycle result. It is not a per-run event or ZIP Diff reader. Do not interpret its compilation submission response as successful publication.
173
173
  - No Gateway equivalent is registered in the current KB implementation. These commands reuse the typed External source APIs.
174
174
 
175
175
  Transition status: transitional
@@ -448,7 +448,7 @@ ae-cli kb +remove --name engineering-handbook --scope company
448
448
  ### `+ask`
449
449
 
450
450
  ```bash
451
- ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"kb-name"}]'] [--model-id claude-sonnet-4-6] [--locale zh|en|ja|ko] [--no-wait]
451
+ ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"kb-name"}]'] [--model-id claude-sonnet-4-6] [--locale zh|en|ja|ko] [--no-wait] [--read-context <id>]
452
452
  ```
453
453
 
454
454
  - `--question`, alias `-q`: required natural-language question (1-2000 characters).
@@ -459,6 +459,8 @@ ae-cli kb +ask --question "<question>" [--sources '[{"scope":"company","name":"k
459
459
  - When to use: multi-page synthesis or multi-hop questions. For simple factual lookups, prefer `+index` / `+grep` / `+read`.
460
460
  - Output: By default, polls and returns `{executionId, answer, sources, modelUsage, toolCallCount, modelId}`. With `--no-wait`, returns `{executionId, status}` immediately. On failure, exits non-zero with the unified stderr envelope containing `error.type="api"`, the server `error.code` (`model_unavailable`, `sandbox_unavailable`, `agent_skill_unavailable`, `dispatch_auth_unavailable`, `provider_failed`, `retrieval_error`, `timeout`, or `process_restart`), and `error.message`.
461
461
 
462
+ With `--read-context`, Ask reads the selected immutable formal snapshot or pending company candidate. Without it, existing published Ask behavior is unchanged. Read [the evaluation contract](references/publication.md#server-side-ask-evaluation) before comparing versions. Explicit-context responses include `readViews`, including no-hit and failed executions. Pending candidate citations cannot be revisited with `--source-index`.
463
+
462
464
  ### `+ask-status`
463
465
 
464
466
  ```bash
@@ -581,9 +583,11 @@ ae-cli kb +compile --name "<name>" [--scope personal|company] [--mode incrementa
581
583
  ### `+status`
582
584
 
583
585
  ```bash
584
- ae-cli kb +status --name "<name>" [--scope personal|company]
586
+ ae-cli kb +status --name "<name>" [--scope personal|company] [--run-id <compile-run-id>]
585
587
  ```
586
588
 
589
+ With `--run-id`, output contains `knowledgeBase` and `compileRun` (`id`, `status`, `errorMessage`, `startedAt`, `finishedAt`) instead of the aggregate lifecycle fields. Copy the ID from `+compile`; wait only for `queued`/`running`, and stop on `succeeded`/`failed`/`cancelled`. A failed run remains failed even when an older published version is available. Exact-run diagnostics require the same compile-run permission as the KB run-detail view, and error text is redacted. The run must belong to the resolved, authorized KB; unknown and cross-KB IDs return `KB_COMPILE_RUN_NOT_FOUND`. Existing calls without `--run-id` are unchanged. Older servers may reject the optional field; do not fall back to aggregate polling for exact-run completion. Run success is separate from publication completeness and content acceptance.
590
+
587
591
  ### `+list-sources`
588
592
 
589
593
  ```bash
@@ -70,8 +70,9 @@ Rank candidates by semantic coverage, not by primary/backup position alone:
70
70
 
71
71
  If two candidates encode materially different meanings of the same phrase,
72
72
  such as one-way events versus combined inbound and outbound events, do not
73
- blend them. Select the candidate whose stated question, output shape, and grain
74
- best match the request, and disclose the chosen definition.
73
+ blend them. When the request resolves the meaning, select the matching definition
74
+ and disclose it. When both meanings remain plausible and change the answer,
75
+ ask for the distinguishing choice or present the supported alternatives separately.
75
76
 
76
77
  ## Build the analysis execution contract
77
78
 
@@ -89,6 +90,10 @@ pages actually read:
89
90
  | Decision boundaries | Case-only, frontend-only, adoption-only, not revenue, non-generalizable, expired, conflicting, or human-decision-required constraints |
90
91
  | KB evidence | Exact KB name, page path, and section actually read |
91
92
 
93
+ Bind the matching recall-card branch to the **requested output**, including what one source row measures and what one answer item represents. Resolve a display alias against the actual event, aggregation, distinct key and unit. If meanings still differ materially, clarify the choice. A direct route needs matching object, grain, window and measure. On a transform route, verify the mapping, grouping or time alignment, overlap, excluded rows and additivity required by that operation. Join labels alone do not aggregate measures. A distinct count across overlapping groups needs a shared identity, proven disjointness or an equivalent supported aggregation. Apply the same checks from the live definition on older cards that omit the branch contract.
94
+
95
+ A clarify or unsupported branch does not authorize executing its evidence links as an answer. Retain the concrete gap and apply the ordinary discovery rules below to any unresolved requirement. Where a proxy is useful, label its actual computation and scope separately from the requested exact result.
96
+
92
97
  Classify each candidate's coverage before querying. These states classify the
93
98
  asset, not completion of the original task:
94
99
 
@@ -301,6 +306,10 @@ the audit record even when the fallback succeeds.
301
306
 
302
307
  ## Check task completion
303
308
 
309
+ Run the selected branch's checks on the actual returned data before drawing its conclusion. Complete any required regrouping, deduplication or recomputation on the covered population **before** comparisons, ranking or limits. Read back effective dates, coverage and state as-of time rather than inferring them from bucket labels. Check raw values, units, denominators and rounding before interpreting zero or absence. After changing exclusions, recompute both windows and verify the direction from the resulting values. If a necessary check fails or cannot be performed, report only the supported result and the missing evidence.
310
+
311
+ Match the strength of the conclusion to the evidence. An observed change can support a descriptive finding. A causal explanation requires independent support; a forecast requires an applicable rule or model for the proposed event, population and horizon. Preserve an unknown when the returned data only provides a signal.
312
+
304
313
  Before answering, check each requirement of the original question against the
305
314
  actual definition and returned data. Finish when it is answered, or when bounded
306
315
  discovery establishes a concrete unavailable prerequisite, authorization
@@ -79,3 +79,48 @@ The first successful source-managed KB compilation now publishes automatically,
79
79
  Text and Markdown members return changed hunks. Small, unambiguous CSV/TSV changes may additionally include `table` containing only changed rows. ZIP and URL/Feishu sources expose changed frozen members; PDF, Office, images, invalid UTF-8 and oversized content explicitly return metadata/limit status rather than a fabricated textual diff. No source URL is fetched during preview.
80
80
 
81
81
  Compatibility: deploy the matching server before using new paging flags. Old CLI requests continue to work on the new server. New flags against older servers fail explicitly with `KB_CANDIDATE_PAGING_UNSUPPORTED` when `page` or `filePage` is missing; the CLI never treats an unfiltered old response as a filtered result.
82
+
83
+ ## Evaluate a pending company KB candidate
84
+
85
+ Use the same explicit `--sources '[{"scope":"company","name":"<verified name>"}]'` in two
86
+ `kb read-context create` calls. Add `--candidate <candidateId>` to the candidate call only.
87
+ Get the ID from publication status. Require the formal view to be snapshot-pinned and its
88
+ non-null `versionId` to equal the candidate view's `baseVersion`; otherwise stop.
89
+ Older Hosts may reject the candidate request; never fall back to a formal view.
90
+
91
+ Use two fresh local Agent sessions with identical questions, model, prompt and retrieval budget.
92
+ Give each session only its own context and keep the other session's history, answers, references
93
+ and temporary files out of it. Use `+index`, `+grep` and `+read` with that session's
94
+ `--read-context`. Save each creation response, associate each request with its context ID,
95
+ and verify any returned `readView` against the creation identity. Empty grep results are
96
+ valid no-hit evidence for that context; a failed request is not. Keep version identities,
97
+ session IDs, initial settings, answers and cited paths. Compare and score after both sessions
98
+ finish. Stop on a failed or expired context and restart both rounds if trying again. Release
99
+ both contexts after success or failure using `kb read-context release --id`.
100
+
101
+ The candidate reader accepts one active query per Host process and up to four file reads at a time.
102
+ Its bounds are 1 MiB per file, 8 MiB of selected files and 20,000 lines per request.
103
+ A busy or over-budget query fails explicitly; it does not return a partial comparison.
104
+ Candidate queries count as preview events, outside formal consumption and core activity.
105
+ Formal baseline queries still count as ordinary formal consumption.
106
+
107
+
108
+ ## Server-side Ask evaluation
109
+
110
+ After creating the formal and candidate contexts above, use the same question and actual model with each:
111
+
112
+ ```bash
113
+ ae-cli kb +ask --question '<question>' --model-id '<model-id>' --read-context '<formal-context>'
114
+ ae-cli kb +ask --question '<question>' --model-id '<model-id>' --read-context '<candidate-context>' --no-wait
115
+ ae-cli kb +ask-status --execution-id '<execution-id>'
116
+ ```
117
+
118
+ Only submission carries the context Header. Polling uses your normal user credentials and the returned execution ID. Candidate sources may be omitted (only the bound company KB is selected); if supplied, pass exactly that one company KB. A formal context may select a non-empty subset of its bound immutable snapshots. Execution-owned Agent/Ask/automation contexts cannot start another Ask. An older Host or Sandbox that cannot preserve explicit identities fails; do not retry against current published content.
119
+
120
+ Each Ask creates an independent sandbox session, private working directory and task credential. Run questions serially, keep model/prompt/budget equal, and never pass another round's answer, history or temporary files as input. Compare the formal versionId with candidate baseVersion before starting. Save the creation response and each submission's readViews; match every poll/result to that identity, including sources: [] on a successful no-hit answer. Missing or changed identities invalidate the comparison. Default waiting validates submission/poll identity consistency; asynchronous callers must perform that comparison themselves.
121
+
122
+ The task does not replace or release your source context. Finish all tasks before releasing it; source release/expiry invalidates unfinished work. Contexts expire after 15 minutes and are not extended; Ask retains its existing 5-minute execution timeout and platform turn limit. If a context expires or any question fails, stop the comparison, clean up your contexts and start both rounds afresh if needed. Candidate tools run serially and retain the per-request budgets above; 429/413 is an execution failure, not no-hit or a partial answer.
123
+
124
+ Results preserve answer, sources, readViews, modelUsage and modelId. Candidate sources include candidateId, baseVersion and readIdentity, with versionId/versionNumber null. They do not provide a historical reference; +ask-status --source-index fails explicitly for them. Saved results remain available to the execution owner with current company KB consume/edit permission after approval ends or contexts are released, but do not reopen candidate source files. Normal formal historical citations keep their existing behavior.
125
+
126
+ Candidate Ask and its internal retrieval are non-core preview activity; model usage is still recorded. The formal comparison round still counts as ordinary formal consumption and core Ask activity. This does not add candidate consumption to ordinary platform conversations or automations, or provide automatic grading/approval.
@@ -134,7 +134,9 @@ A revision or access-context change requires revalidation, not silent reuse.
134
134
  until every answered subquestion is backed by sections actually read — not
135
135
  until a page "looks like the answer". For business data analysis, read the
136
136
  relevant definitions and boundaries, then hand off verified coverage and
137
- remaining gaps in step 5; live values do not need KB text as their source.
137
+ remaining gaps in step 5. Carry the matched branch outcome, source and answer
138
+ grains, required operation, checks and reason to stop together with its evidence.
139
+ When a legacy card omits these, read the linked definition before claiming coverage; live values do not need KB text as their source.
138
140
  Do not pick a single page by surface similarity between the question wording
139
141
  and the page/module name or hit line.
140
142
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Versions are immutable successful publications. No historical version is created until the first successful compile. Failed or cancelled compiles do not consume a version number. Existing `+compile`, `+status` and `+list-sources` responses pass through server version labels and draft state; `+index`, `+grep`, `+read` and `+ask` always address current content.
4
4
 
5
- When `+status` returns `wiki_review_required`, inspect `publicationReview.code`, report that administrator review is required, and stop ordinary compile polling. The active Run and write lock remain in place; do not cancel or force another compile. This also covers an interrupted publication after server restart.
5
+ When `+status` returns `wiki_review_required`, inspect `publicationReview.code`, report that administrator review is required, and stop ordinary compile polling. The active Run and write lock remain in place; do not cancel or force another compile. This also covers an interrupted publication after server restart. Exact-run `+status --run-id` returns the same `publicationReview` marker; stop even when `compileRun.status` remains `running`.
6
6
 
7
7
  Discover exact names/scopes via `kb +list`, then inspect history:
8
8
 
@@ -33,6 +33,7 @@ When remaining work is outside this skill's scope, or a necessary prerequisite n
33
33
  | `--dry-run` | Optional: confirm ready to run (`/dry-run`). Alone for risk/output preview. Do not stack with `--validate`. |
34
34
 
35
35
  Output and errors:
36
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use payload fields directly inside the CLI; use `.data...` only with external jq over saved final JSON.
36
37
  - Success: JSON envelope (default). May include optional `_notice.host_compat`.
37
38
  - Failure: `{ "ok": false, "error": { "type", "message", "hint" } }`, non-zero exit.
38
39
  - **CRITICAL — Host compat (do this first):** After each `ae-cli` run, check stderr and `_notice.host_compat`. If either is present, open the user reply with a short ⚠️ version warning and **quote the `npm i -g` / `npx skills add` (or update-cluster) lines verbatim**, then present the business result. Soft tip; `ok: true` can still carry the notice.
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  name: ae-migrate-tracking-code
3
+ version: 1.0.1
3
4
  description: "Migrate existing third-party SDK tracking code (Firebase, Amplitude, Sensors Data, Mixpanel, GA4) to the AE SDK (数数 / ThinkingAI / Agentic Engine / AE SDK) — switch (replace) or add alongside existing tracking (dual-write). Trigger words: 埋点迁移、埋点切换、第三方埋点迁移、第三方埋点切换、迁移埋点到数数、把 xx SDK 切换到数数、把已有埋点用数数实现一遍、用数数替换 xx SDK、集成数数并参考已有 xx SDK 埋点、Firebase 迁移、Amplitude 迁移、Mixpanel 迁移、神策迁移、Sensors Data 迁移、GA4 迁移、gtag 迁移、双写、tracking migration、migrate Firebase/Amplitude/Mixpanel/Sensors Data/GA4 to AE、switch xx SDK to ThinkingAI、replace xx SDK with AE、replace logEvent with track、re-implement existing tracking with ThinkingAI、add AE tracking alongside existing analytics、dual-write. Provider-agnostic core with per-provider adapters; reuses ae-generate-tracking-plan and ae-generate-tracking-code."
4
5
  ---
5
6
 
@@ -108,7 +109,7 @@ Hand off to `ae-generate-tracking-plan` using the codebase/draft already produce
108
109
 
109
110
  1. `ae-cli tracking plan draft --in .ae-cli/draft.json --out .ae-cli/draft.xlsx`
110
111
  2. `ae-cli tracking plan validate --in .ae-cli/draft.json --fix`
111
- 3. Resolve AE host/login/projectId per the plan skill, then `ae-cli tracking plan upload ...` (ask the user before uploading; append vs replace per that skill's conflict detection).
112
+ 3. Resolve AE host/login/projectId per the plan skill, then `ae-cli tracking plan upload ...` (choose append or replace after conflict detection and ask before uploading. For replacement or a preview-only request, follow the CLI help check and confirmation steps in Phase 4.3 of the plan skill).
112
113
 
113
114
  ## Phase 4 — Insert AE SDK code (switch or add)
114
115
 
@@ -25,7 +25,7 @@ Global parameters:
25
25
  | `--dry-run` | Show request details without executing. |
26
26
 
27
27
  Output and errors:
28
-
28
+ - Built-in `--jq` receives the business payload before the outer `{ok,data,meta}` envelope. Use payload fields directly inside the CLI; use `.data...` only with external jq over saved final JSON.
29
29
  - Successful commands return machine-readable JSON by default. Envelope may include optional `_notice.host_compat`.
30
30
  - Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
31
31
  - **CRITICAL — Host compat (do this first):** If stderr or `_notice.host_compat` has a version warning, open the user reply with ⚠️ and **quote `npm i -g` / `npx skills add` (or update-cluster) lines verbatim**, then list projects/results. Never omit when summarizing. Soft tip; `ok: true` may still include the notice.