@kosuke-ai/kosuke 1.0.47 → 1.0.48
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 +7 -0
- package/README.md +6 -2
- package/dist/commands/skill-runs.js +30 -11
- package/dist/generated/commands/index.js +111 -107
- package/dist/generated/commands/sensei/threads-create.js +35 -0
- package/dist/generated/commands/sessions/env-sync.js +21 -0
- package/dist/generated/commands/sessions/qa-set.js +1 -1
- package/dist/program.js +1 -4
- package/dist/runtime/attach.js +13 -51
- package/openapi.json +135 -1
- package/package.json +7 -5
- package/dist/runtime/aliases.js +0 -508
- package/dist/runtime/former-commands.js +0 -89
package/openapi.json
CHANGED
|
@@ -12332,6 +12332,72 @@
|
|
|
12332
12332
|
}
|
|
12333
12333
|
}
|
|
12334
12334
|
},
|
|
12335
|
+
"/api/projects/{projectId}/chat-sessions/{sessionId}/env-sync": {
|
|
12336
|
+
"post": {
|
|
12337
|
+
"operationId": "sessionsEnvSync",
|
|
12338
|
+
"summary": "Deliver the project's saved environment variables, with its services and setup commands, to a chat session's running sandbox and restart its setup and services, so a variable added after the sandbox booted reaches them. Answers status synced with the variable names, never their values, once the services answer again, or status running when setup outlasts ten minutes and the sync goes on. Refused, never queued: 409 TURN_RUNNING while a turn runs, SANDBOX_NOT_RUNNING when the sandbox is not up (it is not woken), SANDBOX_PROVISIONING or SANDBOX_NOT_READY while it is created or boots, APP_STACK_STARTING during an App stack start and SANDBOX_BUSY while another update changes it; 422 ENV_SYNC_FAILED when setup or a service did not come back.",
|
|
12339
|
+
"tags": ["sessions"],
|
|
12340
|
+
"x-kosuke-command": ["sessions", "env", "sync"],
|
|
12341
|
+
"x-kosuke-answer-timeout-ms": 660000,
|
|
12342
|
+
"x-kosuke-sandbox-token": true,
|
|
12343
|
+
"x-kosuke-cron-token": true,
|
|
12344
|
+
"x-kosuke-sensei-token": true,
|
|
12345
|
+
"parameters": [
|
|
12346
|
+
{
|
|
12347
|
+
"name": "projectId",
|
|
12348
|
+
"in": "path",
|
|
12349
|
+
"required": true,
|
|
12350
|
+
"schema": {
|
|
12351
|
+
"type": "string",
|
|
12352
|
+
"format": "uuid",
|
|
12353
|
+
"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)$"
|
|
12354
|
+
}
|
|
12355
|
+
},
|
|
12356
|
+
{
|
|
12357
|
+
"name": "sessionId",
|
|
12358
|
+
"in": "path",
|
|
12359
|
+
"required": true,
|
|
12360
|
+
"schema": {
|
|
12361
|
+
"type": "string",
|
|
12362
|
+
"format": "uuid",
|
|
12363
|
+
"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)$"
|
|
12364
|
+
}
|
|
12365
|
+
}
|
|
12366
|
+
],
|
|
12367
|
+
"responses": {
|
|
12368
|
+
"2XX": {
|
|
12369
|
+
"description": "Success envelope",
|
|
12370
|
+
"content": {
|
|
12371
|
+
"application/json": {
|
|
12372
|
+
"schema": {
|
|
12373
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
12374
|
+
}
|
|
12375
|
+
}
|
|
12376
|
+
}
|
|
12377
|
+
},
|
|
12378
|
+
"4XX": {
|
|
12379
|
+
"description": "Error envelope",
|
|
12380
|
+
"content": {
|
|
12381
|
+
"application/json": {
|
|
12382
|
+
"schema": {
|
|
12383
|
+
"$ref": "#/components/schemas/ApiError"
|
|
12384
|
+
}
|
|
12385
|
+
}
|
|
12386
|
+
}
|
|
12387
|
+
},
|
|
12388
|
+
"5XX": {
|
|
12389
|
+
"description": "Error envelope",
|
|
12390
|
+
"content": {
|
|
12391
|
+
"application/json": {
|
|
12392
|
+
"schema": {
|
|
12393
|
+
"$ref": "#/components/schemas/ApiError"
|
|
12394
|
+
}
|
|
12395
|
+
}
|
|
12396
|
+
}
|
|
12397
|
+
}
|
|
12398
|
+
}
|
|
12399
|
+
}
|
|
12400
|
+
},
|
|
12335
12401
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/go-ahead": {
|
|
12336
12402
|
"put": {
|
|
12337
12403
|
"operationId": "sessionsGoAheadSet",
|
|
@@ -14472,7 +14538,7 @@
|
|
|
14472
14538
|
"/api/projects/{projectId}/chat-sessions/{sessionId}/qa-passed": {
|
|
14473
14539
|
"put": {
|
|
14474
14540
|
"operationId": "sessionsQaSet",
|
|
14475
|
-
"summary": "Record the commit QA passed on as the session's qaPassedSha: a member's override
|
|
14541
|
+
"summary": "Record the commit QA passed on as the session's qaPassedSha: a member's override. `sessions qa runs finish` records it when the whole checklist passed. A pull request is done when qaPassedSha equals its head.",
|
|
14476
14542
|
"tags": ["sessions"],
|
|
14477
14543
|
"x-kosuke-command": ["sessions", "qa", "set"],
|
|
14478
14544
|
"x-kosuke-sandbox-token": true,
|
|
@@ -24326,6 +24392,74 @@
|
|
|
24326
24392
|
}
|
|
24327
24393
|
}
|
|
24328
24394
|
},
|
|
24395
|
+
"/api/sensei/thread-create": {
|
|
24396
|
+
"post": {
|
|
24397
|
+
"operationId": "senseiThreadsCreate",
|
|
24398
|
+
"summary": "Open a new thread for the member, at any point of this Turn, on a prompt you write. Only Sensei calls it, for a separate topic that should not go on in this thread. Never for the asks of the member’s message that started this thread: `sensei threads split` does that. The new thread gets its own Turn, which may read Queued, and links back here; nothing of this thread goes with it, so the prompt says all it needs. A Turn opens at most 3 threads, and so do the threads opened from one thread in all. Answers the new thread id and turn id: do not do that work here.",
|
|
24399
|
+
"tags": ["sensei"],
|
|
24400
|
+
"x-kosuke-command": ["sensei", "threads", "create"],
|
|
24401
|
+
"x-kosuke-sandbox-token": true,
|
|
24402
|
+
"x-kosuke-cron-token": true,
|
|
24403
|
+
"x-kosuke-sensei-token": true,
|
|
24404
|
+
"requestBody": {
|
|
24405
|
+
"required": true,
|
|
24406
|
+
"content": {
|
|
24407
|
+
"application/json": {
|
|
24408
|
+
"schema": {
|
|
24409
|
+
"type": "object",
|
|
24410
|
+
"properties": {
|
|
24411
|
+
"prompt": {
|
|
24412
|
+
"type": "string",
|
|
24413
|
+
"minLength": 1,
|
|
24414
|
+
"maxLength": 20000,
|
|
24415
|
+
"description": "What the new thread’s Turn does, whole, in words that stand without this thread: it reads nothing else of it."
|
|
24416
|
+
},
|
|
24417
|
+
"title": {
|
|
24418
|
+
"description": "A short title for the new thread. Without it, the thread is named by the prompt.",
|
|
24419
|
+
"type": "string",
|
|
24420
|
+
"minLength": 1,
|
|
24421
|
+
"maxLength": 200
|
|
24422
|
+
}
|
|
24423
|
+
},
|
|
24424
|
+
"required": ["prompt"]
|
|
24425
|
+
}
|
|
24426
|
+
}
|
|
24427
|
+
}
|
|
24428
|
+
},
|
|
24429
|
+
"responses": {
|
|
24430
|
+
"2XX": {
|
|
24431
|
+
"description": "Success envelope",
|
|
24432
|
+
"content": {
|
|
24433
|
+
"application/json": {
|
|
24434
|
+
"schema": {
|
|
24435
|
+
"$ref": "#/components/schemas/ApiSuccess"
|
|
24436
|
+
}
|
|
24437
|
+
}
|
|
24438
|
+
}
|
|
24439
|
+
},
|
|
24440
|
+
"4XX": {
|
|
24441
|
+
"description": "Error envelope",
|
|
24442
|
+
"content": {
|
|
24443
|
+
"application/json": {
|
|
24444
|
+
"schema": {
|
|
24445
|
+
"$ref": "#/components/schemas/ApiError"
|
|
24446
|
+
}
|
|
24447
|
+
}
|
|
24448
|
+
}
|
|
24449
|
+
},
|
|
24450
|
+
"5XX": {
|
|
24451
|
+
"description": "Error envelope",
|
|
24452
|
+
"content": {
|
|
24453
|
+
"application/json": {
|
|
24454
|
+
"schema": {
|
|
24455
|
+
"$ref": "#/components/schemas/ApiError"
|
|
24456
|
+
}
|
|
24457
|
+
}
|
|
24458
|
+
}
|
|
24459
|
+
}
|
|
24460
|
+
}
|
|
24461
|
+
}
|
|
24462
|
+
},
|
|
24329
24463
|
"/api/sensei/thread-move": {
|
|
24330
24464
|
"post": {
|
|
24331
24465
|
"operationId": "senseiThreadsMove",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kosuke-ai/kosuke",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
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,11 +40,13 @@
|
|
|
40
40
|
"vitest": "^4.1.12"
|
|
41
41
|
},
|
|
42
42
|
"kosukeRelease": {
|
|
43
|
-
"sourceCommit": "
|
|
44
|
-
"sourceIdentity": "
|
|
43
|
+
"sourceCommit": "f75c0ef51a675f14fa5bcc79de7d275f7084b580",
|
|
44
|
+
"sourceIdentity": "f07745a38e5f377026b443e17377c207475f86d04bec95ddce5886fb7adc9ffd",
|
|
45
45
|
"fragments": [
|
|
46
|
-
"
|
|
47
|
-
"
|
|
46
|
+
"command-grammar-aliases-removed-mlwinm.json",
|
|
47
|
+
"sensei-threads-create-puzuue.json",
|
|
48
|
+
"session-env-sync-bk2sgu.json",
|
|
49
|
+
"skill-marker-result-help-pkivi6.json"
|
|
48
50
|
]
|
|
49
51
|
}
|
|
50
52
|
}
|