@barivia/barsom-mcp 0.15.4 → 0.17.1
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 +18 -7
- package/dist/index.js +1 -1
- package/dist/job_status_format.js +52 -13
- package/dist/shared.js +25 -4
- package/dist/tools/datasets.js +39 -8
- package/dist/tools/explore_map.js +1 -1
- package/dist/tools/inference.js +43 -4
- package/dist/tools/jobs.js +16 -56
- package/dist/tools/results.js +34 -62
- package/dist/tools/train.js +73 -133
- package/dist/tools/training_core.js +126 -9
- package/dist/tools/training_guidance.js +1 -1
- package/dist/tools/training_monitor.js +49 -4
- package/dist/tools/training_prep.js +211 -21
- package/dist/views/src/views/training-monitor/index.html +29 -16
- package/dist/views/src/views/training-prep/index.html +25 -11
- package/dist/viz-server.js +19 -0
- package/package.json +1 -1
package/dist/viz-server.js
CHANGED
|
@@ -92,6 +92,25 @@ export function startVizServer(apiCall, apiRawCall, loadViewHtml) {
|
|
|
92
92
|
}
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
95
|
+
// GET /api/results/:jobId/training-log (for training-monitor completed-job fallback)
|
|
96
|
+
const trainingLogMatch = pathname.match(/^\/api\/results\/([^/]+)\/training-log$/);
|
|
97
|
+
if (req.method === "GET" && trainingLogMatch) {
|
|
98
|
+
const jobId = trainingLogMatch[1];
|
|
99
|
+
if (!ID_REGEX.test(jobId)) {
|
|
100
|
+
sendJson(400, { error: "Invalid job_id" });
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
try {
|
|
104
|
+
const data = await apiCall("GET", `/v1/results/${jobId}/training-log`);
|
|
105
|
+
sendJson(200, data);
|
|
106
|
+
}
|
|
107
|
+
catch (err) {
|
|
108
|
+
const status = err?.httpStatus ?? 500;
|
|
109
|
+
const message = err instanceof Error ? err.message : "Request failed";
|
|
110
|
+
sendJson(status, { error: message });
|
|
111
|
+
}
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
95
114
|
// GET /api/jobs/:jobId (for training-monitor polling)
|
|
96
115
|
const jobMatch = pathname.match(/^\/api\/jobs\/([^/]+)$/);
|
|
97
116
|
if (req.method === "GET" && jobMatch) {
|