jefrichat-mcp 0.44.0 → 0.45.0
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/index.js +8 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10690,9 +10690,9 @@ __export(run_exports, {
|
|
|
10690
10690
|
import cp5 from "node:child_process";
|
|
10691
10691
|
import { createHash } from "node:crypto";
|
|
10692
10692
|
import readline from "node:readline";
|
|
10693
|
-
function tmuxRunArgv(agentCmd, sessionName, envPairs = []) {
|
|
10693
|
+
function tmuxRunArgv(agentCmd, sessionName, cwd, envPairs = []) {
|
|
10694
10694
|
const env = envPairs.flatMap((e) => ["-e", e]);
|
|
10695
|
-
return { cmd: "tmux", args: ["new-session", "-
|
|
10695
|
+
return { cmd: "tmux", args: ["new-session", "-d", "-s", sessionName, "-c", cwd, ...env, "--", ...agentCmd] };
|
|
10696
10696
|
}
|
|
10697
10697
|
function sessionNameFor(agentCmd, cwd = process.cwd(), experimental = false) {
|
|
10698
10698
|
const exe = (agentCmd[0] || "agent").replace(/[^a-zA-Z0-9_-]/g, "").slice(0, 32);
|
|
@@ -10842,12 +10842,12 @@ async function runWrapped(argv) {
|
|
|
10842
10842
|
|
|
10843
10843
|
`
|
|
10844
10844
|
);
|
|
10845
|
-
const
|
|
10846
|
-
|
|
10847
|
-
|
|
10848
|
-
|
|
10849
|
-
);
|
|
10850
|
-
return spawnInherit(
|
|
10845
|
+
const cwd = process.cwd();
|
|
10846
|
+
const name = sessionNameFor(agentCmd, cwd, sessionOptedIn);
|
|
10847
|
+
const { cmd, args } = tmuxRunArgv(agentCmd, name, cwd, sessionOptedIn ? ["JEFRI_EXPERIMENTAL_SESSION=1"] : []);
|
|
10848
|
+
cp5.spawnSync(cmd, args, { stdio: "ignore" });
|
|
10849
|
+
cp5.spawnSync("tmux", ["set-option", "-t", name, "mouse", "on"], { stdio: "ignore" });
|
|
10850
|
+
return spawnInherit("tmux", ["attach-session", "-t", name]);
|
|
10851
10851
|
}
|
|
10852
10852
|
var SHELLS;
|
|
10853
10853
|
var init_run = __esm({
|
package/package.json
CHANGED