@thinkingai/ae-cli 6.0.48 → 6.0.49

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 (330) hide show
  1. package/README.md +2 -0
  2. package/README.zh.md +2 -0
  3. package/dist/{auth-FUM37MHF.js → auth-XZNXFRJS.js} +5 -5
  4. package/dist/{capability-J4FU4JZW.js → capability-RJZ4KRGP.js} +42 -12
  5. package/dist/{chunk-LNZBEQXW.js → chunk-4NRCTUZJ.js} +27041 -474
  6. package/dist/{chunk-VXNMYUXU.js → chunk-57RRFUEZ.js} +23 -7
  7. package/dist/{chunk-WZ6YVQSF.js → chunk-7FTTULED.js} +1 -1
  8. package/dist/{chunk-ATSM5XAW.js → chunk-7XGFSUOM.js} +2 -2
  9. package/dist/{chunk-I4WQAEYB.js → chunk-DVMLWQD4.js} +8 -186
  10. package/dist/{chunk-CZU3V3DQ.js → chunk-DX5CDO34.js} +27 -6
  11. package/dist/chunk-EQ255HKO.js +38248 -0
  12. package/dist/{chunk-BBEFP4SB.js → chunk-HBGADCKA.js} +3 -3
  13. package/dist/{chunk-QJQZH5GQ.js → chunk-HFGZGYCG.js} +10 -6
  14. package/dist/{chunk-ECBLHAZO.js → chunk-JOCDD4ON.js} +1 -1
  15. package/dist/{chunk-TKHSULJT.js → chunk-KPQY44JQ.js} +6 -0
  16. package/dist/chunk-L2QUIZTS.js +155 -0
  17. package/dist/{chunk-4P355ZWB.js → chunk-MAPZ7VB6.js} +21 -1
  18. package/dist/chunk-V2NUHPXF.js +196 -0
  19. package/dist/{chunk-HPLNYQPM.js → chunk-WEPZ5M3Z.js} +5 -5
  20. package/dist/{community-report-client-XXWGSBSD.js → community-report-client-CU22W53K.js} +1 -1
  21. package/dist/{config-EXUGQN5T.js → config-XO3LI3SA.js} +4 -4
  22. package/dist/context-IFJI3LIT.js +46 -0
  23. package/dist/{data-integration-4NZ53OMT.js → data-integration-HNGUKFIC.js} +44 -35
  24. package/dist/index.js +102 -61
  25. package/dist/{local-data-upload-client-KYOKVYZV.js → local-data-upload-client-GTRIT64F.js} +3 -2
  26. package/dist/{memory-ATNKZNW5.js → memory-QGPSNCQS.js} +4 -4
  27. package/dist/{metadata-3J5ZAVMF.js → metadata-JAQW7KGZ.js} +8 -8
  28. package/dist/{model-E4JMQ4V2.js → model-RNPQXIBI.js} +4 -4
  29. package/dist/{personal-semantic-preference-32AAJ37M.js → personal-semantic-preference-QCZ2IZTK.js} +11 -8
  30. package/dist/project-semantic-64JURXKF.js +372 -0
  31. package/dist/{sync-2GTAKZYX.js → sync-O45NXEQY.js} +10 -9
  32. package/dist/{te-agent-JB5T3PO7.js → te-agent-K5MSPNHJ.js} +5 -5
  33. package/dist/{te-analysis-WHYXHRJD.js → te-analysis-KQKCAI5H.js} +1086 -354
  34. package/dist/{te-community-UDBI672N.js → te-community-4OYU3BDA.js} +4 -4
  35. package/dist/{te-dataops-ZLYOCXZ4.js → te-dataops-NFIPB6FX.js} +5 -5
  36. package/dist/{te-engage-DHKNJ5BO.js → te-engage-HSVSRW22.js} +7 -7
  37. package/dist/{te-kb-WYQWHFSC.js → te-kb-3TS73NO6.js} +454 -194
  38. package/dist/{te-system-7G6F2LJA.js → te-system-STMHLS5J.js} +12 -7
  39. package/dist/{te-team-E7FBBXMQ.js → te-team-3I5AOX3N.js} +6 -6
  40. package/dist/{update-D47BUG25.js → update-RZXLPCRH.js} +4 -4
  41. package/package.json +21 -14
  42. package/skills/ae-analysis/SKILL.md +91 -91
  43. package/skills/ae-analysis/references/adhoc_export.md +11 -18
  44. package/skills/ae-analysis/references/adhoc_run.md +15 -7
  45. package/skills/ae-analysis/references/agent_review_detail.md +11 -0
  46. package/skills/ae-analysis/references/agent_review_evidence.md +46 -0
  47. package/skills/ae-analysis/references/agent_review_list.md +9 -0
  48. package/skills/ae-analysis/references/agent_review_preflight.md +96 -0
  49. package/skills/ae-analysis/references/agent_review_priorities_comparisons.md +76 -0
  50. package/skills/ae-analysis/references/agent_review_records.md +9 -0
  51. package/skills/ae-analysis/references/agent_review_retry.md +12 -0
  52. package/skills/ae-analysis/references/agent_review_review.md +16 -0
  53. package/skills/ae-analysis/references/agent_review_submit_to_page.md +184 -0
  54. package/skills/ae-analysis/references/ai_models/attribution.md +29 -0
  55. package/skills/ae-analysis/references/ai_models/distribution.md +40 -0
  56. package/skills/ae-analysis/references/ai_models/event.md +108 -0
  57. package/skills/ae-analysis/references/ai_models/funnel.md +46 -0
  58. package/skills/ae-analysis/references/ai_models/heat_map.md +26 -0
  59. package/skills/ae-analysis/references/ai_models/interval.md +20 -0
  60. package/skills/ae-analysis/references/ai_models/path.md +38 -0
  61. package/skills/ae-analysis/references/ai_models/prop_analysis.md +39 -0
  62. package/skills/ae-analysis/references/ai_models/rank_list.md +25 -0
  63. package/skills/ae-analysis/references/ai_models/retention.md +70 -0
  64. package/skills/ae-analysis/references/ai_models/revenue.md +28 -0
  65. package/skills/ae-analysis/references/ai_models/sql.md +74 -0
  66. package/skills/ae-analysis/references/ai_models/tag.md +19 -0
  67. package/skills/ae-analysis/references/ai_models.md +32 -473
  68. package/skills/ae-analysis/references/alert_create.md +7 -7
  69. package/skills/ae-analysis/references/alert_delete.md +4 -6
  70. package/skills/ae-analysis/references/alert_detail_list.md +7 -9
  71. package/skills/ae-analysis/references/alert_get.md +5 -7
  72. package/skills/ae-analysis/references/alert_job_list.md +4 -6
  73. package/skills/ae-analysis/references/alert_list.md +6 -8
  74. package/skills/ae-analysis/references/alert_notice_config_list.md +4 -6
  75. package/skills/ae-analysis/references/alert_start.md +5 -7
  76. package/skills/ae-analysis/references/alert_stop.md +5 -7
  77. package/skills/ae-analysis/references/alert_update.md +8 -8
  78. package/skills/ae-analysis/references/analysis_data_export.md +72 -0
  79. package/skills/ae-analysis/references/analysis_data_retrieval.md +32 -196
  80. package/skills/ae-analysis/references/analysis_gateway_assets.md +23 -180
  81. package/skills/ae-analysis/references/analysis_interpretation.md +37 -17
  82. package/skills/ae-analysis/references/asset_abnormal_get.md +0 -1
  83. package/skills/ae-analysis/references/asset_abnormal_list.md +0 -1
  84. package/skills/ae-analysis/references/asset_authentication_export.md +4 -0
  85. package/skills/ae-analysis/references/asset_authentication_list.md +7 -1
  86. package/skills/ae-analysis/references/asset_authentication_update.md +5 -1
  87. package/skills/ae-analysis/references/asset_batch_dashboard_schedule_freeze.md +8 -6
  88. package/skills/ae-analysis/references/asset_batch_delete.md +6 -6
  89. package/skills/ae-analysis/references/asset_batch_disable_auto_backup.md +4 -5
  90. package/skills/ae-analysis/references/asset_batch_disable_auto_update.md +5 -6
  91. package/skills/ae-analysis/references/asset_batch_handover.md +4 -5
  92. package/skills/ae-analysis/references/asset_batch_info_export.md +4 -5
  93. package/skills/ae-analysis/references/asset_batch_sql_export.md +5 -6
  94. package/skills/ae-analysis/references/asset_dependency_list.md +4 -5
  95. package/skills/ae-analysis/references/asset_export.md +4 -5
  96. package/skills/ae-analysis/references/asset_impact_list.md +5 -9
  97. package/skills/ae-analysis/references/asset_lineage_get.md +5 -6
  98. package/skills/ae-analysis/references/asset_list.md +4 -5
  99. package/skills/ae-analysis/references/asset_query_history_list.md +4 -8
  100. package/skills/ae-analysis/references/asset_recent_list.md +0 -1
  101. package/skills/ae-analysis/references/asset_search.md +12 -9
  102. package/skills/ae-analysis/references/asset_url_get.md +3 -4
  103. package/skills/ae-analysis/references/bi_panel_copy.md +2 -2
  104. package/skills/ae-analysis/references/bi_panel_page_data_export.md +4 -12
  105. package/skills/ae-analysis/references/bi_panel_page_data_run.md +2 -0
  106. package/skills/ae-analysis/references/catalog_export.md +4 -17
  107. package/skills/ae-analysis/references/catalog_list.md +4 -4
  108. package/skills/ae-analysis/references/check_delete.md +5 -7
  109. package/skills/ae-analysis/references/check_export.md +11 -11
  110. package/skills/ae-analysis/references/check_get.md +8 -10
  111. package/skills/ae-analysis/references/check_list.md +4 -6
  112. package/skills/ae-analysis/references/check_retry.md +8 -10
  113. package/skills/ae-analysis/references/check_run.md +2 -4
  114. package/skills/ae-analysis/references/command_index.md +44 -26
  115. package/skills/ae-analysis/references/dashboard_report_data_export.md +5 -13
  116. package/skills/ae-analysis/references/dashboard_report_data_run.md +1 -1
  117. package/skills/ae-analysis/references/dashboard_update.md +14 -3
  118. package/skills/ae-analysis/references/datatable_columns_get.md +0 -1
  119. package/skills/ae-analysis/references/datatable_influence_list.md +0 -1
  120. package/skills/ae-analysis/references/datatable_version_get.md +0 -1
  121. package/skills/ae-analysis/references/datatable_version_list.md +0 -1
  122. package/skills/ae-analysis/references/debug_device_add.md +1 -2
  123. package/skills/ae-analysis/references/drilldown_entities_export.md +3 -3
  124. package/skills/ae-analysis/references/drilldown_events_export.md +3 -2
  125. package/skills/ae-analysis/references/drilldown_user_events_export.md +2 -2
  126. package/skills/ae-analysis/references/entity_detail_export.md +3 -2
  127. package/skills/ae-analysis/references/entity_detail_run.md +1 -0
  128. package/skills/ae-analysis/references/event_blacklist_add.md +5 -7
  129. package/skills/ae-analysis/references/event_blacklist_list.md +4 -6
  130. package/skills/ae-analysis/references/event_blacklist_update.md +6 -8
  131. package/skills/ae-analysis/references/event_changelog_list.md +0 -1
  132. package/skills/ae-analysis/references/event_create.md +0 -1
  133. package/skills/ae-analysis/references/event_detail_export.md +3 -2
  134. package/skills/ae-analysis/references/event_detail_run.md +1 -0
  135. package/skills/ae-analysis/references/event_export.md +0 -1
  136. package/skills/ae-analysis/references/event_get.md +0 -1
  137. package/skills/ae-analysis/references/event_hide_update.md +0 -1
  138. package/skills/ae-analysis/references/event_influence_list.md +0 -1
  139. package/skills/ae-analysis/references/event_list.md +0 -1
  140. package/skills/ae-analysis/references/event_property_bundle_export.md +5 -14
  141. package/skills/ae-analysis/references/event_property_bundle_import.md +2 -6
  142. package/skills/ae-analysis/references/event_relation_update.md +0 -1
  143. package/skills/ae-analysis/references/event_update.md +0 -1
  144. package/skills/ae-analysis/references/exchange_config_update.md +0 -1
  145. package/skills/ae-analysis/references/exchange_rate_refresh.md +0 -1
  146. package/skills/ae-analysis/references/exchange_rule_list.md +0 -1
  147. package/skills/ae-analysis/references/exchange_rule_update.md +0 -1
  148. package/skills/ae-analysis/references/exchange_rule_validate.md +0 -1
  149. package/skills/ae-analysis/references/governance_recommendation_decisions.md +23 -0
  150. package/skills/ae-analysis/references/governance_recommendation_export.md +108 -0
  151. package/skills/ae-analysis/references/governance_recommendation_submit.md +41 -0
  152. package/skills/ae-analysis/references/history_tag_data_drilldown_export.md +4 -4
  153. package/skills/ae-analysis/references/history_tag_data_export.md +3 -3
  154. package/skills/ae-analysis/references/ingest_error_list.md +7 -9
  155. package/skills/ae-analysis/references/ingest_summary.md +6 -8
  156. package/skills/ae-analysis/references/live_data_export.md +10 -10
  157. package/skills/ae-analysis/references/live_data_list.md +7 -9
  158. package/skills/ae-analysis/references/metadata_resolution.md +78 -0
  159. package/skills/ae-analysis/references/metric_export.md +0 -1
  160. package/skills/ae-analysis/references/metric_get.md +0 -1
  161. package/skills/ae-analysis/references/metric_list.md +4 -5
  162. package/skills/ae-analysis/references/metric_update.md +0 -1
  163. package/skills/ae-analysis/references/operation_record_export.md +4 -5
  164. package/skills/ae-analysis/references/operation_record_list.md +4 -5
  165. package/skills/ae-analysis/references/personal_semantic_preference_list.md +18 -1
  166. package/skills/ae-analysis/references/plan_change_log_export.md +10 -10
  167. package/skills/ae-analysis/references/plan_change_log_list.md +4 -6
  168. package/skills/ae-analysis/references/plan_delete_items.md +2 -4
  169. package/skills/ae-analysis/references/plan_export.md +9 -9
  170. package/skills/ae-analysis/references/plan_generate.md +2 -4
  171. package/skills/ae-analysis/references/plan_get.md +4 -6
  172. package/skills/ae-analysis/references/plan_import_excel.md +6 -8
  173. package/skills/ae-analysis/references/plan_save_items.md +2 -4
  174. package/skills/ae-analysis/references/plan_sync_from_meta.md +4 -6
  175. package/skills/ae-analysis/references/project_access_detail_get.md +0 -1
  176. package/skills/ae-analysis/references/project_data_power_get.md +0 -1
  177. package/skills/ae-analysis/references/project_data_power_list.md +0 -1
  178. package/skills/ae-analysis/references/project_data_power_upsert.md +0 -1
  179. package/skills/ae-analysis/references/project_entity_create.md +0 -1
  180. package/skills/ae-analysis/references/project_entity_event_list.md +0 -1
  181. package/skills/ae-analysis/references/project_entity_get.md +0 -1
  182. package/skills/ae-analysis/references/project_entity_list.md +0 -1
  183. package/skills/ae-analysis/references/project_entity_update.md +0 -1
  184. package/skills/ae-analysis/references/project_function_list.md +0 -1
  185. package/skills/ae-analysis/references/project_info_get.md +0 -1
  186. package/skills/ae-analysis/references/project_info_list.md +0 -1
  187. package/skills/ae-analysis/references/project_info_update.md +0 -1
  188. package/skills/ae-analysis/references/project_mark_time_create.md +0 -1
  189. package/skills/ae-analysis/references/project_mark_time_list.md +0 -1
  190. package/skills/ae-analysis/references/project_mark_time_update.md +0 -1
  191. package/skills/ae-analysis/references/project_member_add.md +6 -5
  192. package/skills/ae-analysis/references/project_member_batch_update.md +0 -1
  193. package/skills/ae-analysis/references/project_member_candidate_list.md +4 -3
  194. package/skills/ae-analysis/references/project_member_handover_run.md +2 -3
  195. package/skills/ae-analysis/references/project_member_list.md +0 -1
  196. package/skills/ae-analysis/references/project_member_receiver_list.md +0 -1
  197. package/skills/ae-analysis/references/project_member_update.md +0 -1
  198. package/skills/ae-analysis/references/project_owner_update.md +0 -1
  199. package/skills/ae-analysis/references/project_permission_binding_list.md +0 -1
  200. package/skills/ae-analysis/references/project_role_function_list.md +0 -1
  201. package/skills/ae-analysis/references/project_role_get.md +0 -1
  202. package/skills/ae-analysis/references/project_role_list.md +0 -1
  203. package/skills/ae-analysis/references/project_role_upsert.md +32 -2
  204. package/skills/ae-analysis/references/project_role_user_list.md +0 -1
  205. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +214 -0
  206. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +93 -0
  207. package/skills/ae-analysis/references/project_timezone_get.md +0 -1
  208. package/skills/ae-analysis/references/project_timezone_overview.md +0 -1
  209. package/skills/ae-analysis/references/project_timezone_update.md +0 -1
  210. package/skills/ae-analysis/references/project_user_id_items_update.md +0 -1
  211. package/skills/ae-analysis/references/property_changelog_list.md +0 -1
  212. package/skills/ae-analysis/references/property_create.md +0 -1
  213. package/skills/ae-analysis/references/property_export.md +0 -1
  214. package/skills/ae-analysis/references/property_get.md +0 -1
  215. package/skills/ae-analysis/references/property_hide_update.md +0 -1
  216. package/skills/ae-analysis/references/property_influence_list.md +0 -1
  217. package/skills/ae-analysis/references/property_list.md +3 -4
  218. package/skills/ae-analysis/references/property_related_events.md +0 -1
  219. package/skills/ae-analysis/references/property_relation_update.md +0 -1
  220. package/skills/ae-analysis/references/property_update.md +0 -1
  221. package/skills/ae-analysis/references/report_create.md +4 -2
  222. package/skills/ae-analysis/references/report_data_export.md +11 -9
  223. package/skills/ae-analysis/references/report_data_run.md +14 -7
  224. package/skills/ae-analysis/references/report_get.md +5 -3
  225. package/skills/ae-analysis/references/report_list.md +2 -0
  226. package/skills/ae-analysis/references/report_update.md +5 -3
  227. package/skills/ae-analysis/references/rule_create.md +5 -6
  228. package/skills/ae-analysis/references/rule_delete.md +5 -5
  229. package/skills/ae-analysis/references/rule_list.md +3 -4
  230. package/skills/ae-analysis/references/rule_schema.md +3 -4
  231. package/skills/ae-analysis/references/rule_update.md +5 -6
  232. package/skills/ae-analysis/references/sdk_sample_generate.md +2 -4
  233. package/skills/ae-analysis/references/sql_table_columns.md +1 -1
  234. package/skills/ae-analysis/references/super_metadata_batch_create.md +1 -1
  235. package/skills/ae-analysis/references/super_metadata_batch_edit.md +1 -1
  236. package/skills/ae-analysis/references/system_member_add.md +1 -2
  237. package/skills/ae-analysis/references/system_member_status_update.md +1 -1
  238. package/skills/ae-analysis/references/system_ops_alert_contact_list.md +1 -1
  239. package/skills/ae-analysis/references/system_ops_alert_contact_test.md +0 -1
  240. package/skills/ae-analysis/references/system_query_monitor_overview.md +3 -3
  241. package/skills/ae-analysis/references/system_query_task_export.md +4 -14
  242. package/skills/ae-analysis/references/system_query_task_get.md +1 -1
  243. package/skills/ae-analysis/references/system_query_task_list.md +5 -6
  244. package/skills/ae-analysis/references/system_receiver_address_upsert.md +3 -3
  245. package/skills/ae-analysis/references/system_receiver_detection_get.md +1 -1
  246. package/skills/ae-analysis/references/system_third_party_login_disable.md +1 -1
  247. package/skills/ae-analysis/references/system_usage_trend_export.md +3 -12
  248. package/skills/ae-analysis/references/user_cluster_list.md +1 -1
  249. package/skills/ae-analysis/references/user_cluster_member_export.md +4 -4
  250. package/skills/ae-analysis/references/user_tag_list.md +1 -1
  251. package/skills/ae-analysis/references/user_tag_member_export.md +4 -4
  252. package/skills/ae-analysis/references/virtual_event_create.md +10 -5
  253. package/skills/ae-analysis/references/virtual_event_get.md +0 -1
  254. package/skills/ae-analysis/references/virtual_property_create.md +0 -1
  255. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +0 -1
  256. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +1054 -0
  257. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +112 -0
  258. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +30 -0
  259. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +2735 -0
  260. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +376 -0
  261. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/plan-kb-source-sync.mjs +264 -0
  262. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/precompiled-source.mjs +49 -0
  263. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/upload-kb-sources-concurrently.mjs +200 -0
  264. package/skills/ae-analysis/scripts/read_results.py +197 -0
  265. package/skills/ae-analysis-global/SKILL.md +1 -1
  266. package/skills/ae-capability/SKILL.md +1 -1
  267. package/skills/ae-community/SKILL.md +1 -1
  268. package/skills/ae-current-context/SKILL.md +53 -0
  269. package/skills/ae-data-integration/SKILL.md +5 -4
  270. package/skills/ae-data-integration/references/lark-bitable-source.md +288 -0
  271. package/skills/ae-data-integration/references/lark-sheet-source.md +130 -0
  272. package/skills/ae-data-integration/references/manual-export-source.md +83 -0
  273. package/skills/ae-data-integration/references/reuse.md +2 -0
  274. package/skills/ae-data-integration/references/sink-upload.md +32 -0
  275. package/skills/ae-data-integration/references/tracking-plan.md +4 -1
  276. package/skills/ae-data-integration/references/ue-mapping.md +2 -2
  277. package/skills/ae-data-integration-helper/SKILL.md +5 -5
  278. package/skills/ae-data-integration-helper/references/android_sdk_faq.md +3 -3
  279. package/skills/ae-data-integration-helper/references/c_sdk_faq.md +3 -3
  280. package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +1 -1
  281. package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +3 -3
  282. package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +1 -1
  283. package/skills/ae-data-integration-helper/references/java_sdk_faq.md +3 -3
  284. package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +1 -1
  285. package/skills/ae-data-integration-helper/references/logbus2_guide.md +1 -1
  286. package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +2 -2
  287. package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +2 -2
  288. package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +1 -1
  289. package/skills/ae-data-integration-helper/references/python_sdk_faq.md +2 -2
  290. package/skills/ae-data-integration-helper/references/restful_api_notes.md +2 -2
  291. package/skills/ae-data-integration-helper/references/sdk_log_guide.md +3 -3
  292. package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +11 -11
  293. package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +1 -1
  294. package/skills/ae-dataops/SKILL.md +1 -1
  295. package/skills/ae-engage/SKILL.md +4 -3
  296. package/skills/ae-engage/references/build-task-save-guide.md +3 -0
  297. package/skills/ae-engage/references/flow-metric-update.md +115 -1
  298. package/skills/ae-engage/references/save-flow.md +3 -0
  299. package/skills/ae-engage/references/save-task.md +21 -0
  300. package/skills/ae-engage/references/task-metric-update.md +151 -0
  301. package/skills/ae-generate-tracking-code/SKILL.md +2 -1
  302. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  303. package/skills/ae-generate-tracking-code/references/datax-config.md +1 -1
  304. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  305. package/skills/ae-generate-tracking-code/references/modes.md +1 -1
  306. package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +5 -5
  307. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +3 -3
  308. package/skills/ae-generate-tracking-plan/SKILL.md +2 -2
  309. package/skills/ae-generate-tracking-plan/references/te-api.md +1 -0
  310. package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +3 -2
  311. package/skills/ae-kb/SKILL.md +41 -2
  312. package/skills/ae-kb/references/analysis-workflow.md +292 -0
  313. package/skills/ae-kb/references/source-mutations.md +95 -0
  314. package/skills/ae-kb-discovery/SKILL.md +5 -1
  315. package/skills/ae-metadata/SKILL.md +1 -1
  316. package/skills/ae-migrate-tracking-code/SKILL.md +195 -0
  317. package/skills/ae-migrate-tracking-code/references/ae-preset-properties.md +76 -0
  318. package/skills/ae-migrate-tracking-code/references/ir.md +167 -0
  319. package/skills/ae-migrate-tracking-code/references/mapping-framework.md +112 -0
  320. package/skills/ae-migrate-tracking-code/references/providers/README.md +58 -0
  321. package/skills/ae-migrate-tracking-code/references/providers/amplitude.md +208 -0
  322. package/skills/ae-migrate-tracking-code/references/providers/firebase.md +160 -0
  323. package/skills/ae-migrate-tracking-code/references/providers/ga4.md +92 -0
  324. package/skills/ae-migrate-tracking-code/references/providers/mixpanel.md +150 -0
  325. package/skills/ae-migrate-tracking-code/references/providers/sensors-data.md +146 -0
  326. package/skills/ae-system/SKILL.md +4 -4
  327. package/skills/ae-team/SKILL.md +2 -2
  328. package/skills/ae-use-agent/references/local-agent.md +1 -1
  329. package/dist/chunk-6KBBAPPP.js +0 -72
  330. package/skills/ae-analysis/metadata_resolution.md +0 -184
@@ -4,14 +4,14 @@ import {
4
4
  } from "./chunk-Y74WTIKJ.js";
5
5
  import {
6
6
  getCliToken
7
- } from "./chunk-ATSM5XAW.js";
7
+ } from "./chunk-7XGFSUOM.js";
8
8
  import {
9
9
  getActiveHost,
10
10
  getSandboxRuntimeRoot
11
- } from "./chunk-WZ6YVQSF.js";
11
+ } from "./chunk-7FTTULED.js";
12
12
  import {
13
13
  PermissionError
14
- } from "./chunk-4P355ZWB.js";
14
+ } from "./chunk-MAPZ7VB6.js";
15
15
 
16
16
  // src/core/te-agent-credentials.ts
17
17
  import { readFileSync } from "fs";
@@ -5,30 +5,32 @@ import {
5
5
  import {
6
6
  SecureStoreAuthError,
7
7
  getCliToken
8
- } from "./chunk-ATSM5XAW.js";
8
+ } from "./chunk-7XGFSUOM.js";
9
9
  import {
10
10
  safeJsonParse
11
- } from "./chunk-WZ6YVQSF.js";
11
+ } from "./chunk-7FTTULED.js";
12
12
  import {
13
13
  PermissionError
14
- } from "./chunk-4P355ZWB.js";
14
+ } from "./chunk-MAPZ7VB6.js";
15
15
 
16
16
  // src/core/capability-api.ts
17
17
  import { readFile } from "fs/promises";
18
18
  import { basename } from "path";
19
19
  var CapabilityGatewayError = class extends Error {
20
- constructor(message, code, httpStatus, hint, meta) {
20
+ constructor(message, code, httpStatus, hint, meta, type = "api") {
21
21
  super(message);
22
22
  this.code = code;
23
23
  this.httpStatus = httpStatus;
24
24
  this.hint = hint;
25
25
  this.meta = meta;
26
+ this.type = type;
26
27
  this.name = "CapabilityGatewayError";
27
28
  }
28
29
  code;
29
30
  httpStatus;
30
31
  hint;
31
32
  meta;
33
+ type;
32
34
  };
33
35
  function buildCapabilityGatewayUrl(host, domain, pathAfterV1, queryParams = {}) {
34
36
  const base = host.replace(/\/+$/, "");
@@ -93,7 +95,8 @@ function parseCapabilityEnvelope(body) {
93
95
  code,
94
96
  err.http_status ?? err.httpStatus,
95
97
  hint,
96
- isRecord(body.meta) ? body.meta : void 0
98
+ isRecord(body.meta) ? body.meta : void 0,
99
+ err.type === "validation" ? "validation" : "api"
97
100
  );
98
101
  }
99
102
  return { ok: true, data: body };
@@ -121,7 +124,8 @@ function buildCapabilityHttpError(resp, body) {
121
124
  code,
122
125
  resp.status,
123
126
  hint,
124
- isRecord(body.meta) ? body.meta : void 0
127
+ isRecord(body.meta) ? body.meta : void 0,
128
+ err.type === "validation" ? "validation" : "api"
125
129
  );
126
130
  }
127
131
  }
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getActiveHost,
4
4
  normalizeUrl
5
- } from "./chunk-WZ6YVQSF.js";
5
+ } from "./chunk-7FTTULED.js";
6
6
 
7
7
  // src/core/auth.ts
8
8
  function resolveHost(hostOverride) {
@@ -22,6 +22,11 @@ function findGatewayDomain(cliService) {
22
22
  function listRegisteredCapabilityDomains() {
23
23
  return [...cliServiceRoutes.keys()].sort();
24
24
  }
25
+ function listCapabilityDiscoveryPrefixes(cliService) {
26
+ const route = cliServiceRoutes.get(cliService);
27
+ const rawPrefixes = route?.capabilityPrefixes?.length ? route.capabilityPrefixes : [cliService];
28
+ return [...new Set(rawPrefixes.map((prefix) => prefix.trim().toLowerCase()).filter(Boolean).map((prefix) => prefix.endsWith(".") ? prefix : `${prefix}.`))];
29
+ }
25
30
  function resolveGatewayDomain(cliService, override) {
26
31
  const envDomain = envGatewayDomain(cliService);
27
32
  if (envDomain !== void 0) {
@@ -43,5 +48,6 @@ export {
43
48
  registerCapabilityGatewayRoute,
44
49
  findGatewayDomain,
45
50
  listRegisteredCapabilityDomains,
51
+ listCapabilityDiscoveryPrefixes,
46
52
  resolveGatewayDomain
47
53
  };
@@ -0,0 +1,155 @@
1
+ import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+ import {
3
+ resolveGatewayDomain
4
+ } from "./chunk-KPQY44JQ.js";
5
+ import {
6
+ dryRunCapability,
7
+ executeCapabilityWithEnvelope,
8
+ validateCapability
9
+ } from "./chunk-HFGZGYCG.js";
10
+ import {
11
+ withOutputMetadata
12
+ } from "./chunk-DX5CDO34.js";
13
+ import {
14
+ CliValidationError
15
+ } from "./chunk-MAPZ7VB6.js";
16
+
17
+ // src/core/definition-intent.ts
18
+ import { createHash } from "crypto";
19
+ var definitionIntentSnapshotFlag = {
20
+ name: "intent-snapshot",
21
+ type: "json",
22
+ required: false,
23
+ desc: 'Optional user-confirmed intent snapshot: {"schema_version":1,"requirement":"...","definition":{...}}. ae-cli rejects drift between this snapshot and the final definition before validate, dry-run, or execute. The snapshot is not sent to the Gateway.'
24
+ };
25
+ var modelDefinitionIntentSnapshotFlag = {
26
+ name: "intent-snapshot",
27
+ type: "json",
28
+ required: false,
29
+ desc: 'Optional user-confirmed intent snapshot: {"schema_version":1,"requirement":"...","model_type":"event","definition":{...}}. ae-cli rejects drift between this snapshot and the final model-type/definition before validate, dry-run, or execute. The snapshot is not sent to the Gateway.'
30
+ };
31
+ function verifyDefinitionIntent(ctx, config) {
32
+ const snapshotFlag = config.snapshotFlag ?? "intent-snapshot";
33
+ const snapshot = ctx.json(snapshotFlag);
34
+ if (snapshot === void 0) return void 0;
35
+ if (!isRecord(snapshot) || snapshot.schema_version !== 1) {
36
+ throw mismatch("Intent snapshot must be an object with schema_version=1.");
37
+ }
38
+ if (typeof snapshot.requirement !== "string" || snapshot.requirement.trim().length === 0) {
39
+ throw mismatch("Intent snapshot requirement must be a non-empty string.");
40
+ }
41
+ if (!Object.prototype.hasOwnProperty.call(snapshot, "definition")) {
42
+ throw mismatch("Intent snapshot must include definition.");
43
+ }
44
+ const definitionFlag = config.definitionFlag ?? "definition";
45
+ const finalDefinition = ctx.json(definitionFlag);
46
+ if (finalDefinition === void 0 || !jsonEqual(snapshot.definition, finalDefinition)) {
47
+ throw mismatch("Final definition does not match the user-confirmed intent snapshot.");
48
+ }
49
+ if (config.modelTypeFlag) {
50
+ const finalModelType = ctx.str(config.modelTypeFlag);
51
+ if (typeof snapshot.model_type !== "string" || snapshot.model_type !== finalModelType) {
52
+ throw mismatch("Final model type does not match the user-confirmed intent snapshot.");
53
+ }
54
+ }
55
+ return {
56
+ checked: true,
57
+ matched: true,
58
+ schema_version: 1,
59
+ snapshot_sha256: createHash("sha256").update(canonicalJson(snapshot)).digest("hex")
60
+ };
61
+ }
62
+ function mismatch(message) {
63
+ return new CliValidationError(message, {
64
+ code: "DEFINITION_INTENT_MISMATCH",
65
+ hint: "Rebuild the final definition from the confirmed snapshot, or ask the user to confirm a new snapshot."
66
+ });
67
+ }
68
+ function jsonEqual(left, right) {
69
+ return canonicalJson(left) === canonicalJson(right);
70
+ }
71
+ function canonicalJson(value) {
72
+ if (Array.isArray(value)) {
73
+ return `[${value.map(canonicalJson).join(",")}]`;
74
+ }
75
+ if (isRecord(value)) {
76
+ return `{${Object.keys(value).sort().map((key) => `${JSON.stringify(key)}:${canonicalJson(value[key])}`).join(",")}}`;
77
+ }
78
+ const encoded = JSON.stringify(value);
79
+ return encoded === void 0 ? "null" : encoded;
80
+ }
81
+ function isRecord(value) {
82
+ return value !== null && typeof value === "object" && !Array.isArray(value);
83
+ }
84
+
85
+ // src/core/capability-command.ts
86
+ import { randomBytes } from "crypto";
87
+ function createCapabilityCommand(config) {
88
+ return {
89
+ service: config.cliService,
90
+ resource: config.resource,
91
+ command: config.command,
92
+ capabilityId: config.capabilityId,
93
+ description: config.description,
94
+ helpText: config.helpText,
95
+ flags: config.flags,
96
+ risk: config.risk,
97
+ validate: config.validate || config.intentConsistency ? (ctx) => {
98
+ config.validate?.(ctx);
99
+ if (config.intentConsistency) verifyDefinitionIntent(ctx, config.intentConsistency);
100
+ } : void 0,
101
+ preflight: (ctx) => {
102
+ config.buildInput(ctx);
103
+ },
104
+ validateInput: async (ctx) => {
105
+ const gatewayDomain = resolveGatewayDomain(config.cliService, config.gatewayDomain);
106
+ const requestHost = config.requestHost ?? ctx.host();
107
+ const input = withLifecycleRequestId(config, config.buildInput(ctx));
108
+ const evidence = config.intentConsistency ? verifyDefinitionIntent(ctx, config.intentConsistency) : void 0;
109
+ const intentMeta = evidence ? { intent_consistency: evidence } : void 0;
110
+ return withOutputMetadata(await validateCapability(requestHost, gatewayDomain, config.capabilityId, input), intentMeta);
111
+ },
112
+ dryRun: async (ctx) => {
113
+ const gatewayDomain = resolveGatewayDomain(config.cliService, config.gatewayDomain);
114
+ const requestHost = config.requestHost ?? ctx.host();
115
+ const input = withLifecycleRequestId(config, config.buildInput(ctx));
116
+ const evidence = config.intentConsistency ? verifyDefinitionIntent(ctx, config.intentConsistency) : void 0;
117
+ const intentMeta = evidence ? { intent_consistency: evidence } : void 0;
118
+ return withOutputMetadata(await dryRunCapability(requestHost, gatewayDomain, config.capabilityId, input), intentMeta);
119
+ },
120
+ execute: async (ctx) => {
121
+ const gatewayDomain = resolveGatewayDomain(config.cliService, config.gatewayDomain);
122
+ const requestHost = config.requestHost ?? ctx.host();
123
+ const input = withLifecycleRequestId(config, config.buildInput(ctx));
124
+ const evidence = config.intentConsistency ? verifyDefinitionIntent(ctx, config.intentConsistency) : void 0;
125
+ const intentMeta = evidence ? { intent_consistency: evidence } : void 0;
126
+ announceDispatch(config.capabilityId, input);
127
+ const result = await executeCapabilityWithEnvelope(requestHost, gatewayDomain, config.capabilityId, input);
128
+ const data = config.postProcess ? await config.postProcess(result.data, input, ctx) : result.data;
129
+ return withOutputMetadata(data, { ...result.meta, ...intentMeta });
130
+ }
131
+ };
132
+ }
133
+ function withLifecycleRequestId(config, input) {
134
+ if (!config.flags.some((flag) => flag.name === "request-id")) {
135
+ return input;
136
+ }
137
+ const supplied = input.request_id;
138
+ const requestId = typeof supplied === "string" && supplied.length > 0 ? supplied : `cli_${randomBytes(16).toString("hex")}`;
139
+ return { ...input, request_id: requestId };
140
+ }
141
+ function announceDispatch(capabilityId, input) {
142
+ if (typeof input.request_id !== "string") {
143
+ return;
144
+ }
145
+ process.stderr.write(
146
+ `[ae-cli] dispatching capability=${capabilityId} request_id=${input.request_id}
147
+ `
148
+ );
149
+ }
150
+
151
+ export {
152
+ definitionIntentSnapshotFlag,
153
+ modelDefinitionIntentSnapshotFlag,
154
+ createCapabilityCommand
155
+ };
@@ -11,8 +11,24 @@ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require
11
11
  if (typeof require !== "undefined") return require.apply(this, arguments);
12
12
  throw Error('Dynamic require of "' + x + '" is not supported');
13
13
  });
14
+ var __esm = (fn, res, err) => function __init() {
15
+ if (err) throw err[0];
16
+ try {
17
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
18
+ } catch (e) {
19
+ throw err = [e], e;
20
+ }
21
+ };
14
22
  var __commonJS = (cb, mod) => function __require2() {
15
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
23
+ try {
24
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
25
+ } catch (e) {
26
+ throw mod = 0, e;
27
+ }
28
+ };
29
+ var __export = (target, all) => {
30
+ for (var name in all)
31
+ __defProp(target, name, { get: all[name], enumerable: true });
16
32
  };
17
33
  var __copyProps = (to, from, except, desc) => {
18
34
  if (from && typeof from === "object" || typeof from === "function") {
@@ -30,6 +46,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
30
46
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
31
47
  mod
32
48
  ));
49
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
50
 
34
51
  // src/core/logger.ts
35
52
  import fs from "fs";
@@ -180,8 +197,11 @@ var LocalDataUploadError = class extends Error {
180
197
 
181
198
  export {
182
199
  __require,
200
+ __esm,
183
201
  __commonJS,
202
+ __export,
184
203
  __toESM,
204
+ __toCommonJS,
185
205
  logger,
186
206
  PermissionError,
187
207
  CliValidationError,
@@ -0,0 +1,196 @@
1
+ import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+ import {
3
+ __commonJS,
4
+ __require
5
+ } from "./chunk-MAPZ7VB6.js";
6
+
7
+ // node_modules/process-nextick-args/index.js
8
+ var require_process_nextick_args = __commonJS({
9
+ "node_modules/process-nextick-args/index.js"(exports, module) {
10
+ "use strict";
11
+ if (typeof process === "undefined" || !process.version || process.version.indexOf("v0.") === 0 || process.version.indexOf("v1.") === 0 && process.version.indexOf("v1.8.") !== 0) {
12
+ module.exports = { nextTick };
13
+ } else {
14
+ module.exports = process;
15
+ }
16
+ function nextTick(fn, arg1, arg2, arg3) {
17
+ if (typeof fn !== "function") {
18
+ throw new TypeError('"callback" argument must be a function');
19
+ }
20
+ var len = arguments.length;
21
+ var args, i;
22
+ switch (len) {
23
+ case 0:
24
+ case 1:
25
+ return process.nextTick(fn);
26
+ case 2:
27
+ return process.nextTick(function afterTickOne() {
28
+ fn.call(null, arg1);
29
+ });
30
+ case 3:
31
+ return process.nextTick(function afterTickTwo() {
32
+ fn.call(null, arg1, arg2);
33
+ });
34
+ case 4:
35
+ return process.nextTick(function afterTickThree() {
36
+ fn.call(null, arg1, arg2, arg3);
37
+ });
38
+ default:
39
+ args = new Array(len - 1);
40
+ i = 0;
41
+ while (i < args.length) {
42
+ args[i++] = arguments[i];
43
+ }
44
+ return process.nextTick(function afterTick() {
45
+ fn.apply(null, args);
46
+ });
47
+ }
48
+ }
49
+ }
50
+ });
51
+
52
+ // node_modules/isarray/index.js
53
+ var require_isarray = __commonJS({
54
+ "node_modules/isarray/index.js"(exports, module) {
55
+ "use strict";
56
+ var toString = {}.toString;
57
+ module.exports = Array.isArray || function(arr) {
58
+ return toString.call(arr) == "[object Array]";
59
+ };
60
+ }
61
+ });
62
+
63
+ // node_modules/core-util-is/lib/util.js
64
+ var require_util = __commonJS({
65
+ "node_modules/core-util-is/lib/util.js"(exports) {
66
+ "use strict";
67
+ function isArray(arg) {
68
+ if (Array.isArray) {
69
+ return Array.isArray(arg);
70
+ }
71
+ return objectToString(arg) === "[object Array]";
72
+ }
73
+ exports.isArray = isArray;
74
+ function isBoolean(arg) {
75
+ return typeof arg === "boolean";
76
+ }
77
+ exports.isBoolean = isBoolean;
78
+ function isNull(arg) {
79
+ return arg === null;
80
+ }
81
+ exports.isNull = isNull;
82
+ function isNullOrUndefined(arg) {
83
+ return arg == null;
84
+ }
85
+ exports.isNullOrUndefined = isNullOrUndefined;
86
+ function isNumber(arg) {
87
+ return typeof arg === "number";
88
+ }
89
+ exports.isNumber = isNumber;
90
+ function isString(arg) {
91
+ return typeof arg === "string";
92
+ }
93
+ exports.isString = isString;
94
+ function isSymbol(arg) {
95
+ return typeof arg === "symbol";
96
+ }
97
+ exports.isSymbol = isSymbol;
98
+ function isUndefined(arg) {
99
+ return arg === void 0;
100
+ }
101
+ exports.isUndefined = isUndefined;
102
+ function isRegExp(re) {
103
+ return objectToString(re) === "[object RegExp]";
104
+ }
105
+ exports.isRegExp = isRegExp;
106
+ function isObject(arg) {
107
+ return typeof arg === "object" && arg !== null;
108
+ }
109
+ exports.isObject = isObject;
110
+ function isDate(d) {
111
+ return objectToString(d) === "[object Date]";
112
+ }
113
+ exports.isDate = isDate;
114
+ function isError(e) {
115
+ return objectToString(e) === "[object Error]" || e instanceof Error;
116
+ }
117
+ exports.isError = isError;
118
+ function isFunction(arg) {
119
+ return typeof arg === "function";
120
+ }
121
+ exports.isFunction = isFunction;
122
+ function isPrimitive(arg) {
123
+ return arg === null || typeof arg === "boolean" || typeof arg === "number" || typeof arg === "string" || typeof arg === "symbol" || // ES6 symbol
124
+ typeof arg === "undefined";
125
+ }
126
+ exports.isPrimitive = isPrimitive;
127
+ exports.isBuffer = __require("buffer").Buffer.isBuffer;
128
+ function objectToString(o) {
129
+ return Object.prototype.toString.call(o);
130
+ }
131
+ }
132
+ });
133
+
134
+ // node_modules/inherits/inherits_browser.js
135
+ var require_inherits_browser = __commonJS({
136
+ "node_modules/inherits/inherits_browser.js"(exports, module) {
137
+ "use strict";
138
+ if (typeof Object.create === "function") {
139
+ module.exports = function inherits(ctor, superCtor) {
140
+ if (superCtor) {
141
+ ctor.super_ = superCtor;
142
+ ctor.prototype = Object.create(superCtor.prototype, {
143
+ constructor: {
144
+ value: ctor,
145
+ enumerable: false,
146
+ writable: true,
147
+ configurable: true
148
+ }
149
+ });
150
+ }
151
+ };
152
+ } else {
153
+ module.exports = function inherits(ctor, superCtor) {
154
+ if (superCtor) {
155
+ ctor.super_ = superCtor;
156
+ var TempCtor = function() {
157
+ };
158
+ TempCtor.prototype = superCtor.prototype;
159
+ ctor.prototype = new TempCtor();
160
+ ctor.prototype.constructor = ctor;
161
+ }
162
+ };
163
+ }
164
+ }
165
+ });
166
+
167
+ // node_modules/inherits/inherits.js
168
+ var require_inherits = __commonJS({
169
+ "node_modules/inherits/inherits.js"(exports, module) {
170
+ "use strict";
171
+ try {
172
+ util = __require("util");
173
+ if (typeof util.inherits !== "function") throw "";
174
+ module.exports = util.inherits;
175
+ } catch (e) {
176
+ module.exports = require_inherits_browser();
177
+ }
178
+ var util;
179
+ }
180
+ });
181
+
182
+ // node_modules/util-deprecate/node.js
183
+ var require_node = __commonJS({
184
+ "node_modules/util-deprecate/node.js"(exports, module) {
185
+ "use strict";
186
+ module.exports = __require("util").deprecate;
187
+ }
188
+ });
189
+
190
+ export {
191
+ require_process_nextick_args,
192
+ require_isarray,
193
+ require_util,
194
+ require_inherits,
195
+ require_node
196
+ };
@@ -1,20 +1,20 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveGatewayDomain
4
- } from "./chunk-TKHSULJT.js";
4
+ } from "./chunk-KPQY44JQ.js";
5
5
  import {
6
6
  CapabilityGatewayError,
7
7
  fetchCapabilityGateway,
8
8
  requestCapabilityGateway
9
- } from "./chunk-QJQZH5GQ.js";
9
+ } from "./chunk-HFGZGYCG.js";
10
10
  import {
11
11
  readOutputMetadata,
12
12
  unwrapOutputData,
13
13
  withOutputMetadata
14
- } from "./chunk-CZU3V3DQ.js";
14
+ } from "./chunk-DX5CDO34.js";
15
15
  import {
16
16
  PermissionError
17
- } from "./chunk-4P355ZWB.js";
17
+ } from "./chunk-MAPZ7VB6.js";
18
18
 
19
19
  // src/core/analysis-async-artifact.ts
20
20
  import { randomBytes } from "crypto";
@@ -263,7 +263,7 @@ async function downloadAnalysisArtifact(host, runId, artifactId, output, options
263
263
  }
264
264
  tempPresent = true;
265
265
  const source = Readable.fromWeb(response.body);
266
- await pipeline(source, createWriteStream(tempPath, { flags: "wx" }), {
266
+ await pipeline(source, createWriteStream(tempPath, { flags: "wx", mode: options.mode }), {
267
267
  signal: options.signal
268
268
  });
269
269
  const file = await stat(tempPath);
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  CommunityReportError,
4
4
  logger
5
- } from "./chunk-4P355ZWB.js";
5
+ } from "./chunk-MAPZ7VB6.js";
6
6
 
7
7
  // src/core/community-report-client.ts
8
8
  var DEFAULT_TIMEOUT_MS = 3e4;
@@ -10,8 +10,8 @@ import {
10
10
  import {
11
11
  printError,
12
12
  printOutput
13
- } from "./chunk-CZU3V3DQ.js";
14
- import "./chunk-ATSM5XAW.js";
13
+ } from "./chunk-DX5CDO34.js";
14
+ import "./chunk-7XGFSUOM.js";
15
15
  import {
16
16
  addHost,
17
17
  listHosts,
@@ -21,8 +21,8 @@ import {
21
21
  resolveHostSelector,
22
22
  setActiveHost,
23
23
  updateHostLabel
24
- } from "./chunk-WZ6YVQSF.js";
25
- import "./chunk-4P355ZWB.js";
24
+ } from "./chunk-7FTTULED.js";
25
+ import "./chunk-MAPZ7VB6.js";
26
26
 
27
27
  // src/commands/config.ts
28
28
  import * as readline2 from "readline";
@@ -0,0 +1,46 @@
1
+ import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+ import {
3
+ getFromMainApp
4
+ } from "./chunk-HBGADCKA.js";
5
+ import "./chunk-Y74WTIKJ.js";
6
+ import "./chunk-7XGFSUOM.js";
7
+ import "./chunk-7FTTULED.js";
8
+ import {
9
+ CliValidationError
10
+ } from "./chunk-MAPZ7VB6.js";
11
+
12
+ // src/commands/context/current.ts
13
+ var CURRENT_PAGE_CONTEXT_PATH = "/api/sandbox/agent/context/current";
14
+ function createCurrentPageContextCommand(read = getFromMainApp, readConversationId = () => process.env.TE_AGENT_CONVERSATION_ID) {
15
+ return {
16
+ service: "context",
17
+ command: "+current",
18
+ description: "Read the current page context bound to the active Agent Run",
19
+ flags: [],
20
+ risk: "read",
21
+ usesAeHost: false,
22
+ execute: async () => {
23
+ const conversationId = readConversationId()?.trim();
24
+ if (!conversationId) {
25
+ throw new CliValidationError(
26
+ "Current page context is available only inside an active Agent Run.",
27
+ {
28
+ code: "CURRENT_PAGE_CONTEXT_RUN_REQUIRED",
29
+ hint: "Open AE Agent from a supported product page and ask about the current page."
30
+ }
31
+ );
32
+ }
33
+ const query = new URLSearchParams({ conversationId });
34
+ return read(`${CURRENT_PAGE_CONTEXT_PATH}?${query.toString()}`);
35
+ }
36
+ };
37
+ }
38
+ var currentPageContext = createCurrentPageContextCommand();
39
+
40
+ // src/commands/context/index.ts
41
+ var commands = [currentPageContext];
42
+ var context_default = commands;
43
+ export {
44
+ currentPageContext,
45
+ context_default as default
46
+ };