@a-company/paradigm 3.23.0 → 3.23.2
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.
|
@@ -59,7 +59,14 @@ function discoverPlugins() {
|
|
|
59
59
|
let installedVersion = "unknown";
|
|
60
60
|
if (fs.existsSync(pluginCacheDir)) {
|
|
61
61
|
try {
|
|
62
|
-
const versions = fs.readdirSync(pluginCacheDir).filter((d) => fs.statSync(path.join(pluginCacheDir, d)).isDirectory()).sort(
|
|
62
|
+
const versions = fs.readdirSync(pluginCacheDir).filter((d) => fs.statSync(path.join(pluginCacheDir, d)).isDirectory()).sort((a, b) => {
|
|
63
|
+
const pa = a.split(".").map(Number);
|
|
64
|
+
const pb = b.split(".").map(Number);
|
|
65
|
+
for (let i = 0; i < 3; i++) {
|
|
66
|
+
if ((pa[i] || 0) !== (pb[i] || 0)) return (pa[i] || 0) - (pb[i] || 0);
|
|
67
|
+
}
|
|
68
|
+
return 0;
|
|
69
|
+
}).reverse();
|
|
63
70
|
if (versions.length > 0) installedVersion = versions[0];
|
|
64
71
|
} catch {
|
|
65
72
|
}
|
|
@@ -76,7 +76,14 @@ function discoverPlugins() {
|
|
|
76
76
|
let installedSha = "unknown";
|
|
77
77
|
if (fs.existsSync(pluginCacheDir)) {
|
|
78
78
|
try {
|
|
79
|
-
const versions = fs.readdirSync(pluginCacheDir).filter((d) => fs.statSync(path.join(pluginCacheDir, d)).isDirectory()).sort(
|
|
79
|
+
const versions = fs.readdirSync(pluginCacheDir).filter((d) => fs.statSync(path.join(pluginCacheDir, d)).isDirectory()).sort((a, b) => {
|
|
80
|
+
const pa = a.split(".").map(Number);
|
|
81
|
+
const pb = b.split(".").map(Number);
|
|
82
|
+
for (let i = 0; i < 3; i++) {
|
|
83
|
+
if ((pa[i] || 0) !== (pb[i] || 0)) return (pa[i] || 0) - (pb[i] || 0);
|
|
84
|
+
}
|
|
85
|
+
return 0;
|
|
86
|
+
}).reverse();
|
|
80
87
|
if (versions.length > 0) {
|
|
81
88
|
installedVersion = versions[0];
|
|
82
89
|
const cachedPluginJson = readJsonSafe(
|
package/dist/index.js
CHANGED
|
@@ -300,11 +300,11 @@ teamCmd.action(async () => {
|
|
|
300
300
|
});
|
|
301
301
|
var pluginCmd = program.command("plugin").description("Plugin management commands");
|
|
302
302
|
pluginCmd.command("check").description("Check for updates to installed Claude Code plugins").option("-u, --update", "Pull latest changes for all stale marketplace clones").action(async (options) => {
|
|
303
|
-
const { pluginCheckCommand } = await import("./check-
|
|
303
|
+
const { pluginCheckCommand } = await import("./check-OLI6AUS6.js");
|
|
304
304
|
await pluginCheckCommand(options);
|
|
305
305
|
});
|
|
306
306
|
pluginCmd.action(async () => {
|
|
307
|
-
const { pluginCheckCommand } = await import("./check-
|
|
307
|
+
const { pluginCheckCommand } = await import("./check-OLI6AUS6.js");
|
|
308
308
|
await pluginCheckCommand({});
|
|
309
309
|
});
|
|
310
310
|
var workspaceCmd = program.command("workspace").description("Multi-project workspace commands");
|
package/dist/mcp.js
CHANGED
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
import {
|
|
89
89
|
getPluginUpdateNotice,
|
|
90
90
|
schedulePluginUpdateCheck
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-MP73YDXF.js";
|
|
92
92
|
|
|
93
93
|
// ../paradigm-mcp/src/index.ts
|
|
94
94
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
|
@@ -13825,7 +13825,7 @@ function registerTools(server, getContext2, reloadContext2) {
|
|
|
13825
13825
|
};
|
|
13826
13826
|
}
|
|
13827
13827
|
case "paradigm_plugin_check": {
|
|
13828
|
-
const { runPluginUpdateCheck } = await import("./plugin-update-checker-
|
|
13828
|
+
const { runPluginUpdateCheck } = await import("./plugin-update-checker-HMRPGY5Z.js");
|
|
13829
13829
|
const results = await runPluginUpdateCheck();
|
|
13830
13830
|
const updatable = results.filter((r) => r.hasRemoteUpdate || r.hasCacheStale);
|
|
13831
13831
|
if (updatable.length === 0) {
|