@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.
- package/dist/{index-BVn89Nw2.d.ts → index-Y-wkaxbL.d.ts} +31 -26
- package/dist/index.cjs +1365 -317
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +136 -35
- package/dist/index.js +1364 -318
- package/dist/index.js.map +1 -1
- package/dist/protocol.cjs.map +1 -1
- package/dist/protocol.d.ts +2 -2
- package/dist/protocol.js.map +1 -1
- package/package.json +8 -8
- package/dist/configFile-DjzP1_Ln.cjs +0 -575
- package/dist/configFile-DjzP1_Ln.cjs.map +0 -1
- package/dist/configFile-ZnV5tPon.js +0 -574
- package/dist/configFile-ZnV5tPon.js.map +0 -1
- package/dist/resolveConfig-B9oGiNMi.js +0 -179
- package/dist/resolveConfig-B9oGiNMi.js.map +0 -1
- package/dist/resolveConfig-Ci-BVhN_.cjs +0 -202
- package/dist/resolveConfig-Ci-BVhN_.cjs.map +0 -1
|
@@ -375,30 +375,35 @@ type ConnectMessagePayload = {
|
|
|
375
375
|
options?: object;
|
|
376
376
|
}>;
|
|
377
377
|
};
|
|
378
|
-
permissions:
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
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 {
|
|
562
|
-
//# sourceMappingURL=index-
|
|
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
|