@mdfriday/foundry 26.4.19 → 26.5.1

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 (298) hide show
  1. package/dist/cjs/index.js +1 -1
  2. package/dist/cjs/obsidian/mobile.js +1 -1
  3. package/dist/cjs/worker/pool-manager.js +341 -362
  4. package/dist/cjs/worker/worker-node.js +110 -132
  5. package/dist/esm/index.js +1 -1
  6. package/dist/esm/obsidian/mobile.js +1 -1
  7. package/dist/types/internal/application/batch-task-queue.d.ts +17 -0
  8. package/dist/types/internal/application/container.d.ts +68 -1
  9. package/dist/types/internal/application/identity.d.ts +173 -0
  10. package/dist/types/internal/application/incremental-build-coordinator.d.ts +28 -0
  11. package/dist/types/internal/application/incremental-ssg.d.ts +4 -0
  12. package/dist/types/internal/application/index.d.ts +5 -4
  13. package/dist/types/internal/application/publish.d.ts +37 -0
  14. package/dist/types/internal/application/ssg-parallel.d.ts +6 -0
  15. package/dist/types/internal/application/ssg.d.ts +15 -0
  16. package/dist/types/internal/application/wiki-service-config.d.ts +65 -0
  17. package/dist/types/internal/application/wiki-service.d.ts +199 -0
  18. package/dist/types/internal/application/worker/pool-manager.d.ts +43 -0
  19. package/dist/types/internal/application/worker/worker-browser.d.ts +6 -0
  20. package/dist/types/internal/application/worker/worker-main.d.ts +12 -0
  21. package/dist/types/internal/application/worker/worker-state.d.ts +23 -0
  22. package/dist/types/internal/application/workspace.d.ts +98 -0
  23. package/dist/types/internal/domain/config/entity/config.d.ts +40 -0
  24. package/dist/types/internal/domain/config/entity/language.d.ts +51 -0
  25. package/dist/types/internal/domain/config/entity/markdown.d.ts +36 -0
  26. package/dist/types/internal/domain/config/entity/module.d.ts +36 -0
  27. package/dist/types/internal/domain/config/entity/root.d.ts +39 -0
  28. package/dist/types/internal/domain/config/entity/service.d.ts +36 -0
  29. package/dist/types/internal/domain/config/entity/social.d.ts +43 -0
  30. package/dist/types/internal/domain/config/entity/taxonomy.d.ts +39 -0
  31. package/dist/types/internal/domain/config/factory/config.d.ts +3 -0
  32. package/dist/types/internal/domain/config/factory/loader.d.ts +24 -0
  33. package/dist/types/internal/domain/config/factory/provider.d.ts +10 -0
  34. package/dist/types/internal/domain/config/factory/sourcedescriptor.d.ts +12 -0
  35. package/dist/types/internal/domain/config/type.d.ts +56 -0
  36. package/dist/types/internal/domain/config/vo/language.d.ts +6 -0
  37. package/dist/types/internal/domain/config/vo/markdown.d.ts +13 -0
  38. package/dist/types/internal/domain/config/vo/module.d.ts +9 -0
  39. package/dist/types/internal/domain/config/vo/root.d.ts +6 -0
  40. package/dist/types/internal/domain/config/vo/service.d.ts +6 -0
  41. package/dist/types/internal/domain/config/vo/social.d.ts +16 -0
  42. package/dist/types/internal/domain/config/vo/taxonomy.d.ts +12 -0
  43. package/dist/types/internal/domain/content/entity/content.d.ts +36 -0
  44. package/dist/types/internal/domain/content/entity/page.d.ts +23 -0
  45. package/dist/types/internal/domain/content/entity/pagebuilder.d.ts +83 -0
  46. package/dist/types/internal/domain/content/entity/pagecollector.d.ts +3 -0
  47. package/dist/types/internal/domain/content/entity/pagecontent.d.ts +14 -0
  48. package/dist/types/internal/domain/content/entity/pagemap.d.ts +69 -0
  49. package/dist/types/internal/domain/content/entity/pagesource.d.ts +52 -0
  50. package/dist/types/internal/domain/content/entity/pagetrees.d.ts +12 -0
  51. package/dist/types/internal/domain/content/entity/paginator.d.ts +19 -0
  52. package/dist/types/internal/domain/content/entity/section.d.ts +15 -0
  53. package/dist/types/internal/domain/content/entity/shortcode.d.ts +39 -0
  54. package/dist/types/internal/domain/content/entity/standalone.d.ts +9 -0
  55. package/dist/types/internal/domain/content/entity/taxonomy.d.ts +15 -0
  56. package/dist/types/internal/domain/content/entity/term.d.ts +6 -0
  57. package/dist/types/internal/domain/content/entity/translator.d.ts +22 -0
  58. package/dist/types/internal/domain/content/type.d.ts +6 -0
  59. package/dist/types/internal/domain/content/vo/classifier.d.ts +24 -0
  60. package/dist/types/internal/domain/content/vo/frontmatter.d.ts +65 -0
  61. package/dist/types/internal/domain/content/vo/kind.d.ts +10 -0
  62. package/dist/types/internal/domain/fs/entity/basefs.d.ts +23 -0
  63. package/dist/types/internal/domain/fs/entity/fs.d.ts +13 -0
  64. package/dist/types/internal/domain/fs/entity/originfs.d.ts +6 -0
  65. package/dist/types/internal/domain/fs/entity/overlaydir.d.ts +44 -0
  66. package/dist/types/internal/domain/fs/entity/overlayfs.d.ts +79 -0
  67. package/dist/types/internal/domain/fs/entity/service.d.ts +15 -0
  68. package/dist/types/internal/domain/fs/factory/fs.d.ts +4 -0
  69. package/dist/types/internal/domain/fs/type.d.ts +95 -0
  70. package/dist/types/internal/domain/fs/vo/dir.d.ts +41 -0
  71. package/dist/types/internal/domain/fs/vo/file.d.ts +28 -0
  72. package/dist/types/internal/domain/fs/vo/fileinfo.d.ts +23 -0
  73. package/dist/types/internal/domain/fs/vo/filemeta.d.ts +45 -0
  74. package/dist/types/internal/domain/fs/vo/filesystemscollector.d.ts +17 -0
  75. package/dist/types/internal/domain/fs/vo/filevitural.d.ts +8 -0
  76. package/dist/types/internal/domain/fs/vo/osfs.d.ts +12 -0
  77. package/dist/types/internal/domain/fs/vo/overlay-factory.d.ts +4 -0
  78. package/dist/types/internal/domain/fs/vo/overlayfs-factory.d.ts +42 -0
  79. package/dist/types/internal/domain/fs/vo/overlayoptions.d.ts +44 -0
  80. package/dist/types/internal/domain/fs/vo/static-copier.d.ts +22 -0
  81. package/dist/types/internal/domain/fs/vo/walkway.d.ts +22 -0
  82. package/dist/types/internal/domain/identity/entity/user.d.ts +100 -0
  83. package/dist/types/internal/domain/identity/factory/user-factory.d.ts +183 -0
  84. package/dist/types/internal/domain/identity/repository/index.d.ts +30 -0
  85. package/dist/types/internal/domain/identity/type.d.ts +17 -0
  86. package/dist/types/internal/domain/identity/value-object/device.d.ts +26 -0
  87. package/dist/types/internal/domain/identity/value-object/email.d.ts +29 -0
  88. package/dist/types/internal/domain/identity/value-object/license.d.ts +91 -0
  89. package/dist/types/internal/domain/identity/value-object/server-config.d.ts +37 -0
  90. package/dist/types/internal/domain/identity/value-object/sync-config.d.ts +47 -0
  91. package/dist/types/internal/domain/identity/value-object/token.d.ts +35 -0
  92. package/dist/types/internal/domain/markdown/entity/markdown.d.ts +41 -0
  93. package/dist/types/internal/domain/markdown/factory/it/config.d.ts +60 -0
  94. package/dist/types/internal/domain/markdown/factory/it/index.d.ts +21 -1
  95. package/dist/types/internal/domain/markdown/factory/it/parserresult.d.ts +3 -0
  96. package/dist/types/internal/domain/markdown/factory/it/plugins/callout-plugin.d.ts +40 -0
  97. package/dist/types/internal/domain/markdown/factory/it/plugins/latex-plugin.d.ts +23 -0
  98. package/dist/types/internal/domain/markdown/factory/it/plugins/mermaid-plugin.d.ts +24 -0
  99. package/dist/types/internal/domain/markdown/factory/it/plugins/tag-plugin.d.ts +71 -0
  100. package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink-plugin.d.ts +28 -0
  101. package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink.d.ts +31 -0
  102. package/dist/types/internal/domain/markdown/factory/it/tableofcontents.d.ts +21 -0
  103. package/dist/types/internal/domain/markdown/factory/it/util/path.d.ts +11 -0
  104. package/dist/types/internal/domain/markdown/factory/it/util/slugger-fallback.d.ts +6 -0
  105. package/dist/types/internal/domain/markdown/type.d.ts +159 -0
  106. package/dist/types/internal/domain/markdown/vo/config.d.ts +48 -0
  107. package/dist/types/internal/domain/markdown/vo/content.d.ts +92 -0
  108. package/dist/types/internal/domain/markdown/vo/context.d.ts +9 -0
  109. package/dist/types/internal/domain/markdown/vo/highlight.d.ts +15 -0
  110. package/dist/types/internal/domain/markdown/vo/pageparser.d.ts +9 -0
  111. package/dist/types/internal/domain/markdown/vo/parseinfo.d.ts +36 -0
  112. package/dist/types/internal/domain/markdown/vo/parserresult.d.ts +6 -0
  113. package/dist/types/internal/domain/markdown/vo/shortcode.d.ts +31 -1
  114. package/dist/types/internal/domain/markdown/vo/tableofcontents.d.ts +21 -0
  115. package/dist/types/internal/domain/module/entity/lang.d.ts +12 -0
  116. package/dist/types/internal/domain/module/entity/module.d.ts +73 -0
  117. package/dist/types/internal/domain/module/factory/module.d.ts +6 -0
  118. package/dist/types/internal/domain/module/type.d.ts +58 -0
  119. package/dist/types/internal/domain/module/vo/cache.d.ts +48 -0
  120. package/dist/types/internal/domain/module/vo/httpclient.d.ts +14 -0
  121. package/dist/types/internal/domain/module/vo/module.d.ts +76 -0
  122. package/dist/types/internal/domain/module/vo/mount.d.ts +39 -0
  123. package/dist/types/internal/domain/module/vo/themes.d.ts +38 -0
  124. package/dist/types/internal/domain/module/vo/zipextractor.d.ts +31 -0
  125. package/dist/types/internal/domain/paths/entity/path.d.ts +28 -0
  126. package/dist/types/internal/domain/paths/factory/pathfactory.d.ts +82 -0
  127. package/dist/types/internal/domain/paths/type.d.ts +133 -1
  128. package/dist/types/internal/domain/paths/vo/pathcomponents.d.ts +94 -0
  129. package/dist/types/internal/domain/paths/vo/pathparser.d.ts +77 -0
  130. package/dist/types/internal/domain/publish/entity/publisher.d.ts +26 -0
  131. package/dist/types/internal/domain/publish/factory/publisher-factory.d.ts +17 -0
  132. package/dist/types/internal/domain/publish/repository/http-client.d.ts +21 -0
  133. package/dist/types/internal/domain/publish/repository/manifest-repository.d.ts +27 -0
  134. package/dist/types/internal/domain/publish/type.d.ts +49 -0
  135. package/dist/types/internal/domain/publish/value-object/ftp-publisher.d.ts +30 -0
  136. package/dist/types/internal/domain/publish/value-object/mdfriday-publisher.d.ts +57 -0
  137. package/dist/types/internal/domain/publish/value-object/netlify-publisher.d.ts +55 -0
  138. package/dist/types/internal/domain/publish/value-object/publish-config.d.ts +38 -0
  139. package/dist/types/internal/domain/publish/value-object/publish-manifest.d.ts +50 -0
  140. package/dist/types/internal/domain/resources/entity/http.d.ts +11 -0
  141. package/dist/types/internal/domain/resources/entity/integrity.d.ts +4 -0
  142. package/dist/types/internal/domain/resources/entity/minifier.d.ts +4 -0
  143. package/dist/types/internal/domain/resources/entity/publisher.d.ts +24 -0
  144. package/dist/types/internal/domain/resources/entity/resource.d.ts +4 -0
  145. package/dist/types/internal/domain/resources/entity/resources.d.ts +40 -0
  146. package/dist/types/internal/domain/resources/entity/template.d.ts +4 -0
  147. package/dist/types/internal/domain/resources/factory/resource.d.ts +4 -0
  148. package/dist/types/internal/domain/site/entity/language.d.ts +55 -0
  149. package/dist/types/internal/domain/site/entity/menu-builder.d.ts +50 -0
  150. package/dist/types/internal/domain/site/entity/navigation.d.ts +8 -0
  151. package/dist/types/internal/domain/site/entity/page.d.ts +88 -0
  152. package/dist/types/internal/domain/site/entity/pagegraph.d.ts +85 -0
  153. package/dist/types/internal/domain/site/entity/pager.d.ts +6 -0
  154. package/dist/types/internal/domain/site/entity/publisher.d.ts +26 -0
  155. package/dist/types/internal/domain/site/entity/ref.d.ts +27 -0
  156. package/dist/types/internal/domain/site/entity/site.d.ts +178 -0
  157. package/dist/types/internal/domain/site/factory/navigation-factory.d.ts +6 -0
  158. package/dist/types/internal/domain/site/factory/site.d.ts +4 -0
  159. package/dist/types/internal/domain/site/service/html-link-processor.d.ts +44 -0
  160. package/dist/types/internal/domain/site/type.d.ts +100 -0
  161. package/dist/types/internal/domain/site/valueobject/author.d.ts +16 -0
  162. package/dist/types/internal/domain/site/valueobject/baseurl.d.ts +39 -0
  163. package/dist/types/internal/domain/site/valueobject/menu.d.ts +49 -0
  164. package/dist/types/internal/domain/site/valueobject/organization.d.ts +37 -0
  165. package/dist/types/internal/domain/site/valueobject/path.d.ts +50 -0
  166. package/dist/types/internal/domain/site/valueobject/version.d.ts +14 -0
  167. package/dist/types/internal/domain/template/entity/executor.d.ts +22 -0
  168. package/dist/types/internal/domain/template/entity/lookup.d.ts +55 -0
  169. package/dist/types/internal/domain/template/entity/parser.d.ts +40 -0
  170. package/dist/types/internal/domain/template/entity/template.d.ts +87 -0
  171. package/dist/types/internal/domain/template/factory/template.d.ts +61 -0
  172. package/dist/types/internal/domain/template/type.d.ts +109 -0
  173. package/dist/types/internal/domain/template/vo/baseof.d.ts +47 -0
  174. package/dist/types/internal/domain/template/vo/info.d.ts +28 -0
  175. package/dist/types/internal/domain/template/vo/namespace.d.ts +91 -0
  176. package/dist/types/internal/domain/template/vo/registry.d.ts +160 -0
  177. package/dist/types/internal/domain/wiki/entity/concept.d.ts +31 -0
  178. package/dist/types/internal/domain/wiki/entity/connection.d.ts +29 -0
  179. package/dist/types/internal/domain/wiki/entity/conversation.d.ts +65 -0
  180. package/dist/types/internal/domain/wiki/entity/embedding-index.d.ts +60 -0
  181. package/dist/types/internal/domain/wiki/entity/entity.d.ts +32 -0
  182. package/dist/types/internal/domain/wiki/entity/knowledge-base.d.ts +292 -0
  183. package/dist/types/internal/domain/wiki/entity/operation-log.d.ts +82 -0
  184. package/dist/types/internal/domain/wiki/factory/wiki-factory.d.ts +41 -0
  185. package/dist/types/internal/domain/wiki/index.d.ts +22 -0
  186. package/dist/types/internal/domain/wiki/repository/conversation-repository.interface.d.ts +29 -0
  187. package/dist/types/internal/domain/wiki/repository/crypto-service.d.ts +16 -0
  188. package/dist/types/internal/domain/wiki/repository/embedding-provider.d.ts +12 -0
  189. package/dist/types/internal/domain/wiki/repository/file-system.d.ts +43 -0
  190. package/dist/types/internal/domain/wiki/repository/index.d.ts +14 -0
  191. package/dist/types/internal/domain/wiki/repository/kb-repository.interface.d.ts +30 -0
  192. package/dist/types/internal/domain/wiki/repository/llm-http-client.d.ts +40 -0
  193. package/dist/types/internal/domain/wiki/repository/llm-provider.d.ts +34 -0
  194. package/dist/types/internal/domain/wiki/repository/path-service.d.ts +32 -0
  195. package/dist/types/internal/domain/wiki/repository/wiki-page-repository.interface.d.ts +49 -0
  196. package/dist/types/internal/domain/wiki/value-object/connection-type.d.ts +24 -0
  197. package/dist/types/internal/domain/wiki/value-object/content-annotator.d.ts +61 -0
  198. package/dist/types/internal/domain/wiki/value-object/entity-id.d.ts +17 -0
  199. package/dist/types/internal/domain/wiki/value-object/entity-type.d.ts +24 -0
  200. package/dist/types/internal/domain/wiki/value-object/extraction-parser.d.ts +27 -0
  201. package/dist/types/internal/domain/wiki/value-object/extraction-result.d.ts +32 -0
  202. package/dist/types/internal/domain/wiki/value-object/retrieval.d.ts +228 -0
  203. package/dist/types/internal/domain/wiki/value-object/source-record.d.ts +17 -0
  204. package/dist/types/internal/domain/wiki/value-object/wiki-config.d.ts +40 -0
  205. package/dist/types/internal/domain/wiki/value-object/wiki-index-generator.d.ts +31 -0
  206. package/dist/types/internal/domain/wiki/value-object/wiki-page-renderer.d.ts +42 -0
  207. package/dist/types/internal/domain/workspace/entity/authentication.d.ts +29 -0
  208. package/dist/types/internal/domain/workspace/entity/project.d.ts +173 -0
  209. package/dist/types/internal/domain/workspace/entity/workspace.d.ts +85 -0
  210. package/dist/types/internal/domain/workspace/factory/workspace-factory.d.ts +107 -0
  211. package/dist/types/internal/domain/workspace/repository/file-system.d.ts +241 -0
  212. package/dist/types/internal/domain/workspace/repository/index.d.ts +6 -0
  213. package/dist/types/internal/domain/workspace/repository.d.ts +72 -0
  214. package/dist/types/internal/domain/workspace/type.d.ts +18 -0
  215. package/dist/types/internal/domain/workspace/value-object/folder-structure.d.ts +41 -0
  216. package/dist/types/internal/domain/workspace/value-object/project-metadata.d.ts +36 -0
  217. package/dist/types/internal/domain/workspace/value-object/workspace-metadata.d.ts +7 -0
  218. package/dist/types/internal/infrastructure/embedding/embedding-provider.interface.d.ts +33 -0
  219. package/dist/types/internal/infrastructure/embedding/index.d.ts +5 -0
  220. package/dist/types/internal/infrastructure/embedding/ollama-embedding-provider.d.ts +24 -0
  221. package/dist/types/internal/infrastructure/http/netlify-http-client.d.ts +20 -0
  222. package/dist/types/internal/infrastructure/http/node-http-client.d.ts +3 -0
  223. package/dist/types/internal/infrastructure/index.d.ts +8 -0
  224. package/dist/types/internal/infrastructure/llm/fetch-http-client.d.ts +24 -0
  225. package/dist/types/internal/infrastructure/llm/index.d.ts +6 -0
  226. package/dist/types/internal/infrastructure/llm/llm-config.d.ts +80 -0
  227. package/dist/types/internal/infrastructure/llm/lmstudio-provider.d.ts +55 -0
  228. package/dist/types/internal/infrastructure/llm/node-llm-http-client.d.ts +21 -0
  229. package/dist/types/internal/infrastructure/llm/ollama-provider.d.ts +17 -0
  230. package/dist/types/internal/infrastructure/llm/openai-compatible-provider.d.ts +70 -0
  231. package/dist/types/internal/infrastructure/llm/provider-factory.d.ts +36 -0
  232. package/dist/types/internal/infrastructure/llm/provider.d.ts +77 -0
  233. package/dist/types/internal/infrastructure/node/index.d.ts +11 -0
  234. package/dist/types/internal/infrastructure/node/node-conversation-repository.d.ts +21 -0
  235. package/dist/types/internal/infrastructure/node/node-crypto-service.d.ts +10 -0
  236. package/dist/types/internal/infrastructure/node/node-file-system.d.ts +29 -0
  237. package/dist/types/internal/infrastructure/node/node-kb-repository.d.ts +18 -0
  238. package/dist/types/internal/infrastructure/node/node-path-service.d.ts +14 -0
  239. package/dist/types/internal/infrastructure/node/node-wiki-page-repository.d.ts +25 -0
  240. package/dist/types/internal/infrastructure/persistence/node-file-system.d.ts +8 -0
  241. package/dist/types/internal/infrastructure/persistence/node-manifest-repository.d.ts +31 -0
  242. package/dist/types/internal/infrastructure/persistence/node-snapshot-repository.d.ts +28 -0
  243. package/dist/types/internal/infrastructure/persistence/node-workspace-repository.d.ts +9 -0
  244. package/dist/types/pkg/cahce/cache.d.ts +56 -0
  245. package/dist/types/pkg/lang/data.d.ts +21 -0
  246. package/dist/types/pkg/lang/index.d.ts +46 -0
  247. package/dist/types/pkg/lang/service.d.ts +49 -0
  248. package/dist/types/pkg/lang/types.d.ts +29 -0
  249. package/dist/types/pkg/log/http.d.ts +16 -0
  250. package/dist/types/pkg/log/manager.d.ts +57 -0
  251. package/dist/types/pkg/maps/scratch.d.ts +25 -0
  252. package/dist/types/pkg/md/parser/item.d.ts +3 -3
  253. package/dist/types/pkg/media/type.d.ts +19 -0
  254. package/dist/types/pkg/page-filter/index.d.ts +29 -0
  255. package/dist/types/pkg/paths/index.d.ts +9 -0
  256. package/dist/types/pkg/text/index.d.ts +4 -0
  257. package/dist/types/pkg/web/server/livereload-server.d.ts +7 -0
  258. package/dist/types/pkg/web/watcher/content-file-watcher.d.ts +3 -0
  259. package/package.json +21 -15
  260. package/dist/types/index.d.ts +0 -20
  261. package/dist/types/internal/interfaces/obsidian/adapters/identity-adapter.d.ts +0 -5
  262. package/dist/types/internal/interfaces/obsidian/adapters/index.d.ts +0 -2
  263. package/dist/types/internal/interfaces/obsidian/adapters/workspace-adapter.d.ts +0 -8
  264. package/dist/types/internal/interfaces/obsidian/desktop/adapters/identity-adapter.d.ts +0 -6
  265. package/dist/types/internal/interfaces/obsidian/desktop/adapters/index.d.ts +0 -2
  266. package/dist/types/internal/interfaces/obsidian/desktop/adapters/workspace-adapter.d.ts +0 -12
  267. package/dist/types/internal/interfaces/obsidian/desktop/container.d.ts +0 -7
  268. package/dist/types/internal/interfaces/obsidian/desktop/index.d.ts +0 -22
  269. package/dist/types/internal/interfaces/obsidian/index.d.ts +0 -7
  270. package/dist/types/internal/interfaces/obsidian/mobile/adapters/identity-adapter.d.ts +0 -9
  271. package/dist/types/internal/interfaces/obsidian/mobile/adapters/index.d.ts +0 -2
  272. package/dist/types/internal/interfaces/obsidian/mobile/adapters/workspace-adapter.d.ts +0 -13
  273. package/dist/types/internal/interfaces/obsidian/mobile/config-types.d.ts +0 -13
  274. package/dist/types/internal/interfaces/obsidian/mobile/container.d.ts +0 -6
  275. package/dist/types/internal/interfaces/obsidian/mobile/index.d.ts +0 -16
  276. package/dist/types/internal/interfaces/obsidian/mobile.d.ts +0 -2
  277. package/dist/types/internal/interfaces/obsidian/services/auth.service.d.ts +0 -11
  278. package/dist/types/internal/interfaces/obsidian/services/build.service.d.ts +0 -9
  279. package/dist/types/internal/interfaces/obsidian/services/config.service.d.ts +0 -31
  280. package/dist/types/internal/interfaces/obsidian/services/domain.service.d.ts +0 -15
  281. package/dist/types/internal/interfaces/obsidian/services/license.service.d.ts +0 -22
  282. package/dist/types/internal/interfaces/obsidian/services/project.service.d.ts +0 -17
  283. package/dist/types/internal/interfaces/obsidian/services/publish.service.d.ts +0 -11
  284. package/dist/types/internal/interfaces/obsidian/services/serve.service.d.ts +0 -18
  285. package/dist/types/internal/interfaces/obsidian/services/workspace.service.d.ts +0 -10
  286. package/dist/types/internal/interfaces/obsidian/types/auth.d.ts +0 -27
  287. package/dist/types/internal/interfaces/obsidian/types/build.d.ts +0 -23
  288. package/dist/types/internal/interfaces/obsidian/types/config.d.ts +0 -16
  289. package/dist/types/internal/interfaces/obsidian/types/domain.d.ts +0 -46
  290. package/dist/types/internal/interfaces/obsidian/types/index.d.ts +0 -9
  291. package/dist/types/internal/interfaces/obsidian/types/license.d.ts +0 -87
  292. package/dist/types/internal/interfaces/obsidian/types/project.d.ts +0 -56
  293. package/dist/types/internal/interfaces/obsidian/types/publish.d.ts +0 -33
  294. package/dist/types/internal/interfaces/obsidian/types/serve.d.ts +0 -46
  295. package/dist/types/internal/interfaces/obsidian/types/workspace.d.ts +0 -27
  296. package/dist/types/pkg/log/browser-manager.d.ts +0 -20
  297. package/dist/types/pkg/log/browser.d.ts +0 -25
  298. package/dist/types/pkg/media/buildin.d.ts +0 -3
@@ -31,7 +31,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
31
31
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
32
  mod
33
33
  ));
34
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
35
34
 
36
35
  // pkg/log/types.ts
37
36
  var init_types = __esm({
@@ -1076,9 +1075,6 @@ function getLanguageService() {
1076
1075
  }
1077
1076
  return serviceInstance;
1078
1077
  }
1079
- function createLanguageService() {
1080
- return new DefaultLanguageService();
1081
- }
1082
1078
  var DefaultLanguageService, serviceInstance;
1083
1079
  var init_service3 = __esm({
1084
1080
  "pkg/lang/service.ts"() {
@@ -1170,19 +1166,6 @@ var init_service3 = __esm({
1170
1166
  });
1171
1167
 
1172
1168
  // pkg/lang/index.ts
1173
- var lang_exports = {};
1174
- __export(lang_exports, {
1175
- ALL_LANGUAGES: () => ALL_LANGUAGES,
1176
- CODE_NAME_MAP: () => CODE_NAME_MAP,
1177
- DefaultLanguageService: () => DefaultLanguageService,
1178
- LANGUAGE_MAP: () => LANGUAGE_MAP,
1179
- LTR_LANGUAGES: () => LTR_LANGUAGES,
1180
- RTL_LANGUAGES: () => RTL_LANGUAGES,
1181
- createLanguageService: () => createLanguageService,
1182
- getLanguageService: () => getLanguageService,
1183
- lang: () => lang,
1184
- languages: () => languages
1185
- });
1186
1169
  var lang, languages;
1187
1170
  var init_lang = __esm({
1188
1171
  "pkg/lang/index.ts"() {
@@ -3265,7 +3248,7 @@ var require_stream_writable = __commonJS({
3265
3248
  "node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
3266
3249
  "use strict";
3267
3250
  var pna = require_process_nextick_args();
3268
- module2.exports = Writable2;
3251
+ module2.exports = Writable3;
3269
3252
  function CorkedRequest(state) {
3270
3253
  var _this = this;
3271
3254
  this.next = null;
@@ -3276,7 +3259,7 @@ var require_stream_writable = __commonJS({
3276
3259
  }
3277
3260
  var asyncWrite = !process.browser && ["v0.10", "v0.9."].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick;
3278
3261
  var Duplex;
3279
- Writable2.WritableState = WritableState;
3262
+ Writable3.WritableState = WritableState;
3280
3263
  var util2 = Object.create(require_util());
3281
3264
  util2.inherits = require_inherits();
3282
3265
  var internalUtil = {
@@ -3293,7 +3276,7 @@ var require_stream_writable = __commonJS({
3293
3276
  return Buffer2.isBuffer(obj) || obj instanceof OurUint8Array;
3294
3277
  }
3295
3278
  var destroyImpl = require_destroy();
3296
- util2.inherits(Writable2, Stream);
3279
+ util2.inherits(Writable3, Stream);
3297
3280
  function nop() {
3298
3281
  }
3299
3282
  function WritableState(options, stream) {
@@ -3362,11 +3345,11 @@ var require_stream_writable = __commonJS({
3362
3345
  var realHasInstance;
3363
3346
  if (typeof Symbol === "function" && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === "function") {
3364
3347
  realHasInstance = Function.prototype[Symbol.hasInstance];
3365
- Object.defineProperty(Writable2, Symbol.hasInstance, {
3348
+ Object.defineProperty(Writable3, Symbol.hasInstance, {
3366
3349
  value: function(object) {
3367
3350
  if (realHasInstance.call(this, object))
3368
3351
  return true;
3369
- if (this !== Writable2)
3352
+ if (this !== Writable3)
3370
3353
  return false;
3371
3354
  return object && object._writableState instanceof WritableState;
3372
3355
  }
@@ -3376,10 +3359,10 @@ var require_stream_writable = __commonJS({
3376
3359
  return object instanceof this;
3377
3360
  };
3378
3361
  }
3379
- function Writable2(options) {
3362
+ function Writable3(options) {
3380
3363
  Duplex = Duplex || require_stream_duplex();
3381
- if (!realHasInstance.call(Writable2, this) && !(this instanceof Duplex)) {
3382
- return new Writable2(options);
3364
+ if (!realHasInstance.call(Writable3, this) && !(this instanceof Duplex)) {
3365
+ return new Writable3(options);
3383
3366
  }
3384
3367
  this._writableState = new WritableState(options, this);
3385
3368
  this.writable = true;
@@ -3395,7 +3378,7 @@ var require_stream_writable = __commonJS({
3395
3378
  }
3396
3379
  Stream.call(this);
3397
3380
  }
3398
- Writable2.prototype.pipe = function() {
3381
+ Writable3.prototype.pipe = function() {
3399
3382
  this.emit("error", new Error("Cannot pipe, not readable"));
3400
3383
  };
3401
3384
  function writeAfterEnd(stream, cb) {
@@ -3418,7 +3401,7 @@ var require_stream_writable = __commonJS({
3418
3401
  }
3419
3402
  return valid2;
3420
3403
  }
3421
- Writable2.prototype.write = function(chunk, encoding, cb) {
3404
+ Writable3.prototype.write = function(chunk, encoding, cb) {
3422
3405
  var state = this._writableState;
3423
3406
  var ret = false;
3424
3407
  var isBuf = !state.objectMode && _isUint8Array(chunk);
@@ -3443,11 +3426,11 @@ var require_stream_writable = __commonJS({
3443
3426
  }
3444
3427
  return ret;
3445
3428
  };
3446
- Writable2.prototype.cork = function() {
3429
+ Writable3.prototype.cork = function() {
3447
3430
  var state = this._writableState;
3448
3431
  state.corked++;
3449
3432
  };
3450
- Writable2.prototype.uncork = function() {
3433
+ Writable3.prototype.uncork = function() {
3451
3434
  var state = this._writableState;
3452
3435
  if (state.corked) {
3453
3436
  state.corked--;
@@ -3455,7 +3438,7 @@ var require_stream_writable = __commonJS({
3455
3438
  clearBuffer(this, state);
3456
3439
  }
3457
3440
  };
3458
- Writable2.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
3441
+ Writable3.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {
3459
3442
  if (typeof encoding === "string")
3460
3443
  encoding = encoding.toLowerCase();
3461
3444
  if (!(["hex", "utf8", "utf-8", "ascii", "binary", "base64", "ucs2", "ucs-2", "utf16le", "utf-16le", "raw"].indexOf((encoding + "").toLowerCase()) > -1))
@@ -3469,7 +3452,7 @@ var require_stream_writable = __commonJS({
3469
3452
  }
3470
3453
  return chunk;
3471
3454
  }
3472
- Object.defineProperty(Writable2.prototype, "writableHighWaterMark", {
3455
+ Object.defineProperty(Writable3.prototype, "writableHighWaterMark", {
3473
3456
  // making it explicit this property is not enumerable
3474
3457
  // because otherwise some prototype manipulation in
3475
3458
  // userland will fail
@@ -3622,11 +3605,11 @@ var require_stream_writable = __commonJS({
3622
3605
  state.bufferedRequest = entry;
3623
3606
  state.bufferProcessing = false;
3624
3607
  }
3625
- Writable2.prototype._write = function(chunk, encoding, cb) {
3608
+ Writable3.prototype._write = function(chunk, encoding, cb) {
3626
3609
  cb(new Error("_write() is not implemented"));
3627
3610
  };
3628
- Writable2.prototype._writev = null;
3629
- Writable2.prototype.end = function(chunk, encoding, cb) {
3611
+ Writable3.prototype._writev = null;
3612
+ Writable3.prototype.end = function(chunk, encoding, cb) {
3630
3613
  var state = this._writableState;
3631
3614
  if (typeof chunk === "function") {
3632
3615
  cb = chunk;
@@ -3705,7 +3688,7 @@ var require_stream_writable = __commonJS({
3705
3688
  }
3706
3689
  state.corkedRequestsFree.next = corkReq;
3707
3690
  }
3708
- Object.defineProperty(Writable2.prototype, "destroyed", {
3691
+ Object.defineProperty(Writable3.prototype, "destroyed", {
3709
3692
  get: function() {
3710
3693
  if (this._writableState === void 0) {
3711
3694
  return false;
@@ -3719,9 +3702,9 @@ var require_stream_writable = __commonJS({
3719
3702
  this._writableState.destroyed = value2;
3720
3703
  }
3721
3704
  });
3722
- Writable2.prototype.destroy = destroyImpl.destroy;
3723
- Writable2.prototype._undestroy = destroyImpl.undestroy;
3724
- Writable2.prototype._destroy = function(err, cb) {
3705
+ Writable3.prototype.destroy = destroyImpl.destroy;
3706
+ Writable3.prototype._undestroy = destroyImpl.undestroy;
3707
+ Writable3.prototype._destroy = function(err, cb) {
3725
3708
  this.end();
3726
3709
  cb(err);
3727
3710
  };
@@ -3743,15 +3726,15 @@ var require_stream_duplex = __commonJS({
3743
3726
  module2.exports = Duplex;
3744
3727
  var util2 = Object.create(require_util());
3745
3728
  util2.inherits = require_inherits();
3746
- var Readable = require_stream_readable();
3747
- var Writable2 = require_stream_writable();
3748
- util2.inherits(Duplex, Readable);
3729
+ var Readable3 = require_stream_readable();
3730
+ var Writable3 = require_stream_writable();
3731
+ util2.inherits(Duplex, Readable3);
3749
3732
  {
3750
- keys = objectKeys(Writable2.prototype);
3733
+ keys = objectKeys(Writable3.prototype);
3751
3734
  for (v = 0; v < keys.length; v++) {
3752
3735
  method = keys[v];
3753
3736
  if (!Duplex.prototype[method])
3754
- Duplex.prototype[method] = Writable2.prototype[method];
3737
+ Duplex.prototype[method] = Writable3.prototype[method];
3755
3738
  }
3756
3739
  }
3757
3740
  var keys;
@@ -3760,8 +3743,8 @@ var require_stream_duplex = __commonJS({
3760
3743
  function Duplex(options) {
3761
3744
  if (!(this instanceof Duplex))
3762
3745
  return new Duplex(options);
3763
- Readable.call(this, options);
3764
- Writable2.call(this, options);
3746
+ Readable3.call(this, options);
3747
+ Writable3.call(this, options);
3765
3748
  if (options && options.readable === false)
3766
3749
  this.readable = false;
3767
3750
  if (options && options.writable === false)
@@ -4076,10 +4059,10 @@ var require_stream_readable = __commonJS({
4076
4059
  "node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
4077
4060
  "use strict";
4078
4061
  var pna = require_process_nextick_args();
4079
- module2.exports = Readable;
4062
+ module2.exports = Readable3;
4080
4063
  var isArray = require_isarray();
4081
4064
  var Duplex;
4082
- Readable.ReadableState = ReadableState;
4065
+ Readable3.ReadableState = ReadableState;
4083
4066
  var EE = require("events").EventEmitter;
4084
4067
  var EElistenerCount = function(emitter, type2) {
4085
4068
  return emitter.listeners(type2).length;
@@ -4107,7 +4090,7 @@ var require_stream_readable = __commonJS({
4107
4090
  var BufferList = require_BufferList();
4108
4091
  var destroyImpl = require_destroy();
4109
4092
  var StringDecoder;
4110
- util2.inherits(Readable, Stream);
4093
+ util2.inherits(Readable3, Stream);
4111
4094
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
4112
4095
  function prependListener(emitter, event, fn) {
4113
4096
  if (typeof emitter.prependListener === "function")
@@ -4162,10 +4145,10 @@ var require_stream_readable = __commonJS({
4162
4145
  this.encoding = options.encoding;
4163
4146
  }
4164
4147
  }
4165
- function Readable(options) {
4148
+ function Readable3(options) {
4166
4149
  Duplex = Duplex || require_stream_duplex();
4167
- if (!(this instanceof Readable))
4168
- return new Readable(options);
4150
+ if (!(this instanceof Readable3))
4151
+ return new Readable3(options);
4169
4152
  this._readableState = new ReadableState(options, this);
4170
4153
  this.readable = true;
4171
4154
  if (options) {
@@ -4176,7 +4159,7 @@ var require_stream_readable = __commonJS({
4176
4159
  }
4177
4160
  Stream.call(this);
4178
4161
  }
4179
- Object.defineProperty(Readable.prototype, "destroyed", {
4162
+ Object.defineProperty(Readable3.prototype, "destroyed", {
4180
4163
  get: function() {
4181
4164
  if (this._readableState === void 0) {
4182
4165
  return false;
@@ -4190,13 +4173,13 @@ var require_stream_readable = __commonJS({
4190
4173
  this._readableState.destroyed = value2;
4191
4174
  }
4192
4175
  });
4193
- Readable.prototype.destroy = destroyImpl.destroy;
4194
- Readable.prototype._undestroy = destroyImpl.undestroy;
4195
- Readable.prototype._destroy = function(err, cb) {
4176
+ Readable3.prototype.destroy = destroyImpl.destroy;
4177
+ Readable3.prototype._undestroy = destroyImpl.undestroy;
4178
+ Readable3.prototype._destroy = function(err, cb) {
4196
4179
  this.push(null);
4197
4180
  cb(err);
4198
4181
  };
4199
- Readable.prototype.push = function(chunk, encoding) {
4182
+ Readable3.prototype.push = function(chunk, encoding) {
4200
4183
  var state = this._readableState;
4201
4184
  var skipChunkCheck;
4202
4185
  if (!state.objectMode) {
@@ -4213,7 +4196,7 @@ var require_stream_readable = __commonJS({
4213
4196
  }
4214
4197
  return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);
4215
4198
  };
4216
- Readable.prototype.unshift = function(chunk) {
4199
+ Readable3.prototype.unshift = function(chunk) {
4217
4200
  return readableAddChunk(this, chunk, null, true, false);
4218
4201
  };
4219
4202
  function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {
@@ -4281,10 +4264,10 @@ var require_stream_readable = __commonJS({
4281
4264
  function needMoreData(state) {
4282
4265
  return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0);
4283
4266
  }
4284
- Readable.prototype.isPaused = function() {
4267
+ Readable3.prototype.isPaused = function() {
4285
4268
  return this._readableState.flowing === false;
4286
4269
  };
4287
- Readable.prototype.setEncoding = function(enc) {
4270
+ Readable3.prototype.setEncoding = function(enc) {
4288
4271
  if (!StringDecoder)
4289
4272
  StringDecoder = require_string_decoder().StringDecoder;
4290
4273
  this._readableState.decoder = new StringDecoder(enc);
@@ -4327,7 +4310,7 @@ var require_stream_readable = __commonJS({
4327
4310
  }
4328
4311
  return state.length;
4329
4312
  }
4330
- Readable.prototype.read = function(n2) {
4313
+ Readable3.prototype.read = function(n2) {
4331
4314
  debug("read", n2);
4332
4315
  n2 = parseInt(n2, 10);
4333
4316
  var state = this._readableState;
@@ -4437,10 +4420,10 @@ var require_stream_readable = __commonJS({
4437
4420
  }
4438
4421
  state.readingMore = false;
4439
4422
  }
4440
- Readable.prototype._read = function(n2) {
4423
+ Readable3.prototype._read = function(n2) {
4441
4424
  this.emit("error", new Error("_read() is not implemented"));
4442
4425
  };
4443
- Readable.prototype.pipe = function(dest, pipeOpts) {
4426
+ Readable3.prototype.pipe = function(dest, pipeOpts) {
4444
4427
  var src = this;
4445
4428
  var state = this._readableState;
4446
4429
  switch (state.pipesCount) {
@@ -4550,7 +4533,7 @@ var require_stream_readable = __commonJS({
4550
4533
  }
4551
4534
  };
4552
4535
  }
4553
- Readable.prototype.unpipe = function(dest) {
4536
+ Readable3.prototype.unpipe = function(dest) {
4554
4537
  var state = this._readableState;
4555
4538
  var unpipeInfo = { hasUnpiped: false };
4556
4539
  if (state.pipesCount === 0)
@@ -4588,7 +4571,7 @@ var require_stream_readable = __commonJS({
4588
4571
  dest.emit("unpipe", this, unpipeInfo);
4589
4572
  return this;
4590
4573
  };
4591
- Readable.prototype.on = function(ev, fn) {
4574
+ Readable3.prototype.on = function(ev, fn) {
4592
4575
  var res = Stream.prototype.on.call(this, ev, fn);
4593
4576
  if (ev === "data") {
4594
4577
  if (this._readableState.flowing !== false)
@@ -4607,12 +4590,12 @@ var require_stream_readable = __commonJS({
4607
4590
  }
4608
4591
  return res;
4609
4592
  };
4610
- Readable.prototype.addListener = Readable.prototype.on;
4593
+ Readable3.prototype.addListener = Readable3.prototype.on;
4611
4594
  function nReadingNextTick(self2) {
4612
4595
  debug("readable nexttick read 0");
4613
4596
  self2.read(0);
4614
4597
  }
4615
- Readable.prototype.resume = function() {
4598
+ Readable3.prototype.resume = function() {
4616
4599
  var state = this._readableState;
4617
4600
  if (!state.flowing) {
4618
4601
  debug("resume");
@@ -4639,7 +4622,7 @@ var require_stream_readable = __commonJS({
4639
4622
  if (state.flowing && !state.reading)
4640
4623
  stream.read(0);
4641
4624
  }
4642
- Readable.prototype.pause = function() {
4625
+ Readable3.prototype.pause = function() {
4643
4626
  debug("call pause flowing=%j", this._readableState.flowing);
4644
4627
  if (false !== this._readableState.flowing) {
4645
4628
  debug("pause");
@@ -4654,7 +4637,7 @@ var require_stream_readable = __commonJS({
4654
4637
  while (state.flowing && stream.read() !== null) {
4655
4638
  }
4656
4639
  }
4657
- Readable.prototype.wrap = function(stream) {
4640
+ Readable3.prototype.wrap = function(stream) {
4658
4641
  var _this = this;
4659
4642
  var state = this._readableState;
4660
4643
  var paused = false;
@@ -4702,7 +4685,7 @@ var require_stream_readable = __commonJS({
4702
4685
  };
4703
4686
  return this;
4704
4687
  };
4705
- Object.defineProperty(Readable.prototype, "readableHighWaterMark", {
4688
+ Object.defineProperty(Readable3.prototype, "readableHighWaterMark", {
4706
4689
  // making it explicit this property is not enumerable
4707
4690
  // because otherwise some prototype manipulation in
4708
4691
  // userland will fail
@@ -4711,7 +4694,7 @@ var require_stream_readable = __commonJS({
4711
4694
  return this._readableState.highWaterMark;
4712
4695
  }
4713
4696
  });
4714
- Readable._fromList = fromList;
4697
+ Readable3._fromList = fromList;
4715
4698
  function fromList(n2, state) {
4716
4699
  if (state.length === 0)
4717
4700
  return null;
@@ -6429,11 +6412,11 @@ var require_ConvertWorker = __commonJS({
6429
6412
  var require_NodejsStreamOutputAdapter = __commonJS({
6430
6413
  "node_modules/jszip/lib/nodejs/NodejsStreamOutputAdapter.js"(exports2, module2) {
6431
6414
  "use strict";
6432
- var Readable = require_readable().Readable;
6415
+ var Readable3 = require_readable().Readable;
6433
6416
  var utils = require_utils();
6434
- utils.inherits(NodejsStreamOutputAdapter, Readable);
6417
+ utils.inherits(NodejsStreamOutputAdapter, Readable3);
6435
6418
  function NodejsStreamOutputAdapter(helper, options, updateCb) {
6436
- Readable.call(this, options);
6419
+ Readable3.call(this, options);
6437
6420
  this._helper = helper;
6438
6421
  var self2 = this;
6439
6422
  helper.on("data", function(data, meta) {
@@ -19092,7 +19075,7 @@ function indexNonWhiteSpace2(source, char2) {
19092
19075
  function isSpace2(b) {
19093
19076
  return b === 32 || b === 9 || b === 13 || b === 10;
19094
19077
  }
19095
- var log17, ShortcodeImpl, ShortcodeParser, TOC_SHORTCODE_PLACEHOLDER, SHORTCODE_PLACEHOLDER_PREFIX;
19078
+ var log17, ShortcodeImpl, ShortcodeParser, SHORTCODE_PLACEHOLDER_PREFIX, TOC_SHORTCODE_PLACEHOLDER;
19096
19079
  var init_shortcode = __esm({
19097
19080
  "internal/domain/markdown/vo/shortcode.ts"() {
19098
19081
  "use strict";
@@ -19333,8 +19316,8 @@ var init_shortcode = __esm({
19333
19316
  return Array.from(this.nameSet);
19334
19317
  }
19335
19318
  };
19336
- TOC_SHORTCODE_PLACEHOLDER = createShortcodePlaceholder("TOC", 0, 0);
19337
19319
  SHORTCODE_PLACEHOLDER_PREFIX = "HAHAHUGOSHORTCODE";
19320
+ TOC_SHORTCODE_PLACEHOLDER = createShortcodePlaceholder("TOC", 0, 0);
19338
19321
  }
19339
19322
  });
19340
19323
 
@@ -29841,10 +29824,11 @@ var init_markdown5 = __esm({
29841
29824
  });
29842
29825
 
29843
29826
  // internal/domain/paths/type.ts
29844
- var PathType, PATH_CONSTANTS;
29827
+ var import_path5, PathType, PATH_CONSTANTS;
29845
29828
  var init_type7 = __esm({
29846
29829
  "internal/domain/paths/type.ts"() {
29847
29830
  "use strict";
29831
+ import_path5 = require("path");
29848
29832
  PathType = /* @__PURE__ */ ((PathType2) => {
29849
29833
  PathType2[PathType2["File"] = 0] = "File";
29850
29834
  PathType2[PathType2["ContentResource"] = 1] = "ContentResource";
@@ -29860,14 +29844,8 @@ var init_type7 = __esm({
29860
29844
  PATH_SEPARATOR: "/",
29861
29845
  EXTENSION_SEPARATOR: ".",
29862
29846
  LANGUAGE_SEPARATOR: ".",
29863
- // System-specific path separator detection
29864
- SYSTEM_PATH_SEPARATOR: (() => {
29865
- try {
29866
- return require("path").sep;
29867
- } catch {
29868
- return "/";
29869
- }
29870
- })(),
29847
+ // System-specific path separator (imported from Node.js path module)
29848
+ SYSTEM_PATH_SEPARATOR: import_path5.sep,
29871
29849
  // Component folder constants - matching golang files/classifier.go
29872
29850
  COMPONENT_FOLDER_CONTENT: "content",
29873
29851
  COMPONENT_FOLDER_STATIC: "static",
@@ -31777,7 +31755,7 @@ function getParam(p2, key3, stringToLower) {
31777
31755
  return v;
31778
31756
  }
31779
31757
  }
31780
- var import_path9, FrontMatterParserImpl;
31758
+ var import_path10, FrontMatterParserImpl;
31781
31759
  var init_frontmatter = __esm({
31782
31760
  "internal/domain/content/vo/frontmatter.ts"() {
31783
31761
  "use strict";
@@ -31785,7 +31763,7 @@ var init_frontmatter = __esm({
31785
31763
  init_cast2();
31786
31764
  init_string2();
31787
31765
  init_types3();
31788
- import_path9 = __toESM(require("path"));
31766
+ import_path10 = __toESM(require("path"));
31789
31767
  FrontMatterParserImpl = class {
31790
31768
  params;
31791
31769
  langSvc;
@@ -31972,7 +31950,7 @@ var init_frontmatter = __esm({
31972
31950
  organization.website = Cast.toString(orgValue.website);
31973
31951
  }
31974
31952
  if (orgValue.logo !== void 0 && orgValue.logo !== null) {
31975
- organization.logo = import_path9.default.join(baseURL, Cast.toString(orgValue.logo));
31953
+ organization.logo = import_path10.default.join(baseURL, Cast.toString(orgValue.logo));
31976
31954
  }
31977
31955
  const contact = this.parseContact(orgValue.contact);
31978
31956
  if (contact) {
@@ -32090,7 +32068,7 @@ var init_frontmatter = __esm({
32090
32068
  author.website = Cast.toString(authorValue.website);
32091
32069
  }
32092
32070
  if (authorValue.avatar !== void 0 && authorValue.avatar !== null) {
32093
- author.avatar = import_path9.default.join(baseURL, Cast.toString(authorValue.avatar));
32071
+ author.avatar = import_path10.default.join(baseURL, Cast.toString(authorValue.avatar));
32094
32072
  }
32095
32073
  const contact = this.parseContact(authorValue.contact);
32096
32074
  if (contact) {
@@ -35401,7 +35379,7 @@ var init_paths2 = __esm({
35401
35379
  });
35402
35380
 
35403
35381
  // internal/domain/content/entity/page.ts
35404
- var import_path10, log30, PageImpl, TaxonomyPageImpl, TermPageImpl;
35382
+ var import_path11, log30, PageImpl, TaxonomyPageImpl, TermPageImpl;
35405
35383
  var init_page = __esm({
35406
35384
  "internal/domain/content/entity/page.ts"() {
35407
35385
  "use strict";
@@ -35413,7 +35391,7 @@ var init_page = __esm({
35413
35391
  init_paths2();
35414
35392
  init_doctree();
35415
35393
  init_sort();
35416
- import_path10 = __toESM(require("path"));
35394
+ import_path11 = __toESM(require("path"));
35417
35395
  init_log();
35418
35396
  log30 = getDomainLogger("content", { component: "page" });
35419
35397
  PageImpl = class {
@@ -35519,7 +35497,7 @@ var init_page = __esm({
35519
35497
  if (/^(https?:)?\/\//.test(src)) {
35520
35498
  return src;
35521
35499
  }
35522
- src = import_path10.default.normalize(src);
35500
+ src = import_path11.default.normalize(src);
35523
35501
  src = src.replace(/\\/g, "/");
35524
35502
  if (src.startsWith("/")) {
35525
35503
  src = src.slice(1);
@@ -40397,6 +40375,7 @@ var init_registry = __esm({
40397
40375
  "use strict";
40398
40376
  init_log();
40399
40377
  crypto2 = __toESM(require("crypto"));
40378
+ init_lang();
40400
40379
  log35 = getDomainLogger("template", { component: "registry" });
40401
40380
  engineDependentFunctions = [];
40402
40381
  PartialFunction = class {
@@ -40712,37 +40691,36 @@ var init_registry = __esm({
40712
40691
  * Equivalent to Go's registerLang()
40713
40692
  */
40714
40693
  registerLanguageFunctions(funcMap, services) {
40715
- const { lang: lang2 } = (init_lang(), __toCommonJS(lang_exports));
40716
40694
  funcMap.set("lang", () => ({
40717
40695
  // Get all language codes
40718
- getAllCodes: () => lang2.getAllCodes(),
40696
+ getAllCodes: () => lang.getAllCodes(),
40719
40697
  // Get all language names
40720
- getAllNames: () => lang2.getAllNames(),
40698
+ getAllNames: () => lang.getAllNames(),
40721
40699
  // Get language codes by direction
40722
- getCodesByDirection: (direction) => lang2.getCodesByDirection(direction),
40700
+ getCodesByDirection: (direction) => lang.getCodesByDirection(direction),
40723
40701
  // Get language names by direction
40724
- getNamesByDirection: (direction) => lang2.getNamesByDirection(direction),
40702
+ getNamesByDirection: (direction) => lang.getNamesByDirection(direction),
40725
40703
  // Get code-name mapping
40726
- getCodeNameMap: () => lang2.getCodeNameMap(),
40704
+ getCodeNameMap: () => lang.getCodeNameMap(),
40727
40705
  // Get code-name mapping by direction
40728
- getCodeNameMapByDirection: (direction) => lang2.getCodeNameMapByDirection(direction),
40706
+ getCodeNameMapByDirection: (direction) => lang.getCodeNameMapByDirection(direction),
40729
40707
  // Get language name by code
40730
- getNameByCode: (code2) => lang2.getNameByCode(code2),
40708
+ getNameByCode: (code2) => lang.getNameByCode(code2),
40731
40709
  // Get language info by code
40732
- getLanguageInfo: (code2) => lang2.getLanguageInfo(code2),
40710
+ getLanguageInfo: (code2) => lang.getLanguageInfo(code2),
40733
40711
  // Check if language is supported
40734
- isSupported: (code2) => lang2.isSupported(code2),
40712
+ isSupported: (code2) => lang.isSupported(code2),
40735
40713
  // Get language direction
40736
- getDirection: (code2) => lang2.getDirection(code2),
40714
+ getDirection: (code2) => lang.getDirection(code2),
40737
40715
  // Check if language is LTR
40738
- isLTR: (code2) => lang2.isLTR(code2),
40716
+ isLTR: (code2) => lang.isLTR(code2),
40739
40717
  // Check if language is RTL
40740
- isRTL: (code2) => lang2.isRTL(code2)
40718
+ isRTL: (code2) => lang.isRTL(code2)
40741
40719
  }));
40742
- funcMap.set("langName", (code2) => lang2.getNameByCode(code2) || code2);
40743
- funcMap.set("langDirection", (code2) => lang2.getDirection(code2) || "ltr");
40744
- funcMap.set("isLTR", (code2) => lang2.isLTR(code2));
40745
- funcMap.set("isRTL", (code2) => lang2.isRTL(code2));
40720
+ funcMap.set("langName", (code2) => lang.getNameByCode(code2) || code2);
40721
+ funcMap.set("langDirection", (code2) => lang.getDirection(code2) || "ltr");
40722
+ funcMap.set("isLTR", (code2) => lang.isLTR(code2));
40723
+ funcMap.set("isRTL", (code2) => lang.isRTL(code2));
40746
40724
  funcMap.set("i18n", (key3) => {
40747
40725
  return services.translate(key3);
40748
40726
  });
@@ -43887,11 +43865,11 @@ var init_pager = __esm({
43887
43865
  });
43888
43866
 
43889
43867
  // internal/domain/site/entity/page.ts
43890
- var import_path11, log39, Page2;
43868
+ var import_path12, log39, Page2;
43891
43869
  var init_page2 = __esm({
43892
43870
  "internal/domain/site/entity/page.ts"() {
43893
43871
  "use strict";
43894
- import_path11 = __toESM(require("path"));
43872
+ import_path12 = __toESM(require("path"));
43895
43873
  init_log();
43896
43874
  init_pager();
43897
43875
  log39 = getDomainLogger("site", { component: "page" });
@@ -44011,14 +43989,14 @@ var init_page2 = __esm({
44011
43989
  } else {
44012
43990
  prefix = this.site.getLanguage().getCurrentLanguage();
44013
43991
  }
44014
- targetFilenames.push(import_path11.default.join(prefix, this.getPageOutput().targetFilePath()));
43992
+ targetFilenames.push(import_path12.default.join(prefix, this.getPageOutput().targetFilePath()));
44015
43993
  await this.renderAndWritePage(tmpl, targetFilenames);
44016
43994
  const current = await this.current();
44017
43995
  if (current) {
44018
43996
  let currentPager = current.next();
44019
43997
  while (currentPager) {
44020
43998
  this.setCurrent(currentPager);
44021
- const paginationTargets = [import_path11.default.join(prefix, currentPager.url(), this.getPageOutput().targetFileBase())];
43999
+ const paginationTargets = [import_path12.default.join(prefix, currentPager.url(), this.getPageOutput().targetFileBase())];
44022
44000
  await this.renderAndWritePage(tmpl, paginationTargets);
44023
44001
  currentPager = currentPager.next();
44024
44002
  }
@@ -44051,7 +44029,7 @@ var init_page2 = __esm({
44051
44029
  prefix = this.site.getLanguage().getCurrentLanguage();
44052
44030
  }
44053
44031
  let resourcePath = pageSource.path();
44054
- targetFilenames.push(import_path11.default.join(prefix, resourcePath));
44032
+ targetFilenames.push(import_path12.default.join(prefix, resourcePath));
44055
44033
  let stream = null;
44056
44034
  try {
44057
44035
  const opener = () => pageSource.pageFile().open();
@@ -59080,7 +59058,7 @@ var init_is_absolute_url = __esm({
59080
59058
  function createHtmlLinkProcessor(graph, options) {
59081
59059
  return new HtmlLinkProcessor(graph, options);
59082
59060
  }
59083
- var import_path13, log43, defaultOptions2, HtmlLinkProcessor;
59061
+ var import_path14, log43, defaultOptions2, HtmlLinkProcessor;
59084
59062
  var init_html_link_processor = __esm({
59085
59063
  "internal/domain/site/service/html-link-processor.ts"() {
59086
59064
  "use strict";
@@ -59089,7 +59067,7 @@ var init_html_link_processor = __esm({
59089
59067
  init_rehype_stringify();
59090
59068
  init_unist_util_visit();
59091
59069
  init_is_absolute_url();
59092
- import_path13 = __toESM(require("path"));
59070
+ import_path14 = __toESM(require("path"));
59093
59071
  init_path3();
59094
59072
  init_log();
59095
59073
  log43 = getDomainLogger("site", { component: "HtmlLinkProcessor" });
@@ -59227,7 +59205,7 @@ var init_html_link_processor = __esm({
59227
59205
  node.properties["data-slug"] = full;
59228
59206
  }
59229
59207
  if (opts.prettyLinks && isInternal && node.children.length === 1 && node.children[0].type === "text" && !node.children[0].value.startsWith("#")) {
59230
- node.children[0].value = import_path13.default.basename(node.children[0].value);
59208
+ node.children[0].value = import_path14.default.basename(node.children[0].value);
59231
59209
  }
59232
59210
  }
59233
59211
  if (["img", "video", "audio", "iframe"].includes(node.tagName) && node.properties && typeof node.properties.src === "string") {
@@ -60051,14 +60029,14 @@ var init_site = __esm({
60051
60029
 
60052
60030
  // internal/domain/site/entity/publisher.ts
60053
60031
  async function openFileForWriting(fs3, filename) {
60054
- const cleanFilename = import_path15.default.normalize(filename);
60032
+ const cleanFilename = import_path16.default.normalize(filename);
60055
60033
  try {
60056
60034
  return await fs3.create(cleanFilename);
60057
60035
  } catch (error) {
60058
60036
  if (!isFileNotFoundError(error)) {
60059
60037
  throw error;
60060
60038
  }
60061
- const dir2 = import_path15.default.dirname(cleanFilename);
60039
+ const dir2 = import_path16.default.dirname(cleanFilename);
60062
60040
  await fs3.mkdirAll(dir2, 511);
60063
60041
  return await fs3.create(cleanFilename);
60064
60042
  }
@@ -60066,11 +60044,11 @@ async function openFileForWriting(fs3, filename) {
60066
60044
  function isFileNotFoundError(error) {
60067
60045
  return error && (error.code === "ENOENT" || error.code === "FILE_NOT_FOUND" || error.message?.includes("not found") || error.message?.includes("no such file"));
60068
60046
  }
60069
- var import_path15, log45, Publisher, MultiWriter;
60047
+ var import_path16, log45, Publisher, MultiWriter;
60070
60048
  var init_publisher = __esm({
60071
60049
  "internal/domain/site/entity/publisher.ts"() {
60072
60050
  "use strict";
60073
- import_path15 = __toESM(require("path"));
60051
+ import_path16 = __toESM(require("path"));
60074
60052
  init_log();
60075
60053
  log45 = getDomainLogger("site", { component: "publisher" });
60076
60054
  Publisher = class {
@@ -61163,7 +61141,7 @@ var init_type9 = __esm({
61163
61141
  });
61164
61142
 
61165
61143
  // internal/domain/resources/entity/resource.ts
61166
- var import_crypto, import_stream, import_promises, log53, ResourceHash, PublishOnce, ResourceImpl;
61144
+ var import_crypto, import_stream, import_promises, import_stream2, log53, ResourceHash, PublishOnce, ResourceImpl;
61167
61145
  var init_resource = __esm({
61168
61146
  "internal/domain/resources/entity/resource.ts"() {
61169
61147
  "use strict";
@@ -61172,6 +61150,7 @@ var init_resource = __esm({
61172
61150
  import_stream = require("stream");
61173
61151
  init_paths();
61174
61152
  import_promises = require("stream/promises");
61153
+ import_stream2 = require("stream");
61175
61154
  init_log();
61176
61155
  log53 = getDomainLogger("resources", { component: "publisher" });
61177
61156
  ResourceHash = class {
@@ -61312,8 +61291,7 @@ var init_resource = __esm({
61312
61291
  if (result && typeof result.read === "function") {
61313
61292
  const testChunk = result.read();
61314
61293
  if (testChunk) {
61315
- const Readable = require("stream").Readable;
61316
- const newStream = new Readable();
61294
+ const newStream = new import_stream2.Readable();
61317
61295
  newStream.push(testChunk);
61318
61296
  let remainingChunk;
61319
61297
  while ((remainingChunk = result.read()) !== null) {
@@ -92387,13 +92365,13 @@ var init_template4 = __esm({
92387
92365
  });
92388
92366
 
92389
92367
  // internal/domain/resources/entity/publisher.ts
92390
- var path25, import_stream2, log54, Publisher2, FileWritable;
92368
+ var path25, import_stream3, log54, Publisher2, FileWritable;
92391
92369
  var init_publisher2 = __esm({
92392
92370
  "internal/domain/resources/entity/publisher.ts"() {
92393
92371
  "use strict";
92394
92372
  path25 = __toESM(require("path"));
92395
92373
  init_log();
92396
- import_stream2 = require("stream");
92374
+ import_stream3 = require("stream");
92397
92375
  log54 = getDomainLogger("resources", { component: "publisher" });
92398
92376
  Publisher2 = class {
92399
92377
  pubFs;
@@ -92479,7 +92457,7 @@ var init_publisher2 = __esm({
92479
92457
  return error && (error.code === "ENOENT" || error.message?.includes("no such file or directory") || error.message?.includes("not found"));
92480
92458
  }
92481
92459
  };
92482
- FileWritable = class extends import_stream2.Writable {
92460
+ FileWritable = class extends import_stream3.Writable {
92483
92461
  file;
92484
92462
  constructor(file) {
92485
92463
  super();
@@ -92595,7 +92573,7 @@ var init_http2 = __esm({
92595
92573
  });
92596
92574
 
92597
92575
  // internal/domain/resources/entity/resources.ts
92598
- var path26, import_crypto3, log56, Resources;
92576
+ var path26, import_crypto3, import_stream4, log56, Resources;
92599
92577
  var init_resources = __esm({
92600
92578
  "internal/domain/resources/entity/resources.ts"() {
92601
92579
  "use strict";
@@ -92610,6 +92588,7 @@ var init_resources = __esm({
92610
92588
  path26 = __toESM(require("path"));
92611
92589
  import_crypto3 = require("crypto");
92612
92590
  init_log();
92591
+ import_stream4 = require("stream");
92613
92592
  log56 = getDomainLogger("resources", { component: "resources" });
92614
92593
  Resources = class {
92615
92594
  cache = /* @__PURE__ */ new Map();
@@ -92890,8 +92869,7 @@ var init_resources = __esm({
92890
92869
  * This follows golang's NewReadSeekerNoOpCloserFromString pattern
92891
92870
  */
92892
92871
  newReadSeekerNoOpCloserFromString(content) {
92893
- const { Readable } = require("stream");
92894
- const stream = new Readable({
92872
+ const stream = new import_stream4.Readable({
92895
92873
  read() {
92896
92874
  }
92897
92875
  });
@@ -93141,7 +93119,7 @@ function getDomainInstances() {
93141
93119
  }
93142
93120
  async function loadConfiguration(projDir, modulesDir) {
93143
93121
  const osFs = newOsFs();
93144
- const configFilePath = import_path16.default.join(projDir, "config.json");
93122
+ const configFilePath = import_path17.default.join(projDir, "config.json");
93145
93123
  return await loadConfigWithParams(osFs, configFilePath, projDir, modulesDir);
93146
93124
  }
93147
93125
  async function createModule(config2) {
@@ -93724,7 +93702,7 @@ async function collectAllPageTasks(projDir, modulesDir, markdown, onProgress, ht
93724
93702
  throw new Error(`Failed to generate static site: ${message}`);
93725
93703
  }
93726
93704
  }
93727
- var import_path16, log57, configCache, modulesCache, fsCache, contentCache, resourcesCache, templateEngineCache, siteCache, createDomainInstances, tasks;
93705
+ var import_path17, log57, configCache, modulesCache, fsCache, contentCache, resourcesCache, templateEngineCache, siteCache, createDomainInstances, tasks;
93728
93706
  var init_ssg = __esm({
93729
93707
  "internal/application/ssg.ts"() {
93730
93708
  "use strict";
@@ -93735,7 +93713,7 @@ var init_ssg = __esm({
93735
93713
  init_template3();
93736
93714
  init_site2();
93737
93715
  init_log();
93738
- import_path16 = __toESM(require("path"));
93716
+ import_path17 = __toESM(require("path"));
93739
93717
  init_resources2();
93740
93718
  log57 = getDomainLogger("ssg", { component: "application" });
93741
93719
  createDomainInstances = (site, content, fs3, config2, modules, resources) => {