@thinkingai/ae-cli 6.1.30 → 6.1.33

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 (294) hide show
  1. package/README.md +16 -7
  2. package/README.zh.md +18 -7
  3. package/bin/ai-monitor.js +2 -0
  4. package/bin/runtime-capabilities.json +1 -1
  5. package/dist/ai-monitor-OHTSU6SV.js +33 -0
  6. package/dist/ai-monitor.js +136 -0
  7. package/dist/{auth-ADZHUIJR.js → auth-2MOK4OI6.js} +24 -14
  8. package/dist/{automation-FD2QZUP6.js → automation-6L6IAYRK.js} +6 -7
  9. package/dist/{capability-QXFRJYZD.js → capability-EMIHQJA3.js} +31 -34
  10. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  11. package/dist/{chunk-HRUOV6EQ.js → chunk-4IQYPWCX.js} +22 -21
  12. package/dist/{chunk-EUFP4M2A.js → chunk-7DHSB3FL.js} +85 -33
  13. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  14. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  15. package/dist/chunk-BQFLABJQ.js +186 -0
  16. package/dist/{chunk-E25OSZLJ.js → chunk-COOMXFUG.js} +3 -3
  17. package/dist/{chunk-AVXDJAFC.js → chunk-DWAG2QJM.js} +52 -15
  18. package/dist/{chunk-CG773QXN.js → chunk-E3ONSFUN.js} +528 -299
  19. package/dist/chunk-EFGUBGA6.js +64 -0
  20. package/dist/chunk-EWVEAERM.js +563 -0
  21. package/dist/{chunk-VDICGXCY.js → chunk-HIMOBNEY.js} +2 -2
  22. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  23. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  24. package/dist/{chunk-TFORY6WY.js → chunk-KD5UC33N.js} +23 -9
  25. package/dist/{chunk-YVG6QD3V.js → chunk-LFJ7N36I.js} +103 -8
  26. package/dist/chunk-NNK3JBH4.js +60 -0
  27. package/dist/{chunk-YULUBP3R.js → chunk-O45NOIWR.js} +2 -2
  28. package/dist/{chunk-SOSFRU3O.js → chunk-PLNS5J33.js} +58 -26
  29. package/dist/chunk-PUSFEC6B.js +29 -0
  30. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  31. package/dist/{chunk-Y3AM6LIO.js → chunk-RC3PPCYD.js} +16 -11
  32. package/dist/{chunk-AWVZTN2B.js → chunk-THTROEGD.js} +1 -1
  33. package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
  34. package/dist/{chunk-JSBLCLFE.js → chunk-VLOGOM7N.js} +13 -7
  35. package/dist/{chunk-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
  36. package/dist/chunk-YE6MJB5V.js +1285 -0
  37. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  38. package/dist/{compat-check-HERBTQZN.js → compat-check-CADG7GND.js} +5 -4
  39. package/dist/{config-E3KANXMK.js → config-PFD3KWQG.js} +28 -14
  40. package/dist/{context-CDB5H5PD.js → context-SOQDFZIB.js} +8 -6
  41. package/dist/{data-integration-QE37EQ3A.js → data-integration-UNJ7EPW2.js} +6 -6
  42. package/dist/{evaluation-LR4YDYWL.js → evaluation-Q3AIGFOG.js} +14 -159
  43. package/dist/index.js +95 -593
  44. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  45. package/dist/{memory-SNFR5M23.js → memory-HKNGUIPK.js} +6 -7
  46. package/dist/{metadata-EXQYDZTH.js → metadata-GFWR5ZHC.js} +11 -10
  47. package/dist/{model-KEVCEXWD.js → model-NAKQWK4W.js} +4 -5
  48. package/dist/{personal-semantic-preference-ETY3KU2O.js → personal-semantic-preference-JCTKXLC3.js} +46 -15
  49. package/dist/{project-semantic-UHRMVOJF.js → project-semantic-B2NWQOKK.js} +19 -16
  50. package/dist/{sync-XKEBXESC.js → sync-UQH4J4BD.js} +9 -9
  51. package/dist/{te-agent-S6UQR4IE.js → te-agent-L6EYFQCC.js} +303 -17
  52. package/dist/{te-analysis-WOFFCIBC.js → te-analysis-U7NNOY66.js} +397 -203
  53. package/dist/{te-community-R7B6QYOO.js → te-community-3UQEW3KD.js} +14 -12
  54. package/dist/{te-dataops-KPILYVHA.js → te-dataops-SUNYXF5G.js} +13 -11
  55. package/dist/{te-engage-IAUM6ONX.js → te-engage-KMXZJ2KN.js} +10 -9
  56. package/dist/{te-experiment-TMLRA7B3.js → te-experiment-IEYKP6VC.js} +477 -45
  57. package/dist/{te-kb-GKWPSLSY.js → te-kb-MT3V5ZMH.js} +78 -18
  58. package/dist/{te-system-CYWSK3UN.js → te-system-F4ZU2HRQ.js} +6 -7
  59. package/dist/{te-team-ISN52YNG.js → te-team-M6E6XQ5H.js} +9 -8
  60. package/dist/{things-DDQ52Z3Q.js → things-FRLBZV2Z.js} +9 -8
  61. package/dist/{update-CTLNTX35.js → update-NULYHVE6.js} +8 -6
  62. package/dist/{workspace-2CKQX2XL.js → workspace-Z7L33OBQ.js} +6 -7
  63. package/package.json +13 -8
  64. package/skills/ae-agent/SKILL.md +19 -5
  65. package/skills/ae-agent/references/a2a.md +103 -0
  66. package/skills/ae-agent/references/command_index.md +11 -0
  67. package/skills/ae-ai-monitor/SKILL.md +179 -0
  68. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  69. package/skills/ae-analysis/SKILL.md +43 -25
  70. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  71. package/skills/ae-analysis/references/ai_models/path.md +5 -6
  72. package/skills/ae-analysis/references/ai_models.md +1 -0
  73. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  74. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  75. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  76. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  77. package/skills/ae-analysis/references/asset_search.md +1 -1
  78. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  79. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  80. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  81. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  82. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  83. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  84. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  85. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  86. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  87. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  88. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  89. package/skills/ae-analysis/references/catalog_list.md +2 -0
  90. package/skills/ae-analysis/references/command_index.md +44 -35
  91. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  92. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  93. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  94. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  95. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  96. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  97. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  98. package/skills/ae-analysis/references/folder_share.md +8 -2
  99. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  100. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  101. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  102. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  103. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  104. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  105. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  106. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  107. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  108. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  109. package/skills/ae-analysis/references/project_member_add.md +3 -1
  110. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  111. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  112. package/skills/ae-analysis/references/project_member_update.md +3 -1
  113. package/skills/ae-analysis/references/project_owner_update.md +8 -2
  114. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  115. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  116. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  117. package/skills/ae-analysis/references/project_space_share.md +8 -2
  118. package/skills/ae-analysis/references/property_get.md +2 -0
  119. package/skills/ae-analysis/references/public_link_list.md +3 -1
  120. package/skills/ae-analysis/references/query_cancel.md +4 -1
  121. package/skills/ae-analysis/references/report_data_run.md +1 -1
  122. package/skills/ae-analysis/references/report_list.md +3 -3
  123. package/skills/ae-analysis/references/scenario_append.md +2 -2
  124. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  125. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  126. package/skills/ae-analysis/references/scenario_list.md +7 -7
  127. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  128. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  129. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  130. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  131. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  132. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  133. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  134. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  135. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  136. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  137. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  138. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  139. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  140. package/skills/ae-automation/SKILL.md +4 -2
  141. package/skills/ae-capability/SKILL.md +16 -8
  142. package/skills/ae-community/SKILL.md +1 -0
  143. package/skills/ae-dataops/SKILL.md +1 -0
  144. package/skills/ae-engage/SKILL.md +1 -0
  145. package/skills/ae-evaluation/SKILL.md +17 -2
  146. package/skills/ae-experiment/SKILL.md +69 -13
  147. package/skills/ae-experiment/references/experiment_approval.md +229 -0
  148. package/skills/ae-experiment/references/manage_experiment.md +15 -2
  149. package/skills/ae-experiment/references/manage_traffic_domains.md +131 -0
  150. package/skills/ae-experiment/references/query_experiment_detail.md +8 -0
  151. package/skills/ae-experiment/references/query_experiment_list.md +6 -0
  152. package/skills/ae-experiment/references/save_experiment.md +56 -10
  153. package/skills/ae-experiment/references/save_metric.md +29 -2
  154. package/skills/ae-experiment/references/save_submit_experiment.md +22 -3
  155. package/skills/ae-experiment/references/save_submit_external_experiment.md +59 -3
  156. package/skills/ae-experiment/references/save_traffic_layer.md +17 -1
  157. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  158. package/skills/ae-kb/SKILL.md +8 -4
  159. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  160. package/skills/ae-kb/references/publication.md +45 -0
  161. package/skills/ae-kb/references/query-workflow.md +3 -1
  162. package/skills/ae-kb/references/versions.md +1 -1
  163. package/skills/ae-metadata/SKILL.md +1 -0
  164. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  165. package/skills/ae-team/SKILL.md +1 -1
  166. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  167. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  168. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  169. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  170. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  171. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  172. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  173. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  174. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  175. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  176. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  177. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  178. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  179. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  180. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  181. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  182. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  183. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  184. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  185. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  186. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  187. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  188. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  189. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  190. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  191. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  192. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  193. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  194. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  195. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  196. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  197. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  198. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  199. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  200. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  201. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  202. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  203. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  204. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  205. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  206. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  207. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  208. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  209. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  210. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  211. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  212. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  213. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  214. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  215. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  216. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  217. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  218. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  219. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  220. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  221. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  222. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  223. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  224. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  225. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  226. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  227. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  228. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  229. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  230. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  231. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  232. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  233. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  234. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  235. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  236. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  237. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  238. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  239. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  240. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  241. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  242. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  243. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  244. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  245. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  246. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  247. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  248. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  249. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  250. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  251. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  252. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  253. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  254. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  255. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  256. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  257. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  258. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  259. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  260. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  261. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  262. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  263. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  264. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  265. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  266. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  267. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  268. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  269. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  270. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  271. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  272. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  273. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  274. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  275. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  276. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  277. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  278. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  279. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  280. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  281. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  282. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  283. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  284. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  285. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  286. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  287. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  288. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  289. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  290. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  291. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  292. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  293. package/dist/chunk-AMBFK2K3.js +0 -28
  294. package/dist/chunk-Y74WTIKJ.js +0 -10
@@ -2,26 +2,27 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  kbApi,
4
4
  kbUpload
5
- } from "./chunk-TFORY6WY.js";
5
+ } from "./chunk-KD5UC33N.js";
6
6
  import {
7
7
  TeAgentApiError
8
- } from "./chunk-JSBLCLFE.js";
8
+ } from "./chunk-VLOGOM7N.js";
9
9
  import {
10
10
  printError
11
- } from "./chunk-YULUBP3R.js";
11
+ } from "./chunk-O45NOIWR.js";
12
12
  import {
13
13
  CapabilityGatewayError
14
- } from "./chunk-HRUOV6EQ.js";
15
- import "./chunk-Y74WTIKJ.js";
16
- import "./chunk-CG773QXN.js";
17
- import "./chunk-SOSFRU3O.js";
18
- import "./chunk-4PSTYEG5.js";
14
+ } from "./chunk-4IQYPWCX.js";
15
+ import "./chunk-NNK3JBH4.js";
16
+ import "./chunk-E3ONSFUN.js";
17
+ import "./chunk-PUSFEC6B.js";
18
+ import "./chunk-PLNS5J33.js";
19
+ import "./chunk-AMURHMS3.js";
19
20
  import {
20
21
  CliApiError,
21
22
  CliValidationError,
22
23
  PermissionError,
23
24
  kbExecutionContextRequired
24
- } from "./chunk-Z3Q2AEIN.js";
25
+ } from "./chunk-R2SVAO4G.js";
25
26
 
26
27
  // src/commands/te-kb/project-target.ts
27
28
  var API_PATH = "/agent/api/project-semantic-target";
@@ -221,7 +222,15 @@ function createBody(ctx) {
221
222
  (source) => !source || !["personal", "company", "system"].includes(source.scope) || typeof source.name !== "string" || !source.name || Object.keys(source).some((key) => !["name", "scope"].includes(key))
222
223
  )))
223
224
  throw new CliValidationError("--sources must be an array of {scope,name}");
225
+ const candidateId = ctx.str("candidate");
226
+ if (candidateId || ctx.has?.("candidate")) {
227
+ if (!/^[A-Za-z0-9_-]{1,191}$/.test(candidateId))
228
+ throw new CliValidationError("Invalid --candidate");
229
+ if (!Array.isArray(sources) || sources.length !== 1 || sources[0].scope !== "company")
230
+ throw new CliValidationError("--candidate requires exactly one company KB in --sources");
231
+ }
224
232
  return {
233
+ ...candidateId ? { candidateId } : {},
225
234
  ...sources ? { sources } : {},
226
235
  ...ctx.str("locale") ? { locale: ctx.str("locale") } : {}
227
236
  };
@@ -231,13 +240,14 @@ var readContextCreate = {
231
240
  resource: "read-context",
232
241
  command: "create",
233
242
  risk: "read",
234
- description: "Pin the current authorized formal KB views for subsequent reads (15 minutes).",
243
+ description: "Pin authorized formal KB views or one pending candidate for subsequent reads (15 minutes).",
235
244
  flags: [
236
245
  {
237
246
  name: "sources",
238
247
  type: "json",
239
248
  desc: "Optional array of {scope,name}; omit to discover authorized published KBs"
240
249
  },
250
+ { ...candidate, required: false },
241
251
  { name: "locale", type: "string", desc: "zh | en | ja | ko" }
242
252
  ],
243
253
  validate: (ctx) => {
@@ -248,7 +258,16 @@ var readContextCreate = {
248
258
  url: ctx.host().replace(/\/$/, "") + `${root}/read-contexts`,
249
259
  body: createBody(ctx)
250
260
  }),
251
- execute: (ctx) => kbApi(ctx, "POST", `${root}/read-contexts`, {}, createBody(ctx), options)
261
+ execute: async (ctx) => {
262
+ const body4 = createBody(ctx);
263
+ const result = await kbApi(ctx, "POST", `${root}/read-contexts`, {}, body4, options);
264
+ if (body4.candidateId && (!result?.readContextId || !Array.isArray(result.views) || result.views.length !== 1 || result.views[0]?.viewKind !== "candidate" || result.views[0]?.candidateId !== body4.candidateId))
265
+ throw new CliApiError("This server did not return the requested candidate read context.", {
266
+ code: "KB_CANDIDATE_READ_CONTEXT_UNSUPPORTED",
267
+ hint: "Use a Host that supports candidate read contexts."
268
+ });
269
+ return result;
270
+ }
252
271
  };
253
272
  var readContextRelease = {
254
273
  service: "kb",
@@ -1366,12 +1385,19 @@ var schema = {
1366
1385
 
1367
1386
  // src/commands/te-kb/status.ts
1368
1387
  var API_PATH10 = "/agent/api/external/knowledge-bases/status";
1388
+ function getRunId(ctx) {
1389
+ const value = ctx.str("run-id");
1390
+ if (value && !value.trim()) throw new Error("--run-id must not be blank.");
1391
+ return value.trim();
1392
+ }
1369
1393
  function buildBody6(ctx) {
1370
1394
  const body4 = {
1371
1395
  name: ctx.str("name")
1372
1396
  };
1373
1397
  const scope = getExternalKnowledgeBaseTargetScope(ctx);
1374
1398
  if (scope) body4.scope = scope;
1399
+ const runId = getRunId(ctx);
1400
+ if (runId) body4.runId = runId;
1375
1401
  return body4;
1376
1402
  }
1377
1403
  var status = {
@@ -1380,11 +1406,13 @@ var status = {
1380
1406
  description: "Query knowledge base status.",
1381
1407
  flags: [
1382
1408
  { name: "name", type: "string", required: true, desc: "Knowledge base name" },
1383
- { name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" }
1409
+ { name: "scope", type: "string", required: false, desc: "Exact knowledge base scope: personal | company (omit for personal \u2192 company fallback)" },
1410
+ { name: "run-id", type: "string", required: false, desc: "Exact compile run ID returned by +compile; returns compileRun instead of aggregate KB status" }
1384
1411
  ],
1385
1412
  risk: "read",
1386
1413
  validate: (ctx) => {
1387
1414
  getExternalKnowledgeBaseTargetScope(ctx);
1415
+ getRunId(ctx);
1388
1416
  },
1389
1417
  dryRun: (ctx) => ({
1390
1418
  method: "POST",
@@ -1755,6 +1783,26 @@ var kbRead = {
1755
1783
  execute: async (ctx) => kbApi(ctx, "POST", API_PATH16, {}, buildBody10(ctx))
1756
1784
  };
1757
1785
 
1786
+ // src/commands/te-kb/ask-identity.ts
1787
+ function askIdentity(value) {
1788
+ function invalid() {
1789
+ throw new CliValidationError("Ask response is missing or has inconsistent readViews. This host may not support explicit contexts.", { code: "KB_READ_CONTEXT_MISMATCH" });
1790
+ }
1791
+ if (!Array.isArray(value) || !value.length || value.length > 100) return invalid();
1792
+ const identities = value.map((view) => {
1793
+ if (!view || typeof view !== "object") return invalid();
1794
+ const text = (key) => typeof view[key] === "string" && view[key].trim().length > 0;
1795
+ if (!text("resourceKey") || !text("readIdentity")) return invalid();
1796
+ if (view.viewKind === "candidate") {
1797
+ if (view.consistency !== "candidate_pinned" || !text("candidateId") || !(view.baseVersion === null || text("baseVersion")) || view.versionId !== null || view.versionNumber !== null)
1798
+ return invalid();
1799
+ } else if (view.viewKind !== "snapshot" || view.consistency !== "version_pinned" || !text("versionId") || !Number.isSafeInteger(view.versionNumber) || view.versionNumber < 1) return invalid();
1800
+ return ["resourceKey", "viewKind", "consistency", "readIdentity", "versionId", "versionNumber", "candidateId", "baseVersion"].map((key) => view[key] ?? null);
1801
+ });
1802
+ if (new Set(identities.map((view) => view[0])).size !== identities.length) return invalid();
1803
+ return JSON.stringify(identities.sort((a, b) => String(a[0]).localeCompare(String(b[0]))));
1804
+ }
1805
+
1758
1806
  // src/commands/te-kb/ask-shared.ts
1759
1807
  var ASK_API_PATH = "/agent/api/external/knowledge-bases/ask";
1760
1808
  var ASK_POLL_INTERVAL_MS = 5e3;
@@ -1809,6 +1857,7 @@ function transformCompletedResponse(response) {
1809
1857
  answer: response.answer ?? "",
1810
1858
  sources: response.sources ?? []
1811
1859
  };
1860
+ if (response.readViews !== void 0) result.readViews = response.readViews;
1812
1861
  if (response.modelId !== void 0) result.modelId = response.modelId;
1813
1862
  if (response.modelUsage !== void 0) result.modelUsage = response.modelUsage;
1814
1863
  if (response.toolCallCount !== void 0) result.toolCallCount = response.toolCallCount;
@@ -1849,6 +1898,7 @@ var ask = {
1849
1898
  command: "+ask",
1850
1899
  description: "Ask knowledge bases via LLM-powered retrieval (POST /agent/api/external/knowledge-bases/ask). Consumes platform tokens. Prefer +index -> +grep -> +read for deterministic, token-free lookup. By default, polls for completion; use --no-wait to return immediately with executionId.",
1851
1900
  flags: [
1901
+ { name: "read-context", type: "string", required: false, desc: "Use an existing formal snapshot or pending candidate context. Omit for existing published Ask behavior." },
1852
1902
  {
1853
1903
  name: "question",
1854
1904
  type: "string",
@@ -1884,23 +1934,31 @@ var ask = {
1884
1934
  dryRun: (ctx) => ({
1885
1935
  method: "POST",
1886
1936
  url: `${ctx.host().replace(/\/$/, "")}${ASK_API_PATH}`,
1887
- body: buildBody11(ctx)
1937
+ body: buildBody11(ctx),
1938
+ ...ctx.str("read-context") ? { headers: { "X-KB-Read-Context": ctx.str("read-context") } } : {}
1888
1939
  }),
1889
1940
  execute: async (ctx) => {
1890
1941
  const noWait = ctx.bool("no-wait");
1891
- const submitResponse = await kbApi(ctx, "POST", ASK_API_PATH, {}, buildBody11(ctx));
1942
+ const submitResponse = await kbApi(ctx, "POST", ASK_API_PATH, {}, buildBody11(ctx), ctx.str("read-context") ? { preserveErrorMetadata: true } : {});
1892
1943
  if (!submitResponse.executionId) {
1893
1944
  throw new Error("Invalid submit response: missing executionId");
1894
1945
  }
1895
1946
  const executionId = submitResponse.executionId;
1947
+ const identity = ctx.str("read-context") ? askIdentity(submitResponse.readViews) : void 0;
1896
1948
  if (noWait) {
1897
1949
  return {
1898
1950
  executionId,
1899
- status: submitResponse.status
1951
+ status: submitResponse.status,
1952
+ ...identity ? { readViews: submitResponse.readViews } : {}
1900
1953
  };
1901
1954
  }
1902
1955
  const finalResponse = await pollUntilSettled(
1903
- (id) => kbApi(ctx, "GET", ASK_API_PATH, { executionId: id }),
1956
+ async (id) => {
1957
+ const response = await kbApi(ctx, "GET", ASK_API_PATH, { executionId: id }, void 0, identity ? { preserveErrorMetadata: true } : {});
1958
+ if (identity && askIdentity(response.readViews) !== identity)
1959
+ throw new CliValidationError("Ask response changed its version identity.", { code: "KB_READ_CONTEXT_MISMATCH" });
1960
+ return response;
1961
+ },
1904
1962
  executionId
1905
1963
  );
1906
1964
  if (finalResponse.status === "completed") {
@@ -1975,10 +2033,12 @@ var askStatus = {
1975
2033
  { code: "KB_READ_CONTEXT_REFERENCE_FORBIDDEN" }
1976
2034
  );
1977
2035
  }
1978
- return kbApi(ctx, "GET", ASK_API_PATH, {
2036
+ const result = await kbApi(ctx, "GET", ASK_API_PATH, {
1979
2037
  executionId,
1980
2038
  ...sourceIndex !== void 0 ? { sourceIndex } : {}
1981
- });
2039
+ }, void 0, { preserveErrorMetadata: true });
2040
+ if (result.readViews !== void 0) askIdentity(result.readViews);
2041
+ return result;
1982
2042
  }
1983
2043
  };
1984
2044
 
@@ -1,8 +1,8 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  require_archiver
4
- } from "./chunk-OAWPT7VP.js";
5
- import "./chunk-JEUXDY3B.js";
4
+ } from "./chunk-2I5SZ5DS.js";
5
+ import "./chunk-HQED4YB4.js";
6
6
  import {
7
7
  TeAgentApiError,
8
8
  deleteFromMainApp,
@@ -12,19 +12,18 @@ import {
12
12
  postToMainApp,
13
13
  putToMainApp,
14
14
  uploadToMainApp
15
- } from "./chunk-JSBLCLFE.js";
16
- import "./chunk-Y74WTIKJ.js";
17
- import "./chunk-SOSFRU3O.js";
15
+ } from "./chunk-VLOGOM7N.js";
16
+ import "./chunk-PLNS5J33.js";
18
17
  import {
19
18
  isAeSandboxRuntime,
20
19
  readSandboxCliTokenEntry,
21
20
  safeJsonParse
22
- } from "./chunk-4PSTYEG5.js";
21
+ } from "./chunk-AMURHMS3.js";
23
22
  import {
24
23
  CliValidationError,
25
24
  PermissionError,
26
25
  __toESM
27
- } from "./chunk-Z3Q2AEIN.js";
26
+ } from "./chunk-R2SVAO4G.js";
28
27
 
29
28
  // src/commands/te-system/shared.ts
30
29
  import { readFileSync } from "fs";
@@ -2,20 +2,21 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getAuthHeaders,
4
4
  kbApi
5
- } from "./chunk-TFORY6WY.js";
5
+ } from "./chunk-KD5UC33N.js";
6
6
  import {
7
7
  printError,
8
8
  printOutput
9
- } from "./chunk-YULUBP3R.js";
10
- import "./chunk-HRUOV6EQ.js";
11
- import "./chunk-Y74WTIKJ.js";
12
- import "./chunk-CG773QXN.js";
13
- import "./chunk-SOSFRU3O.js";
14
- import "./chunk-4PSTYEG5.js";
9
+ } from "./chunk-O45NOIWR.js";
10
+ import "./chunk-4IQYPWCX.js";
11
+ import "./chunk-NNK3JBH4.js";
12
+ import "./chunk-E3ONSFUN.js";
13
+ import "./chunk-PUSFEC6B.js";
14
+ import "./chunk-PLNS5J33.js";
15
+ import "./chunk-AMURHMS3.js";
15
16
  import {
16
17
  externalCliTokenRequestOptions,
17
18
  redactExternalCliToken
18
- } from "./chunk-Z3Q2AEIN.js";
19
+ } from "./chunk-R2SVAO4G.js";
19
20
 
20
21
  // src/commands/te-team/shared.ts
21
22
  var API_PREFIX = process.env.AE_API_PREFIX ?? "/agent";
@@ -1,20 +1,21 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveMemoryApiBaseUrl
4
- } from "./chunk-AWVZTN2B.js";
5
- import "./chunk-VDICGXCY.js";
6
- import "./chunk-JSBLCLFE.js";
4
+ } from "./chunk-THTROEGD.js";
5
+ import "./chunk-HIMOBNEY.js";
6
+ import "./chunk-VLOGOM7N.js";
7
7
  import {
8
8
  CapabilityGatewayError,
9
9
  buildCapabilityGatewayUrl,
10
10
  callCapabilityApi
11
- } from "./chunk-HRUOV6EQ.js";
12
- import "./chunk-Y74WTIKJ.js";
13
- import "./chunk-SOSFRU3O.js";
14
- import "./chunk-4PSTYEG5.js";
11
+ } from "./chunk-4IQYPWCX.js";
12
+ import "./chunk-NNK3JBH4.js";
13
+ import "./chunk-PUSFEC6B.js";
14
+ import "./chunk-PLNS5J33.js";
15
+ import "./chunk-AMURHMS3.js";
15
16
  import {
16
17
  PermissionError
17
- } from "./chunk-Z3Q2AEIN.js";
18
+ } from "./chunk-R2SVAO4G.js";
18
19
 
19
20
  // src/commands/things/parity-actions.ts
20
21
  import { readFileSync } from "fs";
@@ -5,26 +5,28 @@ import {
5
5
  import {
6
6
  printError,
7
7
  printOutput
8
- } from "./chunk-YULUBP3R.js";
8
+ } from "./chunk-O45NOIWR.js";
9
9
  import {
10
10
  buildVersionInstallPlan,
11
11
  exactVersion,
12
12
  fetchCliConfig,
13
13
  friendlyVersionSyncFailure,
14
14
  getCachedCompatForHost,
15
- getLocalCliPackageInfo,
16
15
  installHost,
17
16
  installVersion,
18
17
  recordVersionSyncResult,
19
18
  rememberBusinessConfig
20
- } from "./chunk-CG773QXN.js";
19
+ } from "./chunk-E3ONSFUN.js";
20
+ import {
21
+ getLocalCliPackageInfo
22
+ } from "./chunk-PUSFEC6B.js";
21
23
  import {
22
24
  peekCliToken
23
- } from "./chunk-SOSFRU3O.js";
25
+ } from "./chunk-PLNS5J33.js";
24
26
  import {
25
27
  getActiveHost
26
- } from "./chunk-4PSTYEG5.js";
27
- import "./chunk-Z3Q2AEIN.js";
28
+ } from "./chunk-AMURHMS3.js";
29
+ import "./chunk-R2SVAO4G.js";
28
30
 
29
31
  // src/commands/update.ts
30
32
  var HOST_OPTION_DESC = "Override active AE host URL (e.g., https://ta.thinkingdata.cn)";
@@ -13,18 +13,17 @@ import {
13
13
  workspaceResourcePath,
14
14
  workspaceTargetFlags,
15
15
  workspaceTargetPath
16
- } from "./chunk-E25OSZLJ.js";
16
+ } from "./chunk-COOMXFUG.js";
17
17
  import "./chunk-RK6GLDGI.js";
18
18
  import {
19
19
  getAgentBuffer
20
- } from "./chunk-VDICGXCY.js";
21
- import "./chunk-JSBLCLFE.js";
22
- import "./chunk-Y74WTIKJ.js";
23
- import "./chunk-SOSFRU3O.js";
24
- import "./chunk-4PSTYEG5.js";
20
+ } from "./chunk-HIMOBNEY.js";
21
+ import "./chunk-VLOGOM7N.js";
22
+ import "./chunk-PLNS5J33.js";
23
+ import "./chunk-AMURHMS3.js";
25
24
  import {
26
25
  CliValidationError
27
- } from "./chunk-Z3Q2AEIN.js";
26
+ } from "./chunk-R2SVAO4G.js";
28
27
 
29
28
  // src/commands/workspace/shared.ts
30
29
  var WORKSPACE_SERVICE = "workspace";
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@thinkingai/ae-cli",
3
- "version": "6.1.30",
3
+ "version": "6.1.33",
4
4
  "description": "CLI tool for ThinkingAI (AE) analytics platform",
5
5
  "type": "module",
6
6
  "bin": {
7
- "ae-cli": "bin/ae-cli.js"
7
+ "ae-cli": "bin/ae-cli.js",
8
+ "ai-monitor": "bin/ai-monitor.js"
8
9
  },
9
10
  "main": "dist/index.js",
10
11
  "files": [
@@ -18,7 +19,7 @@
18
19
  ],
19
20
  "scripts": {
20
21
  "dev": "tsx src/index.ts",
21
- "build": "tsup src/index.ts --format esm --outDir dist --clean --config tsup.config.ts && node scripts/copy-tracking-assets.mjs",
22
+ "build": "tsup src/index.ts src/ai-monitor.ts --format esm --outDir dist --clean --config tsup.config.ts && node scripts/copy-tracking-assets.mjs",
22
23
  "generate:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts",
23
24
  "sync:skill-collaboration": "node scripts/sync-skill-collaboration.mjs",
24
25
  "check:skill-collaboration": "node scripts/sync-skill-collaboration.mjs --check",
@@ -34,6 +35,7 @@
34
35
  "verify:analysis-skill": "tsx scripts/generate-analysis-skill-index.mts --check",
35
36
  "verify:analysis-four-modules": "tsx tests/dashboard-filter-transport.test.ts && tsx tests/analysis-report-capability-command.test.ts && npm run verify:analysis-presentation && tsx tests/analysis-export-flow-command.test.ts && tsx tests/analysis-dashboard-audience-contract.test.ts",
36
37
  "verify:analysis-contract-regressions": "tsx test/analysis-contract-regressions.test.mjs && tsx tests/analysis-sql-special-identifiers.test.ts",
38
+ "verify:personal-semantic": "tsx tests/personal-semantic-preference-command.test.ts && tsx tests/personal-semantic-global-command.test.ts",
37
39
  "verify:analysis-agent-contract": "tsx tests/analysis-agent-skill-contract.test.ts",
38
40
  "verify:analysis-presentation": "tsx --test tests/analysis-report-presentation.test.ts",
39
41
  "verify:analysis-system": "tsx tests/analysis-system-capability-command.test.ts",
@@ -42,16 +44,18 @@
42
44
  "verify:output-contract": "tsx tests/output-contract.test.ts",
43
45
  "verify:analysis-cluster-routing": "node scripts/verify-analysis-cluster-routing.mjs",
44
46
  "verify:metadata-capability": "npx tsx test/metadata-capability-commands.test.mjs",
47
+ "verify:ai-monitor-capability": "npx tsx tests/ai-monitor-capability-command.test.ts && node --import tsx --test tests/ai-monitor-read-command.test.ts tests/ai-monitor-entrypoint.test.ts",
45
48
  "verify:community-capability": "node test/community-capability-routing.test.mjs",
46
49
  "verify:community-report": "npx tsx tests/community-report-standard-v5.test.ts && npx tsx tests/community-report-client.test.ts && npx tsx tests/community-report-framework.test.ts && npx tsx tests/community-data-report-command.test.ts && node test/community-data-report-skill.test.mjs",
47
50
  "verify:engage-capability": "tsx test/engage/engage-capability-command.test.mjs && tsx test/engage/semantic-qp-validation.test.mjs && node test/engage/engage-skill-capability.test.mjs",
48
51
  "verify:retired-analysis-commands": "node --test test/retired-analysis-commands.test.mjs",
49
52
  "verify:retired-api-command": "node --test test/retired-api-command.test.mjs",
50
53
  "verify:analysis-common-tools": "node scripts/verify-te-common-tools.mjs",
51
- "verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs",
54
+ "verify:experiment-tools": "node scripts/verify-te-experiment-tools.mjs && node --import tsx test/experiment/experiment-capability-command.test.mjs && node --import tsx --test test/experiment/experiment-approval-command.test.mjs && node --import tsx test/experiment/traffic-domain-command.test.mjs",
52
55
  "verify:team-tools": "node scripts/verify-te-team-tools.mjs && node --import tsx --test tests/team-run-watch.test.ts test/team-run-start-command.test.mjs",
53
- "verify:evaluation-tools": "node scripts/verify-evaluation-tools.mjs && node --import tsx tests/evaluation-client.test.ts && node --import tsx tests/evaluation-sandbox-session.test.ts && node --import tsx tests/evaluation-security.test.ts && node --import tsx tests/evaluation-command-contract.test.ts",
54
- "verify:agent-tools": "node --test test/agent-command-registry.test.mjs && tsx tests/te-agent-credentials.test.ts && tsx tests/te-agent-unified-auth.test.ts && node --import tsx --test tests/te-agent-env-isolation.test.ts && tsx tests/te-agent-conversations.test.ts && tsx scripts/verify-agent-tools.mjs && npm run verify:resource-package && npm run verify:approval && npm run verify:agent-distribution && npm run verify:agent-context && npm run verify:sandbox-tools && npm run verify:notifications",
56
+ "verify:evaluation-tools": "node scripts/verify-evaluation-tools.mjs && node --import tsx tests/evaluation-client.test.ts && node --import tsx tests/evaluation-sandbox-session.test.ts && node --import tsx tests/evaluation-security.test.ts && node --import tsx tests/evaluation-command-contract.test.ts && node --import tsx --test tests/evaluation-onboarding.test.ts",
57
+ "verify:a2a": "node --import tsx --test tests/a2a-client.test.ts",
58
+ "verify:agent-tools": "npm run verify:a2a && node --test test/agent-command-registry.test.mjs && tsx tests/te-agent-credentials.test.ts && tsx tests/te-agent-unified-auth.test.ts && node --import tsx --test tests/te-agent-env-isolation.test.ts && tsx tests/te-agent-conversations.test.ts && tsx scripts/verify-agent-tools.mjs && npm run verify:resource-package && npm run verify:approval && npm run verify:agent-distribution && npm run verify:agent-context && npm run verify:sandbox-tools && npm run verify:notifications",
55
59
  "verify:resource-package": "node --import tsx tests/resource-package-command.test.ts && node --import tsx tests/resource-package-cli.test.ts && node --import tsx tests/resource-package-transfer.test.ts && node --import tsx tests/resource-package-skill.test.ts",
56
60
  "verify:agent-context": "tsx tests/agent-context-command.test.ts",
57
61
  "verify:cli-agent-model-context": "tsx --test tests/cli-agent-model-context.test.ts",
@@ -72,7 +76,7 @@
72
76
  "verify:page-context": "node --test test/page-context-skill.test.mjs test/page-context-references.test.mjs test/internal-skill-distribution.test.mjs",
73
77
  "verify:skill-migration": "node --test test/ae-migrate-tracking-code/migration-regression.test.mjs test/ae-migrate-tracking-code/ir-golden-consistency.test.mjs test/ae-migrate-tracking-code/migrated-signatures.test.mjs",
74
78
  "verify:skill-migration-e2e": "node test/ae-migrate-tracking-code/e2e/diff.mjs",
75
- "verify:tracking-tools": "tsx test/tracking-client.test.mjs && tsx test/tracking-skill-flow.test.mjs && node test/tracking-commands.test.mjs && tsx tests/tracking-display-name-sync.test.ts && tsx tests/local-data-inspect-convert.test.ts && tsx tests/local-data-upload-client.test.ts && tsx tests/local-data-upload-command.test.ts && tsx tests/local-data-encoding-sniff.test.ts && tsx tests/local-data-time-formats.test.ts && tsx tests/local-data-xlsx-dates.test.ts && tsx tests/local-data-xlsx-hidden-sheets.test.ts && tsx tests/local-data-xlsx-formulas.test.ts && tsx tests/local-data-title-rows.test.ts && tsx tests/local-data-xlsx-merged-cells.test.ts && tsx tests/local-data-xlsx-shared-strings.test.ts && tsx tests/local-data-xlsx-namespace-prefix.test.ts && tsx tests/local-data-value-distribution.test.ts && tsx tests/local-data-summary-rows.test.ts && tsx tests/local-data-duplicate-keys.test.ts && tsx tests/local-data-row-balance.test.ts && tsx tests/local-data-eight-types.test.ts && tsx tests/local-data-mapping-extras.test.ts && tsx tests/local-data-plan.test.ts && tsx tests/local-data-handoff.test.ts && tsx tests/local-data-reuse.test.ts && tsx tests/local-data-conflicts-resolutions.test.ts && tsx tests/local-data-parquet.test.ts && tsx tests/runner-variadic-flags.test.ts && node test/local-data-skill.test.mjs",
79
+ "verify:tracking-tools": "tsx test/tracking-client.test.mjs && tsx test/tracking-skill-flow.test.mjs && node test/tracking-commands.test.mjs && node --test test/tracking-plan-preview.test.mjs && tsx tests/tracking-display-name-sync.test.ts && tsx tests/local-data-inspect-convert.test.ts && tsx tests/local-data-upload-client.test.ts && tsx tests/local-data-upload-command.test.ts && tsx tests/local-data-encoding-sniff.test.ts && tsx tests/local-data-time-formats.test.ts && tsx tests/local-data-xlsx-dates.test.ts && tsx tests/local-data-xlsx-hidden-sheets.test.ts && tsx tests/local-data-xlsx-formulas.test.ts && tsx tests/local-data-title-rows.test.ts && tsx tests/local-data-xlsx-merged-cells.test.ts && tsx tests/local-data-xlsx-shared-strings.test.ts && tsx tests/local-data-xlsx-namespace-prefix.test.ts && tsx tests/local-data-value-distribution.test.ts && tsx tests/local-data-summary-rows.test.ts && tsx tests/local-data-duplicate-keys.test.ts && tsx tests/local-data-row-balance.test.ts && tsx tests/local-data-eight-types.test.ts && tsx tests/local-data-mapping-extras.test.ts && tsx tests/local-data-plan.test.ts && tsx tests/local-data-handoff.test.ts && tsx tests/local-data-reuse.test.ts && tsx tests/local-data-conflicts-resolutions.test.ts && tsx tests/local-data-parquet.test.ts && tsx tests/runner-variadic-flags.test.ts && node test/local-data-skill.test.mjs",
76
80
  "verify:self-check-overlay": "node test/self-check-overlay.test.mjs",
77
81
  "verify:update-check": "tsx tests/compat-check.test.ts && tsx test/update-check.test.mjs && node --import tsx --test tests/cli-config-transport.test.ts",
78
82
  "verify:version-sync": "npx tsx tests/version-sync.test.ts && node --import tsx --test tests/compat-check-autosync.test.ts tests/resume-command.test.ts",
@@ -97,10 +101,11 @@
97
101
  "verify:skill-businesses": "node --test test/release-gate-skill-businesses.test.mjs",
98
102
  "verify:notifications": "tsx tests/notification-command.test.ts",
99
103
  "verify:mcp-int64-request": "npx tsx tests/mcp-int64-request.test.ts",
104
+ "verify:cli-source-logging": "node --import tsx --test tests/source-logged-fetch.test.ts",
100
105
  "verify:capability-api": "npx tsx tests/capability-api.test.ts",
101
106
  "verify:community-ux": "npm run build && npx tsx tests/community-ux.test.ts",
102
107
  "verify:community-evidence": "node --import tsx tests/community-evidence.test.ts",
103
- "verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts"
108
+ "verify:businesses": "node --import tsx --test tests/business-config.test.ts tests/business-command-filter.test.ts tests/business-cli.test.ts tests/environment-refresh.test.ts tests/business-sandbox-boundary.test.ts tests/business-refresh-skills.test.ts"
104
109
  },
105
110
  "repository": {
106
111
  "type": "git",
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: ae-agent
3
- version: 2.1.2
4
- description: "AE Agent platform CLI for Agent, resource package import and export, notification, approval, archived conversation, model, MCP, Skill, attachment, and user-memory work. Use when managing these resources, browsing Agent markets, handling approval requests and tasks, restoring archived conversations, persisting user memory, or answering from user preferences, background, stable workflows, or historical conventions."
3
+ version: 2.1.8
4
+ description: "Invoke AE Agents through A2A with automatic CLI authorization; AE Agent platform CLI for Agent, resource package import and export, notification, approval, archived conversation, model, MCP, Skill, attachment, and user-memory work. Use when managing these resources, browsing Agent markets, handling approval requests and tasks, restoring archived conversations, persisting user memory, or answering from user preferences, background, stable workflows, or historical conventions."
5
5
  ---
6
6
 
7
7
  # ae-agent
@@ -43,6 +43,10 @@ User memory commands live under the `memory` service:
43
43
  ae-cli memory +<command> [options]
44
44
  ```
45
45
 
46
+ ## A2A remote Agent invocation
47
+
48
+ When the user provides an AE A2A link and asks to use that Agent, read [references/a2a.md](references/a2a.md). Use `ae-cli agent a2a +card`, `+send`, `+get`, `list`, `cancel`, and `delete-context` to delegate the task with automatic host-scoped CLI authorization. Never expose the underlying token.
49
+
46
50
  ## Global AE CLI Rules
47
51
 
48
52
  - Use this skill for Agent platform resource management: Agents, generic approvals, archived conversations, models, MCP servers, Skills, attachments, the MCP/Skill market, Agent and Skill approval/share flows, and user memories.
@@ -87,7 +91,17 @@ Use `ae-agent` for all Agent platform resource work:
87
91
 
88
92
  If the user's intent is data analysis, audience management, metadata governance, TeamRuns, or knowledge bases, switch to `ae-analysis` / `ae-engage` / `ae-dataops` / `ae-team` / `ae-kb`. For AE analysis tasks with an active project scope, user requests to remember a wording, asset choice, working definition, or reusable project workflow belong to `ae-analysis` `personal-semantic-preference`, not the `memory` domain.
89
93
 
90
- ## Tool Groups (100 commands)
94
+ ## Tool Groups (106 commands)
95
+
96
+ ### A2A invocation (6)
97
+
98
+ Read [the A2A workflow](references/a2a.md) first.
99
+
100
+ - `a2a +card` — read target capabilities with automatic CLI authorization
101
+ - `a2a +send` — submit a task to the remote AE Agent
102
+ - `a2a +get` — query task status and artifacts
103
+ - `a2a list` — filter and paginate accessible tasks
104
+ - `a2a cancel` / `a2a delete-context` — cancel a task or delete an owned context with high-risk confirmation
91
105
 
92
106
  ### Agents (6)
93
107
 
@@ -385,8 +399,8 @@ ae-cli workspace capability set --workspace-id <agent-space-id> --version <revis
385
399
 
386
400
  ## User Memory Notes
387
401
 
388
- - Only write memory after the user explicitly asks for future persistence, for example by asking to remember or save something, keep it for future conversations, use it next time, or set it as a default. A preference, personal fact, workflow instruction, or answer style is eligible memory content but is not by itself permission to persist it.
389
- - Do not use `memory +create` for a project-scoped AE analysis preference, asset choice, working definition, or reusable workflow. If the current Agent host supplies a project ID, or the conversation has resolved a project for an AE analysis task, switch to `ae-analysis` and use `personal-semantic-preference add|update`; reusable project workflows are `context_type=experience`. Use the memory domain only when no project scope is active or when the user explicitly asks for cross-project memory.
402
+ - This section governs AgentSpace memory, not analysis personal semantics. For AgentSpace memory, only write after the user explicitly asks for future persistence, for example by asking to remember or save something, keep it for future conversations, use it next time, or set it as a default. A preference, personal fact, workflow instruction, or answer style is eligible memory content but is not by itself permission to persist it.
403
+ - Do not use `memory +create` for a project-scoped AE analysis preference, asset choice, working definition, or reusable workflow. If the current Agent host supplies a project ID, or the conversation has resolved a project for an AE analysis task, switch to `ae-analysis` and use `personal-semantic-preference add|update`; reusable project workflows are `context_type=experience`. Analysis-related cross-project preferences, reusable workflows and default query projects use `personal-semantic-preference --project-id -1`; initialize global semantics before selecting a project, then project semantics before querying. Use AgentSpace memory for non-analysis memory only.
390
404
  - Requests scoped to the current conversation or task, such as "next", "for this task", or "in this conversation", must not call a memory write command unless the user also explicitly asks for future persistence. An explicit refusal such as "do not remember" or "do not save this" overrides every other cue. If persistence intent is ambiguous, ask for confirmation before writing.
391
405
  - After explicit persistence intent is established, create memory in the resolved AgentSpace and only report success after the write returns successfully.
392
406
  - Shared-space members submit candidates; Owner/Admin users may activate or review them. Never claim a candidate is active unless the response outcome says so.
@@ -0,0 +1,103 @@
1
+ # Invoke AE Agents through A2A
2
+
3
+ Use these commands when a user asks an external coding Agent to delegate work to an AE Agent through an A2A link. The caller must be able to execute ae-cli. The target must be an AE Agent, and its server must support CLI-token Bearer authentication.
4
+
5
+ The CLI loads the current user's host-scoped CLI credential internally. Never read credential files, print tokens, ask the user to paste a TE token, or construct authenticated curl commands. If authentication is missing, direct the user to `ae-cli auth login --host <AE-host>`.
6
+
7
+ HTTP 401 clears only the selected host's process-local token cache, rereads its credential, and retries once within the same 30-second timeout. The retry preserves the message and JSON-RPC IDs. HTTP 403 is never retried. Stored credentials are not deleted or minted by this recovery; if authorization still fails, log in again for the selected host.
8
+
9
+ ## Workflow
10
+
11
+ 1. Select the authorized AE host. A link alone never authorizes sending credentials to another deployment. For another deployment, use its explicit `--host` and log in there first. The target URL must be inside that host's configured application path (default `/agent`). Redirects are rejected. Card-advertised interface URLs are not followed.
12
+ 2. Read the Card to check the target's capabilities.
13
+ 3. Submit the user's task. This is a write operation: the remote Agent can execute tools on the user's behalf. Use a stable `--message-id` if a submission might need to be retried.
14
+ 4. Read the returned `task.id` and query it until the task reaches a terminal state. Space polls several seconds apart. Preserve and report the task ID if the task is still running when stopping. Never resubmit a task just because it is still running.
15
+ 5. Summarize the returned artifacts/history. `TASK_STATE_COMPLETED` succeeds; `TASK_STATE_FAILED`, `TASK_STATE_CANCELED`, and `TASK_STATE_REJECTED` are terminal failures. For `TASK_STATE_INPUT_REQUIRED`, ask for the required input and send it with the returned `contextId` and task ID. For `TASK_STATE_AUTH_REQUIRED`, report the requested authorization; do not keep polling blindly.
16
+
17
+ ```bash
18
+ ae-cli agent a2a +card --host https://ae.example.com \
19
+ --url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json
20
+
21
+ ae-cli agent a2a +send --host https://ae.example.com \
22
+ --url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json \
23
+ --message 'Summarize the requested data' --message-id REQUEST_UUID
24
+
25
+ ae-cli agent a2a +get --host https://ae.example.com \
26
+ --url https://ae.example.com/agent/api/a2a/agents/AGENT_ID/agent-card.json \
27
+ --id TASK_ID
28
+ ```
29
+
30
+ The default Agent discovery link is `/agent/.well-known/agent-card.json` under the selected application path. `+card` reads that exact URL; `+send` and `+get` map it to `/agent/api/a2a/agents/system-default-agent`. Explicit Agent Card and RPC links remain supported with the same behavior. Custom deployment paths are preserved. Discovery never follows Card-advertised URLs.
31
+
32
+ ```bash
33
+ ae-cli agent a2a +card --host https://ae.example.com \
34
+ --url https://ae.example.com/agent/.well-known/agent-card.json
35
+ ```
36
+
37
+ Transition status: transitional
38
+ Owning module: te-claude A2A
39
+ Current transport: A2A 1.0 JSON-RPC with CLI-token Bearer authentication
40
+ Gateway target: TBD
41
+ Review after: 2026-12-01
42
+ Exit condition: equivalent Gateway capabilities exist; retain typed invocation and host-scoping value when migrating.
43
+
44
+ ## Commands
45
+
46
+ | Command | Risk | Required flags | Optional flags |
47
+ | --- | --- | --- | --- |
48
+ | `agent a2a +card` | read | `--url` | `--host` |
49
+ | `agent a2a +send` | write | `--url`, `--message` | `--host`, `--message-id`, `--context-id`, `--task-id`, `--space-id`, `--model`, `--history-length` |
50
+ | `agent a2a +get` | read | `--url`, `--id` | `--host`, `--history-length` |
51
+ | `agent a2a list` | read | `--url` | `--context-id`, `--status`, `--page-size`, `--page-token`, `--history-length`, `--status-timestamp-after`, `--include-artifacts` |
52
+ | `agent a2a cancel` | high-risk-write | `--url`, `--id` | `--yes` |
53
+ | `agent a2a delete-context` | high-risk-write | `--url`, `--context-id` | `--yes` |
54
+
55
+ Card and JSON-RPC endpoint URLs are accepted. All commands support global `--dry-run`, which previews the request without loading credentials or making an A2A request. `+send` uses `configuration.returnImmediately: true`; `+get` uses the JSON-RPC `GetTask` method. Results retain the server's A2A shape inside the normal CLI output envelope. No streaming or third-party authentication is provided.
56
+
57
+ The source contract is the AE server's `src/lib/a2a/protocol.ts`, `http.ts`, and `service.ts`: `A2A-Version: 1.0`, `Authorization: Bearer <CLI token>`, JSON-RPC 2.0 `SendMessage` / `GetTask`, and `/api/a2a/agents/<id>/agent-card.json` under the configured application path.
58
+
59
+ ## Workspace and model selection
60
+
61
+ Read `capabilities.extensions` in `+card` first. The extension URI
62
+ `https://thinkingdata.cn/a2a/extensions/agent-evaluation/v1` advertises
63
+ `params.spaceSelection.spaces` and `params.modelSelection.models`. Use exact
64
+ IDs from these lists, not display names. Model switching must be advertised;
65
+ a fixed Agent only accepts its configured model. Space IDs contain 1–191
66
+ letters, digits, underscores or hyphens.
67
+
68
+ ```bash
69
+ ae-cli agent a2a +send --host https://ae.example.com \
70
+ --url https://ae.example.com/agent/.well-known/agent-card.json \
71
+ --message 'Summarize the requested data' --space-id SPACE_ID --model MODEL_ID \
72
+ --message-id REQUEST_UUID --history-length 0 --dry-run
73
+ ```
74
+
75
+ `--space-id` maps to `message.metadata[extensionURI].agentSpaceId` and
76
+ `--model` to `.model`. The CLI sends both `message.extensions` and the
77
+ `A2A-Extensions` request header. Without these flags the old payload and headers
78
+ remain unchanged. No evaluation source is fabricated. Space/model authorization
79
+ is enforced by the server. For continuations using `--context-id` or `--task-id`, omit `--space-id` or
80
+ repeat the original workspace ID. The server checks that a supplied workspace
81
+ matches the existing conversation and rejects changes. Replies with `--task-id`
82
+ cannot select a model. Keep selections unchanged when retrying a
83
+ message ID. An older server may reject these optional extensions; omit the
84
+ selection flags to retain the previous invocation contract.
85
+
86
+ `--history-length` is a non-negative integer; zero suppresses history and the
87
+ server caps returned history at 100. `list` uses `ListTasks`, returns one page,
88
+ and preserves `nextPageToken`; reuse the same filters on subsequent pages.
89
+ `--page-size` is 1–100. `--status` uses the exact `TASK_STATE_*` enum from the
90
+ protocol. `--include-artifacts false` explicitly excludes artifacts.
91
+
92
+ `cancel` sends `CancelTask`. `delete-context` sends `DeleteContext` with the
93
+ context-lifecycle extension header; inspect the Card for support first.
94
+ Both require high-risk confirmation, or `--yes` after explicit user approval.
95
+
96
+ ## Server capability coverage
97
+
98
+ The current server also offers `SendStreamingMessage`, `SubscribeToTask`,
99
+ registered attachment transfer and signed inter-Agent delegation. These require
100
+ SSE/file/proof lifecycles and are not exposed by these JSON commands. Continue
101
+ using `+send` and `+get` for asynchronous text tasks. Push notifications and
102
+ extended Agent Cards are explicitly unsupported by the server. Do not invent
103
+ metadata or credentials to simulate any of these capabilities.
@@ -32,3 +32,14 @@ This index provides command-level risk metadata for Agent distribution and gener
32
32
  | `ae-cli agent resource-package download` | CLI-token resource package REST | read | resource-package.md |
33
33
  | `ae-cli agent resource-package cancel` | CLI-token resource package REST | high-risk-write | resource-package.md |
34
34
  | `ae-cli agent resource-package retry` | CLI-token resource package REST | write | resource-package.md |
35
+
36
+ ## A2A invocation
37
+
38
+ | CLI command | Transport | Risk | Reference |
39
+ | --- | --- | --- | --- |
40
+ | `ae-cli agent a2a +card` | A2A 1.0 Bearer CLI token | read | a2a.md |
41
+ | `ae-cli agent a2a +send` | A2A 1.0 JSON-RPC | write | a2a.md |
42
+ | `ae-cli agent a2a +get` | A2A 1.0 JSON-RPC | read | a2a.md |
43
+ | `ae-cli agent a2a list` | A2A 1.0 JSON-RPC | read | a2a.md |
44
+ | `ae-cli agent a2a cancel` | A2A 1.0 JSON-RPC | high-risk-write | a2a.md |
45
+ | `ae-cli agent a2a delete-context` | A2A context lifecycle extension | high-risk-write | a2a.md |