@thinkingai/ae-cli 1.0.1

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 (172) hide show
  1. package/README.md +229 -0
  2. package/bin/ae-cli.js +2 -0
  3. package/dist/auth-JXELJNDS.js +19 -0
  4. package/dist/auth-L3G3A74I.js +67 -0
  5. package/dist/chunk-3GM5LJZR.js +145 -0
  6. package/dist/chunk-JD5DXMKL.js +172 -0
  7. package/dist/chunk-KM57HI5B.js +107 -0
  8. package/dist/chunk-OVQOK35G.js +108 -0
  9. package/dist/chunk-RJNLN3KQ.js +217 -0
  10. package/dist/client-5QSQBBDB.js +16 -0
  11. package/dist/community-GMALVSRF.js +684 -0
  12. package/dist/config-Q7J3Z7Z2.js +242 -0
  13. package/dist/index.js +277 -0
  14. package/dist/raw-ZNVURYMR.js +59 -0
  15. package/dist/te-analysis-7NN3SY3I.js +871 -0
  16. package/dist/te-audience-P43BWMHM.js +350 -0
  17. package/dist/te-common-H3IPTI2I.js +144 -0
  18. package/dist/te-dataops-WCGDBJLF.js +1853 -0
  19. package/dist/te-engage-UTRVNTGU.js +1470 -0
  20. package/dist/te-meta-HGYNXVGF.js +479 -0
  21. package/package.json +53 -0
  22. package/skills/te-analysis/SKILL.md +107 -0
  23. package/skills/te-analysis/references/build-entity-details-sql.md +58 -0
  24. package/skills/te-analysis/references/build-event-details-sql.md +61 -0
  25. package/skills/te-analysis/references/create-alert.md +47 -0
  26. package/skills/te-analysis/references/create-dashboard.md +49 -0
  27. package/skills/te-analysis/references/create-or-update-dashboard-note.md +39 -0
  28. package/skills/te-analysis/references/create-public-access-link.md +43 -0
  29. package/skills/te-analysis/references/create-report.md +60 -0
  30. package/skills/te-analysis/references/create-result-cluster.md +73 -0
  31. package/skills/te-analysis/references/drilldown-user-events.md +72 -0
  32. package/skills/te-analysis/references/drilldown-users.md +75 -0
  33. package/skills/te-analysis/references/get-alert-definition-schema.md +32 -0
  34. package/skills/te-analysis/references/get-alert.md +31 -0
  35. package/skills/te-analysis/references/get-analysis-query-schema.md +36 -0
  36. package/skills/te-analysis/references/get-filter-schema.md +33 -0
  37. package/skills/te-analysis/references/get-groupby-schema.md +33 -0
  38. package/skills/te-analysis/references/get-report-definition.md +33 -0
  39. package/skills/te-analysis/references/get-table-columns.md +38 -0
  40. package/skills/te-analysis/references/list-alerts.md +33 -0
  41. package/skills/te-analysis/references/list-dashboards.md +33 -0
  42. package/skills/te-analysis/references/list-public-access-links.md +31 -0
  43. package/skills/te-analysis/references/list-reports.md +33 -0
  44. package/skills/te-analysis/references/load-filters.md +44 -0
  45. package/skills/te-analysis/references/query-adhoc.md +71 -0
  46. package/skills/te-analysis/references/query-dashboard-detail.md +35 -0
  47. package/skills/te-analysis/references/query-dashboard-report-data.md +60 -0
  48. package/skills/te-analysis/references/query-entity-details.md +60 -0
  49. package/skills/te-analysis/references/query-event-details.md +63 -0
  50. package/skills/te-analysis/references/query-report-data.md +65 -0
  51. package/skills/te-analysis/references/update-alert.md +49 -0
  52. package/skills/te-analysis/references/update-dashboard.md +45 -0
  53. package/skills/te-analysis/references/update-public-access-link.md +41 -0
  54. package/skills/te-audience/SKILL.md +63 -0
  55. package/skills/te-audience/references/create-cluster.md +65 -0
  56. package/skills/te-audience/references/create-tag.md +60 -0
  57. package/skills/te-audience/references/get-cluster-definition-schema.md +37 -0
  58. package/skills/te-audience/references/get-clusters-by-name.md +32 -0
  59. package/skills/te-audience/references/get-tag-definition-schema.md +32 -0
  60. package/skills/te-audience/references/get-tags-by-name.md +32 -0
  61. package/skills/te-audience/references/list-cluster-members.md +35 -0
  62. package/skills/te-audience/references/list-clusters.md +32 -0
  63. package/skills/te-audience/references/list-tag-members.md +36 -0
  64. package/skills/te-audience/references/list-tags.md +32 -0
  65. package/skills/te-audience/references/refresh-cluster.md +31 -0
  66. package/skills/te-audience/references/refresh-tag.md +31 -0
  67. package/skills/te-audience/references/update-cluster.md +59 -0
  68. package/skills/te-audience/references/update-tag.md +60 -0
  69. package/skills/te-common/SKILL.md +135 -0
  70. package/skills/te-common/references/get-resource-url.md +32 -0
  71. package/skills/te-common/references/list-projects.md +37 -0
  72. package/skills/te-community/SKILL.md +133 -0
  73. package/skills/te-community/references/community-activity-analysis.md +68 -0
  74. package/skills/te-community/references/community-analyzing-official-content.md +72 -0
  75. package/skills/te-community/references/community-analyzing-theme-comment.md +124 -0
  76. package/skills/te-community/references/community-character-analysis.md +71 -0
  77. package/skills/te-community/references/community-daily-report.md +82 -0
  78. package/skills/te-community/references/community-hottopic-insight.md +120 -0
  79. package/skills/te-community/references/community-release-analysis.md +79 -0
  80. package/skills/te-community/references/community-weekly-report.md +84 -0
  81. package/skills/te-community/references/get_channel_info.md +21 -0
  82. package/skills/te-community/references/get_comment_tag_analysis.md +30 -0
  83. package/skills/te-community/references/get_comments_summary.md +33 -0
  84. package/skills/te-community/references/get_corpus_tags.md +21 -0
  85. package/skills/te-community/references/get_daily_summary.md +23 -0
  86. package/skills/te-community/references/get_hot_topics.md +26 -0
  87. package/skills/te-community/references/get_livestream_analysis.md +23 -0
  88. package/skills/te-community/references/get_livestream_detail.md +34 -0
  89. package/skills/te-community/references/get_livestream_list.md +26 -0
  90. package/skills/te-community/references/get_livestream_overview.md +25 -0
  91. package/skills/te-community/references/get_livestream_room_metrics.md +26 -0
  92. package/skills/te-community/references/get_livestream_rooms.md +26 -0
  93. package/skills/te-community/references/get_overview_metrics.md +26 -0
  94. package/skills/te-community/references/get_post_detail.md +38 -0
  95. package/skills/te-community/references/get_risk_content.md +43 -0
  96. package/skills/te-community/references/get_sentiment_overview.md +34 -0
  97. package/skills/te-community/references/get_tag_trends.md +28 -0
  98. package/skills/te-community/references/get_topic_detail.md +27 -0
  99. package/skills/te-community/references/search_posts.md +48 -0
  100. package/skills/te-dataops/SKILL.md +645 -0
  101. package/skills/te-dataops/references/dataops-flow-create.md +163 -0
  102. package/skills/te-dataops/references/dataops-flow-monitor.md +118 -0
  103. package/skills/te-dataops/references/dataops-integration.md +246 -0
  104. package/skills/te-dataops/references/dataops-operations.md +107 -0
  105. package/skills/te-dataops/references/dataops-query.md +111 -0
  106. package/skills/te-dataops/references/dataops-table.md +122 -0
  107. package/skills/te-engage/SKILL.md +211 -0
  108. package/skills/te-engage/references/add-approver.md +24 -0
  109. package/skills/te-engage/references/add-channel.md +74 -0
  110. package/skills/te-engage/references/approver-list.md +19 -0
  111. package/skills/te-engage/references/cancel-query-by-request-id.md +23 -0
  112. package/skills/te-engage/references/channel-detail.md +52 -0
  113. package/skills/te-engage/references/channel-list.md +41 -0
  114. package/skills/te-engage/references/config-channel-detail.md +32 -0
  115. package/skills/te-engage/references/config-channel-list.md +27 -0
  116. package/skills/te-engage/references/config-item-analysis-report.md +34 -0
  117. package/skills/te-engage/references/config-item-detail.md +30 -0
  118. package/skills/te-engage/references/config-item-list.md +19 -0
  119. package/skills/te-engage/references/config-item-strategy-comparison.md +25 -0
  120. package/skills/te-engage/references/config-item-trigger-report.md +42 -0
  121. package/skills/te-engage/references/copy-config-template.md +29 -0
  122. package/skills/te-engage/references/delete-channel.md +24 -0
  123. package/skills/te-engage/references/delete-config-channel.md +24 -0
  124. package/skills/te-engage/references/delete-config-item.md +25 -0
  125. package/skills/te-engage/references/delete-flow.md +24 -0
  126. package/skills/te-engage/references/flow-ab-split-node-report.md +54 -0
  127. package/skills/te-engage/references/flow-detail.md +79 -0
  128. package/skills/te-engage/references/flow-list.md +19 -0
  129. package/skills/te-engage/references/flow-node-config-schema.md +44 -0
  130. package/skills/te-engage/references/flow-node-detail-report.md +55 -0
  131. package/skills/te-engage/references/flow-node-overview-report.md +52 -0
  132. package/skills/te-engage/references/flow-process-report.md +59 -0
  133. package/skills/te-engage/references/manage-flow.md +94 -0
  134. package/skills/te-engage/references/manage-strategy.md +74 -0
  135. package/skills/te-engage/references/manage-task.md +37 -0
  136. package/skills/te-engage/references/modify-flow-base-info.md +27 -0
  137. package/skills/te-engage/references/save-flow.md +870 -0
  138. package/skills/te-engage/references/strategy-detail.md +73 -0
  139. package/skills/te-engage/references/strategy-list.md +21 -0
  140. package/skills/te-engage/references/task-data-detail.md +81 -0
  141. package/skills/te-engage/references/task-data-overview.md +48 -0
  142. package/skills/te-engage/references/task-detail.md +61 -0
  143. package/skills/te-engage/references/task-experiment-report.md +51 -0
  144. package/skills/te-engage/references/task-list.md +91 -0
  145. package/skills/te-engage/references/task-metric-detail.md +56 -0
  146. package/skills/te-engage/references/task-stats.md +89 -0
  147. package/skills/te-engage/references/update-channel-status.md +32 -0
  148. package/skills/te-engage/references/update-config-channel-status.md +32 -0
  149. package/skills/te-engage/references/validate-flow-node-config.md +52 -0
  150. package/skills/te-engage/references/whitelist-list.md +19 -0
  151. package/skills/te-meta/SKILL.md +71 -0
  152. package/skills/te-meta/references/batch-create-metadata.md +37 -0
  153. package/skills/te-meta/references/batch-edit-metadata.md +36 -0
  154. package/skills/te-meta/references/create-metric.md +62 -0
  155. package/skills/te-meta/references/create-project-mark-time.md +38 -0
  156. package/skills/te-meta/references/create-virtual-event.md +64 -0
  157. package/skills/te-meta/references/create-virtual-property.md +69 -0
  158. package/skills/te-meta/references/delete-project-mark-times.md +34 -0
  159. package/skills/te-meta/references/delete-track-items.md +35 -0
  160. package/skills/te-meta/references/get-metric.md +32 -0
  161. package/skills/te-meta/references/get-project-config.md +32 -0
  162. package/skills/te-meta/references/get-track-program.md +31 -0
  163. package/skills/te-meta/references/list-entities.md +34 -0
  164. package/skills/te-meta/references/list-events.md +33 -0
  165. package/skills/te-meta/references/list-metrics.md +33 -0
  166. package/skills/te-meta/references/list-project-mark-times.md +33 -0
  167. package/skills/te-meta/references/list-project-users.md +32 -0
  168. package/skills/te-meta/references/list-properties.md +35 -0
  169. package/skills/te-meta/references/save-track-items.md +34 -0
  170. package/skills/te-meta/references/update-metric.md +61 -0
  171. package/skills/te-meta/references/update-project-mark-time.md +39 -0
  172. package/skills/te-shared/SKILL.md +115 -0
@@ -0,0 +1,32 @@
1
+ # te_audience +list_clusters (Cluster Search)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Cluster Management**
6
+
7
+ ## Use Cases
8
+ - List cluster metadata accessible to the current user in the project. Supports keyword filtering and returns cluster names, display names, types, status, user counts, and related metadata, but not cluster members.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +list_clusters --project_id 1
13
+ te-cli te_audience +list_clusters --project_id 1 --query demo
14
+ te-cli te_audience +list_clusters --dry-run
15
+ ```
16
+
17
+ ## Parameters
18
+ | Parameter | Required | Description |
19
+ |---|---|---|
20
+ | `--project_id` / `-p` | Yes | Project ID |
21
+ | `--query` / `-q` | No | Optional keyword filter. Performs fuzzy matching against cluster names, display names, and remarks; if omitted, all clusters are returned. |
22
+
23
+ ## Decision Rules
24
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`) and add optional parameters after confirming the path works.
25
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
26
+
27
+ ## Next Step on Failure
28
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`).
29
+ - If the result is empty, first confirm the project ID/keyword, then try broadening the filter conditions.
30
+
31
+ ## Recommended Chain
32
+ - +list_clusters -> +get_clusters_by_name -> +update_cluster
@@ -0,0 +1,36 @@
1
+ # te_audience +list_tag_members (View Tag Members)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Tag Management**
6
+
7
+ ## Use Cases
8
+ - List members in the specified tag. Returns member information such as user property values and total user count for the selected snapshot date.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +list_tag_members --project_id 1 --tag_name demo
13
+ te-cli te_audience +list_tag_members --project_id 1 --tag_name demo --snapshot_date 2026-04-01 --property_names '["#user_id","name"]' --use_cache false
14
+ te-cli te_audience +list_tag_members --dry-run
15
+ ```
16
+
17
+ ## Parameters
18
+ | Parameter | Required | Description |
19
+ |---|---|---|
20
+ | `--project_id` / `-p` | Yes | Project ID |
21
+ | `--tag_name` | Yes | Tag name |
22
+ | `--snapshot_date` | No | Optional tag snapshot date. Format: YYYY-MM-DD |
23
+ | `--property_names` | No | Optional list of user property names (JSON array) |
24
+ | `--use_cache` | No | Whether to use cache. Default: true |
25
+
26
+ ## Decision Rules
27
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--tag_name`) and add optional parameters after confirming the path works.
28
+ - `--property_names` must be passed as a JSON array (e.g. `--property_names '["#user_id"]'`).
29
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
30
+
31
+ ## Next Step on Failure
32
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`, `--tag_name`).
33
+ - If the result is empty, first confirm the project ID/keyword, then try broadening the filter conditions.
34
+
35
+ ## Recommended Chain
36
+ - +list_tags -> +get_tags_by_name -> +update_tag
@@ -0,0 +1,32 @@
1
+ # te_audience +list_tags (Tag Search)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Tag Management**
6
+
7
+ ## Use Cases
8
+ - List tag metadata accessible to the current user in the project. Supports keyword filtering and returns tag names, display names, types, status, user counts, and related metadata, but not tag members.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +list_tags --project_id 1
13
+ te-cli te_audience +list_tags --project_id 1 --query demo
14
+ te-cli te_audience +list_tags --dry-run
15
+ ```
16
+
17
+ ## Parameters
18
+ | Parameter | Required | Description |
19
+ |---|---|---|
20
+ | `--project_id` / `-p` | Yes | Project ID |
21
+ | `--query` / `-q` | No | Optional keyword filter. Performs fuzzy matching against tag names, display names, and remarks; if omitted, all tags are returned. |
22
+
23
+ ## Decision Rules
24
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`) and add optional parameters after confirming the path works.
25
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
26
+
27
+ ## Next Step on Failure
28
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`).
29
+ - If the result is empty, first confirm the project ID/keyword, then try broadening the filter conditions.
30
+
31
+ ## Recommended Chain
32
+ - +list_tags -> +get_tags_by_name -> +update_tag
@@ -0,0 +1,31 @@
1
+ # te_audience +refresh_cluster (Trigger Cluster Recompute)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Cluster Management**
6
+
7
+ ## Use Cases
8
+ - Trigger cluster recomputation and submit an asynchronous refresh task.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +refresh_cluster --project_id 1 --cluster_name demo
13
+ te-cli te_audience +refresh_cluster --dry-run
14
+ ```
15
+
16
+ ## Parameters
17
+ | Parameter | Required | Description |
18
+ |---|---|---|
19
+ | `--project_id` / `-p` | Yes | Project ID |
20
+ | `--cluster_name` | Yes | Cluster name |
21
+
22
+ ## Decision Rules
23
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--cluster_name`) and add optional parameters after confirming the path works.
24
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
25
+ - Write operations keep confirmation prompts by default; for automation scenarios, reevaluate whether to use `--yes`.
26
+
27
+ ## Next Step on Failure
28
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`, `--cluster_name`).
29
+
30
+ ## Recommended Chain
31
+ - +list_clusters -> +get_clusters_by_name -> +update_cluster
@@ -0,0 +1,31 @@
1
+ # te_audience +refresh_tag (Trigger Tag Recompute)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Tag Management**
6
+
7
+ ## Use Cases
8
+ - Trigger tag recomputation and submit an asynchronous refresh task.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +refresh_tag --project_id 1 --tag_name demo
13
+ te-cli te_audience +refresh_tag --dry-run
14
+ ```
15
+
16
+ ## Parameters
17
+ | Parameter | Required | Description |
18
+ |---|---|---|
19
+ | `--project_id` / `-p` | Yes | Project ID |
20
+ | `--tag_name` | Yes | Tag name |
21
+
22
+ ## Decision Rules
23
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--tag_name`) and add optional parameters after confirming the path works.
24
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
25
+ - Write operations keep confirmation prompts by default; for automation scenarios, reevaluate whether to use `--yes`.
26
+
27
+ ## Next Step on Failure
28
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`, `--tag_name`).
29
+
30
+ ## Recommended Chain
31
+ - +list_tags -> +get_tags_by_name -> +update_tag
@@ -0,0 +1,59 @@
1
+ # te_audience +update_cluster (Update Cluster)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Cluster Management**
6
+
7
+ ## Use Cases
8
+ - Prerequisite helper: first call `+get_cluster_definition_schema` to get the structure, then supplement it with the project's real metadata (events and properties).
9
+ - Update a user cluster definition. Supports updating the display name, remark, type, or definition. Updating only the display name or remark does not trigger recomputation.
10
+
11
+ ## Required Prerequisites (MUST only when updating definition)
12
+ - If this request includes `--definition`, you must first read and follow these reference docs:
13
+ - [`./get-cluster-definition-schema.md`](./get-cluster-definition-schema.md)
14
+ - [`../../te-meta/references/list-events.md`](../../te-meta/references/list-events.md)
15
+ - [`../../te-meta/references/list-properties.md`](../../te-meta/references/list-properties.md)
16
+ - Do not submit a new `definition` until the above docs have been read and the prerequisite commands have been run.
17
+
18
+ ## Prerequisite Call Chain (run only when updating definition)
19
+ 1. First determine `--type` (condition / sql).
20
+ 2. Read `get-cluster-definition-schema.md`, then call `te-cli te_audience +get_cluster_definition_schema --cluster_type <condition|sql>` to obtain the structure.
21
+ 3. Read `list-events.md`, then call `te-cli te_meta +list_events --project_id 1`.
22
+ 4. Read `list-properties.md`, then call `te-cli te_meta +list_properties --project_id 1`.
23
+ 5. Build the new `definition` based on the schema + metadata, then run `+update_cluster`.
24
+
25
+ ## Commands
26
+ ```bash
27
+ te-cli te_audience +update_cluster --project_id 1 --cluster_name demo --display_name "Demo v2"
28
+ te-cli te_audience +update_cluster --project_id 1 --cluster_name demo --type condition --definition '{}' --zone_offset 8
29
+ te-cli te_audience +update_cluster --dry-run
30
+ ```
31
+
32
+ ## Parameters
33
+ | Parameter | Required | Description |
34
+ |---|---|---|
35
+ | `--project_id` / `-p` | Yes | Project ID |
36
+ | `--cluster_name` | Yes | Cluster name |
37
+ | `--display_name` | No | New cluster display name. Length: 1-80 |
38
+ | `--remark` | No | New cluster remark |
39
+ | `--type` | No | New cluster type. Supported values: condition and sql. It is recommended to provide this when updating the definition. |
40
+ | `--definition` | No | New cluster definition JSON. If provided, MUST call `+get_cluster_definition_schema` first, then fill valid event/property names from `te_meta` metadata commands in the same `project_id`. |
41
+ | `--zone_offset` | No | Optional time zone offset for cluster computation. Valid range: -12 to 14 (supports decimals like 5.5). |
42
+
43
+ ## Decision Rules
44
+ - If you are not updating `definition` (only updating `display_name`/`remark`), you can skip the schema and metadata prerequisite chain.
45
+ - When updating `definition`, it cannot be written from experience alone; it must satisfy both the schema structure and the project's real metadata.
46
+ - Before calling `list_events` / `list_properties`, you must first read the corresponding reference docs.
47
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--cluster_name`) and add optional parameters after confirming the path works.
48
+ - Wrap JSON parameters in single quotes (e.g. `--definition '{}'`) to avoid shell escaping issues.
49
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
50
+ - Write operations keep confirmation prompts by default; for automation scenarios, reevaluate whether to use `--yes`.
51
+
52
+ ## Next Step on Failure
53
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`, `--cluster_name`).
54
+ - If `Invalid JSON` appears, first check whether a schema-required field is missing, then verify whether event/property names come from the same `project_id`'s metadata query results.
55
+ - If the result after writing is not as expected, immediately re-read the corresponding list/get interfaces and compare before and after.
56
+
57
+ ## Recommended Chain
58
+ - +get_cluster_definition_schema -> te_meta +list_events -> te_meta +list_properties -> +update_cluster
59
+ - +list_clusters -> +get_clusters_by_name -> +update_cluster
@@ -0,0 +1,60 @@
1
+ # te_audience +update_tag (Update Tag)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Tag Management**
6
+
7
+ ## Use Cases
8
+ - Prerequisite helper: first call `+get_tag_definition_schema` to get the structure, then call this tool.
9
+ - When updating `definition`, you must first supplement it with real project metadata; at minimum, first call `te_meta +list_events` and `te_meta +list_properties`.
10
+ - Update a user tag definition. Supports updating the display name, remark, type, and tag definition. Updating only the display name or remark does not trigger recomputation.
11
+
12
+ ## Required Prerequisites (MUST only when updating definition)
13
+ - If this request includes `--definition`, you must first read and follow these reference docs:
14
+ - [`./get-tag-definition-schema.md`](./get-tag-definition-schema.md)
15
+ - [`../../te-meta/references/list-events.md`](../../te-meta/references/list-events.md)
16
+ - [`../../te-meta/references/list-properties.md`](../../te-meta/references/list-properties.md)
17
+ - Do not submit a new `definition` until the above docs have been read and the prerequisite commands have been run.
18
+
19
+ ## Prerequisite Call Chain (run only when updating definition)
20
+ 1. First determine `--type` (condition / metric / first_last / sql).
21
+ 2. Read `get-tag-definition-schema.md`, then call `te-cli te_audience +get_tag_definition_schema` to obtain the structure.
22
+ 3. Read `list-events.md`, then call `te-cli te_meta +list_events --project_id 1`.
23
+ 4. Read `list-properties.md`, then call `te-cli te_meta +list_properties --project_id 1`.
24
+ 5. Build the new `definition` based on the schema + metadata, then run `+update_tag`.
25
+
26
+ ## Commands
27
+ ```bash
28
+ te-cli te_audience +update_tag --project_id 1 --tag_name demo --display_name "Demo v2"
29
+ te-cli te_audience +update_tag --project_id 1 --tag_name demo --type condition --definition '{}' --zone_offset 8
30
+ te-cli te_audience +update_tag --dry-run
31
+ ```
32
+
33
+ ## Parameters
34
+ | Parameter | Required | Description |
35
+ |---|---|---|
36
+ | `--project_id` / `-p` | Yes | Project ID |
37
+ | `--tag_name` | Yes | Tag name |
38
+ | `--display_name` | No | New tag display name. Length: 1-80 |
39
+ | `--remark` | No | New tag remark |
40
+ | `--type` | No | New tag type. Supported values: condition, metric, first_last, sql |
41
+ | `--definition` | No | New tag definition JSON. If provided, MUST call `+get_tag_definition_schema` first, then fill valid event/property names from `te_meta` metadata commands in the same `project_id`. |
42
+ | `--zone_offset` | No | Optional time zone offset for tag computation. Valid range: -12 to 14 (supports decimals like 5.5). |
43
+
44
+ ## Decision Rules
45
+ - If you are not updating `definition` (only updating `display_name`/`remark`), you can skip the schema and metadata prerequisite chain.
46
+ - When updating `definition`, it cannot be written from experience alone; it must satisfy both the schema structure and the project's real metadata.
47
+ - Before calling `list_events` / `list_properties`, you must first read the corresponding reference docs.
48
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--tag_name`) and add optional parameters after confirming the path works.
49
+ - Wrap JSON parameters in single quotes (e.g. `--definition '{}'`) to avoid shell escaping issues.
50
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
51
+ - Write operations keep confirmation prompts by default; for automation scenarios, reevaluate whether to use `--yes`.
52
+
53
+ ## Next Step on Failure
54
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`, `--tag_name`).
55
+ - If `Invalid JSON` appears, first check whether a schema-required field is missing, then verify whether event/property names come from the same `project_id`'s metadata query results.
56
+ - If the result after writing is not as expected, immediately re-read the corresponding list/get interfaces and compare before and after.
57
+
58
+ ## Recommended Chain
59
+ - +get_tag_definition_schema -> te_meta +list_events -> te_meta +list_properties -> +update_tag
60
+ - +list_tags -> +get_tags_by_name -> +update_tag
@@ -0,0 +1,135 @@
1
+ ---
2
+ name: te-common
3
+ version: 1.0.0
4
+ description: "TE cross-module common constraints: define the post-write flow after create/update operations (resource link completion, output conventions, failure fallback). Triggered when requirements involve shared rules across te-analysis/te-meta/te-audience."
5
+ metadata:
6
+ requires:
7
+ bins: ["te-cli"]
8
+ ---
9
+
10
+ # te-common
11
+
12
+ > **CRITICAL - Before starting, MUST first read [`../te-shared/SKILL.md`](../te-shared/SKILL.md)**: authentication, host configuration, global parameters, and write-operation confirmation rules are all in there.
13
+ > **CRITICAL - Before executing any `+<tool_name>` command, MUST first read the corresponding reference document `./references/<tool-name>.md`** For example: before executing `+get_resource_url`, you must first read [`./references/get-resource-url.md`](./references/get-resource-url.md)
14
+
15
+ ## When to Use
16
+
17
+ When the requirement belongs to the unified execution constraints across `te-analysis` / `te-meta` / `te-audience`, you must use `te-common` first:
18
+
19
+ - Post-write actions, such as resource link completion
20
+ - Unified output conventions and fallback policies
21
+ - Future cross-module common constraints
22
+
23
+ ## Execution Sequence (AI Agent Must Follow)
24
+
25
+ ```
26
+ [Start] → [Read command reference document] → [Execute write operation] → [Succeeded?]
27
+ ↓ Yes
28
+ [Pause immediately, review the "write-operation post-link completion" section of this document]
29
+ ↓
30
+ [Call +get_resource_url]
31
+ ↓
32
+ [Output complete result + link]
33
+ ↓
34
+ [End]
35
+ ```
36
+
37
+ **Key point**: after a write operation succeeds → immediately go back to te-common, do not skip it.
38
+
39
+ ---
40
+
41
+ ## Current Mandatory Constraints (MUST)
42
+
43
+ ### A. PROJECT_ID_GATE (preflight gate, no guessing)
44
+
45
+ - For any command about to be executed, you must first confirm whether that command requires `project_id` (per the corresponding `references/<tool-name>.md` document).
46
+ - **Regardless of whether the user provided a project name or project_id, you must first call `+list_projects` to retrieve the project list for verification.**
47
+ - Verification rules:
48
+ - If the user provided a number, you must find the matching project_id in the list
49
+ - If the user provided a name, you must find the matching project name in the list and obtain the corresponding project_id
50
+ - If no match is found, you must tell the user and show the available project list so they can choose again
51
+ - Before verification passes and the correct `project_id` is confirmed, do not call the target command.
52
+
53
+ Recommended interaction flow:
54
+
55
+ **Scenario 1: The user did not provide project information**
56
+ ```text
57
+ This step requires project_id.
58
+ I will first list the available projects for you to choose from:
59
+
60
+ [Call +list_projects to display the project list]
61
+
62
+ Please choose one from the projects above (for example, reply with the project ID or the project name).
63
+ I will not execute the target command before you confirm.
64
+ ```
65
+
66
+ **Scenario 2: The user provided a project name or ID**
67
+ ```text
68
+ The project you mentioned is "xxx".
69
+ I will first verify whether this project exists:
70
+
71
+ [Call +list_projects to get the project list]
72
+
73
+ Verification result:
74
+ - ✅ Project "xxx" exists, project_id = 123
75
+ - Or ❌ Project "xxx" was not found, available projects are listed below: [display list]
76
+
77
+ Please confirm whether to use this project (project_id = 123) for the next operation.
78
+ ```
79
+
80
+ ### B. Write-operation post-link completion (mandatory closed loop)
81
+
82
+ **Trigger condition**: When any of the following commands succeeds, MUST enter the link completion flow:
83
+
84
+ | resource_type | Create command | Update command |
85
+ |---|---|---|
86
+ | `dashboard` | `+create_dashboard` | `+update_dashboard` |
87
+ | `report` | `+create_report` | - |
88
+ | `metric` | `+create_metric` | `+update_metric` |
89
+ | `alert` | `+create_alert` | `+update_alert` |
90
+ | `tag` | `+create_tag` | `+update_tag` |
91
+ | `cluster` | `+create_cluster`, `+create_result_cluster` | `+update_cluster` |
92
+ | `virtual_event` | `+create_virtual_event` | - |
93
+ | `event_virtual_prop` | `+create_virtual_property` (`--table_type event`) | - |
94
+ | `user_virtual_prop` | `+create_virtual_property` (`--table_type user`) | - |
95
+ | `super_event` | `+batch_create_metadata` (creating events) | `+batch_edit_metadata --type event` |
96
+ | `super_prop_event` | `+batch_create_metadata` (creating event_properties) | `+batch_edit_metadata --type event_property` |
97
+ | `super_prop_user` | `+batch_create_metadata` (creating user_properties) | `+batch_edit_metadata --type user_property` |
98
+
99
+ **Closed loop execution (must be completed)**:
100
+ 1. ✅ Write operation succeeded → immediately check whether the return value contains `resource_id`
101
+ 2. ✅ Has `resource_id` → call `+get_resource_url` (using the verified `project_id`)
102
+ 3. ✅ Link generated successfully → output the complete response including the clickable link
103
+ 4. ⚠️ Link generation failed → output the main result + explicitly state "link completion failed: [reason]"
104
+
105
+ **Multi-resource result handling (for batch metadata only)**:
106
+ - `+batch_create_metadata` / `+batch_edit_metadata` may return multiple resources at once (events/properties).
107
+ - For each resource from which `resource_id` can be extracted, you must call `+get_resource_url` separately.
108
+ - The final output must provide links for each resource one by one; if some fail, mark the failed items and the reasons, while the successful items are returned normally.
109
+
110
+ **Prohibited behaviors**:
111
+ - ❌ End the response immediately after a write operation succeeds (you must complete link completion or explain the failure)
112
+ - ❌ Treat a write operation as failed because link completion failed (the write result is independently valid)
113
+
114
+ **Closed-loop check template** (must explicitly confirm each step):
115
+ ```
116
+ [Write operation result]
117
+ → Check resource_id: [yes/no]
118
+ → Call get_resource_url: [called / skipped (no ID)]
119
+ → Link completion status: [successful link / failure reason / skipped]
120
+ → Closed loop complete ✅
121
+ ```
122
+
123
+ If the ID cannot be extracted or link generation fails, you must explain the failure reason, but you cannot roll back or judge the main write operation as failed.
124
+
125
+ ## Execution Template
126
+
127
+ 1. Execute the main write-operation command.
128
+ 2. Extract `project_id`, `resource_type`, `resource_id` from the input or return value.
129
+ 3. Call `te-cli te_common +get_resource_url --project_id <id> --resource_type <type> --resource_id <id>`.
130
+ 4. Output the main result + `markdown_link` (clickable) / `raw_url`.
131
+
132
+ ## Unified Command Entry
133
+
134
+ - `+list_projects` ([documentation](./references/list-projects.md))
135
+ - `+get_resource_url` ([documentation](./references/get-resource-url.md))
@@ -0,0 +1,32 @@
1
+ # te-common resource link completion (call te_common +get_resource_url)
2
+
3
+ > **Prerequisite:** Read [`../../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **cross-module post-write constraint**
6
+
7
+ ## Use Cases
8
+ - After a `create_*` or `update_*` write operation succeeds in `te-analysis` / `te-meta` / `te-audience`, complete the clickable asset link.
9
+ - Supported resource types (resourceType): `dashboard`, `report`, `metric`, `alert`, `tag`, `cluster`, `data_table`, `super_event`, `super_prop_user`, `super_prop_event`, `virtual_event`, `user_virtual_prop`, `event_virtual_prop`.
10
+ - Key return fields: `markdown_link`, `raw_url`.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - As long as `project_id + resource_type + resource_id` can be determined, this command must be called.
14
+ - The final response must output `markdown_link` directly (do not place it in a code block) so the user can click through.
15
+ - If resource link generation fails, keep the main write-operation success conclusion and add the failure reason.
16
+
17
+ ## Command
18
+ ```bash
19
+ te-cli te_common +get_resource_url --project_id 1 --resource_type dashboard --resource_id 1
20
+ te-cli te_common +get_resource_url --dry-run
21
+ ```
22
+
23
+ ## Parameters
24
+ | Parameter | Required | Description |
25
+ |---|---|---|
26
+ | `--project_id` / `-p` | Yes | Project ID |
27
+ | `--resource_type` | Yes | Resource type: dashboard/report/metric/alert/tag/cluster/data_table/super_event/super_prop_user/super_prop_event/virtual_event/user_virtual_prop/event_virtual_prop |
28
+ | `--resource_id` | Yes | Numeric resource ID |
29
+
30
+ ## Recommended Chaining
31
+ - `+create_*` -> `te_common +get_resource_url`
32
+ - `+update_*` -> `te_common +get_resource_url`
@@ -0,0 +1,37 @@
1
+ # te_common +list_projects (view projects accessible to the current user)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **project discovery / cross-module pre-query**
6
+
7
+ ## Use Cases
8
+ - List all projects accessible to the current user. No parameters are required.
9
+ - Returns a list of project summaries; key fields include: `projectId`, `projectName`, `companyId`, `projectType`, `remark`, `appId`, `roleName`.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - This command does not accept any business parameters; do not invent `project_id`, keywords, or pagination parameters.
13
+ - If a later target command requires `project_id`, `+list_projects` may only be used for "candidate project discovery" and cannot replace user confirmation.
14
+ - In the final response, prioritize the returned `projectId`, `projectName`, and `roleName` to help the user confirm the project.
15
+
16
+ ## Command
17
+ ```bash
18
+ te-cli te_common +list_projects
19
+ te-cli te_common +list_projects --dry-run
20
+ ```
21
+
22
+ ## Parameters
23
+ | Parameter | Required | Description |
24
+ |---|---|---|
25
+ | None | - | No business parameters required |
26
+
27
+ ## Decision Rules
28
+ - When the user says "let me see what projects I have", "list the available projects first", or "I don't know project_id", call this command first.
29
+ - When you need to continue with a command that depends on `project_id`, show candidate projects first, then ask the user to explicitly confirm the target `projectId`.
30
+ - If there are many projects returned, prioritize summarizing by `projectName`, `projectId`, and `roleName` to avoid expanding all low-value fields at once.
31
+
32
+ ## Next Step on Failure
33
+ - If the result is empty, first confirm whether the current account, environment, and permissions are correct.
34
+ - If the call fails, first check the authentication status, the target environment host, and the current login identity.
35
+
36
+ ## Recommended Chaining
37
+ - `+list_projects` -> user confirms `project_id` -> any command that requires `project_id`
@@ -0,0 +1,133 @@
1
+ ---
2
+ name: te-community
3
+ version: 1.0.0
4
+ description: "TE 社区分析:帖子搜索、评论情感、话题趋势、风险内容、直播数据"
5
+ metadata:
6
+ requires:
7
+ bins: ["te-cli"]
8
+ cliHelp: "te-cli community --help"
9
+ ---
10
+
11
+ # te-community
12
+
13
+ > **前置条件:** 阅读 [`../te-shared/SKILL.md`](../te-shared/SKILL.md) 了解认证、全局参数和安全约束。
14
+
15
+ ## 概述
16
+
17
+ `te-community` 域提供社区社交媒体数据分析能力,包括帖子搜索、评论情感分析、话题趋势、风险内容监控和直播数据。
18
+
19
+ 命令通过 `te-cli community <command>` 调用。**本文件以导航为主**:具体用法、示例与 Flags 见下方 **`references/`** 与各复合分析 reference。
20
+
21
+ ## 通用参数
22
+
23
+ | 参数 | 说明 |
24
+ |------|------|
25
+ | `--space-id` | 社区空间 ID |
26
+ | `--game-id` | 游戏/空间标识 |
27
+
28
+ ## 渠道 ID 前置:`get_channel_info`
29
+
30
+ 大量子命令依赖 **`--channel-id`** 或 **`--channel-id-list`**(例如帖子详情、评论摘要、直播会话列表、按渠道筛选的搜索等)。在只有 `space-id` / `game-id`、尚未知道渠道编号时,**建议先调用** `te-cli community get_channel_info` 拿到各渠道的 ID 与名称,再执行后续命令。详见 [get_channel_info](references/get_channel_info.md)。
31
+
32
+ ## 数组参数格式
33
+
34
+ 多值参数使用 **逗号分隔**:
35
+ ```
36
+ --channel-id-list 1,2,3
37
+ --keywords tag1,tag2
38
+ --sentiment-types 0,1
39
+ ```
40
+
41
+ ## 日期格式
42
+
43
+ 所有日期参数使用 `yyyy-MM-dd` 格式,如 `--start-time 2024-01-01`。
44
+
45
+ ## 参考文档(子命令导航)
46
+
47
+ 按需打开对应文件即可查看说明与示例(单命令一页):
48
+
49
+ - 按关键词/时间段搜索帖子或视频:[search_posts](references/search_posts.md)
50
+ - 已拿到 `post-id`,查看单条内容详情:[get_post_detail](references/get_post_detail.md)
51
+ - 查询可用分析标签列表:[get_corpus_tags](references/get_corpus_tags.md)
52
+ - 快速查看评论区整体情绪与摘要:[get_comments_summary](references/get_comments_summary.md)
53
+ - 分析评论标签分布与占比:[get_comment_tag_analysis](references/get_comment_tag_analysis.md)
54
+ - 查看情感走势(按时间段):[get_sentiment_overview](references/get_sentiment_overview.md)
55
+ - 查看社区大盘总览(发帖、互动等):[get_overview_metrics](references/get_overview_metrics.md)
56
+ - 识别当前热榜话题:[get_hot_topics](references/get_hot_topics.md)
57
+ - 下钻查看某个话题详情:[get_topic_detail](references/get_topic_detail.md)
58
+ - 观察特定标签的趋势变化:[get_tag_trends](references/get_tag_trends.md)
59
+ - 生成/查看单日社区摘要(日报):[get_daily_summary](references/get_daily_summary.md)
60
+ - 排查风险内容与安全合规问题:[get_risk_content](references/get_risk_content.md)
61
+ - 获取直播间列表并确定房间范围:[get_livestream_rooms](references/get_livestream_rooms.md)
62
+ - 查看直播间历史会话列表:[get_livestream_list](references/get_livestream_list.md)
63
+ - 查看某场直播会话明细:[get_livestream_detail](references/get_livestream_detail.md)
64
+ - 直播场次 AI 分析报告(亮点切片与情感观点):[get_livestream_analysis](references/get_livestream_analysis.md)
65
+ - 查看直播模块在时间段内的整体表现:[get_livestream_overview](references/get_livestream_overview.md)
66
+ - 查看单直播间年度指标:[get_livestream_room_metrics](references/get_livestream_room_metrics.md)
67
+ - 获取渠道列表与渠道基础信息:[get_channel_info](references/get_channel_info.md)
68
+
69
+ ## 高级分析技能
70
+
71
+ 以下技能基于 MCP 工具链组合调用,用于生成结构化的深度分析报告。
72
+
73
+ ### community-activity-analysis(活动专项运营洞察分析)
74
+
75
+ 深度评估游戏内活动或营销事件的曝光效果、社区口碑、二创生态及长尾影响。
76
+
77
+ 详见:[`references/community-activity-analysis.md`](references/community-activity-analysis.md)
78
+
79
+ ---
80
+
81
+ ### community-daily-report(每日快报)
82
+
83
+ 生成单日大盘、突发舆情与安全合规风控的短平快《用户运营每日快报》,支持环比对比(T-1 与 T-2)。
84
+
85
+ 详见:[`references/community-daily-report.md`](references/community-daily-report.md)
86
+
87
+ ---
88
+
89
+ ### community-character-analysis(角色专项深度分析)
90
+
91
+ 深度剖析特定游戏角色的社区生态、玩家情感动因、核心诉求。
92
+
93
+ 详见:[`references/community-character-analysis.md`](references/community-character-analysis.md)
94
+
95
+ ---
96
+
97
+ ### community-hottopic-insight(话题分析报告)
98
+
99
+ 自动调用 MCP 工具收集语料,智能识别行业属性,输出包含核心摘要、舆情概览及事件脉络、核心热点讨论、情绪切片、社媒渠道洞察及运营建议的结构化《舆情分析》。
100
+
101
+ 详见:[`references/community-hottopic-insight.md`](references/community-hottopic-insight.md)
102
+
103
+ ---
104
+
105
+ ### community-release-analysis(版本运营分析复盘)
106
+
107
+ 提取整个版本周期内的大盘数据、热点榜单、舆情脉络与风控趋势,输出深度的《版本运营分析复盘报告》。
108
+
109
+ 详见:[`references/community-release-analysis.md`](references/community-release-analysis.md)
110
+
111
+ ---
112
+
113
+ ### community-weekly-report(社区运营周度总结)
114
+
115
+ 汇总统揽一周数据,重点基于"每日摘要"串联本周核心发酵事件,输出《社区运营周度总结报告》。
116
+
117
+ 详见:[`references/community-weekly-report.md`](references/community-weekly-report.md)
118
+
119
+ ---
120
+
121
+ ### community-analyzing-official-content(官方内容分析)
122
+
123
+ 分析指定游戏在社区模块中近期发布的官方内容,按照既定分类进行梳理和总结。
124
+
125
+ 详见:[`references/community-analyzing-official-content.md`](references/community-analyzing-official-content.md)
126
+
127
+ ---
128
+
129
+ ### community-analyzing-theme-comment(主题评论区深度分析)
130
+
131
+ 对指定帖子或视频的评论区进行深度分析,生成包含评论走势、观点分布和总结的深度分析报告。
132
+
133
+ 详见:[`references/community-analyzing-theme-comment.md`](references/community-analyzing-theme-comment.md)