@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,63 @@
1
+ # te_analysis +query_event_details (Query Event Details)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Event detail queries**
6
+
7
+ ## Use Cases
8
+ - When constructing `filters` / `properties`, you must first obtain the filter schema and the project metadata for real events/properties.
9
+ - Query event detail data. Supports time range, filters, display properties, sorting, and result limits.
10
+ - Query event detail data.
11
+
12
+ ## Mandatory prerequisites (MUST)
13
+ - Before constructing `--filters` / `--properties`, you must first read and follow these reference documents:
14
+ - [`./get-filter-schema.md`](./get-filter-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 generate the final `filters` / `properties` until the documentation review and prerequisite command calls are complete.
18
+
19
+ ## Prerequisite call chain (required for constructing filters/properties)
20
+ 1. Read `get-filter-schema.md`, then call `te-cli te_analysis +get_filter_schema` to get the filter structure.
21
+ 2. Read `list-events.md`, then call `te-cli te_meta +list_events --project_id 1` to confirm the available event names.
22
+ 3. Read `list-properties.md`, then call `te-cli te_meta +list_properties --project_id 1` to get the available properties.
23
+ 4. Build `filters` / `properties` from the schema + metadata, then call `+query_event_details`.
24
+
25
+ ## Command
26
+ ```bash
27
+ te-cli te_analysis +query_event_details --project_id 1 --event_name login --start_time '2026-04-08 00:00:00' --end_time '2026-04-08 23:59:59'
28
+ te-cli te_analysis +query_event_details --project_id 1 --event_name login --relative_date_range 0-7 --filters '{}' --properties '{}' --sort_by time --sort_order desc --limit 100 --zone_offset 8 --use_cache true
29
+ te-cli te_analysis +query_event_details --dry-run
30
+ ```
31
+
32
+ ## Parameters
33
+ | Parameter | Required | Description |
34
+ |---|---|---|
35
+ | `--project_id` / `-p` | Yes | Project ID |
36
+ | `--event_name` | Yes | Event name |
37
+ | `--start_time` | No | Start time. Format: yyyy-MM-dd HH:mm:ss |
38
+ | `--end_time` | No | End time. Format: yyyy-MM-dd HH:mm:ss |
39
+ | `--relative_date_range` | No | Optional relative date range in m-n format. For example, 0-7 means the most recent 7 days including today. Use either this field or start_time/end_time. |
40
+ | `--filters` | No | Optional filter JSON. If provided, MUST follow `+get_filter_schema`, and referenced fields must come from `te_meta +list_properties` in the same `project_id`. |
41
+ | `--properties` | No | Optional display properties JSON, for example `[{"columnName":"#user_id","tableType":"0"},{"columnName":"device_id","tableType":"0"}]`. If provided, property names should come from `te_meta +list_properties` in the same `project_id`. |
42
+ | `--sort_by` | No | Optional sort field |
43
+ | `--sort_order` | No | Optional sort order. Supported values: asc and desc |
44
+ | `--limit` | No | Optional result limit. Default: 1000 |
45
+ | `--zone_offset` | No | Time zone offset. For example, UTC+8 is 8 |
46
+ | `--use_cache` | No | Whether to use cache. Default: true |
47
+
48
+ ## Decision Rules
49
+ - `filters` / `properties` cannot be written from experience alone: they must satisfy both the schema structure and the project metadata constraints.
50
+ - Before calling `list_events` / `list_properties`, you must first study the corresponding reference documents.
51
+ - On the first run, start with only the required parameters (`--project_id`, `--event_name`) and add optional parameters after confirming the path works.
52
+ - Wrap JSON parameters in single quotes (for example `--filters '{}'`, `--properties '{}'`) to avoid shell escaping issues.
53
+ - When dates/time ranges are involved, first verify with a short range, then gradually expand the range.
54
+ - For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
55
+
56
+ ## Next Steps on Failure
57
+ - If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`, `--event_name`).
58
+ - If `Invalid JSON` appears, first check the filter schema required fields, then verify whether the event/property names come from metadata query results for the same `project_id`.
59
+ - If the query times out or results are abnormal, first narrow the time range / grouping dimensions, then split the subqueries to locate the issue.
60
+
61
+ ## Recommended chaining
62
+ - +get_filter_schema -> te_meta +list_events -> te_meta +list_properties -> +query_event_details
63
+ - +query_entity_details -> +query_event_details -> +build_event_details_sql
@@ -0,0 +1,65 @@
1
+ # te_analysis +query_report_data (query data by report)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Report Management**
6
+
7
+ ## Use Cases
8
+ - Prerequisite helper: first call `+get_filter_schema` to get the structure, then call this tool.
9
+ - Prerequisite helper: first call `+get_groupby_schema` to get the structure, then call this tool.
10
+ - When building `filters` / `group_by`, you must supplement the project's real event/property metadata.
11
+ - Query analysis data for one or more reports. Returns chart values, trend results, and similar data, but not report definitions. Supports extra filters, group-by settings, and time range overrides.
12
+ - Query analysis data for one or more reports.
13
+
14
+ ## Mandatory Prerequisites (MUST)
15
+ - Before building `--filters` / `--group_by`, you must first read and follow the following reference docs:
16
+ - [`./get-filter-schema.md`](./get-filter-schema.md)
17
+ - [`./get-groupby-schema.md`](./get-groupby-schema.md)
18
+ - [`../../te-meta/references/list-events.md`](../../te-meta/references/list-events.md)
19
+ - [`../../te-meta/references/list-properties.md`](../../te-meta/references/list-properties.md)
20
+ - Do not generate final `filters` / `group_by` until the above docs have been read and the prerequisite commands have been called.
21
+
22
+ ## Prerequisite Call Chain (required for building filters/group_by)
23
+ 1. Read `get-filter-schema.md`, then call `ae-cli te_analysis +get_filter_schema` to get the filter structure.
24
+ 2. Read `get-groupby-schema.md`, then call `ae-cli te_analysis +get_groupby_schema` to get the grouping structure.
25
+ 3. Read `list-events.md`, then call `ae-cli te_meta +list_events --project_id 1`.
26
+ 4. Read `list-properties.md`, then call `ae-cli te_meta +list_properties --project_id 1`.
27
+ 5. Build `filters` / `group_by` based on the schema and metadata, then call `+query_report_data`.
28
+
29
+ ## Commands
30
+ ```bash
31
+ ae-cli te_analysis +query_report_data --project_id 1 --report_ids '[1001]'
32
+ ae-cli te_analysis +query_report_data --project_id 1 --report_ids '[1001]' --filters '{}' --group_by '[]' --request_id demo --use_cache true --start_date 2026-04-08 --end_date 2026-04-08 --time_granularity day --timeout_minutes 8
33
+ ae-cli te_analysis +query_report_data --dry-run
34
+ ```
35
+
36
+ ## Parameters
37
+ | Parameter | Required | Description |
38
+ |---|---|---|
39
+ | `--project_id` / `-p` | Yes | Project ID |
40
+ | `--report_ids` | Yes | List of report IDs |
41
+ | `--filters` | No | Optional filter JSON. If provided, MUST follow `+get_filter_schema`, and referenced fields must come from `te_meta +list_properties` in the same `project_id`. |
42
+ | `--group_by` | No | Optional group-by JSON array. If provided, MUST follow `+get_groupby_schema`, and referenced fields must come from `te_meta +list_properties` in the same `project_id`. |
43
+ | `--request_id` | No | Optional unique request ID. Generated automatically if omitted. |
44
+ | `--use_cache` | No | Whether to use cache. Default: true |
45
+ | `--start_date` | No | Optional start date in yyyy-MM-dd format |
46
+ | `--end_date` | No | Optional end date in yyyy-MM-dd format |
47
+ | `--time_granularity` | No | Optional time granularity used to override the report default. Supported values: minute, minute5, minute10, hour, day, week, month, quarter, year, total. |
48
+ | `--timeout_minutes` | No | Query timeout in minutes. If the query exceeds this time, it will be cancelled automatically. 30 minutes if omitted. |
49
+
50
+ ## Decision Rules
51
+ - `filters` / `group_by` cannot be written by hand based on experience alone: they must satisfy both the schema structure and the project's real metadata.
52
+ - `list_events` / `list_properties` must be learned from the corresponding reference docs before calling them.
53
+ - For the first run, it is recommended to pass only the required parameters (`--project_id`, `--report_ids`) and add optional parameters after confirming the chain works.
54
+ - Wrap JSON parameters in single quotes (for example `--report_ids '{}'`, `--filters '{}'`) to avoid shell escaping issues.
55
+ - When dates/time ranges are involved, validate with a short range first and then expand gradually.
56
+ - For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
57
+
58
+ ## Next Step After Failure
59
+ - If required parameters are missing, fall back to the smallest runnable command and fill them in (focus on `--project_id`, `--report_ids`).
60
+ - If `Invalid JSON` appears, first check the required schema fields, then verify that the event name/property name comes from metadata queried in the same `project_id`.
61
+ - If the query times out or the result is abnormal, first reduce the time range/grouping dimensions, then split the query to locate the issue.
62
+
63
+ ## Recommended Chaining
64
+ - +get_filter_schema -> +get_groupby_schema -> te_meta +list_events -> te_meta +list_properties -> +query_report_data
65
+ - +list_reports -> +get_report_definition -> +query_report_data
@@ -0,0 +1,49 @@
1
+ # te_analysis +update_alert (Update Alert)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Metadata queries**
6
+
7
+ ## Use Cases
8
+ - Precondition helper: call `+get_alert_definition_schema` to get the structure before using this tool.
9
+ - Update an existing alert. All fields in the definition will replace existing values. See get_alert_definition_schema for the parameter structure.
10
+ - Update an existing alert.
11
+
12
+ ## Mandatory prerequisites (MUST)
13
+ - Before constructing a new `--definition`, you must first read and follow:
14
+ - [`./get-alert-definition-schema.md`](./get-alert-definition-schema.md)
15
+ - Do not submit the new `definition` until the documentation review and schema call are complete.
16
+
17
+ ## Prerequisite call chain (required for updating definition)
18
+ 1. Read `get-alert-definition-schema.md` to understand the return structure of `+get_alert_definition_schema`.
19
+ 2. Call `te-cli te_analysis +get_alert_definition_schema` to get the schema.
20
+ 3. Build a new `definition` from the schema, then call `+update_alert`.
21
+
22
+ ## Command
23
+ ```bash
24
+ te-cli te_analysis +update_alert --project_id 1 --alert_id 1 --definition '{}'
25
+ te-cli te_analysis +update_alert --dry-run
26
+ ```
27
+
28
+ ## Parameters
29
+ | Parameter | Required | Description |
30
+ |---|---|---|
31
+ | `--project_id` / `-p` | Yes | Project ID |
32
+ | `--alert_id` / `-a` | Yes | Alert ID to update |
33
+ | `--definition` | Yes | Alert definition JSON with updated fields. MUST call `+get_alert_definition_schema` first and strictly follow the returned structure. |
34
+
35
+ ## Decision Rules
36
+ - `definition` cannot be written from experience alone: it must satisfy the alert schema structure constraints.
37
+ - On the first run, start with only the required parameters (`--project_id`, `--alert_id`, `--definition`) and add optional parameters after confirming the path works.
38
+ - Wrap JSON parameters in single quotes (for example `--definition '{}'`) to avoid shell escaping issues.
39
+ - For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
40
+ - Write operations keep the confirmation prompt by default; evaluate whether to use `--yes` for automated scenarios.
41
+
42
+ ## Next Steps on Failure
43
+ - If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`, `--alert_id`, `--definition`).
44
+ - If `Invalid JSON` appears, first check the schema required fields and enumeration values, then add fields incrementally.
45
+ - If the result after writing does not match expectations, immediately read back the corresponding list/get interface to compare before and after.
46
+
47
+ ## Recommended chaining
48
+ - +get_alert_definition_schema -> +update_alert
49
+ - +list_alerts -> +get_alert -> +update_alert
@@ -0,0 +1,45 @@
1
+ # te_analysis +update_dashboard (update dashboard)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Dashboard Management**
6
+
7
+ ## Use Cases
8
+ - Update dashboard metadata. Supports three operations (all optional):
9
+ - (1) Rename dashboard
10
+ - (2) Add associated reports (append mode)
11
+ - (3) Replace share members (full replacement mode)
12
+ - Important constraints:
13
+ - Before replacing share members: call query_dashboard_detail first
14
+ - When managing members: call list_project_users to get valid userId mappings
15
+ - Update dashboard metadata.
16
+
17
+ ## Commands
18
+ ```bash
19
+ ae-cli te_analysis +update_dashboard --project_id 1 --dashboard_id 1
20
+ ae-cli te_analysis +update_dashboard --project_id 1 --dashboard_id 1 --dashboard_name demo --report_ids '[1001]' --member_authorities '{"1001":"READ"}'
21
+ ae-cli te_analysis +update_dashboard --dry-run
22
+ ```
23
+
24
+ ## Parameters
25
+ | Parameter | Required | Description |
26
+ |---|---|---|
27
+ | `--project_id` / `-p` | Yes | Project ID |
28
+ | `--dashboard_id` / `-d` | Yes | Dashboard ID |
29
+ | `--dashboard_name` | No | New dashboard name. If provided, updates the dashboard name. |
30
+ | `--report_ids` | No | List of report IDs to associate with the dashboard. Reports not already associated will be added (append mode, not a full replacement). |
31
+ | `--member_authorities` | No | Map of member userId to permissions (READ, EDIT, MAINTAIN). Full replacement mode — existing members not in this map will be removed. |
32
+
33
+ ## Decision Rules
34
+ - For the first run, it is recommended to pass only the required parameters (`--project_id`, `--dashboard_id`) and add optional parameters after confirming the chain works.
35
+ - Wrap JSON parameters in single quotes (for example `--report_ids '{}'`, `--member_authorities '{}'`) to avoid shell escaping issues.
36
+ - For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
37
+ - Write operations keep the confirmation prompt by default; evaluate whether to use `--yes` only for automation scenarios.
38
+
39
+ ## Next Step After Failure
40
+ - If required parameters are missing, fall back to the smallest runnable command and fill them in (focus on `--project_id`, `--dashboard_id`).
41
+ - If `Invalid JSON` appears, first validate with the smallest JSON structure (for example `{}` or `[]`), then add fields gradually.
42
+ - If the result after writing is not as expected, immediately reread the corresponding list/get interface and compare before and after.
43
+
44
+ ## Recommended Chaining
45
+ - +list_dashboards -> +query_dashboard_detail -> +query_dashboard_report_data
@@ -0,0 +1,41 @@
1
+ # te_analysis +update_public_access_link (Update Public Access Link)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Dashboard management**
6
+
7
+ ## Use Cases
8
+ - Update the access controls, remark, and effective time range of a public access link. Returns the updated link information.
9
+ - Update the access controls, remark, and effective time range of a public access link.
10
+
11
+ ## Command
12
+ ```bash
13
+ ae-cli te_analysis +update_public_access_link --project_id 1 --link_id 1 --access_controls '{}' --effective_at "2026-04-09 10:00:00" --expires_at "2026-04-10 10:00:00"
14
+ ae-cli te_analysis +update_public_access_link --project_id 1 --company_id 1 --link_id 1 --access_controls '{}' --remark demo --effective_at "2026-04-09 10:00:00" --expires_at "2026-04-10 10:00:00"
15
+ ae-cli te_analysis +update_public_access_link --dry-run
16
+ ```
17
+
18
+ ## Parameters
19
+ | Parameter | Required | Description |
20
+ |---|---|---|
21
+ | `--project_id` / `-p` | Yes | Project ID |
22
+ | `--company_id` | No | Optional company ID. If omitted, the company ID of the project is used. |
23
+ | `--link_id` | Yes | Link ID |
24
+ | `--access_controls` | Yes | Public access control JSON |
25
+ | `--remark` | No | Optional remark. Maximum length: 200 characters |
26
+ | `--effective_at` | Yes | Effective time. Format: yyyy-MM-dd HH:mm:ss |
27
+ | `--expires_at` | Yes | Expiration time. Format: yyyy-MM-dd HH:mm:ss |
28
+
29
+ ## Decision Rules
30
+ - On the first run, start with only the required parameters (`--project_id`,`--link_id`,`--access_controls`), and add optional parameters after confirming the path works.
31
+ - Wrap JSON parameters in single quotes (for example `--access_controls '{}'`) to avoid shell escaping issues.
32
+ - When dates/time ranges are involved, first verify with a short range, then gradually expand the range.
33
+ - For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
34
+
35
+ ## Next Steps on Failure
36
+ - If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`, `--link_id`, `--access_controls`).
37
+ - If `Invalid JSON` appears, first verify with the smallest JSON structure (for example `{}` or `[]`), then add fields incrementally.
38
+ - If the result after writing does not match expectations, immediately read back the corresponding list/get interface to compare before and after.
39
+
40
+ ## Recommended chaining
41
+ - +list_public_access_links -> +update_public_access_link
@@ -0,0 +1,63 @@
1
+ ---
2
+ name: te-audience
3
+ version: 1.0.0
4
+ description: "TE audience operations and targeting: create, update, query, recompute, and inspect member details for clusters and tags, plus cluster/tag definition schemas. Triggered when the user mentions audience building/targeting, audience packages, tag systems, tag assignment, tag member lookup, updating cluster rules, or recomputing clusters or tags."
5
+ metadata:
6
+ requires:
7
+ bins: ["ae-cli"]
8
+ cliHelp: "ae-cli te_audience --help"
9
+ ---
10
+
11
+ # te-audience
12
+
13
+ > **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 defined there.
14
+ > **CRITICAL - Before performing write operations, MUST first read [`../te-common/SKILL.md`](../te-common/SKILL.md)**: shared post-action constraints (append resource links after create/update) are defined in that module.
15
+ > **CRITICAL - For every command that requires `project_id`, MUST follow `te-common`'s `PROJECT_ID_GATE` (if missing, stop and confirm with the user).**
16
+ > **CRITICAL - Before running any `+<tool_name>` command, MUST first read the corresponding reference document `./references/<tool-name>.md`** For example: before running `+create_cluster`, you must read [`./references/create-cluster.md`](./references/create-cluster.md)
17
+
18
+ ## When to Use
19
+
20
+ Use `te-audience` when the user needs cluster and tag capabilities:
21
+
22
+ - Clusters: create, update, query, member inspection, recomputation
23
+ - Tags: create, update, query, member inspection, recomputation
24
+ - Cluster/tag definition schema: for frontend configurators or command argument construction
25
+
26
+ ## Command Format
27
+
28
+ `ae-cli te_audience +<tool_name> [options]`
29
+
30
+ ## Tool Groups (14)
31
+
32
+ ### Clusters (6)
33
+ - `+create_cluster` ([Docs](./references/create-cluster.md))
34
+ - `+get_clusters_by_name` ([Docs](./references/get-clusters-by-name.md))
35
+ - `+list_cluster_members` ([Docs](./references/list-cluster-members.md))
36
+ - `+list_clusters` ([Docs](./references/list-clusters.md))
37
+ - `+update_cluster` ([Docs](./references/update-cluster.md))
38
+ - `+refresh_cluster` ([Docs](./references/refresh-cluster.md))
39
+
40
+ ### Tags (6)
41
+ - `+create_tag` ([Docs](./references/create-tag.md))
42
+ - `+get_tags_by_name` ([Docs](./references/get-tags-by-name.md))
43
+ - `+list_tag_members` ([Docs](./references/list-tag-members.md))
44
+ - `+list_tags` ([Docs](./references/list-tags.md))
45
+ - `+update_tag` ([Docs](./references/update-tag.md))
46
+ - `+refresh_tag` ([Docs](./references/refresh-tag.md))
47
+
48
+ ### Schema Definitions (2)
49
+ - `+get_cluster_definition_schema` ([Docs](./references/get-cluster-definition-schema.md))
50
+ - `+get_tag_definition_schema` ([Docs](./references/get-tag-definition-schema.md))
51
+
52
+ ## Quick Validation
53
+
54
+ ```bash
55
+ ae-cli te_audience --help
56
+ npm run verify:te-audience-tools
57
+ # Example: preview the request with dry-run (replace project_id with your actual project ID)
58
+ ae-cli te_audience +list_clusters --project_id <YOUR_PROJECT_ID> --dry-run
59
+ ```
60
+
61
+ ## Reference Docs
62
+
63
+ See the `references/` directory (14 per-command documents total).
@@ -0,0 +1,65 @@
1
+ # te_audience +create_cluster (Create 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 obtain the `definition` structure, then call this tool.
9
+ - When building a real `definition`, you must supplement it with real project metadata: first call `te_meta +list_events` and `te_meta +list_properties`, then fill in event names/property names.
10
+ - Create a user cluster definition. Supports the condition and sql cluster types. Returns cluster information without cluster members.
11
+
12
+ ## Required Prerequisites (MUST)
13
+ - Before constructing `--definition`, you must first read and follow these reference docs:
14
+ - [`./get-cluster-definition-schema.md`](./get-cluster-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 generate the final `definition` until the above docs have been read and the prerequisite commands have been run.
18
+
19
+ ## Prerequisite Call Chain (Required for Building Definition)
20
+ 1. Read `get-cluster-definition-schema.md` to understand the input and output structure of `+get_cluster_definition_schema`.
21
+ 2. Obtain the schema structure (by cluster type):
22
+ `te-cli te_audience +get_cluster_definition_schema --cluster_type condition`
23
+ 3. Read `list-events.md` to understand the parameters and return structure of `+list_events`.
24
+ 4. Get the event list (for `event_name` and other fields):
25
+ `te-cli te_meta +list_events --project_id 1`
26
+ 5. Read `list-properties.md` to understand the parameters and return structure of `+list_properties`.
27
+ 6. Get the property list (for property filters, grouping, and comparison fields):
28
+ `te-cli te_meta +list_properties --project_id 1`
29
+ 7. Build `definition` based on the schema + metadata, then call `+create_cluster`.
30
+
31
+ ## Commands
32
+ ```bash
33
+ te-cli te_audience +create_cluster --project_id 1 --cluster_name demo --display_name demo --definition '{}'
34
+ te-cli te_audience +create_cluster --project_id 1 --cluster_name demo --display_name demo --type condition --definition '{}' --zone_offset 8 --entity_id 1001
35
+ te-cli te_audience +create_cluster --dry-run
36
+ ```
37
+
38
+ ## Parameters
39
+ | Parameter | Required | Description |
40
+ |---|---|---|
41
+ | `--project_id` / `-p` | Yes | Project ID |
42
+ | `--cluster_name` | Yes | Cluster name. Must start with a letter and contain only letters, digits, and underscores. Length: 1-80 |
43
+ | `--display_name` | Yes | Cluster display name. Length: 1-80 |
44
+ | `--type` | No | Cluster type. Supported values: condition and sql. Default: condition |
45
+ | `--definition` | Yes | Cluster definition JSON. MUST call `+get_cluster_definition_schema` first to learn the exact structure, then use `te_meta +list_events` / `te_meta +list_properties` to fill valid event/property names from the target project. |
46
+ | `--zone_offset` | No | Optional time zone offset for cluster computation. Valid range: -12 to 14 (supports decimals like 5.5). If the user does not specify a timezone, omit this parameter. When a timezone is specified, call get_project_config first to check whether the project supports time zones (timeZoneEnabled) and available values (availableTimeZones). |
47
+ | `--entity_id` | No | Optional entity ID for cluster definition. Use list_entities to query available entities. |
48
+
49
+ ## Decision Rules
50
+ - `definition` cannot be written from experience alone: it must satisfy both the schema structure and the project's real metadata (events and properties).
51
+ - Determine `--type` first, then fetch the schema for the corresponding `--cluster_type`; do not mix condition/sql structures.
52
+ - Before calling `list_events` / `list_properties`, you must first read their reference docs to avoid misuse of parameters or misreading return fields.
53
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--cluster_name`, `--display_name`, `--definition`) and add optional parameters after confirming the path works.
54
+ - Wrap JSON parameters in single quotes (e.g. `--definition '{}'`) to avoid shell escaping issues.
55
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
56
+ - Write operations keep confirmation prompts by default; for automation scenarios, reevaluate whether to use `--yes`.
57
+
58
+ ## Next Step on Failure
59
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`, `--cluster_name`, `--display_name`, `--definition`).
60
+ - 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 `list_events/list_properties` results.
61
+ - If the result after writing is not as expected, immediately re-read the corresponding list/get interfaces and compare before and after.
62
+
63
+ ## Recommended Chain
64
+ - +get_cluster_definition_schema -> te_meta +list_events -> te_meta +list_properties -> +create_cluster
65
+ - +list_clusters -> +get_clusters_by_name -> +update_cluster
@@ -0,0 +1,60 @@
1
+ # te_audience +create_tag (Create 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 obtain the structure, then call this tool.
9
+ - When building a real `definition`, you must supplement it with real project metadata; at minimum, first call `te_meta +list_events` and `te_meta +list_properties`.
10
+ - Create a user tag definition. Supports the condition, metric, first_last, and sql tag types. Returns the new tag ID without tag members.
11
+
12
+ ## Required Prerequisites (MUST)
13
+ - Before constructing `--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 generate the final `definition` until the above docs have been read and the prerequisite commands have been run.
18
+
19
+ ## Prerequisite Call Chain (Required for Building Definition)
20
+ 1. First determine `--type` (condition / metric / first_last / sql).
21
+ 2. Read `get-tag-definition-schema.md` to understand the return structure of `+get_tag_definition_schema`.
22
+ 3. Call `te-cli te_audience +get_tag_definition_schema` to obtain the schema.
23
+ 4. Read `list-events.md`, then call `te-cli te_meta +list_events --project_id 1` to get available events.
24
+ 5. Read `list-properties.md`, then call `te-cli te_meta +list_properties --project_id 1` to get available properties.
25
+ 6. Build `definition` based on the schema + metadata, then call `+create_tag`.
26
+
27
+ ## Commands
28
+ ```bash
29
+ te-cli te_audience +create_tag --project_id 1 --tag_name demo --display_name demo --definition '{}'
30
+ te-cli te_audience +create_tag --project_id 1 --tag_name demo --display_name demo --type condition --definition '{}' --zone_offset 8 --entity_id 1001
31
+ te-cli te_audience +create_tag --dry-run
32
+ ```
33
+
34
+ ## Parameters
35
+ | Parameter | Required | Description |
36
+ |---|---|---|
37
+ | `--project_id` / `-p` | Yes | Project ID |
38
+ | `--tag_name` | Yes | Tag name. Must start with a letter and contain only letters, digits, and underscores. Length: 1-80 |
39
+ | `--display_name` | Yes | Tag display name. Length: 1-80 |
40
+ | `--type` | No | Tag type. Supported values: condition, metric, first_last, sql |
41
+ | `--definition` | Yes | Tag definition JSON. 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). If the user does not specify a timezone, omit this parameter. When a timezone is specified, call get_project_config first to check whether the project supports time zones (timeZoneEnabled) and available values (availableTimeZones). |
43
+ | `--entity_id` | No | Optional entity ID for tag definition. Use list_entities to query available entities. |
44
+
45
+ ## Decision Rules
46
+ - `definition` 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 to avoid misuse of parameters or misreading return fields.
48
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--tag_name`, `--display_name`, `--definition`) 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`, `--display_name`, `--definition`).
55
+ - If `Invalid JSON` appears, first check schema-required fields, 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 -> +create_tag
60
+ - +list_tags -> +get_tags_by_name -> +update_tag
@@ -0,0 +1,37 @@
1
+ # te_audience +get_cluster_definition_schema (Get Cluster Definition Schema)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Schema Query**
6
+
7
+ ## Use Cases
8
+ - Support tool positioning: the current command provides the structure definition (schema) and should be used as a prerequisite step.
9
+ - Recommended sequence: first call this schema tool to get the structure, then call `te_meta +list_events` / `te_meta +list_properties` to obtain real metadata, and finally create or update clusters.
10
+ - Get the cluster definition schema. Supports the condition and sql cluster types and returns field definitions, enum descriptions, and examples.
11
+
12
+ ## Commands
13
+ ```bash
14
+ te-cli te_audience +get_cluster_definition_schema --cluster_type condition
15
+ te-cli te_audience +get_cluster_definition_schema --cluster_type sql
16
+ te-cli te_audience +get_cluster_definition_schema --dry-run
17
+ ```
18
+
19
+ ## Parameters
20
+ | Parameter | Required | Description |
21
+ |---|---|---|
22
+ | `--cluster_type` | Yes | Cluster type. Supported values: condition and sql |
23
+
24
+ ## Decision Rules
25
+ - `--cluster_type` must be explicitly set to `condition` or `sql`.
26
+ - It is recommended to run `--dry-run` first to inspect the request mapping before making the actual call.
27
+ - The current command returns only structure constraints; it does not guarantee that the field values are available in the target project. Event names and property names must be confirmed again with `te_meta` metadata interfaces.
28
+ - Before calling `te_meta +list_events` / `te_meta +list_properties`, first read their reference docs to confirm the parameter and return-field meanings.
29
+
30
+ ## Next Step on Failure
31
+ - If reading fails, first verify whether the object ID exists and belongs to the current project.
32
+ - If the schema does not match expectations, confirm whether the correct schema interface was used (filter/groupby/query/tag/cluster).
33
+
34
+ ## Recommended Chain
35
+ - First read: [`./get-cluster-definition-schema.md`](./get-cluster-definition-schema.md) -> [`../../te-meta/references/list-events.md`](../../te-meta/references/list-events.md) -> [`../../te-meta/references/list-properties.md`](../../te-meta/references/list-properties.md)
36
+ - +get_cluster_definition_schema -> te_meta +list_events -> te_meta +list_properties -> +create_cluster
37
+ - +get_cluster_definition_schema -> te_meta +list_events -> te_meta +list_properties -> +update_cluster
@@ -0,0 +1,32 @@
1
+ # te_audience +get_clusters_by_name (Locate Clusters by Name)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Cluster Management**
6
+
7
+ ## Use Cases
8
+ - Get cluster definition details in batch by cluster name. Returns complete cluster information for matched clusters, including IDs, names, display names, types, status, user counts, and refresh status.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +get_clusters_by_name --project_id 1 --names '["demo"]'
13
+ te-cli te_audience +get_clusters_by_name --dry-run
14
+ ```
15
+
16
+ ## Parameters
17
+ | Parameter | Required | Description |
18
+ |---|---|---|
19
+ | `--project_id` / `-p` | Yes | Project ID |
20
+ | `--names` | Yes | List of cluster names (JSON array). Exact-name matching is used; unmatched clusters are ignored automatically. |
21
+
22
+ ## Decision Rules
23
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--names`) and add optional parameters after confirming the path works.
24
+ - `--names` must be passed as a JSON array (e.g. `--names '["cluster_a","cluster_b"]'`).
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`, `--names`).
29
+ - If reading fails, first verify whether the object ID exists and belongs to the current project.
30
+
31
+ ## Recommended Chain
32
+ - +list_clusters -> +get_clusters_by_name -> +update_cluster
@@ -0,0 +1,32 @@
1
+ # te_audience +get_tag_definition_schema (Get Tag Definition Schema)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Schema Query**
6
+
7
+ ## Use Cases
8
+ - Support tool positioning: the current command provides the structure definition (schema) and should be used as a prerequisite step.
9
+ - Recommended sequence: first call this schema tool to get the structure, then call specific business tools.
10
+ - Typical downstream tools: `+create_tag`, `+update_tag`
11
+ - Get the tag definition schema. Supports the condition, metric, first_last, and sql tag types and returns field definitions, enum descriptions, and examples.
12
+
13
+ ## Commands
14
+ ```bash
15
+ te-cli te_audience +get_tag_definition_schema
16
+ te-cli te_audience +get_tag_definition_schema --dry-run
17
+ ```
18
+
19
+ ## Parameters
20
+ | Parameter | Required | Description |
21
+ |---|---|---|
22
+ | None | - | This command has no business parameters; call it directly. |
23
+
24
+ ## Decision Rules
25
+ - It is recommended to run `--dry-run` first to inspect the request mapping before making the actual call.
26
+
27
+ ## Next Step on Failure
28
+ - If reading fails, first verify whether the object ID exists and belongs to the current project.
29
+ - If the schema does not match expectations, confirm whether the correct schema interface was used (filter/groupby/query/tag/cluster).
30
+
31
+ ## Recommended Chain
32
+ - +get_analysis_query_schema -> +get_filter_schema -> +get_groupby_schema
@@ -0,0 +1,32 @@
1
+ # te_audience +get_tags_by_name (Locate Tags by Name)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Tag Management**
6
+
7
+ ## Use Cases
8
+ - Get tag definition details in batch by tag name. Returns complete tag information for matched tags, including IDs, names, display names, types, status, user counts, and tag definitions.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +get_tags_by_name --project_id 1 --names '["demo"]'
13
+ te-cli te_audience +get_tags_by_name --dry-run
14
+ ```
15
+
16
+ ## Parameters
17
+ | Parameter | Required | Description |
18
+ |---|---|---|
19
+ | `--project_id` / `-p` | Yes | Project ID |
20
+ | `--names` | Yes | List of tag names (JSON array). Exact-name matching is used; unmatched tags are ignored automatically. |
21
+
22
+ ## Decision Rules
23
+ - For the first execution, it is recommended to pass only the required parameters (`--project_id`, `--names`) and add optional parameters after confirming the path works.
24
+ - `--names` must be passed as a JSON array (e.g. `--names '["tag_a","tag_b"]'`).
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`, `--names`).
29
+ - If reading fails, first verify whether the object ID exists and belongs to the current project.
30
+
31
+ ## Recommended Chain
32
+ - +list_tags -> +get_tags_by_name -> +update_tag
@@ -0,0 +1,35 @@
1
+ # te_audience +list_cluster_members (View Cluster Members)
2
+
3
+ > **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
4
+
5
+ Domain: **Cluster Management**
6
+
7
+ ## Use Cases
8
+ - List members in the specified cluster. Returns member information such as user property values and total user count.
9
+
10
+ ## Commands
11
+ ```bash
12
+ te-cli te_audience +list_cluster_members --project_id 1 --cluster_name demo
13
+ te-cli te_audience +list_cluster_members --project_id 1 --cluster_name demo --property_names '["#user_id","name"]' --use_cache false
14
+ te-cli te_audience +list_cluster_members --dry-run
15
+ ```
16
+
17
+ ## Parameters
18
+ | Parameter | Required | Description |
19
+ |---|---|---|
20
+ | `--project_id` / `-p` | Yes | Project ID |
21
+ | `--cluster_name` | Yes | Cluster name |
22
+ | `--property_names` | No | Optional list of user property names (JSON array) |
23
+ | `--use_cache` | No | Whether to use cache. Default: true |
24
+
25
+ ## Decision Rules
26
+ - 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.
27
+ - `--property_names` must be passed as a JSON array (e.g. `--property_names '["#user_id"]'`).
28
+ - When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
29
+
30
+ ## Next Step on Failure
31
+ - If required parameters are missing, fall back to the smallest runnable command and fill the gap (focus on `--project_id`, `--cluster_name`).
32
+ - If the result is empty, first confirm the project ID/keyword, then try broadening the filter conditions.
33
+
34
+ ## Recommended Chain
35
+ - +list_clusters -> +get_clusters_by_name -> +update_cluster