@thinkingai/ae-cli 6.0.36 → 6.0.37

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 (34) hide show
  1. package/README.md +216 -150
  2. package/README.zh.md +224 -159
  3. package/dist/{auth-B2BRSYMS.js → auth-56Z45UVR.js} +1 -1
  4. package/dist/{capability-6KPXYNO7.js → capability-2H6PAOA3.js} +1 -1
  5. package/dist/{capability-ROKYESAP.js → capability-YPOQX6PL.js} +1 -1
  6. package/dist/{chunk-JTKMDN4A.js → chunk-KTYR3U6D.js} +471 -31
  7. package/dist/{chunk-EBPXT3TN.js → chunk-LHVM35J4.js} +1 -1
  8. package/dist/{chunk-RRFK2W7I.js → chunk-PVBYJWC2.js} +1 -1
  9. package/dist/{config-DDYJPJX3.js → config-BSSALXEN.js} +1 -1
  10. package/dist/index.js +44 -14
  11. package/dist/{metadata-2ZFRMVOL.js → metadata-AN3YFZEV.js} +2 -2
  12. package/dist/{metadata-ABQCKU5P.js → metadata-JIQ77HFY.js} +2 -2
  13. package/dist/{raw-6HXFFHLV.js → raw-XJCAT3HX.js} +1 -1
  14. package/dist/{sync-BF3IWYFC.js → sync-QFP4XFN3.js} +1 -1
  15. package/dist/{te-agent-3GJ5H2XF.js → te-agent-JHUG6DVV.js} +27 -0
  16. package/dist/{te-analysis-PCGESPLW.js → te-analysis-IWQZO423.js} +2 -2
  17. package/dist/{te-analysis-DJ6KELTU.js → te-analysis-X222IRYR.js} +2 -2
  18. package/dist/{te-dataops-ROHUJOX5.js → te-dataops-PZQ5NQLY.js} +1 -1
  19. package/dist/{te-dataops-LXL5YULV.js → te-dataops-XTWVTJCA.js} +1 -1
  20. package/dist/{te-engage-2YDCA552.js → te-engage-E7F4HTXU.js} +2 -2
  21. package/dist/{te-engage-VW6NJZ5V.js → te-engage-NLZUPSBK.js} +2 -2
  22. package/dist/{te-team-RRZI4WRI.js → te-team-BQ3SKSZV.js} +1 -1
  23. package/dist/{update-ER7VFU55.js → update-DKG6UXEM.js} +44 -22
  24. package/package.json +4 -3
  25. package/skills/ae-agent/SKILL.md +2 -2
  26. package/skills/ae-agent/references/create-automation.md +11 -0
  27. package/skills/ae-agent/references/update-automation.md +11 -3
  28. package/skills/ae-generate-tracking-code/SKILL.md +5 -5
  29. package/skills/ae-generate-tracking-code/references/autotrack-enum.md +4 -4
  30. package/skills/ae-generate-tracking-code/references/client-sdk-insert.md +1 -1
  31. package/skills/ae-generate-tracking-code/references/debug-script.md +2 -2
  32. package/skills/ae-generate-tracking-code/references/logbus-config.md +1 -1
  33. package/skills/ae-generate-tracking-code/references/restful-call.md +1 -1
  34. package/skills/ae-generate-tracking-code/references/sdk-index.md +36 -36
package/README.md CHANGED
@@ -1,223 +1,289 @@
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, 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
+ | `analysis-meta` | Event/property metadata, metrics, virtual metadata, tracking governance, and project configuration |
95
+ | `analysis-governance` | Asset search, lineage, impact analysis, and governance operations |
96
+ | `metadata` | Capability-backed data-table and property operations |
97
+ | `tracking` | Tracking-plan lifecycle, SDK samples, checks, ingestion diagnostics, code generation, and bundled wiki |
98
+ | `engage-flow`, `engage-task`, `engage-setting`, `engage-scene`, `engage-activity`, `engage-workbench` | Engage flows, tasks, settings, strategies, activities, and workbench operations |
99
+ | `community` | Community posts, comments, topics, sentiment, livestream, and report workflows |
100
+ | `dataops_repo`, `dataops_datatable`, `dataops_flow`, `dataops_ide`, `dataops_integration`, `dataops_operations` | Data warehouse, data-table, flow, IDE, integration, and operations workflows |
101
+ | `kb` | Knowledge-base lifecycle, LLM query, and deterministic index/grep/read retrieval |
102
+ | `agent` | Agents, automations, models, MCP servers, Skills, attachments, credentials, and sandbox tools |
103
+ | `system` | Root/admin operations for members, sandboxes, shared tools, models, usage, quotas, and IM channels |
104
+ | `team` | Agent Team lifecycle and TeamRun execution, chat, result, and artifact workflows |
105
+ | `capability` | Capability discovery, schema inspection, validation, dry-run, and generic execution |
106
+ | `auth`, `config` | Host-scoped authentication and multi-environment configuration |
107
+ | `api` | Raw authenticated HTTP requests for diagnostic or transitional use |
108
+ | `sync` | Push or pull local Skills and MCPs to/from the Agent application |
109
+ | `model` | Switch the current workspace model inside an Agent sandbox |
110
+ | `update` | Synchronize CLI and Skills to the version required by the current host |
111
+
112
+ `analysis_meta` remains available for legacy curated metadata commands. Prefer the hyphenated Capability Gateway domains for new integrations.
113
+
114
+ ## Capability Gateway
115
+
116
+ Capability Gateway is the preferred entry point for operations that do not need a dedicated curated command:
69
117
 
70
118
  ```bash
71
- # Device code login (cross-platform)
72
- ae-cli auth login
119
+ ae-cli capability list --domain analysis --project-id 1
120
+ ae-cli capability search "report list" --domain analysis
121
+ ae-cli capability inspect analysis.report.list
122
+ ae-cli capability validate analysis.report.list --input input.json
123
+ ae-cli capability dry-run analysis.report.list --input input.json
124
+ ae-cli capability run analysis.report.list --input input.json
125
+ ```
73
126
 
74
- # Check status
75
- ae-cli auth status
127
+ `--input` accepts inline JSON, a JSON file path, `@<path>`, or `-` for stdin.
76
128
 
77
- # Logout
78
- ae-cli auth logout
79
- ```
129
+ 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.
130
+
131
+ 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.
132
+
133
+ ## Authentication and Environments
134
+
135
+ Credentials are stored per host. Switching environments does not reuse a token from another host.
80
136
 
81
- ## Commands
137
+ ```bash
138
+ ae-cli auth login --host https://host-a.example.com
139
+ ae-cli auth status --host https://host-a.example.com
140
+ ae-cli auth logout --host https://host-a.example.com
141
+
142
+ ae-cli config list
143
+ ae-cli config current
144
+ ae-cli config set-host https://host-b.example.com --label staging
145
+ ae-cli config use staging
146
+ ```
82
147
 
83
- ### Domains
148
+ Login uses a cross-platform device-code flow. Use `--no-browser` when the environment cannot open a browser.
84
149
 
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 |
150
+ ## Output and Safety
101
151
 
102
- ### kb
152
+ Commands return a stable envelope:
103
153
 
104
- Knowledge base lifecycle (`+new` → `+add` → `+schema` → `+compile` → `+status` → `+query`):
154
+ ```json
155
+ {
156
+ "ok": true,
157
+ "data": {},
158
+ "_notice": {}
159
+ }
160
+ ```
105
161
 
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`
162
+ - `--format json` is the default and is recommended for Agents.
163
+ - `--format table` is available for supported human-facing list commands.
164
+ - `--jq <expr>` applies jq 1.8 filtering to the business payload before the output envelope is printed.
165
+ - `--validate` normalizes Capability Gateway input without business execution.
166
+ - `--dry-run` previews an operation without executing its business logic.
167
+ - `--yes` skips interactive confirmation for explicitly marked high-risk writes.
168
+ - `_notice` may include host compatibility or update guidance without changing successful business data.
114
169
 
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:
170
+ JSON flags generally accept inline JSON, `@file`, a file path, or `-` for stdin. Check command help for the exact accepted forms.
116
171
 
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.
172
+ ## Knowledge Bases
121
173
 
122
- ### Global Options
174
+ Manage the server-side knowledge-base lifecycle:
123
175
 
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 |
176
+ ```bash
177
+ ae-cli kb +new --scope company --name engineering-handbook --description "Team docs"
178
+ ae-cli kb +add --name engineering-handbook --files '["./docs/guide.md","https://example.com/page"]'
179
+ ae-cli kb +schema --name engineering-handbook
180
+ ae-cli kb +compile --name engineering-handbook
181
+ ae-cli kb +status --name engineering-handbook
182
+ ae-cli kb +query -q "How is the sandbox configured?" --top-k 10
183
+ ```
133
184
 
134
- ## Skills
185
+ External Agents can use deterministic retrieval without a server-side LLM:
135
186
 
136
- 5 AI Agent skill packages are included in the `skills/` directory:
187
+ ```bash
188
+ ae-cli kb +list
189
+ ae-cli kb +index --sources '[{"scope":"company","name":"engineering-handbook"}]'
190
+ ae-cli kb +grep -q "sandbox config" --sources '[{"scope":"company","name":"engineering-handbook"}]'
191
+ ae-cli kb +read --source '{"scope":"company","name":"engineering-handbook"}' --path "wiki/sandbox.md"
192
+ ```
137
193
 
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 |
194
+ ## Agent and System Administration
144
195
 
145
- Install them with:
196
+ The `agent` domain manages user-visible Agent resources:
146
197
 
147
198
  ```bash
148
- npx skills add ThinkingAIAgenticEngine/ae-cli -g -y
199
+ ae-cli agent +list-agents
200
+ ae-cli agent +list-models
201
+ ae-cli agent +list-mcps
202
+ ae-cli agent +list-skills
203
+ ae-cli agent +list-automations
204
+ ae-cli agent +list-attachments
149
205
  ```
150
206
 
151
- ## Skill Details
207
+ The `system` domain calls administrative `/api/admin/**` endpoints and requires a `root` or `agent_admin` role:
152
208
 
153
- ### ae-analysis
209
+ ```bash
210
+ ae-cli system +list-members --status enabled
211
+ ae-cli system +list-sandboxes
212
+ ae-cli system +get-usage-summary --days 30
213
+ ae-cli system +list-quota-rules
214
+ ae-cli system +list-channels
215
+ ```
154
216
 
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
217
+ Authorization is always enforced by the server. Do not retry or bypass a permission error.
160
218
 
161
- ### engage
219
+ ## Agent Skills
162
220
 
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
221
+ The npm package includes the same `skills/` directory used by the public repository:
168
222
 
169
- ### ae-dataops
223
+ | Skill | Scope |
224
+ |---|---|
225
+ | `ae-capability` | Capability discovery and generic invocation |
226
+ | `ae-analysis`, `ae-analysis-global` | Analysis, audience, metadata, governance, and multi-cluster workflows |
227
+ | `ae-metadata` | Capability-backed metadata data-table operations |
228
+ | `ae-engage` | Engage operations and workflow guidance |
229
+ | `ae-dataops` | Data warehouse, flow, IDE, integration, and operations |
230
+ | `ae-community` | Community analysis and reporting |
231
+ | `ae-kb` | Knowledge-base lifecycle and retrieval |
232
+ | `ae-agent`, `ae-system`, `ae-team` | Agent resources, administration, and TeamRun workflows |
233
+ | `ae-generate-tracking-plan`, `ae-generate-tracking-code` | Tracking-plan and tracking-code generation |
234
+ | `ae-data-integration-helper` | SDK and LogBus2 integration guidance |
170
235
 
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
236
+ Reinstall all public Skills with:
177
237
 
178
- ### ae-community
238
+ ```bash
239
+ npx -y skills add ThinkingAIAgenticEngine/ae-cli -g -y
240
+ ```
179
241
 
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
242
+ ## Development
186
243
 
187
- ## Architecture
244
+ ```bash
245
+ git clone https://github.com/ThinkingAIAgenticEngine/ae-cli.git
246
+ cd ae-cli
247
+ npm install
248
+ npm run build
249
+ node dist/index.js --help
250
+ ```
188
251
 
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+)
252
+ Run from source during development:
194
253
 
195
- The project structure:
254
+ ```bash
255
+ npm run dev -- --help
196
256
  ```
257
+
258
+ Core structure:
259
+
260
+ ```text
197
261
  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
262
+ ├── core/ # auth, config, clients, compatibility, version sync
263
+ ├── framework/ # command registration, lifecycle, output, errors
264
+ ├── api/ # raw authenticated API access
265
+ └── commands/ # business domains and CLI utilities
266
+ skills/ # Agent Skills shipped with the npm package
267
+ self-check/ # release and documentation consistency checks
268
+ test/, tests/ # command, contract, and regression tests
269
+ ```
270
+
271
+ Useful verification commands:
214
272
 
215
273
  ```bash
216
- npm run verify:analysis-tools
217
- npm run verify:analysis-meta-tools
218
- npm run verify:analysis-common-tools
274
+ npm run build
275
+ npm run qa-changed
276
+ npm run self-check
277
+ npm run check:release
278
+ npm run verify:update-check
279
+ npm run verify:version-sync
219
280
  ```
220
281
 
282
+ ## Changelog
283
+
284
+ - [English changelog](./CHANGELOG.md)
285
+ - [中文更新日志](./CHANGELOG.zh-CN.md)
286
+
221
287
  ## License
222
288
 
223
289
  MIT