@kosuke-ai/cli 6.6.0 → 6.7.0

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.
@@ -106,75 +106,76 @@ import { operation as o104 } from './sessions/runtime-command.js';
106
106
  import { operation as o105 } from './sessions/search.js';
107
107
  import { operation as o106 } from './sessions/send.js';
108
108
  import { operation as o107 } from './sessions/steer.js';
109
- import { operation as o108 } from './sessions/title-generate.js';
110
- import { operation as o109 } from './sessions/update.js';
111
- import { operation as o110 } from './user/auth-token-revoke.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-deepseek.js';
144
- import { operation as o143 } from './workspaces/ai-provider-usage-kimi-code.js';
145
- import { operation as o144 } from './workspaces/artifacts.js';
146
- import { operation as o145 } from './workspaces/credits.js';
147
- import { operation as o146 } from './workspaces/get.js';
148
- import { operation as o147 } from './workspaces/getting-started-get.js';
149
- import { operation as o148 } from './workspaces/getting-started-update.js';
150
- import { operation as o149 } from './workspaces/integrations-get.js';
151
- import { operation as o150 } from './workspaces/integrations-list.js';
152
- import { operation as o151 } from './workspaces/integrations-remove.js';
153
- import { operation as o152 } from './workspaces/integrations-slack-get.js';
154
- import { operation as o153 } from './workspaces/lead-cards.js';
155
- import { operation as o154 } from './workspaces/lead-merge.js';
156
- import { operation as o155 } from './workspaces/lead-notifications-open.js';
157
- import { operation as o156 } from './workspaces/lead-proposals-create.js';
158
- import { operation as o157 } from './workspaces/lead-review-request.js';
159
- import { operation as o158 } from './workspaces/lead-session-send.js';
160
- import { operation as o159 } from './workspaces/lead-triage.js';
161
- import { operation as o160 } from './workspaces/list.js';
162
- import { operation as o161 } from './workspaces/members.js';
163
- import { operation as o162 } from './workspaces/plugins-list.js';
164
- import { operation as o163 } from './workspaces/plugins-update.js';
165
- import { operation as o164 } from './workspaces/provider-login-claude-complete.js';
166
- import { operation as o165 } from './workspaces/provider-login-claude-start.js';
167
- import { operation as o166 } from './workspaces/provider-login-codex-complete.js';
168
- import { operation as o167 } from './workspaces/provider-login-codex-start.js';
169
- import { operation as o168 } from './workspaces/sandbox-limit.js';
170
- import { operation as o169 } from './workspaces/skills-create.js';
171
- import { operation as o170 } from './workspaces/skills-delete.js';
172
- import { operation as o171 } from './workspaces/skills-get.js';
173
- import { operation as o172 } from './workspaces/skills-list.js';
174
- import { operation as o173 } from './workspaces/skills-update.js';
175
- import { operation as o174 } from './workspaces/stop-sandboxes.js';
176
- import { operation as o175 } from './workspaces/timezone-set.js';
177
- import { operation as o176 } from './workspaces/usage.js';
109
+ import { operation as o108 } from './sessions/sync.js';
110
+ import { operation as o109 } from './sessions/title-generate.js';
111
+ import { operation as o110 } from './sessions/update.js';
112
+ import { operation as o111 } from './user/auth-token-revoke.js';
113
+ import { operation as o112 } from './user/integrations-list.js';
114
+ import { operation as o113 } from './user/integrations-remove.js';
115
+ import { operation as o114 } from './user/plugins-list.js';
116
+ import { operation as o115 } from './user/plugins-update.js';
117
+ import { operation as o116 } from './user/profile.js';
118
+ import { operation as o117 } from './user/push-devices-register.js';
119
+ import { operation as o118 } from './user/push-devices-remove.js';
120
+ import { operation as o119 } from './user/skills-create.js';
121
+ import { operation as o120 } from './user/skills-delete.js';
122
+ import { operation as o121 } from './user/skills-get.js';
123
+ import { operation as o122 } from './user/skills-list.js';
124
+ import { operation as o123 } from './user/skills-update.js';
125
+ import { operation as o124 } from './user/subscriptions-delete.js';
126
+ import { operation as o125 } from './user/subscriptions-get.js';
127
+ import { operation as o126 } from './user/subscriptions-login-claude-complete.js';
128
+ import { operation as o127 } from './user/subscriptions-login-claude-start.js';
129
+ import { operation as o128 } from './user/subscriptions-login-codex-complete.js';
130
+ import { operation as o129 } from './user/subscriptions-login-codex-start.js';
131
+ import { operation as o130 } from './user/subscriptions-logins-delete.js';
132
+ import { operation as o131 } from './user/subscriptions-logins-reorder.js';
133
+ import { operation as o132 } from './user/subscriptions-set-default-model.js';
134
+ import { operation as o133 } from './user/subscriptions-set-key.js';
135
+ import { operation as o134 } from './user/subscriptions-usage.js';
136
+ import { operation as o135 } from './workspaces/access-status.js';
137
+ import { operation as o136 } from './workspaces/ai-provider-get.js';
138
+ import { operation as o137 } from './workspaces/ai-provider-logins-reorder.js';
139
+ import { operation as o138 } from './workspaces/ai-provider-remove.js';
140
+ import { operation as o139 } from './workspaces/ai-provider-set.js';
141
+ import { operation as o140 } from './workspaces/ai-provider-usage-claude.js';
142
+ import { operation as o141 } from './workspaces/ai-provider-usage-codex.js';
143
+ import { operation as o142 } from './workspaces/ai-provider-usage-coding-plan.js';
144
+ import { operation as o143 } from './workspaces/ai-provider-usage-deepseek.js';
145
+ import { operation as o144 } from './workspaces/ai-provider-usage-kimi-code.js';
146
+ import { operation as o145 } from './workspaces/artifacts.js';
147
+ import { operation as o146 } from './workspaces/credits.js';
148
+ import { operation as o147 } from './workspaces/get.js';
149
+ import { operation as o148 } from './workspaces/getting-started-get.js';
150
+ import { operation as o149 } from './workspaces/getting-started-update.js';
151
+ import { operation as o150 } from './workspaces/integrations-get.js';
152
+ import { operation as o151 } from './workspaces/integrations-list.js';
153
+ import { operation as o152 } from './workspaces/integrations-remove.js';
154
+ import { operation as o153 } from './workspaces/integrations-slack-get.js';
155
+ import { operation as o154 } from './workspaces/lead-cards.js';
156
+ import { operation as o155 } from './workspaces/lead-merge.js';
157
+ import { operation as o156 } from './workspaces/lead-notifications-open.js';
158
+ import { operation as o157 } from './workspaces/lead-proposals-create.js';
159
+ import { operation as o158 } from './workspaces/lead-review-request.js';
160
+ import { operation as o159 } from './workspaces/lead-session-send.js';
161
+ import { operation as o160 } from './workspaces/lead-triage.js';
162
+ import { operation as o161 } from './workspaces/list.js';
163
+ import { operation as o162 } from './workspaces/members.js';
164
+ import { operation as o163 } from './workspaces/plugins-list.js';
165
+ import { operation as o164 } from './workspaces/plugins-update.js';
166
+ import { operation as o165 } from './workspaces/provider-login-claude-complete.js';
167
+ import { operation as o166 } from './workspaces/provider-login-claude-start.js';
168
+ import { operation as o167 } from './workspaces/provider-login-codex-complete.js';
169
+ import { operation as o168 } from './workspaces/provider-login-codex-start.js';
170
+ import { operation as o169 } from './workspaces/sandbox-limit.js';
171
+ import { operation as o170 } from './workspaces/skills-create.js';
172
+ import { operation as o171 } from './workspaces/skills-delete.js';
173
+ import { operation as o172 } from './workspaces/skills-get.js';
174
+ import { operation as o173 } from './workspaces/skills-list.js';
175
+ import { operation as o174 } from './workspaces/skills-update.js';
176
+ import { operation as o175 } from './workspaces/stop-sandboxes.js';
177
+ import { operation as o176 } from './workspaces/timezone-set.js';
178
+ import { operation as o177 } from './workspaces/usage.js';
178
179
  export const operations = [
179
180
  o0,
180
181
  o1,
@@ -353,4 +354,5 @@ export const operations = [
353
354
  o174,
354
355
  o175,
355
356
  o176,
357
+ o177,
356
358
  ];
@@ -0,0 +1,40 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/sync",
4
+ "command": [
5
+ "sessions",
6
+ "sync"
7
+ ],
8
+ "summary": "Merge the Target Branch, or the open pull request's base, into the session's branch on GitHub, like GitHub's Update branch, and refresh its sandbox. Without an open pull request, uses the project Target Branch, then its default branch. Starts no turn: outcome agent needs /kosuke:sync-branch; pending means GitHub accepted the merge and completion is queued. Poll statusJobId for refreshed or refresh_failed. Failed status includes recovery: retry for a transient refresh failure, observe while GitHub is unconfirmed, repair for an explicit agent repair after a confirmed merge, or stale when the branch or pull request changed. Retrying completion never requests another merge.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": {
15
+ "fields": [
16
+ {
17
+ "name": "completion",
18
+ "flag": "completion",
19
+ "kind": "json",
20
+ "required": false,
21
+ "description": "Retry only the observation and sandbox refresh returned by a previous Sync. Never requests another merge."
22
+ },
23
+ {
24
+ "name": "statusJobId",
25
+ "flag": "status-job-id",
26
+ "kind": "string",
27
+ "required": false,
28
+ "description": "Read the completion job status without requesting a merge or refresh."
29
+ }
30
+ ],
31
+ "required": false
32
+ },
33
+ "multipart": null,
34
+ "attachments": false,
35
+ "anonymous": false,
36
+ "sandboxToken": true,
37
+ "orchestratorToken": true,
38
+ "cronToken": true,
39
+ "leadToken": true
40
+ };
package/openapi.json CHANGED
@@ -9862,6 +9862,111 @@
9862
9862
  }
9863
9863
  }
9864
9864
  },
9865
+ "/api/projects/{projectId}/chat-sessions/{sessionId}/sync": {
9866
+ "post": {
9867
+ "operationId": "sessionsSync",
9868
+ "summary": "Merge the Target Branch, or the open pull request's base, into the session's branch on GitHub, like GitHub's Update branch, and refresh its sandbox. Without an open pull request, uses the project Target Branch, then its default branch. Starts no turn: outcome agent needs /kosuke:sync-branch; pending means GitHub accepted the merge and completion is queued. Poll statusJobId for refreshed or refresh_failed. Failed status includes recovery: retry for a transient refresh failure, observe while GitHub is unconfirmed, repair for an explicit agent repair after a confirmed merge, or stale when the branch or pull request changed. Retrying completion never requests another merge.",
9869
+ "tags": ["sessions"],
9870
+ "x-kosuke-command": ["sessions", "sync"],
9871
+ "x-kosuke-sandbox-token": true,
9872
+ "x-kosuke-orchestrator-token": true,
9873
+ "x-kosuke-cron-token": true,
9874
+ "x-kosuke-lead-token": true,
9875
+ "parameters": [
9876
+ {
9877
+ "name": "projectId",
9878
+ "in": "path",
9879
+ "required": true,
9880
+ "schema": {
9881
+ "type": "string",
9882
+ "format": "uuid",
9883
+ "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)$"
9884
+ }
9885
+ },
9886
+ {
9887
+ "name": "sessionId",
9888
+ "in": "path",
9889
+ "required": true,
9890
+ "schema": {
9891
+ "type": "string",
9892
+ "format": "uuid",
9893
+ "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)$"
9894
+ }
9895
+ }
9896
+ ],
9897
+ "requestBody": {
9898
+ "required": false,
9899
+ "content": {
9900
+ "application/json": {
9901
+ "schema": {
9902
+ "type": "object",
9903
+ "properties": {
9904
+ "completion": {
9905
+ "description": "Retry only the observation and sandbox refresh returned by a previous Sync. Never requests another merge.",
9906
+ "type": "object",
9907
+ "properties": {
9908
+ "branch": {
9909
+ "type": "string",
9910
+ "minLength": 1,
9911
+ "maxLength": 255
9912
+ },
9913
+ "pullNumber": {
9914
+ "type": "integer",
9915
+ "exclusiveMinimum": 0,
9916
+ "maximum": 9007199254740991
9917
+ },
9918
+ "previousHead": {
9919
+ "type": "string",
9920
+ "pattern": "^[0-9a-f]{40,64}$"
9921
+ }
9922
+ },
9923
+ "required": ["branch"]
9924
+ },
9925
+ "statusJobId": {
9926
+ "description": "Read the completion job status without requesting a merge or refresh.",
9927
+ "type": "string",
9928
+ "pattern": "^sync-[0-9a-f-]{36}$"
9929
+ }
9930
+ },
9931
+ "additionalProperties": false
9932
+ }
9933
+ }
9934
+ }
9935
+ },
9936
+ "responses": {
9937
+ "2XX": {
9938
+ "description": "Success envelope",
9939
+ "content": {
9940
+ "application/json": {
9941
+ "schema": {
9942
+ "$ref": "#/components/schemas/ApiSuccess"
9943
+ }
9944
+ }
9945
+ }
9946
+ },
9947
+ "4XX": {
9948
+ "description": "Error envelope",
9949
+ "content": {
9950
+ "application/json": {
9951
+ "schema": {
9952
+ "$ref": "#/components/schemas/ApiError"
9953
+ }
9954
+ }
9955
+ }
9956
+ },
9957
+ "5XX": {
9958
+ "description": "Error envelope",
9959
+ "content": {
9960
+ "application/json": {
9961
+ "schema": {
9962
+ "$ref": "#/components/schemas/ApiError"
9963
+ }
9964
+ }
9965
+ }
9966
+ }
9967
+ }
9968
+ }
9969
+ },
9865
9970
  "/api/projects/{projectId}/chat-sessions/{sessionId}/title/generate": {
9866
9971
  "post": {
9867
9972
  "operationId": "sessionsTitleGenerate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kosuke-ai/cli",
3
- "version": "6.6.0",
3
+ "version": "6.7.0",
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": {