openmeld 0.3.83 → 0.3.85
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/{add-me-membership-B9LeL4Ud.js → add-me-membership-CsoQDzyh.js} +2 -2
- package/dist/{add-me-membership-B9LeL4Ud.js.map → add-me-membership-CsoQDzyh.js.map} +1 -1
- package/dist/{api-client-foundation-Chryr5BZ.js → api-client-foundation-9MJAKRpy.js} +3 -3
- package/dist/{api-client-foundation-Chryr5BZ.js.map → api-client-foundation-9MJAKRpy.js.map} +1 -1
- package/dist/{auth-session-BJZuJ2bM.js → auth-session-vFtLpWjB.js} +2 -2
- package/dist/{auth-session-BJZuJ2bM.js.map → auth-session-vFtLpWjB.js.map} +1 -1
- package/dist/{command-22-KBBsD.js → command-BjGlkb0g.js} +158 -110
- package/dist/{command-22-KBBsD.js.map → command-BjGlkb0g.js.map} +1 -1
- package/dist/{dist-Cm4BbP8Y.js → dist-CJnq8AgJ.js} +263 -11
- package/dist/dist-CJnq8AgJ.js.map +1 -0
- package/dist/openmeld.js +794 -20
- package/dist/openmeld.js.map +1 -1
- package/dist/{runtime-transport-DI97Fndy.js → runtime-transport-DEj52An9.js} +225 -40
- package/dist/runtime-transport-DEj52An9.js.map +1 -0
- package/package.json +1 -1
- package/skills/openmeld-cli/SKILL.md +21 -0
- package/skills/openmeld-cli/references/commands.md +17 -0
- package/dist/dist-Cm4BbP8Y.js.map +0 -1
- package/dist/runtime-transport-DI97Fndy.js.map +0 -1
|
@@ -2870,8 +2870,8 @@ const toolIdentifierSchema = z.string().trim().min(1).max(160);
|
|
|
2870
2870
|
const HOSTNAME_PATTERN = /^(?:[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)(?:\.(?:[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?))*$/iu;
|
|
2871
2871
|
const IPV6_HOSTNAME_PATTERN = /^\[[\da-f:.]+\]$/iu;
|
|
2872
2872
|
const REPOSITORY_LABEL_PATTERN = /^[a-z\d](?:[a-z\d_.-]*[a-z\d])?\/[a-z\d](?:[a-z\d_.-]*[a-z\d])?$/iu;
|
|
2873
|
-
const agentWorkSubjectLabelSchema = z.string().trim().min(1).max(120).refine((label) => !hasControlCharacter(label), { message: "subject label must not contain control characters" });
|
|
2874
|
-
function hasControlCharacter(value) {
|
|
2873
|
+
const agentWorkSubjectLabelSchema = z.string().trim().min(1).max(120).refine((label) => !hasControlCharacter$1(label), { message: "subject label must not contain control characters" });
|
|
2874
|
+
function hasControlCharacter$1(value) {
|
|
2875
2875
|
for (const character of value) {
|
|
2876
2876
|
const codePoint = character.codePointAt(0);
|
|
2877
2877
|
if (codePoint !== void 0 && (codePoint <= 31 || codePoint >= 127 && codePoint <= 159)) return true;
|
|
@@ -2983,6 +2983,8 @@ const agentWorkActivityKeySchema = z.enum([
|
|
|
2983
2983
|
"space.agents.wake",
|
|
2984
2984
|
"space.context.read",
|
|
2985
2985
|
"space.create",
|
|
2986
|
+
"space.files.read",
|
|
2987
|
+
"space.files.update",
|
|
2986
2988
|
"space.members.add",
|
|
2987
2989
|
"space.message.post",
|
|
2988
2990
|
"space.settings.update",
|
|
@@ -4096,6 +4098,212 @@ const openMeldDaemonControlPlaneResponseSchema = z.discriminatedUnion("code", [
|
|
|
4096
4098
|
openMeldDaemonControlPlaneErrorResponseSchema
|
|
4097
4099
|
]);
|
|
4098
4100
|
//#endregion
|
|
4101
|
+
//#region ../../packages/schemas/dist/schemas/http/space-files.js
|
|
4102
|
+
const SPACE_FILE_MAX_SIZE_BYTES = 10 * 1024 * 1024;
|
|
4103
|
+
const PATH_SEPARATOR_PATTERN = /[\\/]/u;
|
|
4104
|
+
const MEDIA_TYPE_PATTERN = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/u;
|
|
4105
|
+
const MIME_TYPES_BY_EXTENSION = {
|
|
4106
|
+
".csv": "text/csv",
|
|
4107
|
+
".gif": "image/gif",
|
|
4108
|
+
".html": "text/html",
|
|
4109
|
+
".jpeg": "image/jpeg",
|
|
4110
|
+
".jpg": "image/jpeg",
|
|
4111
|
+
".json": "application/json",
|
|
4112
|
+
".md": "text/markdown",
|
|
4113
|
+
".markdown": "text/markdown",
|
|
4114
|
+
".pdf": "application/pdf",
|
|
4115
|
+
".png": "image/png",
|
|
4116
|
+
".svg": "image/svg+xml",
|
|
4117
|
+
".txt": "text/plain",
|
|
4118
|
+
".xml": "application/xml",
|
|
4119
|
+
".yaml": "application/yaml",
|
|
4120
|
+
".yml": "application/yaml"
|
|
4121
|
+
};
|
|
4122
|
+
const scopeIdSchema = z.string().trim().min(1).max(512);
|
|
4123
|
+
const spaceFileEntryIdSchema = z.string().trim().min(1).max(128);
|
|
4124
|
+
const spaceFileRevisionIdSchema = z.string().trim().min(1).max(128);
|
|
4125
|
+
const spaceFileClientMutationIdSchema = z.string().trim().min(1).max(128);
|
|
4126
|
+
const spaceFileRevisionNumberSchema = z.number().int().min(1);
|
|
4127
|
+
const spaceFileBaseRevisionSchema = z.number().int().min(1).nullable();
|
|
4128
|
+
const spaceFileSizeBytesSchema = z.number().int().min(0).max(SPACE_FILE_MAX_SIZE_BYTES);
|
|
4129
|
+
const spaceFileMimeTypeSchema = z.string().trim().toLowerCase().max(255).regex(MEDIA_TYPE_PATTERN, "File type must be a valid media type.");
|
|
4130
|
+
const spaceFileNameSchema = z.string().transform((value) => value.trim()).pipe(z.string().min(1).max(255).refine((value) => !PATH_SEPARATOR_PATTERN.test(value), { message: "File names cannot contain path separators." }).refine((value) => !hasControlCharacter(value), { message: "File names cannot contain control characters." }).refine((value) => value !== "." && value !== "..", { message: "File names cannot be dot path segments." }));
|
|
4131
|
+
const spaceFileActorSchema = z.strictObject({
|
|
4132
|
+
profileId: scopeIdSchema,
|
|
4133
|
+
profileKind: z.enum(["human", "agent"]),
|
|
4134
|
+
displayName: z.string().trim().min(1).max(200),
|
|
4135
|
+
ownerUserId: scopeIdSchema.optional()
|
|
4136
|
+
});
|
|
4137
|
+
const spaceFileRevisionSchema = z.strictObject({
|
|
4138
|
+
id: spaceFileRevisionIdSchema,
|
|
4139
|
+
fileId: spaceFileEntryIdSchema,
|
|
4140
|
+
revision: spaceFileRevisionNumberSchema,
|
|
4141
|
+
mimeType: spaceFileMimeTypeSchema,
|
|
4142
|
+
sizeBytes: spaceFileSizeBytesSchema,
|
|
4143
|
+
createdAt: z.iso.datetime({ offset: true }),
|
|
4144
|
+
createdBy: spaceFileActorSchema
|
|
4145
|
+
});
|
|
4146
|
+
/**
|
|
4147
|
+
* Canonical Space File revision embedded in a message. `fileId` and
|
|
4148
|
+
* `revision` identify the immutable bytes; the remaining fields are the
|
|
4149
|
+
* server-resolved send-time presentation snapshot.
|
|
4150
|
+
*/
|
|
4151
|
+
const spaceMessageFileReferenceSchema = z.strictObject({
|
|
4152
|
+
fileId: spaceFileEntryIdSchema,
|
|
4153
|
+
revision: spaceFileRevisionNumberSchema,
|
|
4154
|
+
name: spaceFileNameSchema,
|
|
4155
|
+
mimeType: spaceFileMimeTypeSchema,
|
|
4156
|
+
sizeBytes: spaceFileSizeBytesSchema
|
|
4157
|
+
});
|
|
4158
|
+
const spaceMessageFileReferencesSchema = z.array(spaceMessageFileReferenceSchema).max(10);
|
|
4159
|
+
const baseEntryShape = {
|
|
4160
|
+
id: spaceFileEntryIdSchema,
|
|
4161
|
+
spaceId: scopeIdSchema,
|
|
4162
|
+
parentId: spaceFileEntryIdSchema.nullable(),
|
|
4163
|
+
name: spaceFileNameSchema,
|
|
4164
|
+
path: z.string().startsWith("/").max(4096),
|
|
4165
|
+
createdAt: z.iso.datetime({ offset: true }),
|
|
4166
|
+
updatedAt: z.iso.datetime({ offset: true }),
|
|
4167
|
+
createdBy: spaceFileActorSchema,
|
|
4168
|
+
updatedBy: spaceFileActorSchema,
|
|
4169
|
+
trashedAt: z.iso.datetime({ offset: true }).nullable().default(null),
|
|
4170
|
+
trashedBy: spaceFileActorSchema.nullable().default(null)
|
|
4171
|
+
};
|
|
4172
|
+
const spaceFolderDescriptorSchema = z.strictObject({
|
|
4173
|
+
...baseEntryShape,
|
|
4174
|
+
kind: z.literal("folder")
|
|
4175
|
+
});
|
|
4176
|
+
const spaceFileDescriptorSchema = z.strictObject({
|
|
4177
|
+
...baseEntryShape,
|
|
4178
|
+
kind: z.literal("file"),
|
|
4179
|
+
latestRevision: spaceFileRevisionSchema
|
|
4180
|
+
});
|
|
4181
|
+
const spaceFileEntrySchema = z.discriminatedUnion("kind", [spaceFolderDescriptorSchema, spaceFileDescriptorSchema]);
|
|
4182
|
+
const spaceFileBreadcrumbSchema = z.strictObject({
|
|
4183
|
+
id: spaceFileEntryIdSchema.nullable(),
|
|
4184
|
+
name: z.string().trim().min(1).max(255)
|
|
4185
|
+
});
|
|
4186
|
+
const spaceFileCapabilitiesSchema = z.strictObject({
|
|
4187
|
+
canRead: z.literal(true),
|
|
4188
|
+
canWrite: z.boolean()
|
|
4189
|
+
});
|
|
4190
|
+
z.strictObject({
|
|
4191
|
+
parentId: spaceFileEntryIdSchema.nullable().optional(),
|
|
4192
|
+
view: z.enum(["active", "trash"]).default("active")
|
|
4193
|
+
});
|
|
4194
|
+
const listSpaceFilesResponseSchema = z.strictObject({
|
|
4195
|
+
spaceId: scopeIdSchema,
|
|
4196
|
+
parentId: spaceFileEntryIdSchema.nullable(),
|
|
4197
|
+
view: z.enum(["active", "trash"]).default("active"),
|
|
4198
|
+
breadcrumbs: z.array(spaceFileBreadcrumbSchema),
|
|
4199
|
+
entries: z.array(spaceFileEntrySchema),
|
|
4200
|
+
capabilities: spaceFileCapabilitiesSchema
|
|
4201
|
+
});
|
|
4202
|
+
const getSpaceFileResponseSchema = z.strictObject({ file: spaceFileDescriptorSchema });
|
|
4203
|
+
const listSpaceFileRevisionsResponseSchema = z.strictObject({
|
|
4204
|
+
file: spaceFileDescriptorSchema,
|
|
4205
|
+
revisions: z.array(spaceFileRevisionSchema)
|
|
4206
|
+
});
|
|
4207
|
+
z.strictObject({
|
|
4208
|
+
name: spaceFileNameSchema,
|
|
4209
|
+
parentId: spaceFileEntryIdSchema.nullable().optional(),
|
|
4210
|
+
clientMutationId: spaceFileClientMutationIdSchema
|
|
4211
|
+
});
|
|
4212
|
+
const createSpaceFolderResponseSchema = z.strictObject({ folder: spaceFolderDescriptorSchema });
|
|
4213
|
+
z.strictObject({
|
|
4214
|
+
name: spaceFileNameSchema.optional(),
|
|
4215
|
+
parentId: spaceFileEntryIdSchema.nullable().optional(),
|
|
4216
|
+
clientMutationId: spaceFileClientMutationIdSchema
|
|
4217
|
+
}).refine((value) => value.name !== void 0 || value.parentId !== void 0, { message: "A new name or folder is required." });
|
|
4218
|
+
const updateSpaceFileEntryResponseSchema = z.strictObject({ entry: spaceFileEntrySchema });
|
|
4219
|
+
z.strictObject({ clientMutationId: spaceFileClientMutationIdSchema });
|
|
4220
|
+
const trashSpaceFileEntryResponseSchema = z.strictObject({
|
|
4221
|
+
entryId: spaceFileEntryIdSchema,
|
|
4222
|
+
trashedAt: z.iso.datetime({ offset: true })
|
|
4223
|
+
});
|
|
4224
|
+
z.strictObject({ clientMutationId: spaceFileClientMutationIdSchema });
|
|
4225
|
+
const restoreSpaceFileEntryResponseSchema = z.strictObject({ entry: spaceFileEntrySchema });
|
|
4226
|
+
z.strictObject({
|
|
4227
|
+
baseRevision: spaceFileRevisionNumberSchema,
|
|
4228
|
+
clientMutationId: spaceFileClientMutationIdSchema
|
|
4229
|
+
});
|
|
4230
|
+
const restoreSpaceFileRevisionResponseSchema = z.strictObject({ file: spaceFileDescriptorSchema });
|
|
4231
|
+
const queryIntegerSchema = z.string().trim().regex(/^\d+$/u).transform(Number);
|
|
4232
|
+
z.strictObject({
|
|
4233
|
+
name: spaceFileNameSchema,
|
|
4234
|
+
parentId: spaceFileEntryIdSchema.optional(),
|
|
4235
|
+
clientMutationId: spaceFileClientMutationIdSchema
|
|
4236
|
+
});
|
|
4237
|
+
z.strictObject({
|
|
4238
|
+
baseRevision: queryIntegerSchema.pipe(spaceFileRevisionNumberSchema),
|
|
4239
|
+
clientMutationId: spaceFileClientMutationIdSchema
|
|
4240
|
+
});
|
|
4241
|
+
const uploadSpaceFileResponseSchema = z.strictObject({ file: spaceFileDescriptorSchema });
|
|
4242
|
+
z.strictObject({ revision: queryIntegerSchema.pipe(spaceFileRevisionNumberSchema).optional() });
|
|
4243
|
+
const SPACE_FILE_ERROR_CODES = [
|
|
4244
|
+
"space_file.conflict",
|
|
4245
|
+
"space_file.folder_not_empty",
|
|
4246
|
+
"space_file.invalid_parent",
|
|
4247
|
+
"space_file.name_conflict",
|
|
4248
|
+
"space_file.not_found",
|
|
4249
|
+
"space_file.storage_failed",
|
|
4250
|
+
"space_file.too_large",
|
|
4251
|
+
"space_file.type_unsupported"
|
|
4252
|
+
];
|
|
4253
|
+
const spaceFileMutationErrorCodeSchema = z.enum(SPACE_FILE_ERROR_CODES);
|
|
4254
|
+
z.strictObject({ error: z.strictObject({
|
|
4255
|
+
code: spaceFileMutationErrorCodeSchema,
|
|
4256
|
+
message: z.string().trim().min(1).max(500),
|
|
4257
|
+
currentFile: spaceFileDescriptorSchema.optional()
|
|
4258
|
+
}) });
|
|
4259
|
+
z.strictObject({
|
|
4260
|
+
spaceId: scopeIdSchema,
|
|
4261
|
+
fileId: spaceFileEntryIdSchema,
|
|
4262
|
+
revisionId: spaceFileRevisionIdSchema,
|
|
4263
|
+
name: spaceFileNameSchema.optional(),
|
|
4264
|
+
parentId: spaceFileEntryIdSchema.nullable().optional(),
|
|
4265
|
+
baseRevision: spaceFileBaseRevisionSchema,
|
|
4266
|
+
clientMutationId: spaceFileClientMutationIdSchema,
|
|
4267
|
+
mimeType: spaceFileMimeTypeSchema,
|
|
4268
|
+
sizeBytes: spaceFileSizeBytesSchema
|
|
4269
|
+
});
|
|
4270
|
+
z.strictObject({
|
|
4271
|
+
organizationId: scopeIdSchema,
|
|
4272
|
+
spaceId: scopeIdSchema,
|
|
4273
|
+
fileId: spaceFileEntryIdSchema,
|
|
4274
|
+
revisionId: spaceFileRevisionIdSchema,
|
|
4275
|
+
objectKey: z.string().trim().min(1).max(4096),
|
|
4276
|
+
committedFile: spaceFileDescriptorSchema.optional()
|
|
4277
|
+
});
|
|
4278
|
+
z.strictObject({
|
|
4279
|
+
spaceId: scopeIdSchema,
|
|
4280
|
+
fileId: spaceFileEntryIdSchema,
|
|
4281
|
+
revision: spaceFileRevisionNumberSchema.optional()
|
|
4282
|
+
});
|
|
4283
|
+
z.strictObject({
|
|
4284
|
+
file: spaceFileDescriptorSchema,
|
|
4285
|
+
revision: spaceFileRevisionSchema,
|
|
4286
|
+
organizationId: scopeIdSchema,
|
|
4287
|
+
objectKey: z.string().trim().min(1).max(4096)
|
|
4288
|
+
});
|
|
4289
|
+
function isSpaceFileTextEditable(input) {
|
|
4290
|
+
return input.sizeBytes <= 1048576 && (input.mimeType.startsWith("text/") || input.mimeType === "application/json" || input.mimeType === "application/yaml" || input.mimeType === "application/x-yaml" || input.mimeType === "application/xml");
|
|
4291
|
+
}
|
|
4292
|
+
function resolveSpaceFileMimeType(input) {
|
|
4293
|
+
const declaredMimeType = input.declaredMimeType?.trim().toLowerCase();
|
|
4294
|
+
if (declaredMimeType) return declaredMimeType;
|
|
4295
|
+
const fileName = input.fileName.toLowerCase();
|
|
4296
|
+
const extensionStart = fileName.lastIndexOf(".");
|
|
4297
|
+
const extension = extensionStart >= 0 ? fileName.slice(extensionStart) : "";
|
|
4298
|
+
return MIME_TYPES_BY_EXTENSION[extension] ?? "application/octet-stream";
|
|
4299
|
+
}
|
|
4300
|
+
function hasControlCharacter(value) {
|
|
4301
|
+
return Array.from(value).some((character) => {
|
|
4302
|
+
const codePoint = character.codePointAt(0) ?? 0;
|
|
4303
|
+
return codePoint <= 31 || codePoint === 127;
|
|
4304
|
+
});
|
|
4305
|
+
}
|
|
4306
|
+
//#endregion
|
|
4099
4307
|
//#region ../../packages/schemas/dist/schemas/protocol/center-agent-interaction-source.js
|
|
4100
4308
|
/**
|
|
4101
4309
|
* Describes the authenticated client's carrier for a Center Agent request.
|
|
@@ -4200,21 +4408,6 @@ const conversationCompactionMarkerSchema = z.strictObject({
|
|
|
4200
4408
|
//#endregion
|
|
4201
4409
|
//#region ../../packages/schemas/dist/schemas/protocol/space-attachment.js
|
|
4202
4410
|
const SPACE_ATTACHMENT_ALLOWED_MIME_TYPES = ["image/jpeg", "image/png"];
|
|
4203
|
-
const JPEG_MAGIC_BYTES = [
|
|
4204
|
-
255,
|
|
4205
|
-
216,
|
|
4206
|
-
255
|
|
4207
|
-
];
|
|
4208
|
-
const PNG_MAGIC_BYTES = [
|
|
4209
|
-
137,
|
|
4210
|
-
80,
|
|
4211
|
-
78,
|
|
4212
|
-
71,
|
|
4213
|
-
13,
|
|
4214
|
-
10,
|
|
4215
|
-
26,
|
|
4216
|
-
10
|
|
4217
|
-
];
|
|
4218
4411
|
const SPACE_ATTACHMENT_MAX_SIZE_BYTES = 5242880;
|
|
4219
4412
|
const SPACE_ATTACHMENT_MAX_DIMENSION = 2e4;
|
|
4220
4413
|
const FILE_NAME_PATH_SEPARATOR_PATTERN = /[\\/]/;
|
|
@@ -4254,25 +4447,6 @@ const spaceMessageAttachmentSchema = z.strictObject({
|
|
|
4254
4447
|
fileName: spaceAttachmentFileNameSchema.optional()
|
|
4255
4448
|
});
|
|
4256
4449
|
const spaceMessageAttachmentsSchema = z.array(spaceMessageAttachmentSchema).max(4);
|
|
4257
|
-
function detectSpaceAttachmentMimeType(bytes) {
|
|
4258
|
-
const actual = bytes instanceof Uint8Array ? bytes : new Uint8Array(bytes);
|
|
4259
|
-
if (matchesMagicBytes(actual, PNG_MAGIC_BYTES)) return "image/png";
|
|
4260
|
-
if (matchesMagicBytes(actual, JPEG_MAGIC_BYTES)) return "image/jpeg";
|
|
4261
|
-
return null;
|
|
4262
|
-
}
|
|
4263
|
-
function projectSpaceMessageAttachment(descriptor) {
|
|
4264
|
-
return spaceMessageAttachmentSchema.parse({
|
|
4265
|
-
id: descriptor.id,
|
|
4266
|
-
mimeType: descriptor.mimeType,
|
|
4267
|
-
sizeBytes: descriptor.sizeBytes,
|
|
4268
|
-
...descriptor.width === void 0 ? {} : { width: descriptor.width },
|
|
4269
|
-
...descriptor.height === void 0 ? {} : { height: descriptor.height },
|
|
4270
|
-
...descriptor.fileName === void 0 ? {} : { fileName: descriptor.fileName }
|
|
4271
|
-
});
|
|
4272
|
-
}
|
|
4273
|
-
function matchesMagicBytes(bytes, expected) {
|
|
4274
|
-
return expected.every((value, index) => bytes[index] === value);
|
|
4275
|
-
}
|
|
4276
4450
|
z.strictObject({
|
|
4277
4451
|
spaceId: spaceAttachmentScopeIdSchema,
|
|
4278
4452
|
mimeType: spaceAttachmentMimeTypeSchema,
|
|
@@ -4313,7 +4487,7 @@ const sanitizeSignalTextPreview = (text) => {
|
|
|
4313
4487
|
};
|
|
4314
4488
|
const signalTextReplyToSchema = signalReplyToSchema;
|
|
4315
4489
|
const centerAgentTaskReferenceSchema = z.strictObject({ taskId: z.string().trim().min(1).max(256) });
|
|
4316
|
-
const signalTextContentSchema = z.preprocess(trimmedStringFromUnknown, z.string().
|
|
4490
|
+
const signalTextContentSchema = z.preprocess(trimmedStringFromUnknown, z.string().max(MAX_TEXT_LENGTH));
|
|
4317
4491
|
const runtimeDeviceDisplayNameSchema = z.preprocess(trimmedStringFromUnknown, z.string().min(1).max(80));
|
|
4318
4492
|
const legacySpaceAgentActivitySchema = spaceAgentActivitySchema.superRefine((activity, context) => {
|
|
4319
4493
|
activity.steps.forEach((step, index) => {
|
|
@@ -4409,13 +4583,22 @@ const addSignalTextMessageEnvelopeIssues = (input, context) => {
|
|
|
4409
4583
|
message: "messageEnvelope.replyToSignalId must match replyTo.signalId"
|
|
4410
4584
|
});
|
|
4411
4585
|
};
|
|
4586
|
+
const addSignalTextContentIssues = (input, context) => {
|
|
4587
|
+
if (input.text.length > 0 || (input.files?.length ?? 0) > 0) return;
|
|
4588
|
+
context.addIssue({
|
|
4589
|
+
code: z.ZodIssueCode.custom,
|
|
4590
|
+
path: ["text"],
|
|
4591
|
+
message: "A message must include text or at least one file"
|
|
4592
|
+
});
|
|
4593
|
+
};
|
|
4412
4594
|
const buildSignalTextDataSchema = (metaSchema) => z.strictObject({
|
|
4413
4595
|
text: signalTextContentSchema,
|
|
4414
4596
|
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
4597
|
+
files: spaceMessageFileReferencesSchema.optional(),
|
|
4415
4598
|
messageEnvelope: messageEnvelopeSchema.optional(),
|
|
4416
4599
|
replyTo: signalTextReplyToSchema.optional(),
|
|
4417
4600
|
meta: metaSchema.optional()
|
|
4418
|
-
}).superRefine(addSignalTextMessageEnvelopeIssues);
|
|
4601
|
+
}).superRefine(addSignalTextContentIssues).superRefine(addSignalTextMessageEnvelopeIssues);
|
|
4419
4602
|
const signalTextDataSchema = buildSignalTextDataSchema(signalTextMetaSchema);
|
|
4420
4603
|
const signalTextSchema = z.object({
|
|
4421
4604
|
type: z.literal("signal.text"),
|
|
@@ -4657,6 +4840,7 @@ const openMeldDaemonDispatchSourceSignalSnapshotSchema = z.strictObject({
|
|
|
4657
4840
|
]).nullable(),
|
|
4658
4841
|
profileMentionLabel: spaceMentionLabelSchema.optional(),
|
|
4659
4842
|
attachments: spaceMessageAttachmentsSchema.optional(),
|
|
4843
|
+
files: spaceMessageFileReferencesSchema.optional(),
|
|
4660
4844
|
centerAgentInteractionSource: centerAgentInteractionSourceSchema.optional()
|
|
4661
4845
|
});
|
|
4662
4846
|
const openMeldDaemonDispatchReplyToSnapshotSchema = signalTextReplyToSchema;
|
|
@@ -4930,6 +5114,7 @@ const openMeldSpacePostMessageActionSchema = z.strictObject({
|
|
|
4930
5114
|
type: z.literal("post_message"),
|
|
4931
5115
|
observedThroughSignalId: z.preprocess(trimmedStringFromUnknown, z.string().min(1)).optional(),
|
|
4932
5116
|
messageEnvelope: messageEnvelopeSchema,
|
|
5117
|
+
files: spaceMessageFileReferencesSchema.optional(),
|
|
4933
5118
|
thread: spaceThreadActionRefSchema.optional(),
|
|
4934
5119
|
saveResult: z.boolean().optional()
|
|
4935
5120
|
});
|
|
@@ -6571,6 +6756,6 @@ z.strictObject({
|
|
|
6571
6756
|
})
|
|
6572
6757
|
});
|
|
6573
6758
|
//#endregion
|
|
6574
|
-
export { agentTaskTerminalOutcomeSchema as $,
|
|
6759
|
+
export { agentTaskTerminalOutcomeSchema as $, SPACE_PASSWORD_RATE_LIMITED_ERROR_CODE as $n, conversationExecutionStateSchema as $t, runtimeTransportResumeControllerConversationFramePayloadSchema as A, agentInteractionRequestSchema as An, resolvePublicAgentAvailabilityCopy as Ar, centerAgentInteractionSourceSchema as At, openMeldSpaceEgressActionSchema as B, localComponentUpdateProjectionSchema as Bn, restoreSpaceFileRevisionResponseSchema as Bt, runtimeTransportLocalAgentControlRefreshCatalogFramePayloadSchema as C, spaceAgentStreamDeltaFrameSchema as Cn, finiteIntegerNumber as Cr, spaceAttachmentFileNameSchema as Ct, runtimeTransportRegisterSessionRequestSchema as D, spaceAgentStreamTerminalFrameSchema as Dn, MAX_TEXT_LENGTH as Dr, spaceMessageAttachmentsSchema as Dt, runtimeTransportLookupRouteOwnerServiceEvidenceSchema as E, spaceAgentStreamSnapshotSchema as En, trimmedStringFromUnknown as Er, spaceMessageAttachmentSchema as Et, openMeldDaemonProviderAccessEvidenceProviderSchema as F, formatLocalSetupActionDescription as Fn, openMeldWebUrlSchema as Fr, isSpaceFileTextEditable as Ft, localFolderPickerHelperResultSchema as G, clientMessageIdSchema as Gn, updateSpaceFileEntryResponseSchema as Gt, OPENMELD_LOCAL_FOLDER_PICKER_CAPABILITY_HEADER as H, localServiceComponentUpdateProjectionSchema as Hn, spaceFileNameSchema as Ht, openMeldDaemonTaskResultEnvelopeWriteSchema as I, formatLocalSetupActionLabel as In, resolveCommandAgentWorkActivity as Ir, listSpaceFileRevisionsResponseSchema as It, localFolderPathSchema as J, runtimeCoordinatorExecutionEventSchema as Jn, openMeldDaemonControlPlaneRequestSchema as Jt, localFolderPickerRequestSchema as K, parseOptionalClientMessageId as Kn, uploadSpaceFileResponseSchema as Kt, openMeldDaemonTaskResultOpenClawGatewayVisibilityStatusSchema as L, installedLocalComponentsSnapshotSchema as Ln, listSpaceFilesResponseSchema as Lt, runtimeTransportRouteCatalogChangedFramePayloadSchema as M, agentInteractionResponseSchema as Mn, shouldPreferMappedPublicAgentFailureReason as Mr, SPACE_FILE_MAX_SIZE_BYTES as Mt, runtimeTransportRuntimeCoordinatorRespondInteractionResponseSchema as N, formatLocalComponentsSummaryDescription as Nn, computerSetupModeSchema as Nr, createSpaceFolderResponseSchema as Nt, runtimeTransportRegisterSessionResponseSchema as O, AGENT_INTERACTION_DEFAULT_TIMEOUT_MS as On, resolveDetailedPublicAgentFailureReason as Or, conversationCompactionMarkerSchema as Ot, runtimeTransportSubmitTaskResultRequestSchema as P, formatLocalComponentsSummaryLabel as Pn, openMeldNavigationTargetSchema as Pr, getSpaceFileResponseSchema as Pt, agentTaskHandleSchema as Q, spaceTraceExecutionIdentityProjectionSchema as Qn, providerDispatchRuntimeContextSchema as Qt, openMeldDaemonTaskResultPayloadSchema as R, localCliComponentUpdateProjectionSchema as Rn, resolveSpaceFileMimeType as Rt, runtimeTransportLocalAgentControlManageInstallationFramePayloadSchema as S, agentStreamToolPartSchema as Sn, uuidProfileIdSchema as Sr, spaceAttachmentDimensionSchema as St, runtimeTransportLocalAgentControlSetProfileWorkspaceFramePayloadSchema as T, spaceAgentStreamPresenceSchema as Tn, optionalBooleanQuerySchema as Tr, spaceAttachmentSizeBytesSchema as Tt, localFolderPickerDaemonFrameSchema as U, postSpaceWakeStopBodySchema as Un, spaceMessageFileReferencesSchema as Ut, LOCAL_FOLDER_PICKER_RUNTIME_CAPABILITY as V, localComponentUpdateStatusSchema as Vn, spaceFileMimeTypeSchema as Vt, localFolderPickerHelperProtocolResultSchema as W, postSpaceWakeStopResponseSchema as Wn, trashSpaceFileEntryResponseSchema as Wt, agentTaskCompletionConditionSchema as X, runtimeCoordinatorExecutionTokenEnvelopeSchema as Xn, openMeldDaemonSyncRouteCatalogPayloadSchema as Xt, agentDelegationSnapshotSchema as Y, runtimeCoordinatorExecutionRecordSchema as Yn, openMeldDaemonControlPlaneResponseSchema as Yt, agentTaskCompletionObservationSchema as Z, runtimeTransportDeliveryExecutionIdentitySchema as Zn, skippedDaemonProfileSchema as Zt, runtimeTransportHeartbeatRequestSchema as _, getSpaceMessageAddressingRelationSupportForTargetKind as _n, openMeldRuntimeProfileIdSchema as _r, signalStatusDataSchema as _t, runtimeTransportCapabilitiesSchema as a, spaceContractFieldsSchema as an, spaceMentionLabelSourceSchema as ar, AGENT_REPLYING_PURPOSE as at, runtimeTransportLocalAgentControlForkSessionFramePayloadSchema as b, resolveMessageEnvelopeTargetField as bn, profileWorkingDirectorySchema as br, signalTextSchema as bt, runtimeTransportDispatchInteractionRequestSchema as c, spaceAllowedActionsSchema as cn, updateOrganizationInformationProtectionPolicyBodySchema as cr, CONVERSATION_CONTINUITY_WARNING_PURPOSE as ct, runtimeTransportDispatchPreviewEndRequestSchema as d, workingLanguageGuidanceSchema as dn, inspectExecutionRecoveryResponseSchema as dr, DISPATCH_ACTIVITY_RETRYING_PURPOSE as dt, dispatchExecutionSchema as en, normalizeSpacePasswordText as er, areAgentTaskTerminalOutcomesEqual as et, runtimeTransportDispatchPreviewRequestSchema as f, workingLanguageTagSchema as fn, openMeldProfileIdSchema as fr, SPACE_MEMBER_JOIN_NOTICE_PURPOSE as ft, runtimeTransportForkAgentSessionResultSchema as g, formatCanonicalMentionLiteral as gn, normalizeOptionalWorkingDirectory as gr, sanitizeSignalTextPreview as gt, runtimeTransportErrorCodeSchema as h, collectCanonicalMentionTextFragments as hn, agentProfileIdSchema as hr, centerAgentTaskReferenceSchema as ht, localWakeRouteReportSchema as i, spaceThreadSignalPlacementSchema as in, spaceMentionLabelSchema as ir, AGENT_REPLYING_END_PURPOSE as it, runtimeTransportResumeControllerConversationResultFramePayloadSchema as j, agentInteractionResolutionSchema as jn, resolvePublicAgentFailureRecovery as jr, SPACE_FILE_ERROR_CODES as jt, runtimeTransportRejectedProfileRegistrationSchema as k, agentInteractionPendingSummarySchema as kn, resolveMappedPublicAgentFailureReason as kr, spaceStatusSchema as kt, runtimeTransportDispatchInteractionResponseFramePayloadSchema as l, spacePublicationModeSchema as ln, executeExecutionRecoveryBodySchema as lr, DISPATCH_ACTIVITY_DISPATCHING_PURPOSE as lt, runtimeTransportDispatchToolActivityRequestSchema as m, MESSAGE_MENTION_TYPE_VALUES as mn, MAX_PROFILE_WORKING_DIRECTORY_LENGTH as mr, SPACE_MENTION_REJECT_NOTICE_PURPOSE as mt, daemonExecutionCompatibilitySchema as n, spaceThreadEventSchema as nn, resolveSingleSpaceMentionLabels as nr, controllerAgentTaskHandleSchema as nt, runtimeTransportDeliverDispatchRequestSchema as o, spaceContractSchema as on, organizationInformationProtectionPolicyResponseSchema as or, AGENT_REPLY_PREVIEW_END_PURPOSE as ot, runtimeTransportDispatchRuntimeEvidenceRequestSchema as p, targetWakeLifecycleIdentitySchema as pn, openMeldRequestContextSchema as pr, SPACE_MEMBER_REMOVE_NOTICE_PURPOSE as pt, localFolderPickerResultSchema as q, runtimeCoordinatorExecutionCreationDiagnosticSchema as qn, localAgentInstallationOptionSchema as qt, daemonStreamFrameSchema as r, spaceThreadSchema as rn, resolveSpaceMentionLabels as rr, spaceWakeAgentTaskHandleSchema as rt, runtimeTransportDispatchInteractionDeliveredRequestSchema as s, resultArchivePolicySchema as sn, organizationProtectedInformationSchema as sr, AGENT_REPLY_PREVIEW_PURPOSE as st, CURRENT_DAEMON_EXECUTION_CONTRACT_EPOCH as t, spaceThreadContextSchema as tn, spacePasswordSchema as tr, buildAgentTaskKey as tt, runtimeTransportDispatchLifecycleRequestSchema as u, spaceDispatchPolicySchema as un, executeExecutionRecoveryResponseSchema as ur, DISPATCH_ACTIVITY_FAILED_PURPOSE as ut, runtimeTransportHeartbeatResponseSchema as v, messageEnvelopeSchema as vn, profileKindSchema as vr, signalSystemNoticeDataSchema as vt, runtimeTransportLocalAgentControlSetEnabledFramePayloadSchema as w, spaceAgentStreamPartFrameSchema as wn, nonEmptyTrimmedStringFromUnknown as wr, spaceAttachmentMimeTypeSchema as wt, runtimeTransportLocalAgentControlInterruptFramePayloadSchema as x, AGENT_STREAM_SNAPSHOT_MAX_CHARS as xn, profileWorkspaceModeSchema as xr, spaceAttachmentDescriptorSchema as xt, runtimeTransportLocalAgentControlCancelFramePayloadSchema as y, normalizeMessageEnvelope as yn, profileSchema as yr, signalTextDataSchema as yt, openMeldDaemonTaskResultProjectFailureContextSchema as z, localComponentUpdatePolicySchema as zn, restoreSpaceFileEntryResponseSchema as zt };
|
|
6575
6760
|
|
|
6576
|
-
//# sourceMappingURL=runtime-transport-
|
|
6761
|
+
//# sourceMappingURL=runtime-transport-DEj52An9.js.map
|