Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/leapflow/cli/commands/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -806,24 +806,6 @@ async def handle_input(text: str) -> None:
_print_execution_result(result)
return

if canonical == "arm":
from leapflow.cli.commands.scheduler import cmd_arm

await cmd_arm(
ctx,
cmd_text.split()[1:] if len(cmd_text.split()) > 1 else [],
)
return

if canonical == "task":
from leapflow.cli.commands.scheduler import cmd_tasks

await cmd_tasks(
ctx,
cmd_text.split()[1:] if len(cmd_text.split()) > 1 else [],
)
return

# Registered engine command with no in-process fast path (e.g.
# /board): route through the shared command_execute contract so a
# recognized slash command never leaks into the LLM chat stream.
Expand Down
6 changes: 2 additions & 4 deletions src/leapflow/cli/commands/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,8 @@ def supports_runtime(self, runtime: CommandRuntime) -> bool:
CommandDef("plugin enable", "Re-enable a disabled plugin (daemon mode, approval required)", "Skills & Tools", args_hint="<id>", requires_host=True, effect=CommandEffect.SESSION, execution=CommandExecution.SHORT_OPERATION),
CommandDef("plugin generate", "Generate and install a plugin from a natural-language description", "Skills & Tools", args_hint="[--preview|--dry-run|--id <id>] <description>", requires_host=True, effect=CommandEffect.SESSION, execution=CommandExecution.LONG_RUNNING),

# Scheduler
CommandDef("arm", "Schedule a skill for timed execution", "Scheduler", args_hint="<skill> <cron>"),
CommandDef("task", "List scheduled tasks", "Scheduler"),
CommandDef("schedule", "List active scheduled tasks", "Scheduler", aliases=("schedule list",), args_hint="[list|status|history|cancel] ...", effect=CommandEffect.READ_ONLY, execution=CommandExecution.INSTANT),
# Scheduler — a single namespace; the bare command lists scheduled tasks.
CommandDef("schedule", "List scheduled tasks", "Scheduler", aliases=("schedule list",), args_hint="[list|status|history|cancel] ...", effect=CommandEffect.READ_ONLY, execution=CommandExecution.INSTANT),
CommandDef("schedule status", "Show detailed status for one task", "Scheduler", args_hint="<task_id>", effect=CommandEffect.READ_ONLY, execution=CommandExecution.INSTANT),
CommandDef("schedule history", "Show recent execution log entries", "Scheduler", args_hint="[task_id]", effect=CommandEffect.READ_ONLY, execution=CommandExecution.INSTANT),
CommandDef("schedule cancel", "Cancel/disable a scheduled task", "Scheduler", args_hint="<task_id>", effect=CommandEffect.SESSION, execution=CommandExecution.SHORT_OPERATION),
Expand Down
289 changes: 0 additions & 289 deletions src/leapflow/cli/commands/scheduler.py

This file was deleted.

Loading
Loading