@forgezero/agent 0.1.53 → 0.1.56
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 +118 -9
- package/dist/agent-heartbeat.js +1 -1
- package/dist/bootstrap.js +110 -69
- package/dist/community-rehearsal-host.d.ts +7 -1
- package/dist/community-rehearsal-host.js +64 -6
- package/dist/container-supervisor.d.ts +36 -0
- package/dist/definition.js +37 -5
- package/dist/deploy-actions.d.ts +87 -0
- package/dist/deploy-compiler.d.ts +26 -0
- package/dist/deploy-compiler.js +1050 -0
- package/dist/deploy-file.js +44 -12
- package/dist/deploy-plan-runner.d.ts +65 -0
- package/dist/deploy-plan-runner.js +1205 -0
- package/dist/deploy-plan.d.ts +41 -0
- package/dist/deploy-plan.js +925 -0
- package/dist/deploy-providers.d.ts +85 -0
- package/dist/deploy.d.ts +439 -0
- package/dist/deploy.js +169 -0
- package/dist/deployment.d.ts +5 -0
- package/dist/fz-agent.js +2137 -326
- package/dist/fz.js +1492 -320
- package/dist/metal-bootstrap.js +1 -1
- package/dist/operator-bootstrap.d.ts +1 -1
- package/dist/operator-bootstrap.js +212 -130
- package/dist/platform-bootstrap-runtime.js +1 -1
- package/dist/platform-fleet-verification.js +499 -120
- package/dist/platform-genesis.d.ts +9 -0
- package/dist/provision.js +399 -20
- package/dist/software-helper.d.ts +5 -0
- package/dist/software-helper.js +399 -18
- package/dist/software.d.ts +1 -1
- package/dist/software.js +37 -5
- package/dist/version.d.ts +1 -1
- package/package.json +17 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { DeploymentSource, StageDefinition, WorkflowStepDefinition } from './deploy';
|
|
2
|
+
export declare const DEPLOY_PLAN_FORMAT: "forgezero-deployment-plan";
|
|
3
|
+
export declare const DEPLOY_PLAN_VERSION: 1;
|
|
4
|
+
export interface PlannedStep extends WorkflowStepDefinition {
|
|
5
|
+
id: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PlannedStage extends Omit<StageDefinition, 'steps'> {
|
|
8
|
+
id: string;
|
|
9
|
+
steps: readonly PlannedStep[];
|
|
10
|
+
}
|
|
11
|
+
export interface PlannedWorkflow {
|
|
12
|
+
id: string;
|
|
13
|
+
concurrency?: {
|
|
14
|
+
group: string;
|
|
15
|
+
limit: number;
|
|
16
|
+
};
|
|
17
|
+
stages: readonly PlannedStage[];
|
|
18
|
+
}
|
|
19
|
+
export interface DeploymentPlan {
|
|
20
|
+
format: typeof DEPLOY_PLAN_FORMAT;
|
|
21
|
+
version: typeof DEPLOY_PLAN_VERSION;
|
|
22
|
+
sourceDigest: `sha256:${string}`;
|
|
23
|
+
name: string;
|
|
24
|
+
description?: string;
|
|
25
|
+
requiredProviders: readonly {
|
|
26
|
+
provider: string;
|
|
27
|
+
contract: number;
|
|
28
|
+
capability: string;
|
|
29
|
+
}[];
|
|
30
|
+
spec: Omit<DeploymentSource['spec'], 'workflows'> & {
|
|
31
|
+
workflows: readonly PlannedWorkflow[];
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
export declare class DeploymentPlanError extends Error {
|
|
35
|
+
constructor(message: string);
|
|
36
|
+
}
|
|
37
|
+
export declare function canonicalJson(value: unknown): string;
|
|
38
|
+
export declare function deploymentSourceDigest(source: DeploymentSource): `sha256:${string}`;
|
|
39
|
+
export declare function compileDeployment(sourceValue: unknown): DeploymentPlan;
|
|
40
|
+
export declare function deploymentPlanDigest(plan: DeploymentPlan): `sha256:${string}`;
|
|
41
|
+
export declare function parseDeploymentPlan(value: unknown): DeploymentPlan;
|