@kosuke-ai/kosuke 1.0.147 → 1.0.148
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 +4 -0
- package/dist/generated/commands/deploys/cancel.js +1 -1
- package/dist/generated/commands/deploys/start.js +1 -1
- package/dist/generated/commands/index.js +316 -344
- package/dist/generated/commands/sessions/jobs-cancel.js +1 -1
- package/dist/generated/commands/sessions/runtime-commands-run.js +1 -1
- package/dist/generated/commands/sessions/send.js +1 -1
- package/dist/generated/commands/sessions/steer.js +2 -2
- package/openapi.json +641 -1695
- package/package.json +4 -4
- package/dist/generated/commands/deploys/queue-delete.js +0 -20
- package/dist/generated/commands/deploys/queue-list.js +0 -19
- package/dist/generated/commands/deploys/queue-move.js +0 -31
- package/dist/generated/commands/deploys/queue-resume.js +0 -18
- package/dist/generated/commands/deploys/queue-send.js +0 -19
- package/dist/generated/commands/deploys/queue-steer.js +0 -19
- package/dist/generated/commands/deploys/queue-update.js +0 -57
- package/dist/generated/commands/sessions/queue-delete.js +0 -21
- package/dist/generated/commands/sessions/queue-list.js +0 -20
- package/dist/generated/commands/sessions/queue-move.js +0 -32
- package/dist/generated/commands/sessions/queue-resume.js +0 -20
- package/dist/generated/commands/sessions/queue-send.js +0 -21
- package/dist/generated/commands/sessions/queue-steer.js +0 -21
- package/dist/generated/commands/sessions/queue-update.js +0 -59
package/openapi.json
CHANGED
|
@@ -13995,7 +13995,7 @@
|
|
|
13995
13995
|
},
|
|
13996
13996
|
"post": {
|
|
13997
13997
|
"operationId": "sessionsSend",
|
|
13998
|
-
"summary": "Send a message: starts a turn, or
|
|
13998
|
+
"summary": "Send a message: starts a turn, or steers the running one. 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.",
|
|
13999
13999
|
"tags": ["sessions"],
|
|
14000
14000
|
"x-kosuke-command": ["sessions", "send"],
|
|
14001
14001
|
"x-kosuke-attachments": true,
|
|
@@ -14288,7 +14288,7 @@
|
|
|
14288
14288
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/jobs/chat/{jobId}/cancel": {
|
|
14289
14289
|
"post": {
|
|
14290
14290
|
"operationId": "sessionsJobsCancel",
|
|
14291
|
-
"summary": "Stop a running turn. Steers it had not
|
|
14291
|
+
"summary": "Stop a running turn. Steers it had not read go at once as the next turn.",
|
|
14292
14292
|
"tags": ["sessions"],
|
|
14293
14293
|
"x-kosuke-command": ["sessions", "jobs", "cancel"],
|
|
14294
14294
|
"x-kosuke-sandbox-token": true,
|
|
@@ -17046,12 +17046,12 @@
|
|
|
17046
17046
|
}
|
|
17047
17047
|
}
|
|
17048
17048
|
},
|
|
17049
|
-
"/api/projects/{projectId}/chat-sessions/{sessionId}/
|
|
17050
|
-
"
|
|
17051
|
-
"operationId": "
|
|
17052
|
-
"summary": "
|
|
17049
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/read": {
|
|
17050
|
+
"post": {
|
|
17051
|
+
"operationId": "sessionsMarkRead",
|
|
17052
|
+
"summary": "Mark a chat session read, clearing its unread marker, as opening it in the app does. The assignee clears their marker; any member clears the shared marker of a session booked to the system user.",
|
|
17053
17053
|
"tags": ["sessions"],
|
|
17054
|
-
"x-kosuke-command": ["sessions", "
|
|
17054
|
+
"x-kosuke-command": ["sessions", "mark-read"],
|
|
17055
17055
|
"x-kosuke-sandbox-token": true,
|
|
17056
17056
|
"x-kosuke-cron-token": true,
|
|
17057
17057
|
"x-kosuke-sensei-token": true,
|
|
@@ -17111,21 +17111,13 @@
|
|
|
17111
17111
|
}
|
|
17112
17112
|
}
|
|
17113
17113
|
},
|
|
17114
|
-
"/api/projects/{projectId}/chat-sessions/{sessionId}/
|
|
17115
|
-
"
|
|
17116
|
-
"operationId": "
|
|
17117
|
-
"summary": "
|
|
17114
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/review": {
|
|
17115
|
+
"put": {
|
|
17116
|
+
"operationId": "sessionsReviewSet",
|
|
17117
|
+
"summary": "Record a review's verdict for the sandbox's HEAD, with the head and tree the platform reads from the checkout. Refused (409) while HEAD is not the given head, while tracked files have uncommitted changes, or once the Turn stopped. Only the session's own sandbox.",
|
|
17118
17118
|
"tags": ["sessions"],
|
|
17119
|
-
"x-kosuke-command": ["sessions", "
|
|
17120
|
-
"x-kosuke-attachments": true,
|
|
17121
|
-
"x-kosuke-attachment-max-files": 20,
|
|
17122
|
-
"x-kosuke-attachment-max-bytes": 10485760,
|
|
17123
|
-
"x-kosuke-attachment-upload-path": "/api/projects/{projectId}/attachments",
|
|
17124
|
-
"x-kosuke-attachment-video-max-bytes": 10485760,
|
|
17125
|
-
"x-kosuke-attachment-video-upload-path": "/api/projects/{projectId}/attachments/uploads",
|
|
17119
|
+
"x-kosuke-command": ["sessions", "review", "set"],
|
|
17126
17120
|
"x-kosuke-sandbox-token": true,
|
|
17127
|
-
"x-kosuke-cron-token": true,
|
|
17128
|
-
"x-kosuke-sensei-token": true,
|
|
17129
17121
|
"parameters": [
|
|
17130
17122
|
{
|
|
17131
17123
|
"name": "projectId",
|
|
@@ -17146,16 +17138,6 @@
|
|
|
17146
17138
|
"format": "uuid",
|
|
17147
17139
|
"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)$"
|
|
17148
17140
|
}
|
|
17149
|
-
},
|
|
17150
|
-
{
|
|
17151
|
-
"name": "queuedMessageId",
|
|
17152
|
-
"in": "path",
|
|
17153
|
-
"required": true,
|
|
17154
|
-
"schema": {
|
|
17155
|
-
"type": "string",
|
|
17156
|
-
"format": "uuid",
|
|
17157
|
-
"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)$"
|
|
17158
|
-
}
|
|
17159
17141
|
}
|
|
17160
17142
|
],
|
|
17161
17143
|
"requestBody": {
|
|
@@ -17165,35 +17147,24 @@
|
|
|
17165
17147
|
"schema": {
|
|
17166
17148
|
"type": "object",
|
|
17167
17149
|
"properties": {
|
|
17168
|
-
"
|
|
17150
|
+
"verdict": {
|
|
17169
17151
|
"type": "string",
|
|
17170
|
-
"
|
|
17152
|
+
"enum": ["Ship", "Ship with open items", "Do not ship", "Incomplete"],
|
|
17153
|
+
"description": "`Ship` with every finding fixed or none, `Do not ship` with one open, `Incomplete` when no reviewer answered."
|
|
17171
17154
|
},
|
|
17172
|
-
"
|
|
17173
|
-
"description": "The ids of the files to keep. Omitted keeps them all.",
|
|
17174
|
-
"type": "array",
|
|
17175
|
-
"items": {
|
|
17176
|
-
"type": "string"
|
|
17177
|
-
}
|
|
17178
|
-
}
|
|
17179
|
-
},
|
|
17180
|
-
"required": ["content"]
|
|
17181
|
-
}
|
|
17182
|
-
},
|
|
17183
|
-
"multipart/form-data": {
|
|
17184
|
-
"schema": {
|
|
17185
|
-
"type": "object",
|
|
17186
|
-
"properties": {
|
|
17187
|
-
"content": {
|
|
17155
|
+
"head": {
|
|
17188
17156
|
"type": "string",
|
|
17189
|
-
"
|
|
17157
|
+
"pattern": "^[0-9a-f]{40}$",
|
|
17158
|
+
"description": "The commit the review covers, after its fixes: `git rev-parse HEAD`."
|
|
17190
17159
|
},
|
|
17191
|
-
"
|
|
17192
|
-
"
|
|
17193
|
-
"
|
|
17160
|
+
"run": {
|
|
17161
|
+
"type": "integer",
|
|
17162
|
+
"exclusiveMinimum": 0,
|
|
17163
|
+
"maximum": 2147483647,
|
|
17164
|
+
"description": "The review's run: when it started, in epoch seconds (`cat /tmp/review/run`)."
|
|
17194
17165
|
}
|
|
17195
17166
|
},
|
|
17196
|
-
"required": ["
|
|
17167
|
+
"required": ["verdict", "head", "run"]
|
|
17197
17168
|
}
|
|
17198
17169
|
}
|
|
17199
17170
|
}
|
|
@@ -17230,12 +17201,14 @@
|
|
|
17230
17201
|
}
|
|
17231
17202
|
}
|
|
17232
17203
|
}
|
|
17233
|
-
}
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
|
|
17204
|
+
}
|
|
17205
|
+
},
|
|
17206
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/runtime-commands": {
|
|
17207
|
+
"post": {
|
|
17208
|
+
"operationId": "sessionsRuntimeCommandsRun",
|
|
17209
|
+
"summary": "Run a runtime command on the agent session: clear starts a fresh conversation, compact summarizes it, with optional focus instructions. Refused while a turn or another command is running. Compact waits for the sandbox and can take a minute.",
|
|
17237
17210
|
"tags": ["sessions"],
|
|
17238
|
-
"x-kosuke-command": ["sessions", "
|
|
17211
|
+
"x-kosuke-command": ["sessions", "runtime-commands", "run"],
|
|
17239
17212
|
"x-kosuke-sandbox-token": true,
|
|
17240
17213
|
"x-kosuke-cron-token": true,
|
|
17241
17214
|
"x-kosuke-sensei-token": true,
|
|
@@ -17259,18 +17232,28 @@
|
|
|
17259
17232
|
"format": "uuid",
|
|
17260
17233
|
"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)$"
|
|
17261
17234
|
}
|
|
17262
|
-
},
|
|
17263
|
-
{
|
|
17264
|
-
"name": "queuedMessageId",
|
|
17265
|
-
"in": "path",
|
|
17266
|
-
"required": true,
|
|
17267
|
-
"schema": {
|
|
17268
|
-
"type": "string",
|
|
17269
|
-
"format": "uuid",
|
|
17270
|
-
"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)$"
|
|
17271
|
-
}
|
|
17272
17235
|
}
|
|
17273
17236
|
],
|
|
17237
|
+
"requestBody": {
|
|
17238
|
+
"required": true,
|
|
17239
|
+
"content": {
|
|
17240
|
+
"application/json": {
|
|
17241
|
+
"schema": {
|
|
17242
|
+
"type": "object",
|
|
17243
|
+
"properties": {
|
|
17244
|
+
"command": {
|
|
17245
|
+
"type": "string",
|
|
17246
|
+
"enum": ["clear", "compact"]
|
|
17247
|
+
},
|
|
17248
|
+
"instructions": {
|
|
17249
|
+
"type": "string"
|
|
17250
|
+
}
|
|
17251
|
+
},
|
|
17252
|
+
"required": ["command"]
|
|
17253
|
+
}
|
|
17254
|
+
}
|
|
17255
|
+
}
|
|
17256
|
+
},
|
|
17274
17257
|
"responses": {
|
|
17275
17258
|
"2XX": {
|
|
17276
17259
|
"description": "Success envelope",
|
|
@@ -17305,12 +17288,12 @@
|
|
|
17305
17288
|
}
|
|
17306
17289
|
}
|
|
17307
17290
|
},
|
|
17308
|
-
"/api/projects/{projectId}/chat-sessions/{sessionId}/
|
|
17291
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/steer": {
|
|
17309
17292
|
"post": {
|
|
17310
|
-
"operationId": "
|
|
17311
|
-
"summary": "
|
|
17293
|
+
"operationId": "sessionsSteer",
|
|
17294
|
+
"summary": "Send a message and steer it into the running turn. Answers delivery steer, or job (no turn was running). Use it for plain text up to 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.",
|
|
17312
17295
|
"tags": ["sessions"],
|
|
17313
|
-
"x-kosuke-command": ["sessions", "
|
|
17296
|
+
"x-kosuke-command": ["sessions", "steer"],
|
|
17314
17297
|
"x-kosuke-sandbox-token": true,
|
|
17315
17298
|
"x-kosuke-cron-token": true,
|
|
17316
17299
|
"x-kosuke-sensei-token": true,
|
|
@@ -17334,16 +17317,6 @@
|
|
|
17334
17317
|
"format": "uuid",
|
|
17335
17318
|
"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)$"
|
|
17336
17319
|
}
|
|
17337
|
-
},
|
|
17338
|
-
{
|
|
17339
|
-
"name": "queuedMessageId",
|
|
17340
|
-
"in": "path",
|
|
17341
|
-
"required": true,
|
|
17342
|
-
"schema": {
|
|
17343
|
-
"type": "string",
|
|
17344
|
-
"format": "uuid",
|
|
17345
|
-
"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)$"
|
|
17346
|
-
}
|
|
17347
17320
|
}
|
|
17348
17321
|
],
|
|
17349
17322
|
"requestBody": {
|
|
@@ -17353,14 +17326,19 @@
|
|
|
17353
17326
|
"schema": {
|
|
17354
17327
|
"type": "object",
|
|
17355
17328
|
"properties": {
|
|
17356
|
-
"
|
|
17357
|
-
"type": "
|
|
17358
|
-
"
|
|
17359
|
-
"
|
|
17360
|
-
|
|
17329
|
+
"content": {
|
|
17330
|
+
"type": "string",
|
|
17331
|
+
"minLength": 1,
|
|
17332
|
+
"maxLength": 10000
|
|
17333
|
+
},
|
|
17334
|
+
"runningJobId": {
|
|
17335
|
+
"description": "Accepted from older clients and ignored: the running turn takes the message.",
|
|
17336
|
+
"type": "string",
|
|
17337
|
+
"format": "uuid",
|
|
17338
|
+
"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)$"
|
|
17361
17339
|
}
|
|
17362
17340
|
},
|
|
17363
|
-
"required": ["
|
|
17341
|
+
"required": ["content"]
|
|
17364
17342
|
}
|
|
17365
17343
|
}
|
|
17366
17344
|
}
|
|
@@ -17399,12 +17377,12 @@
|
|
|
17399
17377
|
}
|
|
17400
17378
|
}
|
|
17401
17379
|
},
|
|
17402
|
-
"/api/projects/{projectId}/
|
|
17403
|
-
"
|
|
17404
|
-
"operationId": "
|
|
17405
|
-
"summary": "
|
|
17406
|
-
"tags": ["
|
|
17407
|
-
"x-kosuke-command": ["
|
|
17380
|
+
"/api/projects/{projectId}/deploy-messages": {
|
|
17381
|
+
"get": {
|
|
17382
|
+
"operationId": "deploysMessagesList",
|
|
17383
|
+
"summary": "Read the deploy conversation, from the user's latest deploy on, oldest first, and the current deploy status: the whole of it, its last limit messages, the page before an olderCursor, or everything from one; newestCursor is what a poll passes as from to read only what changed since. messageCount counts the whole conversation. Blocks come as stored. In a message recorded since previews were stored, a tool call's input keeps its short fields (inputCompacted when cut), a result over 500 characters its first 500 (resultCompacted), and a subagent its last output entry with outputCount (outputOmitted when cut). `kosuke deploys messages get` reads one message whole.",
|
|
17384
|
+
"tags": ["deploys"],
|
|
17385
|
+
"x-kosuke-command": ["deploys", "messages", "list"],
|
|
17408
17386
|
"x-kosuke-sandbox-token": true,
|
|
17409
17387
|
"x-kosuke-cron-token": true,
|
|
17410
17388
|
"x-kosuke-sensei-token": true,
|
|
@@ -17420,23 +17398,35 @@
|
|
|
17420
17398
|
}
|
|
17421
17399
|
},
|
|
17422
17400
|
{
|
|
17423
|
-
"name": "
|
|
17424
|
-
"in": "
|
|
17425
|
-
"required":
|
|
17401
|
+
"name": "limit",
|
|
17402
|
+
"in": "query",
|
|
17403
|
+
"required": false,
|
|
17404
|
+
"description": "Only the newest messages, up to this many. With from, the oldest this many from that message on.",
|
|
17426
17405
|
"schema": {
|
|
17427
|
-
"
|
|
17428
|
-
"
|
|
17429
|
-
"
|
|
17406
|
+
"description": "Only the newest messages, up to this many. With from, the oldest this many from that message on.",
|
|
17407
|
+
"type": "integer",
|
|
17408
|
+
"minimum": 1,
|
|
17409
|
+
"maximum": 500
|
|
17430
17410
|
}
|
|
17431
17411
|
},
|
|
17432
17412
|
{
|
|
17433
|
-
"name": "
|
|
17434
|
-
"in": "
|
|
17435
|
-
"required":
|
|
17413
|
+
"name": "before",
|
|
17414
|
+
"in": "query",
|
|
17415
|
+
"required": false,
|
|
17416
|
+
"description": "An olderCursor from an earlier read: only the messages older than the oldest message of that read.",
|
|
17436
17417
|
"schema": {
|
|
17437
|
-
"
|
|
17438
|
-
"
|
|
17439
|
-
|
|
17418
|
+
"description": "An olderCursor from an earlier read: only the messages older than the oldest message of that read.",
|
|
17419
|
+
"type": "string"
|
|
17420
|
+
}
|
|
17421
|
+
},
|
|
17422
|
+
{
|
|
17423
|
+
"name": "from",
|
|
17424
|
+
"in": "query",
|
|
17425
|
+
"required": false,
|
|
17426
|
+
"description": "An olderCursor or newestCursor from an earlier read: the oldest or the newest message of that read, and every message after it.",
|
|
17427
|
+
"schema": {
|
|
17428
|
+
"description": "An olderCursor or newestCursor from an earlier read: the oldest or the newest message of that read, and every message after it.",
|
|
17429
|
+
"type": "string"
|
|
17440
17430
|
}
|
|
17441
17431
|
}
|
|
17442
17432
|
],
|
|
@@ -17474,12 +17464,12 @@
|
|
|
17474
17464
|
}
|
|
17475
17465
|
}
|
|
17476
17466
|
},
|
|
17477
|
-
"/api/projects/{projectId}/
|
|
17478
|
-
"
|
|
17479
|
-
"operationId": "
|
|
17480
|
-
"summary": "
|
|
17481
|
-
"tags": ["
|
|
17482
|
-
"x-kosuke-command": ["
|
|
17467
|
+
"/api/projects/{projectId}/deploy-messages/{messageId}": {
|
|
17468
|
+
"get": {
|
|
17469
|
+
"operationId": "deploysMessagesGet",
|
|
17470
|
+
"summary": "Read one message of the deploy conversation with every block as recorded: whole tool inputs, results and subagent output, unless agentOutput is compact (subagent output as stored) or summary (blocks as stored).",
|
|
17471
|
+
"tags": ["deploys"],
|
|
17472
|
+
"x-kosuke-command": ["deploys", "messages", "get"],
|
|
17483
17473
|
"x-kosuke-sandbox-token": true,
|
|
17484
17474
|
"x-kosuke-cron-token": true,
|
|
17485
17475
|
"x-kosuke-sensei-token": true,
|
|
@@ -17495,7 +17485,7 @@
|
|
|
17495
17485
|
}
|
|
17496
17486
|
},
|
|
17497
17487
|
{
|
|
17498
|
-
"name": "
|
|
17488
|
+
"name": "messageId",
|
|
17499
17489
|
"in": "path",
|
|
17500
17490
|
"required": true,
|
|
17501
17491
|
"schema": {
|
|
@@ -17505,13 +17495,14 @@
|
|
|
17505
17495
|
}
|
|
17506
17496
|
},
|
|
17507
17497
|
{
|
|
17508
|
-
"name": "
|
|
17509
|
-
"in": "
|
|
17510
|
-
"required":
|
|
17498
|
+
"name": "agentOutput",
|
|
17499
|
+
"in": "query",
|
|
17500
|
+
"required": false,
|
|
17501
|
+
"description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and subagent output as `kosuke deploys messages list` does; summary returns the blocks as stored, as `kosuke deploys messages list` does.",
|
|
17511
17502
|
"schema": {
|
|
17503
|
+
"description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and subagent output as `kosuke deploys messages list` does; summary returns the blocks as stored, as `kosuke deploys messages list` does.",
|
|
17512
17504
|
"type": "string",
|
|
17513
|
-
"
|
|
17514
|
-
"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)$"
|
|
17505
|
+
"enum": ["summary", "compact", "full"]
|
|
17515
17506
|
}
|
|
17516
17507
|
}
|
|
17517
17508
|
],
|
|
@@ -17549,12 +17540,12 @@
|
|
|
17549
17540
|
}
|
|
17550
17541
|
}
|
|
17551
17542
|
},
|
|
17552
|
-
"/api/projects/{projectId}/
|
|
17553
|
-
"
|
|
17554
|
-
"operationId": "
|
|
17555
|
-
"summary": "
|
|
17556
|
-
"tags": ["
|
|
17557
|
-
"x-kosuke-command": ["
|
|
17543
|
+
"/api/projects/{projectId}/deploys": {
|
|
17544
|
+
"get": {
|
|
17545
|
+
"operationId": "deploysList",
|
|
17546
|
+
"summary": "List the project's Deploys, newest first: whether a member (user) or the platform (system) started each, its status, error and timestamps, with the total in meta.pagination.",
|
|
17547
|
+
"tags": ["deploys"],
|
|
17548
|
+
"x-kosuke-command": ["deploys", "list"],
|
|
17558
17549
|
"x-kosuke-sandbox-token": true,
|
|
17559
17550
|
"x-kosuke-cron-token": true,
|
|
17560
17551
|
"x-kosuke-sensei-token": true,
|
|
@@ -17570,13 +17561,27 @@
|
|
|
17570
17561
|
}
|
|
17571
17562
|
},
|
|
17572
17563
|
{
|
|
17573
|
-
"name": "
|
|
17574
|
-
"in": "
|
|
17575
|
-
"required":
|
|
17564
|
+
"name": "page",
|
|
17565
|
+
"in": "query",
|
|
17566
|
+
"required": false,
|
|
17567
|
+
"description": "1-based. Default 1.",
|
|
17576
17568
|
"schema": {
|
|
17577
|
-
"
|
|
17578
|
-
"
|
|
17579
|
-
"
|
|
17569
|
+
"description": "1-based. Default 1.",
|
|
17570
|
+
"type": "integer",
|
|
17571
|
+
"minimum": 1,
|
|
17572
|
+
"maximum": 9007199254740991
|
|
17573
|
+
}
|
|
17574
|
+
},
|
|
17575
|
+
{
|
|
17576
|
+
"name": "pageSize",
|
|
17577
|
+
"in": "query",
|
|
17578
|
+
"required": false,
|
|
17579
|
+
"description": "Default 25. Values above 100 are clamped, not rejected.",
|
|
17580
|
+
"schema": {
|
|
17581
|
+
"description": "Default 25. Values above 100 are clamped, not rejected.",
|
|
17582
|
+
"type": "integer",
|
|
17583
|
+
"minimum": 1,
|
|
17584
|
+
"maximum": 9007199254740991
|
|
17580
17585
|
}
|
|
17581
17586
|
}
|
|
17582
17587
|
],
|
|
@@ -17614,12 +17619,13 @@
|
|
|
17614
17619
|
}
|
|
17615
17620
|
}
|
|
17616
17621
|
},
|
|
17617
|
-
"/api/projects/{projectId}/
|
|
17618
|
-
"
|
|
17619
|
-
"operationId": "
|
|
17620
|
-
"summary": "
|
|
17621
|
-
"tags": ["
|
|
17622
|
-
"x-kosuke-command": ["
|
|
17622
|
+
"/api/projects/{projectId}/labels": {
|
|
17623
|
+
"get": {
|
|
17624
|
+
"operationId": "projectsLabelsList",
|
|
17625
|
+
"summary": "List the project's Session Labels as { name, color }, in alphabetical order, including labels no session carries any more. color is six hex digits without '#'.",
|
|
17626
|
+
"tags": ["projects"],
|
|
17627
|
+
"x-kosuke-command": ["projects", "labels", "list"],
|
|
17628
|
+
"x-kosuke-fields": ["name", "color"],
|
|
17623
17629
|
"x-kosuke-sandbox-token": true,
|
|
17624
17630
|
"x-kosuke-cron-token": true,
|
|
17625
17631
|
"x-kosuke-sensei-token": true,
|
|
@@ -17633,16 +17639,6 @@
|
|
|
17633
17639
|
"format": "uuid",
|
|
17634
17640
|
"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)$"
|
|
17635
17641
|
}
|
|
17636
|
-
},
|
|
17637
|
-
{
|
|
17638
|
-
"name": "sessionId",
|
|
17639
|
-
"in": "path",
|
|
17640
|
-
"required": true,
|
|
17641
|
-
"schema": {
|
|
17642
|
-
"type": "string",
|
|
17643
|
-
"format": "uuid",
|
|
17644
|
-
"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)$"
|
|
17645
|
-
}
|
|
17646
17642
|
}
|
|
17647
17643
|
],
|
|
17648
17644
|
"responses": {
|
|
@@ -17677,15 +17673,15 @@
|
|
|
17677
17673
|
}
|
|
17678
17674
|
}
|
|
17679
17675
|
}
|
|
17680
|
-
}
|
|
17681
|
-
|
|
17682
|
-
|
|
17683
|
-
|
|
17684
|
-
"
|
|
17685
|
-
"
|
|
17686
|
-
"tags": ["sessions"],
|
|
17687
|
-
"x-kosuke-command": ["sessions", "review", "set"],
|
|
17676
|
+
},
|
|
17677
|
+
"patch": {
|
|
17678
|
+
"operationId": "projectsLabelsUpdate",
|
|
17679
|
+
"summary": "Recolor a Session Label. Session Labels stay in Sensei: nothing is written to GitHub.",
|
|
17680
|
+
"tags": ["projects"],
|
|
17681
|
+
"x-kosuke-command": ["projects", "labels", "update"],
|
|
17688
17682
|
"x-kosuke-sandbox-token": true,
|
|
17683
|
+
"x-kosuke-cron-token": true,
|
|
17684
|
+
"x-kosuke-sensei-token": true,
|
|
17689
17685
|
"parameters": [
|
|
17690
17686
|
{
|
|
17691
17687
|
"name": "projectId",
|
|
@@ -17696,16 +17692,6 @@
|
|
|
17696
17692
|
"format": "uuid",
|
|
17697
17693
|
"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)$"
|
|
17698
17694
|
}
|
|
17699
|
-
},
|
|
17700
|
-
{
|
|
17701
|
-
"name": "sessionId",
|
|
17702
|
-
"in": "path",
|
|
17703
|
-
"required": true,
|
|
17704
|
-
"schema": {
|
|
17705
|
-
"type": "string",
|
|
17706
|
-
"format": "uuid",
|
|
17707
|
-
"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)$"
|
|
17708
|
-
}
|
|
17709
17695
|
}
|
|
17710
17696
|
],
|
|
17711
17697
|
"requestBody": {
|
|
@@ -17715,24 +17701,19 @@
|
|
|
17715
17701
|
"schema": {
|
|
17716
17702
|
"type": "object",
|
|
17717
17703
|
"properties": {
|
|
17718
|
-
"
|
|
17719
|
-
"
|
|
17720
|
-
"enum": ["Ship", "Ship with open items", "Do not ship", "Incomplete"],
|
|
17721
|
-
"description": "`Ship` with every finding fixed or none, `Do not ship` with one open, `Incomplete` when no reviewer answered."
|
|
17722
|
-
},
|
|
17723
|
-
"head": {
|
|
17704
|
+
"name": {
|
|
17705
|
+
"description": "The Session Label to recolor.",
|
|
17724
17706
|
"type": "string",
|
|
17725
|
-
"
|
|
17726
|
-
"
|
|
17707
|
+
"minLength": 1,
|
|
17708
|
+
"maxLength": 50,
|
|
17709
|
+
"pattern": "^[^\\x00-\\x1f\\x7f]+$"
|
|
17727
17710
|
},
|
|
17728
|
-
"
|
|
17729
|
-
"
|
|
17730
|
-
"
|
|
17731
|
-
"maximum": 2147483647,
|
|
17732
|
-
"description": "The review's run: when it started, in epoch seconds (`cat /tmp/review/run`)."
|
|
17711
|
+
"color": {
|
|
17712
|
+
"description": "Six hex digits, with or without a leading #, as GitHub stores label colors.",
|
|
17713
|
+
"type": "string"
|
|
17733
17714
|
}
|
|
17734
17715
|
},
|
|
17735
|
-
"required": ["
|
|
17716
|
+
"required": ["name", "color"]
|
|
17736
17717
|
}
|
|
17737
17718
|
}
|
|
17738
17719
|
}
|
|
@@ -17769,14 +17750,12 @@
|
|
|
17769
17750
|
}
|
|
17770
17751
|
}
|
|
17771
17752
|
}
|
|
17772
|
-
}
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
|
|
17776
|
-
"
|
|
17777
|
-
"
|
|
17778
|
-
"tags": ["sessions"],
|
|
17779
|
-
"x-kosuke-command": ["sessions", "runtime-commands", "run"],
|
|
17753
|
+
},
|
|
17754
|
+
"delete": {
|
|
17755
|
+
"operationId": "projectsLabelsDelete",
|
|
17756
|
+
"summary": "Delete a Session Label from the project's catalog. A label sessions still carry is refused with 409 and the list of them unless removeFromSessions is true, which removes it from each of them. Deleting a name the project does not have, including one already deleted, answers 404.",
|
|
17757
|
+
"tags": ["projects"],
|
|
17758
|
+
"x-kosuke-command": ["projects", "labels", "delete"],
|
|
17780
17759
|
"x-kosuke-sandbox-token": true,
|
|
17781
17760
|
"x-kosuke-cron-token": true,
|
|
17782
17761
|
"x-kosuke-sensei-token": true,
|
|
@@ -17790,16 +17769,6 @@
|
|
|
17790
17769
|
"format": "uuid",
|
|
17791
17770
|
"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)$"
|
|
17792
17771
|
}
|
|
17793
|
-
},
|
|
17794
|
-
{
|
|
17795
|
-
"name": "sessionId",
|
|
17796
|
-
"in": "path",
|
|
17797
|
-
"required": true,
|
|
17798
|
-
"schema": {
|
|
17799
|
-
"type": "string",
|
|
17800
|
-
"format": "uuid",
|
|
17801
|
-
"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)$"
|
|
17802
|
-
}
|
|
17803
17772
|
}
|
|
17804
17773
|
],
|
|
17805
17774
|
"requestBody": {
|
|
@@ -17809,15 +17778,34 @@
|
|
|
17809
17778
|
"schema": {
|
|
17810
17779
|
"type": "object",
|
|
17811
17780
|
"properties": {
|
|
17812
|
-
"
|
|
17781
|
+
"name": {
|
|
17782
|
+
"description": "The Session Label to delete, matched case-insensitively.",
|
|
17813
17783
|
"type": "string",
|
|
17814
|
-
"
|
|
17784
|
+
"minLength": 1,
|
|
17785
|
+
"maxLength": 50,
|
|
17786
|
+
"pattern": "^[^\\x00-\\x1f\\x7f]+$"
|
|
17815
17787
|
},
|
|
17816
|
-
"
|
|
17817
|
-
"
|
|
17788
|
+
"removeFromSessions": {
|
|
17789
|
+
"description": "Also remove the label from every session carrying it, archived and completed included, and resync their pull requests. Without it, deleting a label any session carries fails with 409 and lists them.",
|
|
17790
|
+
"type": "boolean"
|
|
17791
|
+
},
|
|
17792
|
+
"expectedSessionCount": {
|
|
17793
|
+
"description": "Fail with 409 when the number of sessions carrying the label changed.",
|
|
17794
|
+
"type": "integer",
|
|
17795
|
+
"minimum": 0,
|
|
17796
|
+
"maximum": 9007199254740991
|
|
17797
|
+
},
|
|
17798
|
+
"expectedSessionIds": {
|
|
17799
|
+
"description": "JSON array of the confirmed session IDs. Fail with 409 if the affected sessions changed, even when their count stayed the same.",
|
|
17800
|
+
"type": "array",
|
|
17801
|
+
"items": {
|
|
17802
|
+
"type": "string",
|
|
17803
|
+
"format": "uuid",
|
|
17804
|
+
"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)$"
|
|
17805
|
+
}
|
|
17818
17806
|
}
|
|
17819
17807
|
},
|
|
17820
|
-
"required": ["
|
|
17808
|
+
"required": ["name"]
|
|
17821
17809
|
}
|
|
17822
17810
|
}
|
|
17823
17811
|
}
|
|
@@ -17856,12 +17844,12 @@
|
|
|
17856
17844
|
}
|
|
17857
17845
|
}
|
|
17858
17846
|
},
|
|
17859
|
-
"/api/projects/{projectId}/
|
|
17860
|
-
"
|
|
17861
|
-
"operationId": "
|
|
17862
|
-
"summary": "
|
|
17863
|
-
"tags": ["
|
|
17864
|
-
"x-kosuke-command": ["sessions", "
|
|
17847
|
+
"/api/projects/{projectId}/labels/usage": {
|
|
17848
|
+
"get": {
|
|
17849
|
+
"operationId": "projectsLabelsSessionsList",
|
|
17850
|
+
"summary": "List the sessions carrying a Session Label, in every status including archived and completed, as { projectName, sessions: [{ id, title, status, pullRequestNumber }] }. Answers 404 when the project has no label by that name.",
|
|
17851
|
+
"tags": ["projects"],
|
|
17852
|
+
"x-kosuke-command": ["projects", "labels", "sessions", "list"],
|
|
17865
17853
|
"x-kosuke-sandbox-token": true,
|
|
17866
17854
|
"x-kosuke-cron-token": true,
|
|
17867
17855
|
"x-kosuke-sensei-token": true,
|
|
@@ -17877,40 +17865,19 @@
|
|
|
17877
17865
|
}
|
|
17878
17866
|
},
|
|
17879
17867
|
{
|
|
17880
|
-
"name": "
|
|
17881
|
-
"in": "
|
|
17868
|
+
"name": "name",
|
|
17869
|
+
"in": "query",
|
|
17882
17870
|
"required": true,
|
|
17871
|
+
"description": "The Session Label to look up, matched case-insensitively.",
|
|
17883
17872
|
"schema": {
|
|
17873
|
+
"description": "The Session Label to look up, matched case-insensitively.",
|
|
17884
17874
|
"type": "string",
|
|
17885
|
-
"
|
|
17886
|
-
"
|
|
17875
|
+
"minLength": 1,
|
|
17876
|
+
"maxLength": 50,
|
|
17877
|
+
"pattern": "^[^\\x00-\\x1f\\x7f]+$"
|
|
17887
17878
|
}
|
|
17888
17879
|
}
|
|
17889
17880
|
],
|
|
17890
|
-
"requestBody": {
|
|
17891
|
-
"required": true,
|
|
17892
|
-
"content": {
|
|
17893
|
-
"application/json": {
|
|
17894
|
-
"schema": {
|
|
17895
|
-
"type": "object",
|
|
17896
|
-
"properties": {
|
|
17897
|
-
"content": {
|
|
17898
|
-
"type": "string",
|
|
17899
|
-
"minLength": 1,
|
|
17900
|
-
"maxLength": 10000
|
|
17901
|
-
},
|
|
17902
|
-
"runningJobId": {
|
|
17903
|
-
"description": "The turn the sender meant to steer. Without it the latest turn stands in. A stopped turn answers delivery refused and nothing is sent.",
|
|
17904
|
-
"type": "string",
|
|
17905
|
-
"format": "uuid",
|
|
17906
|
-
"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)$"
|
|
17907
|
-
}
|
|
17908
|
-
},
|
|
17909
|
-
"required": ["content"]
|
|
17910
|
-
}
|
|
17911
|
-
}
|
|
17912
|
-
}
|
|
17913
|
-
},
|
|
17914
17881
|
"responses": {
|
|
17915
17882
|
"2XX": {
|
|
17916
17883
|
"description": "Success envelope",
|
|
@@ -17945,12 +17912,12 @@
|
|
|
17945
17912
|
}
|
|
17946
17913
|
}
|
|
17947
17914
|
},
|
|
17948
|
-
"/api/projects/{projectId}/
|
|
17915
|
+
"/api/projects/{projectId}/live/logs": {
|
|
17949
17916
|
"get": {
|
|
17950
|
-
"operationId": "
|
|
17951
|
-
"summary": "Read
|
|
17952
|
-
"tags": ["
|
|
17953
|
-
"x-kosuke-command": ["
|
|
17917
|
+
"operationId": "projectsLiveLogsList",
|
|
17918
|
+
"summary": "Read a published repository's recent log lines from Workers Logs.",
|
|
17919
|
+
"tags": ["projects"],
|
|
17920
|
+
"x-kosuke-command": ["projects", "live", "logs", "list"],
|
|
17954
17921
|
"x-kosuke-sandbox-token": true,
|
|
17955
17922
|
"x-kosuke-cron-token": true,
|
|
17956
17923
|
"x-kosuke-sensei-token": true,
|
|
@@ -17966,35 +17933,29 @@
|
|
|
17966
17933
|
}
|
|
17967
17934
|
},
|
|
17968
17935
|
{
|
|
17969
|
-
"name": "
|
|
17936
|
+
"name": "minutes",
|
|
17970
17937
|
"in": "query",
|
|
17971
17938
|
"required": false,
|
|
17972
|
-
"description": "
|
|
17939
|
+
"description": "How far back.",
|
|
17973
17940
|
"schema": {
|
|
17974
|
-
"
|
|
17941
|
+
"default": 60,
|
|
17942
|
+
"description": "How far back.",
|
|
17975
17943
|
"type": "integer",
|
|
17976
17944
|
"minimum": 1,
|
|
17977
|
-
"maximum":
|
|
17978
|
-
}
|
|
17979
|
-
},
|
|
17980
|
-
{
|
|
17981
|
-
"name": "before",
|
|
17982
|
-
"in": "query",
|
|
17983
|
-
"required": false,
|
|
17984
|
-
"description": "An olderCursor from an earlier read: only the messages older than the oldest message of that read.",
|
|
17985
|
-
"schema": {
|
|
17986
|
-
"description": "An olderCursor from an earlier read: only the messages older than the oldest message of that read.",
|
|
17987
|
-
"type": "string"
|
|
17945
|
+
"maximum": 1440
|
|
17988
17946
|
}
|
|
17989
17947
|
},
|
|
17990
17948
|
{
|
|
17991
|
-
"name": "
|
|
17949
|
+
"name": "limit",
|
|
17992
17950
|
"in": "query",
|
|
17993
17951
|
"required": false,
|
|
17994
|
-
"description": "
|
|
17952
|
+
"description": "At most this many lines.",
|
|
17995
17953
|
"schema": {
|
|
17996
|
-
"
|
|
17997
|
-
"
|
|
17954
|
+
"default": 100,
|
|
17955
|
+
"description": "At most this many lines.",
|
|
17956
|
+
"type": "integer",
|
|
17957
|
+
"minimum": 1,
|
|
17958
|
+
"maximum": 500
|
|
17998
17959
|
}
|
|
17999
17960
|
}
|
|
18000
17961
|
],
|
|
@@ -18032,12 +17993,12 @@
|
|
|
18032
17993
|
}
|
|
18033
17994
|
}
|
|
18034
17995
|
},
|
|
18035
|
-
"/api/projects/{projectId}/
|
|
18036
|
-
"
|
|
18037
|
-
"operationId": "
|
|
18038
|
-
"summary": "
|
|
18039
|
-
"tags": ["
|
|
18040
|
-
"x-kosuke-command": ["
|
|
17996
|
+
"/api/projects/{projectId}/live/query": {
|
|
17997
|
+
"post": {
|
|
17998
|
+
"operationId": "projectsLiveQueriesRun",
|
|
17999
|
+
"summary": "Run one read-only SQL statement against a published repository's live database and return at most 500 rows. Anything that writes is refused.",
|
|
18000
|
+
"tags": ["projects"],
|
|
18001
|
+
"x-kosuke-command": ["projects", "live", "queries", "run"],
|
|
18041
18002
|
"x-kosuke-sandbox-token": true,
|
|
18042
18003
|
"x-kosuke-cron-token": true,
|
|
18043
18004
|
"x-kosuke-sensei-token": true,
|
|
@@ -18051,29 +18012,27 @@
|
|
|
18051
18012
|
"format": "uuid",
|
|
18052
18013
|
"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)$"
|
|
18053
18014
|
}
|
|
18054
|
-
},
|
|
18055
|
-
{
|
|
18056
|
-
"name": "messageId",
|
|
18057
|
-
"in": "path",
|
|
18058
|
-
"required": true,
|
|
18059
|
-
"schema": {
|
|
18060
|
-
"type": "string",
|
|
18061
|
-
"format": "uuid",
|
|
18062
|
-
"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)$"
|
|
18063
|
-
}
|
|
18064
|
-
},
|
|
18065
|
-
{
|
|
18066
|
-
"name": "agentOutput",
|
|
18067
|
-
"in": "query",
|
|
18068
|
-
"required": false,
|
|
18069
|
-
"description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and subagent output as `kosuke deploys messages list` does; summary returns the blocks as stored, as `kosuke deploys messages list` does.",
|
|
18070
|
-
"schema": {
|
|
18071
|
-
"description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and subagent output as `kosuke deploys messages list` does; summary returns the blocks as stored, as `kosuke deploys messages list` does.",
|
|
18072
|
-
"type": "string",
|
|
18073
|
-
"enum": ["summary", "compact", "full"]
|
|
18074
|
-
}
|
|
18075
18015
|
}
|
|
18076
18016
|
],
|
|
18017
|
+
"requestBody": {
|
|
18018
|
+
"required": true,
|
|
18019
|
+
"content": {
|
|
18020
|
+
"application/json": {
|
|
18021
|
+
"schema": {
|
|
18022
|
+
"type": "object",
|
|
18023
|
+
"properties": {
|
|
18024
|
+
"sql": {
|
|
18025
|
+
"type": "string",
|
|
18026
|
+
"minLength": 1,
|
|
18027
|
+
"maxLength": 10000,
|
|
18028
|
+
"description": "One read-only statement: SELECT, WITH, EXPLAIN or a read PRAGMA."
|
|
18029
|
+
}
|
|
18030
|
+
},
|
|
18031
|
+
"required": ["sql"]
|
|
18032
|
+
}
|
|
18033
|
+
}
|
|
18034
|
+
}
|
|
18035
|
+
},
|
|
18077
18036
|
"responses": {
|
|
18078
18037
|
"2XX": {
|
|
18079
18038
|
"description": "Success envelope",
|
|
@@ -18108,12 +18067,12 @@
|
|
|
18108
18067
|
}
|
|
18109
18068
|
}
|
|
18110
18069
|
},
|
|
18111
|
-
"/api/projects/{projectId}/
|
|
18070
|
+
"/api/projects/{projectId}/live/traffic": {
|
|
18112
18071
|
"get": {
|
|
18113
|
-
"operationId": "
|
|
18114
|
-
"summary": "
|
|
18115
|
-
"tags": ["
|
|
18116
|
-
"x-kosuke-command": ["
|
|
18072
|
+
"operationId": "projectsLiveTrafficGet",
|
|
18073
|
+
"summary": "Read a published repository's request and error counts over the last hours, by status.",
|
|
18074
|
+
"tags": ["projects"],
|
|
18075
|
+
"x-kosuke-command": ["projects", "live", "traffic", "get"],
|
|
18117
18076
|
"x-kosuke-sandbox-token": true,
|
|
18118
18077
|
"x-kosuke-cron-token": true,
|
|
18119
18078
|
"x-kosuke-sensei-token": true,
|
|
@@ -18129,27 +18088,16 @@
|
|
|
18129
18088
|
}
|
|
18130
18089
|
},
|
|
18131
18090
|
{
|
|
18132
|
-
"name": "
|
|
18133
|
-
"in": "query",
|
|
18134
|
-
"required": false,
|
|
18135
|
-
"description": "1-based. Default 1.",
|
|
18136
|
-
"schema": {
|
|
18137
|
-
"description": "1-based. Default 1.",
|
|
18138
|
-
"type": "integer",
|
|
18139
|
-
"minimum": 1,
|
|
18140
|
-
"maximum": 9007199254740991
|
|
18141
|
-
}
|
|
18142
|
-
},
|
|
18143
|
-
{
|
|
18144
|
-
"name": "pageSize",
|
|
18091
|
+
"name": "hours",
|
|
18145
18092
|
"in": "query",
|
|
18146
18093
|
"required": false,
|
|
18147
|
-
"description": "
|
|
18094
|
+
"description": "How far back, in hours.",
|
|
18148
18095
|
"schema": {
|
|
18149
|
-
"
|
|
18096
|
+
"default": 24,
|
|
18097
|
+
"description": "How far back, in hours.",
|
|
18150
18098
|
"type": "integer",
|
|
18151
18099
|
"minimum": 1,
|
|
18152
|
-
"maximum":
|
|
18100
|
+
"maximum": 72
|
|
18153
18101
|
}
|
|
18154
18102
|
}
|
|
18155
18103
|
],
|
|
@@ -18187,13 +18135,12 @@
|
|
|
18187
18135
|
}
|
|
18188
18136
|
}
|
|
18189
18137
|
},
|
|
18190
|
-
"/api/projects/{projectId}/
|
|
18138
|
+
"/api/projects/{projectId}/merge-agent": {
|
|
18191
18139
|
"get": {
|
|
18192
|
-
"operationId": "
|
|
18193
|
-
"summary": "
|
|
18140
|
+
"operationId": "projectsMergeAgentGet",
|
|
18141
|
+
"summary": "Read the project's Merge agent: its mode (train, or off, where a new project starts), its goAhead and its qaLevel (scaleup or enterprise; waitForQa is deprecated and true only for enterprise), 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, each one's effective ship settings (shipQa, shipReview) and the QA it needs to merge (effectiveQaLevel scaleup, enterprise or null when its ship QA is off; qaLevelSource repository, runtime or qa-off; qaLevelReason), recorded head, stored review decision and state word (merged, waiting, failed or ready, the one the Tasks board shows), the order members pinned (memberOrder: each pinned pull request's position and who moved it, else null), 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.",
|
|
18194
18142
|
"tags": ["projects"],
|
|
18195
|
-
"x-kosuke-command": ["projects", "
|
|
18196
|
-
"x-kosuke-fields": ["name", "color"],
|
|
18143
|
+
"x-kosuke-command": ["projects", "merge-agent", "get"],
|
|
18197
18144
|
"x-kosuke-sandbox-token": true,
|
|
18198
18145
|
"x-kosuke-cron-token": true,
|
|
18199
18146
|
"x-kosuke-sensei-token": true,
|
|
@@ -18207,6 +18154,15 @@
|
|
|
18207
18154
|
"format": "uuid",
|
|
18208
18155
|
"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)$"
|
|
18209
18156
|
}
|
|
18157
|
+
},
|
|
18158
|
+
{
|
|
18159
|
+
"name": "live",
|
|
18160
|
+
"in": "query",
|
|
18161
|
+
"required": false,
|
|
18162
|
+
"schema": {
|
|
18163
|
+
"type": "string",
|
|
18164
|
+
"enum": ["true", "false"]
|
|
18165
|
+
}
|
|
18210
18166
|
}
|
|
18211
18167
|
],
|
|
18212
18168
|
"responses": {
|
|
@@ -18242,13 +18198,11 @@
|
|
|
18242
18198
|
}
|
|
18243
18199
|
}
|
|
18244
18200
|
},
|
|
18245
|
-
"
|
|
18246
|
-
"operationId": "
|
|
18247
|
-
"summary": "
|
|
18201
|
+
"put": {
|
|
18202
|
+
"operationId": "projectsMergeAgentSet",
|
|
18203
|
+
"summary": "Switch the Merge agent's mode, its Go-ahead or its QA level; 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; checks, a pull request a platform agent works on whose required checks pass on its latest commit, with QA as its level asks, has the go-ahead with nobody giving it. qaLevel scaleup (a new project's) or enterprise: what QA a pull request whose ship QA is on needs before it merges. Leaving train with checks takes back every go-ahead the checks gave; a stricter level takes back those it no longer allows. Switching to train starts a run for the go-ahead pull requests that wait. Members and their Sensei only.",
|
|
18248
18204
|
"tags": ["projects"],
|
|
18249
|
-
"x-kosuke-command": ["projects", "
|
|
18250
|
-
"x-kosuke-sandbox-token": true,
|
|
18251
|
-
"x-kosuke-cron-token": true,
|
|
18205
|
+
"x-kosuke-command": ["projects", "merge-agent", "set"],
|
|
18252
18206
|
"x-kosuke-sensei-token": true,
|
|
18253
18207
|
"parameters": [
|
|
18254
18208
|
{
|
|
@@ -18269,19 +18223,27 @@
|
|
|
18269
18223
|
"schema": {
|
|
18270
18224
|
"type": "object",
|
|
18271
18225
|
"properties": {
|
|
18272
|
-
"
|
|
18273
|
-
"description": "
|
|
18226
|
+
"mode": {
|
|
18227
|
+
"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.",
|
|
18274
18228
|
"type": "string",
|
|
18275
|
-
"
|
|
18276
|
-
"maxLength": 50,
|
|
18277
|
-
"pattern": "^[^\\x00-\\x1f\\x7f]+$"
|
|
18229
|
+
"enum": ["train", "off"]
|
|
18278
18230
|
},
|
|
18279
|
-
"
|
|
18280
|
-
"description": "
|
|
18281
|
-
"type": "string"
|
|
18231
|
+
"goAhead": {
|
|
18232
|
+
"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.",
|
|
18233
|
+
"type": "string",
|
|
18234
|
+
"enum": ["member", "checks"]
|
|
18235
|
+
},
|
|
18236
|
+
"qaLevel": {
|
|
18237
|
+
"description": "How much QA the merge train asks of a pull request whose ship QA is on. scaleup: QA passed once on the pull request, at any commit, counts, and a sync keeps it, unless main brought a runtime change (a migration, a dependency manifest or lockfile, a Dockerfile, the sandbox runtime) since. enterprise: QA must pass at the exact head, and every sync needs QA again. A task whose ship QA is off (`projects shipping set`, `sessions update --qa`) needs no QA to merge.",
|
|
18238
|
+
"type": "string",
|
|
18239
|
+
"enum": ["scaleup", "enterprise"]
|
|
18240
|
+
},
|
|
18241
|
+
"waitForQa": {
|
|
18242
|
+
"deprecated": true,
|
|
18243
|
+
"description": "Deprecated: send qaLevel (scaleup or enterprise) instead, with kosuke projects merge-agent set --qa-level. waitForQa true sets enterprise, false sets scaleup. Upgrade @kosuke-ai/kosuke (npm install -g @kosuke-ai/kosuke@latest).",
|
|
18244
|
+
"type": "boolean"
|
|
18282
18245
|
}
|
|
18283
|
-
}
|
|
18284
|
-
"required": ["name", "color"]
|
|
18246
|
+
}
|
|
18285
18247
|
}
|
|
18286
18248
|
}
|
|
18287
18249
|
}
|
|
@@ -18318,12 +18280,14 @@
|
|
|
18318
18280
|
}
|
|
18319
18281
|
}
|
|
18320
18282
|
}
|
|
18321
|
-
}
|
|
18322
|
-
|
|
18323
|
-
|
|
18324
|
-
|
|
18283
|
+
}
|
|
18284
|
+
},
|
|
18285
|
+
"/api/projects/{projectId}/merge-agent/ci-check": {
|
|
18286
|
+
"get": {
|
|
18287
|
+
"operationId": "projectsMergeAgentCiCheckGet",
|
|
18288
|
+
"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.",
|
|
18325
18289
|
"tags": ["projects"],
|
|
18326
|
-
"x-kosuke-command": ["projects", "
|
|
18290
|
+
"x-kosuke-command": ["projects", "merge-agent", "ci-check", "get"],
|
|
18327
18291
|
"x-kosuke-sandbox-token": true,
|
|
18328
18292
|
"x-kosuke-cron-token": true,
|
|
18329
18293
|
"x-kosuke-sensei-token": true,
|
|
@@ -18339,45 +18303,6 @@
|
|
|
18339
18303
|
}
|
|
18340
18304
|
}
|
|
18341
18305
|
],
|
|
18342
|
-
"requestBody": {
|
|
18343
|
-
"required": true,
|
|
18344
|
-
"content": {
|
|
18345
|
-
"application/json": {
|
|
18346
|
-
"schema": {
|
|
18347
|
-
"type": "object",
|
|
18348
|
-
"properties": {
|
|
18349
|
-
"name": {
|
|
18350
|
-
"description": "The Session Label to delete, matched case-insensitively.",
|
|
18351
|
-
"type": "string",
|
|
18352
|
-
"minLength": 1,
|
|
18353
|
-
"maxLength": 50,
|
|
18354
|
-
"pattern": "^[^\\x00-\\x1f\\x7f]+$"
|
|
18355
|
-
},
|
|
18356
|
-
"removeFromSessions": {
|
|
18357
|
-
"description": "Also remove the label from every session carrying it, archived and completed included, and resync their pull requests. Without it, deleting a label any session carries fails with 409 and lists them.",
|
|
18358
|
-
"type": "boolean"
|
|
18359
|
-
},
|
|
18360
|
-
"expectedSessionCount": {
|
|
18361
|
-
"description": "Fail with 409 when the number of sessions carrying the label changed.",
|
|
18362
|
-
"type": "integer",
|
|
18363
|
-
"minimum": 0,
|
|
18364
|
-
"maximum": 9007199254740991
|
|
18365
|
-
},
|
|
18366
|
-
"expectedSessionIds": {
|
|
18367
|
-
"description": "JSON array of the confirmed session IDs. Fail with 409 if the affected sessions changed, even when their count stayed the same.",
|
|
18368
|
-
"type": "array",
|
|
18369
|
-
"items": {
|
|
18370
|
-
"type": "string",
|
|
18371
|
-
"format": "uuid",
|
|
18372
|
-
"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)$"
|
|
18373
|
-
}
|
|
18374
|
-
}
|
|
18375
|
-
},
|
|
18376
|
-
"required": ["name"]
|
|
18377
|
-
}
|
|
18378
|
-
}
|
|
18379
|
-
}
|
|
18380
|
-
},
|
|
18381
18306
|
"responses": {
|
|
18382
18307
|
"2XX": {
|
|
18383
18308
|
"description": "Success envelope",
|
|
@@ -18412,15 +18337,12 @@
|
|
|
18412
18337
|
}
|
|
18413
18338
|
}
|
|
18414
18339
|
},
|
|
18415
|
-
"/api/projects/{projectId}/
|
|
18416
|
-
"
|
|
18417
|
-
"operationId": "
|
|
18418
|
-
"summary": "
|
|
18340
|
+
"/api/projects/{projectId}/merge-agent/ci-check/fix": {
|
|
18341
|
+
"post": {
|
|
18342
|
+
"operationId": "projectsMergeAgentCiCheckFixStart",
|
|
18343
|
+
"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.",
|
|
18419
18344
|
"tags": ["projects"],
|
|
18420
|
-
"x-kosuke-command": ["projects", "
|
|
18421
|
-
"x-kosuke-sandbox-token": true,
|
|
18422
|
-
"x-kosuke-cron-token": true,
|
|
18423
|
-
"x-kosuke-sensei-token": true,
|
|
18345
|
+
"x-kosuke-command": ["projects", "merge-agent", "ci-check", "fix", "start"],
|
|
18424
18346
|
"parameters": [
|
|
18425
18347
|
{
|
|
18426
18348
|
"name": "projectId",
|
|
@@ -18431,19 +18353,6 @@
|
|
|
18431
18353
|
"format": "uuid",
|
|
18432
18354
|
"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)$"
|
|
18433
18355
|
}
|
|
18434
|
-
},
|
|
18435
|
-
{
|
|
18436
|
-
"name": "name",
|
|
18437
|
-
"in": "query",
|
|
18438
|
-
"required": true,
|
|
18439
|
-
"description": "The Session Label to look up, matched case-insensitively.",
|
|
18440
|
-
"schema": {
|
|
18441
|
-
"description": "The Session Label to look up, matched case-insensitively.",
|
|
18442
|
-
"type": "string",
|
|
18443
|
-
"minLength": 1,
|
|
18444
|
-
"maxLength": 50,
|
|
18445
|
-
"pattern": "^[^\\x00-\\x1f\\x7f]+$"
|
|
18446
|
-
}
|
|
18447
18356
|
}
|
|
18448
18357
|
],
|
|
18449
18358
|
"responses": {
|
|
@@ -18480,12 +18389,12 @@
|
|
|
18480
18389
|
}
|
|
18481
18390
|
}
|
|
18482
18391
|
},
|
|
18483
|
-
"/api/projects/{projectId}/
|
|
18484
|
-
"
|
|
18485
|
-
"operationId": "
|
|
18486
|
-
"summary": "
|
|
18392
|
+
"/api/projects/{projectId}/merge-agent/finish": {
|
|
18393
|
+
"post": {
|
|
18394
|
+
"operationId": "projectsMergeAgentFinish",
|
|
18395
|
+
"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.",
|
|
18487
18396
|
"tags": ["projects"],
|
|
18488
|
-
"x-kosuke-command": ["projects", "
|
|
18397
|
+
"x-kosuke-command": ["projects", "merge-agent", "finish"],
|
|
18489
18398
|
"x-kosuke-sandbox-token": true,
|
|
18490
18399
|
"x-kosuke-cron-token": true,
|
|
18491
18400
|
"x-kosuke-sensei-token": true,
|
|
@@ -18499,34 +18408,27 @@
|
|
|
18499
18408
|
"format": "uuid",
|
|
18500
18409
|
"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)$"
|
|
18501
18410
|
}
|
|
18502
|
-
},
|
|
18503
|
-
{
|
|
18504
|
-
"name": "minutes",
|
|
18505
|
-
"in": "query",
|
|
18506
|
-
"required": false,
|
|
18507
|
-
"description": "How far back.",
|
|
18508
|
-
"schema": {
|
|
18509
|
-
"default": 60,
|
|
18510
|
-
"description": "How far back.",
|
|
18511
|
-
"type": "integer",
|
|
18512
|
-
"minimum": 1,
|
|
18513
|
-
"maximum": 1440
|
|
18514
|
-
}
|
|
18515
|
-
},
|
|
18516
|
-
{
|
|
18517
|
-
"name": "limit",
|
|
18518
|
-
"in": "query",
|
|
18519
|
-
"required": false,
|
|
18520
|
-
"description": "At most this many lines.",
|
|
18521
|
-
"schema": {
|
|
18522
|
-
"default": 100,
|
|
18523
|
-
"description": "At most this many lines.",
|
|
18524
|
-
"type": "integer",
|
|
18525
|
-
"minimum": 1,
|
|
18526
|
-
"maximum": 500
|
|
18527
|
-
}
|
|
18528
18411
|
}
|
|
18529
18412
|
],
|
|
18413
|
+
"requestBody": {
|
|
18414
|
+
"required": true,
|
|
18415
|
+
"content": {
|
|
18416
|
+
"application/json": {
|
|
18417
|
+
"schema": {
|
|
18418
|
+
"type": "object",
|
|
18419
|
+
"properties": {
|
|
18420
|
+
"reason": {
|
|
18421
|
+
"type": "string",
|
|
18422
|
+
"minLength": 1,
|
|
18423
|
+
"maxLength": 2000,
|
|
18424
|
+
"description": "What this run merged, or why it ends with nothing waiting."
|
|
18425
|
+
}
|
|
18426
|
+
},
|
|
18427
|
+
"required": ["reason"]
|
|
18428
|
+
}
|
|
18429
|
+
}
|
|
18430
|
+
}
|
|
18431
|
+
},
|
|
18530
18432
|
"responses": {
|
|
18531
18433
|
"2XX": {
|
|
18532
18434
|
"description": "Success envelope",
|
|
@@ -18561,14 +18463,12 @@
|
|
|
18561
18463
|
}
|
|
18562
18464
|
}
|
|
18563
18465
|
},
|
|
18564
|
-
"/api/projects/{projectId}/
|
|
18466
|
+
"/api/projects/{projectId}/merge-agent/member-order": {
|
|
18565
18467
|
"post": {
|
|
18566
|
-
"operationId": "
|
|
18567
|
-
"summary": "
|
|
18468
|
+
"operationId": "projectsMergeAgentOrderMove",
|
|
18469
|
+
"summary": "Move a waiting pull request to a place in the merge train's order, as a member: the member order (memberOrder in `kosuke projects merge-agent get`) pins every pull request from the top down to the one moved, ahead of the train's own ranking, with who moved it. Refused with 409 NOT_IN_QUEUE unless the pull request has a go-ahead and waits, open and unmerged, on the base. The merge train hears who moved it where. A pull request that merges or leaves drops out by itself. Members and their Sensei only.",
|
|
18568
18470
|
"tags": ["projects"],
|
|
18569
|
-
"x-kosuke-command": ["projects", "
|
|
18570
|
-
"x-kosuke-sandbox-token": true,
|
|
18571
|
-
"x-kosuke-cron-token": true,
|
|
18471
|
+
"x-kosuke-command": ["projects", "merge-agent", "order", "move"],
|
|
18572
18472
|
"x-kosuke-sensei-token": true,
|
|
18573
18473
|
"parameters": [
|
|
18574
18474
|
{
|
|
@@ -18589,14 +18489,20 @@
|
|
|
18589
18489
|
"schema": {
|
|
18590
18490
|
"type": "object",
|
|
18591
18491
|
"properties": {
|
|
18592
|
-
"
|
|
18593
|
-
"type": "
|
|
18594
|
-
"
|
|
18595
|
-
"
|
|
18596
|
-
"description": "
|
|
18492
|
+
"number": {
|
|
18493
|
+
"type": "integer",
|
|
18494
|
+
"exclusiveMinimum": 0,
|
|
18495
|
+
"maximum": 9007199254740991,
|
|
18496
|
+
"description": "The pull request to move: one with a go-ahead waiting in the merge train."
|
|
18497
|
+
},
|
|
18498
|
+
"to": {
|
|
18499
|
+
"type": "integer",
|
|
18500
|
+
"minimum": 1,
|
|
18501
|
+
"maximum": 200,
|
|
18502
|
+
"description": "Its place in the order shown, from 1 (Next). Past the end puts it last of the pinned ones."
|
|
18597
18503
|
}
|
|
18598
18504
|
},
|
|
18599
|
-
"required": ["
|
|
18505
|
+
"required": ["number", "to"]
|
|
18600
18506
|
}
|
|
18601
18507
|
}
|
|
18602
18508
|
}
|
|
@@ -18633,16 +18539,12 @@
|
|
|
18633
18539
|
}
|
|
18634
18540
|
}
|
|
18635
18541
|
}
|
|
18636
|
-
}
|
|
18637
|
-
|
|
18638
|
-
|
|
18639
|
-
|
|
18640
|
-
"operationId": "projectsLiveTrafficGet",
|
|
18641
|
-
"summary": "Read a published repository's request and error counts over the last hours, by status.",
|
|
18542
|
+
},
|
|
18543
|
+
"delete": {
|
|
18544
|
+
"operationId": "projectsMergeAgentOrderDelete",
|
|
18545
|
+
"summary": "Clear the member order of the project's base: the merge train ranks every waiting pull request itself again, and hears who cleared it. Answers null. Members and their Sensei only.",
|
|
18642
18546
|
"tags": ["projects"],
|
|
18643
|
-
"x-kosuke-command": ["projects", "
|
|
18644
|
-
"x-kosuke-sandbox-token": true,
|
|
18645
|
-
"x-kosuke-cron-token": true,
|
|
18547
|
+
"x-kosuke-command": ["projects", "merge-agent", "order", "delete"],
|
|
18646
18548
|
"x-kosuke-sensei-token": true,
|
|
18647
18549
|
"parameters": [
|
|
18648
18550
|
{
|
|
@@ -18654,19 +18556,6 @@
|
|
|
18654
18556
|
"format": "uuid",
|
|
18655
18557
|
"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)$"
|
|
18656
18558
|
}
|
|
18657
|
-
},
|
|
18658
|
-
{
|
|
18659
|
-
"name": "hours",
|
|
18660
|
-
"in": "query",
|
|
18661
|
-
"required": false,
|
|
18662
|
-
"description": "How far back, in hours.",
|
|
18663
|
-
"schema": {
|
|
18664
|
-
"default": 24,
|
|
18665
|
-
"description": "How far back, in hours.",
|
|
18666
|
-
"type": "integer",
|
|
18667
|
-
"minimum": 1,
|
|
18668
|
-
"maximum": 72
|
|
18669
|
-
}
|
|
18670
18559
|
}
|
|
18671
18560
|
],
|
|
18672
18561
|
"responses": {
|
|
@@ -18703,12 +18592,12 @@
|
|
|
18703
18592
|
}
|
|
18704
18593
|
}
|
|
18705
18594
|
},
|
|
18706
|
-
"/api/projects/{projectId}/merge-agent": {
|
|
18707
|
-
"
|
|
18708
|
-
"operationId": "
|
|
18709
|
-
"summary": "
|
|
18595
|
+
"/api/projects/{projectId}/merge-agent/model": {
|
|
18596
|
+
"put": {
|
|
18597
|
+
"operationId": "projectsMergeAgentModelSet",
|
|
18598
|
+
"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.",
|
|
18710
18599
|
"tags": ["projects"],
|
|
18711
|
-
"x-kosuke-command": ["projects", "merge-agent", "
|
|
18600
|
+
"x-kosuke-command": ["projects", "merge-agent", "model", "set"],
|
|
18712
18601
|
"x-kosuke-sandbox-token": true,
|
|
18713
18602
|
"x-kosuke-cron-token": true,
|
|
18714
18603
|
"x-kosuke-sensei-token": true,
|
|
@@ -18722,17 +18611,25 @@
|
|
|
18722
18611
|
"format": "uuid",
|
|
18723
18612
|
"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)$"
|
|
18724
18613
|
}
|
|
18725
|
-
},
|
|
18726
|
-
{
|
|
18727
|
-
"name": "live",
|
|
18728
|
-
"in": "query",
|
|
18729
|
-
"required": false,
|
|
18730
|
-
"schema": {
|
|
18731
|
-
"type": "string",
|
|
18732
|
-
"enum": ["true", "false"]
|
|
18733
|
-
}
|
|
18734
18614
|
}
|
|
18735
18615
|
],
|
|
18616
|
+
"requestBody": {
|
|
18617
|
+
"required": true,
|
|
18618
|
+
"content": {
|
|
18619
|
+
"application/json": {
|
|
18620
|
+
"schema": {
|
|
18621
|
+
"type": "object",
|
|
18622
|
+
"properties": {
|
|
18623
|
+
"model": {
|
|
18624
|
+
"type": "string",
|
|
18625
|
+
"minLength": 1
|
|
18626
|
+
}
|
|
18627
|
+
},
|
|
18628
|
+
"required": ["model"]
|
|
18629
|
+
}
|
|
18630
|
+
}
|
|
18631
|
+
}
|
|
18632
|
+
},
|
|
18736
18633
|
"responses": {
|
|
18737
18634
|
"2XX": {
|
|
18738
18635
|
"description": "Success envelope",
|
|
@@ -18765,12 +18662,16 @@
|
|
|
18765
18662
|
}
|
|
18766
18663
|
}
|
|
18767
18664
|
}
|
|
18768
|
-
}
|
|
18769
|
-
|
|
18770
|
-
|
|
18771
|
-
|
|
18665
|
+
}
|
|
18666
|
+
},
|
|
18667
|
+
"/api/projects/{projectId}/merge-agent/rate": {
|
|
18668
|
+
"get": {
|
|
18669
|
+
"operationId": "projectsMergeAgentRateGet",
|
|
18670
|
+
"summary": "Read the repository's merge rate: every pull request GitHub merged into the project's base (base), by the Merge agent's merge train or by people, a Kosuke session's member or anyone on GitHub. last24h and prev24h: the rolling 24 hours up to now and the 24 before, each with total, byAgent (the merge train's: merged as the Kosuke GitHub App, or landed by GitHub's merge queue for a train run) and perHour. hourly: the 24 UTC clock hours up to the current one; daily: the 7 calendar days of tz (an IANA time zone, UTC by default; timeZone echoes it as Intl spells it) up to today there, each with its date, byAgent and byPeople. Kosuke records every merge from GitHub's webhook; backfilled false: the merges of the last 30 days before that are still being read from GitHub, once per project, and the counts may miss some. backfillBlocked says why that read cannot run now: no_repository (no GitHub repository linked yet; it runs once one is) installation_lost (the Kosuke GitHub App's installation is lost) or repository_unreachable (GitHub could not find or read the repository); the last two are tried again within the hour. Else null. This read makes no GitHub call. 400 on an unknown time zone.",
|
|
18772
18671
|
"tags": ["projects"],
|
|
18773
|
-
"x-kosuke-command": ["projects", "merge-agent", "
|
|
18672
|
+
"x-kosuke-command": ["projects", "merge-agent", "rate", "get"],
|
|
18673
|
+
"x-kosuke-sandbox-token": true,
|
|
18674
|
+
"x-kosuke-cron-token": true,
|
|
18774
18675
|
"x-kosuke-sensei-token": true,
|
|
18775
18676
|
"parameters": [
|
|
18776
18677
|
{
|
|
@@ -18782,40 +18683,19 @@
|
|
|
18782
18683
|
"format": "uuid",
|
|
18783
18684
|
"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)$"
|
|
18784
18685
|
}
|
|
18785
|
-
}
|
|
18786
|
-
|
|
18787
|
-
|
|
18788
|
-
|
|
18789
|
-
|
|
18790
|
-
"
|
|
18791
|
-
|
|
18792
|
-
|
|
18793
|
-
|
|
18794
|
-
|
|
18795
|
-
"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.",
|
|
18796
|
-
"type": "string",
|
|
18797
|
-
"enum": ["train", "off"]
|
|
18798
|
-
},
|
|
18799
|
-
"goAhead": {
|
|
18800
|
-
"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.",
|
|
18801
|
-
"type": "string",
|
|
18802
|
-
"enum": ["member", "checks"]
|
|
18803
|
-
},
|
|
18804
|
-
"qaLevel": {
|
|
18805
|
-
"description": "How much QA the merge train asks of a pull request whose ship QA is on. scaleup: QA passed once on the pull request, at any commit, counts, and a sync keeps it, unless main brought a runtime change (a migration, a dependency manifest or lockfile, a Dockerfile, the sandbox runtime) since. enterprise: QA must pass at the exact head, and every sync needs QA again. A task whose ship QA is off (`projects shipping set`, `sessions update --qa`) needs no QA to merge.",
|
|
18806
|
-
"type": "string",
|
|
18807
|
-
"enum": ["scaleup", "enterprise"]
|
|
18808
|
-
},
|
|
18809
|
-
"waitForQa": {
|
|
18810
|
-
"deprecated": true,
|
|
18811
|
-
"description": "Deprecated: send qaLevel (scaleup or enterprise) instead, with kosuke projects merge-agent set --qa-level. waitForQa true sets enterprise, false sets scaleup. Upgrade @kosuke-ai/kosuke (npm install -g @kosuke-ai/kosuke@latest).",
|
|
18812
|
-
"type": "boolean"
|
|
18813
|
-
}
|
|
18814
|
-
}
|
|
18815
|
-
}
|
|
18686
|
+
},
|
|
18687
|
+
{
|
|
18688
|
+
"name": "tz",
|
|
18689
|
+
"in": "query",
|
|
18690
|
+
"required": false,
|
|
18691
|
+
"description": "IANA time zone whose calendar days daily counts. Default: UTC; the web app and the kosuke CLI send your own timezone.",
|
|
18692
|
+
"schema": {
|
|
18693
|
+
"default": "UTC",
|
|
18694
|
+
"description": "IANA time zone whose calendar days daily counts. Default: UTC; the web app and the kosuke CLI send your own timezone.",
|
|
18695
|
+
"type": "string"
|
|
18816
18696
|
}
|
|
18817
18697
|
}
|
|
18818
|
-
|
|
18698
|
+
],
|
|
18819
18699
|
"responses": {
|
|
18820
18700
|
"2XX": {
|
|
18821
18701
|
"description": "Success envelope",
|
|
@@ -18850,12 +18730,12 @@
|
|
|
18850
18730
|
}
|
|
18851
18731
|
}
|
|
18852
18732
|
},
|
|
18853
|
-
"/api/projects/{projectId}/merge-agent/
|
|
18854
|
-
"
|
|
18855
|
-
"operationId": "
|
|
18856
|
-
"summary": "
|
|
18733
|
+
"/api/projects/{projectId}/merge-agent/retry": {
|
|
18734
|
+
"post": {
|
|
18735
|
+
"operationId": "projectsMergeAgentRetry",
|
|
18736
|
+
"summary": "Retry the open Merge agent run's last Turn now, when it failed: sends its message again into the run's session. A Turn that failed on its Provider (billing, rate limit, overloaded, server error, authentication) is retried by Kosuke after 5, 15 and 30 minutes; after those it stops until this retry. Any project member may retry.",
|
|
18857
18737
|
"tags": ["projects"],
|
|
18858
|
-
"x-kosuke-command": ["projects", "merge-agent", "
|
|
18738
|
+
"x-kosuke-command": ["projects", "merge-agent", "retry"],
|
|
18859
18739
|
"x-kosuke-sandbox-token": true,
|
|
18860
18740
|
"x-kosuke-cron-token": true,
|
|
18861
18741
|
"x-kosuke-sensei-token": true,
|
|
@@ -18905,12 +18785,15 @@
|
|
|
18905
18785
|
}
|
|
18906
18786
|
}
|
|
18907
18787
|
},
|
|
18908
|
-
"/api/projects/{projectId}/merge-agent/
|
|
18909
|
-
"
|
|
18910
|
-
"operationId": "
|
|
18911
|
-
"summary": "
|
|
18788
|
+
"/api/projects/{projectId}/merge-agent/runs": {
|
|
18789
|
+
"get": {
|
|
18790
|
+
"operationId": "projectsMergeAgentRunsList",
|
|
18791
|
+
"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, outcome (merged, nothing_to_merge, refused or failed; null while it runs), finish reason and dates (mergedAt: its last merge). Pass nextCursor back as cursor for the older runs. The runs' sessions stay out of the session lists.",
|
|
18912
18792
|
"tags": ["projects"],
|
|
18913
|
-
"x-kosuke-command": ["projects", "merge-agent", "
|
|
18793
|
+
"x-kosuke-command": ["projects", "merge-agent", "runs", "list"],
|
|
18794
|
+
"x-kosuke-sandbox-token": true,
|
|
18795
|
+
"x-kosuke-cron-token": true,
|
|
18796
|
+
"x-kosuke-sensei-token": true,
|
|
18914
18797
|
"parameters": [
|
|
18915
18798
|
{
|
|
18916
18799
|
"name": "projectId",
|
|
@@ -18921,6 +18804,29 @@
|
|
|
18921
18804
|
"format": "uuid",
|
|
18922
18805
|
"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)$"
|
|
18923
18806
|
}
|
|
18807
|
+
},
|
|
18808
|
+
{
|
|
18809
|
+
"name": "limit",
|
|
18810
|
+
"in": "query",
|
|
18811
|
+
"required": false,
|
|
18812
|
+
"description": "At most this many runs. Default 25, at most 100.",
|
|
18813
|
+
"schema": {
|
|
18814
|
+
"description": "At most this many runs. Default 25, at most 100.",
|
|
18815
|
+
"type": "integer",
|
|
18816
|
+
"minimum": 1,
|
|
18817
|
+
"maximum": 100
|
|
18818
|
+
}
|
|
18819
|
+
},
|
|
18820
|
+
{
|
|
18821
|
+
"name": "cursor",
|
|
18822
|
+
"in": "query",
|
|
18823
|
+
"required": false,
|
|
18824
|
+
"description": "The nextCursor of the previous page, for the older runs after it.",
|
|
18825
|
+
"schema": {
|
|
18826
|
+
"description": "The nextCursor of the previous page, for the older runs after it.",
|
|
18827
|
+
"type": "string",
|
|
18828
|
+
"pattern": "^\\d{1,10}$"
|
|
18829
|
+
}
|
|
18924
18830
|
}
|
|
18925
18831
|
],
|
|
18926
18832
|
"responses": {
|
|
@@ -18957,12 +18863,12 @@
|
|
|
18957
18863
|
}
|
|
18958
18864
|
}
|
|
18959
18865
|
},
|
|
18960
|
-
"/api/projects/{projectId}/merge-agent/
|
|
18866
|
+
"/api/projects/{projectId}/merge-agent/syncs": {
|
|
18961
18867
|
"post": {
|
|
18962
|
-
"operationId": "
|
|
18963
|
-
"summary": "The open
|
|
18868
|
+
"operationId": "projectsMergeAgentSync",
|
|
18869
|
+
"summary": "The open Merge agent run's own session only: bring the run's base into an open pull request's branch as the Kosuke GitHub App, as GitHub's Update branch does. A conflict is refused with GitHub's words.",
|
|
18964
18870
|
"tags": ["projects"],
|
|
18965
|
-
"x-kosuke-command": ["projects", "merge-agent", "
|
|
18871
|
+
"x-kosuke-command": ["projects", "merge-agent", "sync"],
|
|
18966
18872
|
"x-kosuke-sandbox-token": true,
|
|
18967
18873
|
"x-kosuke-cron-token": true,
|
|
18968
18874
|
"x-kosuke-sensei-token": true,
|
|
@@ -18985,14 +18891,19 @@
|
|
|
18985
18891
|
"schema": {
|
|
18986
18892
|
"type": "object",
|
|
18987
18893
|
"properties": {
|
|
18988
|
-
"
|
|
18894
|
+
"number": {
|
|
18895
|
+
"type": "integer",
|
|
18896
|
+
"exclusiveMinimum": 0,
|
|
18897
|
+
"maximum": 9007199254740991,
|
|
18898
|
+
"description": "The pull request whose branch is behind."
|
|
18899
|
+
},
|
|
18900
|
+
"sha": {
|
|
18901
|
+
"description": "Update only while the head is this commit. Defaults to the head GitHub holds now.",
|
|
18989
18902
|
"type": "string",
|
|
18990
|
-
"
|
|
18991
|
-
"maxLength": 2000,
|
|
18992
|
-
"description": "What this run merged, or why it ends with nothing waiting."
|
|
18903
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
18993
18904
|
}
|
|
18994
18905
|
},
|
|
18995
|
-
"required": ["
|
|
18906
|
+
"required": ["number"]
|
|
18996
18907
|
}
|
|
18997
18908
|
}
|
|
18998
18909
|
}
|
|
@@ -19031,12 +18942,14 @@
|
|
|
19031
18942
|
}
|
|
19032
18943
|
}
|
|
19033
18944
|
},
|
|
19034
|
-
"/api/projects/{projectId}/
|
|
19035
|
-
"
|
|
19036
|
-
"operationId": "
|
|
19037
|
-
"summary": "
|
|
19038
|
-
"tags": ["
|
|
19039
|
-
"x-kosuke-command": ["
|
|
18945
|
+
"/api/projects/{projectId}/preview": {
|
|
18946
|
+
"get": {
|
|
18947
|
+
"operationId": "previewGet",
|
|
18948
|
+
"summary": "Read the preview URLs of the project's main sandbox, or of one chat session's. Starts a paused or missing sandbox in the background; poll health until it is up.",
|
|
18949
|
+
"tags": ["preview"],
|
|
18950
|
+
"x-kosuke-command": ["preview", "get"],
|
|
18951
|
+
"x-kosuke-sandbox-token": true,
|
|
18952
|
+
"x-kosuke-cron-token": true,
|
|
19040
18953
|
"x-kosuke-sensei-token": true,
|
|
19041
18954
|
"parameters": [
|
|
19042
18955
|
{
|
|
@@ -19048,33 +18961,31 @@
|
|
|
19048
18961
|
"format": "uuid",
|
|
19049
18962
|
"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)$"
|
|
19050
18963
|
}
|
|
19051
|
-
}
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
"
|
|
19057
|
-
|
|
19058
|
-
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19068
|
-
|
|
19069
|
-
|
|
19070
|
-
|
|
19071
|
-
|
|
19072
|
-
|
|
19073
|
-
"required": ["number", "to"]
|
|
19074
|
-
}
|
|
18964
|
+
},
|
|
18965
|
+
{
|
|
18966
|
+
"name": "sessionId",
|
|
18967
|
+
"in": "query",
|
|
18968
|
+
"required": false,
|
|
18969
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
18970
|
+
"schema": {
|
|
18971
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
18972
|
+
"type": "string",
|
|
18973
|
+
"format": "uuid",
|
|
18974
|
+
"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)$"
|
|
18975
|
+
}
|
|
18976
|
+
},
|
|
18977
|
+
{
|
|
18978
|
+
"name": "services",
|
|
18979
|
+
"in": "query",
|
|
18980
|
+
"required": false,
|
|
18981
|
+
"description": "The main preview only, when its sandbox runs: wait for its services to answer (wait), or restart them first (restart). A failure shows on health's startFailure; a paused or missing main is started as without it.",
|
|
18982
|
+
"schema": {
|
|
18983
|
+
"description": "The main preview only, when its sandbox runs: wait for its services to answer (wait), or restart them first (restart). A failure shows on health's startFailure; a paused or missing main is started as without it.",
|
|
18984
|
+
"type": "string",
|
|
18985
|
+
"enum": ["wait", "restart"]
|
|
19075
18986
|
}
|
|
19076
18987
|
}
|
|
19077
|
-
|
|
18988
|
+
],
|
|
19078
18989
|
"responses": {
|
|
19079
18990
|
"2XX": {
|
|
19080
18991
|
"description": "Success envelope",
|
|
@@ -19107,12 +19018,16 @@
|
|
|
19107
19018
|
}
|
|
19108
19019
|
}
|
|
19109
19020
|
}
|
|
19110
|
-
}
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
"
|
|
19115
|
-
"
|
|
19021
|
+
}
|
|
19022
|
+
},
|
|
19023
|
+
"/api/projects/{projectId}/preview/health": {
|
|
19024
|
+
"get": {
|
|
19025
|
+
"operationId": "previewHealthGet",
|
|
19026
|
+
"summary": "Read the health of every service behind a preview, and whether a background start is running or failed.",
|
|
19027
|
+
"tags": ["preview"],
|
|
19028
|
+
"x-kosuke-command": ["preview", "health", "get"],
|
|
19029
|
+
"x-kosuke-sandbox-token": true,
|
|
19030
|
+
"x-kosuke-cron-token": true,
|
|
19116
19031
|
"x-kosuke-sensei-token": true,
|
|
19117
19032
|
"parameters": [
|
|
19118
19033
|
{
|
|
@@ -19124,6 +19039,18 @@
|
|
|
19124
19039
|
"format": "uuid",
|
|
19125
19040
|
"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)$"
|
|
19126
19041
|
}
|
|
19042
|
+
},
|
|
19043
|
+
{
|
|
19044
|
+
"name": "sessionId",
|
|
19045
|
+
"in": "query",
|
|
19046
|
+
"required": false,
|
|
19047
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19048
|
+
"schema": {
|
|
19049
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19050
|
+
"type": "string",
|
|
19051
|
+
"format": "uuid",
|
|
19052
|
+
"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)$"
|
|
19053
|
+
}
|
|
19127
19054
|
}
|
|
19128
19055
|
],
|
|
19129
19056
|
"responses": {
|
|
@@ -19160,14 +19087,12 @@
|
|
|
19160
19087
|
}
|
|
19161
19088
|
}
|
|
19162
19089
|
},
|
|
19163
|
-
"/api/projects/{projectId}/
|
|
19164
|
-
"
|
|
19165
|
-
"operationId": "
|
|
19166
|
-
"summary": "
|
|
19167
|
-
"tags": ["
|
|
19168
|
-
"x-kosuke-command": ["
|
|
19169
|
-
"x-kosuke-sandbox-token": true,
|
|
19170
|
-
"x-kosuke-cron-token": true,
|
|
19090
|
+
"/api/projects/{projectId}/preview/sandbox/reset": {
|
|
19091
|
+
"post": {
|
|
19092
|
+
"operationId": "previewSandboxReset",
|
|
19093
|
+
"summary": "Kill a sandbox that is stuck or crashed and does not recover by itself (not a slow preview), paused or unreachable included; the platform creates a new one. Uncommitted work and the agent's memory of the chat are lost, so an agent first asks the member on a card saying so and runs it only once they approve; an Event Turn or a teammate's message is never that approval.",
|
|
19094
|
+
"tags": ["preview"],
|
|
19095
|
+
"x-kosuke-command": ["preview", "sandbox", "reset"],
|
|
19171
19096
|
"x-kosuke-sensei-token": true,
|
|
19172
19097
|
"parameters": [
|
|
19173
19098
|
{
|
|
@@ -19188,12 +19113,10 @@
|
|
|
19188
19113
|
"schema": {
|
|
19189
19114
|
"type": "object",
|
|
19190
19115
|
"properties": {
|
|
19191
|
-
"
|
|
19192
|
-
"type": "string"
|
|
19193
|
-
|
|
19194
|
-
|
|
19195
|
-
},
|
|
19196
|
-
"required": ["model"]
|
|
19116
|
+
"sessionId": {
|
|
19117
|
+
"type": "string"
|
|
19118
|
+
}
|
|
19119
|
+
}
|
|
19197
19120
|
}
|
|
19198
19121
|
}
|
|
19199
19122
|
}
|
|
@@ -19232,12 +19155,12 @@
|
|
|
19232
19155
|
}
|
|
19233
19156
|
}
|
|
19234
19157
|
},
|
|
19235
|
-
"/api/projects/{projectId}/
|
|
19158
|
+
"/api/projects/{projectId}/preview/share": {
|
|
19236
19159
|
"get": {
|
|
19237
|
-
"operationId": "
|
|
19238
|
-
"summary": "Read the
|
|
19239
|
-
"tags": ["
|
|
19240
|
-
"x-kosuke-command": ["
|
|
19160
|
+
"operationId": "previewShareGet",
|
|
19161
|
+
"summary": "Read the public share link of a preview, if one exists.",
|
|
19162
|
+
"tags": ["preview"],
|
|
19163
|
+
"x-kosuke-command": ["preview", "share", "get"],
|
|
19241
19164
|
"x-kosuke-sandbox-token": true,
|
|
19242
19165
|
"x-kosuke-cron-token": true,
|
|
19243
19166
|
"x-kosuke-sensei-token": true,
|
|
@@ -19253,14 +19176,15 @@
|
|
|
19253
19176
|
}
|
|
19254
19177
|
},
|
|
19255
19178
|
{
|
|
19256
|
-
"name": "
|
|
19179
|
+
"name": "sessionId",
|
|
19257
19180
|
"in": "query",
|
|
19258
19181
|
"required": false,
|
|
19259
|
-
"description": "
|
|
19182
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19260
19183
|
"schema": {
|
|
19261
|
-
"
|
|
19262
|
-
"
|
|
19263
|
-
"
|
|
19184
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19185
|
+
"type": "string",
|
|
19186
|
+
"format": "uuid",
|
|
19187
|
+
"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)$"
|
|
19264
19188
|
}
|
|
19265
19189
|
}
|
|
19266
19190
|
],
|
|
@@ -19296,14 +19220,12 @@
|
|
|
19296
19220
|
}
|
|
19297
19221
|
}
|
|
19298
19222
|
}
|
|
19299
|
-
}
|
|
19300
|
-
},
|
|
19301
|
-
"/api/projects/{projectId}/merge-agent/retry": {
|
|
19223
|
+
},
|
|
19302
19224
|
"post": {
|
|
19303
|
-
"operationId": "
|
|
19304
|
-
"summary": "
|
|
19305
|
-
"tags": ["
|
|
19306
|
-
"x-kosuke-command": ["
|
|
19225
|
+
"operationId": "previewShareCreate",
|
|
19226
|
+
"summary": "Create the public share link of a preview. The body sessionId wins over the query one.",
|
|
19227
|
+
"tags": ["preview"],
|
|
19228
|
+
"x-kosuke-command": ["preview", "share", "create"],
|
|
19307
19229
|
"x-kosuke-sandbox-token": true,
|
|
19308
19230
|
"x-kosuke-cron-token": true,
|
|
19309
19231
|
"x-kosuke-sensei-token": true,
|
|
@@ -19317,8 +19239,44 @@
|
|
|
19317
19239
|
"format": "uuid",
|
|
19318
19240
|
"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)$"
|
|
19319
19241
|
}
|
|
19242
|
+
},
|
|
19243
|
+
{
|
|
19244
|
+
"name": "sessionId",
|
|
19245
|
+
"in": "query",
|
|
19246
|
+
"required": false,
|
|
19247
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19248
|
+
"schema": {
|
|
19249
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19250
|
+
"type": "string",
|
|
19251
|
+
"format": "uuid",
|
|
19252
|
+
"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)$"
|
|
19253
|
+
}
|
|
19320
19254
|
}
|
|
19321
19255
|
],
|
|
19256
|
+
"requestBody": {
|
|
19257
|
+
"required": false,
|
|
19258
|
+
"content": {
|
|
19259
|
+
"application/json": {
|
|
19260
|
+
"schema": {
|
|
19261
|
+
"type": "object",
|
|
19262
|
+
"properties": {
|
|
19263
|
+
"sessionId": {
|
|
19264
|
+
"anyOf": [
|
|
19265
|
+
{
|
|
19266
|
+
"type": "string",
|
|
19267
|
+
"format": "uuid",
|
|
19268
|
+
"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)$"
|
|
19269
|
+
},
|
|
19270
|
+
{
|
|
19271
|
+
"type": "null"
|
|
19272
|
+
}
|
|
19273
|
+
]
|
|
19274
|
+
}
|
|
19275
|
+
}
|
|
19276
|
+
}
|
|
19277
|
+
}
|
|
19278
|
+
}
|
|
19279
|
+
},
|
|
19322
19280
|
"responses": {
|
|
19323
19281
|
"2XX": {
|
|
19324
19282
|
"description": "Success envelope",
|
|
@@ -19351,14 +19309,12 @@
|
|
|
19351
19309
|
}
|
|
19352
19310
|
}
|
|
19353
19311
|
}
|
|
19354
|
-
}
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
"
|
|
19359
|
-
"
|
|
19360
|
-
"tags": ["projects"],
|
|
19361
|
-
"x-kosuke-command": ["projects", "merge-agent", "runs", "list"],
|
|
19312
|
+
},
|
|
19313
|
+
"delete": {
|
|
19314
|
+
"operationId": "previewShareDelete",
|
|
19315
|
+
"summary": "Revoke the public share link of a preview.",
|
|
19316
|
+
"tags": ["preview"],
|
|
19317
|
+
"x-kosuke-command": ["preview", "share", "delete"],
|
|
19362
19318
|
"x-kosuke-sandbox-token": true,
|
|
19363
19319
|
"x-kosuke-cron-token": true,
|
|
19364
19320
|
"x-kosuke-sensei-token": true,
|
|
@@ -19374,26 +19330,15 @@
|
|
|
19374
19330
|
}
|
|
19375
19331
|
},
|
|
19376
19332
|
{
|
|
19377
|
-
"name": "
|
|
19378
|
-
"in": "query",
|
|
19379
|
-
"required": false,
|
|
19380
|
-
"description": "At most this many runs. Default 25, at most 100.",
|
|
19381
|
-
"schema": {
|
|
19382
|
-
"description": "At most this many runs. Default 25, at most 100.",
|
|
19383
|
-
"type": "integer",
|
|
19384
|
-
"minimum": 1,
|
|
19385
|
-
"maximum": 100
|
|
19386
|
-
}
|
|
19387
|
-
},
|
|
19388
|
-
{
|
|
19389
|
-
"name": "cursor",
|
|
19333
|
+
"name": "sessionId",
|
|
19390
19334
|
"in": "query",
|
|
19391
19335
|
"required": false,
|
|
19392
|
-
"description": "
|
|
19336
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19393
19337
|
"schema": {
|
|
19394
|
-
"description": "
|
|
19338
|
+
"description": "A chat session's preview instead of the project's main one.",
|
|
19395
19339
|
"type": "string",
|
|
19396
|
-
"
|
|
19340
|
+
"format": "uuid",
|
|
19341
|
+
"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)$"
|
|
19397
19342
|
}
|
|
19398
19343
|
}
|
|
19399
19344
|
],
|
|
@@ -19431,12 +19376,12 @@
|
|
|
19431
19376
|
}
|
|
19432
19377
|
}
|
|
19433
19378
|
},
|
|
19434
|
-
"/api/projects/{projectId}/
|
|
19435
|
-
"
|
|
19436
|
-
"operationId": "
|
|
19437
|
-
"summary": "
|
|
19379
|
+
"/api/projects/{projectId}/releases": {
|
|
19380
|
+
"get": {
|
|
19381
|
+
"operationId": "projectsReleasesList",
|
|
19382
|
+
"summary": "List a repository's Releases, newest first: the Version each published, its status (publishing, live, superseded or failed), and whether it changed the database schema.",
|
|
19438
19383
|
"tags": ["projects"],
|
|
19439
|
-
"x-kosuke-command": ["projects", "
|
|
19384
|
+
"x-kosuke-command": ["projects", "releases", "list"],
|
|
19440
19385
|
"x-kosuke-sandbox-token": true,
|
|
19441
19386
|
"x-kosuke-cron-token": true,
|
|
19442
19387
|
"x-kosuke-sensei-token": true,
|
|
@@ -19452,30 +19397,6 @@
|
|
|
19452
19397
|
}
|
|
19453
19398
|
}
|
|
19454
19399
|
],
|
|
19455
|
-
"requestBody": {
|
|
19456
|
-
"required": true,
|
|
19457
|
-
"content": {
|
|
19458
|
-
"application/json": {
|
|
19459
|
-
"schema": {
|
|
19460
|
-
"type": "object",
|
|
19461
|
-
"properties": {
|
|
19462
|
-
"number": {
|
|
19463
|
-
"type": "integer",
|
|
19464
|
-
"exclusiveMinimum": 0,
|
|
19465
|
-
"maximum": 9007199254740991,
|
|
19466
|
-
"description": "The pull request whose branch is behind."
|
|
19467
|
-
},
|
|
19468
|
-
"sha": {
|
|
19469
|
-
"description": "Update only while the head is this commit. Defaults to the head GitHub holds now.",
|
|
19470
|
-
"type": "string",
|
|
19471
|
-
"pattern": "^[0-9a-f]{40}$"
|
|
19472
|
-
}
|
|
19473
|
-
},
|
|
19474
|
-
"required": ["number"]
|
|
19475
|
-
}
|
|
19476
|
-
}
|
|
19477
|
-
}
|
|
19478
|
-
},
|
|
19479
19400
|
"responses": {
|
|
19480
19401
|
"2XX": {
|
|
19481
19402
|
"description": "Success envelope",
|
|
@@ -19510,12 +19431,12 @@
|
|
|
19510
19431
|
}
|
|
19511
19432
|
}
|
|
19512
19433
|
},
|
|
19513
|
-
"/api/projects/{projectId}/
|
|
19434
|
+
"/api/projects/{projectId}/settings": {
|
|
19514
19435
|
"get": {
|
|
19515
|
-
"operationId": "
|
|
19516
|
-
"summary": "Read the
|
|
19517
|
-
"tags": ["
|
|
19518
|
-
"x-kosuke-command": ["
|
|
19436
|
+
"operationId": "projectsSettingsGet",
|
|
19437
|
+
"summary": "Read the project settings: setup commands, services, environment and sandbox size. Every project member reads them. --values false leaves every environment variable value empty: their names only. A secret's value reaches only a member's own browser session or API key, never Sensei or another agent. canEdit says whether the caller may change them; Sensei passes --card with the card its member approved.",
|
|
19438
|
+
"tags": ["projects"],
|
|
19439
|
+
"x-kosuke-command": ["projects", "settings", "get"],
|
|
19519
19440
|
"x-kosuke-sandbox-token": true,
|
|
19520
19441
|
"x-kosuke-cron-token": true,
|
|
19521
19442
|
"x-kosuke-sensei-token": true,
|
|
@@ -19531,26 +19452,24 @@
|
|
|
19531
19452
|
}
|
|
19532
19453
|
},
|
|
19533
19454
|
{
|
|
19534
|
-
"name": "
|
|
19455
|
+
"name": "card",
|
|
19535
19456
|
"in": "query",
|
|
19536
19457
|
"required": false,
|
|
19537
|
-
"description": "
|
|
19458
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19538
19459
|
"schema": {
|
|
19539
|
-
"description": "
|
|
19460
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19540
19461
|
"type": "string",
|
|
19541
19462
|
"format": "uuid",
|
|
19542
19463
|
"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)$"
|
|
19543
19464
|
}
|
|
19544
19465
|
},
|
|
19545
19466
|
{
|
|
19546
|
-
"name": "
|
|
19467
|
+
"name": "values",
|
|
19547
19468
|
"in": "query",
|
|
19548
19469
|
"required": false,
|
|
19549
|
-
"description": "The main preview only, when its sandbox runs: wait for its services to answer (wait), or restart them first (restart). A failure shows on health's startFailure; a paused or missing main is started as without it.",
|
|
19550
19470
|
"schema": {
|
|
19551
|
-
"description": "The main preview only, when its sandbox runs: wait for its services to answer (wait), or restart them first (restart). A failure shows on health's startFailure; a paused or missing main is started as without it.",
|
|
19552
19471
|
"type": "string",
|
|
19553
|
-
"enum": ["
|
|
19472
|
+
"enum": ["true", "false"]
|
|
19554
19473
|
}
|
|
19555
19474
|
}
|
|
19556
19475
|
],
|
|
@@ -19586,16 +19505,12 @@
|
|
|
19586
19505
|
}
|
|
19587
19506
|
}
|
|
19588
19507
|
}
|
|
19589
|
-
}
|
|
19590
|
-
|
|
19591
|
-
|
|
19592
|
-
|
|
19593
|
-
"
|
|
19594
|
-
"
|
|
19595
|
-
"tags": ["preview"],
|
|
19596
|
-
"x-kosuke-command": ["preview", "health", "get"],
|
|
19597
|
-
"x-kosuke-sandbox-token": true,
|
|
19598
|
-
"x-kosuke-cron-token": true,
|
|
19508
|
+
},
|
|
19509
|
+
"patch": {
|
|
19510
|
+
"operationId": "projectsSettingsUpdate",
|
|
19511
|
+
"summary": "Change setup commands, branches, working directory, sandbox tier, the Project QA Guide or deviceWritePaths, the device folders a Chat Session may write. Only a workspace admin, in the browser, changes setup commands, branches, working directory or sandbox tier: an API key or a connected app gets 403 until keys carry a project settings scope, and so does every other agent token. Sensei changes the setup commands (host setup, setup, warmup, rerun on checkout move) for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Any member changes the QA Guide, and only a member's own API key or browser session changes deviceWritePaths. Each change is recorded in Change history, Sensei's as Sensei for its member.",
|
|
19512
|
+
"tags": ["projects"],
|
|
19513
|
+
"x-kosuke-command": ["projects", "settings", "update"],
|
|
19599
19514
|
"x-kosuke-sensei-token": true,
|
|
19600
19515
|
"parameters": [
|
|
19601
19516
|
{
|
|
@@ -19609,65 +19524,12 @@
|
|
|
19609
19524
|
}
|
|
19610
19525
|
},
|
|
19611
19526
|
{
|
|
19612
|
-
"name": "
|
|
19527
|
+
"name": "card",
|
|
19613
19528
|
"in": "query",
|
|
19614
19529
|
"required": false,
|
|
19615
|
-
"description": "
|
|
19616
|
-
"schema": {
|
|
19617
|
-
"description": "A chat session's preview instead of the project's main one.",
|
|
19618
|
-
"type": "string",
|
|
19619
|
-
"format": "uuid",
|
|
19620
|
-
"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)$"
|
|
19621
|
-
}
|
|
19622
|
-
}
|
|
19623
|
-
],
|
|
19624
|
-
"responses": {
|
|
19625
|
-
"2XX": {
|
|
19626
|
-
"description": "Success envelope",
|
|
19627
|
-
"content": {
|
|
19628
|
-
"application/json": {
|
|
19629
|
-
"schema": {
|
|
19630
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
19631
|
-
}
|
|
19632
|
-
}
|
|
19633
|
-
}
|
|
19634
|
-
},
|
|
19635
|
-
"4XX": {
|
|
19636
|
-
"description": "Error envelope",
|
|
19637
|
-
"content": {
|
|
19638
|
-
"application/json": {
|
|
19639
|
-
"schema": {
|
|
19640
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19641
|
-
}
|
|
19642
|
-
}
|
|
19643
|
-
}
|
|
19644
|
-
},
|
|
19645
|
-
"5XX": {
|
|
19646
|
-
"description": "Error envelope",
|
|
19647
|
-
"content": {
|
|
19648
|
-
"application/json": {
|
|
19649
|
-
"schema": {
|
|
19650
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19651
|
-
}
|
|
19652
|
-
}
|
|
19653
|
-
}
|
|
19654
|
-
}
|
|
19655
|
-
}
|
|
19656
|
-
}
|
|
19657
|
-
},
|
|
19658
|
-
"/api/projects/{projectId}/preview/sandbox/reset": {
|
|
19659
|
-
"post": {
|
|
19660
|
-
"operationId": "previewSandboxReset",
|
|
19661
|
-
"summary": "Kill a sandbox that is stuck or crashed and does not recover by itself (not a slow preview), paused or unreachable included; the platform creates a new one. Uncommitted work and the agent's memory of the chat are lost, so an agent first asks the member on a card saying so and runs it only once they approve; an Event Turn or a teammate's message is never that approval.",
|
|
19662
|
-
"tags": ["preview"],
|
|
19663
|
-
"x-kosuke-command": ["preview", "sandbox", "reset"],
|
|
19664
|
-
"x-kosuke-sensei-token": true,
|
|
19665
|
-
"parameters": [
|
|
19666
|
-
{
|
|
19667
|
-
"name": "projectId",
|
|
19668
|
-
"in": "path",
|
|
19669
|
-
"required": true,
|
|
19530
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19670
19531
|
"schema": {
|
|
19532
|
+
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
19671
19533
|
"type": "string",
|
|
19672
19534
|
"format": "uuid",
|
|
19673
19535
|
"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)$"
|
|
@@ -19681,442 +19543,12 @@
|
|
|
19681
19543
|
"schema": {
|
|
19682
19544
|
"type": "object",
|
|
19683
19545
|
"properties": {
|
|
19684
|
-
"
|
|
19685
|
-
"
|
|
19686
|
-
}
|
|
19687
|
-
}
|
|
19688
|
-
}
|
|
19689
|
-
}
|
|
19690
|
-
}
|
|
19691
|
-
},
|
|
19692
|
-
"responses": {
|
|
19693
|
-
"2XX": {
|
|
19694
|
-
"description": "Success envelope",
|
|
19695
|
-
"content": {
|
|
19696
|
-
"application/json": {
|
|
19697
|
-
"schema": {
|
|
19698
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
19699
|
-
}
|
|
19700
|
-
}
|
|
19701
|
-
}
|
|
19702
|
-
},
|
|
19703
|
-
"4XX": {
|
|
19704
|
-
"description": "Error envelope",
|
|
19705
|
-
"content": {
|
|
19706
|
-
"application/json": {
|
|
19707
|
-
"schema": {
|
|
19708
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19709
|
-
}
|
|
19710
|
-
}
|
|
19711
|
-
}
|
|
19712
|
-
},
|
|
19713
|
-
"5XX": {
|
|
19714
|
-
"description": "Error envelope",
|
|
19715
|
-
"content": {
|
|
19716
|
-
"application/json": {
|
|
19717
|
-
"schema": {
|
|
19718
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19719
|
-
}
|
|
19720
|
-
}
|
|
19721
|
-
}
|
|
19722
|
-
}
|
|
19723
|
-
}
|
|
19724
|
-
}
|
|
19725
|
-
},
|
|
19726
|
-
"/api/projects/{projectId}/preview/share": {
|
|
19727
|
-
"get": {
|
|
19728
|
-
"operationId": "previewShareGet",
|
|
19729
|
-
"summary": "Read the public share link of a preview, if one exists.",
|
|
19730
|
-
"tags": ["preview"],
|
|
19731
|
-
"x-kosuke-command": ["preview", "share", "get"],
|
|
19732
|
-
"x-kosuke-sandbox-token": true,
|
|
19733
|
-
"x-kosuke-cron-token": true,
|
|
19734
|
-
"x-kosuke-sensei-token": true,
|
|
19735
|
-
"parameters": [
|
|
19736
|
-
{
|
|
19737
|
-
"name": "projectId",
|
|
19738
|
-
"in": "path",
|
|
19739
|
-
"required": true,
|
|
19740
|
-
"schema": {
|
|
19741
|
-
"type": "string",
|
|
19742
|
-
"format": "uuid",
|
|
19743
|
-
"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)$"
|
|
19744
|
-
}
|
|
19745
|
-
},
|
|
19746
|
-
{
|
|
19747
|
-
"name": "sessionId",
|
|
19748
|
-
"in": "query",
|
|
19749
|
-
"required": false,
|
|
19750
|
-
"description": "A chat session's preview instead of the project's main one.",
|
|
19751
|
-
"schema": {
|
|
19752
|
-
"description": "A chat session's preview instead of the project's main one.",
|
|
19753
|
-
"type": "string",
|
|
19754
|
-
"format": "uuid",
|
|
19755
|
-
"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)$"
|
|
19756
|
-
}
|
|
19757
|
-
}
|
|
19758
|
-
],
|
|
19759
|
-
"responses": {
|
|
19760
|
-
"2XX": {
|
|
19761
|
-
"description": "Success envelope",
|
|
19762
|
-
"content": {
|
|
19763
|
-
"application/json": {
|
|
19764
|
-
"schema": {
|
|
19765
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
19766
|
-
}
|
|
19767
|
-
}
|
|
19768
|
-
}
|
|
19769
|
-
},
|
|
19770
|
-
"4XX": {
|
|
19771
|
-
"description": "Error envelope",
|
|
19772
|
-
"content": {
|
|
19773
|
-
"application/json": {
|
|
19774
|
-
"schema": {
|
|
19775
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19776
|
-
}
|
|
19777
|
-
}
|
|
19778
|
-
}
|
|
19779
|
-
},
|
|
19780
|
-
"5XX": {
|
|
19781
|
-
"description": "Error envelope",
|
|
19782
|
-
"content": {
|
|
19783
|
-
"application/json": {
|
|
19784
|
-
"schema": {
|
|
19785
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19786
|
-
}
|
|
19787
|
-
}
|
|
19788
|
-
}
|
|
19789
|
-
}
|
|
19790
|
-
}
|
|
19791
|
-
},
|
|
19792
|
-
"post": {
|
|
19793
|
-
"operationId": "previewShareCreate",
|
|
19794
|
-
"summary": "Create the public share link of a preview. The body sessionId wins over the query one.",
|
|
19795
|
-
"tags": ["preview"],
|
|
19796
|
-
"x-kosuke-command": ["preview", "share", "create"],
|
|
19797
|
-
"x-kosuke-sandbox-token": true,
|
|
19798
|
-
"x-kosuke-cron-token": true,
|
|
19799
|
-
"x-kosuke-sensei-token": true,
|
|
19800
|
-
"parameters": [
|
|
19801
|
-
{
|
|
19802
|
-
"name": "projectId",
|
|
19803
|
-
"in": "path",
|
|
19804
|
-
"required": true,
|
|
19805
|
-
"schema": {
|
|
19806
|
-
"type": "string",
|
|
19807
|
-
"format": "uuid",
|
|
19808
|
-
"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)$"
|
|
19809
|
-
}
|
|
19810
|
-
},
|
|
19811
|
-
{
|
|
19812
|
-
"name": "sessionId",
|
|
19813
|
-
"in": "query",
|
|
19814
|
-
"required": false,
|
|
19815
|
-
"description": "A chat session's preview instead of the project's main one.",
|
|
19816
|
-
"schema": {
|
|
19817
|
-
"description": "A chat session's preview instead of the project's main one.",
|
|
19818
|
-
"type": "string",
|
|
19819
|
-
"format": "uuid",
|
|
19820
|
-
"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)$"
|
|
19821
|
-
}
|
|
19822
|
-
}
|
|
19823
|
-
],
|
|
19824
|
-
"requestBody": {
|
|
19825
|
-
"required": false,
|
|
19826
|
-
"content": {
|
|
19827
|
-
"application/json": {
|
|
19828
|
-
"schema": {
|
|
19829
|
-
"type": "object",
|
|
19830
|
-
"properties": {
|
|
19831
|
-
"sessionId": {
|
|
19546
|
+
"hostSetupCommand": {
|
|
19547
|
+
"description": "Shell command that runs once on first deploy (or when its content changes) to provision the host: install runtimes and system packages. Re-runs only when edited.",
|
|
19832
19548
|
"anyOf": [
|
|
19833
19549
|
{
|
|
19834
19550
|
"type": "string",
|
|
19835
|
-
"
|
|
19836
|
-
"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)$"
|
|
19837
|
-
},
|
|
19838
|
-
{
|
|
19839
|
-
"type": "null"
|
|
19840
|
-
}
|
|
19841
|
-
]
|
|
19842
|
-
}
|
|
19843
|
-
}
|
|
19844
|
-
}
|
|
19845
|
-
}
|
|
19846
|
-
}
|
|
19847
|
-
},
|
|
19848
|
-
"responses": {
|
|
19849
|
-
"2XX": {
|
|
19850
|
-
"description": "Success envelope",
|
|
19851
|
-
"content": {
|
|
19852
|
-
"application/json": {
|
|
19853
|
-
"schema": {
|
|
19854
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
19855
|
-
}
|
|
19856
|
-
}
|
|
19857
|
-
}
|
|
19858
|
-
},
|
|
19859
|
-
"4XX": {
|
|
19860
|
-
"description": "Error envelope",
|
|
19861
|
-
"content": {
|
|
19862
|
-
"application/json": {
|
|
19863
|
-
"schema": {
|
|
19864
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19865
|
-
}
|
|
19866
|
-
}
|
|
19867
|
-
}
|
|
19868
|
-
},
|
|
19869
|
-
"5XX": {
|
|
19870
|
-
"description": "Error envelope",
|
|
19871
|
-
"content": {
|
|
19872
|
-
"application/json": {
|
|
19873
|
-
"schema": {
|
|
19874
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19875
|
-
}
|
|
19876
|
-
}
|
|
19877
|
-
}
|
|
19878
|
-
}
|
|
19879
|
-
}
|
|
19880
|
-
},
|
|
19881
|
-
"delete": {
|
|
19882
|
-
"operationId": "previewShareDelete",
|
|
19883
|
-
"summary": "Revoke the public share link of a preview.",
|
|
19884
|
-
"tags": ["preview"],
|
|
19885
|
-
"x-kosuke-command": ["preview", "share", "delete"],
|
|
19886
|
-
"x-kosuke-sandbox-token": true,
|
|
19887
|
-
"x-kosuke-cron-token": true,
|
|
19888
|
-
"x-kosuke-sensei-token": true,
|
|
19889
|
-
"parameters": [
|
|
19890
|
-
{
|
|
19891
|
-
"name": "projectId",
|
|
19892
|
-
"in": "path",
|
|
19893
|
-
"required": true,
|
|
19894
|
-
"schema": {
|
|
19895
|
-
"type": "string",
|
|
19896
|
-
"format": "uuid",
|
|
19897
|
-
"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)$"
|
|
19898
|
-
}
|
|
19899
|
-
},
|
|
19900
|
-
{
|
|
19901
|
-
"name": "sessionId",
|
|
19902
|
-
"in": "query",
|
|
19903
|
-
"required": false,
|
|
19904
|
-
"description": "A chat session's preview instead of the project's main one.",
|
|
19905
|
-
"schema": {
|
|
19906
|
-
"description": "A chat session's preview instead of the project's main one.",
|
|
19907
|
-
"type": "string",
|
|
19908
|
-
"format": "uuid",
|
|
19909
|
-
"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)$"
|
|
19910
|
-
}
|
|
19911
|
-
}
|
|
19912
|
-
],
|
|
19913
|
-
"responses": {
|
|
19914
|
-
"2XX": {
|
|
19915
|
-
"description": "Success envelope",
|
|
19916
|
-
"content": {
|
|
19917
|
-
"application/json": {
|
|
19918
|
-
"schema": {
|
|
19919
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
19920
|
-
}
|
|
19921
|
-
}
|
|
19922
|
-
}
|
|
19923
|
-
},
|
|
19924
|
-
"4XX": {
|
|
19925
|
-
"description": "Error envelope",
|
|
19926
|
-
"content": {
|
|
19927
|
-
"application/json": {
|
|
19928
|
-
"schema": {
|
|
19929
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19930
|
-
}
|
|
19931
|
-
}
|
|
19932
|
-
}
|
|
19933
|
-
},
|
|
19934
|
-
"5XX": {
|
|
19935
|
-
"description": "Error envelope",
|
|
19936
|
-
"content": {
|
|
19937
|
-
"application/json": {
|
|
19938
|
-
"schema": {
|
|
19939
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19940
|
-
}
|
|
19941
|
-
}
|
|
19942
|
-
}
|
|
19943
|
-
}
|
|
19944
|
-
}
|
|
19945
|
-
}
|
|
19946
|
-
},
|
|
19947
|
-
"/api/projects/{projectId}/releases": {
|
|
19948
|
-
"get": {
|
|
19949
|
-
"operationId": "projectsReleasesList",
|
|
19950
|
-
"summary": "List a repository's Releases, newest first: the Version each published, its status (publishing, live, superseded or failed), and whether it changed the database schema.",
|
|
19951
|
-
"tags": ["projects"],
|
|
19952
|
-
"x-kosuke-command": ["projects", "releases", "list"],
|
|
19953
|
-
"x-kosuke-sandbox-token": true,
|
|
19954
|
-
"x-kosuke-cron-token": true,
|
|
19955
|
-
"x-kosuke-sensei-token": true,
|
|
19956
|
-
"parameters": [
|
|
19957
|
-
{
|
|
19958
|
-
"name": "projectId",
|
|
19959
|
-
"in": "path",
|
|
19960
|
-
"required": true,
|
|
19961
|
-
"schema": {
|
|
19962
|
-
"type": "string",
|
|
19963
|
-
"format": "uuid",
|
|
19964
|
-
"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)$"
|
|
19965
|
-
}
|
|
19966
|
-
}
|
|
19967
|
-
],
|
|
19968
|
-
"responses": {
|
|
19969
|
-
"2XX": {
|
|
19970
|
-
"description": "Success envelope",
|
|
19971
|
-
"content": {
|
|
19972
|
-
"application/json": {
|
|
19973
|
-
"schema": {
|
|
19974
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
19975
|
-
}
|
|
19976
|
-
}
|
|
19977
|
-
}
|
|
19978
|
-
},
|
|
19979
|
-
"4XX": {
|
|
19980
|
-
"description": "Error envelope",
|
|
19981
|
-
"content": {
|
|
19982
|
-
"application/json": {
|
|
19983
|
-
"schema": {
|
|
19984
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19985
|
-
}
|
|
19986
|
-
}
|
|
19987
|
-
}
|
|
19988
|
-
},
|
|
19989
|
-
"5XX": {
|
|
19990
|
-
"description": "Error envelope",
|
|
19991
|
-
"content": {
|
|
19992
|
-
"application/json": {
|
|
19993
|
-
"schema": {
|
|
19994
|
-
"$ref": "#/components/schemas/ApiError"
|
|
19995
|
-
}
|
|
19996
|
-
}
|
|
19997
|
-
}
|
|
19998
|
-
}
|
|
19999
|
-
}
|
|
20000
|
-
}
|
|
20001
|
-
},
|
|
20002
|
-
"/api/projects/{projectId}/settings": {
|
|
20003
|
-
"get": {
|
|
20004
|
-
"operationId": "projectsSettingsGet",
|
|
20005
|
-
"summary": "Read the project settings: setup commands, services, environment and sandbox size. Every project member reads them. --values false leaves every environment variable value empty: their names only. A secret's value reaches only a member's own browser session or API key, never Sensei or another agent. canEdit says whether the caller may change them; Sensei passes --card with the card its member approved.",
|
|
20006
|
-
"tags": ["projects"],
|
|
20007
|
-
"x-kosuke-command": ["projects", "settings", "get"],
|
|
20008
|
-
"x-kosuke-sandbox-token": true,
|
|
20009
|
-
"x-kosuke-cron-token": true,
|
|
20010
|
-
"x-kosuke-sensei-token": true,
|
|
20011
|
-
"parameters": [
|
|
20012
|
-
{
|
|
20013
|
-
"name": "projectId",
|
|
20014
|
-
"in": "path",
|
|
20015
|
-
"required": true,
|
|
20016
|
-
"schema": {
|
|
20017
|
-
"type": "string",
|
|
20018
|
-
"format": "uuid",
|
|
20019
|
-
"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)$"
|
|
20020
|
-
}
|
|
20021
|
-
},
|
|
20022
|
-
{
|
|
20023
|
-
"name": "card",
|
|
20024
|
-
"in": "query",
|
|
20025
|
-
"required": false,
|
|
20026
|
-
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20027
|
-
"schema": {
|
|
20028
|
-
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20029
|
-
"type": "string",
|
|
20030
|
-
"format": "uuid",
|
|
20031
|
-
"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)$"
|
|
20032
|
-
}
|
|
20033
|
-
},
|
|
20034
|
-
{
|
|
20035
|
-
"name": "values",
|
|
20036
|
-
"in": "query",
|
|
20037
|
-
"required": false,
|
|
20038
|
-
"schema": {
|
|
20039
|
-
"type": "string",
|
|
20040
|
-
"enum": ["true", "false"]
|
|
20041
|
-
}
|
|
20042
|
-
}
|
|
20043
|
-
],
|
|
20044
|
-
"responses": {
|
|
20045
|
-
"2XX": {
|
|
20046
|
-
"description": "Success envelope",
|
|
20047
|
-
"content": {
|
|
20048
|
-
"application/json": {
|
|
20049
|
-
"schema": {
|
|
20050
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20051
|
-
}
|
|
20052
|
-
}
|
|
20053
|
-
}
|
|
20054
|
-
},
|
|
20055
|
-
"4XX": {
|
|
20056
|
-
"description": "Error envelope",
|
|
20057
|
-
"content": {
|
|
20058
|
-
"application/json": {
|
|
20059
|
-
"schema": {
|
|
20060
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20061
|
-
}
|
|
20062
|
-
}
|
|
20063
|
-
}
|
|
20064
|
-
},
|
|
20065
|
-
"5XX": {
|
|
20066
|
-
"description": "Error envelope",
|
|
20067
|
-
"content": {
|
|
20068
|
-
"application/json": {
|
|
20069
|
-
"schema": {
|
|
20070
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20071
|
-
}
|
|
20072
|
-
}
|
|
20073
|
-
}
|
|
20074
|
-
}
|
|
20075
|
-
}
|
|
20076
|
-
},
|
|
20077
|
-
"patch": {
|
|
20078
|
-
"operationId": "projectsSettingsUpdate",
|
|
20079
|
-
"summary": "Change setup commands, branches, working directory, sandbox tier, the Project QA Guide or deviceWritePaths, the device folders a Chat Session may write. Only a workspace admin, in the browser, changes setup commands, branches, working directory or sandbox tier: an API key or a connected app gets 403 until keys carry a project settings scope, and so does every other agent token. Sensei changes the setup commands (host setup, setup, warmup, rerun on checkout move) for a workspace admin, with --card naming the card about this project they approved, from the Turn that approval started; without it, 403. Any member changes the QA Guide, and only a member's own API key or browser session changes deviceWritePaths. Each change is recorded in Change history, Sensei's as Sensei for its member.",
|
|
20080
|
-
"tags": ["projects"],
|
|
20081
|
-
"x-kosuke-command": ["projects", "settings", "update"],
|
|
20082
|
-
"x-kosuke-sensei-token": true,
|
|
20083
|
-
"parameters": [
|
|
20084
|
-
{
|
|
20085
|
-
"name": "projectId",
|
|
20086
|
-
"in": "path",
|
|
20087
|
-
"required": true,
|
|
20088
|
-
"schema": {
|
|
20089
|
-
"type": "string",
|
|
20090
|
-
"format": "uuid",
|
|
20091
|
-
"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)$"
|
|
20092
|
-
}
|
|
20093
|
-
},
|
|
20094
|
-
{
|
|
20095
|
-
"name": "card",
|
|
20096
|
-
"in": "query",
|
|
20097
|
-
"required": false,
|
|
20098
|
-
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20099
|
-
"schema": {
|
|
20100
|
-
"description": "Sensei only: the id of the card about this project that a workspace admin approved, from the Turn that approval started. Ignored for anyone else.",
|
|
20101
|
-
"type": "string",
|
|
20102
|
-
"format": "uuid",
|
|
20103
|
-
"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)$"
|
|
20104
|
-
}
|
|
20105
|
-
}
|
|
20106
|
-
],
|
|
20107
|
-
"requestBody": {
|
|
20108
|
-
"required": true,
|
|
20109
|
-
"content": {
|
|
20110
|
-
"application/json": {
|
|
20111
|
-
"schema": {
|
|
20112
|
-
"type": "object",
|
|
20113
|
-
"properties": {
|
|
20114
|
-
"hostSetupCommand": {
|
|
20115
|
-
"description": "Shell command that runs once on first deploy (or when its content changes) to provision the host: install runtimes and system packages. Re-runs only when edited.",
|
|
20116
|
-
"anyOf": [
|
|
20117
|
-
{
|
|
20118
|
-
"type": "string",
|
|
20119
|
-
"maxLength": 2000
|
|
19551
|
+
"maxLength": 2000
|
|
20120
19552
|
},
|
|
20121
19553
|
{
|
|
20122
19554
|
"type": "null"
|
|
@@ -20209,302 +19641,15 @@
|
|
|
20209
19641
|
}
|
|
20210
19642
|
},
|
|
20211
19643
|
"sandboxTier": {
|
|
20212
|
-
"description": "Sandbox resource tier provisioned for the preview: SMALL, MEDIUM, LARGE, or XLARGE. Omitted leaves the current tier. A first deploy boots on XLARGE (unknown footprint). Measure actual peak usage and set the right-sized tier here so later sandboxes use it.",
|
|
20213
|
-
"type": "string",
|
|
20214
|
-
"enum": ["SMALL", "MEDIUM", "LARGE", "XLARGE"]
|
|
20215
|
-
}
|
|
20216
|
-
}
|
|
20217
|
-
}
|
|
20218
|
-
}
|
|
20219
|
-
}
|
|
20220
|
-
},
|
|
20221
|
-
"responses": {
|
|
20222
|
-
"2XX": {
|
|
20223
|
-
"description": "Success envelope",
|
|
20224
|
-
"content": {
|
|
20225
|
-
"application/json": {
|
|
20226
|
-
"schema": {
|
|
20227
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20228
|
-
}
|
|
20229
|
-
}
|
|
20230
|
-
}
|
|
20231
|
-
},
|
|
20232
|
-
"4XX": {
|
|
20233
|
-
"description": "Error envelope",
|
|
20234
|
-
"content": {
|
|
20235
|
-
"application/json": {
|
|
20236
|
-
"schema": {
|
|
20237
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20238
|
-
}
|
|
20239
|
-
}
|
|
20240
|
-
}
|
|
20241
|
-
},
|
|
20242
|
-
"5XX": {
|
|
20243
|
-
"description": "Error envelope",
|
|
20244
|
-
"content": {
|
|
20245
|
-
"application/json": {
|
|
20246
|
-
"schema": {
|
|
20247
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20248
|
-
}
|
|
20249
|
-
}
|
|
20250
|
-
}
|
|
20251
|
-
}
|
|
20252
|
-
}
|
|
20253
|
-
}
|
|
20254
|
-
},
|
|
20255
|
-
"/api/projects/{projectId}/settings/agentic-deploy": {
|
|
20256
|
-
"post": {
|
|
20257
|
-
"operationId": "deploysStart",
|
|
20258
|
-
"summary": "Start a deploy (empty JSON body) or continue the current one with userResponse. While the deploy agent works, the message waits Up next; while the sandbox builds, it joins the agent's first turn as instructions. Attachments ride along as multipart, where the message is called content. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. A started deploy is recorded in Change history.",
|
|
20259
|
-
"tags": ["deploys"],
|
|
20260
|
-
"x-kosuke-command": ["deploys", "start"],
|
|
20261
|
-
"x-kosuke-attachments": true,
|
|
20262
|
-
"x-kosuke-attachment-max-files": 20,
|
|
20263
|
-
"x-kosuke-attachment-max-bytes": 10485760,
|
|
20264
|
-
"x-kosuke-attachment-upload-path": "/api/projects/{projectId}/attachments",
|
|
20265
|
-
"x-kosuke-attachment-video-max-bytes": 10485760,
|
|
20266
|
-
"x-kosuke-attachment-video-upload-path": "/api/projects/{projectId}/attachments/uploads",
|
|
20267
|
-
"parameters": [
|
|
20268
|
-
{
|
|
20269
|
-
"name": "projectId",
|
|
20270
|
-
"in": "path",
|
|
20271
|
-
"required": true,
|
|
20272
|
-
"schema": {
|
|
20273
|
-
"type": "string",
|
|
20274
|
-
"format": "uuid",
|
|
20275
|
-
"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)$"
|
|
20276
|
-
}
|
|
20277
|
-
}
|
|
20278
|
-
],
|
|
20279
|
-
"requestBody": {
|
|
20280
|
-
"required": false,
|
|
20281
|
-
"content": {
|
|
20282
|
-
"application/json": {
|
|
20283
|
-
"schema": {
|
|
20284
|
-
"type": "object",
|
|
20285
|
-
"properties": {
|
|
20286
|
-
"userResponse": {
|
|
20287
|
-
"type": "string",
|
|
20288
|
-
"minLength": 1
|
|
20289
|
-
},
|
|
20290
|
-
"runningDeployJobId": {
|
|
20291
|
-
"description": "The deploy the sender saw running. If it was stopped by the time the message lands, the message is refused with JOB_STOPPED instead of resuming it.",
|
|
20292
|
-
"type": "string",
|
|
20293
|
-
"format": "uuid",
|
|
20294
|
-
"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)$"
|
|
20295
|
-
},
|
|
20296
|
-
"freshDeploy": {
|
|
20297
|
-
"type": "boolean"
|
|
20298
|
-
}
|
|
20299
|
-
}
|
|
20300
|
-
}
|
|
20301
|
-
},
|
|
20302
|
-
"multipart/form-data": {
|
|
20303
|
-
"schema": {
|
|
20304
|
-
"type": "object",
|
|
20305
|
-
"properties": {
|
|
20306
|
-
"content": {
|
|
20307
|
-
"type": "string",
|
|
20308
|
-
"minLength": 1,
|
|
20309
|
-
"description": "The message for the deploy agent."
|
|
20310
|
-
},
|
|
20311
|
-
"freshDeploy": {
|
|
20312
|
-
"description": "Sent as the string 'true'.",
|
|
20313
|
-
"type": "boolean"
|
|
20314
|
-
},
|
|
20315
|
-
"runningDeployJobId": {
|
|
20316
|
-
"type": "string",
|
|
20317
|
-
"format": "uuid",
|
|
20318
|
-
"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)$"
|
|
20319
|
-
}
|
|
20320
|
-
},
|
|
20321
|
-
"required": ["content"]
|
|
20322
|
-
}
|
|
20323
|
-
}
|
|
20324
|
-
}
|
|
20325
|
-
},
|
|
20326
|
-
"responses": {
|
|
20327
|
-
"2XX": {
|
|
20328
|
-
"description": "Success envelope",
|
|
20329
|
-
"content": {
|
|
20330
|
-
"application/json": {
|
|
20331
|
-
"schema": {
|
|
20332
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20333
|
-
}
|
|
20334
|
-
}
|
|
20335
|
-
}
|
|
20336
|
-
},
|
|
20337
|
-
"4XX": {
|
|
20338
|
-
"description": "Error envelope",
|
|
20339
|
-
"content": {
|
|
20340
|
-
"application/json": {
|
|
20341
|
-
"schema": {
|
|
20342
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20343
|
-
}
|
|
20344
|
-
}
|
|
20345
|
-
}
|
|
20346
|
-
},
|
|
20347
|
-
"5XX": {
|
|
20348
|
-
"description": "Error envelope",
|
|
20349
|
-
"content": {
|
|
20350
|
-
"application/json": {
|
|
20351
|
-
"schema": {
|
|
20352
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20353
|
-
}
|
|
20354
|
-
}
|
|
20355
|
-
}
|
|
20356
|
-
}
|
|
20357
|
-
}
|
|
20358
|
-
}
|
|
20359
|
-
},
|
|
20360
|
-
"/api/projects/{projectId}/settings/agentic-deploy/cancel": {
|
|
20361
|
-
"post": {
|
|
20362
|
-
"operationId": "deploysCancel",
|
|
20363
|
-
"summary": "Stop the running deploy. Steers its agent had not taken go back to the top of Up next, which pauses; instructions sent while its sandbox built are discarded and listed.",
|
|
20364
|
-
"tags": ["deploys"],
|
|
20365
|
-
"x-kosuke-command": ["deploys", "cancel"],
|
|
20366
|
-
"x-kosuke-sandbox-token": true,
|
|
20367
|
-
"x-kosuke-cron-token": true,
|
|
20368
|
-
"x-kosuke-sensei-token": true,
|
|
20369
|
-
"parameters": [
|
|
20370
|
-
{
|
|
20371
|
-
"name": "projectId",
|
|
20372
|
-
"in": "path",
|
|
20373
|
-
"required": true,
|
|
20374
|
-
"schema": {
|
|
20375
|
-
"type": "string",
|
|
20376
|
-
"format": "uuid",
|
|
20377
|
-
"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)$"
|
|
20378
|
-
}
|
|
20379
|
-
}
|
|
20380
|
-
],
|
|
20381
|
-
"responses": {
|
|
20382
|
-
"2XX": {
|
|
20383
|
-
"description": "Success envelope",
|
|
20384
|
-
"content": {
|
|
20385
|
-
"application/json": {
|
|
20386
|
-
"schema": {
|
|
20387
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20388
|
-
}
|
|
20389
|
-
}
|
|
20390
|
-
}
|
|
20391
|
-
},
|
|
20392
|
-
"4XX": {
|
|
20393
|
-
"description": "Error envelope",
|
|
20394
|
-
"content": {
|
|
20395
|
-
"application/json": {
|
|
20396
|
-
"schema": {
|
|
20397
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20398
|
-
}
|
|
20399
|
-
}
|
|
20400
|
-
}
|
|
20401
|
-
},
|
|
20402
|
-
"5XX": {
|
|
20403
|
-
"description": "Error envelope",
|
|
20404
|
-
"content": {
|
|
20405
|
-
"application/json": {
|
|
20406
|
-
"schema": {
|
|
20407
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20408
|
-
}
|
|
20409
|
-
}
|
|
20410
|
-
}
|
|
20411
|
-
}
|
|
20412
|
-
}
|
|
20413
|
-
}
|
|
20414
|
-
},
|
|
20415
|
-
"/api/projects/{projectId}/settings/agentic-deploy/model": {
|
|
20416
|
-
"put": {
|
|
20417
|
-
"operationId": "deploysModelSet",
|
|
20418
|
-
"summary": "Pick the model the deploy agent runs on, as an encoded id such as anthropic:sonnet__medium. Refused while a deploy runs or waits for an answer.",
|
|
20419
|
-
"tags": ["deploys"],
|
|
20420
|
-
"x-kosuke-command": ["deploys", "model", "set"],
|
|
20421
|
-
"x-kosuke-sandbox-token": true,
|
|
20422
|
-
"x-kosuke-cron-token": true,
|
|
20423
|
-
"x-kosuke-sensei-token": true,
|
|
20424
|
-
"parameters": [
|
|
20425
|
-
{
|
|
20426
|
-
"name": "projectId",
|
|
20427
|
-
"in": "path",
|
|
20428
|
-
"required": true,
|
|
20429
|
-
"schema": {
|
|
20430
|
-
"type": "string",
|
|
20431
|
-
"format": "uuid",
|
|
20432
|
-
"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)$"
|
|
20433
|
-
}
|
|
20434
|
-
}
|
|
20435
|
-
],
|
|
20436
|
-
"requestBody": {
|
|
20437
|
-
"required": true,
|
|
20438
|
-
"content": {
|
|
20439
|
-
"application/json": {
|
|
20440
|
-
"schema": {
|
|
20441
|
-
"type": "object",
|
|
20442
|
-
"properties": {
|
|
20443
|
-
"model": {
|
|
20444
|
-
"type": "string",
|
|
20445
|
-
"minLength": 1
|
|
20446
|
-
}
|
|
20447
|
-
},
|
|
20448
|
-
"required": ["model"]
|
|
20449
|
-
}
|
|
20450
|
-
}
|
|
20451
|
-
}
|
|
20452
|
-
},
|
|
20453
|
-
"responses": {
|
|
20454
|
-
"2XX": {
|
|
20455
|
-
"description": "Success envelope",
|
|
20456
|
-
"content": {
|
|
20457
|
-
"application/json": {
|
|
20458
|
-
"schema": {
|
|
20459
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20460
|
-
}
|
|
20461
|
-
}
|
|
20462
|
-
}
|
|
20463
|
-
},
|
|
20464
|
-
"4XX": {
|
|
20465
|
-
"description": "Error envelope",
|
|
20466
|
-
"content": {
|
|
20467
|
-
"application/json": {
|
|
20468
|
-
"schema": {
|
|
20469
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20470
|
-
}
|
|
20471
|
-
}
|
|
20472
|
-
}
|
|
20473
|
-
},
|
|
20474
|
-
"5XX": {
|
|
20475
|
-
"description": "Error envelope",
|
|
20476
|
-
"content": {
|
|
20477
|
-
"application/json": {
|
|
20478
|
-
"schema": {
|
|
20479
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20480
|
-
}
|
|
20481
|
-
}
|
|
20482
|
-
}
|
|
20483
|
-
}
|
|
20484
|
-
}
|
|
20485
|
-
}
|
|
20486
|
-
},
|
|
20487
|
-
"/api/projects/{projectId}/settings/agentic-deploy/queue": {
|
|
20488
|
-
"get": {
|
|
20489
|
-
"operationId": "deploysQueueList",
|
|
20490
|
-
"summary": "List the messages waiting Up next in the Deploy Chat, in the order they will be sent, and whether Up next is paused.",
|
|
20491
|
-
"tags": ["deploys"],
|
|
20492
|
-
"x-kosuke-command": ["deploys", "queue", "list"],
|
|
20493
|
-
"x-kosuke-sandbox-token": true,
|
|
20494
|
-
"x-kosuke-cron-token": true,
|
|
20495
|
-
"x-kosuke-sensei-token": true,
|
|
20496
|
-
"parameters": [
|
|
20497
|
-
{
|
|
20498
|
-
"name": "projectId",
|
|
20499
|
-
"in": "path",
|
|
20500
|
-
"required": true,
|
|
20501
|
-
"schema": {
|
|
20502
|
-
"type": "string",
|
|
20503
|
-
"format": "uuid",
|
|
20504
|
-
"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)$"
|
|
19644
|
+
"description": "Sandbox resource tier provisioned for the preview: SMALL, MEDIUM, LARGE, or XLARGE. Omitted leaves the current tier. A first deploy boots on XLARGE (unknown footprint). Measure actual peak usage and set the right-sized tier here so later sandboxes use it.",
|
|
19645
|
+
"type": "string",
|
|
19646
|
+
"enum": ["SMALL", "MEDIUM", "LARGE", "XLARGE"]
|
|
19647
|
+
}
|
|
19648
|
+
}
|
|
19649
|
+
}
|
|
20505
19650
|
}
|
|
20506
19651
|
}
|
|
20507
|
-
|
|
19652
|
+
},
|
|
20508
19653
|
"responses": {
|
|
20509
19654
|
"2XX": {
|
|
20510
19655
|
"description": "Success envelope",
|
|
@@ -20539,12 +19684,12 @@
|
|
|
20539
19684
|
}
|
|
20540
19685
|
}
|
|
20541
19686
|
},
|
|
20542
|
-
"/api/projects/{projectId}/settings/agentic-deploy
|
|
20543
|
-
"
|
|
20544
|
-
"operationId": "
|
|
20545
|
-
"summary": "
|
|
19687
|
+
"/api/projects/{projectId}/settings/agentic-deploy": {
|
|
19688
|
+
"post": {
|
|
19689
|
+
"operationId": "deploysStart",
|
|
19690
|
+
"summary": "Start a deploy (empty JSON body) or continue the current one with userResponse. While the deploy agent works, the message steers its turn; while the sandbox builds, it joins the agent's first turn as instructions. Attachments ride along as multipart, where the message is called content. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403. A started deploy is recorded in Change history.",
|
|
20546
19691
|
"tags": ["deploys"],
|
|
20547
|
-
"x-kosuke-command": ["deploys", "
|
|
19692
|
+
"x-kosuke-command": ["deploys", "start"],
|
|
20548
19693
|
"x-kosuke-attachments": true,
|
|
20549
19694
|
"x-kosuke-attachment-max-files": 20,
|
|
20550
19695
|
"x-kosuke-attachment-max-bytes": 10485760,
|
|
@@ -20561,38 +19706,29 @@
|
|
|
20561
19706
|
"format": "uuid",
|
|
20562
19707
|
"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)$"
|
|
20563
19708
|
}
|
|
20564
|
-
},
|
|
20565
|
-
{
|
|
20566
|
-
"name": "queuedMessageId",
|
|
20567
|
-
"in": "path",
|
|
20568
|
-
"required": true,
|
|
20569
|
-
"schema": {
|
|
20570
|
-
"type": "string",
|
|
20571
|
-
"format": "uuid",
|
|
20572
|
-
"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)$"
|
|
20573
|
-
}
|
|
20574
19709
|
}
|
|
20575
19710
|
],
|
|
20576
19711
|
"requestBody": {
|
|
20577
|
-
"required":
|
|
19712
|
+
"required": false,
|
|
20578
19713
|
"content": {
|
|
20579
19714
|
"application/json": {
|
|
20580
19715
|
"schema": {
|
|
20581
19716
|
"type": "object",
|
|
20582
19717
|
"properties": {
|
|
20583
|
-
"
|
|
19718
|
+
"userResponse": {
|
|
20584
19719
|
"type": "string",
|
|
20585
|
-
"
|
|
19720
|
+
"minLength": 1
|
|
20586
19721
|
},
|
|
20587
|
-
"
|
|
20588
|
-
"description": "The
|
|
20589
|
-
"type": "
|
|
20590
|
-
"
|
|
20591
|
-
|
|
20592
|
-
|
|
19722
|
+
"runningDeployJobId": {
|
|
19723
|
+
"description": "The deploy the sender saw running. If it was stopped by the time the message lands, the message is refused with JOB_STOPPED instead of resuming it.",
|
|
19724
|
+
"type": "string",
|
|
19725
|
+
"format": "uuid",
|
|
19726
|
+
"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)$"
|
|
19727
|
+
},
|
|
19728
|
+
"freshDeploy": {
|
|
19729
|
+
"type": "boolean"
|
|
20593
19730
|
}
|
|
20594
|
-
}
|
|
20595
|
-
"required": ["content"]
|
|
19731
|
+
}
|
|
20596
19732
|
}
|
|
20597
19733
|
},
|
|
20598
19734
|
"multipart/form-data": {
|
|
@@ -20601,11 +19737,17 @@
|
|
|
20601
19737
|
"properties": {
|
|
20602
19738
|
"content": {
|
|
20603
19739
|
"type": "string",
|
|
20604
|
-
"
|
|
19740
|
+
"minLength": 1,
|
|
19741
|
+
"description": "The message for the deploy agent."
|
|
20605
19742
|
},
|
|
20606
|
-
"
|
|
20607
|
-
"description": "
|
|
20608
|
-
"type": "
|
|
19743
|
+
"freshDeploy": {
|
|
19744
|
+
"description": "Sent as the string 'true'.",
|
|
19745
|
+
"type": "boolean"
|
|
19746
|
+
},
|
|
19747
|
+
"runningDeployJobId": {
|
|
19748
|
+
"type": "string",
|
|
19749
|
+
"format": "uuid",
|
|
19750
|
+
"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)$"
|
|
20609
19751
|
}
|
|
20610
19752
|
},
|
|
20611
19753
|
"required": ["content"]
|
|
@@ -20645,12 +19787,14 @@
|
|
|
20645
19787
|
}
|
|
20646
19788
|
}
|
|
20647
19789
|
}
|
|
20648
|
-
}
|
|
20649
|
-
|
|
20650
|
-
|
|
20651
|
-
|
|
19790
|
+
}
|
|
19791
|
+
},
|
|
19792
|
+
"/api/projects/{projectId}/settings/agentic-deploy/cancel": {
|
|
19793
|
+
"post": {
|
|
19794
|
+
"operationId": "deploysCancel",
|
|
19795
|
+
"summary": "Stop the running deploy. Steers its agent had not taken are sent as the next turn; instructions sent while its sandbox built are discarded and listed.",
|
|
20652
19796
|
"tags": ["deploys"],
|
|
20653
|
-
"x-kosuke-command": ["deploys", "
|
|
19797
|
+
"x-kosuke-command": ["deploys", "cancel"],
|
|
20654
19798
|
"x-kosuke-sandbox-token": true,
|
|
20655
19799
|
"x-kosuke-cron-token": true,
|
|
20656
19800
|
"x-kosuke-sensei-token": true,
|
|
@@ -20664,16 +19808,6 @@
|
|
|
20664
19808
|
"format": "uuid",
|
|
20665
19809
|
"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)$"
|
|
20666
19810
|
}
|
|
20667
|
-
},
|
|
20668
|
-
{
|
|
20669
|
-
"name": "queuedMessageId",
|
|
20670
|
-
"in": "path",
|
|
20671
|
-
"required": true,
|
|
20672
|
-
"schema": {
|
|
20673
|
-
"type": "string",
|
|
20674
|
-
"format": "uuid",
|
|
20675
|
-
"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)$"
|
|
20676
|
-
}
|
|
20677
19811
|
}
|
|
20678
19812
|
],
|
|
20679
19813
|
"responses": {
|
|
@@ -20710,12 +19844,12 @@
|
|
|
20710
19844
|
}
|
|
20711
19845
|
}
|
|
20712
19846
|
},
|
|
20713
|
-
"/api/projects/{projectId}/settings/agentic-deploy/
|
|
20714
|
-
"
|
|
20715
|
-
"operationId": "
|
|
20716
|
-
"summary": "
|
|
19847
|
+
"/api/projects/{projectId}/settings/agentic-deploy/model": {
|
|
19848
|
+
"put": {
|
|
19849
|
+
"operationId": "deploysModelSet",
|
|
19850
|
+
"summary": "Pick the model the deploy agent runs on, as an encoded id such as anthropic:sonnet__medium. Refused while a deploy runs or waits for an answer.",
|
|
20717
19851
|
"tags": ["deploys"],
|
|
20718
|
-
"x-kosuke-command": ["deploys", "
|
|
19852
|
+
"x-kosuke-command": ["deploys", "model", "set"],
|
|
20719
19853
|
"x-kosuke-sandbox-token": true,
|
|
20720
19854
|
"x-kosuke-cron-token": true,
|
|
20721
19855
|
"x-kosuke-sensei-token": true,
|
|
@@ -20729,16 +19863,6 @@
|
|
|
20729
19863
|
"format": "uuid",
|
|
20730
19864
|
"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)$"
|
|
20731
19865
|
}
|
|
20732
|
-
},
|
|
20733
|
-
{
|
|
20734
|
-
"name": "queuedMessageId",
|
|
20735
|
-
"in": "path",
|
|
20736
|
-
"required": true,
|
|
20737
|
-
"schema": {
|
|
20738
|
-
"type": "string",
|
|
20739
|
-
"format": "uuid",
|
|
20740
|
-
"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)$"
|
|
20741
|
-
}
|
|
20742
19866
|
}
|
|
20743
19867
|
],
|
|
20744
19868
|
"requestBody": {
|
|
@@ -20748,14 +19872,12 @@
|
|
|
20748
19872
|
"schema": {
|
|
20749
19873
|
"type": "object",
|
|
20750
19874
|
"properties": {
|
|
20751
|
-
"
|
|
20752
|
-
"type": "
|
|
20753
|
-
"
|
|
20754
|
-
"maximum": 9007199254740991,
|
|
20755
|
-
"description": "Where the message goes, counted from the top."
|
|
19875
|
+
"model": {
|
|
19876
|
+
"type": "string",
|
|
19877
|
+
"minLength": 1
|
|
20756
19878
|
}
|
|
20757
19879
|
},
|
|
20758
|
-
"required": ["
|
|
19880
|
+
"required": ["model"]
|
|
20759
19881
|
}
|
|
20760
19882
|
}
|
|
20761
19883
|
}
|
|
@@ -20794,182 +19916,6 @@
|
|
|
20794
19916
|
}
|
|
20795
19917
|
}
|
|
20796
19918
|
},
|
|
20797
|
-
"/api/projects/{projectId}/settings/agentic-deploy/queue/{queuedMessageId}/send": {
|
|
20798
|
-
"post": {
|
|
20799
|
-
"operationId": "deploysQueueSend",
|
|
20800
|
-
"summary": "Send your own queued Deploy Chat message now, ahead of the rest of Up next. Only while the deploy agent is idle; it resumes a paused Up next. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403.",
|
|
20801
|
-
"tags": ["deploys"],
|
|
20802
|
-
"x-kosuke-command": ["deploys", "queue", "send"],
|
|
20803
|
-
"parameters": [
|
|
20804
|
-
{
|
|
20805
|
-
"name": "projectId",
|
|
20806
|
-
"in": "path",
|
|
20807
|
-
"required": true,
|
|
20808
|
-
"schema": {
|
|
20809
|
-
"type": "string",
|
|
20810
|
-
"format": "uuid",
|
|
20811
|
-
"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)$"
|
|
20812
|
-
}
|
|
20813
|
-
},
|
|
20814
|
-
{
|
|
20815
|
-
"name": "queuedMessageId",
|
|
20816
|
-
"in": "path",
|
|
20817
|
-
"required": true,
|
|
20818
|
-
"schema": {
|
|
20819
|
-
"type": "string",
|
|
20820
|
-
"format": "uuid",
|
|
20821
|
-
"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)$"
|
|
20822
|
-
}
|
|
20823
|
-
}
|
|
20824
|
-
],
|
|
20825
|
-
"responses": {
|
|
20826
|
-
"2XX": {
|
|
20827
|
-
"description": "Success envelope",
|
|
20828
|
-
"content": {
|
|
20829
|
-
"application/json": {
|
|
20830
|
-
"schema": {
|
|
20831
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20832
|
-
}
|
|
20833
|
-
}
|
|
20834
|
-
}
|
|
20835
|
-
},
|
|
20836
|
-
"4XX": {
|
|
20837
|
-
"description": "Error envelope",
|
|
20838
|
-
"content": {
|
|
20839
|
-
"application/json": {
|
|
20840
|
-
"schema": {
|
|
20841
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20842
|
-
}
|
|
20843
|
-
}
|
|
20844
|
-
}
|
|
20845
|
-
},
|
|
20846
|
-
"5XX": {
|
|
20847
|
-
"description": "Error envelope",
|
|
20848
|
-
"content": {
|
|
20849
|
-
"application/json": {
|
|
20850
|
-
"schema": {
|
|
20851
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20852
|
-
}
|
|
20853
|
-
}
|
|
20854
|
-
}
|
|
20855
|
-
}
|
|
20856
|
-
}
|
|
20857
|
-
}
|
|
20858
|
-
},
|
|
20859
|
-
"/api/projects/{projectId}/settings/agentic-deploy/queue/{queuedMessageId}/steer": {
|
|
20860
|
-
"post": {
|
|
20861
|
-
"operationId": "deploysQueueSteer",
|
|
20862
|
-
"summary": "Send your own queued Deploy Chat message into the running deploy agent Turn as a steer, on any deploy model whose runtime takes one; the message stays queued when nothing can take it. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403.",
|
|
20863
|
-
"tags": ["deploys"],
|
|
20864
|
-
"x-kosuke-command": ["deploys", "queue", "steer"],
|
|
20865
|
-
"parameters": [
|
|
20866
|
-
{
|
|
20867
|
-
"name": "projectId",
|
|
20868
|
-
"in": "path",
|
|
20869
|
-
"required": true,
|
|
20870
|
-
"schema": {
|
|
20871
|
-
"type": "string",
|
|
20872
|
-
"format": "uuid",
|
|
20873
|
-
"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)$"
|
|
20874
|
-
}
|
|
20875
|
-
},
|
|
20876
|
-
{
|
|
20877
|
-
"name": "queuedMessageId",
|
|
20878
|
-
"in": "path",
|
|
20879
|
-
"required": true,
|
|
20880
|
-
"schema": {
|
|
20881
|
-
"type": "string",
|
|
20882
|
-
"format": "uuid",
|
|
20883
|
-
"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)$"
|
|
20884
|
-
}
|
|
20885
|
-
}
|
|
20886
|
-
],
|
|
20887
|
-
"responses": {
|
|
20888
|
-
"2XX": {
|
|
20889
|
-
"description": "Success envelope",
|
|
20890
|
-
"content": {
|
|
20891
|
-
"application/json": {
|
|
20892
|
-
"schema": {
|
|
20893
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20894
|
-
}
|
|
20895
|
-
}
|
|
20896
|
-
}
|
|
20897
|
-
},
|
|
20898
|
-
"4XX": {
|
|
20899
|
-
"description": "Error envelope",
|
|
20900
|
-
"content": {
|
|
20901
|
-
"application/json": {
|
|
20902
|
-
"schema": {
|
|
20903
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20904
|
-
}
|
|
20905
|
-
}
|
|
20906
|
-
}
|
|
20907
|
-
},
|
|
20908
|
-
"5XX": {
|
|
20909
|
-
"description": "Error envelope",
|
|
20910
|
-
"content": {
|
|
20911
|
-
"application/json": {
|
|
20912
|
-
"schema": {
|
|
20913
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20914
|
-
}
|
|
20915
|
-
}
|
|
20916
|
-
}
|
|
20917
|
-
}
|
|
20918
|
-
}
|
|
20919
|
-
}
|
|
20920
|
-
},
|
|
20921
|
-
"/api/projects/{projectId}/settings/agentic-deploy/queue/resume": {
|
|
20922
|
-
"post": {
|
|
20923
|
-
"operationId": "deploysQueueResume",
|
|
20924
|
-
"summary": "Resume the Deploy Chat's paused Up next. Its top message is sent as soon as the deploy is idle. Only a workspace admin, in the browser: an API key, a connected app and every agent token get 403.",
|
|
20925
|
-
"tags": ["deploys"],
|
|
20926
|
-
"x-kosuke-command": ["deploys", "queue", "resume"],
|
|
20927
|
-
"parameters": [
|
|
20928
|
-
{
|
|
20929
|
-
"name": "projectId",
|
|
20930
|
-
"in": "path",
|
|
20931
|
-
"required": true,
|
|
20932
|
-
"schema": {
|
|
20933
|
-
"type": "string",
|
|
20934
|
-
"format": "uuid",
|
|
20935
|
-
"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)$"
|
|
20936
|
-
}
|
|
20937
|
-
}
|
|
20938
|
-
],
|
|
20939
|
-
"responses": {
|
|
20940
|
-
"2XX": {
|
|
20941
|
-
"description": "Success envelope",
|
|
20942
|
-
"content": {
|
|
20943
|
-
"application/json": {
|
|
20944
|
-
"schema": {
|
|
20945
|
-
"$ref": "#/components/schemas/ApiSuccess"
|
|
20946
|
-
}
|
|
20947
|
-
}
|
|
20948
|
-
}
|
|
20949
|
-
},
|
|
20950
|
-
"4XX": {
|
|
20951
|
-
"description": "Error envelope",
|
|
20952
|
-
"content": {
|
|
20953
|
-
"application/json": {
|
|
20954
|
-
"schema": {
|
|
20955
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20956
|
-
}
|
|
20957
|
-
}
|
|
20958
|
-
}
|
|
20959
|
-
},
|
|
20960
|
-
"5XX": {
|
|
20961
|
-
"description": "Error envelope",
|
|
20962
|
-
"content": {
|
|
20963
|
-
"application/json": {
|
|
20964
|
-
"schema": {
|
|
20965
|
-
"$ref": "#/components/schemas/ApiError"
|
|
20966
|
-
}
|
|
20967
|
-
}
|
|
20968
|
-
}
|
|
20969
|
-
}
|
|
20970
|
-
}
|
|
20971
|
-
}
|
|
20972
|
-
},
|
|
20973
19919
|
"/api/projects/{projectId}/settings/env-vars": {
|
|
20974
19920
|
"post": {
|
|
20975
19921
|
"operationId": "projectsEnvVarsCreate",
|