@segmentstream/agent 0.83.1 → 0.86.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 (102) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/README.md +31 -16
  3. package/dist/_chunks/{build-metadata-DLgMHYWG.mjs → build-metadata-CKp7rmO0.mjs} +1 -1
  4. package/dist/_chunks/{chat-archive-D4HRgOSo.mjs → chat-archive-By3MnPEC.mjs} +1 -1
  5. package/dist/_chunks/{principal-dEQyjF1n.mjs → principal-C1g8wCIg.mjs} +12 -3
  6. package/dist/_chunks/silent-C9x3GcMg.mjs +262 -0
  7. package/dist/extension/channels/email.mjs +3 -1
  8. package/dist/extension/channels/slack.mjs +3 -1
  9. package/dist/extension/channels/telegram.mjs +3 -1
  10. package/dist/extension/channels/whatsapp.mjs +3 -1
  11. package/dist/extension/connections/ontology.mjs +1 -1
  12. package/dist/extension/hooks/authorization.mjs +1 -1
  13. package/dist/extension/instructions/persona.mjs +1 -1
  14. package/dist/extension/lib/actor.mjs +1 -1
  15. package/dist/extension/lib/agent-task.mjs +2 -1
  16. package/dist/extension/lib/attachment-tools.mjs +1 -1
  17. package/dist/extension/lib/attachments-dispatch.d.ts +23 -0
  18. package/dist/extension/lib/attachments-dispatch.mjs +79 -0
  19. package/dist/extension/lib/attachments-send.mjs +1 -1
  20. package/dist/extension/lib/attachments.mjs +1 -1
  21. package/dist/extension/lib/build-metadata.mjs +1 -1
  22. package/dist/extension/lib/chat-address.mjs +1 -1
  23. package/dist/extension/lib/chat-context.mjs +1 -1
  24. package/dist/extension/lib/chat-recorder.mjs +2 -2
  25. package/dist/extension/lib/chat-store.mjs +3 -1
  26. package/dist/extension/lib/confirmations.mjs +1 -1
  27. package/dist/extension/lib/email/attachments-send.mjs +1 -1
  28. package/dist/extension/lib/email/channel.d.ts +2 -0
  29. package/dist/extension/lib/email/channel.mjs +40 -6
  30. package/dist/extension/lib/environment.d.ts +16 -1
  31. package/dist/extension/lib/environment.mjs +12 -2
  32. package/dist/extension/lib/evals.d.ts +3 -1
  33. package/dist/extension/lib/evals.mjs +3 -1
  34. package/dist/extension/lib/guest-usage.mjs +3 -2
  35. package/dist/extension/lib/identities.mjs +2 -0
  36. package/dist/extension/lib/inbound-media/files.mjs +1 -1
  37. package/dist/extension/lib/inbound-media/index.mjs +1 -1
  38. package/dist/extension/lib/ontology-connection.mjs +1 -1
  39. package/dist/extension/lib/ontology-file-call.mjs +1 -1
  40. package/dist/extension/lib/ontology-recall.mjs +1 -1
  41. package/dist/extension/lib/ontology-tools.mjs +1 -1
  42. package/dist/extension/lib/review/client.mjs +8 -0
  43. package/dist/extension/lib/review/files.d.ts +101 -0
  44. package/dist/extension/lib/review/files.mjs +7 -0
  45. package/dist/extension/lib/review/hold.d.ts +7 -0
  46. package/dist/extension/lib/review/hold.mjs +2 -1
  47. package/dist/extension/lib/review/judge.d.ts +2 -0
  48. package/dist/extension/lib/review/judge.mjs +1 -0
  49. package/dist/extension/lib/review/reply.d.ts +66 -0
  50. package/dist/extension/lib/review/reply.mjs +91 -9
  51. package/dist/extension/lib/review/revision.mjs +2 -0
  52. package/dist/extension/lib/role-skill.mjs +1 -1
  53. package/dist/extension/lib/runtime-envelope.mjs +1 -1
  54. package/dist/extension/lib/sent-files.mjs +3 -1
  55. package/dist/extension/lib/slack/adapter.mjs +1 -1
  56. package/dist/extension/lib/slack/attachments-send.mjs +1 -1
  57. package/dist/extension/lib/slack/callbacks.mjs +1 -1
  58. package/dist/extension/lib/stored-files.mjs +1 -1
  59. package/dist/extension/lib/telegram/adapter.mjs +11 -6
  60. package/dist/extension/lib/telegram/attachment-description.mjs +1 -1
  61. package/dist/extension/lib/telegram/attachments-send.mjs +1 -1
  62. package/dist/extension/lib/telegram/callbacks.mjs +1 -1
  63. package/dist/extension/lib/telegram/chat-archive.mjs +1 -1
  64. package/dist/extension/lib/telegram/confirmations.mjs +1 -1
  65. package/dist/extension/lib/telegram/customer-text.mjs +1 -1
  66. package/dist/extension/lib/telegram/files.mjs +1 -1
  67. package/dist/extension/lib/telegram/health.mjs +1 -1
  68. package/dist/extension/lib/telegram/held-approvals.mjs +1 -1
  69. package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
  70. package/dist/extension/lib/telegram/inbound.mjs +2 -2
  71. package/dist/extension/lib/telegram/lifecycle.mjs +2 -2
  72. package/dist/extension/lib/telegram/principal.mjs +1 -1
  73. package/dist/extension/lib/telegram/routing-context.mjs +1 -1
  74. package/dist/extension/lib/telegram/session-recovery.mjs +1 -1
  75. package/dist/extension/lib/telegram/silent.mjs +1 -84
  76. package/dist/extension/lib/telegram/store-capture.mjs +1 -1
  77. package/dist/extension/lib/telegram/structured.mjs +1 -1
  78. package/dist/extension/lib/telegram/turn-errors.mjs +2 -2
  79. package/dist/extension/lib/web/auth.d.ts +13 -3
  80. package/dist/extension/lib/web/auth.mjs +1 -1
  81. package/dist/extension/lib/web/channel.mjs +1 -1
  82. package/dist/extension/lib/whatsapp/adapter.mjs +2 -2
  83. package/dist/extension/lib/whatsapp/attachments-send.mjs +1 -1
  84. package/dist/extension/lib/whatsapp/callbacks.mjs +1 -1
  85. package/dist/extension/lib/whatsapp/files.mjs +1 -1
  86. package/dist/extension/lib/workspace-action.mjs +1 -1
  87. package/dist/extension/lib/workspace-channel/attachments-send.d.ts +1 -1
  88. package/dist/extension/lib/workspace-channel/attachments-send.mjs +3 -1
  89. package/dist/extension/lib/workspace-channel/channel.mjs +24 -5
  90. package/dist/extension/lib/workspace-source.mjs +1 -1
  91. package/dist/extension/model.mjs +1 -1
  92. package/dist/extension/tools/attachments_discard.mjs +1 -1
  93. package/dist/extension/tools/attachments_list.mjs +1 -1
  94. package/dist/extension/tools/attachments_promote.mjs +1 -1
  95. package/dist/extension/tools/attachments_read.mjs +1 -1
  96. package/dist/extension/tools/attachments_send.mjs +18 -38
  97. package/dist/extension/tools/attachments_stage.mjs +1 -1
  98. package/dist/extension/tools/attachments_table.mjs +1 -1
  99. package/dist/extension/tools/handoff.mjs +1 -1
  100. package/dist/extension/tools/questions_ask.mjs +1 -1
  101. package/dist/extension/tools/workspace_source.mjs +1 -1
  102. package/package.json +2 -2
@@ -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-dEQyjF1n.mjs";
8
+ import { Bt as participantsOf, Ft as chatAddressOf, a as rolesOf, i as memberIdOf } from "../../../_chunks/principal-C1g8wCIg.mjs";
9
9
  function reviewOf(settings, principal) {
10
10
  return reviewFor(settings, rolesOf(principal));
11
11
  }
@@ -60,6 +60,7 @@ function heldReply(input) {
60
60
  memberId,
61
61
  sessionId: input.sessionId,
62
62
  text: input.text,
63
+ ...input.files === void 0 || input.files.length === 0 ? {} : { files: input.files },
63
64
  mode: input.outcome.mode,
64
65
  confidence: input.outcome.confidence,
65
66
  ...input.turnId === void 0 || input.turnId === null || input.turnId === "" ? {} : { turnId: input.turnId }
@@ -47,6 +47,8 @@ export declare function judgeReply(input: {
47
47
  readonly model: string;
48
48
  readonly chat: ReadonlyArray<string>;
49
49
  readonly reply: string;
50
+ /** The names of the files the reply carries, which the judge weighs with its text. */
51
+ readonly files?: ReadonlyArray<string>;
50
52
  readonly criteria?: string;
51
53
  readonly timeoutMs?: number;
52
54
  }): Promise<number | undefined>;
@@ -57,6 +57,7 @@ async function judgeReply(input) {
57
57
  state: {
58
58
  chat: input.chat,
59
59
  reply: input.reply,
60
+ ...input.files === void 0 || input.files.length === 0 ? {} : { files: input.files },
60
61
  criteria: input.criteria ?? ""
61
62
  },
62
63
  questions: reviewQuestions(),
@@ -1,10 +1,12 @@
1
1
  import type { SessionAuthContext } from "eve/context";
2
+ import type { SessionView } from "eve/events";
2
3
  import type { ReviewSettings } from "../../review.js";
3
4
  import { type ChatArchive } from "../chat-archive.js";
4
5
  import { type Environment } from "../environment.js";
5
6
  import type { RuntimeToken } from "../runtime-token.js";
6
7
  import { type HoldReply } from "./hold.js";
7
8
  import { type ReviewDecideFunction } from "./judge.js";
9
+ import { type ReplyFiles } from "./files.js";
8
10
  /**
9
11
  * Review of a channel's final replies: the reply of a chat whose review is not `never` is
10
12
  * judged or held before the channel sends it, and held replies become `agent_draft` records. The
@@ -29,7 +31,38 @@ export interface ReplyReview {
29
31
  readonly to: ReadonlyArray<string>;
30
32
  readonly cc: ReadonlyArray<string>;
31
33
  };
34
+ /**
35
+ * The files `attachments_send` attached to this reply, which the judge weighs with it and a held
36
+ * reply carries into its draft. Their captions join the text, as the person reads them. When it
37
+ * answers true with files, the channel sends them after the text.
38
+ */
39
+ readonly files?: ReplyFiles;
32
40
  }): Promise<boolean>;
41
+ /**
42
+ * Holds files the turn attached that no reply carries, such as a reply of files alone: never
43
+ * judged and never sent unreviewed. Throws when they could not be held.
44
+ */
45
+ /**
46
+ * Sends the files a reply the judge passed carries, after the channel sent its text, with their
47
+ * captions, by the channel's own sender.
48
+ */
49
+ sendFiles(input: {
50
+ readonly principal: SessionAuthContext | null | undefined;
51
+ readonly sessionId: string;
52
+ readonly turnId: string | null;
53
+ readonly partId: string;
54
+ readonly files: ReplyFiles;
55
+ }): Promise<void>;
56
+ holdFiles(input: {
57
+ readonly principal: SessionAuthContext | null | undefined;
58
+ readonly sessionId: string;
59
+ readonly turnId: string;
60
+ readonly files: ReplyFiles;
61
+ readonly recipients?: {
62
+ readonly to: ReadonlyArray<string>;
63
+ readonly cc: ReadonlyArray<string>;
64
+ };
65
+ }): Promise<void>;
33
66
  }
34
67
  export declare function replyReview(options: {
35
68
  readonly settings: () => ReviewSettings | undefined;
@@ -38,6 +71,11 @@ export declare function replyReview(options: {
38
71
  readonly model: () => string;
39
72
  readonly archive: ChatArchive;
40
73
  readonly hold: HoldReply;
74
+ /**
75
+ * Sends a passed reply's files in the chat; without it a reply with files is always held, so
76
+ * they are never lost or sent unreviewed.
77
+ */
78
+ readonly sendFiles?: SendReplyFiles;
41
79
  }): ReplyReview;
42
80
  /**
43
81
  * An eve channel whose final replies are reviewed: its `content.completed` handler sends a reply
@@ -48,6 +86,32 @@ export declare function replyReview(options: {
48
86
  * eve's Chat SDK and Slack channels, whose handlers live on `channel.adapter`.
49
87
  */
50
88
  export declare function withReviewedReplies<Channel extends object>(channel: Channel, review: () => ReplyReview, archive?: () => ChatArchive): Channel;
89
+ /**
90
+ * At a turn's end, holds the files it attached that no reply part carried, such as a reply of files
91
+ * alone, in a chat whose replies are reviewed; a failed or interrupted turn drops them.
92
+ */
93
+ export declare function holdFilesAfterTurn(review: ReplyReview | undefined, event: {
94
+ readonly data: {
95
+ readonly turnId: string;
96
+ readonly outcome: string;
97
+ };
98
+ }, context: {
99
+ readonly session: {
100
+ readonly id: string;
101
+ readonly auth: {
102
+ readonly current: SessionAuthContext | null;
103
+ };
104
+ };
105
+ readonly view?: SessionView;
106
+ }): Promise<void>;
107
+ /** Sends the files of a reply the judge passed, in the reply's chat. */
108
+ export type SendReplyFiles = (input: {
109
+ readonly principal: SessionAuthContext | null | undefined;
110
+ readonly sessionId: string;
111
+ readonly turnId: string | null;
112
+ readonly partId: string;
113
+ readonly files: ReplyFiles;
114
+ }) => Promise<unknown>;
51
115
  /** What a channel needs to review its replies; read per reply, as eve binds the mount late. */
52
116
  export interface ChannelReviewOptions {
53
117
  /** `review` of `agent/segmentstream.json`; without it every reply is sent. */
@@ -59,6 +123,8 @@ export interface ChannelReviewOptions {
59
123
  readonly hold?: HoldReply;
60
124
  /** The chat archive; tests pass a fake. */
61
125
  readonly archive?: ChatArchive;
126
+ /** Sends a passed reply's files; without it such a reply is held. */
127
+ readonly sendFiles?: SendReplyFiles;
62
128
  }
63
129
  /** A channel's {@link ReplyReview}, reporting held replies to the workspace's ontology service. */
64
130
  export declare function channelReview(options: ChannelReviewOptions, runtime: {
@@ -4,11 +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-dEQyjF1n.mjs";
7
+ import { Ft as chatAddressOf, It as chatChannel, i as memberIdOf } from "../../../_chunks/principal-C1g8wCIg.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-C9x3GcMg.mjs";
12
13
  import { heldReply, repliesReviewed, reviewOf, reviewOutcome } from "./hold.mjs";
13
14
  import { judgeReply, readChat } from "./judge.mjs";
14
15
  const VERDICTS_REMEMBERED = 512;
@@ -40,16 +41,48 @@ function replyReview(options) {
40
41
  };
41
42
  return {
42
43
  reviewed: (principal) => repliesReviewed(options.settings(), principal),
44
+ async sendFiles(input) {
45
+ for (const [index, files] of fileGroups(input.files).entries()) await options.sendFiles({
46
+ ...input,
47
+ partId: index === 0 ? input.partId : `${input.partId}:${index}`,
48
+ files
49
+ });
50
+ },
51
+ async holdFiles(input) {
52
+ const review = reviewOf(options.settings(), input.principal);
53
+ if (review.mode === "never") return;
54
+ for (const [index, files] of fileGroups(input.files).entries()) {
55
+ const held = heldReply({
56
+ principal: input.principal,
57
+ sessionId: input.sessionId,
58
+ partId: index === 0 ? `${input.turnId}:files` : `${input.turnId}:files:${index}`,
59
+ turnId: input.turnId,
60
+ text: withCaptions("", files.captions),
61
+ files: files.files,
62
+ ...input.recipients === void 0 ? {} : { recipients: input.recipients },
63
+ outcome: {
64
+ send: false,
65
+ mode: review.mode,
66
+ confidence: null
67
+ }
68
+ });
69
+ if (held === void 0) throw new Error("Files under review have no chat or member to be held for.");
70
+ await options.hold(held);
71
+ }
72
+ },
43
73
  async sendOrHold(input) {
44
74
  const review = reviewOf(options.settings(), input.principal);
45
75
  if (!repliesReviewed(options.settings(), input.principal) || review.mode === "never") return true;
76
+ const files = input.files?.files ?? [];
77
+ const text = withCaptions(input.text, input.files?.captions ?? []);
46
78
  const coordinates = reviewedChat(input.principal);
47
79
  const key = `${input.sessionId}:${input.partId}`;
48
80
  const outcome = verdicts.get(key) ?? remember(key, await reviewOutcome(review, async (criteria) => judgeReply({
49
81
  decide: options.decide,
50
82
  model: options.model(),
51
83
  chat: coordinates === void 0 ? [] : await readChat(options.archive, coordinates),
52
- reply: input.text,
84
+ reply: text,
85
+ ...files.length === 0 ? {} : { files: files.map((file) => file.filename) },
53
86
  ...criteria === void 0 ? {} : { criteria }
54
87
  }), (error) => console.error("[segmentstream] reply review judge failed; the reply is held", {
55
88
  sessionId: input.sessionId,
@@ -70,7 +103,13 @@ function replyReview(options) {
70
103
  argsSummary: JSON.stringify(summary)
71
104
  }));
72
105
  };
73
- if (outcome.send) {
106
+ const captions = (input.files?.captions ?? []).join("\n\n");
107
+ const verdict = outcome.send && files.length > 0 && (options.sendFiles === void 0 || captions.length > 1024) ? {
108
+ send: false,
109
+ mode: review.mode === "always" ? "always" : "whenUnsure",
110
+ confidence: outcome.confidence ?? null
111
+ } : outcome;
112
+ if (verdict.send) {
74
113
  await record("review_passed", {
75
114
  mode: review.mode,
76
115
  confidence: outcome.confidence ?? null,
@@ -78,15 +117,31 @@ function replyReview(options) {
78
117
  });
79
118
  return true;
80
119
  }
120
+ const [first, ...rest] = fileGroups({
121
+ files,
122
+ captions: []
123
+ });
81
124
  const held = heldReply({
82
125
  ...input,
83
- outcome
126
+ text,
127
+ files: first?.files ?? [],
128
+ outcome: verdict
84
129
  });
85
130
  if (held === void 0) throw new Error("A reply under review has no chat or member to be held for.");
86
131
  await options.hold(held);
132
+ for (const [index, group] of rest.entries()) {
133
+ const more = heldReply({
134
+ ...input,
135
+ partId: `${input.partId}:files:${index + 1}`,
136
+ text: "",
137
+ files: group.files,
138
+ outcome: verdict
139
+ });
140
+ if (more !== void 0) await options.hold(more);
141
+ }
87
142
  await record("review_held", {
88
- mode: outcome.mode,
89
- confidence: outcome.confidence,
143
+ mode: verdict.mode,
144
+ confidence: verdict.confidence,
90
145
  ...review.mode === "whenUnsure" ? { minConfidence: review.minConfidence } : {}
91
146
  });
92
147
  return false;
@@ -102,12 +157,14 @@ function withReviewedReplies(channel, review, archive) {
102
157
  const text = typeof event.data.value === "string" ? event.data.value : "";
103
158
  if (event.data.kind !== "text" || event.data.phase !== "reply" || event.data.interrupted === true || text.trim() === "" || !review().reviewed(principal)) return completed(event, context);
104
159
  const turnId = event.scope?.turnId ?? context.session.turn?.id ?? null;
160
+ const files = turnId === null || context.view === void 0 || completionKind(text) !== "reply" ? void 0 : partFiles(context.view, turnId, event.data.partId);
105
161
  if (!await review().sendOrHold({
106
162
  principal,
107
163
  sessionId: context.session.id,
108
164
  turnId,
109
165
  partId: event.data.partId,
110
- text
166
+ text,
167
+ ...files === void 0 || files.files.length === 0 ? {} : { files }
111
168
  })) return completed({
112
169
  ...event,
113
170
  data: {
@@ -116,6 +173,13 @@ function withReviewedReplies(channel, review, archive) {
116
173
  }
117
174
  }, context);
118
175
  await completed(event, context);
176
+ if (files !== void 0 && files.files.length > 0) await review().sendFiles({
177
+ principal,
178
+ sessionId: context.session.id,
179
+ turnId,
180
+ partId: event.data.partId,
181
+ files
182
+ });
119
183
  const chat = reviewedChat(principal);
120
184
  const memberId = memberIdOf(principal);
121
185
  if (chat !== void 0 && archive !== void 0) await archive().append(chatEvent({
@@ -131,14 +195,31 @@ function withReviewedReplies(channel, review, archive) {
131
195
  status: "completed"
132
196
  }));
133
197
  };
198
+ const settled = adapter["turn.settled"];
199
+ const settle = async (event, context) => {
200
+ await settled?.(event, context);
201
+ await holdFilesAfterTurn(review(), event, context);
202
+ };
134
203
  return {
135
204
  ...channel,
136
205
  adapter: {
137
206
  ...adapter,
138
- "content.completed": handler
207
+ "content.completed": handler,
208
+ "turn.settled": settle
139
209
  }
140
210
  };
141
211
  }
212
+ async function holdFilesAfterTurn(review, event, context) {
213
+ const principal = context.session.auth.current;
214
+ if (review === void 0 || event.data.outcome !== "completed" || context.view === void 0 || !review.reviewed(principal)) return;
215
+ const files = filesAfterReply(context.view, event.data.turnId);
216
+ if (files.files.length > 0) await review.holdFiles({
217
+ principal,
218
+ sessionId: context.session.id,
219
+ turnId: event.data.turnId,
220
+ files
221
+ });
222
+ }
142
223
  function channelReview(options, runtime) {
143
224
  const transport = {
144
225
  token: runtime.token,
@@ -155,6 +236,7 @@ function channelReview(options, runtime) {
155
236
  decide: options.decide,
156
237
  model: options.model,
157
238
  archive,
239
+ ...options.sendFiles === void 0 ? {} : { sendFiles: options.sendFiles },
158
240
  hold: options.hold ?? ((reply) => agentReviews({
159
241
  origin: appOrigin(runtime.environment),
160
242
  ...transport
@@ -162,4 +244,4 @@ function channelReview(options, runtime) {
162
244
  })
163
245
  };
164
246
  }
165
- export { channelReview, replyReview, withReviewedReplies };
247
+ export { channelReview, holdFilesAfterTurn, replyReview, withReviewedReplies };
@@ -8,6 +8,7 @@ import { redactDiagnostic } from "../diagnostics.mjs";
8
8
  import { AgentIdentityError, refusal } from "../identities.mjs";
9
9
  import { readChat } from "./judge.mjs";
10
10
  import { postDraftRoute } from "./routes.mjs";
11
+ import { ontologyDeploymentHeaders } from "../environment.mjs";
11
12
  const REVISION_AUTHENTICATOR = "segmentstream-review-revision";
12
13
  const REVISION_ROUTE = "/eve/segmentstream/v1/reviews/revise";
13
14
  const REVISION_SCOPE = "ontology:read";
@@ -178,6 +179,7 @@ function agentRevisions(input) {
178
179
  method: "POST",
179
180
  headers: {
180
181
  authorization: `Bearer ${token}`,
182
+ ...ontologyDeploymentHeaders(),
181
183
  accept: "application/json",
182
184
  "content-type": "application/json"
183
185
  },
@@ -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-dEQyjF1n.mjs";
7
+ import { a as rolesOf } from "../../_chunks/principal-C1g8wCIg.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-dEQyjF1n.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-C1g8wCIg.mjs";
@@ -4,8 +4,9 @@ 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-dEQyjF1n.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-C1g8wCIg.mjs";
8
8
  import { fetchFileGrant, transientFileStatus } from "./file-grant.mjs";
9
+ import { ontologyDeploymentHeaders } from "./environment.mjs";
9
10
  var StoredFileError = class extends AttachmentError {
10
11
  filename;
11
12
  requestId;
@@ -62,6 +63,7 @@ async function storedFileGrant(input) {
62
63
  const response = await fetchFileGrant(async () => input.fetch(`${input.origin}/api/ontology/agent/files/${path}`, {
63
64
  headers: {
64
65
  authorization: `Bearer ${await input.token()}`,
66
+ ...ontologyDeploymentHeaders(),
65
67
  [ACT_AS_HEADER]: owner.memberId,
66
68
  [CHAT_HEADER]: owner.chat,
67
69
  [EARLIER_CHAT_HEADER]: owner.chat,
@@ -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-dEQyjF1n.mjs";
11
+ import { Vt as withChatAddress, b as agentAttachments, d as prepareInboundMedia, m as turnContent } from "../../../_chunks/principal-C1g8wCIg.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-dEQyjF1n.mjs";
7
+ import { _ as AttachmentError } from "../../../_chunks/principal-C1g8wCIg.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-dEQyjF1n.mjs";
7
+ import { Ot as runtimeEnvelope, Rt as chatRuntimeSource, Vt as withChatAddress } from "../../../_chunks/principal-C1g8wCIg.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-dEQyjF1n.mjs";
8
+ import { D as OntologyFileUnavailable, W as member, i as memberIdOf, j as ontologyTools } from "../../_chunks/principal-C1g8wCIg.mjs";
9
9
  import { redactDiagnostic } from "./diagnostics.mjs";
10
10
  import { createHash } from "node:crypto";
11
11
  async function readStoredFile(input, principal, options = {}) {
@@ -10,27 +10,27 @@ import { groupRoutingHealth } from "../group-routing/health.mjs";
10
10
  import { dispatchStructuredMessage, structuredMessage } from "./structured.mjs";
11
11
  import { handleWorkspaceCallback } from "./callbacks.mjs";
12
12
  import { telegramText, withTelegramTexts } from "./texts.mjs";
13
- import { t as agentBuild } from "../../../_chunks/build-metadata-DLgMHYWG.mjs";
13
+ import { t as agentBuild } from "../../../_chunks/build-metadata-CKp7rmO0.mjs";
14
14
  import { attachmentLifecycle } from "./lifecycle.mjs";
15
15
  import { manifestOf } from "../../config.mjs";
16
16
  import { gatewayAttachmentDescriber } from "./attachment-description.mjs";
17
17
  import { chooseModel } from "../../model.mjs";
18
- 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-dEQyjF1n.mjs";
18
+ 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-C1g8wCIg.mjs";
19
19
  import { MAXIMUM_DOWNLOAD_BYTES, connectionProxy } from "../connection-proxy.mjs";
20
20
  import { appOrigin, channelsEnabled, proxyEnvironment, runtimeIdentityEnvironment, webhookSecret } from "../environment.mjs";
21
21
  import { agentIdentities } from "../identities.mjs";
22
22
  import { h as topicContext, r as chatArchive } from "../../../_chunks/chat-archive-DavfKJDI.mjs";
23
- import { a as captureTelegramFetch, h as telegramChatCapture, i as captureRouteDecider, s as chatIdentities, u as recordGateDecision } from "../../../_chunks/chat-archive-D4HRgOSo.mjs";
23
+ import { a as captureTelegramFetch, h as telegramChatCapture, i as captureRouteDecider, s as chatIdentities, u as recordGateDecision } from "../../../_chunks/chat-archive-By3MnPEC.mjs";
24
24
  import { runtimeTokenVerifier } from "../runtime-identity.mjs";
25
25
  import { runtimeToken } from "../runtime-token.mjs";
26
26
  import { botIdentityCache, proxiedBotRequest, runtimeBotIdentity } from "./bot.mjs";
27
27
  import { handleConfirmationCallback, telegramConfirmationEvents } from "./confirmations.mjs";
28
28
  import { confirmationLocale } from "./confirmation-text.mjs";
29
+ import { isWorkspaceCallback } from "../workspace-action.mjs";
29
30
  import { telegramAppLinkContext } from "./app-links.mjs";
30
31
  import { gatewayImageDescriber } from "../inbound-media/images.mjs";
31
32
  import { chatMediaPlan, gatewayMediaCapabilities, sessionModel } from "../inbound-media/plan.mjs";
32
33
  import { gatewayTranscriber } from "../inbound-media/speech.mjs";
33
- import { isWorkspaceCallback } from "../workspace-action.mjs";
34
34
  import { agentChats, channelChats } from "../chats.mjs";
35
35
  import { currentChannel, withNamedRoutes, withSessionChannels } from "../channel-scope.mjs";
36
36
  import { handleInboundMessage } from "./inbound.mjs";
@@ -39,8 +39,8 @@ import { TELEGRAM_PLACEHOLDER_TOKEN, TELEGRAM_PROXY_ORIGIN, telegramProxyFetch }
39
39
  import { healthRoute } from "./health.mjs";
40
40
  import { decisionRouter } from "../group-routing/router.mjs";
41
41
  import { scopedAddress } from "./sessions.mjs";
42
- import { interimTexts, isNoReplyCall, replyDelivery } from "./silent.mjs";
43
- import { channelReview } from "../review/reply.mjs";
42
+ import { a as isNoReplyCall, i as interimTexts, s as replyDelivery } from "../../../_chunks/silent-C9x3GcMg.mjs";
43
+ import { channelReview, holdFilesAfterTurn } from "../review/reply.mjs";
44
44
  import { telegramSendScope } from "./send-queue.mjs";
45
45
  import { telegramFailureEvents } from "./turn-errors.mjs";
46
46
  import { withDeliveryDiagnostics } from "./delivery-diagnostics.mjs";
@@ -403,6 +403,11 @@ function segmentstreamTelegram(options) {
403
403
  await failureEvents["interaction.settled"]?.(event, ctx);
404
404
  await approvalEvents["interaction.settled"]?.(event, ctx);
405
405
  },
406
+ async "turn.settled"(event, ctx) {
407
+ await failureEvents["turn.settled"]?.(event, ctx);
408
+ await approvalEvents["turn.settled"]?.(event, ctx);
409
+ await holdFilesAfterTurn(review, event, ctx);
410
+ },
406
411
  async "content.completed"(event, context) {
407
412
  const channel = context.channel;
408
413
  const message = typeof event.data.value === "string" ? event.data.value : "";
@@ -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-dEQyjF1n.mjs";
8
+ import { xt as reportTelegramError } from "../../../_chunks/principal-C1g8wCIg.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-dEQyjF1n.mjs";
8
+ import { _ as AttachmentError, _t as customerMessage, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-C1g8wCIg.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-dEQyjF1n.mjs";
7
+ import { Ot as runtimeEnvelope, c as currentInboundRequest, i as memberIdOf, kt as telegramRuntimeSource, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-C1g8wCIg.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-D4HRgOSo.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-By3MnPEC.mjs";
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { telegramText } from "./texts.mjs";
8
- import { F as confirmations, It as chatChannel, c as currentInboundRequest, i as memberIdOf, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-dEQyjF1n.mjs";
8
+ import { F as confirmations, It as chatChannel, c as currentInboundRequest, i as memberIdOf, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-C1g8wCIg.mjs";
9
9
  import { humanText } from "../confirmation-description.mjs";
10
10
  import { withConfirmationPrompt } from "../group-routing/messages.mjs";
11
11
  import { chatPostOperationId, isChatPost } from "../chat-post-confirmation.mjs";
@@ -5,5 +5,5 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { isTechnicalText } from "../customer-text-safety.mjs";
8
- import { Ct as withDeliveryLocale, St as safeTelegramFetch, _t as customerMessage, bt as formattingRefused, gt as customerCopy, ht as currentThreadId, mt as currentLocale, pt as TelegramDeliveryError, vt as customerText, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-dEQyjF1n.mjs";
8
+ import { Ct as withDeliveryLocale, St as safeTelegramFetch, _t as customerMessage, bt as formattingRefused, gt as customerCopy, ht as currentThreadId, mt as currentLocale, pt as TelegramDeliveryError, vt as customerText, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-C1g8wCIg.mjs";
9
9
  export { TelegramDeliveryError, currentLocale, currentThreadId, customerCopy, customerMessage, customerText, failureText, formattingRefused, isTechnicalText, reportTelegramError, safeTelegramFetch, withDeliveryLocale };
@@ -5,7 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
5
5
  __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { currentChannel } from "../channel-scope.mjs";
8
- import { p as storeFiles, xt as reportTelegramError } from "../../../_chunks/principal-dEQyjF1n.mjs";
8
+ import { p as storeFiles, xt as reportTelegramError } from "../../../_chunks/principal-C1g8wCIg.mjs";
9
9
  function telegramChat(chatId) {
10
10
  return `${currentChannel("telegram")}:${chatId}`;
11
11
  }
@@ -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 { t as agentBuild } from "../../../_chunks/build-metadata-DLgMHYWG.mjs";
7
+ import { t as agentBuild } from "../../../_chunks/build-metadata-CKp7rmO0.mjs";
8
8
  import { runtimeRequestFailure } from "./runtime-request.mjs";
9
9
  import { GET } from "eve/channels";
10
10
  const HEALTH_ROUTE = "/eve/v1/telegram/health";
@@ -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 { N as CONFIRMATION_TTL_MS } from "../../../_chunks/principal-dEQyjF1n.mjs";
7
+ import { N as CONFIRMATION_TTL_MS } from "../../../_chunks/principal-C1g8wCIg.mjs";
8
8
  import { object } from "../confirmation-description.mjs";
9
9
  import { SessionNotActiveError } from "eve/sessions";
10
10
  function heldApprovals(events) {
@@ -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 { s as InboundRequest, c as currentInboundRequest, l as runInboundRequest, u as withReplacedText } from "../../../_chunks/principal-dEQyjF1n.mjs";
7
+ export { s as InboundRequest, c as currentInboundRequest, l as runInboundRequest, u as withReplacedText } from "../../../_chunks/principal-C1g8wCIg.mjs";
@@ -7,7 +7,7 @@ __eveCreateRequire(import.meta.url);
7
7
  import { WorkspaceActionAlreadyDispatched } from "../workspace-action.mjs";
8
8
  import { structuredMessage } from "./structured.mjs";
9
9
  import { currentChannel } from "../channel-scope.mjs";
10
- import { Ot as runtimeEnvelope, f as attachmentsContext, kt as telegramRuntimeSource, n as chatLanguage, o as telegramPrincipal, x as attachmentUrl, xt as reportTelegramError } from "../../../_chunks/principal-dEQyjF1n.mjs";
10
+ import { Ot as runtimeEnvelope, f as attachmentsContext, kt as telegramRuntimeSource, n as chatLanguage, o as telegramPrincipal, x as attachmentUrl, xt as reportTelegramError } from "../../../_chunks/principal-C1g8wCIg.mjs";
11
11
  import { routingBurst } from "../group-routing/burst.mjs";
12
12
  import { telegramSignals } from "./signals.mjs";
13
13
  import { addressingReason, chatKey, otherRecipient } from "../group-routing/signals.mjs";
@@ -28,7 +28,7 @@ import { routingContext } from "./routing-context.mjs";
28
28
  import { formatAddress, messageAddress, scopedAddress } from "./sessions.mjs";
29
29
  import { voiceOf } from "./voice.mjs";
30
30
  import { MAXIMUM_ROUTING_ATTACHMENT_BYTES, describeRoutingAttachment, routingAttachmentDeadline } from "./attachment-description.mjs";
31
- import { d as recordInboundContent, f as recordRouteDecision, u as recordGateDecision } from "../../../_chunks/chat-archive-D4HRgOSo.mjs";
31
+ import { d as recordInboundContent, f as recordRouteDecision, u as recordGateDecision } from "../../../_chunks/chat-archive-By3MnPEC.mjs";
32
32
  import { contentShape, messageContent } from "./content.mjs";
33
33
  import { messageAudience } from "./audience.mjs";
34
34
  const MAXIMUM_QUOTE_LENGTH = 500;
@@ -4,8 +4,8 @@ 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 { E as OntologyActionNotPermitted, Et as principalRuntimeSource, L as needsConfirmation, Ot as runtimeEnvelope, W as member, c as currentInboundRequest, j as ontologyTools, k as actionToolName, kt as telegramRuntimeSource } from "../../../_chunks/principal-dEQyjF1n.mjs";
8
- import { t as agentBuild } from "../../../_chunks/build-metadata-DLgMHYWG.mjs";
7
+ import { E as OntologyActionNotPermitted, Et as principalRuntimeSource, L as needsConfirmation, Ot as runtimeEnvelope, W as member, c as currentInboundRequest, j as ontologyTools, k as actionToolName, kt as telegramRuntimeSource } from "../../../_chunks/principal-C1g8wCIg.mjs";
8
+ import { t as agentBuild } from "../../../_chunks/build-metadata-CKp7rmO0.mjs";
9
9
  import { object } from "../confirmation-description.mjs";
10
10
  var AttachmentLifecycleNotPermitted = class extends Error {
11
11
  code = "attachment_lifecycle_not_permitted";
@@ -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 TELEGRAM_AUTHENTICATOR, n as chatLanguage, r as identityProviderOf, i as memberIdOf, a as rolesOf, o as telegramPrincipal } from "../../../_chunks/principal-dEQyjF1n.mjs";
7
+ export { t as TELEGRAM_AUTHENTICATOR, n as chatLanguage, r as identityProviderOf, i as memberIdOf, a as rolesOf, o as telegramPrincipal } from "../../../_chunks/principal-C1g8wCIg.mjs";
@@ -6,7 +6,7 @@ __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { agentMessage } from "../group-routing/messages.mjs";
8
8
  import "../group-routing/router.mjs";
9
- import { isSilentReply } from "./silent.mjs";
9
+ import { o as isSilentReply } from "../../../_chunks/silent-C9x3GcMg.mjs";
10
10
  import { questionsFromHistory, routingConfirmationState, routingConfirmations } from "./confirmations.mjs";
11
11
  import { questionKey } from "../questions.mjs";
12
12
  import { archivedRoutingMessages } from "../group-routing/routing-context.mjs";