@meetkai/mka1 0.51.13 → 0.51.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/README.md +233 -227
- package/bin/mcp-server.js +528 -259
- package/bin/mcp-server.js.map +17 -9
- package/dist/commonjs/funcs/servingEligibilityPreview.d.ts +19 -0
- package/dist/commonjs/funcs/servingEligibilityPreview.d.ts.map +1 -0
- package/dist/commonjs/funcs/servingEligibilityPreview.js +133 -0
- package/dist/commonjs/funcs/servingEligibilityPreview.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +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/servingEligibilityPreview.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.js +64 -0
- package/dist/commonjs/mcp-server/tools/servingEligibilityPreview.js.map +1 -0
- package/dist/commonjs/models/components/acceleratorpriceband.d.ts +22 -0
- package/dist/commonjs/models/components/acceleratorpriceband.d.ts.map +1 -0
- package/dist/commonjs/models/components/acceleratorpriceband.js +60 -0
- package/dist/commonjs/models/components/acceleratorpriceband.js.map +1 -0
- package/dist/commonjs/models/components/acceleratortype.d.ts +22 -0
- package/dist/commonjs/models/components/acceleratortype.d.ts.map +1 -1
- package/dist/commonjs/models/components/acceleratortype.js +14 -0
- package/dist/commonjs/models/components/acceleratortype.js.map +1 -1
- package/dist/commonjs/models/components/acquirability.d.ts +20 -0
- package/dist/commonjs/models/components/acquirability.d.ts.map +1 -0
- package/dist/commonjs/models/components/acquirability.js +54 -0
- package/dist/commonjs/models/components/acquirability.js.map +1 -0
- package/dist/commonjs/models/components/eligibilitypreview.d.ts +73 -0
- package/dist/commonjs/models/components/eligibilitypreview.d.ts.map +1 -0
- package/dist/commonjs/models/components/eligibilitypreview.js +99 -0
- package/dist/commonjs/models/components/eligibilitypreview.js.map +1 -0
- package/dist/commonjs/models/components/eligibilitypriceband.d.ts +24 -0
- package/dist/commonjs/models/components/eligibilitypriceband.d.ts.map +1 -0
- package/dist/commonjs/models/components/eligibilitypriceband.js +62 -0
- package/dist/commonjs/models/components/eligibilitypriceband.js.map +1 -0
- package/dist/commonjs/models/components/eligibilityrequest.d.ts +28 -0
- package/dist/commonjs/models/components/eligibilityrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/eligibilityrequest.js +59 -0
- package/dist/commonjs/models/components/eligibilityrequest.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +5 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +5 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- 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/models/operations/previeweligibility.d.ts +23 -0
- package/dist/commonjs/models/operations/previeweligibility.d.ts.map +1 -0
- package/dist/commonjs/models/operations/previeweligibility.js +72 -0
- package/dist/commonjs/models/operations/previeweligibility.js.map +1 -0
- 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/servingEligibilityPreview.d.ts +30 -0
- package/dist/commonjs/react-query/servingEligibilityPreview.d.ts.map +1 -0
- package/dist/commonjs/react-query/servingEligibilityPreview.js +47 -0
- package/dist/commonjs/react-query/servingEligibilityPreview.js.map +1 -0
- package/dist/commonjs/sdk/eligibility.d.ts +13 -0
- package/dist/commonjs/sdk/eligibility.d.ts.map +1 -0
- package/dist/commonjs/sdk/eligibility.js +22 -0
- package/dist/commonjs/sdk/eligibility.js.map +1 -0
- package/dist/commonjs/sdk/serving.d.ts +3 -0
- package/dist/commonjs/sdk/serving.d.ts.map +1 -1
- package/dist/commonjs/sdk/serving.js +4 -0
- package/dist/commonjs/sdk/serving.js.map +1 -1
- package/dist/esm/funcs/servingEligibilityPreview.d.ts +19 -0
- package/dist/esm/funcs/servingEligibilityPreview.d.ts.map +1 -0
- package/dist/esm/funcs/servingEligibilityPreview.js +97 -0
- package/dist/esm/funcs/servingEligibilityPreview.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +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/servingEligibilityPreview.d.ts +8 -0
- package/dist/esm/mcp-server/tools/servingEligibilityPreview.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/servingEligibilityPreview.js +28 -0
- package/dist/esm/mcp-server/tools/servingEligibilityPreview.js.map +1 -0
- package/dist/esm/models/components/acceleratorpriceband.d.ts +22 -0
- package/dist/esm/models/components/acceleratorpriceband.d.ts.map +1 -0
- package/dist/esm/models/components/acceleratorpriceband.js +22 -0
- package/dist/esm/models/components/acceleratorpriceband.js.map +1 -0
- package/dist/esm/models/components/acceleratortype.d.ts +22 -0
- package/dist/esm/models/components/acceleratortype.d.ts.map +1 -1
- package/dist/esm/models/components/acceleratortype.js +14 -0
- package/dist/esm/models/components/acceleratortype.js.map +1 -1
- package/dist/esm/models/components/acquirability.d.ts +20 -0
- package/dist/esm/models/components/acquirability.d.ts.map +1 -0
- package/dist/esm/models/components/acquirability.js +18 -0
- package/dist/esm/models/components/acquirability.js.map +1 -0
- package/dist/esm/models/components/eligibilitypreview.d.ts +73 -0
- package/dist/esm/models/components/eligibilitypreview.d.ts.map +1 -0
- package/dist/esm/models/components/eligibilitypreview.js +61 -0
- package/dist/esm/models/components/eligibilitypreview.js.map +1 -0
- package/dist/esm/models/components/eligibilitypriceband.d.ts +24 -0
- package/dist/esm/models/components/eligibilitypriceband.d.ts.map +1 -0
- package/dist/esm/models/components/eligibilitypriceband.js +24 -0
- package/dist/esm/models/components/eligibilitypriceband.js.map +1 -0
- package/dist/esm/models/components/eligibilityrequest.d.ts +28 -0
- package/dist/esm/models/components/eligibilityrequest.d.ts.map +1 -0
- package/dist/esm/models/components/eligibilityrequest.js +21 -0
- package/dist/esm/models/components/eligibilityrequest.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +5 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +5 -0
- package/dist/esm/models/components/index.js.map +1 -1
- 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/models/operations/previeweligibility.d.ts +23 -0
- package/dist/esm/models/operations/previeweligibility.d.ts.map +1 -0
- package/dist/esm/models/operations/previeweligibility.js +34 -0
- package/dist/esm/models/operations/previeweligibility.js.map +1 -0
- 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/servingEligibilityPreview.d.ts +30 -0
- package/dist/esm/react-query/servingEligibilityPreview.d.ts.map +1 -0
- package/dist/esm/react-query/servingEligibilityPreview.js +42 -0
- package/dist/esm/react-query/servingEligibilityPreview.js.map +1 -0
- package/dist/esm/sdk/eligibility.d.ts +13 -0
- package/dist/esm/sdk/eligibility.d.ts.map +1 -0
- package/dist/esm/sdk/eligibility.js +18 -0
- package/dist/esm/sdk/eligibility.js.map +1 -0
- package/dist/esm/sdk/serving.d.ts +3 -0
- package/dist/esm/sdk/serving.d.ts.map +1 -1
- package/dist/esm/sdk/serving.js +4 -0
- package/dist/esm/sdk/serving.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/servingEligibilityPreview.ts +193 -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/servingEligibilityPreview.ts +37 -0
- package/src/models/components/acceleratorpriceband.ts +58 -0
- package/src/models/components/acceleratortype.ts +43 -0
- package/src/models/components/acquirability.ts +29 -0
- package/src/models/components/eligibilitypreview.ts +145 -0
- package/src/models/components/eligibilitypriceband.ts +62 -0
- package/src/models/components/eligibilityrequest.ts +67 -0
- package/src/models/components/index.ts +5 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/previeweligibility.ts +70 -0
- package/src/react-query/index.ts +1 -0
- package/src/react-query/servingEligibilityPreview.ts +113 -0
- package/src/sdk/eligibility.ts +28 -0
- package/src/sdk/serving.ts +6 -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.14",
|
|
52880
52880
|
genVersion: "2.918.4",
|
|
52881
|
-
userAgent: "speakeasy-sdk/typescript 0.51.
|
|
52881
|
+
userAgent: "speakeasy-sdk/typescript 0.51.14 2.918.4 1.1.0 @meetkai/mka1"
|
|
52882
52882
|
};
|
|
52883
52883
|
});
|
|
52884
52884
|
|
|
@@ -54484,6 +54484,20 @@ var init_security = __esm(() => {
|
|
|
54484
54484
|
};
|
|
54485
54485
|
});
|
|
54486
54486
|
|
|
54487
|
+
// src/models/components/acceleratorpriceband.ts
|
|
54488
|
+
var AcceleratorPriceBand$inboundSchema, AcceleratorPriceBand$outboundSchema;
|
|
54489
|
+
var init_acceleratorpriceband = __esm(() => {
|
|
54490
|
+
init_esm();
|
|
54491
|
+
AcceleratorPriceBand$inboundSchema = objectType({
|
|
54492
|
+
min: numberType(),
|
|
54493
|
+
p50: numberType()
|
|
54494
|
+
});
|
|
54495
|
+
AcceleratorPriceBand$outboundSchema = objectType({
|
|
54496
|
+
min: numberType(),
|
|
54497
|
+
p50: numberType()
|
|
54498
|
+
});
|
|
54499
|
+
});
|
|
54500
|
+
|
|
54487
54501
|
// src/models/components/acceleratorspec.ts
|
|
54488
54502
|
var AcceleratorSpec$inboundSchema, AcceleratorSpec$outboundSchema;
|
|
54489
54503
|
var init_acceleratorspec = __esm(() => {
|
|
@@ -54500,11 +54514,27 @@ var init_acceleratorspec = __esm(() => {
|
|
|
54500
54514
|
});
|
|
54501
54515
|
});
|
|
54502
54516
|
|
|
54517
|
+
// src/models/components/acquirability.ts
|
|
54518
|
+
var Acquirability, Acquirability$inboundSchema, Acquirability$outboundSchema;
|
|
54519
|
+
var init_acquirability = __esm(() => {
|
|
54520
|
+
init_esm();
|
|
54521
|
+
Acquirability = {
|
|
54522
|
+
High: "high",
|
|
54523
|
+
Medium: "medium",
|
|
54524
|
+
Low: "low",
|
|
54525
|
+
Unknown: "unknown"
|
|
54526
|
+
};
|
|
54527
|
+
Acquirability$inboundSchema = nativeEnumType(Acquirability);
|
|
54528
|
+
Acquirability$outboundSchema = Acquirability$inboundSchema;
|
|
54529
|
+
});
|
|
54530
|
+
|
|
54503
54531
|
// src/models/components/acceleratortype.ts
|
|
54504
54532
|
var Kind, Kind$inboundSchema, Kind$outboundSchema, AcceleratorType$inboundSchema, AcceleratorType$outboundSchema;
|
|
54505
54533
|
var init_acceleratortype = __esm(() => {
|
|
54506
54534
|
init_esm();
|
|
54507
54535
|
init_primitives();
|
|
54536
|
+
init_acceleratorpriceband();
|
|
54537
|
+
init_acquirability();
|
|
54508
54538
|
Kind = {
|
|
54509
54539
|
Gpu: "gpu",
|
|
54510
54540
|
Npu: "npu",
|
|
@@ -54514,27 +54544,39 @@ var init_acceleratortype = __esm(() => {
|
|
|
54514
54544
|
Kind$inboundSchema = nativeEnumType(Kind);
|
|
54515
54545
|
Kind$outboundSchema = Kind$inboundSchema;
|
|
54516
54546
|
AcceleratorType$inboundSchema = objectType({
|
|
54547
|
+
acquirability: Acquirability$inboundSchema.optional(),
|
|
54548
|
+
acquirable_count: numberType().int().optional(),
|
|
54517
54549
|
kind: Kind$inboundSchema.default("gpu"),
|
|
54518
54550
|
max_count: numberType().int(),
|
|
54519
54551
|
memory_gb: numberType().int(),
|
|
54520
54552
|
name: stringType(),
|
|
54553
|
+
offered: booleanType().optional(),
|
|
54554
|
+
price_usd_hr: AcceleratorPriceBand$inboundSchema.optional(),
|
|
54521
54555
|
vendor: stringType()
|
|
54522
54556
|
}).transform((v2) => {
|
|
54523
54557
|
return remap(v2, {
|
|
54558
|
+
acquirable_count: "acquirableCount",
|
|
54524
54559
|
max_count: "maxCount",
|
|
54525
|
-
memory_gb: "memoryGb"
|
|
54560
|
+
memory_gb: "memoryGb",
|
|
54561
|
+
price_usd_hr: "priceUsdHr"
|
|
54526
54562
|
});
|
|
54527
54563
|
});
|
|
54528
54564
|
AcceleratorType$outboundSchema = objectType({
|
|
54565
|
+
acquirability: Acquirability$outboundSchema.optional(),
|
|
54566
|
+
acquirableCount: numberType().int().optional(),
|
|
54529
54567
|
kind: Kind$outboundSchema.default("gpu"),
|
|
54530
54568
|
maxCount: numberType().int(),
|
|
54531
54569
|
memoryGb: numberType().int(),
|
|
54532
54570
|
name: stringType(),
|
|
54571
|
+
offered: booleanType().optional(),
|
|
54572
|
+
priceUsdHr: AcceleratorPriceBand$outboundSchema.optional(),
|
|
54533
54573
|
vendor: stringType()
|
|
54534
54574
|
}).transform((v2) => {
|
|
54535
54575
|
return remap(v2, {
|
|
54576
|
+
acquirableCount: "acquirable_count",
|
|
54536
54577
|
maxCount: "max_count",
|
|
54537
|
-
memoryGb: "memory_gb"
|
|
54578
|
+
memoryGb: "memory_gb",
|
|
54579
|
+
priceUsdHr: "price_usd_hr"
|
|
54538
54580
|
});
|
|
54539
54581
|
});
|
|
54540
54582
|
});
|
|
@@ -63812,6 +63854,82 @@ var init_effectivepricesresponse = __esm(() => {
|
|
|
63812
63854
|
});
|
|
63813
63855
|
});
|
|
63814
63856
|
|
|
63857
|
+
// src/models/components/eligibilitypriceband.ts
|
|
63858
|
+
var EligibilityPriceBand$inboundSchema, EligibilityPriceBand$outboundSchema;
|
|
63859
|
+
var init_eligibilitypriceband = __esm(() => {
|
|
63860
|
+
init_esm();
|
|
63861
|
+
EligibilityPriceBand$inboundSchema = objectType({
|
|
63862
|
+
max: numberType(),
|
|
63863
|
+
min: numberType(),
|
|
63864
|
+
p50: numberType()
|
|
63865
|
+
});
|
|
63866
|
+
EligibilityPriceBand$outboundSchema = objectType({
|
|
63867
|
+
max: numberType(),
|
|
63868
|
+
min: numberType(),
|
|
63869
|
+
p50: numberType()
|
|
63870
|
+
});
|
|
63871
|
+
});
|
|
63872
|
+
|
|
63873
|
+
// src/models/components/eligibilitypreview.ts
|
|
63874
|
+
var EstStart, EstStart$inboundSchema, EstStart$outboundSchema, EligibilityPreview$inboundSchema, EligibilityPreview$outboundSchema;
|
|
63875
|
+
var init_eligibilitypreview = __esm(() => {
|
|
63876
|
+
init_esm();
|
|
63877
|
+
init_primitives();
|
|
63878
|
+
init_acquirability();
|
|
63879
|
+
init_eligibilitypriceband();
|
|
63880
|
+
EstStart = {
|
|
63881
|
+
Immediate: "immediate",
|
|
63882
|
+
Minutes: "minutes",
|
|
63883
|
+
Queued: "queued",
|
|
63884
|
+
Unknown: "unknown"
|
|
63885
|
+
};
|
|
63886
|
+
EstStart$inboundSchema = nativeEnumType(EstStart);
|
|
63887
|
+
EstStart$outboundSchema = EstStart$inboundSchema;
|
|
63888
|
+
EligibilityPreview$inboundSchema = objectType({
|
|
63889
|
+
acquirability: Acquirability$inboundSchema,
|
|
63890
|
+
acquirable_now: numberType().int(),
|
|
63891
|
+
advice: arrayType(stringType()),
|
|
63892
|
+
eligible: booleanType(),
|
|
63893
|
+
est_start: EstStart$inboundSchema,
|
|
63894
|
+
price_usd_hr: EligibilityPriceBand$inboundSchema.optional(),
|
|
63895
|
+
watchable: numberType().int()
|
|
63896
|
+
}).transform((v2) => {
|
|
63897
|
+
return remap(v2, {
|
|
63898
|
+
acquirable_now: "acquirableNow",
|
|
63899
|
+
est_start: "estStart",
|
|
63900
|
+
price_usd_hr: "priceUsdHr"
|
|
63901
|
+
});
|
|
63902
|
+
});
|
|
63903
|
+
EligibilityPreview$outboundSchema = objectType({
|
|
63904
|
+
acquirability: Acquirability$outboundSchema,
|
|
63905
|
+
acquirableNow: numberType().int(),
|
|
63906
|
+
advice: arrayType(stringType()),
|
|
63907
|
+
eligible: booleanType(),
|
|
63908
|
+
estStart: EstStart$outboundSchema,
|
|
63909
|
+
priceUsdHr: EligibilityPriceBand$outboundSchema.optional(),
|
|
63910
|
+
watchable: numberType().int()
|
|
63911
|
+
}).transform((v2) => {
|
|
63912
|
+
return remap(v2, {
|
|
63913
|
+
acquirableNow: "acquirable_now",
|
|
63914
|
+
estStart: "est_start",
|
|
63915
|
+
priceUsdHr: "price_usd_hr"
|
|
63916
|
+
});
|
|
63917
|
+
});
|
|
63918
|
+
});
|
|
63919
|
+
|
|
63920
|
+
// src/models/components/eligibilityrequest.ts
|
|
63921
|
+
var EligibilityRequest$inboundSchema, EligibilityRequest$outboundSchema;
|
|
63922
|
+
var init_eligibilityrequest = __esm(() => {
|
|
63923
|
+
init_esm();
|
|
63924
|
+
init_acceleratorspec();
|
|
63925
|
+
EligibilityRequest$inboundSchema = objectType({
|
|
63926
|
+
accelerator: AcceleratorSpec$inboundSchema
|
|
63927
|
+
});
|
|
63928
|
+
EligibilityRequest$outboundSchema = objectType({
|
|
63929
|
+
accelerator: AcceleratorSpec$outboundSchema
|
|
63930
|
+
});
|
|
63931
|
+
});
|
|
63932
|
+
|
|
63815
63933
|
// src/models/components/embeddingmodellimits.ts
|
|
63816
63934
|
var EmbeddingModelLimits$inboundSchema, EmbeddingModelLimits$outboundSchema;
|
|
63817
63935
|
var init_embeddingmodellimits = __esm(() => {
|
|
@@ -76982,6 +77100,7 @@ var init_workspacemanifest = __esm(() => {
|
|
|
76982
77100
|
|
|
76983
77101
|
// src/models/components/index.ts
|
|
76984
77102
|
var init_components = __esm(() => {
|
|
77103
|
+
init_acceleratorpriceband();
|
|
76985
77104
|
init_acceleratorspec();
|
|
76986
77105
|
init_acceleratortype();
|
|
76987
77106
|
init_accessentry();
|
|
@@ -76989,6 +77108,7 @@ var init_components = __esm(() => {
|
|
|
76989
77108
|
init_accessmutationrequest();
|
|
76990
77109
|
init_accessmutationresponse();
|
|
76991
77110
|
init_acknowledgedsafetycheck();
|
|
77111
|
+
init_acquirability();
|
|
76992
77112
|
init_activateregistryentryrequest();
|
|
76993
77113
|
init_addcatalogmodelrequest();
|
|
76994
77114
|
init_agent();
|
|
@@ -77129,6 +77249,9 @@ var init_components = __esm(() => {
|
|
|
77129
77249
|
init_dragaction();
|
|
77130
77250
|
init_effectivepricerow();
|
|
77131
77251
|
init_effectivepricesresponse();
|
|
77252
|
+
init_eligibilitypreview();
|
|
77253
|
+
init_eligibilitypriceband();
|
|
77254
|
+
init_eligibilityrequest();
|
|
77132
77255
|
init_embeddingmodel();
|
|
77133
77256
|
init_embeddingmodellimits();
|
|
77134
77257
|
init_embeddingmodellistresponse();
|
|
@@ -95251,6 +95374,32 @@ var init_pausefinetuningjob = __esm(() => {
|
|
|
95251
95374
|
});
|
|
95252
95375
|
});
|
|
95253
95376
|
|
|
95377
|
+
// src/models/operations/previeweligibility.ts
|
|
95378
|
+
var PreviewEligibilityRequest$inboundSchema, PreviewEligibilityRequest$outboundSchema;
|
|
95379
|
+
var init_previeweligibility = __esm(() => {
|
|
95380
|
+
init_esm();
|
|
95381
|
+
init_primitives();
|
|
95382
|
+
init_components();
|
|
95383
|
+
PreviewEligibilityRequest$inboundSchema = objectType({
|
|
95384
|
+
"X-On-Behalf-Of": stringType().optional(),
|
|
95385
|
+
EligibilityRequest: EligibilityRequest$inboundSchema
|
|
95386
|
+
}).transform((v2) => {
|
|
95387
|
+
return remap(v2, {
|
|
95388
|
+
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
95389
|
+
EligibilityRequest: "eligibilityRequest"
|
|
95390
|
+
});
|
|
95391
|
+
});
|
|
95392
|
+
PreviewEligibilityRequest$outboundSchema = objectType({
|
|
95393
|
+
xOnBehalfOf: stringType().optional(),
|
|
95394
|
+
eligibilityRequest: EligibilityRequest$outboundSchema
|
|
95395
|
+
}).transform((v2) => {
|
|
95396
|
+
return remap(v2, {
|
|
95397
|
+
xOnBehalfOf: "X-On-Behalf-Of",
|
|
95398
|
+
eligibilityRequest: "EligibilityRequest"
|
|
95399
|
+
});
|
|
95400
|
+
});
|
|
95401
|
+
});
|
|
95402
|
+
|
|
95254
95403
|
// src/models/operations/proxybrowserportrequest.ts
|
|
95255
95404
|
var ProxyBrowserPortRequestRequest$inboundSchema, ProxyBrowserPortRequestRequest$outboundSchema;
|
|
95256
95405
|
var init_proxybrowserportrequest = __esm(() => {
|
|
@@ -99074,6 +99223,7 @@ var init_operations = __esm(() => {
|
|
|
99074
99223
|
init_modifyvectorstore();
|
|
99075
99224
|
init_pauseagentschedule();
|
|
99076
99225
|
init_pausefinetuningjob();
|
|
99226
|
+
init_previeweligibility();
|
|
99077
99227
|
init_proxybrowserportrequest();
|
|
99078
99228
|
init_putorgautomodel();
|
|
99079
99229
|
init_regeneratescopedapikey2();
|
|
@@ -134635,11 +134785,128 @@ Change a deployment's autoscaling limits in place, without redeploying.`,
|
|
|
134635
134785
|
};
|
|
134636
134786
|
});
|
|
134637
134787
|
|
|
134638
|
-
// src/funcs/
|
|
134639
|
-
function
|
|
134788
|
+
// src/funcs/servingEligibilityPreview.ts
|
|
134789
|
+
function servingEligibilityPreview(client, request, options) {
|
|
134640
134790
|
return new APIPromise($do302(client, request, options));
|
|
134641
134791
|
}
|
|
134642
134792
|
async function $do302(client, request, options) {
|
|
134793
|
+
const parsed = safeParse4(request, (value) => PreviewEligibilityRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134794
|
+
if (!parsed.ok) {
|
|
134795
|
+
return [parsed, { status: "invalid" }];
|
|
134796
|
+
}
|
|
134797
|
+
const payload = parsed.value;
|
|
134798
|
+
const body = encodeJSON("body", payload.EligibilityRequest, {
|
|
134799
|
+
explode: true
|
|
134800
|
+
});
|
|
134801
|
+
const path = pathToFunc("/api/v1/serving/eligibility")();
|
|
134802
|
+
const headers = new Headers(compactMap({
|
|
134803
|
+
"Content-Type": "application/json",
|
|
134804
|
+
Accept: "application/json",
|
|
134805
|
+
"X-On-Behalf-Of": encodeSimple("X-On-Behalf-Of", payload["X-On-Behalf-Of"], { explode: false, charEncoding: "none" })
|
|
134806
|
+
}));
|
|
134807
|
+
const secConfig = await extractSecurity(client._options.bearerAuth);
|
|
134808
|
+
const securityInput = secConfig == null ? {} : { bearerAuth: secConfig };
|
|
134809
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
134810
|
+
const context = {
|
|
134811
|
+
options: client._options,
|
|
134812
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
134813
|
+
operationID: "previewEligibility",
|
|
134814
|
+
oAuth2Scopes: null,
|
|
134815
|
+
resolvedSecurity: requestSecurity,
|
|
134816
|
+
securitySource: client._options.bearerAuth,
|
|
134817
|
+
retryConfig: options?.retries || client._options.retryConfig || {
|
|
134818
|
+
strategy: "backoff",
|
|
134819
|
+
backoff: {
|
|
134820
|
+
initialInterval: 500,
|
|
134821
|
+
maxInterval: 5000,
|
|
134822
|
+
exponent: 1.5,
|
|
134823
|
+
maxElapsedTime: 15000
|
|
134824
|
+
},
|
|
134825
|
+
retryConnectionErrors: true
|
|
134826
|
+
},
|
|
134827
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
134828
|
+
};
|
|
134829
|
+
const requestRes = client._createRequest(context, {
|
|
134830
|
+
security: requestSecurity,
|
|
134831
|
+
method: "POST",
|
|
134832
|
+
baseURL: options?.serverURL,
|
|
134833
|
+
path,
|
|
134834
|
+
headers,
|
|
134835
|
+
body,
|
|
134836
|
+
userAgent: client._options.userAgent,
|
|
134837
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
134838
|
+
}, options);
|
|
134839
|
+
if (!requestRes.ok) {
|
|
134840
|
+
return [requestRes, { status: "invalid" }];
|
|
134841
|
+
}
|
|
134842
|
+
const req = requestRes.value;
|
|
134843
|
+
const doResult = await client._do(req, {
|
|
134844
|
+
context,
|
|
134845
|
+
isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
|
|
134846
|
+
retryConfig: context.retryConfig,
|
|
134847
|
+
retryCodes: context.retryCodes
|
|
134848
|
+
});
|
|
134849
|
+
if (!doResult.ok) {
|
|
134850
|
+
return [doResult, { status: "request-error", request: req }];
|
|
134851
|
+
}
|
|
134852
|
+
const response = doResult.value;
|
|
134853
|
+
const responseFields = {
|
|
134854
|
+
HttpMeta: { Response: response, Request: req }
|
|
134855
|
+
};
|
|
134856
|
+
const [result] = await match(json(200, EligibilityPreview$inboundSchema), jsonErr(403, ServingError$inboundSchema), jsonErr(422, ServingHTTPValidationError$inboundSchema), fail([401, "4XX"]), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
134857
|
+
if (!result.ok) {
|
|
134858
|
+
return [result, { status: "complete", request: req, response }];
|
|
134859
|
+
}
|
|
134860
|
+
return [result, { status: "complete", request: req, response }];
|
|
134861
|
+
}
|
|
134862
|
+
var init_servingEligibilityPreview = __esm(() => {
|
|
134863
|
+
init_encodings();
|
|
134864
|
+
init_http();
|
|
134865
|
+
init_matchers();
|
|
134866
|
+
init_primitives();
|
|
134867
|
+
init_schemas4();
|
|
134868
|
+
init_security();
|
|
134869
|
+
init_url();
|
|
134870
|
+
init_components();
|
|
134871
|
+
init_errors4();
|
|
134872
|
+
init_operations();
|
|
134873
|
+
init_async();
|
|
134874
|
+
});
|
|
134875
|
+
|
|
134876
|
+
// src/mcp-server/tools/servingEligibilityPreview.ts
|
|
134877
|
+
var args293, tool$servingEligibilityPreview;
|
|
134878
|
+
var init_servingEligibilityPreview2 = __esm(() => {
|
|
134879
|
+
init_servingEligibilityPreview();
|
|
134880
|
+
init_operations();
|
|
134881
|
+
init_tools();
|
|
134882
|
+
args293 = {
|
|
134883
|
+
request: PreviewEligibilityRequest$inboundSchema
|
|
134884
|
+
};
|
|
134885
|
+
tool$servingEligibilityPreview = {
|
|
134886
|
+
name: "serving-eligibility-preview",
|
|
134887
|
+
description: `Preview accelerator eligibility
|
|
134888
|
+
|
|
134889
|
+
Preview, before submitting a job or deployment, how much matching capacity the cluster can currently acquire and how likely it is to start. The response is provider-anonymous: counts, price bands, and advice only. This is an advisory read; it reserves nothing.`,
|
|
134890
|
+
args: args293,
|
|
134891
|
+
tool: async (client, args294, ctx) => {
|
|
134892
|
+
const [result, apiCall] = await servingEligibilityPreview(client, args294.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134893
|
+
if (!result.ok) {
|
|
134894
|
+
return {
|
|
134895
|
+
content: [{ type: "text", text: result.error.message }],
|
|
134896
|
+
isError: true
|
|
134897
|
+
};
|
|
134898
|
+
}
|
|
134899
|
+
const value = result.value;
|
|
134900
|
+
return formatResult(value, apiCall);
|
|
134901
|
+
}
|
|
134902
|
+
};
|
|
134903
|
+
});
|
|
134904
|
+
|
|
134905
|
+
// src/funcs/servingFinetuneJobsCancel.ts
|
|
134906
|
+
function servingFinetuneJobsCancel(client, request, options) {
|
|
134907
|
+
return new APIPromise($do303(client, request, options));
|
|
134908
|
+
}
|
|
134909
|
+
async function $do303(client, request, options) {
|
|
134643
134910
|
const parsed = safeParse4(request, (value) => CancelFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134644
134911
|
if (!parsed.ok) {
|
|
134645
134912
|
return [parsed, { status: "invalid" }];
|
|
@@ -134727,12 +134994,12 @@ var init_servingFinetuneJobsCancel = __esm(() => {
|
|
|
134727
134994
|
});
|
|
134728
134995
|
|
|
134729
134996
|
// src/mcp-server/tools/servingFinetuneJobsCancel.ts
|
|
134730
|
-
var
|
|
134997
|
+
var args294, tool$servingFinetuneJobsCancel;
|
|
134731
134998
|
var init_servingFinetuneJobsCancel2 = __esm(() => {
|
|
134732
134999
|
init_servingFinetuneJobsCancel();
|
|
134733
135000
|
init_operations();
|
|
134734
135001
|
init_tools();
|
|
134735
|
-
|
|
135002
|
+
args294 = {
|
|
134736
135003
|
request: CancelFinetuneJobRequest$inboundSchema
|
|
134737
135004
|
};
|
|
134738
135005
|
tool$servingFinetuneJobsCancel = {
|
|
@@ -134740,9 +135007,9 @@ var init_servingFinetuneJobsCancel2 = __esm(() => {
|
|
|
134740
135007
|
description: `Cancel a fine-tune job
|
|
134741
135008
|
|
|
134742
135009
|
Cancel a running fine-tune job.`,
|
|
134743
|
-
args:
|
|
134744
|
-
tool: async (client,
|
|
134745
|
-
const [result, apiCall] = await servingFinetuneJobsCancel(client,
|
|
135010
|
+
args: args294,
|
|
135011
|
+
tool: async (client, args295, ctx) => {
|
|
135012
|
+
const [result, apiCall] = await servingFinetuneJobsCancel(client, args295.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134746
135013
|
if (!result.ok) {
|
|
134747
135014
|
return {
|
|
134748
135015
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134756,9 +135023,9 @@ Cancel a running fine-tune job.`,
|
|
|
134756
135023
|
|
|
134757
135024
|
// src/funcs/servingFinetuneJobsCreate.ts
|
|
134758
135025
|
function servingFinetuneJobsCreate(client, request, options) {
|
|
134759
|
-
return new APIPromise($
|
|
135026
|
+
return new APIPromise($do304(client, request, options));
|
|
134760
135027
|
}
|
|
134761
|
-
async function $
|
|
135028
|
+
async function $do304(client, request, options) {
|
|
134762
135029
|
const parsed = safeParse4(request, (value) => CreateFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134763
135030
|
if (!parsed.ok) {
|
|
134764
135031
|
return [parsed, { status: "invalid" }];
|
|
@@ -134841,12 +135108,12 @@ var init_servingFinetuneJobsCreate = __esm(() => {
|
|
|
134841
135108
|
});
|
|
134842
135109
|
|
|
134843
135110
|
// src/mcp-server/tools/servingFinetuneJobsCreate.ts
|
|
134844
|
-
var
|
|
135111
|
+
var args295, tool$servingFinetuneJobsCreate;
|
|
134845
135112
|
var init_servingFinetuneJobsCreate2 = __esm(() => {
|
|
134846
135113
|
init_servingFinetuneJobsCreate();
|
|
134847
135114
|
init_operations();
|
|
134848
135115
|
init_tools();
|
|
134849
|
-
|
|
135116
|
+
args295 = {
|
|
134850
135117
|
request: CreateFinetuneJobRequest$inboundSchema
|
|
134851
135118
|
};
|
|
134852
135119
|
tool$servingFinetuneJobsCreate = {
|
|
@@ -134854,9 +135121,9 @@ var init_servingFinetuneJobsCreate2 = __esm(() => {
|
|
|
134854
135121
|
description: `Submit a fine-tune job
|
|
134855
135122
|
|
|
134856
135123
|
Submit a fine-tune job for a base model and dataset, and return its id.`,
|
|
134857
|
-
args:
|
|
134858
|
-
tool: async (client,
|
|
134859
|
-
const [result, apiCall] = await servingFinetuneJobsCreate(client,
|
|
135124
|
+
args: args295,
|
|
135125
|
+
tool: async (client, args296, ctx) => {
|
|
135126
|
+
const [result, apiCall] = await servingFinetuneJobsCreate(client, args296.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134860
135127
|
if (!result.ok) {
|
|
134861
135128
|
return {
|
|
134862
135129
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134871,9 +135138,9 @@ Submit a fine-tune job for a base model and dataset, and return its id.`,
|
|
|
134871
135138
|
|
|
134872
135139
|
// src/funcs/servingFinetuneJobsGet.ts
|
|
134873
135140
|
function servingFinetuneJobsGet(client, request, options) {
|
|
134874
|
-
return new APIPromise($
|
|
135141
|
+
return new APIPromise($do305(client, request, options));
|
|
134875
135142
|
}
|
|
134876
|
-
async function $
|
|
135143
|
+
async function $do305(client, request, options) {
|
|
134877
135144
|
const parsed = safeParse4(request, (value) => GetFinetuneJobRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134878
135145
|
if (!parsed.ok) {
|
|
134879
135146
|
return [parsed, { status: "invalid" }];
|
|
@@ -134961,12 +135228,12 @@ var init_servingFinetuneJobsGet = __esm(() => {
|
|
|
134961
135228
|
});
|
|
134962
135229
|
|
|
134963
135230
|
// src/mcp-server/tools/servingFinetuneJobsGet.ts
|
|
134964
|
-
var
|
|
135231
|
+
var args296, tool$servingFinetuneJobsGet;
|
|
134965
135232
|
var init_servingFinetuneJobsGet2 = __esm(() => {
|
|
134966
135233
|
init_servingFinetuneJobsGet();
|
|
134967
135234
|
init_operations();
|
|
134968
135235
|
init_tools();
|
|
134969
|
-
|
|
135236
|
+
args296 = {
|
|
134970
135237
|
request: GetFinetuneJobRequest$inboundSchema
|
|
134971
135238
|
};
|
|
134972
135239
|
tool$servingFinetuneJobsGet = {
|
|
@@ -134974,9 +135241,9 @@ var init_servingFinetuneJobsGet2 = __esm(() => {
|
|
|
134974
135241
|
description: `Get a fine-tune job
|
|
134975
135242
|
|
|
134976
135243
|
Retrieve a fine-tune job, including its status and progress.`,
|
|
134977
|
-
args:
|
|
134978
|
-
tool: async (client,
|
|
134979
|
-
const [result, apiCall] = await servingFinetuneJobsGet(client,
|
|
135244
|
+
args: args296,
|
|
135245
|
+
tool: async (client, args297, ctx) => {
|
|
135246
|
+
const [result, apiCall] = await servingFinetuneJobsGet(client, args297.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
134980
135247
|
if (!result.ok) {
|
|
134981
135248
|
return {
|
|
134982
135249
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -134991,9 +135258,9 @@ Retrieve a fine-tune job, including its status and progress.`,
|
|
|
134991
135258
|
|
|
134992
135259
|
// src/funcs/servingFinetuneJobsGetEvents.ts
|
|
134993
135260
|
function servingFinetuneJobsGetEvents(client, request, options) {
|
|
134994
|
-
return new APIPromise($
|
|
135261
|
+
return new APIPromise($do306(client, request, options));
|
|
134995
135262
|
}
|
|
134996
|
-
async function $
|
|
135263
|
+
async function $do306(client, request, options) {
|
|
134997
135264
|
const parsed = safeParse4(request, (value) => GetFinetuneEventsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
134998
135265
|
if (!parsed.ok) {
|
|
134999
135266
|
return [parsed, { status: "invalid" }];
|
|
@@ -135086,12 +135353,12 @@ var init_servingFinetuneJobsGetEvents = __esm(() => {
|
|
|
135086
135353
|
});
|
|
135087
135354
|
|
|
135088
135355
|
// src/mcp-server/tools/servingFinetuneJobsGetEvents.ts
|
|
135089
|
-
var
|
|
135356
|
+
var args297, tool$servingFinetuneJobsGetEvents;
|
|
135090
135357
|
var init_servingFinetuneJobsGetEvents2 = __esm(() => {
|
|
135091
135358
|
init_servingFinetuneJobsGetEvents();
|
|
135092
135359
|
init_operations();
|
|
135093
135360
|
init_tools();
|
|
135094
|
-
|
|
135361
|
+
args297 = {
|
|
135095
135362
|
request: GetFinetuneEventsRequest$inboundSchema
|
|
135096
135363
|
};
|
|
135097
135364
|
tool$servingFinetuneJobsGetEvents = {
|
|
@@ -135099,9 +135366,9 @@ var init_servingFinetuneJobsGetEvents2 = __esm(() => {
|
|
|
135099
135366
|
description: `Status timeline
|
|
135100
135367
|
|
|
135101
135368
|
Return the job's status timeline (queued, running, checkpoints, completion).`,
|
|
135102
|
-
args:
|
|
135103
|
-
tool: async (client,
|
|
135104
|
-
const [result, apiCall] = await servingFinetuneJobsGetEvents(client,
|
|
135369
|
+
args: args297,
|
|
135370
|
+
tool: async (client, args298, ctx) => {
|
|
135371
|
+
const [result, apiCall] = await servingFinetuneJobsGetEvents(client, args298.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135105
135372
|
if (!result.ok) {
|
|
135106
135373
|
return {
|
|
135107
135374
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135116,9 +135383,9 @@ Return the job's status timeline (queued, running, checkpoints, completion).`,
|
|
|
135116
135383
|
|
|
135117
135384
|
// src/funcs/servingFinetuneJobsGetLogs.ts
|
|
135118
135385
|
function servingFinetuneJobsGetLogs(client, request, options) {
|
|
135119
|
-
return new APIPromise($
|
|
135386
|
+
return new APIPromise($do307(client, request, options));
|
|
135120
135387
|
}
|
|
135121
|
-
async function $
|
|
135388
|
+
async function $do307(client, request, options) {
|
|
135122
135389
|
const parsed = safeParse4(request, (value) => GetFinetuneLogsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135123
135390
|
if (!parsed.ok) {
|
|
135124
135391
|
return [parsed, { status: "invalid" }];
|
|
@@ -135211,12 +135478,12 @@ var init_servingFinetuneJobsGetLogs = __esm(() => {
|
|
|
135211
135478
|
});
|
|
135212
135479
|
|
|
135213
135480
|
// src/mcp-server/tools/servingFinetuneJobsGetLogs.ts
|
|
135214
|
-
var
|
|
135481
|
+
var args298, tool$servingFinetuneJobsGetLogs;
|
|
135215
135482
|
var init_servingFinetuneJobsGetLogs2 = __esm(() => {
|
|
135216
135483
|
init_servingFinetuneJobsGetLogs();
|
|
135217
135484
|
init_operations();
|
|
135218
135485
|
init_tools();
|
|
135219
|
-
|
|
135486
|
+
args298 = {
|
|
135220
135487
|
request: GetFinetuneLogsRequest$inboundSchema
|
|
135221
135488
|
};
|
|
135222
135489
|
tool$servingFinetuneJobsGetLogs = {
|
|
@@ -135224,9 +135491,9 @@ var init_servingFinetuneJobsGetLogs2 = __esm(() => {
|
|
|
135224
135491
|
description: `Fetch training logs
|
|
135225
135492
|
|
|
135226
135493
|
Fetch recent training log lines for a job.`,
|
|
135227
|
-
args:
|
|
135228
|
-
tool: async (client,
|
|
135229
|
-
const [result, apiCall] = await servingFinetuneJobsGetLogs(client,
|
|
135494
|
+
args: args298,
|
|
135495
|
+
tool: async (client, args299, ctx) => {
|
|
135496
|
+
const [result, apiCall] = await servingFinetuneJobsGetLogs(client, args299.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135230
135497
|
if (!result.ok) {
|
|
135231
135498
|
return {
|
|
135232
135499
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135241,9 +135508,9 @@ Fetch recent training log lines for a job.`,
|
|
|
135241
135508
|
|
|
135242
135509
|
// src/funcs/servingFinetuneJobsGetMetrics.ts
|
|
135243
135510
|
function servingFinetuneJobsGetMetrics(client, request, options) {
|
|
135244
|
-
return new APIPromise($
|
|
135511
|
+
return new APIPromise($do308(client, request, options));
|
|
135245
135512
|
}
|
|
135246
|
-
async function $
|
|
135513
|
+
async function $do308(client, request, options) {
|
|
135247
135514
|
const parsed = safeParse4(request, (value) => GetFinetuneMetricsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135248
135515
|
if (!parsed.ok) {
|
|
135249
135516
|
return [parsed, { status: "invalid" }];
|
|
@@ -135332,12 +135599,12 @@ var init_servingFinetuneJobsGetMetrics = __esm(() => {
|
|
|
135332
135599
|
});
|
|
135333
135600
|
|
|
135334
135601
|
// src/mcp-server/tools/servingFinetuneJobsGetMetrics.ts
|
|
135335
|
-
var
|
|
135602
|
+
var args299, tool$servingFinetuneJobsGetMetrics;
|
|
135336
135603
|
var init_servingFinetuneJobsGetMetrics2 = __esm(() => {
|
|
135337
135604
|
init_servingFinetuneJobsGetMetrics();
|
|
135338
135605
|
init_operations();
|
|
135339
135606
|
init_tools();
|
|
135340
|
-
|
|
135607
|
+
args299 = {
|
|
135341
135608
|
request: GetFinetuneMetricsRequest$inboundSchema
|
|
135342
135609
|
};
|
|
135343
135610
|
tool$servingFinetuneJobsGetMetrics = {
|
|
@@ -135345,9 +135612,9 @@ var init_servingFinetuneJobsGetMetrics2 = __esm(() => {
|
|
|
135345
135612
|
description: `Training metrics
|
|
135346
135613
|
|
|
135347
135614
|
Return the training metric series (loss, learning rate, ...) pushed by the training run.`,
|
|
135348
|
-
args:
|
|
135349
|
-
tool: async (client,
|
|
135350
|
-
const [result, apiCall] = await servingFinetuneJobsGetMetrics(client,
|
|
135615
|
+
args: args299,
|
|
135616
|
+
tool: async (client, args300, ctx) => {
|
|
135617
|
+
const [result, apiCall] = await servingFinetuneJobsGetMetrics(client, args300.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135351
135618
|
if (!result.ok) {
|
|
135352
135619
|
return {
|
|
135353
135620
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135362,9 +135629,9 @@ Return the training metric series (loss, learning rate, ...) pushed by the train
|
|
|
135362
135629
|
|
|
135363
135630
|
// src/funcs/servingFinetuneJobsList.ts
|
|
135364
135631
|
function servingFinetuneJobsList(client, request, options) {
|
|
135365
|
-
return new APIPromise($
|
|
135632
|
+
return new APIPromise($do309(client, request, options));
|
|
135366
135633
|
}
|
|
135367
|
-
async function $
|
|
135634
|
+
async function $do309(client, request, options) {
|
|
135368
135635
|
const parsed = safeParse4(request, (value) => ListFinetuneJobsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135369
135636
|
if (!parsed.ok) {
|
|
135370
135637
|
return [parsed, { status: "invalid" }];
|
|
@@ -135451,12 +135718,12 @@ var init_servingFinetuneJobsList = __esm(() => {
|
|
|
135451
135718
|
});
|
|
135452
135719
|
|
|
135453
135720
|
// src/mcp-server/tools/servingFinetuneJobsList.ts
|
|
135454
|
-
var
|
|
135721
|
+
var args300, tool$servingFinetuneJobsList;
|
|
135455
135722
|
var init_servingFinetuneJobsList2 = __esm(() => {
|
|
135456
135723
|
init_servingFinetuneJobsList();
|
|
135457
135724
|
init_operations();
|
|
135458
135725
|
init_tools();
|
|
135459
|
-
|
|
135726
|
+
args300 = {
|
|
135460
135727
|
request: ListFinetuneJobsRequest$inboundSchema
|
|
135461
135728
|
};
|
|
135462
135729
|
tool$servingFinetuneJobsList = {
|
|
@@ -135464,9 +135731,9 @@ var init_servingFinetuneJobsList2 = __esm(() => {
|
|
|
135464
135731
|
description: `List fine-tune jobs
|
|
135465
135732
|
|
|
135466
135733
|
List your fine-tune jobs.`,
|
|
135467
|
-
args:
|
|
135468
|
-
tool: async (client,
|
|
135469
|
-
const [result, apiCall] = await servingFinetuneJobsList(client,
|
|
135734
|
+
args: args300,
|
|
135735
|
+
tool: async (client, args301, ctx) => {
|
|
135736
|
+
const [result, apiCall] = await servingFinetuneJobsList(client, args301.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135470
135737
|
if (!result.ok) {
|
|
135471
135738
|
return {
|
|
135472
135739
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135481,9 +135748,9 @@ List your fine-tune jobs.`,
|
|
|
135481
135748
|
|
|
135482
135749
|
// src/funcs/servingFinetuneJobsListCheckpoints.ts
|
|
135483
135750
|
function servingFinetuneJobsListCheckpoints(client, request, options) {
|
|
135484
|
-
return new APIPromise($
|
|
135751
|
+
return new APIPromise($do310(client, request, options));
|
|
135485
135752
|
}
|
|
135486
|
-
async function $
|
|
135753
|
+
async function $do310(client, request, options) {
|
|
135487
135754
|
const parsed = safeParse4(request, (value) => ListFinetuneCheckpointsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135488
135755
|
if (!parsed.ok) {
|
|
135489
135756
|
return [parsed, { status: "invalid" }];
|
|
@@ -135572,12 +135839,12 @@ var init_servingFinetuneJobsListCheckpoints = __esm(() => {
|
|
|
135572
135839
|
});
|
|
135573
135840
|
|
|
135574
135841
|
// src/mcp-server/tools/servingFinetuneJobsListCheckpoints.ts
|
|
135575
|
-
var
|
|
135842
|
+
var args301, tool$servingFinetuneJobsListCheckpoints;
|
|
135576
135843
|
var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
|
|
135577
135844
|
init_servingFinetuneJobsListCheckpoints();
|
|
135578
135845
|
init_operations();
|
|
135579
135846
|
init_tools();
|
|
135580
|
-
|
|
135847
|
+
args301 = {
|
|
135581
135848
|
request: ListFinetuneCheckpointsRequest$inboundSchema
|
|
135582
135849
|
};
|
|
135583
135850
|
tool$servingFinetuneJobsListCheckpoints = {
|
|
@@ -135585,9 +135852,9 @@ var init_servingFinetuneJobsListCheckpoints2 = __esm(() => {
|
|
|
135585
135852
|
description: `List output checkpoints
|
|
135586
135853
|
|
|
135587
135854
|
List the checkpoints a fine-tune job has produced.`,
|
|
135588
|
-
args:
|
|
135589
|
-
tool: async (client,
|
|
135590
|
-
const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client,
|
|
135855
|
+
args: args301,
|
|
135856
|
+
tool: async (client, args302, ctx) => {
|
|
135857
|
+
const [result, apiCall] = await servingFinetuneJobsListCheckpoints(client, args302.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135591
135858
|
if (!result.ok) {
|
|
135592
135859
|
return {
|
|
135593
135860
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135602,9 +135869,9 @@ List the checkpoints a fine-tune job has produced.`,
|
|
|
135602
135869
|
|
|
135603
135870
|
// src/funcs/servingImagesDelete.ts
|
|
135604
135871
|
function servingImagesDelete(client, request, options) {
|
|
135605
|
-
return new APIPromise($
|
|
135872
|
+
return new APIPromise($do311(client, request, options));
|
|
135606
135873
|
}
|
|
135607
|
-
async function $
|
|
135874
|
+
async function $do311(client, request, options) {
|
|
135608
135875
|
const parsed = safeParse4(request, (value) => DeleteImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135609
135876
|
if (!parsed.ok) {
|
|
135610
135877
|
return [parsed, { status: "invalid" }];
|
|
@@ -135692,12 +135959,12 @@ var init_servingImagesDelete = __esm(() => {
|
|
|
135692
135959
|
});
|
|
135693
135960
|
|
|
135694
135961
|
// src/mcp-server/tools/servingImagesDelete.ts
|
|
135695
|
-
var
|
|
135962
|
+
var args302, tool$servingImagesDelete;
|
|
135696
135963
|
var init_servingImagesDelete2 = __esm(() => {
|
|
135697
135964
|
init_servingImagesDelete();
|
|
135698
135965
|
init_operations();
|
|
135699
135966
|
init_tools();
|
|
135700
|
-
|
|
135967
|
+
args302 = {
|
|
135701
135968
|
request: DeleteImageRequest$inboundSchema
|
|
135702
135969
|
};
|
|
135703
135970
|
tool$servingImagesDelete = {
|
|
@@ -135705,9 +135972,9 @@ var init_servingImagesDelete2 = __esm(() => {
|
|
|
135705
135972
|
description: `Delete an image
|
|
135706
135973
|
|
|
135707
135974
|
Delete a container image.`,
|
|
135708
|
-
args:
|
|
135709
|
-
tool: async (client,
|
|
135710
|
-
const [result, apiCall] = await servingImagesDelete(client,
|
|
135975
|
+
args: args302,
|
|
135976
|
+
tool: async (client, args303, ctx) => {
|
|
135977
|
+
const [result, apiCall] = await servingImagesDelete(client, args303.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135711
135978
|
if (!result.ok) {
|
|
135712
135979
|
return {
|
|
135713
135980
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135721,9 +135988,9 @@ Delete a container image.`,
|
|
|
135721
135988
|
|
|
135722
135989
|
// src/funcs/servingImagesGet.ts
|
|
135723
135990
|
function servingImagesGet(client, request, options) {
|
|
135724
|
-
return new APIPromise($
|
|
135991
|
+
return new APIPromise($do312(client, request, options));
|
|
135725
135992
|
}
|
|
135726
|
-
async function $
|
|
135993
|
+
async function $do312(client, request, options) {
|
|
135727
135994
|
const parsed = safeParse4(request, (value) => GetImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135728
135995
|
if (!parsed.ok) {
|
|
135729
135996
|
return [parsed, { status: "invalid" }];
|
|
@@ -135811,12 +136078,12 @@ var init_servingImagesGet = __esm(() => {
|
|
|
135811
136078
|
});
|
|
135812
136079
|
|
|
135813
136080
|
// src/mcp-server/tools/servingImagesGet.ts
|
|
135814
|
-
var
|
|
136081
|
+
var args303, tool$servingImagesGet;
|
|
135815
136082
|
var init_servingImagesGet2 = __esm(() => {
|
|
135816
136083
|
init_servingImagesGet();
|
|
135817
136084
|
init_operations();
|
|
135818
136085
|
init_tools();
|
|
135819
|
-
|
|
136086
|
+
args303 = {
|
|
135820
136087
|
request: GetImageRequest$inboundSchema
|
|
135821
136088
|
};
|
|
135822
136089
|
tool$servingImagesGet = {
|
|
@@ -135824,9 +136091,9 @@ var init_servingImagesGet2 = __esm(() => {
|
|
|
135824
136091
|
description: `Get an image
|
|
135825
136092
|
|
|
135826
136093
|
Retrieve an image, including its build status.`,
|
|
135827
|
-
args:
|
|
135828
|
-
tool: async (client,
|
|
135829
|
-
const [result, apiCall] = await servingImagesGet(client,
|
|
136094
|
+
args: args303,
|
|
136095
|
+
tool: async (client, args304, ctx) => {
|
|
136096
|
+
const [result, apiCall] = await servingImagesGet(client, args304.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135830
136097
|
if (!result.ok) {
|
|
135831
136098
|
return {
|
|
135832
136099
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135841,9 +136108,9 @@ Retrieve an image, including its build status.`,
|
|
|
135841
136108
|
|
|
135842
136109
|
// src/funcs/servingImagesList.ts
|
|
135843
136110
|
function servingImagesList(client, request, options) {
|
|
135844
|
-
return new APIPromise($
|
|
136111
|
+
return new APIPromise($do313(client, request, options));
|
|
135845
136112
|
}
|
|
135846
|
-
async function $
|
|
136113
|
+
async function $do313(client, request, options) {
|
|
135847
136114
|
const parsed = safeParse4(request, (value) => ListImagesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135848
136115
|
if (!parsed.ok) {
|
|
135849
136116
|
return [parsed, { status: "invalid" }];
|
|
@@ -135930,12 +136197,12 @@ var init_servingImagesList = __esm(() => {
|
|
|
135930
136197
|
});
|
|
135931
136198
|
|
|
135932
136199
|
// src/mcp-server/tools/servingImagesList.ts
|
|
135933
|
-
var
|
|
136200
|
+
var args304, tool$servingImagesList;
|
|
135934
136201
|
var init_servingImagesList2 = __esm(() => {
|
|
135935
136202
|
init_servingImagesList();
|
|
135936
136203
|
init_operations();
|
|
135937
136204
|
init_tools();
|
|
135938
|
-
|
|
136205
|
+
args304 = {
|
|
135939
136206
|
request: ListImagesRequest$inboundSchema
|
|
135940
136207
|
};
|
|
135941
136208
|
tool$servingImagesList = {
|
|
@@ -135943,9 +136210,9 @@ var init_servingImagesList2 = __esm(() => {
|
|
|
135943
136210
|
description: `List images
|
|
135944
136211
|
|
|
135945
136212
|
List your container images.`,
|
|
135946
|
-
args:
|
|
135947
|
-
tool: async (client,
|
|
135948
|
-
const [result, apiCall] = await servingImagesList(client,
|
|
136213
|
+
args: args304,
|
|
136214
|
+
tool: async (client, args305, ctx) => {
|
|
136215
|
+
const [result, apiCall] = await servingImagesList(client, args305.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
135949
136216
|
if (!result.ok) {
|
|
135950
136217
|
return {
|
|
135951
136218
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -135960,9 +136227,9 @@ List your container images.`,
|
|
|
135960
136227
|
|
|
135961
136228
|
// src/funcs/servingImagesRegister.ts
|
|
135962
136229
|
function servingImagesRegister(client, request, options) {
|
|
135963
|
-
return new APIPromise($
|
|
136230
|
+
return new APIPromise($do314(client, request, options));
|
|
135964
136231
|
}
|
|
135965
|
-
async function $
|
|
136232
|
+
async function $do314(client, request, options) {
|
|
135966
136233
|
const parsed = safeParse4(request, (value) => RegisterImageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
135967
136234
|
if (!parsed.ok) {
|
|
135968
136235
|
return [parsed, { status: "invalid" }];
|
|
@@ -136045,12 +136312,12 @@ var init_servingImagesRegister = __esm(() => {
|
|
|
136045
136312
|
});
|
|
136046
136313
|
|
|
136047
136314
|
// src/mcp-server/tools/servingImagesRegister.ts
|
|
136048
|
-
var
|
|
136315
|
+
var args305, tool$servingImagesRegister;
|
|
136049
136316
|
var init_servingImagesRegister2 = __esm(() => {
|
|
136050
136317
|
init_servingImagesRegister();
|
|
136051
136318
|
init_operations();
|
|
136052
136319
|
init_tools();
|
|
136053
|
-
|
|
136320
|
+
args305 = {
|
|
136054
136321
|
request: RegisterImageRequest$inboundSchema
|
|
136055
136322
|
};
|
|
136056
136323
|
tool$servingImagesRegister = {
|
|
@@ -136058,9 +136325,9 @@ var init_servingImagesRegister2 = __esm(() => {
|
|
|
136058
136325
|
description: `Register a container image
|
|
136059
136326
|
|
|
136060
136327
|
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.)`,
|
|
136061
|
-
args:
|
|
136062
|
-
tool: async (client,
|
|
136063
|
-
const [result, apiCall] = await servingImagesRegister(client,
|
|
136328
|
+
args: args305,
|
|
136329
|
+
tool: async (client, args306, ctx) => {
|
|
136330
|
+
const [result, apiCall] = await servingImagesRegister(client, args306.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136064
136331
|
if (!result.ok) {
|
|
136065
136332
|
return {
|
|
136066
136333
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136075,9 +136342,9 @@ Register a container image by reference so it can back a BYO deployment or a rec
|
|
|
136075
136342
|
|
|
136076
136343
|
// src/funcs/servingModelsDelete.ts
|
|
136077
136344
|
function servingModelsDelete(client, request, options) {
|
|
136078
|
-
return new APIPromise($
|
|
136345
|
+
return new APIPromise($do315(client, request, options));
|
|
136079
136346
|
}
|
|
136080
|
-
async function $
|
|
136347
|
+
async function $do315(client, request, options) {
|
|
136081
136348
|
const parsed = safeParse4(request, (value) => DeleteModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136082
136349
|
if (!parsed.ok) {
|
|
136083
136350
|
return [parsed, { status: "invalid" }];
|
|
@@ -136165,12 +136432,12 @@ var init_servingModelsDelete = __esm(() => {
|
|
|
136165
136432
|
});
|
|
136166
136433
|
|
|
136167
136434
|
// src/mcp-server/tools/servingModelsDelete.ts
|
|
136168
|
-
var
|
|
136435
|
+
var args306, tool$servingModelsDelete;
|
|
136169
136436
|
var init_servingModelsDelete2 = __esm(() => {
|
|
136170
136437
|
init_servingModelsDelete();
|
|
136171
136438
|
init_operations();
|
|
136172
136439
|
init_tools();
|
|
136173
|
-
|
|
136440
|
+
args306 = {
|
|
136174
136441
|
request: DeleteModelRequest$inboundSchema
|
|
136175
136442
|
};
|
|
136176
136443
|
tool$servingModelsDelete = {
|
|
@@ -136178,9 +136445,9 @@ var init_servingModelsDelete2 = __esm(() => {
|
|
|
136178
136445
|
description: `Deregister a model
|
|
136179
136446
|
|
|
136180
136447
|
Deregister a model from the catalog.`,
|
|
136181
|
-
args:
|
|
136182
|
-
tool: async (client,
|
|
136183
|
-
const [result, apiCall] = await servingModelsDelete(client,
|
|
136448
|
+
args: args306,
|
|
136449
|
+
tool: async (client, args307, ctx) => {
|
|
136450
|
+
const [result, apiCall] = await servingModelsDelete(client, args307.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136184
136451
|
if (!result.ok) {
|
|
136185
136452
|
return {
|
|
136186
136453
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136194,9 +136461,9 @@ Deregister a model from the catalog.`,
|
|
|
136194
136461
|
|
|
136195
136462
|
// src/funcs/servingModelsGet.ts
|
|
136196
136463
|
function servingModelsGet(client, request, options) {
|
|
136197
|
-
return new APIPromise($
|
|
136464
|
+
return new APIPromise($do316(client, request, options));
|
|
136198
136465
|
}
|
|
136199
|
-
async function $
|
|
136466
|
+
async function $do316(client, request, options) {
|
|
136200
136467
|
const parsed = safeParse4(request, (value) => GetServingModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136201
136468
|
if (!parsed.ok) {
|
|
136202
136469
|
return [parsed, { status: "invalid" }];
|
|
@@ -136284,12 +136551,12 @@ var init_servingModelsGet = __esm(() => {
|
|
|
136284
136551
|
});
|
|
136285
136552
|
|
|
136286
136553
|
// src/mcp-server/tools/servingModelsGet.ts
|
|
136287
|
-
var
|
|
136554
|
+
var args307, tool$servingModelsGet;
|
|
136288
136555
|
var init_servingModelsGet2 = __esm(() => {
|
|
136289
136556
|
init_servingModelsGet();
|
|
136290
136557
|
init_operations();
|
|
136291
136558
|
init_tools();
|
|
136292
|
-
|
|
136559
|
+
args307 = {
|
|
136293
136560
|
request: GetServingModelRequest$inboundSchema
|
|
136294
136561
|
};
|
|
136295
136562
|
tool$servingModelsGet = {
|
|
@@ -136297,9 +136564,9 @@ var init_servingModelsGet2 = __esm(() => {
|
|
|
136297
136564
|
description: `Get a model
|
|
136298
136565
|
|
|
136299
136566
|
Retrieve a registered model.`,
|
|
136300
|
-
args:
|
|
136301
|
-
tool: async (client,
|
|
136302
|
-
const [result, apiCall] = await servingModelsGet(client,
|
|
136567
|
+
args: args307,
|
|
136568
|
+
tool: async (client, args308, ctx) => {
|
|
136569
|
+
const [result, apiCall] = await servingModelsGet(client, args308.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136303
136570
|
if (!result.ok) {
|
|
136304
136571
|
return {
|
|
136305
136572
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136314,9 +136581,9 @@ Retrieve a registered model.`,
|
|
|
136314
136581
|
|
|
136315
136582
|
// src/funcs/servingModelsList.ts
|
|
136316
136583
|
function servingModelsList(client, request, options) {
|
|
136317
|
-
return new APIPromise($
|
|
136584
|
+
return new APIPromise($do317(client, request, options));
|
|
136318
136585
|
}
|
|
136319
|
-
async function $
|
|
136586
|
+
async function $do317(client, request, options) {
|
|
136320
136587
|
const parsed = safeParse4(request, (value) => ListServingModelsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136321
136588
|
if (!parsed.ok) {
|
|
136322
136589
|
return [parsed, { status: "invalid" }];
|
|
@@ -136403,12 +136670,12 @@ var init_servingModelsList = __esm(() => {
|
|
|
136403
136670
|
});
|
|
136404
136671
|
|
|
136405
136672
|
// src/mcp-server/tools/servingModelsList.ts
|
|
136406
|
-
var
|
|
136673
|
+
var args308, tool$servingModelsList;
|
|
136407
136674
|
var init_servingModelsList2 = __esm(() => {
|
|
136408
136675
|
init_servingModelsList();
|
|
136409
136676
|
init_operations();
|
|
136410
136677
|
init_tools();
|
|
136411
|
-
|
|
136678
|
+
args308 = {
|
|
136412
136679
|
request: ListServingModelsRequest$inboundSchema
|
|
136413
136680
|
};
|
|
136414
136681
|
tool$servingModelsList = {
|
|
@@ -136416,9 +136683,9 @@ var init_servingModelsList2 = __esm(() => {
|
|
|
136416
136683
|
description: `List models
|
|
136417
136684
|
|
|
136418
136685
|
List your registered models.`,
|
|
136419
|
-
args:
|
|
136420
|
-
tool: async (client,
|
|
136421
|
-
const [result, apiCall] = await servingModelsList(client,
|
|
136686
|
+
args: args308,
|
|
136687
|
+
tool: async (client, args309, ctx) => {
|
|
136688
|
+
const [result, apiCall] = await servingModelsList(client, args309.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136422
136689
|
if (!result.ok) {
|
|
136423
136690
|
return {
|
|
136424
136691
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136433,9 +136700,9 @@ List your registered models.`,
|
|
|
136433
136700
|
|
|
136434
136701
|
// src/funcs/servingModelsRegister.ts
|
|
136435
136702
|
function servingModelsRegister(client, request, options) {
|
|
136436
|
-
return new APIPromise($
|
|
136703
|
+
return new APIPromise($do318(client, request, options));
|
|
136437
136704
|
}
|
|
136438
|
-
async function $
|
|
136705
|
+
async function $do318(client, request, options) {
|
|
136439
136706
|
const parsed = safeParse4(request, (value) => RegisterModelRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136440
136707
|
if (!parsed.ok) {
|
|
136441
136708
|
return [parsed, { status: "invalid" }];
|
|
@@ -136518,12 +136785,12 @@ var init_servingModelsRegister = __esm(() => {
|
|
|
136518
136785
|
});
|
|
136519
136786
|
|
|
136520
136787
|
// src/mcp-server/tools/servingModelsRegister.ts
|
|
136521
|
-
var
|
|
136788
|
+
var args309, tool$servingModelsRegister;
|
|
136522
136789
|
var init_servingModelsRegister2 = __esm(() => {
|
|
136523
136790
|
init_servingModelsRegister();
|
|
136524
136791
|
init_operations();
|
|
136525
136792
|
init_tools();
|
|
136526
|
-
|
|
136793
|
+
args309 = {
|
|
136527
136794
|
request: RegisterModelRequest$inboundSchema
|
|
136528
136795
|
};
|
|
136529
136796
|
tool$servingModelsRegister = {
|
|
@@ -136531,9 +136798,9 @@ var init_servingModelsRegister2 = __esm(() => {
|
|
|
136531
136798
|
description: `Register a model
|
|
136532
136799
|
|
|
136533
136800
|
Register a model (from a source or volume) so it can be deployed or fine-tuned.`,
|
|
136534
|
-
args:
|
|
136535
|
-
tool: async (client,
|
|
136536
|
-
const [result, apiCall] = await servingModelsRegister(client,
|
|
136801
|
+
args: args309,
|
|
136802
|
+
tool: async (client, args310, ctx) => {
|
|
136803
|
+
const [result, apiCall] = await servingModelsRegister(client, args310.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136537
136804
|
if (!result.ok) {
|
|
136538
136805
|
return {
|
|
136539
136806
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136548,9 +136815,9 @@ Register a model (from a source or volume) so it can be deployed or fine-tuned.`
|
|
|
136548
136815
|
|
|
136549
136816
|
// src/funcs/servingRecipesDelete.ts
|
|
136550
136817
|
function servingRecipesDelete(client, request, options) {
|
|
136551
|
-
return new APIPromise($
|
|
136818
|
+
return new APIPromise($do319(client, request, options));
|
|
136552
136819
|
}
|
|
136553
|
-
async function $
|
|
136820
|
+
async function $do319(client, request, options) {
|
|
136554
136821
|
const parsed = safeParse4(request, (value) => DeleteServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136555
136822
|
if (!parsed.ok) {
|
|
136556
136823
|
return [parsed, { status: "invalid" }];
|
|
@@ -136638,12 +136905,12 @@ var init_servingRecipesDelete = __esm(() => {
|
|
|
136638
136905
|
});
|
|
136639
136906
|
|
|
136640
136907
|
// src/mcp-server/tools/servingRecipesDelete.ts
|
|
136641
|
-
var
|
|
136908
|
+
var args310, tool$servingRecipesDelete;
|
|
136642
136909
|
var init_servingRecipesDelete2 = __esm(() => {
|
|
136643
136910
|
init_servingRecipesDelete();
|
|
136644
136911
|
init_operations();
|
|
136645
136912
|
init_tools();
|
|
136646
|
-
|
|
136913
|
+
args310 = {
|
|
136647
136914
|
request: DeleteServingRecipeRequest$inboundSchema
|
|
136648
136915
|
};
|
|
136649
136916
|
tool$servingRecipesDelete = {
|
|
@@ -136651,9 +136918,9 @@ var init_servingRecipesDelete2 = __esm(() => {
|
|
|
136651
136918
|
description: `Delete a serving recipe
|
|
136652
136919
|
|
|
136653
136920
|
Remove a recipe from the catalog. Rejected while any live deployment's active revision references the recipe. Cluster administrators only.`,
|
|
136654
|
-
args:
|
|
136655
|
-
tool: async (client,
|
|
136656
|
-
const [result, apiCall] = await servingRecipesDelete(client,
|
|
136921
|
+
args: args310,
|
|
136922
|
+
tool: async (client, args311, ctx) => {
|
|
136923
|
+
const [result, apiCall] = await servingRecipesDelete(client, args311.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136657
136924
|
if (!result.ok) {
|
|
136658
136925
|
return {
|
|
136659
136926
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136667,9 +136934,9 @@ Remove a recipe from the catalog. Rejected while any live deployment's active re
|
|
|
136667
136934
|
|
|
136668
136935
|
// src/funcs/servingRecipesGet.ts
|
|
136669
136936
|
function servingRecipesGet(client, request, options) {
|
|
136670
|
-
return new APIPromise($
|
|
136937
|
+
return new APIPromise($do320(client, request, options));
|
|
136671
136938
|
}
|
|
136672
|
-
async function $
|
|
136939
|
+
async function $do320(client, request, options) {
|
|
136673
136940
|
const parsed = safeParse4(request, (value) => GetServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136674
136941
|
if (!parsed.ok) {
|
|
136675
136942
|
return [parsed, { status: "invalid" }];
|
|
@@ -136757,12 +137024,12 @@ var init_servingRecipesGet = __esm(() => {
|
|
|
136757
137024
|
});
|
|
136758
137025
|
|
|
136759
137026
|
// src/mcp-server/tools/servingRecipesGet.ts
|
|
136760
|
-
var
|
|
137027
|
+
var args311, tool$servingRecipesGet;
|
|
136761
137028
|
var init_servingRecipesGet2 = __esm(() => {
|
|
136762
137029
|
init_servingRecipesGet();
|
|
136763
137030
|
init_operations();
|
|
136764
137031
|
init_tools();
|
|
136765
|
-
|
|
137032
|
+
args311 = {
|
|
136766
137033
|
request: GetServingRecipeRequest$inboundSchema
|
|
136767
137034
|
};
|
|
136768
137035
|
tool$servingRecipesGet = {
|
|
@@ -136770,9 +137037,9 @@ var init_servingRecipesGet2 = __esm(() => {
|
|
|
136770
137037
|
description: `Get a serving recipe
|
|
136771
137038
|
|
|
136772
137039
|
Get one recipe catalog record. Tenants can read enabled recipes; disabled recipes are visible to cluster administrators only.`,
|
|
136773
|
-
args:
|
|
136774
|
-
tool: async (client,
|
|
136775
|
-
const [result, apiCall] = await servingRecipesGet(client,
|
|
137040
|
+
args: args311,
|
|
137041
|
+
tool: async (client, args312, ctx) => {
|
|
137042
|
+
const [result, apiCall] = await servingRecipesGet(client, args312.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136776
137043
|
if (!result.ok) {
|
|
136777
137044
|
return {
|
|
136778
137045
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136787,9 +137054,9 @@ Get one recipe catalog record. Tenants can read enabled recipes; disabled recipe
|
|
|
136787
137054
|
|
|
136788
137055
|
// src/funcs/servingRecipesList.ts
|
|
136789
137056
|
function servingRecipesList(client, request, options) {
|
|
136790
|
-
return new APIPromise($
|
|
137057
|
+
return new APIPromise($do321(client, request, options));
|
|
136791
137058
|
}
|
|
136792
|
-
async function $
|
|
137059
|
+
async function $do321(client, request, options) {
|
|
136793
137060
|
const parsed = safeParse4(request, (value) => ListServingRecipesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136794
137061
|
if (!parsed.ok) {
|
|
136795
137062
|
return [parsed, { status: "invalid" }];
|
|
@@ -136876,12 +137143,12 @@ var init_servingRecipesList = __esm(() => {
|
|
|
136876
137143
|
});
|
|
136877
137144
|
|
|
136878
137145
|
// src/mcp-server/tools/servingRecipesList.ts
|
|
136879
|
-
var
|
|
137146
|
+
var args312, tool$servingRecipesList;
|
|
136880
137147
|
var init_servingRecipesList2 = __esm(() => {
|
|
136881
137148
|
init_servingRecipesList();
|
|
136882
137149
|
init_operations();
|
|
136883
137150
|
init_tools();
|
|
136884
|
-
|
|
137151
|
+
args312 = {
|
|
136885
137152
|
request: ListServingRecipesRequest$inboundSchema
|
|
136886
137153
|
};
|
|
136887
137154
|
tool$servingRecipesList = {
|
|
@@ -136889,9 +137156,9 @@ var init_servingRecipesList2 = __esm(() => {
|
|
|
136889
137156
|
description: `List serving recipes
|
|
136890
137157
|
|
|
136891
137158
|
List the cluster-global serving recipe catalog. Tenants see only enabled (deployable) recipes; cluster administrators see every registered recipe including disabled ones.`,
|
|
136892
|
-
args:
|
|
136893
|
-
tool: async (client,
|
|
136894
|
-
const [result, apiCall] = await servingRecipesList(client,
|
|
137159
|
+
args: args312,
|
|
137160
|
+
tool: async (client, args313, ctx) => {
|
|
137161
|
+
const [result, apiCall] = await servingRecipesList(client, args313.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
136895
137162
|
if (!result.ok) {
|
|
136896
137163
|
return {
|
|
136897
137164
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -136906,9 +137173,9 @@ List the cluster-global serving recipe catalog. Tenants see only enabled (deploy
|
|
|
136906
137173
|
|
|
136907
137174
|
// src/funcs/servingRecipesRegister.ts
|
|
136908
137175
|
function servingRecipesRegister(client, request, options) {
|
|
136909
|
-
return new APIPromise($
|
|
137176
|
+
return new APIPromise($do322(client, request, options));
|
|
136910
137177
|
}
|
|
136911
|
-
async function $
|
|
137178
|
+
async function $do322(client, request, options) {
|
|
136912
137179
|
const parsed = safeParse4(request, (value) => RegisterServingRecipeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
136913
137180
|
if (!parsed.ok) {
|
|
136914
137181
|
return [parsed, { status: "invalid" }];
|
|
@@ -136999,12 +137266,12 @@ var init_servingRecipesRegister = __esm(() => {
|
|
|
136999
137266
|
});
|
|
137000
137267
|
|
|
137001
137268
|
// src/mcp-server/tools/servingRecipesRegister.ts
|
|
137002
|
-
var
|
|
137269
|
+
var args313, tool$servingRecipesRegister;
|
|
137003
137270
|
var init_servingRecipesRegister2 = __esm(() => {
|
|
137004
137271
|
init_servingRecipesRegister();
|
|
137005
137272
|
init_operations();
|
|
137006
137273
|
init_tools();
|
|
137007
|
-
|
|
137274
|
+
args313 = {
|
|
137008
137275
|
request: RegisterServingRecipeRequest$inboundSchema
|
|
137009
137276
|
};
|
|
137010
137277
|
tool$servingRecipesRegister = {
|
|
@@ -137012,9 +137279,9 @@ var init_servingRecipesRegister2 = __esm(() => {
|
|
|
137012
137279
|
description: `Register a serving recipe
|
|
137013
137280
|
|
|
137014
137281
|
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.`,
|
|
137015
|
-
args:
|
|
137016
|
-
tool: async (client,
|
|
137017
|
-
const [result, apiCall] = await servingRecipesRegister(client,
|
|
137282
|
+
args: args313,
|
|
137283
|
+
tool: async (client, args314, ctx) => {
|
|
137284
|
+
const [result, apiCall] = await servingRecipesRegister(client, args314.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137018
137285
|
if (!result.ok) {
|
|
137019
137286
|
return {
|
|
137020
137287
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137029,9 +137296,9 @@ Register (or re-register) a digest-pinned recipe manifest in the catalog. A new
|
|
|
137029
137296
|
|
|
137030
137297
|
// src/funcs/servingRecipesSetEnabled.ts
|
|
137031
137298
|
function servingRecipesSetEnabled(client, request, options) {
|
|
137032
|
-
return new APIPromise($
|
|
137299
|
+
return new APIPromise($do323(client, request, options));
|
|
137033
137300
|
}
|
|
137034
|
-
async function $
|
|
137301
|
+
async function $do323(client, request, options) {
|
|
137035
137302
|
const parsed = safeParse4(request, (value) => SetServingRecipeEnabledRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137036
137303
|
if (!parsed.ok) {
|
|
137037
137304
|
return [parsed, { status: "invalid" }];
|
|
@@ -137122,12 +137389,12 @@ var init_servingRecipesSetEnabled = __esm(() => {
|
|
|
137122
137389
|
});
|
|
137123
137390
|
|
|
137124
137391
|
// src/mcp-server/tools/servingRecipesSetEnabled.ts
|
|
137125
|
-
var
|
|
137392
|
+
var args314, tool$servingRecipesSetEnabled;
|
|
137126
137393
|
var init_servingRecipesSetEnabled2 = __esm(() => {
|
|
137127
137394
|
init_servingRecipesSetEnabled();
|
|
137128
137395
|
init_operations();
|
|
137129
137396
|
init_tools();
|
|
137130
|
-
|
|
137397
|
+
args314 = {
|
|
137131
137398
|
request: SetServingRecipeEnabledRequest$inboundSchema
|
|
137132
137399
|
};
|
|
137133
137400
|
tool$servingRecipesSetEnabled = {
|
|
@@ -137135,9 +137402,9 @@ var init_servingRecipesSetEnabled2 = __esm(() => {
|
|
|
137135
137402
|
description: `Enable or disable a serving recipe
|
|
137136
137403
|
|
|
137137
137404
|
Toggle cluster-wide deployability of a registered recipe. Disabling does not stop deployments already running the recipe. Cluster administrators only.`,
|
|
137138
|
-
args:
|
|
137139
|
-
tool: async (client,
|
|
137140
|
-
const [result, apiCall] = await servingRecipesSetEnabled(client,
|
|
137405
|
+
args: args314,
|
|
137406
|
+
tool: async (client, args315, ctx) => {
|
|
137407
|
+
const [result, apiCall] = await servingRecipesSetEnabled(client, args315.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137141
137408
|
if (!result.ok) {
|
|
137142
137409
|
return {
|
|
137143
137410
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137152,9 +137419,9 @@ Toggle cluster-wide deployability of a registered recipe. Disabling does not sto
|
|
|
137152
137419
|
|
|
137153
137420
|
// src/funcs/servingSecretsCreate.ts
|
|
137154
137421
|
function servingSecretsCreate(client, request, options) {
|
|
137155
|
-
return new APIPromise($
|
|
137422
|
+
return new APIPromise($do324(client, request, options));
|
|
137156
137423
|
}
|
|
137157
|
-
async function $
|
|
137424
|
+
async function $do324(client, request, options) {
|
|
137158
137425
|
const parsed = safeParse4(request, (value) => CreateSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137159
137426
|
if (!parsed.ok) {
|
|
137160
137427
|
return [parsed, { status: "invalid" }];
|
|
@@ -137237,12 +137504,12 @@ var init_servingSecretsCreate = __esm(() => {
|
|
|
137237
137504
|
});
|
|
137238
137505
|
|
|
137239
137506
|
// src/mcp-server/tools/servingSecretsCreate.ts
|
|
137240
|
-
var
|
|
137507
|
+
var args315, tool$servingSecretsCreate;
|
|
137241
137508
|
var init_servingSecretsCreate2 = __esm(() => {
|
|
137242
137509
|
init_servingSecretsCreate();
|
|
137243
137510
|
init_operations();
|
|
137244
137511
|
init_tools();
|
|
137245
|
-
|
|
137512
|
+
args315 = {
|
|
137246
137513
|
request: CreateSecretRequest$inboundSchema
|
|
137247
137514
|
};
|
|
137248
137515
|
tool$servingSecretsCreate = {
|
|
@@ -137250,9 +137517,9 @@ var init_servingSecretsCreate2 = __esm(() => {
|
|
|
137250
137517
|
description: `Create a secret
|
|
137251
137518
|
|
|
137252
137519
|
Create a secret whose values are injected into your workloads as env vars.`,
|
|
137253
|
-
args:
|
|
137254
|
-
tool: async (client,
|
|
137255
|
-
const [result, apiCall] = await servingSecretsCreate(client,
|
|
137520
|
+
args: args315,
|
|
137521
|
+
tool: async (client, args316, ctx) => {
|
|
137522
|
+
const [result, apiCall] = await servingSecretsCreate(client, args316.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137256
137523
|
if (!result.ok) {
|
|
137257
137524
|
return {
|
|
137258
137525
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137267,9 +137534,9 @@ Create a secret whose values are injected into your workloads as env vars.`,
|
|
|
137267
137534
|
|
|
137268
137535
|
// src/funcs/servingSecretsDelete.ts
|
|
137269
137536
|
function servingSecretsDelete(client, request, options) {
|
|
137270
|
-
return new APIPromise($
|
|
137537
|
+
return new APIPromise($do325(client, request, options));
|
|
137271
137538
|
}
|
|
137272
|
-
async function $
|
|
137539
|
+
async function $do325(client, request, options) {
|
|
137273
137540
|
const parsed = safeParse4(request, (value) => DeleteSecretRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137274
137541
|
if (!parsed.ok) {
|
|
137275
137542
|
return [parsed, { status: "invalid" }];
|
|
@@ -137357,12 +137624,12 @@ var init_servingSecretsDelete = __esm(() => {
|
|
|
137357
137624
|
});
|
|
137358
137625
|
|
|
137359
137626
|
// src/mcp-server/tools/servingSecretsDelete.ts
|
|
137360
|
-
var
|
|
137627
|
+
var args316, tool$servingSecretsDelete;
|
|
137361
137628
|
var init_servingSecretsDelete2 = __esm(() => {
|
|
137362
137629
|
init_servingSecretsDelete();
|
|
137363
137630
|
init_operations();
|
|
137364
137631
|
init_tools();
|
|
137365
|
-
|
|
137632
|
+
args316 = {
|
|
137366
137633
|
request: DeleteSecretRequest$inboundSchema
|
|
137367
137634
|
};
|
|
137368
137635
|
tool$servingSecretsDelete = {
|
|
@@ -137370,9 +137637,9 @@ var init_servingSecretsDelete2 = __esm(() => {
|
|
|
137370
137637
|
description: `Delete a secret
|
|
137371
137638
|
|
|
137372
137639
|
Delete a secret.`,
|
|
137373
|
-
args:
|
|
137374
|
-
tool: async (client,
|
|
137375
|
-
const [result, apiCall] = await servingSecretsDelete(client,
|
|
137640
|
+
args: args316,
|
|
137641
|
+
tool: async (client, args317, ctx) => {
|
|
137642
|
+
const [result, apiCall] = await servingSecretsDelete(client, args317.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137376
137643
|
if (!result.ok) {
|
|
137377
137644
|
return {
|
|
137378
137645
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137386,9 +137653,9 @@ Delete a secret.`,
|
|
|
137386
137653
|
|
|
137387
137654
|
// src/funcs/servingSecretsList.ts
|
|
137388
137655
|
function servingSecretsList(client, request, options) {
|
|
137389
|
-
return new APIPromise($
|
|
137656
|
+
return new APIPromise($do326(client, request, options));
|
|
137390
137657
|
}
|
|
137391
|
-
async function $
|
|
137658
|
+
async function $do326(client, request, options) {
|
|
137392
137659
|
const parsed = safeParse4(request, (value) => ListSecretsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137393
137660
|
if (!parsed.ok) {
|
|
137394
137661
|
return [parsed, { status: "invalid" }];
|
|
@@ -137475,12 +137742,12 @@ var init_servingSecretsList = __esm(() => {
|
|
|
137475
137742
|
});
|
|
137476
137743
|
|
|
137477
137744
|
// src/mcp-server/tools/servingSecretsList.ts
|
|
137478
|
-
var
|
|
137745
|
+
var args317, tool$servingSecretsList;
|
|
137479
137746
|
var init_servingSecretsList2 = __esm(() => {
|
|
137480
137747
|
init_servingSecretsList();
|
|
137481
137748
|
init_operations();
|
|
137482
137749
|
init_tools();
|
|
137483
|
-
|
|
137750
|
+
args317 = {
|
|
137484
137751
|
request: ListSecretsRequest$inboundSchema
|
|
137485
137752
|
};
|
|
137486
137753
|
tool$servingSecretsList = {
|
|
@@ -137488,9 +137755,9 @@ var init_servingSecretsList2 = __esm(() => {
|
|
|
137488
137755
|
description: `List secrets (names only)
|
|
137489
137756
|
|
|
137490
137757
|
List your secrets by name (values are never returned).`,
|
|
137491
|
-
args:
|
|
137492
|
-
tool: async (client,
|
|
137493
|
-
const [result, apiCall] = await servingSecretsList(client,
|
|
137758
|
+
args: args317,
|
|
137759
|
+
tool: async (client, args318, ctx) => {
|
|
137760
|
+
const [result, apiCall] = await servingSecretsList(client, args318.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137494
137761
|
if (!result.ok) {
|
|
137495
137762
|
return {
|
|
137496
137763
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137505,9 +137772,9 @@ List your secrets by name (values are never returned).`,
|
|
|
137505
137772
|
|
|
137506
137773
|
// src/funcs/servingSpendGet.ts
|
|
137507
137774
|
function servingSpendGet(client, request, options) {
|
|
137508
|
-
return new APIPromise($
|
|
137775
|
+
return new APIPromise($do327(client, request, options));
|
|
137509
137776
|
}
|
|
137510
|
-
async function $
|
|
137777
|
+
async function $do327(client, request, options) {
|
|
137511
137778
|
const parsed = safeParse4(request, (value) => GetSpendRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137512
137779
|
if (!parsed.ok) {
|
|
137513
137780
|
return [parsed, { status: "invalid" }];
|
|
@@ -137594,12 +137861,12 @@ var init_servingSpendGet = __esm(() => {
|
|
|
137594
137861
|
});
|
|
137595
137862
|
|
|
137596
137863
|
// src/mcp-server/tools/servingSpendGet.ts
|
|
137597
|
-
var
|
|
137864
|
+
var args318, tool$servingSpendGet;
|
|
137598
137865
|
var init_servingSpendGet2 = __esm(() => {
|
|
137599
137866
|
init_servingSpendGet();
|
|
137600
137867
|
init_operations();
|
|
137601
137868
|
init_tools();
|
|
137602
|
-
|
|
137869
|
+
args318 = {
|
|
137603
137870
|
request: GetSpendRequest$inboundSchema
|
|
137604
137871
|
};
|
|
137605
137872
|
tool$servingSpendGet = {
|
|
@@ -137607,9 +137874,9 @@ var init_servingSpendGet2 = __esm(() => {
|
|
|
137607
137874
|
description: `Cost and spend summary
|
|
137608
137875
|
|
|
137609
137876
|
Aggregate spend for your organization, computed from retained compute ledgers as price × runtime overlap with the requested window. Spend is derived on read and is never stored.`,
|
|
137610
|
-
args:
|
|
137611
|
-
tool: async (client,
|
|
137612
|
-
const [result, apiCall] = await servingSpendGet(client,
|
|
137877
|
+
args: args318,
|
|
137878
|
+
tool: async (client, args319, ctx) => {
|
|
137879
|
+
const [result, apiCall] = await servingSpendGet(client, args319.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137613
137880
|
if (!result.ok) {
|
|
137614
137881
|
return {
|
|
137615
137882
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137624,9 +137891,9 @@ Aggregate spend for your organization, computed from retained compute ledgers as
|
|
|
137624
137891
|
|
|
137625
137892
|
// src/funcs/servingTenantsDeleteOrganization.ts
|
|
137626
137893
|
function servingTenantsDeleteOrganization(client, request, options) {
|
|
137627
|
-
return new APIPromise($
|
|
137894
|
+
return new APIPromise($do328(client, request, options));
|
|
137628
137895
|
}
|
|
137629
|
-
async function $
|
|
137896
|
+
async function $do328(client, request, options) {
|
|
137630
137897
|
const parsed = safeParse4(request, (value) => DeleteServingOrganizationRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137631
137898
|
if (!parsed.ok) {
|
|
137632
137899
|
return [parsed, { status: "invalid" }];
|
|
@@ -137717,12 +137984,12 @@ var init_servingTenantsDeleteOrganization = __esm(() => {
|
|
|
137717
137984
|
});
|
|
137718
137985
|
|
|
137719
137986
|
// src/mcp-server/tools/servingTenantsDeleteOrganization.ts
|
|
137720
|
-
var
|
|
137987
|
+
var args319, tool$servingTenantsDeleteOrganization;
|
|
137721
137988
|
var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
137722
137989
|
init_servingTenantsDeleteOrganization();
|
|
137723
137990
|
init_operations();
|
|
137724
137991
|
init_tools();
|
|
137725
|
-
|
|
137992
|
+
args319 = {
|
|
137726
137993
|
request: DeleteServingOrganizationRequest$inboundSchema
|
|
137727
137994
|
};
|
|
137728
137995
|
tool$servingTenantsDeleteOrganization = {
|
|
@@ -137730,9 +137997,9 @@ var init_servingTenantsDeleteOrganization2 = __esm(() => {
|
|
|
137730
137997
|
description: `Trigger organization deletion teardown
|
|
137731
137998
|
|
|
137732
137999
|
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.`,
|
|
137733
|
-
args:
|
|
137734
|
-
tool: async (client,
|
|
137735
|
-
const [result, apiCall] = await servingTenantsDeleteOrganization(client,
|
|
138000
|
+
args: args319,
|
|
138001
|
+
tool: async (client, args320, ctx) => {
|
|
138002
|
+
const [result, apiCall] = await servingTenantsDeleteOrganization(client, args320.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137736
138003
|
if (!result.ok) {
|
|
137737
138004
|
return {
|
|
137738
138005
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137747,9 +138014,9 @@ Durably records an organization.deleted.v1 event and starts (or adopts) the mand
|
|
|
137747
138014
|
|
|
137748
138015
|
// src/funcs/servingTenantsGet.ts
|
|
137749
138016
|
function servingTenantsGet(client, request, options) {
|
|
137750
|
-
return new APIPromise($
|
|
138017
|
+
return new APIPromise($do329(client, request, options));
|
|
137751
138018
|
}
|
|
137752
|
-
async function $
|
|
138019
|
+
async function $do329(client, request, options) {
|
|
137753
138020
|
const parsed = safeParse4(request, (value) => GetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137754
138021
|
if (!parsed.ok) {
|
|
137755
138022
|
return [parsed, { status: "invalid" }];
|
|
@@ -137837,12 +138104,12 @@ var init_servingTenantsGet = __esm(() => {
|
|
|
137837
138104
|
});
|
|
137838
138105
|
|
|
137839
138106
|
// src/mcp-server/tools/servingTenantsGet.ts
|
|
137840
|
-
var
|
|
138107
|
+
var args320, tool$servingTenantsGet;
|
|
137841
138108
|
var init_servingTenantsGet2 = __esm(() => {
|
|
137842
138109
|
init_servingTenantsGet();
|
|
137843
138110
|
init_operations();
|
|
137844
138111
|
init_tools();
|
|
137845
|
-
|
|
138112
|
+
args320 = {
|
|
137846
138113
|
request: GetServingTenantRequest$inboundSchema
|
|
137847
138114
|
};
|
|
137848
138115
|
tool$servingTenantsGet = {
|
|
@@ -137850,9 +138117,9 @@ var init_servingTenantsGet2 = __esm(() => {
|
|
|
137850
138117
|
description: `Get a serving tenant
|
|
137851
138118
|
|
|
137852
138119
|
Get one organization's serving enablement record. Cluster administrators only.`,
|
|
137853
|
-
args:
|
|
137854
|
-
tool: async (client,
|
|
137855
|
-
const [result, apiCall] = await servingTenantsGet(client,
|
|
138120
|
+
args: args320,
|
|
138121
|
+
tool: async (client, args321, ctx) => {
|
|
138122
|
+
const [result, apiCall] = await servingTenantsGet(client, args321.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137856
138123
|
if (!result.ok) {
|
|
137857
138124
|
return {
|
|
137858
138125
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137867,9 +138134,9 @@ Get one organization's serving enablement record. Cluster administrators only.`,
|
|
|
137867
138134
|
|
|
137868
138135
|
// src/funcs/servingTenantsGetOrganizationDeletion.ts
|
|
137869
138136
|
function servingTenantsGetOrganizationDeletion(client, request, options) {
|
|
137870
|
-
return new APIPromise($
|
|
138137
|
+
return new APIPromise($do330(client, request, options));
|
|
137871
138138
|
}
|
|
137872
|
-
async function $
|
|
138139
|
+
async function $do330(client, request, options) {
|
|
137873
138140
|
const parsed = safeParse4(request, (value) => GetServingOrganizationDeletionRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137874
138141
|
if (!parsed.ok) {
|
|
137875
138142
|
return [parsed, { status: "invalid" }];
|
|
@@ -137957,12 +138224,12 @@ var init_servingTenantsGetOrganizationDeletion = __esm(() => {
|
|
|
137957
138224
|
});
|
|
137958
138225
|
|
|
137959
138226
|
// src/mcp-server/tools/servingTenantsGetOrganizationDeletion.ts
|
|
137960
|
-
var
|
|
138227
|
+
var args321, tool$servingTenantsGetOrganizationDeletion;
|
|
137961
138228
|
var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
137962
138229
|
init_servingTenantsGetOrganizationDeletion();
|
|
137963
138230
|
init_operations();
|
|
137964
138231
|
init_tools();
|
|
137965
|
-
|
|
138232
|
+
args321 = {
|
|
137966
138233
|
request: GetServingOrganizationDeletionRequest$inboundSchema
|
|
137967
138234
|
};
|
|
137968
138235
|
tool$servingTenantsGetOrganizationDeletion = {
|
|
@@ -137970,9 +138237,9 @@ var init_servingTenantsGetOrganizationDeletion2 = __esm(() => {
|
|
|
137970
138237
|
description: `Get organization deletion teardown state
|
|
137971
138238
|
|
|
137972
138239
|
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.`,
|
|
137973
|
-
args:
|
|
137974
|
-
tool: async (client,
|
|
137975
|
-
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client,
|
|
138240
|
+
args: args321,
|
|
138241
|
+
tool: async (client, args322, ctx) => {
|
|
138242
|
+
const [result, apiCall] = await servingTenantsGetOrganizationDeletion(client, args322.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
137976
138243
|
if (!result.ok) {
|
|
137977
138244
|
return {
|
|
137978
138245
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -137987,9 +138254,9 @@ Returns the durable teardown-cascade state for an organization (running or compl
|
|
|
137987
138254
|
|
|
137988
138255
|
// src/funcs/servingTenantsList.ts
|
|
137989
138256
|
function servingTenantsList(client, request, options) {
|
|
137990
|
-
return new APIPromise($
|
|
138257
|
+
return new APIPromise($do331(client, request, options));
|
|
137991
138258
|
}
|
|
137992
|
-
async function $
|
|
138259
|
+
async function $do331(client, request, options) {
|
|
137993
138260
|
const parsed = safeParse4(request, (value) => ListServingTenantsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
137994
138261
|
if (!parsed.ok) {
|
|
137995
138262
|
return [parsed, { status: "invalid" }];
|
|
@@ -138076,12 +138343,12 @@ var init_servingTenantsList = __esm(() => {
|
|
|
138076
138343
|
});
|
|
138077
138344
|
|
|
138078
138345
|
// src/mcp-server/tools/servingTenantsList.ts
|
|
138079
|
-
var
|
|
138346
|
+
var args322, tool$servingTenantsList;
|
|
138080
138347
|
var init_servingTenantsList2 = __esm(() => {
|
|
138081
138348
|
init_servingTenantsList();
|
|
138082
138349
|
init_operations();
|
|
138083
138350
|
init_tools();
|
|
138084
|
-
|
|
138351
|
+
args322 = {
|
|
138085
138352
|
request: ListServingTenantsRequest$inboundSchema
|
|
138086
138353
|
};
|
|
138087
138354
|
tool$servingTenantsList = {
|
|
@@ -138089,9 +138356,9 @@ var init_servingTenantsList2 = __esm(() => {
|
|
|
138089
138356
|
description: `List serving tenants
|
|
138090
138357
|
|
|
138091
138358
|
List organization-wide serving enablement records. Cluster administrators only; a missing organization is not provisioned.`,
|
|
138092
|
-
args:
|
|
138093
|
-
tool: async (client,
|
|
138094
|
-
const [result, apiCall] = await servingTenantsList(client,
|
|
138359
|
+
args: args322,
|
|
138360
|
+
tool: async (client, args323, ctx) => {
|
|
138361
|
+
const [result, apiCall] = await servingTenantsList(client, args323.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138095
138362
|
if (!result.ok) {
|
|
138096
138363
|
return {
|
|
138097
138364
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138106,9 +138373,9 @@ List organization-wide serving enablement records. Cluster administrators only;
|
|
|
138106
138373
|
|
|
138107
138374
|
// src/funcs/servingTenantsSet.ts
|
|
138108
138375
|
function servingTenantsSet(client, request, options) {
|
|
138109
|
-
return new APIPromise($
|
|
138376
|
+
return new APIPromise($do332(client, request, options));
|
|
138110
138377
|
}
|
|
138111
|
-
async function $
|
|
138378
|
+
async function $do332(client, request, options) {
|
|
138112
138379
|
const parsed = safeParse4(request, (value) => SetServingTenantRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138113
138380
|
if (!parsed.ok) {
|
|
138114
138381
|
return [parsed, { status: "invalid" }];
|
|
@@ -138197,12 +138464,12 @@ var init_servingTenantsSet = __esm(() => {
|
|
|
138197
138464
|
});
|
|
138198
138465
|
|
|
138199
138466
|
// src/mcp-server/tools/servingTenantsSet.ts
|
|
138200
|
-
var
|
|
138467
|
+
var args323, tool$servingTenantsSet;
|
|
138201
138468
|
var init_servingTenantsSet2 = __esm(() => {
|
|
138202
138469
|
init_servingTenantsSet();
|
|
138203
138470
|
init_operations();
|
|
138204
138471
|
init_tools();
|
|
138205
|
-
|
|
138472
|
+
args323 = {
|
|
138206
138473
|
request: SetServingTenantRequest$inboundSchema
|
|
138207
138474
|
};
|
|
138208
138475
|
tool$servingTenantsSet = {
|
|
@@ -138210,9 +138477,9 @@ var init_servingTenantsSet2 = __esm(() => {
|
|
|
138210
138477
|
description: `Set serving tenant enablement
|
|
138211
138478
|
|
|
138212
138479
|
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.`,
|
|
138213
|
-
args:
|
|
138214
|
-
tool: async (client,
|
|
138215
|
-
const [result, apiCall] = await servingTenantsSet(client,
|
|
138480
|
+
args: args323,
|
|
138481
|
+
tool: async (client, args324, ctx) => {
|
|
138482
|
+
const [result, apiCall] = await servingTenantsSet(client, args324.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138216
138483
|
if (!result.ok) {
|
|
138217
138484
|
return {
|
|
138218
138485
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138227,9 +138494,9 @@ Enable or disable serving for an organization and all of its teams. Disabling bl
|
|
|
138227
138494
|
|
|
138228
138495
|
// src/funcs/servingVolumesCreate.ts
|
|
138229
138496
|
function servingVolumesCreate(client, request, options) {
|
|
138230
|
-
return new APIPromise($
|
|
138497
|
+
return new APIPromise($do333(client, request, options));
|
|
138231
138498
|
}
|
|
138232
|
-
async function $
|
|
138499
|
+
async function $do333(client, request, options) {
|
|
138233
138500
|
const parsed = safeParse4(request, (value) => CreateVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138234
138501
|
if (!parsed.ok) {
|
|
138235
138502
|
return [parsed, { status: "invalid" }];
|
|
@@ -138312,12 +138579,12 @@ var init_servingVolumesCreate = __esm(() => {
|
|
|
138312
138579
|
});
|
|
138313
138580
|
|
|
138314
138581
|
// src/mcp-server/tools/servingVolumesCreate.ts
|
|
138315
|
-
var
|
|
138582
|
+
var args324, tool$servingVolumesCreate;
|
|
138316
138583
|
var init_servingVolumesCreate2 = __esm(() => {
|
|
138317
138584
|
init_servingVolumesCreate();
|
|
138318
138585
|
init_operations();
|
|
138319
138586
|
init_tools();
|
|
138320
|
-
|
|
138587
|
+
args324 = {
|
|
138321
138588
|
request: CreateVolumeRequest$inboundSchema
|
|
138322
138589
|
};
|
|
138323
138590
|
tool$servingVolumesCreate = {
|
|
@@ -138325,9 +138592,9 @@ var init_servingVolumesCreate2 = __esm(() => {
|
|
|
138325
138592
|
description: `Create a volume
|
|
138326
138593
|
|
|
138327
138594
|
Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
138328
|
-
args:
|
|
138329
|
-
tool: async (client,
|
|
138330
|
-
const [result, apiCall] = await servingVolumesCreate(client,
|
|
138595
|
+
args: args324,
|
|
138596
|
+
tool: async (client, args325, ctx) => {
|
|
138597
|
+
const [result, apiCall] = await servingVolumesCreate(client, args325.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138331
138598
|
if (!result.ok) {
|
|
138332
138599
|
return {
|
|
138333
138600
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138342,9 +138609,9 @@ Create a persistent volume for weights, datasets, or checkpoints.`,
|
|
|
138342
138609
|
|
|
138343
138610
|
// src/funcs/servingVolumesDelete.ts
|
|
138344
138611
|
function servingVolumesDelete(client, request, options) {
|
|
138345
|
-
return new APIPromise($
|
|
138612
|
+
return new APIPromise($do334(client, request, options));
|
|
138346
138613
|
}
|
|
138347
|
-
async function $
|
|
138614
|
+
async function $do334(client, request, options) {
|
|
138348
138615
|
const parsed = safeParse4(request, (value) => DeleteVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138349
138616
|
if (!parsed.ok) {
|
|
138350
138617
|
return [parsed, { status: "invalid" }];
|
|
@@ -138432,12 +138699,12 @@ var init_servingVolumesDelete = __esm(() => {
|
|
|
138432
138699
|
});
|
|
138433
138700
|
|
|
138434
138701
|
// src/mcp-server/tools/servingVolumesDelete.ts
|
|
138435
|
-
var
|
|
138702
|
+
var args325, tool$servingVolumesDelete;
|
|
138436
138703
|
var init_servingVolumesDelete2 = __esm(() => {
|
|
138437
138704
|
init_servingVolumesDelete();
|
|
138438
138705
|
init_operations();
|
|
138439
138706
|
init_tools();
|
|
138440
|
-
|
|
138707
|
+
args325 = {
|
|
138441
138708
|
request: DeleteVolumeRequest$inboundSchema
|
|
138442
138709
|
};
|
|
138443
138710
|
tool$servingVolumesDelete = {
|
|
@@ -138445,9 +138712,9 @@ var init_servingVolumesDelete2 = __esm(() => {
|
|
|
138445
138712
|
description: `Delete a volume
|
|
138446
138713
|
|
|
138447
138714
|
Delete a volume and its contents.`,
|
|
138448
|
-
args:
|
|
138449
|
-
tool: async (client,
|
|
138450
|
-
const [result, apiCall] = await servingVolumesDelete(client,
|
|
138715
|
+
args: args325,
|
|
138716
|
+
tool: async (client, args326, ctx) => {
|
|
138717
|
+
const [result, apiCall] = await servingVolumesDelete(client, args326.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138451
138718
|
if (!result.ok) {
|
|
138452
138719
|
return {
|
|
138453
138720
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138461,9 +138728,9 @@ Delete a volume and its contents.`,
|
|
|
138461
138728
|
|
|
138462
138729
|
// src/funcs/servingVolumesGet.ts
|
|
138463
138730
|
function servingVolumesGet(client, request, options) {
|
|
138464
|
-
return new APIPromise($
|
|
138731
|
+
return new APIPromise($do335(client, request, options));
|
|
138465
138732
|
}
|
|
138466
|
-
async function $
|
|
138733
|
+
async function $do335(client, request, options) {
|
|
138467
138734
|
const parsed = safeParse4(request, (value) => GetVolumeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138468
138735
|
if (!parsed.ok) {
|
|
138469
138736
|
return [parsed, { status: "invalid" }];
|
|
@@ -138551,12 +138818,12 @@ var init_servingVolumesGet = __esm(() => {
|
|
|
138551
138818
|
});
|
|
138552
138819
|
|
|
138553
138820
|
// src/mcp-server/tools/servingVolumesGet.ts
|
|
138554
|
-
var
|
|
138821
|
+
var args326, tool$servingVolumesGet;
|
|
138555
138822
|
var init_servingVolumesGet2 = __esm(() => {
|
|
138556
138823
|
init_servingVolumesGet();
|
|
138557
138824
|
init_operations();
|
|
138558
138825
|
init_tools();
|
|
138559
|
-
|
|
138826
|
+
args326 = {
|
|
138560
138827
|
request: GetVolumeRequest$inboundSchema
|
|
138561
138828
|
};
|
|
138562
138829
|
tool$servingVolumesGet = {
|
|
@@ -138564,9 +138831,9 @@ var init_servingVolumesGet2 = __esm(() => {
|
|
|
138564
138831
|
description: `Get a volume
|
|
138565
138832
|
|
|
138566
138833
|
Retrieve a volume.`,
|
|
138567
|
-
args:
|
|
138568
|
-
tool: async (client,
|
|
138569
|
-
const [result, apiCall] = await servingVolumesGet(client,
|
|
138834
|
+
args: args326,
|
|
138835
|
+
tool: async (client, args327, ctx) => {
|
|
138836
|
+
const [result, apiCall] = await servingVolumesGet(client, args327.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138570
138837
|
if (!result.ok) {
|
|
138571
138838
|
return {
|
|
138572
138839
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138581,9 +138848,9 @@ Retrieve a volume.`,
|
|
|
138581
138848
|
|
|
138582
138849
|
// src/funcs/servingVolumesList.ts
|
|
138583
138850
|
function servingVolumesList(client, request, options) {
|
|
138584
|
-
return new APIPromise($
|
|
138851
|
+
return new APIPromise($do336(client, request, options));
|
|
138585
138852
|
}
|
|
138586
|
-
async function $
|
|
138853
|
+
async function $do336(client, request, options) {
|
|
138587
138854
|
const parsed = safeParse4(request, (value) => ListVolumesRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138588
138855
|
if (!parsed.ok) {
|
|
138589
138856
|
return [parsed, { status: "invalid" }];
|
|
@@ -138670,12 +138937,12 @@ var init_servingVolumesList = __esm(() => {
|
|
|
138670
138937
|
});
|
|
138671
138938
|
|
|
138672
138939
|
// src/mcp-server/tools/servingVolumesList.ts
|
|
138673
|
-
var
|
|
138940
|
+
var args327, tool$servingVolumesList;
|
|
138674
138941
|
var init_servingVolumesList2 = __esm(() => {
|
|
138675
138942
|
init_servingVolumesList();
|
|
138676
138943
|
init_operations();
|
|
138677
138944
|
init_tools();
|
|
138678
|
-
|
|
138945
|
+
args327 = {
|
|
138679
138946
|
request: ListVolumesRequest$inboundSchema
|
|
138680
138947
|
};
|
|
138681
138948
|
tool$servingVolumesList = {
|
|
@@ -138683,9 +138950,9 @@ var init_servingVolumesList2 = __esm(() => {
|
|
|
138683
138950
|
description: `List volumes
|
|
138684
138951
|
|
|
138685
138952
|
List your volumes.`,
|
|
138686
|
-
args:
|
|
138687
|
-
tool: async (client,
|
|
138688
|
-
const [result, apiCall] = await servingVolumesList(client,
|
|
138953
|
+
args: args327,
|
|
138954
|
+
tool: async (client, args328, ctx) => {
|
|
138955
|
+
const [result, apiCall] = await servingVolumesList(client, args328.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138689
138956
|
if (!result.ok) {
|
|
138690
138957
|
return {
|
|
138691
138958
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138700,9 +138967,9 @@ List your volumes.`,
|
|
|
138700
138967
|
|
|
138701
138968
|
// src/funcs/usageCosts.ts
|
|
138702
138969
|
function usageCosts(client, request, options) {
|
|
138703
|
-
return new APIPromise($
|
|
138970
|
+
return new APIPromise($do337(client, request, options));
|
|
138704
138971
|
}
|
|
138705
|
-
async function $
|
|
138972
|
+
async function $do337(client, request, options) {
|
|
138706
138973
|
const parsed = safeParse4(request, (value) => GetCostsRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138707
138974
|
if (!parsed.ok) {
|
|
138708
138975
|
return [parsed, { status: "invalid" }];
|
|
@@ -138785,12 +139052,12 @@ var init_usageCosts = __esm(() => {
|
|
|
138785
139052
|
});
|
|
138786
139053
|
|
|
138787
139054
|
// src/mcp-server/tools/usageCosts.ts
|
|
138788
|
-
var
|
|
139055
|
+
var args328, tool$usageCosts;
|
|
138789
139056
|
var init_usageCosts2 = __esm(() => {
|
|
138790
139057
|
init_usageCosts();
|
|
138791
139058
|
init_operations();
|
|
138792
139059
|
init_tools();
|
|
138793
|
-
|
|
139060
|
+
args328 = {
|
|
138794
139061
|
request: GetCostsRequest$inboundSchema
|
|
138795
139062
|
};
|
|
138796
139063
|
tool$usageCosts = {
|
|
@@ -138798,9 +139065,9 @@ var init_usageCosts2 = __esm(() => {
|
|
|
138798
139065
|
description: `Aggregate cost by dimension
|
|
138799
139066
|
|
|
138800
139067
|
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.`,
|
|
138801
|
-
args:
|
|
138802
|
-
tool: async (client,
|
|
138803
|
-
const [result, apiCall] = await usageCosts(client,
|
|
139068
|
+
args: args328,
|
|
139069
|
+
tool: async (client, args329, ctx) => {
|
|
139070
|
+
const [result, apiCall] = await usageCosts(client, args329.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138804
139071
|
if (!result.ok) {
|
|
138805
139072
|
return {
|
|
138806
139073
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138815,9 +139082,9 @@ Sums stored per-entry cost over [start_time, end_time), grouped by any of servic
|
|
|
138815
139082
|
|
|
138816
139083
|
// src/funcs/usageSandbox.ts
|
|
138817
139084
|
function usageSandbox(client, request, options) {
|
|
138818
|
-
return new APIPromise($
|
|
139085
|
+
return new APIPromise($do338(client, request, options));
|
|
138819
139086
|
}
|
|
138820
|
-
async function $
|
|
139087
|
+
async function $do338(client, request, options) {
|
|
138821
139088
|
const parsed = safeParse4(request, (value) => GetSandboxUsageRequest$outboundSchema.parse(value), "Input validation failed");
|
|
138822
139089
|
if (!parsed.ok) {
|
|
138823
139090
|
return [parsed, { status: "invalid" }];
|
|
@@ -138908,12 +139175,12 @@ var init_usageSandbox = __esm(() => {
|
|
|
138908
139175
|
});
|
|
138909
139176
|
|
|
138910
139177
|
// src/mcp-server/tools/usageSandbox.ts
|
|
138911
|
-
var
|
|
139178
|
+
var args329, tool$usageSandbox;
|
|
138912
139179
|
var init_usageSandbox2 = __esm(() => {
|
|
138913
139180
|
init_usageSandbox();
|
|
138914
139181
|
init_operations();
|
|
138915
139182
|
init_tools();
|
|
138916
|
-
|
|
139183
|
+
args329 = {
|
|
138917
139184
|
request: GetSandboxUsageRequest$inboundSchema
|
|
138918
139185
|
};
|
|
138919
139186
|
tool$usageSandbox = {
|
|
@@ -138921,9 +139188,9 @@ var init_usageSandbox2 = __esm(() => {
|
|
|
138921
139188
|
description: `Get Sandbox Usage
|
|
138922
139189
|
|
|
138923
139190
|
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\`).`,
|
|
138924
|
-
args:
|
|
138925
|
-
tool: async (client,
|
|
138926
|
-
const [result, apiCall] = await usageSandbox(client,
|
|
139191
|
+
args: args329,
|
|
139192
|
+
tool: async (client, args330, ctx) => {
|
|
139193
|
+
const [result, apiCall] = await usageSandbox(client, args330.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
138927
139194
|
if (!result.ok) {
|
|
138928
139195
|
return {
|
|
138929
139196
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -138940,7 +139207,7 @@ Aggregate sandbox usage (session lifecycle, execution, and workspace operations)
|
|
|
138940
139207
|
function createMCPServer(deps) {
|
|
138941
139208
|
const server = new McpServer({
|
|
138942
139209
|
name: "SDK",
|
|
138943
|
-
version: "0.51.
|
|
139210
|
+
version: "0.51.14"
|
|
138944
139211
|
});
|
|
138945
139212
|
const client = new SDKCore({
|
|
138946
139213
|
bearerAuth: deps.bearerAuth,
|
|
@@ -139257,6 +139524,7 @@ function createMCPServer(deps) {
|
|
|
139257
139524
|
tool(tool$servingDeploymentsListRevisions);
|
|
139258
139525
|
tool(tool$servingDeploymentsRollback);
|
|
139259
139526
|
tool(tool$servingDeploymentsUpdateScaling);
|
|
139527
|
+
tool(tool$servingEligibilityPreview);
|
|
139260
139528
|
tool(tool$servingFinetuneJobsList);
|
|
139261
139529
|
tool(tool$servingFinetuneJobsCreate);
|
|
139262
139530
|
tool(tool$servingFinetuneJobsCancel);
|
|
@@ -139599,6 +139867,7 @@ var init_server2 = __esm(() => {
|
|
|
139599
139867
|
init_servingDeploymentsRollback2();
|
|
139600
139868
|
init_servingDeploymentsUpdate2();
|
|
139601
139869
|
init_servingDeploymentsUpdateScaling2();
|
|
139870
|
+
init_servingEligibilityPreview2();
|
|
139602
139871
|
init_servingFinetuneJobsCancel2();
|
|
139603
139872
|
init_servingFinetuneJobsCreate2();
|
|
139604
139873
|
init_servingFinetuneJobsGet2();
|
|
@@ -140812,7 +141081,7 @@ var routes = rn({
|
|
|
140812
141081
|
var app = Ve(routes, {
|
|
140813
141082
|
name: "mcp",
|
|
140814
141083
|
versionInfo: {
|
|
140815
|
-
currentVersion: "0.51.
|
|
141084
|
+
currentVersion: "0.51.14"
|
|
140816
141085
|
}
|
|
140817
141086
|
});
|
|
140818
141087
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -140820,5 +141089,5 @@ export {
|
|
|
140820
141089
|
app
|
|
140821
141090
|
};
|
|
140822
141091
|
|
|
140823
|
-
//# debugId=
|
|
141092
|
+
//# debugId=349BC614AF91852E64756E2164756E21
|
|
140824
141093
|
//# sourceMappingURL=mcp-server.js.map
|