@kosuke-ai/kosuke 1.0.102 → 1.0.104
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/CHANGELOG.md +11 -0
- package/dist/agent/summary.js +13 -3
- package/dist/commands/merge-train-order.js +2 -1
- package/dist/generated/commands/index.js +242 -246
- package/dist/generated/commands/projects/create.js +0 -1
- package/dist/generated/commands/projects/merge-agent-ci-check-fix-start.js +20 -0
- package/dist/generated/commands/projects/merge-agent-ci-check-get.js +20 -0
- package/dist/generated/commands/projects/merge-agent-finish.js +30 -0
- package/dist/generated/commands/projects/merge-agent-get.js +1 -1
- package/dist/generated/commands/projects/merge-agent-model-set.js +1 -1
- package/dist/generated/commands/projects/merge-agent-runs-list.js +1 -1
- package/dist/generated/commands/projects/{batch-merging-set.js → merge-agent-set.js} +4 -12
- package/dist/generated/commands/sessions/go-ahead-delete.js +1 -1
- package/dist/generated/commands/sessions/go-ahead-set.js +1 -1
- package/dist/generated/commands/sessions/list--all.js +1 -1
- package/dist/generated/commands/sessions/list.js +1 -1
- package/dist/generated/commands/sessions/qa-runs-finish.js +0 -21
- package/dist/generated/commands/sessions/send.js +1 -1
- package/dist/generated/commands/sessions/steer.js +1 -1
- package/openapi.json +272 -477
- package/package.json +7 -4
- package/dist/generated/commands/projects/batch-merging-finish.js +0 -30
- package/dist/generated/commands/projects/batch-merging-get.js +0 -19
- package/dist/generated/commands/projects/batch-merging-members-create.js +0 -31
- package/dist/generated/commands/projects/batch-merging-members-delete.js +0 -45
- package/dist/generated/commands/projects/batch-merging-picks-set.js +0 -32
package/openapi.json
CHANGED
|
@@ -779,9 +779,9 @@
|
|
|
779
779
|
"name": "includeMergeAgentRuns",
|
|
780
780
|
"in": "query",
|
|
781
781
|
"required": false,
|
|
782
|
-
"description": "Keep the Merge agent's run sessions (
|
|
782
|
+
"description": "Keep the Merge agent's run sessions (Merge train runs), which only its panel lists by default.",
|
|
783
783
|
"schema": {
|
|
784
|
-
"description": "Keep the Merge agent's run sessions (
|
|
784
|
+
"description": "Keep the Merge agent's run sessions (Merge train runs), which only its panel lists by default.",
|
|
785
785
|
"type": "boolean"
|
|
786
786
|
}
|
|
787
787
|
},
|
|
@@ -10822,7 +10822,7 @@
|
|
|
10822
10822
|
"mergeAgentMode": {
|
|
10823
10823
|
"description": "With description: the Merge agent mode the new repository starts in. Defaults to train.",
|
|
10824
10824
|
"type": "string",
|
|
10825
|
-
"enum": ["train", "
|
|
10825
|
+
"enum": ["train", "off"]
|
|
10826
10826
|
},
|
|
10827
10827
|
"mergeGoAhead": {
|
|
10828
10828
|
"description": "With description and the train mode: what gives a pull request the go-ahead, a member (member) or its required checks passing on its head (checks). Defaults to checks.",
|
|
@@ -11131,456 +11131,6 @@
|
|
|
11131
11131
|
}
|
|
11132
11132
|
}
|
|
11133
11133
|
},
|
|
11134
|
-
"/api/projects/{projectId}/batch-merging": {
|
|
11135
|
-
"get": {
|
|
11136
|
-
"operationId": "projectsBatchMergingGet",
|
|
11137
|
-
"summary": "Read the Merge agent's mode (train: the merge train, batch: Batch merging, off: the platform merges nothing and members merge themselves; mode alone says whether it is off, and the output has no enabled boolean), its Go-ahead under the merge train (goAhead member: a member gives each pull request the go-ahead; checks: a pull request whose required checks pass on its latest commit has it) and waitForQa (under checks, QA must pass too), how many go-ahead pull requests wait, and the run open now.",
|
|
11138
|
-
"tags": ["projects"],
|
|
11139
|
-
"x-kosuke-command": ["projects", "batch-merging", "get"],
|
|
11140
|
-
"x-kosuke-sandbox-token": true,
|
|
11141
|
-
"x-kosuke-cron-token": true,
|
|
11142
|
-
"x-kosuke-sensei-token": true,
|
|
11143
|
-
"parameters": [
|
|
11144
|
-
{
|
|
11145
|
-
"name": "projectId",
|
|
11146
|
-
"in": "path",
|
|
11147
|
-
"required": true,
|
|
11148
|
-
"schema": {
|
|
11149
|
-
"type": "string",
|
|
11150
|
-
"format": "uuid",
|
|
11151
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
11152
|
-
}
|
|
11153
|
-
}
|
|
11154
|
-
],
|
|
11155
|
-
"responses": {
|
|
11156
|
-
"2XX": {
|
|
11157
|
-
"description": "Success envelope",
|
|
11158
|
-
"content": {
|
|
11159
|
-
"application/json": {
|
|
11160
|
-
"schema": {
|
|
11161
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
11162
|
-
}
|
|
11163
|
-
}
|
|
11164
|
-
}
|
|
11165
|
-
},
|
|
11166
|
-
"4XX": {
|
|
11167
|
-
"description": "Error envelope",
|
|
11168
|
-
"content": {
|
|
11169
|
-
"application/json": {
|
|
11170
|
-
"schema": {
|
|
11171
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11172
|
-
}
|
|
11173
|
-
}
|
|
11174
|
-
}
|
|
11175
|
-
},
|
|
11176
|
-
"5XX": {
|
|
11177
|
-
"description": "Error envelope",
|
|
11178
|
-
"content": {
|
|
11179
|
-
"application/json": {
|
|
11180
|
-
"schema": {
|
|
11181
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11182
|
-
}
|
|
11183
|
-
}
|
|
11184
|
-
}
|
|
11185
|
-
}
|
|
11186
|
-
}
|
|
11187
|
-
},
|
|
11188
|
-
"put": {
|
|
11189
|
-
"operationId": "projectsBatchMergingSet",
|
|
11190
|
-
"summary": "Switch the Merge agent's mode, its Go-ahead, or Wait for QA; give any of them, and the others stay. mode batch: Batch merging, a batch agent combines go-ahead pull requests into one Batch pull request, reviews and QAs it, then an admin approves it. train: the merge train merges them one at a time. off, the mode an imported repository starts in: the platform merges, enqueues and batches nothing; members merge their pull requests themselves, and a run already open finishes what it carries. Batches run as the member who turned Batch merging on. goAhead, under the merge train: member, a member gives each pull request the go-ahead (QA must pass too); checks, a pull request a platform agent works on whose required checks pass on its latest commit has the go-ahead with nobody giving it, and waitForQa true makes it wait for QA to pass there too. Leaving train with checks takes back every go-ahead the checks gave. Switching to train or batch starts a run for the go-ahead pull requests that wait.",
|
|
11191
|
-
"tags": ["projects"],
|
|
11192
|
-
"x-kosuke-command": ["projects", "batch-merging", "set"],
|
|
11193
|
-
"x-kosuke-sandbox-token": true,
|
|
11194
|
-
"x-kosuke-cron-token": true,
|
|
11195
|
-
"x-kosuke-sensei-token": true,
|
|
11196
|
-
"parameters": [
|
|
11197
|
-
{
|
|
11198
|
-
"name": "projectId",
|
|
11199
|
-
"in": "path",
|
|
11200
|
-
"required": true,
|
|
11201
|
-
"schema": {
|
|
11202
|
-
"type": "string",
|
|
11203
|
-
"format": "uuid",
|
|
11204
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
11205
|
-
}
|
|
11206
|
-
}
|
|
11207
|
-
],
|
|
11208
|
-
"requestBody": {
|
|
11209
|
-
"required": true,
|
|
11210
|
-
"content": {
|
|
11211
|
-
"application/json": {
|
|
11212
|
-
"schema": {
|
|
11213
|
-
"type": "object",
|
|
11214
|
-
"properties": {
|
|
11215
|
-
"mode": {
|
|
11216
|
-
"description": "train: the merge train merges go-ahead pull requests one at a time. batch: Batch merging. off: the platform merges nothing, members merge their pull requests themselves.",
|
|
11217
|
-
"type": "string",
|
|
11218
|
-
"enum": ["train", "batch", "off"]
|
|
11219
|
-
},
|
|
11220
|
-
"enabled": {
|
|
11221
|
-
"description": "Older form of mode, still accepted: true is batch, false is train, never off. Give mode or enabled. Reads return mode alone.",
|
|
11222
|
-
"type": "boolean"
|
|
11223
|
-
},
|
|
11224
|
-
"goAhead": {
|
|
11225
|
-
"description": "Under the merge train, what gives a pull request the go-ahead. member: a member gives each one, today's behaviour. checks: a pull request whose required checks pass on its latest commit has the go-ahead; nobody has to give it.",
|
|
11226
|
-
"type": "string",
|
|
11227
|
-
"enum": ["member", "checks"]
|
|
11228
|
-
},
|
|
11229
|
-
"waitForQa": {
|
|
11230
|
-
"description": "Under goAhead checks: true makes a pull request also wait for its QA to pass on its latest commit before it merges. Under member, QA is always required.",
|
|
11231
|
-
"type": "boolean"
|
|
11232
|
-
}
|
|
11233
|
-
}
|
|
11234
|
-
}
|
|
11235
|
-
}
|
|
11236
|
-
}
|
|
11237
|
-
},
|
|
11238
|
-
"responses": {
|
|
11239
|
-
"2XX": {
|
|
11240
|
-
"description": "Success envelope",
|
|
11241
|
-
"content": {
|
|
11242
|
-
"application/json": {
|
|
11243
|
-
"schema": {
|
|
11244
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
11245
|
-
}
|
|
11246
|
-
}
|
|
11247
|
-
}
|
|
11248
|
-
},
|
|
11249
|
-
"4XX": {
|
|
11250
|
-
"description": "Error envelope",
|
|
11251
|
-
"content": {
|
|
11252
|
-
"application/json": {
|
|
11253
|
-
"schema": {
|
|
11254
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11255
|
-
}
|
|
11256
|
-
}
|
|
11257
|
-
}
|
|
11258
|
-
},
|
|
11259
|
-
"5XX": {
|
|
11260
|
-
"description": "Error envelope",
|
|
11261
|
-
"content": {
|
|
11262
|
-
"application/json": {
|
|
11263
|
-
"schema": {
|
|
11264
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11265
|
-
}
|
|
11266
|
-
}
|
|
11267
|
-
}
|
|
11268
|
-
}
|
|
11269
|
-
}
|
|
11270
|
-
}
|
|
11271
|
-
},
|
|
11272
|
-
"/api/projects/{projectId}/batch-merging/ejections": {
|
|
11273
|
-
"post": {
|
|
11274
|
-
"operationId": "projectsBatchMergingMembersDelete",
|
|
11275
|
-
"summary": "The running Batch's own session only: leave a pull request out of the Batch and send the reason to that pull request's task, whose agent fixes it for the next Batch.",
|
|
11276
|
-
"tags": ["projects"],
|
|
11277
|
-
"x-kosuke-command": ["projects", "batch-merging", "members", "delete"],
|
|
11278
|
-
"x-kosuke-sandbox-token": true,
|
|
11279
|
-
"x-kosuke-cron-token": true,
|
|
11280
|
-
"x-kosuke-sensei-token": true,
|
|
11281
|
-
"parameters": [
|
|
11282
|
-
{
|
|
11283
|
-
"name": "projectId",
|
|
11284
|
-
"in": "path",
|
|
11285
|
-
"required": true,
|
|
11286
|
-
"schema": {
|
|
11287
|
-
"type": "string",
|
|
11288
|
-
"format": "uuid",
|
|
11289
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
11290
|
-
}
|
|
11291
|
-
}
|
|
11292
|
-
],
|
|
11293
|
-
"requestBody": {
|
|
11294
|
-
"required": true,
|
|
11295
|
-
"content": {
|
|
11296
|
-
"application/json": {
|
|
11297
|
-
"schema": {
|
|
11298
|
-
"type": "object",
|
|
11299
|
-
"properties": {
|
|
11300
|
-
"pullRequest": {
|
|
11301
|
-
"type": "integer",
|
|
11302
|
-
"exclusiveMinimum": 0,
|
|
11303
|
-
"maximum": 9007199254740991,
|
|
11304
|
-
"description": "The pull request the Batch leaves out."
|
|
11305
|
-
},
|
|
11306
|
-
"reason": {
|
|
11307
|
-
"type": "string",
|
|
11308
|
-
"minLength": 1,
|
|
11309
|
-
"maxLength": 2000,
|
|
11310
|
-
"description": "What failed, with the evidence its task needs to fix it."
|
|
11311
|
-
},
|
|
11312
|
-
"summary": {
|
|
11313
|
-
"description": "What its member reads on the task card, in one or two plain sentences: why it was left out, who handles it, and whether the member must act.",
|
|
11314
|
-
"type": "string",
|
|
11315
|
-
"minLength": 1,
|
|
11316
|
-
"maxLength": 160
|
|
11317
|
-
}
|
|
11318
|
-
},
|
|
11319
|
-
"required": ["pullRequest", "reason"]
|
|
11320
|
-
}
|
|
11321
|
-
}
|
|
11322
|
-
}
|
|
11323
|
-
},
|
|
11324
|
-
"responses": {
|
|
11325
|
-
"2XX": {
|
|
11326
|
-
"description": "Success envelope",
|
|
11327
|
-
"content": {
|
|
11328
|
-
"application/json": {
|
|
11329
|
-
"schema": {
|
|
11330
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
11331
|
-
}
|
|
11332
|
-
}
|
|
11333
|
-
}
|
|
11334
|
-
},
|
|
11335
|
-
"4XX": {
|
|
11336
|
-
"description": "Error envelope",
|
|
11337
|
-
"content": {
|
|
11338
|
-
"application/json": {
|
|
11339
|
-
"schema": {
|
|
11340
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11341
|
-
}
|
|
11342
|
-
}
|
|
11343
|
-
}
|
|
11344
|
-
},
|
|
11345
|
-
"5XX": {
|
|
11346
|
-
"description": "Error envelope",
|
|
11347
|
-
"content": {
|
|
11348
|
-
"application/json": {
|
|
11349
|
-
"schema": {
|
|
11350
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11351
|
-
}
|
|
11352
|
-
}
|
|
11353
|
-
}
|
|
11354
|
-
}
|
|
11355
|
-
}
|
|
11356
|
-
}
|
|
11357
|
-
},
|
|
11358
|
-
"/api/projects/{projectId}/batch-merging/finish": {
|
|
11359
|
-
"post": {
|
|
11360
|
-
"operationId": "projectsBatchMergingFinish",
|
|
11361
|
-
"summary": "The running Batch's own session only: end the Batch with nothing to merge, when it left every pull request out or failed on its own work. The platform starts no Batch for the same ready pull requests for an hour, or until one changes. Kosuke then closes the Batch's pull request with a comment giving the reason, which archives its session. A Batch whose pull request merges or closes ends on its own.",
|
|
11362
|
-
"tags": ["projects"],
|
|
11363
|
-
"x-kosuke-command": ["projects", "batch-merging", "finish"],
|
|
11364
|
-
"x-kosuke-sandbox-token": true,
|
|
11365
|
-
"x-kosuke-cron-token": true,
|
|
11366
|
-
"x-kosuke-sensei-token": true,
|
|
11367
|
-
"parameters": [
|
|
11368
|
-
{
|
|
11369
|
-
"name": "projectId",
|
|
11370
|
-
"in": "path",
|
|
11371
|
-
"required": true,
|
|
11372
|
-
"schema": {
|
|
11373
|
-
"type": "string",
|
|
11374
|
-
"format": "uuid",
|
|
11375
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
11376
|
-
}
|
|
11377
|
-
}
|
|
11378
|
-
],
|
|
11379
|
-
"requestBody": {
|
|
11380
|
-
"required": true,
|
|
11381
|
-
"content": {
|
|
11382
|
-
"application/json": {
|
|
11383
|
-
"schema": {
|
|
11384
|
-
"type": "object",
|
|
11385
|
-
"properties": {
|
|
11386
|
-
"reason": {
|
|
11387
|
-
"type": "string",
|
|
11388
|
-
"minLength": 1,
|
|
11389
|
-
"maxLength": 2000,
|
|
11390
|
-
"description": "Why the Batch ends with nothing to merge."
|
|
11391
|
-
}
|
|
11392
|
-
},
|
|
11393
|
-
"required": ["reason"]
|
|
11394
|
-
}
|
|
11395
|
-
}
|
|
11396
|
-
}
|
|
11397
|
-
},
|
|
11398
|
-
"responses": {
|
|
11399
|
-
"2XX": {
|
|
11400
|
-
"description": "Success envelope",
|
|
11401
|
-
"content": {
|
|
11402
|
-
"application/json": {
|
|
11403
|
-
"schema": {
|
|
11404
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
11405
|
-
}
|
|
11406
|
-
}
|
|
11407
|
-
}
|
|
11408
|
-
},
|
|
11409
|
-
"4XX": {
|
|
11410
|
-
"description": "Error envelope",
|
|
11411
|
-
"content": {
|
|
11412
|
-
"application/json": {
|
|
11413
|
-
"schema": {
|
|
11414
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11415
|
-
}
|
|
11416
|
-
}
|
|
11417
|
-
}
|
|
11418
|
-
},
|
|
11419
|
-
"5XX": {
|
|
11420
|
-
"description": "Error envelope",
|
|
11421
|
-
"content": {
|
|
11422
|
-
"application/json": {
|
|
11423
|
-
"schema": {
|
|
11424
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11425
|
-
}
|
|
11426
|
-
}
|
|
11427
|
-
}
|
|
11428
|
-
}
|
|
11429
|
-
}
|
|
11430
|
-
}
|
|
11431
|
-
},
|
|
11432
|
-
"/api/projects/{projectId}/batch-merging/members": {
|
|
11433
|
-
"post": {
|
|
11434
|
-
"operationId": "projectsBatchMergingMembersCreate",
|
|
11435
|
-
"summary": "The running Batch's own session only: record that the Batch carries a task's pull request, before closing it on GitHub. Its task then stays under review, is completed when the Batch merges, and gets its pull request reopened when the Batch ends without merging. Safe to repeat.",
|
|
11436
|
-
"tags": ["projects"],
|
|
11437
|
-
"x-kosuke-command": ["projects", "batch-merging", "members", "create"],
|
|
11438
|
-
"x-kosuke-sandbox-token": true,
|
|
11439
|
-
"x-kosuke-cron-token": true,
|
|
11440
|
-
"x-kosuke-sensei-token": true,
|
|
11441
|
-
"parameters": [
|
|
11442
|
-
{
|
|
11443
|
-
"name": "projectId",
|
|
11444
|
-
"in": "path",
|
|
11445
|
-
"required": true,
|
|
11446
|
-
"schema": {
|
|
11447
|
-
"type": "string",
|
|
11448
|
-
"format": "uuid",
|
|
11449
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
11450
|
-
}
|
|
11451
|
-
}
|
|
11452
|
-
],
|
|
11453
|
-
"requestBody": {
|
|
11454
|
-
"required": true,
|
|
11455
|
-
"content": {
|
|
11456
|
-
"application/json": {
|
|
11457
|
-
"schema": {
|
|
11458
|
-
"type": "object",
|
|
11459
|
-
"properties": {
|
|
11460
|
-
"pullRequest": {
|
|
11461
|
-
"type": "integer",
|
|
11462
|
-
"exclusiveMinimum": 0,
|
|
11463
|
-
"maximum": 9007199254740991,
|
|
11464
|
-
"description": "The task pull request the Batch carries and is about to close."
|
|
11465
|
-
}
|
|
11466
|
-
},
|
|
11467
|
-
"required": ["pullRequest"]
|
|
11468
|
-
}
|
|
11469
|
-
}
|
|
11470
|
-
}
|
|
11471
|
-
},
|
|
11472
|
-
"responses": {
|
|
11473
|
-
"2XX": {
|
|
11474
|
-
"description": "Success envelope",
|
|
11475
|
-
"content": {
|
|
11476
|
-
"application/json": {
|
|
11477
|
-
"schema": {
|
|
11478
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
11479
|
-
}
|
|
11480
|
-
}
|
|
11481
|
-
}
|
|
11482
|
-
},
|
|
11483
|
-
"4XX": {
|
|
11484
|
-
"description": "Error envelope",
|
|
11485
|
-
"content": {
|
|
11486
|
-
"application/json": {
|
|
11487
|
-
"schema": {
|
|
11488
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11489
|
-
}
|
|
11490
|
-
}
|
|
11491
|
-
}
|
|
11492
|
-
},
|
|
11493
|
-
"5XX": {
|
|
11494
|
-
"description": "Error envelope",
|
|
11495
|
-
"content": {
|
|
11496
|
-
"application/json": {
|
|
11497
|
-
"schema": {
|
|
11498
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11499
|
-
}
|
|
11500
|
-
}
|
|
11501
|
-
}
|
|
11502
|
-
}
|
|
11503
|
-
}
|
|
11504
|
-
}
|
|
11505
|
-
},
|
|
11506
|
-
"/api/projects/{projectId}/batch-merging/picks": {
|
|
11507
|
-
"put": {
|
|
11508
|
-
"operationId": "projectsBatchMergingPicksSet",
|
|
11509
|
-
"summary": "The open Batch's own session only: replace the list of task pull requests merged into its branch. Their tasks show the Batch while it runs, and stop once it ends. Safe to repeat.",
|
|
11510
|
-
"tags": ["projects"],
|
|
11511
|
-
"x-kosuke-command": ["projects", "batch-merging", "picks", "set"],
|
|
11512
|
-
"x-kosuke-sandbox-token": true,
|
|
11513
|
-
"x-kosuke-cron-token": true,
|
|
11514
|
-
"x-kosuke-sensei-token": true,
|
|
11515
|
-
"parameters": [
|
|
11516
|
-
{
|
|
11517
|
-
"name": "projectId",
|
|
11518
|
-
"in": "path",
|
|
11519
|
-
"required": true,
|
|
11520
|
-
"schema": {
|
|
11521
|
-
"type": "string",
|
|
11522
|
-
"format": "uuid",
|
|
11523
|
-
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
11524
|
-
}
|
|
11525
|
-
}
|
|
11526
|
-
],
|
|
11527
|
-
"requestBody": {
|
|
11528
|
-
"required": true,
|
|
11529
|
-
"content": {
|
|
11530
|
-
"application/json": {
|
|
11531
|
-
"schema": {
|
|
11532
|
-
"type": "object",
|
|
11533
|
-
"properties": {
|
|
11534
|
-
"pullRequests": {
|
|
11535
|
-
"maxItems": 500,
|
|
11536
|
-
"type": "array",
|
|
11537
|
-
"items": {
|
|
11538
|
-
"type": "integer",
|
|
11539
|
-
"exclusiveMinimum": 0,
|
|
11540
|
-
"maximum": 2147483647
|
|
11541
|
-
},
|
|
11542
|
-
"description": "Every task pull request merged into this Batch's branch now, in merge order: the whole list, never its base Batch's. An empty list clears it."
|
|
11543
|
-
}
|
|
11544
|
-
},
|
|
11545
|
-
"required": ["pullRequests"]
|
|
11546
|
-
}
|
|
11547
|
-
}
|
|
11548
|
-
}
|
|
11549
|
-
},
|
|
11550
|
-
"responses": {
|
|
11551
|
-
"2XX": {
|
|
11552
|
-
"description": "Success envelope",
|
|
11553
|
-
"content": {
|
|
11554
|
-
"application/json": {
|
|
11555
|
-
"schema": {
|
|
11556
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
11557
|
-
}
|
|
11558
|
-
}
|
|
11559
|
-
}
|
|
11560
|
-
},
|
|
11561
|
-
"4XX": {
|
|
11562
|
-
"description": "Error envelope",
|
|
11563
|
-
"content": {
|
|
11564
|
-
"application/json": {
|
|
11565
|
-
"schema": {
|
|
11566
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11567
|
-
}
|
|
11568
|
-
}
|
|
11569
|
-
}
|
|
11570
|
-
},
|
|
11571
|
-
"5XX": {
|
|
11572
|
-
"description": "Error envelope",
|
|
11573
|
-
"content": {
|
|
11574
|
-
"application/json": {
|
|
11575
|
-
"schema": {
|
|
11576
|
-
"$ref": "#/components/schemas/ApiError"
|
|
11577
|
-
}
|
|
11578
|
-
}
|
|
11579
|
-
}
|
|
11580
|
-
}
|
|
11581
|
-
}
|
|
11582
|
-
}
|
|
11583
|
-
},
|
|
11584
11134
|
"/api/projects/{projectId}/branches": {
|
|
11585
11135
|
"get": {
|
|
11586
11136
|
"operationId": "projectsBranchesList",
|
|
@@ -11931,9 +11481,9 @@
|
|
|
11931
11481
|
"name": "includeMergeAgentRuns",
|
|
11932
11482
|
"in": "query",
|
|
11933
11483
|
"required": false,
|
|
11934
|
-
"description": "Keep the Merge agent's run sessions (
|
|
11484
|
+
"description": "Keep the Merge agent's run sessions (Merge train runs), which only its panel lists by default.",
|
|
11935
11485
|
"schema": {
|
|
11936
|
-
"description": "Keep the Merge agent's run sessions (
|
|
11486
|
+
"description": "Keep the Merge agent's run sessions (Merge train runs), which only its panel lists by default.",
|
|
11937
11487
|
"type": "boolean"
|
|
11938
11488
|
}
|
|
11939
11489
|
}
|
|
@@ -13275,7 +12825,7 @@
|
|
|
13275
12825
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/go-ahead": {
|
|
13276
12826
|
"put": {
|
|
13277
12827
|
"operationId": "sessionsGoAheadSet",
|
|
13278
|
-
"summary": "Give the session's pull request the go-ahead to merge, as the session's member, on one head: goAheadSha, goAheadBy and goAheadAt. A draft pull request is first marked ready for review on GitHub as the member; when GitHub refuses, nothing is saved (503). The project's Merge agent (the merge train,
|
|
12828
|
+
"summary": "Give the session's pull request the go-ahead to merge, as the session's member, on one head: goAheadSha, goAheadBy and goAheadAt. A draft pull request is first marked ready for review on GitHub as the member; when GitHub refuses, nothing is saved (503). The project's Merge agent (the merge train, when it is on) is woken and merges it only at that head. Members and their Sensei only.",
|
|
13279
12829
|
"tags": ["sessions"],
|
|
13280
12830
|
"x-kosuke-command": ["sessions", "go-ahead", "set"],
|
|
13281
12831
|
"x-kosuke-sandbox-token": true,
|
|
@@ -13357,7 +12907,7 @@
|
|
|
13357
12907
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/go-ahead/clear": {
|
|
13358
12908
|
"post": {
|
|
13359
12909
|
"operationId": "sessionsGoAheadDelete",
|
|
13360
|
-
"summary": "Take the session's go-ahead away, so
|
|
12910
|
+
"summary": "Take the session's go-ahead away, so the Merge agent does not merge its pull request until it is given again. The callers of `sessions go-ahead set`.",
|
|
13361
12911
|
"tags": ["sessions"],
|
|
13362
12912
|
"x-kosuke-command": ["sessions", "go-ahead", "delete"],
|
|
13363
12913
|
"x-kosuke-sandbox-token": true,
|
|
@@ -13509,7 +13059,7 @@
|
|
|
13509
13059
|
},
|
|
13510
13060
|
"post": {
|
|
13511
13061
|
"operationId": "sessionsSend",
|
|
13512
|
-
"summary": "Send a message: starts a turn, or waits Up next while one is running. To steer the running turn with it, steer the Queued Message it becomes. Attachments ride along as multipart. Use it over steer only for attachments, a message that runs a skill, or text over 10,000 characters. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on
|
|
13062
|
+
"summary": "Send a message: starts a turn, or waits Up next while one is running. To steer the running turn with it, steer the Queued Message it becomes. Attachments ride along as multipart. Use it over steer only for attachments, a message that runs a skill, or text over 10,000 characters. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
|
|
13513
13063
|
"tags": ["sessions"],
|
|
13514
13064
|
"x-kosuke-command": ["sessions", "send"],
|
|
13515
13065
|
"x-kosuke-attachments": true,
|
|
@@ -15941,21 +15491,6 @@
|
|
|
15941
15491
|
}
|
|
15942
15492
|
},
|
|
15943
15493
|
"required": ["collectedAt", "runs"]
|
|
15944
|
-
},
|
|
15945
|
-
"acceptBlocked": {
|
|
15946
|
-
"type": "string",
|
|
15947
|
-
"maxLength": 16384,
|
|
15948
|
-
"description": "The running Batch's session only: the BLOCKED item ids it accepts, comma separated."
|
|
15949
|
-
},
|
|
15950
|
-
"acceptFailed": {
|
|
15951
|
-
"type": "string",
|
|
15952
|
-
"maxLength": 16384,
|
|
15953
|
-
"description": "The running Batch's session only: the minor FAILED item ids it accepts, comma separated."
|
|
15954
|
-
},
|
|
15955
|
-
"why": {
|
|
15956
|
-
"description": "With --accept-blocked or --accept-failed: one line on why those items may merge.",
|
|
15957
|
-
"type": "string",
|
|
15958
|
-
"maxLength": 500
|
|
15959
15494
|
}
|
|
15960
15495
|
},
|
|
15961
15496
|
"required": ["checklist"]
|
|
@@ -17381,7 +16916,7 @@
|
|
|
17381
16916
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/steer": {
|
|
17382
16917
|
"post": {
|
|
17383
16918
|
"operationId": "sessionsSteer",
|
|
17384
|
-
"summary": "Send a message and steer it into your running turn. Answers delivery steer, queued (the turn could not take it), job (no turn was running) or refused (the turn was stopped). Use it for plain text up to 10,000 characters; on queued or refused, say where the message is. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on
|
|
16919
|
+
"summary": "Send a message and steer it into your running turn. Answers delivery steer, queued (the turn could not take it), job (no turn was running) or refused (the turn was stopped). Use it for plain text up to 10,000 characters; on queued or refused, say where the message is. From Sensei, /kosuke:sync-branch is refused with 409 SYNC_OWNED_BY_MERGE_AGENT when the project is on the merge train and the pull request has the go-ahead, unless a member started the Turn: the merge agent syncs those.",
|
|
17385
16920
|
"tags": ["sessions"],
|
|
17386
16921
|
"x-kosuke-command": ["sessions", "steer"],
|
|
17387
16922
|
"x-kosuke-sandbox-token": true,
|
|
@@ -18227,7 +17762,7 @@
|
|
|
18227
17762
|
"/api/projects/{projectId}/merge-agent": {
|
|
18228
17763
|
"get": {
|
|
18229
17764
|
"operationId": "projectsMergeAgentGet",
|
|
18230
|
-
"summary": "Read the project's Merge agent: its mode (train,
|
|
17765
|
+
"summary": "Read the project's Merge agent: its mode (train, or off, where a new project starts), the base and whether it has GitHub's merge queue, the model the next run starts on (null: the Default Model), the go-ahead pull requests waiting for the merge train with their QA, recorded head, stored review decision and state word (merged, waiting, failed or ready, the one the Tasks board shows), the merge train's order as its open run saved it (trainOrder: each waiting pull request's place, group and reason, else null), and the open run and the last ten earlier runs, each with the model and effort its session runs on. `kosuke projects merge-agent runs list` lists every run. --live false reads Sensei's own data only: no GitHub call, and GitHub's facts (the merge queue) are null.",
|
|
18231
17766
|
"tags": ["projects"],
|
|
18232
17767
|
"x-kosuke-command": ["projects", "merge-agent", "get"],
|
|
18233
17768
|
"x-kosuke-sandbox-token": true,
|
|
@@ -18286,6 +17821,266 @@
|
|
|
18286
17821
|
}
|
|
18287
17822
|
}
|
|
18288
17823
|
}
|
|
17824
|
+
},
|
|
17825
|
+
"put": {
|
|
17826
|
+
"operationId": "projectsMergeAgentSet",
|
|
17827
|
+
"summary": "Switch the Merge agent's mode, its Go-ahead, or Wait for QA; give any of them, and the others stay. mode train: the merge train merges go-ahead pull requests one at a time. off, the mode an imported repository starts in: the platform merges and enqueues nothing; members merge their pull requests themselves, and a run already open finishes what it carries. goAhead, under the merge train: member, a member gives each pull request the go-ahead (QA must pass too); checks, a pull request a platform agent works on whose required checks pass on its latest commit has the go-ahead with nobody giving it, and waitForQa true makes it wait for QA to pass there too. Leaving train with checks takes back every go-ahead the checks gave. Switching to train starts a run for the go-ahead pull requests that wait.",
|
|
17828
|
+
"tags": ["projects"],
|
|
17829
|
+
"x-kosuke-command": ["projects", "merge-agent", "set"],
|
|
17830
|
+
"x-kosuke-sandbox-token": true,
|
|
17831
|
+
"x-kosuke-cron-token": true,
|
|
17832
|
+
"x-kosuke-sensei-token": true,
|
|
17833
|
+
"parameters": [
|
|
17834
|
+
{
|
|
17835
|
+
"name": "projectId",
|
|
17836
|
+
"in": "path",
|
|
17837
|
+
"required": true,
|
|
17838
|
+
"schema": {
|
|
17839
|
+
"type": "string",
|
|
17840
|
+
"format": "uuid",
|
|
17841
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
17842
|
+
}
|
|
17843
|
+
}
|
|
17844
|
+
],
|
|
17845
|
+
"requestBody": {
|
|
17846
|
+
"required": true,
|
|
17847
|
+
"content": {
|
|
17848
|
+
"application/json": {
|
|
17849
|
+
"schema": {
|
|
17850
|
+
"type": "object",
|
|
17851
|
+
"properties": {
|
|
17852
|
+
"mode": {
|
|
17853
|
+
"description": "train: the merge train merges go-ahead pull requests one at a time. off: the platform merges nothing, members merge their pull requests themselves.",
|
|
17854
|
+
"type": "string",
|
|
17855
|
+
"enum": ["train", "off"]
|
|
17856
|
+
},
|
|
17857
|
+
"goAhead": {
|
|
17858
|
+
"description": "Under the merge train, what gives a pull request the go-ahead. member: a member gives each one, today's behaviour. checks: a pull request whose required checks pass on its latest commit has the go-ahead; nobody has to give it.",
|
|
17859
|
+
"type": "string",
|
|
17860
|
+
"enum": ["member", "checks"]
|
|
17861
|
+
},
|
|
17862
|
+
"waitForQa": {
|
|
17863
|
+
"description": "Under goAhead checks: true makes a pull request also wait for its QA to pass on its latest commit before it merges. Under member, QA is always required.",
|
|
17864
|
+
"type": "boolean"
|
|
17865
|
+
}
|
|
17866
|
+
}
|
|
17867
|
+
}
|
|
17868
|
+
}
|
|
17869
|
+
}
|
|
17870
|
+
},
|
|
17871
|
+
"responses": {
|
|
17872
|
+
"2XX": {
|
|
17873
|
+
"description": "Success envelope",
|
|
17874
|
+
"content": {
|
|
17875
|
+
"application/json": {
|
|
17876
|
+
"schema": {
|
|
17877
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
17878
|
+
}
|
|
17879
|
+
}
|
|
17880
|
+
}
|
|
17881
|
+
},
|
|
17882
|
+
"4XX": {
|
|
17883
|
+
"description": "Error envelope",
|
|
17884
|
+
"content": {
|
|
17885
|
+
"application/json": {
|
|
17886
|
+
"schema": {
|
|
17887
|
+
"$ref": "#/components/schemas/ApiError"
|
|
17888
|
+
}
|
|
17889
|
+
}
|
|
17890
|
+
}
|
|
17891
|
+
},
|
|
17892
|
+
"5XX": {
|
|
17893
|
+
"description": "Error envelope",
|
|
17894
|
+
"content": {
|
|
17895
|
+
"application/json": {
|
|
17896
|
+
"schema": {
|
|
17897
|
+
"$ref": "#/components/schemas/ApiError"
|
|
17898
|
+
}
|
|
17899
|
+
}
|
|
17900
|
+
}
|
|
17901
|
+
}
|
|
17902
|
+
}
|
|
17903
|
+
}
|
|
17904
|
+
},
|
|
17905
|
+
"/api/projects/{projectId}/merge-agent/ci-check": {
|
|
17906
|
+
"get": {
|
|
17907
|
+
"operationId": "projectsMergeAgentCiCheckGet",
|
|
17908
|
+
"summary": "Read the Merge agent's CI check: whether the repository's pull request CI tests GitHub's merge of each pull request with the base while the base requires its checks, so a red base fails every pull request and GitHub refuses every merge. Kosuke reads the required checks and the CI files (GitHub Actions, CircleCI, Buildkite, Jenkins) once an hour, when the Merge agent is turned on and when a fix pull request merges; this read makes no GitHub call. row is null while the Merge agent is off, before the first read, when nothing blocks merges and when the CI could not be read. A blocking row names the service, base, repository, the required checks it feeds, the one change (detail) and, for GitHub Actions, where its Fix stands (fix: idle, working, or open with its pull request). A fixed row shows the fix pull request for a day after it merged. canFix: the reader is a workspace owner or admin.",
|
|
17909
|
+
"tags": ["projects"],
|
|
17910
|
+
"x-kosuke-command": ["projects", "merge-agent", "ci-check", "get"],
|
|
17911
|
+
"x-kosuke-sandbox-token": true,
|
|
17912
|
+
"x-kosuke-cron-token": true,
|
|
17913
|
+
"x-kosuke-sensei-token": true,
|
|
17914
|
+
"parameters": [
|
|
17915
|
+
{
|
|
17916
|
+
"name": "projectId",
|
|
17917
|
+
"in": "path",
|
|
17918
|
+
"required": true,
|
|
17919
|
+
"schema": {
|
|
17920
|
+
"type": "string",
|
|
17921
|
+
"format": "uuid",
|
|
17922
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
17923
|
+
}
|
|
17924
|
+
}
|
|
17925
|
+
],
|
|
17926
|
+
"responses": {
|
|
17927
|
+
"2XX": {
|
|
17928
|
+
"description": "Success envelope",
|
|
17929
|
+
"content": {
|
|
17930
|
+
"application/json": {
|
|
17931
|
+
"schema": {
|
|
17932
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
17933
|
+
}
|
|
17934
|
+
}
|
|
17935
|
+
}
|
|
17936
|
+
},
|
|
17937
|
+
"4XX": {
|
|
17938
|
+
"description": "Error envelope",
|
|
17939
|
+
"content": {
|
|
17940
|
+
"application/json": {
|
|
17941
|
+
"schema": {
|
|
17942
|
+
"$ref": "#/components/schemas/ApiError"
|
|
17943
|
+
}
|
|
17944
|
+
}
|
|
17945
|
+
}
|
|
17946
|
+
},
|
|
17947
|
+
"5XX": {
|
|
17948
|
+
"description": "Error envelope",
|
|
17949
|
+
"content": {
|
|
17950
|
+
"application/json": {
|
|
17951
|
+
"schema": {
|
|
17952
|
+
"$ref": "#/components/schemas/ApiError"
|
|
17953
|
+
}
|
|
17954
|
+
}
|
|
17955
|
+
}
|
|
17956
|
+
}
|
|
17957
|
+
}
|
|
17958
|
+
}
|
|
17959
|
+
},
|
|
17960
|
+
"/api/projects/{projectId}/merge-agent/ci-check/fix": {
|
|
17961
|
+
"post": {
|
|
17962
|
+
"operationId": "projectsMergeAgentCiCheckFixStart",
|
|
17963
|
+
"summary": "Start the Fix of the Merge agent's CI check, for a GitHub Actions repository whose pull request CI tests GitHub's merge with the base: files and starts a session in the project with --skill ship that opens one pull request setting every pull_request checkout step to the pull request's own commit. Workspace owners and admins only, in the app or with their own API key: no agent token reaches it. Refused (409) unless the stored check is blocking on GitHub Actions with no fix working or open; two requests at once start one. A start that is refused archives the filed session and answers the refusal's status and code, with nothing changed. Answers the CI check as projects merge-agent ci-check get reads it, its fix working.",
|
|
17964
|
+
"tags": ["projects"],
|
|
17965
|
+
"x-kosuke-command": ["projects", "merge-agent", "ci-check", "fix", "start"],
|
|
17966
|
+
"parameters": [
|
|
17967
|
+
{
|
|
17968
|
+
"name": "projectId",
|
|
17969
|
+
"in": "path",
|
|
17970
|
+
"required": true,
|
|
17971
|
+
"schema": {
|
|
17972
|
+
"type": "string",
|
|
17973
|
+
"format": "uuid",
|
|
17974
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
17975
|
+
}
|
|
17976
|
+
}
|
|
17977
|
+
],
|
|
17978
|
+
"responses": {
|
|
17979
|
+
"2XX": {
|
|
17980
|
+
"description": "Success envelope",
|
|
17981
|
+
"content": {
|
|
17982
|
+
"application/json": {
|
|
17983
|
+
"schema": {
|
|
17984
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
17985
|
+
}
|
|
17986
|
+
}
|
|
17987
|
+
}
|
|
17988
|
+
},
|
|
17989
|
+
"4XX": {
|
|
17990
|
+
"description": "Error envelope",
|
|
17991
|
+
"content": {
|
|
17992
|
+
"application/json": {
|
|
17993
|
+
"schema": {
|
|
17994
|
+
"$ref": "#/components/schemas/ApiError"
|
|
17995
|
+
}
|
|
17996
|
+
}
|
|
17997
|
+
}
|
|
17998
|
+
},
|
|
17999
|
+
"5XX": {
|
|
18000
|
+
"description": "Error envelope",
|
|
18001
|
+
"content": {
|
|
18002
|
+
"application/json": {
|
|
18003
|
+
"schema": {
|
|
18004
|
+
"$ref": "#/components/schemas/ApiError"
|
|
18005
|
+
}
|
|
18006
|
+
}
|
|
18007
|
+
}
|
|
18008
|
+
}
|
|
18009
|
+
}
|
|
18010
|
+
}
|
|
18011
|
+
},
|
|
18012
|
+
"/api/projects/{projectId}/merge-agent/finish": {
|
|
18013
|
+
"post": {
|
|
18014
|
+
"operationId": "projectsMergeAgentFinish",
|
|
18015
|
+
"summary": "The open merge train run's own session only: end the run once nothing waits, neither waiting nor in progress, with what it merged. Its saved merge order stops showing on the tasks' boards, and the next go-ahead starts a new run.",
|
|
18016
|
+
"tags": ["projects"],
|
|
18017
|
+
"x-kosuke-command": ["projects", "merge-agent", "finish"],
|
|
18018
|
+
"x-kosuke-sandbox-token": true,
|
|
18019
|
+
"x-kosuke-cron-token": true,
|
|
18020
|
+
"x-kosuke-sensei-token": true,
|
|
18021
|
+
"parameters": [
|
|
18022
|
+
{
|
|
18023
|
+
"name": "projectId",
|
|
18024
|
+
"in": "path",
|
|
18025
|
+
"required": true,
|
|
18026
|
+
"schema": {
|
|
18027
|
+
"type": "string",
|
|
18028
|
+
"format": "uuid",
|
|
18029
|
+
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
|
|
18030
|
+
}
|
|
18031
|
+
}
|
|
18032
|
+
],
|
|
18033
|
+
"requestBody": {
|
|
18034
|
+
"required": true,
|
|
18035
|
+
"content": {
|
|
18036
|
+
"application/json": {
|
|
18037
|
+
"schema": {
|
|
18038
|
+
"type": "object",
|
|
18039
|
+
"properties": {
|
|
18040
|
+
"reason": {
|
|
18041
|
+
"type": "string",
|
|
18042
|
+
"minLength": 1,
|
|
18043
|
+
"maxLength": 2000,
|
|
18044
|
+
"description": "What this run merged, or why it ends with nothing waiting."
|
|
18045
|
+
}
|
|
18046
|
+
},
|
|
18047
|
+
"required": ["reason"]
|
|
18048
|
+
}
|
|
18049
|
+
}
|
|
18050
|
+
}
|
|
18051
|
+
},
|
|
18052
|
+
"responses": {
|
|
18053
|
+
"2XX": {
|
|
18054
|
+
"description": "Success envelope",
|
|
18055
|
+
"content": {
|
|
18056
|
+
"application/json": {
|
|
18057
|
+
"schema": {
|
|
18058
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
18059
|
+
}
|
|
18060
|
+
}
|
|
18061
|
+
}
|
|
18062
|
+
},
|
|
18063
|
+
"4XX": {
|
|
18064
|
+
"description": "Error envelope",
|
|
18065
|
+
"content": {
|
|
18066
|
+
"application/json": {
|
|
18067
|
+
"schema": {
|
|
18068
|
+
"$ref": "#/components/schemas/ApiError"
|
|
18069
|
+
}
|
|
18070
|
+
}
|
|
18071
|
+
}
|
|
18072
|
+
},
|
|
18073
|
+
"5XX": {
|
|
18074
|
+
"description": "Error envelope",
|
|
18075
|
+
"content": {
|
|
18076
|
+
"application/json": {
|
|
18077
|
+
"schema": {
|
|
18078
|
+
"$ref": "#/components/schemas/ApiError"
|
|
18079
|
+
}
|
|
18080
|
+
}
|
|
18081
|
+
}
|
|
18082
|
+
}
|
|
18083
|
+
}
|
|
18289
18084
|
}
|
|
18290
18085
|
},
|
|
18291
18086
|
"/api/projects/{projectId}/merge-agent/merges": {
|
|
@@ -18379,7 +18174,7 @@
|
|
|
18379
18174
|
"/api/projects/{projectId}/merge-agent/model": {
|
|
18380
18175
|
"put": {
|
|
18381
18176
|
"operationId": "projectsMergeAgentModelSet",
|
|
18382
|
-
"summary": "Pick the Merge agent's model, as an encoded id such as anthropic:opus__high, or default for the Default Model: the open run
|
|
18177
|
+
"summary": "Pick the Merge agent's model, as an encoded id such as anthropic:opus__high, or default for the Default Model: the open run switches to it from its next turn, and the next run starts on it. The answer's run says whether the open run took it, and why not.",
|
|
18383
18178
|
"tags": ["projects"],
|
|
18384
18179
|
"x-kosuke-command": ["projects", "merge-agent", "model", "set"],
|
|
18385
18180
|
"x-kosuke-sandbox-token": true,
|
|
@@ -18506,7 +18301,7 @@
|
|
|
18506
18301
|
"/api/projects/{projectId}/merge-agent/runs": {
|
|
18507
18302
|
"get": {
|
|
18508
18303
|
"operationId": "projectsMergeAgentRunsList",
|
|
18509
|
-
"summary": "List every Merge agent run of the project,
|
|
18304
|
+
"summary": "List every Merge agent run of the project, newest first, a page at a time: each one's number, mode (always train), session id (for `kosuke sessions get`), state, finish reason and dates. Pass nextCursor back as cursor for the older runs. The runs' sessions stay out of the session lists.",
|
|
18510
18305
|
"tags": ["projects"],
|
|
18511
18306
|
"x-kosuke-command": ["projects", "merge-agent", "runs", "list"],
|
|
18512
18307
|
"x-kosuke-sandbox-token": true,
|