@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.
- package/README.md +229 -0
- package/bin/ae-cli.js +2 -0
- package/dist/auth-JXELJNDS.js +19 -0
- package/dist/auth-L3G3A74I.js +67 -0
- package/dist/chunk-3GM5LJZR.js +145 -0
- package/dist/chunk-JD5DXMKL.js +172 -0
- package/dist/chunk-KM57HI5B.js +107 -0
- package/dist/chunk-OVQOK35G.js +108 -0
- package/dist/chunk-RJNLN3KQ.js +217 -0
- package/dist/client-5QSQBBDB.js +16 -0
- package/dist/community-GMALVSRF.js +684 -0
- package/dist/config-Q7J3Z7Z2.js +242 -0
- package/dist/index.js +277 -0
- package/dist/raw-ZNVURYMR.js +59 -0
- package/dist/te-analysis-7NN3SY3I.js +871 -0
- package/dist/te-audience-P43BWMHM.js +350 -0
- package/dist/te-common-H3IPTI2I.js +144 -0
- package/dist/te-dataops-WCGDBJLF.js +1853 -0
- package/dist/te-engage-UTRVNTGU.js +1470 -0
- package/dist/te-meta-HGYNXVGF.js +479 -0
- package/package.json +53 -0
- package/skills/te-analysis/SKILL.md +107 -0
- package/skills/te-analysis/references/build-entity-details-sql.md +58 -0
- package/skills/te-analysis/references/build-event-details-sql.md +61 -0
- package/skills/te-analysis/references/create-alert.md +47 -0
- package/skills/te-analysis/references/create-dashboard.md +49 -0
- package/skills/te-analysis/references/create-or-update-dashboard-note.md +39 -0
- package/skills/te-analysis/references/create-public-access-link.md +43 -0
- package/skills/te-analysis/references/create-report.md +60 -0
- package/skills/te-analysis/references/create-result-cluster.md +73 -0
- package/skills/te-analysis/references/drilldown-user-events.md +72 -0
- package/skills/te-analysis/references/drilldown-users.md +75 -0
- package/skills/te-analysis/references/get-alert-definition-schema.md +32 -0
- package/skills/te-analysis/references/get-alert.md +31 -0
- package/skills/te-analysis/references/get-analysis-query-schema.md +36 -0
- package/skills/te-analysis/references/get-filter-schema.md +33 -0
- package/skills/te-analysis/references/get-groupby-schema.md +33 -0
- package/skills/te-analysis/references/get-report-definition.md +33 -0
- package/skills/te-analysis/references/get-table-columns.md +38 -0
- package/skills/te-analysis/references/list-alerts.md +33 -0
- package/skills/te-analysis/references/list-dashboards.md +33 -0
- package/skills/te-analysis/references/list-public-access-links.md +31 -0
- package/skills/te-analysis/references/list-reports.md +33 -0
- package/skills/te-analysis/references/load-filters.md +44 -0
- package/skills/te-analysis/references/query-adhoc.md +71 -0
- package/skills/te-analysis/references/query-dashboard-detail.md +35 -0
- package/skills/te-analysis/references/query-dashboard-report-data.md +60 -0
- package/skills/te-analysis/references/query-entity-details.md +60 -0
- package/skills/te-analysis/references/query-event-details.md +63 -0
- package/skills/te-analysis/references/query-report-data.md +65 -0
- package/skills/te-analysis/references/update-alert.md +49 -0
- package/skills/te-analysis/references/update-dashboard.md +45 -0
- package/skills/te-analysis/references/update-public-access-link.md +41 -0
- package/skills/te-audience/SKILL.md +63 -0
- package/skills/te-audience/references/create-cluster.md +65 -0
- package/skills/te-audience/references/create-tag.md +60 -0
- package/skills/te-audience/references/get-cluster-definition-schema.md +37 -0
- package/skills/te-audience/references/get-clusters-by-name.md +32 -0
- package/skills/te-audience/references/get-tag-definition-schema.md +32 -0
- package/skills/te-audience/references/get-tags-by-name.md +32 -0
- package/skills/te-audience/references/list-cluster-members.md +35 -0
- package/skills/te-audience/references/list-clusters.md +32 -0
- package/skills/te-audience/references/list-tag-members.md +36 -0
- package/skills/te-audience/references/list-tags.md +32 -0
- package/skills/te-audience/references/refresh-cluster.md +31 -0
- package/skills/te-audience/references/refresh-tag.md +31 -0
- package/skills/te-audience/references/update-cluster.md +59 -0
- package/skills/te-audience/references/update-tag.md +60 -0
- package/skills/te-common/SKILL.md +135 -0
- package/skills/te-common/references/get-resource-url.md +32 -0
- package/skills/te-common/references/list-projects.md +37 -0
- package/skills/te-community/SKILL.md +133 -0
- package/skills/te-community/references/community-activity-analysis.md +68 -0
- package/skills/te-community/references/community-analyzing-official-content.md +72 -0
- package/skills/te-community/references/community-analyzing-theme-comment.md +124 -0
- package/skills/te-community/references/community-character-analysis.md +71 -0
- package/skills/te-community/references/community-daily-report.md +82 -0
- package/skills/te-community/references/community-hottopic-insight.md +120 -0
- package/skills/te-community/references/community-release-analysis.md +79 -0
- package/skills/te-community/references/community-weekly-report.md +84 -0
- package/skills/te-community/references/get_channel_info.md +21 -0
- package/skills/te-community/references/get_comment_tag_analysis.md +30 -0
- package/skills/te-community/references/get_comments_summary.md +33 -0
- package/skills/te-community/references/get_corpus_tags.md +21 -0
- package/skills/te-community/references/get_daily_summary.md +23 -0
- package/skills/te-community/references/get_hot_topics.md +26 -0
- package/skills/te-community/references/get_livestream_analysis.md +23 -0
- package/skills/te-community/references/get_livestream_detail.md +34 -0
- package/skills/te-community/references/get_livestream_list.md +26 -0
- package/skills/te-community/references/get_livestream_overview.md +25 -0
- package/skills/te-community/references/get_livestream_room_metrics.md +26 -0
- package/skills/te-community/references/get_livestream_rooms.md +26 -0
- package/skills/te-community/references/get_overview_metrics.md +26 -0
- package/skills/te-community/references/get_post_detail.md +38 -0
- package/skills/te-community/references/get_risk_content.md +43 -0
- package/skills/te-community/references/get_sentiment_overview.md +34 -0
- package/skills/te-community/references/get_tag_trends.md +28 -0
- package/skills/te-community/references/get_topic_detail.md +27 -0
- package/skills/te-community/references/search_posts.md +48 -0
- package/skills/te-dataops/SKILL.md +645 -0
- package/skills/te-dataops/references/dataops-flow-create.md +163 -0
- package/skills/te-dataops/references/dataops-flow-monitor.md +118 -0
- package/skills/te-dataops/references/dataops-integration.md +246 -0
- package/skills/te-dataops/references/dataops-operations.md +107 -0
- package/skills/te-dataops/references/dataops-query.md +111 -0
- package/skills/te-dataops/references/dataops-table.md +122 -0
- package/skills/te-engage/SKILL.md +211 -0
- package/skills/te-engage/references/add-approver.md +24 -0
- package/skills/te-engage/references/add-channel.md +74 -0
- package/skills/te-engage/references/approver-list.md +19 -0
- package/skills/te-engage/references/cancel-query-by-request-id.md +23 -0
- package/skills/te-engage/references/channel-detail.md +52 -0
- package/skills/te-engage/references/channel-list.md +41 -0
- package/skills/te-engage/references/config-channel-detail.md +32 -0
- package/skills/te-engage/references/config-channel-list.md +27 -0
- package/skills/te-engage/references/config-item-analysis-report.md +34 -0
- package/skills/te-engage/references/config-item-detail.md +30 -0
- package/skills/te-engage/references/config-item-list.md +19 -0
- package/skills/te-engage/references/config-item-strategy-comparison.md +25 -0
- package/skills/te-engage/references/config-item-trigger-report.md +42 -0
- package/skills/te-engage/references/copy-config-template.md +29 -0
- package/skills/te-engage/references/delete-channel.md +24 -0
- package/skills/te-engage/references/delete-config-channel.md +24 -0
- package/skills/te-engage/references/delete-config-item.md +25 -0
- package/skills/te-engage/references/delete-flow.md +24 -0
- package/skills/te-engage/references/flow-ab-split-node-report.md +54 -0
- package/skills/te-engage/references/flow-detail.md +79 -0
- package/skills/te-engage/references/flow-list.md +19 -0
- package/skills/te-engage/references/flow-node-config-schema.md +44 -0
- package/skills/te-engage/references/flow-node-detail-report.md +55 -0
- package/skills/te-engage/references/flow-node-overview-report.md +52 -0
- package/skills/te-engage/references/flow-process-report.md +59 -0
- package/skills/te-engage/references/manage-flow.md +94 -0
- package/skills/te-engage/references/manage-strategy.md +74 -0
- package/skills/te-engage/references/manage-task.md +37 -0
- package/skills/te-engage/references/modify-flow-base-info.md +27 -0
- package/skills/te-engage/references/save-flow.md +870 -0
- package/skills/te-engage/references/strategy-detail.md +73 -0
- package/skills/te-engage/references/strategy-list.md +21 -0
- package/skills/te-engage/references/task-data-detail.md +81 -0
- package/skills/te-engage/references/task-data-overview.md +48 -0
- package/skills/te-engage/references/task-detail.md +61 -0
- package/skills/te-engage/references/task-experiment-report.md +51 -0
- package/skills/te-engage/references/task-list.md +91 -0
- package/skills/te-engage/references/task-metric-detail.md +56 -0
- package/skills/te-engage/references/task-stats.md +89 -0
- package/skills/te-engage/references/update-channel-status.md +32 -0
- package/skills/te-engage/references/update-config-channel-status.md +32 -0
- package/skills/te-engage/references/validate-flow-node-config.md +52 -0
- package/skills/te-engage/references/whitelist-list.md +19 -0
- package/skills/te-meta/SKILL.md +71 -0
- package/skills/te-meta/references/batch-create-metadata.md +37 -0
- package/skills/te-meta/references/batch-edit-metadata.md +36 -0
- package/skills/te-meta/references/create-metric.md +62 -0
- package/skills/te-meta/references/create-project-mark-time.md +38 -0
- package/skills/te-meta/references/create-virtual-event.md +64 -0
- package/skills/te-meta/references/create-virtual-property.md +69 -0
- package/skills/te-meta/references/delete-project-mark-times.md +34 -0
- package/skills/te-meta/references/delete-track-items.md +35 -0
- package/skills/te-meta/references/get-metric.md +32 -0
- package/skills/te-meta/references/get-project-config.md +32 -0
- package/skills/te-meta/references/get-track-program.md +31 -0
- package/skills/te-meta/references/list-entities.md +34 -0
- package/skills/te-meta/references/list-events.md +33 -0
- package/skills/te-meta/references/list-metrics.md +33 -0
- package/skills/te-meta/references/list-project-mark-times.md +33 -0
- package/skills/te-meta/references/list-project-users.md +32 -0
- package/skills/te-meta/references/list-properties.md +35 -0
- package/skills/te-meta/references/save-track-items.md +34 -0
- package/skills/te-meta/references/update-metric.md +61 -0
- package/skills/te-meta/references/update-project-mark-time.md +39 -0
- package/skills/te-shared/SKILL.md +115 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# te-engage +whitelist-list
|
|
2
|
+
|
|
3
|
+
> **前置条件:** 阅读 [`../../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
查询项目下的白名单列表。
|
|
6
|
+
|
|
7
|
+
映射命令: `te-cli te-engage +whitelist-list`
|
|
8
|
+
|
|
9
|
+
## Flags
|
|
10
|
+
|
|
11
|
+
| Flag | 类型 | 必填 | 说明 |
|
|
12
|
+
|------|------|------|------|
|
|
13
|
+
| `--project-id` / `-p` | number | 是 | 项目 ID |
|
|
14
|
+
|
|
15
|
+
## 示例
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
te-cli te-engage +whitelist-list --project-id 1
|
|
19
|
+
```
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: te-meta
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: "TE metadata and tracking-plan governance: event/property management, metric creation and updates, batch metadata editing, virtual events/properties, project configuration and members, tracking plans (track program), milestones/date markers (mark time), and entity catalog. Triggered when users mention editing tracking, tracking dictionaries, event/property governance, building metrics, checking project config, maintaining track programs, or managing mark time."
|
|
5
|
+
metadata:
|
|
6
|
+
requires:
|
|
7
|
+
bins: ["ae-cli"]
|
|
8
|
+
cliHelp: "ae-cli te_meta --help"
|
|
9
|
+
---
|
|
10
|
+
|
|
11
|
+
# te-meta
|
|
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 all there.
|
|
14
|
+
> **CRITICAL - Before performing write operations, MUST first read [`../te-common/SKILL.md`](../te-common/SKILL.md)**: the unified post-operation constraints (resource-link completion after create/update) are defined there.
|
|
15
|
+
> **CRITICAL - For all commands that require `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 doc `./references/<tool-name>.md`**. For example: before running `+create_metric`, you must first read [`./references/create-metric.md`](./references/create-metric.md)
|
|
17
|
+
|
|
18
|
+
## When to Use
|
|
19
|
+
|
|
20
|
+
When the user needs "metadata governance and project configuration" capabilities, use `te-meta`:
|
|
21
|
+
|
|
22
|
+
- Event/property metadata queries: `+list_events`, `+list_properties`
|
|
23
|
+
- Metric and virtual metadata governance: metric / batch metadata / virtual event/property
|
|
24
|
+
- Project configuration: `+get_project_config`, `+list_project_users`
|
|
25
|
+
- Tracking plans and date markers: track program / mark time
|
|
26
|
+
- Entity catalog: `+list_entities`
|
|
27
|
+
|
|
28
|
+
## Command Format
|
|
29
|
+
|
|
30
|
+
`ae-cli te_meta +<tool_name> [options]`
|
|
31
|
+
|
|
32
|
+
## Tool Groups (20)
|
|
33
|
+
|
|
34
|
+
### Metadata and Governance (10)
|
|
35
|
+
- `+list_events` ([documentation](./references/list-events.md))
|
|
36
|
+
- `+list_properties` ([documentation](./references/list-properties.md))
|
|
37
|
+
- `+list_metrics` ([documentation](./references/list-metrics.md))
|
|
38
|
+
- `+get_metric` ([documentation](./references/get-metric.md))
|
|
39
|
+
- `+create_metric` ([documentation](./references/create-metric.md))
|
|
40
|
+
- `+update_metric` ([documentation](./references/update-metric.md))
|
|
41
|
+
- `+batch_edit_metadata` ([documentation](./references/batch-edit-metadata.md))
|
|
42
|
+
- `+batch_create_metadata` ([documentation](./references/batch-create-metadata.md))
|
|
43
|
+
- `+create_virtual_event` ([documentation](./references/create-virtual-event.md))
|
|
44
|
+
- `+create_virtual_property` ([documentation](./references/create-virtual-property.md))
|
|
45
|
+
|
|
46
|
+
### Project and Tracking (9)
|
|
47
|
+
- `+get_project_config` ([documentation](./references/get-project-config.md))
|
|
48
|
+
- `+list_project_users` ([documentation](./references/list-project-users.md))
|
|
49
|
+
- `+get_track_program` ([documentation](./references/get-track-program.md))
|
|
50
|
+
- `+save_track_items` ([documentation](./references/save-track-items.md))
|
|
51
|
+
- `+delete_track_items` ([documentation](./references/delete-track-items.md))
|
|
52
|
+
- `+create_project_mark_time` ([documentation](./references/create-project-mark-time.md))
|
|
53
|
+
- `+update_project_mark_time` ([documentation](./references/update-project-mark-time.md))
|
|
54
|
+
- `+list_project_mark_times` ([documentation](./references/list-project-mark-times.md))
|
|
55
|
+
- `+delete_project_mark_times` ([documentation](./references/delete-project-mark-times.md))
|
|
56
|
+
|
|
57
|
+
### Entity Catalog (1)
|
|
58
|
+
- `+list_entities` ([documentation](./references/list-entities.md))
|
|
59
|
+
|
|
60
|
+
## Quick Verification
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
ae-cli te_meta --help
|
|
64
|
+
npm run verify:te-meta-tools
|
|
65
|
+
# Example: use dry-run to preview the request (replace project_id with your actual project ID)
|
|
66
|
+
ae-cli te_meta +list_events --project_id <YOUR_PROJECT_ID> --dry-run
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Reference Docs
|
|
70
|
+
|
|
71
|
+
See the `references/` directory (20 per-command docs total).
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# te_meta +batch_create_metadata (Batch Create Metadata)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Metadata Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Batch create SYSTEM METADATA in one atomic request (events/eventProperties/userProperties) and apply name-based associations. This tool is only for effective production metadata, not tracking-plan metadata. For bury plan draft/review/publish data, use BuryProgramTool only.
|
|
9
|
+
|
|
10
|
+
## Commands
|
|
11
|
+
```bash
|
|
12
|
+
te-cli te_meta +batch_create_metadata --project_id 1
|
|
13
|
+
te-cli te_meta +batch_create_metadata --project_id 1 --events '[{"eventName":"purchase"}]' --event_properties '[{"propName":"price","selectType":"number"}]' --user_properties '[{"propName":"vip_level","selectType":"string"}]'
|
|
14
|
+
te-cli te_meta +batch_create_metadata --dry-run
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
| Parameter | Required | Description |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
21
|
+
| `--events` | No | Event creation list. Each item: eventName(required), eventDesc(optional), remark(optional), superEventPropNames(optional List<String>). |
|
|
22
|
+
| `--event_properties` | No | Event property creation list. Each item: propName(required), selectType(required canonical: number/string/date/bool/list; aliases like datetime/timestamp/time auto-normalize to date), propDesc(optional, defaults to propName when omitted), propRemark(optional), commonProp(optional boolean), superEventNames(optional List<String>). |
|
|
23
|
+
| `--user_properties` | No | User property creation list. Each item: propName(required), selectType(required canonical: number/string/date/bool/list; aliases like datetime/timestamp/time auto-normalize to date), propDesc(optional, defaults to propName when omitted), propRemark(optional). |
|
|
24
|
+
|
|
25
|
+
## Decision Rules
|
|
26
|
+
- For the first run, pass only the required parameter (`--project_id`) to confirm the path works, then add optional parameters.
|
|
27
|
+
- Wrap JSON parameters in single quotes (for example `--events '{}'` and `--event_properties '{}'`) to avoid shell escaping issues.
|
|
28
|
+
- At least one non-empty list among `--events`, `--event_properties`, and `--user_properties` must be provided.
|
|
29
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
30
|
+
- Write operations keep confirmation prompts by default; evaluate whether to use `--yes` only for automation scenarios.
|
|
31
|
+
|
|
32
|
+
## Next Steps After Failure
|
|
33
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`).
|
|
34
|
+
- If `Invalid JSON` appears, first validate with the smallest JSON structure (such as `{}` or `[]`), then add fields step by step.
|
|
35
|
+
|
|
36
|
+
## Recommended Chaining
|
|
37
|
+
- +batch_create_metadata -> +batch_edit_metadata
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# te_meta +batch_edit_metadata (Batch Edit Metadata)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Metadata Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Batch edit SYSTEM METADATA already effective in project (super events / event properties / user properties). Do NOT use for tracking-plan metadata (bury/track program); tracking plan operations must use BuryProgramTool. Routing rule: if target is planned/unpublished bury metadata, never call this tool.
|
|
9
|
+
- Batch edit SYSTEM METADATA already effective in project (super events / event properties / user properties).
|
|
10
|
+
|
|
11
|
+
## Command
|
|
12
|
+
```bash
|
|
13
|
+
te-cli te_meta +batch_edit_metadata --project_id 1 --type event --items '[{"eventName":"purchase","eventDesc":"Purchase"}]'
|
|
14
|
+
te-cli te_meta +batch_edit_metadata --dry-run
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
| Parameter | Required | Description |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
21
|
+
| `--type` | Yes | Type of metadata to update: event, event_property, or user_property |
|
|
22
|
+
| `--items` | Yes | Batch update list. For event: eventName (required), eventDesc (optional), remark (optional). For properties: propName (required), propDesc (optional), remark (optional). |
|
|
23
|
+
|
|
24
|
+
## Decision Rules
|
|
25
|
+
- First run should only pass required parameters (`--project_id`, `--type`, `--items`), and add optional parameters only after the path is confirmed to work.
|
|
26
|
+
- Wrap JSON arguments in single quotes (for example `--items '{}'`) to avoid shell escaping issues.
|
|
27
|
+
- `--type` only accepts `event`, `event_property`, and `user_property`.
|
|
28
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
29
|
+
- Write operations keep the confirmation prompt by default; re-evaluate whether to use `--yes` in automation scenarios.
|
|
30
|
+
|
|
31
|
+
## Next Steps After Failure
|
|
32
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in (focus on `--project_id`, `--type`, and `--items`).
|
|
33
|
+
- If `Invalid JSON` occurs, validate with the smallest JSON structure first (for example `{}` or `[]`), then add fields step by step.
|
|
34
|
+
|
|
35
|
+
## Recommended Chaining
|
|
36
|
+
- +batch_edit_metadata -> +batch_create_metadata
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# te_meta +create_metric (Create Metric)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Metadata Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Preliminary step: call `+get_analysis_query_schema` to get the structure, then call this tool.
|
|
9
|
+
- When constructing real `events` / `params`, you must supplement project-native metadata; first call `te_meta +list_events` and `te_meta +list_properties`.
|
|
10
|
+
- Create a metric from analysis configuration.
|
|
11
|
+
- Creates a new metric based on event or retention analysis.
|
|
12
|
+
|
|
13
|
+
## MUST Prerequisites
|
|
14
|
+
- Before constructing `--events` / `--params`, you must first read and follow these reference documents:
|
|
15
|
+
- [`../../te-analysis/references/get-analysis-query-schema.md`](../../te-analysis/references/get-analysis-query-schema.md)
|
|
16
|
+
- [`./list-events.md`](./list-events.md)
|
|
17
|
+
- [`./list-properties.md`](./list-properties.md)
|
|
18
|
+
- Do not generate the final `events` / `params` until the document review and prerequisite command calls above are complete.
|
|
19
|
+
|
|
20
|
+
## Prerequisite Call Chain (Required for Constructing events/params)
|
|
21
|
+
1. Determine `--model_type` first (`event` / `retention`).
|
|
22
|
+
2. Read `get-analysis-query-schema.md`, then call `te-cli te_analysis +get_analysis_query_schema --model_type <event|retention>` to get the structure.
|
|
23
|
+
3. Read `list-events.md`, then call `te-cli te_meta +list_events --project_id 1` to get available events.
|
|
24
|
+
4. Read `list-properties.md`, then call `te-cli te_meta +list_properties --project_id 1` to get available properties.
|
|
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 `te-common` constraints (call `te_common +get_resource_url`).
|
|
27
|
+
|
|
28
|
+
## Commands
|
|
29
|
+
```bash
|
|
30
|
+
te-cli te_meta +create_metric --project_id 1 --name demo --display_name demo --model_type event --events '[]' --params '{}'
|
|
31
|
+
te-cli te_meta +create_metric --project_id 1 --name demo --display_name demo --remark demo --model_type event --events '[]' --params '{}'
|
|
32
|
+
te-cli te_meta +create_metric --dry-run
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Parameters
|
|
36
|
+
| Parameter | Required | Description |
|
|
37
|
+
|---|---|---|
|
|
38
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
39
|
+
| `--name` | Yes | Metric name. Must start with a lowercase letter and contain only lowercase letters, digits, and underscores. Maximum length: 80. |
|
|
40
|
+
| `--display_name` | Yes | Metric display name |
|
|
41
|
+
| `--remark` | No | Optional metric remark |
|
|
42
|
+
| `--model_type` | Yes | Metric model type. Supported values: event and retention |
|
|
43
|
+
| `--events` | Yes | Metric events JSON. MUST call `+get_analysis_query_schema` first, then fill event/property fields using metadata from `te_meta +list_events` / `te_meta +list_properties` in the same `project_id`. |
|
|
44
|
+
| `--params` | Yes | Metric params JSON. MUST follow the schema from `+get_analysis_query_schema`; use project metadata from `te_meta +list_events` / `te_meta +list_properties` when filling referenced fields. |
|
|
45
|
+
|
|
46
|
+
## Decision Rules
|
|
47
|
+
- `events` / `params` must not be handwritten by intuition alone: they must satisfy both the schema structure and the project's real metadata constraints.
|
|
48
|
+
- Set `--model_type` first, then use the matching schema; do not mix event/retention structures.
|
|
49
|
+
- Before calling `list_events` / `list_properties`, you must first study the corresponding reference documents.
|
|
50
|
+
- For the first run, pass only the required parameters (`--project_id`, `--name`, `--display_name`) to confirm the path works, then add optional parameters.
|
|
51
|
+
- Wrap JSON parameters in single quotes (for example `--events '{}'` and `--params '{}'`) to avoid shell escaping issues.
|
|
52
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
53
|
+
- Write operations keep confirmation prompts by default; evaluate whether to use `--yes` only for automation scenarios.
|
|
54
|
+
|
|
55
|
+
## Next Steps After Failure
|
|
56
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`, `--name`, and `--display_name`).
|
|
57
|
+
- If `Invalid JSON` appears, first check the schema's required fields, then verify whether the event and property names come from metadata query results in the same `project_id`.
|
|
58
|
+
- If the result after writing does not match expectations, immediately reread the corresponding list/get interfaces for before-and-after comparison.
|
|
59
|
+
|
|
60
|
+
## Recommended Chaining
|
|
61
|
+
- +get_analysis_query_schema -> te_meta +list_events -> te_meta +list_properties -> +create_metric
|
|
62
|
+
- +list_metrics -> +create_metric -> +get_metric
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# te_meta +create_project_mark_time (Create Project Date Marker)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Project Configuration**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Create a project date marker. Returns the new marker ID, timestamp, content, and visibility status.
|
|
9
|
+
- Create a project date marker.
|
|
10
|
+
|
|
11
|
+
## Command
|
|
12
|
+
```bash
|
|
13
|
+
te-cli te_meta +create_project_mark_time --project_id 1 --marked_at '2026-04-09 10:00' --content demo
|
|
14
|
+
te-cli te_meta +create_project_mark_time --project_id 1 --marked_at '2026-04-09 10:00' --zone_offset 8 --content demo --is_visible 1
|
|
15
|
+
te-cli te_meta +create_project_mark_time --dry-run
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Parameters
|
|
19
|
+
| Parameter | Required | Description |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
22
|
+
| `--marked_at` | Yes | Marker timestamp. Format: yyyy-MM-dd HH:mm |
|
|
23
|
+
| `--zone_offset` | No | Marker time zone offset |
|
|
24
|
+
| `--content` | Yes | Marker content |
|
|
25
|
+
| `--is_visible` | No | Whether the marker is visible. Default: 1 |
|
|
26
|
+
|
|
27
|
+
## Decision Rules
|
|
28
|
+
- First run should only pass required parameters (`--project_id`, `--marked_at`, `--content`), and add optional parameters only after the path is confirmed to work.
|
|
29
|
+
- For date/time ranges, first validate with a short range, then expand the range step by step.
|
|
30
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
31
|
+
- Write operations keep the confirmation prompt by default; re-evaluate whether to use `--yes` in automation scenarios.
|
|
32
|
+
|
|
33
|
+
## Next Steps After Failure
|
|
34
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in (focus on `--project_id`, `--marked_at`, and `--content`).
|
|
35
|
+
- If the result after writing is not as expected, immediately read back the corresponding list/get interface for a before-and-after comparison.
|
|
36
|
+
|
|
37
|
+
## Recommended Chaining
|
|
38
|
+
- +create_project_mark_time -> +list_project_mark_times
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
# te_meta +create_virtual_event (Create Virtual Event)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Metadata Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Preliminary step: call `+get_filter_schema` to get the structure, then call this tool.
|
|
9
|
+
- When constructing real `events` / `filter`, you must first obtain the project's available event and property metadata.
|
|
10
|
+
- Create a virtual event that combines multiple events with filters.
|
|
11
|
+
- A virtual event is a composite event defined by combining multiple real events with optional filters.
|
|
12
|
+
- Key parameters:
|
|
13
|
+
- eventName: Unique name for the virtual event (must start with 'ta@'); the name after 'ta@' must start with a letter, and it can contain letters, numbers, and underscores, with a maximum of 60 characters.
|
|
14
|
+
- eventDesc: Display name/description
|
|
15
|
+
- events: JSON array of real events to combine, each with eventName and optional filter. Call get_filter_schema first to obtain the filter schema.
|
|
16
|
+
|
|
17
|
+
## MUST Prerequisites
|
|
18
|
+
- Before constructing `--events` / `--filter`, you must first read and follow these reference documents:
|
|
19
|
+
- [`../../te-analysis/references/get-filter-schema.md`](../../te-analysis/references/get-filter-schema.md)
|
|
20
|
+
- [`./list-events.md`](./list-events.md)
|
|
21
|
+
- [`./list-properties.md`](./list-properties.md)
|
|
22
|
+
- Do not generate the final `events` / `filter` until the document review and prerequisite command calls above are complete.
|
|
23
|
+
|
|
24
|
+
## Prerequisite Call Chain (Required for Constructing events/filter)
|
|
25
|
+
1. Read `get-filter-schema.md`, then call `te-cli te_analysis +get_filter_schema` to get the filter structure.
|
|
26
|
+
2. Read `list-events.md`, then call `te-cli te_meta +list_events --project_id 1` to get available events.
|
|
27
|
+
3. Read `list-properties.md`, then call `te-cli te_meta +list_properties --project_id 1` to get properties available for filtering.
|
|
28
|
+
4. Build `events` / `filter` from the schema + metadata, then call `+create_virtual_event`.
|
|
29
|
+
5. Example events JSON: `[{"eventName":"purchase"},{"eventName":"add_to_cart"}]`
|
|
30
|
+
|
|
31
|
+
## Commands
|
|
32
|
+
```bash
|
|
33
|
+
te-cli te_meta +create_virtual_event --project_id 1 --event_name ta@demo --event_desc demo --events '[{"eventName":"purchase"}]'
|
|
34
|
+
te-cli te_meta +create_virtual_event --project_id 1 --event_name ta@demo2 --event_desc demo --remark demo --events '[{"eventName":"add_to_cart"}]' --filter '{}' --override true
|
|
35
|
+
te-cli te_meta +create_virtual_event --dry-run
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Parameters
|
|
39
|
+
| Parameter | Required | Description |
|
|
40
|
+
|---|---|---|
|
|
41
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
42
|
+
| `--event_name` | Yes | Unique name for the virtual event (must start with 'ta@') |
|
|
43
|
+
| `--event_desc` | Yes | Display name/description |
|
|
44
|
+
| `--remark` | No | Optional remarks |
|
|
45
|
+
| `--events` | Yes | JSON array of events to combine. MUST follow `+get_filter_schema`, and event/property fields must come from `te_meta +list_events` / `te_meta +list_properties` in the same `project_id`. |
|
|
46
|
+
| `--filter` | No | Optional global filter JSON for all events. If provided, MUST follow `+get_filter_schema`, and referenced fields must come from `te_meta +list_properties`. |
|
|
47
|
+
| `--override` | No | Whether to override if event already exists. Default: false |
|
|
48
|
+
|
|
49
|
+
## Decision Rules
|
|
50
|
+
- `events` / `filter` must not be handwritten by intuition alone: they must satisfy both the filter schema and the project's real metadata constraints.
|
|
51
|
+
- Before calling `list_events` / `list_properties`, you must first study the corresponding reference documents.
|
|
52
|
+
- For the first run, pass only the required parameters (`--project_id`, `--event_name`, `--event_desc`, `--events`) to confirm the path works, then add optional parameters.
|
|
53
|
+
- Wrap JSON parameters in single quotes (for example `--events '{}'` and `--filter '{}'`) to avoid shell escaping issues.
|
|
54
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
55
|
+
- Write operations keep confirmation prompts by default; evaluate whether to use `--yes` only for automation scenarios.
|
|
56
|
+
|
|
57
|
+
## Next Steps After Failure
|
|
58
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`, `--event_name`, and `--event_desc`).
|
|
59
|
+
- If `Invalid JSON` appears, first check the filter schema's required fields, then verify whether the event and property names come from metadata query results in the same `project_id`.
|
|
60
|
+
- If the result after writing does not match expectations, immediately reread the corresponding list/get interfaces for before-and-after comparison.
|
|
61
|
+
|
|
62
|
+
## Recommended Chaining
|
|
63
|
+
- +get_filter_schema -> te_meta +list_events -> te_meta +list_properties -> +create_virtual_event
|
|
64
|
+
- +list_events -> +create_virtual_event
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# te_meta +create_virtual_property (Create Virtual Property)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Metadata Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Before creating a virtual property, first confirm the available properties and, as needed, available events from the project metadata.
|
|
9
|
+
- Create a SQL-based virtual property.
|
|
10
|
+
- A SQL virtual property is a computed property defined by a SQL expression.
|
|
11
|
+
- Key parameters:
|
|
12
|
+
- propertyName: Unique name for the virtual property (must start with '#vp@'), the name after '#vp@' must start with a letter, and can contain letters, numbers and underscores, with a maximum of 60 characters.
|
|
13
|
+
- propertyDesc: Display name/description
|
|
14
|
+
- tableType: event or user. Determine based on the prompt whether to create a virtual event property or a virtual user property
|
|
15
|
+
- selectType: Data type (string, number, bool, datetime)
|
|
16
|
+
- sqlExpression: SQL expression for computing the property
|
|
17
|
+
- sqlEventRelationType: relation_default, relation_always, or relation_by_setting
|
|
18
|
+
|
|
19
|
+
## Mandatory Prerequisites (MUST)
|
|
20
|
+
- Before building `--sql_expression` / `--related_events`, you must first read and follow the reference docs below:
|
|
21
|
+
- [`./list-properties.md`](./list-properties.md)
|
|
22
|
+
- [`./list-events.md`](./list-events.md) (only when `sql_event_relation_type=relation_by_setting`)
|
|
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
|
+
|
|
25
|
+
## Prerequisite Call Chain (required for building SQL and relations)
|
|
26
|
+
1. Read `list-properties.md`, then run `te-cli te_meta +list_properties --project_id 1` to get the available properties.
|
|
27
|
+
2. Use `--table_type` to determine the SQL field source (event or user scope).
|
|
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 `list-events.md`, then run `te-cli te_meta +list_events --project_id 1` to get the available events and build `--related_events`.
|
|
30
|
+
5. Call `+create_virtual_property` to create the virtual property.
|
|
31
|
+
6. Example `sql_expression`: `property_a + property_b` or `CASE WHEN status = 1 THEN 'active' ELSE 'inactive' END`.
|
|
32
|
+
|
|
33
|
+
## Command
|
|
34
|
+
```bash
|
|
35
|
+
te-cli te_meta +create_virtual_property --project_id 1 --property_name '#vp@demo' --table_type event --select_type string --sql_expression 'event_name' --sql_event_relation_type relation_default
|
|
36
|
+
te-cli te_meta +create_virtual_property --project_id 1 --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
|
+
te-cli te_meta +create_virtual_property --dry-run
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Parameters
|
|
41
|
+
| Parameter | Required | Description |
|
|
42
|
+
|---|---|---|
|
|
43
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
44
|
+
| `--property_name` | Yes | Name for the virtual property (must start with '#vp@'), the name after '#vp@' must start with a letter, and can contain letters, numbers and underscores, with a maximum of 60 characters. |
|
|
45
|
+
| `--property_desc` | No | Display name/description |
|
|
46
|
+
| `--table_type` | Yes | Table type. event: create virtual event property(virtual property generated based on event or user properties), user: create virtual user property(virtual property generated based on user properties) |
|
|
47
|
+
| `--select_type` | Yes | Data type: string, number, bool, datetime |
|
|
48
|
+
| `--sql_expression` | Yes | SQL expression for computing the property. MUST be built from fields confirmed by `te_meta +list_properties` in the same `project_id`, and MUST conform to Trino syntax (for example, columns starting with '#' or containing '@' should be double-quoted). |
|
|
49
|
+
| `--sql_event_relation_type` | Yes | Type of associating attributes with events, relation_default: auto; relation_always: all events; relation_by_setting: specified events |
|
|
50
|
+
| `--related_events` | No | Optional JSON array of related events. When `sql_event_relation_type=relation_by_setting`, this field is required and event names MUST come from `te_meta +list_events` in the same `project_id`. |
|
|
51
|
+
| `--property_remark` | No | Optional property remark |
|
|
52
|
+
|
|
53
|
+
## Decision Rules
|
|
54
|
+
- `sql_expression` / `related_events` cannot be written from experience alone: they must be built from real project metadata.
|
|
55
|
+
- `list_properties` / `list_events` must be read before their corresponding commands are run.
|
|
56
|
+
- First run should only pass required parameters (`--project_id`, `--property_name`, `--table_type`, `--select_type`, `--sql_expression`, `--sql_event_relation_type`), and add optional parameters only after the path is confirmed to work.
|
|
57
|
+
- Wrap JSON arguments in single quotes (for example `--related_events '{}'`) to avoid shell escaping issues.
|
|
58
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
59
|
+
- Write operations keep the confirmation prompt by default; re-evaluate whether to use `--yes` in automation scenarios.
|
|
60
|
+
|
|
61
|
+
## Next Steps After Failure
|
|
62
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in (focus on `--project_id`, `--property_name`, and `--table_type`).
|
|
63
|
+
- If `Invalid JSON` occurs, first check the `related_events` structure, then verify whether the event names came from the `list_events` result for the same `project_id`.
|
|
64
|
+
- If SQL execution or validation fails, first check whether the field names came from `list_properties`, then check whether the Trino syntax and field references are correct.
|
|
65
|
+
- If the result after writing is not as expected, immediately read back the corresponding list/get interface for a before-and-after comparison.
|
|
66
|
+
|
|
67
|
+
## Recommended Chaining
|
|
68
|
+
- +list_properties -> +create_virtual_property
|
|
69
|
+
- +list_properties -> +list_events -> +create_virtual_property (sql_event_relation_type=relation_by_setting)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# te_meta +delete_project_mark_times (Delete Project Mark Times)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Project Configuration**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Delete one or more project date markers.
|
|
9
|
+
|
|
10
|
+
## Commands
|
|
11
|
+
```bash
|
|
12
|
+
te-cli te_meta +delete_project_mark_times --project_id 1 --mark_time_ids '[]'
|
|
13
|
+
te-cli te_meta +delete_project_mark_times --dry-run
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Parameters
|
|
17
|
+
| Parameter | Required | Description |
|
|
18
|
+
|---|---|---|
|
|
19
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
20
|
+
| `--mark_time_ids` | Yes | List of marker IDs |
|
|
21
|
+
|
|
22
|
+
## Decision Rules
|
|
23
|
+
- For the first run, pass only the required parameters (`--project_id` and `--mark_time_ids`) to confirm the path works, then add optional parameters.
|
|
24
|
+
- Wrap JSON parameters in single quotes (for example `--mark_time_ids '{}'`) to avoid shell escaping issues.
|
|
25
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
26
|
+
- Write operations keep confirmation prompts by default; evaluate whether to use `--yes` only for automation scenarios.
|
|
27
|
+
|
|
28
|
+
## Next Steps After Failure
|
|
29
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id` and `--mark_time_ids`).
|
|
30
|
+
- If `Invalid JSON` appears, first validate with the smallest JSON structure (such as `{}` or `[]`), then add fields step by step.
|
|
31
|
+
- If the result after writing does not match expectations, immediately reread the corresponding list/get interfaces for before-and-after comparison.
|
|
32
|
+
|
|
33
|
+
## Recommended Chaining
|
|
34
|
+
- +list_project_mark_times -> +delete_project_mark_times
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# te_meta +delete_track_items (Delete Track Program Items)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Project Configuration**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Delete TRACKING-PLAN metadata items only. Do not use for effective system metadata deletion/editing; those belong to MetaPowerTool/other system metadata flows.
|
|
9
|
+
- Delete TRACKING-PLAN metadata items only.
|
|
10
|
+
|
|
11
|
+
## Command
|
|
12
|
+
```bash
|
|
13
|
+
te-cli te_meta +delete_track_items --project_id 1 --delete_data '{}'
|
|
14
|
+
te-cli te_meta +delete_track_items --dry-run
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
| Parameter | Required | Description |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
21
|
+
| `--delete_data` | Yes | Delete payload JSON object with events/eventPropNames/userPropNames/commonEventPropNames. At least one list must be provided. |
|
|
22
|
+
|
|
23
|
+
## Decision Rules
|
|
24
|
+
- First run should only pass required parameters (`--project_id`, `--delete_data`), and add optional parameters only after the path is confirmed to work.
|
|
25
|
+
- Wrap JSON arguments in single quotes (for example `--delete_data '{}'`) to avoid shell escaping issues.
|
|
26
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
27
|
+
- Write operations keep the confirmation prompt by default; re-evaluate whether to use `--yes` in automation scenarios.
|
|
28
|
+
|
|
29
|
+
## Next Steps After Failure
|
|
30
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in (focus on `--project_id` and `--delete_data`).
|
|
31
|
+
- If `Invalid JSON` occurs, validate with the smallest JSON structure first (for example `{}` or `[]`), then add fields step by step.
|
|
32
|
+
- If the result after writing is not as expected, immediately read back the corresponding list/get interface for a before-and-after comparison.
|
|
33
|
+
|
|
34
|
+
## Recommended Chaining
|
|
35
|
+
- +get_track_program -> +delete_track_items -> +get_track_program
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# te_meta +get_metric (View Metric Details)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Metadata Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Get the definition details of a single metric. Returns the metric name, display name, remark, model type, linked events, and parameter definition without executing metric calculation.
|
|
9
|
+
- Get the definition details of a single metric.
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
```bash
|
|
13
|
+
te-cli te_meta +get_metric --project_id 1 --metric_id 1
|
|
14
|
+
te-cli te_meta +get_metric --dry-run
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
| Parameter | Required | Description |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
21
|
+
| `--metric_id` / `-m` | Yes | Metric ID |
|
|
22
|
+
|
|
23
|
+
## Decision Rules
|
|
24
|
+
- For the first run, pass only the required parameters (`--project_id` and `--metric_id`) to confirm the path works, then add optional parameters.
|
|
25
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
26
|
+
|
|
27
|
+
## Next Steps After Failure
|
|
28
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id` and `--metric_id`).
|
|
29
|
+
- If reading fails, first verify that the object ID exists and belongs to the current project.
|
|
30
|
+
|
|
31
|
+
## Recommended Chaining
|
|
32
|
+
- +get_metric -> +update_metric
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# te_meta +get_project_config (Read Project Analysis Configuration)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Project Configuration**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Get project configuration details. Returns: projectId, projectName, companyId, defaultTimeZoneOffset (project default time zone offset), remark, timeZoneEnabled (whether multiple time zones are supported), timeZoneOffsetColumn (time zone column name in event data), and availableTimeZones (array of time zone offsets used in this project). Call this tool when you need project basic info or time zone configuration.
|
|
9
|
+
- Get project configuration details.
|
|
10
|
+
|
|
11
|
+
## Command
|
|
12
|
+
```bash
|
|
13
|
+
te-cli te_meta +get_project_config --project_id 1
|
|
14
|
+
te-cli te_meta +get_project_config --dry-run
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
| Parameter | Required | Description |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
21
|
+
|
|
22
|
+
## Decision Rules
|
|
23
|
+
- First run should only pass the required parameter (`--project_id`), and add optional parameters only after the path is confirmed to work.
|
|
24
|
+
- `timeZoneEnabled` and `availableTimeZones` are often used to determine whether `zone_offset` can be passed to `create/update_cluster` and `create/update_tag`.
|
|
25
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
26
|
+
|
|
27
|
+
## Next Steps After Failure
|
|
28
|
+
- If the required parameter is missing, fall back to the smallest runnable command and fill it in (focus on `--project_id`).
|
|
29
|
+
- If reading fails, first verify whether the object ID exists and belongs to the current project.
|
|
30
|
+
|
|
31
|
+
## Recommended Chaining
|
|
32
|
+
- +get_project_config -> +create_project_mark_time / +update_project_mark_time
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# te_meta +get_track_program (Read Tracking Plan Baseline)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Project Configuration**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Query TRACKING-PLAN metadata (bury program), including planned events/properties/common properties. This is NOT system metadata. Do NOT use MetaTool/MetaPowerTool for these plan objects.
|
|
9
|
+
- Query TRACKING-PLAN metadata (bury program), including planned events/properties/common properties.
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
```bash
|
|
13
|
+
te-cli te_meta +get_track_program --project_id 1
|
|
14
|
+
te-cli te_meta +get_track_program --dry-run
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Parameters
|
|
18
|
+
| Parameter | Required | Description |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
21
|
+
|
|
22
|
+
## Decision Rules
|
|
23
|
+
- For the first run, pass only the required parameter (`--project_id`) to confirm the path works, then add optional parameters.
|
|
24
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
25
|
+
|
|
26
|
+
## Next Steps After Failure
|
|
27
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`).
|
|
28
|
+
- If reading fails, first verify that the object ID exists and belongs to the current project.
|
|
29
|
+
|
|
30
|
+
## Recommended Chaining
|
|
31
|
+
- +get_project_config -> +get_track_program
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# te_meta +list_entities (Entity Search)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Entity Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List entities in the project. Returns entity details such as entity ID, name, column name, column description, and type. Can be filtered by event name.
|
|
9
|
+
- List entities in the project.
|
|
10
|
+
|
|
11
|
+
## Command
|
|
12
|
+
```bash
|
|
13
|
+
ae-cli te_meta +list_entities --project_id 1
|
|
14
|
+
ae-cli te_meta +list_entities --project_id 1 --event_name demo
|
|
15
|
+
ae-cli te_meta +list_entities --dry-run
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Parameters
|
|
19
|
+
| Parameter | Required | Description |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
22
|
+
| `--event_name` | No | Optional event name filter |
|
|
23
|
+
|
|
24
|
+
## Decision Rules
|
|
25
|
+
- First run should only pass the required parameter (`--project_id`), and add optional parameters only after the path is confirmed to work.
|
|
26
|
+
- `--event_name` is used to filter entities by event name, not for keyword search.
|
|
27
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
28
|
+
|
|
29
|
+
## Next Steps After Failure
|
|
30
|
+
- If the required parameter is missing, fall back to the smallest runnable command and fill it in (focus on `--project_id`).
|
|
31
|
+
- If the result is empty, first confirm the project ID/keyword, then try loosening the filter conditions.
|
|
32
|
+
|
|
33
|
+
## Recommended Chaining
|
|
34
|
+
- +list_entities -> +create_virtual_property / +create_virtual_event
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# te_meta +list_events (Event Metadata Discovery)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Read [`../te-shared/SKILL.md`](../../te-shared/SKILL.md)
|
|
4
|
+
|
|
5
|
+
Domain: **Metadata Query**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Read-only query for SYSTEM METADATA already effective in the project. Use for super events in production metadata. Do NOT use for tracking-plan metadata (bury/track program); that belongs to BuryProgramTool.
|
|
9
|
+
- Read-only query for SYSTEM METADATA already effective in the project.
|
|
10
|
+
|
|
11
|
+
## Commands
|
|
12
|
+
```bash
|
|
13
|
+
ae-cli te_meta +list_events --project_id 1
|
|
14
|
+
ae-cli te_meta +list_events --project_id 1 --query demo
|
|
15
|
+
ae-cli te_meta +list_events --dry-run
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Parameters
|
|
19
|
+
| Parameter | Required | Description |
|
|
20
|
+
|---|---|---|
|
|
21
|
+
| `--project_id` / `-p` | Yes | Project ID |
|
|
22
|
+
| `--query` / `-q` | No | Optional keyword filter. Performs fuzzy matching against event names, descriptions, and AI remarks; if omitted, all events are returned. |
|
|
23
|
+
|
|
24
|
+
## Decision Rules
|
|
25
|
+
- For the first run, pass only the required parameter (`--project_id`) to confirm the path works, then add optional parameters.
|
|
26
|
+
- For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
|
|
27
|
+
|
|
28
|
+
## Next Steps After Failure
|
|
29
|
+
- If required parameters are missing, fall back to the smallest runnable command and fill them in first (focus on `--project_id`).
|
|
30
|
+
- If the result is empty, first confirm the project ID/keyword, then try loosening the filter conditions.
|
|
31
|
+
|
|
32
|
+
## Recommended Chaining
|
|
33
|
+
- +list_events -> +create_virtual_event
|