plugnz 0.0.17 → 0.0.18

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.
Files changed (2) hide show
  1. package/dist/plugnz.mjs +8 -3
  2. package/package.json +1 -1
package/dist/plugnz.mjs CHANGED
@@ -12782,8 +12782,13 @@ function shortSha(sha) {
12782
12782
  function sameSha(installed, head) {
12783
12783
  const a = installed.toLowerCase();
12784
12784
  const b = head.toLowerCase();
12785
- const n = Math.min(a.length, b.length);
12786
- return a.slice(0, n) === b.slice(0, n);
12785
+ if (a === b && a.length > 0)
12786
+ return true;
12787
+ const short = a.length < b.length ? a : b;
12788
+ const full = a.length < b.length ? b : a;
12789
+ if (short.length < 7 || full.length < 40)
12790
+ return false;
12791
+ return full.startsWith(short);
12787
12792
  }
12788
12793
  function checkCommands(host, entries, out) {
12789
12794
  for (const entry of entries) {
@@ -33291,7 +33296,7 @@ function legacyCommandAction(command) {
33291
33296
  // package.json
33292
33297
  var package_default = {
33293
33298
  name: "plugnz",
33294
- version: "0.0.17",
33299
+ version: "0.0.18",
33295
33300
  description: "Install, diagnose and update agent plugins (Agent Plugins spec) and MCP configs across Claude Code, Codex, Cursor, Kimi and more",
33296
33301
  license: "MIT",
33297
33302
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugnz",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "description": "Install, diagnose and update agent plugins (Agent Plugins spec) and MCP configs across Claude Code, Codex, Cursor, Kimi and more",
5
5
  "license": "MIT",
6
6
  "type": "module",