@calltelemetry/ct-lab-mcp 0.8.59 → 0.8.61
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 +3 -3
- package/dist/src/canonical/bridge.d.ts.map +1 -1
- package/dist/src/canonical/bridge.js +4 -0
- package/dist/src/canonical/bridge.js.map +1 -1
- package/dist/src/server.d.ts +3 -0
- package/dist/src/server.d.ts.map +1 -1
- package/dist/src/server.js +3 -0
- package/dist/src/server.js.map +1 -1
- package/dist/src/tools/appliance-claim-tools.d.ts +19 -12
- package/dist/src/tools/appliance-claim-tools.d.ts.map +1 -1
- package/dist/src/tools/appliance-claim-tools.js +29 -0
- package/dist/src/tools/appliance-claim-tools.js.map +1 -1
- package/dist/src/tools/canonical-guard.d.ts +1 -1
- package/dist/src/tools/canonical-guard.d.ts.map +1 -1
- package/dist/src/tools/canonical-guard.js +4 -0
- package/dist/src/tools/canonical-guard.js.map +1 -1
- package/dist/src/tools/claim-first.d.ts +76 -0
- package/dist/src/tools/claim-first.d.ts.map +1 -0
- package/dist/src/tools/claim-first.js +149 -0
- package/dist/src/tools/claim-first.js.map +1 -0
- package/dist/src/tools/claim-lifecycle.d.ts +4 -4
- package/dist/src/tools/claimed-import-qcow.d.ts +15 -7
- package/dist/src/tools/claimed-import-qcow.d.ts.map +1 -1
- package/dist/src/tools/claimed-import-qcow.js +9 -4
- package/dist/src/tools/claimed-import-qcow.js.map +1 -1
- package/dist/src/tools/cube-provision.d.ts +2 -2
- package/dist/src/tools/factory-reset.d.ts +4 -4
- package/dist/src/tools/import-qcow.d.ts +43 -13
- package/dist/src/tools/import-qcow.d.ts.map +1 -1
- package/dist/src/tools/import-qcow.js +63 -13
- package/dist/src/tools/import-qcow.js.map +1 -1
- package/dist/src/tools/index.d.ts.map +1 -1
- package/dist/src/tools/index.js +63 -4
- package/dist/src/tools/index.js.map +1 -1
- package/dist/src/tools/lab-dev.d.ts +26 -26
- package/dist/src/tools/license-tools.d.ts +4 -4
- package/dist/src/tools/list-hosts.d.ts +6 -0
- package/dist/src/tools/list-hosts.d.ts.map +1 -1
- package/dist/src/tools/list-hosts.js.map +1 -1
- package/dist/src/tools/provision-tools.d.ts +8 -8
- package/dist/src/tools/provision-tools.d.ts.map +1 -1
- package/dist/src/tools/provision-tools.js +51 -0
- package/dist/src/tools/provision-tools.js.map +1 -1
- package/dist/src/tools/quick-provision.d.ts +2 -2
- package/dist/src/tools/sandbox-tools.d.ts +4 -4
- package/dist/src/tools/slot-tools.d.ts +22 -4
- package/dist/src/tools/slot-tools.d.ts.map +1 -1
- package/dist/src/tools/slot-tools.js +15 -0
- package/dist/src/tools/slot-tools.js.map +1 -1
- package/package.json +1 -1
|
@@ -39,20 +39,20 @@ export declare const LabDevInputObjectSchema: z.ZodDiscriminatedUnion<"action",
|
|
|
39
39
|
action: "plan";
|
|
40
40
|
linearIssue: string;
|
|
41
41
|
leaseId: string;
|
|
42
|
+
profile: "ct-local-dev-v1";
|
|
42
43
|
assetId: string;
|
|
43
44
|
operationId: string;
|
|
44
45
|
receiptFile: string;
|
|
45
|
-
profile: "ct-local-dev-v1";
|
|
46
46
|
workspaceRef: string;
|
|
47
47
|
sourceDigest: string;
|
|
48
48
|
}, {
|
|
49
49
|
action: "plan";
|
|
50
50
|
linearIssue: string;
|
|
51
51
|
leaseId: string;
|
|
52
|
+
profile: "ct-local-dev-v1";
|
|
52
53
|
assetId: string;
|
|
53
54
|
operationId: string;
|
|
54
55
|
receiptFile: string;
|
|
55
|
-
profile: "ct-local-dev-v1";
|
|
56
56
|
workspaceRef: string;
|
|
57
57
|
sourceDigest: string;
|
|
58
58
|
}>, z.ZodObject<{
|
|
@@ -72,11 +72,11 @@ export declare const LabDevInputObjectSchema: z.ZodDiscriminatedUnion<"action",
|
|
|
72
72
|
action: "prepare";
|
|
73
73
|
linearIssue: string;
|
|
74
74
|
leaseId: string;
|
|
75
|
+
profile: "ct-local-dev-v1";
|
|
75
76
|
assetId: string;
|
|
76
77
|
operationId: string;
|
|
77
78
|
apply: boolean;
|
|
78
79
|
receiptFile: string;
|
|
79
|
-
profile: "ct-local-dev-v1";
|
|
80
80
|
workspaceRef: string;
|
|
81
81
|
sourceDigest: string;
|
|
82
82
|
planReceiptFile: string;
|
|
@@ -85,10 +85,10 @@ export declare const LabDevInputObjectSchema: z.ZodDiscriminatedUnion<"action",
|
|
|
85
85
|
action: "prepare";
|
|
86
86
|
linearIssue: string;
|
|
87
87
|
leaseId: string;
|
|
88
|
+
profile: "ct-local-dev-v1";
|
|
88
89
|
assetId: string;
|
|
89
90
|
operationId: string;
|
|
90
91
|
receiptFile: string;
|
|
91
|
-
profile: "ct-local-dev-v1";
|
|
92
92
|
workspaceRef: string;
|
|
93
93
|
sourceDigest: string;
|
|
94
94
|
planReceiptFile: string;
|
|
@@ -111,11 +111,11 @@ export declare const LabDevInputObjectSchema: z.ZodDiscriminatedUnion<"action",
|
|
|
111
111
|
action: "start";
|
|
112
112
|
linearIssue: string;
|
|
113
113
|
leaseId: string;
|
|
114
|
+
profile: "ct-local-dev-v1";
|
|
114
115
|
assetId: string;
|
|
115
116
|
operationId: string;
|
|
116
117
|
apply: boolean;
|
|
117
118
|
receiptFile: string;
|
|
118
|
-
profile: "ct-local-dev-v1";
|
|
119
119
|
workspaceRef: string;
|
|
120
120
|
sourceDigest: string;
|
|
121
121
|
planReceiptFile: string;
|
|
@@ -124,10 +124,10 @@ export declare const LabDevInputObjectSchema: z.ZodDiscriminatedUnion<"action",
|
|
|
124
124
|
action: "start";
|
|
125
125
|
linearIssue: string;
|
|
126
126
|
leaseId: string;
|
|
127
|
+
profile: "ct-local-dev-v1";
|
|
127
128
|
assetId: string;
|
|
128
129
|
operationId: string;
|
|
129
130
|
receiptFile: string;
|
|
130
|
-
profile: "ct-local-dev-v1";
|
|
131
131
|
workspaceRef: string;
|
|
132
132
|
sourceDigest: string;
|
|
133
133
|
planReceiptFile: string;
|
|
@@ -168,11 +168,11 @@ export declare const LabDevInputObjectSchema: z.ZodDiscriminatedUnion<"action",
|
|
|
168
168
|
action: "sync";
|
|
169
169
|
linearIssue: string;
|
|
170
170
|
leaseId: string;
|
|
171
|
+
profile: "ct-local-dev-v1";
|
|
171
172
|
assetId: string;
|
|
172
173
|
operationId: string;
|
|
173
174
|
apply: boolean;
|
|
174
175
|
receiptFile: string;
|
|
175
|
-
profile: "ct-local-dev-v1";
|
|
176
176
|
workspaceRef: string;
|
|
177
177
|
sourceDigest: string;
|
|
178
178
|
planReceiptFile: string;
|
|
@@ -181,10 +181,10 @@ export declare const LabDevInputObjectSchema: z.ZodDiscriminatedUnion<"action",
|
|
|
181
181
|
action: "sync";
|
|
182
182
|
linearIssue: string;
|
|
183
183
|
leaseId: string;
|
|
184
|
+
profile: "ct-local-dev-v1";
|
|
184
185
|
assetId: string;
|
|
185
186
|
operationId: string;
|
|
186
187
|
receiptFile: string;
|
|
187
|
-
profile: "ct-local-dev-v1";
|
|
188
188
|
workspaceRef: string;
|
|
189
189
|
sourceDigest: string;
|
|
190
190
|
planReceiptFile: string;
|
|
@@ -283,20 +283,20 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
283
283
|
action: "plan";
|
|
284
284
|
linearIssue: string;
|
|
285
285
|
leaseId: string;
|
|
286
|
+
profile: "ct-local-dev-v1";
|
|
286
287
|
assetId: string;
|
|
287
288
|
operationId: string;
|
|
288
289
|
receiptFile: string;
|
|
289
|
-
profile: "ct-local-dev-v1";
|
|
290
290
|
workspaceRef: string;
|
|
291
291
|
sourceDigest: string;
|
|
292
292
|
}, {
|
|
293
293
|
action: "plan";
|
|
294
294
|
linearIssue: string;
|
|
295
295
|
leaseId: string;
|
|
296
|
+
profile: "ct-local-dev-v1";
|
|
296
297
|
assetId: string;
|
|
297
298
|
operationId: string;
|
|
298
299
|
receiptFile: string;
|
|
299
|
-
profile: "ct-local-dev-v1";
|
|
300
300
|
workspaceRef: string;
|
|
301
301
|
sourceDigest: string;
|
|
302
302
|
}>, z.ZodObject<{
|
|
@@ -316,11 +316,11 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
316
316
|
action: "prepare";
|
|
317
317
|
linearIssue: string;
|
|
318
318
|
leaseId: string;
|
|
319
|
+
profile: "ct-local-dev-v1";
|
|
319
320
|
assetId: string;
|
|
320
321
|
operationId: string;
|
|
321
322
|
apply: boolean;
|
|
322
323
|
receiptFile: string;
|
|
323
|
-
profile: "ct-local-dev-v1";
|
|
324
324
|
workspaceRef: string;
|
|
325
325
|
sourceDigest: string;
|
|
326
326
|
planReceiptFile: string;
|
|
@@ -329,10 +329,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
329
329
|
action: "prepare";
|
|
330
330
|
linearIssue: string;
|
|
331
331
|
leaseId: string;
|
|
332
|
+
profile: "ct-local-dev-v1";
|
|
332
333
|
assetId: string;
|
|
333
334
|
operationId: string;
|
|
334
335
|
receiptFile: string;
|
|
335
|
-
profile: "ct-local-dev-v1";
|
|
336
336
|
workspaceRef: string;
|
|
337
337
|
sourceDigest: string;
|
|
338
338
|
planReceiptFile: string;
|
|
@@ -355,11 +355,11 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
355
355
|
action: "start";
|
|
356
356
|
linearIssue: string;
|
|
357
357
|
leaseId: string;
|
|
358
|
+
profile: "ct-local-dev-v1";
|
|
358
359
|
assetId: string;
|
|
359
360
|
operationId: string;
|
|
360
361
|
apply: boolean;
|
|
361
362
|
receiptFile: string;
|
|
362
|
-
profile: "ct-local-dev-v1";
|
|
363
363
|
workspaceRef: string;
|
|
364
364
|
sourceDigest: string;
|
|
365
365
|
planReceiptFile: string;
|
|
@@ -368,10 +368,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
368
368
|
action: "start";
|
|
369
369
|
linearIssue: string;
|
|
370
370
|
leaseId: string;
|
|
371
|
+
profile: "ct-local-dev-v1";
|
|
371
372
|
assetId: string;
|
|
372
373
|
operationId: string;
|
|
373
374
|
receiptFile: string;
|
|
374
|
-
profile: "ct-local-dev-v1";
|
|
375
375
|
workspaceRef: string;
|
|
376
376
|
sourceDigest: string;
|
|
377
377
|
planReceiptFile: string;
|
|
@@ -412,11 +412,11 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
412
412
|
action: "sync";
|
|
413
413
|
linearIssue: string;
|
|
414
414
|
leaseId: string;
|
|
415
|
+
profile: "ct-local-dev-v1";
|
|
415
416
|
assetId: string;
|
|
416
417
|
operationId: string;
|
|
417
418
|
apply: boolean;
|
|
418
419
|
receiptFile: string;
|
|
419
|
-
profile: "ct-local-dev-v1";
|
|
420
420
|
workspaceRef: string;
|
|
421
421
|
sourceDigest: string;
|
|
422
422
|
planReceiptFile: string;
|
|
@@ -425,10 +425,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
425
425
|
action: "sync";
|
|
426
426
|
linearIssue: string;
|
|
427
427
|
leaseId: string;
|
|
428
|
+
profile: "ct-local-dev-v1";
|
|
428
429
|
assetId: string;
|
|
429
430
|
operationId: string;
|
|
430
431
|
receiptFile: string;
|
|
431
|
-
profile: "ct-local-dev-v1";
|
|
432
432
|
workspaceRef: string;
|
|
433
433
|
sourceDigest: string;
|
|
434
434
|
planReceiptFile: string;
|
|
@@ -504,10 +504,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
504
504
|
action: "plan";
|
|
505
505
|
linearIssue: string;
|
|
506
506
|
leaseId: string;
|
|
507
|
+
profile: "ct-local-dev-v1";
|
|
507
508
|
assetId: string;
|
|
508
509
|
operationId: string;
|
|
509
510
|
receiptFile: string;
|
|
510
|
-
profile: "ct-local-dev-v1";
|
|
511
511
|
workspaceRef: string;
|
|
512
512
|
sourceDigest: string;
|
|
513
513
|
} | {
|
|
@@ -520,11 +520,11 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
520
520
|
action: "prepare";
|
|
521
521
|
linearIssue: string;
|
|
522
522
|
leaseId: string;
|
|
523
|
+
profile: "ct-local-dev-v1";
|
|
523
524
|
assetId: string;
|
|
524
525
|
operationId: string;
|
|
525
526
|
apply: boolean;
|
|
526
527
|
receiptFile: string;
|
|
527
|
-
profile: "ct-local-dev-v1";
|
|
528
528
|
workspaceRef: string;
|
|
529
529
|
sourceDigest: string;
|
|
530
530
|
planReceiptFile: string;
|
|
@@ -533,11 +533,11 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
533
533
|
action: "start";
|
|
534
534
|
linearIssue: string;
|
|
535
535
|
leaseId: string;
|
|
536
|
+
profile: "ct-local-dev-v1";
|
|
536
537
|
assetId: string;
|
|
537
538
|
operationId: string;
|
|
538
539
|
apply: boolean;
|
|
539
540
|
receiptFile: string;
|
|
540
|
-
profile: "ct-local-dev-v1";
|
|
541
541
|
workspaceRef: string;
|
|
542
542
|
sourceDigest: string;
|
|
543
543
|
planReceiptFile: string;
|
|
@@ -546,11 +546,11 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
546
546
|
action: "sync";
|
|
547
547
|
linearIssue: string;
|
|
548
548
|
leaseId: string;
|
|
549
|
+
profile: "ct-local-dev-v1";
|
|
549
550
|
assetId: string;
|
|
550
551
|
operationId: string;
|
|
551
552
|
apply: boolean;
|
|
552
553
|
receiptFile: string;
|
|
553
|
-
profile: "ct-local-dev-v1";
|
|
554
554
|
workspaceRef: string;
|
|
555
555
|
sourceDigest: string;
|
|
556
556
|
planReceiptFile: string;
|
|
@@ -585,10 +585,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
585
585
|
action: "plan";
|
|
586
586
|
linearIssue: string;
|
|
587
587
|
leaseId: string;
|
|
588
|
+
profile: "ct-local-dev-v1";
|
|
588
589
|
assetId: string;
|
|
589
590
|
operationId: string;
|
|
590
591
|
receiptFile: string;
|
|
591
|
-
profile: "ct-local-dev-v1";
|
|
592
592
|
workspaceRef: string;
|
|
593
593
|
sourceDigest: string;
|
|
594
594
|
} | {
|
|
@@ -601,10 +601,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
601
601
|
action: "prepare";
|
|
602
602
|
linearIssue: string;
|
|
603
603
|
leaseId: string;
|
|
604
|
+
profile: "ct-local-dev-v1";
|
|
604
605
|
assetId: string;
|
|
605
606
|
operationId: string;
|
|
606
607
|
receiptFile: string;
|
|
607
|
-
profile: "ct-local-dev-v1";
|
|
608
608
|
workspaceRef: string;
|
|
609
609
|
sourceDigest: string;
|
|
610
610
|
planReceiptFile: string;
|
|
@@ -614,10 +614,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
614
614
|
action: "start";
|
|
615
615
|
linearIssue: string;
|
|
616
616
|
leaseId: string;
|
|
617
|
+
profile: "ct-local-dev-v1";
|
|
617
618
|
assetId: string;
|
|
618
619
|
operationId: string;
|
|
619
620
|
receiptFile: string;
|
|
620
|
-
profile: "ct-local-dev-v1";
|
|
621
621
|
workspaceRef: string;
|
|
622
622
|
sourceDigest: string;
|
|
623
623
|
planReceiptFile: string;
|
|
@@ -627,10 +627,10 @@ export declare const LabDevInputSchema: z.ZodEffects<z.ZodDiscriminatedUnion<"ac
|
|
|
627
627
|
action: "sync";
|
|
628
628
|
linearIssue: string;
|
|
629
629
|
leaseId: string;
|
|
630
|
+
profile: "ct-local-dev-v1";
|
|
630
631
|
assetId: string;
|
|
631
632
|
operationId: string;
|
|
632
633
|
receiptFile: string;
|
|
633
|
-
profile: "ct-local-dev-v1";
|
|
634
634
|
workspaceRef: string;
|
|
635
635
|
sourceDigest: string;
|
|
636
636
|
planReceiptFile: string;
|
|
@@ -680,12 +680,12 @@ export declare const LabDevAdvertisedInputSchema: z.ZodObject<{
|
|
|
680
680
|
action: "start" | "stop" | "status" | "doctor" | "plan" | "prepare" | "sync" | "cleanup";
|
|
681
681
|
linearIssue?: string | undefined;
|
|
682
682
|
leaseId?: string | undefined;
|
|
683
|
+
profile?: "ct-local-dev-v1" | undefined;
|
|
683
684
|
assetId?: string | undefined;
|
|
684
685
|
operationId?: string | undefined;
|
|
685
686
|
apply?: boolean | undefined;
|
|
686
687
|
receiptFile?: string | undefined;
|
|
687
688
|
confirmAssetId?: string | undefined;
|
|
688
|
-
profile?: "ct-local-dev-v1" | undefined;
|
|
689
689
|
workspaceRef?: string | undefined;
|
|
690
690
|
sourceDigest?: string | undefined;
|
|
691
691
|
planReceiptFile?: string | undefined;
|
|
@@ -693,12 +693,12 @@ export declare const LabDevAdvertisedInputSchema: z.ZodObject<{
|
|
|
693
693
|
action: "start" | "stop" | "status" | "doctor" | "plan" | "prepare" | "sync" | "cleanup";
|
|
694
694
|
linearIssue?: string | undefined;
|
|
695
695
|
leaseId?: string | undefined;
|
|
696
|
+
profile?: "ct-local-dev-v1" | undefined;
|
|
696
697
|
assetId?: string | undefined;
|
|
697
698
|
operationId?: string | undefined;
|
|
698
699
|
apply?: boolean | undefined;
|
|
699
700
|
receiptFile?: string | undefined;
|
|
700
701
|
confirmAssetId?: string | undefined;
|
|
701
|
-
profile?: "ct-local-dev-v1" | undefined;
|
|
702
702
|
workspaceRef?: string | undefined;
|
|
703
703
|
sourceDigest?: string | undefined;
|
|
704
704
|
planReceiptFile?: string | undefined;
|
|
@@ -59,7 +59,7 @@ export declare const ApplyLicenseInputSchema: z.ZodObject<{
|
|
|
59
59
|
timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
60
60
|
}, "strip", z.ZodTypeAny, {
|
|
61
61
|
targetIp: string;
|
|
62
|
-
tier: "Demo" | "
|
|
62
|
+
tier: "Demo" | "Community" | "Essentials" | "Advanced" | "Premium" | "Beta";
|
|
63
63
|
port: number;
|
|
64
64
|
targetPath: string;
|
|
65
65
|
timeoutMs: number;
|
|
@@ -85,7 +85,7 @@ export declare const ApplyLicenseInputSchema: z.ZodObject<{
|
|
|
85
85
|
vmId?: string | number | undefined;
|
|
86
86
|
vmName?: string | undefined;
|
|
87
87
|
linearIssue?: string | undefined;
|
|
88
|
-
tier?: "Demo" | "
|
|
88
|
+
tier?: "Demo" | "Community" | "Essentials" | "Advanced" | "Premium" | "Beta" | undefined;
|
|
89
89
|
password?: string | undefined;
|
|
90
90
|
port?: number | undefined;
|
|
91
91
|
purpose?: string | undefined;
|
|
@@ -136,7 +136,7 @@ export declare const SideloadLicenseInputSchema: z.ZodObject<{
|
|
|
136
136
|
timeoutMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
137
137
|
}, "strip", z.ZodTypeAny, {
|
|
138
138
|
targetIp: string;
|
|
139
|
-
tier: "Demo" | "
|
|
139
|
+
tier: "Demo" | "Community" | "Essentials" | "Advanced" | "Premium" | "Beta";
|
|
140
140
|
port: number;
|
|
141
141
|
targetPath: string;
|
|
142
142
|
timeoutMs: number;
|
|
@@ -158,7 +158,7 @@ export declare const SideloadLicenseInputSchema: z.ZodObject<{
|
|
|
158
158
|
vmId?: string | number | undefined;
|
|
159
159
|
vmName?: string | undefined;
|
|
160
160
|
linearIssue?: string | undefined;
|
|
161
|
-
tier?: "Demo" | "
|
|
161
|
+
tier?: "Demo" | "Community" | "Essentials" | "Advanced" | "Premium" | "Beta" | undefined;
|
|
162
162
|
port?: number | undefined;
|
|
163
163
|
purpose?: string | undefined;
|
|
164
164
|
targetPath?: string | undefined;
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Query hypervisor status, CPU/RAM/Disk capacity, 8GB slot partition limits, active allocations, and headroom
|
|
4
4
|
* across Proxmox VE (proxmox-lab, proxmox-mini) and VMware ESXi (esxi-intel-192-168-123-176).
|
|
5
5
|
*/
|
|
6
|
+
import type { ClaimFirstHooks } from "./claim-first.js";
|
|
6
7
|
import { z } from "zod";
|
|
7
8
|
import { CallToolResult } from "../types/mcp.js";
|
|
8
9
|
import { SlotManager } from "../slot/manager.js";
|
|
@@ -35,6 +36,11 @@ export interface ToolContext {
|
|
|
35
36
|
canonicalBridge?: CanonicalLabBridge;
|
|
36
37
|
/** Which transport launched this server (local-stdio | local-sse). REL-920. */
|
|
37
38
|
plane?: LabPlane;
|
|
39
|
+
/**
|
|
40
|
+
* Claim-first hooks (REL-1388, ADR 0779). Production servers always set this;
|
|
41
|
+
* guest-creating tools claim before they create and remove the claim on failure.
|
|
42
|
+
*/
|
|
43
|
+
claimFirst?: ClaimFirstHooks;
|
|
38
44
|
}
|
|
39
45
|
export declare const ListHostsInputShape: {
|
|
40
46
|
host: z.ZodDefault<z.ZodOptional<z.ZodEnum<["proxmox-lab", "proxmox-mini", "proxmox-minis-lab", "esxi-intel-192-168-123-176", "all"]>>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list-hosts.d.ts","sourceRoot":"","sources":["../../../src/tools/list-hosts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,cAAc,EAIf,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,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["../../../src/tools/list-hosts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"list-hosts.js","sourceRoot":"","sources":["../../../src/tools/list-hosts.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAEL,gBAAgB,EAChB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,2BAA2B,EAAgB,MAAM,wBAAwB,CAAC;AAQtG,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAgCrD,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,IAAI,EAAE,CAAC;SACJ,IAAI,CAAC,CAAC,aAAa,EAAE,cAAc,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,KAAK,CAAC,CAAC;SAC/F,QAAQ,EAAE;SACV,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,2GAA2G,CAAC;IACxH,cAAc,EAAE,CAAC;SACd,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;SAChC,QAAQ,EAAE;SACV,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,mEAAmE,CAAC;IAChF,OAAO,EAAE,CAAC;SACP,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,KAAK,CAAC;SACd,QAAQ,CAAC,yEAAyE,CAAC;IACtF,IAAI,EAAE,CAAC;SACJ,OAAO,EAAE;SACT,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CAAC,oPAAoP,CAAC;IACjQ,MAAM,EAAE,CAAC;SACN,IAAI,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;SACvB,QAAQ,EAAE;SACV,OAAO,CAAC,OAAO,CAAC;SAChB,QAAQ,CAAC,2FAA2F,CAAC;CACzG,CAAC;AAE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
|
|
|
163
163
|
cpuCores?: number | undefined;
|
|
164
164
|
requester?: string | undefined;
|
|
165
165
|
purpose?: string | undefined;
|
|
166
|
+
ttlHours?: number | undefined;
|
|
166
167
|
assetId?: string | undefined;
|
|
167
168
|
hostAssetId?: string | undefined;
|
|
168
169
|
operationId?: string | undefined;
|
|
@@ -172,7 +173,6 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
172
173
|
workspaceRoot?: string | undefined;
|
|
173
174
|
importStorage?: string | undefined;
|
|
174
175
|
receiptFile?: string | undefined;
|
|
175
|
-
ttlHours?: number | undefined;
|
|
176
176
|
confirmAssetId?: string | undefined;
|
|
177
177
|
targetHost?: string | undefined;
|
|
178
178
|
outputFile?: string | undefined;
|
|
@@ -218,6 +218,7 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
218
218
|
cpuCores?: number | undefined;
|
|
219
219
|
requester?: string | undefined;
|
|
220
220
|
purpose?: string | undefined;
|
|
221
|
+
ttlHours?: number | undefined;
|
|
221
222
|
assetId?: string | undefined;
|
|
222
223
|
hostAssetId?: string | undefined;
|
|
223
224
|
operationId?: string | undefined;
|
|
@@ -228,7 +229,6 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
228
229
|
importStorage?: string | undefined;
|
|
229
230
|
apply?: boolean | undefined;
|
|
230
231
|
receiptFile?: string | undefined;
|
|
231
|
-
ttlHours?: number | undefined;
|
|
232
232
|
confirmAssetId?: string | undefined;
|
|
233
233
|
targetHost?: string | undefined;
|
|
234
234
|
outputFile?: string | undefined;
|
|
@@ -289,6 +289,7 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
289
289
|
cpuCores?: number | undefined;
|
|
290
290
|
requester?: string | undefined;
|
|
291
291
|
purpose?: string | undefined;
|
|
292
|
+
ttlHours?: number | undefined;
|
|
292
293
|
assetId?: string | undefined;
|
|
293
294
|
hostAssetId?: string | undefined;
|
|
294
295
|
operationId?: string | undefined;
|
|
@@ -298,7 +299,6 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
298
299
|
workspaceRoot?: string | undefined;
|
|
299
300
|
importStorage?: string | undefined;
|
|
300
301
|
receiptFile?: string | undefined;
|
|
301
|
-
ttlHours?: number | undefined;
|
|
302
302
|
confirmAssetId?: string | undefined;
|
|
303
303
|
targetHost?: string | undefined;
|
|
304
304
|
outputFile?: string | undefined;
|
|
@@ -344,6 +344,7 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
344
344
|
cpuCores?: number | undefined;
|
|
345
345
|
requester?: string | undefined;
|
|
346
346
|
purpose?: string | undefined;
|
|
347
|
+
ttlHours?: number | undefined;
|
|
347
348
|
assetId?: string | undefined;
|
|
348
349
|
hostAssetId?: string | undefined;
|
|
349
350
|
operationId?: string | undefined;
|
|
@@ -354,7 +355,6 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
354
355
|
importStorage?: string | undefined;
|
|
355
356
|
apply?: boolean | undefined;
|
|
356
357
|
receiptFile?: string | undefined;
|
|
357
|
-
ttlHours?: number | undefined;
|
|
358
358
|
confirmAssetId?: string | undefined;
|
|
359
359
|
targetHost?: string | undefined;
|
|
360
360
|
outputFile?: string | undefined;
|
|
@@ -415,6 +415,7 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
415
415
|
cpuCores?: number | undefined;
|
|
416
416
|
requester?: string | undefined;
|
|
417
417
|
purpose?: string | undefined;
|
|
418
|
+
ttlHours?: number | undefined;
|
|
418
419
|
assetId?: string | undefined;
|
|
419
420
|
hostAssetId?: string | undefined;
|
|
420
421
|
operationId?: string | undefined;
|
|
@@ -424,7 +425,6 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
424
425
|
workspaceRoot?: string | undefined;
|
|
425
426
|
importStorage?: string | undefined;
|
|
426
427
|
receiptFile?: string | undefined;
|
|
427
|
-
ttlHours?: number | undefined;
|
|
428
428
|
confirmAssetId?: string | undefined;
|
|
429
429
|
targetHost?: string | undefined;
|
|
430
430
|
outputFile?: string | undefined;
|
|
@@ -470,6 +470,7 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
470
470
|
cpuCores?: number | undefined;
|
|
471
471
|
requester?: string | undefined;
|
|
472
472
|
purpose?: string | undefined;
|
|
473
|
+
ttlHours?: number | undefined;
|
|
473
474
|
assetId?: string | undefined;
|
|
474
475
|
hostAssetId?: string | undefined;
|
|
475
476
|
operationId?: string | undefined;
|
|
@@ -480,7 +481,6 @@ export declare const ProvisionVmInputSchema: z.ZodEffects<z.ZodEffects<z.ZodObje
|
|
|
480
481
|
importStorage?: string | undefined;
|
|
481
482
|
apply?: boolean | undefined;
|
|
482
483
|
receiptFile?: string | undefined;
|
|
483
|
-
ttlHours?: number | undefined;
|
|
484
484
|
confirmAssetId?: string | undefined;
|
|
485
485
|
targetHost?: string | undefined;
|
|
486
486
|
outputFile?: string | undefined;
|
|
@@ -680,6 +680,7 @@ export declare const AutoProvisionVmInputSchema: z.ZodObject<{
|
|
|
680
680
|
cpuCores?: number | undefined;
|
|
681
681
|
requester?: string | undefined;
|
|
682
682
|
purpose?: string | undefined;
|
|
683
|
+
ttlHours?: number | undefined;
|
|
683
684
|
assetId?: string | undefined;
|
|
684
685
|
hostAssetId?: string | undefined;
|
|
685
686
|
operationId?: string | undefined;
|
|
@@ -689,7 +690,6 @@ export declare const AutoProvisionVmInputSchema: z.ZodObject<{
|
|
|
689
690
|
workspaceRoot?: string | undefined;
|
|
690
691
|
importStorage?: string | undefined;
|
|
691
692
|
receiptFile?: string | undefined;
|
|
692
|
-
ttlHours?: number | undefined;
|
|
693
693
|
confirmAssetId?: string | undefined;
|
|
694
694
|
placementSeed?: string | undefined;
|
|
695
695
|
targetHost?: string | undefined;
|
|
@@ -738,6 +738,7 @@ export declare const AutoProvisionVmInputSchema: z.ZodObject<{
|
|
|
738
738
|
cpuCores?: number | undefined;
|
|
739
739
|
requester?: string | undefined;
|
|
740
740
|
purpose?: string | undefined;
|
|
741
|
+
ttlHours?: number | undefined;
|
|
741
742
|
assetId?: string | undefined;
|
|
742
743
|
hostAssetId?: string | undefined;
|
|
743
744
|
operationId?: string | undefined;
|
|
@@ -748,7 +749,6 @@ export declare const AutoProvisionVmInputSchema: z.ZodObject<{
|
|
|
748
749
|
importStorage?: string | undefined;
|
|
749
750
|
apply?: boolean | undefined;
|
|
750
751
|
receiptFile?: string | undefined;
|
|
751
|
-
ttlHours?: number | undefined;
|
|
752
752
|
confirmAssetId?: string | undefined;
|
|
753
753
|
placementSeed?: string | undefined;
|
|
754
754
|
targetHost?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provision-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/provision-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"provision-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/provision-tools.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,cAAc,EAA2C,MAAM,iBAAiB,CAAC;AAM1F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAgF9C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmPjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAEjF,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,uBAAuB,EAChC,OAAO,EAAE,WAAW,GACnB,OAAO,CAAC,cAAc,CAAC,CA2hBzB"}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* with IP/VLAN networking and auto-attached or pre-claimed 8GB slot lease.
|
|
6
6
|
*/
|
|
7
7
|
import { z } from "zod";
|
|
8
|
+
import { claimLegacyGuest, ttlHoursFrom } from "./claim-first.js";
|
|
8
9
|
import { ProxmoxErrorCode, createToolErrorResult } from "../types/mcp.js";
|
|
9
10
|
import { formatProvisionResult, formatAutoProvisionResult, } from "../utils/formatters.js";
|
|
10
11
|
import { CapacityExceededError, GlobalCapacityExceededError, DatastoreCapacityExceededError, HypervisorSlotUnsupportedError, } from "../slot/types.js";
|
|
@@ -299,6 +300,7 @@ export async function handleProvisionVm(rawArgs, context) {
|
|
|
299
300
|
let slotClaim;
|
|
300
301
|
let createdVmId;
|
|
301
302
|
let createdHost;
|
|
303
|
+
let claimRef;
|
|
302
304
|
try {
|
|
303
305
|
const parseResult = ProvisionVmInputSchema.safeParse(rawArgs);
|
|
304
306
|
if (!parseResult.success) {
|
|
@@ -499,6 +501,15 @@ export async function handleProvisionVm(rawArgs, context) {
|
|
|
499
501
|
claimId = claimResult.claimId;
|
|
500
502
|
slotClaim = claimResult;
|
|
501
503
|
}
|
|
504
|
+
// 1b. CLAIM FIRST (REL-1388, ADR 0779): the appliance operator destroys any
|
|
505
|
+
// guest no ApplianceClaim names, so the claim must exist before the clone.
|
|
506
|
+
claimRef = await claimLegacyGuest(context, {
|
|
507
|
+
hostId: effectiveTargetHost || (slotClaim ? slotClaim.hostId : undefined),
|
|
508
|
+
vmName: newName,
|
|
509
|
+
vmid: typeof newVmId === "number" ? newVmId : undefined,
|
|
510
|
+
ttlHours: ttlHoursFrom({ durationMinutes: 120 }),
|
|
511
|
+
linearIssue,
|
|
512
|
+
});
|
|
502
513
|
// 2. Perform VM Provisioning via MultiHypervisorManager
|
|
503
514
|
const hypervisorPref = args.hypervisorType === "any" ? undefined : args.hypervisorType;
|
|
504
515
|
const cloneParams = {
|
|
@@ -572,6 +583,14 @@ export async function handleProvisionVm(rawArgs, context) {
|
|
|
572
583
|
}
|
|
573
584
|
createdVmId = provisionResult.vmId;
|
|
574
585
|
createdHost = provisionResult.hostName;
|
|
586
|
+
if (claimRef && context.claimFirst && Number(provisionResult.vmId) > 0) {
|
|
587
|
+
try {
|
|
588
|
+
await context.claimFirst.attachVmid(claimRef.claimName, Number(provisionResult.vmId));
|
|
589
|
+
}
|
|
590
|
+
catch (attachErr) {
|
|
591
|
+
console.error("[provision_vm] Warning attaching VMID to ApplianceClaim:", attachErr);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
575
594
|
// 3. Attach VM ID/Name to the claimed slot
|
|
576
595
|
if (claimId) {
|
|
577
596
|
try {
|
|
@@ -626,6 +645,14 @@ export async function handleProvisionVm(rawArgs, context) {
|
|
|
626
645
|
};
|
|
627
646
|
}
|
|
628
647
|
catch (error) {
|
|
648
|
+
if (claimRef?.created && context.claimFirst) {
|
|
649
|
+
try {
|
|
650
|
+
await context.claimFirst.remove(claimRef.claimName);
|
|
651
|
+
}
|
|
652
|
+
catch {
|
|
653
|
+
// ignore claim rollback error
|
|
654
|
+
}
|
|
655
|
+
}
|
|
629
656
|
// If we auto-acquired a slot and provisioning failed, roll back the slot lease
|
|
630
657
|
if (autoClaimId) {
|
|
631
658
|
try {
|
|
@@ -854,6 +881,7 @@ export async function handleAutoProvisionVm(rawArgs, context) {
|
|
|
854
881
|
let claimedSlot;
|
|
855
882
|
let createdVmId;
|
|
856
883
|
let createdHost;
|
|
884
|
+
let autoClaimRef;
|
|
857
885
|
const startTime = Date.now();
|
|
858
886
|
try {
|
|
859
887
|
const parseResult = AutoProvisionVmInputSchema.safeParse(rawArgs);
|
|
@@ -1053,6 +1081,13 @@ export async function handleAutoProvisionVm(rawArgs, context) {
|
|
|
1053
1081
|
const hostId = claimedSlot.hostId;
|
|
1054
1082
|
createdHost = hostId;
|
|
1055
1083
|
const hypType = hostId.startsWith("esxi") ? "esxi" : "proxmox";
|
|
1084
|
+
// 1b. CLAIM FIRST (REL-1388, ADR 0779): claim the guest by name before it exists.
|
|
1085
|
+
autoClaimRef = await claimLegacyGuest(context, {
|
|
1086
|
+
hostId,
|
|
1087
|
+
vmName,
|
|
1088
|
+
ttlHours: ttlHoursFrom({ durationMinutes }),
|
|
1089
|
+
linearIssue,
|
|
1090
|
+
});
|
|
1056
1091
|
// 2. Resolve Base Template (prioritize AlmaLinux 9.7 base template: VMID 9000 / CT-ALMALINUX9-TEMPLATE / /almalinux.*9.*7/i)
|
|
1057
1092
|
let template = args.template ?? args.sourceVmIdOrName;
|
|
1058
1093
|
if (!template && context.hypervisorManager) {
|
|
@@ -1149,6 +1184,14 @@ export async function handleAutoProvisionVm(rawArgs, context) {
|
|
|
1149
1184
|
throw new Error("No hypervisor manager available to provision VM.");
|
|
1150
1185
|
}
|
|
1151
1186
|
createdVmId = provisionResult.vmId;
|
|
1187
|
+
if (autoClaimRef && context.claimFirst && Number(provisionResult.vmId) > 0) {
|
|
1188
|
+
try {
|
|
1189
|
+
await context.claimFirst.attachVmid(autoClaimRef.claimName, Number(provisionResult.vmId));
|
|
1190
|
+
}
|
|
1191
|
+
catch (attachErr) {
|
|
1192
|
+
console.error("[auto_provision_vm] Warning attaching VMID to ApplianceClaim:", attachErr);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1152
1195
|
// 4. Attach VM ID/Name to Slot Lease
|
|
1153
1196
|
await context.slotManager.attachVm(claimedSlot.claimId, provisionResult.vmId, provisionResult.name);
|
|
1154
1197
|
// 5. Determine Guest IP Address
|
|
@@ -1272,6 +1315,14 @@ export async function handleAutoProvisionVm(rawArgs, context) {
|
|
|
1272
1315
|
};
|
|
1273
1316
|
}
|
|
1274
1317
|
catch (error) {
|
|
1318
|
+
if (autoClaimRef?.created && context.claimFirst) {
|
|
1319
|
+
try {
|
|
1320
|
+
await context.claimFirst.remove(autoClaimRef.claimName);
|
|
1321
|
+
}
|
|
1322
|
+
catch {
|
|
1323
|
+
// ignore claim rollback error
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1275
1326
|
// Atomic Rollback: Release claimed slot if lease was acquired
|
|
1276
1327
|
if (claimedSlot) {
|
|
1277
1328
|
try {
|