plugnz 0.0.13 → 0.0.15

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 +10 -10
  2. package/package.json +1 -1
package/dist/plugnz.mjs CHANGED
@@ -10084,6 +10084,8 @@ function needsQuotes(value) {
10084
10084
  return true;
10085
10085
  if (value[0] === " " || value.endsWith(" "))
10086
10086
  return true;
10087
+ if (value[0] === "\uFEFF")
10088
+ return true;
10087
10089
  for (const char of value) {
10088
10090
  const code = char.charCodeAt(0);
10089
10091
  if (char === '"' || char === "'")
@@ -12185,7 +12187,7 @@ function resolveSource(source) {
12185
12187
  plugins.push(pluginFromDir(targetDir, undefined, targetDir, sourceRoot));
12186
12188
  return resolvedSource(sourceUri, sha, isGit, snapshot, targetDir, plugins);
12187
12189
  }
12188
- for (const entry of readdirSync8(targetDir)) {
12190
+ for (const entry of [...readdirSync8(targetDir)].sort()) {
12189
12191
  const subDir = join18(targetDir, entry);
12190
12192
  if (statSync7(subDir).isDirectory() && isPluginDir(subDir)) {
12191
12193
  plugins.push(pluginFromDir(subDir, undefined, targetDir, sourceRoot));
@@ -29466,8 +29468,7 @@ async function planOmissions(item, attemptId, state, desired) {
29466
29468
  return defect(createLifecycleReason("internal", "internal.ambiguous-ownership", `package '${activation.nativeId}' on ${item.entry.target.kind}/${item.entry.target.instance} is owned by scope '${installation.ownership.scopeId}'`));
29467
29469
  }
29468
29470
  if (!hostRevalidated(installation, item.scope.id) || item.host === null || item.observation === null) {
29469
- operations.push(notAttemptedRetirement(operationIdentity("retirement", item.scope.id, activation.packageId, activation.nativeId, activation.sourceRevision ?? "unrecorded"), item.scope, activation, `ownership of '${activation.packageId}' was not revalidated`));
29470
- continue;
29471
+ return unrevalidatedRetirement(activation);
29471
29472
  }
29472
29473
  const retired = await selectRetirement(item.host, item.observation, item.scope, activation, attemptId, null);
29473
29474
  if (retired.kind === "defect")
@@ -29485,8 +29486,7 @@ async function planRetire(item, attemptId, state) {
29485
29486
  return defect(createLifecycleReason("internal", "internal.ambiguous-ownership", `package '${activation.nativeId}' on ${item.entry.target.kind}/${item.entry.target.instance} is owned by scope '${installation.ownership.scopeId}'`));
29486
29487
  }
29487
29488
  if (!hasRetirementAuthority(activation) || !hostRevalidated(installation, item.scope.id) || item.host === null || item.observation === null) {
29488
- operations.push(classified(operationIdentity("retirement", item.scope.id, activation.packageId, activation.nativeId, activation.sourceRevision ?? "unrecorded"), "retirement", item.scope, null, activation.packageId, activation.nativeId, "not-attempted", "none", createLifecycleReason("internal", "internal.invariant", `ownership of '${activation.packageId}' was not revalidated`)).operation);
29489
- continue;
29489
+ return unrevalidatedRetirement(activation);
29490
29490
  }
29491
29491
  const retired = await selectRetirement(item.host, item.observation, item.scope, activation, attemptId, item.recorded.source);
29492
29492
  if (retired.kind === "defect")
@@ -29599,7 +29599,7 @@ async function selectRetirement(host, observation, scope, activation, attemptId,
29599
29599
  const operationId = operationIdentity("retirement", scope.id, activation.packageId, activation.nativeId, `${activation.sourceRevision ?? "unrecorded"}\x00${attemptId}`);
29600
29600
  const installation = observation.installations.find((row) => row.nativeId === activation.nativeId);
29601
29601
  if (installation === undefined) {
29602
- return { kind: "planned", operation: notAttemptedRetirement(operationId, scope, activation, "ownership was not revalidated") };
29602
+ return unrevalidatedRetirement(activation);
29603
29603
  }
29604
29604
  let version;
29605
29605
  try {
@@ -29609,7 +29609,7 @@ async function selectRetirement(host, observation, scope, activation, attemptId,
29609
29609
  }
29610
29610
  const recorded = recordedActivation(scope, source ?? scope.source, activation, installation, observation.target);
29611
29611
  if (recorded === null) {
29612
- return { kind: "planned", operation: notAttemptedRetirement(operationId, scope, activation, "ownership was not revalidated") };
29612
+ return unrevalidatedRetirement(activation);
29613
29613
  }
29614
29614
  const decision = await decideRecordedRoute(host, observation, recorded, operationId, attemptId, "retire", version);
29615
29615
  if (decision.kind === "defect")
@@ -29800,8 +29800,8 @@ function classified(operationId, coverage, scope, sourceSnapshotId, packageName,
29800
29800
  function planOperation(operationId, coverage, scope, sourceSnapshotId, packageName, nativeId, action, route) {
29801
29801
  return { operationId, coverage, scope, sourceSnapshotId, package: packageName, nativeId, action, route };
29802
29802
  }
29803
- function notAttemptedRetirement(operationId, scope, activation, diagnostic) {
29804
- return classified(operationId, "retirement", scope, null, activation.packageId, activation.nativeId, "not-attempted", "none", createLifecycleReason("internal", "internal.invariant", diagnostic)).operation;
29803
+ function unrevalidatedRetirement(activation) {
29804
+ return defect(createLifecycleReason("internal", "internal.invariant", `ownership of '${activation.packageId}' was not revalidated`));
29805
29805
  }
29806
29806
  function chosenAction(replacing, recordedRoute, selectedRoute, bytesMatch, reapplyMatchingUpdate) {
29807
29807
  if (!replacing)
@@ -32462,7 +32462,7 @@ function legacyCommandAction(command) {
32462
32462
  // package.json
32463
32463
  var package_default = {
32464
32464
  name: "plugnz",
32465
- version: "0.0.13",
32465
+ version: "0.0.15",
32466
32466
  description: "Install, diagnose and update agent plugins (Agent Plugins spec) and MCP configs across Claude Code, Codex, Cursor, Kimi and more",
32467
32467
  license: "MIT",
32468
32468
  type: "module",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugnz",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
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",