markform 0.1.20 → 0.1.22

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 (58) hide show
  1. package/README.md +44 -12
  2. package/dist/ai-sdk.d.mts +1 -1
  3. package/dist/ai-sdk.mjs +2 -2
  4. package/dist/{apply-DIvm1b1s.mjs → apply-C7mO7VkZ.mjs} +158 -95
  5. package/dist/apply-C7mO7VkZ.mjs.map +1 -0
  6. package/dist/bin.mjs +1 -1
  7. package/dist/{cli-FFMoEhFS.mjs → cli-C8F9yDsv.mjs} +102 -1225
  8. package/dist/cli-C8F9yDsv.mjs.map +1 -0
  9. package/dist/cli.mjs +1 -1
  10. package/dist/{coreTypes-CkxML8g2.d.mts → coreTypes-BlsJkU1w.d.mts} +28 -2
  11. package/dist/{coreTypes-CPKXf2dc.mjs → coreTypes-CTLr-NGd.mjs} +24 -3
  12. package/dist/coreTypes-CTLr-NGd.mjs.map +1 -0
  13. package/dist/fillRecord-DTl5lnK0.d.mts +345 -0
  14. package/dist/fillRecordRenderer-CruJrLkj.mjs +1256 -0
  15. package/dist/fillRecordRenderer-CruJrLkj.mjs.map +1 -0
  16. package/dist/index.d.mts +22 -342
  17. package/dist/index.mjs +5 -5
  18. package/dist/render.d.mts +74 -0
  19. package/dist/render.mjs +4 -0
  20. package/dist/{session-CK0x28RO.mjs → session-BCcltrLA.mjs} +2 -2
  21. package/dist/{session-CK0x28RO.mjs.map → session-BCcltrLA.mjs.map} +1 -1
  22. package/dist/{session-ZHBi3LVQ.mjs → session-VeSkVrck.mjs} +1 -1
  23. package/dist/{shared-DwdyWmvE.mjs → shared-CsdT2T7k.mjs} +1 -1
  24. package/dist/{shared-DwdyWmvE.mjs.map → shared-CsdT2T7k.mjs.map} +1 -1
  25. package/dist/{shared-BTR35aMz.mjs → shared-fb0nkzQi.mjs} +1 -1
  26. package/dist/{src-wR7GoftB.mjs → src-CbRnGzMK.mjs} +205 -138
  27. package/dist/src-CbRnGzMK.mjs.map +1 -0
  28. package/dist/urlFormat-lls7CsEP.mjs +71 -0
  29. package/dist/urlFormat-lls7CsEP.mjs.map +1 -0
  30. package/docs/markform-apis.md +53 -0
  31. package/examples/movie-research/movie-deep-research-mock-filled.form.md +320 -343
  32. package/examples/movie-research/movie-deep-research.form.md +273 -308
  33. package/examples/movie-research/movie-research-demo.form.md +27 -41
  34. package/examples/parallel/parallel-research.form.md +33 -29
  35. package/examples/parallel/parallel-research.mock.filled.form.md +88 -0
  36. package/examples/rejection-test/rejection-test-mock-filled.form.md +21 -16
  37. package/examples/rejection-test/rejection-test-mock-filled.schema.json +1 -1
  38. package/examples/rejection-test/rejection-test.form.md +17 -15
  39. package/examples/rejection-test/rejection-test.session.yaml +88 -60
  40. package/examples/simple/simple-mock-filled.form.md +113 -126
  41. package/examples/simple/simple-mock-filled.schema.json +2 -3
  42. package/examples/simple/simple-skipped-filled.form.md +112 -129
  43. package/examples/simple/simple-skipped-filled.report.md +8 -8
  44. package/examples/simple/simple-skipped-filled.schema.json +2 -3
  45. package/examples/simple/simple-tags-syntax.form.md +32 -0
  46. package/examples/simple/simple-with-skips.session.yaml +663 -627
  47. package/examples/simple/simple.form.md +97 -113
  48. package/examples/simple/simple.schema.json +2 -3
  49. package/examples/simple/simple.session.yaml +663 -627
  50. package/examples/startup-deep-research/startup-deep-research.form.md +191 -235
  51. package/examples/startup-research/startup-research-mock-filled.form.md +128 -147
  52. package/examples/startup-research/startup-research.form.md +90 -129
  53. package/examples/twitter-thread/twitter-thread.form.md +373 -0
  54. package/package.json +5 -1
  55. package/dist/apply-DIvm1b1s.mjs.map +0 -1
  56. package/dist/cli-FFMoEhFS.mjs.map +0 -1
  57. package/dist/coreTypes-CPKXf2dc.mjs.map +0 -1
  58. package/dist/src-wR7GoftB.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
- import { $ as HarnessConfigSchema, $n as TableValueSchema, $t as SetDatePatch, A as ExecutionPlan, An as SourceRangeSchema, Ar as YearValueSchema, At as Patch, B as FieldPriorityLevel, Bn as StringValueSchema, Bt as QualifiedOptionRef, C as DateFieldSchema, Cn as SingleSelectField, Cr as WireToolCall, Ct as NumberValue, D as DocumentationBlockSchema, Dn as SourcePosition, Dr as YearField, Dt as OptionIdSchema, E as DocumentationBlock, En as SingleSelectValueSchema, Er as WireToolResultSchema, Et as OptionId, F as FieldBase, Fn as StringListField, Ft as ProgressState, G as FieldSchema, Gn as TableColumnSchema, Gt as SessionTranscript, H as FieldProgressSchema, Hn as StructureSummarySchema, Ht as RunModeSchema, I as FieldGroup, In as StringListFieldSchema, It as ProgressStateSchema, J as FillMode, Jn as TableRowPatch, Jt as SessionTurnContext, K as FieldValue, Kn as TableField, Kt as SessionTranscriptSchema, L as FieldGroupSchema, Ln as StringListValue, Lt as ProgressSummary, M as ExplicitCheckboxValue, Mn as StepResultSchema, Mt as PatchSchema, N as ExplicitCheckboxValueSchema, Nn as StringField, Nt as ProgressCounts, O as DocumentationTag, On as SourcePositionSchema, Or as YearFieldSchema, Ot as OptionSchema, P as Field, Pn as StringFieldSchema, Pt as ProgressCountsSchema, Q as HarnessConfig, Qn as TableValue, Qt as SetCheckboxesPatchSchema, R as FieldKind, Rn as StringListValueSchema, Rt as ProgressSummarySchema, S as DateField, Sn as SimpleCheckboxStateSchema, Sr as WireResponseStepSchema, St as NumberFieldSchema, T as DateValueSchema, Tn as SingleSelectValue, Tr as WireToolResult, Tt as Option, U as FieldResponse, Un as SyntaxStyle, Ut as SessionFinal, V as FieldProgress, Vn as StructureSummary, Vt as RunMode, W as FieldResponseSchema, Wn as TableColumn, Wt as SessionFinalSchema, X as FormSchemaSchema, Xn as TableRowResponse, Xt as SessionTurnStats, Y as FormSchema, Yn as TableRowPatchSchema, Yt as SessionTurnSchema, Z as FrontmatterHarnessConfig, Zn as TableRowResponseSchema, Zt as SetCheckboxesPatch, _ as CheckboxesValueSchema, _n as SetYearPatch, _r as WireRequestFormat, _t as MultiSelectValue, a as ApprovalMode, an as SetSingleSelectPatch, ar as UrlListValueSchema, at as InspectResult, b as ColumnTypeName, bn as SeveritySchema, br as WireResponseFormatSchema, bt as Note, c as CheckboxMode, cn as SetStringListPatchSchema, cr as ValidationIssue, ct as IssueReasonSchema, d as CheckboxProgressCountsSchema, dn as SetTablePatch, dr as ValidatorFn, dt as MarkformFrontmatter, en as SetDatePatchSchema, er as UrlField, et as Id, f as CheckboxValue, fn as SetTablePatchSchema, fr as ValidatorRef, ft as MarkformFrontmatterSchema, g as CheckboxesValue, gn as SetUrlPatchSchema, gr as WireFormatSchema, gt as MultiSelectFieldSchema, h as CheckboxesFieldSchema, hn as SetUrlPatch, hr as WireFormat, ht as MultiSelectField, i as ApplyResultSchema, in as SetNumberPatchSchema, ir as UrlListValue, it as InspectIssueSchema, j as ExecutionPlanItem, jn as StepResult, jt as PatchRejection, k as DocumentationTagSchema, kn as SourceRange, kr as YearValue, kt as ParsedForm, l as CheckboxModeSchema, ln as SetStringPatch, lr as ValidationIssueSchema, lt as IssueScope, m as CheckboxesField, mn as SetUrlListPatchSchema, mr as ValidatorRegistry, mt as MultiCheckboxStateSchema, n as AnswerStateSchema, nn as SetMultiSelectPatchSchema, nr as UrlListField, nt as IdSchema, o as CellResponse, on as SetSingleSelectPatchSchema, or as UrlValue, ot as InspectResultSchema, p as CheckboxValueSchema, pn as SetUrlListPatch, pr as ValidatorRefSchema, pt as MultiCheckboxState, q as FieldValueSchema, qn as TableFieldSchema, qt as SessionTurn, r as ApplyResult, rn as SetNumberPatch, rr as UrlListFieldSchema, rt as InspectIssue, s as CellResponseSchema, sn as SetStringListPatch, sr as UrlValueSchema, st as IssueReason, t as AnswerState, tn as SetMultiSelectPatch, tr as UrlFieldSchema, tt as IdIndexEntry, u as CheckboxProgressCounts, un as SetStringPatchSchema, ur as ValidatorContext, ut as IssueScopeSchema, v as ClearFieldPatch, vn as SetYearPatchSchema, vr as WireRequestFormatSchema, vt as MultiSelectValueSchema, w as DateValue, wn as SingleSelectFieldSchema, wr as WireToolCallSchema, wt as NumberValueSchema, x as ColumnTypeNameSchema, xn as SimpleCheckboxState, xr as WireResponseStep, xt as NumberField, y as ClearFieldPatchSchema, yn as Severity, yr as WireResponseFormat, yt as NodeType, z as FieldKindSchema, zn as StringValue, zt as QualifiedColumnRef } from "./coreTypes-CkxML8g2.mjs";
3
- import { z } from "zod";
2
+ import { $ as HarnessConfigSchema, $n as TableValue, $t as SetCheckboxesPatchSchema, A as ExecutionPlan, An as SourceRange, Ar as YearValue, At as ParsedForm, B as FieldPriorityLevel, Bn as StringValue, Bt as QualifiedColumnRef, C as DateFieldSchema, Cn as SimpleCheckboxStateSchema, Cr as WireResponseStepSchema, Ct as NumberFieldSchema, D as DocumentationBlockSchema, Dn as SingleSelectValueSchema, Dr as WireToolResultSchema, Dt as OptionId, E as DocumentationBlock, En as SingleSelectValue, Er as WireToolResult, Et as Option, F as FieldBase, Fn as StringFieldSchema, Ft as ProgressCountsSchema, G as FieldSchema, Gn as TableColumn, Gt as SessionFinalSchema, H as FieldProgressSchema, Hn as StructureSummary, Ht as RunMode, I as FieldGroup, In as StringListField, It as ProgressState, J as FillMode, Jn as TableFieldSchema, Jt as SessionTurn, K as FieldValue, Kn as TableColumnSchema, Kt as SessionTranscript, L as FieldGroupSchema, Ln as StringListFieldSchema, Lt as ProgressStateSchema, M as ExplicitCheckboxValue, Mn as StepResult, Mt as PatchRejection, N as ExplicitCheckboxValueSchema, Nn as StepResultSchema, Nt as PatchSchema, O as DocumentationTag, On as SourcePosition, Or as YearField, Ot as OptionIdSchema, P as Field, Pn as StringField, Pt as ProgressCounts, Q as HarnessConfig, Qn as TableRowResponseSchema, Qt as SetCheckboxesPatch, R as FieldKind, Rn as StringListValue, Rt as ProgressSummary, S as DateField, Sn as SimpleCheckboxState, Sr as WireResponseStep, St as NumberField, T as DateValueSchema, Tn as SingleSelectFieldSchema, Tr as WireToolCallSchema, Tt as NumberValueSchema, U as FieldResponse, Un as StructureSummarySchema, Ut as RunModeSchema, V as FieldProgress, Vn as StringValueSchema, Vt as QualifiedOptionRef, W as FieldResponseSchema, Wn as SyntaxStyle, Wt as SessionFinal, X as FormSchemaSchema, Xn as TableRowPatchSchema, Xt as SessionTurnSchema, Y as FormSchema, Yn as TableRowPatch, Yt as SessionTurnContext, Z as FrontmatterHarnessConfig, Zn as TableRowResponse, Zt as SessionTurnStats, _ as CheckboxesValueSchema, _n as SetUrlPatchSchema, _r as WireFormatSchema, _t as MultiSelectFieldSchema, a as ApprovalMode, an as SetNumberPatchSchema, ar as UrlListValue, at as InspectResult, b as ColumnTypeName, bn as Severity, br as WireResponseFormat, bt as NodeType, c as CheckboxMode, cn as SetStringListPatch, cr as UrlValueSchema, ct as IssueReasonSchema, d as CheckboxProgressCountsSchema, dn as SetStringPatchSchema, dr as ValidatorContext, dt as MarkformFrontmatter, en as SetDatePatch, er as TableValueSchema, et as Id, f as CheckboxValue, fn as SetTablePatch, fr as ValidatorFn, ft as MarkformFrontmatterSchema, g as CheckboxesValue, gn as SetUrlPatch, gr as WireFormat, gt as MultiSelectField, h as CheckboxesFieldSchema, hn as SetUrlListPatchSchema, hr as ValidatorRegistry, ht as MultiCheckboxStateSchema, i as ApplyResultSchema, in as SetNumberPatch, ir as UrlListFieldSchema, it as InspectIssueSchema, j as ExecutionPlanItem, jn as SourceRangeSchema, jr as YearValueSchema, jt as Patch, k as DocumentationTagSchema, kn as SourcePositionSchema, kr as YearFieldSchema, kt as OptionSchema, l as CheckboxModeSchema, ln as SetStringListPatchSchema, lr as ValidationIssue, lt as IssueScope, m as CheckboxesField, mn as SetUrlListPatch, mr as ValidatorRefSchema, mt as MultiCheckboxState, n as AnswerStateSchema, nn as SetMultiSelectPatch, nr as UrlFieldSchema, nt as IdSchema, o as CellResponse, on as SetSingleSelectPatch, or as UrlListValueSchema, ot as InspectResultSchema, p as CheckboxValueSchema, pn as SetTablePatchSchema, pr as ValidatorRef, pt as MarkformSectionInputSchema, q as FieldValueSchema, qn as TableField, qt as SessionTranscriptSchema, r as ApplyResult, rn as SetMultiSelectPatchSchema, rr as UrlListField, rt as InspectIssue, s as CellResponseSchema, sn as SetSingleSelectPatchSchema, sr as UrlValue, st as IssueReason, t as AnswerState, tn as SetDatePatchSchema, tr as UrlField, tt as IdIndexEntry, u as CheckboxProgressCounts, un as SetStringPatch, ur as ValidationIssueSchema, ut as IssueScopeSchema, v as ClearFieldPatch, vn as SetYearPatch, vr as WireRequestFormat, vt as MultiSelectValue, w as DateValue, wn as SingleSelectField, wr as WireToolCall, wt as NumberValue, x as ColumnTypeNameSchema, xn as SeveritySchema, xr as WireResponseFormatSchema, xt as Note, y as ClearFieldPatchSchema, yn as SetYearPatchSchema, yr as WireRequestFormatSchema, yt as MultiSelectValueSchema, z as FieldKindSchema, zn as StringListValueSchema, zt as ProgressSummarySchema } from "./coreTypes-BlsJkU1w.mjs";
3
+ import { _ as ToolSummary, a as FillRecordStatus, c as TimelineEntrySchema, d as TimingBreakdownItemSchema, f as TimingBreakdownSchema, g as ToolStatsSchema, h as ToolStats, i as FillRecordSchema, l as TimingBreakdown, m as ToolCallRecordSchema, n as ExecutionMetadataSchema, o as FillRecordStatusSchema, p as ToolCallRecord, r as FillRecord, s as TimelineEntry, t as ExecutionMetadata, u as TimingBreakdownItem, v as ToolSummarySchema } from "./fillRecord-DTl5lnK0.mjs";
4
4
  import { LanguageModel, Tool } from "ai";
5
5
 
6
6
  //#region src/errors.d.ts
@@ -93,11 +93,14 @@ declare class MarkformLlmError extends MarkformError {
93
93
  readonly statusCode?: number;
94
94
  /** Whether this error is retryable */
95
95
  readonly retryable: boolean;
96
+ /** Raw response body from the API (for debugging) */
97
+ readonly responseBody?: string;
96
98
  constructor(message: string, context: {
97
99
  provider?: string;
98
100
  model?: string;
99
101
  statusCode?: number;
100
102
  retryable?: boolean;
103
+ responseBody?: string;
101
104
  cause?: Error;
102
105
  });
103
106
  }
@@ -861,341 +864,6 @@ declare class FormHarness {
861
864
  */
862
865
  declare function createHarness(form: ParsedForm, config?: Partial<HarnessConfig>): FormHarness;
863
866
  //#endregion
864
- //#region src/harness/fillRecord.d.ts
865
- /**
866
- * Per-tool statistics with timing percentiles.
867
- * Enables analysis like "web_search p95 is 2.5s" or "fill_form has 98% success rate"
868
- */
869
- declare const ToolStatsSchema: z.ZodObject<{
870
- toolName: z.ZodString;
871
- callCount: z.ZodNumber;
872
- successCount: z.ZodNumber;
873
- failureCount: z.ZodNumber;
874
- successRate: z.ZodNumber;
875
- results: z.ZodOptional<z.ZodObject<{
876
- totalResults: z.ZodNumber;
877
- avgResultsPerCall: z.ZodNumber;
878
- zeroResultCalls: z.ZodNumber;
879
- }, z.core.$strip>>;
880
- timing: z.ZodObject<{
881
- totalMs: z.ZodNumber;
882
- avgMs: z.ZodNumber;
883
- minMs: z.ZodNumber;
884
- maxMs: z.ZodNumber;
885
- p50Ms: z.ZodNumber;
886
- p95Ms: z.ZodNumber;
887
- }, z.core.$strip>;
888
- }, z.core.$strip>;
889
- type ToolStats = z.infer<typeof ToolStatsSchema>;
890
- /**
891
- * Individual tool call in the timeline.
892
- */
893
- declare const ToolCallRecordSchema: z.ZodObject<{
894
- tool: z.ZodString;
895
- startedAt: z.ZodString;
896
- completedAt: z.ZodString;
897
- durationMs: z.ZodNumber;
898
- success: z.ZodBoolean;
899
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
900
- result: z.ZodOptional<z.ZodObject<{
901
- resultCount: z.ZodOptional<z.ZodNumber>;
902
- error: z.ZodOptional<z.ZodString>;
903
- }, z.core.$strip>>;
904
- }, z.core.$strip>;
905
- type ToolCallRecord = z.infer<typeof ToolCallRecordSchema>;
906
- /**
907
- * Single turn in the fill timeline.
908
- */
909
- declare const TimelineEntrySchema: z.ZodObject<{
910
- turnNumber: z.ZodNumber;
911
- order: z.ZodNumber;
912
- executionId: z.ZodString;
913
- startedAt: z.ZodString;
914
- completedAt: z.ZodString;
915
- durationMs: z.ZodNumber;
916
- issuesAddressed: z.ZodNumber;
917
- patchesApplied: z.ZodNumber;
918
- patchesRejected: z.ZodNumber;
919
- tokens: z.ZodObject<{
920
- input: z.ZodNumber;
921
- output: z.ZodNumber;
922
- }, z.core.$strip>;
923
- toolCalls: z.ZodArray<z.ZodObject<{
924
- tool: z.ZodString;
925
- startedAt: z.ZodString;
926
- completedAt: z.ZodString;
927
- durationMs: z.ZodNumber;
928
- success: z.ZodBoolean;
929
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
930
- result: z.ZodOptional<z.ZodObject<{
931
- resultCount: z.ZodOptional<z.ZodNumber>;
932
- error: z.ZodOptional<z.ZodString>;
933
- }, z.core.$strip>>;
934
- }, z.core.$strip>>;
935
- }, z.core.$strip>;
936
- type TimelineEntry = z.infer<typeof TimelineEntrySchema>;
937
- /**
938
- * Breakdown item for visualization.
939
- */
940
- declare const TimingBreakdownItemSchema: z.ZodObject<{
941
- category: z.ZodEnum<{
942
- llm: "llm";
943
- tools: "tools";
944
- overhead: "overhead";
945
- }>;
946
- label: z.ZodString;
947
- ms: z.ZodNumber;
948
- percentage: z.ZodNumber;
949
- }, z.core.$strip>;
950
- type TimingBreakdownItem = z.infer<typeof TimingBreakdownItemSchema>;
951
- /**
952
- * Timing breakdown showing where time was spent.
953
- */
954
- declare const TimingBreakdownSchema: z.ZodObject<{
955
- totalMs: z.ZodNumber;
956
- llmTimeMs: z.ZodNumber;
957
- toolTimeMs: z.ZodNumber;
958
- overheadMs: z.ZodNumber;
959
- breakdown: z.ZodArray<z.ZodObject<{
960
- category: z.ZodEnum<{
961
- llm: "llm";
962
- tools: "tools";
963
- overhead: "overhead";
964
- }>;
965
- label: z.ZodString;
966
- ms: z.ZodNumber;
967
- percentage: z.ZodNumber;
968
- }, z.core.$strip>>;
969
- }, z.core.$strip>;
970
- type TimingBreakdown = z.infer<typeof TimingBreakdownSchema>;
971
- /**
972
- * Aggregated tool usage statistics.
973
- */
974
- declare const ToolSummarySchema: z.ZodObject<{
975
- totalCalls: z.ZodNumber;
976
- successfulCalls: z.ZodNumber;
977
- failedCalls: z.ZodNumber;
978
- successRate: z.ZodNumber;
979
- totalDurationMs: z.ZodNumber;
980
- byTool: z.ZodArray<z.ZodObject<{
981
- toolName: z.ZodString;
982
- callCount: z.ZodNumber;
983
- successCount: z.ZodNumber;
984
- failureCount: z.ZodNumber;
985
- successRate: z.ZodNumber;
986
- results: z.ZodOptional<z.ZodObject<{
987
- totalResults: z.ZodNumber;
988
- avgResultsPerCall: z.ZodNumber;
989
- zeroResultCalls: z.ZodNumber;
990
- }, z.core.$strip>>;
991
- timing: z.ZodObject<{
992
- totalMs: z.ZodNumber;
993
- avgMs: z.ZodNumber;
994
- minMs: z.ZodNumber;
995
- maxMs: z.ZodNumber;
996
- p50Ms: z.ZodNumber;
997
- p95Ms: z.ZodNumber;
998
- }, z.core.$strip>;
999
- }, z.core.$strip>>;
1000
- }, z.core.$strip>;
1001
- type ToolSummary = z.infer<typeof ToolSummarySchema>;
1002
- /**
1003
- * Execution metadata for the fill.
1004
- */
1005
- declare const ExecutionMetadataSchema: z.ZodObject<{
1006
- totalTurns: z.ZodNumber;
1007
- parallelEnabled: z.ZodBoolean;
1008
- maxParallelAgents: z.ZodOptional<z.ZodNumber>;
1009
- orderLevels: z.ZodArray<z.ZodNumber>;
1010
- executionThreads: z.ZodArray<z.ZodString>;
1011
- }, z.core.$strip>;
1012
- type ExecutionMetadata = z.infer<typeof ExecutionMetadataSchema>;
1013
- /**
1014
- * Fill status enum.
1015
- */
1016
- declare const FillRecordStatusSchema: z.ZodEnum<{
1017
- partial: "partial";
1018
- completed: "completed";
1019
- failed: "failed";
1020
- cancelled: "cancelled";
1021
- }>;
1022
- type FillRecordStatus = z.infer<typeof FillRecordStatusSchema>;
1023
- /**
1024
- * Complete record of a form fill operation.
1025
- *
1026
- * Captures everything that happened during the fill for:
1027
- * - Provenance/corroboration
1028
- * - Cost analysis
1029
- * - Debugging
1030
- * - Analytics
1031
- */
1032
- declare const FillRecordSchema: z.ZodObject<{
1033
- sessionId: z.ZodString;
1034
- startedAt: z.ZodString;
1035
- completedAt: z.ZodString;
1036
- durationMs: z.ZodNumber;
1037
- form: z.ZodObject<{
1038
- id: z.ZodString;
1039
- title: z.ZodOptional<z.ZodString>;
1040
- description: z.ZodOptional<z.ZodString>;
1041
- structure: z.ZodObject<{
1042
- groupCount: z.ZodNumber;
1043
- fieldCount: z.ZodNumber;
1044
- optionCount: z.ZodNumber;
1045
- fieldCountByKind: z.ZodRecord<z.ZodEnum<{
1046
- string: "string";
1047
- number: "number";
1048
- string_list: "string_list";
1049
- url: "url";
1050
- url_list: "url_list";
1051
- single_select: "single_select";
1052
- multi_select: "multi_select";
1053
- checkboxes: "checkboxes";
1054
- date: "date";
1055
- year: "year";
1056
- table: "table";
1057
- }>, z.ZodNumber>;
1058
- groupsById: z.ZodRecord<z.ZodString, z.ZodLiteral<"field_group">>;
1059
- fieldsById: z.ZodRecord<z.ZodString, z.ZodEnum<{
1060
- string: "string";
1061
- number: "number";
1062
- string_list: "string_list";
1063
- url: "url";
1064
- url_list: "url_list";
1065
- single_select: "single_select";
1066
- multi_select: "multi_select";
1067
- checkboxes: "checkboxes";
1068
- date: "date";
1069
- year: "year";
1070
- table: "table";
1071
- }>>;
1072
- optionsById: z.ZodRecord<z.ZodString, z.ZodObject<{
1073
- parentFieldId: z.ZodString;
1074
- parentFieldKind: z.ZodEnum<{
1075
- string: "string";
1076
- number: "number";
1077
- string_list: "string_list";
1078
- url: "url";
1079
- url_list: "url_list";
1080
- single_select: "single_select";
1081
- multi_select: "multi_select";
1082
- checkboxes: "checkboxes";
1083
- date: "date";
1084
- year: "year";
1085
- table: "table";
1086
- }>;
1087
- }, z.core.$strip>>;
1088
- }, z.core.$strip>;
1089
- }, z.core.$strip>;
1090
- status: z.ZodEnum<{
1091
- partial: "partial";
1092
- completed: "completed";
1093
- failed: "failed";
1094
- cancelled: "cancelled";
1095
- }>;
1096
- statusDetail: z.ZodOptional<z.ZodString>;
1097
- formProgress: z.ZodObject<{
1098
- totalFields: z.ZodNumber;
1099
- requiredFields: z.ZodNumber;
1100
- unansweredFields: z.ZodNumber;
1101
- answeredFields: z.ZodNumber;
1102
- skippedFields: z.ZodNumber;
1103
- abortedFields: z.ZodNumber;
1104
- validFields: z.ZodNumber;
1105
- invalidFields: z.ZodNumber;
1106
- emptyFields: z.ZodNumber;
1107
- filledFields: z.ZodNumber;
1108
- emptyRequiredFields: z.ZodNumber;
1109
- totalNotes: z.ZodNumber;
1110
- }, z.core.$strip>;
1111
- llm: z.ZodObject<{
1112
- provider: z.ZodString;
1113
- model: z.ZodString;
1114
- totalCalls: z.ZodNumber;
1115
- inputTokens: z.ZodNumber;
1116
- outputTokens: z.ZodNumber;
1117
- }, z.core.$strip>;
1118
- toolSummary: z.ZodObject<{
1119
- totalCalls: z.ZodNumber;
1120
- successfulCalls: z.ZodNumber;
1121
- failedCalls: z.ZodNumber;
1122
- successRate: z.ZodNumber;
1123
- totalDurationMs: z.ZodNumber;
1124
- byTool: z.ZodArray<z.ZodObject<{
1125
- toolName: z.ZodString;
1126
- callCount: z.ZodNumber;
1127
- successCount: z.ZodNumber;
1128
- failureCount: z.ZodNumber;
1129
- successRate: z.ZodNumber;
1130
- results: z.ZodOptional<z.ZodObject<{
1131
- totalResults: z.ZodNumber;
1132
- avgResultsPerCall: z.ZodNumber;
1133
- zeroResultCalls: z.ZodNumber;
1134
- }, z.core.$strip>>;
1135
- timing: z.ZodObject<{
1136
- totalMs: z.ZodNumber;
1137
- avgMs: z.ZodNumber;
1138
- minMs: z.ZodNumber;
1139
- maxMs: z.ZodNumber;
1140
- p50Ms: z.ZodNumber;
1141
- p95Ms: z.ZodNumber;
1142
- }, z.core.$strip>;
1143
- }, z.core.$strip>>;
1144
- }, z.core.$strip>;
1145
- timingBreakdown: z.ZodObject<{
1146
- totalMs: z.ZodNumber;
1147
- llmTimeMs: z.ZodNumber;
1148
- toolTimeMs: z.ZodNumber;
1149
- overheadMs: z.ZodNumber;
1150
- breakdown: z.ZodArray<z.ZodObject<{
1151
- category: z.ZodEnum<{
1152
- llm: "llm";
1153
- tools: "tools";
1154
- overhead: "overhead";
1155
- }>;
1156
- label: z.ZodString;
1157
- ms: z.ZodNumber;
1158
- percentage: z.ZodNumber;
1159
- }, z.core.$strip>>;
1160
- }, z.core.$strip>;
1161
- timeline: z.ZodArray<z.ZodObject<{
1162
- turnNumber: z.ZodNumber;
1163
- order: z.ZodNumber;
1164
- executionId: z.ZodString;
1165
- startedAt: z.ZodString;
1166
- completedAt: z.ZodString;
1167
- durationMs: z.ZodNumber;
1168
- issuesAddressed: z.ZodNumber;
1169
- patchesApplied: z.ZodNumber;
1170
- patchesRejected: z.ZodNumber;
1171
- tokens: z.ZodObject<{
1172
- input: z.ZodNumber;
1173
- output: z.ZodNumber;
1174
- }, z.core.$strip>;
1175
- toolCalls: z.ZodArray<z.ZodObject<{
1176
- tool: z.ZodString;
1177
- startedAt: z.ZodString;
1178
- completedAt: z.ZodString;
1179
- durationMs: z.ZodNumber;
1180
- success: z.ZodBoolean;
1181
- input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1182
- result: z.ZodOptional<z.ZodObject<{
1183
- resultCount: z.ZodOptional<z.ZodNumber>;
1184
- error: z.ZodOptional<z.ZodString>;
1185
- }, z.core.$strip>>;
1186
- }, z.core.$strip>>;
1187
- }, z.core.$strip>>;
1188
- execution: z.ZodObject<{
1189
- totalTurns: z.ZodNumber;
1190
- parallelEnabled: z.ZodBoolean;
1191
- maxParallelAgents: z.ZodOptional<z.ZodNumber>;
1192
- orderLevels: z.ZodArray<z.ZodNumber>;
1193
- executionThreads: z.ZodArray<z.ZodString>;
1194
- }, z.core.$strip>;
1195
- customData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1196
- }, z.core.$strip>;
1197
- type FillRecord = z.infer<typeof FillRecordSchema>;
1198
- //#endregion
1199
867
  //#region src/harness/harnessTypes.d.ts
1200
868
  /**
1201
869
  * Per-turn statistics from LLM calls.
@@ -1468,6 +1136,15 @@ interface FillOptions {
1468
1136
  * - Audit trails and provenance
1469
1137
  */
1470
1138
  recordFill: boolean;
1139
+ /**
1140
+ * Tool choice strategy for the LLM.
1141
+ *
1142
+ * - 'auto': Model decides whether to use tools
1143
+ * - 'required' (default): Model MUST call a tool (some models like gpt-5-mini don't reliably call tools with 'auto')
1144
+ *
1145
+ * @default 'required'
1146
+ */
1147
+ toolChoice?: 'auto' | 'required';
1471
1148
  }
1472
1149
  /**
1473
1150
  * Progress information for each turn.
@@ -1487,6 +1164,8 @@ interface TurnProgress {
1487
1164
  patches: Patch[];
1488
1165
  /** Empty if patches applied successfully, contains rejection details if failed */
1489
1166
  rejectedPatches: PatchRejection[];
1167
+ /** Execution ID for parallel tracking (e.g., "1-batch-research-0") */
1168
+ executionId?: string;
1490
1169
  }
1491
1170
  /**
1492
1171
  * Fill status indicating success or failure reason.
@@ -1743,10 +1422,11 @@ interface FillRecordCollectorOptions {
1743
1422
  customData?: Record<string, unknown>;
1744
1423
  }
1745
1424
  /**
1746
- * Thread-safe collector for FillRecord data.
1425
+ * Collector for FillRecord data from async form fill operations.
1747
1426
  *
1748
- * Uses an append-only event log pattern for thread safety.
1749
- * Events are aggregated when getRecord() is called.
1427
+ * Uses an append-only event log pattern that safely handles interleaved
1428
+ * async callbacks from parallel execution. Events are aggregated when
1429
+ * getRecord() is called.
1750
1430
  */
1751
1431
  declare class FillRecordCollector implements FillCallbacks {
1752
1432
  private readonly startedAt;
@@ -1811,7 +1491,7 @@ declare class FillRecordCollector implements FillCallbacks {
1811
1491
  */
1812
1492
  getRecord(formProgress: ProgressCounts): FillRecord;
1813
1493
  private buildTimeline;
1814
- private findTurnForExecutionId;
1494
+ private findTurnKeyForExecutionId;
1815
1495
  private normalizeInput;
1816
1496
  private extractResultCount;
1817
1497
  private calculateLlmTotals;
@@ -1935,5 +1615,5 @@ declare function validateResearchForm(form: ParsedForm): {
1935
1615
  /** Markform version (injected at build time). */
1936
1616
  declare const VERSION: string;
1937
1617
  //#endregion
1938
- export { type AgentResponse, type AnswerState, AnswerStateSchema, type ApplyResult, ApplyResultSchema, type CellResponse, CellResponseSchema, type CellScopeRef, type CheckboxInfo, 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 ExecutionMetadata, ExecutionMetadataSchema, 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 FillRecord, FillRecordCollector, type FillRecordCollectorOptions, FillRecordSchema, type FillRecordStatus, FillRecordStatusSchema, type FillResult, type FillStatus, FormHarness, type FormSchema, FormSchemaSchema, type FormatFillRecordSummaryOptions, type FrontmatterHarnessConfig, type HarnessConfig, HarnessConfigSchema, type HeadingInfo, type Id, type IdIndexEntry, IdSchema, type InjectCheckboxIdsOptions, type InjectHeaderIdsOptions, type InjectIdsResult, 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, ParallelHarness, type ParallelHarnessConfig, type ParallelRunResult, type ParallelStepResult, 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 ScopedFillRequest, 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 TimelineEntry, TimelineEntrySchema, type TimingBreakdown, type TimingBreakdownItem, TimingBreakdownItemSchema, TimingBreakdownSchema, type ToolCallRecord, ToolCallRecordSchema, type ToolStats, ToolStatsSchema, type ToolSummary, ToolSummarySchema, 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, createParallelHarness, fieldToJsonSchema, fillForm, findAllCheckboxes, findAllHeadings, findEnclosingHeadings, findFieldById, formToJsonSchema, formatFillRecordSummary, getFieldId, injectCheckboxIds, injectHeaderIds, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, scopeIssuesForItem, serializeForm, serializeReport, serializeScopeRef, serializeSession, validate, validateResearchForm };
1618
+ export { type AgentResponse, type AnswerState, AnswerStateSchema, type ApplyResult, ApplyResultSchema, type CellResponse, CellResponseSchema, type CellScopeRef, type CheckboxInfo, 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 ExecutionMetadata, ExecutionMetadataSchema, 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 FillRecord, FillRecordCollector, type FillRecordCollectorOptions, FillRecordSchema, type FillRecordStatus, FillRecordStatusSchema, type FillResult, type FillStatus, FormHarness, type FormSchema, FormSchemaSchema, type FormatFillRecordSummaryOptions, type FrontmatterHarnessConfig, type HarnessConfig, HarnessConfigSchema, type HeadingInfo, type Id, type IdIndexEntry, IdSchema, type InjectCheckboxIdsOptions, type InjectHeaderIdsOptions, type InjectIdsResult, 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, MarkformSectionInputSchema, 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, ParallelHarness, type ParallelHarnessConfig, type ParallelRunResult, type ParallelStepResult, 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 ScopedFillRequest, 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 TimelineEntry, TimelineEntrySchema, type TimingBreakdown, type TimingBreakdownItem, TimingBreakdownItemSchema, TimingBreakdownSchema, type ToolCallRecord, ToolCallRecordSchema, type ToolStats, ToolStatsSchema, type ToolSummary, ToolSummarySchema, 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, createParallelHarness, fieldToJsonSchema, fillForm, findAllCheckboxes, findAllHeadings, findEnclosingHeadings, findFieldById, formToJsonSchema, formatFillRecordSummary, getFieldId, injectCheckboxIds, injectHeaderIds, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, scopeIssuesForItem, serializeForm, serializeReport, serializeScopeRef, serializeSession, validate, validateResearchForm };
1939
1619
  //# sourceMappingURL=index.d.mts.map
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-CPKXf2dc.mjs";
3
- import { _t as isParseError, a as validate, at as MarkformAbortError, bt as isValidationError, c as computeProgressSummary, ct as MarkformLlmError, d as serializeForm, dt as MarkformValidationError, ft as ParseError, gt as isMarkformError, ht as isLlmError, i as inspect, l as computeStructureSummary, lt as MarkformParseError, mt as isConfigError, o as computeAllSummaries, ot as MarkformConfigError, p as serializeReport, pt as isAbortError, s as computeFormState, st as MarkformError, t as applyPatches, u as isFormComplete, ut as MarkformPatchError, vt as isPatchError, yt as isRetryableError } from "./apply-DIvm1b1s.mjs";
4
- import { A as FormHarness, B as serializeScopeRef, E as FillRecordCollector, F as getFieldId, G as injectCheckboxIds, H as formToJsonSchema, I as isCellRef, J as findEnclosingHeadings, K as injectHeaderIds, L as isFieldRef, M as coerceInputContext, N as coerceToFieldPatch, O as MockAgent, P as findFieldById, R as isQualifiedRef, U as parseForm, V as fieldToJsonSchema, W as findAllCheckboxes, X as parseMarkdownTable, Y as parseCellValue, Z as parseRawTable, _ as fillForm, a as ExecutionMetadataSchema, b as scopeIssuesForItem, c as TimelineEntrySchema, d as ToolCallRecordSchema, f as ToolStatsSchema, g as resolveHarnessConfig, h as formatFillRecordSummary, i as runResearch, j as createHarness, k as createMockAgent, l as TimingBreakdownItemSchema, n as isResearchForm, o as FillRecordSchema, p as ToolSummarySchema, q as findAllHeadings, r as validateResearchForm, s as FillRecordStatusSchema, t as VERSION, u as TimingBreakdownSchema, v as ParallelHarness, y as createParallelHarness, z as parseScopeRef } from "./src-wR7GoftB.mjs";
5
- import { n as serializeSession, t as parseSession } from "./session-CK0x28RO.mjs";
2
+ import { $ as SetTablePatchSchema, A as MarkformSectionInputSchema, At as WireToolCallSchema, B as ProgressStateSchema, C as HarnessConfigSchema, Ct as UrlValueSchema, D as IssueReasonSchema, Dt as WireRequestFormatSchema, E as InspectResultSchema, Et as WireFormatSchema, F as NumberValueSchema, G as SessionTurnSchema, H as RunModeSchema, I as OptionIdSchema, J as SetMultiSelectPatchSchema, K as SetCheckboxesPatchSchema, L as OptionSchema, M as MultiSelectFieldSchema, Mt as YearFieldSchema, N as MultiSelectValueSchema, Nt as YearValueSchema, O as IssueScopeSchema, Ot as WireResponseFormatSchema, P as NumberFieldSchema, Q as SetStringPatchSchema, R as PatchSchema, S as FormSchemaSchema, St as UrlListValueSchema, T as InspectIssueSchema, Tt as ValidatorRefSchema, U as SessionFinalSchema, V as ProgressSummarySchema, W as SessionTranscriptSchema, X as SetSingleSelectPatchSchema, Y as SetNumberPatchSchema, Z as SetStringListPatchSchema, _ as FieldKindSchema, _t as TableRowPatchSchema, a as CheckboxProgressCountsSchema, at as SingleSelectFieldSchema, b as FieldSchema, bt as UrlFieldSchema, c as CheckboxesValueSchema, ct as SourceRangeSchema, d as DateFieldSchema, dt as StringListFieldSchema, et as SetUrlListPatchSchema, f as DateValueSchema, ft as StringListValueSchema, g as FieldGroupSchema, gt as TableFieldSchema, h as ExplicitCheckboxValueSchema, ht as TableColumnSchema, i as CheckboxModeSchema, it as SimpleCheckboxStateSchema, j as MultiCheckboxStateSchema, jt as WireToolResultSchema, k as MarkformFrontmatterSchema, kt as WireResponseStepSchema, l as ClearFieldPatchSchema, lt as StepResultSchema, m as DocumentationTagSchema, mt as StructureSummarySchema, n as ApplyResultSchema, nt as SetYearPatchSchema, o as CheckboxValueSchema, ot as SingleSelectValueSchema, p as DocumentationBlockSchema, pt as StringValueSchema, q as SetDatePatchSchema, r as CellResponseSchema, rt as SeveritySchema, s as CheckboxesFieldSchema, st as SourcePositionSchema, t as AnswerStateSchema, tt as SetUrlPatchSchema, u as ColumnTypeNameSchema, ut as StringFieldSchema, v as FieldProgressSchema, vt as TableRowResponseSchema, w as IdSchema, wt as ValidationIssueSchema, x as FieldValueSchema, xt as UrlListFieldSchema, y as FieldResponseSchema, yt as TableValueSchema, z as ProgressCountsSchema } from "./coreTypes-CTLr-NGd.mjs";
3
+ import { _t as isPatchError, a as validate, at as MarkformConfigError, c as computeProgressSummary, ct as MarkformParseError, d as serializeForm, dt as ParseError, ft as isAbortError, gt as isParseError, ht as isMarkformError, i as inspect, it as MarkformAbortError, l as computeStructureSummary, lt as MarkformPatchError, mt as isLlmError, o as computeAllSummaries, ot as MarkformError, p as serializeReport, pt as isConfigError, s as computeFormState, st as MarkformLlmError, t as applyPatches, u as isFormComplete, ut as MarkformValidationError, vt as isRetryableError, yt as isValidationError } from "./apply-C7mO7VkZ.mjs";
4
+ import { A as FormHarness, B as serializeScopeRef, E as FillRecordCollector, F as getFieldId, G as injectCheckboxIds, H as formToJsonSchema, I as isCellRef, J as findEnclosingHeadings, K as injectHeaderIds, L as isFieldRef, M as coerceInputContext, N as coerceToFieldPatch, O as MockAgent, P as findFieldById, R as isQualifiedRef, U as parseForm, V as fieldToJsonSchema, W as findAllCheckboxes, X as parseMarkdownTable, Y as parseCellValue, Z as parseRawTable, _ as fillForm, a as ExecutionMetadataSchema, b as scopeIssuesForItem, c as TimelineEntrySchema, d as ToolCallRecordSchema, f as ToolStatsSchema, g as resolveHarnessConfig, h as formatFillRecordSummary, i as runResearch, j as createHarness, k as createMockAgent, l as TimingBreakdownItemSchema, n as isResearchForm, o as FillRecordSchema, p as ToolSummarySchema, q as findAllHeadings, r as validateResearchForm, s as FillRecordStatusSchema, t as VERSION, u as TimingBreakdownSchema, v as ParallelHarness, y as createParallelHarness, z as parseScopeRef } from "./src-CbRnGzMK.mjs";
5
+ import { n as serializeSession, t as parseSession } from "./session-BCcltrLA.mjs";
6
6
 
7
- export { AnswerStateSchema, ApplyResultSchema, CellResponseSchema, CheckboxModeSchema, CheckboxProgressCountsSchema, CheckboxValueSchema, CheckboxesFieldSchema, CheckboxesValueSchema, ClearFieldPatchSchema, ColumnTypeNameSchema, DateFieldSchema, DateValueSchema, DocumentationBlockSchema, DocumentationTagSchema, ExecutionMetadataSchema, ExplicitCheckboxValueSchema, FieldGroupSchema, FieldKindSchema, FieldProgressSchema, FieldResponseSchema, FieldSchema, FieldValueSchema, FillRecordCollector, FillRecordSchema, FillRecordStatusSchema, FormHarness, FormSchemaSchema, HarnessConfigSchema, IdSchema, InspectIssueSchema, InspectResultSchema, IssueReasonSchema, IssueScopeSchema, MarkformAbortError, MarkformConfigError, MarkformError, MarkformFrontmatterSchema, MarkformLlmError, MarkformParseError, MarkformPatchError, MarkformValidationError, MockAgent, MultiCheckboxStateSchema, MultiSelectFieldSchema, MultiSelectValueSchema, NumberFieldSchema, NumberValueSchema, OptionIdSchema, OptionSchema, ParallelHarness, 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, TimelineEntrySchema, TimingBreakdownItemSchema, TimingBreakdownSchema, ToolCallRecordSchema, ToolStatsSchema, ToolSummarySchema, UrlFieldSchema, UrlListFieldSchema, UrlListValueSchema, UrlValueSchema, VERSION, ValidationIssueSchema, ValidatorRefSchema, WireFormatSchema, WireRequestFormatSchema, WireResponseFormatSchema, WireResponseStepSchema, WireToolCallSchema, WireToolResultSchema, YearFieldSchema, YearValueSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, createParallelHarness, fieldToJsonSchema, fillForm, findAllCheckboxes, findAllHeadings, findEnclosingHeadings, findFieldById, formToJsonSchema, formatFillRecordSummary, getFieldId, injectCheckboxIds, injectHeaderIds, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, scopeIssuesForItem, serializeForm, serializeReport, serializeScopeRef, serializeSession, validate, validateResearchForm };
7
+ export { AnswerStateSchema, ApplyResultSchema, CellResponseSchema, CheckboxModeSchema, CheckboxProgressCountsSchema, CheckboxValueSchema, CheckboxesFieldSchema, CheckboxesValueSchema, ClearFieldPatchSchema, ColumnTypeNameSchema, DateFieldSchema, DateValueSchema, DocumentationBlockSchema, DocumentationTagSchema, ExecutionMetadataSchema, ExplicitCheckboxValueSchema, FieldGroupSchema, FieldKindSchema, FieldProgressSchema, FieldResponseSchema, FieldSchema, FieldValueSchema, FillRecordCollector, FillRecordSchema, FillRecordStatusSchema, FormHarness, FormSchemaSchema, HarnessConfigSchema, IdSchema, InspectIssueSchema, InspectResultSchema, IssueReasonSchema, IssueScopeSchema, MarkformAbortError, MarkformConfigError, MarkformError, MarkformFrontmatterSchema, MarkformLlmError, MarkformParseError, MarkformPatchError, MarkformSectionInputSchema, MarkformValidationError, MockAgent, MultiCheckboxStateSchema, MultiSelectFieldSchema, MultiSelectValueSchema, NumberFieldSchema, NumberValueSchema, OptionIdSchema, OptionSchema, ParallelHarness, 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, TimelineEntrySchema, TimingBreakdownItemSchema, TimingBreakdownSchema, ToolCallRecordSchema, ToolStatsSchema, ToolSummarySchema, UrlFieldSchema, UrlListFieldSchema, UrlListValueSchema, UrlValueSchema, VERSION, ValidationIssueSchema, ValidatorRefSchema, WireFormatSchema, WireRequestFormatSchema, WireResponseFormatSchema, WireResponseStepSchema, WireToolCallSchema, WireToolResultSchema, YearFieldSchema, YearValueSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, createParallelHarness, fieldToJsonSchema, fillForm, findAllCheckboxes, findAllHeadings, findEnclosingHeadings, findFieldById, formToJsonSchema, formatFillRecordSummary, getFieldId, injectCheckboxIds, injectHeaderIds, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, scopeIssuesForItem, serializeForm, serializeReport, serializeScopeRef, serializeSession, validate, validateResearchForm };
@@ -0,0 +1,74 @@
1
+
2
+ import { At as ParsedForm } from "./coreTypes-BlsJkU1w.mjs";
3
+ import { r as FillRecord } from "./fillRecord-DTl5lnK0.mjs";
4
+
5
+ //#region src/render/renderUtils.d.ts
6
+ /**
7
+ * Rendering utility functions for HTML generation.
8
+ *
9
+ * Pure utility functions used across all renderers. No CLI or server dependencies.
10
+ */
11
+ /**
12
+ * Escape HTML special characters.
13
+ */
14
+ declare function escapeHtml(str: string): string;
15
+ /**
16
+ * Format milliseconds as human-readable duration.
17
+ */
18
+ declare function formatDuration(ms: number): string;
19
+ /**
20
+ * Format token count with K suffix for large numbers.
21
+ */
22
+ declare function formatTokens(count: number): string;
23
+ //#endregion
24
+ //#region src/render/contentRenderers.d.ts
25
+ /**
26
+ * Render form view content (read-only display of form fields).
27
+ * Used for View tab content.
28
+ */
29
+ declare function renderViewContent(form: ParsedForm): string;
30
+ /**
31
+ * Render source content with Markdown and Jinja syntax highlighting.
32
+ * Used for Source tab content.
33
+ */
34
+ declare function renderSourceContent(content: string): string;
35
+ /**
36
+ * Render markdown content (content only, no page wrapper).
37
+ * Used for tab content.
38
+ */
39
+ declare function renderMarkdownContent(content: string): string;
40
+ /**
41
+ * Render YAML content with syntax highlighting (content only, no page wrapper).
42
+ * Used for tab content.
43
+ */
44
+ declare function renderYamlContent(content: string): string;
45
+ /**
46
+ * Render JSON content with syntax highlighting (content only, no page wrapper).
47
+ * Used for tab content.
48
+ */
49
+ declare function renderJsonContent(content: string): string;
50
+ //#endregion
51
+ //#region src/render/fillRecordRenderer.d.ts
52
+ /**
53
+ * JavaScript for fill record interactive features.
54
+ * Consumers should include this in a <script> tag on their page.
55
+ * Provides: frShowTip(el), frHideTip(), frCopyYaml(btn)
56
+ */
57
+ declare const FILL_RECORD_SCRIPTS = "\n// Copy YAML content handler for Fill Record tab (must be global for dynamically loaded content)\nfunction frCopyYaml(btn) {\n const pre = btn.parentElement.querySelector('pre');\n navigator.clipboard.writeText(pre.textContent).then(() => {\n const orig = btn.textContent;\n btn.textContent = 'Copied!';\n setTimeout(() => btn.textContent = orig, 1500);\n });\n}\n\n// Tooltip handlers for Fill Record visualizations (must be global for dynamically loaded content)\nfunction frShowTip(el) {\n var tip = document.getElementById('fr-tooltip');\n if (tip && el.dataset.tooltip) {\n tip.textContent = el.dataset.tooltip;\n // Position tooltip centered above the element\n var rect = el.getBoundingClientRect();\n tip.style.left = (rect.left + rect.width / 2) + 'px';\n tip.style.top = (rect.top - 8) + 'px';\n tip.style.transform = 'translate(-50%, -100%)';\n tip.classList.add('visible');\n }\n}\nfunction frHideTip() {\n var tip = document.getElementById('fr-tooltip');\n if (tip) tip.classList.remove('visible');\n}\n";
58
+ /**
59
+ * CSS styles for fill record visualization.
60
+ * Uses CSS custom properties for theming (supports dark mode via prefers-color-scheme).
61
+ * Designed to be lightweight, reusable, and embeddable.
62
+ */
63
+ declare const FILL_RECORD_STYLES = "\n<style>\n .fr-dashboard {\n --fr-bg: #ffffff;\n --fr-bg-muted: #f9fafb;\n --fr-bg-subtle: #f3f4f6;\n --fr-border: #e5e7eb;\n --fr-text: #111827;\n --fr-text-muted: #6b7280;\n --fr-primary: #3b82f6;\n --fr-success: #22c55e;\n --fr-warning: #f59e0b;\n --fr-error: #ef4444;\n --fr-info: #6b7280;\n\n /* Typography - consolidated to fewer sizes */\n --fr-font-sm: 13px;\n --fr-font-base: 14px;\n --fr-font-lg: 20px;\n\n font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;\n padding: 20px;\n max-width: 900px;\n margin: 0 auto;\n color: var(--fr-text);\n line-height: 1.5;\n }\n\n @media (prefers-color-scheme: dark) {\n .fr-dashboard {\n --fr-bg: #1f2937;\n --fr-bg-muted: #374151;\n --fr-bg-subtle: #4b5563;\n --fr-border: #4b5563;\n --fr-text: #f9fafb;\n --fr-text-muted: #9ca3af;\n }\n }\n\n .fr-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 16px;\n padding-bottom: 12px;\n border-bottom: 1px solid var(--fr-border);\n }\n .fr-header__model {\n font-weight: 600;\n font-size: var(--fr-font-base);\n color: var(--fr-text);\n }\n .fr-header__time {\n font-weight: 600;\n font-size: var(--fr-font-base);\n color: var(--fr-text);\n }\n\n .fr-banner {\n border-radius: 8px;\n padding: 12px 16px;\n margin-bottom: 20px;\n font-size: var(--fr-font-base);\n }\n .fr-banner--error {\n background: color-mix(in srgb, var(--fr-error) 10%, var(--fr-bg));\n border: 1px solid var(--fr-error);\n }\n .fr-banner--warning {\n background: color-mix(in srgb, var(--fr-warning) 10%, var(--fr-bg));\n border: 1px solid var(--fr-warning);\n }\n\n .fr-cards {\n display: grid;\n grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));\n gap: 16px;\n margin-bottom: 24px;\n }\n\n .fr-card {\n padding: 16px;\n background: var(--fr-bg-muted);\n border-radius: 8px;\n text-align: center;\n }\n .fr-card__label {\n font-size: var(--fr-font-sm);\n color: var(--fr-text-muted);\n margin-bottom: 4px;\n }\n .fr-card__value {\n font-size: var(--fr-font-lg);\n font-weight: 600;\n }\n .fr-card__sub {\n font-size: var(--fr-font-sm);\n color: var(--fr-text-muted);\n margin-top: 2px;\n }\n\n .fr-badge {\n display: inline-flex;\n align-items: center;\n gap: 4px;\n padding: 4px 10px;\n border-radius: 4px;\n font-weight: 600;\n font-size: var(--fr-font-sm);\n }\n .fr-badge--completed { background: color-mix(in srgb, var(--fr-success) 15%, transparent); color: var(--fr-success); }\n .fr-badge--partial { background: color-mix(in srgb, var(--fr-warning) 15%, transparent); color: var(--fr-warning); }\n .fr-badge--cancelled { background: color-mix(in srgb, var(--fr-info) 15%, transparent); color: var(--fr-info); }\n .fr-badge--failed { background: color-mix(in srgb, var(--fr-error) 15%, transparent); color: var(--fr-error); }\n\n .fr-section {\n margin-bottom: 24px;\n }\n .fr-section__title {\n font-size: var(--fr-font-base);\n font-weight: 500;\n color: var(--fr-text);\n margin-bottom: 8px;\n }\n\n .fr-progress {\n background: var(--fr-border);\n border-radius: 4px;\n height: 20px;\n overflow: hidden;\n }\n .fr-progress__bar {\n background: var(--fr-primary);\n height: 100%;\n transition: width 0.3s ease;\n }\n .fr-progress__text {\n font-size: var(--fr-font-sm);\n color: var(--fr-text-muted);\n margin-top: 4px;\n }\n\n .fr-progress__segments {\n display: flex;\n height: 100%;\n width: 100%;\n }\n .fr-progress-segment {\n height: 100%;\n min-width: 2px;\n border-right: 2px solid var(--fr-bg);\n cursor: pointer;\n }\n .fr-progress-segment:last-child {\n border-right: none;\n }\n .fr-progress-segment--filled {\n background: var(--fr-primary);\n }\n .fr-progress-segment--filled:hover {\n background: color-mix(in srgb, var(--fr-primary) 70%, white);\n }\n .fr-progress-segment--prefilled {\n background: #8b5cf6;\n }\n .fr-progress-segment--prefilled:hover {\n background: color-mix(in srgb, #8b5cf6 70%, white);\n }\n .fr-progress-segment--skipped {\n background: var(--fr-warning);\n }\n .fr-progress-segment--skipped:hover {\n background: color-mix(in srgb, var(--fr-warning) 70%, white);\n }\n .fr-progress-segment--empty {\n background: var(--fr-border);\n }\n\n /* Gantt chart - each call on its own row */\n .fr-gantt {\n margin-bottom: 8px;\n }\n .fr-gantt__row {\n display: flex;\n align-items: center;\n height: 20px;\n margin-bottom: 3px;\n }\n .fr-gantt__label {\n width: 90px;\n flex-shrink: 0;\n font-size: 11px;\n color: var(--fr-text-muted);\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n padding-right: 8px;\n text-align: right;\n }\n .fr-gantt__track {\n flex: 1;\n background: var(--fr-bg-subtle);\n border-radius: 3px;\n height: 14px;\n position: relative;\n }\n .fr-gantt__bar {\n position: absolute;\n top: 2px;\n height: calc(100% - 4px);\n min-width: 6px;\n border-radius: 2px;\n cursor: pointer;\n }\n .fr-gantt__bar:hover {\n filter: brightness(1.15);\n }\n .fr-gantt__bar--llm {\n background: var(--fr-primary);\n }\n .fr-gantt__bar--tool {\n background: var(--fr-success);\n }\n .fr-gantt__legend {\n display: flex;\n gap: 16px;\n font-size: var(--fr-font-sm);\n color: var(--fr-text-muted);\n margin-top: 12px;\n padding-top: 8px;\n border-top: 1px solid var(--fr-border);\n }\n .fr-gantt__legend-item {\n display: flex;\n align-items: center;\n gap: 6px;\n }\n .fr-gantt__legend-dot {\n width: 10px;\n height: 10px;\n border-radius: 2px;\n }\n .fr-gantt__legend-dot--llm { background: var(--fr-primary); }\n .fr-gantt__legend-dot--tool { background: var(--fr-success); }\n\n /* Tooltip container */\n .fr-tooltip {\n position: fixed;\n background: #1f2937;\n color: #f9fafb;\n padding: 8px 12px;\n border-radius: 4px;\n font-size: var(--fr-font-sm);\n white-space: pre-line;\n pointer-events: none;\n z-index: 1000;\n box-shadow: 0 4px 12px rgba(0,0,0,0.3);\n opacity: 0;\n visibility: hidden;\n transition: opacity 0.05s ease-out, visibility 0.05s ease-out;\n }\n .fr-tooltip.visible {\n opacity: 1;\n visibility: visible;\n transition: opacity 0.2s ease-in, visibility 0.2s ease-in;\n }\n\n .fr-table {\n width: 100%;\n border-collapse: collapse;\n font-size: var(--fr-font-sm);\n }\n .fr-table th {\n padding: 8px 12px;\n text-align: left;\n font-weight: 600;\n background: var(--fr-bg-subtle);\n }\n .fr-table th:not(:first-child) { text-align: center; }\n .fr-table td {\n padding: 8px 12px;\n border-bottom: 1px solid var(--fr-border);\n }\n .fr-table td:not(:first-child) { text-align: center; }\n\n .fr-details {\n border: none;\n background: none;\n }\n .fr-details > summary {\n cursor: pointer;\n font-size: var(--fr-font-base);\n font-weight: 500;\n color: var(--fr-text);\n padding: 8px 0;\n list-style: none;\n }\n .fr-details > summary::-webkit-details-marker { display: none; }\n .fr-details > summary::before {\n content: '\u25B6';\n display: inline-block;\n margin-right: 8px;\n transition: transform 0.2s;\n font-size: 11px;\n }\n .fr-details[open] > summary::before {\n transform: rotate(90deg);\n }\n .fr-details__content {\n background: var(--fr-bg-muted);\n border-radius: 8px;\n padding: 16px;\n margin-top: 8px;\n }\n\n .fr-turn {\n margin-bottom: 8px;\n background: var(--fr-bg-muted);\n border-radius: 4px;\n }\n .fr-turn summary {\n cursor: pointer;\n padding: 12px;\n font-size: var(--fr-font-sm);\n list-style: none;\n }\n .fr-turn summary::-webkit-details-marker { display: none; }\n .fr-turn summary::before {\n content: '\u25B6';\n display: inline-block;\n margin-right: 8px;\n transition: transform 0.2s;\n font-size: 11px;\n }\n .fr-turn[open] summary::before {\n transform: rotate(90deg);\n }\n .fr-turn__content {\n padding: 0 12px 12px;\n }\n .fr-turn__tools {\n margin: 0;\n padding-left: 20px;\n list-style: none;\n }\n .fr-turn__tool {\n margin: 4px 0;\n font-size: var(--fr-font-sm);\n color: var(--fr-text-muted);\n }\n .fr-turn__tool--error { color: var(--fr-error); }\n\n .fr-turn__query {\n color: var(--fr-primary);\n font-style: italic;\n }\n\n .fr-turn__patches {\n margin: 4px 0 8px 20px;\n padding: 8px 12px;\n background: var(--fr-bg-subtle);\n border-radius: 4px;\n font-size: var(--fr-font-sm);\n }\n .fr-turn__patch {\n margin: 4px 0;\n padding: 4px 0;\n border-bottom: 1px solid var(--fr-border);\n }\n .fr-turn__patch:last-child {\n border-bottom: none;\n margin-bottom: 0;\n padding-bottom: 0;\n }\n .fr-turn__patch-field {\n font-weight: 600;\n color: var(--fr-text);\n }\n .fr-turn__patch-op {\n font-size: 11px;\n padding: 1px 4px;\n border-radius: 2px;\n background: var(--fr-bg-muted);\n color: var(--fr-text-muted);\n margin-left: 6px;\n }\n .fr-turn__patch-value {\n display: block;\n margin-top: 2px;\n color: var(--fr-text-muted);\n font-family: ui-monospace, 'SF Mono', Menlo, monospace;\n word-break: break-word;\n white-space: pre-wrap;\n max-height: 200px;\n overflow: auto;\n }\n .fr-turn__patch-value--skip {\n color: var(--fr-warning);\n font-style: italic;\n }\n .fr-turn__patch-value--clear {\n color: var(--fr-info);\n font-style: italic;\n }\n\n .fr-raw {\n position: relative;\n }\n .fr-copy-btn {\n position: absolute;\n top: 8px;\n right: 8px;\n padding: 4px 8px;\n font-size: var(--fr-font-sm);\n background: var(--fr-bg-subtle);\n border: 1px solid var(--fr-border);\n border-radius: 4px;\n cursor: pointer;\n color: var(--fr-text-muted);\n transition: all 0.15s;\n }\n .fr-copy-btn:hover {\n background: var(--fr-border);\n color: var(--fr-text);\n }\n .fr-copy-btn:active {\n transform: scale(0.95);\n }\n\n /* Scoped pre styles to override parent .tab-content pre */\n .fr-dashboard pre {\n background: var(--fr-bg-muted);\n color: var(--fr-text);\n padding: 1rem;\n border-radius: 6px;\n border: 1px solid var(--fr-border);\n overflow-x: auto;\n font-family: ui-monospace, 'SF Mono', Menlo, monospace;\n font-size: 0.85rem;\n line-height: 1.5;\n margin: 0;\n }\n\n /* Override syntax highlighting colors for dark mode compatibility */\n .fr-dashboard .syn-key { color: var(--fr-primary); }\n .fr-dashboard .syn-string { color: var(--fr-success); }\n .fr-dashboard .syn-number { color: var(--fr-primary); }\n .fr-dashboard .syn-bool { color: var(--fr-warning); }\n .fr-dashboard .syn-null { color: var(--fr-error); }\n\n @media (max-width: 600px) {\n .fr-dashboard { padding: 12px; }\n .fr-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }\n .fr-card { padding: 12px; }\n .fr-card__value { font-size: 18px; }\n .fr-table { font-size: var(--fr-font-sm); }\n .fr-table th, .fr-table td { padding: 6px 8px; }\n }\n</style>\n";
64
+ /**
65
+ * Render fill record content (dashboard-style visualization).
66
+ * Uses CSS custom properties for theming with automatic dark mode support.
67
+ * Mobile responsive with grid-based layout.
68
+ *
69
+ * @public Exported for testing and reuse.
70
+ */
71
+ declare function renderFillRecordContent(record: FillRecord): string;
72
+ //#endregion
73
+ export { FILL_RECORD_SCRIPTS, FILL_RECORD_STYLES, escapeHtml, formatDuration, formatTokens, renderFillRecordContent, renderJsonContent, renderMarkdownContent, renderSourceContent, renderViewContent, renderYamlContent };
74
+ //# sourceMappingURL=render.d.mts.map
@@ -0,0 +1,4 @@
1
+
2
+ import { a as renderJsonContent, c as renderViewContent, d as formatDuration, f as formatTokens, l as renderYamlContent, n as FILL_RECORD_STYLES, o as renderMarkdownContent, r as renderFillRecordContent, s as renderSourceContent, t as FILL_RECORD_SCRIPTS, u as escapeHtml } from "./fillRecordRenderer-CruJrLkj.mjs";
3
+
4
+ export { FILL_RECORD_SCRIPTS, FILL_RECORD_STYLES, escapeHtml, formatDuration, formatTokens, renderFillRecordContent, renderJsonContent, renderMarkdownContent, renderSourceContent, renderViewContent, renderYamlContent };
@@ -1,5 +1,5 @@
1
1
 
2
- import { U as SessionTranscriptSchema } from "./coreTypes-CPKXf2dc.mjs";
2
+ import { W as SessionTranscriptSchema } from "./coreTypes-CTLr-NGd.mjs";
3
3
  import YAML from "yaml";
4
4
 
5
5
  //#region src/engine/session.ts
@@ -113,4 +113,4 @@ function toSnakeCaseDeep(obj, preserveKeys = false) {
113
113
 
114
114
  //#endregion
115
115
  export { serializeSession as n, parseSession as t };
116
- //# sourceMappingURL=session-CK0x28RO.mjs.map
116
+ //# sourceMappingURL=session-BCcltrLA.mjs.map