@integrity-labs/agt-cli 0.27.142 → 0.27.144

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}`;
@@ -1765,6 +1785,10 @@ var ajv = new Ajv2020({ allErrors: true, strict: false });
1765
1785
  addFormats(ajv);
1766
1786
  var compiledMetaSchema = ajv.compile(context_meta_schema_default);
1767
1787
 
1788
+ // ../../packages/core/dist/integrations/augmented-live/codec.js
1789
+ var DEFAULT_CHUNK_BUDGET_BYTES = 180 * 1024;
1790
+ var textEncoder = new TextEncoder();
1791
+
1768
1792
  // ../../packages/core/dist/integrations/oauth-providers.js
1769
1793
  var OAUTH_PROVIDERS = {
1770
1794
  "google-workspace": {
@@ -4707,6 +4731,8 @@ export {
4707
4731
  CHANNEL_REGISTRY,
4708
4732
  getChannel,
4709
4733
  getAllChannelIds,
4734
+ MAX_AVATAR_ENV_URL_BYTES,
4735
+ resolveAvatarEnvUrl,
4710
4736
  OAUTH_PROVIDERS,
4711
4737
  formatActorId,
4712
4738
  isSelfCompletion,
@@ -4744,4 +4770,4 @@ export {
4744
4770
  attributeTranscriptUsageByRun,
4745
4771
  KANBAN_CHECK_COMMAND
4746
4772
  };
4747
- //# sourceMappingURL=chunk-WCXA7EEP.js.map
4773
+ //# sourceMappingURL=chunk-WOOYOAPG.js.map