@mdfriday/foundry 26.4.7 → 26.4.9

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.
@@ -1,5 +1,6 @@
1
1
  import { ProjectMetadata } from '../value-object/project-metadata';
2
2
  import { BuildHistoryEntry } from '../type';
3
+ import { FileSystemRepository } from '../repository/file-system';
3
4
  export interface ProjectConfig {
4
5
  baseURL?: string;
5
6
  title?: string;
@@ -16,7 +17,8 @@ export declare class Project {
16
17
  private metadata;
17
18
  private projectPath;
18
19
  private config;
19
- constructor(projectPath: string, metadata: ProjectMetadata);
20
+ private fileSystemRepo;
21
+ constructor(projectPath: string, metadata: ProjectMetadata, fileSystemRepo: FileSystemRepository);
20
22
  getPath(): string;
21
23
  getMetadata(): ProjectMetadata;
22
24
  getId(): string;
@@ -9,7 +9,7 @@ export declare class Workspace {
9
9
  private projects;
10
10
  private authentication;
11
11
  private fileSystemRepo;
12
- constructor(rootPath: string, metadata: WorkspaceMetadata, projects: Map<string, Project>, authentication: Authentication, fileSystemRepo?: FileSystemRepository);
12
+ constructor(rootPath: string, metadata: WorkspaceMetadata, projects: Map<string, Project>, authentication: Authentication, fileSystemRepo: FileSystemRepository);
13
13
  getPath(): string;
14
14
  getMetadata(): WorkspaceMetadata;
15
15
  getId(): string;
@@ -8,7 +8,7 @@ export interface WorkspaceFactoryOptions {
8
8
  workspaceRepo: WorkspaceRepository;
9
9
  projectRepo: ProjectRepository;
10
10
  snapshotRepo: SnapshotRepository;
11
- fileSystemRepo?: FileSystemRepository;
11
+ fileSystemRepo: FileSystemRepository;
12
12
  }
13
13
  export declare class WorkspaceFactory {
14
14
  private workspaceRepo;
@@ -57,4 +57,15 @@ export interface FileSystemRepository {
57
57
  basename(path: string): string;
58
58
  dirname(path: string): string;
59
59
  join(...paths: string[]): string;
60
+ resolvePathSync(...paths: string[]): string;
61
+ relative(from: string, to: string): string;
62
+ parsePath(path: string): {
63
+ root: string;
64
+ dir: string;
65
+ base: string;
66
+ ext: string;
67
+ name: string;
68
+ };
69
+ normalize(path: string): string;
70
+ isAbsolute(path: string): boolean;
60
71
  }
@@ -1,2 +1,3 @@
1
1
  export * from '../repository';
2
+ export type { ProjectRegistry, ProjectEntry, BuildHistoryEntry } from '../type';
2
3
  export * from './file-system';
@@ -31,4 +31,15 @@ export declare class NodeFileSystemRepository implements FileSystemRepository {
31
31
  basename(filePath: string): string;
32
32
  dirname(filePath: string): string;
33
33
  join(...paths: string[]): string;
34
+ resolvePathSync(...paths: string[]): string;
35
+ relative(from: string, to: string): string;
36
+ parsePath(filePath: string): {
37
+ root: string;
38
+ dir: string;
39
+ base: string;
40
+ ext: string;
41
+ name: string;
42
+ };
43
+ normalize(filePath: string): string;
44
+ isAbsolute(filePath: string): boolean;
34
45
  }
@@ -1,6 +1,8 @@
1
1
  export type { ObsidianEnvironmentConfig, ObsidianFullPersistenceConfig, ObsidianBasicPersistenceConfig, } from './config-types';
2
2
  export { isFullPersistenceConfig } from './config-types';
3
3
  export type { WorkspaceRepository, ProjectRepository, SnapshotRepository, FileSystemRepository, WorkspaceMetadataData, ProjectMetadataData, FolderStructure, FolderScanResult, ContentFolderInfo, StaticFolderInfo, SymlinkResult, } from '@internal/domain/workspace/repository';
4
+ export type { ProjectRegistry, ProjectEntry, BuildHistoryEntry, } from '@internal/domain/workspace/type';
5
+ export type { SnapshotMetadata } from '@internal/domain/workspace/type';
4
6
  export { ObsidianWorkspaceService, createObsidianWorkspaceService, ObsidianWorkspaceInitOptions, ObsidianWorkspaceInfo, ObsidianWorkspaceResult, } from './workspace';
5
7
  export { ObsidianProjectService, createObsidianProjectService, ObsidianProjectCreateOptions, ObsidianProjectInfo, ObsidianProjectResult, } from './project';
6
8
  export { ObsidianBuildService, createObsidianBuildService, ObsidianBuildOptions, ObsidianBuildResult, } from './build';
@@ -1,6 +1,7 @@
1
1
  export type { ObsidianEnvironmentConfig, ObsidianBasicPersistenceConfig, } from './config-types';
2
2
  export { isFullPersistenceConfig } from './config-types';
3
3
  export type { WorkspaceRepository, FileSystemRepository, WorkspaceMetadataData, FolderStructure, FolderScanResult, ContentFolderInfo, StaticFolderInfo, SymlinkResult, } from '@internal/domain/workspace/repository';
4
+ export type { ProjectRegistry, ProjectEntry, } from '@internal/domain/workspace/type';
4
5
  export type { HttpClient as IdentityHttpClient, HttpResponse as IdentityHttpResponse } from '@internal/domain/identity';
5
6
  export { ObsidianWorkspaceService, createObsidianWorkspaceService, type ObsidianWorkspaceInitOptions, type ObsidianWorkspaceInfo, type ObsidianWorkspaceResult, } from './workspace';
6
7
  export { ObsidianAuthService, createObsidianAuthService, type ObsidianAuthStatus, type ObsidianSyncConfig, type ObsidianServerConfig, type ObsidianAuthResult, } from './auth';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mdfriday/foundry",
3
- "version": "26.4.7",
3
+ "version": "26.4.9",
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",