@integrity-labs/agt-cli 0.27.142 → 0.27.143

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.
@@ -409,6 +409,26 @@ function getFramework(id) {
409
409
  return adapter;
410
410
  }
411
411
 
412
+ // ../../packages/core/dist/provisioning/avatar-env.js
413
+ var MAX_AVATAR_ENV_URL_BYTES = 8192;
414
+ function utf8ByteLength(value) {
415
+ return new TextEncoder().encode(value).length;
416
+ }
417
+ function resolveAvatarEnvUrl(raw) {
418
+ const trimmed = typeof raw === "string" ? raw.trim() : "";
419
+ if (trimmed === "") {
420
+ return { url: null, skipReason: "empty" };
421
+ }
422
+ if (/^data:/i.test(trimmed)) {
423
+ return { url: null, skipReason: "data-uri", bytes: utf8ByteLength(trimmed) };
424
+ }
425
+ const bytes = utf8ByteLength(trimmed);
426
+ if (bytes > MAX_AVATAR_ENV_URL_BYTES) {
427
+ return { url: null, skipReason: "too-large", bytes };
428
+ }
429
+ return { url: trimmed };
430
+ }
431
+
412
432
  // ../../packages/core/dist/types/kanban.js
413
433
  function formatActorId(kind, id) {
414
434
  return `${kind}:${id}`;
@@ -4707,6 +4727,8 @@ export {
4707
4727
  CHANNEL_REGISTRY,
4708
4728
  getChannel,
4709
4729
  getAllChannelIds,
4730
+ MAX_AVATAR_ENV_URL_BYTES,
4731
+ resolveAvatarEnvUrl,
4710
4732
  OAUTH_PROVIDERS,
4711
4733
  formatActorId,
4712
4734
  isSelfCompletion,
@@ -4744,4 +4766,4 @@ export {
4744
4766
  attributeTranscriptUsageByRun,
4745
4767
  KANBAN_CHECK_COMMAND
4746
4768
  };
4747
- //# sourceMappingURL=chunk-WCXA7EEP.js.map
4769
+ //# sourceMappingURL=chunk-ZXIGQDOP.js.map