@opengeni/contracts 2.13.0-canary.0 → 2.13.0-canary.1
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/artifacts.d.ts +15 -13
- package/dist/atlassian.js +6 -5
- package/dist/{chunk-NPBM4QSK.js → chunk-6TCVR53X.js} +2 -2
- package/dist/{chunk-7Q6HPDY2.js → chunk-NPYLOZAP.js} +19 -19
- package/dist/chunk-QY773SDD.js +16 -0
- package/dist/chunk-QY773SDD.js.map +1 -0
- package/dist/{chunk-DPCCW6U7.js → chunk-W4CCAN7Y.js} +134 -10
- package/dist/chunk-W4CCAN7Y.js.map +1 -0
- package/dist/connection-authority.js +6 -5
- package/dist/connection-authority.js.map +1 -1
- package/dist/editable-artifact-codec-registry.js +2 -2
- package/dist/editable-artifact-live.js +2 -2
- package/dist/editable-artifact-serialized-commit.js +3 -3
- package/dist/editable-artifacts.js +33 -33
- package/dist/google-drive.js +6 -5
- package/dist/google-drive.js.map +1 -1
- package/dist/index.d.ts +385 -6
- package/dist/index.js +70 -46
- package/dist/personal-github.js +6 -5
- package/dist/personal-github.js.map +1 -1
- package/dist/session-mcp-projections.d.ts +2 -0
- package/dist/site-session-http.d.ts +3 -0
- package/dist/site-session-http.js +7 -0
- package/dist/site-session-http.js.map +1 -0
- package/package.json +5 -1
- package/src/artifacts.ts +39 -23
- package/src/index.ts +143 -1
- package/src/session-mcp-projections.ts +3 -1
- package/src/site-session-http.ts +23 -0
- package/dist/chunk-DPCCW6U7.js.map +0 -1
- /package/dist/{chunk-NPBM4QSK.js.map → chunk-6TCVR53X.js.map} +0 -0
- /package/dist/{chunk-7Q6HPDY2.js.map → chunk-NPYLOZAP.js.map} +0 -0
package/dist/artifacts.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
export declare const WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES
|
|
3
|
-
export declare const WORKSPACE_ARTIFACT_SOURCE_MAX_UTF8_BYTES
|
|
4
|
-
export declare const WORKSPACE_ARTIFACT_SOURCE_MAX_FILES
|
|
2
|
+
export declare const WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES = 5000000000;
|
|
3
|
+
export declare const WORKSPACE_ARTIFACT_SOURCE_MAX_UTF8_BYTES = 5000000000;
|
|
4
|
+
export declare const WORKSPACE_ARTIFACT_SOURCE_MAX_FILES: number;
|
|
5
5
|
export declare const WORKSPACE_ARTIFACT_REQUESTED_TOOLS_MAX = 128;
|
|
6
6
|
export declare const WORKSPACE_ARTIFACT_TITLE_MAX_CHARS = 120;
|
|
7
7
|
export declare const WORKSPACE_ARTIFACT_DESCRIPTION_MAX_CHARS = 2000;
|
|
@@ -43,7 +43,7 @@ export declare const WorkspaceArtifactVersion: z.ZodObject<{
|
|
|
43
43
|
artifactId: z.ZodString;
|
|
44
44
|
revision: z.ZodNumber;
|
|
45
45
|
contentType: z.ZodLiteral<"text/html">;
|
|
46
|
-
contentSha256: z.ZodString
|
|
46
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
47
47
|
sizeBytes: z.ZodNumber;
|
|
48
48
|
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
49
49
|
sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
@@ -77,7 +77,7 @@ export declare const WorkspaceArtifact: z.ZodObject<{
|
|
|
77
77
|
artifactId: z.ZodString;
|
|
78
78
|
revision: z.ZodNumber;
|
|
79
79
|
contentType: z.ZodLiteral<"text/html">;
|
|
80
|
-
contentSha256: z.ZodString
|
|
80
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
81
81
|
sizeBytes: z.ZodNumber;
|
|
82
82
|
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
83
83
|
sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
@@ -154,7 +154,7 @@ export declare const WorkspaceArtifactListResponse: z.ZodObject<{
|
|
|
154
154
|
artifactId: z.ZodString;
|
|
155
155
|
revision: z.ZodNumber;
|
|
156
156
|
contentType: z.ZodLiteral<"text/html">;
|
|
157
|
-
contentSha256: z.ZodString
|
|
157
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
158
158
|
sizeBytes: z.ZodNumber;
|
|
159
159
|
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
160
160
|
sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
@@ -196,7 +196,7 @@ export declare const WorkspaceArtifactDetailResponse: z.ZodObject<{
|
|
|
196
196
|
artifactId: z.ZodString;
|
|
197
197
|
revision: z.ZodNumber;
|
|
198
198
|
contentType: z.ZodLiteral<"text/html">;
|
|
199
|
-
contentSha256: z.ZodString
|
|
199
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
200
200
|
sizeBytes: z.ZodNumber;
|
|
201
201
|
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
202
202
|
sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
@@ -222,7 +222,7 @@ export declare const WorkspaceArtifactDetailResponse: z.ZodObject<{
|
|
|
222
222
|
artifactId: z.ZodString;
|
|
223
223
|
revision: z.ZodNumber;
|
|
224
224
|
contentType: z.ZodLiteral<"text/html">;
|
|
225
|
-
contentSha256: z.ZodString
|
|
225
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
226
226
|
sizeBytes: z.ZodNumber;
|
|
227
227
|
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
228
228
|
sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
@@ -267,7 +267,8 @@ export declare const CreateWorkspaceArtifactRequest: z.ZodObject<{
|
|
|
267
267
|
slug: z.ZodOptional<z.ZodString>;
|
|
268
268
|
title: z.ZodString;
|
|
269
269
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
270
|
-
html: z.ZodString
|
|
270
|
+
html: z.ZodOptional<z.ZodString>;
|
|
271
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
271
272
|
source: z.ZodOptional<z.ZodObject<{
|
|
272
273
|
entrypoint: z.ZodString;
|
|
273
274
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -285,7 +286,8 @@ export type CreateWorkspaceArtifactRequest = z.infer<typeof CreateWorkspaceArtif
|
|
|
285
286
|
export declare const PublishWorkspaceArtifactVersionRequest: z.ZodObject<{
|
|
286
287
|
title: z.ZodOptional<z.ZodString>;
|
|
287
288
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
288
|
-
html: z.ZodString
|
|
289
|
+
html: z.ZodOptional<z.ZodString>;
|
|
290
|
+
uploadId: z.ZodOptional<z.ZodString>;
|
|
289
291
|
source: z.ZodOptional<z.ZodObject<{
|
|
290
292
|
entrypoint: z.ZodString;
|
|
291
293
|
files: z.ZodArray<z.ZodObject<{
|
|
@@ -337,7 +339,7 @@ export declare const WorkspaceArtifactMutationResponse: z.ZodObject<{
|
|
|
337
339
|
artifactId: z.ZodString;
|
|
338
340
|
revision: z.ZodNumber;
|
|
339
341
|
contentType: z.ZodLiteral<"text/html">;
|
|
340
|
-
contentSha256: z.ZodString
|
|
342
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
341
343
|
sizeBytes: z.ZodNumber;
|
|
342
344
|
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
343
345
|
sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
@@ -363,7 +365,7 @@ export declare const WorkspaceArtifactMutationResponse: z.ZodObject<{
|
|
|
363
365
|
artifactId: z.ZodString;
|
|
364
366
|
revision: z.ZodNumber;
|
|
365
367
|
contentType: z.ZodLiteral<"text/html">;
|
|
366
|
-
contentSha256: z.ZodString
|
|
368
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
367
369
|
sizeBytes: z.ZodNumber;
|
|
368
370
|
sourceSha256: z.ZodNullable<z.ZodString>;
|
|
369
371
|
sourceSizeBytes: z.ZodNullable<z.ZodNumber>;
|
|
@@ -406,7 +408,7 @@ export declare const WorkspaceArtifactContentResponse: z.ZodObject<{
|
|
|
406
408
|
artifactId: z.ZodString;
|
|
407
409
|
versionId: z.ZodString;
|
|
408
410
|
contentType: z.ZodLiteral<"text/html">;
|
|
409
|
-
contentSha256: z.ZodString
|
|
411
|
+
contentSha256: z.ZodNullable<z.ZodString>;
|
|
410
412
|
html: z.ZodString;
|
|
411
413
|
source: z.ZodObject<{
|
|
412
414
|
entrypoint: z.ZodString;
|
package/dist/atlassian.js
CHANGED
|
@@ -17,26 +17,27 @@ import {
|
|
|
17
17
|
AtlassianSyncCadence,
|
|
18
18
|
SaveAtlassianSourcesRequest,
|
|
19
19
|
atlassianScopesAllowRead
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-W4CCAN7Y.js";
|
|
21
21
|
import "./chunk-YBW5JSA3.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-6TCVR53X.js";
|
|
23
23
|
import "./chunk-CM6BMECR.js";
|
|
24
24
|
import "./chunk-MRWYRAS5.js";
|
|
25
25
|
import "./chunk-3SIZGL3O.js";
|
|
26
|
+
import "./chunk-JUFK3T4Q.js";
|
|
26
27
|
import "./chunk-M5ZGRVIQ.js";
|
|
27
28
|
import "./chunk-BCS7WHCK.js";
|
|
29
|
+
import "./chunk-QY773SDD.js";
|
|
28
30
|
import "./chunk-WYBDERIY.js";
|
|
29
31
|
import "./chunk-7ABONTXE.js";
|
|
30
32
|
import "./chunk-NVJMJWLL.js";
|
|
31
33
|
import "./chunk-YRKRZ6OF.js";
|
|
32
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-NPYLOZAP.js";
|
|
35
|
+
import "./chunk-D2HKF2EF.js";
|
|
33
36
|
import "./chunk-Y3KNXVTD.js";
|
|
34
37
|
import "./chunk-TXTQIYCV.js";
|
|
35
38
|
import "./chunk-RIY7GYQS.js";
|
|
36
|
-
import "./chunk-D2HKF2EF.js";
|
|
37
39
|
import "./chunk-MYBZRDTY.js";
|
|
38
40
|
import "./chunk-PX3VCKAU.js";
|
|
39
|
-
import "./chunk-JUFK3T4Q.js";
|
|
40
41
|
export {
|
|
41
42
|
ATLASSIAN_CREDENTIAL_LABEL,
|
|
42
43
|
ATLASSIAN_CREDENTIAL_ROLE,
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-NVJMJWLL.js";
|
|
7
7
|
import {
|
|
8
8
|
editableArtifactCodecFor
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NPYLOZAP.js";
|
|
10
10
|
import {
|
|
11
11
|
DOCUMENT_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
12
12
|
DOCUMENT_ARTIFACT_MAX_STRUCTURAL_COUNTER
|
|
@@ -380,4 +380,4 @@ export {
|
|
|
380
380
|
decodeEditableArtifactSerializedCommit,
|
|
381
381
|
assertCanonicalEditableArtifactSerializedCommit
|
|
382
382
|
};
|
|
383
|
-
//# sourceMappingURL=chunk-
|
|
383
|
+
//# sourceMappingURL=chunk-6TCVR53X.js.map
|
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
|
|
3
|
+
PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
4
|
+
PRESENTATION_ARTIFACT_COMMAND_VERSION,
|
|
5
|
+
PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
|
|
6
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
|
|
7
|
+
PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
|
|
8
|
+
PRESENTATION_ARTIFACT_QUERY_VERSION,
|
|
9
|
+
assertCanonicalPresentationArtifactCommandBytes,
|
|
10
|
+
assertCanonicalPresentationArtifactQueryBytes,
|
|
11
|
+
assertCanonicalPresentationArtifactQueryResponseBytes,
|
|
12
|
+
decodePresentationArtifactCommandBatch,
|
|
13
|
+
decodePresentationArtifactQuery,
|
|
14
|
+
decodePresentationArtifactQueryResponse,
|
|
15
|
+
encodePresentationArtifactCommandBatch,
|
|
16
|
+
encodePresentationArtifactQuery,
|
|
17
|
+
encodePresentationArtifactQueryResponse
|
|
18
|
+
} from "./chunk-D2HKF2EF.js";
|
|
1
19
|
import {
|
|
2
20
|
SPREADSHEET_ARTIFACT_PROJECTION_MAX_BYTES,
|
|
3
21
|
SPREADSHEET_ARTIFACT_QUERY_MAX_BYTES,
|
|
@@ -34,24 +52,6 @@ import {
|
|
|
34
52
|
encodeDocumentArtifactQuery,
|
|
35
53
|
encodeDocumentArtifactQueryResponse
|
|
36
54
|
} from "./chunk-RIY7GYQS.js";
|
|
37
|
-
import {
|
|
38
|
-
PRESENTATION_ARTIFACT_COMMAND_MAX_BYTES,
|
|
39
|
-
PRESENTATION_ARTIFACT_COMMAND_MAX_COMMANDS,
|
|
40
|
-
PRESENTATION_ARTIFACT_COMMAND_VERSION,
|
|
41
|
-
PRESENTATION_ARTIFACT_QUERY_MAX_BYTES,
|
|
42
|
-
PRESENTATION_ARTIFACT_QUERY_RESPONSE_MAX_BYTES,
|
|
43
|
-
PRESENTATION_ARTIFACT_QUERY_RESPONSE_VERSION,
|
|
44
|
-
PRESENTATION_ARTIFACT_QUERY_VERSION,
|
|
45
|
-
assertCanonicalPresentationArtifactCommandBytes,
|
|
46
|
-
assertCanonicalPresentationArtifactQueryBytes,
|
|
47
|
-
assertCanonicalPresentationArtifactQueryResponseBytes,
|
|
48
|
-
decodePresentationArtifactCommandBatch,
|
|
49
|
-
decodePresentationArtifactQuery,
|
|
50
|
-
decodePresentationArtifactQueryResponse,
|
|
51
|
-
encodePresentationArtifactCommandBatch,
|
|
52
|
-
encodePresentationArtifactQuery,
|
|
53
|
-
encodePresentationArtifactQueryResponse
|
|
54
|
-
} from "./chunk-D2HKF2EF.js";
|
|
55
55
|
import {
|
|
56
56
|
COMMITTED_TRANSACTION_PROTOCOL_VERSION,
|
|
57
57
|
DOCUMENT_ARTIFACT_MODEL_SCHEMA_VERSION,
|
|
@@ -214,4 +214,4 @@ export {
|
|
|
214
214
|
currentEditableArtifactCompatibility,
|
|
215
215
|
editableArtifactCodecFor
|
|
216
216
|
};
|
|
217
|
-
//# sourceMappingURL=chunk-
|
|
217
|
+
//# sourceMappingURL=chunk-NPYLOZAP.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// src/site-session-http.ts
|
|
2
|
+
function siteSessionPath(path, workspaceId, method = "GET") {
|
|
3
|
+
const session = /^\/v1\/workspaces\/site-host\/(?:sessions(?:[/?]|$)|new-session-draft(?:[?]|$))/u.test(path);
|
|
4
|
+
const context = method === "GET" && (path === "/v1/config/client" || /^\/v1\/workspaces\/site-host(?:[?].*|$|\/(?:model-catalog|live-events\/stream|control-events(?:\/stream)?|interaction-events\/stream)(?:[?].*|$))/u.test(
|
|
5
|
+
path
|
|
6
|
+
));
|
|
7
|
+
if (!session && !context || /[%\\#]/u.test(path.split("?")[0]) || path.split("?")[0].split("/").some((p) => p === "." || p === "..")) {
|
|
8
|
+
throw new Error("Unsupported Site session API path");
|
|
9
|
+
}
|
|
10
|
+
return path.replace("/workspaces/site-host", `/workspaces/${encodeURIComponent(workspaceId)}`);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
siteSessionPath
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=chunk-QY773SDD.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/site-session-http.ts"],"sourcesContent":["/** The shared browser/preview session SDK surface. Tenant routing stays with\n * the host; normal API handlers remain the authorization boundary. */\nexport function siteSessionPath(path: string, workspaceId: string, method = \"GET\"): string {\n const session =\n /^\\/v1\\/workspaces\\/site-host\\/(?:sessions(?:[/?]|$)|new-session-draft(?:[?]|$))/u.test(path);\n const context =\n method === \"GET\" &&\n (path === \"/v1/config/client\" ||\n /^\\/v1\\/workspaces\\/site-host(?:[?].*|$|\\/(?:model-catalog|live-events\\/stream|control-events(?:\\/stream)?|interaction-events\\/stream)(?:[?].*|$))/u.test(\n path,\n ));\n if (\n (!session && !context) ||\n /[%\\\\#]/u.test(path.split(\"?\")[0]!) ||\n path\n .split(\"?\")[0]!\n .split(\"/\")\n .some((p) => p === \".\" || p === \"..\")\n ) {\n throw new Error(\"Unsupported Site session API path\");\n }\n return path.replace(\"/workspaces/site-host\", `/workspaces/${encodeURIComponent(workspaceId)}`);\n}\n"],"mappings":";AAEO,SAAS,gBAAgB,MAAc,aAAqB,SAAS,OAAe;AACzF,QAAM,UACJ,mFAAmF,KAAK,IAAI;AAC9F,QAAM,UACJ,WAAW,UACV,SAAS,uBACR,qJAAqJ;AAAA,IACnJ;AAAA,EACF;AACJ,MACG,CAAC,WAAW,CAAC,WACd,UAAU,KAAK,KAAK,MAAM,GAAG,EAAE,CAAC,CAAE,KAClC,KACG,MAAM,GAAG,EAAE,CAAC,EACZ,MAAM,GAAG,EACT,KAAK,CAAC,MAAM,MAAM,OAAO,MAAM,IAAI,GACtC;AACA,UAAM,IAAI,MAAM,mCAAmC;AAAA,EACrD;AACA,SAAO,KAAK,QAAQ,yBAAyB,eAAe,mBAAmB,WAAW,CAAC,EAAE;AAC/F;","names":[]}
|
|
@@ -4640,7 +4640,7 @@ function compactSessionMcpDetail(session, monitoring, queue) {
|
|
|
4640
4640
|
sequence: progress.sequence,
|
|
4641
4641
|
text: progressText.text,
|
|
4642
4642
|
occurredAt: progress.occurredAt,
|
|
4643
|
-
...progressText.truncated ? { textTruncated: true } : {}
|
|
4643
|
+
...progressText.truncated || progress.textTruncated ? { textTruncated: true } : {}
|
|
4644
4644
|
}
|
|
4645
4645
|
} : {},
|
|
4646
4646
|
...pause ? { pause } : {},
|
|
@@ -4922,9 +4922,9 @@ var AgentTopologyPageResponse = z16.object({
|
|
|
4922
4922
|
|
|
4923
4923
|
// src/artifacts.ts
|
|
4924
4924
|
import { z as z17 } from "zod";
|
|
4925
|
-
var WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES =
|
|
4926
|
-
var WORKSPACE_ARTIFACT_SOURCE_MAX_UTF8_BYTES =
|
|
4927
|
-
var WORKSPACE_ARTIFACT_SOURCE_MAX_FILES =
|
|
4925
|
+
var WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES = 5e9;
|
|
4926
|
+
var WORKSPACE_ARTIFACT_SOURCE_MAX_UTF8_BYTES = 5e9;
|
|
4927
|
+
var WORKSPACE_ARTIFACT_SOURCE_MAX_FILES = Number.MAX_SAFE_INTEGER;
|
|
4928
4928
|
var WORKSPACE_ARTIFACT_REQUESTED_TOOLS_MAX = 128;
|
|
4929
4929
|
var WORKSPACE_ARTIFACT_TITLE_MAX_CHARS = 120;
|
|
4930
4930
|
var WORKSPACE_ARTIFACT_DESCRIPTION_MAX_CHARS = 2e3;
|
|
@@ -4993,7 +4993,7 @@ var WorkspaceArtifactVersion = z17.object({
|
|
|
4993
4993
|
artifactId: z17.string().uuid(),
|
|
4994
4994
|
revision: z17.number().int().positive(),
|
|
4995
4995
|
contentType: z17.literal("text/html"),
|
|
4996
|
-
contentSha256: sha2562,
|
|
4996
|
+
contentSha256: sha2562.nullable(),
|
|
4997
4997
|
sizeBytes: z17.number().int().positive().max(WORKSPACE_ARTIFACT_HTML_MAX_UTF8_BYTES),
|
|
4998
4998
|
sourceSha256: sha2562.nullable(),
|
|
4999
4999
|
sourceSizeBytes: z17.number().int().positive().max(WORKSPACE_ARTIFACT_SOURCE_MAX_UTF8_BYTES).nullable(),
|
|
@@ -5069,19 +5069,29 @@ var CreateWorkspaceArtifactRequest = z17.object({
|
|
|
5069
5069
|
slug: WorkspaceArtifactSlug.optional(),
|
|
5070
5070
|
title: z17.string().trim().min(1).max(WORKSPACE_ARTIFACT_TITLE_MAX_CHARS),
|
|
5071
5071
|
description: z17.string().max(WORKSPACE_ARTIFACT_DESCRIPTION_MAX_CHARS).nullable().optional(),
|
|
5072
|
-
html: WorkspaceArtifactHtml,
|
|
5072
|
+
html: WorkspaceArtifactHtml.optional(),
|
|
5073
|
+
uploadId: z17.string().uuid().optional(),
|
|
5073
5074
|
source: WorkspaceArtifactSourceBundle.optional(),
|
|
5074
5075
|
requestedTools: WorkspaceArtifactRequestedTools.optional(),
|
|
5075
5076
|
idempotencyKey: z17.string().trim().min(1).max(200)
|
|
5077
|
+
}).refine((value) => value.html !== void 0 !== (value.uploadId !== void 0), {
|
|
5078
|
+
message: "Provide either html or uploadId"
|
|
5079
|
+
}).refine((value) => !value.uploadId || value.source === void 0, {
|
|
5080
|
+
message: "Upload source using the prepared source URL"
|
|
5076
5081
|
});
|
|
5077
5082
|
var PublishWorkspaceArtifactVersionRequest = z17.object({
|
|
5078
5083
|
title: z17.string().trim().min(1).max(WORKSPACE_ARTIFACT_TITLE_MAX_CHARS).optional(),
|
|
5079
5084
|
description: z17.string().max(WORKSPACE_ARTIFACT_DESCRIPTION_MAX_CHARS).nullable().optional(),
|
|
5080
|
-
html: WorkspaceArtifactHtml,
|
|
5085
|
+
html: WorkspaceArtifactHtml.optional(),
|
|
5086
|
+
uploadId: z17.string().uuid().optional(),
|
|
5081
5087
|
source: WorkspaceArtifactSourceBundle.optional(),
|
|
5082
5088
|
requestedTools: WorkspaceArtifactRequestedTools.optional(),
|
|
5083
5089
|
expectedCurrentVersionId: z17.string().uuid(),
|
|
5084
5090
|
idempotencyKey: z17.string().trim().min(1).max(200)
|
|
5091
|
+
}).refine((value) => value.html !== void 0 !== (value.uploadId !== void 0), {
|
|
5092
|
+
message: "Provide either html or uploadId"
|
|
5093
|
+
}).refine((value) => !value.uploadId || value.source === void 0, {
|
|
5094
|
+
message: "Upload source using the prepared source URL"
|
|
5085
5095
|
});
|
|
5086
5096
|
var RollbackWorkspaceArtifactRequest = z17.object({
|
|
5087
5097
|
versionId: z17.string().uuid(),
|
|
@@ -5105,7 +5115,7 @@ var WorkspaceArtifactContentResponse = z17.object({
|
|
|
5105
5115
|
artifactId: z17.string().uuid(),
|
|
5106
5116
|
versionId: z17.string().uuid(),
|
|
5107
5117
|
contentType: z17.literal("text/html"),
|
|
5108
|
-
contentSha256: sha2562,
|
|
5118
|
+
contentSha256: sha2562.nullable(),
|
|
5109
5119
|
html: WorkspaceArtifactHtml,
|
|
5110
5120
|
source: WorkspaceArtifactSourceBundle,
|
|
5111
5121
|
requestedTools: WorkspaceArtifactRequestedTools
|
|
@@ -9213,6 +9223,7 @@ var FIRST_PARTY_MCP_TOOL_NAMES = [
|
|
|
9213
9223
|
"wait_for_input",
|
|
9214
9224
|
"goal_complete",
|
|
9215
9225
|
"goal_pause",
|
|
9226
|
+
"goal_resume",
|
|
9216
9227
|
"memory_search",
|
|
9217
9228
|
"memory_save",
|
|
9218
9229
|
"memory_correct",
|
|
@@ -9251,6 +9262,7 @@ var FIRST_PARTY_MCP_TOOL_NAMES = [
|
|
|
9251
9262
|
"session_events",
|
|
9252
9263
|
"session_wait",
|
|
9253
9264
|
"command_wait",
|
|
9265
|
+
"command_read",
|
|
9254
9266
|
"session_create",
|
|
9255
9267
|
"session_send_message",
|
|
9256
9268
|
"session_pause",
|
|
@@ -9339,6 +9351,7 @@ var FIRST_PARTY_MCP_TOOL_NAMES = [
|
|
|
9339
9351
|
"atlassian_get",
|
|
9340
9352
|
"artifacts_list",
|
|
9341
9353
|
"artifacts_get_source",
|
|
9354
|
+
"artifacts_prepare_upload",
|
|
9342
9355
|
"artifacts_create",
|
|
9343
9356
|
"artifacts_publish",
|
|
9344
9357
|
"artifacts_rollback",
|
|
@@ -13300,6 +13313,8 @@ var NewSessionDraft = z32.object({
|
|
|
13300
13313
|
model: z32.string().min(1),
|
|
13301
13314
|
reasoningEffort: ReasoningEffort,
|
|
13302
13315
|
latencyMode: LatencyMode,
|
|
13316
|
+
/** Absent on legacy drafts; null is explicit provenance for the Default project. */
|
|
13317
|
+
selectedProjectChannelId: z32.string().uuid().nullable().optional(),
|
|
13303
13318
|
options: NewSessionDraftOptions,
|
|
13304
13319
|
selectionHistory: NewSessionSelectionHistory.default({ projects: [] }),
|
|
13305
13320
|
updatedAt: z32.string().nullable()
|
|
@@ -13312,6 +13327,7 @@ var SaveNewSessionDraftRequest = NewSessionDraft.pick({
|
|
|
13312
13327
|
model: true,
|
|
13313
13328
|
reasoningEffort: true,
|
|
13314
13329
|
latencyMode: true,
|
|
13330
|
+
selectedProjectChannelId: true,
|
|
13315
13331
|
options: true
|
|
13316
13332
|
}).extend({ expectedRevision: z32.number().int().nonnegative() });
|
|
13317
13333
|
var WORKSPACE_CONTROL_REASON_MAX_BYTES = 8 * 1024;
|
|
@@ -13634,6 +13650,7 @@ var SessionSystemUpdatePayload = z32.discriminatedUnion("type", [
|
|
|
13634
13650
|
state: z32.enum(["exited", "lost"]),
|
|
13635
13651
|
exitCode: z32.number().int().nullable(),
|
|
13636
13652
|
reason: boundedUtf8String2(512),
|
|
13653
|
+
failure: z32.lazy(() => SessionCommandFailure).optional(),
|
|
13637
13654
|
outputLocator: z32.object({
|
|
13638
13655
|
eventType: z32.literal("sandbox.command.output.delta"),
|
|
13639
13656
|
commandId: z32.string().uuid()
|
|
@@ -13720,7 +13737,7 @@ function renderSessionSystemUpdateBatch(updates) {
|
|
|
13720
13737
|
}
|
|
13721
13738
|
return [
|
|
13722
13739
|
"[OpenGeni internal updates]",
|
|
13723
|
-
"These platform updates were delivered together for this inference.
|
|
13740
|
+
"These platform updates were delivered together for this inference.",
|
|
13724
13741
|
JSON.stringify({
|
|
13725
13742
|
updates: updates.map((update) => ({
|
|
13726
13743
|
id: update.id,
|
|
@@ -16590,6 +16607,14 @@ var SessionBackgroundCommandActivity = z32.object({
|
|
|
16590
16607
|
state: z32.enum(["running", "stopping"]),
|
|
16591
16608
|
count: z32.number().int().positive()
|
|
16592
16609
|
}).strict();
|
|
16610
|
+
var SessionCommandFailure = z32.object({
|
|
16611
|
+
code: z32.string().regex(/^[A-Za-z0-9_-]{1,128}$/),
|
|
16612
|
+
detail: z32.record(z32.string().max(128), z32.string().max(2048)).optional(),
|
|
16613
|
+
retryable: z32.literal(false)
|
|
16614
|
+
}).refine(
|
|
16615
|
+
(failure) => Object.keys(failure.detail ?? {}).length <= 32 && new TextEncoder().encode(JSON.stringify(failure)).byteLength <= 4096,
|
|
16616
|
+
"Command failure metadata exceeds its retained bound"
|
|
16617
|
+
);
|
|
16593
16618
|
var SessionBackgroundCommand = z32.object({
|
|
16594
16619
|
id: z32.string().uuid(),
|
|
16595
16620
|
workspaceId: z32.string().uuid(),
|
|
@@ -16600,10 +16625,51 @@ var SessionBackgroundCommand = z32.object({
|
|
|
16600
16625
|
cancelRequestedAt: z32.string().nullable(),
|
|
16601
16626
|
exitCode: z32.number().int().nullable(),
|
|
16602
16627
|
settlementReason: z32.string().nullable(),
|
|
16628
|
+
failure: SessionCommandFailure.optional(),
|
|
16603
16629
|
startedAt: z32.string(),
|
|
16604
16630
|
settledAt: z32.string().nullable(),
|
|
16631
|
+
completionObservedAt: z32.string().nullable().optional(),
|
|
16605
16632
|
updatedAt: z32.string()
|
|
16606
16633
|
}).strict();
|
|
16634
|
+
var CommandReadInput = /* @__PURE__ */ (() => z32.object({
|
|
16635
|
+
commandId: z32.string().uuid(),
|
|
16636
|
+
cursor: z32.string().max(128).optional(),
|
|
16637
|
+
waitSeconds: z32.number().int().min(0).max(50).optional(),
|
|
16638
|
+
maxOutputBytes: z32.number().int().min(4).max(65536).optional()
|
|
16639
|
+
}).strict())();
|
|
16640
|
+
var CommandReadResult = /* @__PURE__ */ (() => z32.object({
|
|
16641
|
+
commandId: z32.string().uuid(),
|
|
16642
|
+
state: SessionBackgroundCommandState,
|
|
16643
|
+
exitCode: z32.number().int().nullable(),
|
|
16644
|
+
settlementReason: z32.string().nullable().optional(),
|
|
16645
|
+
// A physical zero exit is not success when runner output delivery failed.
|
|
16646
|
+
failure: SessionCommandFailure.optional(),
|
|
16647
|
+
terminal: z32.boolean(),
|
|
16648
|
+
completionObservedAt: z32.string().nullable(),
|
|
16649
|
+
freshness: z32.object({
|
|
16650
|
+
status: z32.literal("refresh_unavailable"),
|
|
16651
|
+
retryable: z32.literal(true)
|
|
16652
|
+
}).optional(),
|
|
16653
|
+
chunks: z32.array(
|
|
16654
|
+
z32.object({
|
|
16655
|
+
sequence: z32.number().int().nonnegative(),
|
|
16656
|
+
stream: z32.enum(["stdout", "stderr"]),
|
|
16657
|
+
streamFidelity: z32.enum(["separate", "merged", "unknown"]),
|
|
16658
|
+
chunk: z32.string()
|
|
16659
|
+
})
|
|
16660
|
+
).max(64),
|
|
16661
|
+
nextCursor: z32.string(),
|
|
16662
|
+
hasMore: z32.boolean(),
|
|
16663
|
+
retention: z32.object({
|
|
16664
|
+
source: z32.literal("retained_session_events"),
|
|
16665
|
+
completeness: z32.literal("unknown"),
|
|
16666
|
+
gaps: z32.array(z32.string())
|
|
16667
|
+
}),
|
|
16668
|
+
waitedMs: z32.number().nonnegative(),
|
|
16669
|
+
timedOut: z32.boolean(),
|
|
16670
|
+
aborted: z32.boolean(),
|
|
16671
|
+
liveFanout: z32.boolean()
|
|
16672
|
+
}).strict())();
|
|
16607
16673
|
var SessionBackgroundCommandListResponse = z32.object({ commands: z32.array(SessionBackgroundCommand).max(1e3) }).strict();
|
|
16608
16674
|
var CancelSessionBackgroundCommandResult = z32.object({ command: SessionBackgroundCommand, accepted: z32.boolean() }).strict();
|
|
16609
16675
|
var Session = z32.object({
|
|
@@ -16613,6 +16679,8 @@ var Session = z32.object({
|
|
|
16613
16679
|
status: SessionStatus,
|
|
16614
16680
|
/** Additive list projection. Detail reads may omit it. */
|
|
16615
16681
|
backgroundCommandActivity: SessionBackgroundCommandActivity.optional(),
|
|
16682
|
+
/** Current non-deleted schedules targeting this session, including paused schedules. */
|
|
16683
|
+
hasSchedules: z32.boolean().optional(),
|
|
16616
16684
|
initialMessage: z32.string(),
|
|
16617
16685
|
title: z32.string().nullable(),
|
|
16618
16686
|
titleSource: z32.enum(["user", "agent"]).nullable(),
|
|
@@ -16793,6 +16861,8 @@ var LineageNode = z32.lazy(
|
|
|
16793
16861
|
})
|
|
16794
16862
|
);
|
|
16795
16863
|
var SessionLineageResponse = z32.object({
|
|
16864
|
+
/** Current schedule relationship for the requested session. */
|
|
16865
|
+
sessionHasSchedules: z32.boolean().optional(),
|
|
16796
16866
|
ancestors: z32.array(Session),
|
|
16797
16867
|
children: z32.array(LineageNode),
|
|
16798
16868
|
truncated: z32.boolean().default(false)
|
|
@@ -18929,6 +18999,50 @@ var GitHubAppInfo = z32.object({
|
|
|
18929
18999
|
var GitHubRepositoriesResponse = z32.object({
|
|
18930
19000
|
repositories: z32.array(GitHubRepository)
|
|
18931
19001
|
});
|
|
19002
|
+
var GitHubActionPolicyDecision = z32.enum(["allow", "ask", "block"]);
|
|
19003
|
+
var GitHubActionPolicyEffectiveDecision = z32.enum([
|
|
19004
|
+
...GitHubActionPolicyDecision.options,
|
|
19005
|
+
"mixed"
|
|
19006
|
+
]);
|
|
19007
|
+
var GitHubActionPolicyGroup = z32.enum(["routine", "review", "merge"]);
|
|
19008
|
+
var GitHubActionPolicyActor = z32.discriminatedUnion("kind", [
|
|
19009
|
+
z32.object({
|
|
19010
|
+
kind: z32.literal("workspace_app"),
|
|
19011
|
+
installationId: z32.number().int().positive()
|
|
19012
|
+
}),
|
|
19013
|
+
z32.object({
|
|
19014
|
+
kind: z32.literal("personal"),
|
|
19015
|
+
connectionId: z32.string().trim().min(1).max(512)
|
|
19016
|
+
})
|
|
19017
|
+
]);
|
|
19018
|
+
var GitHubActionPolicyGroups = z32.object({
|
|
19019
|
+
routine: GitHubActionPolicyEffectiveDecision,
|
|
19020
|
+
review: GitHubActionPolicyEffectiveDecision,
|
|
19021
|
+
merge: GitHubActionPolicyEffectiveDecision
|
|
19022
|
+
});
|
|
19023
|
+
var GitHubActionPolicyActorState = z32.discriminatedUnion("kind", [
|
|
19024
|
+
z32.object({
|
|
19025
|
+
kind: z32.literal("workspace_app"),
|
|
19026
|
+
installationId: z32.number().int().positive(),
|
|
19027
|
+
label: z32.string().min(1).max(256),
|
|
19028
|
+
groups: GitHubActionPolicyGroups
|
|
19029
|
+
}),
|
|
19030
|
+
z32.object({
|
|
19031
|
+
kind: z32.literal("personal"),
|
|
19032
|
+
connectionId: z32.string().trim().min(1).max(512),
|
|
19033
|
+
label: z32.string().min(1).max(256),
|
|
19034
|
+
groups: GitHubActionPolicyGroups
|
|
19035
|
+
})
|
|
19036
|
+
]);
|
|
19037
|
+
var GitHubActionPoliciesResponse = z32.object({
|
|
19038
|
+
enabled: z32.boolean(),
|
|
19039
|
+
actors: z32.array(GitHubActionPolicyActorState).max(128)
|
|
19040
|
+
});
|
|
19041
|
+
var UpdateGitHubActionPolicyRequest = z32.object({
|
|
19042
|
+
actor: GitHubActionPolicyActor,
|
|
19043
|
+
group: GitHubActionPolicyGroup,
|
|
19044
|
+
decision: GitHubActionPolicyDecision
|
|
19045
|
+
});
|
|
18932
19046
|
var ClientAuthConfig = z32.discriminatedUnion("mode", [
|
|
18933
19047
|
z32.object({
|
|
18934
19048
|
mode: z32.literal("none")
|
|
@@ -21648,7 +21762,10 @@ export {
|
|
|
21648
21762
|
SessionBackgroundCommandState,
|
|
21649
21763
|
SessionBackgroundCommandProvider,
|
|
21650
21764
|
SessionBackgroundCommandActivity,
|
|
21765
|
+
SessionCommandFailure,
|
|
21651
21766
|
SessionBackgroundCommand,
|
|
21767
|
+
CommandReadInput,
|
|
21768
|
+
CommandReadResult,
|
|
21652
21769
|
SessionBackgroundCommandListResponse,
|
|
21653
21770
|
CancelSessionBackgroundCommandResult,
|
|
21654
21771
|
Session,
|
|
@@ -21792,6 +21909,13 @@ export {
|
|
|
21792
21909
|
GitHubInstallationBinding,
|
|
21793
21910
|
GitHubAppInfo,
|
|
21794
21911
|
GitHubRepositoriesResponse,
|
|
21912
|
+
GitHubActionPolicyDecision,
|
|
21913
|
+
GitHubActionPolicyEffectiveDecision,
|
|
21914
|
+
GitHubActionPolicyGroup,
|
|
21915
|
+
GitHubActionPolicyActor,
|
|
21916
|
+
GitHubActionPolicyActorState,
|
|
21917
|
+
GitHubActionPoliciesResponse,
|
|
21918
|
+
UpdateGitHubActionPolicyRequest,
|
|
21795
21919
|
ClientAuthConfig,
|
|
21796
21920
|
CapabilityUnavailableReason,
|
|
21797
21921
|
SessionCapabilities,
|
|
@@ -21872,4 +21996,4 @@ export {
|
|
|
21872
21996
|
ClientConfig,
|
|
21873
21997
|
evaluateWorkspaceModelPolicy
|
|
21874
21998
|
};
|
|
21875
|
-
//# sourceMappingURL=chunk-
|
|
21999
|
+
//# sourceMappingURL=chunk-W4CCAN7Y.js.map
|