@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
@@ -1,40 +1,42 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-HQCY3QCA.js";
4
+ } from "./chunk-H35VDOAE.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute,
7
7
  resolveGatewayDomain
8
- } from "./chunk-KPQY44JQ.js";
8
+ } from "./chunk-AWW2T2WL.js";
9
+ import {
10
+ unwrapOutputData,
11
+ withOutputMetadata
12
+ } from "./chunk-OTZ4JQDU.js";
9
13
  import {
10
14
  CapabilityGatewayError,
11
15
  buildCapabilityGatewayUrl,
12
16
  requestCapabilityGatewayWithEnvelope
13
- } from "./chunk-UYJMEHAF.js";
14
- import {
15
- unwrapOutputData,
16
- withOutputMetadata
17
- } from "./chunk-WMDO53YK.js";
17
+ } from "./chunk-JZY6WWAP.js";
18
18
  import {
19
- internalCallSourceHeaders
20
- } from "./chunk-Y74WTIKJ.js";
21
- import "./chunk-GBSACKFB.js";
19
+ sourceLoggedFetch
20
+ } from "./chunk-NNK3JBH4.js";
21
+ import "./chunk-XPARQSYS.js";
22
+ import "./chunk-PUSFEC6B.js";
22
23
  import {
23
24
  SecureStoreAuthError,
24
- getCliToken
25
- } from "./chunk-SOSFRU3O.js";
25
+ getCliToken,
26
+ internalCallSourceHeaders
27
+ } from "./chunk-PLNS5J33.js";
26
28
  import {
27
29
  getActiveHost,
28
30
  parseJsonRequest,
29
31
  safeJsonParse,
30
32
  stringifyJsonRequest
31
- } from "./chunk-4PSTYEG5.js";
33
+ } from "./chunk-AMURHMS3.js";
32
34
  import {
33
35
  CliValidationError,
34
36
  PermissionError,
35
37
  externalCliTokenRequestOptions,
36
38
  logger
37
- } from "./chunk-Z3Q2AEIN.js";
39
+ } from "./chunk-R2SVAO4G.js";
38
40
 
39
41
  // src/core/mcp.ts
40
42
  async function permissionDetails(resp) {
@@ -109,7 +111,7 @@ async function mcpRequest(url, method, params = {}, hostOverride) {
109
111
  ...internalCallSourceHeaders(),
110
112
  ...buildAuthHeaders(token)
111
113
  };
112
- const resp = await fetch(url, {
114
+ const resp = await sourceLoggedFetch(url, {
113
115
  method: "POST",
114
116
  headers,
115
117
  body: stringifyJsonRequest(body),
@@ -1,28 +1,30 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveHost
4
- } from "./chunk-2F64AZYH.js";
4
+ } from "./chunk-KA5WKR5P.js";
5
5
  import {
6
6
  printError
7
- } from "./chunk-WMDO53YK.js";
7
+ } from "./chunk-OTZ4JQDU.js";
8
8
  import {
9
- internalCallSourceHeaders
10
- } from "./chunk-Y74WTIKJ.js";
11
- import "./chunk-GBSACKFB.js";
9
+ sourceLoggedFetch
10
+ } from "./chunk-NNK3JBH4.js";
11
+ import "./chunk-XPARQSYS.js";
12
+ import "./chunk-PUSFEC6B.js";
12
13
  import {
13
14
  SecureStoreAuthError,
14
- getCliToken
15
- } from "./chunk-SOSFRU3O.js";
15
+ getCliToken,
16
+ internalCallSourceHeaders
17
+ } from "./chunk-PLNS5J33.js";
16
18
  import {
17
19
  safeJsonParse
18
- } from "./chunk-4PSTYEG5.js";
20
+ } from "./chunk-AMURHMS3.js";
19
21
  import {
20
22
  CliApiError,
21
23
  CliValidationError,
22
24
  PermissionError,
23
25
  externalCliTokenRequestOptions,
24
26
  logger
25
- } from "./chunk-Z3Q2AEIN.js";
27
+ } from "./chunk-R2SVAO4G.js";
26
28
 
27
29
  // src/commands/te-dataops/shared.ts
28
30
  import { randomBytes } from "crypto";
@@ -172,7 +174,7 @@ async function downloadDataopsApi(ctx, path, params, targetPath) {
172
174
  const host = resolveHost(ctx.host());
173
175
  const token = await getCliToken(host);
174
176
  const url = buildUrl(host, path, compactArgs(params));
175
- const resp = await fetch(url, {
177
+ const resp = await sourceLoggedFetch(url, {
176
178
  method: "GET",
177
179
  ...externalCliTokenRequestOptions(url),
178
180
  headers: {
@@ -231,7 +233,7 @@ async function dataopsRequest(ctx, method, path, params = {}, body) {
231
233
  if (method !== "GET") {
232
234
  options.body = JSON.stringify(body ?? {});
233
235
  }
234
- const resp = await fetch(url, { ...options, ...externalCliTokenRequestOptions(url) });
236
+ const resp = await sourceLoggedFetch(url, { ...options, ...externalCliTokenRequestOptions(url) });
235
237
  const text = await resp.text();
236
238
  const data = parseResponseBody(text, url, resp.status, !resp.ok);
237
239
  logger.api(method, url, resp.status, body, data);
@@ -1,29 +1,30 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-HQCY3QCA.js";
4
+ } from "./chunk-H35VDOAE.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute,
7
7
  resolveGatewayDomain
8
- } from "./chunk-KPQY44JQ.js";
8
+ } from "./chunk-AWW2T2WL.js";
9
+ import {
10
+ printError,
11
+ withOutputMetadata
12
+ } from "./chunk-OTZ4JQDU.js";
9
13
  import {
10
14
  CapabilityGatewayError,
11
15
  buildCapabilityGatewayUrl,
12
16
  fetchCapabilityGateway,
13
17
  requestCapabilityGateway,
14
18
  requestCapabilityGatewayWithEnvelope
15
- } from "./chunk-UYJMEHAF.js";
16
- import {
17
- printError,
18
- withOutputMetadata
19
- } from "./chunk-WMDO53YK.js";
20
- import "./chunk-Y74WTIKJ.js";
21
- import "./chunk-GBSACKFB.js";
22
- import "./chunk-SOSFRU3O.js";
23
- import "./chunk-4PSTYEG5.js";
19
+ } from "./chunk-JZY6WWAP.js";
20
+ import "./chunk-NNK3JBH4.js";
21
+ import "./chunk-XPARQSYS.js";
22
+ import "./chunk-PUSFEC6B.js";
23
+ import "./chunk-PLNS5J33.js";
24
+ import "./chunk-AMURHMS3.js";
24
25
  import {
25
26
  CliValidationError
26
- } from "./chunk-Z3Q2AEIN.js";
27
+ } from "./chunk-R2SVAO4G.js";
27
28
 
28
29
  // src/commands/te-engage/shared.ts
29
30
  function createEngageCapabilityCommand(cliService, config) {
@@ -2,26 +2,27 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  kbApi,
4
4
  kbUpload
5
- } from "./chunk-QWSA3EOD.js";
5
+ } from "./chunk-7WBCSJL6.js";
6
6
  import {
7
7
  TeAgentApiError
8
- } from "./chunk-JSBLCLFE.js";
9
- import {
10
- CapabilityGatewayError
11
- } from "./chunk-UYJMEHAF.js";
8
+ } from "./chunk-VLOGOM7N.js";
12
9
  import {
13
10
  printError
14
- } from "./chunk-WMDO53YK.js";
15
- import "./chunk-Y74WTIKJ.js";
16
- import "./chunk-GBSACKFB.js";
17
- import "./chunk-SOSFRU3O.js";
18
- import "./chunk-4PSTYEG5.js";
11
+ } from "./chunk-OTZ4JQDU.js";
12
+ import {
13
+ CapabilityGatewayError
14
+ } from "./chunk-JZY6WWAP.js";
15
+ import "./chunk-NNK3JBH4.js";
16
+ import "./chunk-XPARQSYS.js";
17
+ import "./chunk-PUSFEC6B.js";
18
+ import "./chunk-PLNS5J33.js";
19
+ import "./chunk-AMURHMS3.js";
19
20
  import {
20
21
  CliApiError,
21
22
  CliValidationError,
22
23
  PermissionError,
23
24
  kbExecutionContextRequired
24
- } from "./chunk-Z3Q2AEIN.js";
25
+ } from "./chunk-R2SVAO4G.js";
25
26
 
26
27
  // src/commands/te-kb/project-target.ts
27
28
  var API_PATH = "/agent/api/project-semantic-target";
@@ -221,7 +222,15 @@ function createBody(ctx) {
221
222
  (source) => !source || !["personal", "company", "system"].includes(source.scope) || typeof source.name !== "string" || !source.name || Object.keys(source).some((key) => !["name", "scope"].includes(key))
222
223
  )))
223
224
  throw new CliValidationError("--sources must be an array of {scope,name}");
225
+ const candidateId = ctx.str("candidate");
226
+ if (candidateId || ctx.has?.("candidate")) {
227
+ if (!/^[A-Za-z0-9_-]{1,191}$/.test(candidateId))
228
+ throw new CliValidationError("Invalid --candidate");
229
+ if (!Array.isArray(sources) || sources.length !== 1 || sources[0].scope !== "company")
230
+ throw new CliValidationError("--candidate requires exactly one company KB in --sources");
231
+ }
224
232
  return {
233
+ ...candidateId ? { candidateId } : {},
225
234
  ...sources ? { sources } : {},
226
235
  ...ctx.str("locale") ? { locale: ctx.str("locale") } : {}
227
236
  };
@@ -231,13 +240,14 @@ var readContextCreate = {
231
240
  resource: "read-context",
232
241
  command: "create",
233
242
  risk: "read",
234
- description: "Pin the current authorized formal KB views for subsequent reads (15 minutes).",
243
+ description: "Pin authorized formal KB views or one pending candidate for subsequent reads (15 minutes).",
235
244
  flags: [
236
245
  {
237
246
  name: "sources",
238
247
  type: "json",
239
248
  desc: "Optional array of {scope,name}; omit to discover authorized published KBs"
240
249
  },
250
+ { ...candidate, required: false },
241
251
  { name: "locale", type: "string", desc: "zh | en | ja | ko" }
242
252
  ],
243
253
  validate: (ctx) => {
@@ -248,7 +258,16 @@ var readContextCreate = {
248
258
  url: ctx.host().replace(/\/$/, "") + `${root}/read-contexts`,
249
259
  body: createBody(ctx)
250
260
  }),
251
- execute: (ctx) => kbApi(ctx, "POST", `${root}/read-contexts`, {}, createBody(ctx), options)
261
+ execute: async (ctx) => {
262
+ const body4 = createBody(ctx);
263
+ const result = await kbApi(ctx, "POST", `${root}/read-contexts`, {}, body4, options);
264
+ if (body4.candidateId && (!result?.readContextId || !Array.isArray(result.views) || result.views.length !== 1 || result.views[0]?.viewKind !== "candidate" || result.views[0]?.candidateId !== body4.candidateId))
265
+ throw new CliApiError("This server did not return the requested candidate read context.", {
266
+ code: "KB_CANDIDATE_READ_CONTEXT_UNSUPPORTED",
267
+ hint: "Use a Host that supports candidate read contexts."
268
+ });
269
+ return result;
270
+ }
252
271
  };
253
272
  var readContextRelease = {
254
273
  service: "kb",
@@ -1366,12 +1385,19 @@ var schema = {
1366
1385
 
1367
1386
  // src/commands/te-kb/status.ts
1368
1387
  var API_PATH10 = "/agent/api/external/knowledge-bases/status";
1388
+ function getRunId(ctx) {
1389
+ const value = ctx.str("run-id");
1390
+ if (value && !value.trim()) throw new Error("--run-id must not be blank.");
1391
+ return value.trim();
1392
+ }
1369
1393
  function buildBody6(ctx) {
1370
1394
  const body4 = {
1371
1395
  name: ctx.str("name")
1372
1396
  };
1373
1397
  const scope = getExternalKnowledgeBaseTargetScope(ctx);
1374
1398
  if (scope) body4.scope = scope;
1399
+ const runId = getRunId(ctx);
1400
+ if (runId) body4.runId = runId;
1375
1401
  return body4;
1376
1402
  }
1377
1403
  var status = {
@@ -1380,11 +1406,13 @@ var status = {
1380
1406
  description: "Query knowledge base status.",
1381
1407
  flags: [
1382
1408
  { name: "name", type: "string", required: true, desc: "Knowledge base name" },
1383
- { name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" }
1409
+ { name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" },
1410
+ { name: "run-id", type: "string", required: false, desc: "Exact compile run ID returned by +compile; returns compileRun instead of aggregate KB status" }
1384
1411
  ],
1385
1412
  risk: "read",
1386
1413
  validate: (ctx) => {
1387
1414
  getExternalKnowledgeBaseTargetScope(ctx);
1415
+ getRunId(ctx);
1388
1416
  },
1389
1417
  dryRun: (ctx) => ({
1390
1418
  method: "POST",
@@ -1755,6 +1783,26 @@ var kbRead = {
1755
1783
  execute: async (ctx) => kbApi(ctx, "POST", API_PATH16, {}, buildBody10(ctx))
1756
1784
  };
1757
1785
 
1786
+ // src/commands/te-kb/ask-identity.ts
1787
+ function askIdentity(value) {
1788
+ function invalid() {
1789
+ throw new CliValidationError("Ask response is missing or has inconsistent readViews. This host may not support explicit contexts.", { code: "KB_READ_CONTEXT_MISMATCH" });
1790
+ }
1791
+ if (!Array.isArray(value) || !value.length || value.length > 100) return invalid();
1792
+ const identities = value.map((view) => {
1793
+ if (!view || typeof view !== "object") return invalid();
1794
+ const text = (key) => typeof view[key] === "string" && view[key].trim().length > 0;
1795
+ if (!text("resourceKey") || !text("readIdentity")) return invalid();
1796
+ if (view.viewKind === "candidate") {
1797
+ if (view.consistency !== "candidate_pinned" || !text("candidateId") || !(view.baseVersion === null || text("baseVersion")) || view.versionId !== null || view.versionNumber !== null)
1798
+ return invalid();
1799
+ } else if (view.viewKind !== "snapshot" || view.consistency !== "version_pinned" || !text("versionId") || !Number.isSafeInteger(view.versionNumber) || view.versionNumber < 1) return invalid();
1800
+ return ["resourceKey", "viewKind", "consistency", "readIdentity", "versionId", "versionNumber", "candidateId", "baseVersion"].map((key) => view[key] ?? null);
1801
+ });
1802
+ if (new Set(identities.map((view) => view[0])).size !== identities.length) return invalid();
1803
+ return JSON.stringify(identities.sort((a, b) => String(a[0]).localeCompare(String(b[0]))));
1804
+ }
1805
+
1758
1806
  // src/commands/te-kb/ask-shared.ts
1759
1807
  var ASK_API_PATH = "/agent/api/external/knowledge-bases/ask";
1760
1808
  var ASK_POLL_INTERVAL_MS = 5e3;
@@ -1809,6 +1857,7 @@ function transformCompletedResponse(response) {
1809
1857
  answer: response.answer ?? "",
1810
1858
  sources: response.sources ?? []
1811
1859
  };
1860
+ if (response.readViews !== void 0) result.readViews = response.readViews;
1812
1861
  if (response.modelId !== void 0) result.modelId = response.modelId;
1813
1862
  if (response.modelUsage !== void 0) result.modelUsage = response.modelUsage;
1814
1863
  if (response.toolCallCount !== void 0) result.toolCallCount = response.toolCallCount;
@@ -1849,6 +1898,7 @@ var ask = {
1849
1898
  command: "+ask",
1850
1899
  description: "Ask knowledge bases via LLM-powered retrieval (POST /agent/api/external/knowledge-bases/ask). Consumes platform tokens. Prefer +index -> +grep -> +read for deterministic, token-free lookup. By default, polls for completion; use --no-wait to return immediately with executionId.",
1851
1900
  flags: [
1901
+ { name: "read-context", type: "string", required: false, desc: "Use an existing formal snapshot or pending candidate context. Omit for existing published Ask behavior." },
1852
1902
  {
1853
1903
  name: "question",
1854
1904
  type: "string",
@@ -1884,23 +1934,31 @@ var ask = {
1884
1934
  dryRun: (ctx) => ({
1885
1935
  method: "POST",
1886
1936
  url: `${ctx.host().replace(/\/$/, "")}${ASK_API_PATH}`,
1887
- body: buildBody11(ctx)
1937
+ body: buildBody11(ctx),
1938
+ ...ctx.str("read-context") ? { headers: { "X-KB-Read-Context": ctx.str("read-context") } } : {}
1888
1939
  }),
1889
1940
  execute: async (ctx) => {
1890
1941
  const noWait = ctx.bool("no-wait");
1891
- const submitResponse = await kbApi(ctx, "POST", ASK_API_PATH, {}, buildBody11(ctx));
1942
+ const submitResponse = await kbApi(ctx, "POST", ASK_API_PATH, {}, buildBody11(ctx), ctx.str("read-context") ? { preserveErrorMetadata: true } : {});
1892
1943
  if (!submitResponse.executionId) {
1893
1944
  throw new Error("Invalid submit response: missing executionId");
1894
1945
  }
1895
1946
  const executionId = submitResponse.executionId;
1947
+ const identity = ctx.str("read-context") ? askIdentity(submitResponse.readViews) : void 0;
1896
1948
  if (noWait) {
1897
1949
  return {
1898
1950
  executionId,
1899
- status: submitResponse.status
1951
+ status: submitResponse.status,
1952
+ ...identity ? { readViews: submitResponse.readViews } : {}
1900
1953
  };
1901
1954
  }
1902
1955
  const finalResponse = await pollUntilSettled(
1903
- (id) => kbApi(ctx, "GET", ASK_API_PATH, { executionId: id }),
1956
+ async (id) => {
1957
+ const response = await kbApi(ctx, "GET", ASK_API_PATH, { executionId: id }, void 0, identity ? { preserveErrorMetadata: true } : {});
1958
+ if (identity && askIdentity(response.readViews) !== identity)
1959
+ throw new CliValidationError("Ask response changed its version identity.", { code: "KB_READ_CONTEXT_MISMATCH" });
1960
+ return response;
1961
+ },
1904
1962
  executionId
1905
1963
  );
1906
1964
  if (finalResponse.status === "completed") {
@@ -1975,10 +2033,12 @@ var askStatus = {
1975
2033
  { code: "KB_READ_CONTEXT_REFERENCE_FORBIDDEN" }
1976
2034
  );
1977
2035
  }
1978
- return kbApi(ctx, "GET", ASK_API_PATH, {
2036
+ const result = await kbApi(ctx, "GET", ASK_API_PATH, {
1979
2037
  executionId,
1980
2038
  ...sourceIndex !== void 0 ? { sourceIndex } : {}
1981
- });
2039
+ }, void 0, { preserveErrorMetadata: true });
2040
+ if (result.readViews !== void 0) askIdentity(result.readViews);
2041
+ return result;
1982
2042
  }
1983
2043
  };
1984
2044
 
@@ -1,8 +1,8 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  require_archiver
4
- } from "./chunk-OAWPT7VP.js";
5
- import "./chunk-JEUXDY3B.js";
4
+ } from "./chunk-2I5SZ5DS.js";
5
+ import "./chunk-HQED4YB4.js";
6
6
  import {
7
7
  TeAgentApiError,
8
8
  deleteFromMainApp,
@@ -12,19 +12,18 @@ import {
12
12
  postToMainApp,
13
13
  putToMainApp,
14
14
  uploadToMainApp
15
- } from "./chunk-JSBLCLFE.js";
16
- import "./chunk-Y74WTIKJ.js";
17
- import "./chunk-SOSFRU3O.js";
15
+ } from "./chunk-VLOGOM7N.js";
16
+ import "./chunk-PLNS5J33.js";
18
17
  import {
19
18
  isAeSandboxRuntime,
20
19
  readSandboxCliTokenEntry,
21
20
  safeJsonParse
22
- } from "./chunk-4PSTYEG5.js";
21
+ } from "./chunk-AMURHMS3.js";
23
22
  import {
24
23
  CliValidationError,
25
24
  PermissionError,
26
25
  __toESM
27
- } from "./chunk-Z3Q2AEIN.js";
26
+ } from "./chunk-R2SVAO4G.js";
28
27
 
29
28
  // src/commands/te-system/shared.ts
30
29
  import { readFileSync } from "fs";
@@ -2,20 +2,21 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getAuthHeaders,
4
4
  kbApi
5
- } from "./chunk-QWSA3EOD.js";
6
- import "./chunk-UYJMEHAF.js";
5
+ } from "./chunk-7WBCSJL6.js";
7
6
  import {
8
7
  printError,
9
8
  printOutput
10
- } from "./chunk-WMDO53YK.js";
11
- import "./chunk-Y74WTIKJ.js";
12
- import "./chunk-GBSACKFB.js";
13
- import "./chunk-SOSFRU3O.js";
14
- import "./chunk-4PSTYEG5.js";
9
+ } from "./chunk-OTZ4JQDU.js";
10
+ import "./chunk-JZY6WWAP.js";
11
+ import "./chunk-NNK3JBH4.js";
12
+ import "./chunk-XPARQSYS.js";
13
+ import "./chunk-PUSFEC6B.js";
14
+ import "./chunk-PLNS5J33.js";
15
+ import "./chunk-AMURHMS3.js";
15
16
  import {
16
17
  externalCliTokenRequestOptions,
17
18
  redactExternalCliToken
18
- } from "./chunk-Z3Q2AEIN.js";
19
+ } from "./chunk-R2SVAO4G.js";
19
20
 
20
21
  // src/commands/te-team/shared.ts
21
22
  var API_PREFIX = process.env.AE_API_PREFIX ?? "/agent";
@@ -1,20 +1,21 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveMemoryApiBaseUrl
4
- } from "./chunk-AWVZTN2B.js";
5
- import "./chunk-VDICGXCY.js";
6
- import "./chunk-JSBLCLFE.js";
4
+ } from "./chunk-THTROEGD.js";
5
+ import "./chunk-HIMOBNEY.js";
6
+ import "./chunk-VLOGOM7N.js";
7
7
  import {
8
8
  CapabilityGatewayError,
9
9
  buildCapabilityGatewayUrl,
10
10
  callCapabilityApi
11
- } from "./chunk-UYJMEHAF.js";
12
- import "./chunk-Y74WTIKJ.js";
13
- import "./chunk-SOSFRU3O.js";
14
- import "./chunk-4PSTYEG5.js";
11
+ } from "./chunk-JZY6WWAP.js";
12
+ import "./chunk-NNK3JBH4.js";
13
+ import "./chunk-PUSFEC6B.js";
14
+ import "./chunk-PLNS5J33.js";
15
+ import "./chunk-AMURHMS3.js";
15
16
  import {
16
17
  PermissionError
17
- } from "./chunk-Z3Q2AEIN.js";
18
+ } from "./chunk-R2SVAO4G.js";
18
19
 
19
20
  // src/commands/things/parity-actions.ts
20
21
  import { readFileSync } from "fs";
@@ -5,26 +5,28 @@ import {
5
5
  import {
6
6
  printError,
7
7
  printOutput
8
- } from "./chunk-WMDO53YK.js";
8
+ } from "./chunk-OTZ4JQDU.js";
9
9
  import {
10
10
  buildVersionInstallPlan,
11
11
  exactVersion,
12
12
  fetchCliConfig,
13
13
  friendlyVersionSyncFailure,
14
14
  getCachedCompatForHost,
15
- getLocalCliPackageInfo,
16
15
  installHost,
17
16
  installVersion,
18
17
  recordVersionSyncResult,
19
18
  rememberBusinessConfig
20
- } from "./chunk-GBSACKFB.js";
19
+ } from "./chunk-XPARQSYS.js";
20
+ import {
21
+ getLocalCliPackageInfo
22
+ } from "./chunk-PUSFEC6B.js";
21
23
  import {
22
24
  peekCliToken
23
- } from "./chunk-SOSFRU3O.js";
25
+ } from "./chunk-PLNS5J33.js";
24
26
  import {
25
27
  getActiveHost
26
- } from "./chunk-4PSTYEG5.js";
27
- import "./chunk-Z3Q2AEIN.js";
28
+ } from "./chunk-AMURHMS3.js";
29
+ import "./chunk-R2SVAO4G.js";
28
30
 
29
31
  // src/commands/update.ts
30
32
  var HOST_OPTION_DESC = "Override active AE host URL (e.g., https://ta.thinkingdata.cn)";
@@ -13,18 +13,17 @@ import {
13
13
  workspaceResourcePath,
14
14
  workspaceTargetFlags,
15
15
  workspaceTargetPath
16
- } from "./chunk-E25OSZLJ.js";
16
+ } from "./chunk-COOMXFUG.js";
17
17
  import "./chunk-RK6GLDGI.js";
18
18
  import {
19
19
  getAgentBuffer
20
- } from "./chunk-VDICGXCY.js";
21
- import "./chunk-JSBLCLFE.js";
22
- import "./chunk-Y74WTIKJ.js";
23
- import "./chunk-SOSFRU3O.js";
24
- import "./chunk-4PSTYEG5.js";
20
+ } from "./chunk-HIMOBNEY.js";
21
+ import "./chunk-VLOGOM7N.js";
22
+ import "./chunk-PLNS5J33.js";
23
+ import "./chunk-AMURHMS3.js";
25
24
  import {
26
25
  CliValidationError
27
- } from "./chunk-Z3Q2AEIN.js";
26
+ } from "./chunk-R2SVAO4G.js";
28
27
 
29
28
  // src/commands/workspace/shared.ts
30
29
  var WORKSPACE_SERVICE = "workspace";
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@thinkingai/ae-cli",
3
- "version": "6.0.58",
3
+ "version": "6.0.61",
4
4
  "description": "CLI tool for ThinkingAI (AE) analytics platform",
5
5
  "type": "module",
6
6
  "bin": {
7
- "ae-cli": "bin/ae-cli.js"
7
+ "ae-cli": "bin/ae-cli.js",
8
+ "ai-monitor": "bin/ai-monitor.js"
8
9
  },
9
10
  "main": "dist/index.js",
10
11
  "files": [
@@ -18,7 +19,7 @@
18
19
  ],
19
20
  "scripts": {
20
21
  "dev": "tsx src/index.ts",
21
- "build": "tsup src/index.ts --format esm --outDir dist --clean --config tsup.config.ts && node scripts/copy-tracking-assets.mjs",
22
+ "build": "tsup src/index.ts src/ai-monitor.ts --format esm --outDir dist --clean --config tsup.config.ts && node scripts/copy-tracking-assets.mjs",
22
23
  "generate:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts",
23
24
  "sync:skill-collaboration": "node scripts/sync-skill-collaboration.mjs",
24
25
  "check:skill-collaboration": "node scripts/sync-skill-collaboration.mjs --check",
@@ -34,6 +35,7 @@
34
35
  "verify:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts --check",
35
36
  "verify:analysis-four-modules": "tsx tests/dashboard-filter-transport.test.ts && tsx tests/analysis-report-capability-command.test.ts && npm run verify:analysis-presentation && tsx tests/analysis-export-flow-command.test.ts && tsx tests/analysis-dashboard-audience-contract.test.ts",
36
37
  "verify:analysis-contract-regressions": "tsx test/analysis-contract-regressions.test.mjs && tsx tests/analysis-sql-special-identifiers.test.ts",
38
+ "verify:personal-semantic": "tsx tests/personal-semantic-preference-command.test.ts && tsx tests/personal-semantic-global-command.test.ts",
37
39
  "verify:analysis-agent-contract": "tsx tests/analysis-agent-skill-contract.test.ts",
38
40
  "verify:analysis-presentation": "tsx --test tests/analysis-report-presentation.test.ts",
39
41
  "verify:analysis-system": "tsx tests/analysis-system-capability-command.test.ts",
@@ -42,6 +44,7 @@
42
44
  "verify:output-contract": "tsx tests/output-contract.test.ts",
43
45
  "verify:analysis-cluster-routing": "node scripts/verify-analysis-cluster-routing.mjs",
44
46
  "verify:metadata-capability": "npx tsx test/metadata-capability-commands.test.mjs",
47
+ "verify:ai-monitor-capability": "npx tsx tests/ai-monitor-capability-command.test.ts && node --import tsx --test tests/ai-monitor-read-command.test.ts tests/ai-monitor-entrypoint.test.ts",
45
48
  "verify:community-capability": "node test/community-capability-routing.test.mjs",
46
49
  "verify:community-report": "npx tsx tests/community-report-standard-v5.test.ts && npx tsx tests/community-report-client.test.ts && npx tsx tests/community-report-framework.test.ts && npx tsx tests/community-data-report-command.test.ts && node test/community-data-report-skill.test.mjs",
47
50
  "verify:engage-capability": "tsx test/engage/engage-capability-command.test.mjs && tsx test/engage/semantic-qp-validation.test.mjs && node test/engage/engage-skill-capability.test.mjs",
@@ -49,8 +52,9 @@
49
52
  "verify:retired-api-command": "node --test test/retired-api-command.test.mjs",
50
53
  "verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
51
54
  "verify:team-tools": "node scripts/verify-te-team-tools.mjs && node --import tsx --test tests/team-run-watch.test.ts test/team-run-start-command.test.mjs",
52
- "verify:evaluation-tools": "node scripts/verify-evaluation-tools.mjs && node --import tsx tests/evaluation-client.test.ts && node --import tsx tests/evaluation-sandbox-session.test.ts && node --import tsx tests/evaluation-security.test.ts && node --import tsx tests/evaluation-command-contract.test.ts",
53
- "verify:agent-tools": "node --test test/agent-command-registry.test.mjs && tsx tests/te-agent-credentials.test.ts && tsx tests/te-agent-unified-auth.test.ts && node --import tsx --test tests/te-agent-env-isolation.test.ts && tsx tests/te-agent-conversations.test.ts && tsx scripts/verify-agent-tools.mjs && npm run verify:resource-package && npm run verify:approval && npm run verify:agent-distribution && npm run verify:agent-context && npm run verify:sandbox-tools && npm run verify:notifications",
55
+ "verify:evaluation-tools": "node scripts/verify-evaluation-tools.mjs && node --import tsx tests/evaluation-client.test.ts && node --import tsx tests/evaluation-sandbox-session.test.ts && node --import tsx tests/evaluation-security.test.ts && node --import tsx tests/evaluation-command-contract.test.ts && node --import tsx --test tests/evaluation-onboarding.test.ts",
56
+ "verify:a2a": "node --import tsx --test tests/a2a-client.test.ts",
57
+ "verify:agent-tools": "npm run verify:a2a && node --test test/agent-command-registry.test.mjs && tsx tests/te-agent-credentials.test.ts && tsx tests/te-agent-unified-auth.test.ts && node --import tsx --test tests/te-agent-env-isolation.test.ts && tsx tests/te-agent-conversations.test.ts && tsx scripts/verify-agent-tools.mjs && npm run verify:resource-package && npm run verify:approval && npm run verify:agent-distribution && npm run verify:agent-context && npm run verify:sandbox-tools && npm run verify:notifications",
54
58
  "verify:resource-package": "node --import tsx tests/resource-package-command.test.ts && node --import tsx tests/resource-package-cli.test.ts && node --import tsx tests/resource-package-transfer.test.ts && node --import tsx tests/resource-package-skill.test.ts",
55
59
  "verify:agent-context": "tsx tests/agent-context-command.test.ts",
56
60
  "verify:cli-agent-model-context": "tsx --test tests/cli-agent-model-context.test.ts",
@@ -71,7 +75,7 @@
71
75
  "verify:page-context": "node --test test/page-context-skill.test.mjs test/page-context-references.test.mjs test/internal-skill-distribution.test.mjs",
72
76
  "verify:skill-migration": "node --test test/ae-migrate-tracking-code/migration-regression.test.mjs test/ae-migrate-tracking-code/ir-golden-consistency.test.mjs test/ae-migrate-tracking-code/migrated-signatures.test.mjs",
73
77
  "verify:skill-migration-e2e": "node test/ae-migrate-tracking-code/e2e/diff.mjs",
74
- "verify:tracking-tools": "tsx test/tracking-client.test.mjs && tsx test/tracking-skill-flow.test.mjs && node test/tracking-commands.test.mjs && tsx tests/tracking-display-name-sync.test.ts && tsx tests/local-data-inspect-convert.test.ts && tsx tests/local-data-upload-client.test.ts && tsx tests/local-data-upload-command.test.ts && tsx tests/local-data-encoding-sniff.test.ts && tsx tests/local-data-time-formats.test.ts && tsx tests/local-data-xlsx-dates.test.ts && tsx tests/local-data-xlsx-hidden-sheets.test.ts && tsx tests/local-data-xlsx-formulas.test.ts && tsx tests/local-data-title-rows.test.ts && tsx tests/local-data-xlsx-merged-cells.test.ts && tsx tests/local-data-xlsx-shared-strings.test.ts && tsx tests/local-data-xlsx-namespace-prefix.test.ts && tsx tests/local-data-value-distribution.test.ts && tsx tests/local-data-summary-rows.test.ts && tsx tests/local-data-duplicate-keys.test.ts && tsx tests/local-data-row-balance.test.ts && tsx tests/local-data-eight-types.test.ts && tsx tests/local-data-mapping-extras.test.ts && tsx tests/local-data-plan.test.ts && tsx tests/local-data-handoff.test.ts && tsx tests/local-data-reuse.test.ts && tsx tests/local-data-conflicts-resolutions.test.ts && tsx tests/local-data-parquet.test.ts && tsx tests/runner-variadic-flags.test.ts && node test/local-data-skill.test.mjs",
78
+ "verify:tracking-tools": "tsx test/tracking-client.test.mjs && tsx test/tracking-skill-flow.test.mjs && node test/tracking-commands.test.mjs && node --test test/tracking-plan-preview.test.mjs && tsx tests/tracking-display-name-sync.test.ts && tsx tests/local-data-inspect-convert.test.ts && tsx tests/local-data-upload-client.test.ts && tsx tests/local-data-upload-command.test.ts && tsx tests/local-data-encoding-sniff.test.ts && tsx tests/local-data-time-formats.test.ts && tsx tests/local-data-xlsx-dates.test.ts && tsx tests/local-data-xlsx-hidden-sheets.test.ts && tsx tests/local-data-xlsx-formulas.test.ts && tsx tests/local-data-title-rows.test.ts && tsx tests/local-data-xlsx-merged-cells.test.ts && tsx tests/local-data-xlsx-shared-strings.test.ts && tsx tests/local-data-xlsx-namespace-prefix.test.ts && tsx tests/local-data-value-distribution.test.ts && tsx tests/local-data-summary-rows.test.ts && tsx tests/local-data-duplicate-keys.test.ts && tsx tests/local-data-row-balance.test.ts && tsx tests/local-data-eight-types.test.ts && tsx tests/local-data-mapping-extras.test.ts && tsx tests/local-data-plan.test.ts && tsx tests/local-data-handoff.test.ts && tsx tests/local-data-reuse.test.ts && tsx tests/local-data-conflicts-resolutions.test.ts && tsx tests/local-data-parquet.test.ts && tsx tests/runner-variadic-flags.test.ts && node test/local-data-skill.test.mjs",
75
79
  "verify:self-check-overlay": "node test/self-check-overlay.test.mjs",
76
80
  "verify:update-check": "tsx tests/compat-check.test.ts && tsx test/update-check.test.mjs && node --import tsx --test tests/cli-config-transport.test.ts",
77
81
  "verify:version-sync": "npx tsx tests/version-sync.test.ts && node --import tsx --test tests/compat-check-autosync.test.ts tests/resume-command.test.ts",
@@ -95,10 +99,11 @@
95
99
  "verify:skill-businesses": "node --test test/release-gate-skill-businesses.test.mjs",
96
100
  "verify:notifications": "tsx tests/notification-command.test.ts",
97
101
  "verify:mcp-int64-request": "npx tsx tests/mcp-int64-request.test.ts",
102
+ "verify:cli-source-logging": "node --import tsx --test tests/source-logged-fetch.test.ts",
98
103
  "verify:capability-api": "npx tsx tests/capability-api.test.ts",
99
104
  "verify:community-ux": "npm run build && npx tsx tests/community-ux.test.ts",
100
105
  "verify:community-evidence": "node --import tsx tests/community-evidence.test.ts",
101
- "verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts"
106
+ "verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts tests/business-refresh-skills.test.ts"
102
107
  },
103
108
  "repository": {
104
109
  "type": "git",