@contractspec/module.workspace
v4.3.9
Published
Workspace discovery and management module
Maintainers
Readme
@contractspec/module.workspace
Website: https://contractspec.io
Workspace discovery and management module.
What It Provides
- Layer: module.
- Consumers: bundles (contractspec-studio), apps (cli-contractspec, vscode-contractspec).
- Related ContractSpec packages include
@contractspec/lib.contracts-integrations,@contractspec/lib.contracts-spec,@contractspec/lib.schema,@contractspec/tool.bun,@contractspec/tool.typescript. - Related ContractSpec packages include
@contractspec/lib.contracts-integrations,@contractspec/lib.contracts-spec,@contractspec/lib.schema,@contractspec/tool.bun,@contractspec/tool.typescript.
Installation
npm install @contractspec/module.workspace
or
bun add @contractspec/module.workspace
Usage
Import the root entrypoint from @contractspec/module.workspace, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/aiis part of the package's public or composition surface.src/analysisis part of the package's public or composition surface.src/formatter.tsis part of the package's public or composition surface.src/formattersis part of the package's public or composition surface.src/index.tsis the root public barrel and package entrypoint.src/templatesis part of the package's public or composition surface.src/typesis 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.
- Stability.
- Add changesets and apply pending fixes.
- Add ai-native messaging channel runtime.
Notes
- Uses
ts-morphfor AST analysis andcompare-versionsfor semver checks -- version bumps may affect parsing behavior. - Workspace detection is file-system-dependent; always use the provided abstractions, never raw
fscalls. - Changes here affect CLI, VSCode extension, and studio workspace initialization flows.
