Installs or upgrades an SDK without explicit consent, with global installation as the default
Source references: 4Phase 0 requires checking for the “latest version,” defaults to a global installation when missing, and tells the agent to handle installation details itself. A global install is broader than a project-local landing-page change, and the user may not see the exact package, version, or command beforehand.
It can change system-wide commands or dependency versions, introduce supply-chain code, and affect other projects on the same machine.
Phase 0 explicitly checks for the latest version, defaults to a global install when missing, and tells the agent to handle setup details itself. If the global environment is writable, this could add or upgrade a shared SDK and affect other projects; no prior confirmation of the package, version, or command is required. The user can require a project-local pinned version and approval before installation or upgrade.
1. Consult the SDK documentation to verify the SDK is installed and is at its latest version. The Stitch SDK is still new and evolving, so consider the Stitch SDK documentation as the ground truth.2. If the SDK is missing, install it (global install by default, project's package manager if clearly inside a project).3. Verify the API key env var (as named in the docs) is set. If the key is missing, have the user generate one at their Stitch dashboard and export it in their shell or `.env`.4. Make one minimal SDK call to confirm auth. Diagnose and retry once on failure before involving the user.Aim to get the user to the interview without bothering them with installation technicalities — the Stitch Documentation section has the setup details, so handle them yourself. Never display, transcribe, or echo the key.Show 3 other places
## Stitch Documentation- Stitch SDK usage and installation documentation: `https://stitch-design.ai/docs/sdk/ai-sdk`- DESIGN.md documentation and examples: `https://stitch-design.ai/docs/design-md/overview`1. Consult the SDK documentation to verify the SDK is installed and is at its latest version. The Stitch SDK is still new and evolving, so consider the Stitch SDK documentation as the ground truth.2. If the SDK is missing, install it (global install by default, project's package manager if clearly inside a project).3. Verify the API key env var (as named in the docs) is set. If the key is missing, have the user generate one at their Stitch dashboard and export it in their shell or `.env`.Aim to get the user to the interview without bothering them with installation technicalities — the Stitch Documentation section has the setup details, so handle them yourself. Never display, transcribe, or echo the key.