cyt-indexer-sdk
v0.5.10
Published
TypeScript SDK for cyt-indexer — tool schema decomposition and catalog indexing
Maintainers
Readme
cyt-indexer-sdk
TypeScript/Node bindings for the cyt-indexer Rust library.
Development
cd sdk/typescript
npm install
npm run build
npm testRequires a Rust toolchain (same as the Python SDK maturin flow).
Local npm run build:native produces a binding for the current platform only.
Release builds that ship all platforms run in GitHub Actions (.github/workflows/publish-npm-sdk.yml).
Publishing
The npm package cyt-indexer-sdk is a single fat package: all platform .node files are included in one tarball (~30MB).
Only one trusted publisher entry is required on npm.
Do not run napi create-npm-dirs, napi artifacts, or napi prepublish for releases;
CI stages every cyt-indexer-sdk.*.node into the package root and runs npm publish once.
Usage
import {
anthropicToolsToCatalogEntries,
buildCatalogFromTools,
buildCatalogIndex,
loadCatalog,
removedChunks,
retrieveTools,
} from "cyt-indexer-sdk";
const full = loadCatalog(".catalog");
const surviving = /* survivors.json */;
const removed = removedChunks(full, surviving);