File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 5252 "ai-tokenizer" : " ^1.0.3" ,
5353 "chalk" : " ^5.6.2" ,
5454 "cmdk" : " ^1.0.0" ,
55+ "cors" : " ^2.8.5" ,
5556 "crc-32" : " ^1.2.2" ,
5657 "diff" : " ^8.0.2" ,
5758 "disposablestack" : " ^1.1.7" ,
5859 "electron-updater" : " ^6.6.2" ,
5960 "escape-html" : " ^1.0.3" ,
61+ "express" : " ^5.1.0" ,
6062 "jsonc-parser" : " ^3.3.1" ,
6163 "lru-cache" : " ^11.2.2" ,
6264 "markdown-it" : " ^14.1.0" ,
7880 "source-map-support" : " ^0.5.21" ,
7981 "undici" : " ^7.16.0" ,
8082 "write-file-atomic" : " ^6.0.0" ,
83+ "ws" : " ^8.18.3" ,
8184 "zod" : " ^4.1.11" ,
8285 "zod-to-json-schema" : " ^3.24.6"
8386 },
112115 "@vitejs/plugin-react" : " ^4.0.0" ,
113116 "babel-plugin-react-compiler" : " ^1.0.0" ,
114117 "concurrently" : " ^8.2.0" ,
115- "cors" : " ^2.8.5" ,
116118 "dotenv" : " ^17.2.3" ,
117119 "electron" : " ^38.2.1" ,
118120 "electron-builder" : " ^24.6.0" ,
121123 "eslint" : " ^9.36.0" ,
122124 "eslint-plugin-react" : " ^7.37.5" ,
123125 "eslint-plugin-react-hooks" : " ^5.2.0" ,
124- "express" : " ^5.1.0" ,
125126 "jest" : " ^30.1.3" ,
126127 "playwright" : " ^1.56.0" ,
127128 "prettier" : " ^3.6.2" ,
132133 "typescript-eslint" : " ^8.45.0" ,
133134 "vite" : " ^4.4.0" ,
134135 "vite-plugin-svgr" : " ^4.5.0" ,
135- "vite-plugin-top-level-await" : " ^1.6.0" ,
136- "ws" : " ^8.18.3"
136+ "vite-plugin-top-level-await" : " ^1.6.0"
137137 },
138138 "files" : [
139139 " dist/**/*.js" ,
Original file line number Diff line number Diff line change 11#!/usr/bin/env node
2- /**
3- * The main CLI entrypoint for cmux.
4- *
5- * When run as a CLI (via npm/npx), defaults to server mode.
6- * When run as an Electron app, runs desktop mode.
7- */
82
9- // Check if running as CLI or Electron
10- const isElectron = process . versions && process . versions . electron !== undefined ;
11-
12- // CLI usage: run server by default (unless --desktop flag is passed)
13- // Electron usage: run desktop
14- const isServer = ! isElectron || process . argv . includes ( "--server" ) ;
3+ const isServer = process . argv . length > 2 && process . argv [ 2 ] === "server" ;
154
165if ( isServer ) {
176 // eslint-disable-next-line @typescript-eslint/no-require-imports
You can’t perform that action at this time.
0 commit comments