@kosuke-ai/cli 0.0.57 → 1.0.1-next.2

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.
Files changed (263) hide show
  1. package/README.md +47 -434
  2. package/dist/commands/auth.js +117 -0
  3. package/dist/generated/commands/deploy/cancel.js +17 -0
  4. package/dist/generated/commands/deploy/messages.js +17 -0
  5. package/dist/generated/commands/deploy/run.js +60 -0
  6. package/dist/generated/commands/index.js +132 -0
  7. package/dist/generated/commands/preview/get.js +25 -0
  8. package/dist/generated/commands/preview/health.js +25 -0
  9. package/dist/generated/commands/preview/reset.js +27 -0
  10. package/dist/generated/commands/preview/share-create.js +36 -0
  11. package/dist/generated/commands/preview/share-delete.js +26 -0
  12. package/dist/generated/commands/preview/share-get.js +26 -0
  13. package/dist/generated/commands/preview/shared.js +17 -0
  14. package/dist/generated/commands/projects/create.js +37 -0
  15. package/dist/generated/commands/projects/delete.js +17 -0
  16. package/dist/generated/commands/projects/env-vars-add.js +21 -0
  17. package/dist/generated/commands/projects/env-vars-remove.js +21 -0
  18. package/dist/generated/commands/projects/get.js +17 -0
  19. package/dist/generated/commands/projects/list.js +15 -0
  20. package/dist/generated/commands/projects/services-add.js +87 -0
  21. package/dist/generated/commands/projects/services-list.js +18 -0
  22. package/dist/generated/commands/projects/services-remove.js +19 -0
  23. package/dist/generated/commands/projects/services-update.js +81 -0
  24. package/dist/generated/commands/projects/settings-get.js +18 -0
  25. package/dist/generated/commands/projects/settings-import.js +91 -0
  26. package/dist/generated/commands/projects/settings-update.js +77 -0
  27. package/dist/generated/commands/projects/skills.js +35 -0
  28. package/dist/generated/commands/projects/update.js +27 -0
  29. package/dist/generated/commands/sessions/activate.js +18 -0
  30. package/dist/generated/commands/sessions/checklist-generate.js +19 -0
  31. package/dist/generated/commands/sessions/checklist-get.js +19 -0
  32. package/dist/generated/commands/sessions/comments-add.js +63 -0
  33. package/dist/generated/commands/sessions/comments-delete.js +20 -0
  34. package/dist/generated/commands/sessions/comments-list.js +19 -0
  35. package/dist/generated/commands/sessions/comments-update.js +23 -0
  36. package/dist/generated/commands/sessions/create.js +126 -0
  37. package/dist/generated/commands/sessions/delete.js +18 -0
  38. package/dist/generated/commands/sessions/diff-files.js +19 -0
  39. package/dist/generated/commands/sessions/diff-patch.js +86 -0
  40. package/dist/generated/commands/sessions/edit-prompt.js +59 -0
  41. package/dist/generated/commands/sessions/files-get.js +27 -0
  42. package/dist/generated/commands/sessions/files-list.js +19 -0
  43. package/dist/generated/commands/sessions/files-write.js +41 -0
  44. package/dist/generated/commands/sessions/get.js +18 -0
  45. package/dist/generated/commands/sessions/git-commit-message.js +19 -0
  46. package/dist/generated/commands/sessions/git-commit.js +29 -0
  47. package/dist/generated/commands/sessions/git-push.js +19 -0
  48. package/dist/generated/commands/sessions/git-state.js +19 -0
  49. package/dist/generated/commands/sessions/jobs-cancel.js +20 -0
  50. package/dist/generated/commands/sessions/jobs-get.js +20 -0
  51. package/dist/generated/commands/sessions/list.js +81 -0
  52. package/dist/generated/commands/sessions/messages.js +18 -0
  53. package/dist/generated/commands/sessions/search.js +23 -0
  54. package/dist/generated/commands/sessions/send.js +98 -0
  55. package/dist/generated/commands/sessions/update.js +72 -0
  56. package/dist/generated/commands/workspaces/access-status.js +29 -0
  57. package/dist/generated/commands/workspaces/ai-provider-get.js +18 -0
  58. package/dist/generated/commands/workspaces/ai-provider-remove.js +42 -0
  59. package/dist/generated/commands/workspaces/ai-provider-set.js +21 -0
  60. package/dist/generated/commands/workspaces/credits.js +17 -0
  61. package/dist/generated/commands/workspaces/get.js +17 -0
  62. package/dist/generated/commands/workspaces/getting-started-get.js +18 -0
  63. package/dist/generated/commands/workspaces/getting-started-update.js +32 -0
  64. package/dist/generated/commands/workspaces/list.js +15 -0
  65. package/dist/generated/commands/workspaces/members.js +25 -0
  66. package/dist/generated/commands/workspaces/sandbox-limit.js +17 -0
  67. package/dist/generated/commands/workspaces/stop-sandboxes.js +27 -0
  68. package/dist/generated/commands/workspaces/usage.js +32 -0
  69. package/dist/index.js +5 -595
  70. package/dist/program.js +46 -0
  71. package/dist/runtime/attach.js +139 -0
  72. package/dist/runtime/attachments.js +58 -0
  73. package/dist/runtime/client.js +12 -0
  74. package/dist/runtime/config.js +49 -0
  75. package/dist/runtime/credentials.js +24 -0
  76. package/dist/runtime/descriptor.js +7 -0
  77. package/dist/runtime/invoke.js +152 -0
  78. package/dist/runtime/runtime.js +41 -0
  79. package/dist/runtime/version.js +5 -0
  80. package/openapi.json +5222 -0
  81. package/package.json +21 -79
  82. package/LICENSE +0 -21
  83. package/claude.costs.json +0 -34
  84. package/dist/__tests__/utils/file-discovery.test.d.ts +0 -5
  85. package/dist/__tests__/utils/file-discovery.test.d.ts.map +0 -1
  86. package/dist/__tests__/utils/file-discovery.test.js +0 -51
  87. package/dist/__tests__/utils/file-discovery.test.js.map +0 -1
  88. package/dist/__tests__/utils/logger-nologs.test.d.ts +0 -5
  89. package/dist/__tests__/utils/logger-nologs.test.d.ts.map +0 -1
  90. package/dist/__tests__/utils/logger-nologs.test.js +0 -34
  91. package/dist/__tests__/utils/logger-nologs.test.js.map +0 -1
  92. package/dist/__tests__/utils/logger.test.d.ts +0 -5
  93. package/dist/__tests__/utils/logger.test.d.ts.map +0 -1
  94. package/dist/__tests__/utils/logger.test.js +0 -243
  95. package/dist/__tests__/utils/logger.test.js.map +0 -1
  96. package/dist/__tests__/utils/validator.test.d.ts +0 -5
  97. package/dist/__tests__/utils/validator.test.d.ts.map +0 -1
  98. package/dist/__tests__/utils/validator.test.js +0 -206
  99. package/dist/__tests__/utils/validator.test.js.map +0 -1
  100. package/dist/index.d.ts +0 -37
  101. package/dist/index.d.ts.map +0 -1
  102. package/dist/index.js.map +0 -1
  103. package/dist/kosuke/commands/analyse.d.ts +0 -15
  104. package/dist/kosuke/commands/analyse.d.ts.map +0 -1
  105. package/dist/kosuke/commands/analyse.js +0 -304
  106. package/dist/kosuke/commands/analyse.js.map +0 -1
  107. package/dist/kosuke/commands/build.d.ts +0 -35
  108. package/dist/kosuke/commands/build.d.ts.map +0 -1
  109. package/dist/kosuke/commands/build.js +0 -660
  110. package/dist/kosuke/commands/build.js.map +0 -1
  111. package/dist/kosuke/commands/fix.d.ts +0 -21
  112. package/dist/kosuke/commands/fix.d.ts.map +0 -1
  113. package/dist/kosuke/commands/fix.js +0 -256
  114. package/dist/kosuke/commands/fix.js.map +0 -1
  115. package/dist/kosuke/commands/getcode.d.ts +0 -29
  116. package/dist/kosuke/commands/getcode.d.ts.map +0 -1
  117. package/dist/kosuke/commands/getcode.js +0 -248
  118. package/dist/kosuke/commands/getcode.js.map +0 -1
  119. package/dist/kosuke/commands/lint.d.ts +0 -21
  120. package/dist/kosuke/commands/lint.d.ts.map +0 -1
  121. package/dist/kosuke/commands/lint.js +0 -342
  122. package/dist/kosuke/commands/lint.js.map +0 -1
  123. package/dist/kosuke/commands/migrate.d.ts +0 -38
  124. package/dist/kosuke/commands/migrate.d.ts.map +0 -1
  125. package/dist/kosuke/commands/migrate.js +0 -284
  126. package/dist/kosuke/commands/migrate.js.map +0 -1
  127. package/dist/kosuke/commands/plan.d.ts +0 -28
  128. package/dist/kosuke/commands/plan.d.ts.map +0 -1
  129. package/dist/kosuke/commands/plan.js +0 -684
  130. package/dist/kosuke/commands/plan.js.map +0 -1
  131. package/dist/kosuke/commands/requirements.d.ts +0 -52
  132. package/dist/kosuke/commands/requirements.d.ts.map +0 -1
  133. package/dist/kosuke/commands/requirements.js +0 -615
  134. package/dist/kosuke/commands/requirements.js.map +0 -1
  135. package/dist/kosuke/commands/review.d.ts +0 -26
  136. package/dist/kosuke/commands/review.d.ts.map +0 -1
  137. package/dist/kosuke/commands/review.js +0 -303
  138. package/dist/kosuke/commands/review.js.map +0 -1
  139. package/dist/kosuke/commands/serve.d.ts +0 -9
  140. package/dist/kosuke/commands/serve.d.ts.map +0 -1
  141. package/dist/kosuke/commands/serve.js +0 -17
  142. package/dist/kosuke/commands/serve.js.map +0 -1
  143. package/dist/kosuke/commands/ship.d.ts +0 -37
  144. package/dist/kosuke/commands/ship.d.ts.map +0 -1
  145. package/dist/kosuke/commands/ship.js +0 -375
  146. package/dist/kosuke/commands/ship.js.map +0 -1
  147. package/dist/kosuke/commands/sync-rules.d.ts +0 -9
  148. package/dist/kosuke/commands/sync-rules.d.ts.map +0 -1
  149. package/dist/kosuke/commands/sync-rules.js +0 -414
  150. package/dist/kosuke/commands/sync-rules.js.map +0 -1
  151. package/dist/kosuke/commands/test.d.ts +0 -42
  152. package/dist/kosuke/commands/test.d.ts.map +0 -1
  153. package/dist/kosuke/commands/test.js +0 -540
  154. package/dist/kosuke/commands/test.js.map +0 -1
  155. package/dist/kosuke/commands/tickets.d.ts +0 -43
  156. package/dist/kosuke/commands/tickets.d.ts.map +0 -1
  157. package/dist/kosuke/commands/tickets.js +0 -876
  158. package/dist/kosuke/commands/tickets.js.map +0 -1
  159. package/dist/kosuke/commands/validate-tickets.d.ts +0 -23
  160. package/dist/kosuke/commands/validate-tickets.d.ts.map +0 -1
  161. package/dist/kosuke/commands/validate-tickets.js +0 -360
  162. package/dist/kosuke/commands/validate-tickets.js.map +0 -1
  163. package/dist/kosuke/serve/middleware/error-handler.d.ts +0 -14
  164. package/dist/kosuke/serve/middleware/error-handler.d.ts.map +0 -1
  165. package/dist/kosuke/serve/middleware/error-handler.js +0 -42
  166. package/dist/kosuke/serve/middleware/error-handler.js.map +0 -1
  167. package/dist/kosuke/serve/middleware/validation.d.ts +0 -13
  168. package/dist/kosuke/serve/middleware/validation.d.ts.map +0 -1
  169. package/dist/kosuke/serve/middleware/validation.js +0 -38
  170. package/dist/kosuke/serve/middleware/validation.js.map +0 -1
  171. package/dist/kosuke/serve/routes/build.d.ts +0 -6
  172. package/dist/kosuke/serve/routes/build.d.ts.map +0 -1
  173. package/dist/kosuke/serve/routes/build.js +0 -226
  174. package/dist/kosuke/serve/routes/build.js.map +0 -1
  175. package/dist/kosuke/serve/routes/health.d.ts +0 -6
  176. package/dist/kosuke/serve/routes/health.d.ts.map +0 -1
  177. package/dist/kosuke/serve/routes/health.js +0 -11
  178. package/dist/kosuke/serve/routes/health.js.map +0 -1
  179. package/dist/kosuke/serve/routes/plan.d.ts +0 -6
  180. package/dist/kosuke/serve/routes/plan.d.ts.map +0 -1
  181. package/dist/kosuke/serve/routes/plan.js +0 -106
  182. package/dist/kosuke/serve/routes/plan.js.map +0 -1
  183. package/dist/kosuke/serve/server.d.ts +0 -16
  184. package/dist/kosuke/serve/server.d.ts.map +0 -1
  185. package/dist/kosuke/serve/server.js +0 -67
  186. package/dist/kosuke/serve/server.js.map +0 -1
  187. package/dist/kosuke/serve/validation/build.d.ts +0 -41
  188. package/dist/kosuke/serve/validation/build.d.ts.map +0 -1
  189. package/dist/kosuke/serve/validation/build.js +0 -20
  190. package/dist/kosuke/serve/validation/build.js.map +0 -1
  191. package/dist/kosuke/serve/validation/plan.d.ts +0 -26
  192. package/dist/kosuke/serve/validation/plan.d.ts.map +0 -1
  193. package/dist/kosuke/serve/validation/plan.js +0 -15
  194. package/dist/kosuke/serve/validation/plan.js.map +0 -1
  195. package/dist/kosuke/types.d.ts +0 -539
  196. package/dist/kosuke/types.d.ts.map +0 -1
  197. package/dist/kosuke/types.js +0 -5
  198. package/dist/kosuke/types.js.map +0 -1
  199. package/dist/kosuke/utils/batch-creator.d.ts +0 -14
  200. package/dist/kosuke/utils/batch-creator.d.ts.map +0 -1
  201. package/dist/kosuke/utils/batch-creator.js +0 -76
  202. package/dist/kosuke/utils/batch-creator.js.map +0 -1
  203. package/dist/kosuke/utils/claude-agent.d.ts +0 -140
  204. package/dist/kosuke/utils/claude-agent.d.ts.map +0 -1
  205. package/dist/kosuke/utils/claude-agent.js +0 -388
  206. package/dist/kosuke/utils/claude-agent.js.map +0 -1
  207. package/dist/kosuke/utils/constants.d.ts +0 -40
  208. package/dist/kosuke/utils/constants.d.ts.map +0 -1
  209. package/dist/kosuke/utils/constants.js +0 -54
  210. package/dist/kosuke/utils/constants.js.map +0 -1
  211. package/dist/kosuke/utils/file-discovery.d.ts +0 -15
  212. package/dist/kosuke/utils/file-discovery.d.ts.map +0 -1
  213. package/dist/kosuke/utils/file-discovery.js +0 -80
  214. package/dist/kosuke/utils/file-discovery.js.map +0 -1
  215. package/dist/kosuke/utils/git.d.ts +0 -41
  216. package/dist/kosuke/utils/git.d.ts.map +0 -1
  217. package/dist/kosuke/utils/git.js +0 -145
  218. package/dist/kosuke/utils/git.js.map +0 -1
  219. package/dist/kosuke/utils/github.d.ts +0 -17
  220. package/dist/kosuke/utils/github.d.ts.map +0 -1
  221. package/dist/kosuke/utils/github.js +0 -22
  222. package/dist/kosuke/utils/github.js.map +0 -1
  223. package/dist/kosuke/utils/interactive-input.d.ts +0 -22
  224. package/dist/kosuke/utils/interactive-input.d.ts.map +0 -1
  225. package/dist/kosuke/utils/interactive-input.js +0 -124
  226. package/dist/kosuke/utils/interactive-input.js.map +0 -1
  227. package/dist/kosuke/utils/json-parser.d.ts +0 -14
  228. package/dist/kosuke/utils/json-parser.d.ts.map +0 -1
  229. package/dist/kosuke/utils/json-parser.js +0 -40
  230. package/dist/kosuke/utils/json-parser.js.map +0 -1
  231. package/dist/kosuke/utils/logger.d.ts +0 -161
  232. package/dist/kosuke/utils/logger.d.ts.map +0 -1
  233. package/dist/kosuke/utils/logger.js +0 -234
  234. package/dist/kosuke/utils/logger.js.map +0 -1
  235. package/dist/kosuke/utils/playwright-mcp-client.d.ts +0 -46
  236. package/dist/kosuke/utils/playwright-mcp-client.d.ts.map +0 -1
  237. package/dist/kosuke/utils/playwright-mcp-client.js +0 -135
  238. package/dist/kosuke/utils/playwright-mcp-client.js.map +0 -1
  239. package/dist/kosuke/utils/pr-orchestrator.d.ts +0 -49
  240. package/dist/kosuke/utils/pr-orchestrator.d.ts.map +0 -1
  241. package/dist/kosuke/utils/pr-orchestrator.js +0 -154
  242. package/dist/kosuke/utils/pr-orchestrator.js.map +0 -1
  243. package/dist/kosuke/utils/repository-manager.d.ts +0 -13
  244. package/dist/kosuke/utils/repository-manager.d.ts.map +0 -1
  245. package/dist/kosuke/utils/repository-manager.js +0 -94
  246. package/dist/kosuke/utils/repository-manager.js.map +0 -1
  247. package/dist/kosuke/utils/repository-resolver.d.ts +0 -12
  248. package/dist/kosuke/utils/repository-resolver.d.ts.map +0 -1
  249. package/dist/kosuke/utils/repository-resolver.js +0 -186
  250. package/dist/kosuke/utils/repository-resolver.js.map +0 -1
  251. package/dist/kosuke/utils/tickets-manager.d.ts +0 -34
  252. package/dist/kosuke/utils/tickets-manager.d.ts.map +0 -1
  253. package/dist/kosuke/utils/tickets-manager.js +0 -106
  254. package/dist/kosuke/utils/tickets-manager.js.map +0 -1
  255. package/dist/kosuke/utils/validator.d.ts +0 -45
  256. package/dist/kosuke/utils/validator.d.ts.map +0 -1
  257. package/dist/kosuke/utils/validator.js +0 -248
  258. package/dist/kosuke/utils/validator.js.map +0 -1
  259. package/dist/lib.d.ts +0 -104
  260. package/dist/lib.d.ts.map +0 -1
  261. package/dist/lib.js +0 -104
  262. package/dist/lib.js.map +0 -1
  263. package/dist/package.json +0 -99
@@ -0,0 +1,19 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/diff/files",
4
+ "command": [
5
+ "sessions",
6
+ "diff",
7
+ "files"
8
+ ],
9
+ "summary": "List the files the session's branch changes against its base, with totals.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false
19
+ };
@@ -0,0 +1,86 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/diff/patch",
4
+ "command": [
5
+ "sessions",
6
+ "diff",
7
+ "patch"
8
+ ],
9
+ "summary": "Read patches: a page (cursor), one file (path, with hunkOffset/hunkEnd), or one file with both sides (path and contents=1). path and cursor are mutually exclusive.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [
15
+ {
16
+ "name": "path",
17
+ "flag": "path",
18
+ "kind": "string",
19
+ "required": false,
20
+ "description": "One file. Cannot be combined with cursor."
21
+ },
22
+ {
23
+ "name": "paths",
24
+ "flag": "paths",
25
+ "kind": "string",
26
+ "required": false,
27
+ "description": "JSON array of file paths to refresh."
28
+ },
29
+ {
30
+ "name": "afterPath",
31
+ "flag": "after-path",
32
+ "kind": "string",
33
+ "required": false,
34
+ "description": "Renew pagination strictly after this loaded path."
35
+ },
36
+ {
37
+ "name": "cursor",
38
+ "flag": "cursor",
39
+ "kind": "string",
40
+ "required": false,
41
+ "description": "Opaque page cursor from meta.pagination.nextCursor. Cannot be combined with path."
42
+ },
43
+ {
44
+ "name": "contents",
45
+ "flag": "contents",
46
+ "kind": "string",
47
+ "required": false,
48
+ "description": "Return both sides of the file named by path. Only the literal '1' counts.",
49
+ "choices": [
50
+ "1"
51
+ ]
52
+ },
53
+ {
54
+ "name": "base",
55
+ "flag": "base",
56
+ "kind": "string",
57
+ "required": false,
58
+ "description": "Commit id to diff against instead of the current base. Must be provided with head."
59
+ },
60
+ {
61
+ "name": "head",
62
+ "flag": "head",
63
+ "kind": "string",
64
+ "required": false,
65
+ "description": "Commit id for the comparison head. Must be provided with base."
66
+ },
67
+ {
68
+ "name": "hunkOffset",
69
+ "flag": "hunk-offset",
70
+ "kind": "integer",
71
+ "required": false,
72
+ "description": "First hunk to return for path. A value that is not a non-negative integer is ignored."
73
+ },
74
+ {
75
+ "name": "hunkEnd",
76
+ "flag": "hunk-end",
77
+ "kind": "integer",
78
+ "required": false,
79
+ "description": "Hunk to stop before, for path. Ignored the same way as hunkOffset."
80
+ }
81
+ ],
82
+ "body": null,
83
+ "multipart": null,
84
+ "attachments": false,
85
+ "anonymous": false
86
+ };
@@ -0,0 +1,59 @@
1
+ export const operation = {
2
+ "method": "patch",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/prompt",
4
+ "command": [
5
+ "sessions",
6
+ "edit-prompt"
7
+ ],
8
+ "summary": "Rewrite the saved prompt of a backlog session, keeping or replacing its attachments. Multipart only.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": [
16
+ {
17
+ "name": "content",
18
+ "flag": "content",
19
+ "kind": "string",
20
+ "required": true,
21
+ "description": "The saved prompt."
22
+ },
23
+ {
24
+ "name": "model",
25
+ "flag": "model",
26
+ "kind": "string",
27
+ "required": false
28
+ },
29
+ {
30
+ "name": "ownerId",
31
+ "flag": "owner-id",
32
+ "kind": "string",
33
+ "required": false,
34
+ "description": "A member id to assign, or an empty string to unassign."
35
+ },
36
+ {
37
+ "name": "priority",
38
+ "flag": "priority",
39
+ "kind": "string",
40
+ "required": false,
41
+ "choices": [
42
+ "urgent",
43
+ "high",
44
+ "medium",
45
+ "low",
46
+ "none"
47
+ ]
48
+ },
49
+ {
50
+ "name": "retainedAttachmentIds",
51
+ "flag": "retained-attachment-ids",
52
+ "kind": "string",
53
+ "required": false,
54
+ "description": "JSON array of attachment ids to keep. Attachments not listed are removed."
55
+ }
56
+ ],
57
+ "attachments": true,
58
+ "anonymous": false
59
+ };
@@ -0,0 +1,27 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/files/content",
4
+ "command": [
5
+ "sessions",
6
+ "files",
7
+ "get"
8
+ ],
9
+ "summary": "Read one file from the session's sandbox.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [
15
+ {
16
+ "name": "path",
17
+ "flag": "path",
18
+ "kind": "string",
19
+ "required": true,
20
+ "description": "Repository-relative path of the file to read."
21
+ }
22
+ ],
23
+ "body": null,
24
+ "multipart": null,
25
+ "attachments": false,
26
+ "anonymous": false
27
+ };
@@ -0,0 +1,19 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/files",
4
+ "command": [
5
+ "sessions",
6
+ "files",
7
+ "list"
8
+ ],
9
+ "summary": "List the files in the session's sandbox. Empty when the sandbox is not running.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false
19
+ };
@@ -0,0 +1,41 @@
1
+ export const operation = {
2
+ "method": "put",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/files/content",
4
+ "command": [
5
+ "sessions",
6
+ "files",
7
+ "write"
8
+ ],
9
+ "summary": "Write one file in the session's sandbox. Refused while a turn is running, and for binary content.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": {
16
+ "fields": [
17
+ {
18
+ "name": "path",
19
+ "flag": "path",
20
+ "kind": "string",
21
+ "required": true
22
+ },
23
+ {
24
+ "name": "content",
25
+ "flag": "content",
26
+ "kind": "string",
27
+ "required": true
28
+ },
29
+ {
30
+ "name": "clientId",
31
+ "flag": "client-id",
32
+ "kind": "string",
33
+ "required": true
34
+ }
35
+ ],
36
+ "required": true
37
+ },
38
+ "multipart": null,
39
+ "attachments": false,
40
+ "anonymous": false
41
+ };
@@ -0,0 +1,18 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}",
4
+ "command": [
5
+ "sessions",
6
+ "get"
7
+ ],
8
+ "summary": "Read one chat session with its latest job and pull request.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": null,
16
+ "attachments": false,
17
+ "anonymous": false
18
+ };
@@ -0,0 +1,19 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/git/commit-message",
4
+ "command": [
5
+ "sessions",
6
+ "git",
7
+ "commit-message"
8
+ ],
9
+ "summary": "Draft a commit message for the uncommitted changes. Needs a running sandbox.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false
19
+ };
@@ -0,0 +1,29 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/git/commit",
4
+ "command": [
5
+ "sessions",
6
+ "git",
7
+ "commit"
8
+ ],
9
+ "summary": "Commit the uncommitted changes in the sandbox. Refused while a turn is running.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": {
16
+ "fields": [
17
+ {
18
+ "name": "message",
19
+ "flag": "message",
20
+ "kind": "string",
21
+ "required": true
22
+ }
23
+ ],
24
+ "required": true
25
+ },
26
+ "multipart": null,
27
+ "attachments": false,
28
+ "anonymous": false
29
+ };
@@ -0,0 +1,19 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/git/push",
4
+ "command": [
5
+ "sessions",
6
+ "git",
7
+ "push"
8
+ ],
9
+ "summary": "Push the session's branch to GitHub. Refused while a turn is running.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false
19
+ };
@@ -0,0 +1,19 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/git-state",
4
+ "command": [
5
+ "sessions",
6
+ "git",
7
+ "state"
8
+ ],
9
+ "summary": "Read the branch state of the session's sandbox: dirty files, ahead/behind, base.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false
19
+ };
@@ -0,0 +1,20 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/jobs/chat/{jobId}/cancel",
4
+ "command": [
5
+ "sessions",
6
+ "jobs",
7
+ "cancel"
8
+ ],
9
+ "summary": "Stop a running turn. Steers queued behind it are discarded and listed.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId",
13
+ "jobId"
14
+ ],
15
+ "query": [],
16
+ "body": null,
17
+ "multipart": null,
18
+ "attachments": false,
19
+ "anonymous": false
20
+ };
@@ -0,0 +1,20 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/jobs/chat/{jobId}",
4
+ "command": [
5
+ "sessions",
6
+ "jobs",
7
+ "get"
8
+ ],
9
+ "summary": "Read one turn's job: its status, error and timestamps.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId",
13
+ "jobId"
14
+ ],
15
+ "query": [],
16
+ "body": null,
17
+ "multipart": null,
18
+ "attachments": false,
19
+ "anonymous": false
20
+ };
@@ -0,0 +1,81 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions",
4
+ "command": [
5
+ "sessions",
6
+ "list"
7
+ ],
8
+ "summary": "List chat sessions. Without limit the whole list comes back as data; with it, one page plus meta.pagination. status, priorities and owners are comma-separated strings.",
9
+ "pathParams": [
10
+ "projectId"
11
+ ],
12
+ "query": [
13
+ {
14
+ "name": "status",
15
+ "flag": "status",
16
+ "kind": "string",
17
+ "required": false,
18
+ "description": "Comma-separated statuses to include (backlog, active, under-review, archived, completed). Any other value is rejected."
19
+ },
20
+ {
21
+ "name": "priorities",
22
+ "flag": "priorities",
23
+ "kind": "string",
24
+ "required": false,
25
+ "description": "Comma-separated priorities to include (urgent, high, medium, low, none)."
26
+ },
27
+ {
28
+ "name": "search",
29
+ "flag": "search",
30
+ "kind": "string",
31
+ "required": false,
32
+ "description": "Case-insensitive match on the title."
33
+ },
34
+ {
35
+ "name": "limit",
36
+ "flag": "limit",
37
+ "kind": "integer",
38
+ "required": false,
39
+ "description": "Page size. Values above 100 are clamped, not rejected. When set, the response carries meta.pagination."
40
+ },
41
+ {
42
+ "name": "cursor",
43
+ "flag": "cursor",
44
+ "kind": "string",
45
+ "required": false,
46
+ "description": "Opaque cursor from a previous page (meta.pagination.nextCursor). Requires limit, and must come from a page with the same sortByPriority."
47
+ },
48
+ {
49
+ "name": "sortByPriority",
50
+ "flag": "sort-by-priority",
51
+ "kind": "boolean",
52
+ "required": false,
53
+ "description": "Order by priority then creation time instead of by last activity."
54
+ },
55
+ {
56
+ "name": "excludeArchived",
57
+ "flag": "exclude-archived",
58
+ "kind": "boolean",
59
+ "required": false,
60
+ "description": "Drop archived sessions. Ignored when status is set."
61
+ },
62
+ {
63
+ "name": "excludeBacklog",
64
+ "flag": "exclude-backlog",
65
+ "kind": "boolean",
66
+ "required": false,
67
+ "description": "Drop backlog sessions."
68
+ },
69
+ {
70
+ "name": "owners",
71
+ "flag": "owners",
72
+ "kind": "string",
73
+ "required": false,
74
+ "description": "Comma-separated owner user ids, plus the sentinels 'none' (unowned) and 'any' (owned by anyone)."
75
+ }
76
+ ],
77
+ "body": null,
78
+ "multipart": null,
79
+ "attachments": false,
80
+ "anonymous": false
81
+ };
@@ -0,0 +1,18 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/messages",
4
+ "command": [
5
+ "sessions",
6
+ "messages"
7
+ ],
8
+ "summary": "Read the whole conversation of a chat session.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": null,
16
+ "attachments": false,
17
+ "anonymous": false
18
+ };
@@ -0,0 +1,23 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/chat-sessions/search",
4
+ "command": [
5
+ "sessions",
6
+ "search"
7
+ ],
8
+ "summary": "Search chat sessions by title. With an auth token this spans every workspace you belong to; a browser session searches its active workspace.",
9
+ "pathParams": [],
10
+ "query": [
11
+ {
12
+ "name": "q",
13
+ "flag": "q",
14
+ "kind": "string",
15
+ "required": false,
16
+ "description": "Search text, trimmed. Empty or absent returns the most recent sessions."
17
+ }
18
+ ],
19
+ "body": null,
20
+ "multipart": null,
21
+ "attachments": false,
22
+ "anonymous": false
23
+ };
@@ -0,0 +1,98 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/jobs/chat",
4
+ "command": [
5
+ "sessions",
6
+ "send"
7
+ ],
8
+ "summary": "Send a message: starts a turn, or steers the one running when steerTargetJobId names it. Attachments ride along as multipart.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": {
15
+ "fields": [
16
+ {
17
+ "name": "content",
18
+ "flag": "content",
19
+ "kind": "string",
20
+ "required": true
21
+ },
22
+ {
23
+ "name": "model",
24
+ "flag": "model",
25
+ "kind": "string",
26
+ "required": false
27
+ },
28
+ {
29
+ "name": "previewContext",
30
+ "flag": "preview-context",
31
+ "kind": "json",
32
+ "required": false
33
+ },
34
+ {
35
+ "name": "diffCommentsContext",
36
+ "flag": "diff-comments-context",
37
+ "kind": "json",
38
+ "required": false
39
+ },
40
+ {
41
+ "name": "retryFailedJobId",
42
+ "flag": "retry-failed-job-id",
43
+ "kind": "string",
44
+ "required": false
45
+ },
46
+ {
47
+ "name": "steerTargetJobId",
48
+ "flag": "steer-target-job-id",
49
+ "kind": "string",
50
+ "required": false
51
+ }
52
+ ],
53
+ "required": true
54
+ },
55
+ "multipart": [
56
+ {
57
+ "name": "content",
58
+ "flag": "content",
59
+ "kind": "string",
60
+ "required": false,
61
+ "description": "The message. May be empty only when diffCommentsContext or attachments carry it."
62
+ },
63
+ {
64
+ "name": "model",
65
+ "flag": "model",
66
+ "kind": "string",
67
+ "required": false
68
+ },
69
+ {
70
+ "name": "previewContext",
71
+ "flag": "preview-context",
72
+ "kind": "string",
73
+ "required": false,
74
+ "description": "JSON-encoded { frontendName, path }."
75
+ },
76
+ {
77
+ "name": "diffCommentsContext",
78
+ "flag": "diff-comments-context",
79
+ "kind": "string",
80
+ "required": false,
81
+ "description": "JSON-encoded array of diff comments."
82
+ },
83
+ {
84
+ "name": "retryFailedJobId",
85
+ "flag": "retry-failed-job-id",
86
+ "kind": "string",
87
+ "required": false
88
+ },
89
+ {
90
+ "name": "steerTargetJobId",
91
+ "flag": "steer-target-job-id",
92
+ "kind": "string",
93
+ "required": false
94
+ }
95
+ ],
96
+ "attachments": true,
97
+ "anonymous": false
98
+ };