@treestructuredplanning/gateway 0.1.2 → 0.2.0
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 +67 -12
- package/dist/cli.js +37 -21
- package/dist/gateway-schema.json +488 -46
- package/dist/{shared-M7CEELPK.js → shared-IOW65S5G.js} +4067 -1590
- package/package.json +1 -1
package/dist/gateway-schema.json
CHANGED
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"additionalProperties": false,
|
|
39
39
|
"properties": {
|
|
40
40
|
"protocol_version": {
|
|
41
|
-
"const":
|
|
42
|
-
"default":
|
|
41
|
+
"const": 3,
|
|
42
|
+
"default": 3,
|
|
43
43
|
"title": "Protocol Version",
|
|
44
44
|
"type": "integer"
|
|
45
45
|
},
|
|
@@ -68,11 +68,25 @@
|
|
|
68
68
|
"$ref": "#/components/schemas/HarnessKind"
|
|
69
69
|
},
|
|
70
70
|
"repository": {
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
"
|
|
75
|
-
|
|
71
|
+
"$ref": "#/components/schemas/RepositoryRef"
|
|
72
|
+
},
|
|
73
|
+
"checkout": {
|
|
74
|
+
"discriminator": {
|
|
75
|
+
"mapping": {
|
|
76
|
+
"shared": "#/components/schemas/SharedCheckout",
|
|
77
|
+
"worktree": "#/components/schemas/WorktreeCheckout"
|
|
78
|
+
},
|
|
79
|
+
"propertyName": "mode"
|
|
80
|
+
},
|
|
81
|
+
"oneOf": [
|
|
82
|
+
{
|
|
83
|
+
"$ref": "#/components/schemas/WorktreeCheckout"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"$ref": "#/components/schemas/SharedCheckout"
|
|
87
|
+
}
|
|
88
|
+
],
|
|
89
|
+
"title": "Checkout"
|
|
76
90
|
},
|
|
77
91
|
"seed": {
|
|
78
92
|
"maxLength": 32000,
|
|
@@ -92,6 +106,7 @@
|
|
|
92
106
|
"action_id",
|
|
93
107
|
"harness",
|
|
94
108
|
"repository",
|
|
109
|
+
"checkout",
|
|
95
110
|
"seed",
|
|
96
111
|
"session_name"
|
|
97
112
|
],
|
|
@@ -102,16 +117,159 @@
|
|
|
102
117
|
"type": "string",
|
|
103
118
|
"enum": [
|
|
104
119
|
"claude_code",
|
|
105
|
-
"codex"
|
|
120
|
+
"codex",
|
|
121
|
+
"cursor"
|
|
106
122
|
],
|
|
107
123
|
"title": "HarnessKind"
|
|
108
124
|
},
|
|
125
|
+
"RepositoryRef": {
|
|
126
|
+
"properties": {
|
|
127
|
+
"host": {
|
|
128
|
+
"type": "string",
|
|
129
|
+
"maxLength": 253,
|
|
130
|
+
"minLength": 3,
|
|
131
|
+
"pattern": "^[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?(\\.[A-Za-z0-9]([A-Za-z0-9-]*[A-Za-z0-9])?)+$",
|
|
132
|
+
"title": "Host",
|
|
133
|
+
"description": "DNS host, such as `github.com`."
|
|
134
|
+
},
|
|
135
|
+
"owner": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"maxLength": 255,
|
|
138
|
+
"minLength": 1,
|
|
139
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]*(/[A-Za-z0-9][A-Za-z0-9_.-]*)*$",
|
|
140
|
+
"title": "Owner",
|
|
141
|
+
"description": "Owner or namespace path."
|
|
142
|
+
},
|
|
143
|
+
"name": {
|
|
144
|
+
"type": "string",
|
|
145
|
+
"maxLength": 100,
|
|
146
|
+
"minLength": 1,
|
|
147
|
+
"pattern": "^[A-Za-z0-9_.-]+$",
|
|
148
|
+
"title": "Name",
|
|
149
|
+
"description": "Repository name, without `.git`."
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"additionalProperties": false,
|
|
153
|
+
"type": "object",
|
|
154
|
+
"required": [
|
|
155
|
+
"host",
|
|
156
|
+
"owner",
|
|
157
|
+
"name"
|
|
158
|
+
],
|
|
159
|
+
"title": "RepositoryRef",
|
|
160
|
+
"description": "Which repository, on which host. Equality of meaning is `same_repository`."
|
|
161
|
+
},
|
|
162
|
+
"WorktreeCheckout": {
|
|
163
|
+
"properties": {
|
|
164
|
+
"mode": {
|
|
165
|
+
"type": "string",
|
|
166
|
+
"const": "worktree",
|
|
167
|
+
"title": "Mode",
|
|
168
|
+
"default": "worktree"
|
|
169
|
+
},
|
|
170
|
+
"attempt_id": {
|
|
171
|
+
"type": "string",
|
|
172
|
+
"pattern": "^att_[0-9a-f]{12}$",
|
|
173
|
+
"title": "Attempt Id"
|
|
174
|
+
},
|
|
175
|
+
"branch": {
|
|
176
|
+
"type": "string",
|
|
177
|
+
"maxLength": 255,
|
|
178
|
+
"minLength": 1,
|
|
179
|
+
"title": "Branch"
|
|
180
|
+
},
|
|
181
|
+
"base": {
|
|
182
|
+
"oneOf": [
|
|
183
|
+
{
|
|
184
|
+
"$ref": "#/components/schemas/LandingBase"
|
|
185
|
+
}
|
|
186
|
+
],
|
|
187
|
+
"title": "Base",
|
|
188
|
+
"discriminator": {
|
|
189
|
+
"propertyName": "kind",
|
|
190
|
+
"mapping": {
|
|
191
|
+
"landing": "#/components/schemas/LandingBase"
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"additionalProperties": false,
|
|
197
|
+
"type": "object",
|
|
198
|
+
"required": [
|
|
199
|
+
"attempt_id",
|
|
200
|
+
"branch",
|
|
201
|
+
"base"
|
|
202
|
+
],
|
|
203
|
+
"title": "WorktreeCheckout"
|
|
204
|
+
},
|
|
205
|
+
"LandingBase": {
|
|
206
|
+
"properties": {
|
|
207
|
+
"kind": {
|
|
208
|
+
"type": "string",
|
|
209
|
+
"const": "landing",
|
|
210
|
+
"title": "Kind",
|
|
211
|
+
"default": "landing"
|
|
212
|
+
},
|
|
213
|
+
"branch": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"maxLength": 255,
|
|
216
|
+
"minLength": 1,
|
|
217
|
+
"title": "Branch"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
"additionalProperties": false,
|
|
221
|
+
"type": "object",
|
|
222
|
+
"required": [
|
|
223
|
+
"branch"
|
|
224
|
+
],
|
|
225
|
+
"title": "LandingBase"
|
|
226
|
+
},
|
|
227
|
+
"SharedCheckout": {
|
|
228
|
+
"properties": {
|
|
229
|
+
"mode": {
|
|
230
|
+
"type": "string",
|
|
231
|
+
"const": "shared",
|
|
232
|
+
"title": "Mode",
|
|
233
|
+
"default": "shared"
|
|
234
|
+
},
|
|
235
|
+
"branch": {
|
|
236
|
+
"anyOf": [
|
|
237
|
+
{
|
|
238
|
+
"type": "string",
|
|
239
|
+
"maxLength": 255,
|
|
240
|
+
"minLength": 1
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"type": "null"
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
"title": "Branch"
|
|
247
|
+
},
|
|
248
|
+
"base": {
|
|
249
|
+
"anyOf": [
|
|
250
|
+
{
|
|
251
|
+
"$ref": "#/components/schemas/LandingBase"
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"type": "null"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
}
|
|
258
|
+
},
|
|
259
|
+
"additionalProperties": false,
|
|
260
|
+
"type": "object",
|
|
261
|
+
"required": [
|
|
262
|
+
"branch",
|
|
263
|
+
"base"
|
|
264
|
+
],
|
|
265
|
+
"title": "SharedCheckout"
|
|
266
|
+
},
|
|
109
267
|
"GatewayStopOffer": {
|
|
110
268
|
"additionalProperties": false,
|
|
111
269
|
"properties": {
|
|
112
270
|
"protocol_version": {
|
|
113
|
-
"const":
|
|
114
|
-
"default":
|
|
271
|
+
"const": 3,
|
|
272
|
+
"default": 3,
|
|
115
273
|
"title": "Protocol Version",
|
|
116
274
|
"type": "integer"
|
|
117
275
|
},
|
|
@@ -137,18 +295,26 @@
|
|
|
137
295
|
"type": "string"
|
|
138
296
|
},
|
|
139
297
|
"session_ref": {
|
|
140
|
-
"
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
298
|
+
"anyOf": [
|
|
299
|
+
{
|
|
300
|
+
"maxLength": 128,
|
|
301
|
+
"minLength": 1,
|
|
302
|
+
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*$",
|
|
303
|
+
"type": "string"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"type": "null"
|
|
307
|
+
}
|
|
308
|
+
],
|
|
309
|
+
"default": null,
|
|
310
|
+
"description": "The observed session to stop. None while the gateway is still starting the action's launch or resume: it withdraws that start, or stops the session it produced. Sent only to a gateway whose harness advertises stop_starting.",
|
|
311
|
+
"title": "Session Ref"
|
|
145
312
|
}
|
|
146
313
|
},
|
|
147
314
|
"required": [
|
|
148
315
|
"ttl_ms",
|
|
149
316
|
"command_id",
|
|
150
|
-
"action_id"
|
|
151
|
-
"session_ref"
|
|
317
|
+
"action_id"
|
|
152
318
|
],
|
|
153
319
|
"title": "GatewayStopOffer",
|
|
154
320
|
"type": "object"
|
|
@@ -157,8 +323,8 @@
|
|
|
157
323
|
"additionalProperties": false,
|
|
158
324
|
"properties": {
|
|
159
325
|
"protocol_version": {
|
|
160
|
-
"const":
|
|
161
|
-
"default":
|
|
326
|
+
"const": 3,
|
|
327
|
+
"default": 3,
|
|
162
328
|
"title": "Protocol Version",
|
|
163
329
|
"type": "integer"
|
|
164
330
|
},
|
|
@@ -218,8 +384,8 @@
|
|
|
218
384
|
"additionalProperties": false,
|
|
219
385
|
"properties": {
|
|
220
386
|
"protocol_version": {
|
|
221
|
-
"const":
|
|
222
|
-
"default":
|
|
387
|
+
"const": 3,
|
|
388
|
+
"default": 3,
|
|
223
389
|
"title": "Protocol Version",
|
|
224
390
|
"type": "integer"
|
|
225
391
|
},
|
|
@@ -247,8 +413,8 @@
|
|
|
247
413
|
"description": "Execution grant, or the authoritative terminal receipt on denial.",
|
|
248
414
|
"properties": {
|
|
249
415
|
"protocol_version": {
|
|
250
|
-
"const":
|
|
251
|
-
"default":
|
|
416
|
+
"const": 3,
|
|
417
|
+
"default": 3,
|
|
252
418
|
"title": "Protocol Version",
|
|
253
419
|
"type": "integer"
|
|
254
420
|
},
|
|
@@ -311,8 +477,8 @@
|
|
|
311
477
|
"additionalProperties": false,
|
|
312
478
|
"properties": {
|
|
313
479
|
"protocol_version": {
|
|
314
|
-
"const":
|
|
315
|
-
"default":
|
|
480
|
+
"const": 3,
|
|
481
|
+
"default": 3,
|
|
316
482
|
"title": "Protocol Version",
|
|
317
483
|
"type": "integer"
|
|
318
484
|
},
|
|
@@ -344,8 +510,8 @@
|
|
|
344
510
|
"additionalProperties": false,
|
|
345
511
|
"properties": {
|
|
346
512
|
"protocol_version": {
|
|
347
|
-
"const":
|
|
348
|
-
"default":
|
|
513
|
+
"const": 3,
|
|
514
|
+
"default": 3,
|
|
349
515
|
"title": "Protocol Version",
|
|
350
516
|
"type": "integer"
|
|
351
517
|
},
|
|
@@ -367,6 +533,40 @@
|
|
|
367
533
|
},
|
|
368
534
|
"reason": {
|
|
369
535
|
"$ref": "#/components/schemas/LaunchRefusalReason"
|
|
536
|
+
},
|
|
537
|
+
"detail": {
|
|
538
|
+
"anyOf": [
|
|
539
|
+
{
|
|
540
|
+
"discriminator": {
|
|
541
|
+
"mapping": {
|
|
542
|
+
"busy": "#/components/schemas/CheckoutBusyDetail",
|
|
543
|
+
"failed": "#/components/schemas/CheckoutFailedDetail",
|
|
544
|
+
"fetch_failed": "#/components/schemas/CheckoutFetchFailedDetail",
|
|
545
|
+
"untrusted": "#/components/schemas/WorkspaceUntrustedDetail"
|
|
546
|
+
},
|
|
547
|
+
"propertyName": "kind"
|
|
548
|
+
},
|
|
549
|
+
"oneOf": [
|
|
550
|
+
{
|
|
551
|
+
"$ref": "#/components/schemas/CheckoutBusyDetail"
|
|
552
|
+
},
|
|
553
|
+
{
|
|
554
|
+
"$ref": "#/components/schemas/CheckoutFailedDetail"
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
"$ref": "#/components/schemas/CheckoutFetchFailedDetail"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"$ref": "#/components/schemas/WorkspaceUntrustedDetail"
|
|
561
|
+
}
|
|
562
|
+
]
|
|
563
|
+
},
|
|
564
|
+
{
|
|
565
|
+
"type": "null"
|
|
566
|
+
}
|
|
567
|
+
],
|
|
568
|
+
"default": null,
|
|
569
|
+
"title": "Detail"
|
|
370
570
|
}
|
|
371
571
|
},
|
|
372
572
|
"required": [
|
|
@@ -380,6 +580,9 @@
|
|
|
380
580
|
"LaunchRefusalReason": {
|
|
381
581
|
"type": "string",
|
|
382
582
|
"enum": [
|
|
583
|
+
"checkout_failed",
|
|
584
|
+
"checkout_busy",
|
|
585
|
+
"checkout_fetch_failed",
|
|
383
586
|
"workspace_untrusted",
|
|
384
587
|
"not_signed_in",
|
|
385
588
|
"repository_not_registered",
|
|
@@ -401,6 +604,7 @@
|
|
|
401
604
|
"awaiting_observation",
|
|
402
605
|
"already_running",
|
|
403
606
|
"not_running",
|
|
607
|
+
"launch_superseded",
|
|
404
608
|
"launch_expired",
|
|
405
609
|
"launch_withdrawn",
|
|
406
610
|
"control_expired",
|
|
@@ -409,13 +613,175 @@
|
|
|
409
613
|
"title": "LaunchRefusalReason",
|
|
410
614
|
"description": "Why a gateway or the server refused a launch, stop or resume.\n\nThe start failures a gateway can prove are named for what went wrong:\n``shell_startup_timeout`` (the login shell was too slow to start and the\ngateway had no earlier environment to use instead), ``shell_startup_failed``\n(the login shell exited before running the harness),\n``repository_folder_unavailable`` (the registered folder could not be\nentered), ``harness_exited`` (the harness exited with an error while\nstarting) and ``start_uncertain`` (a retried attempt could not tell whether\nan earlier one started a session, so it did not start a second).\n``start_failed`` is what gateways before 0.1.2 send for all of these."
|
|
411
615
|
},
|
|
616
|
+
"CheckoutBusyDetail": {
|
|
617
|
+
"properties": {
|
|
618
|
+
"kind": {
|
|
619
|
+
"type": "string",
|
|
620
|
+
"const": "busy",
|
|
621
|
+
"title": "Kind",
|
|
622
|
+
"default": "busy"
|
|
623
|
+
},
|
|
624
|
+
"cause": {
|
|
625
|
+
"$ref": "#/components/schemas/CheckoutBusyCause"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"additionalProperties": false,
|
|
629
|
+
"type": "object",
|
|
630
|
+
"required": [
|
|
631
|
+
"cause"
|
|
632
|
+
],
|
|
633
|
+
"title": "CheckoutBusyDetail"
|
|
634
|
+
},
|
|
635
|
+
"CheckoutBusyCause": {
|
|
636
|
+
"type": "string",
|
|
637
|
+
"enum": [
|
|
638
|
+
"live_agent",
|
|
639
|
+
"uncommitted_changes"
|
|
640
|
+
],
|
|
641
|
+
"title": "CheckoutBusyCause"
|
|
642
|
+
},
|
|
643
|
+
"CheckoutFailedDetail": {
|
|
644
|
+
"properties": {
|
|
645
|
+
"kind": {
|
|
646
|
+
"type": "string",
|
|
647
|
+
"const": "failed",
|
|
648
|
+
"title": "Kind",
|
|
649
|
+
"default": "failed"
|
|
650
|
+
},
|
|
651
|
+
"step": {
|
|
652
|
+
"$ref": "#/components/schemas/CheckoutFailureStep"
|
|
653
|
+
},
|
|
654
|
+
"location": {
|
|
655
|
+
"anyOf": [
|
|
656
|
+
{
|
|
657
|
+
"$ref": "#/components/schemas/WorktreeLocation"
|
|
658
|
+
},
|
|
659
|
+
{
|
|
660
|
+
"type": "null"
|
|
661
|
+
}
|
|
662
|
+
]
|
|
663
|
+
},
|
|
664
|
+
"setting": {
|
|
665
|
+
"anyOf": [
|
|
666
|
+
{
|
|
667
|
+
"$ref": "#/components/schemas/WorktreeRootSetting"
|
|
668
|
+
},
|
|
669
|
+
{
|
|
670
|
+
"type": "null"
|
|
671
|
+
}
|
|
672
|
+
]
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"additionalProperties": false,
|
|
676
|
+
"type": "object",
|
|
677
|
+
"required": [
|
|
678
|
+
"step",
|
|
679
|
+
"location"
|
|
680
|
+
],
|
|
681
|
+
"title": "CheckoutFailedDetail",
|
|
682
|
+
"description": "Which checkout step failed, and where its worktree folder was.\n\n``setting`` names the gateway setting that chose a custom folder; it is None for the\nfolder inside the repository, and from gateways that predate it."
|
|
683
|
+
},
|
|
684
|
+
"CheckoutFailureStep": {
|
|
685
|
+
"type": "string",
|
|
686
|
+
"enum": [
|
|
687
|
+
"prepare_root",
|
|
688
|
+
"create_worktree",
|
|
689
|
+
"reuse_worktree",
|
|
690
|
+
"switch_branch",
|
|
691
|
+
"branch_namespace",
|
|
692
|
+
"copy_included_files"
|
|
693
|
+
],
|
|
694
|
+
"title": "CheckoutFailureStep"
|
|
695
|
+
},
|
|
696
|
+
"WorktreeLocation": {
|
|
697
|
+
"type": "string",
|
|
698
|
+
"enum": [
|
|
699
|
+
"in_clone",
|
|
700
|
+
"custom"
|
|
701
|
+
],
|
|
702
|
+
"title": "WorktreeLocation"
|
|
703
|
+
},
|
|
704
|
+
"WorktreeRootSetting": {
|
|
705
|
+
"type": "string",
|
|
706
|
+
"enum": [
|
|
707
|
+
"repository",
|
|
708
|
+
"machine"
|
|
709
|
+
],
|
|
710
|
+
"title": "WorktreeRootSetting",
|
|
711
|
+
"description": "Which gateway setting chose a custom worktree folder.\n\n``REPOSITORY`` is the folder set for the registered repository alone, which wins over\n``MACHINE``, the folder set for every repository on that machine. Each is reset by its\nown command, so the canvas offers only the one that was in effect."
|
|
712
|
+
},
|
|
713
|
+
"CheckoutFetchFailedDetail": {
|
|
714
|
+
"properties": {
|
|
715
|
+
"kind": {
|
|
716
|
+
"type": "string",
|
|
717
|
+
"const": "fetch_failed",
|
|
718
|
+
"title": "Kind",
|
|
719
|
+
"default": "fetch_failed"
|
|
720
|
+
},
|
|
721
|
+
"cause": {
|
|
722
|
+
"$ref": "#/components/schemas/CheckoutFetchFailure"
|
|
723
|
+
},
|
|
724
|
+
"landing_line": {
|
|
725
|
+
"type": "string",
|
|
726
|
+
"maxLength": 255,
|
|
727
|
+
"minLength": 1,
|
|
728
|
+
"title": "Landing Line"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
"additionalProperties": false,
|
|
732
|
+
"type": "object",
|
|
733
|
+
"required": [
|
|
734
|
+
"cause",
|
|
735
|
+
"landing_line"
|
|
736
|
+
],
|
|
737
|
+
"title": "CheckoutFetchFailedDetail"
|
|
738
|
+
},
|
|
739
|
+
"CheckoutFetchFailure": {
|
|
740
|
+
"type": "string",
|
|
741
|
+
"enum": [
|
|
742
|
+
"unreachable",
|
|
743
|
+
"unauthorized",
|
|
744
|
+
"timed_out",
|
|
745
|
+
"no_matching_remote",
|
|
746
|
+
"repository_not_found",
|
|
747
|
+
"unknown"
|
|
748
|
+
],
|
|
749
|
+
"title": "CheckoutFetchFailure",
|
|
750
|
+
"description": "Why the gateway's fetch of the landing line failed, as far as Git's answer tells.\n\n``UNREACHABLE`` is a network failure only (no host, refused or timed-out connection);\n``REPOSITORY_NOT_FOUND`` is a remote that answered but has no repository this machine\nmay read; ``UNKNOWN`` is any failure Git did not explain in a way the gateway recognizes."
|
|
751
|
+
},
|
|
752
|
+
"WorkspaceUntrustedDetail": {
|
|
753
|
+
"properties": {
|
|
754
|
+
"kind": {
|
|
755
|
+
"type": "string",
|
|
756
|
+
"const": "untrusted",
|
|
757
|
+
"title": "Kind",
|
|
758
|
+
"default": "untrusted"
|
|
759
|
+
},
|
|
760
|
+
"location": {
|
|
761
|
+
"anyOf": [
|
|
762
|
+
{
|
|
763
|
+
"$ref": "#/components/schemas/WorktreeLocation"
|
|
764
|
+
},
|
|
765
|
+
{
|
|
766
|
+
"type": "null"
|
|
767
|
+
}
|
|
768
|
+
]
|
|
769
|
+
}
|
|
770
|
+
},
|
|
771
|
+
"additionalProperties": false,
|
|
772
|
+
"type": "object",
|
|
773
|
+
"required": [
|
|
774
|
+
"location"
|
|
775
|
+
],
|
|
776
|
+
"title": "WorkspaceUntrustedDetail"
|
|
777
|
+
},
|
|
412
778
|
"GatewayRetire": {
|
|
413
779
|
"additionalProperties": false,
|
|
414
780
|
"description": "Forget local tracking for an action TSP has released or no longer resolves.\n\nIt ends tracking only: the gateway leaves any running session alone.",
|
|
415
781
|
"properties": {
|
|
416
782
|
"protocol_version": {
|
|
417
|
-
"const":
|
|
418
|
-
"default":
|
|
783
|
+
"const": 3,
|
|
784
|
+
"default": 3,
|
|
419
785
|
"title": "Protocol Version",
|
|
420
786
|
"type": "integer"
|
|
421
787
|
},
|
|
@@ -486,7 +852,7 @@
|
|
|
486
852
|
"type": "string"
|
|
487
853
|
},
|
|
488
854
|
"protocol_version": {
|
|
489
|
-
"default":
|
|
855
|
+
"default": 3,
|
|
490
856
|
"minimum": 1,
|
|
491
857
|
"title": "Protocol Version",
|
|
492
858
|
"type": "integer"
|
|
@@ -587,6 +953,12 @@
|
|
|
587
953
|
"answer_input": {
|
|
588
954
|
"type": "boolean",
|
|
589
955
|
"title": "Answer Input"
|
|
956
|
+
},
|
|
957
|
+
"stop_starting": {
|
|
958
|
+
"type": "boolean",
|
|
959
|
+
"title": "Stop Starting",
|
|
960
|
+
"description": "Stop reaches a launch or resume the gateway is still starting: it withdraws it before any prompt is sent, or stops the session it produced. Gateways before 0.1.3 omit it and are stopped only once a session is observed.",
|
|
961
|
+
"default": false
|
|
590
962
|
}
|
|
591
963
|
},
|
|
592
964
|
"additionalProperties": false,
|
|
@@ -605,12 +977,8 @@
|
|
|
605
977
|
"harness": {
|
|
606
978
|
"$ref": "#/components/schemas/HarnessKind"
|
|
607
979
|
},
|
|
608
|
-
"
|
|
609
|
-
"
|
|
610
|
-
"maxLength": 201,
|
|
611
|
-
"minLength": 3,
|
|
612
|
-
"pattern": "^[A-Za-z0-9][A-Za-z0-9_-]*/[A-Za-z0-9][A-Za-z0-9_.-]*$",
|
|
613
|
-
"title": "Slug"
|
|
980
|
+
"repository": {
|
|
981
|
+
"$ref": "#/components/schemas/RepositoryRef"
|
|
614
982
|
},
|
|
615
983
|
"trust": {
|
|
616
984
|
"$ref": "#/components/schemas/RepositoryTrust"
|
|
@@ -635,7 +1003,7 @@
|
|
|
635
1003
|
"type": "object",
|
|
636
1004
|
"required": [
|
|
637
1005
|
"harness",
|
|
638
|
-
"
|
|
1006
|
+
"repository",
|
|
639
1007
|
"trust",
|
|
640
1008
|
"available",
|
|
641
1009
|
"signed_in"
|
|
@@ -655,8 +1023,8 @@
|
|
|
655
1023
|
"additionalProperties": false,
|
|
656
1024
|
"properties": {
|
|
657
1025
|
"protocol_version": {
|
|
658
|
-
"const":
|
|
659
|
-
"default":
|
|
1026
|
+
"const": 3,
|
|
1027
|
+
"default": 3,
|
|
660
1028
|
"title": "Protocol Version",
|
|
661
1029
|
"type": "integer"
|
|
662
1030
|
},
|
|
@@ -699,8 +1067,8 @@
|
|
|
699
1067
|
"additionalProperties": false,
|
|
700
1068
|
"properties": {
|
|
701
1069
|
"protocol_version": {
|
|
702
|
-
"const":
|
|
703
|
-
"default":
|
|
1070
|
+
"const": 3,
|
|
1071
|
+
"default": 3,
|
|
704
1072
|
"title": "Protocol Version",
|
|
705
1073
|
"type": "integer"
|
|
706
1074
|
},
|
|
@@ -732,8 +1100,8 @@
|
|
|
732
1100
|
"additionalProperties": false,
|
|
733
1101
|
"properties": {
|
|
734
1102
|
"protocol_version": {
|
|
735
|
-
"const":
|
|
736
|
-
"default":
|
|
1103
|
+
"const": 3,
|
|
1104
|
+
"default": 3,
|
|
737
1105
|
"title": "Protocol Version",
|
|
738
1106
|
"type": "integer"
|
|
739
1107
|
},
|
|
@@ -761,7 +1129,7 @@
|
|
|
761
1129
|
"waiting_for": {
|
|
762
1130
|
"anyOf": [
|
|
763
1131
|
{
|
|
764
|
-
"maxLength":
|
|
1132
|
+
"maxLength": 4000,
|
|
765
1133
|
"minLength": 1,
|
|
766
1134
|
"type": "string"
|
|
767
1135
|
},
|
|
@@ -772,6 +1140,21 @@
|
|
|
772
1140
|
"default": null,
|
|
773
1141
|
"title": "Waiting For"
|
|
774
1142
|
},
|
|
1143
|
+
"last_message": {
|
|
1144
|
+
"anyOf": [
|
|
1145
|
+
{
|
|
1146
|
+
"maxLength": 240,
|
|
1147
|
+
"minLength": 1,
|
|
1148
|
+
"type": "string"
|
|
1149
|
+
},
|
|
1150
|
+
{
|
|
1151
|
+
"type": "null"
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
"default": null,
|
|
1155
|
+
"description": "What the agent last said when its turn finished, trimmed and with folder paths removed; absent from gateways that predate it and when its reporting level is off.",
|
|
1156
|
+
"title": "Last Message"
|
|
1157
|
+
},
|
|
775
1158
|
"attach_hint": {
|
|
776
1159
|
"anyOf": [
|
|
777
1160
|
{
|
|
@@ -798,6 +1181,17 @@
|
|
|
798
1181
|
"default": null,
|
|
799
1182
|
"title": "Resumed As"
|
|
800
1183
|
},
|
|
1184
|
+
"checkout": {
|
|
1185
|
+
"anyOf": [
|
|
1186
|
+
{
|
|
1187
|
+
"$ref": "#/components/schemas/GatewayCheckoutReport"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"type": "null"
|
|
1191
|
+
}
|
|
1192
|
+
],
|
|
1193
|
+
"default": null
|
|
1194
|
+
},
|
|
801
1195
|
"activity": {
|
|
802
1196
|
"anyOf": [
|
|
803
1197
|
{
|
|
@@ -855,6 +1249,54 @@
|
|
|
855
1249
|
"title": "AttachHint",
|
|
856
1250
|
"description": "Path-free session identity; command rendering belongs to the consumer."
|
|
857
1251
|
},
|
|
1252
|
+
"GatewayCheckoutReport": {
|
|
1253
|
+
"additionalProperties": false,
|
|
1254
|
+
"properties": {
|
|
1255
|
+
"branch": {
|
|
1256
|
+
"anyOf": [
|
|
1257
|
+
{
|
|
1258
|
+
"maxLength": 255,
|
|
1259
|
+
"minLength": 1,
|
|
1260
|
+
"type": "string"
|
|
1261
|
+
},
|
|
1262
|
+
{
|
|
1263
|
+
"type": "null"
|
|
1264
|
+
}
|
|
1265
|
+
],
|
|
1266
|
+
"title": "Branch"
|
|
1267
|
+
},
|
|
1268
|
+
"base_sha": {
|
|
1269
|
+
"anyOf": [
|
|
1270
|
+
{
|
|
1271
|
+
"maxLength": 40,
|
|
1272
|
+
"minLength": 7,
|
|
1273
|
+
"pattern": "^[0-9a-fA-F]+$",
|
|
1274
|
+
"type": "string"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"type": "null"
|
|
1278
|
+
}
|
|
1279
|
+
],
|
|
1280
|
+
"title": "Base Sha"
|
|
1281
|
+
},
|
|
1282
|
+
"created": {
|
|
1283
|
+
"title": "Created",
|
|
1284
|
+
"type": "boolean"
|
|
1285
|
+
},
|
|
1286
|
+
"shares_checkout": {
|
|
1287
|
+
"title": "Shares Checkout",
|
|
1288
|
+
"type": "boolean"
|
|
1289
|
+
}
|
|
1290
|
+
},
|
|
1291
|
+
"required": [
|
|
1292
|
+
"branch",
|
|
1293
|
+
"base_sha",
|
|
1294
|
+
"created",
|
|
1295
|
+
"shares_checkout"
|
|
1296
|
+
],
|
|
1297
|
+
"title": "GatewayCheckoutReport",
|
|
1298
|
+
"type": "object"
|
|
1299
|
+
},
|
|
858
1300
|
"GatewaySessionActivity": {
|
|
859
1301
|
"additionalProperties": false,
|
|
860
1302
|
"description": "The snapshot as the gateway sends it, relative to its own send time.",
|
|
@@ -918,8 +1360,8 @@
|
|
|
918
1360
|
"additionalProperties": false,
|
|
919
1361
|
"properties": {
|
|
920
1362
|
"protocol_version": {
|
|
921
|
-
"const":
|
|
922
|
-
"default":
|
|
1363
|
+
"const": 3,
|
|
1364
|
+
"default": 3,
|
|
923
1365
|
"title": "Protocol Version",
|
|
924
1366
|
"type": "integer"
|
|
925
1367
|
},
|