mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-05 07:21:34 +00:00
feat(cli): add openclaw automations alias and reword cron display prose (#114854)
* feat(cli): add openclaw automations alias and reword cron display prose Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WhJ8EiMXue6ADLmHfb7FL6 * test(doctor): update cron doctor prose assertions for automations wording * fix(plugins): include command aliases in plugin CLI collision detection Codex review finding on the automations alias: plugin CLI registration seeded existingCommands from command names only, so a plugin exposing a top-level command matching an alias-only root name (automations, terminal, chat) would crash Commander at startup instead of being skipped. Seed from names plus aliases; regression test covers the alias path. * fix(cli): rename residual cron prose in CLI and gateway RPC errors Found in combined dev-gateway E2E: automation not found / unknown automation id errors, add/edit prose, docs tip, skills-cli mention, and the gateway RPC not-found message. The CLI missing-get matcher accepts both message forms so older gateways keep resolving name lookups. * fix(gateway): keep cron.get missing wording as a wire contract for older CLI matchers ClawSweeper rank-up: shipped CLI matchers parse 'cron job not found: <id>' before the name-lookup fallback; the rename stays CLI-display only. Adds a regression pinning the exact wire form. * fix(cli): rename doctor and task-summary cron prose flagged in review Repair-plan advisories, session-registry task summary, and the heartbeat migration health check now say automations; recreate hints use the openclaw automations CLI form. --------- Co-authored-by: Omar Shahine <10343873+omarshahine@users.noreply.github.com> Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -195,7 +195,9 @@ const entrySpecs: readonly CommandGroupDescriptorSpec<SubCliRegistrar>[] = [
|
||||
exportName: "registerTuiCli",
|
||||
},
|
||||
{
|
||||
commandNames: ["cron"],
|
||||
// automations is a commander alias on the cron command; the lazy
|
||||
// router only routes names listed here, so the alias must be owned too.
|
||||
commandNames: ["cron", "automations"],
|
||||
loadModule: () => import("../cron-cli.js"),
|
||||
exportName: "registerCronCli",
|
||||
},
|
||||
|
||||
@@ -138,7 +138,14 @@ const subCliCommandCatalog = defineCommandDescriptorCatalog([
|
||||
},
|
||||
{
|
||||
name: "cron",
|
||||
description: "Manage cron jobs (via Gateway)",
|
||||
description: "Manage automations (via Gateway)",
|
||||
hasSubcommands: true,
|
||||
machineOutput: ({ argv }) => isCronMachineOutput(argv),
|
||||
parentDefaultHelp: true,
|
||||
},
|
||||
{
|
||||
name: "automations",
|
||||
description: "Manage automations (alias for cron)",
|
||||
hasSubcommands: true,
|
||||
machineOutput: ({ argv }) => isCronMachineOutput(argv),
|
||||
parentDefaultHelp: true,
|
||||
|
||||
Reference in New Issue
Block a user