twinclaw 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/cli.js +3 -2
- package/package.json +1 -1
package/dist/core/cli.js
CHANGED
|
@@ -181,17 +181,18 @@ export const handleStartCli = async (argv) => {
|
|
|
181
181
|
}
|
|
182
182
|
if (process.platform === 'win32' && !runInCurrentTerminal) {
|
|
183
183
|
const { spawn } = await import('node:child_process');
|
|
184
|
-
const entryScript = process.execPath;
|
|
185
184
|
console.log('[TwinClaw] Starting gateway in new window...');
|
|
186
185
|
const targetCmd = isChat ? 'chat' : '';
|
|
187
186
|
const title = isChat ? 'TwinClaw Chat' : 'TwinClaw Gateway';
|
|
187
|
+
// Use twinclaw command directly
|
|
188
|
+
const cmdToRun = targetCmd ? `twinclaw ${targetCmd}` : 'twinclaw';
|
|
188
189
|
const args = [
|
|
189
190
|
'/c',
|
|
190
191
|
'start',
|
|
191
192
|
`""`,
|
|
192
193
|
'cmd.exe',
|
|
193
194
|
'/k',
|
|
194
|
-
|
|
195
|
+
cmdToRun
|
|
195
196
|
];
|
|
196
197
|
spawn('cmd.exe', args, {
|
|
197
198
|
detached: true,
|