@avallon-labs/mcp 47.0.0 → 47.1.0-staging.1074
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/index.js
CHANGED
|
@@ -1387,24 +1387,6 @@ var listWorkerRunMessages = async (workerRunId, params, options) => {
|
|
|
1387
1387
|
headers: res.headers
|
|
1388
1388
|
};
|
|
1389
1389
|
};
|
|
1390
|
-
var getUpdateWorkerRunScopeUrl = (workerRunId) => {
|
|
1391
|
-
return `/v1/worker-runs/${workerRunId}/scope`;
|
|
1392
|
-
};
|
|
1393
|
-
var updateWorkerRunScope = async (workerRunId, updateWorkerRunScopeBody, options) => {
|
|
1394
|
-
const res = await fetch(getUpdateWorkerRunScopeUrl(workerRunId), {
|
|
1395
|
-
...options,
|
|
1396
|
-
method: "PATCH",
|
|
1397
|
-
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1398
|
-
body: JSON.stringify(updateWorkerRunScopeBody)
|
|
1399
|
-
});
|
|
1400
|
-
const body = [204, 205, 304].includes(res.status) ? null : await res.text();
|
|
1401
|
-
const data = body ? JSON.parse(body) : {};
|
|
1402
|
-
return {
|
|
1403
|
-
data,
|
|
1404
|
-
status: res.status,
|
|
1405
|
-
headers: res.headers
|
|
1406
|
-
};
|
|
1407
|
-
};
|
|
1408
1390
|
var getCancelWorkerRunUrl = (workerRunId) => {
|
|
1409
1391
|
return `/v1/worker-runs/${workerRunId}/cancel`;
|
|
1410
1392
|
};
|
|
@@ -3890,20 +3872,6 @@ var listWorkerRunMessagesHandler = async (args) => {
|
|
|
3890
3872
|
]
|
|
3891
3873
|
};
|
|
3892
3874
|
};
|
|
3893
|
-
var updateWorkerRunScopeHandler = async (args) => {
|
|
3894
|
-
const res = await updateWorkerRunScope(
|
|
3895
|
-
args.pathParams.workerRunId,
|
|
3896
|
-
args.bodyParams
|
|
3897
|
-
);
|
|
3898
|
-
return {
|
|
3899
|
-
content: [
|
|
3900
|
-
{
|
|
3901
|
-
type: "text",
|
|
3902
|
-
text: JSON.stringify(res)
|
|
3903
|
-
}
|
|
3904
|
-
]
|
|
3905
|
-
};
|
|
3906
|
-
};
|
|
3907
3875
|
var cancelWorkerRunHandler = async (args) => {
|
|
3908
3876
|
const res = await cancelWorkerRun(args.pathParams.workerRunId);
|
|
3909
3877
|
return {
|
|
@@ -7581,54 +7549,6 @@ var ListWorkerRunMessagesResponse = zod.object({
|
|
|
7581
7549
|
),
|
|
7582
7550
|
message: zod.string()
|
|
7583
7551
|
});
|
|
7584
|
-
var UpdateWorkerRunScopeParams = zod.object({
|
|
7585
|
-
workerRunId: zod.string().uuid()
|
|
7586
|
-
});
|
|
7587
|
-
var UpdateWorkerRunScopeBody = zod.object({
|
|
7588
|
-
scope: zod.record(zod.string(), zod.unknown())
|
|
7589
|
-
});
|
|
7590
|
-
var updateWorkerRunScopeResponseDataWorkerVersionMin = -9007199254740991;
|
|
7591
|
-
var updateWorkerRunScopeResponseDataWorkerVersionMax = 9007199254740991;
|
|
7592
|
-
var UpdateWorkerRunScopeResponse = zod.object({
|
|
7593
|
-
data: zod.object({
|
|
7594
|
-
id: zod.string().describe("Unique run identifier"),
|
|
7595
|
-
worker_id: zod.string().describe("ID of the worker"),
|
|
7596
|
-
worker_version: zod.number().min(updateWorkerRunScopeResponseDataWorkerVersionMin).max(updateWorkerRunScopeResponseDataWorkerVersionMax).describe(
|
|
7597
|
-
"The worker config version this run executes: the version live at run creation. Editing the worker afterwards does not change it."
|
|
7598
|
-
),
|
|
7599
|
-
worker_name: zod.string().describe("Name of the worker"),
|
|
7600
|
-
environment: zod.enum(["live", "test"]).describe(
|
|
7601
|
-
"Release channel the run was started for. Test calls run the worker's test version; every other trigger runs live."
|
|
7602
|
-
),
|
|
7603
|
-
status: zod.enum([
|
|
7604
|
-
"pending",
|
|
7605
|
-
"queued",
|
|
7606
|
-
"starting",
|
|
7607
|
-
"in_progress",
|
|
7608
|
-
"completed",
|
|
7609
|
-
"failed",
|
|
7610
|
-
"canceled"
|
|
7611
|
-
]).describe("Current run status"),
|
|
7612
|
-
scope: zod.union([zod.record(zod.string(), zod.unknown()), zod.null()]).describe(
|
|
7613
|
-
"Run scope metadata (e.g. claim_id, email_id). Null when the run has no artifacts."
|
|
7614
|
-
),
|
|
7615
|
-
created_at: zod.string().datetime({}).describe("ISO 8601 timestamp when the run was created"),
|
|
7616
|
-
started_at: zod.union([zod.string().datetime({}), zod.null()]).describe("ISO 8601 timestamp when processing started"),
|
|
7617
|
-
completed_at: zod.union([zod.string().datetime({}), zod.null()]).describe("ISO 8601 timestamp when processing finished"),
|
|
7618
|
-
processing_duration_ms: zod.union([zod.number(), zod.null()]).describe("Processing duration in milliseconds"),
|
|
7619
|
-
extract_id: zod.union([zod.string().uuid(), zod.null()]).describe(
|
|
7620
|
-
"Optional extract ID, set only if the worker run created an extract."
|
|
7621
|
-
),
|
|
7622
|
-
error: zod.union([zod.string(), zod.null()]),
|
|
7623
|
-
outcome: zod.union([zod.string(), zod.null()]).describe(
|
|
7624
|
-
"Use-case-specific business outcome reported by the worker. Null when the run predates outcome tracking or never executed to completion."
|
|
7625
|
-
),
|
|
7626
|
-
outcome_reason: zod.union([zod.string(), zod.null()]).describe(
|
|
7627
|
-
"Worker-authored explanation of the outcome. May contain case content."
|
|
7628
|
-
)
|
|
7629
|
-
}),
|
|
7630
|
-
message: zod.string()
|
|
7631
|
-
});
|
|
7632
7552
|
var CancelWorkerRunParams = zod.object({
|
|
7633
7553
|
workerRunId: zod.string().uuid()
|
|
7634
7554
|
});
|
|
@@ -10745,15 +10665,6 @@ server.tool(
|
|
|
10745
10665
|
},
|
|
10746
10666
|
listWorkerRunMessagesHandler
|
|
10747
10667
|
);
|
|
10748
|
-
server.tool(
|
|
10749
|
-
"updateWorkerRunScope",
|
|
10750
|
-
"Update worker run scope (deprecated)",
|
|
10751
|
-
{
|
|
10752
|
-
pathParams: UpdateWorkerRunScopeParams,
|
|
10753
|
-
bodyParams: UpdateWorkerRunScopeBody
|
|
10754
|
-
},
|
|
10755
|
-
updateWorkerRunScopeHandler
|
|
10756
|
-
);
|
|
10757
10668
|
server.tool(
|
|
10758
10669
|
"cancelWorkerRun",
|
|
10759
10670
|
"Cancel a worker run",
|
|
@@ -11456,4 +11367,4 @@ var transport = new StdioServerTransport();
|
|
|
11456
11367
|
server.connect(transport).then(() => {
|
|
11457
11368
|
console.error("MCP server running on stdio");
|
|
11458
11369
|
}).catch(console.error);
|
|
11459
|
-
//# sourceMappingURL=server-
|
|
11370
|
+
//# sourceMappingURL=server-NHDLMILZ.js.map
|