@agent-chat/mention-watcher 0.1.8 → 0.1.9
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/watch.js +1 -6
- package/package.json +1 -1
package/dist/watch.js
CHANGED
|
@@ -197,15 +197,10 @@ async function main() {
|
|
|
197
197
|
process.stderr.write(`[mention-watcher] Workspace: ${WORKSPACE_DIR} (${wdSource})
|
|
198
198
|
`);
|
|
199
199
|
process.stderr.write(`[mention-watcher] Spawning: ${COMMAND} ${CMD_ARGS.join(" ")}
|
|
200
|
-
`);
|
|
201
|
-
const userShell = process.env.SHELL || "/bin/zsh";
|
|
202
|
-
const quotedArgs = [COMMAND, ...CMD_ARGS].map((a) => `'${a.replace(/'/g, "'\\''")}'`).join(" ");
|
|
203
|
-
const shellCmd = `exec ${quotedArgs}`;
|
|
204
|
-
process.stderr.write(`[mention-watcher] Spawning via: ${userShell} -l -c "${shellCmd}"
|
|
205
200
|
`);
|
|
206
201
|
let proc;
|
|
207
202
|
try {
|
|
208
|
-
proc = pty.spawn(
|
|
203
|
+
proc = pty.spawn(COMMAND, CMD_ARGS, {
|
|
209
204
|
name: "xterm-256color",
|
|
210
205
|
cols,
|
|
211
206
|
rows,
|