@jinion/core 0.5.0 → 0.5.2

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 (226) hide show
  1. package/dist/agent/agent.d.ts +3 -0
  2. package/dist/agent/agent.d.ts.map +1 -1
  3. package/dist/agent/agent.js.map +1 -1
  4. package/dist/agent/claude/backend.d.ts +1 -1
  5. package/dist/agent/claude/backend.d.ts.map +1 -1
  6. package/dist/agent/claude/backend.js +2 -1
  7. package/dist/agent/claude/backend.js.map +1 -1
  8. package/dist/agent/claude/jinion-tools.d.ts +3 -1
  9. package/dist/agent/claude/jinion-tools.d.ts.map +1 -1
  10. package/dist/agent/claude/jinion-tools.js +10 -1
  11. package/dist/agent/claude/jinion-tools.js.map +1 -1
  12. package/dist/agent/claude/options.d.ts +4 -1
  13. package/dist/agent/claude/options.d.ts.map +1 -1
  14. package/dist/agent/claude/options.js +4 -4
  15. package/dist/agent/claude/options.js.map +1 -1
  16. package/dist/agent/claude/prompt.d.ts +2 -1
  17. package/dist/agent/claude/prompt.d.ts.map +1 -1
  18. package/dist/agent/claude/prompt.js +3 -1
  19. package/dist/agent/claude/prompt.js.map +1 -1
  20. package/dist/agent/claude/session.d.ts +9 -1
  21. package/dist/agent/claude/session.d.ts.map +1 -1
  22. package/dist/agent/claude/session.js +13 -3
  23. package/dist/agent/claude/session.js.map +1 -1
  24. package/dist/agent/claude/tool-calls.d.ts.map +1 -1
  25. package/dist/agent/claude/tool-calls.js +11 -2
  26. package/dist/agent/claude/tool-calls.js.map +1 -1
  27. package/dist/agent/codex/backend.d.ts +1 -1
  28. package/dist/agent/codex/backend.d.ts.map +1 -1
  29. package/dist/agent/codex/backend.js +2 -1
  30. package/dist/agent/codex/backend.js.map +1 -1
  31. package/dist/agent/codex/events.d.ts.map +1 -1
  32. package/dist/agent/codex/events.js +7 -4
  33. package/dist/agent/codex/events.js.map +1 -1
  34. package/dist/agent/codex/jinion-tools.d.ts +27 -4
  35. package/dist/agent/codex/jinion-tools.d.ts.map +1 -1
  36. package/dist/agent/codex/jinion-tools.js +18 -4
  37. package/dist/agent/codex/jinion-tools.js.map +1 -1
  38. package/dist/agent/codex/session.d.ts +3 -0
  39. package/dist/agent/codex/session.d.ts.map +1 -1
  40. package/dist/agent/codex/session.js +5 -2
  41. package/dist/agent/codex/session.js.map +1 -1
  42. package/dist/agent/demo/agent.d.ts +1 -0
  43. package/dist/agent/demo/agent.d.ts.map +1 -1
  44. package/dist/agent/demo/agent.js +3 -0
  45. package/dist/agent/demo/agent.js.map +1 -1
  46. package/dist/agent/demo/scenarios/pricing-card.d.ts +3 -0
  47. package/dist/agent/demo/scenarios/pricing-card.d.ts.map +1 -0
  48. package/dist/agent/demo/scenarios/pricing-card.js +43 -0
  49. package/dist/agent/demo/scenarios/pricing-card.js.map +1 -0
  50. package/dist/agent/demo/sessions.d.ts.map +1 -1
  51. package/dist/agent/demo/sessions.js +26 -1
  52. package/dist/agent/demo/sessions.js.map +1 -1
  53. package/dist/agent/review.d.ts +8 -2
  54. package/dist/agent/review.d.ts.map +1 -1
  55. package/dist/agent/review.js +27 -7
  56. package/dist/agent/review.js.map +1 -1
  57. package/dist/api/client.d.ts +212 -0
  58. package/dist/api/client.d.ts.map +1 -1
  59. package/dist/api/connection.d.ts +52 -0
  60. package/dist/api/connection.d.ts.map +1 -1
  61. package/dist/api/connection.js +2 -0
  62. package/dist/api/connection.js.map +1 -1
  63. package/dist/api/fields.d.ts +229 -1
  64. package/dist/api/fields.d.ts.map +1 -1
  65. package/dist/api/fields.js +3 -1
  66. package/dist/api/fields.js.map +1 -1
  67. package/dist/api/json-schema.d.ts +864 -221
  68. package/dist/api/json-schema.d.ts.map +1 -1
  69. package/dist/api/methods/git.d.ts.map +1 -1
  70. package/dist/api/methods/git.js +11 -1
  71. package/dist/api/methods/git.js.map +1 -1
  72. package/dist/api/methods/sessions.d.ts.map +1 -1
  73. package/dist/api/methods/sessions.js +3 -2
  74. package/dist/api/methods/sessions.js.map +1 -1
  75. package/dist/api/methods/team.d.ts +4 -0
  76. package/dist/api/methods/team.d.ts.map +1 -0
  77. package/dist/api/methods/team.js +30 -0
  78. package/dist/api/methods/team.js.map +1 -0
  79. package/dist/api/protocol.d.ts +792 -2
  80. package/dist/api/protocol.d.ts.map +1 -1
  81. package/dist/api/protocol.js +41 -5
  82. package/dist/api/protocol.js.map +1 -1
  83. package/dist/api/schemas.d.ts +496 -0
  84. package/dist/api/schemas.d.ts.map +1 -1
  85. package/dist/api/schemas.js +6 -0
  86. package/dist/api/schemas.js.map +1 -1
  87. package/dist/commands/builtin.d.ts.map +1 -1
  88. package/dist/commands/builtin.js +3 -0
  89. package/dist/commands/builtin.js.map +1 -1
  90. package/dist/commands/team.d.ts +4 -0
  91. package/dist/commands/team.d.ts.map +1 -0
  92. package/dist/commands/team.js +11 -0
  93. package/dist/commands/team.js.map +1 -0
  94. package/dist/controllers/context.d.ts +4 -0
  95. package/dist/controllers/context.d.ts.map +1 -1
  96. package/dist/controllers/context.js +4 -0
  97. package/dist/controllers/context.js.map +1 -1
  98. package/dist/controllers/conversation.d.ts +16 -0
  99. package/dist/controllers/conversation.d.ts.map +1 -1
  100. package/dist/controllers/decision-view.d.ts +20 -0
  101. package/dist/controllers/decision-view.d.ts.map +1 -0
  102. package/dist/controllers/decision-view.js +59 -0
  103. package/dist/controllers/decision-view.js.map +1 -0
  104. package/dist/controllers/decisions.d.ts +29 -0
  105. package/dist/controllers/decisions.d.ts.map +1 -0
  106. package/dist/controllers/decisions.js +199 -0
  107. package/dist/controllers/decisions.js.map +1 -0
  108. package/dist/controllers/jinion.d.ts +17 -1
  109. package/dist/controllers/jinion.d.ts.map +1 -1
  110. package/dist/controllers/jinion.js +89 -5
  111. package/dist/controllers/jinion.js.map +1 -1
  112. package/dist/controllers/session.d.ts +21 -1
  113. package/dist/controllers/session.d.ts.map +1 -1
  114. package/dist/controllers/session.js +63 -1
  115. package/dist/controllers/session.js.map +1 -1
  116. package/dist/controllers/team.d.ts +216 -0
  117. package/dist/controllers/team.d.ts.map +1 -0
  118. package/dist/controllers/team.js +208 -0
  119. package/dist/controllers/team.js.map +1 -0
  120. package/dist/controllers/turns.d.ts +6 -0
  121. package/dist/controllers/turns.d.ts.map +1 -1
  122. package/dist/controllers/turns.js +17 -7
  123. package/dist/controllers/turns.js.map +1 -1
  124. package/dist/conversation/entries.d.ts +36 -0
  125. package/dist/conversation/entries.d.ts.map +1 -1
  126. package/dist/conversation/entries.js +26 -0
  127. package/dist/conversation/entries.js.map +1 -1
  128. package/dist/conversation/reducer.d.ts +132 -0
  129. package/dist/conversation/reducer.d.ts.map +1 -1
  130. package/dist/conversation/reducer.js +30 -1
  131. package/dist/conversation/reducer.js.map +1 -1
  132. package/dist/conversation/session.d.ts +24 -0
  133. package/dist/conversation/session.d.ts.map +1 -1
  134. package/dist/conversation/store.d.ts +13 -0
  135. package/dist/conversation/store.d.ts.map +1 -1
  136. package/dist/conversation/store.js +31 -7
  137. package/dist/conversation/store.js.map +1 -1
  138. package/dist/feedback/shared.d.ts +16 -0
  139. package/dist/feedback/shared.d.ts.map +1 -1
  140. package/dist/git/message.d.ts +4 -0
  141. package/dist/git/message.d.ts.map +1 -0
  142. package/dist/git/message.js +25 -0
  143. package/dist/git/message.js.map +1 -0
  144. package/dist/git/repos.d.ts.map +1 -1
  145. package/dist/git/repos.js +3 -1
  146. package/dist/git/repos.js.map +1 -1
  147. package/dist/git/staging.d.ts +6 -2
  148. package/dist/git/staging.d.ts.map +1 -1
  149. package/dist/git/staging.js +15 -3
  150. package/dist/git/staging.js.map +1 -1
  151. package/dist/git/types.d.ts +2 -0
  152. package/dist/git/types.d.ts.map +1 -1
  153. package/dist/git/types.js +2 -0
  154. package/dist/git/types.js.map +1 -1
  155. package/dist/jinion-account/account.d.ts +178 -0
  156. package/dist/jinion-account/account.d.ts.map +1 -1
  157. package/dist/jinion-account/account.js +30 -0
  158. package/dist/jinion-account/account.js.map +1 -1
  159. package/dist/jinion-account/api.d.ts +169 -0
  160. package/dist/jinion-account/api.d.ts.map +1 -1
  161. package/dist/jinion-account/api.js +39 -1
  162. package/dist/jinion-account/api.js.map +1 -1
  163. package/dist/jinion-account/user.d.ts +22 -0
  164. package/dist/jinion-account/user.d.ts.map +1 -1
  165. package/dist/jinion-account/user.js +9 -0
  166. package/dist/jinion-account/user.js.map +1 -1
  167. package/dist/map/review.d.ts +6 -4
  168. package/dist/map/review.d.ts.map +1 -1
  169. package/dist/map/review.js +21 -7
  170. package/dist/map/review.js.map +1 -1
  171. package/dist/state/jinion-account.d.ts +6 -0
  172. package/dist/state/jinion-account.d.ts.map +1 -1
  173. package/dist/state/session.d.ts +150 -0
  174. package/dist/state/session.d.ts.map +1 -1
  175. package/dist/state/session.js +2 -0
  176. package/dist/state/session.js.map +1 -1
  177. package/dist/state/team.d.ts +151 -0
  178. package/dist/state/team.d.ts.map +1 -0
  179. package/dist/state/team.js +4 -0
  180. package/dist/state/team.js.map +1 -0
  181. package/dist/team/anchoring.d.ts +9 -0
  182. package/dist/team/anchoring.d.ts.map +1 -0
  183. package/dist/team/anchoring.js +26 -0
  184. package/dist/team/anchoring.js.map +1 -0
  185. package/dist/team/config.d.ts +16 -0
  186. package/dist/team/config.d.ts.map +1 -0
  187. package/dist/team/config.js +37 -0
  188. package/dist/team/config.js.map +1 -0
  189. package/dist/team/decision.d.ts +255 -0
  190. package/dist/team/decision.d.ts.map +1 -0
  191. package/dist/team/decision.js +82 -0
  192. package/dist/team/decision.js.map +1 -0
  193. package/dist/team/decisions.d.ts +98 -0
  194. package/dist/team/decisions.d.ts.map +1 -0
  195. package/dist/team/decisions.js +166 -0
  196. package/dist/team/decisions.js.map +1 -0
  197. package/dist/team/history.d.ts +27 -0
  198. package/dist/team/history.d.ts.map +1 -0
  199. package/dist/team/history.js +49 -0
  200. package/dist/team/history.js.map +1 -0
  201. package/dist/team/prompt.d.ts +20 -0
  202. package/dist/team/prompt.d.ts.map +1 -0
  203. package/dist/team/prompt.js +44 -0
  204. package/dist/team/prompt.js.map +1 -0
  205. package/dist/team/repository.d.ts +12 -0
  206. package/dist/team/repository.d.ts.map +1 -0
  207. package/dist/team/repository.js +32 -0
  208. package/dist/team/repository.js.map +1 -0
  209. package/dist/team/secrets.d.ts +3 -0
  210. package/dist/team/secrets.d.ts.map +1 -0
  211. package/dist/team/secrets.js +18 -0
  212. package/dist/team/secrets.js.map +1 -0
  213. package/dist/team/tools.d.ts +82 -0
  214. package/dist/team/tools.d.ts.map +1 -0
  215. package/dist/team/tools.js +46 -0
  216. package/dist/team/tools.js.map +1 -0
  217. package/dist/team/types.d.ts +178 -0
  218. package/dist/team/types.d.ts.map +1 -0
  219. package/dist/team/types.js +60 -0
  220. package/dist/team/types.js.map +1 -0
  221. package/dist/team/visibility.d.ts +9 -0
  222. package/dist/team/visibility.d.ts.map +1 -0
  223. package/dist/team/visibility.js +36 -0
  224. package/dist/team/visibility.js.map +1 -0
  225. package/package.json +1 -1
  226. package/schema/api.json +4040 -1136
@@ -145,6 +145,16 @@ export declare const requests: {
145
145
  user: "user";
146
146
  }>>;
147
147
  activated: z.ZodOptional<z.ZodBoolean>;
148
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
149
+ id: z.ZodString;
150
+ name: z.ZodString;
151
+ slug: z.ZodString;
152
+ role: z.ZodEnum<{
153
+ admin: "admin";
154
+ member: "member";
155
+ owner: "owner";
156
+ }>;
157
+ }, z.core.$strip>>>;
148
158
  }, z.core.$strip>>>;
149
159
  signals: z.ZodOptional<z.ZodBoolean>;
150
160
  notifications: z.ZodOptional<z.ZodBoolean>;
@@ -157,6 +167,88 @@ export declare const requests: {
157
167
  label: z.ZodString;
158
168
  }, z.core.$strip>>;
159
169
  }, z.core.$strip>>>;
170
+ team: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
171
+ state: z.ZodLiteral<"unlinked">;
172
+ }, z.core.$strip>, z.ZodObject<{
173
+ state: z.ZodLiteral<"invalid">;
174
+ problem: z.ZodString;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ state: z.ZodLiteral<"signed-out">;
177
+ }, z.core.$strip>, z.ZodObject<{
178
+ state: z.ZodLiteral<"member">;
179
+ role: z.ZodEnum<{
180
+ admin: "admin";
181
+ member: "member";
182
+ owner: "owner";
183
+ }>;
184
+ workspace: z.ZodObject<{
185
+ id: z.ZodString;
186
+ name: z.ZodString;
187
+ slug: z.ZodString;
188
+ }, z.core.$strip>;
189
+ project: z.ZodObject<{
190
+ id: z.ZodString;
191
+ name: z.ZodString;
192
+ remoteUrl: z.ZodOptional<z.ZodString>;
193
+ }, z.core.$strip>;
194
+ }, z.core.$strip>, z.ZodObject<{
195
+ state: z.ZodLiteral<"requested">;
196
+ workspace: z.ZodObject<{
197
+ name: z.ZodString;
198
+ }, z.core.$strip>;
199
+ }, z.core.$strip>, z.ZodObject<{
200
+ state: z.ZodLiteral<"no-access">;
201
+ workspace: z.ZodObject<{
202
+ name: z.ZodString;
203
+ }, z.core.$strip>;
204
+ canRequest: z.ZodBoolean;
205
+ }, z.core.$strip>, z.ZodObject<{
206
+ state: z.ZodLiteral<"not-found">;
207
+ }, z.core.$strip>, z.ZodObject<{
208
+ state: z.ZodLiteral<"mismatch">;
209
+ }, z.core.$strip>, z.ZodObject<{
210
+ state: z.ZodLiteral<"offline">;
211
+ known: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
212
+ state: z.ZodLiteral<"unlinked">;
213
+ }, z.core.$strip>, z.ZodObject<{
214
+ state: z.ZodLiteral<"invalid">;
215
+ problem: z.ZodString;
216
+ }, z.core.$strip>, z.ZodObject<{
217
+ state: z.ZodLiteral<"signed-out">;
218
+ }, z.core.$strip>, z.ZodObject<{
219
+ state: z.ZodLiteral<"member">;
220
+ role: z.ZodEnum<{
221
+ admin: "admin";
222
+ member: "member";
223
+ owner: "owner";
224
+ }>;
225
+ workspace: z.ZodObject<{
226
+ id: z.ZodString;
227
+ name: z.ZodString;
228
+ slug: z.ZodString;
229
+ }, z.core.$strip>;
230
+ project: z.ZodObject<{
231
+ id: z.ZodString;
232
+ name: z.ZodString;
233
+ remoteUrl: z.ZodOptional<z.ZodString>;
234
+ }, z.core.$strip>;
235
+ }, z.core.$strip>, z.ZodObject<{
236
+ state: z.ZodLiteral<"requested">;
237
+ workspace: z.ZodObject<{
238
+ name: z.ZodString;
239
+ }, z.core.$strip>;
240
+ }, z.core.$strip>, z.ZodObject<{
241
+ state: z.ZodLiteral<"no-access">;
242
+ workspace: z.ZodObject<{
243
+ name: z.ZodString;
244
+ }, z.core.$strip>;
245
+ canRequest: z.ZodBoolean;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ state: z.ZodLiteral<"not-found">;
248
+ }, z.core.$strip>, z.ZodObject<{
249
+ state: z.ZodLiteral<"mismatch">;
250
+ }, z.core.$strip>], "state">>;
251
+ }, z.core.$strip>], "state">>;
160
252
  }, z.core.$strip>;
161
253
  }, z.core.$strip>;
162
254
  };
@@ -166,13 +258,15 @@ export declare const requests: {
166
258
  };
167
259
  /**
168
260
  * A new conversation, or the saved one `resume` names, beside those open; one already open comes back instead.
169
- * `activate` makes it the one the user looks at, as a new tab is.
261
+ * `activate` makes it the one the user looks at, as a new tab is. With `takeOver`, one open in another Jinion is
262
+ * taken from it: that one stops its turn and lets go of it; it fails with `ApiCode.openElsewhere` when it doesn't.
170
263
  */
171
264
  'sessions/open': {
172
265
  params: z.ZodObject<{
173
266
  resume: z.ZodOptional<z.ZodString>;
174
267
  worktree: z.ZodOptional<z.ZodBoolean>;
175
268
  activate: z.ZodOptional<z.ZodBoolean>;
269
+ takeOver: z.ZodOptional<z.ZodBoolean>;
176
270
  }, z.core.$strip>;
177
271
  result: z.ZodObject<{
178
272
  session: z.ZodString;
@@ -297,6 +391,30 @@ export declare const requests: {
297
391
  added: z.ZodNumber;
298
392
  removed: z.ZodNumber;
299
393
  }, z.core.$strip>>;
394
+ }, z.core.$strip>, z.ZodObject<{
395
+ id: z.ZodString;
396
+ kind: z.ZodLiteral<"decision">;
397
+ decision: z.ZodString;
398
+ title: z.ZodString;
399
+ origin: z.ZodEnum<{
400
+ agent: "agent";
401
+ asked: "asked";
402
+ requested: "requested";
403
+ }>;
404
+ deleted: z.ZodOptional<z.ZodBoolean>;
405
+ kept: z.ZodOptional<z.ZodBoolean>;
406
+ by: z.ZodOptional<z.ZodString>;
407
+ madeAt: z.ZodOptional<z.ZodString>;
408
+ elsewhere: z.ZodOptional<z.ZodObject<{
409
+ branch: z.ZodNullable<z.ZodString>;
410
+ pullRequest: z.ZodNullable<z.ZodNumber>;
411
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
412
+ closed: "closed";
413
+ merged: "merged";
414
+ open: "open";
415
+ }>>;
416
+ paths: z.ZodArray<z.ZodString>;
417
+ }, z.core.$strip>>;
300
418
  }, z.core.$strip>, z.ZodObject<{
301
419
  id: z.ZodString;
302
420
  kind: z.ZodLiteral<"tool">;
@@ -479,6 +597,70 @@ export declare const requests: {
479
597
  disliked: "disliked";
480
598
  liked: "liked";
481
599
  }>>>;
600
+ decisions: z.ZodOptional<z.ZodObject<{
601
+ decisions: z.ZodArray<z.ZodObject<{
602
+ id: z.ZodString;
603
+ title: z.ZodString;
604
+ decision: z.ZodString;
605
+ reason: z.ZodString;
606
+ turnedDown: z.ZodNullable<z.ZodString>;
607
+ origin: z.ZodEnum<{
608
+ agent: "agent";
609
+ asked: "asked";
610
+ requested: "requested";
611
+ }>;
612
+ status: z.ZodEnum<{
613
+ active: "active";
614
+ archived: "archived";
615
+ draft: "draft";
616
+ superseded: "superseded";
617
+ }>;
618
+ author: z.ZodNullable<z.ZodObject<{
619
+ id: z.ZodNumber;
620
+ name: z.ZodNullable<z.ZodString>;
621
+ email: z.ZodString;
622
+ }, z.core.$strip>>;
623
+ backend: z.ZodString;
624
+ model: z.ZodString;
625
+ branch: z.ZodNullable<z.ZodString>;
626
+ baseCommit: z.ZodNullable<z.ZodString>;
627
+ paths: z.ZodArray<z.ZodString>;
628
+ symbols: z.ZodArray<z.ZodString>;
629
+ supersedes: z.ZodNullable<z.ZodString>;
630
+ supersededBy: z.ZodNullable<z.ZodString>;
631
+ anchors: z.ZodArray<z.ZodObject<{
632
+ sha: z.ZodString;
633
+ kind: z.ZodEnum<{
634
+ commit: "commit";
635
+ merge: "merge";
636
+ }>;
637
+ pullRequest: z.ZodNullable<z.ZodNumber>;
638
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
639
+ closed: "closed";
640
+ merged: "merged";
641
+ open: "open";
642
+ }>>;
643
+ baseBranch: z.ZodNullable<z.ZodString>;
644
+ }, z.core.$strip>>;
645
+ createdAt: z.ZodString;
646
+ updatedAt: z.ZodString;
647
+ version: z.ZodString;
648
+ state: z.ZodEnum<{
649
+ binding: "binding";
650
+ draft: "draft";
651
+ dropped: "dropped";
652
+ "not-pulled": "not-pulled";
653
+ "other-branch": "other-branch";
654
+ }>;
655
+ }, z.core.$strip>>;
656
+ counts: z.ZodRecord<z.ZodEnum<{
657
+ binding: "binding";
658
+ draft: "draft";
659
+ dropped: "dropped";
660
+ "not-pulled": "not-pulled";
661
+ "other-branch": "other-branch";
662
+ }>, z.ZodNumber>;
663
+ }, z.core.$strip>>;
482
664
  }, z.core.$strip>;
483
665
  seq: z.ZodNumber;
484
666
  }, z.core.$strip>;
@@ -751,6 +933,7 @@ export declare const requests: {
751
933
  changed: z.ZodNumber;
752
934
  ahead: z.ZodNumber;
753
935
  behind: z.ZodNumber;
936
+ upstream: z.ZodOptional<z.ZodBoolean>;
754
937
  repo: z.ZodObject<{
755
938
  root: z.ZodString;
756
939
  path: z.ZodString;
@@ -827,17 +1010,31 @@ export declare const requests: {
827
1010
  }, z.core.$strip>>;
828
1011
  }, z.core.$strip>;
829
1012
  };
830
- /** What is staged in the repository whose root is `repo`; the new commit, short. */
1013
+ /** What is staged in the repository whose root is `repo`; the new commit, short. With `amend`, into the last commit, its message replaced. */
831
1014
  'git/commit': {
832
1015
  params: z.ZodObject<{
833
1016
  session: z.ZodString;
834
1017
  repo: z.ZodString;
835
1018
  message: z.ZodString;
1019
+ amend: z.ZodOptional<z.ZodBoolean>;
836
1020
  }, z.core.$strip>;
837
1021
  result: z.ZodObject<{
838
1022
  commit: z.ZodString;
839
1023
  }, z.core.$strip>;
840
1024
  };
1025
+ /**
1026
+ * A commit message for what `repo` would commit, staged or, with nothing staged, changed, written by the session's
1027
+ * backend's small model in the way the repository's commits are; `unsupported` for a backend without one.
1028
+ */
1029
+ 'git/draft-message': {
1030
+ params: z.ZodObject<{
1031
+ session: z.ZodString;
1032
+ repo: z.ZodString;
1033
+ }, z.core.$strip>;
1034
+ result: z.ZodObject<{
1035
+ message: z.ZodString;
1036
+ }, z.core.$strip>;
1037
+ };
841
1038
  /** Brings the upstream of `repo`'s branch in, only when it fast-forwards; git's own words when it doesn't. */
842
1039
  'git/pull': {
843
1040
  params: z.ZodObject<{
@@ -1891,6 +2088,16 @@ export declare const requests: {
1891
2088
  user: "user";
1892
2089
  }>>;
1893
2090
  activated: z.ZodOptional<z.ZodBoolean>;
2091
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2092
+ id: z.ZodString;
2093
+ name: z.ZodString;
2094
+ slug: z.ZodString;
2095
+ role: z.ZodEnum<{
2096
+ admin: "admin";
2097
+ member: "member";
2098
+ owner: "owner";
2099
+ }>;
2100
+ }, z.core.$strip>>>;
1894
2101
  }, z.core.$strip>;
1895
2102
  };
1896
2103
  /** Opens the browser and is answered once signing in ends; meanwhile its link comes as `jinion/sign-in-link`. */
@@ -1907,6 +2114,16 @@ export declare const requests: {
1907
2114
  user: "user";
1908
2115
  }>>;
1909
2116
  activated: z.ZodOptional<z.ZodBoolean>;
2117
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2118
+ id: z.ZodString;
2119
+ name: z.ZodString;
2120
+ slug: z.ZodString;
2121
+ role: z.ZodEnum<{
2122
+ admin: "admin";
2123
+ member: "member";
2124
+ owner: "owner";
2125
+ }>;
2126
+ }, z.core.$strip>>>;
1910
2127
  }, z.core.$strip>;
1911
2128
  };
1912
2129
  'jinion/sign-in-cancel': {
@@ -1957,6 +2174,16 @@ export declare const requests: {
1957
2174
  user: "user";
1958
2175
  }>>;
1959
2176
  activated: z.ZodOptional<z.ZodBoolean>;
2177
+ workspaces: z.ZodOptional<z.ZodArray<z.ZodObject<{
2178
+ id: z.ZodString;
2179
+ name: z.ZodString;
2180
+ slug: z.ZodString;
2181
+ role: z.ZodEnum<{
2182
+ admin: "admin";
2183
+ member: "member";
2184
+ owner: "owner";
2185
+ }>;
2186
+ }, z.core.$strip>>>;
1960
2187
  }, z.core.$strip>;
1961
2188
  };
1962
2189
  /** The codes the user hands on to others, three, each for one person. */
@@ -1973,6 +2200,289 @@ export declare const requests: {
1973
2200
  usedBy: z.ZodOptional<z.ZodString>;
1974
2201
  }, z.core.$strip>>;
1975
2202
  };
2203
+ /** Checks again now, and answers with what the `team` field then says. */
2204
+ 'team/state': {
2205
+ params: z.ZodObject<{}, z.core.$strip>;
2206
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
2207
+ state: z.ZodLiteral<"unlinked">;
2208
+ }, z.core.$strip>, z.ZodObject<{
2209
+ state: z.ZodLiteral<"invalid">;
2210
+ problem: z.ZodString;
2211
+ }, z.core.$strip>, z.ZodObject<{
2212
+ state: z.ZodLiteral<"signed-out">;
2213
+ }, z.core.$strip>, z.ZodObject<{
2214
+ state: z.ZodLiteral<"member">;
2215
+ role: z.ZodEnum<{
2216
+ admin: "admin";
2217
+ member: "member";
2218
+ owner: "owner";
2219
+ }>;
2220
+ workspace: z.ZodObject<{
2221
+ id: z.ZodString;
2222
+ name: z.ZodString;
2223
+ slug: z.ZodString;
2224
+ }, z.core.$strip>;
2225
+ project: z.ZodObject<{
2226
+ id: z.ZodString;
2227
+ name: z.ZodString;
2228
+ remoteUrl: z.ZodOptional<z.ZodString>;
2229
+ }, z.core.$strip>;
2230
+ }, z.core.$strip>, z.ZodObject<{
2231
+ state: z.ZodLiteral<"requested">;
2232
+ workspace: z.ZodObject<{
2233
+ name: z.ZodString;
2234
+ }, z.core.$strip>;
2235
+ }, z.core.$strip>, z.ZodObject<{
2236
+ state: z.ZodLiteral<"no-access">;
2237
+ workspace: z.ZodObject<{
2238
+ name: z.ZodString;
2239
+ }, z.core.$strip>;
2240
+ canRequest: z.ZodBoolean;
2241
+ }, z.core.$strip>, z.ZodObject<{
2242
+ state: z.ZodLiteral<"not-found">;
2243
+ }, z.core.$strip>, z.ZodObject<{
2244
+ state: z.ZodLiteral<"mismatch">;
2245
+ }, z.core.$strip>, z.ZodObject<{
2246
+ state: z.ZodLiteral<"offline">;
2247
+ known: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2248
+ state: z.ZodLiteral<"unlinked">;
2249
+ }, z.core.$strip>, z.ZodObject<{
2250
+ state: z.ZodLiteral<"invalid">;
2251
+ problem: z.ZodString;
2252
+ }, z.core.$strip>, z.ZodObject<{
2253
+ state: z.ZodLiteral<"signed-out">;
2254
+ }, z.core.$strip>, z.ZodObject<{
2255
+ state: z.ZodLiteral<"member">;
2256
+ role: z.ZodEnum<{
2257
+ admin: "admin";
2258
+ member: "member";
2259
+ owner: "owner";
2260
+ }>;
2261
+ workspace: z.ZodObject<{
2262
+ id: z.ZodString;
2263
+ name: z.ZodString;
2264
+ slug: z.ZodString;
2265
+ }, z.core.$strip>;
2266
+ project: z.ZodObject<{
2267
+ id: z.ZodString;
2268
+ name: z.ZodString;
2269
+ remoteUrl: z.ZodOptional<z.ZodString>;
2270
+ }, z.core.$strip>;
2271
+ }, z.core.$strip>, z.ZodObject<{
2272
+ state: z.ZodLiteral<"requested">;
2273
+ workspace: z.ZodObject<{
2274
+ name: z.ZodString;
2275
+ }, z.core.$strip>;
2276
+ }, z.core.$strip>, z.ZodObject<{
2277
+ state: z.ZodLiteral<"no-access">;
2278
+ workspace: z.ZodObject<{
2279
+ name: z.ZodString;
2280
+ }, z.core.$strip>;
2281
+ canRequest: z.ZodBoolean;
2282
+ }, z.core.$strip>, z.ZodObject<{
2283
+ state: z.ZodLiteral<"not-found">;
2284
+ }, z.core.$strip>, z.ZodObject<{
2285
+ state: z.ZodLiteral<"mismatch">;
2286
+ }, z.core.$strip>], "state">>;
2287
+ }, z.core.$strip>], "state">;
2288
+ };
2289
+ /** The workspaces the user is in, with what they agree to by linking a project, to show before they link one. */
2290
+ 'team/workspaces': {
2291
+ params: z.ZodObject<{}, z.core.$strip>;
2292
+ result: z.ZodObject<{
2293
+ workspaces: z.ZodArray<z.ZodObject<{
2294
+ id: z.ZodString;
2295
+ name: z.ZodString;
2296
+ slug: z.ZodString;
2297
+ role: z.ZodEnum<{
2298
+ admin: "admin";
2299
+ member: "member";
2300
+ owner: "owner";
2301
+ }>;
2302
+ }, z.core.$strip>>;
2303
+ consent: z.ZodString;
2304
+ }, z.core.$strip>;
2305
+ };
2306
+ 'team/projects': {
2307
+ params: z.ZodObject<{
2308
+ workspace: z.ZodString;
2309
+ }, z.core.$strip>;
2310
+ result: z.ZodArray<z.ZodObject<{
2311
+ id: z.ZodString;
2312
+ name: z.ZodString;
2313
+ remoteUrl: z.ZodString;
2314
+ }, z.core.$strip>>;
2315
+ };
2316
+ /**
2317
+ * Writes jinion.config.json at the repository's root, for `project` or for a new project made for the repository,
2318
+ * which the user then commits. A config naming another project is refused with `fileExists` unless `overwrite`.
2319
+ */
2320
+ 'team/link': {
2321
+ params: z.ZodObject<{
2322
+ workspace: z.ZodString;
2323
+ project: z.ZodOptional<z.ZodString>;
2324
+ name: z.ZodOptional<z.ZodString>;
2325
+ overwrite: z.ZodOptional<z.ZodBoolean>;
2326
+ }, z.core.$strip>;
2327
+ result: z.ZodObject<{
2328
+ path: z.ZodString;
2329
+ project: z.ZodObject<{
2330
+ id: z.ZodString;
2331
+ name: z.ZodString;
2332
+ remoteUrl: z.ZodString;
2333
+ }, z.core.$strip>;
2334
+ }, z.core.$strip>;
2335
+ };
2336
+ /** Asks the admins of the project the config names to let the user in; answers with the state after. */
2337
+ 'team/request-access': {
2338
+ params: z.ZodObject<{
2339
+ message: z.ZodOptional<z.ZodString>;
2340
+ }, z.core.$strip>;
2341
+ result: z.ZodDiscriminatedUnion<[z.ZodObject<{
2342
+ state: z.ZodLiteral<"unlinked">;
2343
+ }, z.core.$strip>, z.ZodObject<{
2344
+ state: z.ZodLiteral<"invalid">;
2345
+ problem: z.ZodString;
2346
+ }, z.core.$strip>, z.ZodObject<{
2347
+ state: z.ZodLiteral<"signed-out">;
2348
+ }, z.core.$strip>, z.ZodObject<{
2349
+ state: z.ZodLiteral<"member">;
2350
+ role: z.ZodEnum<{
2351
+ admin: "admin";
2352
+ member: "member";
2353
+ owner: "owner";
2354
+ }>;
2355
+ workspace: z.ZodObject<{
2356
+ id: z.ZodString;
2357
+ name: z.ZodString;
2358
+ slug: z.ZodString;
2359
+ }, z.core.$strip>;
2360
+ project: z.ZodObject<{
2361
+ id: z.ZodString;
2362
+ name: z.ZodString;
2363
+ remoteUrl: z.ZodOptional<z.ZodString>;
2364
+ }, z.core.$strip>;
2365
+ }, z.core.$strip>, z.ZodObject<{
2366
+ state: z.ZodLiteral<"requested">;
2367
+ workspace: z.ZodObject<{
2368
+ name: z.ZodString;
2369
+ }, z.core.$strip>;
2370
+ }, z.core.$strip>, z.ZodObject<{
2371
+ state: z.ZodLiteral<"no-access">;
2372
+ workspace: z.ZodObject<{
2373
+ name: z.ZodString;
2374
+ }, z.core.$strip>;
2375
+ canRequest: z.ZodBoolean;
2376
+ }, z.core.$strip>, z.ZodObject<{
2377
+ state: z.ZodLiteral<"not-found">;
2378
+ }, z.core.$strip>, z.ZodObject<{
2379
+ state: z.ZodLiteral<"mismatch">;
2380
+ }, z.core.$strip>, z.ZodObject<{
2381
+ state: z.ZodLiteral<"offline">;
2382
+ known: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
2383
+ state: z.ZodLiteral<"unlinked">;
2384
+ }, z.core.$strip>, z.ZodObject<{
2385
+ state: z.ZodLiteral<"invalid">;
2386
+ problem: z.ZodString;
2387
+ }, z.core.$strip>, z.ZodObject<{
2388
+ state: z.ZodLiteral<"signed-out">;
2389
+ }, z.core.$strip>, z.ZodObject<{
2390
+ state: z.ZodLiteral<"member">;
2391
+ role: z.ZodEnum<{
2392
+ admin: "admin";
2393
+ member: "member";
2394
+ owner: "owner";
2395
+ }>;
2396
+ workspace: z.ZodObject<{
2397
+ id: z.ZodString;
2398
+ name: z.ZodString;
2399
+ slug: z.ZodString;
2400
+ }, z.core.$strip>;
2401
+ project: z.ZodObject<{
2402
+ id: z.ZodString;
2403
+ name: z.ZodString;
2404
+ remoteUrl: z.ZodOptional<z.ZodString>;
2405
+ }, z.core.$strip>;
2406
+ }, z.core.$strip>, z.ZodObject<{
2407
+ state: z.ZodLiteral<"requested">;
2408
+ workspace: z.ZodObject<{
2409
+ name: z.ZodString;
2410
+ }, z.core.$strip>;
2411
+ }, z.core.$strip>, z.ZodObject<{
2412
+ state: z.ZodLiteral<"no-access">;
2413
+ workspace: z.ZodObject<{
2414
+ name: z.ZodString;
2415
+ }, z.core.$strip>;
2416
+ canRequest: z.ZodBoolean;
2417
+ }, z.core.$strip>, z.ZodObject<{
2418
+ state: z.ZodLiteral<"not-found">;
2419
+ }, z.core.$strip>, z.ZodObject<{
2420
+ state: z.ZodLiteral<"mismatch">;
2421
+ }, z.core.$strip>], "state">>;
2422
+ }, z.core.$strip>], "state">;
2423
+ };
2424
+ /** A decision of the project's team as this machine's copy has it, such as one a `decision` entry names; null when it has none by that id. */
2425
+ 'team/decision': {
2426
+ params: z.ZodObject<{
2427
+ id: z.ZodString;
2428
+ }, z.core.$strip>;
2429
+ result: z.ZodNullable<z.ZodObject<{
2430
+ id: z.ZodString;
2431
+ title: z.ZodString;
2432
+ decision: z.ZodString;
2433
+ reason: z.ZodString;
2434
+ turnedDown: z.ZodNullable<z.ZodString>;
2435
+ origin: z.ZodEnum<{
2436
+ agent: "agent";
2437
+ asked: "asked";
2438
+ requested: "requested";
2439
+ }>;
2440
+ status: z.ZodEnum<{
2441
+ active: "active";
2442
+ archived: "archived";
2443
+ draft: "draft";
2444
+ superseded: "superseded";
2445
+ }>;
2446
+ author: z.ZodNullable<z.ZodObject<{
2447
+ id: z.ZodNumber;
2448
+ name: z.ZodNullable<z.ZodString>;
2449
+ email: z.ZodString;
2450
+ }, z.core.$strip>>;
2451
+ backend: z.ZodString;
2452
+ model: z.ZodString;
2453
+ branch: z.ZodNullable<z.ZodString>;
2454
+ baseCommit: z.ZodNullable<z.ZodString>;
2455
+ paths: z.ZodArray<z.ZodString>;
2456
+ symbols: z.ZodArray<z.ZodString>;
2457
+ supersedes: z.ZodNullable<z.ZodString>;
2458
+ supersededBy: z.ZodNullable<z.ZodString>;
2459
+ anchors: z.ZodArray<z.ZodObject<{
2460
+ sha: z.ZodString;
2461
+ kind: z.ZodEnum<{
2462
+ commit: "commit";
2463
+ merge: "merge";
2464
+ }>;
2465
+ pullRequest: z.ZodNullable<z.ZodNumber>;
2466
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
2467
+ closed: "closed";
2468
+ merged: "merged";
2469
+ open: "open";
2470
+ }>>;
2471
+ baseBranch: z.ZodNullable<z.ZodString>;
2472
+ }, z.core.$strip>>;
2473
+ createdAt: z.ZodString;
2474
+ updatedAt: z.ZodString;
2475
+ version: z.ZodString;
2476
+ }, z.core.$strip>>;
2477
+ };
2478
+ /** Its author's, or any as an admin; the `decision` entry of `session` that recorded it then says it was deleted. */
2479
+ 'team/delete-decision': {
2480
+ params: z.ZodObject<{
2481
+ id: z.ZodString;
2482
+ session: z.ZodOptional<z.ZodString>;
2483
+ }, z.core.$strip>;
2484
+ result: z.ZodNull;
2485
+ };
1976
2486
  /** A skill whose `path` the skill list gives, with its instructions and the other files of its folder. */
1977
2487
  'skills/read': {
1978
2488
  params: z.ZodObject<{
@@ -2521,6 +3031,50 @@ export declare const notificationsToClient: {
2521
3031
  }, z.core.$strip>, z.ZodObject<{
2522
3032
  type: z.ZodLiteral<"switch-agent">;
2523
3033
  agent: z.ZodString;
3034
+ }, z.core.$strip>, z.ZodObject<{
3035
+ type: z.ZodLiteral<"decision">;
3036
+ decision: z.ZodString;
3037
+ title: z.ZodString;
3038
+ origin: z.ZodEnum<{
3039
+ agent: "agent";
3040
+ asked: "asked";
3041
+ requested: "requested";
3042
+ }>;
3043
+ }, z.core.$strip>, z.ZodObject<{
3044
+ type: z.ZodLiteral<"decision-deleted">;
3045
+ decision: z.ZodString;
3046
+ }, z.core.$strip>, z.ZodObject<{
3047
+ type: z.ZodLiteral<"decision-kept">;
3048
+ decision: z.ZodString;
3049
+ title: z.ZodString;
3050
+ origin: z.ZodEnum<{
3051
+ agent: "agent";
3052
+ asked: "asked";
3053
+ requested: "requested";
3054
+ }>;
3055
+ by: z.ZodString;
3056
+ madeAt: z.ZodOptional<z.ZodString>;
3057
+ }, z.core.$strip>, z.ZodObject<{
3058
+ type: z.ZodLiteral<"decision-elsewhere">;
3059
+ decision: z.ZodString;
3060
+ title: z.ZodString;
3061
+ origin: z.ZodEnum<{
3062
+ agent: "agent";
3063
+ asked: "asked";
3064
+ requested: "requested";
3065
+ }>;
3066
+ by: z.ZodString;
3067
+ madeAt: z.ZodString;
3068
+ elsewhere: z.ZodObject<{
3069
+ branch: z.ZodNullable<z.ZodString>;
3070
+ pullRequest: z.ZodNullable<z.ZodNumber>;
3071
+ pullRequestState: z.ZodNullable<z.ZodEnum<{
3072
+ closed: "closed";
3073
+ merged: "merged";
3074
+ open: "open";
3075
+ }>>;
3076
+ paths: z.ZodArray<z.ZodString>;
3077
+ }, z.core.$strip>;
2524
3078
  }, z.core.$strip>], "type">;
2525
3079
  at: z.ZodNumber;
2526
3080
  seq: z.ZodNumber;
@@ -2604,6 +3158,42 @@ export declare const notificationsToClient: {
2604
3158
  wantsWorktree: boolean;
2605
3159
  working: boolean;
2606
3160
  ratings?: Record<string, "disliked" | "liked"> | undefined;
3161
+ decisions?: {
3162
+ decisions: {
3163
+ id: string;
3164
+ title: string;
3165
+ decision: string;
3166
+ reason: string;
3167
+ turnedDown: string | null;
3168
+ origin: "agent" | "asked" | "requested";
3169
+ status: "active" | "archived" | "draft" | "superseded";
3170
+ author: {
3171
+ id: number;
3172
+ name: string | null;
3173
+ email: string;
3174
+ } | null;
3175
+ backend: string;
3176
+ model: string;
3177
+ branch: string | null;
3178
+ baseCommit: string | null;
3179
+ paths: string[];
3180
+ symbols: string[];
3181
+ supersedes: string | null;
3182
+ supersededBy: string | null;
3183
+ anchors: {
3184
+ sha: string;
3185
+ kind: "commit" | "merge";
3186
+ pullRequest: number | null;
3187
+ pullRequestState: "closed" | "merged" | "open" | null;
3188
+ baseBranch: string | null;
3189
+ }[];
3190
+ createdAt: string;
3191
+ updatedAt: string;
3192
+ version: string;
3193
+ state: "binding" | "draft" | "dropped" | "not-pulled" | "other-branch";
3194
+ }[];
3195
+ counts: Record<"binding" | "draft" | "dropped" | "not-pulled" | "other-branch", number>;
3196
+ } | undefined;
2607
3197
  }> & {
2608
3198
  session: string;
2609
3199
  }, unknown, z.core.$ZodTypeInternals<import("./schemas.js").FieldChange<{
@@ -2684,6 +3274,42 @@ export declare const notificationsToClient: {
2684
3274
  wantsWorktree: boolean;
2685
3275
  working: boolean;
2686
3276
  ratings?: Record<string, "disliked" | "liked"> | undefined;
3277
+ decisions?: {
3278
+ decisions: {
3279
+ id: string;
3280
+ title: string;
3281
+ decision: string;
3282
+ reason: string;
3283
+ turnedDown: string | null;
3284
+ origin: "agent" | "asked" | "requested";
3285
+ status: "active" | "archived" | "draft" | "superseded";
3286
+ author: {
3287
+ id: number;
3288
+ name: string | null;
3289
+ email: string;
3290
+ } | null;
3291
+ backend: string;
3292
+ model: string;
3293
+ branch: string | null;
3294
+ baseCommit: string | null;
3295
+ paths: string[];
3296
+ symbols: string[];
3297
+ supersedes: string | null;
3298
+ supersededBy: string | null;
3299
+ anchors: {
3300
+ sha: string;
3301
+ kind: "commit" | "merge";
3302
+ pullRequest: number | null;
3303
+ pullRequestState: "closed" | "merged" | "open" | null;
3304
+ baseBranch: string | null;
3305
+ }[];
3306
+ createdAt: string;
3307
+ updatedAt: string;
3308
+ version: string;
3309
+ state: "binding" | "draft" | "dropped" | "not-pulled" | "other-branch";
3310
+ }[];
3311
+ counts: Record<"binding" | "draft" | "dropped" | "not-pulled" | "other-branch", number>;
3312
+ } | undefined;
2687
3313
  }> & {
2688
3314
  session: string;
2689
3315
  }, unknown>>;
@@ -2741,6 +3367,12 @@ export declare const notificationsToClient: {
2741
3367
  avatarUrl: string | null;
2742
3368
  role?: "admin" | "superadmin" | "user" | undefined;
2743
3369
  activated?: boolean | undefined;
3370
+ workspaces?: {
3371
+ id: string;
3372
+ name: string;
3373
+ slug: string;
3374
+ role: "admin" | "member" | "owner";
3375
+ }[] | undefined;
2744
3376
  } | null | undefined;
2745
3377
  signals?: boolean | undefined;
2746
3378
  notifications?: boolean | undefined;
@@ -2753,6 +3385,80 @@ export declare const notificationsToClient: {
2753
3385
  label: string;
2754
3386
  } | undefined;
2755
3387
  }[] | undefined;
3388
+ team?: {
3389
+ state: "unlinked";
3390
+ } | {
3391
+ state: "invalid";
3392
+ problem: string;
3393
+ } | {
3394
+ state: "signed-out";
3395
+ } | {
3396
+ state: "member";
3397
+ role: "admin" | "member" | "owner";
3398
+ workspace: {
3399
+ id: string;
3400
+ name: string;
3401
+ slug: string;
3402
+ };
3403
+ project: {
3404
+ id: string;
3405
+ name: string;
3406
+ remoteUrl?: string | undefined;
3407
+ };
3408
+ } | {
3409
+ state: "requested";
3410
+ workspace: {
3411
+ name: string;
3412
+ };
3413
+ } | {
3414
+ state: "no-access";
3415
+ workspace: {
3416
+ name: string;
3417
+ };
3418
+ canRequest: boolean;
3419
+ } | {
3420
+ state: "not-found";
3421
+ } | {
3422
+ state: "mismatch";
3423
+ } | {
3424
+ state: "offline";
3425
+ known?: {
3426
+ state: "unlinked";
3427
+ } | {
3428
+ state: "invalid";
3429
+ problem: string;
3430
+ } | {
3431
+ state: "signed-out";
3432
+ } | {
3433
+ state: "member";
3434
+ role: "admin" | "member" | "owner";
3435
+ workspace: {
3436
+ id: string;
3437
+ name: string;
3438
+ slug: string;
3439
+ };
3440
+ project: {
3441
+ id: string;
3442
+ name: string;
3443
+ remoteUrl?: string | undefined;
3444
+ };
3445
+ } | {
3446
+ state: "requested";
3447
+ workspace: {
3448
+ name: string;
3449
+ };
3450
+ } | {
3451
+ state: "no-access";
3452
+ workspace: {
3453
+ name: string;
3454
+ };
3455
+ canRequest: boolean;
3456
+ } | {
3457
+ state: "not-found";
3458
+ } | {
3459
+ state: "mismatch";
3460
+ } | undefined;
3461
+ } | undefined;
2756
3462
  }>, unknown, z.core.$ZodTypeInternals<import("./schemas.js").FieldChange<{
2757
3463
  agents: {
2758
3464
  name: string;
@@ -2807,6 +3513,12 @@ export declare const notificationsToClient: {
2807
3513
  avatarUrl: string | null;
2808
3514
  role?: "admin" | "superadmin" | "user" | undefined;
2809
3515
  activated?: boolean | undefined;
3516
+ workspaces?: {
3517
+ id: string;
3518
+ name: string;
3519
+ slug: string;
3520
+ role: "admin" | "member" | "owner";
3521
+ }[] | undefined;
2810
3522
  } | null | undefined;
2811
3523
  signals?: boolean | undefined;
2812
3524
  notifications?: boolean | undefined;
@@ -2819,6 +3531,80 @@ export declare const notificationsToClient: {
2819
3531
  label: string;
2820
3532
  } | undefined;
2821
3533
  }[] | undefined;
3534
+ team?: {
3535
+ state: "unlinked";
3536
+ } | {
3537
+ state: "invalid";
3538
+ problem: string;
3539
+ } | {
3540
+ state: "signed-out";
3541
+ } | {
3542
+ state: "member";
3543
+ role: "admin" | "member" | "owner";
3544
+ workspace: {
3545
+ id: string;
3546
+ name: string;
3547
+ slug: string;
3548
+ };
3549
+ project: {
3550
+ id: string;
3551
+ name: string;
3552
+ remoteUrl?: string | undefined;
3553
+ };
3554
+ } | {
3555
+ state: "requested";
3556
+ workspace: {
3557
+ name: string;
3558
+ };
3559
+ } | {
3560
+ state: "no-access";
3561
+ workspace: {
3562
+ name: string;
3563
+ };
3564
+ canRequest: boolean;
3565
+ } | {
3566
+ state: "not-found";
3567
+ } | {
3568
+ state: "mismatch";
3569
+ } | {
3570
+ state: "offline";
3571
+ known?: {
3572
+ state: "unlinked";
3573
+ } | {
3574
+ state: "invalid";
3575
+ problem: string;
3576
+ } | {
3577
+ state: "signed-out";
3578
+ } | {
3579
+ state: "member";
3580
+ role: "admin" | "member" | "owner";
3581
+ workspace: {
3582
+ id: string;
3583
+ name: string;
3584
+ slug: string;
3585
+ };
3586
+ project: {
3587
+ id: string;
3588
+ name: string;
3589
+ remoteUrl?: string | undefined;
3590
+ };
3591
+ } | {
3592
+ state: "requested";
3593
+ workspace: {
3594
+ name: string;
3595
+ };
3596
+ } | {
3597
+ state: "no-access";
3598
+ workspace: {
3599
+ name: string;
3600
+ };
3601
+ canRequest: boolean;
3602
+ } | {
3603
+ state: "not-found";
3604
+ } | {
3605
+ state: "mismatch";
3606
+ } | undefined;
3607
+ } | undefined;
2822
3608
  }>, unknown>>;
2823
3609
  /** A command asked to show something, such as a picker. */
2824
3610
  'screen/view': z.ZodObject<{
@@ -2873,6 +3659,10 @@ export declare const notificationsToClient: {
2873
3659
  id: z.ZodLiteral<"map">;
2874
3660
  }, z.core.$strip>, z.ZodObject<{
2875
3661
  id: z.ZodLiteral<"release-notes">;
3662
+ }, z.core.$strip>, z.ZodObject<{
3663
+ id: z.ZodLiteral<"decisions">;
3664
+ }, z.core.$strip>, z.ZodObject<{
3665
+ id: z.ZodLiteral<"link">;
2876
3666
  }, z.core.$strip>], "id">;
2877
3667
  }, z.core.$strip>;
2878
3668
  /** Text for the prompt of `session`, e.g. the message a rewind went back to. */