@kosuke-ai/kosuke 1.0.68 → 1.0.69

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.69
4
+
5
+ - Add `kosuke mac shell --no-screen` and `--build-slot`, for commands that drive no UI, and `kosuke devices locks create --build-slot` to wait for a build slot.
6
+ - `kosuke workspaces sandbox-limit get` no longer takes `--project-id` or `--session-id`: a warming pool sandbox holds no slot in any space.
7
+ - `kosuke sensei cards set` takes `media` on a quoted message or an evidence row, which draws the message's pictures on the card.
8
+
3
9
  ## 1.0.68
4
10
 
5
11
  - `kosuke integrations list` prints the platform's line naming integrations you can still connect, even when none is connected yet.
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "locks",
7
7
  "create"
8
8
  ],
9
- "summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete.",
9
+ "summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete. While a QA run is open, the wait comes off its budget, up to 60 minutes per run, and lasts at most what is left of those 60 minutes: qaLine says the minutes waited and whether ceilingReached.",
10
10
  "pathParams": [
11
11
  "deviceId"
12
12
  ],
@@ -19,6 +19,13 @@ export const operation = {
19
19
  "kind": "integer",
20
20
  "required": false,
21
21
  "description": "How long to wait, in seconds: 300 by default, at most 600."
22
+ },
23
+ {
24
+ "name": "buildSlot",
25
+ "flag": "build-slot",
26
+ "kind": "string",
27
+ "required": false,
28
+ "description": "Wait for this named build slot, one of 2 per device, instead of the screen. Answers granted true once it is yours: start the build with `kosuke mac shell --no-screen --build-slot <name>`."
22
29
  }
23
30
  ],
24
31
  "required": true
@@ -37,6 +37,20 @@ export const operation = {
37
37
  "kind": "integer",
38
38
  "required": false,
39
39
  "description": "60000 by default, at most 600000."
40
+ },
41
+ {
42
+ "name": "screen",
43
+ "flag": "screen",
44
+ "kind": "boolean",
45
+ "required": false,
46
+ "description": "Send false (--no-screen) from a Chat Session for a command that drives no UI: it takes no screen lock and never joins the line. Never use it for a command that opens, focuses or films anything. Without it the call takes the screen."
47
+ },
48
+ {
49
+ "name": "buildSlot",
50
+ "flag": "build-slot",
51
+ "kind": "string",
52
+ "required": false,
53
+ "description": "With --no-screen, for a long build: holds the named build slot, one of 2 per device, for this call and a while after it. The next call naming it renews the slot. BUILD_SLOT_BUSY when both are taken: wait with `kosuke devices locks create <deviceId> --build-slot <name>`."
40
54
  }
41
55
  ],
42
56
  "required": true
@@ -30,7 +30,7 @@ export const operation = {
30
30
  "required": true,
31
31
  "shape": [
32
32
  "T[] (max 12), each T one of:",
33
- "{type: \"text\", role?: \"message\"|\"draft\", text: string}",
33
+ "{type: \"text\", role?: \"message\"|\"draft\", text: string, media?: {eventId: string, parts: integer[] (max 10)}}",
34
34
  "{type: \"facts\", rows: {label: string, value: string}[] (max 20)}",
35
35
  "{type: \"qa_report\", status?: \"passed\"|\"failed\"|\"blocked\"|\"skipped\"|\"running\", reason?: string, passed: integer, total: integer, sections: {title: string, passed: integer, total: integer, note?: string}[] (max 30), failed: {section: string, item: string, reason: string}[] (max 30), links: {label: string, href: string}[] (max 8)}",
36
36
  "{type: \"diff\", summary: string, text?: {current: string, proposed: string}, files: {path: string, added: integer, removed: integer}[] (max 50)}",
@@ -41,7 +41,7 @@ export const operation = {
41
41
  "{type: \"merge_plan\", rows: {sessionId?: string, number: integer, title: string, headSha: string, action: \"merge\"|\"sync\"|\"wait\", why: string}[] (max 30)}",
42
42
  "{type: \"deploy_variables\", deployJobId: string, pauseId: string}",
43
43
  "{type: \"links\", items: {label: string, href: string}[] (max 8)}",
44
- "{type: \"evidence\", artifacts?: ({sessionId: string, slug: string, caption?: string} | {cronId: string, runId: string, slug: string, caption?: string} | {fileId: string, version: integer, caption?: string})[] (max 2), rows: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", eventId?: string, label: string, result: string, open?: boolean, details?: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", name: string, note?: string, href?: string}[] (max 30)}[] (max 12)}",
44
+ "{type: \"evidence\", artifacts?: ({sessionId: string, slug: string, caption?: string} | {cronId: string, runId: string, slug: string, caption?: string} | {fileId: string, version: integer, caption?: string})[] (max 2), rows: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", eventId?: string, label: string, result: string, media?: {eventId: string, parts: integer[] (max 10)}, open?: boolean, details?: {state: \"passed\"|\"failed\"|\"waiting\"|\"info\", name: string, note?: string, href?: string}[] (max 30)}[] (max 12)}",
45
45
  "{type: \"changes\", title: string, items: {change: \"removed\"|\"added\"|\"kept\", text: string}[] (max 20)}",
46
46
  "{type: \"messages\", caption?: string, rows: {network: \"gmail\"|\"slack\"|\"telegram\"|\"whatsapp\"|\"linkedin\"|\"x\", sender: string, subject: string, count: integer, at: string, link?: string, connection?: string, conversation?: string}[] (max 12), older?: {conversations: integer, messages: integer}}",
47
47
  "{type: \"person\", heading?: string, name: string, line?: string}",
@@ -10,22 +10,7 @@ export const operation = {
10
10
  "pathParams": [
11
11
  "workspaceId"
12
12
  ],
13
- "query": [
14
- {
15
- "name": "projectId",
16
- "flag": "project-id",
17
- "kind": "string",
18
- "required": false,
19
- "description": "The project a new Todo task would start in. In a Personal space, that project's pool sandboxes still warming are left out: the task runs on one of them."
20
- },
21
- {
22
- "name": "sessionId",
23
- "flag": "session-id",
24
- "kind": "string",
25
- "required": false,
26
- "description": "The Todo task about to start, instead of projectId. Its project's warming pool sandboxes are left out only when the task will run on one: it has no sandbox yet and runs at its project's size."
27
- }
28
- ],
13
+ "query": [],
29
14
  "body": null,
30
15
  "multipart": null,
31
16
  "attachments": false,
package/openapi.json CHANGED
@@ -957,7 +957,7 @@
957
957
  "/api/devices/{deviceId}/lock": {
958
958
  "post": {
959
959
  "operationId": "devicesLocksCreate",
960
- "summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete.",
960
+ "summary": "From a Chat Session, when a mac command answered MAC_BUSY: wait in the device’s line, first come, first served, until the device is this session’s, or the timeout passes. Answers granted true once it is yours: go on with your mac commands. Answers granted false with your position and heldBy (sensei or session) on timeout: run it again. Never call mac commands in a loop instead. Once done with the device, run devices locks delete. While a QA run is open, the wait comes off its budget, up to 60 minutes per run, and lasts at most what is left of those 60 minutes: qaLine says the minutes waited and whether ceilingReached.",
961
961
  "tags": ["devices"],
962
962
  "x-kosuke-command": ["devices", "locks", "create"],
963
963
  "x-kosuke-answer-timeout-ms": 630000,
@@ -985,6 +985,11 @@
985
985
  "type": "integer",
986
986
  "minimum": 1,
987
987
  "maximum": 600
988
+ },
989
+ "buildSlot": {
990
+ "description": "Wait for this named build slot, one of 2 per device, instead of the screen. Answers granted true once it is yours: start the build with `kosuke mac shell --no-screen --build-slot <name>`.",
991
+ "type": "string",
992
+ "pattern": "^[a-z0-9-]{1,32}$"
988
993
  }
989
994
  }
990
995
  }
@@ -2585,6 +2590,15 @@
2585
2590
  "type": "integer",
2586
2591
  "minimum": 1000,
2587
2592
  "maximum": 600000
2593
+ },
2594
+ "screen": {
2595
+ "description": "Send false (--no-screen) from a Chat Session for a command that drives no UI: it takes no screen lock and never joins the line. Never use it for a command that opens, focuses or films anything. Without it the call takes the screen.",
2596
+ "type": "boolean"
2597
+ },
2598
+ "buildSlot": {
2599
+ "description": "With --no-screen, for a long build: holds the named build slot, one of 2 per device, for this call and a while after it. The next call naming it renews the slot. BUILD_SLOT_BUSY when both are taken: wait with `kosuke devices locks create <deviceId> --build-slot <name>`.",
2600
+ "type": "string",
2601
+ "pattern": "^[a-z0-9-]{1,32}$"
2588
2602
  }
2589
2603
  },
2590
2604
  "required": ["command"]
@@ -7810,30 +7824,6 @@
7810
7824
  "type": "string",
7811
7825
  "minLength": 1
7812
7826
  }
7813
- },
7814
- {
7815
- "name": "projectId",
7816
- "in": "query",
7817
- "required": false,
7818
- "description": "The project a new Todo task would start in. In a Personal space, that project's pool sandboxes still warming are left out: the task runs on one of them.",
7819
- "schema": {
7820
- "description": "The project a new Todo task would start in. In a Personal space, that project's pool sandboxes still warming are left out: the task runs on one of them.",
7821
- "type": "string",
7822
- "minLength": 1,
7823
- "maxLength": 128
7824
- }
7825
- },
7826
- {
7827
- "name": "sessionId",
7828
- "in": "query",
7829
- "required": false,
7830
- "description": "The Todo task about to start, instead of projectId. Its project's warming pool sandboxes are left out only when the task will run on one: it has no sandbox yet and runs at its project's size.",
7831
- "schema": {
7832
- "description": "The Todo task about to start, instead of projectId. Its project's warming pool sandboxes are left out only when the task will run on one: it has no sandbox yet and runs at its project's size.",
7833
- "type": "string",
7834
- "minLength": 1,
7835
- "maxLength": 128
7836
- }
7837
7827
  }
7838
7828
  ],
7839
7829
  "responses": {
@@ -20867,6 +20857,29 @@
20867
20857
  "type": "string",
20868
20858
  "minLength": 1,
20869
20859
  "maxLength": 4000
20860
+ },
20861
+ "media": {
20862
+ "type": "object",
20863
+ "properties": {
20864
+ "eventId": {
20865
+ "type": "string",
20866
+ "format": "uuid",
20867
+ "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)$"
20868
+ },
20869
+ "parts": {
20870
+ "minItems": 1,
20871
+ "maxItems": 10,
20872
+ "type": "array",
20873
+ "items": {
20874
+ "type": "integer",
20875
+ "minimum": 0,
20876
+ "maximum": 9
20877
+ }
20878
+ }
20879
+ },
20880
+ "required": ["eventId", "parts"],
20881
+ "additionalProperties": false,
20882
+ "description": "The parts of an incoming message to draw: the event's id, and each part's place in its `parts`, from 0. Only a part with a `preview`."
20870
20883
  }
20871
20884
  },
20872
20885
  "required": ["type", "text"]
@@ -21493,6 +21506,29 @@
21493
21506
  "minLength": 1,
21494
21507
  "maxLength": 200
21495
21508
  },
21509
+ "media": {
21510
+ "type": "object",
21511
+ "properties": {
21512
+ "eventId": {
21513
+ "type": "string",
21514
+ "format": "uuid",
21515
+ "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)$"
21516
+ },
21517
+ "parts": {
21518
+ "minItems": 1,
21519
+ "maxItems": 10,
21520
+ "type": "array",
21521
+ "items": {
21522
+ "type": "integer",
21523
+ "minimum": 0,
21524
+ "maximum": 9
21525
+ }
21526
+ }
21527
+ },
21528
+ "required": ["eventId", "parts"],
21529
+ "additionalProperties": false,
21530
+ "description": "The parts of an incoming message to draw: the event's id, and each part's place in its `parts`, from 0. Only a part with a `preview`."
21531
+ },
21496
21532
  "open": {
21497
21533
  "type": "boolean"
21498
21534
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/kosuke",
3
- "version": "1.0.68",
3
+ "version": "1.0.69",
4
4
  "description": "Sensei platform CLI. The client customers install to drive app.kosuke.ai from their own machine.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -43,12 +43,12 @@
43
43
  "minimatch": "^11.0.1"
44
44
  },
45
45
  "kosukeRelease": {
46
- "sourceCommit": "92bae5b9d69342646960a0658b7dc18a6a6f7f18",
47
- "sourceIdentity": "f30ac61d3bd160e4c3fd4a5c52ebac2c9d9f0a5b18530f7876b0d99245761768",
46
+ "sourceCommit": "ceb4b3071267e04ddac57f358706982b15eb276f",
47
+ "sourceIdentity": "96dde612ee7758ae994f5e978b9811875197f23d1e7d3141e843fb6e2b71d812",
48
48
  "fragments": [
49
- "integrations-list-connect-offer-arky02.json",
50
- "user-settings-time-zone-t4pz5q.json",
51
- "batch-merging-get-mode-only.json"
49
+ "mac-shell-no-screen-zipc5l.json",
50
+ "sandbox-limit-no-project-filter-c6pcx8.json",
51
+ "watched-message-media-wp0sty.json"
52
52
  ]
53
53
  }
54
54
  }