plugnz 0.0.16 → 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 +17 -5
  2. package/package.json +1 -1
package/dist/plugnz.mjs CHANGED
@@ -10943,8 +10943,15 @@ function yamlStringify(value) {
10943
10943
  return renderNumber(value);
10944
10944
  if (typeof value === "string")
10945
10945
  return renderScalar(value);
10946
- if (Array.isArray(value))
10947
- return `[${value.map((entry) => yamlStringify(entry === undefined ? null : entry)).join(",")}]`;
10946
+ if (Array.isArray(value)) {
10947
+ const entries = [];
10948
+ for (const entry of value) {
10949
+ if (entry === undefined)
10950
+ continue;
10951
+ entries.push(yamlStringify(entry));
10952
+ }
10953
+ return `[${entries.join(",")}]`;
10954
+ }
10948
10955
  if (typeof value === "object") {
10949
10956
  const entries = [];
10950
10957
  for (const [key, entry] of Object.entries(value)) {
@@ -12775,8 +12782,13 @@ function shortSha(sha) {
12775
12782
  function sameSha(installed, head) {
12776
12783
  const a = installed.toLowerCase();
12777
12784
  const b = head.toLowerCase();
12778
- const n = Math.min(a.length, b.length);
12779
- 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);
12780
12792
  }
12781
12793
  function checkCommands(host, entries, out) {
12782
12794
  for (const entry of entries) {
@@ -33284,7 +33296,7 @@ function legacyCommandAction(command) {
33284
33296
  // package.json
33285
33297
  var package_default = {
33286
33298
  name: "plugnz",
33287
- version: "0.0.16",
33299
+ version: "0.0.18",
33288
33300
  description: "Install, diagnose and update agent plugins (Agent Plugins spec) and MCP configs across Claude Code, Codex, Cursor, Kimi and more",
33289
33301
  license: "MIT",
33290
33302
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugnz",
3
- "version": "0.0.16",
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",