- Updated all package.json name fields and dependency references - Updated all TypeScript/JavaScript imports - Updated .woodpecker/publish.yml filters and registry paths - Updated tools/install.sh scope default - Updated .npmrc registry paths (worktree + host) - Enhanced update-checker.ts with checkForAllUpdates() multi-package support - Updated CLI update command to show table of all packages - Added KNOWN_PACKAGES, formatAllPackagesTable, getInstallAllCommand - Marked checkForUpdate() with @deprecated JSDoc Closes #391
16 lines
429 B
TypeScript
16 lines
429 B
TypeScript
import type { Db } from '@mosaicstack/db';
|
|
import { createPreferencesRepo, type PreferencesRepo } from './preferences.js';
|
|
import { createInsightsRepo, type InsightsRepo } from './insights.js';
|
|
|
|
export interface Memory {
|
|
preferences: PreferencesRepo;
|
|
insights: InsightsRepo;
|
|
}
|
|
|
|
export function createMemory(db: Db): Memory {
|
|
return {
|
|
preferences: createPreferencesRepo(db),
|
|
insights: createInsightsRepo(db),
|
|
};
|
|
}
|