@thinkingai/ae-cli 6.0.30 → 6.0.31

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 (397) hide show
  1. package/README.md +5 -7
  2. package/README.zh.md +5 -7
  3. package/dist/{auth-7TQRGLBC.js → auth-7H3HAAJ3.js} +10 -10
  4. package/dist/{capability-KVA55RMK.js → capability-SEH3JWLN.js} +49 -10
  5. package/dist/{capability-LKHLZQPD.js → capability-SQ2IWKP3.js} +49 -10
  6. package/dist/{chunk-GWZ5MYWE.js → chunk-6LEYLOV3.js} +25 -4
  7. package/dist/{chunk-THBBNYXI.js → chunk-DYOS6YY7.js} +100 -62
  8. package/dist/{chunk-CWZUGF2J.js → chunk-HL2AJQ4Q.js} +15 -0
  9. package/dist/{chunk-OJR23CIK.js → chunk-I4A62X3N.js} +100 -61
  10. package/dist/chunk-N2QORU5D.js +68 -0
  11. package/dist/{chunk-7QQ4233A.js → chunk-PKRD2IEM.js} +25 -4
  12. package/dist/chunk-TKQJQXWT.js +68 -0
  13. package/dist/{chunk-ZAOL36CG.js → chunk-TNW2CI4W.js} +46 -30
  14. package/dist/{config-ZVPARN4R.js → config-7UZWDE74.js} +25 -25
  15. package/dist/index.js +143 -46
  16. package/dist/{metadata-6CCFV4K5.js → metadata-W6JFFMBA.js} +6 -43
  17. package/dist/{metadata-PDOIWH5O.js → metadata-X62TKIVK.js} +6 -43
  18. package/dist/{raw-OHSUK42D.js → raw-CN542NGT.js} +8 -6
  19. package/dist/{sync-ULT5SECP.js → sync-ERNHDPB5.js} +1 -1
  20. package/dist/{te-agent-FAIBM3SA.js → te-agent-FCCWUDTJ.js} +1 -1
  21. package/dist/te-analysis-NJGNWZFC.js +4530 -0
  22. package/dist/te-analysis-YGV5V5EX.js +4530 -0
  23. package/dist/{te-common-SDB3O2QG.js → te-common-5NJLF3XG.js} +1 -1
  24. package/dist/{te-common-CFGQXTFV.js → te-common-7VTJZPII.js} +1 -1
  25. package/dist/{te-community-6A7LKYUH.js → te-community-PEZ2VEF7.js} +1 -1
  26. package/dist/{te-community-GMWFGILT.js → te-community-TSKJ652U.js} +1 -1
  27. package/dist/{te-dataops-Z53CTG2U.js → te-dataops-F36T656A.js} +32 -12
  28. package/dist/{te-dataops-6LIPYNGH.js → te-dataops-ZNJBQ6VT.js} +33 -12
  29. package/dist/{te-engage-M7JQSJDP.js → te-engage-BUWVSSSK.js} +398 -11
  30. package/dist/{te-engage-545HJL6J.js → te-engage-EPE3QKDE.js} +398 -11
  31. package/dist/{te-meta-FADFLTDM.js → te-meta-MAAUHFQO.js} +9 -9
  32. package/dist/{te-meta-PKT27OTN.js → te-meta-VKWNAWO4.js} +9 -9
  33. package/dist/{te-team-RG75PR5D.js → te-team-OKCOX7OE.js} +5 -5
  34. package/package.json +15 -7
  35. package/skills/ae-agent/SKILL.md +6 -8
  36. package/skills/ae-agent/references/accept-skill-share.md +2 -2
  37. package/skills/ae-agent/references/add-attachment.md +3 -3
  38. package/skills/ae-agent/references/add-mcp.md +2 -3
  39. package/skills/ae-agent/references/add-model.md +3 -5
  40. package/skills/ae-agent/references/add-skill.md +2 -3
  41. package/skills/ae-agent/references/approve-skill.md +2 -2
  42. package/skills/ae-agent/references/auto-provision-mcp-credentials.md +3 -3
  43. package/skills/ae-agent/references/cancel-skill-submission.md +2 -2
  44. package/skills/ae-agent/references/copy-skill.md +3 -3
  45. package/skills/ae-agent/references/create-agent.md +3 -4
  46. package/skills/ae-agent/references/create-automation.md +5 -9
  47. package/skills/ae-agent/references/del-agent.md +3 -2
  48. package/skills/ae-agent/references/del-attachment.md +3 -2
  49. package/skills/ae-agent/references/del-mcp.md +3 -2
  50. package/skills/ae-agent/references/del-model.md +3 -2
  51. package/skills/ae-agent/references/del-skill-asset.md +3 -3
  52. package/skills/ae-agent/references/del-skill-reference.md +3 -3
  53. package/skills/ae-agent/references/del-skill-script.md +3 -3
  54. package/skills/ae-agent/references/del-skill.md +3 -2
  55. package/skills/ae-agent/references/edit-skill.md +4 -4
  56. package/skills/ae-agent/references/mcp-auth-disconnect.md +2 -2
  57. package/skills/ae-agent/references/mcp-auth-start.md +3 -3
  58. package/skills/ae-agent/references/reject-skill-share.md +2 -2
  59. package/skills/ae-agent/references/reject-skill.md +2 -2
  60. package/skills/ae-agent/references/rescan-skills.md +2 -2
  61. package/skills/ae-agent/references/set-mcp-credential.md +3 -3
  62. package/skills/ae-agent/references/set-mcp-meta.md +2 -2
  63. package/skills/ae-agent/references/set-skill-meta.md +2 -2
  64. package/skills/ae-agent/references/share-skill.md +3 -3
  65. package/skills/ae-agent/references/submit-skill.md +3 -3
  66. package/skills/ae-agent/references/toggle-mcp.md +3 -3
  67. package/skills/ae-agent/references/toggle-model.md +3 -3
  68. package/skills/ae-agent/references/toggle-skill.md +3 -3
  69. package/skills/ae-agent/references/update-agent.md +2 -2
  70. package/skills/ae-agent/references/update-automation.md +6 -8
  71. package/skills/ae-agent/references/update-mcp.md +4 -4
  72. package/skills/ae-agent/references/update-model.md +2 -3
  73. package/skills/ae-agent/references/upload-skill-asset.md +3 -3
  74. package/skills/ae-agent/references/upload-skill-reference.md +3 -3
  75. package/skills/ae-agent/references/upload-skill-script.md +3 -3
  76. package/skills/ae-agent/references/upload-skill.md +6 -7
  77. package/skills/ae-analysis/SKILL.md +105 -512
  78. package/skills/ae-analysis/references/adhoc_export.md +71 -0
  79. package/skills/ae-analysis/references/adhoc_run.md +58 -0
  80. package/skills/ae-analysis/references/ai_models.md +459 -0
  81. package/skills/ae-analysis/references/analysis_data_retrieval.md +101 -0
  82. package/skills/ae-analysis/references/analysis_gateway_assets.md +72 -12
  83. package/skills/ae-analysis/references/analysis_interpretation.md +38 -0
  84. package/skills/ae-analysis/references/artifact_download.md +13 -7
  85. package/skills/ae-analysis/references/asset_abnormal_get.md +5 -5
  86. package/skills/ae-analysis/references/asset_abnormal_list.md +5 -5
  87. package/skills/ae-analysis/references/asset_authentication_list.md +5 -5
  88. package/skills/ae-analysis/references/asset_authentication_update.md +6 -6
  89. package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +26 -0
  90. package/skills/ae-analysis/references/asset_batch_delete.md +26 -0
  91. package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +26 -0
  92. package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +26 -0
  93. package/skills/ae-analysis/references/asset_batch_handover.md +26 -0
  94. package/skills/ae-analysis/references/asset_batch_info_export.md +25 -0
  95. package/skills/ae-analysis/references/asset_batch_sql_export.md +25 -0
  96. package/skills/ae-analysis/references/asset_dependency_list.md +30 -0
  97. package/skills/ae-analysis/references/asset_export.md +30 -0
  98. package/skills/ae-analysis/references/asset_impact_list.md +30 -0
  99. package/skills/ae-analysis/references/asset_lineage_get.md +25 -0
  100. package/skills/ae-analysis/references/asset_list.md +30 -0
  101. package/skills/ae-analysis/references/asset_query_history_list.md +30 -0
  102. package/skills/ae-analysis/references/asset_recent_list.md +4 -4
  103. package/skills/ae-analysis/references/asset_search.md +4 -4
  104. package/skills/ae-analysis/references/asset_url_get.md +28 -0
  105. package/skills/ae-analysis/references/audience_models.md +42 -0
  106. package/skills/ae-analysis/references/batch_create_metadata.md +5 -1
  107. package/skills/ae-analysis/references/batch_edit_metadata.md +4 -1
  108. package/skills/ae-analysis/references/bi_panel_copy.md +1 -1
  109. package/skills/ae-analysis/references/bi_panel_create.md +1 -1
  110. package/skills/ae-analysis/references/bi_panel_delete.md +2 -0
  111. package/skills/ae-analysis/references/bi_panel_list.md +4 -2
  112. package/skills/ae-analysis/references/bi_panel_page_data_export.md +8 -4
  113. package/skills/ae-analysis/references/bi_panel_page_data_run.md +7 -3
  114. package/skills/ae-analysis/references/bi_panel_share.md +1 -1
  115. package/skills/ae-analysis/references/bi_panel_update.md +1 -1
  116. package/skills/ae-analysis/references/bi_panel_version_publish.md +1 -1
  117. package/skills/ae-analysis/references/cancel_query.md +4 -4
  118. package/skills/ae-analysis/references/command_index.md +209 -0
  119. package/skills/ae-analysis/references/create_alert.md +1 -1
  120. package/skills/ae-analysis/references/create_entity.md +1 -1
  121. package/skills/ae-analysis/references/create_metric.md +11 -15
  122. package/skills/ae-analysis/references/create_project_mark_time.md +2 -1
  123. package/skills/ae-analysis/references/create_virtual_event.md +10 -14
  124. package/skills/ae-analysis/references/create_virtual_property.md +1 -1
  125. package/skills/ae-analysis/references/dashboard_copy.md +1 -1
  126. package/skills/ae-analysis/references/dashboard_create.md +1 -1
  127. package/skills/ae-analysis/references/dashboard_daily_report_send.md +1 -1
  128. package/skills/ae-analysis/references/dashboard_daily_report_update.md +1 -1
  129. package/skills/ae-analysis/references/dashboard_definition_import.md +1 -1
  130. package/skills/ae-analysis/references/dashboard_delete.md +2 -0
  131. package/skills/ae-analysis/references/dashboard_freeze.md +1 -1
  132. package/skills/ae-analysis/references/dashboard_handover.md +1 -1
  133. package/skills/ae-analysis/references/dashboard_list.md +4 -2
  134. package/skills/ae-analysis/references/dashboard_report_add.md +15 -0
  135. package/skills/ae-analysis/references/dashboard_report_data_export.md +15 -7
  136. package/skills/ae-analysis/references/dashboard_report_data_run.md +15 -7
  137. package/skills/ae-analysis/references/dashboard_share.md +11 -2
  138. package/skills/ae-analysis/references/dashboard_update.md +12 -3
  139. package/skills/ae-analysis/references/datatable_columns_get.md +2 -2
  140. package/skills/ae-analysis/references/datatable_influence_list.md +2 -2
  141. package/skills/ae-analysis/references/datatable_version_get.md +2 -2
  142. package/skills/ae-analysis/references/datatable_version_list.md +2 -2
  143. package/skills/ae-analysis/references/delete_alert.md +8 -3
  144. package/skills/ae-analysis/references/delete_metric.md +8 -3
  145. package/skills/ae-analysis/references/delete_project_mark_times.md +5 -3
  146. package/skills/ae-analysis/references/delete_track_items.md +4 -3
  147. package/skills/ae-analysis/references/drilldown_user_events_export.md +20 -0
  148. package/skills/ae-analysis/references/drilldown_user_events_run.md +34 -0
  149. package/skills/ae-analysis/references/drilldown_users_export.md +17 -0
  150. package/skills/ae-analysis/references/drilldown_users_run.md +61 -0
  151. package/skills/ae-analysis/references/entity_detail_export.md +31 -0
  152. package/skills/ae-analysis/references/entity_detail_run.md +50 -0
  153. package/skills/ae-analysis/references/entity_id_import_options.md +20 -0
  154. package/skills/ae-analysis/references/event_changelog_list.md +2 -2
  155. package/skills/ae-analysis/references/event_create.md +4 -4
  156. package/skills/ae-analysis/references/event_delete.md +5 -4
  157. package/skills/ae-analysis/references/event_detail_export.md +31 -0
  158. package/skills/ae-analysis/references/event_detail_run.md +58 -0
  159. package/skills/ae-analysis/references/event_get.md +2 -2
  160. package/skills/ae-analysis/references/event_hide_update.md +3 -3
  161. package/skills/ae-analysis/references/event_influence_list.md +2 -2
  162. package/skills/ae-analysis/references/event_list.md +2 -2
  163. package/skills/ae-analysis/references/{super_metadata_export.md → event_property_bundle_export.md} +7 -7
  164. package/skills/ae-analysis/references/event_property_bundle_import.md +25 -0
  165. package/skills/ae-analysis/references/event_relation_update.md +4 -4
  166. package/skills/ae-analysis/references/event_update.md +2 -2
  167. package/skills/ae-analysis/references/exchange_config_update.md +2 -2
  168. package/skills/ae-analysis/references/exchange_rate_refresh.md +2 -2
  169. package/skills/ae-analysis/references/exchange_rule_list.md +2 -2
  170. package/skills/ae-analysis/references/exchange_rule_update.md +4 -4
  171. package/skills/ae-analysis/references/exchange_rule_validate.md +4 -4
  172. package/skills/ae-analysis/references/favorite_add.md +1 -1
  173. package/skills/ae-analysis/references/favorite_remove.md +1 -1
  174. package/skills/ae-analysis/references/folder_create.md +2 -3
  175. package/skills/ae-analysis/references/folder_share.md +2 -3
  176. package/skills/ae-analysis/references/generate_track_program.md +2 -1
  177. package/skills/ae-analysis/references/generate_track_sdk_sample.md +2 -1
  178. package/skills/ae-analysis/references/get_alert.md +4 -0
  179. package/skills/ae-analysis/references/get_alert_definition_schema.md +1 -0
  180. package/skills/ae-analysis/references/get_metric.md +4 -4
  181. package/skills/ae-analysis/references/get_project_config.md +1 -0
  182. package/skills/ae-analysis/references/get_resource_url.md +1 -0
  183. package/skills/ae-analysis/references/get_track_program.md +3 -0
  184. package/skills/ae-analysis/references/history_tag_batch_refresh.md +19 -0
  185. package/skills/ae-analysis/references/history_tag_clear.md +13 -0
  186. package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +15 -0
  187. package/skills/ae-analysis/references/history_tag_data_drilldown_run.md +13 -0
  188. package/skills/ae-analysis/references/history_tag_data_export.md +15 -0
  189. package/skills/ae-analysis/references/history_tag_data_run.md +15 -0
  190. package/skills/ae-analysis/references/history_tag_list.md +11 -0
  191. package/skills/ae-analysis/references/history_tag_refresh.md +11 -0
  192. package/skills/ae-analysis/references/input_file_inspect.md +9 -0
  193. package/skills/ae-analysis/references/input_file_purpose_list.md +9 -0
  194. package/skills/ae-analysis/references/input_file_upload.md +11 -0
  195. package/skills/ae-analysis/references/list_alerts.md +3 -2
  196. package/skills/ae-analysis/references/list_entities.md +3 -2
  197. package/skills/ae-analysis/references/list_events.md +5 -5
  198. package/skills/ae-analysis/references/list_metrics.md +5 -5
  199. package/skills/ae-analysis/references/list_project_mark_times.md +2 -1
  200. package/skills/ae-analysis/references/list_project_users.md +1 -0
  201. package/skills/ae-analysis/references/list_properties.md +5 -5
  202. package/skills/ae-analysis/references/load_filters.md +3 -0
  203. package/skills/ae-analysis/references/metric_create.md +11 -6
  204. package/skills/ae-analysis/references/metric_delete.md +5 -4
  205. package/skills/ae-analysis/references/metric_get.md +2 -2
  206. package/skills/ae-analysis/references/metric_list.md +2 -2
  207. package/skills/ae-analysis/references/metric_update.md +12 -6
  208. package/skills/ae-analysis/references/operation_record_export.md +25 -0
  209. package/skills/ae-analysis/references/operation_record_list.md +31 -0
  210. package/skills/ae-analysis/references/project_space_create.md +2 -3
  211. package/skills/ae-analysis/references/project_space_list.md +3 -1
  212. package/skills/ae-analysis/references/project_space_share.md +2 -3
  213. package/skills/ae-analysis/references/property_changelog_list.md +2 -2
  214. package/skills/ae-analysis/references/property_create.md +4 -4
  215. package/skills/ae-analysis/references/property_delete.md +5 -4
  216. package/skills/ae-analysis/references/property_get.md +2 -2
  217. package/skills/ae-analysis/references/property_hide_update.md +3 -3
  218. package/skills/ae-analysis/references/property_influence_list.md +2 -2
  219. package/skills/ae-analysis/references/property_list.md +2 -2
  220. package/skills/ae-analysis/references/property_related_events.md +2 -2
  221. package/skills/ae-analysis/references/property_relation_update.md +4 -4
  222. package/skills/ae-analysis/references/property_update.md +2 -2
  223. package/skills/ae-analysis/references/public_link_create.md +1 -1
  224. package/skills/ae-analysis/references/public_link_delete.md +2 -0
  225. package/skills/ae-analysis/references/public_link_list.md +3 -1
  226. package/skills/ae-analysis/references/public_link_offline.md +1 -1
  227. package/skills/ae-analysis/references/public_link_update.md +1 -1
  228. package/skills/ae-analysis/references/query_cancel.md +1 -1
  229. package/skills/ae-analysis/references/query_create_result_cluster.md +47 -0
  230. package/skills/ae-analysis/references/report_abnormal_get.md +15 -0
  231. package/skills/ae-analysis/references/report_change_log_get.md +15 -0
  232. package/skills/ae-analysis/references/report_change_log_list.md +15 -0
  233. package/skills/ae-analysis/references/report_create.md +29 -0
  234. package/skills/ae-analysis/references/report_data_export.md +37 -0
  235. package/skills/ae-analysis/references/report_data_run.md +45 -0
  236. package/skills/ae-analysis/references/report_delete.md +17 -0
  237. package/skills/ae-analysis/references/report_get.md +21 -0
  238. package/skills/ae-analysis/references/report_list.md +17 -0
  239. package/skills/ae-analysis/references/report_list_export.md +15 -0
  240. package/skills/ae-analysis/references/report_update.md +22 -0
  241. package/skills/ae-analysis/references/report_version_rollback.md +15 -0
  242. package/skills/ae-analysis/references/rule_create.md +27 -0
  243. package/skills/ae-analysis/references/rule_delete.md +26 -0
  244. package/skills/ae-analysis/references/rule_list.md +24 -0
  245. package/skills/ae-analysis/references/rule_schema.md +24 -0
  246. package/skills/ae-analysis/references/rule_update.md +28 -0
  247. package/skills/ae-analysis/references/run_inspect.md +10 -4
  248. package/skills/ae-analysis/references/save_track_items.md +4 -1
  249. package/skills/ae-analysis/references/sql_table_columns.md +20 -0
  250. package/skills/ae-analysis/references/sql_table_list.md +33 -0
  251. package/skills/ae-analysis/references/update_alert.md +1 -1
  252. package/skills/ae-analysis/references/update_metric.md +11 -14
  253. package/skills/ae-analysis/references/update_project_mark_time.md +4 -3
  254. package/skills/ae-analysis/references/user_cluster_create.md +15 -0
  255. package/skills/ae-analysis/references/user_cluster_create_id.md +15 -0
  256. package/skills/ae-analysis/references/user_cluster_delete.md +13 -0
  257. package/skills/ae-analysis/references/user_cluster_get.md +11 -0
  258. package/skills/ae-analysis/references/user_cluster_list.md +15 -0
  259. package/skills/ae-analysis/references/user_cluster_member_export.md +15 -0
  260. package/skills/ae-analysis/references/user_cluster_member_list.md +19 -0
  261. package/skills/ae-analysis/references/user_cluster_models.md +87 -0
  262. package/skills/ae-analysis/references/user_cluster_refresh.md +11 -0
  263. package/skills/ae-analysis/references/user_cluster_update.md +13 -0
  264. package/skills/ae-analysis/references/user_cluster_update_id.md +15 -0
  265. package/skills/ae-analysis/references/user_tag_create.md +15 -0
  266. package/skills/ae-analysis/references/user_tag_create_id.md +15 -0
  267. package/skills/ae-analysis/references/user_tag_delete.md +13 -0
  268. package/skills/ae-analysis/references/user_tag_get.md +11 -0
  269. package/skills/ae-analysis/references/user_tag_list.md +17 -0
  270. package/skills/ae-analysis/references/user_tag_member_export.md +15 -0
  271. package/skills/ae-analysis/references/user_tag_member_list.md +19 -0
  272. package/skills/ae-analysis/references/user_tag_models.md +54 -0
  273. package/skills/ae-analysis/references/user_tag_refresh.md +11 -0
  274. package/skills/ae-analysis/references/user_tag_update.md +13 -0
  275. package/skills/ae-analysis/references/user_tag_update_id.md +15 -0
  276. package/skills/ae-analysis/references/virtual_event_create.md +4 -4
  277. package/skills/ae-analysis/references/virtual_event_delete.md +5 -4
  278. package/skills/ae-analysis/references/virtual_event_get.md +2 -2
  279. package/skills/ae-analysis/references/virtual_property_create.md +13 -6
  280. package/skills/ae-analysis/references/virtual_property_sql_rule_delete.md +5 -4
  281. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +13 -6
  282. package/skills/ae-analysis-global/SKILL.md +6 -8
  283. package/skills/ae-analysis-global/references/list_query_clusters.md +7 -6
  284. package/skills/ae-capability/SKILL.md +68 -15
  285. package/skills/ae-community/SKILL.md +2 -2
  286. package/skills/ae-dataops/SKILL.md +1 -1
  287. package/skills/ae-engage/SKILL.md +38 -10
  288. package/skills/ae-engage/references/build-task-save-guide.md +11 -9
  289. package/skills/ae-engage/references/channel_touch_limits_list.md +29 -0
  290. package/skills/ae-engage/references/group-list.md +13 -0
  291. package/skills/ae-engage/references/operation-log-query.md +11 -0
  292. package/skills/ae-engage/references/ops-delete.md +14 -0
  293. package/skills/ae-engage/references/push-record-query.md +26 -0
  294. package/skills/ae-engage/references/save-flow.md +5 -4
  295. package/skills/ae-engage/references/save-task.md +24 -20
  296. package/skills/ae-engage/references/segment-list-query.md +18 -0
  297. package/skills/ae-engage/references/task-operation-log-query.md +23 -0
  298. package/skills/ae-engage/references/version-list.md +18 -0
  299. package/skills/ae-generate-tracking-code/SKILL.md +1 -1
  300. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +2 -2
  301. package/skills/ae-generate-tracking-plan/SKILL.md +17 -12
  302. package/skills/ae-generate-tracking-plan/references/te-api.md +2 -1
  303. package/skills/ae-kb/SKILL.md +1 -1
  304. package/skills/ae-metadata/SKILL.md +9 -8
  305. package/skills/ae-metadata/references/metadata_data_table_csv_delete.md +1 -0
  306. package/skills/ae-metadata/references/metadata_data_table_csv_write.md +6 -6
  307. package/skills/ae-metadata/references/metadata_data_table_property_bindings_update.md +2 -2
  308. package/skills/ae-metadata/references/metadata_data_table_sql_delete.md +1 -0
  309. package/skills/ae-metadata/references/metadata_data_table_sql_write.md +21 -7
  310. package/skills/ae-metadata/references/metadata_property_dimension_table_bind_existing.md +3 -3
  311. package/skills/ae-metadata/references/metadata_property_dimension_table_create_and_bind_csv.md +4 -4
  312. package/skills/ae-team/SKILL.md +9 -9
  313. package/skills/ae-team/references/create.md +2 -2
  314. package/skills/ae-team/references/delete.md +3 -3
  315. package/skills/ae-team/references/run-cancel.md +3 -3
  316. package/skills/ae-team/references/run-chat.md +4 -4
  317. package/skills/ae-team/references/run-reply.md +3 -3
  318. package/skills/ae-team/references/run-start.md +4 -5
  319. package/skills/ae-team/references/run-watch.md +1 -1
  320. package/skills/ae-team/references/update.md +2 -2
  321. package/dist/chunk-P2JRP6HJ.js +0 -42
  322. package/dist/chunk-S5XN6KEX.js +0 -42
  323. package/dist/te-analysis-DDXGM7WM.js +0 -3188
  324. package/dist/te-analysis-HCDNYI7E.js +0 -3188
  325. package/dist/te-audience-ECFS4GF4.js +0 -600
  326. package/dist/te-audience-WO377T2J.js +0 -600
  327. package/skills/ae-analysis/references/build_attribution_analysis_qp.md +0 -62
  328. package/skills/ae-analysis/references/build_cluster_definition.md +0 -62
  329. package/skills/ae-analysis/references/build_distribution_analysis_qp.md +0 -67
  330. package/skills/ae-analysis/references/build_entity_details_sql.md +0 -58
  331. package/skills/ae-analysis/references/build_event_analysis_qp.md +0 -134
  332. package/skills/ae-analysis/references/build_event_details_sql.md +0 -61
  333. package/skills/ae-analysis/references/build_funnel_analysis_qp.md +0 -145
  334. package/skills/ae-analysis/references/build_heat_map_analysis_qp.md +0 -54
  335. package/skills/ae-analysis/references/build_interval_analysis_qp.md +0 -60
  336. package/skills/ae-analysis/references/build_path_analysis_qp.md +0 -53
  337. package/skills/ae-analysis/references/build_prop_analysis_qp.md +0 -124
  338. package/skills/ae-analysis/references/build_rank_list_analysis_qp.md +0 -63
  339. package/skills/ae-analysis/references/build_retention_analysis_qp.md +0 -143
  340. package/skills/ae-analysis/references/build_tag_definition.md +0 -65
  341. package/skills/ae-analysis/references/copy_dashboard.md +0 -33
  342. package/skills/ae-analysis/references/create_cluster.md +0 -69
  343. package/skills/ae-analysis/references/create_dashboard.md +0 -49
  344. package/skills/ae-analysis/references/create_id_cluster.md +0 -40
  345. package/skills/ae-analysis/references/create_id_tag.md +0 -39
  346. package/skills/ae-analysis/references/create_or_update_dashboard_note.md +0 -39
  347. package/skills/ae-analysis/references/create_public_access_link.md +0 -43
  348. package/skills/ae-analysis/references/create_report.md +0 -60
  349. package/skills/ae-analysis/references/create_result_cluster.md +0 -73
  350. package/skills/ae-analysis/references/create_space.md +0 -34
  351. package/skills/ae-analysis/references/create_tag.md +0 -61
  352. package/skills/ae-analysis/references/delete_cluster.md +0 -27
  353. package/skills/ae-analysis/references/delete_dashboard.md +0 -30
  354. package/skills/ae-analysis/references/delete_report.md +0 -27
  355. package/skills/ae-analysis/references/delete_tag.md +0 -27
  356. package/skills/ae-analysis/references/drilldown_user_events.md +0 -74
  357. package/skills/ae-analysis/references/drilldown_users.md +0 -80
  358. package/skills/ae-analysis/references/freeze_dashboards.md +0 -29
  359. package/skills/ae-analysis/references/get_analysis_query_schema.md +0 -71
  360. package/skills/ae-analysis/references/get_bi_panel_detail.md +0 -35
  361. package/skills/ae-analysis/references/get_cluster_definition_schema.md +0 -53
  362. package/skills/ae-analysis/references/get_clusters_by_name.md +0 -69
  363. package/skills/ae-analysis/references/get_filter_schema.md +0 -33
  364. package/skills/ae-analysis/references/get_groupby_schema.md +0 -33
  365. package/skills/ae-analysis/references/get_report_definition.md +0 -37
  366. package/skills/ae-analysis/references/get_table_columns.md +0 -37
  367. package/skills/ae-analysis/references/get_tag_definition_schema.md +0 -49
  368. package/skills/ae-analysis/references/get_tags_by_name.md +0 -69
  369. package/skills/ae-analysis/references/list_bi_panels.md +0 -35
  370. package/skills/ae-analysis/references/list_cluster_members.md +0 -45
  371. package/skills/ae-analysis/references/list_clusters.md +0 -46
  372. package/skills/ae-analysis/references/list_dashboards.md +0 -43
  373. package/skills/ae-analysis/references/list_public_access_links.md +0 -41
  374. package/skills/ae-analysis/references/list_reports.md +0 -43
  375. package/skills/ae-analysis/references/list_spaces.md +0 -27
  376. package/skills/ae-analysis/references/list_tag_members.md +0 -46
  377. package/skills/ae-analysis/references/list_tags.md +0 -44
  378. package/skills/ae-analysis/references/move_dashboard.md +0 -33
  379. package/skills/ae-analysis/references/query_adhoc.md +0 -141
  380. package/skills/ae-analysis/references/query_bi_panel_data.md +0 -58
  381. package/skills/ae-analysis/references/query_dashboard_detail.md +0 -35
  382. package/skills/ae-analysis/references/query_dashboard_report_data.md +0 -63
  383. package/skills/ae-analysis/references/query_entity_details.md +0 -63
  384. package/skills/ae-analysis/references/query_event_details.md +0 -66
  385. package/skills/ae-analysis/references/query_report_data.md +0 -99
  386. package/skills/ae-analysis/references/refresh_cluster.md +0 -31
  387. package/skills/ae-analysis/references/refresh_tag.md +0 -31
  388. package/skills/ae-analysis/references/super_metadata_import.md +0 -24
  389. package/skills/ae-analysis/references/update_cluster.md +0 -61
  390. package/skills/ae-analysis/references/update_dashboard.md +0 -45
  391. package/skills/ae-analysis/references/update_id_cluster.md +0 -36
  392. package/skills/ae-analysis/references/update_id_tag.md +0 -37
  393. package/skills/ae-analysis/references/update_public_access_link.md +0 -41
  394. package/skills/ae-analysis/references/update_report.md +0 -35
  395. package/skills/ae-analysis/references/update_tag.md +0 -61
  396. package/skills/ae-analysis-intent/SKILL.md +0 -132
  397. package/skills/ae-metadata/references/metadata_input_file_upload.md +0 -29
@@ -1,572 +1,165 @@
1
1
  ---
2
2
  name: ae-analysis
3
- version: 3.1.0
4
- description: "AE/TE/ThinkingEngine/ThinkingAI ae-cli manual for analysis-side tasks in the AE system or analysis platform: reports, dashboards, alerts, ad hoc analysis, drilldown, audience clusters, tags, tag members, metrics and metric definitions, events, properties, virtual events, virtual properties, metadata, project configuration, tracking plans, event tracking, mark times, project lists, and resource links. Use when the user asks to query, create, update, refresh, inspect, troubleshoot, govern, or manage these AE analysis assets. Must use ae-cli, read the matching references/<tool_name>.md command manual before composing commands, and never guess command names, flags, JSON payloads, project_id, resource IDs, or parameter formats."
3
+ version: 4.0.2
4
+ description: "Use ae-cli for AE/TE analysis-side data questions and asset operations: reports, dashboards, ad-hoc models, drilldown, detail data, alerts, clusters, tags, metrics, metadata, project configuration, tracking plans, projects, and resource links. Use when the user asks to query data, explain a change, export evidence, or inspect/create/update analysis assets."
5
5
  ---
6
6
 
7
7
  # ae-analysis
8
8
 
9
- > **CRITICAL - This skill is self-contained.** Use the Global AE CLI Rules below; do not require a separate shared skill for analysis-side tasks.
10
- > **CRITICAL - For all commands that require `project_id`, you MUST satisfy `PROJECT_ID_GATE` first (no guessing): verify the project by ID/name with `analysis_common +list_projects` only when there is no valid project context yet, when the user switches project/host/environment, or when the supplied project is ambiguous. Reuse a project already verified in the same continuous conversation and same host/environment.**
11
- > **CRITICAL - For write operations in this skill, you MUST complete the post-write link loop when applicable:** after success and extractable `resource_id`, call `analysis_common +get_resource_url` and return the main result + resource link (or explicit link-failure reason).
12
- > **CRITICAL - Before running any `+<tool_name>` command, you MUST first read the corresponding `references/<tool_name>.md`.** The reference filename always equals the command name without the leading `+`, for example `+query_adhoc` -> `references/query_adhoc.md`.
13
- > **CRITICAL - Before running any capability-gateway L2 command such as `ae-cli analysis dashboard list`, `ae-cli analysis bi-panel get`, `ae-cli analysis project-space list`, or `ae-cli analysis public-link list`, read the matching `references/<resource>_<action>.md` file. Replace hyphens with underscores, for example `analysis dashboard list` -> `references/dashboard_list.md`, `analysis bi-panel get` -> `references/bi_panel_get.md`. Use [`references/analysis_gateway_assets.md`](references/analysis_gateway_assets.md) as the overview matrix.**
14
- > **CRITICAL - Project-space and folder create/delete/share are L3 capabilities only.** Do not use `ae-cli analysis project-space create` or `ae-cli analysis folder create`. Read the matching `references/<resource>_<action>.md` file and invoke via `ae-cli capability inspect/dry-run/run`. For `*.members` read capabilities, use `capability search/inspect/run` per [`ae-capability`](../../ae-capability/SKILL.md) and the L3 matrix in `analysis_gateway_assets.md` — no standalone reference file (see `te-cli/docs/capability-command-admission.md` §10).
15
- > **CRITICAL - L3 delete capabilities:** user intent is not execution authorization. For `risk=high-risk-write`, dry-run first, summarize in chat, ask for confirmation, and call `capability run ... --yes` only in a later turn after the user explicitly confirms. For `risk=write`, run directly after dry-run. Follow [`ae-capability`](../../ae-capability/SKILL.md) High-Risk Confirmation Workflow.
9
+ This is the single entry skill for analysis intent and command execution.
16
10
 
17
- ## Global AE CLI Rules
18
-
19
- AE CLI (`ae-cli`) is the command-line tool for the AE / TE / ThinkingEngine analysis platform. For AE analysis-side requests, prefer `ae-cli` and this skill's reference docs over model memory.
20
-
21
- Global parameters:
22
-
23
- | Parameter | Description |
24
- | ------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
25
- | `--format <json\|table>` | Output format. Default is JSON. |
26
- | `--jq <expr>` | jq filter expression for JSON output. |
27
- | `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli analysis dashboard list --host <url>`. |
28
-
29
- Output and errors:
30
-
31
- - Successful commands return machine-readable JSON by default.
32
- - Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
33
-
34
- Safety constraints:
35
-
36
- - Read and write commands can execute directly after required IDs and references are verified.
37
- - Delete commands (`high-risk-write`) require explicit user authorization. For L3 `capability run` with `risk=high-risk-write`, dry-run first, then chat confirmation, then `--yes` only after the user authorizes execution in a follow-up message.
38
- - Never invent command names, flags, JSON payloads, `project_id`, resource IDs, field names, event names, property names, metric definitions, or date formats. For every non-SQL ad-hoc model, do not pre-discover metadata; pass the user's intent to the matching QP builder and let the builder resolve metadata or return clarification. For the SQL manual workflow, read the matching command reference and verify the real project definition first.
39
- - **NEVER fabricate or guess resource names** (reports, dashboards, events, properties, metrics, clusters, tags, alerts). Always use list commands to discover real resources first. If a resource is not found after fuzzy search and full list fallback, explicitly tell the user "resource not found" and stop - do not proceed with fabricated names.
40
-
41
- ## When to Use
11
+ ## Before any command
42
12
 
43
- Use `ae-analysis` for all AE analysis-side work below:
13
+ 1. If the command family is already known, open its dedicated reference directly. Otherwise search only the matching row in [`references/command_index.md`](references/command_index.md) (for example with `rg`); do not read the exhaustive index end to end.
14
+ 2. Read the selected command's dedicated reference before composing it:
15
+ - `+list_events` -> `references/list_events.md`
16
+ - `analysis dashboard list` -> `references/dashboard_list.md`
17
+ - replace hyphens with underscores in gateway filenames.
18
+ 3. For an AI-facing ad-hoc definition, also read [`references/ai_models.md`](references/ai_models.md).
19
+ 4. For cluster/tag `--definition-request`, also read the matching [`references/user_cluster_models.md`](references/user_cluster_models.md) or [`references/user_tag_models.md`](references/user_tag_models.md). Shared primitives live in [`references/audience_models.md`](references/audience_models.md).
20
+ 5. For analysis data retrieval, choose `run` or `export` using [`references/analysis_data_retrieval.md`](references/analysis_data_retrieval.md).
44
21
 
45
- - Domain `analysis`: alerts, reports/dashboards, ad-hoc model analysis, drilldown, entity/event details, schema helpers.
46
- - Domain `analysis-meta`: capability-gateway metadata assets, events, properties, virtual metadata, metrics, data tables, exchange rules, and super metadata.
47
- - Domain `analysis_audience`: clusters/tags and definition schemas.
48
- - Domain `analysis_meta`: metadata governance, metrics, virtual metadata, project config, tracking plans, mark times, entity catalog (MCP). For **single** super-event / super-property **detail** on the capability gateway, switch to **`ae-metadata`** skill (`metadata event get`, `metadata property get`).
49
- - Domain `analysis_common`: project listing and post-write resource links.
22
+ The generated command index is exhaustive. This file contains routing and workflow rules only; do not duplicate a hand-maintained command inventory here.
50
23
 
51
- If user intent is Engage/DataOps/Community/metadata gateway detail, switch to `ae-engage` / `ae-dataops` / `ae-community` / **`ae-metadata`**.
24
+ ## Boundaries and priority
52
25
 
53
- ## Command Format
26
+ Use this skill for these CLI services:
54
27
 
55
- - `ae-cli analysis +<tool_name> [options]`
56
- - `ae-cli analysis_audience +<tool_name> [options]`
57
- - `ae-cli analysis_meta +<tool_name> [options]`
58
- - `ae-cli analysis_common +<tool_name> [options]`
59
- - `ae-cli analysis-meta <resource> <action> [options]` for capability-gateway metadata assets, events, properties, virtual metadata, metrics, data tables, exchange rules, and super metadata.
60
- - `ae-cli analysis <resource> <action> [options]` for curated capability-gateway dashboard, BI panel, project-space list/get, favorite, public-link, dashboard-definition, dashboard-daily-report, and async asset data commands.
61
- - `ae-cli capability inspect/dry-run/run <capability-id>` for L3 project-space and folder create/delete/share/members capabilities.
28
+ - `analysis`: reports, dashboards, BI panels, ad-hoc analysis, drilldown, detail data, alerts, clusters, tags, and async runs/artifacts.
29
+ - `analysis-meta`: gateway metadata assets, events, properties, virtual metadata, metrics, data tables, exchange rules, and super metadata.
30
+ - `analysis_meta`: metadata governance, metrics, virtual metadata, project config, tracking plans, mark times, and entity catalog.
31
+ - `analysis_common`: project discovery and resource links.
62
32
 
63
- Conventions:
33
+ For metadata gateway detail outside the commands in the generated index, use the metadata skill. For Engage, DataOps, or Community work, use the corresponding skill.
64
34
 
65
- - MCP `+<tool_name>` command flags use underscores, e.g. `--project_id`.
66
- - Capability-gateway command flags use kebab-case, e.g. `--project-id`, `--dashboard-id`, `--request-id`. The CLI sends snake_case JSON to the gateway.
67
- - MCP params map automatically to camelCase.
68
- - JSON args pass as JSON string literals.
69
- - Write operations require chat confirmation before `--yes`. User describing the desired action does not count as authorization to skip confirmation.
35
+ Use `ae-cli` first. Fall back to te-mcp only for command-not-found, not-supported/not-implemented, a confirmed capability gap, or repeated failures that are not caused by parameters, types, time formats, permissions, timeout choice, or payload construction. State the fallback reason. A validation error or `need_clarification` is a reason to correct the input, not to switch tools.
70
36
 
71
- Credential lifecycle:
37
+ For tags and audience clusters, use the native `analysis user-tag ...` and `analysis user-cluster ...` gateway commands.
72
38
 
73
- - Use `ae-cli auth login`, `ae-cli auth status`, and `ae-cli auth logout` for authentication. There is no separate MCP-token command.
74
- - After login, the CLI automatically mints, stores, and refreshes the CLI token used by MCP and capability-gateway commands. Never ask the user to set an `mcp-token` manually.
75
-
76
- ## Capability Gateway Asset Commands
39
+ ## Global AE CLI Rules
77
40
 
78
- Use these commands for dashboard, BI panel, project space, folder, favorite, public link, dashboard definition import/export, dashboard daily report, and dashboard/BI page data operations:
41
+ Command forms:
79
42
 
80
43
  ```bash
81
- ae-cli analysis dashboard list --project-id <project_id>
82
- ae-cli analysis dashboard get --project-id <project_id> --dashboard-id <dashboard_id>
83
- ae-cli analysis dashboard update --project-id <project_id> --operation settings --dashboard-id <dashboard_id> --payload '{...}'
84
- ae-cli analysis dashboard-report-data export --project-id <project_id> --dashboard-id <dashboard_id>
85
- ae-cli analysis run inspect --run-id <run_id>
86
- ae-cli analysis artifact download --run-id <run_id> --artifact-id <artifact_id> --output <file>
87
- ae-cli analysis bi-panel-page-data run --project-id <project_id> --panel-id <panel_id> --page-key <page_key> --result-type charts
88
- ae-cli analysis bi-panel-version get --project-id <project_id> --panel-id <panel_id> --version-type draft
89
- ae-cli analysis project-space list --project-id <project_id>
90
- ae-cli analysis query cancel --run-id <run_id>
44
+ ae-cli analysis +<command> [options]
45
+ ae-cli analysis_meta +<command> [options]
46
+ ae-cli analysis_common +<command> [options]
47
+ ae-cli analysis <resource> <action> [options]
48
+ ae-cli analysis-meta <resource> <action> [options]
49
+ ae-cli capability search|inspect|validate|dry-run|run [options]
91
50
  ```
92
51
 
93
- Use capability-gateway asset commands when the user wants to manage or inspect:
94
-
95
- - Dashboards, dashboard basic detail including creator/create time, dashboard sharing, dashboard notes, dashboard copy/freeze/handover/delete, abnormal info, task status.
96
- - Dashboard report data that may be large or long-running. Prefer `dashboard-report-data export` for large results; use `run` only for bounded inline results.
97
- - Dashboard definition export/import. Use `dashboard-definition import --validate-only true` for import pre-checks; do not look for a separate import-check command.
98
- - Dashboard daily report update or immediate send.
99
- - BI panel list/detail/create/update/delete/share/copy, BI panel release/draft version get/publish, and BI page data. Prefer `bi-panel-page-data export` for large results.
100
- - Project spaces and folders: use `project-space list/get` for discovery; use L3 capability run for create/delete/share/members.
101
- - Favorites and public links.
102
-
103
- Do **not** use these commands for:
52
+ - Legacy `+` commands use underscore flags such as `--project_id`.
53
+ - Gateway commands use kebab-case flags such as `--project-id`; the CLI sends snake_case JSON.
54
+ - JSON values must be JSON string literals.
55
+ - Global flags include `--host`, `--format json|table`, `--jq`, `--validate`, `--dry-run`, and `--yes`. Use `--validate` alone to normalize complex capability input; use `--dry-run` alone for execution or risk preview.
56
+ - JSON is the default machine-readable output. On failure, preserve the structured error and non-zero exit.
57
+ - Never invent command names, flags, payload fields, projects, resource IDs, asset names, event/property names, metric definitions, or dates.
58
+ - 中文时间表达必须按固定语义映射:最近7天/近7天 -> `mode=recent` -> QP `recentDay=0-7`,含今天;过去7天/前7天 -> `mode=previous` -> QP `recentDay=1-7`,不含今天。用户明确说明是否包含今天时,以该说明为准。完整映射见 [`references/ai_models.md`](references/ai_models.md)。
104
59
 
105
- - Ad-hoc model analysis, report definition, report data, drilldown, entity/event details, metadata/schema helpers, alerts, audience clusters/tags, or project lookup. Use the existing `+<tool_name>` commands for those.
106
- - Dashboard locks, BI panel lock, dashboard filter module, UI reorder/move/tree operations, daily report retry/download/get-config, public-link logs/source-list/get, or other product-manager-red-marked abilities.
107
- - Internal-only or UI-only payloads unless the gateway command reference explicitly exposes them through `--payload`.
60
+ `CAPABILITY_NOT_FOUND` means the current host does not expose that gateway capability; changing parameters will not fix it. A permission error stops any dependent chain. A 404 while inspecting an async run is a route/deployment failure; do not poll the same ID forever.
108
61
 
109
- Capability-gateway output:
62
+ Interpret gateway envelopes by state:
110
63
 
111
- - Successful commands return the standard gateway envelope: `{ "ok": true, "data": ..., "meta": ... }`.
112
- - Failed commands return `{ "ok": false, "error": ... }` and exit non-zero.
113
- - Inline `run` data is bounded by `--limit` and `--timeout-seconds`.
114
- - Export commands return `run_id`, `artifact_id`, status fields, and expiration fields. Use `--artifact-format jsonl` for the artifact format; `--format` is reserved for CLI output formatting. Poll with `ae-cli analysis run inspect --run-id <run_id>` until the run and artifact are complete, then download with `ae-cli analysis artifact download --run-id <run_id> --artifact-id <artifact_id> --output <file>`. Do not call raw inspect/download API paths directly. Cancel with `ae-cli analysis query cancel --run-id <run_id>`.
115
- - Unknown input fields and camelCase external fields are rejected by the gateway; use kebab-case CLI flags only.
64
+ - `ok: true` with empty data is success and means no matching data. Never relabel an empty report/dashboard result as query failure.
65
+ - `ok: true` with `meta.partial: true` is partial success. Use the successful data and explicitly report `meta.failures`; do not fail the whole batch or hide failed items.
66
+ - `ok: false` is failure. Preserve `error.code`, `error.message`, and `meta.request_id`, `meta.invocation_id`, `meta.stage`, and `meta.failures` when present.
67
+ - Do not retry an unchanged failed command or guess alternative payload shapes. Retry only after applying concrete validation/clarification guidance or correcting a verified transient condition.
116
68
 
117
- See [`references/analysis_gateway_assets.md`](references/analysis_gateway_assets.md) for the command matrix. Before running an L2 command, read its dedicated reference file named as `<resource>_<action>.md`. L3 capabilities without a dedicated reference use dynamic discovery per [`ae-capability`](../../ae-capability/SKILL.md).
69
+ For every gateway command that exposes `--request-id`, ae-cli generates a `request_id` and prints it to stderr before dispatch when the caller omits it. Preserve that ID with the final envelope and diagnostics. Pass an explicit `--request-id cli_<32 lowercase hex>` only when a caller-owned correlation ID is required.
118
70
 
119
- ## Mandatory Constraints
71
+ ### Execution invariants
120
72
 
121
- ### A. PROJECT_ID_GATE
73
+ - Probe the first page exactly once. Verify `ok`, the documented data shape, and the effective `limit` before starting a pagination loop.
74
+ - For paginated directory results, continue only with the returned `next_offset` while `has_more` is true. Never calculate a speculative offset, repeat the current page, or declare the list complete before `has_more` is false.
75
+ - Track the normalized command, input, and announced `request_id` for every invocation. Never resubmit an identical invocation while it is still in flight; wait for the current process, or inspect its returned `run_id` when it is asynchronous.
76
+ - Retry only the items named in `meta.failures`, and only when their `retryable` value and `next_action` permit it. Never retry successful or empty items from the same batch.
77
+ - For black-box coverage audits, maintain an explicit module × model × outcome matrix. Mark coverage complete only from observed responses; missing assets, permissions, or fixtures are environment gaps, not passing coverage.
122
78
 
123
- For any command requiring `project_id`:
79
+ ## Mandatory routing
124
80
 
125
- 1. If the same continuous conversation already has a verified project context (`project_id`, project name when known, and host/environment), reuse it directly for follow-up commands.
126
- 2. Call `analysis_common +list_projects` only when no verified project context exists, the user provides a new project ID/name, the user switches host/environment, the user asks to list projects, or the current project is ambiguous.
127
- 3. Verify any new user-provided ID or name against returned projects before using it.
128
- 4. If the user supplied an exact `project_id` and it uniquely matches one returned project in the intended host/environment, continue with that ID.
129
- 5. If the project is missing, the name is ambiguous, the host/environment is unclear, or the supplied ID/name does not uniquely match, show candidate projects and stop for user choice.
130
- 6. Do not use sample project IDs from reference docs as real IDs.
131
- 7. When reusing verified project context, mention the reused `project_id` briefly if it helps the user understand why `+list_projects` was not called again.
81
+ ### Project gate
132
82
 
133
- ### B. Write-operation Post-link Completion
83
+ Before a project-scoped command:
134
84
 
135
- When these writes succeed and `resource_id` is extractable, call `analysis_common +get_resource_url` and append link output:
136
-
137
- - `dashboard`: `analysis dashboard create`, `analysis dashboard update`
138
- - `report`: `+create_report`
139
- - `metric`: `+create_metric`, `+update_metric`
140
- - `alert`: `+create_alert`, `+update_alert`
141
- - `tag`: `+create_tag`, `+update_tag`
142
- - `cluster`: `+create_cluster`, `+create_result_cluster`, `+update_cluster`
143
- - `virtual_event`: `+create_virtual_event`
144
- - `event_virtual_prop` / `user_virtual_prop`: `+create_virtual_property`
145
- - `super_event` / `super_prop_event` / `super_prop_user`: `+batch_create_metadata`, `+batch_edit_metadata`
146
-
147
- Closed-loop check (must be explicit in result):
148
-
149
- - Write result
150
- - `resource_id` checked
151
- - `+get_resource_url` called or skipped (no ID)
152
- - Link completion status
85
+ 1. Reuse a project only when its ID and host/environment were already verified in the same continuous conversation.
86
+ 2. Otherwise call `analysis_common +list_projects` and resolve the supplied ID/name.
87
+ 3. If there are multiple plausible projects, the host is unclear, or no project matches, show the candidates and ask; never guess.
88
+ 4. Re-verify after the user changes project, host, or environment.
153
89
 
154
90
  ### C. FUZZY_SEARCH_FALLBACK
155
91
 
156
- For list commands with `--query` parameter (`list_reports`, `analysis dashboard list`, `list_events`, `list_clusters`, `list_tags`, `list_alerts`, `list_metrics`):
157
-
158
- 1. **First attempt**: Use `--query` with user-provided keyword for fuzzy search
159
- 2. **If no results found**, retry up to 2 more times with:
160
- - Broader keywords (remove modifiers, use root words)
161
- - Alternative terms or synonyms
162
- 3. **After 3 failed fuzzy attempts**, fall back to full list (omit `--query`)
163
- 4. **Present full list** to user and ask them to identify the target resource
164
- 5. **Never proceed** with operations on non-existent resources
165
-
166
- **Example workflow:**
167
-
168
- - User asks: "Find active user report"
169
- - Attempt 1: `--query "active user"` → no results
170
- - Attempt 2: `--query "active"` → no results
171
- - Attempt 3: `--query "user"` → no results
172
- - Fallback: list all reports, show to user, ask for selection
173
-
174
- ### D. QUERY_EXISTING_FIRST
175
-
176
- Before executing ad-hoc queries (`query_adhoc`), MUST check for existing reports/dashboards first:
177
-
178
- **Mandatory workflow for data queries:**
179
-
180
- 1. **Identify user intent** - Extract what metrics/dimensions/filters the user wants
181
- 2. **Search existing reports** - Use `list_reports --query <keyword>` to find matching reports
182
- 3. **Search existing dashboards** - Use `analysis dashboard list --query <keyword>` to find matching dashboards
183
- 4. **If found** - Use `query_report_data` or `analysis dashboard-report-data run/export` to get data from existing assets
184
- 5. **If not found** - For every non-SQL model (`event`, `retention`, `funnel`, `prop_analysis`, `attribution`, `distribution`, `heat_map`, `interval`, `path`, `rank_list`), call the matching builder first and then call `query_adhoc` with builder `qp`; do not call schema or metadata tools between the report/dashboard miss and the builder. Only SQL uses the manual schema/verified-definition path.
185
-
186
- **Rationale:**
187
-
188
- - **Performance**: Existing reports are pre-computed and faster
189
- - **Consistency**: Reports have business-defined metrics and calibrated logic
190
- - **Resource efficiency**: Avoid redundant computation
191
- - **Permissions**: Users may have report access but not ad-hoc query permissions
192
-
193
- **Example:**
194
-
195
- - User: "Query active users in last 7 days"
196
- - Step 1: `list_reports --query "active user"` → found "DAU Active Users Report"
197
- - Step 2: `query_report_data --report_id <id>` → return data
198
- - ❌ WRONG: Directly use `query_adhoc` without checking existing reports
199
-
200
- **Exceptions (when ad-hoc is acceptable):**
201
-
202
- - User explicitly requests "ad-hoc query" or "ad-hoc analysis"
203
- - User wants custom filters/groupings not available in existing reports
204
- - User is exploring data for new insights (exploratory analysis)
205
- - No matching reports found after search + fallback
206
-
207
- ### E. QP_BUILDER_SUPPORTED_MODELS_ONLY
208
-
209
- QP builder supports ten ad-hoc model types: `event`, `retention`, `funnel`, `prop_analysis`, `attribution`, `distribution`, `heat_map`, `interval`, `path`, and `rank_list`.
210
-
211
- For these ten model types, QP builder is mandatory before `query_adhoc`. Do not handcraft QP from `get_analysis_query_schema`, examples, or prior knowledge.
212
-
213
- 1. `event` -> `+build_event_analysis_qp`
214
- 2. `retention` -> `+build_retention_analysis_qp`
215
- 3. `funnel` -> `+build_funnel_analysis_qp`
216
- 4. `prop_analysis` -> `+build_prop_analysis_qp`
217
- 5. `attribution` -> `+build_attribution_analysis_qp`
218
- 6. `distribution` -> `+build_distribution_analysis_qp`
219
- 7. `heat_map` -> `+build_heat_map_analysis_qp`
220
- 8. `interval` -> `+build_interval_analysis_qp`
221
- 9. `path` -> `+build_path_analysis_qp`
222
- 10. `rank_list` -> `+build_rank_list_analysis_qp`
223
-
224
- Builder-supported model routing is:
92
+ For saved-asset operations on reports, dashboards, metrics, clusters, tags, and alerts, use the relevant list/search command first unless an exact ID or canonical asset name was already verified. Search the user's phrase, broaden it up to two times, then list all candidates. If no resource exists, stop instead of fabricating one.
225
93
 
226
- 1. Search existing reports/dashboards if `QUERY_EXISTING_FIRST` applies.
227
- 2. If no existing asset is used, read the matching builder reference.
228
- 3. Call the matching builder with complete required parameters.
229
- 4. Call `query_adhoc` only when builder returns `status=generated`.
94
+ Do not pre-list events or properties before constructing an AI-facing intent model. Pass the user's wording directly in `definition`; the backend resolves it and returns `resolved` evidence. Call event/property metadata commands only when the user explicitly asks to inspect metadata, the compiler returns `need_clarification` with candidates, or the compiler reports an explicit metadata-resolution capability gap.
230
95
 
231
- Do not insert metadata/schema calls between steps 2 and 3 for builder-supported models. Specifically, do not call `get_analysis_query_schema`, `list_events`, `list_properties`, `list_metrics`, `get_metric`, or `get_report_definition` to prepare the builder payload. The builder resolves event/property/metric metadata internally and returns `need_clarification` when it cannot.
96
+ ### Existing business asset before ad-hoc
232
97
 
233
- Authenticated asset scope:
98
+ When the request can map to a saved business definition:
234
99
 
235
- - Use `--authenticated_only true` on metadata list commands (`+list_events`, `+list_properties`, `+list_metrics`, `+list_clusters`, `+list_tags`) when the user explicitly asks to see only authenticated assets.
236
- - Use `--authenticated_only true` on QP builders and cluster/tag definition builders when the generated QP/definition should resolve only authenticated assets.
237
- - Do not pass `authenticated_only` or `authenticatedOnly` to `+query_adhoc`; the filter takes effect during metadata resolution and QP/definition construction, not query execution.
238
- - List responses include `authenticationStatus` by default (`1` authenticated, `0` unauthenticated).
100
+ 1. Extract metric, dimensions, filters, time window, and comparison semantics.
101
+ 2. Search reports; use dashboard search only to discover candidate embedded reports.
102
+ 3. Read the candidate definition and verify semantic equality, not merely a similar name.
103
+ 4. Use report/dashboard data when the definition matches.
104
+ 5. Use `analysis adhoc run|export` when no definition matches, the user explicitly requests ad-hoc exploration, or custom grouping/filtering is required.
239
105
 
240
- Event metric shortcut:
106
+ Do not call removed QP builders or schema helpers for ad-hoc analysis. `--definition` is the AI-facing contract from `ai_models.md`, not raw QP or a frontend DTO.
241
107
 
242
- - If the user asks to query a saved/business metric through event analysis, pass the metric name/display name/remark directly as an event metric target: `--metrics '[{"event":"<metric name>"}]'`.
243
- - Do not call `analysis_meta +list_metrics` or `analysis_meta +get_metric` first just to expand the metric definition.
244
- - If the user provides an explicit formula, pass the formula and dependencies to `+build_event_analysis_qp`; do not convert it by reading schema or metric metadata first.
108
+ ### Result data versus metadata
245
109
 
246
- Metric result vs metric metadata:
110
+ - Metric value, trend, comparison, or anomaly -> saved report/dashboard first, then ad-hoc data.
111
+ - Metric definition search/create/update -> metadata commands.
112
+ - Event/entity rows -> `event-detail run|export` or `entity-detail run|export`.
113
+ - User members from a query result -> follow the returned `query_context_id` and `sources[].target_contract`; never reconstruct raw QP.
114
+ - Cluster/tag definition -> matching gateway cluster/tag commands and matching model reference.
115
+ - Alert/configuration/tracking-plan requests -> dedicated legacy command reference from the index.
247
116
 
248
- - "Query metric result/value/trend over a time range" is an ad-hoc analysis request. Use report/dashboard search first when applicable, then builder -> `query_adhoc`.
249
- - "Inspect/search/update/create metric definition" is metadata/governance. Only then use `analysis_meta +list_metrics`, `+get_metric`, `+create_metric`, or `+update_metric`.
117
+ ### Run, export, and follow-up
250
118
 
251
- For all other `query_adhoc` model types (`distribution`, `attribution`, `heat_map`, `interval`, `path`, `rank_list`, `sql`), QP builder is not supported. Use the legacy path: read `query_adhoc.md`, fetch schema/metadata as required, then construct QP manually according to the relevant schema.
119
+ - `run` is a bounded inline preview for known-small work that can complete within the synchronous limits.
120
+ - `export` is for complete, unknown-size, over-limit, or long-running results. It returns `run_id` and `artifact_id`.
121
+ - Inspect with `analysis run inspect`, download with `analysis artifact download`, and cancel with `analysis query cancel`. Do not call raw lifecycle URLs.
122
+ - Drilldown requires the context IDs and target contracts returned by a supported data result. If they are absent, report that drilldown/result-cluster creation is unavailable.
252
123
 
253
- Execution rule:
124
+ ### Writes and destructive operations
254
125
 
255
- - If builder result `status=generated`, call `+query_adhoc` with the same `model_type` and the returned `qp`.
256
- - If builder returns non-generated status (`need_clarification`, `invalid_argument`, `unsupported_feature`, `validation_error`), stop and ask the user for clarification instead of calling `query_adhoc`.
257
- - Never bypass a failed builder by manually assembling QP for any non-SQL model.
126
+ Write only with explicit user intent. Use `--validate` alone while correcting complex input, or `--dry-run` alone to inspect the resolved request and execution impact; do not stack both by default. Execute `read` and ordinary `write` commands without `--yes`. For `high-risk-write`, dry-run first, summarize the target and impact, wait for explicit user confirmation, and only then execute the unchanged command with `--yes`.
258
127
 
259
- Builder payload rules:
128
+ Project-space and folder create/delete/share are L3 capabilities rather than curated `analysis` commands. Read the matching command reference, then use `ae-cli capability inspect|dry-run|run`; discover `*.members` through `capability search|inspect|run` and [`references/analysis_gateway_assets.md`](references/analysis_gateway_assets.md). For `risk=high-risk-write`, dry-run first, summarize the impact, and execute with `--yes` only after a later explicit confirmation.
260
129
 
261
- - Before composing any builder JSON, read the matching builder reference doc. The builder references contain the required JSON shape and model-specific field differences.
262
- - CLI flag names use snake_case, but nested JSON keys use the service DTO field names in camelCase. Correct: `startTime`, `endTime`, `relationEventPropertyName`, `eventPropertyName`. Wrong: `start_date`, `start_time`, `relation_property`, `fieldName`.
263
- - Builder dry-run still requires the normal required flags. Do not run builder dry-run by itself.
264
- - Do not pass placeholder `{}` or `[]` for required nested structures except when intentionally checking CLI validation. Fill required inner fields before calling the command.
265
- - Use enum values exactly as documented. Examples: `mode=start_to_yesterday`, `operator=exists`, `relation=or`, `field.type=event_property`.
266
- - For `exists`, `not_exists`, `is_true`, and `is_false`, omit `values`. For `between`, provide exactly two values. For other value-based operators, provide a non-empty `values` array.
267
- - Builder tools do not execute the query and do not take `zone_offset`. Pass time zone to `+query_adhoc` with `--zone_offset` after the builder returns `status=generated`.
268
- - If the user's request lacks a required business element such as time range, event, metric, funnel window, property, or relation field, stop and ask for clarification. If the request supplies a name but it may be a metadata ambiguity, call the builder and let it return candidates. Do not invent names or handcraft QP.
130
+ After a successful create/update, if a resource ID and supported resource type are available, call `analysis_common +get_resource_url` and return the link. Explicitly state when link generation is skipped because no resource ID exists or when it fails.
269
131
 
270
- Supported builder chain:
132
+ ## Analysis workflow
271
133
 
272
- 1. Read the builder reference for the target model.
273
- 2. Build structured JSON from the user's request. Use user-provided event/property/metric names as-is; do not pre-query metadata for these names.
274
- 3. Run the matching `+build_*_analysis_qp` command.
275
- 4. If `status=generated`, call `+query_adhoc --model_type <same_model> --qp '<response.qp>'`.
276
- 5. If status is not `generated`, report the structured error or ask the user for the missing information; do not continue to `query_adhoc`.
134
+ For a data question:
277
135
 
278
- Legacy query_adhoc chain:
136
+ 1. Clarify only missing facts that change the query: KPI, scope, time window, dimensions, filters, and baseline.
137
+ 2. Pass the project gate.
138
+ 3. For AI-facing intent models, let the backend resolve event/property wording and consume `resolved`; discover metadata directly only for explicit metadata inspection, compiler clarification, or a reported resolution capability gap.
139
+ 4. Check existing reports/dashboards when applicable.
140
+ 5. Run or export one reproducible query path.
141
+ 6. For anomalies, compare consistent scopes, rank drivers, then drill down to users/events only when result contexts permit it.
142
+ 7. Return conclusion, evidence, limitations, and a concrete next action.
279
143
 
280
- 1. Use only for `distribution`, `attribution`, `heat_map`, `interval`, `path`, `rank_list`, or `sql`.
281
- 2. Read `references/query_adhoc.md` and required schema/metadata references.
282
- 3. Build QP manually from the documented schema and verified project metadata.
283
- 4. Call `+query_adhoc`.
144
+ For attribution, use the algorithms and self-checks in [`references/analysis_interpretation.md`](references/analysis_interpretation.md). The main driver is determined by absolute contribution, not the largest relative growth rate.
284
145
 
285
- ### F. ABSOLUTE_CONTRIBUTION_ATTRIBUTION
146
+ ## Output requirements
286
147
 
287
- **When attributing a metric change to dimensions, you MUST use Absolute Contribution Decomposition. Never judge the primary driver based solely on relative change percentage.**
148
+ - Lead with the conclusion.
149
+ - Include the metric, time window, dimension/filter scope, value, and baseline needed to reproduce it.
150
+ - Separate observed evidence from inferred causes and state uncertainty.
151
+ - For attribution, include total absolute/percentage change and dimension contributions sorted by absolute delta; verify the contribution sum.
152
+ - Do not return an unexplained raw table.
153
+ - State missing data, definition, permission, or capability constraints explicitly.
288
154
 
289
- #### Problem Definition
155
+ ## Maintenance
290
156
 
291
- Base rate fallacy causes inaccurate attribution:
292
-
293
- | Dimension | Baseline | Comparison | Absolute Δ | Relative Δ | Contribution |
294
- | --------- | -------- | ---------- | ---------- | ---------- | ------------ |
295
- | A | 1 | 5 | +4 | +400% | **40%** |
296
- | B | 50 | 55 | +5 | +10% | **50%** |
297
- | C | 49 | 50 | +1 | +2% | **10%** |
298
-
299
- Wrong: "Dimension A grew 400%, it is the main driver."
300
- Correct: "Dimension B contributed 50% of the absolute increase (+5), making it the primary driver."
301
-
302
- #### Algorithm
303
-
304
- ##### Scenario 1: Additive Metrics
305
-
306
- Use this for count-based metrics such as DAU, event counts, and payment amounts.
307
-
308
- ```
309
- delta_total = V_total(comparison) - V_total(baseline)
310
- delta_dim_i = V_dim_i(comparison) - V_dim_i(baseline)
311
- contribution_pct_i = delta_dim_i / delta_total * 100%
312
- ```
313
-
314
- - Sort by `|delta_dim_i|` in descending order.
315
- - Do not sort by `delta_dim_i / V_dim_i(baseline)`.
316
-
317
- ##### Scenario 2: Ratio / Conversion Metrics
318
-
319
- Ratio changes come from two components:
320
-
321
- - **Composition effect**: changes in subgroup weight.
322
- - **Rate effect**: changes in each subgroup's own rate.
323
-
324
- Simplified mode is the default:
325
-
326
- ```
327
- rate_change = R_total(comparison) - R_total(baseline)
328
- ```
329
-
330
- Report subgroup rates hierarchically and call out structural impact in the conclusion.
331
-
332
- Precise decomposition is only required when the user explicitly requests structural breakdown:
333
-
334
- ```
335
- contribution_rate_i = w_i(baseline) * [R_i(comparison) - R_i(baseline)]
336
- contribution_weight_i = [w_i(comparison) - w_i(baseline)] * R_i(baseline)
337
- ```
338
-
339
- Where `w_i` is the subgroup's share of total users.
340
-
341
- #### Execution Workflow
342
-
343
- 1. Identify metric type: additive uses Scenario 1, ratio uses Scenario 2.
344
- 2. Fetch baseline total and dimension values with `query_adhoc` and grouped dimensions.
345
- 3. Fetch comparison total and dimension values with the same scope.
346
- 4. Compute `delta_dim_i` for each dimension.
347
- 5. Compute `contribution_pct_i = delta_dim_i / delta_total * 100%`.
348
- 6. Sort by absolute contribution magnitude and preserve sign.
349
- 7. Present the conclusion.
350
-
351
- If the builder supports comparison mode for both periods in one query, prefer it to avoid two `query_adhoc` calls.
352
-
353
- #### Output Format
354
-
355
- ```
356
- Core conclusion: [Metric] from [baseline] to [comparison], changed by [±][absolute] ([±][percent])
357
-
358
- Dimension contribution ranking (by absolute contribution, descending):
359
- 1. [dimension value] -> [±][absolute delta] (contributed [xx]%), relative change [±][percent]
360
- 2. [dimension value] -> [±][absolute delta] (contributed [xx]%), relative change [±][percent]
361
- ...
362
-
363
- Conclusion: "[Metric] [increase/decrease] was primarily driven by [top dimension] (contributed [xx]% of the change), followed by [second dimension] ([xx]%)"
364
- ```
365
-
366
- If any dimension shows a cross-effect, such as positive contribution but negative relative change, call it out explicitly.
367
-
368
- #### Exceptions
369
-
370
- Skip absolute contribution decomposition when:
371
-
372
- - The user explicitly asks for growth-rate or percentage-change ranking only.
373
- - The user asks for a single dimension's trend without cross-dimension comparison.
374
- - A dimension baseline is zero; mark it as a new dimension separately.
375
-
376
- #### Self-Check
377
-
378
- After outputting attribution results, verify that dimension contributions sum to approximately 100%. If the sum deviates from 100% by more than 5 percentage points, flag that some dimensions may be missing or data scoping may be inconsistent.
379
-
380
- ## Tool Groups (100)
381
-
382
- ### analysis-meta (47)
383
-
384
- Metadata Capabilities (47):
385
-
386
- - `asset abnormal-get` ([doc](references/asset_abnormal_get.md))
387
- - `asset abnormal-list` ([doc](references/asset_abnormal_list.md))
388
- - `asset authentication-list` ([doc](references/asset_authentication_list.md))
389
- - `asset authentication-update` ([doc](references/asset_authentication_update.md))
390
- - `asset recent-list` ([doc](references/asset_recent_list.md))
391
- - `asset search` ([doc](references/asset_search.md))
392
- - `datatable columns-get` ([doc](references/datatable_columns_get.md))
393
- - `datatable influence-list` ([doc](references/datatable_influence_list.md))
394
- - `datatable version-get` ([doc](references/datatable_version_get.md))
395
- - `datatable version-list` ([doc](references/datatable_version_list.md))
396
- - `event changelog-list` ([doc](references/event_changelog_list.md))
397
- - `event create` ([doc](references/event_create.md))
398
- - `event delete` ([doc](references/event_delete.md))
399
- - `event get` ([doc](references/event_get.md))
400
- - `event hide-update` ([doc](references/event_hide_update.md))
401
- - `event influence-list` ([doc](references/event_influence_list.md))
402
- - `event list` ([doc](references/event_list.md))
403
- - `event relation-update` ([doc](references/event_relation_update.md))
404
- - `event update` ([doc](references/event_update.md))
405
- - `exchange config-update` ([doc](references/exchange_config_update.md))
406
- - `exchange rate-refresh` ([doc](references/exchange_rate_refresh.md))
407
- - `exchange rule-list` ([doc](references/exchange_rule_list.md))
408
- - `exchange rule-update` ([doc](references/exchange_rule_update.md))
409
- - `exchange rule-validate` ([doc](references/exchange_rule_validate.md))
410
- - `metric create` ([doc](references/metric_create.md))
411
- - `metric delete` ([doc](references/metric_delete.md))
412
- - `metric get` ([doc](references/metric_get.md))
413
- - `metric list` ([doc](references/metric_list.md))
414
- - `metric update` ([doc](references/metric_update.md))
415
- - `property changelog-list` ([doc](references/property_changelog_list.md))
416
- - `property create` ([doc](references/property_create.md))
417
- - `property delete` ([doc](references/property_delete.md))
418
- - `property get` ([doc](references/property_get.md))
419
- - `property hide-update` ([doc](references/property_hide_update.md))
420
- - `property influence-list` ([doc](references/property_influence_list.md))
421
- - `property list` ([doc](references/property_list.md))
422
- - `property related-events` ([doc](references/property_related_events.md))
423
- - `property relation-update` ([doc](references/property_relation_update.md))
424
- - `property update` ([doc](references/property_update.md))
425
- - `super-metadata export` ([doc](references/super_metadata_export.md))
426
- - `super-metadata import` ([doc](references/super_metadata_import.md))
427
- - `virtual-event create` ([doc](references/virtual_event_create.md))
428
- - `virtual-event delete` ([doc](references/virtual_event_delete.md))
429
- - `virtual-event get` ([doc](references/virtual_event_get.md))
430
- - `virtual-property create` ([doc](references/virtual_property_create.md))
431
- - `virtual-property sql-rule-delete` ([doc](references/virtual_property_sql_rule_delete.md))
432
- - `virtual-property sql-rule-update` ([doc](references/virtual_property_sql_rule_update.md))
433
-
434
- ### analysis
435
-
436
- Alerts (6):
437
- - `+get_alert_definition_schema` ([doc](references/get_alert_definition_schema.md))
438
- - `+list_alerts` ([doc](references/list_alerts.md))
439
- - `+get_alert` ([doc](references/get_alert.md))
440
- - `+create_alert` ([doc](references/create_alert.md))
441
- - `+update_alert` ([doc](references/update_alert.md))
442
- - `+delete_alert` ([doc](references/delete_alert.md))
443
-
444
- Reports:
445
- - `+create_report` ([doc](references/create_report.md))
446
- - `+get_report_definition` ([doc](references/get_report_definition.md))
447
- - `+list_reports` ([doc](references/list_reports.md))
448
- - `+query_report_data` ([doc](references/query_report_data.md))
449
- - `+update_report` ([doc](references/update_report.md))
450
- - `+delete_report` ([doc](references/delete_report.md))
451
-
452
- Dashboard, BI panel, project-space list/get, favorite, public-link, dashboard-definition, dashboard-daily-report, run, artifact, and dashboard/BI data commands are curated capability-gateway commands. Use `ae-cli analysis <resource> <action>` after reading [`references/analysis_gateway_assets.md`](references/analysis_gateway_assets.md). Project-space and folder create/delete/share are L3 only; use `ae-cli capability ...` after reading the matching reference. `*.members` read capabilities use L3 dynamic discovery via the gateway matrix (no standalone reference). Do not use old `+` dashboard/space/BI/public-link command names.
453
-
454
- Model Analysis (17):
455
- - `+build_event_analysis_qp` ([doc](references/build_event_analysis_qp.md))
456
- - `+build_retention_analysis_qp` ([doc](references/build_retention_analysis_qp.md))
457
- - `+build_funnel_analysis_qp` ([doc](references/build_funnel_analysis_qp.md))
458
- - `+build_prop_analysis_qp` ([doc](references/build_prop_analysis_qp.md))
459
- - `+build_attribution_analysis_qp` ([doc](references/build_attribution_analysis_qp.md))
460
- - `+build_distribution_analysis_qp` ([doc](references/build_distribution_analysis_qp.md))
461
- - `+build_heat_map_analysis_qp` ([doc](references/build_heat_map_analysis_qp.md))
462
- - `+build_interval_analysis_qp` ([doc](references/build_interval_analysis_qp.md))
463
- - `+build_path_analysis_qp` ([doc](references/build_path_analysis_qp.md))
464
- - `+build_rank_list_analysis_qp` ([doc](references/build_rank_list_analysis_qp.md))
465
- - `+query_adhoc` ([doc](references/query_adhoc.md))
466
- - `+cancel_query` ([doc](references/cancel_query.md))
467
- - `+drilldown_users` ([doc](references/drilldown_users.md))
468
- - `+drilldown_user_events` ([doc](references/drilldown_user_events.md))
469
- - `+create_result_cluster` ([doc](references/create_result_cluster.md))
470
- - `+load_filters` ([doc](references/load_filters.md))
471
- - `+get_table_columns` ([doc](references/get_table_columns.md))
472
-
473
- Entity/Event Details (4):
474
-
475
- - `+query_entity_details` ([doc](references/query_entity_details.md))
476
- - `+query_event_details` ([doc](references/query_event_details.md))
477
- - `+build_entity_details_sql` ([doc](references/build_entity_details_sql.md))
478
- - `+build_event_details_sql` ([doc](references/build_event_details_sql.md))
479
-
480
- Schema (3):
481
-
482
- - `+get_analysis_query_schema` ([doc](references/get_analysis_query_schema.md))
483
- - `+get_filter_schema` ([doc](references/get_filter_schema.md))
484
- - `+get_groupby_schema` ([doc](references/get_groupby_schema.md))
485
-
486
- ### analysis_audience (22)
487
-
488
- Clusters (10):
489
- - `+create_cluster` ([doc](references/create_cluster.md))
490
- - `+get_clusters_by_name` ([doc](references/get_clusters_by_name.md))
491
- - `+list_cluster_members` ([doc](references/list_cluster_members.md))
492
- - `+list_clusters` ([doc](references/list_clusters.md))
493
- - `+update_cluster` ([doc](references/update_cluster.md))
494
- - `+refresh_cluster` ([doc](references/refresh_cluster.md))
495
- - `+create_id_cluster` ([doc](references/create_id_cluster.md))
496
- - `+update_id_cluster` ([doc](references/update_id_cluster.md))
497
- - `+delete_cluster` ([doc](references/delete_cluster.md))
498
- - `+build_cluster_definition` ([doc](references/build_cluster_definition.md))
499
-
500
- Tags (10):
501
- - `+create_tag` ([doc](references/create_tag.md))
502
- - `+get_tags_by_name` ([doc](references/get_tags_by_name.md))
503
- - `+list_tag_members` ([doc](references/list_tag_members.md))
504
- - `+list_tags` ([doc](references/list_tags.md))
505
- - `+update_tag` ([doc](references/update_tag.md))
506
- - `+refresh_tag` ([doc](references/refresh_tag.md))
507
- - `+create_id_tag` ([doc](references/create_id_tag.md))
508
- - `+update_id_tag` ([doc](references/update_id_tag.md))
509
- - `+delete_tag` ([doc](references/delete_tag.md))
510
- - `+build_tag_definition` ([doc](references/build_tag_definition.md))
511
-
512
- Schema Definitions (2):
513
-
514
- - `+get_cluster_definition_schema` ([doc](references/get_cluster_definition_schema.md))
515
- - `+get_tag_definition_schema` ([doc](references/get_tag_definition_schema.md))
516
-
517
- ### analysis_meta (24)
518
-
519
- Metadata and Governance (11):
520
- - `+list_events` ([doc](references/list_events.md))
521
- - `+list_properties` ([doc](references/list_properties.md))
522
- - `+list_metrics` ([doc](references/list_metrics.md))
523
- - `+get_metric` ([doc](references/get_metric.md))
524
- - `+create_metric` ([doc](references/create_metric.md))
525
- - `+update_metric` ([doc](references/update_metric.md))
526
- - `+delete_metric` ([doc](references/delete_metric.md))
527
- - `+batch_edit_metadata` ([doc](references/batch_edit_metadata.md))
528
- - `+batch_create_metadata` ([doc](references/batch_create_metadata.md))
529
- - `+create_virtual_event` ([doc](references/create_virtual_event.md))
530
- - `+create_virtual_property` ([doc](references/create_virtual_property.md))
531
-
532
- Project and Tracking (11):
533
-
534
- - `+get_project_config` ([doc](references/get_project_config.md))
535
- - `+list_project_users` ([doc](references/list_project_users.md))
536
- - `+get_track_program` ([doc](references/get_track_program.md))
537
- - `+save_track_items` ([doc](references/save_track_items.md))
538
- - `+delete_track_items` ([doc](references/delete_track_items.md))
539
- - `+generate_track_program` ([doc](references/generate_track_program.md))
540
- - `+generate_track_sdk_sample` ([doc](references/generate_track_sdk_sample.md))
541
- - `+create_project_mark_time` ([doc](references/create_project_mark_time.md))
542
- - `+update_project_mark_time` ([doc](references/update_project_mark_time.md))
543
- - `+list_project_mark_times` ([doc](references/list_project_mark_times.md))
544
- - `+delete_project_mark_times` ([doc](references/delete_project_mark_times.md))
545
-
546
- Entity Catalog (2):
547
-
548
- - `+create_entity` ([doc](references/create_entity.md))
549
- - `+list_entities` ([doc](references/list_entities.md))
550
-
551
- ### analysis_common (2)
552
-
553
- - `+list_projects` ([doc](references/list_projects.md))
554
- - `+get_resource_url` ([doc](references/get_resource_url.md))
555
-
556
- ## Quick Verification
157
+ When commands change, update source command metadata and the dedicated reference, then run:
557
158
 
558
159
  ```bash
559
- ae-cli analysis --help
560
- ae-cli analysis-meta --help
561
- ae-cli analysis_audience --help
562
- ae-cli analysis_meta --help
563
- ae-cli analysis_common --help
160
+ npm run generate:analysis-skill
161
+ npm run verify:analysis-skill
564
162
  npm run verify:analysis-tools
565
- npm run verify:analysis-audience-tools
566
- npm run verify:analysis-meta-tools
567
- npm run verify:analysis-common-tools
568
163
  ```
569
164
 
570
- ## Reference Docs
571
-
572
- See the unified `references/` directory (124 command docs total).
165
+ The verification fails for missing command references, retired/orphan command references, or a stale generated index.