@segmentstream/agent 0.90.0 → 0.91.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 (91) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/_chunks/{build-metadata-9DTiYNuw.mjs → build-metadata-BisjjIh6.mjs} +1 -1
  3. package/dist/_chunks/{chat-archive-W-lFIyyA.mjs → chat-archive-Btd3gajb.mjs} +1 -1
  4. package/dist/_chunks/{principal-DN2OIjo3.mjs → principal-CY72xYFi.mjs} +9 -0
  5. package/dist/_chunks/{silent-CoyadQMP.mjs → silent-DK7m_iab.mjs} +1 -1
  6. package/dist/extension/channels/slack.mjs +1 -0
  7. package/dist/extension/config.d.ts +8 -2
  8. package/dist/extension/connections/ontology.mjs +1 -1
  9. package/dist/extension/conventions.mjs +6 -1
  10. package/dist/extension/hooks/authorization.mjs +1 -1
  11. package/dist/extension/instructions/persona.d.ts +1 -6
  12. package/dist/extension/instructions/persona.mjs +7 -4
  13. package/dist/extension/lib/actor.mjs +1 -1
  14. package/dist/extension/lib/attachment-tools.mjs +1 -1
  15. package/dist/extension/lib/attachments-dispatch.mjs +2 -2
  16. package/dist/extension/lib/attachments-send.mjs +1 -1
  17. package/dist/extension/lib/attachments.mjs +1 -1
  18. package/dist/extension/lib/build-metadata.mjs +1 -1
  19. package/dist/extension/lib/chat-address.mjs +1 -1
  20. package/dist/extension/lib/chat-context.mjs +1 -1
  21. package/dist/extension/lib/chat-persona.d.ts +15 -0
  22. package/dist/extension/lib/chat-persona.mjs +75 -0
  23. package/dist/extension/lib/chat-recorder.mjs +2 -2
  24. package/dist/extension/lib/confirmations.d.ts +8 -0
  25. package/dist/extension/lib/confirmations.mjs +1 -1
  26. package/dist/extension/lib/email/attachments-send.mjs +1 -1
  27. package/dist/extension/lib/email/channel.mjs +2 -2
  28. package/dist/extension/lib/guest-usage.mjs +1 -1
  29. package/dist/extension/lib/inbound-media/files.mjs +1 -1
  30. package/dist/extension/lib/inbound-media/index.mjs +1 -1
  31. package/dist/extension/lib/ontology-connection.mjs +1 -1
  32. package/dist/extension/lib/ontology-file-call.mjs +1 -1
  33. package/dist/extension/lib/ontology-recall.mjs +1 -1
  34. package/dist/extension/lib/ontology-tools.mjs +1 -1
  35. package/dist/extension/lib/review/files.mjs +1 -1
  36. package/dist/extension/lib/review/hold.mjs +1 -1
  37. package/dist/extension/lib/review/reply.mjs +2 -2
  38. package/dist/extension/lib/role-skill.mjs +1 -1
  39. package/dist/extension/lib/runtime-envelope.mjs +1 -1
  40. package/dist/extension/lib/sent-files.mjs +1 -1
  41. package/dist/extension/lib/slack/adapter.d.ts +2 -0
  42. package/dist/extension/lib/slack/adapter.mjs +32 -7
  43. package/dist/extension/lib/slack/attachments-send.mjs +1 -1
  44. package/dist/extension/lib/slack/callbacks.mjs +1 -1
  45. package/dist/extension/lib/slack/confirmation-card.d.ts +6 -0
  46. package/dist/extension/lib/slack/confirmation-card.mjs +177 -0
  47. package/dist/extension/lib/stored-files.mjs +1 -1
  48. package/dist/extension/lib/telegram/adapter.mjs +4 -4
  49. package/dist/extension/lib/telegram/attachment-description.mjs +1 -1
  50. package/dist/extension/lib/telegram/attachments-send.mjs +1 -1
  51. package/dist/extension/lib/telegram/callbacks.mjs +1 -1
  52. package/dist/extension/lib/telegram/chat-archive.mjs +1 -1
  53. package/dist/extension/lib/telegram/confirmations.mjs +1 -1
  54. package/dist/extension/lib/telegram/customer-text.mjs +1 -1
  55. package/dist/extension/lib/telegram/files.mjs +1 -1
  56. package/dist/extension/lib/telegram/health.mjs +1 -1
  57. package/dist/extension/lib/telegram/held-approvals.mjs +1 -1
  58. package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
  59. package/dist/extension/lib/telegram/inbound.mjs +23 -3
  60. package/dist/extension/lib/telegram/lifecycle.mjs +2 -2
  61. package/dist/extension/lib/telegram/principal.mjs +1 -1
  62. package/dist/extension/lib/telegram/routing-context.mjs +1 -1
  63. package/dist/extension/lib/telegram/session-recovery.mjs +1 -1
  64. package/dist/extension/lib/telegram/silent.mjs +1 -1
  65. package/dist/extension/lib/telegram/store-capture.mjs +1 -1
  66. package/dist/extension/lib/telegram/structured.mjs +1 -1
  67. package/dist/extension/lib/telegram/turn-errors.mjs +2 -2
  68. package/dist/extension/lib/web/auth.mjs +1 -1
  69. package/dist/extension/lib/web/channel.mjs +1 -1
  70. package/dist/extension/lib/whatsapp/adapter.mjs +4 -3
  71. package/dist/extension/lib/whatsapp/attachments-send.mjs +1 -1
  72. package/dist/extension/lib/whatsapp/callbacks.mjs +1 -1
  73. package/dist/extension/lib/whatsapp/files.mjs +1 -1
  74. package/dist/extension/lib/workspace-action.mjs +1 -1
  75. package/dist/extension/lib/workspace-channel/attachments-send.mjs +1 -1
  76. package/dist/extension/lib/workspace-channel/channel.mjs +2 -2
  77. package/dist/extension/lib/workspace-source.mjs +1 -1
  78. package/dist/extension/model.mjs +1 -1
  79. package/dist/extension/personas.d.ts +9 -8
  80. package/dist/extension/personas.mjs +79 -3
  81. package/dist/extension/tools/attachments_discard.mjs +1 -1
  82. package/dist/extension/tools/attachments_list.mjs +1 -1
  83. package/dist/extension/tools/attachments_promote.mjs +1 -1
  84. package/dist/extension/tools/attachments_read.mjs +1 -1
  85. package/dist/extension/tools/attachments_send.mjs +2 -2
  86. package/dist/extension/tools/attachments_stage.mjs +1 -1
  87. package/dist/extension/tools/attachments_table.mjs +1 -1
  88. package/dist/extension/tools/handoff.mjs +1 -1
  89. package/dist/extension/tools/questions_ask.mjs +1 -1
  90. package/dist/extension/tools/workspace_source.mjs +1 -1
  91. package/package.json +2 -2
@@ -8,7 +8,8 @@ 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-DN2OIjo3.mjs";
11
+ import { personaPrincipal } from "../chat-persona.mjs";
12
+ import { Vt as withChatAddress, b as agentAttachments, d as prepareInboundMedia, m as turnContent } from "../../../_chunks/principal-CY72xYFi.mjs";
12
13
  import { channelAttributes, currentChannel, withNamedRoutes, withSessionChannels } from "../channel-scope.mjs";
13
14
  import { redactDiagnostic } from "../diagnostics.mjs";
14
15
  import { MAXIMUM_DOWNLOAD_BYTES, connectionProxy } from "../connection-proxy.mjs";
@@ -19,6 +20,7 @@ import { gatewayImageDescriber } from "../inbound-media/images.mjs";
19
20
  import { gatewayMediaCapabilities, turnMediaPlan } from "../inbound-media/plan.mjs";
20
21
  import { gatewayTranscriber } from "../inbound-media/speech.mjs";
21
22
  import { slackFileDownload, slackFiles } from "./files.mjs";
23
+ import { confirmationMessageCalls, slackConfirmationRenderer } from "./confirmation-card.mjs";
22
24
  import { handleWorkspaceCallback } from "./callbacks.mjs";
23
25
  import { pairingNotice } from "./pairing.mjs";
24
26
  import { recordThreadHistory } from "./thread-history.mjs";
@@ -296,11 +298,16 @@ function segmentstreamSlack(options) {
296
298
  }
297
299
  });
298
300
  };
299
- const observe = async (relayed, waitUntil) => {
301
+ const observe = async (relayed, work, waitUntil) => {
300
302
  let envelope;
301
303
  let change;
302
304
  try {
303
305
  const body = await relayed.clone().text();
306
+ if (relayed.headers.get("content-type")?.startsWith("application/x-www-form-urlencoded")) {
307
+ const calls = confirmationMessageCalls(body);
308
+ if (calls) work.confirmationCalls = calls;
309
+ return;
310
+ }
304
311
  envelope = JSON.parse(body);
305
312
  change = slackChange(envelope);
306
313
  if (change === void 0 && !MEMBERSHIP_EVENTS.has(String(record(record(envelope).event).type))) return;
@@ -342,6 +349,7 @@ function segmentstreamSlack(options) {
342
349
  fileBaseUrl: SLACK_FILES,
343
350
  fetch: slackFetch
344
351
  },
352
+ renderers: [slackConfirmationRenderer(options.texts ?? (() => ({})))],
345
353
  onAppMention: admit(false),
346
354
  onDirectMessage: admit(true),
347
355
  onMessage: async (ctx, message) => {
@@ -357,10 +365,22 @@ function segmentstreamSlack(options) {
357
365
  guidance: THREAD_GUIDANCE
358
366
  };
359
367
  },
360
- onAnswers: async (_ctx, submission) => {
368
+ onAnswers: async (ctx, submission) => {
361
369
  const auth = await pairedPrincipal(submission.user.id);
362
370
  if (auth === null) return null;
363
- return { auth: submission.type === "block_actions" ? withButtonDecision(auth, submission.answers) : auth };
371
+ if (submission.type !== "block_actions") return { auth };
372
+ const decision = withButtonDecision(auth, submission.answers);
373
+ const calls = requestWork.getStore()?.confirmationCalls ?? [];
374
+ if (!submission.messageTs || decision === auth) return { auth: decision };
375
+ return { auth: {
376
+ ...decision,
377
+ attributes: {
378
+ ...decision.attributes,
379
+ slackConfirmationCalls: calls,
380
+ slackConfirmationTs: submission.messageTs,
381
+ slackConfirmationChannel: ctx.slack.channelId
382
+ }
383
+ } };
364
384
  },
365
385
  onInteraction: (action, ctx) => handleWorkspaceCallback({
366
386
  action,
@@ -402,7 +422,7 @@ function gatedRoute(route, settings, environment, observe, delivered) {
402
422
  if (!channelsEnabled(environment) || settings() === null || webhookSecret(environment) === void 0) return new Response(null, { status: 404 });
403
423
  const waitUntil = (task) => args.waitUntil(task);
404
424
  const work = { waitUntil };
405
- await observe(request, waitUntil);
425
+ await observe(request, work, waitUntil);
406
426
  return requestWork.run(work, () => route.handler(request, {
407
427
  ...args,
408
428
  from: (address) => withTurnMedia(args.from(address), () => work.turn, (delivery) => delivered(work, delivery))
@@ -481,7 +501,7 @@ async function receive(input) {
481
501
  title: () => slackChannelTitle((method, body) => ctx.slack.request(method, body), channelId),
482
502
  memberId: resolution.member.id
483
503
  });
484
- if (input.waitUntil === void 0) await reported;
504
+ if (input.waitUntil === void 0 || admission.personas?.rules !== void 0) await reported;
485
505
  else input.waitUntil(reported);
486
506
  }
487
507
  if (!turn) return null;
@@ -494,7 +514,7 @@ async function receive(input) {
494
514
  messageTs: message.ts,
495
515
  memberId: resolution.member.id
496
516
  }).catch((error) => report("thread_history_failed", error));
497
- const auth = withChatAddress(slackPrincipal(resolution.member, user), {
517
+ const incoming = withChatAddress(slackPrincipal(resolution.member, user), {
498
518
  provider: "slack",
499
519
  ...currentChannel("slack") === "slack" ? {} : { channel: currentChannel("slack") },
500
520
  chatId: ctx.slack.channelId,
@@ -505,6 +525,11 @@ async function receive(input) {
505
525
  id: message.ts,
506
526
  sender: user
507
527
  });
528
+ const auth = await personaPrincipal(admission.personas, incoming, ctx.edit === void 0 ? (text) => ctx.slack.request("chat.postEphemeral", {
529
+ channel: ctx.slack.channelId,
530
+ user,
531
+ text
532
+ }) : void 0);
508
533
  const received = (media) => {
509
534
  if (ctx.edit === void 0) {
510
535
  const at = slackTime(message.ts);
@@ -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-DN2OIjo3.mjs";
7
+ import { _ as AttachmentError } from "../../../_chunks/principal-CY72xYFi.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-DN2OIjo3.mjs";
7
+ import { Ot as runtimeEnvelope, Rt as chatRuntimeSource, Vt as withChatAddress } from "../../../_chunks/principal-CY72xYFi.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";
@@ -0,0 +1,6 @@
1
+ import { type TelegramTexts } from "../telegram/texts.js";
2
+ /** Slack echoes the posted blocks on a click. Eve can batch several requests in one message. */
3
+ export declare function confirmationMessageCalls(body: string): string[] | undefined;
4
+ /** Eve owns posting, routing, button IDs and answer admission. Its interaction card ends at
5
+ * approval, so update the clicked message with the result when the tool itself settles. */
6
+ export declare function slackConfirmationRenderer(texts: () => TelegramTexts): import("eve/channels/slack").SlackRenderer;
@@ -0,0 +1,177 @@
1
+ import { fileURLToPath as __eveFileURLToPath } from "node:url";
2
+ import { dirname as __eveDirname } from "node:path";
3
+ import { createRequire as __eveCreateRequire } from "node:module";
4
+ const __filename = __eveFileURLToPath(import.meta.url);
5
+ __eveDirname(__filename);
6
+ __eveCreateRequire(import.meta.url);
7
+ import { object } from "../confirmation-description.mjs";
8
+ import { F as confirmations } from "../../../_chunks/principal-CY72xYFi.mjs";
9
+ import { chatPostReceipt } from "../telegram/chat-post-card.mjs";
10
+ import { renderConfirmation } from "../telegram/confirmation-text.mjs";
11
+ import { telegramText, withTelegramTexts } from "../telegram/texts.mjs";
12
+ import { APPROVE_OPTION_ID, DENY_OPTION_ID, call, interactions } from "eve/events";
13
+ import { defineSlackRenderer } from "eve/channels/slack";
14
+ const PREFIX = "ss-confirm:";
15
+ const plain = (text) => ({
16
+ type: "plain_text",
17
+ text,
18
+ emoji: true
19
+ });
20
+ function confirmationMessageCalls(body) {
21
+ const payload = new URLSearchParams(body).get("payload");
22
+ if (!payload) return;
23
+ const blocks = object(JSON.parse(payload).message).blocks;
24
+ if (!Array.isArray(blocks) || !blocks.length) return;
25
+ const ids = blocks.map((block) => object(block).block_id);
26
+ return ids.every((id) => typeof id === "string" && id.startsWith(PREFIX)) ? ids.map((id) => id.slice(11)) : void 0;
27
+ }
28
+ function ending(request) {
29
+ switch (request.outcome) {
30
+ case "expired": return "expired";
31
+ case "withdrawn":
32
+ case "abandoned":
33
+ case "interrupted": return "interrupted";
34
+ case "invalid":
35
+ case "failed": return "failed";
36
+ case "declined": return "cancelled";
37
+ case "accepted": return "executing";
38
+ default: return request.answer && (request.answer.optionId === DENY_OPTION_ID ? "cancelled" : "executing");
39
+ }
40
+ }
41
+ function message(saved, id, texts, buttons, status, user, output) {
42
+ return withTelegramTexts(texts, () => {
43
+ const copy = renderConfirmation(saved.description, saved.copy);
44
+ const description = saved.description;
45
+ const card = description?.card;
46
+ const authored = card !== void 0 && saved.description?.chatPost === void 0;
47
+ const title = authored ? [card.icon, card.title].filter(Boolean).join(" ") : description && description.action.length <= 150 ? description.action : copy.confirm.slice(0, 75);
48
+ const prompt = saved.prompt ?? copy.text;
49
+ const elements = [];
50
+ let offset = authored ? title.length : 0;
51
+ if (authored && saved.copy) elements.push({
52
+ type: "text",
53
+ text: saved.copy.question
54
+ });
55
+ for (const entity of copy.entities ?? []) {
56
+ if (entity.type !== "text_link" || !entity.url || entity.offset < offset) continue;
57
+ if (entity.offset > offset) elements.push({
58
+ type: "text",
59
+ text: prompt.slice(offset, entity.offset)
60
+ });
61
+ offset = entity.offset + entity.length;
62
+ elements.push({
63
+ type: "link",
64
+ text: prompt.slice(entity.offset, offset),
65
+ url: entity.url
66
+ });
67
+ }
68
+ if (offset < prompt.length) elements.push({
69
+ type: "text",
70
+ text: prompt.slice(offset)
71
+ });
72
+ if (copy.link && !copy.entities?.some((entity) => entity.url === copy.link?.url)) elements.push({
73
+ type: "text",
74
+ text: "\n"
75
+ }, {
76
+ type: "link",
77
+ ...copy.link
78
+ });
79
+ let label = status && copy[status];
80
+ if (status === "completed" && saved.description?.chatPost) label = chatPostReceipt(output) || telegramText("chatPost", "uncertain") || copy.interrupted;
81
+ const children = [];
82
+ if (elements.length) children.push({
83
+ type: "rich_text",
84
+ elements: [{
85
+ type: "rich_text_section",
86
+ elements
87
+ }]
88
+ });
89
+ if (buttons.length) children.push({
90
+ type: "actions",
91
+ elements: buttons.map((button) => {
92
+ const control = object(button);
93
+ return {
94
+ ...control,
95
+ text: plain(control.value === APPROVE_OPTION_ID ? copy.confirm : copy.cancel)
96
+ };
97
+ })
98
+ });
99
+ if (label) children.push({
100
+ type: "context",
101
+ elements: [plain(label), ...user ? [{
102
+ type: "mrkdwn",
103
+ text: `<@${user}>`
104
+ }] : []]
105
+ });
106
+ return {
107
+ blocks: [{
108
+ type: "container",
109
+ block_id: PREFIX + id,
110
+ title: plain(title),
111
+ has_header_divider: true,
112
+ child_blocks: children
113
+ }],
114
+ text: [prompt, label].filter(Boolean).join("\n")
115
+ };
116
+ }, () => saved.locale ?? "en");
117
+ }
118
+ function slackConfirmationRenderer(texts) {
119
+ return defineSlackRenderer({
120
+ interactionCard(card, next) {
121
+ const request = card.interaction;
122
+ const id = request.call?.callId;
123
+ const saved = request.request.kind === "approval" && id ? confirmations.get()[id] : void 0;
124
+ if (!saved?.description || !id || !request.call) return next(card);
125
+ const call = {
126
+ callId: id,
127
+ name: request.call.name
128
+ };
129
+ const actions = next({
130
+ ...card,
131
+ interaction: {
132
+ ...request,
133
+ call
134
+ }
135
+ }).controls.blocks[0]?.actions;
136
+ return { controls: message(saved, id, texts(), Array.isArray(actions) ? actions : [], ending(request), card.answeredBy) };
137
+ },
138
+ events: { async "call.settled"(event, ctx, next) {
139
+ await next();
140
+ const all = confirmations.get();
141
+ const id = event.data.callId;
142
+ if (!all[id]) return;
143
+ const target = all[id]?.slackMessage ?? Object.values(all).find((item) => item.slackMessage?.calls.includes(id))?.slackMessage;
144
+ if (!target) return;
145
+ const requests = interactions(ctx.view);
146
+ const cards = [];
147
+ for (const id of target.calls.length ? target.calls : [event.data.callId]) {
148
+ const item = all[id];
149
+ const request = requests.find((r) => r.call?.callId === id && r.request.kind === "approval");
150
+ if (!item?.description || !request || request.status !== "settled") return;
151
+ const result = call(ctx.view, id);
152
+ let status = ending(request);
153
+ if (status === "executing") {
154
+ if (!result?.outcome) return;
155
+ const output = object(result.output);
156
+ status = result.outcome === "interrupted" ? "interrupted" : result.outcome !== "completed" || output.isError === true || object(output.validation).ok === false ? "failed" : "completed";
157
+ }
158
+ cards.push(message(item, id, texts(), [], status, item.slackMessage?.user, result?.output));
159
+ }
160
+ const receipt = {
161
+ blocks: cards.flatMap((card) => card.blocks),
162
+ text: cards.map((card) => card.text).join("\n")
163
+ };
164
+ if (!target.calls.length) {
165
+ await ctx.channel.thread.post(receipt);
166
+ return;
167
+ }
168
+ const response = await ctx.channel.slack.request("chat.update", {
169
+ channel: target.channel,
170
+ ts: target.ts,
171
+ ...receipt
172
+ });
173
+ if (!response.ok) throw new Error(`Slack confirmation update failed: ${response.error}`);
174
+ } }
175
+ });
176
+ }
177
+ export { confirmationMessageCalls, slackConfirmationRenderer };
@@ -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-DN2OIjo3.mjs";
8
+ import { D as OntologyFileUnavailable, W as member, i as memberIdOf, j as ontologyTools } from "../../_chunks/principal-CY72xYFi.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-9DTiYNuw.mjs";
14
+ import { t as agentBuild } from "../../../_chunks/build-metadata-BisjjIh6.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-DN2OIjo3.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-CY72xYFi.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-W-lFIyyA.mjs";
24
+ import { a as captureTelegramFetch, h as telegramChatCapture, i as captureRouteDecider, s as chatIdentities, u as recordGateDecision } from "../../../_chunks/chat-archive-Btd3gajb.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-CoyadQMP.mjs";
43
+ import { a as isNoReplyCall, i as interimTexts, s as replyDelivery } from "../../../_chunks/silent-DK7m_iab.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-DN2OIjo3.mjs";
8
+ import { xt as reportTelegramError } from "../../../_chunks/principal-CY72xYFi.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-DN2OIjo3.mjs";
8
+ import { _ as AttachmentError, _t as customerMessage, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-CY72xYFi.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-DN2OIjo3.mjs";
7
+ import { Ot as runtimeEnvelope, c as currentInboundRequest, i as memberIdOf, kt as telegramRuntimeSource, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-CY72xYFi.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-W-lFIyyA.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-Btd3gajb.mjs";
@@ -6,7 +6,7 @@ __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { CONFIRMATION_PREFIX, logConfirmationPress } from "./confirmation-press.mjs";
8
8
  import { telegramText } from "./texts.mjs";
9
- import { F as confirmations, It as chatChannel, c as currentInboundRequest, i as memberIdOf, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-DN2OIjo3.mjs";
9
+ import { F as confirmations, It as chatChannel, c as currentInboundRequest, i as memberIdOf, o as telegramPrincipal, xt as reportTelegramError } from "../../../_chunks/principal-CY72xYFi.mjs";
10
10
  import { humanText } from "../confirmation-description.mjs";
11
11
  import { withConfirmationPrompt } from "../group-routing/messages.mjs";
12
12
  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-DN2OIjo3.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-CY72xYFi.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-DN2OIjo3.mjs";
8
+ import { p as storeFiles, xt as reportTelegramError } from "../../../_chunks/principal-CY72xYFi.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-9DTiYNuw.mjs";
7
+ import { t as agentBuild } from "../../../_chunks/build-metadata-BisjjIh6.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-DN2OIjo3.mjs";
7
+ import { N as CONFIRMATION_TTL_MS } from "../../../_chunks/principal-CY72xYFi.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-DN2OIjo3.mjs";
7
+ export { s as InboundRequest, c as currentInboundRequest, l as runInboundRequest, u as withReplacedText } from "../../../_chunks/principal-CY72xYFi.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-DN2OIjo3.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-CY72xYFi.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";
@@ -15,6 +15,7 @@ import { effectiveGroupPolicy, groupPolicy } from "../group-routing/policy.mjs";
15
15
  import { questionInvitation } from "../group-routing/engagement.mjs";
16
16
  import { AttachmentLifecycleNotPermitted } from "./lifecycle.mjs";
17
17
  import { admitMessage, localizedText } from "../admission.mjs";
18
+ import { offerPersona, resolveChatPersona } from "../chat-persona.mjs";
18
19
  import { chatContext } from "../chats.mjs";
19
20
  import { openUsageLimit, questionAddress, questionFromHistory, usageLimitAnswer } from "./confirmations.mjs";
20
21
  import { answerMarker } from "../questions.mjs";
@@ -28,7 +29,7 @@ import { routingContext } from "./routing-context.mjs";
28
29
  import { formatAddress, messageAddress, scopedAddress } from "./sessions.mjs";
29
30
  import { voiceOf } from "./voice.mjs";
30
31
  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-W-lFIyyA.mjs";
32
+ import { d as recordInboundContent, f as recordRouteDecision, u as recordGateDecision } from "../../../_chunks/chat-archive-Btd3gajb.mjs";
32
33
  import { contentShape, messageContent } from "./content.mjs";
33
34
  import { messageAudience } from "./audience.mjs";
34
35
  const MAXIMUM_QUOTE_LENGTH = 500;
@@ -618,6 +619,12 @@ async function handleInboundMessage(input) {
618
619
  text = "[attachment]";
619
620
  if (input.request !== void 0) input.request.text = text;
620
621
  }
622
+ const personas = dependencies.admission().personas;
623
+ const selection = personas?.rules === void 0 ? void 0 : await resolveChatPersona(personas, telegramPrincipal({
624
+ message: sent,
625
+ member
626
+ }));
627
+ const persona = selection?.name;
621
628
  let routingBytes;
622
629
  const routingFile = sent.attachments.find((file) => file.fileId !== voice?.fileId);
623
630
  const attachmentMetadata = sent.attachments.length === 0 ? [] : [JSON.stringify({ attachment_metadata: sent.attachments.map((file) => ({
@@ -666,7 +673,7 @@ async function handleInboundMessage(input) {
666
673
  member
667
674
  }
668
675
  },
669
- agent: await input.request?.agentDescription() ?? "",
676
+ agent: persona ?? await input.request?.agentDescription() ?? "",
670
677
  agentIdentity: {
671
678
  ...bot,
672
679
  displayName: bot?.displayName ?? name,
@@ -1084,6 +1091,19 @@ async function handleInboundMessage(input) {
1084
1091
  member,
1085
1092
  chatLanguage: language
1086
1093
  });
1094
+ if (persona !== void 0) {
1095
+ await offerPersona(personas, selection, principal, (text) => context.telegram.request("sendMessage", {
1096
+ chat_id: sent.from.id,
1097
+ text
1098
+ }), language);
1099
+ principal = {
1100
+ ...principal,
1101
+ attributes: {
1102
+ ...principal.attributes,
1103
+ segmentstreamChatPersona: persona
1104
+ }
1105
+ };
1106
+ }
1087
1107
  const [guidance] = group ? chatContext(dependencies.chats.chat(sent.chat.id)) : [];
1088
1108
  if (guidance !== void 0) principal = {
1089
1109
  ...principal,
@@ -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-DN2OIjo3.mjs";
8
- import { t as agentBuild } from "../../../_chunks/build-metadata-9DTiYNuw.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-CY72xYFi.mjs";
8
+ import { t as agentBuild } from "../../../_chunks/build-metadata-BisjjIh6.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-DN2OIjo3.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-CY72xYFi.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 { o as isSilentReply } from "../../../_chunks/silent-CoyadQMP.mjs";
9
+ import { o as isSilentReply } from "../../../_chunks/silent-DK7m_iab.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";
@@ -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 { xt as reportTelegramError } from "../../../_chunks/principal-DN2OIjo3.mjs";
7
+ import { xt as reportTelegramError } from "../../../_chunks/principal-CY72xYFi.mjs";
8
8
  import { createHash } from "node:crypto";
9
9
  function strandedRun(error) {
10
10
  if (!(error instanceof Error) || error.name !== "RunKeyFetchError" || !("status" in error) || error.status !== 404) return;
@@ -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 INTERIM_TURNS, n as completionKind, r as deliverUnlessSilent, i as interimTexts, a as isNoReplyCall, o as isSilentReply, s as replyDelivery } from "../../../_chunks/silent-CoyadQMP.mjs";
7
+ export { t as INTERIM_TURNS, n as completionKind, r as deliverUnlessSilent, i as interimTexts, a as isNoReplyCall, o as isSilentReply, s as replyDelivery } from "../../../_chunks/silent-DK7m_iab.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 { g as captureInStore, _ as storeSend } from "../../../_chunks/chat-archive-W-lFIyyA.mjs";
7
+ export { g as captureInStore, _ as storeSend } from "../../../_chunks/chat-archive-Btd3gajb.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, kt as telegramRuntimeSource } from "../../../_chunks/principal-DN2OIjo3.mjs";
7
+ import { Ot as runtimeEnvelope, kt as telegramRuntimeSource } from "../../../_chunks/principal-CY72xYFi.mjs";
8
8
  import { workspaceAction } from "../workspace-action.mjs";
9
9
  import { STRUCTURED_KINDS } from "./structured-settings.mjs";
10
10
  const record = (value) => {
@@ -6,8 +6,8 @@ __eveDirname(__filename);
6
6
  __eveCreateRequire(import.meta.url);
7
7
  import { telegramText } from "./texts.mjs";
8
8
  import { confirmationLocale } from "./confirmation-text.mjs";
9
- import { p as recordSessionFailure } from "../../../_chunks/chat-archive-W-lFIyyA.mjs";
10
- import { gt as customerCopy, ht as currentThreadId, i as memberIdOf, mt as currentLocale, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-DN2OIjo3.mjs";
9
+ import { p as recordSessionFailure } from "../../../_chunks/chat-archive-Btd3gajb.mjs";
10
+ import { gt as customerCopy, ht as currentThreadId, i as memberIdOf, mt as currentLocale, xt as reportTelegramError, yt as failureText } from "../../../_chunks/principal-CY72xYFi.mjs";
11
11
  import { modelServiceFailure } from "../model-service-failure.mjs";
12
12
  function telegramFailureEvents(input) {
13
13
  return {
@@ -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 { q as ACCESS_TOKEN_PREFIX, J as AGENT_GRANT_HEADER, Y as GUEST_CONFIRMATIONS_ATTRIBUTE, X as GUEST_ID_ATTRIBUTE, Z as GUEST_ROLE, Q as INTROSPECTION_PATH, $ as KIND_ATTRIBUTE, et as TURN_LIMITED_CODE, tt as TurnLimitedError, nt as WEB_AUTHENTICATOR, rt as WEB_GRANT_ATTRIBUTE, it as WEB_PROVIDER, at as guestConfirms, ot as guestIdOf, st as guestPrincipal, ct as ontologyIntrospection, lt as webAuth, ut as webGrantOf, dt as webMemberOf, ft as webPrincipal } from "../../../_chunks/principal-DN2OIjo3.mjs";
7
+ export { q as ACCESS_TOKEN_PREFIX, J as AGENT_GRANT_HEADER, Y as GUEST_CONFIRMATIONS_ATTRIBUTE, X as GUEST_ID_ATTRIBUTE, Z as GUEST_ROLE, Q as INTROSPECTION_PATH, $ as KIND_ATTRIBUTE, et as TURN_LIMITED_CODE, tt as TurnLimitedError, nt as WEB_AUTHENTICATOR, rt as WEB_GRANT_ATTRIBUTE, it as WEB_PROVIDER, at as guestConfirms, ot as guestIdOf, st as guestPrincipal, ct as ontologyIntrospection, lt as webAuth, ut as webGrantOf, dt as webMemberOf, ft as webPrincipal } from "../../../_chunks/principal-CY72xYFi.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 { it as WEB_PROVIDER, lt as webAuth } from "../../../_chunks/principal-DN2OIjo3.mjs";
7
+ import { it as WEB_PROVIDER, lt as webAuth } from "../../../_chunks/principal-CY72xYFi.mjs";
8
8
  import { localDev, placeholderAuth, vercelOidc } from "eve/channels/auth";
9
9
  import { eveChannel } from "eve/channels/eve";
10
10
  const WEB_EXPOSED_HEADERS = [