@thinkingai/ae-cli 1.0.27 → 1.0.30
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 +1 -16
- package/README.zh.md +1 -16
- package/dist/auth-H3GJD55A.js +457 -0
- package/dist/{auth-TXFJHPXU.js → auth-U25QJU5D.js} +3 -3
- package/dist/{chunk-B4UL2VIJ.js → chunk-CLJF7MQA.js} +1 -1
- package/dist/{chunk-6T7245YE.js → chunk-EGEIXA2Z.js} +90 -18
- package/dist/{chunk-2NGWYMLB.js → chunk-GLNZSDKO.js} +88 -50
- package/dist/chunk-GSJGPNKK.js +49 -0
- package/dist/{chunk-VT6VC4PA.js → chunk-I42JGQ2J.js} +26 -11
- package/dist/chunk-JM34JPCO.js +239 -0
- package/dist/chunk-NOO24N7W.js +11 -0
- package/dist/chunk-SF3KTPIC.js +98 -0
- package/dist/chunk-SRJIAOBN.js +244 -0
- package/dist/chunk-U6TKB3IV.js +171 -0
- package/dist/{chunk-TG64AQV4.js → chunk-VJFUB3H3.js} +99 -56
- package/dist/{client-IU2E5IOL.js → client-IN42F223.js} +4 -4
- package/dist/config-64G36TJL.js +130 -0
- package/dist/index.js +52 -25
- package/dist/{model-CC7U5XOJ.js → model-VZCYNIOG.js} +11 -10
- package/dist/{raw-TUHZQ4UB.js → raw-WJIWC6YP.js} +13 -7
- package/dist/{sync-EVEDS7YE.js → sync-NVASAISS.js} +146 -47
- package/dist/{te-agent-FLTDYV3L.js → te-agent-YV4DXEXK.js} +24 -23
- package/dist/{te-analysis-CMXADIJM.js → te-analysis-CB3DA5I5.js} +61 -13
- package/dist/{te-audience-LPZFFSXM.js → te-audience-W7SCQFC7.js} +7 -5
- package/dist/{te-common-BXQFKTB3.js → te-common-FBXVWBSI.js} +21 -9
- package/dist/{te-community-K5S3VOZY.js → te-community-LNVDZSGW.js} +6 -4
- package/dist/{te-dataops-567IMCQG.js → te-dataops-IPCSSWYH.js} +29 -27
- package/dist/{te-engage-TBUTGW5F.js → te-engage-KARARMIR.js} +6 -4
- package/dist/{te-kb-XHVBWP5E.js → te-kb-2Z2CARN3.js} +7 -5
- package/dist/{te-meta-NQ4U3VJW.js → te-meta-PDKLMWXN.js} +6 -4
- package/dist/{te-team-556APRIU.js → te-team-SW5B7DHO.js} +17 -12
- package/package.json +6 -2
- package/skills/ae-agent/SKILL.md +2 -1
- package/skills/ae-analysis/SKILL.md +1 -1
- package/skills/ae-analysis/references/list_clusters.md +4 -2
- package/skills/ae-analysis-global/SKILL.md +51 -0
- package/skills/ae-analysis-global/references/list_query_clusters.md +67 -0
- package/skills/ae-community/SKILL.md +2 -3
- package/skills/ae-dataops/SKILL.md +1 -2
- package/skills/ae-engage/SKILL.md +1 -0
- package/skills/ae-engage/references/add-approver.md +0 -1
- package/skills/ae-engage/references/add-channel.md +0 -1
- package/skills/ae-engage/references/approver-list.md +0 -1
- package/skills/ae-engage/references/cancel-query-by-request-id.md +0 -1
- package/skills/ae-engage/references/channel-detail.md +0 -1
- package/skills/ae-engage/references/channel-list.md +0 -1
- package/skills/ae-engage/references/config-channel-detail.md +0 -1
- package/skills/ae-engage/references/config-channel-list.md +0 -1
- package/skills/ae-engage/references/config-item-analysis-report.md +0 -1
- package/skills/ae-engage/references/config-item-detail.md +0 -1
- package/skills/ae-engage/references/config-item-list.md +0 -1
- package/skills/ae-engage/references/config-item-strategy-comparison.md +0 -1
- package/skills/ae-engage/references/config-item-trigger-report.md +0 -1
- package/skills/ae-engage/references/copy-config-template.md +0 -1
- package/skills/ae-engage/references/delete-channel.md +0 -1
- package/skills/ae-engage/references/delete-config-channel.md +0 -1
- package/skills/ae-engage/references/delete-config-item.md +0 -1
- package/skills/ae-engage/references/delete-flow.md +0 -1
- package/skills/ae-engage/references/flow-ab-split-node-report.md +0 -1
- package/skills/ae-engage/references/flow-detail.md +0 -1
- package/skills/ae-engage/references/flow-list.md +0 -1
- package/skills/ae-engage/references/flow-node-config-schema.md +0 -1
- package/skills/ae-engage/references/flow-node-detail-report.md +0 -1
- package/skills/ae-engage/references/flow-node-overview-report.md +0 -1
- package/skills/ae-engage/references/flow-process-report.md +0 -1
- package/skills/ae-engage/references/manage-flow.md +0 -1
- package/skills/ae-engage/references/manage-strategy.md +0 -1
- package/skills/ae-engage/references/manage-task.md +0 -1
- package/skills/ae-engage/references/modify-flow-base-info.md +0 -1
- package/skills/ae-engage/references/strategy-detail.md +0 -1
- package/skills/ae-engage/references/strategy-list.md +0 -1
- package/skills/ae-engage/references/task-data-detail.md +0 -1
- package/skills/ae-engage/references/task-data-overview.md +0 -1
- package/skills/ae-engage/references/task-detail.md +0 -1
- package/skills/ae-engage/references/task-experiment-report.md +0 -1
- package/skills/ae-engage/references/task-list.md +0 -1
- package/skills/ae-engage/references/task-metric-detail.md +0 -1
- package/skills/ae-engage/references/task-stats.md +0 -1
- package/skills/ae-engage/references/update-channel-status.md +0 -1
- package/skills/ae-engage/references/update-config-channel-status.md +0 -1
- package/skills/ae-engage/references/validate-flow-node-config.md +0 -1
- package/skills/ae-engage/references/whitelist-list.md +0 -1
- package/skills/ae-kb/SKILL.md +1 -0
- package/skills/ae-team/SKILL.md +1 -1
- package/dist/auth-W2JZ3DKA.js +0 -170
- package/dist/chunk-BI5ZVD6T.js +0 -186
- package/dist/chunk-MNHE6SSI.js +0 -79
- package/dist/chunk-MWWYGZ76.js +0 -130
- package/dist/chunk-SRRUNQIM.js +0 -312
- package/dist/config-WH3R3IRY.js +0 -258
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ae-analysis-global
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: "Overlay rules for AE/TE analysis global multi-cluster mode. Use only when ae-cli config cluster-mode status reports sw_cfg_enable_global_query=true. This skill supplements ae-analysis; it does not replace it."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ae-analysis-global
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
This is an overlay for `ae-analysis`. First use the normal `ae-analysis` rules and matching command references. Apply the rules below only when local multi-cluster mode is enabled (`ae-cli config cluster-mode status`):
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
ae-cli config cluster-mode status
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
The result must contain:
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{"sw_cfg_enable_global_query": true}
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
If the mode is not enabled, do not use this overlay.
|
|
23
|
+
|
|
24
|
+
For commands added only by this overlay, read this skill's matching reference file before composing commands. Example: `+list_query_clusters` -> `references/list_query_clusters.md`.
|
|
25
|
+
|
|
26
|
+
Every command accepts `--host <url>` to override the active AE host, and it may be placed after the subcommand (e.g. `ae-cli analysis +list_query_clusters --project_id <id> --host <url>`). Host selection is independent of `--cluster_query_scope`: `--host` chooses which AE instance to call, while `--cluster_query_scope` / `--slave_cluster_id` choose which cluster within global mode.
|
|
27
|
+
|
|
28
|
+
## Routing Rules
|
|
29
|
+
|
|
30
|
+
- In this overlay, **query cluster / service cluster / deployment cluster** means multi-cluster routing for analysis queries. **audience/user segment cluster** means audience membership assets under `analysis_audience`.
|
|
31
|
+
- If the user asks for cluster inventory or cluster info, call `ae-cli analysis +list_query_clusters --project_id <project_id>`. Localized examples include "集群信息" and "有哪些集群".
|
|
32
|
+
- Do not answer query-cluster inventory questions with `ae-cli analysis_audience +list_clusters` unless the user explicitly asks for audience clusters, cohorts, segments, user membership, or cluster definitions.
|
|
33
|
+
- If the user mentions country, region, server, shard, site, market, or deployment area semantics, call `ae-cli analysis +list_query_clusters --project_id <project_id>` before choosing query scope.
|
|
34
|
+
- Match slave cluster intent only against `slaveClusters[].clusterId`, `slaveClusters[].clusterName`, and `slaveClusters[].clusterDesc` returned by `+list_query_clusters`.
|
|
35
|
+
- If a matching accessible slave cluster exists, pass `--cluster_query_scope SLAVE --slave_cluster_id <clusterId>` to `+query_report_data`, `+query_dashboard_report_data`, or `+query_adhoc`.
|
|
36
|
+
- Use `--cluster_query_scope GLOBAL` only when the user clearly asks for global, all clusters, all servers, or cross-cluster aggregated data, and `permissions.canQueryGlobal=true`.
|
|
37
|
+
- If the user does not express global or slave-cluster intent, omit `--cluster_query_scope`.
|
|
38
|
+
- If requested global/slave scope is not allowed, explain `permissions.allowedClusterQueryParams` instead of guessing forbidden parameters.
|
|
39
|
+
- For `+query_adhoc --model_type sql`, never pass `--cluster_query_scope`; SQL model analysis only supports the current self cluster.
|
|
40
|
+
|
|
41
|
+
## Response Wording
|
|
42
|
+
|
|
43
|
+
- For `+list_query_clusters`, call the result "query clusters" and summarize `currentCluster`, `slaveClusters`, and `permissions.allowedClusterQueryParams`.
|
|
44
|
+
- For `analysis_audience +list_clusters`, call the result "audience clusters" or "user segments"; do not call those results query clusters.
|
|
45
|
+
|
|
46
|
+
## Commands Added By Multi-Cluster Mode
|
|
47
|
+
|
|
48
|
+
- `ae-cli analysis +list_query_clusters --project_id <project_id>`
|
|
49
|
+
- `ae-cli analysis +query_report_data ... --cluster_query_scope <GLOBAL|SLAVE> [--slave_cluster_id <id>]`
|
|
50
|
+
- `ae-cli analysis +query_dashboard_report_data ... --cluster_query_scope <GLOBAL|SLAVE> [--slave_cluster_id <id>]`
|
|
51
|
+
- `ae-cli analysis +query_adhoc ... --cluster_query_scope <GLOBAL|SLAVE> [--slave_cluster_id <id>]`
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
# analysis +list_query_clusters (Query Cluster Options)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Use this reference only after `ae-analysis-global` confirms local multi-cluster mode is enabled. This command is added by the global overlay, not by the base `ae-analysis` skill.
|
|
4
|
+
|
|
5
|
+
Domain: **Multi-Cluster Query Routing**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
|
|
9
|
+
- List the query cluster options accessible to the current account in the project.
|
|
10
|
+
- Answer user questions such as "cluster info", "available query clusters", or "current cluster". Localized examples include "集群信息" and "有哪些集群".
|
|
11
|
+
- Decide whether a later report/dashboard/ad-hoc query should use the current self cluster, global aggregated data, or one specific slave cluster.
|
|
12
|
+
- Resolve country, region, game server, service shard, site, market, or deployment area wording to an accessible slave cluster before passing `cluster_query_scope=SLAVE`.
|
|
13
|
+
|
|
14
|
+
This command is not for audience/user segment clusters. For cohort, audience, or segment assets, use `analysis_audience +list_clusters`.
|
|
15
|
+
|
|
16
|
+
## Commands
|
|
17
|
+
|
|
18
|
+
```bash
|
|
19
|
+
ae-cli analysis +list_query_clusters --project_id <project_id>
|
|
20
|
+
ae-cli analysis +list_query_clusters --dry-run
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Parameters
|
|
24
|
+
|
|
25
|
+
| Parameter | Required | Description |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| `--project_id` / `-p` | Yes | Project ID used to resolve the current account's cluster query permissions. |
|
|
28
|
+
|
|
29
|
+
## Output Shape
|
|
30
|
+
|
|
31
|
+
The result data follows the server DTO used by `list_query_clusters`:
|
|
32
|
+
|
|
33
|
+
| Field | Description |
|
|
34
|
+
|---|---|
|
|
35
|
+
| `globalQueryEnabled` | Whether global query is enabled by server config. |
|
|
36
|
+
| `currentCluster` | The current self query cluster. Fields: `clusterId`, `clusterName`, `clusterDesc`. |
|
|
37
|
+
| `slaveClusters` | Accessible slave query clusters for this account and project. Each item has `clusterId`, `clusterName`, `clusterDesc`. |
|
|
38
|
+
| `permissions` | Permission summary for choosing query scope. |
|
|
39
|
+
| `permissions.canQueryCurrent` | Whether the user can query the current self cluster. Usually true. |
|
|
40
|
+
| `permissions.canQueryGlobal` | Whether `cluster_query_scope=GLOBAL` is allowed. |
|
|
41
|
+
| `permissions.canQueryAllSlaveClusters` | Whether any enabled slave cluster may be queried. |
|
|
42
|
+
| `permissions.allowedSlaveClusterIds` | Slave cluster IDs this account may use. |
|
|
43
|
+
| `permissions.allowedClusterQueryParams` | Human-readable allowed query parameter combinations, e.g. `omit clusterQueryScope`, `clusterQueryScope=GLOBAL`, or `clusterQueryScope=SLAVE, slaveClusterId in [...]`. |
|
|
44
|
+
|
|
45
|
+
## Decision Rules
|
|
46
|
+
|
|
47
|
+
- For query-cluster inventory or cluster-info questions, call this command and answer with "query clusters", not "audience clusters".
|
|
48
|
+
- Default query behavior is to omit `cluster_query_scope`, which queries the current self cluster or follows the tool-specific default.
|
|
49
|
+
- Pass `--cluster_query_scope GLOBAL` only when the user clearly asks for global, all clusters, all servers, cross-cluster aggregation, or equivalent aggregate wording, and `permissions.canQueryGlobal=true`.
|
|
50
|
+
- Pass `--cluster_query_scope SLAVE --slave_cluster_id <clusterId>` only after this command confirms a requested country, region, server, site, market, or deployment maps to an accessible `slaveClusters[]` item.
|
|
51
|
+
- Match slave intent only against `slaveClusters[].clusterId`, `slaveClusters[].clusterName`, and `slaveClusters[].clusterDesc`.
|
|
52
|
+
- If the requested scope is not allowed, do not guess forbidden parameters. Explain `permissions.allowedClusterQueryParams`.
|
|
53
|
+
- For `+query_adhoc --model_type sql`, never pass `cluster_query_scope`; SQL model analysis only supports the current self cluster.
|
|
54
|
+
|
|
55
|
+
## Recommended Chains
|
|
56
|
+
|
|
57
|
+
- Cluster inventory / cluster info -> `analysis +list_query_clusters`
|
|
58
|
+
- Query DAU for Japan server -> `analysis +list_query_clusters` -> match JP/Japan slave cluster -> query report/dashboard/ad-hoc with `--cluster_query_scope SLAVE --slave_cluster_id <clusterId>`
|
|
59
|
+
- Query all-cluster aggregated DAU -> `analysis +list_query_clusters` -> if `permissions.canQueryGlobal=true`, query with `--cluster_query_scope GLOBAL`
|
|
60
|
+
- View audience cohorts or user segments -> `analysis_audience +list_clusters` instead
|
|
61
|
+
|
|
62
|
+
## Response Wording
|
|
63
|
+
|
|
64
|
+
- Use "current query cluster" for `currentCluster`.
|
|
65
|
+
- Use "accessible slave query clusters" for `slaveClusters`.
|
|
66
|
+
- Use "allowed query-scope parameters" for `permissions.allowedClusterQueryParams`.
|
|
67
|
+
- Do not call `analysis_audience +list_clusters` results query clusters; those are audience clusters or user segments.
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: ae-community
|
|
3
3
|
version: 2.0.0
|
|
4
|
-
description: "AE community analysis: post search, comment sentiment, topic trends, risky content, livestream data.
|
|
4
|
+
description: "AE community analysis: post search, comment sentiment, topic trends, risky content, livestream data."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
# ae-community
|
|
8
8
|
|
|
9
|
-
> **CRITICAL - This skill is self-contained.** Use the Global AE CLI Rules below; do not require a separate shared skill for community-side tasks.
|
|
10
|
-
|
|
11
9
|
The AE Community domain provides social data analysis: post/video search, comment analytics, sentiment and topics, risk monitoring, and livestream metrics. Commands run as **`ae-cli community +<subcommand>`** — every community subcommand uses the **`+` prefix**.
|
|
12
10
|
|
|
13
11
|
| Route (MCP) | CLI service | Responsibility |
|
|
@@ -28,6 +26,7 @@ Global parameters:
|
|
|
28
26
|
|---|---|
|
|
29
27
|
| `--format <json\|table>` | Output format. Default is JSON. |
|
|
30
28
|
| `--jq <expr>` | jq filter expression for JSON output. |
|
|
29
|
+
| `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli community +<command> --host <url>`. |
|
|
31
30
|
|
|
32
31
|
Output and errors:
|
|
33
32
|
- Successful commands return machine-readable JSON by default.
|
|
@@ -6,8 +6,6 @@ description: "AE Data Development and Operations: Data warehouse management, flo
|
|
|
6
6
|
|
|
7
7
|
# ae-dataops
|
|
8
8
|
|
|
9
|
-
> **CRITICAL - This skill is self-contained.** Use the Global AE CLI Rules below; do not require a separate shared skill for DataOps-side tasks.
|
|
10
|
-
|
|
11
9
|
The AE Data Development and Operations domain provides capabilities for data warehouse management, flow orchestration, IDE SQL queries, data integration, operations and backfill management, including the following subcommands:
|
|
12
10
|
|
|
13
11
|
| Subcommand | Responsibility | Corresponding Scenario Skill |
|
|
@@ -33,6 +31,7 @@ Global parameters:
|
|
|
33
31
|
|---|---|
|
|
34
32
|
| `--format <json\|table>` | Output format. Default is JSON. |
|
|
35
33
|
| `--jq <expr>` | jq filter expression for JSON output. |
|
|
34
|
+
| `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli dataops_ide +<command> --host <url>`. |
|
|
36
35
|
|
|
37
36
|
Output and errors:
|
|
38
37
|
- Successful commands return machine-readable JSON by default.
|
|
@@ -18,6 +18,7 @@ Global parameters:
|
|
|
18
18
|
|---|---|
|
|
19
19
|
| `--format <json\|table>` | Output format. Default is JSON. |
|
|
20
20
|
| `--jq <expr>` | jq filter expression for JSON output. |
|
|
21
|
+
| `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli engage +<command> --host <url>`. |
|
|
21
22
|
|
|
22
23
|
Output and errors:
|
|
23
24
|
- Successful commands return machine-readable JSON by default.
|
package/skills/ae-kb/SKILL.md
CHANGED
|
@@ -20,6 +20,7 @@ ae-cli kb +<command> [options]
|
|
|
20
20
|
- Do not invent knowledge base names, scopes, source display names, or JSON payloads. Ask the user or query known context when values are missing.
|
|
21
21
|
- JSON flags must be valid JSON strings, usually wrapped in single quotes in shell commands.
|
|
22
22
|
- Successful commands return JSON by default. Use `--format table` only when a table is easier for a human to scan.
|
|
23
|
+
- `--host <url>` overrides the active AE host. It is available on every command and may be placed after the subcommand, e.g. `ae-cli kb +<command> --host <url>`.
|
|
23
24
|
- For external-agent retrieval, prefer the deterministic flow `+index` -> `+grep` -> `+read`: inspect navigation, locate candidate pages, then open the exact page or line window.
|
|
24
25
|
|
|
25
26
|
## Commands
|
package/skills/ae-team/SKILL.md
CHANGED
|
@@ -20,7 +20,7 @@ Global parameters:
|
|
|
20
20
|
|---|---|
|
|
21
21
|
| `--format <json\|table>` | Output format. Default is JSON. |
|
|
22
22
|
| `--jq <expr>` | jq filter expression for JSON output. |
|
|
23
|
-
| `--host <url>` | Override active AE host
|
|
23
|
+
| `--host <url>` | Override the active AE host. Available on every command and may be placed after the subcommand, e.g. `ae-cli team +<command> --host <url>`. |
|
|
24
24
|
| `--yes` | Skip confirmation for write operations. |
|
|
25
25
|
| `--dry-run` | Show request details without executing. |
|
|
26
26
|
|