@opencraw/studio 0.0.6 → 0.0.8

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 (67) hide show
  1. package/dist/index.esm.js +3632 -861
  2. package/dist/src/document-view/deck-view.mapper.d.ts +70 -0
  3. package/dist/src/document-view/index.d.ts +11 -0
  4. package/dist/src/document-view/pdf-view.mapper.d.ts +47 -0
  5. package/dist/src/document-view/table-preview.use-case.d.ts +152 -0
  6. package/dist/src/document-view/tree-view.mapper.d.ts +47 -0
  7. package/dist/src/document-view/workbook-view.mapper.d.ts +51 -0
  8. package/dist/src/explain-why/index.d.ts +5 -0
  9. package/dist/src/explain-why/item-hint.algorithm.d.ts +13 -0
  10. package/dist/src/explain-why/why-sentence.mapper.d.ts +48 -0
  11. package/dist/src/explain-why/why.use-case.d.ts +26 -0
  12. package/dist/src/flow-recording/action-to-step.mapper.d.ts +16 -0
  13. package/dist/src/flow-recording/index.d.ts +13 -0
  14. package/dist/src/flow-recording/next-link.policy.d.ts +27 -0
  15. package/dist/src/flow-recording/recorded-action.contract.d.ts +114 -0
  16. package/dist/src/flow-recording/recorder-script.client.d.ts +48 -0
  17. package/dist/src/flow-recording/recorder-session.use-case.d.ts +67 -0
  18. package/dist/src/flow-recording/secret-field.policy.d.ts +33 -0
  19. package/dist/src/flow-recording/wait-insertion.policy.d.ts +26 -0
  20. package/dist/src/index.d.ts +4 -3
  21. package/dist/src/page-inspector/dom-tree.mapper.d.ts +32 -0
  22. package/dist/src/page-inspector/index.d.ts +7 -0
  23. package/dist/src/page-inspector/page-data.algorithm.d.ts +39 -0
  24. package/dist/src/page-inspector/responses-seen.use-case.d.ts +36 -0
  25. package/dist/src/page-snapshot/index.d.ts +3 -0
  26. package/dist/src/page-snapshot/pdf-bytes.use-case.d.ts +16 -0
  27. package/dist/src/page-snapshot/reread-csv.use-case.d.ts +22 -0
  28. package/dist/src/page-snapshot/take-snapshot.use-case.d.ts +26 -1
  29. package/dist/src/sample-run/index.d.ts +3 -1
  30. package/dist/src/sample-run/last-run.store.d.ts +17 -0
  31. package/dist/src/sample-run/run-sample.use-case.d.ts +12 -6
  32. package/dist/src/sample-run/sample-run-record.contract.d.ts +30 -1
  33. package/dist/src/studio-api/command.contract.d.ts +359 -0
  34. package/dist/src/studio-api/deck-preview-view.contract.d.ts +28 -0
  35. package/dist/src/studio-api/deck-view.contract.d.ts +127 -0
  36. package/dist/src/studio-api/document-tree-view.contract.d.ts +26 -0
  37. package/dist/src/studio-api/event.contract.d.ts +86 -1
  38. package/dist/src/studio-api/grid-preview-view.contract.d.ts +26 -0
  39. package/dist/src/studio-api/grid-view.contract.d.ts +75 -0
  40. package/dist/src/studio-api/index.d.ts +24 -4
  41. package/dist/src/studio-api/inspect-view.contract.d.ts +62 -0
  42. package/dist/src/studio-api/pdf-view.contract.d.ts +66 -0
  43. package/dist/src/studio-api/responses-seen-view.contract.d.ts +20 -0
  44. package/dist/src/studio-api/snapshot-view.contract.d.ts +22 -1
  45. package/dist/src/studio-api/table-preview-view.contract.d.ts +65 -0
  46. package/dist/src/studio-api/why-view.contract.d.ts +16 -0
  47. package/dist/src/studio-server/deck-preview.handler.d.ts +17 -0
  48. package/dist/src/studio-server/deck-view.handler.d.ts +15 -0
  49. package/dist/src/studio-server/document-tree.handler.d.ts +14 -0
  50. package/dist/src/studio-server/explain-why.handler.d.ts +14 -0
  51. package/dist/src/studio-server/grid-preview.handler.d.ts +17 -0
  52. package/dist/src/studio-server/grid-view.handler.d.ts +20 -0
  53. package/dist/src/studio-server/inspect-page.handler.d.ts +18 -0
  54. package/dist/src/studio-server/pdf-bytes.handler.d.ts +17 -0
  55. package/dist/src/studio-server/pdf-view.handler.d.ts +14 -0
  56. package/dist/src/studio-server/recording.handler.d.ts +33 -0
  57. package/dist/src/studio-server/responses-seen.handler.d.ts +16 -0
  58. package/dist/src/studio-server/studio-http.use-case.d.ts +3 -1
  59. package/dist/src/studio-server/table-preview.handler.d.ts +16 -0
  60. package/dist/src/studio-server/workspace.store.d.ts +8 -3
  61. package/dist/ui/assets/index-DdiGdaTN.js +13 -0
  62. package/dist/ui/assets/pdf-lqXfRfkR.js +56 -0
  63. package/dist/ui/assets/pdf.worker.min-BmVo14Nb.mjs +28 -0
  64. package/dist/ui/assets/pdf.worker.min-D7i8o3wR.js +1 -0
  65. package/dist/ui/index.html +1 -1
  66. package/package.json +3 -2
  67. package/dist/ui/assets/index-BfbrsfCv.js +0 -13
@@ -77,6 +77,256 @@ export declare const inferSelectorCommandSchema: z.ZodObject<{
77
77
  path: z.ZodString;
78
78
  nodeIds: z.ZodUnion<readonly [z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
79
79
  }, z.core.$strip>;
80
+ /**
81
+ * The Inspect panel's DOM tree and data-in-the-page findings, off the same
82
+ * cached snapshot `take-snapshot`/`infer-selector` already use (`page-inspector`,
83
+ * issue #93). Call `take-snapshot` first, same as `infer-selector`.
84
+ */
85
+ export declare const inspectPageCommandSchema: z.ZodObject<{
86
+ type: z.ZodLiteral<"inspect-page">;
87
+ recipeId: z.ZodString;
88
+ path: z.ZodString;
89
+ }, z.core.$strip>;
90
+ /**
91
+ * The JSON responses seen while a recipe's start page rendered
92
+ * (`page-inspector`'s `responses-seen.use-case.ts`, issue #93), for the
93
+ * Inspect panel's "responses seen" list. Opens its own browser session
94
+ * (see that use-case's doc comment for why); slower than `inspect-page`.
95
+ */
96
+ export declare const responsesSeenCommandSchema: z.ZodObject<{
97
+ type: z.ZodLiteral<"responses-seen">;
98
+ recipeId: z.ZodString;
99
+ path: z.ZodString;
100
+ }, z.core.$strip>;
101
+ /**
102
+ * The document tree for the content pane's tree canvas (`document-view`'s
103
+ * `tree-view.mapper.ts`, studio plan §3.4, issue #94's 5a), off the same
104
+ * cached snapshot `take-snapshot`/`inspect-page` already use — call
105
+ * `take-snapshot` first, same as `inspect-page`. Only a JSON/YAML/XML
106
+ * snapshot has one; PDF, workbook and deck documents get their own canvases
107
+ * (5b/5c/5d).
108
+ */
109
+ export declare const documentTreeCommandSchema: z.ZodObject<{
110
+ type: z.ZodLiteral<"document-tree">;
111
+ recipeId: z.ZodString;
112
+ path: z.ZodString;
113
+ }, z.core.$strip>;
114
+ /**
115
+ * The PDF canvas's cells and rows (`document-view`'s `pdf-view.mapper.ts`,
116
+ * studio plan §3.4, issue #94's 5b), off the same cached snapshot
117
+ * `take-snapshot`/`document-tree` already use — call `take-snapshot` first.
118
+ * Only a PDF snapshot has one; JSON/YAML/XML get the tree canvas (5a), the
119
+ * workbook and deck their own canvases (5c/5d).
120
+ */
121
+ export declare const pdfViewCommandSchema: z.ZodObject<{
122
+ type: z.ZodLiteral<"pdf-view">;
123
+ recipeId: z.ZodString;
124
+ path: z.ZodString;
125
+ }, z.core.$strip>;
126
+ /** A `table` extract's options, as the studio's PDF canvas picks build them — mirrors `document-view/table-preview.use-case.ts`'s `TablePreviewOptions`. */
127
+ export declare const tablePreviewOptionsSchema: z.ZodObject<{
128
+ header: z.ZodString;
129
+ until: z.ZodOptional<z.ZodString>;
130
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
131
+ align: z.ZodOptional<z.ZodEnum<{
132
+ auto: "auto";
133
+ top: "top";
134
+ center: "center";
135
+ bottom: "bottom";
136
+ }>>;
137
+ }, z.core.$strip>;
138
+ /**
139
+ * The live preview of a `table` extract's options against a cached PDF
140
+ * snapshot (`document-view`'s `table-preview.use-case.ts`, studio plan §3.4,
141
+ * issue #94's 5b): the matched rows to highlight on the page, recomputed as
142
+ * the person edits the options — call `take-snapshot` first.
143
+ */
144
+ export declare const tablePreviewCommandSchema: z.ZodObject<{
145
+ type: z.ZodLiteral<"table-preview">;
146
+ recipeId: z.ZodString;
147
+ path: z.ZodString;
148
+ options: z.ZodObject<{
149
+ header: z.ZodString;
150
+ until: z.ZodOptional<z.ZodString>;
151
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
152
+ align: z.ZodOptional<z.ZodEnum<{
153
+ auto: "auto";
154
+ top: "top";
155
+ center: "center";
156
+ bottom: "bottom";
157
+ }>>;
158
+ }, z.core.$strip>;
159
+ }, z.core.$strip>;
160
+ /**
161
+ * The grid canvas's sheets and cells (`document-view`'s `workbook-view.mapper.ts`,
162
+ * studio plan §3.4, issue #94's 5c), off the same cached snapshot
163
+ * `take-snapshot`/`document-tree` already use — call `take-snapshot` first.
164
+ * Only a CSV/spreadsheet snapshot has one; JSON/YAML/XML get the tree canvas
165
+ * (5a), PDF the PDF canvas (5b), the deck its own canvas (5d).
166
+ *
167
+ * `delimiter`/`encoding` override a CSV's auto-detected format (issue #94's
168
+ * 5c: "the detected delimiter and encoding shown and overridable"); the
169
+ * server re-reads the file with the override applied and keeps it cached, so
170
+ * a later `grid-preview` sees the same reading. Both are rejected on a
171
+ * spreadsheet snapshot (there is nothing to detect).
172
+ */
173
+ export declare const gridViewCommandSchema: z.ZodObject<{
174
+ type: z.ZodLiteral<"grid-view">;
175
+ recipeId: z.ZodString;
176
+ path: z.ZodString;
177
+ delimiter: z.ZodOptional<z.ZodString>;
178
+ encoding: z.ZodOptional<z.ZodString>;
179
+ }, z.core.$strip>;
180
+ /** A `table` extract's options for a workbook, as the studio's grid canvas picks build them — mirrors `document-view/table-preview.use-case.ts`'s `GridTablePreviewOptions`. */
181
+ export declare const gridPreviewOptionsSchema: z.ZodObject<{
182
+ sheet: z.ZodOptional<z.ZodString>;
183
+ header: z.ZodString;
184
+ until: z.ZodOptional<z.ZodString>;
185
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
186
+ headerRows: z.ZodOptional<z.ZodInt>;
187
+ fillDown: z.ZodOptional<z.ZodArray<z.ZodString>>;
188
+ includeHidden: z.ZodOptional<z.ZodBoolean>;
189
+ }, z.core.$strip>;
190
+ /**
191
+ * The live preview of a `table` extract's options against a cached CSV/
192
+ * spreadsheet snapshot (`document-view`'s `table-preview.use-case.ts`'s
193
+ * `previewGridTable`, studio plan §3.4, issue #94's 5c): the matched
194
+ * table(s), recomputed as the person edits the options — call `take-snapshot`
195
+ * and `grid-view` first.
196
+ */
197
+ export declare const gridPreviewCommandSchema: z.ZodObject<{
198
+ type: z.ZodLiteral<"grid-preview">;
199
+ recipeId: z.ZodString;
200
+ path: z.ZodString;
201
+ options: z.ZodObject<{
202
+ sheet: z.ZodOptional<z.ZodString>;
203
+ header: z.ZodString;
204
+ until: z.ZodOptional<z.ZodString>;
205
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
206
+ headerRows: z.ZodOptional<z.ZodInt>;
207
+ fillDown: z.ZodOptional<z.ZodArray<z.ZodString>>;
208
+ includeHidden: z.ZodOptional<z.ZodBoolean>;
209
+ }, z.core.$strip>;
210
+ }, z.core.$strip>;
211
+ /**
212
+ * The deck canvas's slides, shapes, tables, charts and notes for a deck
213
+ * (PowerPoint) snapshot (`document-view`'s `deck-view.mapper.ts`, studio plan
214
+ * §3.4, issue #94's 5d), off the same cached snapshot
215
+ * `take-snapshot`/`document-tree` already use — call `take-snapshot` first.
216
+ * Only a `.pptx` snapshot has one; JSON/YAML/XML get the tree canvas (5a),
217
+ * PDF the PDF canvas (5b), the workbook the grid canvas (5c).
218
+ */
219
+ export declare const deckViewCommandSchema: z.ZodObject<{
220
+ type: z.ZodLiteral<"deck-view">;
221
+ recipeId: z.ZodString;
222
+ path: z.ZodString;
223
+ }, z.core.$strip>;
224
+ /** A `table` extract's options for a deck, as the studio's deck canvas picks build them — mirrors `document-view/table-preview.use-case.ts`'s `DeckTablePreviewOptions`. */
225
+ export declare const deckPreviewOptionsSchema: z.ZodObject<{
226
+ slide: z.ZodOptional<z.ZodString>;
227
+ shapes: z.ZodOptional<z.ZodBoolean>;
228
+ align: z.ZodOptional<z.ZodEnum<{
229
+ auto: "auto";
230
+ top: "top";
231
+ center: "center";
232
+ bottom: "bottom";
233
+ }>>;
234
+ header: z.ZodString;
235
+ until: z.ZodOptional<z.ZodString>;
236
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
237
+ headerRows: z.ZodOptional<z.ZodInt>;
238
+ fillDown: z.ZodOptional<z.ZodArray<z.ZodString>>;
239
+ includeHidden: z.ZodOptional<z.ZodBoolean>;
240
+ }, z.core.$strip>;
241
+ /**
242
+ * The live preview of a `table` extract's options against a cached deck
243
+ * snapshot (`document-view`'s `table-preview.use-case.ts`'s `previewDeckTable`,
244
+ * studio plan §3.4, issue #94's 5d): the matched table(s), recomputed as the
245
+ * person edits the options — call `take-snapshot` and `deck-view` first.
246
+ */
247
+ export declare const deckPreviewCommandSchema: z.ZodObject<{
248
+ type: z.ZodLiteral<"deck-preview">;
249
+ recipeId: z.ZodString;
250
+ path: z.ZodString;
251
+ options: z.ZodObject<{
252
+ slide: z.ZodOptional<z.ZodString>;
253
+ shapes: z.ZodOptional<z.ZodBoolean>;
254
+ align: z.ZodOptional<z.ZodEnum<{
255
+ auto: "auto";
256
+ top: "top";
257
+ center: "center";
258
+ bottom: "bottom";
259
+ }>>;
260
+ header: z.ZodString;
261
+ until: z.ZodOptional<z.ZodString>;
262
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
263
+ headerRows: z.ZodOptional<z.ZodInt>;
264
+ fillDown: z.ZodOptional<z.ZodArray<z.ZodString>>;
265
+ includeHidden: z.ZodOptional<z.ZodBoolean>;
266
+ }, z.core.$strip>;
267
+ }, z.core.$strip>;
268
+ /** A missing value in an emitted record, by its position in the last sample run's records (the order they streamed in, matching the UI's own `records` list). */
269
+ export declare const missingWhyTargetSchema: z.ZodObject<{
270
+ kind: z.ZodLiteral<"missing">;
271
+ recipeId: z.ZodString;
272
+ recordIndex: z.ZodInt;
273
+ field: z.ZodString;
274
+ }, z.core.$strip>;
275
+ /** A rejected record, by its position in the last sample run's `rejectedRecords`. */
276
+ export declare const rejectedWhyTargetSchema: z.ZodObject<{
277
+ kind: z.ZodLiteral<"rejected">;
278
+ recipeId: z.ZodString;
279
+ rejectedIndex: z.ZodInt;
280
+ }, z.core.$strip>;
281
+ export declare const whyTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
282
+ kind: z.ZodLiteral<"missing">;
283
+ recipeId: z.ZodString;
284
+ recordIndex: z.ZodInt;
285
+ field: z.ZodString;
286
+ }, z.core.$strip>, z.ZodObject<{
287
+ kind: z.ZodLiteral<"rejected">;
288
+ recipeId: z.ZodString;
289
+ rejectedIndex: z.ZodInt;
290
+ }, z.core.$strip>], "kind">;
291
+ /**
292
+ * Explains one missing or rejected value from the recipe's last sample run
293
+ * (`explain-why.use-case.ts`, issue #92's Why? tab): the mapping trace and
294
+ * scope snapshot `run-sample` already kept, the step that bound the value's
295
+ * source id and whether it ran, was skipped or found nothing, and the
296
+ * missing-value policy that applied.
297
+ */
298
+ export declare const explainWhyCommandSchema: z.ZodObject<{
299
+ type: z.ZodLiteral<"explain-why">;
300
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
301
+ kind: z.ZodLiteral<"missing">;
302
+ recipeId: z.ZodString;
303
+ recordIndex: z.ZodInt;
304
+ field: z.ZodString;
305
+ }, z.core.$strip>, z.ZodObject<{
306
+ kind: z.ZodLiteral<"rejected">;
307
+ recipeId: z.ZodString;
308
+ rejectedIndex: z.ZodInt;
309
+ }, z.core.$strip>], "kind">;
310
+ }, z.core.$strip>;
311
+ /**
312
+ * Opens the studio's own headed browser window and starts recording user
313
+ * actions on it (issue #95, phase 6): clicks, fills, selects, key presses
314
+ * and scrolls stream back as `recording-card` events, each already a
315
+ * verified step. `recipeId`'s start point is where the window opens.
316
+ */
317
+ export declare const startRecordingCommandSchema: z.ZodObject<{
318
+ type: z.ZodLiteral<"start-recording">;
319
+ recipeId: z.ZodString;
320
+ }, z.core.$strip>;
321
+ /**
322
+ * Closes the recording window, if one is open; a no-op otherwise. Answers
323
+ * with every step recorded, in order, so the caller can offer "make this
324
+ * the login" (writes them under `session.bootstrap`) or "keep as steps"
325
+ * (appends them to the recipe's own `steps`) without a second round trip.
326
+ */
327
+ export declare const stopRecordingCommandSchema: z.ZodObject<{
328
+ type: z.ZodLiteral<"stop-recording">;
329
+ }, z.core.$strip>;
80
330
  export declare const studioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
81
331
  type: z.ZodLiteral<"open-workspace">;
82
332
  folder: z.ZodString;
@@ -115,6 +365,97 @@ export declare const studioCommandSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
115
365
  recipeId: z.ZodString;
116
366
  path: z.ZodString;
117
367
  nodeIds: z.ZodUnion<readonly [z.ZodTuple<[z.ZodString], null>, z.ZodTuple<[z.ZodString, z.ZodString], null>]>;
368
+ }, z.core.$strip>, z.ZodObject<{
369
+ type: z.ZodLiteral<"explain-why">;
370
+ target: z.ZodDiscriminatedUnion<[z.ZodObject<{
371
+ kind: z.ZodLiteral<"missing">;
372
+ recipeId: z.ZodString;
373
+ recordIndex: z.ZodInt;
374
+ field: z.ZodString;
375
+ }, z.core.$strip>, z.ZodObject<{
376
+ kind: z.ZodLiteral<"rejected">;
377
+ recipeId: z.ZodString;
378
+ rejectedIndex: z.ZodInt;
379
+ }, z.core.$strip>], "kind">;
380
+ }, z.core.$strip>, z.ZodObject<{
381
+ type: z.ZodLiteral<"inspect-page">;
382
+ recipeId: z.ZodString;
383
+ path: z.ZodString;
384
+ }, z.core.$strip>, z.ZodObject<{
385
+ type: z.ZodLiteral<"responses-seen">;
386
+ recipeId: z.ZodString;
387
+ path: z.ZodString;
388
+ }, z.core.$strip>, z.ZodObject<{
389
+ type: z.ZodLiteral<"document-tree">;
390
+ recipeId: z.ZodString;
391
+ path: z.ZodString;
392
+ }, z.core.$strip>, z.ZodObject<{
393
+ type: z.ZodLiteral<"pdf-view">;
394
+ recipeId: z.ZodString;
395
+ path: z.ZodString;
396
+ }, z.core.$strip>, z.ZodObject<{
397
+ type: z.ZodLiteral<"table-preview">;
398
+ recipeId: z.ZodString;
399
+ path: z.ZodString;
400
+ options: z.ZodObject<{
401
+ header: z.ZodString;
402
+ until: z.ZodOptional<z.ZodString>;
403
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
404
+ align: z.ZodOptional<z.ZodEnum<{
405
+ auto: "auto";
406
+ top: "top";
407
+ center: "center";
408
+ bottom: "bottom";
409
+ }>>;
410
+ }, z.core.$strip>;
411
+ }, z.core.$strip>, z.ZodObject<{
412
+ type: z.ZodLiteral<"grid-view">;
413
+ recipeId: z.ZodString;
414
+ path: z.ZodString;
415
+ delimiter: z.ZodOptional<z.ZodString>;
416
+ encoding: z.ZodOptional<z.ZodString>;
417
+ }, z.core.$strip>, z.ZodObject<{
418
+ type: z.ZodLiteral<"grid-preview">;
419
+ recipeId: z.ZodString;
420
+ path: z.ZodString;
421
+ options: z.ZodObject<{
422
+ sheet: z.ZodOptional<z.ZodString>;
423
+ header: z.ZodString;
424
+ until: z.ZodOptional<z.ZodString>;
425
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
426
+ headerRows: z.ZodOptional<z.ZodInt>;
427
+ fillDown: z.ZodOptional<z.ZodArray<z.ZodString>>;
428
+ includeHidden: z.ZodOptional<z.ZodBoolean>;
429
+ }, z.core.$strip>;
430
+ }, z.core.$strip>, z.ZodObject<{
431
+ type: z.ZodLiteral<"deck-view">;
432
+ recipeId: z.ZodString;
433
+ path: z.ZodString;
434
+ }, z.core.$strip>, z.ZodObject<{
435
+ type: z.ZodLiteral<"deck-preview">;
436
+ recipeId: z.ZodString;
437
+ path: z.ZodString;
438
+ options: z.ZodObject<{
439
+ slide: z.ZodOptional<z.ZodString>;
440
+ shapes: z.ZodOptional<z.ZodBoolean>;
441
+ align: z.ZodOptional<z.ZodEnum<{
442
+ auto: "auto";
443
+ top: "top";
444
+ center: "center";
445
+ bottom: "bottom";
446
+ }>>;
447
+ header: z.ZodString;
448
+ until: z.ZodOptional<z.ZodString>;
449
+ columns: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
450
+ headerRows: z.ZodOptional<z.ZodInt>;
451
+ fillDown: z.ZodOptional<z.ZodArray<z.ZodString>>;
452
+ includeHidden: z.ZodOptional<z.ZodBoolean>;
453
+ }, z.core.$strip>;
454
+ }, z.core.$strip>, z.ZodObject<{
455
+ type: z.ZodLiteral<"start-recording">;
456
+ recipeId: z.ZodString;
457
+ }, z.core.$strip>, z.ZodObject<{
458
+ type: z.ZodLiteral<"stop-recording">;
118
459
  }, z.core.$strip>], "type">;
119
460
  export type SampleBudget = z.infer<typeof sampleBudgetSchema>;
120
461
  export type OpenWorkspaceCommand = z.infer<typeof openWorkspaceCommandSchema>;
@@ -126,6 +467,24 @@ export type SaveOutlineCommand = z.infer<typeof saveOutlineCommandSchema>;
126
467
  export type TakeSnapshotCommand = z.infer<typeof takeSnapshotCommandSchema>;
127
468
  export type VerifySelectorCommand = z.infer<typeof verifySelectorCommandSchema>;
128
469
  export type InferSelectorCommand = z.infer<typeof inferSelectorCommandSchema>;
470
+ export type InspectPageCommand = z.infer<typeof inspectPageCommandSchema>;
471
+ export type ResponsesSeenCommand = z.infer<typeof responsesSeenCommandSchema>;
472
+ export type DocumentTreeCommand = z.infer<typeof documentTreeCommandSchema>;
473
+ export type PdfViewCommand = z.infer<typeof pdfViewCommandSchema>;
474
+ export type TablePreviewOptions = z.infer<typeof tablePreviewOptionsSchema>;
475
+ export type TablePreviewCommand = z.infer<typeof tablePreviewCommandSchema>;
476
+ export type GridViewCommand = z.infer<typeof gridViewCommandSchema>;
477
+ export type GridPreviewOptions = z.infer<typeof gridPreviewOptionsSchema>;
478
+ export type GridPreviewCommand = z.infer<typeof gridPreviewCommandSchema>;
479
+ export type DeckViewCommand = z.infer<typeof deckViewCommandSchema>;
480
+ export type DeckPreviewOptions = z.infer<typeof deckPreviewOptionsSchema>;
481
+ export type DeckPreviewCommand = z.infer<typeof deckPreviewCommandSchema>;
482
+ export type MissingWhyTarget = z.infer<typeof missingWhyTargetSchema>;
483
+ export type RejectedWhyTarget = z.infer<typeof rejectedWhyTargetSchema>;
484
+ export type WhyTarget = z.infer<typeof whyTargetSchema>;
485
+ export type ExplainWhyCommand = z.infer<typeof explainWhyCommandSchema>;
486
+ export type StartRecordingCommand = z.infer<typeof startRecordingCommandSchema>;
487
+ export type StopRecordingCommand = z.infer<typeof stopRecordingCommandSchema>;
129
488
  /** Every command the UI can send the server, over HTTP POST. */
130
489
  export type StudioCommand = z.infer<typeof studioCommandSchema>;
131
490
  //# sourceMappingURL=command.contract.d.ts.map
@@ -0,0 +1,28 @@
1
+ import { z } from 'zod';
2
+ /** One table matched by a `table` extract's options against a deck — mirrors `@opencraw/core`'s `DeckTable`. */
3
+ export declare const deckTablePreviewMatchSchema: z.ZodObject<{
4
+ slide: z.ZodNumber;
5
+ slideTitle: z.ZodString;
6
+ title: z.ZodString;
7
+ header: z.ZodArray<z.ZodString>;
8
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
9
+ }, z.core.$strip>;
10
+ /**
11
+ * What `deck-preview` answers with (studio plan §3.4, issue #94's 5d: the
12
+ * live preview): every matched table, or `error` when a pattern in the
13
+ * options does not compile — expected while the person is still typing it,
14
+ * not thrown.
15
+ */
16
+ export declare const deckTablePreviewViewSchema: z.ZodObject<{
17
+ matches: z.ZodArray<z.ZodObject<{
18
+ slide: z.ZodNumber;
19
+ slideTitle: z.ZodString;
20
+ title: z.ZodString;
21
+ header: z.ZodArray<z.ZodString>;
22
+ rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>>>;
23
+ }, z.core.$strip>>;
24
+ error: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strip>;
26
+ export type DeckTablePreviewMatchView = z.infer<typeof deckTablePreviewMatchSchema>;
27
+ export type DeckTablePreviewView = z.infer<typeof deckTablePreviewViewSchema>;
28
+ //# sourceMappingURL=deck-preview-view.contract.d.ts.map
@@ -0,0 +1,127 @@
1
+ import { z } from 'zod';
2
+ /** One text box on a slide, in points — mirrors `document-view/deck-view.mapper.ts`'s `DeckShapeView`, the wire shape for the UI (studio plan §3.4, issue #94's 5d). */
3
+ export declare const deckShapeViewSchema: z.ZodObject<{
4
+ x: z.ZodNumber;
5
+ y: z.ZodNumber;
6
+ width: z.ZodNumber;
7
+ height: z.ZodNumber;
8
+ text: z.ZodString;
9
+ placeholder: z.ZodOptional<z.ZodString>;
10
+ }, z.core.$strip>;
11
+ export declare const deckChartSeriesViewSchema: z.ZodObject<{
12
+ name: z.ZodString;
13
+ categories: z.ZodArray<z.ZodString>;
14
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
15
+ }, z.core.$strip>;
16
+ export declare const deckChartViewSchema: z.ZodObject<{
17
+ type: z.ZodString;
18
+ title: z.ZodOptional<z.ZodString>;
19
+ series: z.ZodArray<z.ZodObject<{
20
+ name: z.ZodString;
21
+ categories: z.ZodArray<z.ZodString>;
22
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
23
+ }, z.core.$strip>>;
24
+ }, z.core.$strip>;
25
+ export declare const deckSlideViewSchema: z.ZodObject<{
26
+ number: z.ZodNumber;
27
+ title: z.ZodOptional<z.ZodString>;
28
+ hidden: z.ZodBoolean;
29
+ shapes: z.ZodArray<z.ZodObject<{
30
+ x: z.ZodNumber;
31
+ y: z.ZodNumber;
32
+ width: z.ZodNumber;
33
+ height: z.ZodNumber;
34
+ text: z.ZodString;
35
+ placeholder: z.ZodOptional<z.ZodString>;
36
+ }, z.core.$strip>>;
37
+ shapeRows: z.ZodArray<z.ZodArray<z.ZodNumber>>;
38
+ tables: z.ZodArray<z.ZodObject<{
39
+ name: z.ZodString;
40
+ hidden: z.ZodBoolean;
41
+ hiddenRows: z.ZodArray<z.ZodNumber>;
42
+ columnCount: z.ZodNumber;
43
+ rows: z.ZodArray<z.ZodArray<z.ZodObject<{
44
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
45
+ type: z.ZodEnum<{
46
+ string: "string";
47
+ number: "number";
48
+ boolean: "boolean";
49
+ date: "date";
50
+ }>;
51
+ }, z.core.$strip>>>;
52
+ merges: z.ZodArray<z.ZodObject<{
53
+ ref: z.ZodString;
54
+ top: z.ZodNumber;
55
+ left: z.ZodNumber;
56
+ bottom: z.ZodNumber;
57
+ right: z.ZodNumber;
58
+ }, z.core.$strip>>;
59
+ }, z.core.$strip>>;
60
+ charts: z.ZodArray<z.ZodObject<{
61
+ type: z.ZodString;
62
+ title: z.ZodOptional<z.ZodString>;
63
+ series: z.ZodArray<z.ZodObject<{
64
+ name: z.ZodString;
65
+ categories: z.ZodArray<z.ZodString>;
66
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
67
+ }, z.core.$strip>>;
68
+ }, z.core.$strip>>;
69
+ notes: z.ZodString;
70
+ }, z.core.$strip>;
71
+ /** What `deck-view` answers with (studio plan §3.4, issue #94's 5d): the slide size in points and every slide's shapes, tables, charts and notes, for the deck canvas to draw and pick from. */
72
+ export declare const deckDocumentViewSchema: z.ZodObject<{
73
+ width: z.ZodNumber;
74
+ height: z.ZodNumber;
75
+ slides: z.ZodArray<z.ZodObject<{
76
+ number: z.ZodNumber;
77
+ title: z.ZodOptional<z.ZodString>;
78
+ hidden: z.ZodBoolean;
79
+ shapes: z.ZodArray<z.ZodObject<{
80
+ x: z.ZodNumber;
81
+ y: z.ZodNumber;
82
+ width: z.ZodNumber;
83
+ height: z.ZodNumber;
84
+ text: z.ZodString;
85
+ placeholder: z.ZodOptional<z.ZodString>;
86
+ }, z.core.$strip>>;
87
+ shapeRows: z.ZodArray<z.ZodArray<z.ZodNumber>>;
88
+ tables: z.ZodArray<z.ZodObject<{
89
+ name: z.ZodString;
90
+ hidden: z.ZodBoolean;
91
+ hiddenRows: z.ZodArray<z.ZodNumber>;
92
+ columnCount: z.ZodNumber;
93
+ rows: z.ZodArray<z.ZodArray<z.ZodObject<{
94
+ value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
95
+ type: z.ZodEnum<{
96
+ string: "string";
97
+ number: "number";
98
+ boolean: "boolean";
99
+ date: "date";
100
+ }>;
101
+ }, z.core.$strip>>>;
102
+ merges: z.ZodArray<z.ZodObject<{
103
+ ref: z.ZodString;
104
+ top: z.ZodNumber;
105
+ left: z.ZodNumber;
106
+ bottom: z.ZodNumber;
107
+ right: z.ZodNumber;
108
+ }, z.core.$strip>>;
109
+ }, z.core.$strip>>;
110
+ charts: z.ZodArray<z.ZodObject<{
111
+ type: z.ZodString;
112
+ title: z.ZodOptional<z.ZodString>;
113
+ series: z.ZodArray<z.ZodObject<{
114
+ name: z.ZodString;
115
+ categories: z.ZodArray<z.ZodString>;
116
+ values: z.ZodArray<z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
117
+ }, z.core.$strip>>;
118
+ }, z.core.$strip>>;
119
+ notes: z.ZodString;
120
+ }, z.core.$strip>>;
121
+ }, z.core.$strip>;
122
+ export type DeckShapeView = z.infer<typeof deckShapeViewSchema>;
123
+ export type DeckChartSeriesView = z.infer<typeof deckChartSeriesViewSchema>;
124
+ export type DeckChartView = z.infer<typeof deckChartViewSchema>;
125
+ export type DeckSlideView = z.infer<typeof deckSlideViewSchema>;
126
+ export type DeckDocumentView = z.infer<typeof deckDocumentViewSchema>;
127
+ //# sourceMappingURL=deck-view.contract.d.ts.map
@@ -0,0 +1,26 @@
1
+ import { z } from 'zod';
2
+ /** One row of the document tree — mirrors `document-view/tree-view.mapper.ts`'s `DocumentTreeNode`, the wire shape for the UI (studio plan §3.4, issue #94's 5a). */
3
+ export interface DocumentTreeNodeView {
4
+ id: string;
5
+ label: string;
6
+ valueType: 'object' | 'array' | 'string' | 'number' | 'boolean' | 'null' | 'element';
7
+ preview?: string;
8
+ jsonpath?: string;
9
+ xpath?: string;
10
+ listPath?: string;
11
+ listCount?: number;
12
+ attributes?: Record<string, string>;
13
+ children: DocumentTreeNodeView[];
14
+ }
15
+ export declare const documentTreeNodeViewSchema: z.ZodType<DocumentTreeNodeView>;
16
+ /** What `document-tree` answers with (studio plan §3.4, issue #94's 5a): the parsed JSON/XML document as a tree, and, for XML, the namespace prefixes a pick's `extract` can use in `namespaces`. */
17
+ export declare const documentTreeViewSchema: z.ZodObject<{
18
+ format: z.ZodEnum<{
19
+ json: "json";
20
+ xml: "xml";
21
+ }>;
22
+ root: z.ZodType<DocumentTreeNodeView, unknown, z.core.$ZodTypeInternals<DocumentTreeNodeView, unknown>>;
23
+ namespaces: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
24
+ }, z.core.$strip>;
25
+ export type DocumentTreeView = z.infer<typeof documentTreeViewSchema>;
26
+ //# sourceMappingURL=document-tree-view.contract.d.ts.map