@kosuke-ai/cli 6.3.3 → 6.4.1

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.
@@ -109,69 +109,71 @@ import { operation as o107 } from './sessions/steer.js';
109
109
  import { operation as o108 } from './sessions/title-generate.js';
110
110
  import { operation as o109 } from './sessions/update.js';
111
111
  import { operation as o110 } from './user/auth-token-revoke.js';
112
- import { operation as o111 } from './user/plugins-list.js';
113
- import { operation as o112 } from './user/plugins-update.js';
114
- import { operation as o113 } from './user/profile.js';
115
- import { operation as o114 } from './user/push-devices-register.js';
116
- import { operation as o115 } from './user/push-devices-remove.js';
117
- import { operation as o116 } from './user/skills-create.js';
118
- import { operation as o117 } from './user/skills-delete.js';
119
- import { operation as o118 } from './user/skills-get.js';
120
- import { operation as o119 } from './user/skills-list.js';
121
- import { operation as o120 } from './user/skills-update.js';
122
- import { operation as o121 } from './user/subscriptions-delete.js';
123
- import { operation as o122 } from './user/subscriptions-get.js';
124
- import { operation as o123 } from './user/subscriptions-login-claude-complete.js';
125
- import { operation as o124 } from './user/subscriptions-login-claude-start.js';
126
- import { operation as o125 } from './user/subscriptions-login-codex-complete.js';
127
- import { operation as o126 } from './user/subscriptions-login-codex-start.js';
128
- import { operation as o127 } from './user/subscriptions-logins-delete.js';
129
- import { operation as o128 } from './user/subscriptions-logins-reorder.js';
130
- import { operation as o129 } from './user/subscriptions-set-default-model.js';
131
- import { operation as o130 } from './user/subscriptions-set-key.js';
132
- import { operation as o131 } from './user/subscriptions-usage.js';
133
- import { operation as o132 } from './workspaces/access-status.js';
134
- import { operation as o133 } from './workspaces/ai-provider-get.js';
135
- import { operation as o134 } from './workspaces/ai-provider-logins-reorder.js';
136
- import { operation as o135 } from './workspaces/ai-provider-remove.js';
137
- import { operation as o136 } from './workspaces/ai-provider-set.js';
138
- import { operation as o137 } from './workspaces/ai-provider-usage-claude.js';
139
- import { operation as o138 } from './workspaces/ai-provider-usage-codex.js';
140
- import { operation as o139 } from './workspaces/ai-provider-usage-coding-plan.js';
141
- import { operation as o140 } from './workspaces/ai-provider-usage-kimi-code.js';
142
- import { operation as o141 } from './workspaces/artifacts.js';
143
- import { operation as o142 } from './workspaces/credits.js';
144
- import { operation as o143 } from './workspaces/get.js';
145
- import { operation as o144 } from './workspaces/getting-started-get.js';
146
- import { operation as o145 } from './workspaces/getting-started-update.js';
147
- import { operation as o146 } from './workspaces/integrations-get.js';
148
- import { operation as o147 } from './workspaces/integrations-list.js';
149
- import { operation as o148 } from './workspaces/integrations-remove.js';
150
- import { operation as o149 } from './workspaces/integrations-slack-get.js';
151
- import { operation as o150 } from './workspaces/lead-cards.js';
152
- import { operation as o151 } from './workspaces/lead-merge.js';
153
- import { operation as o152 } from './workspaces/lead-notifications-open.js';
154
- import { operation as o153 } from './workspaces/lead-proposals-create.js';
155
- import { operation as o154 } from './workspaces/lead-review-request.js';
156
- import { operation as o155 } from './workspaces/lead-session-send.js';
157
- import { operation as o156 } from './workspaces/lead-triage.js';
158
- import { operation as o157 } from './workspaces/list.js';
159
- import { operation as o158 } from './workspaces/members.js';
160
- import { operation as o159 } from './workspaces/plugins-list.js';
161
- import { operation as o160 } from './workspaces/plugins-update.js';
162
- import { operation as o161 } from './workspaces/provider-login-claude-complete.js';
163
- import { operation as o162 } from './workspaces/provider-login-claude-start.js';
164
- import { operation as o163 } from './workspaces/provider-login-codex-complete.js';
165
- import { operation as o164 } from './workspaces/provider-login-codex-start.js';
166
- import { operation as o165 } from './workspaces/sandbox-limit.js';
167
- import { operation as o166 } from './workspaces/skills-create.js';
168
- import { operation as o167 } from './workspaces/skills-delete.js';
169
- import { operation as o168 } from './workspaces/skills-get.js';
170
- import { operation as o169 } from './workspaces/skills-list.js';
171
- import { operation as o170 } from './workspaces/skills-update.js';
172
- import { operation as o171 } from './workspaces/stop-sandboxes.js';
173
- import { operation as o172 } from './workspaces/timezone-set.js';
174
- import { operation as o173 } from './workspaces/usage.js';
112
+ import { operation as o111 } from './user/integrations-list.js';
113
+ import { operation as o112 } from './user/integrations-remove.js';
114
+ import { operation as o113 } from './user/plugins-list.js';
115
+ import { operation as o114 } from './user/plugins-update.js';
116
+ import { operation as o115 } from './user/profile.js';
117
+ import { operation as o116 } from './user/push-devices-register.js';
118
+ import { operation as o117 } from './user/push-devices-remove.js';
119
+ import { operation as o118 } from './user/skills-create.js';
120
+ import { operation as o119 } from './user/skills-delete.js';
121
+ import { operation as o120 } from './user/skills-get.js';
122
+ import { operation as o121 } from './user/skills-list.js';
123
+ import { operation as o122 } from './user/skills-update.js';
124
+ import { operation as o123 } from './user/subscriptions-delete.js';
125
+ import { operation as o124 } from './user/subscriptions-get.js';
126
+ import { operation as o125 } from './user/subscriptions-login-claude-complete.js';
127
+ import { operation as o126 } from './user/subscriptions-login-claude-start.js';
128
+ import { operation as o127 } from './user/subscriptions-login-codex-complete.js';
129
+ import { operation as o128 } from './user/subscriptions-login-codex-start.js';
130
+ import { operation as o129 } from './user/subscriptions-logins-delete.js';
131
+ import { operation as o130 } from './user/subscriptions-logins-reorder.js';
132
+ import { operation as o131 } from './user/subscriptions-set-default-model.js';
133
+ import { operation as o132 } from './user/subscriptions-set-key.js';
134
+ import { operation as o133 } from './user/subscriptions-usage.js';
135
+ import { operation as o134 } from './workspaces/access-status.js';
136
+ import { operation as o135 } from './workspaces/ai-provider-get.js';
137
+ import { operation as o136 } from './workspaces/ai-provider-logins-reorder.js';
138
+ import { operation as o137 } from './workspaces/ai-provider-remove.js';
139
+ import { operation as o138 } from './workspaces/ai-provider-set.js';
140
+ import { operation as o139 } from './workspaces/ai-provider-usage-claude.js';
141
+ import { operation as o140 } from './workspaces/ai-provider-usage-codex.js';
142
+ import { operation as o141 } from './workspaces/ai-provider-usage-coding-plan.js';
143
+ import { operation as o142 } from './workspaces/ai-provider-usage-kimi-code.js';
144
+ import { operation as o143 } from './workspaces/artifacts.js';
145
+ import { operation as o144 } from './workspaces/credits.js';
146
+ import { operation as o145 } from './workspaces/get.js';
147
+ import { operation as o146 } from './workspaces/getting-started-get.js';
148
+ import { operation as o147 } from './workspaces/getting-started-update.js';
149
+ import { operation as o148 } from './workspaces/integrations-get.js';
150
+ import { operation as o149 } from './workspaces/integrations-list.js';
151
+ import { operation as o150 } from './workspaces/integrations-remove.js';
152
+ import { operation as o151 } from './workspaces/integrations-slack-get.js';
153
+ import { operation as o152 } from './workspaces/lead-cards.js';
154
+ import { operation as o153 } from './workspaces/lead-merge.js';
155
+ import { operation as o154 } from './workspaces/lead-notifications-open.js';
156
+ import { operation as o155 } from './workspaces/lead-proposals-create.js';
157
+ import { operation as o156 } from './workspaces/lead-review-request.js';
158
+ import { operation as o157 } from './workspaces/lead-session-send.js';
159
+ import { operation as o158 } from './workspaces/lead-triage.js';
160
+ import { operation as o159 } from './workspaces/list.js';
161
+ import { operation as o160 } from './workspaces/members.js';
162
+ import { operation as o161 } from './workspaces/plugins-list.js';
163
+ import { operation as o162 } from './workspaces/plugins-update.js';
164
+ import { operation as o163 } from './workspaces/provider-login-claude-complete.js';
165
+ import { operation as o164 } from './workspaces/provider-login-claude-start.js';
166
+ import { operation as o165 } from './workspaces/provider-login-codex-complete.js';
167
+ import { operation as o166 } from './workspaces/provider-login-codex-start.js';
168
+ import { operation as o167 } from './workspaces/sandbox-limit.js';
169
+ import { operation as o168 } from './workspaces/skills-create.js';
170
+ import { operation as o169 } from './workspaces/skills-delete.js';
171
+ import { operation as o170 } from './workspaces/skills-get.js';
172
+ import { operation as o171 } from './workspaces/skills-list.js';
173
+ import { operation as o172 } from './workspaces/skills-update.js';
174
+ import { operation as o173 } from './workspaces/stop-sandboxes.js';
175
+ import { operation as o174 } from './workspaces/timezone-set.js';
176
+ import { operation as o175 } from './workspaces/usage.js';
175
177
  export const operations = [
176
178
  o0,
177
179
  o1,
@@ -347,4 +349,6 @@ export const operations = [
347
349
  o171,
348
350
  o172,
349
351
  o173,
352
+ o174,
353
+ o175,
350
354
  ];
@@ -50,14 +50,37 @@ export const operation = {
50
50
  "flag": "cursor",
51
51
  "kind": "string",
52
52
  "required": false,
53
- "description": "Opaque cursor from a previous page (meta.pagination.nextCursor). Requires limit, and must come from a page with the same sortByPriority."
53
+ "description": "Opaque cursor from a previous page (meta.pagination.nextCursor). Requires limit, and must come from a page with the same sort and order."
54
+ },
55
+ {
56
+ "name": "sortBy",
57
+ "flag": "sort-by",
58
+ "kind": "string",
59
+ "required": false,
60
+ "description": "What to order by: 'activity' (last activity, the default), 'created' (creation time) or 'priority' (priority, then creation time). Ties fall to the session id.",
61
+ "choices": [
62
+ "activity",
63
+ "created",
64
+ "priority"
65
+ ]
66
+ },
67
+ {
68
+ "name": "sortOrder",
69
+ "flag": "sort-order",
70
+ "kind": "string",
71
+ "required": false,
72
+ "description": "Direction of sortBy. Defaults to 'desc' (newest first) for activity and created, and to 'asc' (urgent first, then oldest created) for priority, where 'desc' reverses that whole order.",
73
+ "choices": [
74
+ "asc",
75
+ "desc"
76
+ ]
54
77
  },
55
78
  {
56
79
  "name": "sortByPriority",
57
80
  "flag": "sort-by-priority",
58
81
  "kind": "boolean",
59
82
  "required": false,
60
- "description": "Order by priority then creation time instead of by last activity."
83
+ "description": "Same as sortBy=priority, kept for older clients. Rejected beside another sortBy."
61
84
  },
62
85
  {
63
86
  "name": "excludeArchived",
@@ -0,0 +1,20 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/user/integrations",
4
+ "command": [
5
+ "user",
6
+ "integrations",
7
+ "list"
8
+ ],
9
+ "summary": "List the integrations you can connect for yourself, such as Gmail or Notion, with your own connections to each: label, status and whether a Reconnect is needed. They belong to you and follow you into every workspace you belong to. Never a credential or a connected-account identifier, and only a signed-in member or their own API key can read them: an agent token, a workspace admin and every other member cannot.",
10
+ "pathParams": [],
11
+ "query": [],
12
+ "body": null,
13
+ "multipart": null,
14
+ "attachments": false,
15
+ "anonymous": false,
16
+ "sandboxToken": false,
17
+ "orchestratorToken": false,
18
+ "cronToken": false,
19
+ "leadToken": false
20
+ };
@@ -0,0 +1,23 @@
1
+ export const operation = {
2
+ "method": "delete",
3
+ "path": "/api/user/integrations/{toolkit}/connections/{connectionId}",
4
+ "command": [
5
+ "user",
6
+ "integrations",
7
+ "remove"
8
+ ],
9
+ "summary": "Disconnect one of your own integration connections by toolkit slug and connection id, such as gmail and the id `user integrations list` returns: agents lose it at once, then Kosuke deletes the stored authorization, retrying in the background if needed. Revoking the authorization at the toolkit itself is not part of this. A connection that is not yours, or is already gone, answers 404.",
10
+ "pathParams": [
11
+ "toolkit",
12
+ "connectionId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false,
19
+ "sandboxToken": false,
20
+ "orchestratorToken": false,
21
+ "cronToken": false,
22
+ "leadToken": false
23
+ };
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "integrations",
7
7
  "get"
8
8
  ],
9
- "summary": "Read one workspace integration by toolkit slug, such as sentry: status, the tenant it is confined to, whether agents may make changes, requested scopes, who authorized it and whether remote cleanup is pending. Never a credential or a connected-account identifier. A toolkit the workspace never connected and this deployment does not offer is a 404.",
9
+ "summary": "Read one workspace integration by toolkit slug, such as sentry: status, the tenant it is confined to, requested scopes, who authorized it, whether remote cleanup is pending and each of its connections. Never a credential or a connected-account identifier. A toolkit the workspace never connected and this deployment does not offer is a 404.",
10
10
  "pathParams": [
11
11
  "workspaceId",
12
12
  "toolkit"
@@ -1,13 +1,13 @@
1
1
  export const operation = {
2
2
  "method": "get",
3
- "path": "/api/organizations/{workspaceId}/integrations/slack",
3
+ "path": "/api/organizations/{workspaceId}/integrations/bots/slack",
4
4
  "command": [
5
5
  "workspaces",
6
6
  "integrations",
7
7
  "slack",
8
8
  "get"
9
9
  ],
10
- "summary": "Read the workspace Slack integration: the connected Slack workspace, who authorized it and when. Never the bot token.",
10
+ "summary": "Read the workspace Slack Bot: the connected Slack workspace, who installed it and when. Never the bot token.",
11
11
  "pathParams": [
12
12
  "workspaceId"
13
13
  ],
package/openapi.json CHANGED
@@ -2979,7 +2979,7 @@
2979
2979
  "/api/organizations/{workspaceId}/integrations/{toolkit}": {
2980
2980
  "get": {
2981
2981
  "operationId": "workspacesIntegrationsGet",
2982
- "summary": "Read one workspace integration by toolkit slug, such as sentry: status, the tenant it is confined to, whether agents may make changes, requested scopes, who authorized it and whether remote cleanup is pending. Never a credential or a connected-account identifier. A toolkit the workspace never connected and this deployment does not offer is a 404.",
2982
+ "summary": "Read one workspace integration by toolkit slug, such as sentry: status, the tenant it is confined to, requested scopes, who authorized it, whether remote cleanup is pending and each of its connections. Never a credential or a connected-account identifier. A toolkit the workspace never connected and this deployment does not offer is a 404.",
2983
2983
  "tags": ["workspaces"],
2984
2984
  "x-kosuke-command": ["workspaces", "integrations", "get"],
2985
2985
  "x-kosuke-sandbox-token": true,
@@ -3098,10 +3098,10 @@
3098
3098
  }
3099
3099
  }
3100
3100
  },
3101
- "/api/organizations/{workspaceId}/integrations/slack": {
3101
+ "/api/organizations/{workspaceId}/integrations/bots/slack": {
3102
3102
  "get": {
3103
3103
  "operationId": "workspacesIntegrationsSlackGet",
3104
- "summary": "Read the workspace Slack integration: the connected Slack workspace, who authorized it and when. Never the bot token.",
3104
+ "summary": "Read the workspace Slack Bot: the connected Slack workspace, who installed it and when. Never the bot token.",
3105
3105
  "tags": ["workspaces"],
3106
3106
  "x-kosuke-command": ["workspaces", "integrations", "slack", "get"],
3107
3107
  "x-kosuke-sandbox-token": true,
@@ -5814,19 +5814,41 @@
5814
5814
  "name": "cursor",
5815
5815
  "in": "query",
5816
5816
  "required": false,
5817
- "description": "Opaque cursor from a previous page (meta.pagination.nextCursor). Requires limit, and must come from a page with the same sortByPriority.",
5817
+ "description": "Opaque cursor from a previous page (meta.pagination.nextCursor). Requires limit, and must come from a page with the same sort and order.",
5818
5818
  "schema": {
5819
- "description": "Opaque cursor from a previous page (meta.pagination.nextCursor). Requires limit, and must come from a page with the same sortByPriority.",
5819
+ "description": "Opaque cursor from a previous page (meta.pagination.nextCursor). Requires limit, and must come from a page with the same sort and order.",
5820
5820
  "type": "string"
5821
5821
  }
5822
5822
  },
5823
+ {
5824
+ "name": "sortBy",
5825
+ "in": "query",
5826
+ "required": false,
5827
+ "description": "What to order by: 'activity' (last activity, the default), 'created' (creation time) or 'priority' (priority, then creation time). Ties fall to the session id.",
5828
+ "schema": {
5829
+ "description": "What to order by: 'activity' (last activity, the default), 'created' (creation time) or 'priority' (priority, then creation time). Ties fall to the session id.",
5830
+ "type": "string",
5831
+ "enum": ["activity", "created", "priority"]
5832
+ }
5833
+ },
5834
+ {
5835
+ "name": "sortOrder",
5836
+ "in": "query",
5837
+ "required": false,
5838
+ "description": "Direction of sortBy. Defaults to 'desc' (newest first) for activity and created, and to 'asc' (urgent first, then oldest created) for priority, where 'desc' reverses that whole order.",
5839
+ "schema": {
5840
+ "description": "Direction of sortBy. Defaults to 'desc' (newest first) for activity and created, and to 'asc' (urgent first, then oldest created) for priority, where 'desc' reverses that whole order.",
5841
+ "type": "string",
5842
+ "enum": ["asc", "desc"]
5843
+ }
5844
+ },
5823
5845
  {
5824
5846
  "name": "sortByPriority",
5825
5847
  "in": "query",
5826
5848
  "required": false,
5827
- "description": "Order by priority then creation time instead of by last activity.",
5849
+ "description": "Same as sortBy=priority, kept for older clients. Rejected beside another sortBy.",
5828
5850
  "schema": {
5829
- "description": "Order by priority then creation time instead of by last activity.",
5851
+ "description": "Same as sortBy=priority, kept for older clients. Rejected beside another sortBy.",
5830
5852
  "type": "boolean"
5831
5853
  }
5832
5854
  },
@@ -13017,6 +13039,106 @@
13017
13039
  }
13018
13040
  }
13019
13041
  },
13042
+ "/api/user/integrations": {
13043
+ "get": {
13044
+ "operationId": "userIntegrationsList",
13045
+ "summary": "List the integrations you can connect for yourself, such as Gmail or Notion, with your own connections to each: label, status and whether a Reconnect is needed. They belong to you and follow you into every workspace you belong to. Never a credential or a connected-account identifier, and only a signed-in member or their own API key can read them: an agent token, a workspace admin and every other member cannot.",
13046
+ "tags": ["user"],
13047
+ "x-kosuke-command": ["user", "integrations", "list"],
13048
+ "responses": {
13049
+ "2XX": {
13050
+ "description": "Success envelope",
13051
+ "content": {
13052
+ "application/json": {
13053
+ "schema": {
13054
+ "$ref": "#/components/schemas/ApiSuccess"
13055
+ }
13056
+ }
13057
+ }
13058
+ },
13059
+ "4XX": {
13060
+ "description": "Error envelope",
13061
+ "content": {
13062
+ "application/json": {
13063
+ "schema": {
13064
+ "$ref": "#/components/schemas/ApiError"
13065
+ }
13066
+ }
13067
+ }
13068
+ },
13069
+ "5XX": {
13070
+ "description": "Error envelope",
13071
+ "content": {
13072
+ "application/json": {
13073
+ "schema": {
13074
+ "$ref": "#/components/schemas/ApiError"
13075
+ }
13076
+ }
13077
+ }
13078
+ }
13079
+ }
13080
+ }
13081
+ },
13082
+ "/api/user/integrations/{toolkit}/connections/{connectionId}": {
13083
+ "delete": {
13084
+ "operationId": "userIntegrationsRemove",
13085
+ "summary": "Disconnect one of your own integration connections by toolkit slug and connection id, such as gmail and the id `user integrations list` returns: agents lose it at once, then Kosuke deletes the stored authorization, retrying in the background if needed. Revoking the authorization at the toolkit itself is not part of this. A connection that is not yours, or is already gone, answers 404.",
13086
+ "tags": ["user"],
13087
+ "x-kosuke-command": ["user", "integrations", "remove"],
13088
+ "parameters": [
13089
+ {
13090
+ "name": "toolkit",
13091
+ "in": "path",
13092
+ "required": true,
13093
+ "schema": {
13094
+ "type": "string",
13095
+ "minLength": 1
13096
+ }
13097
+ },
13098
+ {
13099
+ "name": "connectionId",
13100
+ "in": "path",
13101
+ "required": true,
13102
+ "schema": {
13103
+ "type": "string",
13104
+ "minLength": 1
13105
+ }
13106
+ }
13107
+ ],
13108
+ "responses": {
13109
+ "2XX": {
13110
+ "description": "Success envelope",
13111
+ "content": {
13112
+ "application/json": {
13113
+ "schema": {
13114
+ "$ref": "#/components/schemas/ApiSuccess"
13115
+ }
13116
+ }
13117
+ }
13118
+ },
13119
+ "4XX": {
13120
+ "description": "Error envelope",
13121
+ "content": {
13122
+ "application/json": {
13123
+ "schema": {
13124
+ "$ref": "#/components/schemas/ApiError"
13125
+ }
13126
+ }
13127
+ }
13128
+ },
13129
+ "5XX": {
13130
+ "description": "Error envelope",
13131
+ "content": {
13132
+ "application/json": {
13133
+ "schema": {
13134
+ "$ref": "#/components/schemas/ApiError"
13135
+ }
13136
+ }
13137
+ }
13138
+ }
13139
+ }
13140
+ }
13141
+ },
13020
13142
  "/api/user/plugins": {
13021
13143
  "get": {
13022
13144
  "operationId": "userPluginsList",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/cli",
3
- "version": "6.3.3",
3
+ "version": "6.4.1",
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": {