markform 0.1.9 → 0.1.11
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 -1
- package/dist/ai-sdk.d.mts +1 -1
- package/dist/ai-sdk.mjs +3 -3
- package/dist/{apply-B2kt6C2z.mjs → apply-yfRtNIHc.mjs} +405 -334
- package/dist/bin.mjs +1 -1
- package/dist/{cli-Dt_PlYi_.mjs → cli-Dtjcg98Y.mjs} +57 -45
- package/dist/cli.mjs +1 -1
- package/dist/{coreTypes-JCPm418M.d.mts → coreTypes-Cw_cJsa5.d.mts} +30 -30
- package/dist/{coreTypes-B1oI7qvV.mjs → coreTypes-Z8SvQyoL.mjs} +6 -6
- package/dist/index.d.mts +182 -11
- package/dist/index.mjs +5 -5
- package/dist/{session-CzCh6JeY.mjs → session-BJe-hei3.mjs} +1 -1
- package/dist/{session-Dxqwt0RC.mjs → session-DX-DvjRP.mjs} +5 -5
- package/dist/{src-DFsC5wwy.mjs → src-ozWOSQTW.mjs} +150 -129
- package/docs/markform-apis.md +25 -2
- package/docs/markform-spec.md +101 -50
- package/examples/movie-research/movie-deep-research-mock-filled.form.md +601 -0
- package/examples/rejection-test/rejection-test.session.yaml +4 -4
- package/examples/simple/simple-mock-filled.schema.json +20 -16
- package/examples/simple/simple-skipped-filled.schema.json +20 -16
- package/examples/simple/simple-with-skips.session.yaml +17 -17
- package/examples/simple/simple.schema.json +20 -16
- package/examples/simple/simple.session.yaml +19 -19
- package/examples/startup-deep-research/startup-deep-research.form.md +21 -36
- package/examples/startup-research/startup-research.form.md +34 -33
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# Markform
|
|
2
2
|
|
|
3
3
|
[](https://github.com/jlevy/markform/actions/workflows/ci.yml)
|
|
4
|
-

|
|
4
|
+
 [](https://x.com/ojoshe)
|
|
5
6
|
|
|
6
7
|
**Markform** is a text format for defining structured forms that humans can read,
|
|
7
8
|
machines can parse, and agents can fill via tool calls.
|
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-
|
|
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-Cw_cJsa5.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-
|
|
3
|
-
import { d as
|
|
2
|
+
import { L as PatchSchema } from "./coreTypes-Z8SvQyoL.mjs";
|
|
3
|
+
import { d as serializeForm, i as inspect, t as applyPatches } from "./apply-yfRtNIHc.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
|
|
6
6
|
//#region src/integrations/vercelAiSdkTools.ts
|
|
@@ -151,7 +151,7 @@ function createMarkformTools(options) {
|
|
|
151
151
|
description: "Get the canonical Markdown representation of the current form. Use this to see the complete form with all current values in Markform format. The output is deterministic and round-trip safe.",
|
|
152
152
|
inputSchema: GetMarkdownInputSchema,
|
|
153
153
|
execute: () => {
|
|
154
|
-
const markdown =
|
|
154
|
+
const markdown = serializeForm(sessionStore.getForm());
|
|
155
155
|
return Promise.resolve({
|
|
156
156
|
success: true,
|
|
157
157
|
data: { markdown },
|