@thinkingai/ae-cli 1.0.3 → 1.0.18
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.
- package/README.md +42 -72
- package/README.zh.md +202 -0
- package/dist/auth-2UTBG5U3.js +144 -0
- package/dist/{auth-BQC5DBE7.js → auth-ECD46NBA.js} +6 -4
- package/dist/{chunk-3CDLNXTD.js → chunk-4KQ7H7DY.js} +15 -3
- package/dist/{chunk-53FNNCZW.js → chunk-7QBNU44L.js} +101 -3
- package/dist/{chunk-ZYXIGPG7.js → chunk-LAAS6ITR.js} +3 -3
- package/dist/{chunk-EBFUVWIZ.js → chunk-MR57UIKC.js} +42 -0
- package/dist/{client-5QSQBBDB.js → client-O56G2SNJ.js} +3 -3
- package/dist/{config-Q7J3Z7Z2.js → config-BU5FHGGE.js} +23 -8
- package/dist/index.js +15 -15
- package/dist/{raw-G3GKHAPZ.js → raw-A3VN2B6I.js} +4 -4
- package/dist/{te-analysis-CHFTDN55.js → te-analysis-UGKESPBE.js} +62 -24
- package/dist/{te-audience-M6LQY6M7.js → te-audience-THZNVHYB.js} +61 -21
- package/dist/{te-common-BLQ7DVGC.js → te-common-QZOUME3S.js} +6 -33
- package/dist/{community-FVDAWGS4.js → te-community-AZVW3NFX.js} +59 -59
- package/dist/{te-dataops-V4OTKY35.js → te-dataops-OE5PX2K6.js} +3 -28
- package/dist/{te-engage-DXE4R5EW.js → te-engage-RYGEQTYK.js} +4 -22
- package/dist/{te-meta-FMM7KCVI.js → te-meta-MGO5BCMG.js} +88 -18
- package/package.json +3 -3
- package/skills/ae-analysis/SKILL.md +287 -0
- package/skills/{te-meta/references/batch-create-metadata.md → ae-analysis/references/batch_create_metadata.md} +3 -3
- package/skills/{te-meta/references/batch-edit-metadata.md → ae-analysis/references/batch_edit_metadata.md} +2 -2
- package/skills/{te-analysis/references/build-entity-details-sql.md → ae-analysis/references/build_entity_details_sql.md} +9 -9
- package/skills/{te-analysis/references/build-event-details-sql.md → ae-analysis/references/build_event_details_sql.md} +9 -9
- package/skills/{te-analysis/references/create-alert.md → ae-analysis/references/create_alert.md} +4 -4
- package/skills/{te-audience/references/create-cluster.md → ae-analysis/references/create_cluster.md} +23 -19
- package/skills/{te-analysis/references/create-dashboard.md → ae-analysis/references/create_dashboard.md} +4 -4
- package/skills/{te-meta/references/create-metric.md → ae-analysis/references/create_metric.md} +10 -10
- package/skills/{te-analysis/references/create-or-update-dashboard-note.md → ae-analysis/references/create_or_update_dashboard_note.md} +3 -3
- package/skills/{te-meta/references/create-project-mark-time.md → ae-analysis/references/create_project_mark_time.md} +3 -3
- package/skills/{te-analysis/references/create-public-access-link.md → ae-analysis/references/create_public_access_link.md} +3 -3
- package/skills/{te-analysis/references/create-report.md → ae-analysis/references/create_report.md} +9 -9
- package/skills/{te-analysis/references/create-result-cluster.md → ae-analysis/references/create_result_cluster.md} +6 -6
- package/skills/{te-audience/references/create-tag.md → ae-analysis/references/create_tag.md} +16 -15
- package/skills/{te-meta/references/create-virtual-event.md → ae-analysis/references/create_virtual_event.md} +9 -9
- package/skills/{te-meta/references/create-virtual-property.md → ae-analysis/references/create_virtual_property.md} +7 -7
- package/skills/{te-meta/references/delete-project-mark-times.md → ae-analysis/references/delete_project_mark_times.md} +2 -2
- package/skills/{te-meta/references/delete-track-items.md → ae-analysis/references/delete_track_items.md} +2 -2
- package/skills/{te-analysis/references/drilldown-user-events.md → ae-analysis/references/drilldown_user_events.md} +8 -8
- package/skills/{te-analysis/references/drilldown-users.md → ae-analysis/references/drilldown_users.md} +10 -7
- package/skills/ae-analysis/references/generate_track_program.md +51 -0
- package/skills/ae-analysis/references/generate_track_sdk_sample.md +43 -0
- package/skills/{te-analysis/references/get-alert.md → ae-analysis/references/get_alert.md} +2 -2
- package/skills/{te-analysis/references/get-alert-definition-schema.md → ae-analysis/references/get_alert_definition_schema.md} +1 -1
- package/skills/ae-analysis/references/get_analysis_query_schema.md +61 -0
- package/skills/ae-analysis/references/get_cluster_definition_schema.md +53 -0
- package/skills/ae-analysis/references/get_clusters_by_name.md +69 -0
- package/skills/{te-analysis/references/get-filter-schema.md → ae-analysis/references/get_filter_schema.md} +1 -1
- package/skills/{te-analysis/references/get-groupby-schema.md → ae-analysis/references/get_groupby_schema.md} +1 -1
- package/skills/{te-meta/references/get-metric.md → ae-analysis/references/get_metric.md} +2 -2
- package/skills/{te-meta/references/get-project-config.md → ae-analysis/references/get_project_config.md} +2 -2
- package/skills/{te-analysis/references/get-report-definition.md → ae-analysis/references/get_report_definition.md} +2 -2
- package/skills/{te-common/references/get-resource-url.md → ae-analysis/references/get_resource_url.md} +4 -4
- package/skills/{te-analysis/references/get-table-columns.md → ae-analysis/references/get_table_columns.md} +2 -2
- package/skills/ae-analysis/references/get_tag_definition_schema.md +49 -0
- package/skills/ae-analysis/references/get_tags_by_name.md +69 -0
- package/skills/{te-meta/references/get-track-program.md → ae-analysis/references/get_track_program.md} +2 -2
- package/skills/{te-analysis/references/list-alerts.md → ae-analysis/references/list_alerts.md} +10 -3
- package/skills/{te-audience/references/list-cluster-members.md → ae-analysis/references/list_cluster_members.md} +11 -4
- package/skills/{te-audience/references/list-clusters.md → ae-analysis/references/list_clusters.md} +14 -4
- package/skills/{te-analysis/references/list-dashboards.md → ae-analysis/references/list_dashboards.md} +12 -4
- package/skills/{te-meta/references/list-entities.md → ae-analysis/references/list_entities.md} +10 -3
- package/skills/{te-meta/references/list-events.md → ae-analysis/references/list_events.md} +12 -5
- package/skills/ae-analysis/references/list_metrics.md +45 -0
- package/skills/ae-analysis/references/list_project_mark_times.md +42 -0
- package/skills/{te-meta/references/list-project-users.md → ae-analysis/references/list_project_users.md} +2 -2
- package/skills/{te-common/references/list-projects.md → ae-analysis/references/list_projects.md} +6 -4
- package/skills/{te-meta/references/list-properties.md → ae-analysis/references/list_properties.md} +9 -4
- package/skills/ae-analysis/references/list_public_access_links.md +41 -0
- package/skills/{te-analysis/references/list-reports.md → ae-analysis/references/list_reports.md} +12 -4
- package/skills/{te-audience/references/list-tag-members.md → ae-analysis/references/list_tag_members.md} +11 -4
- package/skills/{te-audience/references/list-tags.md → ae-analysis/references/list_tags.md} +14 -4
- package/skills/{te-analysis/references/load-filters.md → ae-analysis/references/load_filters.md} +3 -3
- package/skills/{te-analysis/references/query-adhoc.md → ae-analysis/references/query_adhoc.md} +24 -9
- package/skills/{te-analysis/references/query-dashboard-detail.md → ae-analysis/references/query_dashboard_detail.md} +2 -2
- package/skills/{te-analysis/references/query-dashboard-report-data.md → ae-analysis/references/query_dashboard_report_data.md} +9 -9
- package/skills/{te-analysis/references/query-entity-details.md → ae-analysis/references/query_entity_details.md} +10 -10
- package/skills/{te-analysis/references/query-event-details.md → ae-analysis/references/query_event_details.md} +12 -12
- package/skills/{te-analysis/references/query-report-data.md → ae-analysis/references/query_report_data.md} +11 -11
- package/skills/{te-audience/references/refresh-cluster.md → ae-analysis/references/refresh_cluster.md} +2 -2
- package/skills/{te-audience/references/refresh-tag.md → ae-analysis/references/refresh_tag.md} +2 -2
- package/skills/{te-meta/references/save-track-items.md → ae-analysis/references/save_track_items.md} +2 -2
- package/skills/{te-analysis/references/update-alert.md → ae-analysis/references/update_alert.md} +4 -4
- package/skills/{te-audience/references/update-cluster.md → ae-analysis/references/update_cluster.md} +15 -13
- package/skills/{te-analysis/references/update-dashboard.md → ae-analysis/references/update_dashboard.md} +3 -3
- package/skills/{te-meta/references/update-metric.md → ae-analysis/references/update_metric.md} +9 -9
- package/skills/{te-meta/references/update-project-mark-time.md → ae-analysis/references/update_project_mark_time.md} +3 -3
- package/skills/{te-analysis/references/update-public-access-link.md → ae-analysis/references/update_public_access_link.md} +3 -3
- package/skills/{te-audience/references/update-tag.md → ae-analysis/references/update_tag.md} +15 -14
- package/skills/ae-community/SKILL.md +305 -0
- package/skills/{te-community → ae-community}/references/community-activity-analysis.md +6 -7
- package/skills/{te-community → ae-community}/references/community-analyzing-official-content.md +3 -4
- package/skills/{te-community → ae-community}/references/community-analyzing-theme-comment.md +5 -6
- package/skills/{te-community → ae-community}/references/community-character-analysis.md +5 -6
- package/skills/{te-community → ae-community}/references/community-daily-report.md +7 -8
- package/skills/{te-community → ae-community}/references/community-hottopic-insight.md +4 -5
- package/skills/{te-community → ae-community}/references/community-weekly-report.md +7 -8
- package/skills/{te-community → ae-community}/references/get_channel_info.md +4 -5
- package/skills/{te-community → ae-community}/references/get_comment_tag_analysis.md +3 -4
- package/skills/{te-community → ae-community}/references/get_comments_summary.md +4 -5
- package/skills/{te-community → ae-community}/references/get_corpus_tags.md +3 -4
- package/skills/{te-community → ae-community}/references/get_daily_summary.md +3 -4
- package/skills/{te-community → ae-community}/references/get_hot_topics.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_analysis.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_detail.md +4 -5
- package/skills/{te-community → ae-community}/references/get_livestream_list.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_overview.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_room_metrics.md +3 -4
- package/skills/{te-community → ae-community}/references/get_livestream_rooms.md +3 -4
- package/skills/{te-community → ae-community}/references/get_overview_metrics.md +3 -4
- package/skills/{te-community → ae-community}/references/get_post_detail.md +4 -5
- package/skills/{te-community → ae-community}/references/get_risk_content.md +5 -6
- package/skills/{te-community → ae-community}/references/get_sentiment_overview.md +4 -5
- package/skills/{te-community → ae-community}/references/get_tag_trends.md +3 -4
- package/skills/{te-community → ae-community}/references/get_topic_detail.md +3 -4
- package/skills/{te-community → ae-community}/references/search_posts.md +5 -6
- package/skills/{te-dataops → ae-dataops}/SKILL.md +73 -10
- package/skills/{te-dataops → ae-dataops}/references/dataops-flow-create.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-flow-monitor.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-integration.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-query.md +1 -1
- package/skills/{te-dataops → ae-dataops}/references/dataops-table.md +1 -1
- package/skills/{te-engage → ae-engage}/SKILL.md +106 -6
- package/skills/{te-engage → ae-engage}/references/add-approver.md +2 -2
- package/skills/{te-engage → ae-engage}/references/add-channel.md +2 -2
- package/skills/{te-engage → ae-engage}/references/approver-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/cancel-query-by-request-id.md +2 -2
- package/skills/{te-engage → ae-engage}/references/channel-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/channel-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-channel-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-channel-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-analysis-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-strategy-comparison.md +2 -2
- package/skills/{te-engage → ae-engage}/references/config-item-trigger-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/copy-config-template.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-channel.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-config-channel.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-config-item.md +2 -2
- package/skills/{te-engage → ae-engage}/references/delete-flow.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-ab-split-node-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-node-config-schema.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-node-detail-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-node-overview-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/flow-process-report.md +2 -2
- package/skills/{te-engage → ae-engage}/references/manage-flow.md +2 -2
- package/skills/{te-engage → ae-engage}/references/manage-strategy.md +2 -2
- package/skills/{te-engage → ae-engage}/references/manage-task.md +2 -2
- package/skills/{te-engage → ae-engage}/references/modify-flow-base-info.md +2 -2
- package/skills/{te-engage → ae-engage}/references/save-flow.md +3 -3
- package/skills/{te-engage → ae-engage}/references/strategy-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/strategy-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/task-data-detail.md +3 -10
- package/skills/{te-engage → ae-engage}/references/task-data-overview.md +3 -9
- package/skills/{te-engage → ae-engage}/references/task-detail.md +2 -2
- package/skills/{te-engage → ae-engage}/references/task-experiment-report.md +3 -9
- package/skills/{te-engage → ae-engage}/references/task-list.md +2 -2
- package/skills/{te-engage → ae-engage}/references/task-metric-detail.md +3 -9
- package/skills/{te-engage → ae-engage}/references/task-stats.md +2 -2
- package/skills/{te-engage → ae-engage}/references/update-channel-status.md +2 -2
- package/skills/{te-engage → ae-engage}/references/update-config-channel-status.md +2 -2
- package/skills/{te-engage → ae-engage}/references/validate-flow-node-config.md +2 -2
- package/skills/{te-engage → ae-engage}/references/whitelist-list.md +2 -2
- package/dist/auth-DXKYLMO7.js +0 -81
- package/dist/auth-JXELJNDS.js +0 -19
- package/dist/auth-L3G3A74I.js +0 -67
- package/dist/chunk-3GM5LJZR.js +0 -145
- package/dist/chunk-JD5DXMKL.js +0 -172
- package/dist/chunk-OVQOK35G.js +0 -108
- package/dist/chunk-RJNLN3KQ.js +0 -217
- package/dist/client-T4VODLA6.js +0 -16
- package/dist/community-GMALVSRF.js +0 -684
- package/dist/config-V7AXKDMB.js +0 -242
- package/dist/raw-ZNVURYMR.js +0 -59
- package/dist/te-analysis-7NN3SY3I.js +0 -871
- package/dist/te-audience-P43BWMHM.js +0 -350
- package/dist/te-common-H3IPTI2I.js +0 -144
- package/dist/te-dataops-WCGDBJLF.js +0 -1853
- package/dist/te-engage-UTRVNTGU.js +0 -1470
- package/dist/te-meta-HGYNXVGF.js +0 -479
- package/skills/te-analysis/SKILL.md +0 -107
- package/skills/te-analysis/references/get-analysis-query-schema.md +0 -36
- package/skills/te-analysis/references/list-public-access-links.md +0 -31
- package/skills/te-audience/SKILL.md +0 -63
- package/skills/te-audience/references/get-cluster-definition-schema.md +0 -37
- package/skills/te-audience/references/get-clusters-by-name.md +0 -32
- package/skills/te-audience/references/get-tag-definition-schema.md +0 -32
- package/skills/te-audience/references/get-tags-by-name.md +0 -32
- package/skills/te-common/SKILL.md +0 -135
- package/skills/te-community/SKILL.md +0 -125
- package/skills/te-meta/SKILL.md +0 -71
- package/skills/te-meta/references/list-metrics.md +0 -33
- package/skills/te-meta/references/list-project-mark-times.md +0 -33
- package/skills/te-shared/SKILL.md +0 -115
package/skills/{te-audience/references/create-cluster.md → ae-analysis/references/create_cluster.md}
RENAMED
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
# analysis_audience +create_cluster (Create Cluster)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Cluster Management**
|
|
6
6
|
|
|
7
7
|
## Use Cases
|
|
8
8
|
- Prerequisite helper: first call `+get_cluster_definition_schema` to obtain the `definition` structure, then call this tool.
|
|
9
|
-
- When building a real `definition`,
|
|
9
|
+
- When building a real `definition`, metadata must be verified in the same session and `project_id`: first build in this session must call `analysis_meta +list_events` and `analysis_meta +list_properties`; later calls should reuse the session-verified results first.
|
|
10
10
|
- Create a user cluster definition. Supports the condition and sql cluster types. Returns cluster information without cluster members.
|
|
11
11
|
|
|
12
12
|
## Required Prerequisites (MUST)
|
|
13
13
|
- Before constructing `--definition`, you must first read and follow these reference docs:
|
|
14
|
-
- [`./
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- Do not generate the final `definition` until the above docs have been read and the
|
|
14
|
+
- [`./get_cluster_definition_schema.md`](./get_cluster_definition_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
|
+
- Do not generate the final `definition` until the above docs have been read and metadata has been verified: first build in this session for the same `project_id` must run metadata commands; if session-verified metadata already exists, reuse it first.
|
|
18
18
|
|
|
19
19
|
## Prerequisite Call Chain (Required for Building Definition)
|
|
20
|
-
1. Read `
|
|
21
|
-
2. Obtain the schema
|
|
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 progressively (by cluster type). Start with base mode:
|
|
22
22
|
`ae-cli analysis_audience +get_cluster_definition_schema --cluster_type condition`
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
23
|
+
Request `--response_mode examples` only if base is insufficient; request `--response_mode full` only for complex, ambiguous, or repeatedly failing definition construction.
|
|
24
|
+
3. Read `list_events.md` to understand the parameters and return structure of `+list_events`.
|
|
25
|
+
4. Get the event list (for `event_name` and other fields): if this is the first definition build in the current session for this `project_id` (or metadata is not yet verified), call
|
|
26
|
+
`ae-cli analysis_meta +list_events --project_id <project_id>`;
|
|
27
|
+
otherwise, reuse the session-verified event metadata first.
|
|
28
|
+
5. Read `list_properties.md` to understand the parameters and return structure of `+list_properties`.
|
|
29
|
+
6. Get the property list (for property filters, grouping, and comparison fields): if this is the first definition build in the current session for this `project_id` (or metadata is not yet verified), call
|
|
30
|
+
`ae-cli analysis_meta +list_properties --project_id <project_id>`;
|
|
31
|
+
otherwise, reuse the session-verified property metadata first.
|
|
29
32
|
7. Build `definition` based on the schema + metadata, then call `+create_cluster`.
|
|
30
33
|
|
|
31
34
|
## Commands
|
|
32
35
|
```bash
|
|
33
|
-
ae-cli analysis_audience +create_cluster --project_id
|
|
34
|
-
ae-cli analysis_audience +create_cluster --project_id
|
|
36
|
+
ae-cli analysis_audience +create_cluster --project_id <project_id> --cluster_name demo --display_name demo --definition '{}'
|
|
37
|
+
ae-cli analysis_audience +create_cluster --project_id <project_id> --cluster_name demo --display_name demo --type condition --definition '{}' --zone_offset 8 --entity_id 1001
|
|
35
38
|
ae-cli analysis_audience +create_cluster --dry-run
|
|
36
39
|
```
|
|
37
40
|
|
|
@@ -42,14 +45,15 @@ ae-cli analysis_audience +create_cluster --dry-run
|
|
|
42
45
|
| `--cluster_name` | Yes | Cluster name. Must start with a letter and contain only letters, digits, and underscores. Length: 1-80 |
|
|
43
46
|
| `--display_name` | Yes | Cluster display name. Length: 1-80 |
|
|
44
47
|
| `--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
|
|
48
|
+
| `--definition` | Yes | Cluster definition JSON. MUST call `+get_cluster_definition_schema` first to learn the exact structure, then fill valid event/property names from metadata verified in the same `project_id` (first build queries `analysis_meta` metadata commands; later builds in the same session should reuse verified results first). |
|
|
46
49
|
| `--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
50
|
| `--entity_id` | No | Optional entity ID for cluster definition. Use list_entities to query available entities. |
|
|
48
51
|
|
|
49
52
|
## Decision Rules
|
|
50
53
|
- `definition` cannot be written from experience alone: it must satisfy both the schema structure and the project's real metadata (events and properties).
|
|
51
54
|
- Determine `--type` first, then fetch the schema for the corresponding `--cluster_type`; do not mix condition/sql structures.
|
|
52
|
-
-
|
|
55
|
+
- Use progressive schema loading: base first, examples only when needed, full only as a last resort. Do not request full schema for simple cluster creation when the intent is clear.
|
|
56
|
+
- Before calling `list_events` / `list_properties`, you must first read their reference docs to avoid misuse of parameters or misreading return fields. Query metadata on the first build in this session for the same `project_id`; after that, prefer reusing session-verified metadata.
|
|
53
57
|
- 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
58
|
- Wrap JSON parameters in single quotes (e.g. `--definition '{}'`) to avoid shell escaping issues.
|
|
55
59
|
- When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
@@ -61,5 +65,5 @@ ae-cli analysis_audience +create_cluster --dry-run
|
|
|
61
65
|
- If the result after writing is not as expected, immediately re-read the corresponding list/get interfaces and compare before and after.
|
|
62
66
|
|
|
63
67
|
## Recommended Chain
|
|
64
|
-
- +get_cluster_definition_schema -> analysis_meta +list_events -> analysis_meta +list_properties -> +create_cluster
|
|
68
|
+
- +get_cluster_definition_schema -> (first build or refresh) analysis_meta +list_events -> analysis_meta +list_properties -> +create_cluster
|
|
65
69
|
- +list_clusters -> +get_clusters_by_name -> +update_cluster
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +create_dashboard (create dashboard)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Dashboard Management**
|
|
6
6
|
|
|
@@ -12,9 +12,9 @@ Domain: **Dashboard Management**
|
|
|
12
12
|
|
|
13
13
|
## Commands
|
|
14
14
|
```bash
|
|
15
|
-
ae-cli analysis +create_dashboard --project_id
|
|
16
|
-
ae-cli analysis +create_dashboard --project_id
|
|
17
|
-
ae-cli analysis +create_dashboard --project_id
|
|
15
|
+
ae-cli analysis +create_dashboard --project_id <project_id> --dashboard_name demo
|
|
16
|
+
ae-cli analysis +create_dashboard --project_id <project_id> --dashboard_name demo --space_id 1 --folder_id 1 --initial_report_id 1 --note_title demo --note_content demo --note_style '{}'
|
|
17
|
+
ae-cli analysis +create_dashboard --project_id <project_id> --dashboard_name demo --dry-run
|
|
18
18
|
```
|
|
19
19
|
|
|
20
20
|
## Parameters
|
package/skills/{te-meta/references/create-metric.md → ae-analysis/references/create_metric.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +create_metric (Create Metric)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Metadata Query**
|
|
6
6
|
|
|
@@ -12,23 +12,23 @@ Domain: **Metadata Query**
|
|
|
12
12
|
|
|
13
13
|
## MUST Prerequisites
|
|
14
14
|
- Before constructing `--events` / `--params`, you must first read and follow these reference documents:
|
|
15
|
-
- [
|
|
16
|
-
- [`./
|
|
17
|
-
- [`./
|
|
15
|
+
- [`./get_analysis_query_schema.md`](./get_analysis_query_schema.md)
|
|
16
|
+
- [`./list_events.md`](./list_events.md)
|
|
17
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
18
18
|
- Do not generate the final `events` / `params` until the document review and prerequisite command calls above are complete.
|
|
19
19
|
|
|
20
20
|
## Prerequisite Call Chain (Required for Constructing events/params)
|
|
21
21
|
1. Determine `--model_type` first (`event` / `retention`).
|
|
22
|
-
2. Read `
|
|
23
|
-
3. Read `
|
|
24
|
-
4. Read `
|
|
22
|
+
2. Read `get_analysis_query_schema.md`, then call `ae-cli analysis +get_analysis_query_schema --model_type <event|retention>` to get the structure.
|
|
23
|
+
3. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>` to get available events.
|
|
24
|
+
4. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>` to get available properties.
|
|
25
25
|
5. Build `events` / `params` from the schema + metadata, then call `+create_metric`.
|
|
26
|
-
6. If an accessible URL must be returned, apply resource-link completion according to the unified
|
|
26
|
+
6. If an accessible URL must be returned, apply resource-link completion according to the unified skill constraints (call `analysis_common +get_resource_url`).
|
|
27
27
|
|
|
28
28
|
## Commands
|
|
29
29
|
```bash
|
|
30
|
-
ae-cli analysis_meta +create_metric --project_id
|
|
31
|
-
ae-cli analysis_meta +create_metric --project_id
|
|
30
|
+
ae-cli analysis_meta +create_metric --project_id <project_id> --name demo --display_name demo --model_type event --events '[]' --params '{}'
|
|
31
|
+
ae-cli analysis_meta +create_metric --project_id <project_id> --name demo --display_name demo --remark demo --model_type event --events '[]' --params '{}'
|
|
32
32
|
ae-cli analysis_meta +create_metric --dry-run
|
|
33
33
|
```
|
|
34
34
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +create_or_update_dashboard_note (Maintain Dashboard Note)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Dashboard management**
|
|
6
6
|
|
|
@@ -10,8 +10,8 @@ Domain: **Dashboard management**
|
|
|
10
10
|
|
|
11
11
|
## Command
|
|
12
12
|
```bash
|
|
13
|
-
ae-cli analysis +create_or_update_dashboard_note --project_id
|
|
14
|
-
ae-cli analysis +create_or_update_dashboard_note --project_id
|
|
13
|
+
ae-cli analysis +create_or_update_dashboard_note --project_id <project_id> --dashboard_id 1 --note_title demo
|
|
14
|
+
ae-cli analysis +create_or_update_dashboard_note --project_id <project_id> --dashboard_id 1 --note_id 1 --note_title demo --description demo --ui_config '{}'
|
|
15
15
|
ae-cli analysis +create_or_update_dashboard_note --dry-run
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +create_project_mark_time (Create Project Date Marker)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Project Configuration**
|
|
6
6
|
|
|
@@ -10,8 +10,8 @@ Domain: **Project Configuration**
|
|
|
10
10
|
|
|
11
11
|
## Command
|
|
12
12
|
```bash
|
|
13
|
-
ae-cli analysis_meta +create_project_mark_time --project_id
|
|
14
|
-
ae-cli analysis_meta +create_project_mark_time --project_id
|
|
13
|
+
ae-cli analysis_meta +create_project_mark_time --project_id <project_id> --marked_at '2026-04-09 10:00' --content demo
|
|
14
|
+
ae-cli analysis_meta +create_project_mark_time --project_id <project_id> --marked_at '2026-04-09 10:00' --zone_offset 8 --content demo --is_visible 1
|
|
15
15
|
ae-cli analysis_meta +create_project_mark_time --dry-run
|
|
16
16
|
```
|
|
17
17
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +create_public_access_link (create public access link)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Dashboard Management**
|
|
6
6
|
|
|
@@ -11,8 +11,8 @@ Domain: **Dashboard Management**
|
|
|
11
11
|
|
|
12
12
|
## Commands
|
|
13
13
|
```bash
|
|
14
|
-
ae-cli analysis +create_public_access_link --project_id
|
|
15
|
-
ae-cli analysis +create_public_access_link --project_id
|
|
14
|
+
ae-cli analysis +create_public_access_link --project_id <project_id> --resource_type dashboard --resource_id 1 --access_controls '{}' --effective_at "2026-04-09 10:00:00" --expires_at "2026-04-10 10:00:00"
|
|
15
|
+
ae-cli analysis +create_public_access_link --project_id <project_id> --company_id 1 --resource_type dashboard --resource_id 1 --access_controls '{}' --remark demo --effective_at "2026-04-09 10:00:00" --expires_at "2026-04-10 10:00:00"
|
|
16
16
|
ae-cli analysis +create_public_access_link --dry-run
|
|
17
17
|
```
|
|
18
18
|
|
package/skills/{te-analysis/references/create-report.md → ae-analysis/references/create_report.md}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +create_report (Create Report)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Report management**
|
|
6
6
|
|
|
@@ -11,22 +11,22 @@ Domain: **Report management**
|
|
|
11
11
|
|
|
12
12
|
## Mandatory prerequisites (MUST)
|
|
13
13
|
- Before constructing `--analysis_query`, you must first read and follow these reference documents:
|
|
14
|
-
- [`./
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
14
|
+
- [`./get_analysis_query_schema.md`](./get_analysis_query_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
17
|
- Do not generate the final `analysis_query` until the documentation review and prerequisite command calls are complete.
|
|
18
18
|
|
|
19
19
|
## Prerequisite call chain (required for constructing analysis_query)
|
|
20
20
|
1. First determine `--model_type`.
|
|
21
|
-
2. Read `
|
|
22
|
-
3. Read `
|
|
23
|
-
4. Read `
|
|
21
|
+
2. Read `get_analysis_query_schema.md`, then call `ae-cli analysis +get_analysis_query_schema --model_type <model_type>` to get the structure.
|
|
22
|
+
3. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>`.
|
|
23
|
+
4. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>`.
|
|
24
24
|
5. Build `analysis_query` from the schema + metadata, then call `+create_report`.
|
|
25
25
|
|
|
26
26
|
## Command
|
|
27
27
|
```bash
|
|
28
|
-
ae-cli analysis +create_report --project_id
|
|
29
|
-
ae-cli analysis +create_report --project_id
|
|
28
|
+
ae-cli analysis +create_report --project_id <project_id> --report_name demo --model_type event --analysis_query '{}'
|
|
29
|
+
ae-cli analysis +create_report --project_id <project_id> --report_name demo --model_type event --analysis_query '{}' --description demo --cache_seconds 8 --query_duration_ms 8 --dashboard_ids '[]'
|
|
30
30
|
ae-cli analysis +create_report --dry-run
|
|
31
31
|
```
|
|
32
32
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +create_result_cluster (create result cluster)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Model Analysis**
|
|
6
6
|
|
|
@@ -13,9 +13,9 @@ Domain: **Model Analysis**
|
|
|
13
13
|
|
|
14
14
|
## Mandatory Prerequisites (MUST)
|
|
15
15
|
- Before building `--qp` and the various drilldown parameters, you must first read and follow the following reference docs:
|
|
16
|
-
- [`./
|
|
17
|
-
- [`./
|
|
18
|
-
- [`./
|
|
16
|
+
- [`./query_adhoc.md`](./query_adhoc.md)
|
|
17
|
+
- [`./query_report_data.md`](./query_report_data.md)
|
|
18
|
+
- [`./query_dashboard_report_data.md`](./query_dashboard_report_data.md)
|
|
19
19
|
- `qp`, `drilldown_date`, `drilldown_groups`, `event_index`, `retention_days`, `funnel_step`, and other parameters must come from real analysis results and must not be guessed.
|
|
20
20
|
- Do not create a result cluster until the upstream query and result reread have been completed.
|
|
21
21
|
|
|
@@ -27,8 +27,8 @@ Domain: **Model Analysis**
|
|
|
27
27
|
|
|
28
28
|
## Commands
|
|
29
29
|
```bash
|
|
30
|
-
ae-cli analysis +create_result_cluster --project_id
|
|
31
|
-
ae-cli analysis +create_result_cluster --project_id
|
|
30
|
+
ae-cli analysis +create_result_cluster --project_id <project_id> --cluster_name demo --model_type event --qp '{}'
|
|
31
|
+
ae-cli analysis +create_result_cluster --project_id <project_id> --cluster_name demo --display_name demo --model_type event --qp '{}' --zone_offset 8 --drilldown_date 2026-04-08 --drilldown_groups '[]' --event_index 8 --is_lost true --retention_days 8 --is_churned_user true --funnel_step 8 --interval demo --distribution_bucket 8 --compare_index 8 --include_total true --relation_val demo
|
|
32
32
|
ae-cli analysis +create_result_cluster --dry-run
|
|
33
33
|
```
|
|
34
34
|
|
package/skills/{te-audience/references/create-tag.md → ae-analysis/references/create_tag.md}
RENAMED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
# analysis_audience +create_tag (Create Tag)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Tag Management**
|
|
6
6
|
|
|
7
7
|
## Use Cases
|
|
8
8
|
- Prerequisite helper: first call `+get_tag_definition_schema` to obtain the structure, then call this tool.
|
|
9
|
-
- When building a real `definition`,
|
|
9
|
+
- When building a real `definition`, metadata must be verified in the same session and `project_id`: first build in this session must call `analysis_meta +list_events` and `analysis_meta +list_properties`; later calls should reuse the session-verified results first.
|
|
10
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
11
|
|
|
12
12
|
## Required Prerequisites (MUST)
|
|
13
13
|
- Before constructing `--definition`, you must first read and follow these reference docs:
|
|
14
|
-
- [`./
|
|
15
|
-
- [
|
|
16
|
-
- [
|
|
17
|
-
- Do not generate the final `definition` until the above docs have been read and the
|
|
14
|
+
- [`./get_tag_definition_schema.md`](./get_tag_definition_schema.md)
|
|
15
|
+
- [`./list_events.md`](./list_events.md)
|
|
16
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
17
|
+
- Do not generate the final `definition` until the above docs have been read and metadata has been verified: first build in this session for the same `project_id` must run metadata commands; if session-verified metadata already exists, reuse it first.
|
|
18
18
|
|
|
19
19
|
## Prerequisite Call Chain (Required for Building Definition)
|
|
20
20
|
1. First determine `--type` (condition / metric / first_last / sql).
|
|
21
|
-
2. Read `
|
|
22
|
-
3. Call `ae-cli analysis_audience +get_tag_definition_schema
|
|
23
|
-
4. Read `
|
|
24
|
-
5. Read `
|
|
21
|
+
2. Read `get_tag_definition_schema.md` to understand the return structure of `+get_tag_definition_schema`.
|
|
22
|
+
3. Call `ae-cli analysis_audience +get_tag_definition_schema --type <condition|metric|first_last|sql>` to obtain the schema progressively. Start with base mode; request `examples` only if base is insufficient; request `full` only for complex, ambiguous, or repeatedly failing definition construction.
|
|
23
|
+
4. Read `list_events.md`. If this is the first definition build in the current session for this `project_id` (or metadata is not yet verified), call `ae-cli analysis_meta +list_events --project_id <project_id>`; otherwise, reuse the session-verified event metadata first.
|
|
24
|
+
5. Read `list_properties.md`. If this is the first definition build in the current session for this `project_id` (or metadata is not yet verified), call `ae-cli analysis_meta +list_properties --project_id <project_id>`; otherwise, reuse the session-verified property metadata first.
|
|
25
25
|
6. Build `definition` based on the schema + metadata, then call `+create_tag`.
|
|
26
26
|
|
|
27
27
|
## Commands
|
|
28
28
|
```bash
|
|
29
|
-
ae-cli analysis_audience +create_tag --project_id
|
|
30
|
-
ae-cli analysis_audience +create_tag --project_id
|
|
29
|
+
ae-cli analysis_audience +create_tag --project_id <project_id> --tag_name demo --display_name demo --definition '{}'
|
|
30
|
+
ae-cli analysis_audience +create_tag --project_id <project_id> --tag_name demo --display_name demo --type condition --definition '{}' --zone_offset 8 --entity_id 1001
|
|
31
31
|
ae-cli analysis_audience +create_tag --dry-run
|
|
32
32
|
```
|
|
33
33
|
|
|
@@ -38,13 +38,14 @@ ae-cli analysis_audience +create_tag --dry-run
|
|
|
38
38
|
| `--tag_name` | Yes | Tag name. Must start with a letter and contain only letters, digits, and underscores. Length: 1-80 |
|
|
39
39
|
| `--display_name` | Yes | Tag display name. Length: 1-80 |
|
|
40
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 `analysis_meta` metadata commands in the same
|
|
41
|
+
| `--definition` | Yes | Tag definition JSON. MUST call `+get_tag_definition_schema` first, then fill valid event/property names from metadata verified in the same `project_id` (first build queries `analysis_meta` metadata commands; later builds in the same session should reuse verified results first). |
|
|
42
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
43
|
| `--entity_id` | No | Optional entity ID for tag definition. Use list_entities to query available entities. |
|
|
44
44
|
|
|
45
45
|
## Decision Rules
|
|
46
46
|
- `definition` cannot be written from experience alone: it must satisfy both the schema structure and the project's real metadata.
|
|
47
|
-
-
|
|
47
|
+
- Use progressive schema loading: base first, examples only when needed, full only as a last resort. Do not request full schema for simple tag creation when the intent is clear.
|
|
48
|
+
- Before calling `list_events` / `list_properties`, you must first read the corresponding reference docs to avoid misuse of parameters or misreading return fields. Query metadata on the first build in this session for the same `project_id`; after that, prefer reusing session-verified metadata.
|
|
48
49
|
- 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
50
|
- Wrap JSON parameters in single quotes (e.g. `--definition '{}'`) to avoid shell escaping issues.
|
|
50
51
|
- When troubleshooting across projects, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
@@ -56,5 +57,5 @@ ae-cli analysis_audience +create_tag --dry-run
|
|
|
56
57
|
- If the result after writing is not as expected, immediately re-read the corresponding list/get interfaces and compare before and after.
|
|
57
58
|
|
|
58
59
|
## Recommended Chain
|
|
59
|
-
- +get_tag_definition_schema -> analysis_meta +list_events -> analysis_meta +list_properties -> +create_tag
|
|
60
|
+
- +get_tag_definition_schema -> (first build or refresh) analysis_meta +list_events -> analysis_meta +list_properties -> +create_tag
|
|
60
61
|
- +list_tags -> +get_tags_by_name -> +update_tag
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +create_virtual_event (Create Virtual Event)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Metadata Query**
|
|
6
6
|
|
|
@@ -16,22 +16,22 @@ Domain: **Metadata Query**
|
|
|
16
16
|
|
|
17
17
|
## MUST Prerequisites
|
|
18
18
|
- Before constructing `--events` / `--filter`, you must first read and follow these reference documents:
|
|
19
|
-
- [
|
|
20
|
-
- [`./
|
|
21
|
-
- [`./
|
|
19
|
+
- [`./get_filter_schema.md`](./get_filter_schema.md)
|
|
20
|
+
- [`./list_events.md`](./list_events.md)
|
|
21
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
22
22
|
- Do not generate the final `events` / `filter` until the document review and prerequisite command calls above are complete.
|
|
23
23
|
|
|
24
24
|
## Prerequisite Call Chain (Required for Constructing events/filter)
|
|
25
|
-
1. Read `
|
|
26
|
-
2. Read `
|
|
27
|
-
3. Read `
|
|
25
|
+
1. Read `get_filter_schema.md`, then call `ae-cli analysis +get_filter_schema` to get the filter structure.
|
|
26
|
+
2. Read `list_events.md`, then call `ae-cli analysis_meta +list_events --project_id <project_id>` to get available events.
|
|
27
|
+
3. Read `list_properties.md`, then call `ae-cli analysis_meta +list_properties --project_id <project_id>` to get properties available for filtering.
|
|
28
28
|
4. Build `events` / `filter` from the schema + metadata, then call `+create_virtual_event`.
|
|
29
29
|
5. Example events JSON: `[{"eventName":"purchase"},{"eventName":"add_to_cart"}]`
|
|
30
30
|
|
|
31
31
|
## Commands
|
|
32
32
|
```bash
|
|
33
|
-
ae-cli analysis_meta +create_virtual_event --project_id
|
|
34
|
-
ae-cli analysis_meta +create_virtual_event --project_id
|
|
33
|
+
ae-cli analysis_meta +create_virtual_event --project_id <project_id> --event_name ta@demo --event_desc demo --events '[{"eventName":"purchase"}]'
|
|
34
|
+
ae-cli analysis_meta +create_virtual_event --project_id <project_id> --event_name ta@demo2 --event_desc demo --remark demo --events '[{"eventName":"add_to_cart"}]' --filter '{}' --override true
|
|
35
35
|
ae-cli analysis_meta +create_virtual_event --dry-run
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +create_virtual_property (Create Virtual Property)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Metadata Query**
|
|
6
6
|
|
|
@@ -18,22 +18,22 @@ Domain: **Metadata Query**
|
|
|
18
18
|
|
|
19
19
|
## Mandatory Prerequisites (MUST)
|
|
20
20
|
- Before building `--sql_expression` / `--related_events`, you must first read and follow the reference docs below:
|
|
21
|
-
- [`./
|
|
22
|
-
- [`./
|
|
21
|
+
- [`./list_properties.md`](./list_properties.md)
|
|
22
|
+
- [`./list_events.md`](./list_events.md) (only when `sql_event_relation_type=relation_by_setting`)
|
|
23
23
|
- Do not submit the final SQL and event-association configuration until the above docs have been read and the prerequisite commands have been run.
|
|
24
24
|
|
|
25
25
|
## Prerequisite Call Chain (required for building SQL and relations)
|
|
26
|
-
1. Read `
|
|
26
|
+
1. Read `list_properties.md`, then run `ae-cli analysis_meta +list_properties --project_id <project_id>` to get the available properties.
|
|
27
27
|
2. Use `--table_type` to determine the SQL field source (event or user scope).
|
|
28
28
|
3. Write `--sql_expression` using only fields confirmed in the previous step; the expression must conform to Trino syntax.
|
|
29
|
-
4. If `--sql_event_relation_type=relation_by_setting`, read `
|
|
29
|
+
4. If `--sql_event_relation_type=relation_by_setting`, read `list_events.md`, then run `ae-cli analysis_meta +list_events --project_id <project_id>` to get the available events and build `--related_events`.
|
|
30
30
|
5. Call `+create_virtual_property` to create the virtual property.
|
|
31
31
|
6. Example `sql_expression`: `property_a + property_b` or `CASE WHEN status = 1 THEN 'active' ELSE 'inactive' END`.
|
|
32
32
|
|
|
33
33
|
## Command
|
|
34
34
|
```bash
|
|
35
|
-
ae-cli analysis_meta +create_virtual_property --project_id
|
|
36
|
-
ae-cli analysis_meta +create_virtual_property --project_id
|
|
35
|
+
ae-cli analysis_meta +create_virtual_property --project_id <project_id> --property_name '#vp@demo' --table_type event --select_type string --sql_expression 'event_name' --sql_event_relation_type relation_default
|
|
36
|
+
ae-cli analysis_meta +create_virtual_property --project_id <project_id> --property_name '#vp@demo' --property_desc demo --table_type event --select_type string --sql_expression "CASE WHEN status = 1 THEN 'active' ELSE 'inactive' END" --sql_event_relation_type relation_by_setting --related_events '[{"eventName":"purchase"}]' --property_remark demo
|
|
37
37
|
ae-cli analysis_meta +create_virtual_property --dry-run
|
|
38
38
|
```
|
|
39
39
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +delete_project_mark_times (Delete Project Mark Times)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Project Configuration**
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@ Domain: **Project Configuration**
|
|
|
9
9
|
|
|
10
10
|
## Commands
|
|
11
11
|
```bash
|
|
12
|
-
ae-cli analysis_meta +delete_project_mark_times --project_id
|
|
12
|
+
ae-cli analysis_meta +delete_project_mark_times --project_id <project_id> --mark_time_ids '[]'
|
|
13
13
|
ae-cli analysis_meta +delete_project_mark_times --dry-run
|
|
14
14
|
```
|
|
15
15
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis_meta +delete_track_items (Delete Track Program Items)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Project Configuration**
|
|
6
6
|
|
|
@@ -10,7 +10,7 @@ Domain: **Project Configuration**
|
|
|
10
10
|
|
|
11
11
|
## Command
|
|
12
12
|
```bash
|
|
13
|
-
ae-cli analysis_meta +delete_track_items --project_id
|
|
13
|
+
ae-cli analysis_meta +delete_track_items --project_id <project_id> --delete_data '{}'
|
|
14
14
|
ae-cli analysis_meta +delete_track_items --dry-run
|
|
15
15
|
```
|
|
16
16
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +drilldown_user_events (Single-User Event Sequence Drilldown)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Model analysis**
|
|
6
6
|
|
|
@@ -16,22 +16,22 @@ Domain: **Model analysis**
|
|
|
16
16
|
|
|
17
17
|
## Mandatory prerequisites (MUST)
|
|
18
18
|
- Before constructing `--user_id` / `--event_names` / `--target_dates`, you must first read and follow these reference documents:
|
|
19
|
-
- [`./
|
|
20
|
-
- [
|
|
21
|
-
- [
|
|
19
|
+
- [`./drilldown_users.md`](./drilldown_users.md)
|
|
20
|
+
- [`./list_events.md`](./list_events.md)
|
|
21
|
+
- [`./list_properties.md`](./list_properties.md) (only when passing `--properties`)
|
|
22
22
|
- `user_id` must come from the `+drilldown_users` result; `event_names` / `target_dates` must come from the previous drilldown context or the actual result and must not be guessed.
|
|
23
23
|
- Do not execute single-user event sequence drilldown until the upstream drilldown and result readback are complete.
|
|
24
24
|
|
|
25
25
|
## Prerequisite call chain (required for executing single-user event drilldown)
|
|
26
26
|
1. First execute `+drilldown_users` and obtain the target user and drilldown context.
|
|
27
27
|
2. Confirm the `user_id`, candidate events, and target discrete time points from the previous step result.
|
|
28
|
-
3. If additional property display is needed, first call `analysis_meta +list_properties --project_id
|
|
28
|
+
3. If additional property display is needed, first call `analysis_meta +list_properties --project_id <project_id>` to verify property names.
|
|
29
29
|
4. Call `+drilldown_user_events` to query the event sequence.
|
|
30
30
|
|
|
31
31
|
## Command
|
|
32
32
|
```bash
|
|
33
|
-
ae-cli analysis +drilldown_user_events --project_id
|
|
34
|
-
ae-cli analysis +drilldown_user_events --project_id
|
|
33
|
+
ae-cli analysis +drilldown_user_events --project_id <project_id> --user_id u_123 --event_names '["login"]' --target_dates '["2026-04-08 00:00:00"]'
|
|
34
|
+
ae-cli analysis +drilldown_user_events --project_id <project_id> --user_id u_123 --event_names '["login"]' --target_dates '["2026-04-08 00:00:00"]' --zone_offset 8 --use_cache true --page_num 1 --page_size 20
|
|
35
35
|
ae-cli analysis +drilldown_user_events --dry-run
|
|
36
36
|
```
|
|
37
37
|
|
|
@@ -55,7 +55,7 @@ ae-cli analysis +drilldown_user_events --dry-run
|
|
|
55
55
|
| `--entity_value` | No | Optional entity value for multi-entity scenarios |
|
|
56
56
|
| `--use_cache` | No | Whether to use cache. Default: true |
|
|
57
57
|
| `--page_num` | No | Start page number, default 1 |
|
|
58
|
-
| `--page_size` | No | Page size, default
|
|
58
|
+
| `--page_size` | No | Page size, default 20, max 50 |
|
|
59
59
|
| `--timeout_minutes` | No | Query timeout in minutes |
|
|
60
60
|
|
|
61
61
|
## Decision Rules
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# analysis +drilldown_users (drill down analysis results to users)
|
|
2
2
|
|
|
3
|
-
> **Prerequisite:**
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
4
|
|
|
5
5
|
Domain: **Model Analysis**
|
|
6
6
|
|
|
@@ -15,9 +15,9 @@ Domain: **Model Analysis**
|
|
|
15
15
|
|
|
16
16
|
## Mandatory Prerequisites (MUST)
|
|
17
17
|
- Before building `--qp` and the drilldown positioning parameters, you must first read and follow the following reference docs:
|
|
18
|
-
- [`./
|
|
19
|
-
- [`./
|
|
20
|
-
- [`./
|
|
18
|
+
- [`./query_adhoc.md`](./query_adhoc.md)
|
|
19
|
+
- [`./query_report_data.md`](./query_report_data.md)
|
|
20
|
+
- [`./query_dashboard_report_data.md`](./query_dashboard_report_data.md)
|
|
21
21
|
- `qp`, `drilldown_date`, `drilldown_groups`, `event_index`, `retention_days`, `funnel_step`, and other parameters must come from real analysis results and must not be guessed.
|
|
22
22
|
- Do not execute user drilldown until the upstream query and result reread have been completed.
|
|
23
23
|
|
|
@@ -29,8 +29,8 @@ Domain: **Model Analysis**
|
|
|
29
29
|
|
|
30
30
|
## Commands
|
|
31
31
|
```bash
|
|
32
|
-
ae-cli analysis +drilldown_users --project_id
|
|
33
|
-
ae-cli analysis +drilldown_users --project_id
|
|
32
|
+
ae-cli analysis +drilldown_users --project_id <project_id> --model_type event --qp '{}'
|
|
33
|
+
ae-cli analysis +drilldown_users --project_id <project_id> --model_type retention --qp '{}' --drilldown_date 2026-04-08 --drilldown_groups '[]' --event_index 8 --is_lost true --retention_days 8 --is_churned_user true --funnel_step 8 --interval demo --distribution_bucket 8 --compare_index 8 --include_total true --relation_val demo --limit 10 --offset 0
|
|
34
34
|
ae-cli analysis +drilldown_users --dry-run
|
|
35
35
|
```
|
|
36
36
|
|
|
@@ -49,17 +49,20 @@ ae-cli analysis +drilldown_users --dry-run
|
|
|
49
49
|
| `--retention_days` | No | Retention interval in days from the analysis result, for example 7 for day-7 retention. If model_type is 'retention', the retention_days must not be null. |
|
|
50
50
|
| `--is_churned_user` | No | For funnel analysis, true queries churned users for the step and false queries converted users. Default: false |
|
|
51
51
|
| `--funnel_step` | No | Funnel step number from the analysis result starting from 1. If model_type is 'funnel', the funnel_step must not be null. |
|
|
52
|
-
| `--interval` | No | Interval |
|
|
52
|
+
| `--interval` | No | Interval used for interval analysis |
|
|
53
53
|
| `--distribution_bucket` | No | Distribution bucket index from the analysis result |
|
|
54
54
|
| `--compare_index` | No | Comparison index used in comparison analysis scenarios |
|
|
55
55
|
| `--include_total` | No | Whether to query users from the total row. Default: false |
|
|
56
56
|
| `--relation_val` | No | Relation value used in relation analysis scenarios |
|
|
57
57
|
| `--use_cache` | No | Whether to use cache. Default: true |
|
|
58
|
+
| `--limit` | No | Optional limit. Default: 20, maximum: 50. |
|
|
59
|
+
| `--offset` | No | Optional offset. Default: 0. |
|
|
58
60
|
| `--timeout_minutes` | No | Query timeout in minutes. If the query exceeds this time, it will be cancelled automatically. |
|
|
59
61
|
|
|
60
62
|
## Decision Rules
|
|
61
63
|
- Drilldown positioning parameters must come from upstream analysis results and must not be fabricated.
|
|
62
64
|
- `qp` must not be rewritten or "simplified"; it should remain consistent with the source analysis.
|
|
65
|
+
- For pagination, use `--limit` and `--offset` together. Default limit is 20.
|
|
63
66
|
- For the first run, it is recommended to pass only the required parameters (`--project_id`, `--model_type`, `--qp`) and add optional parameters after confirming the chain works.
|
|
64
67
|
- Wrap JSON parameters in single quotes (for example `--qp '{}'`, `--drilldown_groups '{}'`) to avoid shell escaping issues.
|
|
65
68
|
- When dates/time ranges are involved, validate with a short range first and then expand gradually.
|