@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,7 +1,7 @@
1
1
  ---
2
2
  name: ae-agent
3
- version: 2.1.2
4
- description: "AE Agent platform CLI for Agent, resource package import and export, notification, approval, archived conversation, model, MCP, Skill, attachment, and user-memory work. Use when managing these resources, browsing Agent markets, handling approval requests and tasks, restoring archived conversations, persisting user memory, or answering from user preferences, background, stable workflows, or historical conventions."
3
+ version: 2.1.8
4
+ description: "Invoke AE Agents through A2A with automatic CLI authorization; AE Agent platform CLI for Agent, resource package import and export, notification, approval, archived conversation, model, MCP, Skill, attachment, and user-memory work. Use when managing these resources, browsing Agent markets, handling approval requests and tasks, restoring archived conversations, persisting user memory, or answering from user preferences, background, stable workflows, or historical conventions."
5
5
  ---
6
6
 
7
7
  # ae-agent
@@ -41,6 +41,10 @@ User memory commands live under the `memory` service:
41
41
  ae-cli memory +<command> [options]
42
42
  ```
43
43
 
44
+ ## A2A remote Agent invocation
45
+
46
+ When the user provides an AE A2A link and asks to use that Agent, read [references/a2a.md](references/a2a.md). Use `ae-cli agent a2a +card`, `+send`, `+get`, `list`, `cancel`, and `delete-context` to delegate the task with automatic host-scoped CLI authorization. Never expose the underlying token.
47
+
44
48
  ## Global AE CLI Rules
45
49
 
46
50
  - Use this skill for Agent platform resource management: Agents, generic approvals, archived conversations, models, MCP servers, Skills, attachments, the MCP/Skill market, Agent and Skill approval/share flows, and user memories.
@@ -85,7 +89,17 @@ Use `ae-agent` for all Agent platform resource work:
85
89
 
86
90
  If the user's intent is data analysis, audience management, metadata governance, TeamRuns, or knowledge bases, switch to `ae-analysis` / `ae-engage` / `ae-dataops` / `ae-team` / `ae-kb`. For AE analysis tasks with an active project scope, user requests to remember a wording, asset choice, working definition, or reusable project workflow belong to `ae-analysis` `personal-semantic-preference`, not the `memory` domain.
87
91
 
88
- ## Tool Groups (100 commands)
92
+ ## Tool Groups (106 commands)
93
+
94
+ ### A2A invocation (6)
95
+
96
+ Read [the A2A workflow](references/a2a.md) first.
97
+
98
+ - `a2a +card` — read target capabilities with automatic CLI authorization
99
+ - `a2a +send` — submit a task to the remote AE Agent
100
+ - `a2a +get` — query task status and artifacts
101
+ - `a2a list` — filter and paginate accessible tasks
102
+ - `a2a cancel` / `a2a delete-context` — cancel a task or delete an owned context with high-risk confirmation
89
103
 
90
104
  ### Agents (6)
91
105
 
@@ -383,8 +397,8 @@ ae-cli workspace capability set --workspace-id <agent-space-id> --version <revis
383
397
 
384
398
  ## User Memory Notes
385
399
 
386
- - Only write memory after the user explicitly asks for future persistence, for example by asking to remember or save something, keep it for future conversations, use it next time, or set it as a default. A preference, personal fact, workflow instruction, or answer style is eligible memory content but is not by itself permission to persist it.
387
- - Do not use `memory +create` for a project-scoped AE analysis preference, asset choice, working definition, or reusable workflow. If the current Agent host supplies a project ID, or the conversation has resolved a project for an AE analysis task, switch to `ae-analysis` and use `personal-semantic-preference add|update`; reusable project workflows are `context_type=experience`. Use the memory domain only when no project scope is active or when the user explicitly asks for cross-project memory.
400
+ - This section governs AgentSpace memory, not analysis personal semantics. For AgentSpace memory, only write after the user explicitly asks for future persistence, for example by asking to remember or save something, keep it for future conversations, use it next time, or set it as a default. A preference, personal fact, workflow instruction, or answer style is eligible memory content but is not by itself permission to persist it.
401
+ - Do not use `memory +create` for a project-scoped AE analysis preference, asset choice, working definition, or reusable workflow. If the current Agent host supplies a project ID, or the conversation has resolved a project for an AE analysis task, switch to `ae-analysis` and use `personal-semantic-preference add|update`; reusable project workflows are `context_type=experience`. Analysis-related cross-project preferences, reusable workflows and default query projects use `personal-semantic-preference --project-id -1`; initialize global semantics before selecting a project, then project semantics before querying. Use AgentSpace memory for non-analysis memory only.
388
402
  - Requests scoped to the current conversation or task, such as "next", "for this task", or "in this conversation", must not call a memory write command unless the user also explicitly asks for future persistence. An explicit refusal such as "do not remember" or "do not save this" overrides every other cue. If persistence intent is ambiguous, ask for confirmation before writing.
389
403
  - After explicit persistence intent is established, create memory in the resolved AgentSpace and only report success after the write returns successfully.
390
404
  - Shared-space members submit candidates; Owner/Admin users may activate or review them. Never claim a candidate is active unless the response outcome says so.
@@ -0,0 +1,103 @@
1
+ # Invoke AE Agents through A2A
2
+
3
+ Use these commands when a user asks an external coding Agent to delegate work to an AE Agent through an A2A link. The caller must be able to execute ae-cli. The target must be an AE Agent, and its server must support CLI-token Bearer authentication.
4
+
5
+ The CLI loads the current user's host-scoped CLI credential internally. Never read credential files, print tokens, ask the user to paste a TE token, or construct authenticated curl commands. If authentication is missing, direct the user to `ae-cli auth login --host <AE-host>`.
6
+
7
+ HTTP 401 clears only the selected host's process-local token cache, rereads its credential, and retries once within the same 30-second timeout. The retry preserves the message and JSON-RPC IDs. HTTP 403 is never retried. Stored credentials are not deleted or minted by this recovery; if authorization still fails, log in again for the selected host.
8
+
9
+ ## Workflow
10
+
11
+ 1. Select the authorized AE host. A link alone never authorizes sending credentials to another deployment. For another deployment, use its explicit `--host` and log in there first. The target URL must be inside that host's configured application path (default `/agent`). Redirects are rejected. Card-advertised interface URLs are not followed.
12
+ 2. Read the Card to check the target's capabilities.
13
+ 3. Submit the user's task. This is a write operation: the remote Agent can execute tools on the user's behalf. Use a stable `--message-id` if a submission might need to be retried.
14
+ 4. Read the returned `task.id` and query it until the task reaches a terminal state. Space polls several seconds apart. Preserve and report the task ID if the task is still running when stopping. Never resubmit a task just because it is still running.
15
+ 5. Summarize the returned artifacts/history. `TASK_STATE_COMPLETED` succeeds; `TASK_STATE_FAILED`, `TASK_STATE_CANCELED`, and `TASK_STATE_REJECTED` are terminal failures. For `TASK_STATE_INPUT_REQUIRED`, ask for the required input and send it with the returned `contextId` and task ID. For `TASK_STATE_AUTH_REQUIRED`, report the requested authorization; do not keep polling blindly.
16
+
17
+ ```bash
18
+ ae-cli agent a2a +card --host https://ae.example.com \
19
+ --url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json
20
+
21
+ ae-cli agent a2a +send --host https://ae.example.com \
22
+ --url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json \
23
+ --message 'Summarize the requested data' --message-id REQUEST_UUID
24
+
25
+ ae-cli agent a2a +get --host https://ae.example.com \
26
+ --url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json \
27
+ --id TASK_ID
28
+ ```
29
+
30
+ The default Agent discovery link is `/agent/.well-known/agent-card.json` under the selected application path. `+card` reads that exact URL; `+send` and `+get` map it to `/agent/api/a2a/agents/system-default-agent`. Explicit Agent Card and RPC links remain supported with the same behavior. Custom deployment paths are preserved. Discovery never follows Card-advertised URLs.
31
+
32
+ ```bash
33
+ ae-cli agent a2a +card --host https://ae.example.com \
34
+ --url https://ae.example.com/agent/.well-known/agent-card.json
35
+ ```
36
+
37
+ Transition status: transitional
38
+ Owning module: te-claude A2A
39
+ Current transport: A2A 1.0 JSON-RPC with CLI-token Bearer authentication
40
+ Gateway target: TBD
41
+ Review after: 2026-12-01
42
+ Exit condition: equivalent Gateway capabilities exist; retain typed invocation and host-scoping value when migrating.
43
+
44
+ ## Commands
45
+
46
+ | Command | Risk | Required flags | Optional flags |
47
+ | --- | --- | --- | --- |
48
+ | `agent a2a +card` | read | `--url` | `--host` |
49
+ | `agent a2a +send` | write | `--url`, `--message` | `--host`, `--message-id`, `--context-id`, `--task-id`, `--space-id`, `--model`, `--history-length` |
50
+ | `agent a2a +get` | read | `--url`, `--id` | `--host`, `--history-length` |
51
+ | `agent a2a list` | read | `--url` | `--context-id`, `--status`, `--page-size`, `--page-token`, `--history-length`, `--status-timestamp-after`, `--include-artifacts` |
52
+ | `agent a2a cancel` | high-risk-write | `--url`, `--id` | `--yes` |
53
+ | `agent a2a delete-context` | high-risk-write | `--url`, `--context-id` | `--yes` |
54
+
55
+ Card and JSON-RPC endpoint URLs are accepted. All commands support global `--dry-run`, which previews the request without loading credentials or making an A2A request. `+send` uses `configuration.returnImmediately: true`; `+get` uses the JSON-RPC `GetTask` method. Results retain the server's A2A shape inside the normal CLI output envelope. No streaming or third-party authentication is provided.
56
+
57
+ The source contract is the AE server's `src/lib/a2a/protocol.ts`, `http.ts`, and `service.ts`: `A2A-Version: 1.0`, `Authorization: Bearer <CLI token>`, JSON-RPC 2.0 `SendMessage` / `GetTask`, and `/api/a2a/agents/<id>/agent-card.json` under the configured application path.
58
+
59
+ ## Workspace and model selection
60
+
61
+ Read `capabilities.extensions` in `+card` first. The extension URI
62
+ `https://thinkingdata.cn/a2a/extensions/agent-evaluation/v1` advertises
63
+ `params.spaceSelection.spaces` and `params.modelSelection.models`. Use exact
64
+ IDs from these lists, not display names. Model switching must be advertised;
65
+ a fixed Agent only accepts its configured model. Space IDs contain 1–191
66
+ letters, digits, underscores or hyphens.
67
+
68
+ ```bash
69
+ ae-cli agent a2a +send --host https://ae.example.com \
70
+ --url https://ae.example.com/agent/.well-known/agent-card.json \
71
+ --message 'Summarize the requested data' --space-id SPACE_ID --model MODEL_ID \
72
+ --message-id REQUEST_UUID --history-length 0 --dry-run
73
+ ```
74
+
75
+ `--space-id` maps to `message.metadata[extensionURI].agentSpaceId` and
76
+ `--model` to `.model`. The CLI sends both `message.extensions` and the
77
+ `A2A-Extensions` request header. Without these flags the old payload and headers
78
+ remain unchanged. No evaluation source is fabricated. Space/model authorization
79
+ is enforced by the server. For continuations using `--context-id` or `--task-id`, omit `--space-id` or
80
+ repeat the original workspace ID. The server checks that a supplied workspace
81
+ matches the existing conversation and rejects changes. Replies with `--task-id`
82
+ cannot select a model. Keep selections unchanged when retrying a
83
+ message ID. An older server may reject these optional extensions; omit the
84
+ selection flags to retain the previous invocation contract.
85
+
86
+ `--history-length` is a non-negative integer; zero suppresses history and the
87
+ server caps returned history at 100. `list` uses `ListTasks`, returns one page,
88
+ and preserves `nextPageToken`; reuse the same filters on subsequent pages.
89
+ `--page-size` is 1–100. `--status` uses the exact `TASK_STATE_*` enum from the
90
+ protocol. `--include-artifacts false` explicitly excludes artifacts.
91
+
92
+ `cancel` sends `CancelTask`. `delete-context` sends `DeleteContext` with the
93
+ context-lifecycle extension header; inspect the Card for support first.
94
+ Both require high-risk confirmation, or `--yes` after explicit user approval.
95
+
96
+ ## Server capability coverage
97
+
98
+ The current server also offers `SendStreamingMessage`, `SubscribeToTask`,
99
+ registered attachment transfer and signed inter-Agent delegation. These require
100
+ SSE/file/proof lifecycles and are not exposed by these JSON commands. Continue
101
+ using `+send` and `+get` for asynchronous text tasks. Push notifications and
102
+ extended Agent Cards are explicitly unsupported by the server. Do not invent
103
+ metadata or credentials to simulate any of these capabilities.
@@ -32,3 +32,14 @@ This index provides command-level risk metadata for Agent distribution and gener
32
32
  | `ae-cli agent resource-package download` | CLI-token resource package REST | read | resource-package.md |
33
33
  | `ae-cli agent resource-package cancel` | CLI-token resource package REST | high-risk-write | resource-package.md |
34
34
  | `ae-cli agent resource-package retry` | CLI-token resource package REST | write | resource-package.md |
35
+
36
+ ## A2A invocation
37
+
38
+ | CLI command | Transport | Risk | Reference |
39
+ | --- | --- | --- | --- |
40
+ | `ae-cli agent a2a +card` | A2A 1.0 Bearer CLI token | read | a2a.md |
41
+ | `ae-cli agent a2a +send` | A2A 1.0 JSON-RPC | write | a2a.md |
42
+ | `ae-cli agent a2a +get` | A2A 1.0 JSON-RPC | read | a2a.md |
43
+ | `ae-cli agent a2a list` | A2A 1.0 JSON-RPC | read | a2a.md |
44
+ | `ae-cli agent a2a cancel` | A2A 1.0 JSON-RPC | high-risk-write | a2a.md |
45
+ | `ae-cli agent a2a delete-context` | A2A context lifecycle extension | high-risk-write | a2a.md |
@@ -0,0 +1,179 @@
1
+ ---
2
+ name: ae-ai-monitor
3
+ version: 1.1.1
4
+ description: "Read AI Monitor traces, conversations, formal Bad Traces, overview and Agent/Tool/Model/Skill metrics, cost, security findings, existing diagnosis and investigation reports. Use for scoped observability queries and verified ZIP exports; never creates or cancels analysis."
5
+ metadata:
6
+ requires:
7
+ bins: ["ae-cli"]
8
+ ---
9
+
10
+ # AI Monitor Read Workflows
11
+
12
+ AI Monitor belongs to the Agent component. Local CLI commands and this Skill follow the selected AE environment's Agent availability; an explicitly disabled Agent component hides the commands and removes the CLI-installed Skill. Missing business state retains compatibility with older servers.
13
+
14
+ Use either installed entrypoint; they share the same `@tant/ae-cli` version, host configuration, and CLI token:
15
+
16
+ ```bash
17
+ ae-cli ai-monitor trace list
18
+ ai-monitor trace list
19
+ ```
20
+
21
+ Authenticate with `ae-cli auth login` before running trace commands. Access is limited to the authenticated user's own company and requires `root` or `monitor_admin`. Do not attempt alternate credentials or scopes after a permission denial.
22
+
23
+ For an externally provisioned CLI token, both entrypoints accept `--cli-token-file <path>`. The read-only JSON file must contain `url` and `token`; the explicit file takes precedence over environment credentials and stored accounts. If `--host` is supplied, it must match the file's URL. Invalid credentials fail without falling back to another account. Pass only the file path, never the token value, on the command line. Agent runners can use the same internal `--agent-context` argument with either entrypoint; normal queries do not require it.
24
+
25
+ ## Choose the Agent platform and runtime environment
26
+
27
+ `data-token` is an internal key for an Agent platform/framework instance. `report-source` is an internal key for a runtime/cluster environment. Do not guess either key and do not treat a Report Source as a business-agent filter.
28
+
29
+ Discover the account's available choices first when the platform or environment is unknown:
30
+
31
+ ```bash
32
+ ai-monitor platform list --format json
33
+ ```
34
+
35
+ The result contains `platform_name` and nested `environment_name` values. Trace commands accept either these display names or their corresponding IDs:
36
+
37
+ ```bash
38
+ ai-monitor trace list --platform "TE Claude Hub" --environment "海外环境"
39
+ ```
40
+
41
+ When no scope flags are supplied, the CLI automatically selects the only available platform/environment. If there are multiple choices, stop and use the values returned by `platform list`; do not invent keys. If both `--platform` and `--environment` are already known, pass them directly in the target command; do not run `platform list` first. `--platform` and `--environment` cannot be mixed with the advanced compatibility flags `--data-token` and `--report-source`.
42
+
43
+ For machine use, successful commands write a JSON envelope to stdout:
44
+
45
+ ```json
46
+ {"ok":true,"data":{},"meta":{}}
47
+ ```
48
+
49
+ Failures use `{"ok":false,"error":{"type":"...","code":"...","message":"...","hint":"..."},"meta":{}}` and exit nonzero. Keep stdout for JSON only; diagnostics are on stderr. Do not retry 401/403 errors with guessed credentials or another company scope.
50
+
51
+ ## List traces
52
+
53
+ Start with a bounded list. The CLI discovers the data scope before execution. The default lookback is seven days and the default page size is 20:
54
+
55
+ ```bash
56
+ ai-monitor trace list --jq '.items[] | {trace_id, start_time, status}'
57
+ ```
58
+
59
+ Use `--start-date YYYY-MM-DD --end-date YYYY-MM-DD` together for an explicit inclusive range. Use `--limit` and `--offset` for pagination. Trace and Conversation lists accept `--sort-by recorded-costs`; recorded amounts sort within fee-unit groups, without summing across currencies. Prefer `--platform` and `--environment`; use `--data-token` and `--report-source` only for backward-compatible, explicitly documented raw keys.
60
+
61
+ ## Get one trace
62
+
63
+ Copy an exact `trace_id` from list output:
64
+
65
+ ```bash
66
+ ai-monitor trace get --trace-id <trace_id> --platform "<same platform>" --environment "<same environment>"
67
+ ```
68
+
69
+ Reuse the same scope selected for the list request when more than one platform or environment is available. Do not switch scope while resolving a trace ID.
70
+
71
+ The response includes snapshot completeness, limitations, trace metadata, and spans. Treat `TRACE_NOT_FOUND_OR_OUT_OF_SCOPE` as either absent or inaccessible; do not infer that a trace exists in another company.
72
+
73
+ ## Count traces
74
+
75
+ Use `trace count` when only the total is needed. It applies the same scope, date, agent, channel, and search filters as `trace list`, but does not fetch trace rows and has no pagination or sorting options:
76
+
77
+ ```bash
78
+ ai-monitor trace count --platform "TE Claude Hub" --environment "海外环境" --last-days 7
79
+ ```
80
+
81
+ For identical scope and filters, `data.count` is the same total used by `trace list` as `data.page.total`. Use `--jq '.count'` when an agent needs only the number.
82
+
83
+ ## List and get conversations
84
+
85
+ Use conversations when the request concerns a multi-turn Agent session rather than one Trace:
86
+
87
+ ```bash
88
+ ai-monitor conversation list --platform "TE Claude Hub" --environment "agent007" --last-days 7
89
+ ai-monitor conversation get --conversation-id <te_agent_conversation_id> --platform "TE Claude Hub" --environment "agent007"
90
+ ```
91
+
92
+ `conversation list` returns each Conversation ID in `data.items[].te_agent_conversation_id`. Pass that exact value to `conversation get --conversation-id`. The detail response returns the selected ID as `data.conversation_id`; list items do not have a `conversation_id` field.
93
+
94
+ The `--jq` expression runs against `data`, so extract IDs from a bounded list with:
95
+
96
+ ```bash
97
+ ai-monitor conversation list --platform "TE Claude Hub" --environment "agent007" --last-days 7 --limit 20 --jq '.items[].te_agent_conversation_id'
98
+ ```
99
+
100
+ `conversation list` supports date, Agent, Channel, search, pagination, and sorting options. `conversation get` returns the Trace records belonging to one Conversation. Reuse the same scope when moving from list to get; do not use a Conversation ID as a Trace ID.
101
+
102
+ ## Count conversations
103
+
104
+ When the user asks only for a conversation count, use the dedicated count command instead of `conversation list --limit 1`. It runs a count-only query, returns no conversation rows, and accepts the same date, Agent, Channel, and search filters:
105
+
106
+ ```bash
107
+ ai-monitor conversation count --platform "TE Claude Hub" --environment "agent007" --start-date 2026-09-28 --end-date 2026-09-28 --jq '.count'
108
+ ```
109
+
110
+ Always make the scope and date range explicit for a count request when more than one platform/environment is available. Do not retry a successful count by listing rows just to verify the number. A missing scope, 401/403, or 503 is an actionable error; classify it before deciding whether another request is appropriate.
111
+
112
+ ## Output and safety
113
+
114
+ - Commands are read-only and return structured JSON by default.
115
+ - Use `--format table` only for human display and `--jq` for machine selection.
116
+ - Keep list calls bounded (`--limit` at most 100) and use `--offset` for additional pages.
117
+ - For automation, run `platform list` once per session and pass the returned display name or ID explicitly when more than one choice exists.
118
+ - For count-only requests, use `conversation count` or `trace count`; do not infer totals from a paginated list.
119
+ - Keep the same platform/environment across related list, count, and get calls, and include the effective date range in the response.
120
+ - Never place `cli-token` in command flags or output.
121
+ - `__default__` is a real Report Source value, not a wildcard.
122
+
123
+ ## Advanced filters and formal Bad Traces
124
+
125
+ `trace list/count` and `conversation list/count` also accept `--status`, `--user-cancelled true|false`, `--filter-groups` JSON, and `--quality-flags` JSON. List and count use the same filters. Filters combine with AND; a page filter tree can express nested AND/OR. Conversation filters select Trace rows before aggregating them, so its totals describe the matching Trace subset. See the [complete command reference](references/read-commands.md) for field names and operators.
126
+
127
+ ```bash
128
+ ai-monitor trace count --platform "<platform>" --environment "<environment>" --status STATUS_CODE_ERROR --user-cancelled false --start-date 2026-11-03 --end-date 2026-11-03
129
+ ai-monitor bad-trace list --platform "<platform>" --environment "<environment>" --quality-flags '["l2_infra_instant_death"]' --start-date 2026-11-03 --end-date 2026-11-03 --limit 10
130
+ ai-monitor bad-trace get --platform "<platform>" --environment "<environment>" --trace-id <trace_id>
131
+ ```
132
+
133
+ Bad Trace queries use the formal warehouse tags and observation date (`pd`). Their date is not Trace start time. `l2_infra_instant_death` is the product's startup-failure indicator, not a confirmed root cause. Do not infer startup failure from any error, abort text, or error Span. Explicit user cancellation is a separate classification based on the product's specific user-cancellation message. Successful final status can coexist with failed intermediate Spans.
134
+
135
+ Trace quality has `available`, `availability` (`available`, `not_found`, or `unavailable`), `flags`, `matched_flags`, `evidence`, and `stats_date`. Neither `not_found` nor `unavailable`, nor a null flag, proves that a tag is false. Without `--quality-flags`, a failed quality-metadata lookup can return the same base data with `QUALITY_METADATA_UNAVAILABLE` in limitations; a Trace snapshot is then `PARTIAL`. When `--quality-flags` is supplied, the query cannot fall back to unfiltered base data and fails if formal quality metadata is unavailable. Preserve completeness, coverage, warnings, and limitations when explaining results. Trace summary Span counts exclude the Agent root while the detail Span array includes it.
136
+
137
+ ## Overview, execution, cost and security
138
+
139
+ Use scoped read commands to move from overview to exact observed entities. Copy IDs and names from responses; keep the same scope.
140
+
141
+ ```bash
142
+ ai-monitor overview get --platform "<platform>" --environment "<environment>" --last-days 7
143
+ ai-monitor agent get --platform "<platform>" --environment "<environment>" --agent "<agent name>" --last-days 7
144
+ ai-monitor tool calls --platform "<platform>" --environment "<environment>" --tool-name "<tool name>" --last-days 7 --limit 10
145
+ ai-monitor model list --platform "<platform>" --environment "<environment>" --has-issue true --limit 10
146
+ ai-monitor skill traces --platform "<platform>" --environment "<environment>" --skill-name "<skill name>" --last-days 7 --limit 10
147
+ ai-monitor cost actual-summary --platform "<platform>" --environment "<environment>" --start 2026-11-01 --end 2026-11-04
148
+ ai-monitor security issues --platform "<platform>" --environment "<environment>" --decision pending --limit 10
149
+ ```
150
+
151
+ Cost intervals are **[start, end)**, at most 90 days; Token totals and recorded monetary amounts are different measures. Preserve monetary units, decimal strings, coverage and unavailable states. `cost report-list` uses inclusive `--period-start/--period-end` to filter existing reports instead. `model list` is the latest snapshot and has no date flags. Security list commands use the exact response cursor fields; do not invent timestamps or mix cursor pairs. Security reads do not review issues, modify rules, or create audit tasks.
152
+
153
+ ## Existing diagnosis and investigation tasks
154
+
155
+ ```bash
156
+ ai-monitor diagnosis queue --platform "<platform>" --environment "<environment>" --limit 20
157
+ ai-monitor diagnosis list --platform "<platform>" --environment "<environment>" --entity-type trace --entity-key <trace_id>
158
+ ai-monitor diagnosis get --platform "<platform>" --environment "<environment>" --task-id <task_id>
159
+ ai-monitor diagnosis report --platform "<platform>" --environment "<environment>" --entity-type conversation --entity-key <conversation_id>
160
+ ai-monitor investigation modes --platform "<platform>" --environment "<environment>" --entity-type trace
161
+ ai-monitor investigation list --platform "<platform>" --environment "<environment>" --analysis-mode bad_case_commonality --limit 20
162
+ ai-monitor investigation run-get --platform "<platform>" --environment "<environment>" --case-id <case_id> --run-id <run_id>
163
+ ```
164
+
165
+ These commands read existing state and results. They never create, retry, or cancel a diagnosis. Read `diagnosis get` again only when checking an active task; queued/running is not success, and failed/skipped/cancelled is not an empty report. Investigation cases have multiple runs; use the exact run ID for result/status correlation. A completed run may still return partial evidence or limitations. Bad Case commonality uses human-selected Bad/Good samples; it is distinct from formal Bad Trace classification.
166
+
167
+ ## Conversation spans and ZIP exports
168
+
169
+ ```bash
170
+ ai-monitor conversation get --conversation-id <conversation_id> --platform "<platform>" --environment "<environment>" --include-spans --span-limit 20 --span-offset 0
171
+ ai-monitor trace export --platform "<platform>" --environment "<environment>" --trace-ids '["<trace_id>"]' --output ./traces.zip
172
+ ai-monitor conversation export --platform "<platform>" --environment "<environment>" --conversation-ids '["<conversation_id>"]' --output ./conversations.zip
173
+ ```
174
+
175
+ Conversation detail retains `items` and `total`; opt-in spans add `trace_snapshots`, `trace_failures`, `spans_page`, `spans_completeness`, and `spans_limitations`. Pagination can mean PARTIAL/PAGINATED even without query failures. Use the next span offset or bounded ZIP export for more data.
176
+
177
+ Exports accept at most 100 Trace IDs or 20 Conversation IDs (at most 200 Traces per conversation batch). Choose a new local `--output` path. The CLI checks byte length and SHA-256, writes with mode 0600, refuses existing files/symlinks, and prints only file metadata and the manifest. Check partial failures in the manifest even after exit 0. `--validate` and `--dry-run` do not create a file; they are alternative prechecks, not steps to call together. Use smaller batches when backend limits or upstream timeouts are reached.
178
+
179
+ All 64 command paths, parameters, defaults and capability mappings are in the [read command reference](references/read-commands.md). This extends the existing `ae-ai-monitor` Skill and retains both CLI entrypoints.