Extract, don’t paraphrase
NCI doesn’t summarize TypeScript declarations — it extracts them. The exact signature text and the verbatim /** */ JSDoc go straight into the index, with bodies, plain comments, and whitespace stripped. Everything an agent quotes is the declaration as written.
Side-by-side
There is one signature string per symbol, kept verbatim. What changes between queries is the CLI surface you ask for: a list hit, the cite-ready snippet, or the full stored row. Toggle between them below; the left column always shows the same raw .d.ts source.
declare class ZodObject< T extends ZodRawShape, UnknownKeys extends UnknownKeysParam = UnknownKeysParam, Catchall extends ZodTypeAny = ZodTypeAny, > extends ZodType< Output<T, UnknownKeys, Catchall>, ZodObjectDef<T, UnknownKeys, Catchall>, Input<T, UnknownKeys, Catchall> > { /** Removes a key from the schema. */ omit<Mask extends { [k in keyof T]?: true }>( mask: Mask, ): ZodObject<Omit<T, keyof Mask>, UnknownKeys, Catchall>; }
What stays in the row
- The full declaration
signaturetext — generics,extends/implements, defaults, overloads. - The verbatim
/** */JSDoc block injs_doc. kind_nameso the agent knows whether it’s reasoning about an interface, a class member, or a type alias.parent_symbol_idso a method always points back to its class or namespace.source_package_nameandsource_file_pathso the agent can cite the owning package, even when the declaration was authored elsewhere (e.g. types in@types/foo).
What never lands in the row
- Plain
//implementation comments — they describe how the code works, not how to call it. - Bodies of value declarations. Only the contract is stored.
- Whitespace trivia and repeated empty lines.
is_internal = 1 rows are kept on disk; they just sit off the public export surface. --public-only (and the equivalent zod field on nci_query) is the way to filter them out at query time.
How the agent reaches it
Take the id from that envelope and feed it into nci query snippet:
snippet returns the cite-ready signature — signature + JSDoc — without any of the surrounding file. That is the one the agent quotes back to the user.
For the bundled flow — exact-name + FTS hits + batched snippets in one call — use nci query evidence --package zod --package-version 3.23.8 --symbol ZodObject. That is what an agent should reach for first; chained find + symbol + snippet is the fallback.