You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 311fb97
Browse filesBrowse the repository at this point in the historyBrowse files
fix(push): validate the whole plan before the first write (#107)
* fix(push): validate the whole plan before the first write
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* docs(agents): explain the push preflight stop
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
---------
Co-authored-by: dhruva <dhruva@vapi.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,9 +207,9 @@ More detail: [How the engine works](docs/guides/how-it-works.md).
207
207
| --- | --- |
208
208
|`npm run setup`| Connect an org: create `.env.<org>` and `resources/<org>/`|
209
209
|`npm run validate -- <org>`| Check resource files offline before deploying |
210
-
|`npm run apply -- <org>`| Deploy: pull, merge, then push (the default) |
210
+
|`npm run apply -- <org>`| Deploy: pull, merge, then preflight and push (the default) |
211
211
|`npm run pull -- <org>`| Sync platform changes down without overwriting local edits; unknown UUIDs get separate files, never name-linked |
212
-
|`npm run push -- <org>`|Push without pulling first (prefer `apply`); review`--dry-run` Name collisions, and use `--adopt <id>[=<uuid>]` only with explicit approval to take over a resource; unchanged alias files are removed, edited/unbaselined copies need review. Push/apply support `--json` for one grouped link-preflight report (exit 1 on blockers); see [Running in CI](docs/guides/commands.md#running-in-ci). |
212
+
|`npm run push -- <org>`|Preflight the write plan, then push without pulling first (prefer `apply`); `--strict` also blocks validation errors outside the plan. Review`--dry-run` Name collisions, and use `--adopt <id>[=<uuid>]` only with explicit approval to take over a resource; unchanged alias files are removed, edited/unbaselined copies need review. Push/apply support `--json` for one grouped link-preflight report (exit 1 on blockers); see [Running in CI](docs/guides/commands.md#running-in-ci). |
213
213
|`npm run rollback -- <org>`| Restore a pre-deploy snapshot |
214
214
|`npm run cleanup -- <org>`| Find, and optionally delete, platform resources with no file |
215
215
|`npm run audit -- <org>`| Report drift between files, state and the platform |
Copy file name to clipboardExpand all lines: docs/guides/commands.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,9 @@ The other commands are direct only.
11
11
| --- | --- | --- |
12
12
|`npm run setup`|`npm run setup [-- <org>]`| Connect an org: creates `.env.<org>` and `resources/<org>/`. |
13
13
|`npm run validate`|`npm run validate -- <org>`| Check resource files offline: API shape rules, and that every reference names a file or a state entry. `apply` runs it first. On GitHub Actions, findings are also shown on the files in the pull request. |
14
-
|`npm run apply`|`npm run apply -- <org> [types or paths] [--adopt <id>[=<uuid>]]`|**The default deploy:** pull, merge, then push. See [workflows](workflows.md). |
14
+
|`npm run apply`|`npm run apply -- <org> [types or paths] [--adopt <id>[=<uuid>]]`|**The default deploy:** pull, merge, then push. The push preflight below runs before remote writes. See [workflows](workflows.md). |
15
15
|`npm run pull`|`npm run pull -- <org> [--force] [--bootstrap]`| Sync platform changes down; never overwrites local edits unless `--force`. |
16
-
|`npm run push`|`npm run push -- <org> [--dry-run] [--json] [--strict] [--adopt <id>[=<uuid>]]`| Push without pulling first. Prefer `apply`. `--strict`aborts before any API call if validation finds an error. |
16
+
|`npm run push`|`npm run push -- <org> [--dry-run] [--json] [--strict] [--adopt <id>[=<uuid>]]`| Push without pulling first. Prefer `apply`. Preflight blocks validation errors and unresolved credential names in the write plan (selected resources plus auto-applied dependencies) before any remote mutation, including deletions. `--dry-run` uses the same gate. `--strict`additionally blocks error-severity findings outside the plan; warnings remain advisory. Bootstrap reads may run before preflight. |
17
17
|`npm run rollback`|`npm run rollback -- <org> --list` or `--to <ISO>`| Restore a pre-deploy snapshot from `.vapi-state.<org>.snapshots/`. |
18
18
|`npm run cleanup`|`npm run cleanup -- <org> [--force --confirm <org>]`| List platform resources with no file; delete them only with both flags. |
19
19
|`npm run audit`|`npm run audit -- <org> [--type <type>]`| Report drift between files, state and the platform. Exits 1 on any finding, so it can run in CI. |
0 commit comments