会在未明确征得同意时安装或升级 SDK,默认可影响全局开发环境
原文依据:4 处Phase 0 要求核对“最新版本”,缺失时默认执行全局安装,并要求代理自行处理安装细节。全局安装不是生成落地页所必需的项目内变更,且用户可能不会在执行前看到准确的软件包、版本和命令。
可能改变系统级命令或依赖版本,引入供应链代码,并影响同一机器上的其他项目。
Phase 0 明确要求检查最新版,并在缺失时默认安装到全局环境,还要求代理自行处理安装细节。若用户的全局环境可写,这可能新增或升级共享 SDK,影响其他项目;文档未要求先展示包名、版本、命令并取得确认。用户可要求仅使用项目级固定版本,并在任何安装或升级前确认。
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.查看另外 3 个位置
## 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.