passport-bridge 0.56.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/cliHookDecide.js +3 -1
  2. package/dist/connectorKit/engine.generated.js +7 -0
  3. package/dist/connectorKit/githubDecide.generated.d.ts +6 -0
  4. package/dist/connectorKit/githubDecide.generated.js +26 -7
  5. package/dist/connectorKit/manifest.generated.d.ts +3 -0
  6. package/dist/connectorKit/manifests/cloudflareApiOverlay.generated.d.ts +22 -0
  7. package/dist/connectorKit/manifests/cloudflareApiOverlay.generated.js +50 -0
  8. package/dist/connectorKit/manifests/cloudflareCli.generated.d.ts +3 -0
  9. package/dist/connectorKit/manifests/cloudflareCli.generated.js +27 -6
  10. package/dist/connectorKit/manifests/cloudflareCommands.generated.d.ts +17 -0
  11. package/dist/connectorKit/manifests/cloudflareCommands.generated.js +353 -0
  12. package/dist/connectorKit/manifests/githubCapture.generated.js +3 -2
  13. package/dist/connectorKit/manifests/githubHooks.generated.js +3 -1
  14. package/dist/connectorKit/manifests/githubReads.generated.d.ts +4 -0
  15. package/dist/connectorKit/manifests/githubReads.generated.js +36 -2
  16. package/dist/connectorKit/manifests/kubernetesCli.generated.d.ts +6 -0
  17. package/dist/connectorKit/manifests/kubernetesCli.generated.js +18 -4
  18. package/dist/connectorKit/manifests/railwayCapture.generated.js +14 -1
  19. package/dist/connectorKit/manifests/railwayCommands.generated.js +9 -1
  20. package/dist/connectorKit/manifests/railwayGraphql.generated.d.ts +40 -0
  21. package/dist/connectorKit/manifests/railwayGraphql.generated.js +409 -0
  22. package/dist/connectorKit/manifests/railwayHooks.generated.d.ts +10 -1
  23. package/dist/connectorKit/manifests/railwayHooks.generated.js +89 -34
  24. package/dist/connectorKit/manifests/sentryCli.generated.js +3 -0
  25. package/dist/connectorKit/manifests/supabaseApi.generated.js +6 -0
  26. package/dist/connectorKit/manifests/supabaseCapture.generated.js +4 -0
  27. package/dist/connectorKit/manifests/terraform.generated.d.ts +16 -4
  28. package/dist/connectorKit/manifests/terraform.generated.js +85 -104
  29. package/dist/connectorKit/manifests/terraformCatalog.generated.d.ts +15 -0
  30. package/dist/connectorKit/manifests/terraformCatalog.generated.js +36 -0
  31. package/dist/connectorKit/manifests/terraformCommands.generated.d.ts +2 -0
  32. package/dist/connectorKit/manifests/terraformCommands.generated.js +109 -0
  33. package/dist/connectorKit/sources/cloudflare/api-overlay.generated.d.ts +3793 -0
  34. package/dist/connectorKit/sources/cloudflare/api-overlay.generated.js +2 -0
  35. package/dist/connectorKit/sources/cloudflare/cli-tree.generated.d.ts +56 -0
  36. package/dist/connectorKit/sources/cloudflare/cli-tree.generated.js +2 -0
  37. package/dist/connectorKit/sources/sentry/cli-commands.generated.d.ts +2 -0
  38. package/dist/connectorKit/sources/sentry/cli-commands.generated.js +1 -1
  39. package/dist/connectorKit/sources/supabase/api-operations.generated.js +1 -1
  40. package/dist/connectorKit/sources/terraform/cli-tree.generated.d.ts +32 -0
  41. package/dist/connectorKit/sources/terraform/cli-tree.generated.js +2 -0
  42. package/dist/controlPlaneCloudflare.d.ts +8 -3
  43. package/dist/controlPlaneCloudflare.js +17 -7
  44. package/dist/controlPlaneGuard.js +5 -3
  45. package/dist/controlPlaneNpmCommands.generated.d.ts +3 -0
  46. package/dist/controlPlaneNpmCommands.generated.js +17 -2
  47. package/dist/controlPlaneRailwayGuard.d.ts +20 -5
  48. package/dist/controlPlaneRailwayGuard.js +109 -12
  49. package/dist/pluginPin.d.ts +1 -1
  50. package/dist/pluginPin.js +1 -1
  51. package/dist/version.d.ts +1 -1
  52. package/dist/version.js +1 -1
  53. package/npm-shrinkwrap.json +2 -2
  54. package/package.json +1 -1
@@ -0,0 +1,353 @@
1
+ import { BILLING, EMAILS_OUTSIDE, MAY_OUTAGE, MAY_RUN_LATER, OUTAGE, PUBLIC_DATA, RUN } from "../callEffects.generated.js";
2
+ /**
3
+ * What each Wrangler command (4.169.0, `sources/cloudflare/cli-tree.json`) does that no hand rule in
4
+ * `cloudflareCli.ts` names (docs/design/zero-unknowns.md, decision 3). Drafted from the tree's own summaries on
5
+ * 2026-11-29 and reviewed line by line; the coverage gate fails on a pinned command with no entry. An `other` entry is
6
+ * Cloudflare's "Other change" with these effects (kind and impact follow them), placed by `CLOUDFLARE_CLI_PLACES`: the
7
+ * Worker for a Worker's command, the bucket or queue the command's group names, else the platform.
8
+ * (`on` is always "project" here: Cloudflare places by the command, not by the reviewer.)
9
+ */
10
+ const change = (object) => ({ verb: "change", object });
11
+ const create = (object) => ({ verb: "create", object });
12
+ const del = (object) => ({ verb: "delete", object });
13
+ const possible = (effect) => ({ ...effect, possible: true });
14
+ const read = (why) => ({ read: why });
15
+ const local = (why) => ({ local: why });
16
+ const other = (summary, ...effects) => ({ other: summary, effects, on: "project" });
17
+ const SHOWS = "Shows or lists; changes nothing on Cloudflare";
18
+ const HELP = "Prints its subcommands";
19
+ /** A secret, key or credential shown: recorded whoever reads it. */
20
+ const SECRET_READ = { verb: "read", object: "access" };
21
+ /** Something many depend on is removed at once. */
22
+ const BULK = { ...OUTAGE };
23
+ /** The Worker's own commands, and the bucket or queue a command's group names: where an overlay rule
24
+ * lands (first prefix wins; anything else is the platform). */
25
+ export const CLOUDFLARE_CLI_PLACES = [
26
+ ["preview", { on: "worker" }],
27
+ ["r2 bucket ", { on: "bucket", args: ["bucket"] }],
28
+ ["queues consumer ", { on: "queue", args: ["queue"] }],
29
+ ["queues subscription ", { on: "queue", args: ["queue"] }]
30
+ ];
31
+ export const CLOUDFLARE_COMMANDS = {
32
+ // Agent Memory.
33
+ "agent-memory namespace create": other("Create an Agent Memory namespace", create("data")),
34
+ "agent-memory namespace delete": other("Delete an Agent Memory namespace", del("data")),
35
+ "agent-memory namespace get": read(SHOWS),
36
+ "agent-memory namespace list": read(SHOWS),
37
+ // Workers AI and AI Search.
38
+ "ai finetune create": other("Create a Workers AI finetune and upload its files", create("data"), RUN),
39
+ "ai finetune list": read(SHOWS),
40
+ "ai models list": read(SHOWS),
41
+ "ai models schema": read(SHOWS),
42
+ "ai-search create": other("Create an AI Search instance", create("data")),
43
+ "ai-search delete": other("Delete an AI Search instance", del("data")),
44
+ "ai-search get": read(SHOWS),
45
+ "ai-search jobs cancel": other("Cancel an AI Search indexing job", change("run")),
46
+ "ai-search jobs create": other("Start an AI Search indexing job", RUN),
47
+ "ai-search jobs get": read(SHOWS),
48
+ "ai-search jobs list": read(SHOWS),
49
+ "ai-search jobs logs": read(SHOWS),
50
+ "ai-search list": read(SHOWS),
51
+ "ai-search namespace create": other("Create an AI Search namespace", create("data")),
52
+ "ai-search namespace delete": other("Delete an AI Search namespace", del("data")),
53
+ "ai-search namespace get": read(SHOWS),
54
+ "ai-search namespace list": read(SHOWS),
55
+ "ai-search namespace update": other("Change an AI Search namespace", change("data")),
56
+ "ai-search search": read("Searches an AI Search instance; changes nothing"),
57
+ "ai-search stats": read(SHOWS),
58
+ "ai-search update": other("Change an AI Search instance", change("service")),
59
+ // Artifacts: a repo token grants access to the repository.
60
+ "artifacts namespaces get": read(SHOWS),
61
+ "artifacts namespaces list": read(SHOWS),
62
+ "artifacts repos create": other("Create an Artifacts repository", create("data")),
63
+ "artifacts repos delete": other("Delete an Artifacts repository", del("data")),
64
+ "artifacts repos get": read(SHOWS),
65
+ "artifacts repos issue-token": other("Issue an Artifacts repository token", create("access")),
66
+ "artifacts repos list": read(SHOWS),
67
+ // Wrangler's own sign-in profiles live on this computer; `auth token` prints a credential.
68
+ "auth activate": local("Binds a sign-in profile to a folder on this computer"),
69
+ "auth create": local("Signs a named Wrangler profile in on this computer"),
70
+ "auth deactivate": local("Unbinds a sign-in profile from a folder on this computer"),
71
+ "auth delete": local("Deletes a sign-in profile from this computer"),
72
+ "auth keyring": local("Chooses where this computer stores Wrangler's sign-in"),
73
+ "auth list": local("Lists this computer's sign-in profiles"),
74
+ "auth token": other("Show Wrangler's API token", SECRET_READ),
75
+ // Basin (R2 Data Catalog and pipelines).
76
+ "basin catalog compaction disable": other("Turn off compaction for a Basin catalog", change("service")),
77
+ "basin catalog compaction enable": other("Turn on compaction for a Basin catalog", change("service")),
78
+ "basin catalog disable": other("Turn off the Basin catalog of an R2 bucket", change("data"), MAY_OUTAGE),
79
+ "basin catalog enable": other("Turn on the Basin catalog of an R2 bucket", change("data")),
80
+ "basin catalog get": read(SHOWS),
81
+ // Snapshot expiration deletes old table snapshots on a schedule.
82
+ "basin catalog snapshot-expiration disable": other("Turn off snapshot expiration for a Basin catalog", change("service")),
83
+ "basin catalog snapshot-expiration enable": other("Turn on snapshot expiration for a Basin catalog", change("service"), possible({ ...del("data"), when: "recurring" })),
84
+ "basin pipelines create": other("Create a pipeline", create("service"), MAY_RUN_LATER),
85
+ "basin pipelines delete": other("Delete a pipeline", del("service")),
86
+ "basin pipelines get": read(SHOWS),
87
+ "basin pipelines list": read(SHOWS),
88
+ "basin pipelines setup": other("Set up a pipeline with its stream and sink", create("service"), MAY_RUN_LATER),
89
+ "basin pipelines sinks create": other("Create a pipeline sink", create("service")),
90
+ "basin pipelines sinks delete": other("Delete a pipeline sink", del("service")),
91
+ "basin pipelines sinks get": read(SHOWS),
92
+ "basin pipelines sinks list": read(SHOWS),
93
+ "basin pipelines streams create": other("Create a pipeline stream", create("service")),
94
+ "basin pipelines streams delete": other("Delete a pipeline stream", del("service")),
95
+ "basin pipelines streams get": read(SHOWS),
96
+ "basin pipelines streams list": read(SHOWS),
97
+ "basin pipelines update": other("Change a pipeline", change("service")),
98
+ // SQL Passport doesn't read: it may change the catalog's tables.
99
+ "basin sql query": other("Run SQL on a Basin catalog", RUN, possible(change("data"))),
100
+ // Browser Run: a remote browser session runs code.
101
+ "browser close": other("Close a Browser Run session", change("run")),
102
+ "browser create": other("Start a Browser Run session", RUN),
103
+ "browser list": read(SHOWS),
104
+ "browser view": read("Opens a live view of a browser session; changes nothing"),
105
+ // mTLS certificates authenticate clients and origins.
106
+ "cert delete": other("Delete an mTLS certificate", del("access")),
107
+ "cert list": read(SHOWS),
108
+ "cert upload certificate-authority": other("Upload a CA certificate chain", create("access")),
109
+ "cert upload mtls-certificate": other("Upload an mTLS certificate", create("access")),
110
+ complete: local("Prints shell completions"),
111
+ // Containers.
112
+ "containers build": local("Builds a container image on this computer"),
113
+ "containers delete": other("Delete a container application", del("service"), OUTAGE),
114
+ "containers images delete": other("Delete an image from Cloudflare's registry", del("code")),
115
+ "containers images list": read(SHOWS),
116
+ "containers info": read(SHOWS),
117
+ "containers instances": read(SHOWS),
118
+ "containers list": read(SHOWS),
119
+ "containers push": other("Push an image to Cloudflare's registry", create("code")),
120
+ "containers registries configure": other("Configure credentials for a container registry", create("access")),
121
+ "containers registries credentials": other("Issue a temporary password for a container registry", create("access")),
122
+ "containers registries delete": other("Delete a container registry's credentials", del("access"), MAY_OUTAGE),
123
+ "containers registries list": read(SHOWS),
124
+ "containers ssh": other("Open SSH into a container", RUN),
125
+ "d1 insights": read(SHOWS),
126
+ // Workers for Platforms.
127
+ "dispatch-namespace create": other("Create a dispatch namespace", create("service")),
128
+ "dispatch-namespace delete": other("Delete a dispatch namespace and its Workers", del("code"), del("service"), OUTAGE),
129
+ "dispatch-namespace get": read(SHOWS),
130
+ "dispatch-namespace list": read(SHOWS),
131
+ // Email Routing forwards a zone's mail; a destination address is verified by email.
132
+ "email routing addresses create": other("Add an Email Routing destination address", create("service"), EMAILS_OUTSIDE),
133
+ "email routing addresses delete": other("Delete an Email Routing destination address", del("service"), MAY_OUTAGE),
134
+ "email routing addresses get": read(SHOWS),
135
+ "email routing addresses list": read(SHOWS),
136
+ "email routing disable": other("Turn off Email Routing for a zone", change("service"), OUTAGE),
137
+ "email routing dns get": read(SHOWS),
138
+ "email routing dns unlock": other("Unlock a zone's MX records from Email Routing", change("service"), MAY_OUTAGE),
139
+ "email routing enable": other("Turn on Email Routing for a zone", change("service"), MAY_OUTAGE),
140
+ "email routing list": read(SHOWS),
141
+ "email routing rules create": other("Create an Email Routing rule", create("service"), possible(PUBLIC_DATA)),
142
+ "email routing rules delete": other("Delete an Email Routing rule", del("service")),
143
+ "email routing rules get": read(SHOWS),
144
+ "email routing rules list": read(SHOWS),
145
+ "email routing rules update": other("Change an Email Routing rule", change("service"), possible(PUBLIC_DATA)),
146
+ "email routing settings": read(SHOWS),
147
+ "email sending disable": other("Turn off Email Sending for a domain", change("service"), OUTAGE),
148
+ "email sending dns get": read(SHOWS),
149
+ "email sending enable": other("Turn on Email Sending for a domain", change("service")),
150
+ "email sending list": read(SHOWS),
151
+ "email sending send": other("Send an email", EMAILS_OUTSIDE),
152
+ "email sending send-raw": other("Send a raw email", EMAILS_OUTSIDE),
153
+ "email sending settings": read(SHOWS),
154
+ // Flagship feature flags: a flag change reaches the app's users at once.
155
+ "flagship apps create": other("Create a Flagship app", create("service")),
156
+ "flagship apps delete": other("Delete a Flagship app", del("service"), OUTAGE),
157
+ "flagship apps get": read(SHOWS),
158
+ "flagship apps list": read(SHOWS),
159
+ "flagship apps ls": read(SHOWS),
160
+ "flagship apps rm": other("Delete a Flagship app", del("service"), OUTAGE),
161
+ "flagship apps update": other("Change a Flagship app", change("service")),
162
+ "flagship flags changelog": read(SHOWS),
163
+ "flagship flags create": other("Create a feature flag", create("service")),
164
+ "flagship flags delete": other("Delete a feature flag", del("service"), MAY_OUTAGE),
165
+ "flagship flags disable": other("Turn off a feature flag", change("service"), MAY_OUTAGE),
166
+ "flagship flags enable": other("Turn on a feature flag", change("service"), MAY_OUTAGE),
167
+ "flagship flags eval": read("Evaluates a flag; changes nothing"),
168
+ "flagship flags evaluate": read("Evaluates a flag; changes nothing"),
169
+ "flagship flags get": read(SHOWS),
170
+ "flagship flags history": read(SHOWS),
171
+ "flagship flags inspect": read(SHOWS),
172
+ "flagship flags list": read(SHOWS),
173
+ "flagship flags ls": read(SHOWS),
174
+ "flagship flags pull": local("Copies flags into this computer's local flag store"),
175
+ "flagship flags rm": other("Delete a feature flag", del("service"), MAY_OUTAGE),
176
+ "flagship flags rollout": other("Roll out a feature flag variation", change("service"), MAY_OUTAGE),
177
+ "flagship flags rules delete": other("Delete a feature flag targeting rule", change("service"), MAY_OUTAGE),
178
+ "flagship flags rules list": read(SHOWS),
179
+ "flagship flags rules reorder": other("Reorder a feature flag's targeting rules", change("service"), MAY_OUTAGE),
180
+ "flagship flags rules update": other("Change a feature flag targeting rule", change("service"), MAY_OUTAGE),
181
+ "flagship flags set": other("Set a feature flag's default variation", change("service"), MAY_OUTAGE),
182
+ "flagship flags split": other("Split a feature flag's traffic", change("service"), MAY_OUTAGE),
183
+ "flagship flags update": other("Change a feature flag", change("service"), MAY_OUTAGE),
184
+ // Hyperdrive: the Worker's database connection (its credentials ride in the config).
185
+ "hyperdrive create": other("Create a Hyperdrive config", create("service"), create("access")),
186
+ "hyperdrive delete": other("Delete a Hyperdrive config", del("service"), OUTAGE),
187
+ "hyperdrive get": read(SHOWS),
188
+ "hyperdrive planetscale signature": other("Sign a request for a Cloudflare-billed PlanetScale database", BILLING),
189
+ "hyperdrive update": other("Change a Hyperdrive config", change("service"), MAY_OUTAGE),
190
+ // K2 streams.
191
+ "k2 streams create": other("Create a K2 stream", create("data")),
192
+ "k2 streams delete": other("Delete a K2 stream", del("data")),
193
+ "k2 streams get": read(SHOWS),
194
+ "k2 streams list": read(SHOWS),
195
+ "mtls-certificate delete": other("Delete an mTLS certificate", del("access")),
196
+ "mtls-certificate list": read(SHOWS),
197
+ "mtls-certificate upload": other("Upload an mTLS certificate", create("access")),
198
+ // Pages.
199
+ "pages deployment delete": other("Delete a Pages deployment", del("code")),
200
+ "pages download config": local("Writes the project's Wrangler config on this computer"),
201
+ // Worker Previews: a preview deployment runs the Worker's code at its own URL.
202
+ preview: other("Deploy a preview of Worker {script}", create("code"), RUN),
203
+ "preview base-config": read(SHOWS),
204
+ "preview base-config secret": read(HELP),
205
+ "preview base-config secret bulk": other("Set preview secrets from a file on Worker {script}", change("access")),
206
+ "preview base-config secret delete": other("Delete a preview secret from Worker {script}", del("access"), MAY_OUTAGE),
207
+ "preview base-config secret list": read("Lists secret names; never their values"),
208
+ "preview base-config secret put": other("Set a preview secret on Worker {script}", change("access")),
209
+ "preview delete": other("Delete a preview of Worker {script}", del("code")),
210
+ "preview secret": read(HELP),
211
+ "preview secret bulk": other("Set secrets from a file on a preview of Worker {script}", change("access"), RUN),
212
+ "preview secret delete": other("Delete a secret from a preview of Worker {script}", del("access"), RUN),
213
+ "preview secret list": read("Lists secret names; never their values"),
214
+ "preview secret put": other("Set a secret on a preview of Worker {script}", change("access"), RUN),
215
+ // Queues.
216
+ "queues consumer http add": other("Add an HTTP pull consumer to queue {queue}", change("service"), create("access")),
217
+ "queues consumer http list": read(SHOWS),
218
+ "queues consumer http remove": other("Remove the HTTP pull consumer from queue {queue}", change("service"), MAY_OUTAGE),
219
+ "queues consumer list": read(SHOWS),
220
+ "queues consumer worker add": other("Add a consumer to queue {queue}", change("service"), MAY_RUN_LATER),
221
+ "queues consumer worker list": read(SHOWS),
222
+ "queues consumer worker remove": other("Remove a consumer from queue {queue}", change("service"), MAY_OUTAGE),
223
+ "queues subscription create": other("Subscribe queue {queue} to events", change("service"), MAY_RUN_LATER),
224
+ "queues subscription delete": other("Delete an event subscription of queue {queue}", change("service")),
225
+ "queues subscription get": read(SHOWS),
226
+ "queues subscription list": read(SHOWS),
227
+ "queues subscription update": other("Change an event subscription of queue {queue}", change("service")),
228
+ // R2 buckets: lock rules keep objects from deletion; lifecycle rules delete them on a schedule.
229
+ "r2 bucket domain get": read(SHOWS),
230
+ "r2 bucket domain update": other("Change a custom domain of bucket {bucket}", change("data"), MAY_OUTAGE),
231
+ "r2 bucket lifecycle add": other("Add a lifecycle rule to bucket {bucket}", change("service"), possible({ ...del("data"), when: "recurring" })),
232
+ "r2 bucket lifecycle remove": other("Remove a lifecycle rule from bucket {bucket}", change("service")),
233
+ "r2 bucket local-uploads disable": other("Turn off local uploads for bucket {bucket}", change("service")),
234
+ "r2 bucket local-uploads enable": other("Turn on local uploads for bucket {bucket}", change("service")),
235
+ "r2 bucket local-uploads get": read(SHOWS),
236
+ "r2 bucket lock add": other("Add a lock rule to bucket {bucket}", change("data")),
237
+ "r2 bucket lock list": read(SHOWS),
238
+ "r2 bucket lock remove": other("Remove a lock rule from bucket {bucket}", change("data"), possible(del("data"))),
239
+ "r2 bucket lock set": other("Replace the lock rules of bucket {bucket}", change("data"), possible(del("data"))),
240
+ "r2 bucket notification create": other("Send events from bucket {bucket} to a queue", change("service"), MAY_RUN_LATER),
241
+ "r2 bucket notification delete": other("Delete an event notification of bucket {bucket}", change("service")),
242
+ "r2 bucket notification get": read(SHOWS),
243
+ "r2 bucket notification list": read(SHOWS),
244
+ // Sippy copies objects in from another provider's bucket with that provider's credentials.
245
+ "r2 bucket sippy disable": other("Turn off Sippy for bucket {bucket}", change("data")),
246
+ "r2 bucket sippy enable": other("Turn on Sippy for bucket {bucket}", change("data"), create("access")),
247
+ "r2 bucket sippy get": read(SHOWS),
248
+ "r2 bucket update storage-class": other("Change the storage class of bucket {bucket}", change("data"), BILLING),
249
+ // Secrets Store: account secrets Workers bind to.
250
+ "secrets-store secret create": other("Create a secret in a Secrets Store", create("access")),
251
+ "secrets-store secret delete": other("Delete a secret from a Secrets Store", del("access"), MAY_OUTAGE),
252
+ "secrets-store secret duplicate": other("Duplicate a secret in a Secrets Store", create("access")),
253
+ "secrets-store secret get": other("Show a secret of a Secrets Store", SECRET_READ),
254
+ "secrets-store secret list": read("Lists secret names; never their values"),
255
+ "secrets-store secret update": other("Change a secret in a Secrets Store", change("access"), MAY_OUTAGE),
256
+ "secrets-store store create": other("Create a Secrets Store", create("access")),
257
+ "secrets-store store delete": other("Delete a Secrets Store and its secrets", del("access"), BULK),
258
+ "secrets-store store list": read(SHOWS),
259
+ // `setup` configures this folder and, unless dry-run, may deploy the project.
260
+ setup: other("Set up this project on Cloudflare", possible(create("code")), possible(RUN)),
261
+ // Tunnels: a tunnel publishes a local service on Cloudflare.
262
+ "tunnel create": other("Create a Cloudflare Tunnel", create("service")),
263
+ "tunnel delete": other("Delete a Cloudflare Tunnel", del("service")),
264
+ "tunnel info": read(SHOWS),
265
+ "tunnel list": read(SHOWS),
266
+ "tunnel quick-start": other("Publish a local URL through a temporary tunnel", RUN, PUBLIC_DATA),
267
+ "tunnel run": other("Run a Cloudflare Tunnel on this computer", RUN, possible(PUBLIC_DATA)),
268
+ // Turnstile widgets: a widget's secret checks visitors.
269
+ "turnstile widget create": other("Create a Turnstile widget", create("access")),
270
+ "turnstile widget delete": other("Delete a Turnstile widget", del("access"), OUTAGE),
271
+ "turnstile widget get": read(SHOWS),
272
+ "turnstile widget list": read(SHOWS),
273
+ "turnstile widget update": other("Change a Turnstile widget", change("access")),
274
+ // Vectorize.
275
+ "vectorize create": other("Create a Vectorize index", create("data")),
276
+ "vectorize create-metadata-index": other("Add a metadata index to a Vectorize index", change("data")),
277
+ "vectorize delete": other("Delete a Vectorize index", del("data")),
278
+ "vectorize delete-metadata-index": other("Delete a metadata index of a Vectorize index", change("data"), MAY_OUTAGE),
279
+ "vectorize delete-vectors": other("Delete vectors from a Vectorize index", del("data")),
280
+ "vectorize get": read(SHOWS),
281
+ "vectorize get-vectors": read(SHOWS),
282
+ "vectorize info": read(SHOWS),
283
+ "vectorize insert": other("Insert vectors into a Vectorize index", create("data")),
284
+ "vectorize list-metadata-index": read(SHOWS),
285
+ "vectorize list-vectors": read(SHOWS),
286
+ "vectorize query": read("Queries an index; changes nothing"),
287
+ "vectorize upsert": other("Upsert vectors into a Vectorize index", change("data")),
288
+ // Workers VPC services reach private networks.
289
+ "vpc service create": other("Create a VPC service", create("service"), create("access")),
290
+ "vpc service delete": other("Delete a VPC service", del("service"), OUTAGE),
291
+ "vpc service get": read(SHOWS),
292
+ "vpc service list": read(SHOWS),
293
+ "vpc service update": other("Change a VPC service", change("service"), possible(change("access"))),
294
+ // Workflows: a trigger runs the workflow's code.
295
+ "workflows delete": other("Delete a workflow and its instances", del("code"), del("data")),
296
+ "workflows describe": read(SHOWS),
297
+ "workflows instances delete": other("Delete workflow instances", del("data")),
298
+ "workflows instances describe": read(SHOWS),
299
+ "workflows instances list": read(SHOWS),
300
+ "workflows instances pause": other("Pause a workflow instance", change("run")),
301
+ "workflows instances restart": other("Restart a workflow instance", RUN),
302
+ "workflows instances resume": other("Resume a workflow instance", RUN),
303
+ "workflows instances send-event": other("Send an event to a workflow instance", RUN),
304
+ "workflows instances terminate": other("Terminate a workflow instance", change("run"), MAY_OUTAGE),
305
+ "workflows trigger": other("Trigger a workflow", RUN)
306
+ };
307
+ /** Where an overlay command lands, and the positional arguments its place reads. */
308
+ export function cloudflarePlace(command) {
309
+ return (CLOUDFLARE_CLI_PLACES.find(([prefix]) => command === prefix.trim() || command.startsWith(prefix))?.[1] ?? {
310
+ on: "platform"
311
+ });
312
+ }
313
+ /** A place that reads its first positional argument reads the rest too, unnamed (`arg2`, …; a rest argument as
314
+ * `...more`), so the arguments the usage line allows never fail it closed. */
315
+ function withUsage(place, line) {
316
+ if (!place.args?.length || !line)
317
+ return place;
318
+ const positionals = (line.match(/[<[][^>\]]+[>\]]/g) ?? []).filter((p) => !/flags|options/i.test(p));
319
+ const rest = positionals.slice(place.args.length).map((p, i) => (p.includes("..") ? "...more" : `arg${i + 2}`));
320
+ return { ...place, args: [...place.args, ...rest] };
321
+ }
322
+ /** The capture rules and reads the overlay adds for commands no hand rule names. A command whose tree flags include
323
+ * `--remote` runs against the local simulator until it is given (Wrangler 4's convention). */
324
+ export function cloudflareOverlayCapture(tree, other, ruled) {
325
+ const remote = new Set(tree.commands.filter((c) => c.flags.some((f) => f.long === "remote")).map((c) => c.path));
326
+ const usage = new Map(tree.commands.map((c) => [c.path, c.usage]));
327
+ const rules = [];
328
+ const reads = {};
329
+ for (const [command, effect] of Object.entries(CLOUDFLARE_COMMANDS)) {
330
+ if (ruled.has(command))
331
+ continue;
332
+ if ("read" in effect)
333
+ reads[command] = effect.read;
334
+ else if ("local" in effect)
335
+ reads[command] = `Local only: ${effect.local}`;
336
+ else if ("other" in effect) {
337
+ const place = withUsage(cloudflarePlace(command), usage.get(command));
338
+ const rule = {
339
+ match: command,
340
+ action: other,
341
+ summary: effect.other,
342
+ ...place,
343
+ ...(remote.has(command) ? { localByDefault: true } : {})
344
+ };
345
+ rules.push(rule);
346
+ }
347
+ }
348
+ return { rules, reads };
349
+ }
350
+ /** The (action, summary, effects) rows the overlay gives the server's call-effects table. */
351
+ export function cloudflareCommandCallEffects(other) {
352
+ return Object.values(CLOUDFLARE_COMMANDS).flatMap((effect) => "other" in effect ? [[other, effect.other, effect.effects]] : []);
353
+ }
@@ -1,6 +1,6 @@
1
1
  import { GENERATED_PARAMS, generatedApi, generatedCli, generatedMcp, GH_GENERATED_FLAGS, GITHUB_MUTATIONS } from "./githubGenerated.generated.js";
2
2
  import { WORKFLOW_FILE } from "./githubHooks.generated.js";
3
- import { GH_READS, GH_REPO_WRITES, GITHUB_API_READS, GITHUB_MCP_READS } from "./githubReads.generated.js";
3
+ import { GH_NEWER_FLAGS, GH_PLATFORM_WRITES, GH_READS, GH_REPO_WRITES, GITHUB_API_READS, GITHUB_MCP_READS } from "./githubReads.generated.js";
4
4
  /**
5
5
  * GitHub capture: `gh` and `git push` command lines, GitHub's MCP tools, REST calls and GraphQL mutations. The
6
6
  * hand-written rules here name the governed actions with their exact targets and conditions; the generated catalog
@@ -335,6 +335,7 @@ const CLI_RULES = [
335
335
  { match: "repo delete", action: "github.repo.delete", hook: "ghRepo" },
336
336
  { match: "repo edit", action: "github.repo.public", hook: "ghRepo" },
337
337
  { match: "secret set", action: "github.secret.change", hook: "ghRepo" },
338
+ ...Object.entries(GH_PLATFORM_WRITES).map(([match, action]) => ({ match, action, hook: "ghRepo" })),
338
339
  // The repository writes named since 2026-11-17 (`GH_REPO_WRITES`).
339
340
  ...Object.entries(GH_REPO_WRITES).map(([match, [action]]) => ({
340
341
  match,
@@ -399,7 +400,7 @@ export const GITHUB_CAPTURE = {
399
400
  infoFlags: ["help", "version"],
400
401
  flags: {
401
402
  global: [flag("help", "none", "h"), flag("version", "none")],
402
- commands: { ...GH_GENERATED_FLAGS, push: GIT_PUSH }
403
+ commands: { ...GH_GENERATED_FLAGS, ...GH_NEWER_FLAGS, push: GIT_PUSH }
403
404
  },
404
405
  remoteFlags: [],
405
406
  localFlags: [],
@@ -4,7 +4,7 @@ import { unnamedApi } from "../../controlPlaneUnnamed.generated.js";
4
4
  import { matchBranch, MAX_BRANCH_MATCH_LENGTH } from "../githubIds.generated.js";
5
5
  import { classify, render } from "../engine.generated.js";
6
6
  import { GITHUB_GH_ROUTES, GITHUB_LABELS, GITHUB_MUTATIONS } from "./githubGenerated.generated.js";
7
- import { GH_REPO_WRITES } from "./githubReads.generated.js";
7
+ import { GH_PLATFORM_WRITES, GH_REPO_WRITES } from "./githubReads.generated.js";
8
8
  const lower = (value) => value.toLowerCase();
9
9
  const text = (value) => (typeof value === "string" && value !== "" ? value : null);
10
10
  const words = (value) => value === undefined || typeof value === "boolean" ? [] : Array.isArray(value) ? value : [value];
@@ -303,6 +303,8 @@ function refForced(bare, variables) {
303
303
  /** A pull request's or issue's URL names its own repository. */
304
304
  const ITEM_URL = /^https?:\/\/[^/]+\/([^/]+)\/([^/]+)\/(?:pull|issues)\/\d+/;
305
305
  function repoWrite(n, argument, repoFlag) {
306
+ if (Object.hasOwn(GH_PLATFORM_WRITES, n.op))
307
+ return [labelled({ nodeId: nodeId("github"), actionKey: GH_PLATFORM_WRITES[n.op], summary: "" }, null)];
306
308
  const write = Object.prototype.hasOwnProperty.call(GH_REPO_WRITES, n.op) ? GH_REPO_WRITES[n.op] : undefined;
307
309
  if (!write)
308
310
  return "unclassified";
@@ -1,7 +1,11 @@
1
1
  import type { FlagSpec, ReadEvidence } from "../manifest.generated.js";
2
+ export declare const GH_NEWER_FLAGS: Record<string, readonly FlagSpec[]>;
2
3
  export declare const GH_COMMANDS: Record<string, readonly FlagSpec[]>;
3
4
  /** The repository writes named since 2026-11-17, as today's classifier names them (`REPO_WRITES`). */
4
5
  export declare const GH_REPO_WRITES: Readonly<Record<string, readonly [string, string]>>;
6
+ /** gh writes on GitHub itself, not a repository (gh 2.106, preview): a subscription sends a resource's events to
7
+ * this account. */
8
+ export declare const GH_PLATFORM_WRITES: Readonly<Record<string, string>>;
5
9
  export declare const GH_READS: Readonly<Record<string, ReadEvidence>>;
6
10
  export declare const GITHUB_MCP_READS: Readonly<Record<string, ReadEvidence>>;
7
11
  /** GETs a request names (any other route fails closed through the API; `gh api` reads every GET). */
@@ -48,6 +48,22 @@ const GH = {
48
48
  "workflow list": `${REPO}-a/all -q/jq= json= -L/limit= -t/template=`,
49
49
  "auth status": "-a/active -h/hostname= jq= json= -t/show-token template="
50
50
  };
51
+ /** gh 2.106's commands newer than the generated reference (`sources/github/cli-tree.json`), and their options. */
52
+ const GH_NEWER = {
53
+ "codespace ports": "-c/codespace= -q/jq= json= -R/repo= repo-owner= -t/template=",
54
+ "event listen": "count= event= follow -q/jq= resource= subscription= -t/template= timeout=",
55
+ "event subscription create": "event= -q/jq= json= resource= -t/template=",
56
+ "event subscription delete": "",
57
+ "event subscription list": "-q/jq= json= -L/limit= -t/template=",
58
+ "event subscription view": "-q/jq= json= -t/template=",
59
+ "issue artifact create": `${REPO}attach= -b/body= -F/body-file= name= type=`,
60
+ "issue artifact delete": `${REPO}yes`,
61
+ "issue artifact download": `${REPO}clobber -D/dir= -O/output= skip-existing version=`,
62
+ "issue artifact edit": `${REPO}attach= -b/body= -F/body-file= name= restore-version=`,
63
+ "issue artifact list": `${REPO}-q/jq= json= -L/limit= -t/template= type=`,
64
+ "issue artifact view": `${REPO}-q/jq= json= -t/template= version= -w/web`
65
+ };
66
+ export const GH_NEWER_FLAGS = Object.fromEntries(Object.entries(GH_NEWER).map(([command, spec]) => [command, parse(spec)]));
51
67
  export const GH_COMMANDS = Object.fromEntries(Object.entries(GH).map(([command, spec]) => [command, parse(spec)]));
52
68
  /** The repository writes named since 2026-11-17, as today's classifier names them (`REPO_WRITES`). */
53
69
  export const GH_REPO_WRITES = {
@@ -65,7 +81,17 @@ export const GH_REPO_WRITES = {
65
81
  "issue close": ["github.issue.edit", "Close an issue"],
66
82
  "issue reopen": ["github.issue.edit", "Reopen an issue"],
67
83
  "label create": ["github.label.manage", "Create a label"],
68
- "label edit": ["github.label.manage", "Edit a label"]
84
+ "label edit": ["github.label.manage", "Edit a label"],
85
+ // gh 2.106 (preview): files and links attached to an issue, on its repository.
86
+ "issue artifact create": ["github.issue.edit", "Attach an artifact to an issue"],
87
+ "issue artifact edit": ["github.issue.edit", "Edit an issue artifact"],
88
+ "issue artifact delete": ["github.issue.edit", "Delete an issue artifact"]
89
+ };
90
+ /** gh writes on GitHub itself, not a repository (gh 2.106, preview): a subscription sends a resource's events to
91
+ * this account. */
92
+ export const GH_PLATFORM_WRITES = {
93
+ "event subscription create": "github.activity.set_repo_subscription",
94
+ "event subscription delete": "github.activity.delete_repo_subscription"
69
95
  };
70
96
  const LOOKS = "Shows or lists; changes nothing on GitHub";
71
97
  export const GH_READS = {
@@ -85,7 +111,15 @@ export const GH_READS = {
85
111
  "release view": LOOKS,
86
112
  "ruleset list": LOOKS,
87
113
  "workflow list": LOOKS,
88
- "auth status": "Shows the signed-in account on this computer"
114
+ "auth status": "Shows the signed-in account on this computer",
115
+ // gh 2.106.
116
+ "codespace ports": LOOKS,
117
+ "issue artifact list": LOOKS,
118
+ "issue artifact view": LOOKS,
119
+ "issue artifact download": "Downloads an issue's artifacts to this computer",
120
+ "event listen": "Waits for events and prints them; changes nothing on GitHub",
121
+ "event subscription list": LOOKS,
122
+ "event subscription view": LOOKS
89
123
  };
90
124
  /** GitHub's MCP server (github/github-mcp-server): its read-only tools, and the writes not governed in v1. */
91
125
  const MCP_HINT = [
@@ -25,6 +25,12 @@ export type KubeResolver = {
25
25
  env?: Readonly<Record<string, string | undefined>>;
26
26
  };
27
27
  export declare const KUBE_PROGRAMS: Set<string>;
28
+ /** The commands with a reader of their own (a verb, or `verb sub`), which `kubernetesCommands.ts` holds its overlay's
29
+ * `rule` entries to. */
30
+ export declare const KUBE_READERS: {
31
+ kubectl: string[];
32
+ helm: string[];
33
+ };
28
34
  /** Whether a command's program is one this classifier reads. */
29
35
  export declare const isKubeProgram: (argv0: string | undefined) => boolean;
30
36
  /** One `kubectl` or `helm` command's actions, in the order it does them; empty for a read or another program. */
@@ -159,7 +159,7 @@ const deleteOf = (object, kind) => kind.category === "pod" ? "pod.delete" : dele
159
159
  /* ------------------------------------------------------------------ */
160
160
  /** Commands that only read, or change only this computer. */
161
161
  const KUBECTL_READS = new Set(("get describe logs log top explain diff wait events api-resources api-versions cluster-info version " +
162
- "config completion kustomize port-forward proxy plugin options help alpha").split(" "));
162
+ "config kuberc completion kustomize port-forward proxy plugin options help alpha").split(" "));
163
163
  const SHELLS = /^(?:\/(?:usr\/)?bin\/)?(?:sh|bash|zsh|ash|dash|fish|ksh)$/;
164
164
  /** `-o` that prints a Secret's values. */
165
165
  const VALUE_OUTPUT = /^(?:yaml|json|kyaml|jsonpath|go-template|template|custom-columns)/;
@@ -271,10 +271,13 @@ const SET_WORDS = {
271
271
  resources: ["workload.change", "Set the resources of"],
272
272
  selector: ["object.change", "Set the selector of"],
273
273
  serviceaccount: ["access.change", "Set the service account of"],
274
+ sa: ["access.change", "Set the service account of"],
274
275
  subject: ["access.change", "Set the subjects of"]
275
276
  };
276
277
  function setCommand(cmd) {
277
- const named = namedObjects(cmd.args.slice(1));
278
+ // `set serviceaccount deployment/web robot`: the last word is the account, not an object.
279
+ const account = cmd.sub === "serviceaccount" || cmd.sub === "sa";
280
+ const named = namedObjects(cmd.args.slice(1, account ? -1 : undefined));
278
281
  const chosen = cmd.sub ? SET_WORDS[cmd.sub] : undefined;
279
282
  if (!named?.length || !chosen)
280
283
  return other(cmd);
@@ -492,14 +495,14 @@ function createCommand(cmd) {
492
495
  /* ------------------------------------------------------------------ */
493
496
  const HELM_READS = new Set(("list ls status get history hist show inspect search repo template lint package pull fetch dependency dep " +
494
497
  "dependencies env version verify plugin registry completion create help push").split(" "));
498
+ /** `helm get` subcommands that print the values a release was installed with. */
499
+ const HELM_VALUES_READS = new Set(["values", "all"]);
495
500
  function classifyHelm(argv, resolver) {
496
501
  const parsed = parse(argv.slice(1), HELM_VALUES);
497
502
  const [verb, ...rest] = parsed.words;
498
503
  if (!verb || on(parsed.flags, "-h", "--help"))
499
504
  return [];
500
505
  const where_ = placeOf(parsed.flags, resolver, true);
501
- if (HELM_READS.has(verb) || dryRun(parsed.flags))
502
- return [];
503
506
  const release = (name) => (name && OBJECT_NAME.test(name) ? name : undefined);
504
507
  const place = where(where_.place, false);
505
508
  const on_ = (key, words, name) => {
@@ -507,6 +510,11 @@ function classifyHelm(argv, resolver) {
507
510
  return found(key, `${words} a release${place}`, placeNode(where_.place));
508
511
  return found(key, `${words} release ${name}${place}`, releaseNode(where_.place, name));
509
512
  };
513
+ // A release's values hold what its chart was given, secrets included: read like `get secret -o yaml`.
514
+ if (verb === "get" && HELM_VALUES_READS.has(rest[0] ?? ""))
515
+ return [on_("secret.read", "Read the values of", release(rest[1]))];
516
+ if (HELM_READS.has(verb) || dryRun(parsed.flags))
517
+ return [];
510
518
  switch (verb) {
511
519
  case "install": {
512
520
  // `install NAME CHART`, or `install CHART --generate-name`.
@@ -538,6 +546,12 @@ function classifyHelm(argv, resolver) {
538
546
  /* Entry */
539
547
  /* ------------------------------------------------------------------ */
540
548
  export const KUBE_PROGRAMS = new Set(["kubectl", "helm"]);
549
+ /** The commands with a reader of their own (a verb, or `verb sub`), which `kubernetesCommands.ts` holds its overlay's
550
+ * `rule` entries to. */
551
+ export const KUBE_READERS = {
552
+ kubectl: [...Object.keys(KUBECTL), "get", "port-forward", "auth reconcile"],
553
+ helm: ["install", "upgrade", "rollback", "uninstall", "test", ...[...HELM_VALUES_READS].map((sub) => `get ${sub}`)]
554
+ };
541
555
  /** Whether a command's program is one this classifier reads. */
542
556
  export const isKubeProgram = (argv0) => KUBE_PROGRAMS.has(programOf(argv0 ?? ""));
543
557
  /** One `kubectl` or `helm` command's actions, in the order it does them; empty for a read or another program. */
@@ -313,6 +313,19 @@ const FIELDS = [
313
313
  ],
314
314
  ["gqlResource", "railway.service.variable.delete", "Delete a variable on {where}", "variableDelete"],
315
315
  ["gqlResource", "railway.service.shell", "Open a shell into {where}", "generateShellToken"],
316
+ // Queries that return secret values: recorded as sensitive reads (every other query only reads).
317
+ [
318
+ "gqlResource",
319
+ "railway.service.secrets",
320
+ "Read variable values of {where}",
321
+ "variables variablesForServiceDeployment"
322
+ ],
323
+ [
324
+ "gqlResource",
325
+ "railway.service.secrets",
326
+ "Read the S3 credentials of a bucket in {where}",
327
+ "bucketS3Credentials bucketInstanceDetails"
328
+ ],
316
329
  ["gqlResource", "railway.service.domain", "Add a domain to {where}", "serviceDomainCreate customDomainCreate"],
317
330
  ["gqlResource", "railway.service.tcp", "Add TCP proxy to {where}", "tcpProxyCreate"],
318
331
  ["gqlResource", "railway.service.scale", "Change scale of {where}", "serviceInstanceLimitsUpdate"],
@@ -334,7 +347,7 @@ const FIELDS = [
334
347
  "gqlProject",
335
348
  "railway.project.member",
336
349
  "Add or change a member of project {project}",
337
- "projectMemberAdd projectMemberUpdate projectInvitationCreate projectInviteCodeCreate accessGroupProjectAttach"
350
+ "projectMemberAdd projectMemberUpdate projectInvitationCreate projectInviteCodeCreate projectInviteUser accessGroupProjectAttach"
338
351
  ],
339
352
  ["gqlProject", "railway.project.token", "Create a project token for {project}", "projectTokenCreate"],
340
353
  [
@@ -1,6 +1,6 @@
1
1
  import { BILLING, MAY_OUTAGE, OUTAGE, PUBLIC_DATA, RUN } from "../callEffects.generated.js";
2
2
  /**
3
- * What each Railway CLI command (5.70.0, `sources/railway/cli-tree.json`) does that no hand rule in
3
+ * What each Railway CLI command (5.77.0, `sources/railway/cli-tree.json`) does that no hand rule in
4
4
  * `railwayCapture.ts` names (docs/design/zero-unknowns.md). Drafted from the tree's own summaries on 2026-11-28 and
5
5
  * reviewed line by line; `cliTree.test.ts` fails on a pinned command with no entry. An `other` entry is the
6
6
  * project's "Other change" with these effects (kind and impact follow them), so it is named, ruled and shown
@@ -118,6 +118,14 @@ export const RAILWAY_COMMANDS = {
118
118
  "ca sleep": env("Put a cloud agent to sleep in {where}", OUTAGE),
119
119
  "ca ssh": env("Open SSH into a cloud agent in {where}", RUN),
120
120
  "ca start": env("Launch a coding agent on a cloud agent VM in {where}", RUN),
121
+ // Tasks (5.77.0): work handed to a cloud agent, which runs code and may open a VM Railway bills for.
122
+ "ca task cancel": env("Cancel a cloud agent task in {where}", RECORD_CHANGE),
123
+ "ca task list": read(SHOWS),
124
+ "ca task models": read(SHOWS),
125
+ // Answers a question or an approval the task waits on: an approval lets the agent go on to run code.
126
+ "ca task respond": env("Answer a cloud agent task in {where}", RECORD_CHANGE, { ...RUN, possible: true }),
127
+ "ca task run": env("Hand a task to a cloud agent in {where}", RUN, { ...NEW_SERVICE, possible: true }, BILLING),
128
+ "ca task status": read(SHOWS),
121
129
  "ca wake": env("Wake a cloud agent in {where}", SERVICE),
122
130
  "cdn disable": service("Turn off CDN caching for {where}", SERVICE),
123
131
  "cdn enable": service("Turn on CDN caching for {where}", SERVICE),