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
- 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
- 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
- Layer 1: Zero-Touch Runtime AI-BOM Auto-Discovery & Zero-Knowledge Prompt Hashing
- Layer 2: RAG & Vector Database Auto-Instrumentation (shdw.wrapVectorStore)
- Layer 4: Model Integrity & CycloneDX / SPDX Exporters
- Interactive CLI Setup Wizard (npx @shdwsdk/sdk init / npx shdw-init)
- Non-Blocking Client Wrapper (shdw.wrapClient) & Fail-Silent Guarantee
- Scope 3 Energy & Carbon Formula + 22 Global & European Data Center Regions
- EU AI Act Risk Classification & US NIST AI RMF 1.0 Assessment Matrix
- Buyer-Facing Public Trust Center (/trust/[slug]) & Embeddable HTML Badge
