@meetkai/mka1 0.51.9 → 0.51.10
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 +230 -227
- package/bin/mcp-server.js +374 -208
- package/bin/mcp-server.js.map +12 -8
- package/dist/commonjs/funcs/servingFinetuneJobsGetMetrics.d.ts +19 -0
- package/dist/commonjs/funcs/servingFinetuneJobsGetMetrics.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingFinetuneJobsGetMetrics.js +137 -0
- package/dist/commonjs/funcs/servingFinetuneJobsGetMetrics.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js.map +1 -1
- package/dist/commonjs/mcp-server/server.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/servingFinetuneJobsGetMetrics.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingFinetuneJobsGetMetrics.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingFinetuneJobsGetMetrics.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingFinetuneJobsGetMetrics.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/trainingmetricpoint.d.ts +34 -0
- package/dist/commonjs/models/components/trainingmetricpoint.d.ts.map +1 -0
- package/dist/commonjs/models/components/trainingmetricpoint.js +62 -0
- package/dist/commonjs/models/components/trainingmetricpoint.js.map +1 -0
- package/dist/commonjs/models/operations/getfinetunemetrics.d.ts +22 -0
- package/dist/commonjs/models/operations/getfinetunemetrics.d.ts.map +1 -0
- package/dist/commonjs/models/operations/getfinetunemetrics.js +71 -0
- package/dist/commonjs/models/operations/getfinetunemetrics.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +1 -0
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +1 -0
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.core.d.ts +15 -0
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.core.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.core.js +36 -0
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.core.js.map +1 -0
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.d.ts +39 -0
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.js +60 -0
- package/dist/commonjs/react-query/servingFinetuneJobsGetMetrics.js.map +1 -0
- package/dist/commonjs/sdk/finetunejobs.d.ts +7 -0
- package/dist/commonjs/sdk/finetunejobs.d.ts.map +1 -1
- package/dist/commonjs/sdk/finetunejobs.js +10 -0
- package/dist/commonjs/sdk/finetunejobs.js.map +1 -1
- package/dist/esm/funcs/servingFinetuneJobsGetMetrics.d.ts +19 -0
- package/dist/esm/funcs/servingFinetuneJobsGetMetrics.d.ts.map +1 -0
- package/dist/esm/funcs/servingFinetuneJobsGetMetrics.js +101 -0
- package/dist/esm/funcs/servingFinetuneJobsGetMetrics.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/mcp-server.js.map +1 -1
- package/dist/esm/mcp-server/server.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/servingFinetuneJobsGetMetrics.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingFinetuneJobsGetMetrics.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingFinetuneJobsGetMetrics.js +28 -0
- package/dist/esm/mcp-server/tools/servingFinetuneJobsGetMetrics.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/trainingmetricpoint.d.ts +34 -0
- package/dist/esm/models/components/trainingmetricpoint.d.ts.map +1 -0
- package/dist/esm/models/components/trainingmetricpoint.js +24 -0
- package/dist/esm/models/components/trainingmetricpoint.js.map +1 -0
- package/dist/esm/models/operations/getfinetunemetrics.d.ts +22 -0
- package/dist/esm/models/operations/getfinetunemetrics.d.ts.map +1 -0
- package/dist/esm/models/operations/getfinetunemetrics.js +33 -0
- package/dist/esm/models/operations/getfinetunemetrics.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +1 -0
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +1 -0
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.core.d.ts +15 -0
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.core.d.ts.map +1 -0
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.core.js +31 -0
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.core.js.map +1 -0
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.d.ts +39 -0
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.d.ts.map +1 -0
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.js +50 -0
- package/dist/esm/react-query/servingFinetuneJobsGetMetrics.js.map +1 -0
- package/dist/esm/sdk/finetunejobs.d.ts +7 -0
- package/dist/esm/sdk/finetunejobs.d.ts.map +1 -1
- package/dist/esm/sdk/finetunejobs.js +10 -0
- package/dist/esm/sdk/finetunejobs.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingFinetuneJobsGetMetrics.ts +199 -0
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/servingFinetuneJobsGetMetrics.ts +37 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/trainingmetricpoint.ts +68 -0
- package/src/models/operations/getfinetunemetrics.ts +69 -0
- package/src/models/operations/index.ts +1 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/servingFinetuneJobsGetMetrics.core.ts +78 -0
- package/src/react-query/servingFinetuneJobsGetMetrics.ts +144 -0
- package/src/sdk/finetunejobs.ts +18 -0
package/bin/mcp-server.js
CHANGED
|
@@ -52876,9 +52876,9 @@ var init_config = __esm(() => {
|
|
|
52876
52876
|
SDK_METADATA = {
|
|
52877
52877
|
language: "typescript",
|
|
52878
52878
|
openapiDocVersion: "1.1.0",
|
|
52879
|
-
sdkVersion: "0.51.
|
|
52879
|
+
sdkVersion: "0.51.10",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.10 2.918.4 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -75225,6 +75225,22 @@ var init_texttospeechstreamingrequest = __esm(() => {
|
|
|
75225
75225
|
});
|
|
75226
75226
|
});
|
|
75227
75227
|
|
|
75228
|
+
// src/models/components/trainingmetricpoint.ts
|
|
75229
|
+
var TrainingMetricPoint$inboundSchema, TrainingMetricPoint$outboundSchema;
|
|
75230
|
+
var init_trainingmetricpoint = __esm(() => {
|
|
75231
|
+
init_esm();
|
|
75232
|
+
TrainingMetricPoint$inboundSchema = objectType({
|
|
75233
|
+
data: recordType(numberType()),
|
|
75234
|
+
step: nullableType(numberType().int()).optional(),
|
|
75235
|
+
timestamp: stringType().datetime({ offset: true }).transform((v2) => new Date(v2))
|
|
75236
|
+
});
|
|
75237
|
+
TrainingMetricPoint$outboundSchema = objectType({
|
|
75238
|
+
data: recordType(numberType()),
|
|
75239
|
+
step: nullableType(numberType().int()).optional(),
|
|
75240
|
+
timestamp: dateType().transform((v2) => v2.toISOString())
|
|
75241
|
+
});
|
|
75242
|
+
});
|
|
75243
|
+
|
|
75228
75244
|
// src/models/components/transcriptionresponse.ts
|
|
75229
75245
|
var TranscriptionResponse$inboundSchema, TranscriptionResponse$outboundSchema;
|
|
75230
75246
|
var init_transcriptionresponse = __esm(() => {
|
|
@@ -77389,6 +77405,7 @@ var init_components = __esm(() => {
|
|
|
77389
77405
|
init_toolchoicemode();
|
|
77390
77406
|
init_tooldefinition();
|
|
77391
77407
|
init_toplogprob();
|
|
77408
|
+
init_trainingmetricpoint();
|
|
77392
77409
|
init_transcriptionresponse();
|
|
77393
77410
|
init_typeaction();
|
|
77394
77411
|
init_update();
|
|
@@ -90249,6 +90266,31 @@ var init_getfinetunelogs = __esm(() => {
|
|
|
90249
90266
|
});
|
|
90250
90267
|
});
|
|
90251
90268
|
|
|
90269
|
+
// src/models/operations/getfinetunemetrics.ts
|
|
90270
|
+
var GetFinetuneMetricsRequest$inboundSchema, GetFinetuneMetricsRequest$outboundSchema;
|
|
90271
|
+
var init_getfinetunemetrics = __esm(() => {
|
|
90272
|
+
init_esm();
|
|
90273
|
+
init_primitives();
|
|
90274
|
+
GetFinetuneMetricsRequest$inboundSchema = objectType({
|
|
90275
|
+
job_id: stringType(),
|
|
90276
|
+
"X-On-Behalf-Of": stringType().optional()
|
|
90277
|
+
}).transform((v2) => {
|
|
90278
|
+
return remap(v2, {
|
|
90279
|
+
job_id: "jobId",
|
|
90280
|
+
"X-On-Behalf-Of": "xOnBehalfOf"
|
|
90281
|
+
});
|
|
90282
|
+
});
|
|
90283
|
+
GetFinetuneMetricsRequest$outboundSchema = objectType({
|
|
90284
|
+
jobId: stringType(),
|
|
90285
|
+
xOnBehalfOf: stringType().optional()
|
|
90286
|
+
}).transform((v2) => {
|
|
90287
|
+
return remap(v2, {
|
|
90288
|
+
jobId: "job_id",
|
|
90289
|
+
xOnBehalfOf: "X-On-Behalf-Of"
|
|
90290
|
+
});
|
|
90291
|
+
});
|
|
90292
|
+
});
|
|
90293
|
+
|
|
90252
90294
|
// src/models/operations/getguardrails.ts
|
|
90253
90295
|
var GetGuardrailsRequest$inboundSchema, GetGuardrailsRequest$outboundSchema;
|
|
90254
90296
|
var init_getguardrails = __esm(() => {
|
|
@@ -98781,6 +98823,7 @@ var init_operations = __esm(() => {
|
|
|
98781
98823
|
init_getfinetuneevents();
|
|
98782
98824
|
init_getfinetunejob();
|
|
98783
98825
|
init_getfinetunelogs();
|
|
98826
|
+
init_getfinetunemetrics();
|
|
98784
98827
|
init_getguardrails();
|
|
98785
98828
|
init_getimage();
|
|
98786
98829
|
init_getjwtfromkey2();
|
|
@@ -135058,11 +135101,132 @@ Fetch recent training log lines for a job.`,
|
|
|
135058
135101
|
};
|
|
135059
135102
|
});
|
|
135060
135103
|
|
|
135061
|
-
// src/funcs/
|
|
135062
|
-
function
|
|
135104
|
+
// src/funcs/servingFinetuneJobsGetMetrics.ts
|
|
135105
|
+
function servingFinetuneJobsGetMetrics(client, request, options) {
|
|
135063
135106
|
return new APIPromise($do307(client, request, options));
|
|
135064
135107
|
}
|
|
135065
135108
|
async function $do307(client, request, options) {
|
|
135109
|
+
const parsed = safeParse4(request, (value) => GetFinetuneMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135110
|
+
if (!parsed.ok) {
|
|
135111
|
+
return [parsed, { status: "invalid" }];
|
|
135112
|
+
}
|
|
135113
|
+
const payload = parsed.value;
|
|
135114
|
+
const body = null;
|
|
135115
|
+
const pathParams = {
|
|
135116
|
+
job_id: encodeSimple("job_id", payload.job_id, {
|
|
135117
|
+
explode: false,
|
|
135118
|
+
charEncoding: "percent"
|
|
135119
|
+
})
|
|
135120
|
+
};
|
|
135121
|
+
const path = pathToFunc("/api/v1/serving/finetune-jobs/{job_id}/metrics")(pathParams);
|
|
135122
|
+
const headers = new Headers(compactMap({
|
|
135123
|
+
Accept: "application/json",
|
|
135124
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
135125
|
+
}));
|
|
135126
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
135127
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
135128
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
135129
|
+
const context = {
|
|
135130
|
+
options: client._options,
|
|
135131
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
135132
|
+
operationID: "getFinetuneMetrics",
|
|
135133
|
+
oAuth2Scopes: null,
|
|
135134
|
+
resolvedSecurity: requestSecurity,
|
|
135135
|
+
securitySource: client._options.bearerAuth,
|
|
135136
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
135137
|
+
strategy: "backoff",
|
|
135138
|
+
backoff: {
|
|
135139
|
+
initialInterval: 500,
|
|
135140
|
+
maxInterval: 5000,
|
|
135141
|
+
exponent: 1.5,
|
|
135142
|
+
maxElapsedTime: 15000
|
|
135143
|
+
},
|
|
135144
|
+
retryConnectionErrors: true
|
|
135145
|
+
},
|
|
135146
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
135147
|
+
};
|
|
135148
|
+
const requestRes = client._createRequest(context, {
|
|
135149
|
+
security: requestSecurity,
|
|
135150
|
+
method: "GET",
|
|
135151
|
+
baseURL: options?.serverURL,
|
|
135152
|
+
path,
|
|
135153
|
+
headers,
|
|
135154
|
+
body,
|
|
135155
|
+
userAgent: client._options.userAgent,
|
|
135156
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
135157
|
+
}, options);
|
|
135158
|
+
if (!requestRes.ok) {
|
|
135159
|
+
return [requestRes, { status: "invalid" }];
|
|
135160
|
+
}
|
|
135161
|
+
const req = requestRes.value;
|
|
135162
|
+
const doResult = await client._do(req, {
|
|
135163
|
+
context,
|
|
135164
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
135165
|
+
retryConfig: context.retryConfig,
|
|
135166
|
+
retryCodes: context.retryCodes
|
|
135167
|
+
});
|
|
135168
|
+
if (!doResult.ok) {
|
|
135169
|
+
return [doResult, { status: "request-error", request: req }];
|
|
135170
|
+
}
|
|
135171
|
+
const response = doResult.value;
|
|
135172
|
+
const responseFields = {
|
|
135173
|
+
HttpMeta: { Response: response, Request: req }
|
|
135174
|
+
};
|
|
135175
|
+
const [result] = await match(json(200, arrayType(TrainingMetricPoint$inboundSchema)), jsonErr([403, 404], ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
135176
|
+
if (!result.ok) {
|
|
135177
|
+
return [result, { status: "complete", request: req, response }];
|
|
135178
|
+
}
|
|
135179
|
+
return [result, { status: "complete", request: req, response }];
|
|
135180
|
+
}
|
|
135181
|
+
var init_servingFinetuneJobsGetMetrics = __esm(() => {
|
|
135182
|
+
init_esm();
|
|
135183
|
+
init_encodings();
|
|
135184
|
+
init_http();
|
|
135185
|
+
init_matchers();
|
|
135186
|
+
init_primitives();
|
|
135187
|
+
init_schemas4();
|
|
135188
|
+
init_security();
|
|
135189
|
+
init_url();
|
|
135190
|
+
init_components();
|
|
135191
|
+
init_errors4();
|
|
135192
|
+
init_operations();
|
|
135193
|
+
init_async();
|
|
135194
|
+
});
|
|
135195
|
+
|
|
135196
|
+
// src/mcp-server/tools/servingFinetuneJobsGetMetrics.ts
|
|
135197
|
+
var args298, tool$servingFinetuneJobsGetMetrics;
|
|
135198
|
+
var init_servingFinetuneJobsGetMetrics2 = __esm(() => {
|
|
135199
|
+
init_servingFinetuneJobsGetMetrics();
|
|
135200
|
+
init_operations();
|
|
135201
|
+
init_tools();
|
|
135202
|
+
args298 = {
|
|
135203
|
+
request: GetFinetuneMetricsRequest$inboundSchema
|
|
135204
|
+
};
|
|
135205
|
+
tool$servingFinetuneJobsGetMetrics = {
|
|
135206
|
+
name: "serving-finetune-jobs-get-metrics",
|
|
135207
|
+
description: `Training metrics
|
|
135208
|
+
|
|
135209
|
+
Return the training metric series (loss, learning rate, ...) pushed by the training run.`,
|
|
135210
|
+
args: args298,
|
|
135211
|
+
tool: async (client, args299, ctx) => {
|
|
135212
|
+
const [result, apiCall] = await servingFinetuneJobsGetMetrics(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135213
|
+
if (!result.ok) {
|
|
135214
|
+
return {
|
|
135215
|
+
content: [{ type: "text", text: result.error.message }],
|
|
135216
|
+
isError: true
|
|
135217
|
+
};
|
|
135218
|
+
}
|
|
135219
|
+
const value = result.value;
|
|
135220
|
+
return formatResult(value, apiCall);
|
|
135221
|
+
}
|
|
135222
|
+
};
|
|
135223
|
+
});
|
|
135224
|
+
|
|
135225
|
+
// src/funcs/servingFinetuneJobsList.ts
|
|
135226
|
+
function servingFinetuneJobsList(client, request, options) {
|
|
135227
|
+
return new APIPromise($do308(client, request, options));
|
|
135228
|
+
}
|
|
135229
|
+
async function $do308(client, request, options) {
|
|
135066
135230
|
const parsed = safeParse4(request, (value) => ListFinetuneJobsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135067
135231
|
if (!parsed.ok) {
|
|
135068
135232
|
return [parsed, { status: "invalid" }];
|
|
@@ -135149,12 +135313,12 @@ var init_servingFinetuneJobsList = __esm(() => {
|
|
|
135149
135313
|
});
|
|
135150
135314
|
|
|
135151
135315
|
// src/mcp-server/tools/servingFinetuneJobsList.ts
|
|
135152
|
-
var
|
|
135316
|
+
var args299, tool$servingFinetuneJobsList;
|
|
135153
135317
|
var init_servingFinetuneJobsList2 = __esm(() => {
|
|
135154
135318
|
init_servingFinetuneJobsList();
|
|
135155
135319
|
init_operations();
|
|
135156
135320
|
init_tools();
|
|
135157
|
-
|
|
135321
|
+
args299 = {
|
|
135158
135322
|
request: ListFinetuneJobsRequest$inboundSchema
|
|
135159
135323
|
};
|
|
135160
135324
|
tool$servingFinetuneJobsList = {
|
|
@@ -135162,9 +135326,9 @@ var init_servingFinetuneJobsList2 = __esm(() => {
|
|
|
135162
135326
|
description: `List fine-tune jobs
|
|
135163
135327
|
|
|
135164
135328
|
List your fine-tune jobs.`,
|
|
135165
|
-
args:
|
|
135166
|
-
tool: async (client,
|
|
135167
|
-
const [result, apiCall] = await servingFinetuneJobsList(client,
|
|
135329
|
+
args: args299,
|
|
135330
|
+
tool: async (client, args300, ctx) => {
|
|
135331
|
+
const [result, apiCall] = await servingFinetuneJobsList(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135168
135332
|
if (!result.ok) {
|
|
135169
135333
|
return {
|
|
135170
135334
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135179,9 +135343,9 @@ List your fine-tune jobs.`,
|
|
|
135179
135343
|
|
|
135180
135344
|
// src/funcs/servingFinetuneJobsListCheckpoints.ts
|
|
135181
135345
|
function servingFinetuneJobsListCheckpoints(client, request, options) {
|
|
135182
|
-
return new APIPromise($
|
|
135346
|
+
return new APIPromise($do309(client, request, options));
|
|
135183
135347
|
}
|
|
135184
|
-
async function $
|
|
135348
|
+
async function $do309(client, request, options) {
|
|
135185
135349
|
const parsed = safeParse4(request, (value) => ListFinetuneCheckpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135186
135350
|
if (!parsed.ok) {
|
|
135187
135351
|
return [parsed, { status: "invalid" }];
|
|
@@ -135270,12 +135434,12 @@ var init_servingFinetuneJobsListCheckpoints = __esm(() => {
|
|
|
135270
135434
|
});
|
|
135271
135435
|
|
|
135272
135436
|
// src/mcp-server/tools/servingFinetuneJobsListCheckpoints.ts
|
|
135273
|
-
var
|
|
135437
|
+
var args300, tool$servingFinetuneJobsListCheckpoints;
|
|
135274
135438
|
var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
|
|
135275
135439
|
init_servingFinetuneJobsListCheckpoints();
|
|
135276
135440
|
init_operations();
|
|
135277
135441
|
init_tools();
|
|
135278
|
-
|
|
135442
|
+
args300 = {
|
|
135279
135443
|
request: ListFinetuneCheckpointsRequest$inboundSchema
|
|
135280
135444
|
};
|
|
135281
135445
|
tool$servingFinetuneJobsListCheckpoints = {
|
|
@@ -135283,9 +135447,9 @@ var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
|
|
|
135283
135447
|
description: `List output checkpoints
|
|
135284
135448
|
|
|
135285
135449
|
List the checkpoints a fine-tune job has produced.`,
|
|
135286
|
-
args:
|
|
135287
|
-
tool: async (client,
|
|
135288
|
-
const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client,
|
|
135450
|
+
args: args300,
|
|
135451
|
+
tool: async (client, args301, ctx) => {
|
|
135452
|
+
const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135289
135453
|
if (!result.ok) {
|
|
135290
135454
|
return {
|
|
135291
135455
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135300,9 +135464,9 @@ List the checkpoints a fine-tune job has produced.`,
|
|
|
135300
135464
|
|
|
135301
135465
|
// src/funcs/servingImagesDelete.ts
|
|
135302
135466
|
function servingImagesDelete(client, request, options) {
|
|
135303
|
-
return new APIPromise($
|
|
135467
|
+
return new APIPromise($do310(client, request, options));
|
|
135304
135468
|
}
|
|
135305
|
-
async function $
|
|
135469
|
+
async function $do310(client, request, options) {
|
|
135306
135470
|
const parsed = safeParse4(request, (value) => DeleteImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135307
135471
|
if (!parsed.ok) {
|
|
135308
135472
|
return [parsed, { status: "invalid" }];
|
|
@@ -135390,12 +135554,12 @@ var init_servingImagesDelete = __esm(() => {
|
|
|
135390
135554
|
});
|
|
135391
135555
|
|
|
135392
135556
|
// src/mcp-server/tools/servingImagesDelete.ts
|
|
135393
|
-
var
|
|
135557
|
+
var args301, tool$servingImagesDelete;
|
|
135394
135558
|
var init_servingImagesDelete2 = __esm(() => {
|
|
135395
135559
|
init_servingImagesDelete();
|
|
135396
135560
|
init_operations();
|
|
135397
135561
|
init_tools();
|
|
135398
|
-
|
|
135562
|
+
args301 = {
|
|
135399
135563
|
request: DeleteImageRequest$inboundSchema
|
|
135400
135564
|
};
|
|
135401
135565
|
tool$servingImagesDelete = {
|
|
@@ -135403,9 +135567,9 @@ var init_servingImagesDelete2 = __esm(() => {
|
|
|
135403
135567
|
description: `Delete an image
|
|
135404
135568
|
|
|
135405
135569
|
Delete a container image.`,
|
|
135406
|
-
args:
|
|
135407
|
-
tool: async (client,
|
|
135408
|
-
const [result, apiCall] = await servingImagesDelete(client,
|
|
135570
|
+
args: args301,
|
|
135571
|
+
tool: async (client, args302, ctx) => {
|
|
135572
|
+
const [result, apiCall] = await servingImagesDelete(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135409
135573
|
if (!result.ok) {
|
|
135410
135574
|
return {
|
|
135411
135575
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135419,9 +135583,9 @@ Delete a container image.`,
|
|
|
135419
135583
|
|
|
135420
135584
|
// src/funcs/servingImagesGet.ts
|
|
135421
135585
|
function servingImagesGet(client, request, options) {
|
|
135422
|
-
return new APIPromise($
|
|
135586
|
+
return new APIPromise($do311(client, request, options));
|
|
135423
135587
|
}
|
|
135424
|
-
async function $
|
|
135588
|
+
async function $do311(client, request, options) {
|
|
135425
135589
|
const parsed = safeParse4(request, (value) => GetImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135426
135590
|
if (!parsed.ok) {
|
|
135427
135591
|
return [parsed, { status: "invalid" }];
|
|
@@ -135509,12 +135673,12 @@ var init_servingImagesGet = __esm(() => {
|
|
|
135509
135673
|
});
|
|
135510
135674
|
|
|
135511
135675
|
// src/mcp-server/tools/servingImagesGet.ts
|
|
135512
|
-
var
|
|
135676
|
+
var args302, tool$servingImagesGet;
|
|
135513
135677
|
var init_servingImagesGet2 = __esm(() => {
|
|
135514
135678
|
init_servingImagesGet();
|
|
135515
135679
|
init_operations();
|
|
135516
135680
|
init_tools();
|
|
135517
|
-
|
|
135681
|
+
args302 = {
|
|
135518
135682
|
request: GetImageRequest$inboundSchema
|
|
135519
135683
|
};
|
|
135520
135684
|
tool$servingImagesGet = {
|
|
@@ -135522,9 +135686,9 @@ var init_servingImagesGet2 = __esm(() => {
|
|
|
135522
135686
|
description: `Get an image
|
|
135523
135687
|
|
|
135524
135688
|
Retrieve an image, including its build status.`,
|
|
135525
|
-
args:
|
|
135526
|
-
tool: async (client,
|
|
135527
|
-
const [result, apiCall] = await servingImagesGet(client,
|
|
135689
|
+
args: args302,
|
|
135690
|
+
tool: async (client, args303, ctx) => {
|
|
135691
|
+
const [result, apiCall] = await servingImagesGet(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135528
135692
|
if (!result.ok) {
|
|
135529
135693
|
return {
|
|
135530
135694
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135539,9 +135703,9 @@ Retrieve an image, including its build status.`,
|
|
|
135539
135703
|
|
|
135540
135704
|
// src/funcs/servingImagesList.ts
|
|
135541
135705
|
function servingImagesList(client, request, options) {
|
|
135542
|
-
return new APIPromise($
|
|
135706
|
+
return new APIPromise($do312(client, request, options));
|
|
135543
135707
|
}
|
|
135544
|
-
async function $
|
|
135708
|
+
async function $do312(client, request, options) {
|
|
135545
135709
|
const parsed = safeParse4(request, (value) => ListImagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135546
135710
|
if (!parsed.ok) {
|
|
135547
135711
|
return [parsed, { status: "invalid" }];
|
|
@@ -135628,12 +135792,12 @@ var init_servingImagesList = __esm(() => {
|
|
|
135628
135792
|
});
|
|
135629
135793
|
|
|
135630
135794
|
// src/mcp-server/tools/servingImagesList.ts
|
|
135631
|
-
var
|
|
135795
|
+
var args303, tool$servingImagesList;
|
|
135632
135796
|
var init_servingImagesList2 = __esm(() => {
|
|
135633
135797
|
init_servingImagesList();
|
|
135634
135798
|
init_operations();
|
|
135635
135799
|
init_tools();
|
|
135636
|
-
|
|
135800
|
+
args303 = {
|
|
135637
135801
|
request: ListImagesRequest$inboundSchema
|
|
135638
135802
|
};
|
|
135639
135803
|
tool$servingImagesList = {
|
|
@@ -135641,9 +135805,9 @@ var init_servingImagesList2 = __esm(() => {
|
|
|
135641
135805
|
description: `List images
|
|
135642
135806
|
|
|
135643
135807
|
List your container images.`,
|
|
135644
|
-
args:
|
|
135645
|
-
tool: async (client,
|
|
135646
|
-
const [result, apiCall] = await servingImagesList(client,
|
|
135808
|
+
args: args303,
|
|
135809
|
+
tool: async (client, args304, ctx) => {
|
|
135810
|
+
const [result, apiCall] = await servingImagesList(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135647
135811
|
if (!result.ok) {
|
|
135648
135812
|
return {
|
|
135649
135813
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135658,9 +135822,9 @@ List your container images.`,
|
|
|
135658
135822
|
|
|
135659
135823
|
// src/funcs/servingImagesRegister.ts
|
|
135660
135824
|
function servingImagesRegister(client, request, options) {
|
|
135661
|
-
return new APIPromise($
|
|
135825
|
+
return new APIPromise($do313(client, request, options));
|
|
135662
135826
|
}
|
|
135663
|
-
async function $
|
|
135827
|
+
async function $do313(client, request, options) {
|
|
135664
135828
|
const parsed = safeParse4(request, (value) => RegisterImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135665
135829
|
if (!parsed.ok) {
|
|
135666
135830
|
return [parsed, { status: "invalid" }];
|
|
@@ -135743,12 +135907,12 @@ var init_servingImagesRegister = __esm(() => {
|
|
|
135743
135907
|
});
|
|
135744
135908
|
|
|
135745
135909
|
// src/mcp-server/tools/servingImagesRegister.ts
|
|
135746
|
-
var
|
|
135910
|
+
var args304, tool$servingImagesRegister;
|
|
135747
135911
|
var init_servingImagesRegister2 = __esm(() => {
|
|
135748
135912
|
init_servingImagesRegister();
|
|
135749
135913
|
init_operations();
|
|
135750
135914
|
init_tools();
|
|
135751
|
-
|
|
135915
|
+
args304 = {
|
|
135752
135916
|
request: RegisterImageRequest$inboundSchema
|
|
135753
135917
|
};
|
|
135754
135918
|
tool$servingImagesRegister = {
|
|
@@ -135756,9 +135920,9 @@ var init_servingImagesRegister2 = __esm(() => {
|
|
|
135756
135920
|
description: `Register a container image
|
|
135757
135921
|
|
|
135758
135922
|
Register a container image by reference so it can back a BYO deployment or a recipe. (Data upload and build-with-weight-baking are future additions.)`,
|
|
135759
|
-
args:
|
|
135760
|
-
tool: async (client,
|
|
135761
|
-
const [result, apiCall] = await servingImagesRegister(client,
|
|
135923
|
+
args: args304,
|
|
135924
|
+
tool: async (client, args305, ctx) => {
|
|
135925
|
+
const [result, apiCall] = await servingImagesRegister(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135762
135926
|
if (!result.ok) {
|
|
135763
135927
|
return {
|
|
135764
135928
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135773,9 +135937,9 @@ Register a container image by reference so it can back a BYO deployment or a rec
|
|
|
135773
135937
|
|
|
135774
135938
|
// src/funcs/servingModelsDelete.ts
|
|
135775
135939
|
function servingModelsDelete(client, request, options) {
|
|
135776
|
-
return new APIPromise($
|
|
135940
|
+
return new APIPromise($do314(client, request, options));
|
|
135777
135941
|
}
|
|
135778
|
-
async function $
|
|
135942
|
+
async function $do314(client, request, options) {
|
|
135779
135943
|
const parsed = safeParse4(request, (value) => DeleteModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135780
135944
|
if (!parsed.ok) {
|
|
135781
135945
|
return [parsed, { status: "invalid" }];
|
|
@@ -135863,12 +136027,12 @@ var init_servingModelsDelete = __esm(() => {
|
|
|
135863
136027
|
});
|
|
135864
136028
|
|
|
135865
136029
|
// src/mcp-server/tools/servingModelsDelete.ts
|
|
135866
|
-
var
|
|
136030
|
+
var args305, tool$servingModelsDelete;
|
|
135867
136031
|
var init_servingModelsDelete2 = __esm(() => {
|
|
135868
136032
|
init_servingModelsDelete();
|
|
135869
136033
|
init_operations();
|
|
135870
136034
|
init_tools();
|
|
135871
|
-
|
|
136035
|
+
args305 = {
|
|
135872
136036
|
request: DeleteModelRequest$inboundSchema
|
|
135873
136037
|
};
|
|
135874
136038
|
tool$servingModelsDelete = {
|
|
@@ -135876,9 +136040,9 @@ var init_servingModelsDelete2 = __esm(() => {
|
|
|
135876
136040
|
description: `Deregister a model
|
|
135877
136041
|
|
|
135878
136042
|
Deregister a model from the catalog.`,
|
|
135879
|
-
args:
|
|
135880
|
-
tool: async (client,
|
|
135881
|
-
const [result, apiCall] = await servingModelsDelete(client,
|
|
136043
|
+
args: args305,
|
|
136044
|
+
tool: async (client, args306, ctx) => {
|
|
136045
|
+
const [result, apiCall] = await servingModelsDelete(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135882
136046
|
if (!result.ok) {
|
|
135883
136047
|
return {
|
|
135884
136048
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135892,9 +136056,9 @@ Deregister a model from the catalog.`,
|
|
|
135892
136056
|
|
|
135893
136057
|
// src/funcs/servingModelsGet.ts
|
|
135894
136058
|
function servingModelsGet(client, request, options) {
|
|
135895
|
-
return new APIPromise($
|
|
136059
|
+
return new APIPromise($do315(client, request, options));
|
|
135896
136060
|
}
|
|
135897
|
-
async function $
|
|
136061
|
+
async function $do315(client, request, options) {
|
|
135898
136062
|
const parsed = safeParse4(request, (value) => GetServingModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135899
136063
|
if (!parsed.ok) {
|
|
135900
136064
|
return [parsed, { status: "invalid" }];
|
|
@@ -135982,12 +136146,12 @@ var init_servingModelsGet = __esm(() => {
|
|
|
135982
136146
|
});
|
|
135983
136147
|
|
|
135984
136148
|
// src/mcp-server/tools/servingModelsGet.ts
|
|
135985
|
-
var
|
|
136149
|
+
var args306, tool$servingModelsGet;
|
|
135986
136150
|
var init_servingModelsGet2 = __esm(() => {
|
|
135987
136151
|
init_servingModelsGet();
|
|
135988
136152
|
init_operations();
|
|
135989
136153
|
init_tools();
|
|
135990
|
-
|
|
136154
|
+
args306 = {
|
|
135991
136155
|
request: GetServingModelRequest$inboundSchema
|
|
135992
136156
|
};
|
|
135993
136157
|
tool$servingModelsGet = {
|
|
@@ -135995,9 +136159,9 @@ var init_servingModelsGet2 = __esm(() => {
|
|
|
135995
136159
|
description: `Get a model
|
|
135996
136160
|
|
|
135997
136161
|
Retrieve a registered model.`,
|
|
135998
|
-
args:
|
|
135999
|
-
tool: async (client,
|
|
136000
|
-
const [result, apiCall] = await servingModelsGet(client,
|
|
136162
|
+
args: args306,
|
|
136163
|
+
tool: async (client, args307, ctx) => {
|
|
136164
|
+
const [result, apiCall] = await servingModelsGet(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136001
136165
|
if (!result.ok) {
|
|
136002
136166
|
return {
|
|
136003
136167
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136012,9 +136176,9 @@ Retrieve a registered model.`,
|
|
|
136012
136176
|
|
|
136013
136177
|
// src/funcs/servingModelsList.ts
|
|
136014
136178
|
function servingModelsList(client, request, options) {
|
|
136015
|
-
return new APIPromise($
|
|
136179
|
+
return new APIPromise($do316(client, request, options));
|
|
136016
136180
|
}
|
|
136017
|
-
async function $
|
|
136181
|
+
async function $do316(client, request, options) {
|
|
136018
136182
|
const parsed = safeParse4(request, (value) => ListServingModelsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136019
136183
|
if (!parsed.ok) {
|
|
136020
136184
|
return [parsed, { status: "invalid" }];
|
|
@@ -136101,12 +136265,12 @@ var init_servingModelsList = __esm(() => {
|
|
|
136101
136265
|
});
|
|
136102
136266
|
|
|
136103
136267
|
// src/mcp-server/tools/servingModelsList.ts
|
|
136104
|
-
var
|
|
136268
|
+
var args307, tool$servingModelsList;
|
|
136105
136269
|
var init_servingModelsList2 = __esm(() => {
|
|
136106
136270
|
init_servingModelsList();
|
|
136107
136271
|
init_operations();
|
|
136108
136272
|
init_tools();
|
|
136109
|
-
|
|
136273
|
+
args307 = {
|
|
136110
136274
|
request: ListServingModelsRequest$inboundSchema
|
|
136111
136275
|
};
|
|
136112
136276
|
tool$servingModelsList = {
|
|
@@ -136114,9 +136278,9 @@ var init_servingModelsList2 = __esm(() => {
|
|
|
136114
136278
|
description: `List models
|
|
136115
136279
|
|
|
136116
136280
|
List your registered models.`,
|
|
136117
|
-
args:
|
|
136118
|
-
tool: async (client,
|
|
136119
|
-
const [result, apiCall] = await servingModelsList(client,
|
|
136281
|
+
args: args307,
|
|
136282
|
+
tool: async (client, args308, ctx) => {
|
|
136283
|
+
const [result, apiCall] = await servingModelsList(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136120
136284
|
if (!result.ok) {
|
|
136121
136285
|
return {
|
|
136122
136286
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136131,9 +136295,9 @@ List your registered models.`,
|
|
|
136131
136295
|
|
|
136132
136296
|
// src/funcs/servingModelsRegister.ts
|
|
136133
136297
|
function servingModelsRegister(client, request, options) {
|
|
136134
|
-
return new APIPromise($
|
|
136298
|
+
return new APIPromise($do317(client, request, options));
|
|
136135
136299
|
}
|
|
136136
|
-
async function $
|
|
136300
|
+
async function $do317(client, request, options) {
|
|
136137
136301
|
const parsed = safeParse4(request, (value) => RegisterModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136138
136302
|
if (!parsed.ok) {
|
|
136139
136303
|
return [parsed, { status: "invalid" }];
|
|
@@ -136216,12 +136380,12 @@ var init_servingModelsRegister = __esm(() => {
|
|
|
136216
136380
|
});
|
|
136217
136381
|
|
|
136218
136382
|
// src/mcp-server/tools/servingModelsRegister.ts
|
|
136219
|
-
var
|
|
136383
|
+
var args308, tool$servingModelsRegister;
|
|
136220
136384
|
var init_servingModelsRegister2 = __esm(() => {
|
|
136221
136385
|
init_servingModelsRegister();
|
|
136222
136386
|
init_operations();
|
|
136223
136387
|
init_tools();
|
|
136224
|
-
|
|
136388
|
+
args308 = {
|
|
136225
136389
|
request: RegisterModelRequest$inboundSchema
|
|
136226
136390
|
};
|
|
136227
136391
|
tool$servingModelsRegister = {
|
|
@@ -136229,9 +136393,9 @@ var init_servingModelsRegister2 = __esm(() => {
|
|
|
136229
136393
|
description: `Register a model
|
|
136230
136394
|
|
|
136231
136395
|
Register a model (from a source or volume) so it can be deployed or fine-tuned.`,
|
|
136232
|
-
args:
|
|
136233
|
-
tool: async (client,
|
|
136234
|
-
const [result, apiCall] = await servingModelsRegister(client,
|
|
136396
|
+
args: args308,
|
|
136397
|
+
tool: async (client, args309, ctx) => {
|
|
136398
|
+
const [result, apiCall] = await servingModelsRegister(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136235
136399
|
if (!result.ok) {
|
|
136236
136400
|
return {
|
|
136237
136401
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136246,9 +136410,9 @@ Register a model (from a source or volume) so it can be deployed or fine-tuned.`
|
|
|
136246
136410
|
|
|
136247
136411
|
// src/funcs/servingRecipesDelete.ts
|
|
136248
136412
|
function servingRecipesDelete(client, request, options) {
|
|
136249
|
-
return new APIPromise($
|
|
136413
|
+
return new APIPromise($do318(client, request, options));
|
|
136250
136414
|
}
|
|
136251
|
-
async function $
|
|
136415
|
+
async function $do318(client, request, options) {
|
|
136252
136416
|
const parsed = safeParse4(request, (value) => DeleteServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136253
136417
|
if (!parsed.ok) {
|
|
136254
136418
|
return [parsed, { status: "invalid" }];
|
|
@@ -136336,12 +136500,12 @@ var init_servingRecipesDelete = __esm(() => {
|
|
|
136336
136500
|
});
|
|
136337
136501
|
|
|
136338
136502
|
// src/mcp-server/tools/servingRecipesDelete.ts
|
|
136339
|
-
var
|
|
136503
|
+
var args309, tool$servingRecipesDelete;
|
|
136340
136504
|
var init_servingRecipesDelete2 = __esm(() => {
|
|
136341
136505
|
init_servingRecipesDelete();
|
|
136342
136506
|
init_operations();
|
|
136343
136507
|
init_tools();
|
|
136344
|
-
|
|
136508
|
+
args309 = {
|
|
136345
136509
|
request: DeleteServingRecipeRequest$inboundSchema
|
|
136346
136510
|
};
|
|
136347
136511
|
tool$servingRecipesDelete = {
|
|
@@ -136349,9 +136513,9 @@ var init_servingRecipesDelete2 = __esm(() => {
|
|
|
136349
136513
|
description: `Delete a serving recipe
|
|
136350
136514
|
|
|
136351
136515
|
Remove a recipe from the catalog. Rejected while any live deployment's active revision references the recipe. Cluster administrators only.`,
|
|
136352
|
-
args:
|
|
136353
|
-
tool: async (client,
|
|
136354
|
-
const [result, apiCall] = await servingRecipesDelete(client,
|
|
136516
|
+
args: args309,
|
|
136517
|
+
tool: async (client, args310, ctx) => {
|
|
136518
|
+
const [result, apiCall] = await servingRecipesDelete(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136355
136519
|
if (!result.ok) {
|
|
136356
136520
|
return {
|
|
136357
136521
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136365,9 +136529,9 @@ Remove a recipe from the catalog. Rejected while any live deployment's active re
|
|
|
136365
136529
|
|
|
136366
136530
|
// src/funcs/servingRecipesGet.ts
|
|
136367
136531
|
function servingRecipesGet(client, request, options) {
|
|
136368
|
-
return new APIPromise($
|
|
136532
|
+
return new APIPromise($do319(client, request, options));
|
|
136369
136533
|
}
|
|
136370
|
-
async function $
|
|
136534
|
+
async function $do319(client, request, options) {
|
|
136371
136535
|
const parsed = safeParse4(request, (value) => GetServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136372
136536
|
if (!parsed.ok) {
|
|
136373
136537
|
return [parsed, { status: "invalid" }];
|
|
@@ -136455,12 +136619,12 @@ var init_servingRecipesGet = __esm(() => {
|
|
|
136455
136619
|
});
|
|
136456
136620
|
|
|
136457
136621
|
// src/mcp-server/tools/servingRecipesGet.ts
|
|
136458
|
-
var
|
|
136622
|
+
var args310, tool$servingRecipesGet;
|
|
136459
136623
|
var init_servingRecipesGet2 = __esm(() => {
|
|
136460
136624
|
init_servingRecipesGet();
|
|
136461
136625
|
init_operations();
|
|
136462
136626
|
init_tools();
|
|
136463
|
-
|
|
136627
|
+
args310 = {
|
|
136464
136628
|
request: GetServingRecipeRequest$inboundSchema
|
|
136465
136629
|
};
|
|
136466
136630
|
tool$servingRecipesGet = {
|
|
@@ -136468,9 +136632,9 @@ var init_servingRecipesGet2 = __esm(() => {
|
|
|
136468
136632
|
description: `Get a serving recipe
|
|
136469
136633
|
|
|
136470
136634
|
Get one recipe catalog record. Tenants can read enabled recipes; disabled recipes are visible to cluster administrators only.`,
|
|
136471
|
-
args:
|
|
136472
|
-
tool: async (client,
|
|
136473
|
-
const [result, apiCall] = await servingRecipesGet(client,
|
|
136635
|
+
args: args310,
|
|
136636
|
+
tool: async (client, args311, ctx) => {
|
|
136637
|
+
const [result, apiCall] = await servingRecipesGet(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136474
136638
|
if (!result.ok) {
|
|
136475
136639
|
return {
|
|
136476
136640
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136485,9 +136649,9 @@ Get one recipe catalog record. Tenants can read enabled recipes; disabled recipe
|
|
|
136485
136649
|
|
|
136486
136650
|
// src/funcs/servingRecipesList.ts
|
|
136487
136651
|
function servingRecipesList(client, request, options) {
|
|
136488
|
-
return new APIPromise($
|
|
136652
|
+
return new APIPromise($do320(client, request, options));
|
|
136489
136653
|
}
|
|
136490
|
-
async function $
|
|
136654
|
+
async function $do320(client, request, options) {
|
|
136491
136655
|
const parsed = safeParse4(request, (value) => ListServingRecipesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136492
136656
|
if (!parsed.ok) {
|
|
136493
136657
|
return [parsed, { status: "invalid" }];
|
|
@@ -136574,12 +136738,12 @@ var init_servingRecipesList = __esm(() => {
|
|
|
136574
136738
|
});
|
|
136575
136739
|
|
|
136576
136740
|
// src/mcp-server/tools/servingRecipesList.ts
|
|
136577
|
-
var
|
|
136741
|
+
var args311, tool$servingRecipesList;
|
|
136578
136742
|
var init_servingRecipesList2 = __esm(() => {
|
|
136579
136743
|
init_servingRecipesList();
|
|
136580
136744
|
init_operations();
|
|
136581
136745
|
init_tools();
|
|
136582
|
-
|
|
136746
|
+
args311 = {
|
|
136583
136747
|
request: ListServingRecipesRequest$inboundSchema
|
|
136584
136748
|
};
|
|
136585
136749
|
tool$servingRecipesList = {
|
|
@@ -136587,9 +136751,9 @@ var init_servingRecipesList2 = __esm(() => {
|
|
|
136587
136751
|
description: `List serving recipes
|
|
136588
136752
|
|
|
136589
136753
|
List the cluster-global serving recipe catalog. Tenants see only enabled (deployable) recipes; cluster administrators see every registered recipe including disabled ones.`,
|
|
136590
|
-
args:
|
|
136591
|
-
tool: async (client,
|
|
136592
|
-
const [result, apiCall] = await servingRecipesList(client,
|
|
136754
|
+
args: args311,
|
|
136755
|
+
tool: async (client, args312, ctx) => {
|
|
136756
|
+
const [result, apiCall] = await servingRecipesList(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136593
136757
|
if (!result.ok) {
|
|
136594
136758
|
return {
|
|
136595
136759
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136604,9 +136768,9 @@ List the cluster-global serving recipe catalog. Tenants see only enabled (deploy
|
|
|
136604
136768
|
|
|
136605
136769
|
// src/funcs/servingRecipesRegister.ts
|
|
136606
136770
|
function servingRecipesRegister(client, request, options) {
|
|
136607
|
-
return new APIPromise($
|
|
136771
|
+
return new APIPromise($do321(client, request, options));
|
|
136608
136772
|
}
|
|
136609
|
-
async function $
|
|
136773
|
+
async function $do321(client, request, options) {
|
|
136610
136774
|
const parsed = safeParse4(request, (value) => RegisterServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136611
136775
|
if (!parsed.ok) {
|
|
136612
136776
|
return [parsed, { status: "invalid" }];
|
|
@@ -136697,12 +136861,12 @@ var init_servingRecipesRegister = __esm(() => {
|
|
|
136697
136861
|
});
|
|
136698
136862
|
|
|
136699
136863
|
// src/mcp-server/tools/servingRecipesRegister.ts
|
|
136700
|
-
var
|
|
136864
|
+
var args312, tool$servingRecipesRegister;
|
|
136701
136865
|
var init_servingRecipesRegister2 = __esm(() => {
|
|
136702
136866
|
init_servingRecipesRegister();
|
|
136703
136867
|
init_operations();
|
|
136704
136868
|
init_tools();
|
|
136705
|
-
|
|
136869
|
+
args312 = {
|
|
136706
136870
|
request: RegisterServingRecipeRequest$inboundSchema
|
|
136707
136871
|
};
|
|
136708
136872
|
tool$servingRecipesRegister = {
|
|
@@ -136710,9 +136874,9 @@ var init_servingRecipesRegister2 = __esm(() => {
|
|
|
136710
136874
|
description: `Register a serving recipe
|
|
136711
136875
|
|
|
136712
136876
|
Register (or re-register) a digest-pinned recipe manifest in the catalog. A new recipe registers disabled; re-registration replaces the manifest and preserves enablement. Cluster administrators only.`,
|
|
136713
|
-
args:
|
|
136714
|
-
tool: async (client,
|
|
136715
|
-
const [result, apiCall] = await servingRecipesRegister(client,
|
|
136877
|
+
args: args312,
|
|
136878
|
+
tool: async (client, args313, ctx) => {
|
|
136879
|
+
const [result, apiCall] = await servingRecipesRegister(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136716
136880
|
if (!result.ok) {
|
|
136717
136881
|
return {
|
|
136718
136882
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136727,9 +136891,9 @@ Register (or re-register) a digest-pinned recipe manifest in the catalog. A new
|
|
|
136727
136891
|
|
|
136728
136892
|
// src/funcs/servingRecipesSetEnabled.ts
|
|
136729
136893
|
function servingRecipesSetEnabled(client, request, options) {
|
|
136730
|
-
return new APIPromise($
|
|
136894
|
+
return new APIPromise($do322(client, request, options));
|
|
136731
136895
|
}
|
|
136732
|
-
async function $
|
|
136896
|
+
async function $do322(client, request, options) {
|
|
136733
136897
|
const parsed = safeParse4(request, (value) => SetServingRecipeEnabledRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136734
136898
|
if (!parsed.ok) {
|
|
136735
136899
|
return [parsed, { status: "invalid" }];
|
|
@@ -136820,12 +136984,12 @@ var init_servingRecipesSetEnabled = __esm(() => {
|
|
|
136820
136984
|
});
|
|
136821
136985
|
|
|
136822
136986
|
// src/mcp-server/tools/servingRecipesSetEnabled.ts
|
|
136823
|
-
var
|
|
136987
|
+
var args313, tool$servingRecipesSetEnabled;
|
|
136824
136988
|
var init_servingRecipesSetEnabled2 = __esm(() => {
|
|
136825
136989
|
init_servingRecipesSetEnabled();
|
|
136826
136990
|
init_operations();
|
|
136827
136991
|
init_tools();
|
|
136828
|
-
|
|
136992
|
+
args313 = {
|
|
136829
136993
|
request: SetServingRecipeEnabledRequest$inboundSchema
|
|
136830
136994
|
};
|
|
136831
136995
|
tool$servingRecipesSetEnabled = {
|
|
@@ -136833,9 +136997,9 @@ var init_servingRecipesSetEnabled2 = __esm(() => {
|
|
|
136833
136997
|
description: `Enable or disable a serving recipe
|
|
136834
136998
|
|
|
136835
136999
|
Toggle cluster-wide deployability of a registered recipe. Disabling does not stop deployments already running the recipe. Cluster administrators only.`,
|
|
136836
|
-
args:
|
|
136837
|
-
tool: async (client,
|
|
136838
|
-
const [result, apiCall] = await servingRecipesSetEnabled(client,
|
|
137000
|
+
args: args313,
|
|
137001
|
+
tool: async (client, args314, ctx) => {
|
|
137002
|
+
const [result, apiCall] = await servingRecipesSetEnabled(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136839
137003
|
if (!result.ok) {
|
|
136840
137004
|
return {
|
|
136841
137005
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136850,9 +137014,9 @@ Toggle cluster-wide deployability of a registered recipe. Disabling does not sto
|
|
|
136850
137014
|
|
|
136851
137015
|
// src/funcs/servingSecretsCreate.ts
|
|
136852
137016
|
function servingSecretsCreate(client, request, options) {
|
|
136853
|
-
return new APIPromise($
|
|
137017
|
+
return new APIPromise($do323(client, request, options));
|
|
136854
137018
|
}
|
|
136855
|
-
async function $
|
|
137019
|
+
async function $do323(client, request, options) {
|
|
136856
137020
|
const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136857
137021
|
if (!parsed.ok) {
|
|
136858
137022
|
return [parsed, { status: "invalid" }];
|
|
@@ -136935,12 +137099,12 @@ var init_servingSecretsCreate = __esm(() => {
|
|
|
136935
137099
|
});
|
|
136936
137100
|
|
|
136937
137101
|
// src/mcp-server/tools/servingSecretsCreate.ts
|
|
136938
|
-
var
|
|
137102
|
+
var args314, tool$servingSecretsCreate;
|
|
136939
137103
|
var init_servingSecretsCreate2 = __esm(() => {
|
|
136940
137104
|
init_servingSecretsCreate();
|
|
136941
137105
|
init_operations();
|
|
136942
137106
|
init_tools();
|
|
136943
|
-
|
|
137107
|
+
args314 = {
|
|
136944
137108
|
request: CreateSecretRequest$inboundSchema
|
|
136945
137109
|
};
|
|
136946
137110
|
tool$servingSecretsCreate = {
|
|
@@ -136948,9 +137112,9 @@ var init_servingSecretsCreate2 = __esm(() => {
|
|
|
136948
137112
|
description: `Create a secret
|
|
136949
137113
|
|
|
136950
137114
|
Create a secret whose values are injected into your workloads as env vars.`,
|
|
136951
|
-
args:
|
|
136952
|
-
tool: async (client,
|
|
136953
|
-
const [result, apiCall] = await servingSecretsCreate(client,
|
|
137115
|
+
args: args314,
|
|
137116
|
+
tool: async (client, args315, ctx) => {
|
|
137117
|
+
const [result, apiCall] = await servingSecretsCreate(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136954
137118
|
if (!result.ok) {
|
|
136955
137119
|
return {
|
|
136956
137120
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136965,9 +137129,9 @@ Create a secret whose values are injected into your workloads as env vars.`,
|
|
|
136965
137129
|
|
|
136966
137130
|
// src/funcs/servingSecretsDelete.ts
|
|
136967
137131
|
function servingSecretsDelete(client, request, options) {
|
|
136968
|
-
return new APIPromise($
|
|
137132
|
+
return new APIPromise($do324(client, request, options));
|
|
136969
137133
|
}
|
|
136970
|
-
async function $
|
|
137134
|
+
async function $do324(client, request, options) {
|
|
136971
137135
|
const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136972
137136
|
if (!parsed.ok) {
|
|
136973
137137
|
return [parsed, { status: "invalid" }];
|
|
@@ -137055,12 +137219,12 @@ var init_servingSecretsDelete = __esm(() => {
|
|
|
137055
137219
|
});
|
|
137056
137220
|
|
|
137057
137221
|
// src/mcp-server/tools/servingSecretsDelete.ts
|
|
137058
|
-
var
|
|
137222
|
+
var args315, tool$servingSecretsDelete;
|
|
137059
137223
|
var init_servingSecretsDelete2 = __esm(() => {
|
|
137060
137224
|
init_servingSecretsDelete();
|
|
137061
137225
|
init_operations();
|
|
137062
137226
|
init_tools();
|
|
137063
|
-
|
|
137227
|
+
args315 = {
|
|
137064
137228
|
request: DeleteSecretRequest$inboundSchema
|
|
137065
137229
|
};
|
|
137066
137230
|
tool$servingSecretsDelete = {
|
|
@@ -137068,9 +137232,9 @@ var init_servingSecretsDelete2 = __esm(() => {
|
|
|
137068
137232
|
description: `Delete a secret
|
|
137069
137233
|
|
|
137070
137234
|
Delete a secret.`,
|
|
137071
|
-
args:
|
|
137072
|
-
tool: async (client,
|
|
137073
|
-
const [result, apiCall] = await servingSecretsDelete(client,
|
|
137235
|
+
args: args315,
|
|
137236
|
+
tool: async (client, args316, ctx) => {
|
|
137237
|
+
const [result, apiCall] = await servingSecretsDelete(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137074
137238
|
if (!result.ok) {
|
|
137075
137239
|
return {
|
|
137076
137240
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137084,9 +137248,9 @@ Delete a secret.`,
|
|
|
137084
137248
|
|
|
137085
137249
|
// src/funcs/servingSecretsList.ts
|
|
137086
137250
|
function servingSecretsList(client, request, options) {
|
|
137087
|
-
return new APIPromise($
|
|
137251
|
+
return new APIPromise($do325(client, request, options));
|
|
137088
137252
|
}
|
|
137089
|
-
async function $
|
|
137253
|
+
async function $do325(client, request, options) {
|
|
137090
137254
|
const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137091
137255
|
if (!parsed.ok) {
|
|
137092
137256
|
return [parsed, { status: "invalid" }];
|
|
@@ -137173,12 +137337,12 @@ var init_servingSecretsList = __esm(() => {
|
|
|
137173
137337
|
});
|
|
137174
137338
|
|
|
137175
137339
|
// src/mcp-server/tools/servingSecretsList.ts
|
|
137176
|
-
var
|
|
137340
|
+
var args316, tool$servingSecretsList;
|
|
137177
137341
|
var init_servingSecretsList2 = __esm(() => {
|
|
137178
137342
|
init_servingSecretsList();
|
|
137179
137343
|
init_operations();
|
|
137180
137344
|
init_tools();
|
|
137181
|
-
|
|
137345
|
+
args316 = {
|
|
137182
137346
|
request: ListSecretsRequest$inboundSchema
|
|
137183
137347
|
};
|
|
137184
137348
|
tool$servingSecretsList = {
|
|
@@ -137186,9 +137350,9 @@ var init_servingSecretsList2 = __esm(() => {
|
|
|
137186
137350
|
description: `List secrets (names only)
|
|
137187
137351
|
|
|
137188
137352
|
List your secrets by name (values are never returned).`,
|
|
137189
|
-
args:
|
|
137190
|
-
tool: async (client,
|
|
137191
|
-
const [result, apiCall] = await servingSecretsList(client,
|
|
137353
|
+
args: args316,
|
|
137354
|
+
tool: async (client, args317, ctx) => {
|
|
137355
|
+
const [result, apiCall] = await servingSecretsList(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137192
137356
|
if (!result.ok) {
|
|
137193
137357
|
return {
|
|
137194
137358
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137203,9 +137367,9 @@ List your secrets by name (values are never returned).`,
|
|
|
137203
137367
|
|
|
137204
137368
|
// src/funcs/servingTenantsDeleteOrganization.ts
|
|
137205
137369
|
function servingTenantsDeleteOrganization(client, request, options) {
|
|
137206
|
-
return new APIPromise($
|
|
137370
|
+
return new APIPromise($do326(client, request, options));
|
|
137207
137371
|
}
|
|
137208
|
-
async function $
|
|
137372
|
+
async function $do326(client, request, options) {
|
|
137209
137373
|
const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137210
137374
|
if (!parsed.ok) {
|
|
137211
137375
|
return [parsed, { status: "invalid" }];
|
|
@@ -137296,12 +137460,12 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
|
|
|
137296
137460
|
});
|
|
137297
137461
|
|
|
137298
137462
|
// src/mcp-server/tools/servingTenantsDeleteOrganization.ts
|
|
137299
|
-
var
|
|
137463
|
+
var args317, tool$servingTenantsDeleteOrganization;
|
|
137300
137464
|
var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
137301
137465
|
init_servingTenantsDeleteOrganization();
|
|
137302
137466
|
init_operations();
|
|
137303
137467
|
init_tools();
|
|
137304
|
-
|
|
137468
|
+
args317 = {
|
|
137305
137469
|
request: DeleteServingOrganizationRequest$inboundSchema
|
|
137306
137470
|
};
|
|
137307
137471
|
tool$servingTenantsDeleteOrganization = {
|
|
@@ -137309,9 +137473,9 @@ var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
|
137309
137473
|
description: `Trigger organization deletion teardown
|
|
137310
137474
|
|
|
137311
137475
|
Durably records an organization.deleted.v1 event and starts (or adopts) the mandatory teardown cascade: the organization is fenced against new work and every deployment is tombstoned and wound down, while all pricing, budget, spend, and usage records are preserved. Idempotent by event id. Cluster administrators only.`,
|
|
137312
|
-
args:
|
|
137313
|
-
tool: async (client,
|
|
137314
|
-
const [result, apiCall] = await servingTenantsDeleteOrganization(client,
|
|
137476
|
+
args: args317,
|
|
137477
|
+
tool: async (client, args318, ctx) => {
|
|
137478
|
+
const [result, apiCall] = await servingTenantsDeleteOrganization(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137315
137479
|
if (!result.ok) {
|
|
137316
137480
|
return {
|
|
137317
137481
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137326,9 +137490,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
|
|
|
137326
137490
|
|
|
137327
137491
|
// src/funcs/servingTenantsGet.ts
|
|
137328
137492
|
function servingTenantsGet(client, request, options) {
|
|
137329
|
-
return new APIPromise($
|
|
137493
|
+
return new APIPromise($do327(client, request, options));
|
|
137330
137494
|
}
|
|
137331
|
-
async function $
|
|
137495
|
+
async function $do327(client, request, options) {
|
|
137332
137496
|
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137333
137497
|
if (!parsed.ok) {
|
|
137334
137498
|
return [parsed, { status: "invalid" }];
|
|
@@ -137416,12 +137580,12 @@ var init_servingTenantsGet = __esm(() => {
|
|
|
137416
137580
|
});
|
|
137417
137581
|
|
|
137418
137582
|
// src/mcp-server/tools/servingTenantsGet.ts
|
|
137419
|
-
var
|
|
137583
|
+
var args318, tool$servingTenantsGet;
|
|
137420
137584
|
var init_servingTenantsGet2 = __esm(() => {
|
|
137421
137585
|
init_servingTenantsGet();
|
|
137422
137586
|
init_operations();
|
|
137423
137587
|
init_tools();
|
|
137424
|
-
|
|
137588
|
+
args318 = {
|
|
137425
137589
|
request: GetServingTenantRequest$inboundSchema
|
|
137426
137590
|
};
|
|
137427
137591
|
tool$servingTenantsGet = {
|
|
@@ -137429,9 +137593,9 @@ var init_servingTenantsGet2 = __esm(() => {
|
|
|
137429
137593
|
description: `Get a serving tenant
|
|
137430
137594
|
|
|
137431
137595
|
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
137432
|
-
args:
|
|
137433
|
-
tool: async (client,
|
|
137434
|
-
const [result, apiCall] = await servingTenantsGet(client,
|
|
137596
|
+
args: args318,
|
|
137597
|
+
tool: async (client, args319, ctx) => {
|
|
137598
|
+
const [result, apiCall] = await servingTenantsGet(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137435
137599
|
if (!result.ok) {
|
|
137436
137600
|
return {
|
|
137437
137601
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137446,9 +137610,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
|
|
|
137446
137610
|
|
|
137447
137611
|
// src/funcs/servingTenantsGetOrganizationDeletion.ts
|
|
137448
137612
|
function servingTenantsGetOrganizationDeletion(client, request, options) {
|
|
137449
|
-
return new APIPromise($
|
|
137613
|
+
return new APIPromise($do328(client, request, options));
|
|
137450
137614
|
}
|
|
137451
|
-
async function $
|
|
137615
|
+
async function $do328(client, request, options) {
|
|
137452
137616
|
const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137453
137617
|
if (!parsed.ok) {
|
|
137454
137618
|
return [parsed, { status: "invalid" }];
|
|
@@ -137536,12 +137700,12 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
|
|
|
137536
137700
|
});
|
|
137537
137701
|
|
|
137538
137702
|
// src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
|
|
137539
|
-
var
|
|
137703
|
+
var args319, tool$servingTenantsGetOrganizationDeletion;
|
|
137540
137704
|
var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
137541
137705
|
init_servingTenantsGetOrganizationDeletion();
|
|
137542
137706
|
init_operations();
|
|
137543
137707
|
init_tools();
|
|
137544
|
-
|
|
137708
|
+
args319 = {
|
|
137545
137709
|
request: GetServingOrganizationDeletionRequest$inboundSchema
|
|
137546
137710
|
};
|
|
137547
137711
|
tool$servingTenantsGetOrganizationDeletion = {
|
|
@@ -137549,9 +137713,9 @@ var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
|
137549
137713
|
description: `Get organization deletion teardown state
|
|
137550
137714
|
|
|
137551
137715
|
Returns the durable teardown-cascade state for an organization (running or complete), so a cluster administrator can confirm offboarding progressed to completion. 404 if the organization has no teardown. Cluster administrators only.`,
|
|
137552
|
-
args:
|
|
137553
|
-
tool: async (client,
|
|
137554
|
-
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client,
|
|
137716
|
+
args: args319,
|
|
137717
|
+
tool: async (client, args320, ctx) => {
|
|
137718
|
+
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137555
137719
|
if (!result.ok) {
|
|
137556
137720
|
return {
|
|
137557
137721
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137566,9 +137730,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
|
|
|
137566
137730
|
|
|
137567
137731
|
// src/funcs/servingTenantsList.ts
|
|
137568
137732
|
function servingTenantsList(client, request, options) {
|
|
137569
|
-
return new APIPromise($
|
|
137733
|
+
return new APIPromise($do329(client, request, options));
|
|
137570
137734
|
}
|
|
137571
|
-
async function $
|
|
137735
|
+
async function $do329(client, request, options) {
|
|
137572
137736
|
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137573
137737
|
if (!parsed.ok) {
|
|
137574
137738
|
return [parsed, { status: "invalid" }];
|
|
@@ -137655,12 +137819,12 @@ var init_servingTenantsList = __esm(() => {
|
|
|
137655
137819
|
});
|
|
137656
137820
|
|
|
137657
137821
|
// src/mcp-server/tools/servingTenantsList.ts
|
|
137658
|
-
var
|
|
137822
|
+
var args320, tool$servingTenantsList;
|
|
137659
137823
|
var init_servingTenantsList2 = __esm(() => {
|
|
137660
137824
|
init_servingTenantsList();
|
|
137661
137825
|
init_operations();
|
|
137662
137826
|
init_tools();
|
|
137663
|
-
|
|
137827
|
+
args320 = {
|
|
137664
137828
|
request: ListServingTenantsRequest$inboundSchema
|
|
137665
137829
|
};
|
|
137666
137830
|
tool$servingTenantsList = {
|
|
@@ -137668,9 +137832,9 @@ var init_servingTenantsList2 = __esm(() => {
|
|
|
137668
137832
|
description: `List serving tenants
|
|
137669
137833
|
|
|
137670
137834
|
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
137671
|
-
args:
|
|
137672
|
-
tool: async (client,
|
|
137673
|
-
const [result, apiCall] = await servingTenantsList(client,
|
|
137835
|
+
args: args320,
|
|
137836
|
+
tool: async (client, args321, ctx) => {
|
|
137837
|
+
const [result, apiCall] = await servingTenantsList(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137674
137838
|
if (!result.ok) {
|
|
137675
137839
|
return {
|
|
137676
137840
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137685,9 +137849,9 @@ List organization-wide serving enablement records. Cluster administrators only;
|
|
|
137685
137849
|
|
|
137686
137850
|
// src/funcs/servingTenantsSet.ts
|
|
137687
137851
|
function servingTenantsSet(client, request, options) {
|
|
137688
|
-
return new APIPromise($
|
|
137852
|
+
return new APIPromise($do330(client, request, options));
|
|
137689
137853
|
}
|
|
137690
|
-
async function $
|
|
137854
|
+
async function $do330(client, request, options) {
|
|
137691
137855
|
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137692
137856
|
if (!parsed.ok) {
|
|
137693
137857
|
return [parsed, { status: "invalid" }];
|
|
@@ -137776,12 +137940,12 @@ var init_servingTenantsSet = __esm(() => {
|
|
|
137776
137940
|
});
|
|
137777
137941
|
|
|
137778
137942
|
// src/mcp-server/tools/servingTenantsSet.ts
|
|
137779
|
-
var
|
|
137943
|
+
var args321, tool$servingTenantsSet;
|
|
137780
137944
|
var init_servingTenantsSet2 = __esm(() => {
|
|
137781
137945
|
init_servingTenantsSet();
|
|
137782
137946
|
init_operations();
|
|
137783
137947
|
init_tools();
|
|
137784
|
-
|
|
137948
|
+
args321 = {
|
|
137785
137949
|
request: SetServingTenantRequest$inboundSchema
|
|
137786
137950
|
};
|
|
137787
137951
|
tool$servingTenantsSet = {
|
|
@@ -137789,9 +137953,9 @@ var init_servingTenantsSet2 = __esm(() => {
|
|
|
137789
137953
|
description: `Set serving tenant enablement
|
|
137790
137954
|
|
|
137791
137955
|
Enable or disable serving for an organization and all of its teams. Disabling blocks product API access but does not stop existing workloads or callbacks. Cluster administrators only.`,
|
|
137792
|
-
args:
|
|
137793
|
-
tool: async (client,
|
|
137794
|
-
const [result, apiCall] = await servingTenantsSet(client,
|
|
137956
|
+
args: args321,
|
|
137957
|
+
tool: async (client, args322, ctx) => {
|
|
137958
|
+
const [result, apiCall] = await servingTenantsSet(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137795
137959
|
if (!result.ok) {
|
|
137796
137960
|
return {
|
|
137797
137961
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137806,9 +137970,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
|
|
|
137806
137970
|
|
|
137807
137971
|
// src/funcs/servingVolumesCreate.ts
|
|
137808
137972
|
function servingVolumesCreate(client, request, options) {
|
|
137809
|
-
return new APIPromise($
|
|
137973
|
+
return new APIPromise($do331(client, request, options));
|
|
137810
137974
|
}
|
|
137811
|
-
async function $
|
|
137975
|
+
async function $do331(client, request, options) {
|
|
137812
137976
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137813
137977
|
if (!parsed.ok) {
|
|
137814
137978
|
return [parsed, { status: "invalid" }];
|
|
@@ -137891,12 +138055,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
137891
138055
|
});
|
|
137892
138056
|
|
|
137893
138057
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
137894
|
-
var
|
|
138058
|
+
var args322, tool$servingVolumesCreate;
|
|
137895
138059
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
137896
138060
|
init_servingVolumesCreate();
|
|
137897
138061
|
init_operations();
|
|
137898
138062
|
init_tools();
|
|
137899
|
-
|
|
138063
|
+
args322 = {
|
|
137900
138064
|
request: CreateVolumeRequest$inboundSchema
|
|
137901
138065
|
};
|
|
137902
138066
|
tool$servingVolumesCreate = {
|
|
@@ -137904,9 +138068,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
137904
138068
|
description: `Create a volume
|
|
137905
138069
|
|
|
137906
138070
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
137907
|
-
args:
|
|
137908
|
-
tool: async (client,
|
|
137909
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
138071
|
+
args: args322,
|
|
138072
|
+
tool: async (client, args323, ctx) => {
|
|
138073
|
+
const [result, apiCall] = await servingVolumesCreate(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137910
138074
|
if (!result.ok) {
|
|
137911
138075
|
return {
|
|
137912
138076
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137921,9 +138085,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
137921
138085
|
|
|
137922
138086
|
// src/funcs/servingVolumesDelete.ts
|
|
137923
138087
|
function servingVolumesDelete(client, request, options) {
|
|
137924
|
-
return new APIPromise($
|
|
138088
|
+
return new APIPromise($do332(client, request, options));
|
|
137925
138089
|
}
|
|
137926
|
-
async function $
|
|
138090
|
+
async function $do332(client, request, options) {
|
|
137927
138091
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137928
138092
|
if (!parsed.ok) {
|
|
137929
138093
|
return [parsed, { status: "invalid" }];
|
|
@@ -138011,12 +138175,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
138011
138175
|
});
|
|
138012
138176
|
|
|
138013
138177
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
138014
|
-
var
|
|
138178
|
+
var args323, tool$servingVolumesDelete;
|
|
138015
138179
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
138016
138180
|
init_servingVolumesDelete();
|
|
138017
138181
|
init_operations();
|
|
138018
138182
|
init_tools();
|
|
138019
|
-
|
|
138183
|
+
args323 = {
|
|
138020
138184
|
request: DeleteVolumeRequest$inboundSchema
|
|
138021
138185
|
};
|
|
138022
138186
|
tool$servingVolumesDelete = {
|
|
@@ -138024,9 +138188,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
138024
138188
|
description: `Delete a volume
|
|
138025
138189
|
|
|
138026
138190
|
Delete a volume and its contents.`,
|
|
138027
|
-
args:
|
|
138028
|
-
tool: async (client,
|
|
138029
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
138191
|
+
args: args323,
|
|
138192
|
+
tool: async (client, args324, ctx) => {
|
|
138193
|
+
const [result, apiCall] = await servingVolumesDelete(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138030
138194
|
if (!result.ok) {
|
|
138031
138195
|
return {
|
|
138032
138196
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138040,9 +138204,9 @@ Delete a volume and its contents.`,
|
|
|
138040
138204
|
|
|
138041
138205
|
// src/funcs/servingVolumesGet.ts
|
|
138042
138206
|
function servingVolumesGet(client, request, options) {
|
|
138043
|
-
return new APIPromise($
|
|
138207
|
+
return new APIPromise($do333(client, request, options));
|
|
138044
138208
|
}
|
|
138045
|
-
async function $
|
|
138209
|
+
async function $do333(client, request, options) {
|
|
138046
138210
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138047
138211
|
if (!parsed.ok) {
|
|
138048
138212
|
return [parsed, { status: "invalid" }];
|
|
@@ -138130,12 +138294,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
138130
138294
|
});
|
|
138131
138295
|
|
|
138132
138296
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
138133
|
-
var
|
|
138297
|
+
var args324, tool$servingVolumesGet;
|
|
138134
138298
|
var init_servingVolumesGet2 = __esm(() => {
|
|
138135
138299
|
init_servingVolumesGet();
|
|
138136
138300
|
init_operations();
|
|
138137
138301
|
init_tools();
|
|
138138
|
-
|
|
138302
|
+
args324 = {
|
|
138139
138303
|
request: GetVolumeRequest$inboundSchema
|
|
138140
138304
|
};
|
|
138141
138305
|
tool$servingVolumesGet = {
|
|
@@ -138143,9 +138307,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
138143
138307
|
description: `Get a volume
|
|
138144
138308
|
|
|
138145
138309
|
Retrieve a volume.`,
|
|
138146
|
-
args:
|
|
138147
|
-
tool: async (client,
|
|
138148
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
138310
|
+
args: args324,
|
|
138311
|
+
tool: async (client, args325, ctx) => {
|
|
138312
|
+
const [result, apiCall] = await servingVolumesGet(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138149
138313
|
if (!result.ok) {
|
|
138150
138314
|
return {
|
|
138151
138315
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138160,9 +138324,9 @@ Retrieve a volume.`,
|
|
|
138160
138324
|
|
|
138161
138325
|
// src/funcs/servingVolumesList.ts
|
|
138162
138326
|
function servingVolumesList(client, request, options) {
|
|
138163
|
-
return new APIPromise($
|
|
138327
|
+
return new APIPromise($do334(client, request, options));
|
|
138164
138328
|
}
|
|
138165
|
-
async function $
|
|
138329
|
+
async function $do334(client, request, options) {
|
|
138166
138330
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138167
138331
|
if (!parsed.ok) {
|
|
138168
138332
|
return [parsed, { status: "invalid" }];
|
|
@@ -138249,12 +138413,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
138249
138413
|
});
|
|
138250
138414
|
|
|
138251
138415
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
138252
|
-
var
|
|
138416
|
+
var args325, tool$servingVolumesList;
|
|
138253
138417
|
var init_servingVolumesList2 = __esm(() => {
|
|
138254
138418
|
init_servingVolumesList();
|
|
138255
138419
|
init_operations();
|
|
138256
138420
|
init_tools();
|
|
138257
|
-
|
|
138421
|
+
args325 = {
|
|
138258
138422
|
request: ListVolumesRequest$inboundSchema
|
|
138259
138423
|
};
|
|
138260
138424
|
tool$servingVolumesList = {
|
|
@@ -138262,9 +138426,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
138262
138426
|
description: `List volumes
|
|
138263
138427
|
|
|
138264
138428
|
List your volumes.`,
|
|
138265
|
-
args:
|
|
138266
|
-
tool: async (client,
|
|
138267
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
138429
|
+
args: args325,
|
|
138430
|
+
tool: async (client, args326, ctx) => {
|
|
138431
|
+
const [result, apiCall] = await servingVolumesList(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138268
138432
|
if (!result.ok) {
|
|
138269
138433
|
return {
|
|
138270
138434
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138279,9 +138443,9 @@ List your volumes.`,
|
|
|
138279
138443
|
|
|
138280
138444
|
// src/funcs/usageCosts.ts
|
|
138281
138445
|
function usageCosts(client, request, options) {
|
|
138282
|
-
return new APIPromise($
|
|
138446
|
+
return new APIPromise($do335(client, request, options));
|
|
138283
138447
|
}
|
|
138284
|
-
async function $
|
|
138448
|
+
async function $do335(client, request, options) {
|
|
138285
138449
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138286
138450
|
if (!parsed.ok) {
|
|
138287
138451
|
return [parsed, { status: "invalid" }];
|
|
@@ -138364,12 +138528,12 @@ var init_usageCosts = __esm(() => {
|
|
|
138364
138528
|
});
|
|
138365
138529
|
|
|
138366
138530
|
// src/mcp-server/tools/usageCosts.ts
|
|
138367
|
-
var
|
|
138531
|
+
var args326, tool$usageCosts;
|
|
138368
138532
|
var init_usageCosts2 = __esm(() => {
|
|
138369
138533
|
init_usageCosts();
|
|
138370
138534
|
init_operations();
|
|
138371
138535
|
init_tools();
|
|
138372
|
-
|
|
138536
|
+
args326 = {
|
|
138373
138537
|
request: GetCostsRequest$inboundSchema
|
|
138374
138538
|
};
|
|
138375
138539
|
tool$usageCosts = {
|
|
@@ -138377,9 +138541,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
138377
138541
|
description: `Aggregate cost by dimension
|
|
138378
138542
|
|
|
138379
138543
|
Sums stored per-entry cost over [start_time, end_time), grouped by any of service, task_type, model, api_key_id, team_id, user_id, external_user_id, org_id. Point-in-time correct for chargeback/showback.`,
|
|
138380
|
-
args:
|
|
138381
|
-
tool: async (client,
|
|
138382
|
-
const [result, apiCall] = await usageCosts(client,
|
|
138544
|
+
args: args326,
|
|
138545
|
+
tool: async (client, args327, ctx) => {
|
|
138546
|
+
const [result, apiCall] = await usageCosts(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138383
138547
|
if (!result.ok) {
|
|
138384
138548
|
return {
|
|
138385
138549
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138394,9 +138558,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
138394
138558
|
|
|
138395
138559
|
// src/funcs/usageSandbox.ts
|
|
138396
138560
|
function usageSandbox(client, request, options) {
|
|
138397
|
-
return new APIPromise($
|
|
138561
|
+
return new APIPromise($do336(client, request, options));
|
|
138398
138562
|
}
|
|
138399
|
-
async function $
|
|
138563
|
+
async function $do336(client, request, options) {
|
|
138400
138564
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138401
138565
|
if (!parsed.ok) {
|
|
138402
138566
|
return [parsed, { status: "invalid" }];
|
|
@@ -138487,12 +138651,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
138487
138651
|
});
|
|
138488
138652
|
|
|
138489
138653
|
// src/mcp-server/tools/usageSandbox.ts
|
|
138490
|
-
var
|
|
138654
|
+
var args327, tool$usageSandbox;
|
|
138491
138655
|
var init_usageSandbox2 = __esm(() => {
|
|
138492
138656
|
init_usageSandbox();
|
|
138493
138657
|
init_operations();
|
|
138494
138658
|
init_tools();
|
|
138495
|
-
|
|
138659
|
+
args327 = {
|
|
138496
138660
|
request: GetSandboxUsageRequest$inboundSchema
|
|
138497
138661
|
};
|
|
138498
138662
|
tool$usageSandbox = {
|
|
@@ -138500,9 +138664,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
138500
138664
|
description: `Get Sandbox Usage
|
|
138501
138665
|
|
|
138502
138666
|
Aggregate sandbox usage (session lifecycle, execution, and workspace operations) over a time range, bucketed and optionally grouped. Org-scoped: callers see their own usage, org admins their team's; cluster admins may pass \`all_orgs\` or \`org_ids\`. Cost and spend reporting lives in the budgeting API (\`/api/v1/budgeting/usage/costs\`).`,
|
|
138503
|
-
args:
|
|
138504
|
-
tool: async (client,
|
|
138505
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
138667
|
+
args: args327,
|
|
138668
|
+
tool: async (client, args328, ctx) => {
|
|
138669
|
+
const [result, apiCall] = await usageSandbox(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138506
138670
|
if (!result.ok) {
|
|
138507
138671
|
return {
|
|
138508
138672
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138519,7 +138683,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
138519
138683
|
function createMCPServer(deps) {
|
|
138520
138684
|
const server = new McpServer({
|
|
138521
138685
|
name: "SDK",
|
|
138522
|
-
version: "0.51.
|
|
138686
|
+
version: "0.51.10"
|
|
138523
138687
|
});
|
|
138524
138688
|
const client = new SDKCore({
|
|
138525
138689
|
bearerAuth: deps.bearerAuth,
|
|
@@ -138843,6 +139007,7 @@ function createMCPServer(deps) {
|
|
|
138843
139007
|
tool(tool$servingFinetuneJobsListCheckpoints);
|
|
138844
139008
|
tool(tool$servingFinetuneJobsGetEvents);
|
|
138845
139009
|
tool(tool$servingFinetuneJobsGetLogs);
|
|
139010
|
+
tool(tool$servingFinetuneJobsGetMetrics);
|
|
138846
139011
|
tool(tool$servingImagesList);
|
|
138847
139012
|
tool(tool$servingImagesRegister);
|
|
138848
139013
|
tool(tool$servingImagesDelete);
|
|
@@ -139181,6 +139346,7 @@ var init_server2 = __esm(() => {
|
|
|
139181
139346
|
init_servingFinetuneJobsGet2();
|
|
139182
139347
|
init_servingFinetuneJobsGetEvents2();
|
|
139183
139348
|
init_servingFinetuneJobsGetLogs2();
|
|
139349
|
+
init_servingFinetuneJobsGetMetrics2();
|
|
139184
139350
|
init_servingFinetuneJobsList2();
|
|
139185
139351
|
init_servingFinetuneJobsListCheckpoints2();
|
|
139186
139352
|
init_servingImagesDelete2();
|
|
@@ -140387,7 +140553,7 @@ var routes = rn({
|
|
|
140387
140553
|
var app = Ve(routes, {
|
|
140388
140554
|
name: "mcp",
|
|
140389
140555
|
versionInfo: {
|
|
140390
|
-
currentVersion: "0.51.
|
|
140556
|
+
currentVersion: "0.51.10"
|
|
140391
140557
|
}
|
|
140392
140558
|
});
|
|
140393
140559
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -140395,5 +140561,5 @@ export {
|
|
|
140395
140561
|
app
|
|
140396
140562
|
};
|
|
140397
140563
|
|
|
140398
|
-
//# debugId=
|
|
140564
|
+
//# debugId=465A21611DCC5EDC64756E2164756E21
|
|
140399
140565
|
//# sourceMappingURL=mcp-server.js.map
|