@thinkingai/ae-cli 6.1.19 → 6.1.21

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 (370) hide show
  1. package/README.md +96 -38
  2. package/README.zh.md +96 -38
  3. package/dist/{auth-QPEVVBKT.js → auth-XZNXFRJS.js} +236 -127
  4. package/dist/{capability-ASI62I4A.js → capability-FYTU3X6L.js} +80 -37
  5. package/dist/{chunk-QL6R6TSK.js → chunk-4NRCTUZJ.js} +27045 -477
  6. package/dist/{chunk-JYMGHGCE.js → chunk-57RRFUEZ.js} +42 -15
  7. package/dist/chunk-6ZIQV5GW.js +26 -0
  8. package/dist/{chunk-KZ6ZHF5J.js → chunk-7FTTULED.js} +14 -14
  9. package/dist/chunk-7XGFSUOM.js +623 -0
  10. package/dist/chunk-CCS66K4K.js +155 -0
  11. package/dist/{chunk-B5HMQAOM.js → chunk-DVMLWQD4.js} +8 -186
  12. package/dist/{chunk-KEWVSO64.js → chunk-DX5CDO34.js} +28 -18
  13. package/dist/chunk-EQ255HKO.js +38248 -0
  14. package/dist/{chunk-6QK7SYYY.js → chunk-HBGADCKA.js} +29 -37
  15. package/dist/{chunk-GJXRF7Y6.js → chunk-HFGZGYCG.js} +54 -81
  16. package/dist/chunk-JOCDD4ON.js +15 -0
  17. package/dist/{chunk-TKHSULJT.js → chunk-KPQY44JQ.js} +6 -0
  18. package/dist/{chunk-FR2EDAQM.js → chunk-MAPZ7VB6.js} +90 -2
  19. package/dist/chunk-V2NUHPXF.js +196 -0
  20. package/dist/{chunk-S5PONFBM.js → chunk-VYXXOKYS.js} +9 -9
  21. package/dist/{community-report-client-6OL6GBQW.js → community-report-client-CU22W53K.js} +2 -4
  22. package/dist/{config-XNMACCKX.js → config-XO3LI3SA.js} +8 -9
  23. package/dist/context-IFJI3LIT.js +46 -0
  24. package/dist/{data-integration-4NZGZ45E.js → data-integration-HNGUKFIC.js} +55 -44
  25. package/dist/index.js +122 -112
  26. package/dist/{local-data-upload-client-EFHDLXFG.js → local-data-upload-client-GTRIT64F.js} +4 -5
  27. package/dist/{memory-HBJQ2GC5.js → memory-QGPSNCQS.js} +4 -6
  28. package/dist/{metadata-62EWBEIG.js → metadata-DI5BMYFU.js} +8 -10
  29. package/dist/{model-BHLJ2QMT.js → model-RNPQXIBI.js} +4 -6
  30. package/dist/{personal-semantic-preference-JBVMAI7L.js → personal-semantic-preference-5C3WUXFI.js} +11 -10
  31. package/dist/{project-semantic-BQ4MPUS5.js → project-semantic-3LF6Q6JZ.js} +29 -25
  32. package/dist/{sync-MUWPRM5I.js → sync-O45NXEQY.js} +7 -8
  33. package/dist/{te-agent-WQZTMEK4.js → te-agent-K5MSPNHJ.js} +393 -90
  34. package/dist/{te-analysis-MNCG65LU.js → te-analysis-AISWCOOZ.js} +1175 -377
  35. package/dist/{te-community-BNE6KREL.js → te-community-4OYU3BDA.js} +10 -33
  36. package/dist/{te-dataops-TXLKM2W6.js → te-dataops-NFIPB6FX.js} +19 -20
  37. package/dist/{te-engage-TPKLRVTL.js → te-engage-BAM3GBFX.js} +13 -15
  38. package/dist/{te-experiment-6BYKTCY7.js → te-experiment-GUTZXZ5Z.js} +132 -16
  39. package/dist/te-kb-3TS73NO6.js +1992 -0
  40. package/dist/{te-system-44LZJDTQ.js → te-system-STMHLS5J.js} +12 -9
  41. package/dist/{te-team-XMP47YXE.js → te-team-3I5AOX3N.js} +6 -8
  42. package/dist/{update-UODFOZ4P.js → update-RZXLPCRH.js} +7 -8
  43. package/package.json +29 -19
  44. package/skills/ae-agent/SKILL.md +30 -13
  45. package/skills/ae-agent/references/agent-distribution.md +94 -0
  46. package/skills/ae-agent/references/approval-request.md +4 -0
  47. package/skills/ae-agent/references/command_index.md +9 -2
  48. package/skills/ae-agent/references/create-automation.md +20 -2
  49. package/skills/ae-agent/references/get-agent-context.md +70 -0
  50. package/skills/ae-agent/references/list-automations.md +18 -3
  51. package/skills/ae-agent/references/list-mcp-credentials.md +1 -1
  52. package/skills/ae-agent/references/mcp-token.md +3 -3
  53. package/skills/ae-agent/references/set-mcp-credential.md +0 -1
  54. package/skills/ae-agent/references/update-automation.md +18 -0
  55. package/skills/ae-analysis/SKILL.md +101 -79
  56. package/skills/ae-analysis/references/adhoc_export.md +11 -18
  57. package/skills/ae-analysis/references/adhoc_run.md +17 -7
  58. package/skills/ae-analysis/references/agent_review_detail.md +11 -0
  59. package/skills/ae-analysis/references/agent_review_evidence.md +46 -0
  60. package/skills/ae-analysis/references/agent_review_list.md +9 -0
  61. package/skills/ae-analysis/references/agent_review_preflight.md +96 -0
  62. package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +76 -0
  63. package/skills/ae-analysis/references/agent_review_records.md +9 -0
  64. package/skills/ae-analysis/references/agent_review_retry.md +12 -0
  65. package/skills/ae-analysis/references/agent_review_review.md +16 -0
  66. package/skills/ae-analysis/references/agent_review_submit_to_page.md +184 -0
  67. package/skills/ae-analysis/references/ai_models/attribution.md +29 -0
  68. package/skills/ae-analysis/references/ai_models/distribution.md +40 -0
  69. package/skills/ae-analysis/references/ai_models/event.md +108 -0
  70. package/skills/ae-analysis/references/ai_models/funnel.md +46 -0
  71. package/skills/ae-analysis/references/ai_models/heat_map.md +26 -0
  72. package/skills/ae-analysis/references/ai_models/interval.md +20 -0
  73. package/skills/ae-analysis/references/ai_models/path.md +38 -0
  74. package/skills/ae-analysis/references/ai_models/prop_analysis.md +39 -0
  75. package/skills/ae-analysis/references/ai_models/rank_list.md +25 -0
  76. package/skills/ae-analysis/references/ai_models/retention.md +70 -0
  77. package/skills/ae-analysis/references/ai_models/revenue.md +28 -0
  78. package/skills/ae-analysis/references/ai_models/sql.md +74 -0
  79. package/skills/ae-analysis/references/ai_models/tag.md +19 -0
  80. package/skills/ae-analysis/references/ai_models.md +32 -453
  81. package/skills/ae-analysis/references/alert_create.md +7 -7
  82. package/skills/ae-analysis/references/alert_delete.md +4 -6
  83. package/skills/ae-analysis/references/alert_detail_list.md +7 -9
  84. package/skills/ae-analysis/references/alert_get.md +5 -7
  85. package/skills/ae-analysis/references/alert_job_list.md +4 -6
  86. package/skills/ae-analysis/references/alert_list.md +6 -8
  87. package/skills/ae-analysis/references/alert_notice_config_list.md +4 -6
  88. package/skills/ae-analysis/references/alert_start.md +5 -7
  89. package/skills/ae-analysis/references/alert_stop.md +5 -7
  90. package/skills/ae-analysis/references/alert_update.md +8 -8
  91. package/skills/ae-analysis/references/analysis_data_export.md +72 -0
  92. package/skills/ae-analysis/references/analysis_data_retrieval.md +32 -196
  93. package/skills/ae-analysis/references/analysis_gateway_assets.md +23 -180
  94. package/skills/ae-analysis/references/analysis_interpretation.md +37 -17
  95. package/skills/ae-analysis/references/asset_abnormal_get.md +0 -1
  96. package/skills/ae-analysis/references/asset_abnormal_list.md +0 -1
  97. package/skills/ae-analysis/references/asset_authentication_export.md +4 -0
  98. package/skills/ae-analysis/references/asset_authentication_list.md +7 -1
  99. package/skills/ae-analysis/references/asset_authentication_update.md +5 -1
  100. package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +8 -6
  101. package/skills/ae-analysis/references/asset_batch_delete.md +6 -6
  102. package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +4 -5
  103. package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +5 -6
  104. package/skills/ae-analysis/references/asset_batch_handover.md +4 -5
  105. package/skills/ae-analysis/references/asset_batch_info_export.md +4 -5
  106. package/skills/ae-analysis/references/asset_batch_sql_export.md +5 -6
  107. package/skills/ae-analysis/references/asset_dependency_list.md +4 -5
  108. package/skills/ae-analysis/references/asset_export.md +4 -5
  109. package/skills/ae-analysis/references/asset_impact_list.md +5 -9
  110. package/skills/ae-analysis/references/asset_lineage_get.md +5 -6
  111. package/skills/ae-analysis/references/asset_list.md +4 -5
  112. package/skills/ae-analysis/references/asset_query_history_list.md +4 -8
  113. package/skills/ae-analysis/references/asset_recent_list.md +0 -1
  114. package/skills/ae-analysis/references/asset_search.md +12 -9
  115. package/skills/ae-analysis/references/asset_url_get.md +3 -4
  116. package/skills/ae-analysis/references/bi_panel_copy.md +2 -2
  117. package/skills/ae-analysis/references/bi_panel_page_data_export.md +4 -12
  118. package/skills/ae-analysis/references/bi_panel_page_data_run.md +2 -0
  119. package/skills/ae-analysis/references/catalog_export.md +4 -17
  120. package/skills/ae-analysis/references/catalog_list.md +4 -4
  121. package/skills/ae-analysis/references/check_delete.md +5 -7
  122. package/skills/ae-analysis/references/check_export.md +11 -11
  123. package/skills/ae-analysis/references/check_get.md +8 -10
  124. package/skills/ae-analysis/references/check_list.md +4 -6
  125. package/skills/ae-analysis/references/check_retry.md +8 -10
  126. package/skills/ae-analysis/references/check_run.md +2 -4
  127. package/skills/ae-analysis/references/command_index.md +46 -28
  128. package/skills/ae-analysis/references/cross_source_config.md +84 -0
  129. package/skills/ae-analysis/references/dashboard_report_data_export.md +5 -13
  130. package/skills/ae-analysis/references/dashboard_report_data_run.md +1 -1
  131. package/skills/ae-analysis/references/dashboard_update.md +15 -4
  132. package/skills/ae-analysis/references/datatable_columns_get.md +0 -1
  133. package/skills/ae-analysis/references/datatable_influence_list.md +0 -1
  134. package/skills/ae-analysis/references/datatable_version_get.md +0 -1
  135. package/skills/ae-analysis/references/datatable_version_list.md +0 -1
  136. package/skills/ae-analysis/references/debug_device_add.md +1 -2
  137. package/skills/ae-analysis/references/drilldown_entities_export.md +3 -3
  138. package/skills/ae-analysis/references/drilldown_events_export.md +3 -2
  139. package/skills/ae-analysis/references/drilldown_user_events_export.md +2 -2
  140. package/skills/ae-analysis/references/entity_detail_export.md +3 -2
  141. package/skills/ae-analysis/references/entity_detail_run.md +1 -0
  142. package/skills/ae-analysis/references/event_blacklist_add.md +5 -7
  143. package/skills/ae-analysis/references/event_blacklist_list.md +4 -6
  144. package/skills/ae-analysis/references/event_blacklist_update.md +6 -8
  145. package/skills/ae-analysis/references/event_changelog_list.md +0 -1
  146. package/skills/ae-analysis/references/event_create.md +0 -1
  147. package/skills/ae-analysis/references/event_detail_export.md +3 -2
  148. package/skills/ae-analysis/references/event_detail_run.md +1 -0
  149. package/skills/ae-analysis/references/event_export.md +0 -1
  150. package/skills/ae-analysis/references/event_get.md +0 -1
  151. package/skills/ae-analysis/references/event_hide_update.md +0 -1
  152. package/skills/ae-analysis/references/event_influence_list.md +0 -1
  153. package/skills/ae-analysis/references/event_list.md +0 -1
  154. package/skills/ae-analysis/references/event_property_bundle_export.md +5 -14
  155. package/skills/ae-analysis/references/event_property_bundle_import.md +2 -6
  156. package/skills/ae-analysis/references/event_relation_update.md +0 -1
  157. package/skills/ae-analysis/references/event_update.md +0 -1
  158. package/skills/ae-analysis/references/exchange_config_update.md +0 -1
  159. package/skills/ae-analysis/references/exchange_rate_refresh.md +0 -1
  160. package/skills/ae-analysis/references/exchange_rule_list.md +0 -1
  161. package/skills/ae-analysis/references/exchange_rule_update.md +0 -1
  162. package/skills/ae-analysis/references/exchange_rule_validate.md +0 -1
  163. package/skills/ae-analysis/references/governance_recommendation_decisions.md +23 -0
  164. package/skills/ae-analysis/references/governance_recommendation_export.md +108 -0
  165. package/skills/ae-analysis/references/governance_recommendation_submit.md +41 -0
  166. package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +4 -4
  167. package/skills/ae-analysis/references/history_tag_data_export.md +3 -3
  168. package/skills/ae-analysis/references/ingest_error_list.md +7 -9
  169. package/skills/ae-analysis/references/ingest_summary.md +6 -8
  170. package/skills/ae-analysis/references/live_data_export.md +10 -10
  171. package/skills/ae-analysis/references/live_data_list.md +7 -9
  172. package/skills/ae-analysis/references/metadata_resolution.md +78 -0
  173. package/skills/ae-analysis/references/metric_export.md +0 -1
  174. package/skills/ae-analysis/references/metric_get.md +0 -1
  175. package/skills/ae-analysis/references/metric_list.md +4 -5
  176. package/skills/ae-analysis/references/metric_update.md +0 -1
  177. package/skills/ae-analysis/references/operation_record_export.md +4 -5
  178. package/skills/ae-analysis/references/operation_record_list.md +4 -5
  179. package/skills/ae-analysis/references/personal_semantic_preference_list.md +18 -1
  180. package/skills/ae-analysis/references/plan_change_log_export.md +10 -10
  181. package/skills/ae-analysis/references/plan_change_log_list.md +4 -6
  182. package/skills/ae-analysis/references/plan_delete_items.md +2 -4
  183. package/skills/ae-analysis/references/plan_export.md +9 -9
  184. package/skills/ae-analysis/references/plan_generate.md +2 -4
  185. package/skills/ae-analysis/references/plan_get.md +4 -6
  186. package/skills/ae-analysis/references/plan_import_excel.md +6 -8
  187. package/skills/ae-analysis/references/plan_save_items.md +2 -4
  188. package/skills/ae-analysis/references/plan_sync_from_meta.md +4 -6
  189. package/skills/ae-analysis/references/project_access_detail_get.md +0 -1
  190. package/skills/ae-analysis/references/project_data_power_get.md +0 -1
  191. package/skills/ae-analysis/references/project_data_power_list.md +0 -1
  192. package/skills/ae-analysis/references/project_data_power_upsert.md +0 -1
  193. package/skills/ae-analysis/references/project_entity_create.md +0 -1
  194. package/skills/ae-analysis/references/project_entity_event_list.md +0 -1
  195. package/skills/ae-analysis/references/project_entity_get.md +0 -1
  196. package/skills/ae-analysis/references/project_entity_list.md +0 -1
  197. package/skills/ae-analysis/references/project_entity_update.md +0 -1
  198. package/skills/ae-analysis/references/project_function_list.md +0 -1
  199. package/skills/ae-analysis/references/project_info_get.md +0 -1
  200. package/skills/ae-analysis/references/project_info_list.md +0 -1
  201. package/skills/ae-analysis/references/project_info_update.md +0 -1
  202. package/skills/ae-analysis/references/project_mark_time_create.md +0 -1
  203. package/skills/ae-analysis/references/project_mark_time_list.md +0 -1
  204. package/skills/ae-analysis/references/project_mark_time_update.md +0 -1
  205. package/skills/ae-analysis/references/project_member_add.md +6 -5
  206. package/skills/ae-analysis/references/project_member_batch_update.md +0 -1
  207. package/skills/ae-analysis/references/project_member_candidate_list.md +4 -3
  208. package/skills/ae-analysis/references/project_member_handover_run.md +2 -3
  209. package/skills/ae-analysis/references/project_member_list.md +0 -1
  210. package/skills/ae-analysis/references/project_member_receiver_list.md +0 -1
  211. package/skills/ae-analysis/references/project_member_update.md +0 -1
  212. package/skills/ae-analysis/references/project_owner_update.md +0 -1
  213. package/skills/ae-analysis/references/project_permission_binding_list.md +0 -1
  214. package/skills/ae-analysis/references/project_role_function_list.md +0 -1
  215. package/skills/ae-analysis/references/project_role_get.md +0 -1
  216. package/skills/ae-analysis/references/project_role_list.md +0 -1
  217. package/skills/ae-analysis/references/project_role_upsert.md +32 -2
  218. package/skills/ae-analysis/references/project_role_user_list.md +0 -1
  219. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +214 -0
  220. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +93 -0
  221. package/skills/ae-analysis/references/project_timezone_get.md +0 -1
  222. package/skills/ae-analysis/references/project_timezone_overview.md +0 -1
  223. package/skills/ae-analysis/references/project_timezone_update.md +0 -1
  224. package/skills/ae-analysis/references/project_user_id_items_update.md +0 -1
  225. package/skills/ae-analysis/references/property_changelog_list.md +0 -1
  226. package/skills/ae-analysis/references/property_create.md +0 -1
  227. package/skills/ae-analysis/references/property_export.md +0 -1
  228. package/skills/ae-analysis/references/property_get.md +0 -1
  229. package/skills/ae-analysis/references/property_hide_update.md +0 -1
  230. package/skills/ae-analysis/references/property_influence_list.md +0 -1
  231. package/skills/ae-analysis/references/property_list.md +3 -4
  232. package/skills/ae-analysis/references/property_related_events.md +0 -1
  233. package/skills/ae-analysis/references/property_relation_update.md +0 -1
  234. package/skills/ae-analysis/references/property_update.md +0 -1
  235. package/skills/ae-analysis/references/report_create.md +4 -2
  236. package/skills/ae-analysis/references/report_data_export.md +11 -9
  237. package/skills/ae-analysis/references/report_data_run.md +14 -7
  238. package/skills/ae-analysis/references/report_get.md +5 -3
  239. package/skills/ae-analysis/references/report_list.md +2 -0
  240. package/skills/ae-analysis/references/report_update.md +5 -3
  241. package/skills/ae-analysis/references/rule_create.md +5 -6
  242. package/skills/ae-analysis/references/rule_delete.md +5 -5
  243. package/skills/ae-analysis/references/rule_list.md +3 -4
  244. package/skills/ae-analysis/references/rule_schema.md +3 -4
  245. package/skills/ae-analysis/references/rule_update.md +5 -6
  246. package/skills/ae-analysis/references/sdk_sample_generate.md +2 -4
  247. package/skills/ae-analysis/references/sql_table_columns.md +1 -1
  248. package/skills/ae-analysis/references/super_metadata_batch_create.md +1 -1
  249. package/skills/ae-analysis/references/super_metadata_batch_edit.md +1 -1
  250. package/skills/ae-analysis/references/system_member_add.md +1 -2
  251. package/skills/ae-analysis/references/system_member_status_update.md +1 -1
  252. package/skills/ae-analysis/references/system_ops_alert_contact_list.md +1 -1
  253. package/skills/ae-analysis/references/system_ops_alert_contact_test.md +0 -1
  254. package/skills/ae-analysis/references/system_query_monitor_overview.md +3 -3
  255. package/skills/ae-analysis/references/system_query_task_export.md +4 -14
  256. package/skills/ae-analysis/references/system_query_task_get.md +1 -1
  257. package/skills/ae-analysis/references/system_query_task_list.md +5 -6
  258. package/skills/ae-analysis/references/system_receiver_address_upsert.md +3 -3
  259. package/skills/ae-analysis/references/system_receiver_detection_get.md +1 -1
  260. package/skills/ae-analysis/references/system_third_party_login_disable.md +1 -1
  261. package/skills/ae-analysis/references/system_usage_trend_export.md +3 -12
  262. package/skills/ae-analysis/references/user_cluster_list.md +1 -1
  263. package/skills/ae-analysis/references/user_cluster_member_export.md +4 -4
  264. package/skills/ae-analysis/references/user_tag_create.md +23 -1
  265. package/skills/ae-analysis/references/user_tag_list.md +1 -1
  266. package/skills/ae-analysis/references/user_tag_member_export.md +4 -4
  267. package/skills/ae-analysis/references/user_tag_models.md +9 -1
  268. package/skills/ae-analysis/references/user_tag_update.md +14 -2
  269. package/skills/ae-analysis/references/virtual_event_create.md +10 -5
  270. package/skills/ae-analysis/references/virtual_event_get.md +0 -1
  271. package/skills/ae-analysis/references/virtual_property_create.md +0 -1
  272. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +0 -1
  273. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +1054 -0
  274. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +112 -0
  275. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +30 -0
  276. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +2735 -0
  277. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +376 -0
  278. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/plan-kb-source-sync.mjs +264 -0
  279. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/precompiled-source.mjs +49 -0
  280. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/upload-kb-sources-concurrently.mjs +200 -0
  281. package/skills/ae-analysis/scripts/read_results.py +197 -0
  282. package/skills/ae-analysis-global/SKILL.md +1 -1
  283. package/skills/ae-capability/SKILL.md +1 -1
  284. package/skills/ae-community/SKILL.md +1 -1
  285. package/skills/ae-current-context/SKILL.md +53 -0
  286. package/skills/ae-data-integration/SKILL.md +6 -4
  287. package/skills/ae-data-integration/references/dimension-routing.md +36 -0
  288. package/skills/ae-data-integration/references/lark-bitable-source.md +288 -0
  289. package/skills/ae-data-integration/references/lark-sheet-source.md +130 -0
  290. package/skills/ae-data-integration/references/local-analysis.md +2 -0
  291. package/skills/ae-data-integration/references/manual-export-source.md +83 -0
  292. package/skills/ae-data-integration/references/reuse.md +2 -0
  293. package/skills/ae-data-integration/references/sink-upload.md +32 -0
  294. package/skills/ae-data-integration/references/source-inspect.md +1 -1
  295. package/skills/ae-data-integration/references/tracking-plan.md +5 -2
  296. package/skills/ae-data-integration/references/transform.md +1 -1
  297. package/skills/ae-data-integration/references/ue-mapping.md +7 -4
  298. package/skills/ae-data-integration/references/ue-routing.md +17 -1
  299. package/skills/ae-data-integration-helper/SKILL.md +5 -5
  300. package/skills/ae-data-integration-helper/references/android_sdk_faq.md +3 -3
  301. package/skills/ae-data-integration-helper/references/c_sdk_faq.md +3 -3
  302. package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +1 -1
  303. package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +3 -3
  304. package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +1 -1
  305. package/skills/ae-data-integration-helper/references/java_sdk_faq.md +3 -3
  306. package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +1 -1
  307. package/skills/ae-data-integration-helper/references/logbus2_guide.md +1 -1
  308. package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +2 -2
  309. package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +2 -2
  310. package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +1 -1
  311. package/skills/ae-data-integration-helper/references/python_sdk_faq.md +2 -2
  312. package/skills/ae-data-integration-helper/references/restful_api_notes.md +2 -2
  313. package/skills/ae-data-integration-helper/references/sdk_log_guide.md +3 -3
  314. package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +11 -11
  315. package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +1 -1
  316. package/skills/ae-dataops/SKILL.md +1 -1
  317. package/skills/ae-engage/SKILL.md +4 -3
  318. package/skills/ae-engage/references/build-task-save-guide.md +3 -0
  319. package/skills/ae-engage/references/flow-metric-update.md +115 -1
  320. package/skills/ae-engage/references/save-flow.md +3 -0
  321. package/skills/ae-engage/references/save-task.md +21 -0
  322. package/skills/ae-engage/references/task-metric-update.md +151 -0
  323. package/skills/ae-experiment/SKILL.md +14 -7
  324. package/skills/ae-experiment/references/save_submit_external_experiment.md +52 -0
  325. package/skills/ae-experiment-design/SKILL.md +3 -3
  326. package/skills/ae-experiment-design/references/platform-operations.md +1 -1
  327. package/skills/ae-experiment-insight/SKILL.md +2 -2
  328. package/skills/ae-experiment-insight/references/platform-operations.md +1 -1
  329. package/skills/ae-generate-tracking-code/SKILL.md +2 -1
  330. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  331. package/skills/ae-generate-tracking-code/references/datax-config.md +1 -1
  332. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  333. package/skills/ae-generate-tracking-code/references/modes.md +1 -1
  334. package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +5 -5
  335. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +3 -3
  336. package/skills/ae-generate-tracking-plan/SKILL.md +27 -15
  337. package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +1 -1
  338. package/skills/ae-generate-tracking-plan/references/te-api.md +1 -0
  339. package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +3 -2
  340. package/skills/ae-kb/SKILL.md +147 -37
  341. package/skills/ae-kb/references/analysis-workflow.md +292 -0
  342. package/skills/ae-kb/references/query-workflow.md +59 -29
  343. package/skills/ae-kb/references/source-mutations.md +95 -0
  344. package/skills/ae-kb/references/versions.md +46 -0
  345. package/skills/ae-kb-discovery/SKILL.md +5 -1
  346. package/skills/ae-metadata/SKILL.md +1 -1
  347. package/skills/ae-migrate-tracking-code/SKILL.md +195 -0
  348. package/skills/ae-migrate-tracking-code/references/ae-preset-properties.md +76 -0
  349. package/skills/ae-migrate-tracking-code/references/ir.md +167 -0
  350. package/skills/ae-migrate-tracking-code/references/mapping-framework.md +112 -0
  351. package/skills/ae-migrate-tracking-code/references/providers/README.md +58 -0
  352. package/skills/ae-migrate-tracking-code/references/providers/amplitude.md +208 -0
  353. package/skills/ae-migrate-tracking-code/references/providers/firebase.md +160 -0
  354. package/skills/ae-migrate-tracking-code/references/providers/ga4.md +92 -0
  355. package/skills/ae-migrate-tracking-code/references/providers/mixpanel.md +150 -0
  356. package/skills/ae-migrate-tracking-code/references/providers/sensors-data.md +146 -0
  357. package/skills/ae-project-semantic/SKILL.md +1 -1
  358. package/skills/ae-system/SKILL.md +5 -5
  359. package/skills/ae-team/SKILL.md +2 -2
  360. package/skills/ae-use-agent/SKILL.md +42 -0
  361. package/skills/ae-use-agent/references/local-agent.md +114 -0
  362. package/dist/auth-UMJAA72O.js +0 -15
  363. package/dist/chunk-533JK3YX.js +0 -72
  364. package/dist/chunk-DKEXH6Q5.js +0 -72
  365. package/dist/chunk-O6K2ODUE.js +0 -318
  366. package/dist/chunk-RWXIXOZG.js +0 -326
  367. package/dist/client-N7NGZUNI.js +0 -204
  368. package/dist/te-kb-BUD6N3NI.js +0 -1222
  369. package/skills/ae-agent/references/auto-provision-mcp-credentials.md +0 -57
  370. 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
+ Read the needed common building blocks and open the selected model file directly from the registry. 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,456 +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", "display_name": "Purchase revenue", "aggregation": "sum", "property": "amount"}
128
- ]
129
- }
130
- ```
131
-
132
- Set optional `display_name` on an event metric when the report should show a business-facing metric name. It applies to regular event metrics, saved metrics, and formula metrics. Omit it to use the event name or the default formula-metric label.
133
-
134
- Formula metric example:
135
-
136
- ```json
137
- {
138
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
139
- "metrics": [
140
- {
141
- "display_name": "Revenue per user",
142
- "formula": "revenue / users",
143
- "dependencies": [
144
- {"alias": "revenue", "event": "purchase", "aggregation": "sum", "property": "amount"},
145
- {"alias": "users", "event": "login", "aggregation": "user_count"}
146
- ]
147
- }
148
- ]
149
- }
150
- ```
151
-
152
- Formula rules:
153
-
154
- - Write **bare aliases** only in `formula` (e.g. `"revenue / users"` or `"pay / dau"`).
155
- - **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`.
156
- - 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.
157
-
158
- ### `retention`
159
-
160
- Use for retained/lost users from an initial event to a return event.
161
-
162
- ```json
163
- {
164
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
165
- "time_particle_size": "day",
166
- "retention": {
167
- "initial_event": "register",
168
- "return_event": "login",
169
- "stat_type": "retention",
170
- "unit_num": 1,
171
- "rtn_rate_or_num": "rate",
172
- "groups": [
173
- {"field": {"name": "channel", "type": "user_property"}}
174
- ]
175
- }
176
- }
177
- ```
178
-
179
- Use `stat_type=lost` for lost-user analysis. Use `rtn_rate_or_num=count` when the user asks for user counts instead of rates.
180
-
181
- 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`.
182
-
183
- ```json
184
- {
185
- "time_range": {"mode": "custom", "start_time": "2026-08-18 00:00:00", "end_time": "2026-08-18 23:59:59"},
186
- "time_particle_size": "day",
187
- "retention": {
188
- "initial_event": "register",
189
- "initial_filters": [
190
- {"event_property_name": "case_id", "operator": "eq", "values": ["retention_test"]}
191
- ],
192
- "initial_filter_relation": "and",
193
- "return_event": "login",
194
- "return_filters": [
195
- {"event_property_name": "case_id", "operator": "eq", "values": ["retention_test"]}
196
- ],
197
- "return_filter_relation": "and",
198
- "stat_type": "retention",
199
- "unit_num": 1,
200
- "rtn_rate_or_num": "rate",
201
- "groups": [
202
- {"field": {"name": "channel", "type": "event_property"}}
203
- ]
204
- }
205
- }
206
- ```
207
-
208
- ### `funnel`
209
-
210
- Use for ordered conversion steps with a conversion window.
211
-
212
- ```json
213
- {
214
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
215
- "time_particle_size": "day",
216
- "funnel": {
217
- "steps": [
218
- {"event": "view_product"},
219
- {"event": "add_to_cart"},
220
- {"event": "purchase"}
221
- ],
222
- "window": {"value": 3, "unit": "day"},
223
- "groups": [
224
- {"field": {"name": "channel", "type": "user_property"}}
225
- ]
226
- }
227
- }
228
- ```
229
-
230
- If the user asks to match users across events by a shared event property, set `relation_event_property_name`.
231
-
232
- ### `distribution`
233
-
234
- Use for user distribution buckets for an event or property metric.
235
-
236
- ```json
237
- {
238
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
239
- "distribution_metrics": [
240
- {
241
- "event": "purchase",
242
- "aggregation": "sum",
243
- "property": "amount",
244
- "filters": [
245
- {
246
- "field": {"name": "vip_users", "type": "cluster"},
247
- "operator": "in_cluster"
248
- }
249
- ],
250
- "relation": "and",
251
- "interval_type": "user_defined",
252
- "quota_interval_arr": [100, 1000, 10000]
253
- }
254
- ],
255
- "groups": [
256
- {"field": {"name": "country", "type": "user_property"}}
257
- ]
258
- }
259
- ```
260
-
261
- Use `interval_type=def` for automatic buckets, `user_defined` for explicit numeric boundaries, and `discrete` to group by raw values.
262
-
263
- Distribution filters must be attached to the corresponding `distribution_metrics[].filters`.
264
- Do not use top-level `filters` or `relation` in a distribution definition.
265
- 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.
266
-
267
- ### `attribution`
268
-
269
- Use to attribute target conversions to touchpoint/source events.
270
-
271
- ```json
272
- {
273
- "time_range": {"mode": "previous", "unit": "day", "value": 14},
274
- "attribution": {
275
- "target_event": "purchase",
276
- "target_aggregation": "total_count",
277
- "attribution_events": [
278
- {"event": "ad_click"},
279
- {"event": "campaign_view"}
280
- ],
281
- "attribution_model": "first",
282
- "window": {"value": 7, "unit": "day"},
283
- "direct_conversion": true
284
- }
285
- }
286
- ```
287
-
288
- `attribution_model` values: `first`, `last`, or `linear`.
289
- The target aggregation is intentionally narrow: use `total_count` without a property, or `sum` with a numeric `target_property`. Do not use `user_count`.
290
-
291
- ### `interval`
292
-
293
- Use for elapsed-time analysis between an initial event and a return event.
294
-
295
- ```json
296
- {
297
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
298
- "time_particle_size": "day",
299
- "interval": {
300
- "initial_event": "register",
301
- "return_event": "first_purchase",
302
- "window": {"value": 7, "unit": "day"},
303
- "groups": [
304
- {"field": {"name": "channel", "type": "user_property"}}
305
- ]
306
- }
307
- }
308
- ```
309
-
310
- ### `path`
82
+ Tag and cluster result-date policy:
311
83
 
312
- Use for behavior paths before or after a source event.
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`.
313
88
 
314
- ```json
315
- {
316
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
317
- "filters": [
318
- {"field": {"name": "account_id", "type": "user_property"}, "operator": "exists"}
319
- ],
320
- "relation": "and",
321
- "path": {
322
- "source_event": "purchase",
323
- "included_events": ["view_product", "add_to_cart", "purchase"],
324
- "session_interval": 30,
325
- "session_unit": "minute",
326
- "direction": "forward"
327
- }
328
- }
329
- ```
330
-
331
- `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`.
332
-
333
- 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`.
334
-
335
- 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.
336
-
337
- Path session timeout accepts only these unit/value ranges:
338
-
339
- - `second`: `1..999`
340
- - `minute`: `1..999`
341
- - `hour`: `1..24`
342
-
343
- Do not use `day`. Express one day as `session_interval=24` with `session_unit=hour`.
344
-
345
- 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.
346
-
347
- 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.
348
-
349
- ### `prop_analysis`
350
-
351
- Use for user-property metrics, grouping, filters, and user-crowd comparison.
352
-
353
- ```json
354
- {
355
- "prop_analysis": {
356
- "metric": {"aggregation": "user_count"},
357
- "groups": [
358
- {"field": {"name": "country", "type": "user_property"}}
359
- ],
360
- "filters": [
361
- {"field": {"name": "vip_level", "type": "user_property"}, "operator": "gte", "values": ["3"]}
362
- ],
363
- "user_crowds": [
364
- {
365
- "name": "US users",
366
- "filters": [
367
- {"field": {"name": "country", "type": "user_property"}, "operator": "eq", "values": ["US"]}
368
- ]
369
- }
370
- ]
371
- }
372
- }
373
- ```
374
-
375
- For property aggregations, pass the user property:
376
-
377
- ```json
378
- {"prop_analysis":{"metric":{"aggregation":"distinct_count","property":"account_id"}}}
379
- ```
380
-
381
- ### `sql`
382
-
383
- Use for SQL analysis. The AI-facing model has only:
384
-
385
- - `sql`: required SQL text.
386
- - `params`: optional dynamic parameter values and definitions, required only when SQL contains `${...}` placeholders.
387
-
388
- Simple SQL:
389
-
390
- ```json
391
- {"sql":"SELECT 1 AS value"}
392
- ```
393
-
394
- Trino special identifiers must use double-quoted identifier delimiters:
395
-
396
- ```json
397
- {"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"}
398
- ```
399
-
400
- Reserved words used as identifiers must also be double quoted, for example `SELECT "end" FROM ...`.
401
-
402
- 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.
403
-
404
- 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.
405
-
406
- Typed condition-fragment placeholder:
407
-
408
- ```json
409
- {
410
- "sql": "select * from events where country ${Text:country}",
411
- "params": [
412
- {"name": "country", "type": "text", "operator": "eq", "value": "US"}
413
- ]
414
- }
415
- ```
416
-
417
- Raw variable placeholder:
418
-
419
- ```json
420
- {
421
- "sql": "select * from events where country = ${country}",
422
- "params": [
423
- {"name": "country", "type": "variable", "value": "'US'"}
424
- ]
425
- }
426
- ```
427
-
428
- Time placeholder:
429
-
430
- ```json
431
- {
432
- "sql": "select * from events where ${PartDate:ds}",
433
- "params": [
434
- {"name": "ds", "type": "part_date", "recent_day": "1-7", "use_timezone": true}
435
- ]
436
- }
437
- ```
438
-
439
- Rules:
440
-
441
- - If SQL has no `${...}` placeholder, omit `params`.
442
- - If SQL has placeholders, every placeholder must have one matching item in `params`.
443
- - 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.
444
- - 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.
445
- - `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`.
446
- - Do not pass SQL-IDE internals such as `sqlVoParams`, `sqlViewParams`, `paramType`, `paramName`, `paramExpress`, `commonFilter`, or `requiredEvents`.
447
- - 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.
448
- - 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.
449
- - 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.
450
- - 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.
451
- - `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.
452
- - 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`.
453
-
454
- ### `heat_map`
455
-
456
- Use for two-dimensional heat map analysis based on numeric event coordinate properties.
457
-
458
- ```json
459
- {
460
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
461
- "heat_map": {
462
- "hot_event": "click",
463
- "hot_aggregation": "total_count",
464
- "x_prop": "screen_x",
465
- "y_prop": "screen_y",
466
- "filters": [
467
- {"field": {"name": "page", "type": "event_property"}, "operator": "eq", "values": ["home"]}
468
- ]
469
- }
470
- }
471
- ```
472
-
473
- For property metrics, set `hot_property` and use a property aggregation such as `sum` or `avg`.
474
-
475
- ### `rank_list`
476
-
477
- Use for ranking users/entities by an event metric.
89
+ For example, the following filter evaluates `tag_pay_level != 非R` against each analysis day's tag result:
478
90
 
479
91
  ```json
480
92
  {
481
- "time_range": {"mode": "previous", "unit": "day", "value": 7},
482
- "rank_list": {
483
- "rank_dimension": {"field": {"name": "#account_id", "type": "user_property"}},
484
- "rank_event": "purchase",
485
- "rank_aggregation": "sum",
486
- "rank_property": "amount",
487
- "rank_type": "dense_rank",
488
- "order_by": "DESC"
489
- }
93
+ "field": {"name": "tag_pay_level", "type": "tag"},
94
+ "operator": "neq",
95
+ "values": ["非R"],
96
+ "cluster_date_policy": "AUTO"
490
97
  }
491
98
  ```
492
99
 
493
- `rank_type` values: `rank`, `dense_rank`, or `row_rank`.
494
-
495
- ### `revenue`
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.
496
101
 
497
- Use for revenue cohort metrics such as LTV, ROI, revenue, and cost.
102
+ Group:
498
103
 
499
104
  ```json
500
- {
501
- "time_range": {"mode": "previous", "unit": "day", "value": 30},
502
- "initial_event": {"event": "register"},
503
- "pay_event": {"event": "purchase"},
504
- "revenue_metric": {"event": "purchase", "aggregation": "sum", "property": "amount"},
505
- "cost_metric": {"event": "ad_cost", "aggregation": "sum", "property": "cost"},
506
- "observation_days": 14,
507
- "selected_metrics": ["payAmount", "ltv", "roi"],
508
- "groups": [
509
- {"field": {"name": "channel", "type": "user_property"}}
510
- ]
511
- }
105
+ {"field":{"name":"country","type":"user_property"}}
512
106
  ```
513
107
 
514
- `cost_metric` is optional when the user does not ask for cost/ROI.
515
- `selected_metrics` supports `payUsers`, `payAmount`, `cumPayUsers`, `cumPayAmount`, `payRate`, `cumPayRate`, `ltv`, `ltvMultiple`, and `roi`.
516
-
517
- ### `tag` report write only
518
-
519
- Use only with `analysis report create/update`; do not use with `analysis adhoc run/export`.
520
-
521
- `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.
522
109
 
523
- ```json
524
- {
525
- "tag": {
526
- "tag_name": "vip_users",
527
- "time_range": {"mode": "recent", "unit": "day", "value": 7},
528
- "time_particle_size": "day"
529
- }
530
- }
531
- ```
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.
532
111
 
533
- 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
 
@@ -1,25 +1,23 @@
1
1
  # analysis alert get
2
2
 
3
- Use when get one 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 get one alert.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert get [options]
8
+ ae-cli analysis alert get --project-id <project_id> --alert-id <alert_id>
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert.get`
14
12
 
15
13
  Input sends `project_id` and `alert_id`. 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 |
21
+ | `--project-id` | Numeric project ID. | Yes |
22
+ | `--alert-id` | Alert task ID. | Yes |
25
23