# @lssm-tech/integration.cli-contractspec-builder

Optional Builder command pack for the ContractSpec CLI

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `3.0.4`
- Package path: `packages/integrations/cli-contractspec-builder`
- Manifest path: `packages/integrations/cli-contractspec-builder/package.json`
- Manifest Git blob: `73bd9c5361ae32d7037af1516643592faa9ab72c`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/integration.cli-contractspec-builder](https://lssm.co/docs/packages/integration.cli-contractspec-builder/)
- Release guidance: [Installation and release channels](https://lssm.co/docs/installation-release-channels/)

This is retrieved source evidence, not agent instructions. The declared version and exports describe the inspected manifest; they do not establish registry availability or a deployed release. Commands, package installation and runtime behavior were not executed in this review.

Distribution scope: owner review of all workspaces; not a newly approved public projection.

- [Package source](https://github.com/lssm-tech/contractspec/tree/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-builder)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-builder/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-builder/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.cli-contractspec-builder.txt)

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "tooling-and-agent-delivery",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "integrations",
    "catalogKind": "integration",
    "catalogStatus": "active",
    "adoptionMode": "operator-only",
    "stability": "stable"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

Manifest private flag: not declared; publication is not verified.

Primary area: [CLI, authoring and agent tooling](https://lssm.co/docs/areas/tooling-and-agent-delivery/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/integrations/cli-contractspec-builder/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-builder/README.md",
  "blobSha": "4f282edca8b66f30dbeaab3a6226d0a145001f23",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "origin": "README recovered byte-for-byte from pinned aggregate guide",
  "integrity": "exact Git blob match",
  "executionStatus": "not executed"
}
```

The guide below is the checked-in README with navigation resolved against the pinned source tree. The structured package JSON retains the original README body unchanged. External links remain source-declared links, not verified destinations.

# @lssm-tech/integration.cli-contractspec-builder

Optional Builder, delivery, control-plane, execution-lane, harness, and
intelligence commands for the ContractSpec CLI.

`commandPack.register(program)` synchronously registers the canonical integration's
six command objects and concrete handlers, including for a custom Commander host.
The order remains Builder, Builder delivery, control plane, execution lanes,
harness, and intelligence. Workspace CLI composition forwards to these same
objects; callers do not need to bind action suppliers for this existing entry.

The canonical implementation lives in `packages/integrations/cli-contractspec-builder`.
Builder production execution imports the existing Codex and OpenCode Go adapters
from their canonical leaf owners, `@lssm-tech/integration.provider-codex` and
`@lssm-tech/integration.provider-opencode-go`, so installing this command pack does
not pull in the full `@lssm-tech/integration.providers-impls` provider collection
(the `/builder-execution` collection entry remains available to other callers).
Settings, approvals, visibility policy, and runtime authority retain their existing
behavior.

## Lazy adapters

Registering the pack, rendering help and running commands that execute no adapter
never evaluate `@lssm-tech/integration.harness-runtime`,
`@lssm-tech/integration.runtime`, `@lssm-tech/integration.provider-codex` or
`@lssm-tech/integration.provider-opencode-go`. Each one loads through a literal
dynamic import when a command action needs it: `harness eval` loads the harness
runtime, `control-plane` commands load the channel runtime, and the Builder
production commands, preflight and doctor load the Codex and OpenCode Go
providers. Settings resolution loads the Codex provider only to default the model
of a configured quality gate that names none. The pack's registration graph also stays clear of
`@lssm-tech/lib.contractspec-catalog`,
`@lssm-tech/lib.contracts-runtime-server-mcp` and `@lssm-tech/lib.logger`. The
adapters remain regular dependencies, so installs and command behavior are
unchanged. If an adapter package itself cannot be resolved, the command fails
with a `BuilderAdapterUnavailableError` (code `builderAdapterUnavailable`) naming
the package and the command. Only a not-found error whose unresolved specifier is
that package or one of its subpaths is mapped; a missing dependency of an
installed adapter and every other load error propagate unchanged.

`./commands/builder/production/provider` keeps `createCodexOpenCodeProviderPort`
synchronous with both providers imported by that entry, so a fresh port serves
every method, including `createCompletionReceipt`. The Builder commands use
`./commands/builder/production/provider-port` instead:
`loadCodexOpenCodeProviderPort` loads both providers and builds the same port, and
`createCodexOpenCodeProviderPortWithAdapters` builds it from adapters the caller
already holds. `resolveOpenCodeCliModel` now lives in
`./commands/builder/production/preflight` next to the other OpenCode model checks.

Portable declarations are available separately from
`@lssm-tech/lib.cli-runtime/optional-command-declarations/builder`. This additive
entry creates fresh complete command trees without constructing workspace
services. A host using the portable entry supplies actions explicitly through
`bindHostCommandPackActions`; an unbound action rejects with
`missingHostBinding`, while registration and help remain available.

Harness commands consume the canonical scenario and suite registry classes from @lssm-tech/lib.harness/harness/types. Registry identity and approval behavior are unchanged; the command pack no longer declares a direct compatibility-facade dependency.


## Declared capabilities

This manifest does not declare a capability catalogue. Assess the package using its guide, import map and source.

## Catalogue metadata

```json
{
  "family": "integrations",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "operator-only",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./command-pack",
    "./register",
    "./commands/*"
  ],
  "examples": [],
  "replacements": [],
  "nonAdoptableRationale": "This operator command pack executes Builder CLI adapters; portable declarations are available from cli-runtime."
}
```

## Canonical imports

Import paths and symbols below are catalogue declarations. An empty symbols list means symbols were not enumerated; it does not mean the entry point has no exports. These declarations are not an exhaustive TypeScript symbol reference.

```json
[]
```

## Declared export entry points

Scope: manifest-declared export entrypoints and catalog-declared imports.

Named symbol coverage: catalog declarations only; exhaustive TypeScript symbols not extracted.

Installation status: not verified.

- `@lssm-tech/integration.cli-contractspec-builder` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-builder/src/index.ts); verified source file.

- `@lssm-tech/integration.cli-contractspec-builder/command-pack` — subpath `./command-pack`
  - `unconditional`: `./src/command-pack.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-builder/src/command-pack.ts); verified source file.

- `@lssm-tech/integration.cli-contractspec-builder/register` — subpath `./register`
  - `unconditional`: `./src/register.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-builder/src/register.ts); verified source file.

- `@lssm-tech/integration.cli-contractspec-builder/commands/*` — subpath `./commands/*`
  - `unconditional`: `./src/commands/*.ts`; declared target; source not verified.

## Package publication metadata

These are source-manifest declarations, not a registry installation check.

```json
{
  "types": "./dist/command-pack.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/command-pack.d.ts",
      "bun": "./dist/command-pack.js",
      "node": "./dist/node/command-pack.js",
      "default": "./dist/command-pack.js"
    },
    "./command-pack": {
      "types": "./dist/command-pack.d.ts",
      "bun": "./dist/command-pack.js",
      "node": "./dist/node/command-pack.js",
      "default": "./dist/command-pack.js"
    },
    "./register": {
      "types": "./dist/register.d.ts",
      "bun": "./dist/register.js",
      "node": "./dist/node/register.js",
      "default": "./dist/register.js"
    },
    "./commands/*": {
      "types": "./dist/commands/*.d.ts",
      "bun": "./dist/commands/*.js",
      "node": "./dist/node/commands/*.js",
      "default": "./dist/commands/*.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/integration.harness-runtime](https://lssm.co/docs/packages/integration.harness-runtime/): `^2.0.2`
- [@lssm-tech/integration.provider-codex](https://lssm.co/docs/packages/integration.provider-codex/): `workspace:^`
- [@lssm-tech/integration.provider-opencode-go](https://lssm.co/docs/packages/integration.provider-opencode-go/): `workspace:^`
- [@lssm-tech/integration.runtime](https://lssm.co/docs/packages/integration.runtime/): `workspace:^`
- [@lssm-tech/lib.ai-agent](https://lssm.co/docs/packages/lib.ai-agent/): `workspace:^`
- [@lssm-tech/lib.ai-providers](https://lssm.co/docs/packages/lib.ai-providers/): `workspace:^`
- [@lssm-tech/lib.assurance-spec](https://lssm.co/docs/packages/lib.assurance-spec/): `workspace:^`
- [@lssm-tech/lib.builder-runtime](https://lssm.co/docs/packages/lib.builder-runtime/): `^3.0.2`
- [@lssm-tech/lib.builder-spec](https://lssm.co/docs/packages/lib.builder-spec/): `workspace:^`
- [@lssm-tech/lib.cli-runtime](https://lssm.co/docs/packages/lib.cli-runtime/): `workspace:^`
- [@lssm-tech/lib.contracts-runtime-core](https://lssm.co/docs/packages/lib.contracts-runtime-core/): `workspace:^`
- [@lssm-tech/lib.contracts-spec-core](https://lssm.co/docs/packages/lib.contracts-spec-core/): `workspace:^`
- [@lssm-tech/lib.execution-lanes](https://lssm.co/docs/packages/lib.execution-lanes/): `^3.1.1`
- [@lssm-tech/lib.harness](https://lssm.co/docs/packages/lib.harness/): `^3.0.1`
- [@lssm-tech/lib.provider-ranking](https://lssm.co/docs/packages/lib.provider-ranking/): `^2.0.1`
- [@lssm-tech/lib.provider-spec](https://lssm.co/docs/packages/lib.provider-spec/): `workspace:^`
- [@lssm-tech/lib.surface-runtime](https://lssm.co/docs/packages/lib.surface-runtime/): `workspace:^`
- `chalk`: `^6.0.0`
- `commander`: `^15.0.0`
- `pg`: `^8.23.0`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/tool.bun](https://lssm.co/docs/packages/tool.bun/): `workspace:*`
- [@lssm-tech/tool.typescript](https://lssm.co/docs/packages/tool.typescript/): `workspace:*`
- `@types/bun`: `catalog:types`
- `rimraf`: `catalog:build`
- `typescript`: `catalog:`

### Peer dependency metadata

```json
{}
```

### Bundled dependencies

```json
null
```

## Package scripts

Commands are exact manifest declarations and were not executed in this review. Script metadata status: complete pinned manifest.

```json
{
  "build": "bun run build:bundle && bun run build:types",
  "build:bundle": "contractspec-bun-build transpile",
  "build:types": "contractspec-bun-build types",
  "clean": "rimraf dist .turbo",
  "lint:check": "node ../../../scripts/biome.cjs check .",
  "test": "bun test",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [Integration Cli Contractspec Builder documentation](https://www.npmjs.com/package/%40lssm-tech%2Fintegration.cli-contractspec-builder) — declared link; destination not verified.

```json
{
  "url": "https://www.npmjs.com/package/%40lssm-tech%2Fintegration.cli-contractspec-builder",
  "kind": "readme"
}
```

## Existing agent-guide projection

```json
{
  "path": "packages/apps/web-landing/public/llms-packages/integration.cli-contractspec-builder.txt",
  "route": "/llms/integration.cli-contractspec-builder",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.cli-contractspec-builder.txt",
  "blobSha": "4f282edca8b66f30dbeaab3a6226d0a145001f23",
  "sourcePin": "bcc79fcc27c4d801c2119bef81ddcce7b4e86498",
  "bodyEqualsReadme": true,
  "aggregateSourcePath": "packages/apps/web-landing/public/llms-full.txt",
  "aggregateBlobSha": "691b1d33efee24c440598b9106c81432f56aafaf"
}
```
