@intentius/chant 0.18.28 → 0.18.30
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/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +2 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/cli-support.d.ts +13 -0
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/driver.d.ts +22 -1
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/run-progress.d.ts +94 -0
- package/dist/components/run-progress.d.ts.map +1 -0
- package/dist/lifecycle/status.d.ts +25 -0
- package/dist/lifecycle/status.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/cli/handlers/components.ts +13 -1
- package/src/cli/handlers/run.test.ts +54 -0
- package/src/cli/handlers/run.ts +9 -1
- package/src/cli/main.test.ts +14 -0
- package/src/cli/main.ts +7 -0
- package/src/cli/registry.ts +2 -0
- package/src/components/cli-support.test.ts +92 -1
- package/src/components/cli-support.ts +36 -2
- package/src/components/driver.test.ts +190 -0
- package/src/components/driver.ts +100 -33
- package/src/components/run-progress.ts +117 -0
- package/src/lifecycle/status.test.ts +23 -0
- package/src/lifecycle/status.ts +38 -1
package/src/lifecycle/status.ts
CHANGED
|
@@ -60,6 +60,29 @@ export interface ComponentStatusRow {
|
|
|
60
60
|
reconciliation: "reconciled" | "unrecorded" | "stale" | "drifted" | "unknown";
|
|
61
61
|
/** Human-readable detail backing the verdict. */
|
|
62
62
|
detail: string;
|
|
63
|
+
/**
|
|
64
|
+
* Machine-readable "observed live", when live evidence was gathered (`--live`).
|
|
65
|
+
* A consumer joining this row onto a graph node should read this rather than
|
|
66
|
+
* string-matching `detail`. Absent when `--live` was not requested.
|
|
67
|
+
*/
|
|
68
|
+
live?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* The owning deploy unit's raw status, when a lexicon reported it (AWS: the
|
|
71
|
+
* component's own CFN stack via `describeStackStatus`). Lets a renderer paint a
|
|
72
|
+
* richer palette than the reconciliation verdict — `healthy` green,
|
|
73
|
+
* present-but-not-healthy amber (mid-deploy) / red (rollback/failed).
|
|
74
|
+
*/
|
|
75
|
+
stack?: LiveStackInfo;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/** A component's owning deploy unit and its provider-native status. */
|
|
79
|
+
export interface LiveStackInfo {
|
|
80
|
+
/** The deploy-unit name (e.g. the CloudFormation stack name). */
|
|
81
|
+
name: string;
|
|
82
|
+
/** Provider-native status string, e.g. "CREATE_COMPLETE". */
|
|
83
|
+
status?: string;
|
|
84
|
+
/** True when `status` is a terminal success state. */
|
|
85
|
+
healthy?: boolean;
|
|
63
86
|
}
|
|
64
87
|
|
|
65
88
|
export interface ComponentStatusResult {
|
|
@@ -84,6 +107,9 @@ export interface LiveComponentEvidence {
|
|
|
84
107
|
action?: ChangeAction;
|
|
85
108
|
/** Ownership verdict, when known. */
|
|
86
109
|
ownership?: "owned" | "foreign" | "unknown";
|
|
110
|
+
/** The owning deploy unit's raw status, when observed (AWS: the component's own
|
|
111
|
+
* CFN stack). Surfaced onto `ComponentStatusRow.stack` for a richer palette. */
|
|
112
|
+
stack?: LiveStackInfo;
|
|
87
113
|
}
|
|
88
114
|
|
|
89
115
|
/**
|
|
@@ -108,6 +134,7 @@ export function mergeLiveEvidence(
|
|
|
108
134
|
live: sup.live,
|
|
109
135
|
ownership: sup.ownership ?? b?.ownership,
|
|
110
136
|
action: b?.action,
|
|
137
|
+
stack: sup.stack ?? b?.stack,
|
|
111
138
|
});
|
|
112
139
|
}
|
|
113
140
|
return merged;
|
|
@@ -265,7 +292,17 @@ export function reconcileStatus(
|
|
|
265
292
|
detail = `recorded ${recorded!.timestamp} (digest ${recorded!.digest}), live and consistent`;
|
|
266
293
|
}
|
|
267
294
|
|
|
268
|
-
rows.push({
|
|
295
|
+
rows.push({
|
|
296
|
+
component,
|
|
297
|
+
env,
|
|
298
|
+
recorded,
|
|
299
|
+
build,
|
|
300
|
+
componentBom,
|
|
301
|
+
reconciliation,
|
|
302
|
+
detail,
|
|
303
|
+
...(liveEvidence ? { live: !!evidence?.live } : {}),
|
|
304
|
+
...(evidence?.stack ? { stack: evidence.stack } : {}),
|
|
305
|
+
});
|
|
269
306
|
}
|
|
270
307
|
|
|
271
308
|
return rows;
|