@thinkingai/ae-cli 6.1.38 → 6.1.40

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 (191) hide show
  1. package/README.md +2 -0
  2. package/README.zh.md +2 -0
  3. package/dist/{ai-monitor-UL2O7J4X.js → ai-monitor-DST4NDOK.js} +5 -5
  4. package/dist/ai-monitor.js +7 -7
  5. package/dist/{auth-ERWVKQDG.js → auth-BD3NIY3T.js} +3 -3
  6. package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
  7. package/dist/{capability-HPP6E3ZX.js → capability-3NJOQHZQ.js} +3 -3
  8. package/dist/{chunk-DKOGWIYQ.js → chunk-24DCOJBJ.js} +2 -2
  9. package/dist/{chunk-SHB7A2JE.js → chunk-2RORKIF6.js} +2 -2
  10. package/dist/{chunk-HBI7IQH3.js → chunk-6NJZSWUT.js} +3 -28
  11. package/dist/{chunk-QPUPWGZ3.js → chunk-DTODOQ6T.js} +1 -1
  12. package/dist/{chunk-PCQTBRPT.js → chunk-FRJUB66C.js} +1 -1
  13. package/dist/{chunk-ZLJZPPPV.js → chunk-IY5G42YY.js} +2 -2
  14. package/dist/{chunk-JRXSLFCA.js → chunk-KBJHBVO7.js} +1 -1
  15. package/dist/{chunk-CYZV5AXW.js → chunk-KE5WGBXS.js} +2 -1
  16. package/dist/chunk-N2MAYIRU.js +32 -0
  17. package/dist/{chunk-BWEQIKA3.js → chunk-RW6Z2NN3.js} +5 -5
  18. package/dist/{chunk-DULCIC67.js → chunk-SQEK6S4X.js} +2 -3
  19. package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
  20. package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
  21. package/dist/{chunk-NDX4VJO7.js → chunk-VXKKTUU2.js} +2 -2
  22. package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
  23. package/dist/{compat-check-WRPEFB5N.js → compat-check-7VBBE7KO.js} +1 -1
  24. package/dist/{config-IS33K45R.js → config-LFRZBPH5.js} +3 -3
  25. package/dist/{context-Y2A6QIS3.js → context-WJQGJD6F.js} +1 -1
  26. package/dist/{data-integration-EIF5QHYF.js → data-integration-KMJWYAKK.js} +2 -1
  27. package/dist/index.js +35 -33
  28. package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
  29. package/dist/{metadata-TMAXVLOL.js → metadata-AR64J76Z.js} +5 -5
  30. package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
  31. package/dist/{personal-semantic-preference-RMZEDRCJ.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
  32. package/dist/{project-semantic-UD3OAZ6K.js → project-semantic-DJLXAXLD.js} +4 -4
  33. package/dist/{sync-GVF3OI2U.js → sync-4TUIQ2PZ.js} +3 -3
  34. package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
  35. package/dist/{te-analysis-SJIE5OZY.js → te-analysis-NJHSEKGW.js} +8 -6
  36. package/dist/{te-community-VNHJDEID.js → te-community-JSUSZEYH.js} +4 -4
  37. package/dist/{te-dataops-AO4OQBQV.js → te-dataops-I264BUTI.js} +2 -2
  38. package/dist/{te-engage-EZJRFG3Q.js → te-engage-XNMQYO5N.js} +68 -16
  39. package/dist/{te-experiment-R2MNSAKV.js → te-experiment-5SCHMYVO.js} +4 -4
  40. package/dist/{te-kb-C44A4BHM.js → te-kb-QQ53TNRZ.js} +44 -13
  41. package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
  42. package/dist/{te-team-J52STTEZ.js → te-team-V6BBI52R.js} +87 -6
  43. package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
  44. package/dist/{update-GEKOZMHU.js → update-53ZUXWV5.js} +2 -2
  45. package/dist/{web-runtime-5M7PRY7R.js → web-runtime-HIXOSNJ6.js} +89 -9
  46. package/dist/{workspace-RZESYB6T.js → workspace-W5ZPVWJS.js} +3 -3
  47. package/package.json +3 -3
  48. package/skills/ae-automation/SKILL.md +6 -2
  49. package/skills/ae-automation/references/cli.md +9 -3
  50. package/skills/ae-engage/SKILL.md +6 -1
  51. package/skills/ae-engage/references/common-metric.md +47 -1
  52. package/skills/ae-engage/references/flow-metric-update.md +1 -1
  53. package/skills/ae-engage/references/task-metric-update.md +1 -1
  54. package/skills/ae-experiment/SKILL.md +1 -1
  55. package/skills/ae-experiment/references/save_experiment.md +1 -1
  56. package/skills/ae-kb/SKILL.md +8 -6
  57. package/skills/ae-kb/references/query-workflow.md +5 -1
  58. package/skills/ae-onboarding/SKILL.md +2 -2
  59. package/skills/ae-onboarding/references/demo-operations.md +3 -2
  60. package/skills/ae-onboarding/references/onboarding_experiment_launch.md +4 -2
  61. package/skills/ae-team/SKILL.md +7 -3
  62. package/skills/ae-team/references/copy-to-personal.md +7 -0
  63. package/skills/ae-team/references/promote.md +7 -0
  64. package/skills/ae-team/references/update.md +3 -3
  65. package/skills/ae-tracking-matrix/SKILL.md +0 -170
  66. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  67. package/skills/ae-tracking-matrix/i18n.yaml +0 -12
  68. package/skills/ae-tracking-matrix/references/ae-capabilities.md +0 -93
  69. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +0 -30
  70. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +0 -256
  71. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +0 -213
  72. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +0 -407
  73. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +0 -218
  74. package/skills/ae-tracking-matrix/references/categories/casual_music.md +0 -112
  75. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +0 -301
  76. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +0 -356
  77. package/skills/ae-tracking-matrix/references/categories/fishing.md +0 -775
  78. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +0 -89
  79. package/skills/ae-tracking-matrix/references/categories/idle_card.md +0 -27
  80. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +0 -415
  81. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +0 -133
  82. package/skills/ae-tracking-matrix/references/categories/merge.md +0 -639
  83. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +0 -406
  84. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +0 -230
  85. package/skills/ae-tracking-matrix/references/categories/music.md +0 -137
  86. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +0 -414
  87. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +0 -199
  88. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +0 -158
  89. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +0 -546
  90. package/skills/ae-tracking-matrix/references/categories/rpg.md +0 -195
  91. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +0 -115
  92. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +0 -151
  93. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +0 -260
  94. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +0 -232
  95. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +0 -359
  96. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +0 -365
  97. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +0 -211
  98. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +0 -132
  99. package/skills/ae-tracking-matrix/references/category-registry.md +0 -77
  100. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +0 -230
  101. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +0 -406
  102. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +0 -128
  103. package/skills/ae-tracking-matrix/references/eval-cases.md +0 -74
  104. package/skills/ae-tracking-matrix/references/naming-dict.md +0 -238
  105. package/skills/ae-tracking-matrix/references/optimization-checklist.md +0 -85
  106. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +0 -142
  107. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +0 -47
  108. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +0 -794
  109. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +0 -94
  110. package/skills/ae-tracking-matrix/references/scene-routing.md +0 -80
  111. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +0 -3787
  112. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +0 -827
  113. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +0 -655
  114. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +0 -953
  115. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +0 -1128
  116. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +0 -714
  117. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +0 -1268
  118. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +0 -776
  119. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +0 -182
  120. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +0 -2755
  121. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +0 -1182
  122. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +0 -1300
  123. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +0 -1369
  124. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +0 -1692
  125. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +0 -902
  126. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +0 -763
  127. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +0 -1107
  128. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +0 -1532
  129. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +0 -845
  130. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +0 -228
  131. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +0 -149
  132. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +0 -407
  133. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +0 -163
  134. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +0 -149
  135. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +0 -153
  136. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +0 -232
  137. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +0 -314
  138. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +0 -117
  139. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +0 -148
  140. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +0 -645
  141. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +0 -307
  142. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +0 -347
  143. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +0 -72
  144. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +0 -264
  145. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +0 -566
  146. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +0 -409
  147. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +0 -446
  148. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +0 -557
  149. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +0 -457
  150. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +0 -490
  151. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +0 -523
  152. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +0 -484
  153. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +0 -442
  154. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +0 -391
  155. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +0 -91
  156. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +0 -635
  157. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +0 -113
  158. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +0 -466
  159. package/skills/ae-tracking-matrix/references/standard-base/README.md +0 -22
  160. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +0 -174
  161. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +0 -20
  162. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +0 -7
  163. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +0 -14
  164. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +0 -370
  165. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +0 -47
  166. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +0 -37
  167. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +0 -27
  168. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +0 -23
  169. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +0 -14
  170. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +0 -46
  171. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +0 -13
  172. package/skills/ae-tracking-matrix/references/system-fields.md +0 -297
  173. package/skills/ae-tracking-matrix/references/te-field-translations.md +0 -1791
  174. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +0 -232
  175. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +0 -829
  176. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +0 -355
  177. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +0 -283
  178. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +0 -168
  179. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +0 -205
  180. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +0 -75
  181. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +0 -36
  182. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +0 -107
  183. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +0 -114
  184. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +0 -53
  185. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +0 -166
  186. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +0 -674
  187. package/skills/ae-tracking-matrix/scripts/plan_contract.py +0 -200
  188. package/skills/ae-tracking-matrix/scripts/plan_types.py +0 -60
  189. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +0 -169
  190. package/skills/ae-tracking-matrix/scripts/sync_plan.py +0 -296
  191. package/skills/ae-tracking-matrix/scripts/upload_plan.py +0 -340
package/README.md CHANGED
@@ -322,6 +322,8 @@ ae-cli kb +ask-status --execution-id <id>
322
322
 
323
323
  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.
324
324
 
325
+ 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.
326
+
325
327
  `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.
326
328
 
327
329
  External Agents can use deterministic retrieval without a server-side LLM:
package/README.zh.md CHANGED
@@ -322,6 +322,8 @@ ae-cli kb +ask-status --execution-id <id>
322
322
 
323
323
  按名称管理知识库的命令都支持可选 `--scope personal|company`;省略时保留 personal 到 company 的旧查找顺序。Schema 与 Compile 优先使用 `ae-cli agent +list-models` 返回的模型记录 `id`;历史 `modelId` 和 `modelId::scope` 仍兼容,`displayName` 不是稳定引用。
324
324
 
325
+ 配套 Host 支持后,可用 `kb +schema --content-language ko` 指定知识库内容语言。添加 `--rewrite-language` 可在保留现有规则的基础上改写语言。用 `kb +compile --content-language ko` 可在编译前核对工作准则的语言。
326
+
325
327
  `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、用量、编译、成员/设置、所有权转移和公司发布。
326
328
 
327
329
  外部 Agent 可以使用不依赖服务端 LLM 的确定性检索:
@@ -9,13 +9,13 @@ import {
9
9
  traceCount,
10
10
  traceGet,
11
11
  traceList
12
- } from "./chunk-NDX4VJO7.js";
13
- import "./chunk-ZLJZPPPV.js";
12
+ } from "./chunk-VXKKTUU2.js";
13
+ import "./chunk-IY5G42YY.js";
14
14
  import "./chunk-AWW2T2WL.js";
15
- import "./chunk-JRXSLFCA.js";
16
- import "./chunk-VPLRZSMY.js";
15
+ import "./chunk-KBJHBVO7.js";
16
+ import "./chunk-STHIGWWC.js";
17
17
  import "./chunk-6E6HCTP2.js";
18
- import "./chunk-DULCIC67.js";
18
+ import "./chunk-SQEK6S4X.js";
19
19
  import "./chunk-PUSFEC6B.js";
20
20
  import "./chunk-UWQXGF44.js";
21
21
  import "./chunk-IGU3R2JD.js";
@@ -1,21 +1,21 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  ai_monitor_default
4
- } from "./chunk-NDX4VJO7.js";
5
- import "./chunk-ZLJZPPPV.js";
4
+ } from "./chunk-VXKKTUU2.js";
5
+ import "./chunk-IY5G42YY.js";
6
6
  import "./chunk-AWW2T2WL.js";
7
7
  import {
8
8
  configureBusinessCommands,
9
9
  parseProgram,
10
10
  runCommand
11
- } from "./chunk-BWEQIKA3.js";
11
+ } from "./chunk-RW6Z2NN3.js";
12
12
  import "./chunk-GYODT7C4.js";
13
13
  import "./chunk-L7MT53VM.js";
14
- import "./chunk-JRXSLFCA.js";
15
- import "./chunk-CYZV5AXW.js";
16
- import "./chunk-VPLRZSMY.js";
14
+ import "./chunk-KBJHBVO7.js";
15
+ import "./chunk-KE5WGBXS.js";
16
+ import "./chunk-STHIGWWC.js";
17
17
  import "./chunk-6E6HCTP2.js";
18
- import "./chunk-DULCIC67.js";
18
+ import "./chunk-SQEK6S4X.js";
19
19
  import "./chunk-PUSFEC6B.js";
20
20
  import "./chunk-UWQXGF44.js";
21
21
  import "./chunk-IGU3R2JD.js";
@@ -3,7 +3,7 @@ import {
3
3
  environmentRefreshOutput,
4
4
  invalidateBusinessSkillSynchronization,
5
5
  refreshEnvironmentAfterLogin
6
- } from "./chunk-PCQTBRPT.js";
6
+ } from "./chunk-FRJUB66C.js";
7
7
  import {
8
8
  MultiselectCancelled,
9
9
  promptSingleSelect
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  printError,
16
16
  printOutput
17
- } from "./chunk-JRXSLFCA.js";
17
+ } from "./chunk-KBJHBVO7.js";
18
18
  import {
19
19
  DeviceFlowUnsupportedError,
20
20
  authorizeLoginDevice,
@@ -28,7 +28,7 @@ import {
28
28
  missingAeHostGuidance,
29
29
  missingAeHostHint,
30
30
  runHostCompatCheck
31
- } from "./chunk-DULCIC67.js";
31
+ } from "./chunk-SQEK6S4X.js";
32
32
  import {
33
33
  getLocalCliPackageInfo
34
34
  } from "./chunk-PUSFEC6B.js";
@@ -1,22 +1,29 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
2
  import {
3
3
  resolveWorkspaceTarget
4
- } from "./chunk-SHB7A2JE.js";
4
+ } from "./chunk-2RORKIF6.js";
5
5
  import {
6
6
  currentAgentSpaceId
7
7
  } from "./chunk-RK6GLDGI.js";
8
- import "./chunk-LXRALNNA.js";
8
+ import "./chunk-UK7HQ4IL.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-CYZV5AXW.js";
18
+ } from "./chunk-KE5WGBXS.js";
16
19
  import "./chunk-UWQXGF44.js";
17
20
  import "./chunk-IGU3R2JD.js";
18
21
  import "./chunk-MTK4ZE7W.js";
19
- import "./chunk-3ZQY7SLZ.js";
22
+ import {
23
+ CliApiError,
24
+ CliValidationError,
25
+ PermissionError
26
+ } from "./chunk-3ZQY7SLZ.js";
20
27
 
21
28
  // src/commands/automation/index.ts
22
29
  import { randomUUID } from "crypto";
@@ -85,6 +92,10 @@ var configFlags = [
85
92
  "json"
86
93
  ),
87
94
  flag("model", "Agent model configuration ID; null clears the override"),
95
+ flag(
96
+ "effort",
97
+ "Agent reasoning depth: adaptive (default on create), low, medium, high, max. Adaptive clears the override; Team ignores this flag."
98
+ ),
88
99
  flag("reuse-conversation", "Agent: true | false", "json"),
89
100
  {
90
101
  ...flag("scope", "Team data scope JSON; null clears it", "json"),
@@ -223,6 +234,15 @@ function configuration(ctx, create) {
223
234
  }
224
235
  if (create && (ctx.str("triggerType") || "scheduled") === "scheduled" && !kind && !cron)
225
236
  throw new Error("Scheduled automation requires a schedule");
237
+ const effort = ctx.str("effort");
238
+ const hasEffort = ctx.has?.("effort") ?? Boolean(effort);
239
+ if (hasEffort && targetType === "agent") {
240
+ if (!["adaptive", "low", "medium", "high", "max"].includes(effort))
241
+ throw new CliValidationError(
242
+ "--effort must be adaptive | low | medium | high | max"
243
+ );
244
+ result.effort = effort === "adaptive" ? null : effort;
245
+ }
226
246
  const agentNames = ["model", "reuseConversation"];
227
247
  const teamNames = ["scope", "saveToKnowledgeBaseId"];
228
248
  const notificationNames = [
@@ -260,8 +280,12 @@ function configuration(ctx, create) {
260
280
  throw new Error("--scope must be an object or null");
261
281
  result[name2 === "scope" ? "scopeJson" : name2] = name2 === "scope" ? value === null ? null : JSON.stringify(value) : value === "null" ? null : value;
262
282
  }
263
- if (!create && !Object.keys(result).length)
264
- throw new Error("No fields to update");
283
+ if (!create && !Object.keys(result).length) {
284
+ const onlyTeamEffort = targetType === "team" && hasEffort && !configFlags.some(
285
+ ({ name: name2 }) => name2 !== "target-type" && name2 !== "effort" && ctx.has?.(name2)
286
+ );
287
+ if (!onlyTeamEffort) throw new Error("No fields to update");
288
+ }
265
289
  if (create) result.triggerImmediately = ctx.bool("triggerImmediately");
266
290
  return result;
267
291
  }
@@ -292,7 +316,8 @@ async function request(ctx, method, path, body) {
292
316
  path,
293
317
  body,
294
318
  ctx.hostOverride ? ctx.hostOverride() : ctx.host(),
295
- "cli-token"
319
+ "cli-token",
320
+ { "Accept-Language": detectCliLocale() }
296
321
  );
297
322
  if (method === "PATCH")
298
323
  return patchToMainApp(
@@ -334,6 +359,36 @@ async function waitForRun(ctx, id, runId) {
334
359
  );
335
360
  } while (true);
336
361
  }
362
+ function isUnchangedTeamUpdate(action, body) {
363
+ return action.command === "update" && body !== void 0 && Object.keys(body).length === 0;
364
+ }
365
+ function ignoredEffortReceipt(ctx) {
366
+ return ctx.str("targetType") === "team" && (ctx.has?.("effort") ?? Boolean(ctx.str("effort"))) ? { ignoredFields: ["effort"] } : {};
367
+ }
368
+ async function checkUnchangedTeamUpdate(ctx, path) {
369
+ const detail = await request(ctx, "GET", path);
370
+ const update = detail?.actions?.update;
371
+ if (detail?.targetType !== "team" || typeof update?.allowed !== "boolean")
372
+ throw new CliApiError("Unable to verify Team update permission.");
373
+ if (!update.allowed) {
374
+ const reason = update.reason;
375
+ if (reason === "AUTOMATION_FORBIDDEN" || reason === "AGENT_SPACE_PERMISSION_DENIED")
376
+ throw new PermissionError(
377
+ "No permission to update this Team automation.",
378
+ reason
379
+ );
380
+ throw new CliApiError("This Team automation cannot be updated.", {
381
+ code: reason
382
+ });
383
+ }
384
+ return {
385
+ id: detail.id,
386
+ agentSpaceId: detail.agentSpaceId,
387
+ targetType: "team",
388
+ unchanged: true,
389
+ ignoredFields: ["effort"]
390
+ };
391
+ }
337
392
  var actions = [
338
393
  {
339
394
  command: "list",
@@ -454,19 +509,38 @@ var automationCommands = actions.map((a) => ({
454
509
  ...a.wait ? { commandId } : {}
455
510
  };
456
511
  const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
512
+ if (isUnchangedTeamUpdate(a, body)) {
513
+ const { id, ...result } = await checkUnchangedTeamUpdate(ctx, path);
514
+ return {
515
+ request: redactedPreview("GET", path),
516
+ validation: {
517
+ dryRun: true,
518
+ valid: true,
519
+ operation: "update",
520
+ automationId: id,
521
+ ...result
522
+ }
523
+ };
524
+ }
457
525
  return {
458
526
  request: redactedPreview(a.method, path, requestBody),
459
- validation: await request(ctx, a.method, withDryRun(path), requestBody)
527
+ validation: {
528
+ ...await request(ctx, a.method, withDryRun(path), requestBody),
529
+ ...ignoredEffortReceipt(ctx)
530
+ }
460
531
  };
461
532
  },
462
533
  execute: async (ctx) => {
463
534
  const body = a.body?.(ctx), commandId = ctx.str("commandId") || randomUUID();
464
535
  let output;
465
536
  try {
537
+ const path = base + a.suffix(ctx) + await query(ctx, a.list, a.typed);
538
+ if (isUnchangedTeamUpdate(a, body))
539
+ return await checkUnchangedTeamUpdate(ctx, path);
466
540
  output = await request(
467
541
  ctx,
468
542
  a.method,
469
- base + a.suffix(ctx) + await query(ctx, a.list, a.typed),
543
+ path,
470
544
  body && { ...body, ...a.wait ? { commandId } : {} }
471
545
  );
472
546
  } catch (error) {
@@ -485,6 +559,8 @@ var automationCommands = actions.map((a) => ({
485
559
  );
486
560
  throw error;
487
561
  }
562
+ if (a.command === "update" || a.command === "create")
563
+ output = { ...output, ...ignoredEffortReceipt(ctx) };
488
564
  if (!a.wait) return output;
489
565
  const runId = a.command === "create" ? output.execution?.runId : output.runId;
490
566
  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-JRXSLFCA.js";
20
+ } from "./chunk-KBJHBVO7.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-VPLRZSMY.js";
29
+ } from "./chunk-STHIGWWC.js";
30
30
  import "./chunk-6E6HCTP2.js";
31
31
  import {
32
32
  assertBusinessEnabled,
33
33
  businessForCapability,
34
34
  readBusinessConfigForExecution,
35
35
  readCurrentBusinessConfig
36
- } from "./chunk-DULCIC67.js";
36
+ } from "./chunk-SQEK6S4X.js";
37
37
  import "./chunk-PUSFEC6B.js";
38
38
  import {
39
39
  CredentialStoreUnreadableError,
@@ -6,12 +6,12 @@ import {
6
6
  readOutputMetadata,
7
7
  unwrapOutputData,
8
8
  withOutputMetadata
9
- } from "./chunk-JRXSLFCA.js";
9
+ } from "./chunk-KBJHBVO7.js";
10
10
  import {
11
11
  CapabilityGatewayError,
12
12
  fetchCapabilityGateway,
13
13
  requestCapabilityGateway
14
- } from "./chunk-VPLRZSMY.js";
14
+ } from "./chunk-STHIGWWC.js";
15
15
  import {
16
16
  PermissionError
17
17
  } from "./chunk-3ZQY7SLZ.js";
@@ -9,11 +9,11 @@ import {
9
9
  postAgentApi,
10
10
  putAgentApi,
11
11
  uploadAgentApi
12
- } from "./chunk-LXRALNNA.js";
12
+ } from "./chunk-UK7HQ4IL.js";
13
13
  import {
14
14
  TeAgentApiError,
15
15
  createTeAgentApiError
16
- } from "./chunk-CYZV5AXW.js";
16
+ } from "./chunk-KE5WGBXS.js";
17
17
  import {
18
18
  CliValidationError,
19
19
  isApiErrorType
@@ -1,4 +1,7 @@
1
1
  import { createRequire as __createRequire } from 'node:module'; const require = __createRequire(import.meta.url);
2
+ import {
3
+ detectCliLocale
4
+ } from "./chunk-N2MAYIRU.js";
2
5
  import {
3
6
  require_excel
4
7
  } from "./chunk-RLPMXKDQ.js";
@@ -9,33 +12,6 @@ import {
9
12
  // src/tracking/xlsx/write.ts
10
13
  var import_exceljs = __toESM(require_excel(), 1);
11
14
 
12
- // src/tracking/i18n/locale.ts
13
- var VALID_LOCALES = /* @__PURE__ */ new Set(["zh", "en", "ja", "ko"]);
14
- function normalize(raw) {
15
- const lower = raw.trim().toLowerCase();
16
- if (lower.startsWith("zh") || lower.startsWith("cn")) return "zh";
17
- if (lower.startsWith("ja") || lower.startsWith("jp")) return "ja";
18
- if (lower.startsWith("ko") || lower.startsWith("kr")) return "ko";
19
- if (lower.startsWith("en")) return "en";
20
- if (VALID_LOCALES.has(lower)) return lower;
21
- return "en";
22
- }
23
- var _cliLocale;
24
- function detectCliLocale() {
25
- if (_cliLocale) return _cliLocale;
26
- if (process.env.AE_LANG) {
27
- _cliLocale = normalize(process.env.AE_LANG);
28
- return _cliLocale;
29
- }
30
- const sys = (process.env.LANG || process.env.LC_ALL || process.env.LANGUAGE || "").toLowerCase();
31
- if (sys) {
32
- _cliLocale = normalize(sys);
33
- return _cliLocale;
34
- }
35
- _cliLocale = "en";
36
- return _cliLocale;
37
- }
38
-
39
15
  // src/tracking/i18n/resources/xlsx/sheets.ts
40
16
  var SHEET_NAMES = {
41
17
  event_data: {
@@ -1193,7 +1169,6 @@ function validateAndFix(draft) {
1193
1169
  }
1194
1170
 
1195
1171
  export {
1196
- detectCliLocale,
1197
1172
  allSheetNames,
1198
1173
  allHeaderNames,
1199
1174
  displayToType,
@@ -3,7 +3,7 @@ import {
3
3
  getAgentApi,
4
4
  patchAgentApi,
5
5
  postAgentApi
6
- } from "./chunk-LXRALNNA.js";
6
+ } from "./chunk-UK7HQ4IL.js";
7
7
 
8
8
  // src/commands/memory/cli-client.ts
9
9
  var DEFAULT_TE_CLAUDE_BASE_PATH = "/agent";
@@ -6,7 +6,7 @@ import {
6
6
  rememberBusinessConfig,
7
7
  reserveBusinessSkillContext,
8
8
  syncBusinessSkills
9
- } from "./chunk-DULCIC67.js";
9
+ } from "./chunk-SQEK6S4X.js";
10
10
  import {
11
11
  getLocalCliPackageInfo
12
12
  } from "./chunk-PUSFEC6B.js";
@@ -4,12 +4,12 @@ import {
4
4
  } from "./chunk-AWW2T2WL.js";
5
5
  import {
6
6
  withOutputMetadata
7
- } from "./chunk-JRXSLFCA.js";
7
+ } from "./chunk-KBJHBVO7.js";
8
8
  import {
9
9
  dryRunCapabilityWithEnvelope,
10
10
  executeCapabilityWithEnvelope,
11
11
  validateCapabilityWithEnvelope
12
- } from "./chunk-VPLRZSMY.js";
12
+ } from "./chunk-STHIGWWC.js";
13
13
  import {
14
14
  CliValidationError
15
15
  } from "./chunk-3ZQY7SLZ.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-DULCIC67.js";
5
+ } from "./chunk-SQEK6S4X.js";
6
6
  import {
7
7
  logger,
8
8
  redactExternalCliToken
@@ -316,13 +316,14 @@ async function parseResponse(response, defaultErrorPrefix) {
316
316
  }
317
317
  return parsed;
318
318
  }
319
- async function postToMainApp(path2, body, hostOverride, authMode = "auto") {
319
+ async function postToMainApp(path2, body, hostOverride, authMode = "auto", headers) {
320
320
  const rawBody = JSON.stringify(body);
321
321
  const response = await fetchSigned({
322
322
  method: "POST",
323
323
  path: path2,
324
324
  body: rawBody,
325
325
  hostOverride,
326
+ headers,
326
327
  authMode
327
328
  });
328
329
  return parseResponse(response, "Main app returned");
@@ -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
+ };
@@ -9,21 +9,21 @@ import {
9
9
  import {
10
10
  printError,
11
11
  printOutput
12
- } from "./chunk-JRXSLFCA.js";
12
+ } from "./chunk-KBJHBVO7.js";
13
13
  import {
14
14
  TeAgentApiError,
15
15
  TeAgentCredentialsError
16
- } from "./chunk-CYZV5AXW.js";
16
+ } from "./chunk-KE5WGBXS.js";
17
17
  import {
18
18
  CapabilityGatewayError
19
- } from "./chunk-VPLRZSMY.js";
19
+ } from "./chunk-STHIGWWC.js";
20
20
  import {
21
21
  BusinessDisabledError,
22
22
  assertBusinessEnabled,
23
23
  businessForCommand,
24
24
  formatCapabilityMissCompatHint,
25
25
  readCurrentBusinessConfig
26
- } from "./chunk-DULCIC67.js";
26
+ } from "./chunk-SQEK6S4X.js";
27
27
  import {
28
28
  CredentialStoreUnreadableError,
29
29
  SecureStoreAuthError
@@ -470,7 +470,7 @@ function createRuntimeContext(cmd, opts, globalOpts) {
470
470
  }
471
471
  const ctx = {
472
472
  async onboarding(action, input) {
473
- const { invokeOnboarding } = await import("./web-runtime-5M7PRY7R.js");
473
+ const { invokeOnboarding } = await import("./web-runtime-HIXOSNJ6.js");
474
474
  return invokeOnboarding(action, input);
475
475
  },
476
476
  has(name) {
@@ -540,8 +540,7 @@ var skill_businesses_default = {
540
540
  "ae-generate-tracking-plan",
541
541
  "ae-metadata",
542
542
  "ae-migrate-tracking-code",
543
- "ae-onboarding",
544
- "ae-tracking-matrix"
543
+ "ae-onboarding"
545
544
  ],
546
545
  dataops: [
547
546
  "ae-dataops"
@@ -1718,7 +1717,7 @@ async function readBusinessConfigForExecution(hostOverride, synchronizeSkills =
1718
1717
  const token = peekCliToken(host);
1719
1718
  if (!token) return {};
1720
1719
  return await resolveBusinessConfig(host, token, async () => {
1721
- const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-WRPEFB5N.js");
1720
+ const { fetchCliConfig: fetchCliConfig2 } = await import("./compat-check-7VBBE7KO.js");
1722
1721
  return fetchCliConfig2(host, token);
1723
1722
  }, Date.now(), synchronizeSkills);
1724
1723
  } catch {
@@ -60,6 +60,13 @@ function readCliAgentContext() {
60
60
  ...readFileContext(),
61
61
  ...scopedContext.getStore()
62
62
  };
63
+ const argument = readContextArgument(process.argv.slice(2));
64
+ const runtime = argument ? parseContextArgument(argument)?.runtime_agent_model : void 0;
65
+ if (isPlainRecord(runtime) && runtime.version === 1) {
66
+ delete context.agent_model;
67
+ const model = cleanValue(runtime.model, 128);
68
+ if (typeof runtime.model === "string" && model) context.agent_model = model;
69
+ }
63
70
  return withCaptureStatus(context);
64
71
  }
65
72
  function cliAgentContextHeaders(context = readCliAgentContext()) {
@@ -171,6 +178,7 @@ function readArgumentContext() {
171
178
  if (!parsed) return {};
172
179
  const context = contextFromRecord(parsed);
173
180
  if (!hasContext(context)) return {};
181
+ if (isPlainRecord(parsed.runtime_agent_model) && parsed.runtime_agent_model.version === 1 && Object.keys(context).every((key) => key === "agent_model")) return context;
174
182
  return {
175
183
  intent_source: "agent_argument",
176
184
  ...context
@@ -456,7 +464,8 @@ async function requestMultipartOnce(url, token, form) {
456
464
  headers: {
457
465
  "cli-token": token,
458
466
  "Accept": "application/json",
459
- ...internalCallSourceHeaders()
467
+ ...internalCallSourceHeaders(),
468
+ ...cliAgentContextHeaders()
460
469
  },
461
470
  body: form
462
471
  });
@@ -10,7 +10,7 @@ import {
10
10
  postToMainApp,
11
11
  putToMainApp,
12
12
  uploadToMainApp
13
- } from "./chunk-CYZV5AXW.js";
13
+ } from "./chunk-KE5WGBXS.js";
14
14
  import {
15
15
  clearCliTokenCache
16
16
  } from "./chunk-UWQXGF44.js";
@@ -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-ZLJZPPPV.js";
4
+ } from "./chunk-IY5G42YY.js";
5
5
  import {
6
6
  registerCapabilityGatewayRoute
7
7
  } from "./chunk-AWW2T2WL.js";
8
8
  import {
9
9
  executeCapabilityWithEnvelope
10
- } from "./chunk-VPLRZSMY.js";
10
+ } from "./chunk-STHIGWWC.js";
11
11
  import {
12
12
  CliApiError,
13
13
  CliValidationError
@@ -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-VPLRZSMY.js";
4
+ } from "./chunk-STHIGWWC.js";
5
5
  import {
6
6
  SecureStoreAuthError,
7
7
  getCliToken,
@@ -12,7 +12,7 @@ import {
12
12
  shouldNotifyCompat,
13
13
  shouldSkipAutoSync,
14
14
  shouldSkipCompatCheck
15
- } from "./chunk-DULCIC67.js";
15
+ } from "./chunk-SQEK6S4X.js";
16
16
  import "./chunk-PUSFEC6B.js";
17
17
  import "./chunk-UWQXGF44.js";
18
18
  import "./chunk-IGU3R2JD.js";
@@ -4,7 +4,7 @@ import {
4
4
  invalidateBusinessSkillSynchronization,
5
5
  refreshEnvironmentAfterLogin,
6
6
  refreshEnvironmentConfig
7
- } from "./chunk-PCQTBRPT.js";
7
+ } from "./chunk-FRJUB66C.js";
8
8
  import {
9
9
  MultiselectCancelled,
10
10
  promptSingleSelect
@@ -12,14 +12,14 @@ import {
12
12
  import {
13
13
  printError,
14
14
  printOutput
15
- } from "./chunk-JRXSLFCA.js";
15
+ } from "./chunk-KBJHBVO7.js";
16
16
  import {
17
17
  aeRegistrationUrl,
18
18
  fetchCliConfig,
19
19
  missingAeHostHint,
20
20
  readCurrentBusinessConfig,
21
21
  resolveKbAutoDiscoveryFeature
22
- } from "./chunk-DULCIC67.js";
22
+ } from "./chunk-SQEK6S4X.js";
23
23
  import "./chunk-PUSFEC6B.js";
24
24
  import {
25
25
  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-CYZV5AXW.js";
5
+ } from "./chunk-KE5WGBXS.js";
6
6
  import {
7
7
  internalCallSourceHeaders
8
8
  } from "./chunk-UWQXGF44.js";
@@ -2,7 +2,8 @@ import { createRequire as __createRequire } from 'node:module'; const require =
2
2
  import {
3
3
  validateAndFix,
4
4
  validateDraft
5
- } from "./chunk-HBI7IQH3.js";
5
+ } from "./chunk-6NJZSWUT.js";
6
+ import "./chunk-N2MAYIRU.js";
6
7
  import {
7
8
  MAPPING_VERSION,
8
9
  assessFileSize,