repowisestage 0.0.37 → 0.0.38
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 -12
- package/package.json +1 -1
package/dist/bin/repowise.js
CHANGED
|
@@ -2737,6 +2737,7 @@ async function stopListener() {
|
|
|
2737
2737
|
}
|
|
2738
2738
|
|
|
2739
2739
|
// ../listener/dist/mcp/bootstrap.js
|
|
2740
|
+
init_config_dir();
|
|
2740
2741
|
import { join as join17 } from "path";
|
|
2741
2742
|
|
|
2742
2743
|
// ../listener/dist/lsp/workspace-session.js
|
|
@@ -3355,6 +3356,7 @@ var PathEscapeError = class extends Error {
|
|
|
3355
3356
|
};
|
|
3356
3357
|
|
|
3357
3358
|
// ../listener/dist/mcp/graph-cache.js
|
|
3359
|
+
init_config_dir();
|
|
3358
3360
|
import { readFile as readFile8, stat as stat3 } from "fs/promises";
|
|
3359
3361
|
import { join as join15 } from "path";
|
|
3360
3362
|
var EVICT_DEBOUNCE_MS = 6e4;
|
|
@@ -3460,8 +3462,7 @@ function createGraphCache(options = {}) {
|
|
|
3460
3462
|
};
|
|
3461
3463
|
}
|
|
3462
3464
|
function defaultRepoWiseHome() {
|
|
3463
|
-
|
|
3464
|
-
return join15(home, ".repowise");
|
|
3465
|
+
return getConfigDir();
|
|
3465
3466
|
}
|
|
3466
3467
|
|
|
3467
3468
|
// ../listener/dist/mcp/graph-downloader.js
|
|
@@ -3878,6 +3879,7 @@ async function isLocallyConsented(flagPath2) {
|
|
|
3878
3879
|
}
|
|
3879
3880
|
|
|
3880
3881
|
// ../listener/dist/mcp/mcp-server.js
|
|
3882
|
+
init_config_dir();
|
|
3881
3883
|
import { createServer } from "http";
|
|
3882
3884
|
import { mkdir as mkdir13, writeFile as writeFile13 } from "fs/promises";
|
|
3883
3885
|
import { dirname as dirname10, join as join16 } from "path";
|
|
@@ -5233,8 +5235,7 @@ function extractBearer(header) {
|
|
|
5233
5235
|
return m ? m[1] : null;
|
|
5234
5236
|
}
|
|
5235
5237
|
function defaultEndpointFile() {
|
|
5236
|
-
|
|
5237
|
-
return join16(home, ".repowise", "listener.endpoint");
|
|
5238
|
+
return join16(getConfigDir(), "listener.endpoint");
|
|
5238
5239
|
}
|
|
5239
5240
|
|
|
5240
5241
|
// ../listener/dist/mcp/bootstrap.js
|
|
@@ -5410,12 +5411,10 @@ async function startMcp(options) {
|
|
|
5410
5411
|
};
|
|
5411
5412
|
}
|
|
5412
5413
|
function defaultGraphsDir() {
|
|
5413
|
-
|
|
5414
|
-
return join17(home, ".repowise", "graphs");
|
|
5414
|
+
return join17(getConfigDir(), "graphs");
|
|
5415
5415
|
}
|
|
5416
5416
|
function defaultMcpHome() {
|
|
5417
|
-
|
|
5418
|
-
return join17(home, ".repowise");
|
|
5417
|
+
return getConfigDir();
|
|
5419
5418
|
}
|
|
5420
5419
|
|
|
5421
5420
|
// ../listener/dist/typed-resolution/resolver-loop.js
|
|
@@ -6143,13 +6142,13 @@ async function startListener() {
|
|
|
6143
6142
|
const fresh = await getValidCredentials();
|
|
6144
6143
|
if (!fresh)
|
|
6145
6144
|
throw new Error("no credentials for MCP graph fetch");
|
|
6146
|
-
return fresh.
|
|
6145
|
+
return fresh.accessToken;
|
|
6147
6146
|
},
|
|
6148
6147
|
getAuthTokenForceRefresh: async () => {
|
|
6149
6148
|
const fresh = await getValidCredentials({ forceRefresh: true });
|
|
6150
6149
|
if (!fresh)
|
|
6151
6150
|
throw new Error("no credentials for MCP log upload refresh");
|
|
6152
|
-
return fresh.
|
|
6151
|
+
return fresh.accessToken;
|
|
6153
6152
|
}
|
|
6154
6153
|
});
|
|
6155
6154
|
if (mcpRuntime.server) {
|
|
@@ -6172,13 +6171,13 @@ async function startListener() {
|
|
|
6172
6171
|
const fresh = await getValidCredentials();
|
|
6173
6172
|
if (!fresh)
|
|
6174
6173
|
throw new Error("no credentials for typed-resolution");
|
|
6175
|
-
return fresh.
|
|
6174
|
+
return fresh.accessToken;
|
|
6176
6175
|
},
|
|
6177
6176
|
getAuthTokenForceRefresh: async () => {
|
|
6178
6177
|
const fresh = await getValidCredentials({ forceRefresh: true });
|
|
6179
6178
|
if (!fresh)
|
|
6180
6179
|
throw new Error("no credentials for typed-resolution refresh");
|
|
6181
|
-
return fresh.
|
|
6180
|
+
return fresh.accessToken;
|
|
6182
6181
|
}
|
|
6183
6182
|
}) : null;
|
|
6184
6183
|
const shutdown = async () => {
|