@jinion/core 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (415) hide show
  1. package/dist/agent/agent.d.ts +5 -1
  2. package/dist/agent/agent.d.ts.map +1 -1
  3. package/dist/agent/agent.js +3 -2
  4. package/dist/agent/agent.js.map +1 -1
  5. package/dist/agent/claude/approvals.d.ts +2 -1
  6. package/dist/agent/claude/approvals.d.ts.map +1 -1
  7. package/dist/agent/claude/approvals.js +2 -2
  8. package/dist/agent/claude/approvals.js.map +1 -1
  9. package/dist/agent/claude/backend.d.ts +4 -0
  10. package/dist/agent/claude/backend.d.ts.map +1 -1
  11. package/dist/agent/claude/backend.js +1 -1
  12. package/dist/agent/claude/backend.js.map +1 -1
  13. package/dist/agent/claude/events.js +1 -1
  14. package/dist/agent/claude/events.js.map +1 -1
  15. package/dist/agent/claude/guard.d.ts.map +1 -1
  16. package/dist/agent/claude/guard.js +2 -1
  17. package/dist/agent/claude/guard.js.map +1 -1
  18. package/dist/agent/claude/jinion-tools.d.ts +9 -1
  19. package/dist/agent/claude/jinion-tools.d.ts.map +1 -1
  20. package/dist/agent/claude/jinion-tools.js +14 -2
  21. package/dist/agent/claude/jinion-tools.js.map +1 -1
  22. package/dist/agent/claude/mcp.d.ts.map +1 -1
  23. package/dist/agent/claude/mcp.js +21 -1
  24. package/dist/agent/claude/mcp.js.map +1 -1
  25. package/dist/agent/claude/options.d.ts +9 -1
  26. package/dist/agent/claude/options.d.ts.map +1 -1
  27. package/dist/agent/claude/options.js +7 -3
  28. package/dist/agent/claude/options.js.map +1 -1
  29. package/dist/agent/claude/paths.d.ts +0 -3
  30. package/dist/agent/claude/paths.d.ts.map +1 -1
  31. package/dist/agent/claude/paths.js +1 -7
  32. package/dist/agent/claude/paths.js.map +1 -1
  33. package/dist/agent/claude/permissions.js +1 -1
  34. package/dist/agent/claude/permissions.js.map +1 -1
  35. package/dist/agent/claude/policy.d.ts +1 -1
  36. package/dist/agent/claude/policy.d.ts.map +1 -1
  37. package/dist/agent/claude/policy.js +1 -0
  38. package/dist/agent/claude/policy.js.map +1 -1
  39. package/dist/agent/claude/prompt.d.ts +2 -1
  40. package/dist/agent/claude/prompt.d.ts.map +1 -1
  41. package/dist/agent/claude/prompt.js +10 -5
  42. package/dist/agent/claude/prompt.js.map +1 -1
  43. package/dist/agent/claude/review.d.ts +4 -1
  44. package/dist/agent/claude/review.d.ts.map +1 -1
  45. package/dist/agent/claude/review.js +5 -2
  46. package/dist/agent/claude/review.js.map +1 -1
  47. package/dist/agent/claude/session.d.ts +8 -1
  48. package/dist/agent/claude/session.d.ts.map +1 -1
  49. package/dist/agent/claude/session.js +7 -1
  50. package/dist/agent/claude/session.js.map +1 -1
  51. package/dist/agent/claude/tool-calls.d.ts.map +1 -1
  52. package/dist/agent/claude/tool-calls.js +11 -2
  53. package/dist/agent/claude/tool-calls.js.map +1 -1
  54. package/dist/agent/codex/approvals.d.ts +1 -1
  55. package/dist/agent/codex/approvals.d.ts.map +1 -1
  56. package/dist/agent/codex/approvals.js +1 -1
  57. package/dist/agent/codex/approvals.js.map +1 -1
  58. package/dist/agent/codex/backend.d.ts +4 -0
  59. package/dist/agent/codex/backend.d.ts.map +1 -1
  60. package/dist/agent/codex/backend.js +1 -1
  61. package/dist/agent/codex/backend.js.map +1 -1
  62. package/dist/agent/codex/events.d.ts.map +1 -1
  63. package/dist/agent/codex/events.js +15 -1
  64. package/dist/agent/codex/events.js.map +1 -1
  65. package/dist/agent/codex/jinion-tools.d.ts +38 -4
  66. package/dist/agent/codex/jinion-tools.d.ts.map +1 -1
  67. package/dist/agent/codex/jinion-tools.js +57 -10
  68. package/dist/agent/codex/jinion-tools.js.map +1 -1
  69. package/dist/agent/codex/mcp.d.ts.map +1 -1
  70. package/dist/agent/codex/mcp.js +4 -0
  71. package/dist/agent/codex/mcp.js.map +1 -1
  72. package/dist/agent/codex/modes.d.ts +2 -2
  73. package/dist/agent/codex/modes.d.ts.map +1 -1
  74. package/dist/agent/codex/modes.js +4 -3
  75. package/dist/agent/codex/modes.js.map +1 -1
  76. package/dist/agent/codex/rewind.js +1 -47
  77. package/dist/agent/codex/rewind.js.map +1 -1
  78. package/dist/agent/codex/session.d.ts +10 -3
  79. package/dist/agent/codex/session.d.ts.map +1 -1
  80. package/dist/agent/codex/session.js +21 -7
  81. package/dist/agent/codex/session.js.map +1 -1
  82. package/dist/agent/demo/mcp.d.ts +2 -0
  83. package/dist/agent/demo/mcp.d.ts.map +1 -1
  84. package/dist/agent/demo/mcp.js +14 -0
  85. package/dist/agent/demo/mcp.js.map +1 -1
  86. package/dist/agent/demo/script.d.ts +8 -2
  87. package/dist/agent/demo/script.d.ts.map +1 -1
  88. package/dist/agent/demo/tasks.d.ts +4 -1
  89. package/dist/agent/demo/tasks.d.ts.map +1 -1
  90. package/dist/agent/events.d.ts +4 -0
  91. package/dist/agent/events.d.ts.map +1 -1
  92. package/dist/agent/events.js +2 -0
  93. package/dist/agent/events.js.map +1 -1
  94. package/dist/agent/mcp.d.ts +5 -0
  95. package/dist/agent/mcp.d.ts.map +1 -1
  96. package/dist/agent/mcp.js +2 -0
  97. package/dist/agent/mcp.js.map +1 -1
  98. package/dist/agent/modes.d.ts +15 -1
  99. package/dist/agent/modes.d.ts.map +1 -1
  100. package/dist/agent/modes.js +16 -1
  101. package/dist/agent/modes.js.map +1 -1
  102. package/dist/agent/patches.d.ts +5 -0
  103. package/dist/agent/patches.d.ts.map +1 -1
  104. package/dist/agent/patches.js +49 -0
  105. package/dist/agent/patches.js.map +1 -1
  106. package/dist/agent/review-tools.d.ts +15 -0
  107. package/dist/agent/review-tools.d.ts.map +1 -0
  108. package/dist/agent/review-tools.js +13 -0
  109. package/dist/agent/review-tools.js.map +1 -0
  110. package/dist/agent/review.d.ts +18 -6
  111. package/dist/agent/review.d.ts.map +1 -1
  112. package/dist/agent/review.js +52 -17
  113. package/dist/agent/review.js.map +1 -1
  114. package/dist/api/client.d.ts +19 -5
  115. package/dist/api/client.d.ts.map +1 -1
  116. package/dist/api/client.js +14 -3
  117. package/dist/api/client.js.map +1 -1
  118. package/dist/api/connection.d.ts +7 -2
  119. package/dist/api/connection.d.ts.map +1 -1
  120. package/dist/api/connection.js +6 -0
  121. package/dist/api/connection.js.map +1 -1
  122. package/dist/api/fields.d.ts +9 -7
  123. package/dist/api/fields.d.ts.map +1 -1
  124. package/dist/api/fields.js +3 -2
  125. package/dist/api/fields.js.map +1 -1
  126. package/dist/api/json-schema.d.ts +604 -95
  127. package/dist/api/json-schema.d.ts.map +1 -1
  128. package/dist/api/json-schema.js +2 -1
  129. package/dist/api/json-schema.js.map +1 -1
  130. package/dist/api/methods/accounts.d.ts.map +1 -1
  131. package/dist/api/methods/accounts.js +1 -2
  132. package/dist/api/methods/accounts.js.map +1 -1
  133. package/dist/api/methods/app.d.ts.map +1 -1
  134. package/dist/api/methods/app.js +9 -5
  135. package/dist/api/methods/app.js.map +1 -1
  136. package/dist/api/methods/files.d.ts +3 -1
  137. package/dist/api/methods/files.d.ts.map +1 -1
  138. package/dist/api/methods/files.js +75 -2
  139. package/dist/api/methods/files.js.map +1 -1
  140. package/dist/api/methods/git.d.ts.map +1 -1
  141. package/dist/api/methods/git.js +54 -6
  142. package/dist/api/methods/git.js.map +1 -1
  143. package/dist/api/methods/lsp.d.ts +7 -0
  144. package/dist/api/methods/lsp.d.ts.map +1 -0
  145. package/dist/api/methods/lsp.js +68 -0
  146. package/dist/api/methods/lsp.js.map +1 -0
  147. package/dist/api/methods/preview.d.ts +4 -1
  148. package/dist/api/methods/preview.d.ts.map +1 -1
  149. package/dist/api/methods/preview.js +19 -3
  150. package/dist/api/methods/preview.js.map +1 -1
  151. package/dist/api/methods/terminals.d.ts.map +1 -1
  152. package/dist/api/methods/terminals.js +7 -1
  153. package/dist/api/methods/terminals.js.map +1 -1
  154. package/dist/api/protocol.d.ts +774 -13
  155. package/dist/api/protocol.d.ts.map +1 -1
  156. package/dist/api/protocol.js +126 -8
  157. package/dist/api/protocol.js.map +1 -1
  158. package/dist/api/schemas.d.ts +15 -2
  159. package/dist/api/schemas.d.ts.map +1 -1
  160. package/dist/api/schemas.js +4 -0
  161. package/dist/api/schemas.js.map +1 -1
  162. package/dist/api/screen.d.ts +2 -0
  163. package/dist/api/screen.d.ts.map +1 -1
  164. package/dist/api/screen.js +3 -0
  165. package/dist/api/screen.js.map +1 -1
  166. package/dist/api/server.d.ts +2 -0
  167. package/dist/api/server.d.ts.map +1 -1
  168. package/dist/api/server.js +13 -0
  169. package/dist/api/server.js.map +1 -1
  170. package/dist/commands/agent.js +3 -3
  171. package/dist/commands/agent.js.map +1 -1
  172. package/dist/commands/builtin.d.ts.map +1 -1
  173. package/dist/commands/builtin.js +2 -0
  174. package/dist/commands/builtin.js.map +1 -1
  175. package/dist/commands/conversation.d.ts.map +1 -1
  176. package/dist/commands/conversation.js +2 -0
  177. package/dist/commands/conversation.js.map +1 -1
  178. package/dist/commands/feedback.d.ts.map +1 -1
  179. package/dist/commands/feedback.js +1 -0
  180. package/dist/commands/feedback.js.map +1 -1
  181. package/dist/commands/notifications.d.ts.map +1 -1
  182. package/dist/commands/notifications.js +5 -3
  183. package/dist/commands/notifications.js.map +1 -1
  184. package/dist/commands/registry.d.ts +3 -0
  185. package/dist/commands/registry.d.ts.map +1 -1
  186. package/dist/commands/registry.js +14 -0
  187. package/dist/commands/registry.js.map +1 -1
  188. package/dist/commands/skill.d.ts +5 -0
  189. package/dist/commands/skill.d.ts.map +1 -0
  190. package/dist/commands/skill.js +30 -0
  191. package/dist/commands/skill.js.map +1 -0
  192. package/dist/commands/views.d.ts.map +1 -1
  193. package/dist/commands/views.js +5 -1
  194. package/dist/commands/views.js.map +1 -1
  195. package/dist/controllers/accounts.d.ts +5 -2
  196. package/dist/controllers/accounts.d.ts.map +1 -1
  197. package/dist/controllers/accounts.js +11 -8
  198. package/dist/controllers/accounts.js.map +1 -1
  199. package/dist/controllers/context.d.ts +2 -0
  200. package/dist/controllers/context.d.ts.map +1 -1
  201. package/dist/controllers/context.js.map +1 -1
  202. package/dist/controllers/feedback.d.ts +1 -1
  203. package/dist/controllers/feedback.d.ts.map +1 -1
  204. package/dist/controllers/feedback.js +4 -1
  205. package/dist/controllers/feedback.js.map +1 -1
  206. package/dist/controllers/input.d.ts.map +1 -1
  207. package/dist/controllers/input.js +2 -0
  208. package/dist/controllers/input.js.map +1 -1
  209. package/dist/controllers/jinion.d.ts +7 -0
  210. package/dist/controllers/jinion.d.ts.map +1 -1
  211. package/dist/controllers/jinion.js +7 -0
  212. package/dist/controllers/jinion.js.map +1 -1
  213. package/dist/controllers/mcp.d.ts +7 -2
  214. package/dist/controllers/mcp.d.ts.map +1 -1
  215. package/dist/controllers/mcp.js +23 -7
  216. package/dist/controllers/mcp.js.map +1 -1
  217. package/dist/controllers/mode.d.ts +8 -4
  218. package/dist/controllers/mode.d.ts.map +1 -1
  219. package/dist/controllers/mode.js +30 -4
  220. package/dist/controllers/mode.js.map +1 -1
  221. package/dist/controllers/session.d.ts.map +1 -1
  222. package/dist/controllers/session.js +5 -1
  223. package/dist/controllers/session.js.map +1 -1
  224. package/dist/controllers/turns.d.ts +1 -0
  225. package/dist/controllers/turns.d.ts.map +1 -1
  226. package/dist/controllers/turns.js +9 -2
  227. package/dist/controllers/turns.js.map +1 -1
  228. package/dist/conversation/activity.d.ts +5 -0
  229. package/dist/conversation/activity.d.ts.map +1 -0
  230. package/dist/conversation/activity.js +41 -0
  231. package/dist/conversation/activity.js.map +1 -0
  232. package/dist/conversation/apply-event.d.ts.map +1 -1
  233. package/dist/conversation/apply-event.js +2 -1
  234. package/dist/conversation/apply-event.js.map +1 -1
  235. package/dist/conversation/dialogs.d.ts +1 -0
  236. package/dist/conversation/dialogs.d.ts.map +1 -1
  237. package/dist/conversation/edits.d.ts +5 -0
  238. package/dist/conversation/edits.d.ts.map +1 -1
  239. package/dist/conversation/edits.js +10 -0
  240. package/dist/conversation/edits.js.map +1 -1
  241. package/dist/conversation/reducer.d.ts +12 -0
  242. package/dist/conversation/reducer.d.ts.map +1 -1
  243. package/dist/design/guides.d.ts +78 -5
  244. package/dist/design/guides.d.ts.map +1 -1
  245. package/dist/design/guides.js +78 -5
  246. package/dist/design/guides.js.map +1 -1
  247. package/dist/design/prompt.d.ts +1 -1
  248. package/dist/design/prompt.d.ts.map +1 -1
  249. package/dist/design/prompt.js +2 -2
  250. package/dist/design/prompt.js.map +1 -1
  251. package/dist/design/tools.d.ts +2 -0
  252. package/dist/design/tools.d.ts.map +1 -1
  253. package/dist/design/tools.js +6 -2
  254. package/dist/design/tools.js.map +1 -1
  255. package/dist/directions/directions.d.ts +42 -0
  256. package/dist/directions/directions.d.ts.map +1 -0
  257. package/dist/directions/directions.js +120 -0
  258. package/dist/directions/directions.js.map +1 -0
  259. package/dist/directions/store.d.ts +34 -0
  260. package/dist/directions/store.d.ts.map +1 -0
  261. package/dist/directions/store.js +61 -0
  262. package/dist/directions/store.js.map +1 -0
  263. package/dist/directions/tools.d.ts +29 -0
  264. package/dist/directions/tools.d.ts.map +1 -0
  265. package/dist/directions/tools.js +57 -0
  266. package/dist/directions/tools.js.map +1 -0
  267. package/dist/directions/viewer.d.ts +6 -0
  268. package/dist/directions/viewer.d.ts.map +1 -0
  269. package/dist/directions/viewer.js +266 -0
  270. package/dist/directions/viewer.js.map +1 -0
  271. package/dist/files/names.d.ts +6 -0
  272. package/dist/files/names.d.ts.map +1 -0
  273. package/dist/files/names.js +18 -0
  274. package/dist/files/names.js.map +1 -0
  275. package/dist/files/operations.d.ts +54 -0
  276. package/dist/files/operations.d.ts.map +1 -0
  277. package/dist/files/operations.js +173 -0
  278. package/dist/files/operations.js.map +1 -0
  279. package/dist/files/search.d.ts +11 -0
  280. package/dist/files/search.d.ts.map +1 -0
  281. package/dist/files/search.js +112 -0
  282. package/dist/files/search.js.map +1 -0
  283. package/dist/files/trash.d.ts +11 -0
  284. package/dist/files/trash.d.ts.map +1 -0
  285. package/dist/files/trash.js +64 -0
  286. package/dist/files/trash.js.map +1 -0
  287. package/dist/files/types.d.ts +112 -0
  288. package/dist/files/types.d.ts.map +1 -0
  289. package/dist/files/types.js +47 -0
  290. package/dist/files/types.js.map +1 -0
  291. package/dist/files/watch.d.ts +26 -0
  292. package/dist/files/watch.d.ts.map +1 -0
  293. package/dist/files/watch.js +107 -0
  294. package/dist/files/watch.js.map +1 -0
  295. package/dist/git/blame.d.ts +10 -0
  296. package/dist/git/blame.d.ts.map +1 -0
  297. package/dist/git/blame.js +91 -0
  298. package/dist/git/blame.js.map +1 -0
  299. package/dist/git/repos.d.ts +5 -0
  300. package/dist/git/repos.d.ts.map +1 -1
  301. package/dist/git/repos.js +13 -0
  302. package/dist/git/repos.js.map +1 -1
  303. package/dist/git/staging.d.ts +10 -1
  304. package/dist/git/staging.d.ts.map +1 -1
  305. package/dist/git/staging.js +21 -0
  306. package/dist/git/staging.js.map +1 -1
  307. package/dist/git/types.d.ts +48 -0
  308. package/dist/git/types.d.ts.map +1 -1
  309. package/dist/git/types.js +25 -0
  310. package/dist/git/types.js.map +1 -1
  311. package/dist/host.d.ts +2 -0
  312. package/dist/host.d.ts.map +1 -1
  313. package/dist/host.js +8 -1
  314. package/dist/host.js.map +1 -1
  315. package/dist/lib/glob.d.ts +6 -0
  316. package/dist/lib/glob.d.ts.map +1 -0
  317. package/dist/lib/glob.js +49 -0
  318. package/dist/lib/glob.js.map +1 -0
  319. package/dist/lib/paths.d.ts +3 -0
  320. package/dist/lib/paths.d.ts.map +1 -1
  321. package/dist/lib/paths.js +9 -1
  322. package/dist/lib/paths.js.map +1 -1
  323. package/dist/look/tools.d.ts +7 -1
  324. package/dist/look/tools.d.ts.map +1 -1
  325. package/dist/look/tools.js +19 -4
  326. package/dist/look/tools.js.map +1 -1
  327. package/dist/lsp/code-intelligence.d.ts +87 -0
  328. package/dist/lsp/code-intelligence.d.ts.map +1 -0
  329. package/dist/lsp/code-intelligence.js +343 -0
  330. package/dist/lsp/code-intelligence.js.map +1 -0
  331. package/dist/lsp/edits.d.ts +4 -0
  332. package/dist/lsp/edits.d.ts.map +1 -0
  333. package/dist/lsp/edits.js +14 -0
  334. package/dist/lsp/edits.js.map +1 -0
  335. package/dist/lsp/project-check.d.ts +8 -0
  336. package/dist/lsp/project-check.d.ts.map +1 -0
  337. package/dist/lsp/project-check.js +71 -0
  338. package/dist/lsp/project-check.js.map +1 -0
  339. package/dist/lsp/results.d.ts +95 -0
  340. package/dist/lsp/results.d.ts.map +1 -0
  341. package/dist/lsp/results.js +116 -0
  342. package/dist/lsp/results.js.map +1 -0
  343. package/dist/lsp/server.d.ts +22 -0
  344. package/dist/lsp/server.d.ts.map +1 -0
  345. package/dist/lsp/server.js +123 -0
  346. package/dist/lsp/server.js.map +1 -0
  347. package/dist/lsp/servers.d.ts +21 -0
  348. package/dist/lsp/servers.d.ts.map +1 -0
  349. package/dist/lsp/servers.js +57 -0
  350. package/dist/lsp/servers.js.map +1 -0
  351. package/dist/lsp/transport.d.ts +9 -0
  352. package/dist/lsp/transport.d.ts.map +1 -0
  353. package/dist/lsp/transport.js +64 -0
  354. package/dist/lsp/transport.js.map +1 -0
  355. package/dist/lsp/types.d.ts +262 -0
  356. package/dist/lsp/types.d.ts.map +1 -0
  357. package/dist/lsp/types.js +64 -0
  358. package/dist/lsp/types.js.map +1 -0
  359. package/dist/map/prompt.d.ts.map +1 -1
  360. package/dist/map/prompt.js +2 -1
  361. package/dist/map/prompt.js.map +1 -1
  362. package/dist/map/review.d.ts +29 -9
  363. package/dist/map/review.d.ts.map +1 -1
  364. package/dist/map/review.js +105 -25
  365. package/dist/map/review.js.map +1 -1
  366. package/dist/mcp/login.d.ts +2 -0
  367. package/dist/mcp/login.d.ts.map +1 -1
  368. package/dist/mcp/login.js +5 -0
  369. package/dist/mcp/login.js.map +1 -1
  370. package/dist/preview/pages.d.ts +17 -0
  371. package/dist/preview/pages.d.ts.map +1 -0
  372. package/dist/preview/pages.js +92 -0
  373. package/dist/preview/pages.js.map +1 -0
  374. package/dist/preview/previews.d.ts +22 -0
  375. package/dist/preview/previews.d.ts.map +1 -0
  376. package/dist/preview/previews.js +28 -0
  377. package/dist/preview/previews.js.map +1 -0
  378. package/dist/preview/prompt.d.ts +3 -0
  379. package/dist/preview/prompt.d.ts.map +1 -0
  380. package/dist/preview/prompt.js +5 -0
  381. package/dist/preview/prompt.js.map +1 -0
  382. package/dist/preview/tools.d.ts +21 -0
  383. package/dist/preview/tools.d.ts.map +1 -0
  384. package/dist/preview/tools.js +34 -0
  385. package/dist/preview/tools.js.map +1 -0
  386. package/dist/preview/types.d.ts +7 -0
  387. package/dist/preview/types.d.ts.map +1 -1
  388. package/dist/preview/types.js +2 -0
  389. package/dist/preview/types.js.map +1 -1
  390. package/dist/prompt/files.d.ts +4 -1
  391. package/dist/prompt/files.d.ts.map +1 -1
  392. package/dist/prompt/files.js +23 -8
  393. package/dist/prompt/files.js.map +1 -1
  394. package/dist/settings/user.d.ts +2 -0
  395. package/dist/settings/user.d.ts.map +1 -1
  396. package/dist/settings/user.js.map +1 -1
  397. package/dist/skills/tools.d.ts +26 -0
  398. package/dist/skills/tools.d.ts.map +1 -0
  399. package/dist/skills/tools.js +34 -0
  400. package/dist/skills/tools.js.map +1 -0
  401. package/dist/state/agent.d.ts +2 -2
  402. package/dist/state/session.d.ts +9 -5
  403. package/dist/state/session.d.ts.map +1 -1
  404. package/dist/state/session.js +1 -0
  405. package/dist/state/session.js.map +1 -1
  406. package/package.json +3 -1
  407. package/schema/api.json +3017 -45
  408. package/vendor/darwin-arm64/build.json +62 -0
  409. package/vendor/darwin-arm64/ffmpeg +0 -0
  410. package/vendor/darwin-arm64/ffprobe +0 -0
  411. package/vendor/darwin-arm64/licenses/README.md +13 -0
  412. package/vendor/darwin-arm64/licenses/ffmpeg-LGPL-2.1.txt +502 -0
  413. package/vendor/darwin-arm64/licenses/whisper.cpp-MIT.txt +21 -0
  414. package/vendor/darwin-arm64/voices.bin +0 -0
  415. package/vendor/darwin-arm64/whisper-cli +0 -0
@@ -3,11 +3,13 @@ import { z } from 'zod';
3
3
  export type { AgentInfo, SessionFeatures } from '../agent/agent.js';
4
4
  export type { Attachment, AttachmentKind, AttachmentSource } from '../attachments/types.js';
5
5
  export type { AppInfo, PromptFill, RewindPoint, View } from '../controllers/context.js';
6
- export type { FileChange, GitStatus, RepoChanges } from '../git/types.js';
6
+ export type { Blame, BlameRange, CommitDetail, CommitInfo, FileChange, GitStatus, RepoChanges } from '../git/types.js';
7
7
  export type { ClaudeSetup } from '../agent/claude/setup-info.js';
8
8
  export type { McpTransport } from '../mcp/transport.js';
9
- export type { DevScript, DevServer } from '../preview/types.js';
9
+ export type { DevScript, DevServer, PreviewCapture } from '../preview/types.js';
10
10
  export type { TerminalInfo, TerminalOutput } from '../terminals/types.js';
11
+ export type * from '../lsp/types.js';
12
+ export type * from '../files/types.js';
11
13
  export type * from './schemas.js';
12
14
  /**
13
15
  * Raised only when a change would break a client written for the one before. Adding a method, a notification or an
@@ -28,6 +30,8 @@ export declare const ApiCode: {
28
30
  readonly unknownTerminal: -32008;
29
31
  /** The file changed since the client read it, as when the agent edited it; `data.modified` is its time now. */
30
32
  readonly fileChanged: -32009;
33
+ /** A file or folder is already where one was to go; `data.path` is it, in the session's folder. */
34
+ readonly fileExists: -32010;
31
35
  };
32
36
  /** Every method the server answers: what a client sends, checked where it comes in, and what it gets back. */
33
37
  export declare const requests: {
@@ -42,6 +46,8 @@ export declare const requests: {
42
46
  bell: "bell";
43
47
  desktop: "desktop";
44
48
  }>>;
49
+ preview: z.ZodOptional<z.ZodBoolean>;
50
+ terminal: z.ZodOptional<z.ZodBoolean>;
45
51
  }, z.core.$strip>;
46
52
  result: z.ZodObject<{
47
53
  sessions: z.ZodArray<z.ZodObject<{
@@ -65,6 +71,7 @@ export declare const requests: {
65
71
  description: z.ZodString;
66
72
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
67
73
  argumentHint: z.ZodOptional<z.ZodString>;
74
+ terminalOnly: z.ZodOptional<z.ZodBoolean>;
68
75
  }, z.core.$strip>>;
69
76
  app: z.ZodObject<{
70
77
  agents: z.ZodArray<z.ZodObject<{
@@ -73,6 +80,7 @@ export declare const requests: {
73
80
  auto: "auto";
74
81
  debug: "debug";
75
82
  edits: "edits";
83
+ full: "full";
76
84
  manual: "manual";
77
85
  plan: "plan";
78
86
  }>>;
@@ -139,6 +147,7 @@ export declare const requests: {
139
147
  activated: z.ZodOptional<z.ZodBoolean>;
140
148
  }, z.core.$strip>>>;
141
149
  signals: z.ZodOptional<z.ZodBoolean>;
150
+ notifications: z.ZodOptional<z.ZodBoolean>;
142
151
  claudeSetupOffered: z.ZodOptional<z.ZodBoolean>;
143
152
  announcements: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
153
  id: z.ZodNumber;
@@ -378,6 +387,7 @@ export declare const requests: {
378
387
  auto: "auto";
379
388
  debug: "debug";
380
389
  edits: "edits";
390
+ full: "full";
381
391
  manual: "manual";
382
392
  plan: "plan";
383
393
  }>;
@@ -431,6 +441,7 @@ export declare const requests: {
431
441
  auto: "auto";
432
442
  debug: "debug";
433
443
  edits: "edits";
444
+ full: "full";
434
445
  manual: "manual";
435
446
  plan: "plan";
436
447
  }>>;
@@ -461,6 +472,7 @@ export declare const requests: {
461
472
  size: z.ZodNumber;
462
473
  reading: z.ZodOptional<z.ZodString>;
463
474
  }, z.core.$strip>>>;
475
+ folder: z.ZodOptional<z.ZodString>;
464
476
  wantsWorktree: z.ZodBoolean;
465
477
  working: z.ZodBoolean;
466
478
  ratings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
@@ -591,6 +603,7 @@ export declare const requests: {
591
603
  auto: "auto";
592
604
  debug: "debug";
593
605
  edits: "edits";
606
+ full: "full";
594
607
  manual: "manual";
595
608
  plan: "plan";
596
609
  }>;
@@ -709,6 +722,7 @@ export declare const requests: {
709
722
  auto: "auto";
710
723
  debug: "debug";
711
724
  edits: "edits";
725
+ full: "full";
712
726
  manual: "manual";
713
727
  plan: "plan";
714
728
  }>;
@@ -797,6 +811,22 @@ export declare const requests: {
797
811
  }, z.core.$strip>;
798
812
  result: z.ZodNull;
799
813
  };
814
+ /**
815
+ * Takes files of the last `git/changes`, by their absolute paths, back to HEAD, staged or not; one HEAD doesn't have
816
+ * is gone after. What was on disk goes to the Trash first, so `files/restore` puts it back.
817
+ */
818
+ 'git/discard': {
819
+ params: z.ZodObject<{
820
+ session: z.ZodString;
821
+ files: z.ZodArray<z.ZodString>;
822
+ }, z.core.$strip>;
823
+ result: z.ZodObject<{
824
+ trashed: z.ZodArray<z.ZodObject<{
825
+ path: z.ZodString;
826
+ trash: z.ZodString;
827
+ }, z.core.$strip>>;
828
+ }, z.core.$strip>;
829
+ };
800
830
  /** What is staged in the repository whose root is `repo`; the new commit, short. */
801
831
  'git/commit': {
802
832
  params: z.ZodObject<{
@@ -808,6 +838,22 @@ export declare const requests: {
808
838
  commit: z.ZodString;
809
839
  }, z.core.$strip>;
810
840
  };
841
+ /** Brings the upstream of `repo`'s branch in, only when it fast-forwards; git's own words when it doesn't. */
842
+ 'git/pull': {
843
+ params: z.ZodObject<{
844
+ session: z.ZodString;
845
+ repo: z.ZodString;
846
+ }, z.core.$strip>;
847
+ result: z.ZodNull;
848
+ };
849
+ /** Sends `repo`'s branch to its upstream, setting one on `origin` for a branch that has none. */
850
+ 'git/push': {
851
+ params: z.ZodObject<{
852
+ session: z.ZodString;
853
+ repo: z.ZodString;
854
+ }, z.core.$strip>;
855
+ result: z.ZodNull;
856
+ };
811
857
  /** A file from the session's last `git/changes`, by its absolute path. */
812
858
  'git/diff': {
813
859
  params: z.ZodObject<{
@@ -816,6 +862,62 @@ export declare const requests: {
816
862
  }, z.core.$strip>;
817
863
  result: z.ZodString;
818
864
  };
865
+ /** The same file as `git/diff` compares it against, whole: empty for a file that is new. */
866
+ 'git/before': {
867
+ params: z.ZodObject<{
868
+ session: z.ZodString;
869
+ file: z.ZodString;
870
+ }, z.core.$strip>;
871
+ result: z.ZodString;
872
+ };
873
+ /**
874
+ * Who last changed each line of a file in the session's folder, by its path there; with `text`, of the text as the
875
+ * client holds it, its unsaved lines not committed. `null` for a file git doesn't know.
876
+ */
877
+ 'git/blame': {
878
+ params: z.ZodObject<{
879
+ session: z.ZodString;
880
+ path: z.ZodString;
881
+ text: z.ZodOptional<z.ZodString>;
882
+ }, z.core.$strip>;
883
+ result: z.ZodNullable<z.ZodObject<{
884
+ repo: z.ZodString;
885
+ you: z.ZodOptional<z.ZodString>;
886
+ ranges: z.ZodArray<z.ZodObject<{
887
+ start: z.ZodNumber;
888
+ lines: z.ZodNumber;
889
+ commit: z.ZodOptional<z.ZodString>;
890
+ }, z.core.$strip>>;
891
+ commits: z.ZodRecord<z.ZodString, z.ZodObject<{
892
+ sha: z.ZodString;
893
+ author: z.ZodString;
894
+ email: z.ZodString;
895
+ time: z.ZodNumber;
896
+ summary: z.ZodString;
897
+ }, z.core.$strip>>;
898
+ }, z.core.$strip>>;
899
+ };
900
+ /** A commit of `repo`, the root a blame names, with each file it changed. */
901
+ 'git/show': {
902
+ params: z.ZodObject<{
903
+ session: z.ZodString;
904
+ repo: z.ZodString;
905
+ commit: z.ZodString;
906
+ }, z.core.$strip>;
907
+ result: z.ZodObject<{
908
+ sha: z.ZodString;
909
+ author: z.ZodString;
910
+ email: z.ZodString;
911
+ time: z.ZodNumber;
912
+ summary: z.ZodString;
913
+ body: z.ZodString;
914
+ files: z.ZodArray<z.ZodObject<{
915
+ path: z.ZodString;
916
+ patch: z.ZodString;
917
+ binary: z.ZodBoolean;
918
+ }, z.core.$strip>>;
919
+ }, z.core.$strip>;
920
+ };
819
921
  /** What the project map read; `reading` while it is read the first time. With `session`, the folder that session works in. */
820
922
  'map/overview': {
821
923
  params: z.ZodObject<{
@@ -920,6 +1022,532 @@ export declare const requests: {
920
1022
  modified: z.ZodNumber;
921
1023
  }, z.core.$strip>;
922
1024
  };
1025
+ /** Text in the folder's files that git doesn't ignore; a regular expression that isn't one is refused as invalid params. */
1026
+ 'files/search': {
1027
+ params: z.ZodObject<{
1028
+ query: z.ZodString;
1029
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
1030
+ wholeWord: z.ZodOptional<z.ZodBoolean>;
1031
+ regex: z.ZodOptional<z.ZodBoolean>;
1032
+ include: z.ZodOptional<z.ZodString>;
1033
+ exclude: z.ZodOptional<z.ZodString>;
1034
+ session: z.ZodString;
1035
+ }, z.core.$strip>;
1036
+ result: z.ZodObject<{
1037
+ files: z.ZodArray<z.ZodObject<{
1038
+ path: z.ZodString;
1039
+ matches: z.ZodArray<z.ZodObject<{
1040
+ line: z.ZodNumber;
1041
+ text: z.ZodString;
1042
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1043
+ }, z.core.$strip>>;
1044
+ }, z.core.$strip>>;
1045
+ truncated: z.ZodBoolean;
1046
+ }, z.core.$strip>;
1047
+ };
1048
+ /** Replaces what `files/search` finds, in every file it finds it in or in `paths` of them, and writes them. */
1049
+ 'files/replace': {
1050
+ params: z.ZodObject<{
1051
+ query: z.ZodString;
1052
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
1053
+ wholeWord: z.ZodOptional<z.ZodBoolean>;
1054
+ regex: z.ZodOptional<z.ZodBoolean>;
1055
+ include: z.ZodOptional<z.ZodString>;
1056
+ exclude: z.ZodOptional<z.ZodString>;
1057
+ session: z.ZodString;
1058
+ replacement: z.ZodString;
1059
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1060
+ }, z.core.$strip>;
1061
+ result: z.ZodObject<{
1062
+ files: z.ZodNumber;
1063
+ replacements: z.ZodNumber;
1064
+ }, z.core.$strip>;
1065
+ };
1066
+ /** The files of the session's folder this client has open, which `files/changed` tells of from now on; the ones before are let go. */
1067
+ 'files/watch': {
1068
+ params: z.ZodObject<{
1069
+ session: z.ZodString;
1070
+ paths: z.ZodArray<z.ZodString>;
1071
+ }, z.core.$strip>;
1072
+ result: z.ZodNull;
1073
+ };
1074
+ /** A file, empty or with `content`, or with `folder` a folder; the folders it is in are made as needed. */
1075
+ 'files/create': {
1076
+ params: z.ZodObject<{
1077
+ session: z.ZodString;
1078
+ path: z.ZodString;
1079
+ folder: z.ZodOptional<z.ZodBoolean>;
1080
+ content: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1081
+ text: z.ZodString;
1082
+ }, z.core.$strip>, z.ZodObject<{
1083
+ base64: z.ZodString;
1084
+ }, z.core.$strip>]>>;
1085
+ replace: z.ZodOptional<z.ZodBoolean>;
1086
+ }, z.core.$strip>;
1087
+ result: z.ZodObject<{
1088
+ path: z.ZodString;
1089
+ replaced: z.ZodArray<z.ZodObject<{
1090
+ path: z.ZodString;
1091
+ trash: z.ZodString;
1092
+ }, z.core.$strip>>;
1093
+ }, z.core.$strip>;
1094
+ };
1095
+ /** Another name for a file or folder, where it is: `name` alone, not a path. */
1096
+ 'files/rename': {
1097
+ params: z.ZodObject<{
1098
+ session: z.ZodString;
1099
+ path: z.ZodString;
1100
+ name: z.ZodString;
1101
+ replace: z.ZodOptional<z.ZodBoolean>;
1102
+ }, z.core.$strip>;
1103
+ result: z.ZodObject<{
1104
+ moved: z.ZodArray<z.ZodObject<{
1105
+ from: z.ZodString;
1106
+ to: z.ZodString;
1107
+ }, z.core.$strip>>;
1108
+ replaced: z.ZodArray<z.ZodObject<{
1109
+ path: z.ZodString;
1110
+ trash: z.ZodString;
1111
+ }, z.core.$strip>>;
1112
+ }, z.core.$strip>;
1113
+ };
1114
+ /**
1115
+ * Files and folders into a folder of the session's (`''` for the folder itself), each keeping its name; with
1116
+ * `keepBoth`, one whose name is taken there takes the next free one, as the Finder's Keep Both names it, `box 2.tsx`.
1117
+ */
1118
+ 'files/move': {
1119
+ params: z.ZodObject<{
1120
+ session: z.ZodString;
1121
+ paths: z.ZodArray<z.ZodString>;
1122
+ into: z.ZodString;
1123
+ replace: z.ZodOptional<z.ZodBoolean>;
1124
+ keepBoth: z.ZodOptional<z.ZodBoolean>;
1125
+ }, z.core.$strip>;
1126
+ result: z.ZodObject<{
1127
+ moved: z.ZodArray<z.ZodObject<{
1128
+ from: z.ZodString;
1129
+ to: z.ZodString;
1130
+ }, z.core.$strip>>;
1131
+ replaced: z.ZodArray<z.ZodObject<{
1132
+ path: z.ZodString;
1133
+ trash: z.ZodString;
1134
+ }, z.core.$strip>>;
1135
+ }, z.core.$strip>;
1136
+ };
1137
+ /**
1138
+ * The same, copied: from the folder by their paths there, or from anywhere by their whole paths, as files dropped from
1139
+ * the Finder. Copied into the folder it is in, a copy is named as the Finder names one, `box copy.tsx`.
1140
+ */
1141
+ 'files/copy': {
1142
+ params: z.ZodObject<{
1143
+ session: z.ZodString;
1144
+ paths: z.ZodArray<z.ZodString>;
1145
+ into: z.ZodString;
1146
+ replace: z.ZodOptional<z.ZodBoolean>;
1147
+ keepBoth: z.ZodOptional<z.ZodBoolean>;
1148
+ }, z.core.$strip>;
1149
+ result: z.ZodObject<{
1150
+ copied: z.ZodArray<z.ZodObject<{
1151
+ from: z.ZodString;
1152
+ to: z.ZodString;
1153
+ }, z.core.$strip>>;
1154
+ replaced: z.ZodArray<z.ZodObject<{
1155
+ path: z.ZodString;
1156
+ trash: z.ZodString;
1157
+ }, z.core.$strip>>;
1158
+ }, z.core.$strip>;
1159
+ };
1160
+ /** Files and folders to the Trash, never deleted for good; refused with `unsupported` where there is no Trash Jinion can reach. */
1161
+ 'files/delete': {
1162
+ params: z.ZodObject<{
1163
+ session: z.ZodString;
1164
+ paths: z.ZodArray<z.ZodString>;
1165
+ }, z.core.$strip>;
1166
+ result: z.ZodObject<{
1167
+ trashed: z.ZodArray<z.ZodObject<{
1168
+ path: z.ZodString;
1169
+ trash: z.ZodString;
1170
+ }, z.core.$strip>>;
1171
+ }, z.core.$strip>;
1172
+ };
1173
+ /** What `files/delete` or a replace sent to the Trash, put back at its path, while this Jinion runs. */
1174
+ 'files/restore': {
1175
+ params: z.ZodObject<{
1176
+ session: z.ZodString;
1177
+ trashed: z.ZodArray<z.ZodObject<{
1178
+ path: z.ZodString;
1179
+ trash: z.ZodString;
1180
+ }, z.core.$strip>>;
1181
+ replace: z.ZodOptional<z.ZodBoolean>;
1182
+ }, z.core.$strip>;
1183
+ result: z.ZodObject<{
1184
+ restored: z.ZodArray<z.ZodString>;
1185
+ replaced: z.ZodArray<z.ZodObject<{
1186
+ path: z.ZodString;
1187
+ trash: z.ZodString;
1188
+ }, z.core.$strip>>;
1189
+ }, z.core.$strip>;
1190
+ };
1191
+ 'lsp/open': {
1192
+ params: z.ZodObject<{
1193
+ session: z.ZodString;
1194
+ path: z.ZodString;
1195
+ text: z.ZodString;
1196
+ }, z.core.$strip>;
1197
+ result: z.ZodNull;
1198
+ };
1199
+ /** The whole text as it is now. */
1200
+ 'lsp/change': {
1201
+ params: z.ZodObject<{
1202
+ session: z.ZodString;
1203
+ path: z.ZodString;
1204
+ text: z.ZodString;
1205
+ }, z.core.$strip>;
1206
+ result: z.ZodNull;
1207
+ };
1208
+ 'lsp/close': {
1209
+ params: z.ZodObject<{
1210
+ session: z.ZodString;
1211
+ path: z.ZodString;
1212
+ }, z.core.$strip>;
1213
+ result: z.ZodNull;
1214
+ };
1215
+ 'lsp/hover': {
1216
+ params: z.ZodObject<{
1217
+ session: z.ZodString;
1218
+ path: z.ZodString;
1219
+ position: z.ZodObject<{
1220
+ line: z.ZodNumber;
1221
+ character: z.ZodNumber;
1222
+ }, z.core.$strip>;
1223
+ }, z.core.$strip>;
1224
+ result: z.ZodNullable<z.ZodObject<{
1225
+ contents: z.ZodString;
1226
+ range: z.ZodOptional<z.ZodObject<{
1227
+ start: z.ZodObject<{
1228
+ line: z.ZodNumber;
1229
+ character: z.ZodNumber;
1230
+ }, z.core.$strip>;
1231
+ end: z.ZodObject<{
1232
+ line: z.ZodNumber;
1233
+ character: z.ZodNumber;
1234
+ }, z.core.$strip>;
1235
+ }, z.core.$strip>>;
1236
+ }, z.core.$strip>>;
1237
+ };
1238
+ 'lsp/definition': {
1239
+ params: z.ZodObject<{
1240
+ session: z.ZodString;
1241
+ path: z.ZodString;
1242
+ position: z.ZodObject<{
1243
+ line: z.ZodNumber;
1244
+ character: z.ZodNumber;
1245
+ }, z.core.$strip>;
1246
+ }, z.core.$strip>;
1247
+ result: z.ZodArray<z.ZodObject<{
1248
+ path: z.ZodString;
1249
+ range: z.ZodObject<{
1250
+ start: z.ZodObject<{
1251
+ line: z.ZodNumber;
1252
+ character: z.ZodNumber;
1253
+ }, z.core.$strip>;
1254
+ end: z.ZodObject<{
1255
+ line: z.ZodNumber;
1256
+ character: z.ZodNumber;
1257
+ }, z.core.$strip>;
1258
+ }, z.core.$strip>;
1259
+ }, z.core.$strip>>;
1260
+ };
1261
+ 'lsp/references': {
1262
+ params: z.ZodObject<{
1263
+ session: z.ZodString;
1264
+ path: z.ZodString;
1265
+ position: z.ZodObject<{
1266
+ line: z.ZodNumber;
1267
+ character: z.ZodNumber;
1268
+ }, z.core.$strip>;
1269
+ }, z.core.$strip>;
1270
+ result: z.ZodArray<z.ZodObject<{
1271
+ path: z.ZodString;
1272
+ range: z.ZodObject<{
1273
+ start: z.ZodObject<{
1274
+ line: z.ZodNumber;
1275
+ character: z.ZodNumber;
1276
+ }, z.core.$strip>;
1277
+ end: z.ZodObject<{
1278
+ line: z.ZodNumber;
1279
+ character: z.ZodNumber;
1280
+ }, z.core.$strip>;
1281
+ }, z.core.$strip>;
1282
+ }, z.core.$strip>>;
1283
+ };
1284
+ /** `trigger` is the character typed that asked for them, such as `.`; left out when the user asked. */
1285
+ 'lsp/completion': {
1286
+ params: z.ZodObject<{
1287
+ session: z.ZodString;
1288
+ path: z.ZodString;
1289
+ position: z.ZodObject<{
1290
+ line: z.ZodNumber;
1291
+ character: z.ZodNumber;
1292
+ }, z.core.$strip>;
1293
+ trigger: z.ZodOptional<z.ZodString>;
1294
+ }, z.core.$strip>;
1295
+ result: z.ZodObject<{
1296
+ incomplete: z.ZodBoolean;
1297
+ items: z.ZodArray<z.ZodObject<{
1298
+ label: z.ZodString;
1299
+ kind: z.ZodOptional<z.ZodNumber>;
1300
+ detail: z.ZodOptional<z.ZodString>;
1301
+ documentation: z.ZodOptional<z.ZodString>;
1302
+ insertText: z.ZodString;
1303
+ snippet: z.ZodOptional<z.ZodBoolean>;
1304
+ range: z.ZodOptional<z.ZodObject<{
1305
+ start: z.ZodObject<{
1306
+ line: z.ZodNumber;
1307
+ character: z.ZodNumber;
1308
+ }, z.core.$strip>;
1309
+ end: z.ZodObject<{
1310
+ line: z.ZodNumber;
1311
+ character: z.ZodNumber;
1312
+ }, z.core.$strip>;
1313
+ }, z.core.$strip>>;
1314
+ sortText: z.ZodOptional<z.ZodString>;
1315
+ filterText: z.ZodOptional<z.ZodString>;
1316
+ preselect: z.ZodOptional<z.ZodBoolean>;
1317
+ commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
1318
+ additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1319
+ range: z.ZodObject<{
1320
+ start: z.ZodObject<{
1321
+ line: z.ZodNumber;
1322
+ character: z.ZodNumber;
1323
+ }, z.core.$strip>;
1324
+ end: z.ZodObject<{
1325
+ line: z.ZodNumber;
1326
+ character: z.ZodNumber;
1327
+ }, z.core.$strip>;
1328
+ }, z.core.$strip>;
1329
+ text: z.ZodString;
1330
+ }, z.core.$strip>>>;
1331
+ data: z.ZodOptional<z.ZodUnknown>;
1332
+ }, z.core.$strip>>;
1333
+ }, z.core.$strip>;
1334
+ };
1335
+ /** An item of `lsp/completion` with what was left out of the list, such as its documentation. */
1336
+ 'lsp/completion-detail': {
1337
+ params: z.ZodObject<{
1338
+ session: z.ZodString;
1339
+ path: z.ZodString;
1340
+ item: z.ZodObject<{
1341
+ label: z.ZodString;
1342
+ kind: z.ZodOptional<z.ZodNumber>;
1343
+ detail: z.ZodOptional<z.ZodString>;
1344
+ documentation: z.ZodOptional<z.ZodString>;
1345
+ insertText: z.ZodString;
1346
+ snippet: z.ZodOptional<z.ZodBoolean>;
1347
+ range: z.ZodOptional<z.ZodObject<{
1348
+ start: z.ZodObject<{
1349
+ line: z.ZodNumber;
1350
+ character: z.ZodNumber;
1351
+ }, z.core.$strip>;
1352
+ end: z.ZodObject<{
1353
+ line: z.ZodNumber;
1354
+ character: z.ZodNumber;
1355
+ }, z.core.$strip>;
1356
+ }, z.core.$strip>>;
1357
+ sortText: z.ZodOptional<z.ZodString>;
1358
+ filterText: z.ZodOptional<z.ZodString>;
1359
+ preselect: z.ZodOptional<z.ZodBoolean>;
1360
+ commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
1361
+ additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1362
+ range: z.ZodObject<{
1363
+ start: z.ZodObject<{
1364
+ line: z.ZodNumber;
1365
+ character: z.ZodNumber;
1366
+ }, z.core.$strip>;
1367
+ end: z.ZodObject<{
1368
+ line: z.ZodNumber;
1369
+ character: z.ZodNumber;
1370
+ }, z.core.$strip>;
1371
+ }, z.core.$strip>;
1372
+ text: z.ZodString;
1373
+ }, z.core.$strip>>>;
1374
+ data: z.ZodOptional<z.ZodUnknown>;
1375
+ }, z.core.$strip>;
1376
+ }, z.core.$strip>;
1377
+ result: z.ZodObject<{
1378
+ label: z.ZodString;
1379
+ kind: z.ZodOptional<z.ZodNumber>;
1380
+ detail: z.ZodOptional<z.ZodString>;
1381
+ documentation: z.ZodOptional<z.ZodString>;
1382
+ insertText: z.ZodString;
1383
+ snippet: z.ZodOptional<z.ZodBoolean>;
1384
+ range: z.ZodOptional<z.ZodObject<{
1385
+ start: z.ZodObject<{
1386
+ line: z.ZodNumber;
1387
+ character: z.ZodNumber;
1388
+ }, z.core.$strip>;
1389
+ end: z.ZodObject<{
1390
+ line: z.ZodNumber;
1391
+ character: z.ZodNumber;
1392
+ }, z.core.$strip>;
1393
+ }, z.core.$strip>>;
1394
+ sortText: z.ZodOptional<z.ZodString>;
1395
+ filterText: z.ZodOptional<z.ZodString>;
1396
+ preselect: z.ZodOptional<z.ZodBoolean>;
1397
+ commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
1398
+ additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1399
+ range: z.ZodObject<{
1400
+ start: z.ZodObject<{
1401
+ line: z.ZodNumber;
1402
+ character: z.ZodNumber;
1403
+ }, z.core.$strip>;
1404
+ end: z.ZodObject<{
1405
+ line: z.ZodNumber;
1406
+ character: z.ZodNumber;
1407
+ }, z.core.$strip>;
1408
+ }, z.core.$strip>;
1409
+ text: z.ZodString;
1410
+ }, z.core.$strip>>>;
1411
+ data: z.ZodOptional<z.ZodUnknown>;
1412
+ }, z.core.$strip>;
1413
+ };
1414
+ 'lsp/signature-help': {
1415
+ params: z.ZodObject<{
1416
+ session: z.ZodString;
1417
+ path: z.ZodString;
1418
+ position: z.ZodObject<{
1419
+ line: z.ZodNumber;
1420
+ character: z.ZodNumber;
1421
+ }, z.core.$strip>;
1422
+ }, z.core.$strip>;
1423
+ result: z.ZodNullable<z.ZodObject<{
1424
+ signatures: z.ZodArray<z.ZodObject<{
1425
+ label: z.ZodString;
1426
+ documentation: z.ZodOptional<z.ZodString>;
1427
+ parameters: z.ZodArray<z.ZodObject<{
1428
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
1429
+ documentation: z.ZodOptional<z.ZodString>;
1430
+ }, z.core.$strip>>;
1431
+ }, z.core.$strip>>;
1432
+ activeSignature: z.ZodNumber;
1433
+ activeParameter: z.ZodNumber;
1434
+ }, z.core.$strip>>;
1435
+ };
1436
+ /**
1437
+ * Renames what is at the position wherever it is used. The files nobody has open are changed on disk; the edits to
1438
+ * those open come back, for the client to make as unsaved changes.
1439
+ */
1440
+ 'lsp/rename': {
1441
+ params: z.ZodObject<{
1442
+ session: z.ZodString;
1443
+ path: z.ZodString;
1444
+ position: z.ZodObject<{
1445
+ line: z.ZodNumber;
1446
+ character: z.ZodNumber;
1447
+ }, z.core.$strip>;
1448
+ name: z.ZodString;
1449
+ }, z.core.$strip>;
1450
+ result: z.ZodArray<z.ZodObject<{
1451
+ path: z.ZodString;
1452
+ edits: z.ZodArray<z.ZodObject<{
1453
+ range: z.ZodObject<{
1454
+ start: z.ZodObject<{
1455
+ line: z.ZodNumber;
1456
+ character: z.ZodNumber;
1457
+ }, z.core.$strip>;
1458
+ end: z.ZodObject<{
1459
+ line: z.ZodNumber;
1460
+ character: z.ZodNumber;
1461
+ }, z.core.$strip>;
1462
+ }, z.core.$strip>;
1463
+ text: z.ZodString;
1464
+ }, z.core.$strip>>;
1465
+ }, z.core.$strip>>;
1466
+ };
1467
+ /** The edits that format the file as it is open, for the client to make. */
1468
+ 'lsp/format': {
1469
+ params: z.ZodObject<{
1470
+ session: z.ZodString;
1471
+ path: z.ZodString;
1472
+ tabSize: z.ZodNumber;
1473
+ insertSpaces: z.ZodBoolean;
1474
+ }, z.core.$strip>;
1475
+ result: z.ZodArray<z.ZodObject<{
1476
+ range: z.ZodObject<{
1477
+ start: z.ZodObject<{
1478
+ line: z.ZodNumber;
1479
+ character: z.ZodNumber;
1480
+ }, z.core.$strip>;
1481
+ end: z.ZodObject<{
1482
+ line: z.ZodNumber;
1483
+ character: z.ZodNumber;
1484
+ }, z.core.$strip>;
1485
+ }, z.core.$strip>;
1486
+ text: z.ZodString;
1487
+ }, z.core.$strip>>;
1488
+ };
1489
+ /** Every error and warning known in the session's folder, by file; `lsp/diagnostics` tells what changes after. */
1490
+ 'lsp/problems': {
1491
+ params: z.ZodObject<{
1492
+ session: z.ZodString;
1493
+ }, z.core.$strip>;
1494
+ result: z.ZodArray<z.ZodObject<{
1495
+ path: z.ZodString;
1496
+ diagnostics: z.ZodArray<z.ZodObject<{
1497
+ range: z.ZodObject<{
1498
+ start: z.ZodObject<{
1499
+ line: z.ZodNumber;
1500
+ character: z.ZodNumber;
1501
+ }, z.core.$strip>;
1502
+ end: z.ZodObject<{
1503
+ line: z.ZodNumber;
1504
+ character: z.ZodNumber;
1505
+ }, z.core.$strip>;
1506
+ }, z.core.$strip>;
1507
+ severity: z.ZodEnum<{
1508
+ error: "error";
1509
+ hint: "hint";
1510
+ info: "info";
1511
+ warning: "warning";
1512
+ }>;
1513
+ message: z.ZodString;
1514
+ source: z.ZodOptional<z.ZodString>;
1515
+ code: z.ZodOptional<z.ZodString>;
1516
+ unnecessary: z.ZodOptional<z.ZodBoolean>;
1517
+ deprecated: z.ZodOptional<z.ZodBoolean>;
1518
+ }, z.core.$strip>>;
1519
+ }, z.core.$strip>>;
1520
+ };
1521
+ /** How the server that reads the file stands, as a status bar shows it; null for a file none reads. `lsp/server` tells what changes. */
1522
+ 'lsp/server': {
1523
+ params: z.ZodObject<{
1524
+ session: z.ZodString;
1525
+ path: z.ZodString;
1526
+ }, z.core.$strip>;
1527
+ result: z.ZodNullable<z.ZodObject<{
1528
+ server: z.ZodEnum<{
1529
+ css: "css";
1530
+ html: "html";
1531
+ json: "json";
1532
+ typescript: "typescript";
1533
+ }>;
1534
+ state: z.ZodEnum<{
1535
+ failed: "failed";
1536
+ running: "running";
1537
+ starting: "starting";
1538
+ stopped: "stopped";
1539
+ }>;
1540
+ error: z.ZodOptional<z.ZodString>;
1541
+ }, z.core.$strip>>;
1542
+ };
1543
+ /** Starts the file's server again, as after it failed; it has to be open. */
1544
+ 'lsp/restart': {
1545
+ params: z.ZodObject<{
1546
+ session: z.ZodString;
1547
+ path: z.ZodString;
1548
+ }, z.core.$strip>;
1549
+ result: z.ZodNull;
1550
+ };
923
1551
  /**
924
1552
  * A file to go with the session's messages, kept out of the project where the agent can read it. Answered once it is
925
1553
  * kept; reading it, such as transcribing a recording, goes on after, told in the session's `attachments` field. A
@@ -971,10 +1599,11 @@ export declare const requests: {
971
1599
  urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
972
1600
  }, z.core.$strip>>;
973
1601
  };
974
- /** A shell in the folder `session` works in, its worktree or the project, or in the project without one. */
1602
+ /** A shell in the folder `session` works in, its worktree or the project, or in the project without one; with `folder`, in that folder of it. */
975
1603
  'terminals/open': {
976
1604
  params: z.ZodObject<{
977
1605
  session: z.ZodOptional<z.ZodString>;
1606
+ folder: z.ZodOptional<z.ZodString>;
978
1607
  cols: z.ZodOptional<z.ZodNumber>;
979
1608
  rows: z.ZodOptional<z.ZodNumber>;
980
1609
  }, z.core.$strip>;
@@ -1048,6 +1677,23 @@ export declare const requests: {
1048
1677
  command: z.ZodString;
1049
1678
  }, z.core.$strip>>;
1050
1679
  };
1680
+ /** The HTML files of the folder `session` works in, or of the project without one, by their path there. */
1681
+ 'preview/pages': {
1682
+ params: z.ZodObject<{
1683
+ session: z.ZodOptional<z.ZodString>;
1684
+ }, z.core.$strip>;
1685
+ result: z.ZodArray<z.ZodString>;
1686
+ };
1687
+ /** The address a preview opens a file of that folder at, served as it is, with no dev server. */
1688
+ 'preview/file': {
1689
+ params: z.ZodObject<{
1690
+ session: z.ZodOptional<z.ZodString>;
1691
+ path: z.ZodString;
1692
+ }, z.core.$strip>;
1693
+ result: z.ZodObject<{
1694
+ url: z.ZodString;
1695
+ }, z.core.$strip>;
1696
+ };
1051
1697
  'accounts/list': {
1052
1698
  params: z.ZodObject<{
1053
1699
  agent: z.ZodOptional<z.ZodString>;
@@ -1075,7 +1721,7 @@ export declare const requests: {
1075
1721
  }, z.core.$strip>;
1076
1722
  result: z.ZodNull;
1077
1723
  };
1078
- /** Answered once signing in ends; meanwhile the link and what to type come as notifications. */
1724
+ /** Answered once signing in ends, with why when it failed; meanwhile the link and what to type come as notifications. */
1079
1725
  'accounts/sign-in': {
1080
1726
  params: z.ZodObject<{
1081
1727
  name: z.ZodString;
@@ -1083,6 +1729,7 @@ export declare const requests: {
1083
1729
  }, z.core.$strip>;
1084
1730
  result: z.ZodObject<{
1085
1731
  signedIn: z.ZodBoolean;
1732
+ problem: z.ZodOptional<z.ZodString>;
1086
1733
  }, z.core.$strip>;
1087
1734
  };
1088
1735
  'accounts/sign-in-answer': {
@@ -1121,6 +1768,7 @@ export declare const requests: {
1121
1768
  elsewhere: "elsewhere";
1122
1769
  jinion: "jinion";
1123
1770
  }>>;
1771
+ signedIn: z.ZodOptional<z.ZodBoolean>;
1124
1772
  removable: z.ZodOptional<z.ZodBoolean>;
1125
1773
  }, z.core.$strip>>;
1126
1774
  };
@@ -1158,6 +1806,13 @@ export declare const requests: {
1158
1806
  }, z.core.$strip>;
1159
1807
  result: z.ZodNull;
1160
1808
  };
1809
+ /** Connects a server that failed again, now; `mcp/servers` says how it went. */
1810
+ 'mcp/reconnect': {
1811
+ params: z.ZodObject<{
1812
+ name: z.ZodString;
1813
+ }, z.core.$strip>;
1814
+ result: z.ZodNull;
1815
+ };
1161
1816
  /** How long the agent's answers run, from the next prompt on, in every session. */
1162
1817
  'preferences/answers': {
1163
1818
  params: z.ZodObject<{
@@ -1176,6 +1831,13 @@ export declare const requests: {
1176
1831
  }, z.core.$strip>;
1177
1832
  result: z.ZodNull;
1178
1833
  };
1834
+ /** Whether the user is notified when the agent waits for them or ends a long turn, from now on, as `/notifications` sets it. */
1835
+ 'preferences/notifications': {
1836
+ params: z.ZodObject<{
1837
+ notifications: z.ZodBoolean;
1838
+ }, z.core.$strip>;
1839
+ result: z.ZodNull;
1840
+ };
1179
1841
  /** Puts an announcement away for good, on every machine of its user. */
1180
1842
  'announcements/dismiss': {
1181
1843
  params: z.ZodObject<{
@@ -1183,13 +1845,14 @@ export declare const requests: {
1183
1845
  }, z.core.$strip>;
1184
1846
  result: z.ZodNull;
1185
1847
  };
1186
- /** Opens the browser and is answered once signing in ends; meanwhile its link comes as `mcp/sign-in-link`. */
1848
+ /** Opens the browser and is answered once signing in ends, with why when it failed; meanwhile its link comes as `mcp/sign-in-link`. */
1187
1849
  'mcp/sign-in': {
1188
1850
  params: z.ZodObject<{
1189
1851
  name: z.ZodString;
1190
1852
  }, z.core.$strip>;
1191
1853
  result: z.ZodObject<{
1192
1854
  signedIn: z.ZodBoolean;
1855
+ problem: z.ZodOptional<z.ZodString>;
1193
1856
  }, z.core.$strip>;
1194
1857
  };
1195
1858
  'mcp/sign-in-cancel': {
@@ -1198,6 +1861,13 @@ export declare const requests: {
1198
1861
  }, z.core.$strip>;
1199
1862
  result: z.ZodNull;
1200
1863
  };
1864
+ /** Drops Jinion's sign-in to a server `mcp/servers` says is `signedIn`; it asks to sign in again from the next turn. */
1865
+ 'mcp/sign-out': {
1866
+ params: z.ZodObject<{
1867
+ name: z.ZodString;
1868
+ }, z.core.$strip>;
1869
+ result: z.ZodNull;
1870
+ };
1201
1871
  /** Emails a code that `jinion/sign-in-email` takes, for 10 minutes. */
1202
1872
  'jinion/send-code': {
1203
1873
  params: z.ZodObject<{
@@ -1726,6 +2396,7 @@ export declare const notificationsToClient: {
1726
2396
  auto: "auto";
1727
2397
  debug: "debug";
1728
2398
  edits: "edits";
2399
+ full: "full";
1729
2400
  manual: "manual";
1730
2401
  plan: "plan";
1731
2402
  }>;
@@ -1799,6 +2470,9 @@ export declare const notificationsToClient: {
1799
2470
  }, z.core.$strip>, z.ZodObject<{
1800
2471
  type: z.ZodLiteral<"turn-start">;
1801
2472
  reason: z.ZodOptional<z.ZodString>;
2473
+ }, z.core.$strip>, z.ZodObject<{
2474
+ type: z.ZodLiteral<"picked">;
2475
+ text: z.ZodString;
1802
2476
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1803
2477
  type: z.ZodLiteral<"compaction">;
1804
2478
  state: z.ZodLiteral<"running">;
@@ -1866,7 +2540,7 @@ export declare const notificationsToClient: {
1866
2540
  model: string;
1867
2541
  effort?: string | undefined;
1868
2542
  };
1869
- mode: "auto" | "debug" | "edits" | "manual" | "plan";
2543
+ mode: "auto" | "debug" | "edits" | "full" | "manual" | "plan";
1870
2544
  tasks: {
1871
2545
  id: string;
1872
2546
  kind: "agent" | "other" | "shell";
@@ -1904,7 +2578,7 @@ export declare const notificationsToClient: {
1904
2578
  };
1905
2579
  } | {
1906
2580
  id: "plan";
1907
- modes: ("auto" | "debug" | "edits" | "manual" | "plan")[];
2581
+ modes: ("auto" | "debug" | "edits" | "full" | "manual" | "plan")[];
1908
2582
  } | undefined;
1909
2583
  queue: {
1910
2584
  text: string;
@@ -1926,6 +2600,7 @@ export declare const notificationsToClient: {
1926
2600
  size: number;
1927
2601
  reading?: string | undefined;
1928
2602
  }[] | undefined;
2603
+ folder?: string | undefined;
1929
2604
  wantsWorktree: boolean;
1930
2605
  working: boolean;
1931
2606
  ratings?: Record<string, "disliked" | "liked"> | undefined;
@@ -1945,7 +2620,7 @@ export declare const notificationsToClient: {
1945
2620
  model: string;
1946
2621
  effort?: string | undefined;
1947
2622
  };
1948
- mode: "auto" | "debug" | "edits" | "manual" | "plan";
2623
+ mode: "auto" | "debug" | "edits" | "full" | "manual" | "plan";
1949
2624
  tasks: {
1950
2625
  id: string;
1951
2626
  kind: "agent" | "other" | "shell";
@@ -1983,7 +2658,7 @@ export declare const notificationsToClient: {
1983
2658
  };
1984
2659
  } | {
1985
2660
  id: "plan";
1986
- modes: ("auto" | "debug" | "edits" | "manual" | "plan")[];
2661
+ modes: ("auto" | "debug" | "edits" | "full" | "manual" | "plan")[];
1987
2662
  } | undefined;
1988
2663
  queue: {
1989
2664
  text: string;
@@ -2005,6 +2680,7 @@ export declare const notificationsToClient: {
2005
2680
  size: number;
2006
2681
  reading?: string | undefined;
2007
2682
  }[] | undefined;
2683
+ folder?: string | undefined;
2008
2684
  wantsWorktree: boolean;
2009
2685
  working: boolean;
2010
2686
  ratings?: Record<string, "disliked" | "liked"> | undefined;
@@ -2014,7 +2690,7 @@ export declare const notificationsToClient: {
2014
2690
  'app/field': z.ZodType<import("./schemas.js").FieldChange<{
2015
2691
  agents: {
2016
2692
  name: string;
2017
- modes: ("auto" | "debug" | "edits" | "manual" | "plan")[];
2693
+ modes: ("auto" | "debug" | "edits" | "full" | "manual" | "plan")[];
2018
2694
  features: {
2019
2695
  accounts: boolean;
2020
2696
  mcp: boolean;
@@ -2067,6 +2743,7 @@ export declare const notificationsToClient: {
2067
2743
  activated?: boolean | undefined;
2068
2744
  } | null | undefined;
2069
2745
  signals?: boolean | undefined;
2746
+ notifications?: boolean | undefined;
2070
2747
  claudeSetupOffered?: boolean | undefined;
2071
2748
  announcements?: {
2072
2749
  id: number;
@@ -2079,7 +2756,7 @@ export declare const notificationsToClient: {
2079
2756
  }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").FieldChange<{
2080
2757
  agents: {
2081
2758
  name: string;
2082
- modes: ("auto" | "debug" | "edits" | "manual" | "plan")[];
2759
+ modes: ("auto" | "debug" | "edits" | "full" | "manual" | "plan")[];
2083
2760
  features: {
2084
2761
  accounts: boolean;
2085
2762
  mcp: boolean;
@@ -2132,6 +2809,7 @@ export declare const notificationsToClient: {
2132
2809
  activated?: boolean | undefined;
2133
2810
  } | null | undefined;
2134
2811
  signals?: boolean | undefined;
2812
+ notifications?: boolean | undefined;
2135
2813
  claudeSetupOffered?: boolean | undefined;
2136
2814
  announcements?: {
2137
2815
  id: number;
@@ -2253,6 +2931,83 @@ export declare const notificationsToClient: {
2253
2931
  seq: z.ZodNumber;
2254
2932
  data: z.ZodString;
2255
2933
  }, z.core.$strip>;
2934
+ /** A file `files/watch` named changed on disk, by the agent, a save or another program. */
2935
+ 'files/changed': z.ZodObject<{
2936
+ session: z.ZodString;
2937
+ path: z.ZodString;
2938
+ modified: z.ZodOptional<z.ZodNumber>;
2939
+ movedTo: z.ZodOptional<z.ZodString>;
2940
+ by: z.ZodOptional<z.ZodEnum<{
2941
+ agent: "agent";
2942
+ other: "other";
2943
+ }>>;
2944
+ }, z.core.$strip>;
2945
+ /** A file's errors and warnings changed: all of them as they are now, none once it has none. */
2946
+ 'lsp/diagnostics': z.ZodObject<{
2947
+ path: z.ZodString;
2948
+ diagnostics: z.ZodArray<z.ZodObject<{
2949
+ range: z.ZodObject<{
2950
+ start: z.ZodObject<{
2951
+ line: z.ZodNumber;
2952
+ character: z.ZodNumber;
2953
+ }, z.core.$strip>;
2954
+ end: z.ZodObject<{
2955
+ line: z.ZodNumber;
2956
+ character: z.ZodNumber;
2957
+ }, z.core.$strip>;
2958
+ }, z.core.$strip>;
2959
+ severity: z.ZodEnum<{
2960
+ error: "error";
2961
+ hint: "hint";
2962
+ info: "info";
2963
+ warning: "warning";
2964
+ }>;
2965
+ message: z.ZodString;
2966
+ source: z.ZodOptional<z.ZodString>;
2967
+ code: z.ZodOptional<z.ZodString>;
2968
+ unnecessary: z.ZodOptional<z.ZodBoolean>;
2969
+ deprecated: z.ZodOptional<z.ZodBoolean>;
2970
+ }, z.core.$strip>>;
2971
+ session: z.ZodString;
2972
+ }, z.core.$strip>;
2973
+ /** A server of the folder of a file the client has open started, ended or couldn't start. */
2974
+ 'lsp/server': z.ZodObject<{
2975
+ server: z.ZodEnum<{
2976
+ css: "css";
2977
+ html: "html";
2978
+ json: "json";
2979
+ typescript: "typescript";
2980
+ }>;
2981
+ state: z.ZodEnum<{
2982
+ failed: "failed";
2983
+ running: "running";
2984
+ starting: "starting";
2985
+ stopped: "stopped";
2986
+ }>;
2987
+ error: z.ZodOptional<z.ZodString>;
2988
+ session: z.ZodString;
2989
+ }, z.core.$strip>;
2990
+ };
2991
+ /** What the server asks a client and waits on, only of a client that said at `initialize` it can. */
2992
+ export declare const requestsToClient: {
2993
+ /** Opens `url` in the Preview beside the thread the user looks at; answered once the page loaded, or with why it didn't. */
2994
+ 'preview/open': {
2995
+ params: z.ZodObject<{
2996
+ url: z.ZodString;
2997
+ }, z.core.$strip>;
2998
+ result: z.ZodObject<{
2999
+ error: z.ZodOptional<z.ZodString>;
3000
+ }, z.core.$strip>;
3001
+ };
3002
+ /** The page the Preview shows, as drawn now; `null` when it shows none. */
3003
+ 'preview/capture': {
3004
+ params: z.ZodObject<{}, z.core.$strip>;
3005
+ result: z.ZodNullable<z.ZodObject<{
3006
+ url: z.ZodString;
3007
+ data: z.ZodString;
3008
+ mediaType: z.ZodLiteral<"image/png">;
3009
+ }, z.core.$strip>>;
3010
+ };
2256
3011
  };
2257
3012
  /** The params of everything a client sends, as the server's peer checks them. */
2258
3013
  export declare const clientSchemas: Record<string, z.ZodType>;
@@ -2270,9 +3025,15 @@ export type ServerContract = {
2270
3025
  };
2271
3026
  notifications: Inferred<typeof notificationsToServer>;
2272
3027
  };
2273
- /** What a client answers: for now only what the server tells it. */
3028
+ type RequestsToClient = typeof requestsToClient;
3029
+ /** What a client answers. */
2274
3030
  export type ClientContract = {
2275
- requests: Record<never, never>;
3031
+ requests: {
3032
+ [M in keyof RequestsToClient]: {
3033
+ params: z.infer<RequestsToClient[M]['params']>;
3034
+ result: z.infer<RequestsToClient[M]['result']>;
3035
+ };
3036
+ };
2276
3037
  notifications: Inferred<typeof notificationsToClient>;
2277
3038
  };
2278
3039
  //# sourceMappingURL=protocol.d.ts.map