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 declaraciones · se muestran las primeras 6SELECT 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

  • Capa: 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.

Arquitectura

  • 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 importaciones · se muestran 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
Tu vista

Make room for your context.

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

Tu contexto

The different parts of you

Choose a starting point

Una mezcla útil de contexto, imágenes y orientación discreta.

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

Comodidad de lectura

Elige tu idioma

El idioma de la interfaz solo cambia el texto. Los mercados, precios y flujos de trabajo conservan sus propios ajustes.

Cobertura de traducción

Parte del contenido se muestra en inglés.

Navegación151
Grafo616
Categorías188
Portafolio332
Ejemplos2035
Vista previa de la fuente41

Se añadirán más traducciones a medida que se revise el contenido.

Esta preferencia se guarda en este navegador.

Buscar en el sitio web

Puntos de partida útiles

Sin resultados. Prueba una frase más corta, un nombre de operación u otro ámbito de búsqueda.

UN POCO DE ESPACIO PARA EXPLORAR

Encuentra algo que explorar.

Abre una vista detallada en esta página, prueba otra perspectiva o sigue el detalle a su propia página.

Cómo funcionan las vistas previas y los controles
01

Mirar antes de salir

Pasa el cursor por un enlace o enfócalo con Tab para ver una vista previa. Hacer clic en el enlace original o pulsar Intro siempre abre su destino.

02

Mantener el contexto

Entra en la vista previa para explorar sus secciones. Usa Alt + ↓ desde un enlace enfocado para entrar con el teclado. Escape la cierra.

03

Abrir las posibilidades

Las filas desplegables, las perspectivas y los controles destacados revelan más. Tu vista cambia la comodidad de lectura y el contexto que exploras.

Un botón separado para mirar más de cerca

Muestra pequeños botones de vista previa junto a los enlaces donde haya espacio. Toca el ojo para inspeccionar o el enlace para ir directamente. Esta elección permanece en esta pestaña.

No se recoge historial de navegación. El movimiento reducido sigue tu dispositivo y Tu vista.