@rallycry/conveyor-agent 7.1.3 → 7.1.4

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.
@@ -0,0 +1,17 @@
1
+ // src/tools/helpers.ts
2
+ function textResult(text) {
3
+ return { content: [{ type: "text", text }] };
4
+ }
5
+ function imageBlock(data, mimeType) {
6
+ return { type: "image", data, mimeType };
7
+ }
8
+ function isImageMimeType(mimeType) {
9
+ return mimeType.startsWith("image/");
10
+ }
11
+
12
+ export {
13
+ textResult,
14
+ imageBlock,
15
+ isImageMimeType
16
+ };
17
+ //# sourceMappingURL=chunk-C5YAMQJ2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/tools/helpers.ts"],"sourcesContent":["/** Shared result helpers for MCP tool handlers. */\n\nexport function textResult(text: string): { content: { type: \"text\"; text: string }[] } {\n return { content: [{ type: \"text\" as const, text }] };\n}\n\nexport function imageBlock(\n data: string,\n mimeType: string,\n): { type: \"image\"; data: string; mimeType: string } {\n return { type: \"image\" as const, data, mimeType };\n}\n\nexport function isImageMimeType(mimeType: string): boolean {\n return mimeType.startsWith(\"image/\");\n}\n"],"mappings":";AAEO,SAAS,WAAW,MAA6D;AACtF,SAAO,EAAE,SAAS,CAAC,EAAE,MAAM,QAAiB,KAAK,CAAC,EAAE;AACtD;AAEO,SAAS,WACd,MACA,UACmD;AACnD,SAAO,EAAE,MAAM,SAAkB,MAAM,SAAS;AAClD;AAEO,SAAS,gBAAgB,UAA2B;AACzD,SAAO,SAAS,WAAW,QAAQ;AACrC;","names":[]}