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

Optional AI 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-ai`
- Manifest path: `packages/integrations/cli-contractspec-ai/package.json`
- Manifest Git blob: `4e66e5e759adfd85d27aba7075f9034ce4ff4c32`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/integration.cli-contractspec-ai](https://lssm.co/docs/packages/integration.cli-contractspec-ai/)
- 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-ai)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-ai/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-ai/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.cli-contractspec-ai.txt)

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "tooling-and-agent-delivery",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "contracts",
    "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-ai/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-ai/README.md",
  "blobSha": "6e2e438200479c26a59666dd3ceeaf61674b3c75",
  "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-ai

Optional `agent`, `chat`, `llm`, `mcp`, and `vibe` commands plus AI extensions
for the ContractSpec CLI's core authoring, build, test, and validation commands.

The default and `command-pack` entrypoints synchronously register the canonical
AI integration commands. Existing custom Commander hosts retain concrete AI
commands and the core authoring, build, test, and validation extensions without
adding host bindings.

For hosts that need declarations and help separately from concrete services,
`@lssm-tech/lib.cli-runtime/optional-command-declarations/ai` supplies fresh command
trees with the same nested help, arguments, aliases, and option defaults. This
additive entry resolves explicit host actions when invoked. Host and pack builds
must share the external canonical CLI runtime.

Command implementations, provider adapters, MCP assembly, and the concrete
operation-client environment binding live in this integration. The former
workspace bundle paths forward to these same implementations. Generic LLM
authoring, workflow execution, and MCP builders live in narrow CLI runtime
entries; the integration does not import a bundle or host.

The owning `prebuild` generates the offline MCP knowledge corpus through
`scripts/generate-cli-mcp-knowledge.ts`. The generated corpus remains static at
runtime. The existing transpilation workflow preserves one canonical module
instance across command-pack and command subpath imports.


## Declared capabilities

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

## Catalogue metadata

```json
{
  "family": "contracts",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "operator-only",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./command-pack",
    "./commands/agent/index",
    "./commands/agent/migration",
    "./commands/chat/index",
    "./commands/llm/copy",
    "./commands/llm/export",
    "./commands/llm/guide",
    "./commands/llm/index",
    "./commands/llm/verify",
    "./commands/mcp/index",
    "./commands/vibe/config",
    "./commands/vibe/context",
    "./commands/vibe/index",
    "./commands/vibe/init",
    "./commands/vibe/pack",
    "./commands/vibe/run",
    "./ai/agents/claude-code-agent",
    "./ai/agents/cursor-agent",
    "./ai/agents/index",
    "./ai/agents/openai-codex-agent",
    "./ai/agents/orchestrator",
    "./ai/agents/simple-agent",
    "./ai/agents/types",
    "./ai/agents/unified-adapter",
    "./ai/client",
    "./ai/mcp/author-tools",
    "./ai/mcp/can-help-tool",
    "./ai/mcp/knowledge/index",
    "./ai/mcp/knowledge/knowledge.curated",
    "./ai/mcp/knowledge/knowledge.generated",
    "./ai/mcp/knowledge/types",
    "./ai/mcp/knowledge-ops",
    "./ai/mcp/operation-status-tool",
    "./ai/mcp/runtime/discover",
    "./ai/mcp/runtime/load",
    "./ai/mcp/runtime/server",
    "./ai/mcp/server",
    "./ai/prompts/code-generation",
    "./ai/prompts/spec-creation",
    "./ai/providers",
    "./program/optional-contributions/ai",
    "./operation-client-environment"
  ],
  "examples": [],
  "replacements": [],
  "nonAdoptableRationale": "This optional CLI integration is published for operator command composition."
}
```

## 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-ai` — subpath `.`
  - `unconditional`: `./src/index.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/cli-contractspec-ai/src/index.ts); verified source file.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

## 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"
    },
    "./commands/agent/index": {
      "types": "./dist/commands/agent/index.d.ts",
      "bun": "./dist/commands/agent/index.js",
      "node": "./dist/node/commands/agent/index.js",
      "default": "./dist/commands/agent/index.js"
    },
    "./commands/agent/migration": {
      "types": "./dist/commands/agent/migration.d.ts",
      "bun": "./dist/commands/agent/migration.js",
      "node": "./dist/node/commands/agent/migration.js",
      "default": "./dist/commands/agent/migration.js"
    },
    "./commands/chat/index": {
      "types": "./dist/commands/chat/index.d.ts",
      "bun": "./dist/commands/chat/index.js",
      "node": "./dist/node/commands/chat/index.js",
      "default": "./dist/commands/chat/index.js"
    },
    "./commands/llm/copy": {
      "types": "./dist/commands/llm/copy.d.ts",
      "bun": "./dist/commands/llm/copy.js",
      "node": "./dist/node/commands/llm/copy.js",
      "default": "./dist/commands/llm/copy.js"
    },
    "./commands/llm/export": {
      "types": "./dist/commands/llm/export.d.ts",
      "bun": "./dist/commands/llm/export.js",
      "node": "./dist/node/commands/llm/export.js",
      "default": "./dist/commands/llm/export.js"
    },
    "./commands/llm/guide": {
      "types": "./dist/commands/llm/guide.d.ts",
      "bun": "./dist/commands/llm/guide.js",
      "node": "./dist/node/commands/llm/guide.js",
      "default": "./dist/commands/llm/guide.js"
    },
    "./commands/llm/index": {
      "types": "./dist/commands/llm/index.d.ts",
      "bun": "./dist/commands/llm/index.js",
      "node": "./dist/node/commands/llm/index.js",
      "default": "./dist/commands/llm/index.js"
    },
    "./commands/llm/verify": {
      "types": "./dist/commands/llm/verify.d.ts",
      "bun": "./dist/commands/llm/verify.js",
      "node": "./dist/node/commands/llm/verify.js",
      "default": "./dist/commands/llm/verify.js"
    },
    "./commands/mcp/index": {
      "types": "./dist/commands/mcp/index.d.ts",
      "bun": "./dist/commands/mcp/index.js",
      "node": "./dist/node/commands/mcp/index.js",
      "default": "./dist/commands/mcp/index.js"
    },
    "./commands/vibe/config": {
      "types": "./dist/commands/vibe/config.d.ts",
      "bun": "./dist/commands/vibe/config.js",
      "node": "./dist/node/commands/vibe/config.js",
      "default": "./dist/commands/vibe/config.js"
    },
    "./commands/vibe/context": {
      "types": "./dist/commands/vibe/context.d.ts",
      "bun": "./dist/commands/vibe/context.js",
      "node": "./dist/node/commands/vibe/context.js",
      "default": "./dist/commands/vibe/context.js"
    },
    "./commands/vibe/index": {
      "types": "./dist/commands/vibe/index.d.ts",
      "bun": "./dist/commands/vibe/index.js",
      "node": "./dist/node/commands/vibe/index.js",
      "default": "./dist/commands/vibe/index.js"
    },
    "./commands/vibe/init": {
      "types": "./dist/commands/vibe/init.d.ts",
      "bun": "./dist/commands/vibe/init.js",
      "node": "./dist/node/commands/vibe/init.js",
      "default": "./dist/commands/vibe/init.js"
    },
    "./commands/vibe/pack": {
      "types": "./dist/commands/vibe/pack.d.ts",
      "bun": "./dist/commands/vibe/pack.js",
      "node": "./dist/node/commands/vibe/pack.js",
      "default": "./dist/commands/vibe/pack.js"
    },
    "./commands/vibe/run": {
      "types": "./dist/commands/vibe/run.d.ts",
      "bun": "./dist/commands/vibe/run.js",
      "node": "./dist/node/commands/vibe/run.js",
      "default": "./dist/commands/vibe/run.js"
    },
    "./ai/agents/claude-code-agent": {
      "types": "./dist/ai/agents/claude-code-agent.d.ts",
      "bun": "./dist/ai/agents/claude-code-agent.js",
      "node": "./dist/node/ai/agents/claude-code-agent.js",
      "default": "./dist/ai/agents/claude-code-agent.js"
    },
    "./ai/agents/cursor-agent": {
      "types": "./dist/ai/agents/cursor-agent.d.ts",
      "bun": "./dist/ai/agents/cursor-agent.js",
      "node": "./dist/node/ai/agents/cursor-agent.js",
      "default": "./dist/ai/agents/cursor-agent.js"
    },
    "./ai/agents/index": {
      "types": "./dist/ai/agents/index.d.ts",
      "bun": "./dist/ai/agents/index.js",
      "node": "./dist/node/ai/agents/index.js",
      "default": "./dist/ai/agents/index.js"
    },
    "./ai/agents/openai-codex-agent": {
      "types": "./dist/ai/agents/openai-codex-agent.d.ts",
      "bun": "./dist/ai/agents/openai-codex-agent.js",
      "node": "./dist/node/ai/agents/openai-codex-agent.js",
      "default": "./dist/ai/agents/openai-codex-agent.js"
    },
    "./ai/agents/orchestrator": {
      "types": "./dist/ai/agents/orchestrator.d.ts",
      "bun": "./dist/ai/agents/orchestrator.js",
      "node": "./dist/node/ai/agents/orchestrator.js",
      "default": "./dist/ai/agents/orchestrator.js"
    },
    "./ai/agents/simple-agent": {
      "types": "./dist/ai/agents/simple-agent.d.ts",
      "bun": "./dist/ai/agents/simple-agent.js",
      "node": "./dist/node/ai/agents/simple-agent.js",
      "default": "./dist/ai/agents/simple-agent.js"
    },
    "./ai/agents/types": {
      "types": "./dist/ai/agents/types.d.ts",
      "bun": "./dist/ai/agents/types.js",
      "node": "./dist/node/ai/agents/types.js",
      "default": "./dist/ai/agents/types.js"
    },
    "./ai/agents/unified-adapter": {
      "types": "./dist/ai/agents/unified-adapter.d.ts",
      "bun": "./dist/ai/agents/unified-adapter.js",
      "node": "./dist/node/ai/agents/unified-adapter.js",
      "default": "./dist/ai/agents/unified-adapter.js"
    },
    "./ai/client": {
      "types": "./dist/ai/client.d.ts",
      "bun": "./dist/ai/client.js",
      "node": "./dist/node/ai/client.js",
      "default": "./dist/ai/client.js"
    },
    "./ai/mcp/author-tools": {
      "types": "./dist/ai/mcp/author-tools.d.ts",
      "bun": "./dist/ai/mcp/author-tools.js",
      "node": "./dist/node/ai/mcp/author-tools.js",
      "default": "./dist/ai/mcp/author-tools.js"
    },
    "./ai/mcp/can-help-tool": {
      "types": "./dist/ai/mcp/can-help-tool.d.ts",
      "bun": "./dist/ai/mcp/can-help-tool.js",
      "node": "./dist/node/ai/mcp/can-help-tool.js",
      "default": "./dist/ai/mcp/can-help-tool.js"
    },
    "./ai/mcp/knowledge/index": {
      "types": "./dist/ai/mcp/knowledge/index.d.ts",
      "bun": "./dist/ai/mcp/knowledge/index.js",
      "node": "./dist/node/ai/mcp/knowledge/index.js",
      "default": "./dist/ai/mcp/knowledge/index.js"
    },
    "./ai/mcp/knowledge/knowledge.curated": {
      "types": "./dist/ai/mcp/knowledge/knowledge.curated.d.ts",
      "bun": "./dist/ai/mcp/knowledge/knowledge.curated.js",
      "node": "./dist/node/ai/mcp/knowledge/knowledge.curated.js",
      "default": "./dist/ai/mcp/knowledge/knowledge.curated.js"
    },
    "./ai/mcp/knowledge/knowledge.generated": {
      "types": "./dist/ai/mcp/knowledge/knowledge.generated.d.ts",
      "bun": "./dist/ai/mcp/knowledge/knowledge.generated.js",
      "node": "./dist/node/ai/mcp/knowledge/knowledge.generated.js",
      "default": "./dist/ai/mcp/knowledge/knowledge.generated.js"
    },
    "./ai/mcp/knowledge/types": {
      "types": "./dist/ai/mcp/knowledge/types.d.ts",
      "bun": "./dist/ai/mcp/knowledge/types.js",
      "node": "./dist/node/ai/mcp/knowledge/types.js",
      "default": "./dist/ai/mcp/knowledge/types.js"
    },
    "./ai/mcp/knowledge-ops": {
      "types": "./dist/ai/mcp/knowledge-ops.d.ts",
      "bun": "./dist/ai/mcp/knowledge-ops.js",
      "node": "./dist/node/ai/mcp/knowledge-ops.js",
      "default": "./dist/ai/mcp/knowledge-ops.js"
    },
    "./ai/mcp/operation-status-tool": {
      "types": "./dist/ai/mcp/operation-status-tool.d.ts",
      "bun": "./dist/ai/mcp/operation-status-tool.js",
      "node": "./dist/node/ai/mcp/operation-status-tool.js",
      "default": "./dist/ai/mcp/operation-status-tool.js"
    },
    "./ai/mcp/runtime/discover": {
      "types": "./dist/ai/mcp/runtime/discover.d.ts",
      "bun": "./dist/ai/mcp/runtime/discover.js",
      "node": "./dist/node/ai/mcp/runtime/discover.js",
      "default": "./dist/ai/mcp/runtime/discover.js"
    },
    "./ai/mcp/runtime/load": {
      "types": "./dist/ai/mcp/runtime/load.d.ts",
      "bun": "./dist/ai/mcp/runtime/load.js",
      "node": "./dist/node/ai/mcp/runtime/load.js",
      "default": "./dist/ai/mcp/runtime/load.js"
    },
    "./ai/mcp/runtime/server": {
      "types": "./dist/ai/mcp/runtime/server.d.ts",
      "bun": "./dist/ai/mcp/runtime/server.js",
      "node": "./dist/node/ai/mcp/runtime/server.js",
      "default": "./dist/ai/mcp/runtime/server.js"
    },
    "./ai/mcp/server": {
      "types": "./dist/ai/mcp/server.d.ts",
      "bun": "./dist/ai/mcp/server.js",
      "node": "./dist/node/ai/mcp/server.js",
      "default": "./dist/ai/mcp/server.js"
    },
    "./ai/prompts/code-generation": {
      "types": "./dist/ai/prompts/code-generation.d.ts",
      "bun": "./dist/ai/prompts/code-generation.js",
      "node": "./dist/node/ai/prompts/code-generation.js",
      "default": "./dist/ai/prompts/code-generation.js"
    },
    "./ai/prompts/spec-creation": {
      "types": "./dist/ai/prompts/spec-creation.d.ts",
      "bun": "./dist/ai/prompts/spec-creation.js",
      "node": "./dist/node/ai/prompts/spec-creation.js",
      "default": "./dist/ai/prompts/spec-creation.js"
    },
    "./ai/providers": {
      "types": "./dist/ai/providers.d.ts",
      "bun": "./dist/ai/providers.js",
      "node": "./dist/node/ai/providers.js",
      "default": "./dist/ai/providers.js"
    },
    "./program/optional-contributions/ai": {
      "types": "./dist/program/optional-contributions/ai.d.ts",
      "bun": "./dist/program/optional-contributions/ai.js",
      "node": "./dist/node/program/optional-contributions/ai.js",
      "default": "./dist/program/optional-contributions/ai.js"
    },
    "./operation-client-environment": {
      "types": "./dist/operation-client-environment.d.ts",
      "bun": "./dist/operation-client-environment.js",
      "node": "./dist/node/operation-client-environment.js",
      "default": "./dist/operation-client-environment.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- `@ai-sdk/anthropic`: `catalog:ai`
- `@ai-sdk/mistral`: `4.0.47`
- `@ai-sdk/openai`: `catalog:ai`
- `@inquirer/prompts`: `^8.7.2`
- [@lssm-tech/integration.lssm-os-operation-client](https://lssm.co/docs/packages/integration.lssm-os-operation-client/): `^2.0.1`
- [@lssm-tech/integration.workspace-ai](https://lssm.co/docs/packages/integration.workspace-ai/): `^3.1.2`
- [@lssm-tech/lib.agent-protocol-spec](https://lssm.co/docs/packages/lib.agent-protocol-spec/): `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.cli-runtime](https://lssm.co/docs/packages/lib.cli-runtime/): `workspace:^`
- [@lssm-tech/lib.contracts-library](https://lssm.co/docs/packages/lib.contracts-library/): `workspace:^`
- [@lssm-tech/lib.contracts-runtime-core](https://lssm.co/docs/packages/lib.contracts-runtime-core/): `workspace:^`
- [@lssm-tech/lib.contracts-runtime-kernel](https://lssm.co/docs/packages/lib.contracts-runtime-kernel/): `workspace:^`
- [@lssm-tech/lib.contracts-runtime-server-mcp](https://lssm.co/docs/packages/lib.contracts-runtime-server-mcp/): `^5.0.1`
- [@lssm-tech/lib.contracts-spec-core](https://lssm.co/docs/packages/lib.contracts-spec-core/): `workspace:^`
- [@lssm-tech/lib.logger](https://lssm.co/docs/packages/lib.logger/): `^5.0.1`
- [@lssm-tech/lib.schema](https://lssm.co/docs/packages/lib.schema/): `workspace:^`
- [@lssm-tech/lib.surface-runtime](https://lssm.co/docs/packages/lib.surface-runtime/): `workspace:^`
- [@lssm-tech/lib.utils-typescript](https://lssm.co/docs/packages/lib.utils-typescript/): `workspace:^`
- `@modelcontextprotocol/sdk`: `^1.30.0`
- `ai`: `catalog:ai`
- `chalk`: `^6.0.0`
- `commander`: `^15.0.0`
- `ollama-ai-provider-v2`: `catalog:ai`
- `ora`: `^9.4.1`
- `zod`: `catalog:`

### Peer dependencies

No declarations in the inspected manifest.

### Optional dependencies

No declarations in the inspected manifest.

### Development dependencies

- [@lssm-tech/module.examples](https://lssm.co/docs/packages/module.examples/): `^6.1.1`
- [@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",
  "prebuild": "bun scripts/generate-cli-mcp-knowledge.ts"
}
```

## Declared documentation links

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

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

## Existing agent-guide projection

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