@contractspec/module.lifecycle-core
v3.7.28
Published
Core lifecycle stage definitions and transitions
Maintainers
Readme
@contractspec/module.lifecycle-core
Website: https://contractspec.io
Core lifecycle stage definitions and transitions.
What It Provides
- Layer: module.
- Consumers: modules (lifecycle-advisor), bundles (library, contractspec-studio), apps (web-landing, cli).
src/adapters/contains runtime, provider, or environment-specific adapters.- Related ContractSpec packages include
@contractspec/lib.contracts-spec,@contractspec/lib.lifecycle,@contractspec/tool.bun,@contractspec/tool.typescript. src/adapters/contains runtime, provider, or environment-specific adapters.
Installation
npm install @contractspec/module.lifecycle-core
or
bun add @contractspec/module.lifecycle-core
Usage
Import the root entrypoint from @contractspec/module.lifecycle-core, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/adapters/contains runtime, provider, or environment-specific adapters.src/collectorsis part of the package's public or composition surface.src/data/contains static content, registries, and package-local datasets.src/i18nis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.src/orchestratoris part of the package's public or composition surface.src/planningis part of the package's public or composition surface.
Public Entry Points
- Export
.resolves through./src/index.ts.
Local Commands
bun run dev— contractspec-bun-build devbun run build— bun run prebuild && bun run build:bundle && bun run build:typesbun run test— bun testbun run lint— bun lint:fixbun run lint:check— biome check .bun run lint:fix— biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .bun run typecheck— tsc --noEmitbun run publish:pkg— bun publish --tolerate-republish --ignore-scripts --verbosebun run publish:pkg:canary— bun publish:pkg --tag canarybun run clean— rimraf dist .turbobun run build:bundle— contractspec-bun-build transpilebun run build:types— contractspec-bun-build typesbun run prebuild— contractspec-bun-build prebuild
Recent Updates
- Replace eslint+prettier by biomejs to optimize speed.
- Resolve lint/test regressions after voice capability updates.
- Add full i18n support across all 10 packages (en/fr/es, 460 keys).
Notes
- Depends on
lib.lifecyclefor foundational types -- this module adds orchestration on top. - Stage transition rules are the source of truth; changes here cascade to lifecycle-advisor and all consuming bundles.
- Stage data in
src/data/must remain backward-compatible to avoid breaking persisted project states.
