@intentius/behold 0.29.55 → 0.29.57

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.
Files changed (173) hide show
  1. package/THIRD_PARTY.md +21 -0
  2. package/dist/cli.js +7611 -6919
  3. package/example-three-cloud/azure/composites/container-app-site.ts +77 -0
  4. package/example-three-cloud/azure/src/site.ts +14 -46
  5. package/example-three-cloud/dns/composites/latency-entry.ts +73 -0
  6. package/example-three-cloud/dns/src/route53.ts +9 -39
  7. package/example-three-cloud/gcp/composites/public-cloud-run.ts +102 -0
  8. package/example-three-cloud/gcp/src/site.ts +16 -96
  9. package/licenses/aws-architecture-icons-TERMS.md +19 -0
  10. package/licenses/azure-architecture-icons-Microsoft_Terms_of_Use.pdf +0 -0
  11. package/licenses/azure-architecture-icons-TERMS.md +20 -0
  12. package/licenses/google-cloud-icons-TERMS.md +15 -0
  13. package/package.json +1 -1
  14. package/web/app.js +704 -10
  15. package/web/edge-weight.d.ts +5 -0
  16. package/web/edge-weight.js +71 -0
  17. package/web/edge-weight.test.js +49 -0
  18. package/web/icons/aws/alb.svg +1 -0
  19. package/web/icons/aws/api-gateway.svg +1 -0
  20. package/web/icons/aws/app-runner.svg +1 -0
  21. package/web/icons/aws/appsync.svg +1 -0
  22. package/web/icons/aws/athena.svg +1 -0
  23. package/web/icons/aws/auto-scaling.svg +1 -0
  24. package/web/icons/aws/backup.svg +1 -0
  25. package/web/icons/aws/batch.svg +1 -0
  26. package/web/icons/aws/bedrock-agentcore.svg +1 -0
  27. package/web/icons/aws/bedrock.svg +1 -0
  28. package/web/icons/aws/certificate-manager.svg +1 -0
  29. package/web/icons/aws/cloud-map.svg +1 -0
  30. package/web/icons/aws/cloud.svg +1 -0
  31. package/web/icons/aws/cloudformation.svg +1 -0
  32. package/web/icons/aws/cloudfront.svg +1 -0
  33. package/web/icons/aws/cloudtrail.svg +1 -0
  34. package/web/icons/aws/cloudwatch-alarm.svg +1 -0
  35. package/web/icons/aws/cloudwatch-logs.svg +1 -0
  36. package/web/icons/aws/cloudwatch.svg +1 -0
  37. package/web/icons/aws/codebuild.svg +1 -0
  38. package/web/icons/aws/codecommit.svg +1 -0
  39. package/web/icons/aws/codedeploy.svg +1 -0
  40. package/web/icons/aws/codepipeline.svg +1 -0
  41. package/web/icons/aws/cognito.svg +1 -0
  42. package/web/icons/aws/config.svg +1 -0
  43. package/web/icons/aws/documentdb.svg +1 -0
  44. package/web/icons/aws/dynamodb-table.svg +1 -0
  45. package/web/icons/aws/dynamodb.svg +1 -0
  46. package/web/icons/aws/ebs-volume.svg +1 -0
  47. package/web/icons/aws/ec2-instance.svg +1 -0
  48. package/web/icons/aws/ec2.svg +1 -0
  49. package/web/icons/aws/ecr-registry.svg +1 -0
  50. package/web/icons/aws/ecr.svg +1 -0
  51. package/web/icons/aws/ecs-service.svg +1 -0
  52. package/web/icons/aws/ecs-task.svg +1 -0
  53. package/web/icons/aws/ecs.svg +1 -0
  54. package/web/icons/aws/efs.svg +1 -0
  55. package/web/icons/aws/eks.svg +1 -0
  56. package/web/icons/aws/elastic-beanstalk.svg +1 -0
  57. package/web/icons/aws/elastic-ip.svg +1 -0
  58. package/web/icons/aws/elasticache.svg +1 -0
  59. package/web/icons/aws/elb.svg +1 -0
  60. package/web/icons/aws/emr.svg +1 -0
  61. package/web/icons/aws/eventbridge.svg +1 -0
  62. package/web/icons/aws/firehose.svg +1 -0
  63. package/web/icons/aws/global-accelerator.svg +1 -0
  64. package/web/icons/aws/glue.svg +1 -0
  65. package/web/icons/aws/guardduty.svg +1 -0
  66. package/web/icons/aws/iam.svg +1 -0
  67. package/web/icons/aws/internet-gateway.svg +1 -0
  68. package/web/icons/aws/keyspaces.svg +1 -0
  69. package/web/icons/aws/kinesis.svg +1 -0
  70. package/web/icons/aws/kms.svg +1 -0
  71. package/web/icons/aws/lambda-function.svg +1 -0
  72. package/web/icons/aws/lambda.svg +1 -0
  73. package/web/icons/aws/mq.svg +1 -0
  74. package/web/icons/aws/msk.svg +1 -0
  75. package/web/icons/aws/nat-gateway.svg +1 -0
  76. package/web/icons/aws/neptune.svg +1 -0
  77. package/web/icons/aws/network-acl.svg +1 -0
  78. package/web/icons/aws/network-firewall.svg +1 -0
  79. package/web/icons/aws/opensearch.svg +1 -0
  80. package/web/icons/aws/organizations.svg +1 -0
  81. package/web/icons/aws/rds-instance.svg +1 -0
  82. package/web/icons/aws/rds.svg +1 -0
  83. package/web/icons/aws/redshift.svg +1 -0
  84. package/web/icons/aws/route-53-hosted-zone.svg +1 -0
  85. package/web/icons/aws/route-53.svg +1 -0
  86. package/web/icons/aws/router.svg +1 -0
  87. package/web/icons/aws/s3-bucket.svg +1 -0
  88. package/web/icons/aws/s3.svg +1 -0
  89. package/web/icons/aws/sagemaker.svg +1 -0
  90. package/web/icons/aws/secrets-manager.svg +1 -0
  91. package/web/icons/aws/ses.svg +1 -0
  92. package/web/icons/aws/shield.svg +1 -0
  93. package/web/icons/aws/sns-topic.svg +1 -0
  94. package/web/icons/aws/sns.svg +1 -0
  95. package/web/icons/aws/sqs-queue.svg +1 -0
  96. package/web/icons/aws/sqs.svg +1 -0
  97. package/web/icons/aws/step-functions.svg +1 -0
  98. package/web/icons/aws/systems-manager.svg +1 -0
  99. package/web/icons/aws/transfer-family.svg +1 -0
  100. package/web/icons/aws/transit-gateway.svg +1 -0
  101. package/web/icons/aws/vpc-endpoints.svg +1 -0
  102. package/web/icons/aws/vpc-lattice.svg +1 -0
  103. package/web/icons/aws/vpc.svg +1 -0
  104. package/web/icons/aws/vpn-gateway.svg +1 -0
  105. package/web/icons/aws/waf.svg +1 -0
  106. package/web/icons/azure/app-service-plan.svg +1 -0
  107. package/web/icons/azure/app-services.svg +1 -0
  108. package/web/icons/azure/application-gateway.svg +1 -0
  109. package/web/icons/azure/container-app.svg +1 -0
  110. package/web/icons/azure/container-apps-environment.svg +1 -0
  111. package/web/icons/azure/container-instances.svg +1 -0
  112. package/web/icons/azure/container-registry.svg +1 -0
  113. package/web/icons/azure/cosmos-db.svg +1 -0
  114. package/web/icons/azure/dns-zone.svg +1 -0
  115. package/web/icons/azure/front-door.svg +1 -0
  116. package/web/icons/azure/function-app.svg +1 -0
  117. package/web/icons/azure/kubernetes-service.svg +1 -0
  118. package/web/icons/azure/load-balancer.svg +1 -0
  119. package/web/icons/azure/log-analytics.svg +1 -0
  120. package/web/icons/azure/managed-identity.svg +1 -0
  121. package/web/icons/azure/mysql.svg +1 -0
  122. package/web/icons/azure/nat.svg +1 -0
  123. package/web/icons/azure/network-security-group.svg +1 -0
  124. package/web/icons/azure/postgresql.svg +1 -0
  125. package/web/icons/azure/public-ip.svg +1 -0
  126. package/web/icons/azure/redis.svg +1 -0
  127. package/web/icons/azure/resource-group.svg +1 -0
  128. package/web/icons/azure/route-table.svg +1 -0
  129. package/web/icons/azure/sql-database.svg +1 -0
  130. package/web/icons/azure/sql-server.svg +1 -0
  131. package/web/icons/azure/subnet.svg +1 -0
  132. package/web/icons/azure/subscription.svg +1 -0
  133. package/web/icons/azure/virtual-machine.svg +1 -0
  134. package/web/icons/azure/virtual-network-gateway.svg +1 -0
  135. package/web/icons/azure/virtual-network.svg +1 -0
  136. package/web/icons/gcp/artifact-registry.svg +1 -0
  137. package/web/icons/gcp/bigquery.svg +1 -0
  138. package/web/icons/gcp/bigtable.svg +1 -0
  139. package/web/icons/gcp/certificate-manager.svg +1 -0
  140. package/web/icons/gcp/cloud-armor.svg +1 -0
  141. package/web/icons/gcp/cloud-build.svg +1 -0
  142. package/web/icons/gcp/cloud-composer.svg +1 -0
  143. package/web/icons/gcp/cloud-dns.svg +1 -0
  144. package/web/icons/gcp/cloud-functions.svg +1 -0
  145. package/web/icons/gcp/cloud-load-balancing.svg +1 -0
  146. package/web/icons/gcp/cloud-logging.svg +1 -0
  147. package/web/icons/gcp/cloud-monitoring.svg +1 -0
  148. package/web/icons/gcp/cloud-nat.svg +1 -0
  149. package/web/icons/gcp/cloud-router.svg +1 -0
  150. package/web/icons/gcp/cloud-run.svg +1 -0
  151. package/web/icons/gcp/cloud-scheduler.svg +1 -0
  152. package/web/icons/gcp/cloud-spanner.svg +1 -0
  153. package/web/icons/gcp/cloud-sql.svg +1 -0
  154. package/web/icons/gcp/cloud-storage.svg +1 -0
  155. package/web/icons/gcp/cloud-tasks.svg +1 -0
  156. package/web/icons/gcp/compute-engine.svg +1 -0
  157. package/web/icons/gcp/dataflow.svg +1 -0
  158. package/web/icons/gcp/external-ip.svg +1 -0
  159. package/web/icons/gcp/firestore.svg +1 -0
  160. package/web/icons/gcp/firewall-rules.svg +1 -0
  161. package/web/icons/gcp/gke.svg +1 -0
  162. package/web/icons/gcp/iam.svg +1 -0
  163. package/web/icons/gcp/kms.svg +1 -0
  164. package/web/icons/gcp/memorystore.svg +1 -0
  165. package/web/icons/gcp/persistent-disk.svg +1 -0
  166. package/web/icons/gcp/project.svg +1 -0
  167. package/web/icons/gcp/pubsub.svg +1 -0
  168. package/web/icons/gcp/secret-manager.svg +1 -0
  169. package/web/icons/gcp/vpc.svg +1 -0
  170. package/web/index.html +54 -0
  171. package/web/net-trace.js +649 -0
  172. package/web/net-trace.test.js +180 -0
  173. package/web/view-url.js +12 -7
package/web/index.html CHANGED
@@ -140,7 +140,49 @@
140
140
  /* behold#824: an edge's label is read text, not a hint, so it takes the
141
141
  full text colour, and its pill is outlined in the edge's own colour so
142
142
  the label reads as part of its line. */
143
+ /* An edge is drawn the same width on screen at every zoom: in viewBox
144
+ units a fitted estate scaled its 1.4 down to a third of a pixel. */
145
+ #graph .pin-edge-line { vector-effect: non-scaling-stroke; stroke-width: 1.6px; }
146
+ /* behold#824: each cloud's boundary box in its vendor's colour, mixed into
147
+ the theme so it holds on light and dark palettes alike. */
148
+ :root { --cloud-aws: #ff9900; --cloud-azure: #0078d4; --cloud-gcp: #34a853; }
149
+ #graph rect[data-cloud] { fill-opacity: 1; stroke-width: 2.5; }
150
+ #graph rect[data-cloud="aws"] { fill: color-mix(in srgb, var(--cloud-aws) 13%, var(--bg)); stroke: color-mix(in srgb, var(--cloud-aws) 75%, var(--bg)); }
151
+ #graph rect[data-cloud="azure"] { fill: color-mix(in srgb, var(--cloud-azure) 13%, var(--bg)); stroke: color-mix(in srgb, var(--cloud-azure) 75%, var(--bg)); }
152
+ #graph rect[data-cloud="gcp"] { fill: color-mix(in srgb, var(--cloud-gcp) 13%, var(--bg)); stroke: color-mix(in srgb, var(--cloud-gcp) 75%, var(--bg)); }
153
+ #graph text[data-cloud] { font-weight: 700; }
154
+ #graph text[data-cloud="aws"] { fill: color-mix(in srgb, var(--cloud-aws) 80%, var(--fg)); }
155
+ #graph text[data-cloud="azure"] { fill: color-mix(in srgb, var(--cloud-azure) 80%, var(--fg)); }
156
+ #graph text[data-cloud="gcp"] { fill: color-mix(in srgb, var(--cloud-gcp) 80%, var(--fg)); }
157
+ #panel .png-opts { display: flex; gap: 10px; align-items: center; font: var(--t-caption)/1.4 var(--font-ui); color: var(--muted); margin-top: 4px; }
158
+ #panel .png-opts select { font: inherit; }
159
+ /* behold#824: the legend on the graph — what a card's colour and its bar mean. */
160
+ #graph-legend { position: absolute; right: 12px; bottom: 12px; z-index: 5; min-width: 190px; max-width: 260px;
161
+ background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: var(--r-ctl);
162
+ padding: 8px 10px; font: var(--t-caption)/1.5 var(--font-ui); box-shadow: 0 2px 10px var(--shadow); }
163
+ #graph-legend.closed { min-width: 0; padding: 0; border: 0; background: none; box-shadow: none; }
164
+ #graph-legend .gl-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
165
+ #graph-legend .gl-close { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 0 2px; }
166
+ #graph-legend .gl-close:hover { color: var(--fg); }
167
+ #graph-legend .gl-row { display: flex; align-items: center; gap: 8px; }
168
+ #graph-legend .gl-row .grow { flex: 1; }
169
+ #graph-legend .gl-count { color: var(--muted); font-family: var(--font-mono); }
170
+ #graph-legend .gl-sub { color: var(--muted); margin-top: 6px; }
171
+ #graph-legend .gl-fills { display: inline-flex; gap: 2px; }
172
+ #graph-legend .gl-fills i { width: 8px; height: 12px; border-radius: 2px; display: inline-block; }
173
+ #graph-legend .gl-bar { width: 4px; height: 12px; border-radius: 1px; display: inline-block; margin: 0 9px 0 3px; }
174
+ #graph-legend .gl-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin: 0 6px 0 1px; }
175
+ #graph-legend .gl-dot.dashed { border-radius: 2px; }
143
176
  #graph g[data-edge-via] > text { fill: var(--pin-text); }
177
+ /* behold#878: an edge weighed by how it was found (web/edge-weight.js). */
178
+ :is(#graph, .edge-swatch) g[data-edge-weight="wired"] .pin-edge-line { stroke-width: 2.4px; }
179
+ :is(#graph, .edge-swatch) g[data-edge-weight="inferred"] .pin-edge-line { stroke-dasharray: 1.5 4; stroke-linecap: round; }
180
+ :is(#graph, .edge-swatch) g[data-edge-weight="plumbing"] .pin-edge-line { stroke-width: 1px; stroke-dasharray: 4 3; stroke: var(--muted); }
181
+ #graph g[data-edge-weight="hidden"] { display: none; }
182
+ #graph-legend .gl-edge { flex: none; overflow: visible; width: 22px; height: 10px; }
183
+ /* Too small to read at this zoom: hidden until its edge is lit or pointed at. */
184
+ #graph g[data-label-small]:not(.edge-hi):not(.label-peek) > rect,
185
+ #graph g[data-label-small]:not(.edge-hi):not(.label-peek) > text { display: none; }
144
186
  #graph g[data-edge-via] > rect { stroke: var(--pin-edge); }
145
187
  /* ---- Motion (#229) ---------------------------------------------------
146
188
  behold spends motion exactly twice, and never for decoration:
@@ -438,6 +480,18 @@
438
480
  drift hues own saturation now, and "which node am I looking at" earns
439
481
  one of them. */
440
482
  .sel rect, .sel path, .sel > rect { stroke: var(--pending) !important; stroke-width: 2.5 !important; }
483
+ /* #881: a trace's hops, open or closed; the cards it doesn't touch fade. */
484
+ #graph svg.tracing g[data-node-id]:not(.trace-open):not(.trace-closed) { opacity: .3; }
485
+ #graph g.trace-open > rect { stroke: var(--managed) !important; stroke-width: 2.5 !important; }
486
+ #graph g.trace-closed > rect { stroke: var(--degraded) !important; stroke-width: 3.5 !important; stroke-dasharray: 5 3; }
487
+ .net-trace .net-pick { display: flex; align-items: center; gap: 6px; margin: 4px 0; color: var(--muted); }
488
+ .net-trace .net-pick select, .net-trace .net-pick input { flex: 1; min-width: 0; }
489
+ .net-row { display: grid; grid-template-columns: 8px 1fr; gap: 8px; align-items: baseline; margin: 5px 0; overflow-wrap: anywhere; }
490
+ .net-row.clickable { cursor: pointer; }
491
+ .net-row.clickable:hover b { color: var(--fg); }
492
+ .net-row .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
493
+ .net-row b { font-weight: 600; color: var(--muted); }
494
+ .net-row .tag { display: block; color: var(--muted); font-family: var(--font-mono); font-size: .85em; }
441
495
  .err { padding: 24px; color: var(--foreign); }
442
496
  /* #72: a classified precondition failure (chant's lint gate, a project
443
497
  that isn't installed/typegen'd, a tier that needs credentials) reads