@ada-cx/messaging-bridge 1.12.0 → 1.12.1

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.
@@ -27,17 +27,11 @@ export declare const IMAGE_ATTACHMENT_MAX_BYTES: number;
27
27
  /**
28
28
  * How many images one send may carry.
29
29
  *
30
- * Not an api limit on this path. `MAX_DESCRIBED_IMAGE_ATTACHMENTS` is read in
31
- * one api runtime site, `resolve_email_image_attachments_suffix`, which is the
32
- * email channel; the bot path posts one `downloadable` per image and describes
33
- * each through `resolve_uploaded_file_message_body`, which caps nothing. api
34
- * also never reads `attachment_group_id` outside analytics, so it cannot batch
35
- * a group into one describe budget. A fourth image would be hosted, rendered
36
- * *and* described — in its own reasoner turn.
37
- *
38
- * So the cap is a product decision about that cost, not a ceiling api imposes:
39
- * each extra image buys another bot turn and another describe call. Match it to
40
- * `MAX_DESCRIBED_IMAGE_ATTACHMENTS` by coincidence of value only.
30
+ * api answers one send in one reasoner turn and describes at most
31
+ * `MAX_DESCRIBED_IMAGE_ATTACHMENTS` of its images there. It holds at most
32
+ * `MAX_HELD_ROWS` rows besides the final row, so a fourth image would start
33
+ * a turn of its own. Keep this value equal to `MAX_DESCRIBED_IMAGE_ATTACHMENTS`
34
+ * (3) and to `MAX_HELD_ROWS` plus the final row (2 + 1).
41
35
  */
42
36
  export declare const IMAGE_ATTACHMENT_MAX_COUNT = 3;
43
37
  /** The image types api's attachments route accepts; HEIC/HEIF are transcoded to JPEG there. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ada-cx/messaging-bridge",
3
- "version": "1.12.0",
3
+ "version": "1.12.1",
4
4
  "description": "Types, test mocks, and a thin CDN loader for building a custom app UI on Ada Messaging's bridge contract. The bridge runtime always loads from Ada's CDN.",
5
5
  "type": "module",
6
6
  "license": "ISC",