@@ -59,7 +59,10 @@ const DEFAULT_CONFIG: HermesSMConfig = {
5959function 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
122125function 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
283298program
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' )
0 commit comments