@thinkingai/ae-cli 6.0.41 → 6.0.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/index.js +3 -3
  2. package/dist/{metadata-UKZDNLLQ.js → metadata-BD6BXAYE.js} +12 -9
  3. package/dist/{metadata-XXMJFN2M.js → metadata-HXOFACDE.js} +12 -9
  4. package/dist/{te-analysis-YSK2DBVL.js → te-analysis-PXNF7ZJT.js} +48 -48
  5. package/dist/{te-analysis-3QLLS35K.js → te-analysis-T7C7WSAH.js} +48 -48
  6. package/dist/{te-engage-IRMHTSQK.js → te-engage-BVB7RGEO.js} +389 -4
  7. package/dist/{te-engage-6RNGK5GH.js → te-engage-LCEGC7G4.js} +389 -4
  8. package/package.json +1 -1
  9. package/skills/ae-analysis/references/ai_models.md +4 -1
  10. package/skills/ae-analysis/references/alert_list.md +2 -3
  11. package/skills/ae-analysis/references/analysis_gateway_assets.md +5 -5
  12. package/skills/ae-analysis/references/bi_panel_list.md +2 -2
  13. package/skills/ae-analysis/references/command_index.md +14 -14
  14. package/skills/ae-analysis/references/dashboard_list.md +2 -2
  15. package/skills/ae-analysis/references/favorite_add.md +2 -2
  16. package/skills/ae-analysis/references/favorite_remove.md +2 -2
  17. package/skills/ae-analysis/references/metric_create.md +7 -8
  18. package/skills/ae-analysis/references/project_space_list.md +2 -2
  19. package/skills/ae-analysis/references/public_link_list.md +2 -2
  20. package/skills/ae-analysis/references/report_list.md +3 -3
  21. package/skills/ae-analysis/references/report_list_export.md +2 -2
  22. package/skills/ae-analysis/references/sql_table_list.md +3 -2
  23. package/skills/ae-analysis/references/user_cluster_update.md +4 -2
  24. package/skills/ae-analysis/references/user_tag_update.md +4 -2
  25. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +3 -3
  26. package/skills/ae-engage/SKILL.md +10 -2
  27. package/skills/ae-engage/references/flow-metric-user.md +2 -1
  28. package/skills/ae-engage/references/flow-node-metric-user.md +2 -1
  29. package/skills/ae-engage/references/flow-node-user.md +2 -1
  30. package/skills/ae-engage/references/task-indicator-user.md +104 -0
  31. package/skills/ae-engage/references/task-user-detail-export.md +31 -0
  32. package/skills/ae-metadata/references/metadata_property_dimension_table_bind_existing.md +1 -1
@@ -0,0 +1,104 @@
1
+ # engage-task indicator-user
2
+
3
+ Build SQL, query inline users, or export the users behind an engagement-task report indicator.
4
+
5
+ > Capability ids: `engage-task.indicator-user.sql`, `engage-task.indicator-user.run`, and `engage-task.indicator-user.export` · Domain: `engage` · Risk: read-only.
6
+
7
+ ## Commands
8
+
9
+ ```bash
10
+ # Build and validate SQL without executing it
11
+ ae-cli engage-task indicator-user sql \
12
+ --project-id 1 \
13
+ --task-id task_123 \
14
+ --indicator main \
15
+ --start-time 2026-04-01 \
16
+ --end-time 2026-04-07
17
+
18
+ # Query a bounded inline user list
19
+ ae-cli engage-task indicator-user run \
20
+ --project-id 1 \
21
+ --task-id task_123 \
22
+ --indicator secondary \
23
+ --secondary-index 2 \
24
+ --start-time 2026-04-01 \
25
+ --end-time 2026-04-07 \
26
+ --limit 100
27
+
28
+ # Export a custom metric's users
29
+ ae-cli engage-task indicator-user export \
30
+ --project-id 1 \
31
+ --task-id task_123 \
32
+ --indicator metric \
33
+ --metric-id metric_1 \
34
+ --start-time 2026-04-01 \
35
+ --end-time 2026-04-07 \
36
+ --artifact-format csv
37
+ ```
38
+
39
+ Use `sql` to obtain the generated user-detail SQL, `run` for a small inline result, and `export` for a downloadable full result.
40
+
41
+ ## Required input
42
+
43
+ All commands require `--project-id`, `--task-id`, `--indicator`, `--start-time`, and `--end-time`.
44
+
45
+ Dates use `yyyy-MM-dd`, and the start date must not be later than the end date. The task must exist under the specified project.
46
+
47
+ `--indicator` maps to the report population as follows:
48
+
49
+ | Value | Report population | Usage note |
50
+ |---|---|---|
51
+ | `original_trigger` | Original triggered users | Triggered tasks only |
52
+ | `plan` | Planned-delivery users | Task delivery funnel |
53
+ | `actual_trigger` | Actual-trigger/actual-delivery users | Task delivery funnel |
54
+ | `trigger_success` | Successfully triggered/delivered users | Task delivery funnel |
55
+ | `view` | Users who produced the configured view event | Requires view-event data |
56
+ | `click` | Users who produced the configured click event | Requires click-event data |
57
+ | `main` | Main conversion-indicator users | Combine with `--retention-type` for converted/lost users |
58
+ | `secondary` | Nth secondary conversion-indicator users | Requires `--secondary-index` |
59
+ | `metric` | Users behind a configured custom metric | Requires `--metric-id` |
60
+ | `click_activate` | Click activation users | Used in experiment activation reports |
61
+ | `main_activate` | Main-indicator activation users | Used in experiment activation reports |
62
+ | `secondary_activate` | Nth secondary-indicator activation users | Requires `--secondary-index`; used in experiment activation reports |
63
+
64
+ ## Conditional input
65
+
66
+ - `secondary` and `secondary_activate` require `--secondary-index 1..10`. Other indicators reject this flag.
67
+ - `metric` requires `--metric-id`; obtain the ID with `ae-cli engage-task metric list`. Other indicators reject this flag.
68
+ - `main`, `secondary`, `main_activate`, and `secondary_activate` must reference a conversion indicator configured on the task.
69
+ - `click_activate`, `main_activate`, and `secondary_activate` use `source=experiment` and `group-by=experiment`; explicitly supplied values must also be `experiment`. The task must have an activation event configured. `click_activate` additionally requires a click-event experiment.
70
+ - Non-metric indicators grouped by experiment use `source=experiment`, and the task must be an experiment task. Metric indicators continue to use `source=metric`.
71
+ - Explicit `--source experiment` always requires an experiment task, even with date, batch, or trigger grouping.
72
+ - `--group-by experiment --is-summary false` requires `--exp-group-id`. The `plan` indicator never accepts `--exp-group-id`; when grouped by experiment, it supports summary queries only.
73
+ - `--group-by batch` is supported only by non-triggered tasks. A non-summary batch segment requires `--task-instance-id`.
74
+ - `--group-by trigger` and `original_trigger` are supported only by triggered tasks.
75
+ - `--retention-type lost` supports `actual_trigger`, `trigger_success`, `view`, `click`, `main`, and `secondary`; it also supports `plan` for triggered tasks. It is rejected for `original_trigger`, `metric`, all activate indicators, and `plan` on non-triggered tasks.
76
+
77
+ ## Optional report context
78
+
79
+ - `--group-by` selects `batch`, `date`, `trigger`, or `experiment`; it defaults to `experiment` for activate indicators and `date` otherwise.
80
+ - `--is-summary` defaults to `true`. Set it to `false` when reproducing a drilled-down batch or experiment row.
81
+ - `--retention-type` selects `retention` or `lost`; the default is `retention`. See the supported combinations above.
82
+ - `--source` selects `task`, `experiment`, or `metric`. It defaults to `metric` for metric indicators, `experiment` for activate indicators or experiment grouping, and `task` otherwise.
83
+ - `--task-instance-id` narrows a non-triggered task to one execution instance.
84
+ - `--exp-group-id` narrows an experiment report to one group.
85
+ - `--push-language-code`, `--user-time-zone`, and `--show-time-zone` reproduce the corresponding task-report filters. Copy their values from the report context when needed.
86
+ - `--push-language-code` accepts `all`, `default`, `ar`, `az`, `bs`, `ca`, `zh-Hans`, `zh-Hant`, `hr`, `cs`, `da`, `nl`, `en`, `et`, `fi`, `fr`, `ka`, `bg`, `de`, `el`, `hi`, `he`, `hu`, `id`, `it`, `ja`, `ko`, `lv`, `lt`, `ms`, `nb`, `fa`, `pl`, `pt`, `pa`, `ro`, `ru`, `sr`, `sk`, `es`, `sv`, `th`, `tr`, `uk`, or `vi`.
87
+ - `--user-time-zone` accepts `all` or a decimal offset from `-12` through `14` that exists in the task's execution details. An unavailable value is rejected instead of falling back to all users.
88
+ - `--show-time-zone` accepts offsets from `-12` through `14`. Omit it or pass `99` to use the backend server's default time zone.
89
+
90
+ ## Execution input and output
91
+
92
+ - `sql` returns `sql` and `indicator` and does not execute the query.
93
+ - `run` accepts `--request-id`, `--limit`, and `--timeout-seconds`. The default limit is `100` and the maximum is `1000`; the default timeout is `120` seconds and the maximum is `180` seconds. It returns `#user_id`, `#account_id`, and `#distinct_id` for each user.
94
+ - `export` accepts `--request-id`, `--artifact-format jsonl|csv`, and `--timeout-seconds`. The default format is `jsonl`; the maximum timeout is six hours. It returns `run_id` and `artifact_id`.
95
+ - For cross-user data sources, `#account_id` and `#distinct_id` are empty strings.
96
+
97
+ Use the query lifecycle commands to inspect and download an export:
98
+
99
+ ```bash
100
+ ae-cli engage-query run inspect --run-id <run_id>
101
+ ae-cli engage-query artifact download --artifact-id <artifact_id> --output ./task-indicator-users.csv.gz
102
+ ```
103
+
104
+ `--artifact-format` controls the exported file. The global `--format json|table` only controls CLI display output.
@@ -0,0 +1,31 @@
1
+ # engage-task user-detail export
2
+
3
+ Export user details for one execution instance of a non-triggered engagement task.
4
+
5
+ > Capability id: `engage-task.user-detail.export` · Domain: `engage` · Output: asynchronous artifact.
6
+
7
+ ```bash
8
+ ae-cli engage-task user-detail export \
9
+ --project-id <project-id> \
10
+ --task-id <task-id> \
11
+ --task-instance-id <task-instance-id> \
12
+ --user-status fail \
13
+ --artifact-format csv
14
+ ```
15
+
16
+ `--user-status` accepts English values only. The statuses below follow the task funnel from audience filtering to the final delivery result:
17
+
18
+ 1. `deduplicate` — users removed because the configured push ID is duplicated.
19
+ 2. `frequency_control` — users removed by the task-level frequency-control rules.
20
+ 3. `sample` — users excluded by experiment-layer sampling before planned delivery.
21
+ 4. `push_plan` — users retained in the planned-delivery population after deduplication, frequency control, and sampling.
22
+ 5. `fatigue_control` — planned users removed by channel-level fatigue-control rules.
23
+ 6. `push_actual` — users retained in the actual-delivery population after fatigue control.
24
+ 7. `exp_skip_push` — actual-delivery users intentionally not sent because their experiment control group is configured to skip delivery.
25
+ 8. `success` — users for whom delivery completed successfully.
26
+ 9. `fail` — users for whom delivery was attempted but failed. This is the default value.
27
+
28
+ Use `--task-exec-detail-id` to narrow an instance to one execution detail. Triggered tasks are not supported in this version.
29
+ Each artifact contains at most 1,000,000 rows, matching the Hermes task export safety boundary.
30
+
31
+ The command returns `run_id` and `artifact_id`. Use `ae-cli engage-query run inspect` to inspect progress and `ae-cli engage-query artifact download` to download the completed artifact.
@@ -18,7 +18,7 @@ ae-cli metadata property bind-existing-dimension-table --project-id <project_id>
18
18
  | `--property-scope` | Yes | Property owner table, for example `event` or `user`. |
19
19
  | `--data-table-id` | Yes | Existing dimension data table ID. |
20
20
  | `--timestamp-join-format` | No | Timestamp join format. |
21
- | `--dict-columns` | No | Dictionary column names JSON array. |
21
+ | `--dict-columns` | No | Dictionary column names JSON array. The CLI converts each string to the canonical `{"column_name":"..."}` object required by the capability. |
22
22
 
23
23
  ## Decision Rules
24
24