Skip to content

TaskDef

Defined in: cli/astromech/src/registry/registry.type.ts:40

One registry task: its built-in runner (local) and its Turborepo fan-out. holocron run <task> and holocron run ci start from this definition.

optional checkArgs?: string[]

Defined in: cli/astromech/src/registry/registry.type.ts:57

Args that replace LocalRunner.args when --check is given, for a task that writes by default (format): holocron run format --check runs prettier --check . instead of prettier --write ..


group: TaskGroup

Defined in: cli/astromech/src/registry/registry.type.ts:42

The intent group: documentation and --help grouping only. It is no longer part of any name.


optional host?: string

Defined in: cli/astromech/src/registry/registry.type.ts:64

The id of the workflow that runs this task’s check, for a task with no workflow of its own: format is checked by an action that lint:code calls, so its host is lint:code.


optional linterGroup?: string[]

Defined in: cli/astromech/src/registry/registry.type.ts:82

This task is a linter-group aggregate: holocron run <task> resolves this fixed set of linters.ts entries (still gated by each linter’s own detect/always rule) and runs each natively, instead of using local. Replaces the old single lint task’s auto-detected linter list (config.tasks[].linters) — a repo’s choice of which of these run is now just whether it includes this task in tasks: [...], same as any other task. See linters.ts / run.ts.


local: LocalRunner | null

Defined in: cli/astromech/src/registry/registry.type.ts:72

null — the registry has no built-in runner (CodeQL, deploys, the bundle-size job). An explicit turbo task or package.json script still runs (resolution steps 1–2); with neither, holocron run does nothing and holocron run ci skips it — never a failure, even when the task is required (a CI-only check isn’t a local one).


optional preview?: boolean

Defined in: cli/astromech/src/registry/registry.type.ts:84

Carries a preview mode (Cloudflare/Vercel deploy, npm dist-tag, Fern preview docs, …). Cross-cutting, not its own task.


scope: TaskScope

Defined in: cli/astromech/src/registry/registry.type.ts:47

package — runs in each package that has the script (turbo-delegated); repo — runs once at the root (a linter group, a probe, a workflow). holocron run <suite> from a package directory runs only the package-scoped members.


optional suite?: string

Defined in: cli/astromech/src/registry/registry.type.ts:52

The suite this task is a leaf of (test for test:unit). A suite is declared here, by its leaves; it is never a task id of its own, and holocron run <suite> runs the repo’s configured members in registry order.


optional turbo?: TurboTaskConfig

Defined in: cli/astromech/src/registry/registry.type.ts:86

Turborepo fan-out config for this task — see TurboTaskConfig. Omitted for whole-repo, non-fan-out tasks.


optional workflow?: false

Defined in: cli/astromech/src/registry/registry.type.ts:59

false — the task has no workflow of its own, so no thin caller is generated for it (format).