# @lssm-tech/integration.workspace-ai

Optional concrete AI providers and agents for ContractSpec workspace hosts

## Source and release context

- Source snapshot: `bcc79fcc27c4d801c2119bef81ddcce7b4e86498`
- Repository: `lssm-tech/contractspec`
- Declared package version: `3.1.5`
- Package path: `packages/integrations/workspace-ai`
- Manifest path: `packages/integrations/workspace-ai/package.json`
- Manifest Git blob: `a44f8cb12c81bdccc486b564e475b7164e2de904`
- Manifest origin: pinned GitHub manifest fetch
- Manual: [@lssm-tech/integration.workspace-ai](https://lssm.co/docs/packages/integration.workspace-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/workspace-ai)
- [Manifest source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/workspace-ai/package.json)
- [Readme source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/workspace-ai/README.md)
- [Guide source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/apps/web-landing/public/llms-packages/integration.workspace-ai.txt)

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "tooling-and-agent-delivery",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "integrations",
    "catalogKind": "integration",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "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/workspace-ai/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/workspace-ai/README.md",
  "blobSha": "44dbcc79c029d3ce31f02c7c3f6f165d34408d19",
  "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.workspace-ai

Optional concrete AI providers, agents, prompts, and orchestration for hosts
using `@lssm-tech/bundle.workspace` dependency-free AI ports.

```bash
bun add @lssm-tech/integration.workspace-ai
```


Provider credentials and model selection remain host configuration. The base
workspace bundle no longer exports these concrete agents from its root.

The Ollama implementation uses `ollama-ai-provider-v2` for AI SDK 7/Zod 4
compatibility. Provider configuration and model selection are unchanged.

The workspace Knip configuration intentionally retains `lib.ai-agent`, `chalk`,
and `ora`. They are runtime imports of the package's conditional agent and Node
subpaths; production Knip starts from the public barrel and cannot follow every
host-selected subpath, so removing them would break those published entrypoints.

The `generateBuilderFileProposal` export from `/agents` reuses AgentProvider generation with
a host-reviewed target and preimage, returning code as a proposal only. Provider
metadata cannot change the target, and oversized/empty output is nonconforming.
The host must provide a qualified isolated agent, persist sanitized usage evidence,
and apply through Builder/Connect; prompt instructions are not isolation. This
bridge is additive and remains unqualified against a live provider.


## Declared capabilities

### Integration Workspace Ai

Capability ID: `package.lssm.tech.integration.workspace.ai`

Optional concrete AI providers and agents for ContractSpec workspace hosts

Use cases:

- Adopt optional concrete ai providers and agents for contractspec workspace hosts

Constraints:

```json
{
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "avoidWhen": [
    "The @lssm-tech/integration.workspace-ai package constraints do not match the target runtime or platform."
  ],
  "requires": [
    "TypeScript"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "integration",
    "workspace"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 50
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/integration.workspace-ai",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.workspace-ai/agents",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.workspace-ai/prompts",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.workspace-ai/providers",
    "symbols": []
  },
  {
    "from": "@lssm-tech/integration.workspace-ai/workspace-adapter",
    "symbols": []
  }
]
```

## Catalogue metadata

```json
{
  "family": "integrations",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "stable",
  "platforms": [
    "server"
  ],
  "runtimes": [
    "node"
  ],
  "entrypoints": [
    ".",
    "./agents",
    "./prompts",
    "./providers",
    "./workspace-adapter"
  ],
  "examples": [],
  "replacements": []
}
```

## 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
[
  {
    "capabilityId": "package.lssm.tech.integration.workspace.ai",
    "from": "@lssm-tech/integration.workspace-ai",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.workspace.ai",
    "from": "@lssm-tech/integration.workspace-ai/agents",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.workspace.ai",
    "from": "@lssm-tech/integration.workspace-ai/prompts",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.workspace.ai",
    "from": "@lssm-tech/integration.workspace-ai/providers",
    "symbols": []
  },
  {
    "capabilityId": "package.lssm.tech.integration.workspace.ai",
    "from": "@lssm-tech/integration.workspace-ai/workspace-adapter",
    "symbols": []
  }
]
```

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

## Package publication metadata

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

```json
{
  "types": "./dist/index.d.ts",
  "files": [
    "dist",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./agents": {
      "types": "./dist/agents/index.d.ts",
      "bun": "./dist/agents/index.js",
      "node": "./dist/node/agents/index.js",
      "default": "./dist/agents/index.js"
    },
    "./agents/builder-proposal": {
      "types": "./dist/agents/builder-proposal.d.ts",
      "bun": "./dist/agents/builder-proposal.js",
      "node": "./dist/node/agents/builder-proposal.js",
      "default": "./dist/agents/builder-proposal.js"
    },
    "./agents/claude-code-agent": {
      "types": "./dist/agents/claude-code-agent.d.ts",
      "bun": "./dist/agents/claude-code-agent.js",
      "node": "./dist/node/agents/claude-code-agent.js",
      "default": "./dist/agents/claude-code-agent.js"
    },
    "./agents/cursor-agent": {
      "types": "./dist/agents/cursor-agent.d.ts",
      "bun": "./dist/agents/cursor-agent.js",
      "node": "./dist/node/agents/cursor-agent.js",
      "default": "./dist/agents/cursor-agent.js"
    },
    "./agents/openai-codex-agent": {
      "types": "./dist/agents/openai-codex-agent.d.ts",
      "bun": "./dist/agents/openai-codex-agent.js",
      "node": "./dist/node/agents/openai-codex-agent.js",
      "default": "./dist/agents/openai-codex-agent.js"
    },
    "./agents/orchestrator": {
      "types": "./dist/agents/orchestrator.d.ts",
      "bun": "./dist/agents/orchestrator.js",
      "node": "./dist/node/agents/orchestrator.js",
      "default": "./dist/agents/orchestrator.js"
    },
    "./agents/simple-agent": {
      "types": "./dist/agents/simple-agent.d.ts",
      "bun": "./dist/agents/simple-agent.js",
      "node": "./dist/node/agents/simple-agent.js",
      "default": "./dist/agents/simple-agent.js"
    },
    "./agents/types": {
      "types": "./dist/agents/types.d.ts",
      "bun": "./dist/agents/types.js",
      "node": "./dist/node/agents/types.js",
      "default": "./dist/agents/types.js"
    },
    "./agents/unified-adapter": {
      "types": "./dist/agents/unified-adapter.d.ts",
      "bun": "./dist/agents/unified-adapter.js",
      "node": "./dist/node/agents/unified-adapter.js",
      "default": "./dist/agents/unified-adapter.js"
    },
    "./prompts": {
      "types": "./dist/prompts/index.d.ts",
      "bun": "./dist/prompts/index.js",
      "node": "./dist/node/prompts/index.js",
      "default": "./dist/prompts/index.js"
    },
    "./prompts/code-generation": {
      "types": "./dist/prompts/code-generation.d.ts",
      "bun": "./dist/prompts/code-generation.js",
      "node": "./dist/node/prompts/code-generation.js",
      "default": "./dist/prompts/code-generation.js"
    },
    "./prompts/spec-creation": {
      "types": "./dist/prompts/spec-creation.d.ts",
      "bun": "./dist/prompts/spec-creation.js",
      "node": "./dist/node/prompts/spec-creation.js",
      "default": "./dist/prompts/spec-creation.js"
    },
    "./providers": {
      "types": "./dist/providers.d.ts",
      "bun": "./dist/providers.js",
      "node": "./dist/node/providers.js",
      "default": "./dist/providers.js"
    },
    "./workspace-adapter": {
      "types": "./dist/workspace-adapter.d.ts",
      "bun": "./dist/workspace-adapter.js",
      "node": "./dist/node/workspace-adapter.js",
      "default": "./dist/workspace-adapter.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- `@ai-sdk/anthropic`: `catalog:ai`
- `@ai-sdk/openai`: `catalog:ai`
- [@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.contracts-runtime-core](https://lssm.co/docs/packages/lib.contracts-runtime-core/): `workspace:^`
- `ai`: `catalog:ai`
- `chalk`: `^6.0.0`
- `ollama-ai-provider-v2`: `catalog:ai`
- `ora`: `^9.4.1`

### 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": "contractspec-bun-build build",
  "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 --pass-with-no-tests",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

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

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

## Existing agent-guide projection

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