@mutmutco/installer-face 0.4.3 → 0.4.4
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/CHANGELOG.md +5 -0
- package/dist/index.js +3 -6
- package/dist/maintenance.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
# 0.4.4
|
|
2
|
+
|
|
3
|
+
- Report engine-measured surface times without including release discovery or callback delays.
|
|
4
|
+
- Leave unmeasured surfaces untimed while preserving measured zero durations.
|
|
5
|
+
|
|
1
6
|
# 0.4.3
|
|
2
7
|
|
|
3
8
|
- Resolve freshly installed npm commands outside the inherited PATH.
|
package/dist/index.js
CHANGED
|
@@ -1203,7 +1203,6 @@ async function runMaintenance(product, args, dependencies) {
|
|
|
1203
1203
|
operation: installed ? "install" : "update"
|
|
1204
1204
|
});
|
|
1205
1205
|
if (!quiet) run?.start();
|
|
1206
|
-
let mark = Date.now();
|
|
1207
1206
|
let active;
|
|
1208
1207
|
let activeFacts;
|
|
1209
1208
|
let handedOff;
|
|
@@ -1241,14 +1240,14 @@ async function runMaintenance(product, args, dependencies) {
|
|
|
1241
1240
|
};
|
|
1242
1241
|
const pending = [];
|
|
1243
1242
|
let streaming = false;
|
|
1244
|
-
const emitArm = (
|
|
1243
|
+
const emitArm = (arm) => {
|
|
1245
1244
|
if (quiet) return;
|
|
1246
1245
|
run?.surface({
|
|
1247
1246
|
id: arm.surface,
|
|
1248
1247
|
from: arm.from ?? void 0,
|
|
1249
1248
|
to: arm.to ?? void 0,
|
|
1250
1249
|
state: arm.verdict === "fail" ? "failed" : arm.verdict === "defer" ? "retry" : arm.verdict === "skip" ? "kept" : arm.from === arm.to && !arm.launchStaged ? "current" : "updated",
|
|
1251
|
-
seconds,
|
|
1250
|
+
...arm.durationMs === void 0 ? {} : { seconds: arm.durationMs / 1e3 },
|
|
1252
1251
|
detail: dependencies.diagnose?.(arm)
|
|
1253
1252
|
});
|
|
1254
1253
|
};
|
|
@@ -1285,9 +1284,7 @@ async function runMaintenance(product, args, dependencies) {
|
|
|
1285
1284
|
onArm: (arm) => {
|
|
1286
1285
|
if (handedOff !== void 0) return;
|
|
1287
1286
|
if (arm.verdict === "fail") armFailed = true;
|
|
1288
|
-
|
|
1289
|
-
mark = Date.now();
|
|
1290
|
-
pending.push({ arm, seconds });
|
|
1287
|
+
pending.push(arm);
|
|
1291
1288
|
if (pending.length > 1) streaming = true;
|
|
1292
1289
|
if (streaming) for (const result of pending.splice(0)) emitArm(result);
|
|
1293
1290
|
}
|
package/dist/maintenance.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface MaintenanceArm {
|
|
|
8
8
|
detail: string;
|
|
9
9
|
repeatFailure?: boolean;
|
|
10
10
|
launchStaged?: boolean;
|
|
11
|
+
/** Engine-measured surface work, excluding discovery and time between callbacks. */
|
|
12
|
+
durationMs?: number;
|
|
11
13
|
}
|
|
12
14
|
export interface MaintenanceSummary {
|
|
13
15
|
target: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mutmutco/installer-face",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.4",
|
|
4
4
|
"description": "The MM Terminal Line installer face: one renderer, the canonical product table, shell/PowerShell fragments for served one-liners, and the drift guard every surface runs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|