markform 0.1.16 → 0.1.18

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.
Files changed (35) hide show
  1. package/LICENSE +369 -0
  2. package/README.md +154 -214
  3. package/dist/ai-sdk.d.mts +1 -1
  4. package/dist/ai-sdk.mjs +2 -2
  5. package/dist/{apply-CXsI5N9x.mjs → apply-BYgtU64w.mjs} +203 -16
  6. package/dist/apply-BYgtU64w.mjs.map +1 -0
  7. package/dist/bin.mjs +1 -1
  8. package/dist/{cli-BsFessUW.mjs → cli-D9w0Bp4J.mjs} +199 -13
  9. package/dist/cli-D9w0Bp4J.mjs.map +1 -0
  10. package/dist/cli.mjs +1 -1
  11. package/dist/{coreTypes-DE6Giau5.d.mts → coreTypes-BMEs8h_2.d.mts} +165 -2
  12. package/dist/{coreTypes-DiCddBKu.mjs → coreTypes-SDB3KRRJ.mjs} +9 -4
  13. package/dist/coreTypes-SDB3KRRJ.mjs.map +1 -0
  14. package/dist/index.d.mts +266 -2
  15. package/dist/index.mjs +5 -5
  16. package/dist/{session-B7aR6hno.mjs → session-CW9AQw6i.mjs} +1 -1
  17. package/dist/{session-XDrocA3j.mjs → session-Ci4B0Pna.mjs} +2 -2
  18. package/dist/{session-XDrocA3j.mjs.map → session-Ci4B0Pna.mjs.map} +1 -1
  19. package/dist/{src-Dv3IZSQU.mjs → src-DDxi-2ne.mjs} +966 -32
  20. package/dist/src-DDxi-2ne.mjs.map +1 -0
  21. package/docs/markform-apis.md +110 -0
  22. package/docs/markform-reference.md +58 -0
  23. package/docs/markform-spec.md +204 -9
  24. package/examples/movie-research/movie-deep-research-mock-filled.form.md +1 -1
  25. package/examples/movie-research/movie-deep-research.form.md +1 -1
  26. package/examples/parallel/parallel-research.form.md +57 -0
  27. package/examples/plan-document/plan-document-markdoc.form.md +35 -0
  28. package/examples/plan-document/plan-document-progress.form.md +47 -0
  29. package/examples/plan-document/plan-document.form.md +47 -0
  30. package/examples/startup-deep-research/startup-deep-research.form.md +1 -1
  31. package/package.json +2 -2
  32. package/dist/apply-CXsI5N9x.mjs.map +0 -1
  33. package/dist/cli-BsFessUW.mjs.map +0 -1
  34. package/dist/coreTypes-DiCddBKu.mjs.map +0 -1
  35. package/dist/src-Dv3IZSQU.mjs.map +0 -1
package/LICENSE CHANGED
@@ -1,5 +1,374 @@
1
1
  Copyright (c) 2025 Joshua Levy.
2
2
 
3
+ ## License
4
+
5
+ This project uses a dual licensing approach:
6
+
7
+ - **Markform Specification** ([`docs/markform-spec.md`](docs/markform-spec.md),
8
+ [`docs/markform-reference.md`](docs/markform-reference.md)):
9
+ [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/). You may freely implement
10
+ this specification in your own software under any license.
11
+
12
+ - **Reference Implementation** (all code in this repository):
13
+ [AGPL-3.0-or-later](./LICENSE).
14
+
15
+ [Contact me](https://github.com/jlevy) for commercial licensing options.
16
+
17
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for contribution terms.
18
+
19
+ ---
20
+
21
+ [markdoc-overview]: https://markdoc.dev/docs/overview
22
+ [stripe-markdoc]: https://stripe.com/blog/markdoc
23
+
24
+
25
+ =======================================================================
26
+
27
+ Creative Commons Attribution 4.0 International Public License
28
+
29
+ By exercising the Licensed Rights (defined below), You accept and agree
30
+ to be bound by the terms and conditions of this Creative Commons
31
+ Attribution 4.0 International Public License ("Public License"). To the
32
+ extent this Public License may be interpreted as a contract, You are
33
+ granted the Licensed Rights in consideration of Your acceptance of
34
+ these terms and conditions, and the Licensor grants You such rights in
35
+ consideration of benefits the Licensor receives from making the
36
+ Licensed Material available under these terms and conditions.
37
+
38
+
39
+ Section 1 -- Definitions.
40
+
41
+ a. Adapted Material means material subject to Copyright and Similar
42
+ Rights that is derived from or based upon the Licensed Material
43
+ and in which the Licensed Material is translated, altered,
44
+ arranged, transformed, or otherwise modified in a manner requiring
45
+ permission under the Copyright and Similar Rights held by the
46
+ Licensor. For purposes of this Public License, where the Licensed
47
+ Material is a musical work, performance, or sound recording,
48
+ Adapted Material is always produced where the Licensed Material is
49
+ synched in timed relation with a moving image.
50
+
51
+ b. Adapter's License means the license You apply to Your Copyright
52
+ and Similar Rights in Your contributions to Adapted Material in
53
+ accordance with the terms and conditions of this Public License.
54
+
55
+ c. Copyright and Similar Rights means copyright and/or similar rights
56
+ closely related to copyright including, without limitation,
57
+ performance, broadcast, sound recording, and Sui Generis Database
58
+ Rights, without regard to how the rights are labeled or
59
+ categorized. For purposes of this Public License, the rights
60
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
61
+ Rights.
62
+
63
+ d. Effective Technological Measures means those measures that, in the
64
+ absence of proper authority, may not be circumvented under laws
65
+ fulfilling obligations under Article 11 of the WIPO Copyright
66
+ Treaty adopted on December 20, 1996, and/or similar international
67
+ agreements.
68
+
69
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
70
+ any other exception or limitation to Copyright and Similar Rights
71
+ that applies to Your use of the Licensed Material.
72
+
73
+ f. Licensed Material means the artistic or literary work, database,
74
+ or other material to which the Licensor applied this Public
75
+ License.
76
+
77
+ g. Licensed Rights means the rights granted to You subject to the
78
+ terms and conditions of this Public License, which are limited to
79
+ all Copyright and Similar Rights that apply to Your use of the
80
+ Licensed Material and that the Licensor has authority to license.
81
+
82
+ h. Licensor means the individual(s) or entity(ies) granting rights
83
+ under this Public License.
84
+
85
+ i. Share means to provide material to the public by any means or
86
+ process that requires permission under the Licensed Rights, such
87
+ as reproduction, public display, public performance, distribution,
88
+ dissemination, communication, or importation, and to make material
89
+ available to the public including in ways that members of the
90
+ public may access the material from a place and at a time
91
+ individually chosen by them.
92
+
93
+ j. Sui Generis Database Rights means rights other than copyright
94
+ resulting from Directive 96/9/EC of the European Parliament and of
95
+ the Council of 11 March 1996 on the legal protection of databases,
96
+ as amended and/or succeeded, as well as other essentially
97
+ equivalent rights anywhere in the world.
98
+
99
+ k. You means the individual or entity exercising the Licensed Rights
100
+ under this Public License. Your has a corresponding meaning.
101
+
102
+
103
+ Section 2 -- Scope.
104
+
105
+ a. License grant.
106
+
107
+ 1. Subject to the terms and conditions of this Public License,
108
+ the Licensor hereby grants You a worldwide, royalty-free,
109
+ non-sublicensable, non-exclusive, irrevocable license to
110
+ exercise the Licensed Rights in the Licensed Material to:
111
+
112
+ a. reproduce and Share the Licensed Material, in whole or
113
+ in part; and
114
+
115
+ b. produce, reproduce, and Share Adapted Material.
116
+
117
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
118
+ Exceptions and Limitations apply to Your use, this Public
119
+ License does not apply, and You do not need to comply with
120
+ its terms and conditions.
121
+
122
+ 3. Term. The term of this Public License is specified in Section
123
+ 6(a).
124
+
125
+ 4. Media and formats; technical modifications allowed. The
126
+ Licensor authorizes You to exercise the Licensed Rights in
127
+ all media and formats whether now known or hereafter created,
128
+ and to make technical modifications necessary to do so. The
129
+ Licensor waives and/or agrees not to assert any right or
130
+ authority to forbid You from making technical modifications
131
+ necessary to exercise the Licensed Rights, including
132
+ technical modifications necessary to circumvent Effective
133
+ Technological Measures. For purposes of this Public License,
134
+ simply making modifications authorized by this Section 2(a)
135
+ (4) never produces Adapted Material.
136
+
137
+ 5. Downstream recipients.
138
+
139
+ a. Offer from the Licensor -- Licensed Material. Every
140
+ recipient of the Licensed Material automatically
141
+ receives an offer from the Licensor to exercise the
142
+ Licensed Rights under the terms and conditions of this
143
+ Public License.
144
+
145
+ b. No downstream restrictions. You may not offer or impose
146
+ any additional or different terms or conditions on, or
147
+ apply any Effective Technological Measures to, the
148
+ Licensed Material if doing so restricts exercise of the
149
+ Licensed Rights by any recipient of the Licensed
150
+ Material.
151
+
152
+ 6. No endorsement. Nothing in this Public License constitutes or
153
+ may be construed as permission to assert or imply that You
154
+ are, or that Your use of the Licensed Material is, connected
155
+ with, or sponsored, endorsed, or granted official status by,
156
+ the Licensor or others designated to receive attribution as
157
+ provided in Section 3(a)(1)(A)(i).
158
+
159
+ b. Other rights.
160
+
161
+ 1. Moral rights, such as the right of integrity, are not
162
+ licensed under this Public License, nor are publicity,
163
+ privacy, and/or other similar personality rights; however, to
164
+ the extent possible, the Licensor waives and/or agrees not to
165
+ assert any such rights held by the Licensor to the limited
166
+ extent necessary to allow You to exercise the Licensed
167
+ Rights, but not otherwise.
168
+
169
+ 2. Patent and trademark rights are not licensed under this
170
+ Public License.
171
+
172
+ 3. To the extent possible, the Licensor waives any right to
173
+ collect royalties from You for the exercise of the Licensed
174
+ Rights, whether directly or through a collecting society
175
+ under any voluntary or waivable statutory or compulsory
176
+ licensing scheme. In all other cases the Licensor expressly
177
+ reserves any right to collect such royalties.
178
+
179
+
180
+ Section 3 -- License Conditions.
181
+
182
+ Your exercise of the Licensed Rights is expressly made subject to the
183
+ following conditions.
184
+
185
+ a. Attribution.
186
+
187
+ 1. If You Share the Licensed Material (including in modified
188
+ form), You must:
189
+
190
+ a. retain the following if it is supplied by the Licensor
191
+ with the Licensed Material:
192
+
193
+ i. identification of the creator(s) of the Licensed
194
+ Material and any others designated to receive
195
+ attribution, in any reasonable manner requested by
196
+ the Licensor (including by pseudonym if
197
+ designated);
198
+
199
+ ii. a copyright notice;
200
+
201
+ iii. a notice that refers to this Public License;
202
+
203
+ iv. a notice that refers to the disclaimer of
204
+ warranties;
205
+
206
+ v. a URI or hyperlink to the Licensed Material to the
207
+ extent reasonably practicable;
208
+
209
+ b. indicate if You modified the Licensed Material and
210
+ retain an indication of any previous modifications; and
211
+
212
+ c. indicate the Licensed Material is licensed under this
213
+ Public License, and include the text of, or the URI or
214
+ hyperlink to, this Public License.
215
+
216
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
217
+ reasonable manner based on the medium, means, and context in
218
+ which You Share the Licensed Material. For example, it may be
219
+ reasonable to satisfy the conditions by providing a URI or
220
+ hyperlink to a resource that includes the required
221
+ information.
222
+
223
+ 3. If requested by the Licensor, You must remove any of the
224
+ information required by Section 3(a)(1)(A) to the extent
225
+ reasonably practicable.
226
+
227
+ 4. If You Share Adapted Material You produce, the Adapter's
228
+ License You apply must not prevent recipients of the Adapted
229
+ Material from complying with this Public License.
230
+
231
+
232
+ Section 4 -- Sui Generis Database Rights.
233
+
234
+ Where the Licensed Rights include Sui Generis Database Rights that
235
+ apply to Your use of the Licensed Material:
236
+
237
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
238
+ to extract, reuse, reproduce, and Share all or a substantial
239
+ portion of the contents of the database;
240
+
241
+ b. if You include all or a substantial portion of the database
242
+ contents in a database in which You have Sui Generis Database
243
+ Rights, then the database in which You have Sui Generis Database
244
+ Rights (but not its individual contents) is Adapted Material; and
245
+
246
+ c. You must comply with the conditions in Section 3(a) if You Share
247
+ all or a substantial portion of the contents of the database.
248
+
249
+ For the avoidance of doubt, this Section 4 supplements and does not
250
+ replace Your obligations under this Public License where the Licensed
251
+ Rights include other Copyright and Similar Rights.
252
+
253
+
254
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
255
+
256
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
257
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
258
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
259
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
260
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
261
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
262
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
263
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
264
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
265
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
266
+
267
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
268
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
269
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
270
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
271
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
272
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
273
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
274
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
275
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
276
+
277
+ c. The disclaimer of warranties and limitation of liability provided
278
+ above shall be interpreted in a manner that, to the extent
279
+ possible, most closely approximates an absolute disclaimer and
280
+ waiver of all liability.
281
+
282
+
283
+ Section 6 -- Term and Termination.
284
+
285
+ a. This Public License applies for the term of the Copyright and
286
+ Similar Rights licensed here. However, if You fail to comply with
287
+ this Public License, then Your rights under this Public License
288
+ terminate automatically.
289
+
290
+ b. Where Your right to use the Licensed Material has terminated under
291
+ Section 6(a), it reinstates:
292
+
293
+ 1. automatically as of the date the violation is cured, provided
294
+ it is cured within 30 days of Your discovery of the
295
+ violation; or
296
+
297
+ 2. upon express reinstatement by the Licensor.
298
+
299
+ For the avoidance of doubt, this Section 6(b) does not affect any
300
+ right the Licensor may have to seek remedies for Your violations
301
+ of this Public License.
302
+
303
+ c. For the avoidance of doubt, the Licensor may also offer the
304
+ Licensed Material under separate terms or conditions or stop
305
+ distributing the Licensed Material at any time; however, doing so
306
+ will not terminate this Public License.
307
+
308
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
309
+ License.
310
+
311
+
312
+ Section 7 -- Other Terms and Conditions.
313
+
314
+ a. The Licensor shall not be bound by any additional or different
315
+ terms or conditions communicated by You unless expressly agreed.
316
+
317
+ b. Any arrangements, understandings, or agreements regarding the
318
+ Licensed Material not stated herein are separate from and
319
+ independent of the terms and conditions of this Public License.
320
+
321
+
322
+ Section 8 -- Interpretation.
323
+
324
+ a. For the avoidance of doubt, this Public License does not, and
325
+ shall not be interpreted to, reduce, limit, restrict, or impose
326
+ conditions on any use of the Licensed Material that could lawfully
327
+ be made without permission under this Public License.
328
+
329
+ b. To the extent possible, if any provision of this Public License is
330
+ deemed unenforceable, it shall be automatically reformed to the
331
+ minimum extent necessary to make it enforceable. If the provision
332
+ cannot be reformed, it shall be severed from this Public License
333
+ without affecting the enforceability of the remaining terms and
334
+ conditions.
335
+
336
+ c. No term or condition of this Public License will be waived and no
337
+ failure to comply consented to unless expressly agreed to by the
338
+ Licensor.
339
+
340
+ d. Nothing in this Public License constitutes or may be interpreted
341
+ as a limitation upon, or waiver of, any privileges and immunities
342
+ that apply to the Licensor or You, including from the legal
343
+ processes of any jurisdiction or authority.
344
+
345
+
346
+ =======================================================================
347
+
348
+ Creative Commons is not a party to its public
349
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
350
+ its public licenses to material it publishes and in those instances
351
+ will be considered the “Licensor.” The text of the Creative Commons
352
+ public licenses is dedicated to the public domain under the CC0 Public
353
+ Domain Dedication. Except for the limited purpose of indicating that
354
+ material is shared under a Creative Commons public license or as
355
+ otherwise permitted by the Creative Commons policies published at
356
+ creativecommons.org/policies, Creative Commons does not authorize the
357
+ use of the trademark "Creative Commons" or any other trademark or logo
358
+ of Creative Commons without its prior written consent including,
359
+ without limitation, in connection with any unauthorized modifications
360
+ to any of its public licenses or any other arrangements,
361
+ understandings, or agreements concerning use of licensed material. For
362
+ the avoidance of doubt, this paragraph does not form part of the
363
+ public licenses.
364
+
365
+ Creative Commons may be contacted at creativecommons.org.
366
+
367
+
368
+
369
+ ---
370
+
371
+
3
372
 
4
373
  GNU AFFERO GENERAL PUBLIC LICENSE
5
374
  Version 3, 19 November 2007