@alisio/plugin-thesis 0.1.0

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 (547) hide show
  1. package/.agents/agents/thesis-architect.md +38 -0
  2. package/.agents/agents/thesis-coordinator.md +39 -0
  3. package/.agents/agents/thesis-editor.md +35 -0
  4. package/.agents/agents/thesis-evidence-auditor.md +37 -0
  5. package/.agents/agents/thesis-librarian.md +38 -0
  6. package/.agents/agents/thesis-methodologist.md +39 -0
  7. package/.agents/agents/thesis-reviewer.md +36 -0
  8. package/.agents/agents/thesis-writer.md +38 -0
  9. package/.agents/skills/thesis-build/SKILL.md +48 -0
  10. package/.agents/skills/thesis-citations/SKILL.md +49 -0
  11. package/.agents/skills/thesis-csl-authoring/SKILL.md +48 -0
  12. package/.agents/skills/thesis-editing/SKILL.md +49 -0
  13. package/.agents/skills/thesis-evidence/SKILL.md +48 -0
  14. package/.agents/skills/thesis-figures/SKILL.md +50 -0
  15. package/.agents/skills/thesis-institution-norms/SKILL.md +50 -0
  16. package/.agents/skills/thesis-intake/SKILL.md +48 -0
  17. package/.agents/skills/thesis-math/SKILL.md +48 -0
  18. package/.agents/skills/thesis-methodology/SKILL.md +49 -0
  19. package/.agents/skills/thesis-outline/SKILL.md +48 -0
  20. package/.agents/skills/thesis-policy/SKILL.md +48 -0
  21. package/.agents/skills/thesis-review/SKILL.md +49 -0
  22. package/.agents/skills/thesis-search/SKILL.md +47 -0
  23. package/.agents/skills/thesis-writing/SKILL.md +52 -0
  24. package/LICENSE +21 -0
  25. package/README.es.md +242 -0
  26. package/README.md +235 -0
  27. package/THIRD_PARTY_NOTICES.md +94 -0
  28. package/assets/architecture.svg +1 -0
  29. package/assets/evidence-pipeline.svg +1 -0
  30. package/assets/lifecycle.svg +1 -0
  31. package/assets/policy-resolution.svg +1 -0
  32. package/cover.webp +0 -0
  33. package/dist/authoring.d.ts +30 -0
  34. package/dist/authoring.d.ts.map +1 -0
  35. package/dist/authoring.js +681 -0
  36. package/dist/authoring.js.map +1 -0
  37. package/dist/brief.d.ts +40 -0
  38. package/dist/brief.d.ts.map +1 -0
  39. package/dist/brief.js +566 -0
  40. package/dist/brief.js.map +1 -0
  41. package/dist/cache.d.ts +8 -0
  42. package/dist/cache.d.ts.map +1 -0
  43. package/dist/cache.js +20 -0
  44. package/dist/cache.js.map +1 -0
  45. package/dist/checks/brief.d.ts +5 -0
  46. package/dist/checks/brief.d.ts.map +1 -0
  47. package/dist/checks/brief.js +38 -0
  48. package/dist/checks/brief.js.map +1 -0
  49. package/dist/checks/citations.d.ts +14 -0
  50. package/dist/checks/citations.d.ts.map +1 -0
  51. package/dist/checks/citations.js +87 -0
  52. package/dist/checks/citations.js.map +1 -0
  53. package/dist/checks/claims.d.ts +16 -0
  54. package/dist/checks/claims.d.ts.map +1 -0
  55. package/dist/checks/claims.js +147 -0
  56. package/dist/checks/claims.js.map +1 -0
  57. package/dist/checks/closing.d.ts +20 -0
  58. package/dist/checks/closing.d.ts.map +1 -0
  59. package/dist/checks/closing.js +168 -0
  60. package/dist/checks/closing.js.map +1 -0
  61. package/dist/checks/design.d.ts +5 -0
  62. package/dist/checks/design.d.ts.map +1 -0
  63. package/dist/checks/design.js +107 -0
  64. package/dist/checks/design.js.map +1 -0
  65. package/dist/checks/document.d.ts +17 -0
  66. package/dist/checks/document.d.ts.map +1 -0
  67. package/dist/checks/document.js +213 -0
  68. package/dist/checks/document.js.map +1 -0
  69. package/dist/checks/evidence.d.ts +7 -0
  70. package/dist/checks/evidence.d.ts.map +1 -0
  71. package/dist/checks/evidence.js +133 -0
  72. package/dist/checks/evidence.js.map +1 -0
  73. package/dist/checks/hygiene.d.ts +5 -0
  74. package/dist/checks/hygiene.d.ts.map +1 -0
  75. package/dist/checks/hygiene.js +37 -0
  76. package/dist/checks/hygiene.js.map +1 -0
  77. package/dist/checks/index.d.ts +21 -0
  78. package/dist/checks/index.d.ts.map +1 -0
  79. package/dist/checks/index.js +98 -0
  80. package/dist/checks/index.js.map +1 -0
  81. package/dist/checks/language.d.ts +14 -0
  82. package/dist/checks/language.d.ts.map +1 -0
  83. package/dist/checks/language.js +73 -0
  84. package/dist/checks/language.js.map +1 -0
  85. package/dist/checks/outline.d.ts +25 -0
  86. package/dist/checks/outline.d.ts.map +1 -0
  87. package/dist/checks/outline.js +214 -0
  88. package/dist/checks/outline.js.map +1 -0
  89. package/dist/checks/policy.d.ts +5 -0
  90. package/dist/checks/policy.d.ts.map +1 -0
  91. package/dist/checks/policy.js +129 -0
  92. package/dist/checks/policy.js.map +1 -0
  93. package/dist/checks/project.d.ts +65 -0
  94. package/dist/checks/project.d.ts.map +1 -0
  95. package/dist/checks/project.js +203 -0
  96. package/dist/checks/project.js.map +1 -0
  97. package/dist/checks/styles.d.ts +12 -0
  98. package/dist/checks/styles.d.ts.map +1 -0
  99. package/dist/checks/styles.js +67 -0
  100. package/dist/checks/styles.js.map +1 -0
  101. package/dist/checks/writing.d.ts +6 -0
  102. package/dist/checks/writing.d.ts.map +1 -0
  103. package/dist/checks/writing.js +115 -0
  104. package/dist/checks/writing.js.map +1 -0
  105. package/dist/chrome/detect.d.ts +19 -0
  106. package/dist/chrome/detect.d.ts.map +1 -0
  107. package/dist/chrome/detect.js +116 -0
  108. package/dist/chrome/detect.js.map +1 -0
  109. package/dist/claims.d.ts +19 -0
  110. package/dist/claims.d.ts.map +1 -0
  111. package/dist/claims.js +99 -0
  112. package/dist/claims.js.map +1 -0
  113. package/dist/cli.d.ts +11 -0
  114. package/dist/cli.d.ts.map +1 -0
  115. package/dist/cli.js +262 -0
  116. package/dist/cli.js.map +1 -0
  117. package/dist/context.d.ts +55 -0
  118. package/dist/context.d.ts.map +1 -0
  119. package/dist/context.js +62 -0
  120. package/dist/context.js.map +1 -0
  121. package/dist/coordinator.d.ts +139 -0
  122. package/dist/coordinator.d.ts.map +1 -0
  123. package/dist/coordinator.js +710 -0
  124. package/dist/coordinator.js.map +1 -0
  125. package/dist/delegate.d.ts +34 -0
  126. package/dist/delegate.d.ts.map +1 -0
  127. package/dist/delegate.js +105 -0
  128. package/dist/delegate.js.map +1 -0
  129. package/dist/diffguard.d.ts +24 -0
  130. package/dist/diffguard.d.ts.map +1 -0
  131. package/dist/diffguard.js +92 -0
  132. package/dist/diffguard.js.map +1 -0
  133. package/dist/doctor.d.ts +34 -0
  134. package/dist/doctor.d.ts.map +1 -0
  135. package/dist/doctor.js +155 -0
  136. package/dist/doctor.js.map +1 -0
  137. package/dist/draft.d.ts +64 -0
  138. package/dist/draft.d.ts.map +1 -0
  139. package/dist/draft.js +801 -0
  140. package/dist/draft.js.map +1 -0
  141. package/dist/figure.d.ts +13 -0
  142. package/dist/figure.d.ts.map +1 -0
  143. package/dist/figure.js +143 -0
  144. package/dist/figure.js.map +1 -0
  145. package/dist/finalize.d.ts +29 -0
  146. package/dist/finalize.d.ts.map +1 -0
  147. package/dist/finalize.js +230 -0
  148. package/dist/finalize.js.map +1 -0
  149. package/dist/index.d.ts +33 -0
  150. package/dist/index.d.ts.map +1 -0
  151. package/dist/index.js +206 -0
  152. package/dist/index.js.map +1 -0
  153. package/dist/intake.d.ts +57 -0
  154. package/dist/intake.d.ts.map +1 -0
  155. package/dist/intake.js +772 -0
  156. package/dist/intake.js.map +1 -0
  157. package/dist/labels.d.ts +50 -0
  158. package/dist/labels.d.ts.map +1 -0
  159. package/dist/labels.js +98 -0
  160. package/dist/labels.js.map +1 -0
  161. package/dist/outline.d.ts +45 -0
  162. package/dist/outline.d.ts.map +1 -0
  163. package/dist/outline.js +148 -0
  164. package/dist/outline.js.map +1 -0
  165. package/dist/pack-commands.d.ts +18 -0
  166. package/dist/pack-commands.d.ts.map +1 -0
  167. package/dist/pack-commands.js +397 -0
  168. package/dist/pack-commands.js.map +1 -0
  169. package/dist/package-paths.d.ts +8 -0
  170. package/dist/package-paths.d.ts.map +1 -0
  171. package/dist/package-paths.js +13 -0
  172. package/dist/package-paths.js.map +1 -0
  173. package/dist/policy/context.d.ts +19 -0
  174. package/dist/policy/context.d.ts.map +1 -0
  175. package/dist/policy/context.js +62 -0
  176. package/dist/policy/context.js.map +1 -0
  177. package/dist/policy/ethics.d.ts +59 -0
  178. package/dist/policy/ethics.d.ts.map +1 -0
  179. package/dist/policy/ethics.js +106 -0
  180. package/dist/policy/ethics.js.map +1 -0
  181. package/dist/policy/kinds.d.ts +9 -0
  182. package/dist/policy/kinds.d.ts.map +1 -0
  183. package/dist/policy/kinds.js +68 -0
  184. package/dist/policy/kinds.js.map +1 -0
  185. package/dist/policy/packs.d.ts +53 -0
  186. package/dist/policy/packs.d.ts.map +1 -0
  187. package/dist/policy/packs.js +336 -0
  188. package/dist/policy/packs.js.map +1 -0
  189. package/dist/policy/resolver.d.ts +87 -0
  190. package/dist/policy/resolver.d.ts.map +1 -0
  191. package/dist/policy/resolver.js +337 -0
  192. package/dist/policy/resolver.js.map +1 -0
  193. package/dist/policy/rules.d.ts +65 -0
  194. package/dist/policy/rules.d.ts.map +1 -0
  195. package/dist/policy/rules.js +194 -0
  196. package/dist/policy/rules.js.map +1 -0
  197. package/dist/protocol.d.ts +46 -0
  198. package/dist/protocol.d.ts.map +1 -0
  199. package/dist/protocol.js +86 -0
  200. package/dist/protocol.js.map +1 -0
  201. package/dist/render/adapters/chrome-pdf/cdp.d.ts +36 -0
  202. package/dist/render/adapters/chrome-pdf/cdp.d.ts.map +1 -0
  203. package/dist/render/adapters/chrome-pdf/cdp.js +291 -0
  204. package/dist/render/adapters/chrome-pdf/cdp.js.map +1 -0
  205. package/dist/render/adapters/chrome-pdf/index.d.ts +10 -0
  206. package/dist/render/adapters/chrome-pdf/index.d.ts.map +1 -0
  207. package/dist/render/adapters/chrome-pdf/index.js +139 -0
  208. package/dist/render/adapters/chrome-pdf/index.js.map +1 -0
  209. package/dist/render/adapters/chrome-pdf/network.d.ts +7 -0
  210. package/dist/render/adapters/chrome-pdf/network.d.ts.map +1 -0
  211. package/dist/render/adapters/chrome-pdf/network.js +33 -0
  212. package/dist/render/adapters/chrome-pdf/network.js.map +1 -0
  213. package/dist/render/adapters/html-preview/index.d.ts +8 -0
  214. package/dist/render/adapters/html-preview/index.d.ts.map +1 -0
  215. package/dist/render/adapters/html-preview/index.js +62 -0
  216. package/dist/render/adapters/html-preview/index.js.map +1 -0
  217. package/dist/render/adapters/test-json/index.d.ts +8 -0
  218. package/dist/render/adapters/test-json/index.d.ts.map +1 -0
  219. package/dist/render/adapters/test-json/index.js +62 -0
  220. package/dist/render/adapters/test-json/index.js.map +1 -0
  221. package/dist/render/adapters/typst-pdf/emitter.d.ts +21 -0
  222. package/dist/render/adapters/typst-pdf/emitter.d.ts.map +1 -0
  223. package/dist/render/adapters/typst-pdf/emitter.js +259 -0
  224. package/dist/render/adapters/typst-pdf/emitter.js.map +1 -0
  225. package/dist/render/adapters/typst-pdf/escape.d.ts +14 -0
  226. package/dist/render/adapters/typst-pdf/escape.d.ts.map +1 -0
  227. package/dist/render/adapters/typst-pdf/escape.js +56 -0
  228. package/dist/render/adapters/typst-pdf/escape.js.map +1 -0
  229. package/dist/render/adapters/typst-pdf/index.d.ts +9 -0
  230. package/dist/render/adapters/typst-pdf/index.d.ts.map +1 -0
  231. package/dist/render/adapters/typst-pdf/index.js +154 -0
  232. package/dist/render/adapters/typst-pdf/index.js.map +1 -0
  233. package/dist/render/adapters/typst-pdf/profile.d.ts +3 -0
  234. package/dist/render/adapters/typst-pdf/profile.d.ts.map +1 -0
  235. package/dist/render/adapters/typst-pdf/profile.js +55 -0
  236. package/dist/render/adapters/typst-pdf/profile.js.map +1 -0
  237. package/dist/render/adapters/typst-pdf/runner.d.ts +52 -0
  238. package/dist/render/adapters/typst-pdf/runner.d.ts.map +1 -0
  239. package/dist/render/adapters/typst-pdf/runner.js +209 -0
  240. package/dist/render/adapters/typst-pdf/runner.js.map +1 -0
  241. package/dist/render/adapters/typst-pdf/setup.d.ts +30 -0
  242. package/dist/render/adapters/typst-pdf/setup.d.ts.map +1 -0
  243. package/dist/render/adapters/typst-pdf/setup.js +183 -0
  244. package/dist/render/adapters/typst-pdf/setup.js.map +1 -0
  245. package/dist/render/adapters/typst-pdf/version.d.ts +8 -0
  246. package/dist/render/adapters/typst-pdf/version.d.ts.map +1 -0
  247. package/dist/render/adapters/typst-pdf/version.js +14 -0
  248. package/dist/render/adapters/typst-pdf/version.js.map +1 -0
  249. package/dist/render/assemble.d.ts +28 -0
  250. package/dist/render/assemble.d.ts.map +1 -0
  251. package/dist/render/assemble.js +309 -0
  252. package/dist/render/assemble.js.map +1 -0
  253. package/dist/render/assets.d.ts +27 -0
  254. package/dist/render/assets.d.ts.map +1 -0
  255. package/dist/render/assets.js +232 -0
  256. package/dist/render/assets.js.map +1 -0
  257. package/dist/render/build.d.ts +43 -0
  258. package/dist/render/build.d.ts.map +1 -0
  259. package/dist/render/build.js +187 -0
  260. package/dist/render/build.js.map +1 -0
  261. package/dist/render/charts.d.ts +83 -0
  262. package/dist/render/charts.d.ts.map +1 -0
  263. package/dist/render/charts.js +633 -0
  264. package/dist/render/charts.js.map +1 -0
  265. package/dist/render/default-registry.d.ts +7 -0
  266. package/dist/render/default-registry.d.ts.map +1 -0
  267. package/dist/render/default-registry.js +15 -0
  268. package/dist/render/default-registry.js.map +1 -0
  269. package/dist/render/diagram-theme.d.ts +7 -0
  270. package/dist/render/diagram-theme.d.ts.map +1 -0
  271. package/dist/render/diagram-theme.js +50 -0
  272. package/dist/render/diagram-theme.js.map +1 -0
  273. package/dist/render/dialect.d.ts +23 -0
  274. package/dist/render/dialect.d.ts.map +1 -0
  275. package/dist/render/dialect.js +188 -0
  276. package/dist/render/dialect.js.map +1 -0
  277. package/dist/render/html/citations.d.ts +70 -0
  278. package/dist/render/html/citations.d.ts.map +1 -0
  279. package/dist/render/html/citations.js +371 -0
  280. package/dist/render/html/citations.js.map +1 -0
  281. package/dist/render/html/css.d.ts +14 -0
  282. package/dist/render/html/css.d.ts.map +1 -0
  283. package/dist/render/html/css.js +113 -0
  284. package/dist/render/html/css.js.map +1 -0
  285. package/dist/render/html/emitter.d.ts +20 -0
  286. package/dist/render/html/emitter.d.ts.map +1 -0
  287. package/dist/render/html/emitter.js +652 -0
  288. package/dist/render/html/emitter.js.map +1 -0
  289. package/dist/render/html/escape.d.ts +11 -0
  290. package/dist/render/html/escape.d.ts.map +1 -0
  291. package/dist/render/html/escape.js +32 -0
  292. package/dist/render/html/escape.js.map +1 -0
  293. package/dist/render/html/katex.d.ts +9 -0
  294. package/dist/render/html/katex.d.ts.map +1 -0
  295. package/dist/render/html/katex.js +39 -0
  296. package/dist/render/html/katex.js.map +1 -0
  297. package/dist/render/html/stage.d.ts +12 -0
  298. package/dist/render/html/stage.d.ts.map +1 -0
  299. package/dist/render/html/stage.js +30 -0
  300. package/dist/render/html/stage.js.map +1 -0
  301. package/dist/render/index.d.ts +5 -0
  302. package/dist/render/index.d.ts.map +1 -0
  303. package/dist/render/index.js +5 -0
  304. package/dist/render/index.js.map +1 -0
  305. package/dist/render/math.d.ts +9 -0
  306. package/dist/render/math.d.ts.map +1 -0
  307. package/dist/render/math.js +60 -0
  308. package/dist/render/math.js.map +1 -0
  309. package/dist/render/model.d.ts +233 -0
  310. package/dist/render/model.d.ts.map +1 -0
  311. package/dist/render/model.js +2 -0
  312. package/dist/render/model.js.map +1 -0
  313. package/dist/render/numbering.d.ts +51 -0
  314. package/dist/render/numbering.d.ts.map +1 -0
  315. package/dist/render/numbering.js +155 -0
  316. package/dist/render/numbering.js.map +1 -0
  317. package/dist/render/output-name.d.ts +4 -0
  318. package/dist/render/output-name.d.ts.map +1 -0
  319. package/dist/render/output-name.js +11 -0
  320. package/dist/render/output-name.js.map +1 -0
  321. package/dist/render/palettes.d.ts +22 -0
  322. package/dist/render/palettes.d.ts.map +1 -0
  323. package/dist/render/palettes.js +46 -0
  324. package/dist/render/palettes.js.map +1 -0
  325. package/dist/render/parse.d.ts +15 -0
  326. package/dist/render/parse.d.ts.map +1 -0
  327. package/dist/render/parse.js +637 -0
  328. package/dist/render/parse.js.map +1 -0
  329. package/dist/render/port.d.ts +79 -0
  330. package/dist/render/port.d.ts.map +1 -0
  331. package/dist/render/port.js +2 -0
  332. package/dist/render/port.js.map +1 -0
  333. package/dist/render/registry.d.ts +11 -0
  334. package/dist/render/registry.d.ts.map +1 -0
  335. package/dist/render/registry.js +21 -0
  336. package/dist/render/registry.js.map +1 -0
  337. package/dist/render/text.d.ts +13 -0
  338. package/dist/render/text.d.ts.map +1 -0
  339. package/dist/render/text.js +65 -0
  340. package/dist/render/text.js.map +1 -0
  341. package/dist/render/walk.d.ts +13 -0
  342. package/dist/render/walk.d.ts.map +1 -0
  343. package/dist/render/walk.js +69 -0
  344. package/dist/render/walk.js.map +1 -0
  345. package/dist/research/bibtex.d.ts +12 -0
  346. package/dist/research/bibtex.d.ts.map +1 -0
  347. package/dist/research/bibtex.js +99 -0
  348. package/dist/research/bibtex.js.map +1 -0
  349. package/dist/research/client.d.ts +112 -0
  350. package/dist/research/client.d.ts.map +1 -0
  351. package/dist/research/client.js +661 -0
  352. package/dist/research/client.js.map +1 -0
  353. package/dist/research/dossier.d.ts +31 -0
  354. package/dist/research/dossier.d.ts.map +1 -0
  355. package/dist/research/dossier.js +54 -0
  356. package/dist/research/dossier.js.map +1 -0
  357. package/dist/research/flow.d.ts +31 -0
  358. package/dist/research/flow.d.ts.map +1 -0
  359. package/dist/research/flow.js +635 -0
  360. package/dist/research/flow.js.map +1 -0
  361. package/dist/research/library.d.ts +79 -0
  362. package/dist/research/library.d.ts.map +1 -0
  363. package/dist/research/library.js +319 -0
  364. package/dist/research/library.js.map +1 -0
  365. package/dist/research/verify.d.ts +80 -0
  366. package/dist/research/verify.d.ts.map +1 -0
  367. package/dist/research/verify.js +307 -0
  368. package/dist/research/verify.js.map +1 -0
  369. package/dist/resources.d.ts +15 -0
  370. package/dist/resources.d.ts.map +1 -0
  371. package/dist/resources.js +148 -0
  372. package/dist/resources.js.map +1 -0
  373. package/dist/review.d.ts +22 -0
  374. package/dist/review.d.ts.map +1 -0
  375. package/dist/review.js +355 -0
  376. package/dist/review.js.map +1 -0
  377. package/dist/schemas.d.ts +252 -0
  378. package/dist/schemas.d.ts.map +1 -0
  379. package/dist/schemas.js +1020 -0
  380. package/dist/schemas.js.map +1 -0
  381. package/dist/sections.d.ts +30 -0
  382. package/dist/sections.d.ts.map +1 -0
  383. package/dist/sections.js +62 -0
  384. package/dist/sections.js.map +1 -0
  385. package/dist/storage.d.ts +21 -0
  386. package/dist/storage.d.ts.map +1 -0
  387. package/dist/storage.js +296 -0
  388. package/dist/storage.js.map +1 -0
  389. package/dist/style-commands.d.ts +15 -0
  390. package/dist/style-commands.d.ts.map +1 -0
  391. package/dist/style-commands.js +54 -0
  392. package/dist/style-commands.js.map +1 -0
  393. package/dist/styles/csl.d.ts +58 -0
  394. package/dist/styles/csl.d.ts.map +1 -0
  395. package/dist/styles/csl.js +112 -0
  396. package/dist/styles/csl.js.map +1 -0
  397. package/dist/styles/discovery.d.ts +45 -0
  398. package/dist/styles/discovery.d.ts.map +1 -0
  399. package/dist/styles/discovery.js +99 -0
  400. package/dist/styles/discovery.js.map +1 -0
  401. package/dist/styles/golden.d.ts +52 -0
  402. package/dist/styles/golden.d.ts.map +1 -0
  403. package/dist/styles/golden.js +216 -0
  404. package/dist/styles/golden.js.map +1 -0
  405. package/dist/styles/profile.d.ts +126 -0
  406. package/dist/styles/profile.d.ts.map +1 -0
  407. package/dist/styles/profile.js +582 -0
  408. package/dist/styles/profile.js.map +1 -0
  409. package/dist/styles/xml.d.ts +22 -0
  410. package/dist/styles/xml.d.ts.map +1 -0
  411. package/dist/styles/xml.js +179 -0
  412. package/dist/styles/xml.js.map +1 -0
  413. package/dist/types.d.ts +285 -0
  414. package/dist/types.d.ts.map +1 -0
  415. package/dist/types.js +155 -0
  416. package/dist/types.js.map +1 -0
  417. package/dist/typst-pins.d.ts +16 -0
  418. package/dist/typst-pins.d.ts.map +1 -0
  419. package/dist/typst-pins.js +39 -0
  420. package/dist/typst-pins.js.map +1 -0
  421. package/dist/version.d.ts +2 -0
  422. package/dist/version.d.ts.map +1 -0
  423. package/dist/version.js +3 -0
  424. package/dist/version.js.map +1 -0
  425. package/dist/workflow.d.ts +49 -0
  426. package/dist/workflow.d.ts.map +1 -0
  427. package/dist/workflow.js +722 -0
  428. package/dist/workflow.js.map +1 -0
  429. package/dist/workspace.d.ts +12 -0
  430. package/dist/workspace.d.ts.map +1 -0
  431. package/dist/workspace.js +71 -0
  432. package/dist/workspace.js.map +1 -0
  433. package/package.json +70 -0
  434. package/policy-packs/countries/CO/academic-standards/ntc-1486-2022.yaml +188 -0
  435. package/policy-packs/countries/CO/copyright/decision-andina-351.yaml +61 -0
  436. package/policy-packs/countries/CO/copyright/ley-1915-2018.yaml +25 -0
  437. package/policy-packs/countries/CO/copyright/ley-23-1982.yaml +64 -0
  438. package/policy-packs/countries/CO/domains/health/resolucion-8430-1993.yaml +219 -0
  439. package/policy-packs/countries/CO/higher-education/ley-30-1992.yaml +61 -0
  440. package/policy-packs/countries/CO/manifest.yaml +42 -0
  441. package/policy-packs/countries/CO/official-domains.yaml +90 -0
  442. package/policy-packs/countries/CO/privacy/ley-1581-2012.yaml +197 -0
  443. package/policy-packs/countries/CO/research-integrity/minciencias-res-0314-2018.yaml +64 -0
  444. package/policy-packs/global/academic-integrity.yaml +45 -0
  445. package/policy-packs/global/academic-writing.yaml +70 -0
  446. package/policy-packs/global/evidence-quality.yaml +81 -0
  447. package/policy-packs/global/manifest.yaml +54 -0
  448. package/policy-packs/global/objective-verbs.yaml +245 -0
  449. package/policy-packs/global/reporting-guidelines.yaml +392 -0
  450. package/policy-packs/global/work-types.yaml +195 -0
  451. package/styles/LICENSE-CSL +375 -0
  452. package/styles/apa.csl +2283 -0
  453. package/styles/catalog.json +43 -0
  454. package/styles/fixtures/apa-7.expected.json +25 -0
  455. package/styles/fixtures/icontec-ntc1486-2022.expected.json +25 -0
  456. package/styles/fixtures/ieee.expected.json +25 -0
  457. package/styles/fixtures/references.jsonl +8 -0
  458. package/styles/icontec-ntc1486-2022.csl +388 -0
  459. package/styles/ieee.csl +519 -0
  460. package/templates/html/runtime.js +159 -0
  461. package/templates/html/thesis.css +98 -0
  462. package/templates/html/vendor/katex/LICENSE +21 -0
  463. package/templates/html/vendor/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  464. package/templates/html/vendor/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  465. package/templates/html/vendor/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  466. package/templates/html/vendor/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  467. package/templates/html/vendor/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  468. package/templates/html/vendor/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  469. package/templates/html/vendor/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  470. package/templates/html/vendor/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  471. package/templates/html/vendor/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  472. package/templates/html/vendor/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  473. package/templates/html/vendor/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  474. package/templates/html/vendor/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  475. package/templates/html/vendor/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  476. package/templates/html/vendor/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  477. package/templates/html/vendor/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  478. package/templates/html/vendor/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  479. package/templates/html/vendor/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  480. package/templates/html/vendor/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  481. package/templates/html/vendor/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  482. package/templates/html/vendor/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  483. package/templates/html/vendor/katex/katex.min.css +1 -0
  484. package/templates/html/vendor/katex/katex.min.js +1 -0
  485. package/templates/html/vendor/mermaid/LICENSE +21 -0
  486. package/templates/html/vendor/mermaid/mermaid.min.js +3587 -0
  487. package/templates/html/vendor/pagedjs/LICENSE +21 -0
  488. package/templates/html/vendor/pagedjs/paged.polyfill.min.js +4 -0
  489. package/templates/palettes.json +57 -0
  490. package/templates/profiles/apa-7.profile.yaml +15 -0
  491. package/templates/profiles/generic.profile.yaml +20 -0
  492. package/templates/profiles/icontec-ntc1486-2022.profile.yaml +36 -0
  493. package/templates/profiles/ieee.profile.yaml +14 -0
  494. package/templates/typst/i18n/en.yaml +31 -0
  495. package/templates/typst/i18n/es.yaml +31 -0
  496. package/templates/typst/i18n/pt.yaml +31 -0
  497. package/templates/typst/thesis.typ +276 -0
  498. package/typst-packages/preview/merman/0.3.0/LICENSE +231 -0
  499. package/typst-packages/preview/merman/0.3.0/README.md +388 -0
  500. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cose-base-v1/LICENSE +21 -0
  501. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cose-base-v2/LICENSE +21 -0
  502. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cytoscape/LICENSE +19 -0
  503. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cytoscape-cose-bilkent/LICENSE +21 -0
  504. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE +19 -0
  505. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/d3-shape/LICENSE +13 -0
  506. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/dagre/LICENSE +19 -0
  507. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/dompurify/LICENSE +202 -0
  508. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +264 -0
  509. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +264 -0
  510. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/fmin/LICENSE +27 -0
  511. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/graphlib/LICENSE +19 -0
  512. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/layout-base-v1/LICENSE +21 -0
  513. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/layout-base-v2/LICENSE +21 -0
  514. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/mermaid/LICENSE +21 -0
  515. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/rough-rs/LICENSE +21 -0
  516. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/roughjs/LICENSE +21 -0
  517. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/sanitize-url/LICENSE +21 -0
  518. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/venn-js/LICENSE +22 -0
  519. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/wasm-minimal-protocol/LICENSE +24 -0
  520. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_LICENSES/zenuml-core/LICENSE +21 -0
  521. package/typst-packages/preview/merman/0.3.0/THIRD_PARTY_NOTICES.md +265 -0
  522. package/typst-packages/preview/merman/0.3.0/lib.typ +1 -0
  523. package/typst-packages/preview/merman/0.3.0/merman_typst_plugin.wasm +0 -0
  524. package/typst-packages/preview/merman/0.3.0/src/capabilities.typ +5 -0
  525. package/typst-packages/preview/merman/0.3.0/src/context.typ +1 -0
  526. package/typst-packages/preview/merman/0.3.0/src/errors.typ +33 -0
  527. package/typst-packages/preview/merman/0.3.0/src/exports.typ +5 -0
  528. package/typst-packages/preview/merman/0.3.0/src/figure.typ +143 -0
  529. package/typst-packages/preview/merman/0.3.0/src/image.typ +50 -0
  530. package/typst-packages/preview/merman/0.3.0/src/options.typ +566 -0
  531. package/typst-packages/preview/merman/0.3.0/src/plugin.typ +1 -0
  532. package/typst-packages/preview/merman/0.3.0/src/raw.typ +22 -0
  533. package/typst-packages/preview/merman/0.3.0/src/render.typ +137 -0
  534. package/typst-packages/preview/merman/0.3.0/src/source.typ +7 -0
  535. package/typst-packages/preview/merman/0.3.0/src/units.typ +51 -0
  536. package/typst-packages/preview/merman/0.3.0/typst.toml +12 -0
  537. package/typst-packages/preview/mitex/0.2.7/CHANGELOG.md +69 -0
  538. package/typst-packages/preview/mitex/0.2.7/LICENSE +176 -0
  539. package/typst-packages/preview/mitex/0.2.7/README.md +154 -0
  540. package/typst-packages/preview/mitex/0.2.7/lib.typ +1 -0
  541. package/typst-packages/preview/mitex/0.2.7/mitex.typ +45 -0
  542. package/typst-packages/preview/mitex/0.2.7/mitex.wasm +0 -0
  543. package/typst-packages/preview/mitex/0.2.7/specs/README.md +250 -0
  544. package/typst-packages/preview/mitex/0.2.7/specs/latex/standard.typ +1187 -0
  545. package/typst-packages/preview/mitex/0.2.7/specs/mod.typ +12 -0
  546. package/typst-packages/preview/mitex/0.2.7/specs/prelude.typ +230 -0
  547. package/typst-packages/preview/mitex/0.2.7/typst.toml +12 -0
@@ -0,0 +1,265 @@
1
+ # Third-Party Notices
2
+
3
+ This file records the third-party material in the `typst-publish` artifact scope.
4
+ It is generated from the release component contract and is intentionally limited to this artifact.
5
+ The wrapper and Merman-authored code remain under the project license; each component below keeps its own terms.
6
+
7
+ ## Artifact scope
8
+
9
+ - ID: `typst-publish`
10
+ - Description: The Typst WASM publish profile, including ELK and wasm-minimal-protocol but excluding RaTeX.
11
+ - Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `rough-rs`, `roughjs`, `sanitize-url`, `venn-js`, `zenuml-core`, `eclipse-elk`, `elkjs`, `wasm-minimal-protocol`
12
+
13
+ ## Components
14
+
15
+ ### cose-base 1.x
16
+
17
+ Manatee contains Rust translations and adaptations of CoSE layout behavior from this baseline.
18
+
19
+ - Version: `1.0.3`
20
+ - Source: https://github.com/iVis-at-Bilkent/cose-base.git @ `914bfe712991534af1d8b795d6f262687edc2563`
21
+ - Source path: `.`
22
+ - Relationship: `modified`, `translated`
23
+ - License: `MIT`
24
+ - Local evidence: `crates/manatee`
25
+ - Legal file: `THIRD_PARTY_LICENSES/cose-base-v1/LICENSE`
26
+
27
+ ### cose-base 2.x
28
+
29
+ Manatee contains Rust translations and adaptations of the newer CoSE base behavior from this baseline.
30
+
31
+ - Version: `2.2.0`
32
+ - Source: https://github.com/iVis-at-Bilkent/cose-base.git @ `37f07ed2b8803211ec6c74110574cc47c156a136`
33
+ - Source path: `.`
34
+ - Relationship: `modified`, `translated`
35
+ - License: `MIT`
36
+ - Local evidence: `crates/manatee`
37
+ - Legal file: `THIRD_PARTY_LICENSES/cose-base-v2/LICENSE`
38
+
39
+ ### Cytoscape.js
40
+
41
+ Architecture layout and styling use source-backed Cytoscape behavior and defaults.
42
+
43
+ - Version: `3.34.0`
44
+ - Source: https://github.com/cytoscape/cytoscape.js.git @ `22716bfb75834b56fa6679648b0abb06f4ae691c`
45
+ - Source path: `.`
46
+ - Relationship: `behavior-reference`, `translated`
47
+ - License: `MIT`
48
+ - Local evidence: `crates/manatee`, `crates/merman-render/src/architecture.rs`
49
+ - Legal file: `THIRD_PARTY_LICENSES/cytoscape/LICENSE`
50
+
51
+ ### cytoscape.js-cose-bilkent
52
+
53
+ Manatee includes source-backed CoSE-Bilkent layout behavior translated to Rust.
54
+
55
+ - Version: `4.1.0`
56
+ - Source: https://github.com/iVis-at-Bilkent/cytoscape.js-cose-bilkent.git @ `999090a8438b4f14788d636ef4fd7a5355e29e8c`
57
+ - Source path: `.`
58
+ - Relationship: `modified`, `translated`
59
+ - License: `MIT`
60
+ - Local evidence: `crates/manatee`
61
+ - Legal file: `THIRD_PARTY_LICENSES/cytoscape-cose-bilkent/LICENSE`
62
+
63
+ ### cytoscape.js-fcose
64
+
65
+ The headless Architecture layout is a modified Rust implementation of FCoSE behavior.
66
+
67
+ - Version: `2.2.0`
68
+ - Source: https://github.com/iVis-at-Bilkent/cytoscape.js-fcose.git @ `78afcf96512a409abc903699277ad616c02dfad9`
69
+ - Source path: `.`
70
+ - Relationship: `modified`, `translated`
71
+ - License: `MIT`
72
+ - Local evidence: `crates/manatee`, `crates/merman-render/src/architecture.rs`
73
+ - Legal file: `THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE`
74
+
75
+ ### d3-shape
76
+
77
+ The SVG parity layer translates D3 curve algorithms, including basis, natural, step, cardinal, bump, and Catmull-Rom variants.
78
+
79
+ - Version: `3.2.0`
80
+ - Source: https://github.com/d3/d3-shape.git @ `8ec82658454750cfa29efb1e0ea514e3dd9b2297`
81
+ - Source path: `src/curve`
82
+ - Relationship: `modified`, `translated`
83
+ - License: `ISC`
84
+ - Local evidence: `crates/merman-render/src/svg/parity/curve.rs`
85
+ - Legal file: `THIRD_PARTY_LICENSES/d3-shape/LICENSE`
86
+
87
+ ### Dagre
88
+
89
+ Dugong is a modified Rust translation of Dagre's directed graph layout pipeline.
90
+
91
+ - Version: `2.0.2`
92
+ - Source: https://github.com/dagrejs/dagre.git @ `ba986662394f8f3ed608717194e5958f3386ce01`
93
+ - Source path: `lib`
94
+ - Relationship: `modified`, `translated`
95
+ - License: `MIT`
96
+ - Local evidence: `crates/dugong`
97
+ - Legal file: `THIRD_PARTY_LICENSES/dagre/LICENSE`
98
+
99
+ ### DOMPurify
100
+
101
+ Merman selects DOMPurify's Apache-2.0 option for generated sanitizer defaults; the exact upstream Apache-2.0 license file is preserved.
102
+
103
+ - Version: `3.4.13`
104
+ - Source: https://github.com/cure53/DOMPurify.git @ `3067f774676975de12306effd6db6ad7a9a8c17f`
105
+ - Source path: `.`
106
+ - Relationship: `generated`, `translated`
107
+ - License: `(Apache-2.0 OR MPL-2.0)`
108
+ - Local evidence: `crates/merman-core/src/generated/dompurify_defaults.rs`
109
+ - Legal file: `THIRD_PARTY_LICENSES/dompurify/LICENSE`
110
+
111
+ ### fmin
112
+
113
+ The Venn layout kernel translates the fmin Nelder-Mead and conjugate-gradient optimization behavior.
114
+
115
+ - Version: `0.0.4`
116
+ - Source: https://github.com/benfred/fmin.git @ `6b155c9f4a6ecf73ea5d71666da8e5dcd418b18b`
117
+ - Source path: `.`
118
+ - Relationship: `modified`, `translated`
119
+ - License: `BSD-3-Clause`
120
+ - Local evidence: `crates/merman-render/src/venn.rs`
121
+ - Legal file: `THIRD_PARTY_LICENSES/fmin/LICENSE`
122
+
123
+ ### Graphlib
124
+
125
+ dugong-graphlib is a modified Rust translation of the graph model used by Dagre.
126
+
127
+ - Version: `2.2.4`
128
+ - Source: https://github.com/dagrejs/graphlib.git @ `380d5efa1f4ab0904539f046bdba583d14ac2add`
129
+ - Source path: `lib`
130
+ - Relationship: `modified`, `translated`
131
+ - License: `MIT`
132
+ - Local evidence: `crates/dugong-graphlib`
133
+ - Legal file: `THIRD_PARTY_LICENSES/graphlib/LICENSE`
134
+
135
+ ### layout-base 1.x
136
+
137
+ Manatee translates shared layout-base geometry, graph, and force-layout primitives from this baseline.
138
+
139
+ - Version: `1.0.2`
140
+ - Source: https://github.com/iVis-at-Bilkent/layout-base.git @ `836898aa4a88e2794774997d7128b383108a3d5a`
141
+ - Source path: `.`
142
+ - Relationship: `modified`, `translated`
143
+ - License: `MIT`
144
+ - Local evidence: `crates/manatee`
145
+ - Legal file: `THIRD_PARTY_LICENSES/layout-base-v1/LICENSE`
146
+
147
+ ### layout-base 2.x
148
+
149
+ Manatee also follows the newer layout-base behavior selected by the FCoSE dependency graph.
150
+
151
+ - Version: `2.0.1`
152
+ - Source: https://github.com/iVis-at-Bilkent/layout-base.git @ `3f7549940feef31416cc35ef8256282ebc4d1ecd`
153
+ - Source path: `.`
154
+ - Relationship: `modified`, `translated`
155
+ - License: `MIT`
156
+ - Local evidence: `crates/manatee`
157
+ - Legal file: `THIRD_PARTY_LICENSES/layout-base-v2/LICENSE`
158
+
159
+ ### Mermaid
160
+
161
+ Merman independently implements Mermaid-compatible behavior while translating selected algorithms, generating defaults, copying architecture icon data, and retaining upstream fixtures and snapshots.
162
+
163
+ - Version: `11.16.1`
164
+ - Source: https://github.com/mermaid-js/mermaid.git @ `7ecca0cd7f1658ef74f4e7e91f925724ef403bbf`
165
+ - Source path: `packages/mermaid`
166
+ - Relationship: `behavior-reference`, `copied`, `fixtures`, `generated`, `modified`, `translated`
167
+ - License: `MIT`
168
+ - Local evidence: `crates/merman-core/src`, `crates/merman-render/src`, `crates/merman-render/src/svg/parity/architecture/icons.rs`, `fixtures`
169
+ - Legal file: `THIRD_PARTY_LICENSES/mermaid/LICENSE`
170
+
171
+ ### rough-rs roughr
172
+
173
+ roughr-merman is a modified in-tree fork of the rough-rs roughr crate.
174
+
175
+ - Version: `0.12.0`
176
+ - Source: https://github.com/orhanbalci/rough-rs.git @ `b1c2d96c944da4e74275aa09892be14e2d54445a`
177
+ - Source path: `roughr`
178
+ - Relationship: `copied`, `modified`
179
+ - License: `MIT`
180
+ - Local evidence: `crates/roughr`
181
+ - Legal file: `THIRD_PARTY_LICENSES/rough-rs/LICENSE`
182
+
183
+ ### Rough.js
184
+
185
+ The roughr fork aligns its randomization and drawing-operation semantics with Rough.js as used by Mermaid.
186
+
187
+ - Version: `4.6.6`
188
+ - Source: https://github.com/pshihn/rough.git @ `56a2762171b1294d643501e8d14f120db6b27bd7`
189
+ - Source path: `src`
190
+ - Relationship: `behavior-reference`, `translated`
191
+ - License: `MIT`
192
+ - Local evidence: `crates/roughr`
193
+ - Legal file: `THIRD_PARTY_LICENSES/roughjs/LICENSE`
194
+
195
+ ### sanitize-url
196
+
197
+ Merman's URL sanitization behavior is a source-backed Rust translation of sanitize-url.
198
+
199
+ - Version: `7.1.1`
200
+ - Source: https://github.com/braintree/sanitize-url.git @ `b1e8d50e4066a9af00fa042176676374747f754b`
201
+ - Source path: `src`
202
+ - Relationship: `modified`, `translated`
203
+ - License: `MIT`
204
+ - Local evidence: `crates/merman-core/src/utils.rs`
205
+ - Legal file: `THIRD_PARTY_LICENSES/sanitize-url/LICENSE`
206
+
207
+ ### @upsetjs/venn.js
208
+
209
+ The Venn family uses a modified Rust translation of the venn.js geometry and layout kernel.
210
+
211
+ - Version: `2.0.0`
212
+ - Source: https://github.com/upsetjs/venn.js.git @ `350c835aab4a92a7570963c28f725cf9f6e5f258`
213
+ - Source path: `src`
214
+ - Relationship: `modified`, `translated`
215
+ - License: `MIT`
216
+ - Local evidence: `crates/merman-core/src/diagrams/venn.rs`, `crates/merman-render/src/venn.rs`
217
+ - Legal file: `THIRD_PARTY_LICENSES/venn-js/LICENSE`
218
+
219
+ ### ZenUML Core
220
+
221
+ Merman's ZenUML grammar, model, renderer, emoji/icon data, and behavior probes follow the admitted ZenUML Core 3.50.1 source baseline.
222
+
223
+ - Version: `3.50.1`
224
+ - Source: https://github.com/mermaid-js/zenuml-core.git @ `38404ccc14243ed54ab45b804b2eb6f2ca73af36`
225
+ - Source path: `.`
226
+ - Relationship: `behavior-reference`, `copied`, `modified`, `translated`
227
+ - License: `MIT`
228
+ - Local evidence: `crates/merman-core/src/diagrams/zenuml`, `crates/merman-render/assets/zenuml`, `crates/merman-render/src/zenuml.rs`
229
+ - Legal file: `THIRD_PARTY_LICENSES/zenuml-core/LICENSE`
230
+
231
+ ### Eclipse Layout Kernel
232
+
233
+ The merman-elk-layered crate contains a modified Rust source translation of Eclipse ELK layered algorithms under EPL-2.0.
234
+
235
+ - Version: `0.9.1`
236
+ - Source: https://github.com/eclipse-elk/elk.git @ `62d5909f96fad541bc101ad52dabaece6b7eab7e`
237
+ - Source path: `plugins/org.eclipse.elk.alg.layered`
238
+ - Relationship: `modified`, `translated`
239
+ - License: `EPL-2.0`
240
+ - Local evidence: `crates/merman-elk-layered`, `crates/merman-layout-elk`
241
+ - Legal file: `THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md`
242
+
243
+ ### elkjs
244
+
245
+ Mermaid's ELK adapter behavior is compared against this JavaScript distribution, which is generated from Eclipse ELK sources.
246
+
247
+ - Version: `0.9.3`
248
+ - Source: https://github.com/kieler/elkjs.git @ `a8304cf79fde75bc2ab1a89d28320f53f8637436`
249
+ - Source path: `.`
250
+ - Relationship: `behavior-reference`
251
+ - License: `EPL-2.0`
252
+ - Local evidence: `crates/merman-layout-elk`, `playground`
253
+ - Legal file: `THIRD_PARTY_LICENSES/elkjs/LICENSE.md`
254
+
255
+ ### wasm-minimal-protocol
256
+
257
+ The Typst WASM transport links wasm-minimal-protocol; its upstream license file is the Unlicense text.
258
+
259
+ - Version: `0.2.0`
260
+ - Source: https://github.com/typst-community/wasm-minimal-protocol.git @ `cc08c96b8e7683188eb16ad315a9689b89290f85`
261
+ - Source path: `crates/macro`
262
+ - Relationship: `linked`
263
+ - License: `Unlicense`
264
+ - Local evidence: `Cargo.lock`, `crates/merman-typst-plugin`
265
+ - Legal file: `THIRD_PARTY_LICENSES/wasm-minimal-protocol/LICENSE`
@@ -0,0 +1 @@
1
+ #import "src/exports.typ": *
@@ -0,0 +1,5 @@
1
+ #import "plugin.typ": merman-plugin
2
+
3
+ #let merman-capabilities() = {
4
+ json(merman-plugin.capabilities_json())
5
+ }
@@ -0,0 +1 @@
1
+ #let typst-layout = layout
@@ -0,0 +1,33 @@
1
+ #let error-message(result) = {
2
+ if result.message == none {
3
+ result.code_name
4
+ } else {
5
+ result.message
6
+ }
7
+ }
8
+
9
+ #let validate-error-mode(error-mode) = {
10
+ if not ("panic", "text", "placeholder").contains(error-mode) {
11
+ panic("unknown merman error-mode: " + str(error-mode))
12
+ }
13
+ error-mode
14
+ }
15
+
16
+ #let diagram-error(result, error-mode, width) = {
17
+ if error-mode == "text" {
18
+ text(fill: rgb("#b91c1c"))[merman: #error-message(result)]
19
+ } else if error-mode == "placeholder" {
20
+ block(
21
+ width: width,
22
+ inset: 8pt,
23
+ fill: rgb("#fff7f7"),
24
+ stroke: rgb("#ef4444"),
25
+ )[
26
+ #strong[merman diagram error]
27
+ #linebreak()
28
+ #error-message(result)
29
+ ]
30
+ } else {
31
+ panic("unknown merman error-mode: " + str(error-mode))
32
+ }
33
+ }
@@ -0,0 +1,5 @@
1
+ #import "capabilities.typ": merman-capabilities
2
+ #import "figure.typ": mermaid-figure
3
+ #import "options.typ": mermaid-profile
4
+ #import "raw.typ": show-mermaid-blocks
5
+ #import "render.typ": analyze-mermaid, mermaid, mermaid-result, mermaid-svg
@@ -0,0 +1,143 @@
1
+ #import "options.typ": choose-value, dictionary-or-none, profile-field
2
+ #import "render.typ": mermaid
3
+
4
+ #let figure-field(figure-profile, key, alt: none) = {
5
+ let figure-profile = dictionary-or-none(figure-profile, "merman figure profile")
6
+ if figure-profile == none {
7
+ none
8
+ } else if key in figure-profile {
9
+ figure-profile.at(key)
10
+ } else if alt != none and alt in figure-profile {
11
+ figure-profile.at(alt)
12
+ } else {
13
+ none
14
+ }
15
+ }
16
+
17
+ #let figure-caption(caption, caption-position, caption-separator) = {
18
+ if caption == none {
19
+ none
20
+ } else if caption-position != none and caption-separator != none {
21
+ figure.caption(position: caption-position, separator: caption-separator, caption)
22
+ } else if caption-position != none {
23
+ figure.caption(position: caption-position, caption)
24
+ } else if caption-separator != none {
25
+ figure.caption(separator: caption-separator, caption)
26
+ } else {
27
+ caption
28
+ }
29
+ }
30
+
31
+ #let build-figure-options(
32
+ profile,
33
+ caption,
34
+ placement,
35
+ scope,
36
+ supplement,
37
+ numbering,
38
+ outlined,
39
+ gap,
40
+ caption-position,
41
+ caption-separator,
42
+ ) = {
43
+ let figure-profile = profile-field(profile, "figure")
44
+ let placement = choose-value(figure-field(figure-profile, "placement"), placement)
45
+ let scope = choose-value(figure-field(figure-profile, "scope"), scope)
46
+ let supplement = choose-value(figure-field(figure-profile, "supplement"), supplement)
47
+ let numbering = choose-value(figure-field(figure-profile, "numbering"), numbering)
48
+ let outlined = choose-value(figure-field(figure-profile, "outlined"), outlined)
49
+ let gap = choose-value(figure-field(figure-profile, "gap"), gap)
50
+ let caption-position = choose-value(
51
+ figure-field(figure-profile, "caption-position", alt: "caption_position"),
52
+ caption-position,
53
+ )
54
+ let caption-separator = choose-value(
55
+ figure-field(figure-profile, "caption-separator", alt: "caption_separator"),
56
+ caption-separator,
57
+ )
58
+
59
+ let caption = figure-caption(caption, caption-position, caption-separator)
60
+ let out = if caption != none {
61
+ (caption: caption)
62
+ } else {
63
+ (:)
64
+ }
65
+ let out = if placement != none {
66
+ (: ..out, placement: placement)
67
+ } else {
68
+ out
69
+ }
70
+ let out = if scope != none {
71
+ (: ..out, scope: scope)
72
+ } else {
73
+ out
74
+ }
75
+ let out = if supplement != none {
76
+ (: ..out, supplement: supplement)
77
+ } else {
78
+ out
79
+ }
80
+ let out = if numbering != none {
81
+ (: ..out, numbering: numbering)
82
+ } else {
83
+ out
84
+ }
85
+ let out = if outlined != none {
86
+ (: ..out, outlined: outlined)
87
+ } else {
88
+ out
89
+ }
90
+ if gap != none {
91
+ (: ..out, gap: gap)
92
+ } else {
93
+ out
94
+ }
95
+ }
96
+
97
+ #let mermaid-figure(
98
+ source,
99
+ caption: none,
100
+ document-context: false,
101
+ placement: none,
102
+ scope: none,
103
+ supplement: none,
104
+ numbering: none,
105
+ outlined: none,
106
+ gap: none,
107
+ caption-position: none,
108
+ caption-separator: none,
109
+ profile: none,
110
+ width: auto,
111
+ height: auto,
112
+ fit: "contain",
113
+ scale: none,
114
+ alt: none,
115
+ error-mode: "panic",
116
+ ..args,
117
+ ) = {
118
+ let diagram = mermaid(
119
+ source,
120
+ profile: profile,
121
+ document-context: document-context,
122
+ width: width,
123
+ height: height,
124
+ fit: fit,
125
+ scale: scale,
126
+ alt: alt,
127
+ error-mode: error-mode,
128
+ ..args,
129
+ )
130
+ let resolved-figure-options = build-figure-options(
131
+ profile,
132
+ caption,
133
+ placement,
134
+ scope,
135
+ supplement,
136
+ numbering,
137
+ outlined,
138
+ gap,
139
+ caption-position,
140
+ caption-separator,
141
+ )
142
+ figure(diagram, ..resolved-figure-options)
143
+ }
@@ -0,0 +1,50 @@
1
+ #import "errors.typ": diagram-error, error-message
2
+
3
+ #let scale-factor(factor) = {
4
+ if type(factor) == int or type(factor) == float {
5
+ factor * 100%
6
+ } else {
7
+ factor
8
+ }
9
+ }
10
+
11
+ #let scaled(body, factor) = {
12
+ if factor == none {
13
+ body
14
+ } else {
15
+ scale(x: scale-factor(factor), y: scale-factor(factor), reflow: true, body)
16
+ }
17
+ }
18
+
19
+ #let svg-bytes-or-panic(result) = {
20
+ if result.ok {
21
+ bytes(result.svg)
22
+ } else {
23
+ panic(error-message(result))
24
+ }
25
+ }
26
+
27
+ #let result-image(
28
+ result,
29
+ width,
30
+ height,
31
+ fit,
32
+ alt,
33
+ scale,
34
+ error-mode,
35
+ ) = {
36
+ if result.ok {
37
+ scaled(image(
38
+ bytes(result.svg),
39
+ format: "svg",
40
+ width: width,
41
+ height: height,
42
+ fit: fit,
43
+ alt: alt,
44
+ ), scale)
45
+ } else if error-mode == "panic" {
46
+ panic(error-message(result))
47
+ } else {
48
+ diagram-error(result, error-mode, width)
49
+ }
50
+ }