@clawos-dev/clawd 0.2.648 → 0.2.650

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.
@@ -24442,6 +24442,40 @@ var CloudVolumeGetResultSchema = external_exports.object({
24442
24442
  volume: CloudVolumeUsageSchema.nullable()
24443
24443
  }).strict();
24444
24444
 
24445
+ // ../protocol/src/attachment-upload-policy.ts
24446
+ var MAX_ATTACHMENT_BYTES = 25 * 1024 * 1024;
24447
+ var EXTENSION_MIME = {
24448
+ ".png": "image/png",
24449
+ ".jpg": "image/jpeg",
24450
+ ".jpeg": "image/jpeg",
24451
+ ".gif": "image/gif",
24452
+ ".webp": "image/webp",
24453
+ ".pdf": "application/pdf",
24454
+ ".txt": "text/plain",
24455
+ ".md": "text/plain",
24456
+ ".markdown": "text/plain",
24457
+ ".csv": "text/plain",
24458
+ ".log": "text/plain",
24459
+ ".json": "application/json",
24460
+ ".xml": "application/xml",
24461
+ ".yaml": "application/yaml",
24462
+ ".yml": "application/yaml",
24463
+ ".html": "text/html",
24464
+ ".conf": "text/plain",
24465
+ ".cfg": "text/plain",
24466
+ ".ini": "text/plain",
24467
+ ".toml": "text/plain"
24468
+ };
24469
+ var ACCEPTED_MIME = /* @__PURE__ */ new Set([
24470
+ ...Object.values(EXTENSION_MIME),
24471
+ "application/x-yaml"
24472
+ ]);
24473
+ var CHAT_INPUT_FILE_ACCEPT = [
24474
+ ...ACCEPTED_MIME,
24475
+ "text/*",
24476
+ ...Object.keys(EXTENSION_MIME)
24477
+ ].join(",");
24478
+
24445
24479
  // ../protocol/src/log.ts
24446
24480
  var LOG_SOURCES = ["daemon", "main", "renderer"];
24447
24481
  var LogSourceSchema = external_exports.enum(LOG_SOURCES);
@@ -34364,6 +34364,40 @@ var CloudVolumeGetResultSchema = external_exports.object({
34364
34364
  volume: CloudVolumeUsageSchema.nullable()
34365
34365
  }).strict();
34366
34366
 
34367
+ // ../protocol/src/attachment-upload-policy.ts
34368
+ var MAX_ATTACHMENT_BYTES = 25 * 1024 * 1024;
34369
+ var EXTENSION_MIME = {
34370
+ ".png": "image/png",
34371
+ ".jpg": "image/jpeg",
34372
+ ".jpeg": "image/jpeg",
34373
+ ".gif": "image/gif",
34374
+ ".webp": "image/webp",
34375
+ ".pdf": "application/pdf",
34376
+ ".txt": "text/plain",
34377
+ ".md": "text/plain",
34378
+ ".markdown": "text/plain",
34379
+ ".csv": "text/plain",
34380
+ ".log": "text/plain",
34381
+ ".json": "application/json",
34382
+ ".xml": "application/xml",
34383
+ ".yaml": "application/yaml",
34384
+ ".yml": "application/yaml",
34385
+ ".html": "text/html",
34386
+ ".conf": "text/plain",
34387
+ ".cfg": "text/plain",
34388
+ ".ini": "text/plain",
34389
+ ".toml": "text/plain"
34390
+ };
34391
+ var ACCEPTED_MIME = /* @__PURE__ */ new Set([
34392
+ ...Object.values(EXTENSION_MIME),
34393
+ "application/x-yaml"
34394
+ ]);
34395
+ var CHAT_INPUT_FILE_ACCEPT = [
34396
+ ...ACCEPTED_MIME,
34397
+ "text/*",
34398
+ ...Object.keys(EXTENSION_MIME)
34399
+ ].join(",");
34400
+
34367
34401
  // ../protocol/src/log.ts
34368
34402
  var LOG_SOURCES = ["daemon", "main", "renderer"];
34369
34403
  var LogSourceSchema = external_exports.enum(LOG_SOURCES);
@@ -34364,6 +34364,40 @@ var CloudVolumeGetResultSchema = external_exports.object({
34364
34364
  volume: CloudVolumeUsageSchema.nullable()
34365
34365
  }).strict();
34366
34366
 
34367
+ // ../protocol/src/attachment-upload-policy.ts
34368
+ var MAX_ATTACHMENT_BYTES = 25 * 1024 * 1024;
34369
+ var EXTENSION_MIME = {
34370
+ ".png": "image/png",
34371
+ ".jpg": "image/jpeg",
34372
+ ".jpeg": "image/jpeg",
34373
+ ".gif": "image/gif",
34374
+ ".webp": "image/webp",
34375
+ ".pdf": "application/pdf",
34376
+ ".txt": "text/plain",
34377
+ ".md": "text/plain",
34378
+ ".markdown": "text/plain",
34379
+ ".csv": "text/plain",
34380
+ ".log": "text/plain",
34381
+ ".json": "application/json",
34382
+ ".xml": "application/xml",
34383
+ ".yaml": "application/yaml",
34384
+ ".yml": "application/yaml",
34385
+ ".html": "text/html",
34386
+ ".conf": "text/plain",
34387
+ ".cfg": "text/plain",
34388
+ ".ini": "text/plain",
34389
+ ".toml": "text/plain"
34390
+ };
34391
+ var ACCEPTED_MIME = /* @__PURE__ */ new Set([
34392
+ ...Object.values(EXTENSION_MIME),
34393
+ "application/x-yaml"
34394
+ ]);
34395
+ var CHAT_INPUT_FILE_ACCEPT = [
34396
+ ...ACCEPTED_MIME,
34397
+ "text/*",
34398
+ ...Object.keys(EXTENSION_MIME)
34399
+ ].join(",");
34400
+
34367
34401
  // ../protocol/src/log.ts
34368
34402
  var LOG_SOURCES = ["daemon", "main", "renderer"];
34369
34403
  var LogSourceSchema = external_exports.enum(LOG_SOURCES);