@thinkingai/ae-cli 6.1.29 → 6.1.32

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 (265) hide show
  1. package/README.md +11 -5
  2. package/README.zh.md +11 -5
  3. package/bin/ai-monitor.js +2 -0
  4. package/dist/ai-monitor-MKMHSSNI.js +32 -0
  5. package/dist/ai-monitor.js +135 -0
  6. package/dist/{auth-OBQ5KVQM.js → auth-CZHHPZOQ.js} +12 -11
  7. package/dist/{automation-NAR5DDGL.js → automation-FLCPFMN4.js} +5 -5
  8. package/dist/{capability-LFSVNI5B.js → capability-64KVJFIA.js} +28 -32
  9. package/dist/{chunk-IN7KKL6K.js → chunk-2F64AZYH.js} +1 -1
  10. package/dist/{chunk-QZLRHGVH.js → chunk-3ULDJJTZ.js} +1 -1
  11. package/dist/{chunk-JNVVJ273.js → chunk-4PSTYEG5.js} +5 -10
  12. package/dist/{chunk-3SDHJOCR.js → chunk-4XKTRCRK.js} +16 -16
  13. package/dist/{chunk-RJHGDWSC.js → chunk-5M5LBRR3.js} +2 -2
  14. package/dist/chunk-6M7ZEDT2.js +182 -0
  15. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  16. package/dist/chunk-BNBCMCYN.js +563 -0
  17. package/dist/chunk-CF6JTT2U.js +64 -0
  18. package/dist/{chunk-2UW3Y463.js → chunk-DWBYNGSR.js} +565 -315
  19. package/dist/{chunk-N6XBLRB7.js → chunk-F2VFZUGG.js} +2 -2
  20. package/dist/{chunk-CVCTFLSO.js → chunk-FCAA7I2D.js} +3 -3
  21. package/dist/{chunk-H3K5UGYC.js → chunk-HTZ2MLYA.js} +48 -22
  22. package/dist/{chunk-QZUVLFNR.js → chunk-HVMCPKOZ.js} +1 -1
  23. package/dist/chunk-IDDWEZ7F.js +1285 -0
  24. package/dist/{chunk-7JAVT5TK.js → chunk-KTJXD27G.js} +2 -2
  25. package/dist/{chunk-6HAUVWOQ.js → chunk-NLEXY2TM.js} +48 -13
  26. package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
  27. package/dist/{chunk-PWXDWMCW.js → chunk-T7WF4HYW.js} +84 -32
  28. package/dist/{chunk-VCZE3IWO.js → chunk-TMQGS4TO.js} +15 -10
  29. package/dist/{compat-check-CII6B74E.js → compat-check-ZJNCMNQV.js} +3 -3
  30. package/dist/{config-YZ6O2UQ2.js → config-FSH2NMNZ.js} +26 -13
  31. package/dist/{context-F6FCGTF3.js → context-YAQG6YQC.js} +3 -3
  32. package/dist/{data-integration-6UAZO4GG.js → data-integration-QE37EQ3A.js} +1 -1
  33. package/dist/{evaluation-4LO2O4AF.js → evaluation-2JSF4V47.js} +13 -158
  34. package/dist/index.js +84 -586
  35. package/dist/{memory-HHPX3NF2.js → memory-VEZZVAAP.js} +5 -5
  36. package/dist/{metadata-TIFY24LW.js → metadata-3IWHX3V4.js} +8 -8
  37. package/dist/{model-7UHGWYVR.js → model-T7H7Q6BG.js} +3 -3
  38. package/dist/{personal-semantic-preference-WKJEGPTM.js → personal-semantic-preference-YITU23SA.js} +7 -7
  39. package/dist/{project-semantic-EIQVZNHW.js → project-semantic-MHEXJF3C.js} +16 -14
  40. package/dist/{sync-RV3OPCTI.js → sync-AQHVCSPI.js} +5 -5
  41. package/dist/{te-agent-5ENVZJUH.js → te-agent-RXI7WOH4.js} +6 -6
  42. package/dist/{te-analysis-USIK6ZZG.js → te-analysis-CZY74HVF.js} +381 -192
  43. package/dist/{te-community-WE2UU4XV.js → te-community-DKCYUBCM.js} +7 -7
  44. package/dist/{te-dataops-XNMO7MBF.js → te-dataops-QEH6VE56.js} +5 -5
  45. package/dist/{te-engage-6C3HCFQR.js → te-engage-WK7WKDKF.js} +7 -7
  46. package/dist/{te-experiment-LVTRI3QK.js → te-experiment-LH3RPIOE.js} +275 -30
  47. package/dist/{te-kb-TUPGMVBY.js → te-kb-UPORIOVN.js} +17 -8
  48. package/dist/{te-system-YM657FKO.js → te-system-AL4B4XZL.js} +3 -3
  49. package/dist/{te-team-G4VEJJNL.js → te-team-LLVTO2G4.js} +6 -6
  50. package/dist/{things-22KQWC23.js → things-XLMLBYQR.js} +6 -6
  51. package/dist/{update-XX4ILU7X.js → update-7J5UQHSK.js} +4 -4
  52. package/dist/{workspace-LYDAP647.js → workspace-FF2HXJGR.js} +5 -5
  53. package/package.json +9 -7
  54. package/skills/ae-ai-monitor/SKILL.md +179 -0
  55. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  56. package/skills/ae-analysis/SKILL.md +10 -4
  57. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  58. package/skills/ae-analysis/references/ai_models/path.md +5 -6
  59. package/skills/ae-analysis/references/ai_models.md +1 -0
  60. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  61. package/skills/ae-analysis/references/asset_search.md +1 -1
  62. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  63. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  64. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  65. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  66. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  67. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  68. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  69. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  70. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  71. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  72. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  73. package/skills/ae-analysis/references/catalog_list.md +2 -0
  74. package/skills/ae-analysis/references/command_index.md +38 -29
  75. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  76. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  77. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  78. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  79. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  80. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  81. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  82. package/skills/ae-analysis/references/folder_share.md +8 -2
  83. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  84. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  85. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  86. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  87. package/skills/ae-analysis/references/project_member_add.md +3 -1
  88. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  89. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  90. package/skills/ae-analysis/references/project_member_update.md +3 -1
  91. package/skills/ae-analysis/references/project_owner_update.md +3 -1
  92. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  93. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  94. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  95. package/skills/ae-analysis/references/project_space_share.md +8 -2
  96. package/skills/ae-analysis/references/property_get.md +2 -0
  97. package/skills/ae-analysis/references/public_link_list.md +3 -1
  98. package/skills/ae-analysis/references/query_cancel.md +4 -1
  99. package/skills/ae-analysis/references/report_data_run.md +1 -1
  100. package/skills/ae-analysis/references/report_list.md +3 -3
  101. package/skills/ae-analysis/references/scenario_append.md +2 -2
  102. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  103. package/skills/ae-analysis/references/scenario_list.md +2 -1
  104. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  105. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  106. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  107. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  108. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  109. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  110. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  111. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  112. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  113. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  114. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  115. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  116. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  117. package/skills/ae-automation/SKILL.md +4 -2
  118. package/skills/ae-capability/SKILL.md +9 -5
  119. package/skills/ae-community/SKILL.md +1 -0
  120. package/skills/ae-dataops/SKILL.md +1 -0
  121. package/skills/ae-engage/SKILL.md +1 -0
  122. package/skills/ae-evaluation/SKILL.md +17 -2
  123. package/skills/ae-experiment/SKILL.md +38 -11
  124. package/skills/ae-experiment/references/experiment_approval.md +171 -0
  125. package/skills/ae-experiment/references/manage_experiment.md +11 -2
  126. package/skills/ae-experiment/references/save_experiment.md +28 -8
  127. package/skills/ae-experiment/references/save_submit_experiment.md +18 -3
  128. package/skills/ae-experiment/references/save_submit_external_experiment.md +57 -3
  129. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  130. package/skills/ae-kb/SKILL.md +9 -5
  131. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  132. package/skills/ae-kb/references/query-workflow.md +9 -6
  133. package/skills/ae-kb/references/versions.md +1 -1
  134. package/skills/ae-kb-discovery/SKILL.md +15 -6
  135. package/skills/ae-metadata/SKILL.md +1 -0
  136. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  137. package/skills/ae-team/SKILL.md +1 -1
  138. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  139. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  140. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  141. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  142. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  143. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  144. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  145. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  146. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  147. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  148. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  149. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  150. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  151. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  152. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  153. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  154. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  155. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  156. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  157. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  158. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  159. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  160. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  161. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  162. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  163. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  164. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  165. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  166. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  167. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  168. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  169. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  170. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  171. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  172. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  173. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  174. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  175. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  176. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  177. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  178. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  179. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  180. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  181. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  182. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  183. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  184. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  185. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  186. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  187. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  188. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  189. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  190. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  191. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  192. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  193. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  194. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  195. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  196. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  197. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  198. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  199. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  200. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  201. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  202. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  203. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  204. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  205. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  206. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  207. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  208. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  209. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  210. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  211. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  212. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  213. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  214. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  215. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  216. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  217. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  218. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  219. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  220. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  221. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  222. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  223. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  224. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  225. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  226. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  227. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  228. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  229. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  230. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  231. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  232. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  233. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  234. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  235. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  236. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  237. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  238. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  239. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  240. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  241. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  242. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  243. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  244. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  245. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  246. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  247. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  248. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  249. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  250. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  251. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  252. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  253. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  254. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  255. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  256. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  257. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  258. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  259. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  260. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  261. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  262. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  263. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  264. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  265. package/dist/chunk-AMBFK2K3.js +0 -28
@@ -2,16 +2,16 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getAuthHeaders,
4
4
  kbApi
5
- } from "./chunk-CVCTFLSO.js";
5
+ } from "./chunk-FCAA7I2D.js";
6
6
  import {
7
7
  printError,
8
8
  printOutput
9
- } from "./chunk-QZLRHGVH.js";
10
- import "./chunk-3SDHJOCR.js";
9
+ } from "./chunk-3ULDJJTZ.js";
10
+ import "./chunk-4XKTRCRK.js";
11
11
  import "./chunk-Y74WTIKJ.js";
12
- import "./chunk-2UW3Y463.js";
13
- import "./chunk-H3K5UGYC.js";
14
- import "./chunk-JNVVJ273.js";
12
+ import "./chunk-DWBYNGSR.js";
13
+ import "./chunk-HTZ2MLYA.js";
14
+ import "./chunk-4PSTYEG5.js";
15
15
  import {
16
16
  externalCliTokenRequestOptions,
17
17
  redactExternalCliToken
@@ -1,17 +1,17 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveMemoryApiBaseUrl
4
- } from "./chunk-QZUVLFNR.js";
5
- import "./chunk-N6XBLRB7.js";
6
- import "./chunk-RJHGDWSC.js";
4
+ } from "./chunk-HVMCPKOZ.js";
5
+ import "./chunk-F2VFZUGG.js";
6
+ import "./chunk-5M5LBRR3.js";
7
7
  import {
8
8
  CapabilityGatewayError,
9
9
  buildCapabilityGatewayUrl,
10
10
  callCapabilityApi
11
- } from "./chunk-3SDHJOCR.js";
11
+ } from "./chunk-4XKTRCRK.js";
12
12
  import "./chunk-Y74WTIKJ.js";
13
- import "./chunk-H3K5UGYC.js";
14
- import "./chunk-JNVVJ273.js";
13
+ import "./chunk-HTZ2MLYA.js";
14
+ import "./chunk-4PSTYEG5.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-Z3Q2AEIN.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  printError,
7
7
  printOutput
8
- } from "./chunk-QZLRHGVH.js";
8
+ } from "./chunk-3ULDJJTZ.js";
9
9
  import {
10
10
  buildVersionInstallPlan,
11
11
  exactVersion,
@@ -17,13 +17,13 @@ import {
17
17
  installVersion,
18
18
  recordVersionSyncResult,
19
19
  rememberBusinessConfig
20
- } from "./chunk-2UW3Y463.js";
20
+ } from "./chunk-DWBYNGSR.js";
21
21
  import {
22
22
  peekCliToken
23
- } from "./chunk-H3K5UGYC.js";
23
+ } from "./chunk-HTZ2MLYA.js";
24
24
  import {
25
25
  getActiveHost
26
- } from "./chunk-JNVVJ273.js";
26
+ } from "./chunk-4PSTYEG5.js";
27
27
  import "./chunk-Z3Q2AEIN.js";
28
28
 
29
29
  // src/commands/update.ts
@@ -13,15 +13,15 @@ import {
13
13
  workspaceResourcePath,
14
14
  workspaceTargetFlags,
15
15
  workspaceTargetPath
16
- } from "./chunk-7JAVT5TK.js";
16
+ } from "./chunk-KTJXD27G.js";
17
17
  import "./chunk-RK6GLDGI.js";
18
18
  import {
19
19
  getAgentBuffer
20
- } from "./chunk-N6XBLRB7.js";
21
- import "./chunk-RJHGDWSC.js";
20
+ } from "./chunk-F2VFZUGG.js";
21
+ import "./chunk-5M5LBRR3.js";
22
22
  import "./chunk-Y74WTIKJ.js";
23
- import "./chunk-H3K5UGYC.js";
24
- import "./chunk-JNVVJ273.js";
23
+ import "./chunk-HTZ2MLYA.js";
24
+ import "./chunk-4PSTYEG5.js";
25
25
  import {
26
26
  CliValidationError
27
27
  } from "./chunk-Z3Q2AEIN.js";
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@thinkingai/ae-cli",
3
- "version": "6.1.29",
3
+ "version": "6.1.32",
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",
@@ -42,15 +43,16 @@
42
43
  "verify:output-contract": "tsx tests/output-contract.test.ts",
43
44
  "verify:analysis-cluster-routing": "node scripts/verify-analysis-cluster-routing.mjs",
44
45
  "verify:metadata-capability": "npx tsx test/metadata-capability-commands.test.mjs",
46
+ "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
47
  "verify:community-capability": "node test/community-capability-routing.test.mjs",
46
48
  "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
49
  "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",
48
50
  "verify:retired-analysis-commands": "node --test test/retired-analysis-commands.test.mjs",
49
51
  "verify:retired-api-command": "node --test test/retired-api-command.test.mjs",
50
52
  "verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
51
- "verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs",
53
+ "verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs && node --import tsx --test test/experiment/experiment-approval-command.test.mjs",
52
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",
53
- "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",
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",
54
56
  "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
57
  "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",
56
58
  "verify:agent-context": "tsx tests/agent-context-command.test.ts",
@@ -72,7 +74,7 @@
72
74
  "verify:page-context": "node --test test/page-context-skill.test.mjs test/page-context-references.test.mjs test/internal-skill-distribution.test.mjs",
73
75
  "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",
74
76
  "verify:skill-migration-e2e": "node test/ae-migrate-tracking-code/e2e/diff.mjs",
75
- "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",
77
+ "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",
76
78
  "verify:self-check-overlay": "node test/self-check-overlay.test.mjs",
77
79
  "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",
78
80
  "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",
@@ -100,7 +102,7 @@
100
102
  "verify:capability-api": "npx tsx tests/capability-api.test.ts",
101
103
  "verify:community-ux": "npm run build && npx tsx tests/community-ux.test.ts",
102
104
  "verify:community-evidence": "node --import tsx tests/community-evidence.test.ts",
103
- "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"
105
+ "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"
104
106
  },
105
107
  "repository": {
106
108
  "type": "git",
@@ -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.