@kubb/studio 5.1.0 → 5.2.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.
@@ -375,30 +375,35 @@ type ConnectMessagePayload = {
375
375
  options?: object;
376
376
  }>;
377
377
  };
378
- permissions: {
379
- /**
380
- * Whether the agent writes generated files to disk. False for a sandbox agent. For a local
381
- * agent it mirrors the agent's `KUBB_AGENT_ALLOW_WRITE`.
382
- */
383
- allowWrite: boolean;
384
- /**
385
- * Whether the agent will accept and generate from an OpenAPI spec supplied by Studio.
386
- * Always true for a sandbox agent; otherwise it mirrors the agent's own opt-in. Studio reads
387
- * this to decide whether to send `input`.
388
- */
389
- allowInput: boolean;
390
- /**
391
- * Whether the agent runs the formatter, the linter, and `output.postGenerate` as child
392
- * processes after a generation. Always true for the Docker agent, where the image bounds what
393
- * can run. The CLI runs in the user's own project and defaults it off.
394
- */
395
- allowExec: boolean;
396
- /**
397
- * Whether the agent may change plugin options in the user's `kubb.config.ts`. Separate from
398
- * `allowWrite`, which covers generated output: this one edits a hand-authored source file.
399
- */
400
- allowConfigEdit: boolean;
401
- };
378
+ permissions: AgentPermissions;
379
+ };
380
+ /**
381
+ * What an agent may do in the project it serves. Every one is off unless the host granted it, and
382
+ * a sandbox session narrows them further.
383
+ */
384
+ type AgentPermissions = {
385
+ /**
386
+ * Whether the agent writes generated files to disk. False for a sandbox agent. For a local
387
+ * agent it mirrors the agent's `KUBB_AGENT_ALLOW_WRITE`.
388
+ */
389
+ allowWrite: boolean;
390
+ /**
391
+ * Whether the agent will accept and generate from an OpenAPI spec supplied by Studio.
392
+ * Always true for a sandbox agent, otherwise it mirrors the agent's own opt-in. Studio reads
393
+ * this to decide whether to send `input`.
394
+ */
395
+ allowInput: boolean;
396
+ /**
397
+ * Whether the agent runs the formatter, the linter, and `output.postGenerate` as child
398
+ * processes after a generation. Always true for the Docker agent, where the image bounds what
399
+ * can run. The CLI runs in the user's own project and defaults it off.
400
+ */
401
+ allowExec: boolean;
402
+ /**
403
+ * Whether the agent may change plugin options in the user's `kubb.config.ts`. Separate from
404
+ * `allowWrite`, which covers generated output: this one edits a hand-authored source file.
405
+ */
406
+ allowConfigEdit: boolean;
402
407
  };
403
408
  /**
404
409
  * Agent → Studio handshake. Sent when the WebSocket opens and again after a `connect` command.
@@ -558,5 +563,5 @@ declare function isDataMessage<T extends KubbHook>(msg: AgentMessage, type?: T):
558
563
  declare function isStudioPingMessage(msg: AgentMessage): msg is StudioPingMessage;
559
564
  declare function isDisconnectMessage(msg: AgentMessage): msg is StudioDisconnectMessage;
560
565
  //#endregion
561
- export { isDataMessage as A, StudioDisconnectMessage as C, StudioSaveMessage as D, StudioPingMessage as E, isStudioPingMessage as M, commandTypes as O, StudioConnectMessage as S, StudioGenerateMessage as T, JSONKubbConfig as _, AgentPingMessage as a, OptionValue as b, CommandMessage as c, ConfigFileView as d, ConfigRef as f, DataMessagePayload as g, DataMessage as h, AgentMessage as i, isDisconnectMessage as j, isCommandMessage as k, ConfigEdit as l, ConnectMessagePayload as m, AgentConnectResponse as n, AgentSaveMessage as o, ConfigView as p, AgentDisconnectMessage as r, ClientInfo as s, AgentConnectMessage as t, ConfigEditOutcome as u, KubbHook as v, StudioErrorMessage as w, PluginView as x, KubbHooks$1 as y };
562
- //# sourceMappingURL=index-BVn89Nw2.d.ts.map
566
+ export { isCommandMessage as A, StudioConnectMessage as C, StudioPingMessage as D, StudioGenerateMessage as E, isDisconnectMessage as M, isStudioPingMessage as N, StudioSaveMessage as O, PluginView as S, StudioErrorMessage as T, DataMessagePayload as _, AgentPermissions as a, KubbHooks$1 as b, ClientInfo as c, ConfigEditOutcome as d, ConfigFileView as f, DataMessage as g, ConnectMessagePayload as h, AgentMessage as i, isDataMessage as j, commandTypes as k, CommandMessage as l, ConfigView as m, AgentConnectResponse as n, AgentPingMessage as o, ConfigRef as p, AgentDisconnectMessage as r, AgentSaveMessage as s, AgentConnectMessage as t, ConfigEdit as u, JSONKubbConfig as v, StudioDisconnectMessage as w, OptionValue as x, KubbHook as y };
567
+ //# sourceMappingURL=index-Y-wkaxbL.d.ts.map