› cavi-ai/
GitHub ↗

Describe teams and resource routing

A TeamManifest describes consumer-owned teams, members, identity, workspace paths, and action configuration. The package owns its types, normalization, and routing helpers; your application owns the actual entries.

Import the contract from @cavi-ai/api-client/contracts. The import example includes the manifest type.

Keep the boundary clear

Use team/member identity and permitted relative workspace paths to describe resource access. Do not put credentials, transport behavior, host runtime globals, or arbitrary filesystem assumptions in a team entry. A manifest is configuration, not proof that an upstream route exists or permission is granted.

Facade teams resolve through an available manifest when no explicit backend is supplied. An absent manifest results in a capability gap rather than invented teams. Runtime owners remain responsible for the route's meaning and behavior.

Verify before integration

Validate the manifest using the public contract helpers, exercise the consumed team and workspace routes on your backend, and handle gaps from calls even after a manifest resolves. Keep custom CAVI registry behavior in the extension layer rather than treating it as part of every runtime.

Contracts reference · Gateway resources · Capability discovery

Referenced examples

Verified example · TypeScript

Narrow imports

examples/narrow-imports.ts

@cavi-ai/api-clientv0.21.007f0ee45
TypeScript · complete source
import { ClaudeApiClient } from "@cavi-ai/api-client/providers/claude/messages";
import { CodexFilesClient } from "@cavi-ai/api-client/providers/codex/files";
import { HERMES_PROVIDER_MODULE } from "@cavi-ai/api-client/providers/hermes/runtime";
import { OPENCLAW_PROVIDER_MODULE } from "@cavi-ai/api-client/providers/openclaw/runtime";
import type { TeamManifest } from "@cavi-ai/api-client/contracts";

export function readManifestVersion(manifest: TeamManifest) {
  return manifest.version;
}

export const narrowImports = {
  ClaudeApiClient,
  CodexFilesClient,
  HERMES_PROVIDER_MODULE,
  OPENCLAW_PROVIDER_MODULE,
};

Package imports

Referenced by

Artifact provenance
Package
@cavi-ai/api-client@0.21.0
Release
v0.21.0
Commit
07f0ee45424c267278f7b0c89a7dcea4e2492cc1
Source
examples/narrow-imports.ts
Tarball SHA-256
0924b5d3a7a40869bd44fedc47a9b8eb9844c2af1fd5c7ca77469d8b7c0b8558
Content SHA-256
24eff463c41582eaf5e70c58f42e5ae13bd12d02fa14ae2a886afa3abf5cdf48