modulePackage manifestv6.1.4

module.examples

Example contract specifications collection

@lssm-tech/module.examples
Source, release and verification context

Source snapshot bcc79fcc · Declared package version 6.1.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 PACKAGEmodule.examplesExemples

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

8 déclarations · les 6 premières affichéesSELECT TO INSPECT

@lssm-tech/module.examples

Website: https://contractspec.io

Catalog-first ContractSpec example metadata, with optional runtime helpers for rich example surfaces.

What It Provides

  • Couche: module.
  • Consumers: CLIs, editor bridges, apps, docs, and rich sandbox/template surfaces.
  • Related ContractSpec packages include @lssm-tech/example.agent-console, @lssm-tech/example.ai-chat-assistant, @lssm-tech/example.ai-support-bot, @lssm-tech/example.analytics-dashboard, @lssm-tech/example.calendar-google, @lssm-tech/example.content-generation, ...
  • agent-console is the default autonomous-agent showcase surfaced through /sandbox.
  • data-grid-showcase is the canonical ContractSpec table showcase surfaced through /sandbox?template=data-grid-showcase and /docs/examples/data-grid-showcase.

Installation

npm install @lssm-tech/module.examples

or

bun add @lssm-tech/module.examples

Usage

Use the root entrypoint or @lssm-tech/module.examples/catalog for metadata-only discovery. Use @lssm-tech/module.examples/runtime only when rendering rich template previews or sandbox runtime surfaces. The catalog also exposes shared preview-surface helpers so apps can show every discoverable example while loading rich UI only for packages that export ./ui.

ts
import { getExample, listExamples } from '@lssm-tech/module.examples/catalog';
ts
import { ExampleWebPreview, TemplateRuntimeProvider, listTemplates } from '@lssm-tech/module.examples/runtime';

Host ports

Apps and bundles that render a specific example read it through a named host port instead of importing @lssm-tech/example.* packages, which the package-layer boundary check rejects. Each port re-exports only what hosts use and is split by runtime:

Entrypoint Exécution Contents
./runtime/native-previews native, browser, server Example contracts, visualization specs and deterministic sample data for native preview panels. No web UI or template providers.
./runtime/feature-hub-reference native, server installFeatureHubCompositionReference and FEATURE_HUB_REFERENCE_ROUTE_IDS.
./runtime/companyos-ai-solutions-engineer-poc browser, server The hosted-demo contract: COMPANYOS_ACME_PROFILE, compileCanonicalPreparedProof, the outcome-pack schema and the demo runtime contract.
./runtime/companyos-ai-solutions-engineer-poc/server Node only The proof runtime: call runtime, preflight probe, proof session authority, browser fixture and approved-proof runner.
./runtime/companyos-ai-solutions-engineer-poc/ui client components RequestToVerifiedProofPreview.
ts
import { CRM_PIPELINE_DEALS } from '@lssm-tech/module.examples/runtime/native-previews';
import { COMPANYOS_ACME_PROFILE } from '@lssm-tech/module.examples/runtime/companyos-ai-solutions-engineer-poc';

The example packages stay optional peers: a host installs the examples whose port it imports.

The catalog contains source metadata for each example. CLI users can fetch a full example only when needed:

sh
contractspec examples download minimal --out-dir ./examples/minimal

Public preview/export workflow

Template, docs, and sandbox previews are generated from package-owned example metadata:

  1. Example packages expose catalog metadata through ./example and docs through ./docs when they should appear in public template/docs surfaces.
  2. Rich inline previews are opt-in public surfaces. A package that adds ./ui must keep that export package-native, deterministic, fixture-backed, and mirrored in publishConfig.exports.
  3. scripts/generate-example-registry.ts is the only writer for generated catalog and preview registry artifacts; run bun run --cwd examples/registry generate:registry after changing example exports.
  4. Preview consumers should use catalog helpers for discoverability and supportsInlineExamplePreview() / getExamplePreviewSurface() before loading runtime UI. Keep docs, sandbox, LLMS, and source fallback links available for examples without inline UI.
  5. Do not introduce live backend calls, provider credentials, or production actions in preview fixtures. Provider-oriented examples must render local replay/fixture data only.

Architecture

  • src/builtins.ts is a generated literal catalog and must not statically import @lssm-tech/example.* packages.
  • src/catalog.ts is the metadata-only public surface.
  • src/index.ts is the root public barrel and package entrypoint.
  • src/registry.test.ts is part of the package's public or composition surface.
  • src/registry.ts is part of the package's public or composition surface.
  • src/runtime is the optional rich runtime surface for consumers that intentionally install example packages.

Public Entry Points

  • Export . resolves through ./src/index.ts and is catalog-only.
  • Export ./catalog resolves through ./src/catalog.ts.
  • Export ./runtime resolves through ./src/runtime/index.ts.
  • Exports ./runtime/native-previews, ./runtime/feature-hub-reference, ./runtime/companyos-ai-solutions-engineer-poc, ./runtime/companyos-ai-solutions-engineer-poc/server and ./runtime/companyos-ai-solutions-engineer-poc/ui are the host ports described under Usage.

Local Commands

  • bun run dev — contractspec-bun-build dev
  • bun run build — contractspec-bun-build build
  • bun run test — bun test
  • bun run lint — bun 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 — rimraf dist .turbo
  • bun run build:bundle — contractspec-bun-build transpile
  • bun run build:types — contractspec-bun-build types
  • bun run generate:registry — bun ../../scripts/generate-example-registry.ts --write
  • bun run prebuild — bun run generate:registry && contractspec-bun-build prebuild

Recent Updates

  • Replace eslint+prettier by biomejs to optimize speed.
  • Add table capabilities.
  • Stability.
  • Vnext ai-native.

Notes

  • This module is a thin catalog/runtime bridge -- business logic belongs in individual example packages under examples/.
  • Adding a new example requires creating the example package and regenerating the catalog with bun run generate:registry; do not add it as a direct dependency here.
  • Root/catalog imports must remain metadata-only. Rich runtime consumers should import @lssm-tech/module.examples/runtime (or a host port) and own any required @lssm-tech/example.* dependencies directly.
  • The meetup-ready autonomous-agent path is the deterministic agent-console sandbox plus its replay proof lane.
  • The shared ContractSpec table stack is demonstrated directly by data-grid-showcase and reused in analytics-dashboard, crm-pipeline, integration-hub, and agent-console.

The registry generator also owns optional example-runtime peers and this package's Turbo task dependencies. Optional peers preserve catalog-only installation while letting declaration builds resolve the installed example declaration surfaces. The generated task edges build those declarations before the runtime bridge; example packages remain responsible for validating their own implementations. Run generate:registry after changing preview exports or runtime example imports. Do not hand-edit the managed example peers or turbo.json.

Declared capabilities.

Module Examples

Example contract specifications collection

Use it to

  • Adopt example contract specifications collection

Requires

  • TypeScript

Choose another boundary when

  • The @lssm-tech/module.examples package constraints do not match the target runtime or platform.

@lssm-tech/module.examples

@lssm-tech/module.examples/catalog

@lssm-tech/module.examples/runtime

@lssm-tech/module.examples/runtime/native-previews

@lssm-tech/module.examples/runtime/feature-hub-reference

@lssm-tech/module.examples/runtime/companyos-ai-solutions-engineer-poc

@lssm-tech/module.examples/runtime/companyos-ai-solutions-engineer-poc/server

@lssm-tech/module.examples/runtime/companyos-ai-solutions-engineer-poc/ui

Imports and export paths.

8 entries

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

8 imports

Dependencies and related packages.

Runtime dependencies 8
@apollo/client
catalog:graphql
Peer dependencies 40
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
buildcontractspec-bun-build build
build:bundlecontractspec-bun-build transpile
build:typescontractspec-bun-build types
devcontractspec-bun-build dev
cleanrimraf dist .turbo
lintbun 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 .
testbun test
generate:registrybun ../../scripts/generate-example-registry.ts --write
prebuildbun run generate:registry && contractspec-bun-build prebuild
typechecktsgo --noEmit
Votre vue

Make room for your context.

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

Votre contexte

The different parts of you

Choose a starting point

Un mélange utile de contexte, de visuels et de guidage discret.

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

Confort de lecture

Choisir votre langue

La langue de l’interface change uniquement le texte. Les marchés, les prix et les parcours conservent leurs propres paramètres.

Couverture des traductions

Une partie du contenu est affichée en anglais.

Navigation151
Graphe616
Catégories378
Portfolio833
Exemples2 035
Aperçu de la source1 542

D’autres traductions seront ajoutées à mesure que le contenu sera relu.

Cette préférence est enregistrée dans ce navigateur.

Rechercher sur le site

Des points de départ utiles

Aucun résultat. Essayez une expression plus courte, un nom d’opération ou un autre périmètre de recherche.

UN PEU DE PLACE POUR EXPLORER

Trouvez quelque chose à explorer.

Ouvrez un aperçu détaillé sur cette page, essayez une autre perspective ou suivez le détail vers sa propre page.

Fonctionnement des aperçus et des commandes
01

Regarder avant de partir

Survolez un lien ou sélectionnez-le avec Tab pour voir un aperçu. Cliquer sur le lien d’origine ou appuyer sur Entrée ouvre toujours sa destination.

02

Rester dans le contexte

Entrez dans l’aperçu pour explorer ses sections. Depuis un lien sélectionné, utilisez Alt + ↓ pour y entrer au clavier. Échap le ferme.

03

Ouvrir les possibilités

Les lignes dépliables, les choix de perspective et les commandes mises en évidence révèlent davantage. Votre vue adapte le confort de lecture et le contexte exploré.

Un bouton séparé pour voir de plus près

Affichez de petits boutons d’aperçu à côté des liens quand l’espace le permet. Touchez l’œil pour examiner ou le lien pour y aller directement. Ce choix reste dans cet onglet.

Aucun historique de navigation n’est collecté. La réduction des animations suit votre appareil et Votre vue.