@kubb/studio 5.11.6 → 5.12.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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/{protocol-dCzUP4dH.d.cts → protocol-Dn1jdnFB.d.cts} +19 -19
- package/dist/{protocol-dCzUP4dH.d.ts → protocol-Dn1jdnFB.d.ts} +19 -19
- package/dist/protocol.d.cts +1 -1
- package/dist/protocol.d.ts +1 -1
- package/package.json +4 -4
|
@@ -474,25 +474,25 @@ type ReadInputResult = {
|
|
|
474
474
|
* Why the agent refuses a request. Studio matches on these to answer with the right status.
|
|
475
475
|
*/
|
|
476
476
|
declare const AgentMessage: {
|
|
477
|
-
readonly GENERATION_IN_PROGRESS:
|
|
478
|
-
readonly SANDBOX_INPUT_ONLY:
|
|
479
|
-
readonly CONFIG_ENTRY_NOT_FOUND:
|
|
480
|
-
readonly JOB_REQUIRED:
|
|
481
|
-
readonly FILE_REQUEST_INVALID:
|
|
482
|
-
readonly TOO_MANY_FILES:
|
|
483
|
-
readonly INVALID_PAGE:
|
|
484
|
-
readonly DIFF_REQUEST_INVALID:
|
|
485
|
-
readonly HASHES_ONLY:
|
|
477
|
+
readonly GENERATION_IN_PROGRESS: 'A generation is already in progress, please wait for it to finish';
|
|
478
|
+
readonly SANDBOX_INPUT_ONLY: 'A sandbox agent generates only from the OpenAPI document content Studio sends, not from a file path or URL';
|
|
479
|
+
readonly CONFIG_ENTRY_NOT_FOUND: 'The config file has no entry at that position or with that name';
|
|
480
|
+
readonly JOB_REQUIRED: 'The request must name a job';
|
|
481
|
+
readonly FILE_REQUEST_INVALID: 'The request must name an output set and carry paths';
|
|
482
|
+
readonly TOO_MANY_FILES: 'Too many paths were requested at once';
|
|
483
|
+
readonly INVALID_PAGE: 'The requested file page is invalid';
|
|
484
|
+
readonly DIFF_REQUEST_INVALID: 'The request must name a job, a base, and a path';
|
|
485
|
+
readonly HASHES_ONLY: 'This agent kept only the hashes of that job';
|
|
486
486
|
/**
|
|
487
487
|
* A read for a job whose files the agent no longer keeps.
|
|
488
488
|
*/
|
|
489
|
-
readonly GENERATION_GONE:
|
|
490
|
-
readonly READ_NOT_ALLOWED:
|
|
489
|
+
readonly GENERATION_GONE: 'The files of this generation are no longer kept on the agent, run the generation again';
|
|
490
|
+
readonly READ_NOT_ALLOWED: 'The agent was not granted permission to read generated files';
|
|
491
491
|
/**
|
|
492
492
|
* Reading the parsed spec is its own permission.
|
|
493
493
|
*/
|
|
494
|
-
readonly READ_AST_NOT_ALLOWED:
|
|
495
|
-
readonly NO_INPUT:
|
|
494
|
+
readonly READ_AST_NOT_ALLOWED: 'The agent was not granted permission to read the parsed spec';
|
|
495
|
+
readonly NO_INPUT: 'This job kept no API input';
|
|
496
496
|
};
|
|
497
497
|
type AgentMessage = (typeof AgentMessage)[keyof typeof AgentMessage];
|
|
498
498
|
/**
|
|
@@ -691,11 +691,11 @@ type AgentPermissions = {
|
|
|
691
691
|
* The keys of {@link AgentPermissions}, such as the permission a refused request names.
|
|
692
692
|
*/
|
|
693
693
|
declare const AgentPermission: {
|
|
694
|
-
readonly READ:
|
|
695
|
-
readonly READ_AST:
|
|
696
|
-
readonly WRITE:
|
|
697
|
-
readonly CONFIG_EDIT:
|
|
698
|
-
readonly EXEC:
|
|
694
|
+
readonly READ: 'allowRead';
|
|
695
|
+
readonly READ_AST: 'allowReadAst';
|
|
696
|
+
readonly WRITE: 'allowWrite';
|
|
697
|
+
readonly CONFIG_EDIT: 'allowConfigEdit';
|
|
698
|
+
readonly EXEC: 'allowExec';
|
|
699
699
|
};
|
|
700
700
|
type AgentPermission = (typeof AgentPermission)[keyof typeof AgentPermission];
|
|
701
701
|
/**
|
|
@@ -787,4 +787,4 @@ type PublishedSnapshot = {
|
|
|
787
787
|
};
|
|
788
788
|
//#endregion
|
|
789
789
|
export { MAX_FILES_PER_REQUEST as A, ReadInputInput as B, GenerateResult as C, GenerationRun as D, GenerationEventType as E, PublishedSnapshot as F, SnapshotUploadMetadata as G, SaveConfigInput as H, ReadDiffInput as I, StudioApi as K, ReadDiffResult as L, MAX_SNAPSHOT_BYTES as M, OptionValue as N, InstalledExtensions as O, PluginView as P, ReadFilesInput as R, GenerateInput as S, GenerationEventPayloads as T, SaveResult as U, ReadInputResult as V, SnapshotChanges as W, DiffHunk as _, AgentConnectInfo as a, ExtensionEntry as b, AgentPermissions as c, ConfigEditOutcome as d, ConfigEntryView as f, ConnectMessagePayload as g, ConfigView as h, AgentCloseCode as i, MAX_PAGE_LINES as j, JSONKubbConfig as k, BranchSnapshotChanges as l, ConfigRef as m, AGENT_SOCKET_PATH as n, AgentMessage as o, ConfigFileView as p, generationEventTypes as q, AgentApi as r, AgentPermission as s, AGENT_INSTANCE_HEADER as t, ConfigEdit as u, DiffStats as v, GenerationEvent as w, FilePage as x, DiskOutput as y, ReadFilesResult as z };
|
|
790
|
-
//# sourceMappingURL=protocol-
|
|
790
|
+
//# sourceMappingURL=protocol-Dn1jdnFB.d.cts.map
|
|
@@ -474,25 +474,25 @@ type ReadInputResult = {
|
|
|
474
474
|
* Why the agent refuses a request. Studio matches on these to answer with the right status.
|
|
475
475
|
*/
|
|
476
476
|
declare const AgentMessage: {
|
|
477
|
-
readonly GENERATION_IN_PROGRESS:
|
|
478
|
-
readonly SANDBOX_INPUT_ONLY:
|
|
479
|
-
readonly CONFIG_ENTRY_NOT_FOUND:
|
|
480
|
-
readonly JOB_REQUIRED:
|
|
481
|
-
readonly FILE_REQUEST_INVALID:
|
|
482
|
-
readonly TOO_MANY_FILES:
|
|
483
|
-
readonly INVALID_PAGE:
|
|
484
|
-
readonly DIFF_REQUEST_INVALID:
|
|
485
|
-
readonly HASHES_ONLY:
|
|
477
|
+
readonly GENERATION_IN_PROGRESS: 'A generation is already in progress, please wait for it to finish';
|
|
478
|
+
readonly SANDBOX_INPUT_ONLY: 'A sandbox agent generates only from the OpenAPI document content Studio sends, not from a file path or URL';
|
|
479
|
+
readonly CONFIG_ENTRY_NOT_FOUND: 'The config file has no entry at that position or with that name';
|
|
480
|
+
readonly JOB_REQUIRED: 'The request must name a job';
|
|
481
|
+
readonly FILE_REQUEST_INVALID: 'The request must name an output set and carry paths';
|
|
482
|
+
readonly TOO_MANY_FILES: 'Too many paths were requested at once';
|
|
483
|
+
readonly INVALID_PAGE: 'The requested file page is invalid';
|
|
484
|
+
readonly DIFF_REQUEST_INVALID: 'The request must name a job, a base, and a path';
|
|
485
|
+
readonly HASHES_ONLY: 'This agent kept only the hashes of that job';
|
|
486
486
|
/**
|
|
487
487
|
* A read for a job whose files the agent no longer keeps.
|
|
488
488
|
*/
|
|
489
|
-
readonly GENERATION_GONE:
|
|
490
|
-
readonly READ_NOT_ALLOWED:
|
|
489
|
+
readonly GENERATION_GONE: 'The files of this generation are no longer kept on the agent, run the generation again';
|
|
490
|
+
readonly READ_NOT_ALLOWED: 'The agent was not granted permission to read generated files';
|
|
491
491
|
/**
|
|
492
492
|
* Reading the parsed spec is its own permission.
|
|
493
493
|
*/
|
|
494
|
-
readonly READ_AST_NOT_ALLOWED:
|
|
495
|
-
readonly NO_INPUT:
|
|
494
|
+
readonly READ_AST_NOT_ALLOWED: 'The agent was not granted permission to read the parsed spec';
|
|
495
|
+
readonly NO_INPUT: 'This job kept no API input';
|
|
496
496
|
};
|
|
497
497
|
type AgentMessage = (typeof AgentMessage)[keyof typeof AgentMessage];
|
|
498
498
|
/**
|
|
@@ -691,11 +691,11 @@ type AgentPermissions = {
|
|
|
691
691
|
* The keys of {@link AgentPermissions}, such as the permission a refused request names.
|
|
692
692
|
*/
|
|
693
693
|
declare const AgentPermission: {
|
|
694
|
-
readonly READ:
|
|
695
|
-
readonly READ_AST:
|
|
696
|
-
readonly WRITE:
|
|
697
|
-
readonly CONFIG_EDIT:
|
|
698
|
-
readonly EXEC:
|
|
694
|
+
readonly READ: 'allowRead';
|
|
695
|
+
readonly READ_AST: 'allowReadAst';
|
|
696
|
+
readonly WRITE: 'allowWrite';
|
|
697
|
+
readonly CONFIG_EDIT: 'allowConfigEdit';
|
|
698
|
+
readonly EXEC: 'allowExec';
|
|
699
699
|
};
|
|
700
700
|
type AgentPermission = (typeof AgentPermission)[keyof typeof AgentPermission];
|
|
701
701
|
/**
|
|
@@ -787,4 +787,4 @@ type PublishedSnapshot = {
|
|
|
787
787
|
};
|
|
788
788
|
//#endregion
|
|
789
789
|
export { MAX_FILES_PER_REQUEST as A, ReadInputInput as B, GenerateResult as C, GenerationRun as D, GenerationEventType as E, PublishedSnapshot as F, SnapshotUploadMetadata as G, SaveConfigInput as H, ReadDiffInput as I, StudioApi as K, ReadDiffResult as L, MAX_SNAPSHOT_BYTES as M, OptionValue as N, InstalledExtensions as O, PluginView as P, ReadFilesInput as R, GenerateInput as S, GenerationEventPayloads as T, SaveResult as U, ReadInputResult as V, SnapshotChanges as W, DiffHunk as _, AgentConnectInfo as a, ExtensionEntry as b, AgentPermissions as c, ConfigEditOutcome as d, ConfigEntryView as f, ConnectMessagePayload as g, ConfigView as h, AgentCloseCode as i, MAX_PAGE_LINES as j, JSONKubbConfig as k, BranchSnapshotChanges as l, ConfigRef as m, AGENT_SOCKET_PATH as n, AgentMessage as o, ConfigFileView as p, generationEventTypes as q, AgentApi as r, AgentPermission as s, AGENT_INSTANCE_HEADER as t, ConfigEdit as u, DiffStats as v, GenerationEvent as w, FilePage as x, DiskOutput as y, ReadFilesResult as z };
|
|
790
|
-
//# sourceMappingURL=protocol-
|
|
790
|
+
//# sourceMappingURL=protocol-Dn1jdnFB.d.ts.map
|
package/dist/protocol.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MAX_FILES_PER_REQUEST, B as ReadInputInput, C as GenerateResult, D as GenerationRun, E as GenerationEventType, F as PublishedSnapshot, G as SnapshotUploadMetadata, H as SaveConfigInput, I as ReadDiffInput, K as StudioApi, L as ReadDiffResult, M as MAX_SNAPSHOT_BYTES, N as OptionValue, O as InstalledExtensions, P as PluginView, R as ReadFilesInput, S as GenerateInput, T as GenerationEventPayloads, U as SaveResult, V as ReadInputResult, W as SnapshotChanges, _ as DiffHunk, a as AgentConnectInfo, b as ExtensionEntry, c as AgentPermissions, d as ConfigEditOutcome, f as ConfigEntryView, g as ConnectMessagePayload, h as ConfigView, i as AgentCloseCode, j as MAX_PAGE_LINES, k as JSONKubbConfig, l as BranchSnapshotChanges, m as ConfigRef, n as AGENT_SOCKET_PATH, o as AgentMessage, p as ConfigFileView, q as generationEventTypes, r as AgentApi, s as AgentPermission, t as AGENT_INSTANCE_HEADER, u as ConfigEdit, v as DiffStats, w as GenerationEvent, x as FilePage, y as DiskOutput, z as ReadFilesResult } from "./protocol-
|
|
1
|
+
import { A as MAX_FILES_PER_REQUEST, B as ReadInputInput, C as GenerateResult, D as GenerationRun, E as GenerationEventType, F as PublishedSnapshot, G as SnapshotUploadMetadata, H as SaveConfigInput, I as ReadDiffInput, K as StudioApi, L as ReadDiffResult, M as MAX_SNAPSHOT_BYTES, N as OptionValue, O as InstalledExtensions, P as PluginView, R as ReadFilesInput, S as GenerateInput, T as GenerationEventPayloads, U as SaveResult, V as ReadInputResult, W as SnapshotChanges, _ as DiffHunk, a as AgentConnectInfo, b as ExtensionEntry, c as AgentPermissions, d as ConfigEditOutcome, f as ConfigEntryView, g as ConnectMessagePayload, h as ConfigView, i as AgentCloseCode, j as MAX_PAGE_LINES, k as JSONKubbConfig, l as BranchSnapshotChanges, m as ConfigRef, n as AGENT_SOCKET_PATH, o as AgentMessage, p as ConfigFileView, q as generationEventTypes, r as AgentApi, s as AgentPermission, t as AGENT_INSTANCE_HEADER, u as ConfigEdit, v as DiffStats, w as GenerationEvent, x as FilePage, y as DiskOutput, z as ReadFilesResult } from "./protocol-Dn1jdnFB.cjs";
|
|
2
2
|
export { AGENT_INSTANCE_HEADER, AGENT_SOCKET_PATH, AgentApi, AgentCloseCode, AgentConnectInfo, AgentMessage, AgentPermission, AgentPermissions, BranchSnapshotChanges, ConfigEdit, ConfigEditOutcome, ConfigEntryView, ConfigFileView, ConfigRef, ConfigView, ConnectMessagePayload, DiffHunk, DiffStats, DiskOutput, ExtensionEntry, FilePage, GenerateInput, GenerateResult, GenerationEvent, GenerationEventPayloads, GenerationEventType, GenerationRun, InstalledExtensions, JSONKubbConfig, MAX_FILES_PER_REQUEST, MAX_PAGE_LINES, MAX_SNAPSHOT_BYTES, OptionValue, PluginView, PublishedSnapshot, ReadDiffInput, ReadDiffResult, ReadFilesInput, ReadFilesResult, ReadInputInput, ReadInputResult, SaveConfigInput, SaveResult, SnapshotChanges, SnapshotUploadMetadata, StudioApi, generationEventTypes };
|
package/dist/protocol.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as MAX_FILES_PER_REQUEST, B as ReadInputInput, C as GenerateResult, D as GenerationRun, E as GenerationEventType, F as PublishedSnapshot, G as SnapshotUploadMetadata, H as SaveConfigInput, I as ReadDiffInput, K as StudioApi, L as ReadDiffResult, M as MAX_SNAPSHOT_BYTES, N as OptionValue, O as InstalledExtensions, P as PluginView, R as ReadFilesInput, S as GenerateInput, T as GenerationEventPayloads, U as SaveResult, V as ReadInputResult, W as SnapshotChanges, _ as DiffHunk, a as AgentConnectInfo, b as ExtensionEntry, c as AgentPermissions, d as ConfigEditOutcome, f as ConfigEntryView, g as ConnectMessagePayload, h as ConfigView, i as AgentCloseCode, j as MAX_PAGE_LINES, k as JSONKubbConfig, l as BranchSnapshotChanges, m as ConfigRef, n as AGENT_SOCKET_PATH, o as AgentMessage, p as ConfigFileView, q as generationEventTypes, r as AgentApi, s as AgentPermission, t as AGENT_INSTANCE_HEADER, u as ConfigEdit, v as DiffStats, w as GenerationEvent, x as FilePage, y as DiskOutput, z as ReadFilesResult } from "./protocol-
|
|
1
|
+
import { A as MAX_FILES_PER_REQUEST, B as ReadInputInput, C as GenerateResult, D as GenerationRun, E as GenerationEventType, F as PublishedSnapshot, G as SnapshotUploadMetadata, H as SaveConfigInput, I as ReadDiffInput, K as StudioApi, L as ReadDiffResult, M as MAX_SNAPSHOT_BYTES, N as OptionValue, O as InstalledExtensions, P as PluginView, R as ReadFilesInput, S as GenerateInput, T as GenerationEventPayloads, U as SaveResult, V as ReadInputResult, W as SnapshotChanges, _ as DiffHunk, a as AgentConnectInfo, b as ExtensionEntry, c as AgentPermissions, d as ConfigEditOutcome, f as ConfigEntryView, g as ConnectMessagePayload, h as ConfigView, i as AgentCloseCode, j as MAX_PAGE_LINES, k as JSONKubbConfig, l as BranchSnapshotChanges, m as ConfigRef, n as AGENT_SOCKET_PATH, o as AgentMessage, p as ConfigFileView, q as generationEventTypes, r as AgentApi, s as AgentPermission, t as AGENT_INSTANCE_HEADER, u as ConfigEdit, v as DiffStats, w as GenerationEvent, x as FilePage, y as DiskOutput, z as ReadFilesResult } from "./protocol-Dn1jdnFB.js";
|
|
2
2
|
export { AGENT_INSTANCE_HEADER, AGENT_SOCKET_PATH, AgentApi, AgentCloseCode, AgentConnectInfo, AgentMessage, AgentPermission, AgentPermissions, BranchSnapshotChanges, ConfigEdit, ConfigEditOutcome, ConfigEntryView, ConfigFileView, ConfigRef, ConfigView, ConnectMessagePayload, DiffHunk, DiffStats, DiskOutput, ExtensionEntry, FilePage, GenerateInput, GenerateResult, GenerationEvent, GenerationEventPayloads, GenerationEventType, GenerationRun, InstalledExtensions, JSONKubbConfig, MAX_FILES_PER_REQUEST, MAX_PAGE_LINES, MAX_SNAPSHOT_BYTES, OptionValue, PluginView, PublishedSnapshot, ReadDiffInput, ReadDiffResult, ReadFilesInput, ReadFilesResult, ReadInputInput, ReadInputResult, SaveConfigInput, SaveResult, SnapshotChanges, SnapshotUploadMetadata, StudioApi, generationEventTypes };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kubb/studio",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.12.0",
|
|
4
4
|
"description": "Kubb Studio client runtime. Connects a Kubb project to Kubb Studio over one WebSocket and publishes CI snapshots, shared by the `kubb studio` CLI command and the Docker agent.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agent",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org/"
|
|
80
80
|
},
|
|
81
81
|
"dependencies": {
|
|
82
|
-
"@kubb/ast": "5.
|
|
83
|
-
"@kubb/core": "5.
|
|
82
|
+
"@kubb/ast": "5.12.0",
|
|
83
|
+
"@kubb/core": "5.12.0",
|
|
84
84
|
"capnweb": "^0.12.0",
|
|
85
85
|
"diff": "^9.0.0",
|
|
86
86
|
"magicast": "^0.5.5",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
91
|
"@internals/utils": "0.0.1",
|
|
92
|
-
"@kubb/adapter-oas": "5.
|
|
92
|
+
"@kubb/adapter-oas": "5.12.0"
|
|
93
93
|
},
|
|
94
94
|
"engines": {
|
|
95
95
|
"node": ">=22.12"
|