Skip to main content

Module discover

Module discover 

Source
Expand description

Where the OpenSpec project is, how it is configured, and which change is selected — without OpenSpec’s CLI: the nearest openspec/ with config.yaml, specs/ or changes/, as OpenSpec’s “nearest” root.

Structs§

Config
openspec/config.yaml, as far as speccoder reads it.

Constants§

DIR
The directory of a project’s specs and changes.
SCHEMA
The workflow schema speccoder runs.

Functions§

change_schema
schema of a change’s .openspec.yaml, if any.
changes
Active changes under root: the directories directly under openspec/changes/ except archive, sorted.
config
Reads openspec/config.yaml under root.
find_root
The nearest ancestor of start (inclusive) containing an OpenSpec directory, canonical.
spec_files
Capability files under dir (…/specs): (capability, path) pairs, the capability being the path between specs/ and /spec.md.