@forgezero/agent 0.1.49 → 0.1.50
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 +13 -4
- package/dist/fz.js +1 -1
- package/dist/index.d.ts +1 -0
- 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/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
|
@@ -7000,7 +7000,7 @@ function assertSupportedGuestImage(imageKey) {
|
|
|
7000
7000
|
}
|
|
7001
7001
|
|
|
7002
7002
|
// src/version.ts
|
|
7003
|
-
var VERSION = "0.1.
|
|
7003
|
+
var VERSION = "0.1.50";
|
|
7004
7004
|
|
|
7005
7005
|
// src/ssh-bootstrap.ts
|
|
7006
7006
|
class SshBootstrapError extends Error {
|
|
@@ -13511,6 +13511,12 @@ async function runSupervisedApp(path2) {
|
|
|
13511
13511
|
}
|
|
13512
13512
|
|
|
13513
13513
|
// src/index.ts
|
|
13514
|
+
function agentCommandArgs(args, command2) {
|
|
13515
|
+
const index = args.indexOf(command2);
|
|
13516
|
+
if (index < 0)
|
|
13517
|
+
throw new Error(`missing Agent command ${command2}`);
|
|
13518
|
+
return args.slice(index + 1);
|
|
13519
|
+
}
|
|
13514
13520
|
function loadOrCreateSeed(path2) {
|
|
13515
13521
|
if (existsSync18(path2)) {
|
|
13516
13522
|
const seed2 = new Uint8Array(Buffer.from(readFileSync18(path2, "utf8").trim(), "base64url"));
|
|
@@ -14014,15 +14020,17 @@ if (import.meta.main) {
|
|
|
14014
14020
|
process.exit(0);
|
|
14015
14021
|
}
|
|
14016
14022
|
if (command2 === "platform-fleet-verify") {
|
|
14017
|
-
const
|
|
14018
|
-
|
|
14023
|
+
const commandArgs = agentCommandArgs(args, command2);
|
|
14024
|
+
const expectedVersion = commandArgs.find((arg) => arg.startsWith("--expected-version="))?.slice("--expected-version=".length);
|
|
14025
|
+
if (!expectedVersion || commandArgs.length !== 1) {
|
|
14019
14026
|
throw new Error("platform-fleet-verify requires exactly --expected-version=<semver>");
|
|
14020
14027
|
}
|
|
14021
14028
|
console.log(JSON.stringify(await verifyPlatformFleetHost(expectedVersion)));
|
|
14022
14029
|
process.exit(0);
|
|
14023
14030
|
}
|
|
14024
14031
|
if (command2 === "community-rehearsal") {
|
|
14025
|
-
|
|
14032
|
+
const commandArgs = agentCommandArgs(args, command2);
|
|
14033
|
+
if (commandArgs.length !== 1 || commandArgs[0] !== "--request=-") {
|
|
14026
14034
|
throw new Error("community-rehearsal requires exactly --request=-");
|
|
14027
14035
|
}
|
|
14028
14036
|
const raw = readFileSync18("/dev/stdin", "utf8");
|
|
@@ -14609,6 +14617,7 @@ export {
|
|
|
14609
14617
|
applyAgentEgressPolicy,
|
|
14610
14618
|
allocateCpuPool,
|
|
14611
14619
|
allocateAddress,
|
|
14620
|
+
agentCommandArgs,
|
|
14612
14621
|
activateAgentRelease,
|
|
14613
14622
|
VERSION,
|
|
14614
14623
|
SYSTEMD_RESOLVED_STUB,
|
package/dist/fz.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { type NodeKeyPair } from '@forgezero/runtime/identity';
|
|
3
3
|
import { startAgent, type AgentOptions, type AttestationSource } from './socket';
|
|
4
4
|
import type { SecretCache } from './cache';
|
|
5
|
+
export declare function agentCommandArgs(args: readonly string[], command: string): string[];
|
|
5
6
|
import { type DeploymentCredentialSchema } from './credential-schema';
|
|
6
7
|
export { VERSION } from './version';
|
|
7
8
|
export { startAgent, handleRequest, handleApplicationRequest } from './socket';
|
package/dist/metal-bootstrap.js
CHANGED
|
@@ -292,7 +292,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
|
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
// src/version.ts
|
|
295
|
-
var VERSION = "0.1.
|
|
295
|
+
var VERSION = "0.1.50";
|
|
296
296
|
|
|
297
297
|
// src/otel-collector.ts
|
|
298
298
|
var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
|
|
@@ -1697,7 +1697,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
1699
|
// src/version.ts
|
|
1700
|
-
var VERSION3 = "0.1.
|
|
1700
|
+
var VERSION3 = "0.1.50";
|
|
1701
1701
|
|
|
1702
1702
|
// src/egress-policy.ts
|
|
1703
1703
|
import { realpathSync as realpathSync2 } from "node:fs";
|
package/dist/provision.js
CHANGED
|
@@ -1697,7 +1697,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
|
|
|
1697
1697
|
}
|
|
1698
1698
|
|
|
1699
1699
|
// src/version.ts
|
|
1700
|
-
var VERSION3 = "0.1.
|
|
1700
|
+
var VERSION3 = "0.1.50";
|
|
1701
1701
|
|
|
1702
1702
|
// src/egress-policy.ts
|
|
1703
1703
|
import { realpathSync as realpathSync2 } 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.50";
|