@opengeni/contracts 3.0.1-canary.0 → 3.0.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/atlassian.js +1 -1
- package/dist/{chunk-FBXZZSXA.js → chunk-EHHDZLGY.js} +4 -32
- package/dist/chunk-EHHDZLGY.js.map +1 -0
- package/dist/{chunk-FY5DZL7T.js → chunk-IRR7CBBW.js} +2 -2
- package/dist/connect.js +1 -1
- package/dist/connection-authority.js +2 -2
- package/dist/google-drive.js +1 -1
- package/dist/host-mcp-bindings.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -5
- package/dist/personal-github.js +1 -1
- package/dist/sandbox-snapshots.d.ts +0 -18
- package/package.json +1 -1
- package/src/index.ts +0 -3
- package/src/sandbox-snapshots.ts +3 -67
- package/dist/chunk-FBXZZSXA.js.map +0 -1
- /package/dist/{chunk-FY5DZL7T.js.map → chunk-IRR7CBBW.js.map} +0 -0
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
SessionTenancyVisibility,
|
|
5
5
|
UserResourceAuthorityGrant,
|
|
6
6
|
UserResourceDelegation
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EHHDZLGY.js";
|
|
8
8
|
|
|
9
9
|
// src/connection-authority.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -345,4 +345,4 @@ export {
|
|
|
345
345
|
ConnectionUseAuditFact,
|
|
346
346
|
ConnectionUseAuthorizationResult
|
|
347
347
|
};
|
|
348
|
-
//# sourceMappingURL=chunk-
|
|
348
|
+
//# sourceMappingURL=chunk-IRR7CBBW.js.map
|
package/dist/connect.js
CHANGED
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
ListConnectionAuthoritiesQuery,
|
|
17
17
|
ListConnectionAuthoritiesResponse,
|
|
18
18
|
RevokeConnectionUseGrantQuery
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-IRR7CBBW.js";
|
|
20
|
+
import "./chunk-EHHDZLGY.js";
|
|
21
21
|
import "./chunk-YBW5JSA3.js";
|
|
22
22
|
import "./chunk-O5LEQHDM.js";
|
|
23
23
|
import "./chunk-GRG7PHWQ.js";
|
package/dist/google-drive.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ConnectionUseAuthoritySnapshot,
|
|
3
3
|
IssueConnectionUseGrantRequest
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IRR7CBBW.js";
|
|
5
5
|
import {
|
|
6
6
|
HostMcpCreateSelections,
|
|
7
7
|
McpServerConnectionRef,
|
|
8
8
|
SessionTenancyVisibility
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-EHHDZLGY.js";
|
|
10
10
|
import "./chunk-YBW5JSA3.js";
|
|
11
11
|
import "./chunk-O5LEQHDM.js";
|
|
12
12
|
import "./chunk-GRG7PHWQ.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -37,7 +37,7 @@ export { CreateWorkspaceArtifactRequest, PublishWorkspaceArtifactVersionRequest,
|
|
|
37
37
|
export { MCP_MUTATION_RECEIPT_MAX_BYTES, MCP_MUTATION_RECEIPT_VERSION, McpMutationReceipt, McpMutationReceiptIdempotencyStatus, McpMutationReceiptOutcome, McpMutationResource, type McpMutationReceipt as McpMutationReceiptType, type McpMutationReceiptIdempotencyStatus as McpMutationReceiptIdempotencyStatusType, type McpMutationReceiptOutcome as McpMutationReceiptOutcomeType, type McpMutationResource as McpMutationResourceType, } from "./mcp-receipts.js";
|
|
38
38
|
export { SESSION_EVENT_PAYLOAD_MAX_BYTES, approximateSessionEventTokens, boundSessionEventPayload, measureSessionEventJson, sessionEventJsonBytes, sessionEventMediaPreview, sessionEventMediaPreviewFromDataUrl, sessionEventPayloadTruncation, type BoundSessionEventPayloadOptions, type SessionEventBoundarySurface, type SessionEventMediaPreview, type SessionEventJsonMeasurement, type SessionEventPayloadTruncation, } from "./event-preview.js";
|
|
39
39
|
export { COMPUTER_SCREENSHOT_MAX_BYTES, COMPUTER_SCREENSHOT_MAX_DIMENSION, COMPUTER_SCREENSHOT_MAX_PIXELS, COMPUTER_SCREENSHOT_RETENTION_MS, COMPUTER_SCREENSHOT_WORKSPACE_QUOTA_BYTES, GENERATED_IMAGE_MAX_BYTES, GENERATED_VIDEO_MAX_BYTES, RETAINED_OUTPUT_DEFAULT_PAGE_BYTES, RETAINED_OUTPUT_MAX_PAGE_BYTES, RETAINED_OUTPUT_RECEIPT_MAX_BYTES, RetainedArtifactMetadataSchema, RetainedArtifactReferenceSchema, RetainedArtifactUnavailableSchema, RetainedOutputEvidenceSchema, RetainedOutputKind, RetainedOutputUnavailableReason, retainedArtifactReferenceFromFile, retainedGeneratedImageReferenceFromFile, retainedGeneratedVideoReferenceFromFile, retainedScreenshotReferenceFromFile, retainedOutputUnavailable, resolveRetainedOutputRange, validateRetainedOutputEvidence, type RetainedArtifactFileInput, type RetainedArtifactMetadata, type RetainedArtifactReference, type RetainedGeneratedImageArtifactInput, type RetainedGeneratedVideoArtifactInput, type RetainedScreenshotArtifactInput, type RetainedArtifactUnavailable, type RetainedOutputAvailableEvidence, type RetainedOutputEvidence, type RetainedOutputRangeResolution, type RetainedOutputResolvedRange, } from "./retained-output.js";
|
|
40
|
-
export { NATIVE_SNAPSHOT_PREFIXES, WORKSPACE_ARCHIVE_DESCRIPTOR_VERSION, WORKSPACE_ARCHIVE_OBJECT_REF_SCHEMA, backendForNativeSnapshotProvider, decodeNativeSnapshotRef, encodeNativeSnapshotRef, omitInlineWorkspaceArchiveWhenObjectRefPresent, parseWorkspaceArchiveDescriptor,
|
|
40
|
+
export { NATIVE_SNAPSHOT_PREFIXES, WORKSPACE_ARCHIVE_DESCRIPTOR_VERSION, WORKSPACE_ARCHIVE_OBJECT_REF_SCHEMA, backendForNativeSnapshotProvider, decodeNativeSnapshotRef, encodeNativeSnapshotRef, omitInlineWorkspaceArchiveWhenObjectRefPresent, parseWorkspaceArchiveDescriptor, parseWorkspaceArchiveObjectRef, workspaceArchiveObjectKey, workspaceArchivePayloadPresent, type NativeSnapshotDescriptor, type NativeSnapshotProvider, type NativeSnapshotRef, type TarWorkspaceArchiveDescriptor, type WorkspaceArchiveDescriptor, type WorkspaceArchiveObjectRef, type WorkspaceTreeFingerprint, } from "./sandbox-snapshots.js";
|
|
41
41
|
export { canonicalModalCheckpointProviderBinding, type ModalCheckpointProviderBinding, } from "./checkpoint-provider-bindings.js";
|
|
42
42
|
export declare const SandboxBackend: z.ZodEnum<{
|
|
43
43
|
blaxel: "blaxel";
|
package/dist/index.js
CHANGED
|
@@ -1798,7 +1798,6 @@ import {
|
|
|
1798
1798
|
omitInlineWorkspaceArchiveWhenObjectRefPresent,
|
|
1799
1799
|
parseSkillFrontmatter,
|
|
1800
1800
|
parseWorkspaceArchiveDescriptor,
|
|
1801
|
-
parseWorkspaceArchiveObjectKey,
|
|
1802
1801
|
parseWorkspaceArchiveObjectRef,
|
|
1803
1802
|
prefixedMcpToolName,
|
|
1804
1803
|
readCodexCredentialPolicySnapshotV1,
|
|
@@ -1852,7 +1851,6 @@ import {
|
|
|
1852
1851
|
toolResultSpillSandboxPath,
|
|
1853
1852
|
turnExecutionPolicyAuditMetadata,
|
|
1854
1853
|
validateSkillTextFiles,
|
|
1855
|
-
validateWorkspaceArchiveObjectRef,
|
|
1856
1854
|
variableSetVariableNameReservation,
|
|
1857
1855
|
verifyDelegatedAccessToken,
|
|
1858
1856
|
verifyEnrollToken,
|
|
@@ -1866,7 +1864,7 @@ import {
|
|
|
1866
1864
|
workspaceLearningPolicyRouterContext,
|
|
1867
1865
|
workspaceLearningSourceKey,
|
|
1868
1866
|
workspaceSlackReactionChannelAllowed
|
|
1869
|
-
} from "./chunk-
|
|
1867
|
+
} from "./chunk-EHHDZLGY.js";
|
|
1870
1868
|
import {
|
|
1871
1869
|
CONNECTOR_ATTACHMENT_FILENAME_MAX_UTF8_BYTES,
|
|
1872
1870
|
CONNECTOR_ATTACHMENT_MAX_BYTES,
|
|
@@ -4217,7 +4215,6 @@ export {
|
|
|
4217
4215
|
parseConnectorAttachmentTransferEnvelope,
|
|
4218
4216
|
parseSkillFrontmatter,
|
|
4219
4217
|
parseWorkspaceArchiveDescriptor,
|
|
4220
|
-
parseWorkspaceArchiveObjectKey,
|
|
4221
4218
|
parseWorkspaceArchiveObjectRef,
|
|
4222
4219
|
prefixedMcpToolName,
|
|
4223
4220
|
readCodexCredentialPolicySnapshotV1,
|
|
@@ -4282,7 +4279,6 @@ export {
|
|
|
4282
4279
|
turnExecutionPolicyAuditMetadata,
|
|
4283
4280
|
validateRetainedOutputEvidence,
|
|
4284
4281
|
validateSkillTextFiles,
|
|
4285
|
-
validateWorkspaceArchiveObjectRef,
|
|
4286
4282
|
variableSetVariableNameReservation,
|
|
4287
4283
|
verifyDelegatedAccessToken,
|
|
4288
4284
|
verifyEnrollToken,
|
package/dist/personal-github.js
CHANGED
|
@@ -50,31 +50,13 @@ export type WorkspaceArchiveObjectRef = {
|
|
|
50
50
|
bytes: number;
|
|
51
51
|
backend: string;
|
|
52
52
|
};
|
|
53
|
-
export type WorkspaceArchiveObjectKey = {
|
|
54
|
-
accountId: string;
|
|
55
|
-
workspaceId: string;
|
|
56
|
-
sandboxGroupId: string;
|
|
57
|
-
revision: string;
|
|
58
|
-
uploadId: string | null;
|
|
59
|
-
};
|
|
60
|
-
export declare function parseWorkspaceArchiveObjectKey(value: unknown): WorkspaceArchiveObjectKey | null;
|
|
61
53
|
export declare function parseWorkspaceArchiveObjectRef(value: unknown): WorkspaceArchiveObjectRef | null;
|
|
62
54
|
export declare function workspaceArchiveObjectKey(input: {
|
|
63
55
|
accountId: string;
|
|
64
56
|
workspaceId: string;
|
|
65
57
|
sandboxGroupId: string;
|
|
66
58
|
revision: string;
|
|
67
|
-
/** New upload invocations supply a fresh randomUUID; omission is legacy-only. */
|
|
68
|
-
uploadId?: string;
|
|
69
59
|
}): string;
|
|
70
|
-
/** Bind a stored locator to its publication/restore scope and verified tar
|
|
71
|
-
* descriptor. A logical revision never substitutes for the exact physical key. */
|
|
72
|
-
export declare function validateWorkspaceArchiveObjectRef(value: unknown, input: {
|
|
73
|
-
accountId: string;
|
|
74
|
-
workspaceId: string;
|
|
75
|
-
sandboxGroupId: string;
|
|
76
|
-
descriptor: WorkspaceArchiveDescriptor;
|
|
77
|
-
}): WorkspaceArchiveObjectRef | null;
|
|
78
60
|
export declare function workspaceArchivePayloadPresent(sessionState: Record<string, unknown> | null | undefined): boolean;
|
|
79
61
|
/** Restore may inline object bytes in memory for hydrate. That copy must never
|
|
80
62
|
* be published onto a lease when a durable object-storage ref exists. */
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -180,9 +180,7 @@ export {
|
|
|
180
180
|
encodeNativeSnapshotRef,
|
|
181
181
|
omitInlineWorkspaceArchiveWhenObjectRefPresent,
|
|
182
182
|
parseWorkspaceArchiveDescriptor,
|
|
183
|
-
parseWorkspaceArchiveObjectKey,
|
|
184
183
|
parseWorkspaceArchiveObjectRef,
|
|
185
|
-
validateWorkspaceArchiveObjectRef,
|
|
186
184
|
workspaceArchiveObjectKey,
|
|
187
185
|
workspaceArchivePayloadPresent,
|
|
188
186
|
type NativeSnapshotDescriptor,
|
|
@@ -191,7 +189,6 @@ export {
|
|
|
191
189
|
type TarWorkspaceArchiveDescriptor,
|
|
192
190
|
type WorkspaceArchiveDescriptor,
|
|
193
191
|
type WorkspaceArchiveObjectRef,
|
|
194
|
-
type WorkspaceArchiveObjectKey,
|
|
195
192
|
type WorkspaceTreeFingerprint,
|
|
196
193
|
} from "./sandbox-snapshots";
|
|
197
194
|
|
package/src/sandbox-snapshots.ts
CHANGED
|
@@ -64,35 +64,8 @@ export type WorkspaceArchiveObjectRef = {
|
|
|
64
64
|
backend: string;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
|
-
// Keep legacy scope/key spelling readable. New physical upload identities must
|
|
68
|
-
// be a complete RFC UUID (including version and variant), never arbitrary text.
|
|
69
|
-
const UPLOAD_ID = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
70
67
|
const OBJECT_KEY =
|
|
71
|
-
/^sandbox-archives\/v1\/
|
|
72
|
-
|
|
73
|
-
export type WorkspaceArchiveObjectKey = {
|
|
74
|
-
accountId: string;
|
|
75
|
-
workspaceId: string;
|
|
76
|
-
sandboxGroupId: string;
|
|
77
|
-
revision: string;
|
|
78
|
-
uploadId: string | null;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
export function parseWorkspaceArchiveObjectKey(value: unknown): WorkspaceArchiveObjectKey | null {
|
|
82
|
-
if (typeof value !== "string") return null;
|
|
83
|
-
const match = OBJECT_KEY.exec(value);
|
|
84
|
-
// JS $ may match before a final newline; a locator must match in full.
|
|
85
|
-
if (!match || match[0] !== value || (match[5] !== undefined && !UPLOAD_ID.test(match[5]))) {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
accountId: match[1]!,
|
|
90
|
-
workspaceId: match[2]!,
|
|
91
|
-
sandboxGroupId: match[3]!,
|
|
92
|
-
revision: match[4]!,
|
|
93
|
-
uploadId: match[5] ?? null,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
68
|
+
/^sandbox-archives\/v1\/[0-9a-f-]{36}\/[0-9a-f-]{36}\/[0-9a-f-]{36}\/wa1:[0-9]{13}:[0-9a-f]{64}\.tar$/i;
|
|
96
69
|
|
|
97
70
|
export function parseWorkspaceArchiveObjectRef(value: unknown): WorkspaceArchiveObjectRef | null {
|
|
98
71
|
if (!value || typeof value !== "object" || Array.isArray(value)) return null;
|
|
@@ -100,7 +73,7 @@ export function parseWorkspaceArchiveObjectRef(value: unknown): WorkspaceArchive
|
|
|
100
73
|
if (
|
|
101
74
|
candidate.schema !== WORKSPACE_ARCHIVE_OBJECT_REF_SCHEMA ||
|
|
102
75
|
typeof candidate.key !== "string" ||
|
|
103
|
-
!
|
|
76
|
+
!OBJECT_KEY.test(candidate.key) ||
|
|
104
77
|
typeof candidate.sha256 !== "string" ||
|
|
105
78
|
!SHA256.test(candidate.sha256) ||
|
|
106
79
|
!nonnegativeInteger(candidate.bytes) ||
|
|
@@ -125,45 +98,8 @@ export function workspaceArchiveObjectKey(input: {
|
|
|
125
98
|
workspaceId: string;
|
|
126
99
|
sandboxGroupId: string;
|
|
127
100
|
revision: string;
|
|
128
|
-
/** New upload invocations supply a fresh randomUUID; omission is legacy-only. */
|
|
129
|
-
uploadId?: string;
|
|
130
101
|
}): string {
|
|
131
|
-
|
|
132
|
-
input.uploadId !== undefined &&
|
|
133
|
-
(!UPLOAD_ID.test(input.uploadId) || input.uploadId.length !== 36)
|
|
134
|
-
) {
|
|
135
|
-
throw new Error("Invalid workspace archive upload UUID");
|
|
136
|
-
}
|
|
137
|
-
return `sandbox-archives/v1/${input.accountId}/${input.workspaceId}/${input.sandboxGroupId}/${input.revision}${input.uploadId === undefined ? "" : `.${input.uploadId}`}.tar`;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
/** Bind a stored locator to its publication/restore scope and verified tar
|
|
141
|
-
* descriptor. A logical revision never substitutes for the exact physical key. */
|
|
142
|
-
export function validateWorkspaceArchiveObjectRef(
|
|
143
|
-
value: unknown,
|
|
144
|
-
input: {
|
|
145
|
-
accountId: string;
|
|
146
|
-
workspaceId: string;
|
|
147
|
-
sandboxGroupId: string;
|
|
148
|
-
descriptor: WorkspaceArchiveDescriptor;
|
|
149
|
-
},
|
|
150
|
-
): WorkspaceArchiveObjectRef | null {
|
|
151
|
-
const ref = parseWorkspaceArchiveObjectRef(value);
|
|
152
|
-
const key = ref && parseWorkspaceArchiveObjectKey(ref.key);
|
|
153
|
-
const descriptor = parseWorkspaceArchiveDescriptor(input.descriptor);
|
|
154
|
-
if (
|
|
155
|
-
!ref ||
|
|
156
|
-
!key ||
|
|
157
|
-
descriptor?.version !== 1 ||
|
|
158
|
-
key.accountId.toLowerCase() !== input.accountId.toLowerCase() ||
|
|
159
|
-
key.workspaceId.toLowerCase() !== input.workspaceId.toLowerCase() ||
|
|
160
|
-
key.sandboxGroupId.toLowerCase() !== input.sandboxGroupId.toLowerCase() ||
|
|
161
|
-
key.revision !== descriptor.revision ||
|
|
162
|
-
ref.sha256 !== descriptor.archiveSha256 ||
|
|
163
|
-
ref.bytes !== descriptor.archiveBytes
|
|
164
|
-
)
|
|
165
|
-
return null;
|
|
166
|
-
return ref;
|
|
102
|
+
return `sandbox-archives/v1/${input.accountId}/${input.workspaceId}/${input.sandboxGroupId}/${input.revision}.tar`;
|
|
167
103
|
}
|
|
168
104
|
|
|
169
105
|
export function workspaceArchivePayloadPresent(
|