@thinkingai/ae-cli 1.0.24 → 1.0.28
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 +17 -2
- package/README.zh.md +18 -2
- package/dist/auth-5NSDQFQB.js +454 -0
- package/dist/{auth-4OPL4YWG.js → auth-H2376DEF.js} +2 -2
- package/dist/chunk-AD5V3ZPJ.js +217 -0
- package/dist/chunk-CAQYQA4R.js +399 -0
- package/dist/{chunk-JJCRURTR.js → chunk-CLJF7MQA.js} +1 -1
- package/dist/chunk-GSJGPNKK.js +49 -0
- package/dist/chunk-IMBKVXKY.js +478 -0
- package/dist/chunk-KAEZTSXN.js +99 -0
- package/dist/{chunk-MZW6NOVS.js → chunk-LU7SXK4Q.js} +27 -8
- package/dist/chunk-OJDNO5QY.js +63 -0
- package/dist/{chunk-DC66L5AM.js → chunk-SRJIAOBN.js} +76 -91
- package/dist/{chunk-OVHL4JAC.js → chunk-WCHI7725.js} +44 -47
- package/dist/{client-TDH6MUWM.js → client-FCMK3XEK.js} +5 -3
- package/dist/config-64G36TJL.js +130 -0
- package/dist/index.js +50 -17
- package/dist/model-EZ6K7FXI.js +134 -0
- package/dist/{raw-EM7AP3RT.js → raw-VEF3D6UD.js} +11 -6
- package/dist/sync-NRODEVNH.js +385 -0
- package/dist/te-agent-7U7JLJKU.js +524 -0
- package/dist/{te-analysis-3KFSNUCJ.js → te-analysis-A2OSGHQ4.js} +136 -20
- package/dist/{te-audience-GMYJFCSC.js → te-audience-LI67PPGO.js} +5 -4
- package/dist/{te-common-YLERCMQI.js → te-common-35WVU3C5.js} +19 -8
- package/dist/{te-community-PYDN5A6B.js → te-community-LEAP6PWT.js} +4 -3
- package/dist/{te-dataops-ETWS5O3X.js → te-dataops-N2LGZBOX.js} +4 -3
- package/dist/{te-engage-ROJVZHDA.js → te-engage-H7C72Z46.js} +105 -49
- package/dist/{te-kb-VUNS2CC7.js → te-kb-I2OKTBAI.js} +225 -29
- package/dist/{te-meta-3EFWLM3A.js → te-meta-HBTIEDRO.js} +4 -3
- package/dist/te-team-EM5OWRQL.js +529 -0
- package/package.json +10 -2
- package/skills/ae-agent/SKILL.md +134 -0
- package/skills/ae-analysis/SKILL.md +1 -1
- package/skills/ae-analysis/references/drilldown_user_events.md +1 -1
- package/skills/ae-analysis/references/drilldown_users.md +2 -2
- package/skills/ae-analysis/references/list_clusters.md +4 -2
- package/skills/ae-analysis/references/query_adhoc.md +3 -2
- package/skills/ae-analysis/references/query_entity_details.md +1 -1
- 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 +26 -2
- 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/build-task-save-guide.md +283 -0
- 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/save-task.md +304 -0
- 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 +284 -0
- package/skills/ae-team/SKILL.md +164 -0
- package/skills/ae-team/references/ai-generate.md +39 -0
- package/skills/ae-team/references/create.md +94 -0
- package/skills/ae-team/references/delete.md +39 -0
- package/skills/ae-team/references/list-projects.md +45 -0
- package/skills/ae-team/references/list-templates.md +38 -0
- package/skills/ae-team/references/list.md +39 -0
- package/skills/ae-team/references/run-artifacts.md +51 -0
- package/skills/ae-team/references/run-cancel.md +38 -0
- package/skills/ae-team/references/run-chat.md +57 -0
- package/skills/ae-team/references/run-reply.md +41 -0
- package/skills/ae-team/references/run-result.md +75 -0
- package/skills/ae-team/references/run-start.md +73 -0
- package/skills/ae-team/references/run-watch.md +82 -0
- package/skills/ae-team/references/update.md +47 -0
- package/dist/auth-PBPAZQWP.js +0 -168
- package/dist/chunk-47MTN54I.js +0 -285
- package/dist/config-5ELRYAIH.js +0 -257
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ae-kb
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: "AE/TE knowledge base CLI manual for creating, querying, deterministic index/grep/read retrieval, checking status, uploading, compiling, schema generation, URL sources, source deletion, and knowledge base deletion. Use when the user asks to manage TE/AE/ThinkingEngine knowledge bases, upload documents or URLs to a knowledge base, query knowledge, inspect knowledge base indexes, search knowledge base pages, read a specific knowledge base page, check knowledge base status, generate schemas, compile knowledge, remove sources, or delete a knowledge base. Must use ae-cli kb commands and must not guess knowledge base names, scopes, page paths, source display names, JSON payload shapes, or URL formats."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ae-kb
|
|
8
|
+
|
|
9
|
+
AE CLI (`ae-cli`) knowledge base commands are invoked through:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
ae-cli kb +<command> [options]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Global Rules
|
|
16
|
+
|
|
17
|
+
- Use this skill for TE/AE knowledge base tasks: create, query, inspect indexes, grep pages, read pages, check status, upload sources, add URL sources, generate schema, compile, remove source files, and delete knowledge bases.
|
|
18
|
+
- Read operations can run directly after required inputs are known. Write operations require explicit user intent and normally keep the confirmation prompt unless the user asks to bypass it.
|
|
19
|
+
- Prefer `--dry-run` before destructive or broad writes when the user has not already validated the target.
|
|
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
|
+
- JSON flags must be valid JSON strings, usually wrapped in single quotes in shell commands.
|
|
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>`.
|
|
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.
|
|
25
|
+
|
|
26
|
+
## Commands
|
|
27
|
+
|
|
28
|
+
| Command | Risk | Purpose |
|
|
29
|
+
|---|---:|---|
|
|
30
|
+
| `+query` | read | Query one or more knowledge bases with a natural-language question. |
|
|
31
|
+
| `+index` | read | List accessible knowledge bases and their `index.md` navigation maps. |
|
|
32
|
+
| `+grep` | read | Keyword-search knowledge base pages and return matched lines with context. |
|
|
33
|
+
| `+read` | read | Read a full knowledge base page or a line window. |
|
|
34
|
+
| `+new` | write | Create a new personal or company knowledge base. |
|
|
35
|
+
| `+add` | write | Upload local files, a non-recursive directory, or HTTP(S) pages converted to markdown. |
|
|
36
|
+
| `+url` | write | Upload a URL source directly with optional display name and parsing instruction. |
|
|
37
|
+
| `+schema` | write | Generate the compile schema for a knowledge base. |
|
|
38
|
+
| `+compile` | write | Compile a knowledge base in incremental or full mode. |
|
|
39
|
+
| `+status` | read | Query the current status of a knowledge base. |
|
|
40
|
+
| `+rm-source` | write | Delete one source file from a knowledge base by display name. |
|
|
41
|
+
| `+remove` | write | Delete an entire knowledge base. |
|
|
42
|
+
|
|
43
|
+
## Common Workflows
|
|
44
|
+
|
|
45
|
+
### Create a Knowledge Base
|
|
46
|
+
|
|
47
|
+
Use `+new` with name. `--scope` is optional and defaults to `company`; valid scopes are `personal` and `company`.
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
ae-cli kb +new \
|
|
51
|
+
--scope company \
|
|
52
|
+
--name engineering-handbook \
|
|
53
|
+
--description "Engineering handbook" \
|
|
54
|
+
--tags '["engineering","handbook"]'
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
Optional fields:
|
|
58
|
+
|
|
59
|
+
- `--scope`: scope, defaults to `company`.
|
|
60
|
+
- `--description`: description, up to 200 characters.
|
|
61
|
+
- `--tags`: JSON array, max 2 tags, each up to 15 characters.
|
|
62
|
+
- `--project-id`: optional project ID to bind.
|
|
63
|
+
- `--project-name`: optional project display name.
|
|
64
|
+
|
|
65
|
+
### Upload Files or Directories
|
|
66
|
+
|
|
67
|
+
Use `+add` when sources are local files, local directories, or pages that should be fetched and converted to markdown before upload.
|
|
68
|
+
|
|
69
|
+
```bash
|
|
70
|
+
ae-cli kb +add \
|
|
71
|
+
--name engineering-handbook \
|
|
72
|
+
--files '["./README.md","./docs","https://example.com/guide"]'
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Input rules:
|
|
76
|
+
|
|
77
|
+
- `--files` must be a JSON array of strings.
|
|
78
|
+
- Local directory reading is non-recursive.
|
|
79
|
+
- URL entries must start with `http://` or `https://`.
|
|
80
|
+
- Supported extensions include markdown/text, office documents, PDFs, spreadsheets, presentations, and common images. Local files are uploaded as multipart file blobs; HTTP(S) pages are fetched and converted to markdown before upload.
|
|
81
|
+
- Duplicate filenames are automatically suffixed as `name-1.ext`, `name-2.ext`, etc.
|
|
82
|
+
|
|
83
|
+
### Add a URL Source
|
|
84
|
+
|
|
85
|
+
Use `+url` when adding one URL source and optionally passing a display name or parsing instruction.
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
ae-cli kb +url \
|
|
89
|
+
--name engineering-handbook \
|
|
90
|
+
--url https://example.com/guide \
|
|
91
|
+
--display-name guide \
|
|
92
|
+
--parse-instruction "Keep headings and code blocks"
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`--url` must be `http(s)`.
|
|
96
|
+
|
|
97
|
+
### Generate Schema and Compile
|
|
98
|
+
|
|
99
|
+
Generate the schema first when the knowledge base needs a compile schema.
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
ae-cli kb +schema --name engineering-handbook
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Use `--force` only to recover a stuck `generating` status. Use `--model` only when the user provides the model display name.
|
|
106
|
+
|
|
107
|
+
Compile after sources and schema are ready:
|
|
108
|
+
|
|
109
|
+
```bash
|
|
110
|
+
ae-cli kb +compile --name engineering-handbook --mode incremental
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Valid compile modes are `incremental` and `full`; default is `incremental`.
|
|
114
|
+
|
|
115
|
+
### Check Knowledge Base Status
|
|
116
|
+
|
|
117
|
+
Use `+status` to inspect the current status of a knowledge base.
|
|
118
|
+
|
|
119
|
+
```bash
|
|
120
|
+
ae-cli kb +status --name engineering-handbook
|
|
121
|
+
```
|
|
122
|
+
|
|
123
|
+
### Query Knowledge
|
|
124
|
+
|
|
125
|
+
Use `+query` with a natural-language question and a JSON array of source refs.
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
ae-cli kb +query \
|
|
129
|
+
--query "How do we release a dashboard?" \
|
|
130
|
+
--sources '[{"scope":"company","name":"engineering-handbook"}]'
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
`--sources` entries require:
|
|
134
|
+
|
|
135
|
+
- `scope`: knowledge base scope such as `personal` or `company`.
|
|
136
|
+
- `name`: knowledge base name.
|
|
137
|
+
|
|
138
|
+
### Explore Knowledge Base Pages
|
|
139
|
+
|
|
140
|
+
Use the deterministic retrieval primitives when an agent needs to explore knowledge base content like a code repository. These endpoints do not call an LLM on the server side.
|
|
141
|
+
|
|
142
|
+
Start with `+index` to see accessible knowledge bases and navigation maps:
|
|
143
|
+
|
|
144
|
+
```bash
|
|
145
|
+
ae-cli kb +index \
|
|
146
|
+
--sources '[{"scope":"company","name":"engineering-handbook"}]'
|
|
147
|
+
```
|
|
148
|
+
|
|
149
|
+
Then use `+grep` to locate likely pages and line numbers:
|
|
150
|
+
|
|
151
|
+
```bash
|
|
152
|
+
ae-cli kb +grep \
|
|
153
|
+
--query "sandbox configuration" \
|
|
154
|
+
--sources '[{"scope":"company","name":"engineering-handbook"}]' \
|
|
155
|
+
--top-k 10
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
Finally use `+read` to open the exact page, optionally with a line window:
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
ae-cli kb +read \
|
|
162
|
+
--source '{"scope":"company","name":"engineering-handbook"}' \
|
|
163
|
+
--path "wiki/sandbox.md" \
|
|
164
|
+
--offset 1 \
|
|
165
|
+
--limit 200
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
Retrieval rules:
|
|
169
|
+
|
|
170
|
+
- `+index` accepts optional `--sources` and `--locale`; omit `--sources` to list all accessible knowledge bases.
|
|
171
|
+
- `+grep` requires `--query` / `-q`; optional `--sources`, `--top-k` (1-50, default 10), and `--locale`.
|
|
172
|
+
- `+read` requires `--source` pointing to exactly one knowledge base and `--path` relative to the knowledge base root; optional `--offset`, `--limit` (1-2000), and `--locale`.
|
|
173
|
+
- Do not guess a `--path`; get it from `+index` or `+grep` results.
|
|
174
|
+
|
|
175
|
+
### Remove One Source
|
|
176
|
+
|
|
177
|
+
Use `+rm-source` only when the source display name is known exactly.
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
ae-cli kb +rm-source \
|
|
181
|
+
--name engineering-handbook \
|
|
182
|
+
--display-name kb-1780046712-guide.md
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
If the user only gives a loose source name, do not guess. Ask for the exact uploaded display name.
|
|
186
|
+
|
|
187
|
+
### Delete a Knowledge Base
|
|
188
|
+
|
|
189
|
+
Use `+remove` for deleting the entire knowledge base. Confirm the target name with the user if there is any ambiguity.
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
ae-cli kb +remove --name engineering-handbook
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Command Reference
|
|
196
|
+
|
|
197
|
+
### `+query`
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
ae-cli kb +query --query "<question>" --sources '[{"scope":"company","name":"kb-name"}]'
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
- `--query`, alias `-q`: required natural-language question.
|
|
204
|
+
- `--sources`: required JSON array of knowledge base refs.
|
|
205
|
+
|
|
206
|
+
### `+index`
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
ae-cli kb +index [--sources '[{"scope":"company","name":"kb-name"}]'] [--locale zh|en|ja|ko]
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
- `--sources`: optional JSON array of knowledge base refs. Omit to list all accessible knowledge bases.
|
|
213
|
+
- `--locale`: optional locale: `zh`, `en`, `ja`, or `ko`.
|
|
214
|
+
|
|
215
|
+
### `+grep`
|
|
216
|
+
|
|
217
|
+
```bash
|
|
218
|
+
ae-cli kb +grep --query "<keywords>" [--sources '[{"scope":"company","name":"kb-name"}]'] [--top-k 10] [--locale zh|en|ja|ko]
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
- `--query`, alias `-q`: required keywords to search across knowledge bases.
|
|
222
|
+
- `--sources`: optional JSON array of knowledge base refs. Omit to search all accessible knowledge bases.
|
|
223
|
+
- `--top-k`: optional max number of hits, 1-50, default 10.
|
|
224
|
+
- `--locale`: optional locale: `zh`, `en`, `ja`, or `ko`.
|
|
225
|
+
|
|
226
|
+
### `+read`
|
|
227
|
+
|
|
228
|
+
```bash
|
|
229
|
+
ae-cli kb +read --source '{"scope":"company","name":"kb-name"}' --path "index.md" [--offset 1] [--limit 200] [--locale zh|en|ja|ko]
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
- `--source`: required JSON object pointing to exactly one knowledge base.
|
|
233
|
+
- `--path`: required page path relative to the knowledge base root, such as `index.md` or `wiki/concepts/data-model.md`.
|
|
234
|
+
- `--offset`: optional 1-based start line.
|
|
235
|
+
- `--limit`: optional max line count, 1-2000.
|
|
236
|
+
- `--locale`: optional locale: `zh`, `en`, `ja`, or `ko`.
|
|
237
|
+
|
|
238
|
+
### `+new`
|
|
239
|
+
|
|
240
|
+
```bash
|
|
241
|
+
ae-cli kb +new --name "<name>" [--scope personal|company] [--description "..."] [--tags '["t1","t2"]'] [--project-id "..."] [--project-name "..."]
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
### `+add`
|
|
245
|
+
|
|
246
|
+
```bash
|
|
247
|
+
ae-cli kb +add --name "<name>" --files '["./a.md","./docs","https://example.com/page"]'
|
|
248
|
+
```
|
|
249
|
+
|
|
250
|
+
### `+url`
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
ae-cli kb +url --name "<name>" --url "https://example.com/page" [--display-name "..."] [--parse-instruction "..."]
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
### `+schema`
|
|
257
|
+
|
|
258
|
+
```bash
|
|
259
|
+
ae-cli kb +schema --name "<name>" [--force] [--model "<model displayName>"]
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
### `+compile`
|
|
263
|
+
|
|
264
|
+
```bash
|
|
265
|
+
ae-cli kb +compile --name "<name>" [--mode incremental|full]
|
|
266
|
+
```
|
|
267
|
+
|
|
268
|
+
### `+status`
|
|
269
|
+
|
|
270
|
+
```bash
|
|
271
|
+
ae-cli kb +status --name "<name>"
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
### `+rm-source`
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
ae-cli kb +rm-source --name "<name>" --display-name "<uploaded source display name>"
|
|
278
|
+
```
|
|
279
|
+
|
|
280
|
+
### `+remove`
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
ae-cli kb +remove --name "<name>"
|
|
284
|
+
```
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: ae-team
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
description: "AE/TE/ThinkingEngine/ThinkingAI ae-cli manual for AI Agent Team tasks: managing teams (list, create, update, delete, AI-generate, templates) and executing TeamRuns (start, chat, cancel, reply, result, artifacts). Use when the user asks to find a team, run a team task, check run status, retrieve results or artifacts, or set up multi-agent workflows. Must use ae-cli, read the matching references/<command>.md before composing commands, and never guess team IDs, run IDs, config structures, or parameter formats."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# ae-team
|
|
8
|
+
|
|
9
|
+
> **CRITICAL — Before running any `+<command>` command, you MUST first read the corresponding `references/<command>.md`.** The reference filename equals the command name without the leading `+`, for example `+run-start` → `references/run-start.md`.
|
|
10
|
+
> **CRITICAL — Never guess team IDs, run IDs, or config JSON structures.** Always use `+list` or `+list-templates` to discover real resources first.
|
|
11
|
+
> **CRITICAL — For the core Agent workflow (find → start → poll → artifacts), follow Workflow A in the Typical Workflows section below.**
|
|
12
|
+
|
|
13
|
+
## Global AE CLI Rules
|
|
14
|
+
|
|
15
|
+
AE CLI (`ae-cli`) is the command-line tool for the AE / TE / ThinkingEngine analysis platform.
|
|
16
|
+
|
|
17
|
+
Global parameters:
|
|
18
|
+
|
|
19
|
+
| Parameter | Description |
|
|
20
|
+
|---|---|
|
|
21
|
+
| `--format <json\|table>` | Output format. Default is JSON. |
|
|
22
|
+
| `--jq <expr>` | jq filter expression for JSON output. |
|
|
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
|
+
| `--yes` | Skip confirmation for write operations. |
|
|
25
|
+
| `--dry-run` | Show request details without executing. |
|
|
26
|
+
|
|
27
|
+
Output and errors:
|
|
28
|
+
- Successful commands return machine-readable JSON by default.
|
|
29
|
+
- Failed commands return `{ "ok": false, "error": { "type": "...", "message": "...", "hint": "..." } }` and exit non-zero.
|
|
30
|
+
|
|
31
|
+
Safety constraints:
|
|
32
|
+
- Read commands (`+list`, `+list-templates`, `+list-projects`, `+run-result`, `+run-artifacts`, `+ai-generate`) can execute directly once required IDs are known.
|
|
33
|
+
- Write commands require explicit user intent and keep the confirmation prompt by default. Pass `--yes` only in fully automated pipelines.
|
|
34
|
+
- Never invent team IDs, run IDs, `agentId` values, `mcpServerIds`, `skillIds`, `knowledgeBaseIds`, project IDs, or any resource identifiers. Discover them with list commands or accept them from the user.
|
|
35
|
+
|
|
36
|
+
## When to Use
|
|
37
|
+
|
|
38
|
+
Use `ae-team` for all AI Agent Team work:
|
|
39
|
+
|
|
40
|
+
- **Team management**: list available teams, create/update/delete a team, generate a team config draft with AI, browse templates.
|
|
41
|
+
- **TeamRun execution**: start a run, interact in chat mode, cancel a run, reply to a waiting run, poll result until completion, retrieve artifacts.
|
|
42
|
+
|
|
43
|
+
If the user's intent is data analysis, audience management, metadata governance, or DataOps, switch to `ae-analysis` / `ae-dataops` / `ae-engage`.
|
|
44
|
+
|
|
45
|
+
## Command Format
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ae-cli team +<command> [options]
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
All commands live under the `team` service. Quick help:
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
ae-cli team --help
|
|
55
|
+
ae-cli team +list --help
|
|
56
|
+
ae-cli team +run-start --help
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Tool Groups (13)
|
|
60
|
+
|
|
61
|
+
### Team Management (7)
|
|
62
|
+
|
|
63
|
+
- `+list` ([doc](references/list.md)) — list all visible teams
|
|
64
|
+
- `+create` ([doc](references/create.md)) — create a new team with a TeamConfig
|
|
65
|
+
- `+update` ([doc](references/update.md)) — patch one or more fields of an existing team
|
|
66
|
+
- `+delete` ([doc](references/delete.md)) — delete a team (409 if runs are active)
|
|
67
|
+
- `+ai-generate` ([doc](references/ai-generate.md)) — AI-generate a team config draft from a goal description
|
|
68
|
+
- `+list-templates` ([doc](references/list-templates.md)) — browse built-in team templates
|
|
69
|
+
- `+list-projects` ([doc](references/list-projects.md)) — list projects available to the current user
|
|
70
|
+
|
|
71
|
+
### TeamRun Execution (7)
|
|
72
|
+
|
|
73
|
+
- `+run-start` ([doc](references/run-start.md)) — start a new TeamRun
|
|
74
|
+
- `+run-watch` ([doc](references/run-watch.md)) — stream a TeamRun via SSE (preferred over polling)
|
|
75
|
+
- `+run-chat` ([doc](references/run-chat.md)) — chat with a team (multi-turn, auto-resume)
|
|
76
|
+
- `+run-cancel` ([doc](references/run-cancel.md)) — cancel a running TeamRun
|
|
77
|
+
- `+run-reply` ([doc](references/run-reply.md)) — reply to a run in `waiting_user` state
|
|
78
|
+
- `+run-result` ([doc](references/run-result.md)) — get the full result of a TeamRun (fallback polling)
|
|
79
|
+
- `+run-artifacts` ([doc](references/run-artifacts.md)) — list artifacts produced by a TeamRun
|
|
80
|
+
|
|
81
|
+
## TeamRun Status Reference
|
|
82
|
+
|
|
83
|
+
| Status | Description |
|
|
84
|
+
|---|---|
|
|
85
|
+
| `pending` | Queued, waiting to start |
|
|
86
|
+
| `running` | Actively executing |
|
|
87
|
+
| `waiting_user` | Paused — `+run-watch` exits with code 2; read `pendingQuestion` from stdout, present to user, then call `+run-reply` |
|
|
88
|
+
| `waiting_approval` | Paused — waiting for approval |
|
|
89
|
+
| `paused` | Manually paused |
|
|
90
|
+
| `completed` | Finished successfully |
|
|
91
|
+
| `failed` | Execution failed |
|
|
92
|
+
| `cancelled` | Cancelled by user |
|
|
93
|
+
|
|
94
|
+
Terminal statuses: `completed`, `failed`, `cancelled`. Poll `+run-result` until one of these is reached.
|
|
95
|
+
|
|
96
|
+
## Typical Workflows
|
|
97
|
+
|
|
98
|
+
### Workflow A — Start an existing team and wait for results
|
|
99
|
+
|
|
100
|
+
```bash
|
|
101
|
+
# 1. Discover available teams
|
|
102
|
+
ae-cli team +list
|
|
103
|
+
|
|
104
|
+
# 2. (Optional) Discover project IDs if needed
|
|
105
|
+
ae-cli team +list-projects
|
|
106
|
+
|
|
107
|
+
# 3. Start a run
|
|
108
|
+
ae-cli team +run-start --team-id <team_id> --input "分析上周用户留存数据" --yes
|
|
109
|
+
|
|
110
|
+
# 4. Stream until done (blocks; no polling needed)
|
|
111
|
+
ae-cli team +run-watch --id <run_id>
|
|
112
|
+
# exit 0 → completed/partial_success → go to step 5
|
|
113
|
+
# exit 1 → failed/cancelled → inspect errorMessage in output, report to user
|
|
114
|
+
# exit 2 → waiting_user → go to step 4a
|
|
115
|
+
|
|
116
|
+
# 4a. Handle waiting_user: read pendingQuestion from stdout, get user's answer, reply, re-watch
|
|
117
|
+
ae-cli team +run-reply --id <run_id> --input "<user_answer>" --yes
|
|
118
|
+
ae-cli team +run-watch --id <run_id> # repeat until exit 0 or 1
|
|
119
|
+
|
|
120
|
+
# 5. Retrieve artifacts
|
|
121
|
+
ae-cli team +run-artifacts --id <run_id> --include-content true
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
### Workflow B — AI-generate a config, then create and run
|
|
125
|
+
|
|
126
|
+
```bash
|
|
127
|
+
# 1. Generate a draft config
|
|
128
|
+
ae-cli team +ai-generate --prompt "需要一个分析用户行为并自动生成留存报告的团队"
|
|
129
|
+
|
|
130
|
+
# 2. Create the team (paste / adjust the returned config)
|
|
131
|
+
ae-cli team +create --name "留存分析团队" --config '<config_json>' --yes
|
|
132
|
+
|
|
133
|
+
# 3. Start a run
|
|
134
|
+
ae-cli team +run-start --team-id <new_team_id> --input "分析本月留存" --yes
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
### Workflow C — Multi-turn chat
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# First turn
|
|
141
|
+
ae-cli team +run-chat --team-id <team_id> --input "帮我分析DAU趋势" --yes
|
|
142
|
+
|
|
143
|
+
# If run status is waiting_user, reply:
|
|
144
|
+
ae-cli team +run-reply --id <run_id> --input "请重点分析周末下降原因" --yes
|
|
145
|
+
|
|
146
|
+
# Continue same session
|
|
147
|
+
ae-cli team +run-chat --team-id <team_id> --session-id <session_id> --input "给出优化建议" --yes
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
### Workflow D — Use a template to create a team
|
|
151
|
+
|
|
152
|
+
```bash
|
|
153
|
+
# 1. Browse templates
|
|
154
|
+
ae-cli team +list-templates --locale zh
|
|
155
|
+
|
|
156
|
+
# 2. Create from a template's config
|
|
157
|
+
ae-cli team +create --name "我的分析团队" --config '<template_config>' --yes
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Quick Verification
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
ae-cli team --help
|
|
164
|
+
```
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# team +ai-generate (AI-Generate Team Config Draft)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Team management / config generation**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Given a plain-language description of a team's goal, generate a draft `{ name, description, members[] }` that can be reviewed and passed to `+create --config`.
|
|
9
|
+
- Useful when the user has a goal but does not know how to write a TeamConfig manually.
|
|
10
|
+
|
|
11
|
+
## Mandatory Rules (MUST)
|
|
12
|
+
- `--prompt` is required (1–2000 chars). Pass the user's goal description as-is; do not pad it with generic boilerplate.
|
|
13
|
+
- The returned draft is a **suggestion only** — always show it to the user for review before calling `+create`. Do not auto-create without user confirmation.
|
|
14
|
+
- Do not fabricate `agentId` values; if the draft contains placeholder IDs, the user must replace them with real agent IDs before creating the team.
|
|
15
|
+
|
|
16
|
+
## Command
|
|
17
|
+
```bash
|
|
18
|
+
ae-cli team +ai-generate --prompt "需要一个能分析用户留存并生成周报的团队"
|
|
19
|
+
ae-cli team +ai-generate --prompt "A team that monitors DAU trends and sends alerts" --model <model_id>
|
|
20
|
+
ae-cli team +ai-generate --dry-run --prompt "test"
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Parameters
|
|
24
|
+
| Parameter | Required | Description |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| `--prompt` | Yes | Team goal description (1–2000 chars) |
|
|
27
|
+
| `--model` | No | Model ID to use for generation |
|
|
28
|
+
|
|
29
|
+
## Decision Rules
|
|
30
|
+
- If the user says "help me create a team" or "generate a team for [goal]", call this command first rather than jumping to `+create`.
|
|
31
|
+
- Present the returned `name`, `description`, and `members` to the user. Ask them to confirm or adjust before proceeding.
|
|
32
|
+
- If the user already has a config in mind, skip this command and go directly to `+create`.
|
|
33
|
+
|
|
34
|
+
## Next Steps on Failure
|
|
35
|
+
- Empty or low-quality result: ask the user to refine the prompt with more specific goals, roles, or steps.
|
|
36
|
+
- Model error: try omitting `--model` to use the default.
|
|
37
|
+
|
|
38
|
+
## Recommended Chaining
|
|
39
|
+
- `+ai-generate` → user reviews and adjusts draft → `+create`
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# team +create (Create Team)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Team management / write**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Create a new AI Agent team with a given name and TeamConfig.
|
|
9
|
+
- Returns the newly created team object including its `id`.
|
|
10
|
+
|
|
11
|
+
## Mandatory Rules (MUST)
|
|
12
|
+
- `--config` must be a valid TeamConfig JSON (see structure below). Do not invent `agentId`, `mcpServerIds`, `skillIds`, or `knowledgeBaseIds` — obtain real IDs from the user or the appropriate resource discovery commands.
|
|
13
|
+
- `--name` must be 1–100 characters.
|
|
14
|
+
- `--description` must be ≤2000 characters if provided.
|
|
15
|
+
- `--scope` must be `personal` or `company` if provided; defaults to `personal` on the server.
|
|
16
|
+
- Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
|
|
17
|
+
|
|
18
|
+
## TeamConfig Structure
|
|
19
|
+
|
|
20
|
+
```json
|
|
21
|
+
{
|
|
22
|
+
"version": 1,
|
|
23
|
+
"mode": "serial | parallel | leader",
|
|
24
|
+
"steps": [
|
|
25
|
+
{
|
|
26
|
+
"id": "s1",
|
|
27
|
+
"name": "Step name",
|
|
28
|
+
"agentId": "<real agent ID>",
|
|
29
|
+
"prompt": "Step instructions (≤50000 chars)",
|
|
30
|
+
"role": "agent | leader | reviewer",
|
|
31
|
+
"retryLimit": 2,
|
|
32
|
+
"dependencies": [],
|
|
33
|
+
"resourceOverride": {
|
|
34
|
+
"mcpServerIds": [],
|
|
35
|
+
"skillIds": [],
|
|
36
|
+
"knowledgeBaseIds": [],
|
|
37
|
+
"model": null
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
"maxConcurrency": 5,
|
|
42
|
+
"output": {
|
|
43
|
+
"format": "markdown | json | xlsx | pptx | pdf | docx"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
**Mode constraints:**
|
|
49
|
+
- `serial` / `parallel`: `steps` ≥ 1
|
|
50
|
+
- `leader`: `steps` ≥ 2 (all `role: "agent"`), requires `leaderConfig`
|
|
51
|
+
|
|
52
|
+
**leaderConfig** (required when `mode: "leader"`):
|
|
53
|
+
```json
|
|
54
|
+
"leaderConfig": {
|
|
55
|
+
"agentId": "<leader agent ID>",
|
|
56
|
+
"maxIterations": 10,
|
|
57
|
+
"availableAgents": [
|
|
58
|
+
{ "id": "a1", "agentId": "...", "name": "...", "description": "...", "capabilities": "..." }
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Command
|
|
64
|
+
```bash
|
|
65
|
+
ae-cli team +create \
|
|
66
|
+
--name "日报分析团队" \
|
|
67
|
+
--config '{"version":1,"mode":"serial","steps":[{"id":"s1","name":"分析师","agentId":"xxx","prompt":"分析数据","role":"agent"}]}'
|
|
68
|
+
|
|
69
|
+
ae-cli team +create --name "My Team" --config '...' --scope company --yes
|
|
70
|
+
ae-cli team +create --dry-run --name "Test" --config '{}'
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Parameters
|
|
74
|
+
| Parameter | Required | Description |
|
|
75
|
+
|---|---|---|
|
|
76
|
+
| `--name` | Yes | Team name (1–100 chars) |
|
|
77
|
+
| `--config` | Yes | TeamConfig JSON object |
|
|
78
|
+
| `--description` | No | Description (≤2000 chars) |
|
|
79
|
+
| `--scope` | No | `personal` (default) \| `company` |
|
|
80
|
+
| `--enabled` | No | `true` (default) \| `false` |
|
|
81
|
+
|
|
82
|
+
## Decision Rules
|
|
83
|
+
- If the user provides a goal description instead of a config, call `+ai-generate` first to get a draft, then ask the user to review before calling `+create`.
|
|
84
|
+
- If the user wants to base a team on a template, call `+list-templates` first to get the template config.
|
|
85
|
+
- Always use `--dry-run` first when building a complex config to verify the request shape before executing.
|
|
86
|
+
|
|
87
|
+
## Next Steps on Failure
|
|
88
|
+
- `Invalid JSON`: check TeamConfig structure, especially `version`, `mode`, `steps[].id`, `steps[].agentId`.
|
|
89
|
+
- `400 / validation error`: verify that `mode` constraints are satisfied (e.g. `leader` requires `leaderConfig`).
|
|
90
|
+
- After success, capture the returned `id` for subsequent `+run-start` calls.
|
|
91
|
+
|
|
92
|
+
## Recommended Chaining
|
|
93
|
+
- `+ai-generate` → review draft → `+create` → `+run-start`
|
|
94
|
+
- `+list-templates` → pick template config → `+create` → `+run-start`
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# team +delete (Delete Team)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Team management / write**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- Permanently delete a team by ID.
|
|
9
|
+
- Returns `{ "ok": true }` on success.
|
|
10
|
+
|
|
11
|
+
## Mandatory Rules (MUST)
|
|
12
|
+
- `--id` is required. Obtain the real team ID via `+list` — do not guess.
|
|
13
|
+
- If the team has running tasks, the server returns **409**. Cancel or wait for active runs before retrying.
|
|
14
|
+
- This is an irreversible operation — confirm with the user before executing.
|
|
15
|
+
|
|
16
|
+
## Command
|
|
17
|
+
```bash
|
|
18
|
+
ae-cli team +delete --id <team_id>
|
|
19
|
+
ae-cli team +delete --id <team_id> --yes
|
|
20
|
+
ae-cli team +delete --dry-run --id <team_id>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Parameters
|
|
24
|
+
| Parameter | Required | Description |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| `--id` | Yes | Team ID |
|
|
27
|
+
|
|
28
|
+
## Decision Rules
|
|
29
|
+
- Always call `+list` first to confirm the `id` and that the user is targeting the correct team.
|
|
30
|
+
- If the server returns 409, call `+run-result` on active runs to check their status, then use `+run-cancel` to cancel any `running` or `waiting_user` runs.
|
|
31
|
+
- Do not retry delete until all active runs have reached a terminal status.
|
|
32
|
+
|
|
33
|
+
## Next Steps on Failure
|
|
34
|
+
- `409 Conflict`: cancel active runs first (`+run-cancel --id <run_id> --yes`), then retry.
|
|
35
|
+
- `404`: team already deleted or wrong ID — re-run `+list` to verify.
|
|
36
|
+
|
|
37
|
+
## Recommended Chaining
|
|
38
|
+
- `+list` → confirm target → `+delete`
|
|
39
|
+
- `+run-cancel` (clear active runs) → `+delete`
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# team +list-projects (List Available Projects)
|
|
2
|
+
|
|
3
|
+
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
+
|
|
5
|
+
Domain: **Project discovery**
|
|
6
|
+
|
|
7
|
+
## Use Cases
|
|
8
|
+
- List all projects the current user has access to, sourced from the authentication endpoint.
|
|
9
|
+
- Returns an array of `{ projectId, projectName }` objects.
|
|
10
|
+
- Use this before `+run-start` when you need to populate `--project-ids` or `--project-names` but don't know the available project IDs.
|
|
11
|
+
|
|
12
|
+
## Mandatory Rules (MUST)
|
|
13
|
+
- Do not guess project IDs or project names. Call `+list-projects` first to discover real values.
|
|
14
|
+
- If the user references a project by name, match it against the returned list before passing it to `+run-start`.
|
|
15
|
+
|
|
16
|
+
## Command
|
|
17
|
+
```bash
|
|
18
|
+
ae-cli team +list-projects
|
|
19
|
+
ae-cli team +list-projects --format table
|
|
20
|
+
ae-cli team +list-projects --dry-run
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Parameters
|
|
24
|
+
| Parameter | Required | Description |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| None | — | No parameters required |
|
|
27
|
+
|
|
28
|
+
## Response Shape
|
|
29
|
+
```json
|
|
30
|
+
[
|
|
31
|
+
{ "projectId": 1, "projectName": "项目A" },
|
|
32
|
+
{ "projectId": 2, "projectName": "项目B" }
|
|
33
|
+
]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Decision Rules
|
|
37
|
+
- When the user wants to start a run and mentions a project by name or says "关联项目", call `+list-projects` first to resolve the correct `projectId`.
|
|
38
|
+
- Once project IDs are confirmed in the current conversation, reuse them without calling `+list-projects` again unless the user switches projects.
|
|
39
|
+
|
|
40
|
+
## Next Steps on Failure
|
|
41
|
+
- Empty result: the current account may have no associated projects; confirm account permissions with the administrator.
|
|
42
|
+
- Auth error: run `ae-cli auth login`.
|
|
43
|
+
|
|
44
|
+
## Recommended Chaining
|
|
45
|
+
- `+list-projects` → user confirms `projectId` → `+run-start --project-ids '[<id>]'`
|