@@ -315,7 +315,7 @@ function printModels(models) {
315315 const savings = m . out > 0 ? Math . round ( opusOut / m . out ) : 0 ;
316316 const savingsStr =
317317 shortcut === "opus" ? " baseline" :
318- savings > 0 ? ` ${ savings } x cheaper` : " n/a" ;
318+ savings > 0 ? ` ${ savings } x cheaper` : " n/a" ;
319319 console . log (
320320 ` ${ shortcut . padEnd ( 11 ) } ${ m . name . padEnd ( 24 ) } $${ m . in . toFixed ( 2 ) . padStart ( 6 ) } $${ m . out . toFixed ( 2 ) . padStart ( 6 ) } ${ savingsStr } `
321321 ) ;
@@ -801,9 +801,9 @@ function dockerBuild() {
801801 if ( ! dockerDir ) {
802802 console . error (
803803 "Error: Dockerfile not found.\n\n" +
804- "Docker mode requires the full repository (not the npm package).\n" +
805- " git clone https://github.com/claudlos/cloding\n" +
806- " cd cloding && cloding docker build\n"
804+ "Docker mode requires the full repository (not the npm package).\n" +
805+ " git clone https://github.com/claudlos/cloding\n" +
806+ " cd cloding && cloding docker build\n"
807807 ) ;
808808 process . exit ( 1 ) ;
809809 }
@@ -906,21 +906,21 @@ function dockerRun(dockerArgs, models, interactive) {
906906 if ( ! interactive && ! prompt ) {
907907 const modelHint = modelArg
908908 ? "\nDid you mean:\n" +
909- ` cloding docker run -m ${ modelArg } "your prompt here"\n` +
910- ` cloding docker shell -m ${ modelArg } \n`
909+ ` cloding docker run -m ${ modelArg } "your prompt here"\n` +
910+ ` cloding docker shell -m ${ modelArg } \n`
911911 : "" ;
912912 console . error (
913913 'Error: No prompt provided.\n\n' +
914- ' Usage: cloding docker run "your prompt here"\n' +
915- modelHint
914+ ' Usage: cloding docker run "your prompt here"\n' +
915+ modelHint
916916 ) ;
917917 process . exit ( 1 ) ;
918918 }
919919
920920 if ( ! dockerImageExists ( ) ) {
921921 console . error (
922922 `Error: Docker image '${ DOCKER_IMAGE } ' not found.\n\n` +
923- " Build it first: cloding docker build\n"
923+ " Build it first: cloding docker build\n"
924924 ) ;
925925 process . exit ( 1 ) ;
926926 }
@@ -936,18 +936,17 @@ function dockerRun(dockerArgs, models, interactive) {
936936 if ( apiKeyEnv === "OPENROUTER_API_KEY" ) {
937937 console . error (
938938 "Error: OPENROUTER_API_KEY not set.\n\n" +
939- "Get your key at https://openrouter.ai/keys\n" +
940- `Then: ${ envSetHint ( "OPENROUTER_API_KEY" , "sk-or-v1-..." ) } \n`
939+ "Get your key at https://openrouter.ai/keys\n" +
940+ `Then: ${ envSetHint ( "OPENROUTER_API_KEY" , "sk-or-v1-..." ) } \n`
941941 ) ;
942942 } else {
943943 console . error (
944944 `Error: ${ apiKeyEnv } not set.\n\n` +
945- `Please set it: ${ envSetHint ( apiKeyEnv , "..." ) } `
945+ `Please set it: ${ envSetHint ( apiKeyEnv , "..." ) } `
946946 ) ;
947947 }
948948 process . exit ( 1 ) ;
949949 }
950-
951950 // Block plan-mode tools in Docker: subscription auth (OAuth tokens, system
952951 // credential stores) cannot be passed into containers. Suggest alternatives.
953952 if ( isPlanProvider ) {
@@ -976,11 +975,11 @@ function dockerRun(dockerArgs, models, interactive) {
976975 ) ;
977976 console . error (
978977 `Error: Plan/subscription mode (${ modelArg } ) cannot authenticate inside Docker.\n\n` +
979- `Subscription auth tokens are stored on your host (system credential\n` +
980- `store, browser sessions, etc.) and cannot be passed into containers.\n\n` +
981- `Alternatives:\n` +
982- altLines . join ( "\n" ) +
983- "\n"
978+ `Subscription auth tokens are stored on your host (system credential\n` +
979+ `store, browser sessions, etc.) and cannot be passed into containers.\n\n` +
980+ `Alternatives:\n` +
981+ altLines . join ( "\n" ) +
982+ "\n"
984983 ) ;
985984 process . exit ( 1 ) ;
986985 }
@@ -1156,7 +1155,7 @@ function dockerRun(dockerArgs, models, interactive) {
11561155
11571156 // Clean up env file on exit (contains API key)
11581157 function cleanupEnvFile ( ) {
1159- try { fs . unlinkSync ( envFilePath ) ; } catch { }
1158+ try { fs . unlinkSync ( envFilePath ) ; } catch { }
11601159 }
11611160
11621161 // Spawn docker — uses argument array (no shell interpretation)
@@ -1322,8 +1321,8 @@ function handleDocker(args) {
13221321 if ( ! dockerAvailable ( ) ) {
13231322 console . error (
13241323 "Error: Docker not found.\n\n" +
1325- "Install Docker Desktop:\n" +
1326- " https://docs.docker.com/get-docker/\n"
1324+ "Install Docker Desktop:\n" +
1325+ " https://docs.docker.com/get-docker/\n"
13271326 ) ;
13281327 process . exit ( 1 ) ;
13291328 }
@@ -1412,9 +1411,9 @@ function main() {
14121411 if ( ! fs . existsSync ( pipelineDir ) ) {
14131412 console . error (
14141413 "Error: Pipeline not found.\n\n" +
1415- "Pipeline mode requires the full repository (not the npm package).\n" +
1416- " git clone https://github.com/claudlos/cloding\n" +
1417- " cd cloding/pipeline && pip install -e .\n"
1414+ "Pipeline mode requires the full repository (not the npm package).\n" +
1415+ " git clone https://github.com/claudlos/cloding\n" +
1416+ " cd cloding/pipeline && pip install -e .\n"
14181417 ) ;
14191418 process . exit ( 1 ) ;
14201419 }
@@ -1452,8 +1451,8 @@ function main() {
14521451 if ( nodeMajor < 24 ) {
14531452 console . error (
14541453 `Error: Copilot CLI requires Node.js v24+.\n` +
1455- `Current Node version: v${ process . versions . node } \n\n` +
1456- "Upgrade Node, then run: cloding -m copilot"
1454+ `Current Node version: v${ process . versions . node } \n\n` +
1455+ "Upgrade Node, then run: cloding -m copilot"
14571456 ) ;
14581457 process . exit ( 1 ) ;
14591458 }
@@ -1467,7 +1466,7 @@ function main() {
14671466 if ( ! apiKey && ! usingLinkedCliAuth && ! isPlanProvider ) {
14681467 console . error (
14691468 `Error: ${ apiKeyEnv } not set.\n\n` +
1470- `Please set it: ${ envSetHint ( apiKeyEnv , "..." ) } `
1469+ `Please set it: ${ envSetHint ( apiKeyEnv , "..." ) } `
14711470 ) ;
14721471 process . exit ( 1 ) ;
14731472 }
@@ -1585,7 +1584,7 @@ function main() {
15851584 // Add common ones just in case (only if they exist)
15861585 if ( runEnv . OPENAI_API_KEY ) wslenv . push ( "OPENAI_API_KEY/u" ) ;
15871586 if ( runEnv . OPENROUTER_API_KEY ) wslenv . push ( "OPENROUTER_API_KEY/u" ) ;
1588-
1587+
15891588 if ( process . env . WSLENV ) {
15901589 runEnv . WSLENV = `${ process . env . WSLENV } :${ wslenv . join ( ":" ) } ` ;
15911590 } else {
@@ -1628,13 +1627,13 @@ function main() {
16281627 if ( tool === "copilot" ) {
16291628 console . error (
16301629 "Error: 'copilot' command not found.\n\n" +
1631- "Install with: npm i -g @github/copilot\n" +
1632- "Then ensure your npm global bin is in PATH."
1630+ "Install with: npm i -g @github/copilot\n" +
1631+ "Then ensure your npm global bin is in PATH."
16331632 ) ;
16341633 } else {
16351634 console . error (
16361635 `Error: '${ tool } ' command not found.\n\n` +
1637- `Install ${ tool } first.`
1636+ `Install ${ tool } first.`
16381637 ) ;
16391638 }
16401639 } else {
0 commit comments