@a5c-ai/tasks-mux 5.0.1-staging.04ca6ab00d21

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 (175) hide show
  1. package/README.md +103 -0
  2. package/dist/auth/forge-interface.d.ts +67 -0
  3. package/dist/auth/forge-interface.d.ts.map +1 -0
  4. package/dist/auth/forge-interface.js +69 -0
  5. package/dist/auth/github-app.d.ts +64 -0
  6. package/dist/auth/github-app.d.ts.map +1 -0
  7. package/dist/auth/github-app.js +141 -0
  8. package/dist/auth/github-oauth.d.ts +27 -0
  9. package/dist/auth/github-oauth.d.ts.map +1 -0
  10. package/dist/auth/github-oauth.js +89 -0
  11. package/dist/auth/index.d.ts +8 -0
  12. package/dist/auth/index.d.ts.map +1 -0
  13. package/dist/auth/index.js +14 -0
  14. package/dist/auth/jwt.d.ts +24 -0
  15. package/dist/auth/jwt.d.ts.map +1 -0
  16. package/dist/auth/jwt.js +43 -0
  17. package/dist/auth/middleware.d.ts +22 -0
  18. package/dist/auth/middleware.d.ts.map +1 -0
  19. package/dist/auth/middleware.js +36 -0
  20. package/dist/auth/ssh-keys.d.ts +21 -0
  21. package/dist/auth/ssh-keys.d.ts.map +1 -0
  22. package/dist/auth/ssh-keys.js +59 -0
  23. package/dist/auth/types.d.ts +165 -0
  24. package/dist/auth/types.d.ts.map +1 -0
  25. package/dist/auth/types.js +53 -0
  26. package/dist/backend.d.ts +117 -0
  27. package/dist/backend.d.ts.map +1 -0
  28. package/dist/backend.js +15 -0
  29. package/dist/backends/git-native.d.ts +51 -0
  30. package/dist/backends/git-native.d.ts.map +1 -0
  31. package/dist/backends/git-native.js +324 -0
  32. package/dist/backends/github-issues.d.ts +77 -0
  33. package/dist/backends/github-issues.d.ts.map +1 -0
  34. package/dist/backends/github-issues.js +796 -0
  35. package/dist/backends/index.d.ts +48 -0
  36. package/dist/backends/index.d.ts.map +1 -0
  37. package/dist/backends/index.js +139 -0
  38. package/dist/backends/server.d.ts +41 -0
  39. package/dist/backends/server.d.ts.map +1 -0
  40. package/dist/backends/server.js +298 -0
  41. package/dist/cli/auth-store.d.ts +49 -0
  42. package/dist/cli/auth-store.d.ts.map +1 -0
  43. package/dist/cli/auth-store.js +150 -0
  44. package/dist/cli/client-config.d.ts +10 -0
  45. package/dist/cli/client-config.d.ts.map +1 -0
  46. package/dist/cli/client-config.js +87 -0
  47. package/dist/cli/commands/ask.d.ts +3 -0
  48. package/dist/cli/commands/ask.d.ts.map +1 -0
  49. package/dist/cli/commands/ask.js +171 -0
  50. package/dist/cli/commands/auth.d.ts +3 -0
  51. package/dist/cli/commands/auth.d.ts.map +1 -0
  52. package/dist/cli/commands/auth.js +510 -0
  53. package/dist/cli/commands/breakpoints.d.ts +3 -0
  54. package/dist/cli/commands/breakpoints.d.ts.map +1 -0
  55. package/dist/cli/commands/breakpoints.js +152 -0
  56. package/dist/cli/commands/responder-loop.d.ts +3 -0
  57. package/dist/cli/commands/responder-loop.d.ts.map +1 -0
  58. package/dist/cli/commands/responder-loop.js +78 -0
  59. package/dist/cli/commands/responders.d.ts +3 -0
  60. package/dist/cli/commands/responders.d.ts.map +1 -0
  61. package/dist/cli/commands/responders.js +74 -0
  62. package/dist/cli/commands/server.d.ts +3 -0
  63. package/dist/cli/commands/server.d.ts.map +1 -0
  64. package/dist/cli/commands/server.js +34 -0
  65. package/dist/cli/index.d.ts +4 -0
  66. package/dist/cli/index.d.ts.map +1 -0
  67. package/dist/cli/index.js +9 -0
  68. package/dist/cli/output.d.ts +26 -0
  69. package/dist/cli/output.d.ts.map +1 -0
  70. package/dist/cli/output.js +143 -0
  71. package/dist/cli/program.d.ts +6 -0
  72. package/dist/cli/program.d.ts.map +1 -0
  73. package/dist/cli/program.js +32 -0
  74. package/dist/client/answer-poller.d.ts +52 -0
  75. package/dist/client/answer-poller.d.ts.map +1 -0
  76. package/dist/client/answer-poller.js +199 -0
  77. package/dist/client/auth-client.d.ts +200 -0
  78. package/dist/client/auth-client.d.ts.map +1 -0
  79. package/dist/client/auth-client.js +309 -0
  80. package/dist/client/breakpoint-router.d.ts +45 -0
  81. package/dist/client/breakpoint-router.d.ts.map +1 -0
  82. package/dist/client/breakpoint-router.js +45 -0
  83. package/dist/client/index.d.ts +17 -0
  84. package/dist/client/index.d.ts.map +1 -0
  85. package/dist/client/index.js +16 -0
  86. package/dist/client/profile-validator.d.ts +34 -0
  87. package/dist/client/profile-validator.d.ts.map +1 -0
  88. package/dist/client/profile-validator.js +89 -0
  89. package/dist/client/responder-client.d.ts +39 -0
  90. package/dist/client/responder-client.d.ts.map +1 -0
  91. package/dist/client/responder-client.js +72 -0
  92. package/dist/client/responder-matcher.d.ts +49 -0
  93. package/dist/client/responder-matcher.d.ts.map +1 -0
  94. package/dist/client/responder-matcher.js +226 -0
  95. package/dist/client/server-client.d.ts +124 -0
  96. package/dist/client/server-client.d.ts.map +1 -0
  97. package/dist/client/server-client.js +266 -0
  98. package/dist/client/timeout-manager.d.ts +47 -0
  99. package/dist/client/timeout-manager.d.ts.map +1 -0
  100. package/dist/client/timeout-manager.js +77 -0
  101. package/dist/config.d.ts +20 -0
  102. package/dist/config.d.ts.map +1 -0
  103. package/dist/config.js +93 -0
  104. package/dist/harness/index.d.ts +4 -0
  105. package/dist/harness/index.d.ts.map +1 -0
  106. package/dist/harness/index.js +2 -0
  107. package/dist/harness/interaction-provider.d.ts +71 -0
  108. package/dist/harness/interaction-provider.d.ts.map +1 -0
  109. package/dist/harness/interaction-provider.js +124 -0
  110. package/dist/harness/routing-rules.d.ts +7 -0
  111. package/dist/harness/routing-rules.d.ts.map +1 -0
  112. package/dist/harness/routing-rules.js +37 -0
  113. package/dist/index.d.ts +19 -0
  114. package/dist/index.d.ts.map +1 -0
  115. package/dist/index.js +26 -0
  116. package/dist/mcp/backend-resolver.d.ts +43 -0
  117. package/dist/mcp/backend-resolver.d.ts.map +1 -0
  118. package/dist/mcp/backend-resolver.js +111 -0
  119. package/dist/mcp/http-transport.d.ts +37 -0
  120. package/dist/mcp/http-transport.d.ts.map +1 -0
  121. package/dist/mcp/http-transport.js +103 -0
  122. package/dist/mcp/index.d.ts +14 -0
  123. package/dist/mcp/index.d.ts.map +1 -0
  124. package/dist/mcp/index.js +11 -0
  125. package/dist/mcp/server.d.ts +20 -0
  126. package/dist/mcp/server.d.ts.map +1 -0
  127. package/dist/mcp/server.js +121 -0
  128. package/dist/mcp/tools/answer-breakpoint.d.ts +32 -0
  129. package/dist/mcp/tools/answer-breakpoint.d.ts.map +1 -0
  130. package/dist/mcp/tools/answer-breakpoint.js +45 -0
  131. package/dist/mcp/tools/ask-breakpoint.d.ts +58 -0
  132. package/dist/mcp/tools/ask-breakpoint.d.ts.map +1 -0
  133. package/dist/mcp/tools/ask-breakpoint.js +78 -0
  134. package/dist/mcp/tools/check-status.d.ts +16 -0
  135. package/dist/mcp/tools/check-status.d.ts.map +1 -0
  136. package/dist/mcp/tools/check-status.js +18 -0
  137. package/dist/mcp/tools/claim-breakpoint.d.ts +18 -0
  138. package/dist/mcp/tools/claim-breakpoint.d.ts.map +1 -0
  139. package/dist/mcp/tools/claim-breakpoint.js +28 -0
  140. package/dist/mcp/tools/list-breakpoints.d.ts +16 -0
  141. package/dist/mcp/tools/list-breakpoints.d.ts.map +1 -0
  142. package/dist/mcp/tools/list-breakpoints.js +14 -0
  143. package/dist/mcp/tools/list-responders.d.ts +18 -0
  144. package/dist/mcp/tools/list-responders.d.ts.map +1 -0
  145. package/dist/mcp/tools/list-responders.js +37 -0
  146. package/dist/mcp/tools/poll-breakpoints.d.ts +18 -0
  147. package/dist/mcp/tools/poll-breakpoints.d.ts.map +1 -0
  148. package/dist/mcp/tools/poll-breakpoints.js +36 -0
  149. package/dist/mcp/tools/verify-answer.d.ts +16 -0
  150. package/dist/mcp/tools/verify-answer.d.ts.map +1 -0
  151. package/dist/mcp/tools/verify-answer.js +38 -0
  152. package/dist/proven/index.d.ts +5 -0
  153. package/dist/proven/index.d.ts.map +1 -0
  154. package/dist/proven/index.js +3 -0
  155. package/dist/proven/keys.d.ts +33 -0
  156. package/dist/proven/keys.d.ts.map +1 -0
  157. package/dist/proven/keys.js +117 -0
  158. package/dist/proven/sign.d.ts +16 -0
  159. package/dist/proven/sign.d.ts.map +1 -0
  160. package/dist/proven/sign.js +60 -0
  161. package/dist/proven/types.d.ts +26 -0
  162. package/dist/proven/types.d.ts.map +1 -0
  163. package/dist/proven/types.js +5 -0
  164. package/dist/proven/verify.d.ts +6 -0
  165. package/dist/proven/verify.d.ts.map +1 -0
  166. package/dist/proven/verify.js +58 -0
  167. package/dist/types.d.ts +4034 -0
  168. package/dist/types.d.ts.map +1 -0
  169. package/dist/types.js +244 -0
  170. package/package.json +95 -0
  171. package/responder/README.md +42 -0
  172. package/responder/backend-responder.json +9 -0
  173. package/responder/devops-responder.json +9 -0
  174. package/responder/frontend-responder.json +9 -0
  175. package/responder/schema.json +52 -0
@@ -0,0 +1,4034 @@
1
+ import { z } from "zod";
2
+ export declare const BreakpointStatusSchema: z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled"]>;
3
+ export type BreakpointStatus = z.infer<typeof BreakpointStatusSchema>;
4
+ export declare const BreakpointStrategySchema: z.ZodEnum<["single", "first-response-wins", "collect-all", "quorum"]>;
5
+ export type BreakpointStrategy = z.infer<typeof BreakpointStrategySchema>;
6
+ export declare const UrgencySchema: z.ZodEnum<["low", "medium", "high"]>;
7
+ export type Urgency = z.infer<typeof UrgencySchema>;
8
+ export declare const InteractionKindSchema: z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>;
9
+ export type InteractionKind = z.infer<typeof InteractionKindSchema>;
10
+ export declare const CodeSnippetSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
11
+ filename: z.ZodString;
12
+ code: z.ZodString;
13
+ language: z.ZodOptional<z.ZodString>;
14
+ }, "strip", z.ZodTypeAny, {
15
+ code: string;
16
+ filename: string;
17
+ language?: string | undefined;
18
+ }, {
19
+ code: string;
20
+ filename: string;
21
+ language?: string | undefined;
22
+ }>]>;
23
+ export type CodeSnippet = z.infer<typeof CodeSnippetSchema>;
24
+ export declare const BreakpointContextLinkSchema: z.ZodObject<{
25
+ label: z.ZodString;
26
+ url: z.ZodString;
27
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
28
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
29
+ label: z.ZodString;
30
+ url: z.ZodString;
31
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
32
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
33
+ label: z.ZodString;
34
+ url: z.ZodString;
35
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
36
+ }, z.ZodUnknown, "strip">>;
37
+ export type BreakpointContextLink = z.infer<typeof BreakpointContextLinkSchema>;
38
+ export declare const BreakpointContextSectionSchema: z.ZodObject<{
39
+ title: z.ZodString;
40
+ markdown: z.ZodString;
41
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
42
+ title: z.ZodString;
43
+ markdown: z.ZodString;
44
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
45
+ title: z.ZodString;
46
+ markdown: z.ZodString;
47
+ }, z.ZodUnknown, "strip">>;
48
+ export type BreakpointContextSection = z.infer<typeof BreakpointContextSectionSchema>;
49
+ export declare const BreakpointContextArtifactSchema: z.ZodObject<{
50
+ label: z.ZodString;
51
+ url: z.ZodString;
52
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
53
+ mimeType: z.ZodOptional<z.ZodString>;
54
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
55
+ label: z.ZodString;
56
+ url: z.ZodString;
57
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
58
+ mimeType: z.ZodOptional<z.ZodString>;
59
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
60
+ label: z.ZodString;
61
+ url: z.ZodString;
62
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
63
+ mimeType: z.ZodOptional<z.ZodString>;
64
+ }, z.ZodUnknown, "strip">>;
65
+ export type BreakpointContextArtifact = z.infer<typeof BreakpointContextArtifactSchema>;
66
+ export declare const BreakpointContextSchema: z.ZodObject<{
67
+ description: z.ZodString;
68
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
69
+ filename: z.ZodString;
70
+ code: z.ZodString;
71
+ language: z.ZodOptional<z.ZodString>;
72
+ }, "strip", z.ZodTypeAny, {
73
+ code: string;
74
+ filename: string;
75
+ language?: string | undefined;
76
+ }, {
77
+ code: string;
78
+ filename: string;
79
+ language?: string | undefined;
80
+ }>]>, "many">;
81
+ fileReferences: z.ZodArray<z.ZodString, "many">;
82
+ tags: z.ZodArray<z.ZodString, "many">;
83
+ title: z.ZodOptional<z.ZodString>;
84
+ summary: z.ZodOptional<z.ZodString>;
85
+ markdown: z.ZodOptional<z.ZodString>;
86
+ domain: z.ZodOptional<z.ZodString>;
87
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
88
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
89
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
90
+ label: z.ZodString;
91
+ url: z.ZodString;
92
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
93
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
94
+ label: z.ZodString;
95
+ url: z.ZodString;
96
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
97
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
98
+ label: z.ZodString;
99
+ url: z.ZodString;
100
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
101
+ }, z.ZodUnknown, "strip">>, "many">>;
102
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
103
+ title: z.ZodString;
104
+ markdown: z.ZodString;
105
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
106
+ title: z.ZodString;
107
+ markdown: z.ZodString;
108
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
109
+ title: z.ZodString;
110
+ markdown: z.ZodString;
111
+ }, z.ZodUnknown, "strip">>, "many">>;
112
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
113
+ label: z.ZodString;
114
+ url: z.ZodString;
115
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
116
+ mimeType: z.ZodOptional<z.ZodString>;
117
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
118
+ label: z.ZodString;
119
+ url: z.ZodString;
120
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
121
+ mimeType: z.ZodOptional<z.ZodString>;
122
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
123
+ label: z.ZodString;
124
+ url: z.ZodString;
125
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
126
+ mimeType: z.ZodOptional<z.ZodString>;
127
+ }, z.ZodUnknown, "strip">>, "many">>;
128
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
129
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
130
+ description: z.ZodString;
131
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
132
+ filename: z.ZodString;
133
+ code: z.ZodString;
134
+ language: z.ZodOptional<z.ZodString>;
135
+ }, "strip", z.ZodTypeAny, {
136
+ code: string;
137
+ filename: string;
138
+ language?: string | undefined;
139
+ }, {
140
+ code: string;
141
+ filename: string;
142
+ language?: string | undefined;
143
+ }>]>, "many">;
144
+ fileReferences: z.ZodArray<z.ZodString, "many">;
145
+ tags: z.ZodArray<z.ZodString, "many">;
146
+ title: z.ZodOptional<z.ZodString>;
147
+ summary: z.ZodOptional<z.ZodString>;
148
+ markdown: z.ZodOptional<z.ZodString>;
149
+ domain: z.ZodOptional<z.ZodString>;
150
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
151
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
152
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
153
+ label: z.ZodString;
154
+ url: z.ZodString;
155
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
156
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
157
+ label: z.ZodString;
158
+ url: z.ZodString;
159
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
160
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
161
+ label: z.ZodString;
162
+ url: z.ZodString;
163
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
164
+ }, z.ZodUnknown, "strip">>, "many">>;
165
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
166
+ title: z.ZodString;
167
+ markdown: z.ZodString;
168
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
169
+ title: z.ZodString;
170
+ markdown: z.ZodString;
171
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
172
+ title: z.ZodString;
173
+ markdown: z.ZodString;
174
+ }, z.ZodUnknown, "strip">>, "many">>;
175
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
176
+ label: z.ZodString;
177
+ url: z.ZodString;
178
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
179
+ mimeType: z.ZodOptional<z.ZodString>;
180
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
181
+ label: z.ZodString;
182
+ url: z.ZodString;
183
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
184
+ mimeType: z.ZodOptional<z.ZodString>;
185
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
186
+ label: z.ZodString;
187
+ url: z.ZodString;
188
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
189
+ mimeType: z.ZodOptional<z.ZodString>;
190
+ }, z.ZodUnknown, "strip">>, "many">>;
191
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
192
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
193
+ description: z.ZodString;
194
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
195
+ filename: z.ZodString;
196
+ code: z.ZodString;
197
+ language: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ code: string;
200
+ filename: string;
201
+ language?: string | undefined;
202
+ }, {
203
+ code: string;
204
+ filename: string;
205
+ language?: string | undefined;
206
+ }>]>, "many">;
207
+ fileReferences: z.ZodArray<z.ZodString, "many">;
208
+ tags: z.ZodArray<z.ZodString, "many">;
209
+ title: z.ZodOptional<z.ZodString>;
210
+ summary: z.ZodOptional<z.ZodString>;
211
+ markdown: z.ZodOptional<z.ZodString>;
212
+ domain: z.ZodOptional<z.ZodString>;
213
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
214
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
215
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
216
+ label: z.ZodString;
217
+ url: z.ZodString;
218
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
219
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
220
+ label: z.ZodString;
221
+ url: z.ZodString;
222
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
223
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
224
+ label: z.ZodString;
225
+ url: z.ZodString;
226
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
227
+ }, z.ZodUnknown, "strip">>, "many">>;
228
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
229
+ title: z.ZodString;
230
+ markdown: z.ZodString;
231
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
232
+ title: z.ZodString;
233
+ markdown: z.ZodString;
234
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
235
+ title: z.ZodString;
236
+ markdown: z.ZodString;
237
+ }, z.ZodUnknown, "strip">>, "many">>;
238
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
239
+ label: z.ZodString;
240
+ url: z.ZodString;
241
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
242
+ mimeType: z.ZodOptional<z.ZodString>;
243
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
244
+ label: z.ZodString;
245
+ url: z.ZodString;
246
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
247
+ mimeType: z.ZodOptional<z.ZodString>;
248
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
249
+ label: z.ZodString;
250
+ url: z.ZodString;
251
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
252
+ mimeType: z.ZodOptional<z.ZodString>;
253
+ }, z.ZodUnknown, "strip">>, "many">>;
254
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
255
+ }, z.ZodUnknown, "strip">>;
256
+ export type BreakpointContext = z.infer<typeof BreakpointContextSchema>;
257
+ export declare const BreakpointRoutingSchema: z.ZodObject<{
258
+ strategy: z.ZodEnum<["single", "first-response-wins", "collect-all", "quorum"]>;
259
+ targetResponders: z.ZodArray<z.ZodString, "many">;
260
+ timeoutMs: z.ZodNumber;
261
+ presentToUser: z.ZodBoolean;
262
+ breakpointId: z.ZodOptional<z.ZodString>;
263
+ autoApproveAfterN: z.ZodOptional<z.ZodNumber>;
264
+ }, "strip", z.ZodTypeAny, {
265
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
266
+ targetResponders: string[];
267
+ timeoutMs: number;
268
+ presentToUser: boolean;
269
+ breakpointId?: string | undefined;
270
+ autoApproveAfterN?: number | undefined;
271
+ }, {
272
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
273
+ targetResponders: string[];
274
+ timeoutMs: number;
275
+ presentToUser: boolean;
276
+ breakpointId?: string | undefined;
277
+ autoApproveAfterN?: number | undefined;
278
+ }>;
279
+ export type BreakpointRouting = z.infer<typeof BreakpointRoutingSchema>;
280
+ export declare const ResponderProfileSchema: z.ZodObject<{
281
+ id: z.ZodString;
282
+ name: z.ZodString;
283
+ title: z.ZodString;
284
+ domains: z.ZodArray<z.ZodString, "many">;
285
+ tags: z.ZodArray<z.ZodString, "many">;
286
+ availability: z.ZodBoolean;
287
+ responseTimeSla: z.ZodNumber;
288
+ publicKeyFingerprint: z.ZodOptional<z.ZodString>;
289
+ }, "strict", z.ZodTypeAny, {
290
+ title: string;
291
+ tags: string[];
292
+ id: string;
293
+ name: string;
294
+ domains: string[];
295
+ availability: boolean;
296
+ responseTimeSla: number;
297
+ publicKeyFingerprint?: string | undefined;
298
+ }, {
299
+ title: string;
300
+ tags: string[];
301
+ id: string;
302
+ name: string;
303
+ domains: string[];
304
+ availability: boolean;
305
+ responseTimeSla: number;
306
+ publicKeyFingerprint?: string | undefined;
307
+ }>;
308
+ export type ResponderProfile = z.infer<typeof ResponderProfileSchema>;
309
+ export declare const BreakpointAnswerRatingSchema: z.ZodObject<{
310
+ helpful: z.ZodBoolean;
311
+ comment: z.ZodOptional<z.ZodString>;
312
+ ratedAt: z.ZodString;
313
+ }, "strip", z.ZodTypeAny, {
314
+ helpful: boolean;
315
+ ratedAt: string;
316
+ comment?: string | undefined;
317
+ }, {
318
+ helpful: boolean;
319
+ ratedAt: string;
320
+ comment?: string | undefined;
321
+ }>;
322
+ export type BreakpointAnswerRating = z.infer<typeof BreakpointAnswerRatingSchema>;
323
+ export declare const DecisionMemorySchema: z.ZodObject<{
324
+ applicabilityContext: z.ZodString;
325
+ reasoning: z.ZodString;
326
+ enrichedContext: z.ZodOptional<z.ZodString>;
327
+ savedAt: z.ZodString;
328
+ }, "strip", z.ZodTypeAny, {
329
+ applicabilityContext: string;
330
+ reasoning: string;
331
+ savedAt: string;
332
+ enrichedContext?: string | undefined;
333
+ }, {
334
+ applicabilityContext: string;
335
+ reasoning: string;
336
+ savedAt: string;
337
+ enrichedContext?: string | undefined;
338
+ }>;
339
+ export type DecisionMemory = z.infer<typeof DecisionMemorySchema>;
340
+ export declare const BreakpointAnswerSchema: z.ZodObject<{
341
+ id: z.ZodString;
342
+ breakpointId: z.ZodString;
343
+ responderId: z.ZodString;
344
+ responderName: z.ZodString;
345
+ text: z.ZodString;
346
+ approved: z.ZodOptional<z.ZodBoolean>;
347
+ confidence: z.ZodNumber;
348
+ references: z.ZodArray<z.ZodString, "many">;
349
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
350
+ answeredAt: z.ZodString;
351
+ rating: z.ZodOptional<z.ZodObject<{
352
+ helpful: z.ZodBoolean;
353
+ comment: z.ZodOptional<z.ZodString>;
354
+ ratedAt: z.ZodString;
355
+ }, "strip", z.ZodTypeAny, {
356
+ helpful: boolean;
357
+ ratedAt: string;
358
+ comment?: string | undefined;
359
+ }, {
360
+ helpful: boolean;
361
+ ratedAt: string;
362
+ comment?: string | undefined;
363
+ }>>;
364
+ decisionMemory: z.ZodOptional<z.ZodObject<{
365
+ applicabilityContext: z.ZodString;
366
+ reasoning: z.ZodString;
367
+ enrichedContext: z.ZodOptional<z.ZodString>;
368
+ savedAt: z.ZodString;
369
+ }, "strip", z.ZodTypeAny, {
370
+ applicabilityContext: string;
371
+ reasoning: string;
372
+ savedAt: string;
373
+ enrichedContext?: string | undefined;
374
+ }, {
375
+ applicabilityContext: string;
376
+ reasoning: string;
377
+ savedAt: string;
378
+ enrichedContext?: string | undefined;
379
+ }>>;
380
+ }, "strip", z.ZodTypeAny, {
381
+ breakpointId: string;
382
+ id: string;
383
+ responderId: string;
384
+ responderName: string;
385
+ text: string;
386
+ confidence: number;
387
+ references: string[];
388
+ followUpQuestions: string[];
389
+ answeredAt: string;
390
+ approved?: boolean | undefined;
391
+ rating?: {
392
+ helpful: boolean;
393
+ ratedAt: string;
394
+ comment?: string | undefined;
395
+ } | undefined;
396
+ decisionMemory?: {
397
+ applicabilityContext: string;
398
+ reasoning: string;
399
+ savedAt: string;
400
+ enrichedContext?: string | undefined;
401
+ } | undefined;
402
+ }, {
403
+ breakpointId: string;
404
+ id: string;
405
+ responderId: string;
406
+ responderName: string;
407
+ text: string;
408
+ confidence: number;
409
+ references: string[];
410
+ followUpQuestions: string[];
411
+ answeredAt: string;
412
+ approved?: boolean | undefined;
413
+ rating?: {
414
+ helpful: boolean;
415
+ ratedAt: string;
416
+ comment?: string | undefined;
417
+ } | undefined;
418
+ decisionMemory?: {
419
+ applicabilityContext: string;
420
+ reasoning: string;
421
+ savedAt: string;
422
+ enrichedContext?: string | undefined;
423
+ } | undefined;
424
+ }>;
425
+ export type BreakpointAnswer = z.infer<typeof BreakpointAnswerSchema>;
426
+ export declare const ProvenBreakpointAnswerSchema: z.ZodObject<{
427
+ id: z.ZodString;
428
+ breakpointId: z.ZodString;
429
+ responderId: z.ZodString;
430
+ responderName: z.ZodString;
431
+ text: z.ZodString;
432
+ approved: z.ZodOptional<z.ZodBoolean>;
433
+ confidence: z.ZodNumber;
434
+ references: z.ZodArray<z.ZodString, "many">;
435
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
436
+ answeredAt: z.ZodString;
437
+ rating: z.ZodOptional<z.ZodObject<{
438
+ helpful: z.ZodBoolean;
439
+ comment: z.ZodOptional<z.ZodString>;
440
+ ratedAt: z.ZodString;
441
+ }, "strip", z.ZodTypeAny, {
442
+ helpful: boolean;
443
+ ratedAt: string;
444
+ comment?: string | undefined;
445
+ }, {
446
+ helpful: boolean;
447
+ ratedAt: string;
448
+ comment?: string | undefined;
449
+ }>>;
450
+ decisionMemory: z.ZodOptional<z.ZodObject<{
451
+ applicabilityContext: z.ZodString;
452
+ reasoning: z.ZodString;
453
+ enrichedContext: z.ZodOptional<z.ZodString>;
454
+ savedAt: z.ZodString;
455
+ }, "strip", z.ZodTypeAny, {
456
+ applicabilityContext: string;
457
+ reasoning: string;
458
+ savedAt: string;
459
+ enrichedContext?: string | undefined;
460
+ }, {
461
+ applicabilityContext: string;
462
+ reasoning: string;
463
+ savedAt: string;
464
+ enrichedContext?: string | undefined;
465
+ }>>;
466
+ } & {
467
+ signature: z.ZodString;
468
+ publicKeyFingerprint: z.ZodString;
469
+ signedAt: z.ZodString;
470
+ signedFields: z.ZodArray<z.ZodString, "many">;
471
+ }, "strip", z.ZodTypeAny, {
472
+ breakpointId: string;
473
+ id: string;
474
+ publicKeyFingerprint: string;
475
+ responderId: string;
476
+ responderName: string;
477
+ text: string;
478
+ confidence: number;
479
+ references: string[];
480
+ followUpQuestions: string[];
481
+ answeredAt: string;
482
+ signature: string;
483
+ signedAt: string;
484
+ signedFields: string[];
485
+ approved?: boolean | undefined;
486
+ rating?: {
487
+ helpful: boolean;
488
+ ratedAt: string;
489
+ comment?: string | undefined;
490
+ } | undefined;
491
+ decisionMemory?: {
492
+ applicabilityContext: string;
493
+ reasoning: string;
494
+ savedAt: string;
495
+ enrichedContext?: string | undefined;
496
+ } | undefined;
497
+ }, {
498
+ breakpointId: string;
499
+ id: string;
500
+ publicKeyFingerprint: string;
501
+ responderId: string;
502
+ responderName: string;
503
+ text: string;
504
+ confidence: number;
505
+ references: string[];
506
+ followUpQuestions: string[];
507
+ answeredAt: string;
508
+ signature: string;
509
+ signedAt: string;
510
+ signedFields: string[];
511
+ approved?: boolean | undefined;
512
+ rating?: {
513
+ helpful: boolean;
514
+ ratedAt: string;
515
+ comment?: string | undefined;
516
+ } | undefined;
517
+ decisionMemory?: {
518
+ applicabilityContext: string;
519
+ reasoning: string;
520
+ savedAt: string;
521
+ enrichedContext?: string | undefined;
522
+ } | undefined;
523
+ }>;
524
+ export type ProvenBreakpointAnswer = z.infer<typeof ProvenBreakpointAnswerSchema>;
525
+ export declare const BreakpointPublicAnswerSchema: z.ZodUnion<[z.ZodObject<{
526
+ id: z.ZodString;
527
+ breakpointId: z.ZodString;
528
+ responderId: z.ZodString;
529
+ responderName: z.ZodString;
530
+ text: z.ZodString;
531
+ approved: z.ZodOptional<z.ZodBoolean>;
532
+ confidence: z.ZodNumber;
533
+ references: z.ZodArray<z.ZodString, "many">;
534
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
535
+ answeredAt: z.ZodString;
536
+ rating: z.ZodOptional<z.ZodObject<{
537
+ helpful: z.ZodBoolean;
538
+ comment: z.ZodOptional<z.ZodString>;
539
+ ratedAt: z.ZodString;
540
+ }, "strip", z.ZodTypeAny, {
541
+ helpful: boolean;
542
+ ratedAt: string;
543
+ comment?: string | undefined;
544
+ }, {
545
+ helpful: boolean;
546
+ ratedAt: string;
547
+ comment?: string | undefined;
548
+ }>>;
549
+ decisionMemory: z.ZodOptional<z.ZodObject<{
550
+ applicabilityContext: z.ZodString;
551
+ reasoning: z.ZodString;
552
+ enrichedContext: z.ZodOptional<z.ZodString>;
553
+ savedAt: z.ZodString;
554
+ }, "strip", z.ZodTypeAny, {
555
+ applicabilityContext: string;
556
+ reasoning: string;
557
+ savedAt: string;
558
+ enrichedContext?: string | undefined;
559
+ }, {
560
+ applicabilityContext: string;
561
+ reasoning: string;
562
+ savedAt: string;
563
+ enrichedContext?: string | undefined;
564
+ }>>;
565
+ } & {
566
+ signature: z.ZodString;
567
+ publicKeyFingerprint: z.ZodString;
568
+ signedAt: z.ZodString;
569
+ signedFields: z.ZodArray<z.ZodString, "many">;
570
+ }, "strip", z.ZodTypeAny, {
571
+ breakpointId: string;
572
+ id: string;
573
+ publicKeyFingerprint: string;
574
+ responderId: string;
575
+ responderName: string;
576
+ text: string;
577
+ confidence: number;
578
+ references: string[];
579
+ followUpQuestions: string[];
580
+ answeredAt: string;
581
+ signature: string;
582
+ signedAt: string;
583
+ signedFields: string[];
584
+ approved?: boolean | undefined;
585
+ rating?: {
586
+ helpful: boolean;
587
+ ratedAt: string;
588
+ comment?: string | undefined;
589
+ } | undefined;
590
+ decisionMemory?: {
591
+ applicabilityContext: string;
592
+ reasoning: string;
593
+ savedAt: string;
594
+ enrichedContext?: string | undefined;
595
+ } | undefined;
596
+ }, {
597
+ breakpointId: string;
598
+ id: string;
599
+ publicKeyFingerprint: string;
600
+ responderId: string;
601
+ responderName: string;
602
+ text: string;
603
+ confidence: number;
604
+ references: string[];
605
+ followUpQuestions: string[];
606
+ answeredAt: string;
607
+ signature: string;
608
+ signedAt: string;
609
+ signedFields: string[];
610
+ approved?: boolean | undefined;
611
+ rating?: {
612
+ helpful: boolean;
613
+ ratedAt: string;
614
+ comment?: string | undefined;
615
+ } | undefined;
616
+ decisionMemory?: {
617
+ applicabilityContext: string;
618
+ reasoning: string;
619
+ savedAt: string;
620
+ enrichedContext?: string | undefined;
621
+ } | undefined;
622
+ }>, z.ZodObject<{
623
+ id: z.ZodString;
624
+ breakpointId: z.ZodString;
625
+ responderId: z.ZodString;
626
+ responderName: z.ZodString;
627
+ text: z.ZodString;
628
+ approved: z.ZodOptional<z.ZodBoolean>;
629
+ confidence: z.ZodNumber;
630
+ references: z.ZodArray<z.ZodString, "many">;
631
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
632
+ answeredAt: z.ZodString;
633
+ rating: z.ZodOptional<z.ZodObject<{
634
+ helpful: z.ZodBoolean;
635
+ comment: z.ZodOptional<z.ZodString>;
636
+ ratedAt: z.ZodString;
637
+ }, "strip", z.ZodTypeAny, {
638
+ helpful: boolean;
639
+ ratedAt: string;
640
+ comment?: string | undefined;
641
+ }, {
642
+ helpful: boolean;
643
+ ratedAt: string;
644
+ comment?: string | undefined;
645
+ }>>;
646
+ decisionMemory: z.ZodOptional<z.ZodObject<{
647
+ applicabilityContext: z.ZodString;
648
+ reasoning: z.ZodString;
649
+ enrichedContext: z.ZodOptional<z.ZodString>;
650
+ savedAt: z.ZodString;
651
+ }, "strip", z.ZodTypeAny, {
652
+ applicabilityContext: string;
653
+ reasoning: string;
654
+ savedAt: string;
655
+ enrichedContext?: string | undefined;
656
+ }, {
657
+ applicabilityContext: string;
658
+ reasoning: string;
659
+ savedAt: string;
660
+ enrichedContext?: string | undefined;
661
+ }>>;
662
+ }, "strip", z.ZodTypeAny, {
663
+ breakpointId: string;
664
+ id: string;
665
+ responderId: string;
666
+ responderName: string;
667
+ text: string;
668
+ confidence: number;
669
+ references: string[];
670
+ followUpQuestions: string[];
671
+ answeredAt: string;
672
+ approved?: boolean | undefined;
673
+ rating?: {
674
+ helpful: boolean;
675
+ ratedAt: string;
676
+ comment?: string | undefined;
677
+ } | undefined;
678
+ decisionMemory?: {
679
+ applicabilityContext: string;
680
+ reasoning: string;
681
+ savedAt: string;
682
+ enrichedContext?: string | undefined;
683
+ } | undefined;
684
+ }, {
685
+ breakpointId: string;
686
+ id: string;
687
+ responderId: string;
688
+ responderName: string;
689
+ text: string;
690
+ confidence: number;
691
+ references: string[];
692
+ followUpQuestions: string[];
693
+ answeredAt: string;
694
+ approved?: boolean | undefined;
695
+ rating?: {
696
+ helpful: boolean;
697
+ ratedAt: string;
698
+ comment?: string | undefined;
699
+ } | undefined;
700
+ decisionMemory?: {
701
+ applicabilityContext: string;
702
+ reasoning: string;
703
+ savedAt: string;
704
+ enrichedContext?: string | undefined;
705
+ } | undefined;
706
+ }>]>;
707
+ export type BreakpointPublicAnswer = z.infer<typeof BreakpointPublicAnswerSchema>;
708
+ export declare function isProvenBreakpointAnswer(answer: unknown): answer is ProvenBreakpointAnswer;
709
+ export declare const ProvenVerificationResultSchema: z.ZodObject<{
710
+ valid: z.ZodBoolean;
711
+ publicKeyFingerprint: z.ZodOptional<z.ZodString>;
712
+ responderName: z.ZodOptional<z.ZodString>;
713
+ reason: z.ZodOptional<z.ZodString>;
714
+ verifiedAt: z.ZodString;
715
+ }, "strip", z.ZodTypeAny, {
716
+ valid: boolean;
717
+ verifiedAt: string;
718
+ publicKeyFingerprint?: string | undefined;
719
+ responderName?: string | undefined;
720
+ reason?: string | undefined;
721
+ }, {
722
+ valid: boolean;
723
+ verifiedAt: string;
724
+ publicKeyFingerprint?: string | undefined;
725
+ responderName?: string | undefined;
726
+ reason?: string | undefined;
727
+ }>;
728
+ export type ProvenVerificationResult = z.infer<typeof ProvenVerificationResultSchema>;
729
+ export declare const BreakpointSubmitterSchema: z.ZodObject<{
730
+ sub: z.ZodString;
731
+ login: z.ZodString;
732
+ name: z.ZodString;
733
+ email: z.ZodOptional<z.ZodString>;
734
+ avatarUrl: z.ZodOptional<z.ZodString>;
735
+ }, "strip", z.ZodTypeAny, {
736
+ name: string;
737
+ sub: string;
738
+ login: string;
739
+ email?: string | undefined;
740
+ avatarUrl?: string | undefined;
741
+ }, {
742
+ name: string;
743
+ sub: string;
744
+ login: string;
745
+ email?: string | undefined;
746
+ avatarUrl?: string | undefined;
747
+ }>;
748
+ export type BreakpointSubmitter = z.infer<typeof BreakpointSubmitterSchema>;
749
+ export declare const BreakpointSchema: z.ZodObject<{
750
+ id: z.ZodString;
751
+ text: z.ZodString;
752
+ context: z.ZodObject<{
753
+ description: z.ZodString;
754
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
755
+ filename: z.ZodString;
756
+ code: z.ZodString;
757
+ language: z.ZodOptional<z.ZodString>;
758
+ }, "strip", z.ZodTypeAny, {
759
+ code: string;
760
+ filename: string;
761
+ language?: string | undefined;
762
+ }, {
763
+ code: string;
764
+ filename: string;
765
+ language?: string | undefined;
766
+ }>]>, "many">;
767
+ fileReferences: z.ZodArray<z.ZodString, "many">;
768
+ tags: z.ZodArray<z.ZodString, "many">;
769
+ title: z.ZodOptional<z.ZodString>;
770
+ summary: z.ZodOptional<z.ZodString>;
771
+ markdown: z.ZodOptional<z.ZodString>;
772
+ domain: z.ZodOptional<z.ZodString>;
773
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
774
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
775
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
776
+ label: z.ZodString;
777
+ url: z.ZodString;
778
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
779
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
780
+ label: z.ZodString;
781
+ url: z.ZodString;
782
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
783
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
784
+ label: z.ZodString;
785
+ url: z.ZodString;
786
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
787
+ }, z.ZodUnknown, "strip">>, "many">>;
788
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
789
+ title: z.ZodString;
790
+ markdown: z.ZodString;
791
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
792
+ title: z.ZodString;
793
+ markdown: z.ZodString;
794
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
795
+ title: z.ZodString;
796
+ markdown: z.ZodString;
797
+ }, z.ZodUnknown, "strip">>, "many">>;
798
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
799
+ label: z.ZodString;
800
+ url: z.ZodString;
801
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
802
+ mimeType: z.ZodOptional<z.ZodString>;
803
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
804
+ label: z.ZodString;
805
+ url: z.ZodString;
806
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
807
+ mimeType: z.ZodOptional<z.ZodString>;
808
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
809
+ label: z.ZodString;
810
+ url: z.ZodString;
811
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
812
+ mimeType: z.ZodOptional<z.ZodString>;
813
+ }, z.ZodUnknown, "strip">>, "many">>;
814
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
815
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
816
+ description: z.ZodString;
817
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
818
+ filename: z.ZodString;
819
+ code: z.ZodString;
820
+ language: z.ZodOptional<z.ZodString>;
821
+ }, "strip", z.ZodTypeAny, {
822
+ code: string;
823
+ filename: string;
824
+ language?: string | undefined;
825
+ }, {
826
+ code: string;
827
+ filename: string;
828
+ language?: string | undefined;
829
+ }>]>, "many">;
830
+ fileReferences: z.ZodArray<z.ZodString, "many">;
831
+ tags: z.ZodArray<z.ZodString, "many">;
832
+ title: z.ZodOptional<z.ZodString>;
833
+ summary: z.ZodOptional<z.ZodString>;
834
+ markdown: z.ZodOptional<z.ZodString>;
835
+ domain: z.ZodOptional<z.ZodString>;
836
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
837
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
838
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
839
+ label: z.ZodString;
840
+ url: z.ZodString;
841
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
842
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
843
+ label: z.ZodString;
844
+ url: z.ZodString;
845
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
846
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
847
+ label: z.ZodString;
848
+ url: z.ZodString;
849
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
850
+ }, z.ZodUnknown, "strip">>, "many">>;
851
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
852
+ title: z.ZodString;
853
+ markdown: z.ZodString;
854
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
855
+ title: z.ZodString;
856
+ markdown: z.ZodString;
857
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
858
+ title: z.ZodString;
859
+ markdown: z.ZodString;
860
+ }, z.ZodUnknown, "strip">>, "many">>;
861
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
862
+ label: z.ZodString;
863
+ url: z.ZodString;
864
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
865
+ mimeType: z.ZodOptional<z.ZodString>;
866
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
867
+ label: z.ZodString;
868
+ url: z.ZodString;
869
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
870
+ mimeType: z.ZodOptional<z.ZodString>;
871
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
872
+ label: z.ZodString;
873
+ url: z.ZodString;
874
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
875
+ mimeType: z.ZodOptional<z.ZodString>;
876
+ }, z.ZodUnknown, "strip">>, "many">>;
877
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
878
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
879
+ description: z.ZodString;
880
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
881
+ filename: z.ZodString;
882
+ code: z.ZodString;
883
+ language: z.ZodOptional<z.ZodString>;
884
+ }, "strip", z.ZodTypeAny, {
885
+ code: string;
886
+ filename: string;
887
+ language?: string | undefined;
888
+ }, {
889
+ code: string;
890
+ filename: string;
891
+ language?: string | undefined;
892
+ }>]>, "many">;
893
+ fileReferences: z.ZodArray<z.ZodString, "many">;
894
+ tags: z.ZodArray<z.ZodString, "many">;
895
+ title: z.ZodOptional<z.ZodString>;
896
+ summary: z.ZodOptional<z.ZodString>;
897
+ markdown: z.ZodOptional<z.ZodString>;
898
+ domain: z.ZodOptional<z.ZodString>;
899
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
900
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
901
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
902
+ label: z.ZodString;
903
+ url: z.ZodString;
904
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
905
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
906
+ label: z.ZodString;
907
+ url: z.ZodString;
908
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
909
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
910
+ label: z.ZodString;
911
+ url: z.ZodString;
912
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
913
+ }, z.ZodUnknown, "strip">>, "many">>;
914
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
915
+ title: z.ZodString;
916
+ markdown: z.ZodString;
917
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
918
+ title: z.ZodString;
919
+ markdown: z.ZodString;
920
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
921
+ title: z.ZodString;
922
+ markdown: z.ZodString;
923
+ }, z.ZodUnknown, "strip">>, "many">>;
924
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
925
+ label: z.ZodString;
926
+ url: z.ZodString;
927
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
928
+ mimeType: z.ZodOptional<z.ZodString>;
929
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
930
+ label: z.ZodString;
931
+ url: z.ZodString;
932
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
933
+ mimeType: z.ZodOptional<z.ZodString>;
934
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
935
+ label: z.ZodString;
936
+ url: z.ZodString;
937
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
938
+ mimeType: z.ZodOptional<z.ZodString>;
939
+ }, z.ZodUnknown, "strip">>, "many">>;
940
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
941
+ }, z.ZodUnknown, "strip">>;
942
+ status: z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled"]>;
943
+ routing: z.ZodObject<{
944
+ strategy: z.ZodEnum<["single", "first-response-wins", "collect-all", "quorum"]>;
945
+ targetResponders: z.ZodArray<z.ZodString, "many">;
946
+ timeoutMs: z.ZodNumber;
947
+ presentToUser: z.ZodBoolean;
948
+ breakpointId: z.ZodOptional<z.ZodString>;
949
+ autoApproveAfterN: z.ZodOptional<z.ZodNumber>;
950
+ }, "strip", z.ZodTypeAny, {
951
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
952
+ targetResponders: string[];
953
+ timeoutMs: number;
954
+ presentToUser: boolean;
955
+ breakpointId?: string | undefined;
956
+ autoApproveAfterN?: number | undefined;
957
+ }, {
958
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
959
+ targetResponders: string[];
960
+ timeoutMs: number;
961
+ presentToUser: boolean;
962
+ breakpointId?: string | undefined;
963
+ autoApproveAfterN?: number | undefined;
964
+ }>;
965
+ answers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
966
+ id: z.ZodString;
967
+ breakpointId: z.ZodString;
968
+ responderId: z.ZodString;
969
+ responderName: z.ZodString;
970
+ text: z.ZodString;
971
+ approved: z.ZodOptional<z.ZodBoolean>;
972
+ confidence: z.ZodNumber;
973
+ references: z.ZodArray<z.ZodString, "many">;
974
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
975
+ answeredAt: z.ZodString;
976
+ rating: z.ZodOptional<z.ZodObject<{
977
+ helpful: z.ZodBoolean;
978
+ comment: z.ZodOptional<z.ZodString>;
979
+ ratedAt: z.ZodString;
980
+ }, "strip", z.ZodTypeAny, {
981
+ helpful: boolean;
982
+ ratedAt: string;
983
+ comment?: string | undefined;
984
+ }, {
985
+ helpful: boolean;
986
+ ratedAt: string;
987
+ comment?: string | undefined;
988
+ }>>;
989
+ decisionMemory: z.ZodOptional<z.ZodObject<{
990
+ applicabilityContext: z.ZodString;
991
+ reasoning: z.ZodString;
992
+ enrichedContext: z.ZodOptional<z.ZodString>;
993
+ savedAt: z.ZodString;
994
+ }, "strip", z.ZodTypeAny, {
995
+ applicabilityContext: string;
996
+ reasoning: string;
997
+ savedAt: string;
998
+ enrichedContext?: string | undefined;
999
+ }, {
1000
+ applicabilityContext: string;
1001
+ reasoning: string;
1002
+ savedAt: string;
1003
+ enrichedContext?: string | undefined;
1004
+ }>>;
1005
+ } & {
1006
+ signature: z.ZodString;
1007
+ publicKeyFingerprint: z.ZodString;
1008
+ signedAt: z.ZodString;
1009
+ signedFields: z.ZodArray<z.ZodString, "many">;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ breakpointId: string;
1012
+ id: string;
1013
+ publicKeyFingerprint: string;
1014
+ responderId: string;
1015
+ responderName: string;
1016
+ text: string;
1017
+ confidence: number;
1018
+ references: string[];
1019
+ followUpQuestions: string[];
1020
+ answeredAt: string;
1021
+ signature: string;
1022
+ signedAt: string;
1023
+ signedFields: string[];
1024
+ approved?: boolean | undefined;
1025
+ rating?: {
1026
+ helpful: boolean;
1027
+ ratedAt: string;
1028
+ comment?: string | undefined;
1029
+ } | undefined;
1030
+ decisionMemory?: {
1031
+ applicabilityContext: string;
1032
+ reasoning: string;
1033
+ savedAt: string;
1034
+ enrichedContext?: string | undefined;
1035
+ } | undefined;
1036
+ }, {
1037
+ breakpointId: string;
1038
+ id: string;
1039
+ publicKeyFingerprint: string;
1040
+ responderId: string;
1041
+ responderName: string;
1042
+ text: string;
1043
+ confidence: number;
1044
+ references: string[];
1045
+ followUpQuestions: string[];
1046
+ answeredAt: string;
1047
+ signature: string;
1048
+ signedAt: string;
1049
+ signedFields: string[];
1050
+ approved?: boolean | undefined;
1051
+ rating?: {
1052
+ helpful: boolean;
1053
+ ratedAt: string;
1054
+ comment?: string | undefined;
1055
+ } | undefined;
1056
+ decisionMemory?: {
1057
+ applicabilityContext: string;
1058
+ reasoning: string;
1059
+ savedAt: string;
1060
+ enrichedContext?: string | undefined;
1061
+ } | undefined;
1062
+ }>, z.ZodObject<{
1063
+ id: z.ZodString;
1064
+ breakpointId: z.ZodString;
1065
+ responderId: z.ZodString;
1066
+ responderName: z.ZodString;
1067
+ text: z.ZodString;
1068
+ approved: z.ZodOptional<z.ZodBoolean>;
1069
+ confidence: z.ZodNumber;
1070
+ references: z.ZodArray<z.ZodString, "many">;
1071
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
1072
+ answeredAt: z.ZodString;
1073
+ rating: z.ZodOptional<z.ZodObject<{
1074
+ helpful: z.ZodBoolean;
1075
+ comment: z.ZodOptional<z.ZodString>;
1076
+ ratedAt: z.ZodString;
1077
+ }, "strip", z.ZodTypeAny, {
1078
+ helpful: boolean;
1079
+ ratedAt: string;
1080
+ comment?: string | undefined;
1081
+ }, {
1082
+ helpful: boolean;
1083
+ ratedAt: string;
1084
+ comment?: string | undefined;
1085
+ }>>;
1086
+ decisionMemory: z.ZodOptional<z.ZodObject<{
1087
+ applicabilityContext: z.ZodString;
1088
+ reasoning: z.ZodString;
1089
+ enrichedContext: z.ZodOptional<z.ZodString>;
1090
+ savedAt: z.ZodString;
1091
+ }, "strip", z.ZodTypeAny, {
1092
+ applicabilityContext: string;
1093
+ reasoning: string;
1094
+ savedAt: string;
1095
+ enrichedContext?: string | undefined;
1096
+ }, {
1097
+ applicabilityContext: string;
1098
+ reasoning: string;
1099
+ savedAt: string;
1100
+ enrichedContext?: string | undefined;
1101
+ }>>;
1102
+ }, "strip", z.ZodTypeAny, {
1103
+ breakpointId: string;
1104
+ id: string;
1105
+ responderId: string;
1106
+ responderName: string;
1107
+ text: string;
1108
+ confidence: number;
1109
+ references: string[];
1110
+ followUpQuestions: string[];
1111
+ answeredAt: string;
1112
+ approved?: boolean | undefined;
1113
+ rating?: {
1114
+ helpful: boolean;
1115
+ ratedAt: string;
1116
+ comment?: string | undefined;
1117
+ } | undefined;
1118
+ decisionMemory?: {
1119
+ applicabilityContext: string;
1120
+ reasoning: string;
1121
+ savedAt: string;
1122
+ enrichedContext?: string | undefined;
1123
+ } | undefined;
1124
+ }, {
1125
+ breakpointId: string;
1126
+ id: string;
1127
+ responderId: string;
1128
+ responderName: string;
1129
+ text: string;
1130
+ confidence: number;
1131
+ references: string[];
1132
+ followUpQuestions: string[];
1133
+ answeredAt: string;
1134
+ approved?: boolean | undefined;
1135
+ rating?: {
1136
+ helpful: boolean;
1137
+ ratedAt: string;
1138
+ comment?: string | undefined;
1139
+ } | undefined;
1140
+ decisionMemory?: {
1141
+ applicabilityContext: string;
1142
+ reasoning: string;
1143
+ savedAt: string;
1144
+ enrichedContext?: string | undefined;
1145
+ } | undefined;
1146
+ }>]>, "many">;
1147
+ selectedAnswer: z.ZodOptional<z.ZodString>;
1148
+ projectId: z.ZodOptional<z.ZodString>;
1149
+ repoId: z.ZodOptional<z.ZodString>;
1150
+ createdBy: z.ZodOptional<z.ZodObject<{
1151
+ sub: z.ZodString;
1152
+ login: z.ZodString;
1153
+ name: z.ZodString;
1154
+ email: z.ZodOptional<z.ZodString>;
1155
+ avatarUrl: z.ZodOptional<z.ZodString>;
1156
+ }, "strip", z.ZodTypeAny, {
1157
+ name: string;
1158
+ sub: string;
1159
+ login: string;
1160
+ email?: string | undefined;
1161
+ avatarUrl?: string | undefined;
1162
+ }, {
1163
+ name: string;
1164
+ sub: string;
1165
+ login: string;
1166
+ email?: string | undefined;
1167
+ avatarUrl?: string | undefined;
1168
+ }>>;
1169
+ claimedByResponderId: z.ZodOptional<z.ZodString>;
1170
+ claimedByResponderName: z.ZodOptional<z.ZodString>;
1171
+ createdAt: z.ZodString;
1172
+ updatedAt: z.ZodString;
1173
+ expiresAt: z.ZodString;
1174
+ }, "strip", z.ZodTypeAny, {
1175
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
1176
+ id: string;
1177
+ text: string;
1178
+ context: {
1179
+ description: string;
1180
+ codeSnippets: (string | {
1181
+ code: string;
1182
+ filename: string;
1183
+ language?: string | undefined;
1184
+ })[];
1185
+ fileReferences: string[];
1186
+ tags: string[];
1187
+ title?: string | undefined;
1188
+ markdown?: string | undefined;
1189
+ summary?: string | undefined;
1190
+ domain?: string | undefined;
1191
+ urgency?: "low" | "medium" | "high" | undefined;
1192
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
1193
+ links?: z.objectOutputType<{
1194
+ label: z.ZodString;
1195
+ url: z.ZodString;
1196
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1197
+ }, z.ZodUnknown, "strip">[] | undefined;
1198
+ sections?: z.objectOutputType<{
1199
+ title: z.ZodString;
1200
+ markdown: z.ZodString;
1201
+ }, z.ZodUnknown, "strip">[] | undefined;
1202
+ artifacts?: z.objectOutputType<{
1203
+ label: z.ZodString;
1204
+ url: z.ZodString;
1205
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1206
+ mimeType: z.ZodOptional<z.ZodString>;
1207
+ }, z.ZodUnknown, "strip">[] | undefined;
1208
+ metadata?: Record<string, unknown> | undefined;
1209
+ } & {
1210
+ [k: string]: unknown;
1211
+ };
1212
+ routing: {
1213
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
1214
+ targetResponders: string[];
1215
+ timeoutMs: number;
1216
+ presentToUser: boolean;
1217
+ breakpointId?: string | undefined;
1218
+ autoApproveAfterN?: number | undefined;
1219
+ };
1220
+ answers: ({
1221
+ breakpointId: string;
1222
+ id: string;
1223
+ responderId: string;
1224
+ responderName: string;
1225
+ text: string;
1226
+ confidence: number;
1227
+ references: string[];
1228
+ followUpQuestions: string[];
1229
+ answeredAt: string;
1230
+ approved?: boolean | undefined;
1231
+ rating?: {
1232
+ helpful: boolean;
1233
+ ratedAt: string;
1234
+ comment?: string | undefined;
1235
+ } | undefined;
1236
+ decisionMemory?: {
1237
+ applicabilityContext: string;
1238
+ reasoning: string;
1239
+ savedAt: string;
1240
+ enrichedContext?: string | undefined;
1241
+ } | undefined;
1242
+ } | {
1243
+ breakpointId: string;
1244
+ id: string;
1245
+ publicKeyFingerprint: string;
1246
+ responderId: string;
1247
+ responderName: string;
1248
+ text: string;
1249
+ confidence: number;
1250
+ references: string[];
1251
+ followUpQuestions: string[];
1252
+ answeredAt: string;
1253
+ signature: string;
1254
+ signedAt: string;
1255
+ signedFields: string[];
1256
+ approved?: boolean | undefined;
1257
+ rating?: {
1258
+ helpful: boolean;
1259
+ ratedAt: string;
1260
+ comment?: string | undefined;
1261
+ } | undefined;
1262
+ decisionMemory?: {
1263
+ applicabilityContext: string;
1264
+ reasoning: string;
1265
+ savedAt: string;
1266
+ enrichedContext?: string | undefined;
1267
+ } | undefined;
1268
+ })[];
1269
+ createdAt: string;
1270
+ updatedAt: string;
1271
+ expiresAt: string;
1272
+ selectedAnswer?: string | undefined;
1273
+ projectId?: string | undefined;
1274
+ repoId?: string | undefined;
1275
+ createdBy?: {
1276
+ name: string;
1277
+ sub: string;
1278
+ login: string;
1279
+ email?: string | undefined;
1280
+ avatarUrl?: string | undefined;
1281
+ } | undefined;
1282
+ claimedByResponderId?: string | undefined;
1283
+ claimedByResponderName?: string | undefined;
1284
+ }, {
1285
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
1286
+ id: string;
1287
+ text: string;
1288
+ context: {
1289
+ description: string;
1290
+ codeSnippets: (string | {
1291
+ code: string;
1292
+ filename: string;
1293
+ language?: string | undefined;
1294
+ })[];
1295
+ fileReferences: string[];
1296
+ tags: string[];
1297
+ title?: string | undefined;
1298
+ markdown?: string | undefined;
1299
+ summary?: string | undefined;
1300
+ domain?: string | undefined;
1301
+ urgency?: "low" | "medium" | "high" | undefined;
1302
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
1303
+ links?: z.objectInputType<{
1304
+ label: z.ZodString;
1305
+ url: z.ZodString;
1306
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1307
+ }, z.ZodUnknown, "strip">[] | undefined;
1308
+ sections?: z.objectInputType<{
1309
+ title: z.ZodString;
1310
+ markdown: z.ZodString;
1311
+ }, z.ZodUnknown, "strip">[] | undefined;
1312
+ artifacts?: z.objectInputType<{
1313
+ label: z.ZodString;
1314
+ url: z.ZodString;
1315
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1316
+ mimeType: z.ZodOptional<z.ZodString>;
1317
+ }, z.ZodUnknown, "strip">[] | undefined;
1318
+ metadata?: Record<string, unknown> | undefined;
1319
+ } & {
1320
+ [k: string]: unknown;
1321
+ };
1322
+ routing: {
1323
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
1324
+ targetResponders: string[];
1325
+ timeoutMs: number;
1326
+ presentToUser: boolean;
1327
+ breakpointId?: string | undefined;
1328
+ autoApproveAfterN?: number | undefined;
1329
+ };
1330
+ answers: ({
1331
+ breakpointId: string;
1332
+ id: string;
1333
+ responderId: string;
1334
+ responderName: string;
1335
+ text: string;
1336
+ confidence: number;
1337
+ references: string[];
1338
+ followUpQuestions: string[];
1339
+ answeredAt: string;
1340
+ approved?: boolean | undefined;
1341
+ rating?: {
1342
+ helpful: boolean;
1343
+ ratedAt: string;
1344
+ comment?: string | undefined;
1345
+ } | undefined;
1346
+ decisionMemory?: {
1347
+ applicabilityContext: string;
1348
+ reasoning: string;
1349
+ savedAt: string;
1350
+ enrichedContext?: string | undefined;
1351
+ } | undefined;
1352
+ } | {
1353
+ breakpointId: string;
1354
+ id: string;
1355
+ publicKeyFingerprint: string;
1356
+ responderId: string;
1357
+ responderName: string;
1358
+ text: string;
1359
+ confidence: number;
1360
+ references: string[];
1361
+ followUpQuestions: string[];
1362
+ answeredAt: string;
1363
+ signature: string;
1364
+ signedAt: string;
1365
+ signedFields: string[];
1366
+ approved?: boolean | undefined;
1367
+ rating?: {
1368
+ helpful: boolean;
1369
+ ratedAt: string;
1370
+ comment?: string | undefined;
1371
+ } | undefined;
1372
+ decisionMemory?: {
1373
+ applicabilityContext: string;
1374
+ reasoning: string;
1375
+ savedAt: string;
1376
+ enrichedContext?: string | undefined;
1377
+ } | undefined;
1378
+ })[];
1379
+ createdAt: string;
1380
+ updatedAt: string;
1381
+ expiresAt: string;
1382
+ selectedAnswer?: string | undefined;
1383
+ projectId?: string | undefined;
1384
+ repoId?: string | undefined;
1385
+ createdBy?: {
1386
+ name: string;
1387
+ sub: string;
1388
+ login: string;
1389
+ email?: string | undefined;
1390
+ avatarUrl?: string | undefined;
1391
+ } | undefined;
1392
+ claimedByResponderId?: string | undefined;
1393
+ claimedByResponderName?: string | undefined;
1394
+ }>;
1395
+ export type Breakpoint = z.infer<typeof BreakpointSchema>;
1396
+ export declare const BreakpointWaitResultSchema: z.ZodObject<{
1397
+ answered: z.ZodBoolean;
1398
+ breakpoint: z.ZodObject<{
1399
+ id: z.ZodString;
1400
+ text: z.ZodString;
1401
+ context: z.ZodObject<{
1402
+ description: z.ZodString;
1403
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1404
+ filename: z.ZodString;
1405
+ code: z.ZodString;
1406
+ language: z.ZodOptional<z.ZodString>;
1407
+ }, "strip", z.ZodTypeAny, {
1408
+ code: string;
1409
+ filename: string;
1410
+ language?: string | undefined;
1411
+ }, {
1412
+ code: string;
1413
+ filename: string;
1414
+ language?: string | undefined;
1415
+ }>]>, "many">;
1416
+ fileReferences: z.ZodArray<z.ZodString, "many">;
1417
+ tags: z.ZodArray<z.ZodString, "many">;
1418
+ title: z.ZodOptional<z.ZodString>;
1419
+ summary: z.ZodOptional<z.ZodString>;
1420
+ markdown: z.ZodOptional<z.ZodString>;
1421
+ domain: z.ZodOptional<z.ZodString>;
1422
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1423
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
1424
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1425
+ label: z.ZodString;
1426
+ url: z.ZodString;
1427
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1428
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1429
+ label: z.ZodString;
1430
+ url: z.ZodString;
1431
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1432
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1433
+ label: z.ZodString;
1434
+ url: z.ZodString;
1435
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1436
+ }, z.ZodUnknown, "strip">>, "many">>;
1437
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
1438
+ title: z.ZodString;
1439
+ markdown: z.ZodString;
1440
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1441
+ title: z.ZodString;
1442
+ markdown: z.ZodString;
1443
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1444
+ title: z.ZodString;
1445
+ markdown: z.ZodString;
1446
+ }, z.ZodUnknown, "strip">>, "many">>;
1447
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1448
+ label: z.ZodString;
1449
+ url: z.ZodString;
1450
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1451
+ mimeType: z.ZodOptional<z.ZodString>;
1452
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1453
+ label: z.ZodString;
1454
+ url: z.ZodString;
1455
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1456
+ mimeType: z.ZodOptional<z.ZodString>;
1457
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1458
+ label: z.ZodString;
1459
+ url: z.ZodString;
1460
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1461
+ mimeType: z.ZodOptional<z.ZodString>;
1462
+ }, z.ZodUnknown, "strip">>, "many">>;
1463
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1464
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1465
+ description: z.ZodString;
1466
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1467
+ filename: z.ZodString;
1468
+ code: z.ZodString;
1469
+ language: z.ZodOptional<z.ZodString>;
1470
+ }, "strip", z.ZodTypeAny, {
1471
+ code: string;
1472
+ filename: string;
1473
+ language?: string | undefined;
1474
+ }, {
1475
+ code: string;
1476
+ filename: string;
1477
+ language?: string | undefined;
1478
+ }>]>, "many">;
1479
+ fileReferences: z.ZodArray<z.ZodString, "many">;
1480
+ tags: z.ZodArray<z.ZodString, "many">;
1481
+ title: z.ZodOptional<z.ZodString>;
1482
+ summary: z.ZodOptional<z.ZodString>;
1483
+ markdown: z.ZodOptional<z.ZodString>;
1484
+ domain: z.ZodOptional<z.ZodString>;
1485
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1486
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
1487
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1488
+ label: z.ZodString;
1489
+ url: z.ZodString;
1490
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1491
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1492
+ label: z.ZodString;
1493
+ url: z.ZodString;
1494
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1495
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1496
+ label: z.ZodString;
1497
+ url: z.ZodString;
1498
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1499
+ }, z.ZodUnknown, "strip">>, "many">>;
1500
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
1501
+ title: z.ZodString;
1502
+ markdown: z.ZodString;
1503
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1504
+ title: z.ZodString;
1505
+ markdown: z.ZodString;
1506
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1507
+ title: z.ZodString;
1508
+ markdown: z.ZodString;
1509
+ }, z.ZodUnknown, "strip">>, "many">>;
1510
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1511
+ label: z.ZodString;
1512
+ url: z.ZodString;
1513
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1514
+ mimeType: z.ZodOptional<z.ZodString>;
1515
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1516
+ label: z.ZodString;
1517
+ url: z.ZodString;
1518
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1519
+ mimeType: z.ZodOptional<z.ZodString>;
1520
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1521
+ label: z.ZodString;
1522
+ url: z.ZodString;
1523
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1524
+ mimeType: z.ZodOptional<z.ZodString>;
1525
+ }, z.ZodUnknown, "strip">>, "many">>;
1526
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1527
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1528
+ description: z.ZodString;
1529
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
1530
+ filename: z.ZodString;
1531
+ code: z.ZodString;
1532
+ language: z.ZodOptional<z.ZodString>;
1533
+ }, "strip", z.ZodTypeAny, {
1534
+ code: string;
1535
+ filename: string;
1536
+ language?: string | undefined;
1537
+ }, {
1538
+ code: string;
1539
+ filename: string;
1540
+ language?: string | undefined;
1541
+ }>]>, "many">;
1542
+ fileReferences: z.ZodArray<z.ZodString, "many">;
1543
+ tags: z.ZodArray<z.ZodString, "many">;
1544
+ title: z.ZodOptional<z.ZodString>;
1545
+ summary: z.ZodOptional<z.ZodString>;
1546
+ markdown: z.ZodOptional<z.ZodString>;
1547
+ domain: z.ZodOptional<z.ZodString>;
1548
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
1549
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
1550
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1551
+ label: z.ZodString;
1552
+ url: z.ZodString;
1553
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1554
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1555
+ label: z.ZodString;
1556
+ url: z.ZodString;
1557
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1558
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1559
+ label: z.ZodString;
1560
+ url: z.ZodString;
1561
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1562
+ }, z.ZodUnknown, "strip">>, "many">>;
1563
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
1564
+ title: z.ZodString;
1565
+ markdown: z.ZodString;
1566
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1567
+ title: z.ZodString;
1568
+ markdown: z.ZodString;
1569
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1570
+ title: z.ZodString;
1571
+ markdown: z.ZodString;
1572
+ }, z.ZodUnknown, "strip">>, "many">>;
1573
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1574
+ label: z.ZodString;
1575
+ url: z.ZodString;
1576
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1577
+ mimeType: z.ZodOptional<z.ZodString>;
1578
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
1579
+ label: z.ZodString;
1580
+ url: z.ZodString;
1581
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1582
+ mimeType: z.ZodOptional<z.ZodString>;
1583
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
1584
+ label: z.ZodString;
1585
+ url: z.ZodString;
1586
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1587
+ mimeType: z.ZodOptional<z.ZodString>;
1588
+ }, z.ZodUnknown, "strip">>, "many">>;
1589
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1590
+ }, z.ZodUnknown, "strip">>;
1591
+ status: z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled"]>;
1592
+ routing: z.ZodObject<{
1593
+ strategy: z.ZodEnum<["single", "first-response-wins", "collect-all", "quorum"]>;
1594
+ targetResponders: z.ZodArray<z.ZodString, "many">;
1595
+ timeoutMs: z.ZodNumber;
1596
+ presentToUser: z.ZodBoolean;
1597
+ breakpointId: z.ZodOptional<z.ZodString>;
1598
+ autoApproveAfterN: z.ZodOptional<z.ZodNumber>;
1599
+ }, "strip", z.ZodTypeAny, {
1600
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
1601
+ targetResponders: string[];
1602
+ timeoutMs: number;
1603
+ presentToUser: boolean;
1604
+ breakpointId?: string | undefined;
1605
+ autoApproveAfterN?: number | undefined;
1606
+ }, {
1607
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
1608
+ targetResponders: string[];
1609
+ timeoutMs: number;
1610
+ presentToUser: boolean;
1611
+ breakpointId?: string | undefined;
1612
+ autoApproveAfterN?: number | undefined;
1613
+ }>;
1614
+ answers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
1615
+ id: z.ZodString;
1616
+ breakpointId: z.ZodString;
1617
+ responderId: z.ZodString;
1618
+ responderName: z.ZodString;
1619
+ text: z.ZodString;
1620
+ approved: z.ZodOptional<z.ZodBoolean>;
1621
+ confidence: z.ZodNumber;
1622
+ references: z.ZodArray<z.ZodString, "many">;
1623
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
1624
+ answeredAt: z.ZodString;
1625
+ rating: z.ZodOptional<z.ZodObject<{
1626
+ helpful: z.ZodBoolean;
1627
+ comment: z.ZodOptional<z.ZodString>;
1628
+ ratedAt: z.ZodString;
1629
+ }, "strip", z.ZodTypeAny, {
1630
+ helpful: boolean;
1631
+ ratedAt: string;
1632
+ comment?: string | undefined;
1633
+ }, {
1634
+ helpful: boolean;
1635
+ ratedAt: string;
1636
+ comment?: string | undefined;
1637
+ }>>;
1638
+ decisionMemory: z.ZodOptional<z.ZodObject<{
1639
+ applicabilityContext: z.ZodString;
1640
+ reasoning: z.ZodString;
1641
+ enrichedContext: z.ZodOptional<z.ZodString>;
1642
+ savedAt: z.ZodString;
1643
+ }, "strip", z.ZodTypeAny, {
1644
+ applicabilityContext: string;
1645
+ reasoning: string;
1646
+ savedAt: string;
1647
+ enrichedContext?: string | undefined;
1648
+ }, {
1649
+ applicabilityContext: string;
1650
+ reasoning: string;
1651
+ savedAt: string;
1652
+ enrichedContext?: string | undefined;
1653
+ }>>;
1654
+ } & {
1655
+ signature: z.ZodString;
1656
+ publicKeyFingerprint: z.ZodString;
1657
+ signedAt: z.ZodString;
1658
+ signedFields: z.ZodArray<z.ZodString, "many">;
1659
+ }, "strip", z.ZodTypeAny, {
1660
+ breakpointId: string;
1661
+ id: string;
1662
+ publicKeyFingerprint: string;
1663
+ responderId: string;
1664
+ responderName: string;
1665
+ text: string;
1666
+ confidence: number;
1667
+ references: string[];
1668
+ followUpQuestions: string[];
1669
+ answeredAt: string;
1670
+ signature: string;
1671
+ signedAt: string;
1672
+ signedFields: string[];
1673
+ approved?: boolean | undefined;
1674
+ rating?: {
1675
+ helpful: boolean;
1676
+ ratedAt: string;
1677
+ comment?: string | undefined;
1678
+ } | undefined;
1679
+ decisionMemory?: {
1680
+ applicabilityContext: string;
1681
+ reasoning: string;
1682
+ savedAt: string;
1683
+ enrichedContext?: string | undefined;
1684
+ } | undefined;
1685
+ }, {
1686
+ breakpointId: string;
1687
+ id: string;
1688
+ publicKeyFingerprint: string;
1689
+ responderId: string;
1690
+ responderName: string;
1691
+ text: string;
1692
+ confidence: number;
1693
+ references: string[];
1694
+ followUpQuestions: string[];
1695
+ answeredAt: string;
1696
+ signature: string;
1697
+ signedAt: string;
1698
+ signedFields: string[];
1699
+ approved?: boolean | undefined;
1700
+ rating?: {
1701
+ helpful: boolean;
1702
+ ratedAt: string;
1703
+ comment?: string | undefined;
1704
+ } | undefined;
1705
+ decisionMemory?: {
1706
+ applicabilityContext: string;
1707
+ reasoning: string;
1708
+ savedAt: string;
1709
+ enrichedContext?: string | undefined;
1710
+ } | undefined;
1711
+ }>, z.ZodObject<{
1712
+ id: z.ZodString;
1713
+ breakpointId: z.ZodString;
1714
+ responderId: z.ZodString;
1715
+ responderName: z.ZodString;
1716
+ text: z.ZodString;
1717
+ approved: z.ZodOptional<z.ZodBoolean>;
1718
+ confidence: z.ZodNumber;
1719
+ references: z.ZodArray<z.ZodString, "many">;
1720
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
1721
+ answeredAt: z.ZodString;
1722
+ rating: z.ZodOptional<z.ZodObject<{
1723
+ helpful: z.ZodBoolean;
1724
+ comment: z.ZodOptional<z.ZodString>;
1725
+ ratedAt: z.ZodString;
1726
+ }, "strip", z.ZodTypeAny, {
1727
+ helpful: boolean;
1728
+ ratedAt: string;
1729
+ comment?: string | undefined;
1730
+ }, {
1731
+ helpful: boolean;
1732
+ ratedAt: string;
1733
+ comment?: string | undefined;
1734
+ }>>;
1735
+ decisionMemory: z.ZodOptional<z.ZodObject<{
1736
+ applicabilityContext: z.ZodString;
1737
+ reasoning: z.ZodString;
1738
+ enrichedContext: z.ZodOptional<z.ZodString>;
1739
+ savedAt: z.ZodString;
1740
+ }, "strip", z.ZodTypeAny, {
1741
+ applicabilityContext: string;
1742
+ reasoning: string;
1743
+ savedAt: string;
1744
+ enrichedContext?: string | undefined;
1745
+ }, {
1746
+ applicabilityContext: string;
1747
+ reasoning: string;
1748
+ savedAt: string;
1749
+ enrichedContext?: string | undefined;
1750
+ }>>;
1751
+ }, "strip", z.ZodTypeAny, {
1752
+ breakpointId: string;
1753
+ id: string;
1754
+ responderId: string;
1755
+ responderName: string;
1756
+ text: string;
1757
+ confidence: number;
1758
+ references: string[];
1759
+ followUpQuestions: string[];
1760
+ answeredAt: string;
1761
+ approved?: boolean | undefined;
1762
+ rating?: {
1763
+ helpful: boolean;
1764
+ ratedAt: string;
1765
+ comment?: string | undefined;
1766
+ } | undefined;
1767
+ decisionMemory?: {
1768
+ applicabilityContext: string;
1769
+ reasoning: string;
1770
+ savedAt: string;
1771
+ enrichedContext?: string | undefined;
1772
+ } | undefined;
1773
+ }, {
1774
+ breakpointId: string;
1775
+ id: string;
1776
+ responderId: string;
1777
+ responderName: string;
1778
+ text: string;
1779
+ confidence: number;
1780
+ references: string[];
1781
+ followUpQuestions: string[];
1782
+ answeredAt: string;
1783
+ approved?: boolean | undefined;
1784
+ rating?: {
1785
+ helpful: boolean;
1786
+ ratedAt: string;
1787
+ comment?: string | undefined;
1788
+ } | undefined;
1789
+ decisionMemory?: {
1790
+ applicabilityContext: string;
1791
+ reasoning: string;
1792
+ savedAt: string;
1793
+ enrichedContext?: string | undefined;
1794
+ } | undefined;
1795
+ }>]>, "many">;
1796
+ selectedAnswer: z.ZodOptional<z.ZodString>;
1797
+ projectId: z.ZodOptional<z.ZodString>;
1798
+ repoId: z.ZodOptional<z.ZodString>;
1799
+ createdBy: z.ZodOptional<z.ZodObject<{
1800
+ sub: z.ZodString;
1801
+ login: z.ZodString;
1802
+ name: z.ZodString;
1803
+ email: z.ZodOptional<z.ZodString>;
1804
+ avatarUrl: z.ZodOptional<z.ZodString>;
1805
+ }, "strip", z.ZodTypeAny, {
1806
+ name: string;
1807
+ sub: string;
1808
+ login: string;
1809
+ email?: string | undefined;
1810
+ avatarUrl?: string | undefined;
1811
+ }, {
1812
+ name: string;
1813
+ sub: string;
1814
+ login: string;
1815
+ email?: string | undefined;
1816
+ avatarUrl?: string | undefined;
1817
+ }>>;
1818
+ claimedByResponderId: z.ZodOptional<z.ZodString>;
1819
+ claimedByResponderName: z.ZodOptional<z.ZodString>;
1820
+ createdAt: z.ZodString;
1821
+ updatedAt: z.ZodString;
1822
+ expiresAt: z.ZodString;
1823
+ }, "strip", z.ZodTypeAny, {
1824
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
1825
+ id: string;
1826
+ text: string;
1827
+ context: {
1828
+ description: string;
1829
+ codeSnippets: (string | {
1830
+ code: string;
1831
+ filename: string;
1832
+ language?: string | undefined;
1833
+ })[];
1834
+ fileReferences: string[];
1835
+ tags: string[];
1836
+ title?: string | undefined;
1837
+ markdown?: string | undefined;
1838
+ summary?: string | undefined;
1839
+ domain?: string | undefined;
1840
+ urgency?: "low" | "medium" | "high" | undefined;
1841
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
1842
+ links?: z.objectOutputType<{
1843
+ label: z.ZodString;
1844
+ url: z.ZodString;
1845
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1846
+ }, z.ZodUnknown, "strip">[] | undefined;
1847
+ sections?: z.objectOutputType<{
1848
+ title: z.ZodString;
1849
+ markdown: z.ZodString;
1850
+ }, z.ZodUnknown, "strip">[] | undefined;
1851
+ artifacts?: z.objectOutputType<{
1852
+ label: z.ZodString;
1853
+ url: z.ZodString;
1854
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1855
+ mimeType: z.ZodOptional<z.ZodString>;
1856
+ }, z.ZodUnknown, "strip">[] | undefined;
1857
+ metadata?: Record<string, unknown> | undefined;
1858
+ } & {
1859
+ [k: string]: unknown;
1860
+ };
1861
+ routing: {
1862
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
1863
+ targetResponders: string[];
1864
+ timeoutMs: number;
1865
+ presentToUser: boolean;
1866
+ breakpointId?: string | undefined;
1867
+ autoApproveAfterN?: number | undefined;
1868
+ };
1869
+ answers: ({
1870
+ breakpointId: string;
1871
+ id: string;
1872
+ responderId: string;
1873
+ responderName: string;
1874
+ text: string;
1875
+ confidence: number;
1876
+ references: string[];
1877
+ followUpQuestions: string[];
1878
+ answeredAt: string;
1879
+ approved?: boolean | undefined;
1880
+ rating?: {
1881
+ helpful: boolean;
1882
+ ratedAt: string;
1883
+ comment?: string | undefined;
1884
+ } | undefined;
1885
+ decisionMemory?: {
1886
+ applicabilityContext: string;
1887
+ reasoning: string;
1888
+ savedAt: string;
1889
+ enrichedContext?: string | undefined;
1890
+ } | undefined;
1891
+ } | {
1892
+ breakpointId: string;
1893
+ id: string;
1894
+ publicKeyFingerprint: string;
1895
+ responderId: string;
1896
+ responderName: string;
1897
+ text: string;
1898
+ confidence: number;
1899
+ references: string[];
1900
+ followUpQuestions: string[];
1901
+ answeredAt: string;
1902
+ signature: string;
1903
+ signedAt: string;
1904
+ signedFields: string[];
1905
+ approved?: boolean | undefined;
1906
+ rating?: {
1907
+ helpful: boolean;
1908
+ ratedAt: string;
1909
+ comment?: string | undefined;
1910
+ } | undefined;
1911
+ decisionMemory?: {
1912
+ applicabilityContext: string;
1913
+ reasoning: string;
1914
+ savedAt: string;
1915
+ enrichedContext?: string | undefined;
1916
+ } | undefined;
1917
+ })[];
1918
+ createdAt: string;
1919
+ updatedAt: string;
1920
+ expiresAt: string;
1921
+ selectedAnswer?: string | undefined;
1922
+ projectId?: string | undefined;
1923
+ repoId?: string | undefined;
1924
+ createdBy?: {
1925
+ name: string;
1926
+ sub: string;
1927
+ login: string;
1928
+ email?: string | undefined;
1929
+ avatarUrl?: string | undefined;
1930
+ } | undefined;
1931
+ claimedByResponderId?: string | undefined;
1932
+ claimedByResponderName?: string | undefined;
1933
+ }, {
1934
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
1935
+ id: string;
1936
+ text: string;
1937
+ context: {
1938
+ description: string;
1939
+ codeSnippets: (string | {
1940
+ code: string;
1941
+ filename: string;
1942
+ language?: string | undefined;
1943
+ })[];
1944
+ fileReferences: string[];
1945
+ tags: string[];
1946
+ title?: string | undefined;
1947
+ markdown?: string | undefined;
1948
+ summary?: string | undefined;
1949
+ domain?: string | undefined;
1950
+ urgency?: "low" | "medium" | "high" | undefined;
1951
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
1952
+ links?: z.objectInputType<{
1953
+ label: z.ZodString;
1954
+ url: z.ZodString;
1955
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
1956
+ }, z.ZodUnknown, "strip">[] | undefined;
1957
+ sections?: z.objectInputType<{
1958
+ title: z.ZodString;
1959
+ markdown: z.ZodString;
1960
+ }, z.ZodUnknown, "strip">[] | undefined;
1961
+ artifacts?: z.objectInputType<{
1962
+ label: z.ZodString;
1963
+ url: z.ZodString;
1964
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
1965
+ mimeType: z.ZodOptional<z.ZodString>;
1966
+ }, z.ZodUnknown, "strip">[] | undefined;
1967
+ metadata?: Record<string, unknown> | undefined;
1968
+ } & {
1969
+ [k: string]: unknown;
1970
+ };
1971
+ routing: {
1972
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
1973
+ targetResponders: string[];
1974
+ timeoutMs: number;
1975
+ presentToUser: boolean;
1976
+ breakpointId?: string | undefined;
1977
+ autoApproveAfterN?: number | undefined;
1978
+ };
1979
+ answers: ({
1980
+ breakpointId: string;
1981
+ id: string;
1982
+ responderId: string;
1983
+ responderName: string;
1984
+ text: string;
1985
+ confidence: number;
1986
+ references: string[];
1987
+ followUpQuestions: string[];
1988
+ answeredAt: string;
1989
+ approved?: boolean | undefined;
1990
+ rating?: {
1991
+ helpful: boolean;
1992
+ ratedAt: string;
1993
+ comment?: string | undefined;
1994
+ } | undefined;
1995
+ decisionMemory?: {
1996
+ applicabilityContext: string;
1997
+ reasoning: string;
1998
+ savedAt: string;
1999
+ enrichedContext?: string | undefined;
2000
+ } | undefined;
2001
+ } | {
2002
+ breakpointId: string;
2003
+ id: string;
2004
+ publicKeyFingerprint: string;
2005
+ responderId: string;
2006
+ responderName: string;
2007
+ text: string;
2008
+ confidence: number;
2009
+ references: string[];
2010
+ followUpQuestions: string[];
2011
+ answeredAt: string;
2012
+ signature: string;
2013
+ signedAt: string;
2014
+ signedFields: string[];
2015
+ approved?: boolean | undefined;
2016
+ rating?: {
2017
+ helpful: boolean;
2018
+ ratedAt: string;
2019
+ comment?: string | undefined;
2020
+ } | undefined;
2021
+ decisionMemory?: {
2022
+ applicabilityContext: string;
2023
+ reasoning: string;
2024
+ savedAt: string;
2025
+ enrichedContext?: string | undefined;
2026
+ } | undefined;
2027
+ })[];
2028
+ createdAt: string;
2029
+ updatedAt: string;
2030
+ expiresAt: string;
2031
+ selectedAnswer?: string | undefined;
2032
+ projectId?: string | undefined;
2033
+ repoId?: string | undefined;
2034
+ createdBy?: {
2035
+ name: string;
2036
+ sub: string;
2037
+ login: string;
2038
+ email?: string | undefined;
2039
+ avatarUrl?: string | undefined;
2040
+ } | undefined;
2041
+ claimedByResponderId?: string | undefined;
2042
+ claimedByResponderName?: string | undefined;
2043
+ }>;
2044
+ answer: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
2045
+ id: z.ZodString;
2046
+ breakpointId: z.ZodString;
2047
+ responderId: z.ZodString;
2048
+ responderName: z.ZodString;
2049
+ text: z.ZodString;
2050
+ approved: z.ZodOptional<z.ZodBoolean>;
2051
+ confidence: z.ZodNumber;
2052
+ references: z.ZodArray<z.ZodString, "many">;
2053
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
2054
+ answeredAt: z.ZodString;
2055
+ rating: z.ZodOptional<z.ZodObject<{
2056
+ helpful: z.ZodBoolean;
2057
+ comment: z.ZodOptional<z.ZodString>;
2058
+ ratedAt: z.ZodString;
2059
+ }, "strip", z.ZodTypeAny, {
2060
+ helpful: boolean;
2061
+ ratedAt: string;
2062
+ comment?: string | undefined;
2063
+ }, {
2064
+ helpful: boolean;
2065
+ ratedAt: string;
2066
+ comment?: string | undefined;
2067
+ }>>;
2068
+ decisionMemory: z.ZodOptional<z.ZodObject<{
2069
+ applicabilityContext: z.ZodString;
2070
+ reasoning: z.ZodString;
2071
+ enrichedContext: z.ZodOptional<z.ZodString>;
2072
+ savedAt: z.ZodString;
2073
+ }, "strip", z.ZodTypeAny, {
2074
+ applicabilityContext: string;
2075
+ reasoning: string;
2076
+ savedAt: string;
2077
+ enrichedContext?: string | undefined;
2078
+ }, {
2079
+ applicabilityContext: string;
2080
+ reasoning: string;
2081
+ savedAt: string;
2082
+ enrichedContext?: string | undefined;
2083
+ }>>;
2084
+ } & {
2085
+ signature: z.ZodString;
2086
+ publicKeyFingerprint: z.ZodString;
2087
+ signedAt: z.ZodString;
2088
+ signedFields: z.ZodArray<z.ZodString, "many">;
2089
+ }, "strip", z.ZodTypeAny, {
2090
+ breakpointId: string;
2091
+ id: string;
2092
+ publicKeyFingerprint: string;
2093
+ responderId: string;
2094
+ responderName: string;
2095
+ text: string;
2096
+ confidence: number;
2097
+ references: string[];
2098
+ followUpQuestions: string[];
2099
+ answeredAt: string;
2100
+ signature: string;
2101
+ signedAt: string;
2102
+ signedFields: string[];
2103
+ approved?: boolean | undefined;
2104
+ rating?: {
2105
+ helpful: boolean;
2106
+ ratedAt: string;
2107
+ comment?: string | undefined;
2108
+ } | undefined;
2109
+ decisionMemory?: {
2110
+ applicabilityContext: string;
2111
+ reasoning: string;
2112
+ savedAt: string;
2113
+ enrichedContext?: string | undefined;
2114
+ } | undefined;
2115
+ }, {
2116
+ breakpointId: string;
2117
+ id: string;
2118
+ publicKeyFingerprint: string;
2119
+ responderId: string;
2120
+ responderName: string;
2121
+ text: string;
2122
+ confidence: number;
2123
+ references: string[];
2124
+ followUpQuestions: string[];
2125
+ answeredAt: string;
2126
+ signature: string;
2127
+ signedAt: string;
2128
+ signedFields: string[];
2129
+ approved?: boolean | undefined;
2130
+ rating?: {
2131
+ helpful: boolean;
2132
+ ratedAt: string;
2133
+ comment?: string | undefined;
2134
+ } | undefined;
2135
+ decisionMemory?: {
2136
+ applicabilityContext: string;
2137
+ reasoning: string;
2138
+ savedAt: string;
2139
+ enrichedContext?: string | undefined;
2140
+ } | undefined;
2141
+ }>, z.ZodObject<{
2142
+ id: z.ZodString;
2143
+ breakpointId: z.ZodString;
2144
+ responderId: z.ZodString;
2145
+ responderName: z.ZodString;
2146
+ text: z.ZodString;
2147
+ approved: z.ZodOptional<z.ZodBoolean>;
2148
+ confidence: z.ZodNumber;
2149
+ references: z.ZodArray<z.ZodString, "many">;
2150
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
2151
+ answeredAt: z.ZodString;
2152
+ rating: z.ZodOptional<z.ZodObject<{
2153
+ helpful: z.ZodBoolean;
2154
+ comment: z.ZodOptional<z.ZodString>;
2155
+ ratedAt: z.ZodString;
2156
+ }, "strip", z.ZodTypeAny, {
2157
+ helpful: boolean;
2158
+ ratedAt: string;
2159
+ comment?: string | undefined;
2160
+ }, {
2161
+ helpful: boolean;
2162
+ ratedAt: string;
2163
+ comment?: string | undefined;
2164
+ }>>;
2165
+ decisionMemory: z.ZodOptional<z.ZodObject<{
2166
+ applicabilityContext: z.ZodString;
2167
+ reasoning: z.ZodString;
2168
+ enrichedContext: z.ZodOptional<z.ZodString>;
2169
+ savedAt: z.ZodString;
2170
+ }, "strip", z.ZodTypeAny, {
2171
+ applicabilityContext: string;
2172
+ reasoning: string;
2173
+ savedAt: string;
2174
+ enrichedContext?: string | undefined;
2175
+ }, {
2176
+ applicabilityContext: string;
2177
+ reasoning: string;
2178
+ savedAt: string;
2179
+ enrichedContext?: string | undefined;
2180
+ }>>;
2181
+ }, "strip", z.ZodTypeAny, {
2182
+ breakpointId: string;
2183
+ id: string;
2184
+ responderId: string;
2185
+ responderName: string;
2186
+ text: string;
2187
+ confidence: number;
2188
+ references: string[];
2189
+ followUpQuestions: string[];
2190
+ answeredAt: string;
2191
+ approved?: boolean | undefined;
2192
+ rating?: {
2193
+ helpful: boolean;
2194
+ ratedAt: string;
2195
+ comment?: string | undefined;
2196
+ } | undefined;
2197
+ decisionMemory?: {
2198
+ applicabilityContext: string;
2199
+ reasoning: string;
2200
+ savedAt: string;
2201
+ enrichedContext?: string | undefined;
2202
+ } | undefined;
2203
+ }, {
2204
+ breakpointId: string;
2205
+ id: string;
2206
+ responderId: string;
2207
+ responderName: string;
2208
+ text: string;
2209
+ confidence: number;
2210
+ references: string[];
2211
+ followUpQuestions: string[];
2212
+ answeredAt: string;
2213
+ approved?: boolean | undefined;
2214
+ rating?: {
2215
+ helpful: boolean;
2216
+ ratedAt: string;
2217
+ comment?: string | undefined;
2218
+ } | undefined;
2219
+ decisionMemory?: {
2220
+ applicabilityContext: string;
2221
+ reasoning: string;
2222
+ savedAt: string;
2223
+ enrichedContext?: string | undefined;
2224
+ } | undefined;
2225
+ }>]>>;
2226
+ allAnswers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
2227
+ id: z.ZodString;
2228
+ breakpointId: z.ZodString;
2229
+ responderId: z.ZodString;
2230
+ responderName: z.ZodString;
2231
+ text: z.ZodString;
2232
+ approved: z.ZodOptional<z.ZodBoolean>;
2233
+ confidence: z.ZodNumber;
2234
+ references: z.ZodArray<z.ZodString, "many">;
2235
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
2236
+ answeredAt: z.ZodString;
2237
+ rating: z.ZodOptional<z.ZodObject<{
2238
+ helpful: z.ZodBoolean;
2239
+ comment: z.ZodOptional<z.ZodString>;
2240
+ ratedAt: z.ZodString;
2241
+ }, "strip", z.ZodTypeAny, {
2242
+ helpful: boolean;
2243
+ ratedAt: string;
2244
+ comment?: string | undefined;
2245
+ }, {
2246
+ helpful: boolean;
2247
+ ratedAt: string;
2248
+ comment?: string | undefined;
2249
+ }>>;
2250
+ decisionMemory: z.ZodOptional<z.ZodObject<{
2251
+ applicabilityContext: z.ZodString;
2252
+ reasoning: z.ZodString;
2253
+ enrichedContext: z.ZodOptional<z.ZodString>;
2254
+ savedAt: z.ZodString;
2255
+ }, "strip", z.ZodTypeAny, {
2256
+ applicabilityContext: string;
2257
+ reasoning: string;
2258
+ savedAt: string;
2259
+ enrichedContext?: string | undefined;
2260
+ }, {
2261
+ applicabilityContext: string;
2262
+ reasoning: string;
2263
+ savedAt: string;
2264
+ enrichedContext?: string | undefined;
2265
+ }>>;
2266
+ } & {
2267
+ signature: z.ZodString;
2268
+ publicKeyFingerprint: z.ZodString;
2269
+ signedAt: z.ZodString;
2270
+ signedFields: z.ZodArray<z.ZodString, "many">;
2271
+ }, "strip", z.ZodTypeAny, {
2272
+ breakpointId: string;
2273
+ id: string;
2274
+ publicKeyFingerprint: string;
2275
+ responderId: string;
2276
+ responderName: string;
2277
+ text: string;
2278
+ confidence: number;
2279
+ references: string[];
2280
+ followUpQuestions: string[];
2281
+ answeredAt: string;
2282
+ signature: string;
2283
+ signedAt: string;
2284
+ signedFields: string[];
2285
+ approved?: boolean | undefined;
2286
+ rating?: {
2287
+ helpful: boolean;
2288
+ ratedAt: string;
2289
+ comment?: string | undefined;
2290
+ } | undefined;
2291
+ decisionMemory?: {
2292
+ applicabilityContext: string;
2293
+ reasoning: string;
2294
+ savedAt: string;
2295
+ enrichedContext?: string | undefined;
2296
+ } | undefined;
2297
+ }, {
2298
+ breakpointId: string;
2299
+ id: string;
2300
+ publicKeyFingerprint: string;
2301
+ responderId: string;
2302
+ responderName: string;
2303
+ text: string;
2304
+ confidence: number;
2305
+ references: string[];
2306
+ followUpQuestions: string[];
2307
+ answeredAt: string;
2308
+ signature: string;
2309
+ signedAt: string;
2310
+ signedFields: string[];
2311
+ approved?: boolean | undefined;
2312
+ rating?: {
2313
+ helpful: boolean;
2314
+ ratedAt: string;
2315
+ comment?: string | undefined;
2316
+ } | undefined;
2317
+ decisionMemory?: {
2318
+ applicabilityContext: string;
2319
+ reasoning: string;
2320
+ savedAt: string;
2321
+ enrichedContext?: string | undefined;
2322
+ } | undefined;
2323
+ }>, z.ZodObject<{
2324
+ id: z.ZodString;
2325
+ breakpointId: z.ZodString;
2326
+ responderId: z.ZodString;
2327
+ responderName: z.ZodString;
2328
+ text: z.ZodString;
2329
+ approved: z.ZodOptional<z.ZodBoolean>;
2330
+ confidence: z.ZodNumber;
2331
+ references: z.ZodArray<z.ZodString, "many">;
2332
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
2333
+ answeredAt: z.ZodString;
2334
+ rating: z.ZodOptional<z.ZodObject<{
2335
+ helpful: z.ZodBoolean;
2336
+ comment: z.ZodOptional<z.ZodString>;
2337
+ ratedAt: z.ZodString;
2338
+ }, "strip", z.ZodTypeAny, {
2339
+ helpful: boolean;
2340
+ ratedAt: string;
2341
+ comment?: string | undefined;
2342
+ }, {
2343
+ helpful: boolean;
2344
+ ratedAt: string;
2345
+ comment?: string | undefined;
2346
+ }>>;
2347
+ decisionMemory: z.ZodOptional<z.ZodObject<{
2348
+ applicabilityContext: z.ZodString;
2349
+ reasoning: z.ZodString;
2350
+ enrichedContext: z.ZodOptional<z.ZodString>;
2351
+ savedAt: z.ZodString;
2352
+ }, "strip", z.ZodTypeAny, {
2353
+ applicabilityContext: string;
2354
+ reasoning: string;
2355
+ savedAt: string;
2356
+ enrichedContext?: string | undefined;
2357
+ }, {
2358
+ applicabilityContext: string;
2359
+ reasoning: string;
2360
+ savedAt: string;
2361
+ enrichedContext?: string | undefined;
2362
+ }>>;
2363
+ }, "strip", z.ZodTypeAny, {
2364
+ breakpointId: string;
2365
+ id: string;
2366
+ responderId: string;
2367
+ responderName: string;
2368
+ text: string;
2369
+ confidence: number;
2370
+ references: string[];
2371
+ followUpQuestions: string[];
2372
+ answeredAt: string;
2373
+ approved?: boolean | undefined;
2374
+ rating?: {
2375
+ helpful: boolean;
2376
+ ratedAt: string;
2377
+ comment?: string | undefined;
2378
+ } | undefined;
2379
+ decisionMemory?: {
2380
+ applicabilityContext: string;
2381
+ reasoning: string;
2382
+ savedAt: string;
2383
+ enrichedContext?: string | undefined;
2384
+ } | undefined;
2385
+ }, {
2386
+ breakpointId: string;
2387
+ id: string;
2388
+ responderId: string;
2389
+ responderName: string;
2390
+ text: string;
2391
+ confidence: number;
2392
+ references: string[];
2393
+ followUpQuestions: string[];
2394
+ answeredAt: string;
2395
+ approved?: boolean | undefined;
2396
+ rating?: {
2397
+ helpful: boolean;
2398
+ ratedAt: string;
2399
+ comment?: string | undefined;
2400
+ } | undefined;
2401
+ decisionMemory?: {
2402
+ applicabilityContext: string;
2403
+ reasoning: string;
2404
+ savedAt: string;
2405
+ enrichedContext?: string | undefined;
2406
+ } | undefined;
2407
+ }>]>, "many">;
2408
+ resolution: z.ZodOptional<z.ZodString>;
2409
+ elapsedMs: z.ZodNumber;
2410
+ }, "strip", z.ZodTypeAny, {
2411
+ answered: boolean;
2412
+ breakpoint: {
2413
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
2414
+ id: string;
2415
+ text: string;
2416
+ context: {
2417
+ description: string;
2418
+ codeSnippets: (string | {
2419
+ code: string;
2420
+ filename: string;
2421
+ language?: string | undefined;
2422
+ })[];
2423
+ fileReferences: string[];
2424
+ tags: string[];
2425
+ title?: string | undefined;
2426
+ markdown?: string | undefined;
2427
+ summary?: string | undefined;
2428
+ domain?: string | undefined;
2429
+ urgency?: "low" | "medium" | "high" | undefined;
2430
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
2431
+ links?: z.objectOutputType<{
2432
+ label: z.ZodString;
2433
+ url: z.ZodString;
2434
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2435
+ }, z.ZodUnknown, "strip">[] | undefined;
2436
+ sections?: z.objectOutputType<{
2437
+ title: z.ZodString;
2438
+ markdown: z.ZodString;
2439
+ }, z.ZodUnknown, "strip">[] | undefined;
2440
+ artifacts?: z.objectOutputType<{
2441
+ label: z.ZodString;
2442
+ url: z.ZodString;
2443
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
2444
+ mimeType: z.ZodOptional<z.ZodString>;
2445
+ }, z.ZodUnknown, "strip">[] | undefined;
2446
+ metadata?: Record<string, unknown> | undefined;
2447
+ } & {
2448
+ [k: string]: unknown;
2449
+ };
2450
+ routing: {
2451
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
2452
+ targetResponders: string[];
2453
+ timeoutMs: number;
2454
+ presentToUser: boolean;
2455
+ breakpointId?: string | undefined;
2456
+ autoApproveAfterN?: number | undefined;
2457
+ };
2458
+ answers: ({
2459
+ breakpointId: string;
2460
+ id: string;
2461
+ responderId: string;
2462
+ responderName: string;
2463
+ text: string;
2464
+ confidence: number;
2465
+ references: string[];
2466
+ followUpQuestions: string[];
2467
+ answeredAt: string;
2468
+ approved?: boolean | undefined;
2469
+ rating?: {
2470
+ helpful: boolean;
2471
+ ratedAt: string;
2472
+ comment?: string | undefined;
2473
+ } | undefined;
2474
+ decisionMemory?: {
2475
+ applicabilityContext: string;
2476
+ reasoning: string;
2477
+ savedAt: string;
2478
+ enrichedContext?: string | undefined;
2479
+ } | undefined;
2480
+ } | {
2481
+ breakpointId: string;
2482
+ id: string;
2483
+ publicKeyFingerprint: string;
2484
+ responderId: string;
2485
+ responderName: string;
2486
+ text: string;
2487
+ confidence: number;
2488
+ references: string[];
2489
+ followUpQuestions: string[];
2490
+ answeredAt: string;
2491
+ signature: string;
2492
+ signedAt: string;
2493
+ signedFields: string[];
2494
+ approved?: boolean | undefined;
2495
+ rating?: {
2496
+ helpful: boolean;
2497
+ ratedAt: string;
2498
+ comment?: string | undefined;
2499
+ } | undefined;
2500
+ decisionMemory?: {
2501
+ applicabilityContext: string;
2502
+ reasoning: string;
2503
+ savedAt: string;
2504
+ enrichedContext?: string | undefined;
2505
+ } | undefined;
2506
+ })[];
2507
+ createdAt: string;
2508
+ updatedAt: string;
2509
+ expiresAt: string;
2510
+ selectedAnswer?: string | undefined;
2511
+ projectId?: string | undefined;
2512
+ repoId?: string | undefined;
2513
+ createdBy?: {
2514
+ name: string;
2515
+ sub: string;
2516
+ login: string;
2517
+ email?: string | undefined;
2518
+ avatarUrl?: string | undefined;
2519
+ } | undefined;
2520
+ claimedByResponderId?: string | undefined;
2521
+ claimedByResponderName?: string | undefined;
2522
+ };
2523
+ allAnswers: ({
2524
+ breakpointId: string;
2525
+ id: string;
2526
+ responderId: string;
2527
+ responderName: string;
2528
+ text: string;
2529
+ confidence: number;
2530
+ references: string[];
2531
+ followUpQuestions: string[];
2532
+ answeredAt: string;
2533
+ approved?: boolean | undefined;
2534
+ rating?: {
2535
+ helpful: boolean;
2536
+ ratedAt: string;
2537
+ comment?: string | undefined;
2538
+ } | undefined;
2539
+ decisionMemory?: {
2540
+ applicabilityContext: string;
2541
+ reasoning: string;
2542
+ savedAt: string;
2543
+ enrichedContext?: string | undefined;
2544
+ } | undefined;
2545
+ } | {
2546
+ breakpointId: string;
2547
+ id: string;
2548
+ publicKeyFingerprint: string;
2549
+ responderId: string;
2550
+ responderName: string;
2551
+ text: string;
2552
+ confidence: number;
2553
+ references: string[];
2554
+ followUpQuestions: string[];
2555
+ answeredAt: string;
2556
+ signature: string;
2557
+ signedAt: string;
2558
+ signedFields: string[];
2559
+ approved?: boolean | undefined;
2560
+ rating?: {
2561
+ helpful: boolean;
2562
+ ratedAt: string;
2563
+ comment?: string | undefined;
2564
+ } | undefined;
2565
+ decisionMemory?: {
2566
+ applicabilityContext: string;
2567
+ reasoning: string;
2568
+ savedAt: string;
2569
+ enrichedContext?: string | undefined;
2570
+ } | undefined;
2571
+ })[];
2572
+ elapsedMs: number;
2573
+ answer?: {
2574
+ breakpointId: string;
2575
+ id: string;
2576
+ responderId: string;
2577
+ responderName: string;
2578
+ text: string;
2579
+ confidence: number;
2580
+ references: string[];
2581
+ followUpQuestions: string[];
2582
+ answeredAt: string;
2583
+ approved?: boolean | undefined;
2584
+ rating?: {
2585
+ helpful: boolean;
2586
+ ratedAt: string;
2587
+ comment?: string | undefined;
2588
+ } | undefined;
2589
+ decisionMemory?: {
2590
+ applicabilityContext: string;
2591
+ reasoning: string;
2592
+ savedAt: string;
2593
+ enrichedContext?: string | undefined;
2594
+ } | undefined;
2595
+ } | {
2596
+ breakpointId: string;
2597
+ id: string;
2598
+ publicKeyFingerprint: string;
2599
+ responderId: string;
2600
+ responderName: string;
2601
+ text: string;
2602
+ confidence: number;
2603
+ references: string[];
2604
+ followUpQuestions: string[];
2605
+ answeredAt: string;
2606
+ signature: string;
2607
+ signedAt: string;
2608
+ signedFields: string[];
2609
+ approved?: boolean | undefined;
2610
+ rating?: {
2611
+ helpful: boolean;
2612
+ ratedAt: string;
2613
+ comment?: string | undefined;
2614
+ } | undefined;
2615
+ decisionMemory?: {
2616
+ applicabilityContext: string;
2617
+ reasoning: string;
2618
+ savedAt: string;
2619
+ enrichedContext?: string | undefined;
2620
+ } | undefined;
2621
+ } | undefined;
2622
+ resolution?: string | undefined;
2623
+ }, {
2624
+ answered: boolean;
2625
+ breakpoint: {
2626
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
2627
+ id: string;
2628
+ text: string;
2629
+ context: {
2630
+ description: string;
2631
+ codeSnippets: (string | {
2632
+ code: string;
2633
+ filename: string;
2634
+ language?: string | undefined;
2635
+ })[];
2636
+ fileReferences: string[];
2637
+ tags: string[];
2638
+ title?: string | undefined;
2639
+ markdown?: string | undefined;
2640
+ summary?: string | undefined;
2641
+ domain?: string | undefined;
2642
+ urgency?: "low" | "medium" | "high" | undefined;
2643
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
2644
+ links?: z.objectInputType<{
2645
+ label: z.ZodString;
2646
+ url: z.ZodString;
2647
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2648
+ }, z.ZodUnknown, "strip">[] | undefined;
2649
+ sections?: z.objectInputType<{
2650
+ title: z.ZodString;
2651
+ markdown: z.ZodString;
2652
+ }, z.ZodUnknown, "strip">[] | undefined;
2653
+ artifacts?: z.objectInputType<{
2654
+ label: z.ZodString;
2655
+ url: z.ZodString;
2656
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
2657
+ mimeType: z.ZodOptional<z.ZodString>;
2658
+ }, z.ZodUnknown, "strip">[] | undefined;
2659
+ metadata?: Record<string, unknown> | undefined;
2660
+ } & {
2661
+ [k: string]: unknown;
2662
+ };
2663
+ routing: {
2664
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
2665
+ targetResponders: string[];
2666
+ timeoutMs: number;
2667
+ presentToUser: boolean;
2668
+ breakpointId?: string | undefined;
2669
+ autoApproveAfterN?: number | undefined;
2670
+ };
2671
+ answers: ({
2672
+ breakpointId: string;
2673
+ id: string;
2674
+ responderId: string;
2675
+ responderName: string;
2676
+ text: string;
2677
+ confidence: number;
2678
+ references: string[];
2679
+ followUpQuestions: string[];
2680
+ answeredAt: string;
2681
+ approved?: boolean | undefined;
2682
+ rating?: {
2683
+ helpful: boolean;
2684
+ ratedAt: string;
2685
+ comment?: string | undefined;
2686
+ } | undefined;
2687
+ decisionMemory?: {
2688
+ applicabilityContext: string;
2689
+ reasoning: string;
2690
+ savedAt: string;
2691
+ enrichedContext?: string | undefined;
2692
+ } | undefined;
2693
+ } | {
2694
+ breakpointId: string;
2695
+ id: string;
2696
+ publicKeyFingerprint: string;
2697
+ responderId: string;
2698
+ responderName: string;
2699
+ text: string;
2700
+ confidence: number;
2701
+ references: string[];
2702
+ followUpQuestions: string[];
2703
+ answeredAt: string;
2704
+ signature: string;
2705
+ signedAt: string;
2706
+ signedFields: string[];
2707
+ approved?: boolean | undefined;
2708
+ rating?: {
2709
+ helpful: boolean;
2710
+ ratedAt: string;
2711
+ comment?: string | undefined;
2712
+ } | undefined;
2713
+ decisionMemory?: {
2714
+ applicabilityContext: string;
2715
+ reasoning: string;
2716
+ savedAt: string;
2717
+ enrichedContext?: string | undefined;
2718
+ } | undefined;
2719
+ })[];
2720
+ createdAt: string;
2721
+ updatedAt: string;
2722
+ expiresAt: string;
2723
+ selectedAnswer?: string | undefined;
2724
+ projectId?: string | undefined;
2725
+ repoId?: string | undefined;
2726
+ createdBy?: {
2727
+ name: string;
2728
+ sub: string;
2729
+ login: string;
2730
+ email?: string | undefined;
2731
+ avatarUrl?: string | undefined;
2732
+ } | undefined;
2733
+ claimedByResponderId?: string | undefined;
2734
+ claimedByResponderName?: string | undefined;
2735
+ };
2736
+ allAnswers: ({
2737
+ breakpointId: string;
2738
+ id: string;
2739
+ responderId: string;
2740
+ responderName: string;
2741
+ text: string;
2742
+ confidence: number;
2743
+ references: string[];
2744
+ followUpQuestions: string[];
2745
+ answeredAt: string;
2746
+ approved?: boolean | undefined;
2747
+ rating?: {
2748
+ helpful: boolean;
2749
+ ratedAt: string;
2750
+ comment?: string | undefined;
2751
+ } | undefined;
2752
+ decisionMemory?: {
2753
+ applicabilityContext: string;
2754
+ reasoning: string;
2755
+ savedAt: string;
2756
+ enrichedContext?: string | undefined;
2757
+ } | undefined;
2758
+ } | {
2759
+ breakpointId: string;
2760
+ id: string;
2761
+ publicKeyFingerprint: string;
2762
+ responderId: string;
2763
+ responderName: string;
2764
+ text: string;
2765
+ confidence: number;
2766
+ references: string[];
2767
+ followUpQuestions: string[];
2768
+ answeredAt: string;
2769
+ signature: string;
2770
+ signedAt: string;
2771
+ signedFields: string[];
2772
+ approved?: boolean | undefined;
2773
+ rating?: {
2774
+ helpful: boolean;
2775
+ ratedAt: string;
2776
+ comment?: string | undefined;
2777
+ } | undefined;
2778
+ decisionMemory?: {
2779
+ applicabilityContext: string;
2780
+ reasoning: string;
2781
+ savedAt: string;
2782
+ enrichedContext?: string | undefined;
2783
+ } | undefined;
2784
+ })[];
2785
+ elapsedMs: number;
2786
+ answer?: {
2787
+ breakpointId: string;
2788
+ id: string;
2789
+ responderId: string;
2790
+ responderName: string;
2791
+ text: string;
2792
+ confidence: number;
2793
+ references: string[];
2794
+ followUpQuestions: string[];
2795
+ answeredAt: string;
2796
+ approved?: boolean | undefined;
2797
+ rating?: {
2798
+ helpful: boolean;
2799
+ ratedAt: string;
2800
+ comment?: string | undefined;
2801
+ } | undefined;
2802
+ decisionMemory?: {
2803
+ applicabilityContext: string;
2804
+ reasoning: string;
2805
+ savedAt: string;
2806
+ enrichedContext?: string | undefined;
2807
+ } | undefined;
2808
+ } | {
2809
+ breakpointId: string;
2810
+ id: string;
2811
+ publicKeyFingerprint: string;
2812
+ responderId: string;
2813
+ responderName: string;
2814
+ text: string;
2815
+ confidence: number;
2816
+ references: string[];
2817
+ followUpQuestions: string[];
2818
+ answeredAt: string;
2819
+ signature: string;
2820
+ signedAt: string;
2821
+ signedFields: string[];
2822
+ approved?: boolean | undefined;
2823
+ rating?: {
2824
+ helpful: boolean;
2825
+ ratedAt: string;
2826
+ comment?: string | undefined;
2827
+ } | undefined;
2828
+ decisionMemory?: {
2829
+ applicabilityContext: string;
2830
+ reasoning: string;
2831
+ savedAt: string;
2832
+ enrichedContext?: string | undefined;
2833
+ } | undefined;
2834
+ } | undefined;
2835
+ resolution?: string | undefined;
2836
+ }>;
2837
+ export type BreakpointWaitResult = z.infer<typeof BreakpointWaitResultSchema>;
2838
+ export declare const ExpertiseAreaSchema: z.ZodObject<{
2839
+ domain: z.ZodString;
2840
+ topics: z.ZodArray<z.ZodString, "many">;
2841
+ keywords: z.ZodArray<z.ZodString, "many">;
2842
+ proficiency: z.ZodNumber;
2843
+ }, "strip", z.ZodTypeAny, {
2844
+ domain: string;
2845
+ topics: string[];
2846
+ keywords: string[];
2847
+ proficiency: number;
2848
+ }, {
2849
+ domain: string;
2850
+ topics: string[];
2851
+ keywords: string[];
2852
+ proficiency: number;
2853
+ }>;
2854
+ export type ExpertiseArea = z.infer<typeof ExpertiseAreaSchema>;
2855
+ export declare const BreakpointBrowserSessionSchema: z.ZodObject<{
2856
+ breakpointId: z.ZodString;
2857
+ slug: z.ZodString;
2858
+ url: z.ZodString;
2859
+ authToken: z.ZodString;
2860
+ expiresAt: z.ZodString;
2861
+ mode: z.ZodEnum<["same-user", "responder"]>;
2862
+ responderId: z.ZodOptional<z.ZodString>;
2863
+ responderName: z.ZodOptional<z.ZodString>;
2864
+ }, "strip", z.ZodTypeAny, {
2865
+ url: string;
2866
+ breakpointId: string;
2867
+ expiresAt: string;
2868
+ slug: string;
2869
+ authToken: string;
2870
+ mode: "same-user" | "responder";
2871
+ responderId?: string | undefined;
2872
+ responderName?: string | undefined;
2873
+ }, {
2874
+ url: string;
2875
+ breakpointId: string;
2876
+ expiresAt: string;
2877
+ slug: string;
2878
+ authToken: string;
2879
+ mode: "same-user" | "responder";
2880
+ responderId?: string | undefined;
2881
+ responderName?: string | undefined;
2882
+ }>;
2883
+ export type BreakpointBrowserSession = z.infer<typeof BreakpointBrowserSessionSchema>;
2884
+ export declare const BreakpointSessionViewSchema: z.ZodObject<{
2885
+ breakpoint: z.ZodObject<{
2886
+ id: z.ZodString;
2887
+ text: z.ZodString;
2888
+ context: z.ZodObject<{
2889
+ description: z.ZodString;
2890
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2891
+ filename: z.ZodString;
2892
+ code: z.ZodString;
2893
+ language: z.ZodOptional<z.ZodString>;
2894
+ }, "strip", z.ZodTypeAny, {
2895
+ code: string;
2896
+ filename: string;
2897
+ language?: string | undefined;
2898
+ }, {
2899
+ code: string;
2900
+ filename: string;
2901
+ language?: string | undefined;
2902
+ }>]>, "many">;
2903
+ fileReferences: z.ZodArray<z.ZodString, "many">;
2904
+ tags: z.ZodArray<z.ZodString, "many">;
2905
+ title: z.ZodOptional<z.ZodString>;
2906
+ summary: z.ZodOptional<z.ZodString>;
2907
+ markdown: z.ZodOptional<z.ZodString>;
2908
+ domain: z.ZodOptional<z.ZodString>;
2909
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
2910
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
2911
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
2912
+ label: z.ZodString;
2913
+ url: z.ZodString;
2914
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2915
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2916
+ label: z.ZodString;
2917
+ url: z.ZodString;
2918
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2919
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2920
+ label: z.ZodString;
2921
+ url: z.ZodString;
2922
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2923
+ }, z.ZodUnknown, "strip">>, "many">>;
2924
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
2925
+ title: z.ZodString;
2926
+ markdown: z.ZodString;
2927
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2928
+ title: z.ZodString;
2929
+ markdown: z.ZodString;
2930
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2931
+ title: z.ZodString;
2932
+ markdown: z.ZodString;
2933
+ }, z.ZodUnknown, "strip">>, "many">>;
2934
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2935
+ label: z.ZodString;
2936
+ url: z.ZodString;
2937
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
2938
+ mimeType: z.ZodOptional<z.ZodString>;
2939
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2940
+ label: z.ZodString;
2941
+ url: z.ZodString;
2942
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
2943
+ mimeType: z.ZodOptional<z.ZodString>;
2944
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2945
+ label: z.ZodString;
2946
+ url: z.ZodString;
2947
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
2948
+ mimeType: z.ZodOptional<z.ZodString>;
2949
+ }, z.ZodUnknown, "strip">>, "many">>;
2950
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2951
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2952
+ description: z.ZodString;
2953
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
2954
+ filename: z.ZodString;
2955
+ code: z.ZodString;
2956
+ language: z.ZodOptional<z.ZodString>;
2957
+ }, "strip", z.ZodTypeAny, {
2958
+ code: string;
2959
+ filename: string;
2960
+ language?: string | undefined;
2961
+ }, {
2962
+ code: string;
2963
+ filename: string;
2964
+ language?: string | undefined;
2965
+ }>]>, "many">;
2966
+ fileReferences: z.ZodArray<z.ZodString, "many">;
2967
+ tags: z.ZodArray<z.ZodString, "many">;
2968
+ title: z.ZodOptional<z.ZodString>;
2969
+ summary: z.ZodOptional<z.ZodString>;
2970
+ markdown: z.ZodOptional<z.ZodString>;
2971
+ domain: z.ZodOptional<z.ZodString>;
2972
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
2973
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
2974
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
2975
+ label: z.ZodString;
2976
+ url: z.ZodString;
2977
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2978
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2979
+ label: z.ZodString;
2980
+ url: z.ZodString;
2981
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2982
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2983
+ label: z.ZodString;
2984
+ url: z.ZodString;
2985
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
2986
+ }, z.ZodUnknown, "strip">>, "many">>;
2987
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
2988
+ title: z.ZodString;
2989
+ markdown: z.ZodString;
2990
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
2991
+ title: z.ZodString;
2992
+ markdown: z.ZodString;
2993
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
2994
+ title: z.ZodString;
2995
+ markdown: z.ZodString;
2996
+ }, z.ZodUnknown, "strip">>, "many">>;
2997
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
2998
+ label: z.ZodString;
2999
+ url: z.ZodString;
3000
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3001
+ mimeType: z.ZodOptional<z.ZodString>;
3002
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
3003
+ label: z.ZodString;
3004
+ url: z.ZodString;
3005
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3006
+ mimeType: z.ZodOptional<z.ZodString>;
3007
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
3008
+ label: z.ZodString;
3009
+ url: z.ZodString;
3010
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3011
+ mimeType: z.ZodOptional<z.ZodString>;
3012
+ }, z.ZodUnknown, "strip">>, "many">>;
3013
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3014
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
3015
+ description: z.ZodString;
3016
+ codeSnippets: z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodObject<{
3017
+ filename: z.ZodString;
3018
+ code: z.ZodString;
3019
+ language: z.ZodOptional<z.ZodString>;
3020
+ }, "strip", z.ZodTypeAny, {
3021
+ code: string;
3022
+ filename: string;
3023
+ language?: string | undefined;
3024
+ }, {
3025
+ code: string;
3026
+ filename: string;
3027
+ language?: string | undefined;
3028
+ }>]>, "many">;
3029
+ fileReferences: z.ZodArray<z.ZodString, "many">;
3030
+ tags: z.ZodArray<z.ZodString, "many">;
3031
+ title: z.ZodOptional<z.ZodString>;
3032
+ summary: z.ZodOptional<z.ZodString>;
3033
+ markdown: z.ZodOptional<z.ZodString>;
3034
+ domain: z.ZodOptional<z.ZodString>;
3035
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
3036
+ interactionKind: z.ZodOptional<z.ZodEnum<["clarification", "approval", "intervention", "notification", "handoff"]>>;
3037
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
3038
+ label: z.ZodString;
3039
+ url: z.ZodString;
3040
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
3041
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
3042
+ label: z.ZodString;
3043
+ url: z.ZodString;
3044
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
3045
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
3046
+ label: z.ZodString;
3047
+ url: z.ZodString;
3048
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
3049
+ }, z.ZodUnknown, "strip">>, "many">>;
3050
+ sections: z.ZodOptional<z.ZodArray<z.ZodObject<{
3051
+ title: z.ZodString;
3052
+ markdown: z.ZodString;
3053
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
3054
+ title: z.ZodString;
3055
+ markdown: z.ZodString;
3056
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
3057
+ title: z.ZodString;
3058
+ markdown: z.ZodString;
3059
+ }, z.ZodUnknown, "strip">>, "many">>;
3060
+ artifacts: z.ZodOptional<z.ZodArray<z.ZodObject<{
3061
+ label: z.ZodString;
3062
+ url: z.ZodString;
3063
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3064
+ mimeType: z.ZodOptional<z.ZodString>;
3065
+ }, "strip", z.ZodUnknown, z.objectOutputType<{
3066
+ label: z.ZodString;
3067
+ url: z.ZodString;
3068
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3069
+ mimeType: z.ZodOptional<z.ZodString>;
3070
+ }, z.ZodUnknown, "strip">, z.objectInputType<{
3071
+ label: z.ZodString;
3072
+ url: z.ZodString;
3073
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3074
+ mimeType: z.ZodOptional<z.ZodString>;
3075
+ }, z.ZodUnknown, "strip">>, "many">>;
3076
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
3077
+ }, z.ZodUnknown, "strip">>;
3078
+ status: z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled"]>;
3079
+ routing: z.ZodObject<{
3080
+ strategy: z.ZodEnum<["single", "first-response-wins", "collect-all", "quorum"]>;
3081
+ targetResponders: z.ZodArray<z.ZodString, "many">;
3082
+ timeoutMs: z.ZodNumber;
3083
+ presentToUser: z.ZodBoolean;
3084
+ breakpointId: z.ZodOptional<z.ZodString>;
3085
+ autoApproveAfterN: z.ZodOptional<z.ZodNumber>;
3086
+ }, "strip", z.ZodTypeAny, {
3087
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
3088
+ targetResponders: string[];
3089
+ timeoutMs: number;
3090
+ presentToUser: boolean;
3091
+ breakpointId?: string | undefined;
3092
+ autoApproveAfterN?: number | undefined;
3093
+ }, {
3094
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
3095
+ targetResponders: string[];
3096
+ timeoutMs: number;
3097
+ presentToUser: boolean;
3098
+ breakpointId?: string | undefined;
3099
+ autoApproveAfterN?: number | undefined;
3100
+ }>;
3101
+ answers: z.ZodArray<z.ZodUnion<[z.ZodObject<{
3102
+ id: z.ZodString;
3103
+ breakpointId: z.ZodString;
3104
+ responderId: z.ZodString;
3105
+ responderName: z.ZodString;
3106
+ text: z.ZodString;
3107
+ approved: z.ZodOptional<z.ZodBoolean>;
3108
+ confidence: z.ZodNumber;
3109
+ references: z.ZodArray<z.ZodString, "many">;
3110
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
3111
+ answeredAt: z.ZodString;
3112
+ rating: z.ZodOptional<z.ZodObject<{
3113
+ helpful: z.ZodBoolean;
3114
+ comment: z.ZodOptional<z.ZodString>;
3115
+ ratedAt: z.ZodString;
3116
+ }, "strip", z.ZodTypeAny, {
3117
+ helpful: boolean;
3118
+ ratedAt: string;
3119
+ comment?: string | undefined;
3120
+ }, {
3121
+ helpful: boolean;
3122
+ ratedAt: string;
3123
+ comment?: string | undefined;
3124
+ }>>;
3125
+ decisionMemory: z.ZodOptional<z.ZodObject<{
3126
+ applicabilityContext: z.ZodString;
3127
+ reasoning: z.ZodString;
3128
+ enrichedContext: z.ZodOptional<z.ZodString>;
3129
+ savedAt: z.ZodString;
3130
+ }, "strip", z.ZodTypeAny, {
3131
+ applicabilityContext: string;
3132
+ reasoning: string;
3133
+ savedAt: string;
3134
+ enrichedContext?: string | undefined;
3135
+ }, {
3136
+ applicabilityContext: string;
3137
+ reasoning: string;
3138
+ savedAt: string;
3139
+ enrichedContext?: string | undefined;
3140
+ }>>;
3141
+ } & {
3142
+ signature: z.ZodString;
3143
+ publicKeyFingerprint: z.ZodString;
3144
+ signedAt: z.ZodString;
3145
+ signedFields: z.ZodArray<z.ZodString, "many">;
3146
+ }, "strip", z.ZodTypeAny, {
3147
+ breakpointId: string;
3148
+ id: string;
3149
+ publicKeyFingerprint: string;
3150
+ responderId: string;
3151
+ responderName: string;
3152
+ text: string;
3153
+ confidence: number;
3154
+ references: string[];
3155
+ followUpQuestions: string[];
3156
+ answeredAt: string;
3157
+ signature: string;
3158
+ signedAt: string;
3159
+ signedFields: string[];
3160
+ approved?: boolean | undefined;
3161
+ rating?: {
3162
+ helpful: boolean;
3163
+ ratedAt: string;
3164
+ comment?: string | undefined;
3165
+ } | undefined;
3166
+ decisionMemory?: {
3167
+ applicabilityContext: string;
3168
+ reasoning: string;
3169
+ savedAt: string;
3170
+ enrichedContext?: string | undefined;
3171
+ } | undefined;
3172
+ }, {
3173
+ breakpointId: string;
3174
+ id: string;
3175
+ publicKeyFingerprint: string;
3176
+ responderId: string;
3177
+ responderName: string;
3178
+ text: string;
3179
+ confidence: number;
3180
+ references: string[];
3181
+ followUpQuestions: string[];
3182
+ answeredAt: string;
3183
+ signature: string;
3184
+ signedAt: string;
3185
+ signedFields: string[];
3186
+ approved?: boolean | undefined;
3187
+ rating?: {
3188
+ helpful: boolean;
3189
+ ratedAt: string;
3190
+ comment?: string | undefined;
3191
+ } | undefined;
3192
+ decisionMemory?: {
3193
+ applicabilityContext: string;
3194
+ reasoning: string;
3195
+ savedAt: string;
3196
+ enrichedContext?: string | undefined;
3197
+ } | undefined;
3198
+ }>, z.ZodObject<{
3199
+ id: z.ZodString;
3200
+ breakpointId: z.ZodString;
3201
+ responderId: z.ZodString;
3202
+ responderName: z.ZodString;
3203
+ text: z.ZodString;
3204
+ approved: z.ZodOptional<z.ZodBoolean>;
3205
+ confidence: z.ZodNumber;
3206
+ references: z.ZodArray<z.ZodString, "many">;
3207
+ followUpQuestions: z.ZodArray<z.ZodString, "many">;
3208
+ answeredAt: z.ZodString;
3209
+ rating: z.ZodOptional<z.ZodObject<{
3210
+ helpful: z.ZodBoolean;
3211
+ comment: z.ZodOptional<z.ZodString>;
3212
+ ratedAt: z.ZodString;
3213
+ }, "strip", z.ZodTypeAny, {
3214
+ helpful: boolean;
3215
+ ratedAt: string;
3216
+ comment?: string | undefined;
3217
+ }, {
3218
+ helpful: boolean;
3219
+ ratedAt: string;
3220
+ comment?: string | undefined;
3221
+ }>>;
3222
+ decisionMemory: z.ZodOptional<z.ZodObject<{
3223
+ applicabilityContext: z.ZodString;
3224
+ reasoning: z.ZodString;
3225
+ enrichedContext: z.ZodOptional<z.ZodString>;
3226
+ savedAt: z.ZodString;
3227
+ }, "strip", z.ZodTypeAny, {
3228
+ applicabilityContext: string;
3229
+ reasoning: string;
3230
+ savedAt: string;
3231
+ enrichedContext?: string | undefined;
3232
+ }, {
3233
+ applicabilityContext: string;
3234
+ reasoning: string;
3235
+ savedAt: string;
3236
+ enrichedContext?: string | undefined;
3237
+ }>>;
3238
+ }, "strip", z.ZodTypeAny, {
3239
+ breakpointId: string;
3240
+ id: string;
3241
+ responderId: string;
3242
+ responderName: string;
3243
+ text: string;
3244
+ confidence: number;
3245
+ references: string[];
3246
+ followUpQuestions: string[];
3247
+ answeredAt: string;
3248
+ approved?: boolean | undefined;
3249
+ rating?: {
3250
+ helpful: boolean;
3251
+ ratedAt: string;
3252
+ comment?: string | undefined;
3253
+ } | undefined;
3254
+ decisionMemory?: {
3255
+ applicabilityContext: string;
3256
+ reasoning: string;
3257
+ savedAt: string;
3258
+ enrichedContext?: string | undefined;
3259
+ } | undefined;
3260
+ }, {
3261
+ breakpointId: string;
3262
+ id: string;
3263
+ responderId: string;
3264
+ responderName: string;
3265
+ text: string;
3266
+ confidence: number;
3267
+ references: string[];
3268
+ followUpQuestions: string[];
3269
+ answeredAt: string;
3270
+ approved?: boolean | undefined;
3271
+ rating?: {
3272
+ helpful: boolean;
3273
+ ratedAt: string;
3274
+ comment?: string | undefined;
3275
+ } | undefined;
3276
+ decisionMemory?: {
3277
+ applicabilityContext: string;
3278
+ reasoning: string;
3279
+ savedAt: string;
3280
+ enrichedContext?: string | undefined;
3281
+ } | undefined;
3282
+ }>]>, "many">;
3283
+ selectedAnswer: z.ZodOptional<z.ZodString>;
3284
+ projectId: z.ZodOptional<z.ZodString>;
3285
+ repoId: z.ZodOptional<z.ZodString>;
3286
+ createdBy: z.ZodOptional<z.ZodObject<{
3287
+ sub: z.ZodString;
3288
+ login: z.ZodString;
3289
+ name: z.ZodString;
3290
+ email: z.ZodOptional<z.ZodString>;
3291
+ avatarUrl: z.ZodOptional<z.ZodString>;
3292
+ }, "strip", z.ZodTypeAny, {
3293
+ name: string;
3294
+ sub: string;
3295
+ login: string;
3296
+ email?: string | undefined;
3297
+ avatarUrl?: string | undefined;
3298
+ }, {
3299
+ name: string;
3300
+ sub: string;
3301
+ login: string;
3302
+ email?: string | undefined;
3303
+ avatarUrl?: string | undefined;
3304
+ }>>;
3305
+ claimedByResponderId: z.ZodOptional<z.ZodString>;
3306
+ claimedByResponderName: z.ZodOptional<z.ZodString>;
3307
+ createdAt: z.ZodString;
3308
+ updatedAt: z.ZodString;
3309
+ expiresAt: z.ZodString;
3310
+ }, "strip", z.ZodTypeAny, {
3311
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
3312
+ id: string;
3313
+ text: string;
3314
+ context: {
3315
+ description: string;
3316
+ codeSnippets: (string | {
3317
+ code: string;
3318
+ filename: string;
3319
+ language?: string | undefined;
3320
+ })[];
3321
+ fileReferences: string[];
3322
+ tags: string[];
3323
+ title?: string | undefined;
3324
+ markdown?: string | undefined;
3325
+ summary?: string | undefined;
3326
+ domain?: string | undefined;
3327
+ urgency?: "low" | "medium" | "high" | undefined;
3328
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
3329
+ links?: z.objectOutputType<{
3330
+ label: z.ZodString;
3331
+ url: z.ZodString;
3332
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
3333
+ }, z.ZodUnknown, "strip">[] | undefined;
3334
+ sections?: z.objectOutputType<{
3335
+ title: z.ZodString;
3336
+ markdown: z.ZodString;
3337
+ }, z.ZodUnknown, "strip">[] | undefined;
3338
+ artifacts?: z.objectOutputType<{
3339
+ label: z.ZodString;
3340
+ url: z.ZodString;
3341
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3342
+ mimeType: z.ZodOptional<z.ZodString>;
3343
+ }, z.ZodUnknown, "strip">[] | undefined;
3344
+ metadata?: Record<string, unknown> | undefined;
3345
+ } & {
3346
+ [k: string]: unknown;
3347
+ };
3348
+ routing: {
3349
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
3350
+ targetResponders: string[];
3351
+ timeoutMs: number;
3352
+ presentToUser: boolean;
3353
+ breakpointId?: string | undefined;
3354
+ autoApproveAfterN?: number | undefined;
3355
+ };
3356
+ answers: ({
3357
+ breakpointId: string;
3358
+ id: string;
3359
+ responderId: string;
3360
+ responderName: string;
3361
+ text: string;
3362
+ confidence: number;
3363
+ references: string[];
3364
+ followUpQuestions: string[];
3365
+ answeredAt: string;
3366
+ approved?: boolean | undefined;
3367
+ rating?: {
3368
+ helpful: boolean;
3369
+ ratedAt: string;
3370
+ comment?: string | undefined;
3371
+ } | undefined;
3372
+ decisionMemory?: {
3373
+ applicabilityContext: string;
3374
+ reasoning: string;
3375
+ savedAt: string;
3376
+ enrichedContext?: string | undefined;
3377
+ } | undefined;
3378
+ } | {
3379
+ breakpointId: string;
3380
+ id: string;
3381
+ publicKeyFingerprint: string;
3382
+ responderId: string;
3383
+ responderName: string;
3384
+ text: string;
3385
+ confidence: number;
3386
+ references: string[];
3387
+ followUpQuestions: string[];
3388
+ answeredAt: string;
3389
+ signature: string;
3390
+ signedAt: string;
3391
+ signedFields: string[];
3392
+ approved?: boolean | undefined;
3393
+ rating?: {
3394
+ helpful: boolean;
3395
+ ratedAt: string;
3396
+ comment?: string | undefined;
3397
+ } | undefined;
3398
+ decisionMemory?: {
3399
+ applicabilityContext: string;
3400
+ reasoning: string;
3401
+ savedAt: string;
3402
+ enrichedContext?: string | undefined;
3403
+ } | undefined;
3404
+ })[];
3405
+ createdAt: string;
3406
+ updatedAt: string;
3407
+ expiresAt: string;
3408
+ selectedAnswer?: string | undefined;
3409
+ projectId?: string | undefined;
3410
+ repoId?: string | undefined;
3411
+ createdBy?: {
3412
+ name: string;
3413
+ sub: string;
3414
+ login: string;
3415
+ email?: string | undefined;
3416
+ avatarUrl?: string | undefined;
3417
+ } | undefined;
3418
+ claimedByResponderId?: string | undefined;
3419
+ claimedByResponderName?: string | undefined;
3420
+ }, {
3421
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
3422
+ id: string;
3423
+ text: string;
3424
+ context: {
3425
+ description: string;
3426
+ codeSnippets: (string | {
3427
+ code: string;
3428
+ filename: string;
3429
+ language?: string | undefined;
3430
+ })[];
3431
+ fileReferences: string[];
3432
+ tags: string[];
3433
+ title?: string | undefined;
3434
+ markdown?: string | undefined;
3435
+ summary?: string | undefined;
3436
+ domain?: string | undefined;
3437
+ urgency?: "low" | "medium" | "high" | undefined;
3438
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
3439
+ links?: z.objectInputType<{
3440
+ label: z.ZodString;
3441
+ url: z.ZodString;
3442
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
3443
+ }, z.ZodUnknown, "strip">[] | undefined;
3444
+ sections?: z.objectInputType<{
3445
+ title: z.ZodString;
3446
+ markdown: z.ZodString;
3447
+ }, z.ZodUnknown, "strip">[] | undefined;
3448
+ artifacts?: z.objectInputType<{
3449
+ label: z.ZodString;
3450
+ url: z.ZodString;
3451
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3452
+ mimeType: z.ZodOptional<z.ZodString>;
3453
+ }, z.ZodUnknown, "strip">[] | undefined;
3454
+ metadata?: Record<string, unknown> | undefined;
3455
+ } & {
3456
+ [k: string]: unknown;
3457
+ };
3458
+ routing: {
3459
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
3460
+ targetResponders: string[];
3461
+ timeoutMs: number;
3462
+ presentToUser: boolean;
3463
+ breakpointId?: string | undefined;
3464
+ autoApproveAfterN?: number | undefined;
3465
+ };
3466
+ answers: ({
3467
+ breakpointId: string;
3468
+ id: string;
3469
+ responderId: string;
3470
+ responderName: string;
3471
+ text: string;
3472
+ confidence: number;
3473
+ references: string[];
3474
+ followUpQuestions: string[];
3475
+ answeredAt: string;
3476
+ approved?: boolean | undefined;
3477
+ rating?: {
3478
+ helpful: boolean;
3479
+ ratedAt: string;
3480
+ comment?: string | undefined;
3481
+ } | undefined;
3482
+ decisionMemory?: {
3483
+ applicabilityContext: string;
3484
+ reasoning: string;
3485
+ savedAt: string;
3486
+ enrichedContext?: string | undefined;
3487
+ } | undefined;
3488
+ } | {
3489
+ breakpointId: string;
3490
+ id: string;
3491
+ publicKeyFingerprint: string;
3492
+ responderId: string;
3493
+ responderName: string;
3494
+ text: string;
3495
+ confidence: number;
3496
+ references: string[];
3497
+ followUpQuestions: string[];
3498
+ answeredAt: string;
3499
+ signature: string;
3500
+ signedAt: string;
3501
+ signedFields: string[];
3502
+ approved?: boolean | undefined;
3503
+ rating?: {
3504
+ helpful: boolean;
3505
+ ratedAt: string;
3506
+ comment?: string | undefined;
3507
+ } | undefined;
3508
+ decisionMemory?: {
3509
+ applicabilityContext: string;
3510
+ reasoning: string;
3511
+ savedAt: string;
3512
+ enrichedContext?: string | undefined;
3513
+ } | undefined;
3514
+ })[];
3515
+ createdAt: string;
3516
+ updatedAt: string;
3517
+ expiresAt: string;
3518
+ selectedAnswer?: string | undefined;
3519
+ projectId?: string | undefined;
3520
+ repoId?: string | undefined;
3521
+ createdBy?: {
3522
+ name: string;
3523
+ sub: string;
3524
+ login: string;
3525
+ email?: string | undefined;
3526
+ avatarUrl?: string | undefined;
3527
+ } | undefined;
3528
+ claimedByResponderId?: string | undefined;
3529
+ claimedByResponderName?: string | undefined;
3530
+ }>;
3531
+ expiresAt: z.ZodString;
3532
+ canAnswer: z.ZodBoolean;
3533
+ mode: z.ZodEnum<["same-user", "responder"]>;
3534
+ responderId: z.ZodOptional<z.ZodString>;
3535
+ responderName: z.ZodOptional<z.ZodString>;
3536
+ }, "strip", z.ZodTypeAny, {
3537
+ expiresAt: string;
3538
+ breakpoint: {
3539
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
3540
+ id: string;
3541
+ text: string;
3542
+ context: {
3543
+ description: string;
3544
+ codeSnippets: (string | {
3545
+ code: string;
3546
+ filename: string;
3547
+ language?: string | undefined;
3548
+ })[];
3549
+ fileReferences: string[];
3550
+ tags: string[];
3551
+ title?: string | undefined;
3552
+ markdown?: string | undefined;
3553
+ summary?: string | undefined;
3554
+ domain?: string | undefined;
3555
+ urgency?: "low" | "medium" | "high" | undefined;
3556
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
3557
+ links?: z.objectOutputType<{
3558
+ label: z.ZodString;
3559
+ url: z.ZodString;
3560
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
3561
+ }, z.ZodUnknown, "strip">[] | undefined;
3562
+ sections?: z.objectOutputType<{
3563
+ title: z.ZodString;
3564
+ markdown: z.ZodString;
3565
+ }, z.ZodUnknown, "strip">[] | undefined;
3566
+ artifacts?: z.objectOutputType<{
3567
+ label: z.ZodString;
3568
+ url: z.ZodString;
3569
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3570
+ mimeType: z.ZodOptional<z.ZodString>;
3571
+ }, z.ZodUnknown, "strip">[] | undefined;
3572
+ metadata?: Record<string, unknown> | undefined;
3573
+ } & {
3574
+ [k: string]: unknown;
3575
+ };
3576
+ routing: {
3577
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
3578
+ targetResponders: string[];
3579
+ timeoutMs: number;
3580
+ presentToUser: boolean;
3581
+ breakpointId?: string | undefined;
3582
+ autoApproveAfterN?: number | undefined;
3583
+ };
3584
+ answers: ({
3585
+ breakpointId: string;
3586
+ id: string;
3587
+ responderId: string;
3588
+ responderName: string;
3589
+ text: string;
3590
+ confidence: number;
3591
+ references: string[];
3592
+ followUpQuestions: string[];
3593
+ answeredAt: string;
3594
+ approved?: boolean | undefined;
3595
+ rating?: {
3596
+ helpful: boolean;
3597
+ ratedAt: string;
3598
+ comment?: string | undefined;
3599
+ } | undefined;
3600
+ decisionMemory?: {
3601
+ applicabilityContext: string;
3602
+ reasoning: string;
3603
+ savedAt: string;
3604
+ enrichedContext?: string | undefined;
3605
+ } | undefined;
3606
+ } | {
3607
+ breakpointId: string;
3608
+ id: string;
3609
+ publicKeyFingerprint: string;
3610
+ responderId: string;
3611
+ responderName: string;
3612
+ text: string;
3613
+ confidence: number;
3614
+ references: string[];
3615
+ followUpQuestions: string[];
3616
+ answeredAt: string;
3617
+ signature: string;
3618
+ signedAt: string;
3619
+ signedFields: string[];
3620
+ approved?: boolean | undefined;
3621
+ rating?: {
3622
+ helpful: boolean;
3623
+ ratedAt: string;
3624
+ comment?: string | undefined;
3625
+ } | undefined;
3626
+ decisionMemory?: {
3627
+ applicabilityContext: string;
3628
+ reasoning: string;
3629
+ savedAt: string;
3630
+ enrichedContext?: string | undefined;
3631
+ } | undefined;
3632
+ })[];
3633
+ createdAt: string;
3634
+ updatedAt: string;
3635
+ expiresAt: string;
3636
+ selectedAnswer?: string | undefined;
3637
+ projectId?: string | undefined;
3638
+ repoId?: string | undefined;
3639
+ createdBy?: {
3640
+ name: string;
3641
+ sub: string;
3642
+ login: string;
3643
+ email?: string | undefined;
3644
+ avatarUrl?: string | undefined;
3645
+ } | undefined;
3646
+ claimedByResponderId?: string | undefined;
3647
+ claimedByResponderName?: string | undefined;
3648
+ };
3649
+ mode: "same-user" | "responder";
3650
+ canAnswer: boolean;
3651
+ responderId?: string | undefined;
3652
+ responderName?: string | undefined;
3653
+ }, {
3654
+ expiresAt: string;
3655
+ breakpoint: {
3656
+ status: "pending" | "routed" | "claimed" | "answered" | "completed" | "expired" | "cancelled";
3657
+ id: string;
3658
+ text: string;
3659
+ context: {
3660
+ description: string;
3661
+ codeSnippets: (string | {
3662
+ code: string;
3663
+ filename: string;
3664
+ language?: string | undefined;
3665
+ })[];
3666
+ fileReferences: string[];
3667
+ tags: string[];
3668
+ title?: string | undefined;
3669
+ markdown?: string | undefined;
3670
+ summary?: string | undefined;
3671
+ domain?: string | undefined;
3672
+ urgency?: "low" | "medium" | "high" | undefined;
3673
+ interactionKind?: "clarification" | "approval" | "intervention" | "notification" | "handoff" | undefined;
3674
+ links?: z.objectInputType<{
3675
+ label: z.ZodString;
3676
+ url: z.ZodString;
3677
+ kind: z.ZodOptional<z.ZodEnum<["reference", "repo", "artifact", "external"]>>;
3678
+ }, z.ZodUnknown, "strip">[] | undefined;
3679
+ sections?: z.objectInputType<{
3680
+ title: z.ZodString;
3681
+ markdown: z.ZodString;
3682
+ }, z.ZodUnknown, "strip">[] | undefined;
3683
+ artifacts?: z.objectInputType<{
3684
+ label: z.ZodString;
3685
+ url: z.ZodString;
3686
+ kind: z.ZodOptional<z.ZodEnum<["image", "document", "trace", "log", "build", "external"]>>;
3687
+ mimeType: z.ZodOptional<z.ZodString>;
3688
+ }, z.ZodUnknown, "strip">[] | undefined;
3689
+ metadata?: Record<string, unknown> | undefined;
3690
+ } & {
3691
+ [k: string]: unknown;
3692
+ };
3693
+ routing: {
3694
+ strategy: "single" | "first-response-wins" | "collect-all" | "quorum";
3695
+ targetResponders: string[];
3696
+ timeoutMs: number;
3697
+ presentToUser: boolean;
3698
+ breakpointId?: string | undefined;
3699
+ autoApproveAfterN?: number | undefined;
3700
+ };
3701
+ answers: ({
3702
+ breakpointId: string;
3703
+ id: string;
3704
+ responderId: string;
3705
+ responderName: string;
3706
+ text: string;
3707
+ confidence: number;
3708
+ references: string[];
3709
+ followUpQuestions: string[];
3710
+ answeredAt: string;
3711
+ approved?: boolean | undefined;
3712
+ rating?: {
3713
+ helpful: boolean;
3714
+ ratedAt: string;
3715
+ comment?: string | undefined;
3716
+ } | undefined;
3717
+ decisionMemory?: {
3718
+ applicabilityContext: string;
3719
+ reasoning: string;
3720
+ savedAt: string;
3721
+ enrichedContext?: string | undefined;
3722
+ } | undefined;
3723
+ } | {
3724
+ breakpointId: string;
3725
+ id: string;
3726
+ publicKeyFingerprint: string;
3727
+ responderId: string;
3728
+ responderName: string;
3729
+ text: string;
3730
+ confidence: number;
3731
+ references: string[];
3732
+ followUpQuestions: string[];
3733
+ answeredAt: string;
3734
+ signature: string;
3735
+ signedAt: string;
3736
+ signedFields: string[];
3737
+ approved?: boolean | undefined;
3738
+ rating?: {
3739
+ helpful: boolean;
3740
+ ratedAt: string;
3741
+ comment?: string | undefined;
3742
+ } | undefined;
3743
+ decisionMemory?: {
3744
+ applicabilityContext: string;
3745
+ reasoning: string;
3746
+ savedAt: string;
3747
+ enrichedContext?: string | undefined;
3748
+ } | undefined;
3749
+ })[];
3750
+ createdAt: string;
3751
+ updatedAt: string;
3752
+ expiresAt: string;
3753
+ selectedAnswer?: string | undefined;
3754
+ projectId?: string | undefined;
3755
+ repoId?: string | undefined;
3756
+ createdBy?: {
3757
+ name: string;
3758
+ sub: string;
3759
+ login: string;
3760
+ email?: string | undefined;
3761
+ avatarUrl?: string | undefined;
3762
+ } | undefined;
3763
+ claimedByResponderId?: string | undefined;
3764
+ claimedByResponderName?: string | undefined;
3765
+ };
3766
+ mode: "same-user" | "responder";
3767
+ canAnswer: boolean;
3768
+ responderId?: string | undefined;
3769
+ responderName?: string | undefined;
3770
+ }>;
3771
+ export type BreakpointSessionView = z.infer<typeof BreakpointSessionViewSchema>;
3772
+ export interface GitHubRepo {
3773
+ id: string;
3774
+ owner: string;
3775
+ name: string;
3776
+ fullName: string;
3777
+ description: string;
3778
+ url: string;
3779
+ defaultBranch: string;
3780
+ language: string | null;
3781
+ isPrivate: boolean;
3782
+ repoRoot?: string;
3783
+ configRoot?: string;
3784
+ responderDir?: string;
3785
+ isConfigSource?: boolean;
3786
+ connectedAt: string;
3787
+ connectedBy: string;
3788
+ }
3789
+ export interface ProjectMember {
3790
+ userId: string;
3791
+ login: string;
3792
+ name: string;
3793
+ avatarUrl?: string;
3794
+ role: "owner" | "member";
3795
+ addedAt: string;
3796
+ }
3797
+ export interface TeamMember {
3798
+ userId: string;
3799
+ login: string;
3800
+ name: string;
3801
+ avatarUrl?: string;
3802
+ role: "owner" | "member";
3803
+ addedAt: string;
3804
+ }
3805
+ export interface TeamInvitation {
3806
+ id: string;
3807
+ teamId: string;
3808
+ inviteeLogin: string;
3809
+ inviteeUserId?: string;
3810
+ inviterId: string;
3811
+ inviterLogin: string;
3812
+ status: "pending" | "accepted" | "revoked";
3813
+ token: string;
3814
+ createdAt: string;
3815
+ acceptedAt?: string;
3816
+ revokedAt?: string;
3817
+ }
3818
+ export interface Team {
3819
+ id: string;
3820
+ name: string;
3821
+ description: string;
3822
+ ownerId: string;
3823
+ ownerLogin: string;
3824
+ members: TeamMember[];
3825
+ invitations: TeamInvitation[];
3826
+ projectIds: string[];
3827
+ createdAt: string;
3828
+ updatedAt: string;
3829
+ }
3830
+ export interface KnownUser {
3831
+ id: string;
3832
+ login: string;
3833
+ name: string;
3834
+ email?: string;
3835
+ avatarUrl?: string;
3836
+ provider: "github";
3837
+ lastSeenAt: string;
3838
+ }
3839
+ export interface Project {
3840
+ id: string;
3841
+ name: string;
3842
+ description: string;
3843
+ ownerId: string;
3844
+ ownerLogin: string;
3845
+ teamId?: string;
3846
+ teamName?: string;
3847
+ repos: GitHubRepo[];
3848
+ members: ProjectMember[];
3849
+ memberIds?: string[];
3850
+ responderIds?: string[];
3851
+ breakpointCount: number;
3852
+ createdAt: string;
3853
+ updatedAt: string;
3854
+ }
3855
+ export interface ProjectSummary {
3856
+ id: string;
3857
+ name: string;
3858
+ description: string;
3859
+ ownerLogin: string;
3860
+ teamName?: string;
3861
+ repoCount: number;
3862
+ breakpointCount: number;
3863
+ memberCount: number;
3864
+ }
3865
+ export declare const GitNativeBackendConfigSchema: z.ZodObject<{
3866
+ type: z.ZodLiteral<"git-native">;
3867
+ breakpointsDir: z.ZodOptional<z.ZodString>;
3868
+ pollIntervalMs: z.ZodOptional<z.ZodNumber>;
3869
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3870
+ }, "strip", z.ZodTypeAny, {
3871
+ type: "git-native";
3872
+ timeoutMs?: number | undefined;
3873
+ breakpointsDir?: string | undefined;
3874
+ pollIntervalMs?: number | undefined;
3875
+ }, {
3876
+ type: "git-native";
3877
+ timeoutMs?: number | undefined;
3878
+ breakpointsDir?: string | undefined;
3879
+ pollIntervalMs?: number | undefined;
3880
+ }>;
3881
+ export declare const ServerBackendConfigSchema: z.ZodObject<{
3882
+ type: z.ZodLiteral<"server">;
3883
+ url: z.ZodString;
3884
+ authToken: z.ZodOptional<z.ZodString>;
3885
+ }, "strip", z.ZodTypeAny, {
3886
+ type: "server";
3887
+ url: string;
3888
+ authToken?: string | undefined;
3889
+ }, {
3890
+ type: "server";
3891
+ url: string;
3892
+ authToken?: string | undefined;
3893
+ }>;
3894
+ export type ServerBackendConfig = z.infer<typeof ServerBackendConfigSchema>;
3895
+ export declare const GitHubIssuesBackendConfigSchema: z.ZodObject<{
3896
+ type: z.ZodLiteral<"github-issues">;
3897
+ owner: z.ZodString;
3898
+ repo: z.ZodString;
3899
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3900
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3901
+ pollIntervalMs: z.ZodOptional<z.ZodNumber>;
3902
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3903
+ }, "strip", z.ZodTypeAny, {
3904
+ type: "github-issues";
3905
+ repo: string;
3906
+ owner: string;
3907
+ timeoutMs?: number | undefined;
3908
+ pollIntervalMs?: number | undefined;
3909
+ labels?: string[] | undefined;
3910
+ assignees?: string[] | undefined;
3911
+ }, {
3912
+ type: "github-issues";
3913
+ repo: string;
3914
+ owner: string;
3915
+ timeoutMs?: number | undefined;
3916
+ pollIntervalMs?: number | undefined;
3917
+ labels?: string[] | undefined;
3918
+ assignees?: string[] | undefined;
3919
+ }>;
3920
+ export type GitHubIssuesBackendConfig = z.infer<typeof GitHubIssuesBackendConfigSchema>;
3921
+ export declare const BackendConfigSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
3922
+ type: z.ZodLiteral<"git-native">;
3923
+ breakpointsDir: z.ZodOptional<z.ZodString>;
3924
+ pollIntervalMs: z.ZodOptional<z.ZodNumber>;
3925
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3926
+ }, "strip", z.ZodTypeAny, {
3927
+ type: "git-native";
3928
+ timeoutMs?: number | undefined;
3929
+ breakpointsDir?: string | undefined;
3930
+ pollIntervalMs?: number | undefined;
3931
+ }, {
3932
+ type: "git-native";
3933
+ timeoutMs?: number | undefined;
3934
+ breakpointsDir?: string | undefined;
3935
+ pollIntervalMs?: number | undefined;
3936
+ }>, z.ZodObject<{
3937
+ type: z.ZodLiteral<"server">;
3938
+ url: z.ZodString;
3939
+ authToken: z.ZodOptional<z.ZodString>;
3940
+ }, "strip", z.ZodTypeAny, {
3941
+ type: "server";
3942
+ url: string;
3943
+ authToken?: string | undefined;
3944
+ }, {
3945
+ type: "server";
3946
+ url: string;
3947
+ authToken?: string | undefined;
3948
+ }>, z.ZodObject<{
3949
+ type: z.ZodLiteral<"github-issues">;
3950
+ owner: z.ZodString;
3951
+ repo: z.ZodString;
3952
+ labels: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3953
+ assignees: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3954
+ pollIntervalMs: z.ZodOptional<z.ZodNumber>;
3955
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
3956
+ }, "strip", z.ZodTypeAny, {
3957
+ type: "github-issues";
3958
+ repo: string;
3959
+ owner: string;
3960
+ timeoutMs?: number | undefined;
3961
+ pollIntervalMs?: number | undefined;
3962
+ labels?: string[] | undefined;
3963
+ assignees?: string[] | undefined;
3964
+ }, {
3965
+ type: "github-issues";
3966
+ repo: string;
3967
+ owner: string;
3968
+ timeoutMs?: number | undefined;
3969
+ pollIntervalMs?: number | undefined;
3970
+ labels?: string[] | undefined;
3971
+ assignees?: string[] | undefined;
3972
+ }>]>;
3973
+ export type BackendConfig = z.infer<typeof BackendConfigSchema>;
3974
+ export declare const RoutingRuleSchema: z.ZodObject<{
3975
+ domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3976
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3977
+ backend: z.ZodString;
3978
+ backendConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3979
+ }, "strip", z.ZodTypeAny, {
3980
+ backend: string;
3981
+ backendConfig: Record<string, unknown>;
3982
+ tags?: string[] | undefined;
3983
+ domains?: string[] | undefined;
3984
+ }, {
3985
+ backend: string;
3986
+ backendConfig: Record<string, unknown>;
3987
+ tags?: string[] | undefined;
3988
+ domains?: string[] | undefined;
3989
+ }>;
3990
+ export type RoutingRule = z.infer<typeof RoutingRuleSchema>;
3991
+ export declare const RoutingConfigSchema: z.ZodObject<{
3992
+ defaultBackend: z.ZodString;
3993
+ routes: z.ZodArray<z.ZodObject<{
3994
+ domains: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3995
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
3996
+ backend: z.ZodString;
3997
+ backendConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
3998
+ }, "strip", z.ZodTypeAny, {
3999
+ backend: string;
4000
+ backendConfig: Record<string, unknown>;
4001
+ tags?: string[] | undefined;
4002
+ domains?: string[] | undefined;
4003
+ }, {
4004
+ backend: string;
4005
+ backendConfig: Record<string, unknown>;
4006
+ tags?: string[] | undefined;
4007
+ domains?: string[] | undefined;
4008
+ }>, "many">;
4009
+ }, "strip", z.ZodTypeAny, {
4010
+ defaultBackend: string;
4011
+ routes: {
4012
+ backend: string;
4013
+ backendConfig: Record<string, unknown>;
4014
+ tags?: string[] | undefined;
4015
+ domains?: string[] | undefined;
4016
+ }[];
4017
+ }, {
4018
+ defaultBackend: string;
4019
+ routes: {
4020
+ backend: string;
4021
+ backendConfig: Record<string, unknown>;
4022
+ tags?: string[] | undefined;
4023
+ domains?: string[] | undefined;
4024
+ }[];
4025
+ }>;
4026
+ export type RoutingConfig = z.infer<typeof RoutingConfigSchema>;
4027
+ export declare const DEFAULT_POLL_INTERVAL_MS = 3000;
4028
+ export declare const DEFAULT_TIMEOUT_MS: number;
4029
+ export declare const BREAKPOINTS_DIR = ".breakpoints";
4030
+ export declare const BREAKPOINTS_KEYS_DIR = ".breakpoints/.keys";
4031
+ export declare const BREAKPOINTS_TRUSTED_KEYS_DIR = ".breakpoints/.keys/trusted";
4032
+ export declare const BREAKPOINTS_PRIVATE_KEYS_DIR = ".breakpoints/.keys/private";
4033
+ export declare function generateBreakpointId(): string;
4034
+ //# sourceMappingURL=types.d.ts.map