@kwonye/mcpx 0.1.106 → 0.1.107
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-hahs24dv.js → chunk-131c6axh.js} +3 -3
- package/dist/{chunk-a2gen8bn.js → chunk-2qbt2pxv.js} +51 -26
- package/dist/{chunk-h9kp47rp.js → chunk-3j4g9141.js} +6 -6
- package/dist/{chunk-wvzap0na.js → chunk-5r4vs8ct.js} +10 -10
- package/dist/{chunk-7rq88hb3.js → chunk-9bjabsqb.js} +4 -4
- package/dist/chunk-9jqdtz2y.js +26 -0
- package/dist/{chunk-jv0s0cp6.js → chunk-ad74zhbk.js} +3 -3
- package/dist/{chunk-27mq4agf.js → chunk-eqcsd1kw.js} +3 -3
- package/dist/{chunk-wztmp5b4.js → chunk-f7w0a9nn.js} +83 -20
- package/dist/{chunk-v041118a.js → chunk-h2ex6pmn.js} +9 -9
- package/dist/{chunk-chaj8a8b.js → chunk-jncje8g1.js} +19 -4
- package/dist/{chunk-yj7mpczw.js → chunk-kjd00ez5.js} +9 -9
- package/dist/{chunk-1v66g9d6.js → chunk-mazydv41.js} +2 -2
- package/dist/{chunk-xvqr1q9b.js → chunk-mkf7gc7q.js} +2 -2
- package/dist/{chunk-1mrkz29t.js → chunk-mztnw25b.js} +6 -6
- package/dist/{chunk-qf8bj9y7.js → chunk-n5ahyh0j.js} +5 -5
- package/dist/{chunk-4aafp444.js → chunk-naeqpnmf.js} +7 -7
- package/dist/{chunk-yr0txkw0.js → chunk-nx22h1y3.js} +12 -10
- package/dist/{chunk-8v13hqrp.js → chunk-qg1rbk0d.js} +2 -2
- package/dist/{chunk-4xym942z.js → chunk-r1aebtwm.js} +12 -12
- package/dist/{chunk-brxwa30j.js → chunk-rbra8ws6.js} +1 -1
- package/dist/{chunk-grkz21sq.js → chunk-vnka4jbe.js} +13 -3
- package/dist/{chunk-t20f49g3.js → chunk-z4j5q2x0.js} +1 -1
- package/dist/{chunk-nh6hhv29.js → chunk-z7ykm4da.js} +3 -3
- package/dist/{chunk-ew06e41w.js → chunk-zmf014br.js} +10 -10
- package/dist/cli.js +41 -41
- package/dist/core/control.d.ts +6 -0
- package/dist/core/file-state.d.ts +2 -0
- package/dist/core/index.js +14 -14
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-e96643mj.js +0 -26
|
@@ -1,15 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
sha256
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-vnka4jbe.js";
|
|
4
4
|
|
|
5
5
|
// src/core/file-state.ts
|
|
6
6
|
import fs from "node:fs";
|
|
7
7
|
import path from "node:path";
|
|
8
|
+
function normalizeLinkContent(linkPath, raw) {
|
|
9
|
+
if (process.platform !== "win32")
|
|
10
|
+
return raw;
|
|
11
|
+
const paths = path.win32;
|
|
12
|
+
let target = raw;
|
|
13
|
+
if (target.startsWith("\\\\?\\UNC\\"))
|
|
14
|
+
target = `\\\\${target.slice(8)}`;
|
|
15
|
+
else if (target.startsWith("\\\\?\\"))
|
|
16
|
+
target = target.slice(4);
|
|
17
|
+
if (!/^[a-zA-Z]:\\?$/.test(target))
|
|
18
|
+
target = target.replace(/[\\/]+$/, "");
|
|
19
|
+
if (!paths.isAbsolute(target))
|
|
20
|
+
return target.replaceAll("/", "\\");
|
|
21
|
+
return paths.relative(paths.dirname(linkPath), target);
|
|
22
|
+
}
|
|
8
23
|
function pathFingerprint(target) {
|
|
9
24
|
try {
|
|
10
25
|
const stat = fs.lstatSync(target);
|
|
11
26
|
if (stat.isSymbolicLink())
|
|
12
|
-
return sha256(`link:${fs.readlinkSync(target)}`);
|
|
27
|
+
return sha256(`link:${normalizeLinkContent(target, fs.readlinkSync(target))}`);
|
|
13
28
|
if (stat.isDirectory())
|
|
14
29
|
return sha256(JSON.stringify(fs.readdirSync(target).sort().map((name) => [name, pathFingerprint(path.join(target, name))])));
|
|
15
30
|
return sha256(fs.readFileSync(target).toString("base64"));
|
|
@@ -40,6 +55,6 @@ function lockOwnerAlive(lockPath) {
|
|
|
40
55
|
}
|
|
41
56
|
}
|
|
42
57
|
|
|
43
|
-
export { pathFingerprint, processAlive, lockOwnerAlive };
|
|
58
|
+
export { normalizeLinkContent, pathFingerprint, processAlive, lockOwnerAlive };
|
|
44
59
|
|
|
45
|
-
//# debugId=
|
|
60
|
+
//# debugId=B87555A9B022F0E264756E2164756E21
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolvePluginId,
|
|
3
3
|
resolvePluginVars
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import"./chunk-
|
|
6
|
-
import"./chunk-
|
|
7
|
-
import"./chunk-
|
|
8
|
-
import"./chunk-
|
|
9
|
-
import"./chunk-
|
|
10
|
-
import"./chunk-
|
|
4
|
+
} from "./chunk-naeqpnmf.js";
|
|
5
|
+
import"./chunk-f7w0a9nn.js";
|
|
6
|
+
import"./chunk-qg1rbk0d.js";
|
|
7
|
+
import"./chunk-z4j5q2x0.js";
|
|
8
|
+
import"./chunk-131c6axh.js";
|
|
9
|
+
import"./chunk-jncje8g1.js";
|
|
10
|
+
import"./chunk-9bjabsqb.js";
|
|
11
11
|
import {
|
|
12
12
|
loadConfig
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-rbra8ws6.js";
|
|
14
14
|
import"./chunk-p7yzyt87.js";
|
|
15
|
-
import"./chunk-
|
|
15
|
+
import"./chunk-vnka4jbe.js";
|
|
16
16
|
import"./chunk-bjw71y54.js";
|
|
17
17
|
import"./chunk-wj4tjacg.js";
|
|
18
18
|
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
resolveActiveConfig,
|
|
9
9
|
saveConfig,
|
|
10
10
|
saveProjectConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-rbra8ws6.js";
|
|
12
12
|
import"./chunk-p7yzyt87.js";
|
|
13
|
-
import"./chunk-
|
|
13
|
+
import"./chunk-vnka4jbe.js";
|
|
14
14
|
import"./chunk-bjw71y54.js";
|
|
15
15
|
import"./chunk-wj4tjacg.js";
|
|
16
16
|
export {
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
hasManifest,
|
|
6
6
|
readManifest,
|
|
7
7
|
uninstallPlugin
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-naeqpnmf.js";
|
|
9
9
|
import {
|
|
10
10
|
mutateConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-131c6axh.js";
|
|
12
12
|
import {
|
|
13
13
|
PluginCache
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-9bjabsqb.js";
|
|
15
15
|
import {
|
|
16
16
|
loadConfig
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-rbra8ws6.js";
|
|
18
18
|
import {
|
|
19
19
|
exports_external
|
|
20
20
|
} from "./chunk-p7yzyt87.js";
|
|
21
21
|
import {
|
|
22
22
|
ensureDir,
|
|
23
23
|
getMarketplaceCacheRoot
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-vnka4jbe.js";
|
|
25
25
|
import {
|
|
26
26
|
__require
|
|
27
27
|
} from "./chunk-wj4tjacg.js";
|
|
@@ -593,7 +593,7 @@ async function refreshMarketplaceWithPlugins(name) {
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
if (updated.length > 0) {
|
|
596
|
-
const { pluginSync } = await import("./chunk-
|
|
596
|
+
const { pluginSync } = await import("./chunk-h2ex6pmn.js");
|
|
597
597
|
await pluginSync();
|
|
598
598
|
}
|
|
599
599
|
return { marketplace, updated, errors };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
mutateConfig
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-131c6axh.js";
|
|
4
4
|
import {
|
|
5
5
|
listSkills,
|
|
6
6
|
validateSkillId,
|
|
7
7
|
validateSkillPackage
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-9bjabsqb.js";
|
|
9
9
|
import {
|
|
10
10
|
loadConfig
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-rbra8ws6.js";
|
|
12
12
|
import {
|
|
13
13
|
exports_external
|
|
14
14
|
} from "./chunk-p7yzyt87.js";
|
|
15
15
|
import {
|
|
16
16
|
ensureDir,
|
|
17
17
|
getSkillsDir
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-vnka4jbe.js";
|
|
19
19
|
import {
|
|
20
20
|
__require
|
|
21
21
|
} from "./chunk-wj4tjacg.js";
|
|
@@ -233,7 +233,7 @@ async function importEnvironment(sourceDirectory, options = {}) {
|
|
|
233
233
|
const importedPlugins = [];
|
|
234
234
|
for (const entry of environment.plugins) {
|
|
235
235
|
const packagePath = resolveSharePath(root, entry.path);
|
|
236
|
-
const { installPlugin } = await import("./chunk-
|
|
236
|
+
const { installPlugin } = await import("./chunk-h2ex6pmn.js");
|
|
237
237
|
await installPlugin(packagePath, { name: entry.id, enabled: true });
|
|
238
238
|
importedPlugins.push(entry.id);
|
|
239
239
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
localCliCommand,
|
|
3
3
|
synchronizeClients
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-f7w0a9nn.js";
|
|
5
5
|
import {
|
|
6
6
|
SecretsManager
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-qg1rbk0d.js";
|
|
8
8
|
import {
|
|
9
9
|
mutateConfig
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-131c6axh.js";
|
|
11
11
|
import {
|
|
12
12
|
PluginCache,
|
|
13
13
|
normalizePluginName,
|
|
14
14
|
parseSource
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-9bjabsqb.js";
|
|
16
16
|
import {
|
|
17
17
|
loadConfig
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-rbra8ws6.js";
|
|
19
19
|
import {
|
|
20
20
|
exports_external
|
|
21
21
|
} from "./chunk-p7yzyt87.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getPluginDataRoot,
|
|
28
28
|
readJsonFile,
|
|
29
29
|
writeJsonAtomic
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-vnka4jbe.js";
|
|
31
31
|
import {
|
|
32
32
|
__export,
|
|
33
33
|
__require,
|
|
@@ -10373,7 +10373,7 @@ async function updatePlugin(nameOrId) {
|
|
|
10373
10373
|
if (config.plugins?.[id]?.pinned)
|
|
10374
10374
|
throw new Error(`Plugin ${nameOrId} is pinned; unpin it before updating`);
|
|
10375
10375
|
if (config.plugins?.[id]?.marketplace) {
|
|
10376
|
-
const { updateMarketplaceInstalledPlugin } = await import("./chunk-
|
|
10376
|
+
const { updateMarketplaceInstalledPlugin } = await import("./chunk-zmf014br.js");
|
|
10377
10377
|
return updateMarketplaceInstalledPlugin(id);
|
|
10378
10378
|
}
|
|
10379
10379
|
return manager.updatePlugin(id);
|
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CONTROL_VERSION,
|
|
3
|
+
controlConnectOptions,
|
|
3
4
|
controlRequest,
|
|
4
5
|
controlSocketPath,
|
|
5
6
|
coordinate,
|
|
6
7
|
ensureControlService,
|
|
7
8
|
startControlServer,
|
|
8
9
|
subscribeControlEvents
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import"./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-2qbt2pxv.js";
|
|
11
|
+
import"./chunk-f7w0a9nn.js";
|
|
12
|
+
import"./chunk-qg1rbk0d.js";
|
|
13
|
+
import"./chunk-z4j5q2x0.js";
|
|
14
|
+
import"./chunk-131c6axh.js";
|
|
15
|
+
import"./chunk-jncje8g1.js";
|
|
16
|
+
import"./chunk-9bjabsqb.js";
|
|
17
|
+
import"./chunk-rbra8ws6.js";
|
|
17
18
|
import"./chunk-p7yzyt87.js";
|
|
18
|
-
import"./chunk-
|
|
19
|
+
import"./chunk-vnka4jbe.js";
|
|
19
20
|
import"./chunk-bjw71y54.js";
|
|
20
21
|
import"./chunk-wj4tjacg.js";
|
|
21
22
|
export {
|
|
22
23
|
CONTROL_VERSION,
|
|
24
|
+
controlConnectOptions,
|
|
23
25
|
controlRequest,
|
|
24
26
|
controlSocketPath,
|
|
25
27
|
coordinate,
|
|
@@ -28,4 +30,4 @@ export {
|
|
|
28
30
|
subscribeControlEvents
|
|
29
31
|
};
|
|
30
32
|
|
|
31
|
-
//# debugId=
|
|
33
|
+
//# debugId=EFF7EF9CDB440CFC64756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lockOwnerAlive
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-jncje8g1.js";
|
|
4
4
|
import {
|
|
5
5
|
exports_external
|
|
6
6
|
} from "./chunk-p7yzyt87.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getSecretsStorePath,
|
|
13
13
|
readJsonFile,
|
|
14
14
|
writeJsonAtomic
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-vnka4jbe.js";
|
|
16
16
|
import {
|
|
17
17
|
isServerEnabled,
|
|
18
18
|
normalizeServerSpecEnabled
|
|
@@ -7,19 +7,19 @@ import {
|
|
|
7
7
|
runDaemonForeground,
|
|
8
8
|
startDaemon,
|
|
9
9
|
stopDaemon
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import"./chunk-
|
|
12
|
-
import"./chunk-
|
|
13
|
-
import"./chunk-
|
|
14
|
-
import"./chunk-
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import"./chunk-
|
|
19
|
-
import"./chunk-
|
|
20
|
-
import"./chunk-
|
|
10
|
+
} from "./chunk-5r4vs8ct.js";
|
|
11
|
+
import"./chunk-mztnw25b.js";
|
|
12
|
+
import"./chunk-naeqpnmf.js";
|
|
13
|
+
import"./chunk-2qbt2pxv.js";
|
|
14
|
+
import"./chunk-f7w0a9nn.js";
|
|
15
|
+
import"./chunk-qg1rbk0d.js";
|
|
16
|
+
import"./chunk-z4j5q2x0.js";
|
|
17
|
+
import"./chunk-131c6axh.js";
|
|
18
|
+
import"./chunk-jncje8g1.js";
|
|
19
|
+
import"./chunk-9bjabsqb.js";
|
|
20
|
+
import"./chunk-rbra8ws6.js";
|
|
21
21
|
import"./chunk-p7yzyt87.js";
|
|
22
|
-
import"./chunk-
|
|
22
|
+
import"./chunk-vnka4jbe.js";
|
|
23
23
|
import"./chunk-bjw71y54.js";
|
|
24
24
|
import"./chunk-wj4tjacg.js";
|
|
25
25
|
export {
|
|
@@ -126,6 +126,16 @@ function readJsonFile(filePath, fallback) {
|
|
|
126
126
|
return fallback;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
+
function fsyncBestEffort(descriptor) {
|
|
130
|
+
try {
|
|
131
|
+
fs2.fsyncSync(descriptor);
|
|
132
|
+
} catch (error) {
|
|
133
|
+
const code = error.code;
|
|
134
|
+
if (code === "EPERM" || code === "EINVAL" || code === "ENOTSUP")
|
|
135
|
+
return;
|
|
136
|
+
throw error;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
129
139
|
function writeJsonAtomic(filePath, data) {
|
|
130
140
|
fs2.mkdirSync(path2.dirname(filePath), { recursive: true });
|
|
131
141
|
const tempPath = `${filePath}.tmp-${process.pid}-${Date.now()}`;
|
|
@@ -134,7 +144,7 @@ function writeJsonAtomic(filePath, data) {
|
|
|
134
144
|
const descriptor = fs2.openSync(tempPath, "w", 384);
|
|
135
145
|
try {
|
|
136
146
|
fs2.writeFileSync(descriptor, content);
|
|
137
|
-
|
|
147
|
+
fsyncBestEffort(descriptor);
|
|
138
148
|
} finally {
|
|
139
149
|
fs2.closeSync(descriptor);
|
|
140
150
|
}
|
|
@@ -142,7 +152,7 @@ function writeJsonAtomic(filePath, data) {
|
|
|
142
152
|
if (process.platform !== "win32") {
|
|
143
153
|
const directory = fs2.openSync(path2.dirname(filePath), "r");
|
|
144
154
|
try {
|
|
145
|
-
|
|
155
|
+
fsyncBestEffort(directory);
|
|
146
156
|
} finally {
|
|
147
157
|
fs2.closeSync(directory);
|
|
148
158
|
}
|
|
@@ -166,4 +176,4 @@ function readJsonStrict(filePath, fallback) {
|
|
|
166
176
|
|
|
167
177
|
export { homeDir, getConfigRoot, getDataRoot, getStateRoot, getConfigPath, getTelemetryPath, getSkillsDir, getSkillPackagesRoot, getSkillStatePath, getManagedIndexPath, getSecretsStorePath, getSecretsKeyPath, getRuntimeDir, getPidPath, getLogPath, getGatewayTokenPath, getUpdatesDir, getStagedVersionPath, getUpdateLockPath, getOAuthLockPath, getPluginCacheRoot, getPluginDataRoot, getMarketplaceCacheRoot, getMarketplaceUpdateStatePath, getMarketplaceUpdateLockPath, ensureDir, ensureParentDir, findProjectConfigPath, readJsonFile, writeJsonAtomic, sha256, readJsonStrict };
|
|
168
178
|
|
|
169
|
-
//# debugId=
|
|
179
|
+
//# debugId=4649C9BC7E52DA8164756E2164756E21
|
|
@@ -4,17 +4,17 @@ import {
|
|
|
4
4
|
} from "./chunk-0xt563m1.js";
|
|
5
5
|
import {
|
|
6
6
|
getDaemonStatus
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5r4vs8ct.js";
|
|
8
8
|
import {
|
|
9
9
|
getAdapters,
|
|
10
10
|
getGatewayInternalUrl,
|
|
11
11
|
getGatewayUrl,
|
|
12
12
|
installationAdapters
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-f7w0a9nn.js";
|
|
14
14
|
import {
|
|
15
15
|
SecretsManager,
|
|
16
16
|
ensureGatewayToken
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-qg1rbk0d.js";
|
|
18
18
|
import {
|
|
19
19
|
isServerEnabled
|
|
20
20
|
} from "./chunk-bjw71y54.js";
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
resolveMarketplacePluginSource,
|
|
12
12
|
setMarketplaceAutoUpdate,
|
|
13
13
|
updateMarketplaceInstalledPlugin
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import"./chunk-
|
|
16
|
-
import"./chunk-
|
|
17
|
-
import"./chunk-
|
|
18
|
-
import"./chunk-
|
|
19
|
-
import"./chunk-
|
|
20
|
-
import"./chunk-
|
|
21
|
-
import"./chunk-
|
|
22
|
-
import"./chunk-
|
|
14
|
+
} from "./chunk-mztnw25b.js";
|
|
15
|
+
import"./chunk-naeqpnmf.js";
|
|
16
|
+
import"./chunk-f7w0a9nn.js";
|
|
17
|
+
import"./chunk-qg1rbk0d.js";
|
|
18
|
+
import"./chunk-z4j5q2x0.js";
|
|
19
|
+
import"./chunk-131c6axh.js";
|
|
20
|
+
import"./chunk-jncje8g1.js";
|
|
21
|
+
import"./chunk-9bjabsqb.js";
|
|
22
|
+
import"./chunk-rbra8ws6.js";
|
|
23
23
|
import"./chunk-p7yzyt87.js";
|
|
24
|
-
import"./chunk-
|
|
24
|
+
import"./chunk-vnka4jbe.js";
|
|
25
25
|
import"./chunk-bjw71y54.js";
|
|
26
26
|
import"./chunk-wj4tjacg.js";
|
|
27
27
|
export {
|