repowisestage 0.0.42 → 0.0.44
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/bin/repowise.js +11 -9
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -3103,11 +3103,13 @@ async function resolveNpmCommand() {
|
|
|
3103
3103
|
}
|
|
3104
3104
|
async function runNpmInstall(cwd, pkg2) {
|
|
3105
3105
|
const npmCmd = await resolveNpmCommand();
|
|
3106
|
+
const nodeDir = dirname5(process.execPath);
|
|
3107
|
+
const augmentedPath = process.env.PATH ? `${nodeDir}:${process.env.PATH}` : nodeDir;
|
|
3106
3108
|
return new Promise((resolve4, reject) => {
|
|
3107
3109
|
const child = spawn3(npmCmd, ["install", "--no-audit", "--no-fund", "--silent", pkg2], {
|
|
3108
3110
|
cwd,
|
|
3109
3111
|
stdio: ["ignore", "pipe", "pipe"],
|
|
3110
|
-
env: { ...process.env }
|
|
3112
|
+
env: { ...process.env, PATH: augmentedPath }
|
|
3111
3113
|
});
|
|
3112
3114
|
let stderr = "";
|
|
3113
3115
|
child.stderr.on("data", (chunk) => {
|
|
@@ -5729,7 +5731,7 @@ var claudeCodeWriter = {
|
|
|
5729
5731
|
const status2 = await writeMergedConfig({
|
|
5730
5732
|
path,
|
|
5731
5733
|
serverName: `repowise-${ctx.repoId}`,
|
|
5732
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5734
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5733
5735
|
});
|
|
5734
5736
|
return { status: status2, path };
|
|
5735
5737
|
},
|
|
@@ -5762,7 +5764,7 @@ var clineWriter = {
|
|
|
5762
5764
|
const status2 = await writeMergedConfig({
|
|
5763
5765
|
path,
|
|
5764
5766
|
serverName: `repowise-${ctx.repoId}`,
|
|
5765
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5767
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5766
5768
|
});
|
|
5767
5769
|
return { status: status2, path };
|
|
5768
5770
|
},
|
|
@@ -5792,7 +5794,7 @@ var codexWriter = {
|
|
|
5792
5794
|
const status2 = await writeMergedConfig({
|
|
5793
5795
|
path,
|
|
5794
5796
|
serverName: `repowise-${ctx.repoId}`,
|
|
5795
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5797
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5796
5798
|
});
|
|
5797
5799
|
return { status: status2, path };
|
|
5798
5800
|
},
|
|
@@ -5822,7 +5824,7 @@ var copilotWriter = {
|
|
|
5822
5824
|
const status2 = await writeMergedConfig({
|
|
5823
5825
|
path,
|
|
5824
5826
|
serverName: `repowise-${ctx.repoId}`,
|
|
5825
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5827
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5826
5828
|
});
|
|
5827
5829
|
return { status: status2, path };
|
|
5828
5830
|
},
|
|
@@ -5852,7 +5854,7 @@ var cursorWriter = {
|
|
|
5852
5854
|
const status2 = await writeMergedConfig({
|
|
5853
5855
|
path,
|
|
5854
5856
|
serverName: `repowise-${ctx.repoId}`,
|
|
5855
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5857
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5856
5858
|
});
|
|
5857
5859
|
return { status: status2, path };
|
|
5858
5860
|
},
|
|
@@ -5882,7 +5884,7 @@ var geminiCliWriter = {
|
|
|
5882
5884
|
const status2 = await writeMergedConfig({
|
|
5883
5885
|
path,
|
|
5884
5886
|
serverName: `repowise-${ctx.repoId}`,
|
|
5885
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5887
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5886
5888
|
});
|
|
5887
5889
|
return { status: status2, path };
|
|
5888
5890
|
},
|
|
@@ -5914,7 +5916,7 @@ var rooWriter = {
|
|
|
5914
5916
|
const status2 = await writeMergedConfig({
|
|
5915
5917
|
path,
|
|
5916
5918
|
serverName: `repowise-${ctx.repoId}`,
|
|
5917
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5919
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5918
5920
|
});
|
|
5919
5921
|
return { status: status2, path };
|
|
5920
5922
|
},
|
|
@@ -5945,7 +5947,7 @@ var windsurfWriter = {
|
|
|
5945
5947
|
const status2 = await writeMergedConfig({
|
|
5946
5948
|
path,
|
|
5947
5949
|
serverName: `repowise-${ctx.repoId}`,
|
|
5948
|
-
spec: { command: ctx.shimCmd, args: ["--repo-id", ctx.repoId] }
|
|
5950
|
+
spec: { command: ctx.shimCmd, args: ["mcp-shim", "--repo-id", ctx.repoId] }
|
|
5949
5951
|
});
|
|
5950
5952
|
return { status: status2, path };
|
|
5951
5953
|
},
|