@mushi-mushi/cli 0.37.1 → 0.37.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/{chunk-STITR7EL.js → chunk-5IWVPXSZ.js} +2 -2
- package/dist/{chunk-GGIRTNKP.js → chunk-NP4I7OFD.js} +1 -1
- package/dist/{chunk-P6DI2XN7.js → chunk-O7VVIYYE.js} +1 -1
- package/dist/{chunk-GZ2WEGNU.js → chunk-TPDK6BVO.js} +1 -1
- package/dist/{chunk-IMASP6GK.js → chunk-VMPVQL26.js} +1 -1
- package/dist/{chunk-SP55DHLD.js → chunk-ZOC2HI4D.js} +13 -6
- package/dist/{connect-224IWYXE.js → connect-6GMMSSE2.js} +2 -2
- package/dist/{connect-YO4W7TAV.js → connect-AJ7OD4CE.js} +3 -3
- package/dist/{daemon-WUYNF5E5.js → daemon-ISF6BNDH.js} +3 -3
- package/dist/index.js +6 -6
- package/dist/init.js +3 -3
- package/dist/{version-JSSHATRX.js → version-6CFPSCG6.js} +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
requireUuid,
|
|
10
10
|
saveConfig,
|
|
11
11
|
savedSdkKeyFor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-O7VVIYYE.js";
|
|
13
13
|
import {
|
|
14
14
|
MUSHI_MCP_PIN_SPEC
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-TPDK6BVO.js";
|
|
16
16
|
import {
|
|
17
17
|
assertEndpoint,
|
|
18
18
|
normalizeEndpoint
|
|
@@ -8,10 +8,10 @@ import {
|
|
|
8
8
|
requireConfig,
|
|
9
9
|
requireUuid,
|
|
10
10
|
tryLoadWorkerKey
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O7VVIYYE.js";
|
|
12
12
|
import {
|
|
13
13
|
MUSHI_CLI_VERSION
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TPDK6BVO.js";
|
|
15
15
|
|
|
16
16
|
// src/worker/daemon.ts
|
|
17
17
|
import { existsSync as existsSync6, readFileSync as readFileSync5 } from "fs";
|
|
@@ -1510,10 +1510,17 @@ async function commitWithHooks(wt, args, log) {
|
|
|
1510
1510
|
try {
|
|
1511
1511
|
await git(wt, ["commit", ...args]);
|
|
1512
1512
|
} catch (err) {
|
|
1513
|
-
if (!(err instanceof Error)
|
|
1514
|
-
|
|
1515
|
-
|
|
1513
|
+
if (!(err instanceof Error)) throw err;
|
|
1514
|
+
if (isMissingModuleFailure(err.message)) {
|
|
1515
|
+
log(" commit: a hook could not find a package; installing dependencies and committing again");
|
|
1516
|
+
await installDeps(wt, log);
|
|
1517
|
+
await git(wt, ["commit", ...args]);
|
|
1518
|
+
return;
|
|
1519
|
+
}
|
|
1520
|
+
if (!/hook steps failed:|husky - pre-commit|pre-commit hook/i.test(err.message)) throw err;
|
|
1521
|
+
log(` commit: a pre-commit hook failed (${err.message.replace(/^git commit failed: /, "").slice(0, 200)}); running the hooks once more on the same change`);
|
|
1516
1522
|
await git(wt, ["commit", ...args]);
|
|
1523
|
+
log(" commit: the hooks passed the second time, so the first failure was this machine, not the change");
|
|
1517
1524
|
}
|
|
1518
1525
|
}
|
|
1519
1526
|
function isHookRejection(message) {
|
|
@@ -1606,7 +1613,7 @@ function registerWorkCommands(program) {
|
|
|
1606
1613
|
if (opts.repoDir || opts.report || opts.followups || opts.recheck) {
|
|
1607
1614
|
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");
|
|
1608
1615
|
}
|
|
1609
|
-
const { runDaemon: runDaemon2 } = await import("./daemon-
|
|
1616
|
+
const { runDaemon: runDaemon2 } = await import("./daemon-ISF6BNDH.js");
|
|
1610
1617
|
await runDaemon2({ configPath: opts.workerConfig, ...opts.agent !== void 0 ? { agent } : {}, ...opts.anyRepo ? { anyRepo: true } : {} });
|
|
1611
1618
|
return;
|
|
1612
1619
|
}
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
saveConfig,
|
|
7
7
|
savedSdkKeyFor,
|
|
8
8
|
waitForIngestReady
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NP4I7OFD.js";
|
|
10
10
|
import {
|
|
11
11
|
MUSHI_MCP_PIN_SPEC
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VMPVQL26.js";
|
|
13
13
|
import {
|
|
14
14
|
detectFramework,
|
|
15
15
|
envVarsToWrite,
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import {
|
|
3
3
|
resolveSdkEnvKey,
|
|
4
4
|
runConnect
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5IWVPXSZ.js";
|
|
6
6
|
import "./chunk-KOBEOGNF.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-O7VVIYYE.js";
|
|
8
|
+
import "./chunk-TPDK6BVO.js";
|
|
9
9
|
import "./chunk-LGGE3LH7.js";
|
|
10
10
|
export {
|
|
11
11
|
resolveSdkEnvKey,
|
|
@@ -10,9 +10,9 @@ import {
|
|
|
10
10
|
readWorkerKey,
|
|
11
11
|
runDaemon,
|
|
12
12
|
workerHostId
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-ZOC2HI4D.js";
|
|
14
|
+
import "./chunk-O7VVIYYE.js";
|
|
15
|
+
import "./chunk-TPDK6BVO.js";
|
|
16
16
|
import "./chunk-LGGE3LH7.js";
|
|
17
17
|
export {
|
|
18
18
|
assertWorkerKey,
|
package/dist/index.js
CHANGED
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sanitizeEndpoint,
|
|
23
23
|
sanitizeProjectId,
|
|
24
24
|
writeMcpServerEntry
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-5IWVPXSZ.js";
|
|
26
26
|
import {
|
|
27
27
|
FRAMEWORKS,
|
|
28
28
|
detectFramework,
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
registerUxCommands,
|
|
51
51
|
registerWorkCommands,
|
|
52
52
|
validateWorkerConfig
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-ZOC2HI4D.js";
|
|
54
54
|
import {
|
|
55
55
|
CONFIG_PATH,
|
|
56
56
|
MushiCliError,
|
|
@@ -89,11 +89,11 @@ import {
|
|
|
89
89
|
tryLoadKeyFromKeychain,
|
|
90
90
|
trySaveKeyToKeychain,
|
|
91
91
|
trySaveWorkerKey
|
|
92
|
-
} from "./chunk-
|
|
92
|
+
} from "./chunk-O7VVIYYE.js";
|
|
93
93
|
import {
|
|
94
94
|
MUSHI_CLI_VERSION,
|
|
95
95
|
MUSHI_MCP_PIN_SPEC
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-TPDK6BVO.js";
|
|
97
97
|
import {
|
|
98
98
|
CLOUD_API_ENDPOINT,
|
|
99
99
|
CLOUD_MCP_OAUTH_URL,
|
|
@@ -1609,7 +1609,7 @@ async function checkOnboardingStatus(config, _consoleBase, cwd, doFetch = global
|
|
|
1609
1609
|
}
|
|
1610
1610
|
async function checkVersionDrift(cwd, doFetch) {
|
|
1611
1611
|
const checks = [];
|
|
1612
|
-
const { MUSHI_CLI_VERSION: MUSHI_CLI_VERSION2 } = await import("./version-
|
|
1612
|
+
const { MUSHI_CLI_VERSION: MUSHI_CLI_VERSION2 } = await import("./version-6CFPSCG6.js");
|
|
1613
1613
|
if (MUSHI_CLI_VERSION2 === "0.0.0-dev") return checks;
|
|
1614
1614
|
const parse2 = (v) => {
|
|
1615
1615
|
const m = v.replace(/^[~^]/, "").match(/^(\d+)\.(\d+)\.(\d+)/);
|
|
@@ -2582,7 +2582,7 @@ async function maybeOfferConnect(credentials, options, _consoleBase) {
|
|
|
2582
2582
|
if (p.isCancel(answer) || !answer) return;
|
|
2583
2583
|
const endpoint = resolveCloudEndpoint(options.endpoint);
|
|
2584
2584
|
try {
|
|
2585
|
-
const { runConnect: runConnect2 } = await import("./connect-
|
|
2585
|
+
const { runConnect: runConnect2 } = await import("./connect-AJ7OD4CE.js");
|
|
2586
2586
|
const saved = loadConfig();
|
|
2587
2587
|
const result = await runConnect2(
|
|
2588
2588
|
{
|
package/dist/init.js
CHANGED
|
@@ -25,10 +25,10 @@ import {
|
|
|
25
25
|
saveConfig,
|
|
26
26
|
savedSdkKeyFor,
|
|
27
27
|
trySaveKeyToKeychain
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NP4I7OFD.js";
|
|
29
29
|
import {
|
|
30
30
|
MUSHI_CLI_VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-VMPVQL26.js";
|
|
32
32
|
import {
|
|
33
33
|
FRAMEWORKS,
|
|
34
34
|
detectFramework,
|
|
@@ -2127,7 +2127,7 @@ async function maybeOfferConnect(credentials, options, _consoleBase) {
|
|
|
2127
2127
|
if (p.isCancel(answer) || !answer) return;
|
|
2128
2128
|
const endpoint = resolveCloudEndpoint(options.endpoint);
|
|
2129
2129
|
try {
|
|
2130
|
-
const { runConnect } = await import("./connect-
|
|
2130
|
+
const { runConnect } = await import("./connect-6GMMSSE2.js");
|
|
2131
2131
|
const saved = loadConfig();
|
|
2132
2132
|
const result = await runConnect(
|
|
2133
2133
|
{
|
package/dist/version.js
CHANGED
package/package.json
CHANGED