Releases: google-labs-code/stitch-sdk
Releases · google-labs-code/stitch-sdk
v0.1.1
Release Notes: v0.1.1
We are thrilled to announce the release of @google/stitch-sdk v0.1.1! This milestone update brings robust Application Development Kit (ADK) TypeScript support, advanced Design System tools, enhanced authentication flexibility, and major stability improvements to our screen generation pipeline.
🚀 Features
- ADK TypeScript Support: Native TypeScript support has been added for the Application Development Kit (
@google/stitch-sdk/adk). - Design System Tools: Introduced specialized tools to generate and consume consistent visual token systems across UI screens.
- Dual Authentication: You can now authenticate using an
accessTokenalongside the traditionalapiKeyin theStitchProxyclient. - Typed Introspection API: Introduced
toolMap, allowing for deep, type-safe introspection of registered Stitch MCP tools. - High-Resolution Screenshots: Added the
buildFifeSuffixutility to seamlessly generate high-res screenshot URLs from visual screen components. - Containerized Proxy: Added an example deployment package for containerizing the Stitch MCP Proxy.
🛠 Bug Fixes & Pipeline Resilience
- Scan-Based Projections: Hardened the
Project.generate()pipeline by switching to a dynamic scan ofoutputComponents, replacing the fragile hardcoded array index strategy. - Defensive Guardrails: Added defensive null checks to generated projection paths and classified
AUTH_FAILEDerrors inparseToolResponse. - Connection Concurrency: Prevented race conditions by implementing a promise-based lock on concurrent
.connect()operations. - Dynamic API Keys: Fixed a critical caching bug where the client was not invalidated when switching
apiKeyingetOrCreateClient. - Package Hygiene: Stripped test artifacts (
tsconfig.tsbuildinfo) from the final NPM tarball, reducing the unpacked bundle size down to 283 KB.
📦 Dependencies & Maintenance
- Resolved critical vulnerability by overriding
basic-ftpto v5.2.0. - Exported
StitchProxyConfigSchemafor enhanced downstream configuration validation. - Streamlined the internal
.fleetgoals structure.
💡 Installing / Updating
npm install @google/stitch-sdk@0.1.1v0.0.3
What's Changed
- Fix
generate-variantsexample — CorrectednumVariants→variantCountto match the API'sVariantOptionsschema - Add example contract tests — New
examples.test.tsstatically verifies example files use correct API field names
Install
npm install @google/stitch-sdkFull Changelog
v0.0.2
What's New
stitch.createProject(title?)— Create projects directly from the domain layer- Build-time version injection — SDK version sourced from
package.jsonat build time - Publish readiness fixes — Removed stale
dist/package.jsonhazard, excluded integration tests from defaultvitest run
Install
npm install @google/stitch-sdkQuick Start
import { stitch } from '@google/stitch-sdk';
const project = await stitch.createProject('My Dashboard');
const screen = await project.generate('A settings page');
const html = await screen.getHtml();v0.0.1 — Initial Release
What's Changed
- feat: init library by @davideast in #2
- feat: identity map pattern by @davideast in #3
- refactor: move core/ to packages/sdk/ for monorepo structure by @davideast in #5
- fix: double skills dir by @davideast in #6
- test: close infrastructure test gaps via TDD by @davideast in #7
- chore: open source release prep by @davideast in #8
- chore: npm publish readiness by @davideast in #9
- feat(sdk): add stitch tools by @davideast in #10
- refactor: remove createProject — pure identity map pattern by @davideast in #11
- chore: initialize fleet workflows by @davideast in #12
- feat: add Fleet goal for Stitch SDK code snippets by @davideast in #13
- fix: use printf instead of echo for base64 decode in fleet workflows by @davideast in #14
- chore: publish readiness for @google/stitch-sdk@0.0.1 by @davideast in #30
New Contributors
- @davideast made their first contribution in #2
Full Changelog: https://github.com/google-labs-code/stitch-sdk/commits/v0.0.1