@band-app/server 0.44.0 → 0.46.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/dist/client/_shell.html +0 -0
- package/dist/client/assets/{TerminalPanel-D_cysFY6.js → TerminalPanel-pkSSHqjB.js} +1 -1
- package/dist/client/assets/{_basePickBy-DQEpNyzw.js → _basePickBy-30wa-B3K.js} +1 -1
- package/dist/client/assets/{_baseUniq-Cw068FTt.js → _baseUniq-DYFc8VYN.js} +1 -1
- package/dist/client/assets/{arc-CvUFVAzc.js → arc-aFj-W69O.js} +1 -1
- package/dist/client/assets/{architectureDiagram-VXUJARFQ-C8fm6PpN.js → architectureDiagram-VXUJARFQ-CUH4fJYm.js} +1 -1
- package/dist/client/assets/{blockDiagram-VD42YOAC-Clzrye4_.js → blockDiagram-VD42YOAC-CRkquXXQ.js} +1 -1
- package/dist/client/assets/{c4Diagram-YG6GDRKO-UmqA7MjB.js → c4Diagram-YG6GDRKO-CD-EJ5GA.js} +1 -1
- package/dist/client/assets/channel-i7vnUKiG.js +1 -0
- package/dist/client/assets/{chunk-4BX2VUAB-BsAza8XF.js → chunk-4BX2VUAB-VhYl9M0k.js} +1 -1
- package/dist/client/assets/{chunk-55IACEB6-WGMjybHz.js → chunk-55IACEB6-BQC_5pzd.js} +1 -1
- package/dist/client/assets/{chunk-B4BG7PRW-C-Fvzjok.js → chunk-B4BG7PRW-C1FqesKA.js} +1 -1
- package/dist/client/assets/{chunk-DI55MBZ5-DvIIUtql.js → chunk-DI55MBZ5-DYC7fpTc.js} +1 -1
- package/dist/client/assets/{chunk-FMBD7UC4-CeYVZNrU.js → chunk-FMBD7UC4-DwHYZG2m.js} +1 -1
- package/dist/client/assets/{chunk-QN33PNHL-B1-EpVlD.js → chunk-QN33PNHL-QrOgqJ2x.js} +1 -1
- package/dist/client/assets/{chunk-QZHKN3VN-BchpGoIJ.js → chunk-QZHKN3VN-BfeDvyyD.js} +1 -1
- package/dist/client/assets/{chunk-TZMSLE5B-BVG-a7nI.js → chunk-TZMSLE5B-DqbFla-p.js} +1 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-QKheXL6H.js +1 -0
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-QKheXL6H.js +1 -0
- package/dist/client/assets/clone-C6EEluIC.js +1 -0
- package/dist/client/assets/{cose-bilkent-S5V4N54A-BIoVu9WT.js → cose-bilkent-S5V4N54A-Dtr68WKY.js} +1 -1
- package/dist/client/assets/{dagre-6UL2VRFP-CljsWEly.js → dagre-6UL2VRFP-DeO-jAE4.js} +1 -1
- package/dist/client/assets/{diagram-PSM6KHXK-BjJbhfz0.js → diagram-PSM6KHXK-DIoKKrik.js} +1 -1
- package/dist/client/assets/{diagram-QEK2KX5R--saKTt6g.js → diagram-QEK2KX5R-YSmrv8Ap.js} +1 -1
- package/dist/client/assets/{diagram-S2PKOQOG-Cwcb4cc5.js → diagram-S2PKOQOG-Bkn85uc6.js} +1 -1
- package/dist/client/assets/{erDiagram-Q2GNP2WA-BC-wY5YX.js → erDiagram-Q2GNP2WA-BwNSRuDm.js} +1 -1
- package/dist/client/assets/{flowDiagram-NV44I4VS-CfBb5vge.js → flowDiagram-NV44I4VS-Bi4yldps.js} +1 -1
- package/dist/client/assets/{ganttDiagram-JELNMOA3-DQrqEn7Y.js → ganttDiagram-JELNMOA3-BArJltql.js} +1 -1
- package/dist/client/assets/{gitGraphDiagram-V2S2FVAM-DKtPPgtl.js → gitGraphDiagram-V2S2FVAM-DL2anp1a.js} +1 -1
- package/dist/client/assets/{graph-T1ThuLbZ.js → graph-CA6szdeU.js} +1 -1
- package/dist/client/assets/{highlighted-body-B3W2YXNL-DDEgcZCk.js → highlighted-body-B3W2YXNL-Ce8JER1R.js} +1 -1
- package/dist/client/assets/{index-ZKwBXCpU.js → index-4MpV9Rhm.js} +1 -1
- package/dist/client/assets/{index-CLYQXtqR.js → index-8yx33Rgn.js} +1 -1
- package/dist/client/assets/{index-qAUW3mba.js → index-BeG__tJz.js} +1 -1
- package/dist/client/assets/{index-Gx4Mt1Yl.js → index-BhEFhSvO.js} +1 -1
- package/dist/client/assets/{index-BAXuCef8.js → index-C5m9KGZf.js} +1 -1
- package/dist/client/assets/{index-DBhl72Ls.js → index-CSQuqpCk.js} +1 -1
- package/dist/client/assets/{index-Jz4ZcJJW.js → index-Cro4_Zyl.js} +1 -1
- package/dist/client/assets/{index-C6oIftFZ.js → index-Czi_pJOK.js} +1 -1
- package/dist/client/assets/{index-Bi3avAOV.js → index-D-zrg5eL.js} +1 -1
- package/dist/client/assets/{index-DDguqy9a.js → index-D757VVMZ.js} +1 -1
- package/dist/client/assets/{index-5gLlnN68.js → index-DDvAHSPZ.js} +1 -1
- package/dist/client/assets/{index-DhLBR_yT.js → index-DeSewZzo.js} +1 -1
- package/dist/client/assets/{index-C35jTeRS.js → index-DpxJvU7W.js} +1 -1
- package/dist/client/assets/{infoDiagram-HS3SLOUP-BFJektan.js → infoDiagram-HS3SLOUP-opriBuJD.js} +1 -1
- package/dist/client/assets/{journeyDiagram-XKPGCS4Q-CBcH69Or.js → journeyDiagram-XKPGCS4Q-t3TBG9zd.js} +1 -1
- package/dist/client/assets/{kanban-definition-3W4ZIXB7-BICbFBmC.js → kanban-definition-3W4ZIXB7-D1KUbYAi.js} +1 -1
- package/dist/client/assets/{layout-DkLK174H.js → layout-BaSYphI5.js} +1 -1
- package/dist/client/assets/main-BXb3TLCw.css +1 -0
- package/dist/client/assets/{main-xn81ahr7.js → main-Bqsm7w7O.js} +273 -273
- package/dist/client/assets/{mindmap-definition-VGOIOE7T-1AcmrvG2.js → mindmap-definition-VGOIOE7T-ChEtbA0z.js} +1 -1
- package/dist/client/assets/{pieDiagram-ADFJNKIX-DwZGWHFq.js → pieDiagram-ADFJNKIX-D-2g15uY.js} +1 -1
- package/dist/client/assets/{quadrantDiagram-AYHSOK5B-BaMRbvwC.js → quadrantDiagram-AYHSOK5B-3I1XUOAj.js} +1 -1
- package/dist/client/assets/{requirementDiagram-UZGBJVZJ-cwdZI2zJ.js → requirementDiagram-UZGBJVZJ-rSbxWkaA.js} +1 -1
- package/dist/client/assets/{sankeyDiagram-TZEHDZUN-DNZ80eq3.js → sankeyDiagram-TZEHDZUN-C4ZbxfZu.js} +1 -1
- package/dist/client/assets/{sequenceDiagram-WL72ISMW-Cw0G5NRg.js → sequenceDiagram-WL72ISMW-Bjrx7GQ9.js} +1 -1
- package/dist/client/assets/{stateDiagram-FKZM4ZOC-D0G0pnjT.js → stateDiagram-FKZM4ZOC-DmItUmdi.js} +1 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-CABlMyog.js +1 -0
- package/dist/client/assets/{timeline-definition-IT6M3QCI-DMgsZR5h.js → timeline-definition-IT6M3QCI-C0WtBwwx.js} +1 -1
- package/dist/client/assets/{treemap-GDKQZRPO-DA1IiNra.js → treemap-GDKQZRPO-B_sR8-qR.js} +1 -1
- package/dist/client/assets/{worktree._worktreeId-l7qdjSBS.js → worktree._worktreeId-Dx83Amei.js} +1 -1
- package/dist/client/assets/{worktree._worktreeId-AHqmKs3k.js → worktree._worktreeId-XB6R8O1k.js} +1 -1
- package/dist/client/assets/{xychartDiagram-PRI3JC2R-CRU0zgPL.js → xychartDiagram-PRI3JC2R-BgnyoF2_.js} +1 -1
- package/dist/migrations/20261010120000_worktree_host_ids/migration.sql +38 -0
- package/dist/migrations/20261010120000_worktree_host_ids/snapshot.json +4158 -0
- package/dist/migrations/20261011060845_repo_allowed_hosts/migration.sql +2 -0
- package/dist/migrations/20261011060845_repo_allowed_hosts/snapshot.json +4178 -0
- package/dist/migrations/20261011133526_worktree_checkpoints/migration.sql +21 -0
- package/dist/migrations/20261011133526_worktree_checkpoints/snapshot.json +4379 -0
- package/dist/openapi.json +1436 -178
- package/dist/start-server.mjs +71677 -67908
- package/package.json +7 -7
- package/dist/client/assets/channel-qRiWMx98.js +0 -1
- package/dist/client/assets/classDiagram-2ON5EDUG-C7BQszwu.js +0 -1
- package/dist/client/assets/classDiagram-v2-WZHVMYZB-C7BQszwu.js +0 -1
- package/dist/client/assets/clone-B26n96Ue.js +0 -1
- package/dist/client/assets/main-qMKNjbns.css +0 -1
- package/dist/client/assets/stateDiagram-v2-4FDKWEC3-DetgwZ3y.js +0 -1
package/dist/openapi.json
CHANGED
|
@@ -1202,6 +1202,12 @@
|
|
|
1202
1202
|
"request": {
|
|
1203
1203
|
"type": "object",
|
|
1204
1204
|
"properties": {
|
|
1205
|
+
"error": {
|
|
1206
|
+
"type": [
|
|
1207
|
+
"string",
|
|
1208
|
+
"null"
|
|
1209
|
+
]
|
|
1210
|
+
},
|
|
1205
1211
|
"status": {
|
|
1206
1212
|
"type": "string",
|
|
1207
1213
|
"enum": [
|
|
@@ -1260,12 +1266,6 @@
|
|
|
1260
1266
|
"createdAt": {
|
|
1261
1267
|
"type": "number"
|
|
1262
1268
|
},
|
|
1263
|
-
"error": {
|
|
1264
|
-
"type": [
|
|
1265
|
-
"string",
|
|
1266
|
-
"null"
|
|
1267
|
-
]
|
|
1268
|
-
},
|
|
1269
1269
|
"leasedBy": {
|
|
1270
1270
|
"type": [
|
|
1271
1271
|
"string",
|
|
@@ -1289,6 +1289,7 @@
|
|
|
1289
1289
|
}
|
|
1290
1290
|
},
|
|
1291
1291
|
"required": [
|
|
1292
|
+
"error",
|
|
1292
1293
|
"status",
|
|
1293
1294
|
"id",
|
|
1294
1295
|
"labels",
|
|
@@ -1300,7 +1301,6 @@
|
|
|
1300
1301
|
"requires",
|
|
1301
1302
|
"environment",
|
|
1302
1303
|
"createdAt",
|
|
1303
|
-
"error",
|
|
1304
1304
|
"leasedBy",
|
|
1305
1305
|
"leaseExpiresAt",
|
|
1306
1306
|
"completedAt",
|
|
@@ -1377,6 +1377,12 @@
|
|
|
1377
1377
|
{
|
|
1378
1378
|
"type": "object",
|
|
1379
1379
|
"properties": {
|
|
1380
|
+
"error": {
|
|
1381
|
+
"type": [
|
|
1382
|
+
"string",
|
|
1383
|
+
"null"
|
|
1384
|
+
]
|
|
1385
|
+
},
|
|
1380
1386
|
"status": {
|
|
1381
1387
|
"type": "string",
|
|
1382
1388
|
"enum": [
|
|
@@ -1435,12 +1441,6 @@
|
|
|
1435
1441
|
"createdAt": {
|
|
1436
1442
|
"type": "number"
|
|
1437
1443
|
},
|
|
1438
|
-
"error": {
|
|
1439
|
-
"type": [
|
|
1440
|
-
"string",
|
|
1441
|
-
"null"
|
|
1442
|
-
]
|
|
1443
|
-
},
|
|
1444
1444
|
"leasedBy": {
|
|
1445
1445
|
"type": [
|
|
1446
1446
|
"string",
|
|
@@ -1464,6 +1464,7 @@
|
|
|
1464
1464
|
}
|
|
1465
1465
|
},
|
|
1466
1466
|
"required": [
|
|
1467
|
+
"error",
|
|
1467
1468
|
"status",
|
|
1468
1469
|
"id",
|
|
1469
1470
|
"labels",
|
|
@@ -1475,7 +1476,6 @@
|
|
|
1475
1476
|
"requires",
|
|
1476
1477
|
"environment",
|
|
1477
1478
|
"createdAt",
|
|
1478
|
-
"error",
|
|
1479
1479
|
"leasedBy",
|
|
1480
1480
|
"leaseExpiresAt",
|
|
1481
1481
|
"completedAt",
|
|
@@ -1587,6 +1587,12 @@
|
|
|
1587
1587
|
"request": {
|
|
1588
1588
|
"type": "object",
|
|
1589
1589
|
"properties": {
|
|
1590
|
+
"error": {
|
|
1591
|
+
"type": [
|
|
1592
|
+
"string",
|
|
1593
|
+
"null"
|
|
1594
|
+
]
|
|
1595
|
+
},
|
|
1590
1596
|
"status": {
|
|
1591
1597
|
"type": "string",
|
|
1592
1598
|
"enum": [
|
|
@@ -1645,12 +1651,6 @@
|
|
|
1645
1651
|
"createdAt": {
|
|
1646
1652
|
"type": "number"
|
|
1647
1653
|
},
|
|
1648
|
-
"error": {
|
|
1649
|
-
"type": [
|
|
1650
|
-
"string",
|
|
1651
|
-
"null"
|
|
1652
|
-
]
|
|
1653
|
-
},
|
|
1654
1654
|
"leasedBy": {
|
|
1655
1655
|
"type": [
|
|
1656
1656
|
"string",
|
|
@@ -1674,6 +1674,7 @@
|
|
|
1674
1674
|
}
|
|
1675
1675
|
},
|
|
1676
1676
|
"required": [
|
|
1677
|
+
"error",
|
|
1677
1678
|
"status",
|
|
1678
1679
|
"id",
|
|
1679
1680
|
"labels",
|
|
@@ -1685,7 +1686,6 @@
|
|
|
1685
1686
|
"requires",
|
|
1686
1687
|
"environment",
|
|
1687
1688
|
"createdAt",
|
|
1688
|
-
"error",
|
|
1689
1689
|
"leasedBy",
|
|
1690
1690
|
"leaseExpiresAt",
|
|
1691
1691
|
"completedAt",
|
|
@@ -1767,6 +1767,12 @@
|
|
|
1767
1767
|
"request": {
|
|
1768
1768
|
"type": "object",
|
|
1769
1769
|
"properties": {
|
|
1770
|
+
"error": {
|
|
1771
|
+
"type": [
|
|
1772
|
+
"string",
|
|
1773
|
+
"null"
|
|
1774
|
+
]
|
|
1775
|
+
},
|
|
1770
1776
|
"status": {
|
|
1771
1777
|
"type": "string",
|
|
1772
1778
|
"enum": [
|
|
@@ -1825,12 +1831,190 @@
|
|
|
1825
1831
|
"createdAt": {
|
|
1826
1832
|
"type": "number"
|
|
1827
1833
|
},
|
|
1834
|
+
"leasedBy": {
|
|
1835
|
+
"type": [
|
|
1836
|
+
"string",
|
|
1837
|
+
"null"
|
|
1838
|
+
]
|
|
1839
|
+
},
|
|
1840
|
+
"leaseExpiresAt": {
|
|
1841
|
+
"type": [
|
|
1842
|
+
"number",
|
|
1843
|
+
"null"
|
|
1844
|
+
]
|
|
1845
|
+
},
|
|
1846
|
+
"completedAt": {
|
|
1847
|
+
"type": [
|
|
1848
|
+
"number",
|
|
1849
|
+
"null"
|
|
1850
|
+
]
|
|
1851
|
+
},
|
|
1852
|
+
"updatedAt": {
|
|
1853
|
+
"type": "number"
|
|
1854
|
+
}
|
|
1855
|
+
},
|
|
1856
|
+
"required": [
|
|
1857
|
+
"error",
|
|
1858
|
+
"status",
|
|
1859
|
+
"id",
|
|
1860
|
+
"labels",
|
|
1861
|
+
"hostId",
|
|
1862
|
+
"input",
|
|
1863
|
+
"worktreeId",
|
|
1864
|
+
"repo",
|
|
1865
|
+
"branch",
|
|
1866
|
+
"requires",
|
|
1867
|
+
"environment",
|
|
1868
|
+
"createdAt",
|
|
1869
|
+
"leasedBy",
|
|
1870
|
+
"leaseExpiresAt",
|
|
1871
|
+
"completedAt",
|
|
1872
|
+
"updatedAt"
|
|
1873
|
+
],
|
|
1874
|
+
"additionalProperties": false
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
"required": [
|
|
1878
|
+
"request"
|
|
1879
|
+
],
|
|
1880
|
+
"additionalProperties": false
|
|
1881
|
+
}
|
|
1882
|
+
},
|
|
1883
|
+
"required": [
|
|
1884
|
+
"data"
|
|
1885
|
+
]
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
"required": [
|
|
1889
|
+
"result"
|
|
1890
|
+
]
|
|
1891
|
+
}
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
"default": {
|
|
1896
|
+
"$ref": "#/components/responses/Error"
|
|
1897
|
+
}
|
|
1898
|
+
},
|
|
1899
|
+
"requestBody": {
|
|
1900
|
+
"required": true,
|
|
1901
|
+
"content": {
|
|
1902
|
+
"application/json": {
|
|
1903
|
+
"schema": {
|
|
1904
|
+
"type": "object",
|
|
1905
|
+
"properties": {
|
|
1906
|
+
"hostId": {
|
|
1907
|
+
"type": "string"
|
|
1908
|
+
},
|
|
1909
|
+
"requestId": {
|
|
1910
|
+
"type": "string"
|
|
1911
|
+
},
|
|
1912
|
+
"runnerId": {
|
|
1913
|
+
"type": "string"
|
|
1914
|
+
},
|
|
1915
|
+
"hostRepoPath": {
|
|
1916
|
+
"type": "string"
|
|
1917
|
+
}
|
|
1918
|
+
},
|
|
1919
|
+
"required": [
|
|
1920
|
+
"hostId",
|
|
1921
|
+
"requestId",
|
|
1922
|
+
"runnerId"
|
|
1923
|
+
],
|
|
1924
|
+
"additionalProperties": false
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
},
|
|
1931
|
+
"/hostRequests.fail": {
|
|
1932
|
+
"post": {
|
|
1933
|
+
"operationId": "hostRequests.fail",
|
|
1934
|
+
"tags": [
|
|
1935
|
+
"hostRequests"
|
|
1936
|
+
],
|
|
1937
|
+
"responses": {
|
|
1938
|
+
"200": {
|
|
1939
|
+
"description": "Successful response",
|
|
1940
|
+
"content": {
|
|
1941
|
+
"application/json": {
|
|
1942
|
+
"schema": {
|
|
1943
|
+
"type": "object",
|
|
1944
|
+
"properties": {
|
|
1945
|
+
"result": {
|
|
1946
|
+
"type": "object",
|
|
1947
|
+
"properties": {
|
|
1948
|
+
"data": {
|
|
1949
|
+
"type": "object",
|
|
1950
|
+
"properties": {
|
|
1951
|
+
"request": {
|
|
1952
|
+
"type": "object",
|
|
1953
|
+
"properties": {
|
|
1828
1954
|
"error": {
|
|
1829
1955
|
"type": [
|
|
1830
1956
|
"string",
|
|
1831
1957
|
"null"
|
|
1832
1958
|
]
|
|
1833
1959
|
},
|
|
1960
|
+
"status": {
|
|
1961
|
+
"type": "string",
|
|
1962
|
+
"enum": [
|
|
1963
|
+
"failed",
|
|
1964
|
+
"cancelled",
|
|
1965
|
+
"pending",
|
|
1966
|
+
"leased",
|
|
1967
|
+
"fulfilled"
|
|
1968
|
+
]
|
|
1969
|
+
},
|
|
1970
|
+
"id": {
|
|
1971
|
+
"type": "string"
|
|
1972
|
+
},
|
|
1973
|
+
"labels": {
|
|
1974
|
+
"type": "object",
|
|
1975
|
+
"additionalProperties": {
|
|
1976
|
+
"type": "string"
|
|
1977
|
+
}
|
|
1978
|
+
},
|
|
1979
|
+
"hostId": {
|
|
1980
|
+
"type": [
|
|
1981
|
+
"string",
|
|
1982
|
+
"null"
|
|
1983
|
+
]
|
|
1984
|
+
},
|
|
1985
|
+
"input": {
|
|
1986
|
+
"type": "object",
|
|
1987
|
+
"additionalProperties": {}
|
|
1988
|
+
},
|
|
1989
|
+
"worktreeId": {
|
|
1990
|
+
"type": "string"
|
|
1991
|
+
},
|
|
1992
|
+
"repo": {
|
|
1993
|
+
"type": "string"
|
|
1994
|
+
},
|
|
1995
|
+
"branch": {
|
|
1996
|
+
"type": "string"
|
|
1997
|
+
},
|
|
1998
|
+
"requires": {
|
|
1999
|
+
"type": "object",
|
|
2000
|
+
"additionalProperties": {
|
|
2001
|
+
"type": "string"
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
"environment": {
|
|
2005
|
+
"oneOf": [
|
|
2006
|
+
{
|
|
2007
|
+
"type": "object",
|
|
2008
|
+
"additionalProperties": {}
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
"type": "null"
|
|
2012
|
+
}
|
|
2013
|
+
]
|
|
2014
|
+
},
|
|
2015
|
+
"createdAt": {
|
|
2016
|
+
"type": "number"
|
|
2017
|
+
},
|
|
1834
2018
|
"leasedBy": {
|
|
1835
2019
|
"type": [
|
|
1836
2020
|
"string",
|
|
@@ -1854,6 +2038,7 @@
|
|
|
1854
2038
|
}
|
|
1855
2039
|
},
|
|
1856
2040
|
"required": [
|
|
2041
|
+
"error",
|
|
1857
2042
|
"status",
|
|
1858
2043
|
"id",
|
|
1859
2044
|
"labels",
|
|
@@ -1865,7 +2050,6 @@
|
|
|
1865
2050
|
"requires",
|
|
1866
2051
|
"environment",
|
|
1867
2052
|
"createdAt",
|
|
1868
|
-
"error",
|
|
1869
2053
|
"leasedBy",
|
|
1870
2054
|
"leaseExpiresAt",
|
|
1871
2055
|
"completedAt",
|
|
@@ -1903,23 +2087,757 @@
|
|
|
1903
2087
|
"schema": {
|
|
1904
2088
|
"type": "object",
|
|
1905
2089
|
"properties": {
|
|
1906
|
-
"
|
|
1907
|
-
"type": "string"
|
|
1908
|
-
},
|
|
1909
|
-
"
|
|
2090
|
+
"requestId": {
|
|
2091
|
+
"type": "string"
|
|
2092
|
+
},
|
|
2093
|
+
"reason": {
|
|
2094
|
+
"type": "string"
|
|
2095
|
+
}
|
|
2096
|
+
},
|
|
2097
|
+
"required": [
|
|
2098
|
+
"requestId",
|
|
2099
|
+
"reason"
|
|
2100
|
+
],
|
|
2101
|
+
"additionalProperties": false
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
}
|
|
2105
|
+
}
|
|
2106
|
+
}
|
|
2107
|
+
},
|
|
2108
|
+
"/checkpoints.list": {
|
|
2109
|
+
"get": {
|
|
2110
|
+
"operationId": "checkpoints.list",
|
|
2111
|
+
"tags": [
|
|
2112
|
+
"checkpoints"
|
|
2113
|
+
],
|
|
2114
|
+
"responses": {
|
|
2115
|
+
"200": {
|
|
2116
|
+
"description": "Successful response",
|
|
2117
|
+
"content": {
|
|
2118
|
+
"application/json": {
|
|
2119
|
+
"schema": {
|
|
2120
|
+
"type": "object",
|
|
2121
|
+
"properties": {
|
|
2122
|
+
"result": {
|
|
2123
|
+
"type": "object",
|
|
2124
|
+
"properties": {
|
|
2125
|
+
"data": {
|
|
2126
|
+
"type": "object",
|
|
2127
|
+
"properties": {
|
|
2128
|
+
"checkpoints": {
|
|
2129
|
+
"type": "array",
|
|
2130
|
+
"items": {
|
|
2131
|
+
"$ref": "#/components/schemas/CheckpointView"
|
|
2132
|
+
}
|
|
2133
|
+
},
|
|
2134
|
+
"warning": {
|
|
2135
|
+
"type": [
|
|
2136
|
+
"string",
|
|
2137
|
+
"null"
|
|
2138
|
+
]
|
|
2139
|
+
}
|
|
2140
|
+
},
|
|
2141
|
+
"required": [
|
|
2142
|
+
"checkpoints",
|
|
2143
|
+
"warning"
|
|
2144
|
+
],
|
|
2145
|
+
"additionalProperties": false
|
|
2146
|
+
}
|
|
2147
|
+
},
|
|
2148
|
+
"required": [
|
|
2149
|
+
"data"
|
|
2150
|
+
]
|
|
2151
|
+
}
|
|
2152
|
+
},
|
|
2153
|
+
"required": [
|
|
2154
|
+
"result"
|
|
2155
|
+
]
|
|
2156
|
+
}
|
|
2157
|
+
}
|
|
2158
|
+
}
|
|
2159
|
+
},
|
|
2160
|
+
"default": {
|
|
2161
|
+
"$ref": "#/components/responses/Error"
|
|
2162
|
+
}
|
|
2163
|
+
},
|
|
2164
|
+
"parameters": [
|
|
2165
|
+
{
|
|
2166
|
+
"name": "input",
|
|
2167
|
+
"in": "query",
|
|
2168
|
+
"required": true,
|
|
2169
|
+
"style": "deepObject",
|
|
2170
|
+
"content": {
|
|
2171
|
+
"application/json": {
|
|
2172
|
+
"schema": {
|
|
2173
|
+
"type": "object",
|
|
2174
|
+
"properties": {
|
|
2175
|
+
"worktreeId": {
|
|
2176
|
+
"type": "string"
|
|
2177
|
+
}
|
|
2178
|
+
},
|
|
2179
|
+
"required": [
|
|
2180
|
+
"worktreeId"
|
|
2181
|
+
],
|
|
2182
|
+
"additionalProperties": false
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
}
|
|
2186
|
+
}
|
|
2187
|
+
]
|
|
2188
|
+
}
|
|
2189
|
+
},
|
|
2190
|
+
"/checkpoints.take": {
|
|
2191
|
+
"post": {
|
|
2192
|
+
"operationId": "checkpoints.take",
|
|
2193
|
+
"description": "Takes a checkpoint now. Answers `unchanged` when nothing differs from the newest one.",
|
|
2194
|
+
"tags": [
|
|
2195
|
+
"checkpoints"
|
|
2196
|
+
],
|
|
2197
|
+
"responses": {
|
|
2198
|
+
"200": {
|
|
2199
|
+
"description": "Successful response",
|
|
2200
|
+
"content": {
|
|
2201
|
+
"application/json": {
|
|
2202
|
+
"schema": {
|
|
2203
|
+
"type": "object",
|
|
2204
|
+
"properties": {
|
|
2205
|
+
"result": {
|
|
2206
|
+
"type": "object",
|
|
2207
|
+
"properties": {
|
|
2208
|
+
"data": {
|
|
2209
|
+
"oneOf": [
|
|
2210
|
+
{
|
|
2211
|
+
"type": "object",
|
|
2212
|
+
"properties": {
|
|
2213
|
+
"status": {
|
|
2214
|
+
"type": "string",
|
|
2215
|
+
"const": "created"
|
|
2216
|
+
},
|
|
2217
|
+
"checkpoint": {
|
|
2218
|
+
"$ref": "#/components/schemas/CheckpointView"
|
|
2219
|
+
}
|
|
2220
|
+
},
|
|
2221
|
+
"required": [
|
|
2222
|
+
"status",
|
|
2223
|
+
"checkpoint"
|
|
2224
|
+
],
|
|
2225
|
+
"additionalProperties": false
|
|
2226
|
+
},
|
|
2227
|
+
{
|
|
2228
|
+
"type": "object",
|
|
2229
|
+
"properties": {
|
|
2230
|
+
"status": {
|
|
2231
|
+
"type": "string",
|
|
2232
|
+
"const": "unchanged"
|
|
2233
|
+
},
|
|
2234
|
+
"checkpoint": {
|
|
2235
|
+
"$ref": "#/components/schemas/CheckpointView"
|
|
2236
|
+
}
|
|
2237
|
+
},
|
|
2238
|
+
"required": [
|
|
2239
|
+
"status",
|
|
2240
|
+
"checkpoint"
|
|
2241
|
+
],
|
|
2242
|
+
"additionalProperties": false
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"type": "object",
|
|
2246
|
+
"properties": {
|
|
2247
|
+
"status": {
|
|
2248
|
+
"type": "string",
|
|
2249
|
+
"const": "skipped"
|
|
2250
|
+
},
|
|
2251
|
+
"reason": {
|
|
2252
|
+
"type": "string"
|
|
2253
|
+
}
|
|
2254
|
+
},
|
|
2255
|
+
"required": [
|
|
2256
|
+
"status",
|
|
2257
|
+
"reason"
|
|
2258
|
+
],
|
|
2259
|
+
"additionalProperties": false
|
|
2260
|
+
}
|
|
2261
|
+
],
|
|
2262
|
+
"discriminator": {
|
|
2263
|
+
"propertyName": "status"
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
},
|
|
2267
|
+
"required": [
|
|
2268
|
+
"data"
|
|
2269
|
+
]
|
|
2270
|
+
}
|
|
2271
|
+
},
|
|
2272
|
+
"required": [
|
|
2273
|
+
"result"
|
|
2274
|
+
]
|
|
2275
|
+
}
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
},
|
|
2279
|
+
"default": {
|
|
2280
|
+
"$ref": "#/components/responses/Error"
|
|
2281
|
+
}
|
|
2282
|
+
},
|
|
2283
|
+
"requestBody": {
|
|
2284
|
+
"required": true,
|
|
2285
|
+
"content": {
|
|
2286
|
+
"application/json": {
|
|
2287
|
+
"schema": {
|
|
2288
|
+
"type": "object",
|
|
2289
|
+
"properties": {
|
|
2290
|
+
"worktreeId": {
|
|
2291
|
+
"type": "string"
|
|
2292
|
+
}
|
|
2293
|
+
},
|
|
2294
|
+
"required": [
|
|
2295
|
+
"worktreeId"
|
|
2296
|
+
],
|
|
2297
|
+
"additionalProperties": false
|
|
2298
|
+
}
|
|
2299
|
+
}
|
|
2300
|
+
}
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
},
|
|
2304
|
+
"/checkpoints.changes": {
|
|
2305
|
+
"get": {
|
|
2306
|
+
"operationId": "checkpoints.changes",
|
|
2307
|
+
"tags": [
|
|
2308
|
+
"checkpoints"
|
|
2309
|
+
],
|
|
2310
|
+
"responses": {
|
|
2311
|
+
"200": {
|
|
2312
|
+
"description": "Successful response",
|
|
2313
|
+
"content": {
|
|
2314
|
+
"application/json": {
|
|
2315
|
+
"schema": {
|
|
2316
|
+
"type": "object",
|
|
2317
|
+
"properties": {
|
|
2318
|
+
"result": {
|
|
2319
|
+
"type": "object",
|
|
2320
|
+
"properties": {
|
|
2321
|
+
"data": {
|
|
2322
|
+
"type": "object",
|
|
2323
|
+
"properties": {
|
|
2324
|
+
"checkpoint": {
|
|
2325
|
+
"$ref": "#/components/schemas/CheckpointView"
|
|
2326
|
+
},
|
|
2327
|
+
"files": {
|
|
2328
|
+
"type": "array",
|
|
2329
|
+
"items": {
|
|
2330
|
+
"$ref": "#/components/schemas/ChangedFile"
|
|
2331
|
+
}
|
|
2332
|
+
}
|
|
2333
|
+
},
|
|
2334
|
+
"required": [
|
|
2335
|
+
"checkpoint",
|
|
2336
|
+
"files"
|
|
2337
|
+
],
|
|
2338
|
+
"additionalProperties": false
|
|
2339
|
+
}
|
|
2340
|
+
},
|
|
2341
|
+
"required": [
|
|
2342
|
+
"data"
|
|
2343
|
+
]
|
|
2344
|
+
}
|
|
2345
|
+
},
|
|
2346
|
+
"required": [
|
|
2347
|
+
"result"
|
|
2348
|
+
]
|
|
2349
|
+
}
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
"default": {
|
|
2354
|
+
"$ref": "#/components/responses/Error"
|
|
2355
|
+
}
|
|
2356
|
+
},
|
|
2357
|
+
"parameters": [
|
|
2358
|
+
{
|
|
2359
|
+
"name": "input",
|
|
2360
|
+
"in": "query",
|
|
2361
|
+
"required": true,
|
|
2362
|
+
"style": "deepObject",
|
|
2363
|
+
"content": {
|
|
2364
|
+
"application/json": {
|
|
2365
|
+
"schema": {
|
|
2366
|
+
"type": "object",
|
|
2367
|
+
"properties": {
|
|
2368
|
+
"worktreeId": {
|
|
2369
|
+
"type": "string"
|
|
2370
|
+
},
|
|
2371
|
+
"checkpointId": {
|
|
2372
|
+
"type": "string"
|
|
2373
|
+
}
|
|
2374
|
+
},
|
|
2375
|
+
"required": [
|
|
2376
|
+
"worktreeId"
|
|
2377
|
+
],
|
|
2378
|
+
"additionalProperties": false
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
]
|
|
2384
|
+
}
|
|
2385
|
+
},
|
|
2386
|
+
"/checkpoints.diff": {
|
|
2387
|
+
"get": {
|
|
2388
|
+
"operationId": "checkpoints.diff",
|
|
2389
|
+
"tags": [
|
|
2390
|
+
"checkpoints"
|
|
2391
|
+
],
|
|
2392
|
+
"responses": {
|
|
2393
|
+
"200": {
|
|
2394
|
+
"description": "Successful response",
|
|
2395
|
+
"content": {
|
|
2396
|
+
"application/json": {
|
|
2397
|
+
"schema": {
|
|
2398
|
+
"type": "object",
|
|
2399
|
+
"properties": {
|
|
2400
|
+
"result": {
|
|
2401
|
+
"type": "object",
|
|
2402
|
+
"properties": {
|
|
2403
|
+
"data": {
|
|
2404
|
+
"type": "object",
|
|
2405
|
+
"properties": {
|
|
2406
|
+
"diff": {
|
|
2407
|
+
"type": "string"
|
|
2408
|
+
}
|
|
2409
|
+
},
|
|
2410
|
+
"required": [
|
|
2411
|
+
"diff"
|
|
2412
|
+
],
|
|
2413
|
+
"additionalProperties": false
|
|
2414
|
+
}
|
|
2415
|
+
},
|
|
2416
|
+
"required": [
|
|
2417
|
+
"data"
|
|
2418
|
+
]
|
|
2419
|
+
}
|
|
2420
|
+
},
|
|
2421
|
+
"required": [
|
|
2422
|
+
"result"
|
|
2423
|
+
]
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
}
|
|
2427
|
+
},
|
|
2428
|
+
"default": {
|
|
2429
|
+
"$ref": "#/components/responses/Error"
|
|
2430
|
+
}
|
|
2431
|
+
},
|
|
2432
|
+
"parameters": [
|
|
2433
|
+
{
|
|
2434
|
+
"name": "input",
|
|
2435
|
+
"in": "query",
|
|
2436
|
+
"required": true,
|
|
2437
|
+
"style": "deepObject",
|
|
2438
|
+
"content": {
|
|
2439
|
+
"application/json": {
|
|
2440
|
+
"schema": {
|
|
2441
|
+
"type": "object",
|
|
2442
|
+
"properties": {
|
|
2443
|
+
"path": {
|
|
2444
|
+
"type": "string"
|
|
2445
|
+
},
|
|
2446
|
+
"worktreeId": {
|
|
2447
|
+
"type": "string"
|
|
2448
|
+
},
|
|
2449
|
+
"checkpointId": {
|
|
2450
|
+
"type": "string"
|
|
2451
|
+
}
|
|
2452
|
+
},
|
|
2453
|
+
"required": [
|
|
2454
|
+
"path",
|
|
2455
|
+
"worktreeId"
|
|
2456
|
+
],
|
|
2457
|
+
"additionalProperties": false
|
|
2458
|
+
}
|
|
2459
|
+
}
|
|
2460
|
+
}
|
|
2461
|
+
}
|
|
2462
|
+
]
|
|
2463
|
+
}
|
|
2464
|
+
},
|
|
2465
|
+
"/checkpoints.files": {
|
|
2466
|
+
"get": {
|
|
2467
|
+
"operationId": "checkpoints.files",
|
|
2468
|
+
"tags": [
|
|
2469
|
+
"checkpoints"
|
|
2470
|
+
],
|
|
2471
|
+
"responses": {
|
|
2472
|
+
"200": {
|
|
2473
|
+
"description": "Successful response",
|
|
2474
|
+
"content": {
|
|
2475
|
+
"application/json": {
|
|
2476
|
+
"schema": {
|
|
2477
|
+
"type": "object",
|
|
2478
|
+
"properties": {
|
|
2479
|
+
"result": {
|
|
2480
|
+
"type": "object",
|
|
2481
|
+
"properties": {
|
|
2482
|
+
"data": {
|
|
2483
|
+
"type": "object",
|
|
2484
|
+
"properties": {
|
|
2485
|
+
"checkpoint": {
|
|
2486
|
+
"$ref": "#/components/schemas/CheckpointView"
|
|
2487
|
+
},
|
|
2488
|
+
"paths": {
|
|
2489
|
+
"type": "array",
|
|
2490
|
+
"items": {
|
|
2491
|
+
"type": "string"
|
|
2492
|
+
}
|
|
2493
|
+
}
|
|
2494
|
+
},
|
|
2495
|
+
"required": [
|
|
2496
|
+
"checkpoint",
|
|
2497
|
+
"paths"
|
|
2498
|
+
],
|
|
2499
|
+
"additionalProperties": false
|
|
2500
|
+
}
|
|
2501
|
+
},
|
|
2502
|
+
"required": [
|
|
2503
|
+
"data"
|
|
2504
|
+
]
|
|
2505
|
+
}
|
|
2506
|
+
},
|
|
2507
|
+
"required": [
|
|
2508
|
+
"result"
|
|
2509
|
+
]
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
}
|
|
2513
|
+
},
|
|
2514
|
+
"default": {
|
|
2515
|
+
"$ref": "#/components/responses/Error"
|
|
2516
|
+
}
|
|
2517
|
+
},
|
|
2518
|
+
"parameters": [
|
|
2519
|
+
{
|
|
2520
|
+
"name": "input",
|
|
2521
|
+
"in": "query",
|
|
2522
|
+
"required": true,
|
|
2523
|
+
"style": "deepObject",
|
|
2524
|
+
"content": {
|
|
2525
|
+
"application/json": {
|
|
2526
|
+
"schema": {
|
|
2527
|
+
"type": "object",
|
|
2528
|
+
"properties": {
|
|
2529
|
+
"worktreeId": {
|
|
2530
|
+
"type": "string"
|
|
2531
|
+
},
|
|
2532
|
+
"checkpointId": {
|
|
2533
|
+
"type": "string"
|
|
2534
|
+
}
|
|
2535
|
+
},
|
|
2536
|
+
"required": [
|
|
2537
|
+
"worktreeId"
|
|
2538
|
+
],
|
|
2539
|
+
"additionalProperties": false
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
]
|
|
2545
|
+
}
|
|
2546
|
+
},
|
|
2547
|
+
"/checkpoints.file": {
|
|
2548
|
+
"get": {
|
|
2549
|
+
"operationId": "checkpoints.file",
|
|
2550
|
+
"tags": [
|
|
2551
|
+
"checkpoints"
|
|
2552
|
+
],
|
|
2553
|
+
"responses": {
|
|
2554
|
+
"200": {
|
|
2555
|
+
"description": "Successful response",
|
|
2556
|
+
"content": {
|
|
2557
|
+
"application/json": {
|
|
2558
|
+
"schema": {
|
|
2559
|
+
"type": "object",
|
|
2560
|
+
"properties": {
|
|
2561
|
+
"result": {
|
|
2562
|
+
"type": "object",
|
|
2563
|
+
"properties": {
|
|
2564
|
+
"data": {
|
|
2565
|
+
"type": "object",
|
|
2566
|
+
"properties": {
|
|
2567
|
+
"path": {
|
|
2568
|
+
"type": "string"
|
|
2569
|
+
},
|
|
2570
|
+
"size": {
|
|
2571
|
+
"type": "number"
|
|
2572
|
+
},
|
|
2573
|
+
"binary": {
|
|
2574
|
+
"type": "boolean"
|
|
2575
|
+
},
|
|
2576
|
+
"truncated": {
|
|
2577
|
+
"type": "boolean"
|
|
2578
|
+
},
|
|
2579
|
+
"content": {
|
|
2580
|
+
"type": "string"
|
|
2581
|
+
}
|
|
2582
|
+
},
|
|
2583
|
+
"required": [
|
|
2584
|
+
"path",
|
|
2585
|
+
"size",
|
|
2586
|
+
"binary",
|
|
2587
|
+
"truncated",
|
|
2588
|
+
"content"
|
|
2589
|
+
],
|
|
2590
|
+
"additionalProperties": false
|
|
2591
|
+
}
|
|
2592
|
+
},
|
|
2593
|
+
"required": [
|
|
2594
|
+
"data"
|
|
2595
|
+
]
|
|
2596
|
+
}
|
|
2597
|
+
},
|
|
2598
|
+
"required": [
|
|
2599
|
+
"result"
|
|
2600
|
+
]
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2604
|
+
},
|
|
2605
|
+
"default": {
|
|
2606
|
+
"$ref": "#/components/responses/Error"
|
|
2607
|
+
}
|
|
2608
|
+
},
|
|
2609
|
+
"parameters": [
|
|
2610
|
+
{
|
|
2611
|
+
"name": "input",
|
|
2612
|
+
"in": "query",
|
|
2613
|
+
"required": true,
|
|
2614
|
+
"style": "deepObject",
|
|
2615
|
+
"content": {
|
|
2616
|
+
"application/json": {
|
|
2617
|
+
"schema": {
|
|
2618
|
+
"type": "object",
|
|
2619
|
+
"properties": {
|
|
2620
|
+
"path": {
|
|
2621
|
+
"type": "string"
|
|
2622
|
+
},
|
|
2623
|
+
"worktreeId": {
|
|
2624
|
+
"type": "string"
|
|
2625
|
+
},
|
|
2626
|
+
"checkpointId": {
|
|
2627
|
+
"type": "string"
|
|
2628
|
+
}
|
|
2629
|
+
},
|
|
2630
|
+
"required": [
|
|
2631
|
+
"path",
|
|
2632
|
+
"worktreeId"
|
|
2633
|
+
],
|
|
2634
|
+
"additionalProperties": false
|
|
2635
|
+
}
|
|
2636
|
+
}
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
]
|
|
2640
|
+
}
|
|
2641
|
+
},
|
|
2642
|
+
"/checkpoints.restore": {
|
|
2643
|
+
"post": {
|
|
2644
|
+
"operationId": "checkpoints.restore",
|
|
2645
|
+
"description": "Restores a worktree on another host from a checkpoint. The old copy is left alone, superseded.",
|
|
2646
|
+
"tags": [
|
|
2647
|
+
"checkpoints"
|
|
2648
|
+
],
|
|
2649
|
+
"responses": {
|
|
2650
|
+
"200": {
|
|
2651
|
+
"description": "Successful response",
|
|
2652
|
+
"content": {
|
|
2653
|
+
"application/json": {
|
|
2654
|
+
"schema": {
|
|
2655
|
+
"type": "object",
|
|
2656
|
+
"properties": {
|
|
2657
|
+
"result": {
|
|
2658
|
+
"type": "object",
|
|
2659
|
+
"properties": {
|
|
2660
|
+
"data": {
|
|
2661
|
+
"$ref": "#/components/schemas/RestoreResult"
|
|
2662
|
+
}
|
|
2663
|
+
},
|
|
2664
|
+
"required": [
|
|
2665
|
+
"data"
|
|
2666
|
+
]
|
|
2667
|
+
}
|
|
2668
|
+
},
|
|
2669
|
+
"required": [
|
|
2670
|
+
"result"
|
|
2671
|
+
]
|
|
2672
|
+
}
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
},
|
|
2676
|
+
"default": {
|
|
2677
|
+
"$ref": "#/components/responses/Error"
|
|
2678
|
+
}
|
|
2679
|
+
},
|
|
2680
|
+
"requestBody": {
|
|
2681
|
+
"required": true,
|
|
2682
|
+
"content": {
|
|
2683
|
+
"application/json": {
|
|
2684
|
+
"schema": {
|
|
2685
|
+
"type": "object",
|
|
2686
|
+
"properties": {
|
|
2687
|
+
"worktreeId": {
|
|
2688
|
+
"type": "string"
|
|
2689
|
+
},
|
|
2690
|
+
"toHostId": {
|
|
2691
|
+
"type": "string"
|
|
2692
|
+
},
|
|
2693
|
+
"hostRepoPath": {
|
|
2694
|
+
"type": "string"
|
|
2695
|
+
},
|
|
2696
|
+
"checkpointId": {
|
|
2697
|
+
"type": "string"
|
|
2698
|
+
},
|
|
2699
|
+
"addHost": {
|
|
2700
|
+
"type": "boolean"
|
|
2701
|
+
}
|
|
2702
|
+
},
|
|
2703
|
+
"required": [
|
|
2704
|
+
"worktreeId",
|
|
2705
|
+
"toHostId"
|
|
2706
|
+
],
|
|
2707
|
+
"additionalProperties": false
|
|
2708
|
+
}
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
},
|
|
2714
|
+
"/checkpoints.move": {
|
|
2715
|
+
"post": {
|
|
2716
|
+
"operationId": "checkpoints.move",
|
|
2717
|
+
"description": "Moves a worktree whose host is online, and removes the source once the target has it.",
|
|
2718
|
+
"tags": [
|
|
2719
|
+
"checkpoints"
|
|
2720
|
+
],
|
|
2721
|
+
"responses": {
|
|
2722
|
+
"200": {
|
|
2723
|
+
"description": "Successful response",
|
|
2724
|
+
"content": {
|
|
2725
|
+
"application/json": {
|
|
2726
|
+
"schema": {
|
|
2727
|
+
"type": "object",
|
|
2728
|
+
"properties": {
|
|
2729
|
+
"result": {
|
|
2730
|
+
"type": "object",
|
|
2731
|
+
"properties": {
|
|
2732
|
+
"data": {
|
|
2733
|
+
"$ref": "#/components/schemas/RestoreResult"
|
|
2734
|
+
}
|
|
2735
|
+
},
|
|
2736
|
+
"required": [
|
|
2737
|
+
"data"
|
|
2738
|
+
]
|
|
2739
|
+
}
|
|
2740
|
+
},
|
|
2741
|
+
"required": [
|
|
2742
|
+
"result"
|
|
2743
|
+
]
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
},
|
|
2748
|
+
"default": {
|
|
2749
|
+
"$ref": "#/components/responses/Error"
|
|
2750
|
+
}
|
|
2751
|
+
},
|
|
2752
|
+
"requestBody": {
|
|
2753
|
+
"required": true,
|
|
2754
|
+
"content": {
|
|
2755
|
+
"application/json": {
|
|
2756
|
+
"schema": {
|
|
2757
|
+
"type": "object",
|
|
2758
|
+
"properties": {
|
|
2759
|
+
"worktreeId": {
|
|
2760
|
+
"type": "string"
|
|
2761
|
+
},
|
|
2762
|
+
"toHostId": {
|
|
2763
|
+
"type": "string"
|
|
2764
|
+
},
|
|
2765
|
+
"hostRepoPath": {
|
|
2766
|
+
"type": "string"
|
|
2767
|
+
},
|
|
2768
|
+
"addHost": {
|
|
2769
|
+
"type": "boolean"
|
|
2770
|
+
}
|
|
2771
|
+
},
|
|
2772
|
+
"required": [
|
|
2773
|
+
"worktreeId",
|
|
2774
|
+
"toHostId"
|
|
2775
|
+
],
|
|
2776
|
+
"additionalProperties": false
|
|
2777
|
+
}
|
|
2778
|
+
}
|
|
2779
|
+
}
|
|
2780
|
+
}
|
|
2781
|
+
}
|
|
2782
|
+
},
|
|
2783
|
+
"/checkpoints.evacuate": {
|
|
2784
|
+
"post": {
|
|
2785
|
+
"operationId": "checkpoints.evacuate",
|
|
2786
|
+
"description": "Moves every worktree on a host to another, one after the other.",
|
|
2787
|
+
"tags": [
|
|
2788
|
+
"checkpoints"
|
|
2789
|
+
],
|
|
2790
|
+
"responses": {
|
|
2791
|
+
"200": {
|
|
2792
|
+
"description": "Successful response",
|
|
2793
|
+
"content": {
|
|
2794
|
+
"application/json": {
|
|
2795
|
+
"schema": {
|
|
2796
|
+
"type": "object",
|
|
2797
|
+
"properties": {
|
|
2798
|
+
"result": {
|
|
2799
|
+
"type": "object",
|
|
2800
|
+
"properties": {
|
|
2801
|
+
"data": {
|
|
2802
|
+
"$ref": "#/components/schemas/EvacuateResult"
|
|
2803
|
+
}
|
|
2804
|
+
},
|
|
2805
|
+
"required": [
|
|
2806
|
+
"data"
|
|
2807
|
+
]
|
|
2808
|
+
}
|
|
2809
|
+
},
|
|
2810
|
+
"required": [
|
|
2811
|
+
"result"
|
|
2812
|
+
]
|
|
2813
|
+
}
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
"default": {
|
|
2818
|
+
"$ref": "#/components/responses/Error"
|
|
2819
|
+
}
|
|
2820
|
+
},
|
|
2821
|
+
"requestBody": {
|
|
2822
|
+
"required": true,
|
|
2823
|
+
"content": {
|
|
2824
|
+
"application/json": {
|
|
2825
|
+
"schema": {
|
|
2826
|
+
"type": "object",
|
|
2827
|
+
"properties": {
|
|
2828
|
+
"toHostId": {
|
|
1910
2829
|
"type": "string"
|
|
1911
2830
|
},
|
|
1912
|
-
"
|
|
2831
|
+
"fromHostId": {
|
|
1913
2832
|
"type": "string"
|
|
1914
2833
|
},
|
|
1915
|
-
"
|
|
1916
|
-
"type": "
|
|
2834
|
+
"addHost": {
|
|
2835
|
+
"type": "boolean"
|
|
1917
2836
|
}
|
|
1918
2837
|
},
|
|
1919
2838
|
"required": [
|
|
1920
|
-
"
|
|
1921
|
-
"
|
|
1922
|
-
"runnerId"
|
|
2839
|
+
"toHostId",
|
|
2840
|
+
"fromHostId"
|
|
1923
2841
|
],
|
|
1924
2842
|
"additionalProperties": false
|
|
1925
2843
|
}
|
|
@@ -1928,11 +2846,12 @@
|
|
|
1928
2846
|
}
|
|
1929
2847
|
}
|
|
1930
2848
|
},
|
|
1931
|
-
"/
|
|
1932
|
-
"
|
|
1933
|
-
"operationId": "
|
|
2849
|
+
"/checkpoints.evacuable": {
|
|
2850
|
+
"get": {
|
|
2851
|
+
"operationId": "checkpoints.evacuable",
|
|
2852
|
+
"description": "The worktrees on a host that an evacuation would take.",
|
|
1934
2853
|
"tags": [
|
|
1935
|
-
"
|
|
2854
|
+
"checkpoints"
|
|
1936
2855
|
],
|
|
1937
2856
|
"responses": {
|
|
1938
2857
|
"200": {
|
|
@@ -1948,118 +2867,32 @@
|
|
|
1948
2867
|
"data": {
|
|
1949
2868
|
"type": "object",
|
|
1950
2869
|
"properties": {
|
|
1951
|
-
"
|
|
1952
|
-
"type": "
|
|
1953
|
-
"
|
|
1954
|
-
"
|
|
1955
|
-
|
|
1956
|
-
"
|
|
1957
|
-
"failed",
|
|
1958
|
-
"cancelled",
|
|
1959
|
-
"pending",
|
|
1960
|
-
"leased",
|
|
1961
|
-
"fulfilled"
|
|
1962
|
-
]
|
|
1963
|
-
},
|
|
1964
|
-
"id": {
|
|
1965
|
-
"type": "string"
|
|
1966
|
-
},
|
|
1967
|
-
"labels": {
|
|
1968
|
-
"type": "object",
|
|
1969
|
-
"additionalProperties": {
|
|
2870
|
+
"worktrees": {
|
|
2871
|
+
"type": "array",
|
|
2872
|
+
"items": {
|
|
2873
|
+
"type": "object",
|
|
2874
|
+
"properties": {
|
|
2875
|
+
"repo": {
|
|
1970
2876
|
"type": "string"
|
|
1971
|
-
}
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
"null"
|
|
1977
|
-
]
|
|
1978
|
-
},
|
|
1979
|
-
"input": {
|
|
1980
|
-
"type": "object",
|
|
1981
|
-
"additionalProperties": {}
|
|
1982
|
-
},
|
|
1983
|
-
"worktreeId": {
|
|
1984
|
-
"type": "string"
|
|
1985
|
-
},
|
|
1986
|
-
"repo": {
|
|
1987
|
-
"type": "string"
|
|
1988
|
-
},
|
|
1989
|
-
"branch": {
|
|
1990
|
-
"type": "string"
|
|
1991
|
-
},
|
|
1992
|
-
"requires": {
|
|
1993
|
-
"type": "object",
|
|
1994
|
-
"additionalProperties": {
|
|
2877
|
+
},
|
|
2878
|
+
"name": {
|
|
2879
|
+
"type": "string"
|
|
2880
|
+
},
|
|
2881
|
+
"worktreeId": {
|
|
1995
2882
|
"type": "string"
|
|
1996
2883
|
}
|
|
1997
2884
|
},
|
|
1998
|
-
"
|
|
1999
|
-
"
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
"type": "null"
|
|
2006
|
-
}
|
|
2007
|
-
]
|
|
2008
|
-
},
|
|
2009
|
-
"createdAt": {
|
|
2010
|
-
"type": "number"
|
|
2011
|
-
},
|
|
2012
|
-
"error": {
|
|
2013
|
-
"type": [
|
|
2014
|
-
"string",
|
|
2015
|
-
"null"
|
|
2016
|
-
]
|
|
2017
|
-
},
|
|
2018
|
-
"leasedBy": {
|
|
2019
|
-
"type": [
|
|
2020
|
-
"string",
|
|
2021
|
-
"null"
|
|
2022
|
-
]
|
|
2023
|
-
},
|
|
2024
|
-
"leaseExpiresAt": {
|
|
2025
|
-
"type": [
|
|
2026
|
-
"number",
|
|
2027
|
-
"null"
|
|
2028
|
-
]
|
|
2029
|
-
},
|
|
2030
|
-
"completedAt": {
|
|
2031
|
-
"type": [
|
|
2032
|
-
"number",
|
|
2033
|
-
"null"
|
|
2034
|
-
]
|
|
2035
|
-
},
|
|
2036
|
-
"updatedAt": {
|
|
2037
|
-
"type": "number"
|
|
2038
|
-
}
|
|
2039
|
-
},
|
|
2040
|
-
"required": [
|
|
2041
|
-
"status",
|
|
2042
|
-
"id",
|
|
2043
|
-
"labels",
|
|
2044
|
-
"hostId",
|
|
2045
|
-
"input",
|
|
2046
|
-
"worktreeId",
|
|
2047
|
-
"repo",
|
|
2048
|
-
"branch",
|
|
2049
|
-
"requires",
|
|
2050
|
-
"environment",
|
|
2051
|
-
"createdAt",
|
|
2052
|
-
"error",
|
|
2053
|
-
"leasedBy",
|
|
2054
|
-
"leaseExpiresAt",
|
|
2055
|
-
"completedAt",
|
|
2056
|
-
"updatedAt"
|
|
2057
|
-
],
|
|
2058
|
-
"additionalProperties": false
|
|
2885
|
+
"required": [
|
|
2886
|
+
"repo",
|
|
2887
|
+
"name",
|
|
2888
|
+
"worktreeId"
|
|
2889
|
+
],
|
|
2890
|
+
"additionalProperties": false
|
|
2891
|
+
}
|
|
2059
2892
|
}
|
|
2060
2893
|
},
|
|
2061
2894
|
"required": [
|
|
2062
|
-
"
|
|
2895
|
+
"worktrees"
|
|
2063
2896
|
],
|
|
2064
2897
|
"additionalProperties": false
|
|
2065
2898
|
}
|
|
@@ -2080,29 +2913,30 @@
|
|
|
2080
2913
|
"$ref": "#/components/responses/Error"
|
|
2081
2914
|
}
|
|
2082
2915
|
},
|
|
2083
|
-
"
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
"
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2916
|
+
"parameters": [
|
|
2917
|
+
{
|
|
2918
|
+
"name": "input",
|
|
2919
|
+
"in": "query",
|
|
2920
|
+
"required": true,
|
|
2921
|
+
"style": "deepObject",
|
|
2922
|
+
"content": {
|
|
2923
|
+
"application/json": {
|
|
2924
|
+
"schema": {
|
|
2925
|
+
"type": "object",
|
|
2926
|
+
"properties": {
|
|
2927
|
+
"hostId": {
|
|
2928
|
+
"type": "string"
|
|
2929
|
+
}
|
|
2092
2930
|
},
|
|
2093
|
-
"
|
|
2094
|
-
"
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
"requestId",
|
|
2099
|
-
"reason"
|
|
2100
|
-
],
|
|
2101
|
-
"additionalProperties": false
|
|
2931
|
+
"required": [
|
|
2932
|
+
"hostId"
|
|
2933
|
+
],
|
|
2934
|
+
"additionalProperties": false
|
|
2935
|
+
}
|
|
2102
2936
|
}
|
|
2103
2937
|
}
|
|
2104
2938
|
}
|
|
2105
|
-
|
|
2939
|
+
]
|
|
2106
2940
|
}
|
|
2107
2941
|
},
|
|
2108
2942
|
"/runners.list": {
|
|
@@ -2734,6 +3568,9 @@
|
|
|
2734
3568
|
"type": "string"
|
|
2735
3569
|
}
|
|
2736
3570
|
},
|
|
3571
|
+
"hostId": {
|
|
3572
|
+
"type": "string"
|
|
3573
|
+
},
|
|
2737
3574
|
"ttlMinutes": {
|
|
2738
3575
|
"type": "number"
|
|
2739
3576
|
}
|
|
@@ -4103,6 +4940,12 @@
|
|
|
4103
4940
|
"items": {
|
|
4104
4941
|
"type": "object",
|
|
4105
4942
|
"properties": {
|
|
4943
|
+
"error": {
|
|
4944
|
+
"type": [
|
|
4945
|
+
"string",
|
|
4946
|
+
"null"
|
|
4947
|
+
]
|
|
4948
|
+
},
|
|
4106
4949
|
"at": {
|
|
4107
4950
|
"type": "number"
|
|
4108
4951
|
},
|
|
@@ -4115,12 +4958,6 @@
|
|
|
4115
4958
|
"sessionId": {
|
|
4116
4959
|
"type": "string"
|
|
4117
4960
|
},
|
|
4118
|
-
"error": {
|
|
4119
|
-
"type": [
|
|
4120
|
-
"string",
|
|
4121
|
-
"null"
|
|
4122
|
-
]
|
|
4123
|
-
},
|
|
4124
4961
|
"server": {
|
|
4125
4962
|
"type": "string"
|
|
4126
4963
|
},
|
|
@@ -4129,11 +4966,11 @@
|
|
|
4129
4966
|
}
|
|
4130
4967
|
},
|
|
4131
4968
|
"required": [
|
|
4969
|
+
"error",
|
|
4132
4970
|
"at",
|
|
4133
4971
|
"id",
|
|
4134
4972
|
"ok",
|
|
4135
4973
|
"sessionId",
|
|
4136
|
-
"error",
|
|
4137
4974
|
"server",
|
|
4138
4975
|
"tool"
|
|
4139
4976
|
],
|
|
@@ -8740,6 +9577,38 @@
|
|
|
8740
9577
|
"type": "boolean",
|
|
8741
9578
|
"description": "Whether the repo is a meta repo, where work in other repos is started from."
|
|
8742
9579
|
},
|
|
9580
|
+
"allowedHostIds": {
|
|
9581
|
+
"oneOf": [
|
|
9582
|
+
{
|
|
9583
|
+
"type": "array",
|
|
9584
|
+
"items": {
|
|
9585
|
+
"type": "string"
|
|
9586
|
+
}
|
|
9587
|
+
},
|
|
9588
|
+
{
|
|
9589
|
+
"type": "null"
|
|
9590
|
+
}
|
|
9591
|
+
],
|
|
9592
|
+
"description": "The hosts the repo may run on, or null for every host."
|
|
9593
|
+
},
|
|
9594
|
+
"primaryHostId": {
|
|
9595
|
+
"type": [
|
|
9596
|
+
"string",
|
|
9597
|
+
"null"
|
|
9598
|
+
],
|
|
9599
|
+
"description": "The host whose default-branch checkout is listed as a worktree, once one is known."
|
|
9600
|
+
},
|
|
9601
|
+
"checkpointsEnabled": {
|
|
9602
|
+
"type": "boolean",
|
|
9603
|
+
"description": "Whether the hub keeps checkpoints of this repo's worktrees (the stored choice, else the default)."
|
|
9604
|
+
},
|
|
9605
|
+
"checkpointsSetting": {
|
|
9606
|
+
"type": [
|
|
9607
|
+
"boolean",
|
|
9608
|
+
"null"
|
|
9609
|
+
],
|
|
9610
|
+
"description": "The stored choice, or null when the repo follows the default."
|
|
9611
|
+
},
|
|
8743
9612
|
"avatar": {
|
|
8744
9613
|
"oneOf": [
|
|
8745
9614
|
{
|
|
@@ -8775,6 +9644,10 @@
|
|
|
8775
9644
|
"type": "string",
|
|
8776
9645
|
"description": "The remote host the worktree lives on. Absent for the hub's own machine."
|
|
8777
9646
|
},
|
|
9647
|
+
"hostNotAllowed": {
|
|
9648
|
+
"type": "boolean",
|
|
9649
|
+
"description": "True when the repo is no longer allowed on this worktree's host. The worktree is kept and still opens."
|
|
9650
|
+
},
|
|
8778
9651
|
"lifecycle": {
|
|
8779
9652
|
"type": "string",
|
|
8780
9653
|
"enum": [
|
|
@@ -8783,6 +9656,17 @@
|
|
|
8783
9656
|
],
|
|
8784
9657
|
"description": "Set while the worktree's ephemeral worker has exited (`sleeping`) or is coming back (`waking`)."
|
|
8785
9658
|
},
|
|
9659
|
+
"supersededBy": {
|
|
9660
|
+
"type": "string",
|
|
9661
|
+
"description": "Set when this copy was restored on another host. The value is the replacement's worktree id."
|
|
9662
|
+
},
|
|
9663
|
+
"lastCheckpointAt": {
|
|
9664
|
+
"type": [
|
|
9665
|
+
"number",
|
|
9666
|
+
"null"
|
|
9667
|
+
],
|
|
9668
|
+
"description": "When the hub took the newest checkpoint of this worktree, or null when it has none."
|
|
9669
|
+
},
|
|
8786
9670
|
"worktreeId": {
|
|
8787
9671
|
"type": "string"
|
|
8788
9672
|
},
|
|
@@ -8820,6 +9704,7 @@
|
|
|
8820
9704
|
"branch",
|
|
8821
9705
|
"path",
|
|
8822
9706
|
"pinned",
|
|
9707
|
+
"lastCheckpointAt",
|
|
8823
9708
|
"worktreeId",
|
|
8824
9709
|
"agent",
|
|
8825
9710
|
"origin",
|
|
@@ -8838,6 +9723,10 @@
|
|
|
8838
9723
|
"label",
|
|
8839
9724
|
"kind",
|
|
8840
9725
|
"meta",
|
|
9726
|
+
"allowedHostIds",
|
|
9727
|
+
"primaryHostId",
|
|
9728
|
+
"checkpointsEnabled",
|
|
9729
|
+
"checkpointsSetting",
|
|
8841
9730
|
"avatar",
|
|
8842
9731
|
"worktrees"
|
|
8843
9732
|
],
|
|
@@ -9042,11 +9931,27 @@
|
|
|
9042
9931
|
"label": {
|
|
9043
9932
|
"type": "string"
|
|
9044
9933
|
},
|
|
9045
|
-
"name": {
|
|
9934
|
+
"name": {
|
|
9935
|
+
"type": "string"
|
|
9936
|
+
},
|
|
9937
|
+
"addRoot": {
|
|
9938
|
+
"type": "boolean"
|
|
9939
|
+
},
|
|
9940
|
+
"allowedHostIds": {
|
|
9941
|
+
"oneOf": [
|
|
9942
|
+
{
|
|
9943
|
+
"type": "array",
|
|
9944
|
+
"items": {
|
|
9945
|
+
"type": "string"
|
|
9946
|
+
}
|
|
9947
|
+
},
|
|
9948
|
+
{
|
|
9949
|
+
"type": "null"
|
|
9950
|
+
}
|
|
9951
|
+
]
|
|
9952
|
+
},
|
|
9953
|
+
"primaryHostId": {
|
|
9046
9954
|
"type": "string"
|
|
9047
|
-
},
|
|
9048
|
-
"addRoot": {
|
|
9049
|
-
"type": "boolean"
|
|
9050
9955
|
}
|
|
9051
9956
|
},
|
|
9052
9957
|
"required": [
|
|
@@ -9114,6 +10019,22 @@
|
|
|
9114
10019
|
"name": {
|
|
9115
10020
|
"type": "string"
|
|
9116
10021
|
},
|
|
10022
|
+
"allowedHostIds": {
|
|
10023
|
+
"oneOf": [
|
|
10024
|
+
{
|
|
10025
|
+
"type": "array",
|
|
10026
|
+
"items": {
|
|
10027
|
+
"type": "string"
|
|
10028
|
+
}
|
|
10029
|
+
},
|
|
10030
|
+
{
|
|
10031
|
+
"type": "null"
|
|
10032
|
+
}
|
|
10033
|
+
]
|
|
10034
|
+
},
|
|
10035
|
+
"primaryHostId": {
|
|
10036
|
+
"type": "string"
|
|
10037
|
+
},
|
|
9117
10038
|
"defaultBranch": {
|
|
9118
10039
|
"type": "string"
|
|
9119
10040
|
}
|
|
@@ -9552,7 +10473,7 @@
|
|
|
9552
10473
|
"/repos.update": {
|
|
9553
10474
|
"post": {
|
|
9554
10475
|
"operationId": "repos.update",
|
|
9555
|
-
"description": "Changes a repo's settings
|
|
10476
|
+
"description": "Changes a repo's settings: `meta` (whether it is a meta repo), `allowedHostIds` (the hosts it\nmay run on, `null` for all) and `primaryHostId` (the host that lists its default branch,\n`null` to let the hub pick) and `checkpointsEnabled` (whether the hub keeps checkpoints, `null` for the default). Changing the host policy or the checkpoint setting is an admin call.",
|
|
9556
10477
|
"tags": [
|
|
9557
10478
|
"repos"
|
|
9558
10479
|
],
|
|
@@ -9608,6 +10529,31 @@
|
|
|
9608
10529
|
},
|
|
9609
10530
|
"meta": {
|
|
9610
10531
|
"type": "boolean"
|
|
10532
|
+
},
|
|
10533
|
+
"allowedHostIds": {
|
|
10534
|
+
"oneOf": [
|
|
10535
|
+
{
|
|
10536
|
+
"type": "array",
|
|
10537
|
+
"items": {
|
|
10538
|
+
"type": "string"
|
|
10539
|
+
}
|
|
10540
|
+
},
|
|
10541
|
+
{
|
|
10542
|
+
"type": "null"
|
|
10543
|
+
}
|
|
10544
|
+
]
|
|
10545
|
+
},
|
|
10546
|
+
"primaryHostId": {
|
|
10547
|
+
"type": [
|
|
10548
|
+
"string",
|
|
10549
|
+
"null"
|
|
10550
|
+
]
|
|
10551
|
+
},
|
|
10552
|
+
"checkpointsEnabled": {
|
|
10553
|
+
"type": [
|
|
10554
|
+
"boolean",
|
|
10555
|
+
"null"
|
|
10556
|
+
]
|
|
9611
10557
|
}
|
|
9612
10558
|
},
|
|
9613
10559
|
"required": [
|
|
@@ -9721,6 +10667,10 @@
|
|
|
9721
10667
|
"path": {
|
|
9722
10668
|
"type": "string"
|
|
9723
10669
|
},
|
|
10670
|
+
"hostId": {
|
|
10671
|
+
"type": "string",
|
|
10672
|
+
"description": "The host the worktree lives on, once it exists (an omitted `hostId` is resolved here)."
|
|
10673
|
+
},
|
|
9724
10674
|
"via": {
|
|
9725
10675
|
"type": "string",
|
|
9726
10676
|
"enum": [
|
|
@@ -9918,6 +10868,9 @@
|
|
|
9918
10868
|
},
|
|
9919
10869
|
"repo": {
|
|
9920
10870
|
"type": "string"
|
|
10871
|
+
},
|
|
10872
|
+
"hostId": {
|
|
10873
|
+
"type": "string"
|
|
9921
10874
|
}
|
|
9922
10875
|
},
|
|
9923
10876
|
"required": [
|
|
@@ -9993,6 +10946,9 @@
|
|
|
9993
10946
|
},
|
|
9994
10947
|
"pinned": {
|
|
9995
10948
|
"type": "boolean"
|
|
10949
|
+
},
|
|
10950
|
+
"hostId": {
|
|
10951
|
+
"type": "string"
|
|
9996
10952
|
}
|
|
9997
10953
|
},
|
|
9998
10954
|
"required": [
|
|
@@ -10101,6 +11057,9 @@
|
|
|
10101
11057
|
},
|
|
10102
11058
|
"repo": {
|
|
10103
11059
|
"type": "string"
|
|
11060
|
+
},
|
|
11061
|
+
"hostId": {
|
|
11062
|
+
"type": "string"
|
|
10104
11063
|
}
|
|
10105
11064
|
},
|
|
10106
11065
|
"required": [
|
|
@@ -10208,6 +11167,9 @@
|
|
|
10208
11167
|
},
|
|
10209
11168
|
"repo": {
|
|
10210
11169
|
"type": "string"
|
|
11170
|
+
},
|
|
11171
|
+
"hostId": {
|
|
11172
|
+
"type": "string"
|
|
10211
11173
|
}
|
|
10212
11174
|
},
|
|
10213
11175
|
"required": [
|
|
@@ -17881,6 +18843,186 @@
|
|
|
17881
18843
|
],
|
|
17882
18844
|
"additionalProperties": false
|
|
17883
18845
|
},
|
|
18846
|
+
"CheckpointView": {
|
|
18847
|
+
"type": "object",
|
|
18848
|
+
"properties": {
|
|
18849
|
+
"id": {
|
|
18850
|
+
"type": "string"
|
|
18851
|
+
},
|
|
18852
|
+
"worktreeId": {
|
|
18853
|
+
"type": "string"
|
|
18854
|
+
},
|
|
18855
|
+
"hostId": {
|
|
18856
|
+
"type": "string"
|
|
18857
|
+
},
|
|
18858
|
+
"branch": {
|
|
18859
|
+
"type": "string"
|
|
18860
|
+
},
|
|
18861
|
+
"baseSha": {
|
|
18862
|
+
"type": "string"
|
|
18863
|
+
},
|
|
18864
|
+
"snapshotSha": {
|
|
18865
|
+
"type": "string"
|
|
18866
|
+
},
|
|
18867
|
+
"dirty": {
|
|
18868
|
+
"type": "boolean",
|
|
18869
|
+
"description": "Whether the working tree differed from the branch head."
|
|
18870
|
+
},
|
|
18871
|
+
"sizeBytes": {
|
|
18872
|
+
"type": "number"
|
|
18873
|
+
},
|
|
18874
|
+
"trigger": {
|
|
18875
|
+
"type": "string",
|
|
18876
|
+
"enum": [
|
|
18877
|
+
"move",
|
|
18878
|
+
"turn",
|
|
18879
|
+
"quiet",
|
|
18880
|
+
"shutdown",
|
|
18881
|
+
"manual"
|
|
18882
|
+
]
|
|
18883
|
+
},
|
|
18884
|
+
"createdAt": {
|
|
18885
|
+
"type": "number"
|
|
18886
|
+
},
|
|
18887
|
+
"sessions": {
|
|
18888
|
+
"type": "number"
|
|
18889
|
+
}
|
|
18890
|
+
},
|
|
18891
|
+
"required": [
|
|
18892
|
+
"id",
|
|
18893
|
+
"worktreeId",
|
|
18894
|
+
"hostId",
|
|
18895
|
+
"branch",
|
|
18896
|
+
"baseSha",
|
|
18897
|
+
"snapshotSha",
|
|
18898
|
+
"dirty",
|
|
18899
|
+
"sizeBytes",
|
|
18900
|
+
"trigger",
|
|
18901
|
+
"createdAt",
|
|
18902
|
+
"sessions"
|
|
18903
|
+
],
|
|
18904
|
+
"additionalProperties": false
|
|
18905
|
+
},
|
|
18906
|
+
"ChangedFile": {
|
|
18907
|
+
"type": "object",
|
|
18908
|
+
"properties": {
|
|
18909
|
+
"path": {
|
|
18910
|
+
"type": "string"
|
|
18911
|
+
},
|
|
18912
|
+
"status": {
|
|
18913
|
+
"type": "string"
|
|
18914
|
+
},
|
|
18915
|
+
"additions": {
|
|
18916
|
+
"type": [
|
|
18917
|
+
"number",
|
|
18918
|
+
"null"
|
|
18919
|
+
]
|
|
18920
|
+
},
|
|
18921
|
+
"deletions": {
|
|
18922
|
+
"type": [
|
|
18923
|
+
"number",
|
|
18924
|
+
"null"
|
|
18925
|
+
]
|
|
18926
|
+
}
|
|
18927
|
+
},
|
|
18928
|
+
"required": [
|
|
18929
|
+
"path",
|
|
18930
|
+
"status",
|
|
18931
|
+
"additions",
|
|
18932
|
+
"deletions"
|
|
18933
|
+
],
|
|
18934
|
+
"additionalProperties": false
|
|
18935
|
+
},
|
|
18936
|
+
"RestoreResult": {
|
|
18937
|
+
"type": "object",
|
|
18938
|
+
"properties": {
|
|
18939
|
+
"worktreeId": {
|
|
18940
|
+
"type": "string",
|
|
18941
|
+
"description": "The worktree on the target host."
|
|
18942
|
+
},
|
|
18943
|
+
"hostId": {
|
|
18944
|
+
"type": "string"
|
|
18945
|
+
},
|
|
18946
|
+
"supersededId": {
|
|
18947
|
+
"type": "string",
|
|
18948
|
+
"description": "The worktree it replaced, marked superseded. Absent when a move removed it."
|
|
18949
|
+
},
|
|
18950
|
+
"sourceRemoved": {
|
|
18951
|
+
"type": "boolean",
|
|
18952
|
+
"description": "For a move: whether the source worktree was removed."
|
|
18953
|
+
},
|
|
18954
|
+
"warning": {
|
|
18955
|
+
"type": "string",
|
|
18956
|
+
"description": "For a move whose source could not be removed."
|
|
18957
|
+
},
|
|
18958
|
+
"checkpointId": {
|
|
18959
|
+
"type": "string"
|
|
18960
|
+
},
|
|
18961
|
+
"chatIds": {
|
|
18962
|
+
"type": "array",
|
|
18963
|
+
"items": {
|
|
18964
|
+
"type": "string"
|
|
18965
|
+
},
|
|
18966
|
+
"description": "The chats that now belong to the new worktree."
|
|
18967
|
+
}
|
|
18968
|
+
},
|
|
18969
|
+
"required": [
|
|
18970
|
+
"worktreeId",
|
|
18971
|
+
"hostId",
|
|
18972
|
+
"checkpointId",
|
|
18973
|
+
"chatIds"
|
|
18974
|
+
],
|
|
18975
|
+
"additionalProperties": false
|
|
18976
|
+
},
|
|
18977
|
+
"EvacuateResult": {
|
|
18978
|
+
"type": "object",
|
|
18979
|
+
"properties": {
|
|
18980
|
+
"fromHostId": {
|
|
18981
|
+
"type": "string"
|
|
18982
|
+
},
|
|
18983
|
+
"toHostId": {
|
|
18984
|
+
"type": "string"
|
|
18985
|
+
},
|
|
18986
|
+
"results": {
|
|
18987
|
+
"type": "array",
|
|
18988
|
+
"items": {
|
|
18989
|
+
"type": "object",
|
|
18990
|
+
"properties": {
|
|
18991
|
+
"worktreeId": {
|
|
18992
|
+
"type": "string"
|
|
18993
|
+
},
|
|
18994
|
+
"ok": {
|
|
18995
|
+
"type": "boolean"
|
|
18996
|
+
},
|
|
18997
|
+
"newWorktreeId": {
|
|
18998
|
+
"type": "string"
|
|
18999
|
+
},
|
|
19000
|
+
"mode": {
|
|
19001
|
+
"type": "string",
|
|
19002
|
+
"enum": [
|
|
19003
|
+
"restore",
|
|
19004
|
+
"move"
|
|
19005
|
+
]
|
|
19006
|
+
},
|
|
19007
|
+
"error": {
|
|
19008
|
+
"type": "string"
|
|
19009
|
+
}
|
|
19010
|
+
},
|
|
19011
|
+
"required": [
|
|
19012
|
+
"worktreeId",
|
|
19013
|
+
"ok"
|
|
19014
|
+
],
|
|
19015
|
+
"additionalProperties": false
|
|
19016
|
+
}
|
|
19017
|
+
}
|
|
19018
|
+
},
|
|
19019
|
+
"required": [
|
|
19020
|
+
"fromHostId",
|
|
19021
|
+
"toHostId",
|
|
19022
|
+
"results"
|
|
19023
|
+
],
|
|
19024
|
+
"additionalProperties": false
|
|
19025
|
+
},
|
|
17884
19026
|
"RunnerRun": {
|
|
17885
19027
|
"type": "object",
|
|
17886
19028
|
"properties": {
|
|
@@ -18979,8 +20121,8 @@
|
|
|
18979
20121
|
"mergeState": {
|
|
18980
20122
|
"type": "string",
|
|
18981
20123
|
"enum": [
|
|
18982
|
-
"dirty",
|
|
18983
20124
|
"unknown",
|
|
20125
|
+
"dirty",
|
|
18984
20126
|
"draft",
|
|
18985
20127
|
"clean",
|
|
18986
20128
|
"unstable",
|
|
@@ -19065,9 +20207,9 @@
|
|
|
19065
20207
|
"running",
|
|
19066
20208
|
"cancelled",
|
|
19067
20209
|
"pending",
|
|
20210
|
+
"skipped",
|
|
19068
20211
|
"success",
|
|
19069
20212
|
"failure",
|
|
19070
|
-
"skipped",
|
|
19071
20213
|
"neutral"
|
|
19072
20214
|
],
|
|
19073
20215
|
"description": "The state of one check or CI job."
|
|
@@ -19552,6 +20694,21 @@
|
|
|
19552
20694
|
"meta": {
|
|
19553
20695
|
"type": "boolean",
|
|
19554
20696
|
"description": "Whether the repo is a meta repo. Read-only here: `RepoQueries.setMeta` changes it."
|
|
20697
|
+
},
|
|
20698
|
+
"allowedHostIds": {
|
|
20699
|
+
"type": "array",
|
|
20700
|
+
"items": {
|
|
20701
|
+
"type": "string"
|
|
20702
|
+
},
|
|
20703
|
+
"description": "The hosts the repo may run on; absent means every host. Read-only here: `setHostPolicy` writes it."
|
|
20704
|
+
},
|
|
20705
|
+
"primaryHostId": {
|
|
20706
|
+
"type": "string",
|
|
20707
|
+
"description": "The host whose default-branch checkout is listed as a worktree. Read-only here: `setHostPolicy` writes it."
|
|
20708
|
+
},
|
|
20709
|
+
"checkpointsEnabled": {
|
|
20710
|
+
"type": "boolean",
|
|
20711
|
+
"description": "Whether the hub keeps checkpoints of the repo's worktrees; absent means the default. Read-only here: `setCheckpointsEnabled` writes it."
|
|
19555
20712
|
}
|
|
19556
20713
|
},
|
|
19557
20714
|
"required": [
|
|
@@ -19588,8 +20745,16 @@
|
|
|
19588
20745
|
"type": "string",
|
|
19589
20746
|
"description": "Host the worktree lives on. Absent means `local`."
|
|
19590
20747
|
},
|
|
20748
|
+
"missing": {
|
|
20749
|
+
"type": "boolean",
|
|
20750
|
+
"description": "Set by a scan of the worktree's host when its folder no longer exists there. Never stored:\nthe next scan sets it again, and `repos.list` passes it on so the UI offers Remove."
|
|
20751
|
+
},
|
|
19591
20752
|
"origin": {
|
|
19592
20753
|
"$ref": "#/components/schemas/WorktreeOrigin"
|
|
20754
|
+
},
|
|
20755
|
+
"supersededBy": {
|
|
20756
|
+
"type": "string",
|
|
20757
|
+
"description": "The id of the worktree that replaced this one when it was restored on another host. The copy\nstays on its host untouched. Read-only here: `saveAll` keeps what the database holds, and\n`RepoQueries.setSupersededBy` writes it."
|
|
19593
20758
|
}
|
|
19594
20759
|
},
|
|
19595
20760
|
"required": [
|
|
@@ -20293,10 +21458,10 @@
|
|
|
20293
21458
|
"status": {
|
|
20294
21459
|
"type": "string",
|
|
20295
21460
|
"enum": [
|
|
21461
|
+
"error",
|
|
20296
21462
|
"running",
|
|
20297
21463
|
"idle",
|
|
20298
|
-
"stopped"
|
|
20299
|
-
"error"
|
|
21464
|
+
"stopped"
|
|
20300
21465
|
],
|
|
20301
21466
|
"description": "Chat status as persisted in the `state` JSON blob's `status` field.\n\nMirrors the runtime status the chat-service hands the dashboard. Stored\non disk so a server restart can deterministically reset every chat to\n`\"idle\"` (see `resetAllToIdle`)."
|
|
20302
21467
|
},
|
|
@@ -20985,8 +22150,8 @@
|
|
|
20985
22150
|
"status": {
|
|
20986
22151
|
"type": "string",
|
|
20987
22152
|
"enum": [
|
|
20988
|
-
"idle",
|
|
20989
22153
|
"error",
|
|
22154
|
+
"idle",
|
|
20990
22155
|
"loading"
|
|
20991
22156
|
],
|
|
20992
22157
|
"description": "Browser tab status as persisted in the `state` JSON blob's `status` field.\n\nMirrors the runtime status the browser-service hands the dashboard.\nStored on disk so a server restart can deterministically reset every\nbrowser to `\"idle\"` (see `resetAllToIdle`)."
|
|
@@ -21300,7 +22465,100 @@
|
|
|
21300
22465
|
"type": "object",
|
|
21301
22466
|
"properties": {
|
|
21302
22467
|
"error": {
|
|
21303
|
-
"
|
|
22468
|
+
"oneOf": [
|
|
22469
|
+
{
|
|
22470
|
+
"$ref": "#/components/schemas/DefaultErrorShape"
|
|
22471
|
+
},
|
|
22472
|
+
{
|
|
22473
|
+
"type": "object",
|
|
22474
|
+
"properties": {
|
|
22475
|
+
"data": {
|
|
22476
|
+
"type": "object",
|
|
22477
|
+
"properties": {
|
|
22478
|
+
"existingWorktreeId": {
|
|
22479
|
+
"type": "string"
|
|
22480
|
+
},
|
|
22481
|
+
"existingHostId": {
|
|
22482
|
+
"type": "string"
|
|
22483
|
+
},
|
|
22484
|
+
"code": {
|
|
22485
|
+
"type": "string",
|
|
22486
|
+
"enum": [
|
|
22487
|
+
"PARSE_ERROR",
|
|
22488
|
+
"BAD_REQUEST",
|
|
22489
|
+
"INTERNAL_SERVER_ERROR",
|
|
22490
|
+
"NOT_IMPLEMENTED",
|
|
22491
|
+
"BAD_GATEWAY",
|
|
22492
|
+
"SERVICE_UNAVAILABLE",
|
|
22493
|
+
"GATEWAY_TIMEOUT",
|
|
22494
|
+
"UNAUTHORIZED",
|
|
22495
|
+
"PAYMENT_REQUIRED",
|
|
22496
|
+
"FORBIDDEN",
|
|
22497
|
+
"NOT_FOUND",
|
|
22498
|
+
"METHOD_NOT_SUPPORTED",
|
|
22499
|
+
"TIMEOUT",
|
|
22500
|
+
"CONFLICT",
|
|
22501
|
+
"PRECONDITION_FAILED",
|
|
22502
|
+
"PAYLOAD_TOO_LARGE",
|
|
22503
|
+
"UNSUPPORTED_MEDIA_TYPE",
|
|
22504
|
+
"UNPROCESSABLE_CONTENT",
|
|
22505
|
+
"PRECONDITION_REQUIRED",
|
|
22506
|
+
"TOO_MANY_REQUESTS",
|
|
22507
|
+
"CLIENT_CLOSED_REQUEST"
|
|
22508
|
+
]
|
|
22509
|
+
},
|
|
22510
|
+
"httpStatus": {
|
|
22511
|
+
"type": "number"
|
|
22512
|
+
},
|
|
22513
|
+
"path": {
|
|
22514
|
+
"type": "string"
|
|
22515
|
+
},
|
|
22516
|
+
"stack": {
|
|
22517
|
+
"type": "string"
|
|
22518
|
+
}
|
|
22519
|
+
},
|
|
22520
|
+
"required": [
|
|
22521
|
+
"existingWorktreeId",
|
|
22522
|
+
"existingHostId",
|
|
22523
|
+
"code",
|
|
22524
|
+
"httpStatus"
|
|
22525
|
+
],
|
|
22526
|
+
"additionalProperties": false
|
|
22527
|
+
},
|
|
22528
|
+
"message": {
|
|
22529
|
+
"type": "string"
|
|
22530
|
+
},
|
|
22531
|
+
"code": {
|
|
22532
|
+
"type": "number",
|
|
22533
|
+
"enum": [
|
|
22534
|
+
-32700,
|
|
22535
|
+
-32600,
|
|
22536
|
+
-32603,
|
|
22537
|
+
-32001,
|
|
22538
|
+
-32002,
|
|
22539
|
+
-32003,
|
|
22540
|
+
-32004,
|
|
22541
|
+
-32005,
|
|
22542
|
+
-32008,
|
|
22543
|
+
-32009,
|
|
22544
|
+
-32012,
|
|
22545
|
+
-32013,
|
|
22546
|
+
-32015,
|
|
22547
|
+
-32022,
|
|
22548
|
+
-32028,
|
|
22549
|
+
-32029,
|
|
22550
|
+
-32099
|
|
22551
|
+
]
|
|
22552
|
+
}
|
|
22553
|
+
},
|
|
22554
|
+
"required": [
|
|
22555
|
+
"data",
|
|
22556
|
+
"message",
|
|
22557
|
+
"code"
|
|
22558
|
+
],
|
|
22559
|
+
"additionalProperties": false
|
|
22560
|
+
}
|
|
22561
|
+
]
|
|
21304
22562
|
}
|
|
21305
22563
|
},
|
|
21306
22564
|
"required": [
|