markform 0.1.13 → 0.1.14

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/ai-sdk.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { At as PatchSchema, Dt as ParsedForm, Ot as Patch, Q as Id, V as FieldResponse, dr as ValidatorRegistry, q as FormSchema, r as ApplyResult, rt as InspectResult } from "./coreTypes-2Duxp-Wo.mjs";
2
+ import { At as PatchSchema, Dt as ParsedForm, Ot as Patch, Q as Id, V as FieldResponse, dr as ValidatorRegistry, q as FormSchema, r as ApplyResult, rt as InspectResult } from "./coreTypes-CnKsB1H3.mjs";
3
3
  import { z } from "zod";
4
4
 
5
5
  //#region src/integrations/toolTypes.d.ts
package/dist/ai-sdk.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
- import { L as PatchSchema } from "./coreTypes-Big8sgih.mjs";
3
- import { d as serializeForm, i as inspect, t as applyPatches } from "./apply-D5FLd9Yp.mjs";
2
+ import { L as PatchSchema } from "./coreTypes-DiCddBKu.mjs";
3
+ import { d as serializeForm, i as inspect, t as applyPatches } from "./apply-CUH_16RD.mjs";
4
4
  import { z } from "zod";
5
5
 
6
6
  //#region src/integrations/vercelAiSdkTools.ts
@@ -2,7 +2,7 @@
2
2
  import YAML from "yaml";
3
3
 
4
4
  //#region src/errors.ts
5
- const VERSION = "0.1.13";
5
+ const VERSION = "0.1.14";
6
6
  /**
7
7
  * Base error class for all markform errors.
8
8
  * Consumers can catch this to handle any markform error.
@@ -2685,6 +2685,22 @@ function normalizePatch(form, patch, index) {
2685
2685
  }
2686
2686
  if (patch.op === "set_checkboxes" && field.kind === "checkboxes") {
2687
2687
  if (!patch.value) return { patch };
2688
+ if (Array.isArray(patch.value)) {
2689
+ const defaultState = field.checkboxMode === "explicit" ? "yes" : "done";
2690
+ const values = {};
2691
+ for (const item of patch.value) if (typeof item === "string") values[item] = defaultState;
2692
+ if (patch.value.length === 0) return { patch: {
2693
+ ...patch,
2694
+ value: values
2695
+ } };
2696
+ return {
2697
+ patch: {
2698
+ ...patch,
2699
+ value: values
2700
+ },
2701
+ warning: createWarning(index, field.id, "array_to_checkboxes", `Coerced array to checkboxes object with '${defaultState}' state`)
2702
+ };
2703
+ }
2688
2704
  let needsNormalization = false;
2689
2705
  for (const value of Object.values(patch.value)) if (typeof value === "boolean") {
2690
2706
  needsNormalization = true;
package/dist/bin.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
 
4
- import { t as runCli } from "./cli-BQO5bzfd.mjs";
4
+ import { t as runCli } from "./cli-ixzNVirs.mjs";
5
5
  import { resolve } from "node:path";
6
6
  import { existsSync } from "node:fs";
7
7
  import { config } from "dotenv";
@@ -1,8 +1,8 @@
1
1
 
2
- import { L as PatchSchema } from "./coreTypes-Big8sgih.mjs";
3
- import { A as deriveExportPath, B as parseModelIdForDisplay, C as DEFAULT_RESEARCH_MAX_ISSUES_PER_TURN, D as MAX_FORMS_IN_MENU, F as SUGGESTED_LLMS, I as WEB_SEARCH_CONFIG, L as formatSuggestedLlms, M as deriveSchemaPath, N as detectFileType, O as REPORT_EXTENSION, P as parseRolesFlag, _ as DEFAULT_MAX_ISSUES_PER_TURN, b as DEFAULT_MAX_TURNS, d as serializeForm, f as serializeRawMarkdown, g as DEFAULT_FORMS_DIR, h as ALL_EXTENSIONS, i as inspect, j as deriveReportPath, k as USER_ROLE, m as AGENT_ROLE, n as getAllFields, p as serializeReport, t as applyPatches, v as DEFAULT_MAX_PATCHES_PER_TURN, w as DEFAULT_RESEARCH_MAX_PATCHES_PER_TURN, x as DEFAULT_PORT, z as hasWebSearchSupport } from "./apply-D5FLd9Yp.mjs";
4
- import { D as parseForm, E as formToJsonSchema, a as resolveHarnessConfig, c as getProviderNames, d as createLiveAgent, h as createHarness, i as runResearch, l as resolveModel, n as isResearchForm, o as fillForm, p as createMockAgent, s as getProviderInfo, t as VERSION, u as buildMockWireFormat } from "./src-DuA3kv-E.mjs";
5
- import { n as serializeSession } from "./session-CrhOG4eH.mjs";
2
+ import { L as PatchSchema } from "./coreTypes-DiCddBKu.mjs";
3
+ import { A as deriveExportPath, B as parseModelIdForDisplay, C as DEFAULT_RESEARCH_MAX_ISSUES_PER_TURN, D as MAX_FORMS_IN_MENU, F as SUGGESTED_LLMS, I as WEB_SEARCH_CONFIG, L as formatSuggestedLlms, M as deriveSchemaPath, N as detectFileType, O as REPORT_EXTENSION, P as parseRolesFlag, _ as DEFAULT_MAX_ISSUES_PER_TURN, b as DEFAULT_MAX_TURNS, d as serializeForm, f as serializeRawMarkdown, g as DEFAULT_FORMS_DIR, h as ALL_EXTENSIONS, i as inspect, j as deriveReportPath, k as USER_ROLE, m as AGENT_ROLE, n as getAllFields, p as serializeReport, t as applyPatches, v as DEFAULT_MAX_PATCHES_PER_TURN, w as DEFAULT_RESEARCH_MAX_PATCHES_PER_TURN, x as DEFAULT_PORT, z as hasWebSearchSupport } from "./apply-CUH_16RD.mjs";
4
+ import { D as parseForm, E as formToJsonSchema, a as resolveHarnessConfig, c as getProviderNames, d as createLiveAgent, h as createHarness, i as runResearch, l as resolveModel, n as isResearchForm, o as fillForm, p as createMockAgent, s as getProviderInfo, t as VERSION, u as buildMockWireFormat } from "./src-BKRKMdgR.mjs";
5
+ import { n as serializeSession } from "./session-XDrocA3j.mjs";
6
6
  import { a as formatPath, c as logError, d as logTiming, f as logVerbose, g as writeFile, i as formatOutput, l as logInfo, m as readFile$1, n as createSpinner, o as getCommandContext, p as logWarn, r as ensureFormsDir, s as logDryRun, t as OUTPUT_FORMATS, u as logSuccess } from "./shared-D3dNi-Gn.mjs";
7
7
  import Markdoc from "@markdoc/markdoc";
8
8
  import YAML from "yaml";
@@ -5111,7 +5111,7 @@ function registerResearchCommand(program) {
5111
5111
  console.log(` ${formPath} ${pc.dim("(filled markform source)")}`);
5112
5112
  console.log(` ${schemaPath} ${pc.dim("(JSON Schema)")}`);
5113
5113
  if (options.transcript && result.transcript) {
5114
- const { serializeSession: serializeSession$1 } = await import("./session-7QJlUeNg.mjs");
5114
+ const { serializeSession: serializeSession$1 } = await import("./session-B7aR6hno.mjs");
5115
5115
  const transcriptPath = outputPath.replace(/\.form\.md$/, ".session.yaml");
5116
5116
  const { writeFile: writeFile$1 } = await import("./shared-CNqwaxUt.mjs");
5117
5117
  await writeFile$1(transcriptPath, serializeSession$1(result.transcript));
package/dist/cli.mjs CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
- import { t as runCli } from "./cli-BQO5bzfd.mjs";
2
+ import { t as runCli } from "./cli-ixzNVirs.mjs";
3
3
 
4
4
  export { runCli };
@@ -468,7 +468,7 @@ interface PatchRejection {
468
468
  columnIds?: string[];
469
469
  }
470
470
  /** Coercion type for patch warnings */
471
- type PatchCoercionType = 'string_to_list' | 'url_to_list' | 'option_to_array' | 'boolean_to_checkbox';
471
+ type PatchCoercionType = 'string_to_list' | 'url_to_list' | 'option_to_array' | 'boolean_to_checkbox' | 'array_to_checkboxes';
472
472
  /** Warning for coerced patches */
473
473
  interface PatchWarning {
474
474
  patchIndex: number;
@@ -2733,6 +2733,7 @@ declare const ApplyResultSchema: z.ZodObject<{
2733
2733
  url_to_list: "url_to_list";
2734
2734
  option_to_array: "option_to_array";
2735
2735
  boolean_to_checkbox: "boolean_to_checkbox";
2736
+ array_to_checkboxes: "array_to_checkboxes";
2736
2737
  }>;
2737
2738
  }, z.core.$strip>>;
2738
2739
  }, z.core.$strip>;
@@ -3223,6 +3224,7 @@ declare const SessionTurnSchema: z.ZodObject<{
3223
3224
  url_to_list: "url_to_list";
3224
3225
  option_to_array: "option_to_array";
3225
3226
  boolean_to_checkbox: "boolean_to_checkbox";
3227
+ array_to_checkboxes: "array_to_checkboxes";
3226
3228
  }>;
3227
3229
  }, z.core.$strip>>>;
3228
3230
  }, z.core.$strip>;
@@ -3428,6 +3430,7 @@ declare const SessionTranscriptSchema: z.ZodObject<{
3428
3430
  url_to_list: "url_to_list";
3429
3431
  option_to_array: "option_to_array";
3430
3432
  boolean_to_checkbox: "boolean_to_checkbox";
3433
+ array_to_checkboxes: "array_to_checkboxes";
3431
3434
  }>;
3432
3435
  }, z.core.$strip>>>;
3433
3436
  }, z.core.$strip>;
@@ -458,7 +458,8 @@ const PatchCoercionTypeSchema = z.enum([
458
458
  "string_to_list",
459
459
  "url_to_list",
460
460
  "option_to_array",
461
- "boolean_to_checkbox"
461
+ "boolean_to_checkbox",
462
+ "array_to_checkboxes"
462
463
  ]);
463
464
  const PatchWarningSchema = z.object({
464
465
  patchIndex: z.number().int().nonnegative(),
package/dist/index.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { $ as IdIndexEntry, $n as UrlListField, $t as SetMultiSelectPatch, A as ExplicitCheckboxValue, An as StepResultSchema, At as PatchSchema, B as FieldProgressSchema, Bn as StructureSummarySchema, Bt as RunModeSchema, C as DateFieldSchema, Cn as SingleSelectValue, Cr as WireToolResultSchema, Ct as Option, D as DocumentationBlockSchema, Dn as SourceRange, Dr as YearValueSchema, Dt as ParsedForm, E as DocumentationBlock, En as SourcePositionSchema, Er as YearValue, Et as OptionSchema, F as FieldGroupSchema, Fn as StringListValue, Ft as ProgressSummary, G as FieldValueSchema, Gn as TableRowPatch, Gt as SessionTurn, H as FieldResponseSchema, Hn as TableColumnSchema, Ht as SessionFinalSchema, I as FieldKind, In as StringListValueSchema, It as ProgressSummarySchema, J as FormSchemaSchema, Jn as TableRowResponseSchema, Jt as SessionTurnStats, K as FillMode, Kn as TableRowPatchSchema, Kt as SessionTurnContext, L as FieldKindSchema, Ln as StringValue, Lt as QualifiedColumnRef, M as Field, Mn as StringFieldSchema, Mt as ProgressCountsSchema, N as FieldBase, Nn as StringListField, Nt as ProgressState, O as DocumentationTag, On as SourceRangeSchema, Ot as Patch, P as FieldGroup, Pn as StringListFieldSchema, Pt as ProgressStateSchema, Q as Id, Qn as UrlFieldSchema, Qt as SetDatePatchSchema, R as FieldPriorityLevel, Rn as StringValueSchema, Rt as QualifiedOptionRef, S as DateField, Sn as SingleSelectFieldSchema, Sr as WireToolResult, St as NumberValueSchema, T as DateValueSchema, Tn as SourcePosition, Tr as YearFieldSchema, Tt as OptionIdSchema, U as FieldSchema, Un as TableField, Ut as SessionTranscript, V as FieldResponse, Vn as TableColumn, Vt as SessionFinal, W as FieldValue, Wn as TableFieldSchema, Wt as SessionTranscriptSchema, X as HarnessConfig, Xn as TableValueSchema, Xt as SetCheckboxesPatchSchema, Y as FrontmatterHarnessConfig, Yn as TableValue, Yt as SetCheckboxesPatch, Z as HarnessConfigSchema, Zn as UrlField, Zt as SetDatePatch, _ as CheckboxesValueSchema, _n as Severity, _r as WireResponseFormatSchema, _t as NodeType, a as ApprovalMode, an as SetStringListPatch, ar as ValidationIssue, at as IssueReason, b as ColumnTypeName, bn as SimpleCheckboxStateSchema, br as WireToolCall, bt as NumberFieldSchema, c as CheckboxMode, cn as SetStringPatchSchema, cr as ValidatorFn, ct as IssueScopeSchema, d as CheckboxProgressCountsSchema, dn as SetUrlListPatch, dr as ValidatorRegistry, dt as MultiCheckboxState, en as SetMultiSelectPatchSchema, er as UrlListFieldSchema, et as IdSchema, f as CheckboxValue, fn as SetUrlListPatchSchema, fr as WireFormat, ft as MultiCheckboxStateSchema, g as CheckboxesValue, gn as SetYearPatchSchema, gr as WireResponseFormat, gt as MultiSelectValueSchema, h as CheckboxesFieldSchema, hn as SetYearPatch, hr as WireRequestFormatSchema, ht as MultiSelectValue, i as ApplyResultSchema, in as SetSingleSelectPatchSchema, ir as UrlValueSchema, it as InspectResultSchema, j as ExplicitCheckboxValueSchema, jn as StringField, jt as ProgressCounts, k as DocumentationTagSchema, kn as StepResult, kt as PatchRejection, l as CheckboxModeSchema, ln as SetTablePatch, lr as ValidatorRef, lt as MarkformFrontmatter, m as CheckboxesField, mn as SetUrlPatchSchema, mr as WireRequestFormat, mt as MultiSelectFieldSchema, n as AnswerStateSchema, nn as SetNumberPatchSchema, nr as UrlListValueSchema, nt as InspectIssueSchema, o as CellResponse, on as SetStringListPatchSchema, or as ValidationIssueSchema, ot as IssueReasonSchema, p as CheckboxValueSchema, pn as SetUrlPatch, pr as WireFormatSchema, pt as MultiSelectField, q as FormSchema, qn as TableRowResponse, qt as SessionTurnSchema, r as ApplyResult, rn as SetSingleSelectPatch, rr as UrlValue, rt as InspectResult, s as CellResponseSchema, sn as SetStringPatch, sr as ValidatorContext, st as IssueScope, t as AnswerState, tn as SetNumberPatch, tr as UrlListValue, tt as InspectIssue, u as CheckboxProgressCounts, un as SetTablePatchSchema, ur as ValidatorRefSchema, ut as MarkformFrontmatterSchema, v as ClearFieldPatch, vn as SeveritySchema, vr as WireResponseStep, vt as Note, w as DateValue, wn as SingleSelectValueSchema, wr as YearField, wt as OptionId, x as ColumnTypeNameSchema, xn as SingleSelectField, xr as WireToolCallSchema, xt as NumberValue, y as ClearFieldPatchSchema, yn as SimpleCheckboxState, yr as WireResponseStepSchema, yt as NumberField, z as FieldProgress, zn as StructureSummary, zt as RunMode } from "./coreTypes-2Duxp-Wo.mjs";
2
+ import { $ as IdIndexEntry, $n as UrlListField, $t as SetMultiSelectPatch, A as ExplicitCheckboxValue, An as StepResultSchema, At as PatchSchema, B as FieldProgressSchema, Bn as StructureSummarySchema, Bt as RunModeSchema, C as DateFieldSchema, Cn as SingleSelectValue, Cr as WireToolResultSchema, Ct as Option, D as DocumentationBlockSchema, Dn as SourceRange, Dr as YearValueSchema, Dt as ParsedForm, E as DocumentationBlock, En as SourcePositionSchema, Er as YearValue, Et as OptionSchema, F as FieldGroupSchema, Fn as StringListValue, Ft as ProgressSummary, G as FieldValueSchema, Gn as TableRowPatch, Gt as SessionTurn, H as FieldResponseSchema, Hn as TableColumnSchema, Ht as SessionFinalSchema, I as FieldKind, In as StringListValueSchema, It as ProgressSummarySchema, J as FormSchemaSchema, Jn as TableRowResponseSchema, Jt as SessionTurnStats, K as FillMode, Kn as TableRowPatchSchema, Kt as SessionTurnContext, L as FieldKindSchema, Ln as StringValue, Lt as QualifiedColumnRef, M as Field, Mn as StringFieldSchema, Mt as ProgressCountsSchema, N as FieldBase, Nn as StringListField, Nt as ProgressState, O as DocumentationTag, On as SourceRangeSchema, Ot as Patch, P as FieldGroup, Pn as StringListFieldSchema, Pt as ProgressStateSchema, Q as Id, Qn as UrlFieldSchema, Qt as SetDatePatchSchema, R as FieldPriorityLevel, Rn as StringValueSchema, Rt as QualifiedOptionRef, S as DateField, Sn as SingleSelectFieldSchema, Sr as WireToolResult, St as NumberValueSchema, T as DateValueSchema, Tn as SourcePosition, Tr as YearFieldSchema, Tt as OptionIdSchema, U as FieldSchema, Un as TableField, Ut as SessionTranscript, V as FieldResponse, Vn as TableColumn, Vt as SessionFinal, W as FieldValue, Wn as TableFieldSchema, Wt as SessionTranscriptSchema, X as HarnessConfig, Xn as TableValueSchema, Xt as SetCheckboxesPatchSchema, Y as FrontmatterHarnessConfig, Yn as TableValue, Yt as SetCheckboxesPatch, Z as HarnessConfigSchema, Zn as UrlField, Zt as SetDatePatch, _ as CheckboxesValueSchema, _n as Severity, _r as WireResponseFormatSchema, _t as NodeType, a as ApprovalMode, an as SetStringListPatch, ar as ValidationIssue, at as IssueReason, b as ColumnTypeName, bn as SimpleCheckboxStateSchema, br as WireToolCall, bt as NumberFieldSchema, c as CheckboxMode, cn as SetStringPatchSchema, cr as ValidatorFn, ct as IssueScopeSchema, d as CheckboxProgressCountsSchema, dn as SetUrlListPatch, dr as ValidatorRegistry, dt as MultiCheckboxState, en as SetMultiSelectPatchSchema, er as UrlListFieldSchema, et as IdSchema, f as CheckboxValue, fn as SetUrlListPatchSchema, fr as WireFormat, ft as MultiCheckboxStateSchema, g as CheckboxesValue, gn as SetYearPatchSchema, gr as WireResponseFormat, gt as MultiSelectValueSchema, h as CheckboxesFieldSchema, hn as SetYearPatch, hr as WireRequestFormatSchema, ht as MultiSelectValue, i as ApplyResultSchema, in as SetSingleSelectPatchSchema, ir as UrlValueSchema, it as InspectResultSchema, j as ExplicitCheckboxValueSchema, jn as StringField, jt as ProgressCounts, k as DocumentationTagSchema, kn as StepResult, kt as PatchRejection, l as CheckboxModeSchema, ln as SetTablePatch, lr as ValidatorRef, lt as MarkformFrontmatter, m as CheckboxesField, mn as SetUrlPatchSchema, mr as WireRequestFormat, mt as MultiSelectFieldSchema, n as AnswerStateSchema, nn as SetNumberPatchSchema, nr as UrlListValueSchema, nt as InspectIssueSchema, o as CellResponse, on as SetStringListPatchSchema, or as ValidationIssueSchema, ot as IssueReasonSchema, p as CheckboxValueSchema, pn as SetUrlPatch, pr as WireFormatSchema, pt as MultiSelectField, q as FormSchema, qn as TableRowResponse, qt as SessionTurnSchema, r as ApplyResult, rn as SetSingleSelectPatch, rr as UrlValue, rt as InspectResult, s as CellResponseSchema, sn as SetStringPatch, sr as ValidatorContext, st as IssueScope, t as AnswerState, tn as SetNumberPatch, tr as UrlListValue, tt as InspectIssue, u as CheckboxProgressCounts, un as SetTablePatchSchema, ur as ValidatorRefSchema, ut as MarkformFrontmatterSchema, v as ClearFieldPatch, vn as SeveritySchema, vr as WireResponseStep, vt as Note, w as DateValue, wn as SingleSelectValueSchema, wr as YearField, wt as OptionId, x as ColumnTypeNameSchema, xn as SingleSelectField, xr as WireToolCallSchema, xt as NumberValue, y as ClearFieldPatchSchema, yn as SimpleCheckboxState, yr as WireResponseStepSchema, yt as NumberField, z as FieldProgress, zn as StructureSummary, zt as RunMode } from "./coreTypes-CnKsB1H3.mjs";
3
3
  import { LanguageModel, Tool } from "ai";
4
4
 
5
5
  //#region src/errors.d.ts
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-Big8sgih.mjs";
3
- import { $ as isParseError, G as MarkformParseError, H as MarkformConfigError, J as ParseError, K as MarkformPatchError, Q as isMarkformError, U as MarkformError, V as MarkformAbortError, W as MarkformLlmError, X as isConfigError, Y as isAbortError, Z as isLlmError, a as validate, c as computeProgressSummary, d as serializeForm, et as isPatchError, i as inspect, l as computeStructureSummary, nt as isValidationError, o as computeAllSummaries, p as serializeReport, q as MarkformValidationError, s as computeFormState, t as applyPatches, tt as isRetryableError, u as isFormComplete } from "./apply-D5FLd9Yp.mjs";
4
- import { A as parseRawTable, C as parseScopeRef, D as parseForm, E as formToJsonSchema, O as parseCellValue, S as isQualifiedRef, T as fieldToJsonSchema, _ as coerceToFieldPatch, a as resolveHarnessConfig, b as isCellRef, f as MockAgent, g as coerceInputContext, h as createHarness, i as runResearch, k as parseMarkdownTable, m as FormHarness, n as isResearchForm, o as fillForm, p as createMockAgent, r as validateResearchForm, t as VERSION, v as findFieldById, w as serializeScopeRef, x as isFieldRef, y as getFieldId } from "./src-DuA3kv-E.mjs";
5
- import { n as serializeSession, t as parseSession } from "./session-CrhOG4eH.mjs";
2
+ import { $ as SetUrlListPatchSchema, A as MultiCheckboxStateSchema, At as WireToolResultSchema, B as ProgressSummarySchema, C as HarnessConfigSchema, Ct as ValidationIssueSchema, D as IssueReasonSchema, Dt as WireResponseFormatSchema, E as InspectResultSchema, Et as WireRequestFormatSchema, F as OptionIdSchema, G as SetCheckboxesPatchSchema, H as SessionFinalSchema, I as OptionSchema, J as SetNumberPatchSchema, K as SetDatePatchSchema, L as PatchSchema, M as MultiSelectValueSchema, Mt as YearValueSchema, N as NumberFieldSchema, O as IssueScopeSchema, Ot as WireResponseStepSchema, P as NumberValueSchema, Q as SetTablePatchSchema, R as ProgressCountsSchema, S as FormSchemaSchema, St as UrlValueSchema, T as InspectIssueSchema, Tt as WireFormatSchema, U as SessionTranscriptSchema, V as RunModeSchema, W as SessionTurnSchema, X as SetStringListPatchSchema, Y as SetSingleSelectPatchSchema, Z as SetStringPatchSchema, _ as FieldKindSchema, _t as TableRowResponseSchema, a as CheckboxProgressCountsSchema, at as SingleSelectValueSchema, b as FieldSchema, bt as UrlListFieldSchema, c as CheckboxesValueSchema, ct as StepResultSchema, d as DateFieldSchema, dt as StringListValueSchema, et as SetUrlPatchSchema, f as DateValueSchema, ft as StringValueSchema, g as FieldGroupSchema, gt as TableRowPatchSchema, h as ExplicitCheckboxValueSchema, ht as TableFieldSchema, i as CheckboxModeSchema, it as SingleSelectFieldSchema, j as MultiSelectFieldSchema, jt as YearFieldSchema, k as MarkformFrontmatterSchema, kt as WireToolCallSchema, l as ClearFieldPatchSchema, lt as StringFieldSchema, m as DocumentationTagSchema, mt as TableColumnSchema, n as ApplyResultSchema, nt as SeveritySchema, o as CheckboxValueSchema, ot as SourcePositionSchema, p as DocumentationBlockSchema, pt as StructureSummarySchema, q as SetMultiSelectPatchSchema, r as CellResponseSchema, rt as SimpleCheckboxStateSchema, s as CheckboxesFieldSchema, st as SourceRangeSchema, t as AnswerStateSchema, tt as SetYearPatchSchema, u as ColumnTypeNameSchema, ut as StringListFieldSchema, v as FieldProgressSchema, vt as TableValueSchema, w as IdSchema, wt as ValidatorRefSchema, x as FieldValueSchema, xt as UrlListValueSchema, y as FieldResponseSchema, yt as UrlFieldSchema, z as ProgressStateSchema } from "./coreTypes-DiCddBKu.mjs";
3
+ import { $ as isParseError, G as MarkformParseError, H as MarkformConfigError, J as ParseError, K as MarkformPatchError, Q as isMarkformError, U as MarkformError, V as MarkformAbortError, W as MarkformLlmError, X as isConfigError, Y as isAbortError, Z as isLlmError, a as validate, c as computeProgressSummary, d as serializeForm, et as isPatchError, i as inspect, l as computeStructureSummary, nt as isValidationError, o as computeAllSummaries, p as serializeReport, q as MarkformValidationError, s as computeFormState, t as applyPatches, tt as isRetryableError, u as isFormComplete } from "./apply-CUH_16RD.mjs";
4
+ import { A as parseRawTable, C as parseScopeRef, D as parseForm, E as formToJsonSchema, O as parseCellValue, S as isQualifiedRef, T as fieldToJsonSchema, _ as coerceToFieldPatch, a as resolveHarnessConfig, b as isCellRef, f as MockAgent, g as coerceInputContext, h as createHarness, i as runResearch, k as parseMarkdownTable, m as FormHarness, n as isResearchForm, o as fillForm, p as createMockAgent, r as validateResearchForm, t as VERSION, v as findFieldById, w as serializeScopeRef, x as isFieldRef, y as getFieldId } from "./src-BKRKMdgR.mjs";
5
+ import { n as serializeSession, t as parseSession } from "./session-XDrocA3j.mjs";
6
6
 
7
7
  export { AnswerStateSchema, ApplyResultSchema, CellResponseSchema, CheckboxModeSchema, CheckboxProgressCountsSchema, CheckboxValueSchema, CheckboxesFieldSchema, CheckboxesValueSchema, ClearFieldPatchSchema, ColumnTypeNameSchema, DateFieldSchema, DateValueSchema, DocumentationBlockSchema, DocumentationTagSchema, ExplicitCheckboxValueSchema, FieldGroupSchema, FieldKindSchema, FieldProgressSchema, FieldResponseSchema, FieldSchema, FieldValueSchema, FormHarness, FormSchemaSchema, HarnessConfigSchema, IdSchema, InspectIssueSchema, InspectResultSchema, IssueReasonSchema, IssueScopeSchema, MarkformAbortError, MarkformConfigError, MarkformError, MarkformFrontmatterSchema, MarkformLlmError, MarkformParseError, MarkformPatchError, MarkformValidationError, MockAgent, MultiCheckboxStateSchema, MultiSelectFieldSchema, MultiSelectValueSchema, NumberFieldSchema, NumberValueSchema, OptionIdSchema, OptionSchema, ParseError, PatchSchema, ProgressCountsSchema, ProgressStateSchema, ProgressSummarySchema, RunModeSchema, SessionFinalSchema, SessionTranscriptSchema, SessionTurnSchema, SetCheckboxesPatchSchema, SetDatePatchSchema, SetMultiSelectPatchSchema, SetNumberPatchSchema, SetSingleSelectPatchSchema, SetStringListPatchSchema, SetStringPatchSchema, SetTablePatchSchema, SetUrlListPatchSchema, SetUrlPatchSchema, SetYearPatchSchema, SeveritySchema, SimpleCheckboxStateSchema, SingleSelectFieldSchema, SingleSelectValueSchema, SourcePositionSchema, SourceRangeSchema, StepResultSchema, StringFieldSchema, StringListFieldSchema, StringListValueSchema, StringValueSchema, StructureSummarySchema, TableColumnSchema, TableFieldSchema, TableRowPatchSchema, TableRowResponseSchema, TableValueSchema, UrlFieldSchema, UrlListFieldSchema, UrlListValueSchema, UrlValueSchema, VERSION, ValidationIssueSchema, ValidatorRefSchema, WireFormatSchema, WireRequestFormatSchema, WireResponseFormatSchema, WireResponseStepSchema, WireToolCallSchema, WireToolResultSchema, YearFieldSchema, YearValueSchema, applyPatches, coerceInputContext, coerceToFieldPatch, computeAllSummaries, computeFormState, computeProgressSummary, computeStructureSummary, createHarness, createMockAgent, fieldToJsonSchema, fillForm, findFieldById, formToJsonSchema, getFieldId, inspect, isAbortError, isCellRef, isConfigError, isFieldRef, isFormComplete, isLlmError, isMarkformError, isParseError, isPatchError, isQualifiedRef, isResearchForm, isRetryableError, isValidationError, parseCellValue, parseForm, parseMarkdownTable, parseRawTable, parseScopeRef, parseSession, resolveHarnessConfig, runResearch, serializeForm, serializeReport, serializeScopeRef, serializeSession, validate, validateResearchForm };
@@ -1,4 +1,4 @@
1
1
 
2
- import { n as serializeSession, t as parseSession } from "./session-CrhOG4eH.mjs";
2
+ import { n as serializeSession, t as parseSession } from "./session-XDrocA3j.mjs";
3
3
 
4
4
  export { serializeSession };
@@ -1,5 +1,5 @@
1
1
 
2
- import { U as SessionTranscriptSchema } from "./coreTypes-Big8sgih.mjs";
2
+ import { U as SessionTranscriptSchema } from "./coreTypes-DiCddBKu.mjs";
3
3
  import YAML from "yaml";
4
4
 
5
5
  //#region src/engine/session.ts
@@ -1,6 +1,6 @@
1
1
 
2
- import { L as PatchSchema, V as RunModeSchema } from "./coreTypes-Big8sgih.mjs";
3
- import { C as DEFAULT_RESEARCH_MAX_ISSUES_PER_TURN, E as DEFAULT_ROLE_INSTRUCTIONS, G as MarkformParseError, H as MarkformConfigError, R as getWebSearchConfig, S as DEFAULT_PRIORITY, T as DEFAULT_ROLES, _ as DEFAULT_MAX_ISSUES_PER_TURN, b as DEFAULT_MAX_TURNS, d as serializeForm, i as inspect, m as AGENT_ROLE, r as getFieldsForRoles, t as applyPatches, v as DEFAULT_MAX_PATCHES_PER_TURN, w as DEFAULT_RESEARCH_MAX_PATCHES_PER_TURN, y as DEFAULT_MAX_STEPS_PER_TURN } from "./apply-D5FLd9Yp.mjs";
2
+ import { L as PatchSchema, V as RunModeSchema } from "./coreTypes-DiCddBKu.mjs";
3
+ import { C as DEFAULT_RESEARCH_MAX_ISSUES_PER_TURN, E as DEFAULT_ROLE_INSTRUCTIONS, G as MarkformParseError, H as MarkformConfigError, R as getWebSearchConfig, S as DEFAULT_PRIORITY, T as DEFAULT_ROLES, _ as DEFAULT_MAX_ISSUES_PER_TURN, b as DEFAULT_MAX_TURNS, d as serializeForm, i as inspect, m as AGENT_ROLE, r as getFieldsForRoles, t as applyPatches, v as DEFAULT_MAX_PATCHES_PER_TURN, w as DEFAULT_RESEARCH_MAX_PATCHES_PER_TURN, y as DEFAULT_MAX_STEPS_PER_TURN } from "./apply-CUH_16RD.mjs";
4
4
  import { z } from "zod";
5
5
  import Markdoc from "@markdoc/markdoc";
6
6
  import YAML from "yaml";
@@ -2139,12 +2139,41 @@ function coerceToCheckboxes(field, rawValue) {
2139
2139
  value: {}
2140
2140
  }
2141
2141
  };
2142
+ const validOptions = new Set(field.options.map((o) => o.id));
2143
+ const checkboxMode = field.checkboxMode;
2144
+ if (Array.isArray(rawValue)) {
2145
+ const defaultState = checkboxMode === "explicit" ? "yes" : "done";
2146
+ const values$1 = {};
2147
+ for (const item of rawValue) {
2148
+ if (typeof item !== "string") return {
2149
+ ok: false,
2150
+ error: `Array items for checkboxes field '${field.id}' must be strings (option IDs), got ${typeof item}`
2151
+ };
2152
+ if (!validOptions.has(item)) return {
2153
+ ok: false,
2154
+ error: `Invalid option '${item}' for checkboxes field '${field.id}'. Valid options: ${Array.from(validOptions).join(", ")}`
2155
+ };
2156
+ values$1[item] = defaultState;
2157
+ }
2158
+ const patch$1 = {
2159
+ op: "set_checkboxes",
2160
+ fieldId: field.id,
2161
+ value: values$1
2162
+ };
2163
+ if (rawValue.length === 0) return {
2164
+ ok: true,
2165
+ patch: patch$1
2166
+ };
2167
+ return {
2168
+ ok: true,
2169
+ patch: patch$1,
2170
+ warning: `Coerced array to checkboxes object with '${defaultState}' state for field '${field.id}'`
2171
+ };
2172
+ }
2142
2173
  if (!isPlainObject(rawValue)) return {
2143
2174
  ok: false,
2144
- error: `checkboxes field '${field.id}' requires a Record<string, CheckboxValue>, got ${typeof rawValue}`
2175
+ error: `checkboxes field '${field.id}' requires a Record<string, CheckboxValue> or array of option IDs, got ${typeof rawValue}`
2145
2176
  };
2146
- const validOptions = new Set(field.options.map((o) => o.id));
2147
- const checkboxMode = field.checkboxMode;
2148
2177
  const values = {};
2149
2178
  let hadBooleanCoercion = false;
2150
2179
  const validValues = new Set(checkboxMode === "explicit" ? [
@@ -7861,25 +7890,51 @@ var anthropic = createAnthropic();
7861
7890
  * fabrication of data.
7862
7891
  */
7863
7892
  const DEFAULT_SYSTEM_PROMPT = `# Form Instructions
7864
- Carefully research answers to all questions in the form, using all available tools you have.
7865
7893
 
7866
- Guidelines:
7867
- 1. Focus on required fields first (severity: "required"), then address optional fields (severity: "recommended")
7868
- 2. You MUST address ALL issues shown to you - both required AND recommended (optional)
7869
- 3. NEVER fabricate or guess information - only use data you can verify
7870
- 4. If you cannot find verifiable information for a field, use skip_field to mark it as skipped with a reason
7871
- 5. For string fields: use appropriate text from verified sources
7872
- 6. For number fields: use appropriate numeric values from verified sources
7873
- 7. For single_select: choose one valid option ID
7874
- 8. For multi_select: choose one or more valid option IDs
7875
- 9. For checkboxes: use the appropriate state for the checkbox mode:
7876
- - Mode "simple": done (checked) or todo (unchecked)
7877
- - Mode "multi": done, todo, or na (not applicable)
7878
- - Mode "explicit": yes or no (must explicitly answer)
7894
+ Research and fill the form fields using all available tools. Focus on accuracy over completeness.
7895
+
7896
+ ## Guidelines
7897
+ 1. Address required fields first (severity: "required"), then optional fields (severity: "recommended")
7898
+ 2. NEVER fabricate or guess information - only use data you can verify
7899
+ 3. If you cannot find verifiable information, use skip_field with a reason
7900
+
7901
+ ## Patch Format Examples
7902
+
7903
+ Use the fill_form tool with patches in these formats:
7904
+
7905
+ | Type | Example |
7906
+ |------|---------|
7907
+ | string | \`{ op: "set_string", fieldId: "name", value: "Acme Corp" }\` |
7908
+ | number | \`{ op: "set_number", fieldId: "age", value: 32 }\` |
7909
+ | string_list | \`{ op: "set_string_list", fieldId: "tags", value: ["ai", "ml"] }\` |
7910
+ | url | \`{ op: "set_url", fieldId: "website", value: "https://example.com" }\` |
7911
+ | url_list | \`{ op: "set_url_list", fieldId: "sources", value: ["https://a.com", "https://b.com"] }\` |
7912
+ | date | \`{ op: "set_date", fieldId: "event_date", value: "2024-06-15" }\` |
7913
+ | year | \`{ op: "set_year", fieldId: "founded", value: 2024 }\` |
7914
+ | single_select | \`{ op: "set_single_select", fieldId: "priority", value: "high" }\` |
7915
+ | multi_select | \`{ op: "set_multi_select", fieldId: "categories", value: ["frontend", "backend"] }\` |
7916
+ | checkboxes | \`{ op: "set_checkboxes", fieldId: "tasks", value: { "task1": "done", "task2": "todo" } }\` |
7917
+ | table | \`{ op: "set_table", fieldId: "team", value: [{ "name": "Alice", "role": "Engineer" }] }\` |
7879
7918
 
7880
- CRITICAL: Accuracy is more important than completeness. Use skip_field when information cannot be verified.
7919
+ ## Important: checkboxes vs multi_select
7881
7920
 
7882
- Always use the fill_form tool to submit your field values.
7921
+ These two types look similar but have DIFFERENT value formats:
7922
+
7923
+ - **multi_select** → array of option IDs: \`["opt1", "opt2"]\`
7924
+ - **checkboxes** → object mapping IDs to states: \`{ "opt1": "done", "opt2": "todo" }\`
7925
+
7926
+ **Checkbox states by mode:**
7927
+ - Mode "simple": \`"done"\` or \`"todo"\`
7928
+ - Mode "multi": \`"done"\`, \`"todo"\`, \`"incomplete"\`, \`"active"\`, or \`"na"\`
7929
+ - Mode "explicit": \`"yes"\` or \`"no"\` (if unknown, use abort_field)
7930
+
7931
+ **WRONG:** \`{ op: "set_checkboxes", value: ["task1", "task2"] }\`
7932
+ **RIGHT:** \`{ op: "set_checkboxes", value: { "task1": "done", "task2": "done" } }\`
7933
+
7934
+ ## Skipping Fields
7935
+
7936
+ If you cannot find verifiable information:
7937
+ \`{ op: "skip_field", fieldId: "...", reason: "Could not find verified data" }\`
7883
7938
  `;
7884
7939
  /**
7885
7940
  * Web search instructions appended when web search tools are available.
@@ -7915,33 +7970,49 @@ function getIssuesIntro(issueCount) {
7915
7970
  * Used in PATCH_FORMAT_INSTRUCTIONS and rejection feedback hints.
7916
7971
  */
7917
7972
  const PATCH_FORMATS = {
7918
- string: "{ op: \"set_string\", fieldId: \"...\", value: \"...\" }",
7919
- number: "{ op: \"set_number\", fieldId: \"...\", value: 123 }",
7920
- string_list: "{ op: \"set_string_list\", fieldId: \"...\", value: [\"...\", \"...\"] }",
7973
+ string: "{ op: \"set_string\", fieldId: \"...\", value: \"text here\" }",
7974
+ number: "{ op: \"set_number\", fieldId: \"...\", value: 42 }",
7975
+ string_list: "{ op: \"set_string_list\", fieldId: \"...\", value: [\"item1\", \"item2\"] }",
7921
7976
  single_select: "{ op: \"set_single_select\", fieldId: \"...\", value: \"option_id\" }",
7922
7977
  multi_select: "{ op: \"set_multi_select\", fieldId: \"...\", value: [\"opt1\", \"opt2\"] }",
7923
7978
  checkboxes: "{ op: \"set_checkboxes\", fieldId: \"...\", value: { \"opt1\": \"done\", \"opt2\": \"todo\" } }",
7924
- url: "{ op: \"set_url\", fieldId: \"...\", value: \"https://...\" }",
7925
- url_list: "{ op: \"set_url_list\", fieldId: \"...\", value: [\"https://...\", \"https://...\"] }",
7926
- date: "{ op: \"set_date\", fieldId: \"...\", value: \"2024-01-15\" }",
7979
+ url: "{ op: \"set_url\", fieldId: \"...\", value: \"https://example.com\" }",
7980
+ url_list: "{ op: \"set_url_list\", fieldId: \"...\", value: [\"https://a.com\", \"https://b.com\"] }",
7981
+ date: "{ op: \"set_date\", fieldId: \"...\", value: \"2024-06-15\" }",
7927
7982
  year: "{ op: \"set_year\", fieldId: \"...\", value: 2024 }",
7928
- table: "{ op: \"set_table\", fieldId: \"...\", value: [{ col1: \"value1\", col2: \"value2\" }, ...] }"
7983
+ table: "{ op: \"set_table\", fieldId: \"...\", value: [{ col1: \"val1\", col2: \"val2\" }] }"
7929
7984
  };
7930
7985
  /**
7931
7986
  * Get the correct patch format for a field kind.
7932
7987
  *
7933
7988
  * @param fieldKind - The field kind (e.g., "table", "string")
7934
- * @param fieldId - Optional field ID to substitute in the example
7935
- * @param columnIds - Optional column IDs for table fields
7989
+ * @param options - Optional configuration for the hint
7936
7990
  * @returns The patch format example string
7937
7991
  */
7938
- function getPatchFormatHint(fieldKind, fieldId, columnIds) {
7992
+ function getPatchFormatHint(fieldKind, fieldIdOrOptions, columnIds) {
7993
+ let options = {};
7994
+ if (typeof fieldIdOrOptions === "string") options = {
7995
+ fieldId: fieldIdOrOptions,
7996
+ columnIds
7997
+ };
7998
+ else if (fieldIdOrOptions) options = fieldIdOrOptions;
7939
7999
  let format = PATCH_FORMATS[fieldKind];
7940
8000
  if (!format) return `Use the correct set_${fieldKind} operation for this field type.`;
7941
- if (fieldId) format = format.replace("fieldId: \"...\"", `fieldId: "${fieldId}"`);
7942
- if (fieldKind === "table" && columnIds && columnIds.length > 0) {
7943
- const colExample = columnIds.map((id) => `"${id}": "..."`).join(", ");
7944
- format = format.replace("{ col1: \"value1\", col2: \"value2\" }", `{ ${colExample} }`);
8001
+ if (options.fieldId) format = format.replace("fieldId: \"...\"", `fieldId: "${options.fieldId}"`);
8002
+ if (fieldKind === "checkboxes") {
8003
+ const mode = options.checkboxMode ?? "multi";
8004
+ const optIds = options.optionIds ?? ["opt1", "opt2"];
8005
+ const [state1, state2] = {
8006
+ simple: ["done", "todo"],
8007
+ multi: ["done", "todo"],
8008
+ explicit: ["yes", "no"]
8009
+ }[mode] ?? ["done", "todo"];
8010
+ const valueExample = optIds.length >= 2 ? `{ "${optIds[0]}": "${state1}", "${optIds[1]}": "${state2}" }` : optIds.length === 1 ? `{ "${optIds[0]}": "${state1}" }` : `{ "opt1": "${state1}", "opt2": "${state2}" }`;
8011
+ format = format.replace("{ \"opt1\": \"done\", \"opt2\": \"todo\" }", valueExample);
8012
+ }
8013
+ if (fieldKind === "table" && options.columnIds && options.columnIds.length > 0) {
8014
+ const colExample = options.columnIds.map((id) => `"${id}": "..."`).join(", ");
8015
+ format = format.replace("{ col1: \"val1\", col2: \"val2\" }", `{ ${colExample} }`);
7945
8016
  }
7946
8017
  return format;
7947
8018
  }
@@ -8275,11 +8346,16 @@ function buildContextPrompt(issues, form, maxPatches, previousRejections) {
8275
8346
  const field = findField(form, issue.ref);
8276
8347
  if (field) {
8277
8348
  lines.push(` Type: ${field.kind}`);
8349
+ let optionIds;
8278
8350
  if ("options" in field && field.options) {
8279
- const optionIds = field.options.map((o) => o.id).join(", ");
8280
- lines.push(` Options: ${optionIds}`);
8351
+ optionIds = field.options.map((o) => o.id);
8352
+ lines.push(` Options: ${optionIds.join(", ")}`);
8353
+ }
8354
+ let checkboxMode;
8355
+ if (field.kind === "checkboxes" && "checkboxMode" in field) {
8356
+ checkboxMode = field.checkboxMode ?? "multi";
8357
+ lines.push(` Mode: ${checkboxMode}`);
8281
8358
  }
8282
- if (field.kind === "checkboxes" && "checkboxMode" in field) lines.push(` Mode: ${field.checkboxMode ?? "multi"}`);
8283
8359
  let columnIds;
8284
8360
  if (field.kind === "table" && "columns" in field && field.columns) {
8285
8361
  columnIds = field.columns.map((c) => c.id);
@@ -8292,7 +8368,12 @@ function buildContextPrompt(issues, form, maxPatches, previousRejections) {
8292
8368
  lines.push(` Rows: ${constraints.join(", ")}`);
8293
8369
  }
8294
8370
  }
8295
- const patchHint = getPatchFormatHint(field.kind, field.id, columnIds);
8371
+ const patchHint = getPatchFormatHint(field.kind, {
8372
+ fieldId: field.id,
8373
+ columnIds,
8374
+ checkboxMode,
8375
+ optionIds
8376
+ });
8296
8377
  lines.push(` Set: ${patchHint}`);
8297
8378
  if (issue.severity === "required") lines.push(` This field is required.`);
8298
8379
  else lines.push(` Skip: { op: "skip_field", fieldId: "${field.id}", reason: "..." }`);
@@ -8959,7 +9040,7 @@ function validateResearchForm(form) {
8959
9040
  //#endregion
8960
9041
  //#region src/index.ts
8961
9042
  /** Markform version (injected at build time). */
8962
- const VERSION = "0.1.13";
9043
+ const VERSION = "0.1.14";
8963
9044
 
8964
9045
  //#endregion
8965
9046
  export { parseRawTable as A, parseScopeRef as C, parseForm as D, formToJsonSchema as E, parseCellValue as O, isQualifiedRef as S, fieldToJsonSchema as T, coerceToFieldPatch as _, resolveHarnessConfig as a, isCellRef as b, getProviderNames as c, createLiveAgent as d, MockAgent as f, coerceInputContext as g, createHarness as h, runResearch as i, parseMarkdownTable as k, resolveModel as l, FormHarness as m, isResearchForm as n, fillForm as o, createMockAgent as p, validateResearchForm as r, getProviderInfo as s, VERSION as t, buildMockWireFormat as u, findFieldById as v, serializeScopeRef as w, isFieldRef as x, getFieldId as y };