@agentwonderland/mcp 0.1.13 → 0.1.14
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/core/formatters.d.ts +1 -0
- package/dist/core/formatters.js +3 -0
- package/dist/tools/run.js +1 -1
- package/package.json +1 -1
- package/src/core/formatters.ts +4 -0
- package/src/tools/run.ts +1 -1
package/dist/core/formatters.js
CHANGED
|
@@ -116,6 +116,9 @@ export function formatRunResult(result, opts) {
|
|
|
116
116
|
const latency = result.latency_ms != null ? `${result.latency_ms}ms` : "";
|
|
117
117
|
const method = opts?.paymentMethod ?? "";
|
|
118
118
|
lines.push(`${status} ${agent}${latency ? ` (${latency})` : ""}`);
|
|
119
|
+
if (result.error_code) {
|
|
120
|
+
lines.push(`Error: ${result.error_code}`);
|
|
121
|
+
}
|
|
119
122
|
if (costStr) {
|
|
120
123
|
lines.push(`Paid: ${costStr}${method ? ` via ${method}` : ""}`);
|
|
121
124
|
}
|
package/dist/tools/run.js
CHANGED
|
@@ -62,7 +62,7 @@ export function registerRunTools(server) {
|
|
|
62
62
|
processedInput = uploadResult.input;
|
|
63
63
|
if (uploadResult.uploads.length > 0) {
|
|
64
64
|
uploadSummary = uploadResult.uploads
|
|
65
|
-
.map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url
|
|
65
|
+
.map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url}`)
|
|
66
66
|
.join("\n");
|
|
67
67
|
}
|
|
68
68
|
}
|
package/package.json
CHANGED
package/src/core/formatters.ts
CHANGED
|
@@ -111,6 +111,7 @@ interface RunResultLike {
|
|
|
111
111
|
agent_id?: string;
|
|
112
112
|
agent_name?: string;
|
|
113
113
|
output?: unknown;
|
|
114
|
+
error_code?: string;
|
|
114
115
|
latency_ms?: number;
|
|
115
116
|
execution_latency_ms?: number;
|
|
116
117
|
cost?: number;
|
|
@@ -153,6 +154,9 @@ export function formatRunResult(result: RunResultLike, opts?: { paymentMethod?:
|
|
|
153
154
|
const method = opts?.paymentMethod ?? "";
|
|
154
155
|
|
|
155
156
|
lines.push(`${status} ${agent}${latency ? ` (${latency})` : ""}`);
|
|
157
|
+
if (result.error_code) {
|
|
158
|
+
lines.push(`Error: ${result.error_code}`);
|
|
159
|
+
}
|
|
156
160
|
if (costStr) {
|
|
157
161
|
lines.push(`Paid: ${costStr}${method ? ` via ${method}` : ""}`);
|
|
158
162
|
}
|
package/src/tools/run.ts
CHANGED
|
@@ -81,7 +81,7 @@ export function registerRunTools(server: McpServer): void {
|
|
|
81
81
|
processedInput = uploadResult.input;
|
|
82
82
|
if (uploadResult.uploads.length > 0) {
|
|
83
83
|
uploadSummary = uploadResult.uploads
|
|
84
|
-
.map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url
|
|
84
|
+
.map((u) => `Uploaded ${u.field}: ${u.originalPath} → ${u.url}`)
|
|
85
85
|
.join("\n");
|
|
86
86
|
}
|
|
87
87
|
} catch (err) {
|