github google-labs-code/stitch-sdk v0.1.1

11 hours ago

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 accessToken alongside the traditional apiKey in the StitchProxy client.
  • Typed Introspection API: Introduced toolMap, allowing for deep, type-safe introspection of registered Stitch MCP tools.
  • High-Resolution Screenshots: Added the buildFifeSuffix utility 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 of outputComponents, replacing the fragile hardcoded array index strategy.
  • Defensive Guardrails: Added defensive null checks to generated projection paths and classified AUTH_FAILED errors in parseToolResponse.
  • 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 apiKey in getOrCreateClient.
  • 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-ftp to v5.2.0.
  • Exported StitchProxyConfigSchema for enhanced downstream configuration validation.
  • Streamlined the internal .fleet goals structure.

💡 Installing / Updating

npm install @google/stitch-sdk@0.1.1

Don't miss a new stitch-sdk release

NewReleases is sending notifications on new releases.