@lssm-tech/app.api-libraryapp.api-library
Inspect the package guide, declared imports and source relationships.
@lssm-tech/app.api-librarySource, release and verification context
Source snapshot bcc79fcc · Declared package version 5.1.6. This page combines the checked-in package guide and manifest; commands and runtime behavior were not executed in this review.
See where this package fits.
Follow a declared connection, inspect an import, then open the source guide when you need the detail.
Arrows point from a package to its direct dependency. Each count is derived from the captured manifests.
@lssm-tech/app.api-library
Library API server for ContractSpec documentation and templates. Thin HTTP layer over bundle.library.
Hosted MCP endpoints were previously removed (zero hosted MCP compute; MCP ships locally via
contractspec mcp). As of the api-monolith-elysia-convergence, the builder, channel/control-plane, dispatch, schema, and in-process scheduler hosting has been converged into@lssm-tech/app.api-application-monolith(the managed CompanyOS Elysia host). This server now serves ONLY:
/mdx/*markdown (the deliberate survivor, backed bybundle.marketing), and- the provider webhook ingress (Slack/Telegram/GitHub/WhatsApp), kept LIVE in parallel until the provider webhook URLs are repointed to the monolith host (human-gated). The webhook routes are stripped in a follow-up after repoint is confirmed.
The Vercel project (
contractspec-library-api) is retained for markdown + the gated webhook survivor.
What It Does
- Markdown + webhook survivor — a thin HTTP layer; business logic lives in
bundle.library/bundle.marketing. src/handlers/retains:markdown-handler, the 4 webhook handlers, and the channel/builder runtime resources the webhooks ingest through.- Control-plane / channel dispatch / builder / schema endpoints are no longer served here — see
@lssm-tech/app.api-application-monolith. - Related ContractSpec packages include
@lssm-tech/bundle.library,@lssm-tech/bundle.marketing,@lssm-tech/bundle.workspace,@lssm-tech/integration.provider-messaging,@lssm-tech/integration.runtime,@lssm-tech/lib.contracts-spec, ... src/handlers/contains handlers or demo adapters wired to contract surfaces.
Running Locally
From packages/apps/api-library:
bun run devbun run startbun run build
Usage
bun run devArchitecture
- This app is a thin HTTP layer — all business logic lives in
bundle.library. - Elysia server exposing GraphQL, webhooks, control-plane, and channel handlers (no MCP endpoints).
src/index.tsis the root public barrel and package entrypoint.
Public Entry Points
- This package is a deployable application rather than a library with published subpath exports.
Local Commands
bun run dev— bun run --watch src/index.tsbun run start— bun run ./dist/index.jsbun run build— bun run build:types && bun run build:bundlebun 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 clean— rm -rf dist api/distbun run build:bundle— bun build --target node --packages bundle --outfile dist/index.js src/index.ts && mkdir -p api/dist && cp dist/index.js api/dist/index.jsbun run build:types— tsc -p ./tsconfig.json --noEmitbun run postinstall— if [ "$VERCEL" = "1" ]; then bun run build:bundle; fi
Recent Updates
- Removed the hosted MCP endpoints (docs/cli/internal/contracts); MCP now ships locally via
contractspec mcp. - Replace eslint+prettier by biomejs to optimize speed.
- Resolve lint, build, and type errors across nine packages.
- Expose contract management via CLI and MCP.
- Stabilize lint gate and runtime contract typing.
- Add ai-native messaging channel runtime.
- Inline server into index.ts and add Vercel configs.
Notes
- Keep this app thin — no business logic here; delegate to
bundle.library. - MCP is no longer hosted here; agents/editors must use the local
contractspec mcpstdio servers. The reusable MCP builders still live inbundle.library(createDocsMcpHandlerremains used byapp.web-landing). - API route changes require coordinating with
app.web-landingand any external clients.
Build compute policy
Automatic Vercel Git builds are disabled for this app. Build compute is assigned to Railway; this does not change the existing runtime or domain topology. See the operator policy and evidence† for configuration scope and the unqualified Vercel prebuilt delivery gap.
Railway prebuilt lane
The bounded prebuilt helper† builds this app on an explicitly bound Railway executor, audits its standalone Bun function and Node-compatible markdown adapter, and permits only digest-bound Vercel prebuilt delivery. Preview qualification is recorded separately; production promotion and other apps are outside this first lane.
2 source links need reconciliation
References marked † point outside the resolved source inventory. Their labels are preserved without inventing a replacement destination.
../../../deploy/lssm-ecosystem/build-compute-policy.md../../../deploy/vercel-prebuilt/README.md
Declared capabilities.
This manifest does not declare a capability catalogue. Use the guide, import map and source to assess the package.
Imports and export paths.
1 entriesThese are package-manifest entry points. Named symbols listed above come from the capability catalogue; this is not an exhaustive TypeScript symbol reference.
1 import
No export paths match this search.
Dependencies and related packages.
Runtime dependencies 4
- @lssm-tech/bundle.library
- workspace:*
- @lssm-tech/bundle.marketing
- workspace:*
- @lssm-tech/lib.contracts-spec
- workspace:*
- elysia
- catalog:server
Development dependencies 2
- @lssm-tech/tool.typescript
- workspace:*
- typescript
- catalog:
Package scripts.
Commands declared by this package. Review its setup requirements before running them; no command here was executed by this review.
rm -rf dist api/distbun run lint:fixnode ../../../scripts/biome.cjs check --write --unsafe --only=nursery/useSortedClasses . && node ../../../scripts/biome.cjs check --write .node ../../../scripts/biome.cjs check .bun run --watch src/index.tsbun run build:types && bun run build:bundlebun build --target node --packages bundle --external '@mistralai/mistralai' --external '@google-cloud/storage' --external '@linear/sdk' --external '@notionhq/client' --external '@qdrant/js-client-rest' --external '@elevenlabs/elevenlabs-js' --external '@fal-ai/client' --external '@composio/core' --external 'googleapis' --external 'fathom-typescript' --outfile dist/index.js src/index.ts && mkdir -p api/dist && cp dist/index.js api/dist/index.jsbun x --bun tsc -p ./tsconfig.json --noEmitbun run build:typesbun testbun run ./dist/index.js