[0.12.0] - 2026-04-18
Synchronized version bump for all @stackbilt/* packages to 0.12.0.
Added
analyze()+ Zod schemas for@stackbilt/surface— new high-levelanalyze(input: SurfaceInput): SurfaceOutputentry point, plusSurfaceInputSchema,SurfaceOutputSchema,RouteSchema,SchemaTableSchema,SchemaColumnSchema,DEFAULT_SURFACE_EXTENSIONS, andDEFAULT_SURFACE_IGNORE_DIRSexports. The Zod schemas are the authoritative input/output contract shared by the CLI and MCP tool adapters. ExistingextractSurface/extractRoutes/extractSchema/formatSurfaceMarkdownexports preserved.Route,SchemaTable, andSchemaColumnare nowz.infer<>aliases of their schemas — structurally identical to the prior interfaces, so consumer code is unaffected.charter_surfaceMCP tool —charter servenow registers a callable tool for API surface extraction. Supports aformat: "json" | "markdown"input for agents that want a compact human-readable summary instead of the structured payload. The tool description leads with "use this instead of grepping for route handlers" to nudge cold-boot usage.
Changed
@stackbilt/surfacegainszod(^3.24.1) as a runtime dependency. The "zero runtime dependencies" README claim is updated — Zod is the authoritative contract at the package boundary.charter surfaceCLI routes argv throughSurfaceInputSchema— invalid arguments surface as a structured Zod validation error instead of silently defaulting.extractSurfacenow references the exportedDEFAULT_SURFACE_EXTENSIONS/DEFAULT_SURFACE_IGNORE_DIRSconstants so schema defaults and in-function fallbacks cannot drift (same pattern asDEFAULT_MAX_DEPTHin blast).
Security
- All
@stackbilt/*packages published from v0.12.0 onward carry npm provenance attestations via GitHub Actions trusted-publisher OIDC auth. Each tarball cryptographically links back to the GHA workflow run that built it; consumers can verify vianpm audit signaturesor the "Provenance" badge on each package's npmjs.com page. Long-livedNPM_TOKENusage is retired.
What's Changed
- ci(release): publish to npm on tag push by @stackbilt-admin in #118
- refactor(surface,cli,serve): Zod-Core-Out vertical slice for surface (#114) by @stackbilt-admin in #117
Full Changelog: v0.11.0...v0.12.0