markform 0.1.11 → 0.1.13
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 +1 -1
- package/dist/ai-sdk.mjs +7 -5
- package/dist/{apply-yfRtNIHc.mjs → apply-D5FLd9Yp.mjs} +102 -44
- package/dist/bin.mjs +1 -1
- package/dist/{cli-Dtjcg98Y.mjs → cli-BQO5bzfd.mjs} +7 -7
- package/dist/cli.mjs +1 -1
- package/dist/{coreTypes-Cw_cJsa5.d.mts → coreTypes-2Duxp-Wo.d.mts} +135 -1
- package/dist/{coreTypes-Z8SvQyoL.mjs → coreTypes-Big8sgih.mjs} +30 -9
- package/dist/index.d.mts +39 -6
- package/dist/index.mjs +4 -4
- package/dist/{session-BJe-hei3.mjs → session-7QJlUeNg.mjs} +1 -1
- package/dist/{session-DX-DvjRP.mjs → session-CrhOG4eH.mjs} +1 -1
- package/dist/{src-ozWOSQTW.mjs → src-DuA3kv-E.mjs} +32 -21
- package/docs/markform-apis.md +88 -8
- package/docs/markform-spec.md +33 -28
- package/examples/rejection-test/rejection-test.session.yaml +23 -39
- package/examples/simple/simple-mock-filled.schema.json +64 -12
- package/examples/simple/simple-skipped-filled.schema.json +64 -12
- package/examples/simple/simple-with-skips.session.yaml +23 -23
- package/examples/simple/simple.schema.json +64 -12
- package/examples/simple/simple.session.yaml +23 -23
- package/package.json +1 -1
|
@@ -93,29 +93,49 @@
|
|
|
93
93
|
"properties": {
|
|
94
94
|
"research": {
|
|
95
95
|
"anyOf": [
|
|
96
|
-
{
|
|
97
|
-
|
|
96
|
+
{
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": ["todo", "done", "incomplete", "active", "na"]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"type": "boolean"
|
|
102
|
+
}
|
|
98
103
|
],
|
|
99
104
|
"title": "Research"
|
|
100
105
|
},
|
|
101
106
|
"design": {
|
|
102
107
|
"anyOf": [
|
|
103
|
-
{
|
|
104
|
-
|
|
108
|
+
{
|
|
109
|
+
"type": "string",
|
|
110
|
+
"enum": ["todo", "done", "incomplete", "active", "na"]
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "boolean"
|
|
114
|
+
}
|
|
105
115
|
],
|
|
106
116
|
"title": "Design"
|
|
107
117
|
},
|
|
108
118
|
"implement": {
|
|
109
119
|
"anyOf": [
|
|
110
|
-
{
|
|
111
|
-
|
|
120
|
+
{
|
|
121
|
+
"type": "string",
|
|
122
|
+
"enum": ["todo", "done", "incomplete", "active", "na"]
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"type": "boolean"
|
|
126
|
+
}
|
|
112
127
|
],
|
|
113
128
|
"title": "Implement"
|
|
114
129
|
},
|
|
115
130
|
"test": {
|
|
116
131
|
"anyOf": [
|
|
117
|
-
{
|
|
118
|
-
|
|
132
|
+
{
|
|
133
|
+
"type": "string",
|
|
134
|
+
"enum": ["todo", "done", "incomplete", "active", "na"]
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"type": "boolean"
|
|
138
|
+
}
|
|
119
139
|
],
|
|
120
140
|
"title": "Test"
|
|
121
141
|
}
|
|
@@ -131,11 +151,27 @@
|
|
|
131
151
|
"type": "object",
|
|
132
152
|
"properties": {
|
|
133
153
|
"read_guidelines": {
|
|
134
|
-
"anyOf": [
|
|
154
|
+
"anyOf": [
|
|
155
|
+
{
|
|
156
|
+
"type": "string",
|
|
157
|
+
"enum": ["todo", "done"]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"type": "boolean"
|
|
161
|
+
}
|
|
162
|
+
],
|
|
135
163
|
"title": "I have read the guidelines"
|
|
136
164
|
},
|
|
137
165
|
"agree_terms": {
|
|
138
|
-
"anyOf": [
|
|
166
|
+
"anyOf": [
|
|
167
|
+
{
|
|
168
|
+
"type": "string",
|
|
169
|
+
"enum": ["todo", "done"]
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
"type": "boolean"
|
|
173
|
+
}
|
|
174
|
+
],
|
|
139
175
|
"title": "I agree to the terms"
|
|
140
176
|
}
|
|
141
177
|
},
|
|
@@ -150,11 +186,27 @@
|
|
|
150
186
|
"type": "object",
|
|
151
187
|
"properties": {
|
|
152
188
|
"backed_up": {
|
|
153
|
-
"anyOf": [
|
|
189
|
+
"anyOf": [
|
|
190
|
+
{
|
|
191
|
+
"type": "string",
|
|
192
|
+
"enum": ["unfilled", "yes", "no"]
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"type": "boolean"
|
|
196
|
+
}
|
|
197
|
+
],
|
|
154
198
|
"title": "Data has been backed up"
|
|
155
199
|
},
|
|
156
200
|
"notified": {
|
|
157
|
-
"anyOf": [
|
|
201
|
+
"anyOf": [
|
|
202
|
+
{
|
|
203
|
+
"type": "string",
|
|
204
|
+
"enum": ["unfilled", "yes", "no"]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"type": "boolean"
|
|
208
|
+
}
|
|
209
|
+
],
|
|
158
210
|
"title": "Stakeholders notified"
|
|
159
211
|
}
|
|
160
212
|
},
|
|
@@ -352,7 +352,7 @@ turns:
|
|
|
352
352
|
Severity: required, Priority: P1
|
|
353
353
|
Type: multi_select
|
|
354
354
|
Options: frontend, backend, database, devops
|
|
355
|
-
Set: { op: "set_multi_select", fieldId: "categories",
|
|
355
|
+
Set: { op: "set_multi_select", fieldId: "categories", value: ["opt1", "opt2"] }
|
|
356
356
|
This field is required.
|
|
357
357
|
|
|
358
358
|
- **confirmations** (field): All items in "Confirmations (Explicit Mode)" must be answered (2 unfilled)
|
|
@@ -360,7 +360,7 @@ turns:
|
|
|
360
360
|
Type: checkboxes
|
|
361
361
|
Options: backed_up, notified
|
|
362
362
|
Mode: explicit
|
|
363
|
-
Set: { op: "set_checkboxes", fieldId: "confirmations",
|
|
363
|
+
Set: { op: "set_checkboxes", fieldId: "confirmations", value: { "opt1": "done", "opt2": "todo" } }
|
|
364
364
|
This field is required.
|
|
365
365
|
|
|
366
366
|
- **email** (field): Required field "Email" is empty
|
|
@@ -391,13 +391,13 @@ turns:
|
|
|
391
391
|
Severity: required, Priority: P1
|
|
392
392
|
Type: single_select
|
|
393
393
|
Options: low, medium, high
|
|
394
|
-
Set: { op: "set_single_select", fieldId: "priority",
|
|
394
|
+
Set: { op: "set_single_select", fieldId: "priority", value: "option_id" }
|
|
395
395
|
This field is required.
|
|
396
396
|
|
|
397
397
|
- **tags** (field): Required field "Tags" is empty
|
|
398
398
|
Severity: required, Priority: P1
|
|
399
399
|
Type: string_list
|
|
400
|
-
Set: { op: "set_string_list", fieldId: "tags",
|
|
400
|
+
Set: { op: "set_string_list", fieldId: "tags", value: ["...", "..."] }
|
|
401
401
|
This field is required.
|
|
402
402
|
|
|
403
403
|
- **tasks_multi** (field): All items in "Tasks (Multi Mode)" must be completed
|
|
@@ -405,7 +405,7 @@ turns:
|
|
|
405
405
|
Type: checkboxes
|
|
406
406
|
Options: research, design, implement, test
|
|
407
407
|
Mode: multi
|
|
408
|
-
Set: { op: "set_checkboxes", fieldId: "tasks_multi",
|
|
408
|
+
Set: { op: "set_checkboxes", fieldId: "tasks_multi", value: { "opt1": "done", "opt2": "todo" } }
|
|
409
409
|
This field is required.
|
|
410
410
|
|
|
411
411
|
# General Instructions
|
|
@@ -642,7 +642,7 @@ turns:
|
|
|
642
642
|
Severity: required, Priority: P1
|
|
643
643
|
Type: multi_select
|
|
644
644
|
Options: frontend, backend, database, devops
|
|
645
|
-
Set: { op: "set_multi_select", fieldId: "categories",
|
|
645
|
+
Set: { op: "set_multi_select", fieldId: "categories", value: ["opt1", "opt2"] }
|
|
646
646
|
This field is required.
|
|
647
647
|
|
|
648
648
|
- **confirmations** (field): All items in "Confirmations (Explicit Mode)" must be answered (2 unfilled)
|
|
@@ -650,7 +650,7 @@ turns:
|
|
|
650
650
|
Type: checkboxes
|
|
651
651
|
Options: backed_up, notified
|
|
652
652
|
Mode: explicit
|
|
653
|
-
Set: { op: "set_checkboxes", fieldId: "confirmations",
|
|
653
|
+
Set: { op: "set_checkboxes", fieldId: "confirmations", value: { "opt1": "done", "opt2": "todo" } }
|
|
654
654
|
This field is required.
|
|
655
655
|
|
|
656
656
|
- **email** (field): Required field "Email" is empty
|
|
@@ -681,13 +681,13 @@ turns:
|
|
|
681
681
|
Severity: required, Priority: P1
|
|
682
682
|
Type: single_select
|
|
683
683
|
Options: low, medium, high
|
|
684
|
-
Set: { op: "set_single_select", fieldId: "priority",
|
|
684
|
+
Set: { op: "set_single_select", fieldId: "priority", value: "option_id" }
|
|
685
685
|
This field is required.
|
|
686
686
|
|
|
687
687
|
- **tags** (field): Required field "Tags" is empty
|
|
688
688
|
Severity: required, Priority: P1
|
|
689
689
|
Type: string_list
|
|
690
|
-
Set: { op: "set_string_list", fieldId: "tags",
|
|
690
|
+
Set: { op: "set_string_list", fieldId: "tags", value: ["...", "..."] }
|
|
691
691
|
This field is required.
|
|
692
692
|
|
|
693
693
|
- **tasks_multi** (field): All items in "Tasks (Multi Mode)" must be completed
|
|
@@ -695,7 +695,7 @@ turns:
|
|
|
695
695
|
Type: checkboxes
|
|
696
696
|
Options: research, design, implement, test
|
|
697
697
|
Mode: multi
|
|
698
|
-
Set: { op: "set_checkboxes", fieldId: "tasks_multi",
|
|
698
|
+
Set: { op: "set_checkboxes", fieldId: "tasks_multi", value: { "opt1": "done", "opt2": "todo" } }
|
|
699
699
|
This field is required.
|
|
700
700
|
|
|
701
701
|
# General Instructions
|
|
@@ -712,7 +712,7 @@ turns:
|
|
|
712
712
|
properties:
|
|
713
713
|
patches:
|
|
714
714
|
description: Array of patches to apply to the form
|
|
715
|
-
|
|
715
|
+
items:
|
|
716
716
|
$ref: '#/$defs/patch'
|
|
717
717
|
type: array
|
|
718
718
|
required:
|
|
@@ -753,11 +753,11 @@ turns:
|
|
|
753
753
|
op: set_single_select
|
|
754
754
|
value: medium
|
|
755
755
|
- field_id: tags
|
|
756
|
+
op: set_string_list
|
|
756
757
|
value:
|
|
757
758
|
- typescript
|
|
758
759
|
- testing
|
|
759
760
|
- forms
|
|
760
|
-
op: set_string_list
|
|
761
761
|
- field_id: tasks_multi
|
|
762
762
|
op: set_checkboxes
|
|
763
763
|
value:
|
|
@@ -1131,7 +1131,7 @@ turns:
|
|
|
1131
1131
|
Type: checkboxes
|
|
1132
1132
|
Options: read_guidelines, agree_terms
|
|
1133
1133
|
Mode: simple
|
|
1134
|
-
Set: { op: "set_checkboxes", fieldId: "tasks_simple",
|
|
1134
|
+
Set: { op: "set_checkboxes", fieldId: "tasks_simple", value: { "opt1": "done", "opt2": "todo" } }
|
|
1135
1135
|
This field is required.
|
|
1136
1136
|
|
|
1137
1137
|
- **website** (field): Required field "Website" is empty
|
|
@@ -1169,13 +1169,13 @@ turns:
|
|
|
1169
1169
|
Type: table
|
|
1170
1170
|
Columns: task (required), estimate_hrs, link
|
|
1171
1171
|
Rows: min: 0, max: 10
|
|
1172
|
-
Set: { op: "set_table", fieldId: "project_tasks",
|
|
1172
|
+
Set: { op: "set_table", fieldId: "project_tasks", value: [{ "task": "...", "estimate_hrs": "...", "link": "..." }, ...] }
|
|
1173
1173
|
Skip: { op: "skip_field", fieldId: "project_tasks", reason: "..." }
|
|
1174
1174
|
|
|
1175
1175
|
- **references** (field): Optional field not yet addressed
|
|
1176
1176
|
Severity: recommended, Priority: P3
|
|
1177
1177
|
Type: url_list
|
|
1178
|
-
Set: { op: "set_url_list", fieldId: "references",
|
|
1178
|
+
Set: { op: "set_url_list", fieldId: "references", value: ["https://...", "https://..."] }
|
|
1179
1179
|
Skip: { op: "skip_field", fieldId: "references", reason: "..." }
|
|
1180
1180
|
|
|
1181
1181
|
- **related_url** (field): Optional field not yet addressed
|
|
@@ -1447,7 +1447,7 @@ turns:
|
|
|
1447
1447
|
Type: checkboxes
|
|
1448
1448
|
Options: read_guidelines, agree_terms
|
|
1449
1449
|
Mode: simple
|
|
1450
|
-
Set: { op: "set_checkboxes", fieldId: "tasks_simple",
|
|
1450
|
+
Set: { op: "set_checkboxes", fieldId: "tasks_simple", value: { "opt1": "done", "opt2": "todo" } }
|
|
1451
1451
|
This field is required.
|
|
1452
1452
|
|
|
1453
1453
|
- **website** (field): Required field "Website" is empty
|
|
@@ -1485,13 +1485,13 @@ turns:
|
|
|
1485
1485
|
Type: table
|
|
1486
1486
|
Columns: task (required), estimate_hrs, link
|
|
1487
1487
|
Rows: min: 0, max: 10
|
|
1488
|
-
Set: { op: "set_table", fieldId: "project_tasks",
|
|
1488
|
+
Set: { op: "set_table", fieldId: "project_tasks", value: [{ "task": "...", "estimate_hrs": "...", "link": "..." }, ...] }
|
|
1489
1489
|
Skip: { op: "skip_field", fieldId: "project_tasks", reason: "..." }
|
|
1490
1490
|
|
|
1491
1491
|
- **references** (field): Optional field not yet addressed
|
|
1492
1492
|
Severity: recommended, Priority: P3
|
|
1493
1493
|
Type: url_list
|
|
1494
|
-
Set: { op: "set_url_list", fieldId: "references",
|
|
1494
|
+
Set: { op: "set_url_list", fieldId: "references", value: ["https://...", "https://..."] }
|
|
1495
1495
|
Skip: { op: "skip_field", fieldId: "references", reason: "..." }
|
|
1496
1496
|
|
|
1497
1497
|
- **related_url** (field): Optional field not yet addressed
|
|
@@ -1520,7 +1520,7 @@ turns:
|
|
|
1520
1520
|
properties:
|
|
1521
1521
|
patches:
|
|
1522
1522
|
description: Array of patches to apply to the form
|
|
1523
|
-
|
|
1523
|
+
items:
|
|
1524
1524
|
$ref: '#/$defs/patch'
|
|
1525
1525
|
type: array
|
|
1526
1526
|
required:
|
|
@@ -1560,11 +1560,11 @@ turns:
|
|
|
1560
1560
|
reason: No value in mock form
|
|
1561
1561
|
role: agent
|
|
1562
1562
|
- field_id: references
|
|
1563
|
+
op: set_url_list
|
|
1563
1564
|
value:
|
|
1564
1565
|
- https://docs.example.com/guide
|
|
1565
1566
|
- https://github.com/example/project
|
|
1566
1567
|
- https://medium.com/article-about-forms
|
|
1567
|
-
op: set_url_list
|
|
1568
1568
|
- field_id: related_url
|
|
1569
1569
|
op: set_url
|
|
1570
1570
|
value: https://markform.dev/docs
|
|
@@ -1884,7 +1884,7 @@ turns:
|
|
|
1884
1884
|
Type: table
|
|
1885
1885
|
Columns: name (required), role, start_date
|
|
1886
1886
|
Rows: min: 0, max: 5
|
|
1887
|
-
Set: { op: "set_table", fieldId: "team_members",
|
|
1887
|
+
Set: { op: "set_table", fieldId: "team_members", value: [{ "name": "...", "role": "...", "start_date": "..." }, ...] }
|
|
1888
1888
|
Skip: { op: "skip_field", fieldId: "team_members", reason: "..." }
|
|
1889
1889
|
|
|
1890
1890
|
# General Instructions
|
|
@@ -2175,7 +2175,7 @@ turns:
|
|
|
2175
2175
|
Type: table
|
|
2176
2176
|
Columns: name (required), role, start_date
|
|
2177
2177
|
Rows: min: 0, max: 5
|
|
2178
|
-
Set: { op: "set_table", fieldId: "team_members",
|
|
2178
|
+
Set: { op: "set_table", fieldId: "team_members", value: [{ "name": "...", "role": "...", "start_date": "..." }, ...] }
|
|
2179
2179
|
Skip: { op: "skip_field", fieldId: "team_members", reason: "..." }
|
|
2180
2180
|
|
|
2181
2181
|
# General Instructions
|
|
@@ -2192,7 +2192,7 @@ turns:
|
|
|
2192
2192
|
properties:
|
|
2193
2193
|
patches:
|
|
2194
2194
|
description: Array of patches to apply to the form
|
|
2195
|
-
|
|
2195
|
+
items:
|
|
2196
2196
|
$ref: '#/$defs/patch'
|
|
2197
2197
|
type: array
|
|
2198
2198
|
required:
|