@forgezero/agent 0.1.142 → 0.1.144

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.
@@ -917,7 +917,7 @@ async function postSignedNode(options, path, body) {
917
917
  }
918
918
 
919
919
  // src/version.ts
920
- var VERSION3 = "0.1.142";
920
+ var VERSION3 = "0.1.144";
921
921
 
922
922
  // src/agent-heartbeat.ts
923
923
  function readAgentHostMetrics() {
package/dist/bootstrap.js CHANGED
@@ -1460,7 +1460,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1460
1460
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1461
1461
 
1462
1462
  // src/version.ts
1463
- var VERSION = "0.1.142";
1463
+ var VERSION = "0.1.144";
1464
1464
 
1465
1465
  // src/software.ts
1466
1466
  var PINNED_BUN_VERSION = "1.3.14";
package/dist/fz-agent.js CHANGED
@@ -9684,7 +9684,7 @@ async function writeAndCloseProcessInput(input, value) {
9684
9684
  }
9685
9685
 
9686
9686
  // src/version.ts
9687
- var VERSION2 = "0.1.142";
9687
+ var VERSION2 = "0.1.144";
9688
9688
 
9689
9689
  // src/ssh-bootstrap.ts
9690
9690
  function deriveMetalAdmissionProvisioning(lscpu) {
@@ -18884,7 +18884,7 @@ if (import.meta.main) {
18884
18884
  if (initial.verified)
18885
18885
  console.log(`[agent] initial SEV-SNP attestation verified ${initial.result.measurement.slice(0, 16)}\u2026`);
18886
18886
  }
18887
- if (binding && nodeApiUrl) {
18887
+ if (binding && binding.realm !== "platform" && nodeApiUrl) {
18888
18888
  secretCache = createNodeVaultCache({
18889
18889
  apiUrl: nodeApiUrl,
18890
18890
  nodeKey,
@@ -19002,7 +19002,7 @@ if (import.meta.main) {
19002
19002
  sshKeyPath: bootstrapKeyPath,
19003
19003
  targetTelemetryEndpoint: process.env.FZ_BOOTSTRAP_TARGET_OTLP_ENDPOINT,
19004
19004
  canClaim: () => workClaimsEnabled,
19005
- onEvent: (event) => console.log(`[agent] ${event}`)
19005
+ onEvent: (event, detail) => console.log(`[agent] ${event}${detail ? ` ${JSON.stringify(detail)}` : ""}`)
19006
19006
  }) : undefined;
19007
19007
  if (metalAdmissionPull)
19008
19008
  console.log("[agent] PQ-authenticated tenant metal admission claims enabled");
package/dist/fz.js CHANGED
@@ -6007,7 +6007,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
6007
6007
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
6008
6008
 
6009
6009
  // src/version.ts
6010
- var VERSION2 = "0.1.142";
6010
+ var VERSION2 = "0.1.144";
6011
6011
 
6012
6012
  // src/software.ts
6013
6013
  var PINNED_BUN_VERSION = "1.3.14";
@@ -18287,7 +18287,21 @@ async function applyOperatorPlatformFleetBootstrap(fleet, mode, options = {}) {
18287
18287
  for (const config of configs.slice(1))
18288
18288
  validatePlatformBootstrapSecrets(config, secrets);
18289
18289
  }
18290
- const settled = await Promise.allSettled(requests.map((request) => applyOperatorPlatformBootstrap(request, mode, { ...options, secrets })));
18290
+ const settled = [];
18291
+ if (mode === "apply") {
18292
+ settled.push(...await Promise.allSettled(requests.map((request) => applyOperatorPlatformBootstrap(request, mode, { ...options, secrets }))));
18293
+ } else {
18294
+ for (const request of requests) {
18295
+ try {
18296
+ settled.push({
18297
+ status: "fulfilled",
18298
+ value: await applyOperatorPlatformBootstrap(request, mode, { ...options, secrets })
18299
+ });
18300
+ } catch (reason) {
18301
+ settled.push({ status: "rejected", reason });
18302
+ }
18303
+ }
18304
+ }
18291
18305
  const outcomes = settled.map((result, index) => {
18292
18306
  const config = configs[index];
18293
18307
  const address = requests[index].target.address;
@@ -366,7 +366,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
366
366
  }
367
367
 
368
368
  // src/version.ts
369
- var VERSION = "0.1.142";
369
+ var VERSION = "0.1.144";
370
370
 
371
371
  // src/otel-collector.ts
372
372
  var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
@@ -191,9 +191,12 @@ export declare function applyOperatorPlatformBootstrap(request: OperatorPlatform
191
191
  output: string;
192
192
  }>;
193
193
  /**
194
- * Run the exact three-node genesis fleet from one attended secret collection.
195
- * Every request is fully validated before the first SSH connection. Nodes run
196
- * concurrently because the three-member Agency cannot form sequentially.
194
+ * Run the exact three-node fleet from one attended secret collection.
195
+ * Every request is fully validated before the first SSH connection. Initial
196
+ * genesis runs concurrently because the three-member Agency must form as one
197
+ * operation. An established fleet is repaired/promoted one node at a time so
198
+ * an API origin and an unlocked seed-mesh peer remain resident throughout the
199
+ * rollout.
197
200
  */
198
201
  export declare function applyOperatorPlatformFleetBootstrap(fleet: OperatorPlatformBootstrapFleetRequest, mode: OperatorPlatformBootstrapMode, options?: OperatorPlatformBootstrapOptions & {
199
202
  secrets?: PlatformBootstrapSecrets;
@@ -1460,7 +1460,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1460
1460
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1461
1461
 
1462
1462
  // src/version.ts
1463
- var VERSION = "0.1.142";
1463
+ var VERSION = "0.1.144";
1464
1464
 
1465
1465
  // src/software.ts
1466
1466
  var PINNED_BUN_VERSION = "1.3.14";
@@ -7443,7 +7443,21 @@ async function applyOperatorPlatformFleetBootstrap(fleet, mode, options = {}) {
7443
7443
  for (const config of configs.slice(1))
7444
7444
  validatePlatformBootstrapSecrets(config, secrets);
7445
7445
  }
7446
- const settled = await Promise.allSettled(requests.map((request) => applyOperatorPlatformBootstrap(request, mode, { ...options, secrets })));
7446
+ const settled = [];
7447
+ if (mode === "apply") {
7448
+ settled.push(...await Promise.allSettled(requests.map((request) => applyOperatorPlatformBootstrap(request, mode, { ...options, secrets }))));
7449
+ } else {
7450
+ for (const request of requests) {
7451
+ try {
7452
+ settled.push({
7453
+ status: "fulfilled",
7454
+ value: await applyOperatorPlatformBootstrap(request, mode, { ...options, secrets })
7455
+ });
7456
+ } catch (reason) {
7457
+ settled.push({ status: "rejected", reason });
7458
+ }
7459
+ }
7460
+ }
7447
7461
  const outcomes = settled.map((result, index) => {
7448
7462
  const config = configs[index];
7449
7463
  const address = requests[index].target.address;
@@ -3050,7 +3050,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
3050
3050
  }
3051
3051
 
3052
3052
  // src/version.ts
3053
- var VERSION3 = "0.1.142";
3053
+ var VERSION3 = "0.1.144";
3054
3054
 
3055
3055
  // src/egress-policy.ts
3056
3056
  import { realpathSync as realpathSync3 } from "node:fs";
package/dist/provision.js CHANGED
@@ -3050,7 +3050,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
3050
3050
  }
3051
3051
 
3052
3052
  // src/version.ts
3053
- var VERSION3 = "0.1.142";
3053
+ var VERSION3 = "0.1.144";
3054
3054
 
3055
3055
  // src/egress-policy.ts
3056
3056
  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.142";
2
+ export declare const VERSION = "0.1.144";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgezero/agent",
3
- "version": "0.1.142",
3
+ "version": "0.1.144",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsc --noEmit",