Internet as a dependency: a node that can be needed, never judged down
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fca2dc0338
commit
7e625e7f42
11 files changed
+173
-22
No files matched your search
@@ -1952,7 +1952,8 @@ export interface LifecycleReport {
|
||||
|
||||
export type AssetKind = "server" | "storage" | "network" | "power" | "client" | "other";
|
||||
|
||||
export type DependencyNodeType = "server" | "integration" | "device";
|
||||
/** "internet" is the one node that is only ever needed and never judged down (there is just one, id 1). */
|
||||
export type DependencyNodeType = "server" | "integration" | "device" | "internet";
|
||||
|
||||
/** Something that would be affected if another went down (or that it needs): `distance` 1 is directly, 2 through one other, and so on. */
|
||||
export interface DependencyImpactItem {
|
||||
@@ -1963,9 +1964,11 @@ export interface DependencyImpactItem {
|
||||
distance: number;
|
||||
silenced: boolean;
|
||||
}
|
||||
export type DependentImpactItem = DependencyImpactItem & { type: Exclude<DependencyNodeType, "internet"> };
|
||||
export interface DependencyImpact {
|
||||
target: { key: string; type: DependencyNodeType; id: number; name: string };
|
||||
dependents: DependencyImpactItem[];
|
||||
/** Never the internet, which is only ever needed. */
|
||||
dependents: DependentImpactItem[];
|
||||
needs: DependencyImpactItem[];
|
||||
}
|
||||
export interface DependencyGraphNode {
|
||||
|
||||
Reference in new issue
Block a user