@kosuke-ai/cli 0.0.56 → 1.0.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.
Files changed (251) hide show
  1. package/README.md +31 -448
  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 -516
  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 -35
  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 -273
  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 -659
  110. package/dist/kosuke/commands/build.js.map +0 -1
  111. package/dist/kosuke/commands/getcode.d.ts +0 -29
  112. package/dist/kosuke/commands/getcode.d.ts.map +0 -1
  113. package/dist/kosuke/commands/getcode.js +0 -221
  114. package/dist/kosuke/commands/getcode.js.map +0 -1
  115. package/dist/kosuke/commands/lint.d.ts +0 -21
  116. package/dist/kosuke/commands/lint.d.ts.map +0 -1
  117. package/dist/kosuke/commands/lint.js +0 -321
  118. package/dist/kosuke/commands/lint.js.map +0 -1
  119. package/dist/kosuke/commands/migrate.d.ts +0 -38
  120. package/dist/kosuke/commands/migrate.d.ts.map +0 -1
  121. package/dist/kosuke/commands/migrate.js +0 -284
  122. package/dist/kosuke/commands/migrate.js.map +0 -1
  123. package/dist/kosuke/commands/plan.d.ts +0 -28
  124. package/dist/kosuke/commands/plan.d.ts.map +0 -1
  125. package/dist/kosuke/commands/plan.js +0 -630
  126. package/dist/kosuke/commands/plan.js.map +0 -1
  127. package/dist/kosuke/commands/requirements.d.ts +0 -52
  128. package/dist/kosuke/commands/requirements.d.ts.map +0 -1
  129. package/dist/kosuke/commands/requirements.js +0 -615
  130. package/dist/kosuke/commands/requirements.js.map +0 -1
  131. package/dist/kosuke/commands/review.d.ts +0 -26
  132. package/dist/kosuke/commands/review.d.ts.map +0 -1
  133. package/dist/kosuke/commands/review.js +0 -303
  134. package/dist/kosuke/commands/review.js.map +0 -1
  135. package/dist/kosuke/commands/serve.d.ts +0 -9
  136. package/dist/kosuke/commands/serve.d.ts.map +0 -1
  137. package/dist/kosuke/commands/serve.js +0 -17
  138. package/dist/kosuke/commands/serve.js.map +0 -1
  139. package/dist/kosuke/commands/ship.d.ts +0 -37
  140. package/dist/kosuke/commands/ship.d.ts.map +0 -1
  141. package/dist/kosuke/commands/ship.js +0 -375
  142. package/dist/kosuke/commands/ship.js.map +0 -1
  143. package/dist/kosuke/commands/sync-rules.d.ts +0 -9
  144. package/dist/kosuke/commands/sync-rules.d.ts.map +0 -1
  145. package/dist/kosuke/commands/sync-rules.js +0 -379
  146. package/dist/kosuke/commands/sync-rules.js.map +0 -1
  147. package/dist/kosuke/commands/test.d.ts +0 -42
  148. package/dist/kosuke/commands/test.d.ts.map +0 -1
  149. package/dist/kosuke/commands/test.js +0 -540
  150. package/dist/kosuke/commands/test.js.map +0 -1
  151. package/dist/kosuke/commands/tickets.d.ts +0 -43
  152. package/dist/kosuke/commands/tickets.d.ts.map +0 -1
  153. package/dist/kosuke/commands/tickets.js +0 -499
  154. package/dist/kosuke/commands/tickets.js.map +0 -1
  155. package/dist/kosuke/serve/middleware/error-handler.d.ts +0 -14
  156. package/dist/kosuke/serve/middleware/error-handler.d.ts.map +0 -1
  157. package/dist/kosuke/serve/middleware/error-handler.js +0 -42
  158. package/dist/kosuke/serve/middleware/error-handler.js.map +0 -1
  159. package/dist/kosuke/serve/middleware/validation.d.ts +0 -13
  160. package/dist/kosuke/serve/middleware/validation.d.ts.map +0 -1
  161. package/dist/kosuke/serve/middleware/validation.js +0 -38
  162. package/dist/kosuke/serve/middleware/validation.js.map +0 -1
  163. package/dist/kosuke/serve/routes/build.d.ts +0 -6
  164. package/dist/kosuke/serve/routes/build.d.ts.map +0 -1
  165. package/dist/kosuke/serve/routes/build.js +0 -226
  166. package/dist/kosuke/serve/routes/build.js.map +0 -1
  167. package/dist/kosuke/serve/routes/health.d.ts +0 -6
  168. package/dist/kosuke/serve/routes/health.d.ts.map +0 -1
  169. package/dist/kosuke/serve/routes/health.js +0 -11
  170. package/dist/kosuke/serve/routes/health.js.map +0 -1
  171. package/dist/kosuke/serve/routes/plan.d.ts +0 -6
  172. package/dist/kosuke/serve/routes/plan.d.ts.map +0 -1
  173. package/dist/kosuke/serve/routes/plan.js +0 -106
  174. package/dist/kosuke/serve/routes/plan.js.map +0 -1
  175. package/dist/kosuke/serve/server.d.ts +0 -16
  176. package/dist/kosuke/serve/server.d.ts.map +0 -1
  177. package/dist/kosuke/serve/server.js +0 -67
  178. package/dist/kosuke/serve/server.js.map +0 -1
  179. package/dist/kosuke/serve/validation/build.d.ts +0 -41
  180. package/dist/kosuke/serve/validation/build.d.ts.map +0 -1
  181. package/dist/kosuke/serve/validation/build.js +0 -20
  182. package/dist/kosuke/serve/validation/build.js.map +0 -1
  183. package/dist/kosuke/serve/validation/plan.d.ts +0 -26
  184. package/dist/kosuke/serve/validation/plan.d.ts.map +0 -1
  185. package/dist/kosuke/serve/validation/plan.js +0 -15
  186. package/dist/kosuke/serve/validation/plan.js.map +0 -1
  187. package/dist/kosuke/types.d.ts +0 -469
  188. package/dist/kosuke/types.d.ts.map +0 -1
  189. package/dist/kosuke/types.js +0 -5
  190. package/dist/kosuke/types.js.map +0 -1
  191. package/dist/kosuke/utils/batch-creator.d.ts +0 -14
  192. package/dist/kosuke/utils/batch-creator.d.ts.map +0 -1
  193. package/dist/kosuke/utils/batch-creator.js +0 -76
  194. package/dist/kosuke/utils/batch-creator.js.map +0 -1
  195. package/dist/kosuke/utils/claude-agent.d.ts +0 -145
  196. package/dist/kosuke/utils/claude-agent.d.ts.map +0 -1
  197. package/dist/kosuke/utils/claude-agent.js +0 -504
  198. package/dist/kosuke/utils/claude-agent.js.map +0 -1
  199. package/dist/kosuke/utils/constants.d.ts +0 -40
  200. package/dist/kosuke/utils/constants.d.ts.map +0 -1
  201. package/dist/kosuke/utils/constants.js +0 -54
  202. package/dist/kosuke/utils/constants.js.map +0 -1
  203. package/dist/kosuke/utils/file-discovery.d.ts +0 -15
  204. package/dist/kosuke/utils/file-discovery.d.ts.map +0 -1
  205. package/dist/kosuke/utils/file-discovery.js +0 -80
  206. package/dist/kosuke/utils/file-discovery.js.map +0 -1
  207. package/dist/kosuke/utils/git.d.ts +0 -41
  208. package/dist/kosuke/utils/git.d.ts.map +0 -1
  209. package/dist/kosuke/utils/git.js +0 -145
  210. package/dist/kosuke/utils/git.js.map +0 -1
  211. package/dist/kosuke/utils/github.d.ts +0 -17
  212. package/dist/kosuke/utils/github.d.ts.map +0 -1
  213. package/dist/kosuke/utils/github.js +0 -22
  214. package/dist/kosuke/utils/github.js.map +0 -1
  215. package/dist/kosuke/utils/interactive-input.d.ts +0 -22
  216. package/dist/kosuke/utils/interactive-input.d.ts.map +0 -1
  217. package/dist/kosuke/utils/interactive-input.js +0 -124
  218. package/dist/kosuke/utils/interactive-input.js.map +0 -1
  219. package/dist/kosuke/utils/logger.d.ts +0 -161
  220. package/dist/kosuke/utils/logger.d.ts.map +0 -1
  221. package/dist/kosuke/utils/logger.js +0 -234
  222. package/dist/kosuke/utils/logger.js.map +0 -1
  223. package/dist/kosuke/utils/playwright-mcp-client.d.ts +0 -46
  224. package/dist/kosuke/utils/playwright-mcp-client.d.ts.map +0 -1
  225. package/dist/kosuke/utils/playwright-mcp-client.js +0 -135
  226. package/dist/kosuke/utils/playwright-mcp-client.js.map +0 -1
  227. package/dist/kosuke/utils/pr-orchestrator.d.ts +0 -49
  228. package/dist/kosuke/utils/pr-orchestrator.d.ts.map +0 -1
  229. package/dist/kosuke/utils/pr-orchestrator.js +0 -154
  230. package/dist/kosuke/utils/pr-orchestrator.js.map +0 -1
  231. package/dist/kosuke/utils/repository-manager.d.ts +0 -13
  232. package/dist/kosuke/utils/repository-manager.d.ts.map +0 -1
  233. package/dist/kosuke/utils/repository-manager.js +0 -94
  234. package/dist/kosuke/utils/repository-manager.js.map +0 -1
  235. package/dist/kosuke/utils/repository-resolver.d.ts +0 -12
  236. package/dist/kosuke/utils/repository-resolver.d.ts.map +0 -1
  237. package/dist/kosuke/utils/repository-resolver.js +0 -186
  238. package/dist/kosuke/utils/repository-resolver.js.map +0 -1
  239. package/dist/kosuke/utils/tickets-manager.d.ts +0 -64
  240. package/dist/kosuke/utils/tickets-manager.d.ts.map +0 -1
  241. package/dist/kosuke/utils/tickets-manager.js +0 -331
  242. package/dist/kosuke/utils/tickets-manager.js.map +0 -1
  243. package/dist/kosuke/utils/validator.d.ts +0 -45
  244. package/dist/kosuke/utils/validator.d.ts.map +0 -1
  245. package/dist/kosuke/utils/validator.js +0 -248
  246. package/dist/kosuke/utils/validator.js.map +0 -1
  247. package/dist/lib.d.ts +0 -96
  248. package/dist/lib.d.ts.map +0 -1
  249. package/dist/lib.js +0 -95
  250. package/dist/lib.js.map +0 -1
  251. package/dist/package.json +0 -99
@@ -0,0 +1,132 @@
1
+ import { operation as o0 } from './deploy/cancel.js';
2
+ import { operation as o1 } from './deploy/messages.js';
3
+ import { operation as o2 } from './deploy/run.js';
4
+ import { operation as o3 } from './preview/get.js';
5
+ import { operation as o4 } from './preview/health.js';
6
+ import { operation as o5 } from './preview/reset.js';
7
+ import { operation as o6 } from './preview/share-create.js';
8
+ import { operation as o7 } from './preview/share-delete.js';
9
+ import { operation as o8 } from './preview/share-get.js';
10
+ import { operation as o9 } from './preview/shared.js';
11
+ import { operation as o10 } from './projects/create.js';
12
+ import { operation as o11 } from './projects/delete.js';
13
+ import { operation as o12 } from './projects/env-vars-add.js';
14
+ import { operation as o13 } from './projects/env-vars-remove.js';
15
+ import { operation as o14 } from './projects/get.js';
16
+ import { operation as o15 } from './projects/list.js';
17
+ import { operation as o16 } from './projects/services-add.js';
18
+ import { operation as o17 } from './projects/services-list.js';
19
+ import { operation as o18 } from './projects/services-remove.js';
20
+ import { operation as o19 } from './projects/services-update.js';
21
+ import { operation as o20 } from './projects/settings-get.js';
22
+ import { operation as o21 } from './projects/settings-import.js';
23
+ import { operation as o22 } from './projects/settings-update.js';
24
+ import { operation as o23 } from './projects/skills.js';
25
+ import { operation as o24 } from './projects/update.js';
26
+ import { operation as o25 } from './sessions/activate.js';
27
+ import { operation as o26 } from './sessions/checklist-generate.js';
28
+ import { operation as o27 } from './sessions/checklist-get.js';
29
+ import { operation as o28 } from './sessions/comments-add.js';
30
+ import { operation as o29 } from './sessions/comments-delete.js';
31
+ import { operation as o30 } from './sessions/comments-list.js';
32
+ import { operation as o31 } from './sessions/comments-update.js';
33
+ import { operation as o32 } from './sessions/create.js';
34
+ import { operation as o33 } from './sessions/delete.js';
35
+ import { operation as o34 } from './sessions/diff-files.js';
36
+ import { operation as o35 } from './sessions/diff-patch.js';
37
+ import { operation as o36 } from './sessions/edit-prompt.js';
38
+ import { operation as o37 } from './sessions/files-get.js';
39
+ import { operation as o38 } from './sessions/files-list.js';
40
+ import { operation as o39 } from './sessions/files-write.js';
41
+ import { operation as o40 } from './sessions/get.js';
42
+ import { operation as o41 } from './sessions/git-commit.js';
43
+ import { operation as o42 } from './sessions/git-commit-message.js';
44
+ import { operation as o43 } from './sessions/git-push.js';
45
+ import { operation as o44 } from './sessions/git-state.js';
46
+ import { operation as o45 } from './sessions/jobs-cancel.js';
47
+ import { operation as o46 } from './sessions/jobs-get.js';
48
+ import { operation as o47 } from './sessions/list.js';
49
+ import { operation as o48 } from './sessions/messages.js';
50
+ import { operation as o49 } from './sessions/search.js';
51
+ import { operation as o50 } from './sessions/send.js';
52
+ import { operation as o51 } from './sessions/update.js';
53
+ import { operation as o52 } from './workspaces/access-status.js';
54
+ import { operation as o53 } from './workspaces/ai-provider-get.js';
55
+ import { operation as o54 } from './workspaces/ai-provider-remove.js';
56
+ import { operation as o55 } from './workspaces/ai-provider-set.js';
57
+ import { operation as o56 } from './workspaces/credits.js';
58
+ import { operation as o57 } from './workspaces/get.js';
59
+ import { operation as o58 } from './workspaces/getting-started-get.js';
60
+ import { operation as o59 } from './workspaces/getting-started-update.js';
61
+ import { operation as o60 } from './workspaces/list.js';
62
+ import { operation as o61 } from './workspaces/members.js';
63
+ import { operation as o62 } from './workspaces/sandbox-limit.js';
64
+ import { operation as o63 } from './workspaces/stop-sandboxes.js';
65
+ import { operation as o64 } from './workspaces/usage.js';
66
+ export const operations = [
67
+ o0,
68
+ o1,
69
+ o2,
70
+ o3,
71
+ o4,
72
+ o5,
73
+ o6,
74
+ o7,
75
+ o8,
76
+ o9,
77
+ o10,
78
+ o11,
79
+ o12,
80
+ o13,
81
+ o14,
82
+ o15,
83
+ o16,
84
+ o17,
85
+ o18,
86
+ o19,
87
+ o20,
88
+ o21,
89
+ o22,
90
+ o23,
91
+ o24,
92
+ o25,
93
+ o26,
94
+ o27,
95
+ o28,
96
+ o29,
97
+ o30,
98
+ o31,
99
+ o32,
100
+ o33,
101
+ o34,
102
+ o35,
103
+ o36,
104
+ o37,
105
+ o38,
106
+ o39,
107
+ o40,
108
+ o41,
109
+ o42,
110
+ o43,
111
+ o44,
112
+ o45,
113
+ o46,
114
+ o47,
115
+ o48,
116
+ o49,
117
+ o50,
118
+ o51,
119
+ o52,
120
+ o53,
121
+ o54,
122
+ o55,
123
+ o56,
124
+ o57,
125
+ o58,
126
+ o59,
127
+ o60,
128
+ o61,
129
+ o62,
130
+ o63,
131
+ o64,
132
+ ];
@@ -0,0 +1,25 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/preview",
4
+ "command": [
5
+ "preview",
6
+ "get"
7
+ ],
8
+ "summary": "Read the preview URLs of the project's main sandbox, or of one chat session's.",
9
+ "pathParams": [
10
+ "projectId"
11
+ ],
12
+ "query": [
13
+ {
14
+ "name": "sessionId",
15
+ "flag": "session-id",
16
+ "kind": "string",
17
+ "required": false,
18
+ "description": "A chat session's preview instead of the project's main one."
19
+ }
20
+ ],
21
+ "body": null,
22
+ "multipart": null,
23
+ "attachments": false,
24
+ "anonymous": false
25
+ };
@@ -0,0 +1,25 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/preview/health",
4
+ "command": [
5
+ "preview",
6
+ "health"
7
+ ],
8
+ "summary": "Read the health of every service behind a preview.",
9
+ "pathParams": [
10
+ "projectId"
11
+ ],
12
+ "query": [
13
+ {
14
+ "name": "sessionId",
15
+ "flag": "session-id",
16
+ "kind": "string",
17
+ "required": false,
18
+ "description": "A chat session's preview instead of the project's main one."
19
+ }
20
+ ],
21
+ "body": null,
22
+ "multipart": null,
23
+ "attachments": false,
24
+ "anonymous": false
25
+ };
@@ -0,0 +1,27 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/preview/reset",
4
+ "command": [
5
+ "preview",
6
+ "reset"
7
+ ],
8
+ "summary": "Queue a rebuild of a preview sandbox from scratch.",
9
+ "pathParams": [
10
+ "projectId"
11
+ ],
12
+ "query": [],
13
+ "body": {
14
+ "fields": [
15
+ {
16
+ "name": "sessionId",
17
+ "flag": "session-id",
18
+ "kind": "string",
19
+ "required": false
20
+ }
21
+ ],
22
+ "required": true
23
+ },
24
+ "multipart": null,
25
+ "attachments": false,
26
+ "anonymous": false
27
+ };
@@ -0,0 +1,36 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/preview/share",
4
+ "command": [
5
+ "preview",
6
+ "share",
7
+ "create"
8
+ ],
9
+ "summary": "Create the public share link of a preview. The body sessionId wins over the query one.",
10
+ "pathParams": [
11
+ "projectId"
12
+ ],
13
+ "query": [
14
+ {
15
+ "name": "sessionId",
16
+ "flag": "session-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "A chat session's preview instead of the project's main one."
20
+ }
21
+ ],
22
+ "body": {
23
+ "fields": [
24
+ {
25
+ "name": "sessionId",
26
+ "flag": "session-id",
27
+ "kind": "string",
28
+ "required": false
29
+ }
30
+ ],
31
+ "required": false
32
+ },
33
+ "multipart": null,
34
+ "attachments": false,
35
+ "anonymous": false
36
+ };
@@ -0,0 +1,26 @@
1
+ export const operation = {
2
+ "method": "delete",
3
+ "path": "/api/projects/{projectId}/preview/share",
4
+ "command": [
5
+ "preview",
6
+ "share",
7
+ "delete"
8
+ ],
9
+ "summary": "Revoke the public share link of a preview.",
10
+ "pathParams": [
11
+ "projectId"
12
+ ],
13
+ "query": [
14
+ {
15
+ "name": "sessionId",
16
+ "flag": "session-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "A chat session's preview instead of the project's main one."
20
+ }
21
+ ],
22
+ "body": null,
23
+ "multipart": null,
24
+ "attachments": false,
25
+ "anonymous": false
26
+ };
@@ -0,0 +1,26 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/preview/share",
4
+ "command": [
5
+ "preview",
6
+ "share",
7
+ "get"
8
+ ],
9
+ "summary": "Read the public share link of a preview, if one exists.",
10
+ "pathParams": [
11
+ "projectId"
12
+ ],
13
+ "query": [
14
+ {
15
+ "name": "sessionId",
16
+ "flag": "session-id",
17
+ "kind": "string",
18
+ "required": false,
19
+ "description": "A chat session's preview instead of the project's main one."
20
+ }
21
+ ],
22
+ "body": null,
23
+ "multipart": null,
24
+ "attachments": false,
25
+ "anonymous": false
26
+ };
@@ -0,0 +1,17 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/shared-previews/{slug}",
4
+ "command": [
5
+ "preview",
6
+ "shared"
7
+ ],
8
+ "summary": "Resolve a public share link. No credential needed; rate limited per caller.",
9
+ "pathParams": [
10
+ "slug"
11
+ ],
12
+ "query": [],
13
+ "body": null,
14
+ "multipart": null,
15
+ "attachments": false,
16
+ "anonymous": true
17
+ };
@@ -0,0 +1,37 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects",
4
+ "command": [
5
+ "projects",
6
+ "create"
7
+ ],
8
+ "summary": "Connect a GitHub repository as a project in a workspace.",
9
+ "pathParams": [],
10
+ "query": [],
11
+ "body": {
12
+ "fields": [
13
+ {
14
+ "name": "name",
15
+ "flag": "name",
16
+ "kind": "string",
17
+ "required": true
18
+ },
19
+ {
20
+ "name": "repositoryUrl",
21
+ "flag": "repository-url",
22
+ "kind": "string",
23
+ "required": true
24
+ },
25
+ {
26
+ "name": "orgId",
27
+ "flag": "org-id",
28
+ "kind": "string",
29
+ "required": false
30
+ }
31
+ ],
32
+ "required": true
33
+ },
34
+ "multipart": null,
35
+ "attachments": false,
36
+ "anonymous": false
37
+ };
@@ -0,0 +1,17 @@
1
+ export const operation = {
2
+ "method": "delete",
3
+ "path": "/api/projects/{projectId}",
4
+ "command": [
5
+ "projects",
6
+ "delete"
7
+ ],
8
+ "summary": "Delete a project and everything it owns. Workspace admins only.",
9
+ "pathParams": [
10
+ "projectId"
11
+ ],
12
+ "query": [],
13
+ "body": null,
14
+ "multipart": null,
15
+ "attachments": false,
16
+ "anonymous": false
17
+ };
@@ -0,0 +1,21 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/settings/env-vars",
4
+ "command": [
5
+ "projects",
6
+ "env-vars",
7
+ "add"
8
+ ],
9
+ "summary": "Add environment variables. The body is a JSON array of { key, value, isSecret? }.",
10
+ "pathParams": [
11
+ "projectId"
12
+ ],
13
+ "query": [],
14
+ "body": {
15
+ "fields": null,
16
+ "required": true
17
+ },
18
+ "multipart": null,
19
+ "attachments": false,
20
+ "anonymous": false
21
+ };
@@ -0,0 +1,21 @@
1
+ export const operation = {
2
+ "method": "delete",
3
+ "path": "/api/projects/{projectId}/settings/env-vars",
4
+ "command": [
5
+ "projects",
6
+ "env-vars",
7
+ "remove"
8
+ ],
9
+ "summary": "Remove environment variables. The body is a JSON array of variable ids.",
10
+ "pathParams": [
11
+ "projectId"
12
+ ],
13
+ "query": [],
14
+ "body": {
15
+ "fields": null,
16
+ "required": true
17
+ },
18
+ "multipart": null,
19
+ "attachments": false,
20
+ "anonymous": false
21
+ };
@@ -0,0 +1,17 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}",
4
+ "command": [
5
+ "projects",
6
+ "get"
7
+ ],
8
+ "summary": "Read one project.",
9
+ "pathParams": [
10
+ "projectId"
11
+ ],
12
+ "query": [],
13
+ "body": null,
14
+ "multipart": null,
15
+ "attachments": false,
16
+ "anonymous": false
17
+ };
@@ -0,0 +1,15 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects",
4
+ "command": [
5
+ "projects",
6
+ "list"
7
+ ],
8
+ "summary": "List the projects you can reach. With an auth token this spans every workspace you belong to; a browser session sees only its active workspace.",
9
+ "pathParams": [],
10
+ "query": [],
11
+ "body": null,
12
+ "multipart": null,
13
+ "attachments": false,
14
+ "anonymous": false
15
+ };
@@ -0,0 +1,87 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/settings/services",
4
+ "command": [
5
+ "projects",
6
+ "services",
7
+ "add"
8
+ ],
9
+ "summary": "Add a service. A port already used by another service is rejected by the handler.",
10
+ "pathParams": [
11
+ "projectId"
12
+ ],
13
+ "query": [],
14
+ "body": {
15
+ "fields": [
16
+ {
17
+ "name": "directory",
18
+ "flag": "directory",
19
+ "kind": "string",
20
+ "required": false,
21
+ "description": "Relative path to the service directory within the repository (e.g. \"api\", \"apps/web\"). Defaults to repository root."
22
+ },
23
+ {
24
+ "name": "kind",
25
+ "flag": "kind",
26
+ "kind": "string",
27
+ "required": false,
28
+ "description": "Run mode. \"process\": a plain command supervised directly (apps, workers, Postgres, Redis). \"docker-stack\": a multi-container docker-compose stack (e.g. Supabase) with up/down commands.",
29
+ "choices": [
30
+ "process",
31
+ "docker-stack"
32
+ ]
33
+ },
34
+ {
35
+ "name": "endpoints",
36
+ "flag": "endpoints",
37
+ "kind": "json",
38
+ "required": false,
39
+ "description": "Exposed endpoints. A service has 0..N (0 = background, no port); port/type/frontend/health are per endpoint. List the primary user-facing endpoint FIRST: it answers {{service.url}} and drives the readiness probe."
40
+ },
41
+ {
42
+ "name": "startCommand",
43
+ "flag": "start-command",
44
+ "kind": "string",
45
+ "required": true,
46
+ "description": "Shell command to start the service (e.g. \"npm run dev\"). The service MUST bind the first endpoint's port: pass it explicitly via a framework flag (e.g. \"next dev -p 3000\") or inline env for apps that only read process.env.PORT (e.g. \"PORT=3000 npm run dev\"). Steps that need a live dependency (migrations, seeds) belong at the front of this command; they re-run on every restart, so keep them idempotent. This command may span multiple lines — prefer that over a long single-line `&&` chain when there are several steps. For \"docker-stack\" services this is the up command (e.g. \"supabase start\")."
47
+ },
48
+ {
49
+ "name": "stopCommand",
50
+ "flag": "stop-command",
51
+ "kind": "string",
52
+ "required": false,
53
+ "description": "Optional command to stop the service (e.g. \"docker compose down\")."
54
+ },
55
+ {
56
+ "name": "after",
57
+ "flag": "after",
58
+ "kind": "json",
59
+ "required": false,
60
+ "description": "Other service names this service must start after. Ordering is readiness-gated — the service waits until its dependencies are accepting connections."
61
+ },
62
+ {
63
+ "name": "envFiles",
64
+ "flag": "env-files",
65
+ "kind": "json",
66
+ "required": false,
67
+ "description": "docker-stack only: paths (relative to `directory`) to write the resolved env into as a `.env` file. Empty defaults to a single `.env`. Example: Supabase needs [\".env\", \"supabase/functions/.env\"] — the root `.env` feeds config.toml's env() interpolation, while supabase/functions/.env is read by the Edge Functions"
68
+ },
69
+ {
70
+ "name": "name",
71
+ "flag": "name",
72
+ "kind": "string",
73
+ "required": true
74
+ },
75
+ {
76
+ "name": "sortOrder",
77
+ "flag": "sort-order",
78
+ "kind": "integer",
79
+ "required": false
80
+ }
81
+ ],
82
+ "required": true
83
+ },
84
+ "multipart": null,
85
+ "attachments": false,
86
+ "anonymous": false
87
+ };
@@ -0,0 +1,18 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/settings/services",
4
+ "command": [
5
+ "projects",
6
+ "services",
7
+ "list"
8
+ ],
9
+ "summary": "List the project services, in the order they start. Carries no environment variables.",
10
+ "pathParams": [
11
+ "projectId"
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": "delete",
3
+ "path": "/api/projects/{projectId}/settings/services/{serviceId}",
4
+ "command": [
5
+ "projects",
6
+ "services",
7
+ "remove"
8
+ ],
9
+ "summary": "Remove one service.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "serviceId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false
19
+ };
@@ -0,0 +1,81 @@
1
+ export const operation = {
2
+ "method": "patch",
3
+ "path": "/api/projects/{projectId}/settings/services/{serviceId}",
4
+ "command": [
5
+ "projects",
6
+ "services",
7
+ "update"
8
+ ],
9
+ "summary": "Change one service. Every field is optional; only the ones sent change.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "serviceId"
13
+ ],
14
+ "query": [],
15
+ "body": {
16
+ "fields": [
17
+ {
18
+ "name": "name",
19
+ "flag": "name",
20
+ "kind": "string",
21
+ "required": false
22
+ },
23
+ {
24
+ "name": "directory",
25
+ "flag": "directory",
26
+ "kind": "string",
27
+ "required": false
28
+ },
29
+ {
30
+ "name": "kind",
31
+ "flag": "kind",
32
+ "kind": "string",
33
+ "required": false,
34
+ "choices": [
35
+ "process",
36
+ "docker-stack"
37
+ ]
38
+ },
39
+ {
40
+ "name": "endpoints",
41
+ "flag": "endpoints",
42
+ "kind": "json",
43
+ "required": false
44
+ },
45
+ {
46
+ "name": "startCommand",
47
+ "flag": "start-command",
48
+ "kind": "string",
49
+ "required": false
50
+ },
51
+ {
52
+ "name": "stopCommand",
53
+ "flag": "stop-command",
54
+ "kind": "string",
55
+ "required": false
56
+ },
57
+ {
58
+ "name": "after",
59
+ "flag": "after",
60
+ "kind": "json",
61
+ "required": false
62
+ },
63
+ {
64
+ "name": "envFiles",
65
+ "flag": "env-files",
66
+ "kind": "json",
67
+ "required": false
68
+ },
69
+ {
70
+ "name": "sortOrder",
71
+ "flag": "sort-order",
72
+ "kind": "integer",
73
+ "required": false
74
+ }
75
+ ],
76
+ "required": true
77
+ },
78
+ "multipart": null,
79
+ "attachments": false,
80
+ "anonymous": false
81
+ };