@lob-ox/core-darwin-x64 0.0.28 → 0.0.29
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/core.cjs +42 -3
- package/package.json +1 -1
package/core.cjs
CHANGED
|
@@ -1642,7 +1642,7 @@ var require_version = __commonJS({
|
|
|
1642
1642
|
var fs2 = require("node:fs");
|
|
1643
1643
|
var path2 = require("node:path");
|
|
1644
1644
|
function guardVersion() {
|
|
1645
|
-
if (true) return String("0.0.
|
|
1645
|
+
if (true) return String("0.0.29");
|
|
1646
1646
|
try {
|
|
1647
1647
|
return JSON.parse(fs2.readFileSync(path2.join(__dirname, "..", "..", "package.json"), "utf8")).version || "unknown";
|
|
1648
1648
|
} catch {
|
|
@@ -2608,7 +2608,7 @@ var require_desired = __commonJS({
|
|
|
2608
2608
|
if (v === "stopped" && fields.observedOnly() && fields.accessors.adoptedPid.get() !== null) {
|
|
2609
2609
|
stopProcess("desired_stopped");
|
|
2610
2610
|
}
|
|
2611
|
-
const reported = pmClient.setDesired("
|
|
2611
|
+
const reported = pmClient.setDesired("dsh-main", v) === true;
|
|
2612
2612
|
if (reported && shellHalted() && setShellHalted) {
|
|
2613
2613
|
setShellHalted(false);
|
|
2614
2614
|
try {
|
|
@@ -5265,6 +5265,25 @@ var require_native = __commonJS({
|
|
|
5265
5265
|
var require_changelog = __commonJS({
|
|
5266
5266
|
"src/shared/changelog.json"(exports2, module2) {
|
|
5267
5267
|
module2.exports = [
|
|
5268
|
+
{
|
|
5269
|
+
version: "0.0.29",
|
|
5270
|
+
date: "2026-10-19",
|
|
5271
|
+
sections: [
|
|
5272
|
+
{
|
|
5273
|
+
title: "\u4FEE\u590D",
|
|
5274
|
+
items: [
|
|
5275
|
+
"\u8BA4\u9886\u6765\u7684 DSH \u4E0D\u4E0A\u62A5\u58F3 \u21D2 \u58F3\u7684 job \u8986\u76D6\u4E0D\u5230\u5B83 \u21D2 \u58F3\u9000\u65F6\u5B83\u4E0D\u505C\uFF08\u672C\u673A 7580 \u5B9E\u8BC1\uFF1A\u7528\u6237\u684C\u9762\u5FEB\u6377\u65B9\u5F0F\u542F\u52A8\u7684 DSH \u8DE8\u591A\u6B21\u58F3\u6362\u4EE3\u5B58\u6D3B\uFF09\u3002\u73B0\u7531 _adopt \u6210\u529F\u540E\u8C03 keepAlive(adoptPid, 'dsh-main')\uFF0C\u58F3\u4FA7\u8BA4\u8FD9\u4E2A id \u5E76 assign \u8FDB job",
|
|
5276
|
+
"DSH \u4E3B\u5B9E\u4F8B\u7684 desired \u4E0A\u62A5\u9519\u7528 id 'core'\uFF08\u4E0E\u5185\u6838\u81EA\u62A5\u7684 id \u76F8\u649E\uFF0C\u540E\u5199\u8986\u76D6\u524D\u5199\uFF09\u21D2 \u6539\u4E3A 'dsh-main'\u3002\u800C\u58F3\u4FA7\u540C\u6B65\u5EFA Priority::Dsh \u53D8\u4F53\uFF08\u63D2\u5728 Core \u4E0E Router \u4E4B\u95F4\uFF0C\u4E0E STANDARDS \u7684\u7BA1\u7406\u5BF9\u8C61\u6392\u5E8F\u4E00\u81F4\uFF09"
|
|
5277
|
+
]
|
|
5278
|
+
},
|
|
5279
|
+
{
|
|
5280
|
+
title: "\u6539\u8FDB",
|
|
5281
|
+
items: [
|
|
5282
|
+
"\u58F3\u4FA7 parse_priority \u8BA4 'dsh-main' / 'dsh' \u4E24\u4E2A\u8BCD\u5F62\uFF08\u9632\u5BF9\u4FA7\u8BCD\u5F62\u4E0D\u4E00\u81F4\uFF09\uFF0C\u4E14\u4E0D\u5EFA DSH \u7684 desc\u2014\u2014spawn_cmd \u662F\u5185\u6838\u7684\u7F16\u6392\u5BF9\u8C61\uFF0C\u58F3\u9020\u4E00\u4EFD\u5C31\u662F\u731C\u5185\u6838\u7684\u4E8B\u5B9E\uFF1B/pm/register \u65E9\u5DF2\u6536 spawn_cmd/priority\uFF0C\u53EA\u7B49\u5185\u6838\u8C03"
|
|
5283
|
+
]
|
|
5284
|
+
}
|
|
5285
|
+
]
|
|
5286
|
+
},
|
|
5268
5287
|
{
|
|
5269
5288
|
version: "0.0.28",
|
|
5270
5289
|
date: "2026-10-19",
|
|
@@ -7377,6 +7396,26 @@ var require_process = __commonJS({
|
|
|
7377
7396
|
d.logger().info("adopted existing instance pid=" + d.mAdoptPid());
|
|
7378
7397
|
d.writeMainOwner(d.mAdoptPid(), d.config().targetPort);
|
|
7379
7398
|
d.tokenService().scheduleCapture("main");
|
|
7399
|
+
try {
|
|
7400
|
+
const pid = d.mAdoptPid();
|
|
7401
|
+
if (pmClient.keepAlive(pid, "dsh-main")) {
|
|
7402
|
+
d.events().append("dsh_pid_reported", { pid, semantics: "request_sent" });
|
|
7403
|
+
} else {
|
|
7404
|
+
const ep = pmClient.endpoint();
|
|
7405
|
+
d.events().append("dsh_pid_not_reported", {
|
|
7406
|
+
pid,
|
|
7407
|
+
reason: ep ? "post_returned_false" : "shell_absent"
|
|
7408
|
+
});
|
|
7409
|
+
}
|
|
7410
|
+
} catch (e) {
|
|
7411
|
+
try {
|
|
7412
|
+
d.events().append("dsh_pid_report_failed", {
|
|
7413
|
+
pid: d.mAdoptPid(),
|
|
7414
|
+
error: e && e.message || String(e)
|
|
7415
|
+
});
|
|
7416
|
+
} catch {
|
|
7417
|
+
}
|
|
7418
|
+
}
|
|
7380
7419
|
d.state().write();
|
|
7381
7420
|
},
|
|
7382
7421
|
_beginRestart(reason, opts) {
|
|
@@ -29846,7 +29885,7 @@ function cmdDaemon() {
|
|
|
29846
29885
|
});
|
|
29847
29886
|
sup.start();
|
|
29848
29887
|
console.log("[supervisor] daemon started, pid=" + process.pid);
|
|
29849
|
-
traceExit("started", { version: true ? "0.0.
|
|
29888
|
+
traceExit("started", { version: true ? "0.0.29" : null });
|
|
29850
29889
|
try {
|
|
29851
29890
|
const pmc = require_pm_client();
|
|
29852
29891
|
if (pmc.keepAlive(process.pid, "core")) {
|