Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
refactor([issue-745]): trim store.js exports to what siblings consume
[._.]/ Adam Eivy55d942210cca
diff --git a/server/services/taskLearning/store.js b/server/services/taskLearning/store.jsindex e5d40ac0a2..d64e1aa917 100644--- a/server/services/taskLearning/store.js+++ b/server/services/taskLearning/store.js@@ -15,13 +15,14 @@ import { createMutex } from '../../lib/asyncMutex.js';export const withLock = createMutex();-export const DATA_DIR = PATHS.cos;-export const LEARNING_FILE = join(DATA_DIR, 'learning.json');-export const AGENTS_DIR = join(DATA_DIR, 'agents');-export const DISMISSED_RECS_FILE = join(DATA_DIR, 'dismissed-recommendations.json');+const DATA_DIR = PATHS.cos;+const LEARNING_FILE = join(DATA_DIR, 'learning.json');+export const AGENTS_DIR = join(DATA_DIR, 'agents'); // consumed by metrics.js+const DISMISSED_RECS_FILE = join(DATA_DIR, 'dismissed-recommendations.json');-// Re-export shared infra so sibling modules import from one place.-export { cosEvents, emitLog, ensureDir, readJSONFile, atomicWrite, tryReadFile };+// Re-export the infra that sibling modules consume so they import from one+// place. (ensureDir / readJSONFile / atomicWrite stay internal to this file.)+export { cosEvents, emitLog, tryReadFile };/*** Calculate ETA-oriented duration stats from success-only metrics with fallback.@@ -41,7 +42,7 @@ export function calculateDurationETA(metrics) {/*** Default learning data structure*/-export const DEFAULT_LEARNING_DATA = {+const DEFAULT_LEARNING_DATA = {version: 1,lastUpdated: null,