@thinkingai/ae-cli 6.0.24 → 6.0.27

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 (130) hide show
  1. package/dist/{auth-A2XXG5K4.js → auth-7TQRGLBC.js} +10 -8
  2. package/dist/{auth-IDPKDFSY.js → auth-MEJ642P4.js} +2 -2
  3. package/dist/chunk-2NDGFQHW.js +190 -0
  4. package/dist/{chunk-NGJDCOYA.js → chunk-7QQ4233A.js} +3 -3
  5. package/dist/{chunk-PFJFZVCK.js → chunk-AJTH7LT3.js} +3 -2
  6. package/dist/{chunk-V5R5UIRM.js → chunk-BXMXMUD7.js} +65 -6
  7. package/dist/{chunk-AKORWVHJ.js → chunk-C4DH76LX.js} +1 -1
  8. package/dist/{chunk-NXJP4CES.js → chunk-GWZ5MYWE.js} +3 -3
  9. package/dist/{chunk-F3ZDMC2W.js → chunk-KCA6BA5D.js} +2 -2
  10. package/dist/{chunk-WXBCP6SD.js → chunk-KGJQCYVC.js} +1 -1
  11. package/dist/{chunk-FIT4CFIN.js → chunk-LG5YT7P7.js} +1 -1
  12. package/dist/{chunk-IDXW6MEJ.js → chunk-MDJGDI6K.js} +2 -2
  13. package/dist/{chunk-4FQ36OGO.js → chunk-R77JT7XD.js} +53 -6
  14. package/dist/{chunk-65DKFJZB.js → chunk-YCLVYFK7.js} +49 -6
  15. package/dist/{chunk-2OW2RENH.js → chunk-YNQFYBDB.js} +64 -6
  16. package/dist/{chunk-ONOA6DYB.js → chunk-ZAOL36CG.js} +1 -1
  17. package/dist/cli-token-TVQRSE46.js +18 -0
  18. package/dist/{client-7L735LVY.js → client-2643Z5AG.js} +3 -3
  19. package/dist/{config-SXD2JKSL.js → config-ZVPARN4R.js} +4 -9
  20. package/dist/index.js +24 -24
  21. package/dist/{metadata-QWUAX625.js → metadata-IPSPQBX3.js} +5 -5
  22. package/dist/{metadata-XWTEGEN2.js → metadata-N5REJ7R7.js} +5 -5
  23. package/dist/{model-3OVX42DA.js → model-T3KZJWLW.js} +2 -2
  24. package/dist/{raw-IANB4AV5.js → raw-OHSUK42D.js} +4 -4
  25. package/dist/{sync-4HQ3CXSK.js → sync-ULT5SECP.js} +3 -3
  26. package/dist/{te-agent-OYNNTJDU.js → te-agent-QLIVKRUN.js} +1146 -61
  27. package/dist/{te-analysis-CRPFK3LX.js → te-analysis-2U5EPXQC.js} +207 -69
  28. package/dist/{te-analysis-JX3V76OI.js → te-analysis-QMZ2UH7F.js} +207 -69
  29. package/dist/{te-audience-RO2IZOUC.js → te-audience-PVMKQAFH.js} +5 -5
  30. package/dist/{te-audience-77FGNG5E.js → te-audience-XMRMVD2V.js} +5 -5
  31. package/dist/{te-common-4TRJPRC5.js → te-common-CFGQXTFV.js} +5 -5
  32. package/dist/{te-common-PUXBUPOL.js → te-common-SDB3O2QG.js} +5 -5
  33. package/dist/{te-community-XKE526DS.js → te-community-6A7LKYUH.js} +5 -5
  34. package/dist/{te-community-NPDZQKMY.js → te-community-GMWFGILT.js} +5 -5
  35. package/dist/{te-dataops-PW74WP76.js → te-dataops-6LIPYNGH.js} +90 -68
  36. package/dist/{te-dataops-6KWLFNV4.js → te-dataops-Z53CTG2U.js} +90 -68
  37. package/dist/{te-engage-HTLMUN7G.js → te-engage-AGREUOW7.js} +30 -15
  38. package/dist/{te-engage-YPQIVF5H.js → te-engage-MIIUKY6M.js} +30 -15
  39. package/dist/{te-kb-DOGDQIU4.js → te-kb-KQJ53M3A.js} +4 -4
  40. package/dist/{te-meta-5ESSQ5B3.js → te-meta-QLANJ4B4.js} +5 -5
  41. package/dist/{te-meta-Z47X4VT3.js → te-meta-TOA6FWDE.js} +5 -5
  42. package/dist/{te-team-SOVKZIDD.js → te-team-TQGMNHQQ.js} +5 -5
  43. package/package.json +3 -1
  44. package/skills/ae-agent/SKILL.md +158 -189
  45. package/skills/ae-agent/references/accept-skill-share.md +39 -0
  46. package/skills/ae-agent/references/add-attachment.md +57 -0
  47. package/skills/ae-agent/references/add-mcp.md +75 -0
  48. package/skills/ae-agent/references/add-model.md +70 -0
  49. package/skills/ae-agent/references/add-skill.md +71 -0
  50. package/skills/ae-agent/references/approve-skill.md +41 -0
  51. package/skills/ae-agent/references/attachment-stats.md +50 -0
  52. package/skills/ae-agent/references/auto-provision-mcp-credentials.md +57 -0
  53. package/skills/ae-agent/references/cancel-skill-submission.md +39 -0
  54. package/skills/ae-agent/references/copy-skill.md +53 -0
  55. package/skills/ae-agent/references/create-agent.md +71 -0
  56. package/skills/ae-agent/references/create-automation.md +99 -0
  57. package/skills/ae-agent/references/del-agent.md +38 -0
  58. package/skills/ae-agent/references/del-attachment.md +35 -0
  59. package/skills/ae-agent/references/del-mcp.md +35 -0
  60. package/skills/ae-agent/references/del-model.md +37 -0
  61. package/skills/ae-agent/references/del-skill-asset.md +41 -0
  62. package/skills/ae-agent/references/del-skill-reference.md +41 -0
  63. package/skills/ae-agent/references/del-skill-script.md +41 -0
  64. package/skills/ae-agent/references/del-skill.md +36 -0
  65. package/skills/ae-agent/references/edit-skill.md +64 -0
  66. package/skills/ae-agent/references/get-agent.md +37 -0
  67. package/skills/ae-agent/references/get-skill-content.md +36 -0
  68. package/skills/ae-agent/references/list-agents.md +40 -0
  69. package/skills/ae-agent/references/list-attachments.md +42 -0
  70. package/skills/ae-agent/references/list-automations.md +41 -0
  71. package/skills/ae-agent/references/list-mcp-credentials.md +65 -0
  72. package/skills/ae-agent/references/list-mcp-market.md +58 -0
  73. package/skills/ae-agent/references/list-mcps.md +37 -0
  74. package/skills/ae-agent/references/list-models.md +38 -0
  75. package/skills/ae-agent/references/list-skill-assets.md +35 -0
  76. package/skills/ae-agent/references/list-skill-market.md +59 -0
  77. package/skills/ae-agent/references/list-skill-references.md +36 -0
  78. package/skills/ae-agent/references/list-skill-scripts.md +35 -0
  79. package/skills/ae-agent/references/list-skill-shares.md +49 -0
  80. package/skills/ae-agent/references/list-skill-submissions.md +45 -0
  81. package/skills/ae-agent/references/list-skills.md +37 -0
  82. package/skills/ae-agent/references/mcp-auth-disconnect.md +50 -0
  83. package/skills/ae-agent/references/mcp-auth-start.md +61 -0
  84. package/skills/ae-agent/references/mcp-auth-status.md +56 -0
  85. package/skills/ae-agent/references/mcp-stats.md +68 -0
  86. package/skills/ae-agent/references/mcp-token.md +63 -0
  87. package/skills/ae-agent/references/mcp-tools.md +55 -0
  88. package/skills/ae-agent/references/read-skill-asset.md +51 -0
  89. package/skills/ae-agent/references/read-skill-reference.md +50 -0
  90. package/skills/ae-agent/references/read-skill-script.md +51 -0
  91. package/skills/ae-agent/references/reject-skill-share.md +37 -0
  92. package/skills/ae-agent/references/reject-skill.md +42 -0
  93. package/skills/ae-agent/references/rescan-skills.md +44 -0
  94. package/skills/ae-agent/references/set-mcp-credential.md +67 -0
  95. package/skills/ae-agent/references/set-mcp-meta.md +52 -0
  96. package/skills/ae-agent/references/set-skill-meta.md +51 -0
  97. package/skills/ae-agent/references/share-skill.md +50 -0
  98. package/skills/ae-agent/references/submit-skill.md +51 -0
  99. package/skills/ae-agent/references/test-model.md +61 -0
  100. package/skills/ae-agent/references/toggle-mcp.md +39 -0
  101. package/skills/ae-agent/references/toggle-model.md +37 -0
  102. package/skills/ae-agent/references/toggle-skill.md +37 -0
  103. package/skills/ae-agent/references/update-agent.md +71 -0
  104. package/skills/ae-agent/references/update-automation.md +83 -0
  105. package/skills/ae-agent/references/update-mcp.md +79 -0
  106. package/skills/ae-agent/references/update-model.md +77 -0
  107. package/skills/ae-agent/references/upload-skill-asset.md +49 -0
  108. package/skills/ae-agent/references/upload-skill-reference.md +51 -0
  109. package/skills/ae-agent/references/upload-skill-script.md +49 -0
  110. package/skills/ae-agent/references/upload-skill.md +89 -0
  111. package/skills/ae-analysis/SKILL.md +4 -2
  112. package/skills/ae-analysis/references/analysis_gateway_assets.md +21 -6
  113. package/skills/ae-analysis/references/artifact_download.md +17 -0
  114. package/skills/ae-analysis/references/bi_panel_page_data_export.md +11 -1
  115. package/skills/ae-analysis/references/dashboard_copy.md +3 -1
  116. package/skills/ae-analysis/references/dashboard_daily_report_send.md +4 -2
  117. package/skills/ae-analysis/references/dashboard_daily_report_update.md +3 -1
  118. package/skills/ae-analysis/references/dashboard_definition_export.md +21 -3
  119. package/skills/ae-analysis/references/dashboard_report_data_export.md +11 -1
  120. package/skills/ae-analysis/references/project_space_create.md +1 -1
  121. package/skills/ae-analysis/references/run_inspect.md +22 -0
  122. package/skills/ae-dataops/references/dataops-flow-create.md +2 -2
  123. package/skills/ae-dataops/references/dataops-flow-monitor.md +3 -3
  124. package/skills/ae-dataops/references/dataops-integration.md +1 -0
  125. package/skills/ae-engage/references/flow-node-config-schema.md +32 -8
  126. package/skills/ae-engage/references/save-flow.md +65 -29
  127. package/skills/ae-engage/references/validate-flow-node-config.md +28 -10
  128. package/skills/ae-generate-tracking-plan/SKILL.md +9 -7
  129. package/dist/chunk-OCQPQYHZ.js +0 -105
  130. package/dist/cli-token-OZXHC3U2.js +0 -14
@@ -0,0 +1,39 @@
1
+ # agent +accept-skill-share (Accept Skill Share)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skill Share (peer-to-peer) / write**
6
+
7
+ ## Use Cases
8
+ - Accept a received Skill share.
9
+ - Endpoint: `POST /api/sandbox/agent/skills/shares/[id]/accept`.
10
+ - Accepting creates an independent personal copy of the Skill for the recipient.
11
+ - Sharing is Skill-only — MCP has no share flow.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required and must reference a **share** record (CUID), not a Skill ID. Obtain it via `+list-skill-shares --direction received` — do not guess.
15
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
16
+ - Only `pending` shares can be accepted.
17
+
18
+ ## Command
19
+ ```bash
20
+ ae-cli agent +accept-skill-share --id <share-cuid> --yes
21
+ ae-cli agent +accept-skill-share --dry-run --id <share-cuid>
22
+ ```
23
+
24
+ ## Parameters
25
+ | Parameter | Required | Description |
26
+ |---|---|---|
27
+ | `--id` | Yes | Share record ID (CUID) |
28
+
29
+ ## Decision Rules
30
+ - `--id` here is a share ID (not a Skill ID) — `+share-skill` takes a Skill ID instead.
31
+ - Use this after receiving a share (`+list-skill-shares --direction received --status pending`).
32
+ - Accepting creates an independent personal copy; the source Skill is unaffected.
33
+ - Cannot accept a share that is already `accepted` / `rejected`.
34
+
35
+ ## Next Steps on Failure
36
+ - `404` / not found: re-run `+list-skill-shares --direction received --status pending` to verify the share ID.
37
+
38
+ ## Recommended Chaining
39
+ - `+list-skill-shares --direction received --status pending` → confirm share `id` → `+accept-skill-share` → `+list-skills` (verify the new copy)
@@ -0,0 +1,57 @@
1
+ # agent +add-attachment (Upload Attachments)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Attachments / write**
6
+
7
+ ## Use Cases
8
+ - Upload sandbox file(s) to the attachment library.
9
+ - Endpoint: `POST /api/sandbox/agent/attachments/upload`.
10
+ - Supports single-file (`--file`) or batch (`--files`) uploads.
11
+ - MIME type is inferred from the file extension.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - Exactly one of `--file` or `--files` must be provided (they are mutually exclusive).
15
+ - `--files` must be a valid JSON array of string paths, e.g. `'["./a.png","./b.pdf"]'`.
16
+ - Each file must exist on disk; non-existent paths raise an error.
17
+ - Attachment upload supports files up to 50MB each, with a 1GB user quota.
18
+ - Batch uploads support partial success — individual file failures don't affect others.
19
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
20
+
21
+ ## Command
22
+ ```bash
23
+ # Single file
24
+ ae-cli agent +add-attachment --file ./output/report.png --yes
25
+
26
+ # Multiple files
27
+ ae-cli agent +add-attachment --files '["./report.png", "./data.csv", "./chart.pdf"]' --yes
28
+
29
+ # Dry-run to inspect the request before executing
30
+ ae-cli agent +add-attachment --dry-run --file ./output/report.png
31
+ ```
32
+
33
+ ## Parameters
34
+ | Parameter | Required | Description |
35
+ |---|---|---|
36
+ | `--file` | No* | Single file path |
37
+ | `--files` | No* | JSON array of file paths, e.g. `'["./a.png","./b.pdf"]'` |
38
+
39
+ \* Exactly one of `--file` or `--files` is required.
40
+
41
+ ## Decision Rules
42
+ - For a single file, use `--file`; for multiple files, use `--files` with a JSON array.
43
+ - Do not pass both `--file` and `--files` — they are mutually exclusive.
44
+ - Verify file paths exist before uploading; the CLI reads them from disk.
45
+ - Use `--dry-run` first to verify the request shape before executing.
46
+
47
+ ## Supported MIME Types (inferred from extension)
48
+ `.png` `.jpg` `.jpeg` `.gif` `.webp` `.svg` `.pdf` `.md` `.txt` `.csv` `.json` `.html` `.xml` `.doc` `.docx` `.xls` `.xlsx` `.pptx` `.zip` (others fall back to `application/octet-stream`).
49
+
50
+ ## Next Steps on Failure
51
+ - `--file and --files cannot be used together`: pick one.
52
+ - `File not found: <path>`: verify the path and that the file exists.
53
+ - `--files must be a valid JSON array`: check the JSON syntax.
54
+ - Partial failure in batch: check the response for per-file errors; successful files are still uploaded.
55
+
56
+ ## Recommended Chaining
57
+ - `+add-attachment` → `+list-attachments` (verify)
@@ -0,0 +1,75 @@
1
+ # agent +add-mcp (Add MCP Server)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **MCP Servers / write**
6
+
7
+ ## Use Cases
8
+ - Add an MCP server to the personal or company scope.
9
+ - Returns the newly created MCP server object including its `id`.
10
+ - `--scope personal` (default) creates a personal MCP server; `--scope company` creates a company MCP server (requires root/agent_admin).
11
+ - Optional market meta (`--category` / `--icon-emoji` / `--icon-color`) is applied via a follow-up PATCH to `/api/sandbox/agent/mcp-servers/[id]/meta`.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--name` and `--url` are required.
15
+ - `--name` must start with a letter and contain only letters, digits, `_`, or `-` (2–64 chars).
16
+ - `--url` must be a valid `http://` or `https://` URL (file://, ftp://, and other protocols are blocked).
17
+ - `--transport` must be `sse` or `http` (default `http`).
18
+ - `--headers` must be a valid JSON object when provided.
19
+ - `--category` must be one of the market category keys (see below) when provided.
20
+ - **MCP creation does NOT validate server connectivity** — an unreachable URL is accepted at create time and only fails when the agent calls the MCP at runtime. Double-check the URL.
21
+ - `--scope` controls target scope: `personal` (default) or `company`. Company scope requires root/agent_admin.
22
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
23
+
24
+ ## Market Category Keys
25
+ `ae_preset | dev_tool | search_tool | data_query | content_gen | enterprise | life | automation | other`
26
+
27
+ ## Command
28
+ ```bash
29
+ ae-cli agent +add-mcp \
30
+ --name my-mcp \
31
+ --url "https://mcp.example.com/mcp" \
32
+ --transport http \
33
+ --headers '{"Authorization":"Bearer token"}'
34
+
35
+ # With market category and icon
36
+ ae-cli agent +add-mcp \
37
+ --name my-mcp \
38
+ --url "https://mcp.example.com/mcp" \
39
+ --transport http \
40
+ --headers '{"Authorization":"Bearer token"}' \
41
+ --category dev_tool \
42
+ --icon-emoji robot \
43
+ --yes
44
+
45
+ # Dry-run to inspect the request before executing
46
+ ae-cli agent +add-mcp --dry-run --name my-mcp --url "https://mcp.example.com/mcp"
47
+ ```
48
+
49
+ ## Parameters
50
+ | Parameter | Required | Description |
51
+ |---|---|---|
52
+ | `--name` | Yes | Server name (2–64 chars, letter start, `[a-zA-Z0-9_-]`) |
53
+ | `--url` | Yes | MCP server URL (`http://` or `https://` only) |
54
+ | `--display-name` | No | Display name (max 100) |
55
+ | `--description` | No | Description (max 255) |
56
+ | `--transport` | No | `sse` \| `http` (default `http`) |
57
+ | `--headers` | No | HTTP headers as JSON object |
58
+ | `--category` | No | Market category key (see above) |
59
+ | `--icon-emoji` | No | Market icon emoji (e.g. `robot`) |
60
+ | `--icon-color` | No | Market icon color (e.g. `#1E76F0`) |
61
+ | `--scope` | No | Target scope: `personal` (default) or `company` (requires root/agent_admin) |
62
+
63
+ ## Decision Rules
64
+ - If the user provides an MCP spec, map the server identifier to `--name` and the endpoint to `--url`.
65
+ - Always verify the URL is reachable before creating — the CLI will not check connectivity.
66
+ - `--category` / `--icon-emoji` / `--icon-color` are optional market meta; they are applied via a follow-up PATCH after creation. If the meta update fails, the MCP is still created and a warning is printed to stderr.
67
+ - Use `--dry-run` first to verify the request shape before executing.
68
+
69
+ ## Next Steps on Failure
70
+ - `--name must start with a letter...`: rename the server to match the pattern.
71
+ - `--url only supports http:// or https:// protocols`: switch to an http(s) URL.
72
+ - Warning `MCP created but meta update failed`: the MCP exists; retry the meta with `+set-mcp-meta`.
73
+
74
+ ## Recommended Chaining
75
+ - `+list-mcp-market` (browse) → `+add-mcp` → `+list-mcps` (verify) → `+set-mcp-meta` (adjust meta)
@@ -0,0 +1,70 @@
1
+ # agent +add-model (Add Custom Model)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Models / write**
6
+
7
+ ## Use Cases
8
+ - Add a custom model to the personal or company scope.
9
+ - Returns the newly created model object including its `id`.
10
+ - `--scope personal` (default) creates a personal model; `--scope company` creates a company model (requires root/agent_admin).
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--model-id`, `--name`, and `--base-url` are required.
14
+ - `--base-url` must be a valid URL.
15
+ - `--scope` controls target scope: `personal` (default) or `company`. Company scope requires root/agent_admin; system models are read-only.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+
18
+ ## Command
19
+ ```bash
20
+ ae-cli agent +add-model \
21
+ --model-id gpt-4o \
22
+ --name "GPT-4o" \
23
+ --base-url "https://api.openai.com/v1" \
24
+ --api-key "sk-xxx" \
25
+ --provider openai
26
+
27
+ ae-cli agent +add-model \
28
+ --model-id claude-sonnet \
29
+ --name "Claude Sonnet" \
30
+ --base-url "https://api.anthropic.com/v1" \
31
+ --provider anthropic \
32
+ --context-length 200000 \
33
+ --yes
34
+
35
+ # Dry-run to inspect the request before executing
36
+ ae-cli agent +add-model --dry-run --model-id gpt-4o --name "GPT-4o" --base-url "https://api.openai.com/v1"
37
+
38
+ # Company scope (requires root/agent_admin)
39
+ ae-cli agent +add-model \
40
+ --model-id gpt-4o-company \
41
+ --name "GPT-4o (company)" \
42
+ --base-url "https://api.openai.com/v1" \
43
+ --provider openai \
44
+ --scope company \
45
+ --yes
46
+ ```
47
+
48
+ ## Parameters
49
+ | Parameter | Required | Description |
50
+ |---|---|---|
51
+ | `--model-id` | Yes | Model identifier (e.g. `gpt-4o`) |
52
+ | `--name` | Yes | Display name |
53
+ | `--base-url` | Yes | API base URL (must be a valid URL) |
54
+ | `--api-key` | No | API key |
55
+ | `--provider` | No | Provider name |
56
+ | `--description` | No | Description |
57
+ | `--context-length` | No | Context window length |
58
+ | `--scope` | No | Target scope: `personal` (default) or `company` (requires root/agent_admin) |
59
+
60
+ ## Decision Rules
61
+ - If the user provides a model spec, map the model identifier to `--model-id` and the human name to `--name`.
62
+ - `--api-key` is optional at the CLI level but usually required by the upstream provider; pass it when the user supplies one.
63
+ - Use `--dry-run` first to verify the request shape before executing.
64
+
65
+ ## Next Steps on Failure
66
+ - `--base-url must be a valid URL`: check the URL formatting.
67
+ - After success, capture the returned `id` for `+toggle-model` / `+del-model` calls.
68
+
69
+ ## Recommended Chaining
70
+ - `+list-models` (verify) → `+add-model` → `+toggle-model` (enable) → `+create-automation --model <id>`
@@ -0,0 +1,71 @@
1
+ # agent +add-skill (Create Custom Skill)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / write**
6
+
7
+ ## Use Cases
8
+ - Create a custom Skill in the personal or company scope.
9
+ - Returns the newly created Skill object including its `id`.
10
+ - `--scope personal` (default) creates a personal Skill; `--scope company` creates a company Skill (requires root/agent_admin). Company scope bypasses the submit-approve flow — the Skill is directly created as a company asset (consistent with `+upload-skill --scope company`).
11
+ - Optional market meta (`--category` / `--icon-emoji` / `--icon-color`) is applied via a follow-up PATCH to `/api/sandbox/agent/skills/[id]/meta`.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--name`, `--description`, and `--instructions` are required.
15
+ - `--name` must be 1–80 chars.
16
+ - `--instructions` supports `@-` to read from stdin (useful for piping long instruction text).
17
+ - `--category` must be one of the market category keys (see below) when provided.
18
+ - `--scope` controls target scope: `personal` (default) or `company`. Company scope requires root/agent_admin and bypasses the submit-approve flow (directly creates a company Skill, consistent with `+upload-skill --scope company`).
19
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
20
+
21
+ ## Market Category Keys
22
+ `ae_preset | dev_tool | search_tool | data_query | content_gen | enterprise | life | automation | other`
23
+
24
+ ## Command
25
+ ```bash
26
+ # Inline instructions
27
+ ae-cli agent +add-skill \
28
+ --name code-reviewer \
29
+ --description "Reviews code for best practices" \
30
+ --instructions "You are a code reviewer. Analyze the code for..."
31
+
32
+ # Instructions from stdin (useful for long text)
33
+ echo "You are a helpful assistant that..." | \
34
+ ae-cli agent +add-skill --name helper --description "Helper skill" --instructions @-
35
+
36
+ # With market category and icon
37
+ ae-cli agent +add-skill \
38
+ --name code-reviewer \
39
+ --description "Reviews code for best practices" \
40
+ --instructions "You are a code reviewer..." \
41
+ --category dev_tool \
42
+ --icon-emoji robot \
43
+ --yes
44
+
45
+ # Dry-run to inspect the request before executing
46
+ ae-cli agent +add-skill --dry-run --name helper --description "Helper" --instructions "x"
47
+ ```
48
+
49
+ ## Parameters
50
+ | Parameter | Required | Description |
51
+ |---|---|---|
52
+ | `--name` | Yes | Skill name (1–80 chars) |
53
+ | `--description` | Yes | Skill description |
54
+ | `--instructions` | Yes | Skill instructions (use `@-` to read from stdin) |
55
+ | `--display-name` | No | Display name (max 100) |
56
+ | `--category` | No | Market category key (see above) |
57
+ | `--icon-emoji` | No | Market icon emoji (e.g. `robot`) |
58
+ | `--icon-color` | No | Market icon color (e.g. `#1E76F0`) |
59
+ | `--scope` | No | Target scope: `personal` (default) or `company` (requires root/agent_admin; bypasses submit-approve flow) |
60
+
61
+ ## Decision Rules
62
+ - If the user provides long instruction text, pipe it via stdin with `--instructions @-` instead of an oversized inline string.
63
+ - `--category` / `--icon-emoji` / `--icon-color` are optional market meta; they are applied via a follow-up PATCH after creation. If the meta update fails, the Skill is still created and a warning is printed to stderr.
64
+ - Use `--dry-run` first to verify the request shape before executing.
65
+
66
+ ## Next Steps on Failure
67
+ - `stdin is empty; cannot read instructions`: ensure stdin has content when using `@-`.
68
+ - Warning `Skill created but meta update failed`: the Skill exists; retry the meta with `+set-skill-meta`.
69
+
70
+ ## Recommended Chaining
71
+ - `+add-skill` → `+list-skills` (verify) → `+set-skill-meta` (adjust meta) → `+submit-skill` (publish) or `+share-skill` (peer share)
@@ -0,0 +1,41 @@
1
+ # agent +approve-skill (Approve Skill Submission)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skill Approval (company-scope publish) / write**
6
+
7
+ ## Use Cases
8
+ - Approve a pending Skill submission (root only).
9
+ - Endpoint: `POST /api/sandbox/agent/skills/submissions/[id]/approve`.
10
+ - Approving creates an independent company-scope copy of the Skill.
11
+ - Approval is Skill-only — MCP has no approval flow.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required and must reference a **submission** record (CUID), not a Skill ID. Obtain it via `+list-skill-submissions` — do not guess.
15
+ - **Root only** — non-root users cannot approve submissions.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+ - Only `pending` submissions can be approved.
18
+
19
+ ## Command
20
+ ```bash
21
+ ae-cli agent +approve-skill --id <submission-cuid> --yes
22
+ ae-cli agent +approve-skill --dry-run --id <submission-cuid>
23
+ ```
24
+
25
+ ## Parameters
26
+ | Parameter | Required | Description |
27
+ |---|---|---|
28
+ | `--id` | Yes | Submission record ID (CUID) |
29
+
30
+ ## Decision Rules
31
+ - `--id` here is a submission ID (not a Skill ID).
32
+ - Use this after reviewing a pending submission (`+list-skill-submissions --status pending`).
33
+ - Approving creates a company-scope copy; the original personal Skill remains.
34
+ - Cannot approve a submission that is already `approved` / `rejected` / `cancelled`.
35
+
36
+ ## Next Steps on Failure
37
+ - `404` / not found: re-run `+list-skill-submissions --status pending` to verify the submission ID.
38
+ - Permission error: the current user is not root.
39
+
40
+ ## Recommended Chaining
41
+ - `+list-skill-submissions --status pending` → confirm submission `id` → `+approve-skill` (or `+reject-skill`)
@@ -0,0 +1,50 @@
1
+ # agent +attachment-stats (Attachment Library Statistics)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Attachments / read**
6
+
7
+ ## Use Cases
8
+ - Show the current user's attachment library statistics: total file count, total size, image count, document count.
9
+ - Endpoint: `GET /api/sandbox/agent/attachments/stats`.
10
+ - No parameters; returns a single statistics object for the authenticated user's own data.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - No flags. The command always returns the current user's own attachment statistics.
14
+
15
+ ## Command
16
+ ```bash
17
+ ae-cli agent +attachment-stats
18
+
19
+ # Dry-run to inspect the request
20
+ ae-cli agent +attachment-stats --dry-run
21
+ ```
22
+
23
+ ## Parameters
24
+ | Parameter | Required | Description |
25
+ |---|---|---|
26
+ | _(none)_ | — | This command takes no flags. |
27
+
28
+ ## Response Shape
29
+ ```json
30
+ {
31
+ "totalCount": 42,
32
+ "totalSize": 10485760,
33
+ "imageCount": 15,
34
+ "documentCount": 27
35
+ }
36
+ ```
37
+
38
+ | Field | Description |
39
+ |---|---|
40
+ | `totalCount` | Total number of ready attachments |
41
+ | `totalSize` | Total size in bytes (sum of all ready attachments) |
42
+ | `imageCount` | Number of image attachments (type=image) |
43
+ | `documentCount` | Number of document attachments (type=document) |
44
+
45
+ ## Next Steps on Failure
46
+ - `500` 获取附件统计失败: an internal aggregation error — retry, then contact the platform maintainer if it persists.
47
+
48
+ ## Recommended Chaining
49
+ - `+attachment-stats` (overview) → `+list-attachments` (drill into the list)
50
+ - `+add-attachment` (upload) → `+attachment-stats` (verify totals changed)
@@ -0,0 +1,57 @@
1
+ # agent +auto-provision-mcp-credentials (Auto-Provision MCP Credentials)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **MCP Credentials / write**
6
+
7
+ ## Use Cases
8
+ - Auto-provision per-user credentials for all system-scope MCP servers in one call.
9
+ - Endpoint: `POST /api/sandbox/agent/mcp-credentials/auto-provision`.
10
+ - Uses the current user's access token to mint MCP tokens via the central token-generation endpoint.
11
+ - For `useMcpToken=true` system servers, a shared MCP token is generated and stored; for OAuth system servers, the access token is stored as the credential.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--access-token` is optional; when omitted, the current session token is used automatically (via `ctx.token()`).
15
+ - The access token must be valid — an invalid/expired token causes the MCP token generation to fail (reported via `mcpTokenFailed: true` in the response).
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+ - This is a bulk operation — it upserts credentials for ALL system MCP servers visible to the current user.
18
+
19
+ ## Command
20
+ ```bash
21
+ # Auto-provision using the current session token (recommended)
22
+ ae-cli agent +auto-provision-mcp-credentials --yes
23
+
24
+ # Explicitly pass an access token
25
+ ae-cli agent +auto-provision-mcp-credentials --access-token "eyJhbGci..." --yes
26
+
27
+ # Dry-run to inspect the request
28
+ ae-cli agent +auto-provision-mcp-credentials --dry-run
29
+ ```
30
+
31
+ ## Parameters
32
+ | Parameter | Required | Description |
33
+ |---|---|---|
34
+ | `--access-token` | No | Access token (defaults to the current session token) |
35
+
36
+ ## Decision Rules
37
+ - If the user wants to set up all system MCP credentials in one step, use this command.
38
+ - Prefer running without `--access-token` — the CLI automatically sources the current session token.
39
+ - The response reports `count` (total system servers processed), `mcpTokenCount` (servers that got a shared MCP token), and `mcpTokenFailed` (whether the MCP token generation failed).
40
+ - If `mcpTokenFailed` is `true`, the MCP token endpoint may be down or the access token invalid — check the access token and retry.
41
+ - For individual credential control, use `+set-mcp-credential` instead.
42
+
43
+ ## Response Shape
44
+ ```json
45
+ {
46
+ "count": 3,
47
+ "mcpTokenCount": 1,
48
+ "mcpTokenFailed": false
49
+ }
50
+ ```
51
+
52
+ ## Next Steps on Failure
53
+ - `401` / auth expired: run `ae-cli auth login`, then retry.
54
+ - `mcpTokenFailed: true`: the MCP token generation failed — verify the access token is valid and the MCP token endpoint is configured.
55
+
56
+ ## Recommended Chaining
57
+ - `ae-cli auth login` → `+auto-provision-mcp-credentials` → `+list-mcp-credentials` (verify) → `+mcp-token` (get shared token)
@@ -0,0 +1,39 @@
1
+ # agent +cancel-skill-submission (Cancel Skill Submission)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skill Approval (company-scope publish) / write**
6
+
7
+ ## Use Cases
8
+ - Cancel a pending Skill submission.
9
+ - Endpoint: `POST /api/sandbox/agent/skills/submissions/[id]/cancel`.
10
+ - Only pending submissions can be cancelled; the submitter or root can cancel.
11
+ - Approval is Skill-only — MCP has no approval flow.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required and must reference a **submission** record (CUID), not a Skill ID. Obtain it via `+list-skill-submissions` — do not guess.
15
+ - Only the submitter or root can cancel a submission.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+
18
+ ## Command
19
+ ```bash
20
+ ae-cli agent +cancel-skill-submission --id <submission-cuid> --yes
21
+ ae-cli agent +cancel-skill-submission --dry-run --id <submission-cuid>
22
+ ```
23
+
24
+ ## Parameters
25
+ | Parameter | Required | Description |
26
+ |---|---|---|
27
+ | `--id` | Yes | Submission record ID (CUID) |
28
+
29
+ ## Decision Rules
30
+ - `--id` here is a submission ID (not a Skill ID) — `+submit-skill` / `+share-skill` / `+copy-skill` take a Skill ID instead.
31
+ - Use this when the submitter wants to withdraw a pending submission before review.
32
+ - Cannot cancel a submission that is already `approved` / `rejected` / `cancelled`.
33
+
34
+ ## Next Steps on Failure
35
+ - `404` / not found: re-run `+list-skill-submissions --status pending` to verify the submission ID.
36
+ - Permission error: only the submitter or root can cancel.
37
+
38
+ ## Recommended Chaining
39
+ - `+list-skill-submissions --status pending` → confirm submission `id` → `+cancel-skill-submission`
@@ -0,0 +1,53 @@
1
+ # agent +copy-skill (Copy Skill to Personal)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Copy to personal / write**
6
+
7
+ ## Use Cases
8
+ - Copy a system/company Skill to an independent personal copy.
9
+ - Endpoint: `POST /api/sandbox/agent/skills/[id]/copy`.
10
+ - The copy is an independent duplicate — changes to the source do not affect the copy and vice versa.
11
+ - Optional `--category` / `--icon-emoji` / `--icon-color` override the copy's market meta; omit them to inherit the source's.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required. Obtain the real source Skill record ID (CUID, system or company scope) via `+list-skill-market` or `+list-skills` — do not guess.
15
+ - `--category` must be one of the market category keys (see below) when provided.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+ - MCP has no copy flow (use `+toggle-mcp` to enable a system/company MCP per-user).
18
+
19
+ ## Market Category Keys
20
+ `ae_preset | dev_tool | search_tool | data_query | content_gen | enterprise | life | automation | other`
21
+
22
+ ## Command
23
+ ```bash
24
+ # Copy with inherited meta
25
+ ae-cli agent +copy-skill --id <skill-cuid> --yes
26
+
27
+ # Copy with overridden category and icon
28
+ ae-cli agent +copy-skill --id <skill-cuid> --category dev_tool --icon-emoji robot --yes
29
+
30
+ # Dry-run to inspect the request before executing
31
+ ae-cli agent +copy-skill --dry-run --id <skill-cuid>
32
+ ```
33
+
34
+ ## Parameters
35
+ | Parameter | Required | Description |
36
+ |---|---|---|
37
+ | `--id` | Yes | Source Skill record ID (CUID, system or company scope) |
38
+ | `--category` | No | Market category key for the copy (see above) |
39
+ | `--icon-emoji` | No | Override market icon emoji (e.g. `robot`) |
40
+ | `--icon-color` | No | Override market icon color (e.g. `#1E76F0`) |
41
+
42
+ ## Decision Rules
43
+ - If the user wants a personal version of a system/company Skill, use `+copy-skill` (not `+add-skill`).
44
+ - Omit `--category` / `--icon-emoji` / `--icon-color` to inherit the source's meta; provide them to override.
45
+ - MCP has no copy — to use a system/company MCP, toggle it on per-user with `+toggle-mcp`.
46
+ - Use `--dry-run` first to verify the request shape before executing.
47
+
48
+ ## Next Steps on Failure
49
+ - `--category must be one of...`: use one of the category keys.
50
+ - `404` / not found: re-run `+list-skill-market` / `+list-skills` to verify the source Skill ID and scope.
51
+
52
+ ## Recommended Chaining
53
+ - `+list-skill-market` (browse) → `+copy-skill` (copy to personal) → `+list-skills` (verify) → `+set-skill-meta` (adjust)
@@ -0,0 +1,71 @@
1
+ # agent +create-agent (Create Agent)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Agents / write**
6
+
7
+ ## Use Cases
8
+ - Create a new Agent in the personal scope (default) or company scope (requires root/agent_admin).
9
+ - Returns the newly created Agent object including its `id`.
10
+ - Wire up an existing model, MCP servers, and Skills in one call.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--name` is required (1–100 chars).
14
+ - `--scope` defaults to `personal`; `company` requires root/agent_admin privileges.
15
+ - `--instructions` maps to the Agent's system prompt; supports `@-` to read from stdin.
16
+ - `--mcp-ids` / `--skill-ids` must be JSON array strings when provided.
17
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
18
+ - Do not guess model / MCP / Skill IDs. Discover them with `+list-*` commands first.
19
+
20
+ ## Command
21
+ ```bash
22
+ # Minimal create
23
+ ae-cli agent +create-agent --name "daily-report" --description "Daily report agent"
24
+
25
+ # With model, MCP servers, and Skills
26
+ ae-cli agent +create-agent \
27
+ --name "daily-report" \
28
+ --description "Daily report agent" \
29
+ --model-id "cm1uuid" \
30
+ --mcp-ids '["mcp-cuid-1","mcp-cuid-2"]' \
31
+ --skill-ids '["skill-cuid-1"]' \
32
+ --yes
33
+
34
+ # Instructions from stdin (useful for long prompts)
35
+ echo "You are a helpful assistant that..." | \
36
+ ae-cli agent +create-agent --name helper --instructions @-
37
+
38
+ # Auto-rename on name conflict (appends -1, -2, ...)
39
+ ae-cli agent +create-agent --name "daily-report" --auto-rename --yes
40
+
41
+ # Dry-run to inspect the request before executing
42
+ ae-cli agent +create-agent --dry-run --name "daily-report" --description "x"
43
+ ```
44
+
45
+ ## Parameters
46
+ | Parameter | Required | Description |
47
+ |---|---|---|
48
+ | `--name` | Yes | Agent name (1–100 chars) |
49
+ | `--description` | No | Agent description (max 2000 chars) |
50
+ | `--instructions` | No | Agent system prompt (use `@-` to read from stdin) |
51
+ | `--scope` | No | `personal` \| `company` (default `personal`; `company` requires root/agent_admin) |
52
+ | `--model-id` | No | Model identifier (`Model.id` uuid or legacy `modelId`); omit to use the global default |
53
+ | `--mcp-ids` | No | MCP server record IDs as JSON array string (e.g. `["id1","id2"]`) |
54
+ | `--skill-ids` | No | Skill record IDs as JSON array string |
55
+ | `--auto-rename` | No | Auto-rename on name conflict (append `-N` suffix) |
56
+
57
+ ## Decision Rules
58
+ - If the user provides long instruction text, pipe it via stdin with `--instructions @-` instead of an oversized inline string.
59
+ - `--model-id` accepts both the model record UUID and the legacy model identifier; the server resolves and stores the UUID. Omit it to use the global default model.
60
+ - `--mcp-ids` / `--skill-ids` replace the full list on create; pass `[]` or omit to leave the list empty.
61
+ - Use `--dry-run` first to verify the request shape before executing.
62
+ - On name conflict, the server returns `409 NAME_EXISTS`; pass `--auto-rename` to auto-resolve.
63
+
64
+ ## Next Steps on Failure
65
+ - `Agent 名称已存在` (409): re-run with `--auto-rename`, or pick a different `--name`.
66
+ - `模型不存在或已删除`: verify the model ID with `+list-models`.
67
+ - `MCP 数量超过上限` / `Skill 数量超过上限`: reduce the IDs in `--mcp-ids` / `--skill-ids`.
68
+ - `stdin is empty; cannot read instructions`: ensure stdin has content when using `@-`.
69
+
70
+ ## Recommended Chaining
71
+ - `+list-models` / `+list-mcps` / `+list-skills` (discover IDs) → `+create-agent` → `+get-agent` (verify) → `+create-automation --agent-id <id>`