@saptools/bruno 0.2.5 โ†’ 0.2.6

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.
package/README.md CHANGED
@@ -46,7 +46,7 @@ You just ran Bruno against a production-grade XSUAA-protected service **without
46
46
  - ๐Ÿ“ฆ **Bundled Bruno CLI fallback** โ€” if `bru` is already on your `PATH`, `saptools-bruno` uses it. If not, it falls back to the bundled [`@usebruno/cli`](https://www.npmjs.com/package/@usebruno/cli).
47
47
  - ๐ŸŽฏ **Default context** โ€” `saptools-bruno use <shorthand>` pins a target so subsequent `run` calls need zero arguments. Feels like `cf target` for Bruno.
48
48
  - ๐Ÿงฉ **CLI & typed API** โ€” every command has a zero-config Node.js equivalent. Full TypeScript definitions shipped. Bring your own prompts for headless/CI use.
49
- - ๐Ÿงช **Fully tested** โ€” 77 unit tests + 7 offline e2e tests (stub `bru` binary + fixture CF snapshot). No network required in CI.
49
+ - ๐Ÿงช **Fully tested** โ€” 81 unit tests + 7 offline e2e tests (stub `bru` binary + fixture CF snapshot). No network required in CI.
50
50
  - ๐Ÿชถ **Small + boring** โ€” three runtime deps, no background daemons, no plugin system, no magic.
51
51
 
52
52
  ---
@@ -159,7 +159,7 @@ Your `.bru` requests reference `{{accessToken}}` like any other Bruno variable
159
159
 
160
160
  ### ๐Ÿ—๏ธ `saptools-bruno setup-app`
161
161
 
162
- Interactively scaffold a Bruno app folder inside the current Bruno collection directory. Walks you through **region โ†’ org โ†’ space โ†’ app**, then lets you **pick which environments to create** and optionally **enter a custom env name**.
162
+ Interactively scaffold a Bruno app folder inside the current Bruno collection directory. Walks you through **region โ†’ org โ†’ space โ†’ app**, then lets you **pick which environments to create** and add custom names without leaving the environment picker.
163
163
 
164
164
  ```bash
165
165
  saptools-bruno setup-app
@@ -176,7 +176,7 @@ saptools-bruno --collection ./collections setup-app
176
176
  - Existing env files are preserved; only missing `__cf_*` vars are patched back in
177
177
 
178
178
  > [!TIP]
179
- > The env prompt shows the common names (`local`, `dev`, `staging`, `prod`) plus any envs already on disk. Pre-existing envs are **pre-checked**; common ones are **not** โ€” so you only create what you actually need. The custom-name field accepts `[A-Za-z0-9._-]+` for values like `qa-eu` or `uat.us`.
179
+ > The env prompt shows the common names (`local`, `dev`, `staging`, `prod`) plus any envs already on disk. Pre-existing envs are **pre-checked**; common ones are **not** โ€” so you only create what you actually need. The menu also includes **Add custom environment**, and once you enter a value like `qa-eu` or `uat.us`, it appears back in the same checklist already selected so you can review the full set before finishing.
180
180
 
181
181
  ### โ–ถ๏ธ `saptools-bruno run`
182
182
 
@@ -241,8 +241,7 @@ const result = await setupApp({
241
241
  selectSpace: async (choices) => choices[0]!.value,
242
242
  selectApp: async (choices) => choices[0]!.value,
243
243
  confirmCreate: async () => true,
244
- selectEnvironments: async ({ common }) => [...common],
245
- inputCustomEnvName: async () => null,
244
+ selectEnvironments: async ({ common }) => [...common, "qa-eu"],
246
245
  },
247
246
  });
248
247
  console.log(`Created ${result.environments.length} env files at ${result.appPath}`);
@@ -388,7 +387,7 @@ Only when you add a new app folder. `setup-app` on an existing app is idempotent
388
387
  <details>
389
388
  <summary><b>How do I add an env that isn't <code>local</code> / <code>dev</code> / <code>staging</code> / <code>prod</code>?</b></summary>
390
389
 
391
- After the checkbox prompt you'll see a **Custom environment name** field. Type any `[A-Za-z0-9._-]+` name (for example `qa-eu` or `uat.us`) and it gets scaffolded alongside the common ones.
390
+ Choose **Add custom environment** inside the checkbox list. After you type any `[A-Za-z0-9._-]+` name (for example `qa-eu` or `uat.us`), the prompt returns to the same checklist with that new environment already selected.
392
391
 
393
392
  </details>
394
393