@kosuke-ai/kosuke 1.0.7 → 1.0.8

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 (269) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +11 -11
  3. package/dist/agent/summary.js +2 -2
  4. package/dist/commands/agent.js +4 -3
  5. package/dist/commands/auth.js +6 -7
  6. package/dist/commands/hand-written.js +93 -0
  7. package/dist/commands/integrations.js +9 -12
  8. package/dist/commands/skill-runs.js +15 -12
  9. package/dist/commands/watch.js +5 -5
  10. package/dist/generated/commands/{user/crons-artifacts-list.js → crons/artifacts-list--personal.js} +3 -1
  11. package/dist/generated/commands/{user/crons-create.js → crons/create--personal.js} +4 -2
  12. package/dist/generated/commands/crons/create.js +3 -3
  13. package/dist/generated/commands/{user/crons-get.js → crons/get--personal.js} +3 -1
  14. package/dist/generated/commands/{user/crons-list.js → crons/list--personal.js} +3 -1
  15. package/dist/generated/commands/{user/crons-run.js → crons/run--personal.js} +3 -1
  16. package/dist/generated/commands/{user/crons-runs-artifacts-get.js → crons/runs-artifacts-get--personal.js} +3 -1
  17. package/dist/generated/commands/{user/crons-runs-artifacts-list.js → crons/runs-artifacts-list--personal.js} +3 -1
  18. package/dist/generated/commands/{user/crons-runs-get.js → crons/runs-get--personal.js} +3 -1
  19. package/dist/generated/commands/{user/crons-runs-list.js → crons/runs-list--personal.js} +3 -1
  20. package/dist/generated/commands/crons/{runs-messages.js → runs-messages-list.js} +2 -1
  21. package/dist/generated/commands/{user/crons-update.js → crons/update--personal.js} +4 -2
  22. package/dist/generated/commands/crons/update.js +2 -2
  23. package/dist/generated/commands/{deploy → deploys}/cancel.js +1 -1
  24. package/dist/generated/commands/{deploy → deploys}/list.js +1 -1
  25. package/dist/generated/commands/{deploy/message.js → deploys/messages-get.js} +4 -3
  26. package/dist/generated/commands/{deploy/messages.js → deploys/messages-list.js} +4 -3
  27. package/dist/generated/commands/{deploy/set-model.js → deploys/model-set.js} +3 -2
  28. package/dist/generated/commands/{deploy → deploys}/queue-delete.js +1 -1
  29. package/dist/generated/commands/{deploy → deploys}/queue-list.js +1 -1
  30. package/dist/generated/commands/{deploy → deploys}/queue-move.js +1 -1
  31. package/dist/generated/commands/{deploy → deploys}/queue-resume.js +1 -1
  32. package/dist/generated/commands/{deploy → deploys}/queue-send.js +1 -1
  33. package/dist/generated/commands/{deploy → deploys}/queue-steer.js +1 -1
  34. package/dist/generated/commands/{deploy → deploys}/queue-update.js +1 -1
  35. package/dist/generated/commands/{deploy/run.js → deploys/start.js} +2 -2
  36. package/dist/generated/commands/devices/list.js +1 -1
  37. package/dist/generated/commands/devices/{request.js → requests-create.js} +2 -1
  38. package/dist/generated/commands/{user/files-delete.js → files/delete--personal.js} +3 -1
  39. package/dist/generated/commands/{user/files-mkdir.js → files/folders-create--personal.js} +5 -2
  40. package/dist/generated/commands/files/{mkdir.js → folders-create.js} +2 -1
  41. package/dist/generated/commands/{user/files-get.js → files/get--personal.js} +3 -1
  42. package/dist/generated/commands/{user/files-list.js → files/list--personal.js} +3 -1
  43. package/dist/generated/commands/{user/files-move.js → files/move--personal.js} +3 -1
  44. package/dist/generated/commands/{user/files-put.js → files/set--personal.js} +4 -2
  45. package/dist/generated/commands/files/{put.js → set.js} +1 -1
  46. package/dist/generated/commands/github/{status.js → connection-get.js} +2 -1
  47. package/dist/generated/commands/github/{repositories.js → repositories-list.js} +2 -1
  48. package/dist/generated/commands/index.js +330 -324
  49. package/dist/generated/commands/{user/integrations-linkedin-connect.js → integrations/browser-connections-create--personal-network-linkedin.js} +9 -3
  50. package/dist/generated/commands/{user/integrations-x-connect.js → integrations/browser-connections-create--personal-network-x.js} +9 -3
  51. package/dist/generated/commands/{user/integrations-linkedin-list.js → integrations/browser-connections-list--personal-network-linkedin.js} +8 -2
  52. package/dist/generated/commands/{user/integrations-x-list.js → integrations/browser-connections-list--personal-network-x.js} +8 -2
  53. package/dist/generated/commands/{user/integrations-linkedin-reconnect.js → integrations/browser-connections-reconnect--personal-network-linkedin.js} +8 -2
  54. package/dist/generated/commands/{user/integrations-x-reconnect.js → integrations/browser-connections-reconnect--personal-network-x.js} +8 -2
  55. package/dist/generated/commands/{user/integrations-remove.js → integrations/connections-delete--personal.js} +6 -3
  56. package/dist/generated/commands/{workspaces/integrations-remove.js → integrations/connections-delete.js} +2 -2
  57. package/dist/generated/commands/{workspaces/integrations-get.js → integrations/connections-get.js} +1 -1
  58. package/dist/generated/commands/{user/integrations-list.js → integrations/connections-list--personal.js} +4 -1
  59. package/dist/generated/commands/{workspaces/integrations-list.js → integrations/connections-list.js} +1 -1
  60. package/dist/generated/commands/integrations/{execute.js → tools-call.js} +3 -1
  61. package/dist/generated/commands/integrations/{tools.js → tools-list.js} +3 -1
  62. package/dist/generated/commands/mac/{apps.js → apps-list.js} +2 -1
  63. package/dist/generated/commands/mac/{ax-tree.js → ax-tree-get.js} +3 -2
  64. package/dist/generated/commands/mac/{browser-connections.js → browser-connections-list.js} +3 -1
  65. package/dist/generated/commands/mac/{browser-connection-check.js → browser-connections-update.js} +6 -4
  66. package/dist/generated/commands/mac/{browser-sign-in.js → browser-login.js} +2 -1
  67. package/dist/generated/commands/mac/{browser-profiles.js → browser-profiles-list.js} +3 -1
  68. package/dist/generated/commands/mac/{browser.js → browser-run.js} +2 -1
  69. package/dist/generated/commands/mac/click.js +2 -2
  70. package/dist/generated/commands/mac/{file-delete.js → files-delete.js} +2 -1
  71. package/dist/generated/commands/mac/{file-read.js → files-get.js} +2 -1
  72. package/dist/generated/commands/mac/{file-list.js → files-list.js} +2 -1
  73. package/dist/generated/commands/mac/{file-move.js → files-move.js} +2 -1
  74. package/dist/generated/commands/mac/{file-write.js → files-set.js} +2 -1
  75. package/dist/generated/commands/mac/key.js +1 -1
  76. package/dist/generated/commands/mac/{screenshot.js → screenshots-create.js} +3 -2
  77. package/dist/generated/commands/mac/scroll.js +2 -2
  78. package/dist/generated/commands/mac/{tools.js → status-get.js} +2 -1
  79. package/dist/generated/commands/mac/type.js +2 -2
  80. package/dist/generated/commands/mac/{windows.js → windows-list.js} +2 -1
  81. package/dist/generated/commands/{user/plugins-list.js → plugins/list--personal.js} +3 -1
  82. package/dist/generated/commands/{workspaces/plugins-list.js → plugins/list.js} +0 -1
  83. package/dist/generated/commands/{user/plugins-update.js → plugins/update--personal.js} +3 -1
  84. package/dist/generated/commands/{workspaces/plugins-update.js → plugins/update.js} +0 -1
  85. package/dist/generated/commands/preview/{health.js → health-get.js} +2 -1
  86. package/dist/generated/commands/preview/{shared-artifact.js → shared-artifacts-get.js} +2 -1
  87. package/dist/generated/commands/preview/{shared.js → shared-get.js} +2 -1
  88. package/dist/generated/commands/projects/{batch-merging-add-member.js → batch-merging-members-create.js} +2 -1
  89. package/dist/generated/commands/projects/{batch-merging-eject.js → batch-merging-members-delete.js} +2 -1
  90. package/dist/generated/commands/projects/{branches.js → branches-list.js} +2 -1
  91. package/dist/generated/commands/projects/{env-vars-add.js → env-vars-create.js} +1 -1
  92. package/dist/generated/commands/projects/{env-vars-remove.js → env-vars-delete.js} +1 -1
  93. package/dist/generated/commands/projects/{labels.js → labels-list.js} +2 -1
  94. package/dist/generated/commands/projects/{labels-usage.js → labels-sessions-list.js} +2 -1
  95. package/dist/generated/commands/projects/{labels-color.js → labels-update.js} +1 -1
  96. package/dist/generated/commands/projects/{live-logs.js → live-logs-list.js} +2 -1
  97. package/dist/generated/commands/projects/{live-query.js → live-queries-run.js} +2 -1
  98. package/dist/generated/commands/projects/{live-traffic.js → live-traffic-get.js} +2 -1
  99. package/dist/generated/commands/projects/{live-write.js → live-writes-create.js} +2 -1
  100. package/dist/generated/commands/projects/{live-write-status.js → live-writes-get.js} +2 -1
  101. package/dist/generated/commands/projects/{releases.js → releases-list.js} +2 -1
  102. package/dist/generated/commands/projects/{services-add.js → services-create.js} +1 -1
  103. package/dist/generated/commands/projects/{services-remove.js → services-delete.js} +1 -1
  104. package/dist/generated/commands/projects/{settings-import.js → settings-set.js} +1 -1
  105. package/dist/generated/commands/projects/{skills.js → skills-list.js} +2 -1
  106. package/dist/generated/commands/projects/{versions.js → versions-list.js} +2 -1
  107. package/dist/generated/commands/projects/{switch-workflow.js → workflow-set.js} +2 -1
  108. package/dist/generated/commands/prototypes/create.js +69 -0
  109. package/dist/generated/commands/{workspaces/access-status.js → providers/access-get.js} +3 -2
  110. package/dist/generated/commands/{user/subscriptions-set-default-model.js → providers/default-model-set--personal.js} +6 -3
  111. package/dist/generated/commands/{user/subscriptions-delete.js → providers/delete--personal.js} +4 -2
  112. package/dist/generated/commands/{workspaces/ai-provider-remove.js → providers/delete.js} +2 -3
  113. package/dist/generated/commands/{user/subscriptions-get.js → providers/get--personal.js} +4 -2
  114. package/dist/generated/commands/{workspaces/ai-provider-get.js → providers/get.js} +1 -2
  115. package/dist/generated/commands/{workspaces/ai-provider-google-remove.js → providers/google-delete.js} +2 -3
  116. package/dist/generated/commands/{workspaces/ai-provider-google-get.js → providers/google-get.js} +1 -2
  117. package/dist/generated/commands/{workspaces/ai-provider-google-delete-method.js → providers/google-methods-delete.js} +3 -3
  118. package/dist/generated/commands/{workspaces/ai-provider-google-select-method.js → providers/google-methods-set.js} +3 -3
  119. package/dist/generated/commands/{workspaces/ai-provider-google-save.js → providers/google-set.js} +2 -3
  120. package/dist/generated/commands/{user/subscriptions-grok-get.js → providers/grok-get--personal.js} +4 -2
  121. package/dist/generated/commands/{workspaces → providers}/grok-get.js +1 -1
  122. package/dist/generated/commands/{user/subscriptions-grok-change.js → providers/grok-update--personal.js} +5 -3
  123. package/dist/generated/commands/{workspaces/grok-change.js → providers/grok-update.js} +2 -2
  124. package/dist/generated/commands/{user/subscriptions-set-key.js → providers/keys-set--personal.js} +6 -3
  125. package/dist/generated/commands/{user/subscriptions-login-antigravity-cancel.js → providers/logins-cancel--personal-provider-antigravity.js} +9 -4
  126. package/dist/generated/commands/{workspaces/ai-provider-login-antigravity-cancel.js → providers/logins-cancel--provider-antigravity.js} +8 -4
  127. package/dist/generated/commands/{user/subscriptions-login-antigravity-complete.js → providers/logins-complete--personal-provider-antigravity.js} +9 -4
  128. package/dist/generated/commands/{user/subscriptions-login-claude-complete.js → providers/logins-complete--personal-provider-claude-code.js} +9 -4
  129. package/dist/generated/commands/{user/subscriptions-login-codex-complete.js → providers/logins-complete--personal-provider-codex.js} +9 -4
  130. package/dist/generated/commands/{user/subscriptions-login-muse-complete.js → providers/logins-complete--personal-provider-muse-code.js} +9 -4
  131. package/dist/generated/commands/{workspaces/ai-provider-login-antigravity-complete.js → providers/logins-complete--provider-antigravity.js} +8 -4
  132. package/dist/generated/commands/{workspaces/provider-login-claude-complete.js → providers/logins-complete--provider-claude-code.js} +8 -3
  133. package/dist/generated/commands/{workspaces/provider-login-codex-complete.js → providers/logins-complete--provider-codex.js} +8 -3
  134. package/dist/generated/commands/{workspaces/provider-login-muse-complete.js → providers/logins-complete--provider-muse-code.js} +8 -3
  135. package/dist/generated/commands/{user/subscriptions-logins-delete.js → providers/logins-delete--personal.js} +4 -2
  136. package/dist/generated/commands/{user/subscriptions-logins-recheck.js → providers/logins-recheck--personal.js} +4 -2
  137. package/dist/generated/commands/{workspaces/ai-provider-logins-recheck.js → providers/logins-recheck.js} +1 -2
  138. package/dist/generated/commands/{user/subscriptions-login-antigravity-start.js → providers/logins-start--personal-provider-antigravity.js} +9 -4
  139. package/dist/generated/commands/{user/subscriptions-login-claude-start.js → providers/logins-start--personal-provider-claude-code.js} +9 -4
  140. package/dist/generated/commands/{user/subscriptions-login-codex-start.js → providers/logins-start--personal-provider-codex.js} +9 -4
  141. package/dist/generated/commands/{user/subscriptions-login-muse-start.js → providers/logins-start--personal-provider-muse-code.js} +9 -4
  142. package/dist/generated/commands/{workspaces/ai-provider-login-antigravity-start.js → providers/logins-start--provider-antigravity.js} +8 -4
  143. package/dist/generated/commands/{workspaces/provider-login-claude-start.js → providers/logins-start--provider-claude-code.js} +8 -3
  144. package/dist/generated/commands/{workspaces/provider-login-codex-start.js → providers/logins-start--provider-codex.js} +8 -3
  145. package/dist/generated/commands/{workspaces/provider-login-muse-start.js → providers/logins-start--provider-muse-code.js} +8 -3
  146. package/dist/generated/commands/{workspaces/ai-provider-set.js → providers/set.js} +1 -2
  147. package/dist/generated/commands/{user/subscriptions-token-usage.js → providers/token-usage-get--personal.js} +6 -3
  148. package/dist/generated/commands/{workspaces/ai-provider-token-usage.js → providers/token-usage-get.js} +3 -3
  149. package/dist/generated/commands/{user/subscriptions-usage.js → providers/usage-get--personal.js} +6 -3
  150. package/dist/generated/commands/{workspaces/ai-provider-google-usage.js → providers/usage-get--provider-antigravity.js} +9 -4
  151. package/dist/generated/commands/{workspaces/ai-provider-usage-claude.js → providers/usage-get--provider-claude-code.js} +8 -3
  152. package/dist/generated/commands/{workspaces/ai-provider-usage-codex.js → providers/usage-get--provider-codex.js} +8 -3
  153. package/dist/generated/commands/{workspaces/ai-provider-usage-coding-plan.js → providers/usage-get--provider-coding-plan.js} +8 -3
  154. package/dist/generated/commands/{workspaces/ai-provider-usage-deepseek.js → providers/usage-get--provider-deepseek-api.js} +8 -3
  155. package/dist/generated/commands/{workspaces/ai-provider-usage-grok.js → providers/usage-get--provider-grok.js} +8 -3
  156. package/dist/generated/commands/{workspaces/ai-provider-usage-kimi-code.js → providers/usage-get--provider-kimi-code.js} +8 -3
  157. package/dist/generated/commands/{workspaces/ai-provider-usage-muse.js → providers/usage-get--provider-muse-code.js} +8 -3
  158. package/dist/generated/commands/sensei/{cards.js → cards-list.js} +2 -1
  159. package/dist/generated/commands/sensei/{cards-send-reply.js → cards-reply.js} +1 -1
  160. package/dist/generated/commands/sensei/{cards-put.js → cards-set.js} +1 -1
  161. package/dist/generated/commands/sensei/{chat.js → chat-get.js} +2 -1
  162. package/dist/generated/commands/sensei/{connect.js → connect-buttons-create.js} +2 -1
  163. package/dist/generated/commands/sensei/delegates-list.js +25 -0
  164. package/dist/generated/commands/sensei/{delegates-note.js → delegates-notes-create.js} +2 -1
  165. package/dist/generated/commands/sensei/{describe.js → describe-cards-create.js} +2 -1
  166. package/dist/generated/commands/sensei/{device-requests-decide.js → device-requests-update.js} +1 -1
  167. package/dist/generated/commands/sensei/{memory-put.js → memory-set.js} +4 -2
  168. package/dist/generated/commands/sensei/{merge-rule.js → merge-rule-set.js} +2 -1
  169. package/dist/generated/commands/sensei/{messages-reroute.js → messages-move.js} +1 -1
  170. package/dist/generated/commands/sensei/messages-send.js +2 -2
  171. package/dist/generated/commands/sensei/{notifications-open.js → notifications-mark-read.js} +1 -1
  172. package/dist/generated/commands/sensei/{reels-activity.js → reels-activity-list.js} +2 -1
  173. package/dist/generated/commands/sensei/{reels-ranks.js → reels-ranks-list.js} +2 -1
  174. package/dist/generated/commands/sensei/{repository.js → repository-cards-create.js} +2 -1
  175. package/dist/generated/commands/sensei/{review-approve.js → review-approvals-create.js} +2 -1
  176. package/dist/generated/commands/sensei/{review-context.js → review-context-get.js} +2 -1
  177. package/dist/generated/commands/sensei/{review-ask.js → review-requests-create.js} +3 -2
  178. package/dist/generated/commands/sensei/{sessions-assess.js → sessions-assessments-create.js} +2 -1
  179. package/dist/generated/commands/sensei/{sessions-facts.js → sessions-facts-get.js} +2 -1
  180. package/dist/generated/commands/sensei/{suggest.js → suggestions-create.js} +2 -1
  181. package/dist/generated/commands/sensei/{thread-done.js → threads-close.js} +2 -2
  182. package/dist/generated/commands/sensei/{thread-read.js → threads-get.js} +2 -2
  183. package/dist/generated/commands/sensei/{threads.js → threads-list.js} +2 -1
  184. package/dist/generated/commands/sensei/{thread-move.js → threads-move.js} +1 -1
  185. package/dist/generated/commands/sensei/{thread-split.js → threads-split.js} +1 -1
  186. package/dist/generated/commands/sensei/{widgets.js → widgets-get.js} +2 -1
  187. package/dist/generated/commands/sessions/app-stack-start.js +2 -1
  188. package/dist/generated/commands/sessions/{artifacts-attach.js → artifacts-create.js} +1 -1
  189. package/dist/generated/commands/sessions/create.js +2 -2
  190. package/dist/generated/commands/sessions/{desktop-control.js → desktop-control-set.js} +3 -1
  191. package/dist/generated/commands/sessions/{desktop.js → desktop-get.js} +2 -1
  192. package/dist/generated/commands/sessions/desktop-start.js +2 -1
  193. package/dist/generated/commands/sessions/{diff-comments-add.js → diff-comments-create.js} +1 -1
  194. package/dist/generated/commands/sessions/{diff-commits.js → diff-commits-list.js} +2 -1
  195. package/dist/generated/commands/sessions/{diff-files.js → diff-files-list.js} +2 -1
  196. package/dist/generated/commands/sessions/{diff-patch.js → diff-patch-get.js} +2 -1
  197. package/dist/generated/commands/sessions/{files-write.js → files-set.js} +1 -1
  198. package/dist/generated/commands/sessions/get.js +1 -1
  199. package/dist/generated/commands/sessions/{git-commit-message.js → git-commit-message-create.js} +2 -1
  200. package/dist/generated/commands/sessions/{git-state.js → git-state-get.js} +2 -1
  201. package/dist/generated/commands/sessions/{go-ahead-clear.js → go-ahead-delete.js} +1 -1
  202. package/dist/generated/commands/sessions/{labels-edit.js → labels-update.js} +1 -1
  203. package/dist/generated/commands/sessions/{all.js → list--all.js} +4 -1
  204. package/dist/generated/commands/sessions/{message.js → messages-get.js} +4 -3
  205. package/dist/generated/commands/sessions/{messages.js → messages-list.js} +3 -2
  206. package/dist/generated/commands/sessions/{edit-prompt.js → prompt-update.js} +2 -1
  207. package/dist/generated/commands/sessions/pull-request-mark-ready.js +40 -0
  208. package/dist/generated/commands/sessions/qa-runs-finish.js +66 -0
  209. package/dist/generated/commands/sessions/qa-runs-fixes-create.js +65 -0
  210. package/dist/generated/commands/sessions/qa-runs-get.js +22 -0
  211. package/dist/generated/commands/sessions/qa-runs-results-create.js +45 -0
  212. package/dist/generated/commands/sessions/qa-runs-start.js +75 -0
  213. package/dist/generated/commands/sessions/qa-runs-stop.js +43 -0
  214. package/dist/generated/commands/sessions/qa-set.js +1 -1
  215. package/dist/generated/commands/sessions/review-set.js +53 -0
  216. package/dist/generated/commands/sessions/{runtime-command.js → runtime-commands-run.js} +2 -1
  217. package/dist/generated/commands/sessions/{activate.js → start.js} +1 -1
  218. package/dist/generated/commands/sessions/update.js +1 -1
  219. package/dist/generated/commands/{user/skills-create.js → skills/create--personal.js} +3 -1
  220. package/dist/generated/commands/{workspaces/skills-create.js → skills/create.js} +0 -1
  221. package/dist/generated/commands/{user/skills-delete.js → skills/delete--personal.js} +3 -1
  222. package/dist/generated/commands/{workspaces/skills-delete.js → skills/delete.js} +0 -1
  223. package/dist/generated/commands/{user/skills-get.js → skills/get--personal.js} +3 -1
  224. package/dist/generated/commands/{workspaces/skills-get.js → skills/get.js} +0 -1
  225. package/dist/generated/commands/{user/skills-list.js → skills/list--personal.js} +3 -1
  226. package/dist/generated/commands/{workspaces/skills-list.js → skills/list.js} +0 -1
  227. package/dist/generated/commands/{user/skills-update.js → skills/update--personal.js} +3 -1
  228. package/dist/generated/commands/{workspaces/skills-update.js → skills/update.js} +0 -1
  229. package/dist/generated/commands/{personal-tasks/create.js → tasks/create--personal.js} +5 -2
  230. package/dist/generated/commands/tasks/create.js +2 -2
  231. package/dist/generated/commands/{personal-tasks/delete.js → tasks/delete--personal.js} +4 -1
  232. package/dist/generated/commands/{personal-tasks/get.js → tasks/get--personal.js} +4 -1
  233. package/dist/generated/commands/tasks/{labels.js → labels-list.js} +2 -1
  234. package/dist/generated/commands/tasks/{all.js → list--all.js} +4 -1
  235. package/dist/generated/commands/{personal-tasks/list.js → tasks/list--personal.js} +4 -1
  236. package/dist/generated/commands/{personal-tasks/move.js → tasks/move--personal.js} +4 -1
  237. package/dist/generated/commands/{personal-tasks/start.js → tasks/start--personal.js} +5 -2
  238. package/dist/generated/commands/tasks/start.js +1 -1
  239. package/dist/generated/commands/{personal-tasks/update.js → tasks/update--personal.js} +4 -1
  240. package/dist/generated/commands/tasks/update.js +1 -1
  241. package/dist/generated/commands/user/{auth-token-revoke.js → api-keys-delete.js} +2 -2
  242. package/dist/generated/commands/user/{profile.js → profile-get.js} +2 -1
  243. package/dist/generated/commands/user/{push-devices-register.js → push-devices-create.js} +1 -1
  244. package/dist/generated/commands/user/{push-devices-remove.js → push-devices-delete.js} +1 -1
  245. package/dist/generated/commands/workspaces/{artifacts.js → artifacts-search.js} +2 -1
  246. package/dist/generated/commands/workspaces/{credits.js → credits-get.js} +2 -1
  247. package/dist/generated/commands/{members/list.js → workspaces/members-list--all.js} +4 -0
  248. package/dist/generated/commands/workspaces/{members.js → members-list.js} +2 -1
  249. package/dist/generated/commands/workspaces/{sandbox-limit.js → sandbox-limit-get.js} +2 -1
  250. package/dist/generated/commands/workspaces/{stop-sandboxes.js → sandboxes-stop.js} +2 -1
  251. package/dist/generated/commands/workspaces/timezone-set.js +2 -1
  252. package/dist/generated/commands/workspaces/{usage.js → usage-get.js} +2 -1
  253. package/dist/integrations/api.js +1 -1
  254. package/dist/integrations/render.js +1 -1
  255. package/dist/program.js +15 -9
  256. package/dist/runtime/aliases.js +516 -0
  257. package/dist/runtime/attach.js +301 -55
  258. package/dist/runtime/former-commands.js +89 -0
  259. package/dist/runtime/job-watch.js +1 -1
  260. package/dist/runtime/variants.js +205 -0
  261. package/openapi.json +2200 -1063
  262. package/package.json +15 -6
  263. package/dist/generated/commands/crons/projects-resume.js +0 -21
  264. package/dist/generated/commands/crons/runs-diagnostics.js +0 -21
  265. package/dist/generated/commands/sessions/needs-you.js +0 -16
  266. package/dist/generated/commands/sessions/qa-clear.js +0 -22
  267. package/dist/generated/commands/sessions/title-generate.js +0 -29
  268. package/dist/generated/commands/user/memory-list.js +0 -17
  269. package/dist/generated/commands/user/memory-put.js +0 -37
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/describe",
4
4
  "command": [
5
5
  "sensei",
6
- "describe"
6
+ "describe-cards",
7
+ "create"
7
8
  ],
8
9
  "summary": "Put the Describe card in a message of your Turn's own thread, under your words: the member writes what the app does and creates it as a YOLO project in the workspace it names. Once created, the thread carries on in a Turn of its own. End your Turn after it. Refused when your Turn stopped.",
9
10
  "pathParams": [],
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "device-requests",
7
- "decide"
7
+ "update"
8
8
  ],
9
9
  "summary": "Approve or decline one Device Request of a Chat Session as you, the Mac’s owner or an admin of the device’s workspace. Answers the stored status. Refused with 403 when you may not answer it, 404 for a request not of this session, and 409 GRANT_ALREADY_DECIDED with its current status when it is no longer pending: already answered, expired, withdrawn, or closed because the session can no longer use the device.",
10
10
  "pathParams": [],
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "memory",
7
- "put"
7
+ "set"
8
8
  ],
9
9
  "summary": "Save a Memory file at the revision you read. Sensei must name the card approved to start this Turn.",
10
10
  "pathParams": [],
@@ -47,5 +47,7 @@ export const operation = {
47
47
  "multipart": null,
48
48
  "attachments": false,
49
49
  "anonymous": false,
50
- "agents": "all"
50
+ "agents": [
51
+ "senseiToken"
52
+ ]
51
53
  };
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/merge-rule",
4
4
  "command": [
5
5
  "sensei",
6
- "merge-rule"
6
+ "merge-rule",
7
+ "set"
7
8
  ],
8
9
  "summary": "Turn your Merge rule on or off. While it is on, your Sensei gives the go-ahead to merge each pull request of a Chat Session you are the Assignee of once it is approved and its QA passed. Changed only when you ask. Answers whether it is on now.",
9
10
  "pathParams": [],
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "messages",
7
- "reroute"
7
+ "move"
8
8
  ],
9
9
  "summary": "Send a message that reached you on to another member: the one the required memberId names. It opens in their Sensei, and the sender's later updates of it go to them. Your own card on it stays yours to close. Refused with 404 when the message is not with you now, with 409 MESSAGE_CHANGED when it changed since you read it, and with 400 when nobody else is named for it.",
10
10
  "pathParams": [],
@@ -6,7 +6,7 @@ export const operation = {
6
6
  "messages",
7
7
  "send"
8
8
  ],
9
- "summary": "Send a message to a member's Sensei. Any sender can: you, your Sensei, a Cron Run, or a session's agent; the sender is read from the credential. Their Sensei shows it on a card that says who sent it, with the action that fits, and they are notified as for any card. Name the project with projectId, and optionally the Chat Session (sessionId) or pull request (pullRequest, with projectId) it is about; a sessionId alone names its project. memberId is required: the id a Member mention carries or `kosuke workspaces members` prints, never a guess between members who share a name. key is a slug such as merge-plan, ticket-<slug> or qa-guide, and text, up to 60,000 characters, is everything the member needs, so it can hold a ticket prompt or a whole Project QA Guide. title, why (one line: why this member), paths (the repository paths it is about) and link (a Kosuke path starting with / or an https URL the card opens) are optional. The same key with new text or a new link updates the open card and raises the revision; the same again writes nothing. Pass ifRevision, the revision an earlier send answered, to be refused with MESSAGE_CHANGED when it moved on. When a member sent it, the recipient's approve, edit, reject or reply comes back to the thread it was sent from. Answers id, revision, updated and the recipient: say who it went to. Keys and text by kind: ticket-<slug of the title>, whose text is \"File the ticket <title> in <project>'s Backlog.\" then the reason and the description; start-<slug>, only for an unassigned or the member's own ticket while nothing of theirs builds or waits on them; delete-<slug> with its evidence; merge-<slug> with the merged text and each task's promptRevision; cron-<slug> with its prompt, crontab and projects; merge-plan with each pull request's number, head SHA and action. Before a ticket message, read the open tasks (`tasks list --include-prompt`): send nothing for work a session already covers, and name the Todo task that covers part of it in text. A 400 VALIDATION_ERROR wrote nothing: fix the fields in details and send again with the same key and memberId. Any other refusal is final: send to nobody else instead. An unknown outcome (a timeout, a 5xx) is never sent again. Pass the body with --body or --body-file.",
9
+ "summary": "Send a message to a member's Sensei. Any sender can: you, your Sensei, a Cron Run, or a session's agent; the sender is read from the credential. Their Sensei shows it on a card that says who sent it, with the action that fits, and they are notified as for any card. Name the project with projectId, and optionally the Chat Session (sessionId) or pull request (pullRequest, with projectId) it is about; a sessionId alone names its project. memberId is required: the id a Member mention carries or `kosuke workspaces members list` prints, never a guess between members who share a name. key is a slug such as merge-plan, ticket-<slug> or qa-guide, and text, up to 60,000 characters, is everything the member needs, so it can hold a ticket prompt or a whole Project QA Guide. title, why (one line: why this member), paths (the repository paths it is about) and link (a Kosuke path starting with / or an https URL the card opens) are optional. The same key with new text or a new link updates the open card and raises the revision; the same again writes nothing. Pass ifRevision, the revision an earlier send answered, to be refused with MESSAGE_CHANGED when it moved on. When a member sent it, the recipient's approve, edit, reject or reply comes back to the thread it was sent from. Answers id, revision, updated and the recipient: say who it went to. Keys and text by kind: ticket-<slug of the title>, whose text is \"File the ticket <title> in <project>'s Backlog.\" then the reason and the description; start-<slug>, only for an unassigned or the member's own ticket while nothing of theirs builds or waits on them; delete-<slug> with its evidence; merge-<slug> with the merged text and each task's promptRevision; cron-<slug> with its prompt, crontab and projects; merge-plan with each pull request's number, head SHA and action. Before a ticket message, read the open tasks (`tasks list --include-prompt`): send nothing for work a session already covers, and name the Todo task that covers part of it in text. A 400 VALIDATION_ERROR wrote nothing: fix the fields in details and send again with the same key and memberId. Any other refusal is final: send to nobody else instead. An unknown outcome (a timeout, a 5xx) is never sent again. Pass the body with --body or --body-file.",
10
10
  "pathParams": [],
11
11
  "query": [],
12
12
  "body": {
@@ -16,7 +16,7 @@ export const operation = {
16
16
  "flag": "member-id",
17
17
  "kind": "string",
18
18
  "required": true,
19
- "description": "The member it goes to: the id a Member mention carries, or the one `kosuke workspaces members` prints. Never pick a person by a name that matches more than one member."
19
+ "description": "The member it goes to: the id a Member mention carries, or the one `kosuke workspaces members list` prints. Never pick a person by a name that matches more than one member."
20
20
  },
21
21
  {
22
22
  "name": "projectId",
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "notifications",
7
- "open"
7
+ "mark-read"
8
8
  ],
9
9
  "summary": "Mark one of your Sensei notifications, from any workspace, as opened.",
10
10
  "pathParams": [
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "reels",
7
- "activity"
7
+ "activity",
8
+ "list"
8
9
  ],
9
10
  "summary": "Read stored activity versions for your Reels cards and Backlog tickets.",
10
11
  "pathParams": [],
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "reels",
7
- "ranks"
7
+ "ranks",
8
+ "list"
8
9
  ],
9
10
  "summary": "Read Jev ranks for your open Sensei Cards, valid only at each card revision.",
10
11
  "pathParams": [],
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/repository",
4
4
  "command": [
5
5
  "sensei",
6
- "repository"
6
+ "repository-cards",
7
+ "create"
7
8
  ],
8
9
  "summary": "Put the Repository card in a message of your Turn's own thread, under your words: it names the workspace and lists the repositories Kosuke can write to, and the member imports one from it. Once imported, the thread carries on in a Turn of its own. End your Turn after it. Refused when your Turn stopped.",
9
10
  "pathParams": [],
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "review",
7
- "approve"
7
+ "approvals",
8
+ "create"
8
9
  ],
9
10
  "summary": "Approve the pull request of a Chat Session as you on GitHub, pinned to headSha: the approval is of that commit. Refused with 409 HEAD_MOVED, naming the new head, when the pull request moved past headSha, with NO_PULL_REQUEST when the session has no open pull request, and with GITHUB_REFUSED and GitHub’s own words when GitHub says no, such as for your own pull request or without GitHub connected in Kosuke.",
10
11
  "pathParams": [],
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "review",
7
- "context"
7
+ "context",
8
+ "get"
8
9
  ],
9
10
  "summary": "Read bounded, untrusted GitHub review evidence for a Chat Session using repository-scoped read-only installation access. Pass sessionId and optionally paths, a JSON array of at most three repository-relative helper paths. Returns section completeness, observed head/base, checks, rules, ownership, authorship, associated merged reviews and matched workspace reviewer candidates. Partial evidence never proves all checks or rules passed; stale evidence must be read again. No GitHub action is performed and no GitHub credential is returned.",
10
11
  "pathParams": [],
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "review",
7
- "ask"
7
+ "requests",
8
+ "create"
8
9
  ],
9
10
  "summary": "Ask members to review the pull request of a Chat Session you are the Assignee of, as you on GitHub, and record who was asked for the merge to count. With again, ask again everyone asked before and whoever requested changes since. A member who never connected GitHub, or whom GitHub refuses, is left out and named; it is refused when nobody could be asked, with 400 when you name yourself, nobody, or there is nobody to ask again, with 403 when you are not the Assignee, and with 409 NO_PULL_REQUEST or GITHUB_REFUSED.",
10
11
  "pathParams": [],
@@ -23,7 +24,7 @@ export const operation = {
23
24
  "flag": "reviewers",
24
25
  "kind": "json",
25
26
  "required": false,
26
- "description": "The members to ask, by the id `workspaces members` prints. Left out with again."
27
+ "description": "The members to ask, by the id `kosuke workspaces members list` prints. Left out with again."
27
28
  },
28
29
  {
29
30
  "name": "again",
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "sessions",
7
- "assess"
7
+ "assessments",
8
+ "create"
8
9
  ],
9
10
  "summary": "Record Sensei’s done or not-done decision from fresh session facts, with its reason. Only a running Sensei Turn in its authorized following thread may decide. Does not send work, archive or complete the session, or write to GitHub.",
10
11
  "pathParams": [],
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sensei",
6
6
  "sessions",
7
- "facts"
7
+ "facts",
8
+ "get"
8
9
  ],
9
10
  "summary": "Read fresh session evidence and the opaque revision needed for an assessment. Requires the running Sensei Turn to follow this session in its own thread.",
10
11
  "pathParams": [],
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/suggest",
4
4
  "command": [
5
5
  "sensei",
6
- "suggest"
6
+ "suggestions",
7
+ "create"
7
8
  ],
8
9
  "summary": "Put suggestion pills in a message of your Turn's own thread, under your words. A tap on a pill fills the member's reply and sends nothing; a newThread pill is a new topic, and its tap starts a thread of its own with those words. Refused when your Turn stopped. Each pill is in the member's words; newThread only for an unrelated topic. It is the last thing your Turn posts: end your Turn after it.",
9
10
  "pathParams": [],
@@ -3,8 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/threads/{threadId}/done",
4
4
  "command": [
5
5
  "sensei",
6
- "thread",
7
- "done"
6
+ "threads",
7
+ "close"
8
8
  ],
9
9
  "summary": "Mark your Sensei Thread done",
10
10
  "pathParams": [
@@ -3,8 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/threads/{threadId}",
4
4
  "command": [
5
5
  "sensei",
6
- "thread",
7
- "read"
6
+ "threads",
7
+ "get"
8
8
  ],
9
9
  "summary": "Read one of your Sensei Threads: its name, state, sessions and root, its replies oldest first, the Turn that runs or last ran in it, and its Up next. Paged: `limit` replies at a time, and `before` for the ones older than a reply already read. `session` keeps the rows about one Chat Session.",
10
10
  "pathParams": [
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/threads",
4
4
  "command": [
5
5
  "sensei",
6
- "threads"
6
+ "threads",
7
+ "list"
7
8
  ],
8
9
  "summary": "List your Sensei Threads, those that need you first, with the id, title, state, last activity and sessions of each, and the pull request number of every session that has one. `states` and `search` filter; `limit` threads a page, and `cursor` the next page.",
9
10
  "pathParams": [],
@@ -3,7 +3,7 @@ export const operation = {
3
3
  "path": "/api/sensei/thread-move",
4
4
  "command": [
5
5
  "sensei",
6
- "thread",
6
+ "threads",
7
7
  "move"
8
8
  ],
9
9
  "summary": "Move the member’s message that started this Turn’s thread into another of their threads, which it continues. Only Sensei calls it, and only before the Turn has written anything: Kosuke ends this Turn, sends the message into that thread, where it is answered with that thread’s memory, and removes this thread. Write no answer after it. Move it when it answers a question you asked in that thread, or is about that thread's work or session.",
@@ -3,7 +3,7 @@ export const operation = {
3
3
  "path": "/api/sensei/thread-split",
4
4
  "command": [
5
5
  "sensei",
6
- "thread",
6
+ "threads",
7
7
  "split"
8
8
  ],
9
9
  "summary": "Split the member’s message that started this Turn’s thread into one thread per ask. Only Sensei calls it, once per message. The member’s message stays the root of this thread, which does the first ask; each other ask becomes a thread of its own with its own Turn. The reply lists the asks handed off: do not do those here. Each ask stands alone: \"Ship A, B and C\" is three asks, the steps of one piece of work are one.",
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/sensei/widgets",
4
4
  "command": [
5
5
  "sensei",
6
- "widgets"
6
+ "widgets",
7
+ "get"
7
8
  ],
8
9
  "summary": "Read your open Sensei Card count and the first four cards in Reels order for widgets.",
9
10
  "pathParams": [],
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/preview/app-stack",
4
4
  "command": [
5
5
  "sessions",
6
- "app-stack-start"
6
+ "app-stack",
7
+ "start"
7
8
  ],
8
9
  "summary": "Start a chat session's App stack, the project's services, in its running sandbox and wait until they answer; restarts them when an earlier start left them down, a no-op while they run. A session's own agent may start its own; 409 SANDBOX_NOT_RUNNING when the sandbox is not up, 409 APP_STACK_NOT_READY while its setup still runs and 409 APP_STACK_STARTING while another start runs (retry both in a minute), 422 APP_STACK_START_FAILED with the reason.",
9
10
  "pathParams": [
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "artifacts",
7
- "attach"
7
+ "create"
8
8
  ],
9
9
  "summary": "Copy a file of the project's workspace Files, or each file directly in a folder, onto a Backlog session as its own artifacts. Markdown, HTML, images and videos only; a slug the session already has gets a new version.",
10
10
  "pathParams": [
@@ -110,7 +110,7 @@ export const operation = {
110
110
  "flag": "app-stack",
111
111
  "kind": "string",
112
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.",
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 `kosuke sessions app-stack start`. Fixed once the session starts.",
114
114
  "choices": [
115
115
  "start",
116
116
  "skip"
@@ -218,7 +218,7 @@ export const operation = {
218
218
  "flag": "app-stack",
219
219
  "kind": "string",
220
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.",
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 `kosuke sessions app-stack start`. Fixed once the session starts.",
222
222
  "choices": [
223
223
  "start",
224
224
  "skip"
@@ -3,7 +3,9 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/desktop/control",
4
4
  "command": [
5
5
  "sessions",
6
- "desktop-control"
6
+ "desktop",
7
+ "control",
8
+ "set"
7
9
  ],
8
10
  "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
11
  "pathParams": [
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/desktop",
4
4
  "command": [
5
5
  "sessions",
6
- "desktop"
6
+ "desktop",
7
+ "get"
7
8
  ],
8
9
  "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
10
  "pathParams": [
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/desktop",
4
4
  "command": [
5
5
  "sessions",
6
- "desktop-start"
6
+ "desktop",
7
+ "start"
7
8
  ],
8
9
  "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
10
  "pathParams": [
@@ -5,7 +5,7 @@ export const operation = {
5
5
  "sessions",
6
6
  "diff",
7
7
  "comments",
8
- "add"
8
+ "create"
9
9
  ],
10
10
  "summary": "Leave a review comment on a range of lines in the diff.",
11
11
  "pathParams": [
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "diff",
7
- "commits"
7
+ "commits",
8
+ "list"
8
9
  ],
9
10
  "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
11
  "pathParams": [
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "diff",
7
- "files"
7
+ "files",
8
+ "list"
8
9
  ],
9
10
  "summary": "List the files the session's branch changes against its base, with totals.",
10
11
  "pathParams": [
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "diff",
7
- "patch"
7
+ "patch",
8
+ "get"
8
9
  ],
9
10
  "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
11
  "pathParams": [
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "files",
7
- "write"
7
+ "set"
8
8
  ],
9
9
  "summary": "Write one file in the session's sandbox. Refused while a turn is running, and for binary content.",
10
10
  "pathParams": [
@@ -5,7 +5,7 @@ export const operation = {
5
5
  "sessions",
6
6
  "get"
7
7
  ],
8
- "summary": "Read one chat session with its URL, latest job and pull request. A Backlog session also carries its promptRevision, which `sessions edit-prompt --if-revision` and `sensei tickets merge` name for each ticket an edit was written from. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
8
+ "summary": "Read one chat session with its URL, latest job and pull request. A Backlog session also carries its promptRevision, which `kosuke sessions prompt update --if-revision` and `kosuke sensei tickets merge` name for each ticket an edit was written from. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts.",
9
9
  "pathParams": [
10
10
  "projectId",
11
11
  "sessionId"
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "git",
7
- "commit-message"
7
+ "commit-message",
8
+ "create"
8
9
  ],
9
10
  "summary": "Draft a commit message for the uncommitted changes. Needs a running sandbox.",
10
11
  "pathParams": [
@@ -4,7 +4,8 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "git",
7
- "state"
7
+ "state",
8
+ "get"
8
9
  ],
9
10
  "summary": "Read whether the session's sandbox has uncommitted changes, unpushed commits, or commits ahead of its base branch.",
10
11
  "pathParams": [
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "go-ahead",
7
- "clear"
7
+ "delete"
8
8
  ],
9
9
  "summary": "Take the session's go-ahead away, so neither Kosuke nor a Batch merges its pull request until it is given again. The callers of `sessions go-ahead set`.",
10
10
  "pathParams": [
@@ -4,7 +4,7 @@ export const operation = {
4
4
  "command": [
5
5
  "sessions",
6
6
  "labels",
7
- "edit"
7
+ "update"
8
8
  ],
9
9
  "summary": "Add and remove Session Labels, leaving the session's other labels as they are. color sets the initial project color only for newly created labels in add; existing label colors stay unchanged. A session token nobody stands behind may edit only its own session. Session Labels stay in Kosuke: none is written to the pull request.",
10
10
  "pathParams": [
@@ -3,8 +3,11 @@ export const operation = {
3
3
  "path": "/api/chat-sessions",
4
4
  "command": [
5
5
  "sessions",
6
- "all"
6
+ "list"
7
7
  ],
8
+ "variant": {
9
+ "scope": "all"
10
+ },
8
11
  "summary": "List chat sessions across every workspace you belong to, each with its workspace, project, URL and Needs You reason. q narrows them to titles containing it, ids to the sessions it names. With needsYou, at most 100, most severe first. An agent token reads its own workspace only. Each session carries waitingForDeploy: true while it waits for the Deploy to finish, false once the Deploy ends, before its sandbox starts; goAheadSha and goAheadMerges, its go-ahead on its open pull request; and mergeRule, its Assignee's Merge rule.",
9
12
  "pathParams": [],
10
13
  "query": [
@@ -3,9 +3,10 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/messages/{messageId}",
4
4
  "command": [
5
5
  "sessions",
6
- "message"
6
+ "messages",
7
+ "get"
7
8
  ],
8
- "summary": "Read one message of a chat session with every block as recorded: whole tool inputs, results and subagent output, unless agentOutput is compact (subagent output cut) or summary (blocks as sessions messages returns them).",
9
+ "summary": "Read one message of a chat session with every block as recorded: whole tool inputs, results and subagent output, unless agentOutput is compact (subagent output cut) or summary (blocks as `kosuke sessions messages list` returns them).",
9
10
  "pathParams": [
10
11
  "projectId",
11
12
  "sessionId",
@@ -17,7 +18,7 @@ export const operation = {
17
18
  "flag": "agent-output",
18
19
  "kind": "string",
19
20
  "required": false,
20
- "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and cuts subagent output, to its last entry with outputCount, or every entry cut short in a message recorded before previews were stored; summary returns the blocks as sessions messages does.",
21
+ "description": "full (the default) returns every block as recorded; compact returns whole tool inputs and results and cuts subagent output, to its last entry with outputCount, or every entry cut short in a message recorded before previews were stored; summary returns the blocks as `kosuke sessions messages list` does.",
21
22
  "choices": [
22
23
  "summary",
23
24
  "compact",
@@ -3,9 +3,10 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/messages",
4
4
  "command": [
5
5
  "sessions",
6
- "messages"
6
+ "messages",
7
+ "list"
7
8
  ],
8
- "summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one. messageCount counts the whole conversation. Blocks come summarized: a tool call's input keeps its short fields (inputCompacted), a result over 500 characters its first 500 (resultCompacted), and a subagent its last output entry with outputCount (outputOmitted). sessions message reads one message whole.",
9
+ "summary": "Read a chat session conversation oldest first: the whole of it, its last limit messages, the page before an olderCursor, or everything from one. messageCount counts the whole conversation. Blocks come summarized: a tool call's input keeps its short fields (inputCompacted), a result over 500 characters its first 500 (resultCompacted), and a subagent its last output entry with outputCount (outputOmitted). `kosuke sessions messages get` reads one message whole.",
9
10
  "pathParams": [
10
11
  "projectId",
11
12
  "sessionId"
@@ -3,7 +3,8 @@ export const operation = {
3
3
  "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/prompt",
4
4
  "command": [
5
5
  "sessions",
6
- "edit-prompt"
6
+ "prompt",
7
+ "update"
7
8
  ],
8
9
  "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. Send the whole new description, and only for a new goal; an agent rewrites only a ticket it filed unless the member asked.",
9
10
  "pathParams": [
@@ -0,0 +1,40 @@
1
+ export const operation = {
2
+ "method": "post",
3
+ "path": "/api/projects/{projectId}/chat-sessions/{sessionId}/pull-request/ready",
4
+ "command": [
5
+ "sessions",
6
+ "pull-request",
7
+ "mark-ready"
8
+ ],
9
+ "summary": "Mark the session's draft pull request ready for review, only when its head is the sandbox's clean HEAD, its CI is green (or, with withoutChecks, no check reported) and QA passed on it. Answers `ready:` or `not ready:` in `line`. Only the session's own sandbox.",
10
+ "pathParams": [
11
+ "projectId",
12
+ "sessionId"
13
+ ],
14
+ "query": [],
15
+ "body": {
16
+ "fields": [
17
+ {
18
+ "name": "sha",
19
+ "flag": "sha",
20
+ "kind": "string",
21
+ "required": false,
22
+ "description": "This checkout's HEAD, which must be the pull request's head: `git rev-parse HEAD`."
23
+ },
24
+ {
25
+ "name": "withoutChecks",
26
+ "flag": "without-checks",
27
+ "kind": "boolean",
28
+ "required": false,
29
+ "description": "Mark it ready although no check has reported on the head of a repository with workflow files."
30
+ }
31
+ ],
32
+ "required": true
33
+ },
34
+ "multipart": null,
35
+ "attachments": false,
36
+ "anonymous": false,
37
+ "agents": [
38
+ "sandboxToken"
39
+ ]
40
+ };