@kosuke-ai/kosuke 0.0.0-stage → 1.0.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.
Files changed (352) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/README.md +199 -2
  3. package/dist/agent/http.js +18 -0
  4. package/dist/agent/summary.js +419 -0
  5. package/dist/commands/agent.js +22 -0
  6. package/dist/commands/auth.js +117 -0
  7. package/dist/commands/integrations.js +310 -0
  8. package/dist/commands/skill-runs.js +230 -0
  9. package/dist/commands/watch.js +167 -0
  10. package/dist/generated/commands/activity/list.js +73 -0
  11. package/dist/generated/commands/crons/artifacts-list.js +57 -0
  12. package/dist/generated/commands/crons/create.js +65 -0
  13. package/dist/generated/commands/crons/delete.js +18 -0
  14. package/dist/generated/commands/crons/get.js +19 -0
  15. package/dist/generated/commands/crons/list.js +54 -0
  16. package/dist/generated/commands/crons/projects-resume.js +21 -0
  17. package/dist/generated/commands/crons/run.js +37 -0
  18. package/dist/generated/commands/crons/runs-artifacts-get.js +23 -0
  19. package/dist/generated/commands/crons/runs-artifacts-list.js +22 -0
  20. package/dist/generated/commands/crons/runs-cancel.js +21 -0
  21. package/dist/generated/commands/crons/runs-diagnostics.js +20 -0
  22. package/dist/generated/commands/crons/runs-get.js +21 -0
  23. package/dist/generated/commands/crons/runs-list.js +58 -0
  24. package/dist/generated/commands/crons/runs-messages.js +21 -0
  25. package/dist/generated/commands/crons/update.js +73 -0
  26. package/dist/generated/commands/deploy/cancel.js +18 -0
  27. package/dist/generated/commands/deploy/list.js +33 -0
  28. package/dist/generated/commands/deploy/message.js +32 -0
  29. package/dist/generated/commands/deploy/messages.js +18 -0
  30. package/dist/generated/commands/deploy/queue-delete.js +19 -0
  31. package/dist/generated/commands/deploy/queue-list.js +19 -0
  32. package/dist/generated/commands/deploy/queue-move.js +31 -0
  33. package/dist/generated/commands/deploy/queue-resume.js +19 -0
  34. package/dist/generated/commands/deploy/queue-send.js +20 -0
  35. package/dist/generated/commands/deploy/queue-steer.js +20 -0
  36. package/dist/generated/commands/deploy/queue-update.js +56 -0
  37. package/dist/generated/commands/deploy/run.js +65 -0
  38. package/dist/generated/commands/deploy/set-model.js +28 -0
  39. package/dist/generated/commands/devices/list.js +18 -0
  40. package/dist/generated/commands/devices/request.js +31 -0
  41. package/dist/generated/commands/files/delete.js +18 -0
  42. package/dist/generated/commands/files/get.js +19 -0
  43. package/dist/generated/commands/files/list.js +25 -0
  44. package/dist/generated/commands/files/mkdir.js +28 -0
  45. package/dist/generated/commands/files/move.js +35 -0
  46. package/dist/generated/commands/files/put.js +92 -0
  47. package/dist/generated/commands/github/repositories.js +16 -0
  48. package/dist/generated/commands/github/status.js +16 -0
  49. package/dist/generated/commands/index.js +650 -0
  50. package/dist/generated/commands/integrations/execute.js +49 -0
  51. package/dist/generated/commands/integrations/tools.js +70 -0
  52. package/dist/generated/commands/mac/apps.js +30 -0
  53. package/dist/generated/commands/mac/ax-tree.js +65 -0
  54. package/dist/generated/commands/mac/browser-connection-check.js +69 -0
  55. package/dist/generated/commands/mac/browser-connections.js +30 -0
  56. package/dist/generated/commands/mac/browser-profiles.js +36 -0
  57. package/dist/generated/commands/mac/browser-sign-in.js +79 -0
  58. package/dist/generated/commands/mac/browser.js +44 -0
  59. package/dist/generated/commands/mac/click.js +72 -0
  60. package/dist/generated/commands/mac/file-delete.js +37 -0
  61. package/dist/generated/commands/mac/file-list.js +37 -0
  62. package/dist/generated/commands/mac/file-move.js +44 -0
  63. package/dist/generated/commands/mac/file-read.js +37 -0
  64. package/dist/generated/commands/mac/file-write.js +50 -0
  65. package/dist/generated/commands/mac/key.js +58 -0
  66. package/dist/generated/commands/mac/open.js +43 -0
  67. package/dist/generated/commands/mac/screenshot.js +51 -0
  68. package/dist/generated/commands/mac/scroll.js +70 -0
  69. package/dist/generated/commands/mac/shell.js +51 -0
  70. package/dist/generated/commands/mac/tools.js +18 -0
  71. package/dist/generated/commands/mac/type.js +64 -0
  72. package/dist/generated/commands/mac/windows.js +30 -0
  73. package/dist/generated/commands/members/list.js +24 -0
  74. package/dist/generated/commands/models/list.js +16 -0
  75. package/dist/generated/commands/personal-tasks/create.js +72 -0
  76. package/dist/generated/commands/personal-tasks/delete.js +17 -0
  77. package/dist/generated/commands/personal-tasks/get.js +20 -0
  78. package/dist/generated/commands/personal-tasks/list.js +71 -0
  79. package/dist/generated/commands/personal-tasks/move.js +31 -0
  80. package/dist/generated/commands/personal-tasks/start.js +69 -0
  81. package/dist/generated/commands/personal-tasks/update.js +81 -0
  82. package/dist/generated/commands/preview/get.js +26 -0
  83. package/dist/generated/commands/preview/health.js +26 -0
  84. package/dist/generated/commands/preview/reset.js +28 -0
  85. package/dist/generated/commands/preview/share-create.js +37 -0
  86. package/dist/generated/commands/preview/share-delete.js +26 -0
  87. package/dist/generated/commands/preview/share-get.js +27 -0
  88. package/dist/generated/commands/preview/shared-artifact.js +19 -0
  89. package/dist/generated/commands/preview/shared.js +17 -0
  90. package/dist/generated/commands/projects/backlog-items-create.js +35 -0
  91. package/dist/generated/commands/projects/backlog-items-delete.js +19 -0
  92. package/dist/generated/commands/projects/backlog-items-list.js +19 -0
  93. package/dist/generated/commands/projects/backlog-items-send.js +20 -0
  94. package/dist/generated/commands/projects/backlog-items-update.js +42 -0
  95. package/dist/generated/commands/projects/batch-merging-eject.js +37 -0
  96. package/dist/generated/commands/projects/batch-merging-finish.js +30 -0
  97. package/dist/generated/commands/projects/batch-merging-get.js +19 -0
  98. package/dist/generated/commands/projects/batch-merging-set.js +32 -0
  99. package/dist/generated/commands/projects/branches.js +31 -0
  100. package/dist/generated/commands/projects/create.js +72 -0
  101. package/dist/generated/commands/projects/delete.js +17 -0
  102. package/dist/generated/commands/projects/env-vars-add.js +22 -0
  103. package/dist/generated/commands/projects/env-vars-remove.js +21 -0
  104. package/dist/generated/commands/projects/get.js +18 -0
  105. package/dist/generated/commands/projects/labels-color.js +37 -0
  106. package/dist/generated/commands/projects/labels-delete.js +50 -0
  107. package/dist/generated/commands/projects/labels-usage.js +27 -0
  108. package/dist/generated/commands/projects/labels.js +18 -0
  109. package/dist/generated/commands/projects/list.js +16 -0
  110. package/dist/generated/commands/projects/live-logs.js +34 -0
  111. package/dist/generated/commands/projects/live-query.js +30 -0
  112. package/dist/generated/commands/projects/live-traffic.js +27 -0
  113. package/dist/generated/commands/projects/live-write-status.js +20 -0
  114. package/dist/generated/commands/projects/live-write.js +37 -0
  115. package/dist/generated/commands/projects/qa-guide-get.js +19 -0
  116. package/dist/generated/commands/projects/qa-guide-set.js +40 -0
  117. package/dist/generated/commands/projects/releases.js +18 -0
  118. package/dist/generated/commands/projects/services-add.js +88 -0
  119. package/dist/generated/commands/projects/services-list.js +19 -0
  120. package/dist/generated/commands/projects/services-remove.js +19 -0
  121. package/dist/generated/commands/projects/services-update.js +82 -0
  122. package/dist/generated/commands/projects/settings-get.js +19 -0
  123. package/dist/generated/commands/projects/settings-import.js +99 -0
  124. package/dist/generated/commands/projects/settings-update.js +85 -0
  125. package/dist/generated/commands/projects/skills.js +39 -0
  126. package/dist/generated/commands/projects/switch-workflow.js +34 -0
  127. package/dist/generated/commands/projects/update.js +28 -0
  128. package/dist/generated/commands/projects/versions.js +18 -0
  129. package/dist/generated/commands/sensei/cards-close.js +43 -0
  130. package/dist/generated/commands/sensei/cards-mark-read.js +30 -0
  131. package/dist/generated/commands/sensei/cards-put.js +152 -0
  132. package/dist/generated/commands/sensei/cards-send-reply.js +30 -0
  133. package/dist/generated/commands/sensei/cards.js +38 -0
  134. package/dist/generated/commands/sensei/chat.js +23 -0
  135. package/dist/generated/commands/sensei/connect.js +57 -0
  136. package/dist/generated/commands/sensei/delegates-get.js +21 -0
  137. package/dist/generated/commands/sensei/delegates-note.js +46 -0
  138. package/dist/generated/commands/sensei/delegates-start.js +51 -0
  139. package/dist/generated/commands/sensei/delegates-stop.js +21 -0
  140. package/dist/generated/commands/sensei/describe.js +36 -0
  141. package/dist/generated/commands/sensei/device-requests-decide.js +48 -0
  142. package/dist/generated/commands/sensei/device-requests-list.js +27 -0
  143. package/dist/generated/commands/sensei/memory-get.js +19 -0
  144. package/dist/generated/commands/sensei/memory-put.js +55 -0
  145. package/dist/generated/commands/sensei/merge-rule.js +36 -0
  146. package/dist/generated/commands/sensei/merge.js +36 -0
  147. package/dist/generated/commands/sensei/messages-reply.js +44 -0
  148. package/dist/generated/commands/sensei/messages-reroute.js +37 -0
  149. package/dist/generated/commands/sensei/messages-send.js +98 -0
  150. package/dist/generated/commands/sensei/notifications-open.js +19 -0
  151. package/dist/generated/commands/sensei/reels-activity.js +16 -0
  152. package/dist/generated/commands/sensei/reels-proposals.js +24 -0
  153. package/dist/generated/commands/sensei/reels-ranks.js +16 -0
  154. package/dist/generated/commands/sensei/reels-skips.js +32 -0
  155. package/dist/generated/commands/sensei/repository.js +36 -0
  156. package/dist/generated/commands/sensei/review-approve.js +37 -0
  157. package/dist/generated/commands/sensei/review-ask.js +44 -0
  158. package/dist/generated/commands/sensei/review-context.js +32 -0
  159. package/dist/generated/commands/sensei/sessions-assess.js +71 -0
  160. package/dist/generated/commands/sensei/sessions-facts.js +26 -0
  161. package/dist/generated/commands/sensei/suggest.js +36 -0
  162. package/dist/generated/commands/sensei/thread-done.js +21 -0
  163. package/dist/generated/commands/sensei/thread-move.js +30 -0
  164. package/dist/generated/commands/sensei/thread-read.js +41 -0
  165. package/dist/generated/commands/sensei/thread-split.js +30 -0
  166. package/dist/generated/commands/sensei/threads.js +47 -0
  167. package/dist/generated/commands/sensei/tickets-merge.js +51 -0
  168. package/dist/generated/commands/sensei/widgets.js +15 -0
  169. package/dist/generated/commands/sessions/activate.js +33 -0
  170. package/dist/generated/commands/sessions/all.js +142 -0
  171. package/dist/generated/commands/sessions/app-stack-start.js +20 -0
  172. package/dist/generated/commands/sessions/artifacts-attach.js +31 -0
  173. package/dist/generated/commands/sessions/artifacts-get.js +21 -0
  174. package/dist/generated/commands/sessions/artifacts-list.js +20 -0
  175. package/dist/generated/commands/sessions/create.js +234 -0
  176. package/dist/generated/commands/sessions/delete.js +21 -0
  177. package/dist/generated/commands/sessions/desktop-control.js +35 -0
  178. package/dist/generated/commands/sessions/desktop-start.js +19 -0
  179. package/dist/generated/commands/sessions/desktop.js +19 -0
  180. package/dist/generated/commands/sessions/diff-comments-add.js +65 -0
  181. package/dist/generated/commands/sessions/diff-comments-delete.js +21 -0
  182. package/dist/generated/commands/sessions/diff-comments-list.js +21 -0
  183. package/dist/generated/commands/sessions/diff-comments-update.js +25 -0
  184. package/dist/generated/commands/sessions/diff-commits.js +20 -0
  185. package/dist/generated/commands/sessions/diff-files.js +20 -0
  186. package/dist/generated/commands/sessions/diff-patch.js +87 -0
  187. package/dist/generated/commands/sessions/edit-prompt.js +81 -0
  188. package/dist/generated/commands/sessions/files-get.js +28 -0
  189. package/dist/generated/commands/sessions/files-list.js +20 -0
  190. package/dist/generated/commands/sessions/files-write.js +42 -0
  191. package/dist/generated/commands/sessions/get.js +19 -0
  192. package/dist/generated/commands/sessions/git-commit-message.js +20 -0
  193. package/dist/generated/commands/sessions/git-commit.js +30 -0
  194. package/dist/generated/commands/sessions/git-push.js +20 -0
  195. package/dist/generated/commands/sessions/git-state.js +20 -0
  196. package/dist/generated/commands/sessions/jobs-cancel.js +21 -0
  197. package/dist/generated/commands/sessions/jobs-get.js +21 -0
  198. package/dist/generated/commands/sessions/jobs-list.js +35 -0
  199. package/dist/generated/commands/sessions/labels-edit.js +45 -0
  200. package/dist/generated/commands/sessions/labels-set.js +45 -0
  201. package/dist/generated/commands/sessions/list.js +130 -0
  202. package/dist/generated/commands/sessions/mark-read.js +19 -0
  203. package/dist/generated/commands/sessions/message.js +33 -0
  204. package/dist/generated/commands/sessions/messages.js +41 -0
  205. package/dist/generated/commands/sessions/needs-you.js +16 -0
  206. package/dist/generated/commands/sessions/qa-clear.js +22 -0
  207. package/dist/generated/commands/sessions/qa-set.js +33 -0
  208. package/dist/generated/commands/sessions/queue-delete.js +23 -0
  209. package/dist/generated/commands/sessions/queue-list.js +20 -0
  210. package/dist/generated/commands/sessions/queue-move.js +32 -0
  211. package/dist/generated/commands/sessions/queue-resume.js +20 -0
  212. package/dist/generated/commands/sessions/queue-send.js +21 -0
  213. package/dist/generated/commands/sessions/queue-steer.js +21 -0
  214. package/dist/generated/commands/sessions/queue-update.js +57 -0
  215. package/dist/generated/commands/sessions/runtime-command.js +39 -0
  216. package/dist/generated/commands/sessions/search.js +24 -0
  217. package/dist/generated/commands/sessions/send.js +138 -0
  218. package/dist/generated/commands/sessions/steer.js +36 -0
  219. package/dist/generated/commands/sessions/sync.js +37 -0
  220. package/dist/generated/commands/sessions/title-generate.js +29 -0
  221. package/dist/generated/commands/sessions/update.js +118 -0
  222. package/dist/generated/commands/tasks/all.js +112 -0
  223. package/dist/generated/commands/tasks/create.js +230 -0
  224. package/dist/generated/commands/tasks/delete.js +18 -0
  225. package/dist/generated/commands/tasks/get.js +19 -0
  226. package/dist/generated/commands/tasks/labels.js +18 -0
  227. package/dist/generated/commands/tasks/list.js +114 -0
  228. package/dist/generated/commands/tasks/start.js +68 -0
  229. package/dist/generated/commands/tasks/update.js +136 -0
  230. package/dist/generated/commands/user/auth-token-revoke.js +16 -0
  231. package/dist/generated/commands/user/crons-artifacts-list.js +59 -0
  232. package/dist/generated/commands/user/crons-create.js +65 -0
  233. package/dist/generated/commands/user/crons-get.js +21 -0
  234. package/dist/generated/commands/user/crons-list.js +41 -0
  235. package/dist/generated/commands/user/crons-run.js +21 -0
  236. package/dist/generated/commands/user/crons-runs-artifacts-get.js +25 -0
  237. package/dist/generated/commands/user/crons-runs-artifacts-list.js +24 -0
  238. package/dist/generated/commands/user/crons-runs-get.js +23 -0
  239. package/dist/generated/commands/user/crons-runs-list.js +52 -0
  240. package/dist/generated/commands/user/crons-update.js +73 -0
  241. package/dist/generated/commands/user/files-delete.js +18 -0
  242. package/dist/generated/commands/user/files-get.js +19 -0
  243. package/dist/generated/commands/user/files-list.js +24 -0
  244. package/dist/generated/commands/user/files-mkdir.js +27 -0
  245. package/dist/generated/commands/user/files-move.js +35 -0
  246. package/dist/generated/commands/user/files-put.js +91 -0
  247. package/dist/generated/commands/user/integrations-linkedin-connect.js +35 -0
  248. package/dist/generated/commands/user/integrations-linkedin-list.js +17 -0
  249. package/dist/generated/commands/user/integrations-linkedin-reconnect.js +19 -0
  250. package/dist/generated/commands/user/integrations-list.js +16 -0
  251. package/dist/generated/commands/user/integrations-remove.js +19 -0
  252. package/dist/generated/commands/user/integrations-x-connect.js +35 -0
  253. package/dist/generated/commands/user/integrations-x-list.js +17 -0
  254. package/dist/generated/commands/user/integrations-x-reconnect.js +19 -0
  255. package/dist/generated/commands/user/memory-list.js +16 -0
  256. package/dist/generated/commands/user/memory-put.js +36 -0
  257. package/dist/generated/commands/user/plugins-list.js +28 -0
  258. package/dist/generated/commands/user/plugins-update.js +29 -0
  259. package/dist/generated/commands/user/profile.js +16 -0
  260. package/dist/generated/commands/user/push-devices-register.js +76 -0
  261. package/dist/generated/commands/user/push-devices-remove.js +26 -0
  262. package/dist/generated/commands/user/skills-create.js +33 -0
  263. package/dist/generated/commands/user/skills-delete.js +18 -0
  264. package/dist/generated/commands/user/skills-get.js +19 -0
  265. package/dist/generated/commands/user/skills-list.js +17 -0
  266. package/dist/generated/commands/user/skills-update.js +35 -0
  267. package/dist/generated/commands/user/subscriptions-delete.js +18 -0
  268. package/dist/generated/commands/user/subscriptions-get.js +17 -0
  269. package/dist/generated/commands/user/subscriptions-grok-change.js +20 -0
  270. package/dist/generated/commands/user/subscriptions-grok-get.js +18 -0
  271. package/dist/generated/commands/user/subscriptions-login-antigravity-cancel.js +34 -0
  272. package/dist/generated/commands/user/subscriptions-login-antigravity-complete.js +40 -0
  273. package/dist/generated/commands/user/subscriptions-login-antigravity-start.js +28 -0
  274. package/dist/generated/commands/user/subscriptions-login-claude-complete.js +34 -0
  275. package/dist/generated/commands/user/subscriptions-login-claude-start.js +29 -0
  276. package/dist/generated/commands/user/subscriptions-login-codex-complete.js +28 -0
  277. package/dist/generated/commands/user/subscriptions-login-codex-start.js +29 -0
  278. package/dist/generated/commands/user/subscriptions-login-muse-complete.js +28 -0
  279. package/dist/generated/commands/user/subscriptions-login-muse-start.js +29 -0
  280. package/dist/generated/commands/user/subscriptions-logins-delete.js +20 -0
  281. package/dist/generated/commands/user/subscriptions-logins-recheck.js +19 -0
  282. package/dist/generated/commands/user/subscriptions-set-default-model.js +33 -0
  283. package/dist/generated/commands/user/subscriptions-set-key.js +35 -0
  284. package/dist/generated/commands/user/subscriptions-token-usage.js +17 -0
  285. package/dist/generated/commands/user/subscriptions-usage.js +52 -0
  286. package/dist/generated/commands/workspaces/access-status.js +30 -0
  287. package/dist/generated/commands/workspaces/ai-provider-get.js +19 -0
  288. package/dist/generated/commands/workspaces/ai-provider-google-delete-method.js +33 -0
  289. package/dist/generated/commands/workspaces/ai-provider-google-get.js +20 -0
  290. package/dist/generated/commands/workspaces/ai-provider-google-remove.js +19 -0
  291. package/dist/generated/commands/workspaces/ai-provider-google-save.js +38 -0
  292. package/dist/generated/commands/workspaces/ai-provider-google-select-method.js +39 -0
  293. package/dist/generated/commands/workspaces/ai-provider-google-usage.js +39 -0
  294. package/dist/generated/commands/workspaces/ai-provider-login-antigravity-cancel.js +36 -0
  295. package/dist/generated/commands/workspaces/ai-provider-login-antigravity-complete.js +42 -0
  296. package/dist/generated/commands/workspaces/ai-provider-login-antigravity-start.js +30 -0
  297. package/dist/generated/commands/workspaces/ai-provider-logins-recheck.js +41 -0
  298. package/dist/generated/commands/workspaces/ai-provider-remove.js +57 -0
  299. package/dist/generated/commands/workspaces/ai-provider-set.js +21 -0
  300. package/dist/generated/commands/workspaces/ai-provider-token-usage.js +19 -0
  301. package/dist/generated/commands/workspaces/ai-provider-usage-claude.js +39 -0
  302. package/dist/generated/commands/workspaces/ai-provider-usage-codex.js +39 -0
  303. package/dist/generated/commands/workspaces/ai-provider-usage-coding-plan.js +32 -0
  304. package/dist/generated/commands/workspaces/ai-provider-usage-deepseek.js +32 -0
  305. package/dist/generated/commands/workspaces/ai-provider-usage-grok.js +39 -0
  306. package/dist/generated/commands/workspaces/ai-provider-usage-kimi-code.js +32 -0
  307. package/dist/generated/commands/workspaces/ai-provider-usage-muse.js +39 -0
  308. package/dist/generated/commands/workspaces/artifacts.js +26 -0
  309. package/dist/generated/commands/workspaces/credits.js +18 -0
  310. package/dist/generated/commands/workspaces/get.js +18 -0
  311. package/dist/generated/commands/workspaces/grok-change.js +21 -0
  312. package/dist/generated/commands/workspaces/grok-get.js +19 -0
  313. package/dist/generated/commands/workspaces/integrations-get.js +20 -0
  314. package/dist/generated/commands/workspaces/integrations-list.js +37 -0
  315. package/dist/generated/commands/workspaces/integrations-remove.js +19 -0
  316. package/dist/generated/commands/workspaces/list.js +16 -0
  317. package/dist/generated/commands/workspaces/members.js +26 -0
  318. package/dist/generated/commands/workspaces/plugins-list.js +30 -0
  319. package/dist/generated/commands/workspaces/plugins-update.js +30 -0
  320. package/dist/generated/commands/workspaces/provider-login-claude-complete.js +35 -0
  321. package/dist/generated/commands/workspaces/provider-login-claude-start.js +30 -0
  322. package/dist/generated/commands/workspaces/provider-login-codex-complete.js +29 -0
  323. package/dist/generated/commands/workspaces/provider-login-codex-start.js +30 -0
  324. package/dist/generated/commands/workspaces/provider-login-muse-complete.js +29 -0
  325. package/dist/generated/commands/workspaces/provider-login-muse-start.js +30 -0
  326. package/dist/generated/commands/workspaces/sandbox-limit.js +18 -0
  327. package/dist/generated/commands/workspaces/skills-create.js +35 -0
  328. package/dist/generated/commands/workspaces/skills-delete.js +19 -0
  329. package/dist/generated/commands/workspaces/skills-get.js +20 -0
  330. package/dist/generated/commands/workspaces/skills-list.js +19 -0
  331. package/dist/generated/commands/workspaces/skills-update.js +36 -0
  332. package/dist/generated/commands/workspaces/stop-sandboxes.js +28 -0
  333. package/dist/generated/commands/workspaces/timezone-set.js +29 -0
  334. package/dist/generated/commands/workspaces/usage.js +33 -0
  335. package/dist/generated/providers.js +31 -0
  336. package/dist/index.js +7 -0
  337. package/dist/integrations/api.js +136 -0
  338. package/dist/integrations/render.js +59 -0
  339. package/dist/program.js +73 -0
  340. package/dist/runtime/agent-tokens.js +39 -0
  341. package/dist/runtime/attach.js +199 -0
  342. package/dist/runtime/attachments.js +63 -0
  343. package/dist/runtime/client.js +188 -0
  344. package/dist/runtime/config.js +49 -0
  345. package/dist/runtime/credentials.js +32 -0
  346. package/dist/runtime/descriptor.js +7 -0
  347. package/dist/runtime/invoke.js +152 -0
  348. package/dist/runtime/job-watch.js +374 -0
  349. package/dist/runtime/runtime.js +46 -0
  350. package/dist/runtime/version.js +5 -0
  351. package/openapi.json +26091 -0
  352. package/package.json +104 -4
@@ -0,0 +1,234 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions",
4
+ "command": [
5
+ "sessions",
6
+ "create"
7
+ ],
8
+ "summary": "Start a chat session, or file a backlog one with status=backlog. Title or content is required; a backlog session needs content. Attachments ride along as multipart. From a sandbox or a Cron Run, only status=backlog, and reason is required: one line on why the ticket exists. From a Cron Run, Kosuke files it and is its Assignee, and a model the workspace cannot run falls back to the Cron's: model says which one it will run on.",
9
+ "pathParams": [
10
+ "projectId"
11
+ ],
12
+ "query": [],
13
+ "body": {
14
+ "fields": [
15
+ {
16
+ "name": "title",
17
+ "flag": "title",
18
+ "kind": "string",
19
+ "required": false
20
+ },
21
+ {
22
+ "name": "content",
23
+ "flag": "content",
24
+ "kind": "string",
25
+ "required": false
26
+ },
27
+ {
28
+ "name": "model",
29
+ "flag": "model",
30
+ "kind": "string",
31
+ "required": false
32
+ },
33
+ {
34
+ "name": "auto",
35
+ "flag": "auto",
36
+ "kind": "boolean",
37
+ "required": false,
38
+ "description": "True starts the session on Auto: Kosuke picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model."
39
+ },
40
+ {
41
+ "name": "kosukeFree",
42
+ "flag": "kosuke-free",
43
+ "kind": "boolean",
44
+ "required": false,
45
+ "description": "true starts the session on Kosuke free, on the serving source's model. A member who can run no provider starts on it anyway; false never does."
46
+ },
47
+ {
48
+ "name": "status",
49
+ "flag": "status",
50
+ "kind": "string",
51
+ "required": false,
52
+ "choices": [
53
+ "backlog"
54
+ ]
55
+ },
56
+ {
57
+ "name": "ownerId",
58
+ "flag": "owner-id",
59
+ "kind": "string",
60
+ "required": false
61
+ },
62
+ {
63
+ "name": "priority",
64
+ "flag": "priority",
65
+ "kind": "string",
66
+ "required": false,
67
+ "choices": [
68
+ "urgent",
69
+ "high",
70
+ "medium",
71
+ "low",
72
+ "none"
73
+ ]
74
+ },
75
+ {
76
+ "name": "startBranch",
77
+ "flag": "start-branch",
78
+ "kind": "string",
79
+ "required": false
80
+ },
81
+ {
82
+ "name": "reason",
83
+ "flag": "reason",
84
+ "kind": "string",
85
+ "required": false,
86
+ "description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else."
87
+ },
88
+ {
89
+ "name": "startWhenDeployed",
90
+ "flag": "start-when-deployed",
91
+ "kind": "boolean",
92
+ "required": false,
93
+ "description": "With status=backlog, from a member: when the project's first Deploy has not landed, Kosuke starts the ticket with /kosuke:ship as its Assignee once it lands. The session's startWhenDeployedAt says whether it was marked; ignored otherwise."
94
+ },
95
+ {
96
+ "name": "sandboxSize",
97
+ "flag": "sandbox-size",
98
+ "kind": "string",
99
+ "required": false,
100
+ "description": "The session's Sandbox size: small (2 CPU, 4 GB), medium (4 CPU, 8 GB), large (8 CPU, 16 GB) or xlarge (16 CPU, 32 GB). Absent boots the project's size. Fixed once the session starts.",
101
+ "choices": [
102
+ "small",
103
+ "medium",
104
+ "large",
105
+ "xlarge"
106
+ ]
107
+ },
108
+ {
109
+ "name": "appStack",
110
+ "flag": "app-stack",
111
+ "kind": "string",
112
+ "required": false,
113
+ "description": "start (default) runs the project's services when the sandbox boots. skip boots setup and the agent only; a member or the session's agent starts the services later with sessions app-stack-start. Fixed once the session starts.",
114
+ "choices": [
115
+ "start",
116
+ "skip"
117
+ ]
118
+ }
119
+ ],
120
+ "required": true
121
+ },
122
+ "multipart": [
123
+ {
124
+ "name": "title",
125
+ "flag": "title",
126
+ "kind": "string",
127
+ "required": false
128
+ },
129
+ {
130
+ "name": "content",
131
+ "flag": "content",
132
+ "kind": "string",
133
+ "required": false
134
+ },
135
+ {
136
+ "name": "model",
137
+ "flag": "model",
138
+ "kind": "string",
139
+ "required": false
140
+ },
141
+ {
142
+ "name": "auto",
143
+ "flag": "auto",
144
+ "kind": "boolean",
145
+ "required": false,
146
+ "description": "True starts the session on Auto: Kosuke picks the Model and Provider of each Turn. False keeps it off. Absent follows your Default Model."
147
+ },
148
+ {
149
+ "name": "kosukeFree",
150
+ "flag": "kosuke-free",
151
+ "kind": "boolean",
152
+ "required": false,
153
+ "description": "true starts the session on Kosuke free, on the serving source's model. A member who can run no provider starts on it anyway; false never does."
154
+ },
155
+ {
156
+ "name": "status",
157
+ "flag": "status",
158
+ "kind": "string",
159
+ "required": false,
160
+ "choices": [
161
+ "backlog"
162
+ ]
163
+ },
164
+ {
165
+ "name": "ownerId",
166
+ "flag": "owner-id",
167
+ "kind": "string",
168
+ "required": false
169
+ },
170
+ {
171
+ "name": "priority",
172
+ "flag": "priority",
173
+ "kind": "string",
174
+ "required": false,
175
+ "choices": [
176
+ "urgent",
177
+ "high",
178
+ "medium",
179
+ "low",
180
+ "none"
181
+ ]
182
+ },
183
+ {
184
+ "name": "startBranch",
185
+ "flag": "start-branch",
186
+ "kind": "string",
187
+ "required": false
188
+ },
189
+ {
190
+ "name": "reason",
191
+ "flag": "reason",
192
+ "kind": "string",
193
+ "required": false,
194
+ "description": "Why this session is being filed and what turned it up, in one line. Required from a sandbox or a Cron Run, ignored from anyone else."
195
+ },
196
+ {
197
+ "name": "startWhenDeployed",
198
+ "flag": "start-when-deployed",
199
+ "kind": "boolean",
200
+ "required": false,
201
+ "description": "With status=backlog, from a member: when the project's first Deploy has not landed, Kosuke starts the ticket with /kosuke:ship as its Assignee once it lands. The session's startWhenDeployedAt says whether it was marked; ignored otherwise."
202
+ },
203
+ {
204
+ "name": "sandboxSize",
205
+ "flag": "sandbox-size",
206
+ "kind": "string",
207
+ "required": false,
208
+ "description": "The session's Sandbox size: small (2 CPU, 4 GB), medium (4 CPU, 8 GB), large (8 CPU, 16 GB) or xlarge (16 CPU, 32 GB). Absent boots the project's size. Fixed once the session starts.",
209
+ "choices": [
210
+ "small",
211
+ "medium",
212
+ "large",
213
+ "xlarge"
214
+ ]
215
+ },
216
+ {
217
+ "name": "appStack",
218
+ "flag": "app-stack",
219
+ "kind": "string",
220
+ "required": false,
221
+ "description": "start (default) runs the project's services when the sandbox boots. skip boots setup and the agent only; a member or the session's agent starts the services later with sessions app-stack-start. Fixed once the session starts.",
222
+ "choices": [
223
+ "start",
224
+ "skip"
225
+ ]
226
+ }
227
+ ],
228
+ "attachments": {
229
+ "maxFiles": 10,
230
+ "maxBytes": 10485760
231
+ },
232
+ "anonymous": false,
233
+ "agents": "all"
234
+ };
@@ -0,0 +1,21 @@
1
+ export const operation = {
2
+ "method": "delete",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}",
4
+ "command": [
5
+ "sessions",
6
+ "delete"
7
+ ],
8
+ "summary": "Delete a chat session. Sensei deletes only a Backlog ticket, refused with 409 NOT_IN_BACKLOG once it started, and only in a Turn its member started.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": null,
16
+ "attachments": false,
17
+ "anonymous": false,
18
+ "agents": [
19
+ "senseiToken"
20
+ ]
21
+ };
@@ -0,0 +1,35 @@
1
+ export const operation = {
2
+ "method": "put",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/desktop/control",
4
+ "command": [
5
+ "sessions",
6
+ "desktop-control"
7
+ ],
8
+ "summary": "Hand a chat session's desktop to a member, or back to the agent. While a member controls it, the agent's desktop tools refuse. Answers the Desktop as it is after the change. Refused with 409 DESKTOP_NOT_RUNNING while the session's sandbox is not up.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": {
15
+ "fields": [
16
+ {
17
+ "name": "controller",
18
+ "flag": "controller",
19
+ "kind": "string",
20
+ "required": true,
21
+ "choices": [
22
+ "agent",
23
+ "member"
24
+ ]
25
+ }
26
+ ],
27
+ "required": true
28
+ },
29
+ "multipart": null,
30
+ "attachments": false,
31
+ "anonymous": false,
32
+ "agents": [
33
+ "senseiToken"
34
+ ]
35
+ };
@@ -0,0 +1,19 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/desktop",
4
+ "command": [
5
+ "sessions",
6
+ "desktop-start"
7
+ ],
8
+ "summary": "Start a chat session's Linux desktop if it is not up, and read its Desktop. A no-op once it is up. The session's sandbox must be running.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": null,
16
+ "attachments": false,
17
+ "anonymous": false,
18
+ "agents": "all"
19
+ };
@@ -0,0 +1,19 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/desktop",
4
+ "command": [
5
+ "sessions",
6
+ "desktop"
7
+ ],
8
+ "summary": "Read a chat session's Desktop: its state (off, starting, ready or unavailable), the page url that streams it while ready, who controls it (agent or member), and the machine, the sandbox's Linux desktop.",
9
+ "pathParams": [
10
+ "projectId",
11
+ "sessionId"
12
+ ],
13
+ "query": [],
14
+ "body": null,
15
+ "multipart": null,
16
+ "attachments": false,
17
+ "anonymous": false,
18
+ "agents": "all"
19
+ };
@@ -0,0 +1,65 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/diff/comments",
4
+ "command": [
5
+ "sessions",
6
+ "diff",
7
+ "comments",
8
+ "add"
9
+ ],
10
+ "summary": "Leave a review comment on a range of lines in the diff.",
11
+ "pathParams": [
12
+ "projectId",
13
+ "sessionId"
14
+ ],
15
+ "query": [],
16
+ "body": {
17
+ "fields": [
18
+ {
19
+ "name": "filePath",
20
+ "flag": "file-path",
21
+ "kind": "string",
22
+ "required": true
23
+ },
24
+ {
25
+ "name": "side",
26
+ "flag": "side",
27
+ "kind": "string",
28
+ "required": true,
29
+ "choices": [
30
+ "old",
31
+ "new"
32
+ ]
33
+ },
34
+ {
35
+ "name": "startLineNumber",
36
+ "flag": "start-line-number",
37
+ "kind": "integer",
38
+ "required": true
39
+ },
40
+ {
41
+ "name": "endLineNumber",
42
+ "flag": "end-line-number",
43
+ "kind": "integer",
44
+ "required": true
45
+ },
46
+ {
47
+ "name": "body",
48
+ "flag": "field-body",
49
+ "kind": "string",
50
+ "required": true
51
+ },
52
+ {
53
+ "name": "lineSnapshot",
54
+ "flag": "line-snapshot",
55
+ "kind": "string",
56
+ "required": true
57
+ }
58
+ ],
59
+ "required": true
60
+ },
61
+ "multipart": null,
62
+ "attachments": false,
63
+ "anonymous": false,
64
+ "agents": "all"
65
+ };
@@ -0,0 +1,21 @@
1
+ export const operation = {
2
+ "method": "delete",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/diff/comments/{commentId}",
4
+ "command": [
5
+ "sessions",
6
+ "diff",
7
+ "comments",
8
+ "delete"
9
+ ],
10
+ "summary": "Delete your own comment.",
11
+ "pathParams": [
12
+ "projectId",
13
+ "sessionId",
14
+ "commentId"
15
+ ],
16
+ "query": [],
17
+ "body": null,
18
+ "multipart": null,
19
+ "attachments": false,
20
+ "anonymous": false
21
+ };
@@ -0,0 +1,21 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/diff/comments",
4
+ "command": [
5
+ "sessions",
6
+ "diff",
7
+ "comments",
8
+ "list"
9
+ ],
10
+ "summary": "List the review comments left on the diff.",
11
+ "pathParams": [
12
+ "projectId",
13
+ "sessionId"
14
+ ],
15
+ "query": [],
16
+ "body": null,
17
+ "multipart": null,
18
+ "attachments": false,
19
+ "anonymous": false,
20
+ "agents": "all"
21
+ };
@@ -0,0 +1,25 @@
1
+ export const operation = {
2
+ "method": "patch",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/diff/comments/{commentId}",
4
+ "command": [
5
+ "sessions",
6
+ "diff",
7
+ "comments",
8
+ "update"
9
+ ],
10
+ "summary": "Edit the body of your own comment, or resolve or reopen any comment. One of the two per call.",
11
+ "pathParams": [
12
+ "projectId",
13
+ "sessionId",
14
+ "commentId"
15
+ ],
16
+ "query": [],
17
+ "body": {
18
+ "fields": null,
19
+ "required": true
20
+ },
21
+ "multipart": null,
22
+ "attachments": false,
23
+ "anonymous": false,
24
+ "agents": "all"
25
+ };
@@ -0,0 +1,20 @@
1
+ export const operation = {
2
+ "method": "get",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/diff/commits",
4
+ "command": [
5
+ "sessions",
6
+ "diff",
7
+ "commits"
8
+ ],
9
+ "summary": "List the commits the session's branch adds over its pull request's base branch, or over the target branch before a pull request is open. Needs a running sandbox; otherwise commits is empty and unavailable says why.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": null,
16
+ "multipart": null,
17
+ "attachments": false,
18
+ "anonymous": false,
19
+ "agents": "all"
20
+ };
@@ -0,0 +1,20 @@
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
+ "agents": "all"
20
+ };
@@ -0,0 +1,87 @@
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
+ "agents": "all"
87
+ };
@@ -0,0 +1,81 @@
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. With ifRevision, the promptRevision `sessions get` gave, it is refused with 409 TICKET_EDITED when the prompt changed since; Sensei and a Cron Run must pass it.",
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": "auto",
31
+ "flag": "auto",
32
+ "kind": "string",
33
+ "required": false,
34
+ "description": "true puts the ticket on Auto: Kosuke picks the Model and Provider of each Turn. false takes it off; send it with model when choosing a Model. Absent leaves it as it is.",
35
+ "choices": [
36
+ "true",
37
+ "false"
38
+ ]
39
+ },
40
+ {
41
+ "name": "ownerId",
42
+ "flag": "owner-id",
43
+ "kind": "string",
44
+ "required": false,
45
+ "description": "A member id to assign, or an empty string to unassign."
46
+ },
47
+ {
48
+ "name": "priority",
49
+ "flag": "priority",
50
+ "kind": "string",
51
+ "required": false,
52
+ "choices": [
53
+ "urgent",
54
+ "high",
55
+ "medium",
56
+ "low",
57
+ "none"
58
+ ]
59
+ },
60
+ {
61
+ "name": "retainedAttachmentIds",
62
+ "flag": "retained-attachment-ids",
63
+ "kind": "string",
64
+ "required": false,
65
+ "description": "JSON array of attachment ids to keep. Attachments not listed are removed."
66
+ },
67
+ {
68
+ "name": "ifRevision",
69
+ "flag": "if-revision",
70
+ "kind": "string",
71
+ "required": false,
72
+ "description": "The promptRevision `sessions get` gave when you read the ticket. Refused with 409 TICKET_EDITED when the prompt or its attachments changed since. Required from Sensei and a Cron Run."
73
+ }
74
+ ],
75
+ "attachments": {
76
+ "maxFiles": 10,
77
+ "maxBytes": 10485760
78
+ },
79
+ "anonymous": false,
80
+ "agents": "all"
81
+ };