Repository navigation
chore: update OpenAPI to 319dc756af2a - #447
Conversation
commit: |
|
| mean | stddev | min | max | |
|---|---|---|---|---|
| PR | 222.8 ms | 3.7 ms | 218.1 ms | 231.3 ms |
| base | 219.7 ms | 2.7 ms | 214.6 ms | 223.8 ms |
Δ (PR vs base): ↑ +3.0 ms (+1.4%)
Measured with hyperfine on ubuntu-latest (3 warmup runs, 20 timed runs). CI numbers carry ±a few ms of runner jitter; treat small deltas as noise.
|
Review: 1 findings. Posted 1 inline suggestion. |
|
This pull request's reviews are posted as pull request reviews: see the review of |
5db3026 to
774a149
Compare
|
Review: 1 findings. 🤖 I've done a thorough review of your PR. Updates the Forge OpenAPI revision and regenerates the CLI surface. Posted 1 inline suggestion. |
774a149 to
be04779
Compare
|
Review: 1 findings. Posted 1 inline suggestion. |
be04779 to
dc0b6be
Compare
|
Review: 1 findings. 🤖 I've done a thorough review of your PR. Updates the pinned Forge OpenAPI revision and regenerated CLI surface. Posted 1 inline suggestion. |
dc0b6be to
a53f94c
Compare
|
🤖 I've done a thorough review of your PR. Updates the pinned Forge OpenAPI revision and regenerates the CLI command surface.
Posted 2 inline suggestion comments. |
a53f94c to
5c6523f
Compare
There was a problem hiding this comment.
Superseded by the review of
652ca19c.
This review, of 5c6523f3
cf billing spend-policies update still adds if_match to the PUT body as well as the If-Match header. The API rejects unknown body fields, so updates built from flags will likely fail. The other notes don't block.
Findings: 1 warning · 2 info (1 is an inline comment on the diff)
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #447.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (1)
### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (and the dry-run preview at `:134`) as well as the `If-Match` header at `:107`. The API rejects unknown body fields, so normal updates built from flags will likely fail with a 400. Fix the generator's `bodyFieldArgs` so it skips header args, then regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221
## INFO (2)
### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` / `rulesets entrypoint versions` commands, the `--tenant-tag` → `--tenant-id` rename, the analytics `zone_identifier` → `zone_id` rename, and the newly required `--protection-mode` / `--filter-mode` flags on the magic-transit protection `create` commands.
- **File:** .changeset/update-openapi-eacfb8c98bc0.md:5
### [Code Quality] Hand-maintained e2e fixtures `packages/cli/e2e/magic-cloud-networking.json` and `packages/cli/e2e/rulesets.json` still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them.
- **File:** packages/cli/e2e/rulesets.json:33
📋 Code Quality: ⚠️ 1 warning · 1 info
The spend-policies if_match body leak is still present. The e2e fixtures still list removed commands.
Recommendation: 📝 Minor Comments
- [WARNING]
billing spend-policies updatewritesif_matchinto the PUT body (and the dry-run preview at:134) as well as theIf-Matchheader at:107. The API rejects unknown body fields, so normal updates built from flags will likely fail with a 400. Fix the generator'sbodyFieldArgsso it skips header args, then regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221) - [INFO] Hand-maintained e2e fixtures
packages/cli/e2e/magic-cloud-networking.jsonandpackages/cli/e2e/rulesets.jsonstill list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them. (packages/cli/e2e/rulesets.json:33)
View full review
billing spend-policies update sends if_match in the JSON body (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221, dry-run preview at :134)
- The value is already sent as a header at
:107. The operation listsIf-Matchas a header parameter (_operations/billing/spend-policies/update.ts:8). --if-matchis required, so every update built from flags also runsbodyData["if_match"] = argv["if-match"]. The--bodyhelp at:85says "Unknown fields and trailing JSON are rejected", so these updates will likely get a 400.- The
--bodypath doesn't add the field, so the two input paths send different payloads. The dry-run preview doesn't match the intended request either. - The cause is in the generator:
bodyFieldArgsinpackages/cli/generator/plugin/emit/handler.tsloops over the required option args and skips only body args, so a required header option gets written into the body. Make it skipheader(andquery) args, add a generator test for a required header param combined with a JSON body, then regenerate. Don't hand-edit_generated/.
Stale e2e fixtures: packages/cli/e2e/magic-cloud-networking.json and packages/cli/e2e/rulesets.json still list commands this pull request removes (magic-cloud-networking ..., rulesets versions list/get/delete). CI doesn't use them, but the out-of-band smoke runner will fail on those entries.
The other generated changes are consistent: the new spend-policies, email-domains, realtime kit and magic-transit commands and flags, the workers-vpc TLS flags, and the removed command groups.
🚀 Release: 💬 1 info
The changeset still doesn't list the breaking changes.
Recommendation: 💬 Optional Nits
- [INFO] The changeset doesn't list the breaking changes: the removed
magic-cloud-networkingandrulesets versions/rulesets entrypoint versionscommands, the--tenant-tag→--tenant-idrename, the analyticszone_identifier→zone_idrename, and the newly required--protection-mode/--filter-modeflags on the magic-transit protectioncreatecommands. (.changeset/update-openapi-eacfb8c98bc0.md:5)
View full review
.changeset/update-openapi-eacfb8c98bc0.md correctly uses a minor bump, but its body only says the generated command surface was updated. This release:
- removes the whole
cf magic-cloud-networkinggroup; - removes
cf rulesets versionsandcf rulesets entrypoint versions; - renames the
tenant-custom-nameserversargument<tenant-tag>/--tenant-tagto<tenant-id>/--tenant-id; - renames the analytics
zone_identifierparameter tozone_id; - makes the new
--protection-mode/--filter-modeflags required on the Advanced DNS and TCP protectioncreatecommands.
List these in the changeset body so they appear in the release notes.
✅ All other checks passed
🔒 Security: ✅ LGTM
This is regenerated command code. Path parameters, including the renamed tenant-id, still go through URL encoding. The new workers-vpc TLS flags take certificate UUIDs, not key material. The removed commands only reduce the command surface.
📖 AGENTS.md: ✅ LGTM
No AGENTS.md concerns.
⚡ Performance: ✅ LGTM
No performance concerns.
📝 Documentation: ✅ LGTM
No documentation issues. The missing details in the changeset are covered under Release.
Reviewed commit: 5c6523f3
|
Review: 1 findings. Posted 1 inline finding. |
5c6523f to
652ca19
Compare
There was a problem hiding this comment.
Superseded by the review of
da44a519.
This review, of 652ca19c
cf billing spend-policies update still puts if_match in the PUT body as well as the header, so updates built from flags will likely be rejected. Separately, the new forward gateway rule action can't be used from flags: the rule-settings check now requires three flags that belong to different actions.
Findings: 2 warnings · 2 info (2 are inline comments on the diff)
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #447.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (2)
### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (and the dry-run preview at `:134`) as well as the `If-Match` header at `:107`. The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix `bodyFieldArgs` in the generator so it skips header and query args, then regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221
### [Code Quality] `zero-trust gateway rules create/update`: the new `--rule-settings-forward-worker-id` is added to the list of flags required whenever any `--rule-settings-*` flag is set. Every flag-built rule with settings, including the new `forward` action, now also needs the block-page and redirect target URIs, so only `--body` works.
- **File:** packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542
## INFO (2)
### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` commands, the `--tenant-tag` → `--tenant-id` and `zone_identifier` → `zone_id` renames, and the newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-13349ef246b2.md:5
### [Code Quality] The hand-maintained e2e fixtures `packages/cli/e2e/magic-cloud-networking.json` and `packages/cli/e2e/rulesets.json` still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them.
- **File:** packages/cli/e2e/magic-cloud-networking.json:5
📋 Code Quality: ⚠️ 2 warnings · 1 info
The earlier if_match body problem is still there. New: the rule-settings group check on zero-trust gateway rules create/update now also requires --rule-settings-forward-worker-id. The stale e2e fixture note also still applies.
Recommendation:
- [WARNING]
billing spend-policies updatewritesif_matchinto the PUT body (and the dry-run preview at:134) as well as theIf-Matchheader at:107. The API rejects unknown body fields, so updates built from flags will likely fail with a 400. FixbodyFieldArgsin the generator so it skips header and query args, then regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221) - [WARNING]
zero-trust gateway rules create/update: the new--rule-settings-forward-worker-idis added to the list of flags required whenever any--rule-settings-*flag is set. Every flag-built rule with settings, including the newforwardaction, now also needs the block-page and redirect target URIs, so only--bodyworks. (packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542) - [INFO] The hand-maintained e2e fixtures
packages/cli/e2e/magic-cloud-networking.jsonandpackages/cli/e2e/rulesets.jsonstill list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them. (packages/cli/e2e/magic-cloud-networking.json:5)
View full review
billing spend-policies update sends if_match in the JSON body. This was raised in the earlier review and is still present at this commit (packages/cli/src/commands/_generated/billing/spend-policies/update.ts):
- The value is sent as the
If-Matchheader at:107. - It is also written into the body at
:221, and into the dry-run preview at:134. - The operation declares
If-Matchas a header parameter. The--bodyhelp says unknown fields are rejected, so updates built from flags will likely fail with a 400. - The
--bodypath doesn't add the field, so the two input paths send different payloads. - The fix belongs in the generator:
bodyFieldArgsinpackages/cli/generator/plugin/emit/handler.tsshould skip header and query args. Then regenerate.
The zero-trust gateway rules create/update rule-settings check now requires three flags from different actions. See create.ts:539-545 and update.ts:540-546:
- If any
--rule-settings-*flag is set, the check now requires all three of--rule-settings-block-page-target-uri,--rule-settings-redirect-target-uriand the new--rule-settings-forward-worker-id. - Those flags belong to the block, redirect and forward actions, and one rule can't use all three.
- The new
--action forward, and every other action that takes settings, can't be built from flags. Only--bodyworks around it. - The check was already too strict before this pull request; this regeneration adds a third entry.
- The likely cause is the generator treating required children of an optional or variant sub-object as required for the whole group. Fix the generator's group-required logic (or the upstream schema), add a test, and regenerate.
Stale e2e fixtures. packages/cli/e2e/magic-cloud-networking.json still lists the removed cf magic-cloud-networking ... commands, and packages/cli/e2e/rulesets.json still lists the removed rulesets versions commands. The out-of-band smoke runner will fail on those entries.
The rest of the regenerated output is consistent:
- the removals of
magic-cloud-networkingandrulesets versions - the
tenant-idrename - the new
--protection-mode/--filter-modeflags - the workers-vpc TLS flags
email-domains changesrealtime kit apps update
🚀 Release: 💬 1 info
The changeset still leaves out the user-facing breaking changes.
Recommendation: 💬 Optional Nits
- [INFO] The changeset doesn't list the breaking changes: the removed
magic-cloud-networkingandrulesets versionscommands, the--tenant-tag→--tenant-idandzone_identifier→zone_idrenames, and the newly required protection-mode / filter-mode flags. (.changeset/update-openapi-13349ef246b2.md:5)
View full review
.changeset/update-openapi-13349ef246b2.md correctly uses minor, but its body only says the generated command surface was updated. This release also:
- removes the
cf magic-cloud-networkinggroup; - removes
cf rulesets versionsandcf rulesets entrypoint versions; - renames
--tenant-tagto--tenant-id; - renames the analytics
zone_identifierparameter tozone_id; - makes
--protection-mode/--filter-moderequired on the Advanced DNS and TCP protectioncreatecommands.
List these in the changeset body so they appear in the release notes.
✅ All other checks passed
🔒 Security: ✅ LGTM
This is regenerated command code and a pinned OpenAPI revision bump. It adds no secrets and no new injection or authorization paths.
📖 AGENTS.md: ✅ LGTM
No AGENTS.md concerns.
⚡ Performance: ✅ LGTM
No performance concerns. The diff removes more commands than it adds, and lazy loading is unchanged.
📝 Documentation: ✅ LGTM
No documentation issues. The missing details in the changeset are covered under Release.
Reviewed commit: 652ca19c
|
Review: 1 findings. 🤖 I've done a thorough review of your PR. Updates the Forge OpenAPI revision and regenerates the CLI surface. Posted 1 new inline suggestion and updated 1 existing |
da44a51 to
f9ff819
Compare
There was a problem hiding this comment.
Superseded by the review of
8a7cee31.
This review, of f9ff8198
billing spend-policies update requests put if_match in the PUT body, and gateway rules that set any --rule-settings-* flag (including the new forward action) can't be built from flags.
Findings: 2 warnings · 2 info (2 are inline comments on the diff)
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #447.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (2)
### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (`:221`) and the dry-run preview (`:134`), as well as the `If-Match` header (`:107`). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix `bodyFieldArgs` in the generator and regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221
### [Code Quality] `zero-trust gateway rules create/update`: when any `--rule-settings-*` flag is set, the check requires `--rule-settings-block-page-target-uri`, `--rule-settings-redirect-target-uri` and the new `--rule-settings-forward-worker-id` together. These belong to different actions, so the new `forward` action, and any flag-built rule with settings, can't be created from flags (also `update.ts:543`).
- **File:** packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542
## INFO (2)
### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` commands, the `--tenant-tag` → `--tenant-id`, `zone_identifier` → `zone_id` and `--page` → `--cursor` changes, and the newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-ef1d30e8d1f7.md:5
### [Code Quality] The hand-maintained e2e fixtures `packages/cli/e2e/magic-cloud-networking.json` and `packages/cli/e2e/rulesets.json` still list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them.
- **File:** packages/cli/e2e/magic-cloud-networking.json:5
📋 Code Quality: ⚠️ 2 warnings · 1 info
Both earlier correctness warnings and the stale e2e fixture note are still present at this commit.
Recommendation: 📝 Minor Comments
- [WARNING]
billing spend-policies updatewritesif_matchinto the PUT body (:221) and the dry-run preview (:134), as well as theIf-Matchheader (:107). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. FixbodyFieldArgsin the generator and regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221) - [WARNING]
zero-trust gateway rules create/update: when any--rule-settings-*flag is set, the check requires--rule-settings-block-page-target-uri,--rule-settings-redirect-target-uriand the new--rule-settings-forward-worker-idtogether. These belong to different actions, so the newforwardaction, and any flag-built rule with settings, can't be created from flags (alsoupdate.ts:543). (packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542) - [INFO] The hand-maintained e2e fixtures
packages/cli/e2e/magic-cloud-networking.jsonandpackages/cli/e2e/rulesets.jsonstill list commands this pull request removes. Remove those entries so the smoke runner doesn't fail on them. (packages/cli/e2e/magic-cloud-networking.json:5)
View full review
billing spend-policies update sends if_match in the JSON body (packages/cli/src/commands/_generated/billing/spend-policies/update.ts)
- The value is correctly sent as the
If-Matchheader at:107. - It is also written into the dry-run preview body at
:134and into the real body at:221. - The operation declares
If-Matchas a header parameter. The--bodyhelp says unknown fields are rejected, so every flag-built update (--if-matchis required) will likely fail with a 400. - The
--bodypath doesn't add the field, so the two input paths send different payloads. - Other header-param commands, such as
tags/account-resources/update.ts, don't do this, which points to the generator. FixbodyFieldArgsinpackages/cli/generator/plugin/emit/handler.tsso it skips header and query args, then regenerate.
The gateway rule-settings check requires flags from different actions (zero-trust/gateway/rules/create.ts:539-545, update.ts:540-546)
- Setting any
--rule-settings-*flag now requires all three of--rule-settings-block-page-target-uri,--rule-settings-redirect-target-uriand the new--rule-settings-forward-worker-id. - Those flags belong to the block, redirect and forward actions, so one rule can't use all three.
- As a result,
--action forward --rule-settings-forward-worker-id Xis rejected, and so is every other flag-built rule with settings. Only--bodyworks. - The generator's required-in-group computation appears to treat the required fields of each union variant as required for the whole group. Only fields that every variant requires should be required.
Stale e2e fixtures
packages/cli/e2e/magic-cloud-networking.jsonandpackages/cli/e2e/rulesets.jsonstill list commands this pull request removes. The out-of-band smoke runner will hit commands that no longer exist.
🚀 Release: 💬 1 info
The changeset still omits the breaking command changes.
Recommendation: 💬 Optional Nits
- [INFO] The changeset doesn't list the breaking changes: the removed
magic-cloud-networkingandrulesets versionscommands, the--tenant-tag→--tenant-id,zone_identifier→zone_idand--page→--cursorchanges, and the newly required protection-mode / filter-mode flags. (.changeset/update-openapi-ef1d30e8d1f7.md:5)
View full review
.changeset/update-openapi-ef1d30e8d1f7.md correctly uses minor, but its body only says the generated command surface was updated. This release also:
- removes the
cf magic-cloud-networkinggroup; - removes
cf rulesets versionsandcf rulesets entrypoint versions; - renames
--tenant-tagto--tenant-idontenant-custom-nameservers; - renames the analytics
zone_identifierparameter tozone_id; - replaces
--pagewith--cursoron thesecurity-insights partners shadow-*list commands; - makes
--protection-mode/--filter-moderequired on the Advanced DNS and TCP protectioncreatecommands.
List these in the changeset body so they appear in the release notes.
✅ All other checks passed
🔒 Security: ✅ LGTM
This is regenerated command code and a pinned OpenAPI revision bump. It adds no secrets, path parameters stay URL-encoded, and there are no new injection or authorization paths.
📖 AGENTS.md: ✅ LGTM
No AGENTS.md concerns.
⚡ Performance: ✅ LGTM
No performance concerns. The diff removes more commands than it adds, and lazy loading is unchanged.
📝 Documentation: ✅ LGTM
No documentation issues. The missing details in the changeset are covered under Release.
Reviewed commit: f9ff8198 — same changes as da44a519, so this is that commit's review (no new review was run; line numbers are as of da44a519)
|
No new concerns since the last review |
f9ff819 to
8a7cee3
Compare
|
No new concerns since the last review |
There was a problem hiding this comment.
Superseded by the review of
c4737ec5.
This review, of 8a7cee31
billing spend-policies update requests put if_match in the PUT body, and gateway rules that set any --rule-settings-* flag (including the new forward action) can't be built from flags.
Findings: 2 warnings · 1 info (2 are inline comments on the diff)
Not opened by the correctness review: 1 changed file it was meant to read
packages/cli/generate.ts
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #447.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (2)
### [Code Quality] `billing spend-policies update` writes `if_match` into the PUT body (`:221`) and the dry-run preview (`:134`), as well as the `If-Match` header (`:107`). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. Fix `bodyFieldArgs` in the generator and regenerate.
- **File:** packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221
### [Code Quality] `zero-trust gateway rules create/update`: setting any `--rule-settings-*` flag requires `--rule-settings-block-page-target-uri`, `--rule-settings-forward-worker-id` and `--rule-settings-redirect-target-uri` together. These flags belong to different actions, so the new `forward` action, and every other flag-built rule with settings, is rejected.
- **File:** packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542
## INFO (1)
### [Release] The changeset doesn't list the breaking changes: the removed `magic-cloud-networking` and `rulesets versions` commands, the `--tenant-tag` → `--tenant-id`, `zone_identifier` → `zone_id` and `--page` → `--cursor` changes, and the newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-a622452fbd64.md:5
📋 Code Quality: ⚠️ 2 warnings
Both earlier warnings still reproduce at this commit: if_match in the spend-policies PUT body, and the gateway rule-settings required-together check.
Recommendation: 📝 Minor Comments
- [WARNING]
billing spend-policies updatewritesif_matchinto the PUT body (:221) and the dry-run preview (:134), as well as theIf-Matchheader (:107). The API rejects unknown body fields, so updates built from flags will likely fail with a 400. FixbodyFieldArgsin the generator and regenerate. (packages/cli/src/commands/_generated/billing/spend-policies/update.ts:221) - [WARNING]
zero-trust gateway rules create/update: setting any--rule-settings-*flag requires--rule-settings-block-page-target-uri,--rule-settings-forward-worker-idand--rule-settings-redirect-target-uritogether. These flags belong to different actions, so the newforwardaction, and every other flag-built rule with settings, is rejected. (packages/cli/src/commands/_generated/zero-trust/gateway/rules/create.ts:542)
View full review
billing spend-policies update sends if_match in the JSON body (packages/cli/src/commands/_generated/billing/spend-policies/update.ts)
- The value is correctly sent as the
If-Matchheader at:107. - It is also written into the dry-run preview body at
:134and into the real body at:221. - The operation descriptor declares
If-Matchas a header parameter, and the--bodyhelp says unknown fields are rejected. Since--if-matchis required, every flag-built update will likely fail with a 400. - The
--bodypath doesn't add the field, so the two input paths send different payloads. - Fix
bodyFieldArgsin the generator so it skips header and query args, then regenerate.
The gateway rule-settings check requires flags from different actions (zero-trust/gateway/rules/create.ts:539-550, update.ts:540-551)
- Setting any
--rule-settings-*flag requires all three of--rule-settings-block-page-target-uri,--rule-settings-forward-worker-idand--rule-settings-redirect-target-uri. - Those flags belong to the block, forward and redirect actions, so one rule can't use all three.
- As a result,
--action forward --rule-settings-forward-worker-id Xis rejected, and so is every other flag-built rule that sets any rule-settings flag. Only--bodyworks. - The generator's required-in-group computation appears to take the union of fields that are required in each oneOf/branch variant. It should only require fields that every variant requires. Fix it there and regenerate.
🚀 Release: 💬 1 info
The changeset doesn't list user-visible breaking changes.
Recommendation: 💬 Optional Nits
- [INFO] The changeset doesn't list the breaking changes: the removed
magic-cloud-networkingandrulesets versionscommands, the--tenant-tag→--tenant-id,zone_identifier→zone_idand--page→--cursorchanges, and the newly required protection-mode / filter-mode flags. (.changeset/update-openapi-a622452fbd64.md:5)
View full review
.changeset/update-openapi-a622452fbd64.md correctly uses minor, but its body only says the generated command surface was updated. This release also:
- removes the
cf magic-cloud-networkinggroup; - removes
cf rulesets versionsandcf rulesets entrypoint versions; - renames
--tenant-tagto--tenant-idontenant-custom-nameservers; - renames the analytics
zone_identifierparameter tozone_id; - replaces
--pagewith--cursoron thesecurity-insights partners shadow-*list commands; - makes
--protection-mode/--filter-moderequired on the Advanced DNS and TCP protectioncreatecommands.
List these in the changeset body so they appear in the release notes.
✅ All other checks passed
🔒 Security: ✅ LGTM
This is regenerated command code plus a pinned OpenAPI revision bump. It adds no secrets, path parameters stay URL-encoded, and there are no new injection or authorization paths. The new TLS settings flags on workers-vpc services only carry certificate IDs.
📖 AGENTS.md: ✅ LGTM
No AGENTS.md concerns.
⚡ Performance: ✅ LGTM
No performance concerns. Lazy loading is unchanged.
📝 Documentation: ✅ LGTM
No documentation issues. The missing details in the changeset are covered under Release.
Reviewed commit: 8a7cee31
|
Looks like the latest API schema changes have uncovered some bugs in the cf generation that we need to address. |
8a7cee3 to
c4737ec
Compare
There was a problem hiding this comment.
💬 Approved with comments — One WARNING: a generator name collision removed the only body flag from resource-sharing excluded-recipients create. Both earlier WARNINGs are fixed, and the remaining notes are INFO (changeset breaking-change list, stale e2e fixtures, a dropped local required-field check).
Findings: 1 warning · 3 info (1 is an inline comment on the diff)
The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.
🔧 Fix with your agent
Paste the following into your coding agent to investigate and fix these issues.
Fix the following code review issues found in pull request #447.
Before making changes, review each issue and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g., the fix would require disproportionate changes
for minimal ROI, or the finding is factually incorrect), explain why
- If you need to clarify something before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order
## WARNING (1)
### [Code Quality] `resource-sharing excluded-recipients create` lost its only body flag (`--account-id`) after the path parameter was renamed to `account_id`. The command now works only with `--body`, and `--dry-run` without `--body` previews an empty body.
- **File:** packages/cli/src/commands/_generated/resource-sharing/excluded-recipients/create.ts:87
## INFO (3)
### [Release] The changeset doesn't list the breaking command changes: removed groups (`magic-cloud-networking`, `rulesets versions`, `tenant`, `user tenant`), moves and renames (`iam oauth-*`, `accounts organizations`), renamed flags (`--tenant-id`, `--cursor`, `--preset-config-*`, `--namespace`) and newly required protection-mode / filter-mode flags.
- **File:** .changeset/update-openapi-319dc756af2a.md:5
### [Code Quality] `dns-firewall create` no longer prompts for `--name` or checks `--upstream-ips` locally. If the schema still requires these fields, flag-built requests now fail at the API instead of failing fast.
- **File:** packages/cli/src/commands/_generated/dns-firewall/create.ts:166
### [Code Quality] Out-of-band e2e fixtures still reference removed commands: `packages/cli/e2e/magic-cloud-networking.json`, `e2e/rulesets.json`, `e2e/abuse-reports.json` and the `user tenant` entries in `e2e/user.json`.
📋 Code Quality: ⚠️ 1 warning · 2 info
Both earlier WARNINGs are fixed. One new WARNING: excluded-recipients create lost its body flag. Two INFO notes.
Recommendation: 📝 Minor Comments
- [WARNING]
resource-sharing excluded-recipients createlost its only body flag (--account-id) after the path parameter was renamed toaccount_id. The command now works only with--body, and--dry-runwithout--bodypreviews an empty body. (packages/cli/src/commands/_generated/resource-sharing/excluded-recipients/create.ts:87) - [INFO]
dns-firewall createno longer prompts for--nameor checks--upstream-ipslocally. If the schema still requires these fields, flag-built requests now fail at the API instead of failing fast. (packages/cli/src/commands/_generated/dns-firewall/create.ts:166) - [INFO] Out-of-band e2e fixtures still reference removed commands:
packages/cli/e2e/magic-cloud-networking.json,e2e/rulesets.json,e2e/abuse-reports.jsonand theuser tenantentries ine2e/user.json.
View full review
Earlier findings re-checked at c4737ec
billing spend-policies update:if_matchis now sent only as theIf-Matchheader (billing/spend-policies/update.ts:106-107). Fixed.zero-trust gateway rules create/update: the--rule-settings-*required checks are now per group.block-page-*requires onlyblock-page-target-uriandredirect-*requires onlyredirect-target-uri. The forward action can be built from flags. Fixed.
resource-sharing excluded-recipients create can only be run with --body (resource-sharing/excluded-recipients/create.ts)
- The schema renamed the path parameter
account_id_pathtoaccount_id. That name now collides with the body fieldaccount_id, which is the account to exclude and the only body field. - The regenerated command resolves the path account from context, but it also dropped the body field. The
--account-idflag, its prompt and thecompactBodyassembly are all gone. - Help shows only
<share-id>,--dry-runand--body. Running without--bodythrows "--body is required" (:87-91). --dry-runwithout--bodypreviewsbody: undefined(:66) and reports success, so the preview hides a request that would fail.--body ""skips both branches and exits without sending a request or printing an error.- Fix the path/body name collision in the generator, for example by renaming the body flag to
--excluded-account-idor by keeping the body field. Then regenerate.
dns-firewall create dropped its local required-field checks (dns-firewall/create.ts, around :164)
- The prompt for
--nameand the--upstream-ips is requiredthrow were removed, while the operation file is unchanged. - If the upstream schema still requires these fields, flag-built requests now fail at the API instead of prompting or failing fast.
commands.jsonandschemas.jsoncould not be inspected to confirm whether this follows a real schema change.
Stale e2e fixtures
packages/cli/e2e/magic-cloud-networking.json,e2e/rulesets.json,e2e/abuse-reports.jsonande2e/user.jsonstill call commands this pull request removes:magic-cloud-networking,rulesets versions,rulesets entrypoint versions,abuse-reports createanduser tenant.- These real-account smoke runs are out-of-band, so
pnpm checkwon't catch them, but the next smoke run will fail on those entries.
🚀 Release: 💬 1 info
The changeset still omits the user-visible breaking CLI changes.
Recommendation: 💬 Optional Nits
- [INFO] The changeset doesn't list the breaking command changes: removed groups (
magic-cloud-networking,rulesets versions,tenant,user tenant), moves and renames (iam oauth-*,accounts organizations), renamed flags (--tenant-id,--cursor,--preset-config-*,--namespace) and newly required protection-mode / filter-mode flags. (.changeset/update-openapi-319dc756af2a.md:5)
View full review
.changeset/update-openapi-319dc756af2a.md correctly uses minor, but its body only says the generated command surface was updated and mentions the auth scope change. This release also changes the following, and several of these break existing scripts.
Removed commands
cf magic-cloud-networking(the whole group)cf rulesets versionsandcf rulesets entrypoint versions- top-level
cf tenant ...andcf user tenant ... cf abuse-reports create
Moved or renamed commands
oauth-clientsandoauth-scopesmove undercf iamcf accounts organizationbecomescf accounts organizations
Renamed or changed flags
--tenant-tagbecomes--tenant-idontenant-custom-nameservers--pagebecomes--cursoronsecurity-insights partners shadow-*--config-*becomes--preset-config-*onrealtime kit presets create/replace/updateorganization updatedrops the--profile-*flags, andorganization member createdrops--member-statusai-searchnamespace positionals become an optional--namespaceflag that defaults todefault--protection-mode/--filter-modeare now required on the Advanced DNS and TCP protectioncreatecommands
Help output
alerting,audit-logs,managed-transforms,page-rules,tenant-custom-nameservers,url-normalizationandworkers-buildsare no longer hidden in help.
List these in the changeset body so they reach the release notes.
✅ All other checks passed
🔒 Security: ✅ LGTM
No security concerns. This is regenerated command code plus a repointed import in auth/scope-catalogue.ts, which still calls GET /oauth/scopes. Path parameters remain URL-encoded, and no secrets or new injection paths were added.
📖 AGENTS.md: ✅ LGTM
No AGENTS.md concerns.
⚡ Performance: ✅ LGTM
No performance concerns.
📝 Documentation: ✅ LGTM
No documentation issues. The missing breaking-change list in the changeset is covered under Release.
Reviewed commit: c4737ec5
|
Review: 1 findings. Updated one existing |
Update cf to Forge OpenAPI
319dc756af2a642b3122b4db7e3b79ac1fbec7d8.The newer schema groups OAuth scopes under IAM, which moves the generated operation module. Update the hand-written auth catalogue import so
cf auth scopescontinues to callGET /oauth/scopesand the OpenAPI updater passes type checking.Regenerate the command surface with the existing Forge package pin, and adapt the AI Search compatibility tests to the schema's optional
--namespaceflag anddefaultnamespace. Include the minor changeset for the generated command changes.Validation:
pnpm checknode --test scripts/update-openapi.test.ts— 21 passedpnpm --filter cf test— 2,180 passedpnpm --filter @cloudflare/wrangler-tests test