Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/cli/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,11 @@ program
await sessionManager.initialize();
await sharedContextLayer.initialize();

// Auto-init Obsidian vault adapter if configured
const { initObsidianVault } =
await import('../core/storage/obsidian-vault-adapter.js');
await initObsidianVault();

const session = await sessionManager.getOrCreateSession({
projectPath: projectRoot,
sessionId: options.session,
Expand Down
1 change: 1 addition & 0 deletions src/core/config/config-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export class ConfigManager {
performance: { ...DEFAULT_CONFIG.performance, ...loaded.performance },
enrichment: { ...DEFAULT_ENRICHMENT, ...loaded.enrichment },
profiles: { ...PRESET_PROFILES, ...loaded.profiles },
obsidian: loaded.obsidian,
};

// Apply active profile if specified
Expand Down
13 changes: 13 additions & 0 deletions src/core/config/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ export interface ProfileConfig {
performance?: Partial<PerformanceConfig>;
}

export interface ObsidianConfig {
/** Path to Obsidian vault root directory */
vaultPath: string;
/** Subdirectory within vault for StackMemory data (default: "stackmemory") */
subdir?: string;
/** Watch raw/ for web clipper input (default: true) */
watchRaw?: boolean;
/** Auto-update index.md on frame changes (default: true) */
autoIndex?: boolean;
}

export interface StackMemoryConfig {
version: string;
profile?: string; // Active profile name
Expand All @@ -77,6 +88,8 @@ export interface StackMemoryConfig {
performance: PerformanceConfig;
enrichment: EnrichmentConfig;
profiles?: Record<string, ProfileConfig>;
/** Optional Obsidian vault integration */
obsidian?: ObsidianConfig;
}

export const DEFAULT_WEIGHTS: ScoringWeights = {
Expand Down
Loading
Loading