markform 0.1.10 → 0.1.12

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.
@@ -494,25 +494,25 @@ interface SetNumberPatch {
494
494
  interface SetStringListPatch {
495
495
  op: 'set_string_list';
496
496
  fieldId: Id;
497
- items: string[];
497
+ value: string[];
498
498
  }
499
499
  /** Set checkboxes field value (merges with existing) */
500
500
  interface SetCheckboxesPatch {
501
501
  op: 'set_checkboxes';
502
502
  fieldId: Id;
503
- values: Record<OptionId, CheckboxValue>;
503
+ value: Record<OptionId, CheckboxValue>;
504
504
  }
505
505
  /** Set single-select field value */
506
506
  interface SetSingleSelectPatch {
507
507
  op: 'set_single_select';
508
508
  fieldId: Id;
509
- selected: OptionId | null;
509
+ value: OptionId | null;
510
510
  }
511
511
  /** Set multi-select field value */
512
512
  interface SetMultiSelectPatch {
513
513
  op: 'set_multi_select';
514
514
  fieldId: Id;
515
- selected: OptionId[];
515
+ value: OptionId[];
516
516
  }
517
517
  /** Set URL field value */
518
518
  interface SetUrlPatch {
@@ -524,7 +524,7 @@ interface SetUrlPatch {
524
524
  interface SetUrlListPatch {
525
525
  op: 'set_url_list';
526
526
  fieldId: Id;
527
- items: string[];
527
+ value: string[];
528
528
  }
529
529
  /** Set date field value */
530
530
  interface SetDatePatch {
@@ -553,7 +553,7 @@ type TableRowPatch = Record<Id, CellValue | null | string>;
553
553
  interface SetTablePatch {
554
554
  op: 'set_table';
555
555
  fieldId: Id;
556
- rows: TableRowPatch[];
556
+ value: TableRowPatch[];
557
557
  }
558
558
  /** Clear field value */
559
559
  interface ClearFieldPatch {
@@ -2637,12 +2637,12 @@ declare const SetNumberPatchSchema: z.ZodObject<{
2637
2637
  declare const SetStringListPatchSchema: z.ZodObject<{
2638
2638
  op: z.ZodLiteral<"set_string_list">;
2639
2639
  fieldId: z.ZodString;
2640
- items: z.ZodArray<z.ZodString>;
2640
+ value: z.ZodArray<z.ZodString>;
2641
2641
  }, z.core.$strip>;
2642
2642
  declare const SetCheckboxesPatchSchema: z.ZodObject<{
2643
2643
  op: z.ZodLiteral<"set_checkboxes">;
2644
2644
  fieldId: z.ZodString;
2645
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
2645
+ value: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
2646
2646
  todo: "todo";
2647
2647
  done: "done";
2648
2648
  incomplete: "incomplete";
@@ -2657,12 +2657,12 @@ declare const SetCheckboxesPatchSchema: z.ZodObject<{
2657
2657
  declare const SetSingleSelectPatchSchema: z.ZodObject<{
2658
2658
  op: z.ZodLiteral<"set_single_select">;
2659
2659
  fieldId: z.ZodString;
2660
- selected: z.ZodNullable<z.ZodString>;
2660
+ value: z.ZodNullable<z.ZodString>;
2661
2661
  }, z.core.$strip>;
2662
2662
  declare const SetMultiSelectPatchSchema: z.ZodObject<{
2663
2663
  op: z.ZodLiteral<"set_multi_select">;
2664
2664
  fieldId: z.ZodString;
2665
- selected: z.ZodArray<z.ZodString>;
2665
+ value: z.ZodArray<z.ZodString>;
2666
2666
  }, z.core.$strip>;
2667
2667
  declare const SetUrlPatchSchema: z.ZodObject<{
2668
2668
  op: z.ZodLiteral<"set_url">;
@@ -2672,7 +2672,7 @@ declare const SetUrlPatchSchema: z.ZodObject<{
2672
2672
  declare const SetUrlListPatchSchema: z.ZodObject<{
2673
2673
  op: z.ZodLiteral<"set_url_list">;
2674
2674
  fieldId: z.ZodString;
2675
- items: z.ZodArray<z.ZodString>;
2675
+ value: z.ZodArray<z.ZodString>;
2676
2676
  }, z.core.$strip>;
2677
2677
  declare const SetDatePatchSchema: z.ZodObject<{
2678
2678
  op: z.ZodLiteral<"set_date">;
@@ -2688,7 +2688,7 @@ declare const SetYearPatchSchema: z.ZodObject<{
2688
2688
  declare const SetTablePatchSchema: z.ZodObject<{
2689
2689
  op: z.ZodLiteral<"set_table">;
2690
2690
  fieldId: z.ZodString;
2691
- rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
2691
+ value: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
2692
2692
  }, z.core.$strip>;
2693
2693
  declare const ClearFieldPatchSchema: z.ZodObject<{
2694
2694
  op: z.ZodLiteral<"clear_field">;
@@ -2705,11 +2705,11 @@ declare const PatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2705
2705
  }, z.core.$strip>, z.ZodObject<{
2706
2706
  op: z.ZodLiteral<"set_string_list">;
2707
2707
  fieldId: z.ZodString;
2708
- items: z.ZodArray<z.ZodString>;
2708
+ value: z.ZodArray<z.ZodString>;
2709
2709
  }, z.core.$strip>, z.ZodObject<{
2710
2710
  op: z.ZodLiteral<"set_checkboxes">;
2711
2711
  fieldId: z.ZodString;
2712
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
2712
+ value: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
2713
2713
  todo: "todo";
2714
2714
  done: "done";
2715
2715
  incomplete: "incomplete";
@@ -2723,11 +2723,11 @@ declare const PatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2723
2723
  }, z.core.$strip>, z.ZodObject<{
2724
2724
  op: z.ZodLiteral<"set_single_select">;
2725
2725
  fieldId: z.ZodString;
2726
- selected: z.ZodNullable<z.ZodString>;
2726
+ value: z.ZodNullable<z.ZodString>;
2727
2727
  }, z.core.$strip>, z.ZodObject<{
2728
2728
  op: z.ZodLiteral<"set_multi_select">;
2729
2729
  fieldId: z.ZodString;
2730
- selected: z.ZodArray<z.ZodString>;
2730
+ value: z.ZodArray<z.ZodString>;
2731
2731
  }, z.core.$strip>, z.ZodObject<{
2732
2732
  op: z.ZodLiteral<"set_url">;
2733
2733
  fieldId: z.ZodString;
@@ -2735,7 +2735,7 @@ declare const PatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2735
2735
  }, z.core.$strip>, z.ZodObject<{
2736
2736
  op: z.ZodLiteral<"set_url_list">;
2737
2737
  fieldId: z.ZodString;
2738
- items: z.ZodArray<z.ZodString>;
2738
+ value: z.ZodArray<z.ZodString>;
2739
2739
  }, z.core.$strip>, z.ZodObject<{
2740
2740
  op: z.ZodLiteral<"set_date">;
2741
2741
  fieldId: z.ZodString;
@@ -2747,7 +2747,7 @@ declare const PatchSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
2747
2747
  }, z.core.$strip>, z.ZodObject<{
2748
2748
  op: z.ZodLiteral<"set_table">;
2749
2749
  fieldId: z.ZodString;
2750
- rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
2750
+ value: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
2751
2751
  }, z.core.$strip>, z.ZodObject<{
2752
2752
  op: z.ZodLiteral<"clear_field">;
2753
2753
  fieldId: z.ZodString;
@@ -3030,11 +3030,11 @@ declare const SessionTurnSchema: z.ZodObject<{
3030
3030
  }, z.core.$strip>, z.ZodObject<{
3031
3031
  op: z.ZodLiteral<"set_string_list">;
3032
3032
  fieldId: z.ZodString;
3033
- items: z.ZodArray<z.ZodString>;
3033
+ value: z.ZodArray<z.ZodString>;
3034
3034
  }, z.core.$strip>, z.ZodObject<{
3035
3035
  op: z.ZodLiteral<"set_checkboxes">;
3036
3036
  fieldId: z.ZodString;
3037
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
3037
+ value: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
3038
3038
  todo: "todo";
3039
3039
  done: "done";
3040
3040
  incomplete: "incomplete";
@@ -3048,11 +3048,11 @@ declare const SessionTurnSchema: z.ZodObject<{
3048
3048
  }, z.core.$strip>, z.ZodObject<{
3049
3049
  op: z.ZodLiteral<"set_single_select">;
3050
3050
  fieldId: z.ZodString;
3051
- selected: z.ZodNullable<z.ZodString>;
3051
+ value: z.ZodNullable<z.ZodString>;
3052
3052
  }, z.core.$strip>, z.ZodObject<{
3053
3053
  op: z.ZodLiteral<"set_multi_select">;
3054
3054
  fieldId: z.ZodString;
3055
- selected: z.ZodArray<z.ZodString>;
3055
+ value: z.ZodArray<z.ZodString>;
3056
3056
  }, z.core.$strip>, z.ZodObject<{
3057
3057
  op: z.ZodLiteral<"set_url">;
3058
3058
  fieldId: z.ZodString;
@@ -3060,7 +3060,7 @@ declare const SessionTurnSchema: z.ZodObject<{
3060
3060
  }, z.core.$strip>, z.ZodObject<{
3061
3061
  op: z.ZodLiteral<"set_url_list">;
3062
3062
  fieldId: z.ZodString;
3063
- items: z.ZodArray<z.ZodString>;
3063
+ value: z.ZodArray<z.ZodString>;
3064
3064
  }, z.core.$strip>, z.ZodObject<{
3065
3065
  op: z.ZodLiteral<"set_date">;
3066
3066
  fieldId: z.ZodString;
@@ -3072,7 +3072,7 @@ declare const SessionTurnSchema: z.ZodObject<{
3072
3072
  }, z.core.$strip>, z.ZodObject<{
3073
3073
  op: z.ZodLiteral<"set_table">;
3074
3074
  fieldId: z.ZodString;
3075
- rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
3075
+ value: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
3076
3076
  }, z.core.$strip>, z.ZodObject<{
3077
3077
  op: z.ZodLiteral<"clear_field">;
3078
3078
  fieldId: z.ZodString;
@@ -3224,11 +3224,11 @@ declare const SessionTranscriptSchema: z.ZodObject<{
3224
3224
  }, z.core.$strip>, z.ZodObject<{
3225
3225
  op: z.ZodLiteral<"set_string_list">;
3226
3226
  fieldId: z.ZodString;
3227
- items: z.ZodArray<z.ZodString>;
3227
+ value: z.ZodArray<z.ZodString>;
3228
3228
  }, z.core.$strip>, z.ZodObject<{
3229
3229
  op: z.ZodLiteral<"set_checkboxes">;
3230
3230
  fieldId: z.ZodString;
3231
- values: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
3231
+ value: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodEnum<{
3232
3232
  todo: "todo";
3233
3233
  done: "done";
3234
3234
  incomplete: "incomplete";
@@ -3242,11 +3242,11 @@ declare const SessionTranscriptSchema: z.ZodObject<{
3242
3242
  }, z.core.$strip>, z.ZodObject<{
3243
3243
  op: z.ZodLiteral<"set_single_select">;
3244
3244
  fieldId: z.ZodString;
3245
- selected: z.ZodNullable<z.ZodString>;
3245
+ value: z.ZodNullable<z.ZodString>;
3246
3246
  }, z.core.$strip>, z.ZodObject<{
3247
3247
  op: z.ZodLiteral<"set_multi_select">;
3248
3248
  fieldId: z.ZodString;
3249
- selected: z.ZodArray<z.ZodString>;
3249
+ value: z.ZodArray<z.ZodString>;
3250
3250
  }, z.core.$strip>, z.ZodObject<{
3251
3251
  op: z.ZodLiteral<"set_url">;
3252
3252
  fieldId: z.ZodString;
@@ -3254,7 +3254,7 @@ declare const SessionTranscriptSchema: z.ZodObject<{
3254
3254
  }, z.core.$strip>, z.ZodObject<{
3255
3255
  op: z.ZodLiteral<"set_url_list">;
3256
3256
  fieldId: z.ZodString;
3257
- items: z.ZodArray<z.ZodString>;
3257
+ value: z.ZodArray<z.ZodString>;
3258
3258
  }, z.core.$strip>, z.ZodObject<{
3259
3259
  op: z.ZodLiteral<"set_date">;
3260
3260
  fieldId: z.ZodString;
@@ -3266,7 +3266,7 @@ declare const SessionTranscriptSchema: z.ZodObject<{
3266
3266
  }, z.core.$strip>, z.ZodObject<{
3267
3267
  op: z.ZodLiteral<"set_table">;
3268
3268
  fieldId: z.ZodString;
3269
- rows: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
3269
+ value: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>, z.ZodNull, z.ZodString]>>>;
3270
3270
  }, z.core.$strip>, z.ZodObject<{
3271
3271
  op: z.ZodLiteral<"clear_field">;
3272
3272
  fieldId: z.ZodString;
@@ -475,22 +475,22 @@ const SetNumberPatchSchema = z.object({
475
475
  const SetStringListPatchSchema = z.object({
476
476
  op: z.literal("set_string_list"),
477
477
  fieldId: IdSchema,
478
- items: z.array(z.string())
478
+ value: z.array(z.string())
479
479
  });
480
480
  const SetCheckboxesPatchSchema = z.object({
481
481
  op: z.literal("set_checkboxes"),
482
482
  fieldId: IdSchema,
483
- values: z.record(OptionIdSchema, CheckboxValueSchema)
483
+ value: z.record(OptionIdSchema, CheckboxValueSchema)
484
484
  });
485
485
  const SetSingleSelectPatchSchema = z.object({
486
486
  op: z.literal("set_single_select"),
487
487
  fieldId: IdSchema,
488
- selected: OptionIdSchema.nullable()
488
+ value: OptionIdSchema.nullable()
489
489
  });
490
490
  const SetMultiSelectPatchSchema = z.object({
491
491
  op: z.literal("set_multi_select"),
492
492
  fieldId: IdSchema,
493
- selected: z.array(OptionIdSchema)
493
+ value: z.array(OptionIdSchema)
494
494
  });
495
495
  const SetUrlPatchSchema = z.object({
496
496
  op: z.literal("set_url"),
@@ -500,7 +500,7 @@ const SetUrlPatchSchema = z.object({
500
500
  const SetUrlListPatchSchema = z.object({
501
501
  op: z.literal("set_url_list"),
502
502
  fieldId: IdSchema,
503
- items: z.array(z.string())
503
+ value: z.array(z.string())
504
504
  });
505
505
  const SetDatePatchSchema = z.object({
506
506
  op: z.literal("set_date"),
@@ -516,7 +516,7 @@ const SetYearPatchSchema = z.object({
516
516
  const SetTablePatchSchema = z.object({
517
517
  op: z.literal("set_table"),
518
518
  fieldId: IdSchema,
519
- rows: z.array(TableRowPatchSchema)
519
+ value: z.array(TableRowPatchSchema)
520
520
  });
521
521
  const ClearFieldPatchSchema = z.object({
522
522
  op: z.literal("clear_field"),
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { $ as IdIndexEntry, $n as UrlListField, $t as SetMultiSelectPatch, A as ExplicitCheckboxValue, An as StepResultSchema, At as PatchSchema, B as FieldProgressSchema, Bn as StructureSummarySchema, Bt as RunModeSchema, C as DateFieldSchema, Cn as SingleSelectValue, Cr as WireToolResultSchema, Ct as Option, D as DocumentationBlockSchema, Dn as SourceRange, Dr as YearValueSchema, Dt as ParsedForm, E as DocumentationBlock, En as SourcePositionSchema, Er as YearValue, Et as OptionSchema, F as FieldGroupSchema, Fn as StringListValue, Ft as ProgressSummary, G as FieldValueSchema, Gn as TableRowPatch, Gt as SessionTurn, H as FieldResponseSchema, Hn as TableColumnSchema, Ht as SessionFinalSchema, I as FieldKind, In as StringListValueSchema, It as ProgressSummarySchema, J as FormSchemaSchema, Jn as TableRowResponseSchema, Jt as SessionTurnStats, K as FillMode, Kn as TableRowPatchSchema, Kt as SessionTurnContext, L as FieldKindSchema, Ln as StringValue, Lt as QualifiedColumnRef, M as Field, Mn as StringFieldSchema, Mt as ProgressCountsSchema, N as FieldBase, Nn as StringListField, Nt as ProgressState, O as DocumentationTag, On as SourceRangeSchema, Ot as Patch, P as FieldGroup, Pn as StringListFieldSchema, Pt as ProgressStateSchema, Q as Id, Qn as UrlFieldSchema, Qt as SetDatePatchSchema, R as FieldPriorityLevel, Rn as StringValueSchema, Rt as QualifiedOptionRef, S as DateField, Sn as SingleSelectFieldSchema, Sr as WireToolResult, St as NumberValueSchema, T as DateValueSchema, Tn as SourcePosition, Tr as YearFieldSchema, Tt as OptionIdSchema, U as FieldSchema, Un as TableField, Ut as SessionTranscript, V as FieldResponse, Vn as TableColumn, Vt as SessionFinal, W as FieldValue, Wn as TableFieldSchema, Wt as SessionTranscriptSchema, X as HarnessConfig, Xn as TableValueSchema, Xt as SetCheckboxesPatchSchema, Y as FrontmatterHarnessConfig, Yn as TableValue, Yt as SetCheckboxesPatch, Z as HarnessConfigSchema, Zn as UrlField, Zt as SetDatePatch, _ as CheckboxesValueSchema, _n as Severity, _r as WireResponseFormatSchema, _t as NodeType, a as ApprovalMode, an as SetStringListPatch, ar as ValidationIssue, at as IssueReason, b as ColumnTypeName, bn as SimpleCheckboxStateSchema, br as WireToolCall, bt as NumberFieldSchema, c as CheckboxMode, cn as SetStringPatchSchema, cr as ValidatorFn, ct as IssueScopeSchema, d as CheckboxProgressCountsSchema, dn as SetUrlListPatch, dr as ValidatorRegistry, dt as MultiCheckboxState, en as SetMultiSelectPatchSchema, er as UrlListFieldSchema, et as IdSchema, f as CheckboxValue, fn as SetUrlListPatchSchema, fr as WireFormat, ft as MultiCheckboxStateSchema, g as CheckboxesValue, gn as SetYearPatchSchema, gr as WireResponseFormat, gt as MultiSelectValueSchema, h as CheckboxesFieldSchema, hn as SetYearPatch, hr as WireRequestFormatSchema, ht as MultiSelectValue, i as ApplyResultSchema, in as SetSingleSelectPatchSchema, ir as UrlValueSchema, it as InspectResultSchema, j as ExplicitCheckboxValueSchema, jn as StringField, jt as ProgressCounts, k as DocumentationTagSchema, kn as StepResult, kt as PatchRejection, l as CheckboxModeSchema, ln as SetTablePatch, lr as ValidatorRef, lt as MarkformFrontmatter, m as CheckboxesField, mn as SetUrlPatchSchema, mr as WireRequestFormat, mt as MultiSelectFieldSchema, n as AnswerStateSchema, nn as SetNumberPatchSchema, nr as UrlListValueSchema, nt as InspectIssueSchema, o as CellResponse, on as SetStringListPatchSchema, or as ValidationIssueSchema, ot as IssueReasonSchema, p as CheckboxValueSchema, pn as SetUrlPatch, pr as WireFormatSchema, pt as MultiSelectField, q as FormSchema, qn as TableRowResponse, qt as SessionTurnSchema, r as ApplyResult, rn as SetSingleSelectPatch, rr as UrlValue, rt as InspectResult, s as CellResponseSchema, sn as SetStringPatch, sr as ValidatorContext, st as IssueScope, t as AnswerState, tn as SetNumberPatch, tr as UrlListValue, tt as InspectIssue, u as CheckboxProgressCounts, un as SetTablePatchSchema, ur as ValidatorRefSchema, ut as MarkformFrontmatterSchema, v as ClearFieldPatch, vn as SeveritySchema, vr as WireResponseStep, vt as Note, w as DateValue, wn as SingleSelectValueSchema, wr as YearField, wt as OptionId, x as ColumnTypeNameSchema, xn as SingleSelectField, xr as WireToolCallSchema, xt as NumberValue, y as ClearFieldPatchSchema, yn as SimpleCheckboxState, yr as WireResponseStepSchema, yt as NumberField, z as FieldProgress, zn as StructureSummary, zt as RunMode } from "./coreTypes-JCPm418M.mjs";
2
+ import { $ as IdIndexEntry, $n as UrlListField, $t as SetMultiSelectPatch, A as ExplicitCheckboxValue, An as StepResultSchema, At as PatchSchema, B as FieldProgressSchema, Bn as StructureSummarySchema, Bt as RunModeSchema, C as DateFieldSchema, Cn as SingleSelectValue, Cr as WireToolResultSchema, Ct as Option, D as DocumentationBlockSchema, Dn as SourceRange, Dr as YearValueSchema, Dt as ParsedForm, E as DocumentationBlock, En as SourcePositionSchema, Er as YearValue, Et as OptionSchema, F as FieldGroupSchema, Fn as StringListValue, Ft as ProgressSummary, G as FieldValueSchema, Gn as TableRowPatch, Gt as SessionTurn, H as FieldResponseSchema, Hn as TableColumnSchema, Ht as SessionFinalSchema, I as FieldKind, In as StringListValueSchema, It as ProgressSummarySchema, J as FormSchemaSchema, Jn as TableRowResponseSchema, Jt as SessionTurnStats, K as FillMode, Kn as TableRowPatchSchema, Kt as SessionTurnContext, L as FieldKindSchema, Ln as StringValue, Lt as QualifiedColumnRef, M as Field, Mn as StringFieldSchema, Mt as ProgressCountsSchema, N as FieldBase, Nn as StringListField, Nt as ProgressState, O as DocumentationTag, On as SourceRangeSchema, Ot as Patch, P as FieldGroup, Pn as StringListFieldSchema, Pt as ProgressStateSchema, Q as Id, Qn as UrlFieldSchema, Qt as SetDatePatchSchema, R as FieldPriorityLevel, Rn as StringValueSchema, Rt as QualifiedOptionRef, S as DateField, Sn as SingleSelectFieldSchema, Sr as WireToolResult, St as NumberValueSchema, T as DateValueSchema, Tn as SourcePosition, Tr as YearFieldSchema, Tt as OptionIdSchema, U as FieldSchema, Un as TableField, Ut as SessionTranscript, V as FieldResponse, Vn as TableColumn, Vt as SessionFinal, W as FieldValue, Wn as TableFieldSchema, Wt as SessionTranscriptSchema, X as HarnessConfig, Xn as TableValueSchema, Xt as SetCheckboxesPatchSchema, Y as FrontmatterHarnessConfig, Yn as TableValue, Yt as SetCheckboxesPatch, Z as HarnessConfigSchema, Zn as UrlField, Zt as SetDatePatch, _ as CheckboxesValueSchema, _n as Severity, _r as WireResponseFormatSchema, _t as NodeType, a as ApprovalMode, an as SetStringListPatch, ar as ValidationIssue, at as IssueReason, b as ColumnTypeName, bn as SimpleCheckboxStateSchema, br as WireToolCall, bt as NumberFieldSchema, c as CheckboxMode, cn as SetStringPatchSchema, cr as ValidatorFn, ct as IssueScopeSchema, d as CheckboxProgressCountsSchema, dn as SetUrlListPatch, dr as ValidatorRegistry, dt as MultiCheckboxState, en as SetMultiSelectPatchSchema, er as UrlListFieldSchema, et as IdSchema, f as CheckboxValue, fn as SetUrlListPatchSchema, fr as WireFormat, ft as MultiCheckboxStateSchema, g as CheckboxesValue, gn as SetYearPatchSchema, gr as WireResponseFormat, gt as MultiSelectValueSchema, h as CheckboxesFieldSchema, hn as SetYearPatch, hr as WireRequestFormatSchema, ht as MultiSelectValue, i as ApplyResultSchema, in as SetSingleSelectPatchSchema, ir as UrlValueSchema, it as InspectResultSchema, j as ExplicitCheckboxValueSchema, jn as StringField, jt as ProgressCounts, k as DocumentationTagSchema, kn as StepResult, kt as PatchRejection, l as CheckboxModeSchema, ln as SetTablePatch, lr as ValidatorRef, lt as MarkformFrontmatter, m as CheckboxesField, mn as SetUrlPatchSchema, mr as WireRequestFormat, mt as MultiSelectFieldSchema, n as AnswerStateSchema, nn as SetNumberPatchSchema, nr as UrlListValueSchema, nt as InspectIssueSchema, o as CellResponse, on as SetStringListPatchSchema, or as ValidationIssueSchema, ot as IssueReasonSchema, p as CheckboxValueSchema, pn as SetUrlPatch, pr as WireFormatSchema, pt as MultiSelectField, q as FormSchema, qn as TableRowResponse, qt as SessionTurnSchema, r as ApplyResult, rn as SetSingleSelectPatch, rr as UrlValue, rt as InspectResult, s as CellResponseSchema, sn as SetStringPatch, sr as ValidatorContext, st as IssueScope, t as AnswerState, tn as SetNumberPatch, tr as UrlListValue, tt as InspectIssue, u as CheckboxProgressCounts, un as SetTablePatchSchema, ur as ValidatorRefSchema, ut as MarkformFrontmatterSchema, v as ClearFieldPatch, vn as SeveritySchema, vr as WireResponseStep, vt as Note, w as DateValue, wn as SingleSelectValueSchema, wr as YearField, wt as OptionId, x as ColumnTypeNameSchema, xn as SingleSelectField, xr as WireToolCallSchema, xt as NumberValue, y as ClearFieldPatchSchema, yn as SimpleCheckboxState, yr as WireResponseStepSchema, yt as NumberField, z as FieldProgress, zn as StructureSummary, zt as RunMode } from "./coreTypes-Cw_cJsa5.mjs";
3
3
  import { LanguageModel, Tool } from "ai";
4
4
 
5
5
  //#region src/errors.d.ts
@@ -178,7 +178,20 @@ interface SerializeOptions {
178
178
  * @param opts - Serialization options
179
179
  * @returns The canonical markdown string
180
180
  */
181
- declare function serialize(form: ParsedForm, opts?: SerializeOptions): string;
181
+ declare function serializeForm(form: ParsedForm, opts?: SerializeOptions): string;
182
+ /**
183
+ * Serialize a form to filtered markdown for reports.
184
+ *
185
+ * Produces clean, readable markdown with filtered content based on `report` attribute:
186
+ * - Fields with report=false are excluded
187
+ * - Groups with report=false are excluded
188
+ * - Documentation blocks with report=false are excluded
189
+ * - Instructions blocks are excluded by default (unless report=true)
190
+ *
191
+ * @param form - The parsed form to serialize
192
+ * @returns Filtered plain markdown string suitable for sharing
193
+ */
194
+ declare function serializeReport(form: ParsedForm): string;
182
195
  //#endregion
183
196
  //#region src/engine/summaries.d.ts
184
197
  /**
@@ -347,6 +360,8 @@ interface JsonSchemaProperty {
347
360
  maxItems?: number;
348
361
  uniqueItems?: boolean;
349
362
  additionalProperties?: boolean | JsonSchemaProperty;
363
+ anyOf?: JsonSchemaProperty[];
364
+ oneOf?: JsonSchemaProperty[];
350
365
  'x-markform'?: MarkformFieldExtension;
351
366
  }
352
367
  /** Root JSON Schema object (does not extend JsonSchemaProperty to allow different x-markform type) */
@@ -835,8 +850,32 @@ interface FillOptions {
835
850
  inputContext?: InputContext;
836
851
  /** Additional context to append to the composed system prompt (never overrides) */
837
852
  systemPromptAddition?: string;
838
- /** Maximum harness turns (default: 100) */
839
- maxTurns?: number;
853
+ /**
854
+ * Maximum TOTAL turns across all calls combined.
855
+ * This is a safety limit to prevent runaway sessions.
856
+ * When resuming, pass the same value—the limit is enforced by comparing
857
+ * against `startingTurnNumber + turnsExecutedThisCall`.
858
+ *
859
+ * @default 100
860
+ */
861
+ maxTurnsTotal?: number;
862
+ /**
863
+ * Maximum turns to execute in THIS call only.
864
+ * When reached, returns with status `{ ok: false, reason: 'batch_limit' }`.
865
+ * Caller can resume by passing the returned form markdown back.
866
+ *
867
+ * Use for orchestrated environments with timeout constraints (e.g., Convex, Step Functions).
868
+ *
869
+ * @default undefined (no per-call limit - runs until complete or maxTurnsTotal)
870
+ */
871
+ maxTurnsThisCall?: number;
872
+ /**
873
+ * Starting turn number for progress tracking when resuming.
874
+ * Affects callback turn numbers and FillResult.turns calculation.
875
+ *
876
+ * @default 0
877
+ */
878
+ startingTurnNumber?: number;
840
879
  /** Maximum patches per turn (default: 20) */
841
880
  maxPatchesPerTurn?: number;
842
881
  /** Maximum issues to show per turn (default: 10) */
@@ -902,12 +941,18 @@ interface TurnProgress {
902
941
  }
903
942
  /**
904
943
  * Fill status indicating success or failure reason.
944
+ *
945
+ * - `ok: true` - Form completed successfully
946
+ * - `max_turns` - Hit overall maxTurnsTotal safety limit
947
+ * - `batch_limit` - Hit maxTurnsThisCall per-call limit (resume by calling again)
948
+ * - `cancelled` - Aborted via signal
949
+ * - `error` - Unexpected error
905
950
  */
906
951
  type FillStatus = {
907
952
  ok: true;
908
953
  } | {
909
954
  ok: false;
910
- reason: 'max_turns' | 'cancelled' | 'error';
955
+ reason: 'max_turns' | 'batch_limit' | 'cancelled' | 'error';
911
956
  message?: string;
912
957
  };
913
958
  /**
@@ -1118,4 +1163,4 @@ declare function validateResearchForm(form: ParsedForm): {
1118
1163
  /** Markform version (injected at build time). */
1119
1164
  declare const VERSION: string;
1120
1165
  //#endregion
1121
- export { type AgentResponse, type AnswerState, AnswerStateSchema, type ApplyResult, ApplyResultSchema, type CellResponse, CellResponseSchema, type CellScopeRef, type CheckboxMode, CheckboxModeSchema, type CheckboxProgressCounts, CheckboxProgressCountsSchema, type CheckboxValue, CheckboxValueSchema, type CheckboxesField, CheckboxesFieldSchema, type CheckboxesValue, CheckboxesValueSchema, type ClearFieldPatch, ClearFieldPatchSchema, type CoerceInputContextResult, type CoercionResult, type ColumnTypeName, ColumnTypeNameSchema, type ComputedSummaries, type DateField, DateFieldSchema, type DateValue, DateValueSchema, type DocumentationBlock, DocumentationBlockSchema, type DocumentationTag, DocumentationTagSchema, type ExplicitCheckboxValue, ExplicitCheckboxValueSchema, type Field, type FieldBase, type FieldGroup, FieldGroupSchema, type FieldKind, FieldKindSchema, type FieldProgress, FieldProgressSchema, type FieldResponse, FieldResponseSchema, FieldSchema, type FieldScopeRef, type FieldValue, FieldValueSchema, type FillCallbacks, type FillOptions, type FillResult, type FillStatus, FormHarness, type FormSchema, FormSchemaSchema, type FrontmatterHarnessConfig, type HarnessConfig, HarnessConfigSchema, type Id, type IdIndexEntry, IdSchema, type InputContext, type InspectIssue, InspectIssueSchema, type InspectOptions, type InspectResult, InspectResultSchema, type IssueReason, IssueReasonSchema, type IssueScope, IssueScopeSchema, type JsonSchemaDraft, type JsonSchemaOptions, type JsonSchemaResult, MarkformAbortError, MarkformConfigError, MarkformError, type MarkformFieldExtension, type MarkformFrontmatter, MarkformFrontmatterSchema, MarkformLlmError, MarkformParseError, MarkformPatchError, type MarkformSchemaExtension, MarkformValidationError, MockAgent, type MultiCheckboxState, MultiCheckboxStateSchema, type MultiSelectField, MultiSelectFieldSchema, type MultiSelectValue, MultiSelectValueSchema, type NodeType, type NumberField, NumberFieldSchema, type NumberValue, NumberValueSchema, type Option, type OptionId, OptionIdSchema, OptionSchema, ParseError, type ParseScopeRefResult, type ParseTableResult, type ParsedForm, type ParsedRawTable, type ParsedScopeRef, type Patch, type PatchRejection, PatchSchema, type ProgressCounts, ProgressCountsSchema, type ProgressState, ProgressStateSchema, type ProgressSummary, ProgressSummarySchema, type QualifiedColumnRef, type QualifiedOptionRef, type QualifiedScopeRef, type RawFieldValue, type ResearchOptions, type ResearchResult, type ResearchStatus, type RunMode, RunModeSchema, type SerializeOptions, type SessionFinal, SessionFinalSchema, type SessionTranscript, SessionTranscriptSchema, type SessionTurn, SessionTurnSchema, type SessionTurnStats, type SetCheckboxesPatch, SetCheckboxesPatchSchema, type SetDatePatch, SetDatePatchSchema, type SetMultiSelectPatch, SetMultiSelectPatchSchema, type SetNumberPatch, SetNumberPatchSchema, type SetSingleSelectPatch, SetSingleSelectPatchSchema, type SetStringListPatch, SetStringListPatchSchema, type SetStringPatch, SetStringPatchSchema, type SetTablePatch, SetTablePatchSchema, type SetUrlListPatch, SetUrlListPatchSchema, type SetUrlPatch, SetUrlPatchSchema, type SetYearPatch, SetYearPatchSchema, type Severity, SeveritySchema, type SimpleCheckboxState, SimpleCheckboxStateSchema, type SingleSelectField, SingleSelectFieldSchema, type SingleSelectValue, SingleSelectValueSchema, type SourcePosition, SourcePositionSchema, type SourceRange, SourceRangeSchema, type StepResult, StepResultSchema, type StringField, StringFieldSchema, type StringListField, StringListFieldSchema, type StringListValue, StringListValueSchema, type StringValue, StringValueSchema, type StructureSummary, StructureSummarySchema, type TableColumn, TableColumnSchema, type TableField, TableFieldSchema, type TableRowPatch, TableRowPatchSchema, type TableRowResponse, TableRowResponseSchema, type TableValue, TableValueSchema, type TurnProgress, type TurnStats, type UrlField, UrlFieldSchema, type UrlListField, UrlListFieldSchema, type UrlListValue, UrlListValueSchema, type UrlValue, UrlValueSchema, VERSION, type ValidateOptions, type ValidateResult, type ValidationIssue, ValidationIssueSchema, type ValidatorContext, type ValidatorFn, type ValidatorRef, ValidatorRefSchema, type ValidatorRegistry, type WireFormat, WireFormatSchema, type WireRequestFormat, WireRequestFormatSchema, type WireResponseFormat, WireResponseFormatSchema, type WireResponseStep, WireResponseStepSchema, type WireToolCall, WireToolCallSchema, type WireToolResult, WireToolResultSchema, type YearField, YearFieldSchema, type YearValue, YearValueSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fieldToJsonSchema, fillForm, findFieldById, formToJsonSchema, getFieldId, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, serialize, serializeScopeRef, serializeSession, validate, validateResearchForm };
1166
+ export { type AgentResponse, type AnswerState, AnswerStateSchema, type ApplyResult, ApplyResultSchema, type CellResponse, CellResponseSchema, type CellScopeRef, type CheckboxMode, CheckboxModeSchema, type CheckboxProgressCounts, CheckboxProgressCountsSchema, type CheckboxValue, CheckboxValueSchema, type CheckboxesField, CheckboxesFieldSchema, type CheckboxesValue, CheckboxesValueSchema, type ClearFieldPatch, ClearFieldPatchSchema, type CoerceInputContextResult, type CoercionResult, type ColumnTypeName, ColumnTypeNameSchema, type ComputedSummaries, type DateField, DateFieldSchema, type DateValue, DateValueSchema, type DocumentationBlock, DocumentationBlockSchema, type DocumentationTag, DocumentationTagSchema, type ExplicitCheckboxValue, ExplicitCheckboxValueSchema, type Field, type FieldBase, type FieldGroup, FieldGroupSchema, type FieldKind, FieldKindSchema, type FieldProgress, FieldProgressSchema, type FieldResponse, FieldResponseSchema, FieldSchema, type FieldScopeRef, type FieldValue, FieldValueSchema, type FillCallbacks, type FillOptions, type FillResult, type FillStatus, FormHarness, type FormSchema, FormSchemaSchema, type FrontmatterHarnessConfig, type HarnessConfig, HarnessConfigSchema, type Id, type IdIndexEntry, IdSchema, type InputContext, type InspectIssue, InspectIssueSchema, type InspectOptions, type InspectResult, InspectResultSchema, type IssueReason, IssueReasonSchema, type IssueScope, IssueScopeSchema, type JsonSchemaDraft, type JsonSchemaOptions, type JsonSchemaResult, MarkformAbortError, MarkformConfigError, MarkformError, type MarkformFieldExtension, type MarkformFrontmatter, MarkformFrontmatterSchema, MarkformLlmError, MarkformParseError, MarkformPatchError, type MarkformSchemaExtension, MarkformValidationError, MockAgent, type MultiCheckboxState, MultiCheckboxStateSchema, type MultiSelectField, MultiSelectFieldSchema, type MultiSelectValue, MultiSelectValueSchema, type NodeType, type NumberField, NumberFieldSchema, type NumberValue, NumberValueSchema, type Option, type OptionId, OptionIdSchema, OptionSchema, ParseError, type ParseScopeRefResult, type ParseTableResult, type ParsedForm, type ParsedRawTable, type ParsedScopeRef, type Patch, type PatchRejection, PatchSchema, type ProgressCounts, ProgressCountsSchema, type ProgressState, ProgressStateSchema, type ProgressSummary, ProgressSummarySchema, type QualifiedColumnRef, type QualifiedOptionRef, type QualifiedScopeRef, type RawFieldValue, type ResearchOptions, type ResearchResult, type ResearchStatus, type RunMode, RunModeSchema, type SerializeOptions, type SessionFinal, SessionFinalSchema, type SessionTranscript, SessionTranscriptSchema, type SessionTurn, SessionTurnSchema, type SessionTurnStats, type SetCheckboxesPatch, SetCheckboxesPatchSchema, type SetDatePatch, SetDatePatchSchema, type SetMultiSelectPatch, SetMultiSelectPatchSchema, type SetNumberPatch, SetNumberPatchSchema, type SetSingleSelectPatch, SetSingleSelectPatchSchema, type SetStringListPatch, SetStringListPatchSchema, type SetStringPatch, SetStringPatchSchema, type SetTablePatch, SetTablePatchSchema, type SetUrlListPatch, SetUrlListPatchSchema, type SetUrlPatch, SetUrlPatchSchema, type SetYearPatch, SetYearPatchSchema, type Severity, SeveritySchema, type SimpleCheckboxState, SimpleCheckboxStateSchema, type SingleSelectField, SingleSelectFieldSchema, type SingleSelectValue, SingleSelectValueSchema, type SourcePosition, SourcePositionSchema, type SourceRange, SourceRangeSchema, type StepResult, StepResultSchema, type StringField, StringFieldSchema, type StringListField, StringListFieldSchema, type StringListValue, StringListValueSchema, type StringValue, StringValueSchema, type StructureSummary, StructureSummarySchema, type TableColumn, TableColumnSchema, type TableField, TableFieldSchema, type TableRowPatch, TableRowPatchSchema, type TableRowResponse, TableRowResponseSchema, type TableValue, TableValueSchema, type TurnProgress, type TurnStats, type UrlField, UrlFieldSchema, type UrlListField, UrlListFieldSchema, type UrlListValue, UrlListValueSchema, type UrlValue, UrlValueSchema, VERSION, type ValidateOptions, type ValidateResult, type ValidationIssue, ValidationIssueSchema, type ValidatorContext, type ValidatorFn, type ValidatorRef, ValidatorRefSchema, type ValidatorRegistry, type WireFormat, WireFormatSchema, type WireRequestFormat, WireRequestFormatSchema, type WireResponseFormat, WireResponseFormatSchema, type WireResponseStep, WireResponseStepSchema, type WireToolCall, WireToolCallSchema, type WireToolResult, WireToolResultSchema, type YearField, YearFieldSchema, type YearValue, YearValueSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fieldToJsonSchema, fillForm, findFieldById, formToJsonSchema, getFieldId, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, serializeForm, serializeReport, serializeScopeRef, serializeSession, validate, validateResearchForm };
package/dist/index.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
- import { $ as SetUrlListPatchSchema, A as MultiCheckboxStateSchema, At as WireToolResultSchema, B as ProgressSummarySchema, C as HarnessConfigSchema, Ct as ValidationIssueSchema, D as IssueReasonSchema, Dt as WireResponseFormatSchema, E as InspectResultSchema, Et as WireRequestFormatSchema, F as OptionIdSchema, G as SetCheckboxesPatchSchema, H as SessionFinalSchema, I as OptionSchema, J as SetNumberPatchSchema, K as SetDatePatchSchema, L as PatchSchema, M as MultiSelectValueSchema, Mt as YearValueSchema, N as NumberFieldSchema, O as IssueScopeSchema, Ot as WireResponseStepSchema, P as NumberValueSchema, Q as SetTablePatchSchema, R as ProgressCountsSchema, S as FormSchemaSchema, St as UrlValueSchema, T as InspectIssueSchema, Tt as WireFormatSchema, U as SessionTranscriptSchema, V as RunModeSchema, W as SessionTurnSchema, X as SetStringListPatchSchema, Y as SetSingleSelectPatchSchema, Z as SetStringPatchSchema, _ as FieldKindSchema, _t as TableRowResponseSchema, a as CheckboxProgressCountsSchema, at as SingleSelectValueSchema, b as FieldSchema, bt as UrlListFieldSchema, c as CheckboxesValueSchema, ct as StepResultSchema, d as DateFieldSchema, dt as StringListValueSchema, et as SetUrlPatchSchema, f as DateValueSchema, ft as StringValueSchema, g as FieldGroupSchema, gt as TableRowPatchSchema, h as ExplicitCheckboxValueSchema, ht as TableFieldSchema, i as CheckboxModeSchema, it as SingleSelectFieldSchema, j as MultiSelectFieldSchema, jt as YearFieldSchema, k as MarkformFrontmatterSchema, kt as WireToolCallSchema, l as ClearFieldPatchSchema, lt as StringFieldSchema, m as DocumentationTagSchema, mt as TableColumnSchema, n as ApplyResultSchema, nt as SeveritySchema, o as CheckboxValueSchema, ot as SourcePositionSchema, p as DocumentationBlockSchema, pt as StructureSummarySchema, q as SetMultiSelectPatchSchema, r as CellResponseSchema, rt as SimpleCheckboxStateSchema, s as CheckboxesFieldSchema, st as SourceRangeSchema, t as AnswerStateSchema, tt as SetYearPatchSchema, u as ColumnTypeNameSchema, ut as StringListFieldSchema, v as FieldProgressSchema, vt as TableValueSchema, w as IdSchema, wt as ValidatorRefSchema, x as FieldValueSchema, xt as UrlListValueSchema, y as FieldResponseSchema, yt as UrlFieldSchema, z as ProgressStateSchema } from "./coreTypes-B1oI7qvV.mjs";
3
- import { $ as isPatchError, B as MarkformAbortError, G as MarkformPatchError, H as MarkformError, J as isAbortError, K as MarkformValidationError, Q as isParseError, U as MarkformLlmError, V as MarkformConfigError, W as MarkformParseError, X as isLlmError, Y as isConfigError, Z as isMarkformError, a as validate, c as computeProgressSummary, d as serialize, et as isRetryableError, i as inspect, l as computeStructureSummary, o as computeAllSummaries, q as ParseError, s as computeFormState, t as applyPatches, tt as isValidationError, u as isFormComplete } from "./apply-BTFCHpYV.mjs";
4
- import { A as parseRawTable, C as parseScopeRef, D as parseForm, E as formToJsonSchema, O as parseCellValue, S as isQualifiedRef, T as fieldToJsonSchema, _ as coerceToFieldPatch, a as resolveHarnessConfig, b as isCellRef, f as MockAgent, g as coerceInputContext, h as createHarness, i as runResearch, k as parseMarkdownTable, m as FormHarness, n as isResearchForm, o as fillForm, p as createMockAgent, r as validateResearchForm, t as VERSION, v as findFieldById, w as serializeScopeRef, x as isFieldRef, y as getFieldId } from "./src-CYnyLwBe.mjs";
5
- import { n as serializeSession, t as parseSession } from "./session-Dxqwt0RC.mjs";
2
+ import { $ as SetUrlListPatchSchema, A as MultiCheckboxStateSchema, At as WireToolResultSchema, B as ProgressSummarySchema, C as HarnessConfigSchema, Ct as ValidationIssueSchema, D as IssueReasonSchema, Dt as WireResponseFormatSchema, E as InspectResultSchema, Et as WireRequestFormatSchema, F as OptionIdSchema, G as SetCheckboxesPatchSchema, H as SessionFinalSchema, I as OptionSchema, J as SetNumberPatchSchema, K as SetDatePatchSchema, L as PatchSchema, M as MultiSelectValueSchema, Mt as YearValueSchema, N as NumberFieldSchema, O as IssueScopeSchema, Ot as WireResponseStepSchema, P as NumberValueSchema, Q as SetTablePatchSchema, R as ProgressCountsSchema, S as FormSchemaSchema, St as UrlValueSchema, T as InspectIssueSchema, Tt as WireFormatSchema, U as SessionTranscriptSchema, V as RunModeSchema, W as SessionTurnSchema, X as SetStringListPatchSchema, Y as SetSingleSelectPatchSchema, Z as SetStringPatchSchema, _ as FieldKindSchema, _t as TableRowResponseSchema, a as CheckboxProgressCountsSchema, at as SingleSelectValueSchema, b as FieldSchema, bt as UrlListFieldSchema, c as CheckboxesValueSchema, ct as StepResultSchema, d as DateFieldSchema, dt as StringListValueSchema, et as SetUrlPatchSchema, f as DateValueSchema, ft as StringValueSchema, g as FieldGroupSchema, gt as TableRowPatchSchema, h as ExplicitCheckboxValueSchema, ht as TableFieldSchema, i as CheckboxModeSchema, it as SingleSelectFieldSchema, j as MultiSelectFieldSchema, jt as YearFieldSchema, k as MarkformFrontmatterSchema, kt as WireToolCallSchema, l as ClearFieldPatchSchema, lt as StringFieldSchema, m as DocumentationTagSchema, mt as TableColumnSchema, n as ApplyResultSchema, nt as SeveritySchema, o as CheckboxValueSchema, ot as SourcePositionSchema, p as DocumentationBlockSchema, pt as StructureSummarySchema, q as SetMultiSelectPatchSchema, r as CellResponseSchema, rt as SimpleCheckboxStateSchema, s as CheckboxesFieldSchema, st as SourceRangeSchema, t as AnswerStateSchema, tt as SetYearPatchSchema, u as ColumnTypeNameSchema, ut as StringListFieldSchema, v as FieldProgressSchema, vt as TableValueSchema, w as IdSchema, wt as ValidatorRefSchema, x as FieldValueSchema, xt as UrlListValueSchema, y as FieldResponseSchema, yt as UrlFieldSchema, z as ProgressStateSchema } from "./coreTypes-Z8SvQyoL.mjs";
3
+ import { $ as isPatchError, B as MarkformAbortError, G as MarkformPatchError, H as MarkformError, J as isAbortError, K as MarkformValidationError, Q as isParseError, U as MarkformLlmError, V as MarkformConfigError, W as MarkformParseError, X as isLlmError, Y as isConfigError, Z as isMarkformError, a as validate, c as computeProgressSummary, d as serializeForm, et as isRetryableError, i as inspect, l as computeStructureSummary, o as computeAllSummaries, p as serializeReport, q as ParseError, s as computeFormState, t as applyPatches, tt as isValidationError, u as isFormComplete } from "./apply-WeeBXwXg.mjs";
4
+ import { A as parseRawTable, C as parseScopeRef, D as parseForm, E as formToJsonSchema, O as parseCellValue, S as isQualifiedRef, T as fieldToJsonSchema, _ as coerceToFieldPatch, a as resolveHarnessConfig, b as isCellRef, f as MockAgent, g as coerceInputContext, h as createHarness, i as runResearch, k as parseMarkdownTable, m as FormHarness, n as isResearchForm, o as fillForm, p as createMockAgent, r as validateResearchForm, t as VERSION, v as findFieldById, w as serializeScopeRef, x as isFieldRef, y as getFieldId } from "./src-DMQCFp2l.mjs";
5
+ import { n as serializeSession, t as parseSession } from "./session-DX-DvjRP.mjs";
6
6
 
7
- export { AnswerStateSchema, ApplyResultSchema, CellResponseSchema, CheckboxModeSchema, CheckboxProgressCountsSchema, CheckboxValueSchema, CheckboxesFieldSchema, CheckboxesValueSchema, ClearFieldPatchSchema, ColumnTypeNameSchema, DateFieldSchema, DateValueSchema, DocumentationBlockSchema, DocumentationTagSchema, ExplicitCheckboxValueSchema, FieldGroupSchema, FieldKindSchema, FieldProgressSchema, FieldResponseSchema, FieldSchema, FieldValueSchema, FormHarness, FormSchemaSchema, HarnessConfigSchema, IdSchema, InspectIssueSchema, InspectResultSchema, IssueReasonSchema, IssueScopeSchema, MarkformAbortError, MarkformConfigError, MarkformError, MarkformFrontmatterSchema, MarkformLlmError, MarkformParseError, MarkformPatchError, MarkformValidationError, MockAgent, MultiCheckboxStateSchema, MultiSelectFieldSchema, MultiSelectValueSchema, NumberFieldSchema, NumberValueSchema, OptionIdSchema, OptionSchema, ParseError, PatchSchema, ProgressCountsSchema, ProgressStateSchema, ProgressSummarySchema, RunModeSchema, SessionFinalSchema, SessionTranscriptSchema, SessionTurnSchema, SetCheckboxesPatchSchema, SetDatePatchSchema, SetMultiSelectPatchSchema, SetNumberPatchSchema, SetSingleSelectPatchSchema, SetStringListPatchSchema, SetStringPatchSchema, SetTablePatchSchema, SetUrlListPatchSchema, SetUrlPatchSchema, SetYearPatchSchema, SeveritySchema, SimpleCheckboxStateSchema, SingleSelectFieldSchema, SingleSelectValueSchema, SourcePositionSchema, SourceRangeSchema, StepResultSchema, StringFieldSchema, StringListFieldSchema, StringListValueSchema, StringValueSchema, StructureSummarySchema, TableColumnSchema, TableFieldSchema, TableRowPatchSchema, TableRowResponseSchema, TableValueSchema, UrlFieldSchema, UrlListFieldSchema, UrlListValueSchema, UrlValueSchema, VERSION, ValidationIssueSchema, ValidatorRefSchema, WireFormatSchema, WireRequestFormatSchema, WireResponseFormatSchema, WireResponseStepSchema, WireToolCallSchema, WireToolResultSchema, YearFieldSchema, YearValueSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fieldToJsonSchema, fillForm, findFieldById, formToJsonSchema, getFieldId, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, serialize, serializeScopeRef, serializeSession, validate, validateResearchForm };
7
+ export { AnswerStateSchema, ApplyResultSchema, CellResponseSchema, CheckboxModeSchema, CheckboxProgressCountsSchema, CheckboxValueSchema, CheckboxesFieldSchema, CheckboxesValueSchema, ClearFieldPatchSchema, ColumnTypeNameSchema, DateFieldSchema, DateValueSchema, DocumentationBlockSchema, DocumentationTagSchema, ExplicitCheckboxValueSchema, FieldGroupSchema, FieldKindSchema, FieldProgressSchema, FieldResponseSchema, FieldSchema, FieldValueSchema, FormHarness, FormSchemaSchema, HarnessConfigSchema, IdSchema, InspectIssueSchema, InspectResultSchema, IssueReasonSchema, IssueScopeSchema, MarkformAbortError, MarkformConfigError, MarkformError, MarkformFrontmatterSchema, MarkformLlmError, MarkformParseError, MarkformPatchError, MarkformValidationError, MockAgent, MultiCheckboxStateSchema, MultiSelectFieldSchema, MultiSelectValueSchema, NumberFieldSchema, NumberValueSchema, OptionIdSchema, OptionSchema, ParseError, PatchSchema, ProgressCountsSchema, ProgressStateSchema, ProgressSummarySchema, RunModeSchema, SessionFinalSchema, SessionTranscriptSchema, SessionTurnSchema, SetCheckboxesPatchSchema, SetDatePatchSchema, SetMultiSelectPatchSchema, SetNumberPatchSchema, SetSingleSelectPatchSchema, SetStringListPatchSchema, SetStringPatchSchema, SetTablePatchSchema, SetUrlListPatchSchema, SetUrlPatchSchema, SetYearPatchSchema, SeveritySchema, SimpleCheckboxStateSchema, SingleSelectFieldSchema, SingleSelectValueSchema, SourcePositionSchema, SourceRangeSchema, StepResultSchema, StringFieldSchema, StringListFieldSchema, StringListValueSchema, StringValueSchema, StructureSummarySchema, TableColumnSchema, TableFieldSchema, TableRowPatchSchema, TableRowResponseSchema, TableValueSchema, UrlFieldSchema, UrlListFieldSchema, UrlListValueSchema, UrlValueSchema, VERSION, ValidationIssueSchema, ValidatorRefSchema, WireFormatSchema, WireRequestFormatSchema, WireResponseFormatSchema, WireResponseStepSchema, WireToolCallSchema, WireToolResultSchema, YearFieldSchema, YearValueSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fieldToJsonSchema, fillForm, findFieldById, formToJsonSchema, getFieldId, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, serializeForm, serializeReport, serializeScopeRef, serializeSession, validate, validateResearchForm };
@@ -1,4 +1,4 @@
1
1
 
2
- import { n as serializeSession, t as parseSession } from "./session-Dxqwt0RC.mjs";
2
+ import { n as serializeSession, t as parseSession } from "./session-DX-DvjRP.mjs";
3
3
 
4
4
  export { serializeSession };
@@ -1,5 +1,5 @@
1
1
 
2
- import { U as SessionTranscriptSchema } from "./coreTypes-B1oI7qvV.mjs";
2
+ import { U as SessionTranscriptSchema } from "./coreTypes-Z8SvQyoL.mjs";
3
3
  import YAML from "yaml";
4
4
 
5
5
  //#region src/engine/session.ts
@@ -77,8 +77,8 @@ function toCamelCaseDeep(obj, preserveKeys = false) {
77
77
  const record = obj;
78
78
  for (const [key, value] of Object.entries(record)) {
79
79
  const resultKey = preserveKeys ? key : snakeToCamel(key);
80
- const isCheckboxValues = key === "values" && record.op === "set_checkboxes";
81
- const isTableRows = key === "rows" && record.op === "set_table";
80
+ const isCheckboxValues = key === "value" && record.op === "set_checkboxes";
81
+ const isTableRows = key === "value" && record.op === "set_table";
82
82
  result[resultKey] = toCamelCaseDeep(value, isCheckboxValues || isTableRows || key === "tools");
83
83
  }
84
84
  return result;
@@ -102,8 +102,8 @@ function toSnakeCaseDeep(obj, preserveKeys = false) {
102
102
  const record = obj;
103
103
  for (const [key, value] of Object.entries(record)) {
104
104
  const resultKey = preserveKeys ? key : camelToSnake(key);
105
- const isCheckboxValues = key === "values" && record.op === "set_checkboxes";
106
- const isTableRows = key === "rows" && record.op === "set_table";
105
+ const isCheckboxValues = key === "value" && record.op === "set_checkboxes";
106
+ const isTableRows = key === "value" && record.op === "set_table";
107
107
  result[resultKey] = toSnakeCaseDeep(value, isCheckboxValues || isTableRows || key === "tools");
108
108
  }
109
109
  return result;