@mdfriday/foundry 26.4.5 → 26.4.6

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.
@@ -25,6 +25,7 @@ export declare class WorkspaceAppService {
25
25
  loadProject(projectPath: string): Promise<Project>;
26
26
  saveProject(project: Project): Promise<void>;
27
27
  findProjectRoot(startPath: string): Promise<string | null>;
28
+ scanFolderStructure(folderPath: string): Promise<import("@internal/domain/workspace").FolderStructure>;
28
29
  createIdentityStorage(workspace: Workspace): import("../domain/identity").IdentityStorageProvider;
29
30
  setupProjectBaseURLStructure(project: Project): Promise<{
30
31
  serverRoot: string;
@@ -1,5 +1,6 @@
1
1
  import { Workspace } from '../entity/workspace';
2
2
  import { Project } from '../entity/project';
3
+ import { FolderStructure } from '../value-object/folder-structure';
3
4
  import { WorkspaceRepository, ProjectRepository, SnapshotRepository, FileSystemRepository } from '../repository';
4
5
  import { SnapshotMetadata } from '../type';
5
6
  import type { IdentityStorageProvider } from '@internal/domain/identity/repository/index';
@@ -65,5 +66,6 @@ export declare class WorkspaceFactory {
65
66
  baseURL: string;
66
67
  recreated: boolean;
67
68
  }>;
69
+ scanFolderStructure(folderPath: string): Promise<FolderStructure>;
68
70
  private createSampleContent;
69
71
  }
@@ -38,6 +38,23 @@ export interface ObsidianProjectResult<T = any> {
38
38
  data?: T;
39
39
  error?: string;
40
40
  }
41
+ export interface ObsidianFolderStructureInfo {
42
+ rootPath: string;
43
+ isStructured: boolean;
44
+ contentFolders: Array<{
45
+ path: string;
46
+ languageCode: string;
47
+ weight: number;
48
+ }>;
49
+ staticFolder?: {
50
+ path: string;
51
+ } | undefined;
52
+ isValid: boolean;
53
+ isMultilingual: boolean;
54
+ supportedLanguages: string[];
55
+ defaultLanguage?: string | undefined;
56
+ summary: string;
57
+ }
41
58
  export declare class ObsidianProjectService {
42
59
  private workspaceAppService;
43
60
  constructor(workspaceAppService: WorkspaceAppService);
@@ -51,5 +68,6 @@ export declare class ObsidianProjectService {
51
68
  deleteProject(workspacePath: string, projectIdOrName: string, options?: {
52
69
  deleteFiles?: boolean;
53
70
  }): Promise<ObsidianProjectResult<void>>;
71
+ scanFolderStructure(folderPath: string): Promise<ObsidianProjectResult<ObsidianFolderStructureInfo>>;
54
72
  }
55
73
  export declare function createObsidianProjectService(): ObsidianProjectService;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdfriday/foundry",
3
- "version": "26.4.5",
3
+ "version": "26.4.6",
4
4
  "description": "The core engine of MDFriday. Convert Markdown and shortcodes into fully themed static sites – Hugo-style, powered by TypeScript.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",