@mdfriday/foundry 26.4.20 → 26.5.2
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 +236 -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 +310 -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 +24 -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 +20 -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 +40 -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/pricing.d.ts +64 -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/token-usage.d.ts +26 -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 +36 -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 +71 -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 +22 -0
- package/dist/types/internal/infrastructure/llm/openai-compatible-provider.d.ts +75 -0
- package/dist/types/internal/infrastructure/llm/provider-factory.d.ts +36 -0
- package/dist/types/internal/infrastructure/llm/provider.d.ts +90 -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
|
@@ -2,20 +2,61 @@ import { File as IFile, Fs } from '../type';
|
|
|
2
2
|
import { FileMeta } from './filemeta';
|
|
3
3
|
import { FileInfo } from './fileinfo';
|
|
4
4
|
import { File } from './file';
|
|
5
|
+
/**
|
|
6
|
+
* DirOpener function type for opening virtual directories
|
|
7
|
+
* TypeScript version of Go's DirOpener func
|
|
8
|
+
*/
|
|
5
9
|
export type DirOpener = () => Promise<FileInfo[]>;
|
|
10
|
+
/**
|
|
11
|
+
* Filter function type for filtering directory entries
|
|
12
|
+
*/
|
|
6
13
|
export type DirFilter = (entries: FileInfo[]) => Promise<FileInfo[]>;
|
|
14
|
+
/**
|
|
15
|
+
* DirFile represents a directory file with virtual directory support
|
|
16
|
+
* TypeScript version of Go's DirFile struct
|
|
17
|
+
*/
|
|
7
18
|
export declare class DirFile extends File {
|
|
8
19
|
private virtualOpener;
|
|
9
20
|
private filter;
|
|
10
21
|
constructor(file: File, virtualOpener?: DirOpener | null, filter?: DirFilter | null);
|
|
22
|
+
/**
|
|
23
|
+
* ReadDir reads directory entries, supporting both real and virtual directories
|
|
24
|
+
*/
|
|
11
25
|
readDir(count: number): Promise<FileInfo[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Read virtual directory entries
|
|
28
|
+
*/
|
|
12
29
|
private readVirtualDir;
|
|
30
|
+
/**
|
|
31
|
+
* Set the filter function
|
|
32
|
+
*/
|
|
13
33
|
setFilter(filter: DirFilter): void;
|
|
34
|
+
/**
|
|
35
|
+
* Set the virtual opener function
|
|
36
|
+
*/
|
|
14
37
|
setVirtualOpener(opener: DirOpener): void;
|
|
38
|
+
/**
|
|
39
|
+
* Get the filter function
|
|
40
|
+
*/
|
|
15
41
|
getFilter(): DirFilter | null;
|
|
42
|
+
/**
|
|
43
|
+
* Get the virtual opener function
|
|
44
|
+
*/
|
|
16
45
|
getVirtualOpener(): DirOpener | null;
|
|
17
46
|
}
|
|
47
|
+
/**
|
|
48
|
+
* Creates a new DirFile with virtual opener
|
|
49
|
+
*/
|
|
18
50
|
export declare function newDirFileWithVirtualOpener(file: File, opener: DirOpener): DirFile;
|
|
51
|
+
/**
|
|
52
|
+
* Creates a new DirFile from file components
|
|
53
|
+
*/
|
|
19
54
|
export declare function newDirFile(file: IFile, meta: FileMeta, fs: Fs): DirFile;
|
|
55
|
+
/**
|
|
56
|
+
* Creates a new DirFile with filter
|
|
57
|
+
*/
|
|
20
58
|
export declare function newDirFileWithFilter(file: File, filter: DirFilter): DirFile;
|
|
59
|
+
/**
|
|
60
|
+
* Creates a new DirFile with both virtual opener and filter
|
|
61
|
+
*/
|
|
21
62
|
export declare function newDirFileWithOpenerAndFilter(file: File, opener: DirOpener, filter: DirFilter): DirFile;
|
|
@@ -1,16 +1,35 @@
|
|
|
1
1
|
import { File as IFile, Fs, FileInfo as IFileInfo } from '../type';
|
|
2
2
|
import { FileMeta } from './filemeta';
|
|
3
3
|
import { FileInfo } from './fileinfo';
|
|
4
|
+
/**
|
|
5
|
+
* File represents a file with metadata
|
|
6
|
+
* TypeScript version of Go's File struct
|
|
7
|
+
*/
|
|
4
8
|
export declare class File implements IFile {
|
|
5
9
|
private readonly file;
|
|
6
10
|
private readonly fileMeta;
|
|
7
11
|
private fs;
|
|
8
12
|
private readonly _isDir;
|
|
9
13
|
constructor(file: IFile | null, fileMeta: FileMeta, fs: Fs, isDir?: boolean);
|
|
14
|
+
/**
|
|
15
|
+
* Check if this is a no-op file (null file)
|
|
16
|
+
*/
|
|
10
17
|
isNop(): boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Close the file
|
|
20
|
+
*/
|
|
11
21
|
close(): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* ReadDir reads directory entries
|
|
24
|
+
*/
|
|
12
25
|
readDir(count: number): Promise<FileInfo[]>;
|
|
26
|
+
/**
|
|
27
|
+
* Get the file metadata
|
|
28
|
+
*/
|
|
13
29
|
meta(): FileMeta;
|
|
30
|
+
/**
|
|
31
|
+
* Simple path join implementation
|
|
32
|
+
*/
|
|
14
33
|
private joinPath;
|
|
15
34
|
read(buffer: Uint8Array): Promise<{
|
|
16
35
|
bytesRead: number;
|
|
@@ -39,7 +58,16 @@ export declare class File implements IFile {
|
|
|
39
58
|
bytesWritten: number;
|
|
40
59
|
}>;
|
|
41
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Creates a new File instance
|
|
63
|
+
*/
|
|
42
64
|
export declare function newFile(file: IFile, filename: string, fs: Fs): File;
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new File with existing FileMeta
|
|
67
|
+
*/
|
|
43
68
|
export declare function newFileWithMeta(file: IFile, meta: FileMeta, fs: Fs): File;
|
|
44
69
|
export declare function newDirFileWithMeta(file: IFile, meta: FileMeta, fs: Fs): File;
|
|
70
|
+
/**
|
|
71
|
+
* Creates a new directory File
|
|
72
|
+
*/
|
|
45
73
|
export declare function newDirFile(file: IFile, filename: string, fs: Fs): File;
|
|
@@ -1,12 +1,29 @@
|
|
|
1
1
|
import { FileInfo as IFileInfo, FileMetaInfo, File } from '../type';
|
|
2
2
|
import { FileMeta } from './filemeta';
|
|
3
|
+
/**
|
|
4
|
+
* FileInfo represents file information with metadata
|
|
5
|
+
* TypeScript version of Go's FileInfo struct
|
|
6
|
+
* Implements FileMetaInfo interface
|
|
7
|
+
*/
|
|
3
8
|
export declare class FileInfo implements FileMetaInfo {
|
|
4
9
|
private readonly fileInfo;
|
|
5
10
|
private _fileMeta;
|
|
6
11
|
constructor(fileInfo: IFileInfo, fileMeta: FileMeta);
|
|
12
|
+
/**
|
|
13
|
+
* Meta returns the FileMeta
|
|
14
|
+
*/
|
|
7
15
|
meta(): FileMeta;
|
|
16
|
+
/**
|
|
17
|
+
* Type returns the file mode
|
|
18
|
+
*/
|
|
8
19
|
type(): number;
|
|
20
|
+
/**
|
|
21
|
+
* Info returns the underlying FileInfo
|
|
22
|
+
*/
|
|
9
23
|
info(): IFileInfo;
|
|
24
|
+
/**
|
|
25
|
+
* Set the FileMeta
|
|
26
|
+
*/
|
|
10
27
|
setMeta(meta: FileMeta): void;
|
|
11
28
|
name(): string;
|
|
12
29
|
size(): number;
|
|
@@ -20,5 +37,11 @@ export declare class FileInfo implements FileMetaInfo {
|
|
|
20
37
|
root(): string;
|
|
21
38
|
open(): Promise<File>;
|
|
22
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Creates a new FileInfo instance
|
|
42
|
+
*/
|
|
23
43
|
export declare function newFileInfo(fi: IFileInfo, filename: string): FileInfo;
|
|
44
|
+
/**
|
|
45
|
+
* Creates a new FileInfo instance with FileMeta
|
|
46
|
+
*/
|
|
24
47
|
export declare function newFileInfoWithMeta(fi: IFileInfo, meta: FileMeta): FileInfo;
|
|
@@ -1,23 +1,68 @@
|
|
|
1
1
|
import { File } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* FileOpener function type for opening files
|
|
4
|
+
* TypeScript version of Go's FileOpener func
|
|
5
|
+
*/
|
|
2
6
|
export type FileOpener = () => Promise<File>;
|
|
7
|
+
/**
|
|
8
|
+
* MetaProvider interface for objects that can provide FileMeta
|
|
9
|
+
*/
|
|
3
10
|
export interface MetaProvider {
|
|
4
11
|
meta(): FileMeta;
|
|
5
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* FileMeta represents file metadata
|
|
15
|
+
* Simplified TypeScript version of Go's FileMeta struct
|
|
16
|
+
*/
|
|
6
17
|
export declare class FileMeta {
|
|
7
18
|
private filename;
|
|
8
19
|
private componentRoot;
|
|
9
20
|
private componentDir;
|
|
10
21
|
private openFunc;
|
|
11
22
|
constructor(filename?: string, openFunc?: FileOpener | null);
|
|
23
|
+
/**
|
|
24
|
+
* FileName returns the filename
|
|
25
|
+
*/
|
|
12
26
|
fileName(): string;
|
|
27
|
+
/**
|
|
28
|
+
* RelativeFilename returns the relative filename from root
|
|
29
|
+
*/
|
|
13
30
|
relativeFilename(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Component returns the component directory
|
|
33
|
+
*/
|
|
14
34
|
component(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Root returns the component root
|
|
37
|
+
*/
|
|
15
38
|
root(): string;
|
|
39
|
+
/**
|
|
40
|
+
* Open opens the file using the OpenFunc
|
|
41
|
+
*/
|
|
16
42
|
open(): Promise<File>;
|
|
43
|
+
/**
|
|
44
|
+
* Set the filename
|
|
45
|
+
*/
|
|
17
46
|
setFileName(filename: string): void;
|
|
47
|
+
/**
|
|
48
|
+
* Set the component root
|
|
49
|
+
*/
|
|
18
50
|
setComponentRoot(root: string): void;
|
|
51
|
+
/**
|
|
52
|
+
* Set the component directory
|
|
53
|
+
*/
|
|
19
54
|
setComponentDir(dir: string): void;
|
|
55
|
+
/**
|
|
56
|
+
* Set the open function
|
|
57
|
+
*/
|
|
20
58
|
setOpenFunc(openFunc: FileOpener): void;
|
|
59
|
+
/**
|
|
60
|
+
* Merge merges another FileMeta into this one
|
|
61
|
+
* Only copies non-empty values
|
|
62
|
+
*/
|
|
21
63
|
merge(from: FileMeta): void;
|
|
22
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Creates a new FileMeta instance
|
|
67
|
+
*/
|
|
23
68
|
export declare function newFileMeta(filename?: string, openFunc?: FileOpener): FileMeta;
|
|
@@ -1,13 +1,24 @@
|
|
|
1
1
|
import { Fs as IFs } from '../type';
|
|
2
2
|
import { OverlayFs } from '../entity/overlayfs';
|
|
3
3
|
import { Modules } from '../../module';
|
|
4
|
+
/**
|
|
5
|
+
* RootMapping represents a filesystem mount mapping
|
|
6
|
+
* TypeScript version of Go's RootMapping
|
|
7
|
+
*/
|
|
4
8
|
export declare class RootMapping {
|
|
5
9
|
readonly from: string;
|
|
6
10
|
readonly to: string;
|
|
7
11
|
readonly toBase: string;
|
|
8
12
|
constructor(from: string, to: string, toBase?: string);
|
|
13
|
+
/**
|
|
14
|
+
* Create a filesystem for this mapping
|
|
15
|
+
*/
|
|
9
16
|
fs(sourceProject: IFs): IFs;
|
|
10
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* FilesystemsCollector value object
|
|
20
|
+
* TypeScript version of Go's FilesystemsCollector
|
|
21
|
+
*/
|
|
11
22
|
export declare class FilesystemsCollector {
|
|
12
23
|
readonly sourceProject: IFs;
|
|
13
24
|
overlayMountsPrompt: OverlayFs;
|
|
@@ -18,6 +29,9 @@ export declare class FilesystemsCollector {
|
|
|
18
29
|
overlayMountsAssets: OverlayFs;
|
|
19
30
|
overlayMountsI18n: OverlayFs;
|
|
20
31
|
constructor(sourceProject: IFs);
|
|
32
|
+
/**
|
|
33
|
+
* Collect filesystem mounts from modules
|
|
34
|
+
*/
|
|
21
35
|
collect(mods: Modules): Promise<void>;
|
|
22
36
|
private isPrompts;
|
|
23
37
|
private isWorkflows;
|
|
@@ -28,4 +42,7 @@ export declare class FilesystemsCollector {
|
|
|
28
42
|
private isI18n;
|
|
29
43
|
private absPathify;
|
|
30
44
|
}
|
|
45
|
+
/**
|
|
46
|
+
* Create new FilesystemsCollector
|
|
47
|
+
*/
|
|
31
48
|
export declare function newFilesystemsCollector(sourceProject: IFs): FilesystemsCollector;
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { FileInfo } from "@internal/domain/fs/vo/fileinfo";
|
|
2
|
+
/**
|
|
3
|
+
* Creates a new FileInfo instance with virtual file using filename
|
|
4
|
+
* TypeScript equivalent of Go's NewFileInfoWithName
|
|
5
|
+
*/
|
|
2
6
|
export declare function newFileInfoWithName(filename: string): FileInfo;
|
|
7
|
+
/**
|
|
8
|
+
* Creates a new FileInfo instance with virtual file using content
|
|
9
|
+
* TypeScript equivalent of Go's NewFileInfoWithContent
|
|
10
|
+
*/
|
|
3
11
|
export declare function newFileInfoWithContent(content: string): FileInfo;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Stats } from 'fs';
|
|
2
2
|
import { File, FileInfo, Fs } from '../type';
|
|
3
|
+
/**
|
|
4
|
+
* OsFileInfo implements FileInfo for Node.js fs.Stats
|
|
5
|
+
*/
|
|
3
6
|
export declare class OsFileInfo implements FileInfo {
|
|
4
7
|
private stats;
|
|
5
8
|
private _name;
|
|
@@ -11,6 +14,9 @@ export declare class OsFileInfo implements FileInfo {
|
|
|
11
14
|
isDir(): boolean;
|
|
12
15
|
sys(): any;
|
|
13
16
|
}
|
|
17
|
+
/**
|
|
18
|
+
* OsFile implements File for Node.js file handles
|
|
19
|
+
*/
|
|
14
20
|
export declare class OsFile implements File {
|
|
15
21
|
private filePath;
|
|
16
22
|
private flags;
|
|
@@ -47,6 +53,9 @@ export declare class OsFile implements File {
|
|
|
47
53
|
bytesWritten: number;
|
|
48
54
|
}>;
|
|
49
55
|
}
|
|
56
|
+
/**
|
|
57
|
+
* OsFs implements Fs for Node.js file system operations
|
|
58
|
+
*/
|
|
50
59
|
export declare class OsFs implements Fs {
|
|
51
60
|
create(name: string): Promise<File>;
|
|
52
61
|
mkdir(name: string, perm: number): Promise<void>;
|
|
@@ -62,4 +71,7 @@ export declare class OsFs implements Fs {
|
|
|
62
71
|
chown(name: string, uid: number, gid: number): Promise<void>;
|
|
63
72
|
chtimes(name: string, atime: Date, mtime: Date): Promise<void>;
|
|
64
73
|
}
|
|
74
|
+
/**
|
|
75
|
+
* Create a new OsFs instance
|
|
76
|
+
*/
|
|
65
77
|
export declare function newOsFs(): OsFs;
|
|
@@ -2,6 +2,10 @@ import { OriginFs } from '../entity/originfs';
|
|
|
2
2
|
import { FilesystemsCollector } from '@internal/domain/fs';
|
|
3
3
|
import { Modules } from '../../module';
|
|
4
4
|
export declare function createMainOverlayFs(ofs: OriginFs, mods: Modules): Promise<FilesystemsCollector>;
|
|
5
|
+
/**
|
|
6
|
+
* Create OriginFs from workspace
|
|
7
|
+
* TypeScript version of Go's NewOriginFs function
|
|
8
|
+
*/
|
|
5
9
|
export declare function createOriginFs(workspace: {
|
|
6
10
|
path: string;
|
|
7
11
|
publish: string;
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { Fs, OverlayFsOptions, DirsMerger } from '../type';
|
|
2
2
|
import { OverlayFs } from '../entity/overlayfs';
|
|
3
|
+
/**
|
|
4
|
+
* OverlayFs factory interface
|
|
5
|
+
*/
|
|
3
6
|
export interface OverlayFsFactory {
|
|
4
7
|
create(fss: Fs[]): OverlayFs;
|
|
5
8
|
createWithOptions(options: OverlayFsOptions): OverlayFs;
|
|
@@ -7,23 +10,62 @@ export interface OverlayFsFactory {
|
|
|
7
10
|
createWritable(fss: Fs[]): OverlayFs;
|
|
8
11
|
createWithMerger(fss: Fs[], merger: DirsMerger): OverlayFs;
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* OverlayFs factory implementation
|
|
15
|
+
*/
|
|
10
16
|
export declare class Factory implements OverlayFsFactory {
|
|
17
|
+
/**
|
|
18
|
+
* Create overlay filesystem with default settings
|
|
19
|
+
*/
|
|
11
20
|
create(fss: Fs[]): OverlayFs;
|
|
21
|
+
/**
|
|
22
|
+
* Create overlay filesystem with custom options
|
|
23
|
+
*/
|
|
12
24
|
createWithOptions(options: OverlayFsOptions): OverlayFs;
|
|
25
|
+
/**
|
|
26
|
+
* Create read-only overlay filesystem
|
|
27
|
+
*/
|
|
13
28
|
createReadOnly(fss: Fs[]): OverlayFs;
|
|
29
|
+
/**
|
|
30
|
+
* Create writable overlay filesystem (first filesystem is writable)
|
|
31
|
+
*/
|
|
14
32
|
createWritable(fss: Fs[]): OverlayFs;
|
|
33
|
+
/**
|
|
34
|
+
* Create overlay filesystem with custom directory merger
|
|
35
|
+
*/
|
|
15
36
|
createWithMerger(fss: Fs[], merger: DirsMerger): OverlayFs;
|
|
16
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Create new OverlayFs factory
|
|
40
|
+
*/
|
|
17
41
|
export declare function newOverlayFsFactory(): Factory;
|
|
42
|
+
/**
|
|
43
|
+
* Convenience function to create overlay filesystem
|
|
44
|
+
*/
|
|
18
45
|
export declare function createOverlayFileSystem(fss: Fs[], options?: {
|
|
19
46
|
firstWritable?: boolean;
|
|
20
47
|
dirsMerger?: DirsMerger;
|
|
21
48
|
}): OverlayFs;
|
|
49
|
+
/**
|
|
50
|
+
* Create read-only overlay filesystem (convenience function)
|
|
51
|
+
*/
|
|
22
52
|
export declare function createReadOnlyOverlayFs(fss: Fs[]): OverlayFs;
|
|
53
|
+
/**
|
|
54
|
+
* Create writable overlay filesystem (convenience function)
|
|
55
|
+
*/
|
|
23
56
|
export declare function createWritableOverlayFs(fss: Fs[], dirsMerger?: DirsMerger): OverlayFs;
|
|
57
|
+
/**
|
|
58
|
+
* Append filesystems to existing overlay (convenience function)
|
|
59
|
+
*/
|
|
24
60
|
export declare function appendToOverlayFs(overlayFs: OverlayFs, ...fss: Fs[]): OverlayFs;
|
|
61
|
+
/**
|
|
62
|
+
* Create overlay filesystem from array of filesystem pairs
|
|
63
|
+
*/
|
|
25
64
|
export declare function createOverlayFromPairs(pairs: Array<{
|
|
26
65
|
fs: Fs;
|
|
27
66
|
priority: number;
|
|
28
67
|
}>): OverlayFs;
|
|
68
|
+
/**
|
|
69
|
+
* Create multilayer overlay filesystem
|
|
70
|
+
*/
|
|
29
71
|
export declare function createMultilayerOverlayFs(readOnlyLayers: Fs[], writableLayer?: Fs, dirsMerger?: DirsMerger): OverlayFs;
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import { Fs, DirsMerger, OverlayFsOptions } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Default directory merger implementation
|
|
4
|
+
* TypeScript version of Go's defaultDirMerger
|
|
5
|
+
*/
|
|
2
6
|
export declare const defaultDirMerger: DirsMerger;
|
|
7
|
+
/**
|
|
8
|
+
* OverlayFs options value object
|
|
9
|
+
* TypeScript version of Go's Options struct
|
|
10
|
+
*/
|
|
3
11
|
export declare class OverlayOptions implements OverlayFsOptions {
|
|
4
12
|
readonly fss: Fs[];
|
|
5
13
|
readonly firstWritable: boolean;
|
|
@@ -9,16 +17,52 @@ export declare class OverlayOptions implements OverlayFsOptions {
|
|
|
9
17
|
firstWritable?: boolean;
|
|
10
18
|
dirsMerger?: DirsMerger;
|
|
11
19
|
});
|
|
20
|
+
/**
|
|
21
|
+
* Create new options with additional filesystems
|
|
22
|
+
*/
|
|
12
23
|
withFilesystems(...additionalFss: Fs[]): OverlayOptions;
|
|
24
|
+
/**
|
|
25
|
+
* Create new options with different writability
|
|
26
|
+
*/
|
|
13
27
|
withFirstWritable(writable: boolean): OverlayOptions;
|
|
28
|
+
/**
|
|
29
|
+
* Create new options with different directory merger
|
|
30
|
+
*/
|
|
14
31
|
withDirsMerger(merger: DirsMerger): OverlayOptions;
|
|
32
|
+
/**
|
|
33
|
+
* Get writable filesystem (first if firstWritable is true)
|
|
34
|
+
*/
|
|
15
35
|
getWritableFs(): Fs | null;
|
|
36
|
+
/**
|
|
37
|
+
* Validate options
|
|
38
|
+
*/
|
|
16
39
|
isValid(): boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Get filesystem count
|
|
42
|
+
*/
|
|
17
43
|
getFilesystemCount(): number;
|
|
44
|
+
/**
|
|
45
|
+
* Get filesystem by index
|
|
46
|
+
*/
|
|
18
47
|
getFilesystem(index: number): Fs | null;
|
|
48
|
+
/**
|
|
49
|
+
* Check if filesystem exists in overlay
|
|
50
|
+
*/
|
|
19
51
|
hasFilesystem(fs: Fs): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Get all filesystems as readonly array
|
|
54
|
+
*/
|
|
20
55
|
getFilesystems(): readonly Fs[];
|
|
21
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Factory function to create OverlayOptions
|
|
59
|
+
*/
|
|
22
60
|
export declare function newOverlayOptions(fss: Fs[], firstWritable?: boolean, dirsMerger?: DirsMerger): OverlayOptions;
|
|
61
|
+
/**
|
|
62
|
+
* Create overlay options with default settings
|
|
63
|
+
*/
|
|
23
64
|
export declare function createDefaultOverlayOptions(fss: Fs[]): OverlayOptions;
|
|
65
|
+
/**
|
|
66
|
+
* Create overlay options for read-write scenario
|
|
67
|
+
*/
|
|
24
68
|
export declare function createWritableOverlayOptions(fss: Fs[], dirsMerger?: DirsMerger): OverlayOptions;
|
|
@@ -4,11 +4,33 @@ export declare class StaticCopier {
|
|
|
4
4
|
private readonly toFs;
|
|
5
5
|
constructor(froms: IFs[], to: IFs);
|
|
6
6
|
copy(): Promise<void>;
|
|
7
|
+
/**
|
|
8
|
+
* Execute function with publish directories
|
|
9
|
+
*/
|
|
7
10
|
private doWithPublishDirs;
|
|
11
|
+
/**
|
|
12
|
+
* Copy static files from source to target directory
|
|
13
|
+
* TypeScript equivalent of Go's copyStaticTo
|
|
14
|
+
*/
|
|
8
15
|
private copyStaticTo;
|
|
16
|
+
/**
|
|
17
|
+
* Walk source files and copy them
|
|
18
|
+
*/
|
|
9
19
|
private walkSourceFiles;
|
|
20
|
+
/**
|
|
21
|
+
* Walk filesystem recursively
|
|
22
|
+
*/
|
|
10
23
|
private walkFileSystem;
|
|
24
|
+
/**
|
|
25
|
+
* Copy a single file from source to target
|
|
26
|
+
*/
|
|
11
27
|
private copyFile;
|
|
28
|
+
/**
|
|
29
|
+
* Join path components
|
|
30
|
+
*/
|
|
12
31
|
private joinPath;
|
|
32
|
+
/**
|
|
33
|
+
* Get directory name from path
|
|
34
|
+
*/
|
|
13
35
|
private dirname;
|
|
14
36
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import { Fs, WalkCallback, WalkwayConfig } from '../type';
|
|
2
|
+
/**
|
|
3
|
+
* Walkway represents a filesystem walker
|
|
4
|
+
* TypeScript version of Go's Walkway struct
|
|
5
|
+
*/
|
|
2
6
|
export declare class Walkway {
|
|
3
7
|
private fs;
|
|
4
8
|
private root;
|
|
@@ -6,10 +10,28 @@ export declare class Walkway {
|
|
|
6
10
|
private cfg;
|
|
7
11
|
private walked;
|
|
8
12
|
constructor(fs: Fs, cb: WalkCallback);
|
|
13
|
+
/**
|
|
14
|
+
* WalkWith performs walk with specified root and configuration
|
|
15
|
+
*/
|
|
9
16
|
walkWith(root: string, cfg: WalkwayConfig): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Walk performs the filesystem walk
|
|
19
|
+
*/
|
|
10
20
|
walk(): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Check if error should be handled gracefully
|
|
23
|
+
*/
|
|
11
24
|
private checkErr;
|
|
25
|
+
/**
|
|
26
|
+
* Check if error is a "not exist" error
|
|
27
|
+
*/
|
|
12
28
|
private isNotExistError;
|
|
29
|
+
/**
|
|
30
|
+
* Walk recursively descends path, calling walkFn
|
|
31
|
+
*/
|
|
13
32
|
private walkRecursive;
|
|
14
33
|
}
|
|
34
|
+
/**
|
|
35
|
+
* Creates a new Walkway instance
|
|
36
|
+
*/
|
|
15
37
|
export declare function newWalkway(fs: Fs, cb: WalkCallback): Walkway;
|
|
@@ -3,53 +3,153 @@ import { Token } from '../value-object/token';
|
|
|
3
3
|
import { ServerConfig } from '../value-object/server-config';
|
|
4
4
|
import { License } from '../value-object/license';
|
|
5
5
|
import { SyncConfig } from '../value-object/sync-config';
|
|
6
|
+
/**
|
|
7
|
+
* User Status - 用户状态信息
|
|
8
|
+
*
|
|
9
|
+
* 包含认证、许可证和同步配置的完整状态
|
|
10
|
+
*/
|
|
6
11
|
export interface UserStatus {
|
|
12
|
+
/** 是否已认证 */
|
|
7
13
|
isAuthenticated: boolean;
|
|
14
|
+
/** 用户邮箱 */
|
|
8
15
|
email: string;
|
|
16
|
+
/** 服务器 URL */
|
|
9
17
|
serverUrl: string;
|
|
18
|
+
/** Token 是否过期 */
|
|
10
19
|
tokenExpired: boolean;
|
|
20
|
+
/** 是否有 Token */
|
|
11
21
|
hasToken: boolean;
|
|
22
|
+
/** 是否有 License */
|
|
12
23
|
hasLicense: boolean;
|
|
24
|
+
/** License Key */
|
|
13
25
|
license?: string | undefined;
|
|
26
|
+
/** License 是否有效 */
|
|
14
27
|
licenseValid: boolean;
|
|
28
|
+
/** 是否为试用账号 */
|
|
15
29
|
isTrial: boolean;
|
|
30
|
+
/** License 计划类型 */
|
|
16
31
|
licensePlan?: string | undefined;
|
|
32
|
+
/** License 过期时间(格式化) */
|
|
17
33
|
licenseExpires?: string | undefined;
|
|
34
|
+
/** License 剩余天数 */
|
|
18
35
|
licenseDaysRemaining?: number | undefined;
|
|
36
|
+
/** 是否有 Sync 配置 */
|
|
19
37
|
hasSyncConfig: boolean;
|
|
38
|
+
/** Sync 配置信息 */
|
|
20
39
|
syncConfig?: {
|
|
40
|
+
/** 数据库端点 */
|
|
21
41
|
dbEndpoint: string;
|
|
42
|
+
/** 数据库名称 */
|
|
22
43
|
dbName: string;
|
|
44
|
+
/** 邮箱 */
|
|
23
45
|
email: string;
|
|
46
|
+
/** 用户目录 */
|
|
24
47
|
userDir: string;
|
|
48
|
+
/** Sync 状态 */
|
|
25
49
|
status: string;
|
|
50
|
+
/** Sync 是否激活 */
|
|
26
51
|
isActive: boolean;
|
|
27
52
|
} | undefined;
|
|
28
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* User Entity (Aggregate Root)
|
|
56
|
+
*
|
|
57
|
+
* 用户聚合根,管理用户认证信息和 License
|
|
58
|
+
*
|
|
59
|
+
* 职责:
|
|
60
|
+
* - 管理用户身份信息(email)
|
|
61
|
+
* - 管理认证令牌(token)
|
|
62
|
+
* - 管理服务器配置(serverConfig)
|
|
63
|
+
* - 管理用户 License(license)
|
|
64
|
+
* - 管理同步配置(syncConfig)
|
|
65
|
+
* - 提供认证状态查询
|
|
66
|
+
*/
|
|
29
67
|
export declare class User {
|
|
30
68
|
private readonly email;
|
|
31
69
|
private token;
|
|
32
70
|
private serverConfig;
|
|
33
71
|
private license;
|
|
34
72
|
private syncConfig;
|
|
73
|
+
/**
|
|
74
|
+
* 构造函数(私有,通过 Factory 创建)
|
|
75
|
+
*/
|
|
35
76
|
constructor(email: Email, token: Token | null, serverConfig: ServerConfig, license?: License | null, syncConfig?: SyncConfig | null);
|
|
77
|
+
/**
|
|
78
|
+
* 获取用户邮箱
|
|
79
|
+
*/
|
|
36
80
|
getEmail(): Email;
|
|
81
|
+
/**
|
|
82
|
+
* 获取认证令牌
|
|
83
|
+
*/
|
|
37
84
|
getToken(): Token | null;
|
|
85
|
+
/**
|
|
86
|
+
* 获取服务器配置
|
|
87
|
+
*/
|
|
38
88
|
getServerConfig(): ServerConfig;
|
|
89
|
+
/**
|
|
90
|
+
* 获取 License
|
|
91
|
+
*/
|
|
39
92
|
getLicense(): License | null;
|
|
93
|
+
/**
|
|
94
|
+
* 获取同步配置
|
|
95
|
+
*/
|
|
40
96
|
getSyncConfig(): SyncConfig | null;
|
|
97
|
+
/**
|
|
98
|
+
* 设置认证令牌(登录成功后)
|
|
99
|
+
*/
|
|
41
100
|
setToken(token: Token): void;
|
|
101
|
+
/**
|
|
102
|
+
* 清除认证令牌(登出)
|
|
103
|
+
*/
|
|
42
104
|
clearToken(): void;
|
|
105
|
+
/**
|
|
106
|
+
* 更新服务器配置
|
|
107
|
+
*/
|
|
43
108
|
updateServerConfig(config: ServerConfig): void;
|
|
109
|
+
/**
|
|
110
|
+
* 设置 License
|
|
111
|
+
*/
|
|
44
112
|
setLicense(license: License): void;
|
|
113
|
+
/**
|
|
114
|
+
* 清除 License
|
|
115
|
+
*/
|
|
45
116
|
clearLicense(): void;
|
|
117
|
+
/**
|
|
118
|
+
* 设置同步配置
|
|
119
|
+
*/
|
|
46
120
|
setSyncConfig(syncConfig: SyncConfig): void;
|
|
121
|
+
/**
|
|
122
|
+
* 清除同步配置
|
|
123
|
+
*/
|
|
47
124
|
clearSyncConfig(): void;
|
|
125
|
+
/**
|
|
126
|
+
* 检查是否已认证
|
|
127
|
+
*/
|
|
48
128
|
isAuthenticated(): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* 检查令牌是否已过期
|
|
131
|
+
*/
|
|
49
132
|
isTokenExpired(): boolean;
|
|
133
|
+
/**
|
|
134
|
+
* 检查 License 是否有效
|
|
135
|
+
*/
|
|
50
136
|
hasValidLicense(): boolean;
|
|
137
|
+
/**
|
|
138
|
+
* 检查是否是试用账户
|
|
139
|
+
*/
|
|
51
140
|
isTrialAccount(): boolean;
|
|
141
|
+
/**
|
|
142
|
+
* 获取认证状态信息
|
|
143
|
+
*/
|
|
144
|
+
/**
|
|
145
|
+
* 获取用户状态
|
|
146
|
+
*
|
|
147
|
+
* @returns 完整的用户状态信息,包括认证、License 和 Sync 配置
|
|
148
|
+
*/
|
|
52
149
|
getStatus(): UserStatus;
|
|
150
|
+
/**
|
|
151
|
+
* 序列化为 JSON(用于持久化)
|
|
152
|
+
*/
|
|
53
153
|
toJSON(): {
|
|
54
154
|
email: string;
|
|
55
155
|
token: {
|