@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.
Files changed (80) hide show
  1. package/README.md +219 -150
  2. package/README.zh.md +227 -159
  3. package/dist/{auth-UPGUOKTW.js → auth-56Z45UVR.js} +1 -1
  4. package/dist/{capability-TQ5KU5Q6.js → capability-2H6PAOA3.js} +1 -1
  5. package/dist/{capability-AJC5CBRT.js → capability-YPOQX6PL.js} +1 -1
  6. package/dist/{chunk-4Q5TNP4Q.js → chunk-J7MZHDHQ.js} +48 -24
  7. package/dist/chunk-KTYR3U6D.js +1012 -0
  8. package/dist/{chunk-6CHYBI64.js → chunk-LHVM35J4.js} +1 -1
  9. package/dist/{chunk-ISY6HMHM.js → chunk-PVBYJWC2.js} +1 -1
  10. package/dist/{config-PMPISN5Y.js → config-BSSALXEN.js} +1 -1
  11. package/dist/index.js +79 -22
  12. package/dist/{metadata-P5GIVMZ6.js → metadata-AN3YFZEV.js} +2 -2
  13. package/dist/{metadata-ELUAR3EJ.js → metadata-JIQ77HFY.js} +2 -2
  14. package/dist/{model-OYQLXCQY.js → model-JASQVOFD.js} +1 -1
  15. package/dist/{raw-TPB7KSZO.js → raw-XJCAT3HX.js} +1 -1
  16. package/dist/{sync-EFJKFZK2.js → sync-QFP4XFN3.js} +2 -2
  17. package/dist/{te-agent-BOQ7ZY56.js → te-agent-JHUG6DVV.js} +28 -1
  18. package/dist/{te-analysis-HZIP6SYW.js → te-analysis-IWQZO423.js} +213 -129
  19. package/dist/{te-analysis-ZT2MYAHL.js → te-analysis-X222IRYR.js} +213 -129
  20. package/dist/{te-dataops-VYN3IOKO.js → te-dataops-PZQ5NQLY.js} +1 -1
  21. package/dist/{te-dataops-Y5QAPPPF.js → te-dataops-XTWVTJCA.js} +1 -1
  22. package/dist/{te-engage-2FSDUOIZ.js → te-engage-E7F4HTXU.js} +87 -4
  23. package/dist/{te-engage-BMJ6UOUU.js → te-engage-NLZUPSBK.js} +87 -4
  24. package/dist/{te-experiment-KYRWAUZY.js → te-experiment-D32TB6ZB.js} +2 -2
  25. package/dist/{te-experiment-4JC7WUKW.js → te-experiment-N63WF7XA.js} +2 -2
  26. package/dist/te-system-AH7DMCAQ.js +1706 -0
  27. package/dist/{te-team-PDKKW7Q5.js → te-team-BQ3SKSZV.js} +1 -1
  28. package/dist/update-DKG6UXEM.js +123 -0
  29. package/package.json +8 -3
  30. package/skills/ae-agent/SKILL.md +2 -2
  31. package/skills/ae-agent/references/create-automation.md +12 -0
  32. package/skills/ae-agent/references/update-automation.md +11 -3
  33. package/skills/ae-analysis/SKILL.md +1 -1
  34. package/skills/ae-analysis/references/alert_create.md +2 -3
  35. package/skills/ae-analysis/references/alert_update.md +2 -3
  36. package/skills/ae-analysis/references/analysis_gateway_assets.md +6 -4
  37. package/skills/ae-analysis/references/bi_panel_create.md +12 -4
  38. package/skills/ae-analysis/references/bi_panel_update.md +11 -8
  39. package/skills/ae-analysis/references/bi_panel_version_publish.md +3 -1
  40. package/skills/ae-analysis/references/command_index.md +10 -7
  41. package/skills/ae-analysis/references/dashboard_daily_report_get.md +18 -0
  42. package/skills/ae-analysis/references/dashboard_daily_report_send.md +12 -9
  43. package/skills/ae-analysis/references/dashboard_daily_report_send_status.md +22 -0
  44. package/skills/ae-analysis/references/dashboard_daily_report_update.md +13 -6
  45. package/skills/ae-analysis/references/drilldown_user_events_export.md +5 -0
  46. package/skills/ae-analysis/references/drilldown_user_events_run.md +6 -0
  47. package/skills/ae-analysis/references/super_metadata_batch_create.md +29 -0
  48. package/skills/ae-analysis/references/super_metadata_batch_edit.md +24 -0
  49. package/skills/ae-engage/SKILL.md +32 -5
  50. package/skills/ae-engage/references/activity-topic.md +34 -1
  51. package/skills/ae-engage/references/add-channel.md +2 -3
  52. package/skills/ae-engage/references/build-task-save-guide.md +17 -3
  53. package/skills/ae-engage/references/channel-detail.md +2 -3
  54. package/skills/ae-engage/references/channel-list.md +2 -5
  55. package/skills/ae-engage/references/channel-mgmt.md +17 -2
  56. package/skills/ae-engage/references/channel-test-send.md +1 -1
  57. package/skills/ae-engage/references/channel-update-config.md +1 -1
  58. package/skills/ae-engage/references/delete-channel.md +2 -3
  59. package/skills/ae-engage/references/save-flow.md +6 -3
  60. package/skills/ae-engage/references/save-task.md +12 -15
  61. package/skills/ae-engage/references/scene-config-channel.md +28 -4
  62. package/skills/ae-engage/references/scene-config-group.md +1 -1
  63. package/skills/ae-engage/references/scene-config-item.md +1 -1
  64. package/skills/ae-engage/references/scene-config-metric.md +1 -1
  65. package/skills/ae-engage/references/scene-config-param.md +1 -1
  66. package/skills/ae-engage/references/scene-preset-metric.md +1 -1
  67. package/skills/ae-engage/references/scene-strategy-audience.md +680 -0
  68. package/skills/ae-engage/references/scene-strategy.md +16 -1
  69. package/skills/ae-engage/references/scene-template.md +1 -1
  70. package/skills/ae-engage/references/update-channel-status.md +2 -3
  71. package/skills/ae-generate-tracking-code/SKILL.md +5 -5
  72. package/skills/ae-generate-tracking-code/references/autotrack-enum.md +4 -4
  73. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  74. package/skills/ae-generate-tracking-code/references/debug-script.md +2 -2
  75. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  76. package/skills/ae-generate-tracking-code/references/restful-call.md +1 -1
  77. package/skills/ae-generate-tracking-code/references/sdk-index.md +36 -36
  78. package/skills/ae-system/SKILL.md +357 -0
  79. package/dist/chunk-IMMGMU54.js +0 -674
  80. 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
- CLI tool for ThinkingAI AgenticEngine (AE) platform. Designed for both AI Agent and human use.
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
- **Step 1: Install ae-cli**
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
- **Step 2: Install AI Agent Skills**
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
- npx skills add ThinkingAIAgenticEngine/ae-cli -g -y
35
+ ae-cli auth login --host https://your-ae-host.example.com
36
+ ae-cli auth status
20
37
  ```
21
38
 
22
- This installs 4 skill packages into your AI coding agent (Claude Code, Trae, Cursor, etc.), enabling the agent to understand and call ae-cli commands.
39
+ ## Environment-Bound Updates
23
40
 
24
- To update:
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
- npm cache clean --force && npm install -g @thinkingai/ae-cli
28
- npx skills add ThinkingAIAgenticEngine/ae-cli -g -y
44
+ ae-cli update
45
+ ae-cli update --dry-run
29
46
  ```
30
47
 
31
- ## Quick Start
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
- ```bash
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
- ## Usage
52
+ Useful controls:
38
53
 
39
54
  ```bash
40
- # AE meta domain (metadata and governance)
41
- ae-cli analysis_meta +list_events --project_id 1
55
+ # Use another configured host
56
+ ae-cli update --host https://another-host.example.com
42
57
 
43
- # Table output
44
- ae-cli analysis_meta +list_events --project_id 1 --format table
58
+ # Install an explicit version
59
+ ae-cli update --target 6.1.9
45
60
 
46
- # Raw API call
47
- ae-cli api GET /v1/ta/event/catalog/listEvent --params '{"projectId": 1}'
61
+ # Skip compatibility checks for one command
62
+ ae-cli --no-update-check capability list --domain analysis
63
+ ```
48
64
 
49
- # Knowledge base (create → upload → compile → query)
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
- # Retrieval primitives for external agents (read index → grep → read page)
59
- ae-cli kb +index --sources '[{"scope":"company","name":"engineering-handbook"}]'
60
- ae-cli kb +grep -q "sandbox config" \
61
- --sources '[{"scope":"company","name":"engineering-handbook"}]'
62
- ae-cli kb +read --source '{"scope":"company","name":"engineering-handbook"}' \
63
- --path "wiki/sandbox.md"
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
- ## Authentication
67
-
68
- Authentication is handled per-host. Each AE host URL maintains its own token.
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
- # Device code login (cross-platform)
72
- ae-cli auth login
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
- # Check status
75
- ae-cli auth status
128
+ `--input` accepts inline JSON, a JSON file path, `@<path>`, or `-` for stdin.
76
129
 
77
- # Logout
78
- ae-cli auth logout
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
- ## Commands
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
- ### Domains
149
+ Login uses a cross-platform device-code flow. Use `--no-browser` when the environment cannot open a browser.
84
150
 
85
- | Domain | Commands | Description |
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
- ### kb
153
+ Commands return a stable envelope:
103
154
 
104
- Knowledge base lifecycle (`+new` → `+add` → `+schema` → `+compile` → `+status` → `+query`):
155
+ ```json
156
+ {
157
+ "ok": true,
158
+ "data": {},
159
+ "_notice": {}
160
+ }
161
+ ```
105
162
 
106
- - **Create** (`+new`): `--scope personal|company`, `--name`, optional `--description`, `--tags`, `--project-id`, `--project-name`
107
- - **Upload** (`+add`): `--name`, `--files` JSON array (`.md` file, directory non-recursive scan, or http(s) URL with HTML-to-Markdown conversion)
108
- - **Schema** (`+schema`): `--name`, optional `--force`, `--model`
109
- - **Compile** (`+compile`): `--name`, `--mode incremental|full` (default: incremental)
110
- - **Status** (`+status`): `--name`
111
- - **Query** (`+query`): `--query` / `-q`, optional `--sources` JSON refs (omit to search all accessible KBs), `--top-k` (1-50, default 10), `--locale`
112
- - **Remove source** (`+rm-source`): `--name`, `--display-name`
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
- Retrieval primitives for external agents (`+list` `+index` → `+grep` → `+read`); these are deterministic file-search endpoints with no server-side LLM, designed for agents (Claude Code / Codex / Cursor) to explore a KB the way they explore a codebase:
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
- - **List** (`+list`): optional `--build-status` (default `compiled`), optional `--locale`. Returns accessible knowledge base metadata including `buildStatus`, without `index.md` navigation maps.
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
- ### Global Options
175
+ Manage the server-side knowledge-base lifecycle:
123
176
 
124
- | Option | Description | Default |
125
- |--------|-------------|---------|
126
- | `--host <url>` | Override active AE host URL | from config |
127
- | `--format <json\|table>` | Output format | json |
128
- | `--jq <expr>` | jq 1.8 expression (jq-wasm) over command payload before output envelope | - |
129
- | `--validate` | Fix params: capability gateway `/validate` only (curated gateway commands). Do not combine with `--dry-run` | false |
130
- | `--dry-run` | Confirm ready to run: capability gateway `/dry-run` (or local transport preview). Do not combine with `--validate` | false |
131
- | `--yes` | Skip high-risk write confirmation | false |
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
- ## Skills
186
+ External Agents can use deterministic retrieval without a server-side LLM:
135
187
 
136
- 5 AI Agent skill packages are included in the `skills/` directory:
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
- | Skill | Description |
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
- Install them with:
197
+ The `agent` domain manages user-visible Agent resources:
146
198
 
147
199
  ```bash
148
- npx skills add ThinkingAIAgenticEngine/ae-cli -g -y
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
- ## Skill Details
208
+ The `system` domain calls administrative `/api/admin/**` endpoints and requires a `root` or `agent_admin` role:
152
209
 
153
- ### ae-analysis
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
- Unified AE analysis capabilities:
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
- ### engage
220
+ ## Agent Skills
162
221
 
163
- Hermes Engage MCP capabilities:
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
- ### ae-dataops
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
- Data warehouse management:
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
- ### ae-community
240
+ ```bash
241
+ npx -y skills add ThinkingAIAgenticEngine/ae-cli -g -y
242
+ ```
179
243
 
180
- Community social media analysis:
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
- ## Architecture
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
- ae-cli is built with:
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
- The project structure:
256
+ ```bash
257
+ npm run dev -- --help
196
258
  ```
259
+
260
+ Core structure:
261
+
262
+ ```text
197
263
  src/
198
- ├── core/ # Core modules: auth, config, client, mcp
199
- ├── framework/ # Framework: types, register, runner, output
200
- ├── api/ # Raw API access
201
- └── commands/ # Domain-specific commands
202
- ├── auth.ts
203
- ├── config.ts
204
- ├── te-analysis/
205
- ├── te-meta/
206
- ├── te-engage/
207
- ├── te-dataops/
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 verify:analysis-tools
217
- npm run verify:analysis-meta-tools
218
- npm run verify:analysis-common-tools
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