@mushi-mushi/cli 0.44.0 → 0.44.1
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/{chunk-6XKFNK4C.js → chunk-3MLL4UA6.js} +1 -1
- package/dist/{chunk-T3Q44NPC.js → chunk-7JBX3OAM.js} +3 -3
- package/dist/{chunk-ZL2HSPR5.js → chunk-ARK7DLEO.js} +1 -1
- package/dist/{chunk-25YBYYYC.js → chunk-IZ553U5F.js} +30 -4
- package/dist/{chunk-NEFF6WK5.js → chunk-JSDCWIEZ.js} +2 -2
- package/dist/{connect-HTAUIXDX.js → connect-TAZSADIW.js} +3 -3
- package/dist/{daemon-VDYY6GWG.js → daemon-4NXMR5CP.js} +3 -3
- package/dist/index.js +5 -5
- package/dist/init.js +3 -3
- package/dist/version.js +1 -1
- package/dist/wizard-bin.js +3 -3
- package/package.json +1 -1
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
saveConfig,
|
|
31
31
|
savedSdkKeyFor,
|
|
32
32
|
trySaveKeyToKeychain
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ARK7DLEO.js";
|
|
34
34
|
import {
|
|
35
35
|
MUSHI_CLI_VERSION
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-3MLL4UA6.js";
|
|
37
37
|
import {
|
|
38
38
|
FRAMEWORKS,
|
|
39
39
|
detectFramework,
|
|
@@ -2606,7 +2606,7 @@ async function maybeOfferConnect(credentials, options, _consoleBase) {
|
|
|
2606
2606
|
if (p.isCancel(answer) || !answer) return;
|
|
2607
2607
|
const endpoint = resolveCloudEndpoint(options.endpoint);
|
|
2608
2608
|
try {
|
|
2609
|
-
const { runConnect } = await import("./connect-
|
|
2609
|
+
const { runConnect } = await import("./connect-TAZSADIW.js");
|
|
2610
2610
|
const saved = loadConfig();
|
|
2611
2611
|
const result = await runConnect(
|
|
2612
2612
|
{
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
requireConfig,
|
|
8
8
|
requireUuid,
|
|
9
9
|
tryLoadWorkerKey
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ARK7DLEO.js";
|
|
11
11
|
import {
|
|
12
12
|
MUSHI_CLI_VERSION
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-3MLL4UA6.js";
|
|
14
14
|
|
|
15
15
|
// src/worker/daemon.ts
|
|
16
16
|
import { existsSync as existsSync10, readFileSync as readFileSync8 } from "fs";
|
|
@@ -3604,7 +3604,33 @@ function windowsInstaller(cmd, platform, nodeExe, hasFile, pathDirs = []) {
|
|
|
3604
3604
|
function isMissingModuleFailure(message) {
|
|
3605
3605
|
return /ERR_MODULE_NOT_FOUND|Cannot find (package|module)/.test(message);
|
|
3606
3606
|
}
|
|
3607
|
-
|
|
3607
|
+
var FALLBACK_COMMITTER = { name: "Mushi worker", email: "mushi-worker@users.noreply.github.com" };
|
|
3608
|
+
async function ensureCommitIdentity(wt, run = hostGitRun, gh = runProc) {
|
|
3609
|
+
const read = async (args) => {
|
|
3610
|
+
const r = await run("git", ["config", ...args], { cwd: wt, timeoutMs: GIT_TIMEOUT_MS });
|
|
3611
|
+
return r.code === 0 ? r.stdout.trim() : "";
|
|
3612
|
+
};
|
|
3613
|
+
const localName = await read(["--local", "user.name"]);
|
|
3614
|
+
const localEmail = await read(["--local", "user.email"]);
|
|
3615
|
+
if (localName && localEmail) return { name: localName, email: localEmail };
|
|
3616
|
+
let name = await read(["user.name"]);
|
|
3617
|
+
let email = await read(["user.email"]);
|
|
3618
|
+
if (!name || !email) {
|
|
3619
|
+
const u = await gh("gh", ["api", "user", "--jq", '(.login) + " " + (.id|tostring)'], { cwd: wt, timeoutMs: GIT_TIMEOUT_MS });
|
|
3620
|
+
const [login, id] = u.code === 0 ? u.stdout.trim().split(/\s+/) : [];
|
|
3621
|
+
if (login && id && /^\d+$/.test(id)) {
|
|
3622
|
+
name ||= login;
|
|
3623
|
+
email ||= `${id}+${login}@users.noreply.github.com`;
|
|
3624
|
+
}
|
|
3625
|
+
}
|
|
3626
|
+
name ||= FALLBACK_COMMITTER.name;
|
|
3627
|
+
email ||= FALLBACK_COMMITTER.email;
|
|
3628
|
+
await run("git", ["config", "--local", "user.name", name], { cwd: wt, timeoutMs: GIT_TIMEOUT_MS });
|
|
3629
|
+
await run("git", ["config", "--local", "user.email", email], { cwd: wt, timeoutMs: GIT_TIMEOUT_MS });
|
|
3630
|
+
return { name, email };
|
|
3631
|
+
}
|
|
3632
|
+
async function commitWithHooks(wt, args, log, box, identity = ensureCommitIdentity) {
|
|
3633
|
+
await identity(wt);
|
|
3608
3634
|
try {
|
|
3609
3635
|
await git(wt, ["commit", ...args], box);
|
|
3610
3636
|
} catch (err) {
|
|
@@ -3744,7 +3770,7 @@ function registerWorkCommands(program) {
|
|
|
3744
3770
|
if (opts.repoDir || opts.report || opts.followups || opts.recheck || opts.collapseBacklog) {
|
|
3745
3771
|
throw new MushiCliError("E_INVALID_INPUT", "--daemon takes its lanes and clones from the worker config, not from --repo-dir, --report or --followups.", "mushi worker install");
|
|
3746
3772
|
}
|
|
3747
|
-
const { runDaemon: runDaemon2 } = await import("./daemon-
|
|
3773
|
+
const { runDaemon: runDaemon2 } = await import("./daemon-4NXMR5CP.js");
|
|
3748
3774
|
await runDaemon2({ configPath: opts.workerConfig, ...opts.agent !== void 0 ? { agent } : {}, ...opts.anyRepo ? { anyRepo: true } : {}, ...sandboxSetting ? { sandbox: sandboxSetting } : {}, ...opts.cursorApiKey ? { cursorApiKey: true } : {} });
|
|
3749
3775
|
return;
|
|
3750
3776
|
}
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
requireUuid,
|
|
9
9
|
saveConfig,
|
|
10
10
|
savedSdkKeyFor
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-ARK7DLEO.js";
|
|
12
12
|
import {
|
|
13
13
|
MUSHI_MCP_PIN_SPEC
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-3MLL4UA6.js";
|
|
15
15
|
import {
|
|
16
16
|
detectFramework,
|
|
17
17
|
envVarsToWrite,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveSdkEnvKey,
|
|
3
3
|
runConnect
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-JSDCWIEZ.js";
|
|
5
5
|
import "./chunk-O6RN5FT5.js";
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-ARK7DLEO.js";
|
|
7
|
+
import "./chunk-3MLL4UA6.js";
|
|
8
8
|
import "./chunk-AWASJDQI.js";
|
|
9
9
|
import "./chunk-2XODEIM4.js";
|
|
10
10
|
export {
|
|
@@ -12,9 +12,9 @@ import {
|
|
|
12
12
|
runDaemon,
|
|
13
13
|
stopHint,
|
|
14
14
|
workerHostId
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-IZ553U5F.js";
|
|
16
|
+
import "./chunk-ARK7DLEO.js";
|
|
17
|
+
import "./chunk-3MLL4UA6.js";
|
|
18
18
|
import "./chunk-2XODEIM4.js";
|
|
19
19
|
export {
|
|
20
20
|
assertWorkerKey,
|
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
printKeyExportHint,
|
|
10
10
|
runConnect,
|
|
11
11
|
writeMcpServerEntry
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JSDCWIEZ.js";
|
|
13
13
|
import {
|
|
14
14
|
LANE_NAME_RE,
|
|
15
15
|
MODEL_RE,
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
saveClaudeToken,
|
|
36
36
|
untrustedBlock,
|
|
37
37
|
validateWorkerConfig
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-IZ553U5F.js";
|
|
39
39
|
import {
|
|
40
40
|
checkFreshness,
|
|
41
41
|
checkOnboardingStatus,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
runLogin,
|
|
55
55
|
startDeviceAuth,
|
|
56
56
|
waitForCliToken
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-7JBX3OAM.js";
|
|
58
58
|
import {
|
|
59
59
|
editorKeyCommand,
|
|
60
60
|
sanitizeApiKey,
|
|
@@ -94,11 +94,11 @@ import {
|
|
|
94
94
|
tryDeleteWorkerKey,
|
|
95
95
|
tryLoadKeyFromKeychain,
|
|
96
96
|
trySaveWorkerKey
|
|
97
|
-
} from "./chunk-
|
|
97
|
+
} from "./chunk-ARK7DLEO.js";
|
|
98
98
|
import {
|
|
99
99
|
MUSHI_CLI_VERSION,
|
|
100
100
|
MUSHI_MCP_PIN_SPEC
|
|
101
|
-
} from "./chunk-
|
|
101
|
+
} from "./chunk-3MLL4UA6.js";
|
|
102
102
|
import {
|
|
103
103
|
UNKNOWN_COMMAND_EXIT,
|
|
104
104
|
WIZARD_PROBE_ENV,
|
package/dist/init.js
CHANGED
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
sampleBugSnippet,
|
|
14
14
|
sanitizeSecret,
|
|
15
15
|
snippetTarget
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7JBX3OAM.js";
|
|
17
17
|
import "./chunk-O6RN5FT5.js";
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-ARK7DLEO.js";
|
|
19
|
+
import "./chunk-3MLL4UA6.js";
|
|
20
20
|
import "./chunk-AWASJDQI.js";
|
|
21
21
|
import "./chunk-2XODEIM4.js";
|
|
22
22
|
import "./chunk-LFP3NPZT.js";
|
package/dist/version.js
CHANGED
package/dist/wizard-bin.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runInit
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7JBX3OAM.js";
|
|
4
4
|
import "./chunk-O6RN5FT5.js";
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
import "./chunk-ARK7DLEO.js";
|
|
6
|
+
import "./chunk-3MLL4UA6.js";
|
|
7
7
|
import {
|
|
8
8
|
FLAGS_HELP,
|
|
9
9
|
UNKNOWN_COMMAND_EXIT,
|