@thinkingai/ae-cli 6.0.28 → 6.0.29

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 (100) hide show
  1. package/dist/capability-KVA55RMK.js +227 -0
  2. package/dist/capability-LKHLZQPD.js +227 -0
  3. package/dist/chunk-CWZUGF2J.js +26 -0
  4. package/dist/{chunk-YNQFYBDB.js → chunk-OJR23CIK.js} +12 -0
  5. package/dist/chunk-OO6XR6LK.js +26 -0
  6. package/dist/{chunk-C4DH76LX.js → chunk-P2JRP6HJ.js} +4 -21
  7. package/dist/{chunk-LG5YT7P7.js → chunk-S5XN6KEX.js} +4 -21
  8. package/dist/{chunk-BXMXMUD7.js → chunk-THBBNYXI.js} +12 -0
  9. package/dist/index.js +22 -11
  10. package/dist/{metadata-IPSPQBX3.js → metadata-6CCFV4K5.js} +11 -8
  11. package/dist/{metadata-N5REJ7R7.js → metadata-PDOIWH5O.js} +11 -8
  12. package/dist/{te-agent-QLIVKRUN.js → te-agent-FAIBM3SA.js} +5 -5
  13. package/dist/{te-analysis-5WZKVFHI.js → te-analysis-DDXGM7WM.js} +173 -260
  14. package/dist/{te-analysis-KAEZXLNS.js → te-analysis-HCDNYI7E.js} +173 -260
  15. package/dist/{te-audience-XMRMVD2V.js → te-audience-ECFS4GF4.js} +11 -10
  16. package/dist/{te-audience-PVMKQAFH.js → te-audience-WO377T2J.js} +11 -10
  17. package/dist/{te-engage-AGREUOW7.js → te-engage-545HJL6J.js} +4 -4
  18. package/dist/{te-engage-MIIUKY6M.js → te-engage-M7JQSJDP.js} +4 -4
  19. package/dist/{te-kb-KQJ53M3A.js → te-kb-NT33UHAE.js} +1 -1
  20. package/dist/{te-meta-QLANJ4B4.js → te-meta-FADFLTDM.js} +3 -3
  21. package/dist/{te-meta-TOA6FWDE.js → te-meta-PKT27OTN.js} +3 -3
  22. package/dist/{te-team-TQGMNHQQ.js → te-team-RG75PR5D.js} +1 -1
  23. package/package.json +2 -1
  24. package/skills/ae-agent/SKILL.md +4 -3
  25. package/skills/ae-analysis/SKILL.md +35 -16
  26. package/skills/ae-analysis/references/analysis_gateway_assets.md +42 -9
  27. package/skills/ae-analysis/references/asset_abnormal_get.md +3 -3
  28. package/skills/ae-analysis/references/asset_abnormal_list.md +3 -3
  29. package/skills/ae-analysis/references/asset_authentication_list.md +3 -3
  30. package/skills/ae-analysis/references/asset_authentication_update.md +3 -3
  31. package/skills/ae-analysis/references/asset_recent_list.md +3 -3
  32. package/skills/ae-analysis/references/asset_search.md +3 -3
  33. package/skills/ae-analysis/references/build_event_analysis_qp.md +1 -1
  34. package/skills/ae-analysis/references/build_funnel_analysis_qp.md +1 -1
  35. package/skills/ae-analysis/references/build_prop_analysis_qp.md +1 -1
  36. package/skills/ae-analysis/references/build_retention_analysis_qp.md +1 -1
  37. package/skills/ae-analysis/references/cancel_query.md +1 -1
  38. package/skills/ae-analysis/references/datatable_columns_get.md +3 -3
  39. package/skills/ae-analysis/references/datatable_influence_list.md +3 -3
  40. package/skills/ae-analysis/references/datatable_version_get.md +3 -3
  41. package/skills/ae-analysis/references/datatable_version_list.md +3 -3
  42. package/skills/ae-analysis/references/drilldown_user_events.md +4 -4
  43. package/skills/ae-analysis/references/event_changelog_list.md +3 -3
  44. package/skills/ae-analysis/references/event_create.md +3 -3
  45. package/skills/ae-analysis/references/event_delete.md +3 -3
  46. package/skills/ae-analysis/references/event_get.md +3 -3
  47. package/skills/ae-analysis/references/event_hide_update.md +3 -3
  48. package/skills/ae-analysis/references/event_influence_list.md +3 -3
  49. package/skills/ae-analysis/references/event_list.md +3 -3
  50. package/skills/ae-analysis/references/event_relation_update.md +3 -3
  51. package/skills/ae-analysis/references/event_update.md +3 -3
  52. package/skills/ae-analysis/references/exchange_config_update.md +3 -3
  53. package/skills/ae-analysis/references/exchange_rate_refresh.md +3 -3
  54. package/skills/ae-analysis/references/exchange_rule_list.md +3 -3
  55. package/skills/ae-analysis/references/exchange_rule_update.md +3 -3
  56. package/skills/ae-analysis/references/exchange_rule_validate.md +3 -3
  57. package/skills/ae-analysis/references/folder_create.md +18 -6
  58. package/skills/ae-analysis/references/folder_delete.md +21 -6
  59. package/skills/ae-analysis/references/folder_share.md +16 -6
  60. package/skills/ae-analysis/references/get_analysis_query_schema.md +17 -18
  61. package/skills/ae-analysis/references/get_report_definition.md +1 -1
  62. package/skills/ae-analysis/references/list_events.md +1 -1
  63. package/skills/ae-analysis/references/list_metrics.md +1 -1
  64. package/skills/ae-analysis/references/list_properties.md +1 -1
  65. package/skills/ae-analysis/references/metric_create.md +3 -3
  66. package/skills/ae-analysis/references/metric_delete.md +3 -3
  67. package/skills/ae-analysis/references/metric_get.md +3 -3
  68. package/skills/ae-analysis/references/metric_list.md +3 -3
  69. package/skills/ae-analysis/references/metric_update.md +3 -3
  70. package/skills/ae-analysis/references/project_space_create.md +19 -5
  71. package/skills/ae-analysis/references/project_space_delete.md +23 -6
  72. package/skills/ae-analysis/references/project_space_share.md +16 -6
  73. package/skills/ae-analysis/references/property_changelog_list.md +3 -3
  74. package/skills/ae-analysis/references/property_create.md +3 -3
  75. package/skills/ae-analysis/references/property_delete.md +3 -3
  76. package/skills/ae-analysis/references/property_get.md +3 -3
  77. package/skills/ae-analysis/references/property_hide_update.md +3 -3
  78. package/skills/ae-analysis/references/property_influence_list.md +3 -3
  79. package/skills/ae-analysis/references/property_list.md +3 -3
  80. package/skills/ae-analysis/references/property_related_events.md +3 -3
  81. package/skills/ae-analysis/references/property_relation_update.md +3 -3
  82. package/skills/ae-analysis/references/property_update.md +3 -3
  83. package/skills/ae-analysis/references/query_adhoc.md +34 -21
  84. package/skills/ae-analysis/references/super_metadata_export.md +4 -4
  85. package/skills/ae-analysis/references/super_metadata_import.md +3 -3
  86. package/skills/ae-analysis/references/update_report.md +3 -3
  87. package/skills/ae-analysis/references/virtual_event_create.md +3 -3
  88. package/skills/ae-analysis/references/virtual_event_delete.md +3 -3
  89. package/skills/ae-analysis/references/virtual_event_get.md +3 -3
  90. package/skills/ae-analysis/references/virtual_property_create.md +3 -3
  91. package/skills/ae-analysis/references/virtual_property_sql_rule_delete.md +3 -3
  92. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +3 -3
  93. package/skills/ae-capability/SKILL.md +103 -0
  94. package/skills/ae-community/SKILL.md +1 -1
  95. package/skills/ae-dataops/references/dataops-integration.md +3 -3
  96. package/skills/ae-engage/SKILL.md +5 -5
  97. package/skills/ae-metadata/references/metadata_data_table_sql_write.md +60 -8
  98. package/skills/ae-team/SKILL.md +1 -1
  99. package/skills/ae-analysis/references/folder_members.md +0 -15
  100. package/skills/ae-analysis/references/project_space_members.md +0 -15
@@ -8,7 +8,7 @@ Domain: **Metadata Query**
8
8
 
9
9
  **Fuzzy Search Fallback:** If `--query` returns no results, retry with broader keywords (max 3 attempts), then fall back to full list. See [SKILL.md § C. FUZZY_SEARCH_FALLBACK](../SKILL.md#c-fuzzy_search_fallback).
10
10
 
11
- **Not a builder pre-step:** Do not call `+list_events` before builder-supported ad-hoc analysis (`event`, `retention`, `funnel`, `prop_analysis`). The matching QP builder resolves event names internally. If the builder returns MCP failure, stop and ask for clarification instead of using this command as a fallback.
11
+ **Not a builder pre-step:** Do not call `+list_events` before non-SQL ad-hoc analysis. The matching QP builder resolves event names internally. If the builder returns MCP failure, stop and ask for clarification instead of using this command as a fallback.
12
12
 
13
13
  ## Use Cases
14
14
  - 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.
@@ -8,7 +8,7 @@ Domain: **Metadata Query**
8
8
 
9
9
  **Fuzzy Search Fallback:** If `--query` returns no results, retry with broader keywords (max 3 attempts), then fall back to full list. See [SKILL.md § C. FUZZY_SEARCH_FALLBACK](../SKILL.md#c-fuzzy_search_fallback).
10
10
 
11
- **Not a builder pre-step:** Do not call `+list_metrics` before `+build_event_analysis_qp`, `+build_retention_analysis_qp`, `+build_funnel_analysis_qp`, or `+build_prop_analysis_qp` for normal ad-hoc analysis. Event builder resolves saved metric names internally when the metric name is passed in `metrics[].event`. If the builder fails, stop and ask for clarification instead of using this command as a fallback.
11
+ **Not a builder pre-step:** Do not call `+list_metrics` before non-SQL ad-hoc analysis. The matching builder resolves referenced metrics internally; the event builder accepts a saved metric name in `metrics[].event`. If the builder fails, stop and ask for clarification instead of using this command as a fallback.
12
12
 
13
13
  ## Use Cases
14
14
  - List metric metadata in the project. Supports keyword filtering and returns metric IDs, names, display names, model types, remarks, and related metadata, but not metric calculation results.
@@ -6,7 +6,7 @@ Domain: **Metadata Query**
6
6
 
7
7
  ## Constraints
8
8
 
9
- **Not a builder pre-step:** Do not call `+list_properties` before builder-supported ad-hoc analysis (`event`, `retention`, `funnel`, `prop_analysis`). The matching QP builder resolves property names internally. If the builder returns MCP failure, stop and ask for clarification instead of using this command as a fallback.
9
+ **Not a builder pre-step:** Do not call `+list_properties` before non-SQL ad-hoc analysis. The matching QP builder resolves property names internally. If the builder returns MCP failure, stop and ask for clarification instead of using this command as a fallback.
10
10
 
11
11
  ## Use Cases
12
12
  - Read-only query for SYSTEM METADATA properties already effective in the project. Supports event/user scope. Do NOT use for tracking-plan metadata (bury/track program); that belongs to BuryProgramTool.
@@ -1,4 +1,4 @@
1
- # analysis metric create
1
+ # analysis-meta metric create
2
2
 
3
3
  Use when the user needs to create a metric from event or retention analysis configuration.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis metric create --project-id <project_id> --payload '{}'
11
- ae-cli analysis metric create --dry-run
10
+ ae-cli analysis-meta metric create --project-id <project_id> --payload '{}'
11
+ ae-cli analysis-meta metric create --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.metric.create`.
@@ -1,4 +1,4 @@
1
- # analysis metric delete
1
+ # analysis-meta metric delete
2
2
 
3
3
  Use when the user needs to delete a metric.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis metric delete --project-id <project_id> --metric-id <metric_id>
11
- ae-cli analysis metric delete --dry-run
10
+ ae-cli analysis-meta metric delete --project-id <project_id> --metric-id <metric_id>
11
+ ae-cli analysis-meta metric delete --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.metric.delete`.
@@ -1,4 +1,4 @@
1
- # analysis metric get
1
+ # analysis-meta metric get
2
2
 
3
3
  Use when the user needs to get metric definition, events, and params.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis metric get --project-id <project_id> --metric-id <metric_id>
11
- ae-cli analysis metric get --dry-run
10
+ ae-cli analysis-meta metric get --project-id <project_id> --metric-id <metric_id>
11
+ ae-cli analysis-meta metric get --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.metric.get`.
@@ -1,4 +1,4 @@
1
- # analysis metric list
1
+ # analysis-meta metric list
2
2
 
3
3
  Use when the user needs to list project metrics.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis metric list --project-id <project_id> --ignore-authentication true
11
- ae-cli analysis metric list --dry-run
10
+ ae-cli analysis-meta metric list --project-id <project_id> --ignore-authentication true
11
+ ae-cli analysis-meta metric list --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.metric.list`.
@@ -1,4 +1,4 @@
1
- # analysis metric update
1
+ # analysis-meta metric update
2
2
 
3
3
  Use when the user needs to update metric definition, name, and remark.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis metric update --project-id <project_id> --payload '{}'
11
- ae-cli analysis metric update --dry-run
10
+ ae-cli analysis-meta metric update --project-id <project_id> --payload '{}'
11
+ ae-cli analysis-meta metric update --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.metric.update`.
@@ -1,15 +1,29 @@
1
- # analysis project-space create
1
+ # analysis project-space create (L3)
2
2
 
3
3
  Use when the user explicitly wants to create a project space.
4
4
 
5
- Do not use to create folders inside a space. Use `folder create`.
5
+ Do not use to create folders inside a space. Use `analysis.folder.create` via capability run.
6
6
 
7
- Command:
7
+ This capability has no curated `ae-cli analysis` command. Read [`ae-capability`](../../ae-capability/SKILL.md), then:
8
8
 
9
9
  ```bash
10
- ae-cli analysis project-space create --project-id <project_id> [--space-name <name>] [--space-desc <text>] [--avatar-type <type>] [--color-key <key>] [--avatar <value>] [--payload '{...}'] --yes
10
+ ae-cli capability inspect analysis.project_space.create
11
+ ae-cli capability dry-run analysis.project_space.create --input '{"project_id":1,"space_name":"lds-test-071301","avatar_type":1}'
12
+ ae-cli capability run analysis.project_space.create --input '{"project_id":1,"space_name":"lds-test-071301","avatar_type":1}'
11
13
  ```
12
14
 
13
- Input sends `project_id` plus optional space metadata and `payload`. `avatar_type` defaults to `1` (word avatar) when omitted. When using `--payload`, put custom avatar fields in the payload or pass explicit top-level flags.
15
+ `risk=write` — no chat confirmation required after dry-run succeeds.
16
+
17
+ Input uses snake_case JSON. Common fields:
18
+
19
+ | field | type | required | description |
20
+ | --- | --- | --- | --- |
21
+ | `project_id` | integer | yes | Project ID. |
22
+ | `space_name` | string | no | Project space name. |
23
+ | `space_desc` | string | no | Project space description. |
24
+ | `avatar_type` | integer | no | Avatar type: 1=WORD, 2=ICON, 3=IMAGE. Default 1. |
25
+ | `color_key` | string | no | Avatar color key. |
26
+ | `avatar` | string | no | Avatar content. |
27
+ | `payload` | object | no | Optional snake_case object for complex create payloads. |
14
28
 
15
29
  Output is the gateway envelope. `data` contains the created project-space result.
@@ -1,15 +1,32 @@
1
- # analysis project-space delete
1
+ # analysis project-space delete (L3)
2
2
 
3
- Use when the user explicitly wants to delete one or more project spaces.
3
+ Use when the user wants to delete one or more project spaces.
4
4
 
5
- Do not use for removing dashboard or folder membership. Use the matching resource command.
5
+ Do not use for removing dashboard or folder membership. Use the matching capability for that resource.
6
6
 
7
- Command:
7
+ This capability has no curated `ae-cli analysis` command. Read [`ae-capability`](../../ae-capability/SKILL.md) High-Risk Confirmation Workflow, then:
8
+
9
+ **Phase 1 — preview:**
8
10
 
9
11
  ```bash
10
- ae-cli analysis project-space delete --project-id <project_id> [--space-id <space_id>] [--space-ids '[1,2]'] --yes
12
+ ae-cli capability inspect analysis.project_space.delete
13
+ ae-cli capability dry-run analysis.project_space.delete --input '{"project_id":1,"space_ids":[10,11]}'
11
14
  ```
12
15
 
13
- Input sends `project_id` and either `space_id` or `space_ids`.
16
+ Summarize capability ID, target space IDs, and `risk=high-risk-write` in chat. Ask the user to confirm.
17
+
18
+ **Phase 2 — execute (only after explicit user confirmation):**
19
+
20
+ ```bash
21
+ ae-cli capability run analysis.project_space.delete --input '{"project_id":1,"space_ids":[10,11]}' --yes
22
+ ```
23
+
24
+ Input uses snake_case JSON. Common fields:
25
+
26
+ | field | type | required | description |
27
+ | --- | --- | --- | --- |
28
+ | `project_id` | integer | yes | Project ID. |
29
+ | `space_id` | integer | no | Single project space ID. |
30
+ | `space_ids` | integer[] | no | Batch project space IDs. |
14
31
 
15
32
  Output is the gateway envelope. `data` contains the delete result.
@@ -1,15 +1,25 @@
1
- # analysis project-space share
1
+ # analysis project-space share (L3)
2
2
 
3
- Use when the user wants to add, remove, or batch modify project-space sharing members.
3
+ Use when the user wants to modify project-space sharing members.
4
4
 
5
- Do not use to inspect members only. Use `project-space members`.
5
+ Do not use to inspect members only. Use `analysis.project_space.members` via `capability search/inspect/run`; see [`analysis_gateway_assets.md`](analysis_gateway_assets.md) L3 members section.
6
6
 
7
- Command:
7
+ This capability has no curated `ae-cli analysis` command. Read [`ae-capability`](../../ae-capability/SKILL.md), then:
8
8
 
9
9
  ```bash
10
- ae-cli analysis project-space share --project-id <project_id> --space-id <space_id> [--payload '{...}'] --yes
10
+ ae-cli capability inspect analysis.project_space.share
11
+ ae-cli capability dry-run analysis.project_space.share --input '{"project_id":1,"space_id":10,"payload":{...}}'
12
+ ae-cli capability run analysis.project_space.share --input '{"project_id":1,"space_id":10,"payload":{...}}'
11
13
  ```
12
14
 
13
- Input sends `project_id`, `space_id`, and backend-compatible snake_case `payload`.
15
+ `risk=write` — no chat confirmation required after dry-run succeeds.
16
+
17
+ Input uses snake_case JSON. Common fields:
18
+
19
+ | field | type | required | description |
20
+ | --- | --- | --- | --- |
21
+ | `project_id` | integer | yes | Project ID. |
22
+ | `space_id` | integer | yes | Project space ID. |
23
+ | `payload` | object | no | Optional snake_case share/member update payload. Inspect the capability schema before composing it. |
14
24
 
15
25
  Output is the gateway envelope. `data` contains the share update result.
@@ -1,4 +1,4 @@
1
- # analysis property changelog-list
1
+ # analysis-meta property changelog-list
2
2
 
3
3
  Use when the user needs to list property metadata change logs.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property changelog-list --project-id <project_id> --table-type <table_type> --prop-name <prop_name>
11
- ae-cli analysis property changelog-list --dry-run
10
+ ae-cli analysis-meta property changelog-list --project-id <project_id> --table-type <table_type> --prop-name <prop_name>
11
+ ae-cli analysis-meta property changelog-list --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.changelog_list`.
@@ -1,4 +1,4 @@
1
- # analysis property create
1
+ # analysis-meta property create
2
2
 
3
3
  Use when the user needs to create event or user properties and optionally associate events.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property create --project-id <project_id> --table-type <table_type> --payload '{}'
11
- ae-cli analysis property create --dry-run
10
+ ae-cli analysis-meta property create --project-id <project_id> --table-type <table_type> --payload '{}'
11
+ ae-cli analysis-meta property create --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.create`.
@@ -1,4 +1,4 @@
1
- # analysis property delete
1
+ # analysis-meta property delete
2
2
 
3
3
  Use when the user needs to batch delete properties or virtual properties.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property delete --project-id <project_id> --table-type <table_type> --prop-names '{}'
11
- ae-cli analysis property delete --dry-run
10
+ ae-cli analysis-meta property delete --project-id <project_id> --table-type <table_type> --prop-names '{}'
11
+ ae-cli analysis-meta property delete --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.delete`.
@@ -1,4 +1,4 @@
1
- # analysis property get
1
+ # analysis-meta property get
2
2
 
3
3
  Use when the user needs to get one event or user property metadata detail.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property get --project-id <project_id> --table-type <table_type> --prop-name <prop_name>
11
- ae-cli analysis property get --dry-run
10
+ ae-cli analysis-meta property get --project-id <project_id> --table-type <table_type> --prop-name <prop_name>
11
+ ae-cli analysis-meta property get --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.get`.
@@ -1,4 +1,4 @@
1
- # analysis property hide-update
1
+ # analysis-meta property hide-update
2
2
 
3
3
  Use when the user needs to batch hide or show properties.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property hide-update --project-id <project_id> --table-type <table_type> --prop-names '{}' --is-hide true
11
- ae-cli analysis property hide-update --dry-run
10
+ ae-cli analysis-meta property hide-update --project-id <project_id> --table-type <table_type> --prop-names '{}' --is-hide true
11
+ ae-cli analysis-meta property hide-update --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.hide_update`.
@@ -1,4 +1,4 @@
1
- # analysis property influence-list
1
+ # analysis-meta property influence-list
2
2
 
3
3
  Use when the user needs to list assets affected by property changes.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property influence-list --project-id <project_id> --table-type <table_type> --prop-name <prop_name>
11
- ae-cli analysis property influence-list --dry-run
10
+ ae-cli analysis-meta property influence-list --project-id <project_id> --table-type <table_type> --prop-name <prop_name>
11
+ ae-cli analysis-meta property influence-list --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.influence_list`.
@@ -1,4 +1,4 @@
1
- # analysis property list
1
+ # analysis-meta property list
2
2
 
3
3
  Use when the user needs to list event or user properties.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property list --project-id <project_id> --table-type <table_type>
11
- ae-cli analysis property list --dry-run
10
+ ae-cli analysis-meta property list --project-id <project_id> --table-type <table_type>
11
+ ae-cli analysis-meta property list --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.list`.
@@ -1,4 +1,4 @@
1
- # analysis property related-events
1
+ # analysis-meta property related-events
2
2
 
3
3
  Use when the user needs to list events related to one event property.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property related-events --project-id <project_id> --prop-name <prop_name>
11
- ae-cli analysis property related-events --dry-run
10
+ ae-cli analysis-meta property related-events --project-id <project_id> --prop-name <prop_name>
11
+ ae-cli analysis-meta property related-events --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.related_events`.
@@ -1,4 +1,4 @@
1
- # analysis property relation-update
1
+ # analysis-meta property relation-update
2
2
 
3
3
  Use when the user needs to update property type, connection relation, or event mapping.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property relation-update --project-id <project_id> --table-type <table_type> --payload '{}'
11
- ae-cli analysis property relation-update --dry-run
10
+ ae-cli analysis-meta property relation-update --project-id <project_id> --table-type <table_type> --payload '{}'
11
+ ae-cli analysis-meta property relation-update --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.relation_update`.
@@ -1,4 +1,4 @@
1
- # analysis property update
1
+ # analysis-meta property update
2
2
 
3
3
  Use when the user needs to update property display names and remarks.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis property update --project-id <project_id> --table-type <table_type> --prop-name <prop_name> --prop-desc <prop_desc> --prop-remark <prop_remark>
11
- ae-cli analysis property update --dry-run
10
+ ae-cli analysis-meta property update --project-id <project_id> --table-type <table_type> --prop-name <prop_name> --prop-desc <prop_desc> --prop-remark <prop_remark>
11
+ ae-cli analysis-meta property update --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.property.update`.
@@ -6,35 +6,41 @@ Domain: **Model analysis**
6
6
 
7
7
  ## Constraints
8
8
 
9
- **⚠️ QUERY_EXISTING_FIRST:** Before using ad-hoc query, you MUST first check for existing reports/dashboards with `list_reports` and `list_dashboards`. Only use `query_adhoc` if no matching reports found. See [SKILL.md § D. QUERY_EXISTING_FIRST](../SKILL.md#d-query_existing_first).
9
+ **⚠️ QUERY_EXISTING_FIRST:** Before using ad-hoc query, you MUST first check for existing reports with `+list_reports` and dashboards with `analysis dashboard list`. Only use `query_adhoc` if no matching asset is used. See [SKILL.md § D. QUERY_EXISTING_FIRST](../SKILL.md#d-query_existing_first).
10
10
 
11
- **⚠️ QP_BUILDER_SUPPORTED_MODELS_ONLY:** QP builder supports exactly four ad-hoc model types: `event`, `retention`, `funnel`, and `prop_analysis`.
11
+ **⚠️ QP_BUILDER_SUPPORTED_MODELS_ONLY:** QP builder supports all ten non-SQL ad-hoc model types: `event`, `retention`, `funnel`, `prop_analysis`, `attribution`, `distribution`, `heat_map`, `interval`, `path`, and `rank_list`.
12
12
 
13
- For these four model types, call the matching builder before `query_adhoc`. Do not handcraft QP from `get_analysis_query_schema`, examples, or prior knowledge.
13
+ For these ten model types, call the matching builder before `query_adhoc`. Do not handcraft QP from `get_analysis_query_schema`, examples, or prior knowledge.
14
14
 
15
- For all other model types (`distribution`, `attribution`, `heat_map`, `interval`, `path`, `rank_list`, `sql`), QP builder is not supported. Use the legacy schema/metadata path and construct QP manually according to the model schema.
15
+ Only `sql` has no builder. Use the schema/verified SQL-definition path for SQL.
16
16
 
17
17
  For builder-supported models, schema/metadata tools are not builder pre-steps. After report/dashboard lookup misses, do not call `get_analysis_query_schema`, `list_events`, `list_properties`, `list_metrics`, `get_metric`, or `get_report_definition` before the builder. The builder resolves event/property/metric metadata internally.
18
18
 
19
- **Hard stop rule:** If builder status is not `generated`, stop and ask the user to clarify or report the builder error. Do not call `query_adhoc`, `get_analysis_query_schema`, or manually assemble QP for `event`, `retention`, `funnel`, or `prop_analysis`.
19
+ **Hard stop rule:** If builder status is not `generated`, stop and ask the user to clarify or report the builder error. Do not call `query_adhoc`, `get_analysis_query_schema`, or manually assemble QP for any of the ten builder-supported models.
20
20
 
21
21
  Builder mapping:
22
22
  1. `event` -> `+build_event_analysis_qp`
23
23
  2. `retention` -> `+build_retention_analysis_qp`
24
24
  3. `funnel` -> `+build_funnel_analysis_qp`
25
25
  4. `prop_analysis` -> `+build_prop_analysis_qp`
26
+ 5. `attribution` -> `+build_attribution_analysis_qp`
27
+ 6. `distribution` -> `+build_distribution_analysis_qp`
28
+ 7. `heat_map` -> `+build_heat_map_analysis_qp`
29
+ 8. `interval` -> `+build_interval_analysis_qp`
30
+ 9. `path` -> `+build_path_analysis_qp`
31
+ 10. `rank_list` -> `+build_rank_list_analysis_qp`
26
32
 
27
33
  **Quick check workflow:**
28
34
  1. `list_reports --query <keyword>` - search matching reports
29
- 2. `list_dashboards --query <keyword>` - search matching dashboards
30
- 3. If found → use `query_report_data` or `query_dashboard_report_data`
31
- 4. If not found and model is builder-supported (`event`/`retention`/`funnel`/`prop_analysis`) → read matching builder reference, call matching builder, then call `query_adhoc` with `model_type` + built `qp`; do not insert schema or metadata lookup before the builder
32
- 5. If not found and model is not builder-supported (`distribution`/`attribution`/`heat_map`/`interval`/`path`/`rank_list`/`sql`) → use the legacy schema/metadata path, then call `query_adhoc`
35
+ 2. `ae-cli analysis dashboard list --project-id <project_id> --query <keyword>` - search matching dashboards
36
+ 3. If found → use `+query_report_data` or `analysis dashboard-report-data run/export`
37
+ 4. If not found and model is non-SQL → read the matching builder reference, call the builder, then call `query_adhoc` with `model_type` + built `qp`; do not insert schema or metadata lookup before the builder
38
+ 5. If not found and model is `sql` → use the schema/verified SQL-definition path, then call `query_adhoc`
33
39
 
34
40
  ## Use Cases
35
41
  - Execute a QP produced by the required chain for the target model.
36
- - Builder-supported models (`event`, `retention`, `funnel`, `prop_analysis`): execute the `qp` returned by builder tools.
37
- - Non-builder models (`distribution`, `attribution`, `heat_map`, `interval`, `path`, `rank_list`, `sql`): execute handcrafted QP from the legacy schema/metadata path when needed.
42
+ - Builder-supported models (all ten non-SQL models): execute the `qp` returned by builder tools.
43
+ - SQL: execute QP from the schema/verified SQL-definition path.
38
44
  - Event analysis: metrics such as event trigger counts, user counts, sums, averages, and more.
39
45
  - Retention analysis: metrics such as user churn and retention.
40
46
  - Funnel analysis: metrics such as multi-step conversion.
@@ -48,23 +54,29 @@ Builder mapping:
48
54
  - SQL: custom SQL analysis.
49
55
  - Process:
50
56
  - Builder-supported models: builder -> `query_adhoc`
51
- - Non-builder models: metadata/schema lookup -> handcraft `qp` -> `query_adhoc`
57
+ - SQL: schema/verified definition -> `query_adhoc`
52
58
 
53
59
  ## Builder-Supported Model Chain
54
- Use this chain only for `event`, `retention`, `funnel`, and `prop_analysis`.
60
+ Use this chain for all ten non-SQL models.
55
61
 
56
62
  1. Read the matching builder reference:
57
63
  - `event`: [`build_event_analysis_qp.md`](./build_event_analysis_qp.md)
58
64
  - `retention`: [`build_retention_analysis_qp.md`](./build_retention_analysis_qp.md)
59
65
  - `funnel`: [`build_funnel_analysis_qp.md`](./build_funnel_analysis_qp.md)
60
66
  - `prop_analysis`: [`build_prop_analysis_qp.md`](./build_prop_analysis_qp.md)
67
+ - `attribution`: [`build_attribution_analysis_qp.md`](./build_attribution_analysis_qp.md)
68
+ - `distribution`: [`build_distribution_analysis_qp.md`](./build_distribution_analysis_qp.md)
69
+ - `heat_map`: [`build_heat_map_analysis_qp.md`](./build_heat_map_analysis_qp.md)
70
+ - `interval`: [`build_interval_analysis_qp.md`](./build_interval_analysis_qp.md)
71
+ - `path`: [`build_path_analysis_qp.md`](./build_path_analysis_qp.md)
72
+ - `rank_list`: [`build_rank_list_analysis_qp.md`](./build_rank_list_analysis_qp.md)
61
73
  2. Compose the builder JSON using the documented DTO keys. Nested JSON keys are camelCase, not snake_case.
62
74
  3. Run the builder with all required flags. `--dry-run` is allowed only with complete required builder inputs, not by itself.
63
75
  4. If builder returns `status=generated`, copy `data.qp` from the builder response and pass it as `--qp`.
64
- 5. If the builder returns `need_clarification`, `invalid_argument`, `unsupported_feature`, or `validation_error`, stop and ask for clarification. Do not use the legacy/manual path as a fallback for these four models.
76
+ 5. If the builder returns `need_clarification`, `invalid_argument`, `unsupported_feature`, or `validation_error`, stop and ask for clarification. Do not use the manual path as a fallback.
65
77
 
66
78
  ## Legacy Query Chain
67
- Use this chain only for `distribution`, `attribution`, `heat_map`, `interval`, `path`, `rank_list`, and `sql`.
79
+ Use this chain only for `sql`.
68
80
 
69
81
  1. Read this reference and the required schema/metadata references.
70
82
  2. Call `+get_analysis_query_schema` for the target model when the QP shape is not already verified.
@@ -88,7 +100,7 @@ ae-cli analysis +query_adhoc --project_id <project_id> --model_type <model_type>
88
100
  |---|---|---|
89
101
  | `--project_id` / `-p` | Yes | Project ID used to identify the analysis project |
90
102
  | `--model_type` | Yes | Model type. Supported values: event, retention, funnel, distribution, attribution, heat_map, interval, path, rank_list, prop_analysis, sql. |
91
- | `--qp` | Yes | Query parameter JSON. For `event`/`retention`/`funnel`/`prop_analysis`, pass QP returned by the matching builder tool. For non-builder models, construct QP through the legacy schema/metadata path. |
103
+ | `--qp` | Yes | Query parameter JSON. For every non-SQL model, pass QP returned by the matching builder tool. For SQL, use the schema/verified-definition path. |
92
104
  | `--request_id` | Yes | Required unique request ID used for tracking and cancellation. Generate it before starting the query. It must use `mcp_<32 lowercase hex UUID>`, for example `mcp_0123456789abcdef0123456789abcdef`. Provide this before starting the query so it can be cancelled later with `+cancel_query --request_id <same value>`, even if the caller stops waiting before the tool returns. If `fetch failed`, HTTP timeout, or caller timeout happens, the backend query may still be running. `requestId` is not auto-generated for MCP query tools because the caller must know it before the response for proactive cleanup. If omitted or blank, the backend returns `REQUEST_ID_REQUIRED`; invalid format returns `INVALID_REQUEST_ID`. The response `metadata.requestId` echoes the supplied requestId and can also be passed to `cancel_query(requestId)` when the query is no longer needed. |
93
105
  | `--use_cache` | No | Whether to use result cache. Default: true |
94
106
  | `--zone_offset` | No | Time zone offset in hours. For example, UTC+8 is 8 and UTC-5 is -5 |
@@ -101,20 +113,20 @@ ae-cli analysis +query_adhoc --project_id <project_id> --model_type <model_type>
101
113
 
102
114
  ## Decision Rules
103
115
  - On the first run, include all required parameters (`--project_id`,`--model_type`,`--qp`,`--request_id`). Generate `--request_id` before starting the query so cancellation can use the same value if the caller stops waiting.
104
- - Do not call this command with placeholder QP such as `{}`. For builder-supported models, wait for builder `status=generated`; for non-builder models, build QP from verified schema/metadata first.
116
+ - Do not call this command with placeholder QP such as `{}`. For non-SQL models, wait for builder `status=generated`; for SQL, build QP from a verified schema/definition first.
105
117
  - For builder-supported models, do not run metadata/schema lookup to "help" the builder. The builder is the metadata resolver.
106
118
  - For pagination, use `--limit` and `--offset` together. Default limit is 1000, maximum 100000.
107
119
  - For `model_type=sql`, use exactly one row limit: either put `LIMIT` in the SQL, or use `--limit`. If both are present they must be equal — `query_adhoc` rejects mismatched values to avoid silently sampled or duplicated results. When the SQL already has a trailing `LIMIT`, you may omit `--limit` and the SQL governs.
108
120
  - Use `--fields` to select specific columns for lighter response payloads.
109
- - `event`, `retention`, `funnel`, and `prop_analysis` must not manually craft QP with schema-first flow; call the builder and use the returned `qp`.
110
- - For non-builder models, `qp` must satisfy both schema structure and project metadata constraints.
121
+ - Non-SQL models must not manually craft QP with schema-first flow; call the matching builder and use its returned `qp`.
122
+ - For SQL, `qp` must satisfy both schema structure and project metadata constraints.
111
123
  - Wrap JSON parameters in single quotes (for example `--qp '<real_qp_json>'`) to avoid shell escaping issues.
112
124
  - For cross-project troubleshooting, first confirm whether `--project_id` matches the current permissions and target environment.
113
125
  - If the user supplied a timezone such as UTC-11, pass `--zone_offset -11` here, not to the builder.
114
126
 
115
127
  ## Next Steps on Failure
116
128
  - If required parameters are missing, resolve `project_id`, `model_type`, and a real `qp` first. Do not run placeholder calls except explicit `--dry-run` validation.
117
- - If a builder returns non-`generated` status for `event`, `retention`, `funnel`, or `prop_analysis`, stop and ask user to clarify before calling `query_adhoc`.
129
+ - If a builder returns non-`generated` status, stop and ask the user to clarify before calling `query_adhoc`.
118
130
  - If `Invalid JSON` appears on legacy manual QP paths, first check schema required fields, then verify whether event/property names come from metadata query results for the same `project_id`.
119
131
  - If the query returns `fetch failed`, hits an HTTP timeout, or the caller stops waiting after you preset `--request_id`, immediately call `+cancel_query --request_id <same value> --yes`; the backend query may still be running.
120
132
  - If the query times out inside the service and returns `QUERY_TIMEOUT`, use the returned `metadata.requestId` for cancellation if further cleanup is needed, then narrow the time range / grouping dimensions and split subqueries to locate the issue.
@@ -124,5 +136,6 @@ ae-cli analysis +query_adhoc --project_id <project_id> --model_type <model_type>
124
136
  - +build_retention_analysis_qp -> +query_adhoc
125
137
  - +build_funnel_analysis_qp -> +query_adhoc
126
138
  - +build_prop_analysis_qp -> +query_adhoc
127
- - +get_analysis_query_schema -> analysis_meta +list_events -> analysis_meta +list_properties -> +query_adhoc (non-builder models only)
139
+ - +build_attribution_analysis_qp / +build_distribution_analysis_qp / +build_heat_map_analysis_qp / +build_interval_analysis_qp / +build_path_analysis_qp / +build_rank_list_analysis_qp -> +query_adhoc
140
+ - +get_analysis_query_schema -> +query_adhoc (SQL only)
128
141
  - +list_events -> +list_properties -> +query_adhoc -> +drilldown_users -> +drilldown_user_events
@@ -1,4 +1,4 @@
1
- # analysis super-metadata export
1
+ # analysis-meta super-metadata export
2
2
 
3
3
  Use when the user needs to export super event and super property configuration.
4
4
 
@@ -7,9 +7,9 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis super-metadata export --project-id <project_id>
11
- ae-cli analysis super-metadata export --project-id <project_id> --request-id cli_0123456789abcdef0123456789abcdef --timeout-seconds 3600
12
- ae-cli analysis super-metadata export --dry-run
10
+ ae-cli analysis-meta super-metadata export --project-id <project_id>
11
+ ae-cli analysis-meta super-metadata export --project-id <project_id> --request-id cli_0123456789abcdef0123456789abcdef --timeout-seconds 3600
12
+ ae-cli analysis-meta super-metadata export --dry-run
13
13
  ```
14
14
 
15
15
  Capability id: `metadata.super_metadata.export`.
@@ -1,4 +1,4 @@
1
- # analysis super-metadata import
1
+ # analysis-meta super-metadata import
2
2
 
3
3
  Use when the user needs to pre-import and confirm-import super event and super property configuration.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis super-metadata import --project-id <project_id> --payload '{}'
11
- ae-cli analysis super-metadata import --dry-run
10
+ ae-cli analysis-meta super-metadata import --project-id <project_id> --payload '{}'
11
+ ae-cli analysis-meta super-metadata import --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.super_metadata.import`.
@@ -11,8 +11,8 @@ Domain: **Report Management**
11
11
 
12
12
  ## Commands
13
13
  ```bash
14
- ae-cli analysis +update_report --project_id <project_id> --report_id <report_id> --version <version> --report_name "New Name"
15
- ae-cli analysis +update_report --project_id <project_id> --report_id <report_id> --version <version> --qp '<qp_json>' --report_model 1
14
+ ae-cli analysis +update_report --project_id <project_id> --report_id <report_id> --report_version <version> --report_name "New Name"
15
+ ae-cli analysis +update_report --project_id <project_id> --report_id <report_id> --report_version <version> --qp '<qp_json>' --report_model 1
16
16
  ae-cli analysis +update_report --dry-run
17
17
  ```
18
18
 
@@ -21,7 +21,7 @@ ae-cli analysis +update_report --dry-run
21
21
  |---|---|---|
22
22
  | `--project_id` / `-p` | Yes | Project ID |
23
23
  | `--report_id` | Yes | Report ID to update |
24
- | `--version` | Yes | Current report version number. Retrieve via `+get_report_definition`. |
24
+ | `--report_version` | Yes | Current report version number. Retrieve via `+get_report_definition`. This name avoids Commander intercepting the global `--version` flag. |
25
25
  | `--report_name` | No | New report name. Omit to keep existing. |
26
26
  | `--report_desc` | No | New report description. Omit to keep existing. |
27
27
  | `--qp` | No | New QP JSON string. Omit to keep existing. When provided, also supply `--report_model`. |
@@ -1,4 +1,4 @@
1
- # analysis virtual-event create
1
+ # analysis-meta virtual-event create
2
2
 
3
3
  Use when the user needs to create a virtual event from events and filters.
4
4
 
@@ -7,8 +7,8 @@ Do not use this command for unrelated analysis queries, ad-hoc query constructio
7
7
  Command:
8
8
 
9
9
  ```bash
10
- ae-cli analysis virtual-event create --project-id <project_id> --override true --payload '{}'
11
- ae-cli analysis virtual-event create --dry-run
10
+ ae-cli analysis-meta virtual-event create --project-id <project_id> --override true --payload '{}'
11
+ ae-cli analysis-meta virtual-event create --dry-run
12
12
  ```
13
13
 
14
14
  Capability id: `metadata.virtual_event.create`.