@thinkingai/ae-cli 6.1.20 → 6.1.23

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 (338) hide show
  1. package/README.md +2 -1
  2. package/README.zh.md +2 -1
  3. package/dist/{auth-FUM37MHF.js → auth-XZNXFRJS.js} +5 -5
  4. package/dist/{capability-AXFQW5WM.js → capability-FYTU3X6L.js} +42 -12
  5. package/dist/{chunk-LNZBEQXW.js → chunk-4NRCTUZJ.js} +27041 -474
  6. package/dist/{chunk-VXNMYUXU.js → chunk-57RRFUEZ.js} +23 -7
  7. package/dist/{chunk-WZ6YVQSF.js → chunk-7FTTULED.js} +1 -1
  8. package/dist/{chunk-ATSM5XAW.js → chunk-7XGFSUOM.js} +2 -2
  9. package/dist/chunk-CCS66K4K.js +155 -0
  10. package/dist/{chunk-I4WQAEYB.js → chunk-DVMLWQD4.js} +8 -186
  11. package/dist/{chunk-CZU3V3DQ.js → chunk-DX5CDO34.js} +27 -6
  12. package/dist/chunk-EQ255HKO.js +38248 -0
  13. package/dist/{chunk-BBEFP4SB.js → chunk-HBGADCKA.js} +3 -3
  14. package/dist/{chunk-QJQZH5GQ.js → chunk-HFGZGYCG.js} +10 -6
  15. package/dist/{chunk-ECBLHAZO.js → chunk-JOCDD4ON.js} +1 -1
  16. package/dist/{chunk-TKHSULJT.js → chunk-KPQY44JQ.js} +6 -0
  17. package/dist/{chunk-4P355ZWB.js → chunk-MAPZ7VB6.js} +21 -1
  18. package/dist/chunk-V2NUHPXF.js +196 -0
  19. package/dist/{chunk-RSG4ONOI.js → chunk-VYXXOKYS.js} +5 -5
  20. package/dist/{community-report-client-XXWGSBSD.js → community-report-client-CU22W53K.js} +1 -1
  21. package/dist/{config-EXUGQN5T.js → config-XO3LI3SA.js} +4 -4
  22. package/dist/context-IFJI3LIT.js +46 -0
  23. package/dist/{data-integration-4NZ53OMT.js → data-integration-HNGUKFIC.js} +44 -35
  24. package/dist/index.js +101 -64
  25. package/dist/{local-data-upload-client-KYOKVYZV.js → local-data-upload-client-GTRIT64F.js} +3 -2
  26. package/dist/{memory-ATNKZNW5.js → memory-QGPSNCQS.js} +4 -4
  27. package/dist/{metadata-VZVC7YMH.js → metadata-DI5BMYFU.js} +8 -8
  28. package/dist/{model-E4JMQ4V2.js → model-RNPQXIBI.js} +4 -4
  29. package/dist/{personal-semantic-preference-7S2SQ3UV.js → personal-semantic-preference-5C3WUXFI.js} +11 -8
  30. package/dist/{project-semantic-2SZP2OPO.js → project-semantic-3LF6Q6JZ.js} +27 -21
  31. package/dist/{sync-YV3E66IF.js → sync-O45NXEQY.js} +7 -6
  32. package/dist/{te-agent-JB5T3PO7.js → te-agent-K5MSPNHJ.js} +5 -5
  33. package/dist/{te-analysis-3YJAAT2D.js → te-analysis-AISWCOOZ.js} +1086 -354
  34. package/dist/{te-community-UDBI672N.js → te-community-4OYU3BDA.js} +4 -4
  35. package/dist/{te-dataops-ZLYOCXZ4.js → te-dataops-NFIPB6FX.js} +5 -5
  36. package/dist/{te-engage-4XG6OJML.js → te-engage-BAM3GBFX.js} +7 -7
  37. package/dist/{te-experiment-VXUWPINJ.js → te-experiment-GUTZXZ5Z.js} +132 -14
  38. package/dist/{te-kb-WYQWHFSC.js → te-kb-3TS73NO6.js} +454 -194
  39. package/dist/{te-system-7G6F2LJA.js → te-system-STMHLS5J.js} +12 -7
  40. package/dist/{te-team-E7FBBXMQ.js → te-team-3I5AOX3N.js} +6 -6
  41. package/dist/{update-D47BUG25.js → update-RZXLPCRH.js} +4 -4
  42. package/package.json +21 -14
  43. package/skills/ae-analysis/SKILL.md +91 -78
  44. package/skills/ae-analysis/references/adhoc_export.md +11 -18
  45. package/skills/ae-analysis/references/adhoc_run.md +15 -7
  46. package/skills/ae-analysis/references/agent_review_detail.md +11 -0
  47. package/skills/ae-analysis/references/agent_review_evidence.md +46 -0
  48. package/skills/ae-analysis/references/agent_review_list.md +9 -0
  49. package/skills/ae-analysis/references/agent_review_preflight.md +96 -0
  50. package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +76 -0
  51. package/skills/ae-analysis/references/agent_review_records.md +9 -0
  52. package/skills/ae-analysis/references/agent_review_retry.md +12 -0
  53. package/skills/ae-analysis/references/agent_review_review.md +16 -0
  54. package/skills/ae-analysis/references/agent_review_submit_to_page.md +184 -0
  55. package/skills/ae-analysis/references/ai_models/attribution.md +29 -0
  56. package/skills/ae-analysis/references/ai_models/distribution.md +40 -0
  57. package/skills/ae-analysis/references/ai_models/event.md +108 -0
  58. package/skills/ae-analysis/references/ai_models/funnel.md +46 -0
  59. package/skills/ae-analysis/references/ai_models/heat_map.md +26 -0
  60. package/skills/ae-analysis/references/ai_models/interval.md +20 -0
  61. package/skills/ae-analysis/references/ai_models/path.md +55 -0
  62. package/skills/ae-analysis/references/ai_models/prop_analysis.md +43 -0
  63. package/skills/ae-analysis/references/ai_models/rank_list.md +25 -0
  64. package/skills/ae-analysis/references/ai_models/retention.md +70 -0
  65. package/skills/ae-analysis/references/ai_models/revenue.md +28 -0
  66. package/skills/ae-analysis/references/ai_models/sql.md +74 -0
  67. package/skills/ae-analysis/references/ai_models/tag.md +19 -0
  68. package/skills/ae-analysis/references/ai_models.md +32 -473
  69. package/skills/ae-analysis/references/alert_create.md +7 -7
  70. package/skills/ae-analysis/references/alert_delete.md +4 -6
  71. package/skills/ae-analysis/references/alert_detail_list.md +7 -9
  72. package/skills/ae-analysis/references/alert_get.md +5 -7
  73. package/skills/ae-analysis/references/alert_job_list.md +4 -6
  74. package/skills/ae-analysis/references/alert_list.md +6 -8
  75. package/skills/ae-analysis/references/alert_notice_config_list.md +4 -6
  76. package/skills/ae-analysis/references/alert_start.md +5 -7
  77. package/skills/ae-analysis/references/alert_stop.md +5 -7
  78. package/skills/ae-analysis/references/alert_update.md +8 -8
  79. package/skills/ae-analysis/references/analysis_data_export.md +72 -0
  80. package/skills/ae-analysis/references/analysis_data_retrieval.md +32 -196
  81. package/skills/ae-analysis/references/analysis_gateway_assets.md +23 -180
  82. package/skills/ae-analysis/references/analysis_interpretation.md +37 -17
  83. package/skills/ae-analysis/references/asset_abnormal_get.md +0 -1
  84. package/skills/ae-analysis/references/asset_abnormal_list.md +0 -1
  85. package/skills/ae-analysis/references/asset_authentication_export.md +4 -0
  86. package/skills/ae-analysis/references/asset_authentication_list.md +7 -1
  87. package/skills/ae-analysis/references/asset_authentication_update.md +5 -1
  88. package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +8 -6
  89. package/skills/ae-analysis/references/asset_batch_delete.md +6 -6
  90. package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +4 -5
  91. package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +5 -6
  92. package/skills/ae-analysis/references/asset_batch_handover.md +4 -5
  93. package/skills/ae-analysis/references/asset_batch_info_export.md +4 -5
  94. package/skills/ae-analysis/references/asset_batch_sql_export.md +5 -6
  95. package/skills/ae-analysis/references/asset_dependency_list.md +4 -5
  96. package/skills/ae-analysis/references/asset_export.md +4 -5
  97. package/skills/ae-analysis/references/asset_impact_list.md +5 -9
  98. package/skills/ae-analysis/references/asset_lineage_get.md +5 -6
  99. package/skills/ae-analysis/references/asset_list.md +4 -5
  100. package/skills/ae-analysis/references/asset_query_history_list.md +4 -8
  101. package/skills/ae-analysis/references/asset_recent_list.md +0 -1
  102. package/skills/ae-analysis/references/asset_search.md +12 -9
  103. package/skills/ae-analysis/references/asset_url_get.md +3 -4
  104. package/skills/ae-analysis/references/bi_panel_copy.md +2 -2
  105. package/skills/ae-analysis/references/bi_panel_page_data_export.md +4 -12
  106. package/skills/ae-analysis/references/bi_panel_page_data_run.md +2 -0
  107. package/skills/ae-analysis/references/catalog_export.md +4 -17
  108. package/skills/ae-analysis/references/catalog_list.md +4 -4
  109. package/skills/ae-analysis/references/check_delete.md +5 -7
  110. package/skills/ae-analysis/references/check_export.md +11 -11
  111. package/skills/ae-analysis/references/check_get.md +8 -10
  112. package/skills/ae-analysis/references/check_list.md +4 -6
  113. package/skills/ae-analysis/references/check_retry.md +8 -10
  114. package/skills/ae-analysis/references/check_run.md +2 -4
  115. package/skills/ae-analysis/references/command_index.md +44 -26
  116. package/skills/ae-analysis/references/dashboard_report_data_export.md +5 -13
  117. package/skills/ae-analysis/references/dashboard_report_data_run.md +1 -1
  118. package/skills/ae-analysis/references/dashboard_update.md +14 -3
  119. package/skills/ae-analysis/references/datatable_columns_get.md +0 -1
  120. package/skills/ae-analysis/references/datatable_influence_list.md +0 -1
  121. package/skills/ae-analysis/references/datatable_version_get.md +0 -1
  122. package/skills/ae-analysis/references/datatable_version_list.md +0 -1
  123. package/skills/ae-analysis/references/debug_device_add.md +1 -2
  124. package/skills/ae-analysis/references/drilldown_entities_export.md +3 -3
  125. package/skills/ae-analysis/references/drilldown_events_export.md +3 -2
  126. package/skills/ae-analysis/references/drilldown_user_events_export.md +2 -2
  127. package/skills/ae-analysis/references/entity_detail_export.md +3 -2
  128. package/skills/ae-analysis/references/entity_detail_run.md +1 -0
  129. package/skills/ae-analysis/references/event_blacklist_add.md +5 -7
  130. package/skills/ae-analysis/references/event_blacklist_list.md +4 -6
  131. package/skills/ae-analysis/references/event_blacklist_update.md +6 -8
  132. package/skills/ae-analysis/references/event_changelog_list.md +0 -1
  133. package/skills/ae-analysis/references/event_create.md +0 -1
  134. package/skills/ae-analysis/references/event_detail_export.md +3 -2
  135. package/skills/ae-analysis/references/event_detail_run.md +1 -0
  136. package/skills/ae-analysis/references/event_export.md +0 -1
  137. package/skills/ae-analysis/references/event_get.md +0 -1
  138. package/skills/ae-analysis/references/event_hide_update.md +0 -1
  139. package/skills/ae-analysis/references/event_influence_list.md +0 -1
  140. package/skills/ae-analysis/references/event_list.md +0 -1
  141. package/skills/ae-analysis/references/event_property_bundle_export.md +5 -14
  142. package/skills/ae-analysis/references/event_property_bundle_import.md +2 -6
  143. package/skills/ae-analysis/references/event_relation_update.md +0 -1
  144. package/skills/ae-analysis/references/event_update.md +0 -1
  145. package/skills/ae-analysis/references/exchange_config_update.md +0 -1
  146. package/skills/ae-analysis/references/exchange_rate_refresh.md +0 -1
  147. package/skills/ae-analysis/references/exchange_rule_list.md +0 -1
  148. package/skills/ae-analysis/references/exchange_rule_update.md +0 -1
  149. package/skills/ae-analysis/references/exchange_rule_validate.md +0 -1
  150. package/skills/ae-analysis/references/governance_recommendation_decisions.md +23 -0
  151. package/skills/ae-analysis/references/governance_recommendation_export.md +108 -0
  152. package/skills/ae-analysis/references/governance_recommendation_submit.md +41 -0
  153. package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +4 -4
  154. package/skills/ae-analysis/references/history_tag_data_export.md +3 -3
  155. package/skills/ae-analysis/references/ingest_error_list.md +7 -9
  156. package/skills/ae-analysis/references/ingest_summary.md +6 -8
  157. package/skills/ae-analysis/references/live_data_export.md +10 -10
  158. package/skills/ae-analysis/references/live_data_list.md +7 -9
  159. package/skills/ae-analysis/references/metadata_resolution.md +78 -0
  160. package/skills/ae-analysis/references/metric_export.md +0 -1
  161. package/skills/ae-analysis/references/metric_get.md +0 -1
  162. package/skills/ae-analysis/references/metric_list.md +4 -5
  163. package/skills/ae-analysis/references/metric_update.md +0 -1
  164. package/skills/ae-analysis/references/operation_record_export.md +4 -5
  165. package/skills/ae-analysis/references/operation_record_list.md +4 -5
  166. package/skills/ae-analysis/references/personal_semantic_preference_list.md +18 -1
  167. package/skills/ae-analysis/references/plan_change_log_export.md +10 -10
  168. package/skills/ae-analysis/references/plan_change_log_list.md +4 -6
  169. package/skills/ae-analysis/references/plan_delete_items.md +2 -4
  170. package/skills/ae-analysis/references/plan_export.md +9 -9
  171. package/skills/ae-analysis/references/plan_generate.md +2 -4
  172. package/skills/ae-analysis/references/plan_get.md +4 -6
  173. package/skills/ae-analysis/references/plan_import_excel.md +6 -8
  174. package/skills/ae-analysis/references/plan_save_items.md +2 -4
  175. package/skills/ae-analysis/references/plan_sync_from_meta.md +4 -6
  176. package/skills/ae-analysis/references/project_access_detail_get.md +0 -1
  177. package/skills/ae-analysis/references/project_data_power_get.md +0 -1
  178. package/skills/ae-analysis/references/project_data_power_list.md +0 -1
  179. package/skills/ae-analysis/references/project_data_power_upsert.md +0 -1
  180. package/skills/ae-analysis/references/project_entity_create.md +0 -1
  181. package/skills/ae-analysis/references/project_entity_event_list.md +0 -1
  182. package/skills/ae-analysis/references/project_entity_get.md +0 -1
  183. package/skills/ae-analysis/references/project_entity_list.md +0 -1
  184. package/skills/ae-analysis/references/project_entity_update.md +0 -1
  185. package/skills/ae-analysis/references/project_function_list.md +0 -1
  186. package/skills/ae-analysis/references/project_info_get.md +0 -1
  187. package/skills/ae-analysis/references/project_info_list.md +0 -1
  188. package/skills/ae-analysis/references/project_info_update.md +0 -1
  189. package/skills/ae-analysis/references/project_mark_time_create.md +0 -1
  190. package/skills/ae-analysis/references/project_mark_time_list.md +0 -1
  191. package/skills/ae-analysis/references/project_mark_time_update.md +0 -1
  192. package/skills/ae-analysis/references/project_member_add.md +6 -5
  193. package/skills/ae-analysis/references/project_member_batch_update.md +0 -1
  194. package/skills/ae-analysis/references/project_member_candidate_list.md +4 -3
  195. package/skills/ae-analysis/references/project_member_handover_run.md +2 -3
  196. package/skills/ae-analysis/references/project_member_list.md +0 -1
  197. package/skills/ae-analysis/references/project_member_receiver_list.md +0 -1
  198. package/skills/ae-analysis/references/project_member_update.md +0 -1
  199. package/skills/ae-analysis/references/project_owner_update.md +0 -1
  200. package/skills/ae-analysis/references/project_permission_binding_list.md +0 -1
  201. package/skills/ae-analysis/references/project_role_function_list.md +0 -1
  202. package/skills/ae-analysis/references/project_role_get.md +0 -1
  203. package/skills/ae-analysis/references/project_role_list.md +0 -1
  204. package/skills/ae-analysis/references/project_role_upsert.md +32 -2
  205. package/skills/ae-analysis/references/project_role_user_list.md +0 -1
  206. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +214 -0
  207. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +93 -0
  208. package/skills/ae-analysis/references/project_timezone_get.md +0 -1
  209. package/skills/ae-analysis/references/project_timezone_overview.md +0 -1
  210. package/skills/ae-analysis/references/project_timezone_update.md +0 -1
  211. package/skills/ae-analysis/references/project_user_id_items_update.md +0 -1
  212. package/skills/ae-analysis/references/property_changelog_list.md +0 -1
  213. package/skills/ae-analysis/references/property_create.md +0 -1
  214. package/skills/ae-analysis/references/property_export.md +0 -1
  215. package/skills/ae-analysis/references/property_get.md +0 -1
  216. package/skills/ae-analysis/references/property_hide_update.md +0 -1
  217. package/skills/ae-analysis/references/property_influence_list.md +0 -1
  218. package/skills/ae-analysis/references/property_list.md +3 -4
  219. package/skills/ae-analysis/references/property_related_events.md +0 -1
  220. package/skills/ae-analysis/references/property_relation_update.md +0 -1
  221. package/skills/ae-analysis/references/property_update.md +0 -1
  222. package/skills/ae-analysis/references/report_create.md +4 -2
  223. package/skills/ae-analysis/references/report_data_export.md +11 -9
  224. package/skills/ae-analysis/references/report_data_run.md +14 -7
  225. package/skills/ae-analysis/references/report_get.md +5 -3
  226. package/skills/ae-analysis/references/report_list.md +2 -0
  227. package/skills/ae-analysis/references/report_update.md +5 -3
  228. package/skills/ae-analysis/references/rule_create.md +5 -6
  229. package/skills/ae-analysis/references/rule_delete.md +5 -5
  230. package/skills/ae-analysis/references/rule_list.md +3 -4
  231. package/skills/ae-analysis/references/rule_schema.md +3 -4
  232. package/skills/ae-analysis/references/rule_update.md +5 -6
  233. package/skills/ae-analysis/references/sdk_sample_generate.md +2 -4
  234. package/skills/ae-analysis/references/sql_table_columns.md +1 -1
  235. package/skills/ae-analysis/references/super_metadata_batch_create.md +1 -1
  236. package/skills/ae-analysis/references/super_metadata_batch_edit.md +1 -1
  237. package/skills/ae-analysis/references/system_member_add.md +1 -2
  238. package/skills/ae-analysis/references/system_member_status_update.md +1 -1
  239. package/skills/ae-analysis/references/system_ops_alert_contact_list.md +1 -1
  240. package/skills/ae-analysis/references/system_ops_alert_contact_test.md +0 -1
  241. package/skills/ae-analysis/references/system_query_monitor_overview.md +3 -3
  242. package/skills/ae-analysis/references/system_query_task_export.md +4 -14
  243. package/skills/ae-analysis/references/system_query_task_get.md +1 -1
  244. package/skills/ae-analysis/references/system_query_task_list.md +5 -6
  245. package/skills/ae-analysis/references/system_receiver_address_upsert.md +3 -3
  246. package/skills/ae-analysis/references/system_receiver_detection_get.md +1 -1
  247. package/skills/ae-analysis/references/system_third_party_login_disable.md +1 -1
  248. package/skills/ae-analysis/references/system_usage_trend_export.md +3 -12
  249. package/skills/ae-analysis/references/user_cluster_list.md +1 -1
  250. package/skills/ae-analysis/references/user_cluster_member_export.md +4 -4
  251. package/skills/ae-analysis/references/user_tag_list.md +1 -1
  252. package/skills/ae-analysis/references/user_tag_member_export.md +4 -4
  253. package/skills/ae-analysis/references/virtual_event_create.md +10 -5
  254. package/skills/ae-analysis/references/virtual_event_get.md +0 -1
  255. package/skills/ae-analysis/references/virtual_property_create.md +0 -1
  256. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +0 -1
  257. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +1054 -0
  258. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +112 -0
  259. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +30 -0
  260. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +2735 -0
  261. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +376 -0
  262. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/plan-kb-source-sync.mjs +264 -0
  263. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/precompiled-source.mjs +49 -0
  264. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/upload-kb-sources-concurrently.mjs +200 -0
  265. package/skills/ae-analysis/scripts/read_results.py +197 -0
  266. package/skills/ae-analysis-global/SKILL.md +1 -1
  267. package/skills/ae-capability/SKILL.md +1 -1
  268. package/skills/ae-community/SKILL.md +1 -1
  269. package/skills/ae-current-context/SKILL.md +53 -0
  270. package/skills/ae-data-integration/SKILL.md +5 -4
  271. package/skills/ae-data-integration/references/lark-bitable-source.md +288 -0
  272. package/skills/ae-data-integration/references/lark-sheet-source.md +130 -0
  273. package/skills/ae-data-integration/references/manual-export-source.md +83 -0
  274. package/skills/ae-data-integration/references/reuse.md +2 -0
  275. package/skills/ae-data-integration/references/sink-upload.md +32 -0
  276. package/skills/ae-data-integration/references/tracking-plan.md +4 -1
  277. package/skills/ae-data-integration/references/ue-mapping.md +2 -2
  278. package/skills/ae-data-integration-helper/SKILL.md +5 -5
  279. package/skills/ae-data-integration-helper/references/android_sdk_faq.md +3 -3
  280. package/skills/ae-data-integration-helper/references/c_sdk_faq.md +3 -3
  281. package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +1 -1
  282. package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +3 -3
  283. package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +1 -1
  284. package/skills/ae-data-integration-helper/references/java_sdk_faq.md +3 -3
  285. package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +1 -1
  286. package/skills/ae-data-integration-helper/references/logbus2_guide.md +1 -1
  287. package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +2 -2
  288. package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +2 -2
  289. package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +1 -1
  290. package/skills/ae-data-integration-helper/references/python_sdk_faq.md +2 -2
  291. package/skills/ae-data-integration-helper/references/restful_api_notes.md +2 -2
  292. package/skills/ae-data-integration-helper/references/sdk_log_guide.md +3 -3
  293. package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +11 -11
  294. package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +1 -1
  295. package/skills/ae-dataops/SKILL.md +1 -1
  296. package/skills/ae-engage/SKILL.md +4 -3
  297. package/skills/ae-engage/references/build-task-save-guide.md +3 -0
  298. package/skills/ae-engage/references/flow-metric-update.md +115 -1
  299. package/skills/ae-engage/references/save-flow.md +3 -0
  300. package/skills/ae-engage/references/save-task.md +21 -0
  301. package/skills/ae-engage/references/task-metric-update.md +151 -0
  302. package/skills/ae-experiment/SKILL.md +14 -7
  303. package/skills/ae-experiment/references/save_submit_external_experiment.md +52 -0
  304. package/skills/ae-experiment-design/SKILL.md +3 -3
  305. package/skills/ae-experiment-design/references/platform-operations.md +1 -1
  306. package/skills/ae-experiment-insight/SKILL.md +2 -2
  307. package/skills/ae-experiment-insight/references/platform-operations.md +1 -1
  308. package/skills/ae-generate-tracking-code/SKILL.md +2 -1
  309. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  310. package/skills/ae-generate-tracking-code/references/datax-config.md +1 -1
  311. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  312. package/skills/ae-generate-tracking-code/references/modes.md +1 -1
  313. package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +5 -5
  314. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +3 -3
  315. package/skills/ae-generate-tracking-plan/SKILL.md +2 -2
  316. package/skills/ae-generate-tracking-plan/references/te-api.md +1 -0
  317. package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +3 -2
  318. package/skills/ae-kb/SKILL.md +41 -2
  319. package/skills/ae-kb/references/analysis-workflow.md +292 -0
  320. package/skills/ae-kb/references/source-mutations.md +95 -0
  321. package/skills/ae-kb-discovery/SKILL.md +5 -1
  322. package/skills/ae-metadata/SKILL.md +1 -1
  323. package/skills/ae-migrate-tracking-code/SKILL.md +195 -0
  324. package/skills/ae-migrate-tracking-code/references/ae-preset-properties.md +76 -0
  325. package/skills/ae-migrate-tracking-code/references/ir.md +167 -0
  326. package/skills/ae-migrate-tracking-code/references/mapping-framework.md +112 -0
  327. package/skills/ae-migrate-tracking-code/references/providers/README.md +58 -0
  328. package/skills/ae-migrate-tracking-code/references/providers/amplitude.md +208 -0
  329. package/skills/ae-migrate-tracking-code/references/providers/firebase.md +160 -0
  330. package/skills/ae-migrate-tracking-code/references/providers/ga4.md +92 -0
  331. package/skills/ae-migrate-tracking-code/references/providers/mixpanel.md +150 -0
  332. package/skills/ae-migrate-tracking-code/references/providers/sensors-data.md +146 -0
  333. package/skills/ae-project-semantic/SKILL.md +1 -1
  334. package/skills/ae-system/SKILL.md +4 -4
  335. package/skills/ae-team/SKILL.md +2 -2
  336. package/skills/ae-use-agent/references/local-agent.md +1 -1
  337. package/dist/chunk-TAL6CZH6.js +0 -72
  338. package/skills/ae-analysis/metadata_resolution.md +0 -184
@@ -1,6 +1,8 @@
1
1
  # Analysis AI-facing models
2
2
 
3
- This file is the single reference for `model_type` spelling and AI-facing `definition` shape.
3
+ This file defines `model_type` spelling and shared AI-facing building blocks. Each model's definition contract has its own file below.
4
+
5
+ Open the selected model file directly from the registry and construct `definition` from its example and field rules. Use common building blocks only for fields supported by that model; add `time_range` or `time_particle_size` only when its contract supports them. Reuse unchanged content already read; other model files do not add requirements to the selected model.
4
6
 
5
7
  ## Capability coverage
6
8
 
@@ -14,25 +16,25 @@ Do not pass raw QP, `events`, `eventView`, `visualView`, frontend DTOs, schema-g
14
16
 
15
17
  Common analysis models (9):
16
18
 
17
- - `event`: event analysis
18
- - `retention`: retention analysis
19
- - `funnel`: funnel conversion analysis
20
- - `distribution`: distribution analysis
21
- - `attribution`: attribution analysis
22
- - `interval`: interval analysis
23
- - `path`: path analysis
24
- - `prop_analysis`: property analysis
25
- - `sql`: SQL analysis
19
+ - [`event`](ai_models/event.md): event analysis
20
+ - [`retention`](ai_models/retention.md): retention analysis
21
+ - [`funnel`](ai_models/funnel.md): funnel conversion analysis
22
+ - [`distribution`](ai_models/distribution.md): distribution analysis
23
+ - [`attribution`](ai_models/attribution.md): attribution analysis
24
+ - [`interval`](ai_models/interval.md): interval analysis
25
+ - [`path`](ai_models/path.md): path analysis
26
+ - [`prop_analysis`](ai_models/prop_analysis.md): property analysis
27
+ - [`sql`](ai_models/sql.md): SQL analysis
26
28
 
27
29
  Scenario analysis models (3):
28
30
 
29
- - `heat_map`: heat map analysis
30
- - `rank_list`: ranking analysis
31
- - `revenue`: revenue analysis
31
+ - [`heat_map`](ai_models/heat_map.md): heat map analysis
32
+ - [`rank_list`](ai_models/rank_list.md): ranking analysis
33
+ - [`revenue`](ai_models/revenue.md): revenue analysis
32
34
 
33
35
  Report write only:
34
36
 
35
- - `tag`: saved tag report data. Use this spelling in CLI.
37
+ - [`tag`](ai_models/tag.md): saved tag report data. Use this spelling in CLI.
36
38
 
37
39
  ## Common building blocks
38
40
 
@@ -66,7 +68,6 @@ Field reference:
66
68
 
67
69
  - `type` can be `event_property`, `user_property`, `cluster`, or `tag`.
68
70
  - Omit `type` only when the field name is unambiguous.
69
- - `prop_analysis` dimensions and filters support `user_property`, `cluster`, and `tag`; they do not support `event_property`.
70
71
 
71
72
  Filter:
72
73
 
@@ -78,476 +79,34 @@ Filter:
78
79
  - Omit `values` for `exists` and `not_exists`.
79
80
  - Use exactly two values for `between`.
80
81
 
81
- Group:
82
-
83
- ```json
84
- {"field":{"name":"country","type":"user_property"}}
85
- ```
86
-
87
- Metric aggregation values must use semantic spelling, not internal A-codes. The whitelist is model- and property-type-specific because it mirrors the page controls:
88
-
89
- - `event`: without property use `total_count`, `user_count`, or `per_user_count`; numeric properties support `sum`, `avg`, `avg_per_user`, `max`, `min`, `distinct_count`, `median`, `percentile`, `variance`, and `stddev`; string/date/datetime properties support `distinct_count`; boolean properties support `true_count`, `false_count`, `not_empty_count`, `empty_count`, and `distinct_count`.
90
- - `retention` simultaneous metrics: without property use `total_count`, `user_count`, or `per_user_count`; numeric properties support only `sum` and `avg_per_user`; boolean properties support only `true_count`, `false_count`, `not_empty_count`, and `empty_count`.
91
- - `distribution`: without property use `count`, `active_days`, or `active_hours`; numeric properties support `sum`, `avg`, `max`, `min`, `distinct_count`, `median`, `percentile`, `variance`, and `stddev`; string/date/datetime properties support `distinct_count`; boolean properties support `true_count`, `false_count`, `not_empty_count`, `empty_count`, and `distinct_count`.
92
- - `attribution`: use `total_count` without `target_property`, or `sum` with a numeric `target_property`.
93
- - `prop_analysis`: use `user_count` without property; property aggregations follow the event property-type rules except that `percentile` is not supported.
94
- - `heat_map`, `rank_list`, and `revenue`: use the event whitelist except that `percentile` is not supported.
95
-
96
- For total event count use `total_count`; `count` belongs only to distribution. Internal `Axxx` codes are persisted page details and are not valid authored AI definitions.
97
-
98
- ## Model definitions
99
-
100
- ### `event`
101
-
102
- Use for event metrics, trends, grouping, filters, and comparisons.
103
-
104
- ```json
105
- {
106
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
107
- "time_particle_size": "day",
108
- "metrics": [
109
- {"event": "login", "aggregation": "user_count"}
110
- ],
111
- "groups": [
112
- {"field": {"name": "country", "type": "user_property"}}
113
- ],
114
- "filters": [
115
- {"field": {"name": "country", "type": "user_property"}, "operator": "eq", "values": ["US"]}
116
- ],
117
- "relation": "and"
118
- }
119
- ```
120
-
121
- Property aggregation example:
122
-
123
- ```json
124
- {
125
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
126
- "metrics": [
127
- {"event": "purchase", "aggregation": "sum", "property": "amount"}
128
- ]
129
- }
130
- ```
131
-
132
- Omit `display_name` by default; apply business-facing labels in the final answer instead. Add this optional field only when the target host's capability schema or a successful validation explicitly supports `display_name` for that command. Support can differ by deployment and command; a saved report supporting it does not prove ad-hoc support. If rejected, remove only the unsupported label, preserving events, aggregations, properties, filters, and formula dependencies.
133
-
134
- Formula metric example:
135
-
136
- ```json
137
- {
138
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
139
- "metrics": [
140
- {
141
- "formula": "revenue / users",
142
- "dependencies": [
143
- {"alias": "revenue", "event": "purchase", "aggregation": "sum", "property": "amount"},
144
- {"alias": "users", "event": "login", "aggregation": "user_count"}
145
- ]
146
- }
147
- ]
148
- }
149
- ```
150
-
151
- Formula rules:
152
-
153
- - Write **bare aliases** only in `formula` (e.g. `"revenue / users"` or `"pay / dau"`).
154
- - **Do not** write `alias.Axxx` (e.g. `"pay.A103"` / `"revenue.A103"`). Aggregation codes come from each dependency's `aggregation`; the builder expands aliases to real event tokens such as `purchase.amount.A103/login.A101`.
155
- - After the builder returns `status=generated`, hard-validate by querying (`analysis adhoc run` / report-data / dashboard-report-data). Do not save a report or dashboard from an unqueried formula QP.
156
-
157
- ### `retention`
158
-
159
- Use for retained/lost users from an initial event to a return event.
160
-
161
- ```json
162
- {
163
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
164
- "time_particle_size": "day",
165
- "retention": {
166
- "initial_event": "register",
167
- "return_event": "login",
168
- "stat_type": "retention",
169
- "unit_num": 1,
170
- "rtn_rate_or_num": "rate",
171
- "groups": [
172
- {"field": {"name": "channel", "type": "user_property"}}
173
- ]
174
- }
175
- }
176
- ```
177
-
178
- Use `stat_type=lost` for lost-user analysis. Use `rtn_rate_or_num=count` when the user asks for user counts instead of rates.
179
-
180
- Initial-event and return-event property filters use the retention-specific shape below. Put them inside `retention`; use `event_property_name` instead of a generic `field` object. Do not use top-level `filters`, `retention.filters`, or `initial_event_filters`.
82
+ Tag and cluster result-date policy:
181
83
 
182
- ```json
183
- {
184
- "time_range": {"mode": "custom", "start_time": "2026-08-18 00:00:00", "end_time": "2026-08-18 23:59:59"},
185
- "time_particle_size": "day",
186
- "retention": {
187
- "initial_event": "register",
188
- "initial_filters": [
189
- {"event_property_name": "case_id", "operator": "eq", "values": ["retention_test"]}
190
- ],
191
- "initial_filter_relation": "and",
192
- "return_event": "login",
193
- "return_filters": [
194
- {"event_property_name": "case_id", "operator": "eq", "values": ["retention_test"]}
195
- ],
196
- "return_filter_relation": "and",
197
- "stat_type": "retention",
198
- "unit_num": 1,
199
- "rtn_rate_or_num": "rate",
200
- "groups": [
201
- {"field": {"name": "channel", "type": "event_property"}}
202
- ]
203
- }
204
- }
205
- ```
206
-
207
- ### `funnel`
208
-
209
- Use for ordered conversion steps with a conversion window.
210
-
211
- ```json
212
- {
213
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
214
- "time_particle_size": "day",
215
- "funnel": {
216
- "steps": [
217
- {"event": "view_product"},
218
- {"event": "add_to_cart"},
219
- {"event": "purchase"}
220
- ],
221
- "window": {"value": 3, "unit": "day"},
222
- "groups": [
223
- {"field": {"name": "channel", "type": "user_property"}}
224
- ]
225
- }
226
- }
227
- ```
228
-
229
- If the user asks to match users across events by a shared event property, set `relation_event_property_name`.
230
-
231
- Step-level event-property filters belong inside the matching `funnel.steps[].filters`. Use `event_property_name`, not the common `field` object. `values` is an array of strings, including `"true"` / `"false"` for boolean properties; omit values for existence operators. For example, ordered registration -> login -> first payment:
232
-
233
- ```json
234
- {
235
- "time_range": {"mode": "previous", "unit": "day", "value": 14},
236
- "time_particle_size": "day",
237
- "funnel": {
238
- "steps": [
239
- {"event": "register"},
240
- {"event": "login"},
241
- {"event": "payment", "filters": [
242
- {"event_property_name": "is_first_pay", "operator": "eq", "values": ["true"]}
243
- ]}
244
- ],
245
- "window": {"value": 7, "unit": "day"}
246
- }
247
- }
248
- ```
249
-
250
- Preserve step order, conversion window, and all requested filters when correcting input. Only actual funnel results support step counts and conversion rates; independent event UVs are not an ordered funnel.
251
-
252
- ### `distribution`
253
-
254
- Use for user distribution buckets for an event or property metric.
84
+ - `cluster_date_policy` is valid only when `field.type` is `tag` or `cluster`.
85
+ - `LATEST` uses the latest computed tag/cluster result and is the default when the field is omitted.
86
+ - `AUTO` dynamically matches the computed result for each analysis date. Use it for historical daily analysis that must evaluate each day against that day's tag or cluster state.
87
+ - `SPECIFIED` uses one fixed result date and requires `specified_cluster_date` in `yyyy-MM-dd` format. Do not send `specified_cluster_date` with `LATEST` or `AUTO`.
255
88
 
256
- ```json
257
- {
258
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
259
- "distribution_metrics": [
260
- {
261
- "event": "purchase",
262
- "aggregation": "sum",
263
- "property": "amount",
264
- "filters": [
265
- {
266
- "field": {"name": "vip_users", "type": "cluster"},
267
- "operator": "in_cluster"
268
- }
269
- ],
270
- "relation": "and",
271
- "interval_type": "user_defined",
272
- "quota_interval_arr": [100, 1000, 10000]
273
- }
274
- ],
275
- "groups": [
276
- {"field": {"name": "country", "type": "user_property"}}
277
- ]
278
- }
279
- ```
280
-
281
- Use `interval_type=def` for automatic buckets, `user_defined` for explicit numeric boundaries, and `discrete` to group by raw values.
282
-
283
- Distribution filters must be attached to the corresponding `distribution_metrics[].filters`.
284
- Do not use top-level `filters` or `relation` in a distribution definition.
285
- When multiple metrics need the same filter, attach it to each metric explicitly. If the requested filter scope is ambiguous, clarify which metric it applies to before running the analysis.
286
-
287
- ### `attribution`
288
-
289
- Use to attribute target conversions to touchpoint/source events.
89
+ For example, the following filter evaluates `tag_pay_level != 非R` against each analysis day's tag result:
290
90
 
291
91
  ```json
292
92
  {
293
- "time_range": {"mode": "previous", "unit": "day", "value": 14},
294
- "attribution": {
295
- "target_event": "purchase",
296
- "target_aggregation": "total_count",
297
- "attribution_events": [
298
- {"event": "ad_click"},
299
- {"event": "campaign_view"}
300
- ],
301
- "attribution_model": "first",
302
- "window": {"value": 7, "unit": "day"},
303
- "direct_conversion": true
304
- }
93
+ "field": {"name": "tag_pay_level", "type": "tag"},
94
+ "operator": "neq",
95
+ "values": ["非R"],
96
+ "cluster_date_policy": "AUTO"
305
97
  }
306
98
  ```
307
99
 
308
- `attribution_model` values: `first`, `last`, or `linear`.
309
- The target aggregation is intentionally narrow: use `total_count` without a property, or `sum` with a numeric `target_property`. Do not use `user_count`.
310
-
311
- ### `interval`
100
+ A successful ad-hoc response returns the effective policy in `definition`. A saved report read returns the persisted policy when it is present in the report QP. Treat `AUTO` as the evidence for dynamic matching; `field.type=tag` or `sub_table_type=tag_by_static_condition` alone does not prove it.
312
101
 
313
- Use for elapsed-time analysis between an initial event and a return event.
314
-
315
- ```json
316
- {
317
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
318
- "time_particle_size": "day",
319
- "interval": {
320
- "initial_event": "register",
321
- "return_event": "first_purchase",
322
- "window": {"value": 7, "unit": "day"},
323
- "groups": [
324
- {"field": {"name": "channel", "type": "user_property"}}
325
- ]
326
- }
327
- }
328
- ```
329
-
330
- ### `path`
331
-
332
- Use for behavior paths before or after a source event.
333
-
334
- ```json
335
- {
336
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
337
- "filters": [
338
- {"field": {"name": "account_id", "type": "user_property"}, "operator": "exists"}
339
- ],
340
- "relation": "and",
341
- "path": {
342
- "source_event": "purchase",
343
- "included_events": ["view_product", "add_to_cart", "purchase"],
344
- "session_interval": 30,
345
- "session_unit": "minute",
346
- "direction": "forward"
347
- }
348
- }
349
- ```
350
-
351
- `direction=forward` asks what users do after `source_event`; `direction=backward` asks what users did before it. Do not send original-QP fields such as `source_type` or `event_names`.
352
-
353
- For path analysis, `preview_rows` is a graph-display boundary aligned with the analysis UI: it keeps up to that many real nodes per path level, then combines overflow nodes into `more`. `result.nodes` retains the synthesized `more` node for graph structure and drilldown coordinates. The top-level `returned_rows` counts real business nodes actually returned across all levels; it excludes synthesized `more` nodes and the real nodes folded into them. The count may still exceed `preview_rows` because the boundary applies independently to each level. `has_more=true` means at least one level contains real nodes folded into `more`; a linear multi-level path can return more real nodes than `preview_rows` with `has_more=false`.
354
-
355
- Path `filters` are global member filters compiled to the original QP `user_filter`. They support `user_property`, `cluster`, and `tag`, but not `event_property`. Do not move a user filter into the source event's event-property filter.
356
-
357
- Path session timeout accepts only these unit/value ranges:
358
-
359
- - `second`: `1..999`
360
- - `minute`: `1..999`
361
- - `hour`: `1..24`
362
-
363
- Do not use `day`. Express one day as `session_interval=24` with `session_unit=hour`.
364
-
365
- Property types come from project metadata. If resolution says a field is an `event_property`, never relabel it as `user_property` just to satisfy the path schema. Remove the unsupported global filter, choose a model that supports event-property filtering, or ask the user to clarify the intended constraint. A familiar name such as `channel` is not universally an event or user property across projects.
366
-
367
- For every non-SQL intent model, do not call `list_events` or `list_properties` as an execution prerequisite. The successful response must expose every internally resolved event/property in `resolved`, including `input`, `resolved_name`, `match_type`, and `path`. Use metadata discovery only after a structured `need_clarification` response or an explicit resolution capability error.
368
-
369
- ### `prop_analysis`
370
-
371
- Use for user-property metrics, grouping, filters, and user-crowd comparison.
372
-
373
- ```json
374
- {
375
- "prop_analysis": {
376
- "metric": {"aggregation": "user_count"},
377
- "groups": [
378
- {"field": {"name": "country", "type": "user_property"}}
379
- ],
380
- "filters": [
381
- {"field": {"name": "vip_level", "type": "user_property"}, "operator": "gte", "values": ["3"]}
382
- ],
383
- "user_crowds": [
384
- {
385
- "name": "US users",
386
- "filters": [
387
- {"field": {"name": "country", "type": "user_property"}, "operator": "eq", "values": ["US"]}
388
- ]
389
- }
390
- ]
391
- }
392
- }
393
- ```
394
-
395
- For property aggregations, pass the user property:
396
-
397
- ```json
398
- {"prop_analysis":{"metric":{"aggregation":"distinct_count","property":"account_id"}}}
399
- ```
400
-
401
- ### `sql`
402
-
403
- Use for SQL analysis. The AI-facing model has only:
404
-
405
- - `sql`: required SQL text.
406
- - `params`: optional dynamic parameter values and definitions, required only when SQL contains `${...}` placeholders.
407
-
408
- Simple SQL:
409
-
410
- ```json
411
- {"sql":"SELECT 1 AS value"}
412
- ```
413
-
414
- Trino special identifiers must use double-quoted identifier delimiters:
415
-
416
- ```json
417
- {"sql":"SELECT \"#user_id\", \"$part_event\" FROM hive.ta.v_event_1 WHERE \"$part_date\" BETWEEN '2026-07-01' AND '2026-07-07' LIMIT 20"}
418
- ```
419
-
420
- Reserved words used as identifiers must also be double quoted, for example `SELECT "end" FROM ...`.
421
-
422
- For multiline SQL JSON, ensure JSON decoding produces a real line break in the `sql` value. Do not submit a literal `\\n` sequence outside a quoted SQL string value; use a JSON escape that the caller decodes once before invoking the capability.
423
-
424
- Event-table queries must include a date-partition predicate on the quoted `"$part_date"` column. The backend rejects SQL against an event table when this predicate is absent. This requirement is specific to event tables; do not invent a `$part_date` condition for a table whose discovered columns do not include it.
425
-
426
- Typed condition-fragment placeholder:
427
-
428
- ```json
429
- {
430
- "sql": "select * from events where country ${Text:country}",
431
- "params": [
432
- {"name": "country", "type": "text", "operator": "eq", "value": "US"}
433
- ]
434
- }
435
- ```
436
-
437
- Raw variable placeholder:
438
-
439
- ```json
440
- {
441
- "sql": "select * from events where country = ${country}",
442
- "params": [
443
- {"name": "country", "type": "variable", "value": "'US'"}
444
- ]
445
- }
446
- ```
447
-
448
- Time placeholder:
449
-
450
- ```json
451
- {
452
- "sql": "select * from events where ${PartDate:ds}",
453
- "params": [
454
- {"name": "ds", "type": "part_date", "recent_day": "1-7", "use_timezone": true}
455
- ]
456
- }
457
- ```
458
-
459
- Rules:
460
-
461
- - If SQL has no `${...}` placeholder, omit `params`.
462
- - If SQL has placeholders, every placeholder must have one matching item in `params`.
463
- - Raw variables use `${name}`, not `${Variable:name}`. A selector's `value` must equal one of its `options[].value` values. `${PartDate:name}` expands to a complete predicate, so place it directly after `WHERE`/`AND` rather than after a column name.
464
- - A `part_date` parameter must provide either `recent_day` or a complete custom range with both `start_time` and `end_time`; one-sided custom ranges are invalid.
465
- - `use_timezone` is an optional boolean definition field that is only valid for `part_date`. It defaults to `false`. When `true`, that PartDate parameter uses the query's effective timezone selected by `zone_offset` or the current user/project default; when `false`, it follows the non-timezone-aware PartDate path. This is distinct from the command-level `zone_offset`.
466
- - Do not pass SQL-IDE internals such as `sqlVoParams`, `sqlViewParams`, `paramType`, `paramName`, `paramExpress`, `commonFilter`, or `requiredEvents`.
467
- - Delimit any Trino identifier containing `#`, `$`, `@`, spaces, punctuation, or a reserved word with double quotes, for example `"#user_id"`, `"$part_event"`, and `"end"`. Single quotes create string literals, not identifiers. Escape a literal double quote inside an identifier by doubling it. The CLI preserves the submitted SQL and does not rewrite identifiers.
468
- - For an event table, include a date-partition predicate on the discovered `"$part_date"` column, for example `WHERE "$part_date" BETWEEN '2026-07-01' AND '2026-07-07'`. The backend rejects event-table SQL without this condition.
469
- - Do not invent table or column names. If the user already provides a concrete table reference, use `analysis-meta datatable columns-get --project-id <project_id> --table-ref <table_ref>` to inspect columns before writing SQL. If the table itself is unknown, call `analysis sql-table list --project-id <project_id>` when available and select an exact returned `table_ref`; otherwise stop and ask for the table/data source. Ask the user only when multiple authorized tables remain semantically plausible after discovery.
470
- - For a saved dynamic SQL report, put the default values in `analysis report create/update --definition`. Verify the default once with `analysis report-data run` without `--sql-params`, then verify a changed value with one value-only `--sql-params` override.
471
- - `use_timezone` belongs to the saved parameter definition. To change it, update the report `definition`; never pass it through report-data `--sql-params`, which changes values only.
472
- - SQL tags and SQL clusters do not use this general parameter contract. They accept only `${PartDate:name}` with `type=part_date`, and their tables must be discovered with `analysis sql-table list/columns --usage tag_cluster`; see `user_tag_models.md` and `user_cluster_models.md`.
473
-
474
- ### `heat_map`
475
-
476
- Use for two-dimensional heat map analysis based on numeric event coordinate properties.
477
-
478
- ```json
479
- {
480
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
481
- "heat_map": {
482
- "hot_event": "click",
483
- "hot_aggregation": "total_count",
484
- "x_prop": "screen_x",
485
- "y_prop": "screen_y",
486
- "filters": [
487
- {"field": {"name": "page", "type": "event_property"}, "operator": "eq", "values": ["home"]}
488
- ]
489
- }
490
- }
491
- ```
492
-
493
- For property metrics, set `hot_property` and use a property aggregation such as `sum` or `avg`.
494
-
495
- ### `rank_list`
496
-
497
- Use for ranking users/entities by an event metric.
498
-
499
- ```json
500
- {
501
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
502
- "rank_list": {
503
- "rank_dimension": {"field": {"name": "#account_id", "type": "user_property"}},
504
- "rank_event": "purchase",
505
- "rank_aggregation": "sum",
506
- "rank_property": "amount",
507
- "rank_type": "dense_rank",
508
- "order_by": "DESC"
509
- }
510
- }
511
- ```
512
-
513
- `rank_type` values: `rank`, `dense_rank`, or `row_rank`.
514
-
515
- ### `revenue`
516
-
517
- Use for revenue cohort metrics such as LTV, ROI, revenue, and cost.
102
+ Group:
518
103
 
519
104
  ```json
520
- {
521
- "time_range": {"mode": "previous", "unit": "day", "value": 30},
522
- "initial_event": {"event": "register"},
523
- "pay_event": {"event": "purchase"},
524
- "revenue_metric": {"event": "purchase", "aggregation": "sum", "property": "amount"},
525
- "cost_metric": {"event": "ad_cost", "aggregation": "sum", "property": "cost"},
526
- "observation_days": 14,
527
- "selected_metrics": ["payAmount", "ltv", "roi"],
528
- "groups": [
529
- {"field": {"name": "channel", "type": "user_property"}}
530
- ]
531
- }
105
+ {"field":{"name":"country","type":"user_property"}}
532
106
  ```
533
107
 
534
- `cost_metric` is optional when the user does not ask for cost/ROI.
535
- `selected_metrics` supports `payUsers`, `payAmount`, `cumPayUsers`, `cumPayAmount`, `payRate`, `cumPayRate`, `ltv`, `ltvMultiple`, and `roi`.
536
-
537
- ### `tag` report write only
538
-
539
- Use only with `analysis report create/update`; do not use with `analysis adhoc run/export`.
540
-
541
- `tag_name` is the only tag-report name field. Do not send `cluster_name` for a tag report; `cluster_name` belongs only to audience-cluster commands.
108
+ Metric aggregation values must use semantic spelling, not internal A-codes. Use the selected model file's aggregation whitelist; it is specific to the model and property type.
542
109
 
543
- ```json
544
- {
545
- "tag": {
546
- "tag_name": "vip_users",
547
- "time_range": {"mode": "recent", "unit": "day", "value": 7},
548
- "time_particle_size": "day"
549
- }
550
- }
551
- ```
110
+ For total event count use `total_count`; `count` belongs only to distribution. Internal `Axxx` codes are persisted page details and are not valid authored AI definitions.
552
111
 
553
- Prefer `time_range` for new tag reports. `recent_day`, `start_time`, and `end_time` are only for report readback or precise round-trip updates.
112
+ Use verified canonical metadata when constructing an intent model. Discover missing definitions or fields with [metadata resolution](metadata_resolution.md). Successful responses expose internally resolved events/properties in `resolved`, including `input`, `resolved_name`, `match_type` and `path`; reuse those mappings.
@@ -1,24 +1,24 @@
1
1
  # analysis alert create
2
2
 
3
- Use when create an alert.
4
-
5
- Do not use for commands listed under the sheet's non-CLI section or for unrelated metadata/report operations. If the command needs a complex JSON object, read the backend schema or existing asset first and send snake_case fields only.
3
+ Use only when the user asks to create an alert.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert create [options]
8
+ ae-cli analysis alert create --project-id <project_id> --definition-request '<definition_request>'
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert.create`
14
12
 
15
13
  Input sends `project_id` and `definition_request`. Do not send camelCase aliases.
16
14
 
17
- Output is the capability gateway envelope: success is `ok=true,data,meta`; failure is `ok=false,error`. Export commands return lifecycle data such as `run_id` and `artifact_id` for inspect/download.
15
+ Output is the capability gateway envelope: success is `ok=true,data,meta`; failure is `ok=false,error`.
16
+
17
+ If the alert definition fields are not known from the current task, inspect `ae-cli capability inspect analysis.alert.create` once and use its snake_case input schema.
18
18
 
19
19
  Parameters:
20
20
 
21
21
  | Parameter | Description | Required |
22
22
  | --- | --- | --- |
23
- | `--project-id` | See command help | Yes |
24
- | `--definition-request` | See command help | Yes |
23
+ | `--project-id` | Numeric project ID. | Yes |
24
+ | `--definition-request` | Structured alert definition request JSON object using snake_case field names. | Yes |
@@ -1,8 +1,6 @@
1
1
  # analysis alert delete
2
2
 
3
- Use when delete an alert.
4
-
5
- Do not use for commands listed under the sheet's non-CLI section or for unrelated metadata/report operations. If the command needs a complex JSON object, read the backend schema or existing asset first and send snake_case fields only.
3
+ Use only when the user asks to delete an alert.
6
4
 
7
5
  Command:
8
6
 
@@ -16,11 +14,11 @@ Capability id: `analysis.alert.delete`
16
14
 
17
15
  Input sends `project_id` and `alert_id`. Do not send camelCase aliases.
18
16
 
19
- Output is the capability gateway envelope: success is `ok=true,data,meta`; failure is `ok=false,error`. Export commands return lifecycle data such as `run_id` and `artifact_id` for inspect/download.
17
+ Output is the capability gateway envelope: success is `ok=true,data,meta`; failure is `ok=false,error`.
20
18
 
21
19
  Parameters:
22
20
 
23
21
  | Parameter | Description | Required |
24
22
  | --- | --- | --- |
25
- | `--project-id` | See command help | Yes |
26
- | `--alert-id` | See command help | Yes |
23
+ | `--project-id` | Numeric project ID. | Yes |
24
+ | `--alert-id` | Alert task ID. | Yes |
@@ -1,27 +1,25 @@
1
1
  # analysis alert-detail list
2
2
 
3
- Use when list alert delivery details.
4
-
5
- Do not use for commands listed under the sheet's non-CLI section or for unrelated metadata/report operations. If the command needs a complex JSON object, read the backend schema or existing asset first and send snake_case fields only.
3
+ Use only when the user asks to list alert delivery details.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert-detail list [options]
8
+ ae-cli analysis alert-detail list --project-id <project_id> --alert-id <alert_id>
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert_detail.list`
14
12
 
15
13
  Input sends `project_id`, `alert_id`, optional `start_time`, and optional `end_time`. Do not send camelCase aliases.
16
14
 
17
- Output is the capability gateway envelope: success is `ok=true,data,meta`; failure is `ok=false,error`. Export commands return lifecycle data such as `run_id` and `artifact_id` for inspect/download.
15
+ Output is the capability gateway envelope: success is `ok=true,data,meta`; failure is `ok=false,error`.
18
16
 
19
17
  Parameters:
20
18
 
21
19
  | Parameter | Description | Required |
22
20
  | --- | --- | --- |
23
- | `--project-id` | See command help | Yes |
24
- | `--alert-id` | See command help | Yes |
25
- | `--start-time` | See command help | No |
26
- | `--end-time` | See command help | No |
21
+ | `--project-id` | Numeric project ID. | Yes |
22
+ | `--alert-id` | Alert task ID. | Yes |
23
+ | `--start-time` | Optional alert detail start time. | No |
24
+ | `--end-time` | Optional alert detail end time. | No |
27
25