plugnz 0.0.19 → 0.0.20

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 +13 -9
  2. package/package.json +1 -1
package/dist/plugnz.mjs CHANGED
@@ -11074,7 +11074,9 @@ function renderNumber(value) {
11074
11074
  return String(value);
11075
11075
  }
11076
11076
  function yamlStringify(value) {
11077
- if (value === null || value === undefined)
11077
+ if (value === undefined || typeof value === "function" || typeof value === "symbol")
11078
+ return;
11079
+ if (value === null)
11078
11080
  return "null";
11079
11081
  if (typeof value === "boolean")
11080
11082
  return value ? "true" : "false";
@@ -11085,18 +11087,18 @@ function yamlStringify(value) {
11085
11087
  if (Array.isArray(value)) {
11086
11088
  const entries = [];
11087
11089
  for (const entry of value) {
11088
- if (entry === undefined)
11089
- continue;
11090
- entries.push(yamlStringify(entry));
11090
+ const rendered = yamlStringify(entry);
11091
+ if (rendered !== undefined)
11092
+ entries.push(rendered);
11091
11093
  }
11092
11094
  return `[${entries.join(",")}]`;
11093
11095
  }
11094
11096
  if (typeof value === "object") {
11095
11097
  const entries = [];
11096
11098
  for (const [key, entry] of Object.entries(value)) {
11097
- if (entry === undefined)
11098
- continue;
11099
- entries.push(`${renderScalar(key)}: ${yamlStringify(entry)}`);
11099
+ const rendered = yamlStringify(entry);
11100
+ if (rendered !== undefined)
11101
+ entries.push(`${renderScalar(key)}: ${rendered}`);
11100
11102
  }
11101
11103
  return `{${entries.join(",")}}`;
11102
11104
  }
@@ -12918,6 +12920,8 @@ function originLabel(entry) {
12918
12920
  function shortSha(sha) {
12919
12921
  return sha.slice(0, 8);
12920
12922
  }
12923
+ var MIN_SHA_PREFIX_LENGTH = 7;
12924
+ var FULL_SHA_LENGTH = 40;
12921
12925
  function sameSha(installed, head) {
12922
12926
  const a = installed.toLowerCase();
12923
12927
  const b = head.toLowerCase();
@@ -12925,7 +12929,7 @@ function sameSha(installed, head) {
12925
12929
  return true;
12926
12930
  const short = a.length < b.length ? a : b;
12927
12931
  const full = a.length < b.length ? b : a;
12928
- if (short.length < 7 || full.length < 40)
12932
+ if (short.length < MIN_SHA_PREFIX_LENGTH || full.length < FULL_SHA_LENGTH)
12929
12933
  return false;
12930
12934
  return full.startsWith(short);
12931
12935
  }
@@ -33801,7 +33805,7 @@ function legacyCommandAction(command) {
33801
33805
  // package.json
33802
33806
  var package_default = {
33803
33807
  name: "plugnz",
33804
- version: "0.0.19",
33808
+ version: "0.0.20",
33805
33809
  description: "Install, diagnose and update agent plugins (Agent Plugins spec) and MCP configs across Claude Code, Codex, Cursor, Kimi and more",
33806
33810
  license: "MIT",
33807
33811
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugnz",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
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",