@segmentstream/agent 0.89.7 → 0.90.0

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +5 -7
  3. package/dist/_chunks/{build-metadata-0MiIrYle.mjs → build-metadata-9DTiYNuw.mjs} +1 -1
  4. package/dist/_chunks/{chat-archive-BhVy1Dbk.mjs → chat-archive-W-lFIyyA.mjs} +1 -1
  5. package/dist/_chunks/{principal-h5knGNwo.mjs → principal-DN2OIjo3.mjs} +13 -16
  6. package/dist/_chunks/{silent-CsgJLKrZ.mjs → silent-CoyadQMP.mjs} +1 -1
  7. package/dist/extension/_manifest.json +1 -1
  8. package/dist/extension/connections/ontology.mjs +1 -1
  9. package/dist/extension/hooks/authorization.mjs +1 -1
  10. package/dist/extension/instructions/persona.mjs +1 -1
  11. package/dist/extension/lib/actor.mjs +1 -1
  12. package/dist/extension/lib/attachment-tools.mjs +1 -1
  13. package/dist/extension/lib/attachments-dispatch.mjs +2 -2
  14. package/dist/extension/lib/attachments-send.mjs +1 -1
  15. package/dist/extension/lib/attachments.mjs +1 -1
  16. package/dist/extension/lib/build-metadata.mjs +1 -1
  17. package/dist/extension/lib/chat-address.mjs +1 -1
  18. package/dist/extension/lib/chat-context.mjs +1 -1
  19. package/dist/extension/lib/chat-recorder.mjs +2 -2
  20. package/dist/extension/lib/confirmations.mjs +1 -1
  21. package/dist/extension/lib/email/attachments-send.mjs +1 -1
  22. package/dist/extension/lib/email/channel.mjs +2 -2
  23. package/dist/extension/lib/group-routing/messages.d.ts +0 -2
  24. package/dist/extension/lib/group-routing/routing-context.d.ts +1 -2
  25. package/dist/extension/lib/group-routing/routing-context.mjs +0 -2
  26. package/dist/extension/lib/guest-usage.mjs +1 -1
  27. package/dist/extension/lib/inbound-media/files.mjs +1 -1
  28. package/dist/extension/lib/inbound-media/index.mjs +1 -1
  29. package/dist/extension/lib/ontology-connection.mjs +1 -1
  30. package/dist/extension/lib/ontology-file-call.mjs +1 -1
  31. package/dist/extension/lib/ontology-recall.mjs +1 -1
  32. package/dist/extension/lib/ontology-tools.mjs +1 -1
  33. package/dist/extension/lib/review/files.mjs +1 -1
  34. package/dist/extension/lib/review/hold.mjs +1 -1
  35. package/dist/extension/lib/review/reply.mjs +2 -2
  36. package/dist/extension/lib/role-skill.mjs +1 -1
  37. package/dist/extension/lib/runtime-envelope.mjs +1 -1
  38. package/dist/extension/lib/sent-files.mjs +1 -1
  39. package/dist/extension/lib/slack/adapter.mjs +1 -1
  40. package/dist/extension/lib/slack/attachments-send.mjs +1 -1
  41. package/dist/extension/lib/slack/callbacks.mjs +1 -1
  42. package/dist/extension/lib/stored-files.mjs +1 -1
  43. package/dist/extension/lib/telegram/adapter.mjs +4 -4
  44. package/dist/extension/lib/telegram/attachment-description.mjs +1 -1
  45. package/dist/extension/lib/telegram/attachments-send.mjs +1 -1
  46. package/dist/extension/lib/telegram/callbacks.mjs +1 -1
  47. package/dist/extension/lib/telegram/chat-archive.mjs +1 -1
  48. package/dist/extension/lib/telegram/confirmations.mjs +1 -1
  49. package/dist/extension/lib/telegram/customer-text.mjs +1 -1
  50. package/dist/extension/lib/telegram/files.mjs +1 -1
  51. package/dist/extension/lib/telegram/health.mjs +1 -1
  52. package/dist/extension/lib/telegram/held-approvals.mjs +1 -1
  53. package/dist/extension/lib/telegram/inbound-request.d.ts +2 -4
  54. package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
  55. package/dist/extension/lib/telegram/inbound.d.ts +1 -1
  56. package/dist/extension/lib/telegram/inbound.mjs +11 -11
  57. package/dist/extension/lib/telegram/lifecycle.mjs +2 -2
  58. package/dist/extension/lib/telegram/principal.mjs +1 -1
  59. package/dist/extension/lib/telegram/routing-context.mjs +1 -1
  60. package/dist/extension/lib/telegram/session-recovery.mjs +1 -1
  61. package/dist/extension/lib/telegram/silent.mjs +1 -1
  62. package/dist/extension/lib/telegram/store-capture.mjs +1 -1
  63. package/dist/extension/lib/telegram/structured.mjs +1 -1
  64. package/dist/extension/lib/telegram/turn-errors.mjs +2 -2
  65. package/dist/extension/lib/web/auth.d.ts +4 -3
  66. package/dist/extension/lib/web/auth.mjs +1 -1
  67. package/dist/extension/lib/web/channel.mjs +1 -1
  68. package/dist/extension/lib/whatsapp/adapter.mjs +1 -1
  69. package/dist/extension/lib/whatsapp/attachments-send.mjs +1 -1
  70. package/dist/extension/lib/whatsapp/callbacks.mjs +1 -1
  71. package/dist/extension/lib/whatsapp/files.mjs +1 -1
  72. package/dist/extension/lib/workspace-action.mjs +1 -1
  73. package/dist/extension/lib/workspace-channel/attachments-send.mjs +1 -1
  74. package/dist/extension/lib/workspace-channel/channel.mjs +2 -2
  75. package/dist/extension/lib/workspace-source.mjs +1 -1
  76. package/dist/extension/model.mjs +1 -1
  77. package/dist/extension/tools/attachments_discard.mjs +1 -1
  78. package/dist/extension/tools/attachments_list.mjs +1 -1
  79. package/dist/extension/tools/attachments_promote.mjs +1 -1
  80. package/dist/extension/tools/attachments_read.mjs +1 -1
  81. package/dist/extension/tools/attachments_send.mjs +2 -2
  82. package/dist/extension/tools/attachments_stage.mjs +1 -1
  83. package/dist/extension/tools/attachments_table.mjs +1 -1
  84. package/dist/extension/tools/handoff.mjs +1 -1
  85. package/dist/extension/tools/questions_ask.mjs +1 -1
  86. package/dist/extension/tools/workspace_source.mjs +1 -1
  87. package/package.json +3 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.90.0
4
+
5
+ The agent and web chat now use Eve 1.5.0. Telegram uses Eve's per-message turn policy.
6
+ A reply to a recent photo can include that photo. An unrelated group message no longer
7
+ brings earlier photos into the model's input.
8
+
9
+ Action required: pin `eve` to `1.5.0` in `agent/package.json`, upgrade the Agent and App SDKs together, and rebuild.
10
+
3
11
  ## 0.89.7
4
12
 
5
13
  No change in behavior. The agent still retries a file read that an earlier ontology service
package/README.md CHANGED
@@ -10,13 +10,13 @@ something it does.
10
10
  Guides named by path below, such as `docs/ontology.md`, are in every workspace project;
11
11
  `segmentstream upgrade` keeps them current.
12
12
 
13
- The package is built against one eve version, `1.0.1`, and the workspace's `agent/` pins the
13
+ The package is built against one eve version, `1.5.0`, and the workspace's `agent/` pins the
14
14
  same one. eve and the package move together.
15
15
 
16
16
  ## Install
17
17
 
18
18
  ```sh
19
- npm install @segmentstream/agent eve@1.0.1
19
+ npm install @segmentstream/agent eve@1.5.0
20
20
  ```
21
21
 
22
22
  ## Deploying workspace source
@@ -659,10 +659,8 @@ Metadata lookups have a five-second timeout, a five-minute success cache and a 3
659
659
  cache, with at most 128 model entries. A lookup failure never asserts that the model saw pixels.
660
660
 
661
661
  Eve's native image input limit is 3 MiB per image. The chat store keeps each message's stored
662
- attachments by reference (id, name, type, size, expiry; never bytes or download grants). The next
663
- answered turn appends the native images of messages observed since the chat's last answered
664
- message as file parts, once, up to five images and 3 MiB total after accounting for current
665
- images. It creates attachment URLs for the **current** requester, and storage checks that member's
662
+ attachments by reference (id, name, type, size, expiry; never bytes or download grants). A Telegram reply to a recent image includes the referenced image as a file part, up to
663
+ five images and 3 MiB total including images on the current message. It creates attachment URLs for the **current** requester, and storage checks that member's
666
664
  access again. Expired or omitted images get notes. A text-only reply receives generated
667
665
  descriptions and references, never hidden image bytes. Other formats remain attachment-tool
668
666
  inputs, and the chat context names their stored ids. Already dispatched native images follow Eve's
@@ -899,7 +897,7 @@ Eve resolution, so member/topic routing survives a cold start. No second provide
899
897
 
900
898
  ## Release and migration
901
899
 
902
- The original exact-post release used Agent SDK 0.17.13, Eve 0.76.3, Ontology SDK 0.56.0 and App SDK 0.25.2. Current builds require eve 1.0.1 and a rebuilt Agent SDK extension.
900
+ The original exact-post release used Agent SDK 0.17.13, Eve 0.76.3, Ontology SDK 0.56.0 and App SDK 0.25.2. Current builds require eve 1.5.0 and a rebuilt Agent SDK extension.
903
901
  In the next release, feedback file guidance follows the visible tools.
904
902
  The compatible Cloud archive/API must be deployed first; migrations run only through its CI/CD gate.
905
903
  Publish the ontology SDK before the agent SDK. Upgrade the workspace ontology before its agent,
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- var version = "0.89.7";
7
+ var version = "0.90.0";
8
8
  function agentBuild(environment = process.env) {
9
9
  return {
10
10
  agent: version,
@@ -11,7 +11,7 @@ import { n as contentText, t as CONTENT_CAPS } from "./content-cDtVnr8Y.mjs";
11
11
  import { C as sendFingerprint, S as reasonCode, _ as boundedMeta, a as chatEvent, b as messageInput, f as sessionFailureEventId, p as storeOf, v as cutText, w as storedFiles, x as metaOf } from "./chat-archive-DavfKJDI.mjs";
12
12
  import { applyChatChange } from "../extension/lib/chat-messages.mjs";
13
13
  import { ChatStoreError } from "../extension/lib/chat-store.mjs";
14
- import { c as currentInboundRequest, ht as currentThreadId, xt as reportTelegramError } from "./principal-h5knGNwo.mjs";
14
+ import { c as currentInboundRequest, ht as currentThreadId, xt as reportTelegramError } from "./principal-DN2OIjo3.mjs";
15
15
  import { telegramReaction } from "../extension/lib/telegram/reactions.mjs";
16
16
  import { currentConfirmationPrompt } from "../extension/lib/group-routing/messages.mjs";
17
17
  import { messageMetadata } from "../extension/lib/telegram/message-metadata.mjs";
@@ -33,7 +33,7 @@ import { telegramFormattingRefused, telegramPreviewOptions, telegramTextLinks }
33
33
  import { defineMcpClientConnection } from "eve/connections";
34
34
  import { defineState } from "eve/context";
35
35
  import { defineDynamic as defineDynamic$1 } from "eve/tools";
36
- import { ForbiddenError, UnauthenticatedError } from "eve/channels/auth";
36
+ import { HttpError, UnauthenticatedError } from "eve/channels/auth";
37
37
  const CHAT_HEADER = "X-SegmentStream-Agent-Chat";
38
38
  const SESSION_HEADER = "X-SegmentStream-Agent-Session";
39
39
  const CHAT_ATTRIBUTE = "segmentstreamChat";
@@ -468,29 +468,28 @@ const INTROSPECTION_TIMEOUT_MS = 5e3;
468
468
  const ANSWER_TTL_MS = 6e4;
469
469
  const ANSWER_LIMIT = 1e3;
470
470
  const TURN_LIMITED_CODE = "rate_limited";
471
- var TurnLimitedError = class extends ForbiddenError {
471
+ var TurnLimitedError = class extends HttpError {
472
472
  retryAfterSeconds;
473
473
  scope;
474
- response;
474
+ static errorName = "TurnLimitedError";
475
475
  constructor(retryAfterSeconds, scope) {
476
- super({
476
+ super(429, {
477
477
  code: TURN_LIMITED_CODE,
478
- message: TURN_LIMITED_CODE
478
+ message: TURN_LIMITED_CODE,
479
+ headers: { "retry-after": String(retryAfterSeconds) }
479
480
  });
480
481
  this.retryAfterSeconds = retryAfterSeconds;
481
482
  this.scope = scope;
482
- this.name = "TurnLimitedError";
483
- this.response = Response.json({
483
+ }
484
+ get response() {
485
+ return Response.json({
484
486
  code: TURN_LIMITED_CODE,
485
487
  ok: false,
486
- retry_after_seconds: retryAfterSeconds,
487
- ...scope === void 0 || scope === "" ? {} : { scope }
488
+ retry_after_seconds: this.retryAfterSeconds,
489
+ ...this.scope === void 0 || this.scope === "" ? {} : { scope: this.scope }
488
490
  }, {
489
- status: 429,
490
- headers: {
491
- "cache-control": "no-store",
492
- "retry-after": String(retryAfterSeconds)
493
- }
491
+ status: this.status,
492
+ headers: super.response.headers
494
493
  });
495
494
  }
496
495
  };
@@ -1893,7 +1892,6 @@ var InboundRequest = class {
1893
1892
  agentDescription;
1894
1893
  agentName;
1895
1894
  traceId = randomUUID();
1896
- turnPolicy = "queue";
1897
1895
  edited = false;
1898
1896
  triggeringMessageId;
1899
1897
  chatId;
@@ -1979,7 +1977,6 @@ function withReplacedText(source, request) {
1979
1977
  try {
1980
1978
  result = await source.send(content, {
1981
1979
  ...options,
1982
- turnPolicy: request.turnPolicy,
1983
1980
  ...answerText === void 0 ? {} : { answerText }
1984
1981
  });
1985
1982
  } catch (error) {
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { confirmationLocale } from "../extension/lib/telegram/confirmation-text.mjs";
8
- import { Ft as chatAddressOf, _t as customerMessage, i as memberIdOf, mt as currentLocale, pt as TelegramDeliveryError, xt as reportTelegramError, yt as failureText } from "./principal-h5knGNwo.mjs";
8
+ import { Ft as chatAddressOf, _t as customerMessage, i as memberIdOf, mt as currentLocale, pt as TelegramDeliveryError, xt as reportTelegramError, yt as failureText } from "./principal-DN2OIjo3.mjs";
9
9
  import { splitTelegramText } from "../extension/lib/telegram/format.mjs";
10
10
  import { inTelegramSendQueue } from "../extension/lib/telegram/send-queue.mjs";
11
11
  import { redactDiagnostic } from "../extension/lib/diagnostics.mjs";
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "kind": "eve-extension",
3
3
  "formatVersion": 3,
4
- "builtWithEve": "1.0.1",
4
+ "builtWithEve": "1.5.0",
5
5
  "contractMajor": 0
6
6
  }
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import segmentstream from "../extension.mjs";
8
- import { T as ontologyConnection } from "../../_chunks/principal-h5knGNwo.mjs";
8
+ import { T as ontologyConnection } from "../../_chunks/principal-DN2OIjo3.mjs";
9
9
  import { defineDynamic } from "eve/connections";
10
10
  var ontology_default = defineDynamic(async (context) => {
11
11
  if (!segmentstream.config.ontology.connection) return null;
@@ -7,7 +7,7 @@ __eveCreateRequire(import.meta.url);
7
7
  import segmentstream from "../extension.mjs";
8
8
  import { localizedText } from "../lib/admission.mjs";
9
9
  import { confirmationLocale } from "../lib/telegram/confirmation-text.mjs";
10
- import "../../_chunks/principal-h5knGNwo.mjs";
10
+ import "../../_chunks/principal-DN2OIjo3.mjs";
11
11
  import { defineHook } from "eve/hooks";
12
12
  var authorization_default = defineHook({ events: { "interaction.opened": (event, context) => {
13
13
  const principal = context.session.auth.current;
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import segmentstream from "../extension.mjs";
8
- import { a as rolesOf } from "../../_chunks/principal-h5knGNwo.mjs";
8
+ import { a as rolesOf } from "../../_chunks/principal-DN2OIjo3.mjs";
9
9
  import { personaFor } from "../personas.mjs";
10
10
  import { defineDynamic, defineInstructions } from "eve/instructions";
11
11
  var persona_default = defineDynamic((context) => {
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { R as ACT_AS_HEADER, z as ActorRequiredError, B as actorHeaders, V as actorKey, H as actorOf, U as isGuestSession, W as member, G as memberTool, K as notForGuests } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ export { R as ACT_AS_HEADER, z as ActorRequiredError, B as actorHeaders, V as actorKey, H as actorOf, U as isGuestSession, W as member, G as memberTool, K as notForGuests } from "../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { Ft as chatAddressOf, It as chatChannel, b as agentAttachments, i as memberIdOf } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ import { Ft as chatAddressOf, It as chatChannel, b as agentAttachments, i as memberIdOf } from "../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { detectFile, documentText } from "./attachment-formats.mjs";
9
9
  import { readSheets, typedTable } from "./attachment-tables.mjs";
10
10
  import { appOrigin } from "./environment.mjs";
@@ -5,8 +5,8 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { channelOf } from "../config.mjs";
8
- import { Ft as chatAddressOf, It as chatChannel } from "../../_chunks/principal-h5knGNwo.mjs";
9
- import "../../_chunks/silent-CsgJLKrZ.mjs";
8
+ import { Ft as chatAddressOf, It as chatChannel } from "../../_chunks/principal-DN2OIjo3.mjs";
9
+ import "../../_chunks/silent-CoyadQMP.mjs";
10
10
  import { sendEmailAttachments } from "./email/attachments-send.mjs";
11
11
  import { replyCopies } from "./email/channel.mjs";
12
12
  import { sendSlackAttachments } from "./slack/attachments-send.mjs";
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { attachmentOwner } from "./attachment-tools.mjs";
8
- import { Ft as chatAddressOf, _ as AttachmentError, yt as failureText } from "../../_chunks/principal-h5knGNwo.mjs";
8
+ import { Ft as chatAddressOf, _ as AttachmentError, yt as failureText } from "../../_chunks/principal-DN2OIjo3.mjs";
9
9
  import { appOrigin, channelsEnabled } from "./environment.mjs";
10
10
  import { transientFileStatus } from "./file-grant.mjs";
11
11
  import { runtimeToken } from "./runtime-token.mjs";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { h as ATTACHMENT_TTL_HOURS, g as ATTACHMENT_URL_PROTOCOL, _ as AttachmentError, jt as CHAT_HEADER, v as EARLIER_CHAT_HEADER, y as MAXIMUM_ATTACHMENT_BYTES, Pt as SESSION_HEADER, b as agentAttachments, x as attachmentUrl, S as fetchStoredAttachment, C as parseAttachmentUrl } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ export { h as ATTACHMENT_TTL_HOURS, g as ATTACHMENT_URL_PROTOCOL, _ as AttachmentError, jt as CHAT_HEADER, v as EARLIER_CHAT_HEADER, y as MAXIMUM_ATTACHMENT_BYTES, Pt as SESSION_HEADER, b as agentAttachments, x as attachmentUrl, S as fetchStoredAttachment, C as parseAttachmentUrl } from "../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { t as agentBuild } from "../../_chunks/build-metadata-0MiIrYle.mjs";
7
+ export { t as agentBuild } from "../../_chunks/build-metadata-9DTiYNuw.mjs";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { At as CHAT_ATTRIBUTE, jt as CHAT_HEADER, Mt as PARTICIPANTS_ATTRIBUTE, Nt as RUNTIME_SOURCE_ATTRIBUTE, Pt as SESSION_HEADER, Ft as chatAddressOf, It as chatChannel, Lt as chatHeaders, Rt as chatRuntimeSource, zt as isSameChat, Bt as participantsOf, Vt as withChatAddress, Ht as workspaceIdentityProvider } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ export { At as CHAT_ATTRIBUTE, jt as CHAT_HEADER, Mt as PARTICIPANTS_ATTRIBUTE, Nt as RUNTIME_SOURCE_ATTRIBUTE, Pt as SESSION_HEADER, Ft as chatAddressOf, It as chatChannel, Lt as chatHeaders, Rt as chatRuntimeSource, zt as isSameChat, Bt as participantsOf, Vt as withChatAddress, Ht as workspaceIdentityProvider } from "../../_chunks/principal-DN2OIjo3.mjs";
@@ -7,7 +7,7 @@ __eveCreateRequire(import.meta.url);
7
7
  import { agentTaskIdOf } from "./agent-task.mjs";
8
8
  import { chatCoordinates, sessionKind } from "./chat-recorder.mjs";
9
9
  import { h as topicContext, i as chatAuthor, n as archiveSequence, p as storeOf, r as chatArchive, s as collapseChatEvents } from "../../_chunks/chat-archive-DavfKJDI.mjs";
10
- import { xt as reportTelegramError } from "../../_chunks/principal-h5knGNwo.mjs";
10
+ import { xt as reportTelegramError } from "../../_chunks/principal-DN2OIjo3.mjs";
11
11
  import { createHash } from "node:crypto";
12
12
  import { deliveries, runs, turns } from "eve/events";
13
13
  import { defineState } from "eve/context";
@@ -8,10 +8,10 @@ import { n as contentText, t as CONTENT_CAPS } from "../../_chunks/content-cDtVn
8
8
  import { a as chatEvent, f as sessionFailureEventId, m as summarizeArguments, p as storeOf, r as chatArchive } from "../../_chunks/chat-archive-DavfKJDI.mjs";
9
9
  import { agentTaskIdOf } from "./agent-task.mjs";
10
10
  import { revisionOf } from "./review/revision.mjs";
11
- import { Bt as participantsOf, Ft as chatAddressOf, It as chatChannel, i as memberIdOf, ot as guestIdOf } from "../../_chunks/principal-h5knGNwo.mjs";
11
+ import { Bt as participantsOf, Ft as chatAddressOf, It as chatChannel, i as memberIdOf, ot as guestIdOf } from "../../_chunks/principal-DN2OIjo3.mjs";
12
12
  import { keyChannel, principalChannel } from "./channel-scope.mjs";
13
13
  import { parseAddress } from "./telegram/sessions.mjs";
14
- import { n as completionKind } from "../../_chunks/silent-CsgJLKrZ.mjs";
14
+ import { n as completionKind } from "../../_chunks/silent-CoyadQMP.mjs";
15
15
  import { recordModelServiceAlert } from "./model-service-alert.mjs";
16
16
  import { call, deliveries } from "eve/events";
17
17
  function isTelegram(context) {
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { N as CONFIRMATION_TTL_MS, P as actionApproval, F as confirmations, I as inputHash, L as needsConfirmation } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ export { N as CONFIRMATION_TTL_MS, P as actionApproval, F as confirmations, I as inputHash, L as needsConfirmation } from "../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { _ as AttachmentError } from "../../../_chunks/principal-h5knGNwo.mjs";
7
+ import { _ as AttachmentError } from "../../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { sendStoredAttachments } from "../attachments-send.mjs";
9
9
  import { ConnectionProxyError, connectionProxy } from "../connection-proxy.mjs";
10
10
  import { redactDiagnostic } from "../diagnostics.mjs";
@@ -8,7 +8,7 @@ import { PUBSUB_TOPIC } from "../../config.mjs";
8
8
  import { admitMessage, localizedText, reportUnadmittedChat } from "../admission.mjs";
9
9
  import { agentToolsAttribute } from "../agent-tools.mjs";
10
10
  import { providerChat } from "../attachment-tools.mjs";
11
- import { Bt as participantsOf, Ft as chatAddressOf, Mt as PARTICIPANTS_ATTRIBUTE, S as fetchStoredAttachment, Vt as withChatAddress, b as agentAttachments, d as prepareInboundMedia, i as memberIdOf, m as turnContent } from "../../../_chunks/principal-h5knGNwo.mjs";
11
+ import { Bt as participantsOf, Ft as chatAddressOf, Mt as PARTICIPANTS_ATTRIBUTE, S as fetchStoredAttachment, Vt as withChatAddress, b as agentAttachments, d as prepareInboundMedia, i as memberIdOf, m as turnContent } from "../../../_chunks/principal-DN2OIjo3.mjs";
12
12
  import { channelAttributes, currentChannel, currentKey, inHandlerChannels, withNamedRoutes } from "../channel-scope.mjs";
13
13
  import { a as chatEvent, b as messageInput, d as replyRecipients, g as UNVERIFIED, l as replyEvent, p as storeOf, r as chatArchive, t as AGENT_SENDER } from "../../../_chunks/chat-archive-DavfKJDI.mjs";
14
14
  import { ChatStoreError } from "../chat-store.mjs";
@@ -21,7 +21,7 @@ import { gatewayMediaCapabilities, turnMediaPlan } from "../inbound-media/plan.m
21
21
  import { gatewayImageDescriber } from "../inbound-media/images.mjs";
22
22
  import { gatewayTranscriber } from "../inbound-media/speech.mjs";
23
23
  import { channelReview } from "../review/reply.mjs";
24
- import { g as turnFiles, n as completionKind } from "../../../_chunks/silent-CsgJLKrZ.mjs";
24
+ import { g as turnFiles, n as completionKind } from "../../../_chunks/silent-CoyadQMP.mjs";
25
25
  import { runtimeToken } from "../runtime-token.mjs";
26
26
  import { GMAIL_ID, GmailError, gmail, replyKeyOf } from "./gmail.mjs";
27
27
  import { inboundMail, parseMail, sentMail } from "./message.mjs";
@@ -16,8 +16,6 @@ export interface ObservedMessage {
16
16
  readonly media?: string;
17
17
  /** Stored native images, by reference only: never image bytes or a sender's download grant. */
18
18
  readonly images?: ReadonlyArray<Pick<Attachment, "id" | "filename" | "contentType" | "size" | "expiresAt">>;
19
- /** The message started a turn, so a session received it. */
20
- readonly admitted?: true;
21
19
  /** ISO time the message was sent. */
22
20
  readonly at: string;
23
21
  /** Stable Telegram identity, independent of changes to the member's display name or roles. */
@@ -2,7 +2,6 @@ import { type RecentMessage } from "./messages.js";
2
2
  import { type ChatPage } from "../chat-archive.js";
3
3
  /**
4
4
  * The archive's recent messages for routing, oldest first, including unlinked humans and confirmed
5
- * delivered bot messages. A message that started a turn is `admitted`; stored native images of
6
- * the others ride along by reference, for the next turn that answers.
5
+ * delivered bot messages. Stored native images are identified by reference for replies to their message.
7
6
  */
8
7
  export declare function archivedRoutingMessages(events: ChatPage["events"], limit?: number): ReadonlyArray<RecentMessage>;
@@ -38,7 +38,6 @@ function archivedRoutingMessages(events, limit = 30) {
38
38
  const invitation = event.messageId === null ? void 0 : event.kind === "decision" && event.decision === "reply" ? INVITATIONS.find((reason) => reason === event.reason) : event.kind === "inbound" && event.disposition === "turn" ? INVITATIONS.find((reason) => reason.replaceAll("-", "_") === event.reason) : void 0;
39
39
  return invitation === void 0 ? [] : [[event.messageId, invitation]];
40
40
  }));
41
- const admitted = new Set(events.flatMap((event) => event.messageId !== null && (event.kind === "decision" && event.reason === "turn_admitted" || event.kind === "inbound" && event.disposition === "turn") ? [event.messageId] : []));
42
41
  const membership = new Map();
43
42
  for (const event of [...events].reverse()) {
44
43
  if (event.senderId === null) continue;
@@ -79,7 +78,6 @@ function archivedRoutingMessages(events, limit = 30) {
79
78
  }));
80
79
  const common = {
81
80
  invitation: metadata.invitation ?? invitations.get(event.messageId ?? ""),
82
- ...event.kind === "inbound" && admitted.has(event.messageId ?? "") ? { admitted: true } : {},
83
81
  ...images.length === 0 ? {} : { images },
84
82
  author: event.senderName ?? event.senderId ?? "unknown sender",
85
83
  ...typeof metadata.author === "string" && event.kind === "inbound" ? { signedAuthor: metadata.author } : {},
@@ -6,7 +6,7 @@ __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { appOrigin, ontologyDeploymentHeaders } from "./environment.mjs";
8
8
  import { runtimeToken } from "./runtime-token.mjs";
9
- import { ot as guestIdOf } from "../../_chunks/principal-h5knGNwo.mjs";
9
+ import { ot as guestIdOf } from "../../_chunks/principal-DN2OIjo3.mjs";
10
10
  const GUEST_USAGE_PATH = "/api/ontology/agent/guests/usage";
11
11
  const REPORT_TIMEOUT_MS = 5e3;
12
12
  function ontologyGuestUsage(options = {}) {
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { f as attachmentsContext, p as storeFiles, m as turnContent } from "../../../_chunks/principal-h5knGNwo.mjs";
7
+ export { f as attachmentsContext, p as storeFiles, m as turnContent } from "../../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { f as attachmentsContext, d as prepareInboundMedia, p as storeFiles, m as turnContent } from "../../../_chunks/principal-h5knGNwo.mjs";
7
+ export { f as attachmentsContext, d as prepareInboundMedia, p as storeFiles, m as turnContent } from "../../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { R as ACT_AS_HEADER, w as actAsHeaders, T as ontologyConnection } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ export { R as ACT_AS_HEADER, w as actAsHeaders, T as ontologyConnection } from "../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { F as confirmations, H as actorOf, I as inputHash, Ot as runtimeEnvelope, P as actionApproval, V as actorKey, j as ontologyTools } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ import { F as confirmations, H as actorOf, I as inputHash, Ot as runtimeEnvelope, P as actionApproval, V as actorKey, j as ontologyTools } from "../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { isChatPost } from "./chat-post-confirmation.mjs";
9
9
  import { sandboxFile } from "./sandbox-session.mjs";
10
10
  import { saveOntologyResult } from "./ontology-result-file.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { H as actorOf, a as rolesOf, j as ontologyTools, k as actionToolName } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ import { H as actorOf, a as rolesOf, j as ontologyTools, k as actionToolName } from "../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { object } from "./confirmation-description.mjs";
9
9
  import { redactDiagnostic } from "./diagnostics.mjs";
10
10
  import { defineMemoryProvider } from "eve/memory";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { E as OntologyActionNotPermitted, D as OntologyFileUnavailable, O as OntologyToolRejected, k as actionToolName, A as ontologyToolLabels, j as ontologyTools, M as promotionTarget } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ export { E as OntologyActionNotPermitted, D as OntologyFileUnavailable, O as OntologyToolRejected, k as actionToolName, A as ontologyToolLabels, j as ontologyTools, M as promotionTarget } from "../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { c as CAPTION_LIMIT, l as DRAFT_FILES_LIMIT, u as ReplyFilesRefused, d as attachToReply, f as checkReplyFiles, p as fileGroups, m as filesAfterReply, h as partFiles, g as turnFiles, _ as withCaptions } from "../../../_chunks/silent-CsgJLKrZ.mjs";
7
+ export { c as CAPTION_LIMIT, l as DRAFT_FILES_LIMIT, u as ReplyFilesRefused, d as attachToReply, f as checkReplyFiles, p as fileGroups, m as filesAfterReply, h as partFiles, g as turnFiles, _ as withCaptions } from "../../../_chunks/silent-CoyadQMP.mjs";
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { reviewFor } from "../../review.mjs";
8
- import { Bt as participantsOf, Ft as chatAddressOf, a as rolesOf, i as memberIdOf } from "../../../_chunks/principal-h5knGNwo.mjs";
8
+ import { Bt as participantsOf, Ft as chatAddressOf, a as rolesOf, i as memberIdOf } from "../../../_chunks/principal-DN2OIjo3.mjs";
9
9
  function reviewOf(settings, principal) {
10
10
  return reviewFor(settings, rolesOf(principal));
11
11
  }
@@ -4,12 +4,12 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { Ft as chatAddressOf, It as chatChannel, i as memberIdOf } from "../../../_chunks/principal-h5knGNwo.mjs";
7
+ import { Ft as chatAddressOf, It as chatChannel, i as memberIdOf } from "../../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { a as chatEvent, r as chatArchive } from "../../../_chunks/chat-archive-DavfKJDI.mjs";
9
9
  import { stampedChat } from "../chat-recorder.mjs";
10
10
  import { appOrigin } from "../environment.mjs";
11
11
  import { agentReviews } from "./client.mjs";
12
- import { _ as withCaptions, h as partFiles, m as filesAfterReply, n as completionKind, p as fileGroups } from "../../../_chunks/silent-CsgJLKrZ.mjs";
12
+ import { _ as withCaptions, h as partFiles, m as filesAfterReply, n as completionKind, p as fileGroups } from "../../../_chunks/silent-CoyadQMP.mjs";
13
13
  import { heldReply, repliesReviewed, reviewOf, reviewOutcome } from "./hold.mjs";
14
14
  import { judgeReply, readChat } from "./judge.mjs";
15
15
  const VERDICTS_REMEMBERED = 512;
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { a as rolesOf } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ import { a as rolesOf } from "../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { defineDynamic, defineSkill } from "eve/skills";
9
9
  function forRoles(roles, skill) {
10
10
  if (!Array.isArray(roles) || roles.length === 0 || !roles.every((role) => typeof role === "string" && role.trim() !== "")) throw new TypeError("forRoles() needs at least one role name; a skill for everyone is an ordinary skill file.");
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { wt as RUNTIME_SOURCE_PROTOCOL, Tt as compatibleRuntimeEnvelope, Et as principalRuntimeSource, Dt as readableRuntimeEnvelope, Ot as runtimeEnvelope, kt as telegramRuntimeSource } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ export { wt as RUNTIME_SOURCE_PROTOCOL, Tt as compatibleRuntimeEnvelope, Et as principalRuntimeSource, Dt as readableRuntimeEnvelope, Ot as runtimeEnvelope, kt as telegramRuntimeSource } from "../../_chunks/principal-DN2OIjo3.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { Pt as SESSION_HEADER, R as ACT_AS_HEADER, _ as AttachmentError, jt as CHAT_HEADER, v as EARLIER_CHAT_HEADER } from "../../_chunks/principal-h5knGNwo.mjs";
7
+ import { Pt as SESSION_HEADER, R as ACT_AS_HEADER, _ as AttachmentError, jt as CHAT_HEADER, v as EARLIER_CHAT_HEADER } from "../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { fetchFileGrant, transientFileStatus } from "./file-grant.mjs";
9
9
  import { ontologyDeploymentHeaders } from "./environment.mjs";
10
10
  var StoredFileError = class extends AttachmentError {
@@ -8,7 +8,7 @@ import { admitMessage, localizedText } from "../admission.mjs";
8
8
  import { agentToolsAttribute } from "../agent-tools.mjs";
9
9
  import { agentChats, channelChats } from "../chats.mjs";
10
10
  import { withButtonDecision } from "../confirmation-buttons.mjs";
11
- import { Vt as withChatAddress, b as agentAttachments, d as prepareInboundMedia, m as turnContent } from "../../../_chunks/principal-h5knGNwo.mjs";
11
+ import { Vt as withChatAddress, b as agentAttachments, d as prepareInboundMedia, m as turnContent } from "../../../_chunks/principal-DN2OIjo3.mjs";
12
12
  import { channelAttributes, currentChannel, withNamedRoutes, withSessionChannels } from "../channel-scope.mjs";
13
13
  import { redactDiagnostic } from "../diagnostics.mjs";
14
14
  import { MAXIMUM_DOWNLOAD_BYTES, connectionProxy } from "../connection-proxy.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { _ as AttachmentError } from "../../../_chunks/principal-h5knGNwo.mjs";
7
+ import { _ as AttachmentError } from "../../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { sendStoredAttachments } from "../attachments-send.mjs";
9
9
  import { connectionProxy } from "../connection-proxy.mjs";
10
10
  import { redactDiagnostic } from "../diagnostics.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { Ot as runtimeEnvelope, Rt as chatRuntimeSource, Vt as withChatAddress } from "../../../_chunks/principal-h5knGNwo.mjs";
7
+ import { Ot as runtimeEnvelope, Rt as chatRuntimeSource, Vt as withChatAddress } from "../../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { currentChannel } from "../channel-scope.mjs";
9
9
  import { pressWorkspaceButton, queueWorkspaceButtonTurn, workspaceAction, workspaceButtonToken } from "../workspace-action.mjs";
10
10
  import { pairingNotice } from "./pairing.mjs";
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { object } from "./confirmation-description.mjs";
8
- import { D as OntologyFileUnavailable, W as member, i as memberIdOf, j as ontologyTools } from "../../_chunks/principal-h5knGNwo.mjs";
8
+ import { D as OntologyFileUnavailable, W as member, i as memberIdOf, j as ontologyTools } from "../../_chunks/principal-DN2OIjo3.mjs";
9
9
  import { redactDiagnostic } from "./diagnostics.mjs";
10
10
  import { createHash } from "node:crypto";
11
11
  async function readStoredFile(input, principal, options = {}) {
@@ -11,17 +11,17 @@ import { groupRoutingHealth } from "../group-routing/health.mjs";
11
11
  import { dispatchStructuredMessage, structuredMessage } from "./structured.mjs";
12
12
  import { handleWorkspaceCallback } from "./callbacks.mjs";
13
13
  import { telegramText, withTelegramTexts } from "./texts.mjs";
14
- import { t as agentBuild } from "../../../_chunks/build-metadata-0MiIrYle.mjs";
14
+ import { t as agentBuild } from "../../../_chunks/build-metadata-9DTiYNuw.mjs";
15
15
  import { attachmentLifecycle } from "./lifecycle.mjs";
16
16
  import { manifestOf } from "../../config.mjs";
17
17
  import { gatewayAttachmentDescriber } from "./attachment-description.mjs";
18
18
  import { chooseModel } from "../../model.mjs";
19
- import { Ct as withDeliveryLocale, S as fetchStoredAttachment, St as safeTelegramFetch, b as agentAttachments, c as currentInboundRequest, l as runInboundRequest, mt as currentLocale, n as chatLanguage, o as telegramPrincipal, s as InboundRequest, u as withReplacedText, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-h5knGNwo.mjs";
19
+ import { Ct as withDeliveryLocale, S as fetchStoredAttachment, St as safeTelegramFetch, b as agentAttachments, c as currentInboundRequest, l as runInboundRequest, mt as currentLocale, n as chatLanguage, o as telegramPrincipal, s as InboundRequest, u as withReplacedText, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-DN2OIjo3.mjs";
20
20
  import { MAXIMUM_DOWNLOAD_BYTES, connectionProxy } from "../connection-proxy.mjs";
21
21
  import { appOrigin, channelsEnabled, proxyEnvironment, runtimeIdentityEnvironment, webhookSecret } from "../environment.mjs";
22
22
  import { agentIdentities } from "../identities.mjs";
23
23
  import { h as topicContext, r as chatArchive } from "../../../_chunks/chat-archive-DavfKJDI.mjs";
24
- import { a as captureTelegramFetch, h as telegramChatCapture, i as captureRouteDecider, s as chatIdentities, u as recordGateDecision } from "../../../_chunks/chat-archive-BhVy1Dbk.mjs";
24
+ import { a as captureTelegramFetch, h as telegramChatCapture, i as captureRouteDecider, s as chatIdentities, u as recordGateDecision } from "../../../_chunks/chat-archive-W-lFIyyA.mjs";
25
25
  import { runtimeTokenVerifier } from "../runtime-identity.mjs";
26
26
  import { runtimeToken } from "../runtime-token.mjs";
27
27
  import { botIdentityCache, proxiedBotRequest, runtimeBotIdentity } from "./bot.mjs";
@@ -40,7 +40,7 @@ import { TELEGRAM_PLACEHOLDER_TOKEN, TELEGRAM_PROXY_ORIGIN, telegramProxyFetch }
40
40
  import { healthRoute } from "./health.mjs";
41
41
  import { decisionRouter } from "../group-routing/router.mjs";
42
42
  import { scopedAddress } from "./sessions.mjs";
43
- import { a as isNoReplyCall, i as interimTexts, s as replyDelivery } from "../../../_chunks/silent-CsgJLKrZ.mjs";
43
+ import { a as isNoReplyCall, i as interimTexts, s as replyDelivery } from "../../../_chunks/silent-CoyadQMP.mjs";
44
44
  import { channelReview, holdFilesAfterTurn } from "../review/reply.mjs";
45
45
  import { telegramSendScope } from "./send-queue.mjs";
46
46
  import { telegramFailureEvents } from "./turn-errors.mjs";
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { describableImage } from "../inbound-media/images.mjs";
8
- import { xt as reportTelegramError } from "../../../_chunks/principal-h5knGNwo.mjs";
8
+ import { xt as reportTelegramError } from "../../../_chunks/principal-DN2OIjo3.mjs";
9
9
  import { gateway, generateText } from "ai";
10
10
  const MAXIMUM_ROUTING_ATTACHMENT_BYTES = 5242880;
11
11
  const ROUTING_ATTACHMENT_TIMEOUT_MS = 15e3;
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { attachmentOwner } from "../attachment-tools.mjs";
8
- import { _ as AttachmentError, _t as customerMessage, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-h5knGNwo.mjs";
8
+ import { _ as AttachmentError, _t as customerMessage, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-DN2OIjo3.mjs";
9
9
  import { attachmentFailure } from "../attachments-send.mjs";
10
10
  import { connectionProxy } from "../connection-proxy.mjs";
11
11
  import { StoredFileError, fetchStoredFile } from "../sent-files.mjs";
@@ -4,7 +4,7 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- import { Ot as runtimeEnvelope, c as currentInboundRequest, i as memberIdOf, kt as telegramRuntimeSource, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-h5knGNwo.mjs";
7
+ import { Ot as runtimeEnvelope, c as currentInboundRequest, i as memberIdOf, kt as telegramRuntimeSource, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-DN2OIjo3.mjs";
8
8
  import { formatAddress, parseAddress, scopedAddress } from "./sessions.mjs";
9
9
  import { telegramText } from "./texts.mjs";
10
10
  import { isWorkspaceCallback, pressWorkspaceButton, queueWorkspaceButtonTurn, workspaceAction, workspaceButtonToken } from "../workspace-action.mjs";
@@ -4,4 +4,4 @@ import { createRequire as __eveCreateRequire } from "node:module";
4
4
  const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
- export { t as REVISION_CLAIM_TTL_MS, n as attachmentIdentity, r as attachmentRefs, i as captureRouteDecider, a as captureTelegramFetch, o as captureTelegramWebhook, s as chatIdentities, c as currentCapture, l as participants, u as recordGateDecision, d as recordInboundContent, f as recordRouteDecision, p as recordSessionFailure, m as registerCapture, h as telegramChatCapture } from "../../../_chunks/chat-archive-BhVy1Dbk.mjs";
7
+ export { t as REVISION_CLAIM_TTL_MS, n as attachmentIdentity, r as attachmentRefs, i as captureRouteDecider, a as captureTelegramFetch, o as captureTelegramWebhook, s as chatIdentities, c as currentCapture, l as participants, u as recordGateDecision, d as recordInboundContent, f as recordRouteDecision, p as recordSessionFailure, m as registerCapture, h as telegramChatCapture } from "../../../_chunks/chat-archive-W-lFIyyA.mjs";