@segmentstream/agent 0.18.3 → 0.19.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.
- package/README.md +4 -4
- package/dist/_chunks/{build-metadata-DZ9Nb8Q2.mjs → build-metadata-CkW-D9NI.mjs} +1 -1
- package/dist/_chunks/{inbound-request-8xhK7EaW.mjs → inbound-request-Dx1B6Y5r.mjs} +1 -1
- package/dist/_chunks/{principal-qyR3jKAr.mjs → principal-BnJuWJtk.mjs} +1 -1
- package/dist/extension/_manifest.json +3 -15
- package/dist/extension/connections/ontology.d.ts +1 -1
- package/dist/extension/connections/ontology.mjs +2 -2
- package/dist/extension/hooks/authorization.d.ts +1 -1
- package/dist/extension/hooks/authorization.mjs +3 -3
- package/dist/extension/hooks/ontology-files.d.ts +1 -1
- package/dist/extension/hooks/ontology-files.mjs +3 -1
- package/dist/extension/hooks/sandbox.d.ts +2 -2
- package/dist/extension/hooks/sandbox.mjs +2 -2
- package/dist/extension/instructions/conversations.d.ts +1 -1
- package/dist/extension/instructions/conversations.mjs +3 -3
- package/dist/extension/instructions/sandbox.d.ts +1 -1
- package/dist/extension/instructions/sandbox.mjs +2 -2
- package/dist/extension/lib/attachment-tools.mjs +1 -1
- package/dist/extension/lib/build-metadata.mjs +1 -1
- package/dist/extension/lib/confirmations.mjs +3 -3
- package/dist/extension/lib/conversation-runtime.d.ts +2 -2
- package/dist/extension/lib/conversation-runtime.mjs +40 -55
- package/dist/extension/lib/conversations.mjs +1 -1
- package/dist/extension/lib/group-routing/conversation-router.d.ts +1 -1
- package/dist/extension/lib/group-routing/conversation-router.mjs +2 -2
- package/dist/extension/lib/group-routing/dequeue.mjs +2 -2
- package/dist/extension/lib/group-routing/record.mjs +1 -1
- package/dist/extension/lib/group-routing/replay.mjs +1 -1
- package/dist/extension/lib/group-routing/router.d.ts +1 -1
- package/dist/extension/lib/group-routing/router.mjs +3 -3
- package/dist/extension/lib/ontology-connection.mjs +2 -2
- package/dist/extension/lib/ontology-file-call.mjs +2 -2
- package/dist/extension/lib/ontology-tools.mjs +1 -1
- package/dist/extension/lib/runtime-envelope.mjs +1 -1
- package/dist/extension/lib/sandbox.d.ts +3 -2
- package/dist/extension/lib/sandbox.mjs +1 -1
- package/dist/extension/lib/stored-files.mjs +1 -1
- package/dist/extension/lib/telegram/adapter.mjs +43 -28
- package/dist/extension/lib/telegram/archive-message.d.ts +4 -0
- package/dist/extension/lib/telegram/archive-message.mjs +85 -0
- package/dist/extension/lib/telegram/attachment-description.mjs +1 -1
- package/dist/extension/lib/telegram/attachments-send.mjs +2 -2
- package/dist/extension/lib/telegram/callbacks.mjs +2 -2
- package/dist/extension/lib/telegram/confirmation-expiry.mjs +20 -9
- package/dist/extension/lib/telegram/confirmations.d.ts +2 -2
- package/dist/extension/lib/telegram/confirmations.mjs +206 -181
- package/dist/extension/lib/telegram/conversations.mjs +5 -6
- package/dist/extension/lib/telegram/customer-text.mjs +1 -1
- package/dist/extension/lib/telegram/deferred-confirmations.mjs +2 -2
- package/dist/extension/lib/telegram/delivery-diagnostics.mjs +1 -1
- package/dist/extension/lib/telegram/durable-typing.d.ts +11 -0
- package/dist/extension/lib/telegram/durable-typing.mjs +10 -10
- package/dist/extension/lib/telegram/files.mjs +2 -2
- package/dist/extension/lib/telegram/health.mjs +1 -1
- package/dist/extension/lib/telegram/held-approvals.d.ts +3 -3
- package/dist/extension/lib/telegram/held-approvals.mjs +23 -19
- package/dist/extension/lib/telegram/images.d.ts +1 -1
- package/dist/extension/lib/telegram/images.mjs +1 -1
- package/dist/extension/lib/telegram/inbound-request.d.ts +2 -2
- package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
- package/dist/extension/lib/telegram/inbound.mjs +5 -6
- package/dist/extension/lib/telegram/lifecycle.d.ts +2 -2
- package/dist/extension/lib/telegram/lifecycle.mjs +23 -27
- package/dist/extension/lib/telegram/media-policy.mjs +1 -1
- package/dist/extension/lib/telegram/principal.mjs +1 -1
- package/dist/extension/lib/telegram/routing-context.mjs +4 -4
- package/dist/extension/lib/telegram/session-recovery.d.ts +1 -1
- package/dist/extension/lib/telegram/session-recovery.mjs +2 -1
- package/dist/extension/lib/telegram/sessions.d.ts +7 -4
- package/dist/extension/lib/telegram/sessions.mjs +6 -3
- package/dist/extension/lib/telegram/silent.d.ts +1 -1
- package/dist/extension/lib/telegram/silent.mjs +11 -8
- package/dist/extension/lib/telegram/structured.mjs +1 -1
- package/dist/extension/lib/telegram/turn-errors.d.ts +1 -1
- package/dist/extension/lib/telegram/turn-errors.mjs +47 -31
- package/dist/extension/lib/telegram/voice.mjs +1 -1
- package/dist/extension/lib/workflow-serializable.mjs +1 -1
- package/dist/extension/model.mjs +7 -4
- 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 +2 -2
- package/dist/extension/tools/attachments_read.mjs +1 -1
- package/dist/extension/tools/attachments_send.mjs +1 -1
- package/dist/extension/tools/attachments_table.mjs +1 -1
- package/dist/extension/tools/ontology_call_file.d.ts +1 -1
- package/dist/extension/tools/ontology_call_file.mjs +1 -1
- package/dist/extension/tools/questions_ask.mjs +2 -2
- package/dist/extension/tools/sandbox.d.ts +1 -8
- package/dist/extension/tools/sandbox.mjs +1 -1
- package/package.json +4 -4
- /package/dist/_chunks/{content-TRaZitQZ.mjs → content-cDtVnr8Y.mjs} +0 -0
- /package/dist/_chunks/{workflow-serializable-_g4JRau5.mjs → workflow-serializable-DU7WeCIW.mjs} +0 -0
|
@@ -5,15 +5,17 @@ const __filename = __eveFileURLToPath(import.meta.url);
|
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
7
|
import { telegramText } from "./texts.mjs";
|
|
8
|
-
import { i as memberIdOf } from "../../../_chunks/principal-
|
|
8
|
+
import { i as memberIdOf } from "../../../_chunks/principal-BnJuWJtk.mjs";
|
|
9
9
|
import { confirmationLocale } from "./confirmation-text.mjs";
|
|
10
|
-
import { c as customerCopy, d as failureText, o as currentLocale, p as reportTelegramError, s as currentThreadId } from "../../../_chunks/inbound-request-
|
|
10
|
+
import { c as customerCopy, d as failureText, o as currentLocale, p as reportTelegramError, s as currentThreadId } from "../../../_chunks/inbound-request-Dx1B6Y5r.mjs";
|
|
11
11
|
import { recordSessionFailure } from "./conversations.mjs";
|
|
12
12
|
import { isSilentRoutingCancellation } from "../group-routing/cancellation.mjs";
|
|
13
13
|
function telegramFailureEvents(input) {
|
|
14
14
|
return {
|
|
15
|
-
async "
|
|
16
|
-
|
|
15
|
+
async "interaction.opened"(fact, context) {
|
|
16
|
+
const channel = context.channel;
|
|
17
|
+
const event = fact.data;
|
|
18
|
+
if (event.request.kind !== "sign-in") return;
|
|
17
19
|
const locale = confirmationLocale(context.session.auth.current, currentLocale());
|
|
18
20
|
const prompt = telegramText("authorization", "prompt", locale);
|
|
19
21
|
const url = telegramText("authorization", "url", locale);
|
|
@@ -28,39 +30,43 @@ function telegramFailureEvents(input) {
|
|
|
28
30
|
});
|
|
29
31
|
if (sent.id) channel.state.pendingAuthMessageIds = {
|
|
30
32
|
...channel.state.pendingAuthMessageIds,
|
|
31
|
-
[event.
|
|
33
|
+
[event.interactionId]: sent.id
|
|
32
34
|
};
|
|
33
35
|
return;
|
|
34
36
|
}
|
|
35
37
|
const state = channel.state;
|
|
36
|
-
state.authorizationCancellationTurnId =
|
|
38
|
+
state.authorizationCancellationTurnId = fact.scope?.turnId;
|
|
37
39
|
const errorId = reportTelegramError("authorization_prompt_unconfigured", new Error("texts.authorization.prompt is not configured."), { sessionId: context.session.id });
|
|
38
40
|
await channel.telegram.post(failureText(errorId, "authorization", locale));
|
|
39
41
|
},
|
|
40
|
-
async "turn.
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
if (
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
42
|
+
async "turn.settled"(fact, context) {
|
|
43
|
+
const channel = context.channel;
|
|
44
|
+
const event = fact.data;
|
|
45
|
+
if (event.outcome === "completed") return;
|
|
46
|
+
if (event.outcome === "cancelled") {
|
|
47
|
+
const state = channel.state;
|
|
48
|
+
const authorizationTurn = state.authorizationCancellationTurnId;
|
|
49
|
+
delete state.authorizationCancellationTurnId;
|
|
50
|
+
if (typeof event.turnId === "string" && authorizationTurn === event.turnId) return;
|
|
51
|
+
try {
|
|
52
|
+
if (await isSilentRoutingCancellation(input.archive, context, event.turnId)) return;
|
|
53
|
+
} catch (error) {
|
|
54
|
+
reportTelegramError("routing_cancellation_lookup_failed", error, {
|
|
55
|
+
sessionId: context.session.id,
|
|
56
|
+
turnId: event.turnId
|
|
57
|
+
});
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
const errorId = reportTelegramError("turn_cancelled", event, {
|
|
61
|
+
chatId: channel.state.chatId,
|
|
49
62
|
sessionId: context.session.id,
|
|
50
63
|
turnId: event.turnId
|
|
51
64
|
});
|
|
65
|
+
const locale = confirmationLocale(context.session.auth.current, currentLocale());
|
|
66
|
+
await channel.telegram.post(failureText(errorId, "cancelled", locale));
|
|
52
67
|
return;
|
|
53
68
|
}
|
|
54
|
-
const errorId = reportTelegramError("
|
|
55
|
-
chatId: channel.state.chatId,
|
|
56
|
-
sessionId: context.session.id,
|
|
57
|
-
turnId: event.turnId
|
|
58
|
-
});
|
|
59
|
-
const locale = confirmationLocale(context.session.auth.current, currentLocale());
|
|
60
|
-
await channel.telegram.post(failureText(errorId, "cancelled", locale));
|
|
61
|
-
},
|
|
62
|
-
async "turn.failed"(event, channel, context) {
|
|
63
|
-
const errorId = reportTelegramError("turn_failed", event, {
|
|
69
|
+
const errorId = reportTelegramError("turn_failed", event.error ?? event, {
|
|
64
70
|
chatId: channel.state.chatId,
|
|
65
71
|
memberId: memberIdOf(context.session.auth.current) ?? null,
|
|
66
72
|
sessionId: context.session.id,
|
|
@@ -77,7 +83,15 @@ function telegramFailureEvents(input) {
|
|
|
77
83
|
}
|
|
78
84
|
await channel.telegram.post(failureText(errorId, "failed", confirmationLocale(context.session.auth.current, currentLocale())));
|
|
79
85
|
},
|
|
80
|
-
async "session.
|
|
86
|
+
async "session.ended"(fact, context) {
|
|
87
|
+
if (fact.data.outcome !== "failed") return;
|
|
88
|
+
const channel = context.channel;
|
|
89
|
+
const event = {
|
|
90
|
+
...fact.data.error,
|
|
91
|
+
code: fact.data.error?.code ?? "SESSION_FAILED",
|
|
92
|
+
message: fact.data.error?.message ?? "Session failed",
|
|
93
|
+
sessionId: context.session.id
|
|
94
|
+
};
|
|
81
95
|
const errorId = reportTelegramError("session_recovery_failed", event, {
|
|
82
96
|
chatId: channel.state.chatId,
|
|
83
97
|
sessionId: event.sessionId
|
|
@@ -95,12 +109,14 @@ function telegramFailureEvents(input) {
|
|
|
95
109
|
await recorded;
|
|
96
110
|
}
|
|
97
111
|
},
|
|
98
|
-
async "
|
|
99
|
-
const
|
|
100
|
-
|
|
112
|
+
async "interaction.settled"(fact, context) {
|
|
113
|
+
const event = fact.data;
|
|
114
|
+
const channel = context.channel;
|
|
115
|
+
const messageId = channel.state.pendingAuthMessageIds?.[event.interactionId];
|
|
116
|
+
if (messageId === void 0) return;
|
|
101
117
|
const locale = confirmationLocale(context.session.auth.current);
|
|
102
118
|
const copy = customerCopy(locale);
|
|
103
|
-
let text = event.outcome === "
|
|
119
|
+
let text = event.outcome === "accepted" ? copy.connected : copy.disconnected;
|
|
104
120
|
if (event.reason !== void 0) {
|
|
105
121
|
const errorId = reportTelegramError("authorization_not_completed", event, { chatId: channel.state.chatId });
|
|
106
122
|
text = failureText(errorId, "authorization", locale);
|
|
@@ -114,7 +130,7 @@ function telegramFailureEvents(input) {
|
|
|
114
130
|
messageId,
|
|
115
131
|
replyMarkup: { inline_keyboard: [] }
|
|
116
132
|
});
|
|
117
|
-
delete channel.state.pendingAuthMessageIds?.[event.
|
|
133
|
+
delete channel.state.pendingAuthMessageIds?.[event.interactionId];
|
|
118
134
|
}
|
|
119
135
|
};
|
|
120
136
|
}
|
|
@@ -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 { p as reportTelegramError } from "../../../_chunks/inbound-request-
|
|
7
|
+
import { p as reportTelegramError } from "../../../_chunks/inbound-request-Dx1B6Y5r.mjs";
|
|
8
8
|
import "../connection-proxy.mjs";
|
|
9
9
|
import { gateway, transcribe } from "ai";
|
|
10
10
|
const LABELS = {
|
|
@@ -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 { n as workflowToolResult, r as workflowValue, t as toWorkflowSerializable } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { n as workflowToolResult, r as workflowValue, t as toWorkflowSerializable } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
8
8
|
export { toWorkflowSerializable, workflowToolResult, workflowValue };
|
package/dist/extension/model.mjs
CHANGED
|
@@ -5,8 +5,9 @@ const __filename = __eveFileURLToPath(import.meta.url);
|
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
7
|
import { isPreview } from "./lib/environment.mjs";
|
|
8
|
-
import { a as rolesOf } from "../_chunks/principal-
|
|
8
|
+
import { a as rolesOf } from "../_chunks/principal-BnJuWJtk.mjs";
|
|
9
9
|
import { defineDynamic } from "eve";
|
|
10
|
+
import { runs } from "eve/events";
|
|
10
11
|
function chooseModel(input) {
|
|
11
12
|
const { choice } = input;
|
|
12
13
|
if (choice.preview !== void 0 && isPreview(input.environment ?? process.env)) return choice.preview;
|
|
@@ -15,13 +16,15 @@ function chooseModel(input) {
|
|
|
15
16
|
return choice.default;
|
|
16
17
|
}
|
|
17
18
|
function model(choice) {
|
|
18
|
-
return defineDynamic(
|
|
19
|
+
return defineDynamic((context) => context.memo(context.session.id, () => {
|
|
20
|
+
const previous = runs(context.view).findLast((run) => run.turnId !== void 0 && run.modelId !== void 0)?.modelId;
|
|
21
|
+
if (previous !== void 0) return previous;
|
|
19
22
|
const chosen = typeof choice === "function" ? choice() : choice;
|
|
20
23
|
if (chosen === null) throw new Error("segmentstream.model() has no model to choose from: set models.chat in agent/segmentstream.json or pass the choice to segmentstream.model().");
|
|
21
24
|
return chooseModel({
|
|
22
25
|
choice: chosen,
|
|
23
|
-
principal: context.session.auth.
|
|
26
|
+
principal: context.session.auth.initiator ?? context.session.auth.current
|
|
24
27
|
});
|
|
25
|
-
}
|
|
28
|
+
}));
|
|
26
29
|
}
|
|
27
30
|
export { chooseModel, model };
|
|
@@ -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 workflowToolResult } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
8
8
|
import { ID_INPUT, attachmentForModel, attachmentOwner, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
|
|
9
9
|
import { defineTool } from "eve/tools";
|
|
10
10
|
var attachments_discard_default = defineTool({
|
|
@@ -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 workflowToolResult } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
8
8
|
import { attachmentForModel, attachmentOwner, toolAttachments } from "../lib/attachment-tools.mjs";
|
|
9
9
|
import { defineTool } from "eve/tools";
|
|
10
10
|
var attachments_list_default = defineTool({
|
|
@@ -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 { u as runtimeEnvelope } from "../../_chunks/principal-
|
|
8
|
-
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { u as runtimeEnvelope } from "../../_chunks/principal-BnJuWJtk.mjs";
|
|
8
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
9
9
|
import segmentstream from "../extension.mjs";
|
|
10
10
|
import { actionApproval } from "../lib/confirmations.mjs";
|
|
11
11
|
import { ontologyTools, promotionTarget } from "../lib/ontology-tools.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 { n as workflowToolResult } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
8
8
|
import { ID_INPUT, attachmentOwner, headerArgument, optionalString, pageInteger, readOutput, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
|
|
9
9
|
import { readStoredFile } from "../lib/stored-files.mjs";
|
|
10
10
|
import { defineTool } from "eve/tools";
|
|
@@ -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 workflowToolResult } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
8
8
|
import segmentstream from "../extension.mjs";
|
|
9
9
|
import { sendAttachments, sendAttachmentsInput } from "../lib/telegram/attachments-send.mjs";
|
|
10
10
|
import { defineTool } from "eve/tools";
|
|
@@ -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 workflowToolResult } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
8
8
|
import { readSheets, typedTable } from "../lib/attachment-tables.mjs";
|
|
9
9
|
import { queryTable } from "../lib/attachment-query.mjs";
|
|
10
10
|
import { ID_INPUT, attachmentForModel, attachmentOwner, boundedResultPage, headerArgument, optionalString, pageInteger, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import("eve").DynamicSentinel<import("eve/tools").
|
|
1
|
+
declare const _default: import("eve").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve").DynamicContext>;
|
|
2
2
|
export default _default;
|
|
@@ -7,5 +7,5 @@ __eveCreateRequire(import.meta.url);
|
|
|
7
7
|
import segmentstream from "../extension.mjs";
|
|
8
8
|
import { ontologyFileCall } from "../lib/ontology-file-call.mjs";
|
|
9
9
|
import { defineDynamic } from "eve/tools";
|
|
10
|
-
var ontology_call_file_default = defineDynamic(
|
|
10
|
+
var ontology_call_file_default = defineDynamic(() => segmentstream.config.ontology.connection && segmentstream.config.sandbox ? ontologyFileCall(() => segmentstream.config.texts ?? {}) : null);
|
|
11
11
|
export { ontology_call_file_default as default };
|
|
@@ -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 { i as memberIdOf } from "../../_chunks/principal-
|
|
8
|
-
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-
|
|
7
|
+
import { i as memberIdOf } from "../../_chunks/principal-BnJuWJtk.mjs";
|
|
8
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-DU7WeCIW.mjs";
|
|
9
9
|
import { pendingQuestions, questionKey } from "../lib/questions.mjs";
|
|
10
10
|
import { stringArgument } from "../lib/attachment-tools.mjs";
|
|
11
11
|
import { defineTool } from "eve/tools";
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import { type ReadFileToolOutput } from "eve/tools/read_file";
|
|
3
|
-
import { type WriteFileToolOutput } from "eve/tools/write_file";
|
|
4
|
-
declare const _default: import("eve").DynamicSentinel<{
|
|
5
|
-
bash: import("eve/tools").ToolDefinition<import("eve/tools/bash").BashToolInput, BashToolOutput>;
|
|
6
|
-
read_file: import("eve/tools").ToolDefinition<import("eve/tools/read_file").ReadFileToolInput, ReadFileToolOutput>;
|
|
7
|
-
write_file: import("eve/tools").ToolDefinition<import("eve/tools/write_file").WriteFileToolInput, WriteFileToolOutput>;
|
|
8
|
-
} | null>;
|
|
1
|
+
declare const _default: import("eve").DynamicSentinel<import("eve/tools").DynamicToolResult, import("eve").DynamicContext>;
|
|
9
2
|
export default _default;
|
|
@@ -42,5 +42,5 @@ const tools = {
|
|
|
42
42
|
}
|
|
43
43
|
})
|
|
44
44
|
};
|
|
45
|
-
var sandbox_default = defineDynamic(
|
|
45
|
+
var sandbox_default = defineDynamic(() => segmentstream.config.sandbox ? tools : null);
|
|
46
46
|
export { sandbox_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/agent",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
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",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"@chat-adapter/telegram": "4.41.0",
|
|
69
69
|
"@segmentstream-cloud/ontology": "0.60.1",
|
|
70
70
|
"@vercel/oidc": "^3.8.4",
|
|
71
|
-
"ai": "^7.0.
|
|
71
|
+
"ai": "^7.0.137",
|
|
72
72
|
"csv-parse": "^7.0.3",
|
|
73
73
|
"decimal.js": "^10.6.0",
|
|
74
74
|
"fast-xml-parser": "^5.11.2",
|
|
@@ -81,11 +81,11 @@
|
|
|
81
81
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
|
-
"eve": "0.
|
|
84
|
+
"eve": "0.85.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@types/node": "^24",
|
|
88
|
-
"eve": "0.
|
|
88
|
+
"eve": "0.85.0",
|
|
89
89
|
"typescript": "^5.9",
|
|
90
90
|
"vitest": "^4.1.11",
|
|
91
91
|
"tsx": "^4"
|
|
File without changes
|
/package/dist/_chunks/{workflow-serializable-_g4JRau5.mjs → workflow-serializable-DU7WeCIW.mjs}
RENAMED
|
File without changes
|