markform 0.1.18 → 0.1.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -2
- package/dist/ai-sdk.d.mts +1 -2
- package/dist/ai-sdk.mjs +2 -2
- package/dist/ai-sdk.mjs.map +1 -1
- package/dist/{apply-BYgtU64w.mjs → apply-DIvm1b1s.mjs} +430 -31
- package/dist/apply-DIvm1b1s.mjs.map +1 -0
- package/dist/bin.mjs +20 -2
- package/dist/bin.mjs.map +1 -1
- package/dist/{cli-D9w0Bp4J.mjs → cli-FFMoEhFS.mjs} +1039 -89
- package/dist/cli-FFMoEhFS.mjs.map +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/{coreTypes-SDB3KRRJ.mjs → coreTypes-CPKXf2dc.mjs} +1 -1
- package/dist/{coreTypes-SDB3KRRJ.mjs.map → coreTypes-CPKXf2dc.mjs.map} +1 -1
- package/dist/{coreTypes-BMEs8h_2.d.mts → coreTypes-CkxML8g2.d.mts} +4 -9
- package/dist/index.d.mts +515 -22
- package/dist/index.mjs +5 -5
- package/dist/{session-Ci4B0Pna.mjs → session-CK0x28RO.mjs} +2 -2
- package/dist/session-CK0x28RO.mjs.map +1 -0
- package/dist/{session-CW9AQw6i.mjs → session-ZHBi3LVQ.mjs} +1 -1
- package/dist/{shared-fUKfJ1UA.mjs → shared-BTR35aMz.mjs} +1 -1
- package/dist/{shared-CCq4haEV.mjs → shared-DwdyWmvE.mjs} +1 -3
- package/dist/shared-DwdyWmvE.mjs.map +1 -0
- package/dist/{src-DDxi-2ne.mjs → src-wR7GoftB.mjs} +1707 -645
- package/dist/src-wR7GoftB.mjs.map +1 -0
- package/docs/markform-apis.md +81 -0
- package/docs/markform-reference.md +15 -1
- package/package.json +17 -15
- package/dist/apply-BYgtU64w.mjs.map +0 -1
- package/dist/cli-D9w0Bp4J.mjs.map +0 -1
- package/dist/session-Ci4B0Pna.mjs.map +0 -1
- package/dist/shared-CCq4haEV.mjs.map +0 -1
- package/dist/src-DDxi-2ne.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
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";
|
|
3
4
|
import { LanguageModel, Tool } from "ai";
|
|
4
5
|
|
|
5
6
|
//#region src/errors.d.ts
|
|
6
|
-
|
|
7
7
|
/**
|
|
8
8
|
* Structured error types for markform.
|
|
9
9
|
*
|
|
@@ -170,7 +170,6 @@ declare const ParseError: typeof MarkformParseError;
|
|
|
170
170
|
declare function parseForm(markdown: string): ParsedForm;
|
|
171
171
|
//#endregion
|
|
172
172
|
//#region src/engine/serialize.d.ts
|
|
173
|
-
|
|
174
173
|
interface SerializeOptions {
|
|
175
174
|
/** Markform spec version to use in frontmatter. Defaults to MF_SPEC_VERSION. */
|
|
176
175
|
specVersion?: string;
|
|
@@ -862,6 +861,341 @@ declare class FormHarness {
|
|
|
862
861
|
*/
|
|
863
862
|
declare function createHarness(form: ParsedForm, config?: Partial<HarnessConfig>): FormHarness;
|
|
864
863
|
//#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
|
|
865
1199
|
//#region src/harness/harnessTypes.d.ts
|
|
866
1200
|
/**
|
|
867
1201
|
* Per-turn statistics from LLM calls.
|
|
@@ -875,27 +1209,19 @@ interface TurnStats {
|
|
|
875
1209
|
outputTokens?: number;
|
|
876
1210
|
/** Tool calls made during this turn */
|
|
877
1211
|
toolCalls: {
|
|
878
|
-
/** Tool name */
|
|
879
|
-
name: string;
|
|
880
|
-
/** Number of times called */
|
|
1212
|
+
/** Tool name */name: string; /** Number of times called */
|
|
881
1213
|
count: number;
|
|
882
1214
|
}[];
|
|
883
1215
|
/** Form progress after this turn */
|
|
884
1216
|
formProgress: {
|
|
885
|
-
/** Fields with values */
|
|
886
|
-
|
|
887
|
-
/**
|
|
888
|
-
skippedFields: number;
|
|
889
|
-
/** Required issues still remaining */
|
|
890
|
-
requiredRemaining: number;
|
|
891
|
-
/** Optional/recommended issues still remaining */
|
|
1217
|
+
/** Fields with values */answeredFields: number; /** Fields marked as skipped */
|
|
1218
|
+
skippedFields: number; /** Required issues still remaining */
|
|
1219
|
+
requiredRemaining: number; /** Optional/recommended issues still remaining */
|
|
892
1220
|
optionalRemaining: number;
|
|
893
1221
|
};
|
|
894
1222
|
/** Full prompts sent to LLM (for verbose logging) */
|
|
895
1223
|
prompts?: {
|
|
896
|
-
/** System prompt with instructions */
|
|
897
|
-
system: string;
|
|
898
|
-
/** Context prompt with form state and issues */
|
|
1224
|
+
/** System prompt with instructions */system: string; /** Context prompt with form state and issues */
|
|
899
1225
|
context: string;
|
|
900
1226
|
};
|
|
901
1227
|
/**
|
|
@@ -955,7 +1281,9 @@ interface FillCallbacks {
|
|
|
955
1281
|
/** Called when a turn begins */
|
|
956
1282
|
onTurnStart?(turn: {
|
|
957
1283
|
turnNumber: number;
|
|
958
|
-
issuesCount: number;
|
|
1284
|
+
issuesCount: number; /** Field ordering level for parallel execution (can be negative) */
|
|
1285
|
+
order: number; /** Execution thread ID (e.g., "0-serial", "1-batch-contacts-0") */
|
|
1286
|
+
executionId: string;
|
|
959
1287
|
}): void;
|
|
960
1288
|
/** Called after inspect identifies issues for this turn (before agent generates patches) */
|
|
961
1289
|
onIssuesIdentified?(info: {
|
|
@@ -973,24 +1301,28 @@ interface FillCallbacks {
|
|
|
973
1301
|
/** Called before a tool executes */
|
|
974
1302
|
onToolStart?(call: {
|
|
975
1303
|
name: string;
|
|
976
|
-
input: unknown;
|
|
1304
|
+
input: unknown; /** Execution thread ID for parallel tracking */
|
|
1305
|
+
executionId: string;
|
|
977
1306
|
}): void;
|
|
978
1307
|
/** Called after a tool completes */
|
|
979
1308
|
onToolEnd?(call: {
|
|
980
1309
|
name: string;
|
|
981
1310
|
output: unknown;
|
|
982
1311
|
durationMs: number;
|
|
983
|
-
error?: string;
|
|
1312
|
+
error?: string; /** Execution thread ID for parallel tracking */
|
|
1313
|
+
executionId: string;
|
|
984
1314
|
}): void;
|
|
985
1315
|
/** Called before an LLM request */
|
|
986
1316
|
onLlmCallStart?(call: {
|
|
987
|
-
model: string;
|
|
1317
|
+
model: string; /** Execution thread ID for parallel tracking */
|
|
1318
|
+
executionId: string;
|
|
988
1319
|
}): void;
|
|
989
1320
|
/** Called after an LLM response */
|
|
990
1321
|
onLlmCallEnd?(call: {
|
|
991
1322
|
model: string;
|
|
992
1323
|
inputTokens: number;
|
|
993
|
-
outputTokens: number;
|
|
1324
|
+
outputTokens: number; /** Execution thread ID for parallel tracking */
|
|
1325
|
+
executionId: string;
|
|
994
1326
|
}): void;
|
|
995
1327
|
/** Called when a parallel batch starts execution */
|
|
996
1328
|
onBatchStart?(info: {
|
|
@@ -1011,6 +1343,18 @@ interface FillCallbacks {
|
|
|
1011
1343
|
order: number;
|
|
1012
1344
|
patchesApplied: number;
|
|
1013
1345
|
}): void;
|
|
1346
|
+
/**
|
|
1347
|
+
* Called when a web search is performed.
|
|
1348
|
+
*
|
|
1349
|
+
* This provides access to the search query and result count for analytics and debugging.
|
|
1350
|
+
* Note: Not all providers expose the exact query. When available, this is called.
|
|
1351
|
+
*/
|
|
1352
|
+
onWebSearch?(info: {
|
|
1353
|
+
/** The search query that was executed */query: string; /** Number of results returned (0 if none) */
|
|
1354
|
+
resultCount: number; /** Provider that performed the search (e.g., "anthropic", "openai") */
|
|
1355
|
+
provider: string; /** Execution thread ID for parallel tracking */
|
|
1356
|
+
executionId: string;
|
|
1357
|
+
}): void;
|
|
1014
1358
|
}
|
|
1015
1359
|
/**
|
|
1016
1360
|
* Options for the fillForm function.
|
|
@@ -1108,6 +1452,22 @@ interface FillOptions {
|
|
|
1108
1452
|
* per multi-turn session). Set to false for production use.
|
|
1109
1453
|
*/
|
|
1110
1454
|
captureWireFormat: boolean;
|
|
1455
|
+
/**
|
|
1456
|
+
* Collect a complete FillRecord capturing all execution details.
|
|
1457
|
+
*
|
|
1458
|
+
* When true, the FillResult will include a `record` field containing:
|
|
1459
|
+
* - Turn-by-turn timeline with token usage
|
|
1460
|
+
* - Tool calls with timing and results
|
|
1461
|
+
* - Aggregated statistics with percentiles
|
|
1462
|
+
* - Execution metadata for parallel fills
|
|
1463
|
+
*
|
|
1464
|
+
* Useful for:
|
|
1465
|
+
* - Cost analysis and billing
|
|
1466
|
+
* - Debugging and troubleshooting
|
|
1467
|
+
* - Analytics and optimization
|
|
1468
|
+
* - Audit trails and provenance
|
|
1469
|
+
*/
|
|
1470
|
+
recordFill: boolean;
|
|
1111
1471
|
}
|
|
1112
1472
|
/**
|
|
1113
1473
|
* Progress information for each turn.
|
|
@@ -1169,6 +1529,13 @@ interface FillResult {
|
|
|
1169
1529
|
severity: 'required' | 'recommended';
|
|
1170
1530
|
priority: number;
|
|
1171
1531
|
}[];
|
|
1532
|
+
/**
|
|
1533
|
+
* Complete fill record when recordFill option is enabled.
|
|
1534
|
+
*
|
|
1535
|
+
* Contains timeline, token usage, tool calls, and execution metadata.
|
|
1536
|
+
* Useful for cost analysis, debugging, and analytics.
|
|
1537
|
+
*/
|
|
1538
|
+
record?: FillRecord;
|
|
1172
1539
|
}
|
|
1173
1540
|
//#endregion
|
|
1174
1541
|
//#region src/harness/mockAgent.d.ts
|
|
@@ -1355,6 +1722,132 @@ declare class ParallelHarness {
|
|
|
1355
1722
|
*/
|
|
1356
1723
|
declare function createParallelHarness(form: ParsedForm, config?: ParallelHarnessConfig): ParallelHarness;
|
|
1357
1724
|
//#endregion
|
|
1725
|
+
//#region src/harness/fillRecordCollector.d.ts
|
|
1726
|
+
interface FillRecordCollectorOptions {
|
|
1727
|
+
/** Form metadata */
|
|
1728
|
+
form: {
|
|
1729
|
+
id: string;
|
|
1730
|
+
title?: string;
|
|
1731
|
+
description?: string;
|
|
1732
|
+
structure: StructureSummary;
|
|
1733
|
+
};
|
|
1734
|
+
/** LLM provider name */
|
|
1735
|
+
provider: string;
|
|
1736
|
+
/** Model identifier */
|
|
1737
|
+
model: string;
|
|
1738
|
+
/** Whether parallel execution is enabled */
|
|
1739
|
+
parallelEnabled?: boolean;
|
|
1740
|
+
/** Maximum parallel agents */
|
|
1741
|
+
maxParallelAgents?: number;
|
|
1742
|
+
/** Custom data to include in record */
|
|
1743
|
+
customData?: Record<string, unknown>;
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Thread-safe collector for FillRecord data.
|
|
1747
|
+
*
|
|
1748
|
+
* Uses an append-only event log pattern for thread safety.
|
|
1749
|
+
* Events are aggregated when getRecord() is called.
|
|
1750
|
+
*/
|
|
1751
|
+
declare class FillRecordCollector implements FillCallbacks {
|
|
1752
|
+
private readonly startedAt;
|
|
1753
|
+
private readonly sessionId;
|
|
1754
|
+
private readonly form;
|
|
1755
|
+
private readonly provider;
|
|
1756
|
+
private readonly model;
|
|
1757
|
+
private readonly parallelEnabled;
|
|
1758
|
+
private readonly maxParallelAgents?;
|
|
1759
|
+
private customData;
|
|
1760
|
+
private events;
|
|
1761
|
+
private explicitStatus?;
|
|
1762
|
+
private explicitStatusDetail?;
|
|
1763
|
+
private pendingToolCalls;
|
|
1764
|
+
private pendingLlmCalls;
|
|
1765
|
+
constructor(options: FillRecordCollectorOptions);
|
|
1766
|
+
onTurnStart(turn: {
|
|
1767
|
+
turnNumber: number;
|
|
1768
|
+
issuesCount: number;
|
|
1769
|
+
order: number;
|
|
1770
|
+
executionId: string;
|
|
1771
|
+
}): void;
|
|
1772
|
+
onTurnComplete(progress: TurnProgress): void;
|
|
1773
|
+
onLlmCallStart(call: {
|
|
1774
|
+
model: string;
|
|
1775
|
+
executionId: string;
|
|
1776
|
+
}): void;
|
|
1777
|
+
onLlmCallEnd(call: {
|
|
1778
|
+
model: string;
|
|
1779
|
+
inputTokens: number;
|
|
1780
|
+
outputTokens: number;
|
|
1781
|
+
executionId: string;
|
|
1782
|
+
}): void;
|
|
1783
|
+
onToolStart(call: {
|
|
1784
|
+
name: string;
|
|
1785
|
+
input: unknown;
|
|
1786
|
+
executionId: string;
|
|
1787
|
+
}): void;
|
|
1788
|
+
onToolEnd(call: {
|
|
1789
|
+
name: string;
|
|
1790
|
+
output: unknown;
|
|
1791
|
+
durationMs: number;
|
|
1792
|
+
error?: string;
|
|
1793
|
+
executionId: string;
|
|
1794
|
+
}): void;
|
|
1795
|
+
onWebSearch(info: {
|
|
1796
|
+
query: string;
|
|
1797
|
+
resultCount: number;
|
|
1798
|
+
provider: string;
|
|
1799
|
+
executionId: string;
|
|
1800
|
+
}): void;
|
|
1801
|
+
/**
|
|
1802
|
+
* Add custom data during execution.
|
|
1803
|
+
*/
|
|
1804
|
+
addCustomData(key: string, value: unknown): void;
|
|
1805
|
+
/**
|
|
1806
|
+
* Set explicit status (overrides auto-detection from progress).
|
|
1807
|
+
*/
|
|
1808
|
+
setStatus(status: FillRecordStatus, detail?: string): void;
|
|
1809
|
+
/**
|
|
1810
|
+
* Assemble the complete FillRecord from collected events.
|
|
1811
|
+
*/
|
|
1812
|
+
getRecord(formProgress: ProgressCounts): FillRecord;
|
|
1813
|
+
private buildTimeline;
|
|
1814
|
+
private findTurnForExecutionId;
|
|
1815
|
+
private normalizeInput;
|
|
1816
|
+
private extractResultCount;
|
|
1817
|
+
private calculateLlmTotals;
|
|
1818
|
+
private calculateToolSummary;
|
|
1819
|
+
private extractResultCountFromOutput;
|
|
1820
|
+
private percentile;
|
|
1821
|
+
private calculateTimingBreakdown;
|
|
1822
|
+
private buildExecutionMetadata;
|
|
1823
|
+
private determineStatus;
|
|
1824
|
+
}
|
|
1825
|
+
//#endregion
|
|
1826
|
+
//#region src/harness/formatFillRecordSummary.d.ts
|
|
1827
|
+
/**
|
|
1828
|
+
* Options for formatting the summary.
|
|
1829
|
+
*/
|
|
1830
|
+
interface FormatFillRecordSummaryOptions {
|
|
1831
|
+
/** Show detailed breakdown including per-tool stats */
|
|
1832
|
+
verbose?: boolean;
|
|
1833
|
+
}
|
|
1834
|
+
/**
|
|
1835
|
+
* Format FillRecord as a human-readable text summary.
|
|
1836
|
+
*
|
|
1837
|
+
* @param record - The FillRecord to format
|
|
1838
|
+
* @param options - Formatting options (verbose mode for more detail)
|
|
1839
|
+
* @returns Multi-line text summary
|
|
1840
|
+
*
|
|
1841
|
+
* @example
|
|
1842
|
+
* ```typescript
|
|
1843
|
+
* const result = await fillForm({ form, model, recordFill: true });
|
|
1844
|
+
* if (result.record) {
|
|
1845
|
+
* console.log(formatFillRecordSummary(result.record));
|
|
1846
|
+
* }
|
|
1847
|
+
* ```
|
|
1848
|
+
*/
|
|
1849
|
+
declare function formatFillRecordSummary(record: FillRecord, options?: FormatFillRecordSummaryOptions): string;
|
|
1850
|
+
//#endregion
|
|
1358
1851
|
//#region src/research/researchTypes.d.ts
|
|
1359
1852
|
/**
|
|
1360
1853
|
* Research execution status.
|
|
@@ -1442,5 +1935,5 @@ declare function validateResearchForm(form: ParsedForm): {
|
|
|
1442
1935
|
/** Markform version (injected at build time). */
|
|
1443
1936
|
declare const VERSION: string;
|
|
1444
1937
|
//#endregion
|
|
1445
|
-
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 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 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 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, 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 };
|
|
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 };
|
|
1446
1939
|
//# sourceMappingURL=index.d.mts.map
|