@@ -82,15 +82,15 @@ export const PrCommand = cmd({
8282 } )
8383 }
8484
85- // Check for opencode session link in PR body
85+ // Check for altimate-code session link in PR body
8686 if ( prInfo && prInfo . body ) {
8787 const sessionMatch = prInfo . body . match ( / h t t p s : \/ \/ o p n c d \. a i \/ s \/ ( [ a - z A - Z 0 - 9 _ - ] + ) / )
8888 if ( sessionMatch ) {
8989 const sessionUrl = sessionMatch [ 0 ]
90- UI . println ( `Found opencode session: ${ sessionUrl } ` )
90+ UI . println ( `Found altimate-code session: ${ sessionUrl } ` )
9191 UI . println ( `Importing session...` )
9292
93- const importResult = await Process . text ( [ "opencode " , "import" , sessionUrl ] , {
93+ const importResult = await Process . text ( [ "altimate-code " , "import" , sessionUrl ] , {
9494 nothrow : true ,
9595 } )
9696 if ( importResult . code === 0 ) {
@@ -109,21 +109,21 @@ export const PrCommand = cmd({
109109
110110 UI . println ( `Successfully checked out PR #${ prNumber } as branch '${ localBranchName } '` )
111111 UI . println ( )
112- UI . println ( "Starting opencode ..." )
112+ UI . println ( "Starting altimate-code ..." )
113113 UI . println ( )
114114
115- // Launch opencode TUI with session ID if available
115+ // Launch altimate-code TUI with session ID if available
116116 const { spawn } = await import ( "child_process" )
117117 const opencodeArgs = sessionId ? [ "-s" , sessionId ] : [ ]
118- const opencodeProcess = spawn ( "opencode " , opencodeArgs , {
118+ const opencodeProcess = spawn ( "altimate-code " , opencodeArgs , {
119119 stdio : "inherit" ,
120120 cwd : process . cwd ( ) ,
121121 } )
122122
123123 await new Promise < void > ( ( resolve , reject ) => {
124124 opencodeProcess . on ( "exit" , ( code ) => {
125125 if ( code === 0 ) resolve ( )
126- else reject ( new Error ( `opencode exited with code ${ code } ` ) )
126+ else reject ( new Error ( `altimate-code exited with code ${ code } ` ) )
127127 } )
128128 opencodeProcess . on ( "error" , reject )
129129 } )
0 commit comments