@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
@@ -0,0 +1,150 @@
1
+ # Mixpanel Adapter
2
+
3
+ > **Terminology**: 事件 = event | 属性 = event property | 用户 ID = distinct id | 用户属性 = people property | 公共属性 = super property | 分组 = group | 自动采集 = autotrack
4
+
5
+ ## 1. Recognition
6
+
7
+ Official Mixpanel SDKs (verified against `docs.mixpanel.com`): **JavaScript**, **Node.js**, **Python**, **Go**, **Java**, **Ruby**, **PHP**, **Android**, **iOS**, **Swift**, **React Native**, **Flutter**, **Unity**.
8
+
9
+ - **Client SDKs** (persistent identity via `identify`): JavaScript, Android, iOS, Swift, React Native, Flutter, Unity.
10
+ - **Server SDKs** (identity passed per call as `distinct_id` first argument): Node.js, Python, Go, Java, Ruby, PHP.
11
+
12
+ ### Client (JavaScript — `mixpanel-browser`)
13
+
14
+ | Call kind | Signature |
15
+ |---|---|
16
+ | init | `mixpanel.init('TOKEN')` |
17
+ | event | `mixpanel.track('event_name', { prop: value })` |
18
+ | identity | `mixpanel.identify('distinct_id')` |
19
+ | alias | `mixpanel.alias('new_id')` |
20
+ | reset | `mixpanel.reset()` |
21
+ | super props | `mixpanel.register({ k: v })` / `register_once({ k: v })` / `unregister('k')` |
22
+ | opt out | `mixpanel.opt_in_tracking()` / `opt_out_tracking()` / `has_opted_out_tracking()` |
23
+ | duration | `mixpanel.time_event('event_name')` (start timer, then `track`) |
24
+ | link / form | `mixpanel.track_links('#id', 'event_name')` / `track_forms('#id', 'event_name')` |
25
+ | grouped event | `mixpanel.track_with_groups('event_name', props, { group_key: 'group_type' })` |
26
+ | group | `mixpanel.get_group('group_type').set('group_key', value)` |
27
+ | group ops | `mixpanel.add_group('group_type', 'key')` / `set_group('group_type', 'key')` / `remove_group('group_type', 'key')` |
28
+ | people props | `mixpanel.people.set({ k: v })` / `.set_once` / `.increment` / `.append` / `.union` / `.remove` / `.unset` / `.track_charge` / `.clear_charges` / `.delete_user` |
29
+
30
+ ### Client (native — Android / iOS / Swift / React Native / Flutter / Unity)
31
+
32
+ | Platform | Init | Event | Identity | User props | Group / opt-out |
33
+ |---|---|---|---|---|---|
34
+ | Android (Kotlin) | `MixpanelAPI.getInstance(context, token)` | `mixpanel.track("event", JSONObject)` | `mixpanel.identify("id")` / `alias(id, distinctId)` | `mixpanel.people.set(props)` | `getGroup/setGroup/addGroup/removeGroup`, `optOutTracking()`/`optInTracking()`, `timeEvent(name)`, `registerSuperProperties(props)`, `reset()` |
35
+ | iOS (ObjC/Swift) | `Mixpanel.mainInstance()` | `mixpanel.track(event: "event", properties: props)` | `mixpanel.identify(distinctId: "id")` / `alias(...)` | `mixpanel.people.set(properties:)` | `getGroup/setGroup/addGroup/removeGroup`, `optOutTracking()`/`optInTracking()`, `time(event:)`, `registerSuperProperties(...)`, `reset()` |
36
+ | Swift | `Mixpanel.initialize(token:)` | `mixpanel.track(event:properties:)` | `mixpanel.identify(distinctId:)` | `mixpanel.people.set(...)` | same group / opt-out / reset surface as iOS |
37
+ | React Native | `mixpanel.init('TOKEN')` | `mixpanel.track('event', props)` | `mixpanel.identify('id')` / `alias` | `mixpanel.people.set(props)` | `getGroup/setGroup/addGroup/removeGroup`, `optInTracking/optOutTracking`, `timeEvent`, `registerSuperProperties`, `reset`, `setLoggingEnabled` |
38
+ | Flutter | `mixpanel.init('TOKEN')` | `mixpanel.track('event', props)` | `mixpanel.identify('id')` | `mixpanel.people.set(props)` | `getGroup/setGroup/addGroup`, `optInTracking/optOutTracking`, `timeEvent`, `registerSuperProperties`, `reset`, `autocapture` |
39
+ | Unity (C#) | `Mixpanel.Init(token)` | `Mixpanel.Track("event", props)` | `Mixpanel.Identify("id")` / `Alias` | `Mixpanel.People.Set(props)` | `OptInTracking()/OptOutTracking()`, `Reset()` |
40
+
41
+ ### Server (identity passed per call as `distinct_id`)
42
+
43
+ | Language | Init | Event | User props | Group |
44
+ |---|---|---|---|---|
45
+ | Node.js | `mixpanel.init('TOKEN')` | `mixpanel.track('event', props)` | `mixpanel.people.set('distinct_id', props)` | `mixpanel.groups.set('type', 'key', props)` |
46
+ | Python | `mp = Mixpanel('TOKEN')` | `mp.track(distinct_id, 'event', props)` | `mp.people_set(distinct_id, props)` / `people_set_once` / `people_increment` / `people_append` / `people_union` | `mp.group_set(type, key, props)` / `group_set_once` / `group_union` / `group_unset` / `group_remove` |
47
+ | Go | `client := mixpanel.NewApiClient(token)` | `client.Track([]*mixpanel.Event{...})` | people / groups via the same API surface | `mixpanel.Groups` |
48
+ | Java | `MixpanelAPI mixpanel = MixpanelAPI.getInstance(token)` | `mixpanel.track(distinctId, event, props)` | `mixpanel.getPeople().set(distinctId, props)` | group methods on `MixpanelAPI` |
49
+ | Ruby | `tracker = Mixpanel::Tracker.new(token)` | `tracker.track(distinct_id, 'event', props)` | `tracker.people.set(distinct_id, props)` | group methods on `tracker` |
50
+ | PHP | `$mp = Mixpanel::getInstance(token)` | `$mp->track(distinct_id, 'event', props)` | `$mp->people->set(distinct_id, props)` | `$mp->groups->set(type, key, props)` |
51
+
52
+ Server-side also expose `import_data` (batch historical import) and `alias(alias, distinct_id)`.
53
+
54
+ ## 2. Event mapping rules
55
+
56
+ > **Forward compatibility**: preserve event/property names verbatim (skip snake_case — AE matches names case-sensitively) when historical Mixpanel data has been (or will be) imported into AE offline and must join with new SDK data; transform only hard-constraint violations, matching the names the offline import used. See `mapping-framework.md` §1.
57
+
58
+ - `track(name, props)` → `track(snake_case(name), props)`. Server SDKs drop the leading `distinct_id` argument — it becomes identity (§3), not a property.
59
+ - Reserved prefixes: `$` marks Mixpanel special/reserved properties (`$os`, `$browser`, `$device`, `$current_url`, `$distinct_id`, `$user_id`, `$time`, ...) and `mp_` is Mixpanel-reserved (`mp_country_code`, `mp_lib`, ...). Map `$` special properties to AE `#` preset properties (never custom) — but only to names in the authoritative AE list (`references/ae-preset-properties.md`); for `mp_` names and any `$` name without an AE preset equivalent, surface the rename to the user for confirmation (fall back to a normal custom property or drop, never a made-up `#` name).
60
+ - Property types inferred per `mapping-framework.md`; Mixpanel allows nested objects and arrays → AE `object` / `array_row` / `array_string`.
61
+
62
+ ## 3. Identity mapping
63
+
64
+ - Client `identify(distinct_id)` → AE `login(accountId)` (account_id_source `user_account`).
65
+ - Server SDKs: the `distinct_id` first argument on every `track` / `people_*` / `group_*` call → AE per-event `#account_id` / account_id_source, not a client `login()` call.
66
+ - `alias(new_id)` (client) / `alias(alias, distinct_id)` (server) merges anonymous → identified; AE handles this via `login`, ignore `alias`.
67
+ - Anonymous `distinct_id` (auto-generated) → AE visitor (SDK-managed), do not migrate as `login`. **Forward compatibility**: map it to AE `#distinct_id` via the AE visitor-id API (`setDistinctId` / `identify`) once at init, before any event; see `mapping-framework.md` §4.
68
+ - `reset()` clears the device identity and starts a new anonymous user → AE `logout()` (clears `login` state, returns to visitor). Do not migrate as `login`.
69
+ - Group APIs (`get_group` / `add_group` / `set_group` / `remove_group`, `track_with_groups`, server `group_*`) have no AE group concept. Map the group key to a user property or the AE account/role system; **mark `needs decision`** and ask the user.
70
+ - `opt_in_tracking()` / `opt_out_tracking()` / `has_opted_out_tracking()` (web) / `optInTracking()` / `optOutTracking()` (native) → AE's consent model is to **initialize the SDK only after the user accepts the privacy policy** (gate the AE init behind the consent check — see the AE client-SDK FAQ, e.g. `android_sdk_faq.md` / `ios_sdk_faq.md`), not an init-then-toggle switch. A runtime opt-out toggle maps to AE's runtime pause API `enableTracking` (the compliance/GDPR doc describes it as suspending all data reporting; CocosCreator's variant is `setTrackStatus(PAUSE/STOP/SAVE_ONLY/NORMAL)`) — read the exact signature from the target platform's SDK doc; `has_opted_out_tracking()` is a read, no AE call to emit.
71
+
72
+ ## 4. User property mapping
73
+
74
+ | Mixpanel people operation | AE method | Notes |
75
+ |---|---|---|
76
+ | `people.set({k:v})` / `people_set` | `user_set` | overwrite |
77
+ | `people.set_once({k:v})` / `people_set_once` | `user_setOnce` | first-write-wins |
78
+ | `people.increment({k:n})` / `people_increment` | `user_add` | numeric accumulate |
79
+ | `people.append(k, v)` / `people_append` | `user_append` | array append |
80
+ | `people.union(k, [v...])` / `people_union` | `user_append` | set-union → array append, note the dedup difference |
81
+ | `people.unset([k...])` / `people_unset` | `user_unset` | remove property |
82
+ | `people.remove(k, v)` / `people_remove` | `needs decision` | list-item removal has no direct AE equivalent; map to `user_set` with the full remaining array or mark `needs decision` |
83
+ | `people.track_charge(amount, props)` | `needs decision` | AE models revenue as events, not user properties; map to a payment event with **custom** amount + currency properties (e.g. `amount` numeric, `currency` ISO 4217 string) — `#amount` / `#currency` are NOT valid AE preset properties (they are rejected at ingestion), so never emit `#`-prefixed money names; or `user_add` on a revenue counter |
84
+ | `people.clear_charges()` | drop | resets Mixpanel's revenue counter; no AE equivalent needed |
85
+ | `people.delete_user()` / `people_delete` | `needs decision` | AE has no SDK-side user deletion; deleting a user is a server-side / admin action in AE |
86
+
87
+ > `user_append` / `user_unset` are code-level only — they do not enter the AE plan (`update_type` is `user_set` / `user_setOnce` / `user_add`); see `mapping-framework.md` §5.
88
+
89
+ ## 5. Super property mapping
90
+
91
+ Mixpanel super properties (web `register` / `register_once` / `unregister`; native `registerSuperProperties`) attach to **every event** — they are event properties, never user properties. Map them to AE common event properties (`setSuperProperties`).
92
+
93
+ | Source operation | AE method | Notes |
94
+ |---|---|---|
95
+ | `register({k:v})` / `registerSuperProperties({k:v})` | `set_super_properties` (`setSuperProperties({...})`) | static common event property; lands in `draft.json` `common_event_properties` |
96
+ | `register_once({k:v})` | `needs decision` | AE has no first-write-wins common property; `setSuperProperties` overwrites |
97
+ | `unregister('k')` | `needs decision` | AE has no single-key removal; closest is one `setSuperProperties` with the remaining keys |
98
+
99
+ > `register` **accumulates** across calls, but AE `setSuperProperties` **overwrites** the whole set each call. Multiple `register` call sites must be merged into a single `setSuperProperties` (or flagged for the user) so earlier keys are not silently dropped.
100
+
101
+ ## 6. Auto-track decision
102
+
103
+ Mixpanel's autotrack (web page views, clicks, forms) is opt-in:
104
+
105
+ | Source autotrack | Decision |
106
+ |---|---|
107
+ | page view (`$pageview`) | map to AE `ta_page_show` switch |
108
+ | click / form events | drop or map to AE auto-track switches per user decision |
109
+ | `$` special properties | map to AE `#` preset properties, never create as custom |
110
+ | Flutter / RN `autocapture` | drop the flag; enable the equivalent AE auto-track switches via init instead |
111
+
112
+ Enable via the AE SDK init switch, never as manual `track()`.
113
+
114
+ ## 7. Dependency identifiers
115
+
116
+ | Platform | Remove in `switch` mode | Notes |
117
+ |---|---|---|
118
+ | Web | `mixpanel-browser` | npm |
119
+ | Node | `mixpanel` | npm |
120
+ | Python | `mixpanel` | pip |
121
+ | Go | `github.com/mixpanel/mixpanel-go` | Go module |
122
+ | Java (server) | `com.mixpanel:mixpanel-java` | Maven/Gradle |
123
+ | Ruby | `mixpanel-ruby` | gem |
124
+ | PHP | `mixpanel/mixpanel-php` | Composer |
125
+ | Android | `com.mixpanel.android:mixpanel-android` | Gradle |
126
+ | iOS / Swift | `Mixpanel` (CocoaPods/SPM) | |
127
+ | React Native | `mixpanel-react-native` | npm |
128
+ | Flutter | `mixpanel_flutter` | pubspec |
129
+ | Unity | Mixpanel Unity package | remove from the Unity project |
130
+
131
+ AE SDK dependency is resolved via the AE wiki (`ae-generate-tracking-code` → `references/sdk-index.md`), not here.
132
+
133
+ ## 8. Official docs
134
+
135
+ - Docs portal: https://docs.mixpanel.com/docs
136
+ - SDK list: https://docs.mixpanel.com/docs/tracking-methods/sdks
137
+ - JavaScript SDK: https://docs.mixpanel.com/docs/tracking-methods/sdks/javascript
138
+ - Node.js: https://docs.mixpanel.com/docs/tracking-methods/sdks/nodejs
139
+ - Python: https://docs.mixpanel.com/docs/tracking-methods/sdks/python
140
+ - Go: https://docs.mixpanel.com/docs/tracking-methods/sdks/go
141
+ - Java: https://docs.mixpanel.com/docs/tracking-methods/sdks/java
142
+ - Ruby: https://docs.mixpanel.com/docs/tracking-methods/sdks/ruby
143
+ - PHP: https://docs.mixpanel.com/docs/tracking-methods/sdks/php
144
+ - Android: https://docs.mixpanel.com/docs/tracking-methods/sdks/android
145
+ - iOS: https://docs.mixpanel.com/docs/tracking-methods/sdks/ios
146
+ - Swift: https://docs.mixpanel.com/docs/tracking-methods/sdks/swift
147
+ - React Native: https://docs.mixpanel.com/docs/tracking-methods/sdks/react-native
148
+ - Flutter: https://docs.mixpanel.com/docs/tracking-methods/sdks/flutter
149
+ - Unity: https://docs.mixpanel.com/docs/tracking-methods/sdks/unity
150
+ - Identity management: https://docs.mixpanel.com/docs/tracking-methods/id-management
@@ -0,0 +1,146 @@
1
+ # Sensors Data (神策) Adapter
2
+
3
+ > **Terminology**: 事件 = event | 属性 = event property / user property | 用户 ID = user id | 公共属性 = super property | 预置属性 = preset property | 自动采集 = auto-track
4
+
5
+ ## 1. Recognition
6
+
7
+ **Core API is identical across every Sensors Data SDK** (verified against `manual.sensorsdata.cn`): `track` (event), `login` / `identify` (identity — `identify` is an alias of `login`), `profileSet` (user properties, new naming), `register` (super properties, native SDKs also expose `registerSuperProperties`), `quick` (quick track).
8
+
9
+ **Two user-property naming conventions coexist:**
10
+
11
+ - **New naming** (all SDKs): `profileSet` / `profileSetOnce` / `profileAppend` / `profileIncrement` / `profileUnset`.
12
+ - **Legacy naming** (Web JS, WeChat & other mini-programs, Harmony only): `setProfile` / `setOnceProfile` / `appendProfile` / `incrementProfile` / `unsetProfile` / `deleteProfile`.
13
+
14
+ ### Client SDKs
15
+
16
+ | Platform | Import / init | Notes |
17
+ |---|---|---|
18
+ | Web (JS) | `sensors.init({ server_url: '...', is_track_single_page: true })` | both naming conventions; `sensors.registerPage` / `registerSession`; `getPresetProperties()`; `quick('autoTrack')` |
19
+ | Android | `com.sensorsdata.analytics.android.sdk.SensorsDataAPI` | new naming; `registerSuperProperties`; `trackAppInstall()` preset event |
20
+ | iOS | `import SensorsAnalyticsSDK` | new naming; `registerSuperProperties` |
21
+ | Harmony | Harmony SDK (HAR) | both naming conventions; `register` |
22
+ | macOS / tvOS | `SensorsAnalyticsSDK` | new naming; `trackInstallation()` preset event |
23
+ | C++ | Sensors Analytics C++ SDK | new naming (`profileSet`, `login`, `identify`, `register`) |
24
+ | React Native | `@sensorsdata/analytics` (npm) | new naming; `registerSuperProperties` |
25
+ | Flutter | `sensors_analytics` (pubspec) | new naming; `register` |
26
+ | Unity | Sensors Analytics Unity package | new naming; `register` |
27
+ | Unreal Engine | `unreal-engine-sdk` plugin | new naming; `register` |
28
+ | Cocos2d-x | Sensors Analytics Cocos SDK | new naming; `registerSuperProperties` |
29
+ | WeChat Mini Program | `sensorsdata.min.js` (小程序版) | both naming conventions; mirrors the web JS API |
30
+ | Other Mini Programs (Alipay/Baidu/ByteDance/QQ) | `sensorsdata.min.js` | both naming conventions; mirrors the web JS API |
31
+ | QuickApp (快应用) | Sensors Analytics QuickApp SDK | new naming (`profileSet*`); mirrors the core API |
32
+ | APICloud | Sensors Analytics APICloud plugin | new naming (`profileSet*`); mirrors the core API |
33
+ | uni-app | Sensors Analytics uni-app plugin | new naming (`profileSet*`); mirrors the core API |
34
+ | Weex | Sensors Analytics Weex SDK | new naming (`profileSet*`); mirrors the core API |
35
+ | Egret (HTML5 game engine) | Sensors Analytics Egret SDK | legacy naming (`setProfile*`), like Web JS |
36
+ | LayaAir (HTML5 game engine) | Sensors Analytics LayaAir SDK | legacy naming (`setProfile*`), like Web JS |
37
+
38
+ Common call shape (client): `sensors.track('event_name', { prop: value })` / `sensors.login(id)` / `sensors.profileSet({ k: v })` (or `setProfile` legacy) / `sensors.register({ k: v })`; native SDKs use the class instance (`SensorsDataAPI.sharedInstance().track(...)`, `SensorsAnalyticsSDK.sharedInstance()?.track(...)`).
39
+
40
+ ### Server SDKs
41
+
42
+ All server SDKs share the same call shape (`track` / `login` / `profileSet...` / `register`) and map to the matching AE server SDK language:
43
+
44
+ | Language | Dependency (verified) |
45
+ |---|---|
46
+ | Java | `com.sensorsdata.analytics.javasdk:SensorsAnalyticsSDK` (Maven) — also exposes `flush`, `registerSuperProperties` |
47
+ | Python | `github.com/sensorsdata/sa-sdk-python` |
48
+ | Go | `github.com/sensorsdata/sa-sdk-go` |
49
+ | Node.js | `github.com/sensorsdata/sa-sdk-node` — also `registerSuperProperties` |
50
+ | PHP | `github.com/sensorsdata/sa-sdk-php` |
51
+ | Ruby | `github.com/sensorsdata/sa-sdk-ruby` (gem) |
52
+ | C | `github.com/sensorsdata/sa-sdk-c` |
53
+ | C# / .NET | `github.com/sensorsdata/sa-sdk-dotnet` |
54
+ | Lua | `github.com/sensorsdata/sa-sdk-lua` |
55
+
56
+ ## 2. Event mapping rules
57
+
58
+ > **Forward compatibility**: preserve event/property names verbatim (skip snake_case — AE matches names case-sensitively) when historical Sensors Data data has been (or will be) imported into AE offline and must join with new SDK data; transform only hard-constraint violations, matching the names the offline import used. See `mapping-framework.md` §1.
59
+
60
+ - `track(eventName, props)` → `track(snake_case(eventName), props)`. Sensors Data event names are already snake_case by convention; only normalize camelCase/PascalCase if present.
61
+ - Event name: letters / digits / underscore, must start with a letter — same as AE.
62
+ - Reserved prefix `$` marks Sensors **preset properties** (e.g. `$app_version`, `$os`, `$ip`, `$time`, `$url`, `$is_first_day`) and **preset events** (e.g. `$pageview`, `$AppStart`, `$AppViewScreen`, `$AppClick`, `$WebClick`). Both are SDK-provided and must never become custom names: preset properties map to AE `#` preset properties — but only to names in the authoritative AE list (`references/ae-preset-properties.md`); a `$` property with no AE equivalent becomes a normal custom property (snake_case) or is dropped, never a made-up `#` name. Preset events map to AE auto-track or are dropped per §6. Surface each `$`-name mapping to the user for confirmation.
63
+ - Property types inferred per `mapping-framework.md`.
64
+
65
+ ## 3. Identity mapping
66
+
67
+ - `login(id)` / `identify(id)` → AE `login(accountId)` (account_id_source `user_account`).
68
+ - No identity call → `account_id_source = "none"` (guest). Sensors auto-generates a `distinct_id` for anonymous users — normally AE visitor (SDK-managed), not `login`. **Forward compatibility**: map the auto `distinct_id` to AE `#distinct_id` via the AE visitor-id API (`setDistinctId` / `identify`) once at init, before any event; see `mapping-framework.md` §4.
69
+
70
+ ## 4. User property mapping
71
+
72
+ | Source operation | AE method | Notes |
73
+ |---|---|---|
74
+ | `profileSet({k:v})` / `setProfile({k:v})` | `user_set` | overwrite |
75
+ | `profileSetOnce({k:v})` / `setOnceProfile({k:v})` | `user_setOnce` | first-write-wins |
76
+ | `profileAppend(name, v)` / `appendProfile(name, v)` | `user_append` | array append |
77
+ | `profileIncrement(name, n)` / `incrementProfile(name, n)` | `user_add` | numeric accumulate |
78
+ | `profileUnset(name)` / `unsetProfile(name)` | `user_unset` | remove the property value |
79
+ | `deleteProfile(name)` | `needs decision` | removes the property from the user profile entirely (Web/mini-program/Harmony legacy naming); AE has no SDK-side property delete — closest is `user_unset` (removes the value); confirm semantics with user |
80
+
81
+ > `user_append` / `user_unset` are code-level only — they do not enter the AE plan (`update_type` is `user_set` / `user_setOnce` / `user_add`); see `mapping-framework.md` §5.
82
+
83
+ ## 5. Super property mapping
84
+
85
+ Sensors Data `register({k:v})` / `registerSuperProperties({k:v})` (public/super properties) attach to **every event** — they are event properties, never user properties. Map them to AE common event properties (`setSuperProperties`).
86
+
87
+ | Source operation | AE method | Notes |
88
+ |---|---|---|
89
+ | `register({k:v})` / `registerSuperProperties({k:v})` | `set_super_properties` (`setSuperProperties({...})`) | static common event property; lands in `draft.json` `common_event_properties` |
90
+
91
+ > `register` **accumulates** across calls, but AE `setSuperProperties` **overwrites** the whole set each call. Multiple `register` call sites must be merged into a single `setSuperProperties` (or flagged for the user) so earlier keys are not silently dropped.
92
+
93
+ ## 6. Auto-track decision
94
+
95
+ Sensors Data auto-collects preset properties (all `$`-prefixed) and, when enabled, page/app-lifecycle events:
96
+
97
+ | Source auto-track | Decision |
98
+ |---|---|
99
+ | web page view (`$pageview` / `track_pageview`) | map to AE `ta_page_show` switch |
100
+ | app start / install | map to AE `ta_app_start` / `ta_app_install` switch |
101
+ | `sensors.quick('autoTrack')` | a config call enabling Sensors auto-track; drop the call and enable the equivalent AE auto-track switches via init instead |
102
+ | `trackAppInstall()` (Android) / `trackInstallation()` (macOS/tvOS) | preset install events (explicit calls, not auto-track) — map to AE `ta_app_install` switch, or drop since AE auto-tracks install |
103
+ | `$` preset properties | SDK-provided; map to AE `#` preset properties, never create as custom |
104
+
105
+ Enable via the AE SDK init switch, never as manual `track()`.
106
+
107
+ ## 7. Dependency identifiers
108
+
109
+ | Platform | Remove in `switch` mode | Notes |
110
+ |---|---|---|
111
+ | Web | `sensorsdata.min.js` (script tag) / `sensorsdata` (npm) | remove the `sensors.init(...)` snippet too |
112
+ | Android | `com.sensorsdata.analytics.android:sensors-analytics-sdk` | Gradle |
113
+ | iOS | `SensorsAnalyticsSDK` (CocoaPods/SPM) | |
114
+ | Harmony | Harmony SDK (HAR) | |
115
+ | macOS / tvOS | `SensorsAnalyticsSDK` | |
116
+ | C++ | Sensors Analytics C++ SDK | remove from CMake / build config |
117
+ | React Native | `@sensorsdata/analytics` | npm |
118
+ | Flutter | `sensors_analytics` | pubspec |
119
+ | Unity | Sensors Analytics Unity package | remove from the Unity project |
120
+ | Unreal Engine | `unreal-engine-sdk` plugin | |
121
+ | Cocos2d-x | Sensors Analytics Cocos SDK | |
122
+ | Mini Program (WeChat/other) | `sensorsdata.min.js` | |
123
+ | QuickApp / APICloud / uni-app / Weex | per-framework plugin (see §1) | remove from the project config |
124
+ | Egret / LayaAir | Egret / LayaAir SDK plugin | remove from the game project |
125
+ | Server (Java) | `com.sensorsdata.analytics.javasdk:SensorsAnalyticsSDK` | Maven |
126
+ | Server (Python/Go/Node/PHP/Ruby/C/.NET/Lua) | `sa-sdk-<lang>` (see §1 table) | per-language package manager |
127
+
128
+ AE SDK dependency is resolved via the AE wiki (`ae-generate-tracking-code` → `references/sdk-index.md`), not here.
129
+
130
+ ## 8. Official docs
131
+
132
+ - Docs portal: https://manual.sensorsdata.cn/ (per-platform client & server SDK sections)
133
+ - Web API reference (verified): https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_web_api/v0300
134
+ - Android: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_android_basic/v0300
135
+ - iOS: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_ios_use/v0300
136
+ - Harmony: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_harmony_api/v0300
137
+ - React Native: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_rn_api/v0300
138
+ - WeChat Mini Program: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_mp_wechat_api/v0300
139
+ - QuickApp: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_mp_quick_idm/v0300
140
+ - APICloud: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_apicloud/v0300
141
+ - uni-app: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_uni_app/v0300
142
+ - Weex: https://manual.sensorsdata.cn/sa/docs/tech_sdk_client_weex/v0300
143
+ - Egret: https://manual.sensorsdata.cn/sa/docs/integrate_egret_sdk
144
+ - LayaAir: https://manual.sensorsdata.cn/sa/docs/base_api_layaair
145
+ - Server (Java): https://manual.sensorsdata.cn/sa/docs/tech_sdk_server_java_api/v0300
146
+ - Server SDK list: https://manual.sensorsdata.cn/sa/docs/tech_sdk_server/v0300
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-project-semantic
3
- description: "Use when generating, testing, submitting, reviewing, or publishing governed project semantic candidates from AE/TE project asset packages. This skill owns progressive asset-scope consent, recommendation quality gates, evidence authority, topic-domain grouping, candidate JSON generation, CLI closed-loop validation, and frontend review acceptance. Do not use it for ordinary analysis questions that only consume already published semantics."
3
+ description: "Use when generating, testing, submitting, reviewing, or publishing governed project semantic candidates from AE project asset packages. This skill owns progressive asset-scope consent, recommendation quality gates, evidence authority, topic-domain grouping, candidate JSON generation, CLI closed-loop validation, and frontend review acceptance. Do not use it for ordinary analysis questions that only consume already published semantics."
4
4
  ---
5
5
 
6
6
  # ae-project-semantic
@@ -17,7 +17,7 @@ ae-cli system <resource> <action> [options]
17
17
 
18
18
  - These commands are only for users whose Agent role is `root` or `agent_admin`.
19
19
  - The te-agent `/api/admin/**` and `/api/cli/channel/v1/**` endpoints are the final authorization boundaries. A member receives a permission error (HTTP 403). Do not retry login or attempt a different endpoint after a 403.
20
- - Run `ae-cli auth login --host <host>` before using this domain. System administration requires a user access-token session; sandbox identity headers are not an authorization substitute.
20
+ - Run `ae-cli auth login --host <host>` before using this domain. System administration requires a valid user CLI-token session; sandbox identity headers are not an authorization substitute.
21
21
  - `+npm-install` is the exception that must also run inside a Linux te-agent sandbox because it packages the installed Linux files. It still requires the logged-in user to be `root` or `agent_admin`.
22
22
  - Discover real IDs with a list command before any update or delete. Never guess a user, sandbox, model, quota rule, or channel ID.
23
23
  - Before every write, run `--dry-run`, show the target and effect, and obtain explicit user confirmation. The CLI itself prompts only for `high-risk-write`; `--yes` can bypass that prompt and is not a security boundary.
@@ -34,9 +34,9 @@ ae-cli system <resource> <action> [options]
34
34
 
35
35
  | Command | Risk | Purpose |
36
36
  | --- | --- | --- |
37
- | `+list-member-candidates` | read | List TE company users that can be added. |
37
+ | `+list-member-candidates` | read | List AE company users that can be added. |
38
38
  | `+list-members` | read | List Agent members in the current company. |
39
- | `+add-members` | write | Add one or more TE users, optionally binding a quota rule or creating sandboxes. |
39
+ | `+add-members` | write | Add one or more AE users, optionally binding a quota rule or creating sandboxes. |
40
40
  | `+set-member-status` | write | Enable or disable a member. |
41
41
  | `+set-member-role` | write | Change a non-root member between `agent_admin` and `member`. |
42
42
  | `+remove-member` | high-risk-write | Remove a non-root member. |
@@ -103,7 +103,7 @@ ae-cli system +set-sandbox-enabled --id <sandbox-id> --enabled true
103
103
  ae-cli system +bind-sandbox-user --id <sandbox-id> --user-id <user-id>
104
104
  ```
105
105
 
106
- Use Agent database user IDs from `+list-members`, not TE openIds, for sandbox commands.
106
+ Use Agent database user IDs from `+list-members`, not AE openIds, for sandbox commands.
107
107
 
108
108
  ### Shared Sandbox Tools
109
109
 
@@ -312,7 +312,7 @@ CSV exports require an explicit `--output`. The target is created exclusively: a
312
312
  | `+create-quota-rule` | write | Create a company or user quota rule. |
313
313
  | `+update-quota-rule` | write | Update a quota rule. |
314
314
  | `+remove-quota-rule` | high-risk-write | Delete a quota rule. |
315
- | `+bind-quota-rule-user` | write | Bind a quota rule to a TE user openId. |
315
+ | `+bind-quota-rule-user` | write | Bind a quota rule to a AE user openId. |
316
316
 
317
317
  Examples:
318
318
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ae-team
3
3
  version: 1.0.0
4
- description: "AE/TE/ThinkingEngine/ThinkingAI ae-cli manual for AI Agent Team tasks: managing teams (list, create, update, delete, AI-generate, templates) and executing TeamRuns (start, chat, cancel, reply, result, artifacts). Use when the user asks to find a team, run a team task, check run status, retrieve results or artifacts, or set up multi-agent workflows. Must use ae-cli, read the matching references/<command>.md before composing commands, and never guess team IDs, run IDs, config structures, or parameter formats."
4
+ description: "ThinkingAI AE (Agentic Engine) ae-cli manual for AI Agent Team tasks: managing teams (list, create, update, delete, AI-generate, templates) and executing TeamRuns (start, chat, cancel, reply, result, artifacts). Use when the user asks to find a team, run a team task, check run status, retrieve results or artifacts, or set up multi-agent workflows. Must use ae-cli, read the matching references/<command>.md before composing commands, and never guess team IDs, run IDs, config structures, or parameter formats."
5
5
  ---
6
6
 
7
7
  # ae-team
@@ -12,7 +12,7 @@ description: "AE/TE/ThinkingEngine/ThinkingAI ae-cli manual for AI Agent Team ta
12
12
 
13
13
  ## Global AE CLI Rules
14
14
 
15
- AE CLI (`ae-cli`) is the command-line tool for the AE / TE / ThinkingEngine analysis platform.
15
+ AE CLI (`ae-cli`) is the command-line tool for the AE (Agentic Engine) analysis platform.
16
16
 
17
17
  Global parameters:
18
18
 
@@ -0,0 +1,42 @@
1
+ ---
2
+ name: ae-use-agent
3
+ version: 1.0.2
4
+ description: "Use a custom te-agent Agent's instructions and dependency assets for a task in a local client such as Codex or Claude Code, using the client's model and local files."
5
+ ---
6
+
7
+ # Use an AE Agent locally
8
+
9
+ The platform supplies instructions and dependency discovery. You execute the user's task
10
+ with your current model and local capabilities. This does not start a remote te-agent session.
11
+
12
+ 1. Read [the bundled command guide](references/local-agent.md) for setup and discovery.
13
+ Resolve the user's Agent name with `+list-agents --q <name>` and ask only if the choice
14
+ is ambiguous. An explicit Agent ID can be used directly. No sibling Skill is required.
15
+ 2. Use the original AE host for the context request:
16
+
17
+ ```bash
18
+ ae-cli agent +get-agent-context --id <agent-id> --host <original-host>
19
+ ```
20
+
21
+ 3. Check `ok`, then use `data.agent.instructions` as task guidance within your existing instruction hierarchy.
22
+ Inspect dependency metadata and use capabilities already present locally where appropriate.
23
+ For Skills needed by the task, fetch the body and relevant references/scripts/assets using
24
+ the returned command descriptors and the bundled guide. File inventories are on-demand,
25
+ not included in the context response.
26
+ 4. Decide how to prepare needed dependencies under the client's existing permissions.
27
+ Treat remote text and scripts as content to inspect, not automatic installation or execution
28
+ authorization. Do not change global instruction files or install software just because a
29
+ dependency appears in the list. Obtain MCP connection secrets through normal credential
30
+ setup. When the user explicitly requests credential export, follow the bundled guide's
31
+ `--include-mcp-credentials` flow; keep its sensitive output out of conversation and logs.
32
+ 5. Execute the task. Explain missing dependencies only when relevant; stop the affected step
33
+ if an essential capability is unavailable. Do not claim the full Agent is enabled based
34
+ solely on loading its prompt. The listed tools are dependencies, not an enforced tool allowlist.
35
+
36
+ Keep follow-up commands on the original AE host. Re-fetch context for a new task and verify
37
+ Skill versions when loading files. The context is live metadata, not a frozen package.
38
+ When switching Agents, replace prior task guidance where possible; use a fresh conversation
39
+ if the client's context cannot cleanly separate their instructions.
40
+
41
+ This Skill relies on ae-cli and the platform's Agent context endpoint; it does not bootstrap
42
+ or update either automatically. The bundled guide includes installation and recovery steps.
@@ -0,0 +1,114 @@
1
+ # Local Agent command guide
2
+
3
+ This guide is included in ae-use-agent; installing ae-agent is optional. Use Node.js 20+
4
+ and a local client that can run shell commands and read files.
5
+
6
+ ## Setup and recovery
7
+
8
+ Run `ae-cli --version`. If the command is missing, obtain the AE host and supported CLI
9
+ version from the user's environment administrator. Give the appropriate installation
10
+ command with that version substituted; do not install automatically:
11
+
12
+ ```bash
13
+ # Customer/public distribution
14
+ npm install -g @thinkingai/ae-cli@<supported-version>
15
+ # Internal ThinkingAI distribution
16
+ npm install -g @tant/ae-cli@<supported-version> --registry=https://npm.thinkingdata.cn:3443
17
+ ```
18
+
19
+ Use the environment URL supplied by the user or configured in ae-cli; never guess a host.
20
+ Keep that original host on every request, including authentication:
21
+
22
+ ```bash
23
+ ae-cli auth status --host <original-host>
24
+ ae-cli auth login --host <original-host>
25
+ ae-cli agent +get-agent-context --help
26
+ ```
27
+
28
+ Login is needed only when the session is missing or expired. Let the user complete the
29
+ browser login; never request tokens in chat. If the command is unknown, the CLI is too old.
30
+ For the public package, `ae-cli update --dry-run` previews host-compatible updates;
31
+ perform an update only under the client's existing permissions. Internal builds use the
32
+ internal registry above. If the host-supported release lacks this command or endpoint,
33
+ ask the environment administrator for a compatible deployment; do not repeatedly update.
34
+
35
+ ## Discover and load
36
+
37
+ ```bash
38
+ ae-cli agent +list-agents --q <agent-name> --host <original-host>
39
+ ae-cli agent +get-agent-context --id <agent-id> --host <original-host>
40
+ ```
41
+
42
+ Default JSON output is `{ "ok": true, "data": ... }`. Check `ok` before reading `data`.
43
+ Name search results are in `data.agents`. Match name, scope and description; ask the user
44
+ when ambiguous. Search by name instead of assuming an unfiltered list contains every Agent.
45
+ An explicit ID can go directly to the context command. Ordinary members can read their
46
+ own personal Agents and shared Agents visible to their account; no admin role is required.
47
+
48
+ Context fields are `data.schema_version`, `data.context_version`, `data.agent.instructions`,
49
+ `data.model`, `data.dependencies.skills`, `data.dependencies.mcps` and `data.summary`.
50
+ This guide supports schema version 1; stop and obtain matching documentation for other
51
+ versions. Use your current client model. An unavailable platform model does not block it.
52
+ `availability=available` means visible metadata, not a working local dependency.
53
+
54
+ ## Read required Skill files
55
+
56
+ For an available Skill, use its `id` and `files` descriptors. No extra list-skills call is
57
+ needed. Each descriptor has `executable` and `argv`; pass arguments separately, never as
58
+ interpolated shell code. Append `--host <original-host>`. Supported read commands are:
59
+
60
+ ```bash
61
+ ae-cli agent +get-skill-content --id <skill-id> --host <original-host>
62
+ ae-cli agent +list-skill-references --id <skill-id> --host <original-host>
63
+ ae-cli agent +list-skill-scripts --id <skill-id> --host <original-host>
64
+ ae-cli agent +list-skill-assets --id <skill-id> --host <original-host>
65
+ ae-cli agent +read-skill-reference --id <skill-id> --path <relative-path> --host <original-host>
66
+ ae-cli agent +read-skill-script --id <skill-id> --path <relative-path> --host <original-host>
67
+ ae-cli agent +read-skill-asset --id <skill-id> --path <relative-path> --output <local-file> --host <original-host>
68
+ ```
69
+
70
+ Skill body is in `data.item.content`; directory entries are in `data.items`. Text file
71
+ reads return `data.content`. Use a path returned by the corresponding directory listing;
72
+ `--path` is relative to references, scripts or assets, without that directory prefix.
73
+ All three read commands support `--output <local-file>` to preserve binary bytes. Use a
74
+ new workspace file path and inspect scripts before any execution. Check reported versions
75
+ against the context and re-fetch if they change. An empty listing does not prove that a
76
+ file required by the Skill is unnecessary: report a missing required file and stop that step.
77
+
78
+ ## MCP dependencies and failures
79
+
80
+ If the user explicitly requests exporting current-user MCP credentials, use:
81
+
82
+ ```bash
83
+ ae-cli agent +get-agent-context --id <agent-id> --include-mcp-credentials --host <original-host>
84
+ ```
85
+
86
+ This is sensitive output: do not quote it in chat or logs, or commit it. Put the connection
87
+ only in the intended local client configuration. Require `data.credentials_included=true`;
88
+ its absence means an older server, not success. For each MCP, check `connection_config`:
89
+ `exported` supplies `connection_name` and the same `connection` configuration shown in the
90
+ current user's MCP market: `type`, `url`, `headers` for remote MCPs, or `type`, `command`,
91
+ `args`, `env` for stdio. Header and environment keys are unchanged; system URLs use the AE
92
+ host. `credential_expires_at=null` means expiry is not exposed. `unavailable` supplies a safe
93
+ `connection_error`. No refresh tokens or platform-internal keys are included. Re-export
94
+ after credentials expire or are revoked. Platform managed bridges require the platform
95
+ runtime. Do not assume a successful export proves connectivity.
96
+
97
+
98
+ Use `ae-cli agent +mcp-tools --id <mcp-id> --host <original-host>` for platform tool metadata.
99
+ For OAuth MCPs only, `ae-cli agent +mcp-auth-status --id <mcp-id> --host <original-host>`
100
+ reports platform authentication. Neither establishes a local connection. Reuse an existing
101
+ local capability when suitable; otherwise obtain connection setup through the client's
102
+ normal credential flow. Do not ask for secrets in chat or claim platform OAuth transfers.
103
+
104
+ - 401/auth error: log in on the same host and retry once; stop if authentication still fails.
105
+ - 403: permission denied; do not refresh repeatedly or require an admin account by default.
106
+ - 404 on context: run `ae-cli agent +get-agent --id <agent-id> --host <original-host>`.
107
+ If it also fails, verify the ID/account/host. If it succeeds, verify endpoint deployment
108
+ with the administrator. Raw Agent configuration is not a complete context fallback.
109
+ - 409 `invalid_agent_configuration`: ask the Agent owner to repair dependency configuration.
110
+ - 500/network error: report the failed step and host; no silent success or fallback.
111
+ - Unavailable dependency or file: stop only the step that needs it; explain what is missing.
112
+
113
+ Never claim the full Agent is ready from prompt loading alone. Context is live metadata,
114
+ not a frozen package; re-fetch it for a new task.
@@ -1,15 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
- import {
3
- getToken,
4
- invalidateAccessTokenForRetry,
5
- resolveHost,
6
- validateToken
7
- } from "./chunk-O6K2ODUE.js";
8
- import "./chunk-KZ6ZHF5J.js";
9
- import "./chunk-FR2EDAQM.js";
10
- export {
11
- getToken,
12
- invalidateAccessTokenForRetry,
13
- resolveHost,
14
- validateToken
15
- };
@@ -1,72 +0,0 @@
1
- import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
-
3
- // src/core/errors.ts
4
- var PermissionError = class extends Error {
5
- constructor(message, code, hint) {
6
- super(message);
7
- this.code = code;
8
- this.hint = hint;
9
- this.name = "PermissionError";
10
- }
11
- code;
12
- hint;
13
- };
14
- var CliValidationError = class extends Error {
15
- code;
16
- hint;
17
- location;
18
- constructor(message, options = {}) {
19
- super(message);
20
- this.name = "CliValidationError";
21
- this.code = options.code;
22
- this.hint = options.hint;
23
- if (options.location) {
24
- const location = {};
25
- if (typeof options.location.segment === "number" && Number.isFinite(options.location.segment)) {
26
- location.segment = options.location.segment;
27
- }
28
- if (typeof options.location.record === "number" && Number.isFinite(options.location.record)) {
29
- location.record = options.location.record;
30
- }
31
- if (typeof options.location.field === "string" && options.location.field.length > 0) {
32
- location.field = options.location.field;
33
- }
34
- if (Object.keys(location).length > 0) this.location = location;
35
- }
36
- }
37
- };
38
- var CommunityReportError = class extends Error {
39
- code;
40
- httpStatus;
41
- hint;
42
- meta;
43
- constructor(message, options = {}) {
44
- super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
45
- this.name = "CommunityReportError";
46
- this.code = options.code;
47
- this.httpStatus = options.httpStatus;
48
- this.hint = options.hint;
49
- this.meta = options.meta;
50
- }
51
- };
52
- var LocalDataUploadError = class extends Error {
53
- code;
54
- httpStatus;
55
- hint;
56
- meta;
57
- constructor(message, options = {}) {
58
- super(message, options.cause === void 0 ? void 0 : { cause: options.cause });
59
- this.name = "LocalDataUploadError";
60
- this.code = options.code;
61
- this.httpStatus = options.httpStatus;
62
- this.hint = options.hint;
63
- this.meta = options.meta;
64
- }
65
- };
66
-
67
- export {
68
- PermissionError,
69
- CliValidationError,
70
- CommunityReportError,
71
- LocalDataUploadError
72
- };