@contractspec/bundle.library
v3.8.10
Published
**Shared library bundle that composes docs, templates, integrations, MCP implementations, and reusable presentation surfaces.**
Readme
@contractspec/bundle.library
Shared library bundle that composes docs, templates, integrations, MCP implementations, and reusable presentation surfaces.
What It Provides
- Provides the reusable product-facing bundle consumed by API, web, and documentation surfaces.
- Aggregates docs pages, integration marketplace UI, templates, and library-side MCP implementations.
- Acts as the main composition layer between lower-level libraries and app-specific delivery shells.
src/presentation/contains presentation-layer components and renderers.
Installation
npm install @contractspec/bundle.library
or
bun add @contractspec/bundle.library
Usage
Import the root entrypoint from @contractspec/bundle.library, or choose a documented subpath when you only need one part of the package surface.
Architecture
src/application/contains application services including MCP implementations and cross-surface orchestration.src/components/contains reusable docs, integrations, legal, shell, and template presentation code.src/features/,src.config/,src.infrastructure/, andsrc.libs/hold bundle-local composition helpers.src/presentation/contains feature-specific UI composition exported to consuming apps.src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- Large multi-subpath bundle exporting docs, integrations, templates, shell layout, email helpers, and MCP application surfaces.
- Export
.resolves through./src/index.ts. - Export
./applicationresolves through./src/application/index.ts. - Export
./application/context-storageresolves through./src/application/context-storage/index.ts. - Export
./application/mcpresolves through./src/application/mcp/index.ts. - Export
./application/mcp/cliMcpresolves through./src/application/mcp/cliMcp.ts. - Export
./application/mcp/commonresolves through./src/application/mcp/common.ts. - Export
./application/mcp/contractsMcpresolves through./src/application/mcp/contractsMcp.ts. - Export
./application/mcp/contractsMcpResourcesresolves through./src/application/mcp/contractsMcpResources.ts. - Export
./application/mcp/contractsMcpToolsresolves through./src/application/mcp/contractsMcpTools.ts. - Export
./application/mcp/contractsMcpTypesresolves through./src/application/mcp/contractsMcpTypes.ts. - The package publishes 297 total export subpaths; keep docs aligned with
package.json.
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 run 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— rm -rf distbun 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.
- Package exports.
- Vnext ai-native.
- Add latest models and align defaults.
- Standardize tool naming to underscore notation.
- Add changesets and apply pending fixes.
Notes
- This bundle is consumed by multiple apps — breaking export changes cascade widely.
- MCP server implementations must stay transport-agnostic (the app layer wires the transport).
- Keep side effects behind explicit adapters; do not perform I/O at import time.
