@forgezero/agent 0.1.152 → 0.1.153
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/dist/agent-heartbeat.js +1 -1
- package/dist/bootstrap.js +1 -1
- package/dist/deploy-plan-runner.d.ts +2 -0
- package/dist/deploy-plan-runner.js +2 -0
- package/dist/deployment.d.ts +2 -0
- package/dist/fz-agent.js +243 -372
- package/dist/fz.js +3414 -3675
- package/dist/metal-bootstrap.js +1 -1
- package/dist/operator-bootstrap.js +1 -1
- package/dist/pipeline.d.ts +2 -0
- package/dist/pipeline.js +4 -2
- package/dist/platform-fleet-verification.js +1 -1
- package/dist/provision.js +1 -1
- package/dist/ssh-bootstrap.d.ts +3 -1
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
package/dist/agent-heartbeat.js
CHANGED
package/dist/bootstrap.js
CHANGED
|
@@ -63,6 +63,8 @@ export interface RunDeploymentPlanOptions {
|
|
|
63
63
|
lock?: <T>(group: string, limit: number, run: () => Promise<T>) => Promise<T>;
|
|
64
64
|
/** Control-plane placement filter; false records a deterministic skip. */
|
|
65
65
|
shouldRun?: (step: PlannedStep) => boolean;
|
|
66
|
+
/** Emits each secret-free terminal record for durable control-plane progress. */
|
|
67
|
+
onStep?: (record: StepExecutionRecord) => Promise<void>;
|
|
66
68
|
}
|
|
67
69
|
export declare function runDeploymentPlan(options: RunDeploymentPlanOptions): Promise<PlanRunResult>;
|
|
68
70
|
export {};
|
|
@@ -1493,6 +1493,7 @@ async function runDeploymentPlan(options) {
|
|
|
1493
1493
|
const record = { id: step2.id, stage: stage.id, action: step2.uses, status: "skipped", attempts: 0, outputs: {}, changed: false };
|
|
1494
1494
|
state.steps.set(step2.id, record);
|
|
1495
1495
|
records.push(record);
|
|
1496
|
+
await options.onStep?.(record);
|
|
1496
1497
|
}
|
|
1497
1498
|
continue;
|
|
1498
1499
|
}
|
|
@@ -1509,6 +1510,7 @@ async function runDeploymentPlan(options) {
|
|
|
1509
1510
|
})();
|
|
1510
1511
|
records.push(...stageRecords);
|
|
1511
1512
|
for (const record of stageRecords) {
|
|
1513
|
+
await options.onStep?.(record);
|
|
1512
1514
|
const step2 = stage.steps.find((candidate) => candidate.id === record.id);
|
|
1513
1515
|
if (record.status === "succeeded")
|
|
1514
1516
|
successful.push({ record, step: step2, stage });
|
package/dist/deployment.d.ts
CHANGED
|
@@ -64,6 +64,8 @@ export interface DeploymentRequest {
|
|
|
64
64
|
connectivityCapabilities?: DeploymentConnectivityCapabilities;
|
|
65
65
|
/** Server-owned alias to scoped Vault entry-name overrides. */
|
|
66
66
|
credentialBindings?: Readonly<Record<string, string>>;
|
|
67
|
+
/** Claim-fenced control-plane progress sink; receives only redacted evidence. */
|
|
68
|
+
onProgress?: (execution: DeploymentExecution) => Promise<void>;
|
|
67
69
|
}
|
|
68
70
|
export interface DeploymentResult {
|
|
69
71
|
key: string;
|