@agentshouse/mdmodel 0.1.0-c1b026eddaa7c → 0.1.0-c2003dca37973

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 (403) hide show
  1. package/API.md +163 -191
  2. package/README.md +25 -25
  3. package/dist/body.d.ts +85 -0
  4. package/dist/body.d.ts.map +1 -0
  5. package/dist/body.js +1083 -0
  6. package/dist/built-in.d.ts +4 -0
  7. package/dist/built-in.d.ts.map +1 -0
  8. package/dist/built-in.js +19 -0
  9. package/dist/definition.d.ts +23 -10
  10. package/dist/definition.d.ts.map +1 -1
  11. package/dist/definition.js +171 -116
  12. package/dist/document.d.ts +14 -8
  13. package/dist/document.d.ts.map +1 -1
  14. package/dist/document.js +747 -137
  15. package/dist/event.d.ts +1 -2
  16. package/dist/event.d.ts.map +1 -1
  17. package/dist/event.js +2 -3
  18. package/dist/facts.d.ts.map +1 -1
  19. package/dist/facts.js +3 -0
  20. package/dist/fields.d.ts +1 -1
  21. package/dist/fields.d.ts.map +1 -1
  22. package/dist/fields.js +2 -2
  23. package/dist/form.d.ts +4 -0
  24. package/dist/form.d.ts.map +1 -0
  25. package/dist/form.js +153 -0
  26. package/dist/house-model.d.ts +870 -0
  27. package/dist/house-model.d.ts.map +1 -0
  28. package/dist/house-model.js +472 -0
  29. package/dist/house-references/crockford.d.ts +4 -0
  30. package/dist/house-references/crockford.d.ts.map +1 -0
  31. package/dist/house-references/crockford.js +3 -0
  32. package/dist/house-references/patterns.d.ts +9 -0
  33. package/dist/house-references/patterns.d.ts.map +1 -0
  34. package/dist/house-references/patterns.js +13 -0
  35. package/dist/index.d.ts +31 -17
  36. package/dist/index.d.ts.map +1 -1
  37. package/dist/index.js +20 -12
  38. package/dist/indexed.d.ts +9 -0
  39. package/dist/indexed.d.ts.map +1 -0
  40. package/dist/indexed.js +55 -0
  41. package/dist/kinds.d.ts +4 -2
  42. package/dist/kinds.d.ts.map +1 -1
  43. package/dist/kinds.js +60 -11
  44. package/dist/markdown.d.ts +71 -0
  45. package/dist/markdown.d.ts.map +1 -0
  46. package/dist/markdown.js +232 -0
  47. package/dist/media-type.d.ts +72 -0
  48. package/dist/media-type.d.ts.map +1 -0
  49. package/dist/media-type.js +157 -0
  50. package/dist/moment.d.ts +7 -0
  51. package/dist/moment.d.ts.map +1 -0
  52. package/dist/moment.js +18 -0
  53. package/dist/not-ready.d.ts +2 -0
  54. package/dist/not-ready.d.ts.map +1 -0
  55. package/dist/not-ready.js +5 -0
  56. package/dist/paths.d.ts +16 -1
  57. package/dist/paths.d.ts.map +1 -1
  58. package/dist/paths.js +95 -22
  59. package/dist/query/language.d.ts +2 -1
  60. package/dist/query/language.d.ts.map +1 -1
  61. package/dist/query/language.js +1 -1
  62. package/dist/query/match.d.ts +1 -1
  63. package/dist/query/match.d.ts.map +1 -1
  64. package/dist/query/rows.d.ts +1 -1
  65. package/dist/query/rows.d.ts.map +1 -1
  66. package/dist/query/rows.js +2 -5
  67. package/dist/query/sql.d.ts +5 -1
  68. package/dist/query/sql.d.ts.map +1 -1
  69. package/dist/query/sql.js +3 -3
  70. package/dist/query/walk.d.ts +63 -0
  71. package/dist/query/walk.d.ts.map +1 -0
  72. package/dist/query/walk.js +263 -0
  73. package/dist/references.d.ts +2 -2
  74. package/dist/references.d.ts.map +1 -1
  75. package/dist/references.js +1 -1
  76. package/dist/refuse.d.ts +1 -0
  77. package/dist/refuse.d.ts.map +1 -1
  78. package/dist/refuse.js +1 -0
  79. package/dist/reserved.d.ts +1 -0
  80. package/dist/reserved.d.ts.map +1 -1
  81. package/dist/reserved.js +2 -1
  82. package/dist/room-types.d.ts +7 -0
  83. package/dist/room-types.d.ts.map +1 -0
  84. package/dist/room-types.js +136 -0
  85. package/dist/schema.d.ts +1 -3
  86. package/dist/schema.d.ts.map +1 -1
  87. package/dist/schema.js +9 -73
  88. package/dist/types.d.ts +11 -38
  89. package/dist/types.d.ts.map +1 -1
  90. package/dist/validate.d.ts +6 -2
  91. package/dist/validate.d.ts.map +1 -1
  92. package/dist/validate.js +111 -178
  93. package/dist/yaml.d.ts +7 -5
  94. package/dist/yaml.d.ts.map +1 -1
  95. package/dist/yaml.js +154 -33
  96. package/fixtures/README.md +73 -68
  97. package/fixtures/cases/absent-link-dangles/library/item.md +1 -1
  98. package/fixtures/cases/absent-link-dangles/schema.yaml +2 -3
  99. package/fixtures/cases/absent-optional-field/library/companies/acme.md +1 -1
  100. package/fixtures/cases/absent-optional-field/library/deals/lead.md +3 -3
  101. package/fixtures/cases/absent-optional-field/schema.yaml +10 -11
  102. package/fixtures/cases/absolute-link/library/item.md +1 -1
  103. package/fixtures/cases/absolute-link/schema.yaml +2 -3
  104. package/fixtures/cases/attachment-reference-any-file/library/companies/acme.md +1 -1
  105. package/fixtures/cases/attachment-reference-any-file/library/deals/renewal.md +13 -10
  106. package/fixtures/cases/attachment-reference-any-file/library/places/depot.md +1 -1
  107. package/fixtures/cases/attachment-reference-any-file/library/products/seats.md +1 -1
  108. package/fixtures/cases/attachment-reference-any-file/library/products/support.md +1 -1
  109. package/fixtures/cases/attachment-reference-dangles/library/companies/acme.md +1 -1
  110. package/fixtures/cases/attachment-reference-dangles/library/deals/renewal.md +13 -10
  111. package/fixtures/cases/attachment-reference-dangles/library/places/depot.md +1 -1
  112. package/fixtures/cases/attachment-reference-dangles/library/products/seats.md +1 -1
  113. package/fixtures/cases/attachment-reference-dangles/library/products/support.md +1 -1
  114. package/fixtures/cases/attachment-reference-outside/expected.json +2 -1
  115. package/fixtures/cases/attachment-reference-outside/library/companies/acme.md +1 -1
  116. package/fixtures/cases/attachment-reference-outside/library/deals/renewal.md +13 -10
  117. package/fixtures/cases/attachment-reference-outside/library/places/depot.md +1 -1
  118. package/fixtures/cases/attachment-reference-outside/library/products/seats.md +1 -1
  119. package/fixtures/cases/attachment-reference-outside/library/products/support.md +1 -1
  120. package/fixtures/cases/binary-any-reference/expected.json +2 -1
  121. package/fixtures/cases/binary-any-reference/library/notes/draft.md +1 -1
  122. package/fixtures/cases/binary-prototype-reference/expected.json +2 -1
  123. package/fixtures/cases/binary-prototype-reference/library/notes/draft.md +1 -1
  124. package/fixtures/cases/binary-typed-reference/expected.json +2 -1
  125. package/fixtures/cases/binary-typed-reference/library/notes/draft.md +1 -1
  126. package/fixtures/cases/block-scalar-frontmatter/library/notes/literal.md +17 -0
  127. package/fixtures/cases/block-scalar-frontmatter/library/skills/notes/SKILL.md +10 -0
  128. package/fixtures/cases/boolean-field/expected.json +2 -1
  129. package/fixtures/cases/boolean-field/library/companies/acme.md +1 -1
  130. package/fixtures/cases/boolean-field/library/deals/renewal.md +49 -24
  131. package/fixtures/cases/boolean-field/schema.yaml +10 -11
  132. package/fixtures/cases/bracketed-link-definition/library/item.md +1 -1
  133. package/fixtures/cases/bracketed-link-definition/schema.yaml +2 -3
  134. package/fixtures/cases/closed-nested-object/expected.json +2 -1
  135. package/fixtures/cases/closed-nested-object/library/companies/acme.md +1 -1
  136. package/fixtures/cases/closed-nested-object/library/deals/renewal.md +50 -25
  137. package/fixtures/cases/closed-nested-object/schema.yaml +10 -11
  138. package/fixtures/cases/composed-root-reference/library/a.md +2 -2
  139. package/fixtures/cases/{conditional-section → conditional-long-text}/expected.json +3 -2
  140. package/fixtures/cases/{conditional-section → conditional-long-text}/library/questions/hosting.md +2 -2
  141. package/fixtures/cases/{conditional-section → conditional-long-text}/library/questions/payments.md +2 -2
  142. package/fixtures/cases/conditional-long-text/schema.yaml +13 -0
  143. package/fixtures/cases/cross-room-link/library/clients/acme.md +1 -1
  144. package/fixtures/cases/cross-room-reference/library/clients/acme.md +4 -4
  145. package/fixtures/cases/cross-room-reference/schema.yaml +1 -2
  146. package/fixtures/cases/date-time-format/expected.json +2 -1
  147. package/fixtures/cases/date-time-format/library/companies/acme.md +1 -1
  148. package/fixtures/cases/date-time-format/library/deals/renewal.md +49 -24
  149. package/fixtures/cases/date-time-format/schema.yaml +10 -11
  150. package/fixtures/cases/default-unfilled/library/companies/acme.md +1 -1
  151. package/fixtures/cases/default-unfilled/library/deals/renewal.md +47 -22
  152. package/fixtures/cases/default-unfilled/schema.yaml +10 -11
  153. package/fixtures/cases/defs-pattern/expected.json +2 -1
  154. package/fixtures/cases/defs-pattern/library/companies/acme.md +1 -1
  155. package/fixtures/cases/defs-pattern/library/deals/renewal.md +49 -24
  156. package/fixtures/cases/defs-pattern/schema.yaml +10 -11
  157. package/fixtures/cases/dependent-rule/library/companies/acme.md +1 -1
  158. package/fixtures/cases/dependent-rule/library/deals/renewal.md +48 -23
  159. package/fixtures/cases/dependent-rule/schema.yaml +10 -11
  160. package/fixtures/cases/duplicate-link-definition/library/item.md +1 -1
  161. package/fixtures/cases/duplicate-link-definition/schema.yaml +2 -3
  162. package/fixtures/cases/email-format/expected.json +2 -1
  163. package/fixtures/cases/email-format/library/companies/acme.md +1 -1
  164. package/fixtures/cases/email-format/library/deals/renewal.md +49 -24
  165. package/fixtures/cases/email-format/schema.yaml +10 -11
  166. package/fixtures/cases/equal-labels/expected.json +5 -0
  167. package/fixtures/cases/equal-labels/schema.yaml +4 -0
  168. package/fixtures/cases/fenced-link-definition/library/item.md +1 -1
  169. package/fixtures/cases/fenced-link-definition/schema.yaml +2 -3
  170. package/fixtures/cases/field-enum/expected.json +2 -1
  171. package/fixtures/cases/field-enum/library/item.md +2 -2
  172. package/fixtures/cases/field-enum/schema.yaml +3 -4
  173. package/fixtures/cases/frontmatter-construct/expected.json +7 -0
  174. package/fixtures/cases/frontmatter-construct/library/note.md +6 -0
  175. package/fixtures/cases/integer-field/expected.json +2 -1
  176. package/fixtures/cases/integer-field/library/companies/acme.md +1 -1
  177. package/fixtures/cases/integer-field/library/deals/renewal.md +49 -24
  178. package/fixtures/cases/integer-field/schema.yaml +10 -11
  179. package/fixtures/cases/json-schema-constructs/library/companies/acme.md +1 -1
  180. package/fixtures/cases/json-schema-constructs/library/deals/renewal.md +49 -24
  181. package/fixtures/cases/json-schema-constructs/schema.yaml +10 -11
  182. package/fixtures/cases/labels-in-the-rooms-language/expected.json +1 -0
  183. package/fixtures/cases/labels-in-the-rooms-language/library/deals/atlas.md +7 -0
  184. package/fixtures/cases/labels-in-the-rooms-language/schema.yaml +9 -0
  185. package/fixtures/cases/lazy-list-item/expected.json +3 -0
  186. package/fixtures/cases/lazy-list-item/library/item.md +10 -0
  187. package/fixtures/cases/lazy-list-item/schema.yaml +3 -0
  188. package/fixtures/cases/link-into-a-reserved-name/library/notes/a.md +1 -1
  189. package/fixtures/cases/list-item-enum/expected.json +7 -0
  190. package/fixtures/cases/list-item-enum/library/task.md +7 -0
  191. package/fixtures/cases/list-item-enum/schema.yaml +3 -0
  192. package/fixtures/cases/list-item-kind/expected.json +7 -0
  193. package/fixtures/cases/list-item-kind/library/task.md +6 -0
  194. package/fixtures/cases/list-item-kind/schema.yaml +3 -0
  195. package/fixtures/cases/list-items/expected.json +1 -0
  196. package/fixtures/cases/list-items/library/page.md +26 -0
  197. package/fixtures/cases/list-items/schema.yaml +10 -0
  198. package/fixtures/cases/list-of-objects-closed/expected.json +2 -1
  199. package/fixtures/cases/list-of-objects-closed/library/companies/acme.md +1 -1
  200. package/fixtures/cases/list-of-objects-closed/library/deals/renewal.md +49 -25
  201. package/fixtures/cases/list-of-objects-closed/schema.yaml +10 -11
  202. package/fixtures/cases/list-of-objects-item/expected.json +2 -1
  203. package/fixtures/cases/list-of-objects-item/library/companies/acme.md +1 -1
  204. package/fixtures/cases/list-of-objects-item/library/deals/renewal.md +49 -24
  205. package/fixtures/cases/list-of-objects-item/schema.yaml +10 -11
  206. package/fixtures/cases/list-of-objects-reference/expected.json +2 -1
  207. package/fixtures/cases/list-of-objects-reference/library/companies/acme.md +1 -1
  208. package/fixtures/cases/list-of-objects-reference/library/deals/renewal.md +12 -9
  209. package/fixtures/cases/list-of-objects-reference/library/places/depot.md +1 -1
  210. package/fixtures/cases/list-of-objects-reference/library/products/seats.md +1 -1
  211. package/fixtures/cases/list-of-objects-reference/library/products/support.md +1 -1
  212. package/fixtures/cases/list-reference-path/expected.json +7 -0
  213. package/fixtures/cases/list-reference-path/library/page.md +5 -0
  214. package/fixtures/cases/list-reference-path/schema.yaml +3 -0
  215. package/fixtures/cases/list-reference-type/context.json +1 -0
  216. package/fixtures/cases/list-reference-type/expected.json +7 -0
  217. package/fixtures/cases/list-reference-type/library/page.md +6 -0
  218. package/fixtures/cases/list-reference-type/schema.yaml +3 -0
  219. package/fixtures/cases/list-size/expected.json +2 -1
  220. package/fixtures/cases/list-size/library/companies/acme.md +1 -1
  221. package/fixtures/cases/list-size/library/deals/renewal.md +51 -24
  222. package/fixtures/cases/list-size/schema.yaml +10 -11
  223. package/fixtures/cases/long-value-past-six-levels/context.json +1 -0
  224. package/fixtures/cases/long-value-past-six-levels/expected.json +5 -0
  225. package/fixtures/cases/long-value-past-six-levels/schema.yaml +15 -0
  226. package/fixtures/cases/malformed-list/context.json +1 -0
  227. package/fixtures/cases/malformed-list/expected.json +7 -0
  228. package/fixtures/cases/{structured-section → malformed-list}/library/item.md +1 -1
  229. package/fixtures/cases/malformed-list/schema.yaml +6 -0
  230. package/fixtures/cases/member-document/library/people/ana.md +2 -2
  231. package/fixtures/cases/member-on-another-type/library/note.md +1 -1
  232. package/fixtures/cases/missing-required-field/library/item.md +1 -1
  233. package/fixtures/cases/missing-required-field/schema.yaml +3 -4
  234. package/fixtures/cases/misspelled-key/expected.json +2 -1
  235. package/fixtures/cases/misspelled-key/library/companies/acme.md +1 -1
  236. package/fixtures/cases/misspelled-key/library/deals/renewal.md +50 -25
  237. package/fixtures/cases/misspelled-key/schema.yaml +10 -11
  238. package/fixtures/cases/name-not-a-string/context.json +1 -0
  239. package/fixtures/cases/name-not-a-string/expected.json +5 -0
  240. package/fixtures/cases/name-not-a-string/schema.yaml +5 -0
  241. package/fixtures/cases/nested-defs/expected.json +2 -1
  242. package/fixtures/cases/nested-defs/library/deal.md +3 -3
  243. package/fixtures/cases/nested-object-reference/expected.json +2 -1
  244. package/fixtures/cases/nested-object-reference/library/companies/acme.md +1 -1
  245. package/fixtures/cases/nested-object-reference/library/deals/renewal.md +12 -9
  246. package/fixtures/cases/nested-object-reference/library/places/depot.md +1 -1
  247. package/fixtures/cases/nested-object-reference/library/products/seats.md +1 -1
  248. package/fixtures/cases/nested-object-reference/library/products/support.md +1 -1
  249. package/fixtures/cases/nested-reference/library/companies/acme.md +1 -1
  250. package/fixtures/cases/nested-reference/library/deals/renewal.md +13 -10
  251. package/fixtures/cases/nested-reference/library/places/depot.md +1 -1
  252. package/fixtures/cases/nested-reference/library/products/seats.md +1 -1
  253. package/fixtures/cases/nested-reference/library/products/support.md +1 -1
  254. package/fixtures/cases/nested-required-field/expected.json +2 -1
  255. package/fixtures/cases/nested-required-field/library/companies/acme.md +1 -1
  256. package/fixtures/cases/nested-required-field/library/deals/renewal.md +48 -23
  257. package/fixtures/cases/nested-required-field/schema.yaml +10 -11
  258. package/fixtures/cases/numeric-range/expected.json +2 -1
  259. package/fixtures/cases/numeric-range/library/companies/acme.md +1 -1
  260. package/fixtures/cases/numeric-range/library/deals/renewal.md +49 -24
  261. package/fixtures/cases/numeric-range/schema.yaml +10 -11
  262. package/fixtures/cases/one-key-two-labels/context.json +1 -0
  263. package/fixtures/cases/one-key-two-labels/expected.json +5 -0
  264. package/fixtures/cases/one-key-two-labels/schema.yaml +5 -0
  265. package/fixtures/cases/one-key-two-types/context.json +1 -0
  266. package/fixtures/cases/one-key-two-types/expected.json +5 -0
  267. package/fixtures/cases/one-key-two-types/schema.yaml +4 -0
  268. package/fixtures/cases/one-of-variant/expected.json +2 -1
  269. package/fixtures/cases/one-of-variant/library/companies/acme.md +1 -1
  270. package/fixtures/cases/one-of-variant/library/deals/renewal.md +49 -24
  271. package/fixtures/cases/one-of-variant/schema.yaml +10 -11
  272. package/fixtures/cases/other-room-reference/expected.json +2 -1
  273. package/fixtures/cases/other-room-reference/library/companies/acme.md +1 -1
  274. package/fixtures/cases/other-room-reference/library/deals/renewal.md +12 -9
  275. package/fixtures/cases/other-room-reference/library/places/depot.md +1 -1
  276. package/fixtures/cases/other-room-reference/library/products/seats.md +1 -1
  277. package/fixtures/cases/other-room-reference/library/products/support.md +1 -1
  278. package/fixtures/cases/prototype-field/expected.json +2 -1
  279. package/fixtures/cases/prototype-field/library/item.md +2 -2
  280. package/fixtures/cases/prototype-field/schema.yaml +2 -3
  281. package/fixtures/cases/reference-into-a-reserved-name/expected.json +2 -1
  282. package/fixtures/cases/reference-into-a-reserved-name/library/notes/a.md +1 -1
  283. package/fixtures/cases/reference-to-any-file-name/context.json +1 -0
  284. package/fixtures/cases/reference-to-any-file-name/expected.json +1 -0
  285. package/fixtures/cases/reference-to-any-file-name/library/people/100%.md +4 -0
  286. package/fixtures/cases/reference-to-any-file-name/library/people/C#.md +4 -0
  287. package/fixtures/cases/reference-to-any-file-name/library/people/My notes.md +4 -0
  288. package/fixtures/cases/reference-to-any-file-name/library/people/[draft].md +4 -0
  289. package/fixtures/cases/reference-to-any-file-name/library/people/c (d).md +4 -0
  290. package/fixtures/cases/reference-to-any-file-name/library/people/caf/303/251.md +4 -0
  291. package/fixtures/cases/reference-to-any-file-name/library/people//320/236/321/202/321/207/321/221/321/202.md +4 -0
  292. package/fixtures/cases/reference-to-any-file-name/library/tasks/bracket.md +9 -0
  293. package/fixtures/cases/reference-to-any-file-name/library/tasks/cyrillic.md +9 -0
  294. package/fixtures/cases/reference-to-any-file-name/library/tasks/decomposed.md +9 -0
  295. package/fixtures/cases/reference-to-any-file-name/library/tasks/hash.md +9 -0
  296. package/fixtures/cases/reference-to-any-file-name/library/tasks/parenthesis.md +9 -0
  297. package/fixtures/cases/reference-to-any-file-name/library/tasks/percent.md +9 -0
  298. package/fixtures/cases/reference-to-any-file-name/library/tasks/spaced.md +9 -0
  299. package/fixtures/cases/reference-to-any-file-name/schema.yaml +10 -0
  300. package/fixtures/cases/referenced-missing-file/library/a.md +2 -2
  301. package/fixtures/cases/referenced-missing-file/library/b.md +2 -2
  302. package/fixtures/cases/referenced-missing-file/schema.yaml +3 -4
  303. package/fixtures/cases/referenced-missing-non-latin-file/context.json +1 -0
  304. package/fixtures/cases/referenced-missing-non-latin-file/expected.json +6 -0
  305. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/a.md +9 -0
  306. package/fixtures/cases/referenced-missing-non-latin-file/library/tasks/b.md +9 -0
  307. package/fixtures/cases/referenced-missing-non-latin-file/schema.yaml +10 -0
  308. package/fixtures/cases/sections-keyword-refused/context.json +1 -0
  309. package/fixtures/cases/sections-keyword-refused/expected.json +5 -0
  310. package/fixtures/cases/{structured-section → sections-keyword-refused}/schema.yaml +1 -2
  311. package/fixtures/cases/shortcut-reference-link/library/item.md +1 -1
  312. package/fixtures/cases/shortcut-reference-link/schema.yaml +2 -3
  313. package/fixtures/cases/string-length/expected.json +2 -1
  314. package/fixtures/cases/string-length/library/companies/acme.md +1 -1
  315. package/fixtures/cases/string-length/library/deals/renewal.md +49 -24
  316. package/fixtures/cases/string-length/schema.yaml +10 -11
  317. package/fixtures/cases/submission-keys/library/notes/visitor.md +2 -2
  318. package/fixtures/cases/text-field-kind/expected.json +1 -4
  319. package/fixtures/cases/text-field-kind/library/page.md +1 -1
  320. package/fixtures/cases/thematic-break-ends-the-values/context.json +1 -0
  321. package/fixtures/cases/thematic-break-ends-the-values/expected.json +1 -0
  322. package/fixtures/cases/thematic-break-ends-the-values/library/item.md +10 -0
  323. package/fixtures/cases/thematic-break-ends-the-values/schema.yaml +3 -0
  324. package/fixtures/cases/typed-path-names-its-type/library/settings/prefs/one.md +1 -1
  325. package/fixtures/cases/types-folder-content/library/types/task.md +1 -1
  326. package/fixtures/cases/undeclared-field/expected.json +2 -1
  327. package/fixtures/cases/undeclared-field/library/item.md +2 -2
  328. package/fixtures/cases/undeclared-field/schema.yaml +2 -3
  329. package/fixtures/cases/unevaluated-items-closed/expected.json +2 -1
  330. package/fixtures/cases/unevaluated-items-closed/library/trip.md +13 -3
  331. package/fixtures/cases/unnamed-typed-path-checks-its-fields/library/rooms/team/tasks/plan.md +2 -1
  332. package/fixtures/cases/unnamed-typed-path-names-a-type/library/rooms/team/tasks/plan.md +3 -2
  333. package/fixtures/cases/unnamed-typed-path-reads-its-type/library/rooms/team/tasks/plan.md +3 -2
  334. package/fixtures/cases/unnamed-typed-path-without-a-body/library/rooms/team/tasks/plan.md +2 -2
  335. package/fixtures/cases/unresolved-link/library/item.md +1 -1
  336. package/fixtures/cases/unresolved-link/schema.yaml +2 -3
  337. package/fixtures/cases/valid-typed-document/library/people/ada.md +1 -1
  338. package/fixtures/cases/valid-typed-document/library/tasks/one.md +11 -11
  339. package/fixtures/cases/valid-typed-document/schema.yaml +5 -6
  340. package/fixtures/forms.json +371 -0
  341. package/fixtures/preamble.json +29 -8
  342. package/fixtures/queries.json +397 -2
  343. package/package.json +10 -1
  344. package/dist/blocks.d.ts +0 -11
  345. package/dist/blocks.d.ts.map +0 -1
  346. package/dist/blocks.js +0 -87
  347. package/dist/divide.d.ts +0 -3
  348. package/dist/divide.d.ts.map +0 -1
  349. package/dist/divide.js +0 -320
  350. package/dist/links.d.ts +0 -29
  351. package/dist/links.d.ts.map +0 -1
  352. package/dist/links.js +0 -821
  353. package/dist/profile.d.ts +0 -6
  354. package/dist/profile.d.ts.map +0 -1
  355. package/dist/profile.js +0 -5
  356. package/dist/project.d.ts +0 -22
  357. package/dist/project.d.ts.map +0 -1
  358. package/dist/project.js +0 -126
  359. package/dist/sections.d.ts +0 -11
  360. package/dist/sections.d.ts.map +0 -1
  361. package/dist/sections.js +0 -57
  362. package/fixtures/cases/conditional-section/schema.yaml +0 -14
  363. package/fixtures/cases/missing-section-item-kind/expected.json +0 -5
  364. package/fixtures/cases/missing-section-item-kind/schema.yaml +0 -6
  365. package/fixtures/cases/null-refused/expected.json +0 -6
  366. package/fixtures/cases/null-refused/library/companies/acme.md +0 -4
  367. package/fixtures/cases/null-refused/library/deals/renewal.md +0 -31
  368. package/fixtures/cases/null-refused/schema.yaml +0 -56
  369. package/fixtures/cases/open-map-value/expected.json +0 -6
  370. package/fixtures/cases/open-map-value/library/companies/acme.md +0 -4
  371. package/fixtures/cases/open-map-value/library/deals/renewal.md +0 -31
  372. package/fixtures/cases/open-map-value/schema.yaml +0 -56
  373. package/fixtures/cases/section-item-enum/expected.json +0 -6
  374. package/fixtures/cases/section-item-enum/library/task.md +0 -8
  375. package/fixtures/cases/section-item-enum/schema.yaml +0 -3
  376. package/fixtures/cases/section-item-kind/expected.json +0 -6
  377. package/fixtures/cases/section-item-kind/library/task.md +0 -8
  378. package/fixtures/cases/section-item-kind/schema.yaml +0 -3
  379. package/fixtures/cases/section-items/library/page.md +0 -42
  380. package/fixtures/cases/section-items/schema.yaml +0 -10
  381. package/fixtures/cases/section-reference-path/expected.json +0 -6
  382. package/fixtures/cases/section-reference-path/library/page.md +0 -7
  383. package/fixtures/cases/section-reference-path/schema.yaml +0 -3
  384. package/fixtures/cases/section-reference-type/expected.json +0 -6
  385. package/fixtures/cases/section-reference-type/library/page.md +0 -7
  386. package/fixtures/cases/section-reference-type/schema.yaml +0 -3
  387. package/fixtures/cases/structured-section/expected.json +0 -6
  388. package/fixtures/division.json +0 -409
  389. package/fixtures/projection.json +0 -255
  390. /package/fixtures/cases/{conditional-section → block-scalar-frontmatter}/context.json +0 -0
  391. /package/fixtures/cases/{section-items → block-scalar-frontmatter}/expected.json +0 -0
  392. /package/fixtures/cases/{missing-section-item-kind → conditional-long-text}/context.json +0 -0
  393. /package/fixtures/cases/{null-refused → equal-labels}/context.json +0 -0
  394. /package/fixtures/cases/{open-map-value → frontmatter-construct}/context.json +0 -0
  395. /package/fixtures/cases/{section-item-enum → labels-in-the-rooms-language}/context.json +0 -0
  396. /package/fixtures/cases/{section-item-kind → lazy-list-item}/context.json +0 -0
  397. /package/fixtures/cases/{section-items → list-item-enum}/context.json +0 -0
  398. /package/fixtures/cases/{section-reference-path → list-item-kind}/context.json +0 -0
  399. /package/fixtures/cases/{section-reference-type → list-items}/context.json +0 -0
  400. /package/fixtures/cases/{section-items → list-items}/library/other.md +0 -0
  401. /package/fixtures/cases/{structured-section → list-reference-path}/context.json +0 -0
  402. /package/fixtures/cases/{section-reference-path → list-reference-path}/library/other.md +0 -0
  403. /package/fixtures/cases/{section-reference-type → list-reference-type}/library/note.md +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"house-model.d.ts","sourceRoot":"","sources":["../src/house-model.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,eAAO,MAAM,oBAAoB,kBAAkB,CAAC;AAEpD,eAAO,MAAM,uBAAuB;aAClC,KAAK;iBACH,IAAI;qBACF,WAAW,EAAE,sDAAsD;qBACnE,IAAI,EAAE,QAAQ;qBACd,OAAO;;iBAET,GAAG;qBACD,WAAW,EAAE,oDAAoD;qBACjE,IAAI,EAAE,QAAQ;qBACd,OAAO;;iBAET,KAAK;qBACH,WAAW,EAAE,yDAAyD;qBACtE,IAAI,EAAE,QAAQ;qBACd,OAAO;;iBAET,EAAE;qBACA,WAAW,EACT,2JAA2J;qBAC7J,IAAI,EAAE,QAAQ;qBACd,MAAM,EAAE,MAAM;;;aAGlB,uBAAuB;iBACrB,WAAW,EAAE,0DAA0D;iBACvE,UAAU;qBAAI,GAAG;yBAAI,KAAK,EAAE,KAAK;yBAAE,IAAI,EAAE,aAAa;;;iBACtD,QAAQ,YAAG,KAAK;;aAElB,oBAAoB;iBAClB,WAAW,EACT,0yBAA0yB;iBAC5yB,UAAU;qBACR,YAAY;yBAAI,KAAK,EAAE,cAAc;yBAAE,IAAI,EAAE,YAAY;;qBACzD,IAAI;yBACF,KAAK,EAAE,MAAM;yBACb,IAAI,EAAE,QAAQ;yBACd,IAAI,YACF,aAAa,EACb,cAAc,EACd,uBAAuB,EACvB,sBAAsB,EACtB,sCAAsC,EACtC,cAAc,EACd,sBAAsB,EACtB,gBAAgB,EAChB,2BAA2B,EAC3B,8BAA8B,EAC9B,cAAc,EACd,eAAe,EACf,QAAQ,EACR,iCAAiC,EACjC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C,CAAA;CAAE,GAC7F,CAAC,GACD,EAAE,CAAC;AAEP,MAAM,MAAM,mBAAmB,CAAC,IAAI,SAAS,cAAc,IAAI,UAAU,CAAC;IACxE,QAAQ,CAAC,UAAU,EAAE;QAAE,QAAQ,CAAC,IAAI,EAAE;YAAE,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;SAAE,CAAA;KAAE,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAClF,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC;CAC9D,CAAC,CAAC"}
@@ -0,0 +1,472 @@
1
+ import { APP_REFERENCE_PATTERN, ROOM_REFERENCE_PATTERN, SPACE_REFERENCE_PATTERN, } from './house-references/patterns.js';
2
+ export const APP_PREFERENCES_HOME = 'settings/apps';
3
+ export const HOUSE_MODEL_DECLARATION = {
4
+ $defs: {
5
+ room: {
6
+ description: 'A Room, by its Room reference, under the key `room`.',
7
+ type: 'string',
8
+ pattern: ROOM_REFERENCE_PATTERN.source,
9
+ },
10
+ app: {
11
+ description: 'An App, by its App reference, under the key `app`.',
12
+ type: 'string',
13
+ pattern: APP_REFERENCE_PATTERN.source,
14
+ },
15
+ space: {
16
+ description: 'A Space, by its Space reference, under the key `space`.',
17
+ type: 'string',
18
+ pattern: SPACE_REFERENCE_PATTERN.source,
19
+ },
20
+ id: {
21
+ description: 'Any other entity, by its identifier, under the key of its kind. An entity a type says more about is an object holding it under that key beside its facts.',
22
+ type: 'string',
23
+ format: 'uuid',
24
+ },
25
+ },
26
+ 'house-app-preferences': {
27
+ description: "An App's preferences. Its own vocabulary is in the body.",
28
+ properties: { app: { title: 'App', $ref: '#/$defs/app' } },
29
+ required: ['app'],
30
+ },
31
+ 'house-notification': {
32
+ description: "One kept Notification for this User: its kind, when it was sent as `created`, its way in, its email's subject and each fact of its value that is not sealed, named in snake_case. An entity a fact names is an object holding its identifier under the key of its kind, when the notification carries it, and its `name`, `email` and other facts beside it; a fact holding null is absent. `way_in` is either the House `path` it opens or the entity it is about, by its identifier under the key of its kind, a Trigger with its `room`. Its body is its email's words in Markdown. Both were worded once, in the User's language when it was delivered; an App may show them or word it itself from its kind and value. `read` is when the User opened it or marked it read, on any device: the one field House adds after delivery.",
33
+ properties: {
34
+ notification: { title: 'Notification', $ref: '#/$defs/id' },
35
+ kind: {
36
+ title: 'Kind',
37
+ type: 'string',
38
+ enum: [
39
+ 'share-offer',
40
+ 'join-request',
41
+ 'join-request-approved',
42
+ 'room-ownership-offer',
43
+ 'managed-environment-retention-opened',
44
+ 'storage-full',
45
+ 'sandbox-budget-spent',
46
+ 'trigger-failed',
47
+ 'room-telegram-chat-paused',
48
+ 'break-glass-owner-disclosure',
49
+ 'export-ready',
50
+ 'export-failed',
51
+ 'custom',
52
+ 'agent-function-request-finished',
53
+ 'storage-past-included',
54
+ ],
55
+ },
56
+ created: { title: 'Created', type: 'string', format: 'date-time' },
57
+ read: { title: 'Read', type: 'string', format: 'date-time' },
58
+ way_in: {
59
+ title: 'Way in',
60
+ type: 'object',
61
+ additionalProperties: false,
62
+ properties: {
63
+ path: { title: 'Path', type: 'string', pattern: '^\\/' },
64
+ room: { title: 'Room', $ref: '#/$defs/room' },
65
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
66
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
67
+ },
68
+ minProperties: 1,
69
+ },
70
+ subject: { title: 'Subject', type: 'string' },
71
+ share: { title: 'Share', $ref: '#/$defs/id' },
72
+ issuer: {
73
+ title: 'Issuer',
74
+ type: 'object',
75
+ additionalProperties: false,
76
+ properties: {
77
+ name: { title: 'Name', type: 'string' },
78
+ email: { title: 'Email', type: 'string', format: 'email' },
79
+ },
80
+ required: ['name'],
81
+ },
82
+ rooms: {
83
+ title: 'Rooms',
84
+ type: 'array',
85
+ items: {
86
+ type: 'object',
87
+ additionalProperties: false,
88
+ properties: { name: { title: 'Name', type: 'string' } },
89
+ required: ['name'],
90
+ },
91
+ },
92
+ apps: {
93
+ title: 'Apps',
94
+ type: 'array',
95
+ items: {
96
+ type: 'object',
97
+ additionalProperties: false,
98
+ properties: {
99
+ name: { title: 'Name', type: 'string', minLength: 1, maxLength: 200 },
100
+ reaches: {
101
+ title: 'Reaches',
102
+ type: 'array',
103
+ items: { type: 'string', minLength: 1, maxLength: 512 },
104
+ },
105
+ },
106
+ required: ['name', 'reaches'],
107
+ },
108
+ },
109
+ spaces: {
110
+ title: 'Spaces',
111
+ type: 'array',
112
+ items: {
113
+ type: 'object',
114
+ additionalProperties: false,
115
+ properties: { name: { title: 'Name', type: 'string' } },
116
+ required: ['name'],
117
+ },
118
+ },
119
+ expires_at: { title: 'Expires at', type: 'string', format: 'date-time' },
120
+ join_request: { title: 'Join request', $ref: '#/$defs/id' },
121
+ user: {
122
+ title: 'User',
123
+ type: 'object',
124
+ additionalProperties: false,
125
+ properties: {
126
+ name: { title: 'Name', type: 'string' },
127
+ email: { title: 'Email', type: 'string', format: 'email' },
128
+ },
129
+ required: ['name'],
130
+ },
131
+ room: {
132
+ title: 'Room',
133
+ type: 'object',
134
+ additionalProperties: false,
135
+ properties: {
136
+ room: { title: 'Room', $ref: '#/$defs/room' },
137
+ name: { title: 'Name', type: 'string' },
138
+ },
139
+ minProperties: 1,
140
+ },
141
+ app: {
142
+ title: 'App',
143
+ type: 'object',
144
+ additionalProperties: false,
145
+ properties: { app: { title: 'App', $ref: '#/$defs/app' } },
146
+ required: ['app'],
147
+ },
148
+ space: {
149
+ title: 'Space',
150
+ type: 'object',
151
+ additionalProperties: false,
152
+ properties: { space: { title: 'Space', $ref: '#/$defs/space' } },
153
+ required: ['space'],
154
+ },
155
+ ownership_offer: { title: 'Ownership offer', $ref: '#/$defs/id' },
156
+ offerer: {
157
+ title: 'Offerer',
158
+ type: 'object',
159
+ additionalProperties: false,
160
+ properties: {
161
+ name: { title: 'Name', type: 'string' },
162
+ email: { title: 'Email', type: 'string', format: 'email' },
163
+ },
164
+ required: ['name'],
165
+ },
166
+ environment: {
167
+ title: 'Environment',
168
+ type: 'object',
169
+ additionalProperties: false,
170
+ properties: {
171
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
172
+ name: { title: 'Name', type: 'string' },
173
+ kind: { title: 'Kind', enum: ['vps', 'sandbox'] },
174
+ },
175
+ required: ['environment', 'name'],
176
+ },
177
+ reason: { title: 'Reason', type: 'string' },
178
+ deadline: { title: 'Deadline', type: 'string', format: 'date-time' },
179
+ free: {
180
+ title: 'Free',
181
+ type: 'object',
182
+ additionalProperties: false,
183
+ properties: {
184
+ held: { title: 'Held', type: 'string', pattern: '^\\d+$' },
185
+ limit: { title: 'Limit', type: 'string', pattern: '^[1-9]\\d*$' },
186
+ measure: { title: 'Measure', type: 'string', enum: ['content', 'retained'] },
187
+ },
188
+ required: ['held', 'limit', 'measure'],
189
+ },
190
+ chat: { title: 'Chat', type: 'string' },
191
+ missing: {
192
+ title: 'Missing',
193
+ type: 'array',
194
+ items: {
195
+ type: 'string',
196
+ enum: [
197
+ 'private',
198
+ 'topics',
199
+ 'ban_users',
200
+ 'invite_users',
201
+ 'manage_topics',
202
+ 'post_messages',
203
+ 'edit_messages',
204
+ 'inbox_manage_topics',
205
+ 'inbox_delete_messages',
206
+ ],
207
+ },
208
+ },
209
+ budget: { title: 'Budget', type: 'string', pattern: '^\\d+(?:\\.\\d+)?$' },
210
+ resets_at: { title: 'Resets at', type: 'string', format: 'date-time' },
211
+ grant: { title: 'Grant', $ref: '#/$defs/id' },
212
+ category: { title: 'Category', type: 'string' },
213
+ access_started_at: { title: 'Access started at', type: 'string', format: 'date-time' },
214
+ access_ended_at: { title: 'Access ended at', type: 'string', format: 'date-time' },
215
+ systems: { title: 'Systems', type: 'array', items: { type: 'string' } },
216
+ case_reference: { title: 'Case reference', type: 'string' },
217
+ export: { title: 'Export', $ref: '#/$defs/id' },
218
+ size_bytes: { title: 'Size in bytes', type: 'integer', minimum: 0 },
219
+ name: { title: 'Name', type: 'string' },
220
+ authorship: {
221
+ title: 'Authorship',
222
+ type: 'object',
223
+ additionalProperties: false,
224
+ properties: {
225
+ kind: { title: 'Kind', type: 'string', const: 'trigger-action' },
226
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
227
+ position: { title: 'Position', type: 'integer', minimum: 0 },
228
+ },
229
+ required: ['kind', 'trigger', 'position'],
230
+ },
231
+ path: { title: 'Path', type: 'string', maxLength: 4096, pattern: '^\\/.*' },
232
+ trigger: {
233
+ title: 'Trigger',
234
+ type: 'object',
235
+ additionalProperties: false,
236
+ properties: {
237
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
238
+ description: { title: 'Description', type: 'string' },
239
+ },
240
+ required: ['trigger', 'description'],
241
+ },
242
+ code: {
243
+ title: 'Code',
244
+ type: 'string',
245
+ enum: [
246
+ 'failed',
247
+ 'internal_error',
248
+ 'agent_function_unreadable',
249
+ 'function_failed',
250
+ 'function_not_started',
251
+ 'agent_function_request_not_started',
252
+ 'post_not_confirmed',
253
+ ],
254
+ },
255
+ action: { title: 'Action', type: 'integer', minimum: 0 },
256
+ moment: { title: 'Moment', type: 'string', format: 'date-time' },
257
+ error: { title: 'Error', type: 'string' },
258
+ document_path: { title: 'Document path', type: 'string' },
259
+ agent_function: {
260
+ title: 'Agent function',
261
+ type: 'object',
262
+ additionalProperties: false,
263
+ properties: { name: { title: 'Name', type: 'string' } },
264
+ required: ['name'],
265
+ },
266
+ agent: {
267
+ title: 'Agent',
268
+ type: 'object',
269
+ additionalProperties: false,
270
+ properties: { name: { title: 'Name', type: 'string' } },
271
+ required: ['name'],
272
+ },
273
+ ended: { title: 'Ended', type: 'string', enum: ['finished', 'failed'] },
274
+ duration: { title: 'Duration', type: 'integer', minimum: 1 },
275
+ meter: { title: 'Meter', type: 'string', enum: ['indexed_text', 'blob'] },
276
+ average_bytes: { title: 'Average in bytes', type: 'integer', minimum: 0 },
277
+ included_bytes: { title: 'Included in bytes', type: 'integer', minimum: 1 },
278
+ block_bytes: { title: 'Block in bytes', type: 'integer', minimum: 1 },
279
+ block_usd: { title: 'Block price in USD', type: 'number', exclusiveMinimum: 0 },
280
+ amount_usd: { title: 'Amount in USD', type: 'number', exclusiveMinimum: 0 },
281
+ },
282
+ required: ['notification', 'kind', 'created', 'way_in', 'subject'],
283
+ },
284
+ 'house-panel-preferences': {
285
+ description: "The panel's preferences at /rooms/private/settings/panel.md. Its own vocabulary is in the body.",
286
+ properties: {},
287
+ },
288
+ 'house-agent-function': {
289
+ description: "One Agent function that serves this Room, which House alone writes from its owner's document in their Private Room and their Standing answer for it: the `agent_function` by identifier, its `description`, the `input` a caller sends, empty when it takes nothing, the `agent` it starts, by `agent` and the `name` that Agent had when this card was last written, and its `answer`, how a request from anyone but its owner starts: `at_once`, `ask_me`, which waits for its owner's approval, or `off`, which refuses it. The Agent function's instruction is never written here.",
290
+ properties: {
291
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
292
+ agent_function: { title: 'Agent function', $ref: '#/$defs/id' },
293
+ description: { title: 'Description', type: 'string' },
294
+ input: { title: 'Input', type: 'string' },
295
+ agent: {
296
+ title: 'Agent',
297
+ type: 'object',
298
+ additionalProperties: false,
299
+ properties: {
300
+ agent: { title: 'Agent', $ref: '#/$defs/id' },
301
+ name: { title: 'Name', type: 'string' },
302
+ },
303
+ required: ['agent', 'name'],
304
+ },
305
+ answer: { title: 'Answer', type: 'string', enum: ['at_once', 'ask_me', 'off'] },
306
+ },
307
+ required: ['reflected', 'agent_function', 'description', 'input', 'agent', 'answer'],
308
+ },
309
+ 'house-agent-function-document': {
310
+ description: 'One Agent function as its owner writes it in their Private Room at rooms/<room-handle>/agent-functions/<name>.md, a path that binds this type and a document that names no type: what it does as `description`, what a caller sends as `input`, empty when it takes nothing, the `agent` it starts, by identifier, and `afk`, true for a run nobody watches, off when absent. Its body is the instruction that Agent follows.',
311
+ properties: {
312
+ description: { title: 'Description', type: 'string', maxLength: 2000, pattern: '\\S' },
313
+ input: { title: 'Input', type: 'string' },
314
+ agent: { title: 'Agent', $ref: '#/$defs/id' },
315
+ afk: { title: 'AFK', type: 'boolean' },
316
+ },
317
+ required: ['description', 'input', 'agent'],
318
+ },
319
+ 'house-trigger': {
320
+ description: "One Trigger of this Room as its acts wrote it, which House alone writes: its `description`, the `condition` it fires on, its `actions` in order, whether each action and the Trigger are `enabled`, `paused_by` `types` while a change of the Room's types paused it, its `creator` by `user` and the `name` they had then, and when it was `created`. A `notify` action reaches the `users` its `to` names, the members its `fields` name in the matched document and the holders of its `roles`, or, `in_group`, posts once in this Room's Telegram group in their place, mentioning each; an `agent_function` action sends its `payload` to the Agent function whose card under this Room's `house/agent-functions/` its `card` names, absent while this Room holds no card of that Agent function; a `message` action puts its `text` into the active conversation that Agent function started for what the Event is about, or starts that Agent function when none is active; a `done` action marks Done every active conversation an Agent function request of this Room started for the Event's document; a `function` action runs the `function` its `app`'s latest release declares, on House's servers, or, naming no `app`, the Room owner's Environment function of that name on its Environment, which only a Trigger of their Private Room holds. Whether an action's target holds is not written: it follows from the Room's members, the Agent function's card, the App's latest release and the owner's functions.",
321
+ properties: {
322
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
323
+ trigger: { title: 'Trigger', $ref: '#/$defs/id' },
324
+ description: { title: 'Description', type: 'string' },
325
+ condition: {
326
+ title: 'Condition',
327
+ description: 'When it fires, as the Trigger reference page writes it, a document it names at its current path.',
328
+ type: 'object',
329
+ additionalProperties: true,
330
+ },
331
+ actions: {
332
+ title: 'Actions',
333
+ type: 'array',
334
+ items: {
335
+ anyOf: [
336
+ {
337
+ type: 'object',
338
+ additionalProperties: false,
339
+ properties: {
340
+ kind: { title: 'Kind', const: 'notify' },
341
+ enabled: { title: 'Enabled', type: 'boolean' },
342
+ title: { title: 'Title', type: 'string' },
343
+ text: { title: 'Text', type: 'string' },
344
+ to: {
345
+ title: 'To',
346
+ type: 'object',
347
+ additionalProperties: false,
348
+ properties: {
349
+ users: {
350
+ title: 'Users',
351
+ type: 'array',
352
+ items: {
353
+ type: 'object',
354
+ additionalProperties: false,
355
+ properties: { user: { title: 'User', $ref: '#/$defs/id' } },
356
+ required: ['user'],
357
+ },
358
+ },
359
+ fields: { title: 'Fields', type: 'array', items: { type: 'string' } },
360
+ roles: { title: 'Roles', type: 'array', items: { type: 'string' } },
361
+ },
362
+ required: ['users', 'fields', 'roles'],
363
+ },
364
+ in_group: { title: 'In group', const: true },
365
+ },
366
+ required: ['kind', 'enabled', 'title', 'text', 'to'],
367
+ },
368
+ {
369
+ type: 'object',
370
+ additionalProperties: false,
371
+ properties: {
372
+ kind: { title: 'Kind', const: 'agent_function' },
373
+ enabled: { title: 'Enabled', type: 'boolean' },
374
+ card: { title: 'Card', type: 'string', minLength: 1 },
375
+ payload: { title: 'Payload', type: 'string' },
376
+ },
377
+ required: ['kind', 'enabled', 'payload'],
378
+ },
379
+ {
380
+ type: 'object',
381
+ additionalProperties: false,
382
+ properties: {
383
+ kind: { title: 'Kind', const: 'message' },
384
+ enabled: { title: 'Enabled', type: 'boolean' },
385
+ card: { title: 'Card', type: 'string', minLength: 1 },
386
+ text: { title: 'Text', type: 'string' },
387
+ },
388
+ required: ['kind', 'enabled', 'text'],
389
+ },
390
+ {
391
+ type: 'object',
392
+ additionalProperties: false,
393
+ properties: {
394
+ kind: { title: 'Kind', const: 'done' },
395
+ enabled: { title: 'Enabled', type: 'boolean' },
396
+ },
397
+ required: ['kind', 'enabled'],
398
+ },
399
+ {
400
+ type: 'object',
401
+ additionalProperties: false,
402
+ properties: {
403
+ kind: { title: 'Kind', const: 'function' },
404
+ enabled: { title: 'Enabled', type: 'boolean' },
405
+ app: { title: 'App', $ref: '#/$defs/app' },
406
+ function: { title: 'Function', type: 'string' },
407
+ },
408
+ required: ['kind', 'enabled', 'function'],
409
+ },
410
+ ],
411
+ },
412
+ },
413
+ enabled: { title: 'Enabled', type: 'boolean' },
414
+ paused_by: { title: 'Paused by', enum: ['types'] },
415
+ creator: {
416
+ title: 'Creator',
417
+ type: 'object',
418
+ additionalProperties: false,
419
+ properties: {
420
+ user: { title: 'User', $ref: '#/$defs/id' },
421
+ name: { title: 'Name', type: 'string' },
422
+ },
423
+ required: ['user', 'name'],
424
+ },
425
+ created: { title: 'Created', type: 'string', format: 'date-time' },
426
+ },
427
+ required: [
428
+ 'reflected',
429
+ 'trigger',
430
+ 'description',
431
+ 'condition',
432
+ 'actions',
433
+ 'enabled',
434
+ 'creator',
435
+ 'created',
436
+ ],
437
+ },
438
+ 'house-web-wizard': {
439
+ description: "One Web Wizard an agent made for this User: the `environment` it runs on, with the `name` that Environment had when the Web Wizard was made, and its `state`, `waiting` until its owner presses Run or Keep, `running`, `finished` with the script's `exit_code`, `failed`, `cancelled` when its page closed before the script ended, `lapsed` when nobody ran it in its time, or `kept` when its owner kept the script, without running it, as their Environment function named `function`. Its body is the script, whole, in one fenced code block. The terminal's output is never kept.",
440
+ properties: {
441
+ reflected: { title: 'Reflected', type: 'string', format: 'date-time' },
442
+ web_wizard: { title: 'Web Wizard', $ref: '#/$defs/id' },
443
+ environment: {
444
+ title: 'Environment',
445
+ type: 'object',
446
+ additionalProperties: false,
447
+ properties: {
448
+ environment: { title: 'Environment', $ref: '#/$defs/id' },
449
+ name: { title: 'Name', type: 'string' },
450
+ },
451
+ required: ['environment', 'name'],
452
+ },
453
+ state: {
454
+ title: 'State',
455
+ enum: ['waiting', 'running', 'finished', 'failed', 'cancelled', 'lapsed', 'kept'],
456
+ },
457
+ exit_code: { title: 'Exit code', type: 'integer' },
458
+ function: { title: 'Function', type: 'string' },
459
+ },
460
+ required: ['reflected', 'web_wizard', 'environment', 'state'],
461
+ },
462
+ };
463
+ export const HOUSE_TYPED_PATHS = [
464
+ { path: 'settings/panel.md', type: 'house-panel-preferences', named: true, body: false },
465
+ { path: `${APP_PREFERENCES_HOME}/*.md`, type: 'house-app-preferences', named: true, body: false },
466
+ {
467
+ path: 'rooms/*/agent-functions/*.md',
468
+ type: 'house-agent-function-document',
469
+ named: false,
470
+ body: true,
471
+ },
472
+ ];
@@ -0,0 +1,4 @@
1
+ export declare const CROCKFORD_ALPHABET = "0123456789abcdefghjkmnpqrstvwxyz";
2
+ export declare const CROCKFORD_CHARACTER = "[0123456789abcdefghjkmnpqrstvwxyz]";
3
+ export declare const CROCKFORD_LEADING_CHARACTER: string;
4
+ //# sourceMappingURL=crockford.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"crockford.d.ts","sourceRoot":"","sources":["../../src/house-references/crockford.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,qCAAqC,CAAC;AAErE,eAAO,MAAM,mBAAmB,uCAA4B,CAAC;AAE7D,eAAO,MAAM,2BAA2B,QAAqC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export const CROCKFORD_ALPHABET = '0123456789abcdefghjkmnpqrstvwxyz';
2
+ export const CROCKFORD_CHARACTER = `[${CROCKFORD_ALPHABET}]`;
3
+ export const CROCKFORD_LEADING_CHARACTER = `[${CROCKFORD_ALPHABET.slice(1)}]`;
@@ -0,0 +1,9 @@
1
+ export declare const ROOM_REFERENCE_PREFIX = "r_";
2
+ export declare const APP_REFERENCE_PREFIX = "a_";
3
+ export declare const SPACE_REFERENCE_PREFIX = "sp_";
4
+ export declare const REVISION_REFERENCE_PREFIX = "fr_";
5
+ export declare const ROOM_REFERENCE_PATTERN: RegExp;
6
+ export declare const APP_REFERENCE_PATTERN: RegExp;
7
+ export declare const SPACE_REFERENCE_PATTERN: RegExp;
8
+ export declare const REVISION_REFERENCE_PATTERN: RegExp;
9
+ //# sourceMappingURL=patterns.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"patterns.d.ts","sourceRoot":"","sources":["../../src/house-references/patterns.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,qBAAqB,OAAO,CAAC;AAE1C,eAAO,MAAM,oBAAoB,OAAO,CAAC;AAEzC,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAE5C,eAAO,MAAM,yBAAyB,QAAQ,CAAC;AAM/C,eAAO,MAAM,sBAAsB,QAA0C,CAAC;AAE9E,eAAO,MAAM,qBAAqB,QAAyC,CAAC;AAE5E,eAAO,MAAM,uBAAuB,QAA2C,CAAC;AAIhF,eAAO,MAAM,0BAA0B,QAEtC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER } from './crockford.js';
2
+ export const ROOM_REFERENCE_PREFIX = 'r_';
3
+ export const APP_REFERENCE_PREFIX = 'a_';
4
+ export const SPACE_REFERENCE_PREFIX = 'sp_';
5
+ export const REVISION_REFERENCE_PREFIX = 'fr_';
6
+ function referencePattern(prefix) {
7
+ return new RegExp(`^${prefix}(${CROCKFORD_CHARACTER}+)\\.(${CROCKFORD_CHARACTER})$`);
8
+ }
9
+ export const ROOM_REFERENCE_PATTERN = referencePattern(ROOM_REFERENCE_PREFIX);
10
+ export const APP_REFERENCE_PATTERN = referencePattern(APP_REFERENCE_PREFIX);
11
+ export const SPACE_REFERENCE_PATTERN = referencePattern(SPACE_REFERENCE_PREFIX);
12
+ const ORDINAL = `${CROCKFORD_LEADING_CHARACTER}${CROCKFORD_CHARACTER}*`;
13
+ export const REVISION_REFERENCE_PATTERN = new RegExp(`^${REVISION_REFERENCE_PREFIX}(${ORDINAL})\\.(${ORDINAL})\\.(${CROCKFORD_CHARACTER})$`);
package/dist/index.d.ts CHANGED
@@ -1,34 +1,48 @@
1
1
  export { candidateOf, datePointers, facts, memberPointers, members, pointed, prosePaths, TEXT_FIELD, valuedChange, WRITE_DOORS, } from './event.js';
2
2
  export type { Actor, DocumentEvent, DocumentFacts, Fact, ItemFacts, MessageFacts, Resolved, WriteDoor, } from './event.js';
3
- export { byCodePoint, compared, dated, fitsKind, instant, instantKey, KINDS, kindOf, kindWords, } from './kinds.js';
3
+ export { byCodePoint, compared, dated, fitsKind, indexKey, instant, instantKey, kindOf, kindWords, } from './kinds.js';
4
4
  export type { Kind, Ordering } from './kinds.js';
5
5
  export { bodied, cursorOf, decodedCursor, identityOf, invalid, known, placeText, planOf, QueryError, queryKey, } from './query/language.js';
6
6
  export type { Clause, Continuation, Direction, DocumentQuery, DocumentShape, Filter, GroupKey, GroupOrder, GroupQuery, GroupSelect, GroupShape, HeldRooms, Key, KeyPlan, LocalQuery, OrderOptions, Place, Predicate, QueryErrorCode, QueryPlan, Related, RoomFacts, Scope, Select, Test, Value, Where, } from './query/language.js';
7
+ export { countOf, countShape, pageOrder, walkedValue, walkOf } from './query/walk.js';
8
+ export type { Count, KeyBound, KeyRange, PageOrder, Walk, WalkRun } from './query/walk.js';
9
+ export { verifyIndexBounds } from './indexed.js';
10
+ export type { IndexBounds } from './indexed.js';
7
11
  export { heldAt, matches } from './query/match.js';
8
12
  export type { Candidate } from './query/match.js';
9
13
  export { heldKind, indexed } from './query/rows.js';
10
14
  export type { HeldKind, HeldLink, HeldValue, Indexed, Reach } from './query/rows.js';
11
15
  export * as sql from './query/sql.js';
12
- export { headingLines } from './blocks.js';
13
- export type { HeadingLine } from './blocks.js';
14
- export { divide } from './divide.js';
15
- export { apply, bodyLinks, links, parse, parseFrontmatter, relativize, relativizeBody, relinkBody, serialize, unlinkBody, } from './document.js';
16
+ export { headingLines } from './markdown.js';
17
+ export type { HeadingLine } from './markdown.js';
18
+ export { acceptsType, dataUrl, dataUrlPattern, declaresUtf8, FILE_MEDIA_TYPES, fileExtension, formDataType, gitMediaType, isAudioType, isImageType, isVideoType, MEDIA_TYPES, mediaTypeEssence, SCRIPT_MEDIA_TYPES, servedMediaType, UTF8_TEXT, withCharset, } from './media-type.js';
19
+ export { shownDay, shownMoment } from './moment.js';
20
+ export type { MomentReader } from './moment.js';
21
+ export { labelAt, NAME_FIELD } from './body.js';
22
+ export type { Naming } from './body.js';
23
+ export { apply, bodyLinks, create, links, parse, partText, relabel, relabels, relativize, relativizeBody, relinkBody, serialize, textSpans, unlinkBody, } from './document.js';
16
24
  export { documentFacts, referenceTarget, referenceTargets } from './facts.js';
25
+ export { notReadyWaitMs } from './not-ready.js';
17
26
  export type { ReferenceTarget, SavedFacts } from './facts.js';
18
- export { HOUSE_FIELDS, MEMBER_FIELD, RECEIVED_FIELD, SITE_FIELD, TYPE_FIELD } from './fields.js';
19
- export { relative, retarget, roomPath, roomTarget, target } from './paths.js';
27
+ export { CROCKFORD_ALPHABET, CROCKFORD_CHARACTER, CROCKFORD_LEADING_CHARACTER, } from './house-references/crockford.js';
28
+ export { HOUSE_FIELDS, MEMBER_FIELD, SITE_FIELD, SUBMITTED_FIELD, TYPE_FIELD } from './fields.js';
29
+ export { HOUSE_MODEL, HOUSE_ROOM_TYPES } from './built-in.js';
30
+ export { APP_PREFERENCES_HOME, HOUSE_MODEL_DECLARATION, HOUSE_TYPED_PATHS } from './house-model.js';
31
+ export { APP_REFERENCE_PATTERN, APP_REFERENCE_PREFIX, ROOM_REFERENCE_PATTERN, REVISION_REFERENCE_PATTERN, REVISION_REFERENCE_PREFIX, ROOM_REFERENCE_PREFIX, SPACE_REFERENCE_PATTERN, SPACE_REFERENCE_PREFIX, } from './house-references/patterns.js';
32
+ export type { HouseDocumentFields, HouseModelType } from './house-model.js';
33
+ export { CHAT_MESSAGE_TYPE, CHAT_TYPE, INBOX_CHANNEL_KINDS, INBOX_TYPES } from './room-types.js';
34
+ export type { InboxChannelKind } from './room-types.js';
35
+ export { keyedDestination, keyedLink, linkedPath, relative, retarget, roomPath, roomTarget, target, urlDestination, } from './paths.js';
20
36
  export { openPatternBudget } from './pattern.js';
21
- export type { RoomTarget } from './paths.js';
22
- export { MARKDOWN_SYNTAX_PROFILE } from './profile.js';
23
- export { project } from './project.js';
37
+ export type { LinkedPath, RoomTarget } from './paths.js';
24
38
  export { references } from './references.js';
25
- export { isDocumentPath, isReservedName, RESERVED_NAMES, ROOM_DESCRIPTION } from './reserved.js';
26
- export { ARRAY_INDEX, ATTACHMENT, crossedFacts, escapePointer, itemFacts, JSON_POINTER, memberFacts, pointerFacts, pointerSegments, } from './definition.js';
27
- export type { Definition, FieldRules, JsonType, PatternFacts, PointerFacts, RuleValue, SectionSpec, Shape, Transition, ValueFacts, } from './definition.js';
28
- export type { ApplyResult, BodyResult, Change, Division, DivisionContext, Document, DocumentCheck, Frontmatter, FrontmatterResult, Library, ModelVerification, Link, ParseResult, Projection, ProjectionContext, Reached, Reference, Refusal, RoomReference, Span, TypedPath, UnlinkedBody, Validation, ValidationContext, ValidationStep, VerifiedModel, } from './types.js';
29
- export { assess, assessReferences, bodyRoomLinks, checkDocument, readTypes, resolves, roomReferences, validate, validating, verdicts, verify, } from './validate.js';
39
+ export { CAPTURE_HOME, isDocumentPath, isReservedName, RESERVED_NAMES, ROOM_DESCRIPTION, } from './reserved.js';
40
+ export { ARRAY_INDEX, ATTACHMENT, crossedFacts, escapePointer, itemFacts, JSON_POINTER, memberFacts, pointerFacts, pointerSegments, untitled, } from './definition.js';
41
+ export type { Definition, FieldRules, JsonType, PatternFacts, PointerFacts, RuleValue, Shape, Transition, ValueFacts, } from './definition.js';
42
+ export type { ApplyResult, BodyResult, Change, DefinitionOf, Document, DocumentCheck, Extent, Library, ModelVerification, Link, ParseResult, Reached, Reference, Refusal, RoomReference, Span, TypedPath, UnlinkedBody, Validation, ValidationContext, ValidationStep, VerifiedModel, } from './types.js';
43
+ export { assess, assessReferences, bodyKeyedLinks, bodyRoomLinks, checkDocument, definitionAt, readTypes, resolves, roomReferences, validate, validateParsed, validating, verdicts, verify, } from './validate.js';
30
44
  export type { Assessment, Verdicts } from './validate.js';
31
45
  export { VERSION } from './version.js';
32
- export { bodyAfterFrontmatter, equalValue, frontmatterValue, plain } from './yaml.js';
33
- export type { FrontmatterValue } from './yaml.js';
46
+ export { bodyAfterFrontmatter, documentValue, equalValue, plain } from './yaml.js';
47
+ export type { DocumentValue } from './yaml.js';
34
48
  //# sourceMappingURL=index.d.ts.map