@thinkingai/ae-cli 6.1.7 → 6.1.9
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 +219 -150
- package/README.zh.md +227 -159
- package/dist/{auth-UPGUOKTW.js → auth-56Z45UVR.js} +1 -1
- package/dist/{capability-TQ5KU5Q6.js → capability-2H6PAOA3.js} +1 -1
- package/dist/{capability-AJC5CBRT.js → capability-YPOQX6PL.js} +1 -1
- package/dist/{chunk-4Q5TNP4Q.js → chunk-J7MZHDHQ.js} +48 -24
- package/dist/chunk-KTYR3U6D.js +1012 -0
- package/dist/{chunk-6CHYBI64.js → chunk-LHVM35J4.js} +1 -1
- package/dist/{chunk-ISY6HMHM.js → chunk-PVBYJWC2.js} +1 -1
- package/dist/{config-PMPISN5Y.js → config-BSSALXEN.js} +1 -1
- package/dist/index.js +79 -22
- package/dist/{metadata-P5GIVMZ6.js → metadata-AN3YFZEV.js} +2 -2
- package/dist/{metadata-ELUAR3EJ.js → metadata-JIQ77HFY.js} +2 -2
- package/dist/{model-OYQLXCQY.js → model-JASQVOFD.js} +1 -1
- package/dist/{raw-TPB7KSZO.js → raw-XJCAT3HX.js} +1 -1
- package/dist/{sync-EFJKFZK2.js → sync-QFP4XFN3.js} +2 -2
- package/dist/{te-agent-BOQ7ZY56.js → te-agent-JHUG6DVV.js} +28 -1
- package/dist/{te-analysis-HZIP6SYW.js → te-analysis-IWQZO423.js} +213 -129
- package/dist/{te-analysis-ZT2MYAHL.js → te-analysis-X222IRYR.js} +213 -129
- package/dist/{te-dataops-VYN3IOKO.js → te-dataops-PZQ5NQLY.js} +1 -1
- package/dist/{te-dataops-Y5QAPPPF.js → te-dataops-XTWVTJCA.js} +1 -1
- package/dist/{te-engage-2FSDUOIZ.js → te-engage-E7F4HTXU.js} +87 -4
- package/dist/{te-engage-BMJ6UOUU.js → te-engage-NLZUPSBK.js} +87 -4
- package/dist/{te-experiment-KYRWAUZY.js → te-experiment-D32TB6ZB.js} +2 -2
- package/dist/{te-experiment-4JC7WUKW.js → te-experiment-N63WF7XA.js} +2 -2
- package/dist/te-system-AH7DMCAQ.js +1706 -0
- package/dist/{te-team-PDKKW7Q5.js → te-team-BQ3SKSZV.js} +1 -1
- package/dist/update-DKG6UXEM.js +123 -0
- package/package.json +8 -3
- package/skills/ae-agent/SKILL.md +2 -2
- package/skills/ae-agent/references/create-automation.md +12 -0
- package/skills/ae-agent/references/update-automation.md +11 -3
- package/skills/ae-analysis/SKILL.md +1 -1
- package/skills/ae-analysis/references/alert_create.md +2 -3
- package/skills/ae-analysis/references/alert_update.md +2 -3
- package/skills/ae-analysis/references/analysis_gateway_assets.md +6 -4
- package/skills/ae-analysis/references/bi_panel_create.md +12 -4
- package/skills/ae-analysis/references/bi_panel_update.md +11 -8
- package/skills/ae-analysis/references/bi_panel_version_publish.md +3 -1
- package/skills/ae-analysis/references/command_index.md +10 -7
- package/skills/ae-analysis/references/dashboard_daily_report_get.md +18 -0
- package/skills/ae-analysis/references/dashboard_daily_report_send.md +12 -9
- package/skills/ae-analysis/references/dashboard_daily_report_send_status.md +22 -0
- package/skills/ae-analysis/references/dashboard_daily_report_update.md +13 -6
- package/skills/ae-analysis/references/drilldown_user_events_export.md +5 -0
- package/skills/ae-analysis/references/drilldown_user_events_run.md +6 -0
- package/skills/ae-analysis/references/super_metadata_batch_create.md +29 -0
- package/skills/ae-analysis/references/super_metadata_batch_edit.md +24 -0
- package/skills/ae-engage/SKILL.md +32 -5
- package/skills/ae-engage/references/activity-topic.md +34 -1
- package/skills/ae-engage/references/add-channel.md +2 -3
- package/skills/ae-engage/references/build-task-save-guide.md +17 -3
- package/skills/ae-engage/references/channel-detail.md +2 -3
- package/skills/ae-engage/references/channel-list.md +2 -5
- package/skills/ae-engage/references/channel-mgmt.md +17 -2
- package/skills/ae-engage/references/channel-test-send.md +1 -1
- package/skills/ae-engage/references/channel-update-config.md +1 -1
- package/skills/ae-engage/references/delete-channel.md +2 -3
- package/skills/ae-engage/references/save-flow.md +6 -3
- package/skills/ae-engage/references/save-task.md +12 -15
- package/skills/ae-engage/references/scene-config-channel.md +28 -4
- package/skills/ae-engage/references/scene-config-group.md +1 -1
- package/skills/ae-engage/references/scene-config-item.md +1 -1
- package/skills/ae-engage/references/scene-config-metric.md +1 -1
- package/skills/ae-engage/references/scene-config-param.md +1 -1
- package/skills/ae-engage/references/scene-preset-metric.md +1 -1
- package/skills/ae-engage/references/scene-strategy-audience.md +680 -0
- package/skills/ae-engage/references/scene-strategy.md +16 -1
- package/skills/ae-engage/references/scene-template.md +1 -1
- package/skills/ae-engage/references/update-channel-status.md +2 -3
- package/skills/ae-generate-tracking-code/SKILL.md +5 -5
- package/skills/ae-generate-tracking-code/references/autotrack-enum.md +4 -4
- package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
- package/skills/ae-generate-tracking-code/references/debug-script.md +2 -2
- package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
- package/skills/ae-generate-tracking-code/references/restful-call.md +1 -1
- package/skills/ae-generate-tracking-code/references/sdk-index.md +36 -36
- package/skills/ae-system/SKILL.md +357 -0
- package/dist/chunk-IMMGMU54.js +0 -674
- package/skills/ae-analysis/references/alert_definition_schema_get.md +0 -24
package/README.md
CHANGED
|
@@ -1,223 +1,292 @@
|
|
|
1
|
-
|
|
2
1
|
[中文版](./README.zh.md) | [English](./README.md)
|
|
3
2
|
|
|
4
3
|
# ae-cli
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
`ae-cli` is the command-line client for the ThinkingAI AgenticEngine (AE) platform. It provides stable, structured interfaces for both AI Agents and human operators across analytics, experimentation, metadata, tracking, Engage, DataOps, knowledge bases, Agent resources, and system administration.
|
|
6
|
+
|
|
7
|
+
The CLI is designed around:
|
|
8
|
+
|
|
9
|
+
- JSON-first output that Agents can inspect and act on.
|
|
10
|
+
- Host-scoped authentication and environment configuration.
|
|
11
|
+
- Curated commands for common workflows plus Capability Gateway access for long-tail operations.
|
|
12
|
+
- Explicit validation, dry-run, and confirmation contracts for safer writes.
|
|
13
|
+
- Exact CLI and Skills version synchronization with the connected AE environment.
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
- Node.js 20 or later.
|
|
18
|
+
- Access to the npm registry for CLI installation.
|
|
19
|
+
- Access to GitHub when installing Skills initially or when the local Skills fallback cannot be used.
|
|
7
20
|
|
|
8
21
|
## Installation
|
|
9
22
|
|
|
10
|
-
|
|
23
|
+
Install the public CLI and Agent Skills:
|
|
11
24
|
|
|
12
25
|
```bash
|
|
13
26
|
npm install -g @thinkingai/ae-cli
|
|
27
|
+
npx -y skills add ThinkingAIAgenticEngine/ae-cli -g -y
|
|
14
28
|
```
|
|
15
29
|
|
|
16
|
-
|
|
30
|
+
The Skills teach supported coding Agents, including Claude Code, Codex, Cursor, and similar tools, how to discover and call `ae-cli`.
|
|
31
|
+
|
|
32
|
+
Log in to an AE environment:
|
|
17
33
|
|
|
18
34
|
```bash
|
|
19
|
-
|
|
35
|
+
ae-cli auth login --host https://your-ae-host.example.com
|
|
36
|
+
ae-cli auth status
|
|
20
37
|
```
|
|
21
38
|
|
|
22
|
-
|
|
39
|
+
## Environment-Bound Updates
|
|
23
40
|
|
|
24
|
-
|
|
41
|
+
Each AE environment returns the exact `aeCliVersion` it expects. Use the unified update command to install that CLI version and its matching Skills:
|
|
25
42
|
|
|
26
43
|
```bash
|
|
27
|
-
|
|
28
|
-
|
|
44
|
+
ae-cli update
|
|
45
|
+
ae-cli update --dry-run
|
|
29
46
|
```
|
|
30
47
|
|
|
31
|
-
|
|
48
|
+
`ae-cli update` installs the exact version required by the active host rather than npm `latest`. It synchronizes Skills from the installed npm package first and uses the matching GitHub tag only as a fallback.
|
|
32
49
|
|
|
33
|
-
|
|
34
|
-
ae-cli auth login --host xxxxx
|
|
35
|
-
```
|
|
50
|
+
Starting with the `6.0.37` and `6.1.9` release lines, ordinary business commands can automatically upgrade or downgrade the CLI to the host-required version. After a successful synchronization, the old process exits with `AE_CLI_VERSION_SYNCED`; re-run the original command so it executes with the new CLI and Skills. Installation failures are reported without replacing the business command's JSON output.
|
|
36
51
|
|
|
37
|
-
|
|
52
|
+
Useful controls:
|
|
38
53
|
|
|
39
54
|
```bash
|
|
40
|
-
#
|
|
41
|
-
ae-cli
|
|
55
|
+
# Use another configured host
|
|
56
|
+
ae-cli update --host https://another-host.example.com
|
|
42
57
|
|
|
43
|
-
#
|
|
44
|
-
ae-cli
|
|
58
|
+
# Install an explicit version
|
|
59
|
+
ae-cli update --target 6.1.9
|
|
45
60
|
|
|
46
|
-
#
|
|
47
|
-
ae-cli
|
|
61
|
+
# Skip compatibility checks for one command
|
|
62
|
+
ae-cli --no-update-check capability list --domain analysis
|
|
63
|
+
```
|
|
48
64
|
|
|
49
|
-
|
|
50
|
-
ae-cli kb +new --scope company --name engineering-handbook --description "Team docs"
|
|
51
|
-
ae-cli kb +add --name engineering-handbook --files '["./docs/guide.md","https://example.com/page"]'
|
|
52
|
-
ae-cli kb +schema --name engineering-handbook
|
|
53
|
-
ae-cli kb +compile --name engineering-handbook
|
|
54
|
-
ae-cli kb +query -q "How to configure sandbox?" \
|
|
55
|
-
--sources '[{"scope":"company","name":"engineering-handbook"}]' \
|
|
56
|
-
--top-k 10
|
|
65
|
+
## Quick Start
|
|
57
66
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
ae-cli
|
|
61
|
-
|
|
62
|
-
ae-cli
|
|
63
|
-
|
|
67
|
+
```bash
|
|
68
|
+
# List and switch configured environments
|
|
69
|
+
ae-cli config list
|
|
70
|
+
ae-cli config current
|
|
71
|
+
ae-cli config use https://your-ae-host.example.com
|
|
72
|
+
|
|
73
|
+
# Discover capabilities exposed by the host
|
|
74
|
+
ae-cli capability list --domain analysis
|
|
75
|
+
ae-cli capability search "dashboard list" --domain analysis
|
|
76
|
+
ae-cli capability inspect analysis.dashboard.list
|
|
77
|
+
|
|
78
|
+
# Validate, preview, and execute
|
|
79
|
+
ae-cli capability validate analysis.dashboard.list --input '{"project_id":1}'
|
|
80
|
+
ae-cli capability dry-run analysis.dashboard.list --input '{"project_id":1}'
|
|
81
|
+
ae-cli capability run analysis.dashboard.list --input '{"project_id":1}'
|
|
82
|
+
|
|
83
|
+
# Filter structured output
|
|
84
|
+
ae-cli capability list --domain analysis --jq '.data.capabilities[] | .id'
|
|
64
85
|
```
|
|
65
86
|
|
|
66
|
-
##
|
|
67
|
-
|
|
68
|
-
|
|
87
|
+
## Command Surface
|
|
88
|
+
|
|
89
|
+
Run `ae-cli --help` or `ae-cli <command> --help` for the authoritative command list.
|
|
90
|
+
|
|
91
|
+
| Command or domain | Purpose |
|
|
92
|
+
|---|---|
|
|
93
|
+
| `analysis` | Reports, dashboards, ad-hoc analysis, drilldowns, details, alerts, and analysis schemas |
|
|
94
|
+
| `experiment` | Atlas experiments, reports, traffic layers, buckets, Features, metrics, and operation logs |
|
|
95
|
+
| `analysis-meta` | Event/property metadata, metrics, virtual metadata, tracking governance, and project configuration |
|
|
96
|
+
| `analysis-governance` | Asset search, lineage, impact analysis, and governance operations |
|
|
97
|
+
| `metadata` | Capability-backed data-table and property operations |
|
|
98
|
+
| `tracking` | Tracking-plan lifecycle, SDK samples, checks, ingestion diagnostics, code generation, and bundled wiki |
|
|
99
|
+
| `engage-flow`, `engage-task`, `engage-setting`, `engage-scene`, `engage-activity`, `engage-workbench` | Engage flows, tasks, settings, strategies, activities, and workbench operations |
|
|
100
|
+
| `community` | Community posts, comments, topics, sentiment, livestream, and report workflows |
|
|
101
|
+
| `dataops_repo`, `dataops_datatable`, `dataops_flow`, `dataops_ide`, `dataops_integration`, `dataops_operations` | Data warehouse, data-table, flow, IDE, integration, and operations workflows |
|
|
102
|
+
| `kb` | Knowledge-base lifecycle, LLM query, and deterministic index/grep/read retrieval |
|
|
103
|
+
| `agent` | Agents, automations, models, MCP servers, Skills, attachments, credentials, and sandbox tools |
|
|
104
|
+
| `system` | Root/admin operations for members, sandboxes, shared tools, models, usage, quotas, and IM channels |
|
|
105
|
+
| `team` | Agent Team lifecycle and TeamRun execution, chat, result, and artifact workflows |
|
|
106
|
+
| `capability` | Capability discovery, schema inspection, validation, dry-run, and generic execution |
|
|
107
|
+
| `auth`, `config` | Host-scoped authentication and multi-environment configuration |
|
|
108
|
+
| `api` | Raw authenticated HTTP requests for diagnostic or transitional use |
|
|
109
|
+
| `sync` | Push or pull local Skills and MCPs to/from the Agent application |
|
|
110
|
+
| `model` | Switch the current workspace model inside an Agent sandbox |
|
|
111
|
+
| `update` | Synchronize CLI and Skills to the version required by the current host |
|
|
112
|
+
|
|
113
|
+
`analysis_meta` remains available for legacy curated metadata commands. Prefer the hyphenated Capability Gateway domains for new integrations.
|
|
114
|
+
|
|
115
|
+
## Capability Gateway
|
|
116
|
+
|
|
117
|
+
Capability Gateway is the preferred entry point for operations that do not need a dedicated curated command:
|
|
69
118
|
|
|
70
119
|
```bash
|
|
71
|
-
|
|
72
|
-
ae-cli
|
|
120
|
+
ae-cli capability list --domain analysis --project-id 1
|
|
121
|
+
ae-cli capability search "report list" --domain analysis
|
|
122
|
+
ae-cli capability inspect analysis.report.list
|
|
123
|
+
ae-cli capability validate analysis.report.list --input input.json
|
|
124
|
+
ae-cli capability dry-run analysis.report.list --input input.json
|
|
125
|
+
ae-cli capability run analysis.report.list --input input.json
|
|
126
|
+
```
|
|
73
127
|
|
|
74
|
-
|
|
75
|
-
ae-cli auth status
|
|
128
|
+
`--input` accepts inline JSON, a JSON file path, `@<path>`, or `-` for stdin.
|
|
76
129
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
130
|
+
Use `validate` while fixing complex nested input. Use `dry-run` when you need the final risk, output mode, cancellation support, or delete confirmation preview. Do not stack `validate` and `dry-run` for the same final payload by default; `dry-run` already validates it.
|
|
131
|
+
|
|
132
|
+
Gateway-backed features follow the [Capability command admission rules](docs/capability-command-admission.md). Common workflows may have curated commands; long-tail capabilities remain dynamically discoverable.
|
|
133
|
+
|
|
134
|
+
## Authentication and Environments
|
|
135
|
+
|
|
136
|
+
Credentials are stored per host. Switching environments does not reuse a token from another host.
|
|
80
137
|
|
|
81
|
-
|
|
138
|
+
```bash
|
|
139
|
+
ae-cli auth login --host https://host-a.example.com
|
|
140
|
+
ae-cli auth status --host https://host-a.example.com
|
|
141
|
+
ae-cli auth logout --host https://host-a.example.com
|
|
142
|
+
|
|
143
|
+
ae-cli config list
|
|
144
|
+
ae-cli config current
|
|
145
|
+
ae-cli config set-host https://host-b.example.com --label staging
|
|
146
|
+
ae-cli config use staging
|
|
147
|
+
```
|
|
82
148
|
|
|
83
|
-
|
|
149
|
+
Login uses a cross-platform device-code flow. Use `--no-browser` when the environment cannot open a browser.
|
|
84
150
|
|
|
85
|
-
|
|
86
|
-
|--------|----------|-------------|
|
|
87
|
-
| `analysis` | 30+ | Analysis workflows: alerts, reports, dashboards, ad-hoc/drilldown, entity/event details, analysis schema |
|
|
88
|
-
| `analysis_meta` | 20+ | Metadata governance: events/properties, metrics, virtual metadata, project config, tracking plan, mark times, entity catalog |
|
|
89
|
-
| `engage` | 40+ | Hermes Engage MCP: channels, tasks, configs, flows, strategies |
|
|
90
|
-
| `dataops_repo` | 1 | DataOps repo utilities: space discovery |
|
|
91
|
-
| `dataops_datatable` | 5 | Data tables: table/view creation, publishing, details, data dictionary |
|
|
92
|
-
| `dataops_flow` | 15 | Task flows: flow creation, task nodes, scheduling, execution, release preview |
|
|
93
|
-
| `dataops_operations` | 4 | Operations: workflow instance search, instance detail, task logs, stop |
|
|
94
|
-
| `dataops_ide` | 9 | IDE queries: metadata browsing, SQL execution, query management |
|
|
95
|
-
| `dataops_integration` | 19 | Data integration: datasource management, sync solutions, data synchronization |
|
|
96
|
-
| `community` | 10+ | Community analysis: posts search, sentiment analysis, topic trends, livestream data |
|
|
97
|
-
| `analysis_common` | 2 | Cross-module common constraints: resource link completion, project ID gate |
|
|
98
|
-
| `team` | 14 | AI Agent Team: manage teams (list/create/update/delete/ai-generate/templates/projects) and execute TeamRuns (start/watch/chat/reply/cancel/result/artifacts) |
|
|
99
|
-
| `kb` | 11 | Knowledge base lifecycle: query / new / add (md/dir/url) / schema / compile / rm-source / remove; retrieval primitives: list / index / grep / read |
|
|
100
|
-
| `auth` / `config` | 2 | Authentication and host configuration |
|
|
151
|
+
## Output and Safety
|
|
101
152
|
|
|
102
|
-
|
|
153
|
+
Commands return a stable envelope:
|
|
103
154
|
|
|
104
|
-
|
|
155
|
+
```json
|
|
156
|
+
{
|
|
157
|
+
"ok": true,
|
|
158
|
+
"data": {},
|
|
159
|
+
"_notice": {}
|
|
160
|
+
}
|
|
161
|
+
```
|
|
105
162
|
|
|
106
|
-
-
|
|
107
|
-
-
|
|
108
|
-
-
|
|
109
|
-
-
|
|
110
|
-
-
|
|
111
|
-
-
|
|
112
|
-
-
|
|
113
|
-
- **Remove KB** (`+remove`): `--name`
|
|
163
|
+
- `--format json` is the default and is recommended for Agents.
|
|
164
|
+
- `--format table` is available for supported human-facing list commands.
|
|
165
|
+
- `--jq <expr>` applies jq 1.8 filtering to the business payload before the output envelope is printed.
|
|
166
|
+
- `--validate` normalizes Capability Gateway input without business execution.
|
|
167
|
+
- `--dry-run` previews an operation without executing its business logic.
|
|
168
|
+
- `--yes` skips interactive confirmation for explicitly marked high-risk writes.
|
|
169
|
+
- `_notice` may include host compatibility or update guidance without changing successful business data.
|
|
114
170
|
|
|
115
|
-
|
|
171
|
+
JSON flags generally accept inline JSON, `@file`, a file path, or `-` for stdin. Check command help for the exact accepted forms.
|
|
116
172
|
|
|
117
|
-
|
|
118
|
-
- **Index** (`+index`): optional `--sources` JSON refs (omit to list all accessible KBs), optional `--locale`. Returns each KB's metadata plus its `index.md` navigation map.
|
|
119
|
-
- **Grep** (`+grep`): `--query` / `-q`, optional `--sources`, `--top-k` (1-50, default 10), `--locale`. Returns matched lines with path, line number, breadcrumb and context snippet.
|
|
120
|
-
- **Read** (`+read`): `--source` JSON ref (exactly one KB), `--path` (page path relative to the KB root), optional `--offset` / `--limit` (line window), `--locale`. Returns the full page or a line window.
|
|
173
|
+
## Knowledge Bases
|
|
121
174
|
|
|
122
|
-
|
|
175
|
+
Manage the server-side knowledge-base lifecycle:
|
|
123
176
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
| `--no-update-check` | Skip checking for newer ae-cli versions | false |
|
|
177
|
+
```bash
|
|
178
|
+
ae-cli kb +new --scope company --name engineering-handbook --description "Team docs"
|
|
179
|
+
ae-cli kb +add --name engineering-handbook --files '["./docs/guide.md","https://example.com/page"]'
|
|
180
|
+
ae-cli kb +schema --name engineering-handbook
|
|
181
|
+
ae-cli kb +compile --name engineering-handbook
|
|
182
|
+
ae-cli kb +status --name engineering-handbook
|
|
183
|
+
ae-cli kb +query -q "How is the sandbox configured?" --top-k 10
|
|
184
|
+
```
|
|
133
185
|
|
|
134
|
-
|
|
186
|
+
External Agents can use deterministic retrieval without a server-side LLM:
|
|
135
187
|
|
|
136
|
-
|
|
188
|
+
```bash
|
|
189
|
+
ae-cli kb +list
|
|
190
|
+
ae-cli kb +index --sources '[{"scope":"company","name":"engineering-handbook"}]'
|
|
191
|
+
ae-cli kb +grep -q "sandbox config" --sources '[{"scope":"company","name":"engineering-handbook"}]'
|
|
192
|
+
ae-cli kb +read --source '{"scope":"company","name":"engineering-handbook"}' --path "wiki/sandbox.md"
|
|
193
|
+
```
|
|
137
194
|
|
|
138
|
-
|
|
139
|
-
|-------|-------------|
|
|
140
|
-
| `ae-analysis` | Unified analysis skill: analysis + audience + metadata + common constraints (project gate/resource links) |
|
|
141
|
-
| `ae-engage` | Hermes Engage MCP: channels, tasks, configs, flows, strategies |
|
|
142
|
-
| `ae-dataops` | Data warehouse management, task flows, IDE queries, integration, operations |
|
|
143
|
-
| `ae-community` | Community analysis: posts, comments, topics, livestreams |
|
|
195
|
+
## Agent and System Administration
|
|
144
196
|
|
|
145
|
-
|
|
197
|
+
The `agent` domain manages user-visible Agent resources:
|
|
146
198
|
|
|
147
199
|
```bash
|
|
148
|
-
|
|
200
|
+
ae-cli agent +list-agents
|
|
201
|
+
ae-cli agent +list-models
|
|
202
|
+
ae-cli agent +list-mcps
|
|
203
|
+
ae-cli agent +list-skills
|
|
204
|
+
ae-cli agent +list-automations
|
|
205
|
+
ae-cli agent +list-attachments
|
|
149
206
|
```
|
|
150
207
|
|
|
151
|
-
|
|
208
|
+
The `system` domain calls administrative `/api/admin/**` endpoints and requires a `root` or `agent_admin` role:
|
|
152
209
|
|
|
153
|
-
|
|
210
|
+
```bash
|
|
211
|
+
ae-cli system +list-members --status enabled
|
|
212
|
+
ae-cli system +list-sandboxes
|
|
213
|
+
ae-cli system +get-usage-summary --days 30
|
|
214
|
+
ae-cli system +list-quota-rules
|
|
215
|
+
ae-cli system +list-channels
|
|
216
|
+
```
|
|
154
217
|
|
|
155
|
-
|
|
156
|
-
- **Analysis**: alerts, reports, dashboards, ad-hoc/drilldown, entity/event details, analysis schema
|
|
157
|
-
- **Audience**: cluster and tag lifecycle management, plus definition schema tools
|
|
158
|
-
- **Metadata**: events/properties, metrics, virtual metadata, project config, tracking plans, mark times
|
|
159
|
-
- **Common**: mandatory project ID gate and post-write resource-link completion
|
|
218
|
+
Authorization is always enforced by the server. Do not retry or bypass a permission error.
|
|
160
219
|
|
|
161
|
-
|
|
220
|
+
## Agent Skills
|
|
162
221
|
|
|
163
|
-
|
|
164
|
-
- **Channels**: channel management, config channels, approval, whitelist
|
|
165
|
-
- **Tasks**: task list, details, data/metrics overview, experiment reports
|
|
166
|
-
- **Configs**: config items, strategies, comparison, trigger/analysis reports
|
|
167
|
-
- **Flows**: flow creation, node config, reports, validation
|
|
222
|
+
The npm package includes the same `skills/` directory used by the public repository:
|
|
168
223
|
|
|
169
|
-
|
|
224
|
+
| Skill | Scope |
|
|
225
|
+
|---|---|
|
|
226
|
+
| `ae-capability` | Capability discovery and generic invocation |
|
|
227
|
+
| `ae-analysis`, `ae-analysis-global` | Analysis, audience, metadata, governance, and multi-cluster workflows |
|
|
228
|
+
| `ae-experiment` | Atlas experiment, Feature, metric, traffic-layer, and report workflows |
|
|
229
|
+
| `ae-metadata` | Capability-backed metadata data-table operations |
|
|
230
|
+
| `ae-engage` | Engage operations and workflow guidance |
|
|
231
|
+
| `ae-dataops` | Data warehouse, flow, IDE, integration, and operations |
|
|
232
|
+
| `ae-community` | Community analysis and reporting |
|
|
233
|
+
| `ae-kb` | Knowledge-base lifecycle and retrieval |
|
|
234
|
+
| `ae-agent`, `ae-system`, `ae-team` | Agent resources, administration, and TeamRun workflows |
|
|
235
|
+
| `ae-generate-tracking-plan`, `ae-generate-tracking-code` | Tracking-plan and tracking-code generation |
|
|
236
|
+
| `ae-data-integration-helper` | SDK and LogBus2 integration guidance |
|
|
170
237
|
|
|
171
|
-
|
|
172
|
-
- **Repo Utilities**: space discovery
|
|
173
|
-
- **Data Tables**: table creation, views, batch operations, data dictionary
|
|
174
|
-
- **Task Flows**: flow creation, task nodes, scheduling, execution, monitoring
|
|
175
|
-
- **IDE Queries**: metadata browsing, SQL execution, query management
|
|
176
|
-
- **Data Integration**: datasource management, sync solutions, data synchronization
|
|
238
|
+
Reinstall all public Skills with:
|
|
177
239
|
|
|
178
|
-
|
|
240
|
+
```bash
|
|
241
|
+
npx -y skills add ThinkingAIAgenticEngine/ae-cli -g -y
|
|
242
|
+
```
|
|
179
243
|
|
|
180
|
-
|
|
181
|
-
- **Posts**: search, detail, corpus tags
|
|
182
|
-
- **Comments**: sentiment analysis, tag analysis, summary
|
|
183
|
-
- **Topics**: hot topics, trends, daily summaries
|
|
184
|
-
- **Livestreams**: rooms, sessions, analysis, metrics
|
|
185
|
-
- **Channel Info**: channel overview metrics
|
|
244
|
+
## Development
|
|
186
245
|
|
|
187
|
-
|
|
246
|
+
```bash
|
|
247
|
+
git clone https://github.com/ThinkingAIAgenticEngine/ae-cli.git
|
|
248
|
+
cd ae-cli
|
|
249
|
+
npm install
|
|
250
|
+
npm run build
|
|
251
|
+
node dist/index.js --help
|
|
252
|
+
```
|
|
188
253
|
|
|
189
|
-
|
|
190
|
-
- **TypeScript** (~8000 lines of code)
|
|
191
|
-
- **Commander.js** for CLI framework
|
|
192
|
-
- **WebSocket** for MCP server integration
|
|
193
|
-
- **Node.js** runtime (v20+)
|
|
254
|
+
Run from source during development:
|
|
194
255
|
|
|
195
|
-
|
|
256
|
+
```bash
|
|
257
|
+
npm run dev -- --help
|
|
196
258
|
```
|
|
259
|
+
|
|
260
|
+
Core structure:
|
|
261
|
+
|
|
262
|
+
```text
|
|
197
263
|
src/
|
|
198
|
-
├── core/ #
|
|
199
|
-
├── framework/ #
|
|
200
|
-
├── api/ #
|
|
201
|
-
└── commands/ #
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
├── te-community/
|
|
209
|
-
├── te-common/
|
|
210
|
-
└── te-kb/
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
## Verification Scripts
|
|
264
|
+
├── core/ # auth, config, clients, compatibility, version sync
|
|
265
|
+
├── framework/ # command registration, lifecycle, output, errors
|
|
266
|
+
├── api/ # raw authenticated API access
|
|
267
|
+
└── commands/ # business domains and CLI utilities
|
|
268
|
+
skills/ # Agent Skills shipped with the npm package
|
|
269
|
+
self-check/ # release and documentation consistency checks
|
|
270
|
+
test/, tests/ # command, contract, and regression tests
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
Useful verification commands:
|
|
214
274
|
|
|
215
275
|
```bash
|
|
216
|
-
npm run
|
|
217
|
-
npm run
|
|
218
|
-
npm run
|
|
276
|
+
npm run build
|
|
277
|
+
npm run qa-changed
|
|
278
|
+
npm run self-check
|
|
279
|
+
npm run check:release
|
|
280
|
+
npm run verify:experiment-tools
|
|
281
|
+
npm run verify:update-check
|
|
282
|
+
npm run verify:version-sync
|
|
219
283
|
```
|
|
220
284
|
|
|
285
|
+
## Changelog
|
|
286
|
+
|
|
287
|
+
- [English changelog](./CHANGELOG.md)
|
|
288
|
+
- [中文更新日志](./CHANGELOG.zh-CN.md)
|
|
289
|
+
|
|
221
290
|
## License
|
|
222
291
|
|
|
223
292
|
MIT
|