@forgezero/agent 0.1.98 → 0.1.99

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.98";
920
+ var VERSION3 = "0.1.99";
921
921
 
922
922
  // src/agent-heartbeat.ts
923
923
  function readAgentHostMetrics() {
@@ -195,8 +195,8 @@ export declare const legacyBootstrapIdentityDigest: (config: BootstrapConfig) =>
195
195
  /**
196
196
  * Exact, reviewed identity migrations for an already-installed platform host.
197
197
  * This is deliberately not a generic "stored coordinates match" escape hatch:
198
- * only the development collector transition from the retired external OTLP
199
- * placeholder to the supervised loopback sink is accepted.
198
+ * only the development collector transition and the addition of reviewed
199
+ * genesis attestation evidence are accepted.
200
200
  */
201
201
  export declare function approvedPlatformRepairIdentityDigests(config: PlatformBootstrapConfig): readonly string[];
202
202
  /** Exact prior-release identities accepted only while generation one is still unenrolled. */
package/dist/bootstrap.js CHANGED
@@ -1420,7 +1420,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1420
1420
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1421
1421
 
1422
1422
  // src/version.ts
1423
- var VERSION = "0.1.98";
1423
+ var VERSION = "0.1.99";
1424
1424
 
1425
1425
  // src/software.ts
1426
1426
  var PINNED_BUN_VERSION = "1.3.14";
@@ -4296,12 +4296,28 @@ function bootstrapIdentityDigest(config) {
4296
4296
  }
4297
4297
  var legacyBootstrapIdentityDigest = (config) => createHash2("sha256").update(JSON.stringify(bootstrapIdentity(config, true))).digest("hex");
4298
4298
  function approvedPlatformRepairIdentityDigests(config) {
4299
- if (config.environment !== "development" || config.telemetryEndpoint !== LOCAL_DEBUG_OTEL_EXPORT || config.runtime.environment.agentOtlpEndpoint !== "http://127.0.0.1:4318")
4300
- return [];
4301
- const previous = structuredClone(config);
4302
- previous.telemetryEndpoint = "https://otel.forgezero.net";
4303
- previous.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
4304
- return [bootstrapIdentityDigest(previous), legacyBootstrapIdentityDigest(previous)];
4299
+ const prior = [];
4300
+ const attestation = config.runtime.environment.initialInventory?.attestation;
4301
+ if (attestation) {
4302
+ const beforeAttestation = structuredClone(config);
4303
+ delete beforeAttestation.runtime.environment.initialInventory.attestation;
4304
+ prior.push(beforeAttestation);
4305
+ }
4306
+ const telemetryMigration = config.environment === "development" && config.telemetryEndpoint === LOCAL_DEBUG_OTEL_EXPORT && config.runtime.environment.agentOtlpEndpoint === "http://127.0.0.1:4318";
4307
+ if (telemetryMigration) {
4308
+ const beforeTelemetry = structuredClone(config);
4309
+ beforeTelemetry.telemetryEndpoint = "https://otel.forgezero.net";
4310
+ beforeTelemetry.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
4311
+ prior.push(beforeTelemetry);
4312
+ if (attestation) {
4313
+ delete beforeTelemetry.runtime.environment.initialInventory.attestation;
4314
+ prior.push(beforeTelemetry);
4315
+ }
4316
+ }
4317
+ return [...new Set(prior.flatMap((previous) => [
4318
+ bootstrapIdentityDigest(previous),
4319
+ legacyBootstrapIdentityDigest(previous)
4320
+ ]))];
4305
4321
  }
4306
4322
  function interruptedPlatformReleaseIdentityDigests(config, releaseEvidence, bootstrapManifest) {
4307
4323
  if (!config.runtime.environment.initialInventory)
package/dist/fz-agent.js CHANGED
@@ -9496,7 +9496,7 @@ async function writeAndCloseProcessInput(input, value) {
9496
9496
  }
9497
9497
 
9498
9498
  // src/version.ts
9499
- var VERSION2 = "0.1.98";
9499
+ var VERSION2 = "0.1.99";
9500
9500
 
9501
9501
  // src/ssh-bootstrap.ts
9502
9502
  class SshBootstrapError extends Error {
package/dist/fz.js CHANGED
@@ -4841,7 +4841,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
4841
4841
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
4842
4842
 
4843
4843
  // src/version.ts
4844
- var VERSION2 = "0.1.98";
4844
+ var VERSION2 = "0.1.99";
4845
4845
 
4846
4846
  // src/software.ts
4847
4847
  var PINNED_BUN_VERSION = "1.3.14";
@@ -14681,12 +14681,28 @@ function bootstrapIdentityDigest(config) {
14681
14681
  }
14682
14682
  var legacyBootstrapIdentityDigest = (config) => createHash4("sha256").update(JSON.stringify(bootstrapIdentity(config, true))).digest("hex");
14683
14683
  function approvedPlatformRepairIdentityDigests(config) {
14684
- if (config.environment !== "development" || config.telemetryEndpoint !== LOCAL_DEBUG_OTEL_EXPORT || config.runtime.environment.agentOtlpEndpoint !== "http://127.0.0.1:4318")
14685
- return [];
14686
- const previous = structuredClone(config);
14687
- previous.telemetryEndpoint = "https://otel.forgezero.net";
14688
- previous.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
14689
- return [bootstrapIdentityDigest(previous), legacyBootstrapIdentityDigest(previous)];
14684
+ const prior = [];
14685
+ const attestation = config.runtime.environment.initialInventory?.attestation;
14686
+ if (attestation) {
14687
+ const beforeAttestation = structuredClone(config);
14688
+ delete beforeAttestation.runtime.environment.initialInventory.attestation;
14689
+ prior.push(beforeAttestation);
14690
+ }
14691
+ const telemetryMigration = config.environment === "development" && config.telemetryEndpoint === LOCAL_DEBUG_OTEL_EXPORT && config.runtime.environment.agentOtlpEndpoint === "http://127.0.0.1:4318";
14692
+ if (telemetryMigration) {
14693
+ const beforeTelemetry = structuredClone(config);
14694
+ beforeTelemetry.telemetryEndpoint = "https://otel.forgezero.net";
14695
+ beforeTelemetry.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
14696
+ prior.push(beforeTelemetry);
14697
+ if (attestation) {
14698
+ delete beforeTelemetry.runtime.environment.initialInventory.attestation;
14699
+ prior.push(beforeTelemetry);
14700
+ }
14701
+ }
14702
+ return [...new Set(prior.flatMap((previous) => [
14703
+ bootstrapIdentityDigest(previous),
14704
+ legacyBootstrapIdentityDigest(previous)
14705
+ ]))];
14690
14706
  }
14691
14707
  function interruptedPlatformReleaseIdentityDigests(config, releaseEvidence, bootstrapManifest) {
14692
14708
  if (!config.runtime.environment.initialInventory)
@@ -366,7 +366,7 @@ function systemdAgentEgressDirectives(loopbackTcpPorts = []) {
366
366
  }
367
367
 
368
368
  // src/version.ts
369
- var VERSION = "0.1.98";
369
+ var VERSION = "0.1.99";
370
370
 
371
371
  // src/otel-collector.ts
372
372
  var FORGEZERO_OTEL_COLLECTOR_UNIT = "forgezero-otel-collector.service";
@@ -1420,7 +1420,7 @@ var UPDATE_RETRY_BASE_MS = 5 * 60000;
1420
1420
  var UPDATE_RETRY_MAX_MS = 24 * 60 * 60000;
1421
1421
 
1422
1422
  // src/version.ts
1423
- var VERSION = "0.1.98";
1423
+ var VERSION = "0.1.99";
1424
1424
 
1425
1425
  // src/software.ts
1426
1426
  var PINNED_BUN_VERSION = "1.3.14";
@@ -4296,12 +4296,28 @@ function bootstrapIdentityDigest(config) {
4296
4296
  }
4297
4297
  var legacyBootstrapIdentityDigest = (config) => createHash2("sha256").update(JSON.stringify(bootstrapIdentity(config, true))).digest("hex");
4298
4298
  function approvedPlatformRepairIdentityDigests(config) {
4299
- if (config.environment !== "development" || config.telemetryEndpoint !== LOCAL_DEBUG_OTEL_EXPORT || config.runtime.environment.agentOtlpEndpoint !== "http://127.0.0.1:4318")
4300
- return [];
4301
- const previous = structuredClone(config);
4302
- previous.telemetryEndpoint = "https://otel.forgezero.net";
4303
- previous.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
4304
- return [bootstrapIdentityDigest(previous), legacyBootstrapIdentityDigest(previous)];
4299
+ const prior = [];
4300
+ const attestation = config.runtime.environment.initialInventory?.attestation;
4301
+ if (attestation) {
4302
+ const beforeAttestation = structuredClone(config);
4303
+ delete beforeAttestation.runtime.environment.initialInventory.attestation;
4304
+ prior.push(beforeAttestation);
4305
+ }
4306
+ const telemetryMigration = config.environment === "development" && config.telemetryEndpoint === LOCAL_DEBUG_OTEL_EXPORT && config.runtime.environment.agentOtlpEndpoint === "http://127.0.0.1:4318";
4307
+ if (telemetryMigration) {
4308
+ const beforeTelemetry = structuredClone(config);
4309
+ beforeTelemetry.telemetryEndpoint = "https://otel.forgezero.net";
4310
+ beforeTelemetry.runtime.environment.agentOtlpEndpoint = "https://otel.forgezero.net";
4311
+ prior.push(beforeTelemetry);
4312
+ if (attestation) {
4313
+ delete beforeTelemetry.runtime.environment.initialInventory.attestation;
4314
+ prior.push(beforeTelemetry);
4315
+ }
4316
+ }
4317
+ return [...new Set(prior.flatMap((previous) => [
4318
+ bootstrapIdentityDigest(previous),
4319
+ legacyBootstrapIdentityDigest(previous)
4320
+ ]))];
4305
4321
  }
4306
4322
  function interruptedPlatformReleaseIdentityDigests(config, releaseEvidence, bootstrapManifest) {
4307
4323
  if (!config.runtime.environment.initialInventory)
@@ -2908,7 +2908,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
2908
2908
  }
2909
2909
 
2910
2910
  // src/version.ts
2911
- var VERSION3 = "0.1.98";
2911
+ var VERSION3 = "0.1.99";
2912
2912
 
2913
2913
  // src/egress-policy.ts
2914
2914
  import { realpathSync as realpathSync3 } from "node:fs";
package/dist/provision.js CHANGED
@@ -2908,7 +2908,7 @@ function requestSoftware(requirements, socketPath = DEFAULT_SOFTWARE_HELPER_SOCK
2908
2908
  }
2909
2909
 
2910
2910
  // src/version.ts
2911
- var VERSION3 = "0.1.98";
2911
+ var VERSION3 = "0.1.99";
2912
2912
 
2913
2913
  // src/egress-policy.ts
2914
2914
  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.98";
2
+ export declare const VERSION = "0.1.99";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forgezero/agent",
3
- "version": "0.1.98",
3
+ "version": "0.1.99",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "check": "tsc --noEmit",