@thinkingai/ae-cli 6.0.58 → 6.0.61

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 (281) hide show
  1. package/README.md +14 -6
  2. package/README.zh.md +16 -6
  3. package/bin/ai-monitor.js +2 -0
  4. package/bin/runtime-capabilities.json +1 -1
  5. package/dist/ai-monitor-NUKSJPLE.js +33 -0
  6. package/dist/ai-monitor.js +136 -0
  7. package/dist/{auth-A5OO4VS4.js → auth-MVAEBGBP.js} +24 -15
  8. package/dist/{automation-FD2QZUP6.js → automation-6L6IAYRK.js} +6 -7
  9. package/dist/{capability-SKI4GHF4.js → capability-74N7AN5X.js} +35 -38
  10. package/dist/{chunk-OAWPT7VP.js → chunk-2I5SZ5DS.js} +2 -2
  11. package/dist/{chunk-QWSA3EOD.js → chunk-7WBCSJL6.js} +23 -9
  12. package/dist/{chunk-4PSTYEG5.js → chunk-AMURHMS3.js} +11 -7
  13. package/dist/{chunk-KPQY44JQ.js → chunk-AWW2T2WL.js} +3 -0
  14. package/dist/chunk-BQFLABJQ.js +186 -0
  15. package/dist/{chunk-E25OSZLJ.js → chunk-COOMXFUG.js} +3 -3
  16. package/dist/chunk-EFGUBGA6.js +64 -0
  17. package/dist/{chunk-HQCY3QCA.js → chunk-H35VDOAE.js} +18 -13
  18. package/dist/{chunk-VDICGXCY.js → chunk-HIMOBNEY.js} +2 -2
  19. package/dist/{chunk-JEUXDY3B.js → chunk-HQED4YB4.js} +1 -1
  20. package/dist/chunk-HRFYYEXR.js +1285 -0
  21. package/dist/{chunk-UYJMEHAF.js → chunk-JZY6WWAP.js} +22 -21
  22. package/dist/{chunk-2F64AZYH.js → chunk-KA5WKR5P.js} +2 -2
  23. package/dist/{chunk-YVG6QD3V.js → chunk-LFJ7N36I.js} +103 -8
  24. package/dist/{chunk-EEARZNHE.js → chunk-LPKIMGIU.js} +89 -37
  25. package/dist/chunk-NNK3JBH4.js +60 -0
  26. package/dist/{chunk-WMDO53YK.js → chunk-OTZ4JQDU.js} +2 -2
  27. package/dist/{chunk-SOSFRU3O.js → chunk-PLNS5J33.js} +58 -26
  28. package/dist/chunk-PUSFEC6B.js +29 -0
  29. package/dist/{chunk-Z3Q2AEIN.js → chunk-R2SVAO4G.js} +14 -2
  30. package/dist/{chunk-K2Z7QHDR.js → chunk-RB26WNLM.js} +52 -15
  31. package/dist/chunk-SVNED423.js +556 -0
  32. package/dist/{chunk-AWVZTN2B.js → chunk-THTROEGD.js} +1 -1
  33. package/dist/{chunk-QVRIDN42.js → chunk-UCMO4LKL.js} +2 -2
  34. package/dist/{chunk-JSBLCLFE.js → chunk-VLOGOM7N.js} +13 -7
  35. package/dist/{chunk-GBSACKFB.js → chunk-XPARQSYS.js} +528 -299
  36. package/dist/{chunk-72NJKS7O.js → chunk-XZDKAR4N.js} +4 -4
  37. package/dist/{community-report-client-TJVCLZ3K.js → community-report-client-ULRNXLQV.js} +1 -1
  38. package/dist/{compat-check-WFEKVLTH.js → compat-check-W4XC27RG.js} +5 -4
  39. package/dist/{config-U4I7X25P.js → config-264GB6C7.js} +28 -14
  40. package/dist/{context-CDB5H5PD.js → context-SOQDFZIB.js} +8 -6
  41. package/dist/{data-integration-QE37EQ3A.js → data-integration-UNJ7EPW2.js} +6 -6
  42. package/dist/{evaluation-LR4YDYWL.js → evaluation-Q3AIGFOG.js} +14 -159
  43. package/dist/index.js +98 -589
  44. package/dist/{local-data-upload-client-KCMG6J62.js → local-data-upload-client-YTWMAAGE.js} +1 -1
  45. package/dist/{memory-SNFR5M23.js → memory-ZLTTULZK.js} +9 -10
  46. package/dist/{metadata-6QM6EED5.js → metadata-EN2IWCDI.js} +11 -10
  47. package/dist/{model-KEVCEXWD.js → model-NAKQWK4W.js} +4 -5
  48. package/dist/{personal-semantic-preference-7VXQPP2N.js → personal-semantic-preference-UGN67KTN.js} +46 -15
  49. package/dist/{project-semantic-PSEPYH2L.js → project-semantic-5OP3YPZD.js} +19 -16
  50. package/dist/{sync-22ACDK5Z.js → sync-LDJQZRQH.js} +9 -9
  51. package/dist/{te-agent-BJ36B4QI.js → te-agent-WNNAD4AJ.js} +303 -17
  52. package/dist/{te-analysis-WQ6D6YG4.js → te-analysis-KIMH6AGU.js} +399 -205
  53. package/dist/{te-community-VRWMFGI6.js → te-community-P7NNBVCS.js} +17 -15
  54. package/dist/{te-dataops-YTLFTTW7.js → te-dataops-ZRKSG4R7.js} +13 -11
  55. package/dist/{te-engage-V2QW7TIC.js → te-engage-PVBVNRSU.js} +13 -12
  56. package/dist/{te-kb-4AQLISDR.js → te-kb-W7PRC7QN.js} +80 -20
  57. package/dist/{te-system-CYWSK3UN.js → te-system-F4ZU2HRQ.js} +6 -7
  58. package/dist/{te-team-6ELNGBWT.js → te-team-5ONMRGKF.js} +9 -8
  59. package/dist/{things-HFWLGCUH.js → things-PFENSIF4.js} +9 -8
  60. package/dist/{update-3CRVVHV5.js → update-EUZ4GNND.js} +8 -6
  61. package/dist/{workspace-2CKQX2XL.js → workspace-Z7L33OBQ.js} +6 -7
  62. package/package.json +12 -7
  63. package/skills/ae-agent/SKILL.md +19 -5
  64. package/skills/ae-agent/references/a2a.md +103 -0
  65. package/skills/ae-agent/references/command_index.md +11 -0
  66. package/skills/ae-ai-monitor/SKILL.md +179 -0
  67. package/skills/ae-ai-monitor/references/read-commands.md +866 -0
  68. package/skills/ae-analysis/SKILL.md +43 -25
  69. package/skills/ae-analysis/references/adhoc_export.md +3 -1
  70. package/skills/ae-analysis/references/ai_models.md +1 -0
  71. package/skills/ae-analysis/references/analysis_data_retrieval.md +1 -1
  72. package/skills/ae-analysis/references/analysis_gateway_assets.md +2 -0
  73. package/skills/ae-analysis/references/asset_authentication_export.md +1 -1
  74. package/skills/ae-analysis/references/asset_authentication_update.md +6 -2
  75. package/skills/ae-analysis/references/asset_search.md +1 -1
  76. package/skills/ae-analysis/references/bad_case_begin.md +12 -0
  77. package/skills/ae-analysis/references/bad_case_get.md +12 -0
  78. package/skills/ae-analysis/references/bad_case_history.md +12 -0
  79. package/skills/ae-analysis/references/bad_case_list.md +12 -0
  80. package/skills/ae-analysis/references/bad_case_review.md +51 -0
  81. package/skills/ae-analysis/references/bad_case_run.md +12 -0
  82. package/skills/ae-analysis/references/bad_case_submit.md +12 -0
  83. package/skills/ae-analysis/references/bad_case_submit_to_page.md +12 -0
  84. package/skills/ae-analysis/references/bad_case_sync_evaluation.md +11 -0
  85. package/skills/ae-analysis/references/bi_panel_list.md +1 -1
  86. package/skills/ae-analysis/references/bi_panel_share.md +3 -1
  87. package/skills/ae-analysis/references/catalog_list.md +2 -0
  88. package/skills/ae-analysis/references/command_index.md +44 -35
  89. package/skills/ae-analysis/references/dashboard_daily_report_update.md +2 -0
  90. package/skills/ae-analysis/references/dashboard_handover.md +3 -1
  91. package/skills/ae-analysis/references/dashboard_list.md +3 -3
  92. package/skills/ae-analysis/references/dashboard_report_data_export.md +1 -1
  93. package/skills/ae-analysis/references/dashboard_share.md +3 -1
  94. package/skills/ae-analysis/references/dashboard_update.md +3 -2
  95. package/skills/ae-analysis/references/filter_value_list.md +2 -0
  96. package/skills/ae-analysis/references/folder_share.md +8 -2
  97. package/skills/ae-analysis/references/governance_recommendation_export.md +2 -2
  98. package/skills/ae-analysis/references/governance_recommendation_run_update.md +3 -1
  99. package/skills/ae-analysis/references/personal_semantic_preference_add.md +9 -1
  100. package/skills/ae-analysis/references/personal_semantic_preference_delete.md +2 -0
  101. package/skills/ae-analysis/references/personal_semantic_preference_get.md +2 -0
  102. package/skills/ae-analysis/references/personal_semantic_preference_list.md +10 -2
  103. package/skills/ae-analysis/references/personal_semantic_preference_update.md +8 -0
  104. package/skills/ae-analysis/references/project_data_power_upsert.md +3 -1
  105. package/skills/ae-analysis/references/project_mark_time_create.md +2 -0
  106. package/skills/ae-analysis/references/project_mark_time_update.md +2 -0
  107. package/skills/ae-analysis/references/project_member_add.md +3 -1
  108. package/skills/ae-analysis/references/project_member_batch_update.md +3 -1
  109. package/skills/ae-analysis/references/project_member_handover_run.md +3 -1
  110. package/skills/ae-analysis/references/project_member_update.md +3 -1
  111. package/skills/ae-analysis/references/project_owner_update.md +8 -2
  112. package/skills/ae-analysis/references/project_role_upsert.md +5 -3
  113. package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +16 -1
  114. package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +14 -1
  115. package/skills/ae-analysis/references/project_space_share.md +8 -2
  116. package/skills/ae-analysis/references/property_get.md +2 -0
  117. package/skills/ae-analysis/references/public_link_list.md +3 -1
  118. package/skills/ae-analysis/references/query_cancel.md +4 -1
  119. package/skills/ae-analysis/references/report_data_run.md +1 -1
  120. package/skills/ae-analysis/references/report_list.md +3 -3
  121. package/skills/ae-analysis/references/scenario_append.md +2 -2
  122. package/skills/ae-analysis/references/scenario_collect.md +15 -4
  123. package/skills/ae-analysis/references/scenario_evaluation.md +17 -1
  124. package/skills/ae-analysis/references/scenario_list.md +7 -7
  125. package/skills/ae-analysis/references/system_oauth2_update.md +3 -1
  126. package/skills/ae-analysis/references/system_third_party_login_upsert.md +4 -2
  127. package/skills/ae-analysis/references/user_tag_create.md +4 -1
  128. package/skills/ae-analysis/references/user_tag_get.md +2 -0
  129. package/skills/ae-analysis/references/user_tag_models.md +8 -2
  130. package/skills/ae-analysis/references/user_tag_update.md +5 -2
  131. package/skills/ae-analysis/references/virtual_property_create.md +12 -1
  132. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +10 -0
  133. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +55 -13
  134. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +2 -2
  135. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +2 -2
  136. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +7 -1
  137. package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/wait-compile-run.mjs +79 -0
  138. package/skills/ae-automation/SKILL.md +4 -2
  139. package/skills/ae-capability/SKILL.md +16 -8
  140. package/skills/ae-community/SKILL.md +1 -0
  141. package/skills/ae-dataops/SKILL.md +1 -0
  142. package/skills/ae-engage/SKILL.md +1 -0
  143. package/skills/ae-evaluation/SKILL.md +17 -2
  144. package/skills/ae-generate-tracking-plan/SKILL.md +5 -0
  145. package/skills/ae-kb/SKILL.md +8 -4
  146. package/skills/ae-kb/references/analysis-workflow.md +11 -2
  147. package/skills/ae-kb/references/publication.md +45 -0
  148. package/skills/ae-kb/references/query-workflow.md +3 -1
  149. package/skills/ae-kb/references/versions.md +1 -1
  150. package/skills/ae-metadata/SKILL.md +1 -0
  151. package/skills/ae-migrate-tracking-code/SKILL.md +2 -1
  152. package/skills/ae-team/SKILL.md +1 -1
  153. package/skills/ae-tracking-matrix/SKILL.md +170 -0
  154. package/skills/ae-tracking-matrix/assets//345/237/213/347/202/271/346/250/241/347/211/210.xlsx +0 -0
  155. package/skills/ae-tracking-matrix/i18n.yaml +12 -0
  156. package/skills/ae-tracking-matrix/references/ae-capabilities.md +93 -0
  157. package/skills/ae-tracking-matrix/references/business-semantic-checks.md +30 -0
  158. package/skills/ae-tracking-matrix/references/categories/acquaintance_social_tracking_plan_template.md +256 -0
  159. package/skills/ae-tracking-matrix/references/categories/blockchain_game_tracking_plan_template.md +213 -0
  160. package/skills/ae-tracking-matrix/references/categories/card_game_tracking_plan_template.md +407 -0
  161. package/skills/ae-tracking-matrix/references/categories/casual_game_tracking_plan_template.md +218 -0
  162. package/skills/ae-tracking-matrix/references/categories/casual_music.md +112 -0
  163. package/skills/ae-tracking-matrix/references/categories/chess_cards_tracking_plan_template.md +301 -0
  164. package/skills/ae-tracking-matrix/references/categories/ecommerce_tracking_plan_template.md +356 -0
  165. package/skills/ae-tracking-matrix/references/categories/fishing.md +775 -0
  166. package/skills/ae-tracking-matrix/references/categories/game_basic_module_tracking_plan.md +89 -0
  167. package/skills/ae-tracking-matrix/references/categories/idle_card.md +27 -0
  168. package/skills/ae-tracking-matrix/references/categories/idle_game_tracking_plan_template.md +415 -0
  169. package/skills/ae-tracking-matrix/references/categories/interactive_video.md +133 -0
  170. package/skills/ae-tracking-matrix/references/categories/merge.md +639 -0
  171. package/skills/ae-tracking-matrix/references/categories/mmo_mobile_tracking_plan_template.md +406 -0
  172. package/skills/ae-tracking-matrix/references/categories/mmo_web.md +230 -0
  173. package/skills/ae-tracking-matrix/references/categories/music.md +137 -0
  174. package/skills/ae-tracking-matrix/references/categories/online_education_tracking_plan_template.md +414 -0
  175. package/skills/ae-tracking-matrix/references/categories/qipai_mj.md +199 -0
  176. package/skills/ae-tracking-matrix/references/categories/reading_tracking_plan_template.md +158 -0
  177. package/skills/ae-tracking-matrix/references/categories/roguelike_tracking_plan_template.md +546 -0
  178. package/skills/ae-tracking-matrix/references/categories/rpg.md +195 -0
  179. package/skills/ae-tracking-matrix/references/categories/short_drama_tracking_plan_template.md +115 -0
  180. package/skills/ae-tracking-matrix/references/categories/simulation_business_tracking_plan_template.md +151 -0
  181. package/skills/ae-tracking-matrix/references/categories/slg_tracking_plan_template.md +260 -0
  182. package/skills/ae-tracking-matrix/references/categories/slots_tracking_plan_template.md +232 -0
  183. package/skills/ae-tracking-matrix/references/categories/stranger_social_tracking_plan_template.md +359 -0
  184. package/skills/ae-tracking-matrix/references/categories/tower_defense.md +365 -0
  185. package/skills/ae-tracking-matrix/references/categories/video_editor_tracking_plan_template.md +211 -0
  186. package/skills/ae-tracking-matrix/references/categories/wechat_minigame.md +132 -0
  187. package/skills/ae-tracking-matrix/references/category-registry.md +77 -0
  188. package/skills/ae-tracking-matrix/references/data-verification/diagnosis_kb.md +230 -0
  189. package/skills/ae-tracking-matrix/references/data-verification/sql_checks.md +406 -0
  190. package/skills/ae-tracking-matrix/references/data-verification/tracking_plan_comparison.md +128 -0
  191. package/skills/ae-tracking-matrix/references/eval-cases.md +74 -0
  192. package/skills/ae-tracking-matrix/references/naming-dict.md +238 -0
  193. package/skills/ae-tracking-matrix/references/optimization-checklist.md +85 -0
  194. package/skills/ae-tracking-matrix/references/plan-generation/export-schema.md +142 -0
  195. package/skills/ae-tracking-matrix/references/plan-generation/module-baseline.md +47 -0
  196. package/skills/ae-tracking-matrix/references/plan-generation/reference.md +794 -0
  197. package/skills/ae-tracking-matrix/references/plan-generation/template-catalog.md +94 -0
  198. package/skills/ae-tracking-matrix/references/scene-routing.md +80 -0
  199. package/skills/ae-tracking-matrix/references/sdk/client-sdk/android.md +3787 -0
  200. package/skills/ae-tracking-matrix/references/sdk/client-sdk/c.md +827 -0
  201. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-lua.md +655 -0
  202. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocos2d-x.md +953 -0
  203. package/skills/ae-tracking-matrix/references/sdk/client-sdk/cocoscreator.md +1128 -0
  204. package/skills/ae-tracking-matrix/references/sdk/client-sdk/corona.md +714 -0
  205. package/skills/ae-tracking-matrix/references/sdk/client-sdk/egret.md +1268 -0
  206. package/skills/ae-tracking-matrix/references/sdk/client-sdk/flutter.md +776 -0
  207. package/skills/ae-tracking-matrix/references/sdk/client-sdk/h5-and-app-sdk-integration.md +182 -0
  208. package/skills/ae-tracking-matrix/references/sdk/client-sdk/ios.md +2755 -0
  209. package/skills/ae-tracking-matrix/references/sdk/client-sdk/javascript.md +1182 -0
  210. package/skills/ae-tracking-matrix/references/sdk/client-sdk/layaair.md +1300 -0
  211. package/skills/ae-tracking-matrix/references/sdk/client-sdk/macos.md +1369 -0
  212. package/skills/ae-tracking-matrix/references/sdk/client-sdk/mini-program-mini-game.md +1692 -0
  213. package/skills/ae-tracking-matrix/references/sdk/client-sdk/openharmony.md +902 -0
  214. package/skills/ae-tracking-matrix/references/sdk/client-sdk/react-native.md +763 -0
  215. package/skills/ae-tracking-matrix/references/sdk/client-sdk/uni-app.md +1107 -0
  216. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unity.md +1532 -0
  217. package/skills/ae-tracking-matrix/references/sdk/client-sdk/unreal.md +845 -0
  218. package/skills/ae-tracking-matrix/references/sdk/faq/android_sdk_faq.md +228 -0
  219. package/skills/ae-tracking-matrix/references/sdk/faq/ios_sdk_faq.md +149 -0
  220. package/skills/ae-tracking-matrix/references/sdk/faq/java_sdk_faq.md +407 -0
  221. package/skills/ae-tracking-matrix/references/sdk/faq/javascript_sdk_faq.md +163 -0
  222. package/skills/ae-tracking-matrix/references/sdk/faq/minigame_sdk_faq.md +149 -0
  223. package/skills/ae-tracking-matrix/references/sdk/faq/miniprogram_sdk_faq.md +153 -0
  224. package/skills/ae-tracking-matrix/references/sdk/faq/python_sdk_faq.md +232 -0
  225. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_log_guide.md +314 -0
  226. package/skills/ae-tracking-matrix/references/sdk/faq/sdk_usage_notes.md +117 -0
  227. package/skills/ae-tracking-matrix/references/sdk/faq/unity_sdk_faq.md +148 -0
  228. package/skills/ae-tracking-matrix/references/sdk/integration-tools/filebeat-logstash-guide.md +645 -0
  229. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_guide.md +307 -0
  230. package/skills/ae-tracking-matrix/references/sdk/integration-tools/logbus2_parser_plugin.md +347 -0
  231. package/skills/ae-tracking-matrix/references/sdk/integration-tools/restful_api_notes.md +72 -0
  232. package/skills/ae-tracking-matrix/references/sdk/integration-tools/ta-datax-writer-guide.md +264 -0
  233. package/skills/ae-tracking-matrix/references/sdk/server-sdk/c.md +566 -0
  234. package/skills/ae-tracking-matrix/references/sdk/server-sdk/erlang.md +409 -0
  235. package/skills/ae-tracking-matrix/references/sdk/server-sdk/golang.md +446 -0
  236. package/skills/ae-tracking-matrix/references/sdk/server-sdk/java.md +557 -0
  237. package/skills/ae-tracking-matrix/references/sdk/server-sdk/lua.md +457 -0
  238. package/skills/ae-tracking-matrix/references/sdk/server-sdk/nodejs.md +490 -0
  239. package/skills/ae-tracking-matrix/references/sdk/server-sdk/php.md +523 -0
  240. package/skills/ae-tracking-matrix/references/sdk/server-sdk/python.md +484 -0
  241. package/skills/ae-tracking-matrix/references/sdk/server-sdk/ruby.md +442 -0
  242. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/data-rules.md +391 -0
  243. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/first-event-validation.md +91 -0
  244. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/preset-properties-system-fields.md +635 -0
  245. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/updatable-events.md +113 -0
  246. package/skills/ae-tracking-matrix/references/sdk/te-data-rules/user-identification-rules.md +466 -0
  247. package/skills/ae-tracking-matrix/references/standard-base/README.md +22 -0
  248. package/skills/ae-tracking-matrix/references/standard-base/basic_event_data.md +174 -0
  249. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties.md +20 -0
  250. package/skills/ae-tracking-matrix/references/standard-base/common_event_properties_setup.md +7 -0
  251. package/skills/ae-tracking-matrix/references/standard-base/data_type_design_principles.md +14 -0
  252. package/skills/ae-tracking-matrix/references/standard-base/gameplay_event_data.md +370 -0
  253. package/skills/ae-tracking-matrix/references/standard-base/id_system_faq.md +47 -0
  254. package/skills/ae-tracking-matrix/references/standard-base/integration_must_know.md +37 -0
  255. package/skills/ae-tracking-matrix/references/standard-base/multi_platform_integration_notes.md +27 -0
  256. package/skills/ae-tracking-matrix/references/standard-base/multi_user_id_system_recommendations.md +23 -0
  257. package/skills/ae-tracking-matrix/references/standard-base/tracking_notes.md +14 -0
  258. package/skills/ae-tracking-matrix/references/standard-base/user_data.md +46 -0
  259. package/skills/ae-tracking-matrix/references/standard-base/user_id_system.md +13 -0
  260. package/skills/ae-tracking-matrix/references/system-fields.md +297 -0
  261. package/skills/ae-tracking-matrix/references/te-field-translations.md +1791 -0
  262. package/skills/ae-tracking-matrix/references/workflows/data-verification.md +232 -0
  263. package/skills/ae-tracking-matrix/references/workflows/feasibility-analysis.md +829 -0
  264. package/skills/ae-tracking-matrix/references/workflows/integration-qna.md +355 -0
  265. package/skills/ae-tracking-matrix/references/workflows/plan-generation.md +283 -0
  266. package/skills/ae-tracking-matrix/references/workflows/plan-lint.md +168 -0
  267. package/skills/ae-tracking-matrix/references/workflows/plan-review-optimize.md +205 -0
  268. package/skills/ae-tracking-matrix/references/workflows/prd-to-suggestions.md +75 -0
  269. package/skills/ae-tracking-matrix/references/workflows/troubleshooting.md +36 -0
  270. package/skills/ae-tracking-matrix/references/workflows/validated-upload.md +107 -0
  271. package/skills/ae-tracking-matrix/scripts/build_template_catalog.py +114 -0
  272. package/skills/ae-tracking-matrix/scripts/export_tracking_plan.py +53 -0
  273. package/skills/ae-tracking-matrix/scripts/finalize_plan.py +166 -0
  274. package/skills/ae-tracking-matrix/scripts/lint_tracking_plan.py +674 -0
  275. package/skills/ae-tracking-matrix/scripts/plan_contract.py +200 -0
  276. package/skills/ae-tracking-matrix/scripts/plan_types.py +60 -0
  277. package/skills/ae-tracking-matrix/scripts/prepare_delivery.py +169 -0
  278. package/skills/ae-tracking-matrix/scripts/sync_plan.py +296 -0
  279. package/skills/ae-tracking-matrix/scripts/upload_plan.py +340 -0
  280. package/dist/chunk-AMBFK2K3.js +0 -28
  281. package/dist/chunk-Y74WTIKJ.js +0 -10
@@ -0,0 +1,238 @@
1
+ # Naming Dictionary & Validation Matrix
2
+
3
+ > Purpose: prevent one concept from having multiple names, and eliminate one-to-many conflicts across property name ↔ display name ↔ type.
4
+ > Before adding a property/event, consult this table; existing mappings must be reused — do not coin synonyms.
5
+ > Legacy names, legacy types and legacy display names in the industry template assets are reference-only; this file is authoritative.
6
+
7
+ ---
8
+
9
+ ## 1. Standard Event Verb Table
10
+
11
+ | Verb Suffix | Meaning | Correct Example | Forbidden Form |
12
+ | ------------- | --------- | -------------------------------- | ---------------------------------- |
13
+ | `_show` | Page/dialog impression | `shop_show` | `shop_display`, `shop_view` |
14
+ | `_click` | User click | `hero_click` | `hero_tap`, `hero_press` |
15
+ | `_start` | Flow start | `battle_start` | `battle_begin`, `battle_launch` |
16
+ | `_end` | Flow end | `battle_end` | `battle_finish`, `battle_over` |
17
+ | `_win` | Battle victory | `battle_win` | `battle_success`, `battle_victory` |
18
+ | `_fail` | Battle loss / flow failure | `battle_fail` | `battle_lose`, `battle_defeat` |
19
+ | `_levelup` | Level up | `hero_levelup` | `hero_upgrade`, `hero_level_up` |
20
+ | `_get` | Gain asset/item | `asset_get`, `item_get` | `asset_receive`, `item_gain` |
21
+ | `_consume` | Consume asset/item | `asset_consume`, `token_consume` | `asset_use`, `token_spend` |
22
+ | `_buy` | Shop purchase | `shop_buy` | `shop_purchase`, `item_buy` |
23
+ | `_claim` | Claim reward | `reward_claim` | `reward_receive`, `reward_get` |
24
+ | `_open` | Open page/entry | `shop_open` | `shop_enter`, `shop_visit` |
25
+ | `_enter` | Enter gameplay scene | `season_enter` | `season_join`, `season_start` |
26
+ | `_complete` | Task/tutorial completion | `guide_complete` | `guide_finish`, `guide_done` |
27
+ | `_settlement` | Settlement | `season_points_settlement` | `season_points_settle` |
28
+
29
+ ---
30
+
31
+ ## 2. Reusable Property Mappings — Scope Must Be Confirmed
32
+
33
+ > Reuse a mapping only for the same business meaning. This is not a mandatory global common-property list: promote a field only when it applies to nearly all events, is stable at trigger time, and is a global analysis dimension. Display-name examples here are English; use one consistent user-language display name per validation domain. Event + common properties share a domain; user properties are validated independently, with semantic cross-domain checks during review.
34
+ > Attribution fields (`media_source`, `campaign`, `first_media_source`, `first_campaign`) default to attribution-event properties or user properties, **not global common event properties**. Preserve the distinction between first-touch, current attribution and per-event campaign snapshots.
35
+
36
+ | Property Name | Standard Display Name | Type | Description/Unit |
37
+ | -------------- | ------- | --- | ----------------- |
38
+ | `channel` | Channel | Text | Acquisition channel |
39
+ | `media_source` | Media Source | Text | Attribution-event source snapshot (AF/Adjust); not a first-touch synonym or global common field |
40
+ | `campaign` | Campaign | Text | Attribution-event campaign snapshot; not first campaign |
41
+ | `first_media_source` | First Media Source | Text | First confirmed attribution, user_setOnce; E2 required |
42
+ | `first_campaign` | First Campaign | Text | First confirmed campaign, user_setOnce; E2 required |
43
+ | `current_media_source` | Current Media Source | Text | Latest confirmed attribution, user_set if needed |
44
+ | `current_campaign` | Current Campaign | Text | Latest confirmed campaign, user_set if needed |
45
+ | `active_days` | Active Days | Number | Cumulative days since registration |
46
+ | `server_id` | Server ID | Text | Server the player is on |
47
+ | `tmp_level` | Player Level | Number | Current level |
48
+ | `nick_name` | Nickname | Text | Character nickname |
49
+ | `tmp_diamond` | Diamond Balance | Number | Current paid-currency balance |
50
+ | `tmp_gold` | Gold Balance | Number | Current soft-currency balance |
51
+ | `season_id` | Season ID | Text | Current season identifier |
52
+ | `first_cpm` | First Ad CPM | Number | First-value user property if a real callback supplies it; currency/unit confirmed, otherwise TBC; not globally common |
53
+ | `tag1` | Ad Tag 1 | Text | IAA product tiering tag |
54
+
55
+ ---
56
+
57
+ ## 3. Standard Custom Property Dictionary
58
+
59
+ > Cross-event reused properties (e.g. `battle_type`, `item_id`) must follow the table below; do not rename across events.
60
+
61
+ ### 3.1 General Properties
62
+
63
+ | Property Name | Standard Display Name | Type | Description |
64
+ | --------------- | ----- | --- | ------------------------------ |
65
+ | `is_first` | Is First Time | Boolean | True on first trigger |
66
+ | `duration` | Event Duration | Number | Unit: seconds (use `duration_ms` for milliseconds) |
67
+ | `level` | Current Level | Number | Level snapshot at trigger |
68
+ | `level_before` | Level Before | Number | Levelup events only |
69
+ | `fail_reason` | Fail Reason | Text | Failure/error description |
70
+ | `order_id` | Order ID | Text | Recharge/transaction order number |
71
+ | `pay_amount` | Pay Amount | Number | Unit: fen (CN) / cents (overseas) |
72
+ | `currency_type` | Currency Type | Text | ISO 4217 code, e.g. CNY/USD |
73
+ | `payment_name` | Payment Method | Text | WeChat Pay / Alipay / AppStore, etc. |
74
+ | `payment_type` | Payment Type | Text | Monthly card / gift pack / direct purchase, etc. |
75
+ | `activity_type` | Activity Type | Text | Enum of activity categories |
76
+ | `activity_id` | Activity ID | Text | Suggest linking to a dimension table |
77
+
78
+ ### 3.2 Game Battle
79
+
80
+ | Property Name | Standard Display Name | Type | Description |
81
+ | ------------------- | ------ | --- | ------------------------------------------ |
82
+ | `battle_type` | Battle Type | Text | Enum: main / pvp / dungeon / event, etc. |
83
+ | `battle_id` | Battle ID | Text | Unique id of this battle |
84
+ | `stage_id` | Stage ID | Text | Suggest linking to a dimension table |
85
+ | `battle_result` | Battle Result | Text | win / fail / draw |
86
+ | `battle_duration` | Battle Duration | Number | Unit: seconds |
87
+ | `enemy_power` | Enemy Power | Number | |
88
+ | `my_power` | My Power | Number | |
89
+ | `lineup_info` | My Lineup Info | Object Group | Sub-properties: hero_id / troop_type / power, etc.; include only where semantically needed. Paired events share a key, not a forced lineup schema |
90
+ | `enemy_lineup_info` | Enemy Lineup Info | Object Group | Same as above |
91
+
92
+ ### 3.3 Game Resources / Items
93
+
94
+ | Property Name | Standard Display Name | Type | Description |
95
+ | ---------------- | ------ | --- | -------------------------------- |
96
+ | `token_type` | Currency Type (in-game) | Text | Enum: diamond / gold / alliance_point, etc. |
97
+ | `token_amount` | Currency Amount | Number | Amount gained/consumed this time |
98
+ | `token_balance` | Currency Balance | Number | Balance after the operation |
99
+ | `item_id` | Item ID | Text | Suggest linking to a dimension table |
100
+ | `item_num` | Item Count | Number | |
101
+ | `get_item_info` | Items Gained Detail | Object Group | Sub-properties: item_id, item_num; required when multiple items involved |
102
+ | `cost_item_info` | Items Consumed Detail | Object Group | Sub-properties: item_id, item_num; required when multiple items involved |
103
+ | `source` | Source | Text | Enum of currency/item source channels |
104
+ | `consume_type` | Consume Purpose | Text | Enum of currency/item consumption purposes |
105
+
106
+ ### 3.4 Game Heroes / Characters
107
+
108
+ | Property Name | Standard Display Name | Type | Description |
109
+ | ------------ | ----- | --- | ---------------------------- |
110
+ | `hero_id` | Hero ID | Text | Unique hero id within an object group |
111
+ | `hero_level` | Hero Level | Number | |
112
+ | `hero_star` | Hero Star | Number | |
113
+ | `hero_power` | Hero Power | Number | |
114
+ | `troop_type` | Troop Type | Text | Enum: infantry / cavalry / archer, etc. |
115
+ | `troop_num` | Dispatched Troops | Number | Number of soldiers dispatched this time |
116
+ | `pool_type` | Pool Type | Text | Enum of gacha / construction pool types |
117
+ | `draw_count` | Draw Count | Number | Draws this round (1-draw / 10-draw) |
118
+
119
+ ### 3.5 Game Season
120
+
121
+ | Property Name | Standard Display Name | Type | Description |
122
+ | ----------------- | ----- | --- | ---------------------- |
123
+ | `season_id` | Season ID | Text | Common property; auto-carried by all season events |
124
+ | `season_rank` | Season Rank | Number | Current / final rank this season |
125
+ | `season_points` | Season Points | Number | Current / settlement points |
126
+ | `match_id` | Match ID | Text | Unique id of this match |
127
+ | `settlement_type` | Settlement Type | Text | Enum: daily / final |
128
+
129
+ ### 3.6 Ad (IAA)
130
+
131
+ | Property Name | Standard Display Name | Type | Description |
132
+ | --------------- | ----- | --- | --------------------------------------------- |
133
+ | `ad_type` | Ad Type | Text | Enum: rewarded / interstitial / banner / splash / native |
134
+ | `ad_placement` | Ad Placement | Text | Ad placement identifier |
135
+ | `ad_network` | Ad Network | Text | admob / facebook / unity, etc. |
136
+ | `reward_type` | Reward Type | Text | Content type of the rewarded-ad reward |
137
+ | `reward_amount` | Reward Amount | Number | |
138
+ | `revenue_value` | Ad Revenue | Number | Unit: cents |
139
+ | `ecpm` | eCPM | Number | Unit: cents |
140
+ | `is_filled` | Is Filled | Boolean | Whether the ad request was filled |
141
+
142
+ ---
143
+
144
+ ## 4. Forbidden Synonym Table
145
+
146
+ > The pairs below are synonym pairs that historically caused conflicts. **The right column is the forbidden form**; use the left column.
147
+
148
+ | Standard Word (must use) | Forbidden Synonyms |
149
+ | ----------------- | -------------------------------------------------------------------------- |
150
+ | `battle_win` | `battle_success`, `battle_victory`, `battle_pass` |
151
+ | `battle_fail` | `battle_lose`, `battle_defeat`, `battle_defeat_result` |
152
+ | `item_get` | `item_receive`, `item_gain`, `item_add` |
153
+ | `item_consume` | `item_use`, `item_spend`, `item_cost` |
154
+ | `token_get` | `token_receive`, `currency_get`, `coin_receive` (except for legacy plans that already have `coin_receive`) |
155
+ | `token_consume` | `token_use`, `currency_consume`, `coin_consume` |
156
+ | `reward_claim` | `reward_receive`, `reward_get`, `reward_collect` |
157
+ | `shop_open` | `shop_enter`, `shop_visit`, `mall_open` |
158
+ | `activity_attend` | `activity_join`, `activity_participate`, `festival_activities`, `activity` |
159
+ | `guide_complete` | `guide_finish`, `guide_done`, `guide_step_complete` |
160
+ | `levelup` (suffix) | `_upgrade`, `_level_up`, `_upgrade_level` |
161
+
162
+ ---
163
+
164
+ ## 5. Property Name — Display Name — Type Validation Matrix (Established Mappings)
165
+
166
+ > This table is the authoritative source for "confirmed mappings". Before adding a new property, check whether an entry already exists; if so, reuse it; otherwise add a new row.
167
+
168
+ | Property Name | Unique Display Name | Unique Type | Note |
169
+ | ------------------- | ------ | ---- | ---------------------------------------- |
170
+ | `is_first` | Is First Time | Boolean | |
171
+ | `level` | Current Level | Number | |
172
+ | `level_before` | Level Before | Number | |
173
+ | `order_id` | Order ID | Text | |
174
+ | `pay_amount` | Pay Amount | Number | Unit: fen / cents |
175
+ | `currency_type` | Currency Type | Text | ISO 4217 |
176
+ | `payment_name` | Payment Method | Text | |
177
+ | `payment_type` | Payment Type | Text | |
178
+ | `battle_type` | Battle Type | Text | |
179
+ | `battle_id` | Battle ID | Text | |
180
+ | `battle_result` | Battle Result | Text | |
181
+ | `battle_duration` | Battle Duration | Number | Seconds |
182
+ | `stage_id` | Stage ID | Text | |
183
+ | `token_type` | Currency Type (in-game) | Text | Note the distinction from currency_type: token_type refers to in-game virtual currency |
184
+ | `token_amount` | Currency Amount | Number | |
185
+ | `token_balance` | Currency Balance | Number | |
186
+ | `item_id` | Item ID | Text | |
187
+ | `item_num` | Item Count | Number | |
188
+ | `source` | Source | Text | |
189
+ | `consume_type` | Consume Purpose | Text | |
190
+ | `hero_id` | Hero ID | Text | Object-group sub-property |
191
+ | `hero_level` | Hero Level | Number | |
192
+ | `hero_star` | Hero Star | Number | |
193
+ | `hero_power` | Hero Power | Number | |
194
+ | `troop_type` | Troop Type | Text | |
195
+ | `troop_num` | Dispatched Troops | Number | |
196
+ | `pool_type` | Pool Type | Text | |
197
+ | `draw_count` | Draw Count | Number | |
198
+ | `season_id` | Season ID | Text | |
199
+ | `season_rank` | Season Rank | Number | |
200
+ | `season_points` | Season Points | Number | |
201
+ | `match_id` | Match ID | Text | |
202
+ | `settlement_type` | Settlement Type | Text | |
203
+ | `ad_type` | Ad Type | Text | |
204
+ | `ad_placement` | Ad Placement | Text | |
205
+ | `ad_network` | Ad Network | Text | |
206
+ | `reward_type` | Reward Type | Text | |
207
+ | `reward_amount` | Reward Amount | Number | |
208
+ | `revenue_value` | Ad Revenue | Number | Cents |
209
+ | `ecpm` | eCPM | Number | Cents |
210
+ | `is_filled` | Is Filled | Boolean | |
211
+ | `activity_type` | Activity Type | Text | |
212
+ | `activity_id` | Activity ID | Text | |
213
+ | `fail_reason` | Fail Reason | Text | |
214
+ | `channel` | Channel | Text | |
215
+ | `media_source` | Media Source | Text | Attribution-event snapshot, not globally common |
216
+ | `campaign` | Campaign | Text | Attribution-event snapshot |
217
+ | `first_media_source` | First Media Source | Text | First-touch user_setOnce; E2 |
218
+ | `first_campaign` | First Campaign | Text | First-touch user_setOnce; E2 |
219
+ | `current_media_source` | Current Media Source | Text | Latest confirmed user_set if needed |
220
+ | `current_campaign` | Current Campaign | Text | Latest confirmed user_set if needed |
221
+ | `active_days` | Active Days | Number | |
222
+ | `server_id` | Server ID | Text | |
223
+ | `tmp_level` | Player Level | Number | |
224
+ | `nick_name` | Nickname | Text | |
225
+ | `lineup_info` | My Lineup Info | Object Group | |
226
+ | `enemy_lineup_info` | Enemy Lineup Info | Object Group | |
227
+ | `get_item_info` | Items Gained Detail | Object Group | |
228
+ | `cost_item_info` | Items Consumed Detail | Object Group | |
229
+
230
+ ---
231
+
232
+ ## 6. How to Use This File
233
+
234
+ 1. **Before adding a property**: search Section 5 first to see whether a property with the same business meaning already exists
235
+ - Yes → reuse it directly; do not create a synonym
236
+ - No → add a row; fill property name / display name / type all together; all future plans follow it
237
+ 2. **Self-check for conflicts**: via script or manually, cross-check every property name in the plan against Section 5 to confirm no one-to-many
238
+ 3. **Category adaptation**: when swapping category-specific words such as hero / warship / general, **only change the display name**; keep the property name in a general form (e.g. `hero_id` in Azur Lane corresponds to "Warship ID"; display name becomes "Warship ID", but the property name stays as `hero_id`)
@@ -0,0 +1,85 @@
1
+ # Tracking Plan Optimization and Acceptance Checklist
2
+
3
+ Check item by item before delivery, with the [15 business-semantic checks](business-semantic-checks.md). This is manual/model-assisted review, not implemented automatic business scoring. Issues must be fixed with confirmation or explicitly recorded as TBC/change log; unresolved blockers are not accepted merely because lint passed.
4
+
5
+ ## 1. Product and Requirements
6
+
7
+ - The product type, core loop, key business objects, and revenue model are clarified.
8
+ - States such as start, process, success, failure, exit, cancel, timeout, and retry are covered.
9
+ - Every analysis requirement has a clear metric definition, event, property, and join key.
10
+ - Ratio metrics have both a valid numerator and denominator event.
11
+ - The dedup subject is clear: user, device, session, order, story attempt, or other entity.
12
+ - Group-by dimensions such as platform, channel, version, and region have reliable data sources.
13
+ - Data that cannot be obtained is not written as directly analyzable; for example, do not promise Campaign click volume when no ad platform is integrated.
14
+ - The definitions of gifting/redemption/mail claim are confirmed (single/batch, request-result/single event, failure enum), or explicitly written into the items to confirm.
15
+
16
+ ## 2. Events
17
+
18
+ - Event names are lowercase snake_case, start with a letter, and are at most 50 characters.
19
+ - An event expresses a clear business fact, and does not use vague `click`, `info`, or `send` without specifying the object or result.
20
+ - Impression, request, and result events all have an actual analysis purpose, and are not mechanically generated in pairs.
21
+ - Low-frequency operations such as redemption/claim use a result single event + `fail_reason`, and the click is not a separate event when there is no independent analysis need.
22
+ - For death/failure chains, if the "settlement page → retry/return" funnel needs analysis, the settlement page display events are added; do not mechanically generate them when there is no such analysis need.
23
+ - One business operation is not double-counted by the client and server.
24
+ - Batch operations clearly state "one operation one event" or "one event per entity", and are consistent with the analysis definition.
25
+ - Key chains have a stable instance ID with clear generation and reset rules.
26
+ - Success/failure events or result enums can cover partial success, cancel, timeout, and interruption.
27
+ - Trigger timing can be implemented by R&D; avoid vague descriptions such as "report on entry" or "report when it changes".
28
+
29
+ ## 3. Property Registry
30
+
31
+ - Within the same Sheet, the same English property name corresponds to the same user-language display name, type, definition, unit, and enum.
32
+ - Same-named fields across Sheets have no meaning conflicts.
33
+ - There are no synonym fields with different names; if aliases are kept, there is a compatibility note in the change log.
34
+ - ID uses `_id`; boolean prefers `is_`/`has_`; count uniformly chooses one of `_num`, `_count`, or `_amount` that fits the semantics, without mixing.
35
+ - Rank uses `_rank` or `_position` and is unified; duration has a clear unit and is preferably written into the description.
36
+ - Amount has a clear currency and smallest currency unit; rate uses a numeric value rather than `1x` text.
37
+ - The responsibilities of `result/status/type/reason/scene/source` are not mixed.
38
+ - Example values conform to the type, enum, and null rules.
39
+
40
+ ## 4. Composite Types
41
+
42
+ - Lists only carry same-type scalars.
43
+ - Objects are used for a single fixed-structure entity; object groups are used for entity collections with a variable count.
44
+ - Each object group item contains at least the necessary fields to express the entity.
45
+ - When the same parent object group is reused across events, the sub-property structure is completely identical.
46
+ - Object groups expand by real business granularity; for example, in "mail × reward", repeat `mail_id` when the same mail has multiple rewards.
47
+ - Batch operations such as batch claims preserve per-entity association, and the rewards of each mail can be located within the object group.
48
+ - Same-named object groups with different structures have been split (e.g., `mail_reward_items` / `shop_reward_items`), with no forced field-filling to achieve reuse.
49
+ - Failure reasons are placed at the correct level; a whole-batch failure goes at the event top level, and only per-item failures go inside the detail object.
50
+ - No commas, colons, or semicolons are used to concatenate data that should be structured.
51
+
52
+ ## 5. AE/TE Alignment
53
+
54
+ - System fields such as `#account_id`, `#distinct_id`, `#time`, and `#uuid` are not custom-reported.
55
+ - Device, system, and APP version fields are deduplicated against SDK preset properties.
56
+ - Auto-collected events are added only when the user allows and technical integration supports it.
57
+ - User property operation types match the semantics of first value, current value, accumulated value, and list.
58
+ - Attribution fields do not pollute all events as common event properties.
59
+ - The data types of events and user properties conform to the AE/TE supported range.
60
+ - The reporting responsibility, timing, and dedup strategy of server and client are clear.
61
+
62
+ ## 6. Workbook and Differences
63
+
64
+ - The original file is not overwritten.
65
+ - When the user selects Excel, final delivery has the complete 11 sheets from the repaired v2.0.1 Chinese template, official nine-column event schema and required header suffixes; seven instruction sheets are unchanged. Direct-sync deliveries instead retain canonical JSON plus structured payload/dry-run evidence and contain no workbook. Nonstandard source inputs are preserved separately.
66
+ - Merged cells, column widths, line breaks, borders, and frozen regions are readable.
67
+ - New/modified cells are identified in a separate diff artifact/conversation; optional light-orange review marking must not change the strict-delivery template styles.
68
+ - Unmodified content is not mistakenly marked.
69
+ - Deleted, merged, and deprecated items all go into the change log.
70
+ - Items to confirm are separated from the formal plan.
71
+ - After searching the whole table for old names, typos, and spelling errors, none remain.
72
+
73
+ ## 7. Analysis Acceptance
74
+
75
+ - DAU, retention, payment, and feature participation can all give a concrete calculation path.
76
+ - Every core funnel can determine order, time window, denominator, and dedup subject.
77
+ - At least three core chains are spot-checked, and legal sample reported data is provided.
78
+ - Changed events and properties are re-mapped to analysis requirements, without carrying over stale mappings.
79
+ - All "analyzable" conclusions have data source support.
80
+ - E1: `ad_fail` and full IAA closure are explicit; unavailable revenue is marked requires ad-platform callback / TBC, not invented.
81
+ - E2: `first_media_source` / `first_campaign` use user_setOnce; media_source/campaign event snapshots and current_* updates are distinct and not globally common by default.
82
+ - Actual distinct event counts reconcile canonical JSON, Excel event blocks, review report and online view; styled rows/property rows are not event counts.
83
+ - Conversation is shown first and is reviewable in-session. After review, the user chooses direct structured sync or a local Excel; neither branch generates an unrequested workbook. Any Excel comes from the same JSON, and any structured payload preserves the same events, properties, types and collection sides. Replies and authored business descriptions follow user language; fixed Chinese template labels are not advertised as an all-English workbook.
84
+ - First-run strict lint and repaired-final results are reported separately. Confirm before save-as repairs; originals remain unchanged.
85
+ - All 15 semantic review items have evidence/disposition; pending review is not upload-ready. Only [Validated Upload](workflows/validated-upload.md) handles the later single scoped confirmation, with no implicit deletion/overwrite or invented UI button.
@@ -0,0 +1,142 @@
1
+ # Excel Export Schema
2
+
3
+ > One canonical JSON supplies the in-session reviewable conversation view (`scripts/prepare_delivery.py --conversation-only`) and, only after the user selects that branch, either a structured sync payload (`scripts/sync_plan.py`) or the complete 11-sheet workbook (`scripts/finalize_plan.py`). The initial review creates no workbook. v2.0.1's repaired official Chinese data headers remain the Excel contract, including `采集端` in event column E; the seven instruction sheets remain unchanged. Business content/replies follow the user's language, while sheet names/headers/type labels remain Chinese.
4
+
5
+ ## CLI (run from the package root)
6
+
7
+ ```bash
8
+ python3 scripts/finalize_plan.py \
9
+ --plan ./plan.json \
10
+ --template assets/埋点模版.xlsx \
11
+ --output ./product_tracking_plan_NEW.xlsx
12
+ python3 scripts/lint_tracking_plan.py \
13
+ --input ./product_tracking_plan_NEW.xlsx \
14
+ --strict-delivery --template assets/埋点模版.xlsx
15
+ ```
16
+
17
+ No overwrite flag is part of final delivery. These Excel commands run only after the user selects the local-file branch. If checks fail, show findings and obtain confirmation before `--fix --output <NEW_FIXED.xlsx>` with the strict flags, then recheck read-only and synchronize approved corrections to JSON, conversation and selected artifacts. A first-run failure is not erased by a later pass. Remote sync is governed by [Validated Upload](../workflows/validated-upload.md), not these local commands.
18
+
19
+ ## Top-Level Structure
20
+
21
+ This skeleton documents array names, not a ready-to-deliver example: `events` must be nonempty in an actual plan, and every array must exist. Fill confirmed event/property/identity definitions before generation. Unknown extra record fields are rejected; preserve their meaning explicitly in supported descriptions/remarks, not silently dropped columns.
22
+
23
+ ```json
24
+ {
25
+ "meta": {
26
+ "product_name": "Short Drama Product A",
27
+ "output_name": "short_drama_product_a_tracking_plan_20260325.xlsx",
28
+ "author": "tracking-plan-generator",
29
+ "generated_at": "2026-03-25",
30
+ "reply_language": "en",
31
+ "xlsx_language": "zh"
32
+ },
33
+ "user_id_sheet": [],
34
+ "common_event_properties": [],
35
+ "events": [],
36
+ "user_properties": []
37
+ }
38
+ ```
39
+
40
+ ## `meta`
41
+
42
+ - `product_name`: optional business title (used by the conversation renderer), not a replacement for required `--output` / `--output-dir` CLI arguments.
43
+ - `output_name`, `author`, `generated_at`: optional provenance/business metadata only; do not assume filename defaults or workbook metadata writes from these legacy fields.
44
+ - `reply_language`: actual conversation-renderer language, currently `zh` or `en`; authored business strings are preserved.
45
+ - `xlsx_language`: `zh` for the fixed Chinese sheet/header/type contract, independent of reply language. Required CLI output paths must be new.
46
+
47
+ Optional business context fields under `meta` are `business_context`, `notes`, `timezone`, `metric_mapping`, `change_log`, `assumptions`, `open_questions`, and `blocking_unknowns`. Supply verified strings, lists or objects, not invented facts. The conversational renderer shows these fields (missing inputs remain TBC); the same context is retained in the event-sheet A1 comment without changing seven instruction sheets. Nonempty source `blocking_unknowns` blocks the upload adapter. Additional top-level/event/property fields outside this documented schema are rejected rather than silently discarded; preserve their meaning explicitly in the supported description/remarks/context fields.
48
+
49
+ ## `user_id_sheet`
50
+
51
+ Each entry corresponds to one row of `#用户ID体系`:
52
+
53
+ ```json
54
+ {
55
+ "product_type": "Single Account",
56
+ "property_name": "#account_id",
57
+ "display_name": "Account ID",
58
+ "description": "System Property",
59
+ "assignment": "Set to the user's unique account ID",
60
+ "remarks": "Preferred for products with a login system"
61
+ }
62
+ ```
63
+
64
+ Field requirements:
65
+
66
+ - `property_name`
67
+ - `display_name`
68
+ - `description`
69
+ - `assignment`
70
+
71
+ `product_type` and `remarks` may be empty strings.
72
+
73
+ ## `common_event_properties`
74
+
75
+ Each entry corresponds to one row of `#公共事件属性`:
76
+
77
+ ```json
78
+ {
79
+ "property_name": "channel",
80
+ "display_name": "Channel",
81
+ "property_type": "Text",
82
+ "description": "Confirmed app distribution channel, only common when stable and applicable to nearly all events; not MMP first-touch attribution"
83
+ }
84
+ ```
85
+
86
+ All fields are required.
87
+
88
+ ## `events`
89
+
90
+ Each entry corresponds to one event; the script automatically flattens `properties` into the `#事件数据` Sheet.
91
+
92
+ ```json
93
+ {
94
+ "event_name": "playlet_start",
95
+ "display_name": "Short Drama Start",
96
+ "description": "Reported when the user starts playing a short drama",
97
+ "tag": "Content Playback",
98
+ "platform": "client",
99
+ "properties": [
100
+ {
101
+ "property_name": "playlet_id",
102
+ "display_name": "Short Drama ID",
103
+ "property_type": "Text",
104
+ "description": "Unique identifier of the short drama; attaching a dimension table is recommended"
105
+ }
106
+ ]
107
+ }
108
+ ```
109
+
110
+ Rules:
111
+
112
+ - `event_name` must be globally unique.
113
+ - `properties` may be an empty array; the event row is still output when it is empty.
114
+ - `tag` holds only the owning module/category, e.g. `Login`, `Ad System`; it does not include the collection-side marker.
115
+ - `platform` holds the collection-side semantics: `client`, `server`, or `client,server` in the Chinese `采集端` column E. Legacy C/S/S+C aliases must be normalized, not dropped. Dual-side reporting requires an explicit authoritative source and dedup strategy, not two counted facts.
116
+ - `remarks`, when present, must survive in the existing event/property description or ID assignment field; never add a new notes column or silently discard them.
117
+ - The event columns A–I are `事件名(必填)`, `事件显示名`, `事件说明`, `事件标签`, `采集端`, `属性名(必填)`, `属性显示名`, `属性类型(必填)`, `属性说明`. Event fields are merged across their property rows according to the repaired template contract.
118
+
119
+ ## `user_properties`
120
+
121
+ Each entry corresponds to one row of `#用户数据`:
122
+
123
+ ```json
124
+ {
125
+ "property_name": "register_time",
126
+ "display_name": "Registration Time",
127
+ "property_type": "Datetime",
128
+ "update_method": "user_setOnce",
129
+ "description": "Recorded when the user registers successfully for the first time"
130
+ }
131
+ ```
132
+
133
+ All fields are required.
134
+
135
+ ## Usage Constraints
136
+
137
+ 1. First normalize naming, types, collection side, and self-check rules against `../naming-dict.md` and `reference.md`.
138
+ 2. Formal event/property definitions represent confirmed design. Preserve unresolved business facts explicitly as TBC in separate review metadata/notes; do not turn candidates into factual enums or upload-ready definitions. The review gate remains pending while required unknowns exist.
139
+ 3. If you need to reference industry templates, first read `template-catalog.md`, then open `../categories/*.md` as needed, and finally return to this schema to export.
140
+ 4. Deliver the reviewable conversation plan first, then ask for direct structured sync or local Excel. Generate only the selected branch artifact from this same JSON; direct sync must not create an Excel intermediate. No independent model rewrite between views.
141
+ 5. `normalize_property_type` / `normalize_update_method` in `scripts/plan_types.py` own aliases. Workbook types remain Chinese; `Object` and `Object Group` stay distinct. Import update methods are `user_set`, `user_setOnce`, `user_add`, `user_append`; SDK deletion/unique-append operations are not assumed valid plan enums. Legacy timing prose needs semantic confirmation, not guessed mapping.
142
+ 6. `meta.reply_language` records reply/business language; `meta.xlsx_language` records Chinese workbook import language (`zh`). Upload parsing language must match actual sheet/header/type language, not the user's conversational language. See the upload workflow for current CLI discovery.
@@ -0,0 +1,47 @@
1
+ # Game Base Module Baseline
2
+
3
+ > Source asset: `../categories/game_basic_module_tracking_plan.md`
4
+ > Purpose: when the user only says "game tracking plan" without giving a clear category yet, first use this layer to build the base, then add modules according to the specific category.
5
+
6
+ ## Applicable Scenarios
7
+
8
+ - The user only says "make a game tracking plan"
9
+ - The category is still under early discussion and cannot yet be precisely classified as card, SLG, MMO, Slots, etc.
10
+ - A first version of "base modules that every game should have" is needed
11
+
12
+ ## Core Events Covered by This Baseline
13
+
14
+ - Lifecycle: `new_device`, `register`, `login`, `logout`
15
+ - Progression: `guide_complete`, `level_up`, `vip_levelup`
16
+ - Payment: `payment`, `payment_fail`
17
+ - Commerce and resources: `shop_open`, `shop_buy`, `asset_get`, `asset_consume`
18
+ - Operations monitoring: `current_online`
19
+
20
+ ## Common Properties Emphasized by This Baseline
21
+
22
+ - `channel`
23
+ - `tmp_vip_level`
24
+
25
+ ## User Properties Emphasized by This Baseline
26
+
27
+ - `register_time`
28
+ - `first_login_time`
29
+ - `last_login_time`
30
+ - `first_pay_time`
31
+ - `last_pay_time`
32
+ - `total_pay_amount`
33
+ - `total_login_day`
34
+ - `current_level`
35
+ - `current_vip_level`
36
+
37
+ ## Usage
38
+
39
+ 1. First use this baseline to lay out the base lifecycle, progression, payment, shop, resource, and online-monitoring modules.
40
+ 2. Then combine with `template-catalog.md` to pick the closest industry template and supplement strong-category modules.
41
+ 3. Finally return to `../naming-dict.md` to normalize naming and types.
42
+
43
+ ## Parts Not to Copy Directly
44
+
45
+ - If a specific field name conflicts with `../naming-dict.md`, it must be changed to the standard name in the dictionary.
46
+ - If the user's revenue model is not IAP or does not include a shop, do not mechanically keep `shop_open` or `shop_buy`.
47
+ - If the product is not a strong-account game, re-evaluate the `#account_id` scheme instead of applying it directly.