@thinkingai/ae-cli 1.0.30 → 6.0.16

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 (355) hide show
  1. package/dist/{auth-U25QJU5D.js → auth-DYC2BGLM.js} +2 -3
  2. package/dist/{auth-H3GJD55A.js → auth-GHBMJ5ZR.js} +33 -17
  3. package/dist/{chunk-CLJF7MQA.js → chunk-2DUEAXV3.js} +1 -1
  4. package/dist/{chunk-SF3KTPIC.js → chunk-5OC7CYCG.js} +2 -2
  5. package/dist/{chunk-SRJIAOBN.js → chunk-6W4QOZAL.js} +10 -0
  6. package/dist/{chunk-I42JGQ2J.js → chunk-BJX3GXWC.js} +3 -5
  7. package/dist/{chunk-GLNZSDKO.js → chunk-DMMEPCST.js} +4 -6
  8. package/dist/{chunk-VJFUB3H3.js → chunk-I5CRVM2S.js} +3 -3
  9. package/dist/{chunk-GSJGPNKK.js → chunk-PN3OS34E.js} +1 -1
  10. package/dist/{chunk-JM34JPCO.js → chunk-RSHMZ3LG.js} +178 -4
  11. package/dist/{client-IN42F223.js → client-2UJ63MVQ.js} +3 -4
  12. package/dist/{config-64G36TJL.js → config-NCUGK6NS.js} +3 -3
  13. package/dist/index.js +2526 -28
  14. package/dist/{model-VZCYNIOG.js → model-SJSOZTRS.js} +2 -2
  15. package/dist/{raw-WJIWC6YP.js → raw-7NVWSVJP.js} +5 -7
  16. package/dist/{sync-NVASAISS.js → sync-GRVO4K3U.js} +3 -3
  17. package/dist/{te-agent-YV4DXEXK.js → te-agent-KZRIEN4N.js} +468 -46
  18. package/dist/{te-analysis-CB3DA5I5.js → te-analysis-VAR4KUOK.js} +144 -29
  19. package/dist/{te-audience-W7SCQFC7.js → te-audience-KMKYI2YJ.js} +22 -15
  20. package/dist/{te-common-FBXVWBSI.js → te-common-WNCZB7R7.js} +4 -5
  21. package/dist/{te-community-LNVDZSGW.js → te-community-JEEFXPB3.js} +10 -11
  22. package/dist/{te-dataops-IPCSSWYH.js → te-dataops-GD3XBYCS.js} +11 -12
  23. package/dist/{te-engage-KARARMIR.js → te-engage-4XHCTS6I.js} +4 -5
  24. package/dist/{te-kb-2Z2CARN3.js → te-kb-B62KFP2A.js} +96 -8
  25. package/dist/{te-meta-PDKLMWXN.js → te-meta-EPZGQN56.js} +9 -10
  26. package/dist/{te-team-SW5B7DHO.js → te-team-YY24VORI.js} +6 -7
  27. package/dist/tracking/i18n/resources/cli/en.json +153 -0
  28. package/dist/tracking/i18n/resources/cli/ja.json +153 -0
  29. package/dist/tracking/i18n/resources/cli/ko.json +153 -0
  30. package/dist/tracking/i18n/resources/cli/zh.json +153 -0
  31. package/package.json +9 -3
  32. package/skills/ae-agent/SKILL.md +65 -25
  33. package/skills/ae-analysis/SKILL.md +108 -8
  34. package/skills/ae-analysis/references/cancel_query.md +39 -0
  35. package/skills/ae-analysis/references/drilldown_user_events.md +4 -2
  36. package/skills/ae-analysis/references/drilldown_users.md +4 -2
  37. package/skills/ae-analysis/references/get_bi_panel_detail.md +35 -0
  38. package/skills/ae-analysis/references/list_alerts.md +1 -1
  39. package/skills/ae-analysis/references/list_bi_panels.md +35 -0
  40. package/skills/ae-analysis/references/list_cluster_members.md +4 -1
  41. package/skills/ae-analysis/references/list_dashboards.md +1 -1
  42. package/skills/ae-analysis/references/list_entities.md +1 -1
  43. package/skills/ae-analysis/references/list_events.md +1 -1
  44. package/skills/ae-analysis/references/list_metrics.md +1 -1
  45. package/skills/ae-analysis/references/list_project_mark_times.md +1 -1
  46. package/skills/ae-analysis/references/list_properties.md +1 -1
  47. package/skills/ae-analysis/references/list_public_access_links.md +1 -1
  48. package/skills/ae-analysis/references/list_reports.md +1 -1
  49. package/skills/ae-analysis/references/list_tag_members.md +4 -1
  50. package/skills/ae-analysis/references/query_adhoc.md +6 -5
  51. package/skills/ae-analysis/references/query_bi_panel_data.md +58 -0
  52. package/skills/ae-analysis/references/query_dashboard_report_data.md +4 -1
  53. package/skills/ae-analysis/references/query_entity_details.md +5 -2
  54. package/skills/ae-analysis/references/query_event_details.md +4 -1
  55. package/skills/ae-analysis/references/query_report_data.md +2 -2
  56. package/skills/ae-analysis-global/SKILL.md +3 -1
  57. package/skills/ae-analysis-intent/SKILL.md +132 -0
  58. package/skills/ae-data-integration-helper/SKILL.md +242 -0
  59. package/skills/ae-data-integration-helper/references/android_sdk_faq.md +179 -0
  60. package/skills/ae-data-integration-helper/references/c_sdk_compilation.md +83 -0
  61. package/skills/ae-data-integration-helper/references/c_sdk_faq.md +416 -0
  62. package/skills/ae-data-integration-helper/references/cocoscreator_sdk_faq.md +123 -0
  63. package/skills/ae-data-integration-helper/references/cpp_server_sdk_faq.md +365 -0
  64. package/skills/ae-data-integration-helper/references/index.md +56 -0
  65. package/skills/ae-data-integration-helper/references/ios_sdk_faq.md +118 -0
  66. package/skills/ae-data-integration-helper/references/java_sdk_faq.md +406 -0
  67. package/skills/ae-data-integration-helper/references/javascript_sdk_faq.md +129 -0
  68. package/skills/ae-data-integration-helper/references/logbus2_guide.md +309 -0
  69. package/skills/ae-data-integration-helper/references/logbus2_parser_plugin.md +348 -0
  70. package/skills/ae-data-integration-helper/references/minigame_sdk_faq.md +115 -0
  71. package/skills/ae-data-integration-helper/references/miniprogram_sdk_faq.md +118 -0
  72. package/skills/ae-data-integration-helper/references/python_sdk_faq.md +232 -0
  73. package/skills/ae-data-integration-helper/references/restful_api_notes.md +74 -0
  74. package/skills/ae-data-integration-helper/references/sdk_log_guide.md +316 -0
  75. package/skills/ae-data-integration-helper/references/sdk_usage_notes.md +107 -0
  76. package/skills/ae-data-integration-helper/references/unity_sdk_faq.md +115 -0
  77. package/skills/ae-generate-tracking-code/SKILL.md +629 -0
  78. package/skills/ae-generate-tracking-code/references/autotrack-enum.md +183 -0
  79. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +202 -0
  80. package/skills/ae-generate-tracking-code/references/datax-config.md +43 -0
  81. package/skills/ae-generate-tracking-code/references/debug-script.md +102 -0
  82. package/skills/ae-generate-tracking-code/references/logbus-config.md +200 -0
  83. package/skills/ae-generate-tracking-code/references/modes.md +83 -0
  84. package/skills/ae-generate-tracking-code/references/restful-call.md +36 -0
  85. package/skills/ae-generate-tracking-code/references/sdk-index.md +128 -0
  86. package/skills/ae-generate-tracking-code/references/server-sdk-insert.md +206 -0
  87. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +394 -0
  88. package/skills/ae-generate-tracking-code/references/te-api.md +181 -0
  89. package/skills/ae-generate-tracking-plan/SKILL.md +1083 -0
  90. package/skills/ae-generate-tracking-plan/references/autotrack-events.md +273 -0
  91. package/skills/ae-generate-tracking-plan/references/business-dimension-mapping.md +425 -0
  92. package/skills/ae-generate-tracking-plan/references/te-api.md +100 -0
  93. package/skills/ae-generate-tracking-plan/references/xlsx-schema.md +152 -0
  94. package/skills/ae-kb/SKILL.md +38 -5
  95. package/tracking-plan-template/MMO/346/211/213/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +104 -0
  96. package/tracking-plan-template/MMO/346/211/213/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  97. package/tracking-plan-template/MMO/351/241/265/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +117 -0
  98. package/tracking-plan-template/MMO/351/241/265/346/270/270/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
  99. package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +72 -0
  100. package/tracking-plan-template/RPG/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  101. package/tracking-plan-template/SLG/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +86 -0
  102. package/tracking-plan-template/SLG/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  103. package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +80 -0
  104. package/tracking-plan-template/Slots/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  105. package/tracking-plan-template/TE /345/237/213/347/202/271/347/244/272/344/276/213/346/250/241/346/235/277.md" +40 -0
  106. package/tracking-plan-template/TE /345/237/213/347/202/271/347/244/272/344/276/213/346/250/241/346/235/277.xlsx +0 -0
  107. package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.md +40 -0
  108. package/tracking-plan-template/TE/345/256/230/346/226/271/346/250/241/346/235/277_dataTrackSample.xlsx +0 -0
  109. package/tracking-plan-template//344/274/221/351/227/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +92 -0
  110. package/tracking-plan-template//344/274/221/351/227/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
  111. package/tracking-plan-template//345/215/241/347/211/214/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +119 -0
  112. package/tracking-plan-template//345/215/241/347/211/214/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  113. package/tracking-plan-template//345/241/224/351/230/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_V1.md +130 -0
  114. package/tracking-plan-template//345/241/224/351/230/262/345/205/273/346/210/220/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_V1.xlsx +0 -0
  115. package/tracking-plan-template//345/276/256/344/277/241/345/260/217/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +52 -0
  116. package/tracking-plan-template//345/276/256/344/277/241/345/260/217/346/270/270/346/210/217/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  117. package/tracking-plan-template//346/215/225/351/261/274/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +68 -0
  118. package/tracking-plan-template//346/215/225/351/261/274/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  119. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/215/241/347/211/214/346/270/270/346/210/217_/345/237/213/347/202/271/346/250/241/347/211/210v1.md +108 -0
  120. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/215/241/347/211/214/346/270/270/346/210/217_/345/237/213/347/202/271/346/250/241/347/211/210v1.xlsx +0 -0
  121. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +119 -0
  122. package/tracking-plan-template//346/224/276/347/275/256/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  123. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/346/226/227/345/234/260/344/270/273/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +63 -0
  124. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/346/226/227/345/234/260/344/270/273/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  125. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/351/272/273/345/260/206/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v2.md +101 -0
  126. package/tracking-plan-template//346/243/213/347/211/214/347/261/273/357/274/210/351/272/273/345/260/206/357/274/211/345/237/213/347/202/271/346/250/241/346/235/277_v2.xlsx +0 -0
  127. package/tracking-plan-template//347/224/265/345/225/206/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.md +84 -0
  128. package/tracking-plan-template//347/224/265/345/225/206/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.xlsx +0 -0
  129. package/tracking-plan-template//347/237/255/345/211/247/344/272/247/345/223/201/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.md +79 -0
  130. package/tracking-plan-template//347/237/255/345/211/247/344/272/247/345/223/201/345/237/213/347/202/271/346/226/271/346/241/210/346/250/241/346/235/277_v1.xlsx +0 -0
  131. package/tracking-plan-template//347/244/276/344/272/244/350/201/212/345/244/251/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +105 -0
  132. package/tracking-plan-template//347/244/276/344/272/244/350/201/212/345/244/251/347/261/273/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  133. package/tracking-plan-template//351/230/205/350/257/273/347/261/273APP/345/237/213/347/202/271/346/250/241/346/235/277_v1.md +83 -0
  134. package/tracking-plan-template//351/230/205/350/257/273/347/261/273APP/345/237/213/347/202/271/346/250/241/346/235/277_v1.xlsx +0 -0
  135. package/wiki/te-docs/index.md +225 -0
  136. package/wiki/te-docs/raw/advanced-data-type/first-event-check.md +66 -0
  137. package/wiki/te-docs/raw/advanced-data-type/updated-event.md +87 -0
  138. package/wiki/te-docs/raw/advanced-data-type.md +16 -0
  139. package/wiki/te-docs/raw/data-ingestion-guide/about-gdpr.md +55 -0
  140. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/automatic-event-tracking.md +431 -0
  141. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/debugging-and-logging.md +49 -0
  142. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/multi-instance.md +66 -0
  143. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/preset-properties.md +466 -0
  144. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced/third-party-integration.md +127 -0
  145. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/android-advanced.md +513 -0
  146. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/compliance.md +24 -0
  147. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android/release-notes.md +177 -0
  148. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/android.md +228 -0
  149. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/c-advanced.md +419 -0
  150. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c/release-notes.md +45 -0
  151. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/c.md +110 -0
  152. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/client-side-sdk-faq.md +52 -0
  153. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/cpp-advanced.md +366 -0
  154. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp/release-notes.md +103 -0
  155. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cpp.md +201 -0
  156. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/compliance.md +26 -0
  157. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/automatically-track-events.md +117 -0
  158. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/debugging-and-logging.md +47 -0
  159. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced/preset-properties.md +52 -0
  160. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/flutter-advanced.md +267 -0
  161. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter/release-notes.md +82 -0
  162. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/flutter.md +139 -0
  163. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/compliance.md +26 -0
  164. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/automatically-track-events.md +121 -0
  165. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/debugging-and-logging.md +54 -0
  166. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced/preset-properties.md +18 -0
  167. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/reactnative-advanced.md +305 -0
  168. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native/release-notes.md +79 -0
  169. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/react-native.md +137 -0
  170. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/release-notes.md +24 -0
  171. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/automatically-track-events.md +54 -0
  172. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/debugging-and-logging.md +53 -0
  173. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/multi-instance.md +42 -0
  174. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/preset-properties.md +119 -0
  175. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced/support-native.md +81 -0
  176. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app/uniapp-advanced.md +331 -0
  177. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform/uni-app.md +156 -0
  178. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/cross-platform.md +12 -0
  179. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/automatic-event-tracking.md +29 -0
  180. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/debugging-and-logging.md +47 -0
  181. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/multi-instance.md +21 -0
  182. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced/preset-properties.md +249 -0
  183. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/cocos2d-x-advanced.md +301 -0
  184. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/compliance.md +24 -0
  185. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x/release-notes.md +51 -0
  186. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocos2d-x.md +281 -0
  187. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/automatic-event-tracking.md +70 -0
  188. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/debugging-and-logging.md +57 -0
  189. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/native-support.md +104 -0
  190. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance/preset-properties.md +91 -0
  191. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/cocoscreator-advance.md +374 -0
  192. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/compliance.md +35 -0
  193. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator/release-notes.md +109 -0
  194. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/cocoscreator.md +170 -0
  195. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/compliance.md +28 -0
  196. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/automatic-event-tracking.md +29 -0
  197. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/debugging-and-logging.md +58 -0
  198. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced/preset-properties.md +43 -0
  199. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/corona-advanced.md +204 -0
  200. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona/release-notes.md +29 -0
  201. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/corona.md +269 -0
  202. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/compliance.md +24 -0
  203. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/release-notes.md +177 -0
  204. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/automatic-event-tracking.md +119 -0
  205. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/debugging-and-logging.md +47 -0
  206. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/multi-instance.md +50 -0
  207. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/native-pluggable.md +43 -0
  208. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/preset-properties.md +212 -0
  209. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced/third-party-integration.md +77 -0
  210. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity/unity-advanced.md +396 -0
  211. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unity.md +176 -0
  212. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/compliance.md +24 -0
  213. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/release-notes.md +81 -0
  214. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/automatic-event-tracking.md +79 -0
  215. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/debugging-and-logging.md +31 -0
  216. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/preset-properties.md +25 -0
  217. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced/third-party-integrations.md +141 -0
  218. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal/unreal-advanced.md +278 -0
  219. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine/unreal.md +190 -0
  220. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/game-engine.md +14 -0
  221. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/h5-and-app-sdk-connection.md +147 -0
  222. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/instant-app-and-game.md +24 -0
  223. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/compliance.md +24 -0
  224. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/automatic-event-tracking.md +272 -0
  225. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/debugging-and-logging.md +77 -0
  226. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/multi-instance.md +142 -0
  227. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/preset-properties.md +484 -0
  228. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced/third-party-integrations.md +132 -0
  229. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/ios-advanced.md +682 -0
  230. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios/release-notes.md +163 -0
  231. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/ios.md +304 -0
  232. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/compliance.md +29 -0
  233. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/automatic-event-tracking.md +136 -0
  234. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/debugging-and-logging.md +48 -0
  235. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/multi-instance.md +50 -0
  236. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced/preset-properties.md +132 -0
  237. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/javascript-advanced.md +462 -0
  238. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript/release-notes.md +107 -0
  239. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/javascript.md +208 -0
  240. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/debugging-and-logging.md +62 -0
  241. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced/preset-properties.md +118 -0
  242. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos/macos-advanced.md +556 -0
  243. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk/macos.md +231 -0
  244. package/wiki/te-docs/raw/data-ingestion-guide/client-sdk.md +25 -0
  245. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/filebeat-logstash-user-guide.md +610 -0
  246. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/logbus2-user-guide.md +1215 -0
  247. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools/ta-datax-writer-plugin-user-guide.md +278 -0
  248. package/wiki/te-docs/raw/data-ingestion-guide/data-import-tools.md +15 -0
  249. package/wiki/te-docs/raw/data-ingestion-guide/privacy-policy.md +38 -0
  250. package/wiki/te-docs/raw/data-ingestion-guide/restful-api-user-guide.md +155 -0
  251. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-FM9Cwz.md +37 -0
  252. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging-RSyfw7.md +41 -0
  253. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/debugging-and-logging.md +89 -0
  254. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-OxzWw.md +126 -0
  255. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties-VuE3wr.md +126 -0
  256. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced/preset-properties.md +126 -0
  257. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-IauKwI.md +175 -0
  258. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced-YAilwk.md +210 -0
  259. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/c-advanced.md +211 -0
  260. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-PVazwa.md +62 -0
  261. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes-TADbwY.md +50 -0
  262. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c/release-notes.md +69 -0
  263. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-V2W3wv.md +131 -0
  264. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c-Zf9Jwl.md +179 -0
  265. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/c.md +189 -0
  266. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/debugging-and-logging.md +38 -0
  267. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced/preset-properties.md +126 -0
  268. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/erlang-advanced.md +113 -0
  269. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang/release-notes.md +34 -0
  270. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/erlang.md +155 -0
  271. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/debugging-and-logging.md +42 -0
  272. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced/preset-properties.md +126 -0
  273. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/golang-advanced.md +157 -0
  274. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang/release-notes.md +72 -0
  275. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/golang.md +148 -0
  276. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/debugging-and-logging.md +49 -0
  277. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced/preset-properties.md +126 -0
  278. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/java-advanced.md +223 -0
  279. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java/release-notes.md +88 -0
  280. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/java.md +174 -0
  281. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/debugging-and-logging.md +46 -0
  282. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced/preset-properties.md +126 -0
  283. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/lua-advanced.md +182 -0
  284. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua/release-notes.md +61 -0
  285. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/lua.md +121 -0
  286. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/debugging-and-logging.md +55 -0
  287. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced/preset-properties.md +126 -0
  288. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/nodejs-advanced.md +225 -0
  289. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs/release-notes.md +45 -0
  290. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/nodejs.md +141 -0
  291. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/debugging-and-logging.md +41 -0
  292. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced/preset-properties.md +126 -0
  293. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/php-advanced.md +216 -0
  294. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php/release-notes.md +45 -0
  295. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/php.md +173 -0
  296. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/debugging-and-logging.md +40 -0
  297. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced/preset-properties.md +126 -0
  298. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/python-advanced.md +206 -0
  299. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python/release-notes.md +51 -0
  300. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/python.md +116 -0
  301. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/release-notes.md +44 -0
  302. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/debugging-and-logging.md +47 -0
  303. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced/preset-properties.md +126 -0
  304. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby/ruby-advanced.md +189 -0
  305. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk/ruby.md +142 -0
  306. package/wiki/te-docs/raw/data-ingestion-guide/server-sdk.md +22 -0
  307. package/wiki/te-docs/raw/data-ingestion-guide/thinkingdata-privacy-policy.md +37 -0
  308. package/wiki/te-docs/raw/data-ingestion-guide.md +48 -0
  309. package/wiki/te-docs/raw/preparations-before-data-ingestion/data-rules.md +396 -0
  310. package/wiki/te-docs/raw/preparations-before-data-ingestion/preset-properties-and-system-fields.md +957 -0
  311. package/wiki/te-docs/raw/preparations-before-data-ingestion/user-identification-rules.md +723 -0
  312. package/wiki/te-docs/raw/preparations-before-data-ingestion.md +203 -0
  313. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//345/220/210/350/247/204/346/214/207/345/215/227.md +96 -0
  314. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//346/233/264/346/226/260/346/227/245/345/277/227.md +97 -0
  315. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +52 -0
  316. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +48 -0
  317. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +447 -0
  318. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony//350/277/233/351/230/266/346/214/207/345/215/227.md +370 -0
  319. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk/openharmony.md +172 -0
  320. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//345/220/210/350/247/204/346/214/207/345/215/227.md +37 -0
  321. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//346/233/264/346/226/260/346/227/245/345/277/227.md +209 -0
  322. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//345/244/232/345/256/236/344/276/213.md +71 -0
  323. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +49 -0
  324. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +125 -0
  325. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +498 -0
  326. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217//350/277/233/351/230/266/346/214/207/345/215/227.md +612 -0
  327. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//345/260/217/347/250/213/345/272/217/345/260/217/346/270/270/346/210/217.md +373 -0
  328. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//345/220/210/350/247/204/346/214/207/345/215/227.md +26 -0
  329. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//346/233/264/346/226/260/346/227/245/345/277/227.md +32 -0
  330. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +48 -0
  331. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +30 -0
  332. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +61 -0
  333. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua//350/277/233/351/230/266/346/214/207/345/215/227.md +236 -0
  334. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/cocos2d-lua.md +200 -0
  335. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//346/233/264/346/226/260/346/227/245/345/277/227.md +83 -0
  336. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +66 -0
  337. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +54 -0
  338. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +62 -0
  339. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +358 -0
  340. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret//350/277/233/351/230/266/346/214/207/345/215/227.md +615 -0
  341. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/egret.md +166 -0
  342. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//346/233/264/346/226/260/346/227/245/345/277/227.md +87 -0
  343. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227/native/346/224/257/346/214/201.md +71 -0
  344. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//345/256/236/346/227/266/350/260/203/350/257/225.md +54 -0
  345. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//350/207/252/345/212/250/351/207/207/351/233/206.md +61 -0
  346. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227//351/242/204/347/275/256/345/261/236/346/200/247.md +406 -0
  347. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair//350/277/233/351/230/266/346/214/207/345/215/227.md +597 -0
  348. package/wiki/te-docs/raw//345/256/242/346/210/267/347/253/257-sdk//346/270/270/346/210/217/345/274/225/346/223/216/layaair.md +179 -0
  349. package/wiki/te-docs/schema.md +16 -0
  350. package/wiki/te-docs/synthesis/batch-ingest-comparison.md +324 -0
  351. package/wiki/te-docs/synthesis/js-sdk-cheatsheet.md +538 -0
  352. package/wiki/te-docs/synthesis/restful-api-reference.md +363 -0
  353. package/wiki/te-docs/synthesis/sdk-selection.md +372 -0
  354. package/wiki/te-docs/synthesis/server-sdk-overview.md +449 -0
  355. package/dist/chunk-U6TKB3IV.js +0 -171
@@ -4,17 +4,63 @@ import {
4
4
  patchToMainApp,
5
5
  postToMainApp,
6
6
  uploadToMainApp
7
- } from "./chunk-VJFUB3H3.js";
8
- import "./chunk-SRJIAOBN.js";
7
+ } from "./chunk-I5CRVM2S.js";
8
+ import "./chunk-6W4QOZAL.js";
9
+
10
+ // src/commands/te-agent/agents.ts
11
+ var BASE_PATH = "/api/sandbox/agent/agents";
12
+ function buildQuery(ctx) {
13
+ const params = new URLSearchParams();
14
+ const scope = ctx.str("scope");
15
+ const q = ctx.str("q");
16
+ if (scope) params.set("scope", scope);
17
+ if (q) params.set("q", q);
18
+ const qs = params.toString();
19
+ return qs ? `?${qs}` : "";
20
+ }
21
+ var listAgents = {
22
+ service: "agent",
23
+ command: "+list-agents",
24
+ description: "List Agents visible to current user",
25
+ flags: [
26
+ {
27
+ name: "scope",
28
+ type: "string",
29
+ required: false,
30
+ desc: "Filter by scope: personal | company | system"
31
+ },
32
+ {
33
+ name: "q",
34
+ type: "string",
35
+ required: false,
36
+ desc: "Search by Agent name or description"
37
+ }
38
+ ],
39
+ risk: "read",
40
+ validate: (ctx) => {
41
+ const scope = ctx.str("scope");
42
+ if (scope && !["personal", "company", "system"].includes(scope)) {
43
+ throw new Error("--scope \u5FC5\u987B\u662F personal\u3001company \u6216 system");
44
+ }
45
+ },
46
+ dryRun: (ctx) => ({ method: "GET", url: `${BASE_PATH}${buildQuery(ctx)}` }),
47
+ execute: async (ctx) => getFromMainApp(`${BASE_PATH}${buildQuery(ctx)}`)
48
+ };
9
49
 
10
50
  // src/commands/te-agent/models.ts
11
- var BASE_PATH = "/api/sandbox/agent/models";
51
+ var BASE_PATH2 = "/api/sandbox/agent/models";
52
+ var LIST_PATH = "/api/sandbox/models";
12
53
  var listModels = {
13
54
  service: "agent",
14
55
  command: "+list-models",
15
56
  description: "List models visible to current user (personal / company / system)",
16
57
  flags: [
17
- { name: "scope", type: "string", required: false, desc: "Filter by scope: personal | company | system" }
58
+ {
59
+ name: "scope",
60
+ type: "string",
61
+ required: false,
62
+ desc: "Filter by scope: personal | company | system"
63
+ }
18
64
  ],
19
65
  risk: "read",
20
66
  validate: (ctx) => {
@@ -25,13 +71,21 @@ var listModels = {
25
71
  },
26
72
  dryRun: (ctx) => {
27
73
  const scope = ctx.str("scope");
28
- const qs = scope ? `?scope=${encodeURIComponent(scope)}` : "";
29
- return { method: "GET", url: `${BASE_PATH}${qs}` };
74
+ const params = new URLSearchParams();
75
+ const current = process.env.TE_AGENT_CURRENT_MODEL_ID?.trim();
76
+ if (scope) params.set("scope", scope);
77
+ if (current) params.set("current", current);
78
+ const qs = params.toString();
79
+ return { method: "GET", url: `${LIST_PATH}${qs ? `?${qs}` : ""}` };
30
80
  },
31
81
  execute: async (ctx) => {
32
82
  const scope = ctx.str("scope");
33
- const qs = scope ? `?scope=${encodeURIComponent(scope)}` : "";
34
- return getFromMainApp(`${BASE_PATH}${qs}`);
83
+ const params = new URLSearchParams();
84
+ const current = process.env.TE_AGENT_CURRENT_MODEL_ID?.trim();
85
+ if (scope) params.set("scope", scope);
86
+ if (current) params.set("current", current);
87
+ const qs = params.toString();
88
+ return getFromMainApp(`${LIST_PATH}${qs ? `?${qs}` : ""}`);
35
89
  }
36
90
  };
37
91
  var addModel = {
@@ -39,13 +93,33 @@ var addModel = {
39
93
  command: "+add-model",
40
94
  description: "Add a custom model (personal scope)",
41
95
  flags: [
42
- { name: "model-id", type: "string", required: true, desc: "Model identifier (e.g. gpt-4o)" },
96
+ {
97
+ name: "model-id",
98
+ type: "string",
99
+ required: true,
100
+ desc: "Model identifier (e.g. gpt-4o)"
101
+ },
43
102
  { name: "name", type: "string", required: true, desc: "Display name" },
44
103
  { name: "base-url", type: "string", required: true, desc: "API base URL" },
45
104
  { name: "api-key", type: "string", required: false, desc: "API key" },
46
- { name: "provider", type: "string", required: false, desc: "Provider name" },
47
- { name: "description", type: "string", required: false, desc: "Description" },
48
- { name: "context-length", type: "number", required: false, desc: "Context window length" }
105
+ {
106
+ name: "provider",
107
+ type: "string",
108
+ required: false,
109
+ desc: "Provider name"
110
+ },
111
+ {
112
+ name: "description",
113
+ type: "string",
114
+ required: false,
115
+ desc: "Description"
116
+ },
117
+ {
118
+ name: "context-length",
119
+ type: "number",
120
+ required: false,
121
+ desc: "Context window length"
122
+ }
49
123
  ],
50
124
  risk: "write",
51
125
  validate: (ctx) => {
@@ -58,7 +132,7 @@ var addModel = {
58
132
  },
59
133
  dryRun: (ctx) => ({
60
134
  method: "POST",
61
- url: BASE_PATH,
135
+ url: BASE_PATH2,
62
136
  body: {
63
137
  modelId: ctx.str("modelId"),
64
138
  displayName: ctx.str("name"),
@@ -70,7 +144,7 @@ var addModel = {
70
144
  }
71
145
  }),
72
146
  execute: async (ctx) => {
73
- return postToMainApp(BASE_PATH, {
147
+ return postToMainApp(BASE_PATH2, {
74
148
  modelId: ctx.str("modelId"),
75
149
  displayName: ctx.str("name"),
76
150
  baseUrl: ctx.str("baseUrl"),
@@ -86,15 +160,22 @@ var delModel = {
86
160
  command: "+del-model",
87
161
  description: "Delete a personal model",
88
162
  flags: [
89
- { name: "id", type: "string", required: true, desc: "Model record ID (CUID)" }
163
+ {
164
+ name: "id",
165
+ type: "string",
166
+ required: true,
167
+ desc: "Model record ID (CUID)"
168
+ }
90
169
  ],
91
170
  risk: "write",
92
171
  dryRun: (ctx) => ({
93
172
  method: "DELETE",
94
- url: `${BASE_PATH}?id=${encodeURIComponent(ctx.str("id"))}`
173
+ url: `${BASE_PATH2}?id=${encodeURIComponent(ctx.str("id"))}`
95
174
  }),
96
175
  execute: async (ctx) => {
97
- return deleteFromMainApp(`${BASE_PATH}?id=${encodeURIComponent(ctx.str("id"))}`);
176
+ return deleteFromMainApp(
177
+ `${BASE_PATH2}?id=${encodeURIComponent(ctx.str("id"))}`
178
+ );
98
179
  }
99
180
  };
100
181
  var toggleModel = {
@@ -102,17 +183,27 @@ var toggleModel = {
102
183
  command: "+toggle-model",
103
184
  description: "Enable or disable a model",
104
185
  flags: [
105
- { name: "id", type: "string", required: true, desc: "Model record ID (CUID)" },
106
- { name: "enabled", type: "boolean", required: true, desc: "true to enable, false to disable" }
186
+ {
187
+ name: "id",
188
+ type: "string",
189
+ required: true,
190
+ desc: "Model record ID (CUID)"
191
+ },
192
+ {
193
+ name: "enabled",
194
+ type: "boolean",
195
+ required: true,
196
+ desc: "true to enable, false to disable"
197
+ }
107
198
  ],
108
199
  risk: "write",
109
200
  dryRun: (ctx) => ({
110
201
  method: "PATCH",
111
- url: BASE_PATH,
202
+ url: BASE_PATH2,
112
203
  body: { id: ctx.str("id"), enabled: ctx.bool("enabled") }
113
204
  }),
114
205
  execute: async (ctx) => {
115
- return patchToMainApp(BASE_PATH, {
206
+ return patchToMainApp(BASE_PATH2, {
116
207
  id: ctx.str("id"),
117
208
  enabled: ctx.bool("enabled")
118
209
  });
@@ -120,7 +211,7 @@ var toggleModel = {
120
211
  };
121
212
 
122
213
  // src/commands/te-agent/mcps.ts
123
- var BASE_PATH2 = "/api/sandbox/agent/mcp-servers";
214
+ var BASE_PATH3 = "/api/sandbox/agent/mcp-servers";
124
215
  var listMcps = {
125
216
  service: "agent",
126
217
  command: "+list-mcps",
@@ -138,12 +229,12 @@ var listMcps = {
138
229
  dryRun: (ctx) => {
139
230
  const scope = ctx.str("scope");
140
231
  const qs = scope ? `?scope=${encodeURIComponent(scope)}` : "";
141
- return { method: "GET", url: `${BASE_PATH2}${qs}` };
232
+ return { method: "GET", url: `${BASE_PATH3}${qs}` };
142
233
  },
143
234
  execute: async (ctx) => {
144
235
  const scope = ctx.str("scope");
145
236
  const qs = scope ? `?scope=${encodeURIComponent(scope)}` : "";
146
- return getFromMainApp(`${BASE_PATH2}${qs}`);
237
+ return getFromMainApp(`${BASE_PATH3}${qs}`);
147
238
  }
148
239
  };
149
240
  var addMcp = {
@@ -182,7 +273,7 @@ var addMcp = {
182
273
  },
183
274
  dryRun: (ctx) => ({
184
275
  method: "POST",
185
- url: BASE_PATH2,
276
+ url: BASE_PATH3,
186
277
  body: {
187
278
  name: ctx.str("name"),
188
279
  url: ctx.str("url"),
@@ -193,7 +284,7 @@ var addMcp = {
193
284
  }
194
285
  }),
195
286
  execute: async (ctx) => {
196
- return postToMainApp(BASE_PATH2, {
287
+ return postToMainApp(BASE_PATH3, {
197
288
  name: ctx.str("name"),
198
289
  url: ctx.str("url"),
199
290
  displayName: ctx.str("displayName") || void 0,
@@ -213,10 +304,10 @@ var delMcp = {
213
304
  risk: "write",
214
305
  dryRun: (ctx) => ({
215
306
  method: "DELETE",
216
- url: `${BASE_PATH2}?id=${encodeURIComponent(ctx.str("id"))}`
307
+ url: `${BASE_PATH3}?id=${encodeURIComponent(ctx.str("id"))}`
217
308
  }),
218
309
  execute: async (ctx) => {
219
- return deleteFromMainApp(`${BASE_PATH2}?id=${encodeURIComponent(ctx.str("id"))}`);
310
+ return deleteFromMainApp(`${BASE_PATH3}?id=${encodeURIComponent(ctx.str("id"))}`);
220
311
  }
221
312
  };
222
313
  var toggleMcp = {
@@ -230,11 +321,11 @@ var toggleMcp = {
230
321
  risk: "write",
231
322
  dryRun: (ctx) => ({
232
323
  method: "PATCH",
233
- url: BASE_PATH2,
324
+ url: BASE_PATH3,
234
325
  body: { id: ctx.str("id"), enabled: ctx.bool("enabled") }
235
326
  }),
236
327
  execute: async (ctx) => {
237
- return patchToMainApp(BASE_PATH2, {
328
+ return patchToMainApp(BASE_PATH3, {
238
329
  id: ctx.str("id"),
239
330
  enabled: ctx.bool("enabled")
240
331
  });
@@ -242,7 +333,7 @@ var toggleMcp = {
242
333
  };
243
334
 
244
335
  // src/commands/te-agent/skills.ts
245
- var BASE_PATH3 = "/api/sandbox/agent/skills";
336
+ var BASE_PATH4 = "/api/sandbox/agent/skills";
246
337
  async function resolveInstructions(raw) {
247
338
  if (raw === "@-") {
248
339
  const chunks = [];
@@ -272,12 +363,12 @@ var listSkills = {
272
363
  dryRun: (ctx) => {
273
364
  const scope = ctx.str("scope");
274
365
  const qs = scope ? `?scope=${encodeURIComponent(scope)}` : "";
275
- return { method: "GET", url: `${BASE_PATH3}${qs}` };
366
+ return { method: "GET", url: `${BASE_PATH4}${qs}` };
276
367
  },
277
368
  execute: async (ctx) => {
278
369
  const scope = ctx.str("scope");
279
370
  const qs = scope ? `?scope=${encodeURIComponent(scope)}` : "";
280
- return getFromMainApp(`${BASE_PATH3}${qs}`);
371
+ return getFromMainApp(`${BASE_PATH4}${qs}`);
281
372
  }
282
373
  };
283
374
  var addSkill = {
@@ -299,7 +390,7 @@ var addSkill = {
299
390
  },
300
391
  dryRun: (ctx) => ({
301
392
  method: "POST",
302
- url: BASE_PATH3,
393
+ url: BASE_PATH4,
303
394
  body: {
304
395
  name: ctx.str("name"),
305
396
  description: ctx.str("description"),
@@ -309,7 +400,7 @@ var addSkill = {
309
400
  }),
310
401
  execute: async (ctx) => {
311
402
  const instructions = await resolveInstructions(ctx.str("instructions"));
312
- return postToMainApp(BASE_PATH3, {
403
+ return postToMainApp(BASE_PATH4, {
313
404
  name: ctx.str("name"),
314
405
  description: ctx.str("description"),
315
406
  instructions,
@@ -327,10 +418,10 @@ var delSkill = {
327
418
  risk: "write",
328
419
  dryRun: (ctx) => ({
329
420
  method: "DELETE",
330
- url: `${BASE_PATH3}?id=${encodeURIComponent(ctx.str("id"))}`
421
+ url: `${BASE_PATH4}?id=${encodeURIComponent(ctx.str("id"))}`
331
422
  }),
332
423
  execute: async (ctx) => {
333
- return deleteFromMainApp(`${BASE_PATH3}?id=${encodeURIComponent(ctx.str("id"))}`);
424
+ return deleteFromMainApp(`${BASE_PATH4}?id=${encodeURIComponent(ctx.str("id"))}`);
334
425
  }
335
426
  };
336
427
  var toggleSkill = {
@@ -344,11 +435,11 @@ var toggleSkill = {
344
435
  risk: "write",
345
436
  dryRun: (ctx) => ({
346
437
  method: "PATCH",
347
- url: BASE_PATH3,
438
+ url: BASE_PATH4,
348
439
  body: { id: ctx.str("id"), enabled: ctx.bool("enabled") }
349
440
  }),
350
441
  execute: async (ctx) => {
351
- return patchToMainApp(BASE_PATH3, {
442
+ return patchToMainApp(BASE_PATH4, {
352
443
  id: ctx.str("id"),
353
444
  enabled: ctx.bool("enabled")
354
445
  });
@@ -358,7 +449,7 @@ var toggleSkill = {
358
449
  // src/commands/te-agent/attachments.ts
359
450
  import { readFileSync, existsSync } from "fs";
360
451
  import { resolve, basename, extname } from "path";
361
- var LIST_PATH = "/api/sandbox/agent/attachments";
452
+ var LIST_PATH2 = "/api/sandbox/agent/attachments";
362
453
  var UPLOAD_PATH = "/api/sandbox/agent/attachments/upload";
363
454
  function guessMimeType(filePath) {
364
455
  const ext = extname(filePath).toLowerCase();
@@ -429,7 +520,7 @@ var listAttachments = {
429
520
  { name: "q", type: "string", required: false, desc: "Search keyword" },
430
521
  { name: "type", type: "string", required: false, desc: "Filter by type: image | document" },
431
522
  { name: "page", type: "number", required: false, desc: "Page number (default 1)" },
432
- { name: "page-size", type: "number", required: false, desc: "Page size (default 20, max 100)" }
523
+ { name: "page-size", type: "number", required: false, desc: "Page size (default 20, max 10000)" }
433
524
  ],
434
525
  risk: "read",
435
526
  validate: (ctx) => {
@@ -445,7 +536,7 @@ var listAttachments = {
445
536
  if (ctx.num("page")) params.set("page", String(ctx.num("page")));
446
537
  if (ctx.num("pageSize")) params.set("pageSize", String(ctx.num("pageSize")));
447
538
  const qs = params.toString();
448
- return { method: "GET", url: `${LIST_PATH}${qs ? "?" + qs : ""}` };
539
+ return { method: "GET", url: `${LIST_PATH2}${qs ? "?" + qs : ""}` };
449
540
  },
450
541
  execute: async (ctx) => {
451
542
  const params = new URLSearchParams();
@@ -454,7 +545,7 @@ var listAttachments = {
454
545
  if (ctx.num("page")) params.set("page", String(ctx.num("page")));
455
546
  if (ctx.num("pageSize")) params.set("pageSize", String(ctx.num("pageSize")));
456
547
  const qs = params.toString();
457
- return getFromMainApp(`${LIST_PATH}${qs ? "?" + qs : ""}`);
548
+ return getFromMainApp(`${LIST_PATH2}${qs ? "?" + qs : ""}`);
458
549
  }
459
550
  };
460
551
  var addAttachment = {
@@ -488,15 +579,342 @@ var delAttachment = {
488
579
  risk: "write",
489
580
  dryRun: (ctx) => ({
490
581
  method: "DELETE",
491
- url: `${LIST_PATH}?id=${encodeURIComponent(ctx.str("id"))}`
582
+ url: `${LIST_PATH2}?id=${encodeURIComponent(ctx.str("id"))}`
492
583
  }),
493
584
  execute: async (ctx) => {
494
- return deleteFromMainApp(`${LIST_PATH}?id=${encodeURIComponent(ctx.str("id"))}`);
585
+ return deleteFromMainApp(`${LIST_PATH2}?id=${encodeURIComponent(ctx.str("id"))}`);
586
+ }
587
+ };
588
+
589
+ // src/commands/te-agent/automations.ts
590
+ var BASE_PATH5 = "/api/sandbox/agent/automations";
591
+ var SCHEDULE_KINDS = ["hourly", "daily", "weekly", "monthly"];
592
+ var TIME_RE = /^([01]\d|2[0-3]):([0-5]\d)$/;
593
+ var AUTOMATION_STATUSES = ["active", "paused"];
594
+ function optional(value) {
595
+ const trimmed = value.trim();
596
+ return trimmed ? trimmed : void 0;
597
+ }
598
+ function envOptional(name) {
599
+ return optional(process.env[name] ?? "");
600
+ }
601
+ function readEnabled(ctx) {
602
+ return readEnabledOptional(ctx) ?? true;
603
+ }
604
+ function readEnabledOptional(ctx) {
605
+ const enabled = ctx.json("enabled");
606
+ if (enabled === void 0) return void 0;
607
+ if (typeof enabled !== "boolean") {
608
+ throw new Error("--enabled \u5FC5\u987B\u662F true \u6216 false");
609
+ }
610
+ return enabled;
611
+ }
612
+ function buildSchedule(ctx) {
613
+ const kind = optional(ctx.str("scheduleKind"));
614
+ if (!kind) return void 0;
615
+ if (kind === "hourly") {
616
+ const minute = ctx.str("minute") ? ctx.num("minute") : void 0;
617
+ return { kind, ...minute === void 0 ? {} : { minute } };
495
618
  }
619
+ if (kind === "daily") return { kind, time: ctx.str("time") };
620
+ if (kind === "weekly") {
621
+ return { kind, time: ctx.str("time"), weekday: ctx.num("weekday") };
622
+ }
623
+ return {
624
+ kind: "monthly",
625
+ time: ctx.str("time"),
626
+ dayOfMonth: ctx.num("dayOfMonth")
627
+ };
628
+ }
629
+ function hasScheduleDetail(ctx) {
630
+ return Boolean(
631
+ optional(ctx.str("time")) || optional(ctx.str("minute")) || optional(ctx.str("weekday")) || optional(ctx.str("dayOfMonth"))
632
+ );
633
+ }
634
+ function validateSchedule(ctx, required) {
635
+ const cron = optional(ctx.str("cron"));
636
+ const kind = optional(ctx.str("scheduleKind"));
637
+ if (cron && kind) {
638
+ throw new Error("--cron \u4E0E --schedule-kind \u53EA\u80FD\u4E8C\u9009\u4E00");
639
+ }
640
+ if (!cron && !kind) {
641
+ if (required || hasScheduleDetail(ctx)) {
642
+ throw new Error("\u5FC5\u987B\u63D0\u4F9B --cron \u6216 --schedule-kind");
643
+ }
644
+ return;
645
+ }
646
+ if (!kind) return;
647
+ if (!SCHEDULE_KINDS.includes(kind)) {
648
+ throw new Error("--schedule-kind \u5FC5\u987B\u662F hourly\u3001daily\u3001weekly \u6216 monthly");
649
+ }
650
+ const time = optional(ctx.str("time"));
651
+ if (kind !== "hourly") {
652
+ if (!time) throw new Error(`${kind} \u8C03\u5EA6\u5FC5\u987B\u63D0\u4F9B --time HH:mm`);
653
+ if (!TIME_RE.test(time)) throw new Error("--time \u683C\u5F0F\u5FC5\u987B\u662F HH:mm");
654
+ }
655
+ if (kind === "hourly" && ctx.str("minute")) {
656
+ const minute = ctx.num("minute");
657
+ if (!Number.isInteger(minute) || minute < 0 || minute > 59) {
658
+ throw new Error("--minute \u5FC5\u987B\u662F 0-59 \u7684\u6574\u6570");
659
+ }
660
+ }
661
+ if (kind === "weekly") {
662
+ const weekday = ctx.num("weekday");
663
+ if (!Number.isInteger(weekday) || weekday < 0 || weekday > 6) {
664
+ throw new Error("--weekday \u5FC5\u987B\u662F 0-6 \u7684\u6574\u6570\uFF0C0 \u8868\u793A\u5468\u65E5");
665
+ }
666
+ }
667
+ if (kind === "monthly") {
668
+ const dayOfMonth = ctx.num("dayOfMonth");
669
+ if (!Number.isInteger(dayOfMonth) || dayOfMonth < 1 || dayOfMonth > 28) {
670
+ throw new Error("--day-of-month \u5FC5\u987B\u662F 1-28 \u7684\u6574\u6570");
671
+ }
672
+ }
673
+ }
674
+ function buildCreateBody(ctx) {
675
+ const explicitAgentId = optional(ctx.str("agentId"));
676
+ const explicitAgentName = optional(ctx.str("agentName"));
677
+ const agentId = explicitAgentId ?? (explicitAgentName ? void 0 : envOptional("TE_AGENT_CURRENT_AGENT_ID"));
678
+ const conversationId = optional(ctx.str("conversationId")) ?? envOptional("TE_AGENT_CONVERSATION_ID");
679
+ const model = optional(ctx.str("model")) ?? envOptional("TE_AGENT_CURRENT_MODEL_ID");
680
+ const enabled = readEnabled(ctx);
681
+ return {
682
+ name: ctx.str("name"),
683
+ message: ctx.str("message"),
684
+ agentId,
685
+ agentName: explicitAgentName,
686
+ conversationId,
687
+ cronExpression: optional(ctx.str("cron")),
688
+ schedule: buildSchedule(ctx),
689
+ triggerType: "scheduled",
690
+ model,
691
+ status: enabled ? "active" : "paused"
692
+ };
693
+ }
694
+ function buildListPath(ctx) {
695
+ const params = new URLSearchParams();
696
+ const q = optional(ctx.str("q"));
697
+ const status = optional(ctx.str("status"));
698
+ const limit = optional(ctx.str("limit"));
699
+ if (q) params.set("q", q);
700
+ if (status) params.set("status", status);
701
+ if (limit) params.set("limit", String(ctx.num("limit")));
702
+ const query = params.toString();
703
+ return query ? `${BASE_PATH5}?${query}` : BASE_PATH5;
704
+ }
705
+ function validateList(ctx) {
706
+ const status = optional(ctx.str("status"));
707
+ if (status && !AUTOMATION_STATUSES.includes(status)) {
708
+ throw new Error("--status \u5FC5\u987B\u662F active \u6216 paused");
709
+ }
710
+ if (ctx.str("limit")) {
711
+ const limit = ctx.num("limit");
712
+ if (!Number.isInteger(limit) || limit < 1 || limit > 50) {
713
+ throw new Error("--limit \u5FC5\u987B\u662F 1-10000 \u7684\u6574\u6570");
714
+ }
715
+ }
716
+ }
717
+ function buildUpdateBody(ctx) {
718
+ const enabled = readEnabledOptional(ctx);
719
+ const body = {};
720
+ const name = optional(ctx.str("name"));
721
+ const message = optional(ctx.str("message"));
722
+ const cron = optional(ctx.str("cron"));
723
+ const schedule = buildSchedule(ctx);
724
+ if (name) body.name = name;
725
+ if (message !== void 0) body.message = message;
726
+ if (enabled !== void 0) body.status = enabled ? "active" : "paused";
727
+ if (cron) body.cronExpression = cron;
728
+ if (schedule) body.schedule = schedule;
729
+ return body;
730
+ }
731
+ function validateUpdate(ctx) {
732
+ validateSchedule(ctx, false);
733
+ if (!Object.keys(buildUpdateBody(ctx)).length) {
734
+ throw new Error("\u81F3\u5C11\u63D0\u4F9B\u4E00\u4E2A\u66F4\u65B0\u5B57\u6BB5");
735
+ }
736
+ }
737
+ var scheduleFlags = [
738
+ {
739
+ name: "cron",
740
+ type: "string",
741
+ required: false,
742
+ desc: "Cron expression for supported hourly/daily/weekly/monthly schedules"
743
+ },
744
+ {
745
+ name: "schedule-kind",
746
+ type: "string",
747
+ required: false,
748
+ desc: "hourly | daily | weekly | monthly"
749
+ },
750
+ {
751
+ name: "time",
752
+ type: "string",
753
+ required: false,
754
+ desc: "Time in HH:mm for daily/weekly/monthly"
755
+ },
756
+ {
757
+ name: "minute",
758
+ type: "number",
759
+ required: false,
760
+ desc: "Minute 0-59 for hourly schedules"
761
+ },
762
+ {
763
+ name: "weekday",
764
+ type: "number",
765
+ required: false,
766
+ desc: "Weekday 0-6 for weekly schedules; 0 is Sunday"
767
+ },
768
+ {
769
+ name: "day-of-month",
770
+ type: "number",
771
+ required: false,
772
+ desc: "Day 1-28 for monthly schedules"
773
+ }
774
+ ];
775
+ var listAutomations = {
776
+ service: "agent",
777
+ command: "+list-automations",
778
+ description: "List current user's Agent automation tasks",
779
+ flags: [
780
+ {
781
+ name: "q",
782
+ type: "string",
783
+ required: false,
784
+ desc: "Keyword for automation name or instruction"
785
+ },
786
+ {
787
+ name: "status",
788
+ type: "string",
789
+ required: false,
790
+ desc: "active | paused"
791
+ },
792
+ {
793
+ name: "limit",
794
+ type: "number",
795
+ required: false,
796
+ desc: "Maximum number of automations to return, 1-10000"
797
+ }
798
+ ],
799
+ risk: "read",
800
+ validate: validateList,
801
+ dryRun: (ctx) => ({
802
+ method: "GET",
803
+ url: buildListPath(ctx)
804
+ }),
805
+ execute: async (ctx) => getFromMainApp(buildListPath(ctx))
806
+ };
807
+ var createAutomation = {
808
+ service: "agent",
809
+ command: "+create-automation",
810
+ description: "Create an Agent automation task",
811
+ flags: [
812
+ {
813
+ name: "name",
814
+ type: "string",
815
+ required: true,
816
+ desc: "Automation task name"
817
+ },
818
+ {
819
+ name: "message",
820
+ type: "string",
821
+ required: true,
822
+ desc: "Instruction sent to the Agent"
823
+ },
824
+ {
825
+ name: "agent-id",
826
+ type: "string",
827
+ required: false,
828
+ desc: "Agent ID; defaults to current conversation Agent"
829
+ },
830
+ {
831
+ name: "agent-name",
832
+ type: "string",
833
+ required: false,
834
+ desc: "Agent name; use only after +list-agents discovery"
835
+ },
836
+ {
837
+ name: "model",
838
+ type: "string",
839
+ required: false,
840
+ desc: "Model record ID; defaults to current selected model"
841
+ },
842
+ {
843
+ name: "enabled",
844
+ type: "boolean",
845
+ required: false,
846
+ desc: "Whether to enable the automation immediately; defaults to true"
847
+ },
848
+ {
849
+ name: "conversation-id",
850
+ type: "string",
851
+ required: false,
852
+ desc: "Conversation ID fallback for resolving current Agent"
853
+ },
854
+ ...scheduleFlags
855
+ ],
856
+ risk: "write",
857
+ validate: (ctx) => {
858
+ if (ctx.str("agentId") && ctx.str("agentName")) {
859
+ throw new Error("--agent-id \u4E0E --agent-name \u53EA\u80FD\u4E8C\u9009\u4E00");
860
+ }
861
+ validateSchedule(ctx, true);
862
+ },
863
+ dryRun: (ctx) => ({
864
+ method: "POST",
865
+ url: BASE_PATH5,
866
+ body: buildCreateBody(ctx)
867
+ }),
868
+ execute: async (ctx) => postToMainApp(BASE_PATH5, buildCreateBody(ctx))
869
+ };
870
+ var updateAutomation = {
871
+ service: "agent",
872
+ command: "+update-automation",
873
+ description: "Update an Agent automation task",
874
+ flags: [
875
+ {
876
+ name: "id",
877
+ type: "string",
878
+ required: true,
879
+ desc: "Automation task ID from +list-automations"
880
+ },
881
+ {
882
+ name: "name",
883
+ type: "string",
884
+ required: false,
885
+ desc: "New automation task name"
886
+ },
887
+ {
888
+ name: "message",
889
+ type: "string",
890
+ required: false,
891
+ desc: "New instruction sent to the Agent"
892
+ },
893
+ {
894
+ name: "enabled",
895
+ type: "boolean",
896
+ required: false,
897
+ desc: "true to enable, false to pause"
898
+ },
899
+ ...scheduleFlags
900
+ ],
901
+ risk: "write",
902
+ validate: validateUpdate,
903
+ dryRun: (ctx) => ({
904
+ method: "PATCH",
905
+ url: `${BASE_PATH5}/${encodeURIComponent(ctx.str("id"))}`,
906
+ body: buildUpdateBody(ctx)
907
+ }),
908
+ execute: async (ctx) => patchToMainApp(
909
+ `${BASE_PATH5}/${encodeURIComponent(ctx.str("id"))}`,
910
+ buildUpdateBody(ctx)
911
+ )
496
912
  };
497
913
 
498
914
  // src/commands/te-agent/index.ts
499
915
  var commands = [
916
+ // Agent 查询
917
+ listAgents,
500
918
  // Model management
501
919
  listModels,
502
920
  addModel,
@@ -515,7 +933,11 @@ var commands = [
515
933
  // Attachment library management
516
934
  listAttachments,
517
935
  addAttachment,
518
- delAttachment
936
+ delAttachment,
937
+ // Automate tasks
938
+ listAutomations,
939
+ createAutomation,
940
+ updateAutomation
519
941
  ];
520
942
  var te_agent_default = commands;
521
943
  export {