@mutmutco/hub 4.5.177 → 4.5.178

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/index.cjs +2 -62
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -7380,7 +7380,6 @@ __export(index_exports, {
7380
7380
  createInstallerRun: () => createInstallerRun,
7381
7381
  enumerateSurfaces: () => enumerateSurfaces,
7382
7382
  failConsequence: () => failConsequence,
7383
- fleetStamp: () => fleetStamp,
7384
7383
  handoffSchedule: () => handoffSchedule,
7385
7384
  hermesArm: () => hermesArm,
7386
7385
  hermesHome: () => hermesHome,
@@ -7399,7 +7398,6 @@ __export(index_exports, {
7399
7398
  main: () => main,
7400
7399
  noteBusyDefer: () => noteBusyDefer,
7401
7400
  noteLaunchStaged: () => noteLaunchStaged,
7402
- npmStringField: () => npmStringField,
7403
7401
  ownVersion: () => ownVersion,
7404
7402
  parseNpmDistIntegrity: () => parseNpmDistIntegrity,
7405
7403
  pendingPath: () => pendingPath,
@@ -7441,7 +7439,7 @@ __export(index_exports, {
7441
7439
  });
7442
7440
  module.exports = __toCommonJS(index_exports);
7443
7441
  var import_node_child_process8 = require("node:child_process");
7444
- var import_node_fs24 = require("node:fs");
7442
+ var import_node_fs23 = require("node:fs");
7445
7443
  var import_node_path16 = require("node:path");
7446
7444
 
7447
7445
  // ../installer/face/src/face.ts
@@ -9327,7 +9325,6 @@ function parseNpmDistIntegrity(value) {
9327
9325
  const only = value[0];
9328
9326
  return typeof only === "string" && only.length > 0 ? only : null;
9329
9327
  }
9330
- var npmStringField = parseNpmDistIntegrity;
9331
9328
  async function npmDistIntegrityAsync(spec, env = process.env) {
9332
9329
  const args = ["view", spec, "dist.integrity", "--json"];
9333
9330
  const result = await runNpmAsync(args, env);
@@ -11800,65 +11797,10 @@ function reportCounts(summary) {
11800
11797
  return counts2;
11801
11798
  }
11802
11799
 
11803
- // src/stamp.ts
11804
- var import_node_fs23 = require("node:fs");
11805
- var ALWAYS_ARMED = ["cli", "updater"];
11806
- var PLUGIN_ARMS = /* @__PURE__ */ new Set(["claude", "codex", "jervcode", "hermes"]);
11807
- function fleetStamp(env = process.env) {
11808
- const paths = statePaths(env);
11809
- let events = [];
11810
- try {
11811
- events = (0, import_node_fs23.readFileSync)(paths.journalPath, "utf8").split("\n").filter((line) => line.trim()).map((line) => {
11812
- try {
11813
- return JSON.parse(line);
11814
- } catch {
11815
- return null;
11816
- }
11817
- }).filter((event) => event !== null);
11818
- } catch {
11819
- return "fleet: no journal yet \u2014 MMI Hub maintenance has not run on this machine";
11820
- }
11821
- const target = [...events].reverse().find((event) => event.kind === "target" && event.verdict === "ok" && event.to)?.to ?? null;
11822
- if (!target) {
11823
- return "fleet: no gated release observed yet (registry not ready is a state, not a failure)";
11824
- }
11825
- const lastArm = /* @__PURE__ */ new Map();
11826
- for (const event of events) {
11827
- if (event.dryRun) continue;
11828
- if (event.kind === "arm" && event.surface) lastArm.set(event.surface, event);
11829
- }
11830
- const probes = enumerateSurfaces(env);
11831
- const retired = retiredSurfaces(events);
11832
- const required = [
11833
- ...ALWAYS_ARMED,
11834
- ...probes.filter((probe) => probe.present && PLUGIN_ARMS.has(probe.id) && !retired.has(probe.id)).map((probe) => probe.id)
11835
- ];
11836
- const drift = [];
11837
- const healthy = [];
11838
- for (const surface of required) {
11839
- const arm = lastArm.get(surface);
11840
- if (!arm) {
11841
- drift.push(`${surface} never converged`);
11842
- } else if (arm.verdict === "ok" && (arm.to === target || (arm.detail ?? "").includes("already at target"))) {
11843
- healthy.push(surface);
11844
- } else {
11845
- drift.push(`${surface} ${arm.from ?? "absent"} \u2192 ${arm.to ?? "?"} (${arm.verdict})`);
11846
- }
11847
- }
11848
- const pending = probes.filter((probe) => probe.present && !PLUGIN_ARMS.has(probe.id)).map((probe) => probe.id);
11849
- const retiredPresent = probes.filter((probe) => probe.present && retired.has(probe.id)).map((probe) => probe.id);
11850
- if (drift.length) {
11851
- return `fleet drift: target ${target} \u2014 ${drift.join("; ")}`;
11852
- }
11853
- const pendingNote = pending.length ? ` \xB7 ${pending.length} surface${pending.length === 1 ? "" : "s"} pending an arm: ${pending.join(" ")}` : "";
11854
- const retiredNote = retiredPresent.length ? ` \xB7 retired at source: ${retiredPresent.join(" ")}` : "";
11855
- return `fleet ${target} ok ${healthy.join("\xB7")}${pendingNote}${retiredNote}`;
11856
- }
11857
-
11858
11800
  // src/index.ts
11859
11801
  function ownVersion() {
11860
11802
  try {
11861
- return JSON.parse((0, import_node_fs24.readFileSync)((0, import_node_path16.join)(__dirname, "..", "package.json"), "utf8")).version;
11803
+ return JSON.parse((0, import_node_fs23.readFileSync)((0, import_node_path16.join)(__dirname, "..", "package.json"), "utf8")).version;
11862
11804
  } catch {
11863
11805
  return "0.0.0";
11864
11806
  }
@@ -11992,7 +11934,6 @@ if (typeof require !== "undefined" && require.main === module) {
11992
11934
  createInstallerRun,
11993
11935
  enumerateSurfaces,
11994
11936
  failConsequence,
11995
- fleetStamp,
11996
11937
  handoffSchedule,
11997
11938
  hermesArm,
11998
11939
  hermesHome,
@@ -12011,7 +11952,6 @@ if (typeof require !== "undefined" && require.main === module) {
12011
11952
  main,
12012
11953
  noteBusyDefer,
12013
11954
  noteLaunchStaged,
12014
- npmStringField,
12015
11955
  ownVersion,
12016
11956
  parseNpmDistIntegrity,
12017
11957
  pendingPath,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mutmutco/hub",
3
- "version": "4.5.177",
3
+ "version": "4.5.178",
4
4
  "description": "Install and maintain the MMI CLI and every present host surface from one release-gated Hub command.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",