@thinkingai/ae-cli 6.0.30 → 6.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (397) hide show
  1. package/README.md +5 -7
  2. package/README.zh.md +5 -7
  3. package/dist/{auth-7TQRGLBC.js → auth-7H3HAAJ3.js} +10 -10
  4. package/dist/{capability-KVA55RMK.js → capability-SEH3JWLN.js} +49 -10
  5. package/dist/{capability-LKHLZQPD.js → capability-SQ2IWKP3.js} +49 -10
  6. package/dist/{chunk-GWZ5MYWE.js → chunk-6LEYLOV3.js} +25 -4
  7. package/dist/{chunk-THBBNYXI.js → chunk-DYOS6YY7.js} +100 -62
  8. package/dist/{chunk-CWZUGF2J.js → chunk-HL2AJQ4Q.js} +15 -0
  9. package/dist/{chunk-OJR23CIK.js → chunk-I4A62X3N.js} +100 -61
  10. package/dist/chunk-N2QORU5D.js +68 -0
  11. package/dist/{chunk-7QQ4233A.js → chunk-PKRD2IEM.js} +25 -4
  12. package/dist/chunk-TKQJQXWT.js +68 -0
  13. package/dist/{chunk-ZAOL36CG.js → chunk-TNW2CI4W.js} +46 -30
  14. package/dist/{config-ZVPARN4R.js → config-7UZWDE74.js} +25 -25
  15. package/dist/index.js +143 -46
  16. package/dist/{metadata-6CCFV4K5.js → metadata-W6JFFMBA.js} +6 -43
  17. package/dist/{metadata-PDOIWH5O.js → metadata-X62TKIVK.js} +6 -43
  18. package/dist/{raw-OHSUK42D.js → raw-CN542NGT.js} +8 -6
  19. package/dist/{sync-ULT5SECP.js → sync-ERNHDPB5.js} +1 -1
  20. package/dist/{te-agent-FAIBM3SA.js → te-agent-FCCWUDTJ.js} +1 -1
  21. package/dist/te-analysis-NJGNWZFC.js +4530 -0
  22. package/dist/te-analysis-YGV5V5EX.js +4530 -0
  23. package/dist/{te-common-SDB3O2QG.js → te-common-5NJLF3XG.js} +1 -1
  24. package/dist/{te-common-CFGQXTFV.js → te-common-7VTJZPII.js} +1 -1
  25. package/dist/{te-community-6A7LKYUH.js → te-community-PEZ2VEF7.js} +1 -1
  26. package/dist/{te-community-GMWFGILT.js → te-community-TSKJ652U.js} +1 -1
  27. package/dist/{te-dataops-Z53CTG2U.js → te-dataops-F36T656A.js} +32 -12
  28. package/dist/{te-dataops-6LIPYNGH.js → te-dataops-ZNJBQ6VT.js} +33 -12
  29. package/dist/{te-engage-M7JQSJDP.js → te-engage-BUWVSSSK.js} +398 -11
  30. package/dist/{te-engage-545HJL6J.js → te-engage-EPE3QKDE.js} +398 -11
  31. package/dist/{te-meta-FADFLTDM.js → te-meta-MAAUHFQO.js} +9 -9
  32. package/dist/{te-meta-PKT27OTN.js → te-meta-VKWNAWO4.js} +9 -9
  33. package/dist/{te-team-RG75PR5D.js → te-team-OKCOX7OE.js} +5 -5
  34. package/package.json +15 -7
  35. package/skills/ae-agent/SKILL.md +6 -8
  36. package/skills/ae-agent/references/accept-skill-share.md +2 -2
  37. package/skills/ae-agent/references/add-attachment.md +3 -3
  38. package/skills/ae-agent/references/add-mcp.md +2 -3
  39. package/skills/ae-agent/references/add-model.md +3 -5
  40. package/skills/ae-agent/references/add-skill.md +2 -3
  41. package/skills/ae-agent/references/approve-skill.md +2 -2
  42. package/skills/ae-agent/references/auto-provision-mcp-credentials.md +3 -3
  43. package/skills/ae-agent/references/cancel-skill-submission.md +2 -2
  44. package/skills/ae-agent/references/copy-skill.md +3 -3
  45. package/skills/ae-agent/references/create-agent.md +3 -4
  46. package/skills/ae-agent/references/create-automation.md +5 -9
  47. package/skills/ae-agent/references/del-agent.md +3 -2
  48. package/skills/ae-agent/references/del-attachment.md +3 -2
  49. package/skills/ae-agent/references/del-mcp.md +3 -2
  50. package/skills/ae-agent/references/del-model.md +3 -2
  51. package/skills/ae-agent/references/del-skill-asset.md +3 -3
  52. package/skills/ae-agent/references/del-skill-reference.md +3 -3
  53. package/skills/ae-agent/references/del-skill-script.md +3 -3
  54. package/skills/ae-agent/references/del-skill.md +3 -2
  55. package/skills/ae-agent/references/edit-skill.md +4 -4
  56. package/skills/ae-agent/references/mcp-auth-disconnect.md +2 -2
  57. package/skills/ae-agent/references/mcp-auth-start.md +3 -3
  58. package/skills/ae-agent/references/reject-skill-share.md +2 -2
  59. package/skills/ae-agent/references/reject-skill.md +2 -2
  60. package/skills/ae-agent/references/rescan-skills.md +2 -2
  61. package/skills/ae-agent/references/set-mcp-credential.md +3 -3
  62. package/skills/ae-agent/references/set-mcp-meta.md +2 -2
  63. package/skills/ae-agent/references/set-skill-meta.md +2 -2
  64. package/skills/ae-agent/references/share-skill.md +3 -3
  65. package/skills/ae-agent/references/submit-skill.md +3 -3
  66. package/skills/ae-agent/references/toggle-mcp.md +3 -3
  67. package/skills/ae-agent/references/toggle-model.md +3 -3
  68. package/skills/ae-agent/references/toggle-skill.md +3 -3
  69. package/skills/ae-agent/references/update-agent.md +2 -2
  70. package/skills/ae-agent/references/update-automation.md +6 -8
  71. package/skills/ae-agent/references/update-mcp.md +4 -4
  72. package/skills/ae-agent/references/update-model.md +2 -3
  73. package/skills/ae-agent/references/upload-skill-asset.md +3 -3
  74. package/skills/ae-agent/references/upload-skill-reference.md +3 -3
  75. package/skills/ae-agent/references/upload-skill-script.md +3 -3
  76. package/skills/ae-agent/references/upload-skill.md +6 -7
  77. package/skills/ae-analysis/SKILL.md +105 -512
  78. package/skills/ae-analysis/references/adhoc_export.md +71 -0
  79. package/skills/ae-analysis/references/adhoc_run.md +58 -0
  80. package/skills/ae-analysis/references/ai_models.md +459 -0
  81. package/skills/ae-analysis/references/analysis_data_retrieval.md +101 -0
  82. package/skills/ae-analysis/references/analysis_gateway_assets.md +72 -12
  83. package/skills/ae-analysis/references/analysis_interpretation.md +38 -0
  84. package/skills/ae-analysis/references/artifact_download.md +13 -7
  85. package/skills/ae-analysis/references/asset_abnormal_get.md +5 -5
  86. package/skills/ae-analysis/references/asset_abnormal_list.md +5 -5
  87. package/skills/ae-analysis/references/asset_authentication_list.md +5 -5
  88. package/skills/ae-analysis/references/asset_authentication_update.md +6 -6
  89. package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +26 -0
  90. package/skills/ae-analysis/references/asset_batch_delete.md +26 -0
  91. package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +26 -0
  92. package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +26 -0
  93. package/skills/ae-analysis/references/asset_batch_handover.md +26 -0
  94. package/skills/ae-analysis/references/asset_batch_info_export.md +25 -0
  95. package/skills/ae-analysis/references/asset_batch_sql_export.md +25 -0
  96. package/skills/ae-analysis/references/asset_dependency_list.md +30 -0
  97. package/skills/ae-analysis/references/asset_export.md +30 -0
  98. package/skills/ae-analysis/references/asset_impact_list.md +30 -0
  99. package/skills/ae-analysis/references/asset_lineage_get.md +25 -0
  100. package/skills/ae-analysis/references/asset_list.md +30 -0
  101. package/skills/ae-analysis/references/asset_query_history_list.md +30 -0
  102. package/skills/ae-analysis/references/asset_recent_list.md +4 -4
  103. package/skills/ae-analysis/references/asset_search.md +4 -4
  104. package/skills/ae-analysis/references/asset_url_get.md +28 -0
  105. package/skills/ae-analysis/references/audience_models.md +42 -0
  106. package/skills/ae-analysis/references/batch_create_metadata.md +5 -1
  107. package/skills/ae-analysis/references/batch_edit_metadata.md +4 -1
  108. package/skills/ae-analysis/references/bi_panel_copy.md +1 -1
  109. package/skills/ae-analysis/references/bi_panel_create.md +1 -1
  110. package/skills/ae-analysis/references/bi_panel_delete.md +2 -0
  111. package/skills/ae-analysis/references/bi_panel_list.md +4 -2
  112. package/skills/ae-analysis/references/bi_panel_page_data_export.md +8 -4
  113. package/skills/ae-analysis/references/bi_panel_page_data_run.md +7 -3
  114. package/skills/ae-analysis/references/bi_panel_share.md +1 -1
  115. package/skills/ae-analysis/references/bi_panel_update.md +1 -1
  116. package/skills/ae-analysis/references/bi_panel_version_publish.md +1 -1
  117. package/skills/ae-analysis/references/cancel_query.md +4 -4
  118. package/skills/ae-analysis/references/command_index.md +209 -0
  119. package/skills/ae-analysis/references/create_alert.md +1 -1
  120. package/skills/ae-analysis/references/create_entity.md +1 -1
  121. package/skills/ae-analysis/references/create_metric.md +11 -15
  122. package/skills/ae-analysis/references/create_project_mark_time.md +2 -1
  123. package/skills/ae-analysis/references/create_virtual_event.md +10 -14
  124. package/skills/ae-analysis/references/create_virtual_property.md +1 -1
  125. package/skills/ae-analysis/references/dashboard_copy.md +1 -1
  126. package/skills/ae-analysis/references/dashboard_create.md +1 -1
  127. package/skills/ae-analysis/references/dashboard_daily_report_send.md +1 -1
  128. package/skills/ae-analysis/references/dashboard_daily_report_update.md +1 -1
  129. package/skills/ae-analysis/references/dashboard_definition_import.md +1 -1
  130. package/skills/ae-analysis/references/dashboard_delete.md +2 -0
  131. package/skills/ae-analysis/references/dashboard_freeze.md +1 -1
  132. package/skills/ae-analysis/references/dashboard_handover.md +1 -1
  133. package/skills/ae-analysis/references/dashboard_list.md +4 -2
  134. package/skills/ae-analysis/references/dashboard_report_add.md +15 -0
  135. package/skills/ae-analysis/references/dashboard_report_data_export.md +15 -7
  136. package/skills/ae-analysis/references/dashboard_report_data_run.md +15 -7
  137. package/skills/ae-analysis/references/dashboard_share.md +11 -2
  138. package/skills/ae-analysis/references/dashboard_update.md +12 -3
  139. package/skills/ae-analysis/references/datatable_columns_get.md +2 -2
  140. package/skills/ae-analysis/references/datatable_influence_list.md +2 -2
  141. package/skills/ae-analysis/references/datatable_version_get.md +2 -2
  142. package/skills/ae-analysis/references/datatable_version_list.md +2 -2
  143. package/skills/ae-analysis/references/delete_alert.md +8 -3
  144. package/skills/ae-analysis/references/delete_metric.md +8 -3
  145. package/skills/ae-analysis/references/delete_project_mark_times.md +5 -3
  146. package/skills/ae-analysis/references/delete_track_items.md +4 -3
  147. package/skills/ae-analysis/references/drilldown_user_events_export.md +20 -0
  148. package/skills/ae-analysis/references/drilldown_user_events_run.md +34 -0
  149. package/skills/ae-analysis/references/drilldown_users_export.md +17 -0
  150. package/skills/ae-analysis/references/drilldown_users_run.md +61 -0
  151. package/skills/ae-analysis/references/entity_detail_export.md +31 -0
  152. package/skills/ae-analysis/references/entity_detail_run.md +50 -0
  153. package/skills/ae-analysis/references/entity_id_import_options.md +20 -0
  154. package/skills/ae-analysis/references/event_changelog_list.md +2 -2
  155. package/skills/ae-analysis/references/event_create.md +4 -4
  156. package/skills/ae-analysis/references/event_delete.md +5 -4
  157. package/skills/ae-analysis/references/event_detail_export.md +31 -0
  158. package/skills/ae-analysis/references/event_detail_run.md +58 -0
  159. package/skills/ae-analysis/references/event_get.md +2 -2
  160. package/skills/ae-analysis/references/event_hide_update.md +3 -3
  161. package/skills/ae-analysis/references/event_influence_list.md +2 -2
  162. package/skills/ae-analysis/references/event_list.md +2 -2
  163. package/skills/ae-analysis/references/{super_metadata_export.md → event_property_bundle_export.md} +7 -7
  164. package/skills/ae-analysis/references/event_property_bundle_import.md +25 -0
  165. package/skills/ae-analysis/references/event_relation_update.md +4 -4
  166. package/skills/ae-analysis/references/event_update.md +2 -2
  167. package/skills/ae-analysis/references/exchange_config_update.md +2 -2
  168. package/skills/ae-analysis/references/exchange_rate_refresh.md +2 -2
  169. package/skills/ae-analysis/references/exchange_rule_list.md +2 -2
  170. package/skills/ae-analysis/references/exchange_rule_update.md +4 -4
  171. package/skills/ae-analysis/references/exchange_rule_validate.md +4 -4
  172. package/skills/ae-analysis/references/favorite_add.md +1 -1
  173. package/skills/ae-analysis/references/favorite_remove.md +1 -1
  174. package/skills/ae-analysis/references/folder_create.md +2 -3
  175. package/skills/ae-analysis/references/folder_share.md +2 -3
  176. package/skills/ae-analysis/references/generate_track_program.md +2 -1
  177. package/skills/ae-analysis/references/generate_track_sdk_sample.md +2 -1
  178. package/skills/ae-analysis/references/get_alert.md +4 -0
  179. package/skills/ae-analysis/references/get_alert_definition_schema.md +1 -0
  180. package/skills/ae-analysis/references/get_metric.md +4 -4
  181. package/skills/ae-analysis/references/get_project_config.md +1 -0
  182. package/skills/ae-analysis/references/get_resource_url.md +1 -0
  183. package/skills/ae-analysis/references/get_track_program.md +3 -0
  184. package/skills/ae-analysis/references/history_tag_batch_refresh.md +19 -0
  185. package/skills/ae-analysis/references/history_tag_clear.md +13 -0
  186. package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +15 -0
  187. package/skills/ae-analysis/references/history_tag_data_drilldown_run.md +13 -0
  188. package/skills/ae-analysis/references/history_tag_data_export.md +15 -0
  189. package/skills/ae-analysis/references/history_tag_data_run.md +15 -0
  190. package/skills/ae-analysis/references/history_tag_list.md +11 -0
  191. package/skills/ae-analysis/references/history_tag_refresh.md +11 -0
  192. package/skills/ae-analysis/references/input_file_inspect.md +9 -0
  193. package/skills/ae-analysis/references/input_file_purpose_list.md +9 -0
  194. package/skills/ae-analysis/references/input_file_upload.md +11 -0
  195. package/skills/ae-analysis/references/list_alerts.md +3 -2
  196. package/skills/ae-analysis/references/list_entities.md +3 -2
  197. package/skills/ae-analysis/references/list_events.md +5 -5
  198. package/skills/ae-analysis/references/list_metrics.md +5 -5
  199. package/skills/ae-analysis/references/list_project_mark_times.md +2 -1
  200. package/skills/ae-analysis/references/list_project_users.md +1 -0
  201. package/skills/ae-analysis/references/list_properties.md +5 -5
  202. package/skills/ae-analysis/references/load_filters.md +3 -0
  203. package/skills/ae-analysis/references/metric_create.md +11 -6
  204. package/skills/ae-analysis/references/metric_delete.md +5 -4
  205. package/skills/ae-analysis/references/metric_get.md +2 -2
  206. package/skills/ae-analysis/references/metric_list.md +2 -2
  207. package/skills/ae-analysis/references/metric_update.md +12 -6
  208. package/skills/ae-analysis/references/operation_record_export.md +25 -0
  209. package/skills/ae-analysis/references/operation_record_list.md +31 -0
  210. package/skills/ae-analysis/references/project_space_create.md +2 -3
  211. package/skills/ae-analysis/references/project_space_list.md +3 -1
  212. package/skills/ae-analysis/references/project_space_share.md +2 -3
  213. package/skills/ae-analysis/references/property_changelog_list.md +2 -2
  214. package/skills/ae-analysis/references/property_create.md +4 -4
  215. package/skills/ae-analysis/references/property_delete.md +5 -4
  216. package/skills/ae-analysis/references/property_get.md +2 -2
  217. package/skills/ae-analysis/references/property_hide_update.md +3 -3
  218. package/skills/ae-analysis/references/property_influence_list.md +2 -2
  219. package/skills/ae-analysis/references/property_list.md +2 -2
  220. package/skills/ae-analysis/references/property_related_events.md +2 -2
  221. package/skills/ae-analysis/references/property_relation_update.md +4 -4
  222. package/skills/ae-analysis/references/property_update.md +2 -2
  223. package/skills/ae-analysis/references/public_link_create.md +1 -1
  224. package/skills/ae-analysis/references/public_link_delete.md +2 -0
  225. package/skills/ae-analysis/references/public_link_list.md +3 -1
  226. package/skills/ae-analysis/references/public_link_offline.md +1 -1
  227. package/skills/ae-analysis/references/public_link_update.md +1 -1
  228. package/skills/ae-analysis/references/query_cancel.md +1 -1
  229. package/skills/ae-analysis/references/query_create_result_cluster.md +47 -0
  230. package/skills/ae-analysis/references/report_abnormal_get.md +15 -0
  231. package/skills/ae-analysis/references/report_change_log_get.md +15 -0
  232. package/skills/ae-analysis/references/report_change_log_list.md +15 -0
  233. package/skills/ae-analysis/references/report_create.md +29 -0
  234. package/skills/ae-analysis/references/report_data_export.md +37 -0
  235. package/skills/ae-analysis/references/report_data_run.md +45 -0
  236. package/skills/ae-analysis/references/report_delete.md +17 -0
  237. package/skills/ae-analysis/references/report_get.md +21 -0
  238. package/skills/ae-analysis/references/report_list.md +17 -0
  239. package/skills/ae-analysis/references/report_list_export.md +15 -0
  240. package/skills/ae-analysis/references/report_update.md +22 -0
  241. package/skills/ae-analysis/references/report_version_rollback.md +15 -0
  242. package/skills/ae-analysis/references/rule_create.md +27 -0
  243. package/skills/ae-analysis/references/rule_delete.md +26 -0
  244. package/skills/ae-analysis/references/rule_list.md +24 -0
  245. package/skills/ae-analysis/references/rule_schema.md +24 -0
  246. package/skills/ae-analysis/references/rule_update.md +28 -0
  247. package/skills/ae-analysis/references/run_inspect.md +10 -4
  248. package/skills/ae-analysis/references/save_track_items.md +4 -1
  249. package/skills/ae-analysis/references/sql_table_columns.md +20 -0
  250. package/skills/ae-analysis/references/sql_table_list.md +33 -0
  251. package/skills/ae-analysis/references/update_alert.md +1 -1
  252. package/skills/ae-analysis/references/update_metric.md +11 -14
  253. package/skills/ae-analysis/references/update_project_mark_time.md +4 -3
  254. package/skills/ae-analysis/references/user_cluster_create.md +15 -0
  255. package/skills/ae-analysis/references/user_cluster_create_id.md +15 -0
  256. package/skills/ae-analysis/references/user_cluster_delete.md +13 -0
  257. package/skills/ae-analysis/references/user_cluster_get.md +11 -0
  258. package/skills/ae-analysis/references/user_cluster_list.md +15 -0
  259. package/skills/ae-analysis/references/user_cluster_member_export.md +15 -0
  260. package/skills/ae-analysis/references/user_cluster_member_list.md +19 -0
  261. package/skills/ae-analysis/references/user_cluster_models.md +87 -0
  262. package/skills/ae-analysis/references/user_cluster_refresh.md +11 -0
  263. package/skills/ae-analysis/references/user_cluster_update.md +13 -0
  264. package/skills/ae-analysis/references/user_cluster_update_id.md +15 -0
  265. package/skills/ae-analysis/references/user_tag_create.md +15 -0
  266. package/skills/ae-analysis/references/user_tag_create_id.md +15 -0
  267. package/skills/ae-analysis/references/user_tag_delete.md +13 -0
  268. package/skills/ae-analysis/references/user_tag_get.md +11 -0
  269. package/skills/ae-analysis/references/user_tag_list.md +17 -0
  270. package/skills/ae-analysis/references/user_tag_member_export.md +15 -0
  271. package/skills/ae-analysis/references/user_tag_member_list.md +19 -0
  272. package/skills/ae-analysis/references/user_tag_models.md +54 -0
  273. package/skills/ae-analysis/references/user_tag_refresh.md +11 -0
  274. package/skills/ae-analysis/references/user_tag_update.md +13 -0
  275. package/skills/ae-analysis/references/user_tag_update_id.md +15 -0
  276. package/skills/ae-analysis/references/virtual_event_create.md +4 -4
  277. package/skills/ae-analysis/references/virtual_event_delete.md +5 -4
  278. package/skills/ae-analysis/references/virtual_event_get.md +2 -2
  279. package/skills/ae-analysis/references/virtual_property_create.md +13 -6
  280. package/skills/ae-analysis/references/virtual_property_sql_rule_delete.md +5 -4
  281. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +13 -6
  282. package/skills/ae-analysis-global/SKILL.md +6 -8
  283. package/skills/ae-analysis-global/references/list_query_clusters.md +7 -6
  284. package/skills/ae-capability/SKILL.md +68 -15
  285. package/skills/ae-community/SKILL.md +2 -2
  286. package/skills/ae-dataops/SKILL.md +1 -1
  287. package/skills/ae-engage/SKILL.md +38 -10
  288. package/skills/ae-engage/references/build-task-save-guide.md +11 -9
  289. package/skills/ae-engage/references/channel_touch_limits_list.md +29 -0
  290. package/skills/ae-engage/references/group-list.md +13 -0
  291. package/skills/ae-engage/references/operation-log-query.md +11 -0
  292. package/skills/ae-engage/references/ops-delete.md +14 -0
  293. package/skills/ae-engage/references/push-record-query.md +26 -0
  294. package/skills/ae-engage/references/save-flow.md +5 -4
  295. package/skills/ae-engage/references/save-task.md +24 -20
  296. package/skills/ae-engage/references/segment-list-query.md +18 -0
  297. package/skills/ae-engage/references/task-operation-log-query.md +23 -0
  298. package/skills/ae-engage/references/version-list.md +18 -0
  299. package/skills/ae-generate-tracking-code/SKILL.md +1 -1
  300. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +2 -2
  301. package/skills/ae-generate-tracking-plan/SKILL.md +17 -12
  302. package/skills/ae-generate-tracking-plan/references/te-api.md +2 -1
  303. package/skills/ae-kb/SKILL.md +1 -1
  304. package/skills/ae-metadata/SKILL.md +9 -8
  305. package/skills/ae-metadata/references/metadata_data_table_csv_delete.md +1 -0
  306. package/skills/ae-metadata/references/metadata_data_table_csv_write.md +6 -6
  307. package/skills/ae-metadata/references/metadata_data_table_property_bindings_update.md +2 -2
  308. package/skills/ae-metadata/references/metadata_data_table_sql_delete.md +1 -0
  309. package/skills/ae-metadata/references/metadata_data_table_sql_write.md +21 -7
  310. package/skills/ae-metadata/references/metadata_property_dimension_table_bind_existing.md +3 -3
  311. package/skills/ae-metadata/references/metadata_property_dimension_table_create_and_bind_csv.md +4 -4
  312. package/skills/ae-team/SKILL.md +9 -9
  313. package/skills/ae-team/references/create.md +2 -2
  314. package/skills/ae-team/references/delete.md +3 -3
  315. package/skills/ae-team/references/run-cancel.md +3 -3
  316. package/skills/ae-team/references/run-chat.md +4 -4
  317. package/skills/ae-team/references/run-reply.md +3 -3
  318. package/skills/ae-team/references/run-start.md +4 -5
  319. package/skills/ae-team/references/run-watch.md +1 -1
  320. package/skills/ae-team/references/update.md +2 -2
  321. package/dist/chunk-P2JRP6HJ.js +0 -42
  322. package/dist/chunk-S5XN6KEX.js +0 -42
  323. package/dist/te-analysis-DDXGM7WM.js +0 -3188
  324. package/dist/te-analysis-HCDNYI7E.js +0 -3188
  325. package/dist/te-audience-ECFS4GF4.js +0 -600
  326. package/dist/te-audience-WO377T2J.js +0 -600
  327. package/skills/ae-analysis/references/build_attribution_analysis_qp.md +0 -62
  328. package/skills/ae-analysis/references/build_cluster_definition.md +0 -62
  329. package/skills/ae-analysis/references/build_distribution_analysis_qp.md +0 -67
  330. package/skills/ae-analysis/references/build_entity_details_sql.md +0 -58
  331. package/skills/ae-analysis/references/build_event_analysis_qp.md +0 -134
  332. package/skills/ae-analysis/references/build_event_details_sql.md +0 -61
  333. package/skills/ae-analysis/references/build_funnel_analysis_qp.md +0 -145
  334. package/skills/ae-analysis/references/build_heat_map_analysis_qp.md +0 -54
  335. package/skills/ae-analysis/references/build_interval_analysis_qp.md +0 -60
  336. package/skills/ae-analysis/references/build_path_analysis_qp.md +0 -53
  337. package/skills/ae-analysis/references/build_prop_analysis_qp.md +0 -124
  338. package/skills/ae-analysis/references/build_rank_list_analysis_qp.md +0 -63
  339. package/skills/ae-analysis/references/build_retention_analysis_qp.md +0 -143
  340. package/skills/ae-analysis/references/build_tag_definition.md +0 -65
  341. package/skills/ae-analysis/references/copy_dashboard.md +0 -33
  342. package/skills/ae-analysis/references/create_cluster.md +0 -69
  343. package/skills/ae-analysis/references/create_dashboard.md +0 -49
  344. package/skills/ae-analysis/references/create_id_cluster.md +0 -40
  345. package/skills/ae-analysis/references/create_id_tag.md +0 -39
  346. package/skills/ae-analysis/references/create_or_update_dashboard_note.md +0 -39
  347. package/skills/ae-analysis/references/create_public_access_link.md +0 -43
  348. package/skills/ae-analysis/references/create_report.md +0 -60
  349. package/skills/ae-analysis/references/create_result_cluster.md +0 -73
  350. package/skills/ae-analysis/references/create_space.md +0 -34
  351. package/skills/ae-analysis/references/create_tag.md +0 -61
  352. package/skills/ae-analysis/references/delete_cluster.md +0 -27
  353. package/skills/ae-analysis/references/delete_dashboard.md +0 -30
  354. package/skills/ae-analysis/references/delete_report.md +0 -27
  355. package/skills/ae-analysis/references/delete_tag.md +0 -27
  356. package/skills/ae-analysis/references/drilldown_user_events.md +0 -74
  357. package/skills/ae-analysis/references/drilldown_users.md +0 -80
  358. package/skills/ae-analysis/references/freeze_dashboards.md +0 -29
  359. package/skills/ae-analysis/references/get_analysis_query_schema.md +0 -71
  360. package/skills/ae-analysis/references/get_bi_panel_detail.md +0 -35
  361. package/skills/ae-analysis/references/get_cluster_definition_schema.md +0 -53
  362. package/skills/ae-analysis/references/get_clusters_by_name.md +0 -69
  363. package/skills/ae-analysis/references/get_filter_schema.md +0 -33
  364. package/skills/ae-analysis/references/get_groupby_schema.md +0 -33
  365. package/skills/ae-analysis/references/get_report_definition.md +0 -37
  366. package/skills/ae-analysis/references/get_table_columns.md +0 -37
  367. package/skills/ae-analysis/references/get_tag_definition_schema.md +0 -49
  368. package/skills/ae-analysis/references/get_tags_by_name.md +0 -69
  369. package/skills/ae-analysis/references/list_bi_panels.md +0 -35
  370. package/skills/ae-analysis/references/list_cluster_members.md +0 -45
  371. package/skills/ae-analysis/references/list_clusters.md +0 -46
  372. package/skills/ae-analysis/references/list_dashboards.md +0 -43
  373. package/skills/ae-analysis/references/list_public_access_links.md +0 -41
  374. package/skills/ae-analysis/references/list_reports.md +0 -43
  375. package/skills/ae-analysis/references/list_spaces.md +0 -27
  376. package/skills/ae-analysis/references/list_tag_members.md +0 -46
  377. package/skills/ae-analysis/references/list_tags.md +0 -44
  378. package/skills/ae-analysis/references/move_dashboard.md +0 -33
  379. package/skills/ae-analysis/references/query_adhoc.md +0 -141
  380. package/skills/ae-analysis/references/query_bi_panel_data.md +0 -58
  381. package/skills/ae-analysis/references/query_dashboard_detail.md +0 -35
  382. package/skills/ae-analysis/references/query_dashboard_report_data.md +0 -63
  383. package/skills/ae-analysis/references/query_entity_details.md +0 -63
  384. package/skills/ae-analysis/references/query_event_details.md +0 -66
  385. package/skills/ae-analysis/references/query_report_data.md +0 -99
  386. package/skills/ae-analysis/references/refresh_cluster.md +0 -31
  387. package/skills/ae-analysis/references/refresh_tag.md +0 -31
  388. package/skills/ae-analysis/references/super_metadata_import.md +0 -24
  389. package/skills/ae-analysis/references/update_cluster.md +0 -61
  390. package/skills/ae-analysis/references/update_dashboard.md +0 -45
  391. package/skills/ae-analysis/references/update_id_cluster.md +0 -36
  392. package/skills/ae-analysis/references/update_id_tag.md +0 -37
  393. package/skills/ae-analysis/references/update_public_access_link.md +0 -41
  394. package/skills/ae-analysis/references/update_report.md +0 -35
  395. package/skills/ae-analysis/references/update_tag.md +0 -61
  396. package/skills/ae-analysis-intent/SKILL.md +0 -132
  397. package/skills/ae-metadata/references/metadata_input_file_upload.md +0 -29
@@ -10,16 +10,17 @@ Recommended workflow:
10
10
 
11
11
  1. `ae-cli engage +channel_list --project_id <projectId>`
12
12
  2. `ae-cli engage +build_task_save_guide --project_id <projectId> --req '{...}'`
13
- 3. If the guide indicates QP-derived fields are needed, call:
13
+ 3. If the guide indicates an audience or QP-derived fields are needed, create the audience directly and read it back:
14
14
 
15
15
  ```bash
16
- ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition
16
+ ae-cli analysis user-cluster create --project-id <projectId> --cluster-name <condition_cluster_name> --display-name <display_name> --definition-request '<semantic-definition-json>'
17
+ ae-cli analysis user-cluster get --project-id <projectId> --cluster-names '["<condition_cluster_name>"]'
17
18
  ```
18
19
 
19
20
  4. Build the final grouped `req`
20
21
  5. `ae-cli engage +save_task --project_id <projectId> --req '{...}'`
21
22
 
22
- The audience schema query is not a fixed preflight step. Call it only when the guide indicates that you must construct:
23
+ Audience creation is not a fixed preflight step. Use direct create/get only when the guide indicates that you must construct:
23
24
 
24
25
  - `targetConfig.qp`
25
26
  - `triggerConfig.triggerRule`
@@ -98,22 +99,23 @@ Use the guide to determine:
98
99
  - current handoff template
99
100
  - whether the current payload is already close to submit-ready
100
101
 
101
- ### 2.3 Query Audience Condition Schema Only When Needed
102
+ ### 2.3 Create and Read the Audience Only When Needed
102
103
 
103
- If the guide indicates that QP-derived fields are needed, run:
104
+ If the guide indicates that an audience or QP-derived fields are needed, run:
104
105
 
105
106
  ```bash
106
- ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition
107
+ ae-cli analysis user-cluster create --project-id <projectId> --cluster-name <condition_cluster_name> --display-name <display_name> --definition-request '<semantic-definition-json>'
108
+ ae-cli analysis user-cluster get --project-id <projectId> --cluster-names '["<condition_cluster_name>"]'
107
109
  ```
108
110
 
109
- Use the returned schema to build:
111
+ Prefer the returned `cluster_name`/`clusterKey`. Only when required, use the server-authored definition to build:
110
112
 
111
113
  - `targetConfig.qp`
112
114
  - `triggerConfig.triggerRule`
113
115
  - `clientConfig.clientQp`
114
116
  - `completionIndicatorDef.event`
115
117
 
116
- Do not call this command by default for every task. It is conditional, not mandatory.
118
+ Do not create an audience by default for every task. It is conditional, not mandatory.
117
119
 
118
120
  ### 2.4 Build Final `req` and Save
119
121
 
@@ -191,10 +193,11 @@ Use the guide to decide which audience shape applies:
191
193
  - `targetClusterType=2`: existing cluster, requires `clusterKey`
192
194
  - `targetClusterType=3`: all users, forbids both `qp` and `clusterKey`
193
195
 
194
- If `qp` is required, construct it from:
196
+ If `qp` is required, create/read a server-authored audience and copy the saved definition rather than building raw QP:
195
197
 
196
198
  ```bash
197
- ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition
199
+ ae-cli analysis user-cluster create --project-id <projectId> --cluster-name <condition_cluster_name> --display-name <display_name> --definition-request '<semantic-definition-json>'
200
+ ae-cli analysis user-cluster get --project-id <projectId> --cluster-names '["<condition_cluster_name>"]'
198
201
  ```
199
202
 
200
203
  ### 4.4 `triggerConfig`
@@ -210,10 +213,10 @@ Rules:
210
213
 
211
214
  - `triggerType=6` is not supported
212
215
  - use the guide for cron format and wrong-example checks
213
- - if `triggerRule` is needed, build it from:
216
+ - if `triggerRule` is needed, copy it from the saved server-authored audience definition:
214
217
 
215
218
  ```bash
216
- ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition
219
+ ae-cli analysis user-cluster get --project-id <projectId> --cluster-names '["<condition_cluster_name>"]'
217
220
  ```
218
221
 
219
222
  ### 4.5 `controlConfig`
@@ -222,10 +225,10 @@ Minimum required field:
222
225
 
223
226
  - `completionIndicatorDef`
224
227
 
225
- When the guide points to event-based completion or experiment-driven main-goal rules, use:
228
+ When the guide points to event-based completion or experiment-driven main-goal rules, use the saved server-authored audience definition:
226
229
 
227
230
  ```bash
228
- ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition
231
+ ae-cli analysis user-cluster get --project-id <projectId> --cluster-names '["<condition_cluster_name>"]'
229
232
  ```
230
233
 
231
234
  to build `completionIndicatorDef.event`.
@@ -243,10 +246,10 @@ Important constraints that still apply:
243
246
 
244
247
  Use this block only when client-side conditions are needed.
245
248
 
246
- If `clientConfig.clientQp` is required, build it from:
249
+ If `clientConfig.clientQp` is required, copy it from the saved server-authored audience definition:
247
250
 
248
251
  ```bash
249
- ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition
252
+ ae-cli analysis user-cluster get --project-id <projectId> --cluster-names '["<condition_cluster_name>"]'
250
253
  ```
251
254
 
252
255
  Only call that schema query when the guide explicitly shows that the field is needed.
@@ -260,7 +263,7 @@ Before submission, verify:
260
263
  1. `channelId` comes from a real channel query.
261
264
  2. `build_task_save_guide` has already been called for the current scenario or partial draft.
262
265
  3. `fieldRules.channelContentSchema` was used as the source of truth for content structure.
263
- 4. Any required QP-derived fields were built from `ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition`.
266
+ 4. Any required QP-derived fields came from `analysis user-cluster get`, never from hand-built raw QP.
264
267
  5. `targetClusterType` matches the presence or absence of `clusterKey` / `qp`.
265
268
  6. `triggerType` matches the provided scheduling or event fields.
266
269
  7. `completionIndicatorDef` is present and structurally valid for the current scenario.
@@ -280,10 +283,11 @@ ae-cli engage +build_task_save_guide --project_id 1 --req '{"context":{"triggerT
280
283
  ae-cli engage +save_task --project_id 1 --req '{...final grouped req...}'
281
284
  ```
282
285
 
283
- If the guide indicates QP-derived fields are needed, insert:
286
+ If the guide indicates an audience or QP-derived fields are needed, insert direct create/get:
284
287
 
285
288
  ```bash
286
- ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition
289
+ ae-cli analysis user-cluster create --project-id <projectId> --cluster-name <condition_cluster_name> --display-name <display_name> --definition-request '<semantic-definition-json>'
290
+ ae-cli analysis user-cluster get --project-id <projectId> --cluster-names '["<condition_cluster_name>"]'
287
291
  ```
288
292
 
289
293
  before building the final `req`.
@@ -301,4 +305,4 @@ This command is a write operation.
301
305
  - Do not invent `channelId`, `clusterKey`, audience definitions, or content keys
302
306
  - Do not use `taskId` for a non-draft task
303
307
  - Do not pass `occasionKeys`; Hermes derives them from content
304
- - Do not call the audience schema query as a reflex; call it only when guide output says QP-derived fields are needed
308
+ - Do not call the semantic cluster definition builder as a reflex; call it only when guide output says QP-derived fields are needed
@@ -0,0 +1,18 @@
1
+ # engage-task segment-list query
2
+
3
+ Query segments created from or associated with an engagement task.
4
+
5
+ > Capability id: `engage-task.segment-list.query` · Domain: `engage`.
6
+
7
+ ```bash
8
+ ae-cli engage-task segment-list query --project-id <project-id> --task-id <task-id>
9
+ ```
10
+
11
+ ## Parameters
12
+
13
+ - `--project-id` / `-p`: Numeric project ID.
14
+ - `--task-id`: Engagement task ID.
15
+
16
+ ## Output
17
+
18
+ Returns `items` and `total`. Each item includes cluster identity, display name, user count, refresh status, and `analysis_visible`.
@@ -0,0 +1,23 @@
1
+ # engage-task operation-log query
2
+
3
+ Use this command to query an engagement task's operation records and runtime application logs.
4
+
5
+ > Capability id: `engage-task.operation-log.query` · Domain: `engage`.
6
+
7
+ ```bash
8
+ ae-cli engage-task operation-log query --project-id <project-id> --task-id <task-id>
9
+ ```
10
+
11
+ ## Parameters
12
+
13
+ - `--project-id` / `-p`: Required numeric project ID.
14
+ - `--task-id`: Required engagement task ID.
15
+
16
+ ## Output
17
+
18
+ The result contains two arrays:
19
+
20
+ - `operation_records`: User and system operations such as creation, modification, approval, sending, pausing, and completion. Each item contains `operation_type_name`, `operator_name`, `operate_time`, and optional `target_name`.
21
+ - `app_logs`: Runtime application logs for triggered tasks. Each item contains `operation_type`, `operation_type_name`, `operator_name`, and `operate_time`. This array is empty when the task has no runtime application logs.
22
+
23
+ The task must belong to the supplied project. This is a read-only command and supports `--dry-run`.
@@ -0,0 +1,18 @@
1
+ # engage-flow version list
2
+
3
+ List current, historical, new, update, and test versions for a flow.
4
+
5
+ > Capability id: `engage-flow.version.list` · Domain: `engage`.
6
+
7
+ ```bash
8
+ ae-cli engage-flow version list --project-id <project-id> --flow-id <flow-id>
9
+ ```
10
+
11
+ ## Parameters
12
+
13
+ - `--project-id`, `-p`: Numeric project ID.
14
+ - `--flow-id`: Flow ID whose versions should be listed.
15
+
16
+ ## Output
17
+
18
+ Returns `items` containing flow version metadata and `total` containing the number of returned versions.
@@ -498,7 +498,7 @@ After all `.ae-cli/output/` files are generated, upload every generated output f
498
498
  Use the existing attachment command:
499
499
 
500
500
  ```bash
501
- ae-cli agent +add-attachment --yes --files '<json-array-of-generated-output-files>'
501
+ ae-cli agent +add-attachment --files '<json-array-of-generated-output-files>'
502
502
  ```
503
503
 
504
504
  Upload list rules:
@@ -236,7 +236,7 @@ AE Debug mode requires the device ID to be added in AE Admin before data can be
236
236
  After all snippet output files are written, upload generated output artifacts to the Agent attachment library:
237
237
 
238
238
  ```bash
239
- ae-cli agent +add-attachment --yes --files '<json-array-of-generated-output-files>'
239
+ ae-cli agent +add-attachment --files '<json-array-of-generated-output-files>'
240
240
  ```
241
241
 
242
242
  Upload list must include:
@@ -341,7 +341,7 @@ After generation, perform language style checks on each output file:
341
341
 
342
342
  #### Step 5: Upload Generated Artifacts
343
343
 
344
- Prepare upload compatibility copies for unsupported code/config extensions, then upload the safe file list to the Agent attachment library using `ae-cli agent +add-attachment --yes --files '<json-array>'`.
344
+ Prepare upload compatibility copies for unsupported code/config extensions, then upload the safe file list to the Agent attachment library using `ae-cli agent +add-attachment --files '<json-array>'`.
345
345
 
346
346
  ---
347
347
 
@@ -9,8 +9,8 @@ description: "Interactive generation of an AE tracking plan and upload. Trigger
9
9
  > English input → English reply; Chinese input → Chinese reply; Japanese input → Japanese reply.
10
10
  > If uncertain, default to English.
11
11
  > This applies to all output: section titles, phase names, template prompts, example text, option lists, etc.
12
- > **⚠️ CRITICAL: Templates and some reference documents are in Chinese. When working with Chinese templates/material for an English/Japanese user, you MUST translate all user-facing content (display_name, event_desc, event_tag, descriptions, etc.) to the user's language. The source material's language is NOT the user's language. Use the Terminology Glossary above to map terms accurately.**
13
- > Do NOT copy Chinese text verbatim from this document into English/Japanese replies.
12
+ > **⚠️ CRITICAL: Template localization is CLI-owned. Do NOT manually translate imported template content with the model. Use the `src/tracking` i18n pipeline by setting `AE_LANG=<user_lang>`, writing `draft.meta.lang`, and regenerating through `ae-cli tracking code import-template` / `ae-cli tracking plan draft`.**
13
+ > Do NOT copy Chinese text verbatim from this document into English/Japanese replies unless it is an identifier, template name needed for CLI import, or original source material quoted for traceability.
14
14
 
15
15
  ## Terminology Glossary
16
16
 
@@ -66,10 +66,13 @@ Phase 0 → 1 → 2 → 3 → 4, do not skip steps.
66
66
  > / `ae-cli auth login` / `ae-cli tracking plan upload` / `ae-cli tracking plan delete`).
67
67
  > **All CLI commands must be prefixed with `AE_LANG=<user_lang>`** (e.g. `AE_LANG=en ae-cli tracking plan draft ...`),
68
68
  > ensuring CLI output messages and generated xlsx headers match the user's language.
69
+ > Upload commands MUST also pass `--lang <user_lang>` so the server parses the uploaded xlsx with the same sheet/header language.
69
70
  >
70
- > **Language rules**: All user-facing fields in draft.json (`display_name`, `event_desc`, `event_tag`,
71
- > property `display_name`, property `desc`, etc.) must be generated in the **user's input language**.
72
- > Content extracted from Chinese templates/PRDs must be translated to the user's language when written to draft.json.
71
+ > **Language rules**: For newly generated content, user-facing fields in draft.json (`display_name`, `event_desc`, `event_tag`,
72
+ > property `display_name`, property `desc`, etc.) should be generated in the **user's input language**.
73
+ > For imported templates, do NOT translate those fields manually. Template sheet names, headers, property type display values,
74
+ > CLI messages, and auto-track/i18n-owned labels must come from `src/tracking/i18n` via `AE_LANG=<user_lang>` and `draft.meta.lang`.
75
+ > If template business text needs localization and the CLI/i18n resources do not provide it, preserve the imported text and ask the user before rewriting business semantics.
73
76
  > Only identifier fields like `event_name`, `prop_name` remain in English snake_case (canonical format).
74
77
  > This skill only cares about command behavior, not internal implementation.
75
78
 
@@ -81,6 +84,7 @@ Phase 0 → 1 → 2 → 3 → 4, do not skip steps.
81
84
  >
82
85
  > Determine `<user_lang>` from user's input language: Chinese→`zh`, English→`en`, Japanese→`ja`, Korean→`ko`. Other languages default to `en`.
83
86
  > All subsequent CLI commands must be prefixed with `AE_LANG=<user_lang>` to ensure CLI output and generated xlsx headers match the user's language.
87
+ > When uploading the xlsx, pass `--lang <user_lang>` as well; it must match `draft.meta.lang` / the generated xlsx language.
84
88
 
85
89
  Collect the following **4 items** sequentially, **do NOT ask all at once**:
86
90
 
@@ -493,8 +497,9 @@ Priority from low to high: **template → codebase → prd → chat → autotrac
493
497
  - Templates are resolved by ae-cli from the ae-cli package root and user template directory
494
498
  - Import command: `AE_LANG=<user_lang> ae-cli tracking code import-template --template-name "<template name>" --out .ae-cli/draft.json`
495
499
  - ⚠️ **Must validate immediately after template import** (see Phase 1.6); template content may not be fully correct
496
- - ⚠️ **Template content is in Chinese; must translate after import**: Read draft.json, translate `display_name`, `event_desc`, `event_tag`, and property `display_name`/`desc` to user's language, then write back. Only `event_name`, property `name`, `type` identifiers remain as-is.
497
- - ⚠️ **event_tag also needs translation**: `业务事件`→user's language (e.g. EN: `Business Event`), `系统事件`→user's language (e.g. EN: `System Event`; autotrack events are handled automatically by CLI, no need to re-translate)
500
+ - ⚠️ **Do not manually translate template content after import**: Do NOT read draft.json and model-translate `display_name`, `event_desc`, `event_tag`, or property `display_name`/`desc`. Keep imported business content as produced by the CLI/template reader unless the user explicitly asks for semantic rewriting.
501
+ - ⚠️ **Use `src/tracking` i18n for localization owned by the CLI**: `AE_LANG=<user_lang>` + `draft.meta.lang` control CLI messages, xlsx sheet names, xlsx headers, property type display values, and auto-track/i18n-owned labels. If these are wrong, regenerate with the intended locale instead of editing labels by hand.
502
+ - ⚠️ **event_tag is not free-form model translation**: Do not manually map `业务事件`/`系统事件` to another language. Preserve template tags, or rely on `src/tracking` i18n/autotrack generation for system labels when the CLI owns them.
498
503
  - **codebase**: Scan project source directory, extract events/properties from business logic; **same-name events merge prop_names without overwriting existing fields**; new items `source: "codebase"`
499
504
  - **prd**: Read all user-provided product documents (md / pdf / docx / URL / images), extract events and properties from each file; **same-name events merge prop_names without overwriting existing fields**; image files analyzed via multimodal interpretation of UI elements and interaction flows; all new items `source: "prd"`
500
505
  - **prd path is a folder**: Recursively scan all files in the directory:
@@ -668,7 +673,7 @@ Run the following command to dynamically discover available templates:
668
673
  AE_LANG=<user_lang> ae-cli tracking plan list-templates --json
669
674
  ```
670
675
 
671
- **Language rules**: Template file names are in Chinese. When displaying to users, **must translate to user's current language**; **do NOT** include the original Chinese name (e.g. show only "Card Game v1", not "Card Game (卡牌游戏) v1").
676
+ **Language rules**: Template names and template business content must not be model-translated. Use localized names only when they are returned by the CLI / `src/tracking` i18n resources. If `list-templates --json` only returns the original template `name`, display that name as-is and keep it unchanged for import.
672
677
 
673
678
  Built-in templates are resolved by ae-cli from the ae-cli package root. User templates are resolved from the ae-cli user template directory. Do **not** manually construct `./tracking-plan-template/...` paths from the user's current workspace.
674
679
 
@@ -678,7 +683,7 @@ Search directories in order:
678
683
  2. `~/.ae-cli/templates/` — user-provided template directory
679
684
 
680
685
  Each template prefers `.md` distilled file (if same-name `.md` exists, return md path; otherwise return xlsx path).
681
- Display translated template names to the user, but keep the original `name` from the JSON result for import. Auto-detect format on import:
686
+ Display the template names returned by the CLI, and keep the exact `name` from the JSON result for import. Auto-detect format on import:
682
687
 
683
688
  ```bash
684
689
  AE_LANG=<user_lang> ae-cli tracking code import-template --template-name "<template name>" --out .ae-cli/draft.json
@@ -1105,7 +1110,7 @@ Decide based on conflict detection results:
1105
1110
 
1106
1111
  Upload command:
1107
1112
  ```bash
1108
- AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json [--replace]
1113
+ AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json --lang <user_lang> [--replace]
1109
1114
  ```
1110
1115
 
1111
1116
  - **With `--replace`**: Delete existing project plan first then upload (when user chooses "Replace", or severe conflict switches to replace)
@@ -1114,7 +1119,7 @@ AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae
1114
1119
  Upload language is controlled locally by `AE_LANG`, `--lang`, or `draft.meta.lang`. Do not call AE user language config APIs and do not use `--switch-lang`. If the xlsx language is wrong, regenerate the xlsx with the intended language before uploading:
1115
1120
  ```bash
1116
1121
  AE_LANG=<user_lang> ae-cli tracking plan draft --in .ae-cli/draft.json --out .ae-cli/draft.xlsx
1117
- AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json [--replace]
1122
+ AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json --lang <user_lang> [--replace]
1118
1123
  ```
1119
1124
 
1120
1125
  On successful upload, prompt user to verify in AE Admin. **Provide the full URL** (tracking plan page URL format: `https://<host>/#/data/plan`).
@@ -1126,7 +1131,7 @@ On successful upload, prompt user to verify in AE Admin. **Provide the full URL*
1126
1131
  Use `--auto-fix` option on upload (enabled by default); CLI auto-detects and fixes errors:
1127
1132
 
1128
1133
  ```bash
1129
- AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json [--replace]
1134
+ AE_LANG=<user_lang> ae-cli tracking plan upload --project <projectId> --xlsx .ae-cli/draft.xlsx --draft .ae-cli/draft.json --lang <user_lang> [--replace]
1130
1135
  ```
1131
1136
 
1132
1137
  #### AE API Error Types
@@ -96,9 +96,10 @@ Upload is a two-step capability-gateway flow:
96
96
  - Input:
97
97
 
98
98
  ```json
99
- { "project_id": 1603, "input_file_id": "..." }
99
+ { "project_id": 1603, "input_file_id": "...", "lang": "zh" }
100
100
  ```
101
101
 
102
+ - `lang` is optional for backward compatibility, but Agents should pass the generated xlsx language (`zh` / `en` / `ja` / `ko`) so the backend resolves localized sheet names and headers consistently.
102
103
  - Response: `{ return_code: 0, return_message: "success" }` on success.
103
104
 
104
105
  **合并语义**:对事件走 **merge-by-name**(同名不覆盖、新名新增)。若要完全替换,
@@ -15,7 +15,7 @@ ae-cli kb +<command> [options]
15
15
  ## Global Rules
16
16
 
17
17
  - Use this skill for TE/AE knowledge base tasks: create, query, ask with LLM, inspect indexes, grep pages, read pages, check status, upload sources, add URL sources, generate schema, compile, remove source files, and delete knowledge bases.
18
- - Read operations can run directly after required inputs are known. Write operations require explicit user intent and normally keep the confirmation prompt unless the user asks to bypass it.
18
+ - Read and ordinary `write` operations can run directly after required inputs and user intent are known. Only `high-risk-write` operations use the confirmation gate.
19
19
  - Prefer `--dry-run` before destructive or broad writes when the user has not already validated the target.
20
20
  - Do not invent knowledge base names, scopes, source display names, or JSON payloads. Ask the user or query known context when values are missing.
21
21
  - JSON flags must be valid JSON strings, usually wrapped in single quotes in shell commands.
@@ -1,12 +1,12 @@
1
1
  ---
2
2
  name: ae-metadata
3
3
  version: 1.0.0
4
- description: "AE/TE metadata capability-gateway CLI: metadata event/property detail, metadata data-table management, input-file upload, and property dimension-table binding. Use for ae-cli metadata commands backed by /api/cli/metadata/v1. Must read references before composing commands; command/flags use kebab-case while gateway input keeps snake_case. Never guess project_id, event/property names, input_file_id, or data_table_id."
4
+ description: "AE/TE metadata capability-gateway CLI: metadata event/property detail, data-table management, and property dimension-table binding. Metadata CLI routes through the analysis gateway. Input-file upload belongs to ae-analysis."
5
5
  ---
6
6
 
7
7
  # ae-metadata
8
8
 
9
- Capability-gateway domain **`metadata`** REST via `/api/cli/metadata/v1/...`, auth header **`cli-token`**.
9
+ CLI domain **`metadata`** routes to the analysis capability gateway (`/api/cli/analysis/v1/...`), using auth header **`cli-token`**.
10
10
 
11
11
  Parallel to **`ae-analysis`** (MCP `analysis_meta` for metadata lists/governance). Use **this skill** for gateway-backed metadata detail and data-table/dimension-table operations; use **`ae-analysis`** for MCP metadata list/search, metrics, virtual create, and batch edit.
12
12
 
@@ -17,7 +17,8 @@ Parallel to **`ae-analysis`** (MCP `analysis_meta` for metadata lists/governance
17
17
  | `--format <json\|table>` | Output format. Default JSON. |
18
18
  | `--jq <expr>` | jq filter on JSON output. |
19
19
  | `--host <url>` | Override active AE host, e.g. `ae-cli metadata event get --host <url> ...`. |
20
- | `--dry-run` | Validate input against gateway schema without executing. |
20
+ | `--validate` | Optional: fix params only (`/validate`). Alone while iterating complex `qp` / payload — then run. Do not stack with `--dry-run`. |
21
+ | `--dry-run` | Optional: confirm ready to run (`/dry-run`). Alone for risk/output preview. Do not stack with `--validate`. |
21
22
 
22
23
  Output and errors:
23
24
  - Success: JSON envelope (default).
@@ -25,7 +26,7 @@ Output and errors:
25
26
 
26
27
  Safety:
27
28
  - Read-only commands can run directly after IDs/names are verified.
28
- - Write commands (`data-table *-write`, `*-delete`, `property-bindings-update`, dimension-table bind/create, `input-file upload`) require `--yes` for non-dry-run execution.
29
+ - Ordinary writes (`data-table *-write`, `property-bindings-update`, dimension-table bind/create) execute without `--yes`. Delete commands are `high-risk-write`: dry-run first, summarize impact, wait for explicit confirmation, then execute with `--yes`.
29
30
  - **Before any command**, read the matching `references/<name>.md` (filename = command with spaces → underscores, e.g. `metadata event get` → `metadata_event_get.md`).
30
31
  - Never invent `project_id`, event/property names, `input_file_id`, or `data_table_id`. Discover names via `ae-analysis` and data table IDs via `metadata data-table list`.
31
32
 
@@ -36,7 +37,7 @@ Switch to **`ae-metadata`** when the user needs:
36
37
  - Full detail for **one** super-event (incl. virtual event `definition`)
37
38
  - Full detail for **one** super-property (incl. virtual property `definition`)
38
39
  - Metadata data-table list/get/create/update/delete/download
39
- - Upload a local file to get `input_file_id`
40
+ - For local uploads, switch to `ae-analysis` and use `analysis input-file upload` with a discovered purpose.
40
41
  - Bind an existing data table to a property, or create a CSV dimension table and bind it
41
42
 
42
43
  Stay on **`ae-analysis`** for: metadata event/property/metric list/search, metric CRUD, batch metadata, virtual create, project config, tracking plans.
@@ -48,20 +49,19 @@ ae-cli metadata <resource> <action> [options]
48
49
  ae-cli metadata property <dimension-table-action> [options]
49
50
  ```
50
51
 
51
- - Commands and flags use **kebab-case**: `data-table`, `input-file`, `dimension-table`, `--project-id`, `--data-table-id`.
52
+ - Commands and flags use **kebab-case**: `data-table`, `dimension-table`, `--project-id`, `--data-table-id`.
52
53
  - Gateway `input` body fields remain **snake_case** (`project_id`, `event_name`, …); ae-cli maps flags automatically.
53
54
 
54
55
  ## PROJECT_ID_GATE
55
56
 
56
57
  Same rules as `ae-analysis`: reuse verified project context in one conversation; otherwise `ae-cli analysis_common +list_projects` (or `ae-analysis` skill) to resolve `project_id`.
57
58
 
58
- ## Commands (13)
59
+ ## Commands (12)
59
60
 
60
61
  | User command | Capability id | Reference |
61
62
  |---|---|---|
62
63
  | `metadata event get` | `metadata.event.get` | [metadata_event_get.md](references/metadata_event_get.md) |
63
64
  | `metadata property get` | `metadata.property.get` | [metadata_property_get.md](references/metadata_property_get.md) |
64
- | `metadata input-file upload` | `POST /input-files` | [metadata_input_file_upload.md](references/metadata_input_file_upload.md) |
65
65
  | `metadata data-table list` | `metadata.data_table.list` | [metadata_data_table_list.md](references/metadata_data_table_list.md) |
66
66
  | `metadata data-table get` | `metadata.data_table.get` | [metadata_data_table_get.md](references/metadata_data_table_get.md) |
67
67
  | `metadata data-table csv-write` | `metadata.data_table.csv_write` | [metadata_data_table_csv_write.md](references/metadata_data_table_csv_write.md) |
@@ -82,6 +82,7 @@ ae-cli metadata property get --help
82
82
  ae-cli metadata data-table list --help
83
83
  ae-cli metadata event get --project-id 1 --event-name <name> --dry-run
84
84
  ae-cli metadata data-table list --project-id 1 --dry-run
85
+ ae-cli analysis input-file purpose list --project-id 1
85
86
  ```
86
87
 
87
88
  ## Related Skills
@@ -3,6 +3,7 @@
3
3
  > Capability id: `metadata.data_table.csv_delete` · Domain: `metadata`.
4
4
 
5
5
  ```bash
6
+ # Summarize the target and impact, then wait for explicit user confirmation.
6
7
  ae-cli metadata data-table csv-delete --project-id <project_id> --data-table-id <id> --yes
7
8
  ae-cli metadata data-table csv-delete --project-id <project_id> --data-table-id <id> --dry-run
8
9
  ```
@@ -5,9 +5,9 @@
5
5
  ## Command
6
6
 
7
7
  ```bash
8
- ae-cli metadata data-table csv-write --project-id <project_id> --operation create --input-file-id <input_file_id> --data-table-name datatable_<project_id>_<name> --columns '<columns_json>' --yes
9
- ae-cli metadata data-table csv-write --project-id <project_id> --operation incremental_update --data-table-id <id> --input-file-id <input_file_id> --yes
10
- ae-cli metadata data-table csv-write --project-id <project_id> --operation replace_update --data-table-id <id> --input-file-id <input_file_id> --yes
8
+ ae-cli metadata data-table csv-write --project-id <project_id> --operation create --input-file-id <input_file_id> --data-table-name datatable_<project_id>_<name> --columns '<columns_json>'
9
+ ae-cli metadata data-table csv-write --project-id <project_id> --operation incremental_update --data-table-id <id> --input-file-id <input_file_id>
10
+ ae-cli metadata data-table csv-write --project-id <project_id> --operation replace_update --data-table-id <id> --input-file-id <input_file_id>
11
11
  ```
12
12
 
13
13
  ## Parameters
@@ -16,7 +16,7 @@ ae-cli metadata data-table csv-write --project-id <project_id> --operation repla
16
16
  |---|---|---|
17
17
  | `--project-id` / `-p` | Yes | Numeric project ID. |
18
18
  | `--operation` | Yes | `create`, `incremental_update`, or `replace_update`. |
19
- | `--input-file-id` | Yes | ID returned by `metadata input-file upload`. |
19
+ | `--input-file-id` | Yes | ID returned by `analysis input-file upload`. |
20
20
  | `--data-table-id` | For updates | Existing data table ID. |
21
21
  | `--data-table-name` | No | Optional technical data table name. If supplied, use `datatable_<project_id>_<name>`. |
22
22
  | `--display-name` | No | Human-readable table name. |
@@ -25,7 +25,7 @@ ae-cli metadata data-table csv-write --project-id <project_id> --operation repla
25
25
 
26
26
  ## Decision Rules
27
27
 
28
- - Upload the CSV first with `metadata input-file upload --purpose data_table.csv`.
28
+ - Discover the purpose with `analysis input-file purpose list`, then upload the CSV with `analysis input-file upload --purpose data_table.csv`.
29
29
  - Do not invent `input_file_id` or `data_table_id`; use upload/list outputs.
30
30
  - If you provide `--data-table-name`, it must include the project segment, for example `datatable_2_orders`.
31
- - This is a write command; use `--dry-run` before non-dry-run and pass `--yes` when executing.
31
+ - This is an ordinary `write` command and does not require CLI confirmation.
@@ -3,8 +3,8 @@
3
3
  > Capability id: `metadata.data_table.property_bindings_update` · Domain: `metadata`.
4
4
 
5
5
  ```bash
6
- ae-cli metadata data-table property-bindings-update --project-id <project_id> --data-table-id <id> --bind-properties '<bind_json>' --yes
7
- ae-cli metadata data-table property-bindings-update --project-id <project_id> --data-table-id <id> --unbind-properties '<unbind_json>' --yes
6
+ ae-cli metadata data-table property-bindings-update --project-id <project_id> --data-table-id <id> --bind-properties '<bind_json>'
7
+ ae-cli metadata data-table property-bindings-update --project-id <project_id> --data-table-id <id> --unbind-properties '<unbind_json>'
8
8
  ```
9
9
 
10
10
  | Parameter | Required | Description |
@@ -3,6 +3,7 @@
3
3
  > Capability id: `metadata.data_table.sql_delete` · Domain: `metadata`.
4
4
 
5
5
  ```bash
6
+ # Summarize the target and impact, then wait for explicit user confirmation.
6
7
  ae-cli metadata data-table sql-delete --project-id <project_id> --data-table-id <id> --yes
7
8
  ae-cli metadata data-table sql-delete --project-id <project_id> --data-table-id <id> --dry-run
8
9
  ```
@@ -5,8 +5,8 @@
5
5
  ## Command
6
6
 
7
7
  ```bash
8
- ae-cli metadata data-table sql-write --project-id <project_id> --operation create --table-name datatable_<project_id>_<name> --columns '<columns_json>' --qp '<qp_json>' --zone-offset 8 --yes
9
- ae-cli metadata data-table sql-write --project-id <project_id> --operation update --data-table-id <id> --columns '<columns_json>' --qp '<qp_json>' --strategy overwrite --update-cron '0 0 * * * ?' --yes
8
+ ae-cli metadata data-table sql-write --project-id <project_id> --operation create --table-name datatable_<project_id>_<name> --columns '<columns_json>' --qp '<qp_json>' --zone-offset 8
9
+ ae-cli metadata data-table sql-write --project-id <project_id> --operation update --data-table-id <id> --columns '<columns_json>' --qp '<qp_json>' --strategy overwrite --update-cron '0 0 * * * ?'
10
10
  ```
11
11
 
12
12
  ## Parameters
@@ -47,15 +47,26 @@ ae-cli metadata data-table sql-write --project-id <project_id> --operation updat
47
47
  | `taSqlView` | No | SQL view (`TaSqlView`). Use `{}` when no dynamic view params. |
48
48
  | `taSqlView.sqlViewParams` | No | View dynamic parameters. |
49
49
 
50
- Inspect the live schema:
50
+ Inspect the live schema. For complex `qp` / `columns`, use **on-demand** pre-check (motto: validate = fix params; dry-run = confirm ready to run). Prefer **`--validate` only** while iterating — then execute. Do **not** stack `--validate` then `--dry-run` on the same final input by default (`dry-run` already validates params).
51
51
 
52
52
  ```bash
53
53
  ae-cli capability inspect metadata.data_table.sql_write
54
+ ae-cli metadata data-table sql-write \
55
+ --project-id 1 \
56
+ --operation create \
57
+ --table-name datatable_1_orders_dim \
58
+ --columns '[{"name":"id","type":"string"},{"name":"name","type":"string"}]' \
59
+ --qp '{"taSqlVo":{"sql":"select '\''1'\'' as id, '\''demo'\'' as name","sqlVoParams":[]},"taSqlView":{}}' \
60
+ --zone-offset 8 \
61
+ --validate
54
62
  ```
55
63
 
64
+ `--validate` only checks/normalizes parameters (`valid` + `normalized_input`). It does not create the table. After `valid=true`, execute without `--yes`. Use `--dry-run` **instead of** `--validate` only when you need risk/output/cancel preview — not both.
65
+
56
66
  ## Create example
57
67
 
58
68
  ```bash
69
+ # Typical complex-qp path: validate while fixing, then execute (no mandatory dry-run).
59
70
  ae-cli metadata data-table sql-write \
60
71
  --project-id 1 \
61
72
  --operation create \
@@ -64,7 +75,7 @@ ae-cli metadata data-table sql-write \
64
75
  --columns '[{"name":"id","type":"string","display_name":"id"},{"name":"name","type":"string","display_name":"name"}]' \
65
76
  --qp '{"taSqlVo":{"sql":"select '\''1'\'' as id, '\''demo'\'' as name","sqlVoParams":[]},"taSqlView":{}}' \
66
77
  --zone-offset 8 \
67
- --dry-run
78
+ --validate
68
79
 
69
80
  ae-cli metadata data-table sql-write \
70
81
  --project-id 1 \
@@ -78,7 +89,10 @@ ae-cli metadata data-table sql-write \
78
89
 
79
90
  ## Decision Rules
80
91
 
81
- - This is a write command; use `--dry-run` before non-dry-run execution.
82
- - Keep `columns` and `qp` as valid JSON. `qp` must follow `SqlDatatableDef`; dry-run validates structure but does not execute SQL.
92
+ - Write command. Motto: validate = fix params; dry-run = confirm ready to run. **Pick one pre-check on demand** — do not stack both on the same final input.
93
+ - Complex `qp` / `columns`: use `--validate` while iterating until `valid=true`, then execute without CLI confirmation. Skip `--dry-run` unless you specifically need risk/output/cancel preview.
94
+ - If you need that preview instead, use `--dry-run` **once** on the final input (it already validates params) — do not validate then dry-run as a habit.
95
+ - Global `--validate` → `/validate`; `--dry-run` → `/dry-run`. Neither creates the table. Do not pass both flags together.
96
+ - Keep `columns` and `qp` as valid JSON. `qp` must follow `SqlDatatableDef`; validate / dry-run check structure but do not execute SQL.
83
97
  - If you provide a table name, it must include the project segment, for example `datatable_2_orders_sql`.
84
- - If execute fails with `CAPABILITY_EXECUTION_FAILED`, fix qp structure first, then retry with a valid query before investigating backend SQL/Presto issues.
98
+ - If execute fails with `CAPABILITY_EXECUTION_FAILED`, fix qp with `--validate`, then retry before investigating backend SQL/Presto issues.
@@ -5,8 +5,8 @@
5
5
  ## Command
6
6
 
7
7
  ```bash
8
- ae-cli metadata property bind-existing-dimension-table --project-id <project_id> --property-name <name> --property-scope user --data-table-id <id> --yes
9
- ae-cli metadata property bind-existing-dimension-table --project-id <project_id> --property-name <name> --property-scope event --data-table-id <id> --dict-columns '["display_name"]' --yes
8
+ ae-cli metadata property bind-existing-dimension-table --project-id <project_id> --property-name <name> --property-scope user --data-table-id <id>
9
+ ae-cli metadata property bind-existing-dimension-table --project-id <project_id> --property-name <name> --property-scope event --data-table-id <id> --dict-columns '["display_name"]'
10
10
  ```
11
11
 
12
12
  ## Parameters
@@ -24,4 +24,4 @@ ae-cli metadata property bind-existing-dimension-table --project-id <project_id>
24
24
 
25
25
  - Confirm the property with `metadata property get` or `analysis_meta +list_properties`.
26
26
  - Confirm the data table with `metadata data-table get`.
27
- - This is a write command; use `--dry-run` before non-dry-run and pass `--yes` when executing.
27
+ - This is an ordinary `write` command and does not require CLI confirmation.
@@ -5,7 +5,7 @@
5
5
  ## Command
6
6
 
7
7
  ```bash
8
- ae-cli metadata property create-and-bind-csv-dimension-table --project-id <project_id> --property-name <name> --property-scope user --input-file-id <input_file_id> --data-table-name datatable_<project_id>_<name> --columns '<columns_json>' --yes
8
+ ae-cli metadata property create-and-bind-csv-dimension-table --project-id <project_id> --property-name <name> --property-scope user --input-file-id <input_file_id> --data-table-name datatable_<project_id>_<name> --columns '<columns_json>'
9
9
  ```
10
10
 
11
11
  ## Parameters
@@ -15,7 +15,7 @@ ae-cli metadata property create-and-bind-csv-dimension-table --project-id <proje
15
15
  | `--project-id` / `-p` | Yes | Numeric project ID. |
16
16
  | `--property-name` | Yes | Property technical name. |
17
17
  | `--property-scope` | Yes | Property owner table, for example `event` or `user`. |
18
- | `--input-file-id` | Yes | ID returned by `metadata input-file upload`. |
18
+ | `--input-file-id` | Yes | ID returned by `analysis input-file upload`. |
19
19
  | `--data-table-name` | No | Optional technical data table name. If supplied, use `datatable_<project_id>_<name>`. |
20
20
  | `--display-name` | No | Human-readable table name. |
21
21
  | `--description` | No | Table description. |
@@ -25,8 +25,8 @@ ae-cli metadata property create-and-bind-csv-dimension-table --project-id <proje
25
25
 
26
26
  ## Decision Rules
27
27
 
28
- - Upload the CSV first with `metadata input-file upload --purpose data_table.csv`.
28
+ - Discover the purpose with `analysis input-file purpose list`, then upload the CSV with `analysis input-file upload --purpose data_table.csv`.
29
29
  - Do not invent `input_file_id`; use the value returned by upload.
30
30
  - If you provide `--data-table-name`, it must include the project segment, for example `datatable_2_user_dict`.
31
31
  - Use this one-step command when the user wants a new CSV dimension table bound to a property.
32
- - This is a write command; use `--dry-run` before non-dry-run and pass `--yes` when executing.
32
+ - This is an ordinary `write` command and does not require CLI confirmation.