@segmentstream/agent 0.8.3 → 0.8.5
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 +14 -0
- package/dist/_chunks/{build-metadata-BLyaHLJW.mjs → build-metadata-BYl-5kFi.mjs} +1 -1
- package/dist/_chunks/{inbound-request-CYSoY6pu.mjs → inbound-request-B98tr4Pd.mjs} +1 -0
- package/dist/_chunks/workflow-serializable-BwttWNmY.mjs +715 -0
- package/dist/extension/lib/build-metadata.mjs +1 -1
- package/dist/extension/lib/conversations.mjs +10 -4
- package/dist/extension/lib/ontology-tools.mjs +1 -1
- package/dist/extension/lib/telegram/adapter.mjs +11 -3
- 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/confirmation-expiry.mjs +1 -1
- package/dist/extension/lib/telegram/confirmations.mjs +1 -1
- package/dist/extension/lib/telegram/conversations.mjs +1 -1
- package/dist/extension/lib/telegram/customer-text.mjs +1 -1
- package/dist/extension/lib/telegram/deferred-confirmations.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/images.mjs +1 -1
- package/dist/extension/lib/telegram/inbound-request.d.ts +2 -0
- package/dist/extension/lib/telegram/inbound-request.mjs +1 -1
- package/dist/extension/lib/telegram/inbound.mjs +3 -2
- package/dist/extension/lib/telegram/lifecycle.mjs +2 -2
- package/dist/extension/lib/telegram/media-policy.mjs +1 -1
- package/dist/extension/lib/telegram/silent.mjs +1 -1
- package/dist/extension/lib/telegram/turn-errors.mjs +1 -1
- package/dist/extension/lib/telegram/voice.mjs +1 -1
- package/dist/extension/lib/workflow-serializable.d.ts +29 -0
- package/dist/extension/lib/workflow-serializable.mjs +8 -0
- package/dist/extension/tools/attachments_discard.d.ts +2 -24
- package/dist/extension/tools/attachments_discard.mjs +2 -1
- package/dist/extension/tools/attachments_list.d.ts +2 -24
- package/dist/extension/tools/attachments_list.mjs +3 -1
- package/dist/extension/tools/attachments_promote.d.ts +2 -28
- package/dist/extension/tools/attachments_promote.mjs +3 -2
- package/dist/extension/tools/attachments_read.mjs +3 -2
- package/dist/extension/tools/attachments_send.d.ts +1 -7
- package/dist/extension/tools/attachments_send.mjs +4 -3
- package/dist/extension/tools/attachments_table.d.ts +2 -62
- package/dist/extension/tools/attachments_table.mjs +3 -2
- package/dist/extension/tools/questions_ask.d.ts +3 -13
- package/dist/extension/tools/questions_ask.mjs +2 -1
- package/package.json +1 -1
|
@@ -1,64 +1,4 @@
|
|
|
1
|
-
declare const _default: import("eve/tools").ToolDefinition<Record<string, unknown>, {
|
|
2
|
-
|
|
3
|
-
pagination: {
|
|
4
|
-
offset: number;
|
|
5
|
-
limit: number;
|
|
6
|
-
total_pages: number;
|
|
7
|
-
next_offset: number | null;
|
|
8
|
-
};
|
|
9
|
-
attachment: {
|
|
10
|
-
promotion?: {} | undefined;
|
|
11
|
-
expires_at?: string | undefined;
|
|
12
|
-
state?: string | undefined;
|
|
13
|
-
id: string;
|
|
14
|
-
filename: string;
|
|
15
|
-
content_type: string;
|
|
16
|
-
size: number;
|
|
17
|
-
sha256: string;
|
|
18
|
-
};
|
|
19
|
-
sheet: string;
|
|
20
|
-
sheets: readonly {
|
|
21
|
-
readonly name: string;
|
|
22
|
-
readonly total_rows: number;
|
|
23
|
-
}[];
|
|
24
|
-
header_row: number;
|
|
25
|
-
columns: import("../lib/attachment-tables.js").Column[];
|
|
26
|
-
warnings: string[];
|
|
27
|
-
total_rows: number;
|
|
28
|
-
matched_rows: number;
|
|
29
|
-
total_results: number;
|
|
30
|
-
decimal_note: string;
|
|
31
|
-
}> & {
|
|
32
|
-
execute(input: Record<string, unknown>, ctx: import("eve/tools").ToolContext): Promise<{
|
|
33
|
-
results: Record<string, string | number | null>[];
|
|
34
|
-
pagination: {
|
|
35
|
-
offset: number;
|
|
36
|
-
limit: number;
|
|
37
|
-
total_pages: number;
|
|
38
|
-
next_offset: number | null;
|
|
39
|
-
};
|
|
40
|
-
attachment: {
|
|
41
|
-
promotion?: {} | undefined;
|
|
42
|
-
expires_at?: string | undefined;
|
|
43
|
-
state?: string | undefined;
|
|
44
|
-
id: string;
|
|
45
|
-
filename: string;
|
|
46
|
-
content_type: string;
|
|
47
|
-
size: number;
|
|
48
|
-
sha256: string;
|
|
49
|
-
};
|
|
50
|
-
sheet: string;
|
|
51
|
-
sheets: readonly {
|
|
52
|
-
readonly name: string;
|
|
53
|
-
readonly total_rows: number;
|
|
54
|
-
}[];
|
|
55
|
-
header_row: number;
|
|
56
|
-
columns: import("../lib/attachment-tables.js").Column[];
|
|
57
|
-
warnings: string[];
|
|
58
|
-
total_rows: number;
|
|
59
|
-
matched_rows: number;
|
|
60
|
-
total_results: number;
|
|
61
|
-
decimal_note: string;
|
|
62
|
-
}>;
|
|
1
|
+
declare const _default: import("eve/tools").ToolDefinition<Record<string, unknown>, import("../lib/workflow-serializable.js").WorkflowSerializable> & {
|
|
2
|
+
execute(input: Record<string, unknown>, ctx: import("eve/tools").ToolContext): Promise<import("../lib/workflow-serializable.js").WorkflowSerializable>;
|
|
63
3
|
};
|
|
64
4
|
export default _default;
|
|
@@ -4,6 +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-BwttWNmY.mjs";
|
|
7
8
|
import { readSheets, typedTable } from "../lib/attachment-tables.mjs";
|
|
8
9
|
import { queryTable } from "../lib/attachment-query.mjs";
|
|
9
10
|
import { ID_INPUT, attachmentForModel, attachmentOwner, boundedResultPage, headerArgument, optionalString, pageInteger, stringArgument, toolAttachments } from "../lib/attachment-tools.mjs";
|
|
@@ -183,7 +184,7 @@ var attachments_table_default = defineTool({
|
|
|
183
184
|
resultOffset += boundedResultPage(queried.results, resultOffset, limit, envelope).length;
|
|
184
185
|
totalPages++;
|
|
185
186
|
}
|
|
186
|
-
return {
|
|
187
|
+
return workflowToolResult({
|
|
187
188
|
...envelope,
|
|
188
189
|
results,
|
|
189
190
|
pagination: {
|
|
@@ -192,7 +193,7 @@ var attachments_table_default = defineTool({
|
|
|
192
193
|
total_pages: totalPages,
|
|
193
194
|
next_offset: offset + results.length < queried.results.length ? offset + results.length : null
|
|
194
195
|
}
|
|
195
|
-
};
|
|
196
|
+
}, ctx);
|
|
196
197
|
}
|
|
197
198
|
});
|
|
198
199
|
export { attachments_table_default as default };
|
|
@@ -1,14 +1,4 @@
|
|
|
1
|
-
declare const _default: import("eve/tools").ToolDefinition<Record<string, unknown>, {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
taskId?: string | undefined;
|
|
5
|
-
replyToMessageId?: string | undefined;
|
|
6
|
-
id: string;
|
|
7
|
-
question: string;
|
|
8
|
-
task: string;
|
|
9
|
-
memberId: string;
|
|
10
|
-
chatId: string;
|
|
11
|
-
messageThreadId: string;
|
|
12
|
-
};
|
|
13
|
-
}>;
|
|
1
|
+
declare const _default: import("eve/tools").ToolDefinition<Record<string, unknown>, string | number | boolean | import("../lib/workflow-serializable.js").WorkflowSerializable[] | {
|
|
2
|
+
[key: string]: import("../lib/workflow-serializable.js").WorkflowSerializable;
|
|
3
|
+
} | null>;
|
|
14
4
|
export default _default;
|
|
@@ -5,6 +5,7 @@ const __filename = __eveFileURLToPath(import.meta.url);
|
|
|
5
5
|
__eveDirname(__filename);
|
|
6
6
|
__eveCreateRequire(import.meta.url);
|
|
7
7
|
import { memberIdOf } from "../lib/telegram/principal.mjs";
|
|
8
|
+
import { n as workflowToolResult } from "../../_chunks/workflow-serializable-BwttWNmY.mjs";
|
|
8
9
|
import { pendingQuestions, questionKey } from "../lib/questions.mjs";
|
|
9
10
|
import { stringArgument } from "../lib/attachment-tools.mjs";
|
|
10
11
|
import { defineTool } from "eve/tools";
|
|
@@ -46,7 +47,7 @@ var questions_ask_default = defineTool({
|
|
|
46
47
|
...all,
|
|
47
48
|
[questionKey(question)]: question
|
|
48
49
|
}));
|
|
49
|
-
return { pendingQuestion: question };
|
|
50
|
+
return workflowToolResult({ pendingQuestion: question }, ctx);
|
|
50
51
|
}
|
|
51
52
|
});
|
|
52
53
|
export { questions_ask_default as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@segmentstream/agent",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.5",
|
|
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",
|