@thinkingai/ae-cli 6.0.52 → 6.0.54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -10
- package/README.zh.md +32 -10
- package/bin/ae-cli.js +6 -1
- package/cli-installation-guide.md +91 -0
- package/dist/{auth-XZNXFRJS.js → auth-MBWRZTB6.js} +171 -13
- package/dist/automation-NWWVLWG2.js +459 -0
- package/dist/{capability-RJZ4KRGP.js → capability-7SSN6PNZ.js} +11 -6
- package/dist/chunk-4655PUNX.js +43 -0
- package/dist/{chunk-4NRCTUZJ.js → chunk-5XJYLEVC.js} +4 -4
- package/dist/{chunk-JOCDD4ON.js → chunk-7QXISROD.js} +1 -1
- package/dist/{chunk-EQ255HKO.js → chunk-AP7YP2NX.js} +2 -2
- package/dist/{chunk-DVMLWQD4.js → chunk-CT7QDJS6.js} +2 -2
- package/dist/chunk-D6ACFILC.js +56 -0
- package/dist/{chunk-HFGZGYCG.js → chunk-EOYSKMXN.js} +264 -10
- package/dist/{chunk-57RRFUEZ.js → chunk-FMNNGNYO.js} +43 -8
- package/dist/{chunk-7XGFSUOM.js → chunk-GIK6EDUG.js} +291 -84
- package/dist/{chunk-WEPZ5M3Z.js → chunk-HBLK3ZHW.js} +7 -4
- package/dist/chunk-HVHR4SCP.js +133 -0
- package/dist/{chunk-DX5CDO34.js → chunk-KFNMQTZI.js} +580 -214
- package/dist/{chunk-HBGADCKA.js → chunk-PLE722AJ.js} +28 -11
- package/dist/chunk-RK6GLDGI.js +27 -0
- package/dist/{chunk-V2NUHPXF.js → chunk-S6M42KND.js} +1 -1
- package/dist/{chunk-7FTTULED.js → chunk-UQ77JXYH.js} +7 -3
- package/dist/{chunk-MAPZ7VB6.js → chunk-WNGFSIOB.js} +20 -1
- package/dist/{chunk-L2QUIZTS.js → chunk-ZIQWCZTS.js} +3 -3
- package/dist/{community-report-client-CU22W53K.js → community-report-client-PEERQCX2.js} +1 -1
- package/dist/{config-XO3LI3SA.js → config-FF6YVJKI.js} +29 -10
- package/dist/context-YAE3QXP3.js +136 -0
- package/dist/{data-integration-HNGUKFIC.js → data-integration-HESZET7E.js} +6 -6
- package/dist/index.js +169 -55
- package/dist/{local-data-upload-client-GTRIT64F.js → local-data-upload-client-TWMHFLUA.js} +1 -1
- package/dist/memory-62BJOULV.js +580 -0
- package/dist/{metadata-JAQW7KGZ.js → metadata-7CUMWIB4.js} +7 -7
- package/dist/{model-RNPQXIBI.js → model-SBV2JFJI.js} +9 -5
- package/dist/{personal-semantic-preference-QCZ2IZTK.js → personal-semantic-preference-6SRCYPGE.js} +119 -11
- package/dist/{project-semantic-64JURXKF.js → project-semantic-YYEM4OSU.js} +7 -7
- package/dist/{sync-O45NXEQY.js → sync-SU33KYX7.js} +12 -8
- package/dist/{te-agent-K5MSPNHJ.js → te-agent-F5QBZSQA.js} +423 -494
- package/dist/{te-analysis-KQKCAI5H.js → te-analysis-U4I2W2WC.js} +1090 -67
- package/dist/{te-community-4OYU3BDA.js → te-community-PFLDLPP4.js} +3 -3
- package/dist/{te-dataops-NFIPB6FX.js → te-dataops-FOQSRIAZ.js} +644 -276
- package/dist/{te-engage-HSVSRW22.js → te-engage-ZX76CNAB.js} +6 -6
- package/dist/{te-kb-3TS73NO6.js → te-kb-MHDOST62.js} +666 -244
- package/dist/{te-system-STMHLS5J.js → te-system-J2FQF5ER.js} +6 -6
- package/dist/{te-team-3I5AOX3N.js → te-team-5UOZPTU3.js} +6 -6
- package/dist/things-VPPXXLHB.js +1091 -0
- package/dist/{update-RZXLPCRH.js → update-EEUTEI6R.js} +59 -51
- package/dist/workspace-O3EEIYQM.js +554 -0
- package/package.json +30 -11
- package/skills/ae-agent/SKILL.md +95 -140
- package/skills/ae-agent/references/add-model.md +1 -1
- package/skills/ae-agent/references/create-agent.md +1 -1
- package/skills/ae-agent/references/find-archived-conversations.md +12 -5
- package/skills/ae-agent/references/get-agent.md +1 -1
- package/skills/ae-agent/references/list-agents.md +2 -2
- package/skills/ae-agent/references/list-models.md +2 -2
- package/skills/ae-agent/references/notification.md +40 -0
- package/skills/ae-agent/references/restore-conversation.md +3 -1
- package/skills/ae-analysis/SKILL.md +76 -15
- package/skills/ae-analysis/references/agent_review_submit_to_page.md +2 -0
- package/skills/ae-analysis/references/ai_models/event.md +6 -1
- package/skills/ae-analysis/references/ai_models/funnel.md +12 -4
- package/skills/ae-analysis/references/ai_models/heat_map.md +23 -0
- package/skills/ae-analysis/references/ai_models/interval.md +24 -0
- package/skills/ae-analysis/references/ai_models/path.md +20 -0
- package/skills/ae-analysis/references/ai_models/prop_analysis.md +2 -0
- package/skills/ae-analysis/references/ai_models/rank_list.md +30 -0
- package/skills/ae-analysis/references/ai_models/retention.md +45 -1
- package/skills/ae-analysis/references/ai_models/revenue.md +20 -2
- package/skills/ae-analysis/references/ai_models/tag.md +2 -0
- package/skills/ae-analysis/references/ai_models.md +96 -0
- package/skills/ae-analysis/references/analysis_data_retrieval.md +4 -0
- package/skills/ae-analysis/references/asset_batch_info_export.md +10 -0
- package/skills/ae-analysis/references/asset_batch_sql_export.md +13 -1
- package/skills/ae-analysis/references/asset_export.md +12 -1
- package/skills/ae-analysis/references/asset_list.md +1 -0
- package/skills/ae-analysis/references/asset_search.md +11 -5
- package/skills/ae-analysis/references/bi_panel_list.md +1 -1
- package/skills/ae-analysis/references/catalog_list.md +1 -1
- package/skills/ae-analysis/references/collaboration.md +48 -0
- package/skills/ae-analysis/references/command_index.md +26 -17
- package/skills/ae-analysis/references/dashboard_list.md +4 -4
- package/skills/ae-analysis/references/dashboard_move.md +21 -0
- package/skills/ae-analysis/references/dashboard_report_add.md +2 -0
- package/skills/ae-analysis/references/dashboard_report_data_export.md +2 -0
- package/skills/ae-analysis/references/dashboard_report_get.md +19 -0
- package/skills/ae-analysis/references/dashboard_report_update.md +27 -0
- package/skills/ae-analysis/references/dashboard_update.md +1 -1
- package/skills/ae-analysis/references/event_export.md +3 -1
- package/skills/ae-analysis/references/event_report_presentation.md +76 -0
- package/skills/ae-analysis/references/feedback_submit.md +37 -0
- package/skills/ae-analysis/references/governance_recommendation_auto_review.md +71 -0
- package/skills/ae-analysis/references/governance_recommendation_export.md +11 -0
- package/skills/ae-analysis/references/metadata_resolution.md +18 -3
- package/skills/ae-analysis/references/metric_export.md +3 -1
- package/skills/ae-analysis/references/metric_list.md +1 -1
- package/skills/ae-analysis/references/operation_record_export.md +10 -0
- package/skills/ae-analysis/references/personal_semantic_preference_add.md +2 -2
- package/skills/ae-analysis/references/personal_semantic_preference_get.md +6 -4
- package/skills/ae-analysis/references/personal_semantic_preference_list.md +5 -3
- package/skills/ae-analysis/references/personal_semantic_preference_review.md +9 -0
- package/skills/ae-analysis/references/personal_semantic_preference_review_list.md +7 -0
- package/skills/ae-analysis/references/personal_semantic_preference_submit.md +7 -0
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki.md +91 -32
- package/skills/ae-analysis/references/project_semantic_knowledge_wiki_plan_schema.md +99 -1
- package/skills/ae-analysis/references/property_export.md +3 -1
- package/skills/ae-analysis/references/report_create.md +17 -3
- package/skills/ae-analysis/references/report_data_export.md +6 -0
- package/skills/ae-analysis/references/report_get.md +7 -1
- package/skills/ae-analysis/references/report_list.md +5 -5
- package/skills/ae-analysis/references/report_update.md +20 -3
- package/skills/ae-analysis/references/sql_table_columns.md +4 -4
- package/skills/ae-analysis/references/sql_table_list.md +5 -5
- package/skills/ae-analysis/references/system_query_monitor_overview.md +2 -0
- package/skills/ae-analysis/references/system_query_task_cancel.md +2 -0
- package/skills/ae-analysis/references/system_query_task_export.md +6 -2
- package/skills/ae-analysis/references/system_query_task_get.md +2 -0
- package/skills/ae-analysis/references/system_query_task_list.md +7 -3
- package/skills/ae-analysis/references/system_query_task_options.md +2 -2
- package/skills/ae-analysis/references/system_query_task_realtime_list.md +15 -0
- package/skills/ae-analysis/references/user_cluster_models.md +8 -0
- package/skills/ae-analysis/references/user_tag_create.md +7 -1
- package/skills/ae-analysis/references/user_tag_get.md +1 -1
- package/skills/ae-analysis/references/user_tag_models.md +20 -2
- package/skills/ae-analysis/references/user_tag_refresh.md +1 -1
- package/skills/ae-analysis/references/user_tag_update.md +2 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-empty-skeleton.mjs +105 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/build-project-semantic-wiki.mjs +669 -29
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/company-kb.mjs +21 -8
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-rules.md +28 -10
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/default-compile-schema.md +66 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/generate-build-ir.mjs +285 -24
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/package-wiki-source-zip.mjs +262 -30
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/plan-kb-source-sync.mjs +1 -1
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/precompiled-source.mjs +46 -2
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/prepare-compile-schema.mjs +64 -0
- package/skills/ae-analysis/scripts/project-semantic-knowledge-wiki/refresh-state-parts.mjs +91 -0
- package/skills/ae-automation/SKILL.md +16 -0
- package/skills/ae-automation/references/cli.md +53 -0
- package/skills/ae-automation/references/command_index.md +17 -0
- package/skills/ae-capability/SKILL.md +73 -2
- package/skills/ae-capability/references/collaboration.md +48 -0
- package/skills/ae-community/SKILL.md +5 -1
- package/skills/ae-community/references/collaboration.md +48 -0
- package/skills/ae-current-context/SKILL.md +3 -2
- package/skills/ae-data-integration/SKILL.md +4 -0
- package/skills/ae-data-integration/references/collaboration.md +48 -0
- package/skills/ae-dataops/SKILL.md +54 -74
- package/skills/ae-dataops/references/collaboration.md +48 -0
- package/skills/ae-dataops/references/dataops-backfill.md +23 -18
- package/skills/ae-dataops/references/dataops-flow-create.md +74 -23
- package/skills/ae-dataops/references/dataops-flow-monitor.md +45 -13
- package/skills/ae-dataops/references/dataops-integration.md +57 -30
- package/skills/ae-dataops/references/dataops-query.md +21 -4
- package/skills/ae-dataops/references/dataops-table.md +143 -11
- package/skills/ae-engage/SKILL.md +21 -6
- package/skills/ae-engage/references/channel-mgmt.md +3 -3
- package/skills/ae-engage/references/collaboration.md +48 -0
- package/skills/ae-engage/references/scene-config-channel.md +4 -4
- package/skills/ae-generate-tracking-plan/SKILL.md +4 -0
- package/skills/ae-generate-tracking-plan/references/collaboration.md +48 -0
- package/skills/ae-kb/SKILL.md +70 -12
- package/skills/ae-kb/references/analysis-workflow.md +73 -36
- package/skills/ae-kb/references/collaboration.md +48 -0
- package/skills/ae-kb/references/query-workflow.md +67 -33
- package/skills/ae-kb/references/schema-import.md +32 -0
- package/skills/ae-kb/references/source-mutations.md +6 -4
- package/skills/ae-kb/references/text-sources.md +53 -0
- package/skills/ae-kb-discovery/SKILL.md +8 -3
- package/skills/ae-kb-discovery/references/collaboration.md +48 -0
- package/skills/ae-metadata/SKILL.md +20 -12
- package/skills/ae-metadata/references/collaboration.md +48 -0
- package/skills/ae-team/SKILL.md +23 -17
- package/skills/ae-things/SKILL.md +85 -0
- package/skills/ae-things/references/cli.md +103 -0
- package/skills/ae-things-progress/SKILL.md +43 -0
- package/skills/ae-things-review/SKILL.md +42 -0
- package/skills/ae-workspace/SKILL.md +43 -0
- package/skills/ae-workspace/references/commands.md +51 -0
- package/dist/chunk-E2JKXMVO.js +0 -29
- package/dist/context-IFJI3LIT.js +0 -46
- package/dist/memory-QGPSNCQS.js +0 -892
- package/skills/ae-agent/references/create-automation.md +0 -125
- package/skills/ae-agent/references/list-automations.md +0 -56
- package/skills/ae-agent/references/update-automation.md +0 -107
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
# agent +create-automation (Create Automation)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Automations / write**
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
Transition status: transitional
|
|
9
|
-
Owning module: te-claude automation
|
|
10
|
-
Current transport: POST /api/sandbox/agent/automations
|
|
11
|
-
Gateway target: TBD (no equivalent Gateway capability is currently registered)
|
|
12
|
-
Review after: 2026-10-07
|
|
13
|
-
Exit condition: Migrate when the Gateway exposes equivalent workspace-scoped automation creation.
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Use Cases
|
|
17
|
-
- Create an Agent automation task that runs on a schedule (hourly / daily / weekly / monthly or cron).
|
|
18
|
-
- Returns the newly created automation object including its `id` and initial `status`.
|
|
19
|
-
- Automations are **enabled by default**; pass `--enabled false` only when the user explicitly asks to create the task without enabling it.
|
|
20
|
-
- Automations create a new conversation for every run by default. Pass `--reuse-conversation true` only when the user explicitly wants future runs to continue in one conversation.
|
|
21
|
-
|
|
22
|
-
## Mandatory Rules (MUST)
|
|
23
|
-
- `--name` and `--message` are required.
|
|
24
|
-
- A schedule is required: provide either `--cron` or a `--schedule-kind` (with its time/day fields). `--cron` and `--schedule-kind` are mutually exclusive.
|
|
25
|
-
- `--agent-id` and `--agent-name` are mutually exclusive. Obtain a real Agent ID via `+list-agents` — do not guess.
|
|
26
|
-
- In a chat runtime, omitted `--conversation-id`, `--agent-id`, and `--model` values fall back to `TE_AGENT_CONVERSATION_ID`, `TE_AGENT_CURRENT_AGENT_ID`, and `TE_AGENT_CURRENT_MODEL_ID`. Explicit flags always take precedence; `--agent-name` intentionally suppresses the current Agent ID fallback.
|
|
27
|
-
- Workspace selection is independent of Agent selection: `--agent-space-id` explicitly selects the workspace. If omitted, the server inherits the accessible conversation's workspace when available, otherwise the personal default workspace. The CLI intentionally omits `agentSpaceId` in this case to preserve inheritance and compatibility with earlier servers.
|
|
28
|
-
- Workspace-aware servers return `automation.agentSpaceId`. Pass that ID to subsequent `+list-automations` and `+update-automation` calls; those commands otherwise use the personal default workspace, even when invoked from a conversation.
|
|
29
|
-
- On servers without workspace support, omit `--agent-space-id` and keep the original creation flow. If the response lacks `agentSpaceId`, omit the flag in later calls rather than inventing an ID. Older servers may ignore the new parameter; it does not add workspace isolation to them.
|
|
30
|
-
- This command creates Agent automations only. It does not create Agent Team scheduled tasks.
|
|
31
|
-
- JSON flags must be valid JSON strings, usually wrapped in single quotes in shell.
|
|
32
|
-
- This is an ordinary `write` operation and does not require CLI confirmation.
|
|
33
|
-
- Do not surface raw automation IDs, raw JSON, or concrete detail paths in user-facing replies.
|
|
34
|
-
|
|
35
|
-
## Schedule Kinds
|
|
36
|
-
| `--schedule-kind` | Required fields | Notes |
|
|
37
|
-
|---|---|---|
|
|
38
|
-
| `hourly` | `--minute` (optional, 0–59) | Runs every hour at the given minute |
|
|
39
|
-
| `daily` | `--time HH:mm` | Runs once a day at the given time |
|
|
40
|
-
| `weekly` | `--time HH:mm`, `--weekday 0-6` | `0` = Sunday |
|
|
41
|
-
| `monthly` | `--time HH:mm`, `--day-of-month 1-28` | Day 1–28 only |
|
|
42
|
-
|
|
43
|
-
## Command
|
|
44
|
-
```bash
|
|
45
|
-
# Enabled daily automation (default)
|
|
46
|
-
ae-cli agent +create-automation \
|
|
47
|
-
--name "Daily AI Brief" \
|
|
48
|
-
--schedule-kind daily \
|
|
49
|
-
--time 09:00 \
|
|
50
|
-
--message "Summarize yesterday's AI news"
|
|
51
|
-
|
|
52
|
-
# Create but keep paused when the user explicitly asks not to enable it
|
|
53
|
-
ae-cli agent +create-automation \
|
|
54
|
-
--name "Daily AI Brief" \
|
|
55
|
-
--schedule-kind daily \
|
|
56
|
-
--time 09:00 \
|
|
57
|
-
--message "Summarize yesterday's AI news" \
|
|
58
|
-
--enabled false
|
|
59
|
-
|
|
60
|
-
# Keep future runs in one visible conversation
|
|
61
|
-
ae-cli agent +create-automation \
|
|
62
|
-
--name "Daily AI Brief" \
|
|
63
|
-
--schedule-kind daily \
|
|
64
|
-
--time 09:00 \
|
|
65
|
-
--message "Summarize yesterday's AI news" \
|
|
66
|
-
--reuse-conversation true
|
|
67
|
-
|
|
68
|
-
# Weekly schedule on Sunday
|
|
69
|
-
ae-cli agent +create-automation \
|
|
70
|
-
--name "Weekly Report" \
|
|
71
|
-
--schedule-kind weekly \
|
|
72
|
-
--time 10:00 \
|
|
73
|
-
--weekday 0 \
|
|
74
|
-
--message "Generate the weekly report"
|
|
75
|
-
|
|
76
|
-
# Cron expression
|
|
77
|
-
ae-cli agent +create-automation \
|
|
78
|
-
--name "Cron Task" \
|
|
79
|
-
--cron "0 9 * * 1-5" \
|
|
80
|
-
--message "Weekday morning brief"
|
|
81
|
-
|
|
82
|
-
# Dry-run to inspect the request before executing
|
|
83
|
-
ae-cli agent +create-automation --dry-run --name "Test" --message "x" --schedule-kind daily --time 09:00
|
|
84
|
-
|
|
85
|
-
# Select a workspace explicitly
|
|
86
|
-
ae-cli agent +create-automation --name "Daily Report" --message "Prepare the report" \
|
|
87
|
-
--agent-id <agent-id> --agent-space-id <workspace-id> --schedule-kind daily --time 09:00
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## Parameters
|
|
91
|
-
| Parameter | Required | Description |
|
|
92
|
-
|---|---|---|
|
|
93
|
-
| `--name` | Yes | Automation task name |
|
|
94
|
-
| `--message` | Yes | Instruction sent to the Agent |
|
|
95
|
-
| `--cron` | No* | Cron expression (mutually exclusive with `--schedule-kind`) |
|
|
96
|
-
| `--schedule-kind` | No* | `hourly` \| `daily` \| `weekly` \| `monthly` |
|
|
97
|
-
| `--time` | No | Time in `HH:mm` for daily/weekly/monthly |
|
|
98
|
-
| `--minute` | No | Minute 0–59 for hourly schedules |
|
|
99
|
-
| `--weekday` | No | Weekday 0–6 for weekly schedules; `0` is Sunday |
|
|
100
|
-
| `--day-of-month` | No | Day 1–28 for monthly schedules |
|
|
101
|
-
| `--agent-id` | No | Agent ID; defaults to current conversation Agent |
|
|
102
|
-
| `--agent-name` | No | Agent name; use only after `+list-agents` discovery |
|
|
103
|
-
| `--model` | No | Model record ID; defaults to current selected model |
|
|
104
|
-
| `--enabled` | No | `true` (default) \| `false` |
|
|
105
|
-
| `--reuse-conversation` | No | `true` to continue in one conversation; `false` (default) to create one per run |
|
|
106
|
-
| `--conversation-id` | No | Conversation ID fallback for resolving the Agent and workspace |
|
|
107
|
-
| `--agent-space-id` | No | Explicit workspace ID; omit to inherit the conversation's workspace, otherwise use the personal default workspace |
|
|
108
|
-
|
|
109
|
-
\* One of `--cron` or `--schedule-kind` is required.
|
|
110
|
-
|
|
111
|
-
## Decision Rules
|
|
112
|
-
- If the user provides a natural-language schedule ("every day at 9am"), translate it to `--schedule-kind daily --time 09:00`.
|
|
113
|
-
- If the user wants a cron-only schedule not covered by the kinds, use `--cron`.
|
|
114
|
-
- If no Agent is specified, the automation targets the current conversation's Agent; verify with `+list-agents` when in doubt.
|
|
115
|
-
- Set `--reuse-conversation true` only when the user explicitly requests continuity across runs. The platform may rotate the underlying provider session while retaining the visible conversation history.
|
|
116
|
-
- Use `--dry-run` first to verify the request shape before executing.
|
|
117
|
-
|
|
118
|
-
## Next Steps on Failure
|
|
119
|
-
- `必须提供 --cron 或 --schedule-kind`: provide one of the schedule flags.
|
|
120
|
-
- `--time 格式必须是 HH:mm`: use 24-hour `HH:mm` (e.g. `09:00`).
|
|
121
|
-
- `--agent-id 与 --agent-name 只能二选一`: pick one and remove the other.
|
|
122
|
-
- After success, capture the returned `automation.id` and, when present, `automation.agentSpaceId` for subsequent list/update calls. Omit the workspace flag when the ID is `null` or absent.
|
|
123
|
-
|
|
124
|
-
## Recommended Chaining
|
|
125
|
-
- `+list-agents` → `+create-automation` → `+list-automations` (verify) → `+update-automation` (edit)
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
# agent +list-automations (List Automations)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Automations / read**
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
Transition status: transitional
|
|
9
|
-
Owning module: te-claude automation
|
|
10
|
-
Current transport: GET /api/sandbox/agent/automations
|
|
11
|
-
Gateway target: TBD (no equivalent Gateway capability is currently registered)
|
|
12
|
-
Review after: 2026-10-07
|
|
13
|
-
Exit condition: Migrate when the Gateway exposes equivalent workspace-scoped automation listing.
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Use Cases
|
|
17
|
-
- List the current user's Agent automation tasks in one workspace.
|
|
18
|
-
- Returns `items` containing automation summaries; key fields include `id`, `name`, `status`, `cronExpression`, `agentSpaceId`, and `agentSpaceName`.
|
|
19
|
-
- Agent Team scheduled tasks shown alongside automations in the workspace UI are a separate resource and are not returned by this command.
|
|
20
|
-
- Use this to discover a real automation ID before `+update-automation`.
|
|
21
|
-
|
|
22
|
-
## Mandatory Rules (MUST)
|
|
23
|
-
- Do not guess automation IDs. Always call `+list-automations` first when an automation ID is needed.
|
|
24
|
-
- Pass `--agent-space-id` for a non-default workspace. Omitting it lists the personal default workspace, including legacy tasks without a workspace ID; it does not list all workspaces or infer the current conversation's workspace.
|
|
25
|
-
- Keep the same workspace ID when calling `+update-automation`. An automation created from a conversation may belong to a non-default workspace; use the returned `automation.agentSpaceId` when verifying creation.
|
|
26
|
-
- On servers without workspace support, omit `--agent-space-id`. Listing retains its original user-scoped behavior and responses may lack `agentSpaceId`/`agentSpaceName`; neither field is required by the CLI. Older servers do not enforce the new workspace filter.
|
|
27
|
-
- Do not surface raw automation IDs, raw JSON, or concrete detail paths in user-facing replies — use the ID only internally for subsequent commands.
|
|
28
|
-
|
|
29
|
-
## Command
|
|
30
|
-
```bash
|
|
31
|
-
ae-cli agent +list-automations
|
|
32
|
-
ae-cli agent +list-automations --status active
|
|
33
|
-
ae-cli agent +list-automations --q "daily" --limit 20 --format table
|
|
34
|
-
ae-cli agent +list-automations --agent-space-id <workspace-id>
|
|
35
|
-
ae-cli agent +list-automations --dry-run
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
## Parameters
|
|
39
|
-
| Parameter | Required | Description |
|
|
40
|
-
|---|---|---|
|
|
41
|
-
| `--agent-space-id` | No | Workspace ID; omitted means the personal default workspace |
|
|
42
|
-
| `--q` | No | Keyword for automation name or instruction |
|
|
43
|
-
| `--status` | No | `active` \| `paused` |
|
|
44
|
-
| `--limit` | No | Maximum number of automations to return, 1–10000 |
|
|
45
|
-
|
|
46
|
-
## Decision Rules
|
|
47
|
-
- When the user wants to pause, resume, rename, or edit an automation, call this first to find the target ID.
|
|
48
|
-
- `--status active` lists only enabled automations; `--status paused` lists paused ones.
|
|
49
|
-
- If many automations are returned, summarize by `name` and `status` to help the user pick the right one.
|
|
50
|
-
|
|
51
|
-
## Next Steps on Failure
|
|
52
|
-
- Empty result: check the active AE host and workspace ID before concluding there are no automations. This command does not include Agent Team scheduled tasks.
|
|
53
|
-
- Auth error: run `ae-cli auth login`.
|
|
54
|
-
|
|
55
|
-
## Recommended Chaining
|
|
56
|
-
- `+list-automations` → confirm `id` → `+update-automation`
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
# agent +update-automation (Update Automation)
|
|
2
|
-
|
|
3
|
-
> **Prerequisite:** Follow the Global AE CLI Rules in [`../SKILL.md`](../SKILL.md).
|
|
4
|
-
|
|
5
|
-
Domain: **Automations / write**
|
|
6
|
-
|
|
7
|
-
```text
|
|
8
|
-
Transition status: transitional
|
|
9
|
-
Owning module: te-claude automation
|
|
10
|
-
Current transport: PATCH /api/sandbox/agent/automations/:id
|
|
11
|
-
Gateway target: TBD (no equivalent Gateway capability is currently registered)
|
|
12
|
-
Review after: 2026-10-07
|
|
13
|
-
Exit condition: Migrate when the Gateway exposes equivalent workspace-scoped automation updates.
|
|
14
|
-
```
|
|
15
|
-
|
|
16
|
-
## Use Cases
|
|
17
|
-
- Update an existing Agent automation task's name, instruction, schedule, enabled state, or conversation mode.
|
|
18
|
-
- Used to pause (`--enabled false`) or resume (`--enabled true`) an automation, or to change its schedule/message.
|
|
19
|
-
- Obtain the automation `id` via `+list-automations` — never guess.
|
|
20
|
-
|
|
21
|
-
## Mandatory Rules (MUST)
|
|
22
|
-
- `--id` is required. Obtain the real ID via `+list-automations` — do not guess.
|
|
23
|
-
- Pass the same `--agent-space-id` used to discover the task, or the `automation.agentSpaceId` returned by creation. Omitting it targets the personal default workspace, including legacy tasks with no workspace ID.
|
|
24
|
-
- The workspace ID is sent as a query parameter to select the task's existing workspace. It is not an update field and cannot move an automation between workspaces; providing it alone is not a valid update.
|
|
25
|
-
- On servers without workspace support, omit `--agent-space-id` and update by the original task ID. Missing workspace fields in older responses do not prevent updates; do not invent an ID or rely on older servers to enforce the new workspace query parameter.
|
|
26
|
-
- Agent Team scheduled task IDs are not automation IDs and cannot be used with this command.
|
|
27
|
-
- At least one update field must be provided (`--name`, `--message`, `--enabled`, `--reuse-conversation`, `--cron`, or a `--schedule-kind` with its time/day fields).
|
|
28
|
-
- `--cron` and `--schedule-kind` are mutually exclusive.
|
|
29
|
-
- This is an ordinary `write` operation and does not require CLI confirmation.
|
|
30
|
-
- Do not surface raw automation IDs, raw JSON, or concrete detail paths in user-facing replies.
|
|
31
|
-
|
|
32
|
-
## Schedule Kinds (when updating schedule)
|
|
33
|
-
| `--schedule-kind` | Required fields | Notes |
|
|
34
|
-
|---|---|---|
|
|
35
|
-
| `hourly` | `--minute` (optional, 0–59) | Runs every hour at the given minute |
|
|
36
|
-
| `daily` | `--time HH:mm` | Runs once a day at the given time |
|
|
37
|
-
| `weekly` | `--time HH:mm`, `--weekday 0-6` | `0` = Sunday |
|
|
38
|
-
| `monthly` | `--time HH:mm`, `--day-of-month 1-28` | Day 1–28 only |
|
|
39
|
-
|
|
40
|
-
## Command
|
|
41
|
-
```bash
|
|
42
|
-
# Pause an automation
|
|
43
|
-
ae-cli agent +update-automation --id <automation-id> --enabled false
|
|
44
|
-
|
|
45
|
-
# Pause an automation in a specific workspace
|
|
46
|
-
ae-cli agent +update-automation --id <automation-id> --agent-space-id <workspace-id> --enabled false
|
|
47
|
-
|
|
48
|
-
# Resume an automation
|
|
49
|
-
ae-cli agent +update-automation --id <automation-id> --enabled true
|
|
50
|
-
|
|
51
|
-
# Reuse the most recent valid conversation on future runs
|
|
52
|
-
ae-cli agent +update-automation --id <automation-id> --reuse-conversation true
|
|
53
|
-
|
|
54
|
-
# Return to creating a new conversation for every run
|
|
55
|
-
ae-cli agent +update-automation --id <automation-id> --reuse-conversation false
|
|
56
|
-
|
|
57
|
-
# Rename and change the instruction
|
|
58
|
-
ae-cli agent +update-automation \
|
|
59
|
-
--id <automation-id> \
|
|
60
|
-
--name "Daily AI Brief v2" \
|
|
61
|
-
--message "Summarize yesterday's AI news and trends"
|
|
62
|
-
|
|
63
|
-
# Change the schedule to weekly on Sunday
|
|
64
|
-
ae-cli agent +update-automation \
|
|
65
|
-
--id <automation-id> \
|
|
66
|
-
--schedule-kind weekly \
|
|
67
|
-
--time 10:00 \
|
|
68
|
-
--weekday 0
|
|
69
|
-
|
|
70
|
-
# Switch to a cron expression
|
|
71
|
-
ae-cli agent +update-automation --id <automation-id> --cron "0 9 * * 1-5"
|
|
72
|
-
|
|
73
|
-
# Dry-run to inspect the request before executing
|
|
74
|
-
ae-cli agent +update-automation --dry-run --id <automation-id> --enabled false
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
## Parameters
|
|
78
|
-
| Parameter | Required | Description |
|
|
79
|
-
|---|---|---|
|
|
80
|
-
| `--id` | Yes | Automation task ID from `+list-automations` |
|
|
81
|
-
| `--agent-space-id` | No | Existing workspace ID; omitted means the personal default workspace. Does not move the task |
|
|
82
|
-
| `--name` | No | New automation task name |
|
|
83
|
-
| `--message` | No | New instruction sent to the Agent |
|
|
84
|
-
| `--enabled` | No | `true` to enable, `false` to pause |
|
|
85
|
-
| `--reuse-conversation` | No | `true` to reuse one conversation, `false` to create one per run; omit to keep unchanged |
|
|
86
|
-
| `--cron` | No | Cron expression (mutually exclusive with `--schedule-kind`) |
|
|
87
|
-
| `--schedule-kind` | No | `hourly` \| `daily` \| `weekly` \| `monthly` |
|
|
88
|
-
| `--time` | No | Time in `HH:mm` for daily/weekly/monthly |
|
|
89
|
-
| `--minute` | No | Minute 0–59 for hourly schedules |
|
|
90
|
-
| `--weekday` | No | Weekday 0–6 for weekly schedules; `0` is Sunday |
|
|
91
|
-
| `--day-of-month` | No | Day 1–28 for monthly schedules |
|
|
92
|
-
|
|
93
|
-
## Decision Rules
|
|
94
|
-
- If the user wants to pause/resume, use `--enabled false` / `--enabled true` (no other fields needed).
|
|
95
|
-
- If the user wants future runs to share one conversation, use `--reuse-conversation true`; use `false` to restore one conversation per run.
|
|
96
|
-
- If the user wants to change the schedule, provide `--schedule-kind` with its required time/day fields, or `--cron`.
|
|
97
|
-
- At least one update field is required; a bare `--id` is rejected.
|
|
98
|
-
- Use `--dry-run` first to verify the request shape before executing.
|
|
99
|
-
|
|
100
|
-
## Next Steps on Failure
|
|
101
|
-
- `AUTOMATION_NOT_FOUND`: verify the task ID and workspace ID together. Do not retry across other workspaces automatically.
|
|
102
|
-
- `至少提供一个更新字段`: add at least one of `--name` / `--message` / `--enabled` / `--reuse-conversation` / `--cron` / `--schedule-kind`.
|
|
103
|
-
- `必须提供 --cron 或 --schedule-kind`: if schedule detail flags (`--time` / `--minute` / `--weekday` / `--day-of-month`) are present, a `--schedule-kind` (or `--cron`) must accompany them.
|
|
104
|
-
- `--time 格式必须是 HH:mm`: use 24-hour `HH:mm` (e.g. `09:00`).
|
|
105
|
-
|
|
106
|
-
## Recommended Chaining
|
|
107
|
-
- `+list-automations` → `+update-automation`
|