@kosuke-ai/cli 5.6.2 → 5.6.5

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.
@@ -22,5 +22,5 @@ export const operation = {
22
22
  "sandboxToken": false,
23
23
  "orchestratorToken": false,
24
24
  "cronToken": false,
25
- "leadToken": false
25
+ "leadToken": true
26
26
  };
@@ -21,5 +21,5 @@ export const operation = {
21
21
  "sandboxToken": false,
22
22
  "orchestratorToken": false,
23
23
  "cronToken": false,
24
- "leadToken": false
24
+ "leadToken": true
25
25
  };
@@ -83,74 +83,76 @@ import { operation as o81 } from './sessions/git-state.js';
83
83
  import { operation as o82 } from './sessions/jobs-cancel.js';
84
84
  import { operation as o83 } from './sessions/jobs-get.js';
85
85
  import { operation as o84 } from './sessions/jobs-list.js';
86
- import { operation as o85 } from './sessions/labels-set.js';
87
- import { operation as o86 } from './sessions/list.js';
88
- import { operation as o87 } from './sessions/mark-read.js';
89
- import { operation as o88 } from './sessions/messages.js';
90
- import { operation as o89 } from './sessions/needs-you.js';
91
- import { operation as o90 } from './sessions/queue-delete.js';
92
- import { operation as o91 } from './sessions/queue-list.js';
93
- import { operation as o92 } from './sessions/queue-move.js';
94
- import { operation as o93 } from './sessions/queue-resume.js';
95
- import { operation as o94 } from './sessions/queue-send.js';
96
- import { operation as o95 } from './sessions/queue-steer.js';
97
- import { operation as o96 } from './sessions/queue-update.js';
98
- import { operation as o97 } from './sessions/runtime-command.js';
99
- import { operation as o98 } from './sessions/search.js';
100
- import { operation as o99 } from './sessions/send.js';
101
- import { operation as o100 } from './sessions/steer.js';
102
- import { operation as o101 } from './sessions/title-generate.js';
103
- import { operation as o102 } from './sessions/update.js';
104
- import { operation as o103 } from './user/auth-token-revoke.js';
105
- import { operation as o104 } from './user/plugins-list.js';
106
- import { operation as o105 } from './user/plugins-update.js';
107
- import { operation as o106 } from './user/profile.js';
108
- import { operation as o107 } from './user/push-devices-register.js';
109
- import { operation as o108 } from './user/push-devices-remove.js';
110
- import { operation as o109 } from './user/skills-create.js';
111
- import { operation as o110 } from './user/skills-delete.js';
112
- import { operation as o111 } from './user/skills-get.js';
113
- import { operation as o112 } from './user/skills-list.js';
114
- import { operation as o113 } from './user/skills-update.js';
115
- import { operation as o114 } from './user/subscriptions-delete.js';
116
- import { operation as o115 } from './user/subscriptions-get.js';
117
- import { operation as o116 } from './user/subscriptions-login-claude-complete.js';
118
- import { operation as o117 } from './user/subscriptions-login-claude-start.js';
119
- import { operation as o118 } from './user/subscriptions-login-codex-complete.js';
120
- import { operation as o119 } from './user/subscriptions-login-codex-start.js';
121
- import { operation as o120 } from './user/subscriptions-set-default-model.js';
122
- import { operation as o121 } from './user/subscriptions-set-key.js';
123
- import { operation as o122 } from './user/subscriptions-usage.js';
124
- import { operation as o123 } from './workspaces/access-status.js';
125
- import { operation as o124 } from './workspaces/ai-provider-get.js';
126
- import { operation as o125 } from './workspaces/ai-provider-remove.js';
127
- import { operation as o126 } from './workspaces/ai-provider-set.js';
128
- import { operation as o127 } from './workspaces/ai-provider-usage-claude.js';
129
- import { operation as o128 } from './workspaces/ai-provider-usage-codex.js';
130
- import { operation as o129 } from './workspaces/ai-provider-usage-coding-plan.js';
131
- import { operation as o130 } from './workspaces/credits.js';
132
- import { operation as o131 } from './workspaces/get.js';
133
- import { operation as o132 } from './workspaces/getting-started-get.js';
134
- import { operation as o133 } from './workspaces/getting-started-update.js';
135
- import { operation as o134 } from './workspaces/integrations-sentry-get.js';
136
- import { operation as o135 } from './workspaces/integrations-sentry-remove.js';
137
- import { operation as o136 } from './workspaces/integrations-slack-get.js';
138
- import { operation as o137 } from './workspaces/list.js';
139
- import { operation as o138 } from './workspaces/members.js';
140
- import { operation as o139 } from './workspaces/plugins-list.js';
141
- import { operation as o140 } from './workspaces/plugins-update.js';
142
- import { operation as o141 } from './workspaces/provider-login-claude-complete.js';
143
- import { operation as o142 } from './workspaces/provider-login-claude-start.js';
144
- import { operation as o143 } from './workspaces/provider-login-codex-complete.js';
145
- import { operation as o144 } from './workspaces/provider-login-codex-start.js';
146
- import { operation as o145 } from './workspaces/sandbox-limit.js';
147
- import { operation as o146 } from './workspaces/skills-create.js';
148
- import { operation as o147 } from './workspaces/skills-delete.js';
149
- import { operation as o148 } from './workspaces/skills-get.js';
150
- import { operation as o149 } from './workspaces/skills-list.js';
151
- import { operation as o150 } from './workspaces/skills-update.js';
152
- import { operation as o151 } from './workspaces/stop-sandboxes.js';
153
- import { operation as o152 } from './workspaces/usage.js';
86
+ import { operation as o85 } from './sessions/labels-edit.js';
87
+ import { operation as o86 } from './sessions/labels-set.js';
88
+ import { operation as o87 } from './sessions/list.js';
89
+ import { operation as o88 } from './sessions/mark-read.js';
90
+ import { operation as o89 } from './sessions/messages.js';
91
+ import { operation as o90 } from './sessions/needs-you.js';
92
+ import { operation as o91 } from './sessions/queue-delete.js';
93
+ import { operation as o92 } from './sessions/queue-list.js';
94
+ import { operation as o93 } from './sessions/queue-move.js';
95
+ import { operation as o94 } from './sessions/queue-resume.js';
96
+ import { operation as o95 } from './sessions/queue-send.js';
97
+ import { operation as o96 } from './sessions/queue-steer.js';
98
+ import { operation as o97 } from './sessions/queue-update.js';
99
+ import { operation as o98 } from './sessions/runtime-command.js';
100
+ import { operation as o99 } from './sessions/search.js';
101
+ import { operation as o100 } from './sessions/send.js';
102
+ import { operation as o101 } from './sessions/steer.js';
103
+ import { operation as o102 } from './sessions/title-generate.js';
104
+ import { operation as o103 } from './sessions/update.js';
105
+ import { operation as o104 } from './user/auth-token-revoke.js';
106
+ import { operation as o105 } from './user/plugins-list.js';
107
+ import { operation as o106 } from './user/plugins-update.js';
108
+ import { operation as o107 } from './user/profile.js';
109
+ import { operation as o108 } from './user/push-devices-register.js';
110
+ import { operation as o109 } from './user/push-devices-remove.js';
111
+ import { operation as o110 } from './user/skills-create.js';
112
+ import { operation as o111 } from './user/skills-delete.js';
113
+ import { operation as o112 } from './user/skills-get.js';
114
+ import { operation as o113 } from './user/skills-list.js';
115
+ import { operation as o114 } from './user/skills-update.js';
116
+ import { operation as o115 } from './user/subscriptions-delete.js';
117
+ import { operation as o116 } from './user/subscriptions-get.js';
118
+ import { operation as o117 } from './user/subscriptions-login-claude-complete.js';
119
+ import { operation as o118 } from './user/subscriptions-login-claude-start.js';
120
+ import { operation as o119 } from './user/subscriptions-login-codex-complete.js';
121
+ import { operation as o120 } from './user/subscriptions-login-codex-start.js';
122
+ import { operation as o121 } from './user/subscriptions-set-default-model.js';
123
+ import { operation as o122 } from './user/subscriptions-set-key.js';
124
+ import { operation as o123 } from './user/subscriptions-usage.js';
125
+ import { operation as o124 } from './workspaces/access-status.js';
126
+ import { operation as o125 } from './workspaces/ai-provider-get.js';
127
+ import { operation as o126 } from './workspaces/ai-provider-remove.js';
128
+ import { operation as o127 } from './workspaces/ai-provider-set.js';
129
+ import { operation as o128 } from './workspaces/ai-provider-usage-claude.js';
130
+ import { operation as o129 } from './workspaces/ai-provider-usage-codex.js';
131
+ import { operation as o130 } from './workspaces/ai-provider-usage-coding-plan.js';
132
+ import { operation as o131 } from './workspaces/artifacts.js';
133
+ import { operation as o132 } from './workspaces/credits.js';
134
+ import { operation as o133 } from './workspaces/get.js';
135
+ import { operation as o134 } from './workspaces/getting-started-get.js';
136
+ import { operation as o135 } from './workspaces/getting-started-update.js';
137
+ import { operation as o136 } from './workspaces/integrations-sentry-get.js';
138
+ import { operation as o137 } from './workspaces/integrations-sentry-remove.js';
139
+ import { operation as o138 } from './workspaces/integrations-slack-get.js';
140
+ import { operation as o139 } from './workspaces/list.js';
141
+ import { operation as o140 } from './workspaces/members.js';
142
+ import { operation as o141 } from './workspaces/plugins-list.js';
143
+ import { operation as o142 } from './workspaces/plugins-update.js';
144
+ import { operation as o143 } from './workspaces/provider-login-claude-complete.js';
145
+ import { operation as o144 } from './workspaces/provider-login-claude-start.js';
146
+ import { operation as o145 } from './workspaces/provider-login-codex-complete.js';
147
+ import { operation as o146 } from './workspaces/provider-login-codex-start.js';
148
+ import { operation as o147 } from './workspaces/sandbox-limit.js';
149
+ import { operation as o148 } from './workspaces/skills-create.js';
150
+ import { operation as o149 } from './workspaces/skills-delete.js';
151
+ import { operation as o150 } from './workspaces/skills-get.js';
152
+ import { operation as o151 } from './workspaces/skills-list.js';
153
+ import { operation as o152 } from './workspaces/skills-update.js';
154
+ import { operation as o153 } from './workspaces/stop-sandboxes.js';
155
+ import { operation as o154 } from './workspaces/usage.js';
154
156
  export const operations = [
155
157
  o0,
156
158
  o1,
@@ -305,4 +307,6 @@ export const operations = [
305
307
  o150,
306
308
  o151,
307
309
  o152,
310
+ o153,
311
+ o154,
308
312
  ];
@@ -0,0 +1,48 @@
1
+ export const operation = {
2
+ "method": "patch",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/labels",
4
+ "command": [
5
+ "sessions",
6
+ "labels",
7
+ "edit"
8
+ ],
9
+ "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 sandbox may edit only its own session. A session with a pull request syncs them to it in the background while labelsSyncPending is true; one without gets them when its pull request opens.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": {
16
+ "fields": [
17
+ {
18
+ "name": "add",
19
+ "flag": "add",
20
+ "kind": "json",
21
+ "required": false,
22
+ "description": "JSON array of labels the session gains. A name in both add and remove is added."
23
+ },
24
+ {
25
+ "name": "remove",
26
+ "flag": "remove",
27
+ "kind": "json",
28
+ "required": false,
29
+ "description": "JSON array of labels the session loses. A name it does not carry is ignored."
30
+ },
31
+ {
32
+ "name": "color",
33
+ "flag": "color",
34
+ "kind": "string",
35
+ "required": false,
36
+ "description": "Six hex digits, with or without a leading #. Sets the initial project color only for newly created labels in add. Existing label colors stay unchanged."
37
+ }
38
+ ],
39
+ "required": true
40
+ },
41
+ "multipart": null,
42
+ "attachments": false,
43
+ "anonymous": false,
44
+ "sandboxToken": true,
45
+ "orchestratorToken": false,
46
+ "cronToken": false,
47
+ "leadToken": true
48
+ };
@@ -0,0 +1,29 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/organizations/{workspaceId}/artifacts/search",
4
+ "command": [
5
+ "workspaces",
6
+ "artifacts"
7
+ ],
8
+ "summary": "Search the Artifacts of a workspace by title, across its Chat Sessions and its Cron Runs. Rows only, each naming the session or run it was written in; read one with `sessions artifacts get` or `crons runs artifacts get`.",
9
+ "pathParams": [
10
+ "workspaceId"
11
+ ],
12
+ "query": [
13
+ {
14
+ "name": "q",
15
+ "flag": "q",
16
+ "kind": "string",
17
+ "required": false,
18
+ "description": "Search text, trimmed. Empty or absent returns the most recent artifacts."
19
+ }
20
+ ],
21
+ "body": null,
22
+ "multipart": null,
23
+ "attachments": false,
24
+ "anonymous": false,
25
+ "sandboxToken": false,
26
+ "orchestratorToken": false,
27
+ "cronToken": false,
28
+ "leadToken": true
29
+ };
package/openapi.json CHANGED
@@ -1097,6 +1097,68 @@
1097
1097
  }
1098
1098
  }
1099
1099
  },
1100
+ "/api/organizations/{workspaceId}/artifacts/search": {
1101
+ "get": {
1102
+ "operationId": "workspacesArtifacts",
1103
+ "summary": "Search the Artifacts of a workspace by title, across its Chat Sessions and its Cron Runs. Rows only, each naming the session or run it was written in; read one with `sessions artifacts get` or `crons runs artifacts get`.",
1104
+ "tags": ["workspaces"],
1105
+ "x-kosuke-command": ["workspaces", "artifacts"],
1106
+ "x-kosuke-lead-token": true,
1107
+ "parameters": [
1108
+ {
1109
+ "name": "workspaceId",
1110
+ "in": "path",
1111
+ "required": true,
1112
+ "schema": {
1113
+ "type": "string",
1114
+ "minLength": 1
1115
+ }
1116
+ },
1117
+ {
1118
+ "name": "q",
1119
+ "in": "query",
1120
+ "required": false,
1121
+ "description": "Search text, trimmed. Empty or absent returns the most recent artifacts.",
1122
+ "schema": {
1123
+ "description": "Search text, trimmed. Empty or absent returns the most recent artifacts.",
1124
+ "type": "string"
1125
+ }
1126
+ }
1127
+ ],
1128
+ "responses": {
1129
+ "2XX": {
1130
+ "description": "Success envelope",
1131
+ "content": {
1132
+ "application/json": {
1133
+ "schema": {
1134
+ "$ref": "#/components/schemas/ApiSuccess"
1135
+ }
1136
+ }
1137
+ }
1138
+ },
1139
+ "4XX": {
1140
+ "description": "Error envelope",
1141
+ "content": {
1142
+ "application/json": {
1143
+ "schema": {
1144
+ "$ref": "#/components/schemas/ApiError"
1145
+ }
1146
+ }
1147
+ }
1148
+ },
1149
+ "5XX": {
1150
+ "description": "Error envelope",
1151
+ "content": {
1152
+ "application/json": {
1153
+ "schema": {
1154
+ "$ref": "#/components/schemas/ApiError"
1155
+ }
1156
+ }
1157
+ }
1158
+ }
1159
+ }
1160
+ }
1161
+ },
1100
1162
  "/api/organizations/{workspaceId}/credits": {
1101
1163
  "get": {
1102
1164
  "operationId": "workspacesCredits",
@@ -1951,6 +2013,7 @@
1951
2013
  "summary": "List the Artifacts a run of a cron published, most recently changed first. Rows only: a body or a file url comes from reading one.",
1952
2014
  "tags": ["crons"],
1953
2015
  "x-kosuke-command": ["crons", "runs", "artifacts", "list"],
2016
+ "x-kosuke-lead-token": true,
1954
2017
  "parameters": [
1955
2018
  {
1956
2019
  "name": "workspaceId",
@@ -2022,6 +2085,7 @@
2022
2085
  "summary": "Read one Artifact of a run of a cron: a markdown or html one carries its body, an image or a video a presigned url, its media type and its size.",
2023
2086
  "tags": ["crons"],
2024
2087
  "x-kosuke-command": ["crons", "runs", "artifacts", "get"],
2088
+ "x-kosuke-lead-token": true,
2025
2089
  "parameters": [
2026
2090
  {
2027
2091
  "name": "workspaceId",
@@ -5503,6 +5567,106 @@
5503
5567
  }
5504
5568
  }
5505
5569
  }
5570
+ },
5571
+ "patch": {
5572
+ "operationId": "sessionsLabelsEdit",
5573
+ "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 sandbox may edit only its own session. A session with a pull request syncs them to it in the background while labelsSyncPending is true; one without gets them when its pull request opens.",
5574
+ "tags": ["sessions"],
5575
+ "x-kosuke-command": ["sessions", "labels", "edit"],
5576
+ "x-kosuke-sandbox-token": true,
5577
+ "x-kosuke-lead-token": true,
5578
+ "parameters": [
5579
+ {
5580
+ "name": "projectId",
5581
+ "in": "path",
5582
+ "required": true,
5583
+ "schema": {
5584
+ "type": "string",
5585
+ "format": "uuid",
5586
+ "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)$"
5587
+ }
5588
+ },
5589
+ {
5590
+ "name": "sessionId",
5591
+ "in": "path",
5592
+ "required": true,
5593
+ "schema": {
5594
+ "type": "string",
5595
+ "format": "uuid",
5596
+ "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)$"
5597
+ }
5598
+ }
5599
+ ],
5600
+ "requestBody": {
5601
+ "required": true,
5602
+ "content": {
5603
+ "application/json": {
5604
+ "schema": {
5605
+ "type": "object",
5606
+ "properties": {
5607
+ "add": {
5608
+ "description": "JSON array of labels the session gains. A name in both add and remove is added.",
5609
+ "maxItems": 20,
5610
+ "type": "array",
5611
+ "items": {
5612
+ "type": "string",
5613
+ "minLength": 1,
5614
+ "maxLength": 50,
5615
+ "pattern": "^[^\\x00-\\x1f\\x7f]+$"
5616
+ }
5617
+ },
5618
+ "remove": {
5619
+ "description": "JSON array of labels the session loses. A name it does not carry is ignored.",
5620
+ "maxItems": 20,
5621
+ "type": "array",
5622
+ "items": {
5623
+ "type": "string",
5624
+ "minLength": 1,
5625
+ "maxLength": 50,
5626
+ "pattern": "^[^\\x00-\\x1f\\x7f]+$"
5627
+ }
5628
+ },
5629
+ "color": {
5630
+ "description": "Six hex digits, with or without a leading #. Sets the initial project color only for newly created labels in add. Existing label colors stay unchanged.",
5631
+ "type": "string"
5632
+ }
5633
+ }
5634
+ }
5635
+ }
5636
+ }
5637
+ },
5638
+ "responses": {
5639
+ "2XX": {
5640
+ "description": "Success envelope",
5641
+ "content": {
5642
+ "application/json": {
5643
+ "schema": {
5644
+ "$ref": "#/components/schemas/ApiSuccess"
5645
+ }
5646
+ }
5647
+ }
5648
+ },
5649
+ "4XX": {
5650
+ "description": "Error envelope",
5651
+ "content": {
5652
+ "application/json": {
5653
+ "schema": {
5654
+ "$ref": "#/components/schemas/ApiError"
5655
+ }
5656
+ }
5657
+ }
5658
+ },
5659
+ "5XX": {
5660
+ "description": "Error envelope",
5661
+ "content": {
5662
+ "application/json": {
5663
+ "schema": {
5664
+ "$ref": "#/components/schemas/ApiError"
5665
+ }
5666
+ }
5667
+ }
5668
+ }
5669
+ }
5506
5670
  }
5507
5671
  },
5508
5672
  "/api/projects/{projectId}/chat-sessions/{sessionId}/messages": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/cli",
3
- "version": "5.6.2",
3
+ "version": "5.6.5",
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": {