@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,24 +1,22 @@
1
1
  # analysis alert-job list
2
2
 
3
- Use when list alert job status.
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 job status.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert-job list [options]
8
+ ae-cli analysis alert-job list --project-id <project_id>
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert_job.list`
14
12
 
15
13
  Input sends `project_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 |
21
+ | `--project-id` | Numeric project ID. | Yes |
24
22
 
@@ -1,26 +1,24 @@
1
1
  # analysis alert list
2
2
 
3
- Use when list project alerts.
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 project alerts.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert list [options]
8
+ ae-cli analysis alert list --project-id <project_id>
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert.list`
14
12
 
15
13
  Input sends `project_id`, optional `queries`, `limit`, and `offset`. `queries` accepts 1 to 20 non-empty strings with OR semantics; matching rows include `matched_queries` and `matched_fields`. Do not send singular `query` or 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 |
21
+ | `--project-id` | Numeric project ID. | Yes |
24
22
  | `--queries` | JSON array of 1 to 20 keyword filters | No |
25
- | `--limit` | See command help | No |
26
- | `--offset` | See command help | No |
23
+ | `--limit` | Directory page size. Default: 50, max: 200. Values outside 1..200 are rejected. | No |
24
+ | `--offset` | Zero-based directory page offset. Default: 0. Negative values are rejected. | No |
@@ -1,24 +1,22 @@
1
1
  # analysis alert-notice-config list
2
2
 
3
- Use when list alert notice configs.
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 notice configs.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert-notice-config list [options]
8
+ ae-cli analysis alert-notice-config list --project-id <project_id>
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert_notice_config.list`
14
12
 
15
13
  Input sends `project_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 |
21
+ | `--project-id` | Numeric project ID. | Yes |
24
22
 
@@ -1,25 +1,23 @@
1
1
  # analysis alert start
2
2
 
3
- Use when start 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 start an alert.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert start [options]
8
+ ae-cli analysis alert start --project-id <project_id> --alert-id <alert_id>
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert.start`
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
 
@@ -1,25 +1,23 @@
1
1
  # analysis alert stop
2
2
 
3
- Use when stop 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 stop an alert.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert stop [options]
8
+ ae-cli analysis alert stop --project-id <project_id> --alert-id <alert_id>
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert.stop`
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
 
@@ -1,25 +1,25 @@
1
1
  # analysis alert update
2
2
 
3
- Use when update 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 update an alert.
6
4
 
7
5
  Command:
8
6
 
9
7
  ```bash
10
- ae-cli analysis alert update [options]
8
+ ae-cli analysis alert update --project-id <project_id> --alert-id <alert_id> --definition-request '<definition_request>'
11
9
  ```
12
10
 
13
11
  Capability id: `analysis.alert.update`
14
12
 
15
13
  Input sends `project_id`, `alert_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.update` 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
- | `--alert-id` | See command help | Yes |
25
- | `--definition-request` | See command help | Yes |
23
+ | `--project-id` | Numeric project ID. | Yes |
24
+ | `--alert-id` | Alert task ID. | Yes |
25
+ | `--definition-request` | Structured alert definition request JSON object using snake_case field names. | Yes |
@@ -0,0 +1,72 @@
1
+ # Analysis data exports
2
+
3
+ Read this after selecting an analysis data export. For a bounded query and local result reading, use [analysis_data_retrieval.md](analysis_data_retrieval.md).
4
+
5
+ Use the matching `export --output <file>` command for full, unknown-size, over-limit, long-running or timed-out query results.
6
+
7
+ Export commands are asynchronous artifact jobs and do not accept
8
+ `--preview-rows`. Native full-download paths retain their existing model/SQL total row
9
+ ceilings.
10
+
11
+ `--artifact-format` selects the logical row format, not compression. Read the returned `format`, `compression`, `file_name`, `content_type`, and `content_encoding`; analysis query exports are currently gzip-compressed even when the logical format is `jsonl` or `csv`.
12
+
13
+ Default and maximum runtime is 21600 seconds (6 hours). Omit `--timeout-seconds` to use that default, or pass a smaller value when the caller explicitly wants an earlier deadline.
14
+
15
+ Choose one lifecycle form:
16
+
17
+ ```bash
18
+ # Submit only. Preserve the returned run_id/artifact_id.
19
+ ae-cli analysis adhoc export ...
20
+
21
+ # Submit, then wait through repeated short inspect requests.
22
+ ae-cli analysis adhoc export ... --wait
23
+
24
+ # Submit, wait, and stream the completed artifact to a local file.
25
+ ae-cli analysis adhoc export ... --output <file>
26
+
27
+ # Resume after interruption, client wait expiry, or a detached shell.
28
+ ae-cli analysis run wait --run-id <run_id> [--output <file>]
29
+ ```
30
+
31
+ `--output` implies `--wait`. `--wait-timeout-seconds` controls only how long the
32
+ current CLI process remains attached; it defaults to 600 seconds and is capped
33
+ at 21600 seconds. The server lifecycle descriptor remains a hard upper bound
34
+ with a short artifact-materialization grace period. Ctrl-C, client wait expiry,
35
+ or a persistent transient network failure stops only local waiting; it never
36
+ cancels the remote run. Resume with the returned `resume_command` or printed
37
+ `analysis run wait` command.
38
+
39
+ Waiting succeeds only for `status=SUCCEEDED` plus
40
+ `artifact_status=COMPLETED`. Run or artifact `FAILED`/`CANCELED` is terminal and
41
+ returns a non-zero error. Unknown states, authorization failures, and 404s fail
42
+ immediately instead of being polled indefinitely.
43
+
44
+ Downloads stream into a temporary file in the destination directory and publish
45
+ the complete file atomically. Existing output paths are refused by default; pass
46
+ `--force` only when replacement is intentional. The primitive commands remain
47
+ available for manual control:
48
+
49
+ ```bash
50
+ ae-cli analysis run inspect --run-id <run_id>
51
+ ae-cli analysis artifact download --run-id <run_id> --artifact-id <artifact_id> --output <file> [--force]
52
+ ```
53
+
54
+ Cancel an async run/export with:
55
+
56
+ ```bash
57
+ ae-cli analysis query cancel --run-id <run_id>
58
+ ```
59
+
60
+ If `analysis run inspect`, `analysis run wait`, or `analysis artifact download` returns HTTP 404 for a valid `run_id` / `artifact_id` from the same export response, treat it as a backend route/capability deployment issue. Do not keep polling or invent download URLs.
61
+
62
+ If the current host returns `CAPABILITY_NOT_FOUND` for a documented command, treat it as host/backend capability unavailability. Do not retry with different JSON shapes or flags; choose another supported path only when it satisfies the user's request, otherwise report the backend gap.
63
+
64
+ Drilldown event/entity/user-event, ad-hoc/report/dashboard model, BI chart,
65
+ user tag/cluster member, and history-tag drilldown exports use Common's
66
+ full-download streaming paths. They accept no `limit`, `offset`, `page_num`, or
67
+ `page_size`, and remain bounded by the existing full-download ceiling. Do not
68
+ collect full data by repeated `list/run` calls.
69
+
70
+ User tag/cluster member and history-tag drilldown exports support both
71
+ `jsonl.gz` and `csv.gz`, defaulting to `jsonl.gz`; format selection does not
72
+ change the native full-download query or introduce paging.
@@ -1,220 +1,56 @@
1
- # analysis data retrieval routing
1
+ # Analysis query results
2
2
 
3
- This is the single routing policy for analysis data retrieval commands. It is scoped to `ae-cli analysis` data queries only; do not generalize it to other `te-cli` business modules.
3
+ Use this reference for analysis query results: ad-hoc, saved reports/boards, BI charts, detail, drilldown and member data. Asset lists, metadata catalogs and configuration commands use their own references.
4
4
 
5
- ## Scope
5
+ ## Run or export
6
6
 
7
- This policy applies to:
7
+ Use `run` for bounded results. For full, unknown-size, over-limit, long-running or timed-out data, select the matching `export --output <file>` and read [export handling](analysis_data_export.md). A complete `run` result saved for local calculation does not need an export.
8
8
 
9
- - `analysis adhoc run` / `analysis adhoc export`
10
- - `analysis report-data run` / `analysis report-data export`
11
- - `analysis dashboard-report-data run` / `analysis dashboard-report-data export`
12
- - `analysis bi-panel-page-data run` / `analysis bi-panel-page-data export`
13
- - `analysis event-detail run` / `analysis event-detail export`
14
- - `analysis entity-detail run` / `analysis entity-detail export`
15
- - `analysis drilldown-events run` / `analysis drilldown-events export`
16
- - `analysis drilldown-entities run` / `analysis drilldown-entities export`
17
- - `analysis drilldown-user-events run` / `analysis drilldown-user-events export`
18
- - `analysis user-cluster-member list` / `analysis user-cluster-member export`
19
- - `analysis user-tag-member list` / `analysis user-tag-member export`
20
- - `analysis history-tag-data run` / `analysis history-tag-data export`
21
- - `analysis history-tag-data-drilldown run` / `analysis history-tag-data-drilldown export`
9
+ Normally pass `--preview-rows 100`; omit it to use the model's configured synchronous limit. An explicit value must fit that runtime limit. Member list commands are the exception: omission returns at most 1000 rows. Summary rows do not consume business-row slots. Detail, drilldown and member previews have no row pagination; `has_more=true` requires export when complete data is needed. Use returned `has_more`, not the number of rows alone, to decide completeness.
22
10
 
23
- This policy does not apply to:
11
+ ## Preserve and interpret results
24
12
 
25
- - `analysis user-cluster list/get`, `analysis user-tag list/get`, create/update/refresh/delete, ID-file operations, and history-tag management commands.
26
- - `analysis-meta`, metadata, DataOps, Community, Engage, or other business modules.
27
- - Report/dashboard/BI asset list commands, catalog exports, definition import/export, or management commands.
13
+ Use the tool response directly for bounded query data and small metadata search results. Save original JSON only when the user requests a file or necessary local processing requires one.
28
14
 
29
- ## Cache policy for report and ad-hoc data
30
-
31
- Apply this cache policy to `analysis adhoc run|export` and
32
- `analysis report-data run|export`:
33
-
34
- - For an ordinary query, omit `--use-cache`; its effective default is `true`.
35
- This allows a cache read but does not prove that the query actually hit a
36
- cache.
37
- - Pass `--use-cache false` only when the user explicitly asks for fresh data,
38
- a refresh or recomputation, to bypass/disable cache, or says the underlying
39
- data was just updated. Words such as "latest" or "current" trigger this only
40
- when they refer to data freshness, not merely to a selected time window.
41
- - When the user explicitly compares with a freshly refreshed analysis UI,
42
- pass `--use-cache false`. A request that merely mentions a report or UI does
43
- not imply this freshness requirement.
44
- - If the user reports that CLI/Agent data differs from the analysis UI, repeat
45
- the same semantic query exactly once with `--use-cache false`. Preserve the
46
- project, asset or model definition, filters, time range, timezone, cluster
47
- route, and other query inputs. Explain that any difference may come from
48
- cache policy or refresh timing; do not enter a retry loop.
49
-
50
- The Agent cannot observe whether another browser session is open, whether a UI
51
- query used cache, or whether the user is demonstrating the product. Never infer
52
- a demo scenario and never change cache policy based only on the audience or
53
- interface. `--use-cache` controls whether cache reads are allowed for this CLI
54
- query; it neither changes the saved asset/UI configuration nor exposes an
55
- actual cache-hit result. Do not claim cache hit or miss unless the response
56
- contains explicit backend evidence.
57
-
58
- ## Decision rule
59
-
60
- Synchronous data commands use `--preview-rows` for the maximum business rows
61
- returned per result. Omit it to use the model's current cluster-configured
62
- synchronous limit; the CLI does not detect an Agent sandbox or inject a smaller
63
- default. Agents should normally pass `--preview-rows 100` to control context and
64
- memory use. Human or script callers may omit it when the native synchronous
65
- result is wanted directly. User tag/cluster member list commands are the
66
- exception: omission returns at most 1000 rows, matching the UI member query.
67
-
68
- Use `run` only when all conditions are true:
69
-
70
- - The user needs an inline preview or immediate JSON result.
71
- - The expected result fits in the chosen synchronous preview.
72
- - The query is expected to finish within the sync timeout window, normally `<=180` seconds.
73
-
74
- The runtime validates an explicit `--preview-rows` against the effective model
75
- or SQL cluster configuration. Do not hard-code one universal maximum. Model
76
- queries reserve their own internal total/summary rows, so the physical query
77
- limit may be `N+M`; these internal rows do not reduce the requested `N` business
78
- rows. SQL/list-shaped queries may fetch one look-ahead row to determine
79
- `has_more`. User tag/cluster member list commands accept explicit values up to
80
- 100000; this does not change their omitted default of 1000.
81
-
82
- The dashboard report-data sync timeout defaults to 180 seconds because one call may execute multiple reports. Other sync analysis data retrieval commands default to 120 seconds. The maximum remains 180 seconds, and an explicitly supplied lower timeout always wins.
83
-
84
- Detail `run` commands (`event-detail run` and `entity-detail run`) support
85
- `--preview-rows`, but not `--limit`, `--offset`, or stable pagination. If
86
- `has_more=true`, switch to the matching `export`.
87
-
88
- User member, history-tag drilldown, and result drilldown `list/run` commands are bounded previews. They do not expose pagination. Use the matching `export` command for full or unknown-size data.
89
-
90
- Use `export` when any condition is true:
91
-
92
- - The user asks for full data, all rows, a downloadable file, or an export.
93
- - The result size is unknown or expected to exceed the chosen preview.
94
- - The query may be long-running or may exceed the sync timeout window.
95
- - A data-query `run` times out.
96
- - The result should be durable and processed from a file instead of printed inline.
97
-
98
- Export commands are asynchronous artifact jobs and do not accept
99
- `--preview-rows`. Native full-download paths retain their existing model/SQL total row
100
- ceilings.
101
-
102
- `--artifact-format` selects the logical row format, not compression. Read the returned `format`, `compression`, `file_name`, `content_type`, and `content_encoding`; analysis query exports are currently gzip-compressed even when the logical format is `jsonl` or `csv`.
103
-
104
- Default and maximum runtime is 21600 seconds (6 hours). Omit `--timeout-seconds` to use that default, or pass a smaller value when the caller explicitly wants an earlier deadline.
105
-
106
- Choose one lifecycle form:
107
-
108
- ```bash
109
- # Submit only. Preserve the returned run_id/artifact_id.
110
- ae-cli analysis adhoc export ...
111
-
112
- # Submit, then wait through repeated short inspect requests.
113
- ae-cli analysis adhoc export ... --wait
114
-
115
- # Submit, wait, and stream the completed artifact to a local file.
116
- ae-cli analysis adhoc export ... --output <file>
15
+ Keep stderr attached to the tool and use the CLI exit status reported by the tool. Do not append `; echo "EXIT:$?"`: the shell would report echo's exit status. Process saved JSON only after the CLI command succeeds. A failure already contains its structured error; correct the reported input before resubmitting. Request IDs, progress and errors are stderr, not JSON data.
117
16
 
118
- # Resume after interruption, client wait expiry, or a detached shell.
119
- ae-cli analysis run wait --run-id <run_id> [--output <file>]
120
- ```
121
-
122
- `--output` implies `--wait`. `--wait-timeout-seconds` controls only how long the
123
- current CLI process remains attached; it defaults to 600 seconds and is capped
124
- at 21600 seconds. The server lifecycle descriptor remains a hard upper bound
125
- with a short artifact-materialization grace period. Ctrl-C, client wait expiry,
126
- or a persistent transient network failure stops only local waiting; it never
127
- cancels the remote run. Resume with the returned `resume_command` or printed
128
- `analysis run wait` command.
129
-
130
- Waiting succeeds only for `status=SUCCEEDED` plus
131
- `artifact_status=COMPLETED`. Run or artifact `FAILED`/`CANCELED` is terminal and
132
- returns a non-zero error. Unknown states, authorization failures, and 404s fail
133
- immediately instead of being polled indefinitely.
134
-
135
- Downloads stream into a temporary file in the destination directory and publish
136
- the complete file atomically. Existing output paths are refused by default; pass
137
- `--force` only when replacement is intentional. The primitive commands remain
138
- available for manual control:
17
+ If result files already exist, the optional reader can inspect all needed files together, including event and retention:
139
18
 
140
19
  ```bash
141
- ae-cli analysis run inspect --run-id <run_id>
142
- ae-cli analysis artifact download --run-id <run_id> --artifact-id <artifact_id> --output <file> [--force]
20
+ python3 <skill-directory>/scripts/read_results.py event.json retention.json
143
21
  ```
144
22
 
145
- Cancel an async run/export with:
23
+ `<skill-directory>` is the directory of the `ae-analysis/SKILL.md` already loaded. Result paths are relative to the current working directory. The reader reports status, scope, warnings, resolved bindings, titles, values and row/column metadata together; use that view directly.
146
24
 
147
- ```bash
148
- ae-cli analysis query cancel --run-id <run_id>
149
- ```
25
+ - The view defaults to 40 rows and 40 columns per file. It already bounds output; keep its complete JSON output so the truncation indicators remain visible.
26
+ - `data.rows[i]` pairs with `data.row_metadata[i]`; an array cell is `data.rows[i][j]`. Preserve column indexes and repeated titles. Event totals and comparison blocks are described in [event results](ai_models/event.md#event-totals-and-comparison-columns); retention row types and Dn columns in [retention results](ai_models/retention.md#returned-rows).
27
+ - `local_view.rows_omitted` and `local_view.truncations` mean the local display omitted content. Increase `--rows`/`--columns` or read the required cells from the same original file. This is separate from upstream `data.has_more`; changing the display needs no new business query.
28
+ - For non-tabular results, use `local_view.structure` and `omitted_data_keys` to read the needed paths from the original file. The reader's exit status reports file-reading success; each `ok`/`error` reports query success.
150
29
 
151
- If `analysis run inspect`, `analysis run wait`, or `analysis artifact download` returns HTTP 404 for a valid `run_id` / `artifact_id` from the same export response, treat it as a backend route/capability deployment issue. Do not keep polling or invent download URLs.
30
+ CLI `--jq` starts at the business payload (`--jq '.rows'`); external jq starts at the saved envelope (`jq '.data.rows' query.json`). A null projection alone does not establish empty data. On `OUTPUT_PROJECTION_FAILED`, stdout retains the original `data` and `meta` in an error envelope and the CLI exits non-zero. Fix the local projection using that returned data.
152
31
 
153
- If the current host returns `CAPABILITY_NOT_FOUND` for a documented command, treat it as host/backend capability unavailability. Do not retry with different JSON shapes or flags; choose another supported path only when it satisfies the user's request, otherwise report the backend gap.
32
+ ## Local calculation
154
33
 
155
- Drilldown event/entity/user-event, ad-hoc/report/dashboard model, BI chart,
156
- user tag/cluster member, and history-tag drilldown exports use Common's
157
- full-download streaming paths. They accept no `limit`, `offset`, `page_num`, or
158
- `page_size`, and remain bounded by the existing full-download ceiling. Do not
159
- collect full data by repeated `list/run` calls.
34
+ Compute only the missing requested values, together, and print them. Select measure cells by the actual titles, dates and scope; keep labels and IDs as strings. For JSON numeric literals and numeric strings:
160
35
 
161
- User tag/cluster member and history-tag drilldown exports support both
162
- `jsonl.gz` and `csv.gz`, defaulting to `jsonl.gz`; format selection does not
163
- change the native full-download query or introduce paging.
36
+ ```python
37
+ import json
38
+ from decimal import Decimal
164
39
 
165
- ## Follow-up context
166
-
167
- Only synchronous `adhoc run`, `report-data run`, and `dashboard-report-data run`
168
- previews with at least one available follow-up action create `query_context_id`
169
- and compact `sources[]` summaries. SQL, BI SQL, unsupported models, and previews
170
- without a drillable analysis angle do not create a useless context. Exports and
171
- downloaded artifacts never create this context and never expand the selectable
172
- result. The Common/UI synchronous result is the drilldown boundary.
173
-
174
- Before composing a follow-up coordinate, call `analysis query-context get` with
175
- the returned `query_context_id` and, for multi-source results, one exact source
176
- selector from the compact summary. The command reads the full row, column, and
177
- metric options already stored for that preview; it does not rerun the query.
178
-
179
- Follow-up commands are allowed only when the compact source summary advertises the exact action. Read [`analysis_drilldown_contract.md`](analysis_drilldown_contract.md), fetch full options with `analysis query-context get`, select only those returned row/column/metric options, and never infer source IDs, dates, groups, model fields, or analysis angles from display text.
180
-
181
- Pass the original `--project-id` with every query-context or drilldown-context follow-up. Gateway uses it for project authorization, and Common rejects it if it does not match the project stored by the context ID.
182
-
183
- When present, compare `effective_time_range` with `data_time_range`. `effective_time_range` is the resolved query scope, while `data_time_range` is the observed returned-row range. `clipping_reasons=[]` means the gateway applied no silent range cap; a narrower `data_time_range` then reflects available/returned data rather than a gateway range clamp.
184
-
185
- Use that synchronous `query_context_id` for the advertised action only:
186
-
187
- - `analysis drilldown-events run` or `analysis drilldown-events export`
188
- - `analysis drilldown-entities run` or `analysis drilldown-entities export`
189
- - `analysis query create-result-cluster`
190
-
191
- Do not reconstruct or pass raw QP for follow-up drilldown or result-cluster creation.
192
-
193
- If the synchronous response does not include `query_context_id` and the required
194
- action, or `analysis query-context get` does not return the required selectable
195
- options, stop before drilldown/result-cluster commands. Report that this preview
196
- does not expose that follow-up.
40
+ # Set response_json to the actual returned JSON text before running this example.
41
+ data = json.loads(response_json, parse_float=Decimal)["data"]
42
+ # Select the measure cell from the returned row/column structure.
43
+ value = Decimal(str(data["rows"][row_index][column_index]))
44
+ ```
197
45
 
198
- For sync `run`, trust Common's `has_more`. Common uses model totals or one extra
199
- lookahead business unit at the requested `preview_rows` boundary, or at that
200
- model's configured boundary when `preview_rows` is omitted. The lookahead unit
201
- is never returned, and reaching the boundary alone does not imply
202
- `has_more=true`. Use `export` whenever completeness matters.
46
+ Convert selected cells before summing or dividing; handle missing values and a zero denominator. The reader displays decimal numbers as strings; calculate from the original JSON. Print Decimal output with `json.dumps(..., default=str)`. Correct a local calculation using the same data and reuse completed values.
203
47
 
204
- ## BI page data note
48
+ ## Cache policy for report and ad-hoc data
205
49
 
206
- `analysis bi-panel-page-data run --result-type charts` supports
207
- `--preview-rows` per chart and has no row pagination contract. A configured
208
- chart top-N still applies as a semantic chart limit. Summary is rendered
209
- presentation data, is available only from `run`, and rejects `--preview-rows`.
50
+ For an ordinary query, omit `--use-cache`; the default permits cache reads but does not prove a cache hit. Use `--use-cache false` for an explicit request for fresh data, refresh or recomputation, bypass/disable cache, newly updated data, or comparison with a freshly refreshed analysis UI. “Latest” or “current” only implies this when it means data freshness, not a time window.
210
51
 
211
- Use `export --result-type charts` for complete, unknown-size, timed-out, or
212
- long-running chart data. Common streams rows directly under
213
- `model_full_download_limit`.
52
+ If the user reports that the result differs from the analysis UI, repeat the same semantic query exactly once with `--use-cache false`. Keep the project, definition, filters, time range, timezone and cluster route. Explain that cache policy or refresh timing may account for a difference. Claim a cache hit or miss only from explicit backend evidence.
214
53
 
215
- User tag-member, cluster-member, and history-tag drilldown exports call their
216
- native full-download SQL paths and stream CSV rows directly into a gzip artifact.
217
- These exports support `--property-names`, but do not support the preview-only
218
- `--fields`, `--query`, or `--use-cache` options.
54
+ ## Follow-up
219
55
 
220
- BI SQL page/chart data does not support this analysis drilldown contract.
56
+ When the user needs a follow-up action advertised in synchronous `sources[]`, read [the drilldown contract](analysis_drilldown_contract.md). Use the returned `query_context_id` and original project ID. An export file provides data, not selectable drilldown coordinates.