@mdfriday/foundry 26.4.20 → 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.
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/obsidian/mobile.js +1 -1
- package/dist/cjs/worker/pool-manager.js +2 -2
- package/dist/cjs/worker/worker-node.js +2 -2
- package/dist/esm/index.js +1 -1
- package/dist/esm/obsidian/mobile.js +1 -1
- package/dist/types/internal/application/batch-task-queue.d.ts +17 -0
- package/dist/types/internal/application/container.d.ts +66 -0
- package/dist/types/internal/application/identity.d.ts +173 -0
- package/dist/types/internal/application/incremental-build-coordinator.d.ts +28 -0
- package/dist/types/internal/application/incremental-ssg.d.ts +4 -0
- package/dist/types/internal/application/index.d.ts +5 -4
- package/dist/types/internal/application/publish.d.ts +37 -0
- package/dist/types/internal/application/ssg-parallel.d.ts +6 -0
- package/dist/types/internal/application/ssg.d.ts +15 -0
- package/dist/types/internal/application/wiki-service-config.d.ts +65 -0
- package/dist/types/internal/application/wiki-service.d.ts +199 -0
- package/dist/types/internal/application/worker/pool-manager.d.ts +43 -0
- package/dist/types/internal/application/worker/worker-browser.d.ts +6 -0
- package/dist/types/internal/application/worker/worker-main.d.ts +12 -0
- package/dist/types/internal/application/worker/worker-state.d.ts +23 -0
- package/dist/types/internal/application/workspace.d.ts +98 -0
- package/dist/types/internal/domain/config/entity/config.d.ts +40 -0
- package/dist/types/internal/domain/config/entity/language.d.ts +51 -0
- package/dist/types/internal/domain/config/entity/markdown.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/module.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/root.d.ts +39 -0
- package/dist/types/internal/domain/config/entity/service.d.ts +36 -0
- package/dist/types/internal/domain/config/entity/social.d.ts +43 -0
- package/dist/types/internal/domain/config/entity/taxonomy.d.ts +39 -0
- package/dist/types/internal/domain/config/factory/config.d.ts +3 -0
- package/dist/types/internal/domain/config/factory/loader.d.ts +24 -0
- package/dist/types/internal/domain/config/factory/provider.d.ts +10 -0
- package/dist/types/internal/domain/config/factory/sourcedescriptor.d.ts +12 -0
- package/dist/types/internal/domain/config/type.d.ts +56 -0
- package/dist/types/internal/domain/config/vo/language.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/markdown.d.ts +13 -0
- package/dist/types/internal/domain/config/vo/module.d.ts +9 -0
- package/dist/types/internal/domain/config/vo/root.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/service.d.ts +6 -0
- package/dist/types/internal/domain/config/vo/social.d.ts +16 -0
- package/dist/types/internal/domain/config/vo/taxonomy.d.ts +12 -0
- package/dist/types/internal/domain/content/entity/content.d.ts +36 -0
- package/dist/types/internal/domain/content/entity/page.d.ts +23 -0
- package/dist/types/internal/domain/content/entity/pagebuilder.d.ts +83 -0
- package/dist/types/internal/domain/content/entity/pagecollector.d.ts +3 -0
- package/dist/types/internal/domain/content/entity/pagecontent.d.ts +14 -0
- package/dist/types/internal/domain/content/entity/pagemap.d.ts +69 -0
- package/dist/types/internal/domain/content/entity/pagesource.d.ts +52 -0
- package/dist/types/internal/domain/content/entity/pagetrees.d.ts +12 -0
- package/dist/types/internal/domain/content/entity/paginator.d.ts +19 -0
- package/dist/types/internal/domain/content/entity/section.d.ts +15 -0
- package/dist/types/internal/domain/content/entity/shortcode.d.ts +39 -0
- package/dist/types/internal/domain/content/entity/standalone.d.ts +9 -0
- package/dist/types/internal/domain/content/entity/taxonomy.d.ts +15 -0
- package/dist/types/internal/domain/content/entity/term.d.ts +6 -0
- package/dist/types/internal/domain/content/entity/translator.d.ts +22 -0
- package/dist/types/internal/domain/content/type.d.ts +6 -0
- package/dist/types/internal/domain/content/vo/classifier.d.ts +24 -0
- package/dist/types/internal/domain/content/vo/frontmatter.d.ts +65 -0
- package/dist/types/internal/domain/content/vo/kind.d.ts +10 -0
- package/dist/types/internal/domain/fs/entity/basefs.d.ts +23 -0
- package/dist/types/internal/domain/fs/entity/fs.d.ts +13 -0
- package/dist/types/internal/domain/fs/entity/originfs.d.ts +6 -0
- package/dist/types/internal/domain/fs/entity/overlaydir.d.ts +44 -0
- package/dist/types/internal/domain/fs/entity/overlayfs.d.ts +79 -0
- package/dist/types/internal/domain/fs/entity/service.d.ts +15 -0
- package/dist/types/internal/domain/fs/factory/fs.d.ts +4 -0
- package/dist/types/internal/domain/fs/type.d.ts +95 -0
- package/dist/types/internal/domain/fs/vo/dir.d.ts +41 -0
- package/dist/types/internal/domain/fs/vo/file.d.ts +28 -0
- package/dist/types/internal/domain/fs/vo/fileinfo.d.ts +23 -0
- package/dist/types/internal/domain/fs/vo/filemeta.d.ts +45 -0
- package/dist/types/internal/domain/fs/vo/filesystemscollector.d.ts +17 -0
- package/dist/types/internal/domain/fs/vo/filevitural.d.ts +8 -0
- package/dist/types/internal/domain/fs/vo/osfs.d.ts +12 -0
- package/dist/types/internal/domain/fs/vo/overlay-factory.d.ts +4 -0
- package/dist/types/internal/domain/fs/vo/overlayfs-factory.d.ts +42 -0
- package/dist/types/internal/domain/fs/vo/overlayoptions.d.ts +44 -0
- package/dist/types/internal/domain/fs/vo/static-copier.d.ts +22 -0
- package/dist/types/internal/domain/fs/vo/walkway.d.ts +22 -0
- package/dist/types/internal/domain/identity/entity/user.d.ts +100 -0
- package/dist/types/internal/domain/identity/factory/user-factory.d.ts +183 -0
- package/dist/types/internal/domain/identity/repository/index.d.ts +30 -0
- package/dist/types/internal/domain/identity/type.d.ts +17 -0
- package/dist/types/internal/domain/identity/value-object/device.d.ts +26 -0
- package/dist/types/internal/domain/identity/value-object/email.d.ts +29 -0
- package/dist/types/internal/domain/identity/value-object/license.d.ts +91 -0
- package/dist/types/internal/domain/identity/value-object/server-config.d.ts +37 -0
- package/dist/types/internal/domain/identity/value-object/sync-config.d.ts +47 -0
- package/dist/types/internal/domain/identity/value-object/token.d.ts +35 -0
- package/dist/types/internal/domain/markdown/entity/markdown.d.ts +41 -0
- package/dist/types/internal/domain/markdown/factory/it/config.d.ts +60 -0
- package/dist/types/internal/domain/markdown/factory/it/index.d.ts +21 -1
- package/dist/types/internal/domain/markdown/factory/it/parserresult.d.ts +3 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/callout-plugin.d.ts +40 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/latex-plugin.d.ts +23 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/mermaid-plugin.d.ts +24 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/tag-plugin.d.ts +71 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink-plugin.d.ts +28 -0
- package/dist/types/internal/domain/markdown/factory/it/plugins/wikilink.d.ts +31 -0
- package/dist/types/internal/domain/markdown/factory/it/tableofcontents.d.ts +21 -0
- package/dist/types/internal/domain/markdown/factory/it/util/path.d.ts +11 -0
- package/dist/types/internal/domain/markdown/factory/it/util/slugger-fallback.d.ts +6 -0
- package/dist/types/internal/domain/markdown/type.d.ts +159 -0
- package/dist/types/internal/domain/markdown/vo/config.d.ts +48 -0
- package/dist/types/internal/domain/markdown/vo/content.d.ts +92 -0
- package/dist/types/internal/domain/markdown/vo/context.d.ts +9 -0
- package/dist/types/internal/domain/markdown/vo/highlight.d.ts +15 -0
- package/dist/types/internal/domain/markdown/vo/pageparser.d.ts +9 -0
- package/dist/types/internal/domain/markdown/vo/parseinfo.d.ts +36 -0
- package/dist/types/internal/domain/markdown/vo/parserresult.d.ts +6 -0
- package/dist/types/internal/domain/markdown/vo/shortcode.d.ts +31 -1
- package/dist/types/internal/domain/markdown/vo/tableofcontents.d.ts +21 -0
- package/dist/types/internal/domain/module/entity/lang.d.ts +12 -0
- package/dist/types/internal/domain/module/entity/module.d.ts +73 -0
- package/dist/types/internal/domain/module/factory/module.d.ts +6 -0
- package/dist/types/internal/domain/module/type.d.ts +58 -0
- package/dist/types/internal/domain/module/vo/cache.d.ts +48 -0
- package/dist/types/internal/domain/module/vo/httpclient.d.ts +14 -0
- package/dist/types/internal/domain/module/vo/module.d.ts +76 -0
- package/dist/types/internal/domain/module/vo/mount.d.ts +39 -0
- package/dist/types/internal/domain/module/vo/themes.d.ts +38 -0
- package/dist/types/internal/domain/module/vo/zipextractor.d.ts +31 -0
- package/dist/types/internal/domain/paths/entity/path.d.ts +28 -0
- package/dist/types/internal/domain/paths/factory/pathfactory.d.ts +82 -0
- package/dist/types/internal/domain/paths/type.d.ts +132 -0
- package/dist/types/internal/domain/paths/vo/pathcomponents.d.ts +94 -0
- package/dist/types/internal/domain/paths/vo/pathparser.d.ts +77 -0
- package/dist/types/internal/domain/publish/entity/publisher.d.ts +26 -0
- package/dist/types/internal/domain/publish/factory/publisher-factory.d.ts +17 -0
- package/dist/types/internal/domain/publish/repository/http-client.d.ts +21 -0
- package/dist/types/internal/domain/publish/repository/manifest-repository.d.ts +27 -0
- package/dist/types/internal/domain/publish/type.d.ts +49 -0
- package/dist/types/internal/domain/publish/value-object/ftp-publisher.d.ts +30 -0
- package/dist/types/internal/domain/publish/value-object/mdfriday-publisher.d.ts +57 -0
- package/dist/types/internal/domain/publish/value-object/netlify-publisher.d.ts +55 -0
- package/dist/types/internal/domain/publish/value-object/publish-config.d.ts +38 -0
- package/dist/types/internal/domain/publish/value-object/publish-manifest.d.ts +50 -0
- package/dist/types/internal/domain/resources/entity/http.d.ts +11 -0
- package/dist/types/internal/domain/resources/entity/integrity.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/minifier.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/publisher.d.ts +24 -0
- package/dist/types/internal/domain/resources/entity/resource.d.ts +4 -0
- package/dist/types/internal/domain/resources/entity/resources.d.ts +40 -0
- package/dist/types/internal/domain/resources/entity/template.d.ts +4 -0
- package/dist/types/internal/domain/resources/factory/resource.d.ts +4 -0
- package/dist/types/internal/domain/site/entity/language.d.ts +55 -0
- package/dist/types/internal/domain/site/entity/menu-builder.d.ts +50 -0
- package/dist/types/internal/domain/site/entity/navigation.d.ts +8 -0
- package/dist/types/internal/domain/site/entity/page.d.ts +88 -0
- package/dist/types/internal/domain/site/entity/pagegraph.d.ts +85 -0
- package/dist/types/internal/domain/site/entity/pager.d.ts +6 -0
- package/dist/types/internal/domain/site/entity/publisher.d.ts +26 -0
- package/dist/types/internal/domain/site/entity/ref.d.ts +27 -0
- package/dist/types/internal/domain/site/entity/site.d.ts +178 -0
- package/dist/types/internal/domain/site/factory/navigation-factory.d.ts +6 -0
- package/dist/types/internal/domain/site/factory/site.d.ts +4 -0
- package/dist/types/internal/domain/site/service/html-link-processor.d.ts +44 -0
- package/dist/types/internal/domain/site/type.d.ts +100 -0
- package/dist/types/internal/domain/site/valueobject/author.d.ts +16 -0
- package/dist/types/internal/domain/site/valueobject/baseurl.d.ts +39 -0
- package/dist/types/internal/domain/site/valueobject/menu.d.ts +49 -0
- package/dist/types/internal/domain/site/valueobject/organization.d.ts +37 -0
- package/dist/types/internal/domain/site/valueobject/path.d.ts +50 -0
- package/dist/types/internal/domain/site/valueobject/version.d.ts +14 -0
- package/dist/types/internal/domain/template/entity/executor.d.ts +22 -0
- package/dist/types/internal/domain/template/entity/lookup.d.ts +55 -0
- package/dist/types/internal/domain/template/entity/parser.d.ts +40 -0
- package/dist/types/internal/domain/template/entity/template.d.ts +87 -0
- package/dist/types/internal/domain/template/factory/template.d.ts +61 -0
- package/dist/types/internal/domain/template/type.d.ts +109 -0
- package/dist/types/internal/domain/template/vo/baseof.d.ts +47 -0
- package/dist/types/internal/domain/template/vo/info.d.ts +28 -0
- package/dist/types/internal/domain/template/vo/namespace.d.ts +91 -0
- package/dist/types/internal/domain/template/vo/registry.d.ts +160 -0
- package/dist/types/internal/domain/wiki/entity/concept.d.ts +31 -0
- package/dist/types/internal/domain/wiki/entity/connection.d.ts +29 -0
- package/dist/types/internal/domain/wiki/entity/conversation.d.ts +65 -0
- package/dist/types/internal/domain/wiki/entity/embedding-index.d.ts +60 -0
- package/dist/types/internal/domain/wiki/entity/entity.d.ts +32 -0
- package/dist/types/internal/domain/wiki/entity/knowledge-base.d.ts +292 -0
- package/dist/types/internal/domain/wiki/entity/operation-log.d.ts +82 -0
- package/dist/types/internal/domain/wiki/factory/wiki-factory.d.ts +41 -0
- package/dist/types/internal/domain/wiki/index.d.ts +22 -0
- package/dist/types/internal/domain/wiki/repository/conversation-repository.interface.d.ts +29 -0
- package/dist/types/internal/domain/wiki/repository/crypto-service.d.ts +16 -0
- package/dist/types/internal/domain/wiki/repository/embedding-provider.d.ts +12 -0
- package/dist/types/internal/domain/wiki/repository/file-system.d.ts +43 -0
- package/dist/types/internal/domain/wiki/repository/index.d.ts +14 -0
- package/dist/types/internal/domain/wiki/repository/kb-repository.interface.d.ts +30 -0
- package/dist/types/internal/domain/wiki/repository/llm-http-client.d.ts +40 -0
- package/dist/types/internal/domain/wiki/repository/llm-provider.d.ts +34 -0
- package/dist/types/internal/domain/wiki/repository/path-service.d.ts +32 -0
- package/dist/types/internal/domain/wiki/repository/wiki-page-repository.interface.d.ts +49 -0
- package/dist/types/internal/domain/wiki/value-object/connection-type.d.ts +24 -0
- package/dist/types/internal/domain/wiki/value-object/content-annotator.d.ts +61 -0
- package/dist/types/internal/domain/wiki/value-object/entity-id.d.ts +17 -0
- package/dist/types/internal/domain/wiki/value-object/entity-type.d.ts +24 -0
- package/dist/types/internal/domain/wiki/value-object/extraction-parser.d.ts +27 -0
- package/dist/types/internal/domain/wiki/value-object/extraction-result.d.ts +32 -0
- package/dist/types/internal/domain/wiki/value-object/retrieval.d.ts +228 -0
- package/dist/types/internal/domain/wiki/value-object/source-record.d.ts +17 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-config.d.ts +40 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-index-generator.d.ts +31 -0
- package/dist/types/internal/domain/wiki/value-object/wiki-page-renderer.d.ts +42 -0
- package/dist/types/internal/domain/workspace/entity/authentication.d.ts +29 -0
- package/dist/types/internal/domain/workspace/entity/project.d.ts +173 -0
- package/dist/types/internal/domain/workspace/entity/workspace.d.ts +85 -0
- package/dist/types/internal/domain/workspace/factory/workspace-factory.d.ts +107 -0
- package/dist/types/internal/domain/workspace/repository/file-system.d.ts +241 -0
- package/dist/types/internal/domain/workspace/repository/index.d.ts +6 -0
- package/dist/types/internal/domain/workspace/repository.d.ts +72 -0
- package/dist/types/internal/domain/workspace/type.d.ts +18 -0
- package/dist/types/internal/domain/workspace/value-object/folder-structure.d.ts +41 -0
- package/dist/types/internal/domain/workspace/value-object/project-metadata.d.ts +36 -0
- package/dist/types/internal/domain/workspace/value-object/workspace-metadata.d.ts +7 -0
- package/dist/types/internal/infrastructure/embedding/embedding-provider.interface.d.ts +33 -0
- package/dist/types/internal/infrastructure/embedding/index.d.ts +5 -0
- package/dist/types/internal/infrastructure/embedding/ollama-embedding-provider.d.ts +24 -0
- package/dist/types/internal/infrastructure/http/netlify-http-client.d.ts +20 -0
- package/dist/types/internal/infrastructure/http/node-http-client.d.ts +3 -0
- package/dist/types/internal/infrastructure/index.d.ts +8 -0
- package/dist/types/internal/infrastructure/llm/fetch-http-client.d.ts +24 -0
- package/dist/types/internal/infrastructure/llm/index.d.ts +6 -0
- package/dist/types/internal/infrastructure/llm/llm-config.d.ts +80 -0
- package/dist/types/internal/infrastructure/llm/lmstudio-provider.d.ts +55 -0
- package/dist/types/internal/infrastructure/llm/node-llm-http-client.d.ts +21 -0
- package/dist/types/internal/infrastructure/llm/ollama-provider.d.ts +17 -0
- package/dist/types/internal/infrastructure/llm/openai-compatible-provider.d.ts +70 -0
- package/dist/types/internal/infrastructure/llm/provider-factory.d.ts +36 -0
- package/dist/types/internal/infrastructure/llm/provider.d.ts +77 -0
- package/dist/types/internal/infrastructure/node/index.d.ts +11 -0
- package/dist/types/internal/infrastructure/node/node-conversation-repository.d.ts +21 -0
- package/dist/types/internal/infrastructure/node/node-crypto-service.d.ts +10 -0
- package/dist/types/internal/infrastructure/node/node-file-system.d.ts +29 -0
- package/dist/types/internal/infrastructure/node/node-kb-repository.d.ts +18 -0
- package/dist/types/internal/infrastructure/node/node-path-service.d.ts +14 -0
- package/dist/types/internal/infrastructure/node/node-wiki-page-repository.d.ts +25 -0
- package/dist/types/internal/infrastructure/persistence/node-file-system.d.ts +8 -0
- package/dist/types/internal/infrastructure/persistence/node-manifest-repository.d.ts +31 -0
- package/dist/types/internal/infrastructure/persistence/node-snapshot-repository.d.ts +28 -0
- package/dist/types/internal/infrastructure/persistence/node-workspace-repository.d.ts +9 -0
- package/dist/types/pkg/cahce/cache.d.ts +56 -0
- package/dist/types/pkg/lang/data.d.ts +21 -0
- package/dist/types/pkg/lang/index.d.ts +46 -0
- package/dist/types/pkg/lang/service.d.ts +49 -0
- package/dist/types/pkg/lang/types.d.ts +29 -0
- package/dist/types/pkg/log/http.d.ts +16 -0
- package/dist/types/pkg/log/manager.d.ts +57 -0
- package/dist/types/pkg/maps/scratch.d.ts +25 -0
- package/dist/types/pkg/md/parser/item.d.ts +3 -3
- package/dist/types/pkg/media/type.d.ts +19 -0
- package/dist/types/pkg/page-filter/index.d.ts +29 -0
- package/dist/types/pkg/paths/index.d.ts +9 -0
- package/dist/types/pkg/text/index.d.ts +4 -0
- package/dist/types/pkg/web/server/livereload-server.d.ts +7 -0
- package/dist/types/pkg/web/watcher/content-file-watcher.d.ts +3 -0
- package/package.json +21 -15
- package/dist/types/index.d.ts +0 -20
- package/dist/types/internal/interfaces/obsidian/adapters/identity-adapter.d.ts +0 -5
- package/dist/types/internal/interfaces/obsidian/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/adapters/workspace-adapter.d.ts +0 -8
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/identity-adapter.d.ts +0 -6
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/desktop/adapters/workspace-adapter.d.ts +0 -12
- package/dist/types/internal/interfaces/obsidian/desktop/container.d.ts +0 -7
- package/dist/types/internal/interfaces/obsidian/desktop/index.d.ts +0 -22
- package/dist/types/internal/interfaces/obsidian/index.d.ts +0 -7
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/identity-adapter.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/index.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/mobile/adapters/workspace-adapter.d.ts +0 -13
- package/dist/types/internal/interfaces/obsidian/mobile/config-types.d.ts +0 -13
- package/dist/types/internal/interfaces/obsidian/mobile/container.d.ts +0 -6
- package/dist/types/internal/interfaces/obsidian/mobile/index.d.ts +0 -16
- package/dist/types/internal/interfaces/obsidian/mobile.d.ts +0 -2
- package/dist/types/internal/interfaces/obsidian/services/auth.service.d.ts +0 -11
- package/dist/types/internal/interfaces/obsidian/services/build.service.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/services/config.service.d.ts +0 -31
- package/dist/types/internal/interfaces/obsidian/services/domain.service.d.ts +0 -15
- package/dist/types/internal/interfaces/obsidian/services/license.service.d.ts +0 -22
- package/dist/types/internal/interfaces/obsidian/services/project.service.d.ts +0 -17
- package/dist/types/internal/interfaces/obsidian/services/publish.service.d.ts +0 -11
- package/dist/types/internal/interfaces/obsidian/services/serve.service.d.ts +0 -18
- package/dist/types/internal/interfaces/obsidian/services/workspace.service.d.ts +0 -10
- package/dist/types/internal/interfaces/obsidian/types/auth.d.ts +0 -27
- package/dist/types/internal/interfaces/obsidian/types/build.d.ts +0 -23
- package/dist/types/internal/interfaces/obsidian/types/config.d.ts +0 -16
- package/dist/types/internal/interfaces/obsidian/types/domain.d.ts +0 -46
- package/dist/types/internal/interfaces/obsidian/types/index.d.ts +0 -9
- package/dist/types/internal/interfaces/obsidian/types/license.d.ts +0 -87
- package/dist/types/internal/interfaces/obsidian/types/project.d.ts +0 -56
- package/dist/types/internal/interfaces/obsidian/types/publish.d.ts +0 -33
- package/dist/types/internal/interfaces/obsidian/types/serve.d.ts +0 -46
- package/dist/types/internal/interfaces/obsidian/types/workspace.d.ts +0 -27
- package/dist/types/pkg/log/browser-manager.d.ts +0 -20
- package/dist/types/pkg/log/browser.d.ts +0 -25
- package/dist/types/pkg/media/buildin.d.ts +0 -3
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { Module as IModule, Mount as IMount, Import, ModuleMetadata, Info } from '../type';
|
|
2
2
|
import { Fs } from '../../fs/type';
|
|
3
3
|
import { Mount } from './mount';
|
|
4
|
+
/**
|
|
5
|
+
* Module value object representing a downloaded module
|
|
6
|
+
* TypeScript version of Go's Module struct
|
|
7
|
+
*/
|
|
4
8
|
export declare class Module implements IModule {
|
|
5
9
|
private fs;
|
|
6
10
|
private absoluteDir;
|
|
@@ -11,35 +15,107 @@ export declare class Module implements IModule {
|
|
|
11
15
|
private isProject;
|
|
12
16
|
constructor(fs: Fs, absoluteDir: string, modulePath: string, parent?: Module | null, isProject?: boolean);
|
|
13
17
|
isProjectModule(): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Get module owner (parent)
|
|
20
|
+
*/
|
|
14
21
|
owner(): Module | null;
|
|
22
|
+
/**
|
|
23
|
+
* Get module mounts
|
|
24
|
+
*/
|
|
15
25
|
mounts(): IMount[];
|
|
26
|
+
/**
|
|
27
|
+
* Get module directory
|
|
28
|
+
*/
|
|
16
29
|
dir(): string;
|
|
30
|
+
/**
|
|
31
|
+
* Get module path
|
|
32
|
+
*/
|
|
17
33
|
path(): string;
|
|
34
|
+
/**
|
|
35
|
+
* Set module metadata
|
|
36
|
+
*/
|
|
18
37
|
setMetadata(metadata: ModuleMetadata): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get module metadata
|
|
40
|
+
*/
|
|
19
41
|
getMetadata(): ModuleMetadata | null;
|
|
42
|
+
/**
|
|
43
|
+
* Apply mounts from import configuration
|
|
44
|
+
*/
|
|
20
45
|
applyMounts(moduleImport: Import): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Add a mount
|
|
48
|
+
*/
|
|
21
49
|
appendMount(mount: Mount): void;
|
|
50
|
+
/**
|
|
51
|
+
* Remove a mount
|
|
52
|
+
*/
|
|
22
53
|
removeMount(mount: Mount): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* Get mount by target path
|
|
56
|
+
*/
|
|
23
57
|
getMountByTarget(targetPath: string): Mount | null;
|
|
58
|
+
/**
|
|
59
|
+
* Get mounts by component
|
|
60
|
+
*/
|
|
24
61
|
getMountsByComponent(component: string): Mount[];
|
|
62
|
+
/**
|
|
63
|
+
* Check if module is downloaded
|
|
64
|
+
*/
|
|
25
65
|
isDownloaded(): boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Check if module is being downloaded
|
|
68
|
+
*/
|
|
26
69
|
isDownloading(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Check if module download failed
|
|
72
|
+
*/
|
|
27
73
|
isDownloadFailed(): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Check if directory exists
|
|
76
|
+
*/
|
|
28
77
|
exists(): Promise<boolean>;
|
|
78
|
+
/**
|
|
79
|
+
* Create a copy of this module
|
|
80
|
+
*/
|
|
29
81
|
copy(): Module;
|
|
82
|
+
/**
|
|
83
|
+
* String representation
|
|
84
|
+
*/
|
|
30
85
|
toString(): string;
|
|
31
86
|
}
|
|
87
|
+
/**
|
|
88
|
+
* Project module - special module representing the main project
|
|
89
|
+
*/
|
|
32
90
|
export declare class ProjectModule {
|
|
33
91
|
private module;
|
|
34
92
|
constructor(module: Module);
|
|
93
|
+
/**
|
|
94
|
+
* Get the underlying module
|
|
95
|
+
*/
|
|
35
96
|
getModule(): Module;
|
|
97
|
+
/**
|
|
98
|
+
* Append mount to project module
|
|
99
|
+
*/
|
|
36
100
|
appendMount(mount: Mount): void;
|
|
37
101
|
setDefaultLanguage(lang: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Apply default project mounts
|
|
104
|
+
*/
|
|
38
105
|
applyDefaultMounts(): void;
|
|
106
|
+
/**
|
|
107
|
+
* Delegate methods to underlying module
|
|
108
|
+
*/
|
|
39
109
|
owner(): Module | null;
|
|
40
110
|
mounts(): IMount[];
|
|
41
111
|
dir(): string;
|
|
42
112
|
path(): string;
|
|
43
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* Creates a new Module instance
|
|
116
|
+
*/
|
|
44
117
|
export declare function newModule(fs: Fs, absoluteDir: string, modulePath: string, parent?: Module): Module;
|
|
118
|
+
/**
|
|
119
|
+
* Creates a new ProjectModule instance
|
|
120
|
+
*/
|
|
45
121
|
export declare function newProjectModule(info: Info): ProjectModule;
|
|
@@ -4,20 +4,59 @@ export declare class Mount implements IMount {
|
|
|
4
4
|
private targetPath;
|
|
5
5
|
private language;
|
|
6
6
|
constructor(sourcePath: string, targetPath: string, language?: string);
|
|
7
|
+
/**
|
|
8
|
+
* Get source path
|
|
9
|
+
*/
|
|
7
10
|
source(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Get target path
|
|
13
|
+
*/
|
|
8
14
|
target(): string;
|
|
15
|
+
/**
|
|
16
|
+
* Get language
|
|
17
|
+
*/
|
|
9
18
|
lang(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Set language
|
|
21
|
+
*/
|
|
10
22
|
setLanguage(lang: string): void;
|
|
23
|
+
/**
|
|
24
|
+
* Get component name from target path
|
|
25
|
+
*/
|
|
11
26
|
component(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Get component and name from target path
|
|
29
|
+
*/
|
|
12
30
|
componentAndName(): {
|
|
13
31
|
component: string;
|
|
14
32
|
name: string;
|
|
15
33
|
};
|
|
34
|
+
/**
|
|
35
|
+
* Create a copy of this mount
|
|
36
|
+
*/
|
|
16
37
|
copy(): Mount;
|
|
38
|
+
/**
|
|
39
|
+
* Check if this mount is equal to another
|
|
40
|
+
*/
|
|
17
41
|
equals(other: Mount): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Convert to plain object
|
|
44
|
+
*/
|
|
18
45
|
toConfig(): MountConfig;
|
|
46
|
+
/**
|
|
47
|
+
* String representation
|
|
48
|
+
*/
|
|
19
49
|
toString(): string;
|
|
20
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new Mount instance
|
|
53
|
+
*/
|
|
21
54
|
export declare function newMount(sourcePath: string, targetPath: string): Mount;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a Mount from config
|
|
57
|
+
*/
|
|
22
58
|
export declare function newMountFromConfig(config: MountConfig): Mount;
|
|
59
|
+
/**
|
|
60
|
+
* Creates default component mounts
|
|
61
|
+
*/
|
|
23
62
|
export declare function createDefaultMounts(componentFolders: readonly string[]): Mount[];
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme information from themes.json
|
|
3
|
+
* Represents a single theme available for download
|
|
4
|
+
*/
|
|
1
5
|
export interface ThemeInfo {
|
|
2
6
|
id: number;
|
|
3
7
|
name: string;
|
|
@@ -9,17 +13,51 @@ export interface ThemeInfo {
|
|
|
9
13
|
demo_notes_url: string;
|
|
10
14
|
tags: string[];
|
|
11
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* Collection of themes from themes.json
|
|
18
|
+
*/
|
|
12
19
|
export interface ThemesCollection {
|
|
13
20
|
themes: ThemeInfo[];
|
|
14
21
|
}
|
|
22
|
+
/**
|
|
23
|
+
* Themes Value Object
|
|
24
|
+
* Provides functionality to work with themes data from themes.json
|
|
25
|
+
*/
|
|
15
26
|
export declare class Themes {
|
|
16
27
|
private themes;
|
|
17
28
|
constructor(themes: ThemeInfo[]);
|
|
29
|
+
/**
|
|
30
|
+
* Create Themes instance from JSON data
|
|
31
|
+
*/
|
|
18
32
|
static fromJson(json: ThemeInfo[]): Themes;
|
|
33
|
+
/**
|
|
34
|
+
* Find theme by matching the base URL (without version parameter)
|
|
35
|
+
* @param targetUrl - The URL to match (e.g., "https://gohugo.net/base.zip?version=latest")
|
|
36
|
+
* @returns The matching theme info or null if not found
|
|
37
|
+
*/
|
|
19
38
|
findThemeByUrl(targetUrl: string): ThemeInfo | null;
|
|
39
|
+
/**
|
|
40
|
+
* Get the latest download URL for a given import path
|
|
41
|
+
* @param importPath - The import path with version=latest
|
|
42
|
+
* @returns The updated import path with the actual latest version, or the original path if not found
|
|
43
|
+
*/
|
|
20
44
|
resolveLatestVersion(importPath: string): string;
|
|
45
|
+
/**
|
|
46
|
+
* Extract base URL without version parameter
|
|
47
|
+
* @param url - Full URL with potential version parameter
|
|
48
|
+
* @returns Base URL without version parameter
|
|
49
|
+
*/
|
|
21
50
|
private extractBaseUrl;
|
|
51
|
+
/**
|
|
52
|
+
* Get all available themes
|
|
53
|
+
*/
|
|
22
54
|
getAllThemes(): ThemeInfo[];
|
|
55
|
+
/**
|
|
56
|
+
* Get theme by name
|
|
57
|
+
*/
|
|
23
58
|
getThemeByName(name: string): ThemeInfo | null;
|
|
59
|
+
/**
|
|
60
|
+
* Get themes by tag
|
|
61
|
+
*/
|
|
24
62
|
getThemesByTag(tag: string): ThemeInfo[];
|
|
25
63
|
}
|
|
@@ -1,25 +1,56 @@
|
|
|
1
1
|
import { ZipExtractor } from '../type';
|
|
2
2
|
import { Fs } from '@internal/domain/fs';
|
|
3
|
+
/**
|
|
4
|
+
* ZIP extractor implementation using JSZip
|
|
5
|
+
* Note: In a real implementation, you would use a library like JSZip or node-stream-zip
|
|
6
|
+
*/
|
|
3
7
|
export declare class JsZipExtractor implements ZipExtractor {
|
|
4
8
|
private fs;
|
|
5
9
|
constructor(fs: Fs);
|
|
10
|
+
/**
|
|
11
|
+
* Extract ZIP file to target directory
|
|
12
|
+
*/
|
|
6
13
|
extract(zipPath: string, targetDir: string): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* List contents of ZIP file
|
|
16
|
+
*/
|
|
7
17
|
list(zipPath: string): Promise<string[]>;
|
|
18
|
+
/**
|
|
19
|
+
* Real implementation of ZIP extraction using JSZip
|
|
20
|
+
*/
|
|
8
21
|
private extractZipData;
|
|
22
|
+
/**
|
|
23
|
+
* Extract a single ZIP entry (file or directory)
|
|
24
|
+
*/
|
|
9
25
|
private extractSingleEntry;
|
|
26
|
+
/**
|
|
27
|
+
* Real implementation of ZIP content listing using JSZip
|
|
28
|
+
*/
|
|
10
29
|
private listZipContents;
|
|
11
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* Browser-compatible ZIP extractor using Web APIs
|
|
33
|
+
*/
|
|
12
34
|
export declare class WebZipExtractor implements ZipExtractor {
|
|
13
35
|
private fs;
|
|
14
36
|
constructor(fs: Fs);
|
|
15
37
|
extract(zipPath: string, targetDir: string): Promise<void>;
|
|
16
38
|
list(zipPath: string): Promise<string[]>;
|
|
17
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Mock ZIP extractor for testing
|
|
42
|
+
*/
|
|
18
43
|
export declare class MockZipExtractor implements ZipExtractor {
|
|
19
44
|
private mockContents;
|
|
20
45
|
setMockContents(zipPath: string, contents: string[]): void;
|
|
21
46
|
extract(zipPath: string, targetDir: string): Promise<void>;
|
|
22
47
|
list(zipPath: string): Promise<string[]>;
|
|
23
48
|
}
|
|
49
|
+
/**
|
|
50
|
+
* Factory function to create appropriate ZIP extractor
|
|
51
|
+
*/
|
|
24
52
|
export declare function newZipExtractor(fs: Fs, environment?: 'node' | 'browser'): ZipExtractor;
|
|
53
|
+
/**
|
|
54
|
+
* Creates a mock ZIP extractor for testing
|
|
55
|
+
*/
|
|
25
56
|
export declare function newMockZipExtractor(): MockZipExtractor;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { Path as IPath, PathType } from '../type';
|
|
2
2
|
import { PathComponentsImpl } from '../vo/pathcomponents';
|
|
3
|
+
/**
|
|
4
|
+
* Path entity implementation
|
|
5
|
+
* Represents a parsed path with all its components and operations
|
|
6
|
+
*/
|
|
3
7
|
export declare class Path implements IPath {
|
|
4
8
|
private readonly components;
|
|
5
9
|
private _unnormalized?;
|
|
@@ -46,13 +50,37 @@ export declare class Path implements IPath {
|
|
|
46
50
|
private identifierIndex;
|
|
47
51
|
private escapeRegExp;
|
|
48
52
|
toString(): string;
|
|
53
|
+
/**
|
|
54
|
+
* Check if two paths are equal
|
|
55
|
+
*/
|
|
49
56
|
equals(other: IPath): boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Get a hash code for this path
|
|
59
|
+
*/
|
|
50
60
|
hashCode(): string;
|
|
51
61
|
}
|
|
62
|
+
/**
|
|
63
|
+
* Utility functions for working with Path instances
|
|
64
|
+
*/
|
|
52
65
|
export declare class PathUtils {
|
|
66
|
+
/**
|
|
67
|
+
* Create a path from string components
|
|
68
|
+
*/
|
|
53
69
|
static fromString(component: string, path: string): Path;
|
|
70
|
+
/**
|
|
71
|
+
* Check if a path has a specific extension
|
|
72
|
+
*/
|
|
54
73
|
static hasExtension(path: IPath, extension: string): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Check if child path is under parent path
|
|
76
|
+
*/
|
|
55
77
|
static isUnder(child: IPath, parent: IPath): boolean;
|
|
78
|
+
/**
|
|
79
|
+
* Get the relative path from one path to another
|
|
80
|
+
*/
|
|
56
81
|
static relativeTo(from: IPath, to: IPath): string;
|
|
82
|
+
/**
|
|
83
|
+
* Compare two paths for sorting
|
|
84
|
+
*/
|
|
57
85
|
static compare(a: IPath, b: IPath): number;
|
|
58
86
|
}
|
|
@@ -1,57 +1,139 @@
|
|
|
1
1
|
import { PathFactory, PathParserConfig, PathPool, Path as IPath, PathComponents } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* PathFactoryImpl implements the PathFactory interface
|
|
4
|
+
* Provides methods for creating Path instances
|
|
5
|
+
*/
|
|
2
6
|
export declare class PathFactoryImpl implements PathFactory {
|
|
3
7
|
private processor;
|
|
4
8
|
private pool?;
|
|
5
9
|
constructor(config?: PathParserConfig, pool?: PathPool);
|
|
10
|
+
/**
|
|
11
|
+
* Create a Path from component and path string
|
|
12
|
+
*/
|
|
6
13
|
create(component: string, path: string, config?: PathParserConfig): IPath;
|
|
14
|
+
/**
|
|
15
|
+
* Create a Path from PathComponents
|
|
16
|
+
*/
|
|
7
17
|
createFromComponents(components: PathComponents): IPath;
|
|
18
|
+
/**
|
|
19
|
+
* Create multiple paths from an array of path strings
|
|
20
|
+
*/
|
|
8
21
|
createMany(component: string, paths: string[], config?: PathParserConfig): IPath[];
|
|
22
|
+
/**
|
|
23
|
+
* Create a path with custom configuration
|
|
24
|
+
*/
|
|
9
25
|
createWithConfig(component: string, path: string, normalizeConfig?: {
|
|
10
26
|
toLowerCase?: boolean;
|
|
11
27
|
replaceSpaces?: boolean;
|
|
12
28
|
customNormalizer?: (path: string) => string;
|
|
13
29
|
}): IPath;
|
|
14
30
|
}
|
|
31
|
+
/**
|
|
32
|
+
* DefaultPathFactory provides a default configured path factory
|
|
33
|
+
*/
|
|
15
34
|
export declare class DefaultPathFactory extends PathFactoryImpl {
|
|
16
35
|
constructor();
|
|
17
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* SimplePathPool implements PathPool interface for basic object pooling
|
|
39
|
+
*/
|
|
18
40
|
export declare class SimplePathPool implements PathPool {
|
|
19
41
|
private pool;
|
|
20
42
|
private maxSize;
|
|
21
43
|
constructor(maxSize?: number);
|
|
22
44
|
get(): IPath;
|
|
23
45
|
put(path: IPath): void;
|
|
46
|
+
/**
|
|
47
|
+
* Clear all paths from the pool
|
|
48
|
+
*/
|
|
24
49
|
clear(): void;
|
|
50
|
+
/**
|
|
51
|
+
* Get current pool size
|
|
52
|
+
*/
|
|
25
53
|
size(): number;
|
|
26
54
|
}
|
|
55
|
+
/**
|
|
56
|
+
* PathBuilder provides a fluent interface for building paths
|
|
57
|
+
*/
|
|
27
58
|
export declare class PathBuilder {
|
|
28
59
|
private component;
|
|
29
60
|
private path;
|
|
30
61
|
private config;
|
|
31
62
|
private factory;
|
|
32
63
|
constructor(factory?: PathFactory);
|
|
64
|
+
/**
|
|
65
|
+
* Set the component
|
|
66
|
+
*/
|
|
33
67
|
withComponent(component: string): PathBuilder;
|
|
68
|
+
/**
|
|
69
|
+
* Set the path
|
|
70
|
+
*/
|
|
34
71
|
withPath(path: string): PathBuilder;
|
|
72
|
+
/**
|
|
73
|
+
* Enable/disable normalization
|
|
74
|
+
*/
|
|
35
75
|
withNormalization(normalize: boolean): PathBuilder;
|
|
76
|
+
/**
|
|
77
|
+
* Enable/disable space replacement
|
|
78
|
+
*/
|
|
36
79
|
withSpaceReplacement(replaceSpaces: boolean): PathBuilder;
|
|
80
|
+
/**
|
|
81
|
+
* Set custom normalizer
|
|
82
|
+
*/
|
|
37
83
|
withNormalizer(normalizer: (path: string) => string): PathBuilder;
|
|
84
|
+
/**
|
|
85
|
+
* Build the path
|
|
86
|
+
*/
|
|
38
87
|
build(): IPath;
|
|
88
|
+
/**
|
|
89
|
+
* Reset builder to initial state
|
|
90
|
+
*/
|
|
39
91
|
reset(): PathBuilder;
|
|
40
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* Static factory methods for common path creation scenarios
|
|
95
|
+
*/
|
|
41
96
|
export declare class PathFactoryUtils {
|
|
42
97
|
private static defaultFactory;
|
|
98
|
+
/**
|
|
99
|
+
* Create a content path
|
|
100
|
+
*/
|
|
43
101
|
static createContentPath(path: string): IPath;
|
|
102
|
+
/**
|
|
103
|
+
* Create a static resource path
|
|
104
|
+
*/
|
|
44
105
|
static createStaticPath(path: string): IPath;
|
|
106
|
+
/**
|
|
107
|
+
* Create a layout path
|
|
108
|
+
*/
|
|
45
109
|
static createLayoutPath(path: string): IPath;
|
|
110
|
+
/**
|
|
111
|
+
* Create an archetype path
|
|
112
|
+
*/
|
|
46
113
|
static createArchetypePath(path: string): IPath;
|
|
114
|
+
/**
|
|
115
|
+
* Create a data path
|
|
116
|
+
*/
|
|
47
117
|
static createDataPath(path: string): IPath;
|
|
118
|
+
/**
|
|
119
|
+
* Create a theme path
|
|
120
|
+
*/
|
|
48
121
|
static createThemePath(path: string): IPath;
|
|
122
|
+
/**
|
|
123
|
+
* Create paths from a configuration object
|
|
124
|
+
*/
|
|
49
125
|
static createFromConfig(config: {
|
|
50
126
|
component: string;
|
|
51
127
|
paths: string[];
|
|
52
128
|
normalize?: boolean;
|
|
53
129
|
replaceSpaces?: boolean;
|
|
54
130
|
}): IPath[];
|
|
131
|
+
/**
|
|
132
|
+
* Get a path builder instance
|
|
133
|
+
*/
|
|
55
134
|
static builder(): PathBuilder;
|
|
135
|
+
/**
|
|
136
|
+
* Create a path with pooling
|
|
137
|
+
*/
|
|
56
138
|
static createWithPool(component: string, path: string, pool: PathPool): IPath;
|
|
57
139
|
}
|