Skip to main content

Module task

Module task 

Source
Expand description

Task-building and task-updating command helpers (request parsing, runner invocation, and queue updates).

Responsibilities:

  • Shared types and configuration for task operations (build, update, refactor).
  • Parse task request inputs from CLI args or stdin.
  • Runner settings resolution for task operations.
  • JSON field comparison for task updates.

Not handled here:

  • Actual task building logic (see build.rs).
  • Task update logic (see update.rs).
  • Refactor task generation and LOC scanning (see refactor.rs).
  • CLI argument definitions or command routing.
  • Runner process implementation details or output parsing.
  • Queue schema definitions or config persistence.

Invariants/assumptions:

  • Queue/done files are the source of truth for task ordering and status.
  • Runner execution requires stream-json output for parsing.
  • Permission/approval defaults come from config unless overridden at CLI.

Structs§

DecompositionAttachTarget
DecompositionPlan
DecompositionPreview
PlannedNode
TaskBuildOptions
TaskBuildRefactorOptions
Options for the build-refactor command.
TaskDecomposeOptions
TaskDecomposeWriteResult
TaskUpdateSettings

Enums§

BatchMode
Batching mode for grouping related files in build-refactor.
DecompositionChildPolicy
DecompositionSource

Functions§

build_refactor_tasks
Build refactoring tasks for large files exceeding the LOC threshold.
build_task
build_task_without_lock
compare_task_fields
plan_task_decomposition
read_request_from_args_or_reader
read_request_from_args_or_stdin
update_all_tasks
update_task
update_task_without_lock
write_task_decomposition