@shivaedev/work-board 0.14.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (279) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/README.md +1 -1
  3. package/assets/agent.js +1 -1
  4. package/assets/native.js +25 -25
  5. package/assets/react.css +1 -1
  6. package/assets/react.js +37 -36
  7. package/dist/browser/diagnostics/schema.d.ts +15 -12
  8. package/dist/browser/diagnostics/schema.d.ts.map +1 -1
  9. package/dist/browser/diagnostics/schema.js +12 -2
  10. package/dist/browser/diagnostics/schema.js.map +1 -1
  11. package/dist/browser/views/remaining.d.ts +20 -12
  12. package/dist/browser/views/remaining.d.ts.map +1 -1
  13. package/dist/client/client.d.ts +1 -0
  14. package/dist/client/client.d.ts.map +1 -1
  15. package/dist/client/client.js +1 -1
  16. package/dist/client/client.js.map +1 -1
  17. package/dist/client/document/Mermaid.d.ts.map +1 -1
  18. package/dist/client/document/Mermaid.js +4 -10
  19. package/dist/client/document/Mermaid.js.map +1 -1
  20. package/dist/client/document/View.js +1 -1
  21. package/dist/client/document/View.js.map +1 -1
  22. package/dist/client/formStatus.d.ts +12 -0
  23. package/dist/client/formStatus.d.ts.map +1 -0
  24. package/dist/client/formStatus.js +27 -0
  25. package/dist/client/formStatus.js.map +1 -0
  26. package/dist/client/react/BoardShell.d.ts.map +1 -1
  27. package/dist/client/react/BoardShell.js +36 -37
  28. package/dist/client/react/BoardShell.js.map +1 -1
  29. package/dist/client/react/DocumentContext.d.ts.map +1 -1
  30. package/dist/client/react/DocumentContext.js +12 -7
  31. package/dist/client/react/DocumentContext.js.map +1 -1
  32. package/dist/client/react/FormContext.d.ts +5 -0
  33. package/dist/client/react/FormContext.d.ts.map +1 -0
  34. package/dist/client/react/FormContext.js +10 -0
  35. package/dist/client/react/FormContext.js.map +1 -0
  36. package/dist/client/react/LiveControls.d.ts +4 -3
  37. package/dist/client/react/LiveControls.d.ts.map +1 -1
  38. package/dist/client/react/LiveControls.js +5 -24
  39. package/dist/client/react/LiveControls.js.map +1 -1
  40. package/dist/client/react/MainLocationContext.d.ts +3 -0
  41. package/dist/client/react/MainLocationContext.d.ts.map +1 -0
  42. package/dist/client/react/MainLocationContext.js +7 -0
  43. package/dist/client/react/MainLocationContext.js.map +1 -0
  44. package/dist/client/react/PhoneNavigation.d.ts +3 -1
  45. package/dist/client/react/PhoneNavigation.d.ts.map +1 -1
  46. package/dist/client/react/PhoneNavigation.js +8 -13
  47. package/dist/client/react/PhoneNavigation.js.map +1 -1
  48. package/dist/client/react/ProjectionFrame.d.ts +1 -2
  49. package/dist/client/react/ProjectionFrame.d.ts.map +1 -1
  50. package/dist/client/react/ProjectionFrame.js +10 -4
  51. package/dist/client/react/ProjectionFrame.js.map +1 -1
  52. package/dist/client/react/ReadingLibrary.d.ts.map +1 -1
  53. package/dist/client/react/ReadingLibrary.js +9 -14
  54. package/dist/client/react/ReadingLibrary.js.map +1 -1
  55. package/dist/client/react/ReadingReadyContext.d.ts +6 -0
  56. package/dist/client/react/ReadingReadyContext.d.ts.map +1 -0
  57. package/dist/client/react/ReadingReadyContext.js +7 -0
  58. package/dist/client/react/ReadingReadyContext.js.map +1 -0
  59. package/dist/client/react/SessionContext.d.ts +3 -0
  60. package/dist/client/react/SessionContext.d.ts.map +1 -0
  61. package/dist/client/react/SessionContext.js +3 -0
  62. package/dist/client/react/SessionContext.js.map +1 -0
  63. package/dist/client/react/SystemMain.d.ts.map +1 -1
  64. package/dist/client/react/SystemMain.js +3 -1
  65. package/dist/client/react/SystemMain.js.map +1 -1
  66. package/dist/client/react/SystemPage.d.ts.map +1 -1
  67. package/dist/client/react/SystemPage.js +2 -1
  68. package/dist/client/react/SystemPage.js.map +1 -1
  69. package/dist/client/react/ThemeContext.d.ts +2 -0
  70. package/dist/client/react/ThemeContext.d.ts.map +1 -0
  71. package/dist/client/react/ThemeContext.js +3 -0
  72. package/dist/client/react/ThemeContext.js.map +1 -0
  73. package/dist/client/react/TodayOptions.d.ts.map +1 -1
  74. package/dist/client/react/TodayOptions.js +23 -14
  75. package/dist/client/react/TodayOptions.js.map +1 -1
  76. package/dist/client/react/VisualViewer.d.ts.map +1 -1
  77. package/dist/client/react/VisualViewer.js +6 -5
  78. package/dist/client/react/VisualViewer.js.map +1 -1
  79. package/dist/client/react/boardRouter.d.ts +3 -2
  80. package/dist/client/react/boardRouter.d.ts.map +1 -1
  81. package/dist/client/react/boardRouter.js +2 -1
  82. package/dist/client/react/boardRouter.js.map +1 -1
  83. package/dist/client/react/createResponse.d.ts +32 -4
  84. package/dist/client/react/createResponse.d.ts.map +1 -1
  85. package/dist/client/react/createResponse.js +7 -28
  86. package/dist/client/react/createResponse.js.map +1 -1
  87. package/dist/client/react/diagnosticsValues.d.ts.map +1 -1
  88. package/dist/client/react/diagnosticsValues.js +5 -7
  89. package/dist/client/react/diagnosticsValues.js.map +1 -1
  90. package/dist/client/react/entry.d.ts.map +1 -1
  91. package/dist/client/react/entry.js +2 -34
  92. package/dist/client/react/entry.js.map +1 -1
  93. package/dist/client/react/githubLimited.d.ts +3 -0
  94. package/dist/client/react/githubLimited.d.ts.map +1 -0
  95. package/dist/client/react/githubLimited.js +4 -0
  96. package/dist/client/react/githubLimited.js.map +1 -0
  97. package/dist/client/react/loadProjection.d.ts +135 -135
  98. package/dist/client/react/loadRemaining.d.ts +20 -12
  99. package/dist/client/react/loadRemaining.d.ts.map +1 -1
  100. package/dist/client/react/mainLocation.d.ts +4 -2
  101. package/dist/client/react/mainLocation.d.ts.map +1 -1
  102. package/dist/client/react/mainLocation.js +1 -8
  103. package/dist/client/react/mainLocation.js.map +1 -1
  104. package/dist/client/react/mountBoard.d.ts +3 -0
  105. package/dist/client/react/mountBoard.d.ts.map +1 -0
  106. package/dist/client/react/mountBoard.js +45 -0
  107. package/dist/client/react/mountBoard.js.map +1 -0
  108. package/dist/client/react/navigationLocation.d.ts +3 -1
  109. package/dist/client/react/navigationLocation.d.ts.map +1 -1
  110. package/dist/client/react/navigationLocation.js +11 -1
  111. package/dist/client/react/navigationLocation.js.map +1 -1
  112. package/dist/client/react/retryPage.d.ts +2 -1
  113. package/dist/client/react/retryPage.d.ts.map +1 -1
  114. package/dist/client/react/retryPage.js +3 -4
  115. package/dist/client/react/retryPage.js.map +1 -1
  116. package/dist/client/react/scheduleReading.d.ts.map +1 -1
  117. package/dist/client/react/scheduleReading.js +1 -10
  118. package/dist/client/react/scheduleReading.js.map +1 -1
  119. package/dist/client/react/useAppearance.d.ts +2 -1
  120. package/dist/client/react/useAppearance.d.ts.map +1 -1
  121. package/dist/client/react/useAppearance.js +1 -2
  122. package/dist/client/react/useAppearance.js.map +1 -1
  123. package/dist/client/react/useBoardNavigation.d.ts +1 -1
  124. package/dist/client/react/useBoardNavigation.d.ts.map +1 -1
  125. package/dist/client/react/useBoardNavigation.js +28 -22
  126. package/dist/client/react/useBoardNavigation.js.map +1 -1
  127. package/dist/client/react/useDiagnosticsPolling.d.ts +4 -1
  128. package/dist/client/react/useDiagnosticsPolling.d.ts.map +1 -1
  129. package/dist/client/react/useDiagnosticsPolling.js +9 -7
  130. package/dist/client/react/useDiagnosticsPolling.js.map +1 -1
  131. package/dist/client/react/useDocumentPage.d.ts +1 -1
  132. package/dist/client/react/useDocumentPage.d.ts.map +1 -1
  133. package/dist/client/react/useDocumentPage.js +9 -6
  134. package/dist/client/react/useDocumentPage.js.map +1 -1
  135. package/dist/client/react/useHandoffForm.d.ts +56 -30
  136. package/dist/client/react/useHandoffForm.d.ts.map +1 -1
  137. package/dist/client/react/useHandoffForm.js +19 -30
  138. package/dist/client/react/useHandoffForm.js.map +1 -1
  139. package/dist/client/react/useResponseForm.d.ts +72 -43
  140. package/dist/client/react/useResponseForm.d.ts.map +1 -1
  141. package/dist/client/react/useResponseForm.js +20 -17
  142. package/dist/client/react/useResponseForm.js.map +1 -1
  143. package/dist/client/react/useSidebar.d.ts.map +1 -1
  144. package/dist/client/react/useSidebar.js +5 -3
  145. package/dist/client/react/useSidebar.js.map +1 -1
  146. package/dist/client/react/visualSources.d.ts.map +1 -1
  147. package/dist/client/react/visualSources.js +10 -8
  148. package/dist/client/react/visualSources.js.map +1 -1
  149. package/dist/client/saveFailure.d.ts +8 -0
  150. package/dist/client/saveFailure.d.ts.map +1 -0
  151. package/dist/client/saveFailure.js +8 -0
  152. package/dist/client/saveFailure.js.map +1 -0
  153. package/dist/diagnostics/daemonContract.d.ts +65 -38
  154. package/dist/diagnostics/daemonContract.d.ts.map +1 -1
  155. package/dist/diagnostics/daemonContract.js +2 -1
  156. package/dist/diagnostics/daemonContract.js.map +1 -1
  157. package/dist/diagnostics/health.d.ts +10 -0
  158. package/dist/diagnostics/health.d.ts.map +1 -1
  159. package/dist/diagnostics/health.js +2 -0
  160. package/dist/diagnostics/health.js.map +1 -1
  161. package/dist/diagnostics/source.d.ts +55 -36
  162. package/dist/diagnostics/source.d.ts.map +1 -1
  163. package/dist/diagnostics/source.js +1 -2
  164. package/dist/diagnostics/source.js.map +1 -1
  165. package/dist/render/{failed.d.ts → Failed.d.ts} +1 -1
  166. package/dist/render/Failed.d.ts.map +1 -0
  167. package/dist/render/{failed.js → Failed.js} +1 -1
  168. package/dist/render/Failed.js.map +1 -0
  169. package/dist/render/code.d.ts +2 -2
  170. package/dist/render/code.d.ts.map +1 -1
  171. package/dist/render/code.js +15 -13
  172. package/dist/render/code.js.map +1 -1
  173. package/dist/render/footnoteIds.d.ts +3 -0
  174. package/dist/render/footnoteIds.d.ts.map +1 -0
  175. package/dist/render/{footnotes.js → footnoteIds.js} +11 -9
  176. package/dist/render/footnoteIds.js.map +1 -0
  177. package/dist/rpc/contract.d.ts +2346 -2322
  178. package/dist/rpc/contract.d.ts.map +1 -1
  179. package/dist/rpc/handoffContract.d.ts +33 -33
  180. package/dist/rpc/responseContract.d.ts +56 -56
  181. package/dist/server/board.d.ts +1 -1
  182. package/dist/server/diagnostics/daemon.d.ts +41 -25
  183. package/dist/server/diagnostics/daemon.d.ts.map +1 -1
  184. package/dist/server/diagnostics/fleetHealth.d.ts +10 -0
  185. package/dist/server/diagnostics/fleetHealth.d.ts.map +1 -1
  186. package/dist/server/diagnostics/githubLimits.d.ts +12 -13
  187. package/dist/server/diagnostics/githubLimits.d.ts.map +1 -1
  188. package/dist/server/diagnostics/githubLimits.js +6 -6
  189. package/dist/server/diagnostics/githubLimits.js.map +1 -1
  190. package/dist/server/integration/diagnostics.d.ts +74 -38
  191. package/dist/server/integration/diagnostics.d.ts.map +1 -1
  192. package/dist/server/mcp/client.d.ts +1155 -1147
  193. package/dist/server/mcp/client.d.ts.map +1 -1
  194. package/dist/server/mcp/queries.d.ts +60 -36
  195. package/dist/server/mcp/queries.d.ts.map +1 -1
  196. package/dist/server/metadata/fields.js +1 -1
  197. package/dist/server/metadata/fields.js.map +1 -1
  198. package/dist/server/packageInfo.d.ts +1 -1
  199. package/dist/server/packageInfo.js +1 -1
  200. package/dist/server/render/Highlighter.d.ts +1 -1
  201. package/dist/server/render/Highlighter.js +1 -1
  202. package/dist/server/render/markdown.d.ts +1 -1
  203. package/dist/server/render/markdown.js +2 -2
  204. package/dist/server/render/markdown.js.map +1 -1
  205. package/dist/server/serve.d.ts +1 -1
  206. package/dist/server/views/remainingQueries.d.ts +20 -12
  207. package/dist/server/views/remainingQueries.d.ts.map +1 -1
  208. package/package.json +9 -39
  209. package/src/browser/diagnostics/schema.ts +12 -2
  210. package/src/client/client.ts +2 -1
  211. package/src/client/document/Mermaid.ts +4 -10
  212. package/src/client/document/View.ts +1 -1
  213. package/src/client/formStatus.ts +35 -0
  214. package/src/client/react/BoardShell.tsx +49 -43
  215. package/src/client/react/DocumentContext.tsx +12 -7
  216. package/src/client/react/FormContext.ts +13 -0
  217. package/src/client/react/LiveControls.tsx +5 -38
  218. package/src/client/react/MainLocationContext.ts +8 -0
  219. package/src/client/react/PhoneNavigation.tsx +20 -15
  220. package/src/client/react/ProjectionFrame.tsx +13 -5
  221. package/src/client/react/ReadingLibrary.tsx +9 -14
  222. package/src/client/react/ReadingReadyContext.ts +11 -0
  223. package/src/client/react/SessionContext.ts +4 -0
  224. package/src/client/react/SystemMain.tsx +3 -1
  225. package/src/client/react/SystemPage.tsx +2 -1
  226. package/src/client/react/ThemeContext.ts +3 -0
  227. package/src/client/react/TodayOptions.tsx +40 -33
  228. package/src/client/react/VisualViewer.tsx +6 -6
  229. package/src/client/react/boardRouter.ts +3 -2
  230. package/src/client/react/createResponse.ts +10 -35
  231. package/src/client/react/diagnosticsValues.tsx +20 -12
  232. package/src/client/react/entry.tsx +2 -37
  233. package/src/client/react/githubLimited.ts +5 -0
  234. package/src/client/react/mainLocation.ts +5 -8
  235. package/src/client/react/mountBoard.tsx +49 -0
  236. package/src/client/react/navigationLocation.ts +14 -2
  237. package/src/client/react/retryPage.ts +4 -4
  238. package/src/client/react/scheduleReading.ts +1 -10
  239. package/src/client/react/useAppearance.ts +2 -3
  240. package/src/client/react/useBoardNavigation.ts +30 -23
  241. package/src/client/react/useDiagnosticsPolling.ts +14 -7
  242. package/src/client/react/useDocumentPage.ts +12 -6
  243. package/src/client/react/useHandoffForm.ts +25 -33
  244. package/src/client/react/useResponseForm.ts +20 -18
  245. package/src/client/react/useSidebar.ts +5 -3
  246. package/src/client/react/visualSources.ts +10 -8
  247. package/src/client/saveFailure.ts +14 -0
  248. package/src/diagnostics/daemonContract.ts +2 -1
  249. package/src/diagnostics/health.ts +2 -0
  250. package/src/diagnostics/source.ts +1 -2
  251. package/src/render/code.ts +3 -4
  252. package/src/render/{footnotes.ts → footnoteIds.ts} +12 -10
  253. package/src/server/board.ts +1 -1
  254. package/src/server/diagnostics/githubLimits.ts +9 -11
  255. package/src/server/metadata/fields.ts +1 -1
  256. package/src/server/packageInfo.ts +1 -1
  257. package/src/server/render/Highlighter.ts +1 -1
  258. package/src/server/render/markdown.ts +2 -2
  259. package/dist/client/handoffs/failureStatus.d.ts +0 -2
  260. package/dist/client/handoffs/failureStatus.d.ts.map +0 -1
  261. package/dist/client/handoffs/failureStatus.js +0 -7
  262. package/dist/client/handoffs/failureStatus.js.map +0 -1
  263. package/dist/client/responses/failure.d.ts +0 -5
  264. package/dist/client/responses/failure.d.ts.map +0 -1
  265. package/dist/client/responses/failure.js +0 -13
  266. package/dist/client/responses/failure.js.map +0 -1
  267. package/dist/render/failed.d.ts.map +0 -1
  268. package/dist/render/failed.js.map +0 -1
  269. package/dist/render/footnotes.d.ts +0 -3
  270. package/dist/render/footnotes.d.ts.map +0 -1
  271. package/dist/render/footnotes.js.map +0 -1
  272. package/dist/server/diagnostics/readCommand.d.ts +0 -4
  273. package/dist/server/diagnostics/readCommand.d.ts.map +0 -1
  274. package/dist/server/diagnostics/readCommand.js +0 -20
  275. package/dist/server/diagnostics/readCommand.js.map +0 -1
  276. package/src/client/handoffs/failureStatus.ts +0 -6
  277. package/src/client/responses/failure.ts +0 -13
  278. package/src/server/diagnostics/readCommand.ts +0 -24
  279. /package/src/render/{failed.ts → Failed.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"contract.d.ts","sourceRoot":"","sources":["../../src/rpc/contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAIhC,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AACjG,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AA8FvE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;GAAiH,CAAC;AACxI,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kDAA8D,CAAC"}
@@ -96,37 +96,14 @@ export declare const handoffContract: import("@shivaedev/effect-contract/contrac
96
96
  PublicationUncertain: typeof import("#rpc/rejections.ts").PublicationUncertain;
97
97
  ServiceUnavailable: typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable;
98
98
  Unanswered: typeof import("#rpc/rejections.ts").Unanswered;
99
- }>], import("effect/rpc/Rpc").Rpc<"work-board.prepareHandoff", Schema.Struct<{
100
- readonly constraints: Schema.String;
101
- readonly goal: Schema.String;
102
- readonly id: Schema.String;
103
- readonly item: Schema.String;
104
- readonly nextAction: Schema.String;
105
- readonly recipient: Schema.String;
106
- readonly revision: Schema.String;
107
- readonly source: Schema.String;
99
+ }>], import("effect/rpc/Rpc").Rpc<"work-board.handoffSource", Schema.Struct<{
100
+ item: Schema.String;
108
101
  }>, Schema.Struct<{
109
102
  readonly context: Schema.String;
110
- readonly file: Schema.String;
111
- readonly handoff: Schema.encodeKeys<Schema.Struct<{
112
- readonly by: Schema.optional<Schema.String>;
113
- readonly constraints: Schema.String;
114
- readonly goal: Schema.String;
115
- readonly item: Schema.String;
116
- readonly nextAction: Schema.String;
117
- readonly note: Schema.optional<Schema.String>;
118
- readonly preparedAt: Schema.Number;
119
- readonly recipient: Schema.String;
120
- readonly reviewedRevision: Schema.String;
121
- readonly source: Schema.String;
122
- readonly state: Schema.Literals<readonly ["requested", "acknowledged", "rejected", "unavailable"]>;
123
- }>, {
124
- readonly nextAction: "next_action";
125
- readonly preparedAt: "prepared_at";
126
- readonly reviewedRevision: "reviewed_revision";
127
- }>;
128
103
  readonly id: Schema.String;
129
- readonly prompt: Schema.String;
104
+ readonly item: Schema.String;
105
+ readonly reviewedRevision: Schema.String;
106
+ readonly source: Schema.String;
130
107
  }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.handoffs", Schema.Struct<{
131
108
  item: Schema.String;
132
109
  }>, Schema.Struct<{
@@ -154,13 +131,36 @@ export declare const handoffContract: import("@shivaedev/effect-contract/contrac
154
131
  readonly prompt: Schema.String;
155
132
  }>>;
156
133
  readonly unknown: Schema.$Array<Schema.String>;
157
- }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.handoffSource", Schema.Struct<{
158
- item: Schema.String;
159
- }>, Schema.Struct<{
160
- readonly context: Schema.String;
134
+ }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.prepareHandoff", Schema.Struct<{
135
+ readonly constraints: Schema.String;
136
+ readonly goal: Schema.String;
161
137
  readonly id: Schema.String;
162
138
  readonly item: Schema.String;
163
- readonly reviewedRevision: Schema.String;
139
+ readonly nextAction: Schema.String;
140
+ readonly recipient: Schema.String;
141
+ readonly revision: Schema.String;
164
142
  readonly source: Schema.String;
143
+ }>, Schema.Struct<{
144
+ readonly context: Schema.String;
145
+ readonly file: Schema.String;
146
+ readonly handoff: Schema.encodeKeys<Schema.Struct<{
147
+ readonly by: Schema.optional<Schema.String>;
148
+ readonly constraints: Schema.String;
149
+ readonly goal: Schema.String;
150
+ readonly item: Schema.String;
151
+ readonly nextAction: Schema.String;
152
+ readonly note: Schema.optional<Schema.String>;
153
+ readonly preparedAt: Schema.Number;
154
+ readonly recipient: Schema.String;
155
+ readonly reviewedRevision: Schema.String;
156
+ readonly source: Schema.String;
157
+ readonly state: Schema.Literals<readonly ["requested", "acknowledged", "rejected", "unavailable"]>;
158
+ }>, {
159
+ readonly nextAction: "next_action";
160
+ readonly preparedAt: "prepared_at";
161
+ readonly reviewedRevision: "reviewed_revision";
162
+ }>;
163
+ readonly id: Schema.String;
164
+ readonly prompt: Schema.String;
165
165
  }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never>, readonly []>;
166
166
  //# sourceMappingURL=handoffContract.d.ts.map
@@ -173,53 +173,7 @@ export declare const responseContract: import("@shivaedev/effect-contract/contra
173
173
  PublicationUncertain: typeof import("#rpc/rejections.ts").PublicationUncertain;
174
174
  ServiceUnavailable: typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable;
175
175
  Unanswered: typeof import("#rpc/rejections.ts").Unanswered;
176
- }>], import("effect/rpc/Rpc").Rpc<"work-board.awaitResponse", Schema.Struct<{
177
- after: Schema.optional<Schema.String>;
178
- question: Schema.String;
179
- }>, Schema.Struct<{
180
- readonly expired: Schema.Boolean;
181
- readonly question: Schema.Struct<{
182
- readonly context: Schema.String;
183
- readonly id: Schema.String;
184
- readonly question: Schema.Struct<{
185
- readonly deadline: Schema.Number;
186
- readonly item: Schema.String;
187
- readonly reason: Schema.String;
188
- readonly registeredAt: Schema.Number;
189
- readonly request: Schema.String;
190
- readonly reviewedRevision: Schema.String;
191
- readonly source: Schema.String;
192
- }>;
193
- }>;
194
- readonly response: Schema.optional<Schema.Struct<{
195
- readonly body: Schema.String;
196
- readonly id: Schema.String;
197
- readonly response: Schema.Struct<{
198
- readonly answers: Schema.optional<Schema.$Array<Schema.Struct<{
199
- readonly prompt: Schema.String;
200
- readonly selected: Schema.$Array<Schema.String>;
201
- readonly text: Schema.String;
202
- }>>>;
203
- readonly author: Schema.String;
204
- readonly question: Schema.String;
205
- readonly recordedAt: Schema.Number;
206
- readonly reviewedRevision: Schema.String;
207
- readonly supersedes: Schema.optional<Schema.String>;
208
- readonly type: Schema.Literals<readonly ["answer", "clarify", "not_now"]>;
209
- }>;
210
- }>>;
211
- }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.question", Schema.Struct<{
212
- item: Schema.String;
213
- request: Schema.String;
214
- }>, Schema.Struct<{
215
- readonly context: Schema.String;
216
- readonly id: Schema.String;
217
- readonly item: Schema.String;
218
- readonly reason: Schema.String;
219
- readonly request: Schema.String;
220
- readonly reviewedRevision: Schema.String;
221
- readonly source: Schema.String;
222
- }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.recordResponse", Schema.Struct<{
176
+ }>], import("effect/rpc/Rpc").Rpc<"work-board.recordResponse", Schema.Struct<{
223
177
  readonly answers: Schema.optional<Schema.$Array<Schema.Struct<{
224
178
  readonly prompt: Schema.String;
225
179
  readonly selected: Schema.$Array<Schema.String>;
@@ -247,22 +201,52 @@ export declare const responseContract: import("@shivaedev/effect-contract/contra
247
201
  readonly supersedes: Schema.optional<Schema.String>;
248
202
  readonly type: Schema.Literals<readonly ["answer", "clarify", "not_now"]>;
249
203
  }>;
250
- }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.registerQuestion", Schema.Struct<{
204
+ }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.question", Schema.Struct<{
251
205
  item: Schema.String;
252
206
  request: Schema.String;
253
- revision: Schema.String;
254
207
  }>, Schema.Struct<{
255
208
  readonly context: Schema.String;
256
209
  readonly id: Schema.String;
210
+ readonly item: Schema.String;
211
+ readonly reason: Schema.String;
212
+ readonly request: Schema.String;
213
+ readonly reviewedRevision: Schema.String;
214
+ readonly source: Schema.String;
215
+ }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.awaitResponse", Schema.Struct<{
216
+ after: Schema.optional<Schema.String>;
217
+ question: Schema.String;
218
+ }>, Schema.Struct<{
219
+ readonly expired: Schema.Boolean;
257
220
  readonly question: Schema.Struct<{
258
- readonly deadline: Schema.Number;
259
- readonly item: Schema.String;
260
- readonly reason: Schema.String;
261
- readonly registeredAt: Schema.Number;
262
- readonly request: Schema.String;
263
- readonly reviewedRevision: Schema.String;
264
- readonly source: Schema.String;
221
+ readonly context: Schema.String;
222
+ readonly id: Schema.String;
223
+ readonly question: Schema.Struct<{
224
+ readonly deadline: Schema.Number;
225
+ readonly item: Schema.String;
226
+ readonly reason: Schema.String;
227
+ readonly registeredAt: Schema.Number;
228
+ readonly request: Schema.String;
229
+ readonly reviewedRevision: Schema.String;
230
+ readonly source: Schema.String;
231
+ }>;
265
232
  }>;
233
+ readonly response: Schema.optional<Schema.Struct<{
234
+ readonly body: Schema.String;
235
+ readonly id: Schema.String;
236
+ readonly response: Schema.Struct<{
237
+ readonly answers: Schema.optional<Schema.$Array<Schema.Struct<{
238
+ readonly prompt: Schema.String;
239
+ readonly selected: Schema.$Array<Schema.String>;
240
+ readonly text: Schema.String;
241
+ }>>>;
242
+ readonly author: Schema.String;
243
+ readonly question: Schema.String;
244
+ readonly recordedAt: Schema.Number;
245
+ readonly reviewedRevision: Schema.String;
246
+ readonly supersedes: Schema.optional<Schema.String>;
247
+ readonly type: Schema.Literals<readonly ["answer", "clarify", "not_now"]>;
248
+ }>;
249
+ }>>;
266
250
  }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.responses", Schema.Struct<{
267
251
  question: Schema.String;
268
252
  }>, Schema.Struct<{
@@ -296,5 +280,21 @@ export declare const responseContract: import("@shivaedev/effect-contract/contra
296
280
  readonly type: Schema.Literals<readonly ["answer", "clarify", "not_now"]>;
297
281
  }>;
298
282
  }>>;
283
+ }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never> | import("effect/rpc/Rpc").Rpc<"work-board.registerQuestion", Schema.Struct<{
284
+ item: Schema.String;
285
+ request: Schema.String;
286
+ revision: Schema.String;
287
+ }>, Schema.Struct<{
288
+ readonly context: Schema.String;
289
+ readonly id: Schema.String;
290
+ readonly question: Schema.Struct<{
291
+ readonly deadline: Schema.Number;
292
+ readonly item: Schema.String;
293
+ readonly reason: Schema.String;
294
+ readonly registeredAt: Schema.Number;
295
+ readonly request: Schema.String;
296
+ readonly reviewedRevision: Schema.String;
297
+ readonly source: Schema.String;
298
+ }>;
299
299
  }>, Schema.Union<readonly (typeof import("@shivaedev/platform/errors/taxonomy.ts").NotFound | typeof import("@shivaedev/platform/errors/taxonomy.ts").Forbidden | typeof import("@shivaedev/platform/errors/taxonomy.ts").BadRequest | typeof import("@shivaedev/platform/errors/taxonomy.ts").Conflict | typeof import("@shivaedev/platform/errors/taxonomy.ts").PreconditionFailed | typeof import("@shivaedev/platform/errors/taxonomy.ts").InternalServerError | typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable | typeof import("#rpc/rejections.ts").PublicationUncertain | typeof import("#rpc/rejections.ts").Unanswered)[]>, typeof RequestTracing, never>, readonly []>;
300
300
  //# sourceMappingURL=responseContract.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { type FileSystem, Layer, type Path, type PlatformError } from "effect";
2
2
  import { HttpRouter } from "effect/http";
3
3
  import type { InternalServerError } from "@shivaedev/platform/errors/taxonomy.ts";
4
- import type { RenderFailed } from "#render/failed.ts";
4
+ import type { RenderFailed } from "#render/Failed.ts";
5
5
  import type { HomeMissing } from "#server/files/home.ts";
6
6
  import type { MermaidMissing } from "#server/http/assets.ts";
7
7
  export interface BoardOptions {
@@ -27,6 +27,16 @@ declare function makeDaemonClient(): Effect.Effect<RpcClient.RpcClient.Flat<impo
27
27
  readonly state: import("effect/Schema").Literal<"ready">;
28
28
  readonly value: import("effect/Schema").Struct<{
29
29
  readonly concurrency: import("effect/Schema").Int;
30
+ readonly github: import("effect/Schema").optional<import("effect/Schema").$Array<import("effect/Schema").Struct<{
31
+ readonly limit: import("effect/Schema").Int;
32
+ readonly limitedBy: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["rate-limit", "reserve"]>>;
33
+ readonly limitedUntil: import("effect/Schema").NullOr<import("effect/Schema").Number>;
34
+ readonly observedAt: import("effect/Schema").Number;
35
+ readonly remaining: import("effect/Schema").Int;
36
+ readonly reset: import("effect/Schema").Int;
37
+ readonly resource: import("effect/Schema").String;
38
+ readonly used: import("effect/Schema").Int;
39
+ }>>>;
30
40
  readonly lastCapacityRejection: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
31
41
  readonly at: import("effect/Schema").Number;
32
42
  readonly cause: import("effect/Schema").String;
@@ -51,18 +61,16 @@ declare function makeDaemonClient(): Effect.Effect<RpcClient.RpcClient.Flat<impo
51
61
  readonly github: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
52
62
  readonly observedAt: import("effect/Schema").Number;
53
63
  readonly state: import("effect/Schema").Literal<"ready">;
54
- readonly value: import("effect/Schema").Struct<{
55
- readonly core: import("effect/Schema").Struct<{
56
- readonly limit: import("effect/Schema").Int;
57
- readonly remaining: import("effect/Schema").Int;
58
- readonly reset: import("effect/Schema").Int;
59
- }>;
60
- readonly graphql: import("effect/Schema").Struct<{
61
- readonly limit: import("effect/Schema").Int;
62
- readonly remaining: import("effect/Schema").Int;
63
- readonly reset: import("effect/Schema").Int;
64
- }>;
65
- }>;
64
+ readonly value: import("effect/Schema").$Array<import("effect/Schema").Struct<{
65
+ readonly limit: import("effect/Schema").Int;
66
+ readonly limitedBy: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["rate-limit", "reserve"]>>;
67
+ readonly limitedUntil: import("effect/Schema").NullOr<import("effect/Schema").Number>;
68
+ readonly observedAt: import("effect/Schema").Number;
69
+ readonly remaining: import("effect/Schema").Int;
70
+ readonly reset: import("effect/Schema").Int;
71
+ readonly resource: import("effect/Schema").String;
72
+ readonly used: import("effect/Schema").Int;
73
+ }>>;
66
74
  }>, import("effect/Schema").Struct<{
67
75
  readonly cause: import("effect/Schema").String;
68
76
  readonly observedAt: import("effect/Schema").Number;
@@ -86,7 +94,7 @@ declare function makeDaemonClient(): Effect.Effect<RpcClient.RpcClient.Flat<impo
86
94
  readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Number>;
87
95
  readonly workId: import("effect/Schema").String;
88
96
  }>>;
89
- }>, import("effect/Schema").Never, never, never>, RpcClientError>, never, RpcClient.Protocol | import("effect/Scope").Scope>;
97
+ }>, import("effect/Schema").Union<readonly typeof import("@shivaedev/platform/errors/taxonomy.ts").ServiceUnavailable[]>, never, never>, RpcClientError>, never, RpcClient.Protocol | import("effect/Scope").Scope>;
90
98
  type DaemonClient = Effect.Success<ReturnType<typeof makeDaemonClient>>;
91
99
  export declare function daemonUnavailableReason(error: unknown, port: number): string;
92
100
  export declare function readDaemon<A, E>(port: number, read: (client: DaemonClient) => Effect.Effect<A, E>): Effect.Effect<A, E | import("effect/Cause").TimeoutError, never>;
@@ -116,6 +124,16 @@ export declare function daemonDiagnostics(port?: number | null): Effect.Effect<{
116
124
  readonly state: "ready";
117
125
  readonly value: {
118
126
  readonly concurrency: number;
127
+ readonly github?: readonly {
128
+ readonly limit: number;
129
+ readonly limitedBy: "rate-limit" | "reserve" | null;
130
+ readonly limitedUntil: number | null;
131
+ readonly observedAt: number;
132
+ readonly remaining: number;
133
+ readonly reset: number;
134
+ readonly resource: string;
135
+ readonly used: number;
136
+ }[] | undefined;
119
137
  readonly lastCapacityRejection: {
120
138
  readonly at: number;
121
139
  readonly cause: string;
@@ -140,18 +158,16 @@ export declare function daemonDiagnostics(port?: number | null): Effect.Effect<{
140
158
  readonly github: {
141
159
  readonly observedAt: number;
142
160
  readonly state: "ready";
143
- readonly value: {
144
- readonly core: {
145
- readonly limit: number;
146
- readonly remaining: number;
147
- readonly reset: number;
148
- };
149
- readonly graphql: {
150
- readonly limit: number;
151
- readonly remaining: number;
152
- readonly reset: number;
153
- };
154
- };
161
+ readonly value: readonly {
162
+ readonly limit: number;
163
+ readonly limitedBy: "rate-limit" | "reserve" | null;
164
+ readonly limitedUntil: number | null;
165
+ readonly observedAt: number;
166
+ readonly remaining: number;
167
+ readonly reset: number;
168
+ readonly resource: string;
169
+ readonly used: number;
170
+ }[];
155
171
  } | {
156
172
  readonly cause: string;
157
173
  readonly observedAt: number;
@@ -1 +1 @@
1
- {"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../../src/server/diagnostics/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAS,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAoB,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,iBAAS,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6HAExB;AACD,KAAK,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAExE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,UAKnE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,oEAcjG;AAED,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,MAAM,GAAG,IAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAcuD,OAAO;;;;;;;;;;;;iBAKhI"}
1
+ {"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["../../../src/server/diagnostics/daemon.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAS,MAAM,QAAQ,CAAC;AAE9C,OAAO,EAAE,SAAS,EAAoB,MAAM,YAAY,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3D,iBAAS,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oNAExB;AACD,KAAK,YAAY,GAAG,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC;AAExE,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,UAKnE;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,oEAcjG;AAED,wBAAgB,iBAAiB,CAAC,IAAI,GAAE,MAAM,GAAG,IAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAcuD,OAAO;;;;;;;;;;;;iBAKhI"}
@@ -2,6 +2,16 @@ import { Effect } from "effect";
2
2
  import { SourceFailure } from "#diagnostics/source.ts";
3
3
  export declare function fleetHealth(root: string): Effect.Effect<{
4
4
  readonly concurrency: number;
5
+ readonly github?: readonly {
6
+ readonly limit: number;
7
+ readonly limitedBy: "rate-limit" | "reserve" | null;
8
+ readonly limitedUntil: number | null;
9
+ readonly observedAt: number;
10
+ readonly remaining: number;
11
+ readonly reset: number;
12
+ readonly resource: string;
13
+ readonly used: number;
14
+ }[] | undefined;
5
15
  readonly lastCapacityRejection: {
6
16
  readonly at: number;
7
17
  readonly cause: string;
@@ -1 +1 @@
1
- {"version":3,"file":"fleetHealth.d.ts","sourceRoot":"","sources":["../../../src/server/diagnostics/fleetHealth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAkCvD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;yBA8BvC"}
1
+ {"version":3,"file":"fleetHealth.d.ts","sourceRoot":"","sources":["../../../src/server/diagnostics/fleetHealth.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AAExC,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAkCvD,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;yBA8BvC"}
@@ -1,15 +1,14 @@
1
1
  import { Effect } from "effect";
2
- import { SourceFailure } from "#diagnostics/source.ts";
3
- export declare function githubLimits(read?: Effect.Effect<string, SourceFailure, never>): Effect.Effect<{
4
- readonly core: {
5
- readonly limit: number;
6
- readonly remaining: number;
7
- readonly reset: number;
8
- };
9
- readonly graphql: {
10
- readonly limit: number;
11
- readonly remaining: number;
12
- readonly reset: number;
13
- };
14
- }, SourceFailure, never>;
2
+ import type { FleetHealth } from "#diagnostics/health.ts";
3
+ import { type Source, SourceFailure } from "#diagnostics/source.ts";
4
+ export declare function githubLimits(fleet: Source<FleetHealth>): Effect.Effect<readonly {
5
+ readonly limit: number;
6
+ readonly limitedBy: "rate-limit" | "reserve" | null;
7
+ readonly limitedUntil: number | null;
8
+ readonly observedAt: number;
9
+ readonly remaining: number;
10
+ readonly reset: number;
11
+ readonly resource: string;
12
+ readonly used: number;
13
+ }[], SourceFailure, never>;
15
14
  //# sourceMappingURL=githubLimits.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"githubLimits.d.ts","sourceRoot":"","sources":["../../../src/server/diagnostics/githubLimits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAgB,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAKrE,wBAAgB,YAAY,CAAC,IAAI,8CAA2C;;;;;;;;;;;yBAQ3E"}
1
+ {"version":3,"file":"githubLimits.d.ts","sourceRoot":"","sources":["../../../src/server/diagnostics/githubLimits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAE,KAAK,MAAM,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAEpE,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,WAAW,CAAC;;;;;;;;;2BAQtD"}
@@ -1,8 +1,8 @@
1
- import { Effect, Schema } from "effect";
2
- import { GithubLimits, SourceFailure } from "#diagnostics/source.ts";
3
- import { readCommand } from "./readCommand.js";
4
- const Response = Schema.Struct({ resources: GithubLimits });
5
- export function githubLimits(read = readCommand("gh", ["api", "rate_limit"])) {
6
- return read.pipe(Effect.flatMap(Schema.decodeUnknownEffect(Schema.fromJsonString(Response))), Effect.map(({ resources }) => resources), Effect.mapError((error) => error instanceof SourceFailure ? error : new SourceFailure({ kind: "error", message: "GitHub returned invalid rate limits" })));
1
+ import { Effect } from "effect";
2
+ import { SourceFailure } from "#diagnostics/source.ts";
3
+ export function githubLimits(fleet) {
4
+ return fleet.pipe(Effect.flatMap(({ github }) => github === undefined || github.length === 0
5
+ ? Effect.fail(new SourceFailure({ kind: "not-configured", message: "Fleet has not recorded a GitHub response yet" }))
6
+ : Effect.succeed(github)));
7
7
  }
8
8
  //# sourceMappingURL=githubLimits.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"githubLimits.js","sourceRoot":"","sources":["../../../src/server/diagnostics/githubLimits.ts"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