@forgezero/agent 0.1.73 → 0.1.75
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 +565 -61
- package/dist/agent-heartbeat.d.ts +25 -1
- package/dist/agent-heartbeat.js +45 -5
- package/dist/bootstrap.d.ts +2 -0
- package/dist/bootstrap.js +22 -4
- package/dist/community-rehearsal-host.js +208 -9
- package/dist/credential-schema.d.ts +1 -1
- package/dist/credential-schema.js +1 -1
- package/dist/definition.js +206 -7
- package/dist/deploy-actions.d.ts +7 -0
- package/dist/deploy-compiler.js +191 -10
- package/dist/deploy-file.js +206 -7
- package/dist/deploy-plan-runner.d.ts +3 -0
- package/dist/deploy-plan-runner.js +190 -9
- package/dist/deploy-plan.js +187 -8
- package/dist/deploy-providers.d.ts +19 -0
- package/dist/deploy.d.ts +89 -3
- package/dist/deploy.js +49 -2
- package/dist/deployment-connectivity.d.ts +63 -0
- package/dist/deployment-connectivity.js +148 -0
- package/dist/deployment-pull.d.ts +2 -0
- package/dist/deployment-targets.d.ts +9 -0
- package/dist/deployment-targets.js +141 -0
- package/dist/deployment.d.ts +69 -0
- package/dist/fz-agent.js +1112 -302
- package/dist/fz.js +246 -18
- package/dist/index.d.ts +1 -0
- package/dist/metal-bootstrap.js +1 -1
- package/dist/metal-helper-socket.js +210 -11
- package/dist/metal-provision.js +210 -11
- package/dist/operator-bootstrap.js +22 -4
- package/dist/platform-bootstrap-runtime.d.ts +1 -0
- package/dist/platform-bootstrap-runtime.js +216 -10
- package/dist/platform-fleet-verification.js +523 -150
- package/dist/platform-genesis.js +206 -7
- package/dist/provision.js +465 -99
- package/dist/service-supervisor.d.ts +6 -0
- package/dist/software-helper.d.ts +3 -0
- package/dist/software-helper.js +465 -98
- package/dist/software.d.ts +4 -1
- package/dist/software.js +210 -8
- package/dist/ubuntu.js +206 -7
- package/dist/version.d.ts +1 -1
- package/package.json +12 -4
|
@@ -20,6 +20,12 @@ export interface ServiceActivationState {
|
|
|
20
20
|
applicationPorts: number[];
|
|
21
21
|
activeSlot: 0 | 1;
|
|
22
22
|
healthPath: string;
|
|
23
|
+
containerRuntime?: {
|
|
24
|
+
engine: 'docker' | 'containerd';
|
|
25
|
+
runtimeClass: 'runc' | 'kata-qemu-snp';
|
|
26
|
+
namespace?: 'forgezero';
|
|
27
|
+
evidence?: string;
|
|
28
|
+
};
|
|
23
29
|
updatedAtTs: number;
|
|
24
30
|
}
|
|
25
31
|
export interface ServiceSupervisorHost {
|
|
@@ -2,6 +2,7 @@ import { type Server } from 'node:net';
|
|
|
2
2
|
import { ensureSoftwareRequirements, type SoftwareRequirement } from './software';
|
|
3
3
|
import { activateSupervisedService, type ServiceActivationRequest, type ServiceActivationState } from './service-supervisor';
|
|
4
4
|
import { activateContainer, buildContainerImage, type ContainerActivateRequest, type ContainerBuildRequest, type ContainerBuildResult } from './container-supervisor';
|
|
5
|
+
import { applyDeploymentConnectivity, type DeploymentConnectivityEvidence, type DeploymentConnectivityRequest } from './deployment-connectivity';
|
|
5
6
|
export declare const DEFAULT_SOFTWARE_HELPER_SOCKET = "/run/forgezero-software/helper.sock";
|
|
6
7
|
export declare const SOFTWARE_HELPER_GROUP = "forgezero-software";
|
|
7
8
|
export declare const SOFTWARE_HELPER_UNIT_PATH = "/etc/systemd/system/forgezero-software-helper.service";
|
|
@@ -11,10 +12,12 @@ export declare function startSoftwareHelper(options?: {
|
|
|
11
12
|
activate?: typeof activateSupervisedService;
|
|
12
13
|
buildContainer?: typeof buildContainerImage;
|
|
13
14
|
activateContainer?: typeof activateContainer;
|
|
15
|
+
applyConnectivity?: typeof applyDeploymentConnectivity;
|
|
14
16
|
allowedRoot?: string;
|
|
15
17
|
}): Server;
|
|
16
18
|
export declare function requestContainerBuild(request: ContainerBuildRequest, socketPath?: string, timeoutMs?: number): Promise<ContainerBuildResult>;
|
|
17
19
|
export declare function requestContainerActivation(request: ContainerActivateRequest, socketPath?: string, timeoutMs?: number): Promise<ServiceActivationState>;
|
|
20
|
+
export declare function requestDeploymentConnectivity(request: DeploymentConnectivityRequest, socketPath?: string, timeoutMs?: number): Promise<DeploymentConnectivityEvidence>;
|
|
18
21
|
export declare function requestServiceActivation(request: ServiceActivationRequest, socketPath?: string, timeoutMs?: number): Promise<ServiceActivationState>;
|
|
19
22
|
export declare function requestSoftware(requirements: readonly SoftwareRequirement[], socketPath?: string, timeoutMs?: number): Promise<Array<{
|
|
20
23
|
id: string;
|