plugnz 0.0.20 → 0.0.21
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.
- package/dist/plugnz.mjs +36 -25
- package/package.json +1 -1
package/dist/plugnz.mjs
CHANGED
|
@@ -33040,6 +33040,41 @@ async function runFrozenLifecycle(command) {
|
|
|
33040
33040
|
return { report, exitCode: exitCodeForLifecycleReport(report) };
|
|
33041
33041
|
}
|
|
33042
33042
|
|
|
33043
|
+
// src/add-report.ts
|
|
33044
|
+
function mergeAddReports(reports) {
|
|
33045
|
+
const snapshots = new Map;
|
|
33046
|
+
for (const report of reports) {
|
|
33047
|
+
for (const snapshot of report.command.sourceSnapshots)
|
|
33048
|
+
snapshots.set(snapshot.id, snapshot);
|
|
33049
|
+
}
|
|
33050
|
+
const failure = reports.find((report) => report.summary.result !== "converged") ?? null;
|
|
33051
|
+
const mutationStarted = reports.some((report) => report.summary.mutationStarted);
|
|
33052
|
+
const changed = reports.some((report) => report.summary.changed);
|
|
33053
|
+
const terminalPhase = failure === null ? "complete" : mutationStarted && ["parse", "resolve", "freeze", "preflight"].includes(failure.summary.terminalPhase) ? "apply" : failure.summary.terminalPhase;
|
|
33054
|
+
return parseLifecycleReport({
|
|
33055
|
+
schemaVersion: 1,
|
|
33056
|
+
command: { name: "add", dryRun: reports.some((report) => report.command.dryRun), sourceSnapshots: [...snapshots.values()] },
|
|
33057
|
+
plan: reports.flatMap((report) => report.plan),
|
|
33058
|
+
outcomes: reports.flatMap((report) => report.outcomes),
|
|
33059
|
+
...reports.some((report) => report.recovery !== undefined) ? {
|
|
33060
|
+
recovery: { schemaVersion: 1, receipts: reports.flatMap((report) => report.recovery?.receipts ?? []) }
|
|
33061
|
+
} : {},
|
|
33062
|
+
...reports.some((report) => report.adoptions !== undefined) ? {
|
|
33063
|
+
adoptions: { schemaVersion: 1, receipts: reports.flatMap((report) => report.adoptions?.receipts ?? []) }
|
|
33064
|
+
} : {},
|
|
33065
|
+
summary: {
|
|
33066
|
+
result: failure?.summary.result ?? "converged",
|
|
33067
|
+
terminalPhase,
|
|
33068
|
+
mutationStarted,
|
|
33069
|
+
changed,
|
|
33070
|
+
failureCategory: failure?.summary.failureCategory ?? null,
|
|
33071
|
+
reason: failure?.summary.reason ?? null,
|
|
33072
|
+
recoveryId: reports.find((report) => report.summary.recoveryId !== null)?.summary.recoveryId ?? null,
|
|
33073
|
+
readbackId: reports.find((report) => report.summary.readbackId !== null)?.summary.readbackId ?? null
|
|
33074
|
+
}
|
|
33075
|
+
});
|
|
33076
|
+
}
|
|
33077
|
+
|
|
33043
33078
|
// src/lifecycle-hosts.ts
|
|
33044
33079
|
function plannerHost(kind, adapter, plannedNativeId, announceDryRun) {
|
|
33045
33080
|
return {
|
|
@@ -33805,7 +33840,7 @@ function legacyCommandAction(command) {
|
|
|
33805
33840
|
// package.json
|
|
33806
33841
|
var package_default = {
|
|
33807
33842
|
name: "plugnz",
|
|
33808
|
-
version: "0.0.
|
|
33843
|
+
version: "0.0.21",
|
|
33809
33844
|
description: "Install, diagnose and update agent plugins (Agent Plugins spec) and MCP configs across Claude Code, Codex, Cursor, Kimi and more",
|
|
33810
33845
|
license: "MIT",
|
|
33811
33846
|
type: "module",
|
|
@@ -34793,30 +34828,6 @@ async function runWriterAdd(source, selectedWriters, flags, mode) {
|
|
|
34793
34828
|
sourceSnapshots
|
|
34794
34829
|
});
|
|
34795
34830
|
}
|
|
34796
|
-
function mergeAddReports(reports) {
|
|
34797
|
-
const snapshots = new Map;
|
|
34798
|
-
for (const report of reports) {
|
|
34799
|
-
for (const snapshot of report.command.sourceSnapshots)
|
|
34800
|
-
snapshots.set(snapshot.id, snapshot);
|
|
34801
|
-
}
|
|
34802
|
-
const failure = reports.find((report) => report.summary.result !== "converged") ?? null;
|
|
34803
|
-
return parseLifecycleReport({
|
|
34804
|
-
schemaVersion: 1,
|
|
34805
|
-
command: { name: "add", dryRun: reports.some((report) => report.command.dryRun), sourceSnapshots: [...snapshots.values()] },
|
|
34806
|
-
plan: reports.flatMap((report) => report.plan),
|
|
34807
|
-
outcomes: reports.flatMap((report) => report.outcomes),
|
|
34808
|
-
summary: failure === null ? {
|
|
34809
|
-
result: "converged",
|
|
34810
|
-
terminalPhase: "complete",
|
|
34811
|
-
mutationStarted: reports.some((report) => report.summary.mutationStarted),
|
|
34812
|
-
changed: reports.some((report) => report.summary.changed),
|
|
34813
|
-
failureCategory: null,
|
|
34814
|
-
reason: null,
|
|
34815
|
-
recoveryId: null,
|
|
34816
|
-
readbackId: null
|
|
34817
|
-
} : failure.summary
|
|
34818
|
-
});
|
|
34819
|
-
}
|
|
34820
34831
|
async function runRecordedLifecycleRemove(flags, target, state, selected) {
|
|
34821
34832
|
const kinds = new Set(selected.map((writer) => writer.id));
|
|
34822
34833
|
const scopes = new Map(state.scopes.map((scope) => [scope.id, scope]));
|
package/package.json
CHANGED