File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " ode" ,
3- "version" : " 0.0.94 " ,
3+ "version" : " 0.0.95 " ,
44 "description" : " Coding anywhere with your coding agents connected" ,
55 "module" : " packages/core/index.ts" ,
66 "type" : " module" ,
Original file line number Diff line number Diff line change @@ -87,6 +87,16 @@ function fallbackReadyMessage(): string {
8787 return `Ode is ready! Waiting for messages, setting UI is accessible at ${ getLocalSettingsUrl ( ) } ` ;
8888}
8989
90+ function extractSettingsUrl ( readyMessage : string | null ) : string | null {
91+ if ( ! readyMessage ) return null ;
92+ const marker = "setting UI is accessible at " ;
93+ const markerIndex = readyMessage . indexOf ( marker ) ;
94+ if ( markerIndex === - 1 ) return null ;
95+
96+ const url = readyMessage . slice ( markerIndex + marker . length ) . trim ( ) ;
97+ return url . length > 0 ? url : null ;
98+ }
99+
90100function delay ( ms : number ) : Promise < void > {
91101 return new Promise ( ( resolve ) => {
92102 setTimeout ( resolve , ms ) ;
@@ -339,7 +349,8 @@ async function showStatus(): Promise<void> {
339349 console . log ( "Upgrade: none pending" ) ;
340350 }
341351 if ( daemonIsRunning ) {
342- console . log ( `ode is running, setting UI is accessible at ${ getLocalSettingsUrl ( ) } ` ) ;
352+ const settingsUrl = extractSettingsUrl ( state . readyMessage ) ?? getLocalSettingsUrl ( ) ;
353+ console . log ( `ode is running, setting UI is accessible at ${ settingsUrl } ` ) ;
343354 return ;
344355 }
345356 console . log ( "ode is installed but not running, can run it with ode" ) ;
Original file line number Diff line number Diff line change 55 "@/*" : [" packages/*" ]
66 },
77 // Environment setup & latest features
8- "lib" : [" ESNext" ],
8+ "lib" : [" ESNext" , " DOM " ],
99 "target" : " ESNext" ,
1010 "module" : " Preserve" ,
1111 "moduleDetection" : " force" ,
You can’t perform that action at this time.
0 commit comments