@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/dist/index.js CHANGED
@@ -7,56 +7,58 @@ import {
7
7
  extractErrors,
8
8
  fixDraft,
9
9
  getPackageRoot,
10
+ readFileSync,
11
+ set_fs,
10
12
  t,
13
+ utils,
11
14
  validateAndFix,
12
15
  validateDraft,
13
16
  writeDraftXlsx
14
- } from "./chunk-QL6R6TSK.js";
17
+ } from "./chunk-4NRCTUZJ.js";
15
18
  import {
16
19
  getLocalCliPackageInfo
17
20
  } from "./chunk-E2JKXMVO.js";
18
21
  import {
19
22
  requiresConfirmation
20
23
  } from "./chunk-AMBFK2K3.js";
21
- import "./chunk-B5HMQAOM.js";
24
+ import "./chunk-DVMLWQD4.js";
25
+ import "./chunk-EQ255HKO.js";
26
+ import "./chunk-V2NUHPXF.js";
22
27
  import {
23
28
  TeAgentApiError,
24
29
  TeAgentCredentialsError
25
- } from "./chunk-6QK7SYYY.js";
30
+ } from "./chunk-HBGADCKA.js";
31
+ import {
32
+ CapabilityGatewayError,
33
+ executeCapability,
34
+ uploadInputFileBytes
35
+ } from "./chunk-HFGZGYCG.js";
36
+ import {
37
+ resolveHost
38
+ } from "./chunk-JOCDD4ON.js";
26
39
  import {
27
40
  formatCapabilityMissCompatHint,
28
41
  printError,
29
42
  printOutput,
30
43
  runHostCompatCheck
31
- } from "./chunk-KEWVSO64.js";
32
- import {
33
- CapabilityGatewayError,
34
- executeCapability,
35
- uploadInputFileBytes
36
- } from "./chunk-GJXRF7Y6.js";
44
+ } from "./chunk-DX5CDO34.js";
37
45
  import "./chunk-Y74WTIKJ.js";
38
- import {
39
- clearCliToken,
40
- getCliToken
41
- } from "./chunk-RWXIXOZG.js";
42
46
  import {
43
47
  SecureStoreAuthError,
44
- resolveHost
45
- } from "./chunk-O6K2ODUE.js";
48
+ getCliToken
49
+ } from "./chunk-7XGFSUOM.js";
46
50
  import {
47
51
  getActiveHost,
48
52
  getConfigDir,
49
53
  safeJsonParse
50
- } from "./chunk-KZ6ZHF5J.js";
54
+ } from "./chunk-7FTTULED.js";
51
55
  import {
52
56
  CliValidationError,
53
57
  CommunityReportError,
54
58
  LocalDataUploadError,
55
- PermissionError
56
- } from "./chunk-533JK3YX.js";
57
- import {
59
+ PermissionError,
58
60
  logger
59
- } from "./chunk-FR2EDAQM.js";
61
+ } from "./chunk-MAPZ7VB6.js";
60
62
 
61
63
  // src/index.ts
62
64
  import { Command as CommanderCommand } from "commander";
@@ -211,7 +213,7 @@ async function runCommand(cmd, opts, globalOpts) {
211
213
  await ctx.out(result);
212
214
  } catch (err) {
213
215
  if (err?.type === "validation" && typeof err?.hint === "string" && String(err.message || "").includes("--jq")) {
214
- printError("validation", err.message, err.hint);
216
+ printError("validation", err.message, err.hint, err.code);
215
217
  process.exit(1);
216
218
  }
217
219
  const message = err.message || String(err);
@@ -231,7 +233,7 @@ async function runCommand(cmd, opts, globalOpts) {
231
233
  } else if (err instanceof PermissionError) {
232
234
  printError("permission", message, err.hint, err.code);
233
235
  } else if (err instanceof CapabilityGatewayError) {
234
- printError("api", message, err.hint ?? capabilityGatewayHint(err), err.code, err.meta);
236
+ printError(err.type, message, err.hint ?? capabilityGatewayHint(err), err.code, err.meta);
235
237
  } else if (err instanceof CommunityReportError) {
236
238
  printError("api", message, err.hint, err.code, err.meta, { log: false });
237
239
  } else if (err instanceof LocalDataUploadError) {
@@ -249,7 +251,7 @@ async function runCommand(cmd, opts, globalOpts) {
249
251
  "api",
250
252
  presentation.message ?? message,
251
253
  presentation.hint,
252
- presentation.code,
254
+ presentation.code ?? err.code,
253
255
  presentation.meta
254
256
  );
255
257
  }
@@ -297,28 +299,24 @@ function looksLikeAuthFailure(message) {
297
299
  return m.includes("401") || m.includes("unauthorized") || m.includes("session expired") || m.includes("invalid access token") || m.includes("-1001") || m.includes("\u767B\u5F55") || m.includes("ae-cli auth login");
298
300
  }
299
301
  function createRuntimeContext(cmd, opts, globalOpts) {
300
- let _clientModule = null;
301
- async function getClient() {
302
- if (!_clientModule) {
303
- _clientModule = await import("./client-N7NGZUNI.js");
304
- }
305
- return _clientModule;
306
- }
307
302
  let _communityReportModule = null;
308
303
  async function getCommunityReportClient() {
309
304
  if (!_communityReportModule) {
310
- _communityReportModule = await import("./community-report-client-6OL6GBQW.js");
305
+ _communityReportModule = await import("./community-report-client-CU22W53K.js");
311
306
  }
312
307
  return _communityReportModule;
313
308
  }
314
309
  let _localDataUploadModule = null;
315
310
  async function getLocalDataUploadClient() {
316
311
  if (!_localDataUploadModule) {
317
- _localDataUploadModule = await import("./local-data-upload-client-EFHDLXFG.js");
312
+ _localDataUploadModule = await import("./local-data-upload-client-GTRIT64F.js");
318
313
  }
319
314
  return _localDataUploadModule;
320
315
  }
321
316
  const ctx = {
317
+ has(name) {
318
+ return Object.prototype.hasOwnProperty.call(opts, camelCase(name));
319
+ },
322
320
  str(name) {
323
321
  return String(opts[camelCase(name)] ?? "");
324
322
  },
@@ -351,34 +349,14 @@ function createRuntimeContext(cmd, opts, globalOpts) {
351
349
  if (val === void 0 || val === null || val === "") return [];
352
350
  return [String(val)];
353
351
  },
354
- async api(method, path4, params, data) {
355
- const client = await getClient();
356
- if (method.toUpperCase() === "GET") {
357
- return client.httpGet(path4, params, ctx.host());
358
- } else {
359
- return client.httpRequest(method, path4, params, data, ctx.host());
360
- }
361
- },
362
352
  async communityReport(endpoint, rawBody) {
363
353
  const client = await getCommunityReportClient();
364
354
  return client.communityReport(endpoint, rawBody);
365
355
  },
366
- async querySql(projectId, sql) {
367
- const client = await getClient();
368
- return client.querySql(projectId, sql, ctx.host());
369
- },
370
- async queryReportData(projectId, reportId, qp, eventModel, options) {
371
- const client = await getClient();
372
- return client.queryReportData(projectId, reportId, qp, eventModel, options, ctx.host());
373
- },
374
356
  async localDataUpload(endpoint, rawBody, options) {
375
357
  const client = await getLocalDataUploadClient();
376
358
  return client.localDataUpload(endpoint, rawBody, options);
377
359
  },
378
- async token() {
379
- const { getToken } = await import("./auth-UMJAA72O.js");
380
- return getToken(ctx.host());
381
- },
382
360
  host() {
383
361
  if (globalOpts.host) return globalOpts.host;
384
362
  return getActiveHost();
@@ -630,7 +608,7 @@ var TrackingClient = class {
630
608
  async resolveCliToken() {
631
609
  return this.cliToken ?? getCliToken(this.host);
632
610
  }
633
- async requestJson(modulePath, params = {}, body, method = body === void 0 ? "GET" : "POST", retry = true) {
611
+ async requestJson(modulePath, params = {}, body, method = body === void 0 ? "GET" : "POST") {
634
612
  const token = await this.resolveCliToken();
635
613
  const url = buildUrl(this.host, modulePath, params);
636
614
  const headers = {
@@ -645,10 +623,10 @@ var TrackingClient = class {
645
623
  const resp = await fetch(url, init);
646
624
  const env = safeJsonParse(await resp.text());
647
625
  logger.api(method, url, resp.status, body, env);
648
- if (resp.status === 401 && retry) {
649
- clearCliToken(this.host);
650
- this.cliToken = await getCliToken(this.host);
651
- return this.requestJson(modulePath, params, body, method, false);
626
+ if (resp.status === 401) {
627
+ throw new SecureStoreAuthError(
628
+ `The stored CLI token for ${this.host} is invalid or expired. Run: ae-cli auth login --host ${this.host}`
629
+ );
652
630
  }
653
631
  if (resp.status === 403) {
654
632
  throw new Error(env?.return_message || "Permission denied");
@@ -656,10 +634,10 @@ var TrackingClient = class {
656
634
  if (!resp.ok) {
657
635
  throw new Error(`AE API HTTP error: ${resp.status} ${resp.statusText}`);
658
636
  }
659
- if (env?.return_code === -1001 && retry) {
660
- clearCliToken(this.host);
661
- this.cliToken = await getCliToken(this.host);
662
- return this.requestJson(modulePath, params, body, method, false);
637
+ if (env?.return_code === -1001) {
638
+ throw new SecureStoreAuthError(
639
+ `The stored CLI token for ${this.host} is invalid or expired. Run: ae-cli auth login --host ${this.host}`
640
+ );
663
641
  }
664
642
  if (env?.return_code !== 0 && env?.return_code !== void 0) {
665
643
  throw new Error(env.return_message || `AE API error (code: ${env.return_code})`);
@@ -1141,7 +1119,8 @@ async function resolveTrackingTemplateByName(name) {
1141
1119
  import { existsSync as existsSync2, statSync } from "fs";
1142
1120
  var HOST_OPTION_DESC = "Override active AE host URL";
1143
1121
  function resolveTrackingHost(program2, opts) {
1144
- const root = program2.root ?? program2;
1122
+ let root = program2;
1123
+ while (root.parent) root = root.parent;
1145
1124
  const globalHost = root.opts()?.host;
1146
1125
  const explicitHost = opts.host || globalHost;
1147
1126
  const host = resolveHost(explicitHost);
@@ -1521,11 +1500,11 @@ async function detectProject(cwd) {
1521
1500
  }
1522
1501
 
1523
1502
  // src/tracking/xlsx/read.ts
1524
- import XLSXMod from "xlsx";
1503
+ import * as nodeFs from "fs";
1525
1504
  import path3 from "path";
1526
- var XLSX = XLSXMod.default ?? XLSXMod;
1505
+ set_fs(nodeFs);
1527
1506
  var VALID_PROP_TYPES = /* @__PURE__ */ new Set(["string", "number", "bool", "datetime", "object", "array_row", "array_string"]);
1528
- var VALID_UPDATE_TYPES = /* @__PURE__ */ new Set(["user_set", "user_setOnce", "user_add"]);
1507
+ var VALID_UPDATE_TYPES = /* @__PURE__ */ new Set(["user_set", "user_setOnce", "user_add", "user_append"]);
1529
1508
  function normalizeHeader(h) {
1530
1509
  return h.trim().replace(/[((]\s*(?:必填|必須|필수|required|Required)\s*[))]/g, "").trim().replace(/名称$/g, "\u540D");
1531
1510
  }
@@ -1828,7 +1807,7 @@ function fillDownMergedCells(rows, merges) {
1828
1807
  async function readTemplateXlsx(filePath) {
1829
1808
  let wb;
1830
1809
  try {
1831
- wb = XLSX.readFile(filePath);
1810
+ wb = readFileSync(filePath);
1832
1811
  } catch (err) {
1833
1812
  throw new Error(t("error.xlsx_read_failed", { path: filePath, error: String(err) }));
1834
1813
  }
@@ -1842,7 +1821,7 @@ async function readTemplateXlsx(filePath) {
1842
1821
  if (!sName.startsWith("#")) continue;
1843
1822
  if (allSheetNames("user_id").includes(sName)) continue;
1844
1823
  const ws = wb.Sheets[sName];
1845
- const rows = XLSX.utils.sheet_to_json(ws, {
1824
+ const rows = utils.sheet_to_json(ws, {
1846
1825
  header: 1,
1847
1826
  raw: false,
1848
1827
  defval: null
@@ -1902,7 +1881,7 @@ function findCol(colIndex, candidates, fallback) {
1902
1881
  }
1903
1882
  return fallback;
1904
1883
  }
1905
- var VALID_UPDATE_TYPES2 = /* @__PURE__ */ new Set(["user_set", "user_setOnce", "user_add"]);
1884
+ var VALID_UPDATE_TYPES2 = /* @__PURE__ */ new Set(["user_set", "user_setOnce", "user_add", "user_append"]);
1906
1885
  function parseType(raw) {
1907
1886
  const canonical = displayToType(raw);
1908
1887
  if (canonical) return canonical;
@@ -2192,13 +2171,13 @@ function registerCode(cmd) {
2192
2171
  }
2193
2172
 
2194
2173
  // src/tracking/wiki-query/query.ts
2195
- import { readFileSync, existsSync as existsSync4 } from "fs";
2174
+ import { readFileSync as readFileSync2, existsSync as existsSync4 } from "fs";
2196
2175
  import { join as join2 } from "path";
2197
2176
  var WIKI_ROOT = join2(getPackageRoot(), "wiki/te-docs");
2198
2177
  function searchIndex(keyword) {
2199
2178
  const indexPath = join2(WIKI_ROOT, "index.md");
2200
2179
  if (!existsSync4(indexPath)) return [];
2201
- const lines = readFileSync(indexPath, "utf8").split("\n");
2180
+ const lines = readFileSync2(indexPath, "utf8").split("\n");
2202
2181
  const kw = keyword.toLowerCase();
2203
2182
  const hits = [];
2204
2183
  for (const line of lines) {
@@ -2350,120 +2329,151 @@ program.name("ae-cli").version(version).description("CLI tool for ThinkingAI (AE
2350
2329
  "Optional: pre-execution preview without business logic (gateway /dry-run; other transports preview). Use alone to confirm a run; do not stack with --validate",
2351
2330
  false
2352
2331
  ).option("--yes", "Skip confirmation for high-risk write operations", false).option("--no-update-check", "Skip host compatibility checks", false);
2332
+ function warnLoadFailure(label, err) {
2333
+ const reason = err instanceof Error ? err.message : String(err);
2334
+ process.stderr.write(`warning: failed to load ${label}: ${reason}
2335
+ `);
2336
+ }
2353
2337
  async function loadCommands() {
2354
2338
  const commands = [];
2355
2339
  try {
2356
- const teAnalysis = await import("./te-analysis-MNCG65LU.js");
2340
+ const teAnalysis = await import("./te-analysis-AISWCOOZ.js");
2357
2341
  commands.push(...teAnalysis.default);
2358
- } catch {
2342
+ } catch (err) {
2343
+ warnLoadFailure("domain te-analysis", err);
2359
2344
  }
2360
2345
  try {
2361
- const engage = await import("./te-engage-TPKLRVTL.js");
2346
+ const engage = await import("./te-engage-BAM3GBFX.js");
2362
2347
  commands.push(...engage.default);
2363
- } catch {
2348
+ } catch (err) {
2349
+ warnLoadFailure("domain te-engage", err);
2364
2350
  }
2365
2351
  try {
2366
- const experiment = await import("./te-experiment-6BYKTCY7.js");
2352
+ const experiment = await import("./te-experiment-GUTZXZ5Z.js");
2367
2353
  commands.push(...experiment.default);
2368
- } catch {
2354
+ } catch (err) {
2355
+ warnLoadFailure("domain te-experiment", err);
2369
2356
  }
2370
2357
  try {
2371
- const community = await import("./te-community-BNE6KREL.js");
2358
+ const community = await import("./te-community-4OYU3BDA.js");
2372
2359
  commands.push(...community.default);
2373
- } catch {
2360
+ } catch (err) {
2361
+ warnLoadFailure("domain te-community", err);
2374
2362
  }
2375
2363
  try {
2376
- const dataops = await import("./te-dataops-TXLKM2W6.js");
2364
+ const dataops = await import("./te-dataops-NFIPB6FX.js");
2377
2365
  commands.push(...dataops.default);
2378
- } catch {
2366
+ } catch (err) {
2367
+ warnLoadFailure("domain te-dataops", err);
2379
2368
  }
2380
2369
  try {
2381
- const teKb = await import("./te-kb-BUD6N3NI.js");
2370
+ const teKb = await import("./te-kb-3TS73NO6.js");
2382
2371
  commands.push(...teKb.default);
2383
- } catch {
2372
+ } catch (err) {
2373
+ warnLoadFailure("domain te-kb", err);
2384
2374
  }
2385
2375
  try {
2386
- const teTeam = await import("./te-team-XMP47YXE.js");
2376
+ const teTeam = await import("./te-team-3I5AOX3N.js");
2387
2377
  commands.push(...teTeam.default);
2388
- } catch {
2378
+ } catch (err) {
2379
+ warnLoadFailure("domain te-team", err);
2389
2380
  }
2390
2381
  try {
2391
- const teAgent = await import("./te-agent-WQZTMEK4.js");
2382
+ const teAgent = await import("./te-agent-K5MSPNHJ.js");
2392
2383
  commands.push(...teAgent.default);
2393
- } catch {
2384
+ } catch (err) {
2385
+ warnLoadFailure("domain te-agent", err);
2394
2386
  }
2395
2387
  try {
2396
- const memory = await import("./memory-HBJQ2GC5.js");
2388
+ const memory = await import("./memory-QGPSNCQS.js");
2397
2389
  commands.push(...memory.default);
2398
- } catch {
2390
+ } catch (err) {
2391
+ warnLoadFailure("domain memory", err);
2399
2392
  }
2400
2393
  try {
2401
- const teSystem = await import("./te-system-44LZJDTQ.js");
2394
+ const teSystem = await import("./te-system-STMHLS5J.js");
2402
2395
  commands.push(...teSystem.default);
2403
- } catch {
2396
+ } catch (err) {
2397
+ warnLoadFailure("domain te-system", err);
2404
2398
  }
2405
2399
  try {
2406
- const metadata = await import("./metadata-62EWBEIG.js");
2400
+ const metadata = await import("./metadata-DI5BMYFU.js");
2407
2401
  commands.push(...metadata.default);
2408
- } catch {
2402
+ } catch (err) {
2403
+ warnLoadFailure("domain metadata", err);
2409
2404
  }
2410
2405
  try {
2411
- const projectSemantic = await import("./project-semantic-BQ4MPUS5.js");
2412
- commands.push(...projectSemantic.default);
2413
- } catch {
2406
+ const personalSemanticPreference = await import("./personal-semantic-preference-5C3WUXFI.js");
2407
+ commands.push(...personalSemanticPreference.default);
2408
+ } catch (err) {
2409
+ warnLoadFailure("domain personal-semantic-preference", err);
2414
2410
  }
2415
2411
  try {
2416
- const personalSemanticPreference = await import("./personal-semantic-preference-JBVMAI7L.js");
2417
- commands.push(...personalSemanticPreference.default);
2418
- } catch {
2412
+ const projectSemantic = await import("./project-semantic-3LF6Q6JZ.js");
2413
+ commands.push(...projectSemantic.default);
2414
+ } catch (err) {
2415
+ warnLoadFailure("domain project-semantic", err);
2419
2416
  }
2420
2417
  try {
2421
- const dataIntegration = await import("./data-integration-4NZGZ45E.js");
2418
+ const dataIntegration = await import("./data-integration-HNGUKFIC.js");
2422
2419
  commands.push(...dataIntegration.default);
2423
- } catch {
2420
+ } catch (err) {
2421
+ warnLoadFailure("domain data-integration", err);
2422
+ }
2423
+ try {
2424
+ const context = await import("./context-IFJI3LIT.js");
2425
+ commands.push(...context.default);
2426
+ } catch (err) {
2427
+ warnLoadFailure("domain context", err);
2424
2428
  }
2425
2429
  return commands;
2426
2430
  }
2427
2431
  async function registerAuthCommands() {
2428
2432
  try {
2429
- const { registerAuth } = await import("./auth-QPEVVBKT.js");
2433
+ const { registerAuth } = await import("./auth-XZNXFRJS.js");
2430
2434
  registerAuth(program);
2431
- } catch {
2435
+ } catch (err) {
2436
+ warnLoadFailure("auth commands", err);
2432
2437
  }
2433
2438
  }
2434
2439
  async function registerConfigCommands() {
2435
2440
  try {
2436
- const { registerConfig } = await import("./config-XNMACCKX.js");
2441
+ const { registerConfig } = await import("./config-XO3LI3SA.js");
2437
2442
  registerConfig(program);
2438
- } catch {
2443
+ } catch (err) {
2444
+ warnLoadFailure("config commands", err);
2439
2445
  }
2440
2446
  }
2441
2447
  async function registerCapabilityCommands() {
2442
2448
  try {
2443
- const { registerCapability } = await import("./capability-ASI62I4A.js");
2449
+ const { registerCapability } = await import("./capability-FYTU3X6L.js");
2444
2450
  registerCapability(program);
2445
- } catch {
2451
+ } catch (err) {
2452
+ warnLoadFailure("capability commands", err);
2446
2453
  }
2447
2454
  }
2448
2455
  async function registerSyncCommand() {
2449
2456
  try {
2450
- const { registerSync } = await import("./sync-MUWPRM5I.js");
2457
+ const { registerSync } = await import("./sync-O45NXEQY.js");
2451
2458
  registerSync(program);
2452
- } catch {
2459
+ } catch (err) {
2460
+ warnLoadFailure("sync commands", err);
2453
2461
  }
2454
2462
  }
2455
2463
  async function registerModelCommand() {
2456
2464
  try {
2457
- const { registerModel } = await import("./model-BHLJ2QMT.js");
2465
+ const { registerModel } = await import("./model-RNPQXIBI.js");
2458
2466
  registerModel(program);
2459
- } catch {
2467
+ } catch (err) {
2468
+ warnLoadFailure("model commands", err);
2460
2469
  }
2461
2470
  }
2462
2471
  async function registerUpdateCommand() {
2463
2472
  try {
2464
- const { registerUpdate } = await import("./update-UODFOZ4P.js");
2473
+ const { registerUpdate } = await import("./update-RZXLPCRH.js");
2465
2474
  registerUpdate(program);
2466
- } catch {
2475
+ } catch (err) {
2476
+ warnLoadFailure("update commands", err);
2467
2477
  }
2468
2478
  }
2469
2479
  async function main() {
@@ -1,10 +1,8 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
- LocalDataUploadError
4
- } from "./chunk-533JK3YX.js";
5
- import {
3
+ LocalDataUploadError,
6
4
  logger
7
- } from "./chunk-FR2EDAQM.js";
5
+ } from "./chunk-MAPZ7VB6.js";
8
6
 
9
7
  // src/core/local-data-upload-client.ts
10
8
  import { createHash } from "crypto";
@@ -38,6 +36,7 @@ async function performAttempt(endpoint, body, options) {
38
36
  let response;
39
37
  let responseText = "";
40
38
  try {
39
+ const requestBody = typeof body === "string" ? body : Uint8Array.from(body).buffer;
41
40
  response = await fetchImpl(endpoint, {
42
41
  method: "POST",
43
42
  headers: {
@@ -45,7 +44,7 @@ async function performAttempt(endpoint, body, options) {
45
44
  "Accept": "application/json",
46
45
  ...compress ? { "Content-Encoding": "gzip" } : {}
47
46
  },
48
- body,
47
+ body: requestBody,
49
48
  redirect: "manual",
50
49
  signal: controller.signal
51
50
  });
@@ -2,13 +2,11 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  buildCapabilityGatewayUrl,
4
4
  callCapabilityApi
5
- } from "./chunk-GJXRF7Y6.js";
5
+ } from "./chunk-HFGZGYCG.js";
6
6
  import "./chunk-Y74WTIKJ.js";
7
- import "./chunk-RWXIXOZG.js";
8
- import "./chunk-O6K2ODUE.js";
9
- import "./chunk-KZ6ZHF5J.js";
10
- import "./chunk-533JK3YX.js";
11
- import "./chunk-FR2EDAQM.js";
7
+ import "./chunk-7XGFSUOM.js";
8
+ import "./chunk-7FTTULED.js";
9
+ import "./chunk-MAPZ7VB6.js";
12
10
 
13
11
  // src/commands/memory/index.ts
14
12
  import fs from "fs/promises";
@@ -1,21 +1,19 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  withAsyncArtifactLifecycle
4
- } from "./chunk-S5PONFBM.js";
4
+ } from "./chunk-VYXXOKYS.js";
5
5
  import {
6
6
  createCapabilityCommand
7
- } from "./chunk-DKEXH6Q5.js";
7
+ } from "./chunk-CCS66K4K.js";
8
+ import "./chunk-HFGZGYCG.js";
8
9
  import {
9
10
  registerCapabilityGatewayRoute
10
- } from "./chunk-TKHSULJT.js";
11
- import "./chunk-KEWVSO64.js";
12
- import "./chunk-GJXRF7Y6.js";
11
+ } from "./chunk-KPQY44JQ.js";
12
+ import "./chunk-DX5CDO34.js";
13
13
  import "./chunk-Y74WTIKJ.js";
14
- import "./chunk-RWXIXOZG.js";
15
- import "./chunk-O6K2ODUE.js";
16
- import "./chunk-KZ6ZHF5J.js";
17
- import "./chunk-533JK3YX.js";
18
- import "./chunk-FR2EDAQM.js";
14
+ import "./chunk-7XGFSUOM.js";
15
+ import "./chunk-7FTTULED.js";
16
+ import "./chunk-MAPZ7VB6.js";
19
17
 
20
18
  // src/commands/metadata/shared.ts
21
19
  function createCapabilityCommand2(config) {
@@ -12,13 +12,11 @@ import {
12
12
  getClaudeConfigDir,
13
13
  getSandboxModels,
14
14
  postSandboxModelSelection
15
- } from "./chunk-6QK7SYYY.js";
15
+ } from "./chunk-HBGADCKA.js";
16
16
  import "./chunk-Y74WTIKJ.js";
17
- import "./chunk-RWXIXOZG.js";
18
- import "./chunk-O6K2ODUE.js";
19
- import "./chunk-KZ6ZHF5J.js";
20
- import "./chunk-533JK3YX.js";
21
- import "./chunk-FR2EDAQM.js";
17
+ import "./chunk-7XGFSUOM.js";
18
+ import "./chunk-7FTTULED.js";
19
+ import "./chunk-MAPZ7VB6.js";
22
20
 
23
21
  // src/commands/model/index.ts
24
22
  import { existsSync, readFileSync } from "fs";
@@ -1,18 +1,16 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-DKEXH6Q5.js";
4
+ } from "./chunk-CCS66K4K.js";
5
+ import "./chunk-HFGZGYCG.js";
5
6
  import {
6
7
  registerCapabilityGatewayRoute
7
- } from "./chunk-TKHSULJT.js";
8
- import "./chunk-KEWVSO64.js";
9
- import "./chunk-GJXRF7Y6.js";
8
+ } from "./chunk-KPQY44JQ.js";
9
+ import "./chunk-DX5CDO34.js";
10
10
  import "./chunk-Y74WTIKJ.js";
11
- import "./chunk-RWXIXOZG.js";
12
- import "./chunk-O6K2ODUE.js";
13
- import "./chunk-KZ6ZHF5J.js";
14
- import "./chunk-533JK3YX.js";
15
- import "./chunk-FR2EDAQM.js";
11
+ import "./chunk-7XGFSUOM.js";
12
+ import "./chunk-7FTTULED.js";
13
+ import "./chunk-MAPZ7VB6.js";
16
14
 
17
15
  // src/commands/personal-semantic-preference/shared.ts
18
16
  function createPersonalSemanticPreferenceCommand(config) {
@@ -226,7 +224,10 @@ var personalSemanticPreferenceUpdate = createPersonalSemanticPreferenceCommand({
226
224
  });
227
225
 
228
226
  // src/commands/personal-semantic-preference/index.ts
229
- registerCapabilityGatewayRoute("personal-semantic-preference", { gatewayDomain: "analysis" });
227
+ registerCapabilityGatewayRoute("personal-semantic-preference", {
228
+ gatewayDomain: "analysis",
229
+ capabilityPrefixes: ["business_semantics.personal_context"]
230
+ });
230
231
  var commands = [
231
232
  personalSemanticPreferenceList,
232
233
  personalSemanticPreferenceGet,