@forgezero/agent 0.1.88 → 0.1.89
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/README.md +23 -9
- package/dist/agent-heartbeat.js +1 -1
- package/dist/bootstrap.d.ts +8 -1
- package/dist/bootstrap.js +228 -54
- package/dist/capacity-calibration.d.ts +35 -5
- package/dist/capacity-calibration.js +66 -22
- package/dist/cli/agent-install.d.ts +3 -0
- package/dist/community-rehearsal-host.js +7 -2
- package/dist/control.d.ts +3 -1
- package/dist/definition.js +83 -28
- package/dist/deploy-file.js +83 -28
- package/dist/deployment.d.ts +5 -0
- package/dist/egress-policy.d.ts +4 -0
- package/dist/fz-agent.js +416 -150
- package/dist/fz.js +413 -129
- package/dist/host-maintenance.js +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/metal-bootstrap.js +1 -1
- package/dist/metal-helper-socket.js +7 -2
- package/dist/metal-provision.js +7 -2
- package/dist/operator-bootstrap.d.ts +12 -0
- package/dist/operator-bootstrap.js +372 -64
- package/dist/platform-bootstrap-runtime.d.ts +1 -0
- package/dist/platform-bootstrap-runtime.js +47 -8
- package/dist/platform-fleet-verification.js +262 -87
- package/dist/platform-genesis.js +7 -2
- package/dist/provision.d.ts +5 -1
- package/dist/provision.js +185 -71
- package/dist/recovery-host.js +1 -1
- package/dist/software-helper.js +144 -48
- package/dist/software.js +7 -2
- package/dist/ubuntu.js +7 -2
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/schema/deploy-v3.json +5 -2
package/README.md
CHANGED
|
@@ -272,10 +272,11 @@ export const selectedCapability = DEFAULT_LIFECYCLE_HELPER_SOCKET;
|
|
|
272
272
|
<a id="forgezero-agent-provision"></a>
|
|
273
273
|
## @forgezero/agent/provision
|
|
274
274
|
|
|
275
|
-
The install plan as data, with no transport — so `fz` running locally and the platform running over SSH provision an identical machine. This entry exposes
|
|
275
|
+
The install plan as data, with no transport — so `fz` running locally and the platform running over SSH provision an identical machine. This entry exposes 38 named value exports and 11 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
|
|
276
276
|
|
|
277
277
|
```text
|
|
278
278
|
import {
|
|
279
|
+
AGENT_CANDIDATE_UNIT_PATH,
|
|
279
280
|
AGENT_EGRESS_UNIT_PATH,
|
|
280
281
|
AGENT_SOCKET_PROXY_UNIT_PATH,
|
|
281
282
|
AGENT_SOCKET_UNIT_PATH,
|
|
@@ -295,8 +296,11 @@ import {
|
|
|
295
296
|
WARP_CONFIG_UNIT_PATH,
|
|
296
297
|
WARP_SERVICE_DROP_IN_PATH,
|
|
297
298
|
agentBackendSocketPath,
|
|
299
|
+
agentCandidateSocketPath,
|
|
300
|
+
agentCandidateUnit,
|
|
298
301
|
agentEgressUnit,
|
|
299
302
|
agentEnrolmentUnit,
|
|
303
|
+
agentRoutingSocketPath,
|
|
300
304
|
agentSocketProxyUnit,
|
|
301
305
|
agentSocketUnit,
|
|
302
306
|
agentUnit,
|
|
@@ -333,10 +337,10 @@ This minimal executable use imports one concrete value from this exact entry poi
|
|
|
333
337
|
|
|
334
338
|
```text
|
|
335
339
|
import {
|
|
336
|
-
|
|
340
|
+
AGENT_CANDIDATE_UNIT_PATH,
|
|
337
341
|
} from '@forgezero/agent/provision';
|
|
338
342
|
|
|
339
|
-
export const selectedCapability =
|
|
343
|
+
export const selectedCapability = AGENT_CANDIDATE_UNIT_PATH;
|
|
340
344
|
```
|
|
341
345
|
|
|
342
346
|
<a id="forgezero-agent-platform-genesis"></a>
|
|
@@ -534,15 +538,18 @@ export const selectedCapability = heartbeatAgentOnce;
|
|
|
534
538
|
<a id="forgezero-agent-agent-update"></a>
|
|
535
539
|
## @forgezero/agent/agent-update
|
|
536
540
|
|
|
537
|
-
Verified Agent update planning against the platform release coordinate. This entry exposes
|
|
541
|
+
Verified Agent update planning against the platform release coordinate. This entry exposes 11 named value exports and 4 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
|
|
538
542
|
|
|
539
543
|
```text
|
|
540
544
|
import {
|
|
545
|
+
DEFAULT_AGENT_CANDIDATE_LINK,
|
|
541
546
|
DEFAULT_AGENT_RELEASE_ROOT,
|
|
542
547
|
DEFAULT_AGENT_UPDATE_SOCKET,
|
|
543
548
|
MAX_AGENT_TARBALL_BYTES,
|
|
549
|
+
clearAgentCandidate,
|
|
544
550
|
compareVersions,
|
|
545
551
|
restoreAgentRelease,
|
|
552
|
+
selectAgentCandidate,
|
|
546
553
|
selectAgentRelease,
|
|
547
554
|
stageAgentRelease,
|
|
548
555
|
validateAgentRelease,
|
|
@@ -562,10 +569,10 @@ This minimal executable use imports one concrete value from this exact entry poi
|
|
|
562
569
|
|
|
563
570
|
```text
|
|
564
571
|
import {
|
|
565
|
-
|
|
572
|
+
DEFAULT_AGENT_CANDIDATE_LINK,
|
|
566
573
|
} from '@forgezero/agent/agent-update';
|
|
567
574
|
|
|
568
|
-
export const selectedCapability =
|
|
575
|
+
export const selectedCapability = DEFAULT_AGENT_CANDIDATE_LINK;
|
|
569
576
|
```
|
|
570
577
|
|
|
571
578
|
<a id="forgezero-agent-agent-update-helper"></a>
|
|
@@ -709,7 +716,7 @@ await readBootstrapBundle(built.bundlePath, built.manifestPath);
|
|
|
709
716
|
<a id="forgezero-agent-operator-bootstrap"></a>
|
|
710
717
|
## @forgezero/agent/operator-bootstrap
|
|
711
718
|
|
|
712
|
-
Pinned-host operator transport that stages owner-only handoffs and invokes the same typed platform bootstrap through the caller-approved SSH agent. This entry exposes
|
|
719
|
+
Pinned-host operator transport that stages owner-only handoffs and invokes the same typed platform bootstrap through the caller-approved SSH agent. This entry exposes 24 named value exports and 17 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
|
|
713
720
|
|
|
714
721
|
```text
|
|
715
722
|
import {
|
|
@@ -718,6 +725,10 @@ import {
|
|
|
718
725
|
applyOperatorPlatformFleetBootstrap,
|
|
719
726
|
collectOperatorGuestHostKeys,
|
|
720
727
|
createOperatorSshHop,
|
|
728
|
+
operatorMetalClusterBootstrapCode,
|
|
729
|
+
operatorPackagedAgentPath,
|
|
730
|
+
operatorPackagedFzCliPath,
|
|
731
|
+
operatorPackagedGitSshPath,
|
|
721
732
|
operatorPlatformFleetCoordinates,
|
|
722
733
|
planOperatorMetalBootstrap,
|
|
723
734
|
planOperatorPlatformBootstrap,
|
|
@@ -726,6 +737,7 @@ import {
|
|
|
726
737
|
readOperatorMetalBootstrapRequest,
|
|
727
738
|
readOperatorPlatformBootstrapFleetRequest,
|
|
728
739
|
readOperatorPlatformBootstrapRequest,
|
|
740
|
+
redactOperatorSecretDiagnostic,
|
|
729
741
|
verifyOperatorPlatformFleet,
|
|
730
742
|
withOperatorGuestTransport,
|
|
731
743
|
writeOperatorGuestHostKeyEvidence,
|
|
@@ -800,7 +812,7 @@ console.log(plan.argv);
|
|
|
800
812
|
<a id="forgezero-agent-capacity-calibration"></a>
|
|
801
813
|
## @forgezero/agent/capacity-calibration
|
|
802
814
|
|
|
803
|
-
One-time target-local safe-concurrency calibration with private evidence. This entry exposes 3 named value exports and
|
|
815
|
+
One-time target-local safe-concurrency calibration with private evidence. This entry exposes 3 named value exports and 5 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
|
|
804
816
|
|
|
805
817
|
```text
|
|
806
818
|
import {
|
|
@@ -813,6 +825,7 @@ import type {
|
|
|
813
825
|
CapacityCalibration,
|
|
814
826
|
CapacityCalibrationOptions,
|
|
815
827
|
CapacityStage,
|
|
828
|
+
HostCapacitySample,
|
|
816
829
|
ValidatedCapacityCalibrationOptions,
|
|
817
830
|
} from '@forgezero/agent/capacity-calibration';
|
|
818
831
|
```
|
|
@@ -1560,11 +1573,12 @@ export const selectedCapability = MetalProvisionError;
|
|
|
1560
1573
|
<a id="forgezero-agent-platform-bootstrap-runtime"></a>
|
|
1561
1574
|
## @forgezero/agent/platform-bootstrap-runtime
|
|
1562
1575
|
|
|
1563
|
-
Pure platform bootstrap validation, render and resumable phase-state contracts. This entry exposes
|
|
1576
|
+
Pure platform bootstrap validation, render and resumable phase-state contracts. This entry exposes 11 named value exports and 14 named type exports. The generated import block lists one name per line for scanning and copying; keep only the names used by your file.
|
|
1564
1577
|
|
|
1565
1578
|
```text
|
|
1566
1579
|
import {
|
|
1567
1580
|
activatePlatformRelease,
|
|
1581
|
+
assertReleaseLinksContained,
|
|
1568
1582
|
planLocalOtlpProof,
|
|
1569
1583
|
planPlatformActivation,
|
|
1570
1584
|
platformApiCredentialSpecs,
|
package/dist/agent-heartbeat.js
CHANGED
package/dist/bootstrap.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ProvisionPlan } from './cli/agent-install';
|
|
2
|
-
import type
|
|
2
|
+
import { type Capabilities } from './provision';
|
|
3
3
|
import { type SoftwareCommandResult, type SoftwareRequirement } from './software';
|
|
4
4
|
import { type PlatformSharedEnvironment } from './platform-bootstrap-runtime';
|
|
5
5
|
import { type BootstrapBundleManifest } from './bootstrap-bundle';
|
|
@@ -191,6 +191,13 @@ export declare const BOOTSTRAP_STATE_PATH = "/var/lib/forgezero/bootstrap.json";
|
|
|
191
191
|
export declare function validateBootstrapConfig(value: BootstrapConfig): BootstrapConfig;
|
|
192
192
|
export declare function planBootstrap(input: BootstrapConfig, initialized?: boolean): BootstrapPlan;
|
|
193
193
|
export declare function bootstrapIdentityDigest(config: BootstrapConfig): string;
|
|
194
|
+
export declare const legacyBootstrapIdentityDigest: (config: BootstrapConfig) => string;
|
|
195
|
+
/** Exact prior-release identities accepted only while generation one is still unenrolled. */
|
|
196
|
+
export declare function interruptedPlatformReleaseIdentityDigests(config: PlatformBootstrapConfig, releaseEvidence: {
|
|
197
|
+
revision: string;
|
|
198
|
+
sha256: string;
|
|
199
|
+
branch: string;
|
|
200
|
+
}, bootstrapManifest?: BootstrapBundleManifest): readonly string[];
|
|
194
201
|
export declare function bootstrapStatus(host?: BootstrapHost): Promise<BootstrapStatus>;
|
|
195
202
|
export declare function applyBootstrap(input: BootstrapConfig, host?: BootstrapHost, secrets?: BootstrapSecrets, dependencies?: {
|
|
196
203
|
fetcher?: typeof fetch;
|