markform 0.1.19 → 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 +2 -2
- package/dist/ai-sdk.mjs +1 -1
- package/dist/{apply-Dalpt-D6.mjs → apply-DIvm1b1s.mjs} +37 -3
- package/dist/apply-DIvm1b1s.mjs.map +1 -0
- package/dist/bin.mjs +1 -1
- package/dist/{cli-tpvFNqFY.mjs → cli-FFMoEhFS.mjs} +901 -17
- package/dist/cli-FFMoEhFS.mjs.map +1 -0
- package/dist/cli.mjs +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{src-BTyz-wS6.mjs → src-wR7GoftB.mjs} +169 -51
- package/dist/src-wR7GoftB.mjs.map +1 -0
- package/docs/markform-reference.md +15 -1
- package/package.json +8 -8
- package/dist/apply-Dalpt-D6.mjs.map +0 -1
- package/dist/cli-tpvFNqFY.mjs.map +0 -1
- package/dist/src-BTyz-wS6.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# Markform
|
|
2
2
|
|
|
3
|
-
[](https://github.com/jlevy/markform/actions/runs/
|
|
4
|
-
[](https://github.com/jlevy/markform/actions/runs/
|
|
3
|
+
[](https://github.com/jlevy/markform/actions/runs/21559811479)
|
|
4
|
+
[](https://github.com/jlevy/markform/actions/runs/21559811479)
|
|
5
5
|
[](https://www.npmjs.com/package/markform)
|
|
6
6
|
[](https://x.com/ojoshe)
|
|
7
7
|
|
package/dist/ai-sdk.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { L as PatchSchema } from "./coreTypes-CPKXf2dc.mjs";
|
|
3
|
-
import { d as serializeForm, i as inspect, t as applyPatches } from "./apply-
|
|
3
|
+
import { d as serializeForm, i as inspect, t as applyPatches } from "./apply-DIvm1b1s.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.
|
|
5
|
+
const VERSION = "0.1.20";
|
|
6
6
|
/**
|
|
7
7
|
* Base error class for all markform errors.
|
|
8
8
|
* Consumers can catch this to handle any markform error.
|
|
@@ -413,6 +413,24 @@ const REPORT_EXTENSION = ".report.md";
|
|
|
413
413
|
*/
|
|
414
414
|
const SCHEMA_EXTENSION = ".schema.json";
|
|
415
415
|
/**
|
|
416
|
+
* Fill record extension - sidecar file containing execution metadata.
|
|
417
|
+
* Generated by `markform fill --record-fill` and read by `markform serve`.
|
|
418
|
+
*
|
|
419
|
+
* **Recommended naming convention:**
|
|
420
|
+
* - Form file: `document.form.md` → Fill record: `document.fill.json`
|
|
421
|
+
* - Form file: `document.md` → Fill record: `document.fill.json`
|
|
422
|
+
*
|
|
423
|
+
* Using `.form.md` for forms and `.fill.json` for fill records helps tools
|
|
424
|
+
* discover related files automatically. The CLI enforces this convention.
|
|
425
|
+
*
|
|
426
|
+
* The fill record contains:
|
|
427
|
+
* - Session timing and duration
|
|
428
|
+
* - LLM token usage (input/output)
|
|
429
|
+
* - Tool call timeline with results
|
|
430
|
+
* - Form progress at completion
|
|
431
|
+
*/
|
|
432
|
+
const FILL_RECORD_EXTENSION = ".fill.json";
|
|
433
|
+
/**
|
|
416
434
|
* All recognized markform file extensions.
|
|
417
435
|
* Combines export formats with report and schema formats.
|
|
418
436
|
*/
|
|
@@ -471,6 +489,22 @@ function deriveSchemaPath(basePath) {
|
|
|
471
489
|
}
|
|
472
490
|
return base + SCHEMA_EXTENSION;
|
|
473
491
|
}
|
|
492
|
+
/**
|
|
493
|
+
* Derive fill record sidecar path from a form file path.
|
|
494
|
+
*
|
|
495
|
+
* **Convention:**
|
|
496
|
+
* - `document.form.md` → `document.fill.json`
|
|
497
|
+
* - `document.md` → `document.fill.json`
|
|
498
|
+
*
|
|
499
|
+
* Priority: strips `.form.md` first, then falls back to `.md`.
|
|
500
|
+
* This ensures the recommended `.form.md` extension is handled correctly
|
|
501
|
+
* while also supporting plain `.md` files.
|
|
502
|
+
*/
|
|
503
|
+
function deriveFillRecordPath(formPath) {
|
|
504
|
+
if (formPath.endsWith(EXPORT_EXTENSIONS.form)) return formPath.slice(0, -EXPORT_EXTENSIONS.form.length) + FILL_RECORD_EXTENSION;
|
|
505
|
+
if (formPath.endsWith(".md")) return formPath.slice(0, -3) + FILL_RECORD_EXTENSION;
|
|
506
|
+
return formPath + FILL_RECORD_EXTENSION;
|
|
507
|
+
}
|
|
474
508
|
|
|
475
509
|
//#endregion
|
|
476
510
|
//#region src/engine/parseHelpers.ts
|
|
@@ -4259,5 +4293,5 @@ function applyPatches(form, patches) {
|
|
|
4259
4293
|
}
|
|
4260
4294
|
|
|
4261
4295
|
//#endregion
|
|
4262
|
-
export {
|
|
4263
|
-
//# sourceMappingURL=apply-
|
|
4296
|
+
export { SUGGESTED_LLMS as $, parseOptionText as A, DEFAULT_RESEARCH_MAX_ISSUES_PER_TURN as B, extractTableContent as C, getStringAttr as D, getStringArrayAttr as E, DEFAULT_MAX_PATCHES_PER_TURN as F, REPORT_EXTENSION as G, DEFAULT_ROLES as H, DEFAULT_MAX_STEPS_PER_TURN as I, deriveFillRecordPath as J, USER_ROLE as K, DEFAULT_MAX_TURNS as L, DEFAULT_FORMS_DIR as M, DEFAULT_MAX_ISSUES_PER_TURN as N, getValidateAttr as O, DEFAULT_MAX_PARALLEL_AGENTS as P, parseRolesFlag as Q, DEFAULT_PORT as R, extractOptionItems as S, getNumberAttr as T, DEFAULT_ROLE_INSTRUCTIONS as U, DEFAULT_RESEARCH_MAX_PATCHES_PER_TURN as V, MAX_FORMS_IN_MENU as W, deriveSchemaPath as X, deriveReportPath as Y, detectFileType as Z, preprocessCommentSyntax as _, isParseError as _t, validate as a, MarkformAbortError as at, CHECKBOX_MARKERS as b, isValidationError as bt, computeProgressSummary as c, MarkformLlmError as ct, serializeForm as d, MarkformValidationError as dt, WEB_SEARCH_CONFIG as et, serializeRawMarkdown as f, ParseError as ft, detectSyntaxStyle as g, isMarkformError as gt, friendlyUrlAbbrev as h, isLlmError as ht, inspect as i, parseModelIdForDisplay as it, AGENT_ROLE as j, isTagNode as k, computeStructureSummary as l, MarkformParseError as lt, formatBareUrlsAsHtmlLinks as m, isConfigError as mt, getAllFields as n, getWebSearchConfig as nt, computeAllSummaries as o, MarkformConfigError as ot, serializeReport as p, isAbortError as pt, deriveExportPath as q, getFieldsForRoles as r, hasWebSearchSupport as rt, computeFormState as s, MarkformError as st, applyPatches as t, formatSuggestedLlms as tt, isFormComplete as u, MarkformPatchError as ut, validateSyntaxConsistency as v, isPatchError as vt, getBooleanAttr as w, extractFenceValue as x, tryParseSentinelResponse as y, isRetryableError as yt, DEFAULT_PRIORITY as z };
|
|
4297
|
+
//# sourceMappingURL=apply-DIvm1b1s.mjs.map
|