@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
package/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ae-cli
4
4
 
5
- `ae-cli` is the command-line client for the ThinkingAI AgenticEngine (AE) platform. It provides stable, structured interfaces for both AI Agents and human operators across analytics, experimentation, metadata, tracking, Engage, DataOps, knowledge bases, Agent resources, and system administration.
5
+ `ae-cli` is the command-line client for the ThinkingAI AgenticEngine (AE) platform. It provides stable, structured interfaces for both AI Agents and human operators across analytics, experimentation, project configuration, metadata, tracking, local-data ingestion, Engage, DataOps, knowledge bases, Agent resources, user memory, and system administration.
6
6
 
7
7
  The CLI is designed around:
8
8
 
@@ -101,31 +101,50 @@ ae-cli capability run analysis.dashboard.list --input '{"project_id":1}'
101
101
  ae-cli capability list --domain analysis --jq '.data.capabilities[] | .id'
102
102
  ```
103
103
 
104
- ## Command Surface
105
-
106
- Run `ae-cli --help` or `ae-cli <command> --help` for the authoritative command list.
107
-
108
- | Command or domain | Purpose |
109
- |---|---|
110
- | `analysis` | Reports, dashboards, ad-hoc analysis, drilldowns, details, alerts, and analysis schemas |
111
- | `experiment` | Atlas experiments, reports, traffic layers, buckets, Features, metrics, and operation logs |
112
- | `analysis-meta` | Event/property metadata, metrics, virtual metadata, tracking governance, and project configuration |
113
- | `analysis-governance` | Asset search, lineage, impact analysis, and governance operations |
114
- | `metadata` | Capability-backed data-table and property operations |
115
- | `tracking` | Tracking-plan lifecycle, SDK samples, checks, ingestion diagnostics, code generation, and bundled wiki |
116
- | `engage-flow`, `engage-task`, `engage-setting`, `engage-scene`, `engage-activity`, `engage-workbench` | Engage flows, tasks, settings, strategies, activities, and workbench operations |
117
- | `community` | Community posts, comments, topics, sentiment, livestream, and report workflows |
118
- | `dataops_repo`, `dataops_datatable`, `dataops_flow`, `dataops_ide`, `dataops_integration`, `dataops_operations` | Data warehouse, data-table, flow, IDE, integration, and operations workflows |
119
- | `kb` | Knowledge-base lifecycle, LLM query, and deterministic index/grep/read retrieval |
120
- | `agent` | Agents, automations, models, MCP servers, Skills, attachments, credentials, and sandbox tools |
121
- | `system` | Root/admin operations for members, sandboxes, shared tools, models, usage, quotas, and IM channels |
122
- | `team` | Agent Team lifecycle and TeamRun execution, chat, result, and artifact workflows |
123
- | `capability` | Capability discovery, schema inspection, validation, dry-run, and generic execution |
124
- | `auth`, `config` | Host-scoped authentication and multi-environment configuration |
125
- | `api` | Raw authenticated HTTP requests for diagnostic or transitional use |
126
- | `sync` | Push or pull local Skills and MCPs to/from the Agent application |
127
- | `model` | Switch the current workspace model inside an Agent sandbox |
128
- | `update` | Synchronize CLI and Skills to the version required by the current host |
104
+ ## Command Map
105
+
106
+ The table covers every current root command individually. Use `ae-cli --help` for root commands and `ae-cli <command> --help` for the next resource or operation; append `--help` at deeper levels, for example `ae-cli project member --help`. Discover server-provided operations with `ae-cli capability list|search|inspect`.
107
+
108
+ <!-- root-command-surface:start -->
109
+ | Category | Root command | Purpose |
110
+ |---|---|---|
111
+ | Analysis and projects | `analysis` | Reports, dashboards, ad-hoc analysis, drilldowns, details, alerts, tags, and cohorts |
112
+ | Analysis and projects | `experiment` | Atlas experiments, reports, traffic layers, buckets, Features, metrics, and operation logs |
113
+ | Analysis and projects | `analysis-meta` | Event/property catalogs, metrics, virtual metadata, tracking governance, and project analysis settings |
114
+ | Analysis and projects | `analysis-governance` | Data-asset search, lineage, impact analysis, certification, and governance |
115
+ | Analysis and projects | `project` | Project information, members, roles, permissions, entities, time zones, and handover settings |
116
+ | Analysis and projects | `metadata` | Capability-backed data-table, property, and dimension-table binding operations |
117
+ | Analysis and projects | `personal-semantic-preference` | Project-scoped lightweight semantic preferences for the current user |
118
+ | Analysis and projects | `project-semantic` | Governed project semantics, knowledge-base asset packages, candidate validation, review, and publishing |
119
+ | Data and tracking | `tracking` | Tracking plans, SDK samples, checks, ingestion diagnostics, code generation, and bundled wiki |
120
+ | Data and tracking | `data-integration` | Inspect, plan, convert, upload, hand off, and reuse local CSV/JSON/Excel data |
121
+ | Community insights | `community` | Community posts, comments, topics, sentiment, livestream, and report workflows |
122
+ | Engage | `engage-flow` | Engage flow management |
123
+ | Engage | `engage-task` | Engage task and delivery-content management |
124
+ | Engage | `engage-setting` | Channel, audience, and Engage settings |
125
+ | Engage | `engage-scene` | Engage scene and strategy management |
126
+ | Engage | `engage-activity` | Activity, topic, and related task management |
127
+ | Engage | `engage-workbench` | Engage workbench and to-do management |
128
+ | Engage | `engage-query` | Engage queries, asynchronous exports, and artifact management |
129
+ | DataOps | `dataops_repo` | Data-warehouse and data-source management |
130
+ | DataOps | `dataops_datatable` | Data-table lifecycle management |
131
+ | DataOps | `dataops_flow` | Development flows, scheduling, and backfill-job management |
132
+ | DataOps | `dataops_ide` | IDE queries and result downloads |
133
+ | DataOps | `dataops_integration` | Data-integration task management |
134
+ | DataOps | `dataops_operations` | Operations, monitoring, and alert workflows |
135
+ | Agent platform | `kb` | Knowledge-base lifecycle, LLM Q&A, and deterministic index/grep/read retrieval |
136
+ | Agent platform | `agent` | Agents, approvals, automations, models, MCP servers, Skills, attachments, credentials, and sandbox tools |
137
+ | Agent platform | `context` | Read the current product-page context authorized for the active Agent Run |
138
+ | Agent platform | `memory` | User memory, Top-K context writing, and actual-usage accounting |
139
+ | Agent platform | `team` | Agent Team and TeamRun execution, chat, results, and artifacts |
140
+ | Agent platform | `system` | Root/admin management of members, sandboxes, tools, models, usage, quotas, and channels |
141
+ | General tools | `capability` | Capability discovery, schema inspection, validation, dry-run, and generic execution |
142
+ | General tools | `auth` | Host-scoped login, status, and multi-account management |
143
+ | General tools | `config` | Add, switch, rename, and remove Host environments |
144
+ | General tools | `sync` | Push or pull local Skills and MCPs to/from the Agent application |
145
+ | General tools | `model` | Inspect and switch the current workspace model inside an Agent sandbox |
146
+ | General tools | `update` | Synchronize CLI and Skills to the version required by the current Host |
147
+ <!-- root-command-surface:end -->
129
148
 
130
149
  ## Capability Gateway
131
150
 
@@ -146,16 +165,24 @@ Use `validate` while fixing complex nested input. Use `dry-run` when you need th
146
165
 
147
166
  Gateway-backed features follow the [Capability command admission rules](docs/capability-command-admission.md). Common workflows may have curated commands; long-tail capabilities remain dynamically discoverable.
148
167
 
168
+ `analysis user-tag create|update` supports periodic refresh in one command: pass `--auto-refresh-schedule '{"frequency":"daily","time":"02:30"}'` (also weekly/monthly), or `--auto-refresh-cron`. Use `--enable-auto-refresh false` to disable it. Scheduling-only updates do not recompute; omitted settings preserve the existing plan. See the [tag create](skills/ae-analysis/references/user_tag_create.md) and [tag update](skills/ae-analysis/references/user_tag_update.md) references.
169
+
149
170
  ## Authentication and Environments
150
171
 
151
172
  Credentials are stored per host. Switching environments does not reuse a token from another host.
152
173
  Run `ae-cli config` in a terminal to add, activate, rename, or remove environments interactively.
174
+ Run `ae-cli auth` to choose the active account for the current host interactively. `ae-cli auth use` opens the same selector when `--account` is omitted.
153
175
  For scripts and agents, use the non-interactive subcommands:
154
176
 
155
177
  ```bash
156
178
  ae-cli auth login --host https://host-a.example.com
157
179
  ae-cli auth status --host https://host-a.example.com
180
+ # For the uncommon case where one Host needs multiple accounts
181
+ ae-cli auth login --host https://host-a.example.com --add
182
+ ae-cli auth list --host https://host-a.example.com
183
+ ae-cli auth use --host https://host-a.example.com --account <login-name-or-open-id>
158
184
  ae-cli auth logout --host https://host-a.example.com
185
+ ae-cli auth logout --host https://host-a.example.com --all
159
186
 
160
187
  ae-cli config list
161
188
  ae-cli config current
@@ -167,6 +194,10 @@ ae-cli config remove pre-production --yes
167
194
 
168
195
  `<env>` accepts either an exact URL or a unique label. The active environment is clearly marked in the interactive manager and in `config list`. Removing an active environment is rejected while other environments remain; switch first so replacement is explicit. `config set-host` remains available as a compatibility command that adds or updates a host and activates it.
169
196
 
197
+ A regular `auth login` keeps the simple one-Host/one-account behavior and replaces credentials for that Host; use `--add` only when other accounts must be retained. `auth status` reports CLI-token state only. A new backend can also provide account identity and expiration; when an older backend does not support `/validate`, the CLI preserves the historical behavior of trusting the stored CLI token and omits `account` instead of returning null fields.
198
+
199
+ The new CLI persists only CLI tokens, never access or refresh tokens. Multiple accounts live in an encrypted V1 vault while the active account is projected into the historical file shape for automatic downgrades. When the CLI upgrades again, it reconciles login, switch, or logout changes made by the old CLI.
200
+
170
201
  Login uses a cross-platform device-code flow. Use `--no-browser` when the environment cannot open a browser.
171
202
  Trial guidance is emitted only when no Host is configured; normal commands and authentication flows for configured environments do not display it.
172
203
 
@@ -198,23 +229,35 @@ Manage the server-side knowledge-base lifecycle:
198
229
 
199
230
  ```bash
200
231
  ae-cli kb +new --scope company --name engineering-handbook --description "Team docs"
201
- ae-cli kb +add --name engineering-handbook --files '["./docs/guide.md","https://example.com/page"]'
202
- ae-cli kb +schema --name engineering-handbook
203
- ae-cli kb +compile --name engineering-handbook
204
- ae-cli kb +status --name engineering-handbook
232
+ ae-cli kb +import --file ./knowledge-base.zip --name "Imported handbook"
233
+ ae-cli kb +import-status --request-id <requestId>
234
+ ae-cli kb +add --name engineering-handbook --scope company --files '["./docs/guide.md","https://example.com/page"]'
235
+ ae-cli kb +list-sources --name engineering-handbook --scope company
236
+ ae-cli kb +rm-source --name engineering-handbook --scope company --id <source-id>
237
+ # Legacy compatibility when a source ID is unavailable:
238
+ ae-cli kb +rm-source --name engineering-handbook --scope company --display-name kb-1780046712-guide.md
239
+ ae-cli kb +schema --name engineering-handbook --scope company --model <model-ref>
240
+ ae-cli kb +compile --name engineering-handbook --scope company --model <model-ref>
241
+ ae-cli kb +status --name engineering-handbook --scope company
205
242
  ae-cli kb +ask -q "How is the sandbox configured?"
206
243
  # Submit only, poll later:
207
244
  ae-cli kb +ask -q "Another question" --no-wait
208
245
  ae-cli kb +ask-status --execution-id <id>
209
246
  ```
210
247
 
248
+ `kb +list-sources` returns stable source `id` values. Copy the exact `id` into `kb +rm-source`; do not guess it from a filename or URL. The `--display-name` selector remains available only for legacy compatibility when an ID is unavailable.
249
+
250
+ Name-based management commands accept optional `--scope personal|company`; omit it to keep the legacy personal-to-company lookup. For Schema and Compile, prefer the model record `id` from `ae-cli agent +list-models`; historical `modelId` and `modelId::scope` remain compatible, while `displayName` is not a stable reference.
251
+
252
+ `kb +import` accepts a compiled Markdown ZIP up to 50 MB with root `index.md` and `wiki/**/*.md` pages. It returns `{requestId, status: "queued"}` immediately; use `ae-cli kb +import-status --request-id <requestId>` to read `queued`, `running`, `succeeded`, or `failed`. A succeeded personal read-only snapshot supports list, Index/Wiki, grep/read, Ask, and delete operations; source, Schema, usage, compile, member/settings, ownership transfer, and company publication are unavailable.
253
+
211
254
  External Agents can use deterministic retrieval without a server-side LLM:
212
255
 
213
256
  ```bash
214
257
  ae-cli kb +list
215
258
  ae-cli kb +index --sources '[{"scope":"company","name":"engineering-handbook"}]'
216
259
  ae-cli kb +grep -q "sandbox config" --sources '[{"scope":"company","name":"engineering-handbook"}]' --paths '["wiki/sandbox.md"]'
217
- ae-cli kb +read --source '{"scope":"company","name":"engineering-handbook"}' --path "wiki/sandbox.md"
260
+ ae-cli kb +read --source '{"scope":"company","name":"engineering-handbook"}' --path "wiki/sandbox.md" --limit 2000 --expand block
218
261
  ```
219
262
 
220
263
  ## Agent and System Administration
@@ -228,19 +271,32 @@ ae-cli agent +list-mcps
228
271
  ae-cli agent +list-skills
229
272
  ae-cli agent +list-automations
230
273
  ae-cli agent +list-attachments
274
+ ae-cli agent approval-type list
275
+ ae-cli agent approval-request list --status pending
276
+ ae-cli agent approval-task list --status pending
277
+ ae-cli agent approval-effect list --status manual_required
231
278
  ```
232
279
 
233
- The `system` domain calls administrative `/api/admin/**` endpoints and requires a `root` or `agent_admin` role:
280
+ Generic approval commands use versioned CLI-token REST under the Agent application's `/agent` base path. Use `approval-type get` before submitting type-specific snake_case payloads. Effect retry is a `high-risk-write` and requires an auditable reason plus explicit `--yes`. Write-command `--dry-run` output is a local request preview only; it does not verify server permissions, current state, or future conditional routing.
281
+
282
+ The `system` domain calls administrative `/api/admin/**` and versioned channel `/api/cli/channel/v1/**` endpoints and requires a `root` or `agent_admin` role:
234
283
 
235
284
  ```bash
236
285
  ae-cli system +list-members --status enabled
237
286
  ae-cli system +list-sandboxes
238
- ae-cli system +get-usage-summary --days 30
287
+ ae-cli system +get-sandbox-config
288
+ ae-cli system +get-usage-summary --days 30 --refresh true
289
+ ae-cli system +export-usage --start-date 2026-07-01 --end-date 2026-07-31 --group-by user --output ./system-usage.csv
239
290
  ae-cli system +list-quota-rules
240
291
  ae-cli system +list-channels
292
+ ae-cli system channel routing get --endpoint-id <endpoint-id>
293
+ ae-cli --dry-run system +bind-feishu-users --channel-id <channel-id> --endpoint-id <endpoint-id> --bindings @bindings.json
294
+ ae-cli system +list-sandbox-tools
241
295
  ```
242
296
 
243
- Authorization is always enforced by the server. Do not retry or bypass a permission error.
297
+ The system domain now exposes 71 commands across members, sandboxes, shared sandbox tools, models and pricing, usage drill-down/CSV export, cost controls, quotas, and channels. Channel management covers nine channel types, endpoint routing, WhatsApp Web QR linking, and 1-100 item Feishu binding batches with per-item results and optional default/per-user Agent assignment. CSV exports stream to a required local path, never overwrite an existing file, and remove partial files on failure.
298
+
299
+ Authorization and company/resource ownership are always enforced by the server. A missing CLI command is not an access-control boundary: an Agent with Bash/network access can still construct HTTP requests. Do not retry or bypass a permission error, do not use excluded internal member-delete or sandbox-orchestration routes, and obtain explicit user confirmation before every administrative write. Skill instructions, dry-run, and the CLI confirmation prompt are safeguards against mistakes, not substitutes for server authorization; `--yes` bypasses that prompt.
244
300
 
245
301
  ## Agent Skills
246
302
 
@@ -250,13 +306,13 @@ The npm package includes the same `skills/` directory used by the public reposit
250
306
  |---|---|
251
307
  | `ae-capability` | Capability discovery and generic invocation |
252
308
  | `ae-analysis`, `ae-analysis-global` | Analysis, audience, metadata, governance, and multi-cluster workflows |
253
- | `ae-experiment` | Atlas experiment, Feature, metric, traffic-layer, and report workflows |
254
309
  | `ae-metadata` | Capability-backed metadata data-table operations |
255
310
  | `ae-engage` | Engage operations and workflow guidance |
256
311
  | `ae-dataops` | Data warehouse, flow, IDE, integration, and operations |
257
312
  | `ae-community` | Community analysis and reporting |
258
- | `ae-kb` | Knowledge-base lifecycle and retrieval |
259
- | `ae-agent`, `ae-system`, `ae-team` | Agent resources, administration, and TeamRun workflows |
313
+ | `ae-data-integration` | Local CSV/JSON/Excel inspection, mapping, conversion, upload, and reusable handoff |
314
+ | `ae-kb`, `ae-kb-discovery` | Knowledge-base lifecycle, Q&A, deterministic retrieval, and read-only knowledge-base discovery |
315
+ | `ae-agent`, `ae-system`, `ae-team` | Agent resources and user memory, administration, and TeamRun workflows |
260
316
  | `ae-generate-tracking-plan`, `ae-generate-tracking-code` | Tracking-plan and tracking-code generation |
261
317
  | `ae-data-integration-helper` | SDK and LogBus2 integration guidance |
262
318
 
@@ -288,7 +344,6 @@ Core structure:
288
344
  src/
289
345
  ├── core/ # auth, config, clients, compatibility, version sync
290
346
  ├── framework/ # command registration, lifecycle, output, errors
291
- ├── api/ # raw authenticated API access
292
347
  └── commands/ # business domains and CLI utilities
293
348
  skills/ # Agent Skills shipped with the npm package
294
349
  self-check/ # release and documentation consistency checks
@@ -299,10 +354,13 @@ Useful verification commands:
299
354
 
300
355
  ```bash
301
356
  npm run build
357
+ npm test
302
358
  npm run qa-changed
303
359
  npm run self-check
304
360
  npm run check:release
305
361
  npm run verify:experiment-tools
362
+ npm run verify:readme
363
+ npm run verify:auth-credentials
306
364
  npm run verify:update-check
307
365
  npm run verify:version-sync
308
366
  ```
package/README.zh.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  # ae-cli
4
4
 
5
- `ae-cli` 是 ThinkingAI AgenticEngine(AE)平台的命令行客户端,为 AI Agent 和人工操作提供稳定、结构化的接口,覆盖分析、实验、元数据、埋点、运营、DataOps、知识库、Agent 资源及系统管理。
5
+ `ae-cli` 是 ThinkingAI AgenticEngine(AE)平台的命令行客户端,为 AI Agent 和人工操作提供稳定、结构化的接口,覆盖分析、实验、项目配置、元数据、埋点、本地数据接入、运营、DataOps、知识库、Agent 资源、用户记忆及系统管理。
6
6
 
7
7
  CLI 的核心设计包括:
8
8
 
@@ -105,31 +105,50 @@ ae-cli capability run analysis.dashboard.list --input '{"project_id":1}'
105
105
  ae-cli capability list --domain analysis --jq '.data.capabilities[] | .id'
106
106
  ```
107
107
 
108
- ## 命令范围
109
-
110
- 运行 `ae-cli --help` `ae-cli <command> --help` 获取权威命令清单。
111
-
112
- | 命令或业务域 | 用途 |
113
- |---|---|
114
- | `analysis` | 报告、看板、即席分析、下钻、详情、告警和分析模型 |
115
- | `experiment` | Atlas 实验、报表、流量层、分桶、Feature、指标和操作日志 |
116
- | `analysis-meta` | 事件/属性元数据、指标、虚拟元数据、埋点治理和项目配置 |
117
- | `analysis-governance` | 资产搜索、血缘、影响分析和治理操作 |
118
- | `metadata` | 基于 Capability Gateway 的数据表和属性操作 |
119
- | `tracking` | 埋点方案生命周期、SDK 示例、检查、采集诊断、代码生成和内置 Wiki |
120
- | `engage-flow`、`engage-task`、`engage-setting`、`engage-scene`、`engage-activity`、`engage-workbench` | 运营流程、任务、设置、策略、活动和工作台 |
121
- | `community` | 社区帖子、评论、话题、情感、直播和报告工作流 |
122
- | `dataops_repo`、`dataops_datatable`、`dataops_flow`、`dataops_ide`、`dataops_integration`、`dataops_operations` | 数仓、数据表、任务流、IDE、数据集成和运维工作流 |
123
- | `kb` | 知识库生命周期、LLM 查询及确定性的 index/grep/read 检索 |
124
- | `agent` | Agent、自动化、模型、MCP、Skills、附件、凭证和沙盒工具 |
125
- | `system` | root/admin 的成员、沙盒、共享工具、模型、用量、配额和 IM 渠道管理 |
126
- | `team` | Agent Team 生命周期,以及 TeamRun 执行、对话、结果和产物 |
127
- | `capability` | 能力发现、Schema 查看、参数校验、dry-run 和通用执行 |
128
- | `auth`、`config` | Host 隔离的认证和多环境配置 |
129
- | `api` | 用于诊断或过渡场景的原始认证 HTTP 请求 |
130
- | `sync` | 在本地工作区与 Agent 应用之间推送或拉取 Skills 和 MCP |
131
- | `model` | Agent 沙盒中切换当前工作区模型 |
132
- | `update` | CLI 和 Skills 同步到当前 Host 要求的版本 |
108
+ ## 命令地图
109
+
110
+ 下表逐项覆盖当前所有根命令。使用 `ae-cli --help` 查看根命令,使用 `ae-cli <命令> --help` 查看下一层资源或操作;层级命令可以继续追加 `--help`,例如 `ae-cli project member --help`。服务端动态能力通过 `ae-cli capability list|search|inspect` 发现。
111
+
112
+ <!-- root-command-surface:start -->
113
+ | 类别 | 根命令 | 用途 |
114
+ |---|---|---|
115
+ | 分析与项目 | `analysis` | 报告、看板、即席分析、下钻、详情、告警、标签和分群 |
116
+ | 分析与项目 | `experiment` | Atlas 实验、报表、流量层、分桶、Feature、指标和操作日志 |
117
+ | 分析与项目 | `analysis-meta` | 事件/属性目录、指标、虚拟元数据、埋点治理和项目分析配置 |
118
+ | 分析与项目 | `analysis-governance` | 数据资产搜索、血缘、影响分析、认证和治理 |
119
+ | 分析与项目 | `project` | 项目信息、成员、角色、权限、实体、时区和交接配置 |
120
+ | 分析与项目 | `metadata` | 基于 Capability Gateway 的数据表、属性及维度表绑定 |
121
+ | 分析与项目 | `personal-semantic-preference` | 当前用户按项目维护轻量个人语义偏好 |
122
+ | 分析与项目 | `project-semantic` | 项目语义治理、知识库资产包、候选校验、审核和发布 |
123
+ | 数据与埋点 | `tracking` | 埋点方案、SDK 示例、检查、采集诊断、代码生成和内置 Wiki |
124
+ | 数据与埋点 | `data-integration` | 检查、规划、转换、上传、交接和复用本地 CSV/JSON/Excel 数据 |
125
+ | 社区洞察 | `community` | 社区帖子、评论、话题、情感、直播和报告工作流 |
126
+ | 运营 | `engage-flow` | 运营流程管理 |
127
+ | 运营 | `engage-task` | 运营任务及触达内容管理 |
128
+ | 运营 | `engage-setting` | 渠道、受众和运营设置 |
129
+ | 运营 | `engage-scene` | 运营场景和策略管理 |
130
+ | 运营 | `engage-activity` | 活动、专题及其任务管理 |
131
+ | 运营 | `engage-workbench` | 运营工作台和待办管理 |
132
+ | 运营 | `engage-query` | 运营查询、异步导出和产物管理 |
133
+ | DataOps | `dataops_repo` | 数仓和数据源管理 |
134
+ | DataOps | `dataops_datatable` | 数据表生命周期管理 |
135
+ | DataOps | `dataops_flow` | 开发流程、调度和补数作业管理 |
136
+ | DataOps | `dataops_ide` | IDE 查询及结果下载 |
137
+ | DataOps | `dataops_integration` | 数据集成任务管理 |
138
+ | DataOps | `dataops_operations` | 运维、监控和告警工作流 |
139
+ | Agent 平台 | `kb` | 知识库生命周期、LLM 问答及确定性的 index/grep/read 检索 |
140
+ | Agent 平台 | `agent` | Agent、审批、自动化、模型、MCP、Skills、附件、凭证和沙盒工具 |
141
+ | Agent 平台 | `context` | 读取当前 Agent Run 已授权的产品页面上下文 |
142
+ | Agent 平台 | `memory` | 用户记忆、Top-K 上下文写入和实际采用计数 |
143
+ | Agent 平台 | `team` | Agent Team 和 TeamRun 的执行、对话、结果及产物 |
144
+ | Agent 平台 | `system` | root/admin 的成员、沙盒、工具、模型、用量、配额和渠道管理 |
145
+ | 通用工具 | `capability` | 能力发现、Schema 查看、参数校验、dry-run 和通用执行 |
146
+ | 通用工具 | `auth` | 按 Host 登录、查看状态及管理同一 Host 的多个账号 |
147
+ | 通用工具 | `config` | 添加、切换、重命名和删除 Host 环境 |
148
+ | 通用工具 | `sync` | 在本地工作区与 Agent 应用之间推送或拉取 Skills 和 MCP |
149
+ | 通用工具 | `model` | 在 Agent 沙盒中查看并切换当前工作区模型 |
150
+ | 通用工具 | `update` | 将 CLI 和 Skills 同步到当前 Host 要求的版本 |
151
+ <!-- root-command-surface:end -->
133
152
 
134
153
  ## Capability Gateway
135
154
 
@@ -150,16 +169,24 @@ ae-cli capability run analysis.report.list --input input.json
150
169
 
151
170
  Gateway 命令遵循 [Capability 命令收录规则](docs/capability-command-admission.md)。常见工作流可以提供精选命令,长尾能力则保持动态发现。
152
171
 
172
+ `analysis user-tag create|update` 支持一次配置自动更新:传入 `--auto-refresh-schedule '{"frequency":"daily","time":"02:30"}'`(也支持每周、每月),或使用 `--auto-refresh-cron`。用 `--enable-auto-refresh false` 关闭自动更新。仅修改调度计划不触发即时重算;省略调度参数则保留原计划。详见[创建标签](skills/ae-analysis/references/user_tag_create.md)和[更新标签](skills/ae-analysis/references/user_tag_update.md)。
173
+
153
174
  ## 认证与多环境
154
175
 
155
176
  凭证按 Host 独立存储,切换环境不会复用其他 Host 的 token。
156
177
  在终端运行 `ae-cli config`,可以交互式添加、激活、重命名或删除环境。
178
+ 运行 `ae-cli auth` 可以交互式选择当前 Host 的 active 账号;省略 `--account` 的 `ae-cli auth use` 也会打开同一个选择器。
157
179
  脚本和 Agent 应使用非交互子命令:
158
180
 
159
181
  ```bash
160
182
  ae-cli auth login --host https://host-a.example.com
161
183
  ae-cli auth status --host https://host-a.example.com
184
+ # 少量需要同一 Host 多账号的场景
185
+ ae-cli auth login --host https://host-a.example.com --add
186
+ ae-cli auth list --host https://host-a.example.com
187
+ ae-cli auth use --host https://host-a.example.com --account <login-name-or-open-id>
162
188
  ae-cli auth logout --host https://host-a.example.com
189
+ ae-cli auth logout --host https://host-a.example.com --all
163
190
 
164
191
  ae-cli config list
165
192
  ae-cli config current
@@ -171,6 +198,10 @@ ae-cli config remove pre-production --yes
171
198
 
172
199
  `<env>` 可以是完整 URL 或唯一 label。交互管理器和 `config list` 都会明确标识 active 环境。当还存在其他环境时,不允许直接删除 active 环境;应先显式切换。`config set-host` 作为兼容命令继续保留,其语义是添加或更新 Host 并立即激活。
173
200
 
201
+ 普通 `auth login` 保持一个 Host 一个账号的简单语义,并替换该 Host 已保存的账号;仅在需要时使用 `--add` 保留其他账号。`auth status` 只展示 CLI Token 状态;新版后端可同时返回账号和到期时间,旧版后端不支持 `/validate` 时仍按历史行为信任本地 CLI Token,且不会输出含 null 字段的 `account`。
202
+
203
+ 新版 CLI 只持久化 CLI Token,不保存 access token 或 refresh token。多账号保存在加密的 V1 凭据文件中,同时维护旧文件格式的当前账号投影,保证 CLI 自动降级后仍可登录;再次升级时会合并旧 CLI 对投影的登录、切换或退出变更。
204
+
174
205
  登录使用跨平台设备码流程。当前环境无法打开浏览器时,可使用 `--no-browser`。
175
206
  试用引导仅在尚未配置 Host 时出现;已配置环境的正常命令和认证流程不会展示该提示。
176
207
 
@@ -202,23 +233,35 @@ JSON 参数通常支持内联 JSON、`@file`、文件路径或通过 `-` 从 std
202
233
 
203
234
  ```bash
204
235
  ae-cli kb +new --scope company --name engineering-handbook --description "Team docs"
205
- ae-cli kb +add --name engineering-handbook --files '["./docs/guide.md","https://example.com/page"]'
206
- ae-cli kb +schema --name engineering-handbook
207
- ae-cli kb +compile --name engineering-handbook
208
- ae-cli kb +status --name engineering-handbook
236
+ ae-cli kb +import --file ./knowledge-base.zip --name "Imported handbook"
237
+ ae-cli kb +import-status --request-id <requestId>
238
+ ae-cli kb +add --name engineering-handbook --scope company --files '["./docs/guide.md","https://example.com/page"]'
239
+ ae-cli kb +list-sources --name engineering-handbook --scope company
240
+ ae-cli kb +rm-source --name engineering-handbook --scope company --id <source-id>
241
+ # 兼容旧命令:无法取得来源 ID 时仍可使用精确展示名
242
+ ae-cli kb +rm-source --name engineering-handbook --scope company --display-name kb-1780046712-guide.md
243
+ ae-cli kb +schema --name engineering-handbook --scope company --model <model-ref>
244
+ ae-cli kb +compile --name engineering-handbook --scope company --model <model-ref>
245
+ ae-cli kb +status --name engineering-handbook --scope company
209
246
  ae-cli kb +ask -q "如何配置沙盒?"
210
247
  # 仅提交,后续轮询:
211
248
  ae-cli kb +ask -q "另一个问题" --no-wait
212
249
  ae-cli kb +ask-status --execution-id <id>
213
250
  ```
214
251
 
252
+ `kb +list-sources` 返回稳定的来源 `id`。请把精确的 `id` 复制到 `kb +rm-source`,不要根据文件名或 URL 猜测。`--display-name` 仅用于无法取得 ID 时的旧版兼容。
253
+
254
+ 按名称管理知识库的命令都支持可选 `--scope personal|company`;省略时保留 personal 到 company 的旧查找顺序。Schema 与 Compile 优先使用 `ae-cli agent +list-models` 返回的模型记录 `id`;历史 `modelId` 和 `modelId::scope` 仍兼容,`displayName` 不是稳定引用。
255
+
256
+ `kb +import` 接受最大 50 MB 的编译后 Markdown ZIP,根目录必须包含 `index.md`,页面放在 `wiki/**/*.md`。命令立即返回 `{requestId, status: "queued"}`;通过 `ae-cli kb +import-status --request-id <requestId>` 查询 `queued`、`running`、`succeeded` 或 `failed`。导入成功后可执行列表、Index/Wiki、grep/read、Ask 和删除;个人只读快照不支持来源、Schema、用量、编译、成员/设置、所有权转移和公司发布。
257
+
215
258
  外部 Agent 可以使用不依赖服务端 LLM 的确定性检索:
216
259
 
217
260
  ```bash
218
261
  ae-cli kb +list
219
262
  ae-cli kb +index --sources '[{"scope":"company","name":"engineering-handbook"}]'
220
263
  ae-cli kb +grep -q "沙盒配置" --sources '[{"scope":"company","name":"engineering-handbook"}]' --paths '["wiki/sandbox.md"]'
221
- ae-cli kb +read --source '{"scope":"company","name":"engineering-handbook"}' --path "wiki/sandbox.md"
264
+ ae-cli kb +read --source '{"scope":"company","name":"engineering-handbook"}' --path "wiki/sandbox.md" --limit 2000 --expand block
222
265
  ```
223
266
 
224
267
  ## Agent 与系统管理
@@ -232,19 +275,32 @@ ae-cli agent +list-mcps
232
275
  ae-cli agent +list-skills
233
276
  ae-cli agent +list-automations
234
277
  ae-cli agent +list-attachments
278
+ ae-cli agent approval-type list
279
+ ae-cli agent approval-request list --status pending
280
+ ae-cli agent approval-task list --status pending
281
+ ae-cli agent approval-effect list --status manual_required
235
282
  ```
236
283
 
237
- `system` 域调用管理接口 `/api/admin/**`,要求当前用户拥有 `root` `agent_admin` 角色:
284
+ 通用审批命令使用 Agent 应用 `/agent` base path 下的版本化 CLI-token REST。提交类型专属的 snake_case payload 前,先用 `approval-type get` 获取契约。Effect 人工重试属于 `high-risk-write`,必须提供可审计理由并显式传入 `--yes`。写命令的 `--dry-run` 仅在本地预览请求,不验证服务端权限、实时状态或未来条件流转。
285
+
286
+ `system` 域调用管理接口 `/api/admin/**` 和版本化渠道接口 `/api/cli/channel/v1/**`,要求当前用户拥有 `root` 或 `agent_admin` 角色:
238
287
 
239
288
  ```bash
240
289
  ae-cli system +list-members --status enabled
241
290
  ae-cli system +list-sandboxes
242
- ae-cli system +get-usage-summary --days 30
291
+ ae-cli system +get-sandbox-config
292
+ ae-cli system +get-usage-summary --days 30 --refresh true
293
+ ae-cli system +export-usage --start-date 2026-07-01 --end-date 2026-07-31 --group-by user --output ./system-usage.csv
243
294
  ae-cli system +list-quota-rules
244
295
  ae-cli system +list-channels
296
+ ae-cli system channel routing get --endpoint-id <endpoint-id>
297
+ ae-cli --dry-run system +bind-feishu-users --channel-id <channel-id> --endpoint-id <endpoint-id> --bindings @bindings.json
298
+ ae-cli system +list-sandbox-tools
245
299
  ```
246
300
 
247
- 最终权限始终由服务端校验。遇到权限错误时不要重试或绕过。
301
+ system 域现有 71 条命令,覆盖成员、沙箱、共享沙箱工具、模型与价格、用量下钻与 CSV 导出、成本控制、配额和渠道。渠道管理覆盖九类渠道、Endpoint 路由、WhatsApp Web 扫码关联,以及 1-100 人飞书批量绑定的逐项结果与公共/逐人默认 Agent 分配。CSV 导出必须显式指定本地路径,采用流式写入,不覆盖已有文件,失败时清理不完整文件。
302
+
303
+ 最终权限、公司隔离和资源归属始终由服务端校验。“没有对应 CLI 命令”不是安全边界:拥有 Bash/网络能力的 Agent 仍可直接构造 HTTP 请求。遇到权限错误时不要重试或绕过,不要调用明确排除的其他系统成员删除或底层沙箱编排接口;所有管理员写操作都应先 dry-run 并取得用户明确确认。Skill、dry-run 和 CLI 确认提示只是防误操作措施,不能替代服务端鉴权;`--yes` 会跳过该提示。
248
304
 
249
305
  ## Agent Skills
250
306
 
@@ -254,13 +310,13 @@ npm 包内包含与公开仓库一致的 `skills/` 目录:
254
310
  |---|---|
255
311
  | `ae-capability` | Capability 发现和通用调用 |
256
312
  | `ae-analysis`、`ae-analysis-global` | 分析、受众、元数据、治理及多集群工作流 |
257
- | `ae-experiment` | Atlas 实验、Feature、指标、流量层和报表工作流 |
258
313
  | `ae-metadata` | 基于 Capability Gateway 的元数据数据表操作 |
259
314
  | `ae-engage` | 运营操作和工作流指南 |
260
315
  | `ae-dataops` | 数仓、任务流、IDE、数据集成和运维 |
261
316
  | `ae-community` | 社区分析和报告 |
262
- | `ae-kb` | 知识库生命周期和检索 |
263
- | `ae-agent`、`ae-system`、`ae-team` | Agent 资源、系统管理和 TeamRun 工作流 |
317
+ | `ae-data-integration` | 本地 CSV/JSON/Excel 数据的检查、映射、转换、上传和可复用交接 |
318
+ | `ae-kb`、`ae-kb-discovery` | 知识库生命周期、问答、确定性检索及只读知识库发现 |
319
+ | `ae-agent`、`ae-system`、`ae-team` | Agent 资源与用户记忆(含 `memory +write-context`)、系统管理和 TeamRun 工作流 |
264
320
  | `ae-generate-tracking-plan`、`ae-generate-tracking-code` | 埋点方案和埋点代码生成 |
265
321
  | `ae-data-integration-helper` | SDK 和 LogBus2 集成指南 |
266
322
 
@@ -292,7 +348,6 @@ npm run dev -- --help
292
348
  src/
293
349
  ├── core/ # 认证、配置、客户端、兼容性和版本同步
294
350
  ├── framework/ # 命令注册、生命周期、输出和错误
295
- ├── api/ # 原始认证 API 访问
296
351
  └── commands/ # 业务域和 CLI 工具
297
352
  skills/ # 随 npm 包发布的 Agent Skills
298
353
  self-check/ # 发布和文档一致性检查
@@ -303,10 +358,13 @@ test/, tests/ # 命令、契约和回归测试
303
358
 
304
359
  ```bash
305
360
  npm run build
361
+ npm test
306
362
  npm run qa-changed
307
363
  npm run self-check
308
364
  npm run check:release
309
365
  npm run verify:experiment-tools
366
+ npm run verify:readme
367
+ npm run verify:auth-credentials
310
368
  npm run verify:update-check
311
369
  npm run verify:version-sync
312
370
  ```