Skip to content

Commit c4d5d63

Browse files
committed
chore(lint): prettier --write pre-existing formatting debt
CI lints the whole repo (eslint 'src/**/*.ts'); 146 pre-existing prettier/prettier errors in files unrelated to this PR were failing the lint job (main is red for the same reason). Auto-formats the 5 offending files so PR CI can go green. No behavior change. https://claude.ai/code/session_01Gk8DiqCeG9uMaWT9RprwP1
1 parent 7f7ca02 commit c4d5d63

5 files changed

Lines changed: 300 additions & 147 deletions

File tree

src/cli/hermes-sm.ts

Lines changed: 23 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ const DEFAULT_CONFIG: HermesSMConfig = {
5959
function loadConfig(): HermesSMConfig {
6060
try {
6161
if (fs.existsSync(HERMES_CONFIG_PATH)) {
62-
return { ...DEFAULT_CONFIG, ...JSON.parse(fs.readFileSync(HERMES_CONFIG_PATH, 'utf8')) };
62+
return {
63+
...DEFAULT_CONFIG,
64+
...JSON.parse(fs.readFileSync(HERMES_CONFIG_PATH, 'utf8')),
65+
};
6366
}
6467
} catch {
6568
// Use defaults
@@ -121,9 +124,13 @@ function ensureDaemon(): void {
121124

122125
function writeSessionHeartbeat(instanceId: string): NodeJS.Timeout {
123126
const sessionsDir = path.join(SM_DIR, 'sessions');
124-
if (!fs.existsSync(sessionsDir)) fs.mkdirSync(sessionsDir, { recursive: true });
127+
if (!fs.existsSync(sessionsDir))
128+
fs.mkdirSync(sessionsDir, { recursive: true });
125129

126-
const heartbeatFile = path.join(sessionsDir, `session-${Date.now()}.heartbeat`);
130+
const heartbeatFile = path.join(
131+
sessionsDir,
132+
`session-${Date.now()}.heartbeat`
133+
);
127134
fs.writeFileSync(heartbeatFile, instanceId);
128135

129136
// Update heartbeat every 60s
@@ -154,7 +161,11 @@ class HermesSM {
154161
const { instanceId, tracingEnabled, verboseTracing } = this.config;
155162

156163
console.log(chalk.cyan('╭─ hermes-sm ─────────────────────────────╮'));
157-
console.log(chalk.cyan(`│ Instance: ${instanceId.slice(0, 8)} │`));
164+
console.log(
165+
chalk.cyan(
166+
`│ Instance: ${instanceId.slice(0, 8)} │`
167+
)
168+
);
158169
console.log(chalk.cyan('╰──────────────────────────────────────────╯'));
159170

160171
// 1. Ensure daemon is running
@@ -193,7 +204,11 @@ class HermesSM {
193204
const handoff = store.getLatestHandoff(projectId);
194205
if (handoff) {
195206
handoffContext = handoff.content || '';
196-
console.log(chalk.dim(` ↳ Restored handoff: ${handoff.summary?.slice(0, 60) || 'previous session'}`));
207+
console.log(
208+
chalk.dim(
209+
` ↳ Restored handoff: ${handoff.summary?.slice(0, 60) || 'previous session'}`
210+
)
211+
);
197212
}
198213
} catch {
199214
// No handoff available
@@ -282,7 +297,9 @@ const smConfig = loadConfig();
282297

283298
program
284299
.name('hermes-smd')
285-
.description('Hermes with StackMemory context persistence, daemon auto-start, and desire-path tracking')
300+
.description(
301+
'Hermes with StackMemory context persistence, daemon auto-start, and desire-path tracking'
302+
)
286303
.argument('[prompt...]', 'Initial prompt for hermes')
287304
.option('--resume <session>', 'Resume a Hermes session by ID')
288305
.option('-m, --model <model>', 'Model to use')

src/daemon/daemon-config.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,18 @@ export const DEFAULT_DAEMON_CONFIG: DaemonConfig = {
169169
enabled: true, // opt-out via STACKMEMORY_RESEARCH_STREAM=0
170170
interval: 360, // every 6 hours
171171
keywords: [
172-
'agent', 'ai', 'llm', 'mcp', 'context', 'memory',
173-
'orchestration', 'skill', 'workflow', 'automation',
174-
'browser agent', 'coding assistant',
172+
'agent',
173+
'ai',
174+
'llm',
175+
'mcp',
176+
'context',
177+
'memory',
178+
'orchestration',
179+
'skill',
180+
'workflow',
181+
'automation',
182+
'browser agent',
183+
'coding assistant',
175184
],
176185
maxSignalsPerScan: 50,
177186
},

0 commit comments

Comments
 (0)