@thinkingai/ae-cli 6.1.37 → 6.1.39

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 +3 -1
  2. package/README.zh.md +3 -1
  3. package/cli-installation-guide.md +1 -2
  4. package/dist/{ai-monitor-YKNYBHN2.js → ai-monitor-DST4NDOK.js} +5 -5
  5. package/dist/ai-monitor.js +7 -7
  6. package/dist/{auth-FXRGFG37.js → auth-BD3NIY3T.js} +3 -3
  7. package/dist/{automation-OQ647CSW.js → automation-IMDCJUML.js} +85 -9
  8. package/dist/{capability-GM7CH2LZ.js → capability-3NJOQHZQ.js} +3 -3
  9. package/dist/{chunk-46V4ZF7E.js → chunk-24DCOJBJ.js} +2 -2
  10. package/dist/{chunk-SHB7A2JE.js → chunk-2RORKIF6.js} +2 -2
  11. package/dist/{chunk-HBI7IQH3.js → chunk-6NJZSWUT.js} +3 -28
  12. package/dist/{chunk-QPUPWGZ3.js → chunk-DTODOQ6T.js} +1 -1
  13. package/dist/{chunk-EFGZFFSO.js → chunk-FRJUB66C.js} +1 -1
  14. package/dist/{chunk-OFOPYKYM.js → chunk-IY5G42YY.js} +2 -2
  15. package/dist/{chunk-NBXQSPXL.js → chunk-KBJHBVO7.js} +1 -1
  16. package/dist/{chunk-CYZV5AXW.js → chunk-KE5WGBXS.js} +2 -1
  17. package/dist/chunk-N2MAYIRU.js +32 -0
  18. package/dist/{chunk-IL2O4KDP.js → chunk-SQEK6S4X.js} +20 -21
  19. package/dist/{chunk-VPLRZSMY.js → chunk-STHIGWWC.js} +10 -1
  20. package/dist/{chunk-OTV5EBR5.js → chunk-TVSGS5QB.js} +5 -5
  21. package/dist/{chunk-LXRALNNA.js → chunk-UK7HQ4IL.js} +1 -1
  22. package/dist/{chunk-JFXDUX6U.js → chunk-VXKKTUU2.js} +2 -2
  23. package/dist/{chunk-E5CJI7L3.js → chunk-WRYXVIJP.js} +1 -1
  24. package/dist/{compat-check-ZMJWF6QG.js → compat-check-7VBBE7KO.js} +1 -1
  25. package/dist/{config-6G2LAH5D.js → config-LFRZBPH5.js} +4 -7
  26. package/dist/{context-Y2A6QIS3.js → context-WJQGJD6F.js} +1 -1
  27. package/dist/{data-integration-EIF5QHYF.js → data-integration-KMJWYAKK.js} +2 -1
  28. package/dist/index.js +34 -32
  29. package/dist/{memory-6QMZS4HF.js → memory-VPOPSU52.js} +3 -3
  30. package/dist/{metadata-6S3Z67JC.js → metadata-AR64J76Z.js} +5 -5
  31. package/dist/{model-LEYRQKOS.js → model-2F2354QP.js} +1 -1
  32. package/dist/{personal-semantic-preference-PKYS73D6.js → personal-semantic-preference-BCOSI4DO.js} +4 -4
  33. package/dist/{project-semantic-B5PG4JJB.js → project-semantic-DJLXAXLD.js} +4 -4
  34. package/dist/{sync-GB3IKG2D.js → sync-4TUIQ2PZ.js} +3 -3
  35. package/dist/{te-agent-S7UH657Z.js → te-agent-EMDWA3M6.js} +4 -4
  36. package/dist/{te-analysis-ZYL4AF34.js → te-analysis-XHAMRMTQ.js} +6 -6
  37. package/dist/{te-community-R63WXF6D.js → te-community-JSUSZEYH.js} +4 -4
  38. package/dist/{te-dataops-VHTPW433.js → te-dataops-I264BUTI.js} +2 -2
  39. package/dist/{te-engage-ZE7ROR3Z.js → te-engage-XNMQYO5N.js} +68 -16
  40. package/dist/{te-experiment-ZDR2JZTN.js → te-experiment-5SCHMYVO.js} +4 -4
  41. package/dist/{te-kb-6NXLBHE3.js → te-kb-QQ53TNRZ.js} +44 -13
  42. package/dist/{te-system-DB5Z3LLF.js → te-system-Z4VEB6PL.js} +1 -1
  43. package/dist/{te-team-KOSX43ZP.js → te-team-V6BBI52R.js} +87 -6
  44. package/dist/{things-G2QFXDK7.js → things-THHGDSEC.js} +4 -4
  45. package/dist/{update-XPNNE7UF.js → update-53ZUXWV5.js} +2 -2
  46. package/dist/{web-runtime-7DPC4HYJ.js → web-runtime-ZJHOIPKX.js} +4 -4
  47. package/dist/{workspace-RZESYB6T.js → workspace-W5ZPVWJS.js} +3 -3
  48. package/package.json +3 -3
  49. package/skills/ae-automation/SKILL.md +6 -2
  50. package/skills/ae-automation/references/cli.md +9 -3
  51. package/skills/ae-engage/SKILL.md +6 -1
  52. package/skills/ae-engage/references/common-metric.md +47 -1
  53. package/skills/ae-engage/references/flow-metric-update.md +1 -1
  54. package/skills/ae-engage/references/task-metric-update.md +1 -1
  55. package/skills/ae-experiment/SKILL.md +1 -1
  56. package/skills/ae-experiment/references/save_experiment.md +1 -1
  57. package/skills/ae-kb/SKILL.md +8 -6
  58. package/skills/ae-kb/references/query-workflow.md +5 -1
  59. package/skills/ae-onboarding/SKILL.md +2 -2
  60. package/skills/ae-onboarding/references/onboarding_run.md +1 -1
  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
@@ -1,5 +1,7 @@
1
1
  # Automation command contract
2
2
 
3
+ Shared workspace automations require an enabled company Team. Personal Teams can be used in personal workspaces. Validate the saved workspace and target in the server dry-run.
4
+
3
5
  Transition status: transitional
4
6
  Owning module: te-claude automation and team scheduling
5
7
  Current transport: authenticated TE REST /api/cli/automation/v1
@@ -11,7 +13,7 @@ Exit condition: equivalent gateway capabilities preserve permissions, idempotenc
11
13
 
12
14
  - `ae-cli automation list [--agent-space-id ID] [--target-type agent|team] [--q NAME] [--status active|paused] [--limit 20] [--cursor CURSOR]`
13
15
  - `ae-cli automation get --id ID`
14
- - `ae-cli automation create --target-type agent --agent-id ID --name NAME --message TEXT --schedule-kind daily --time 09:00 [--model MODEL_CONFIG_ID] [--reuse-conversation true|false]`
16
+ - `ae-cli automation create --target-type agent --agent-id ID --name NAME --message TEXT --schedule-kind daily --time 09:00 [--model MODEL_CONFIG_ID] [--effort adaptive|low|medium|high|max] [--reuse-conversation true|false]`
15
17
  - `ae-cli automation create --target-type team --team-id ID --name NAME --message TEXT --trigger-type manual [--scope JSON] [--channels JSON_ARRAY]`
16
18
  - `ae-cli automation update --id ID --target-type agent|team <changed fields>`
17
19
  - `ae-cli automation enable|disable --id ID`
@@ -19,7 +21,11 @@ Exit condition: equivalent gateway capabilities preserve permissions, idempotenc
19
21
 
20
22
  Scheduled creation needs `--schedule-kind` or `--cron-expression`. Frequencies: hourly with `--minute 0..59`; daily with `--time HH:mm`; weekly also `--weekdays '[1,3,5]'` (0=Sunday through 6=Saturday); monthly also `--days-of-month '[1,15,31]'` (integers 1–31 and `"L"` for the actual last day of the month). Existing single-day flags `--weekday 0..6` and `--day-of-month 1..31` remain supported; do not combine a single-day flag with its plural array. Arrays must be non-empty; duplicates are removed and dates sorted. Dates absent in the current month are skipped, never shifted into the next month. `"L"` follows the actual month end in the server timezone (including leap years). It can be selected alone or with numeric dates; overlapping selections at the same time run only once. Any minute 00–59 is valid in `--time`. Times use the server timezone. Manual creation does not require a schedule. `--trigger-immediately` executes after creation; `--wait` then waits for that execution. Creation and immediate execution have separate results: do not create another automation if only its execution failed.
21
23
 
22
- On update, omitted fields retain their values. `--model null`, `--scope null`, destination IDs set to `null`, and `--save-to-knowledge-base-id null` clear nullable fields. `--channels '[]'` clears notifications; `--clear-message` clears instructions; `--reuse-conversation false` disables reuse. An automation's target is immutable on update. Team fields are rejected for Agent targets and vice versa.
24
+ On update, omitted fields retain their values. `--model null`, `--scope null`, destination IDs set to `null`, and `--save-to-knowledge-base-id null` clear nullable fields. `--channels '[]'` clears notifications; `--clear-message` clears instructions; `--reuse-conversation false` disables reuse. An automation's target is immutable on update. Target-specific fields are rejected on the other target, except for `--effort` on Team automations.
25
+
26
+ For a single Agent, `--effort` accepts `adaptive`, `low`, `medium`, `high`, or `max`. Omit it on create for adaptive reasoning. Omit it on update to keep the saved depth, or pass `--effort adaptive` to clear an override. Verify the saved `effort` with `automation get` (`null` means adaptive). Never infer a depth from the current chat.
27
+
28
+ For an Agent Team, ignore any `--effort` value before validating the other fields. Create or update with the remaining settings. An update containing only `--effort` verifies the existing target and update permission and returns `unchanged: true` without writing. Preflight and successful command results identify an explicit Team depth in `ignoredFields: ["effort"]`. An effort-only success means the team kept its own settings. For a mixed update, report the saved changes and the ignored depth. Report permission and validation errors from their error envelope.
23
29
 
24
30
  Team configuration supports `--scope`, `--channels`, `--feishu-chat-id`, `--lark-chat-id`, `--slack-channel-id`, `--save-to-knowledge-base-id`. Other supported notification channels use the team's existing notification configuration. Team visibility and management permissions follow the Web application.
25
31
 
@@ -58,7 +64,7 @@ Agent and Agent Team both accept `--channels '["feishu","slack"]'`, `--feishu-ch
58
64
 
59
65
  Automation requests use the current user's `cli-token`, including in a shared sandbox. They do not infer an owner from `SandboxUser` or fall back to a different member. `--agent-space-id` takes precedence over `TE_AGENT_CURRENT_AGENT_SPACE_ID` or the current AgentSpace working directory. When the shell has changed directories, `TE_AGENT_CONVERSATION_ID` resolves the space through the existing authenticated workspace target API; a resolution failure never falls back to the personal space. Membership and write permissions are enforced by the server.
60
66
 
61
- For conversational creation, keep the supplied prompt editable until the user sends it. Resolve missing or ambiguous targets, summarize the configuration and obtain confirmation before creating. Agent runs inherit its model unless explicitly overridden; Agent Team retains its own configuration. Omit `--trigger-immediately` unless the user requests an immediate run.
67
+ For conversational creation, keep the supplied prompt editable until the user sends it. Resolve missing or ambiguous targets, then run `automation create --dry-run` and present the complete draft. Wait for the user to approve that specific preview before the real create, including paused tasks. Each new task in the same chat and each revised configuration requires a fresh preview and confirmation. A clarification or an earlier approval does not authorize this write. After saving, share the complete `detailPath` returned by `automation get`, including the space query. A single Agent inherits its model unless explicitly overridden. Include its reasoning depth (adaptive by default) in the confirmation and ask only about ambiguous or conflicting depth requests. For an Agent Team, ignore any requested depth and state that the team uses its own settings. Omit `--trigger-immediately` unless the user requests an immediate run.
62
68
 
63
69
  ## Multi-date examples
64
70
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-engage
3
- version: 1.0.1
3
+ version: 1.0.2
4
4
  description: "AE Engage capability gateway: config center, flows, push/config channels, strategies, templates, task management, operation activities, and query lifecycle. Trigger words: config center, scene config, push channel, config channel, operation strategy, operation task, operation activity, query lifecycle, template, config item, Engage, Hermes, engage-scene, engage-setting, engage-flow, engage-task, engage-activity, engage-query."
5
5
  ---
6
6
 
@@ -170,6 +170,11 @@ ae-cli engage-setting common-metric update --project-id <project_id> --metric-ty
170
170
  ae-cli engage-setting common-metric delete --project-id <project_id> --metric-name <name> --yes
171
171
  ```
172
172
 
173
+ Common metrics support rolling windows and natural day/week/month windows via
174
+ `--time-cycle-def`. Read [common-metric.md](references/common-metric.md) for the public
175
+ snake_case definition, update omission/null semantics, and required backend support.
176
+
177
+
173
178
  ### 2. task
174
179
 
175
180
  ```bash
@@ -112,4 +112,50 @@ property and percentile requirements as event metrics.
112
112
 
113
113
  Resolve every event and property through `ae-cli analysis-meta event list` and the corresponding property metadata before writing. `get` and `list` return `metric_definition`, `metric_definition_status`, and an optional unavailable reason. Raw metric QP is hidden.
114
114
 
115
- `metric_type=1` remains required for setting-page common metrics. Metric windows remain separate from the semantic definition, and their unit must be `minute` / `hour` / `day`.
115
+ ## Rolling and natural windows
116
+
117
+ `metric_type=1` remains required for setting-page common metrics. Window configuration is
118
+ separate from `metric_definition` and applies to both event and formula metrics.
119
+
120
+ - Rolling windows use `minute`, `hour`, or `day`. On create, omit `--time-cycle-def`
121
+ (or pass `null`) to keep the rolling behavior. A rolling day is not a calendar day.
122
+ - Natural windows use `day`, `week`, or `month` with `--metric-window-num 1` and a
123
+ non-null `--time-cycle-def` object. The capability input key is `time_cycle_def`;
124
+ its public nested keys are `start_time` / `start_day` (snake_case).
125
+
126
+ | Window | Unit | `--time-cycle-def` |
127
+ | --- | --- | --- |
128
+ | Calendar day | `day` | '{"start_time":"00:00"}' |
129
+ | Calendar week (Monday) | `week` | '{"start_day":1,"start_time":"00:00"}' |
130
+ | Calendar month | `month` | '{"start_day":1}' |
131
+ | Day starting at 06:30 | `day` | '{"start_time":"06:30"}' |
132
+ | Week starting Wednesday at 06:30 | `week` | '{"start_day":3,"start_time":"06:30"}' |
133
+ | Month starting on day 15 | `month` | '{"start_day":15}' |
134
+
135
+ Day/week `start_time` must use `HH:mm` (00:00-23:59). A day must omit `start_day`.
136
+ Week `start_day` is 1-7 (Monday-Sunday); month `start_day` is 1-28. A month must
137
+ omit `start_time` or set it to `00:00`. Unknown keys and invalid combinations are rejected.
138
+
139
+ For an existing verified event, add these flags to `common-metric create`:
140
+
141
+ ```bash
142
+ --metric-window-num 1 --metric-window-time-unit week \
143
+ --time-cycle-def '{"start_day":1,"start_time":"00:00"}'
144
+ ```
145
+
146
+ On **update**, omitting `--time-cycle-def` preserves the stored definition. The server
147
+ validates the new window parameters together with that definition; omission must not
148
+ silently turn a calendar day into a rolling day. Pass a new object to change the cycle,
149
+ or explicitly pass `--time-cycle-def null` and a rolling unit to clear it. For example,
150
+ switching to a rolling day uses:
151
+
152
+ ```bash
153
+ --metric-window-num 1 --metric-window-time-unit day --time-cycle-def null
154
+ ```
155
+
156
+ `get` and `list` return `time_cycle_def` (an object, or `null` for rolling windows).
157
+ After create/update, read the metric back and check that the definition matches the intent.
158
+ When binding a PRESET metric to a task or flow, reference its verified metric name using
159
+ the documented metric-update contract; the saved common metric provides the window.
160
+ Hermes with natural common-metric capability support must be deployed before using the
161
+ new flags. Older Hermes versions may reject `time_cycle_def` or week/month units.
@@ -68,7 +68,7 @@ Natural window constraints:
68
68
  - Month: require `startDay` from `1` to `28`; omit `startTime` or use `"00:00"`.
69
69
  - An empty `timeCycleDef: {}` is invalid. Without `timeCycleDef`, only rolling `minute`, `hour`, and `day` units are accepted.
70
70
  - When switching rolling to calendar, add the matching `timeCycleDef` and set the number/unit together. When switching back, remove `timeCycleDef` entirely and use a valid rolling unit. Preserve the binding's `metricSettingId` and all other desired metrics.
71
- - These options apply to custom metrics (`metricType: 2`) through `metric update`. Do not use `engage-setting common-metric create/update` to create natural windows.
71
+ - Custom metrics (`metricType: 2`) configure these options through `metric update`. PRESET natural metrics (`metricType: 1`) can be created or updated with `engage-setting common-metric create/update --time-cycle-def` when the matching Hermes capability is deployed; see [common-metric.md](common-metric.md). Reference the saved preset metric name when binding and verify its persisted cycle after saving.
72
72
  - Task support requires a backend deployment containing the task natural-window feature. Do not silently replace an unsupported calendar window with a rolling duration.
73
73
 
74
74
  ### Custom metric payload examples
@@ -59,7 +59,7 @@ Natural window constraints:
59
59
  - Month: require `startDay` from `1` to `28`; omit `startTime` or use `"00:00"`.
60
60
  - An empty `timeCycleDef: {}` is invalid. Without `timeCycleDef`, only rolling `minute`, `hour`, and `day` units are accepted.
61
61
  - When switching rolling to calendar, add the matching `timeCycleDef` and set the number/unit together. When switching back, remove `timeCycleDef` entirely and use a valid rolling unit. Preserve the binding's `metricSettingId` and all other desired metrics.
62
- - These options apply to custom metrics (`metricType: 2`) through `metric update`. Do not use `engage-setting common-metric create/update` to create natural windows.
62
+ - Custom metrics (`metricType: 2`) configure these options through `metric update`. PRESET natural metrics (`metricType: 1`) can be created or updated with `engage-setting common-metric create/update --time-cycle-def` when the matching Hermes capability is deployed; see [common-metric.md](common-metric.md). Reference the saved preset metric name when binding and verify its persisted cycle after saving.
63
63
  - Task support requires a backend deployment containing the task natural-window feature. Do not silently replace an unsupported calendar window with a rolling duration.
64
64
 
65
65
  ### Custom metric payload examples
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-experiment
3
- version: 1.0.11
3
+ version: 1.0.12
4
4
  description: "Use when managing Atlas AB or external experiments, experiment approvals and approvers, traffic domains and layers, Features, metrics, buckets, and experiment reports through ae-cli"
5
5
  ---
6
6
 
@@ -117,7 +117,7 @@ ae-cli experiment experiment save --project-id 1 --req '{"expId":"exp_123","allo
117
117
  - Local routing (`layerType="local"`) does not support `bucketId="#user_id"`. Use another bucket returned by `experiment bucket list`, such as `#account_id` or `#distinct_id` when available.
118
118
  - `allocation` (experiment-level) is the experiment's share of the traffic layer. It is optional during draft construction, but before readiness it must be greater than `0` and no more than `100`. **Integer only** (for example `20`); decimals such as `20.5` are rejected at the CLI interface.
119
119
  - `groups[].allocation` (group-level): **integer only; sum must equal `100` exactly**. Example for 3 groups: `34 + 33 + 33 = 100`. Decimals such as `33.33` are rejected at the CLI interface before save.
120
- - `expCycle.cycleType` can be `day`, `sample`, or `time`; when `cycleType=day`, `dayNum` is `1..90`. `time` requires `fixedEndTime`. Blank cycle defaults to day + 30.
120
+ - `expCycle.cycleType` can be `day`, `sample`, or `time`; when `cycleType=day`, `dayNum` is `1..365`. `time` requires `fixedEndTime`. Blank cycle defaults to day + 30.
121
121
  - Before readiness, `groups` must be non-empty, contain exactly one control group (`isControl=1`), group allocations must sum to exactly `100`, and each `expGroupValue` must be a non-empty JSON string array.
122
122
  - Feature experiments must bind `featureKeyList` before readiness. `featureKeyList` contains Feature key strings, not Feature objects. The MCP currently supports one `featureKey` for feature experiments.
123
123
  - Metrics use `metricRole=primary|secondary|guardrail`; the internal `observation` role is currently unavailable for saves. Before readiness at least one primary metric is required.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-kb
3
- version: 1.0.13
3
+ version: 1.0.15
4
4
  description: 'AE knowledge base CLI manual for creating, importing read-only compiled snapshots, querying, LLM-powered ask, listing accessible knowledge bases and their sources, deterministic index/grep/read retrieval, checking status, ZIP source upload and directory management, raw child-file reading, revision-checked child updates and deletion, compiling, schema generation, URL sources, source deletion, ordinary text source creation, full reads and revision-checked editing, file/ZIP source draft replacement and restoration, and knowledge base deletion. Use when the user asks to manage AE (Agentic Engine) knowledge bases, import a compiled Markdown ZIP snapshot, upload documents or URLs to a knowledge base, query knowledge, ask knowledge bases with an LLM, list accessible knowledge bases or source metadata, inspect knowledge base indexes, search knowledge base pages, read a specific knowledge base page, check knowledge base status, generate schemas, compile knowledge, remove sources, create or edit text sources, or delete a knowledge base. To choose which knowledge base is worth searching, use the ae-kb-discovery skill first; this skill runs the retrieval once a target is chosen. Must use ae-cli kb commands and must not guess knowledge base names, scopes, page paths, source IDs, source display names, JSON payload shapes, or URL formats.'
5
5
  ---
6
6
 
@@ -294,7 +294,7 @@ Compile after sources and schema are ready:
294
294
  ae-cli kb +compile --name engineering-handbook --scope company --mode incremental
295
295
  ```
296
296
 
297
- Valid compile modes are `incremental` and `full`; default is `incremental`.
297
+ Valid compile modes are `incremental` and `full`; default is `incremental`. The optional `--content-language` checks the working declaration without changing it. When a server rejects a new language option, report that the server does not support it; never retry without the requested option. Verify actual index and page text with `+index` and `+read` before claiming content acceptance.
298
298
 
299
299
  ### Check Knowledge Base Status
300
300
 
@@ -500,7 +500,7 @@ ae-cli kb +grep --query "<keywords>" --sources '[{"scope":"company","name":"kb-n
500
500
 
501
501
  - `--query`, alias `-q`: required keywords to search.
502
502
  - `--sources`: required JSON array of knowledge base refs.
503
- - `--paths`: required JSON array of wiki pages or subdirectories **copied** from current `+index`, `+grep` or `+read` navigation links. Do not invent paths. A single page is still an array, e.g. `["wiki/sandbox.md"]`. Distinct from `+read --path` (one string).
503
+ - `--paths`: required JSON array of files or subdirectories strictly under `wiki/`, **copied** from current `+index`, `+grep` or `+read` navigation links. The roots `wiki` and `wiki/`, `index.md`, `raw/`, absolute paths and paths escaping `wiki/` are invalid. Do not invent paths or use the wiki root as a full-library search fallback. If navigation provides no usable paths, skip `+grep` and continue with navigation or linked pages. A single page is still an array, e.g. `["wiki/sandbox.md"]`. Distinct from `+read --path` (one string).
504
504
  - `--top-k`: optional max number of hits, 1-50, default 10.
505
505
  - `--locale`: optional locale: `zh`, `en`, `ja`, or `ko`.
506
506
  - Each page entry in results carries `hitCount` (full match count), `pageKind`, and `sections` previews with `sectionStartLine` / `sectionEndLine` — use the section range as the `+read` window.
@@ -564,9 +564,11 @@ ae-cli kb +url --name "<name>" --url "https://example.com/page" [--scope persona
564
564
  ### `+schema`
565
565
 
566
566
  ```bash
567
- ae-cli kb +schema --name "<name>" [--scope personal|company] [--force] [--model <model-ref>] [--custom-instructions "<one-time guidance>"]
567
+ ae-cli kb +schema --name "<name>" [--scope personal|company] [--force] [--model <model-ref>] [--custom-instructions "<one-time guidance>"] [--content-language <primary-tag>] [--rewrite-language]
568
568
  ```
569
569
 
570
+ - Use `--content-language` only when the user explicitly requests a knowledge-base content language. The conversation language alone does not select it. Without a flag the server keeps the existing declaration or infers the language.
571
+ - Use `--rewrite-language --content-language ko` to change language while retaining the existing compilation rules. To publish a change between declared languages, run a complete full compilation.
570
572
  - `--custom-instructions`: Optional per-run schema-generation guidance. It is not persisted; whitespace-only input is omitted. The server allows at most 10,000 Unicode characters and rejects disallowed control characters. Do not include secrets or credentials.
571
573
  - `--force`: Replace the current attempt only when schema generation is already running and the user explicitly requests the replacement. The selected model and custom instructions apply to the new attempt, which may consume additional tokens.
572
574
  - `--dry-run`: Shows the same `customInstructions` request field that execution will send.
@@ -577,7 +579,7 @@ ae-cli kb +schema --name "<name>" [--scope personal|company] [--force] [--model
577
579
  ### `+compile`
578
580
 
579
581
  ```bash
580
- ae-cli kb +compile --name "<name>" [--scope personal|company] [--mode incremental|full] [--model <model-ref>]
582
+ ae-cli kb +compile --name "<name>" [--scope personal|company] [--mode incremental|full] [--model <model-ref>] [--content-language <primary-tag>]
581
583
  ```
582
584
 
583
585
  ### `+status`
@@ -586,7 +588,7 @@ ae-cli kb +compile --name "<name>" [--scope personal|company] [--mode incrementa
586
588
  ae-cli kb +status --name "<name>" [--scope personal|company] [--run-id <compile-run-id>]
587
589
  ```
588
590
 
589
- With `--run-id`, output contains `knowledgeBase` and `compileRun` (`id`, `status`, `errorMessage`, `startedAt`, `finishedAt`) instead of the aggregate lifecycle fields. Copy the ID from `+compile`; wait only for `queued`/`running`, and stop on `succeeded`/`failed`/`cancelled`. A failed run remains failed even when an older published version is available. Exact-run diagnostics require the same compile-run permission as the KB run-detail view, and error text is redacted. The run must belong to the resolved, authorized KB; unknown and cross-KB IDs return `KB_COMPILE_RUN_NOT_FOUND`. Existing calls without `--run-id` are unchanged. Older servers may reject the optional field; do not fall back to aggregate polling for exact-run completion. Run success is separate from publication completeness and content acceptance.
591
+ With `--run-id`, output contains `knowledgeBase` and `compileRun` (`id`, `status`, `errorMessage`, `startedAt`, `finishedAt`) instead of the aggregate lifecycle fields. Copy the ID from `+compile`; wait only for `queued`/`running`, and stop on `succeeded`/`failed`/`cancelled`. A failed run remains failed even when an older published version is available. Exact-run diagnostics require the same compile-run permission as the KB run-detail view, and error text is redacted. The run must belong to the resolved, authorized KB; unknown and cross-KB IDs return `KB_COMPILE_RUN_NOT_FOUND`. Aggregate output includes working and published language declarations when available. Exact-run output can include structured `runStatus` and an original-language `contentSummary`. A legacy `summary` is a historical task status. Older servers may reject the optional field; do not fall back to aggregate polling for exact-run completion. Run success is separate from publication completeness and content acceptance.
590
592
 
591
593
  ### `+list-sources`
592
594
 
@@ -43,7 +43,11 @@ A revision or access-context change requires revalidation, not silent reuse.
43
43
 
44
44
  2. **Grep copied paths.** When no sufficiently specific page link is known,
45
45
  copy 1–3 `wiki/...` entries from the navigation already returned (a page
46
- such as `wiki/sandbox.md`, or a subdirectory such as `wiki/guides`). Call
46
+ such as `wiki/sandbox.md`, or a subdirectory such as `wiki/guides`). Each
47
+ entry must be strictly below `wiki/`: the roots `wiki` and `wiki/`,
48
+ `index.md`, `raw/`, absolute paths and paths escaping `wiki/` are invalid.
49
+ Never use the wiki root as a full-library search fallback. If navigation
50
+ provides no usable paths, skip grep as described below. Call
47
51
  `+grep` with the candidate `--sources` and the copied list as `--paths`. Search
48
52
  with the terms in the returned navigation. If the first grep misses, rewrite
49
53
  the query **once** using different terms from that navigation, still with
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-onboarding
3
- version: 1.1.36
3
+ version: 1.1.37
4
4
  description: "Guide Demo analysis and a follow-up A/B experiment in AE onboarding, with SDK integration available in a local agent."
5
5
  metadata:
6
6
  internal: true
@@ -22,7 +22,7 @@ After the verified experiment report is ready to deliver, run `node <this-skill-
22
22
 
23
23
  For a new local onboarding session, use the customer's explicit or already confirmed market. Otherwise infer it from the local language and the language of the customer's own request. Chinese maps to China, English to the United States, Japanese to Japan, and Korean to South Korea. If the two hints differ, render exactly the two corresponding markets. For Chinese and English, show only China and the United States. Treat the CLI's `markets` list as supported-market metadata. Use either hint alone when the other is unavailable, or the United States when neither is available.
24
24
 
25
- If China is selected, explain that website signup for CLI onboarding is currently unavailable and end the signup flow. Existing accounts use their original host. For website onboarding in other markets, pass the resolved `--region jp`, `--region kr`, or `--region us`.
25
+ Start website onboarding with the resolved `--region cn`, `--region jp`, `--region kr`, or `--region us`. Existing accounts use their original host.
26
26
 
27
27
  Follow `next_action` and the browser receipt. For `guide_existing_window`, direct the user to the page already opened in their system default browser. For `show_fallback_link` or a window the user cannot find, give the exact URL for that browser. For `complete_website_login`, show **I finished signing in** and **I need help signing in**. For `approve_device`, show **I approved CLI access** and **I need help authorizing the CLI**. Resume the same session when the user confirms. For `restart_website_login` or `reauthorize_cli`, show the returned recovery choice and **Not now**. If a matching older CLI returns `run_onboarding` with zero delay after claiming authorization, run once more in the same turn. On `choose_experience`, show the experience picker immediately.
28
28
 
@@ -4,7 +4,7 @@ Run `ae-cli analysis onboarding run` when the customer starts or resumes AE PLG,
4
4
 
5
5
  In an external Agent, the CLI opens new login and authorization pages in the system default browser. If opening fails, give the user the exact returned URL. Web onboarding uses the platform identity and does not open these pages.
6
6
 
7
- For local website onboarding, use the customer's production market (`jp`, `kr`, or `us`). If a saved test session cannot resume, keep its original account and start a separate session only when the customer asks to register in a supported production market.
7
+ For local website onboarding, use the customer's production market (`cn`, `jp`, `kr`, or `us`). If a saved test session cannot resume, keep its original account and start a separate session only when the customer asks to register in a supported production market.
8
8
 
9
9
  Use `interaction.options` as the choices for a user decision and `next_action` for what to run next. A successful sign-in can return `choose_experience` immediately. If Demo evidence links are ready, `evidence` contains links for the current Demo project.
10
10
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: ae-team
3
- version: 1.0.2
3
+ version: 1.1.0
4
4
  description: "ThinkingAI AE (Agentic Engine) ae-cli manual for AI Agent Team tasks: managing teams (list, create, update, delete, AI-generate, templates) and executing TeamRuns (start, chat, cancel, reply, result, artifacts). Use when the user asks to find a team, run a team task, check run status, retrieve results or artifacts, or set up multi-agent workflows. Must use ae-cli, read the matching references/<command>.md before composing commands, and never guess team IDs, run IDs, config structures, or parameter formats."
5
5
  ---
6
6
 
@@ -10,6 +10,8 @@ description: "ThinkingAI AE (Agentic Engine) ae-cli manual for AI Agent Team tas
10
10
  > **CRITICAL — Never guess team IDs, run IDs, or config JSON structures.** Always use `+list` or `+list-templates` to discover real resources first.
11
11
  > **CRITICAL — For the core Agent workflow (find → start → poll → artifacts), follow Workflow A in the Typical Workflows section below.**
12
12
 
13
+ For scope changes, use `+promote` (personal to company, same Team ID) or `+copy-to-personal` (company to personal, new ID). Preview the chosen operation, explain who can see and manage the Team and what happens to automations and history, then wait for confirmation of that specific action. A request to make a company Team private requires offering an independent copy and waiting for approval. Ordinary updates cannot change scope.
14
+
13
15
  ## Global AE CLI Rules
14
16
 
15
17
  AE CLI (`ae-cli`) is the command-line tool for the AE (Agentic Engine) analysis platform.
@@ -59,13 +61,15 @@ ae-cli team +list --help
59
61
  ae-cli team +run-start --help
60
62
  ```
61
63
 
62
- ## Tool Groups (13)
64
+ ## Tool Groups (16)
63
65
 
64
- ### Team Management (7)
66
+ ### Team Management (9)
65
67
 
66
68
  - `+list` ([doc](references/list.md)) — list all visible teams
67
69
  - `+create` ([doc](references/create.md)) — create a new team with a TeamConfig
68
70
  - `+update` ([doc](references/update.md)) — patch one or more fields of an existing team
71
+ - `+promote` ([doc](references/promote.md)) — publish your personal Team to the company after confirmation
72
+ - `+copy-to-personal` ([doc](references/copy-to-personal.md)) — create a separate personal Team from a company Team
69
73
  - `+delete` ([doc](references/delete.md)) — delete a team (409 if runs are active)
70
74
  - `+ai-generate` ([doc](references/ai-generate.md)) — AI-generate a team config draft from a goal description
71
75
  - `+list-templates` ([doc](references/list-templates.md)) — browse built-in team templates
@@ -0,0 +1,7 @@
1
+ # team +copy-to-personal
2
+
3
+ A member who can read a company Team can make a personal copy. A new Team ID belongs to that member. The source Team, its automations and history are unchanged. The copy contains the current workflow without automation schedules, history or notification destinations.
4
+
5
+ 1. `ae-cli team +copy-to-personal --id <team-id> --dry-run` reads the current server preview. Show the name and effect. Wait for explicit approval.
6
+ 2. `ae-cli team +copy-to-personal --id <team-id> --expected-revision <expectedRevision-from-preview>` submits that revision.
7
+ 3. If the configuration changed, fetch a new preview and ask again. Report the returned Team ID and scope.
@@ -0,0 +1,7 @@
1
+ # team +promote
2
+
3
+ Only the personal owner with company Team management rights can convert the Team. The Team ID is preserved. Company members can use its saved configuration, and company administrators can manage it. Existing private automations, versions and runs stay private. Later config edits apply to new runs. Show the notification destinations in the preview. Company Teams cannot be converted back in place.
4
+
5
+ 1. `ae-cli team +promote --id <team-id> --dry-run` reads the current server preview. Show the name and effect. Wait for explicit approval.
6
+ 2. `ae-cli team +promote --id <team-id> --expected-revision <expectedRevision-from-preview>` submits that revision.
7
+ 3. If the configuration changed, fetch a new preview and ask again. Report the returned Team ID and scope.
@@ -6,13 +6,13 @@ Domain: **Team management / write**
6
6
 
7
7
  ## Use Cases
8
8
  - Partially update an existing team (PATCH semantics — only the fields you pass are changed).
9
- - Common uses: rename a team, update its config, disable/enable it, change scope.
9
+ - Common uses: rename a team, update its config, disable/enable it.
10
10
 
11
11
  ## Mandatory Rules (MUST)
12
12
  - `--id` is required. Obtain the real team ID via `+list` — do not guess.
13
13
  - At least one optional field must be provided in addition to `--id`.
14
14
  - `--config` replaces the entire TeamConfig; provide the complete new config, not a partial patch.
15
- - `--scope` must be `personal` or `company` if provided.
15
+ - Existing scope may be echoed for compatibility. For a real change use `+promote` or offer `+copy-to-personal`.
16
16
  - This is an ordinary `write` operation and does not require CLI confirmation.
17
17
 
18
18
  ## Command
@@ -30,7 +30,7 @@ ae-cli team +update --dry-run --id <team_id> --name "Test"
30
30
  | `--name` | No | New team name |
31
31
  | `--config` | No | New complete TeamConfig JSON |
32
32
  | `--description` | No | New description |
33
- | `--scope` | No | `personal` \| `company` |
33
+ | `--scope` | No | Compatibility only: the existing scope. |
34
34
  | `--enabled` | No | `true` \| `false` |
35
35
 
36
36
  ## Decision Rules
@@ -1,170 +0,0 @@
1
- ---
2
- name: "ae-tracking-matrix"
3
- description: "MANDATORY ENTRY POINT for any tracking-related work — invoke this skill FIRST, before reading any tracking plan file, querying any tracking data, or producing any tracking analysis. Applies to generate, audit, review, optimize, increment/supplement, adjust, Q&A, data verification, troubleshooting (an event has no data / stopped reporting / data looks wrong), and TRACKING CODE GENERATION — requests like 'give me Android/iOS/Unity tracking code' or 'how do I write tracking code' MUST enter here first; this skill runs the four-step identification and then routes to the code-generation execution skill, so naming pre-checks and plan-consistency rules apply. Do NOT invoke execution skills (code generation, plan generation, verification) directly from the user request, and do NOT open tracking xlsx files with openpyxl/pandas or start ad-hoc log/file spelunking, before loading this skill. It holds the canonical naming dictionary, object-group validation rules, 29 category Markdown assets (including partial/shared caches), the no-data diagnosis flow, and the lint script that catches TE platform-import failures — none available outside this package, so ad-hoc work misses import-blocking issues and blind alleys. Costs 1-2 extra turns but prevents invalid plans and misdiagnosis. Trigger words: tracking, tracking plan, event design, tracking audit, tracking review, tracking optimization, supplement, increment, SDK tracking, tracking code, code generation, integration code, data verification, PRD, troubleshoot, diagnose, no data, missing data, event not reported."
4
- ---
5
-
6
- # Tracking Matrix · Identification + Routing Foundation
7
-
8
- > Position: The Tracking Assistant Agent covers **generate + audit + optimize + upload**. Present a reviewable plan overview from the same canonical JSON in the conversation first, then ask the user to choose **direct structured sync to Tracking Management** or **a local 11-sheet Excel**. The sync branch creates no Excel; the Excel branch starts only after selection. After target/baseline/semantic validation, one explicit confirmation authorizes only the displayed remote scope via `references/workflows/validated-upload.md`. No automatic upload, hidden Excel intermediate, implicit deletion/overwrite, or invented UI button.
9
- > **Language**: this skill's main text is English; all user-facing replies (including routing, questions, review and acceptance) and newly authored business descriptions follow the user's language. Template-owned Chinese sheet names, headers and type labels remain unchanged. Do not call this an all-English template.
10
- > This SKILL.md keeps only the "identify + route" logic (≤200 lines); execution flows are offloaded into in-package workflow references (`references/workflows/*.md`), loaded by route after identification. (v2.0: the nine former execution skills were merged into this package as workflow references — routing no longer depends on separate skill descriptions; only the two system skills `ae-generate-tracking-code` and `te-user-id-debug` remain external.)
11
-
12
- The `te-user-id-debug` handoff requires the system Skill supplied by the Agent environment; ae-cli does not install it. If it is unavailable, report the missing Skill before starting the deep investigation.
13
-
14
- ## 0. Trigger Boundary
15
-
16
- Enter this flow when the user's request involves any of the following:
17
-
18
- - Tracking plan: generate / optimize / audit / increment / adjust / upload
19
- - Requirements document (PRD) → tracking suggestions
20
- - SDK tracking code, integration, reporting Q&A and troubleshooting
21
- - Tracking data verification (quality validation, plan acceptance — against the customer's real reported data)
22
-
23
- - Audit/review of an existing plan counts in ALL cases — even "just take a look". Never read a tracking xlsx with openpyxl/pandas before completing the four-step identification.
24
- - **Tracking code generation counts too** — "give me Android/iOS/Unity tracking code", "写埋点代码", "接入代码" all enter here first. After the four-step identification, this skill routes to the code-delivery execution skill (code_delivery). Never hang the code-generation skill directly from the user request: the identification step carries the naming dictionary and plan-consistency constraints that keep generated code aligned with the plan.
25
-
26
- For unrelated requests, exit without forcing a route.
27
-
28
- ### Audit & Lint Hard Rules
29
-
30
- - Any audit / review / optimize deliverable for an xlsx plan MUST include the machine-check section produced by `scripts/lint_tracking_plan.py` in read-only check mode. An audit reply without the lint results section is invalid and must be redone.
31
- - Lint flow is read-only first: run the check, present findings and suggested fixes, wait for user confirmation, then write to a NEW file — never overwrite the user's original file.
32
- - The plan_optimization dispatch table in references/scene-routing.md assigns a single owner per sub-intent; follow it, do not improvise.
33
-
34
- ## 1. Four-Step Identification Mechanism
35
-
36
- After receiving a tracking request, execute these four steps in order, then compose them for execution.
37
-
38
- ### Step 1 · Intent Recognition (what they want to do)
39
-
40
- Don't rely on trigger keywords alone; judge the user's action from semantics:
41
-
42
- | Intent | Typical Phrasing | Execution Mode |
43
- |-|-|-|
44
- | Audit | "Take a look / check / review this plan", "Don't modify the file" | Read-only check (audit_only), outputs issue list |
45
- | Optimize | "Help me optimize / improve this plan" | Modifies file and outputs diff list (optimize_xlsx), no upload |
46
- | From-scratch design | "Create a tracking plan", "Design from 0" | Full generation flow (generate) |
47
- | Incremental design | "Add 3 events to the payment module", "Add tracking for XX feature" | Design only the specified module, append to existing plan |
48
- | Adjustment | "Change the property type of event X", "Modify event XX" | Modify + conflict check |
49
- | Q&A | "What to do when reporting has no data", "How to integrate the SDK" | FAQ-style answer, no plan changes |
50
- | Data verification | "Verify if data is reported correctly", "Is event X tracked properly" | Quality validation / plan acceptance against real reported data. **Data seeding and presales demo-data generation are OUT OF SCOPE for this customer-facing assistant** — customers generate their own real data via test devices / debug mode; if asked to fabricate data, decline and redirect to the verification flow |
51
-
52
- Different intents within the same container scenario have different execution modes (e.g. in "plan optimization" scenario: audit = read-only, optimize = modify file, incremental = design only the specified module), so lock the intent before routing.
53
-
54
- ### Step 2 · Category Recognition (for whom)
55
-
56
- Match against the 24 categories + 1 supplemented category (`interactive_video`) in `references/category-registry.md`. The 29 local Markdown assets are not 29 complete category routes; `idle_card` has a documented cache gap and uses confirmed Idle + Card composition:
57
-
58
- - **Hit** → inject that category template's business semantics (what to track)
59
- - **Fuzzy** → list the 2–3 closest candidates and let the user confirm; do not pick on your own
60
- - **Missing** → design using the general spec + standard-base, and at the end of the output remind the user "this category can be deposited as a new category template"
61
-
62
- ### Step 3 · Scenario Recognition (which stage)
63
-
64
- Match against the 6 scenario workflows in `references/scene-routing.md`:
65
-
66
- | Scenario ID | Scenario Name | User Intent |
67
- |-|-|-|
68
- | demand_understanding | Requirements Understanding | PRD / requirements doc → tracking suggestion sheet |
69
- | plan_generation | Plan Generation | 0→1 conversation overview → direct sync or optional 11-sheet Excel; confirmed remote write |
70
- | plan_optimization | Plan Optimization | Incremental / audit / optimize, output diff list |
71
- | code_delivery | Code Delivery | SDK samples / tracking code |
72
- | integration_qna | Integration Q&A | SDK integration / reporting / pipeline Q&A and troubleshooting |
73
- | data_verification | Data Verification | Quality validation / plan acceptance (customer's real data; no seeding) |
74
-
75
- Scenario is jointly determined by "intent × input form": for the same word "plan", with an existing plan file → plan_optimization; with an empty project and a one-liner → plan_generation.
76
-
77
- ### Step 4 · Interactive Confirmation (avoid off-topic answers)
78
-
79
- Once positioning is done and before execution, generate **differentiated key-detail questions** keyed on "intent × category × scenario" to confirm with the user.
80
-
81
- - Principle: ask only high-impact details (questions that affect whether metrics can be computed and whether the event chain closes). Do not run a fixed 5-step confirmation.
82
- - Example: Interactive Film Game × Plan Optimization → What's the hierarchy of the storyline chain nodes? What's the object-group structure of mail rewards? What's the attribution data source?
83
- - When info is unclear → record as "To-be-confirmed", **do not fabricate**.
84
-
85
- ## 2. Composition and Execution
86
-
87
- ```
88
- Cell = Category Template (what to track) × Scenario Workflow (how to track)
89
- ```
90
-
91
- Load the corresponding workflow reference by `references/scene-routing.md` — all execution workflows live in-package under `references/workflows/`; **read the workflow file before executing, its hard rules apply**. For how to read category templates see `category-registry.md` (**prefer the local cache at `references/categories/`; for cached categories, do not go to Feishu/Lark**). When a category template is missing, use the standard-base foundation (`references/standard-base/` local cache, 12 sheets; prefer local reads).
92
-
93
- ### Naming Precheck Before Generation (mandatory before writing the plan JSON, prevents post-lint rework)
94
-
95
- Before generating plan content, read the "Standard Event Verb Suffix Table", "Property Name — Display Name — Type Validation Matrix", and "Forbidden Synonym Table" in `references/naming-dict.md`, and cross-check each event/property as you generate:
96
-
97
- - Within each validation domain, same property name → unique display name + type; different property names → different display names. Event + common properties share a domain, while user properties are independent. Review cross-domain meaning separately; do not claim lint enforces global cross-sheet uniqueness.
98
- - Event names use standard verb suffixes (`_get`/`_consume`/`_click`, etc.); do not use forbidden forms
99
- - **Names starting with `#` are system preset properties** (`#country`/`#duration`/`#ip`/`#os`/`#account_id`/`#distinct_id`, etc.), auto-collected by the SDK, **forbidden in the custom property tables** (`#事件数据`/`#公共事件属性`/`#用户数据`). When copying properties from a category template or the naming dictionary, auto-skip anything starting with `#` (this is the main source of lint error E01)
100
- - **Object group modeling (C6)**: same parent property name with the same child-property structure → reuse one parent property; same parent property name with different structure (e.g. "Mail Reward" vs "Leaderboard Reward") → **split into two different parent properties**; do not shoehorn fields together to force isomorphism
101
- - **Common-property judgment (E1)**: do not mechanically "promote to common property once it appears in 3+ events"; a common property must "apply to nearly all events + have a stable value at trigger time + be a globally high-frequency filter dimension", otherwise keep it as an event property (to avoid null pollution)
102
- - **Paired events (E1)**: start/end, request/result and other paired events only need to share a **correlation key** (e.g. `stage_attempt_id`, `order_id`) + common context; the object-group structure does **not** need to be fully isomorphic
103
- - **Dual-side deduplication (D4)**: a single business fact **keeps only one authoritative report point** (either client or server, pick one); do not split into two records just because both ends emit. When dual-side reporting is truly required, dedupe with `#uuid` or a business request ID; retries on failure reuse the same `#uuid`
104
-
105
- This precheck reduces avoidable conflicts; only actual checks and semantic review establish whether a specific plan passes.
106
-
107
- ### Plan Output Spec (generation/optimization scenarios)
108
-
109
- - **Conversation first, then delivery choice**: run `scripts/prepare_delivery.py --conversation-only` from canonical JSON and show the complete review, including actual counts, metric mapping, Notes/Timezone and TBC. This mode writes no `plan.xlsx` or `lint.txt`. After overview Q&A, ask the user to choose direct sync or local Excel; never default to both.
110
- - **Direct sync, no Excel**: retain the conversation-only directory and follow `references/workflows/validated-upload.md` with `scripts/sync_plan.py`. It maps the same JSON to inspected `tracking.plan.save_items`, performs read-only baseline/dry-run checks and requires a separate explicit target/scope confirmation before writing. No hidden workbook or Excel lint is involved.
111
- - **Excel only after selection**: generate from that same JSON with `python3 scripts/finalize_plan.py --plan <plan.json> --template assets/埋点模版.xlsx --output <NEW.xlsx>`, then run `lint_tracking_plan.py --strict-delivery` read-only. The v2.0.1 template retains 11 sheets, official Chinese nine-column event headers with `采集端` at E, and seven unchanged instruction sheets. Do not add custom sheets or overwrite inputs/outputs.
112
- - On repair, show a diff and obtain confirmation; save to a new file and recheck. Synchronize approved changes to canonical JSON, conversation and only the selected branch artifacts. First-run failure remains visible even if repaired-final passes.
113
- - **Discovery**: use known package paths; for unknown CLI/capability contracts use targeted `--help` or discovery + `inspect` before composing inputs. Never guess fields or loop on probes. Local lint/dry-run alone is not remote acceptance.
114
-
115
- ## 3. Cross-Cutting Concerns (across scenarios, do not occupy cells)
116
-
117
- 1. **Multi-attachment parsing**: when the user uploads multiple attachments at once, each one must be identified and listed. (Known bug A1: multi-attachment only recognizes one. Before it is fixed, manually confirm every attachment was read.)
118
- 2. **Mounting custom skills**: handled by route — Route A (cloud preset Agent) does not open this capability (A5); redirect to the cli + local agent route. Route B (cli + local agent, on-machine) **supports mounting**: drop the custom skill into `.claude/skills/` (project level or user level), then wire it up in one of three places — `category-registry.md` / `scene-routing.md` / project `CLAUDE.md` (category route / scenario route / global constraint) — declaring when the skill must be loaded.
119
- 3. **Deliverable output**: plan output includes a "Notes" + "Timezone" section by default, aligned with the standard-base foundation (A7).
120
-
121
- ## 4. Global Constraints
122
-
123
- - **No upload by default**: only enter the upload flow when the user explicitly asks for "upload to AE".
124
- - **The original plan is a baseline, not the truth**: in optimization scenarios, the user-confirmed business design can override the original plan, but a diff list must be emitted (light-orange mark / change log / to-be-confirmed items).
125
- - **Non-standard input is not an error**: a regular Excel / Feishu sheet / screenshot / PRD is read as a business draft; identify event blocks / property blocks / requirement notes and convert to a standard Draft; do not flag severe errors directly.
126
- - **Task mode separation**: audit_only (check only) / optimize_xlsx (produce a new Excel) / update_existing (continuous iteration) / upload (only after explicit request).
127
- - Business-design-layer mandates: metric→event mapping, a scoped property registry (`references/naming-dict.md`), and all 15 checks in `references/business-semantic-checks.md`. These are **manual/model-assisted semantic review**, not implemented automatic scoring. Verify E1 `ad_fail` + callback/TBC, E2 `first_media_source` / `first_campaign`, actual event counts, and language following in generation, review and acceptance.
128
-
129
- ## 5. References
130
-
131
- **Workflows (execution flows, load after routing):**
132
-
133
- - `references/workflows/plan-generation.md` — From-scratch / full-refactor plan generation (absorbed from `tracking-plan-generator-en`)
134
- - `references/workflows/plan-lint.md` — Upload-rule validation & auto-fix, E01–E10 (absorbed from `tracking-plan-linter-en`)
135
- - `references/workflows/plan-review-optimize.md` — Semantic audit / optimize / increment of existing plans (absorbed from `ae-tracking-plan-en`)
136
- - `references/workflows/feasibility-analysis.md` — Analysis-requirement coverage & feasibility assessment (absorbed from `te-feasibility-analyzer-en`)
137
- - `references/workflows/prd-to-suggestions.md` — PRD / requirements doc → tracking suggestion table (absorbed from `prd-tracking-analyst-en`)
138
- - `references/workflows/data-verification.md` — Data quality validation / plan acceptance (absorbed from `te-data-verifier-en`; SQL checks in `references/data-verification/`)
139
- - `references/workflows/integration-qna.md` — SDK integration & reporting Q&A (absorbed from `data-integration-assistant-en`; knowledge base in `references/sdk/`)
140
- - `references/workflows/troubleshooting.md` — Read-only diagnosis triage (condensed from `diagnose-studio-en`; local Web Studio engine is Route-B only)
141
-
142
- **Knowledge bases and dictionaries:**
143
-
144
- - `references/category-registry.md` — 24 base categories + 1 supplemented interactive_video; local-cache first, one Feishu-fallback and a documented Idle Card gap
145
- - `references/scene-routing.md` — 6 scenarios × workflow route; official CLI/capability discovery before unknown input, no guessed fields or endless probes
146
- - `references/workflows/validated-upload.md` — conversation overview → direct structured sync or selected Excel → explicit scoped confirmation/read-back; no unrequested workbook, implicit delete or overwrite
147
- - `references/business-semantic-checks.md` — 15 manual/model-assisted checks, not automated scoring
148
- - `references/eval-cases.md` — Seven acceptance cases; historical isolated v2.0 results separated from unrun v2.0.1 runtime status, D1 routing and C5 deployment permissions
149
- - `references/naming-dict.md` — Global property registry (event verb table + property-name/display-name/type matrix + forbidden synonym table; authoritative naming across all scenarios; addresses C3)
150
- - `references/te-field-translations.md` — Field translation table (full 1791-line version, merged from the former feasibility package in v2.0; the pre-v2.0 copy in this package was a 34-line stub)
151
- - `references/ae-capabilities.md` — AE capability quick reference (v2.0: canonical copy taken from the former solution-builder package — verified against official docs, more complete)
152
- - `references/optimization-checklist.md` — Optimization & acceptance checklist (absorbed from `ae-tracking-plan-en`)
153
- - `references/system-fields.md` — System preset fields reference for analysis models (absorbed from `system-field-reference-en`)
154
- - `references/categories/` — 29 local Markdown assets, including shared modules and the incomplete Idle Card cache; presence is not proof of complete business coverage
155
- - `references/standard-base/` — Standard-base foundation 12-sheet local cache (2026-09-20, prefer local; see mapping table in category-registry.md)
156
- - `references/plan-generation/` — Generation-domain deep references: `reference.md` (SDK auto-collection, object-group rules, revenue-model rules), `naming-dict` usage, `template-catalog.md`, `module-baseline.md`, `export-schema.md`
157
- - `references/sdk/` — Integration knowledge base (client-sdk / server-sdk / faq / integration-tools / te-data-rules, absorbed from `data-integration-assistant-en`)
158
- - `references/data-verification/` — Verification SQL library: `sql_checks.md`, `diagnosis_kb.md`, `tracking_plan_comparison.md`
159
-
160
- **Scripts:**
161
-
162
- - `scripts/lint_tracking_plan.py` — Plan upload validation (10 rule classes E01-E10; canonical copy, matched to the Chinese deliverable template)
163
- - `scripts/export_tracking_plan.py` — Compatibility CLI alias (`--input`, `--output`) to the same 11-sheet finalizer; no standalone four-sheet mode or overwrite flag
164
- - `scripts/finalize_plan.py` — Template-fill path from JSON to the repaired 11-sheet Chinese template; output must be new
165
- - `scripts/build_template_catalog.py` — Reads actual category Markdown metadata only; `--output NEW.md` required, never overwrites curated business summaries
166
- - `scripts/plan_types.py` — Shared property-type and update-method alias normalization; no guessed semantics
167
- - `scripts/plan_contract.py` — Shared local plan/template contracts
168
- - `scripts/prepare_delivery.py` — with `--conversation-only`, produces JSON, conversation and validation/review artifacts without XLSX; omit it only for the explicitly selected Excel path
169
- - `scripts/sync_plan.py` — guarded no-Excel structured sync through `tracking.plan.save_items`, with dry-run, target/version/scope confirmation and read-back evidence
170
- - `scripts/upload_plan.py` — legacy guarded Excel-import adapter; not used by the direct-sync branch
@@ -1,12 +0,0 @@
1
- zh:
2
- name: "埋点矩阵"
3
- description: "统一识别埋点需求,支持方案生成、审核、优化与上传,并引导埋点代码生成、数据验证和用户 ID 绑定诊断。"
4
- en:
5
- name: "Tracking Matrix"
6
- description: "Identify tracking needs and guide plan generation, review, optimization and upload, tracking code generation, data verification and user ID binding diagnosis."
7
- ja:
8
- name: "トラッキングマトリクス"
9
- description: "トラッキング要件を整理し、プランの生成・レビュー・最適化・アップロード、コード生成、データ検証、ユーザーID紐付け診断を案内します。"
10
- ko:
11
- name: "트래킹 매트릭스"
12
- description: "트래킹 요구사항을 파악하고 플랜 생성·검토·최적화·업로드, 트래킹 코드 생성, 데이터 검증 및 사용자 ID 연동 진단을 안내합니다."