@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.
@@ -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({ component, env, recorded, build, componentBom, reconciliation, detail });
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;