@segmentstream/agent 0.89.7 → 0.90.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +5 -7
- package/dist/_chunks/{build-metadata-0MiIrYle.mjs → build-metadata-BDZ3bQVF.mjs} +1 -1
- package/dist/_chunks/{chat-archive-BhVy1Dbk.mjs → chat-archive-Btd3gajb.mjs} +1 -1
- package/dist/_chunks/{principal-h5knGNwo.mjs → principal-CY72xYFi.mjs} +22 -16
- package/dist/_chunks/{silent-CsgJLKrZ.mjs → silent-DK7m_iab.mjs} +1 -1
- package/dist/extension/_manifest.json +1 -1
- package/dist/extension/channels/slack.mjs +1 -0
- package/dist/extension/connections/ontology.mjs +1 -1
- package/dist/extension/hooks/authorization.mjs +1 -1
- package/dist/extension/instructions/persona.mjs +1 -1
- package/dist/extension/lib/actor.mjs +1 -1
- package/dist/extension/lib/attachment-tools.mjs +1 -1
- package/dist/extension/lib/attachments-dispatch.mjs +2 -2
- package/dist/extension/lib/attachments-send.mjs +1 -1
- package/dist/extension/lib/attachments.mjs +1 -1
- package/dist/extension/lib/build-metadata.mjs +1 -1
- package/dist/extension/lib/chat-address.mjs +1 -1
- package/dist/extension/lib/chat-context.mjs +1 -1
- package/dist/extension/lib/chat-recorder.mjs +2 -2
- package/dist/extension/lib/confirmations.d.ts +8 -0
- package/dist/extension/lib/confirmations.mjs +1 -1
- package/dist/extension/lib/email/attachments-send.mjs +1 -1
- package/dist/extension/lib/email/channel.mjs +2 -2
- package/dist/extension/lib/group-routing/messages.d.ts +0 -2
- package/dist/extension/lib/group-routing/routing-context.d.ts +1 -2
- package/dist/extension/lib/group-routing/routing-context.mjs +0 -2
- package/dist/extension/lib/guest-usage.mjs +1 -1
- package/dist/extension/lib/inbound-media/files.mjs +1 -1
- package/dist/extension/lib/inbound-media/index.mjs +1 -1
- package/dist/extension/lib/ontology-connection.mjs +1 -1
- package/dist/extension/lib/ontology-file-call.mjs +1 -1
- package/dist/extension/lib/ontology-recall.mjs +1 -1
- package/dist/extension/lib/ontology-tools.mjs +1 -1
- package/dist/extension/lib/review/files.mjs +1 -1
- package/dist/extension/lib/review/hold.mjs +1 -1
- package/dist/extension/lib/review/reply.mjs +2 -2
- package/dist/extension/lib/role-skill.mjs +1 -1
- package/dist/extension/lib/runtime-envelope.mjs +1 -1
- package/dist/extension/lib/sent-files.mjs +1 -1
- package/dist/extension/lib/slack/adapter.d.ts +2 -0
- package/dist/extension/lib/slack/adapter.mjs +24 -5
- package/dist/extension/lib/slack/attachments-send.mjs +1 -1
- package/dist/extension/lib/slack/callbacks.mjs +1 -1
- package/dist/extension/lib/slack/confirmation-card.d.ts +6 -0
- package/dist/extension/lib/slack/confirmation-card.mjs +177 -0
- package/dist/extension/lib/stored-files.mjs +1 -1
- package/dist/extension/lib/telegram/adapter.mjs +4 -4
- package/dist/extension/lib/telegram/attachment-description.mjs +1 -1
- package/dist/extension/lib/telegram/attachments-send.mjs +1 -1
- package/dist/extension/lib/telegram/callbacks.mjs +1 -1
- package/dist/extension/lib/telegram/chat-archive.mjs +1 -1
- package/dist/extension/lib/telegram/confirmations.mjs +1 -1
- package/dist/extension/lib/telegram/customer-text.mjs +1 -1
- package/dist/extension/lib/telegram/files.mjs +1 -1
- package/dist/extension/lib/telegram/health.mjs +1 -1
- package/dist/extension/lib/telegram/held-approvals.mjs +1 -1
- package/dist/extension/lib/telegram/inbound-request.d.ts +2 -4
- package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
- package/dist/extension/lib/telegram/inbound.d.ts +1 -1
- package/dist/extension/lib/telegram/inbound.mjs +11 -11
- package/dist/extension/lib/telegram/lifecycle.mjs +2 -2
- package/dist/extension/lib/telegram/principal.mjs +1 -1
- package/dist/extension/lib/telegram/routing-context.mjs +1 -1
- package/dist/extension/lib/telegram/session-recovery.mjs +1 -1
- package/dist/extension/lib/telegram/silent.mjs +1 -1
- package/dist/extension/lib/telegram/store-capture.mjs +1 -1
- package/dist/extension/lib/telegram/structured.mjs +1 -1
- package/dist/extension/lib/telegram/turn-errors.mjs +2 -2
- package/dist/extension/lib/web/auth.d.ts +4 -3
- package/dist/extension/lib/web/auth.mjs +1 -1
- package/dist/extension/lib/web/channel.mjs +1 -1
- package/dist/extension/lib/whatsapp/adapter.mjs +1 -1
- package/dist/extension/lib/whatsapp/attachments-send.mjs +1 -1
- package/dist/extension/lib/whatsapp/callbacks.mjs +1 -1
- package/dist/extension/lib/whatsapp/files.mjs +1 -1
- package/dist/extension/lib/workspace-action.mjs +1 -1
- package/dist/extension/lib/workspace-channel/attachments-send.mjs +1 -1
- package/dist/extension/lib/workspace-channel/channel.mjs +2 -2
- package/dist/extension/lib/workspace-source.mjs +1 -1
- package/dist/extension/model.mjs +1 -1
- package/dist/extension/tools/attachments_discard.mjs +1 -1
- package/dist/extension/tools/attachments_list.mjs +1 -1
- package/dist/extension/tools/attachments_promote.mjs +1 -1
- package/dist/extension/tools/attachments_read.mjs +1 -1
- package/dist/extension/tools/attachments_send.mjs +2 -2
- package/dist/extension/tools/attachments_stage.mjs +1 -1
- package/dist/extension/tools/attachments_table.mjs +1 -1
- package/dist/extension/tools/handoff.mjs +1 -1
- package/dist/extension/tools/questions_ask.mjs +1 -1
- package/dist/extension/tools/workspace_source.mjs +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.90.1
|
|
4
|
+
|
|
5
|
+
Slack action confirmations show the full confirmation facts, document links and workspace button labels. The clicked message shows the result when the action finishes.
|
|
6
|
+
|
|
7
|
+
## 0.90.0
|
|
8
|
+
|
|
9
|
+
The agent and web chat now use Eve 1.5.0. Telegram uses Eve's per-message turn policy.
|
|
10
|
+
A reply to a recent photo can include that photo. An unrelated group message no longer
|
|
11
|
+
brings earlier photos into the model's input.
|
|
12
|
+
|
|
13
|
+
Action required: pin `eve` to `1.5.0` in `agent/package.json`, upgrade the Agent and App SDKs together, and rebuild.
|
|
14
|
+
|
|
3
15
|
## 0.89.7
|
|
4
16
|
|
|
5
17
|
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
|
|
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
|
|
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).
|
|
663
|
-
|
|
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
|
|
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.
|
|
7
|
+
var version = "0.90.1";
|
|
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-
|
|
14
|
+
import { c as currentInboundRequest, ht as currentThreadId, xt as reportTelegramError } from "./principal-CY72xYFi.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 {
|
|
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
|
|
471
|
+
var TurnLimitedError = class extends HttpError {
|
|
472
472
|
retryAfterSeconds;
|
|
473
473
|
scope;
|
|
474
|
-
|
|
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
|
-
|
|
483
|
-
|
|
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:
|
|
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
|
};
|
|
@@ -931,6 +930,7 @@ function actionApproval(options) {
|
|
|
931
930
|
status: "pending",
|
|
932
931
|
...copy === void 0 ? {} : { copy },
|
|
933
932
|
...description === void 0 ? {} : { description },
|
|
933
|
+
...ctx.session.auth.current?.attributes.identityProvider === "slack" ? { locale: confirmationLocale(ctx.session.auth.current) } : {},
|
|
934
934
|
...prompt === void 0 ? {} : { prompt },
|
|
935
935
|
...posting && chat !== void 0 ? { source: chat } : {}
|
|
936
936
|
}
|
|
@@ -949,10 +949,18 @@ function actionApproval(options) {
|
|
|
949
949
|
if (!ownedBy(saved, responder) || !ownedBy(saved, actorOf(ctx.request.principal)) || responder?.kind === "guest" && !guestConfirms(ctx.response.principal)) return reject("Only the requesting member can confirm or cancel this action.");
|
|
950
950
|
if (saved.action !== ctx.request.toolName || saved.inputHash !== inputHash(ctx.request.toolInput ?? {})) return reject("The action or input changed. Make a new call.");
|
|
951
951
|
if (ctx.response.decision === "approve" && saved.expiresAt <= now()) return reject("This confirmation expired.");
|
|
952
|
+
const { slackConfirmationTs, slackConfirmationChannel, slackConfirmationCalls } = ctx.response.principal.attributes;
|
|
953
|
+
const slackMessage = ctx.response.principal.authenticator === "segmentstream-slack" && typeof ctx.response.principal.subject === "string" && typeof slackConfirmationTs === "string" && typeof slackConfirmationChannel === "string" && Array.isArray(slackConfirmationCalls) && slackConfirmationCalls.every((id) => typeof id === "string") && (!slackConfirmationCalls.length || slackConfirmationCalls.includes(ctx.request.callId)) ? {
|
|
954
|
+
ts: slackConfirmationTs,
|
|
955
|
+
channel: slackConfirmationChannel,
|
|
956
|
+
calls: slackConfirmationCalls,
|
|
957
|
+
user: ctx.response.principal.subject
|
|
958
|
+
} : void 0;
|
|
952
959
|
state.update((all) => ({
|
|
953
960
|
...all,
|
|
954
961
|
[ctx.request.callId]: {
|
|
955
962
|
...saved,
|
|
963
|
+
...slackMessage ? { slackMessage } : {},
|
|
956
964
|
status: ctx.response.decision === "approve" ? "approved" : "cancelled",
|
|
957
965
|
...ctx.response.decision === "deny" && ["edit", "expired"].includes(String(ctx.response.principal.attributes.confirmationReason)) ? { cancellationReason: ctx.response.principal.attributes.confirmationReason } : {}
|
|
958
966
|
}
|
|
@@ -1893,7 +1901,6 @@ var InboundRequest = class {
|
|
|
1893
1901
|
agentDescription;
|
|
1894
1902
|
agentName;
|
|
1895
1903
|
traceId = randomUUID();
|
|
1896
|
-
turnPolicy = "queue";
|
|
1897
1904
|
edited = false;
|
|
1898
1905
|
triggeringMessageId;
|
|
1899
1906
|
chatId;
|
|
@@ -1979,7 +1986,6 @@ function withReplacedText(source, request) {
|
|
|
1979
1986
|
try {
|
|
1980
1987
|
result = await source.send(content, {
|
|
1981
1988
|
...options,
|
|
1982
|
-
turnPolicy: request.turnPolicy,
|
|
1983
1989
|
...answerText === void 0 ? {} : { answerText }
|
|
1984
1990
|
});
|
|
1985
1991
|
} 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-
|
|
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-CY72xYFi.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";
|
|
@@ -12,6 +12,7 @@ import { decide } from "eve/ai";
|
|
|
12
12
|
var slack_default = segmentstreamSlack({
|
|
13
13
|
settings: (name) => channelOf(segmentstream.config.channels, "slack", name),
|
|
14
14
|
buttons: () => segmentstream.config.buttons,
|
|
15
|
+
texts: () => segmentstream.config.texts ?? {},
|
|
15
16
|
admission: () => segmentstream.config,
|
|
16
17
|
groups: () => segmentstream.config.groups,
|
|
17
18
|
models: () => segmentstream.config.models,
|
|
@@ -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-
|
|
8
|
+
import { T as ontologyConnection } from "../../_chunks/principal-CY72xYFi.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-
|
|
10
|
+
import "../../_chunks/principal-CY72xYFi.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-
|
|
8
|
+
import { a as rolesOf } from "../../_chunks/principal-CY72xYFi.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-
|
|
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-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 { Ft as chatAddressOf, It as chatChannel, b as agentAttachments, i as memberIdOf } from "../../_chunks/principal-
|
|
7
|
+
import { Ft as chatAddressOf, It as chatChannel, b as agentAttachments, i as memberIdOf } from "../../_chunks/principal-CY72xYFi.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-
|
|
9
|
-
import "../../_chunks/silent-
|
|
8
|
+
import { Ft as chatAddressOf, It as chatChannel } from "../../_chunks/principal-CY72xYFi.mjs";
|
|
9
|
+
import "../../_chunks/silent-DK7m_iab.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-
|
|
8
|
+
import { Ft as chatAddressOf, _ as AttachmentError, yt as failureText } from "../../_chunks/principal-CY72xYFi.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-
|
|
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-CY72xYFi.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-
|
|
7
|
+
export { t as agentBuild } from "../../_chunks/build-metadata-BDZ3bQVF.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-
|
|
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-CY72xYFi.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-
|
|
10
|
+
import { xt as reportTelegramError } from "../../_chunks/principal-CY72xYFi.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-
|
|
11
|
+
import { Bt as participantsOf, Ft as chatAddressOf, It as chatChannel, i as memberIdOf, ot as guestIdOf } from "../../_chunks/principal-CY72xYFi.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-
|
|
14
|
+
import { n as completionKind } from "../../_chunks/silent-DK7m_iab.mjs";
|
|
15
15
|
import { recordModelServiceAlert } from "./model-service-alert.mjs";
|
|
16
16
|
import { call, deliveries } from "eve/events";
|
|
17
17
|
function isTelegram(context) {
|
|
@@ -34,6 +34,14 @@ export interface Confirmation {
|
|
|
34
34
|
readonly copy?: ConfirmationCopy;
|
|
35
35
|
/** The card's text, which channels that show eve's own approval card show as its prompt. */
|
|
36
36
|
readonly prompt?: string;
|
|
37
|
+
readonly locale?: string;
|
|
38
|
+
/** The verified button's Slack message, including any sibling confirmations Eve posted with it. */
|
|
39
|
+
readonly slackMessage?: {
|
|
40
|
+
channel: string;
|
|
41
|
+
ts: string;
|
|
42
|
+
calls: string[];
|
|
43
|
+
user: string;
|
|
44
|
+
};
|
|
37
45
|
/** A chat post's source chat, pinned from the request to its execution. */
|
|
38
46
|
readonly source?: ChatAddress;
|
|
39
47
|
readonly cancellationReason?: "edit" | "expired";
|
|
@@ -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-
|
|
7
|
+
export { N as CONFIRMATION_TTL_MS, P as actionApproval, F as confirmations, I as inputHash, L as needsConfirmation } 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 { _ as AttachmentError } from "../../../_chunks/principal-
|
|
7
|
+
import { _ as AttachmentError } from "../../../_chunks/principal-CY72xYFi.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-
|
|
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-CY72xYFi.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-
|
|
24
|
+
import { g as turnFiles, n as completionKind } from "../../../_chunks/silent-DK7m_iab.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.
|
|
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-
|
|
9
|
+
import { ot as guestIdOf } from "../../_chunks/principal-CY72xYFi.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-
|
|
7
|
+
export { f as attachmentsContext, p as storeFiles, m as turnContent } from "../../../_chunks/principal-CY72xYFi.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-
|
|
7
|
+
export { f as attachmentsContext, d as prepareInboundMedia, p as storeFiles, m as turnContent } from "../../../_chunks/principal-CY72xYFi.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-
|
|
7
|
+
export { R as ACT_AS_HEADER, w as actAsHeaders, T as ontologyConnection } 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 { F as confirmations, H as actorOf, I as inputHash, Ot as runtimeEnvelope, P as actionApproval, V as actorKey, j as ontologyTools } from "../../_chunks/principal-
|
|
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-CY72xYFi.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-
|
|
7
|
+
import { H as actorOf, a as rolesOf, j as ontologyTools, k as actionToolName } from "../../_chunks/principal-CY72xYFi.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-
|
|
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-CY72xYFi.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-
|
|
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-DK7m_iab.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-
|
|
8
|
+
import { Bt as participantsOf, Ft as chatAddressOf, a as rolesOf, i as memberIdOf } from "../../../_chunks/principal-CY72xYFi.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-
|
|
7
|
+
import { Ft as chatAddressOf, It as chatChannel, i as memberIdOf } from "../../../_chunks/principal-CY72xYFi.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-
|
|
12
|
+
import { _ as withCaptions, h as partFiles, m as filesAfterReply, n as completionKind, p as fileGroups } from "../../../_chunks/silent-DK7m_iab.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-
|
|
7
|
+
import { a as rolesOf } from "../../_chunks/principal-CY72xYFi.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-
|
|
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-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 { Pt as SESSION_HEADER, R as ACT_AS_HEADER, _ as AttachmentError, jt as CHAT_HEADER, v as EARLIER_CHAT_HEADER } from "../../_chunks/principal-
|
|
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-CY72xYFi.mjs";
|
|
8
8
|
import { fetchFileGrant, transientFileStatus } from "./file-grant.mjs";
|
|
9
9
|
import { ontologyDeploymentHeaders } from "./environment.mjs";
|
|
10
10
|
var StoredFileError = class extends AttachmentError {
|
|
@@ -14,6 +14,7 @@ import { type ImageDescriber } from "../inbound-media/images.js";
|
|
|
14
14
|
import { type CapabilityLookup, type MediaPlan } from "../inbound-media/plan.js";
|
|
15
15
|
import { type Transcriber } from "../inbound-media/speech.js";
|
|
16
16
|
import { type SlackFileDownload } from "./files.js";
|
|
17
|
+
import type { TelegramTexts } from "../telegram/texts.js";
|
|
17
18
|
import type { WorkspaceActionHook } from "../workspace-action.js";
|
|
18
19
|
import { type ChannelReviewOptions } from "../review/reply.js";
|
|
19
20
|
import { type RuntimeToken } from "../runtime-token.js";
|
|
@@ -58,6 +59,7 @@ export declare class SlackProxyRouteError extends Error {
|
|
|
58
59
|
readonly name = "SlackProxyRouteError";
|
|
59
60
|
}
|
|
60
61
|
export interface SlackChannelOptions {
|
|
62
|
+
readonly texts?: () => TelegramTexts;
|
|
61
63
|
/** The Slack channel `name` the mount declares, or `null` when it declares no such channel. */
|
|
62
64
|
readonly settings: (name: string) => SlackSettings | null;
|
|
63
65
|
readonly admission: () => AdmissionSettings;
|