@cat-factory/contracts 0.320.0 → 0.322.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.
- package/dist/debug-api.d.ts +1 -1
- package/dist/debug-api.d.ts.map +1 -1
- package/dist/debug-api.js +3 -7
- package/dist/debug-api.js.map +1 -1
- package/dist/errors.d.ts +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +7 -0
- package/dist/errors.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/kaizen.d.ts +74 -0
- package/dist/kaizen.d.ts.map +1 -1
- package/dist/kaizen.js +37 -0
- package/dist/kaizen.js.map +1 -1
- package/dist/public-api.d.ts.map +1 -1
- package/dist/public-api.js +7 -18
- package/dist/public-api.js.map +1 -1
- package/dist/public-kaizen.d.ts +316 -0
- package/dist/public-kaizen.d.ts.map +1 -0
- package/dist/public-kaizen.js +218 -0
- package/dist/public-kaizen.js.map +1 -0
- package/dist/public-paging.d.ts +24 -0
- package/dist/public-paging.d.ts.map +1 -0
- package/dist/public-paging.js +41 -0
- package/dist/public-paging.js.map +1 -0
- package/dist/routes/index.d.ts +1 -0
- package/dist/routes/index.d.ts.map +1 -1
- package/dist/routes/index.js +1 -0
- package/dist/routes/index.js.map +1 -1
- package/dist/routes/kaizen.d.ts +6 -0
- package/dist/routes/kaizen.d.ts.map +1 -1
- package/dist/routes/public-kaizen.d.ts +240 -0
- package/dist/routes/public-kaizen.d.ts.map +1 -0
- package/dist/routes/public-kaizen.js +64 -0
- package/dist/routes/public-kaizen.js.map +1 -0
- package/dist/routes/tasks.d.ts +1 -1
- package/dist/tasks.d.ts +11 -2
- package/dist/tasks.d.ts.map +1 -1
- package/dist/tasks.js +10 -0
- package/dist/tasks.js.map +1 -1
- package/package.json +1 -1
package/dist/public-api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
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G;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,2EAA2E;IAC3E,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,qEAAqE;IACrE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,uBAAuB;IAC/B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC;CACpC,CAAC,CAAA;AAGF;;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,oFAAoF;IACpF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,sCAAsC;IACtC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,+DAA+D;IAC/D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB;;;OAGG;IACH,KAAK,EAAE,oBAAoB;IAC3B,gGAAgG;IAChG,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,0CAA0C;IAC1C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAA"}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
/** Machine-readable `details.reason` for an entry id this workspace does not hold. */
|
|
3
|
+
export declare const KAIZEN_ENTRY_NOT_FOUND_REASON = "kaizen_entry_not_found";
|
|
4
|
+
/**
|
|
5
|
+
* Machine-readable `details.reason` for acknowledging an entry that has not settled yet.
|
|
6
|
+
*
|
|
7
|
+
* Distinct from a 404 because it is about TIMING rather than identity: the entry exists, the
|
|
8
|
+
* grader has simply not finished with it, and a caller that acknowledged it now would be marking
|
|
9
|
+
* recommendations triaged before they were written. Retry once the entry reaches `complete` or
|
|
10
|
+
* `failed`.
|
|
11
|
+
*/
|
|
12
|
+
export declare const KAIZEN_ENTRY_NOT_SETTLED_REASON = "kaizen_entry_not_settled";
|
|
13
|
+
/**
|
|
14
|
+
* The board coordinates of the graded run, resolved at read time — null when the task block has
|
|
15
|
+
* since been deleted.
|
|
16
|
+
*
|
|
17
|
+
* Separate from the entry's own `taskId` on purpose: the id is a fact the grading row RECORDED
|
|
18
|
+
* and always answers, while this is what the board says about it NOW. Collapsing the two would
|
|
19
|
+
* make a deleted task read as an entry that never had one.
|
|
20
|
+
*/
|
|
21
|
+
export declare const publicKaizenEntryTaskSchema: v.ObjectSchema<{
|
|
22
|
+
readonly title: v.StringSchema<undefined>;
|
|
23
|
+
/**
|
|
24
|
+
* The task's board lifecycle status, in the SAME vocabulary `/api/v1/tasks` speaks
|
|
25
|
+
* (`publicTaskStatusSchema`) rather than the internal block one it happens to mirror today.
|
|
26
|
+
*
|
|
27
|
+
* Typed against the public picklist on purpose: the two are separate closed vocabularies
|
|
28
|
+
* precisely so the board can gain a status without that widening `/api/v1` by accident. Reading
|
|
29
|
+
* the internal one here would publish the new member with no version decision, and would let two
|
|
30
|
+
* endpoints answer differently about the same task. Adding a member internally now fails to
|
|
31
|
+
* compile until somebody decides what the public surface says about it.
|
|
32
|
+
*/
|
|
33
|
+
readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* The enclosing service frame (`GET /api/v1/services/{serviceId}`), or null for a task outside
|
|
36
|
+
* one — a headless job's anchor, or a board block that predates services.
|
|
37
|
+
*
|
|
38
|
+
* Resolved by walking the block's parent chain to its service frame, which is how every other
|
|
39
|
+
* `/api/v1` surface answers the same question (`GET /api/v1/services/{serviceId}/tasks`,
|
|
40
|
+
* `GET /api/v1/tasks/{taskId}`). Deriving it any other way would let one task report a service
|
|
41
|
+
* here and a different answer (or none) there, for the same board.
|
|
42
|
+
*/
|
|
43
|
+
readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
44
|
+
/**
|
|
45
|
+
* That service's title. Non-null exactly when `serviceId` is: both are read off the SAME
|
|
46
|
+
* resolved frame block, so a caller never receives an id that `GET /api/v1/services/{serviceId}`
|
|
47
|
+
* cannot answer for.
|
|
48
|
+
*/
|
|
49
|
+
readonly serviceTitle: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
50
|
+
}, undefined>;
|
|
51
|
+
export type PublicKaizenEntryTask = v.InferOutput<typeof publicKaizenEntryTaskSchema>;
|
|
52
|
+
/**
|
|
53
|
+
* Where the entry's `(agentKind, model, promptVersion)` combo stands in the verification streak,
|
|
54
|
+
* or null when nothing has been recorded for it yet.
|
|
55
|
+
*
|
|
56
|
+
* Carried because it decides whether an entry is worth acting on: a VERIFIED combo is one the
|
|
57
|
+
* engine has stopped grading, so its recommendations are historical, and a long streak says the
|
|
58
|
+
* pairing is behaving even if this one run was not.
|
|
59
|
+
*/
|
|
60
|
+
export declare const publicKaizenEntryComboSchema: v.ObjectSchema<{
|
|
61
|
+
/** Consecutive high grades (4 or 5, no recommendations) recorded for the combo. */
|
|
62
|
+
readonly consecutiveHighGrades: v.NumberSchema<undefined>;
|
|
63
|
+
/** Whether it crossed the streak threshold and is no longer graded. */
|
|
64
|
+
readonly verified: v.BooleanSchema<undefined>;
|
|
65
|
+
/** Epoch ms it crossed, else null. */
|
|
66
|
+
readonly verifiedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
67
|
+
}, undefined>;
|
|
68
|
+
export type PublicKaizenEntryCombo = v.InferOutput<typeof publicKaizenEntryComboSchema>;
|
|
69
|
+
/**
|
|
70
|
+
* One Kaizen entry as `/api/v1` speaks it: the grading, what produced it, and its triage state.
|
|
71
|
+
*
|
|
72
|
+
* The id vocabulary is the public one — `entryId` for the grading, `runId` and `taskId` for the
|
|
73
|
+
* run and board block the stored row calls `executionId` and `blockId` — so every id here
|
|
74
|
+
* addresses something on this API. Nothing the row holds is dropped.
|
|
75
|
+
*/
|
|
76
|
+
export declare const publicKaizenEntrySchema: v.ObjectSchema<{
|
|
77
|
+
/** The id to pass to `GET /api/v1/kaizen/entries/{entryId}` and the acknowledge route. */
|
|
78
|
+
readonly entryId: v.StringSchema<undefined>;
|
|
79
|
+
/** The run whose step was graded (`GET /api/v1/debug/runs/{runId}` for its own detail). */
|
|
80
|
+
readonly runId: v.StringSchema<undefined>;
|
|
81
|
+
/** Index of the graded step within that run's pipeline. */
|
|
82
|
+
readonly stepIndex: v.NumberSchema<undefined>;
|
|
83
|
+
/** The board task the run was started on, as the row recorded it. */
|
|
84
|
+
readonly taskId: v.StringSchema<undefined>;
|
|
85
|
+
/** What the board says about that task now, or null when it has been deleted. */
|
|
86
|
+
readonly task: v.NullableSchema<v.ObjectSchema<{
|
|
87
|
+
readonly title: v.StringSchema<undefined>;
|
|
88
|
+
/**
|
|
89
|
+
* The task's board lifecycle status, in the SAME vocabulary `/api/v1/tasks` speaks
|
|
90
|
+
* (`publicTaskStatusSchema`) rather than the internal block one it happens to mirror today.
|
|
91
|
+
*
|
|
92
|
+
* Typed against the public picklist on purpose: the two are separate closed vocabularies
|
|
93
|
+
* precisely so the board can gain a status without that widening `/api/v1` by accident. Reading
|
|
94
|
+
* the internal one here would publish the new member with no version decision, and would let two
|
|
95
|
+
* endpoints answer differently about the same task. Adding a member internally now fails to
|
|
96
|
+
* compile until somebody decides what the public surface says about it.
|
|
97
|
+
*/
|
|
98
|
+
readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* The enclosing service frame (`GET /api/v1/services/{serviceId}`), or null for a task outside
|
|
101
|
+
* one — a headless job's anchor, or a board block that predates services.
|
|
102
|
+
*
|
|
103
|
+
* Resolved by walking the block's parent chain to its service frame, which is how every other
|
|
104
|
+
* `/api/v1` surface answers the same question (`GET /api/v1/services/{serviceId}/tasks`,
|
|
105
|
+
* `GET /api/v1/tasks/{taskId}`). Deriving it any other way would let one task report a service
|
|
106
|
+
* here and a different answer (or none) there, for the same board.
|
|
107
|
+
*/
|
|
108
|
+
readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
109
|
+
/**
|
|
110
|
+
* That service's title. Non-null exactly when `serviceId` is: both are read off the SAME
|
|
111
|
+
* resolved frame block, so a caller never receives an id that `GET /api/v1/services/{serviceId}`
|
|
112
|
+
* cannot answer for.
|
|
113
|
+
*/
|
|
114
|
+
readonly serviceTitle: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
115
|
+
}, undefined>, undefined>;
|
|
116
|
+
/** The graded step's agent kind (`coder`, `architect`, a deployment's own kind, …). */
|
|
117
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
118
|
+
/** The model the step actually dispatched on, as resolved at dispatch. */
|
|
119
|
+
readonly model: v.StringSchema<undefined>;
|
|
120
|
+
/** The shipped prompt version the step ran, from the agents prompt-version registry. */
|
|
121
|
+
readonly promptVersion: v.NumberSchema<undefined>;
|
|
122
|
+
/** `agentKind|model|promptVersion(|revision|variant)` — what the streak is kept against. */
|
|
123
|
+
readonly comboKey: v.StringSchema<undefined>;
|
|
124
|
+
/** The combo's verification progress, or null when nothing has been recorded for it. */
|
|
125
|
+
readonly combo: v.NullableSchema<v.ObjectSchema<{
|
|
126
|
+
/** Consecutive high grades (4 or 5, no recommendations) recorded for the combo. */
|
|
127
|
+
readonly consecutiveHighGrades: v.NumberSchema<undefined>;
|
|
128
|
+
/** Whether it crossed the streak threshold and is no longer graded. */
|
|
129
|
+
readonly verified: v.BooleanSchema<undefined>;
|
|
130
|
+
/** Epoch ms it crossed, else null. */
|
|
131
|
+
readonly verifiedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
132
|
+
}, undefined>, undefined>;
|
|
133
|
+
/** Where the grading itself got to (`scheduled` / `running` / `complete` / `failed`). */
|
|
134
|
+
readonly status: v.PicklistSchema<["scheduled", "running", "complete", "failed"], undefined>;
|
|
135
|
+
/** 1..5 once `complete` (5 = smooth, guided, efficient); null while pending or failed. */
|
|
136
|
+
readonly grade: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
137
|
+
/** The grader's prose account of how the interaction went; empty until it completes. */
|
|
138
|
+
readonly summary: v.StringSchema<undefined>;
|
|
139
|
+
/** What the grader recommends changing. Empty ⇒ it found nothing to improve. */
|
|
140
|
+
readonly recommendations: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
141
|
+
/** `provider:model` that produced the grade, so a reader can weigh the grader itself. */
|
|
142
|
+
readonly graderModel: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* Why the grading `failed`, else null. A failure is a real entry rather than a hidden one: it
|
|
145
|
+
* usually names a deployment-level problem (prompt recording off, no grader model wired) that
|
|
146
|
+
* nothing else reports, and it is acknowledgeable for exactly that reason.
|
|
147
|
+
*/
|
|
148
|
+
readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
149
|
+
/** Whether somebody has triaged it — the same fact `acknowledgedAt` carries, as the filter. */
|
|
150
|
+
readonly acknowledged: v.BooleanSchema<undefined>;
|
|
151
|
+
/** Epoch ms it was acknowledged, else null. */
|
|
152
|
+
readonly acknowledgedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
153
|
+
/** The user (`usr_*`) or API key (`pak_*`) that acknowledged it, else null. */
|
|
154
|
+
readonly acknowledgedBy: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
155
|
+
/** The note left with the acknowledgement, else null. */
|
|
156
|
+
readonly acknowledgementNote: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
157
|
+
/** Epoch ms the grading was scheduled (also what the list orders and pages on). */
|
|
158
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
159
|
+
/** Epoch ms the row last changed (a grader transition or an acknowledgement). */
|
|
160
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
161
|
+
}, undefined>;
|
|
162
|
+
export type PublicKaizenEntry = v.InferOutput<typeof publicKaizenEntrySchema>;
|
|
163
|
+
export declare const publicKaizenEntryListSchema: v.ObjectSchema<{
|
|
164
|
+
readonly entries: v.ArraySchema<v.ObjectSchema<{
|
|
165
|
+
/** The id to pass to `GET /api/v1/kaizen/entries/{entryId}` and the acknowledge route. */
|
|
166
|
+
readonly entryId: v.StringSchema<undefined>;
|
|
167
|
+
/** The run whose step was graded (`GET /api/v1/debug/runs/{runId}` for its own detail). */
|
|
168
|
+
readonly runId: v.StringSchema<undefined>;
|
|
169
|
+
/** Index of the graded step within that run's pipeline. */
|
|
170
|
+
readonly stepIndex: v.NumberSchema<undefined>;
|
|
171
|
+
/** The board task the run was started on, as the row recorded it. */
|
|
172
|
+
readonly taskId: v.StringSchema<undefined>;
|
|
173
|
+
/** What the board says about that task now, or null when it has been deleted. */
|
|
174
|
+
readonly task: v.NullableSchema<v.ObjectSchema<{
|
|
175
|
+
readonly title: v.StringSchema<undefined>;
|
|
176
|
+
/**
|
|
177
|
+
* The task's board lifecycle status, in the SAME vocabulary `/api/v1/tasks` speaks
|
|
178
|
+
* (`publicTaskStatusSchema`) rather than the internal block one it happens to mirror today.
|
|
179
|
+
*
|
|
180
|
+
* Typed against the public picklist on purpose: the two are separate closed vocabularies
|
|
181
|
+
* precisely so the board can gain a status without that widening `/api/v1` by accident. Reading
|
|
182
|
+
* the internal one here would publish the new member with no version decision, and would let two
|
|
183
|
+
* endpoints answer differently about the same task. Adding a member internally now fails to
|
|
184
|
+
* compile until somebody decides what the public surface says about it.
|
|
185
|
+
*/
|
|
186
|
+
readonly status: v.PicklistSchema<["planned", "ready", "in_progress", "blocked", "pr_ready", "done"], undefined>;
|
|
187
|
+
/**
|
|
188
|
+
* The enclosing service frame (`GET /api/v1/services/{serviceId}`), or null for a task outside
|
|
189
|
+
* one — a headless job's anchor, or a board block that predates services.
|
|
190
|
+
*
|
|
191
|
+
* Resolved by walking the block's parent chain to its service frame, which is how every other
|
|
192
|
+
* `/api/v1` surface answers the same question (`GET /api/v1/services/{serviceId}/tasks`,
|
|
193
|
+
* `GET /api/v1/tasks/{taskId}`). Deriving it any other way would let one task report a service
|
|
194
|
+
* here and a different answer (or none) there, for the same board.
|
|
195
|
+
*/
|
|
196
|
+
readonly serviceId: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
197
|
+
/**
|
|
198
|
+
* That service's title. Non-null exactly when `serviceId` is: both are read off the SAME
|
|
199
|
+
* resolved frame block, so a caller never receives an id that `GET /api/v1/services/{serviceId}`
|
|
200
|
+
* cannot answer for.
|
|
201
|
+
*/
|
|
202
|
+
readonly serviceTitle: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
203
|
+
}, undefined>, undefined>;
|
|
204
|
+
/** The graded step's agent kind (`coder`, `architect`, a deployment's own kind, …). */
|
|
205
|
+
readonly agentKind: v.StringSchema<undefined>;
|
|
206
|
+
/** The model the step actually dispatched on, as resolved at dispatch. */
|
|
207
|
+
readonly model: v.StringSchema<undefined>;
|
|
208
|
+
/** The shipped prompt version the step ran, from the agents prompt-version registry. */
|
|
209
|
+
readonly promptVersion: v.NumberSchema<undefined>;
|
|
210
|
+
/** `agentKind|model|promptVersion(|revision|variant)` — what the streak is kept against. */
|
|
211
|
+
readonly comboKey: v.StringSchema<undefined>;
|
|
212
|
+
/** The combo's verification progress, or null when nothing has been recorded for it. */
|
|
213
|
+
readonly combo: v.NullableSchema<v.ObjectSchema<{
|
|
214
|
+
/** Consecutive high grades (4 or 5, no recommendations) recorded for the combo. */
|
|
215
|
+
readonly consecutiveHighGrades: v.NumberSchema<undefined>;
|
|
216
|
+
/** Whether it crossed the streak threshold and is no longer graded. */
|
|
217
|
+
readonly verified: v.BooleanSchema<undefined>;
|
|
218
|
+
/** Epoch ms it crossed, else null. */
|
|
219
|
+
readonly verifiedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
220
|
+
}, undefined>, undefined>;
|
|
221
|
+
/** Where the grading itself got to (`scheduled` / `running` / `complete` / `failed`). */
|
|
222
|
+
readonly status: v.PicklistSchema<["scheduled", "running", "complete", "failed"], undefined>;
|
|
223
|
+
/** 1..5 once `complete` (5 = smooth, guided, efficient); null while pending or failed. */
|
|
224
|
+
readonly grade: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
225
|
+
/** The grader's prose account of how the interaction went; empty until it completes. */
|
|
226
|
+
readonly summary: v.StringSchema<undefined>;
|
|
227
|
+
/** What the grader recommends changing. Empty ⇒ it found nothing to improve. */
|
|
228
|
+
readonly recommendations: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
229
|
+
/** `provider:model` that produced the grade, so a reader can weigh the grader itself. */
|
|
230
|
+
readonly graderModel: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
231
|
+
/**
|
|
232
|
+
* Why the grading `failed`, else null. A failure is a real entry rather than a hidden one: it
|
|
233
|
+
* usually names a deployment-level problem (prompt recording off, no grader model wired) that
|
|
234
|
+
* nothing else reports, and it is acknowledgeable for exactly that reason.
|
|
235
|
+
*/
|
|
236
|
+
readonly error: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
237
|
+
/** Whether somebody has triaged it — the same fact `acknowledgedAt` carries, as the filter. */
|
|
238
|
+
readonly acknowledged: v.BooleanSchema<undefined>;
|
|
239
|
+
/** Epoch ms it was acknowledged, else null. */
|
|
240
|
+
readonly acknowledgedAt: v.NullableSchema<v.NumberSchema<undefined>, undefined>;
|
|
241
|
+
/** The user (`usr_*`) or API key (`pak_*`) that acknowledged it, else null. */
|
|
242
|
+
readonly acknowledgedBy: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
243
|
+
/** The note left with the acknowledgement, else null. */
|
|
244
|
+
readonly acknowledgementNote: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
245
|
+
/** Epoch ms the grading was scheduled (also what the list orders and pages on). */
|
|
246
|
+
readonly createdAt: v.NumberSchema<undefined>;
|
|
247
|
+
/** Epoch ms the row last changed (a grader transition or an acknowledgement). */
|
|
248
|
+
readonly updatedAt: v.NumberSchema<undefined>;
|
|
249
|
+
}, undefined>, undefined>;
|
|
250
|
+
/**
|
|
251
|
+
* Cursor to pass as `?cursor=` for the next page, or null when this was the last page. A
|
|
252
|
+
* non-null cursor means "there may be more", so a client pages until it comes back null.
|
|
253
|
+
*/
|
|
254
|
+
readonly nextCursor: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
255
|
+
}, undefined>;
|
|
256
|
+
export type PublicKaizenEntryList = v.InferOutput<typeof publicKaizenEntryListSchema>;
|
|
257
|
+
/**
|
|
258
|
+
* Query params for `GET /api/v1/kaizen/entries`. Ordering is newest-first on the grading's
|
|
259
|
+
* `createdAt`, keyset-paged on `(createdAt, entryId)` so a burst of gradings sharing a
|
|
260
|
+
* millisecond cannot lose rows between pages.
|
|
261
|
+
*
|
|
262
|
+
* The filters are the questions an improvement loop actually asks, each pushed into SQL: what is
|
|
263
|
+
* untriaged, what the grader has finished with, what one agent kind is being told, and what is new
|
|
264
|
+
* since the last sweep. They compose, and `?acknowledged=false&settled=true` is the working
|
|
265
|
+
* backlog: every entry in it is one the acknowledge route accepts.
|
|
266
|
+
*/
|
|
267
|
+
export declare const listPublicKaizenEntriesQuerySchema: v.ObjectSchema<{
|
|
268
|
+
/** Rows per page (1..100); omitted → 25. */
|
|
269
|
+
readonly limit: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Must be a whole number">, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 1, undefined>, v.MaxValueAction<number, 100, undefined>]>, undefined>;
|
|
270
|
+
/** Opaque cursor from a previous page's `nextCursor`. */
|
|
271
|
+
readonly cursor: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 200, undefined>]>, undefined>;
|
|
272
|
+
/** `false` for the untriaged backlog, `true` for what has been handled; omitted → both. */
|
|
273
|
+
readonly acknowledged: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"false" | "true", boolean>]>, undefined>;
|
|
274
|
+
/**
|
|
275
|
+
* `true` for entries the grader has FINISHED with (whatever it concluded), `false` for those
|
|
276
|
+
* still scheduled or running; omitted → both.
|
|
277
|
+
*
|
|
278
|
+
* The filter that makes `?acknowledged=false&settled=true` an actionable backlog: every row it
|
|
279
|
+
* returns is one the acknowledge route will accept, where `?acknowledged=false` alone also
|
|
280
|
+
* returns gradings mid-flight that it refuses with `409 kaizen_entry_not_settled`. It is a
|
|
281
|
+
* separate question from `status` because the settled SET is what the write is gated on, and
|
|
282
|
+
* spelling it as `status=complete` drops the `failed` entries (which usually name a deployment
|
|
283
|
+
* problem, and are the ones most worth acting on) while a client-side union of the two would
|
|
284
|
+
* silently miss any settled state added later.
|
|
285
|
+
*/
|
|
286
|
+
readonly settled: v.OptionalSchema<v.SchemaWithPipe<readonly [v.PicklistSchema<["true", "false"], undefined>, v.TransformAction<"false" | "true", boolean>]>, undefined>;
|
|
287
|
+
/** Return only entries whose grading is in this exact state. */
|
|
288
|
+
readonly status: v.OptionalSchema<v.PicklistSchema<["scheduled", "running", "complete", "failed"], undefined>, undefined>;
|
|
289
|
+
/** Return only entries grading this agent kind. */
|
|
290
|
+
readonly agentKind: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, 120, undefined>]>, undefined>;
|
|
291
|
+
/** Return only entries created at or after this epoch-ms stamp (the incremental-poll filter). */
|
|
292
|
+
readonly since: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, "Must be a whole number of epoch milliseconds">, v.TransformAction<any, number>, v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
293
|
+
}, undefined>;
|
|
294
|
+
export type ListPublicKaizenEntriesQuery = v.InferOutput<typeof listPublicKaizenEntriesQuerySchema>;
|
|
295
|
+
/** Longest acknowledgement note the surface stores. */
|
|
296
|
+
export declare const KAIZEN_ACKNOWLEDGEMENT_NOTE_MAX = 2000;
|
|
297
|
+
/**
|
|
298
|
+
* Body for `POST /api/v1/kaizen/entries/{entryId}/acknowledge`.
|
|
299
|
+
*
|
|
300
|
+
* `acknowledged` is optional and defaults to `true`, so the ordinary call is an empty body; pass
|
|
301
|
+
* `false` to put an entry back on the backlog after acknowledging it by mistake. Acknowledging an
|
|
302
|
+
* already-acknowledged entry is a no-op that returns the row unchanged, which keeps
|
|
303
|
+
* `acknowledgedAt` naming when it was FIRST triaged rather than when a retrying client last
|
|
304
|
+
* repeated itself.
|
|
305
|
+
*/
|
|
306
|
+
export declare const acknowledgeKaizenEntrySchema: v.ObjectSchema<{
|
|
307
|
+
/** `true` (the default) records the acknowledgement; `false` clears it. */
|
|
308
|
+
readonly acknowledged: v.OptionalSchema<v.BooleanSchema<undefined>, undefined>;
|
|
309
|
+
/**
|
|
310
|
+
* What the next reader should know: a ticket id, a decision, why it was dismissed. Stored only
|
|
311
|
+
* with the acknowledgement that lands, and cleared along with it.
|
|
312
|
+
*/
|
|
313
|
+
readonly note: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MaxLengthAction<string, 2000, undefined>]>, undefined>, undefined>;
|
|
314
|
+
}, undefined>;
|
|
315
|
+
export type AcknowledgeKaizenEntry = v.InferOutput<typeof acknowledgeKaizenEntrySchema>;
|
|
316
|
+
//# sourceMappingURL=public-kaizen.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-kaizen.d.ts","sourceRoot":"","sources":["../src/public-kaizen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAqC5B,sFAAsF;AACtF,eAAO,MAAM,6BAA6B,2BAA2B,CA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AQG;;YAEH;;;;eAIG;;;QAyCH,uFAAuF;;QAEvF,0EAA0E;;QAE1E,wFAAwF;;QAExF,4FAA4F;;QAE5F,wFAAwF;;YAnCxF,mFAAmF;;YAEnF,uEAAuE;;YAEvE,sCAAsC;;;QAiCtC,yFAAyF;;QAEzF,0FAA0F;;QAE1F,wFAAwF;;QAExF,gFAAgF;;QAEhF,yFAAyF;;QAEzF;;;;WAIG;;QAEH,+FAA+F;;QAE/F,+CAA+C;;QAE/C,+EAA+E;;QAE/E,yDAAyD;;QAEzD,mFAAmF;;QAEnF,iFAAiF;;;IAOjF;;;OAGG;;aAEH,CAAA;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,2BAA2B,CAAC,CAAA;AAErF;;;;;;;;;GASG;AACH,eAAO,MAAM,kCAAkC;IAC7C,4CAA4C;;IAE5C,yDAAyD;;IAEzD,2FAA2F;;IAE3F;;;;;;;;;;;OAWG;;IAEH,gEAAgE;;IAEhE,mDAAmD;;IAEnD,iGAAiG;;aAEjG,CAAA;AACF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEnG,uDAAuD;AACvD,eAAO,MAAM,+BAA+B,OAAQ,CAAA;AAEpD;;;;;;;;GAQG;AACH,eAAO,MAAM,4BAA4B;IACvC,2EAA2E;;IAE3E;;;OAGG;;aAIH,CAAA;AACF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,WAAW,CAAC,OAAO,4BAA4B,CAAC,CAAA"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
2
|
+
import { kaizenGradingStatusSchema } from './kaizen.js';
|
|
3
|
+
import { publicTaskStatusSchema } from './public-api.js';
|
|
4
|
+
import { booleanQuerySchema, cursorSchema, epochMsQuerySchema, pageLimitSchema, } from './public-paging.js';
|
|
5
|
+
// ---------------------------------------------------------------------------
|
|
6
|
+
// Public KAIZEN-ENTRY wire shapes (`/api/v1/kaizen/entries`, `…/{entryId}`, `…/acknowledge`).
|
|
7
|
+
//
|
|
8
|
+
// A Kaizen entry is one post-run grading of one agent step: how smooth or chaotic that
|
|
9
|
+
// interaction was, and what the grader recommends changing (`KaizenService`). Inside
|
|
10
|
+
// the app they are read one board at a time — the Kaizen screen's bounded history, and the
|
|
11
|
+
// per-run status strip in the run window — which is enough for a person browsing, and useless
|
|
12
|
+
// for the thing this surface exists for: a continuous-improvement loop that has to consume EVERY
|
|
13
|
+
// entry exactly once, file the recommendations somewhere, and come back for what is new.
|
|
14
|
+
//
|
|
15
|
+
// Three rules shape these shapes:
|
|
16
|
+
//
|
|
17
|
+
// 1. **The list is workspace-wide and keyset-paginated, with NO run or task required up front.**
|
|
18
|
+
// An improvement loop does not know which runs produced recommendations; that is what it is
|
|
19
|
+
// asking. Every other Kaizen read makes the caller name a run first, which is the one thing
|
|
20
|
+
// it cannot supply.
|
|
21
|
+
// 2. **An entry carries the investigative context, not just the grade.** The point of reading
|
|
22
|
+
// one is deciding whether to act on it, and that decision needs to know WHAT was graded
|
|
23
|
+
// (agent kind, resolved model, prompt version), WHERE (run, step index, task, service) and
|
|
24
|
+
// whether the combo it names is already verified and therefore no longer being graded.
|
|
25
|
+
// Everything here is either on the grading row or one batched lookup away; the run's own
|
|
26
|
+
// detail stays behind `GET /api/v1/debug/runs/{runId}`, which the `runId` joins onto.
|
|
27
|
+
// 3. **Acknowledgement is the entry's own state**, written only through this surface and never
|
|
28
|
+
// by the grading sweep. It is what makes the loop incremental: `?acknowledged=false` is the
|
|
29
|
+
// backlog, and acknowledging is what takes an entry out of it.
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
/** Machine-readable `details.reason` for an entry id this workspace does not hold. */
|
|
32
|
+
export const KAIZEN_ENTRY_NOT_FOUND_REASON = 'kaizen_entry_not_found';
|
|
33
|
+
/**
|
|
34
|
+
* Machine-readable `details.reason` for acknowledging an entry that has not settled yet.
|
|
35
|
+
*
|
|
36
|
+
* Distinct from a 404 because it is about TIMING rather than identity: the entry exists, the
|
|
37
|
+
* grader has simply not finished with it, and a caller that acknowledged it now would be marking
|
|
38
|
+
* recommendations triaged before they were written. Retry once the entry reaches `complete` or
|
|
39
|
+
* `failed`.
|
|
40
|
+
*/
|
|
41
|
+
export const KAIZEN_ENTRY_NOT_SETTLED_REASON = 'kaizen_entry_not_settled';
|
|
42
|
+
/**
|
|
43
|
+
* The board coordinates of the graded run, resolved at read time — null when the task block has
|
|
44
|
+
* since been deleted.
|
|
45
|
+
*
|
|
46
|
+
* Separate from the entry's own `taskId` on purpose: the id is a fact the grading row RECORDED
|
|
47
|
+
* and always answers, while this is what the board says about it NOW. Collapsing the two would
|
|
48
|
+
* make a deleted task read as an entry that never had one.
|
|
49
|
+
*/
|
|
50
|
+
export const publicKaizenEntryTaskSchema = v.object({
|
|
51
|
+
title: v.string(),
|
|
52
|
+
/**
|
|
53
|
+
* The task's board lifecycle status, in the SAME vocabulary `/api/v1/tasks` speaks
|
|
54
|
+
* (`publicTaskStatusSchema`) rather than the internal block one it happens to mirror today.
|
|
55
|
+
*
|
|
56
|
+
* Typed against the public picklist on purpose: the two are separate closed vocabularies
|
|
57
|
+
* precisely so the board can gain a status without that widening `/api/v1` by accident. Reading
|
|
58
|
+
* the internal one here would publish the new member with no version decision, and would let two
|
|
59
|
+
* endpoints answer differently about the same task. Adding a member internally now fails to
|
|
60
|
+
* compile until somebody decides what the public surface says about it.
|
|
61
|
+
*/
|
|
62
|
+
status: publicTaskStatusSchema,
|
|
63
|
+
/**
|
|
64
|
+
* The enclosing service frame (`GET /api/v1/services/{serviceId}`), or null for a task outside
|
|
65
|
+
* one — a headless job's anchor, or a board block that predates services.
|
|
66
|
+
*
|
|
67
|
+
* Resolved by walking the block's parent chain to its service frame, which is how every other
|
|
68
|
+
* `/api/v1` surface answers the same question (`GET /api/v1/services/{serviceId}/tasks`,
|
|
69
|
+
* `GET /api/v1/tasks/{taskId}`). Deriving it any other way would let one task report a service
|
|
70
|
+
* here and a different answer (or none) there, for the same board.
|
|
71
|
+
*/
|
|
72
|
+
serviceId: v.nullable(v.string()),
|
|
73
|
+
/**
|
|
74
|
+
* That service's title. Non-null exactly when `serviceId` is: both are read off the SAME
|
|
75
|
+
* resolved frame block, so a caller never receives an id that `GET /api/v1/services/{serviceId}`
|
|
76
|
+
* cannot answer for.
|
|
77
|
+
*/
|
|
78
|
+
serviceTitle: v.nullable(v.string()),
|
|
79
|
+
});
|
|
80
|
+
/**
|
|
81
|
+
* Where the entry's `(agentKind, model, promptVersion)` combo stands in the verification streak,
|
|
82
|
+
* or null when nothing has been recorded for it yet.
|
|
83
|
+
*
|
|
84
|
+
* Carried because it decides whether an entry is worth acting on: a VERIFIED combo is one the
|
|
85
|
+
* engine has stopped grading, so its recommendations are historical, and a long streak says the
|
|
86
|
+
* pairing is behaving even if this one run was not.
|
|
87
|
+
*/
|
|
88
|
+
export const publicKaizenEntryComboSchema = v.object({
|
|
89
|
+
/** Consecutive high grades (4 or 5, no recommendations) recorded for the combo. */
|
|
90
|
+
consecutiveHighGrades: v.number(),
|
|
91
|
+
/** Whether it crossed the streak threshold and is no longer graded. */
|
|
92
|
+
verified: v.boolean(),
|
|
93
|
+
/** Epoch ms it crossed, else null. */
|
|
94
|
+
verifiedAt: v.nullable(v.number()),
|
|
95
|
+
});
|
|
96
|
+
/**
|
|
97
|
+
* One Kaizen entry as `/api/v1` speaks it: the grading, what produced it, and its triage state.
|
|
98
|
+
*
|
|
99
|
+
* The id vocabulary is the public one — `entryId` for the grading, `runId` and `taskId` for the
|
|
100
|
+
* run and board block the stored row calls `executionId` and `blockId` — so every id here
|
|
101
|
+
* addresses something on this API. Nothing the row holds is dropped.
|
|
102
|
+
*/
|
|
103
|
+
export const publicKaizenEntrySchema = v.object({
|
|
104
|
+
/** The id to pass to `GET /api/v1/kaizen/entries/{entryId}` and the acknowledge route. */
|
|
105
|
+
entryId: v.string(),
|
|
106
|
+
/** The run whose step was graded (`GET /api/v1/debug/runs/{runId}` for its own detail). */
|
|
107
|
+
runId: v.string(),
|
|
108
|
+
/** Index of the graded step within that run's pipeline. */
|
|
109
|
+
stepIndex: v.number(),
|
|
110
|
+
/** The board task the run was started on, as the row recorded it. */
|
|
111
|
+
taskId: v.string(),
|
|
112
|
+
/** What the board says about that task now, or null when it has been deleted. */
|
|
113
|
+
task: v.nullable(publicKaizenEntryTaskSchema),
|
|
114
|
+
/** The graded step's agent kind (`coder`, `architect`, a deployment's own kind, …). */
|
|
115
|
+
agentKind: v.string(),
|
|
116
|
+
/** The model the step actually dispatched on, as resolved at dispatch. */
|
|
117
|
+
model: v.string(),
|
|
118
|
+
/** The shipped prompt version the step ran, from the agents prompt-version registry. */
|
|
119
|
+
promptVersion: v.number(),
|
|
120
|
+
/** `agentKind|model|promptVersion(|revision|variant)` — what the streak is kept against. */
|
|
121
|
+
comboKey: v.string(),
|
|
122
|
+
/** The combo's verification progress, or null when nothing has been recorded for it. */
|
|
123
|
+
combo: v.nullable(publicKaizenEntryComboSchema),
|
|
124
|
+
/** Where the grading itself got to (`scheduled` / `running` / `complete` / `failed`). */
|
|
125
|
+
status: kaizenGradingStatusSchema,
|
|
126
|
+
/** 1..5 once `complete` (5 = smooth, guided, efficient); null while pending or failed. */
|
|
127
|
+
grade: v.nullable(v.number()),
|
|
128
|
+
/** The grader's prose account of how the interaction went; empty until it completes. */
|
|
129
|
+
summary: v.string(),
|
|
130
|
+
/** What the grader recommends changing. Empty ⇒ it found nothing to improve. */
|
|
131
|
+
recommendations: v.array(v.string()),
|
|
132
|
+
/** `provider:model` that produced the grade, so a reader can weigh the grader itself. */
|
|
133
|
+
graderModel: v.nullable(v.string()),
|
|
134
|
+
/**
|
|
135
|
+
* Why the grading `failed`, else null. A failure is a real entry rather than a hidden one: it
|
|
136
|
+
* usually names a deployment-level problem (prompt recording off, no grader model wired) that
|
|
137
|
+
* nothing else reports, and it is acknowledgeable for exactly that reason.
|
|
138
|
+
*/
|
|
139
|
+
error: v.nullable(v.string()),
|
|
140
|
+
/** Whether somebody has triaged it — the same fact `acknowledgedAt` carries, as the filter. */
|
|
141
|
+
acknowledged: v.boolean(),
|
|
142
|
+
/** Epoch ms it was acknowledged, else null. */
|
|
143
|
+
acknowledgedAt: v.nullable(v.number()),
|
|
144
|
+
/** The user (`usr_*`) or API key (`pak_*`) that acknowledged it, else null. */
|
|
145
|
+
acknowledgedBy: v.nullable(v.string()),
|
|
146
|
+
/** The note left with the acknowledgement, else null. */
|
|
147
|
+
acknowledgementNote: v.nullable(v.string()),
|
|
148
|
+
/** Epoch ms the grading was scheduled (also what the list orders and pages on). */
|
|
149
|
+
createdAt: v.number(),
|
|
150
|
+
/** Epoch ms the row last changed (a grader transition or an acknowledgement). */
|
|
151
|
+
updatedAt: v.number(),
|
|
152
|
+
});
|
|
153
|
+
export const publicKaizenEntryListSchema = v.object({
|
|
154
|
+
entries: v.array(publicKaizenEntrySchema),
|
|
155
|
+
/**
|
|
156
|
+
* Cursor to pass as `?cursor=` for the next page, or null when this was the last page. A
|
|
157
|
+
* non-null cursor means "there may be more", so a client pages until it comes back null.
|
|
158
|
+
*/
|
|
159
|
+
nextCursor: v.nullable(v.string()),
|
|
160
|
+
});
|
|
161
|
+
/**
|
|
162
|
+
* Query params for `GET /api/v1/kaizen/entries`. Ordering is newest-first on the grading's
|
|
163
|
+
* `createdAt`, keyset-paged on `(createdAt, entryId)` so a burst of gradings sharing a
|
|
164
|
+
* millisecond cannot lose rows between pages.
|
|
165
|
+
*
|
|
166
|
+
* The filters are the questions an improvement loop actually asks, each pushed into SQL: what is
|
|
167
|
+
* untriaged, what the grader has finished with, what one agent kind is being told, and what is new
|
|
168
|
+
* since the last sweep. They compose, and `?acknowledged=false&settled=true` is the working
|
|
169
|
+
* backlog: every entry in it is one the acknowledge route accepts.
|
|
170
|
+
*/
|
|
171
|
+
export const listPublicKaizenEntriesQuerySchema = v.object({
|
|
172
|
+
/** Rows per page (1..100); omitted → 25. */
|
|
173
|
+
limit: v.optional(pageLimitSchema),
|
|
174
|
+
/** Opaque cursor from a previous page's `nextCursor`. */
|
|
175
|
+
cursor: v.optional(cursorSchema),
|
|
176
|
+
/** `false` for the untriaged backlog, `true` for what has been handled; omitted → both. */
|
|
177
|
+
acknowledged: v.optional(booleanQuerySchema),
|
|
178
|
+
/**
|
|
179
|
+
* `true` for entries the grader has FINISHED with (whatever it concluded), `false` for those
|
|
180
|
+
* still scheduled or running; omitted → both.
|
|
181
|
+
*
|
|
182
|
+
* The filter that makes `?acknowledged=false&settled=true` an actionable backlog: every row it
|
|
183
|
+
* returns is one the acknowledge route will accept, where `?acknowledged=false` alone also
|
|
184
|
+
* returns gradings mid-flight that it refuses with `409 kaizen_entry_not_settled`. It is a
|
|
185
|
+
* separate question from `status` because the settled SET is what the write is gated on, and
|
|
186
|
+
* spelling it as `status=complete` drops the `failed` entries (which usually name a deployment
|
|
187
|
+
* problem, and are the ones most worth acting on) while a client-side union of the two would
|
|
188
|
+
* silently miss any settled state added later.
|
|
189
|
+
*/
|
|
190
|
+
settled: v.optional(booleanQuerySchema),
|
|
191
|
+
/** Return only entries whose grading is in this exact state. */
|
|
192
|
+
status: v.optional(kaizenGradingStatusSchema),
|
|
193
|
+
/** Return only entries grading this agent kind. */
|
|
194
|
+
agentKind: v.optional(v.pipe(v.string(), v.trim(), v.minLength(1), v.maxLength(120))),
|
|
195
|
+
/** Return only entries created at or after this epoch-ms stamp (the incremental-poll filter). */
|
|
196
|
+
since: v.optional(epochMsQuerySchema),
|
|
197
|
+
});
|
|
198
|
+
/** Longest acknowledgement note the surface stores. */
|
|
199
|
+
export const KAIZEN_ACKNOWLEDGEMENT_NOTE_MAX = 2_000;
|
|
200
|
+
/**
|
|
201
|
+
* Body for `POST /api/v1/kaizen/entries/{entryId}/acknowledge`.
|
|
202
|
+
*
|
|
203
|
+
* `acknowledged` is optional and defaults to `true`, so the ordinary call is an empty body; pass
|
|
204
|
+
* `false` to put an entry back on the backlog after acknowledging it by mistake. Acknowledging an
|
|
205
|
+
* already-acknowledged entry is a no-op that returns the row unchanged, which keeps
|
|
206
|
+
* `acknowledgedAt` naming when it was FIRST triaged rather than when a retrying client last
|
|
207
|
+
* repeated itself.
|
|
208
|
+
*/
|
|
209
|
+
export const acknowledgeKaizenEntrySchema = v.object({
|
|
210
|
+
/** `true` (the default) records the acknowledgement; `false` clears it. */
|
|
211
|
+
acknowledged: v.optional(v.boolean()),
|
|
212
|
+
/**
|
|
213
|
+
* What the next reader should know: a ticket id, a decision, why it was dismissed. Stored only
|
|
214
|
+
* with the acknowledgement that lands, and cleared along with it.
|
|
215
|
+
*/
|
|
216
|
+
note: v.optional(v.nullable(v.pipe(v.string(), v.trim(), v.maxLength(KAIZEN_ACKNOWLEDGEMENT_NOTE_MAX)))),
|
|
217
|
+
});
|
|
218
|
+
//# sourceMappingURL=public-kaizen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-kaizen.js","sourceRoot":"","sources":["../src/public-kaizen.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AAC5B,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAA;AACvD,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,kBAAkB,EAClB,eAAe,GAChB,MAAM,oBAAoB,CAAA;AAE3B,8EAA8E;AAC9E,8FAA8F;AAC9F,EAAE;AACF,uFAAuF;AACvF,qFAAqF;AACrF,2FAA2F;AAC3F,8FAA8F;AAC9F,iGAAiG;AACjG,yFAAyF;AACzF,EAAE;AACF,kCAAkC;AAClC,EAAE;AACF,kGAAkG;AAClG,gGAAgG;AAChG,gGAAgG;AAChG,wBAAwB;AACxB,+FAA+F;AAC/F,4FAA4F;AAC5F,+FAA+F;AAC/F,2FAA2F;AAC3F,6FAA6F;AAC7F,0FAA0F;AAC1F,gGAAgG;AAChG,gGAAgG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