libraryPackage manifestv5.0.4

lib.contracts-library

Reusable contract library and registry primitives for ContractSpec applications.

@lssm-tech/lib.contracts-library
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 5.0.4. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.

Package source ↗ Manifest ↗
servernode
EXPLORE THE PACKAGE

See where this package fits.

Follow a declared connection, inspect an import, then open the source guide when you need the detail.

THIS PACKAGElib.contracts-libraryplatform

Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.

18 declarations · first 6 shownSELECT TO INSPECT

@lssm-tech/lib.contracts-library

Contract definitions for library templates and local runtime.

The app-config entries own tenant app blueprint composition, validation, branding and lifecycle contracts. experiments/spec owns their experiment specification and registry prerequisite. These generic application-template surfaces preserve the original nominal registry types and contain no concrete provider binding. Supported contracts-spec/app-config and contracts-spec/experiments/spec imports forward to the same objects.

What It Provides

  • Layer: lib.
  • Consumers: bundle.library.
  • Related ContractSpec packages include @lssm-tech/lib.contracts-spec, @lssm-tech/lib.schema, @lssm-tech/tool.bun, @lssm-tech/tool.typescript.
  • Related ContractSpec packages include @lssm-tech/lib.contracts-spec, @lssm-tech/lib.schema, @lssm-tech/tool.bun, @lssm-tech/tool.typescript.

Installation

npm install @lssm-tech/lib.contracts-library

or

bun add @lssm-tech/lib.contracts-library

Usage

Import the root entrypoint from @lssm-tech/lib.contracts-library, or choose a documented subpath when you only need one part of the package surface.

Architecture

  • src/index.ts is the root public barrel and package entrypoint.
  • src/templates is part of the package's public or composition surface.

Public Entry Points

  • Export . resolves through ./src/index.ts.
  • Export ./templates resolves through ./src/templates/index.ts.
  • Export ./templates/messaging resolves through ./src/templates/messaging.ts.
  • Export ./templates/recipes resolves through ./src/templates/recipes.ts.
  • Export ./templates/todos resolves through ./src/templates/todos.ts.
  • Export ./examples/maturity resolves through ./src/examples/maturity.ts (evaluateExampleMaturity: the beta/stable/experimental stability gate for example packages; hosts collect files, README and scripts).

Local Commands

  • bun run dev — contractspec-bun-build dev
  • bun run build — contractspec-bun-build build
  • bun run lint — bun run lint:fix
  • bun run lint:check — biome check .
  • bun run lint:fix — biome check --write --unsafe --only=nursery/useSortedClasses . && biome check --write .
  • bun run typecheck — tsgo --noEmit
  • bun run publish:pkg — bun publish --tolerate-republish --ignore-scripts --verbose
  • bun run publish:pkg:canary — bun publish:pkg --tag canary
  • bun run clean — rm -rf dist
  • bun run build:bundle — contractspec-bun-build transpile
  • bun run build:types — contractspec-bun-build types
  • bun run prebuild — contractspec-bun-build prebuild

Recent Updates

  • Replace eslint+prettier by biomejs to optimize speed.

Notes

  • Template contracts define the shape consumed by bundle.library — breaking changes cascade to all template renderers.
  • Keep contract schemas additive; avoid removing or renaming fields without a migration path.

The explicit editions family owns existing edition composition, storage and evidence helpers. Coach operation declarations and registrars preserve their original schemas and authority requirements. Contract registry, report, installation and CLI declaration leaves retain their existing nominal signatures. The experiments/evaluator leaf owns the original ExperimentEvaluator: random, sticky and targeted allocation, policy and expression callbacks retain their behavior. Built-in targeting-rule expressions use the kernel policy condition grammar with context as the only root and are never run as JavaScript; a rule whose expression fails to parse or evaluate is skipped and reported in targetingErrors and through onTargetingError.

Declared capabilities.

Lib Contracts Library

Reusable contract library and registry primitives for ContractSpec applications.

Use it to

  • Adopt reusable contract library and registry primitives for contractspec applications

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/lib.contracts-library package constraints do not match the target runtime or platform.

@lssm-tech/lib.contracts-library

@lssm-tech/lib.contracts-library/contracts-library.feature

@lssm-tech/lib.contracts-library/templates

@lssm-tech/lib.contracts-library/templates/messaging

@lssm-tech/lib.contracts-library/templates/recipes

@lssm-tech/lib.contracts-library/templates/todos

@lssm-tech/lib.contracts-library/app-config/app-config.capability

@lssm-tech/lib.contracts-library/app-config/app-config.contracts

@lssm-tech/lib.contracts-library/app-config/app-config.feature

@lssm-tech/lib.contracts-library/app-config/branding

@lssm-tech/lib.contracts-library/app-config/events

@lssm-tech/lib.contracts-library/app-config

@lssm-tech/lib.contracts-library/app-config/integrations

@lssm-tech/lib.contracts-library/app-config/lifecycle

@lssm-tech/lib.contracts-library/app-config/lifecycle-contracts

@lssm-tech/lib.contracts-library/app-config/runtime

@lssm-tech/lib.contracts-library/app-config/spec

@lssm-tech/lib.contracts-library/app-config/validation

@lssm-tech/lib.contracts-library/experiments/spec

@lssm-tech/lib.contracts-library/docs/capabilities/documentationSystem.capability

@lssm-tech/lib.contracts-library/docs/commands/docsGenerate.command

@lssm-tech/lib.contracts-library/docs/commands/docsPublish.command

@lssm-tech/lib.contracts-library/docs/constants

@lssm-tech/lib.contracts-library/docs/contracts

@lssm-tech/lib.contracts-library/docs/docs.feature

@lssm-tech/lib.contracts-library/docs/events/docsGenerated.event

@lssm-tech/lib.contracts-library/docs/events/docsPublished.event

@lssm-tech/lib.contracts-library/docs/forms/docsSearch.form

@lssm-tech/lib.contracts-library/docs/presentations/docsLayout.presentation

@lssm-tech/lib.contracts-library/docs/presentations/docsReferencePage.presentation

@lssm-tech/lib.contracts-library/docs/queries/contractReference.query

@lssm-tech/lib.contracts-library/docs/queries/docsIndex.query

@lssm-tech/lib.contracts-library/docs/views/contractReference.dataView

@lssm-tech/lib.contracts-library/docs/views/docsIndex.dataView

@lssm-tech/lib.contracts-library/docs/views/exampleCatalog.dataView

@lssm-tech/lib.contracts-library/examples/define

@lssm-tech/lib.contracts-library/examples/maturity

@lssm-tech/lib.contracts-library/examples/registry

@lssm-tech/lib.contracts-library/examples/schema

@lssm-tech/lib.contracts-library/examples/types

@lssm-tech/lib.contracts-library/examples/validation

@lssm-tech/lib.contracts-library/llm/exporters

@lssm-tech/lib.contracts-library/llm/prompts

@lssm-tech/lib.contracts-library/llm/types

@lssm-tech/lib.contracts-library/regenerator/adapters

@lssm-tech/lib.contracts-library/regenerator/executor

@lssm-tech/lib.contracts-library/regenerator/service

@lssm-tech/lib.contracts-library/regenerator/sinks

@lssm-tech/lib.contracts-library/regenerator/types

@lssm-tech/lib.contracts-library/regenerator/utils

@lssm-tech/lib.contracts-library/experiments/evaluator

@lssm-tech/lib.contracts-library/editions/companyos-scenario

@lssm-tech/lib.contracts-library/editions/connect-gates

@lssm-tech/lib.contracts-library/editions/delivery-audit

@lssm-tech/lib.contracts-library/editions/docs

@lssm-tech/lib.contracts-library/editions/enterprise-guardrails

@lssm-tech/lib.contracts-library/editions/evidence-boundary

@lssm-tech/lib.contracts-library/editions/experiments

@lssm-tech/lib.contracts-library/editions/fixtures

@lssm-tech/lib.contracts-library/editions/full-loop-gate

@lssm-tech/lib.contracts-library/editions/harness-evidence

@lssm-tech/lib.contracts-library/editions/improvement-types

@lssm-tech/lib.contracts-library/editions/improvement

@lssm-tech/lib.contracts-library/editions

@lssm-tech/lib.contracts-library/editions/intelligence-coach

@lssm-tech/lib.contracts-library/editions/knowledge-provenance

@lssm-tech/lib.contracts-library/editions/ontology-boundary

@lssm-tech/lib.contracts-library/editions/operation-specs

@lssm-tech/lib.contracts-library/editions/rollback

@lssm-tech/lib.contracts-library/editions/runtime-wiring

@lssm-tech/lib.contracts-library/editions/schema

@lssm-tech/lib.contracts-library/editions/storage-file

@lssm-tech/lib.contracts-library/editions/storage-hybrid

@lssm-tech/lib.contracts-library/editions/storage-parity

@lssm-tech/lib.contracts-library/editions/storage

@lssm-tech/lib.contracts-library/editions/types

@lssm-tech/lib.contracts-library/editions/validation

@lssm-tech/lib.contracts-library/editions/editor/fixtures

@lssm-tech/lib.contracts-library/editions/editor

@lssm-tech/lib.contracts-library/editions/editor/resolver

@lssm-tech/lib.contracts-library/editions/editor/schema

@lssm-tech/lib.contracts-library/editions/editor/types

@lssm-tech/lib.contracts-library/operations/coach/agent-suggest-tool.command

@lssm-tech/lib.contracts-library/operations/coach/governance-suggest-constraint.command

@lssm-tech/lib.contracts-library/operations/coach/review-summarize.command

@lssm-tech/lib.contracts-library/operations/coach/shared-schemas

@lssm-tech/lib.contracts-library/operations/coach/workflow-suggest-step.command

@lssm-tech/lib.contracts-library/operations/registry.coach

@lssm-tech/lib.contracts-library/cli/command-pack

@lssm-tech/lib.contracts-library/contract-registry/schemas

@lssm-tech/lib.contracts-library/contract-registry/types

@lssm-tech/lib.contracts-library/data-views/report/contractVerificationTable

@lssm-tech/lib.contracts-library/features/install

@lssm-tech/lib.contracts-library/operations/fleet/health-snapshot.query

@lssm-tech/lib.contracts-library/operations/fleet/metrics-summary.query

@lssm-tech/lib.contracts-library/operations/fleet/roi-snapshot.query

@lssm-tech/lib.contracts-library/operations/fleet/shared-schemas

@lssm-tech/lib.contracts-library/operations/report/getContractVerificationStatus

@lssm-tech/lib.contracts-library/operations/report

@lssm-tech/lib.contracts-library/utils/safe-json

@lssm-tech/lib.contracts-library/contracts-spec.feature

@lssm-tech/lib.contracts-library/onboarding-base

@lssm-tech/lib.contracts-library/operations/registry.domains

@lssm-tech/lib.contracts-library/operations/registry.fleet

Imports and export paths.

104 entries

These are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.

104 imports · showing 35

Dependencies and related packages.

Runtime dependencies 18
zod
catalog:
Development dependencies 3
typescript
catalog:

Package scripts.

Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.

publish:pkgbun publish --tolerate-republish --ignore-scripts --verbose
publish:pkg:canarybun publish:pkg --tag canary
cleanrm -rf dist
lintbun run lint:fix
lint:fixnode ../../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../../scripts/biome.cjs check --write .
lint:checknode ../../../../scripts/biome.cjs check .
buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
prebuildcontractspec-bun-build prebuild
typechecktsgo --noEmit
devcontractspec-bun-build dev
Your view

Make room for your context.

Shape the presentation around this moment. You can change it whenever you need.

Your context

The different parts of you

Choose a starting point

A useful mix of context, visuals and gentle guidance.

Tune each dimension
Each dimension can change independently. Product permissions and available actions stay unchanged.

Support the way you begin and return

Tune your support

Reading comfort

Choose your language

Interface language changes text only. Markets, prices and workflows keep their own settings.

Translation coverage

Original source

Navigation151
Graph616
Categories378
Portfolio833
Examples2,035
Source preview1,542

More translations will be added as content is reviewed.

This preference is saved on this browser.

Search the website

Useful starting points

No results. Try a shorter phrase, an operation name or another search area.

A LITTLE ROOM TO EXPLORE

Find something to explore.

Open a closer look on this page, try a different perspective, or follow the detail into its own page.

How previews and controls work
01

Look before you leave

Hover a link or focus it with Tab to see a preview. Clicking the original link or pressing Enter always opens its destination.

02

Stay with the context

Move into the preview to explore its sections. Use Alt + ↓ from a focused link to enter it with the keyboard. Escape closes it.

03

Open the possibilities

Disclosure rows, perspective choices and highlighted controls reveal more. Your view changes reading comfort and the context you explore.

A separate button for a closer look

Show small preview buttons beside links where there is room. Tap the eye to inspect, or tap the link to go straight there. This choice stays in this tab.

No browsing history is collected. Reduced motion follows your device and Your view.