@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,65 @@
1
+ # agent +list-mcp-credentials (List MCP Credentials)
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
+ - List the current user's per-user credentials for system-scope MCP servers.
9
+ - Endpoint: `GET /api/sandbox/agent/mcp-credentials`.
10
+ - Returns one entry per system MCP server, with the user's credential (or `null` if none exists).
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - No flags required — lists all system MCP servers and the current user's credential status.
14
+ - Only system-scope MCP servers are included; personal/company credentials are managed via the MCP server config and OAuth flow.
15
+
16
+ ## Command
17
+ ```bash
18
+ # List all system MCP credentials
19
+ ae-cli agent +list-mcp-credentials
20
+
21
+ # Dry-run to inspect the request
22
+ ae-cli agent +list-mcp-credentials --dry-run
23
+ ```
24
+
25
+ ## Parameters
26
+ | Parameter | Required | Description |
27
+ |---|---|---|
28
+ | (none) | — | — |
29
+
30
+ ## Decision Rules
31
+ - If the user wants to check which system MCP servers have credentials configured, use this command.
32
+ - Each item shows `mcpServerId`, `mcpServerName`, and a `credential` object (or `null`).
33
+ - The `credential` object includes `authType`, `enabled`, `expiresAt`, and whether a token is stored — but the token itself is not returned in plaintext here (use `+mcp-token` for that).
34
+
35
+ ## Response Shape
36
+ ```json
37
+ {
38
+ "items": [
39
+ {
40
+ "mcpServerId": "clxxx",
41
+ "mcpServerName": "te-mcp",
42
+ "credential": {
43
+ "mcpServerId": "clxxx",
44
+ "userId": "uyyy",
45
+ "authType": "oauth",
46
+ "enabled": true,
47
+ "expiresAt": "2026-07-06T13:00:00.000Z",
48
+ "hasToken": true
49
+ }
50
+ },
51
+ {
52
+ "mcpServerId": "clzzz",
53
+ "mcpServerName": "other-mcp",
54
+ "credential": null
55
+ }
56
+ ]
57
+ }
58
+ ```
59
+
60
+ ## Next Steps on Failure
61
+ - `401` / auth expired: run `ae-cli auth login`.
62
+
63
+ ## Recommended Chaining
64
+ - `+list-mcp-credentials` (check) → `+set-mcp-credential` (set) or `+auto-provision-mcp-credentials` (bulk)
65
+ - `+list-mcp-credentials` → `+mcp-token` (get plaintext token for useMcpToken servers)
@@ -0,0 +1,58 @@
1
+ # agent +list-mcp-market (List MCP 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 MCP servers from the market (system / company / personal scopes).
9
+ - Endpoint: `GET /api/sandbox/agent/mcp-servers/market`.
10
+ - Supports filtering by scope, category, search, and sort, with pagination.
11
+ - Use this to discover MCP servers before adding one with `+add-mcp`.
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
+
18
+ ## Market Scope
19
+ `all | system | company | custom` (`custom` = personal; `all` = system + company + personal)
20
+
21
+ ## Market Category Keys
22
+ `ae_preset | dev_tool | search_tool | data_query | content_gen | enterprise | life | automation | other`
23
+
24
+ ## Sort Options
25
+ `newest | calls | likes` (`calls` sorts MCP by call count)
26
+
27
+ ## Command
28
+ ```bash
29
+ ae-cli agent +list-mcp-market
30
+ ae-cli agent +list-mcp-market --scope company --category dev_tool --sort calls --format table
31
+ ae-cli agent +list-mcp-market --search "weather" --sort newest
32
+ ae-cli agent +list-mcp-market --limit 20 --offset 0
33
+ ae-cli agent +list-mcp-market --dry-run --scope system
34
+ ```
35
+
36
+ ## Parameters
37
+ | Parameter | Required | Description |
38
+ |---|---|---|
39
+ | `--scope` | No | Market scope (see above; default `all`) |
40
+ | `--category` | No | Category key (see above) |
41
+ | `--search` | No | Fuzzy search on name/displayName/description/url |
42
+ | `--sort` | No | Sort option (see above; default `newest`) |
43
+ | `--limit` | No | Page size (1–100, default 50) |
44
+ | `--offset` | No | Page offset (>=0, default 0) |
45
+
46
+ ## Decision Rules
47
+ - When the user wants to browse available MCP servers, call this first.
48
+ - `--scope company` shows same-company MCP servers; `--scope system` shows built-in ones; `--scope custom` shows personal ones.
49
+ - Use `--sort calls` to find the most-used MCP servers.
50
+ - Use `--format table` for a scannable overview.
51
+
52
+ ## Next Steps on Failure
53
+ - `--scope must be one of...`: use one of the market scope values.
54
+ - `--category must be one of...`: use one of the category keys.
55
+ - Empty result: widen filters (remove `--category` / `--scope`).
56
+
57
+ ## Recommended Chaining
58
+ - `+list-mcp-market` (browse) → `+add-mcp` (add to personal) → `+list-mcps` (verify)
@@ -0,0 +1,37 @@
1
+ # agent +list-mcps (List MCP Servers)
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 MCP servers visible to the current user (personal / company / system scopes).
9
+ - Returns an array of MCP server summaries; key fields include `id`, `name`, `url`, `scope`, `enabled`.
10
+
11
+ ## Mandatory Rules (MUST)
12
+ - Do not guess MCP server record IDs. Always call `+list-mcps` first when an ID is needed.
13
+
14
+ ## Command
15
+ ```bash
16
+ ae-cli agent +list-mcps
17
+ ae-cli agent +list-mcps --scope personal --format table
18
+ ae-cli agent +list-mcps --scope company
19
+ ae-cli agent +list-mcps --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 an MCP server ID for `+del-mcp` / `+toggle-mcp` / `+set-mcp-meta`, call this first.
29
+ - Use `--format table` for a scannable overview of many servers.
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-mcps` → confirm `id` → `+toggle-mcp` / `+del-mcp` / `+set-mcp-meta`
37
+ - `+list-mcp-market` (browse) → `+add-mcp` (add) → `+list-mcps` (verify)
@@ -0,0 +1,38 @@
1
+ # agent +list-models (List Models)
2
+
3
+ > **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
4
+
5
+ Domain: **Models / read**
6
+
7
+ ## Use Cases
8
+ - List models visible to the current user (personal / company / system scopes).
9
+ - Returns an array of model summaries; key fields include `id`, `modelId`, `displayName`, `scope`, `enabled`.
10
+ - The current selected model (from the runtime env) is annotated when available.
11
+
12
+ ## Mandatory Rules (MUST)
13
+ - Do not guess model record IDs. Always call `+list-models` first when a model ID is needed.
14
+
15
+ ## Command
16
+ ```bash
17
+ ae-cli agent +list-models
18
+ ae-cli agent +list-models --scope personal --format table
19
+ ae-cli agent +list-models --scope company
20
+ ae-cli agent +list-models --dry-run
21
+ ```
22
+
23
+ ## Parameters
24
+ | Parameter | Required | Description |
25
+ |---|---|---|
26
+ | `--scope` | No | Filter by scope: `personal` \| `company` \| `system` |
27
+
28
+ ## Decision Rules
29
+ - When the user needs a model record ID for `+create-automation --model`, call this first.
30
+ - `--scope personal` shows only the user's own custom models; `company` / `system` show shared models.
31
+ - Use `--format table` for a scannable overview of many models.
32
+
33
+ ## Next Steps on Failure
34
+ - Empty result: confirm account permissions and the active AE host.
35
+ - Auth error: run `ae-cli auth login`.
36
+
37
+ ## Recommended Chaining
38
+ - `+list-models` → confirm model ID → `+create-automation --model <id>` or `+toggle-model` / `+del-model`
@@ -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)