@inf-monkeys-tech/monkeys 1.1.44 → 1.1.45
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/lib/contracts/agent-data.d.ts +7 -7
- package/lib/contracts/agent-native-runtime.d.ts +1 -1
- package/lib/contracts/agent.d.ts +75 -72
- package/lib/contracts/agent.d.ts.map +1 -1
- package/lib/contracts/agent.js +2 -0
- package/lib/contracts/agent.js.map +1 -1
- package/lib/contracts/declarative-control-http.d.ts +26 -26
- package/lib/contracts/declarative-control.d.ts +4 -4
- package/lib/contracts/declarative-publication-job.d.ts +11 -11
- package/lib/contracts/file.d.ts +21 -18
- package/lib/contracts/file.d.ts.map +1 -1
- package/lib/contracts/file.js +1 -0
- package/lib/contracts/file.js.map +1 -1
- package/lib/contracts/index.d.ts +1 -0
- package/lib/contracts/index.d.ts.map +1 -1
- package/lib/contracts/index.js +1 -0
- package/lib/contracts/index.js.map +1 -1
- package/lib/contracts/markdown-document.d.ts +311 -0
- package/lib/contracts/markdown-document.d.ts.map +1 -0
- package/lib/contracts/markdown-document.js +97 -0
- package/lib/contracts/markdown-document.js.map +1 -0
- package/lib/contracts/tenant.d.ts +4 -4
- package/lib/esm/{chunk-DFALYXAY.mjs → chunk-4NESF77F.mjs} +2 -2
- package/lib/esm/{chunk-UY2ZSIR2.mjs → chunk-DC6UVTII.mjs} +3 -3
- package/lib/esm/{chunk-AYNGVVND.mjs → chunk-KRC5B425.mjs} +3 -3
- package/lib/esm/{chunk-QPFYQ24T.mjs → chunk-QODKWH56.mjs} +584 -582
- package/lib/esm/chunk-QODKWH56.mjs.map +1 -0
- package/lib/esm/{chunk-WYV3EFUS.mjs → chunk-WB4LSU25.mjs} +2 -2
- package/lib/esm/{chunk-TKIVZQ6V.mjs → chunk-WWALIVTO.mjs} +131 -16
- package/lib/esm/chunk-WWALIVTO.mjs.map +1 -0
- package/lib/esm/contracts/index.mjs +36 -4
- package/lib/esm/index.mjs +38 -6
- package/lib/esm/index.mjs.map +1 -1
- package/lib/esm/runtime/index.mjs +3 -3
- package/lib/esm/schemas/index.mjs +3 -3
- package/lib/json-schema/agent-session-event.schema.json +4 -0
- package/lib/json-schema/agent-session-run-event.schema.json +4 -0
- package/lib/json-schema/agent-session-view-model.schema.json +4 -0
- package/lib/runtime/runtime-definition-wire.d.ts +2 -2
- package/lib/schemas/index.d.ts +52 -49
- package/lib/schemas/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/esm/chunk-QPFYQ24T.mjs.map +0 -1
- package/lib/esm/chunk-TKIVZQ6V.mjs.map +0 -1
- /package/lib/esm/{chunk-DFALYXAY.mjs.map → chunk-4NESF77F.mjs.map} +0 -0
- /package/lib/esm/{chunk-UY2ZSIR2.mjs.map → chunk-DC6UVTII.mjs.map} +0 -0
- /package/lib/esm/{chunk-AYNGVVND.mjs.map → chunk-KRC5B425.mjs.map} +0 -0
- /package/lib/esm/{chunk-WYV3EFUS.mjs.map → chunk-WB4LSU25.mjs.map} +0 -0
|
@@ -6642,26 +6642,294 @@ var ProductAccessDeclarationSchema = z2.object({
|
|
|
6642
6642
|
systemGroups: z2.array(SystemGroupDefinitionSchema).min(1)
|
|
6643
6643
|
}).strict();
|
|
6644
6644
|
|
|
6645
|
-
// src/contracts/
|
|
6645
|
+
// src/contracts/file.ts
|
|
6646
6646
|
import { z as z3 } from "zod";
|
|
6647
|
-
var
|
|
6647
|
+
var FILE_PURPOSES = [
|
|
6648
|
+
"uploads",
|
|
6649
|
+
"agent-attachments",
|
|
6650
|
+
"agent-artifacts",
|
|
6651
|
+
"agent-edited-images",
|
|
6652
|
+
"agent-workbench",
|
|
6653
|
+
"agent-skill-archives",
|
|
6654
|
+
"asset-screenshots",
|
|
6655
|
+
"data-exports",
|
|
6656
|
+
"data-feature-media",
|
|
6657
|
+
"design-assets",
|
|
6658
|
+
"design-board-thumbnails",
|
|
6659
|
+
"design-images",
|
|
6660
|
+
"dev-agent-reference-images",
|
|
6661
|
+
"dev-agent-review-artifacts",
|
|
6662
|
+
"external-delivery-techpacks",
|
|
6663
|
+
"llm-generated-images",
|
|
6664
|
+
"media-generated",
|
|
6665
|
+
"media-uploads",
|
|
6666
|
+
"model-training-files",
|
|
6667
|
+
"models",
|
|
6668
|
+
"models-checkpoints",
|
|
6669
|
+
"models-clip",
|
|
6670
|
+
"models-controlnet",
|
|
6671
|
+
"models-diffusion-models",
|
|
6672
|
+
"models-loras-test",
|
|
6673
|
+
"models-vae",
|
|
6674
|
+
"output-images",
|
|
6675
|
+
"plugin-data-imports",
|
|
6676
|
+
"plugin-runtime",
|
|
6677
|
+
"plugin-runtime-outputs",
|
|
6678
|
+
"step-thumbnails",
|
|
6679
|
+
"techpack-design-intent",
|
|
6680
|
+
"user-files-base",
|
|
6681
|
+
"user-files-design-board-background",
|
|
6682
|
+
"user-files-design-project-cover",
|
|
6683
|
+
"user-files-designs",
|
|
6684
|
+
"user-files-icons",
|
|
6685
|
+
"user-files-import-comfyui-image",
|
|
6686
|
+
"user-files-import-comfyui-json",
|
|
6687
|
+
"user-files-import-comfyui-json-url",
|
|
6688
|
+
"user-files-instruction-input",
|
|
6689
|
+
"user-files-linesheet",
|
|
6690
|
+
"user-files-media",
|
|
6691
|
+
"user-files-other",
|
|
6692
|
+
"user-files-prompt-assistant",
|
|
6693
|
+
"user-files-table-data",
|
|
6694
|
+
"user-files-techpack-attachments",
|
|
6695
|
+
"user-files-text-data-file",
|
|
6696
|
+
"user-files-workflow-input",
|
|
6697
|
+
"workflow-image-mask",
|
|
6698
|
+
"workflow-image-overlay",
|
|
6699
|
+
"workflow-import"
|
|
6700
|
+
];
|
|
6701
|
+
var FilePurposeSchema = z3.enum(FILE_PURPOSES);
|
|
6702
|
+
var FileStatusSchema = z3.enum(["pending", "ready", "failed", "deleted"]);
|
|
6703
|
+
var FileVariantStatusSchema = z3.enum(["queued", "processing", "ready", "failed"]);
|
|
6704
|
+
var FILE_USAGE_OWNER_TYPES = [
|
|
6705
|
+
"file-resource",
|
|
6706
|
+
"agent-record",
|
|
6707
|
+
"agent-message",
|
|
6708
|
+
"agent-skill-archive",
|
|
6709
|
+
"data-asset",
|
|
6710
|
+
"data-export",
|
|
6711
|
+
"design-board",
|
|
6712
|
+
"markdown-document",
|
|
6713
|
+
"external-delivery",
|
|
6714
|
+
"kernel-runtime",
|
|
6715
|
+
"llm-generated-media",
|
|
6716
|
+
"model-training-media",
|
|
6717
|
+
"plugin-run"
|
|
6718
|
+
];
|
|
6719
|
+
var FileUsageOwnerTypeSchema = z3.enum(FILE_USAGE_OWNER_TYPES);
|
|
6720
|
+
var FileUsageSchema = z3.object({
|
|
6721
|
+
ownerType: FileUsageOwnerTypeSchema,
|
|
6722
|
+
ownerId: ContractIdentifierSchema,
|
|
6723
|
+
field: ContractIdentifierSchema.optional()
|
|
6724
|
+
}).strict();
|
|
6725
|
+
var ManagedFileUriSchema = z3.string().regex(/^file:\/\/[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?:#[A-Za-z0-9_-]+)?$/);
|
|
6726
|
+
var TransferUrlSchema = z3.string().min(1).max(16384).refine((value) => {
|
|
6727
|
+
if (/^\/(?!\/)/.test(value)) return !/[\u0000-\u0020\\]/.test(value);
|
|
6728
|
+
try {
|
|
6729
|
+
const url = new URL(value);
|
|
6730
|
+
return ["http:", "https:"].includes(url.protocol) && !url.username && !url.password;
|
|
6731
|
+
} catch {
|
|
6732
|
+
return false;
|
|
6733
|
+
}
|
|
6734
|
+
}, "Expected an HTTP(S) URL or absolute same-origin path");
|
|
6735
|
+
var TransferHeadersSchema = z3.record(
|
|
6736
|
+
z3.string().regex(/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/),
|
|
6737
|
+
z3.string().refine((value) => !/[\u0000\r\n]/.test(value), "Invalid header value")
|
|
6738
|
+
);
|
|
6739
|
+
var FileReadInstructionSchema = z3.object({
|
|
6740
|
+
mode: z3.enum(["direct", "proxy"]),
|
|
6741
|
+
url: TransferUrlSchema,
|
|
6742
|
+
method: z3.literal("GET"),
|
|
6743
|
+
headers: TransferHeadersSchema,
|
|
6744
|
+
expiresAt: IsoDateTimeSchema.nullable()
|
|
6745
|
+
}).strict().superRefine((value, context) => {
|
|
6746
|
+
if (value.mode === "proxy" && !/^\/(?!\/)/.test(value.url))
|
|
6747
|
+
context.addIssue({ code: "custom", path: ["url"], message: "A browser proxy must use a same-origin path" });
|
|
6748
|
+
});
|
|
6749
|
+
var FileResourcePathSchema = z3.string().min(1).max(1024).refine((path2) => {
|
|
6750
|
+
if (/^[\/\\]|[\\\u0000-\u001f:?#]/.test(path2)) return false;
|
|
6751
|
+
try {
|
|
6752
|
+
const decoded = decodeURIComponent(path2);
|
|
6753
|
+
return !/^[\/\\]|[\\\u0000-\u001f:?#]/.test(decoded) && decoded.split("/").every((part) => part && part !== "." && part !== "..");
|
|
6754
|
+
} catch {
|
|
6755
|
+
return false;
|
|
6756
|
+
}
|
|
6757
|
+
}, "Expected a safe relative resource path");
|
|
6758
|
+
var FileResourceManifestSchema = z3.object({
|
|
6759
|
+
version: z3.literal(1),
|
|
6760
|
+
entryPath: FileResourcePathSchema.optional(),
|
|
6761
|
+
resources: z3.array(z3.object({ path: FileResourcePathSchema, uri: ManagedFileUriSchema }).strict()).max(1e3)
|
|
6762
|
+
}).strict().superRefine((value, context) => {
|
|
6763
|
+
if (new Set(value.resources.map((resource) => resource.path)).size !== value.resources.length)
|
|
6764
|
+
context.addIssue({ code: "custom", path: ["resources"], message: "Resource paths must be unique" });
|
|
6765
|
+
});
|
|
6766
|
+
var FileReferenceSchema = z3.object({
|
|
6767
|
+
id: ContractIdentifierSchema.optional(),
|
|
6768
|
+
uri: z3.string().trim().min(1).optional(),
|
|
6769
|
+
thumbnailUri: z3.string().trim().min(1).optional(),
|
|
6770
|
+
mimeType: z3.string().trim().min(1).max(128).optional(),
|
|
6771
|
+
byteSize: z3.number().int().nonnegative().optional(),
|
|
6772
|
+
sha256: Sha256Schema.optional()
|
|
6773
|
+
}).strict().refine((value) => Boolean(value.id || value.uri), {
|
|
6774
|
+
message: "File reference requires id or uri"
|
|
6775
|
+
});
|
|
6776
|
+
var FileVariantSchema = z3.object({
|
|
6777
|
+
variantId: ContractIdentifierSchema,
|
|
6778
|
+
kind: z3.literal("thumbnail-512"),
|
|
6779
|
+
status: FileVariantStatusSchema,
|
|
6780
|
+
mimeType: z3.literal("image/webp"),
|
|
6781
|
+
byteSize: z3.number().int().nonnegative().optional(),
|
|
6782
|
+
width: z3.number().int().positive().optional(),
|
|
6783
|
+
height: z3.number().int().positive().optional(),
|
|
6784
|
+
uri: z3.string().trim().min(1).optional(),
|
|
6785
|
+
errorCode: ContractIdentifierSchema.optional()
|
|
6786
|
+
}).strict();
|
|
6787
|
+
var FileRecordSchema = z3.object({
|
|
6788
|
+
contract: z3.literal("FileRecord"),
|
|
6789
|
+
contractVersion: z3.literal(1),
|
|
6790
|
+
version: z3.number().int().positive(),
|
|
6791
|
+
fileId: ContractIdentifierSchema,
|
|
6792
|
+
teamId: ContractIdentifierSchema,
|
|
6793
|
+
purpose: FilePurposeSchema,
|
|
6794
|
+
originalName: z3.string().trim().min(1).max(255),
|
|
6795
|
+
mimeType: z3.string().trim().min(1).max(128),
|
|
6796
|
+
byteSize: z3.number().int().nonnegative().optional(),
|
|
6797
|
+
sha256: Sha256Schema.optional(),
|
|
6798
|
+
status: FileStatusSchema,
|
|
6799
|
+
storage: z3.object({
|
|
6800
|
+
bucketId: ContractIdentifierSchema,
|
|
6801
|
+
objectKey: z3.string().trim().min(1).max(1024),
|
|
6802
|
+
canonicalUri: z3.string().trim().min(1),
|
|
6803
|
+
etag: z3.string().trim().min(1).optional()
|
|
6804
|
+
}).strict(),
|
|
6805
|
+
variants: z3.array(FileVariantSchema).default([]),
|
|
6806
|
+
resourceManifest: FileResourceManifestSchema.optional(),
|
|
6807
|
+
createdAt: IsoDateTimeSchema,
|
|
6808
|
+
updatedAt: IsoDateTimeSchema
|
|
6809
|
+
}).strict().superRefine((value, context) => {
|
|
6810
|
+
if (value.storage.canonicalUri !== `file://${value.fileId}`) {
|
|
6811
|
+
context.addIssue({
|
|
6812
|
+
code: "custom",
|
|
6813
|
+
path: ["storage", "canonicalUri"],
|
|
6814
|
+
message: "Canonical file URI must match fileId"
|
|
6815
|
+
});
|
|
6816
|
+
}
|
|
6817
|
+
});
|
|
6818
|
+
var FileUploadCreateRequestSchema = z3.object({
|
|
6819
|
+
purpose: FilePurposeSchema,
|
|
6820
|
+
filename: z3.string().trim().min(1).max(255),
|
|
6821
|
+
mimeType: z3.string().trim().min(1).max(128),
|
|
6822
|
+
byteSize: z3.number().int().nonnegative().optional(),
|
|
6823
|
+
sha256: Sha256Schema.optional(),
|
|
6824
|
+
usage: FileUsageSchema.optional(),
|
|
6825
|
+
requestId: ContractIdentifierSchema.optional(),
|
|
6826
|
+
forceProxy: z3.boolean().optional()
|
|
6827
|
+
}).strict();
|
|
6828
|
+
var FileUploadInstructionSchema = z3.object({
|
|
6829
|
+
url: TransferUrlSchema,
|
|
6830
|
+
method: z3.string().trim().min(1),
|
|
6831
|
+
headers: TransferHeadersSchema,
|
|
6832
|
+
expiresAt: IsoDateTimeSchema,
|
|
6833
|
+
mode: z3.enum(["direct", "proxy"]).optional()
|
|
6834
|
+
}).strict();
|
|
6835
|
+
var FileUploadCreateResponseSchema = z3.object({
|
|
6836
|
+
file: FileRecordSchema,
|
|
6837
|
+
upload: FileUploadInstructionSchema
|
|
6838
|
+
}).strict();
|
|
6839
|
+
var FileUploadCompleteRequestSchema = z3.object({
|
|
6840
|
+
byteSize: z3.number().int().nonnegative().optional(),
|
|
6841
|
+
sha256: Sha256Schema.optional(),
|
|
6842
|
+
etag: z3.string().trim().min(1).max(512).optional(),
|
|
6843
|
+
resourceManifest: FileResourceManifestSchema.optional()
|
|
6844
|
+
}).strict();
|
|
6845
|
+
var ResolvedFileSchema = z3.object({
|
|
6846
|
+
fileId: ContractIdentifierSchema.optional(),
|
|
6847
|
+
status: FileStatusSchema.optional(),
|
|
6848
|
+
originalUri: z3.string().trim().min(1).optional(),
|
|
6849
|
+
thumbnailUri: z3.string().trim().min(1).optional(),
|
|
6850
|
+
version: z3.number().int().positive().optional(),
|
|
6851
|
+
resourceManifest: FileResourceManifestSchema.optional(),
|
|
6852
|
+
originalAccess: FileReadInstructionSchema.optional(),
|
|
6853
|
+
thumbnailAccess: FileReadInstructionSchema.optional(),
|
|
6854
|
+
mimeType: z3.string().trim().min(1).max(128).optional(),
|
|
6855
|
+
byteSize: z3.number().int().nonnegative().optional(),
|
|
6856
|
+
sha256: Sha256Schema.optional(),
|
|
6857
|
+
unresolved: z3.boolean().optional()
|
|
6858
|
+
}).strict();
|
|
6859
|
+
var FileResolveBatchRequestSchema = z3.object({
|
|
6860
|
+
references: z3.array(FileReferenceSchema).min(1).max(1e3),
|
|
6861
|
+
includeOriginal: z3.boolean().default(false),
|
|
6862
|
+
includeThumbnail: z3.boolean().default(true),
|
|
6863
|
+
includeAccessInstructions: z3.boolean().default(false),
|
|
6864
|
+
forceProxy: z3.boolean().default(false)
|
|
6865
|
+
}).strict();
|
|
6866
|
+
var FileResolveBatchResponseSchema = z3.object({
|
|
6867
|
+
items: z3.array(ResolvedFileSchema)
|
|
6868
|
+
}).strict();
|
|
6869
|
+
var ManagedFileCommandTypeSchema = z3.enum([
|
|
6870
|
+
"create-file",
|
|
6871
|
+
"attach-usage",
|
|
6872
|
+
"detach-usage",
|
|
6873
|
+
"record-upload",
|
|
6874
|
+
"verify-upload",
|
|
6875
|
+
"delete-file"
|
|
6876
|
+
]);
|
|
6877
|
+
var ManagedFileCommandSchema = z3.object({
|
|
6878
|
+
contract: z3.literal("ManagedFileCommand"),
|
|
6879
|
+
contractVersion: z3.literal(1),
|
|
6880
|
+
commandId: ContractIdentifierSchema,
|
|
6881
|
+
commandType: ManagedFileCommandTypeSchema,
|
|
6882
|
+
fileId: ContractIdentifierSchema,
|
|
6883
|
+
teamId: ContractIdentifierSchema,
|
|
6884
|
+
expectedVersion: z3.number().int().nonnegative().optional(),
|
|
6885
|
+
actorId: ContractIdentifierSchema.optional(),
|
|
6886
|
+
payload: JsonObjectSchema.default({}),
|
|
6887
|
+
issuedAt: IsoDateTimeSchema
|
|
6888
|
+
}).strict();
|
|
6889
|
+
var ManagedFileEventTypeSchema = z3.enum([
|
|
6890
|
+
"file-created",
|
|
6891
|
+
"file-usage-attached",
|
|
6892
|
+
"file-usage-detached",
|
|
6893
|
+
"storage-operation-queued",
|
|
6894
|
+
"storage-operation-completed",
|
|
6895
|
+
"storage-operation-failed",
|
|
6896
|
+
"file-ready",
|
|
6897
|
+
"file-deleted"
|
|
6898
|
+
]);
|
|
6899
|
+
var ManagedFileEventSchema = z3.object({
|
|
6900
|
+
contract: z3.literal("ManagedFileEvent"),
|
|
6901
|
+
contractVersion: z3.literal(1),
|
|
6902
|
+
eventId: ContractIdentifierSchema,
|
|
6903
|
+
eventType: ManagedFileEventTypeSchema,
|
|
6904
|
+
fileId: ContractIdentifierSchema,
|
|
6905
|
+
teamId: ContractIdentifierSchema,
|
|
6906
|
+
aggregateVersion: z3.number().int().positive(),
|
|
6907
|
+
commandId: ContractIdentifierSchema,
|
|
6908
|
+
actorId: ContractIdentifierSchema.optional(),
|
|
6909
|
+
payload: JsonObjectSchema.default({}),
|
|
6910
|
+
occurredAt: IsoDateTimeSchema
|
|
6911
|
+
}).strict();
|
|
6912
|
+
|
|
6913
|
+
// src/contracts/agent.ts
|
|
6914
|
+
import { z as z4 } from "zod";
|
|
6915
|
+
var StudioAgentModeSchema = z4.enum(["chat", "work"]);
|
|
6648
6916
|
var AgentModeSchema = StudioAgentModeSchema;
|
|
6649
|
-
var AgentConfigurationCapabilitySchema =
|
|
6917
|
+
var AgentConfigurationCapabilitySchema = z4.enum([
|
|
6650
6918
|
"models",
|
|
6651
6919
|
"skills",
|
|
6652
6920
|
"tools",
|
|
6653
6921
|
"mcp",
|
|
6654
6922
|
"reasoning"
|
|
6655
6923
|
]);
|
|
6656
|
-
var AgentModeCapabilitiesSchema =
|
|
6657
|
-
models:
|
|
6658
|
-
skills:
|
|
6659
|
-
tools:
|
|
6660
|
-
mcp:
|
|
6661
|
-
reasoning:
|
|
6924
|
+
var AgentModeCapabilitiesSchema = z4.object({
|
|
6925
|
+
models: z4.boolean(),
|
|
6926
|
+
skills: z4.boolean(),
|
|
6927
|
+
tools: z4.boolean(),
|
|
6928
|
+
mcp: z4.boolean(),
|
|
6929
|
+
reasoning: z4.boolean()
|
|
6662
6930
|
}).strict();
|
|
6663
|
-
var AgentResourceModeSupportSchema =
|
|
6664
|
-
modes:
|
|
6931
|
+
var AgentResourceModeSupportSchema = z4.object({
|
|
6932
|
+
modes: z4.array(AgentModeSchema).min(1)
|
|
6665
6933
|
}).strict();
|
|
6666
6934
|
var AGENT_MODE_CAPABILITIES = Object.freeze({
|
|
6667
6935
|
chat: AgentModeCapabilitiesSchema.parse({
|
|
@@ -6688,7 +6956,7 @@ function agentModeHasCapability(mode, capability) {
|
|
|
6688
6956
|
function isAgentResourceModeCompatible(support, mode) {
|
|
6689
6957
|
return support?.modes.includes(mode) ?? false;
|
|
6690
6958
|
}
|
|
6691
|
-
var AgentSessionCapabilitySchema =
|
|
6959
|
+
var AgentSessionCapabilitySchema = z4.enum([
|
|
6692
6960
|
"text",
|
|
6693
6961
|
"reasoning",
|
|
6694
6962
|
"plan",
|
|
@@ -6711,30 +6979,30 @@ var AgentSessionCapabilitySchema = z3.enum([
|
|
|
6711
6979
|
"steering",
|
|
6712
6980
|
"summary"
|
|
6713
6981
|
]);
|
|
6714
|
-
var AgentSessionCapabilitiesSchema =
|
|
6715
|
-
text:
|
|
6716
|
-
reasoning:
|
|
6717
|
-
plan:
|
|
6718
|
-
tasks:
|
|
6719
|
-
tools:
|
|
6720
|
-
mcp:
|
|
6721
|
-
shell:
|
|
6722
|
-
fileChange:
|
|
6723
|
-
skills:
|
|
6724
|
-
approval:
|
|
6725
|
-
artifacts:
|
|
6726
|
-
usage:
|
|
6727
|
-
resume:
|
|
6728
|
-
diff:
|
|
6729
|
-
workspaceFiles:
|
|
6730
|
-
terminal:
|
|
6731
|
-
testResults:
|
|
6732
|
-
threadForking:
|
|
6733
|
-
editAndRerun:
|
|
6734
|
-
steering:
|
|
6735
|
-
summary:
|
|
6736
|
-
}).strict();
|
|
6737
|
-
var AgentSessionPermissionProfileSchema =
|
|
6982
|
+
var AgentSessionCapabilitiesSchema = z4.object({
|
|
6983
|
+
text: z4.boolean().default(true),
|
|
6984
|
+
reasoning: z4.boolean().default(false),
|
|
6985
|
+
plan: z4.boolean().default(false),
|
|
6986
|
+
tasks: z4.boolean().default(false),
|
|
6987
|
+
tools: z4.boolean().default(false),
|
|
6988
|
+
mcp: z4.boolean().default(false),
|
|
6989
|
+
shell: z4.boolean().default(false),
|
|
6990
|
+
fileChange: z4.boolean().default(false),
|
|
6991
|
+
skills: z4.boolean().default(false),
|
|
6992
|
+
approval: z4.boolean().default(false),
|
|
6993
|
+
artifacts: z4.boolean().default(false),
|
|
6994
|
+
usage: z4.boolean().default(false),
|
|
6995
|
+
resume: z4.boolean().default(false),
|
|
6996
|
+
diff: z4.boolean().default(false),
|
|
6997
|
+
workspaceFiles: z4.boolean().default(false),
|
|
6998
|
+
terminal: z4.boolean().default(false),
|
|
6999
|
+
testResults: z4.boolean().default(false),
|
|
7000
|
+
threadForking: z4.boolean().default(false),
|
|
7001
|
+
editAndRerun: z4.boolean().default(false),
|
|
7002
|
+
steering: z4.boolean().default(false),
|
|
7003
|
+
summary: z4.boolean().default(false)
|
|
7004
|
+
}).strict();
|
|
7005
|
+
var AgentSessionPermissionProfileSchema = z4.enum([
|
|
6738
7006
|
"approval-required",
|
|
6739
7007
|
"auto-approve",
|
|
6740
7008
|
"full-access"
|
|
@@ -6778,13 +7046,13 @@ function findUnsupportedAgentSessionCapabilities(capabilities, evidence) {
|
|
|
6778
7046
|
return !requirement.eventTypes.some((eventType) => eventTypes.has(eventType)) && !requirement.commandTypes.some((commandType) => commandTypes.has(commandType));
|
|
6779
7047
|
});
|
|
6780
7048
|
}
|
|
6781
|
-
var AgentSessionSnapshotSchema =
|
|
7049
|
+
var AgentSessionSnapshotSchema = z4.object({
|
|
6782
7050
|
mode: AgentModeSchema,
|
|
6783
|
-
modelId:
|
|
7051
|
+
modelId: z4.string().trim().min(1),
|
|
6784
7052
|
capabilities: AgentSessionCapabilitiesSchema,
|
|
6785
7053
|
permissionProfile: AgentSessionPermissionProfileSchema.optional()
|
|
6786
7054
|
}).strict();
|
|
6787
|
-
var AgentSessionStatusSchema =
|
|
7055
|
+
var AgentSessionStatusSchema = z4.enum([
|
|
6788
7056
|
"queued",
|
|
6789
7057
|
"running",
|
|
6790
7058
|
"waiting_approval",
|
|
@@ -6793,56 +7061,56 @@ var AgentSessionStatusSchema = z3.enum([
|
|
|
6793
7061
|
"completed",
|
|
6794
7062
|
"failed"
|
|
6795
7063
|
]);
|
|
6796
|
-
var AgentSessionTerminalStatusSchema =
|
|
6797
|
-
var AgentSessionLineageSchema =
|
|
7064
|
+
var AgentSessionTerminalStatusSchema = z4.enum(["stopped", "completed", "failed"]);
|
|
7065
|
+
var AgentSessionLineageSchema = z4.object({
|
|
6798
7066
|
forkedFromThreadId: ContractIdentifierSchema,
|
|
6799
7067
|
forkedFromMessageId: ContractIdentifierSchema,
|
|
6800
7068
|
sourceRunId: ContractIdentifierSchema
|
|
6801
7069
|
}).strict();
|
|
6802
|
-
var AgentSessionContextInheritanceSchema =
|
|
6803
|
-
messages:
|
|
6804
|
-
attachments:
|
|
6805
|
-
summaries:
|
|
6806
|
-
toolResults:
|
|
6807
|
-
codeChanges:
|
|
7070
|
+
var AgentSessionContextInheritanceSchema = z4.object({
|
|
7071
|
+
messages: z4.enum(["through-source-message", "exclude"]),
|
|
7072
|
+
attachments: z4.enum(["inherit", "exclude"]),
|
|
7073
|
+
summaries: z4.enum(["inherit", "exclude"]),
|
|
7074
|
+
toolResults: z4.enum(["inherit", "exclude"]),
|
|
7075
|
+
codeChanges: z4.enum(["inherit", "exclude"])
|
|
6808
7076
|
}).strict();
|
|
6809
|
-
var AgentSessionInheritedContextMessageSchema =
|
|
7077
|
+
var AgentSessionInheritedContextMessageSchema = z4.object({
|
|
6810
7078
|
messageId: ContractIdentifierSchema,
|
|
6811
|
-
role:
|
|
6812
|
-
parts:
|
|
7079
|
+
role: z4.enum(["user", "assistant"]),
|
|
7080
|
+
parts: z4.array(JsonValueSchema).min(1)
|
|
6813
7081
|
}).strict();
|
|
6814
|
-
var AgentSessionUnavailableResourceSchema =
|
|
7082
|
+
var AgentSessionUnavailableResourceSchema = z4.object({
|
|
6815
7083
|
messageId: ContractIdentifierSchema,
|
|
6816
|
-
kind:
|
|
6817
|
-
reason:
|
|
7084
|
+
kind: z4.enum(["attachment", "tool-result", "code-change"]),
|
|
7085
|
+
reason: z4.enum(["excluded", "unavailable", "unsupported"])
|
|
6818
7086
|
}).strict();
|
|
6819
|
-
var AgentSessionInheritedContextSchema =
|
|
7087
|
+
var AgentSessionInheritedContextSchema = z4.object({
|
|
6820
7088
|
sourceThreadId: ContractIdentifierSchema,
|
|
6821
7089
|
sourceMessageId: ContractIdentifierSchema,
|
|
6822
7090
|
sourceRunId: ContractIdentifierSchema,
|
|
6823
|
-
messages:
|
|
6824
|
-
summary:
|
|
6825
|
-
unavailableResources:
|
|
7091
|
+
messages: z4.array(AgentSessionInheritedContextMessageSchema).max(24),
|
|
7092
|
+
summary: z4.string().trim().min(1).optional(),
|
|
7093
|
+
unavailableResources: z4.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
6826
7094
|
capturedAt: IsoDateTimeSchema
|
|
6827
7095
|
}).strict();
|
|
6828
|
-
var AgentSessionContinuationRequestSchema =
|
|
6829
|
-
contract:
|
|
7096
|
+
var AgentSessionContinuationRequestSchema = z4.object({
|
|
7097
|
+
contract: z4.literal("AgentSessionContinuationRequest"),
|
|
6830
7098
|
idempotencyKey: ContractIdentifierSchema,
|
|
6831
7099
|
sourceMessageId: ContractIdentifierSchema,
|
|
6832
7100
|
sourceRunId: ContractIdentifierSchema,
|
|
6833
7101
|
inheritance: AgentSessionContextInheritanceSchema
|
|
6834
7102
|
}).strict();
|
|
6835
|
-
var AgentSessionContinuationResultSchema =
|
|
6836
|
-
contract:
|
|
7103
|
+
var AgentSessionContinuationResultSchema = z4.object({
|
|
7104
|
+
contract: z4.literal("AgentSessionContinuationResult"),
|
|
6837
7105
|
idempotencyKey: ContractIdentifierSchema,
|
|
6838
7106
|
threadId: ContractIdentifierSchema,
|
|
6839
7107
|
lineage: AgentSessionLineageSchema,
|
|
6840
7108
|
inheritance: AgentSessionContextInheritanceSchema,
|
|
6841
|
-
unavailableResources:
|
|
6842
|
-
duplicate:
|
|
7109
|
+
unavailableResources: z4.array(AgentSessionUnavailableResourceSchema).default([]),
|
|
7110
|
+
duplicate: z4.boolean(),
|
|
6843
7111
|
createdAt: IsoDateTimeSchema
|
|
6844
7112
|
}).strict();
|
|
6845
|
-
var AgentSessionActiveBranchSchema =
|
|
7113
|
+
var AgentSessionActiveBranchSchema = z4.object({
|
|
6846
7114
|
branchId: ContractIdentifierSchema,
|
|
6847
7115
|
threadId: ContractIdentifierSchema,
|
|
6848
7116
|
sourceMessageId: ContractIdentifierSchema,
|
|
@@ -6850,7 +7118,7 @@ var AgentSessionActiveBranchSchema = z3.object({
|
|
|
6850
7118
|
lineage: AgentSessionLineageSchema.optional(),
|
|
6851
7119
|
createdAt: IsoDateTimeSchema
|
|
6852
7120
|
}).strict();
|
|
6853
|
-
var AgentSessionRunSchema =
|
|
7121
|
+
var AgentSessionRunSchema = z4.object({
|
|
6854
7122
|
runId: ContractIdentifierSchema,
|
|
6855
7123
|
sessionId: ContractIdentifierSchema,
|
|
6856
7124
|
sourceMessageId: ContractIdentifierSchema,
|
|
@@ -6860,7 +7128,7 @@ var AgentSessionRunSchema = z3.object({
|
|
|
6860
7128
|
stoppedAt: IsoDateTimeSchema.optional(),
|
|
6861
7129
|
completedAt: IsoDateTimeSchema.optional(),
|
|
6862
7130
|
failedAt: IsoDateTimeSchema.optional(),
|
|
6863
|
-
durationMs:
|
|
7131
|
+
durationMs: z4.number().nonnegative().optional()
|
|
6864
7132
|
}).strict().superRefine((value, context) => {
|
|
6865
7133
|
const terminalTimestamps = [value.stoppedAt, value.completedAt, value.failedAt].filter(Boolean);
|
|
6866
7134
|
if (terminalTimestamps.length > 1) {
|
|
@@ -6907,7 +7175,7 @@ var AgentSessionRunSchema = z3.object({
|
|
|
6907
7175
|
});
|
|
6908
7176
|
}
|
|
6909
7177
|
});
|
|
6910
|
-
var AgentSessionCommandTypeSchema =
|
|
7178
|
+
var AgentSessionCommandTypeSchema = z4.enum([
|
|
6911
7179
|
"stop",
|
|
6912
7180
|
"resume",
|
|
6913
7181
|
"retry",
|
|
@@ -6917,22 +7185,22 @@ var AgentSessionCommandTypeSchema = z3.enum([
|
|
|
6917
7185
|
"edit-and-rerun",
|
|
6918
7186
|
"steer"
|
|
6919
7187
|
]);
|
|
6920
|
-
var AgentSessionCommandHeaderSchema =
|
|
6921
|
-
contract:
|
|
7188
|
+
var AgentSessionCommandHeaderSchema = z4.object({
|
|
7189
|
+
contract: z4.literal("AgentSessionCommand"),
|
|
6922
7190
|
commandId: ContractIdentifierSchema,
|
|
6923
7191
|
sessionId: ContractIdentifierSchema,
|
|
6924
7192
|
runId: ContractIdentifierSchema.optional(),
|
|
6925
7193
|
idempotencyKey: ContractIdentifierSchema,
|
|
6926
|
-
expectedSequence:
|
|
7194
|
+
expectedSequence: z4.number().int().min(-1),
|
|
6927
7195
|
issuedAt: IsoDateTimeSchema
|
|
6928
7196
|
}).strict();
|
|
6929
7197
|
var sessionCommand = (commandType, payload) => AgentSessionCommandHeaderSchema.extend({
|
|
6930
|
-
commandType:
|
|
6931
|
-
payload:
|
|
7198
|
+
commandType: z4.literal(commandType),
|
|
7199
|
+
payload: z4.object(payload).strict()
|
|
6932
7200
|
}).strict();
|
|
6933
|
-
var AgentSessionCommandSchema =
|
|
7201
|
+
var AgentSessionCommandSchema = z4.discriminatedUnion("commandType", [
|
|
6934
7202
|
sessionCommand("stop", {
|
|
6935
|
-
reason:
|
|
7203
|
+
reason: z4.string().trim().min(1).optional()
|
|
6936
7204
|
}),
|
|
6937
7205
|
sessionCommand("resume", {
|
|
6938
7206
|
resumeEventId: ContractIdentifierSchema.optional()
|
|
@@ -6946,8 +7214,8 @@ var AgentSessionCommandSchema = z3.discriminatedUnion("commandType", [
|
|
|
6946
7214
|
}),
|
|
6947
7215
|
sessionCommand("approval", {
|
|
6948
7216
|
approvalId: ContractIdentifierSchema,
|
|
6949
|
-
decision:
|
|
6950
|
-
reason:
|
|
7217
|
+
decision: z4.enum(["approved", "rejected"]),
|
|
7218
|
+
reason: z4.string().trim().min(1).optional()
|
|
6951
7219
|
}),
|
|
6952
7220
|
sessionCommand("fork", {
|
|
6953
7221
|
sourceThreadId: ContractIdentifierSchema,
|
|
@@ -6959,12 +7227,12 @@ var AgentSessionCommandSchema = z3.discriminatedUnion("commandType", [
|
|
|
6959
7227
|
sourceThreadId: ContractIdentifierSchema,
|
|
6960
7228
|
sourceMessageId: ContractIdentifierSchema,
|
|
6961
7229
|
sourceRunId: ContractIdentifierSchema,
|
|
6962
|
-
replacementParts:
|
|
7230
|
+
replacementParts: z4.array(JsonValueSchema).min(1),
|
|
6963
7231
|
inheritance: AgentSessionContextInheritanceSchema
|
|
6964
7232
|
}),
|
|
6965
7233
|
sessionCommand("steer", {
|
|
6966
7234
|
targetRunId: ContractIdentifierSchema,
|
|
6967
|
-
text:
|
|
7235
|
+
text: z4.string().trim().min(1)
|
|
6968
7236
|
})
|
|
6969
7237
|
]).superRefine((value, context) => {
|
|
6970
7238
|
if (value.commandType === "steer" && value.runId !== value.payload.targetRunId) {
|
|
@@ -6983,9 +7251,9 @@ var AgentSessionCommandSchema = z3.discriminatedUnion("commandType", [
|
|
|
6983
7251
|
}
|
|
6984
7252
|
});
|
|
6985
7253
|
var AgentSessionTargetedCommandSchema = AgentSessionCommandSchema.and(
|
|
6986
|
-
|
|
7254
|
+
z4.object({ runId: ContractIdentifierSchema })
|
|
6987
7255
|
);
|
|
6988
|
-
var AgentSessionCommandErrorCodeSchema =
|
|
7256
|
+
var AgentSessionCommandErrorCodeSchema = z4.enum([
|
|
6989
7257
|
"SESSION_NOT_FOUND",
|
|
6990
7258
|
"RUN_NOT_FOUND",
|
|
6991
7259
|
"ACTIVE_RUN_NOT_FOUND",
|
|
@@ -7006,25 +7274,25 @@ var AgentSessionCommandErrorCodeSchema = z3.enum([
|
|
|
7006
7274
|
"ACTIVE_BRANCH_NOT_FOUND",
|
|
7007
7275
|
"COMMAND_EXECUTION_FAILED"
|
|
7008
7276
|
]);
|
|
7009
|
-
var AgentSessionCommandResultSchema =
|
|
7010
|
-
contract:
|
|
7277
|
+
var AgentSessionCommandResultSchema = z4.object({
|
|
7278
|
+
contract: z4.literal("AgentSessionCommandResult"),
|
|
7011
7279
|
commandId: ContractIdentifierSchema,
|
|
7012
7280
|
sessionId: ContractIdentifierSchema,
|
|
7013
7281
|
runId: ContractIdentifierSchema.optional(),
|
|
7014
7282
|
idempotencyKey: ContractIdentifierSchema,
|
|
7015
|
-
outcome:
|
|
7283
|
+
outcome: z4.enum(["accepted", "duplicate", "rejected", "failed"]),
|
|
7016
7284
|
sessionStatus: AgentSessionStatusSchema,
|
|
7017
|
-
acceptedSequence:
|
|
7018
|
-
resultEventIds:
|
|
7019
|
-
operation:
|
|
7285
|
+
acceptedSequence: z4.number().int().nonnegative().optional(),
|
|
7286
|
+
resultEventIds: z4.array(ContractIdentifierSchema).default([]),
|
|
7287
|
+
operation: z4.object({
|
|
7020
7288
|
lineage: AgentSessionLineageSchema,
|
|
7021
7289
|
activeBranch: AgentSessionActiveBranchSchema
|
|
7022
7290
|
}).strict().optional(),
|
|
7023
|
-
termination:
|
|
7024
|
-
error:
|
|
7291
|
+
termination: z4.enum(["requested", "confirmed"]).optional(),
|
|
7292
|
+
error: z4.object({
|
|
7025
7293
|
code: AgentSessionCommandErrorCodeSchema,
|
|
7026
|
-
message:
|
|
7027
|
-
retryable:
|
|
7294
|
+
message: z4.string(),
|
|
7295
|
+
retryable: z4.boolean()
|
|
7028
7296
|
}).strict().optional(),
|
|
7029
7297
|
occurredAt: IsoDateTimeSchema
|
|
7030
7298
|
}).strict().superRefine((value, context) => {
|
|
@@ -7087,13 +7355,13 @@ var AGENT_SESSION_COMMAND_TRANSITIONS = {
|
|
|
7087
7355
|
"edit-and-rerun": {},
|
|
7088
7356
|
steer: {}
|
|
7089
7357
|
};
|
|
7090
|
-
var AgentSessionCommandPolicySchema =
|
|
7358
|
+
var AgentSessionCommandPolicySchema = z4.object({
|
|
7091
7359
|
capability: AgentSessionCapabilitySchema.optional(),
|
|
7092
|
-
allowedStatuses:
|
|
7093
|
-
requiresRunId:
|
|
7094
|
-
sourceSessionEffect:
|
|
7095
|
-
idempotencyScope:
|
|
7096
|
-
sequenceRule:
|
|
7360
|
+
allowedStatuses: z4.array(AgentSessionStatusSchema).min(1),
|
|
7361
|
+
requiresRunId: z4.boolean(),
|
|
7362
|
+
sourceSessionEffect: z4.enum(["transition", "preserve"]),
|
|
7363
|
+
idempotencyScope: z4.literal("session-command"),
|
|
7364
|
+
sequenceRule: z4.enum(["match-current", "target-run"])
|
|
7097
7365
|
}).strict();
|
|
7098
7366
|
var sessionCommandPolicy = (policy) => AgentSessionCommandPolicySchema.parse(policy);
|
|
7099
7367
|
var AGENT_SESSION_COMMAND_POLICIES = Object.freeze({
|
|
@@ -7185,150 +7453,151 @@ function canApplyAgentSessionRunStatus(current, next) {
|
|
|
7185
7453
|
};
|
|
7186
7454
|
return transitions[current].includes(next);
|
|
7187
7455
|
}
|
|
7188
|
-
var AgentSessionEventHeaderSchema =
|
|
7189
|
-
contract:
|
|
7456
|
+
var AgentSessionEventHeaderSchema = z4.object({
|
|
7457
|
+
contract: z4.literal("AgentSessionEvent"),
|
|
7190
7458
|
eventId: ContractIdentifierSchema,
|
|
7191
7459
|
sessionId: ContractIdentifierSchema,
|
|
7192
7460
|
runId: ContractIdentifierSchema.optional(),
|
|
7193
7461
|
sourceMessageId: ContractIdentifierSchema.optional(),
|
|
7194
|
-
sequence:
|
|
7462
|
+
sequence: z4.number().int().nonnegative(),
|
|
7195
7463
|
idempotencyKey: ContractIdentifierSchema,
|
|
7196
7464
|
occurredAt: IsoDateTimeSchema
|
|
7197
7465
|
}).strict();
|
|
7198
7466
|
var sessionEvent = (eventType, payload) => AgentSessionEventHeaderSchema.extend({
|
|
7199
|
-
eventType:
|
|
7200
|
-
payload:
|
|
7467
|
+
eventType: z4.literal(eventType),
|
|
7468
|
+
payload: z4.object(payload).strict()
|
|
7201
7469
|
}).strict();
|
|
7202
|
-
var AgentSessionEventSchema =
|
|
7470
|
+
var AgentSessionEventSchema = z4.discriminatedUnion("eventType", [
|
|
7203
7471
|
sessionEvent("message", {
|
|
7204
7472
|
messageId: ContractIdentifierSchema,
|
|
7205
|
-
role:
|
|
7206
|
-
operation:
|
|
7207
|
-
parts:
|
|
7208
|
-
status:
|
|
7473
|
+
role: z4.enum(["user", "assistant", "system"]),
|
|
7474
|
+
operation: z4.enum(["append", "replace"]).default("append"),
|
|
7475
|
+
parts: z4.array(JsonValueSchema),
|
|
7476
|
+
status: z4.enum(["streaming", "completed", "failed"]).optional()
|
|
7209
7477
|
}),
|
|
7210
7478
|
sessionEvent("reasoning", {
|
|
7211
7479
|
reasoningId: ContractIdentifierSchema,
|
|
7212
|
-
text:
|
|
7213
|
-
status:
|
|
7480
|
+
text: z4.string(),
|
|
7481
|
+
status: z4.enum(["streaming", "completed"])
|
|
7214
7482
|
}),
|
|
7215
7483
|
sessionEvent("plan", {
|
|
7216
7484
|
planId: ContractIdentifierSchema,
|
|
7217
|
-
title:
|
|
7218
|
-
status:
|
|
7219
|
-
steps:
|
|
7220
|
-
|
|
7485
|
+
title: z4.string().optional(),
|
|
7486
|
+
status: z4.enum(["pending", "running", "completed", "failed"]),
|
|
7487
|
+
steps: z4.array(
|
|
7488
|
+
z4.object({
|
|
7221
7489
|
id: ContractIdentifierSchema,
|
|
7222
|
-
title:
|
|
7223
|
-
status:
|
|
7490
|
+
title: z4.string(),
|
|
7491
|
+
status: z4.enum(["pending", "running", "completed", "failed", "skipped"])
|
|
7224
7492
|
}).strict()
|
|
7225
7493
|
)
|
|
7226
7494
|
}),
|
|
7227
7495
|
sessionEvent("task", {
|
|
7228
7496
|
taskId: ContractIdentifierSchema,
|
|
7229
|
-
title:
|
|
7230
|
-
status:
|
|
7231
|
-
detail:
|
|
7497
|
+
title: z4.string(),
|
|
7498
|
+
status: z4.enum(["pending", "running", "completed", "failed", "skipped"]),
|
|
7499
|
+
detail: z4.string().optional()
|
|
7232
7500
|
}),
|
|
7233
7501
|
sessionEvent("tool", {
|
|
7234
7502
|
toolCallId: ContractIdentifierSchema,
|
|
7235
|
-
toolName:
|
|
7236
|
-
status:
|
|
7503
|
+
toolName: z4.string().trim().min(1),
|
|
7504
|
+
status: z4.enum(["pending", "running", "completed", "failed", "denied"]),
|
|
7237
7505
|
input: JsonValueSchema.optional(),
|
|
7238
7506
|
output: JsonValueSchema.optional(),
|
|
7239
|
-
error:
|
|
7507
|
+
error: z4.string().optional(),
|
|
7240
7508
|
startedAt: IsoDateTimeSchema.optional(),
|
|
7241
7509
|
completedAt: IsoDateTimeSchema.optional()
|
|
7242
7510
|
}),
|
|
7243
7511
|
sessionEvent("approval", {
|
|
7244
7512
|
approvalId: ContractIdentifierSchema,
|
|
7245
7513
|
toolCallId: ContractIdentifierSchema.optional(),
|
|
7246
|
-
status:
|
|
7247
|
-
title:
|
|
7248
|
-
description:
|
|
7514
|
+
status: z4.enum(["requested", "approved", "rejected", "expired"]),
|
|
7515
|
+
title: z4.string(),
|
|
7516
|
+
description: z4.string().optional(),
|
|
7249
7517
|
requestedAction: JsonValueSchema.optional()
|
|
7250
7518
|
}),
|
|
7251
7519
|
sessionEvent("status", {
|
|
7252
7520
|
status: AgentSessionStatusSchema,
|
|
7253
|
-
detail:
|
|
7521
|
+
detail: z4.string().optional(),
|
|
7254
7522
|
startedAt: IsoDateTimeSchema.optional(),
|
|
7255
7523
|
stoppingRequestedAt: IsoDateTimeSchema.optional(),
|
|
7256
7524
|
stoppedAt: IsoDateTimeSchema.optional(),
|
|
7257
7525
|
completedAt: IsoDateTimeSchema.optional(),
|
|
7258
7526
|
failedAt: IsoDateTimeSchema.optional(),
|
|
7259
|
-
durationMs:
|
|
7527
|
+
durationMs: z4.number().nonnegative().optional()
|
|
7260
7528
|
}),
|
|
7261
7529
|
sessionEvent("artifact", {
|
|
7262
7530
|
artifactId: ContractIdentifierSchema,
|
|
7263
|
-
name:
|
|
7264
|
-
kind:
|
|
7265
|
-
status:
|
|
7266
|
-
mimeType:
|
|
7267
|
-
url:
|
|
7268
|
-
|
|
7531
|
+
name: z4.string().trim().min(1),
|
|
7532
|
+
kind: z4.enum(["file", "image", "video", "audio", "web", "other"]),
|
|
7533
|
+
status: z4.enum(["pending", "ready", "failed"]),
|
|
7534
|
+
mimeType: z4.string().optional(),
|
|
7535
|
+
url: z4.string().url().optional(),
|
|
7536
|
+
fileUri: ManagedFileUriSchema.optional(),
|
|
7537
|
+
size: z4.number().int().nonnegative().optional(),
|
|
7269
7538
|
sourceEventId: ContractIdentifierSchema.optional()
|
|
7270
7539
|
}),
|
|
7271
7540
|
sessionEvent("usage", {
|
|
7272
|
-
inputTokens:
|
|
7273
|
-
outputTokens:
|
|
7274
|
-
totalTokens:
|
|
7275
|
-
contextTokens:
|
|
7276
|
-
contextWindow:
|
|
7541
|
+
inputTokens: z4.number().int().nonnegative().optional(),
|
|
7542
|
+
outputTokens: z4.number().int().nonnegative().optional(),
|
|
7543
|
+
totalTokens: z4.number().int().nonnegative().optional(),
|
|
7544
|
+
contextTokens: z4.number().int().nonnegative().optional(),
|
|
7545
|
+
contextWindow: z4.number().int().positive().optional()
|
|
7277
7546
|
}),
|
|
7278
7547
|
sessionEvent("resume", {
|
|
7279
|
-
resumable:
|
|
7548
|
+
resumable: z4.boolean(),
|
|
7280
7549
|
state: JsonObjectSchema.optional(),
|
|
7281
|
-
reason:
|
|
7550
|
+
reason: z4.string().optional()
|
|
7282
7551
|
}),
|
|
7283
7552
|
sessionEvent("error", {
|
|
7284
|
-
code:
|
|
7285
|
-
message:
|
|
7286
|
-
retryable:
|
|
7553
|
+
code: z4.string().trim().min(1),
|
|
7554
|
+
message: z4.string(),
|
|
7555
|
+
retryable: z4.boolean(),
|
|
7287
7556
|
sourceEventId: ContractIdentifierSchema.optional(),
|
|
7288
7557
|
details: JsonObjectSchema.optional()
|
|
7289
7558
|
}),
|
|
7290
7559
|
sessionEvent("diff", {
|
|
7291
|
-
path:
|
|
7292
|
-
status:
|
|
7293
|
-
patch:
|
|
7560
|
+
path: z4.string().trim().min(1),
|
|
7561
|
+
status: z4.enum(["added", "modified", "deleted", "renamed"]),
|
|
7562
|
+
patch: z4.string().optional()
|
|
7294
7563
|
}),
|
|
7295
7564
|
sessionEvent("workspace-file", {
|
|
7296
|
-
path:
|
|
7297
|
-
operation:
|
|
7298
|
-
mimeType:
|
|
7299
|
-
size:
|
|
7565
|
+
path: z4.string().trim().min(1),
|
|
7566
|
+
operation: z4.enum(["upsert", "delete"]),
|
|
7567
|
+
mimeType: z4.string().optional(),
|
|
7568
|
+
size: z4.number().int().nonnegative().optional()
|
|
7300
7569
|
}),
|
|
7301
7570
|
sessionEvent("terminal", {
|
|
7302
7571
|
terminalId: ContractIdentifierSchema,
|
|
7303
|
-
stream:
|
|
7304
|
-
chunk:
|
|
7305
|
-
exitCode:
|
|
7572
|
+
stream: z4.enum(["stdin", "stdout", "stderr", "status"]),
|
|
7573
|
+
chunk: z4.string(),
|
|
7574
|
+
exitCode: z4.number().int().optional()
|
|
7306
7575
|
}),
|
|
7307
7576
|
sessionEvent("test-result", {
|
|
7308
7577
|
testId: ContractIdentifierSchema,
|
|
7309
|
-
name:
|
|
7310
|
-
status:
|
|
7311
|
-
durationMs:
|
|
7312
|
-
output:
|
|
7578
|
+
name: z4.string(),
|
|
7579
|
+
status: z4.enum(["running", "passed", "failed", "skipped"]),
|
|
7580
|
+
durationMs: z4.number().nonnegative().optional(),
|
|
7581
|
+
output: z4.string().optional()
|
|
7313
7582
|
}),
|
|
7314
7583
|
sessionEvent("steer", {
|
|
7315
7584
|
commandId: ContractIdentifierSchema,
|
|
7316
7585
|
targetRunId: ContractIdentifierSchema,
|
|
7317
|
-
text:
|
|
7318
|
-
status:
|
|
7319
|
-
error:
|
|
7586
|
+
text: z4.string().trim().min(1),
|
|
7587
|
+
status: z4.enum(["accepted", "applied", "failed"]),
|
|
7588
|
+
error: z4.object({
|
|
7320
7589
|
code: AgentSessionCommandErrorCodeSchema,
|
|
7321
|
-
message:
|
|
7322
|
-
retryable:
|
|
7590
|
+
message: z4.string(),
|
|
7591
|
+
retryable: z4.boolean()
|
|
7323
7592
|
}).strict().optional()
|
|
7324
7593
|
}),
|
|
7325
7594
|
sessionEvent("summary", {
|
|
7326
7595
|
summaryId: ContractIdentifierSchema,
|
|
7327
7596
|
runId: ContractIdentifierSchema,
|
|
7328
|
-
text:
|
|
7329
|
-
highlights:
|
|
7330
|
-
pendingItems:
|
|
7331
|
-
status:
|
|
7597
|
+
text: z4.string(),
|
|
7598
|
+
highlights: z4.array(z4.string()),
|
|
7599
|
+
pendingItems: z4.array(z4.string()),
|
|
7600
|
+
status: z4.enum(["generating", "completed", "failed"])
|
|
7332
7601
|
})
|
|
7333
7602
|
]).superRefine((value, context) => {
|
|
7334
7603
|
if (value.eventType === "steer") {
|
|
@@ -7384,14 +7653,14 @@ var AgentSessionRunEventSchema = AgentSessionEventSchema.superRefine((value, con
|
|
|
7384
7653
|
});
|
|
7385
7654
|
}
|
|
7386
7655
|
});
|
|
7387
|
-
var AgentSessionViewModelSchema =
|
|
7388
|
-
contract:
|
|
7656
|
+
var AgentSessionViewModelSchema = z4.object({
|
|
7657
|
+
contract: z4.literal("AgentSessionViewModel"),
|
|
7389
7658
|
sessionId: ContractIdentifierSchema,
|
|
7390
7659
|
snapshot: AgentSessionSnapshotSchema,
|
|
7391
7660
|
status: AgentSessionStatusSchema,
|
|
7392
|
-
events:
|
|
7393
|
-
lastSequence:
|
|
7394
|
-
resumable:
|
|
7661
|
+
events: z4.array(AgentSessionEventSchema),
|
|
7662
|
+
lastSequence: z4.number().int().min(-1),
|
|
7663
|
+
resumable: z4.boolean().default(false),
|
|
7395
7664
|
lineage: AgentSessionLineageSchema.optional(),
|
|
7396
7665
|
activeBranch: AgentSessionActiveBranchSchema.optional()
|
|
7397
7666
|
}).strict().superRefine((value, context) => {
|
|
@@ -7440,55 +7709,55 @@ var AgentSessionViewModelSchema = z3.object({
|
|
|
7440
7709
|
});
|
|
7441
7710
|
}
|
|
7442
7711
|
});
|
|
7443
|
-
var AgentWorkbenchNavigationItemStatusSchema =
|
|
7444
|
-
var AgentWorkbenchCollectionStatusSchema =
|
|
7445
|
-
var AgentWorkbenchAgentItemSchema =
|
|
7712
|
+
var AgentWorkbenchNavigationItemStatusSchema = z4.enum(["idle", "running", "completed", "error"]);
|
|
7713
|
+
var AgentWorkbenchCollectionStatusSchema = z4.enum(["loading", "ready", "error"]);
|
|
7714
|
+
var AgentWorkbenchAgentItemSchema = z4.object({
|
|
7446
7715
|
id: ContractIdentifierSchema,
|
|
7447
|
-
name:
|
|
7448
|
-
description:
|
|
7449
|
-
iconUrl:
|
|
7450
|
-
builtIn:
|
|
7451
|
-
pinned:
|
|
7452
|
-
pinPending:
|
|
7453
|
-
}).strict();
|
|
7454
|
-
var AgentWorkbenchSessionItemSchema =
|
|
7716
|
+
name: z4.string().min(1),
|
|
7717
|
+
description: z4.string().optional(),
|
|
7718
|
+
iconUrl: z4.string().url().optional(),
|
|
7719
|
+
builtIn: z4.boolean().default(false),
|
|
7720
|
+
pinned: z4.boolean().default(false),
|
|
7721
|
+
pinPending: z4.boolean().default(false)
|
|
7722
|
+
}).strict();
|
|
7723
|
+
var AgentWorkbenchSessionItemSchema = z4.object({
|
|
7455
7724
|
id: ContractIdentifierSchema,
|
|
7456
|
-
title:
|
|
7725
|
+
title: z4.string().min(1),
|
|
7457
7726
|
updatedAt: IsoDateTimeSchema,
|
|
7458
|
-
thumbnailUrl:
|
|
7727
|
+
thumbnailUrl: z4.string().url().optional(),
|
|
7459
7728
|
mode: AgentModeSchema.optional(),
|
|
7460
7729
|
status: AgentWorkbenchNavigationItemStatusSchema.default("idle"),
|
|
7461
|
-
pinned:
|
|
7462
|
-
contextUsage:
|
|
7463
|
-
usedTokens:
|
|
7464
|
-
maxTokens:
|
|
7730
|
+
pinned: z4.boolean().default(false),
|
|
7731
|
+
contextUsage: z4.object({
|
|
7732
|
+
usedTokens: z4.number().int().nonnegative(),
|
|
7733
|
+
maxTokens: z4.number().int().positive()
|
|
7465
7734
|
}).strict().optional()
|
|
7466
7735
|
}).strict();
|
|
7467
|
-
var AgentWorkbenchNavigationCapabilitiesSchema =
|
|
7468
|
-
createAgent:
|
|
7469
|
-
createSession:
|
|
7470
|
-
manageCapabilities:
|
|
7471
|
-
manageAgentSettings:
|
|
7472
|
-
pinAgents:
|
|
7473
|
-
pinSessions:
|
|
7474
|
-
renameSessions:
|
|
7475
|
-
deleteSessions:
|
|
7476
|
-
}).strict();
|
|
7477
|
-
var AgentWorkbenchNavigationViewModelSchema =
|
|
7478
|
-
contract:
|
|
7479
|
-
activeTab:
|
|
7480
|
-
searchQuery:
|
|
7736
|
+
var AgentWorkbenchNavigationCapabilitiesSchema = z4.object({
|
|
7737
|
+
createAgent: z4.boolean().default(false),
|
|
7738
|
+
createSession: z4.boolean().default(true),
|
|
7739
|
+
manageCapabilities: z4.boolean().default(false),
|
|
7740
|
+
manageAgentSettings: z4.boolean().default(false),
|
|
7741
|
+
pinAgents: z4.boolean().default(false),
|
|
7742
|
+
pinSessions: z4.boolean().default(false),
|
|
7743
|
+
renameSessions: z4.boolean().default(false),
|
|
7744
|
+
deleteSessions: z4.boolean().default(false)
|
|
7745
|
+
}).strict();
|
|
7746
|
+
var AgentWorkbenchNavigationViewModelSchema = z4.object({
|
|
7747
|
+
contract: z4.literal("AgentWorkbenchNavigationViewModel"),
|
|
7748
|
+
activeTab: z4.enum(["agents", "sessions"]).default("sessions"),
|
|
7749
|
+
searchQuery: z4.string().default(""),
|
|
7481
7750
|
selectedAgentItem: ContractIdentifierSchema.optional(),
|
|
7482
7751
|
selectedSessionItem: ContractIdentifierSchema.optional(),
|
|
7483
|
-
agents:
|
|
7752
|
+
agents: z4.object({
|
|
7484
7753
|
status: AgentWorkbenchCollectionStatusSchema,
|
|
7485
|
-
items:
|
|
7486
|
-
error:
|
|
7754
|
+
items: z4.array(AgentWorkbenchAgentItemSchema),
|
|
7755
|
+
error: z4.string().optional()
|
|
7487
7756
|
}).strict(),
|
|
7488
|
-
sessions:
|
|
7757
|
+
sessions: z4.object({
|
|
7489
7758
|
status: AgentWorkbenchCollectionStatusSchema,
|
|
7490
|
-
items:
|
|
7491
|
-
error:
|
|
7759
|
+
items: z4.array(AgentWorkbenchSessionItemSchema),
|
|
7760
|
+
error: z4.string().optional()
|
|
7492
7761
|
}).strict(),
|
|
7493
7762
|
capabilities: AgentWorkbenchNavigationCapabilitiesSchema
|
|
7494
7763
|
}).strict().superRefine((value, context) => {
|
|
@@ -7504,53 +7773,53 @@ var AgentWorkbenchNavigationViewModelSchema = z3.object({
|
|
|
7504
7773
|
validateCollection(value.agents, "agents");
|
|
7505
7774
|
validateCollection(value.sessions, "sessions");
|
|
7506
7775
|
});
|
|
7507
|
-
var AgentWorkbenchComposerStatusSchema =
|
|
7776
|
+
var AgentWorkbenchComposerStatusSchema = z4.enum([
|
|
7508
7777
|
"idle",
|
|
7509
7778
|
"loading",
|
|
7510
7779
|
"streaming",
|
|
7511
7780
|
"stopping",
|
|
7512
7781
|
"error"
|
|
7513
7782
|
]);
|
|
7514
|
-
var AgentWorkbenchComposerAttachmentSchema =
|
|
7783
|
+
var AgentWorkbenchComposerAttachmentSchema = z4.object({
|
|
7515
7784
|
id: ContractIdentifierSchema,
|
|
7516
|
-
name:
|
|
7517
|
-
mediaType:
|
|
7518
|
-
previewUrl:
|
|
7519
|
-
status:
|
|
7785
|
+
name: z4.string().min(1),
|
|
7786
|
+
mediaType: z4.string().min(1).optional(),
|
|
7787
|
+
previewUrl: z4.string().min(1).optional(),
|
|
7788
|
+
status: z4.enum(["uploading", "ready", "error"]).default("ready")
|
|
7520
7789
|
}).strict();
|
|
7521
|
-
var AgentWorkbenchComposerQueueItemSchema =
|
|
7790
|
+
var AgentWorkbenchComposerQueueItemSchema = z4.object({
|
|
7522
7791
|
id: ContractIdentifierSchema,
|
|
7523
|
-
text:
|
|
7524
|
-
attachmentCount:
|
|
7525
|
-
status:
|
|
7792
|
+
text: z4.string(),
|
|
7793
|
+
attachmentCount: z4.number().int().nonnegative().default(0),
|
|
7794
|
+
status: z4.enum(["queued", "sending", "error"]).default("queued")
|
|
7526
7795
|
}).strict();
|
|
7527
|
-
var AgentWorkbenchComposerInputActionIconSchema =
|
|
7796
|
+
var AgentWorkbenchComposerInputActionIconSchema = z4.enum([
|
|
7528
7797
|
"file-text",
|
|
7529
7798
|
"image"
|
|
7530
7799
|
]);
|
|
7531
|
-
var AgentWorkbenchComposerInputActionSchema =
|
|
7800
|
+
var AgentWorkbenchComposerInputActionSchema = z4.object({
|
|
7532
7801
|
id: ContractIdentifierSchema,
|
|
7533
|
-
label:
|
|
7802
|
+
label: z4.string().min(1),
|
|
7534
7803
|
icon: AgentWorkbenchComposerInputActionIconSchema.optional()
|
|
7535
7804
|
}).strict();
|
|
7536
|
-
var AgentWorkbenchComposerModelOptionSchema =
|
|
7805
|
+
var AgentWorkbenchComposerModelOptionSchema = z4.object({
|
|
7537
7806
|
id: ContractIdentifierSchema,
|
|
7538
|
-
label:
|
|
7539
|
-
provider:
|
|
7807
|
+
label: z4.string().min(1),
|
|
7808
|
+
provider: z4.string().min(1).optional(),
|
|
7540
7809
|
mode: AgentModeSchema,
|
|
7541
|
-
disabled:
|
|
7542
|
-
}).strict();
|
|
7543
|
-
var AgentWorkbenchComposerCapabilitiesSchema =
|
|
7544
|
-
attachments:
|
|
7545
|
-
voiceInput:
|
|
7546
|
-
webSearch:
|
|
7547
|
-
modelSelection:
|
|
7548
|
-
reasoning:
|
|
7549
|
-
permissions:
|
|
7550
|
-
queue:
|
|
7551
|
-
stop:
|
|
7552
|
-
}).strict();
|
|
7553
|
-
var AgentWorkbenchQuickStartIconSchema =
|
|
7810
|
+
disabled: z4.boolean().default(false)
|
|
7811
|
+
}).strict();
|
|
7812
|
+
var AgentWorkbenchComposerCapabilitiesSchema = z4.object({
|
|
7813
|
+
attachments: z4.boolean().default(false),
|
|
7814
|
+
voiceInput: z4.boolean().default(false),
|
|
7815
|
+
webSearch: z4.boolean().default(false),
|
|
7816
|
+
modelSelection: z4.boolean().default(false),
|
|
7817
|
+
reasoning: z4.boolean().default(false),
|
|
7818
|
+
permissions: z4.boolean().default(false),
|
|
7819
|
+
queue: z4.boolean().default(false),
|
|
7820
|
+
stop: z4.boolean().default(false)
|
|
7821
|
+
}).strict();
|
|
7822
|
+
var AgentWorkbenchQuickStartIconSchema = z4.enum([
|
|
7554
7823
|
"sparkles",
|
|
7555
7824
|
"palette",
|
|
7556
7825
|
"search",
|
|
@@ -7558,32 +7827,32 @@ var AgentWorkbenchQuickStartIconSchema = z3.enum([
|
|
|
7558
7827
|
"code",
|
|
7559
7828
|
"shopping-bag"
|
|
7560
7829
|
]);
|
|
7561
|
-
var AgentWorkbenchQuickStartTemplateActionSchema =
|
|
7562
|
-
var AgentWorkbenchQuickStartTemplateSchema =
|
|
7830
|
+
var AgentWorkbenchQuickStartTemplateActionSchema = z4.enum(["prompt", "upload"]);
|
|
7831
|
+
var AgentWorkbenchQuickStartTemplateSchema = z4.object({
|
|
7563
7832
|
id: ContractIdentifierSchema,
|
|
7564
|
-
title:
|
|
7565
|
-
description:
|
|
7566
|
-
prompt:
|
|
7833
|
+
title: z4.string().min(1),
|
|
7834
|
+
description: z4.string().min(1).optional(),
|
|
7835
|
+
prompt: z4.string().min(1),
|
|
7567
7836
|
action: AgentWorkbenchQuickStartTemplateActionSchema.default("prompt"),
|
|
7568
7837
|
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
7569
|
-
coverImageUrl:
|
|
7570
|
-
accept:
|
|
7571
|
-
multiple:
|
|
7572
|
-
modes:
|
|
7838
|
+
coverImageUrl: z4.string().min(1).optional(),
|
|
7839
|
+
accept: z4.string().min(1).default("*/*"),
|
|
7840
|
+
multiple: z4.boolean().default(false),
|
|
7841
|
+
modes: z4.array(AgentModeSchema).min(1).optional()
|
|
7573
7842
|
}).strict();
|
|
7574
|
-
var AgentWorkbenchQuickStartSectionSchema =
|
|
7843
|
+
var AgentWorkbenchQuickStartSectionSchema = z4.object({
|
|
7575
7844
|
id: ContractIdentifierSchema,
|
|
7576
|
-
label:
|
|
7577
|
-
templates:
|
|
7845
|
+
label: z4.string().min(1),
|
|
7846
|
+
templates: z4.array(AgentWorkbenchQuickStartTemplateSchema).min(1)
|
|
7578
7847
|
}).strict();
|
|
7579
|
-
var AgentWorkbenchQuickStartCategorySchema =
|
|
7848
|
+
var AgentWorkbenchQuickStartCategorySchema = z4.object({
|
|
7580
7849
|
id: ContractIdentifierSchema,
|
|
7581
|
-
label:
|
|
7850
|
+
label: z4.string().min(1),
|
|
7582
7851
|
icon: AgentWorkbenchQuickStartIconSchema.optional(),
|
|
7583
|
-
sections:
|
|
7852
|
+
sections: z4.array(AgentWorkbenchQuickStartSectionSchema).min(1)
|
|
7584
7853
|
}).strict();
|
|
7585
|
-
var AgentWorkbenchSidebarNavigationModeSchema =
|
|
7586
|
-
var AgentWorkbenchSidebarSectionSchema =
|
|
7854
|
+
var AgentWorkbenchSidebarNavigationModeSchema = z4.enum(["default", "session", "trend"]);
|
|
7855
|
+
var AgentWorkbenchSidebarSectionSchema = z4.enum([
|
|
7587
7856
|
"header",
|
|
7588
7857
|
"search",
|
|
7589
7858
|
"new-session",
|
|
@@ -7592,33 +7861,33 @@ var AgentWorkbenchSidebarSectionSchema = z3.enum([
|
|
|
7592
7861
|
"groups",
|
|
7593
7862
|
"footer"
|
|
7594
7863
|
]);
|
|
7595
|
-
var AgentWorkbenchSidebarGroupItemSchema =
|
|
7864
|
+
var AgentWorkbenchSidebarGroupItemSchema = z4.object({
|
|
7596
7865
|
id: ContractIdentifierSchema,
|
|
7597
|
-
title:
|
|
7598
|
-
subtitle:
|
|
7599
|
-
imageUrl:
|
|
7866
|
+
title: z4.string().trim().min(1).max(120),
|
|
7867
|
+
subtitle: z4.string().trim().min(1).max(240).optional(),
|
|
7868
|
+
imageUrl: z4.string().trim().min(1).max(2048).optional(),
|
|
7600
7869
|
/** Optional legacy prompt. Trend workbenches may use items as static report selectors. */
|
|
7601
|
-
prompt:
|
|
7602
|
-
mediaVariant:
|
|
7603
|
-
mediaTreatment:
|
|
7870
|
+
prompt: z4.string().trim().min(1).max(1e4).optional(),
|
|
7871
|
+
mediaVariant: z4.enum(["cover", "cover-with-label", "logo"]).optional(),
|
|
7872
|
+
mediaTreatment: z4.enum(["preserve", "monochrome-light", "invert"]).optional()
|
|
7604
7873
|
}).strict();
|
|
7605
|
-
var AgentWorkbenchSidebarGroupSchema =
|
|
7874
|
+
var AgentWorkbenchSidebarGroupSchema = z4.object({
|
|
7606
7875
|
id: ContractIdentifierSchema,
|
|
7607
|
-
label:
|
|
7608
|
-
items:
|
|
7609
|
-
itemAspectRatio:
|
|
7876
|
+
label: z4.string().trim().min(1).max(120),
|
|
7877
|
+
items: z4.array(AgentWorkbenchSidebarGroupItemSchema).min(1).max(50),
|
|
7878
|
+
itemAspectRatio: z4.number().positive().max(10).optional()
|
|
7610
7879
|
}).strict();
|
|
7611
|
-
var AgentWorkbenchSidebarConfigSchema =
|
|
7880
|
+
var AgentWorkbenchSidebarConfigSchema = z4.object({
|
|
7612
7881
|
navigationMode: AgentWorkbenchSidebarNavigationModeSchema.optional(),
|
|
7613
|
-
defaultOpen:
|
|
7882
|
+
defaultOpen: z4.boolean().optional(),
|
|
7614
7883
|
/** Initial sidebar width as a percentage of the workbench split pane. */
|
|
7615
|
-
widthPercent:
|
|
7616
|
-
visibleSections:
|
|
7617
|
-
groups:
|
|
7884
|
+
widthPercent: z4.number().int().min(10).max(40).optional(),
|
|
7885
|
+
visibleSections: z4.array(AgentWorkbenchSidebarSectionSchema).min(1).max(7).optional(),
|
|
7886
|
+
groups: z4.array(AgentWorkbenchSidebarGroupSchema).max(20).optional(),
|
|
7618
7887
|
defaultGroupId: ContractIdentifierSchema.optional(),
|
|
7619
|
-
quickStartEnabled:
|
|
7620
|
-
quickStartCategories:
|
|
7621
|
-
trendEntryEnabled:
|
|
7888
|
+
quickStartEnabled: z4.boolean().optional(),
|
|
7889
|
+
quickStartCategories: z4.array(AgentWorkbenchQuickStartCategorySchema).max(20).optional(),
|
|
7890
|
+
trendEntryEnabled: z4.boolean().optional()
|
|
7622
7891
|
}).strict().superRefine((value, context) => {
|
|
7623
7892
|
if (value.visibleSections && new Set(value.visibleSections).size !== value.visibleSections.length) {
|
|
7624
7893
|
context.addIssue({
|
|
@@ -7658,33 +7927,33 @@ function resolveAgentWorkbenchSidebarConfig(config) {
|
|
|
7658
7927
|
trendEntryEnabled: parsed.trendEntryEnabled ?? navigationMode === "trend"
|
|
7659
7928
|
};
|
|
7660
7929
|
}
|
|
7661
|
-
var AgentWorkbenchQuickStartViewModelSchema =
|
|
7662
|
-
contract:
|
|
7930
|
+
var AgentWorkbenchQuickStartViewModelSchema = z4.object({
|
|
7931
|
+
contract: z4.literal("AgentWorkbenchQuickStartViewModel"),
|
|
7663
7932
|
mode: AgentModeSchema,
|
|
7664
|
-
categories:
|
|
7665
|
-
disabled:
|
|
7933
|
+
categories: z4.array(AgentWorkbenchQuickStartCategorySchema).min(1),
|
|
7934
|
+
disabled: z4.boolean().default(false)
|
|
7666
7935
|
}).strict();
|
|
7667
|
-
var AgentWorkbenchComposerViewModelSchema =
|
|
7668
|
-
contract:
|
|
7669
|
-
value:
|
|
7936
|
+
var AgentWorkbenchComposerViewModelSchema = z4.object({
|
|
7937
|
+
contract: z4.literal("AgentWorkbenchComposerViewModel"),
|
|
7938
|
+
value: z4.string().default(""),
|
|
7670
7939
|
status: AgentWorkbenchComposerStatusSchema.default("idle"),
|
|
7671
7940
|
mode: AgentModeSchema,
|
|
7672
|
-
placeholder:
|
|
7673
|
-
attachments:
|
|
7674
|
-
queuedDrafts:
|
|
7675
|
-
inputActions:
|
|
7941
|
+
placeholder: z4.string().optional(),
|
|
7942
|
+
attachments: z4.array(AgentWorkbenchComposerAttachmentSchema).default([]),
|
|
7943
|
+
queuedDrafts: z4.array(AgentWorkbenchComposerQueueItemSchema).default([]),
|
|
7944
|
+
inputActions: z4.array(AgentWorkbenchComposerInputActionSchema).default([]),
|
|
7676
7945
|
selectedInputActionId: ContractIdentifierSchema.optional(),
|
|
7677
|
-
model:
|
|
7946
|
+
model: z4.object({
|
|
7678
7947
|
selectedId: ContractIdentifierSchema.optional(),
|
|
7679
|
-
options:
|
|
7948
|
+
options: z4.array(AgentWorkbenchComposerModelOptionSchema)
|
|
7680
7949
|
}).strict(),
|
|
7681
|
-
reasoning:
|
|
7682
|
-
value:
|
|
7683
|
-
options:
|
|
7950
|
+
reasoning: z4.object({
|
|
7951
|
+
value: z4.enum(["low", "medium", "high", "xhigh"]),
|
|
7952
|
+
options: z4.array(z4.enum(["low", "medium", "high", "xhigh"])).min(1)
|
|
7684
7953
|
}).strict().optional(),
|
|
7685
7954
|
permissionProfile: AgentSessionPermissionProfileSchema.optional(),
|
|
7686
|
-
webSearchEnabled:
|
|
7687
|
-
error:
|
|
7955
|
+
webSearchEnabled: z4.boolean().default(false),
|
|
7956
|
+
error: z4.string().optional(),
|
|
7688
7957
|
capabilities: AgentWorkbenchComposerCapabilitiesSchema
|
|
7689
7958
|
}).strict().superRefine((value, context) => {
|
|
7690
7959
|
if (value.status === "error" && !value.error) {
|
|
@@ -7714,273 +7983,6 @@ function normalizeStudioAgentMode(value) {
|
|
|
7714
7983
|
var normalizeAgentMode = normalizeStudioAgentMode;
|
|
7715
7984
|
var normalizeAgentExecutionMode = normalizeStudioAgentMode;
|
|
7716
7985
|
|
|
7717
|
-
// src/contracts/file.ts
|
|
7718
|
-
import { z as z4 } from "zod";
|
|
7719
|
-
var FILE_PURPOSES = [
|
|
7720
|
-
"uploads",
|
|
7721
|
-
"agent-attachments",
|
|
7722
|
-
"agent-artifacts",
|
|
7723
|
-
"agent-edited-images",
|
|
7724
|
-
"agent-workbench",
|
|
7725
|
-
"agent-skill-archives",
|
|
7726
|
-
"asset-screenshots",
|
|
7727
|
-
"data-exports",
|
|
7728
|
-
"data-feature-media",
|
|
7729
|
-
"design-assets",
|
|
7730
|
-
"design-board-thumbnails",
|
|
7731
|
-
"design-images",
|
|
7732
|
-
"dev-agent-reference-images",
|
|
7733
|
-
"dev-agent-review-artifacts",
|
|
7734
|
-
"external-delivery-techpacks",
|
|
7735
|
-
"llm-generated-images",
|
|
7736
|
-
"media-generated",
|
|
7737
|
-
"media-uploads",
|
|
7738
|
-
"model-training-files",
|
|
7739
|
-
"models",
|
|
7740
|
-
"models-checkpoints",
|
|
7741
|
-
"models-clip",
|
|
7742
|
-
"models-controlnet",
|
|
7743
|
-
"models-diffusion-models",
|
|
7744
|
-
"models-loras-test",
|
|
7745
|
-
"models-vae",
|
|
7746
|
-
"output-images",
|
|
7747
|
-
"plugin-data-imports",
|
|
7748
|
-
"plugin-runtime",
|
|
7749
|
-
"plugin-runtime-outputs",
|
|
7750
|
-
"step-thumbnails",
|
|
7751
|
-
"techpack-design-intent",
|
|
7752
|
-
"user-files-base",
|
|
7753
|
-
"user-files-design-board-background",
|
|
7754
|
-
"user-files-design-project-cover",
|
|
7755
|
-
"user-files-designs",
|
|
7756
|
-
"user-files-icons",
|
|
7757
|
-
"user-files-import-comfyui-image",
|
|
7758
|
-
"user-files-import-comfyui-json",
|
|
7759
|
-
"user-files-import-comfyui-json-url",
|
|
7760
|
-
"user-files-instruction-input",
|
|
7761
|
-
"user-files-linesheet",
|
|
7762
|
-
"user-files-media",
|
|
7763
|
-
"user-files-other",
|
|
7764
|
-
"user-files-prompt-assistant",
|
|
7765
|
-
"user-files-table-data",
|
|
7766
|
-
"user-files-techpack-attachments",
|
|
7767
|
-
"user-files-text-data-file",
|
|
7768
|
-
"user-files-workflow-input",
|
|
7769
|
-
"workflow-image-mask",
|
|
7770
|
-
"workflow-image-overlay",
|
|
7771
|
-
"workflow-import"
|
|
7772
|
-
];
|
|
7773
|
-
var FilePurposeSchema = z4.enum(FILE_PURPOSES);
|
|
7774
|
-
var FileStatusSchema = z4.enum(["pending", "ready", "failed", "deleted"]);
|
|
7775
|
-
var FileVariantStatusSchema = z4.enum(["queued", "processing", "ready", "failed"]);
|
|
7776
|
-
var FILE_USAGE_OWNER_TYPES = [
|
|
7777
|
-
"file-resource",
|
|
7778
|
-
"agent-record",
|
|
7779
|
-
"agent-message",
|
|
7780
|
-
"agent-skill-archive",
|
|
7781
|
-
"data-asset",
|
|
7782
|
-
"data-export",
|
|
7783
|
-
"design-board",
|
|
7784
|
-
"external-delivery",
|
|
7785
|
-
"kernel-runtime",
|
|
7786
|
-
"llm-generated-media",
|
|
7787
|
-
"model-training-media",
|
|
7788
|
-
"plugin-run"
|
|
7789
|
-
];
|
|
7790
|
-
var FileUsageOwnerTypeSchema = z4.enum(FILE_USAGE_OWNER_TYPES);
|
|
7791
|
-
var FileUsageSchema = z4.object({
|
|
7792
|
-
ownerType: FileUsageOwnerTypeSchema,
|
|
7793
|
-
ownerId: ContractIdentifierSchema,
|
|
7794
|
-
field: ContractIdentifierSchema.optional()
|
|
7795
|
-
}).strict();
|
|
7796
|
-
var ManagedFileUriSchema = z4.string().regex(/^file:\/\/[A-Za-z0-9][A-Za-z0-9_-]{0,127}(?:#[A-Za-z0-9_-]+)?$/);
|
|
7797
|
-
var TransferUrlSchema = z4.string().min(1).max(16384).refine((value) => {
|
|
7798
|
-
if (/^\/(?!\/)/.test(value)) return !/[\u0000-\u0020\\]/.test(value);
|
|
7799
|
-
try {
|
|
7800
|
-
const url = new URL(value);
|
|
7801
|
-
return ["http:", "https:"].includes(url.protocol) && !url.username && !url.password;
|
|
7802
|
-
} catch {
|
|
7803
|
-
return false;
|
|
7804
|
-
}
|
|
7805
|
-
}, "Expected an HTTP(S) URL or absolute same-origin path");
|
|
7806
|
-
var TransferHeadersSchema = z4.record(
|
|
7807
|
-
z4.string().regex(/^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/),
|
|
7808
|
-
z4.string().refine((value) => !/[\u0000\r\n]/.test(value), "Invalid header value")
|
|
7809
|
-
);
|
|
7810
|
-
var FileReadInstructionSchema = z4.object({
|
|
7811
|
-
mode: z4.enum(["direct", "proxy"]),
|
|
7812
|
-
url: TransferUrlSchema,
|
|
7813
|
-
method: z4.literal("GET"),
|
|
7814
|
-
headers: TransferHeadersSchema,
|
|
7815
|
-
expiresAt: IsoDateTimeSchema.nullable()
|
|
7816
|
-
}).strict().superRefine((value, context) => {
|
|
7817
|
-
if (value.mode === "proxy" && !/^\/(?!\/)/.test(value.url))
|
|
7818
|
-
context.addIssue({ code: "custom", path: ["url"], message: "A browser proxy must use a same-origin path" });
|
|
7819
|
-
});
|
|
7820
|
-
var FileResourcePathSchema = z4.string().min(1).max(1024).refine((path2) => {
|
|
7821
|
-
if (/^[\/\\]|[\\\u0000-\u001f:?#]/.test(path2)) return false;
|
|
7822
|
-
try {
|
|
7823
|
-
const decoded = decodeURIComponent(path2);
|
|
7824
|
-
return !/^[\/\\]|[\\\u0000-\u001f:?#]/.test(decoded) && decoded.split("/").every((part) => part && part !== "." && part !== "..");
|
|
7825
|
-
} catch {
|
|
7826
|
-
return false;
|
|
7827
|
-
}
|
|
7828
|
-
}, "Expected a safe relative resource path");
|
|
7829
|
-
var FileResourceManifestSchema = z4.object({
|
|
7830
|
-
version: z4.literal(1),
|
|
7831
|
-
entryPath: FileResourcePathSchema.optional(),
|
|
7832
|
-
resources: z4.array(z4.object({ path: FileResourcePathSchema, uri: ManagedFileUriSchema }).strict()).max(1e3)
|
|
7833
|
-
}).strict().superRefine((value, context) => {
|
|
7834
|
-
if (new Set(value.resources.map((resource) => resource.path)).size !== value.resources.length)
|
|
7835
|
-
context.addIssue({ code: "custom", path: ["resources"], message: "Resource paths must be unique" });
|
|
7836
|
-
});
|
|
7837
|
-
var FileReferenceSchema = z4.object({
|
|
7838
|
-
id: ContractIdentifierSchema.optional(),
|
|
7839
|
-
uri: z4.string().trim().min(1).optional(),
|
|
7840
|
-
thumbnailUri: z4.string().trim().min(1).optional(),
|
|
7841
|
-
mimeType: z4.string().trim().min(1).max(128).optional(),
|
|
7842
|
-
byteSize: z4.number().int().nonnegative().optional(),
|
|
7843
|
-
sha256: Sha256Schema.optional()
|
|
7844
|
-
}).strict().refine((value) => Boolean(value.id || value.uri), {
|
|
7845
|
-
message: "File reference requires id or uri"
|
|
7846
|
-
});
|
|
7847
|
-
var FileVariantSchema = z4.object({
|
|
7848
|
-
variantId: ContractIdentifierSchema,
|
|
7849
|
-
kind: z4.literal("thumbnail-512"),
|
|
7850
|
-
status: FileVariantStatusSchema,
|
|
7851
|
-
mimeType: z4.literal("image/webp"),
|
|
7852
|
-
byteSize: z4.number().int().nonnegative().optional(),
|
|
7853
|
-
width: z4.number().int().positive().optional(),
|
|
7854
|
-
height: z4.number().int().positive().optional(),
|
|
7855
|
-
uri: z4.string().trim().min(1).optional(),
|
|
7856
|
-
errorCode: ContractIdentifierSchema.optional()
|
|
7857
|
-
}).strict();
|
|
7858
|
-
var FileRecordSchema = z4.object({
|
|
7859
|
-
contract: z4.literal("FileRecord"),
|
|
7860
|
-
contractVersion: z4.literal(1),
|
|
7861
|
-
version: z4.number().int().positive(),
|
|
7862
|
-
fileId: ContractIdentifierSchema,
|
|
7863
|
-
teamId: ContractIdentifierSchema,
|
|
7864
|
-
purpose: FilePurposeSchema,
|
|
7865
|
-
originalName: z4.string().trim().min(1).max(255),
|
|
7866
|
-
mimeType: z4.string().trim().min(1).max(128),
|
|
7867
|
-
byteSize: z4.number().int().nonnegative().optional(),
|
|
7868
|
-
sha256: Sha256Schema.optional(),
|
|
7869
|
-
status: FileStatusSchema,
|
|
7870
|
-
storage: z4.object({
|
|
7871
|
-
bucketId: ContractIdentifierSchema,
|
|
7872
|
-
objectKey: z4.string().trim().min(1).max(1024),
|
|
7873
|
-
canonicalUri: z4.string().trim().min(1),
|
|
7874
|
-
etag: z4.string().trim().min(1).optional()
|
|
7875
|
-
}).strict(),
|
|
7876
|
-
variants: z4.array(FileVariantSchema).default([]),
|
|
7877
|
-
resourceManifest: FileResourceManifestSchema.optional(),
|
|
7878
|
-
createdAt: IsoDateTimeSchema,
|
|
7879
|
-
updatedAt: IsoDateTimeSchema
|
|
7880
|
-
}).strict().superRefine((value, context) => {
|
|
7881
|
-
if (value.storage.canonicalUri !== `file://${value.fileId}`) {
|
|
7882
|
-
context.addIssue({
|
|
7883
|
-
code: "custom",
|
|
7884
|
-
path: ["storage", "canonicalUri"],
|
|
7885
|
-
message: "Canonical file URI must match fileId"
|
|
7886
|
-
});
|
|
7887
|
-
}
|
|
7888
|
-
});
|
|
7889
|
-
var FileUploadCreateRequestSchema = z4.object({
|
|
7890
|
-
purpose: FilePurposeSchema,
|
|
7891
|
-
filename: z4.string().trim().min(1).max(255),
|
|
7892
|
-
mimeType: z4.string().trim().min(1).max(128),
|
|
7893
|
-
byteSize: z4.number().int().nonnegative().optional(),
|
|
7894
|
-
sha256: Sha256Schema.optional(),
|
|
7895
|
-
usage: FileUsageSchema.optional(),
|
|
7896
|
-
requestId: ContractIdentifierSchema.optional(),
|
|
7897
|
-
forceProxy: z4.boolean().optional()
|
|
7898
|
-
}).strict();
|
|
7899
|
-
var FileUploadInstructionSchema = z4.object({
|
|
7900
|
-
url: TransferUrlSchema,
|
|
7901
|
-
method: z4.string().trim().min(1),
|
|
7902
|
-
headers: TransferHeadersSchema,
|
|
7903
|
-
expiresAt: IsoDateTimeSchema,
|
|
7904
|
-
mode: z4.enum(["direct", "proxy"]).optional()
|
|
7905
|
-
}).strict();
|
|
7906
|
-
var FileUploadCreateResponseSchema = z4.object({
|
|
7907
|
-
file: FileRecordSchema,
|
|
7908
|
-
upload: FileUploadInstructionSchema
|
|
7909
|
-
}).strict();
|
|
7910
|
-
var FileUploadCompleteRequestSchema = z4.object({
|
|
7911
|
-
byteSize: z4.number().int().nonnegative().optional(),
|
|
7912
|
-
sha256: Sha256Schema.optional(),
|
|
7913
|
-
etag: z4.string().trim().min(1).max(512).optional(),
|
|
7914
|
-
resourceManifest: FileResourceManifestSchema.optional()
|
|
7915
|
-
}).strict();
|
|
7916
|
-
var ResolvedFileSchema = z4.object({
|
|
7917
|
-
fileId: ContractIdentifierSchema.optional(),
|
|
7918
|
-
status: FileStatusSchema.optional(),
|
|
7919
|
-
originalUri: z4.string().trim().min(1).optional(),
|
|
7920
|
-
thumbnailUri: z4.string().trim().min(1).optional(),
|
|
7921
|
-
version: z4.number().int().positive().optional(),
|
|
7922
|
-
resourceManifest: FileResourceManifestSchema.optional(),
|
|
7923
|
-
originalAccess: FileReadInstructionSchema.optional(),
|
|
7924
|
-
thumbnailAccess: FileReadInstructionSchema.optional(),
|
|
7925
|
-
mimeType: z4.string().trim().min(1).max(128).optional(),
|
|
7926
|
-
byteSize: z4.number().int().nonnegative().optional(),
|
|
7927
|
-
sha256: Sha256Schema.optional(),
|
|
7928
|
-
unresolved: z4.boolean().optional()
|
|
7929
|
-
}).strict();
|
|
7930
|
-
var FileResolveBatchRequestSchema = z4.object({
|
|
7931
|
-
references: z4.array(FileReferenceSchema).min(1).max(1e3),
|
|
7932
|
-
includeOriginal: z4.boolean().default(false),
|
|
7933
|
-
includeThumbnail: z4.boolean().default(true),
|
|
7934
|
-
includeAccessInstructions: z4.boolean().default(false),
|
|
7935
|
-
forceProxy: z4.boolean().default(false)
|
|
7936
|
-
}).strict();
|
|
7937
|
-
var FileResolveBatchResponseSchema = z4.object({
|
|
7938
|
-
items: z4.array(ResolvedFileSchema)
|
|
7939
|
-
}).strict();
|
|
7940
|
-
var ManagedFileCommandTypeSchema = z4.enum([
|
|
7941
|
-
"create-file",
|
|
7942
|
-
"attach-usage",
|
|
7943
|
-
"detach-usage",
|
|
7944
|
-
"record-upload",
|
|
7945
|
-
"verify-upload",
|
|
7946
|
-
"delete-file"
|
|
7947
|
-
]);
|
|
7948
|
-
var ManagedFileCommandSchema = z4.object({
|
|
7949
|
-
contract: z4.literal("ManagedFileCommand"),
|
|
7950
|
-
contractVersion: z4.literal(1),
|
|
7951
|
-
commandId: ContractIdentifierSchema,
|
|
7952
|
-
commandType: ManagedFileCommandTypeSchema,
|
|
7953
|
-
fileId: ContractIdentifierSchema,
|
|
7954
|
-
teamId: ContractIdentifierSchema,
|
|
7955
|
-
expectedVersion: z4.number().int().nonnegative().optional(),
|
|
7956
|
-
actorId: ContractIdentifierSchema.optional(),
|
|
7957
|
-
payload: JsonObjectSchema.default({}),
|
|
7958
|
-
issuedAt: IsoDateTimeSchema
|
|
7959
|
-
}).strict();
|
|
7960
|
-
var ManagedFileEventTypeSchema = z4.enum([
|
|
7961
|
-
"file-created",
|
|
7962
|
-
"file-usage-attached",
|
|
7963
|
-
"file-usage-detached",
|
|
7964
|
-
"storage-operation-queued",
|
|
7965
|
-
"storage-operation-completed",
|
|
7966
|
-
"storage-operation-failed",
|
|
7967
|
-
"file-ready",
|
|
7968
|
-
"file-deleted"
|
|
7969
|
-
]);
|
|
7970
|
-
var ManagedFileEventSchema = z4.object({
|
|
7971
|
-
contract: z4.literal("ManagedFileEvent"),
|
|
7972
|
-
contractVersion: z4.literal(1),
|
|
7973
|
-
eventId: ContractIdentifierSchema,
|
|
7974
|
-
eventType: ManagedFileEventTypeSchema,
|
|
7975
|
-
fileId: ContractIdentifierSchema,
|
|
7976
|
-
teamId: ContractIdentifierSchema,
|
|
7977
|
-
aggregateVersion: z4.number().int().positive(),
|
|
7978
|
-
commandId: ContractIdentifierSchema,
|
|
7979
|
-
actorId: ContractIdentifierSchema.optional(),
|
|
7980
|
-
payload: JsonObjectSchema.default({}),
|
|
7981
|
-
occurredAt: IsoDateTimeSchema
|
|
7982
|
-
}).strict();
|
|
7983
|
-
|
|
7984
7986
|
// src/contracts/page-expression.ts
|
|
7985
7987
|
import { z as z5 } from "zod";
|
|
7986
7988
|
var PageMemberSchema = z5.string().min(1).max(256).refine(
|
|
@@ -20153,6 +20155,31 @@ export {
|
|
|
20153
20155
|
PermissionBundleSchema,
|
|
20154
20156
|
SystemGroupDefinitionSchema,
|
|
20155
20157
|
ProductAccessDeclarationSchema,
|
|
20158
|
+
FILE_PURPOSES,
|
|
20159
|
+
FilePurposeSchema,
|
|
20160
|
+
FileStatusSchema,
|
|
20161
|
+
FileVariantStatusSchema,
|
|
20162
|
+
FILE_USAGE_OWNER_TYPES,
|
|
20163
|
+
FileUsageOwnerTypeSchema,
|
|
20164
|
+
FileUsageSchema,
|
|
20165
|
+
ManagedFileUriSchema,
|
|
20166
|
+
FileReadInstructionSchema,
|
|
20167
|
+
FileResourcePathSchema,
|
|
20168
|
+
FileResourceManifestSchema,
|
|
20169
|
+
FileReferenceSchema,
|
|
20170
|
+
FileVariantSchema,
|
|
20171
|
+
FileRecordSchema,
|
|
20172
|
+
FileUploadCreateRequestSchema,
|
|
20173
|
+
FileUploadInstructionSchema,
|
|
20174
|
+
FileUploadCreateResponseSchema,
|
|
20175
|
+
FileUploadCompleteRequestSchema,
|
|
20176
|
+
ResolvedFileSchema,
|
|
20177
|
+
FileResolveBatchRequestSchema,
|
|
20178
|
+
FileResolveBatchResponseSchema,
|
|
20179
|
+
ManagedFileCommandTypeSchema,
|
|
20180
|
+
ManagedFileCommandSchema,
|
|
20181
|
+
ManagedFileEventTypeSchema,
|
|
20182
|
+
ManagedFileEventSchema,
|
|
20156
20183
|
StudioAgentModeSchema,
|
|
20157
20184
|
AgentModeSchema,
|
|
20158
20185
|
AgentConfigurationCapabilitySchema,
|
|
@@ -20227,31 +20254,6 @@ export {
|
|
|
20227
20254
|
normalizeStudioAgentMode,
|
|
20228
20255
|
normalizeAgentMode,
|
|
20229
20256
|
normalizeAgentExecutionMode,
|
|
20230
|
-
FILE_PURPOSES,
|
|
20231
|
-
FilePurposeSchema,
|
|
20232
|
-
FileStatusSchema,
|
|
20233
|
-
FileVariantStatusSchema,
|
|
20234
|
-
FILE_USAGE_OWNER_TYPES,
|
|
20235
|
-
FileUsageOwnerTypeSchema,
|
|
20236
|
-
FileUsageSchema,
|
|
20237
|
-
ManagedFileUriSchema,
|
|
20238
|
-
FileReadInstructionSchema,
|
|
20239
|
-
FileResourcePathSchema,
|
|
20240
|
-
FileResourceManifestSchema,
|
|
20241
|
-
FileReferenceSchema,
|
|
20242
|
-
FileVariantSchema,
|
|
20243
|
-
FileRecordSchema,
|
|
20244
|
-
FileUploadCreateRequestSchema,
|
|
20245
|
-
FileUploadInstructionSchema,
|
|
20246
|
-
FileUploadCreateResponseSchema,
|
|
20247
|
-
FileUploadCompleteRequestSchema,
|
|
20248
|
-
ResolvedFileSchema,
|
|
20249
|
-
FileResolveBatchRequestSchema,
|
|
20250
|
-
FileResolveBatchResponseSchema,
|
|
20251
|
-
ManagedFileCommandTypeSchema,
|
|
20252
|
-
ManagedFileCommandSchema,
|
|
20253
|
-
ManagedFileEventTypeSchema,
|
|
20254
|
-
ManagedFileEventSchema,
|
|
20255
20257
|
PageMemberSchema,
|
|
20256
20258
|
PageValuePathSchema,
|
|
20257
20259
|
PageExpressionRootSchema,
|
|
@@ -20667,4 +20669,4 @@ export {
|
|
|
20667
20669
|
RecordEditorValidationDetailsSchema,
|
|
20668
20670
|
RecordEditorSubmissionSnapshotSchema
|
|
20669
20671
|
};
|
|
20670
|
-
//# sourceMappingURL=chunk-
|
|
20672
|
+
//# sourceMappingURL=chunk-QODKWH56.mjs.map
|