@forgezero/agent 0.1.149 → 0.1.150
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/agent-heartbeat.js +3 -5
- package/dist/agent-update-helper.js +2 -4
- package/dist/bootstrap.js +1 -1
- package/dist/fz-agent.js +3 -5
- package/dist/fz.js +1 -1
- package/dist/metal-bootstrap.js +1 -1
- package/dist/operator-bootstrap.js +1 -1
- package/dist/platform-fleet-verification.js +3 -5
- package/dist/provision.js +3 -5
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/agent-heartbeat.js
CHANGED
|
@@ -495,11 +495,9 @@ var stagedFromJournal = (journal, root) => ({
|
|
|
495
495
|
});
|
|
496
496
|
var restartAgent = async (target, run) => {
|
|
497
497
|
const helpers = target === "compute" ? COMPUTE_HELPER_UNITS : ["forgezero-metal-helper.service"];
|
|
498
|
-
for (const unit of helpers)
|
|
499
|
-
await run({ command: "/usr/bin/systemctl", args: ["try-restart", unit] });
|
|
500
498
|
const service = target === "compute" ? "forgezero-agent.service" : "forgezero-metal-agent.service";
|
|
501
|
-
if (!await runOk(run, "/usr/bin/systemctl", ["restart", service])) {
|
|
502
|
-
throw new Error(`systemd could not restart ${service}`);
|
|
499
|
+
if (!await runOk(run, "/usr/bin/systemctl", ["restart", ...helpers, service])) {
|
|
500
|
+
throw new Error(`systemd could not restart ${[...helpers, service].join(", ")}`);
|
|
503
501
|
}
|
|
504
502
|
};
|
|
505
503
|
var candidateUnit = (target) => target === "compute" ? "forgezero-agent-candidate.service" : "forgezero-metal-agent-candidate.service";
|
|
@@ -933,7 +931,7 @@ async function postSignedNode(options, path, body) {
|
|
|
933
931
|
}
|
|
934
932
|
|
|
935
933
|
// src/version.ts
|
|
936
|
-
var VERSION3 = "0.1.
|
|
934
|
+
var VERSION3 = "0.1.150";
|
|
937
935
|
|
|
938
936
|
// src/agent-heartbeat.ts
|
|
939
937
|
function readAgentHostMetrics() {
|
|
@@ -495,11 +495,9 @@ var stagedFromJournal = (journal, root) => ({
|
|
|
495
495
|
});
|
|
496
496
|
var restartAgent = async (target, run) => {
|
|
497
497
|
const helpers = target === "compute" ? COMPUTE_HELPER_UNITS : ["forgezero-metal-helper.service"];
|
|
498
|
-
for (const unit of helpers)
|
|
499
|
-
await run({ command: "/usr/bin/systemctl", args: ["try-restart", unit] });
|
|
500
498
|
const service = target === "compute" ? "forgezero-agent.service" : "forgezero-metal-agent.service";
|
|
501
|
-
if (!await runOk(run, "/usr/bin/systemctl", ["restart", service])) {
|
|
502
|
-
throw new Error(`systemd could not restart ${service}`);
|
|
499
|
+
if (!await runOk(run, "/usr/bin/systemctl", ["restart", ...helpers, service])) {
|
|
500
|
+
throw new Error(`systemd could not restart ${[...helpers, service].join(", ")}`);
|
|
503
501
|
}
|
|
504
502
|
};
|
|
505
503
|
var candidateUnit = (target) => target === "compute" ? "forgezero-agent-candidate.service" : "forgezero-metal-agent-candidate.service";
|
package/dist/bootstrap.js
CHANGED
package/dist/fz-agent.js
CHANGED
|
@@ -11632,7 +11632,7 @@ async function writeAndCloseProcessInput(input, value) {
|
|
|
11632
11632
|
}
|
|
11633
11633
|
|
|
11634
11634
|
// src/version.ts
|
|
11635
|
-
var VERSION2 = "0.1.
|
|
11635
|
+
var VERSION2 = "0.1.150";
|
|
11636
11636
|
|
|
11637
11637
|
// src/ssh-bootstrap.ts
|
|
11638
11638
|
function deriveMetalAdmissionProvisioning(lscpu) {
|
|
@@ -14654,11 +14654,9 @@ var stagedFromJournal = (journal, root) => ({
|
|
|
14654
14654
|
});
|
|
14655
14655
|
var restartAgent = async (target2, run2) => {
|
|
14656
14656
|
const helpers = target2 === "compute" ? COMPUTE_HELPER_UNITS : ["forgezero-metal-helper.service"];
|
|
14657
|
-
for (const unit of helpers)
|
|
14658
|
-
await run2({ command: "/usr/bin/systemctl", args: ["try-restart", unit] });
|
|
14659
14657
|
const service = target2 === "compute" ? "forgezero-agent.service" : "forgezero-metal-agent.service";
|
|
14660
|
-
if (!await runOk(run2, "/usr/bin/systemctl", ["restart", service])) {
|
|
14661
|
-
throw new Error(`systemd could not restart ${service}`);
|
|
14658
|
+
if (!await runOk(run2, "/usr/bin/systemctl", ["restart", ...helpers, service])) {
|
|
14659
|
+
throw new Error(`systemd could not restart ${[...helpers, service].join(", ")}`);
|
|
14662
14660
|
}
|
|
14663
14661
|
};
|
|
14664
14662
|
var candidateUnit = (target2) => target2 === "compute" ? "forgezero-agent-candidate.service" : "forgezero-metal-agent-candidate.service";
|
package/dist/fz.js
CHANGED
|
@@ -8058,7 +8058,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
|
|
|
8058
8058
|
var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
|
|
8059
8059
|
|
|
8060
8060
|
// src/version.ts
|
|
8061
|
-
var VERSION2 = "0.1.
|
|
8061
|
+
var VERSION2 = "0.1.150";
|
|
8062
8062
|
|
|
8063
8063
|
// src/software.ts
|
|
8064
8064
|
var PINNED_BUN_VERSION = "1.3.14";
|
package/dist/metal-bootstrap.js
CHANGED
|
@@ -366,7 +366,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
|
|
|
366
366
|
}
|
|
367
367
|
|
|
368
368
|
// src/version.ts
|
|
369
|
-
var VERSION = "0.1.
|
|
369
|
+
var VERSION = "0.1.150";
|
|
370
370
|
|
|
371
371
|
// src/otel-collector.ts
|
|
372
372
|
var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
|
|
@@ -495,11 +495,9 @@ var stagedFromJournal = (journal, root) => ({
|
|
|
495
495
|
});
|
|
496
496
|
var restartAgent = async (target, run) => {
|
|
497
497
|
const helpers = target === "compute" ? COMPUTE_HELPER_UNITS : ["forgezero-metal-helper.service"];
|
|
498
|
-
for (const unit of helpers)
|
|
499
|
-
await run({ command: "/usr/bin/systemctl", args: ["try-restart", unit] });
|
|
500
498
|
const service = target === "compute" ? "forgezero-agent.service" : "forgezero-metal-agent.service";
|
|
501
|
-
if (!await runOk(run, "/usr/bin/systemctl", ["restart", service])) {
|
|
502
|
-
throw new Error(`systemd could not restart ${service}`);
|
|
499
|
+
if (!await runOk(run, "/usr/bin/systemctl", ["restart", ...helpers, service])) {
|
|
500
|
+
throw new Error(`systemd could not restart ${[...helpers, service].join(", ")}`);
|
|
503
501
|
}
|
|
504
502
|
};
|
|
505
503
|
var candidateUnit = (target) => target === "compute" ? "forgezero-agent-candidate.service" : "forgezero-metal-agent-candidate.service";
|
|
@@ -3066,7 +3064,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
3066
3064
|
}
|
|
3067
3065
|
|
|
3068
3066
|
// src/version.ts
|
|
3069
|
-
var VERSION3 = "0.1.
|
|
3067
|
+
var VERSION3 = "0.1.150";
|
|
3070
3068
|
|
|
3071
3069
|
// src/egress-policy.ts
|
|
3072
3070
|
import { realpathSync as realpathSync3 } from "node:fs";
|
package/dist/provision.js
CHANGED
|
@@ -495,11 +495,9 @@ var stagedFromJournal = (journal, root) => ({
|
|
|
495
495
|
});
|
|
496
496
|
var restartAgent = async (target, run) => {
|
|
497
497
|
const helpers = target === "compute" ? COMPUTE_HELPER_UNITS : ["forgezero-metal-helper.service"];
|
|
498
|
-
for (const unit of helpers)
|
|
499
|
-
await run({ command: "/usr/bin/systemctl", args: ["try-restart", unit] });
|
|
500
498
|
const service = target === "compute" ? "forgezero-agent.service" : "forgezero-metal-agent.service";
|
|
501
|
-
if (!await runOk(run, "/usr/bin/systemctl", ["restart", service])) {
|
|
502
|
-
throw new Error(`systemd could not restart ${service}`);
|
|
499
|
+
if (!await runOk(run, "/usr/bin/systemctl", ["restart", ...helpers, service])) {
|
|
500
|
+
throw new Error(`systemd could not restart ${[...helpers, service].join(", ")}`);
|
|
503
501
|
}
|
|
504
502
|
};
|
|
505
503
|
var candidateUnit = (target) => target === "compute" ? "forgezero-agent-candidate.service" : "forgezero-metal-agent-candidate.service";
|
|
@@ -3066,7 +3064,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
3066
3064
|
}
|
|
3067
3065
|
|
|
3068
3066
|
// src/version.ts
|
|
3069
|
-
var VERSION3 = "0.1.
|
|
3067
|
+
var VERSION3 = "0.1.150";
|
|
3070
3068
|
|
|
3071
3069
|
// src/egress-policy.ts
|
|
3072
3070
|
import { realpathSync as realpathSync3 } from "node:fs";
|
package/dist/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/** One package version shared by both public binaries. Pinned to package.json by tests. */
|
|
2
|
-
export declare const VERSION = "0.1.
|
|
2
|
+
export declare const VERSION = "0.1.150";
|