@open-mercato/cezar 0.9.2-pr710.1256 → 0.9.2-pr710.1265

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 (84) hide show
  1. package/dist/contract/github.d.ts +88 -0
  2. package/dist/contract/index.js +514 -473
  3. package/dist/contract/runs.d.ts +66 -0
  4. package/dist/server/forge/github.d.ts +169 -0
  5. package/dist/server/forge/github.js +511 -0
  6. package/dist/server/forge/github.js.map +1 -1
  7. package/dist/server/github.d.ts +2 -2
  8. package/dist/server/github.js +1 -1
  9. package/dist/server/github.js.map +1 -1
  10. package/dist/server/server.d.ts +112 -0
  11. package/dist/server/server.js +85 -2
  12. package/dist/server/server.js.map +1 -1
  13. package/package.json +3 -3
  14. package/web/dist/assets/{alert-dialog-BVs3QSmP.js → alert-dialog-CSnV0myT.js} +1 -1
  15. package/web/dist/assets/arrow-down-Dc07TAOB.js +1 -0
  16. package/web/dist/assets/arrow-left-BmkecQkB.js +1 -0
  17. package/web/dist/assets/centered-state-D7JY-MFq.js +43 -0
  18. package/web/dist/assets/chevron-right-D-WhVahb.js +1 -0
  19. package/web/dist/assets/{collapsible-BoADzTok.js → collapsible-B7lWC-2K.js} +1 -1
  20. package/web/dist/assets/{commit-list-BCcCkRbU.js → commit-list-Dk9YYGwB.js} +1 -1
  21. package/web/dist/assets/{compare-variants-B7gTgGqR.js → compare-variants-B2-NUT8B.js} +1 -1
  22. package/web/dist/assets/{diff-ecfV3-op.js → diff-BK-Dx0fn.js} +2 -2
  23. package/web/dist/assets/{diff-stat-C2KGLVnZ.js → diff-stat-C8OjSBXG.js} +1 -1
  24. package/web/dist/assets/{diff-view-CQtonQ4L.js → diff-view-CzpETlfI.js} +1 -1
  25. package/web/dist/assets/dropdown-menu-eqL0VI31.js +1 -0
  26. package/web/dist/assets/editable-title-Du60kvu7.js +1 -0
  27. package/web/dist/assets/{ellipsis-vertical-ClTFrwit.js → ellipsis-vertical-i0_klB_i.js} +1 -1
  28. package/web/dist/assets/{file-BU0mWida.js → file-Cz6b-6fN.js} +1 -1
  29. package/web/dist/assets/{folder-rsgCF0aw.js → folder-n1akiR_5.js} +1 -1
  30. package/web/dist/assets/git-toolbar-0u1WX5uS.js +1 -0
  31. package/web/dist/assets/github-BdlpheQd.js +1 -0
  32. package/web/dist/assets/{image-preview-iEzCyEmz.js → image-preview-GS9DXW91.js} +1 -1
  33. package/web/dist/assets/index-Bx-grqa9.css +2 -0
  34. package/web/dist/assets/index-Demoq1mn.js +7 -0
  35. package/web/dist/assets/{markdown-CNAa22LB.js → markdown-BVOUDlnj.js} +1 -1
  36. package/web/dist/assets/new-task-form-DwoeqxR9.js +1 -0
  37. package/web/dist/assets/{pill-BO5s2x3N.js → pill-DUy_SPft.js} +1 -1
  38. package/web/dist/assets/{project-router-Dm4OhAPE.js → project-router-BqvBmShi.js} +1 -1
  39. package/web/dist/assets/{prompt-templates-CP__OCDQ.js → prompt-templates-Dptu8SEX.js} +1 -1
  40. package/web/dist/assets/{refresh-cw-DyiysCoP.js → refresh-cw-BDkFzkzF.js} +1 -1
  41. package/web/dist/assets/repo-git-CujS6aTL.js +1 -0
  42. package/web/dist/assets/{run-diff-CKx4d9Oo.js → run-diff-W7x5edKx.js} +2 -2
  43. package/web/dist/assets/run-header-DJr-ucEP.js +1 -0
  44. package/web/dist/assets/{search-x-DRvk-6x4.js → search-x-j_Sd-5ip.js} +1 -1
  45. package/web/dist/assets/{skill-empty-hint-D5vsHfMr.js → skill-empty-hint-DeH69zWW.js} +1 -1
  46. package/web/dist/assets/skills-DEMZj9mP.js +1 -0
  47. package/web/dist/assets/{sparkles-BugkDxWO.js → sparkles-BsNSYRAW.js} +1 -1
  48. package/web/dist/assets/{square-terminal-Drp2h-o8.js → square-terminal-CXTPJqqs.js} +1 -1
  49. package/web/dist/assets/{tab-link-CiRLRlnY.js → tab-link-CvdNI8bf.js} +1 -1
  50. package/web/dist/assets/{task-changes-C2hKkEtc.js → task-changes-CTzJtEf4.js} +1 -1
  51. package/web/dist/assets/task-commits-C_nsj7b0.js +1 -0
  52. package/web/dist/assets/{task-files-5KUgFzX3.js → task-files-DYTsGISp.js} +2 -2
  53. package/web/dist/assets/task-thread-Br6k6ogO.js +9 -0
  54. package/web/dist/assets/{textarea-Dn90Eun6.js → textarea-D1Btqw03.js} +1 -1
  55. package/web/dist/assets/thread-loading-tGBbVTif.js +1 -0
  56. package/web/dist/assets/{trash-2-BKEc5Sp2.js → trash-2-Cw5tizd6.js} +1 -1
  57. package/web/dist/assets/{triangle-alert-BGGPY2C2.js → triangle-alert-CFxqYi-p.js} +1 -1
  58. package/web/dist/assets/{upload-B0AQw-mO.js → upload-_TFV7qrd.js} +1 -1
  59. package/web/dist/assets/{use-desktop-CegyTp3X.js → use-desktop-DG-8gbGO.js} +1 -1
  60. package/web/dist/assets/{use-submit-shortcut-Mle-9uJp.js → use-submit-shortcut-DaaXDZ5d.js} +1 -1
  61. package/web/dist/assets/{utils-D9GHDNza.js → utils-1b28ReSC.js} +2 -2
  62. package/web/dist/assets/{workflows-3PCz57Z6.js → workflows-BRWW-4aS.js} +3 -3
  63. package/web/dist/assets/{zoomable-image-DTq7s8CZ.js → zoomable-image-CBDgbnCz.js} +1 -1
  64. package/web/dist/index.html +24 -24
  65. package/web/dist/assets/arrow-down-D7T7XuF6.js +0 -1
  66. package/web/dist/assets/arrow-left-B1dRFd8y.js +0 -1
  67. package/web/dist/assets/centered-state-DdRLYi9u.js +0 -43
  68. package/web/dist/assets/chevron-right-Dh0t3AL8.js +0 -1
  69. package/web/dist/assets/circle-check-4FDOlh9u.js +0 -1
  70. package/web/dist/assets/circle-x-CgTVbqX5.js +0 -1
  71. package/web/dist/assets/dropdown-menu-WcGoirf2.js +0 -1
  72. package/web/dist/assets/editable-title-SqNK-wuI.js +0 -1
  73. package/web/dist/assets/git-pull-request-BFhIKb83.js +0 -1
  74. package/web/dist/assets/git-toolbar-CF1_tzqz.js +0 -1
  75. package/web/dist/assets/github-CyjPz-Ks.js +0 -1
  76. package/web/dist/assets/index-BN09RpYY.css +0 -2
  77. package/web/dist/assets/index-CyG7aE1W.js +0 -7
  78. package/web/dist/assets/new-task-form-CWhQZbsX.js +0 -1
  79. package/web/dist/assets/repo-git-B1WM6N8T.js +0 -1
  80. package/web/dist/assets/run-header-DpbfOtNi.js +0 -1
  81. package/web/dist/assets/skills-XGltyIJ_.js +0 -1
  82. package/web/dist/assets/task-commits-CwGs_Opa.js +0 -1
  83. package/web/dist/assets/task-thread-B3AFO3SS.js +0 -9
  84. package/web/dist/assets/thread-loading-_1hPuk76.js +0 -1
@@ -101,6 +101,94 @@ export declare const githubChecksDataSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
101
101
  reason: z.ZodString;
102
102
  }, z.core.$strip>], "available">;
103
103
  export type GithubChecksData = z.infer<typeof githubChecksDataSchema>;
104
+ /**
105
+ * Where a referenced PR or issue STANDS — the vocabulary a task's tracker chip paints.
106
+ *
107
+ * One flat enum rather than a per-kind union, because the chip renders one status and a union
108
+ * would make every consumer narrow on `kind` before it could pick a color. The kinds share no
109
+ * value on purpose: a closed PR (abandoned — red) and a closed issue (`completed` — done, violet)
110
+ * are opposite outcomes wearing the same English word, and collapsing them is how a merged-looking
111
+ * task turns out to have been dropped.
112
+ *
113
+ * PR values: `merged`, `closed` (closed WITHOUT merging), `draft`, `checks-pending`,
114
+ * `changes-requested`, `checks-failing`, `review-required`, `ready`. Issue values: `open`,
115
+ * `completed`, `not-planned`.
116
+ *
117
+ * Which one a PR gets is `derivePrReferenceStatus`'s ranking (server-side, and documented there):
118
+ * it answers "what is this waiting on right now", so it ranks by how FRESH a signal is rather
119
+ * than by how heavy a blocker it is — running checks mean a commit was just pushed, and a
120
+ * requested change the author has already pushed past is not what the PR is waiting on.
121
+ *
122
+ * `ready` is the honest reading of "nothing is blocking it here": open, not a draft, no failing or
123
+ * running checks, and no review the forge is still waiting on. It is NOT a mergeability probe —
124
+ * that is `githubPrMergeStateResponseSchema`, which costs a request per PR; this is one batched
125
+ * query for a whole table.
126
+ */
127
+ export declare const referenceStatusSchema: z.ZodEnum<{
128
+ "changes-requested": "changes-requested";
129
+ "checks-failing": "checks-failing";
130
+ "checks-pending": "checks-pending";
131
+ closed: "closed";
132
+ completed: "completed";
133
+ draft: "draft";
134
+ merged: "merged";
135
+ "not-planned": "not-planned";
136
+ open: "open";
137
+ ready: "ready";
138
+ "review-required": "review-required";
139
+ }>;
140
+ export type ReferenceStatus = z.infer<typeof referenceStatusSchema>;
141
+ /**
142
+ * `GET /api/v1/github/ref-status?prs=…&issues=…` — batched status for the PR/issue chips a task
143
+ * table is painting. The additive sibling of `/github/checks`: same cache-behind-the-route shape,
144
+ * same in-payload degrade, same "absent number = nothing known" rule (an unknown or unreachable
145
+ * number is simply missing from the map, and its chip stays neutral).
146
+ */
147
+ /**
148
+ * How many numbers of ONE kind a single `/github/ref-status` request may name — the route 400s
149
+ * past it, and the cockpit caps its batches to match.
150
+ *
151
+ * It lives in the contract because it is one: a client that believed a larger number would send
152
+ * requests the server rejects outright, costing every chip in the batch its status rather than
153
+ * just the tail. Two constants that must agree, in two packages, with nothing making them, is the
154
+ * drift this export exists to prevent.
155
+ */
156
+ export declare const REFERENCE_STATUS_MAX = 100;
157
+ export declare const githubRefStatusDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
158
+ available: z.ZodLiteral<true>;
159
+ prs: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
160
+ "changes-requested": "changes-requested";
161
+ "checks-failing": "checks-failing";
162
+ "checks-pending": "checks-pending";
163
+ closed: "closed";
164
+ completed: "completed";
165
+ draft: "draft";
166
+ merged: "merged";
167
+ "not-planned": "not-planned";
168
+ open: "open";
169
+ ready: "ready";
170
+ "review-required": "review-required";
171
+ }>>;
172
+ issues: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
173
+ "changes-requested": "changes-requested";
174
+ "checks-failing": "checks-failing";
175
+ "checks-pending": "checks-pending";
176
+ closed: "closed";
177
+ completed: "completed";
178
+ draft: "draft";
179
+ merged: "merged";
180
+ "not-planned": "not-planned";
181
+ open: "open";
182
+ ready: "ready";
183
+ "review-required": "review-required";
184
+ }>>;
185
+ recheckAfterMs: z.ZodNullable<z.ZodNumber>;
186
+ }, z.core.$strip>, z.ZodObject<{
187
+ available: z.ZodLiteral<false>;
188
+ reason: z.ZodString;
189
+ recheckAfterMs: z.ZodNullable<z.ZodNumber>;
190
+ }, z.core.$strip>], "available">;
191
+ export type GithubRefStatusData = z.infer<typeof githubRefStatusDataSchema>;
104
192
  /** One comment or PR review summary in an issue/PR thread (#499). */
105
193
  export declare const githubCommentSchema: z.ZodObject<{
106
194
  id: z.ZodNumber;