mastra-ai/mastra 3b0e6167..5ecd3d62
base and head as given
- A top-level deployment command now targets named environments.
- Environment management entered the command-line interface.
- Deployment telemetry now categorizes target API hosts.
- Unified deployment now depends on environment management.
- files changed
- 11
- in a component
- 8
- lines in components
- 1,261
- components
- 6
- public routes changed
- 0
- schema statements
- 0
- new dependencies
- 0
- excluded by role
- 3
Environment deployments
Added- Before
- Top-level deploy did not exist
- After
- Top-level deploy targets environments
Teams can deploy to a named environment through one command. The command selects or creates the project and environment, validates build output and environment values, uploads the artifact, streams logs, and prints Studio and Server URLs.
In favour
- In favour: Reuses existing build validation and environment-file selection
Against
- Against: Unified deployment adds three imports from Studio
Deployment telemetry
Modified- Before
- Prior behavior not established
- After
- Deploy telemetry buckets API hosts
Studio and Server deployments now record command outcomes, options, timing, and a coarse target API category. Target hosts are mapped to cloud, staging, localhost, custom, or unknown categories.
In favour
- In favour: Target API telemetry uses categories, not raw hosts
The model found nothing to weigh against this.
Inspect 3 source files behind this explanation
7 new dependencies between components — Deploy Command → Studio Command · CLI Source → Env Commands · CLI Source → Deploy Command · Deploy Command → Analytics · Deploy Command → Env Commands · Server Command → Analytics · Studio Command → Analytics
What else could behave differently
9 components · 23 filesThese components import changed code, directly or through other files. A traced dependency is a place to review, not a confirmed runtime failure.
Reached 3
| Component | Symbol | Cited at | Files | Reached by |
|---|---|---|---|---|
| CLI Sourcepackages/cli/src/ | Added unifiedDeployAction1 of 10 changed symbols reaching it | packages/cli/src/commands/deploy/index.ts:529-552 | 1 | 1 directTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| packages/cli/src/utils/ | Added unifiedDeployAction1 of 10 changed symbols reaching it | packages/cli/src/commands/deploy/index.ts:529-552 | 1 | none direct · 1 at two stepsTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
| Studio Commandpackages/cli/src/commands/studio/ | Added bucketApiHost | packages/cli/src/analytics/index.ts:27-37 | 1 | 1 directTrace pathShortest component path from the changed symbol:
Later steps follow file imports; they do not prove this symbol is called. |
Held back 1
| Component | Files | Reached by | Resolution |
|---|---|---|---|
| packages/cli/src/commands/dev/ | 2 | none direct · 2 at three steps | precise |
Ranked lower 5
| Component | Files | Reached by |
|---|---|---|
| packages/cli/src/commands/server/ | 4 | 1 direct · 1 at two steps · 2 at three steps |
| packages/cli/src/commands/env/ | 2 | 2 direct |
| packages/cli/src/commands/deploy/ | 1 | 1 direct |
| packages/cli/src/commands/actions/ | 10 | none direct · 10 at two steps |
| packages/cli/src/commands/lint/ | 1 | none direct · 1 at two steps |
Statements 3
unifiedDeployAction was traced to 1 file in CLI source, with 17 of 17 names in its file changed. 1unifiedDeployAction was traced to 1 file in CLI utilities, with 17 of 17 names in its file changed. 1bucketApiHost was traced to 1 file in the studio command, with 1 of 8 names in its file changed. 12 reached files belong to no component — tests, docs and config.
Routes, schema, dependencies
No public URL, no migration and no new package.
Not stated
- 36 database accesses were found on files whose role excludes them, and no data claim states them.
Inspect components, files and symbols
Component
File
Function
imports what changeddownstream of it, one mark per step
Diff
Analysis scope
11651 → 6- files at head11,651
- components704
- changed by this change6
Where the new files landed
4 new files| New file | Belongs to | Used by | Calls | Serves |
|---|---|---|---|---|
| packages/cli/src/commands/env/3 new files | Env Commandsnew territory | CLI SourceDeploy Command | packages/cli/src/commands/auth/ | — |
| packages/cli/src/commands/deploy/index.ts | Deploy Commandnew territory | CLI Source | Analyticspackages/cli/src/commands/packages/cli/src/commands/auth/Env CommandsStudio Commandpackages/cli/src/utils/ | — |
1 added file carries no component — 1 docs.
11 files changed, 18 claims stated. 9 components reached in total.