@thinkingai/ae-cli 6.0.61 → 6.0.62

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 (184) hide show
  1. package/README.md +2 -0
  2. package/README.zh.md +2 -0
  3. package/dist/{ai-monitor-NUKSJPLE.js → ai-monitor-X5GL44JT.js} +5 -5
  4. package/dist/ai-monitor.js +7 -7
  5. package/dist/{auth-MVAEBGBP.js → auth-SPQ46XQ3.js} +3 -3
  6. package/dist/{automation-6L6IAYRK.js → automation-7XC3VBZI.js} +85 -9
  7. package/dist/{capability-74N7AN5X.js → capability-JZP4KXZC.js} +3 -3
  8. package/dist/{chunk-SVNED423.js → chunk-2VKMHNUU.js} +4 -4
  9. package/dist/{chunk-JZY6WWAP.js → chunk-6HOM2FOJ.js} +10 -1
  10. package/dist/{chunk-COOMXFUG.js → chunk-AAN6KBUK.js} +2 -2
  11. package/dist/{chunk-H35VDOAE.js → chunk-E457FREE.js} +2 -2
  12. package/dist/{chunk-VLOGOM7N.js → chunk-ETQXIZFP.js} +2 -1
  13. package/dist/{chunk-XZDKAR4N.js → chunk-F36ORPI6.js} +3 -28
  14. package/dist/{chunk-7WBCSJL6.js → chunk-F7TCQPQX.js} +1 -1
  15. package/dist/{chunk-HRFYYEXR.js → chunk-FGGEF7MI.js} +2 -2
  16. package/dist/chunk-N2MAYIRU.js +32 -0
  17. package/dist/{chunk-RB26WNLM.js → chunk-PRCHMOWT.js} +1 -1
  18. package/dist/{chunk-LPKIMGIU.js → chunk-RYY5NJK3.js} +2 -2
  19. package/dist/{chunk-OTZ4JQDU.js → chunk-VR2D54AA.js} +1 -1
  20. package/dist/{chunk-THTROEGD.js → chunk-YIG3L4RC.js} +1 -1
  21. package/dist/{chunk-XPARQSYS.js → chunk-YJYC5PLL.js} +2 -3
  22. package/dist/{chunk-HIMOBNEY.js → chunk-ZVUXAHEV.js} +1 -1
  23. package/dist/{compat-check-W4XC27RG.js → compat-check-JD5D77ET.js} +1 -1
  24. package/dist/{config-264GB6C7.js → config-IIMRATTP.js} +3 -3
  25. package/dist/{context-SOQDFZIB.js → context-BXHIPIIX.js} +1 -1
  26. package/dist/{data-integration-UNJ7EPW2.js → data-integration-VRJQ3HVK.js} +2 -1
  27. package/dist/index.js +33 -31
  28. package/dist/{memory-ZLTTULZK.js → memory-B44LY27L.js} +3 -3
  29. package/dist/{metadata-EN2IWCDI.js → metadata-ZVPG2MIA.js} +5 -5
  30. package/dist/{model-NAKQWK4W.js → model-ANZBYVST.js} +1 -1
  31. package/dist/{personal-semantic-preference-UGN67KTN.js → personal-semantic-preference-YNCV4QG3.js} +4 -4
  32. package/dist/{project-semantic-5OP3YPZD.js → project-semantic-E7ZAQL5S.js} +4 -4
  33. package/dist/{sync-LDJQZRQH.js → sync-Y4OZRQAY.js} +3 -3
  34. package/dist/{te-agent-WNNAD4AJ.js → te-agent-RKAUTYJZ.js} +4 -4
  35. package/dist/{te-analysis-KIMH6AGU.js → te-analysis-7N5VC4JB.js} +5 -5
  36. package/dist/{te-community-P7NNBVCS.js → te-community-SIA2UHTS.js} +4 -4
  37. package/dist/{te-dataops-ZRKSG4R7.js → te-dataops-5MJQCODU.js} +2 -2
  38. package/dist/{te-engage-PVBVNRSU.js → te-engage-ZTLOMKO3.js} +68 -16
  39. package/dist/{te-kb-W7PRC7QN.js → te-kb-LDL3MF2Y.js} +44 -13
  40. package/dist/{te-system-F4ZU2HRQ.js → te-system-473I5O53.js} +1 -1
  41. package/dist/{te-team-5ONMRGKF.js → te-team-JOWHCMZA.js} +87 -6
  42. package/dist/{things-PFENSIF4.js → things-DOQ2L3O2.js} +4 -4
  43. package/dist/{update-EUZ4GNND.js → update-KUS6TCPB.js} +2 -2
  44. package/dist/{workspace-Z7L33OBQ.js → workspace-MJFPIV7C.js} +3 -3
  45. package/package.json +3 -3
  46. package/skills/ae-automation/SKILL.md +6 -2
  47. package/skills/ae-automation/references/cli.md +9 -3
  48. package/skills/ae-engage/SKILL.md +6 -1
  49. package/skills/ae-engage/references/common-metric.md +47 -1
  50. package/skills/ae-engage/references/flow-metric-update.md +1 -1
  51. package/skills/ae-engage/references/task-metric-update.md +1 -1
  52. package/skills/ae-kb/SKILL.md +8 -6
  53. package/skills/ae-kb/references/query-workflow.md +5 -1
  54. package/skills/ae-team/SKILL.md +7 -3
  55. package/skills/ae-team/references/copy-to-personal.md +7 -0
  56. package/skills/ae-team/references/promote.md +7 -0
  57. package/skills/ae-team/references/update.md +3 -3
  58. package/skills/ae-tracking-matrix/SKILL.md +0 -170
  59. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  60. package/skills/ae-tracking-matrix/i18n.yaml +0 -12
  61. package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
  62. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
  63. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
  64. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
  65. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
  66. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
  67. package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
  68. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
  69. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
  70. package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
  71. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
  72. package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
  73. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
  74. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
  75. package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
  76. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
  77. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
  78. package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
  79. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
  80. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
  81. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
  82. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
  83. package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
  84. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
  85. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
  86. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
  87. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
  88. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
  89. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
  90. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
  91. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
  92. package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
  93. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
  94. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
  95. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
  96. package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
  97. package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
  98. package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
  99. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
  100. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
  101. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
  102. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
  103. package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
  104. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
  105. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
  106. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
  107. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
  108. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
  109. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
  110. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
  111. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
  112. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
  113. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
  114. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
  115. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
  116. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
  117. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
  118. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
  119. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
  120. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
  121. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
  122. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
  123. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
  124. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
  125. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
  126. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
  127. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
  128. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
  129. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
  130. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
  131. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
  132. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
  133. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
  134. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
  135. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
  136. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
  137. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
  138. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
  139. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
  140. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
  141. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
  142. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
  143. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
  144. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
  145. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
  146. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
  147. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
  148. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
  149. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
  150. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
  151. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
  152. package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
  153. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
  154. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
  155. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
  156. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
  157. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
  158. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
  159. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
  160. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
  161. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
  162. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
  163. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
  164. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
  165. package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
  166. package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
  167. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
  168. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
  169. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
  170. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
  171. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
  172. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
  173. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
  174. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
  175. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
  176. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
  177. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
  178. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
  179. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
  180. package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
  181. package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
  182. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
  183. package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
  184. package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
package/README.md CHANGED
@@ -303,6 +303,8 @@ ae-cli kb +ask-status --execution-id <id>
303
303
 
304
304
  Name-based management commands accept optional `--scope personal|company`; omit it to keep the legacy personal-to-company lookup. For Schema and Compile, prefer the model record `id` from `ae-cli agent +list-models`; historical `modelId` and `modelId::scope` remain compatible, while `displayName` is not a stable reference.
305
305
 
306
+ With a supporting Host, use `kb +schema --content-language ko` to select the content language. Add `--rewrite-language` to change the language while retaining the existing guidelines. Use `kb +compile --content-language ko` to check the working language before compiling.
307
+
306
308
  `kb +import` accepts a compiled Markdown ZIP up to 50 MB with root `index.md` and `wiki/**/*.md` pages. It returns `{requestId, status: "queued"}` immediately; use `ae-cli kb +import-status --request-id <requestId>` to read `queued`, `running`, `succeeded`, or `failed`. A succeeded personal read-only snapshot supports list, Index/Wiki, grep/read, Ask, and delete operations; source, Schema, usage, compile, member/settings, ownership transfer, and company publication are unavailable.
307
309
 
308
310
  External Agents can use deterministic retrieval without a server-side LLM:
package/README.zh.md CHANGED
@@ -307,6 +307,8 @@ ae-cli kb +ask-status --execution-id <id>
307
307
 
308
308
  按名称管理知识库的命令都支持可选 `--scope personal|company`;省略时保留 personal 到 company 的旧查找顺序。Schema 与 Compile 优先使用 `ae-cli agent +list-models` 返回的模型记录 `id`;历史 `modelId` 和 `modelId::scope` 仍兼容,`displayName` 不是稳定引用。
309
309
 
310
+ 配套 Host 支持后,可用 `kb +schema --content-language ko` 指定知识库内容语言。添加 `--rewrite-language` 可在保留现有规则的基础上改写语言。用 `kb +compile --content-language ko` 可在编译前核对工作准则的语言。
311
+
310
312
  `kb +import` 接受最大 50 MB 的编译后 Markdown ZIP,根目录必须包含 `index.md`,页面放在 `wiki/**/*.md`。命令立即返回 `{requestId, status: "queued"}`;通过 `ae-cli kb +import-status --request-id <requestId>` 查询 `queued`、`running`、`succeeded` 或 `failed`。导入成功后可执行列表、Index/Wiki、grep/read、Ask 和删除;个人只读快照不支持来源、Schema、用量、编译、成员/设置、所有权转移和公司发布。
311
313
 
312
314
  外部 Agent 可以使用不依赖服务端 LLM 的确定性检索:
@@ -9,13 +9,13 @@ import {
9
9
  traceCount,
10
10
  traceGet,
11
11
  traceList
12
- } from "./chunk-HRFYYEXR.js";
13
- import "./chunk-H35VDOAE.js";
12
+ } from "./chunk-FGGEF7MI.js";
13
+ import "./chunk-E457FREE.js";
14
14
  import "./chunk-AWW2T2WL.js";
15
- import "./chunk-OTZ4JQDU.js";
16
- import "./chunk-JZY6WWAP.js";
15
+ import "./chunk-VR2D54AA.js";
16
+ import "./chunk-6HOM2FOJ.js";
17
17
  import "./chunk-NNK3JBH4.js";
18
- import "./chunk-XPARQSYS.js";
18
+ import "./chunk-YJYC5PLL.js";
19
19
  import "./chunk-PUSFEC6B.js";
20
20
  import "./chunk-PLNS5J33.js";
21
21
  import "./chunk-AMURHMS3.js";
@@ -3,19 +3,19 @@ import {
3
3
  configureBusinessCommands,
4
4
  parseProgram,
5
5
  runCommand
6
- } from "./chunk-SVNED423.js";
6
+ } from "./chunk-2VKMHNUU.js";
7
7
  import "./chunk-EFGUBGA6.js";
8
- import "./chunk-VLOGOM7N.js";
8
+ import "./chunk-ETQXIZFP.js";
9
9
  import {
10
10
  ai_monitor_default
11
- } from "./chunk-HRFYYEXR.js";
11
+ } from "./chunk-FGGEF7MI.js";
12
12
  import "./chunk-LFJ7N36I.js";
13
- import "./chunk-H35VDOAE.js";
13
+ import "./chunk-E457FREE.js";
14
14
  import "./chunk-AWW2T2WL.js";
15
- import "./chunk-OTZ4JQDU.js";
16
- import "./chunk-JZY6WWAP.js";
15
+ import "./chunk-VR2D54AA.js";
16
+ import "./chunk-6HOM2FOJ.js";
17
17
  import "./chunk-NNK3JBH4.js";
18
- import "./chunk-XPARQSYS.js";
18
+ import "./chunk-YJYC5PLL.js";
19
19
  import "./chunk-PUSFEC6B.js";
20
20
  import "./chunk-PLNS5J33.js";
21
21
  import "./chunk-AMURHMS3.js";
@@ -3,7 +3,7 @@ import {
3
3
  environmentRefreshOutput,
4
4
  invalidateBusinessSkillSynchronization,
5
5
  refreshEnvironmentAfterLogin
6
- } from "./chunk-RB26WNLM.js";
6
+ } from "./chunk-PRCHMOWT.js";
7
7
  import {
8
8
  MultiselectCancelled,
9
9
  promptSingleSelect
@@ -18,10 +18,10 @@ import {
18
18
  import {
19
19
  printError,
20
20
  printOutput
21
- } from "./chunk-OTZ4JQDU.js";
21
+ } from "./chunk-VR2D54AA.js";
22
22
  import {
23
23
  runHostCompatCheck
24
- } from "./chunk-XPARQSYS.js";
24
+ } from "./chunk-YJYC5PLL.js";
25
25
  import {
26
26
  getLocalCliPackageInfo
27
27
  } from "./chunk-PUSFEC6B.js";
@@ -1,21 +1,28 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveWorkspaceTarget
4
- } from "./chunk-COOMXFUG.js";
4
+ } from "./chunk-AAN6KBUK.js";
5
5
  import {
6
6
  currentAgentSpaceId
7
7
  } from "./chunk-RK6GLDGI.js";
8
- import "./chunk-HIMOBNEY.js";
8
+ import "./chunk-ZVUXAHEV.js";
9
+ import {
10
+ detectCliLocale
11
+ } from "./chunk-N2MAYIRU.js";
9
12
  import {
10
13
  TeAgentApiError,
11
14
  deleteFromMainApp,
12
15
  getFromMainApp,
13
16
  patchToMainApp,
14
17
  postToMainApp
15
- } from "./chunk-VLOGOM7N.js";
18
+ } from "./chunk-ETQXIZFP.js";
16
19
  import "./chunk-PLNS5J33.js";
17
20
  import "./chunk-AMURHMS3.js";
18
- import "./chunk-R2SVAO4G.js";
21
+ import {
22
+ CliApiError,
23
+ CliValidationError,
24
+ PermissionError
25
+ } from "./chunk-R2SVAO4G.js";
19
26
 
20
27
  // src/commands/automation/index.ts
21
28
  import { randomUUID } from "crypto";
@@ -84,6 +91,10 @@ var configFlags = [
84
91
  "json"
85
92
  ),
86
93
  flag("model", "Agent model configuration ID; null clears the override"),
94
+ flag(
95
+ "effort",
96
+ "Agent reasoning depth: adaptive (default on create), low, medium, high, max. Adaptive clears the override; Team ignores this flag."
97
+ ),
87
98
  flag("reuse-conversation", "Agent: true | false", "json"),
88
99
  {
89
100
  ...flag("scope", "Team data scope JSON; null clears it", "json"),
@@ -222,6 +233,15 @@ function configuration(ctx, create) {
222
233
  }
223
234
  if (create && (ctx.str("triggerType") || "scheduled") === "scheduled" && !kind && !cron)
224
235
  throw new Error("Scheduled automation requires a schedule");
236
+ const effort = ctx.str("effort");
237
+ const hasEffort = ctx.has?.("effort") ?? Boolean(effort);
238
+ if (hasEffort && targetType === "agent") {
239
+ if (!["adaptive", "low", "medium", "high", "max"].includes(effort))
240
+ throw new CliValidationError(
241
+ "--effort must be adaptive | low | medium | high | max"
242
+ );
243
+ result.effort = effort === "adaptive" ? null : effort;
244
+ }
225
245
  const agentNames = ["model", "reuseConversation"];
226
246
  const teamNames = ["scope", "saveToKnowledgeBaseId"];
227
247
  const notificationNames = [
@@ -259,8 +279,12 @@ function configuration(ctx, create) {
259
279
  throw new Error("--scope must be an object or null");
260
280
  result[name2 === "scope" ? "scopeJson" : name2] = name2 === "scope" ? value === null ? null : JSON.stringify(value) : value === "null" ? null : value;
261
281
  }
262
- if (!create && !Object.keys(result).length)
263
- throw new Error("No fields to update");
282
+ if (!create && !Object.keys(result).length) {
283
+ const onlyTeamEffort = targetType === "team" && hasEffort && !configFlags.some(
284
+ ({ name: name2 }) => name2 !== "target-type" && name2 !== "effort" && ctx.has?.(name2)
285
+ );
286
+ if (!onlyTeamEffort) throw new Error("No fields to update");
287
+ }
264
288
  if (create) result.triggerImmediately = ctx.bool("triggerImmediately");
265
289
  return result;
266
290
  }
@@ -291,7 +315,8 @@ async function request(ctx, method, path, body) {
291
315
  path,
292
316
  body,
293
317
  ctx.hostOverride ? ctx.hostOverride() : ctx.host(),
294
- "cli-token"
318
+ "cli-token",
319
+ { "Accept-Language": detectCliLocale() }
295
320
  );
296
321
  if (method === "PATCH")
297
322
  return patchToMainApp(
@@ -333,6 +358,36 @@ async function waitForRun(ctx, id, runId) {
333
358
  );
334
359
  } while (true);
335
360
  }
361
+ function isUnchangedTeamUpdate(action, body) {
362
+ return action.command === "update" && body !== void 0 && Object.keys(body).length === 0;
363
+ }
364
+ function ignoredEffortReceipt(ctx) {
365
+ return ctx.str("targetType") === "team" && (ctx.has?.("effort") ?? Boolean(ctx.str("effort"))) ? { ignoredFields: ["effort"] } : {};
366
+ }
367
+ async function checkUnchangedTeamUpdate(ctx, path) {
368
+ const detail = await request(ctx, "GET", path);
369
+ const update = detail?.actions?.update;
370
+ if (detail?.targetType !== "team" || typeof update?.allowed !== "boolean")
371
+ throw new CliApiError("Unable to verify Team update permission.");
372
+ if (!update.allowed) {
373
+ const reason = update.reason;
374
+ if (reason === "AUTOMATION_FORBIDDEN" || reason === "AGENT_SPACE_PERMISSION_DENIED")
375
+ throw new PermissionError(
376
+ "No permission to update this Team automation.",
377
+ reason
378
+ );
379
+ throw new CliApiError("This Team automation cannot be updated.", {
380
+ code: reason
381
+ });
382
+ }
383
+ return {
384
+ id: detail.id,
385
+ agentSpaceId: detail.agentSpaceId,
386
+ targetType: "team",
387
+ unchanged: true,
388
+ ignoredFields: ["effort"]
389
+ };
390
+ }
336
391
  var actions = [
337
392
  {
338
393
  command: "list",
@@ -453,19 +508,38 @@ var automationCommands = actions.map((a) => ({
453
508
  ...a.wait ? { commandId } : {}
454
509
  };
455
510
  const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
511
+ if (isUnchangedTeamUpdate(a, body)) {
512
+ const { id, ...result } = await checkUnchangedTeamUpdate(ctx, path);
513
+ return {
514
+ request: redactedPreview("GET", path),
515
+ validation: {
516
+ dryRun: true,
517
+ valid: true,
518
+ operation: "update",
519
+ automationId: id,
520
+ ...result
521
+ }
522
+ };
523
+ }
456
524
  return {
457
525
  request: redactedPreview(a.method, path, requestBody),
458
- validation: await request(ctx, a.method, withDryRun(path), requestBody)
526
+ validation: {
527
+ ...await request(ctx, a.method, withDryRun(path), requestBody),
528
+ ...ignoredEffortReceipt(ctx)
529
+ }
459
530
  };
460
531
  },
461
532
  execute: async (ctx) => {
462
533
  const body = a.body?.(ctx), commandId = ctx.str("commandId") || randomUUID();
463
534
  let output;
464
535
  try {
536
+ const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
537
+ if (isUnchangedTeamUpdate(a, body))
538
+ return await checkUnchangedTeamUpdate(ctx, path);
465
539
  output = await request(
466
540
  ctx,
467
541
  a.method,
468
- base + a.suffix(ctx) + await query(ctx, a.list, a.typed),
542
+ path,
469
543
  body && { ...body, ...a.wait ? { commandId } : {} }
470
544
  );
471
545
  } catch (error) {
@@ -484,6 +558,8 @@ var automationCommands = actions.map((a) => ({
484
558
  );
485
559
  throw error;
486
560
  }
561
+ if (a.command === "update" || a.command === "create")
562
+ output = { ...output, ...ignoredEffortReceipt(ctx) };
487
563
  if (!a.wait) return output;
488
564
  const runId = a.command === "create" ? output.execution?.runId : output.runId;
489
565
  const id = a.command === "create" ? output.automation.id : ctx.str("id");
@@ -17,7 +17,7 @@ import {
17
17
  printError,
18
18
  printOutput,
19
19
  withOutputMetadata
20
- } from "./chunk-OTZ4JQDU.js";
20
+ } from "./chunk-VR2D54AA.js";
21
21
  import {
22
22
  CapabilityGatewayError,
23
23
  dryRunCapabilityWithEnvelope,
@@ -26,14 +26,14 @@ import {
26
26
  inspectCapabilityWithEnvelope,
27
27
  listCapabilitiesWithEnvelope,
28
28
  validateCapabilityWithEnvelope
29
- } from "./chunk-JZY6WWAP.js";
29
+ } from "./chunk-6HOM2FOJ.js";
30
30
  import "./chunk-NNK3JBH4.js";
31
31
  import {
32
32
  assertBusinessEnabled,
33
33
  businessForCapability,
34
34
  readBusinessConfigForExecution,
35
35
  readCurrentBusinessConfig
36
- } from "./chunk-XPARQSYS.js";
36
+ } from "./chunk-YJYC5PLL.js";
37
37
  import "./chunk-PUSFEC6B.js";
38
38
  import {
39
39
  CredentialStoreUnreadableError,
@@ -6,24 +6,24 @@ import {
6
6
  import {
7
7
  TeAgentApiError,
8
8
  TeAgentCredentialsError
9
- } from "./chunk-VLOGOM7N.js";
9
+ } from "./chunk-ETQXIZFP.js";
10
10
  import {
11
11
  EvalApiError
12
12
  } from "./chunk-LFJ7N36I.js";
13
13
  import {
14
14
  printError,
15
15
  printOutput
16
- } from "./chunk-OTZ4JQDU.js";
16
+ } from "./chunk-VR2D54AA.js";
17
17
  import {
18
18
  CapabilityGatewayError
19
- } from "./chunk-JZY6WWAP.js";
19
+ } from "./chunk-6HOM2FOJ.js";
20
20
  import {
21
21
  BusinessDisabledError,
22
22
  assertBusinessEnabled,
23
23
  businessForCommand,
24
24
  formatCapabilityMissCompatHint,
25
25
  readCurrentBusinessConfig
26
- } from "./chunk-XPARQSYS.js";
26
+ } from "./chunk-YJYC5PLL.js";
27
27
  import {
28
28
  CredentialStoreUnreadableError,
29
29
  SecureStoreAuthError
@@ -58,6 +58,13 @@ function readCliAgentContext() {
58
58
  ...readFileContext(),
59
59
  ...scopedContext.getStore()
60
60
  };
61
+ const argument = readContextArgument(process.argv.slice(2));
62
+ const runtime = argument ? parseContextArgument(argument)?.runtime_agent_model : void 0;
63
+ if (isPlainRecord(runtime) && runtime.version === 1) {
64
+ delete context.agent_model;
65
+ const model = cleanValue(runtime.model, 128);
66
+ if (typeof runtime.model === "string" && model) context.agent_model = model;
67
+ }
61
68
  return withCaptureStatus(context);
62
69
  }
63
70
  function cliAgentContextHeaders(context = readCliAgentContext()) {
@@ -169,6 +176,7 @@ function readArgumentContext() {
169
176
  if (!parsed) return {};
170
177
  const context = contextFromRecord(parsed);
171
178
  if (!hasContext(context)) return {};
179
+ if (isPlainRecord(parsed.runtime_agent_model) && parsed.runtime_agent_model.version === 1 && Object.keys(context).every((key) => key === "agent_model")) return context;
172
180
  return {
173
181
  intent_source: "agent_argument",
174
182
  ...context
@@ -445,7 +453,8 @@ async function requestMultipartOnce(url, token, form) {
445
453
  headers: {
446
454
  "cli-token": token,
447
455
  "Accept": "application/json",
448
- ...internalCallSourceHeaders()
456
+ ...internalCallSourceHeaders(),
457
+ ...cliAgentContextHeaders()
449
458
  },
450
459
  body: form
451
460
  });
@@ -9,11 +9,11 @@ import {
9
9
  postAgentApi,
10
10
  putAgentApi,
11
11
  uploadAgentApi
12
- } from "./chunk-HIMOBNEY.js";
12
+ } from "./chunk-ZVUXAHEV.js";
13
13
  import {
14
14
  TeAgentApiError,
15
15
  createTeAgentApiError
16
- } from "./chunk-VLOGOM7N.js";
16
+ } from "./chunk-ETQXIZFP.js";
17
17
  import {
18
18
  CliValidationError,
19
19
  isApiErrorType
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-AWW2T2WL.js";
5
5
  import {
6
6
  withOutputMetadata
7
- } from "./chunk-OTZ4JQDU.js";
7
+ } from "./chunk-VR2D54AA.js";
8
8
  import {
9
9
  dryRunCapabilityWithEnvelope,
10
10
  executeCapabilityWithEnvelope,
11
11
  validateCapabilityWithEnvelope
12
- } from "./chunk-JZY6WWAP.js";
12
+ } from "./chunk-6HOM2FOJ.js";
13
13
  import {
14
14
  CliValidationError
15
15
  } from "./chunk-R2SVAO4G.js";
@@ -313,13 +313,14 @@ async function parseResponse(response, defaultErrorPrefix) {
313
313
  }
314
314
  return parsed;
315
315
  }
316
- async function postToMainApp(path2, body, hostOverride, authMode = "auto") {
316
+ async function postToMainApp(path2, body, hostOverride, authMode = "auto", headers) {
317
317
  const rawBody = JSON.stringify(body);
318
318
  const response = await fetchSigned({
319
319
  method: "POST",
320
320
  path: path2,
321
321
  body: rawBody,
322
322
  hostOverride,
323
+ headers,
323
324
  authMode
324
325
  });
325
326
  return parseResponse(response, "Main app returned");
@@ -10,6 +10,9 @@ import {
10
10
  require_inherits,
11
11
  require_node
12
12
  } from "./chunk-HQED4YB4.js";
13
+ import {
14
+ detectCliLocale
15
+ } from "./chunk-N2MAYIRU.js";
13
16
  import {
14
17
  __commonJS,
15
18
  __require,
@@ -23710,33 +23713,6 @@ var require_excel = __commonJS({
23710
23713
  // src/tracking/xlsx/write.ts
23711
23714
  var import_exceljs = __toESM(require_excel(), 1);
23712
23715
 
23713
- // src/tracking/i18n/locale.ts
23714
- var VALID_LOCALES = /* @__PURE__ */ new Set(["zh", "en", "ja", "ko"]);
23715
- function normalize(raw) {
23716
- const lower = raw.trim().toLowerCase();
23717
- if (lower.startsWith("zh") || lower.startsWith("cn")) return "zh";
23718
- if (lower.startsWith("ja") || lower.startsWith("jp")) return "ja";
23719
- if (lower.startsWith("ko") || lower.startsWith("kr")) return "ko";
23720
- if (lower.startsWith("en")) return "en";
23721
- if (VALID_LOCALES.has(lower)) return lower;
23722
- return "en";
23723
- }
23724
- var _cliLocale;
23725
- function detectCliLocale() {
23726
- if (_cliLocale) return _cliLocale;
23727
- if (process.env.AE_LANG) {
23728
- _cliLocale = normalize(process.env.AE_LANG);
23729
- return _cliLocale;
23730
- }
23731
- const sys = (process.env.LANG || process.env.LC_ALL || process.env.LANGUAGE || "").toLowerCase();
23732
- if (sys) {
23733
- _cliLocale = normalize(sys);
23734
- return _cliLocale;
23735
- }
23736
- _cliLocale = "en";
23737
- return _cliLocale;
23738
- }
23739
-
23740
23716
  // src/tracking/i18n/resources/xlsx/sheets.ts
23741
23717
  var SHEET_NAMES = {
23742
23718
  event_data: {
@@ -51749,7 +51725,6 @@ export {
51749
51725
  require_styles_xform,
51750
51726
  require_worksheet_reader,
51751
51727
  require_excel,
51752
- detectCliLocale,
51753
51728
  allSheetNames,
51754
51729
  allHeaderNames,
51755
51730
  displayToType,
@@ -1,7 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  CapabilityGatewayError
4
- } from "./chunk-JZY6WWAP.js";
4
+ } from "./chunk-6HOM2FOJ.js";
5
5
  import {
6
6
  SecureStoreAuthError,
7
7
  getCliToken,
@@ -1,13 +1,13 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  createCapabilityCommand
4
- } from "./chunk-H35VDOAE.js";
4
+ } from "./chunk-E457FREE.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute
7
7
  } from "./chunk-AWW2T2WL.js";
8
8
  import {
9
9
  executeCapabilityWithEnvelope
10
- } from "./chunk-JZY6WWAP.js";
10
+ } from "./chunk-6HOM2FOJ.js";
11
11
  import {
12
12
  CliApiError,
13
13
  CliValidationError
@@ -0,0 +1,32 @@
1
+ import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+
3
+ // src/tracking/i18n/locale.ts
4
+ var VALID_LOCALES = /* @__PURE__ */ new Set(["zh", "en", "ja", "ko"]);
5
+ function normalize(raw) {
6
+ const lower = raw.trim().toLowerCase();
7
+ if (lower.startsWith("zh") || lower.startsWith("cn")) return "zh";
8
+ if (lower.startsWith("ja") || lower.startsWith("jp")) return "ja";
9
+ if (lower.startsWith("ko") || lower.startsWith("kr")) return "ko";
10
+ if (lower.startsWith("en")) return "en";
11
+ if (VALID_LOCALES.has(lower)) return lower;
12
+ return "en";
13
+ }
14
+ var _cliLocale;
15
+ function detectCliLocale() {
16
+ if (_cliLocale) return _cliLocale;
17
+ if (process.env.AE_LANG) {
18
+ _cliLocale = normalize(process.env.AE_LANG);
19
+ return _cliLocale;
20
+ }
21
+ const sys = (process.env.LANG || process.env.LC_ALL || process.env.LANGUAGE || "").toLowerCase();
22
+ if (sys) {
23
+ _cliLocale = normalize(sys);
24
+ return _cliLocale;
25
+ }
26
+ _cliLocale = "en";
27
+ return _cliLocale;
28
+ }
29
+
30
+ export {
31
+ detectCliLocale
32
+ };
@@ -6,7 +6,7 @@ import {
6
6
  rememberBusinessConfig,
7
7
  reserveBusinessSkillContext,
8
8
  syncBusinessSkills
9
- } from "./chunk-XPARQSYS.js";
9
+ } from "./chunk-YJYC5PLL.js";
10
10
  import {
11
11
  getLocalCliPackageInfo
12
12
  } from "./chunk-PUSFEC6B.js";
@@ -6,12 +6,12 @@ import {
6
6
  readOutputMetadata,
7
7
  unwrapOutputData,
8
8
  withOutputMetadata
9
- } from "./chunk-OTZ4JQDU.js";
9
+ } from "./chunk-VR2D54AA.js";
10
10
  import {
11
11
  CapabilityGatewayError,
12
12
  fetchCapabilityGateway,
13
13
  requestCapabilityGateway
14
- } from "./chunk-JZY6WWAP.js";
14
+ } from "./chunk-6HOM2FOJ.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-R2SVAO4G.js";
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  getPendingHostCompatNotice,
4
4
  getPendingUpdateNotice
5
- } from "./chunk-XPARQSYS.js";
5
+ } from "./chunk-YJYC5PLL.js";
6
6
  import {
7
7
  logger,
8
8
  redactExternalCliToken
@@ -3,7 +3,7 @@ import {
3
3
  getAgentApi,
4
4
  patchAgentApi,
5
5
  postAgentApi
6
- } from "./chunk-HIMOBNEY.js";
6
+ } from "./chunk-ZVUXAHEV.js";
7
7
 
8
8
  // src/commands/memory/cli-client.ts
9
9
  var DEFAULT_TE_CLAUDE_BASE_PATH = "/agent";
@@ -414,8 +414,7 @@ var skill_businesses_default = {
414
414
  "ae-generate-tracking-code",
415
415
  "ae-generate-tracking-plan",
416
416
  "ae-metadata",
417
- "ae-migrate-tracking-code",
418
- "ae-tracking-matrix"
417
+ "ae-migrate-tracking-code"
419
418
  ],
420
419
  dataops: [
421
420
  "ae-dataops"
@@ -1586,7 +1585,7 @@ async function readBusinessConfigForExecution(hostOverride, synchronizeSkills =
1586
1585
  const token = peekCliToken(host);
1587
1586
  if (!token) return {};
1588
1587
  return await resolveBusinessConfig(host, token, async () => {
1589
- const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-W4XC27RG.js");
1588
+ const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-JD5D77ET.js");
1590
1589
  return fetchCliConfig2(host, token);
1591
1590
  }, Date.now(), synchronizeSkills);
1592
1591
  } catch {
@@ -10,7 +10,7 @@ import {
10
10
  postToMainApp,
11
11
  putToMainApp,
12
12
  uploadToMainApp
13
- } from "./chunk-VLOGOM7N.js";
13
+ } from "./chunk-ETQXIZFP.js";
14
14
  import {
15
15
  clearCliTokenCache
16
16
  } from "./chunk-PLNS5J33.js";
@@ -12,7 +12,7 @@ import {
12
12
  shouldNotifyCompat,
13
13
  shouldSkipAutoSync,
14
14
  shouldSkipCompatCheck
15
- } from "./chunk-XPARQSYS.js";
15
+ } from "./chunk-YJYC5PLL.js";
16
16
  import "./chunk-PUSFEC6B.js";
17
17
  import "./chunk-PLNS5J33.js";
18
18
  import "./chunk-AMURHMS3.js";
@@ -4,7 +4,7 @@ import {
4
4
  invalidateBusinessSkillSynchronization,
5
5
  refreshEnvironmentAfterLogin,
6
6
  refreshEnvironmentConfig
7
- } from "./chunk-RB26WNLM.js";
7
+ } from "./chunk-PRCHMOWT.js";
8
8
  import {
9
9
  MultiselectCancelled,
10
10
  promptSingleSelect
@@ -16,12 +16,12 @@ import {
16
16
  import {
17
17
  printError,
18
18
  printOutput
19
- } from "./chunk-OTZ4JQDU.js";
19
+ } from "./chunk-VR2D54AA.js";
20
20
  import {
21
21
  fetchCliConfig,
22
22
  readCurrentBusinessConfig,
23
23
  resolveKbAutoDiscoveryFeature
24
- } from "./chunk-XPARQSYS.js";
24
+ } from "./chunk-YJYC5PLL.js";
25
25
  import "./chunk-PUSFEC6B.js";
26
26
  import {
27
27
  peekCliToken
@@ -2,7 +2,7 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  TeAgentApiError,
4
4
  getFromMainApp
5
- } from "./chunk-VLOGOM7N.js";
5
+ } from "./chunk-ETQXIZFP.js";
6
6
  import {
7
7
  internalCallSourceHeaders
8
8
  } from "./chunk-PLNS5J33.js";
@@ -8,12 +8,13 @@ import {
8
8
  utils,
9
9
  validateAndFix,
10
10
  validateDraft
11
- } from "./chunk-XZDKAR4N.js";
11
+ } from "./chunk-F36ORPI6.js";
12
12
  import "./chunk-UCMO4LKL.js";
13
13
  import {
14
14
  require_archiver
15
15
  } from "./chunk-2I5SZ5DS.js";
16
16
  import "./chunk-HQED4YB4.js";
17
+ import "./chunk-N2MAYIRU.js";
17
18
  import {
18
19
  getConfigDir
19
20
  } from "./chunk-AMURHMS3.js";