@thinkingai/ae-cli 6.0.24 → 6.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.
Files changed (185) 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-JX3V76OI.js → te-analysis-5WZKVFHI.js} +1332 -338
  28. package/dist/{te-analysis-CRPFK3LX.js → te-analysis-KAEZXLNS.js} +1332 -338
  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 +60 -6
  112. package/skills/ae-analysis/references/analysis_gateway_assets.md +27 -10
  113. package/skills/ae-analysis/references/artifact_download.md +17 -0
  114. package/skills/ae-analysis/references/asset_abnormal_get.md +27 -0
  115. package/skills/ae-analysis/references/asset_abnormal_list.md +24 -0
  116. package/skills/ae-analysis/references/asset_authentication_list.md +23 -0
  117. package/skills/ae-analysis/references/asset_authentication_update.md +24 -0
  118. package/skills/ae-analysis/references/asset_recent_list.md +24 -0
  119. package/skills/ae-analysis/references/asset_search.md +24 -0
  120. package/skills/ae-analysis/references/bi_panel_get.md +5 -0
  121. package/skills/ae-analysis/references/bi_panel_page_data_export.md +11 -1
  122. package/skills/ae-analysis/references/bi_panel_share.md +6 -0
  123. package/skills/ae-analysis/references/bi_panel_update.md +4 -1
  124. package/skills/ae-analysis/references/bi_panel_version_get.md +23 -0
  125. package/skills/ae-analysis/references/bi_panel_version_publish.md +20 -0
  126. package/skills/ae-analysis/references/dashboard_copy.md +3 -1
  127. package/skills/ae-analysis/references/dashboard_daily_report_send.md +9 -2
  128. package/skills/ae-analysis/references/dashboard_daily_report_update.md +3 -1
  129. package/skills/ae-analysis/references/dashboard_definition_export.md +21 -3
  130. package/skills/ae-analysis/references/dashboard_report_data_export.md +17 -1
  131. package/skills/ae-analysis/references/dashboard_report_data_run.md +6 -0
  132. package/skills/ae-analysis/references/datatable_columns_get.md +24 -0
  133. package/skills/ae-analysis/references/datatable_influence_list.md +24 -0
  134. package/skills/ae-analysis/references/datatable_version_get.md +24 -0
  135. package/skills/ae-analysis/references/datatable_version_list.md +24 -0
  136. package/skills/ae-analysis/references/event_changelog_list.md +24 -0
  137. package/skills/ae-analysis/references/event_create.md +24 -0
  138. package/skills/ae-analysis/references/event_delete.md +24 -0
  139. package/skills/ae-analysis/references/event_get.md +24 -0
  140. package/skills/ae-analysis/references/event_hide_update.md +25 -0
  141. package/skills/ae-analysis/references/event_influence_list.md +24 -0
  142. package/skills/ae-analysis/references/event_list.md +23 -0
  143. package/skills/ae-analysis/references/event_relation_update.md +24 -0
  144. package/skills/ae-analysis/references/event_update.md +26 -0
  145. package/skills/ae-analysis/references/exchange_config_update.md +24 -0
  146. package/skills/ae-analysis/references/exchange_rate_refresh.md +23 -0
  147. package/skills/ae-analysis/references/exchange_rule_list.md +23 -0
  148. package/skills/ae-analysis/references/exchange_rule_update.md +24 -0
  149. package/skills/ae-analysis/references/exchange_rule_validate.md +24 -0
  150. package/skills/ae-analysis/references/metric_create.md +24 -0
  151. package/skills/ae-analysis/references/metric_delete.md +24 -0
  152. package/skills/ae-analysis/references/metric_get.md +24 -0
  153. package/skills/ae-analysis/references/metric_list.md +24 -0
  154. package/skills/ae-analysis/references/metric_update.md +24 -0
  155. package/skills/ae-analysis/references/project_space_create.md +1 -1
  156. package/skills/ae-analysis/references/property_changelog_list.md +25 -0
  157. package/skills/ae-analysis/references/property_create.md +25 -0
  158. package/skills/ae-analysis/references/property_delete.md +25 -0
  159. package/skills/ae-analysis/references/property_get.md +25 -0
  160. package/skills/ae-analysis/references/property_hide_update.md +26 -0
  161. package/skills/ae-analysis/references/property_influence_list.md +25 -0
  162. package/skills/ae-analysis/references/property_list.md +24 -0
  163. package/skills/ae-analysis/references/property_related_events.md +24 -0
  164. package/skills/ae-analysis/references/property_relation_update.md +25 -0
  165. package/skills/ae-analysis/references/property_update.md +27 -0
  166. package/skills/ae-analysis/references/run_inspect.md +22 -0
  167. package/skills/ae-analysis/references/super_metadata_export.md +36 -0
  168. package/skills/ae-analysis/references/super_metadata_import.md +24 -0
  169. package/skills/ae-analysis/references/virtual_event_create.md +25 -0
  170. package/skills/ae-analysis/references/virtual_event_delete.md +24 -0
  171. package/skills/ae-analysis/references/virtual_event_get.md +24 -0
  172. package/skills/ae-analysis/references/virtual_property_create.md +24 -0
  173. package/skills/ae-analysis/references/virtual_property_sql_rule_delete.md +25 -0
  174. package/skills/ae-analysis/references/virtual_property_sql_rule_update.md +24 -0
  175. package/skills/ae-dataops/references/dataops-flow-create.md +2 -2
  176. package/skills/ae-dataops/references/dataops-flow-monitor.md +3 -3
  177. package/skills/ae-dataops/references/dataops-integration.md +1 -0
  178. package/skills/ae-engage/references/flow-node-config-schema.md +32 -8
  179. package/skills/ae-engage/references/save-flow.md +65 -29
  180. package/skills/ae-engage/references/validate-flow-node-config.md +28 -10
  181. package/skills/ae-generate-tracking-code/SKILL.md +16 -1
  182. package/skills/ae-generate-tracking-code/references/snippet-delivery.md +17 -1
  183. package/skills/ae-generate-tracking-plan/SKILL.md +36 -12
  184. package/dist/chunk-OCQPQYHZ.js +0 -105
  185. package/dist/cli-token-OZXHC3U2.js +0 -14
@@ -0,0 +1,35 @@
1
+ # agent +list-skill-assets (List Skill Assets)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / read**
6
+
7
+ ## Use Cases
8
+ - List all files in a Skill's `assets` directory.
9
+ - Endpoint: `GET /api/sandbox/agent/skills/[id]/assets`.
10
+ - Returns `{ items: [...] }` with file metadata (name, size, etc.).
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
14
+
15
+ ## Command
16
+ ```bash
17
+ ae-cli agent +list-skill-assets --id <skill-cuid>
18
+ ae-cli agent +list-skill-assets --dry-run --id <skill-cuid>
19
+ ```
20
+
21
+ ## Parameters
22
+ | Parameter | Required | Description |
23
+ |---|---|---|
24
+ | `--id` | Yes | Skill record ID (CUID) |
25
+
26
+ ## Decision Rules
27
+ - Use `+list-skills` to confirm the Skill ID before listing assets.
28
+ - Read operation: no confirmation prompt needed.
29
+ - Assets include images, documents, and other supporting files for the Skill.
30
+
31
+ ## Next Steps on Failure
32
+ - `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
33
+
34
+ ## Recommended Chaining
35
+ - `+list-skills` → confirm `id` → `+list-skill-assets` → `+read-skill-asset` or `+upload-skill-asset`
@@ -0,0 +1,59 @@
1
+ # agent +list-skill-market (List Skill Market)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Market (browse) / read**
6
+
7
+ ## Use Cases
8
+ - List Skills from the market (only approved items; system / company / personal scopes).
9
+ - Endpoint: `GET /api/sandbox/agent/skills/market`.
10
+ - Supports filtering by scope, category, search, and sort, with pagination.
11
+ - Use this to discover Skills before copying one with `+copy-skill`.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--scope` must be one of the market scopes when provided (see below).
15
+ - `--category` must be one of the market category keys when provided (see below).
16
+ - `--sort` must be one of the sort options when provided (see below).
17
+ - Only approved Skills appear in the market; pending/rejected submissions are not listed.
18
+
19
+ ## Market Scope
20
+ `all | system | company | custom` (`custom` = personal; `all` = system + company + personal)
21
+
22
+ ## Market Category Keys
23
+ `ae_preset | dev_tool | search_tool | data_query | content_gen | enterprise | life | automation | other`
24
+
25
+ ## Sort Options
26
+ `newest | calls | likes` (`calls` sorts Skills by download count)
27
+
28
+ ## Command
29
+ ```bash
30
+ ae-cli agent +list-skill-market
31
+ ae-cli agent +list-skill-market --search "code review" --sort newest --format table
32
+ ae-cli agent +list-skill-market --scope company --category dev_tool --sort calls
33
+ ae-cli agent +list-skill-market --limit 20 --offset 0
34
+ ae-cli agent +list-skill-market --dry-run --scope system
35
+ ```
36
+
37
+ ## Parameters
38
+ | Parameter | Required | Description |
39
+ |---|---|---|
40
+ | `--scope` | No | Market scope (see above; default `all`) |
41
+ | `--category` | No | Category key (see above) |
42
+ | `--search` | No | Fuzzy search on name/displayName/description |
43
+ | `--sort` | No | Sort option (see above; default `newest`) |
44
+ | `--limit` | No | Page size (1–100, default 50) |
45
+ | `--offset` | No | Page offset (>=0, default 0) |
46
+
47
+ ## Decision Rules
48
+ - When the user wants to browse available Skills, call this first.
49
+ - `--sort calls` finds the most-downloaded Skills; `--sort newest` finds the latest.
50
+ - Use `--format table` for a scannable overview.
51
+ - To bring a system/company Skill into your personal workspace, use `+copy-skill` (not `+add-skill`).
52
+
53
+ ## Next Steps on Failure
54
+ - `--scope must be one of...`: use one of the market scope values.
55
+ - `--category must be one of...`: use one of the category keys.
56
+ - Empty result: widen filters (remove `--category` / `--scope`).
57
+
58
+ ## Recommended Chaining
59
+ - `+list-skill-market` (browse) → `+copy-skill` (copy to personal) → `+list-skills` (verify)
@@ -0,0 +1,36 @@
1
+ # agent +list-skill-references (List Skill References)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / read**
6
+
7
+ ## Use Cases
8
+ - List all `.md` files in a Skill's `references` directory.
9
+ - Endpoint: `GET /api/sandbox/agent/skills/[id]/references`.
10
+ - Returns `{ items: [...] }` with file metadata (name, size, etc.).
11
+ - Only `.md` files are listed (references directory is markdown-only).
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
15
+
16
+ ## Command
17
+ ```bash
18
+ ae-cli agent +list-skill-references --id <skill-cuid>
19
+ ae-cli agent +list-skill-references --dry-run --id <skill-cuid>
20
+ ```
21
+
22
+ ## Parameters
23
+ | Parameter | Required | Description |
24
+ |---|---|---|
25
+ | `--id` | Yes | Skill record ID (CUID) |
26
+
27
+ ## Decision Rules
28
+ - Use `+list-skills` to confirm the Skill ID before listing references.
29
+ - Read operation: no confirmation prompt needed.
30
+ - References are `.md` files that provide additional context for the Skill.
31
+
32
+ ## Next Steps on Failure
33
+ - `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
34
+
35
+ ## Recommended Chaining
36
+ - `+list-skills` → confirm `id` → `+list-skill-references` → `+read-skill-reference` or `+upload-skill-reference`
@@ -0,0 +1,35 @@
1
+ # agent +list-skill-scripts (List Skill Scripts)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / read**
6
+
7
+ ## Use Cases
8
+ - List all files in a Skill's `scripts` directory.
9
+ - Endpoint: `GET /api/sandbox/agent/skills/[id]/scripts`.
10
+ - Returns `{ items: [...] }` with file metadata (name, size, etc.).
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real Skill record ID (CUID) via `+list-skills` — do not guess.
14
+
15
+ ## Command
16
+ ```bash
17
+ ae-cli agent +list-skill-scripts --id <skill-cuid>
18
+ ae-cli agent +list-skill-scripts --dry-run --id <skill-cuid>
19
+ ```
20
+
21
+ ## Parameters
22
+ | Parameter | Required | Description |
23
+ |---|---|---|
24
+ | `--id` | Yes | Skill record ID (CUID) |
25
+
26
+ ## Decision Rules
27
+ - Use `+list-skills` to confirm the Skill ID before listing scripts.
28
+ - Read operation: no confirmation prompt needed.
29
+ - Scripts are executable files that support the Skill's functionality.
30
+
31
+ ## Next Steps on Failure
32
+ - `404` / not found: re-run `+list-skills` to verify the Skill ID and scope.
33
+
34
+ ## Recommended Chaining
35
+ - `+list-skills` → confirm `id` → `+list-skill-scripts` → `+read-skill-script` or `+upload-skill-script`
@@ -0,0 +1,49 @@
1
+ # agent +list-skill-shares (List Skill Shares)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skill Share (peer-to-peer) / read**
6
+
7
+ ## Use Cases
8
+ - List Skill shares (received by default; use `--direction sent` for outgoing).
9
+ - Endpoint: `GET /api/sandbox/agent/skills/shares`.
10
+ - Sharing is Skill-only — MCP has no share flow.
11
+ - Use this to find a share ID before `+accept-skill-share` / `+reject-skill-share`.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--direction` must be one of the share directions (see below) when provided.
15
+ - `--status` must be one of the share statuses (see below) when provided.
16
+ - Do not guess share IDs. Always call `+list-skill-shares` first when a share ID is needed.
17
+
18
+ ## Share Directions
19
+ `received | sent`
20
+
21
+ ## Share Statuses
22
+ `pending | accepted | rejected`
23
+
24
+ ## Command
25
+ ```bash
26
+ ae-cli agent +list-skill-shares
27
+ ae-cli agent +list-skill-shares --direction received --status pending --format table
28
+ ae-cli agent +list-skill-shares --direction sent
29
+ ae-cli agent +list-skill-shares --dry-run --direction received
30
+ ```
31
+
32
+ ## Parameters
33
+ | Parameter | Required | Description |
34
+ |---|---|---|
35
+ | `--direction` | No | `received` (default) \| `sent` |
36
+ | `--status` | No | Filter by status (see above) |
37
+
38
+ ## Decision Rules
39
+ - By default, lists shares the current user has **received**; use `--direction sent` to list outgoing shares.
40
+ - `--status pending` filters to shares awaiting action.
41
+ - Capture the share `id` for `+accept-skill-share` / `+reject-skill-share`.
42
+
43
+ ## Next Steps on Failure
44
+ - `--direction must be one of...`: use `received` or `sent`.
45
+ - `--status must be one of...`: use one of the share statuses.
46
+ - Empty result: no shares match the filter.
47
+
48
+ ## Recommended Chaining
49
+ - `+list-skill-shares --direction received --status pending` → confirm share `id` → `+accept-skill-share` / `+reject-skill-share`
@@ -0,0 +1,45 @@
1
+ # agent +list-skill-submissions (List Skill Submissions)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skill Approval (company-scope publish) / read**
6
+
7
+ ## Use Cases
8
+ - List Skill submissions (approvals).
9
+ - Endpoint: `GET /api/sandbox/agent/skills/submissions`.
10
+ - Root sees all company submissions; non-root users see only their own.
11
+ - Use this to find a submission ID before `+cancel-skill-submission` / `+approve-skill` / `+reject-skill`.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--status` must be one of the submission statuses (see below) when provided.
15
+ - Do not guess submission IDs. Always call `+list-skill-submissions` first when a submission ID is needed.
16
+
17
+ ## Submission Statuses
18
+ `pending | approved | rejected | cancelled`
19
+
20
+ ## Command
21
+ ```bash
22
+ ae-cli agent +list-skill-submissions
23
+ ae-cli agent +list-skill-submissions --status pending --format table
24
+ ae-cli agent +list-skill-submissions --mine
25
+ ae-cli agent +list-skill-submissions --dry-run --status pending
26
+ ```
27
+
28
+ ## Parameters
29
+ | Parameter | Required | Description |
30
+ |---|---|---|
31
+ | `--status` | No | Filter by status (see above) |
32
+ | `--mine` | No | Only show submissions created by the current user (root only) |
33
+
34
+ ## Decision Rules
35
+ - When the user wants to review pending submissions, use `--status pending`.
36
+ - Root users can see all company submissions; non-root users only see their own.
37
+ - `--mine` (root only) filters to the current user's own submissions.
38
+ - Capture the submission `id` for `+cancel-skill-submission` / `+approve-skill` / `+reject-skill`.
39
+
40
+ ## Next Steps on Failure
41
+ - `--status must be one of...`: use one of the submission statuses.
42
+ - Empty result: no submissions match the filter.
43
+
44
+ ## Recommended Chaining
45
+ - `+list-skill-submissions` → confirm submission `id` → `+cancel-skill-submission` (submitter/root) or `+approve-skill` / `+reject-skill` (root)
@@ -0,0 +1,37 @@
1
+ # agent +list-skills (List Skills)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Skills / read**
6
+
7
+ ## Use Cases
8
+ - List Skills visible to the current user (personal / company / system scopes).
9
+ - Returns an array of Skill summaries; key fields include `id`, `name`, `description`, `scope`, `enabled`.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - Do not guess Skill record IDs. Always call `+list-skills` first when an ID is needed.
13
+
14
+ ## Command
15
+ ```bash
16
+ ae-cli agent +list-skills
17
+ ae-cli agent +list-skills --scope personal --format table
18
+ ae-cli agent +list-skills --scope company
19
+ ae-cli agent +list-skills --dry-run
20
+ ```
21
+
22
+ ## Parameters
23
+ | Parameter | Required | Description |
24
+ |---|---|---|
25
+ | `--scope` | No | Filter by scope: `personal` \| `company` \| `system` |
26
+
27
+ ## Decision Rules
28
+ - When the user needs a Skill ID for `+del-skill` / `+toggle-skill` / `+copy-skill` / `+submit-skill` / `+share-skill` / `+set-skill-meta`, call this first.
29
+ - Use `--format table` for a scannable overview of many skills.
30
+
31
+ ## Next Steps on Failure
32
+ - Empty result: confirm account permissions and the active AE host.
33
+ - Auth error: run `ae-cli auth login`.
34
+
35
+ ## Recommended Chaining
36
+ - `+list-skills` → confirm `id` → `+toggle-skill` / `+del-skill` / `+copy-skill` / `+submit-skill` / `+share-skill`
37
+ - `+list-skill-market` (browse) → `+add-skill` (create) → `+list-skills` (verify)
@@ -0,0 +1,50 @@
1
+ # agent +mcp-auth-disconnect (Disconnect MCP OAuth)
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
+ - Disconnect the OAuth authorization for an MCP server.
9
+ - Endpoint: `POST /api/sandbox/agent/mcp-servers/[id]/auth/disconnect`.
10
+ - Clears the stored token / credentialJson / identityJson and marks the server `enabled=false`.
11
+ - Use this to revoke a stale credential before re-authorizing, or to fully detach from an OAuth provider.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
15
+ - After disconnect, the MCP server is disabled (`enabled=false`); re-enable with `+toggle-mcp --enabled true` after re-authorizing.
16
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
17
+
18
+ ## Command
19
+ ```bash
20
+ # Disconnect OAuth
21
+ ae-cli agent +mcp-auth-disconnect --id <mcp-cuid> --yes
22
+
23
+ # Dry-run to inspect the request
24
+ ae-cli agent +mcp-auth-disconnect --dry-run --id <mcp-cuid>
25
+ ```
26
+
27
+ ## Parameters
28
+ | Parameter | Required | Description |
29
+ |---|---|---|
30
+ | `--id` | Yes | MCP server record ID (CUID) |
31
+
32
+ ## Decision Rules
33
+ - If the user wants to revoke an MCP's OAuth credential and disable the server, use this command.
34
+ - After disconnecting, to use the MCP again: run `+mcp-auth-start` to re-authorize, then `+toggle-mcp --enabled true` (if not auto-enabled).
35
+ - Disconnect does NOT delete the MCP server record — it only clears the OAuth credential. To delete the record, use `+del-mcp`.
36
+
37
+ ## Response Shape
38
+ ```json
39
+ {
40
+ "ok": true,
41
+ "status": "disconnected",
42
+ "server": { "id": "clxxx", "name": "my-mcp", "displayName": "My MCP", "scope": "personal", "providerKey": "github" }
43
+ }
44
+ ```
45
+
46
+ ## Next Steps on Failure
47
+ - `404` / not found: re-run `+list-mcps` to verify the server ID.
48
+
49
+ ## Recommended Chaining
50
+ - `+list-mcps` → confirm `id` → `+mcp-auth-disconnect` → `+mcp-auth-start` (re-authorize) → `+mcp-auth-status` (verify) → `+toggle-mcp --enabled true`
@@ -0,0 +1,61 @@
1
+ # agent +mcp-auth-start (Start MCP OAuth)
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
+ - Start the OAuth authorization flow for an MCP server (CLI mode).
9
+ - Endpoint: `POST /api/sandbox/agent/mcp-servers/[id]/auth/start`.
10
+ - The sandbox endpoint always uses `cliMode=true`: the server derives the OAuth callback URL itself, so no `origin` is required.
11
+ - Returns an `authorizeUrl` — the user opens it in a browser, authorizes, then polls `+mcp-auth-status` until the status becomes `authenticated`.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
15
+ - The MCP server must have `authMode=oauth2`; otherwise the server returns `oauth_not_required`.
16
+ - `--redirect-after` (when provided) must be same-origin as the service base URL; otherwise it is rejected.
17
+ - `--cli` defaults to `true` and is always true on the sandbox endpoint — it is for documentation/compat only.
18
+ - Write operation: keep the confirmation prompt unless `--yes` is explicitly requested.
19
+
20
+ ## Command
21
+ ```bash
22
+ # Start OAuth for an MCP server
23
+ ae-cli agent +mcp-auth-start --id <mcp-cuid> --yes
24
+
25
+ # With a redirect-after URL
26
+ ae-cli agent +mcp-auth-start --id <mcp-cuid> --redirect-after "https://app.example.com/mcp/done" --yes
27
+
28
+ # Dry-run to inspect the request
29
+ ae-cli agent +mcp-auth-start --dry-run --id <mcp-cuid>
30
+ ```
31
+
32
+ ## Parameters
33
+ | Parameter | Required | Description |
34
+ |---|---|---|
35
+ | `--id` | Yes | MCP server record ID (CUID) |
36
+ | `--redirect-after` | No | URL to redirect to after OAuth completes (must be same-origin as the service base URL) |
37
+ | `--cli` | No | CLI mode (always `true` on the sandbox endpoint; server derives the callback URL) |
38
+
39
+ ## Decision Rules
40
+ - If the user needs to authorize an OAuth-based MCP server, use this command.
41
+ - The command prints the `authorizeUrl` to stderr (when a TTY is detected) with guidance to open it in a browser and then poll `+mcp-auth-status`.
42
+ - The response also includes `expiresAt` (the auth session expiry, ~10 minutes) and `redirectUri` (the server-derived callback).
43
+ - After the user completes authorization in the browser, poll `+mcp-auth-status --id <id>` until `status` is `authenticated`.
44
+
45
+ ## Response Shape
46
+ ```json
47
+ {
48
+ "authorizeUrl": "https://provider.com/oauth/authorize?...",
49
+ "expiresAt": "2026-07-06T12:10:00.000Z",
50
+ "redirectUri": "https://te-claude.example.com/agent/api/mcp-auth/callback",
51
+ "server": { "id": "clxxx", "name": "my-mcp", "displayName": "My MCP", "scope": "personal", "providerKey": "github" }
52
+ }
53
+ ```
54
+
55
+ ## Next Steps on Failure
56
+ - `404` / not found: re-run `+list-mcps` to verify the server ID.
57
+ - `400` oauth_not_required: the MCP server does not use OAuth; check `--auth-mode`.
58
+ - `400` origin_required / origin_protocol_unsupported / origin_illegal: check the `--redirect-after` URL.
59
+
60
+ ## Recommended Chaining
61
+ - `+list-mcps` → confirm `id` → `+mcp-auth-start` → (browser authorize) → `+mcp-auth-status` (poll) → `+mcp-tools` (verify)
@@ -0,0 +1,56 @@
1
+ # agent +mcp-auth-status (Query MCP OAuth Status)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **MCP Servers / read**
6
+
7
+ ## Use Cases
8
+ - Query the OAuth authorization status of an MCP server.
9
+ - Endpoint: `GET /api/sandbox/agent/mcp-servers/[id]/auth/status`.
10
+ - Used as the polling step after `+mcp-auth-start`: the user authorizes in a browser, then polls this command until `status` becomes `authenticated`.
11
+ - Internally attempts an auto-refresh of soon-to-expire tokens before reporting status.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
15
+
16
+ ## Command
17
+ ```bash
18
+ # Poll OAuth status
19
+ ae-cli agent +mcp-auth-status --id <mcp-cuid>
20
+
21
+ # Dry-run to inspect the request
22
+ ae-cli agent +mcp-auth-status --dry-run --id <mcp-cuid>
23
+ ```
24
+
25
+ ## Parameters
26
+ | Parameter | Required | Description |
27
+ |---|---|---|
28
+ | `--id` | Yes | MCP server record ID (CUID) |
29
+
30
+ ## Decision Rules
31
+ - Poll this command after `+mcp-auth-start` until `status` is `authenticated`.
32
+ - The `status` field can be:
33
+ - `not_required` — the MCP does not use OAuth (authMode ≠ oauth2).
34
+ - `needs_auth` — no credential exists yet; run `+mcp-auth-start`.
35
+ - `reauth_required` — the credential has expired; run `+mcp-auth-start` to re-authorize.
36
+ - `disabled` — the MCP server is disabled; run `+toggle-mcp --enabled true`.
37
+ - `authenticated` — the credential is valid and ready to use.
38
+ - `authenticated` is `true` only when `status` is `authenticated`.
39
+ - `expiresAt` is the credential expiry (ISO string) or `null` if not applicable.
40
+
41
+ ## Response Shape
42
+ ```json
43
+ {
44
+ "status": "authenticated",
45
+ "authenticated": true,
46
+ "expiresAt": "2026-07-06T13:00:00.000Z",
47
+ "updatedAt": "2026-07-06T12:30:00.000Z",
48
+ "reason": "oauth_not_required"
49
+ }
50
+ ```
51
+
52
+ ## Next Steps on Failure
53
+ - `404` / not found: re-run `+list-mcps` to verify the server ID.
54
+
55
+ ## Recommended Chaining
56
+ - `+mcp-auth-start` → (browser authorize) → `+mcp-auth-status` (poll until `authenticated`) → `+mcp-tools` (verify tools are accessible)
@@ -0,0 +1,68 @@
1
+ # agent +mcp-stats (MCP Call Statistics)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **MCP Servers / read**
6
+
7
+ ## Use Cases
8
+ - Show MCP tool call statistics for the current user over the last N days.
9
+ - Endpoint: `GET /api/sandbox/agent/mcp-servers/stats`.
10
+ - Returns aggregations: total calls, by-server, daily, and daily-by-server.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--days` must be an integer between 1 and 365 when provided; defaults to 30.
14
+ - Statistics are scoped to the authenticated user's own MCP usage.
15
+
16
+ ## Command
17
+ ```bash
18
+ # Default: last 30 days
19
+ ae-cli agent +mcp-stats
20
+
21
+ # Last 7 days
22
+ ae-cli agent +mcp-stats --days 7
23
+
24
+ # Dry-run to inspect the request
25
+ ae-cli agent +mcp-stats --dry-run --days 7
26
+ ```
27
+
28
+ ## Parameters
29
+ | Parameter | Required | Description |
30
+ |---|---|---|
31
+ | `--days` | No | Lookback window in days (1-365, default 30) |
32
+
33
+ ## Response Shape
34
+ ```json
35
+ {
36
+ "days": 30,
37
+ "totalCalls": 128,
38
+ "byServer": { "clxxx-server-a": 80, "clxxx-server-b": 48 },
39
+ "daily": [
40
+ { "date": "2026-06-07", "calls": 5 },
41
+ { "date": "2026-06-08", "calls": 0 }
42
+ ],
43
+ "dailyByServer": {
44
+ "clxxx-server-a": { "2026-06-07": 3, "2026-06-08": 0 }
45
+ }
46
+ }
47
+ ```
48
+
49
+ | Field | Description |
50
+ |---|---|
51
+ | `days` | The lookback window used for this query |
52
+ | `totalCalls` | Sum of all MCP tool calls over the window |
53
+ | `byServer` | Map of `mcpServerId` → call count |
54
+ | `daily` | Array of `{ date, calls }` for each day in the window (oldest → newest) |
55
+ | `dailyByServer` | Map of `mcpServerId` → `{ date: calls }` |
56
+
57
+ ## Decision Rules
58
+ - Use `--days 7` for a weekly review, `--days 30` (default) for a monthly review.
59
+ - `daily` always contains one entry per day in the window (zero-filled), so it is safe to chart directly.
60
+ - `byServer` only contains servers with at least one call in the window; cross-reference IDs with `+list-mcps` to resolve names.
61
+
62
+ ## Next Steps on Failure
63
+ - `--days must be an integer between 1 and 365`: pass an integer in range.
64
+ - `500` 获取 MCP 调用统计失败: an internal aggregation error — retry, then contact the platform maintainer if it persists.
65
+
66
+ ## Recommended Chaining
67
+ - `+mcp-stats` (which servers are active) → `+list-mcps` (resolve server IDs to names)
68
+ - `+mcp-stats` (low/no calls) → `+mcp-tools` (verify the server exposes tools) → `+mcp-auth-start` if `needs_auth`
@@ -0,0 +1,63 @@
1
+ # agent +mcp-token (Get MCP Token)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **MCP Credentials / read**
6
+
7
+ ## Use Cases
8
+ - Get the plaintext MCP token for `useMcpToken=true` system MCP servers.
9
+ - Endpoint: `GET /api/sandbox/agent/mcp-credentials/mcp-token`.
10
+ - All such servers share one token; the server decrypts and returns it.
11
+ - This is a product behavior (consistent with the web UI) — the token is returned in plaintext so it can be used as a Bearer credential for MCP API calls.
12
+
13
+ ## Mandatory Rules (MUST)
14
+ - No flags required.
15
+ - The returned token is **plaintext** — handle it as a secret:
16
+ - Do NOT write it to shell history (avoid `export MCP_TOKEN=$(ae-cli agent +mcp-token)` without precautions).
17
+ - Do NOT log it or commit it to version control.
18
+ - Prefer piping directly to the consuming process or a secure store.
19
+ - The command prints a security warning to stderr (when a TTY is detected) reminding the user to safeguard the token.
20
+
21
+ ## Command
22
+ ```bash
23
+ # Get the MCP token (prints to stdout as JSON)
24
+ ae-cli agent +mcp-token
25
+
26
+ # Pipe to a file (avoid shell history)
27
+ ae-cli agent +mcp-token --format json > /dev/shm/mcp-token.json 2>/dev/null
28
+
29
+ # Dry-run to inspect the request
30
+ ae-cli agent +mcp-token --dry-run
31
+ ```
32
+
33
+ ## Parameters
34
+ | Parameter | Required | Description |
35
+ |---|---|---|
36
+ | (none) | — | — |
37
+
38
+ ## Decision Rules
39
+ - If the user needs the shared MCP token to call MCP-enabled APIs, use this command.
40
+ - The token is shared across all `useMcpToken=true` system MCP servers — a single call returns it.
41
+ - If `token` is `null`, no credential has been provisioned yet — run `+auto-provision-mcp-credentials` first.
42
+ - Prefer `+list-mcp-credentials` to check credential status without exposing the plaintext token.
43
+
44
+ ## Response Shape
45
+ ```json
46
+ {
47
+ "token": "mcp-xxxxxxxxxxxxxxxx"
48
+ }
49
+ ```
50
+
51
+ When no token is provisioned:
52
+ ```json
53
+ {
54
+ "token": null
55
+ }
56
+ ```
57
+
58
+ ## Next Steps on Failure
59
+ - `401` / auth expired: run `ae-cli auth login`.
60
+ - `token: null`: run `+auto-provision-mcp-credentials` to provision the token first.
61
+
62
+ ## Recommended Chaining
63
+ - `+auto-provision-mcp-credentials` (provision) → `+mcp-token` (retrieve) → use as `Authorization: bearer <token>` for MCP API calls
@@ -0,0 +1,55 @@
1
+ # agent +mcp-tools (List MCP Server Tools)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **MCP Servers / read**
6
+
7
+ ## Use Cases
8
+ - List the tools exposed by an MCP server (name, description, input schema).
9
+ - Endpoint: `GET /api/sandbox/agent/mcp-servers/[id]/tools`.
10
+ - Includes OAuth auto-refresh: if the credential is about to expire, the server attempts a refresh before listing tools.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - `--id` is required. Obtain the real MCP server record ID (CUID) via `+list-mcps` — do not guess.
14
+ - The MCP server must be enabled and properly configured; otherwise the server returns a structured error.
15
+
16
+ ## Command
17
+ ```bash
18
+ ae-cli agent +mcp-tools --id <mcp-cuid>
19
+
20
+ # Dry-run to inspect the request
21
+ ae-cli agent +mcp-tools --dry-run --id <mcp-cuid>
22
+ ```
23
+
24
+ ## Parameters
25
+ | Parameter | Required | Description |
26
+ |---|---|---|
27
+ | `--id` | Yes | MCP server record ID (CUID) |
28
+
29
+ ## Decision Rules
30
+ - If the user wants to see what tools an MCP server provides, use this command.
31
+ - The response includes `server` (id, name, transport) and `tools` (array of `{name, description, inputSchema}`).
32
+ - If the server returns `needs_auth` (400), run `+mcp-auth-start` to start OAuth, then retry.
33
+ - If the server returns `reauth_required` (428), the credential has expired — run `+mcp-auth-start` to re-authorize.
34
+ - If the server returns `disabled` (400), enable the MCP first with `+toggle-mcp --enabled true`.
35
+
36
+ ## Response Shape
37
+ ```json
38
+ {
39
+ "server": { "id": "clxxx", "name": "my-mcp", "transport": "http" },
40
+ "tools": [
41
+ { "name": "search", "description": "Search the web", "inputSchema": { "type": "object", "properties": {} } }
42
+ ]
43
+ }
44
+ ```
45
+
46
+ ## Next Steps on Failure
47
+ - `404` / not found: re-run `+list-mcps` to verify the server ID.
48
+ - `400` needs_auth: run `+mcp-auth-start --id <id>`, then poll `+mcp-auth-status`.
49
+ - `428` reauth_required: credential expired — run `+mcp-auth-start` to re-authorize.
50
+ - `400` disabled: run `+toggle-mcp --id <id> --enabled true`.
51
+ - `502` connection_failed: verify the MCP server URL is reachable.
52
+
53
+ ## Recommended Chaining
54
+ - `+list-mcps` → confirm `id` → `+mcp-tools`
55
+ - `+mcp-tools` (fails needs_auth) → `+mcp-auth-start` → `+mcp-auth-status` → `+mcp-tools`