@kosuke-ai/kosuke 1.0.1 → 1.0.3
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 +9 -0
- package/README.md +1 -1
- package/dist/generated/commands/crons/runs-diagnostics.js +4 -1
- package/dist/generated/commands/index.js +248 -240
- package/dist/generated/commands/projects/batch-merging-add-member.js +30 -0
- package/dist/generated/commands/projects/labels-color.js +1 -1
- package/dist/generated/commands/projects/labels-delete.js +1 -1
- package/dist/generated/commands/sensei/merge-rule.js +1 -1
- package/dist/generated/commands/sensei/merge.js +1 -1
- package/dist/generated/commands/sessions/all.js +1 -1
- package/dist/generated/commands/sessions/go-ahead-clear.js +22 -0
- package/dist/generated/commands/sessions/go-ahead-set.js +40 -0
- package/dist/generated/commands/sessions/labels-edit.js +1 -1
- package/dist/generated/commands/sessions/labels-set.js +1 -1
- package/dist/generated/commands/tasks/create.js +46 -0
- package/dist/generated/commands/tasks/move.js +32 -0
- package/dist/generated/commands/tasks/update.js +13 -0
- package/openapi.json +362 -8
- package/package.json +5 -61
package/openapi.json
CHANGED
|
@@ -447,7 +447,7 @@
|
|
|
447
447
|
"/api/chat-sessions": {
|
|
448
448
|
"get": {
|
|
449
449
|
"operationId": "sessionsAll",
|
|
450
|
-
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
|
|
450
|
+
"summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts; goAheadSha and goAheadMerges, its go-ahead on its open pull request; and mergeRule, its Assignee's Merge rule.",
|
|
451
451
|
"tags": ["sessions"],
|
|
452
452
|
"x-kosuke-command": ["sessions", "all"],
|
|
453
453
|
"x-kosuke-sandbox-token": true,
|
|
@@ -5595,6 +5595,7 @@
|
|
|
5595
5595
|
"summary": "Read why a run of a cron ended as it did: its status, error, error code and stop source (member_stop, host_watch, deadline, replaced, sandbox_abort or runtime_error, with who stopped it), the sandbox it ran in and that sandbox's agent version, when each phase happened (queued, sandbox booted, credentials ready, agent requested, first event, done), the sandbox's own done payload, and the Cron Agent's log lines from the sandbox with secrets redacted. The log is capped at 256 KB and cleared after 30 days. The creator or a workspace admin only.",
|
|
5596
5596
|
"tags": ["crons"],
|
|
5597
5597
|
"x-kosuke-command": ["crons", "runs", "diagnostics"],
|
|
5598
|
+
"x-kosuke-sensei-token": true,
|
|
5598
5599
|
"parameters": [
|
|
5599
5600
|
{
|
|
5600
5601
|
"name": "workspaceId",
|
|
@@ -8050,6 +8051,20 @@
|
|
|
8050
8051
|
"type": "string",
|
|
8051
8052
|
"format": "uuid",
|
|
8052
8053
|
"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)$"
|
|
8054
|
+
},
|
|
8055
|
+
"status": {
|
|
8056
|
+
"type": "string",
|
|
8057
|
+
"enum": ["todo", "in_progress", "done"]
|
|
8058
|
+
},
|
|
8059
|
+
"dueOn": {
|
|
8060
|
+
"type": "string",
|
|
8061
|
+
"format": "date",
|
|
8062
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
|
|
8063
|
+
},
|
|
8064
|
+
"threadId": {
|
|
8065
|
+
"type": "string",
|
|
8066
|
+
"format": "uuid",
|
|
8067
|
+
"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)$"
|
|
8053
8068
|
}
|
|
8054
8069
|
},
|
|
8055
8070
|
"required": ["title", "description"]
|
|
@@ -8117,6 +8132,20 @@
|
|
|
8117
8132
|
"type": "string",
|
|
8118
8133
|
"format": "uuid",
|
|
8119
8134
|
"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)$"
|
|
8135
|
+
},
|
|
8136
|
+
"status": {
|
|
8137
|
+
"type": "string",
|
|
8138
|
+
"enum": ["todo", "in_progress", "done"]
|
|
8139
|
+
},
|
|
8140
|
+
"dueOn": {
|
|
8141
|
+
"type": "string",
|
|
8142
|
+
"format": "date",
|
|
8143
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
|
|
8144
|
+
},
|
|
8145
|
+
"threadId": {
|
|
8146
|
+
"type": "string",
|
|
8147
|
+
"format": "uuid",
|
|
8148
|
+
"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)$"
|
|
8120
8149
|
}
|
|
8121
8150
|
},
|
|
8122
8151
|
"required": ["title", "description"]
|
|
@@ -8358,7 +8387,31 @@
|
|
|
8358
8387
|
},
|
|
8359
8388
|
"status": {
|
|
8360
8389
|
"type": "string",
|
|
8361
|
-
"enum": ["todo", "done", "archived"]
|
|
8390
|
+
"enum": ["todo", "in_progress", "done", "archived"]
|
|
8391
|
+
},
|
|
8392
|
+
"dueOn": {
|
|
8393
|
+
"anyOf": [
|
|
8394
|
+
{
|
|
8395
|
+
"type": "string",
|
|
8396
|
+
"format": "date",
|
|
8397
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
|
|
8398
|
+
},
|
|
8399
|
+
{
|
|
8400
|
+
"type": "null"
|
|
8401
|
+
}
|
|
8402
|
+
]
|
|
8403
|
+
},
|
|
8404
|
+
"threadId": {
|
|
8405
|
+
"anyOf": [
|
|
8406
|
+
{
|
|
8407
|
+
"type": "string",
|
|
8408
|
+
"format": "uuid",
|
|
8409
|
+
"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)$"
|
|
8410
|
+
},
|
|
8411
|
+
{
|
|
8412
|
+
"type": "null"
|
|
8413
|
+
}
|
|
8414
|
+
]
|
|
8362
8415
|
},
|
|
8363
8416
|
"description": {
|
|
8364
8417
|
"type": "string"
|
|
@@ -8471,6 +8524,86 @@
|
|
|
8471
8524
|
}
|
|
8472
8525
|
}
|
|
8473
8526
|
},
|
|
8527
|
+
"/api/organizations/{workspaceId}/tasks/{taskId}/move": {
|
|
8528
|
+
"post": {
|
|
8529
|
+
"operationId": "tasksMove",
|
|
8530
|
+
"summary": "Move a Todo or In progress Personal task into a workspace. Members and Sensei only.",
|
|
8531
|
+
"tags": ["tasks"],
|
|
8532
|
+
"x-kosuke-command": ["tasks", "move"],
|
|
8533
|
+
"x-kosuke-sensei-token": true,
|
|
8534
|
+
"parameters": [
|
|
8535
|
+
{
|
|
8536
|
+
"name": "workspaceId",
|
|
8537
|
+
"in": "path",
|
|
8538
|
+
"required": true,
|
|
8539
|
+
"schema": {
|
|
8540
|
+
"type": "string",
|
|
8541
|
+
"minLength": 1
|
|
8542
|
+
}
|
|
8543
|
+
},
|
|
8544
|
+
{
|
|
8545
|
+
"name": "taskId",
|
|
8546
|
+
"in": "path",
|
|
8547
|
+
"required": true,
|
|
8548
|
+
"schema": {
|
|
8549
|
+
"type": "string",
|
|
8550
|
+
"format": "uuid",
|
|
8551
|
+
"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)$"
|
|
8552
|
+
}
|
|
8553
|
+
}
|
|
8554
|
+
],
|
|
8555
|
+
"requestBody": {
|
|
8556
|
+
"required": true,
|
|
8557
|
+
"content": {
|
|
8558
|
+
"application/json": {
|
|
8559
|
+
"schema": {
|
|
8560
|
+
"type": "object",
|
|
8561
|
+
"properties": {
|
|
8562
|
+
"orgId": {
|
|
8563
|
+
"type": "string",
|
|
8564
|
+
"minLength": 1,
|
|
8565
|
+
"description": "The target workspace you belong to."
|
|
8566
|
+
}
|
|
8567
|
+
},
|
|
8568
|
+
"required": ["orgId"]
|
|
8569
|
+
}
|
|
8570
|
+
}
|
|
8571
|
+
}
|
|
8572
|
+
},
|
|
8573
|
+
"responses": {
|
|
8574
|
+
"2XX": {
|
|
8575
|
+
"description": "Success envelope",
|
|
8576
|
+
"content": {
|
|
8577
|
+
"application/json": {
|
|
8578
|
+
"schema": {
|
|
8579
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
8580
|
+
}
|
|
8581
|
+
}
|
|
8582
|
+
}
|
|
8583
|
+
},
|
|
8584
|
+
"4XX": {
|
|
8585
|
+
"description": "Error envelope",
|
|
8586
|
+
"content": {
|
|
8587
|
+
"application/json": {
|
|
8588
|
+
"schema": {
|
|
8589
|
+
"$ref": "#/components/schemas/ApiError"
|
|
8590
|
+
}
|
|
8591
|
+
}
|
|
8592
|
+
}
|
|
8593
|
+
},
|
|
8594
|
+
"5XX": {
|
|
8595
|
+
"description": "Error envelope",
|
|
8596
|
+
"content": {
|
|
8597
|
+
"application/json": {
|
|
8598
|
+
"schema": {
|
|
8599
|
+
"$ref": "#/components/schemas/ApiError"
|
|
8600
|
+
}
|
|
8601
|
+
}
|
|
8602
|
+
}
|
|
8603
|
+
}
|
|
8604
|
+
}
|
|
8605
|
+
}
|
|
8606
|
+
},
|
|
8474
8607
|
"/api/organizations/{workspaceId}/tasks/{taskId}/start": {
|
|
8475
8608
|
"post": {
|
|
8476
8609
|
"operationId": "tasksStart",
|
|
@@ -10215,6 +10348,80 @@
|
|
|
10215
10348
|
}
|
|
10216
10349
|
}
|
|
10217
10350
|
},
|
|
10351
|
+
"/api/projects/{projectId}/batch-merging/members": {
|
|
10352
|
+
"post": {
|
|
10353
|
+
"operationId": "projectsBatchMergingAddMember",
|
|
10354
|
+
"summary": "The running Batch's own session only: record that the Batch carries a task's pull request, before closing it on GitHub. Its task then stays under review, is completed when the Batch merges, and gets its pull request reopened when the Batch ends without merging. Safe to repeat.",
|
|
10355
|
+
"tags": ["projects"],
|
|
10356
|
+
"x-kosuke-command": ["projects", "batch-merging", "add-member"],
|
|
10357
|
+
"x-kosuke-sandbox-token": true,
|
|
10358
|
+
"x-kosuke-cron-token": true,
|
|
10359
|
+
"x-kosuke-sensei-token": true,
|
|
10360
|
+
"parameters": [
|
|
10361
|
+
{
|
|
10362
|
+
"name": "projectId",
|
|
10363
|
+
"in": "path",
|
|
10364
|
+
"required": true,
|
|
10365
|
+
"schema": {
|
|
10366
|
+
"type": "string",
|
|
10367
|
+
"format": "uuid",
|
|
10368
|
+
"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)$"
|
|
10369
|
+
}
|
|
10370
|
+
}
|
|
10371
|
+
],
|
|
10372
|
+
"requestBody": {
|
|
10373
|
+
"required": true,
|
|
10374
|
+
"content": {
|
|
10375
|
+
"application/json": {
|
|
10376
|
+
"schema": {
|
|
10377
|
+
"type": "object",
|
|
10378
|
+
"properties": {
|
|
10379
|
+
"pullRequest": {
|
|
10380
|
+
"type": "integer",
|
|
10381
|
+
"exclusiveMinimum": 0,
|
|
10382
|
+
"maximum": 9007199254740991,
|
|
10383
|
+
"description": "The task pull request the Batch carries and is about to close."
|
|
10384
|
+
}
|
|
10385
|
+
},
|
|
10386
|
+
"required": ["pullRequest"]
|
|
10387
|
+
}
|
|
10388
|
+
}
|
|
10389
|
+
}
|
|
10390
|
+
},
|
|
10391
|
+
"responses": {
|
|
10392
|
+
"2XX": {
|
|
10393
|
+
"description": "Success envelope",
|
|
10394
|
+
"content": {
|
|
10395
|
+
"application/json": {
|
|
10396
|
+
"schema": {
|
|
10397
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
10398
|
+
}
|
|
10399
|
+
}
|
|
10400
|
+
}
|
|
10401
|
+
},
|
|
10402
|
+
"4XX": {
|
|
10403
|
+
"description": "Error envelope",
|
|
10404
|
+
"content": {
|
|
10405
|
+
"application/json": {
|
|
10406
|
+
"schema": {
|
|
10407
|
+
"$ref": "#/components/schemas/ApiError"
|
|
10408
|
+
}
|
|
10409
|
+
}
|
|
10410
|
+
}
|
|
10411
|
+
},
|
|
10412
|
+
"5XX": {
|
|
10413
|
+
"description": "Error envelope",
|
|
10414
|
+
"content": {
|
|
10415
|
+
"application/json": {
|
|
10416
|
+
"schema": {
|
|
10417
|
+
"$ref": "#/components/schemas/ApiError"
|
|
10418
|
+
}
|
|
10419
|
+
}
|
|
10420
|
+
}
|
|
10421
|
+
}
|
|
10422
|
+
}
|
|
10423
|
+
}
|
|
10424
|
+
},
|
|
10218
10425
|
"/api/projects/{projectId}/branches": {
|
|
10219
10426
|
"get": {
|
|
10220
10427
|
"operationId": "projectsBranches",
|
|
@@ -11495,6 +11702,153 @@
|
|
|
11495
11702
|
}
|
|
11496
11703
|
}
|
|
11497
11704
|
},
|
|
11705
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/go-ahead": {
|
|
11706
|
+
"put": {
|
|
11707
|
+
"operationId": "sessionsGoAheadSet",
|
|
11708
|
+
"summary": "Give the session's pull request the go-ahead to merge, as the session's member, on one head: goAheadSha, goAheadBy, goAheadAt and goAheadMerges. A push to another head takes it away. With `merge`, Kosuke merges it on its own; without, it waits for whoever merges it, and Batch Merging is asked to look. Members and their Sensei only.",
|
|
11709
|
+
"tags": ["sessions"],
|
|
11710
|
+
"x-kosuke-command": ["sessions", "go-ahead", "set"],
|
|
11711
|
+
"x-kosuke-sensei-token": true,
|
|
11712
|
+
"parameters": [
|
|
11713
|
+
{
|
|
11714
|
+
"name": "projectId",
|
|
11715
|
+
"in": "path",
|
|
11716
|
+
"required": true,
|
|
11717
|
+
"schema": {
|
|
11718
|
+
"type": "string",
|
|
11719
|
+
"format": "uuid",
|
|
11720
|
+
"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)$"
|
|
11721
|
+
}
|
|
11722
|
+
},
|
|
11723
|
+
{
|
|
11724
|
+
"name": "sessionId",
|
|
11725
|
+
"in": "path",
|
|
11726
|
+
"required": true,
|
|
11727
|
+
"schema": {
|
|
11728
|
+
"type": "string",
|
|
11729
|
+
"format": "uuid",
|
|
11730
|
+
"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)$"
|
|
11731
|
+
}
|
|
11732
|
+
}
|
|
11733
|
+
],
|
|
11734
|
+
"requestBody": {
|
|
11735
|
+
"required": true,
|
|
11736
|
+
"content": {
|
|
11737
|
+
"application/json": {
|
|
11738
|
+
"schema": {
|
|
11739
|
+
"type": "object",
|
|
11740
|
+
"properties": {
|
|
11741
|
+
"sha": {
|
|
11742
|
+
"description": "The head commit the go-ahead is given on. Defaults to the head the session last read from GitHub.",
|
|
11743
|
+
"type": "string",
|
|
11744
|
+
"pattern": "^[0-9a-f]{40}$"
|
|
11745
|
+
},
|
|
11746
|
+
"merge": {
|
|
11747
|
+
"description": "Kosuke merges it on its own, now or once GitHub allows. Without it the pull request is left for whoever merges it, such as the next Batch.",
|
|
11748
|
+
"type": "boolean"
|
|
11749
|
+
}
|
|
11750
|
+
}
|
|
11751
|
+
}
|
|
11752
|
+
}
|
|
11753
|
+
}
|
|
11754
|
+
},
|
|
11755
|
+
"responses": {
|
|
11756
|
+
"2XX": {
|
|
11757
|
+
"description": "Success envelope",
|
|
11758
|
+
"content": {
|
|
11759
|
+
"application/json": {
|
|
11760
|
+
"schema": {
|
|
11761
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
11762
|
+
}
|
|
11763
|
+
}
|
|
11764
|
+
}
|
|
11765
|
+
},
|
|
11766
|
+
"4XX": {
|
|
11767
|
+
"description": "Error envelope",
|
|
11768
|
+
"content": {
|
|
11769
|
+
"application/json": {
|
|
11770
|
+
"schema": {
|
|
11771
|
+
"$ref": "#/components/schemas/ApiError"
|
|
11772
|
+
}
|
|
11773
|
+
}
|
|
11774
|
+
}
|
|
11775
|
+
},
|
|
11776
|
+
"5XX": {
|
|
11777
|
+
"description": "Error envelope",
|
|
11778
|
+
"content": {
|
|
11779
|
+
"application/json": {
|
|
11780
|
+
"schema": {
|
|
11781
|
+
"$ref": "#/components/schemas/ApiError"
|
|
11782
|
+
}
|
|
11783
|
+
}
|
|
11784
|
+
}
|
|
11785
|
+
}
|
|
11786
|
+
}
|
|
11787
|
+
}
|
|
11788
|
+
},
|
|
11789
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/go-ahead/clear": {
|
|
11790
|
+
"post": {
|
|
11791
|
+
"operationId": "sessionsGoAheadClear",
|
|
11792
|
+
"summary": "Take the session's go-ahead away, so neither Kosuke nor a Batch merges its pull request until it is given again. The callers of `sessions go-ahead set`.",
|
|
11793
|
+
"tags": ["sessions"],
|
|
11794
|
+
"x-kosuke-command": ["sessions", "go-ahead", "clear"],
|
|
11795
|
+
"x-kosuke-sensei-token": true,
|
|
11796
|
+
"parameters": [
|
|
11797
|
+
{
|
|
11798
|
+
"name": "projectId",
|
|
11799
|
+
"in": "path",
|
|
11800
|
+
"required": true,
|
|
11801
|
+
"schema": {
|
|
11802
|
+
"type": "string",
|
|
11803
|
+
"format": "uuid",
|
|
11804
|
+
"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)$"
|
|
11805
|
+
}
|
|
11806
|
+
},
|
|
11807
|
+
{
|
|
11808
|
+
"name": "sessionId",
|
|
11809
|
+
"in": "path",
|
|
11810
|
+
"required": true,
|
|
11811
|
+
"schema": {
|
|
11812
|
+
"type": "string",
|
|
11813
|
+
"format": "uuid",
|
|
11814
|
+
"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)$"
|
|
11815
|
+
}
|
|
11816
|
+
}
|
|
11817
|
+
],
|
|
11818
|
+
"responses": {
|
|
11819
|
+
"2XX": {
|
|
11820
|
+
"description": "Success envelope",
|
|
11821
|
+
"content": {
|
|
11822
|
+
"application/json": {
|
|
11823
|
+
"schema": {
|
|
11824
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
11825
|
+
}
|
|
11826
|
+
}
|
|
11827
|
+
}
|
|
11828
|
+
},
|
|
11829
|
+
"4XX": {
|
|
11830
|
+
"description": "Error envelope",
|
|
11831
|
+
"content": {
|
|
11832
|
+
"application/json": {
|
|
11833
|
+
"schema": {
|
|
11834
|
+
"$ref": "#/components/schemas/ApiError"
|
|
11835
|
+
}
|
|
11836
|
+
}
|
|
11837
|
+
}
|
|
11838
|
+
},
|
|
11839
|
+
"5XX": {
|
|
11840
|
+
"description": "Error envelope",
|
|
11841
|
+
"content": {
|
|
11842
|
+
"application/json": {
|
|
11843
|
+
"schema": {
|
|
11844
|
+
"$ref": "#/components/schemas/ApiError"
|
|
11845
|
+
}
|
|
11846
|
+
}
|
|
11847
|
+
}
|
|
11848
|
+
}
|
|
11849
|
+
}
|
|
11850
|
+
}
|
|
11851
|
+
},
|
|
11498
11852
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/jobs/chat": {
|
|
11499
11853
|
"get": {
|
|
11500
11854
|
"operationId": "sessionsJobsList",
|
|
@@ -11959,7 +12313,7 @@
|
|
|
11959
12313
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/labels": {
|
|
11960
12314
|
"put": {
|
|
11961
12315
|
"operationId": "sessionsLabelsSet",
|
|
11962
|
-
"summary": "Replace the session's Session Labels. New names join the project's labels
|
|
12316
|
+
"summary": "Replace the session's Session Labels. New names join the project's labels. Session Labels stay in Kosuke: none is written to the pull request.",
|
|
11963
12317
|
"tags": ["sessions"],
|
|
11964
12318
|
"x-kosuke-command": ["sessions", "labels", "set"],
|
|
11965
12319
|
"x-kosuke-sandbox-token": true,
|
|
@@ -12068,7 +12422,7 @@
|
|
|
12068
12422
|
},
|
|
12069
12423
|
"patch": {
|
|
12070
12424
|
"operationId": "sessionsLabelsEdit",
|
|
12071
|
-
"summary": "Add and remove Session Labels, leaving the session's other labels as they are. color sets the initial project color only for newly created labels in add; existing label colors stay unchanged. A session token nobody stands behind may edit only its own session.
|
|
12425
|
+
"summary": "Add and remove Session Labels, leaving the session's other labels as they are. color sets the initial project color only for newly created labels in add; existing label colors stay unchanged. A session token nobody stands behind may edit only its own session. Session Labels stay in Kosuke: none is written to the pull request.",
|
|
12072
12426
|
"tags": ["sessions"],
|
|
12073
12427
|
"x-kosuke-command": ["sessions", "labels", "edit"],
|
|
12074
12428
|
"x-kosuke-sandbox-token": true,
|
|
@@ -15083,7 +15437,7 @@
|
|
|
15083
15437
|
},
|
|
15084
15438
|
"patch": {
|
|
15085
15439
|
"operationId": "projectsLabelsColor",
|
|
15086
|
-
"summary": "Recolor a Session Label.
|
|
15440
|
+
"summary": "Recolor a Session Label. Session Labels stay in Kosuke: nothing is written to GitHub.",
|
|
15087
15441
|
"tags": ["projects"],
|
|
15088
15442
|
"x-kosuke-command": ["projects", "labels", "color"],
|
|
15089
15443
|
"x-kosuke-sandbox-token": true,
|
|
@@ -15160,7 +15514,7 @@
|
|
|
15160
15514
|
},
|
|
15161
15515
|
"delete": {
|
|
15162
15516
|
"operationId": "projectsLabelsDelete",
|
|
15163
|
-
"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
|
|
15517
|
+
"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.",
|
|
15164
15518
|
"tags": ["projects"],
|
|
15165
15519
|
"x-kosuke-command": ["projects", "labels", "delete"],
|
|
15166
15520
|
"parameters": [
|
|
@@ -20695,7 +21049,7 @@
|
|
|
20695
21049
|
"/api/sensei/merge": {
|
|
20696
21050
|
"post": {
|
|
20697
21051
|
"operationId": "senseiMerge",
|
|
20698
|
-
"summary": "Merge the pull request of any Chat Session in a workspace you belong to, as you on GitHub, whenever GitHub allows it: added to GitHub's merge queue where the base has one, updated first where GitHub requires an up-to-date branch, merged otherwise, pinned to the head read. GitHub alone decides: Kosuke adds no hold of its own on approvals, reviews, checks or a working session. Asking is your go-ahead
|
|
21052
|
+
"summary": "Merge the pull request of any Chat Session in a workspace you belong to, as you on GitHub, whenever GitHub allows it: added to GitHub's merge queue where the base has one, updated first where GitHub requires an up-to-date branch, merged otherwise, pinned to the head read. GitHub alone decides: Kosuke adds no hold of its own on approvals, reviews, checks or a working session. Asking is your go-ahead, recorded on the session for its member on the head read with Kosuke merging it, so it merges later when GitHub refuses now. A push to another head takes it away. Answers the outcome, the head it decided on and why. Refused with the reason unless you have GitHub connected and the head is still `headSha` when given, and with GitHub's own reason when GitHub refuses the merge.",
|
|
20699
21053
|
"tags": ["sensei"],
|
|
20700
21054
|
"x-kosuke-command": ["sensei", "merge"],
|
|
20701
21055
|
"x-kosuke-sensei-token": true,
|
|
@@ -20760,7 +21114,7 @@
|
|
|
20760
21114
|
"/api/sensei/merge-rule": {
|
|
20761
21115
|
"put": {
|
|
20762
21116
|
"operationId": "senseiMergeRule",
|
|
20763
|
-
"summary": "Turn your Merge rule on or off. While it is on,
|
|
21117
|
+
"summary": "Turn your Merge rule on or off. While it is on, your Sensei gives the go-ahead to merge each pull request of a Chat Session you are the Assignee of once it is approved and its QA passed. Changed only when you ask. Answers whether it is on now.",
|
|
20764
21118
|
"tags": ["sensei"],
|
|
20765
21119
|
"x-kosuke-command": ["sensei", "merge-rule"],
|
|
20766
21120
|
"x-kosuke-sensei-token": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Kosuke platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -40,67 +40,11 @@
|
|
|
40
40
|
"vitest": "^4.1.12"
|
|
41
41
|
},
|
|
42
42
|
"kosukeRelease": {
|
|
43
|
-
"sourceCommit": "
|
|
44
|
-
"sourceIdentity": "
|
|
43
|
+
"sourceCommit": "da4b5803c33d30b44cea31ff242915d7d853dd08",
|
|
44
|
+
"sourceIdentity": "ed1b6daaa3e1307d85005e8a3176f2c46835e2e0d075f72e6f5b62bafd9d2aa3",
|
|
45
45
|
"fragments": [
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"personal-tasks-e01pq6.json",
|
|
49
|
-
"personal-files-hpje7f.json",
|
|
50
|
-
"remove-slack-bot-69ey2q.json",
|
|
51
|
-
"explicit-sensei-routing.json",
|
|
52
|
-
"task-overview-web-only-u9z2dy.json",
|
|
53
|
-
"chrome-sign-in-reuse-20xvu9.json",
|
|
54
|
-
"tasks-archive-and-repository-bzacid.json",
|
|
55
|
-
"platform-command-search-3xkgca.json",
|
|
56
|
-
"next-turn-model-c7f3a1.json",
|
|
57
|
-
"personal-task-start-qs4x81.json",
|
|
58
|
-
"personal-crons-cli-tco6eb.json",
|
|
59
|
-
"remove-task-comments.json",
|
|
60
|
-
"task-start-prompt.json",
|
|
61
|
-
"subscription-pools-twenty-445tv2.json",
|
|
62
|
-
"app-stack-start-state-q8m3vd.json",
|
|
63
|
-
"remove-build-macs-r4k8vz.json",
|
|
64
|
-
"sandbox-size-app-stack-t7q2mx.json",
|
|
65
|
-
"session-devices-cli-k7q2wd.json",
|
|
66
|
-
"reels-time-order-hg188c.json",
|
|
67
|
-
"restore-main-sandbox-r7k2qd.json",
|
|
68
|
-
"sensei-device-requests-lwi9jm.json",
|
|
69
|
-
"remediate-cli-dependency-advisories-pf2hbx.json",
|
|
70
|
-
"browser-connections-61kop8.json",
|
|
71
|
-
"cli-integrations-call-wait-text-61kop8.json",
|
|
72
|
-
"member-directory-yhpp82.json",
|
|
73
|
-
"sensei-delegates-cli-k7d2qp.json",
|
|
74
|
-
"sensei-thread-handoff-l2p9e0.json",
|
|
75
|
-
"token-usage-commands-dvg19i.json",
|
|
76
|
-
"sensei-threads-list-r7k2pd.json",
|
|
77
|
-
"crons-without-repositories.json",
|
|
78
|
-
"personal-cron-repositories-api.json",
|
|
79
|
-
"task-label-filters-a7d83e.json",
|
|
80
|
-
"personal-crons-free-njkyqn.json",
|
|
81
|
-
"personal-free-source-choice.json",
|
|
82
|
-
"cli-attachment-limits-from-server-4d9jx0.json",
|
|
83
|
-
"xlarge-32gb-pexslk.json",
|
|
84
|
-
"remove-sensei-main-chat-r7m2c4.json",
|
|
85
|
-
"incoming-message-card-actions-f94ghc.json",
|
|
86
|
-
"incoming-message-card-covers-f94ghc.json",
|
|
87
|
-
"personal-message-watching-f94ghc.json",
|
|
88
|
-
"sign-in-watch-every-site-0q7zuw.json",
|
|
89
|
-
"batch-merging-cli-7k2p9w.json",
|
|
90
|
-
"batch-merging-merge-commits-4hq8tz.json",
|
|
91
|
-
"unify-sensei-messages.json",
|
|
92
|
-
"sensei-job-result-cards-cs856o.json",
|
|
93
|
-
"sessions-qa-cli-r4m8x2.json",
|
|
94
|
-
"providers-everywhere-cku2kx.json",
|
|
95
|
-
"session-deploy-wait-state.json",
|
|
96
|
-
"cron-report-to-r7k2qd.json",
|
|
97
|
-
"workspace-default-auto-fl0z1h.json",
|
|
98
|
-
"sensei-merge-any-member-b8k4qz.json",
|
|
99
|
-
"sensei-notifications-connect-jtsgzr.json",
|
|
100
|
-
"whatsapp-reply-card-approval-jtsgzr.json",
|
|
101
|
-
"sensei-job-names-6t98hq.json",
|
|
102
|
-
"publish-cli-as-kosuke-ai-kosuke-5wkgsv.json",
|
|
103
|
-
"phone-integration-availability-k2.json"
|
|
46
|
+
"personal-shared-tasks-het0s9.json",
|
|
47
|
+
"cli-readme-skill-runs-p3m8vd.json"
|
|
104
48
|
]
|
|
105
49
|
}
|
|
106
50
|
}
|