@x12i/kinedrop 0.0.0-stage → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,1867 @@
1
+ // Generated by scripts/generate-interface-contracts.mjs; edit the Apps registry.
2
+ export const APPS_OPERATIONS = Object.freeze([
3
+ {
4
+ "id": "auth.login",
5
+ "http": {
6
+ "method": "POST",
7
+ "path": "/v1/auth/device",
8
+ "success": 201
9
+ },
10
+ "sdk": "auth.login",
11
+ "input": {
12
+ "type": "object",
13
+ "additionalProperties": false,
14
+ "properties": {
15
+ "orgId": {
16
+ "type": "string",
17
+ "minLength": 1,
18
+ "maxLength": 128,
19
+ "description": "Organization id."
20
+ },
21
+ "scopes": {
22
+ "type": "array",
23
+ "items": {
24
+ "type": "string",
25
+ "minLength": 1,
26
+ "maxLength": 64
27
+ },
28
+ "minItems": 1,
29
+ "maxItems": 20
30
+ },
31
+ "deviceName": {
32
+ "type": "string",
33
+ "minLength": 1,
34
+ "maxLength": 100
35
+ },
36
+ "principalType": {
37
+ "enum": [
38
+ "agent",
39
+ "ci",
40
+ "user",
41
+ "operator"
42
+ ]
43
+ }
44
+ },
45
+ "required": [
46
+ "orgId"
47
+ ]
48
+ },
49
+ "risk": {
50
+ "level": "low",
51
+ "environmentSensitive": false
52
+ },
53
+ "availability": {
54
+ "sdk": true,
55
+ "cli": true,
56
+ "mcp": false,
57
+ "console": false
58
+ },
59
+ "handlesSecrets": true
60
+ },
61
+ {
62
+ "id": "source.capture",
63
+ "http": {
64
+ "method": "POST",
65
+ "path": "/v1/orgs/{orgId}/apps/{app}/sources",
66
+ "success": 201
67
+ },
68
+ "sdk": "apps.sources.capture",
69
+ "input": {
70
+ "type": "object",
71
+ "additionalProperties": false,
72
+ "properties": {
73
+ "orgId": {
74
+ "type": "string",
75
+ "minLength": 1,
76
+ "maxLength": 128,
77
+ "description": "Organization id."
78
+ },
79
+ "app": {
80
+ "type": "string",
81
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
82
+ "minLength": 2,
83
+ "maxLength": 24,
84
+ "description": "Application name."
85
+ },
86
+ "manifest": {
87
+ "type": "object",
88
+ "additionalProperties": false,
89
+ "properties": {
90
+ "files": {
91
+ "type": "array",
92
+ "items": {
93
+ "type": "object",
94
+ "additionalProperties": false,
95
+ "properties": {
96
+ "path": {
97
+ "type": "string",
98
+ "minLength": 1,
99
+ "maxLength": 500
100
+ },
101
+ "digest": {
102
+ "type": "string",
103
+ "pattern": "^sha256:[0-9a-f]{64}$"
104
+ },
105
+ "sizeBytes": {
106
+ "type": "integer",
107
+ "minimum": 0
108
+ }
109
+ },
110
+ "required": [
111
+ "path",
112
+ "digest",
113
+ "sizeBytes"
114
+ ]
115
+ },
116
+ "maxItems": 20000
117
+ },
118
+ "repository": {
119
+ "type": "string",
120
+ "minLength": 1,
121
+ "maxLength": 500
122
+ },
123
+ "commit": {
124
+ "type": "string",
125
+ "pattern": "^[0-9a-f]{40}$"
126
+ }
127
+ },
128
+ "required": [
129
+ "files"
130
+ ]
131
+ },
132
+ "files": {
133
+ "type": "object",
134
+ "description": "Actual source bytes keyed by manifest path. Each value is UTF-8 text or canonical base64; every digest and size is verified before capture.",
135
+ "additionalProperties": {
136
+ "oneOf": [
137
+ {
138
+ "type": "string",
139
+ "maxLength": 104857600
140
+ },
141
+ {
142
+ "type": "object",
143
+ "additionalProperties": false,
144
+ "properties": {
145
+ "text": {
146
+ "type": "string",
147
+ "maxLength": 104857600
148
+ }
149
+ },
150
+ "required": [
151
+ "text"
152
+ ]
153
+ },
154
+ {
155
+ "type": "object",
156
+ "additionalProperties": false,
157
+ "properties": {
158
+ "contentBase64": {
159
+ "type": "string",
160
+ "maxLength": 139810136
161
+ }
162
+ },
163
+ "required": [
164
+ "contentBase64"
165
+ ]
166
+ }
167
+ ]
168
+ }
169
+ }
170
+ },
171
+ "required": [
172
+ "orgId",
173
+ "app",
174
+ "manifest"
175
+ ]
176
+ },
177
+ "risk": {
178
+ "level": "low",
179
+ "environmentSensitive": false
180
+ },
181
+ "availability": {
182
+ "sdk": true,
183
+ "cli": true,
184
+ "mcp": true,
185
+ "console": true
186
+ },
187
+ "mcp": {
188
+ "tool": "deploy",
189
+ "action": "capture"
190
+ },
191
+ "handlesSecrets": false
192
+ },
193
+ {
194
+ "id": "deploy.plan",
195
+ "http": {
196
+ "method": "POST",
197
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/plans",
198
+ "success": 201
199
+ },
200
+ "sdk": "apps.plan",
201
+ "input": {
202
+ "type": "object",
203
+ "additionalProperties": false,
204
+ "properties": {
205
+ "orgId": {
206
+ "type": "string",
207
+ "minLength": 1,
208
+ "maxLength": 128,
209
+ "description": "Organization id."
210
+ },
211
+ "app": {
212
+ "type": "string",
213
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
214
+ "minLength": 2,
215
+ "maxLength": 24,
216
+ "description": "Application name."
217
+ },
218
+ "env": {
219
+ "type": "string",
220
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
221
+ "minLength": 2,
222
+ "maxLength": 24,
223
+ "description": "Environment name."
224
+ },
225
+ "source": {
226
+ "type": "object",
227
+ "additionalProperties": false,
228
+ "properties": {
229
+ "kind": {
230
+ "enum": [
231
+ "snapshot",
232
+ "artifact"
233
+ ]
234
+ },
235
+ "digest": {
236
+ "type": "string",
237
+ "pattern": "^sha256:[0-9a-f]{64}$"
238
+ },
239
+ "commit": {
240
+ "type": "string",
241
+ "pattern": "^[a-f0-9]{40}$",
242
+ "description": "Pinned commit from a verified Git source import."
243
+ }
244
+ },
245
+ "required": [
246
+ "kind",
247
+ "digest"
248
+ ]
249
+ },
250
+ "answers": {
251
+ "type": "array",
252
+ "items": {
253
+ "type": "object",
254
+ "additionalProperties": false,
255
+ "properties": {
256
+ "questionId": {
257
+ "type": "string",
258
+ "pattern": "^[a-z][a-z0-9_.-]{1,63}$"
259
+ },
260
+ "value": {
261
+ "type": "string",
262
+ "minLength": 1,
263
+ "maxLength": 200
264
+ }
265
+ },
266
+ "required": [
267
+ "questionId",
268
+ "value"
269
+ ]
270
+ },
271
+ "minItems": 1,
272
+ "maxItems": 20
273
+ }
274
+ },
275
+ "required": [
276
+ "orgId",
277
+ "app",
278
+ "env",
279
+ "source"
280
+ ]
281
+ },
282
+ "risk": {
283
+ "level": "read",
284
+ "environmentSensitive": false
285
+ },
286
+ "availability": {
287
+ "sdk": true,
288
+ "cli": true,
289
+ "mcp": true,
290
+ "console": true
291
+ },
292
+ "mcp": {
293
+ "tool": "inspect",
294
+ "action": "plan"
295
+ },
296
+ "handlesSecrets": false
297
+ },
298
+ {
299
+ "id": "deploy.submit",
300
+ "http": {
301
+ "method": "POST",
302
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/deployments",
303
+ "success": 202
304
+ },
305
+ "sdk": "apps.deploy",
306
+ "input": {
307
+ "type": "object",
308
+ "additionalProperties": false,
309
+ "properties": {
310
+ "orgId": {
311
+ "type": "string",
312
+ "minLength": 1,
313
+ "maxLength": 128,
314
+ "description": "Organization id."
315
+ },
316
+ "app": {
317
+ "type": "string",
318
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
319
+ "minLength": 2,
320
+ "maxLength": 24,
321
+ "description": "Application name."
322
+ },
323
+ "env": {
324
+ "type": "string",
325
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
326
+ "minLength": 2,
327
+ "maxLength": 24,
328
+ "description": "Environment name."
329
+ },
330
+ "source": {
331
+ "type": "object",
332
+ "additionalProperties": false,
333
+ "properties": {
334
+ "kind": {
335
+ "enum": [
336
+ "snapshot",
337
+ "artifact"
338
+ ]
339
+ },
340
+ "digest": {
341
+ "type": "string",
342
+ "pattern": "^sha256:[0-9a-f]{64}$"
343
+ },
344
+ "commit": {
345
+ "type": "string",
346
+ "pattern": "^[a-f0-9]{40}$",
347
+ "description": "Pinned commit from a verified Git source import."
348
+ }
349
+ },
350
+ "required": [
351
+ "kind",
352
+ "digest"
353
+ ]
354
+ },
355
+ "planId": {
356
+ "type": "string",
357
+ "pattern": "^plan_[0-9A-Za-z]{10,32}$",
358
+ "description": "Plan id."
359
+ },
360
+ "answers": {
361
+ "type": "array",
362
+ "items": {
363
+ "type": "object",
364
+ "additionalProperties": false,
365
+ "properties": {
366
+ "questionId": {
367
+ "type": "string",
368
+ "pattern": "^[a-z][a-z0-9_.-]{1,63}$"
369
+ },
370
+ "value": {
371
+ "type": "string",
372
+ "minLength": 1,
373
+ "maxLength": 200
374
+ }
375
+ },
376
+ "required": [
377
+ "questionId",
378
+ "value"
379
+ ]
380
+ },
381
+ "minItems": 1,
382
+ "maxItems": 20
383
+ },
384
+ "idempotencyKey": {
385
+ "type": "string",
386
+ "minLength": 8,
387
+ "maxLength": 128,
388
+ "pattern": "^[A-Za-z0-9_.-]{8,128}$",
389
+ "description": "Optional. A deployment is convergent without one."
390
+ }
391
+ },
392
+ "required": [
393
+ "orgId",
394
+ "app",
395
+ "env",
396
+ "source"
397
+ ]
398
+ },
399
+ "risk": {
400
+ "level": "medium",
401
+ "environmentSensitive": true
402
+ },
403
+ "availability": {
404
+ "sdk": true,
405
+ "cli": true,
406
+ "mcp": true,
407
+ "console": true
408
+ },
409
+ "mcp": {
410
+ "tool": "deploy",
411
+ "action": "submit"
412
+ },
413
+ "handlesSecrets": false
414
+ },
415
+ {
416
+ "id": "operation.get",
417
+ "http": {
418
+ "method": "GET",
419
+ "path": "/v1/orgs/{orgId}/operations/{operationId}",
420
+ "success": 200
421
+ },
422
+ "sdk": "apps.operations.get",
423
+ "input": {
424
+ "type": "object",
425
+ "additionalProperties": false,
426
+ "properties": {
427
+ "orgId": {
428
+ "type": "string",
429
+ "minLength": 1,
430
+ "maxLength": 128,
431
+ "description": "Organization id."
432
+ },
433
+ "operationId": {
434
+ "type": "string",
435
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
436
+ "description": "Operation id."
437
+ }
438
+ },
439
+ "required": [
440
+ "orgId",
441
+ "operationId"
442
+ ]
443
+ },
444
+ "risk": {
445
+ "level": "read",
446
+ "environmentSensitive": false
447
+ },
448
+ "availability": {
449
+ "sdk": true,
450
+ "cli": true,
451
+ "mcp": true,
452
+ "console": true
453
+ },
454
+ "mcp": {
455
+ "tool": "inspect",
456
+ "action": "operation"
457
+ },
458
+ "handlesSecrets": false
459
+ },
460
+ {
461
+ "id": "operation.watch",
462
+ "http": {
463
+ "method": "GET",
464
+ "path": "/v1/orgs/{orgId}/operations/{operationId}/events",
465
+ "success": 200,
466
+ "stream": true
467
+ },
468
+ "sdk": "apps.operations.watch",
469
+ "input": {
470
+ "type": "object",
471
+ "additionalProperties": false,
472
+ "properties": {
473
+ "orgId": {
474
+ "type": "string",
475
+ "minLength": 1,
476
+ "maxLength": 128,
477
+ "description": "Organization id."
478
+ },
479
+ "operationId": {
480
+ "type": "string",
481
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
482
+ "description": "Operation id."
483
+ },
484
+ "after": {
485
+ "type": "integer",
486
+ "minimum": 0,
487
+ "description": "The last event sequence number already seen."
488
+ }
489
+ },
490
+ "required": [
491
+ "orgId",
492
+ "operationId"
493
+ ]
494
+ },
495
+ "risk": {
496
+ "level": "read",
497
+ "environmentSensitive": false
498
+ },
499
+ "availability": {
500
+ "sdk": true,
501
+ "cli": true,
502
+ "mcp": false,
503
+ "console": true
504
+ },
505
+ "handlesSecrets": false
506
+ },
507
+ {
508
+ "id": "operation.wait",
509
+ "http": {
510
+ "method": "GET",
511
+ "path": "/v1/orgs/{orgId}/operations/{operationId}/wait",
512
+ "success": 200
513
+ },
514
+ "sdk": "apps.operations.wait",
515
+ "input": {
516
+ "type": "object",
517
+ "additionalProperties": false,
518
+ "properties": {
519
+ "orgId": {
520
+ "type": "string",
521
+ "minLength": 1,
522
+ "maxLength": 128,
523
+ "description": "Organization id."
524
+ },
525
+ "operationId": {
526
+ "type": "string",
527
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
528
+ "description": "Operation id."
529
+ },
530
+ "after": {
531
+ "type": "integer",
532
+ "minimum": 0,
533
+ "description": "The last event sequence number already seen."
534
+ },
535
+ "timeoutSeconds": {
536
+ "type": "integer",
537
+ "minimum": 1,
538
+ "maximum": 60,
539
+ "description": "How long to wait, at most."
540
+ }
541
+ },
542
+ "required": [
543
+ "orgId",
544
+ "operationId"
545
+ ]
546
+ },
547
+ "risk": {
548
+ "level": "read",
549
+ "environmentSensitive": false
550
+ },
551
+ "availability": {
552
+ "sdk": true,
553
+ "cli": true,
554
+ "mcp": true,
555
+ "console": false
556
+ },
557
+ "mcp": {
558
+ "tool": "inspect",
559
+ "action": "wait"
560
+ },
561
+ "handlesSecrets": false
562
+ },
563
+ {
564
+ "id": "operation.explain",
565
+ "http": {
566
+ "method": "GET",
567
+ "path": "/v1/orgs/{orgId}/operations/{operationId}/explain",
568
+ "success": 200
569
+ },
570
+ "sdk": "apps.operations.explain",
571
+ "input": {
572
+ "type": "object",
573
+ "additionalProperties": false,
574
+ "properties": {
575
+ "orgId": {
576
+ "type": "string",
577
+ "minLength": 1,
578
+ "maxLength": 128,
579
+ "description": "Organization id."
580
+ },
581
+ "operationId": {
582
+ "type": "string",
583
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
584
+ "description": "Operation id."
585
+ }
586
+ },
587
+ "required": [
588
+ "orgId",
589
+ "operationId"
590
+ ]
591
+ },
592
+ "risk": {
593
+ "level": "read",
594
+ "environmentSensitive": false
595
+ },
596
+ "availability": {
597
+ "sdk": true,
598
+ "cli": true,
599
+ "mcp": true,
600
+ "console": true
601
+ },
602
+ "mcp": {
603
+ "tool": "inspect",
604
+ "action": "explain"
605
+ },
606
+ "handlesSecrets": false
607
+ },
608
+ {
609
+ "id": "operation.answer",
610
+ "http": {
611
+ "method": "POST",
612
+ "path": "/v1/orgs/{orgId}/operations/{operationId}/answers",
613
+ "success": 200
614
+ },
615
+ "sdk": "apps.operations.answer",
616
+ "input": {
617
+ "type": "object",
618
+ "additionalProperties": false,
619
+ "properties": {
620
+ "orgId": {
621
+ "type": "string",
622
+ "minLength": 1,
623
+ "maxLength": 128,
624
+ "description": "Organization id."
625
+ },
626
+ "operationId": {
627
+ "type": "string",
628
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
629
+ "description": "Operation id."
630
+ },
631
+ "answers": {
632
+ "type": "array",
633
+ "items": {
634
+ "type": "object",
635
+ "additionalProperties": false,
636
+ "properties": {
637
+ "questionId": {
638
+ "type": "string",
639
+ "pattern": "^[a-z][a-z0-9_.-]{1,63}$"
640
+ },
641
+ "value": {
642
+ "type": "string",
643
+ "minLength": 1,
644
+ "maxLength": 200
645
+ }
646
+ },
647
+ "required": [
648
+ "questionId",
649
+ "value"
650
+ ]
651
+ },
652
+ "minItems": 1,
653
+ "maxItems": 20
654
+ }
655
+ },
656
+ "required": [
657
+ "orgId",
658
+ "operationId",
659
+ "answers"
660
+ ]
661
+ },
662
+ "risk": {
663
+ "level": "low",
664
+ "environmentSensitive": false
665
+ },
666
+ "availability": {
667
+ "sdk": true,
668
+ "cli": true,
669
+ "mcp": true,
670
+ "console": true
671
+ },
672
+ "mcp": {
673
+ "tool": "deploy",
674
+ "action": "answer"
675
+ },
676
+ "handlesSecrets": false
677
+ },
678
+ {
679
+ "id": "operation.approve",
680
+ "http": {
681
+ "method": "POST",
682
+ "path": "/v1/orgs/{orgId}/operations/{operationId}/approval",
683
+ "success": 200
684
+ },
685
+ "sdk": "apps.operations.approve",
686
+ "input": {
687
+ "type": "object",
688
+ "additionalProperties": false,
689
+ "properties": {
690
+ "orgId": {
691
+ "type": "string",
692
+ "minLength": 1,
693
+ "maxLength": 128,
694
+ "description": "Organization id."
695
+ },
696
+ "operationId": {
697
+ "type": "string",
698
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
699
+ "description": "Operation id."
700
+ },
701
+ "planDigest": {
702
+ "type": "string",
703
+ "pattern": "^sha256:[0-9a-f]{64}$"
704
+ },
705
+ "decision": {
706
+ "enum": [
707
+ "grant",
708
+ "deny"
709
+ ]
710
+ },
711
+ "reason": {
712
+ "type": "string",
713
+ "minLength": 1,
714
+ "maxLength": 500
715
+ }
716
+ },
717
+ "required": [
718
+ "orgId",
719
+ "operationId",
720
+ "planDigest",
721
+ "decision"
722
+ ]
723
+ },
724
+ "risk": {
725
+ "level": "high",
726
+ "environmentSensitive": true
727
+ },
728
+ "availability": {
729
+ "sdk": true,
730
+ "cli": true,
731
+ "mcp": false,
732
+ "console": true
733
+ },
734
+ "handlesSecrets": false
735
+ },
736
+ {
737
+ "id": "operation.cancel",
738
+ "http": {
739
+ "method": "POST",
740
+ "path": "/v1/orgs/{orgId}/operations/{operationId}/cancel",
741
+ "success": 200
742
+ },
743
+ "sdk": "apps.operations.cancel",
744
+ "input": {
745
+ "type": "object",
746
+ "additionalProperties": false,
747
+ "properties": {
748
+ "orgId": {
749
+ "type": "string",
750
+ "minLength": 1,
751
+ "maxLength": 128,
752
+ "description": "Organization id."
753
+ },
754
+ "operationId": {
755
+ "type": "string",
756
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
757
+ "description": "Operation id."
758
+ }
759
+ },
760
+ "required": [
761
+ "orgId",
762
+ "operationId"
763
+ ]
764
+ },
765
+ "risk": {
766
+ "level": "medium",
767
+ "environmentSensitive": false
768
+ },
769
+ "availability": {
770
+ "sdk": true,
771
+ "cli": true,
772
+ "mcp": true,
773
+ "console": true
774
+ },
775
+ "mcp": {
776
+ "tool": "deploy",
777
+ "action": "cancel"
778
+ },
779
+ "handlesSecrets": false
780
+ },
781
+ {
782
+ "id": "operation.resume",
783
+ "http": {
784
+ "method": "POST",
785
+ "path": "/v1/orgs/{orgId}/operations/{operationId}/resume",
786
+ "success": 200
787
+ },
788
+ "sdk": "apps.operations.resume",
789
+ "input": {
790
+ "type": "object",
791
+ "additionalProperties": false,
792
+ "properties": {
793
+ "orgId": {
794
+ "type": "string",
795
+ "minLength": 1,
796
+ "maxLength": 128,
797
+ "description": "Organization id."
798
+ },
799
+ "operationId": {
800
+ "type": "string",
801
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
802
+ "description": "Operation id."
803
+ }
804
+ },
805
+ "required": [
806
+ "orgId",
807
+ "operationId"
808
+ ]
809
+ },
810
+ "risk": {
811
+ "level": "medium",
812
+ "environmentSensitive": false
813
+ },
814
+ "availability": {
815
+ "sdk": true,
816
+ "cli": true,
817
+ "mcp": true,
818
+ "console": true
819
+ },
820
+ "mcp": {
821
+ "tool": "deploy",
822
+ "action": "resume"
823
+ },
824
+ "handlesSecrets": false
825
+ },
826
+ {
827
+ "id": "app.status",
828
+ "http": {
829
+ "method": "GET",
830
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}",
831
+ "success": 200
832
+ },
833
+ "sdk": "apps.status",
834
+ "input": {
835
+ "type": "object",
836
+ "additionalProperties": false,
837
+ "properties": {
838
+ "orgId": {
839
+ "type": "string",
840
+ "minLength": 1,
841
+ "maxLength": 128,
842
+ "description": "Organization id."
843
+ },
844
+ "app": {
845
+ "type": "string",
846
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
847
+ "minLength": 2,
848
+ "maxLength": 24,
849
+ "description": "Application name."
850
+ },
851
+ "env": {
852
+ "type": "string",
853
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
854
+ "minLength": 2,
855
+ "maxLength": 24,
856
+ "description": "Environment name."
857
+ }
858
+ },
859
+ "required": [
860
+ "orgId",
861
+ "app",
862
+ "env"
863
+ ]
864
+ },
865
+ "risk": {
866
+ "level": "read",
867
+ "environmentSensitive": false
868
+ },
869
+ "availability": {
870
+ "sdk": true,
871
+ "cli": true,
872
+ "mcp": true,
873
+ "console": true
874
+ },
875
+ "mcp": {
876
+ "tool": "inspect",
877
+ "action": "status"
878
+ },
879
+ "handlesSecrets": false
880
+ },
881
+ {
882
+ "id": "app.logs",
883
+ "http": {
884
+ "method": "GET",
885
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/logs",
886
+ "success": 200
887
+ },
888
+ "sdk": "apps.logs",
889
+ "input": {
890
+ "type": "object",
891
+ "additionalProperties": false,
892
+ "properties": {
893
+ "orgId": {
894
+ "type": "string",
895
+ "minLength": 1,
896
+ "maxLength": 128,
897
+ "description": "Organization id."
898
+ },
899
+ "app": {
900
+ "type": "string",
901
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
902
+ "minLength": 2,
903
+ "maxLength": 24,
904
+ "description": "Application name."
905
+ },
906
+ "env": {
907
+ "type": "string",
908
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
909
+ "minLength": 2,
910
+ "maxLength": 24,
911
+ "description": "Environment name."
912
+ },
913
+ "component": {
914
+ "type": "string",
915
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
916
+ "minLength": 2,
917
+ "maxLength": 40,
918
+ "description": "Component name."
919
+ },
920
+ "releaseId": {
921
+ "type": "string",
922
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
923
+ "description": "Release id."
924
+ },
925
+ "since": {
926
+ "type": "string",
927
+ "format": "date-time"
928
+ },
929
+ "level": {
930
+ "enum": [
931
+ "error",
932
+ "warn",
933
+ "info"
934
+ ]
935
+ },
936
+ "limit": {
937
+ "type": "integer",
938
+ "minimum": 1,
939
+ "maximum": 200,
940
+ "description": "Most entries to return."
941
+ }
942
+ },
943
+ "required": [
944
+ "orgId",
945
+ "app",
946
+ "env"
947
+ ]
948
+ },
949
+ "risk": {
950
+ "level": "read",
951
+ "environmentSensitive": false
952
+ },
953
+ "availability": {
954
+ "sdk": true,
955
+ "cli": true,
956
+ "mcp": true,
957
+ "console": true
958
+ },
959
+ "mcp": {
960
+ "tool": "inspect",
961
+ "action": "logs"
962
+ },
963
+ "handlesSecrets": false
964
+ },
965
+ {
966
+ "id": "release.list",
967
+ "http": {
968
+ "method": "GET",
969
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/releases",
970
+ "success": 200
971
+ },
972
+ "sdk": "apps.releases.list",
973
+ "input": {
974
+ "type": "object",
975
+ "additionalProperties": false,
976
+ "properties": {
977
+ "orgId": {
978
+ "type": "string",
979
+ "minLength": 1,
980
+ "maxLength": 128,
981
+ "description": "Organization id."
982
+ },
983
+ "app": {
984
+ "type": "string",
985
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
986
+ "minLength": 2,
987
+ "maxLength": 24,
988
+ "description": "Application name."
989
+ },
990
+ "env": {
991
+ "type": "string",
992
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
993
+ "minLength": 2,
994
+ "maxLength": 24,
995
+ "description": "Environment name."
996
+ },
997
+ "limit": {
998
+ "type": "integer",
999
+ "minimum": 1,
1000
+ "maximum": 200,
1001
+ "description": "Most entries to return."
1002
+ },
1003
+ "cursor": {
1004
+ "type": "string",
1005
+ "minLength": 1,
1006
+ "maxLength": 512,
1007
+ "description": "The cursor returned by the previous page."
1008
+ }
1009
+ },
1010
+ "required": [
1011
+ "orgId",
1012
+ "app",
1013
+ "env"
1014
+ ]
1015
+ },
1016
+ "risk": {
1017
+ "level": "read",
1018
+ "environmentSensitive": false
1019
+ },
1020
+ "availability": {
1021
+ "sdk": true,
1022
+ "cli": true,
1023
+ "mcp": true,
1024
+ "console": true
1025
+ },
1026
+ "mcp": {
1027
+ "tool": "inspect",
1028
+ "action": "releases"
1029
+ },
1030
+ "handlesSecrets": false
1031
+ },
1032
+ {
1033
+ "id": "release.get",
1034
+ "http": {
1035
+ "method": "GET",
1036
+ "path": "/v1/orgs/{orgId}/apps/{app}/releases/{releaseId}",
1037
+ "success": 200
1038
+ },
1039
+ "sdk": "apps.releases.get",
1040
+ "input": {
1041
+ "type": "object",
1042
+ "additionalProperties": false,
1043
+ "properties": {
1044
+ "orgId": {
1045
+ "type": "string",
1046
+ "minLength": 1,
1047
+ "maxLength": 128,
1048
+ "description": "Organization id."
1049
+ },
1050
+ "app": {
1051
+ "type": "string",
1052
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1053
+ "minLength": 2,
1054
+ "maxLength": 24,
1055
+ "description": "Application name."
1056
+ },
1057
+ "releaseId": {
1058
+ "type": "string",
1059
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1060
+ "description": "Release id."
1061
+ }
1062
+ },
1063
+ "required": [
1064
+ "orgId",
1065
+ "app",
1066
+ "releaseId"
1067
+ ]
1068
+ },
1069
+ "risk": {
1070
+ "level": "read",
1071
+ "environmentSensitive": false
1072
+ },
1073
+ "availability": {
1074
+ "sdk": true,
1075
+ "cli": true,
1076
+ "mcp": true,
1077
+ "console": true
1078
+ },
1079
+ "mcp": {
1080
+ "tool": "inspect",
1081
+ "action": "release"
1082
+ },
1083
+ "handlesSecrets": false
1084
+ },
1085
+ {
1086
+ "id": "release.promote",
1087
+ "http": {
1088
+ "method": "POST",
1089
+ "path": "/v1/orgs/{orgId}/apps/{app}/releases/{releaseId}/promotions",
1090
+ "success": 202
1091
+ },
1092
+ "sdk": "apps.releases.promote",
1093
+ "input": {
1094
+ "type": "object",
1095
+ "additionalProperties": false,
1096
+ "properties": {
1097
+ "orgId": {
1098
+ "type": "string",
1099
+ "minLength": 1,
1100
+ "maxLength": 128,
1101
+ "description": "Organization id."
1102
+ },
1103
+ "app": {
1104
+ "type": "string",
1105
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1106
+ "minLength": 2,
1107
+ "maxLength": 24,
1108
+ "description": "Application name."
1109
+ },
1110
+ "releaseId": {
1111
+ "type": "string",
1112
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1113
+ "description": "Release id."
1114
+ },
1115
+ "env": {
1116
+ "type": "string",
1117
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1118
+ "minLength": 2,
1119
+ "maxLength": 24,
1120
+ "description": "Environment name."
1121
+ },
1122
+ "idempotencyKey": {
1123
+ "type": "string",
1124
+ "minLength": 8,
1125
+ "maxLength": 128,
1126
+ "pattern": "^[A-Za-z0-9_.-]{8,128}$",
1127
+ "description": "Optional. A deployment is convergent without one."
1128
+ }
1129
+ },
1130
+ "required": [
1131
+ "orgId",
1132
+ "app",
1133
+ "releaseId",
1134
+ "env"
1135
+ ]
1136
+ },
1137
+ "risk": {
1138
+ "level": "medium",
1139
+ "environmentSensitive": true
1140
+ },
1141
+ "availability": {
1142
+ "sdk": true,
1143
+ "cli": true,
1144
+ "mcp": true,
1145
+ "console": true
1146
+ },
1147
+ "mcp": {
1148
+ "tool": "deploy",
1149
+ "action": "promote"
1150
+ },
1151
+ "handlesSecrets": false
1152
+ },
1153
+ {
1154
+ "id": "release.rollback",
1155
+ "http": {
1156
+ "method": "POST",
1157
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/rollbacks",
1158
+ "success": 202
1159
+ },
1160
+ "sdk": "apps.releases.rollback",
1161
+ "input": {
1162
+ "type": "object",
1163
+ "additionalProperties": false,
1164
+ "properties": {
1165
+ "orgId": {
1166
+ "type": "string",
1167
+ "minLength": 1,
1168
+ "maxLength": 128,
1169
+ "description": "Organization id."
1170
+ },
1171
+ "app": {
1172
+ "type": "string",
1173
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1174
+ "minLength": 2,
1175
+ "maxLength": 24,
1176
+ "description": "Application name."
1177
+ },
1178
+ "env": {
1179
+ "type": "string",
1180
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1181
+ "minLength": 2,
1182
+ "maxLength": 24,
1183
+ "description": "Environment name."
1184
+ },
1185
+ "toReleaseId": {
1186
+ "type": "string",
1187
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1188
+ "description": "Release id."
1189
+ },
1190
+ "expectedActiveReleaseId": {
1191
+ "type": "string",
1192
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1193
+ "description": "Release id."
1194
+ },
1195
+ "idempotencyKey": {
1196
+ "type": "string",
1197
+ "minLength": 8,
1198
+ "maxLength": 128,
1199
+ "pattern": "^[A-Za-z0-9_.-]{8,128}$",
1200
+ "description": "Optional. A deployment is convergent without one."
1201
+ }
1202
+ },
1203
+ "required": [
1204
+ "orgId",
1205
+ "app",
1206
+ "env"
1207
+ ]
1208
+ },
1209
+ "risk": {
1210
+ "level": "high",
1211
+ "environmentSensitive": true
1212
+ },
1213
+ "availability": {
1214
+ "sdk": true,
1215
+ "cli": true,
1216
+ "mcp": true,
1217
+ "console": true
1218
+ },
1219
+ "mcp": {
1220
+ "tool": "deploy",
1221
+ "action": "rollback"
1222
+ },
1223
+ "handlesSecrets": false
1224
+ },
1225
+ {
1226
+ "id": "env.config.list",
1227
+ "http": {
1228
+ "method": "GET",
1229
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/config",
1230
+ "success": 200
1231
+ },
1232
+ "sdk": "apps.config.list",
1233
+ "input": {
1234
+ "type": "object",
1235
+ "additionalProperties": false,
1236
+ "properties": {
1237
+ "orgId": {
1238
+ "type": "string",
1239
+ "minLength": 1,
1240
+ "maxLength": 128,
1241
+ "description": "Organization id."
1242
+ },
1243
+ "app": {
1244
+ "type": "string",
1245
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1246
+ "minLength": 2,
1247
+ "maxLength": 24,
1248
+ "description": "Application name."
1249
+ },
1250
+ "env": {
1251
+ "type": "string",
1252
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1253
+ "minLength": 2,
1254
+ "maxLength": 24,
1255
+ "description": "Environment name."
1256
+ }
1257
+ },
1258
+ "required": [
1259
+ "orgId",
1260
+ "app",
1261
+ "env"
1262
+ ]
1263
+ },
1264
+ "risk": {
1265
+ "level": "read",
1266
+ "environmentSensitive": false
1267
+ },
1268
+ "availability": {
1269
+ "sdk": true,
1270
+ "cli": true,
1271
+ "mcp": true,
1272
+ "console": true
1273
+ },
1274
+ "mcp": {
1275
+ "tool": "inspect",
1276
+ "action": "config"
1277
+ },
1278
+ "handlesSecrets": false
1279
+ },
1280
+ {
1281
+ "id": "env.config.set",
1282
+ "http": {
1283
+ "method": "PUT",
1284
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/config/{name}",
1285
+ "success": 200
1286
+ },
1287
+ "sdk": "apps.config.set",
1288
+ "input": {
1289
+ "type": "object",
1290
+ "additionalProperties": false,
1291
+ "properties": {
1292
+ "orgId": {
1293
+ "type": "string",
1294
+ "minLength": 1,
1295
+ "maxLength": 128,
1296
+ "description": "Organization id."
1297
+ },
1298
+ "app": {
1299
+ "type": "string",
1300
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1301
+ "minLength": 2,
1302
+ "maxLength": 24,
1303
+ "description": "Application name."
1304
+ },
1305
+ "env": {
1306
+ "type": "string",
1307
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1308
+ "minLength": 2,
1309
+ "maxLength": 24,
1310
+ "description": "Environment name."
1311
+ },
1312
+ "name": {
1313
+ "type": "string",
1314
+ "pattern": "^[A-Z][A-Z0-9_]{1,62}$",
1315
+ "description": "Variable name."
1316
+ },
1317
+ "component": {
1318
+ "type": "string",
1319
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1320
+ "minLength": 2,
1321
+ "maxLength": 40,
1322
+ "description": "Component name."
1323
+ },
1324
+ "value": {
1325
+ "type": "string",
1326
+ "minLength": 1,
1327
+ "maxLength": 4096
1328
+ }
1329
+ },
1330
+ "required": [
1331
+ "orgId",
1332
+ "app",
1333
+ "env",
1334
+ "name",
1335
+ "value"
1336
+ ]
1337
+ },
1338
+ "risk": {
1339
+ "level": "medium",
1340
+ "environmentSensitive": true
1341
+ },
1342
+ "availability": {
1343
+ "sdk": true,
1344
+ "cli": true,
1345
+ "mcp": true,
1346
+ "console": true
1347
+ },
1348
+ "mcp": {
1349
+ "tool": "deploy",
1350
+ "action": "set_config"
1351
+ },
1352
+ "handlesSecrets": false
1353
+ },
1354
+ {
1355
+ "id": "env.secret.set",
1356
+ "http": {
1357
+ "method": "PUT",
1358
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/secrets/{name}",
1359
+ "success": 200
1360
+ },
1361
+ "sdk": "apps.secrets.set",
1362
+ "input": {
1363
+ "type": "object",
1364
+ "additionalProperties": false,
1365
+ "properties": {
1366
+ "orgId": {
1367
+ "type": "string",
1368
+ "minLength": 1,
1369
+ "maxLength": 128,
1370
+ "description": "Organization id."
1371
+ },
1372
+ "app": {
1373
+ "type": "string",
1374
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1375
+ "minLength": 2,
1376
+ "maxLength": 24,
1377
+ "description": "Application name."
1378
+ },
1379
+ "env": {
1380
+ "type": "string",
1381
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1382
+ "minLength": 2,
1383
+ "maxLength": 24,
1384
+ "description": "Environment name."
1385
+ },
1386
+ "name": {
1387
+ "type": "string",
1388
+ "pattern": "^[A-Z][A-Z0-9_]{1,62}$",
1389
+ "description": "Variable name."
1390
+ },
1391
+ "component": {
1392
+ "type": "string",
1393
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1394
+ "minLength": 2,
1395
+ "maxLength": 40,
1396
+ "description": "Component name."
1397
+ },
1398
+ "value": {
1399
+ "type": "string",
1400
+ "minLength": 1,
1401
+ "maxLength": 4096,
1402
+ "description": "The secret. It is never echoed back and never stored in a release."
1403
+ }
1404
+ },
1405
+ "required": [
1406
+ "orgId",
1407
+ "app",
1408
+ "env",
1409
+ "name",
1410
+ "value"
1411
+ ]
1412
+ },
1413
+ "risk": {
1414
+ "level": "high",
1415
+ "environmentSensitive": true
1416
+ },
1417
+ "availability": {
1418
+ "sdk": true,
1419
+ "cli": true,
1420
+ "mcp": false,
1421
+ "console": true
1422
+ },
1423
+ "handlesSecrets": true
1424
+ },
1425
+ {
1426
+ "id": "env.pull",
1427
+ "http": {
1428
+ "method": "POST",
1429
+ "path": "/v1/orgs/{orgId}/apps/{app}/environments/{env}/local-bindings",
1430
+ "success": 201
1431
+ },
1432
+ "sdk": "apps.env.pull",
1433
+ "input": {
1434
+ "type": "object",
1435
+ "additionalProperties": false,
1436
+ "properties": {
1437
+ "orgId": {
1438
+ "type": "string",
1439
+ "minLength": 1,
1440
+ "maxLength": 128,
1441
+ "description": "Organization id."
1442
+ },
1443
+ "app": {
1444
+ "type": "string",
1445
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1446
+ "minLength": 2,
1447
+ "maxLength": 24,
1448
+ "description": "Application name."
1449
+ },
1450
+ "env": {
1451
+ "type": "string",
1452
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1453
+ "minLength": 2,
1454
+ "maxLength": 24,
1455
+ "description": "Environment name."
1456
+ },
1457
+ "component": {
1458
+ "type": "string",
1459
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1460
+ "minLength": 2,
1461
+ "maxLength": 40,
1462
+ "description": "Component name."
1463
+ },
1464
+ "ttlSeconds": {
1465
+ "type": "integer",
1466
+ "minimum": 60,
1467
+ "maximum": 3600
1468
+ }
1469
+ },
1470
+ "required": [
1471
+ "orgId",
1472
+ "app",
1473
+ "env"
1474
+ ]
1475
+ },
1476
+ "risk": {
1477
+ "level": "high",
1478
+ "environmentSensitive": true
1479
+ },
1480
+ "availability": {
1481
+ "sdk": true,
1482
+ "cli": true,
1483
+ "mcp": false,
1484
+ "console": false
1485
+ },
1486
+ "handlesSecrets": true
1487
+ }
1488
+ ]);
1489
+ export const APPS_MCP_TOOLS = Object.freeze([
1490
+ {
1491
+ "name": "kinedrop_apps_inspect",
1492
+ "description": "Read an application deployment: plan a deployment, read an operation or wait for it, explain a failure, and see the application, its releases, logs and configuration. Nothing is changed.\n- plan (app, env, source): Resolve a source against an environment and return the plan: what would be built, bound and created, the choices still open, and the cost. Changes nothing.\n- operation (operationId): Read an operation: its status, outcome, stages, pending questions, and the error if it failed.\n- wait (operationId): Wait up to a timeout for an operation to change, then return it with the new events. A timeout means it is still running, not that it failed.\n- explain (operationId): Explain an operation that failed or is waiting: the error with its evidence and next actions, plus the logs of the component that failed.\n- status (app, env): Show an environment: the active and candidate releases, the readiness of every component and dependency, and the latest operation.\n- logs (app, env): Read recent logs of an environment, for one component or release if asked. The output is bounded and redacted.\n- releases (app, env): List the releases of an environment, newest first.\n- release (app, releaseId): Read one release: its component artifacts, effective configuration and binding references. Secret values are never part of it.\n- config (app, env): List the configuration variables of an environment. Secret values are never returned, only that a secret is set.",
1493
+ "inputSchema": {
1494
+ "type": "object",
1495
+ "additionalProperties": false,
1496
+ "required": [
1497
+ "action"
1498
+ ],
1499
+ "properties": {
1500
+ "action": {
1501
+ "type": "string",
1502
+ "enum": [
1503
+ "plan",
1504
+ "operation",
1505
+ "wait",
1506
+ "explain",
1507
+ "status",
1508
+ "logs",
1509
+ "releases",
1510
+ "release",
1511
+ "config"
1512
+ ],
1513
+ "description": "What to do. Each action lists the fields it needs."
1514
+ },
1515
+ "app": {
1516
+ "type": "string",
1517
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1518
+ "minLength": 2,
1519
+ "maxLength": 24,
1520
+ "description": "Application name."
1521
+ },
1522
+ "env": {
1523
+ "type": "string",
1524
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1525
+ "minLength": 2,
1526
+ "maxLength": 24,
1527
+ "description": "Environment name."
1528
+ },
1529
+ "source": {
1530
+ "type": "object",
1531
+ "additionalProperties": false,
1532
+ "properties": {
1533
+ "kind": {
1534
+ "enum": [
1535
+ "snapshot",
1536
+ "artifact"
1537
+ ]
1538
+ },
1539
+ "digest": {
1540
+ "type": "string",
1541
+ "pattern": "^sha256:[0-9a-f]{64}$"
1542
+ },
1543
+ "commit": {
1544
+ "type": "string",
1545
+ "pattern": "^[a-f0-9]{40}$",
1546
+ "description": "Pinned commit from a verified Git source import."
1547
+ }
1548
+ },
1549
+ "required": [
1550
+ "kind",
1551
+ "digest"
1552
+ ]
1553
+ },
1554
+ "answers": {
1555
+ "type": "array",
1556
+ "items": {
1557
+ "type": "object",
1558
+ "additionalProperties": false,
1559
+ "properties": {
1560
+ "questionId": {
1561
+ "type": "string",
1562
+ "pattern": "^[a-z][a-z0-9_.-]{1,63}$"
1563
+ },
1564
+ "value": {
1565
+ "type": "string",
1566
+ "minLength": 1,
1567
+ "maxLength": 200
1568
+ }
1569
+ },
1570
+ "required": [
1571
+ "questionId",
1572
+ "value"
1573
+ ]
1574
+ },
1575
+ "minItems": 1,
1576
+ "maxItems": 20
1577
+ },
1578
+ "operationId": {
1579
+ "type": "string",
1580
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
1581
+ "description": "Operation id."
1582
+ },
1583
+ "after": {
1584
+ "type": "integer",
1585
+ "minimum": 0,
1586
+ "description": "The last event sequence number already seen."
1587
+ },
1588
+ "timeoutSeconds": {
1589
+ "type": "integer",
1590
+ "minimum": 1,
1591
+ "maximum": 60,
1592
+ "description": "How long to wait, at most."
1593
+ },
1594
+ "component": {
1595
+ "type": "string",
1596
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1597
+ "minLength": 2,
1598
+ "maxLength": 40,
1599
+ "description": "Component name."
1600
+ },
1601
+ "releaseId": {
1602
+ "type": "string",
1603
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1604
+ "description": "Release id."
1605
+ },
1606
+ "since": {
1607
+ "type": "string",
1608
+ "format": "date-time"
1609
+ },
1610
+ "level": {
1611
+ "enum": [
1612
+ "error",
1613
+ "warn",
1614
+ "info"
1615
+ ]
1616
+ },
1617
+ "limit": {
1618
+ "type": "integer",
1619
+ "minimum": 1,
1620
+ "maximum": 200,
1621
+ "description": "Most entries to return."
1622
+ },
1623
+ "cursor": {
1624
+ "type": "string",
1625
+ "minLength": 1,
1626
+ "maxLength": 512,
1627
+ "description": "The cursor returned by the previous page."
1628
+ }
1629
+ }
1630
+ },
1631
+ "annotations": {
1632
+ "readOnlyHint": true,
1633
+ "destructiveHint": false,
1634
+ "idempotentHint": true,
1635
+ "openWorldHint": false
1636
+ }
1637
+ },
1638
+ {
1639
+ "name": "kinedrop_apps_deploy",
1640
+ "description": "Change an application deployment: capture a source, submit a deployment, answer its questions, cancel or resume it, promote or roll back a release, or set a plain configuration variable. A deployment is a durable operation: submit returns its id at once, so wait for it with the inspect tool. Production may need a person to approve; an agent cannot approve, and never receives a secret value.\n- capture (app, manifest): Capture the working tree as an immutable source snapshot and return its digest. Credentials and unrelated files are excluded.\n- submit (app, env, source): Start a deployment and return its durable operation. Submitting the same source again attaches to the running operation or reports that it is already deployed.\n- answer (operationId, answers): Answer the questions an operation is waiting on. Any interface can answer an operation that another interface started.\n- cancel (operationId): Stop a deployment from starting new work and clean up what it started. Persistent data is never deleted.\n- resume (operationId): Continue an operation from its failed stage after the cause has been fixed. Stages that already succeeded are not repeated.\n- promote (app, releaseId, env): Deploy an existing release to another environment without rebuilding it, after that environment's admission and checks.\n- rollback (app, env): Reactivate a previous release in an environment. Restoring the database and recovering messages are separate operations.\n- set_config (app, env, name, value): Set a plain configuration variable for an environment or one component. It takes effect with the next release.",
1641
+ "inputSchema": {
1642
+ "type": "object",
1643
+ "additionalProperties": false,
1644
+ "required": [
1645
+ "action"
1646
+ ],
1647
+ "properties": {
1648
+ "action": {
1649
+ "type": "string",
1650
+ "enum": [
1651
+ "capture",
1652
+ "submit",
1653
+ "answer",
1654
+ "cancel",
1655
+ "resume",
1656
+ "promote",
1657
+ "rollback",
1658
+ "set_config"
1659
+ ],
1660
+ "description": "What to do. Each action lists the fields it needs."
1661
+ },
1662
+ "app": {
1663
+ "type": "string",
1664
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1665
+ "minLength": 2,
1666
+ "maxLength": 24,
1667
+ "description": "Application name."
1668
+ },
1669
+ "manifest": {
1670
+ "type": "object",
1671
+ "additionalProperties": false,
1672
+ "properties": {
1673
+ "files": {
1674
+ "type": "array",
1675
+ "items": {
1676
+ "type": "object",
1677
+ "additionalProperties": false,
1678
+ "properties": {
1679
+ "path": {
1680
+ "type": "string",
1681
+ "minLength": 1,
1682
+ "maxLength": 500
1683
+ },
1684
+ "digest": {
1685
+ "type": "string",
1686
+ "pattern": "^sha256:[0-9a-f]{64}$"
1687
+ },
1688
+ "sizeBytes": {
1689
+ "type": "integer",
1690
+ "minimum": 0
1691
+ }
1692
+ },
1693
+ "required": [
1694
+ "path",
1695
+ "digest",
1696
+ "sizeBytes"
1697
+ ]
1698
+ },
1699
+ "maxItems": 20000
1700
+ },
1701
+ "repository": {
1702
+ "type": "string",
1703
+ "minLength": 1,
1704
+ "maxLength": 500
1705
+ },
1706
+ "commit": {
1707
+ "type": "string",
1708
+ "pattern": "^[0-9a-f]{40}$"
1709
+ }
1710
+ },
1711
+ "required": [
1712
+ "files"
1713
+ ]
1714
+ },
1715
+ "files": {
1716
+ "type": "object",
1717
+ "description": "Actual source bytes keyed by manifest path. Each value is UTF-8 text or canonical base64; every digest and size is verified before capture.",
1718
+ "additionalProperties": {
1719
+ "oneOf": [
1720
+ {
1721
+ "type": "string",
1722
+ "maxLength": 104857600
1723
+ },
1724
+ {
1725
+ "type": "object",
1726
+ "additionalProperties": false,
1727
+ "properties": {
1728
+ "text": {
1729
+ "type": "string",
1730
+ "maxLength": 104857600
1731
+ }
1732
+ },
1733
+ "required": [
1734
+ "text"
1735
+ ]
1736
+ },
1737
+ {
1738
+ "type": "object",
1739
+ "additionalProperties": false,
1740
+ "properties": {
1741
+ "contentBase64": {
1742
+ "type": "string",
1743
+ "maxLength": 139810136
1744
+ }
1745
+ },
1746
+ "required": [
1747
+ "contentBase64"
1748
+ ]
1749
+ }
1750
+ ]
1751
+ }
1752
+ },
1753
+ "env": {
1754
+ "type": "string",
1755
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1756
+ "minLength": 2,
1757
+ "maxLength": 24,
1758
+ "description": "Environment name."
1759
+ },
1760
+ "source": {
1761
+ "type": "object",
1762
+ "additionalProperties": false,
1763
+ "properties": {
1764
+ "kind": {
1765
+ "enum": [
1766
+ "snapshot",
1767
+ "artifact"
1768
+ ]
1769
+ },
1770
+ "digest": {
1771
+ "type": "string",
1772
+ "pattern": "^sha256:[0-9a-f]{64}$"
1773
+ },
1774
+ "commit": {
1775
+ "type": "string",
1776
+ "pattern": "^[a-f0-9]{40}$",
1777
+ "description": "Pinned commit from a verified Git source import."
1778
+ }
1779
+ },
1780
+ "required": [
1781
+ "kind",
1782
+ "digest"
1783
+ ]
1784
+ },
1785
+ "planId": {
1786
+ "type": "string",
1787
+ "pattern": "^plan_[0-9A-Za-z]{10,32}$",
1788
+ "description": "Plan id."
1789
+ },
1790
+ "answers": {
1791
+ "type": "array",
1792
+ "items": {
1793
+ "type": "object",
1794
+ "additionalProperties": false,
1795
+ "properties": {
1796
+ "questionId": {
1797
+ "type": "string",
1798
+ "pattern": "^[a-z][a-z0-9_.-]{1,63}$"
1799
+ },
1800
+ "value": {
1801
+ "type": "string",
1802
+ "minLength": 1,
1803
+ "maxLength": 200
1804
+ }
1805
+ },
1806
+ "required": [
1807
+ "questionId",
1808
+ "value"
1809
+ ]
1810
+ },
1811
+ "minItems": 1,
1812
+ "maxItems": 20
1813
+ },
1814
+ "idempotencyKey": {
1815
+ "type": "string",
1816
+ "minLength": 8,
1817
+ "maxLength": 128,
1818
+ "pattern": "^[A-Za-z0-9_.-]{8,128}$",
1819
+ "description": "Optional. A deployment is convergent without one."
1820
+ },
1821
+ "operationId": {
1822
+ "type": "string",
1823
+ "pattern": "^op_[0-9A-Za-z]{10,32}$",
1824
+ "description": "Operation id."
1825
+ },
1826
+ "releaseId": {
1827
+ "type": "string",
1828
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1829
+ "description": "Release id."
1830
+ },
1831
+ "toReleaseId": {
1832
+ "type": "string",
1833
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1834
+ "description": "Release id."
1835
+ },
1836
+ "expectedActiveReleaseId": {
1837
+ "type": "string",
1838
+ "pattern": "^rel_[0-9A-Za-z]{10,32}$",
1839
+ "description": "Release id."
1840
+ },
1841
+ "name": {
1842
+ "type": "string",
1843
+ "pattern": "^[A-Z][A-Z0-9_]{1,62}$",
1844
+ "description": "Variable name."
1845
+ },
1846
+ "component": {
1847
+ "type": "string",
1848
+ "pattern": "^[a-z](?:[a-z0-9]|-(?!-))*[a-z0-9]$",
1849
+ "minLength": 2,
1850
+ "maxLength": 40,
1851
+ "description": "Component name."
1852
+ },
1853
+ "value": {
1854
+ "type": "string",
1855
+ "minLength": 1,
1856
+ "maxLength": 4096
1857
+ }
1858
+ }
1859
+ },
1860
+ "annotations": {
1861
+ "readOnlyHint": false,
1862
+ "destructiveHint": false,
1863
+ "idempotentHint": false,
1864
+ "openWorldHint": false
1865
+ }
1866
+ }
1867
+ ]);