@thinkingai/ae-cli 6.1.30 → 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 (261) 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-ADZHUIJR.js → auth-CZHHPZOQ.js} +10 -9
  7. package/dist/{automation-FD2QZUP6.js → automation-FLCPFMN4.js} +4 -4
  8. package/dist/{capability-QXFRJYZD.js → capability-64KVJFIA.js} +27 -31
  9. package/dist/{chunk-YULUBP3R.js → chunk-3ULDJJTZ.js} +1 -1
  10. package/dist/{chunk-HRUOV6EQ.js → chunk-4XKTRCRK.js} +15 -15
  11. package/dist/{chunk-JSBLCLFE.js → chunk-5M5LBRR3.js} +1 -1
  12. package/dist/chunk-6M7ZEDT2.js +182 -0
  13. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  14. package/dist/chunk-BNBCMCYN.js +563 -0
  15. package/dist/chunk-CF6JTT2U.js +64 -0
  16. package/dist/{chunk-CG773QXN.js → chunk-DWBYNGSR.js} +564 -314
  17. package/dist/{chunk-VDICGXCY.js → chunk-F2VFZUGG.js} +2 -2
  18. package/dist/{chunk-TFORY6WY.js → chunk-FCAA7I2D.js} +2 -2
  19. package/dist/{chunk-SOSFRU3O.js → chunk-HTZ2MLYA.js} +47 -21
  20. package/dist/{chunk-AWVZTN2B.js → chunk-HVMCPKOZ.js} +1 -1
  21. package/dist/chunk-IDDWEZ7F.js +1285 -0
  22. package/dist/{chunk-E25OSZLJ.js → chunk-KTJXD27G.js} +2 -2
  23. package/dist/{chunk-AVXDJAFC.js → chunk-NLEXY2TM.js} +47 -12
  24. package/dist/{chunk-YVG6QD3V.js → chunk-P7QDCWJ6.js} +98 -7
  25. package/dist/{chunk-EUFP4M2A.js → chunk-T7WF4HYW.js} +84 -32
  26. package/dist/{chunk-Y3AM6LIO.js → chunk-TMQGS4TO.js} +15 -10
  27. package/dist/{compat-check-HERBTQZN.js → compat-check-ZJNCMNQV.js} +2 -2
  28. package/dist/{config-E3KANXMK.js → config-FSH2NMNZ.js} +25 -12
  29. package/dist/{context-CDB5H5PD.js → context-YAQG6YQC.js} +2 -2
  30. package/dist/{evaluation-LR4YDYWL.js → evaluation-2JSF4V47.js} +13 -158
  31. package/dist/index.js +81 -583
  32. package/dist/{memory-SNFR5M23.js → memory-VEZZVAAP.js} +4 -4
  33. package/dist/{metadata-EXQYDZTH.js → metadata-3IWHX3V4.js} +7 -7
  34. package/dist/{model-KEVCEXWD.js → model-T7H7Q6BG.js} +2 -2
  35. package/dist/{personal-semantic-preference-ETY3KU2O.js → personal-semantic-preference-YITU23SA.js} +6 -6
  36. package/dist/{project-semantic-UHRMVOJF.js → project-semantic-MHEXJF3C.js} +15 -13
  37. package/dist/{sync-XKEBXESC.js → sync-AQHVCSPI.js} +4 -4
  38. package/dist/{te-agent-S6UQR4IE.js → te-agent-RXI7WOH4.js} +5 -5
  39. package/dist/{te-analysis-WOFFCIBC.js → te-analysis-CZY74HVF.js} +380 -191
  40. package/dist/{te-community-R7B6QYOO.js → te-community-DKCYUBCM.js} +6 -6
  41. package/dist/{te-dataops-KPILYVHA.js → te-dataops-QEH6VE56.js} +3 -3
  42. package/dist/{te-engage-IAUM6ONX.js → te-engage-WK7WKDKF.js} +6 -6
  43. package/dist/{te-experiment-TMLRA7B3.js → te-experiment-LH3RPIOE.js} +274 -29
  44. package/dist/{te-kb-GKWPSLSY.js → te-kb-UPORIOVN.js} +16 -7
  45. package/dist/{te-system-CYWSK3UN.js → te-system-AL4B4XZL.js} +2 -2
  46. package/dist/{te-team-ISN52YNG.js → te-team-LLVTO2G4.js} +5 -5
  47. package/dist/{things-DDQ52Z3Q.js → things-XLMLBYQR.js} +5 -5
  48. package/dist/{update-CTLNTX35.js → update-7J5UQHSK.js} +3 -3
  49. package/dist/{workspace-2CKQX2XL.js → workspace-FF2HXJGR.js} +4 -4
  50. package/package.json +9 -7
  51. package/skills/ae-ai-monitor/SKILL.md +179 -0
  52. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  53. package/skills/ae-analysis/SKILL.md +10 -4
  54. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  55. package/skills/ae-analysis/references/ai_models/path.md +5 -6
  56. package/skills/ae-analysis/references/ai_models.md +1 -0
  57. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  58. package/skills/ae-analysis/references/asset_search.md +1 -1
  59. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  60. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  61. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  62. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  63. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  64. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  65. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  66. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  67. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  68. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  69. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  70. package/skills/ae-analysis/references/catalog_list.md +2 -0
  71. package/skills/ae-analysis/references/command_index.md +38 -29
  72. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  73. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  74. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  75. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  76. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  77. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  78. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  79. package/skills/ae-analysis/references/folder_share.md +8 -2
  80. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  81. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  82. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  83. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  84. package/skills/ae-analysis/references/project_member_add.md +3 -1
  85. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  86. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  87. package/skills/ae-analysis/references/project_member_update.md +3 -1
  88. package/skills/ae-analysis/references/project_owner_update.md +3 -1
  89. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  90. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  91. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  92. package/skills/ae-analysis/references/project_space_share.md +8 -2
  93. package/skills/ae-analysis/references/property_get.md +2 -0
  94. package/skills/ae-analysis/references/public_link_list.md +3 -1
  95. package/skills/ae-analysis/references/query_cancel.md +4 -1
  96. package/skills/ae-analysis/references/report_data_run.md +1 -1
  97. package/skills/ae-analysis/references/report_list.md +3 -3
  98. package/skills/ae-analysis/references/scenario_append.md +2 -2
  99. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  100. package/skills/ae-analysis/references/scenario_list.md +2 -1
  101. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  102. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  103. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  104. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  105. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  106. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  107. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  108. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  109. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  110. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  111. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  112. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  113. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  114. package/skills/ae-automation/SKILL.md +4 -2
  115. package/skills/ae-capability/SKILL.md +9 -5
  116. package/skills/ae-community/SKILL.md +1 -0
  117. package/skills/ae-dataops/SKILL.md +1 -0
  118. package/skills/ae-engage/SKILL.md +1 -0
  119. package/skills/ae-evaluation/SKILL.md +17 -2
  120. package/skills/ae-experiment/SKILL.md +38 -11
  121. package/skills/ae-experiment/references/experiment_approval.md +171 -0
  122. package/skills/ae-experiment/references/manage_experiment.md +11 -2
  123. package/skills/ae-experiment/references/save_experiment.md +28 -8
  124. package/skills/ae-experiment/references/save_submit_experiment.md +18 -3
  125. package/skills/ae-experiment/references/save_submit_external_experiment.md +57 -3
  126. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  127. package/skills/ae-kb/SKILL.md +5 -3
  128. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  129. package/skills/ae-kb/references/query-workflow.md +3 -1
  130. package/skills/ae-kb/references/versions.md +1 -1
  131. package/skills/ae-metadata/SKILL.md +1 -0
  132. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  133. package/skills/ae-team/SKILL.md +1 -1
  134. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  135. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  136. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  137. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  138. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  139. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  140. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  141. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  142. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  143. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  144. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  145. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  146. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  147. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  148. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  149. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  150. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  151. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  152. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  153. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  154. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  155. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  156. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  157. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  158. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  159. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  160. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  161. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  162. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  163. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  164. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  165. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  166. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  167. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  168. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  169. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  170. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  171. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  172. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  173. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  174. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  175. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  176. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  177. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  178. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  179. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  180. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  181. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  182. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  183. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  184. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  185. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  186. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  187. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  188. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  189. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  190. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  191. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  192. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  193. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  194. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  195. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  196. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  197. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  198. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  199. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  200. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  201. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  202. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  203. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  204. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  205. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  206. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  207. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  208. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  209. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  210. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  211. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  212. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  213. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  214. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  215. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  216. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  217. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  218. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  219. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  220. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  221. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  222. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  223. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  224. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  225. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  226. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  227. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  228. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  229. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  230. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  231. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  232. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  233. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  234. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  235. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  236. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  237. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  238. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  239. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  240. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  241. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  242. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  243. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  244. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  245. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  246. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  247. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  248. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  249. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  250. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  251. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  252. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  253. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  254. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  255. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  256. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  257. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  258. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  259. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  260. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  261. package/dist/chunk-AMBFK2K3.js +0 -28
@@ -0,0 +1,866 @@
1
+ # AI Monitor read command reference
2
+
3
+ Use `ai-monitor <resource> <action>` or `ae-cli ai-monitor <resource> <action>`. All commands are read-only against AI Monitor; exports additionally create a local file. They use the AI Monitor capability gateway and the existing CLI token lifecycle. These typed L2 commands add bounded pagination, typed fields, platform/environment resolution and safe export handling; no parallel transport or additional Skill is introduced.
4
+
5
+ ## Shared flags and compatibility
6
+
7
+ Every command except `platform list` accepts `--platform <name-or-id>` and `--environment <name-or-id>`. If both are known, pass both directly. Otherwise `platform list` discovers the permitted choices. The raw compatibility flags `--data-token` (default `AE-AGENT`) and `--report-source` (default `__default__`) remain available; never mix friendly and raw scope flags. `__default__` is a concrete source, not a wildcard. No client field can override company or tenant identity.
8
+
9
+ Global options include `--host`, `--cli-token-file`, `--format json|table`, `--jq`, `--validate`, and `--dry-run`. JSON-valued flags accept inline JSON; quote it for your shell. `--validate` and `--dry-run` are mutually exclusive, and neither runs an export or diagnosis. Errors stay structured; 403 is permission denial, not a reason to try another company. New optional fields require a server advertising the corresponding capability/schema. Old commands without new flags retain their original requests. An older server can reject new commands; use `capability inspect` to inspect availability rather than retrying guessed endpoints.
10
+
11
+ Existing response fields and unknown additive fields are retained. Conversation list IDs remain `te_agent_conversation_id`; detail accepts `--conversation-id` and returns `conversation_id`. Trace list keeps its existing flattened items/page shape.
12
+
13
+ ## Original seven commands
14
+
15
+ | Command | Capability | Parameters |
16
+ | --- | --- | --- |
17
+ | `platform list` | `ai_monitor.platform.list` | None |
18
+ | `trace list` | `ai_monitor.trace.list` | Date/search/filter fields below; limit 20 (1..100), offset 0; sort-by start-time/end-time/duration/total-tokens/span-count/error-span-count/recorded-costs (default start-time), sort-order asc/desc (default desc) |
19
+ | `trace count` | `ai_monitor.trace.count` | Same date/search/filter fields; no pagination or sorting |
20
+ | `trace get` | `ai_monitor.trace.get` | Required trace-id |
21
+ | `conversation list` | `ai_monitor.conversation.list` | Same date/search/filter fields; limit 20 (1..100), offset 0; sort-by trace-count/total-duration/avg-duration/max-duration/min-duration/total-token-count/prompt-token-count/completion-token-count/total-error-span-count/total-span-count/error-trace-count/start-time/end-time/recorded-costs (default start-time); sort-order asc/desc (default desc) |
22
+ | `conversation count` | `ai_monitor.conversation.count` | Same date/search/filter fields; no pagination or sorting |
23
+ | `conversation get` | `ai_monitor.conversation.get` | Required conversation-id; optional include-spans boolean (false), span-limit (20, 1..100), span-offset (0) |
24
+
25
+ `recorded-costs` sorts recorded amounts within fee-unit groups for both lists; it never sums monetary values across currencies.
26
+
27
+ Date/search fields: `--last-days` defaults to 7 (1..30); paired `--start-date/--end-date` YYYY-MM-DD override it and include both dates; `--agent/--channel` are exact; `--search` is bounded free text. The search field is not a status-message/error-text search.
28
+
29
+ ## Advanced Trace and Conversation filtering
30
+
31
+ `--status` is one of `STATUS_CODE_OK`, `STATUS_CODE_ERROR`, `STATUS_CODE_UNSET`. `--user-cancelled` preserves true and false and follows explicit product cancellation semantics, independently of status. `--quality-flags` is a nonempty JSON array of formal flag names (AND). `--filter-groups` is the strict page tree below (all nodes need id; no unknown keys; at most 10 rules and one nested group level):
32
+
33
+ ```json
34
+ {"id":"root","type":"group","logic":"AND","conditions":[{"id":"error","type":"rule","field":"status_code","operator":"eq","value":"STATUS_CODE_ERROR"},{"id":"duration","type":"rule","field":"duration","operator":"gte","value":10}]}
35
+ ```
36
+
37
+ Group logic: AND/OR. Numeric fields: duration, input_token, output_token, total_token, span_cnt, error_span_cnt; operators eq/ne/gt/gte/lt/lte/between. For between, include value plus value1/value2; bounds must be finite and ordered. String fields: status_code, llm_model_name, te_agent_name, te_user_id, te_login_name; operators eq/ne/contains/not_contains/empty (legacy contains_any is also accepted). project_id supports eq/ne/contains/empty using a scalar string or JSON-string array; equality compares the normalized entire set. Trace and Bad Trace additionally allow client_aborted_turn_cnt/max_tokens_turn_cnt, plus cost_user_cancelled eq 0/1. Conversation filters apply to Trace rows before aggregation; no Trace-only fields in its filter tree.
38
+
39
+ Formal quality flag names:
40
+
41
+ ```text
42
+ l0_trace_error
43
+ l0_step_error
44
+ l0_client_aborted
45
+ l0_model_downgraded
46
+ l0_context_pruned
47
+ l0_output_truncated
48
+ l0_empty_output
49
+ l0_no_end_turn
50
+ l1_slow
51
+ l1_expensive
52
+ l1_heavy
53
+ l2_infra_llm_error
54
+ l2_infra_instant_death
55
+ l2_infra_auth_or_license
56
+ l2_infra_upstream_down
57
+ l2_tool_error
58
+ l2_tool_param_fail
59
+ l2_tool_result_overflow
60
+ l2_tool_context_overflow
61
+ l2_tool_query_empty
62
+ l2_model_downgraded
63
+ l2_model_thinking_heavy
64
+ l2_model_output_truncated
65
+ l2_model_not_found
66
+ l2_prompt_runaway
67
+ l2_prompt_forced_stop
68
+ l2_prompt_verbose_output
69
+ l2_prompt_identity_leak
70
+ l2_arch_deep_nesting
71
+ l2_arch_tool_overload
72
+ l2_arch_mcp_unavailable
73
+ l2_arch_max_turns_hit
74
+ ```
75
+
76
+ Formal Bad Trace inclusion requires L2 hits plus the page's L0/L1 abnormality predicate. Its date range filters observation pd; results select the latest observation per company/Trace. `l2_infra_instant_death` reads the formal startup-failure flag; it is not guessed from errors. Quality returns `available`, `availability` (`available`, `not_found`, or `unavailable`), per-flag boolean/null, `matched_flags`, `evidence`, and `stats_date`. `not_found`, `unavailable`, and null flags never establish a false tag. When no `quality_flags` filter is supplied, a quality-metadata lookup failure may preserve the same base rows with a `QUALITY_METADATA_UNAVAILABLE` limitation; Trace snapshots are marked `PARTIAL`. A request with `quality_flags` must fail if the formal metadata is unavailable: it never falls back to unfiltered base rows.
77
+
78
+ ## New read commands
79
+
80
+ All commands below also accept the shared scope and global flags. Unmarked fields are optional; defaults and enumerations are shown for each command. CLI names use kebab-case; gateway fields and capability IDs use snake_case.
81
+
82
+ ### `bad-trace list`
83
+
84
+ Capability: `ai_monitor.bad_trace.list`. List formal Bad Trace observations; dates filter warehouse observation pd, quality flags use AND.
85
+
86
+ Result: Latest observation per company/Trace with formal quality flags, evidence and pagination.
87
+
88
+ | Flag | Type | Requirement / bounds |
89
+ | --- | --- | --- |
90
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
91
+ | `--start-date` | string | YYYY-MM-DD |
92
+ | `--end-date` | string | YYYY-MM-DD |
93
+ | `--filter-groups` | JSON object | Strict tree described above |
94
+ | `--status` | string | Choices: STATUS_CODE_OK, STATUS_CODE_ERROR, STATUS_CODE_UNSET |
95
+ | `--user-cancelled` | boolean | Optional |
96
+ | `--quality-flags` | JSON array | min items: 1; max items: 32; Formal names above; AND |
97
+ | `--agent` | string | max characters: 255 |
98
+ | `--channel` | string | max characters: 255 |
99
+ | `--search` | string | max characters: 500 |
100
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
101
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
102
+
103
+ ### `bad-trace count`
104
+
105
+ Capability: `ai_monitor.bad_trace.count`. Count formal Bad Traces with the same filters as bad_trace.list.
106
+
107
+ Result: Count and applied filters.
108
+
109
+ | Flag | Type | Requirement / bounds |
110
+ | --- | --- | --- |
111
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
112
+ | `--start-date` | string | YYYY-MM-DD |
113
+ | `--end-date` | string | YYYY-MM-DD |
114
+ | `--filter-groups` | JSON object | Strict tree described above |
115
+ | `--status` | string | Choices: STATUS_CODE_OK, STATUS_CODE_ERROR, STATUS_CODE_UNSET |
116
+ | `--user-cancelled` | boolean | Optional |
117
+ | `--quality-flags` | JSON array | min items: 1; max items: 32; Formal names above; AND |
118
+ | `--agent` | string | max characters: 255 |
119
+ | `--channel` | string | max characters: 255 |
120
+ | `--search` | string | max characters: 500 |
121
+
122
+ ### `bad-trace get`
123
+
124
+ Capability: `ai_monitor.bad_trace.get`. Read the latest formal Bad Trace observation in the authenticated scope.
125
+
126
+ Result: Formal Bad Trace observation and evidence, or not-found error.
127
+
128
+ | Flag | Type | Requirement / bounds |
129
+ | --- | --- | --- |
130
+ | `--trace-id` | string | Required; max characters: 512 |
131
+
132
+ ### `overview get`
133
+
134
+ Capability: `ai_monitor.overview.get`. Read dashboard metrics, trends and expensive or slow traces.
135
+
136
+ Result: Dashboard summary, trend, agents and insight evidence.
137
+
138
+ | Flag | Type | Requirement / bounds |
139
+ | --- | --- | --- |
140
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
141
+ | `--start-date` | string | YYYY-MM-DD |
142
+ | `--end-date` | string | YYYY-MM-DD |
143
+ | `--agent` | string | max characters: 255 |
144
+ | `--channel` | string | max characters: 255 |
145
+
146
+ ### `agent list`
147
+
148
+ Capability: `ai_monitor.agent.list`. Read Agent execution statistics and recorded costs.
149
+
150
+ Result: Current and previous period statistics plus recorded costs by Agent.
151
+
152
+ | Flag | Type | Requirement / bounds |
153
+ | --- | --- | --- |
154
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
155
+ | `--start-date` | string | YYYY-MM-DD |
156
+ | `--end-date` | string | YYYY-MM-DD |
157
+ | `--agent` | string | max characters: 255 |
158
+ | `--channel` | string | max characters: 255 |
159
+
160
+ ### `agent get`
161
+
162
+ Capability: `ai_monitor.agent.get`. Read execution statistics and daily trend for one Agent.
163
+
164
+ Result: Agent period metrics, daily trend and recorded costs.
165
+
166
+ | Flag | Type | Requirement / bounds |
167
+ | --- | --- | --- |
168
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
169
+ | `--start-date` | string | YYYY-MM-DD |
170
+ | `--end-date` | string | YYYY-MM-DD |
171
+ | `--agent` | string | Required; max characters: 255 |
172
+ | `--channel` | string | max characters: 255 |
173
+
174
+ ### `tool list`
175
+
176
+ Capability: `ai_monitor.tool.list`. List observed Tool execution statistics.
177
+
178
+ Result: Tool call counts, errors and latency statistics.
179
+
180
+ | Flag | Type | Requirement / bounds |
181
+ | --- | --- | --- |
182
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
183
+ | `--start-date` | string | YYYY-MM-DD |
184
+ | `--end-date` | string | YYYY-MM-DD |
185
+ | `--agent` | string | max characters: 255 |
186
+ | `--channel` | string | max characters: 255 |
187
+
188
+ ### `tool get`
189
+
190
+ Capability: `ai_monitor.tool.get`. Read Tool metrics, time series and error types.
191
+
192
+ Result: Tool metrics, time series and error type distribution.
193
+
194
+ | Flag | Type | Requirement / bounds |
195
+ | --- | --- | --- |
196
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
197
+ | `--start-date` | string | YYYY-MM-DD |
198
+ | `--end-date` | string | YYYY-MM-DD |
199
+ | `--agent` | string | max characters: 255 |
200
+ | `--channel` | string | max characters: 255 |
201
+ | `--tool-name` | string | Required; max characters: 255 |
202
+
203
+ ### `tool calls`
204
+
205
+ Capability: `ai_monitor.tool.calls`. Read paginated Tool calls and execution results.
206
+
207
+ Result: Call items, total and aggregate call statistics.
208
+
209
+ | Flag | Type | Requirement / bounds |
210
+ | --- | --- | --- |
211
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
212
+ | `--start-date` | string | YYYY-MM-DD |
213
+ | `--end-date` | string | YYYY-MM-DD |
214
+ | `--agent` | string | max characters: 255 |
215
+ | `--channel` | string | max characters: 255 |
216
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
217
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
218
+ | `--tool-name` | string | Required; max characters: 255 |
219
+ | `--search` | string | max characters: 255 |
220
+ | `--status-filter` | JSON array | max items: 20 |
221
+ | `--sort-by` | string | Default "start_time_unix_nano"; Choices: start_time_unix_nano, duration_ms |
222
+ | `--sort-order` | string | Default "desc"; Choices: asc, desc |
223
+
224
+ ### `model list`
225
+
226
+ Capability: `ai_monitor.model.list`. List the latest model monitoring statistics.
227
+
228
+ Result: Model and Agent pairs, issue indicators and total count; latest snapshot date is returned per row.
229
+
230
+ | Flag | Type | Requirement / bounds |
231
+ | --- | --- | --- |
232
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
233
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
234
+ | `--search` | string | max characters: 255 |
235
+ | `--has-issue` | boolean | Optional |
236
+ | `--issue-type` | string | Choices: thinking_heavy, truncated, not_found |
237
+
238
+ ### `model get`
239
+
240
+ Capability: `ai_monitor.model.get`. Read model summary and historical trend.
241
+
242
+ Result: Summary at stats_date (latest by default), and trend in the selected date range.
243
+
244
+ | Flag | Type | Requirement / bounds |
245
+ | --- | --- | --- |
246
+ | `--last-days` | integer | Default 30; min: 1; max: 90 |
247
+ | `--start-date` | string | YYYY-MM-DD |
248
+ | `--end-date` | string | YYYY-MM-DD |
249
+ | `--model-key` | string | Required; max characters: 255 |
250
+ | `--agent` | string | max characters: 255 |
251
+ | `--stats-date` | string | YYYY-MM-DD |
252
+
253
+ ### `model compare`
254
+
255
+ Capability: `ai_monitor.model.compare`. Compare model and Agent pairs using the monitoring summary metrics.
256
+
257
+ Result: One summary per selected model and Agent pair.
258
+
259
+ | Flag | Type | Requirement / bounds |
260
+ | --- | --- | --- |
261
+ | `--models` | JSON array | Required; min items: 2; max items: 10; Objects: model_key required, agent optional |
262
+ | `--stats-date` | string | YYYY-MM-DD |
263
+
264
+ ### `skill list`
265
+
266
+ Capability: `ai_monitor.skill.list`. List observed Skill usage statistics.
267
+
268
+ Result: Skill totals, daily Trace counts and Agent call distribution.
269
+
270
+ | Flag | Type | Requirement / bounds |
271
+ | --- | --- | --- |
272
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
273
+ | `--start-date` | string | YYYY-MM-DD |
274
+ | `--end-date` | string | YYYY-MM-DD |
275
+ | `--agent` | string | max characters: 255 |
276
+ | `--channel` | string | max characters: 255 |
277
+
278
+ ### `skill get`
279
+
280
+ Capability: `ai_monitor.skill.get`. Read observed usage and trend for one Skill.
281
+
282
+ Result: Skill totals, daily Trace counts and Agent call distribution.
283
+
284
+ | Flag | Type | Requirement / bounds |
285
+ | --- | --- | --- |
286
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
287
+ | `--start-date` | string | YYYY-MM-DD |
288
+ | `--end-date` | string | YYYY-MM-DD |
289
+ | `--agent` | string | max characters: 255 |
290
+ | `--channel` | string | max characters: 255 |
291
+ | `--skill-name` | string | Required; max characters: 255 |
292
+
293
+ ### `skill traces`
294
+
295
+ Capability: `ai_monitor.skill.traces`. Read paginated traces using a Skill.
296
+
297
+ Result: Trace items and total count.
298
+
299
+ | Flag | Type | Requirement / bounds |
300
+ | --- | --- | --- |
301
+ | `--last-days` | integer | Default 7; min: 1; max: 30 |
302
+ | `--start-date` | string | YYYY-MM-DD |
303
+ | `--end-date` | string | YYYY-MM-DD |
304
+ | `--agent` | string | max characters: 255 |
305
+ | `--channel` | string | max characters: 255 |
306
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
307
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
308
+ | `--skill-name` | string | Required; max characters: 255 |
309
+ | `--sort-by` | string | Default "start_time"; Choices: duration, token_count_total, span_cnt, error_span_cnt, start_time, end_time |
310
+ | `--sort-order` | string | Default "desc"; Choices: asc, desc |
311
+
312
+ ### `cost summary`
313
+
314
+ Capability: `ai_monitor.cost.summary`. Read Token cost summary. Uses a [start, end) interval, maximum 90 days.
315
+
316
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
317
+
318
+ | Flag | Type | Requirement / bounds |
319
+ | --- | --- | --- |
320
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
321
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
322
+ | `--project-ids` | JSON array | max items: 50 |
323
+ | `--agent` | string | max characters: 255 |
324
+ | `--channel` | string | max characters: 255 |
325
+
326
+ ### `cost trend`
327
+
328
+ Capability: `ai_monitor.cost.trend`. Read Token consumption trend. Uses a [start, end) interval, maximum 90 days.
329
+
330
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
331
+
332
+ | Flag | Type | Requirement / bounds |
333
+ | --- | --- | --- |
334
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
335
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
336
+ | `--project-ids` | JSON array | max items: 50 |
337
+ | `--agent` | string | max characters: 255 |
338
+ | `--channel` | string | max characters: 255 |
339
+
340
+ ### `cost actual-summary`
341
+
342
+ Capability: `ai_monitor.cost.actual_summary`. Read recorded monetary cost summary. Uses a [start, end) interval, maximum 90 days.
343
+
344
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
345
+
346
+ | Flag | Type | Requirement / bounds |
347
+ | --- | --- | --- |
348
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
349
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
350
+ | `--project-ids` | JSON array | max items: 50 |
351
+ | `--agent` | string | max characters: 255 |
352
+ | `--channel` | string | max characters: 255 |
353
+
354
+ ### `cost actual-trend`
355
+
356
+ Capability: `ai_monitor.cost.actual_trend`. Read recorded monetary cost trend. Uses a [start, end) interval, maximum 90 days.
357
+
358
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
359
+
360
+ | Flag | Type | Requirement / bounds |
361
+ | --- | --- | --- |
362
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
363
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
364
+ | `--project-ids` | JSON array | max items: 50 |
365
+ | `--agent` | string | max characters: 255 |
366
+ | `--channel` | string | max characters: 255 |
367
+
368
+ ### `cost actual-change`
369
+
370
+ Capability: `ai_monitor.cost.actual_change`. Compare recorded monetary cost with the previous equal period. Uses a [start, end) interval, maximum 90 days.
371
+
372
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
373
+
374
+ | Flag | Type | Requirement / bounds |
375
+ | --- | --- | --- |
376
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
377
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
378
+ | `--project-ids` | JSON array | max items: 50 |
379
+ | `--agent` | string | max characters: 255 |
380
+ | `--channel` | string | max characters: 255 |
381
+
382
+ ### `cost insight`
383
+
384
+ Capability: `ai_monitor.cost.insight`. Read the existing cost overview insight. Uses a [start, end) interval, maximum 90 days.
385
+
386
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
387
+
388
+ | Flag | Type | Requirement / bounds |
389
+ | --- | --- | --- |
390
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
391
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
392
+ | `--project-ids` | JSON array | max items: 50 |
393
+ | `--agent` | string | max characters: 255 |
394
+ | `--channel` | string | max characters: 255 |
395
+
396
+ ### `cost value-health`
397
+
398
+ Capability: `ai_monitor.cost.value_health`. Read usage value and technical health indicators. Uses a [start, end) interval, maximum 90 days.
399
+
400
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
401
+
402
+ | Flag | Type | Requirement / bounds |
403
+ | --- | --- | --- |
404
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
405
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
406
+ | `--project-ids` | JSON array | max items: 50 |
407
+ | `--agent` | string | max characters: 255 |
408
+ | `--channel` | string | max characters: 255 |
409
+
410
+ ### `cost distribution`
411
+
412
+ Capability: `ai_monitor.cost.distribution`. Read Trace cost and Token distributions. Uses a [start, end) interval, maximum 90 days.
413
+
414
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
415
+
416
+ | Flag | Type | Requirement / bounds |
417
+ | --- | --- | --- |
418
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
419
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
420
+ | `--project-ids` | JSON array | max items: 50 |
421
+ | `--agent` | string | max characters: 255 |
422
+ | `--channel` | string | max characters: 255 |
423
+
424
+ ### `cost subject-change`
425
+
426
+ Capability: `ai_monitor.cost.subject_change`. Read subject cost changes against the previous equal period. Uses a [start, end) interval, maximum 90 days.
427
+
428
+ Result: Existing cost analysis payload including metric version, coverage and warnings where available.
429
+
430
+ | Flag | Type | Requirement / bounds |
431
+ | --- | --- | --- |
432
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
433
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
434
+ | `--project-ids` | JSON array | max items: 50 |
435
+ | `--agent` | string | max characters: 255 |
436
+ | `--channel` | string | max characters: 255 |
437
+
438
+ ### `cost rankings`
439
+
440
+ Capability: `ai_monitor.cost.rankings`. Rank subjects by Token consumption.
441
+
442
+ Result: Subject rankings, effective subject and coverage metadata.
443
+
444
+ | Flag | Type | Requirement / bounds |
445
+ | --- | --- | --- |
446
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
447
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
448
+ | `--project-ids` | JSON array | max items: 50 |
449
+ | `--agent` | string | max characters: 255 |
450
+ | `--channel` | string | max characters: 255 |
451
+ | `--subject` | string | Required; Choices: user, agent, actual_model, primary_model |
452
+ | `--limit` | integer | Default 10; min: 1; max: 50 |
453
+
454
+ ### `cost subject-rankings`
455
+
456
+ Capability: `ai_monitor.cost.subject_rankings`. Read paginated subject consumption rankings by cost or Token.
457
+
458
+ Result: Ranking items and service pagination metadata.
459
+
460
+ | Flag | Type | Requirement / bounds |
461
+ | --- | --- | --- |
462
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
463
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
464
+ | `--project-ids` | JSON array | max items: 50 |
465
+ | `--agent` | string | max characters: 255 |
466
+ | `--channel` | string | max characters: 255 |
467
+ | `--dimension` | string | Required; Choices: user, agent, primary_model, trace |
468
+ | `--metric` | string | Required; Choices: cost, token |
469
+ | `--limit` | integer | Default 10; min: 1; max: 50 |
470
+ | `--page` | integer | min: 1; max: 1000000 |
471
+
472
+ ### `cost subject-get`
473
+
474
+ Capability: `ai_monitor.cost.subject_get`. Read cost metrics for a subject.
475
+
476
+ Result: Subject metrics, peer comparison and value health.
477
+
478
+ | Flag | Type | Requirement / bounds |
479
+ | --- | --- | --- |
480
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
481
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
482
+ | `--project-ids` | JSON array | max items: 50 |
483
+ | `--agent` | string | max characters: 255 |
484
+ | `--channel` | string | max characters: 255 |
485
+ | `--subject` | string | Required; Choices: user, agent, actual_model, primary_model |
486
+ | `--subject-key` | string | Required; max characters: 255 |
487
+
488
+ ### `cost attribution`
489
+
490
+ Capability: `ai_monitor.cost.attribution`. Read cost attribution and supporting Trace evidence for a subject.
491
+
492
+ Result: Attribution drivers, associations, evidence and coverage.
493
+
494
+ | Flag | Type | Requirement / bounds |
495
+ | --- | --- | --- |
496
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
497
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
498
+ | `--project-ids` | JSON array | max items: 50 |
499
+ | `--agent` | string | max characters: 255 |
500
+ | `--channel` | string | max characters: 255 |
501
+ | `--subject` | string | Required; Choices: user, agent, actual_model, primary_model |
502
+ | `--subject-key` | string | Required; max characters: 255 |
503
+
504
+ ### `cost driver-get`
505
+
506
+ Capability: `ai_monitor.cost.driver_get`. Read existing drilldown evidence for a cost attribution driver.
507
+
508
+ Result: Driver evidence and availability; this does not start AI analysis.
509
+
510
+ | Flag | Type | Requirement / bounds |
511
+ | --- | --- | --- |
512
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
513
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
514
+ | `--project-ids` | JSON array | max items: 50 |
515
+ | `--agent` | string | max characters: 255 |
516
+ | `--channel` | string | max characters: 255 |
517
+ | `--subject` | string | Required; Choices: user, agent, actual_model, primary_model |
518
+ | `--subject-key` | string | Required; max characters: 255 |
519
+ | `--driver-id` | string | Required; Choices: turn_cnt, llm_span_cnt, tool_cnt, tool_span_cnt, tool_error_span_cnt, max_request_messages_count, max_context_size_chars, trace_input_chars, llm_output_chars, thinking_output_chars, max_tokens_rate, subagent_rate, max_agent_depth, model_mismatch_rate, context_pruned_rate, client_aborted_rate, tracker_recovered_rate |
520
+
521
+ ### `cost trace-cost`
522
+
523
+ Capability: `ai_monitor.cost.trace_cost`. Read Trace cost overview, optionally for one Agent.
524
+
525
+ Result: Trace cost overview and metric coverage.
526
+
527
+ | Flag | Type | Requirement / bounds |
528
+ | --- | --- | --- |
529
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
530
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
531
+ | `--project-ids` | JSON array | max items: 50 |
532
+ | `--agent` | string | max characters: 255 |
533
+ | `--channel` | string | max characters: 255 |
534
+ | `--agent-key` | string | max characters: 255 |
535
+
536
+ ### `cost change`
537
+
538
+ Capability: `ai_monitor.cost.change`. Compare Token consumption with the previous equal [start, end) period.
539
+
540
+ Result: Period summaries, decomposition and behavior drivers.
541
+
542
+ | Flag | Type | Requirement / bounds |
543
+ | --- | --- | --- |
544
+ | `--start` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
545
+ | `--end` | string | Required; Date or ISO timestamp with timezone; [start,end), max 90 days |
546
+ | `--project-ids` | JSON array | max items: 50 |
547
+ | `--agent` | string | max characters: 255 |
548
+ | `--channel` | string | max characters: 255 |
549
+ | `--directions` | string | Default "both"; Choices: increase, both |
550
+ | `--execution-status` | string | Choices: final |
551
+
552
+ ### `cost report-list`
553
+
554
+ Capability: `ai_monitor.cost.report_list`. List the current account’s existing cost analysis reports.
555
+
556
+ Result: Owned cost analysis cases with run status, summary and pagination.
557
+
558
+ | Flag | Type | Requirement / bounds |
559
+ | --- | --- | --- |
560
+ | `--limit` | number | Default 20; Choices: 10, 20, 50 |
561
+ | `--offset` | integer | Default 0; min: 0; max: 9999999 |
562
+ | `--keyword` | string | max characters: 80 |
563
+ | `--status` | string | Choices: pending, running, completed, failed, cancelled |
564
+ | `--period-start` | string | YYYY-MM-DD |
565
+ | `--period-end` | string | YYYY-MM-DD |
566
+
567
+ ### `cost report-get`
568
+
569
+ Capability: `ai_monitor.cost.report_get`. Read an existing owned cost analysis report.
570
+
571
+ Result: Run progress, frozen range and compatible report; no new analysis is started.
572
+
573
+ | Flag | Type | Requirement / bounds |
574
+ | --- | --- | --- |
575
+ | `--case-id` | string | Required; max characters: 512 |
576
+ | `--run-id` | string | Required; max characters: 512 |
577
+
578
+ ### `security overview`
579
+
580
+ Capability: `ai_monitor.security.overview`. Read security audit overview for the selected company.
581
+
582
+ Result: Risk totals, categories and recent tasks.
583
+
584
+ No command-specific parameters.
585
+
586
+ ### `security issues`
587
+
588
+ Capability: `ai_monitor.security.issues`. List security issues using the existing cursor pagination.
589
+
590
+ Result: Issue items, has_more and next_cursor.
591
+
592
+ | Flag | Type | Requirement / bounds |
593
+ | --- | --- | --- |
594
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
595
+ | `--decision` | string | Choices: pending, confirmed, false_positive |
596
+ | `--rule-key` | string | max characters: 255 |
597
+ | `--before-last-seen-at` | string | Optional |
598
+ | `--before-issue-id` | string | max characters: 512 |
599
+
600
+ ### `security issue-get`
601
+
602
+ Capability: `ai_monitor.security.issue_get`. Read a security issue and recent findings and reviews.
603
+
604
+ Result: Issue details, recent findings and reviews.
605
+
606
+ | Flag | Type | Requirement / bounds |
607
+ | --- | --- | --- |
608
+ | `--issue-id` | string | Required; max characters: 512 |
609
+
610
+ ### `security issue-findings`
611
+
612
+ Capability: `ai_monitor.security.issue_findings`. Read additional findings for a security issue.
613
+
614
+ Result: Finding items and next_cursor.
615
+
616
+ | Flag | Type | Requirement / bounds |
617
+ | --- | --- | --- |
618
+ | `--issue-id` | string | Required; max characters: 512 |
619
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
620
+ | `--before-occurred-at` | string | Optional |
621
+ | `--before-finding-id` | string | max characters: 512 |
622
+
623
+ ### `security evidence`
624
+
625
+ Capability: `ai_monitor.security.evidence`. Read security finding evidence and source availability.
626
+
627
+ Result: Finding details, evidence and source Trace availability.
628
+
629
+ | Flag | Type | Requirement / bounds |
630
+ | --- | --- | --- |
631
+ | `--task-finding-id` | string | Required; max characters: 512 |
632
+
633
+ ### `security tasks`
634
+
635
+ Capability: `ai_monitor.security.tasks`. List existing security audit tasks.
636
+
637
+ Result: Task items, list snapshot and next cursor.
638
+
639
+ | Flag | Type | Requirement / bounds |
640
+ | --- | --- | --- |
641
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
642
+ | `--list-snapshot-at` | string | Optional |
643
+ | `--before-created-at` | string | Optional |
644
+ | `--before-task-id` | string | max characters: 512 |
645
+
646
+ ### `security task-get`
647
+
648
+ Capability: `ai_monitor.security.task_get`. Read security audit task progress and detail.
649
+
650
+ Result: The existing task detail DTO.
651
+
652
+ | Flag | Type | Requirement / bounds |
653
+ | --- | --- | --- |
654
+ | `--task-id` | string | Required; max characters: 512 |
655
+
656
+ ### `security task-traces`
657
+
658
+ Capability: `ai_monitor.security.task_traces`. Read paginated traces in an existing security task.
659
+
660
+ Result: Task Trace items and next ordinal cursor.
661
+
662
+ | Flag | Type | Requirement / bounds |
663
+ | --- | --- | --- |
664
+ | `--task-id` | string | Required; max characters: 512 |
665
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
666
+ | `--after-ordinal` | integer | min: 0; max: 9007199254740991 |
667
+
668
+ ### `security task-findings`
669
+
670
+ Capability: `ai_monitor.security.task_findings`. Read risk traces and findings in an existing task.
671
+
672
+ Result: Risk Trace items with findings and next ordinal cursor.
673
+
674
+ | Flag | Type | Requirement / bounds |
675
+ | --- | --- | --- |
676
+ | `--task-id` | string | Required; max characters: 512 |
677
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
678
+ | `--after-ordinal` | integer | min: 0; max: 9007199254740991 |
679
+ | `--trace-id` | string | max characters: 512 |
680
+
681
+ ### `security rules`
682
+
683
+ Capability: `ai_monitor.security.rules`. List security detection rules and effective bindings.
684
+
685
+ Result: Rule items, total and pagination.
686
+
687
+ | Flag | Type | Requirement / bounds |
688
+ | --- | --- | --- |
689
+ | `--page` | integer | Default 1; min: 1; max: 9007199254740991 |
690
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
691
+ | `--status` | string | Default "all"; Choices: all, enabled, disabled |
692
+ | `--query` | string | max characters: 255 |
693
+
694
+ ### `security rule-get`
695
+
696
+ Capability: `ai_monitor.security.rule_get`. Read a detection rule and its effective binding.
697
+
698
+ Result: Rule definition and selected scope binding.
699
+
700
+ | Flag | Type | Requirement / bounds |
701
+ | --- | --- | --- |
702
+ | `--rule-key` | string | Required; max characters: 255 |
703
+
704
+ ### `diagnosis list`
705
+
706
+ Capability: `ai_monitor.diagnosis.list`. Read paginated diagnosis task history in one data scope.
707
+
708
+ Result: Task summaries and best-effort pagination; no new diagnosis is started.
709
+
710
+ | Flag | Type | Requirement / bounds |
711
+ | --- | --- | --- |
712
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
713
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
714
+ | `--entity-type` | string | Choices: trace, conversation, tool, prompt, global |
715
+ | `--entity-key` | string | max characters: 512 |
716
+
717
+ ### `diagnosis queue`
718
+
719
+ Capability: `ai_monitor.diagnosis.queue`. Read queued and running diagnosis tasks.
720
+
721
+ Result: Task summaries, queue positions, and pagination.
722
+
723
+ | Flag | Type | Requirement / bounds |
724
+ | --- | --- | --- |
725
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
726
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
727
+
728
+ ### `diagnosis get`
729
+
730
+ Capability: `ai_monitor.diagnosis.get`. Read one diagnosis task state without starting or retrying it.
731
+
732
+ Result: Public task state, current step, queue position and errors.
733
+
734
+ | Flag | Type | Requirement / bounds |
735
+ | --- | --- | --- |
736
+ | `--task-id` | string | Required; max characters: 512 |
737
+
738
+ ### `diagnosis report`
739
+
740
+ Capability: `ai_monitor.diagnosis.report`. Read the latest existing diagnosis report for an entity.
741
+
742
+ Result: Latest report or null when no report exists; never starts a model request.
743
+
744
+ | Flag | Type | Requirement / bounds |
745
+ | --- | --- | --- |
746
+ | `--entity-type` | string | Default "global"; Choices: trace, conversation, tool, prompt, global |
747
+ | `--entity-key` | string | max characters: 512 |
748
+
749
+ ### `investigation modes`
750
+
751
+ Capability: `ai_monitor.investigation.modes`. List supported investigation modes and sample requirements.
752
+
753
+ Result: Analysis mode definitions for the selected entity type.
754
+
755
+ | Flag | Type | Requirement / bounds |
756
+ | --- | --- | --- |
757
+ | `--entity-type` | string | Default "trace"; Choices: trace, agent, model, tool, conversation, skill, cost_analysis |
758
+
759
+ ### `investigation list`
760
+
761
+ Capability: `ai_monitor.investigation.list`. List accessible investigation cases in one data scope.
762
+
763
+ Result: Case summaries and best-effort pagination, respecting owner and scope visibility.
764
+
765
+ | Flag | Type | Requirement / bounds |
766
+ | --- | --- | --- |
767
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
768
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
769
+ | `--entity-type` | string | Choices: trace, agent, model, tool, conversation, skill, cost_analysis |
770
+ | `--status` | string | Choices: pending, running, completed, failed, cancelled |
771
+ | `--analysis-mode` | string | max characters: 512 |
772
+ | `--search` | string | max characters: 500 |
773
+ | `--agent` | string | max characters: 255 |
774
+
775
+ ### `investigation get`
776
+
777
+ Capability: `ai_monitor.investigation.get`. Read one accessible investigation case.
778
+
779
+ Result: Case details, selection, and optionally its existing runs.
780
+
781
+ | Flag | Type | Requirement / bounds |
782
+ | --- | --- | --- |
783
+ | `--case-id` | string | Required; max characters: 512 |
784
+ | `--include-runs` | boolean | Default false |
785
+
786
+ ### `investigation runs`
787
+
788
+ Capability: `ai_monitor.investigation.runs`. List existing runs for an accessible investigation case.
789
+
790
+ Result: Run summaries and pagination.
791
+
792
+ | Flag | Type | Requirement / bounds |
793
+ | --- | --- | --- |
794
+ | `--limit` | integer | Default 20; min: 1; max: 100 |
795
+ | `--offset` | integer | Default 0; min: 0; max: 9007199254740991 |
796
+ | `--case-id` | string | Required; max characters: 512 |
797
+
798
+ ### `investigation run-get`
799
+
800
+ Capability: `ai_monitor.investigation.run_get`. Read a specific investigation run and its existing result.
801
+
802
+ Result: Run status, progress, result, completeness and errors; no run is created.
803
+
804
+ | Flag | Type | Requirement / bounds |
805
+ | --- | --- | --- |
806
+ | `--case-id` | string | Required; max characters: 512 |
807
+ | `--run-id` | string | Required; max characters: 512 |
808
+
809
+ ### `trace export`
810
+
811
+ Capability: `ai_monitor.trace.export`. Export a bounded batch of traces with spans and a result manifest.
812
+
813
+ Result: A base64 ZIP archive with SHA-256, byte length and a per-trace manifest. Partial failures remain explicit.
814
+
815
+ | Flag | Type | Requirement / bounds |
816
+ | --- | --- | --- |
817
+ | `--trace-ids` | JSON array | Required; min items: 1; max items: 100 |
818
+
819
+ `--output <new-file.zip>` is required and local-only. Exclusive creation, mode 0600, SHA-256/length validation; stdout omits base64. Validate/dry-run never create a file. Check the manifest for partial failures.
820
+
821
+ ### `conversation export`
822
+
823
+ Capability: `ai_monitor.conversation.export`. Export conversations and all their trace spans within export limits.
824
+
825
+ Result: A base64 ZIP archive with SHA-256, byte length and per-conversation/trace completeness. At most 200 traces per batch.
826
+
827
+ | Flag | Type | Requirement / bounds |
828
+ | --- | --- | --- |
829
+ | `--conversation-ids` | JSON array | Required; min items: 1; max items: 20 |
830
+
831
+ `--output <new-file.zip>` is required and local-only. Exclusive creation, mode 0600, SHA-256/length validation; stdout omits base64. Validate/dry-run never create a file. Check the manifest for partial failures.
832
+
833
+ ### `model agent-channels`
834
+
835
+ Capability: `ai_monitor.model.agent_channels`. Read model usage by Agent and Channel over a window ending at the latest data date.
836
+
837
+ Result: Agent and Channel usage, errors and latency; latest-date window semantics match the model page.
838
+
839
+ | Flag | Type | Requirement / bounds |
840
+ | --- | --- | --- |
841
+ | `--model-key` | string | Required; exact observed model key |
842
+ | `--last-days` | number | Default 30; min 1; max 90; anchored to latest data day, not start-date/end-date |
843
+ | `--limit` | number | Default 50; min 1; max 100 |
844
+
845
+ ### `model traces`
846
+
847
+ Capability: `ai_monitor.model.traces`. Read model-related bad traces over a window ending at the latest data date.
848
+
849
+ Result: Bad Trace items and total count with model issue evidence.
850
+
851
+ | Flag | Type | Requirement / bounds |
852
+ | --- | --- | --- |
853
+ | `--model-key` | string | Required; exact observed model key |
854
+ | `--last-days` | number | Default 30; min 1; max 90; anchored to latest data day, not start-date/end-date |
855
+ | `--limit` | number | Default 20; min 1; max 100 |
856
+ | `--offset` | number | Default 0; min 0 |
857
+
858
+ ## Pagination, task and evidence boundaries
859
+
860
+ - Offset pages: reuse the same filters; live data is BEST_EFFORT and can move between requests. List/count share filtering but are not an atomic snapshot.
861
+ - Security issue cursors pair before-last-seen-at/before-issue-id; finding cursors pair before-occurred-at/before-finding-id; task cursors pair before-created-at/before-task-id and retain list-snapshot-at. Use returned values exactly. task-findings trace-id and after-ordinal are mutually exclusive.
862
+ - Diagnosis history requires entity-type/entity-key together when either is used. Diagnosis report defaults to global; other types require entity-key. Read tasks do not enqueue jobs; report null means no existing report.
863
+ - Investigation case state and selected run state differ. Inspect run-get using both IDs. Human Bad/Good sample roles are not automatic Bad Trace flags.
864
+ - Cost core queries use [start,end), not inclusive end dates. cost report-list uses paired inclusive historical period-start/period-end. model list always reads the latest snapshot.
865
+ - Conversation get without span flags remains the previous request. With spans, read trace_failures, spans_page, spans_completeness and spans_limitations; PARTIAL/PAGINATED calls for another page, not a silent completeness claim.
866
+ - Export batches retain per-item failures. A successfully saved ZIP does not mean every requested item was available. Never infer startup root cause from generic Operation aborted or summary error counts.