Skip to main content

Interface: ListSpecs

Defined in: packages/core/src/application/use-cases/list-specs.ts:50

Lists all specs across all configured workspaces, resolving title (always) and optionally a short summary per spec.

Receives a map of workspace name → SpecRepository so that use cases that coordinate across workspaces work correctly. Results are ordered by workspace declaration order, then by spec name within each workspace.

Methods​

execute()​

execute(options?): Promise<SpecListEntry[]>

Defined in: packages/core/src/application/use-cases/list-specs.ts:82

Executes the use case.

Parameters​

options?​

Execution options

includeMetadataStatus?​

boolean

When true, resolves metadata freshness status for each spec. Default: false.

includeSummary?​

boolean

When true, resolves a short summary for each spec in addition to the title. Default: false.

Returns​

Promise<SpecListEntry[]>

All specs across all workspaces with resolved titles