@forgezero/agent 0.1.77 → 0.1.78
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 +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/fz-agent.js +16 -11
- 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 +1 -1
- package/dist/provision.js +1 -1
- package/dist/stdin.d.ts +4 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/agent-heartbeat.js
CHANGED
package/dist/bootstrap.js
CHANGED
package/dist/fz-agent.js
CHANGED
|
@@ -9193,7 +9193,7 @@ async function writeAndCloseProcessInput(input, value) {
|
|
|
9193
9193
|
}
|
|
9194
9194
|
|
|
9195
9195
|
// src/version.ts
|
|
9196
|
-
var VERSION2 = "0.1.
|
|
9196
|
+
var VERSION2 = "0.1.78";
|
|
9197
9197
|
|
|
9198
9198
|
// src/ssh-bootstrap.ts
|
|
9199
9199
|
class SshBootstrapError extends Error {
|
|
@@ -16401,16 +16401,21 @@ async function readBoundedStdin(maxBytes) {
|
|
|
16401
16401
|
}
|
|
16402
16402
|
if (process.stdin.isTTY)
|
|
16403
16403
|
throw new Error("stdin request pipe is required");
|
|
16404
|
-
const
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16404
|
+
const reader = Bun.spawn(["/usr/bin/head", "-c", String(maxBytes + 1)], {
|
|
16405
|
+
stdin: "inherit",
|
|
16406
|
+
stdout: "pipe",
|
|
16407
|
+
stderr: "pipe"
|
|
16408
|
+
});
|
|
16409
|
+
const [stdout, stderr, exitCode] = await Promise.all([
|
|
16410
|
+
new Response(reader.stdout).arrayBuffer(),
|
|
16411
|
+
new Response(reader.stderr).text(),
|
|
16412
|
+
reader.exited
|
|
16413
|
+
]);
|
|
16414
|
+
if (exitCode !== 0)
|
|
16415
|
+
throw new Error(`stdin reader failed (${exitCode}): ${stderr.trim()}`);
|
|
16416
|
+
if (stdout.byteLength > maxBytes)
|
|
16417
|
+
throw new Error(`stdin request exceeds ${maxBytes} bytes`);
|
|
16418
|
+
return Buffer.from(stdout).toString("utf8");
|
|
16414
16419
|
}
|
|
16415
16420
|
|
|
16416
16421
|
// src/index.ts
|
package/dist/fz.js
CHANGED
package/dist/metal-bootstrap.js
CHANGED
|
@@ -354,7 +354,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
// src/version.ts
|
|
357
|
-
var VERSION = "0.1.
|
|
357
|
+
var VERSION = "0.1.78";
|
|
358
358
|
|
|
359
359
|
// src/otel-collector.ts
|
|
360
360
|
var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
|
|
@@ -2498,7 +2498,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
2498
2498
|
}
|
|
2499
2499
|
|
|
2500
2500
|
// src/version.ts
|
|
2501
|
-
var VERSION3 = "0.1.
|
|
2501
|
+
var VERSION3 = "0.1.78";
|
|
2502
2502
|
|
|
2503
2503
|
// src/egress-policy.ts
|
|
2504
2504
|
import { realpathSync as realpathSync3 } from "node:fs";
|
package/dist/provision.js
CHANGED
|
@@ -2498,7 +2498,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
2498
2498
|
}
|
|
2499
2499
|
|
|
2500
2500
|
// src/version.ts
|
|
2501
|
-
var VERSION3 = "0.1.
|
|
2501
|
+
var VERSION3 = "0.1.78";
|
|
2502
2502
|
|
|
2503
2503
|
// src/egress-policy.ts
|
|
2504
2504
|
import { realpathSync as realpathSync3 } from "node:fs";
|
package/dist/stdin.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Read one bounded request from stdin without using a synchronous `/dev/stdin`
|
|
3
|
-
* read. Bun can busy-loop
|
|
4
|
-
*
|
|
3
|
+
* read. Bun can busy-loop while reading fd 0 from an SSH channel, both through
|
|
4
|
+
* synchronous fs calls and its JavaScript stream adapters. A fixed native
|
|
5
|
+
* `head` process owns that descriptor and returns at most limit + 1 bytes, so
|
|
6
|
+
* Bun handles only an already-bounded child stdout stream.
|
|
5
7
|
*/
|
|
6
8
|
export declare function readBoundedStdin(maxBytes: number): Promise<string>;
|
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.78";
|