@kubb/studio 5.3.18 → 5.3.19

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
@@ -105,7 +105,6 @@ Every permission is off by default, and each covers one trust boundary:
105
105
  | Option | What it grants |
106
106
  | ----------------- | ---------------------------------------------------------------------------------------------- |
107
107
  | `allowWrite` | Generated files are written to disk. Off means they exist only in memory and stream to Studio. |
108
- | `allowInput` | An OpenAPI spec sent by Studio replaces the one on disk. |
109
108
  | `allowExec` | The formatter, the linter, and `output.postGenerate` run as child processes. |
110
109
  | `allowConfigEdit` | Studio may change plugin options in `kubb.config.ts`. |
111
110
  | `allowRead` | Studio may read back the files a generation produced. |
package/dist/index.cjs CHANGED
@@ -375,7 +375,7 @@ function getElapsedMs(hrStart) {
375
375
  }
376
376
  //#endregion
377
377
  //#region package.json
378
- var version = "5.3.18";
378
+ var version = "5.3.19";
379
379
  //#endregion
380
380
  //#region src/operations/machine.ts
381
381
  /**
@@ -2362,7 +2362,6 @@ function applyStudioDefaults(options) {
2362
2362
  permissions: {
2363
2363
  allowWrite: false,
2364
2364
  allowConfigEdit: false,
2365
- allowInput: false,
2366
2365
  allowExec: false,
2367
2366
  allowRead: false,
2368
2367
  ...options.permissions
@@ -2498,13 +2497,6 @@ var StudioSession = class {
2498
2497
  return !this.#isSandbox && this.#options.permissions.allowConfigEdit;
2499
2498
  }
2500
2499
  /**
2501
- * A sandbox agent always generates from the spec Studio supplies. A local agent only when the
2502
- * host opted in.
2503
- */
2504
- get #canUseInput() {
2505
- return this.#isSandbox || this.#options.permissions.allowInput;
2506
- }
2507
- /**
2508
2500
  * A sandbox agent always allows reading its output back; a local agent only when opted in.
2509
2501
  */
2510
2502
  get #canRead() {
@@ -2653,7 +2645,6 @@ var StudioSession = class {
2653
2645
  permissions: {
2654
2646
  ...permissions,
2655
2647
  allowWrite: this.#canWrite,
2656
- allowInput: this.#canUseInput,
2657
2648
  allowConfigEdit: this.#canEditConfig,
2658
2649
  allowRead: this.#canRead
2659
2650
  }
@@ -2739,9 +2730,9 @@ var StudioSession = class {
2739
2730
  const patch = data.config;
2740
2731
  const plugins = await mergePlugins(config.plugins, patch?.plugins);
2741
2732
  const adapter = await mergeAdapter(config.adapter, patch?.adapter);
2742
- const inputOverride = this.#isSandbox ? patch?.input ?? "" : permissions.allowInput && patch?.input || void 0;
2733
+ const inputOverride = this.#isSandbox ? patch?.input ?? "" : void 0;
2743
2734
  if (permissions.allowWrite && this.#isSandbox) await this.#warn("Running in a sandbox, so writing files is disabled");
2744
- if (patch?.input && !this.#canUseInput) await this.#warn("Ignored the spec from Studio: generating from a Studio spec was not granted", "allowInput");
2735
+ if (patch?.input && !this.#isSandbox) await this.#warn("Ignored the spec from Studio: generating from a Studio spec is only available to a sandbox agent");
2745
2736
  const resolvedPlugins = plugins ?? config.plugins;
2746
2737
  this.#lastGeneration = void 0;
2747
2738
  const disk = await runGenerationOperation({