@kwonye/mcpx 0.1.83 → 0.1.85
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/{cli-ak156908.js → cli-8tdwfb4w.js} +2 -2
- package/dist/{cli-gtf6cpsx.js → cli-dvj5waat.js} +3 -0
- package/dist/{cli-039cpsb5.js → cli-p2mah4z3.js} +3 -3
- package/dist/cli.js +4 -4
- package/dist/core/index.js +2 -2
- package/dist/core/registry.d.ts.map +1 -1
- package/dist/{registry-ae9sqbyf.js → registry-j53hz9d4.js} +1 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
SecretsManager,
|
|
8
8
|
ensureGatewayToken
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-dvj5waat.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureDir,
|
|
12
12
|
ensureParentDir,
|
|
@@ -3796,7 +3796,7 @@ async function buildStatusReport(config, managedIndex, daemon = getDaemonStatus(
|
|
|
3796
3796
|
const servers = serverNames.map((name) => {
|
|
3797
3797
|
const spec = config.servers[name];
|
|
3798
3798
|
let tokenCount = tokenCounts[name];
|
|
3799
|
-
if (tokenCount?.error && buildAuthBindings(spec).length > 0) {
|
|
3799
|
+
if (tokenCount?.error && buildAuthBindings(spec).length > 0 && tokenCount.total > 0) {
|
|
3800
3800
|
tokenCount = { ...tokenCount, error: undefined };
|
|
3801
3801
|
}
|
|
3802
3802
|
const serverEntry = {
|
|
@@ -65,12 +65,14 @@ function ensureGatewayToken(config, secrets) {
|
|
|
65
65
|
try {
|
|
66
66
|
const fileValue = fs.readFileSync(tokenPath, "utf8").trim();
|
|
67
67
|
if (fileValue) {
|
|
68
|
+
secrets.setSecret(secretName, fileValue);
|
|
68
69
|
return fileValue;
|
|
69
70
|
}
|
|
70
71
|
} catch {}
|
|
71
72
|
const token = crypto.randomBytes(32).toString("base64url");
|
|
72
73
|
ensureParentDir(tokenPath);
|
|
73
74
|
fs.writeFileSync(tokenPath, token, { mode: 384 });
|
|
75
|
+
secrets.setSecret(secretName, token);
|
|
74
76
|
return token;
|
|
75
77
|
}
|
|
76
78
|
function rotateGatewayToken(config, secrets) {
|
|
@@ -79,6 +81,7 @@ function rotateGatewayToken(config, secrets) {
|
|
|
79
81
|
const tokenPath = getGatewayTokenPath(secretName);
|
|
80
82
|
ensureParentDir(tokenPath);
|
|
81
83
|
fs.writeFileSync(tokenPath, token, { mode: 384 });
|
|
84
|
+
secrets.setSecret(secretName, token);
|
|
82
85
|
return token;
|
|
83
86
|
}
|
|
84
87
|
function registerProject(globalConfig, projectPath, name) {
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
SecretsManager,
|
|
8
8
|
ensureGatewayToken
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-dvj5waat.js";
|
|
10
10
|
import {
|
|
11
11
|
ensureDir,
|
|
12
12
|
ensureParentDir,
|
|
@@ -2208,7 +2208,7 @@ async function getOAuthAccessToken(serverName, spec, secrets, options = {}) {
|
|
|
2208
2208
|
}
|
|
2209
2209
|
|
|
2210
2210
|
// src/version.ts
|
|
2211
|
-
var APP_VERSION = "0.1.
|
|
2211
|
+
var APP_VERSION = "0.1.85";
|
|
2212
2212
|
|
|
2213
2213
|
// src/core/update.ts
|
|
2214
2214
|
import fs7 from "node:fs";
|
|
@@ -3796,7 +3796,7 @@ async function buildStatusReport(config, managedIndex, daemon = getDaemonStatus(
|
|
|
3796
3796
|
const servers = serverNames.map((name) => {
|
|
3797
3797
|
const spec = config.servers[name];
|
|
3798
3798
|
let tokenCount = tokenCounts[name];
|
|
3799
|
-
if (tokenCount?.error && buildAuthBindings(spec).length > 0) {
|
|
3799
|
+
if (tokenCount?.error && buildAuthBindings(spec).length > 0 && tokenCount.total > 0) {
|
|
3800
3800
|
tokenCount = { ...tokenCount, error: undefined };
|
|
3801
3801
|
}
|
|
3802
3802
|
const serverEntry = {
|
package/dist/cli.js
CHANGED
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
stopDaemon,
|
|
39
39
|
syncAllClients,
|
|
40
40
|
toSecretRef
|
|
41
|
-
} from "./cli-
|
|
41
|
+
} from "./cli-p2mah4z3.js";
|
|
42
42
|
import {
|
|
43
43
|
loadConfig,
|
|
44
44
|
loadMergedConfig,
|
|
@@ -56,7 +56,7 @@ import {
|
|
|
56
56
|
removeServer,
|
|
57
57
|
rotateGatewayToken,
|
|
58
58
|
setServerEnabled
|
|
59
|
-
} from "./cli-
|
|
59
|
+
} from "./cli-dvj5waat.js";
|
|
60
60
|
import {
|
|
61
61
|
getConfigPath,
|
|
62
62
|
getManagedIndexPath,
|
|
@@ -2316,7 +2316,7 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2316
2316
|
saveProjectConfig2(localConfig, targetPath);
|
|
2317
2317
|
process.stdout.write(`Initialized project configuration at: ${targetPath}
|
|
2318
2318
|
`);
|
|
2319
|
-
const { registerProject: registerProject2 } = await import("./registry-
|
|
2319
|
+
const { registerProject: registerProject2 } = await import("./registry-j53hz9d4.js");
|
|
2320
2320
|
const globalConfig = loadConfig();
|
|
2321
2321
|
registerProject2(globalConfig, process.cwd(), projectName);
|
|
2322
2322
|
saveConfig(globalConfig);
|
|
@@ -2347,7 +2347,7 @@ function registerProjectCommands(program, cliPath) {
|
|
|
2347
2347
|
process.exit(1);
|
|
2348
2348
|
}
|
|
2349
2349
|
const entry = globalConfig.projects[resolvedPath];
|
|
2350
|
-
const { unregisterProject: unregisterProject2 } = await import("./registry-
|
|
2350
|
+
const { unregisterProject: unregisterProject2 } = await import("./registry-j53hz9d4.js");
|
|
2351
2351
|
unregisterProject2(globalConfig, resolvedPath);
|
|
2352
2352
|
saveConfig(globalConfig);
|
|
2353
2353
|
process.stdout.write(`Unregistered project "${entry.name}" (${resolvedPath}) from the global configuration.
|
package/dist/core/index.js
CHANGED
|
@@ -41,7 +41,7 @@ import {
|
|
|
41
41
|
stopDaemon,
|
|
42
42
|
syncAllClients,
|
|
43
43
|
toSecretRef
|
|
44
|
-
} from "../cli-
|
|
44
|
+
} from "../cli-p2mah4z3.js";
|
|
45
45
|
import {
|
|
46
46
|
defaultConfig,
|
|
47
47
|
loadConfig,
|
|
@@ -62,7 +62,7 @@ import {
|
|
|
62
62
|
setServerEnabled,
|
|
63
63
|
unregisterProject,
|
|
64
64
|
updateServer
|
|
65
|
-
} from "../cli-
|
|
65
|
+
} from "../cli-dvj5waat.js";
|
|
66
66
|
import {
|
|
67
67
|
getConfigPath,
|
|
68
68
|
getManagedIndexPath
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/core/registry.ts"],"names":[],"mappings":"AAGA,OAAO,EAA8B,KAAK,UAAU,EAAE,KAAK,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACnG,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAG9C,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAIrD;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,UAAQ,GAAG,IAAI,CAQzG;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,UAAQ,GAAG,IAAI,CAMlF;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,GAAG,IAAI,CAQ7F;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAUzF;AAED,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAMpE;AAED,wBAAgB,kB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