markform 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { $ as MultiSelectFieldSchema, $t as StringFieldSchema, A as FieldValue, At as SetNumberPatch, B as InspectIssue, Bt as SimpleCheckboxState, C as FieldGroup, Ct as SessionTranscriptSchema, D as FieldProgress, Dt as SetCheckboxesPatchSchema, E as FieldKindSchema, Et as SetCheckboxesPatch, F as HarnessConfig, Ft as SetStringListPatchSchema, G as IssueReasonSchema, Gt as SingleSelectValueSchema, H as InspectResult, Ht as SingleSelectField, I as HarnessConfigSchema, It as SetStringPatch, J as MarkformFrontmatter, Jt as SourceRange, K as IssueScope, Kt as SourcePosition, L as Id, Lt as SetStringPatchSchema, M as FillMode, Mt as SetSingleSelectPatch, N as FormSchema, Nt as SetSingleSelectPatchSchema, O as FieldProgressSchema, Ot as SetMultiSelectPatch, P as FormSchemaSchema, Pt as SetStringListPatch, Q as MultiSelectField, Qt as StringField, R as IdIndexEntry, Rt as Severity, S as FieldBase, St as SessionTranscript, T as FieldKind, Tt as SessionTurnSchema, U as InspectResultSchema, Ut as SingleSelectFieldSchema, V as InspectIssueSchema, Vt as SimpleCheckboxStateSchema, W as IssueReason, Wt as SingleSelectValue, X as MultiCheckboxState, Xt as StepResult, Y as MarkformFrontmatterSchema, Yt as SourceRangeSchema, Z as MultiCheckboxStateSchema, Zt as StepResultSchema, _ as DocumentationTag, _t as ProgressSummary, a as CheckboxProgressCounts, an as StringValueSchema, at as NumberValueSchema, b as ExplicitCheckboxValueSchema, bt as SessionFinal, c as CheckboxValueSchema, cn as ValidationIssue, ct as OptionIdSchema, d as CheckboxesValue, dn as ValidatorFn, dt as Patch, en as StringListField, et as MultiSelectValue, f as CheckboxesValueSchema, fn as ValidatorRef, ft as PatchSchema, g as DocumentationBlockSchema, gt as ProgressStateSchema, h as DocumentationBlock, ht as ProgressState, i as CheckboxModeSchema, in as StringValue, it as NumberValue, j as FieldValueSchema, jt as SetNumberPatchSchema, k as FieldSchema, kt as SetMultiSelectPatchSchema, l as CheckboxesField, ln as ValidationIssueSchema, lt as OptionSchema, m as ClearFieldPatchSchema, mn as ValidatorRegistry, mt as ProgressCountsSchema, n as ApplyResultSchema, nn as StringListValue, nt as NumberField, o as CheckboxProgressCountsSchema, on as StructureSummary, ot as Option, p as ClearFieldPatch, pn as ValidatorRefSchema, pt as ProgressCounts, q as IssueScopeSchema, qt as SourcePositionSchema, r as CheckboxMode, rn as StringListValueSchema, rt as NumberFieldSchema, s as CheckboxValue, sn as StructureSummarySchema, st as OptionId, t as ApplyResult, tn as StringListFieldSchema, tt as MultiSelectValueSchema, u as CheckboxesFieldSchema, un as ValidatorContext, ut as ParsedForm, v as DocumentationTagSchema, vt as ProgressSummarySchema, w as FieldGroupSchema, wt as SessionTurn, x as Field, xt as SessionFinalSchema, y as ExplicitCheckboxValue, yt as QualifiedOptionRef, z as IdSchema, zt as SeveritySchema } from "./coreTypes-T7dAuewt.mjs";
3
+ import { $ as MultiSelectFieldSchema, $t as StepResultSchema, A as FieldValue, At as SetMultiSelectPatchSchema, B as InspectIssue, Bt as SeveritySchema, C as FieldGroup, Ct as SessionTranscriptSchema, D as FieldProgress, Dt as SetCheckboxesPatch, E as FieldKindSchema, Et as SessionTurnStats, F as HarnessConfig, Ft as SetStringListPatch, G as IssueReasonSchema, Gt as SingleSelectValue, H as InspectResult, Ht as SimpleCheckboxStateSchema, I as HarnessConfigSchema, It as SetStringListPatchSchema, J as MarkformFrontmatter, Jt as SourcePosition, K as IssueScope, Kt as SingleSelectValueSchema, L as Id, Lt as SetStringPatch, M as FillMode, Mt as SetNumberPatchSchema, N as FormSchema, Nt as SetSingleSelectPatch, O as FieldProgressSchema, Ot as SetCheckboxesPatchSchema, P as FormSchemaSchema, Pt as SetSingleSelectPatchSchema, Q as MultiSelectField, Qt as StepResult, R as IdIndexEntry, Rt as SetStringPatchSchema, S as FieldBase, St as SessionTranscript, T as FieldKind, Tt as SessionTurnSchema, U as InspectResultSchema, Ut as SingleSelectField, V as InspectIssueSchema, Vt as SimpleCheckboxState, W as IssueReason, Wt as SingleSelectFieldSchema, X as MultiCheckboxState, Xt as SourceRange, Y as MarkformFrontmatterSchema, Yt as SourcePositionSchema, Z as MultiCheckboxStateSchema, Zt as SourceRangeSchema, _ as DocumentationTag, _t as ProgressSummary, a as CheckboxProgressCounts, an as StringListValueSchema, at as NumberValueSchema, b as ExplicitCheckboxValueSchema, bt as SessionFinal, c as CheckboxValueSchema, cn as StructureSummary, ct as OptionIdSchema, d as CheckboxesValue, dn as ValidationIssueSchema, dt as Patch, en as StringField, et as MultiSelectValue, f as CheckboxesValueSchema, fn as ValidatorContext, ft as PatchSchema, g as DocumentationBlockSchema, gn as ValidatorRegistry, gt as ProgressStateSchema, h as DocumentationBlock, hn as ValidatorRefSchema, ht as ProgressState, i as CheckboxModeSchema, in as StringListValue, it as NumberValue, j as FieldValueSchema, jt as SetNumberPatch, k as FieldSchema, kt as SetMultiSelectPatch, l as CheckboxesField, ln as StructureSummarySchema, lt as OptionSchema, m as ClearFieldPatchSchema, mn as ValidatorRef, mt as ProgressCountsSchema, n as ApplyResultSchema, nn as StringListField, nt as NumberField, o as CheckboxProgressCountsSchema, on as StringValue, ot as Option, p as ClearFieldPatch, pn as ValidatorFn, pt as ProgressCounts, q as IssueScopeSchema, qt as SkipInfo, r as CheckboxMode, rn as StringListFieldSchema, rt as NumberFieldSchema, s as CheckboxValue, sn as StringValueSchema, st as OptionId, t as ApplyResult, tn as StringFieldSchema, tt as MultiSelectValueSchema, u as CheckboxesFieldSchema, un as ValidationIssue, ut as ParsedForm, v as DocumentationTagSchema, vt as ProgressSummarySchema, w as FieldGroupSchema, wt as SessionTurn, x as Field, xt as SessionFinalSchema, y as ExplicitCheckboxValue, yt as QualifiedOptionRef, z as IdSchema, zt as Severity } from "./coreTypes--6etkcwb.mjs";
4
4
  import { LanguageModel } from "ai";
5
5
 
6
6
  //#region src/engine/parse.d.ts
@@ -48,9 +48,10 @@ declare function computeStructureSummary(schema: FormSchema): StructureSummary;
48
48
  * @param schema - The form schema
49
49
  * @param values - Current field values
50
50
  * @param issues - Validation issues (from inspect)
51
+ * @param skips - Skip state per field (from skip_field patches)
51
52
  * @returns Progress summary with field states and counts
52
53
  */
53
- declare function computeProgressSummary(schema: FormSchema, values: Record<Id, FieldValue>, issues: InspectIssue[]): ProgressSummary;
54
+ declare function computeProgressSummary(schema: FormSchema, values: Record<Id, FieldValue>, issues: InspectIssue[], skips?: Record<Id, SkipInfo>): ProgressSummary;
54
55
  /**
55
56
  * Compute the overall form state from progress summary.
56
57
  *
@@ -61,6 +62,15 @@ declare function computeFormState(progress: ProgressSummary): ProgressState;
61
62
  /**
62
63
  * Determine if the form is complete (ready for submission).
63
64
  *
65
+ * A form is complete when:
66
+ * 1. No required fields are empty
67
+ * 2. No fields have validation errors
68
+ * 3. No fields are in incomplete state (e.g., partial checkbox completion)
69
+ * 4. All fields must be addressed (answered + skipped == total)
70
+ *
71
+ * Every field must be explicitly addressed - either filled with a value or
72
+ * skipped with a reason. This ensures agents fully process all fields.
73
+ *
64
74
  * @param progress - The progress summary
65
75
  * @returns True if the form is complete
66
76
  */
@@ -77,9 +87,10 @@ interface ComputedSummaries {
77
87
  * @param schema - The form schema
78
88
  * @param values - Current field values
79
89
  * @param issues - Validation issues
90
+ * @param skips - Skip state per field (from skip_field patches)
80
91
  * @returns All computed summaries
81
92
  */
82
- declare function computeAllSummaries(schema: FormSchema, values: Record<Id, FieldValue>, issues: InspectIssue[]): ComputedSummaries;
93
+ declare function computeAllSummaries(schema: FormSchema, values: Record<Id, FieldValue>, issues: InspectIssue[], skips?: Record<Id, SkipInfo>): ComputedSummaries;
83
94
  //#endregion
84
95
  //#region src/engine/validate.d.ts
85
96
  interface ValidateOptions {
@@ -234,6 +245,13 @@ declare class FormHarness {
234
245
  getForm(): ParsedForm;
235
246
  /**
236
247
  * Check if the harness has reached max turns.
248
+ *
249
+ * Returns true when we've completed all allowed turns. This happens when:
250
+ * - turnNumber >= maxTurns AND we've already applied (state is "complete")
251
+ * - OR turnNumber > maxTurns (we've exceeded the limit)
252
+ *
253
+ * This allows the harness loop to run N times when maxTurns=N by returning
254
+ * false when we're at turn N but haven't applied yet (state is "wait").
237
255
  */
238
256
  hasReachedMaxTurns(): boolean;
239
257
  /**
@@ -254,9 +272,19 @@ declare class FormHarness {
254
272
  *
255
273
  * @param patches - Patches to apply
256
274
  * @param issues - Issues that were shown to the agent (for recording)
275
+ * @param llmStats - Optional LLM stats for session logging
257
276
  * @returns StepResult after applying patches
258
277
  */
259
- apply(patches: Patch[], issues: InspectIssue[]): StepResult;
278
+ apply(patches: Patch[], issues: InspectIssue[], llmStats?: SessionTurnStats): StepResult;
279
+ /**
280
+ * Compute step result from inspect result.
281
+ * Applies issue filtering and computes step budget.
282
+ */
283
+ private computeStepResult;
284
+ /**
285
+ * Record a turn in the session transcript.
286
+ */
287
+ private recordTurn;
260
288
  /**
261
289
  * Check if the form is complete.
262
290
  */
@@ -303,6 +331,51 @@ declare class FormHarness {
303
331
  declare function createHarness(form: ParsedForm, config?: Partial<HarnessConfig>): FormHarness;
304
332
  //#endregion
305
333
  //#region src/harness/harnessTypes.d.ts
334
+ /**
335
+ * Per-turn statistics from LLM calls.
336
+ *
337
+ * Tracks token usage, tool calls, and form progress for observability.
338
+ */
339
+ interface TurnStats {
340
+ /** Input tokens for this turn (from provider usage) */
341
+ inputTokens?: number;
342
+ /** Output tokens for this turn (from provider usage) */
343
+ outputTokens?: number;
344
+ /** Tool calls made during this turn */
345
+ toolCalls: {
346
+ /** Tool name */
347
+ name: string;
348
+ /** Number of times called */
349
+ count: number;
350
+ }[];
351
+ /** Form progress after this turn */
352
+ formProgress: {
353
+ /** Fields with values */
354
+ answeredFields: number;
355
+ /** Fields marked as skipped */
356
+ skippedFields: number;
357
+ /** Required issues still remaining */
358
+ requiredRemaining: number;
359
+ /** Optional/recommended issues still remaining */
360
+ optionalRemaining: number;
361
+ };
362
+ /** Full prompts sent to LLM (for verbose logging) */
363
+ prompts?: {
364
+ /** System prompt with instructions */
365
+ system: string;
366
+ /** Context prompt with form state and issues */
367
+ context: string;
368
+ };
369
+ }
370
+ /**
371
+ * Response from agent's generatePatches call.
372
+ */
373
+ interface AgentResponse {
374
+ /** Patches to apply */
375
+ patches: Patch[];
376
+ /** Per-turn stats (undefined for MockAgent) */
377
+ stats?: TurnStats;
378
+ }
306
379
  /**
307
380
  * Interface for agents that can generate patches.
308
381
  */
@@ -313,9 +386,9 @@ interface Agent {
313
386
  * @param issues - Prioritized issues from harness step
314
387
  * @param form - Current form state
315
388
  * @param maxPatches - Maximum number of patches to generate
316
- * @returns Promise resolving to array of patches to apply
389
+ * @returns Promise resolving to patches and optional stats
317
390
  */
318
- generatePatches(issues: InspectIssue[], form: ParsedForm, maxPatches: number): Promise<Patch[]>;
391
+ generatePatches(issues: InspectIssue[], form: ParsedForm, maxPatches: number): Promise<AgentResponse>;
319
392
  }
320
393
  /**
321
394
  * Options for the fillForm function.
@@ -361,6 +434,8 @@ interface TurnProgress {
361
434
  patchesApplied: number;
362
435
  requiredIssuesRemaining: number;
363
436
  isComplete: boolean;
437
+ /** Per-turn stats from LLM (undefined for MockAgent) */
438
+ stats?: TurnStats;
364
439
  }
365
440
  /**
366
441
  * Fill status indicating success or failure reason.
@@ -416,9 +491,15 @@ declare class MockAgent implements Agent {
416
491
  * Generate patches from the completed mock to address issues.
417
492
  *
418
493
  * Processes issues in priority order, generating patches for
419
- * fields that have values in the completed mock.
494
+ * fields that have values in the completed mock. For fields with no
495
+ * value (empty optional fields), generates skip_field patches.
496
+ * Returns AgentResponse with patches but no stats (mock doesn't track LLM usage).
497
+ */
498
+ generatePatches(issues: InspectIssue[], _form: ParsedForm, maxPatches: number): Promise<AgentResponse>;
499
+ /**
500
+ * Check if a field value actually has content (not null/empty).
420
501
  */
421
- generatePatches(issues: InspectIssue[], _form: ParsedForm, maxPatches: number): Promise<Patch[]>;
502
+ private hasValue;
422
503
  /**
423
504
  * Create a patch for a field based on its kind and completed value.
424
505
  */
@@ -479,5 +560,4 @@ declare function fillForm(options: FillOptions): Promise<FillResult>;
479
560
  /** Markform version. */
480
561
  declare const VERSION = "0.1.0";
481
562
  //#endregion
482
- export { type ApplyResult, ApplyResultSchema, type CheckboxMode, CheckboxModeSchema, type CheckboxProgressCounts, CheckboxProgressCountsSchema, type CheckboxValue, CheckboxValueSchema, type CheckboxesField, CheckboxesFieldSchema, type CheckboxesValue, CheckboxesValueSchema, type ClearFieldPatch, ClearFieldPatchSchema, type CoerceInputContextResult, type CoercionResult, type ComputedSummaries, type DocumentationBlock, DocumentationBlockSchema, type DocumentationTag, DocumentationTagSchema, type ExplicitCheckboxValue, ExplicitCheckboxValueSchema, type Field, type FieldBase, type FieldGroup, FieldGroupSchema, type FieldKind, FieldKindSchema, type FieldProgress, FieldProgressSchema, FieldSchema, type FieldValue, FieldValueSchema, type FillOptions, type FillResult, type FillStatus, FormHarness, type FormSchema, FormSchemaSchema, type HarnessConfig, HarnessConfigSchema, type Id, type IdIndexEntry, IdSchema, type InputContext, type InspectIssue, InspectIssueSchema, type InspectOptions, type InspectResult, InspectResultSchema, type IssueReason, IssueReasonSchema, type IssueScope, IssueScopeSchema, type MarkformFrontmatter, MarkformFrontmatterSchema, MockAgent, type MultiCheckboxState, MultiCheckboxStateSchema, type MultiSelectField, MultiSelectFieldSchema, type MultiSelectValue, MultiSelectValueSchema, type NumberField, NumberFieldSchema, type NumberValue, NumberValueSchema, type Option, type OptionId, OptionIdSchema, OptionSchema, ParseError, type ParsedForm, type Patch, PatchSchema, type ProgressCounts, ProgressCountsSchema, type ProgressState, ProgressStateSchema, type ProgressSummary, ProgressSummarySchema, type QualifiedOptionRef, type RawFieldValue, type SerializeOptions, type SessionFinal, SessionFinalSchema, type SessionTranscript, SessionTranscriptSchema, type SessionTurn, SessionTurnSchema, type SetCheckboxesPatch, SetCheckboxesPatchSchema, type SetMultiSelectPatch, SetMultiSelectPatchSchema, type SetNumberPatch, SetNumberPatchSchema, type SetSingleSelectPatch, SetSingleSelectPatchSchema, type SetStringListPatch, SetStringListPatchSchema, type SetStringPatch, SetStringPatchSchema, 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 TurnProgress, VERSION, type ValidateOptions, type ValidateResult, type ValidationIssue, ValidationIssueSchema, type ValidatorContext, type ValidatorFn, type ValidatorRef, ValidatorRefSchema, type ValidatorRegistry, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fillForm, findFieldById, inspect, isFormComplete, parseForm, parseSession, serialize, serializeSession, validate };
483
- //# sourceMappingURL=index.d.mts.map
563
+ export { type AgentResponse, type ApplyResult, ApplyResultSchema, type CheckboxMode, CheckboxModeSchema, type CheckboxProgressCounts, CheckboxProgressCountsSchema, type CheckboxValue, CheckboxValueSchema, type CheckboxesField, CheckboxesFieldSchema, type CheckboxesValue, CheckboxesValueSchema, type ClearFieldPatch, ClearFieldPatchSchema, type CoerceInputContextResult, type CoercionResult, type ComputedSummaries, type DocumentationBlock, DocumentationBlockSchema, type DocumentationTag, DocumentationTagSchema, type ExplicitCheckboxValue, ExplicitCheckboxValueSchema, type Field, type FieldBase, type FieldGroup, FieldGroupSchema, type FieldKind, FieldKindSchema, type FieldProgress, FieldProgressSchema, FieldSchema, type FieldValue, FieldValueSchema, type FillOptions, type FillResult, type FillStatus, FormHarness, type FormSchema, FormSchemaSchema, type HarnessConfig, HarnessConfigSchema, type Id, type IdIndexEntry, IdSchema, type InputContext, type InspectIssue, InspectIssueSchema, type InspectOptions, type InspectResult, InspectResultSchema, type IssueReason, IssueReasonSchema, type IssueScope, IssueScopeSchema, type MarkformFrontmatter, MarkformFrontmatterSchema, MockAgent, type MultiCheckboxState, MultiCheckboxStateSchema, type MultiSelectField, MultiSelectFieldSchema, type MultiSelectValue, MultiSelectValueSchema, type NumberField, NumberFieldSchema, type NumberValue, NumberValueSchema, type Option, type OptionId, OptionIdSchema, OptionSchema, ParseError, type ParsedForm, type Patch, PatchSchema, type ProgressCounts, ProgressCountsSchema, type ProgressState, ProgressStateSchema, type ProgressSummary, ProgressSummarySchema, type QualifiedOptionRef, type RawFieldValue, type SerializeOptions, type SessionFinal, SessionFinalSchema, type SessionTranscript, SessionTranscriptSchema, type SessionTurn, SessionTurnSchema, type SessionTurnStats, type SetCheckboxesPatch, SetCheckboxesPatchSchema, type SetMultiSelectPatch, SetMultiSelectPatchSchema, type SetNumberPatch, SetNumberPatchSchema, type SetSingleSelectPatch, SetSingleSelectPatchSchema, type SetStringListPatch, SetStringListPatchSchema, type SetStringPatch, SetStringPatchSchema, 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 TurnProgress, type TurnStats, VERSION, type ValidateOptions, type ValidateResult, type ValidationIssue, ValidationIssueSchema, type ValidatorContext, type ValidatorFn, type ValidatorRef, ValidatorRefSchema, type ValidatorRegistry, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fillForm, findFieldById, inspect, isFormComplete, parseForm, parseSession, serialize, serializeSession, validate };
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { $ as PatchSchema, A as DocumentationBlockSchema, B as IdSchema, C as ApplyResultSchema, Ct as StructureSummarySchema, D as CheckboxesFieldSchema, E as CheckboxValueSchema, F as FieldProgressSchema, G as MarkformFrontmatterSchema, H as InspectResultSchema, I as FieldSchema, J as MultiSelectValueSchema, K as MultiCheckboxStateSchema, L as FieldValueSchema, M as ExplicitCheckboxValueSchema, N as FieldGroupSchema, O as CheckboxesValueSchema, P as FieldKindSchema, Q as OptionSchema, R as FormSchemaSchema, St as StringValueSchema, T as CheckboxProgressCountsSchema, Tt as ValidatorRefSchema, U as IssueReasonSchema, V as InspectIssueSchema, W as IssueScopeSchema, X as NumberValueSchema, Y as NumberFieldSchema, Z as OptionIdSchema, _t as SourceRangeSchema, a as computeAllSummaries, at as SessionTurnSchema, bt as StringListFieldSchema, c as computeStructureSummary, ct as SetNumberPatchSchema, dt as SetStringPatchSchema, et as ProgressCountsSchema, ft as SeveritySchema, gt as SourcePositionSchema, ht as SingleSelectValueSchema, i as validate, it as SessionTranscriptSchema, j as DocumentationTagSchema, k as ClearFieldPatchSchema, l as isFormComplete, lt as SetSingleSelectPatchSchema, mt as SingleSelectFieldSchema, nt as ProgressSummarySchema, o as computeFormState, ot as SetCheckboxesPatchSchema, pt as SimpleCheckboxStateSchema, q as MultiSelectFieldSchema, r as inspect, rt as SessionFinalSchema, s as computeProgressSummary, st as SetMultiSelectPatchSchema, t as applyPatches, tt as ProgressStateSchema, u as serialize, ut as SetStringListPatchSchema, vt as StepResultSchema, w as CheckboxModeSchema, wt as ValidationIssueSchema, xt as StringListValueSchema, yt as StringFieldSchema, z as HarnessConfigSchema } from "./apply-C0vjijlP.mjs";
2
- import { _ as parseForm, c as createMockAgent, d as coerceInputContext, f as coerceToFieldPatch, g as ParseError, h as serializeSession, l as FormHarness, m as parseSession, n as fillForm, p as findFieldById, s as MockAgent, t as VERSION, u as createHarness } from "./src-DBD3Dt4f.mjs";
1
+ import { $ as OptionSchema, A as ClearFieldPatchSchema, B as HarnessConfigSchema, Ct as StringValueSchema, D as CheckboxValueSchema, E as CheckboxProgressCountsSchema, Et as ValidatorRefSchema, F as FieldKindSchema, G as IssueScopeSchema, H as InspectIssueSchema, I as FieldProgressSchema, J as MultiSelectFieldSchema, K as MarkformFrontmatterSchema, L as FieldSchema, M as DocumentationTagSchema, N as ExplicitCheckboxValueSchema, O as CheckboxesFieldSchema, P as FieldGroupSchema, Q as OptionIdSchema, R as FieldValueSchema, St as StringListValueSchema, T as CheckboxModeSchema, Tt as ValidationIssueSchema, U as InspectResultSchema, V as IdSchema, W as IssueReasonSchema, X as NumberFieldSchema, Y as MultiSelectValueSchema, Z as NumberValueSchema, _t as SourcePositionSchema, a as computeAllSummaries, at as SessionTranscriptSchema, bt as StringFieldSchema, c as computeStructureSummary, ct as SetMultiSelectPatchSchema, dt as SetStringListPatchSchema, et as PatchSchema, ft as SetStringPatchSchema, gt as SingleSelectValueSchema, ht as SingleSelectFieldSchema, i as validate, it as SessionFinalSchema, j as DocumentationBlockSchema, k as CheckboxesValueSchema, l as isFormComplete, lt as SetNumberPatchSchema, mt as SimpleCheckboxStateSchema, nt as ProgressStateSchema, o as computeFormState, ot as SessionTurnSchema, pt as SeveritySchema, q as MultiCheckboxStateSchema, r as inspect, rt as ProgressSummarySchema, s as computeProgressSummary, st as SetCheckboxesPatchSchema, t as applyPatches, tt as ProgressCountsSchema, u as serialize, ut as SetSingleSelectPatchSchema, vt as SourceRangeSchema, w as ApplyResultSchema, wt as StructureSummarySchema, xt as StringListFieldSchema, yt as StepResultSchema, z as FormSchemaSchema } from "./apply-BQdd-fdx.mjs";
2
+ import { _ as parseForm, c as createMockAgent, d as coerceInputContext, f as coerceToFieldPatch, g as ParseError, h as serializeSession, l as FormHarness, m as parseSession, n as fillForm, p as findFieldById, s as MockAgent, t as VERSION, u as createHarness } from "./src-Cs4_9lWP.mjs";
3
3
 
4
4
  export { ApplyResultSchema, CheckboxModeSchema, CheckboxProgressCountsSchema, CheckboxValueSchema, CheckboxesFieldSchema, CheckboxesValueSchema, ClearFieldPatchSchema, DocumentationBlockSchema, DocumentationTagSchema, ExplicitCheckboxValueSchema, FieldGroupSchema, FieldKindSchema, FieldProgressSchema, FieldSchema, FieldValueSchema, FormHarness, FormSchemaSchema, HarnessConfigSchema, IdSchema, InspectIssueSchema, InspectResultSchema, IssueReasonSchema, IssueScopeSchema, MarkformFrontmatterSchema, MockAgent, MultiCheckboxStateSchema, MultiSelectFieldSchema, MultiSelectValueSchema, NumberFieldSchema, NumberValueSchema, OptionIdSchema, OptionSchema, ParseError, PatchSchema, ProgressCountsSchema, ProgressStateSchema, ProgressSummarySchema, SessionFinalSchema, SessionTranscriptSchema, SessionTurnSchema, SetCheckboxesPatchSchema, SetMultiSelectPatchSchema, SetNumberPatchSchema, SetSingleSelectPatchSchema, SetStringListPatchSchema, SetStringPatchSchema, SeveritySchema, SimpleCheckboxStateSchema, SingleSelectFieldSchema, SingleSelectValueSchema, SourcePositionSchema, SourceRangeSchema, StepResultSchema, StringFieldSchema, StringListFieldSchema, StringListValueSchema, StringValueSchema, StructureSummarySchema, VERSION, ValidationIssueSchema, ValidatorRefSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fillForm, findFieldById, inspect, isFormComplete, parseForm, parseSession, serialize, serializeSession, validate };