@cleocode/caamp 1.3.0 → 1.4.0
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-O2YG5HT7.js → chunk-QZOOTKAJ.js} +11 -3
- package/dist/chunk-QZOOTKAJ.js.map +1 -0
- package/dist/cli.js +142 -29
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.js +3 -1
- package/package.json +1 -1
- package/dist/chunk-O2YG5HT7.js.map +0 -1
|
@@ -1684,7 +1684,7 @@ async function updateLockFile(updater) {
|
|
|
1684
1684
|
}
|
|
1685
1685
|
|
|
1686
1686
|
// src/core/mcp/lock.ts
|
|
1687
|
-
async function recordMcpInstall(serverName, source, sourceType, agents, isGlobal) {
|
|
1687
|
+
async function recordMcpInstall(serverName, source, sourceType, agents, isGlobal, version) {
|
|
1688
1688
|
await updateLockFile((lock) => {
|
|
1689
1689
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1690
1690
|
const existing = lock.mcpServers[serverName];
|
|
@@ -1693,6 +1693,7 @@ async function recordMcpInstall(serverName, source, sourceType, agents, isGlobal
|
|
|
1693
1693
|
scopedName: serverName,
|
|
1694
1694
|
source,
|
|
1695
1695
|
sourceType,
|
|
1696
|
+
version: version ?? existing?.version,
|
|
1696
1697
|
installedAt: existing?.installedAt ?? now,
|
|
1697
1698
|
updatedAt: now,
|
|
1698
1699
|
agents: [.../* @__PURE__ */ new Set([...existing?.agents ?? [], ...agents])],
|
|
@@ -1804,7 +1805,7 @@ function buildCleoProfile(options) {
|
|
|
1804
1805
|
packageSpec,
|
|
1805
1806
|
config: {
|
|
1806
1807
|
command: "npx",
|
|
1807
|
-
args: ["-y", packageSpec, "
|
|
1808
|
+
args: ["-y", packageSpec, "mcp"]
|
|
1808
1809
|
}
|
|
1809
1810
|
};
|
|
1810
1811
|
}
|
|
@@ -1849,6 +1850,12 @@ function parseEnvAssignments(values) {
|
|
|
1849
1850
|
}
|
|
1850
1851
|
return env;
|
|
1851
1852
|
}
|
|
1853
|
+
function extractVersionTag(packageSpec) {
|
|
1854
|
+
if (!packageSpec) return void 0;
|
|
1855
|
+
const atIndex = packageSpec.lastIndexOf("@");
|
|
1856
|
+
if (atIndex <= 0) return void 0;
|
|
1857
|
+
return packageSpec.slice(atIndex + 1);
|
|
1858
|
+
}
|
|
1852
1859
|
function isCleoSource(source) {
|
|
1853
1860
|
return source.trim().toLowerCase() === "cleo";
|
|
1854
1861
|
}
|
|
@@ -3829,6 +3836,7 @@ export {
|
|
|
3829
3836
|
buildCleoProfile,
|
|
3830
3837
|
checkCommandReachability,
|
|
3831
3838
|
parseEnvAssignments,
|
|
3839
|
+
extractVersionTag,
|
|
3832
3840
|
isCleoSource,
|
|
3833
3841
|
parseSource,
|
|
3834
3842
|
isMarketplaceScoped,
|
|
@@ -3869,4 +3877,4 @@ export {
|
|
|
3869
3877
|
toSarif,
|
|
3870
3878
|
validateSkill
|
|
3871
3879
|
};
|
|
3872
|
-
//# sourceMappingURL=chunk-
|
|
3880
|
+
//# sourceMappingURL=chunk-QZOOTKAJ.js.map
|