Layer 3: Static Manifest & CI/CD Auto-Scanner (@shdwsdk/sdk/scanner)

Automated AI-BOM (4 Layers)
#scanner#package.json#requirements.txt#ci-cd#github-actions#detectAiSdksInManifest#tree-shakeable

Scan package.json or requirements.txt with zero runtime overhead to auto-discover installed AI SDKs and Vector DB clients.

How It Works Under the Hood
  • •detectAiSdksInManifest() lives in a separate tree-shakeable entry point (@shdwsdk/sdk/scanner) so it adds nothing to your production bundle.
  • •It inspects package.json (Node.js/TypeScript) and requirements.txt (Python) for OpenAI, Anthropic, Gemini, Mistral and Cohere SDKs and Pinecone, pgvector, Weaviate, Qdrant and Chroma clients.
  • •A manifest tells you which vendors you use, not which model versions or endpoints, so the scanner reports vendors only. Confirm the exact model versions you call before adding them to your AI-BOM — or let the runtime SDK add them automatically.
How to Use It Step-by-Step
  1. 1Open the 'AI-BOM & Governance' tab, paste your package.json or requirements.txt and click 'Detect AI SDKs' to pre-fill the registration form, OR
  2. 2Import detectAiSdksInManifest from '@shdwsdk/sdk/scanner' in CI to flag AI SDKs that aren't yet in your AI-BOM.
CI manifest check
import fs from "node:fs";
import { detectAiSdksInManifest } from "@shdwsdk/sdk/scanner";

const { providers, vectorStores } = detectAiSdksInManifest({
  packageJsonContent: fs.readFileSync("./package.json", "utf8"),
});
console.log("AI SDKs:", providers, "Vector stores:", vectorStores);

Related guides