# @lssm-tech/integration.lssm-os-operation-client

Browser, Bun, and Node client for canonical LSSM OS durable-operation status.

## Source and release context

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

## Package metadata

```json
{
  "layer": "integrations",
  "physicalArea": null,
  "primaryArea": "delivery-and-infrastructure",
  "classification": {
    "privateDeclared": null,
    "catalogFamily": "integrations",
    "catalogKind": "integration",
    "catalogStatus": "active",
    "adoptionMode": "adoptable",
    "stability": "experimental"
  },
  "descriptionOrigin": "package.json",
  "manifestComplete": true,
  "publicationPolicyApplied": false
}
```

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

Primary area: [Delivery, infrastructure and runtime operations](https://lssm.co/docs/areas/delivery-and-infrastructure/)

## Package guide

```json
{
  "status": "available",
  "sourcePath": "packages/integrations/lssm-os-operation-client/README.md",
  "sourceUrl": "https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-operation-client/README.md",
  "blobSha": "d7ee122050d3ab9e7844d2c8e47af80465900b7a",
  "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.lssm-os-operation-client`

Browser-, Bun-, and Node-safe client for the authenticated Agent Host durable
operation status route.

The integration owns HTTP transport only. Runtime Node remains the canonical
owner of operation state, status, request and receipt digests, error mappings,
and REST/CLI/MCP/SDK/UI projections. The client validates every untrusted body
through that runtime contract before returning any surface. It implements and
re-exports the provider-neutral operation client port from
`@lssm-tech/lib.lssm-os-runtime/runtime-node` for source compatibility.

```ts
import { createLssmOsOperationClientV1 } from "@lssm-tech/integration.lssm-os-operation-client";

const client = createLssmOsOperationClientV1({
  origin: "https://agent-host.example.com",
  timeoutMs: 5_000,
  authorization: {
    async getAuthorization() {
      return { status: "available", authorization: "Bearer <opaque>" };
    },
  },
});

const result = await client.getOperationStatus({
  tenantId: "tenant",
  workspaceId: "workspace",
  environmentId: "production",
  operationId: "operation-123",
});
```


Credentials are injected for each request and are never retained, returned, or
included in an error. The client accepts HTTPS origins only, bounds response
bytes and time, requires private no-store JSON responses, rejects redirects,
and verifies exact scope, operation identity, status code, operation URL,
terminal posture, retry posture, and canonical digest.

Transport failure returns the canonical `operation_unavailable` error surface;
it never invents operation completion. Consumers use the returned `cli`, `mcp`,
`sdk`, or `ui` member unchanged instead of defining shell-local mappings.


## Declared capabilities

### LSSM OS durable operation client

Capability ID: `lssm-os.operation-status.client`

Read authenticated durable-operation status and preserve one canonical REST, CLI, MCP, SDK, and UI projection.

Use cases:

- Dereference HTTP 202 and CLI exit 5 operation references
- Reject malformed or substituted operation status responses

Constraints:

```json
{
  "platforms": [
    "browser",
    "server"
  ],
  "runtimes": [
    "browser",
    "bun",
    "node"
  ],
  "avoidWhen": [
    "The host does not expose the canonical authenticated Runtime Node operation status route."
  ],
  "requires": [
    "Authenticated Agent Host operation status HTTP endpoint"
  ]
}
```

Other capability declarations:

```json
{
  "status": "active",
  "aliases": [
    "LSSM OS SDK",
    "operation status",
    "durable operation client"
  ],
  "pythonEquivalents": [],
  "alternatives": [],
  "relationships": [],
  "resolutionPriority": 80
}
```

Capability imports:

```json
[
  {
    "from": "@lssm-tech/integration.lssm-os-operation-client",
    "symbols": [
      "createLssmOsOperationClientV1"
    ]
  }
]
```

## Catalogue metadata

```json
{
  "family": "integrations",
  "kind": "integration",
  "status": "active",
  "adoptionMode": "adoptable",
  "stability": "experimental",
  "platforms": [
    "browser",
    "server"
  ],
  "runtimes": [
    "browser",
    "bun",
    "node"
  ],
  "entrypoints": [
    "."
  ],
  "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": "lssm-os.operation-status.client",
    "from": "@lssm-tech/integration.lssm-os-operation-client",
    "symbols": [
      "createLssmOsOperationClientV1"
    ]
  }
]
```

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

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

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

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

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

- `@lssm-tech/integration.lssm-os-operation-client/types` — subpath `./types`
  - `unconditional`: `./src/types.ts` — [pinned source](https://github.com/lssm-tech/contractspec/blob/bcc79fcc27c4d801c2119bef81ddcce7b4e86498/packages/integrations/lssm-os-operation-client/src/types.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",
    "!dist/**/*test*",
    "README.md"
  ],
  "publishExports": {
    ".": {
      "types": "./dist/index.d.ts",
      "browser": "./dist/browser/index.js",
      "bun": "./dist/index.js",
      "node": "./dist/node/index.js",
      "default": "./dist/index.js"
    },
    "./body": {
      "types": "./dist/body.d.ts",
      "browser": "./dist/browser/body.js",
      "bun": "./dist/body.js",
      "node": "./dist/node/body.js",
      "default": "./dist/body.js"
    },
    "./client": {
      "types": "./dist/client.d.ts",
      "browser": "./dist/browser/client.js",
      "bun": "./dist/client.js",
      "node": "./dist/node/client.js",
      "default": "./dist/client.js"
    },
    "./config": {
      "types": "./dist/config.d.ts",
      "browser": "./dist/browser/config.js",
      "bun": "./dist/config.js",
      "node": "./dist/node/config.js",
      "default": "./dist/config.js"
    },
    "./config-validation": {
      "types": "./dist/config-validation.d.ts",
      "browser": "./dist/browser/config-validation.js",
      "bun": "./dist/config-validation.js",
      "node": "./dist/node/config-validation.js",
      "default": "./dist/config-validation.js"
    },
    "./types": {
      "types": "./dist/types.d.ts",
      "browser": "./dist/browser/types.js",
      "bun": "./dist/types.js",
      "node": "./dist/node/types.js",
      "default": "./dist/types.js"
    }
  }
}
```

## Dependencies

Metadata status: complete pinned manifest.

### Runtime dependencies

- [@lssm-tech/lib.lssm-os-runtime](https://lssm.co/docs/packages/lib.lssm-os-runtime/): `^2.1.1`
- `zod`: `^4.5.4`

### 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`
- `typescript`: `^7.0.2`

### 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",
  "lint:check": "node ../../../scripts/biome.cjs check .",
  "pack:verify": "bun run build && bun scripts/verify-pack.ts",
  "test": "bun test",
  "typecheck": "tsgo --noEmit"
}
```

## Declared documentation links

- [LSSM OS operation client](https://www.npmjs.com/package/%40lssm-tech%2Fintegration.lssm-os-operation-client) — declared link; destination not verified.

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

## Existing agent-guide projection

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