plugnz 0.0.13 → 0.0.14

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 +7 -9
  2. package/package.json +1 -1
package/dist/plugnz.mjs CHANGED
@@ -29466,8 +29466,7 @@ async function planOmissions(item, attemptId, state, desired) {
29466
29466
  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
29467
  }
29468
29468
  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;
29469
+ return unrevalidatedRetirement(activation);
29471
29470
  }
29472
29471
  const retired = await selectRetirement(item.host, item.observation, item.scope, activation, attemptId, null);
29473
29472
  if (retired.kind === "defect")
@@ -29485,8 +29484,7 @@ async function planRetire(item, attemptId, state) {
29485
29484
  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
29485
  }
29487
29486
  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;
29487
+ return unrevalidatedRetirement(activation);
29490
29488
  }
29491
29489
  const retired = await selectRetirement(item.host, item.observation, item.scope, activation, attemptId, item.recorded.source);
29492
29490
  if (retired.kind === "defect")
@@ -29599,7 +29597,7 @@ async function selectRetirement(host, observation, scope, activation, attemptId,
29599
29597
  const operationId = operationIdentity("retirement", scope.id, activation.packageId, activation.nativeId, `${activation.sourceRevision ?? "unrecorded"}\x00${attemptId}`);
29600
29598
  const installation = observation.installations.find((row) => row.nativeId === activation.nativeId);
29601
29599
  if (installation === undefined) {
29602
- return { kind: "planned", operation: notAttemptedRetirement(operationId, scope, activation, "ownership was not revalidated") };
29600
+ return unrevalidatedRetirement(activation);
29603
29601
  }
29604
29602
  let version;
29605
29603
  try {
@@ -29609,7 +29607,7 @@ async function selectRetirement(host, observation, scope, activation, attemptId,
29609
29607
  }
29610
29608
  const recorded = recordedActivation(scope, source ?? scope.source, activation, installation, observation.target);
29611
29609
  if (recorded === null) {
29612
- return { kind: "planned", operation: notAttemptedRetirement(operationId, scope, activation, "ownership was not revalidated") };
29610
+ return unrevalidatedRetirement(activation);
29613
29611
  }
29614
29612
  const decision = await decideRecordedRoute(host, observation, recorded, operationId, attemptId, "retire", version);
29615
29613
  if (decision.kind === "defect")
@@ -29800,8 +29798,8 @@ function classified(operationId, coverage, scope, sourceSnapshotId, packageName,
29800
29798
  function planOperation(operationId, coverage, scope, sourceSnapshotId, packageName, nativeId, action, route) {
29801
29799
  return { operationId, coverage, scope, sourceSnapshotId, package: packageName, nativeId, action, route };
29802
29800
  }
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;
29801
+ function unrevalidatedRetirement(activation) {
29802
+ return defect(createLifecycleReason("internal", "internal.invariant", `ownership of '${activation.packageId}' was not revalidated`));
29805
29803
  }
29806
29804
  function chosenAction(replacing, recordedRoute, selectedRoute, bytesMatch, reapplyMatchingUpdate) {
29807
29805
  if (!replacing)
@@ -32462,7 +32460,7 @@ function legacyCommandAction(command) {
32462
32460
  // package.json
32463
32461
  var package_default = {
32464
32462
  name: "plugnz",
32465
- version: "0.0.13",
32463
+ version: "0.0.14",
32466
32464
  description: "Install, diagnose and update agent plugins (Agent Plugins spec) and MCP configs across Claude Code, Codex, Cursor, Kimi and more",
32467
32465
  license: "MIT",
32468
32466
  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.14",
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",