@segmentstream/agent 0.8.7 → 0.8.9
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/dist/_chunks/{build-metadata-CR18wzcH.mjs → build-metadata-Cq-Li9W7.mjs} +1 -1
- package/dist/extension/config.d.ts +5 -2
- package/dist/extension/lib/build-metadata.mjs +1 -1
- package/dist/extension/lib/telegram/adapter.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/lifecycle.mjs +1 -1
- package/package.json +1 -1
|
@@ -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.8.
|
|
7
|
+
var version = "0.8.9";
|
|
8
8
|
function agentBuild(environment = process.env) {
|
|
9
9
|
return {
|
|
10
10
|
agent: version,
|
|
@@ -47,7 +47,8 @@ export interface AdmissionSettings {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
* `agent/segmentstream.json` as authored. A JSON import widens string literals to `string` and
|
|
50
|
-
* `false` to `boolean`, so the accepted types are wider than
|
|
50
|
+
* `false` to `boolean` and numeric literals to `number`, so the accepted types are wider than
|
|
51
|
+
* the values validation allows.
|
|
51
52
|
*/
|
|
52
53
|
export interface SegmentStreamAgentConfigInput {
|
|
53
54
|
readonly firstContact?: FirstContactSettings;
|
|
@@ -63,7 +64,9 @@ export interface SegmentStreamAgentConfigInput {
|
|
|
63
64
|
readonly linkPreviews?: string;
|
|
64
65
|
/** Additional exact HTTP(S) origins belonging to this workspace. */
|
|
65
66
|
readonly additionalOwnOrigins?: readonly string[];
|
|
66
|
-
readonly attachmentLifecycle?: AttachmentLifecycle
|
|
67
|
+
readonly attachmentLifecycle?: Omit<AttachmentLifecycle, "contextVersion"> & {
|
|
68
|
+
readonly contextVersion?: number;
|
|
69
|
+
};
|
|
67
70
|
};
|
|
68
71
|
};
|
|
69
72
|
readonly models?: {
|
|
@@ -4,5 +4,5 @@ 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-
|
|
7
|
+
import { t as agentBuild } from "../../_chunks/build-metadata-Cq-Li9W7.mjs";
|
|
8
8
|
export { agentBuild };
|
|
@@ -8,7 +8,7 @@ import { manifestOf } from "../../config.mjs";
|
|
|
8
8
|
import { appOrigin, channelsEnabled, proxyEnvironment, runtimeIdentityEnvironment, webhookSecret } from "../environment.mjs";
|
|
9
9
|
import { conversationLanguage, telegramPrincipal } from "./principal.mjs";
|
|
10
10
|
import { chooseModel } from "../../model.mjs";
|
|
11
|
-
import { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
11
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-Cq-Li9W7.mjs";
|
|
12
12
|
import { confirmationLocale } from "./confirmation-text.mjs";
|
|
13
13
|
import { telegramSendScope } from "./send-queue.mjs";
|
|
14
14
|
import { d as failureText, h as withDeliveryLocale, i as withReplacedText, m as safeTelegramFetch, n as currentInboundRequest, p as reportTelegramError, r as runInboundRequest, t as InboundRequest } from "../../../_chunks/inbound-request-B98tr4Pd.mjs";
|
|
@@ -30,7 +30,7 @@ function inboundAttachments(message) {
|
|
|
30
30
|
fileId: file.file_id,
|
|
31
31
|
fileName: typeof file.file_name === "string" ? file.file_name : kind,
|
|
32
32
|
...typeof file.file_unique_id === "string" ? { fileUniqueId: file.file_unique_id } : {},
|
|
33
|
-
...typeof file.mime_type === "string" ? { mediaType: file.mime_type } : {},
|
|
33
|
+
...typeof file.mime_type === "string" ? { mediaType: file.mime_type } : kind === "video_note" ? { mediaType: "video/mp4" } : {},
|
|
34
34
|
...typeof file.file_size === "number" ? { size: file.file_size } : {}
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -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-
|
|
7
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-Cq-Li9W7.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 { t as agentBuild } from "../../../_chunks/build-metadata-
|
|
7
|
+
import { t as agentBuild } from "../../../_chunks/build-metadata-Cq-Li9W7.mjs";
|
|
8
8
|
import { object } from "../confirmation-description.mjs";
|
|
9
9
|
import { n as currentInboundRequest, p as reportTelegramError } from "../../../_chunks/inbound-request-B98tr4Pd.mjs";
|
|
10
10
|
import { needsConfirmation } from "../confirmations.mjs";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/agent",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.9",
|
|
4
4
|
"description": "Mount a SegmentStream workspace's agent on eve: the ontology as tools, acting as the member who writes, and Telegram through the workspace's connection.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "SegmentStream",
|