@jinion/core 0.3.0 → 0.4.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 (377) hide show
  1. package/dist/agent/claude/backend.d.ts +4 -0
  2. package/dist/agent/claude/backend.d.ts.map +1 -1
  3. package/dist/agent/claude/backend.js.map +1 -1
  4. package/dist/agent/claude/events.js +1 -1
  5. package/dist/agent/claude/events.js.map +1 -1
  6. package/dist/agent/claude/guard.d.ts.map +1 -1
  7. package/dist/agent/claude/guard.js +2 -1
  8. package/dist/agent/claude/guard.js.map +1 -1
  9. package/dist/agent/claude/jinion-tools.d.ts +9 -1
  10. package/dist/agent/claude/jinion-tools.d.ts.map +1 -1
  11. package/dist/agent/claude/jinion-tools.js +14 -2
  12. package/dist/agent/claude/jinion-tools.js.map +1 -1
  13. package/dist/agent/claude/mcp.d.ts.map +1 -1
  14. package/dist/agent/claude/mcp.js +21 -1
  15. package/dist/agent/claude/mcp.js.map +1 -1
  16. package/dist/agent/claude/options.d.ts +9 -1
  17. package/dist/agent/claude/options.d.ts.map +1 -1
  18. package/dist/agent/claude/options.js +5 -3
  19. package/dist/agent/claude/options.js.map +1 -1
  20. package/dist/agent/claude/paths.d.ts +0 -3
  21. package/dist/agent/claude/paths.d.ts.map +1 -1
  22. package/dist/agent/claude/paths.js +1 -7
  23. package/dist/agent/claude/paths.js.map +1 -1
  24. package/dist/agent/claude/permissions.js +1 -1
  25. package/dist/agent/claude/permissions.js.map +1 -1
  26. package/dist/agent/claude/prompt.d.ts +2 -1
  27. package/dist/agent/claude/prompt.d.ts.map +1 -1
  28. package/dist/agent/claude/prompt.js +10 -5
  29. package/dist/agent/claude/prompt.js.map +1 -1
  30. package/dist/agent/claude/review.d.ts +4 -1
  31. package/dist/agent/claude/review.d.ts.map +1 -1
  32. package/dist/agent/claude/review.js +5 -2
  33. package/dist/agent/claude/review.js.map +1 -1
  34. package/dist/agent/claude/session.d.ts +7 -0
  35. package/dist/agent/claude/session.d.ts.map +1 -1
  36. package/dist/agent/claude/session.js +6 -1
  37. package/dist/agent/claude/session.js.map +1 -1
  38. package/dist/agent/claude/tool-calls.d.ts.map +1 -1
  39. package/dist/agent/claude/tool-calls.js +11 -2
  40. package/dist/agent/claude/tool-calls.js.map +1 -1
  41. package/dist/agent/codex/backend.d.ts +4 -0
  42. package/dist/agent/codex/backend.d.ts.map +1 -1
  43. package/dist/agent/codex/backend.js.map +1 -1
  44. package/dist/agent/codex/events.d.ts.map +1 -1
  45. package/dist/agent/codex/events.js +15 -1
  46. package/dist/agent/codex/events.js.map +1 -1
  47. package/dist/agent/codex/jinion-tools.d.ts +38 -4
  48. package/dist/agent/codex/jinion-tools.d.ts.map +1 -1
  49. package/dist/agent/codex/jinion-tools.js +57 -10
  50. package/dist/agent/codex/jinion-tools.js.map +1 -1
  51. package/dist/agent/codex/mcp.d.ts.map +1 -1
  52. package/dist/agent/codex/mcp.js +4 -0
  53. package/dist/agent/codex/mcp.js.map +1 -1
  54. package/dist/agent/codex/rewind.js +1 -47
  55. package/dist/agent/codex/rewind.js.map +1 -1
  56. package/dist/agent/codex/session.d.ts +9 -2
  57. package/dist/agent/codex/session.d.ts.map +1 -1
  58. package/dist/agent/codex/session.js +21 -7
  59. package/dist/agent/codex/session.js.map +1 -1
  60. package/dist/agent/demo/mcp.d.ts +2 -0
  61. package/dist/agent/demo/mcp.d.ts.map +1 -1
  62. package/dist/agent/demo/mcp.js +14 -0
  63. package/dist/agent/demo/mcp.js.map +1 -1
  64. package/dist/agent/demo/scenarios/pricing-card.d.ts +3 -0
  65. package/dist/agent/demo/scenarios/pricing-card.d.ts.map +1 -0
  66. package/dist/agent/demo/scenarios/pricing-card.js +43 -0
  67. package/dist/agent/demo/scenarios/pricing-card.js.map +1 -0
  68. package/dist/agent/demo/script.d.ts +6 -0
  69. package/dist/agent/demo/script.d.ts.map +1 -1
  70. package/dist/agent/demo/tasks.d.ts +3 -0
  71. package/dist/agent/demo/tasks.d.ts.map +1 -1
  72. package/dist/agent/events.d.ts +3 -0
  73. package/dist/agent/events.d.ts.map +1 -1
  74. package/dist/agent/events.js +2 -0
  75. package/dist/agent/events.js.map +1 -1
  76. package/dist/agent/mcp.d.ts +5 -0
  77. package/dist/agent/mcp.d.ts.map +1 -1
  78. package/dist/agent/mcp.js +2 -0
  79. package/dist/agent/mcp.js.map +1 -1
  80. package/dist/agent/patches.d.ts +5 -0
  81. package/dist/agent/patches.d.ts.map +1 -1
  82. package/dist/agent/patches.js +49 -0
  83. package/dist/agent/patches.js.map +1 -1
  84. package/dist/agent/review-tools.d.ts +15 -0
  85. package/dist/agent/review-tools.d.ts.map +1 -0
  86. package/dist/agent/review-tools.js +13 -0
  87. package/dist/agent/review-tools.js.map +1 -0
  88. package/dist/agent/review.d.ts +18 -6
  89. package/dist/agent/review.d.ts.map +1 -1
  90. package/dist/agent/review.js +52 -17
  91. package/dist/agent/review.js.map +1 -1
  92. package/dist/api/client.d.ts +15 -1
  93. package/dist/api/client.d.ts.map +1 -1
  94. package/dist/api/client.js +14 -3
  95. package/dist/api/client.js.map +1 -1
  96. package/dist/api/connection.d.ts +5 -0
  97. package/dist/api/connection.d.ts.map +1 -1
  98. package/dist/api/connection.js +6 -0
  99. package/dist/api/connection.js.map +1 -1
  100. package/dist/api/fields.d.ts +3 -1
  101. package/dist/api/fields.d.ts.map +1 -1
  102. package/dist/api/fields.js +3 -2
  103. package/dist/api/fields.js.map +1 -1
  104. package/dist/api/json-schema.d.ts +592 -89
  105. package/dist/api/json-schema.d.ts.map +1 -1
  106. package/dist/api/json-schema.js +2 -1
  107. package/dist/api/json-schema.js.map +1 -1
  108. package/dist/api/methods/accounts.d.ts.map +1 -1
  109. package/dist/api/methods/accounts.js +1 -2
  110. package/dist/api/methods/accounts.js.map +1 -1
  111. package/dist/api/methods/app.d.ts.map +1 -1
  112. package/dist/api/methods/app.js +9 -5
  113. package/dist/api/methods/app.js.map +1 -1
  114. package/dist/api/methods/files.d.ts +3 -1
  115. package/dist/api/methods/files.d.ts.map +1 -1
  116. package/dist/api/methods/files.js +75 -2
  117. package/dist/api/methods/files.js.map +1 -1
  118. package/dist/api/methods/git.d.ts.map +1 -1
  119. package/dist/api/methods/git.js +54 -6
  120. package/dist/api/methods/git.js.map +1 -1
  121. package/dist/api/methods/lsp.d.ts +7 -0
  122. package/dist/api/methods/lsp.d.ts.map +1 -0
  123. package/dist/api/methods/lsp.js +68 -0
  124. package/dist/api/methods/lsp.js.map +1 -0
  125. package/dist/api/methods/preview.d.ts +4 -1
  126. package/dist/api/methods/preview.d.ts.map +1 -1
  127. package/dist/api/methods/preview.js +19 -3
  128. package/dist/api/methods/preview.js.map +1 -1
  129. package/dist/api/methods/terminals.d.ts.map +1 -1
  130. package/dist/api/methods/terminals.js +7 -1
  131. package/dist/api/methods/terminals.js.map +1 -1
  132. package/dist/api/protocol.d.ts +762 -7
  133. package/dist/api/protocol.d.ts.map +1 -1
  134. package/dist/api/protocol.js +126 -8
  135. package/dist/api/protocol.js.map +1 -1
  136. package/dist/api/schemas.d.ts +7 -0
  137. package/dist/api/schemas.d.ts.map +1 -1
  138. package/dist/api/schemas.js +4 -0
  139. package/dist/api/schemas.js.map +1 -1
  140. package/dist/api/screen.d.ts +2 -0
  141. package/dist/api/screen.d.ts.map +1 -1
  142. package/dist/api/screen.js +3 -0
  143. package/dist/api/screen.js.map +1 -1
  144. package/dist/api/server.d.ts +2 -0
  145. package/dist/api/server.d.ts.map +1 -1
  146. package/dist/api/server.js +13 -0
  147. package/dist/api/server.js.map +1 -1
  148. package/dist/commands/builtin.d.ts.map +1 -1
  149. package/dist/commands/builtin.js +2 -0
  150. package/dist/commands/builtin.js.map +1 -1
  151. package/dist/commands/conversation.d.ts.map +1 -1
  152. package/dist/commands/conversation.js +2 -0
  153. package/dist/commands/conversation.js.map +1 -1
  154. package/dist/commands/feedback.d.ts.map +1 -1
  155. package/dist/commands/feedback.js +1 -0
  156. package/dist/commands/feedback.js.map +1 -1
  157. package/dist/commands/notifications.d.ts.map +1 -1
  158. package/dist/commands/notifications.js +5 -3
  159. package/dist/commands/notifications.js.map +1 -1
  160. package/dist/commands/registry.d.ts +3 -0
  161. package/dist/commands/registry.d.ts.map +1 -1
  162. package/dist/commands/registry.js +14 -0
  163. package/dist/commands/registry.js.map +1 -1
  164. package/dist/commands/skill.d.ts +5 -0
  165. package/dist/commands/skill.d.ts.map +1 -0
  166. package/dist/commands/skill.js +30 -0
  167. package/dist/commands/skill.js.map +1 -0
  168. package/dist/commands/views.d.ts.map +1 -1
  169. package/dist/commands/views.js +5 -1
  170. package/dist/commands/views.js.map +1 -1
  171. package/dist/controllers/accounts.d.ts +5 -2
  172. package/dist/controllers/accounts.d.ts.map +1 -1
  173. package/dist/controllers/accounts.js +11 -8
  174. package/dist/controllers/accounts.js.map +1 -1
  175. package/dist/controllers/context.d.ts +2 -0
  176. package/dist/controllers/context.d.ts.map +1 -1
  177. package/dist/controllers/context.js.map +1 -1
  178. package/dist/controllers/feedback.d.ts +1 -1
  179. package/dist/controllers/feedback.d.ts.map +1 -1
  180. package/dist/controllers/feedback.js +4 -1
  181. package/dist/controllers/feedback.js.map +1 -1
  182. package/dist/controllers/input.d.ts.map +1 -1
  183. package/dist/controllers/input.js +2 -0
  184. package/dist/controllers/input.js.map +1 -1
  185. package/dist/controllers/jinion.d.ts +7 -0
  186. package/dist/controllers/jinion.d.ts.map +1 -1
  187. package/dist/controllers/jinion.js +7 -0
  188. package/dist/controllers/jinion.js.map +1 -1
  189. package/dist/controllers/mcp.d.ts +7 -2
  190. package/dist/controllers/mcp.d.ts.map +1 -1
  191. package/dist/controllers/mcp.js +23 -7
  192. package/dist/controllers/mcp.js.map +1 -1
  193. package/dist/controllers/session.d.ts.map +1 -1
  194. package/dist/controllers/session.js +4 -0
  195. package/dist/controllers/session.js.map +1 -1
  196. package/dist/conversation/activity.d.ts +5 -0
  197. package/dist/conversation/activity.d.ts.map +1 -0
  198. package/dist/conversation/activity.js +41 -0
  199. package/dist/conversation/activity.js.map +1 -0
  200. package/dist/conversation/apply-event.d.ts.map +1 -1
  201. package/dist/conversation/apply-event.js +2 -1
  202. package/dist/conversation/apply-event.js.map +1 -1
  203. package/dist/conversation/edits.d.ts +5 -0
  204. package/dist/conversation/edits.d.ts.map +1 -1
  205. package/dist/conversation/edits.js +10 -0
  206. package/dist/conversation/edits.js.map +1 -1
  207. package/dist/conversation/reducer.d.ts +9 -0
  208. package/dist/conversation/reducer.d.ts.map +1 -1
  209. package/dist/design/guides.d.ts +78 -5
  210. package/dist/design/guides.d.ts.map +1 -1
  211. package/dist/design/guides.js +78 -5
  212. package/dist/design/guides.js.map +1 -1
  213. package/dist/design/prompt.d.ts +1 -1
  214. package/dist/design/prompt.d.ts.map +1 -1
  215. package/dist/design/prompt.js +2 -2
  216. package/dist/design/prompt.js.map +1 -1
  217. package/dist/design/tools.d.ts +2 -0
  218. package/dist/design/tools.d.ts.map +1 -1
  219. package/dist/design/tools.js +6 -2
  220. package/dist/design/tools.js.map +1 -1
  221. package/dist/directions/directions.d.ts +42 -0
  222. package/dist/directions/directions.d.ts.map +1 -0
  223. package/dist/directions/directions.js +120 -0
  224. package/dist/directions/directions.js.map +1 -0
  225. package/dist/directions/store.d.ts +34 -0
  226. package/dist/directions/store.d.ts.map +1 -0
  227. package/dist/directions/store.js +61 -0
  228. package/dist/directions/store.js.map +1 -0
  229. package/dist/directions/tools.d.ts +29 -0
  230. package/dist/directions/tools.d.ts.map +1 -0
  231. package/dist/directions/tools.js +57 -0
  232. package/dist/directions/tools.js.map +1 -0
  233. package/dist/directions/viewer.d.ts +6 -0
  234. package/dist/directions/viewer.d.ts.map +1 -0
  235. package/dist/directions/viewer.js +266 -0
  236. package/dist/directions/viewer.js.map +1 -0
  237. package/dist/files/names.d.ts +6 -0
  238. package/dist/files/names.d.ts.map +1 -0
  239. package/dist/files/names.js +18 -0
  240. package/dist/files/names.js.map +1 -0
  241. package/dist/files/operations.d.ts +54 -0
  242. package/dist/files/operations.d.ts.map +1 -0
  243. package/dist/files/operations.js +173 -0
  244. package/dist/files/operations.js.map +1 -0
  245. package/dist/files/search.d.ts +11 -0
  246. package/dist/files/search.d.ts.map +1 -0
  247. package/dist/files/search.js +112 -0
  248. package/dist/files/search.js.map +1 -0
  249. package/dist/files/trash.d.ts +11 -0
  250. package/dist/files/trash.d.ts.map +1 -0
  251. package/dist/files/trash.js +64 -0
  252. package/dist/files/trash.js.map +1 -0
  253. package/dist/files/types.d.ts +112 -0
  254. package/dist/files/types.d.ts.map +1 -0
  255. package/dist/files/types.js +47 -0
  256. package/dist/files/types.js.map +1 -0
  257. package/dist/files/watch.d.ts +26 -0
  258. package/dist/files/watch.d.ts.map +1 -0
  259. package/dist/files/watch.js +107 -0
  260. package/dist/files/watch.js.map +1 -0
  261. package/dist/git/blame.d.ts +10 -0
  262. package/dist/git/blame.d.ts.map +1 -0
  263. package/dist/git/blame.js +91 -0
  264. package/dist/git/blame.js.map +1 -0
  265. package/dist/git/repos.d.ts +5 -0
  266. package/dist/git/repos.d.ts.map +1 -1
  267. package/dist/git/repos.js +13 -0
  268. package/dist/git/repos.js.map +1 -1
  269. package/dist/git/staging.d.ts +10 -1
  270. package/dist/git/staging.d.ts.map +1 -1
  271. package/dist/git/staging.js +21 -0
  272. package/dist/git/staging.js.map +1 -1
  273. package/dist/git/types.d.ts +48 -0
  274. package/dist/git/types.d.ts.map +1 -1
  275. package/dist/git/types.js +25 -0
  276. package/dist/git/types.js.map +1 -1
  277. package/dist/host.d.ts +2 -0
  278. package/dist/host.d.ts.map +1 -1
  279. package/dist/host.js +8 -1
  280. package/dist/host.js.map +1 -1
  281. package/dist/lib/glob.d.ts +6 -0
  282. package/dist/lib/glob.d.ts.map +1 -0
  283. package/dist/lib/glob.js +49 -0
  284. package/dist/lib/glob.js.map +1 -0
  285. package/dist/lib/paths.d.ts +3 -0
  286. package/dist/lib/paths.d.ts.map +1 -1
  287. package/dist/lib/paths.js +9 -1
  288. package/dist/lib/paths.js.map +1 -1
  289. package/dist/look/tools.d.ts +7 -1
  290. package/dist/look/tools.d.ts.map +1 -1
  291. package/dist/look/tools.js +19 -4
  292. package/dist/look/tools.js.map +1 -1
  293. package/dist/lsp/code-intelligence.d.ts +87 -0
  294. package/dist/lsp/code-intelligence.d.ts.map +1 -0
  295. package/dist/lsp/code-intelligence.js +343 -0
  296. package/dist/lsp/code-intelligence.js.map +1 -0
  297. package/dist/lsp/edits.d.ts +4 -0
  298. package/dist/lsp/edits.d.ts.map +1 -0
  299. package/dist/lsp/edits.js +14 -0
  300. package/dist/lsp/edits.js.map +1 -0
  301. package/dist/lsp/project-check.d.ts +8 -0
  302. package/dist/lsp/project-check.d.ts.map +1 -0
  303. package/dist/lsp/project-check.js +71 -0
  304. package/dist/lsp/project-check.js.map +1 -0
  305. package/dist/lsp/results.d.ts +95 -0
  306. package/dist/lsp/results.d.ts.map +1 -0
  307. package/dist/lsp/results.js +116 -0
  308. package/dist/lsp/results.js.map +1 -0
  309. package/dist/lsp/server.d.ts +22 -0
  310. package/dist/lsp/server.d.ts.map +1 -0
  311. package/dist/lsp/server.js +123 -0
  312. package/dist/lsp/server.js.map +1 -0
  313. package/dist/lsp/servers.d.ts +21 -0
  314. package/dist/lsp/servers.d.ts.map +1 -0
  315. package/dist/lsp/servers.js +57 -0
  316. package/dist/lsp/servers.js.map +1 -0
  317. package/dist/lsp/transport.d.ts +9 -0
  318. package/dist/lsp/transport.d.ts.map +1 -0
  319. package/dist/lsp/transport.js +64 -0
  320. package/dist/lsp/transport.js.map +1 -0
  321. package/dist/lsp/types.d.ts +262 -0
  322. package/dist/lsp/types.d.ts.map +1 -0
  323. package/dist/lsp/types.js +64 -0
  324. package/dist/lsp/types.js.map +1 -0
  325. package/dist/map/prompt.d.ts.map +1 -1
  326. package/dist/map/prompt.js +2 -1
  327. package/dist/map/prompt.js.map +1 -1
  328. package/dist/map/review.d.ts +29 -9
  329. package/dist/map/review.d.ts.map +1 -1
  330. package/dist/map/review.js +105 -25
  331. package/dist/map/review.js.map +1 -1
  332. package/dist/mcp/login.d.ts +2 -0
  333. package/dist/mcp/login.d.ts.map +1 -1
  334. package/dist/mcp/login.js +5 -0
  335. package/dist/mcp/login.js.map +1 -1
  336. package/dist/preview/pages.d.ts +17 -0
  337. package/dist/preview/pages.d.ts.map +1 -0
  338. package/dist/preview/pages.js +92 -0
  339. package/dist/preview/pages.js.map +1 -0
  340. package/dist/preview/previews.d.ts +22 -0
  341. package/dist/preview/previews.d.ts.map +1 -0
  342. package/dist/preview/previews.js +28 -0
  343. package/dist/preview/previews.js.map +1 -0
  344. package/dist/preview/prompt.d.ts +3 -0
  345. package/dist/preview/prompt.d.ts.map +1 -0
  346. package/dist/preview/prompt.js +5 -0
  347. package/dist/preview/prompt.js.map +1 -0
  348. package/dist/preview/tools.d.ts +21 -0
  349. package/dist/preview/tools.d.ts.map +1 -0
  350. package/dist/preview/tools.js +34 -0
  351. package/dist/preview/tools.js.map +1 -0
  352. package/dist/preview/types.d.ts +7 -0
  353. package/dist/preview/types.d.ts.map +1 -1
  354. package/dist/preview/types.js +2 -0
  355. package/dist/preview/types.js.map +1 -1
  356. package/dist/prompt/files.d.ts +4 -1
  357. package/dist/prompt/files.d.ts.map +1 -1
  358. package/dist/prompt/files.js +23 -8
  359. package/dist/prompt/files.js.map +1 -1
  360. package/dist/skills/tools.d.ts +26 -0
  361. package/dist/skills/tools.d.ts.map +1 -0
  362. package/dist/skills/tools.js +34 -0
  363. package/dist/skills/tools.js.map +1 -0
  364. package/dist/state/session.d.ts +4 -0
  365. package/dist/state/session.d.ts.map +1 -1
  366. package/dist/state/session.js +1 -0
  367. package/dist/state/session.js.map +1 -1
  368. package/package.json +3 -1
  369. package/schema/api.json +3016 -45
  370. package/vendor/darwin-arm64/build.json +62 -0
  371. package/vendor/darwin-arm64/ffmpeg +0 -0
  372. package/vendor/darwin-arm64/ffprobe +0 -0
  373. package/vendor/darwin-arm64/licenses/README.md +13 -0
  374. package/vendor/darwin-arm64/licenses/ffmpeg-LGPL-2.1.txt +502 -0
  375. package/vendor/darwin-arm64/licenses/whisper.cpp-MIT.txt +21 -0
  376. package/vendor/darwin-arm64/voices.bin +0 -0
  377. 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<{
@@ -139,6 +146,7 @@ export declare const requests: {
139
146
  activated: z.ZodOptional<z.ZodBoolean>;
140
147
  }, z.core.$strip>>>;
141
148
  signals: z.ZodOptional<z.ZodBoolean>;
149
+ notifications: z.ZodOptional<z.ZodBoolean>;
142
150
  claudeSetupOffered: z.ZodOptional<z.ZodBoolean>;
143
151
  announcements: z.ZodOptional<z.ZodArray<z.ZodObject<{
144
152
  id: z.ZodNumber;
@@ -461,6 +469,7 @@ export declare const requests: {
461
469
  size: z.ZodNumber;
462
470
  reading: z.ZodOptional<z.ZodString>;
463
471
  }, z.core.$strip>>>;
472
+ folder: z.ZodOptional<z.ZodString>;
464
473
  wantsWorktree: z.ZodBoolean;
465
474
  working: z.ZodBoolean;
466
475
  ratings: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodEnum<{
@@ -797,6 +806,22 @@ export declare const requests: {
797
806
  }, z.core.$strip>;
798
807
  result: z.ZodNull;
799
808
  };
809
+ /**
810
+ * Takes files of the last `git/changes`, by their absolute paths, back to HEAD, staged or not; one HEAD doesn't have
811
+ * is gone after. What was on disk goes to the Trash first, so `files/restore` puts it back.
812
+ */
813
+ 'git/discard': {
814
+ params: z.ZodObject<{
815
+ session: z.ZodString;
816
+ files: z.ZodArray<z.ZodString>;
817
+ }, z.core.$strip>;
818
+ result: z.ZodObject<{
819
+ trashed: z.ZodArray<z.ZodObject<{
820
+ path: z.ZodString;
821
+ trash: z.ZodString;
822
+ }, z.core.$strip>>;
823
+ }, z.core.$strip>;
824
+ };
800
825
  /** What is staged in the repository whose root is `repo`; the new commit, short. */
801
826
  'git/commit': {
802
827
  params: z.ZodObject<{
@@ -808,6 +833,22 @@ export declare const requests: {
808
833
  commit: z.ZodString;
809
834
  }, z.core.$strip>;
810
835
  };
836
+ /** Brings the upstream of `repo`'s branch in, only when it fast-forwards; git's own words when it doesn't. */
837
+ 'git/pull': {
838
+ params: z.ZodObject<{
839
+ session: z.ZodString;
840
+ repo: z.ZodString;
841
+ }, z.core.$strip>;
842
+ result: z.ZodNull;
843
+ };
844
+ /** Sends `repo`'s branch to its upstream, setting one on `origin` for a branch that has none. */
845
+ 'git/push': {
846
+ params: z.ZodObject<{
847
+ session: z.ZodString;
848
+ repo: z.ZodString;
849
+ }, z.core.$strip>;
850
+ result: z.ZodNull;
851
+ };
811
852
  /** A file from the session's last `git/changes`, by its absolute path. */
812
853
  'git/diff': {
813
854
  params: z.ZodObject<{
@@ -816,6 +857,62 @@ export declare const requests: {
816
857
  }, z.core.$strip>;
817
858
  result: z.ZodString;
818
859
  };
860
+ /** The same file as `git/diff` compares it against, whole: empty for a file that is new. */
861
+ 'git/before': {
862
+ params: z.ZodObject<{
863
+ session: z.ZodString;
864
+ file: z.ZodString;
865
+ }, z.core.$strip>;
866
+ result: z.ZodString;
867
+ };
868
+ /**
869
+ * Who last changed each line of a file in the session's folder, by its path there; with `text`, of the text as the
870
+ * client holds it, its unsaved lines not committed. `null` for a file git doesn't know.
871
+ */
872
+ 'git/blame': {
873
+ params: z.ZodObject<{
874
+ session: z.ZodString;
875
+ path: z.ZodString;
876
+ text: z.ZodOptional<z.ZodString>;
877
+ }, z.core.$strip>;
878
+ result: z.ZodNullable<z.ZodObject<{
879
+ repo: z.ZodString;
880
+ you: z.ZodOptional<z.ZodString>;
881
+ ranges: z.ZodArray<z.ZodObject<{
882
+ start: z.ZodNumber;
883
+ lines: z.ZodNumber;
884
+ commit: z.ZodOptional<z.ZodString>;
885
+ }, z.core.$strip>>;
886
+ commits: z.ZodRecord<z.ZodString, z.ZodObject<{
887
+ sha: z.ZodString;
888
+ author: z.ZodString;
889
+ email: z.ZodString;
890
+ time: z.ZodNumber;
891
+ summary: z.ZodString;
892
+ }, z.core.$strip>>;
893
+ }, z.core.$strip>>;
894
+ };
895
+ /** A commit of `repo`, the root a blame names, with each file it changed. */
896
+ 'git/show': {
897
+ params: z.ZodObject<{
898
+ session: z.ZodString;
899
+ repo: z.ZodString;
900
+ commit: z.ZodString;
901
+ }, z.core.$strip>;
902
+ result: z.ZodObject<{
903
+ sha: z.ZodString;
904
+ author: z.ZodString;
905
+ email: z.ZodString;
906
+ time: z.ZodNumber;
907
+ summary: z.ZodString;
908
+ body: z.ZodString;
909
+ files: z.ZodArray<z.ZodObject<{
910
+ path: z.ZodString;
911
+ patch: z.ZodString;
912
+ binary: z.ZodBoolean;
913
+ }, z.core.$strip>>;
914
+ }, z.core.$strip>;
915
+ };
819
916
  /** What the project map read; `reading` while it is read the first time. With `session`, the folder that session works in. */
820
917
  'map/overview': {
821
918
  params: z.ZodObject<{
@@ -920,6 +1017,532 @@ export declare const requests: {
920
1017
  modified: z.ZodNumber;
921
1018
  }, z.core.$strip>;
922
1019
  };
1020
+ /** Text in the folder's files that git doesn't ignore; a regular expression that isn't one is refused as invalid params. */
1021
+ 'files/search': {
1022
+ params: z.ZodObject<{
1023
+ query: z.ZodString;
1024
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
1025
+ wholeWord: z.ZodOptional<z.ZodBoolean>;
1026
+ regex: z.ZodOptional<z.ZodBoolean>;
1027
+ include: z.ZodOptional<z.ZodString>;
1028
+ exclude: z.ZodOptional<z.ZodString>;
1029
+ session: z.ZodString;
1030
+ }, z.core.$strip>;
1031
+ result: z.ZodObject<{
1032
+ files: z.ZodArray<z.ZodObject<{
1033
+ path: z.ZodString;
1034
+ matches: z.ZodArray<z.ZodObject<{
1035
+ line: z.ZodNumber;
1036
+ text: z.ZodString;
1037
+ ranges: z.ZodArray<z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>>;
1038
+ }, z.core.$strip>>;
1039
+ }, z.core.$strip>>;
1040
+ truncated: z.ZodBoolean;
1041
+ }, z.core.$strip>;
1042
+ };
1043
+ /** Replaces what `files/search` finds, in every file it finds it in or in `paths` of them, and writes them. */
1044
+ 'files/replace': {
1045
+ params: z.ZodObject<{
1046
+ query: z.ZodString;
1047
+ caseSensitive: z.ZodOptional<z.ZodBoolean>;
1048
+ wholeWord: z.ZodOptional<z.ZodBoolean>;
1049
+ regex: z.ZodOptional<z.ZodBoolean>;
1050
+ include: z.ZodOptional<z.ZodString>;
1051
+ exclude: z.ZodOptional<z.ZodString>;
1052
+ session: z.ZodString;
1053
+ replacement: z.ZodString;
1054
+ paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
1055
+ }, z.core.$strip>;
1056
+ result: z.ZodObject<{
1057
+ files: z.ZodNumber;
1058
+ replacements: z.ZodNumber;
1059
+ }, z.core.$strip>;
1060
+ };
1061
+ /** 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. */
1062
+ 'files/watch': {
1063
+ params: z.ZodObject<{
1064
+ session: z.ZodString;
1065
+ paths: z.ZodArray<z.ZodString>;
1066
+ }, z.core.$strip>;
1067
+ result: z.ZodNull;
1068
+ };
1069
+ /** A file, empty or with `content`, or with `folder` a folder; the folders it is in are made as needed. */
1070
+ 'files/create': {
1071
+ params: z.ZodObject<{
1072
+ session: z.ZodString;
1073
+ path: z.ZodString;
1074
+ folder: z.ZodOptional<z.ZodBoolean>;
1075
+ content: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
1076
+ text: z.ZodString;
1077
+ }, z.core.$strip>, z.ZodObject<{
1078
+ base64: z.ZodString;
1079
+ }, z.core.$strip>]>>;
1080
+ replace: z.ZodOptional<z.ZodBoolean>;
1081
+ }, z.core.$strip>;
1082
+ result: z.ZodObject<{
1083
+ path: z.ZodString;
1084
+ replaced: z.ZodArray<z.ZodObject<{
1085
+ path: z.ZodString;
1086
+ trash: z.ZodString;
1087
+ }, z.core.$strip>>;
1088
+ }, z.core.$strip>;
1089
+ };
1090
+ /** Another name for a file or folder, where it is: `name` alone, not a path. */
1091
+ 'files/rename': {
1092
+ params: z.ZodObject<{
1093
+ session: z.ZodString;
1094
+ path: z.ZodString;
1095
+ name: z.ZodString;
1096
+ replace: z.ZodOptional<z.ZodBoolean>;
1097
+ }, z.core.$strip>;
1098
+ result: z.ZodObject<{
1099
+ moved: z.ZodArray<z.ZodObject<{
1100
+ from: z.ZodString;
1101
+ to: z.ZodString;
1102
+ }, z.core.$strip>>;
1103
+ replaced: z.ZodArray<z.ZodObject<{
1104
+ path: z.ZodString;
1105
+ trash: z.ZodString;
1106
+ }, z.core.$strip>>;
1107
+ }, z.core.$strip>;
1108
+ };
1109
+ /**
1110
+ * Files and folders into a folder of the session's (`''` for the folder itself), each keeping its name; with
1111
+ * `keepBoth`, one whose name is taken there takes the next free one, as the Finder's Keep Both names it, `box 2.tsx`.
1112
+ */
1113
+ 'files/move': {
1114
+ params: z.ZodObject<{
1115
+ session: z.ZodString;
1116
+ paths: z.ZodArray<z.ZodString>;
1117
+ into: z.ZodString;
1118
+ replace: z.ZodOptional<z.ZodBoolean>;
1119
+ keepBoth: z.ZodOptional<z.ZodBoolean>;
1120
+ }, z.core.$strip>;
1121
+ result: z.ZodObject<{
1122
+ moved: z.ZodArray<z.ZodObject<{
1123
+ from: z.ZodString;
1124
+ to: z.ZodString;
1125
+ }, z.core.$strip>>;
1126
+ replaced: z.ZodArray<z.ZodObject<{
1127
+ path: z.ZodString;
1128
+ trash: z.ZodString;
1129
+ }, z.core.$strip>>;
1130
+ }, z.core.$strip>;
1131
+ };
1132
+ /**
1133
+ * The same, copied: from the folder by their paths there, or from anywhere by their whole paths, as files dropped from
1134
+ * the Finder. Copied into the folder it is in, a copy is named as the Finder names one, `box copy.tsx`.
1135
+ */
1136
+ 'files/copy': {
1137
+ params: z.ZodObject<{
1138
+ session: z.ZodString;
1139
+ paths: z.ZodArray<z.ZodString>;
1140
+ into: z.ZodString;
1141
+ replace: z.ZodOptional<z.ZodBoolean>;
1142
+ keepBoth: z.ZodOptional<z.ZodBoolean>;
1143
+ }, z.core.$strip>;
1144
+ result: z.ZodObject<{
1145
+ copied: z.ZodArray<z.ZodObject<{
1146
+ from: z.ZodString;
1147
+ to: z.ZodString;
1148
+ }, z.core.$strip>>;
1149
+ replaced: z.ZodArray<z.ZodObject<{
1150
+ path: z.ZodString;
1151
+ trash: z.ZodString;
1152
+ }, z.core.$strip>>;
1153
+ }, z.core.$strip>;
1154
+ };
1155
+ /** Files and folders to the Trash, never deleted for good; refused with `unsupported` where there is no Trash Jinion can reach. */
1156
+ 'files/delete': {
1157
+ params: z.ZodObject<{
1158
+ session: z.ZodString;
1159
+ paths: z.ZodArray<z.ZodString>;
1160
+ }, z.core.$strip>;
1161
+ result: z.ZodObject<{
1162
+ trashed: z.ZodArray<z.ZodObject<{
1163
+ path: z.ZodString;
1164
+ trash: z.ZodString;
1165
+ }, z.core.$strip>>;
1166
+ }, z.core.$strip>;
1167
+ };
1168
+ /** What `files/delete` or a replace sent to the Trash, put back at its path, while this Jinion runs. */
1169
+ 'files/restore': {
1170
+ params: z.ZodObject<{
1171
+ session: z.ZodString;
1172
+ trashed: z.ZodArray<z.ZodObject<{
1173
+ path: z.ZodString;
1174
+ trash: z.ZodString;
1175
+ }, z.core.$strip>>;
1176
+ replace: z.ZodOptional<z.ZodBoolean>;
1177
+ }, z.core.$strip>;
1178
+ result: z.ZodObject<{
1179
+ restored: z.ZodArray<z.ZodString>;
1180
+ replaced: z.ZodArray<z.ZodObject<{
1181
+ path: z.ZodString;
1182
+ trash: z.ZodString;
1183
+ }, z.core.$strip>>;
1184
+ }, z.core.$strip>;
1185
+ };
1186
+ 'lsp/open': {
1187
+ params: z.ZodObject<{
1188
+ session: z.ZodString;
1189
+ path: z.ZodString;
1190
+ text: z.ZodString;
1191
+ }, z.core.$strip>;
1192
+ result: z.ZodNull;
1193
+ };
1194
+ /** The whole text as it is now. */
1195
+ 'lsp/change': {
1196
+ params: z.ZodObject<{
1197
+ session: z.ZodString;
1198
+ path: z.ZodString;
1199
+ text: z.ZodString;
1200
+ }, z.core.$strip>;
1201
+ result: z.ZodNull;
1202
+ };
1203
+ 'lsp/close': {
1204
+ params: z.ZodObject<{
1205
+ session: z.ZodString;
1206
+ path: z.ZodString;
1207
+ }, z.core.$strip>;
1208
+ result: z.ZodNull;
1209
+ };
1210
+ 'lsp/hover': {
1211
+ params: z.ZodObject<{
1212
+ session: z.ZodString;
1213
+ path: z.ZodString;
1214
+ position: z.ZodObject<{
1215
+ line: z.ZodNumber;
1216
+ character: z.ZodNumber;
1217
+ }, z.core.$strip>;
1218
+ }, z.core.$strip>;
1219
+ result: z.ZodNullable<z.ZodObject<{
1220
+ contents: z.ZodString;
1221
+ range: z.ZodOptional<z.ZodObject<{
1222
+ start: z.ZodObject<{
1223
+ line: z.ZodNumber;
1224
+ character: z.ZodNumber;
1225
+ }, z.core.$strip>;
1226
+ end: z.ZodObject<{
1227
+ line: z.ZodNumber;
1228
+ character: z.ZodNumber;
1229
+ }, z.core.$strip>;
1230
+ }, z.core.$strip>>;
1231
+ }, z.core.$strip>>;
1232
+ };
1233
+ 'lsp/definition': {
1234
+ params: z.ZodObject<{
1235
+ session: z.ZodString;
1236
+ path: z.ZodString;
1237
+ position: z.ZodObject<{
1238
+ line: z.ZodNumber;
1239
+ character: z.ZodNumber;
1240
+ }, z.core.$strip>;
1241
+ }, z.core.$strip>;
1242
+ result: z.ZodArray<z.ZodObject<{
1243
+ path: z.ZodString;
1244
+ range: z.ZodObject<{
1245
+ start: z.ZodObject<{
1246
+ line: z.ZodNumber;
1247
+ character: z.ZodNumber;
1248
+ }, z.core.$strip>;
1249
+ end: z.ZodObject<{
1250
+ line: z.ZodNumber;
1251
+ character: z.ZodNumber;
1252
+ }, z.core.$strip>;
1253
+ }, z.core.$strip>;
1254
+ }, z.core.$strip>>;
1255
+ };
1256
+ 'lsp/references': {
1257
+ params: z.ZodObject<{
1258
+ session: z.ZodString;
1259
+ path: z.ZodString;
1260
+ position: z.ZodObject<{
1261
+ line: z.ZodNumber;
1262
+ character: z.ZodNumber;
1263
+ }, z.core.$strip>;
1264
+ }, z.core.$strip>;
1265
+ result: z.ZodArray<z.ZodObject<{
1266
+ path: z.ZodString;
1267
+ range: z.ZodObject<{
1268
+ start: z.ZodObject<{
1269
+ line: z.ZodNumber;
1270
+ character: z.ZodNumber;
1271
+ }, z.core.$strip>;
1272
+ end: z.ZodObject<{
1273
+ line: z.ZodNumber;
1274
+ character: z.ZodNumber;
1275
+ }, z.core.$strip>;
1276
+ }, z.core.$strip>;
1277
+ }, z.core.$strip>>;
1278
+ };
1279
+ /** `trigger` is the character typed that asked for them, such as `.`; left out when the user asked. */
1280
+ 'lsp/completion': {
1281
+ params: z.ZodObject<{
1282
+ session: z.ZodString;
1283
+ path: z.ZodString;
1284
+ position: z.ZodObject<{
1285
+ line: z.ZodNumber;
1286
+ character: z.ZodNumber;
1287
+ }, z.core.$strip>;
1288
+ trigger: z.ZodOptional<z.ZodString>;
1289
+ }, z.core.$strip>;
1290
+ result: z.ZodObject<{
1291
+ incomplete: z.ZodBoolean;
1292
+ items: z.ZodArray<z.ZodObject<{
1293
+ label: z.ZodString;
1294
+ kind: z.ZodOptional<z.ZodNumber>;
1295
+ detail: z.ZodOptional<z.ZodString>;
1296
+ documentation: z.ZodOptional<z.ZodString>;
1297
+ insertText: z.ZodString;
1298
+ snippet: z.ZodOptional<z.ZodBoolean>;
1299
+ range: z.ZodOptional<z.ZodObject<{
1300
+ start: z.ZodObject<{
1301
+ line: z.ZodNumber;
1302
+ character: z.ZodNumber;
1303
+ }, z.core.$strip>;
1304
+ end: z.ZodObject<{
1305
+ line: z.ZodNumber;
1306
+ character: z.ZodNumber;
1307
+ }, z.core.$strip>;
1308
+ }, z.core.$strip>>;
1309
+ sortText: z.ZodOptional<z.ZodString>;
1310
+ filterText: z.ZodOptional<z.ZodString>;
1311
+ preselect: z.ZodOptional<z.ZodBoolean>;
1312
+ commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
1313
+ additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1314
+ range: z.ZodObject<{
1315
+ start: z.ZodObject<{
1316
+ line: z.ZodNumber;
1317
+ character: z.ZodNumber;
1318
+ }, z.core.$strip>;
1319
+ end: z.ZodObject<{
1320
+ line: z.ZodNumber;
1321
+ character: z.ZodNumber;
1322
+ }, z.core.$strip>;
1323
+ }, z.core.$strip>;
1324
+ text: z.ZodString;
1325
+ }, z.core.$strip>>>;
1326
+ data: z.ZodOptional<z.ZodUnknown>;
1327
+ }, z.core.$strip>>;
1328
+ }, z.core.$strip>;
1329
+ };
1330
+ /** An item of `lsp/completion` with what was left out of the list, such as its documentation. */
1331
+ 'lsp/completion-detail': {
1332
+ params: z.ZodObject<{
1333
+ session: z.ZodString;
1334
+ path: z.ZodString;
1335
+ item: z.ZodObject<{
1336
+ label: z.ZodString;
1337
+ kind: z.ZodOptional<z.ZodNumber>;
1338
+ detail: z.ZodOptional<z.ZodString>;
1339
+ documentation: z.ZodOptional<z.ZodString>;
1340
+ insertText: z.ZodString;
1341
+ snippet: z.ZodOptional<z.ZodBoolean>;
1342
+ range: z.ZodOptional<z.ZodObject<{
1343
+ start: z.ZodObject<{
1344
+ line: z.ZodNumber;
1345
+ character: z.ZodNumber;
1346
+ }, z.core.$strip>;
1347
+ end: z.ZodObject<{
1348
+ line: z.ZodNumber;
1349
+ character: z.ZodNumber;
1350
+ }, z.core.$strip>;
1351
+ }, z.core.$strip>>;
1352
+ sortText: z.ZodOptional<z.ZodString>;
1353
+ filterText: z.ZodOptional<z.ZodString>;
1354
+ preselect: z.ZodOptional<z.ZodBoolean>;
1355
+ commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
1356
+ additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1357
+ range: z.ZodObject<{
1358
+ start: z.ZodObject<{
1359
+ line: z.ZodNumber;
1360
+ character: z.ZodNumber;
1361
+ }, z.core.$strip>;
1362
+ end: z.ZodObject<{
1363
+ line: z.ZodNumber;
1364
+ character: z.ZodNumber;
1365
+ }, z.core.$strip>;
1366
+ }, z.core.$strip>;
1367
+ text: z.ZodString;
1368
+ }, z.core.$strip>>>;
1369
+ data: z.ZodOptional<z.ZodUnknown>;
1370
+ }, z.core.$strip>;
1371
+ }, z.core.$strip>;
1372
+ result: z.ZodObject<{
1373
+ label: z.ZodString;
1374
+ kind: z.ZodOptional<z.ZodNumber>;
1375
+ detail: z.ZodOptional<z.ZodString>;
1376
+ documentation: z.ZodOptional<z.ZodString>;
1377
+ insertText: z.ZodString;
1378
+ snippet: z.ZodOptional<z.ZodBoolean>;
1379
+ range: z.ZodOptional<z.ZodObject<{
1380
+ start: z.ZodObject<{
1381
+ line: z.ZodNumber;
1382
+ character: z.ZodNumber;
1383
+ }, z.core.$strip>;
1384
+ end: z.ZodObject<{
1385
+ line: z.ZodNumber;
1386
+ character: z.ZodNumber;
1387
+ }, z.core.$strip>;
1388
+ }, z.core.$strip>>;
1389
+ sortText: z.ZodOptional<z.ZodString>;
1390
+ filterText: z.ZodOptional<z.ZodString>;
1391
+ preselect: z.ZodOptional<z.ZodBoolean>;
1392
+ commitCharacters: z.ZodOptional<z.ZodArray<z.ZodString>>;
1393
+ additionalEdits: z.ZodOptional<z.ZodArray<z.ZodObject<{
1394
+ range: z.ZodObject<{
1395
+ start: z.ZodObject<{
1396
+ line: z.ZodNumber;
1397
+ character: z.ZodNumber;
1398
+ }, z.core.$strip>;
1399
+ end: z.ZodObject<{
1400
+ line: z.ZodNumber;
1401
+ character: z.ZodNumber;
1402
+ }, z.core.$strip>;
1403
+ }, z.core.$strip>;
1404
+ text: z.ZodString;
1405
+ }, z.core.$strip>>>;
1406
+ data: z.ZodOptional<z.ZodUnknown>;
1407
+ }, z.core.$strip>;
1408
+ };
1409
+ 'lsp/signature-help': {
1410
+ params: z.ZodObject<{
1411
+ session: z.ZodString;
1412
+ path: z.ZodString;
1413
+ position: z.ZodObject<{
1414
+ line: z.ZodNumber;
1415
+ character: z.ZodNumber;
1416
+ }, z.core.$strip>;
1417
+ }, z.core.$strip>;
1418
+ result: z.ZodNullable<z.ZodObject<{
1419
+ signatures: z.ZodArray<z.ZodObject<{
1420
+ label: z.ZodString;
1421
+ documentation: z.ZodOptional<z.ZodString>;
1422
+ parameters: z.ZodArray<z.ZodObject<{
1423
+ label: z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodNumber, z.ZodNumber], null>]>;
1424
+ documentation: z.ZodOptional<z.ZodString>;
1425
+ }, z.core.$strip>>;
1426
+ }, z.core.$strip>>;
1427
+ activeSignature: z.ZodNumber;
1428
+ activeParameter: z.ZodNumber;
1429
+ }, z.core.$strip>>;
1430
+ };
1431
+ /**
1432
+ * Renames what is at the position wherever it is used. The files nobody has open are changed on disk; the edits to
1433
+ * those open come back, for the client to make as unsaved changes.
1434
+ */
1435
+ 'lsp/rename': {
1436
+ params: z.ZodObject<{
1437
+ session: z.ZodString;
1438
+ path: z.ZodString;
1439
+ position: z.ZodObject<{
1440
+ line: z.ZodNumber;
1441
+ character: z.ZodNumber;
1442
+ }, z.core.$strip>;
1443
+ name: z.ZodString;
1444
+ }, z.core.$strip>;
1445
+ result: z.ZodArray<z.ZodObject<{
1446
+ path: z.ZodString;
1447
+ edits: z.ZodArray<z.ZodObject<{
1448
+ range: z.ZodObject<{
1449
+ start: z.ZodObject<{
1450
+ line: z.ZodNumber;
1451
+ character: z.ZodNumber;
1452
+ }, z.core.$strip>;
1453
+ end: z.ZodObject<{
1454
+ line: z.ZodNumber;
1455
+ character: z.ZodNumber;
1456
+ }, z.core.$strip>;
1457
+ }, z.core.$strip>;
1458
+ text: z.ZodString;
1459
+ }, z.core.$strip>>;
1460
+ }, z.core.$strip>>;
1461
+ };
1462
+ /** The edits that format the file as it is open, for the client to make. */
1463
+ 'lsp/format': {
1464
+ params: z.ZodObject<{
1465
+ session: z.ZodString;
1466
+ path: z.ZodString;
1467
+ tabSize: z.ZodNumber;
1468
+ insertSpaces: z.ZodBoolean;
1469
+ }, z.core.$strip>;
1470
+ result: z.ZodArray<z.ZodObject<{
1471
+ range: z.ZodObject<{
1472
+ start: z.ZodObject<{
1473
+ line: z.ZodNumber;
1474
+ character: z.ZodNumber;
1475
+ }, z.core.$strip>;
1476
+ end: z.ZodObject<{
1477
+ line: z.ZodNumber;
1478
+ character: z.ZodNumber;
1479
+ }, z.core.$strip>;
1480
+ }, z.core.$strip>;
1481
+ text: z.ZodString;
1482
+ }, z.core.$strip>>;
1483
+ };
1484
+ /** Every error and warning known in the session's folder, by file; `lsp/diagnostics` tells what changes after. */
1485
+ 'lsp/problems': {
1486
+ params: z.ZodObject<{
1487
+ session: z.ZodString;
1488
+ }, z.core.$strip>;
1489
+ result: z.ZodArray<z.ZodObject<{
1490
+ path: z.ZodString;
1491
+ diagnostics: z.ZodArray<z.ZodObject<{
1492
+ range: z.ZodObject<{
1493
+ start: z.ZodObject<{
1494
+ line: z.ZodNumber;
1495
+ character: z.ZodNumber;
1496
+ }, z.core.$strip>;
1497
+ end: z.ZodObject<{
1498
+ line: z.ZodNumber;
1499
+ character: z.ZodNumber;
1500
+ }, z.core.$strip>;
1501
+ }, z.core.$strip>;
1502
+ severity: z.ZodEnum<{
1503
+ error: "error";
1504
+ hint: "hint";
1505
+ info: "info";
1506
+ warning: "warning";
1507
+ }>;
1508
+ message: z.ZodString;
1509
+ source: z.ZodOptional<z.ZodString>;
1510
+ code: z.ZodOptional<z.ZodString>;
1511
+ unnecessary: z.ZodOptional<z.ZodBoolean>;
1512
+ deprecated: z.ZodOptional<z.ZodBoolean>;
1513
+ }, z.core.$strip>>;
1514
+ }, z.core.$strip>>;
1515
+ };
1516
+ /** 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. */
1517
+ 'lsp/server': {
1518
+ params: z.ZodObject<{
1519
+ session: z.ZodString;
1520
+ path: z.ZodString;
1521
+ }, z.core.$strip>;
1522
+ result: z.ZodNullable<z.ZodObject<{
1523
+ server: z.ZodEnum<{
1524
+ css: "css";
1525
+ html: "html";
1526
+ json: "json";
1527
+ typescript: "typescript";
1528
+ }>;
1529
+ state: z.ZodEnum<{
1530
+ failed: "failed";
1531
+ running: "running";
1532
+ starting: "starting";
1533
+ stopped: "stopped";
1534
+ }>;
1535
+ error: z.ZodOptional<z.ZodString>;
1536
+ }, z.core.$strip>>;
1537
+ };
1538
+ /** Starts the file's server again, as after it failed; it has to be open. */
1539
+ 'lsp/restart': {
1540
+ params: z.ZodObject<{
1541
+ session: z.ZodString;
1542
+ path: z.ZodString;
1543
+ }, z.core.$strip>;
1544
+ result: z.ZodNull;
1545
+ };
923
1546
  /**
924
1547
  * 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
1548
  * kept; reading it, such as transcribing a recording, goes on after, told in the session's `attachments` field. A
@@ -971,10 +1594,11 @@ export declare const requests: {
971
1594
  urls: z.ZodOptional<z.ZodArray<z.ZodString>>;
972
1595
  }, z.core.$strip>>;
973
1596
  };
974
- /** A shell in the folder `session` works in, its worktree or the project, or in the project without one. */
1597
+ /** 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
1598
  'terminals/open': {
976
1599
  params: z.ZodObject<{
977
1600
  session: z.ZodOptional<z.ZodString>;
1601
+ folder: z.ZodOptional<z.ZodString>;
978
1602
  cols: z.ZodOptional<z.ZodNumber>;
979
1603
  rows: z.ZodOptional<z.ZodNumber>;
980
1604
  }, z.core.$strip>;
@@ -1048,6 +1672,23 @@ export declare const requests: {
1048
1672
  command: z.ZodString;
1049
1673
  }, z.core.$strip>>;
1050
1674
  };
1675
+ /** The HTML files of the folder `session` works in, or of the project without one, by their path there. */
1676
+ 'preview/pages': {
1677
+ params: z.ZodObject<{
1678
+ session: z.ZodOptional<z.ZodString>;
1679
+ }, z.core.$strip>;
1680
+ result: z.ZodArray<z.ZodString>;
1681
+ };
1682
+ /** The address a preview opens a file of that folder at, served as it is, with no dev server. */
1683
+ 'preview/file': {
1684
+ params: z.ZodObject<{
1685
+ session: z.ZodOptional<z.ZodString>;
1686
+ path: z.ZodString;
1687
+ }, z.core.$strip>;
1688
+ result: z.ZodObject<{
1689
+ url: z.ZodString;
1690
+ }, z.core.$strip>;
1691
+ };
1051
1692
  'accounts/list': {
1052
1693
  params: z.ZodObject<{
1053
1694
  agent: z.ZodOptional<z.ZodString>;
@@ -1075,7 +1716,7 @@ export declare const requests: {
1075
1716
  }, z.core.$strip>;
1076
1717
  result: z.ZodNull;
1077
1718
  };
1078
- /** Answered once signing in ends; meanwhile the link and what to type come as notifications. */
1719
+ /** Answered once signing in ends, with why when it failed; meanwhile the link and what to type come as notifications. */
1079
1720
  'accounts/sign-in': {
1080
1721
  params: z.ZodObject<{
1081
1722
  name: z.ZodString;
@@ -1083,6 +1724,7 @@ export declare const requests: {
1083
1724
  }, z.core.$strip>;
1084
1725
  result: z.ZodObject<{
1085
1726
  signedIn: z.ZodBoolean;
1727
+ problem: z.ZodOptional<z.ZodString>;
1086
1728
  }, z.core.$strip>;
1087
1729
  };
1088
1730
  'accounts/sign-in-answer': {
@@ -1121,6 +1763,7 @@ export declare const requests: {
1121
1763
  elsewhere: "elsewhere";
1122
1764
  jinion: "jinion";
1123
1765
  }>>;
1766
+ signedIn: z.ZodOptional<z.ZodBoolean>;
1124
1767
  removable: z.ZodOptional<z.ZodBoolean>;
1125
1768
  }, z.core.$strip>>;
1126
1769
  };
@@ -1158,6 +1801,13 @@ export declare const requests: {
1158
1801
  }, z.core.$strip>;
1159
1802
  result: z.ZodNull;
1160
1803
  };
1804
+ /** Connects a server that failed again, now; `mcp/servers` says how it went. */
1805
+ 'mcp/reconnect': {
1806
+ params: z.ZodObject<{
1807
+ name: z.ZodString;
1808
+ }, z.core.$strip>;
1809
+ result: z.ZodNull;
1810
+ };
1161
1811
  /** How long the agent's answers run, from the next prompt on, in every session. */
1162
1812
  'preferences/answers': {
1163
1813
  params: z.ZodObject<{
@@ -1176,6 +1826,13 @@ export declare const requests: {
1176
1826
  }, z.core.$strip>;
1177
1827
  result: z.ZodNull;
1178
1828
  };
1829
+ /** Whether the user is notified when the agent waits for them or ends a long turn, from now on, as `/notifications` sets it. */
1830
+ 'preferences/notifications': {
1831
+ params: z.ZodObject<{
1832
+ notifications: z.ZodBoolean;
1833
+ }, z.core.$strip>;
1834
+ result: z.ZodNull;
1835
+ };
1179
1836
  /** Puts an announcement away for good, on every machine of its user. */
1180
1837
  'announcements/dismiss': {
1181
1838
  params: z.ZodObject<{
@@ -1183,13 +1840,14 @@ export declare const requests: {
1183
1840
  }, z.core.$strip>;
1184
1841
  result: z.ZodNull;
1185
1842
  };
1186
- /** Opens the browser and is answered once signing in ends; meanwhile its link comes as `mcp/sign-in-link`. */
1843
+ /** 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
1844
  'mcp/sign-in': {
1188
1845
  params: z.ZodObject<{
1189
1846
  name: z.ZodString;
1190
1847
  }, z.core.$strip>;
1191
1848
  result: z.ZodObject<{
1192
1849
  signedIn: z.ZodBoolean;
1850
+ problem: z.ZodOptional<z.ZodString>;
1193
1851
  }, z.core.$strip>;
1194
1852
  };
1195
1853
  'mcp/sign-in-cancel': {
@@ -1198,6 +1856,13 @@ export declare const requests: {
1198
1856
  }, z.core.$strip>;
1199
1857
  result: z.ZodNull;
1200
1858
  };
1859
+ /** Drops Jinion's sign-in to a server `mcp/servers` says is `signedIn`; it asks to sign in again from the next turn. */
1860
+ 'mcp/sign-out': {
1861
+ params: z.ZodObject<{
1862
+ name: z.ZodString;
1863
+ }, z.core.$strip>;
1864
+ result: z.ZodNull;
1865
+ };
1201
1866
  /** Emails a code that `jinion/sign-in-email` takes, for 10 minutes. */
1202
1867
  'jinion/send-code': {
1203
1868
  params: z.ZodObject<{
@@ -1799,6 +2464,9 @@ export declare const notificationsToClient: {
1799
2464
  }, z.core.$strip>, z.ZodObject<{
1800
2465
  type: z.ZodLiteral<"turn-start">;
1801
2466
  reason: z.ZodOptional<z.ZodString>;
2467
+ }, z.core.$strip>, z.ZodObject<{
2468
+ type: z.ZodLiteral<"picked">;
2469
+ text: z.ZodString;
1802
2470
  }, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
1803
2471
  type: z.ZodLiteral<"compaction">;
1804
2472
  state: z.ZodLiteral<"running">;
@@ -1926,6 +2594,7 @@ export declare const notificationsToClient: {
1926
2594
  size: number;
1927
2595
  reading?: string | undefined;
1928
2596
  }[] | undefined;
2597
+ folder?: string | undefined;
1929
2598
  wantsWorktree: boolean;
1930
2599
  working: boolean;
1931
2600
  ratings?: Record<string, "disliked" | "liked"> | undefined;
@@ -2005,6 +2674,7 @@ export declare const notificationsToClient: {
2005
2674
  size: number;
2006
2675
  reading?: string | undefined;
2007
2676
  }[] | undefined;
2677
+ folder?: string | undefined;
2008
2678
  wantsWorktree: boolean;
2009
2679
  working: boolean;
2010
2680
  ratings?: Record<string, "disliked" | "liked"> | undefined;
@@ -2067,6 +2737,7 @@ export declare const notificationsToClient: {
2067
2737
  activated?: boolean | undefined;
2068
2738
  } | null | undefined;
2069
2739
  signals?: boolean | undefined;
2740
+ notifications?: boolean | undefined;
2070
2741
  claudeSetupOffered?: boolean | undefined;
2071
2742
  announcements?: {
2072
2743
  id: number;
@@ -2132,6 +2803,7 @@ export declare const notificationsToClient: {
2132
2803
  activated?: boolean | undefined;
2133
2804
  } | null | undefined;
2134
2805
  signals?: boolean | undefined;
2806
+ notifications?: boolean | undefined;
2135
2807
  claudeSetupOffered?: boolean | undefined;
2136
2808
  announcements?: {
2137
2809
  id: number;
@@ -2253,6 +2925,83 @@ export declare const notificationsToClient: {
2253
2925
  seq: z.ZodNumber;
2254
2926
  data: z.ZodString;
2255
2927
  }, z.core.$strip>;
2928
+ /** A file `files/watch` named changed on disk, by the agent, a save or another program. */
2929
+ 'files/changed': z.ZodObject<{
2930
+ session: z.ZodString;
2931
+ path: z.ZodString;
2932
+ modified: z.ZodOptional<z.ZodNumber>;
2933
+ movedTo: z.ZodOptional<z.ZodString>;
2934
+ by: z.ZodOptional<z.ZodEnum<{
2935
+ agent: "agent";
2936
+ other: "other";
2937
+ }>>;
2938
+ }, z.core.$strip>;
2939
+ /** A file's errors and warnings changed: all of them as they are now, none once it has none. */
2940
+ 'lsp/diagnostics': z.ZodObject<{
2941
+ path: z.ZodString;
2942
+ diagnostics: z.ZodArray<z.ZodObject<{
2943
+ range: z.ZodObject<{
2944
+ start: z.ZodObject<{
2945
+ line: z.ZodNumber;
2946
+ character: z.ZodNumber;
2947
+ }, z.core.$strip>;
2948
+ end: z.ZodObject<{
2949
+ line: z.ZodNumber;
2950
+ character: z.ZodNumber;
2951
+ }, z.core.$strip>;
2952
+ }, z.core.$strip>;
2953
+ severity: z.ZodEnum<{
2954
+ error: "error";
2955
+ hint: "hint";
2956
+ info: "info";
2957
+ warning: "warning";
2958
+ }>;
2959
+ message: z.ZodString;
2960
+ source: z.ZodOptional<z.ZodString>;
2961
+ code: z.ZodOptional<z.ZodString>;
2962
+ unnecessary: z.ZodOptional<z.ZodBoolean>;
2963
+ deprecated: z.ZodOptional<z.ZodBoolean>;
2964
+ }, z.core.$strip>>;
2965
+ session: z.ZodString;
2966
+ }, z.core.$strip>;
2967
+ /** A server of the folder of a file the client has open started, ended or couldn't start. */
2968
+ 'lsp/server': z.ZodObject<{
2969
+ server: z.ZodEnum<{
2970
+ css: "css";
2971
+ html: "html";
2972
+ json: "json";
2973
+ typescript: "typescript";
2974
+ }>;
2975
+ state: z.ZodEnum<{
2976
+ failed: "failed";
2977
+ running: "running";
2978
+ starting: "starting";
2979
+ stopped: "stopped";
2980
+ }>;
2981
+ error: z.ZodOptional<z.ZodString>;
2982
+ session: z.ZodString;
2983
+ }, z.core.$strip>;
2984
+ };
2985
+ /** What the server asks a client and waits on, only of a client that said at `initialize` it can. */
2986
+ export declare const requestsToClient: {
2987
+ /** Opens `url` in the Preview beside the thread the user looks at; answered once the page loaded, or with why it didn't. */
2988
+ 'preview/open': {
2989
+ params: z.ZodObject<{
2990
+ url: z.ZodString;
2991
+ }, z.core.$strip>;
2992
+ result: z.ZodObject<{
2993
+ error: z.ZodOptional<z.ZodString>;
2994
+ }, z.core.$strip>;
2995
+ };
2996
+ /** The page the Preview shows, as drawn now; `null` when it shows none. */
2997
+ 'preview/capture': {
2998
+ params: z.ZodObject<{}, z.core.$strip>;
2999
+ result: z.ZodNullable<z.ZodObject<{
3000
+ url: z.ZodString;
3001
+ data: z.ZodString;
3002
+ mediaType: z.ZodLiteral<"image/png">;
3003
+ }, z.core.$strip>>;
3004
+ };
2256
3005
  };
2257
3006
  /** The params of everything a client sends, as the server's peer checks them. */
2258
3007
  export declare const clientSchemas: Record<string, z.ZodType>;
@@ -2270,9 +3019,15 @@ export type ServerContract = {
2270
3019
  };
2271
3020
  notifications: Inferred<typeof notificationsToServer>;
2272
3021
  };
2273
- /** What a client answers: for now only what the server tells it. */
3022
+ type RequestsToClient = typeof requestsToClient;
3023
+ /** What a client answers. */
2274
3024
  export type ClientContract = {
2275
- requests: Record<never, never>;
3025
+ requests: {
3026
+ [M in keyof RequestsToClient]: {
3027
+ params: z.infer<RequestsToClient[M]['params']>;
3028
+ result: z.infer<RequestsToClient[M]['result']>;
3029
+ };
3030
+ };
2276
3031
  notifications: Inferred<typeof notificationsToClient>;
2277
3032
  };
2278
3033
  //# sourceMappingURL=protocol.d.ts.map