@lob-ox/core-darwin-x64 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/core.cjs +4 -8
  2. package/package.json +1 -1
package/core.cjs CHANGED
@@ -1471,7 +1471,7 @@ var require_version = __commonJS({
1471
1471
  var fs2 = require("node:fs");
1472
1472
  var path2 = require("node:path");
1473
1473
  function guardVersion() {
1474
- if (true) return String("0.0.13");
1474
+ if (true) return String("0.0.14");
1475
1475
  try {
1476
1476
  return JSON.parse(fs2.readFileSync(path2.join(__dirname, "..", "..", "package.json"), "utf8")).version || "unknown";
1477
1477
  } catch {
@@ -10123,8 +10123,7 @@ var require_controller = __commonJS({
10123
10123
  host._crashHalted = v;
10124
10124
  },
10125
10125
  sessionState() {
10126
- const p = String(host._mPhase() || "").toUpperCase();
10127
- return p === "STARTING" || p === "RUNNING" ? "running" : "stopped";
10126
+ return host.session ? host.session.state() : "running";
10128
10127
  },
10129
10128
  mChild() {
10130
10129
  return host._mChild();
@@ -10318,7 +10317,7 @@ var require_controller = __commonJS({
10318
10317
  d.logger().error("tick error: " + (e && e.stack || e));
10319
10318
  } finally {
10320
10319
  d.writeTicking(false);
10321
- if (d.sessionState() === "running") d.session().setState("running");
10320
+ if (d.sessionState() !== "running") d.session().setState("running");
10322
10321
  try {
10323
10322
  d.control().syncDshView();
10324
10323
  } catch (e) {
@@ -12248,10 +12247,7 @@ var require_status = __commonJS({
12248
12247
  desired: host._mDesired(),
12249
12248
  phase: host._mPhase(),
12250
12249
  state: deriveState(host),
12251
- sessionState: (function() {
12252
- const p = String(host._mPhase() || "").toUpperCase();
12253
- return p === "STARTING" || p === "RUNNING" ? "running" : "stopped";
12254
- })(),
12250
+ sessionState: host.session ? host.session.state() : "running",
12255
12251
  dataDirProtected: Array.isArray(host._fileProtectStatus) ? host._fileProtectStatus.length > 0 && host._fileProtectStatus.every((r) => r.ok) : null,
12256
12252
  guardVersion: host.guardVersion,
12257
12253
  installId: installId(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lob-ox/core-darwin-x64",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "DSH lifecycle guard core (Node launcher) for darwin-x64 — requires Node >=18.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {